@ckeditor/ckeditor5-source-editing-enhanced 48.2.0-alpha.4 → 48.2.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x5978ef,PendingActions as _0x278149,Plugin as _0x14126a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x321881,formatHtml as _0x2c1eb9,env as _0x1e705c,uid as _0x5e73e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x25199f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x153d1c,ButtonView as _0x42fe67,MenuBarMenuListItemButtonView as _0x15e14f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5de705,crosshairCursor as _0x5324cd,drawSelection as _0x517883,dropCursor as _0x5a7498,lineNumbers as _0x139e9b,highlightActiveLine as _0x8eb41a,highlightActiveLineGutter as _0x6c6412,highlightSpecialChars as _0x4b16cb,rectangularSelection as _0xf28288,keymap as _0x5a25a4}from'@codemirror/view';import{Compartment as _0x5bf9dc,Transaction as _0x35b0d7}from'@codemirror/state';import{bracketMatching as _0x1e619f,foldGutter as _0x2b399e,indentOnInput as _0x1df6ff,syntaxHighlighting as _0x3d2691,defaultHighlightStyle as _0x1a03bc,foldKeymap as _0x5e72ce}from'@codemirror/language';import{toggleTabFocusMode as _0x799c00,history as _0x1fb927,defaultKeymap as _0x3cd15b,historyKeymap as _0x45e95a,indentLess as _0x3d61d6,indentMore as _0x44b79f,redo as _0xac6721,undo as _0x121d29}from'@codemirror/commands';import{autocompletion as _0x4dd4e4,closeBrackets as _0x4f9955,closeBracketsKeymap as _0x3227aa,completionKeymap as _0x1518ef}from'@codemirror/autocomplete';import{html as _0x29e131}from'@codemirror/lang-html';import{markdown as _0x91eef5}from'@codemirror/lang-markdown';import{oneDark as _0x3f99c6}from'@codemirror/theme-one-dark';function q(_0x1647df,_0x4b2e69){const t=_0x1647df['t'];switch(_0x4b2e69){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 _0x4b2e69;}}function H(_0x196666){const _0x529d91=_0x196666['editing']['view']['document']['roots'],_0x34576b=_0x529d91['length'];if(0x0===_0x34576b)throw new _0x321881('source-editing-enhanced-editor-no-root',_0x196666);if(0x1===_0x34576b)return _0x529d91['first']['rootName'];return Array['from'](_0x196666['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x5c62e7){return J(_0x5c62e7['replace'](/^[\n\s]*/g,''))?_0x5c62e7['replace'](/\s+/g,''):_0x5c62e7;}function J(_0x2a0400){return _0x2a0400['startsWith']('<');}function G(_0x2e0186){const _0xe4b70a=[_0x5de705['lineWrapping'],_0x4dd4e4(),_0x1e619f(),_0x4f9955(),_0x5324cd(),_0x517883(),_0x5a7498(),_0x139e9b(),_0x2b399e(),_0x8eb41a(),_0x6c6412(),_0x4b16cb(),_0x1fb927(),_0x1df6ff(),_0xf28288(),_0x3d2691(_0x1a03bc,{'fallback':!0x0})],_0x104879=new _0x5bf9dc();_0xe4b70a['push'](_0x104879['of'](_0x5de705['editable']['of'](!0x0))),'html'===_0x2e0186['syntaxLanguage']?_0xe4b70a['push'](_0x29e131()):_0xe4b70a['push'](_0x91eef5());const _0x27167f=function(_0x28e04c){if(_0x28e04c&&'default'!==_0x28e04c)return'dark'===_0x28e04c?_0x3f99c6:_0x28e04c;return null;}(_0x2e0186['theme']);_0x27167f&&_0xe4b70a['push'](_0x27167f),_0xe4b70a['push'](_0x5a25a4['of']([..._0x3227aa,..._0x3cd15b,..._0x45e95a,..._0x5e72ce,..._0x1518ef,{'key':'Tab','run':_0x44b79f,'shift':_0x3d61d6,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0xac6721,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0xac6721,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x121d29,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x48c765=new _0x5de705({'extensions':_0xe4b70a,'parent':_0x2e0186['parent']});return _0x799c00(_0x48c765),{'focus':()=>{_0x48c765['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x48c765['focus']();},'getData':()=>_0x48c765['state']['doc']['toString'](),'setData':_0x9de6aa=>{_0x48c765['dispatch']({'changes':{'from':0x0,'to':_0x48c765['state']['doc']['length'],'insert':_0x9de6aa},'annotations':_0x35b0d7['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4ad554=>{_0x48c765['dispatch']({'effects':[_0x104879['reconfigure'](_0x5de705['editable']['of'](!_0x4ad554))]});},'destroy':()=>{_0x48c765['destroy']();},'instance':_0x48c765};}class CodeEditorView extends _0x153d1c{['_codeEditorApi']=null;['_options'];constructor(_0x33ced0,_0x1b5e9d){super(_0x33ced0),this['_options']=_0x1b5e9d,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',(_0x463fe8,_0x1c9570,_0xacfc57)=>{this['setReadOnly'](_0xacfc57);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x23d929){this['_codeEditorApi']['setData'](_0x23d929);}['setReadOnly'](_0x519e7c){this['_codeEditorApi']['setReadOnly'](_0x519e7c);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x5978ef{constructor(_0x55f1fe){super(_0x55f1fe),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x278149)['on']('change:hasAny',(_0x55357e,_0x358800,_0x55340d)=>{_0x55340d?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x4985ad=this['editor'];for(const _0x3d7109 of _0x4985ad['commands']['names']())['replaceSource','editSource']['includes'](_0x3d7109)||_0x4985ad['commands']['get'](_0x3d7109)['forceDisabled'](Q);}['_enableCommands'](){const _0x4dba08=this['editor'];for(const _0x55d8d0 of _0x4dba08['commands']['commands']())_0x55d8d0['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x45fbaa=this['editor'],_0x2f9147=_0x45fbaa['locale'],_0x316366=_0x45fbaa['plugins']['get']('Dialog'),_0x30330f=H(_0x45fbaa),_0x38e1d1=_0x45fbaa['data']['get']({'rootName':_0x30330f}),_0x5c0ab8=J(_0x51e605=_0x38e1d1)?_0x2c1eb9(_0x51e605):_0x51e605;var _0x51e605;const _0x2054f8=new CodeEditorView(_0x2f9147,{'syntaxLanguage':_0x45fbaa['plugins']['has']('Markdown')?'markdown':'html','theme':_0x45fbaa['config']['get']('sourceEditingEnhanced.theme')});let _0x305af2=!0x0;const _0x1a6950=_0x242abf=>{if(!_0x305af2)return;return Z(_0x2054f8['getData']())!==Z(_0x5c0ab8)?window['confirm'](q(_0x2f9147,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x242abf['stop']():void 0x0;};_0x316366['show']({'id':'sourceEditingEnhanced','title':q(_0x2f9147,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x2054f8,'actionButtons':[{'label':q(_0x2f9147,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x316366['hide']();}},{'label':q(_0x2f9147,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0xb3164a=Z(_0x2054f8['getData']())!==Z(_0x5c0ab8);(_0xb3164a&&_0x45fbaa['execute']('replaceSource',_0x2054f8['getData']()),_0x305af2=!0x1,_0x316366['hide'](),_0xb3164a&&'editables'in _0x45fbaa['ui']['view'])&&_0x45fbaa['ui']['view']['editables'][_0x30330f]['element']['focus']();},'onCreate':_0x371fcd=>{_0x371fcd['set']('isEnabled',!_0x45fbaa['isReadOnly']),_0x371fcd['bind']('isEnabled')['to'](_0x45fbaa,'isReadOnly',this,'isEnabled',(_0x2a1f4b,_0x419bb8)=>!_0x2a1f4b&&_0x419bb8);}}],'onHide':()=>{this['_enableCommands'](),_0x316366['off']('hide',_0x1a6950),_0x2054f8['destroy']();},'onShow':()=>{_0x2054f8['bind']('isReadOnly')['to'](_0x45fbaa,'isReadOnly',this,'isEnabled',(_0x166c17,_0x3d2c33)=>_0x166c17||!_0x3d2c33),_0x2054f8['setData'](_0x5c0ab8),_0x2054f8['focus'](),_0x316366['on']('hide',_0x1a6950,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x14126a{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x278149];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x426e42=this['editor'],_0x281011=_0x426e42['locale'],_0x3d118c=new EditSourceCommand(_0x426e42);_0x426e42['commands']['add']('editSource',_0x3d118c),_0x426e42['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x8a4828=this['_createButton'](_0x42fe67,_0x3d118c);return _0x8a4828['set']({'label':q(_0x281011,'Source'),'icon':_0x25199f,'tooltip':q(_0x281011,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x8a4828;}),_0x426e42['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x1c5d48=this['_createButton'](_0x15e14f,_0x3d118c,!0x0);return _0x1c5d48['set']({'label':q(_0x281011,'Edit\x20source\x20modal\x20label'),'icon':_0x25199f,'role':'menuitemcheckbox'}),_0x1c5d48;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x319eb9){const _0xf5746d=_0x17fe52([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]),_0x4bcce8=0x5dba9314,_0x4daead=0x5dbd18b4^_0x4bcce8,_0x44a5d3=window[_0x17fe52([0x44,0x61,0x74,0x65])][_0x17fe52([0x6e,0x6f,0x77])](),_0xe65505=_0x319eb9[_0x17fe52([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c1900=new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44d314=>{_0xe65505[_0x17fe52([0x6f,0x6e,0x63,0x65])](_0x17fe52([0x72,0x65,0x61,0x64,0x79]),_0x44d314);}),_0x33431c={[_0x17fe52([0x6b,0x74,0x79])]:_0x17fe52([0x45,0x43]),[_0x17fe52([0x75,0x73,0x65])]:_0x17fe52([0x73,0x69,0x67]),[_0x17fe52([0x63,0x72,0x76])]:_0x17fe52([0x50,0x2d,0x32,0x35,0x36]),[_0x17fe52([0x78])]:_0x17fe52([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]),[_0x17fe52([0x79])]:_0x17fe52([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]),[_0x17fe52([0x61,0x6c,0x67])]:_0x17fe52([0x45,0x53,0x32,0x35,0x36])},_0xfab21d=_0xe65505[_0x17fe52([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17fe52([0x67,0x65,0x74])](_0x17fe52([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x292976(){let _0x574222,_0x37c266=null,_0x76d472=null;try{if(_0xfab21d==_0x17fe52([0x47,0x50,0x4c]))return _0x17fe52([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x574222=_0x3b731e(),!_0x574222)return _0x17fe52([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x574222[_0x17fe52([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x76d472=_0x55110b(_0x574222[_0x17fe52([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x574222[_0x17fe52([0x6a,0x74,0x69])])),await _0x41213c()?_0x3bb8fa()?_0x134306()?_0x17fe52([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xddf853()?(_0x574222[_0x17fe52([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17fe52([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37c266=_0x40225d(_0x17fe52([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xff2cff()):_0x17fe52([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17fe52([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17fe52([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17fe52([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x134306(){const _0x15f21e=[_0x17fe52([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17fe52([0x74,0x72,0x69,0x61,0x6c])][_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x574222[_0x17fe52([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44a5d3/0x3e8:0xe10*_0x4daead;return _0x574222[_0x17fe52([0x65,0x78,0x70])]<_0x15f21e;}function _0x3bb8fa(){const _0x568a6a=_0x574222[_0x17fe52([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x568a6a&&(!!_0x568a6a[_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fe52([0x2a]))||!!_0x568a6a[_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fe52([0x53,0x45,0x45])));}function _0xddf853(){const _0x1893a9=_0x574222[_0x17fe52([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1893a9||0x0==_0x1893a9[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50f9af}=new URL(window[_0x17fe52([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1893a9[_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f9af))return!0x0;const _0x10ead4=_0x50f9af[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])](_0x17fe52([0x2e]));return _0x1893a9[_0x17fe52([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x805108=>_0x805108[_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fe52([0x2a])))[_0x17fe52([0x6d,0x61,0x70])](_0x41cb52=>_0x41cb52[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])](_0x17fe52([0x2e])))[_0x17fe52([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eaff0=>_0x3eaff0[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10ead4[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17fe52([0x6d,0x61,0x70])](_0xd5c86b=>Array(_0x10ead4[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd5c86b[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17fe52([0x66,0x69,0x6c,0x6c])](_0xd5c86b[0x0]===_0x17fe52([0x2a])?_0x17fe52([0x2a]):'')[_0x17fe52([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd5c86b))[_0x17fe52([0x73,0x6f,0x6d,0x65])](_0x493815=>_0x10ead4[_0x17fe52([0x65,0x76,0x65,0x72,0x79])]((_0x3fff61,_0x1615ce)=>_0x493815[_0x1615ce]===_0x3fff61||_0x493815[_0x1615ce]===_0x17fe52([0x2a])));}function _0xff2cff(){return _0x37c266&&_0x76d472?new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x253796,_0x473ecf)=>{_0x37c266[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x253796,_0x473ecf),_0x76d472[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x2f3c05=>{_0x2f3c05!=_0x17fe52([0x56,0x61,0x6c,0x69,0x64])&&_0x253796(_0x2f3c05);},_0x473ecf);}):_0x37c266||_0x76d472||_0x17fe52([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55110b(_0x2e05a9,_0x564b2c){return new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c62f7=>{if(_0x1cf4ce())return _0x4c62f7(_0x17fe52([0x56,0x61,0x6c,0x69,0x64]));_0x30dba4(),_0xe65505[_0x17fe52([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17fe52([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35949e=!0x1;const _0x3f627e=_0x5e73e6();function _0x5ac31e(_0x2f0a1c){return!!_0x2f0a1c&&(typeof _0x2f0a1c===_0x17fe52([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f0a1c===_0x17fe52([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f0a1c[_0x17fe52([0x74,0x68,0x65,0x6e])]===_0x17fe52([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f0a1c[_0x17fe52([0x63,0x61,0x74,0x63,0x68])]===_0x17fe52([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x290979(_0x51e877){_0x4335fd(_0x51e877)[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x3e23f7=>{if(!_0x3e23f7||_0x3e23f7[_0x17fe52([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17fe52([0x6f,0x6b]))return _0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x456a00(_0x29e43f(_0x3f627e+_0x564b2c))!=_0x3e23f7[_0x17fe52([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17fe52([0x56,0x61,0x6c,0x69,0x64]);})[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x44e089=>(_0x4bce1a(),_0x44e089),()=>{const _0x4b9770=_0x8b4e06();return null==_0x4b9770?(_0x4bce1a(),_0x17fe52([0x56,0x61,0x6c,0x69,0x64])):_0x17fe52(_0x44a5d3-_0x4b9770>(0x79b61714^_0x4bcce8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x4c62f7)[_0x17fe52([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c62f7(_0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x295f2e=0x5d8c7d94^_0x4bcce8;function _0x4bce1a(){const _0x50597a=_0x17fe52([0x6c,0x6c,0x63,0x74,0x2d])+_0x456a00(_0x29e43f(_0x2e05a9)),_0x487462=_0x33cf0f(_0x456a00(window[_0x17fe52([0x4d,0x61,0x74,0x68])][_0x17fe52([0x63,0x65,0x69,0x6c])](_0x44a5d3/_0x295f2e)));window[_0x17fe52([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17fe52([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50597a,_0x487462);}function _0x8b4e06(){const _0x18a58b=_0x17fe52([0x6c,0x6c,0x63,0x74,0x2d])+_0x456a00(_0x29e43f(_0x2e05a9)),_0x376f09=window[_0x17fe52([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17fe52([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18a58b);return _0x376f09?window[_0x17fe52([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33cf0f(_0x376f09),0x10)*_0x295f2e:null;}function _0x4335fd(_0xf00411){return new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3db539,_0x24e2bd)=>{_0xf00411[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x3db539,_0x24e2bd),window[_0x17fe52([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24e2bd,0x5dbb47d4^_0x4bcce8);});}}_0xe65505[_0x17fe52([0x6f,0x6e])](_0x17fe52([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31aa2e,_0x1d91d0)=>{if(_0x1d91d0[0x0]!=_0x2e05a9)return _0x4c62f7(_0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d91d0[0x1]={..._0x1d91d0[0x1],[_0x17fe52([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f627e};},{[_0x17fe52([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17fe52([0x68,0x69,0x67,0x68])}),_0xe65505[_0x17fe52([0x6f,0x6e])](_0x17fe52([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa55f29=>{_0x5ac31e(_0xa55f29[_0x17fe52([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35949e=!0x0,_0x290979(_0xa55f29[_0x17fe52([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17fe52([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17fe52([0x6c,0x6f,0x77])}),_0x5c1900[_0x17fe52([0x74,0x68,0x65,0x6e])](()=>{_0x35949e||_0x4c62f7(_0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1cf4ce(){return _0xe65505[_0x17fe52([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17fe52([0x76,0x69,0x65,0x77])][_0x17fe52([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17fe52([0x61,0x75,0x74,0x6f]);}function _0x30dba4(){_0xe65505[_0x17fe52([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17fe52([0x76,0x69,0x65,0x77])][_0x17fe52([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17fe52([0x61,0x75,0x74,0x6f]);}}function _0x40225d(_0x1a0d34){const _0x148266=[new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x354e0a=>setTimeout(_0x354e0a,0x5db3add8^_0x4bcce8)),_0x5c1900[_0x17fe52([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c79fd=>{let _0x4d0427=0x0;_0xe65505[_0x17fe52([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fe52([0x6f,0x6e])](_0x17fe52([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11943f,_0x2e9e57)=>{_0x2e9e57[0x0][_0x17fe52([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d0427++,_0x4d0427==(0x5dba96fc^_0x4bcce8)&&(_0x2c79fd(),_0x11943f[_0x17fe52([0x6f,0x66,0x66])]());});}))];return window[_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17fe52([0x72,0x61,0x63,0x65])](_0x148266)[_0x17fe52([0x74,0x68,0x65,0x6e])](()=>_0x1a0d34);}async function _0x317ebe(){await _0x5c1900,_0xe65505[_0x17fe52([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fe52([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54f321,_0xe65505[_0x17fe52([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fe52([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54f321,_0xe65505[_0x17fe52([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17fe52([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e8b40(_0x26c03e){const _0x47c45e=_0xa648e3();_0xe65505[_0x47c45e]=_0x17fe52([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])+_0x26c03e,_0x26c03e!=_0x17fe52([0x56,0x61,0x6c,0x69,0x64])&&_0x317ebe();}function _0xa648e3(){const _0x3a2e8d=window[_0x17fe52([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17fe52([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17fe52([0x6e,0x6f,0x77])]())[_0x17fe52([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17fe52([0x2e]),'');let _0xa10b1b=_0x17fe52([0x4e]);for(let _0x27b556=0x0;_0x27b556<_0x3a2e8d[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27b556+=0x2){let _0x3d6346=window[_0x17fe52([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a2e8d[_0x17fe52([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27b556,_0x27b556+0x2));_0x3d6346>=_0xf5746d[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d6346-=_0xf5746d[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa10b1b+=_0xf5746d[_0x3d6346];}return _0xa10b1b;}function _0x3b731e(){const _0x1cc814=_0xfab21d[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])](_0x17fe52([0x2e]));if(0x3!=_0x1cc814[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x433009(_0x1cc814[0x1]);function _0x433009(_0x1c4ed9){const _0x2dc723=_0x5a30b9(_0x1c4ed9);return _0x2dc723&&_0x311c9c()?_0x2dc723:null;function _0x311c9c(){const _0x5ec0c1=_0x2dc723[_0x17fe52([0x6a,0x74,0x69])],_0x462847=window[_0x17fe52([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ec0c1[_0x17fe52([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ec0c1[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4672f5={..._0x2dc723,[_0x17fe52([0x6a,0x74,0x69])]:_0x5ec0c1[_0x17fe52([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ec0c1[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4672f5[_0x17fe52([0x76,0x63])],_0x29e43f(_0x4672f5)==_0x462847;}}}async function _0x41213c(){let _0x3f410f=!0x0;try{const _0x38fc8b=_0xfab21d[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])](_0x17fe52([0x2e])),[_0x1364a7,_0xe0009b,_0x53d0e1]=_0x38fc8b;return _0x948b0d(_0x1364a7),await _0x9e3ed4(_0x1364a7,_0xe0009b,_0x53d0e1),_0x3f410f;}catch{return!0x1;}function _0x948b0d(_0x5e164d){const _0x46a78b=_0x5a30b9(_0x5e164d);_0x46a78b&&_0x46a78b[_0x17fe52([0x61,0x6c,0x67])]==_0x17fe52([0x45,0x53,0x32,0x35,0x36])||(_0x3f410f=!0x1);}async function _0x9e3ed4(_0x1bd45e,_0x3b2ef6,_0x5d3388){const _0x1af1ea=window[_0x17fe52([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17fe52([0x66,0x72,0x6f,0x6d])](_0x1193f3(_0x5d3388),_0x3a0903=>_0x3a0903[_0x17fe52([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17ecf6=new window[(_0x17fe52([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17fe52([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bd45e+_0x17fe52([0x2e])+_0x3b2ef6),_0x8d41d9=window[_0x17fe52([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17fe52([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8d41d9)return;const _0x54f4f5=await _0x8d41d9[_0x17fe52([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17fe52([0x6a,0x77,0x6b]),_0x33431c,{[_0x17fe52([0x6e,0x61,0x6d,0x65])]:_0x17fe52([0x45,0x43,0x44,0x53,0x41]),[_0x17fe52([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17fe52([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17fe52([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8d41d9[_0x17fe52([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17fe52([0x6e,0x61,0x6d,0x65])]:_0x17fe52([0x45,0x43,0x44,0x53,0x41]),[_0x17fe52([0x68,0x61,0x73,0x68])]:{[_0x17fe52([0x6e,0x61,0x6d,0x65])]:_0x17fe52([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54f4f5,_0x1af1ea,_0x17ecf6)||(_0x3f410f=!0x1);}}function _0x5a30b9(_0x33c687){return _0x33c687[_0x17fe52([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17fe52([0x65,0x79]))?JSON[_0x17fe52([0x70,0x61,0x72,0x73,0x65])](_0x1193f3(_0x33c687)):null;}function _0x1193f3(_0x4d3ef6){return window[_0x17fe52([0x61,0x74,0x6f,0x62])](_0x4d3ef6[_0x17fe52([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17fe52([0x2b]))[_0x17fe52([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17fe52([0x2f])));}function _0x29e43f(_0x13ae29){let _0xa5a5a=0x1505;function _0x3be067(_0x2ec127){for(let _0x372b21=0x0;_0x372b21<_0x2ec127[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x372b21++){const _0x540abb=_0x2ec127[_0x17fe52([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x372b21);_0xa5a5a=(_0xa5a5a<<0x5)+_0xa5a5a+_0x540abb,_0xa5a5a&=_0xa5a5a;}}function _0x2ef49c(_0x7368a3){Array[_0x17fe52([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7368a3)?_0x7368a3[_0x17fe52([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ef49c):_0x7368a3&&typeof _0x7368a3==_0x17fe52([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17fe52([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7368a3)[_0x17fe52([0x73,0x6f,0x72,0x74])]()[_0x17fe52([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a9a7d,_0x42136e])=>{_0x3be067(_0x3a9a7d),_0x2ef49c(_0x42136e);}):_0x3be067(window[_0x17fe52([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7368a3));}return _0x2ef49c(_0x13ae29),_0xa5a5a>>>0x0;}function _0x456a00(_0x1428fa){return _0x1428fa[_0x17fe52([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17fe52([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17fe52([0x30]));}function _0x33cf0f(_0x3317e4){return _0x3317e4[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17fe52([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17fe52([0x6a,0x6f,0x69,0x6e])]('');}function _0x54f321(){}function _0x17fe52(_0x4fe0b0){return _0x4fe0b0['map'](_0x4b0336=>String['fromCharCode'](_0x4b0336))['join']('');}_0x3e8b40(await _0x292976());}(this);}['_createButton'](_0x3534ee,_0x38a867,_0x10e2f1=!0x1){const _0x5a2ba6=new _0x3534ee(this['editor']['locale']);return _0x5a2ba6['set']({'withText':_0x10e2f1,'isToggleable':!0x1}),_0x5a2ba6['bind']('isEnabled')['to'](_0x38a867,'isEnabled'),this['listenTo'](_0x5a2ba6,'execute',()=>_0x38a867['execute']()),_0x5a2ba6;}['_registerKeybindings'](){const _0x4e89c2=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x4e89c2,'Source\x20Editing\x20Enhanced')});const _0x5dda2a=_0x1e705c['isMac']||_0x1e705c['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x4e89c2,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x4e89c2,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x4e89c2,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x4e89c2,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x4e89c2,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x4e89c2,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x4e89c2,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x5dda2a?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x4e89c2,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x4e89c2,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x4e89c2,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x4e89c2,'Select\x20line'),'keystroke':_0x5dda2a?'Ctrl!+L':'Alt+L'},{'label':q(_0x4e89c2,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x5dda2a?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x4e89c2,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x4e89c2,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x4e89c2,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x4e89c2,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x4e89c2,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x5dda2a?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x5978ef{constructor(_0x59cfe1){super(_0x59cfe1),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x18129a,_0x3c8ca3){const _0x467443=this['editor'],_0x378aa2=_0x3c8ca3?.['rootName']??H(_0x467443);_0x467443['data']['set']({[_0x378aa2]:_0x18129a},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x14126a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x1d821e){super(_0x1d821e),_0x1d821e['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 _0x580df1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1af0c2;for(const _0x1ecae4 in _0x580df1){const _0x33cccc=_0x1ecae4,_0x307d26=_0x580df1[_0x33cccc];if('sourceEditingEnhancedLicenseKeyValid'==_0x307d26||'sourceEditingEnhancedLicenseKeyInvalid'==_0x307d26||'sourceEditingEnhancedLicenseKeyExpired'==_0x307d26||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x307d26||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x307d26||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x307d26||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x307d26){delete _0x580df1[_0x33cccc],_0x1af0c2=_0x307d26,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x1af0c2&&_0x580df1['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x1af0c2&&_0x580df1['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1af0c2&&_0x580df1['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1af0c2&&_0x580df1['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1af0c2&&_0x580df1['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1af0c2&&_0x580df1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x2ddb63=this['editor'],_0xc7f86d=_0x2ddb63['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0xc7f86d&&_0x2ddb63['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x321881('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0xc7f86d&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x9ec6e7=>_0x2ddb63['plugins']['has'](_0x9ec6e7))&&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.'),_0x2ddb63['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
23
+ import{Command as _0x302856,PendingActions as _0x4bed36,Plugin as _0x1ace90}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x541de5,formatHtml as _0x419a9f,env as _0x2c44b6,uid as _0x572caf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x12a7ef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x518bb8,ButtonView as _0x3ec11d,MenuBarMenuListItemButtonView as _0x2977a6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5be353,crosshairCursor as _0x47b841,drawSelection as _0x685bbc,dropCursor as _0x53ddec,lineNumbers as _0x37d3a8,highlightActiveLine as _0x327913,highlightActiveLineGutter as _0x5d60ce,highlightSpecialChars as _0x3bcc7c,rectangularSelection as _0x5755b4,keymap as _0x57525b}from'@codemirror/view';import{Compartment as _0xae2240,Transaction as _0x514134}from'@codemirror/state';import{bracketMatching as _0x316572,foldGutter as _0x530c3d,indentOnInput as _0x173401,syntaxHighlighting as _0x1413a6,defaultHighlightStyle as _0x58a130,foldKeymap as _0x4c01d4}from'@codemirror/language';import{toggleTabFocusMode as _0x1f636e,history as _0x299336,defaultKeymap as _0x4a9b3d,historyKeymap as _0x3c9d59,indentLess as _0x20bb9a,indentMore as _0x3ca0f,redo as _0xe53e3c,undo as _0x2111f2}from'@codemirror/commands';import{autocompletion as _0x54eb53,closeBrackets as _0x7b1d00,closeBracketsKeymap as _0x4b9588,completionKeymap as _0x13b0ee}from'@codemirror/autocomplete';import{html as _0x28102d}from'@codemirror/lang-html';import{markdown as _0x4de516}from'@codemirror/lang-markdown';import{oneDark as _0x1f70bb}from'@codemirror/theme-one-dark';function q(_0x1014e6,_0x4b4e62){const t=_0x1014e6['t'];switch(_0x4b4e62){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x4b4e62;}}function H(_0x37d0c3){const _0x3ac45d=_0x37d0c3['editing']['view']['document']['roots'],_0x43ee49=_0x3ac45d['length'];if(0x0===_0x43ee49)throw new _0x541de5('source-editing-enhanced-editor-no-root',_0x37d0c3);if(0x1===_0x43ee49)return _0x3ac45d['first']['rootName'];return Array['from'](_0x37d0c3['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x44f9c2){return J(_0x44f9c2['replace'](/^[\n\s]*/g,''))?_0x44f9c2['replace'](/\s+/g,''):_0x44f9c2;}function J(_0x18624d){return _0x18624d['startsWith']('<');}function G(_0x30b20a){const _0x4a071a=[_0x5be353['lineWrapping'],_0x54eb53(),_0x316572(),_0x7b1d00(),_0x47b841(),_0x685bbc(),_0x53ddec(),_0x37d3a8(),_0x530c3d(),_0x327913(),_0x5d60ce(),_0x3bcc7c(),_0x299336(),_0x173401(),_0x5755b4(),_0x1413a6(_0x58a130,{'fallback':!0x0})],_0x331ca0=new _0xae2240();_0x4a071a['push'](_0x331ca0['of'](_0x5be353['editable']['of'](!0x0))),'html'===_0x30b20a['syntaxLanguage']?_0x4a071a['push'](_0x28102d()):_0x4a071a['push'](_0x4de516());const _0x73e80c=function(_0x22025e){if(_0x22025e&&'default'!==_0x22025e)return'dark'===_0x22025e?_0x1f70bb:_0x22025e;return null;}(_0x30b20a['theme']);_0x73e80c&&_0x4a071a['push'](_0x73e80c),_0x4a071a['push'](_0x57525b['of']([..._0x4b9588,..._0x4a9b3d,..._0x3c9d59,..._0x4c01d4,..._0x13b0ee,{'key':'Tab','run':_0x3ca0f,'shift':_0x20bb9a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0xe53e3c,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0xe53e3c,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x2111f2,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x411dbe=new _0x5be353({'extensions':_0x4a071a,'parent':_0x30b20a['parent']});return _0x1f636e(_0x411dbe),{'focus':()=>{_0x411dbe['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x411dbe['focus']();},'getData':()=>_0x411dbe['state']['doc']['toString'](),'setData':_0x476105=>{_0x411dbe['dispatch']({'changes':{'from':0x0,'to':_0x411dbe['state']['doc']['length'],'insert':_0x476105},'annotations':_0x514134['addToHistory']['of'](!0x1)});},'setReadOnly':_0x2faf1b=>{_0x411dbe['dispatch']({'effects':[_0x331ca0['reconfigure'](_0x5be353['editable']['of'](!_0x2faf1b))]});},'destroy':()=>{_0x411dbe['destroy']();},'instance':_0x411dbe};}class CodeEditorView extends _0x518bb8{['_codeEditorApi']=null;['_options'];constructor(_0x27a61d,_0x2f391e){super(_0x27a61d),this['_options']=_0x2f391e,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=G({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x3d538b,_0x270ba6,_0x45cb5a)=>{this['setReadOnly'](_0x45cb5a);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x3a73ed){this['_codeEditorApi']['setData'](_0x3a73ed);}['setReadOnly'](_0x416164){this['_codeEditorApi']['setReadOnly'](_0x416164);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x302856{constructor(_0x48d8b7){super(_0x48d8b7),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x4bed36)['on']('change:hasAny',(_0x23d113,_0x67caec,_0x194564)=>{_0x194564?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x261c55=this['editor'];for(const _0x5b8d00 of _0x261c55['commands']['names']())['replaceSource','editSource']['includes'](_0x5b8d00)||_0x261c55['commands']['get'](_0x5b8d00)['forceDisabled'](Q);}['_enableCommands'](){const _0x370910=this['editor'];for(const _0x4acaa4 of _0x370910['commands']['commands']())_0x4acaa4['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x30bd97=this['editor'],_0x316a2b=_0x30bd97['locale'],_0x4ae575=_0x30bd97['plugins']['get']('Dialog'),_0x580176=H(_0x30bd97),_0x3badf9=_0x30bd97['data']['get']({'rootName':_0x580176}),_0x425cbf=J(_0x5c5537=_0x3badf9)?_0x419a9f(_0x5c5537):_0x5c5537;var _0x5c5537;const _0x4696a4=new CodeEditorView(_0x316a2b,{'syntaxLanguage':_0x30bd97['plugins']['has']('Markdown')?'markdown':'html','theme':_0x30bd97['config']['get']('sourceEditingEnhanced.theme')});let _0x4557a6=!0x0;const _0x23fea7=_0x4b90c6=>{if(!_0x4557a6)return;return Z(_0x4696a4['getData']())!==Z(_0x425cbf)?window['confirm'](q(_0x316a2b,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x4b90c6['stop']():void 0x0;};_0x4ae575['show']({'id':'sourceEditingEnhanced','title':q(_0x316a2b,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x4696a4,'actionButtons':[{'label':q(_0x316a2b,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x4ae575['hide']();}},{'label':q(_0x316a2b,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x2aae40=Z(_0x4696a4['getData']())!==Z(_0x425cbf);(_0x2aae40&&_0x30bd97['execute']('replaceSource',_0x4696a4['getData']()),_0x4557a6=!0x1,_0x4ae575['hide'](),_0x2aae40&&'editables'in _0x30bd97['ui']['view'])&&_0x30bd97['ui']['view']['editables'][_0x580176]['element']['focus']();},'onCreate':_0x2d56d2=>{_0x2d56d2['set']('isEnabled',!_0x30bd97['isReadOnly']),_0x2d56d2['bind']('isEnabled')['to'](_0x30bd97,'isReadOnly',this,'isEnabled',(_0x2468ea,_0x21fe73)=>!_0x2468ea&&_0x21fe73);}}],'onHide':()=>{this['_enableCommands'](),_0x4ae575['off']('hide',_0x23fea7),_0x4696a4['destroy']();},'onShow':()=>{_0x4696a4['bind']('isReadOnly')['to'](_0x30bd97,'isReadOnly',this,'isEnabled',(_0x158b17,_0x1deb03)=>_0x158b17||!_0x1deb03),_0x4696a4['setData'](_0x425cbf),_0x4696a4['focus'](),_0x4ae575['on']('hide',_0x23fea7,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x1ace90{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x4bed36];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x255b8b=this['editor'],_0xccef7e=_0x255b8b['locale'],_0xa67da0=new EditSourceCommand(_0x255b8b);_0x255b8b['commands']['add']('editSource',_0xa67da0),_0x255b8b['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x3a21ff=this['_createButton'](_0x3ec11d,_0xa67da0);return _0x3a21ff['set']({'label':q(_0xccef7e,'Source'),'icon':_0x12a7ef,'tooltip':q(_0xccef7e,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x3a21ff;}),_0x255b8b['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x562958=this['_createButton'](_0x2977a6,_0xa67da0,!0x0);return _0x562958['set']({'label':q(_0xccef7e,'Edit\x20source\x20modal\x20label'),'icon':_0x12a7ef,'role':'menuitemcheckbox'}),_0x562958;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x26a4a0){const _0x261298=_0x7111f8([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x317254=0x5dba9314,_0xea03eb=0x5dbd18ac^_0x317254,_0x50f8a1=window[_0x7111f8([0x44,0x61,0x74,0x65])][_0x7111f8([0x6e,0x6f,0x77])](),_0x44c245=_0x26a4a0[_0x7111f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c5611=new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25bc88=>{_0x44c245[_0x7111f8([0x6f,0x6e,0x63,0x65])](_0x7111f8([0x72,0x65,0x61,0x64,0x79]),_0x25bc88);}),_0x4f1d07={[_0x7111f8([0x6b,0x74,0x79])]:_0x7111f8([0x45,0x43]),[_0x7111f8([0x75,0x73,0x65])]:_0x7111f8([0x73,0x69,0x67]),[_0x7111f8([0x63,0x72,0x76])]:_0x7111f8([0x50,0x2d,0x32,0x35,0x36]),[_0x7111f8([0x78])]:_0x7111f8([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x7111f8([0x79])]:_0x7111f8([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x7111f8([0x61,0x6c,0x67])]:_0x7111f8([0x45,0x53,0x32,0x35,0x36])},_0x2d223e=_0x44c245[_0x7111f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7111f8([0x67,0x65,0x74])](_0x7111f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b058e(){let _0xd31b2f,_0x157393=null,_0xa573cf=null;try{if(_0x2d223e==_0x7111f8([0x47,0x50,0x4c]))return _0x7111f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd31b2f=_0x3f7d89(),!_0xd31b2f)return _0x7111f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd31b2f[_0x7111f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa573cf=_0x576b63(_0xd31b2f[_0x7111f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd31b2f[_0x7111f8([0x6a,0x74,0x69])])),await _0x36100d()?_0x857ed()?_0xc94d65()?_0x7111f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f69d1()?(_0xd31b2f[_0x7111f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7111f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x157393=_0x15df46(_0x7111f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f3dc7()):_0x7111f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7111f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7111f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7111f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc94d65(){const _0xc6e03c=[_0x7111f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7111f8([0x74,0x72,0x69,0x61,0x6c])][_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd31b2f[_0x7111f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50f8a1/0x3e8:0xe10*_0xea03eb;return _0xd31b2f[_0x7111f8([0x65,0x78,0x70])]<_0xc6e03c;}function _0x857ed(){const _0x289415=_0xd31b2f[_0x7111f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x289415&&(!!_0x289415[_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7111f8([0x2a]))||!!_0x289415[_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7111f8([0x53,0x45,0x45])));}function _0x4f69d1(){const _0xe1ccb3=_0xd31b2f[_0x7111f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe1ccb3||0x0==_0xe1ccb3[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51a7d9}=new URL(window[_0x7111f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe1ccb3[_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a7d9))return!0x0;const _0x106508=_0x51a7d9[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])](_0x7111f8([0x2e]));return _0xe1ccb3[_0x7111f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d399b=>_0x1d399b[_0x7111f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7111f8([0x2a])))[_0x7111f8([0x6d,0x61,0x70])](_0xbf3b24=>_0xbf3b24[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])](_0x7111f8([0x2e])))[_0x7111f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1de39a=>_0x1de39a[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x106508[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7111f8([0x6d,0x61,0x70])](_0x10596b=>Array(_0x106508[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10596b[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7111f8([0x66,0x69,0x6c,0x6c])](_0x10596b[0x0]===_0x7111f8([0x2a])?_0x7111f8([0x2a]):'')[_0x7111f8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10596b))[_0x7111f8([0x73,0x6f,0x6d,0x65])](_0x307a76=>_0x106508[_0x7111f8([0x65,0x76,0x65,0x72,0x79])]((_0x126932,_0x2d437c)=>_0x307a76[_0x2d437c]===_0x126932||_0x307a76[_0x2d437c]===_0x7111f8([0x2a])));}function _0x5f3dc7(){return _0x157393&&_0xa573cf?new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x427afe,_0xc88fbd)=>{_0x157393[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x427afe,_0xc88fbd),_0xa573cf[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x531709=>{_0x531709!=_0x7111f8([0x56,0x61,0x6c,0x69,0x64])&&_0x427afe(_0x531709);},_0xc88fbd);}):_0x157393||_0xa573cf||_0x7111f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x576b63(_0x122061,_0x17fec8){return new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e5dbd=>{if(_0x2b06c5())return _0x3e5dbd(_0x7111f8([0x56,0x61,0x6c,0x69,0x64]));_0x10ac10(),_0x44c245[_0x7111f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7111f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d4e08=!0x1;const _0x4b72e8=_0x572caf();function _0xc3cfe7(_0x536e3f){return!!_0x536e3f&&(typeof _0x536e3f===_0x7111f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x536e3f===_0x7111f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x536e3f[_0x7111f8([0x74,0x68,0x65,0x6e])]===_0x7111f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x536e3f[_0x7111f8([0x63,0x61,0x74,0x63,0x68])]===_0x7111f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x23a6ee(_0x1adc8e){_0x44aea3(_0x1adc8e)[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x267c88=>{if(!_0x267c88||_0x267c88[_0x7111f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7111f8([0x6f,0x6b]))return _0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dbfe4(_0x3fe9e2(_0x4b72e8+_0x17fec8))!=_0x267c88[_0x7111f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7111f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x4351a0=>(_0x4eb462(),_0x4351a0),()=>{const _0x2a8c55=_0x35ba3c();return null==_0x2a8c55?(_0x4eb462(),_0x7111f8([0x56,0x61,0x6c,0x69,0x64])):_0x7111f8(_0x50f8a1-_0x2a8c55>(0x79b61714^_0x317254)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x3e5dbd)[_0x7111f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e5dbd(_0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b2728=0x5d8c7d94^_0x317254;function _0x4eb462(){const _0x5e4515=_0x7111f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbfe4(_0x3fe9e2(_0x122061)),_0x5ec4bf=_0x3a1159(_0x1dbfe4(window[_0x7111f8([0x4d,0x61,0x74,0x68])][_0x7111f8([0x63,0x65,0x69,0x6c])](_0x50f8a1/_0x3b2728)));window[_0x7111f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7111f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e4515,_0x5ec4bf);}function _0x35ba3c(){const _0x2ae1a9=_0x7111f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbfe4(_0x3fe9e2(_0x122061)),_0x1a4f19=window[_0x7111f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7111f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ae1a9);return _0x1a4f19?window[_0x7111f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a1159(_0x1a4f19),0x10)*_0x3b2728:null;}function _0x44aea3(_0x3f515b){return new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x479c98,_0x5c19cb)=>{_0x3f515b[_0x7111f8([0x74,0x68,0x65,0x6e])](_0x479c98,_0x5c19cb),window[_0x7111f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c19cb,0x5dbb47d4^_0x317254);});}}_0x44c245[_0x7111f8([0x6f,0x6e])](_0x7111f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37a124,_0x8f5a84)=>{if(_0x8f5a84[0x0]!=_0x122061)return _0x3e5dbd(_0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8f5a84[0x1]={..._0x8f5a84[0x1],[_0x7111f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b72e8};},{[_0x7111f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7111f8([0x68,0x69,0x67,0x68])}),_0x44c245[_0x7111f8([0x6f,0x6e])](_0x7111f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36766b=>{_0xc3cfe7(_0x36766b[_0x7111f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d4e08=!0x0,_0x23a6ee(_0x36766b[_0x7111f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7111f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7111f8([0x6c,0x6f,0x77])}),_0x2c5611[_0x7111f8([0x74,0x68,0x65,0x6e])](()=>{_0x3d4e08||_0x3e5dbd(_0x7111f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b06c5(){return _0x44c245[_0x7111f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7111f8([0x76,0x69,0x65,0x77])][_0x7111f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7111f8([0x61,0x75,0x74,0x6f]);}function _0x10ac10(){_0x44c245[_0x7111f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7111f8([0x76,0x69,0x65,0x77])][_0x7111f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7111f8([0x61,0x75,0x74,0x6f]);}}function _0x15df46(_0x1f5556){const _0x19f22b=[new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5abd68=>setTimeout(_0x5abd68,0x5db3add8^_0x317254)),_0x2c5611[_0x7111f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a1a84=>{let _0x71a526=0x0;_0x44c245[_0x7111f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x7111f8([0x6f,0x6e])](_0x7111f8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x456321,_0x2221de)=>{_0x2221de[0x0][_0x7111f8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x71a526++,_0x71a526==(0x5dba96fc^_0x317254)&&(_0x3a1a84(),_0x456321[_0x7111f8([0x6f,0x66,0x66])]());});}))];return window[_0x7111f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7111f8([0x72,0x61,0x63,0x65])](_0x19f22b)[_0x7111f8([0x74,0x68,0x65,0x6e])](()=>_0x1f5556);}async function _0x302fa1(){await _0x2c5611,_0x44c245[_0x7111f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x7111f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x349b75,_0x44c245[_0x7111f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x7111f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x349b75,_0x44c245[_0x7111f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7111f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x573c5e(_0x8362cc){const _0x146f9b=_0x33c35a();_0x44c245[_0x146f9b]=_0x7111f8([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8362cc,_0x8362cc!=_0x7111f8([0x56,0x61,0x6c,0x69,0x64])&&_0x302fa1();}function _0x33c35a(){const _0x1f7ce3=window[_0x7111f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7111f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7111f8([0x6e,0x6f,0x77])]())[_0x7111f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7111f8([0x2e]),'');let _0x22beee=_0x7111f8([0x4e]);for(let _0xa94394=0x0;_0xa94394<_0x1f7ce3[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa94394+=0x2){let _0x172e80=window[_0x7111f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f7ce3[_0x7111f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa94394,_0xa94394+0x2));_0x172e80>=_0x261298[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x172e80-=_0x261298[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22beee+=_0x261298[_0x172e80];}return _0x22beee;}function _0x3f7d89(){const _0x12f405=_0x2d223e[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])](_0x7111f8([0x2e]));if(0x3!=_0x12f405[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc74acc(_0x12f405[0x1]);function _0xc74acc(_0x1ef6f3){const _0x28ccd3=_0x13b59e(_0x1ef6f3);return _0x28ccd3&&_0x186551()?_0x28ccd3:null;function _0x186551(){const _0x4d1fac=_0x28ccd3[_0x7111f8([0x6a,0x74,0x69])],_0x254903=window[_0x7111f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d1fac[_0x7111f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d1fac[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfca97d={..._0x28ccd3,[_0x7111f8([0x6a,0x74,0x69])]:_0x4d1fac[_0x7111f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d1fac[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfca97d[_0x7111f8([0x76,0x63])],_0x3fe9e2(_0xfca97d)==_0x254903;}}}async function _0x36100d(){let _0x3215b7=!0x0;try{const _0x445801=_0x2d223e[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])](_0x7111f8([0x2e])),[_0xa15312,_0x3033ad,_0x52c88e]=_0x445801;return _0x5d0f2c(_0xa15312),await _0x3b9abf(_0xa15312,_0x3033ad,_0x52c88e),_0x3215b7;}catch{return!0x1;}function _0x5d0f2c(_0x56e8ae){const _0x232bdb=_0x13b59e(_0x56e8ae);_0x232bdb&&_0x232bdb[_0x7111f8([0x61,0x6c,0x67])]==_0x7111f8([0x45,0x53,0x32,0x35,0x36])||(_0x3215b7=!0x1);}async function _0x3b9abf(_0x486441,_0x4f4cd4,_0x581dac){const _0x476441=window[_0x7111f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7111f8([0x66,0x72,0x6f,0x6d])](_0x1549a5(_0x581dac),_0x2a1159=>_0x2a1159[_0x7111f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16a26d=new window[(_0x7111f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7111f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x486441+_0x7111f8([0x2e])+_0x4f4cd4),_0x1cfadf=window[_0x7111f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7111f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1cfadf)return;const _0x409858=await _0x1cfadf[_0x7111f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7111f8([0x6a,0x77,0x6b]),_0x4f1d07,{[_0x7111f8([0x6e,0x61,0x6d,0x65])]:_0x7111f8([0x45,0x43,0x44,0x53,0x41]),[_0x7111f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7111f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7111f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1cfadf[_0x7111f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7111f8([0x6e,0x61,0x6d,0x65])]:_0x7111f8([0x45,0x43,0x44,0x53,0x41]),[_0x7111f8([0x68,0x61,0x73,0x68])]:{[_0x7111f8([0x6e,0x61,0x6d,0x65])]:_0x7111f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x409858,_0x476441,_0x16a26d)||(_0x3215b7=!0x1);}}function _0x13b59e(_0x5cc474){return _0x5cc474[_0x7111f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7111f8([0x65,0x79]))?JSON[_0x7111f8([0x70,0x61,0x72,0x73,0x65])](_0x1549a5(_0x5cc474)):null;}function _0x1549a5(_0x2e49de){return window[_0x7111f8([0x61,0x74,0x6f,0x62])](_0x2e49de[_0x7111f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7111f8([0x2b]))[_0x7111f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7111f8([0x2f])));}function _0x3fe9e2(_0x2690f8){let _0x27a3c9=0x1505;function _0x1c202a(_0x587902){for(let _0x1d824a=0x0;_0x1d824a<_0x587902[_0x7111f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d824a++){const _0x3d4202=_0x587902[_0x7111f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d824a);_0x27a3c9=(_0x27a3c9<<0x5)+_0x27a3c9+_0x3d4202,_0x27a3c9&=_0x27a3c9;}}function _0x44fbde(_0x4a2811){Array[_0x7111f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a2811)?_0x4a2811[_0x7111f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44fbde):_0x4a2811&&typeof _0x4a2811==_0x7111f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7111f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a2811)[_0x7111f8([0x73,0x6f,0x72,0x74])]()[_0x7111f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b41d5,_0x25e6ac])=>{_0x1c202a(_0x1b41d5),_0x44fbde(_0x25e6ac);}):_0x1c202a(window[_0x7111f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a2811));}return _0x44fbde(_0x2690f8),_0x27a3c9>>>0x0;}function _0x1dbfe4(_0x15f56d){return _0x15f56d[_0x7111f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7111f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7111f8([0x30]));}function _0x3a1159(_0x5a8031){return _0x5a8031[_0x7111f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7111f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7111f8([0x6a,0x6f,0x69,0x6e])]('');}function _0x349b75(){}function _0x7111f8(_0x1514ff){return _0x1514ff['map'](_0x300233=>String['fromCharCode'](_0x300233))['join']('');}_0x573c5e(await _0x5b058e());}(this);}['_createButton'](_0x42e6ec,_0x50b362,_0x4ee49f=!0x1){const _0x3da803=new _0x42e6ec(this['editor']['locale']);return _0x3da803['set']({'withText':_0x4ee49f,'isToggleable':!0x1}),_0x3da803['bind']('isEnabled')['to'](_0x50b362,'isEnabled'),this['listenTo'](_0x3da803,'execute',()=>_0x50b362['execute']()),_0x3da803;}['_registerKeybindings'](){const _0x3225c2=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x3225c2,'Source\x20Editing\x20Enhanced')});const _0x2c9ebd=_0x2c44b6['isMac']||_0x2c44b6['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x3225c2,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x3225c2,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x3225c2,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x3225c2,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x3225c2,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x3225c2,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x3225c2,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2c9ebd?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x3225c2,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x3225c2,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x3225c2,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x3225c2,'Select\x20line'),'keystroke':_0x2c9ebd?'Ctrl!+L':'Alt+L'},{'label':q(_0x3225c2,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2c9ebd?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x3225c2,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x3225c2,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x3225c2,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x3225c2,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x3225c2,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2c9ebd?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x302856{constructor(_0x4a28b5){super(_0x4a28b5),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x22d9e2,_0x2b0e0a){const _0x4d5770=this['editor'],_0x2178e2=_0x2b0e0a?.['rootName']??H(_0x4d5770);_0x4d5770['data']['set']({[_0x2178e2]:_0x22d9e2},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x1ace90{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x12d27e){super(_0x12d27e),_0x12d27e['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19955a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1183fd;for(const _0x388cae in _0x19955a){const _0x1fe81a=_0x388cae,_0x4f587f=_0x19955a[_0x1fe81a];if('sourceEditingEnhancedLicenseKeyValid'==_0x4f587f||'sourceEditingEnhancedLicenseKeyInvalid'==_0x4f587f||'sourceEditingEnhancedLicenseKeyExpired'==_0x4f587f||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4f587f||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4f587f||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4f587f||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4f587f){delete _0x19955a[_0x1fe81a],_0x1183fd=_0x4f587f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x1183fd&&_0x19955a['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x1183fd&&_0x19955a['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1183fd&&_0x19955a['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1183fd&&_0x19955a['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1183fd&&_0x19955a['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1183fd&&_0x19955a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x49e06b=this['editor'],_0x788822=_0x49e06b['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x788822&&_0x49e06b['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x541de5('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x788822&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x5901ee=>_0x49e06b['plugins']['has'](_0x5901ee))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0x49e06b['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-source-editing-enhanced",
3
- "version": "48.2.0-alpha.4",
3
+ "version": "48.2.0-alpha.5",
4
4
  "description": "Source editing enhanced feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -25,11 +25,11 @@
25
25
  "dist/translations/*.umd.js"
26
26
  ],
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
29
- "@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
30
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
31
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
32
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.4",
28
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
29
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
30
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
31
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
32
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.5",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",