@ckeditor/ckeditor5-source-editing-enhanced 47.7.0-alpha.4 → 47.7.0
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.
- package/build/source-editing-enhanced.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/src/sourceeditingenhancedui.js +1 -1
- package/src/ui/codeeditorview.js +1 -1
- package/src/ui/editsourcecommand.js +1 -1
- package/src/utils/createcodemirroreditor.js +1 -1
- package/src/utils/format.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x5e5ca8,PendingActions as _0x150666,Plugin as _0x34f0ca}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59cdf7,formatHtml as _0x165c33,env as _0x314a0b,uid as _0x142f77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x1e369e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3f4a0d,ButtonView as _0x5310d7,MenuBarMenuListItemButtonView as _0x19fd14}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x4ddaa8,crosshairCursor as _0x26e1bf,drawSelection as _0x3e537e,dropCursor as _0x30fa8c,lineNumbers as _0x415336,highlightActiveLine as _0x21873c,highlightActiveLineGutter as _0x2d5d65,highlightSpecialChars as _0x3dfb4a,rectangularSelection as _0x298b7b,keymap as _0x1837ba}from'@codemirror/view';import{Compartment as _0x298d6d,Transaction as _0x2e776b}from'@codemirror/state';import{bracketMatching as _0x1384f3,foldGutter as _0x1ccaa9,indentOnInput as _0x55f7cb,syntaxHighlighting as _0x534977,defaultHighlightStyle as _0x20fc21,foldKeymap as _0x12f441}from'@codemirror/language';import{toggleTabFocusMode as _0x3adb60,history as _0x93d4e6,defaultKeymap as _0x418102,historyKeymap as _0x2125b8,indentLess as _0x271ef9,indentMore as _0x20fce0,redo as _0x41310c,undo as _0x48c5b1}from'@codemirror/commands';import{autocompletion as _0x13dd65,closeBrackets as _0x382138,closeBracketsKeymap as _0x873b9e,completionKeymap as _0xe29d8e}from'@codemirror/autocomplete';import{html as _0x10c2e3}from'@codemirror/lang-html';import{markdown as _0xdeea45}from'@codemirror/lang-markdown';import{oneDark as _0x3db1e8}from'@codemirror/theme-one-dark';function w(_0x252609,_0x139b42){const t=_0x252609['t'];switch(_0x139b42){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 _0x139b42;}}function r(_0x3476c2){const _0x3fd2b7=_0x3476c2['editing']['view']['document']['roots'],_0x111339=_0x3fd2b7['length'];if(0x0===_0x111339)throw new _0x59cdf7('source-editing-enhanced-editor-no-root',_0x3476c2);if(0x1===_0x111339)return _0x3fd2b7['first']['rootName'];return Array['from'](_0x3476c2['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x3bc745){return tr(_0x3bc745['replace'](/^[\n\s]*/g,''))?_0x3bc745['replace'](/\s+/g,''):_0x3bc745;}function tr(_0x3878db){return _0x3878db['startsWith']('<');}function p(_0x2e8794){const _0x281ce5=[_0x4ddaa8['lineWrapping'],_0x13dd65(),_0x1384f3(),_0x382138(),_0x26e1bf(),_0x3e537e(),_0x30fa8c(),_0x415336(),_0x1ccaa9(),_0x21873c(),_0x2d5d65(),_0x3dfb4a(),_0x93d4e6(),_0x55f7cb(),_0x298b7b(),_0x534977(_0x20fc21,{'fallback':!0x0})],_0x2bc592=new _0x298d6d();_0x281ce5['push'](_0x2bc592['of'](_0x4ddaa8['editable']['of'](!0x0))),'html'===_0x2e8794['syntaxLanguage']?_0x281ce5['push'](_0x10c2e3()):_0x281ce5['push'](_0xdeea45());const _0x3967dc=function(_0x17b2b8){if(_0x17b2b8&&'default'!==_0x17b2b8)return'dark'===_0x17b2b8?_0x3db1e8:_0x17b2b8;return null;}(_0x2e8794['theme']);_0x3967dc&&_0x281ce5['push'](_0x3967dc),_0x281ce5['push'](_0x1837ba['of']([..._0x873b9e,..._0x418102,..._0x2125b8,..._0x12f441,..._0xe29d8e,{'key':'Tab','run':_0x20fce0,'shift':_0x271ef9,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x41310c,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x41310c,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x48c5b1,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x3db881=new _0x4ddaa8({'extensions':_0x281ce5,'parent':_0x2e8794['parent']});return _0x3adb60(_0x3db881),{'focus':()=>{_0x3db881['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3db881['focus']();},'getData':()=>_0x3db881['state']['doc']['toString'](),'setData':_0x1ad888=>{_0x3db881['dispatch']({'changes':{'from':0x0,'to':_0x3db881['state']['doc']['length'],'insert':_0x1ad888},'annotations':_0x2e776b['addToHistory']['of'](!0x1)});},'setReadOnly':_0x3c82a4=>{_0x3db881['dispatch']({'effects':[_0x2bc592['reconfigure'](_0x4ddaa8['editable']['of'](!_0x3c82a4))]});},'destroy':()=>{_0x3db881['destroy']();},'instance':_0x3db881};}class E extends _0x3f4a0d{['_codeEditorApi']=null;['_options'];constructor(_0x35d3ff,_0x1f65f6){super(_0x35d3ff),this['_options']=_0x1f65f6,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']=p({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x5a5212,_0x198c6,_0x164b46)=>{this['setReadOnly'](_0x164b46);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0xf327f){this['_codeEditorApi']['setData'](_0xf327f);}['setReadOnly'](_0x5bcba1){this['_codeEditorApi']['setReadOnly'](_0x5bcba1);}}const b='SourceEditingEnhancedMode';class d extends _0x5e5ca8{constructor(_0xa5ab48){super(_0xa5ab48),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x150666)['on']('change:hasAny',(_0x486bf1,_0x5c4a53,_0x2e7673)=>{_0x2e7673?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x4fc76b=this['editor'];for(const _0x1d3431 of _0x4fc76b['commands']['names']())['replaceSource','editSource']['includes'](_0x1d3431)||_0x4fc76b['commands']['get'](_0x1d3431)['forceDisabled'](b);}['_enableCommands'](){const _0x267e8a=this['editor'];for(const _0xd15ba0 of _0x267e8a['commands']['commands']())_0xd15ba0['clearForceDisabled'](b);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x14de0d=this['editor'],_0x2f086c=_0x14de0d['locale'],_0x3931a5=_0x14de0d['plugins']['get']('Dialog'),_0x3c7266=r(_0x14de0d),_0x45c816=_0x14de0d['data']['get']({'rootName':_0x3c7266}),_0x1d3279=tr(_0x5ed593=_0x45c816)?_0x165c33(_0x5ed593):_0x5ed593;var _0x5ed593;const _0x4e26a0=new E(_0x2f086c,{'syntaxLanguage':_0x14de0d['plugins']['has']('Markdown')?'markdown':'html','theme':_0x14de0d['config']['get']('sourceEditingEnhanced.theme')});let _0x470663=!0x0;const _0x1aaa77=_0x215e7e=>{if(!_0x470663)return;return g(_0x4e26a0['getData']())!==g(_0x1d3279)?window['confirm'](w(_0x2f086c,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x215e7e['stop']():void 0x0;};_0x3931a5['show']({'id':'sourceEditingEnhanced','title':w(_0x2f086c,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x4e26a0,'actionButtons':[{'label':w(_0x2f086c,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x3931a5['hide']();}},{'label':w(_0x2f086c,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x4afe9a=g(_0x4e26a0['getData']())!==g(_0x1d3279);(_0x4afe9a&&_0x14de0d['execute']('replaceSource',_0x4e26a0['getData']()),_0x470663=!0x1,_0x3931a5['hide'](),_0x4afe9a&&'editables'in _0x14de0d['ui']['view'])&&_0x14de0d['ui']['view']['editables'][_0x3c7266]['element']['focus']();},'onCreate':_0x2384f7=>{_0x2384f7['set']('isEnabled',!_0x14de0d['isReadOnly']),_0x2384f7['bind']('isEnabled')['to'](_0x14de0d,'isReadOnly',this,'isEnabled',(_0x575569,_0x5e281c)=>!_0x575569&&_0x5e281c);}}],'onHide':()=>{this['_enableCommands'](),_0x3931a5['off']('hide',_0x1aaa77),_0x4e26a0['destroy']();},'onShow':()=>{_0x4e26a0['bind']('isReadOnly')['to'](_0x14de0d,'isReadOnly',this,'isEnabled',(_0x3abe81,_0x43750f)=>_0x3abe81||!_0x43750f),_0x4e26a0['setData'](_0x1d3279),_0x4e26a0['focus'](),_0x3931a5['on']('hide',_0x1aaa77,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x34f0ca{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x150666];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5f515f=this['editor'],_0x513b37=_0x5f515f['locale'],_0x1c53e0=new d(_0x5f515f);_0x5f515f['commands']['add']('editSource',_0x1c53e0),_0x5f515f['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x3cf8a8=this['_createButton'](_0x5310d7,_0x1c53e0);return _0x3cf8a8['set']({'label':w(_0x513b37,'Source'),'icon':_0x1e369e,'tooltip':w(_0x513b37,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x3cf8a8;}),_0x5f515f['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x3b48b6=this['_createButton'](_0x19fd14,_0x1c53e0,!0x0);return _0x3b48b6['set']({'label':w(_0x513b37,'Edit\x20source\x20modal\x20label'),'icon':_0x1e369e,'role':'menuitemcheckbox'}),_0x3b48b6;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x148768){const _0x530fad=_0x20345a([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]),_0x26c4fe=0x5dba9314,_0x8303d5=0x5dbd1444^_0x26c4fe,_0x50b50e=window[_0x20345a([0x44,0x61,0x74,0x65])][_0x20345a([0x6e,0x6f,0x77])](),_0x2d1a70=_0x148768[_0x20345a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52d31d=new window[(_0x20345a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a37f2=>{_0x2d1a70[_0x20345a([0x6f,0x6e,0x63,0x65])](_0x20345a([0x72,0x65,0x61,0x64,0x79]),_0x1a37f2);}),_0x530109={[_0x20345a([0x6b,0x74,0x79])]:_0x20345a([0x45,0x43]),[_0x20345a([0x75,0x73,0x65])]:_0x20345a([0x73,0x69,0x67]),[_0x20345a([0x63,0x72,0x76])]:_0x20345a([0x50,0x2d,0x32,0x35,0x36]),[_0x20345a([0x78])]:_0x20345a([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]),[_0x20345a([0x79])]:_0x20345a([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]),[_0x20345a([0x61,0x6c,0x67])]:_0x20345a([0x45,0x53,0x32,0x35,0x36])},_0x10a495=_0x2d1a70[_0x20345a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20345a([0x67,0x65,0x74])](_0x20345a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x234170(){let _0x52552f,_0x4f078c=null,_0x1a55ff=null;try{if(_0x10a495==_0x20345a([0x47,0x50,0x4c]))return _0x20345a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52552f=_0x5cfd07(),!_0x52552f)return _0x20345a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52552f[_0x20345a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a55ff=_0x5c9926(_0x52552f[_0x20345a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52552f[_0x20345a([0x6a,0x74,0x69])])),await _0x159195()?_0x439de3()?_0x1d2ca8()?_0x20345a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f75d0()?(_0x52552f[_0x20345a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20345a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f078c=_0x3f63f1(_0x20345a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x329c77()):_0x20345a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20345a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20345a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20345a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d2ca8(){const _0x37759c=[_0x20345a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20345a([0x74,0x72,0x69,0x61,0x6c])][_0x20345a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52552f[_0x20345a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50b50e/0x3e8:0xe10*_0x8303d5;return _0x52552f[_0x20345a([0x65,0x78,0x70])]<_0x37759c;}function _0x439de3(){const _0x9cd04a=_0x52552f[_0x20345a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9cd04a&&(!!_0x9cd04a[_0x20345a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20345a([0x2a]))||!!_0x9cd04a[_0x20345a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20345a([0x53,0x45,0x45])));}function _0x1f75d0(){const _0x2b23c7=_0x52552f[_0x20345a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b23c7||0x0==_0x2b23c7[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21fae2}=new URL(window[_0x20345a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b23c7[_0x20345a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21fae2))return!0x0;const _0x33afc3=_0x21fae2[_0x20345a([0x73,0x70,0x6c,0x69,0x74])](_0x20345a([0x2e]));return _0x2b23c7[_0x20345a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a79a2=>_0x3a79a2[_0x20345a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20345a([0x2a])))[_0x20345a([0x6d,0x61,0x70])](_0x467f11=>_0x467f11[_0x20345a([0x73,0x70,0x6c,0x69,0x74])](_0x20345a([0x2e])))[_0x20345a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x332f87=>_0x332f87[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33afc3[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20345a([0x6d,0x61,0x70])](_0x49d233=>Array(_0x33afc3[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49d233[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20345a([0x66,0x69,0x6c,0x6c])](_0x49d233[0x0]===_0x20345a([0x2a])?_0x20345a([0x2a]):'')[_0x20345a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49d233))[_0x20345a([0x73,0x6f,0x6d,0x65])](_0x3492bb=>_0x33afc3[_0x20345a([0x65,0x76,0x65,0x72,0x79])]((_0x10c602,_0x53c3e9)=>_0x3492bb[_0x53c3e9]===_0x10c602||_0x3492bb[_0x53c3e9]===_0x20345a([0x2a])));}function _0x329c77(){return _0x4f078c&&_0x1a55ff?new window[(_0x20345a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x585c9c,_0x38a9e5)=>{_0x4f078c[_0x20345a([0x74,0x68,0x65,0x6e])](_0x585c9c,_0x38a9e5),_0x1a55ff[_0x20345a([0x74,0x68,0x65,0x6e])](_0x3a1703=>{_0x3a1703!=_0x20345a([0x56,0x61,0x6c,0x69,0x64])&&_0x585c9c(_0x3a1703);},_0x38a9e5);}):_0x4f078c||_0x1a55ff||_0x20345a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c9926(_0x552587,_0x923851){return new window[(_0x20345a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d7e8d=>{if(_0x2f013a())return _0x5d7e8d(_0x20345a([0x56,0x61,0x6c,0x69,0x64]));_0x18633a(),_0x2d1a70[_0x20345a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20345a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3098ed=!0x1;const _0x5cdb29=_0x142f77();function _0x2a01b0(_0x3ca9dc){return!!_0x3ca9dc&&(typeof _0x3ca9dc===_0x20345a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ca9dc===_0x20345a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ca9dc[_0x20345a([0x74,0x68,0x65,0x6e])]===_0x20345a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ca9dc[_0x20345a([0x63,0x61,0x74,0x63,0x68])]===_0x20345a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x189519(_0x2ca96b){_0x113e5f(_0x2ca96b)[_0x20345a([0x74,0x68,0x65,0x6e])](_0x538a4=>{if(!_0x538a4||_0x538a4[_0x20345a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20345a([0x6f,0x6b]))return _0x20345a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x368e67(_0x4a2b82(_0x5cdb29+_0x923851))!=_0x538a4[_0x20345a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20345a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20345a([0x56,0x61,0x6c,0x69,0x64]);})[_0x20345a([0x74,0x68,0x65,0x6e])](_0x514456=>(_0x275ca4(),_0x514456),()=>{const _0x4d34c3=_0x48d9ce();return null==_0x4d34c3?(_0x275ca4(),_0x20345a([0x56,0x61,0x6c,0x69,0x64])):_0x20345a(_0x50b50e-_0x4d34c3>(0x79b61714^_0x26c4fe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20345a([0x74,0x68,0x65,0x6e])](_0x5d7e8d)[_0x20345a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d7e8d(_0x20345a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b0954=0x5d8c7d94^_0x26c4fe;function _0x275ca4(){const _0x1c39e5=_0x20345a([0x6c,0x6c,0x63,0x74,0x2d])+_0x368e67(_0x4a2b82(_0x552587)),_0x301623=_0xa619d4(_0x368e67(window[_0x20345a([0x4d,0x61,0x74,0x68])][_0x20345a([0x63,0x65,0x69,0x6c])](_0x50b50e/_0x1b0954)));window[_0x20345a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20345a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c39e5,_0x301623);}function _0x48d9ce(){const _0x5a91db=_0x20345a([0x6c,0x6c,0x63,0x74,0x2d])+_0x368e67(_0x4a2b82(_0x552587)),_0x3965db=window[_0x20345a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20345a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a91db);return _0x3965db?window[_0x20345a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa619d4(_0x3965db),0x10)*_0x1b0954:null;}function _0x113e5f(_0x21fd4e){return new window[(_0x20345a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57d390,_0x5dd7c0)=>{_0x21fd4e[_0x20345a([0x74,0x68,0x65,0x6e])](_0x57d390,_0x5dd7c0),window[_0x20345a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dd7c0,0x5dbb47d4^_0x26c4fe);});}}_0x2d1a70[_0x20345a([0x6f,0x6e])](_0x20345a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x32db18,_0x541cd8)=>{if(_0x541cd8[0x0]!=_0x552587)return _0x5d7e8d(_0x20345a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x541cd8[0x1]={..._0x541cd8[0x1],[_0x20345a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5cdb29};},{[_0x20345a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20345a([0x68,0x69,0x67,0x68])}),_0x2d1a70[_0x20345a([0x6f,0x6e])](_0x20345a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x579a63=>{_0x2a01b0(_0x579a63[_0x20345a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3098ed=!0x0,_0x189519(_0x579a63[_0x20345a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20345a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20345a([0x6c,0x6f,0x77])}),_0x52d31d[_0x20345a([0x74,0x68,0x65,0x6e])](()=>{_0x3098ed||_0x5d7e8d(_0x20345a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f013a(){return _0x2d1a70[_0x20345a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20345a([0x76,0x69,0x65,0x77])][_0x20345a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20345a([0x61,0x75,0x74,0x6f]);}function _0x18633a(){_0x2d1a70[_0x20345a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20345a([0x76,0x69,0x65,0x77])][_0x20345a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20345a([0x61,0x75,0x74,0x6f]);}}function _0x3f63f1(_0x519f6f){const _0x8c5a92=[new window[(_0x20345a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41d54c=>setTimeout(_0x41d54c,0x5db3add8^_0x26c4fe)),_0x52d31d[_0x20345a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20345a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35115c=>{let _0x412d17=0x0;_0x2d1a70[_0x20345a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20345a([0x6f,0x6e])](_0x20345a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25a40d,_0x5c4988)=>{_0x5c4988[0x0][_0x20345a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x412d17++,_0x412d17==(0x5dba96fc^_0x26c4fe)&&(_0x35115c(),_0x25a40d[_0x20345a([0x6f,0x66,0x66])]());});}))];return window[_0x20345a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20345a([0x72,0x61,0x63,0x65])](_0x8c5a92)[_0x20345a([0x74,0x68,0x65,0x6e])](()=>_0x519f6f);}async function _0x2283b3(){await _0x52d31d,_0x2d1a70[_0x20345a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20345a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52d6c8,_0x2d1a70[_0x20345a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20345a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52d6c8,_0x2d1a70[_0x20345a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20345a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xeff175(_0x307fdd){const _0x37eb29=_0x47d271();_0x2d1a70[_0x37eb29]=_0x20345a([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])+_0x307fdd,_0x307fdd!=_0x20345a([0x56,0x61,0x6c,0x69,0x64])&&_0x2283b3();}function _0x47d271(){const _0x352db8=window[_0x20345a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20345a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20345a([0x6e,0x6f,0x77])]())[_0x20345a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20345a([0x2e]),'');let _0x5ac1ae=_0x20345a([0x4e]);for(let _0x250b13=0x0;_0x250b13<_0x352db8[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x250b13+=0x2){let _0x55f5d8=window[_0x20345a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x352db8[_0x20345a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x250b13,_0x250b13+0x2));_0x55f5d8>=_0x530fad[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55f5d8-=_0x530fad[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ac1ae+=_0x530fad[_0x55f5d8];}return _0x5ac1ae;}function _0x5cfd07(){const _0x1e8cd1=_0x10a495[_0x20345a([0x73,0x70,0x6c,0x69,0x74])](_0x20345a([0x2e]));if(0x3!=_0x1e8cd1[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d4bde(_0x1e8cd1[0x1]);function _0x5d4bde(_0x44b9cd){const _0x2428bb=_0x55e888(_0x44b9cd);return _0x2428bb&&_0x2e3258()?_0x2428bb:null;function _0x2e3258(){const _0x45df24=_0x2428bb[_0x20345a([0x6a,0x74,0x69])],_0x5242ae=window[_0x20345a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45df24[_0x20345a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45df24[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f2552={..._0x2428bb,[_0x20345a([0x6a,0x74,0x69])]:_0x45df24[_0x20345a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45df24[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f2552[_0x20345a([0x76,0x63])],_0x4a2b82(_0x2f2552)==_0x5242ae;}}}async function _0x159195(){let _0x428d3a=!0x0;try{const _0x1fd761=_0x10a495[_0x20345a([0x73,0x70,0x6c,0x69,0x74])](_0x20345a([0x2e])),[_0x1442cc,_0x367cbc,_0x58b12b]=_0x1fd761;return _0xb5d425(_0x1442cc),await _0x53ae38(_0x1442cc,_0x367cbc,_0x58b12b),_0x428d3a;}catch{return!0x1;}function _0xb5d425(_0x3533b0){const _0x58d5c3=_0x55e888(_0x3533b0);_0x58d5c3&&_0x58d5c3[_0x20345a([0x61,0x6c,0x67])]==_0x20345a([0x45,0x53,0x32,0x35,0x36])||(_0x428d3a=!0x1);}async function _0x53ae38(_0x274eef,_0x468e95,_0x3c04fa){const _0x55a30a=window[_0x20345a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20345a([0x66,0x72,0x6f,0x6d])](_0x5f1f04(_0x3c04fa),_0x56e38d=>_0x56e38d[_0x20345a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc04adf=new window[(_0x20345a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20345a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x274eef+_0x20345a([0x2e])+_0x468e95),_0x3accad=window[_0x20345a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20345a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3accad)return;const _0x46f8c3=await _0x3accad[_0x20345a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20345a([0x6a,0x77,0x6b]),_0x530109,{[_0x20345a([0x6e,0x61,0x6d,0x65])]:_0x20345a([0x45,0x43,0x44,0x53,0x41]),[_0x20345a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20345a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20345a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3accad[_0x20345a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20345a([0x6e,0x61,0x6d,0x65])]:_0x20345a([0x45,0x43,0x44,0x53,0x41]),[_0x20345a([0x68,0x61,0x73,0x68])]:{[_0x20345a([0x6e,0x61,0x6d,0x65])]:_0x20345a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46f8c3,_0x55a30a,_0xc04adf)||(_0x428d3a=!0x1);}}function _0x55e888(_0x3ecfff){return _0x3ecfff[_0x20345a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20345a([0x65,0x79]))?JSON[_0x20345a([0x70,0x61,0x72,0x73,0x65])](_0x5f1f04(_0x3ecfff)):null;}function _0x5f1f04(_0x262868){return window[_0x20345a([0x61,0x74,0x6f,0x62])](_0x262868[_0x20345a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20345a([0x2b]))[_0x20345a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20345a([0x2f])));}function _0x4a2b82(_0x210297){let _0x243201=0x1505;function _0x529f7e(_0x5bc310){for(let _0x18aaca=0x0;_0x18aaca<_0x5bc310[_0x20345a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18aaca++){const _0x31d330=_0x5bc310[_0x20345a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18aaca);_0x243201=(_0x243201<<0x5)+_0x243201+_0x31d330,_0x243201&=_0x243201;}}function _0x423743(_0x3fc3cd){Array[_0x20345a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3fc3cd)?_0x3fc3cd[_0x20345a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x423743):_0x3fc3cd&&typeof _0x3fc3cd==_0x20345a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20345a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3fc3cd)[_0x20345a([0x73,0x6f,0x72,0x74])]()[_0x20345a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e68a2,_0x3c8e6c])=>{_0x529f7e(_0x5e68a2),_0x423743(_0x3c8e6c);}):_0x529f7e(window[_0x20345a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3fc3cd));}return _0x423743(_0x210297),_0x243201>>>0x0;}function _0x368e67(_0x530bd7){return _0x530bd7[_0x20345a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20345a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20345a([0x30]));}function _0xa619d4(_0x5e8bbf){return _0x5e8bbf[_0x20345a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20345a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20345a([0x6a,0x6f,0x69,0x6e])]('');}function _0x52d6c8(){}function _0x20345a(_0x5d7c89){return _0x5d7c89['map'](_0x15d48a=>String['fromCharCode'](_0x15d48a))['join']('');}_0xeff175(await _0x234170());}(this);}['_createButton'](_0x179982,_0x2e337b,_0x214fdb=!0x1){const _0x2cee01=new _0x179982(this['editor']['locale']);return _0x2cee01['set']({'withText':_0x214fdb,'isToggleable':!0x1}),_0x2cee01['bind']('isEnabled')['to'](_0x2e337b,'isEnabled'),this['listenTo'](_0x2cee01,'execute',()=>_0x2e337b['execute']()),_0x2cee01;}['_registerKeybindings'](){const _0x3a2f63=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x3a2f63,'Source\x20Editing\x20Enhanced')});const _0x59cb4e=_0x314a0b['isMac']||_0x314a0b['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x3a2f63,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x3a2f63,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x3a2f63,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x3a2f63,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x3a2f63,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x3a2f63,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x3a2f63,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x59cb4e?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x3a2f63,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x3a2f63,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x3a2f63,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x3a2f63,'Select\x20line'),'keystroke':_0x59cb4e?'Ctrl!+L':'Alt+L'},{'label':w(_0x3a2f63,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x59cb4e?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x3a2f63,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x3a2f63,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x3a2f63,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x3a2f63,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x3a2f63,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x59cb4e?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x5e5ca8{constructor(_0x1f0dc3){super(_0x1f0dc3),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x2a65b8,_0x41f0ec){const _0x29119f=this['editor'],_0xe3b9f1=_0x41f0ec?.['rootName']??r(_0x29119f);_0x29119f['data']['set']({[_0xe3b9f1]:_0x2a65b8},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ee extends _0x34f0ca{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x41ceea){super(_0x41ceea),_0x41ceea['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new c(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x320a01=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x28ca23;for(const _0x2f5ac8 in _0x320a01){const _0x67c185=_0x2f5ac8,_0x34c349=_0x320a01[_0x67c185];if('sourceEditingEnhancedLicenseKeyValid'==_0x34c349||'sourceEditingEnhancedLicenseKeyInvalid'==_0x34c349||'sourceEditingEnhancedLicenseKeyExpired'==_0x34c349||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x34c349||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x34c349||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x34c349||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x34c349){delete _0x320a01[_0x67c185],_0x28ca23=_0x34c349,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x28ca23&&_0x320a01['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x28ca23&&_0x320a01['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x28ca23&&_0x320a01['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x28ca23&&_0x320a01['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x28ca23&&_0x320a01['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x28ca23&&_0x320a01['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x4c1820=this['editor'],_0x3b2ea8=_0x4c1820['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x3b2ea8&&_0x4c1820['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x59cdf7('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x3b2ea8&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x4ab9df=>_0x4c1820['plugins']['has'](_0x4ab9df))&&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.'),_0x4c1820['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{d as EditSourceCommand,c as ReplaceSourceCommand,ee as SourceEditingEnhanced};
|
|
23
|
+
import{Command as _0x49d699,PendingActions as _0x537ede,Plugin as _0x791cb4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1daf16,formatHtml as _0x338f6c,env as _0x13589f,uid as _0x798938}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x29fcd3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x72dd5c,ButtonView as _0x5abf85,MenuBarMenuListItemButtonView as _0x20c0f5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x471913,crosshairCursor as _0x31cf6f,drawSelection as _0xbcfc3,dropCursor as _0x5ccba7,lineNumbers as _0x5f56b2,highlightActiveLine as _0x4421b3,highlightActiveLineGutter as _0x1f7750,highlightSpecialChars as _0x47c2d1,rectangularSelection as _0x2f62e4,keymap as _0x5d75ad}from'@codemirror/view';import{Compartment as _0x42f860,Transaction as _0x50ec0c}from'@codemirror/state';import{bracketMatching as _0x3a24cf,foldGutter as _0xd99aa7,indentOnInput as _0x3b0d58,syntaxHighlighting as _0x3d745d,defaultHighlightStyle as _0x456c0f,foldKeymap as _0x33ee82}from'@codemirror/language';import{toggleTabFocusMode as _0x317b1f,history as _0xaf361a,defaultKeymap as _0x3218ba,historyKeymap as _0x529757,indentLess as _0x5bc3c5,indentMore as _0x325734,redo as _0x22c6ec,undo as _0x37d36c}from'@codemirror/commands';import{autocompletion as _0x27dabf,closeBrackets as _0x1becee,closeBracketsKeymap as _0x5d4cdd,completionKeymap as _0x2bd232}from'@codemirror/autocomplete';import{html as _0x956d40}from'@codemirror/lang-html';import{markdown as _0x372cdb}from'@codemirror/lang-markdown';import{oneDark as _0x47b62a}from'@codemirror/theme-one-dark';function w(_0x5a7b96,_0x3c0061){const t=_0x5a7b96['t'];switch(_0x3c0061){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 _0x3c0061;}}function r(_0x244893){const _0x7cfc=_0x244893['editing']['view']['document']['roots'],_0x4e01e3=_0x7cfc['length'];if(0x0===_0x4e01e3)throw new _0x1daf16('source-editing-enhanced-editor-no-root',_0x244893);if(0x1===_0x4e01e3)return _0x7cfc['first']['rootName'];return Array['from'](_0x244893['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function $(_0x4a3740){return X(_0x4a3740['replace'](/^[\n\s]*/g,''))?_0x4a3740['replace'](/\s+/g,''):_0x4a3740;}function X(_0x4d17a3){return _0x4d17a3['startsWith']('<');}function Y(_0x3df808){const _0x59a3d6=[_0x471913['lineWrapping'],_0x27dabf(),_0x3a24cf(),_0x1becee(),_0x31cf6f(),_0xbcfc3(),_0x5ccba7(),_0x5f56b2(),_0xd99aa7(),_0x4421b3(),_0x1f7750(),_0x47c2d1(),_0xaf361a(),_0x3b0d58(),_0x2f62e4(),_0x3d745d(_0x456c0f,{'fallback':!0x0})],_0x2eebdd=new _0x42f860();_0x59a3d6['push'](_0x2eebdd['of'](_0x471913['editable']['of'](!0x0))),'html'===_0x3df808['syntaxLanguage']?_0x59a3d6['push'](_0x956d40()):_0x59a3d6['push'](_0x372cdb());const _0x9b88ee=function(_0x2ef151){if(_0x2ef151&&'default'!==_0x2ef151)return'dark'===_0x2ef151?_0x47b62a:_0x2ef151;return null;}(_0x3df808['theme']);_0x9b88ee&&_0x59a3d6['push'](_0x9b88ee),_0x59a3d6['push'](_0x5d75ad['of']([..._0x5d4cdd,..._0x3218ba,..._0x529757,..._0x33ee82,..._0x2bd232,{'key':'Tab','run':_0x325734,'shift':_0x5bc3c5,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x22c6ec,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x22c6ec,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x37d36c,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x36fac2=new _0x471913({'extensions':_0x59a3d6,'parent':_0x3df808['parent']});return _0x317b1f(_0x36fac2),{'focus':()=>{_0x36fac2['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x36fac2['focus']();},'getData':()=>_0x36fac2['state']['doc']['toString'](),'setData':_0x15eb09=>{_0x36fac2['dispatch']({'changes':{'from':0x0,'to':_0x36fac2['state']['doc']['length'],'insert':_0x15eb09},'annotations':_0x50ec0c['addToHistory']['of'](!0x1)});},'setReadOnly':_0x22debb=>{_0x36fac2['dispatch']({'effects':[_0x2eebdd['reconfigure'](_0x471913['editable']['of'](!_0x22debb))]});},'destroy':()=>{_0x36fac2['destroy']();},'instance':_0x36fac2};}class ee extends _0x72dd5c{['_codeEditorApi']=null;['_options'];constructor(_0x3817de,_0x32f428){super(_0x3817de),this['_options']=_0x32f428,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']=Y({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x16c49d,_0x15ea94,_0x37380b)=>{this['setReadOnly'](_0x37380b);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x4023e8){this['_codeEditorApi']['setData'](_0x4023e8);}['setReadOnly'](_0x4bb809){this['_codeEditorApi']['setReadOnly'](_0x4bb809);}}const te='SourceEditingEnhancedMode';class d extends _0x49d699{constructor(_0x10d292){super(_0x10d292),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x537ede)['on']('change:hasAny',(_0x4ac934,_0x26990c,_0x3da447)=>{_0x3da447?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0xef1113=this['editor'];for(const _0x110b64 of _0xef1113['commands']['names']())['replaceSource','editSource']['includes'](_0x110b64)||_0xef1113['commands']['get'](_0x110b64)['forceDisabled'](te);}['_enableCommands'](){const _0x2ef611=this['editor'];for(const _0x571a43 of _0x2ef611['commands']['commands']())_0x571a43['clearForceDisabled'](te);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1d3e85=this['editor'],_0x13a248=_0x1d3e85['locale'],_0x351893=_0x1d3e85['plugins']['get']('Dialog'),_0x27fc74=r(_0x1d3e85),_0x2d153a=_0x1d3e85['data']['get']({'rootName':_0x27fc74}),_0x3cd8ae=X(_0x1af203=_0x2d153a)?_0x338f6c(_0x1af203):_0x1af203;var _0x1af203;const _0x434c0d=new ee(_0x13a248,{'syntaxLanguage':_0x1d3e85['plugins']['has']('Markdown')?'markdown':'html','theme':_0x1d3e85['config']['get']('sourceEditingEnhanced.theme')});let _0x90b364=!0x0;const _0x2b40e8=_0x1a2b5b=>{if(!_0x90b364)return;return $(_0x434c0d['getData']())!==$(_0x3cd8ae)?window['confirm'](w(_0x13a248,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x1a2b5b['stop']():void 0x0;};_0x351893['show']({'id':'sourceEditingEnhanced','title':w(_0x13a248,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x434c0d,'actionButtons':[{'label':w(_0x13a248,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x351893['hide']();}},{'label':w(_0x13a248,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x164903=$(_0x434c0d['getData']())!==$(_0x3cd8ae);(_0x164903&&_0x1d3e85['execute']('replaceSource',_0x434c0d['getData']()),_0x90b364=!0x1,_0x351893['hide'](),_0x164903&&'editables'in _0x1d3e85['ui']['view'])&&_0x1d3e85['ui']['view']['editables'][_0x27fc74]['element']['focus']();},'onCreate':_0x243bf1=>{_0x243bf1['set']('isEnabled',!_0x1d3e85['isReadOnly']),_0x243bf1['bind']('isEnabled')['to'](_0x1d3e85,'isReadOnly',this,'isEnabled',(_0x577863,_0x4df502)=>!_0x577863&&_0x4df502);}}],'onHide':()=>{this['_enableCommands'](),_0x351893['off']('hide',_0x2b40e8),_0x434c0d['destroy']();},'onShow':()=>{_0x434c0d['bind']('isReadOnly')['to'](_0x1d3e85,'isReadOnly',this,'isEnabled',(_0x2a0c59,_0x5381a9)=>_0x2a0c59||!_0x5381a9),_0x434c0d['setData'](_0x3cd8ae),_0x434c0d['focus'](),_0x351893['on']('hide',_0x2b40e8,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x791cb4{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x537ede];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x33e866=this['editor'],_0x516bd6=_0x33e866['locale'],_0x2ee503=new d(_0x33e866);_0x33e866['commands']['add']('editSource',_0x2ee503),_0x33e866['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x263074=this['_createButton'](_0x5abf85,_0x2ee503);return _0x263074['set']({'label':w(_0x516bd6,'Source'),'icon':_0x29fcd3,'tooltip':w(_0x516bd6,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x263074;}),_0x33e866['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x342f8f=this['_createButton'](_0x20c0f5,_0x2ee503,!0x0);return _0x342f8f['set']({'label':w(_0x516bd6,'Edit\x20source\x20modal\x20label'),'icon':_0x29fcd3,'role':'menuitemcheckbox'}),_0x342f8f;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x10836b){const _0x26f09e=_0x56e067([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]),_0x2d8e04=0x5dba9314,_0x310bde=0x5dbd147c^_0x2d8e04,_0x372630=window[_0x56e067([0x44,0x61,0x74,0x65])][_0x56e067([0x6e,0x6f,0x77])](),_0x44fc54=_0x10836b[_0x56e067([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a397a=new window[(_0x56e067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d03ba=>{_0x44fc54[_0x56e067([0x6f,0x6e,0x63,0x65])](_0x56e067([0x72,0x65,0x61,0x64,0x79]),_0x1d03ba);}),_0x10e815={[_0x56e067([0x6b,0x74,0x79])]:_0x56e067([0x45,0x43]),[_0x56e067([0x75,0x73,0x65])]:_0x56e067([0x73,0x69,0x67]),[_0x56e067([0x63,0x72,0x76])]:_0x56e067([0x50,0x2d,0x32,0x35,0x36]),[_0x56e067([0x78])]:_0x56e067([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]),[_0x56e067([0x79])]:_0x56e067([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]),[_0x56e067([0x61,0x6c,0x67])]:_0x56e067([0x45,0x53,0x32,0x35,0x36])},_0x984738=_0x44fc54[_0x56e067([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56e067([0x67,0x65,0x74])](_0x56e067([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4eb172(){let _0x3e3119,_0x2035fd=null,_0x1018cd=null;try{if(_0x984738==_0x56e067([0x47,0x50,0x4c]))return _0x56e067([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e3119=_0x16e4dc(),!_0x3e3119)return _0x56e067([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e3119[_0x56e067([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1018cd=_0x5320cd(_0x3e3119[_0x56e067([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e3119[_0x56e067([0x6a,0x74,0x69])])),await _0x29fa21()?_0x230d9e()?_0x393c9b()?_0x56e067([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1be7b5()?(_0x3e3119[_0x56e067([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56e067([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2035fd=_0x1c2949(_0x56e067([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4886ad()):_0x56e067([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56e067([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56e067([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x56e067([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x393c9b(){const _0x3fb2a7=[_0x56e067([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56e067([0x74,0x72,0x69,0x61,0x6c])][_0x56e067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e3119[_0x56e067([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x372630/0x3e8:0xe10*_0x310bde;return _0x3e3119[_0x56e067([0x65,0x78,0x70])]<_0x3fb2a7;}function _0x230d9e(){const _0x30d48b=_0x3e3119[_0x56e067([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30d48b&&(!!_0x30d48b[_0x56e067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e067([0x2a]))||!!_0x30d48b[_0x56e067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e067([0x53,0x45,0x45])));}function _0x1be7b5(){const _0x143769=_0x3e3119[_0x56e067([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x143769||0x0==_0x143769[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d0484}=new URL(window[_0x56e067([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x143769[_0x56e067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d0484))return!0x0;const _0x9837d3=_0x1d0484[_0x56e067([0x73,0x70,0x6c,0x69,0x74])](_0x56e067([0x2e]));return _0x143769[_0x56e067([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ae04c=>_0x1ae04c[_0x56e067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e067([0x2a])))[_0x56e067([0x6d,0x61,0x70])](_0x183dcc=>_0x183dcc[_0x56e067([0x73,0x70,0x6c,0x69,0x74])](_0x56e067([0x2e])))[_0x56e067([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5833c0=>_0x5833c0[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9837d3[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56e067([0x6d,0x61,0x70])](_0x134eb1=>Array(_0x9837d3[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x134eb1[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56e067([0x66,0x69,0x6c,0x6c])](_0x134eb1[0x0]===_0x56e067([0x2a])?_0x56e067([0x2a]):'')[_0x56e067([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x134eb1))[_0x56e067([0x73,0x6f,0x6d,0x65])](_0x5d781e=>_0x9837d3[_0x56e067([0x65,0x76,0x65,0x72,0x79])]((_0xbff607,_0x5cc64c)=>_0x5d781e[_0x5cc64c]===_0xbff607||_0x5d781e[_0x5cc64c]===_0x56e067([0x2a])));}function _0x4886ad(){return _0x2035fd&&_0x1018cd?new window[(_0x56e067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c4796,_0x5e3695)=>{_0x2035fd[_0x56e067([0x74,0x68,0x65,0x6e])](_0x2c4796,_0x5e3695),_0x1018cd[_0x56e067([0x74,0x68,0x65,0x6e])](_0x4fb7eb=>{_0x4fb7eb!=_0x56e067([0x56,0x61,0x6c,0x69,0x64])&&_0x2c4796(_0x4fb7eb);},_0x5e3695);}):_0x2035fd||_0x1018cd||_0x56e067([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5320cd(_0xbead56,_0x2b0615){return new window[(_0x56e067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x128fd3=>{if(_0x46afce())return _0x128fd3(_0x56e067([0x56,0x61,0x6c,0x69,0x64]));_0x3b9b26(),_0x44fc54[_0x56e067([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56e067([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e18f7=!0x1;const _0x2c6049=_0x798938();function _0x203760(_0xa312a1){return!!_0xa312a1&&(typeof _0xa312a1===_0x56e067([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa312a1===_0x56e067([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa312a1[_0x56e067([0x74,0x68,0x65,0x6e])]===_0x56e067([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa312a1[_0x56e067([0x63,0x61,0x74,0x63,0x68])]===_0x56e067([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x567bb4(_0x40de48){_0x25e8d9(_0x40de48)[_0x56e067([0x74,0x68,0x65,0x6e])](_0x275efc=>{if(!_0x275efc||_0x275efc[_0x56e067([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56e067([0x6f,0x6b]))return _0x56e067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48fdf8(_0x42ba7e(_0x2c6049+_0x2b0615))!=_0x275efc[_0x56e067([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56e067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56e067([0x56,0x61,0x6c,0x69,0x64]);})[_0x56e067([0x74,0x68,0x65,0x6e])](_0xbbdc30=>(_0x5f2942(),_0xbbdc30),()=>{const _0x29dc33=_0x6841b1();return null==_0x29dc33?(_0x5f2942(),_0x56e067([0x56,0x61,0x6c,0x69,0x64])):_0x56e067(_0x372630-_0x29dc33>(0x79b61714^_0x2d8e04)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56e067([0x74,0x68,0x65,0x6e])](_0x128fd3)[_0x56e067([0x63,0x61,0x74,0x63,0x68])](()=>{_0x128fd3(_0x56e067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54cabc=0x5d8c7d94^_0x2d8e04;function _0x5f2942(){const _0x545ed5=_0x56e067([0x6c,0x6c,0x63,0x74,0x2d])+_0x48fdf8(_0x42ba7e(_0xbead56)),_0x31fde0=_0x3d08df(_0x48fdf8(window[_0x56e067([0x4d,0x61,0x74,0x68])][_0x56e067([0x63,0x65,0x69,0x6c])](_0x372630/_0x54cabc)));window[_0x56e067([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56e067([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x545ed5,_0x31fde0);}function _0x6841b1(){const _0x5a03ff=_0x56e067([0x6c,0x6c,0x63,0x74,0x2d])+_0x48fdf8(_0x42ba7e(_0xbead56)),_0x5167b4=window[_0x56e067([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56e067([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a03ff);return _0x5167b4?window[_0x56e067([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d08df(_0x5167b4),0x10)*_0x54cabc:null;}function _0x25e8d9(_0x38e99e){return new window[(_0x56e067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30cefc,_0x257f82)=>{_0x38e99e[_0x56e067([0x74,0x68,0x65,0x6e])](_0x30cefc,_0x257f82),window[_0x56e067([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x257f82,0x5dbb47d4^_0x2d8e04);});}}_0x44fc54[_0x56e067([0x6f,0x6e])](_0x56e067([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x92849b,_0x1970f9)=>{if(_0x1970f9[0x0]!=_0xbead56)return _0x128fd3(_0x56e067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1970f9[0x1]={..._0x1970f9[0x1],[_0x56e067([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c6049};},{[_0x56e067([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56e067([0x68,0x69,0x67,0x68])}),_0x44fc54[_0x56e067([0x6f,0x6e])](_0x56e067([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x165479=>{_0x203760(_0x165479[_0x56e067([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e18f7=!0x0,_0x567bb4(_0x165479[_0x56e067([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56e067([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56e067([0x6c,0x6f,0x77])}),_0x2a397a[_0x56e067([0x74,0x68,0x65,0x6e])](()=>{_0x5e18f7||_0x128fd3(_0x56e067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46afce(){return _0x44fc54[_0x56e067([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56e067([0x76,0x69,0x65,0x77])][_0x56e067([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56e067([0x61,0x75,0x74,0x6f]);}function _0x3b9b26(){_0x44fc54[_0x56e067([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56e067([0x76,0x69,0x65,0x77])][_0x56e067([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56e067([0x61,0x75,0x74,0x6f]);}}function _0x1c2949(_0x292815){const _0x166aa5=[new window[(_0x56e067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x457f0e=>setTimeout(_0x457f0e,0x5db3add8^_0x2d8e04)),_0x2a397a[_0x56e067([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56e067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc70250=>{let _0x944a77=0x0;_0x44fc54[_0x56e067([0x6d,0x6f,0x64,0x65,0x6c])][_0x56e067([0x6f,0x6e])](_0x56e067([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd479fa,_0x1a1a25)=>{_0x1a1a25[0x0][_0x56e067([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x944a77++,_0x944a77==(0x5dba96fc^_0x2d8e04)&&(_0xc70250(),_0xd479fa[_0x56e067([0x6f,0x66,0x66])]());});}))];return window[_0x56e067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56e067([0x72,0x61,0x63,0x65])](_0x166aa5)[_0x56e067([0x74,0x68,0x65,0x6e])](()=>_0x292815);}async function _0x194820(){await _0x2a397a,_0x44fc54[_0x56e067([0x6d,0x6f,0x64,0x65,0x6c])][_0x56e067([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33dd55,_0x44fc54[_0x56e067([0x6d,0x6f,0x64,0x65,0x6c])][_0x56e067([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33dd55,_0x44fc54[_0x56e067([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56e067([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f7d19(_0x1531aa){const _0x379f9a=_0x41e3e5();_0x44fc54[_0x379f9a]=_0x56e067([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])+_0x1531aa,_0x1531aa!=_0x56e067([0x56,0x61,0x6c,0x69,0x64])&&_0x194820();}function _0x41e3e5(){const _0x68904f=window[_0x56e067([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56e067([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56e067([0x6e,0x6f,0x77])]())[_0x56e067([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56e067([0x2e]),'');let _0x1cadbc=_0x56e067([0x4e]);for(let _0x93165b=0x0;_0x93165b<_0x68904f[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x93165b+=0x2){let _0x3f45fa=window[_0x56e067([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x68904f[_0x56e067([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x93165b,_0x93165b+0x2));_0x3f45fa>=_0x26f09e[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f45fa-=_0x26f09e[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1cadbc+=_0x26f09e[_0x3f45fa];}return _0x1cadbc;}function _0x16e4dc(){const _0xb433d8=_0x984738[_0x56e067([0x73,0x70,0x6c,0x69,0x74])](_0x56e067([0x2e]));if(0x3!=_0xb433d8[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3494a3(_0xb433d8[0x1]);function _0x3494a3(_0x323da7){const _0x4eb2ea=_0x2d8e21(_0x323da7);return _0x4eb2ea&&_0x53836f()?_0x4eb2ea:null;function _0x53836f(){const _0x33e179=_0x4eb2ea[_0x56e067([0x6a,0x74,0x69])],_0x3468bb=window[_0x56e067([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33e179[_0x56e067([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33e179[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x295807={..._0x4eb2ea,[_0x56e067([0x6a,0x74,0x69])]:_0x33e179[_0x56e067([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33e179[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x295807[_0x56e067([0x76,0x63])],_0x42ba7e(_0x295807)==_0x3468bb;}}}async function _0x29fa21(){let _0x29f84e=!0x0;try{const _0x3a926d=_0x984738[_0x56e067([0x73,0x70,0x6c,0x69,0x74])](_0x56e067([0x2e])),[_0x362f99,_0x42ad9d,_0x2a7e8f]=_0x3a926d;return _0x515e7a(_0x362f99),await _0x2d3bcf(_0x362f99,_0x42ad9d,_0x2a7e8f),_0x29f84e;}catch{return!0x1;}function _0x515e7a(_0x345289){const _0x1c1aad=_0x2d8e21(_0x345289);_0x1c1aad&&_0x1c1aad[_0x56e067([0x61,0x6c,0x67])]==_0x56e067([0x45,0x53,0x32,0x35,0x36])||(_0x29f84e=!0x1);}async function _0x2d3bcf(_0x50a06a,_0x4a6412,_0x17ba25){const _0x15afaf=window[_0x56e067([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56e067([0x66,0x72,0x6f,0x6d])](_0xa74f90(_0x17ba25),_0x102de4=>_0x102de4[_0x56e067([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b8cd0=new window[(_0x56e067([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56e067([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50a06a+_0x56e067([0x2e])+_0x4a6412),_0x10720f=window[_0x56e067([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56e067([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10720f)return;const _0x273ebe=await _0x10720f[_0x56e067([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56e067([0x6a,0x77,0x6b]),_0x10e815,{[_0x56e067([0x6e,0x61,0x6d,0x65])]:_0x56e067([0x45,0x43,0x44,0x53,0x41]),[_0x56e067([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56e067([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56e067([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10720f[_0x56e067([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56e067([0x6e,0x61,0x6d,0x65])]:_0x56e067([0x45,0x43,0x44,0x53,0x41]),[_0x56e067([0x68,0x61,0x73,0x68])]:{[_0x56e067([0x6e,0x61,0x6d,0x65])]:_0x56e067([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x273ebe,_0x15afaf,_0x3b8cd0)||(_0x29f84e=!0x1);}}function _0x2d8e21(_0x574669){return _0x574669[_0x56e067([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56e067([0x65,0x79]))?JSON[_0x56e067([0x70,0x61,0x72,0x73,0x65])](_0xa74f90(_0x574669)):null;}function _0xa74f90(_0x46b573){return window[_0x56e067([0x61,0x74,0x6f,0x62])](_0x46b573[_0x56e067([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56e067([0x2b]))[_0x56e067([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56e067([0x2f])));}function _0x42ba7e(_0x478d82){let _0x407d02=0x1505;function _0x3b2add(_0x77a92b){for(let _0x507e5a=0x0;_0x507e5a<_0x77a92b[_0x56e067([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x507e5a++){const _0x17b757=_0x77a92b[_0x56e067([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x507e5a);_0x407d02=(_0x407d02<<0x5)+_0x407d02+_0x17b757,_0x407d02&=_0x407d02;}}function _0x284792(_0x18c80c){Array[_0x56e067([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18c80c)?_0x18c80c[_0x56e067([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x284792):_0x18c80c&&typeof _0x18c80c==_0x56e067([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56e067([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18c80c)[_0x56e067([0x73,0x6f,0x72,0x74])]()[_0x56e067([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x119b03,_0x5000a5])=>{_0x3b2add(_0x119b03),_0x284792(_0x5000a5);}):_0x3b2add(window[_0x56e067([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18c80c));}return _0x284792(_0x478d82),_0x407d02>>>0x0;}function _0x48fdf8(_0x2c9cbb){return _0x2c9cbb[_0x56e067([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56e067([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56e067([0x30]));}function _0x3d08df(_0x30a554){return _0x30a554[_0x56e067([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56e067([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56e067([0x6a,0x6f,0x69,0x6e])]('');}function _0x33dd55(){}function _0x56e067(_0x167901){return _0x167901['map'](_0x1b30ea=>String['fromCharCode'](_0x1b30ea))['join']('');}_0x3f7d19(await _0x4eb172());}(this);}['_createButton'](_0x1abcc5,_0x4c7d8f,_0x3419e3=!0x1){const _0x4cfc94=new _0x1abcc5(this['editor']['locale']);return _0x4cfc94['set']({'withText':_0x3419e3,'isToggleable':!0x1}),_0x4cfc94['bind']('isEnabled')['to'](_0x4c7d8f,'isEnabled'),this['listenTo'](_0x4cfc94,'execute',()=>_0x4c7d8f['execute']()),_0x4cfc94;}['_registerKeybindings'](){const _0x366eb9=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x366eb9,'Source\x20Editing\x20Enhanced')});const _0xdcd3d1=_0x13589f['isMac']||_0x13589f['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x366eb9,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x366eb9,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x366eb9,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x366eb9,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x366eb9,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x366eb9,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x366eb9,'Fold\x20code\x20(current\x20level)'),'keystroke':_0xdcd3d1?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x366eb9,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x366eb9,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x366eb9,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x366eb9,'Select\x20line'),'keystroke':_0xdcd3d1?'Ctrl!+L':'Alt+L'},{'label':w(_0x366eb9,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0xdcd3d1?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x366eb9,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x366eb9,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x366eb9,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x366eb9,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x366eb9,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0xdcd3d1?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x49d699{constructor(_0x375821){super(_0x375821),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x51159d,_0xc1b614){const _0x26448c=this['editor'],_0x2fd48c=_0xc1b614?.['rootName']??r(_0x26448c);_0x26448c['data']['set']({[_0x2fd48c]:_0x51159d},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ne extends _0x791cb4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x1b78b7){super(_0x1b78b7),_0x1b78b7['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new c(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x505280=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15ddee;for(const _0x1bb1cf in _0x505280){const _0x1465fd=_0x1bb1cf,_0x546d4c=_0x505280[_0x1465fd];if('sourceEditingEnhancedLicenseKeyValid'==_0x546d4c||'sourceEditingEnhancedLicenseKeyInvalid'==_0x546d4c||'sourceEditingEnhancedLicenseKeyExpired'==_0x546d4c||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x546d4c||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x546d4c||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x546d4c||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x546d4c){delete _0x505280[_0x1465fd],_0x15ddee=_0x546d4c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x15ddee&&_0x505280['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x15ddee&&_0x505280['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x15ddee&&_0x505280['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x15ddee&&_0x505280['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x15ddee&&_0x505280['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x15ddee&&_0x505280['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x2d87a0=this['editor'],_0x59613f=_0x2d87a0['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x59613f&&_0x2d87a0['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x1daf16('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x59613f&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x151243=>_0x2d87a0['plugins']['has'](_0x151243))&&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.'),_0x2d87a0['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{d as EditSourceCommand,c as ReplaceSourceCommand,ne as SourceEditingEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "47.7.0
|
|
3
|
+
"version": "47.7.0",
|
|
4
4
|
"description": "Source editing enhanced feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"main": "src/index.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@ckeditor/ckeditor5-core": "47.7.0
|
|
22
|
-
"@ckeditor/ckeditor5-icons": "47.7.0
|
|
23
|
-
"@ckeditor/ckeditor5-theme-lark": "47.7.0
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "47.7.0
|
|
25
|
-
"@ckeditor/ckeditor5-utils": "47.7.0
|
|
21
|
+
"@ckeditor/ckeditor5-core": "47.7.0",
|
|
22
|
+
"@ckeditor/ckeditor5-icons": "47.7.0",
|
|
23
|
+
"@ckeditor/ckeditor5-theme-lark": "47.7.0",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "47.7.0",
|
|
25
|
+
"@ckeditor/ckeditor5-utils": "47.7.0",
|
|
26
26
|
"@codemirror/autocomplete": "^6.7.1",
|
|
27
27
|
"@codemirror/commands": "6.8.1",
|
|
28
28
|
"@codemirror/lang-html": "^6.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@codemirror/state": "^6.5.0",
|
|
32
32
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
33
33
|
"@codemirror/view": "^6.35.0",
|
|
34
|
-
"ckeditor5": "47.7.0
|
|
34
|
+
"ckeditor5": "47.7.0"
|
|
35
35
|
},
|
|
36
36
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
37
37
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2b7d99=_0x9e09;(function(_0xf8c621,_0x2c3820){const _0x17518f=_0x9e09,_0x2ed7ba=_0xf8c621();while(!![]){try{const _0x25355d=parseInt(_0x17518f(0x214))/0x1*(parseInt(_0x17518f(0x1f4))/0x2)+parseInt(_0x17518f(0x20f))/0x3*(-parseInt(_0x17518f(0x224))/0x4)+-parseInt(_0x17518f(0x213))/0x5*(parseInt(_0x17518f(0x217))/0x6)+-parseInt(_0x17518f(0x1ee))/0x7+-parseInt(_0x17518f(0x243))/0x8*(parseInt(_0x17518f(0x22b))/0x9)+-parseInt(_0x17518f(0x22c))/0xa*(parseInt(_0x17518f(0x20e))/0xb)+parseInt(_0x17518f(0x206))/0xc;if(_0x25355d===_0x2c3820)break;else _0x2ed7ba['push'](_0x2ed7ba['shift']());}catch(_0x127847){_0x2ed7ba['push'](_0x2ed7ba['shift']());}}}(_0x298a,0xafb41));import{Plugin as _0x422dfb,PendingActions as _0x399ecb}from'ckeditor5/src/core.js';import{IconSource as _0x17633b}from'ckeditor5/src/icons.js';import{ButtonView as _0x10e8fa,MenuBarMenuListItemButtonView as _0x1c7662}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x3682c7}from'./ui/editsourcecommand.js';function _0x298a(){const _0x579faf=['896jjNrxG','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','8449861aGASsi','SourceEditingEnhancedUI','requires','commands','menuitemcheckbox','sourceEditingEnhanced','4zZsEtr','Copy\x20line\x20down','Move\x20line\x20down','Ctrl+]','Ctrl+M','Source\x20Editing\x20Enhanced','isiOS','isPremiumPlugin','map','Select\x20line','accessibility','bind','Unfold\x20code\x20(current\x20level)','Indent\x20less','Fold\x20code\x20(current\x20level)','listenTo','Move\x20line\x20up','Ctrl+Shift+[','45977964RLxmhR','Delete\x20line','set','Shift+Alt+ArrowUp','Ctrl+Z','editor','Alt+L','Source','1027015fxJirb','159696BKUECz','Ctrl+Y','_registerKeybindings','Fold\x20all','350920DzGRoQ','137801iXkLpu','locale','addKeystrokeInfos','6nvSbfo','menuBar:sourceEditingEnhanced','fromCharCode','Toggle\x20block\x20comment','Ctrl+[','Ctrl!+Alt+[','Copy\x20line\x20up','Unfold\x20all','Ctrl+Shift+]','Ctrl+Shift+Z','editSource','addKeystrokeInfoCategory','href','76fahwhK','pluginName','init','Indent\x20more','ck-source-editing-enhanced-button','Ctrl!+L','Shift+Ctrl+K','65781kOwkZU','30ymQOmW','Ctrl+/','Shift+Alt+A','afterInit','add','isMac','Edit\x20source\x20modal\x20label','Cmd+Alt+[','Cmd+Alt+]','Shift+Alt+ArrowDown','Alt+ArrowUp','join','isOfficialPlugin','isEnabled','_createButton','Toggle\x20comment','Redo\x20(keystroke)','execute','Alt+Shift+M','Ctrl!+Alt+]','Alt+ArrowDown','Undo\x20(keystroke)','componentFactory'];_0x298a=function(){return _0x579faf;};return _0x298a();}import{getTranslation as _0x3b35f6}from'./utils/common-translations.js';import{env as _0x3449be,uid as _0x2212b1}from'ckeditor5/src/utils.js';function _0x9e09(_0x60fd5a,_0x4d4ca5){const _0x298a8e=_0x298a();return _0x9e09=function(_0x9e099b,_0x1ca287){_0x9e099b=_0x9e099b-0x1ed;let _0xe90f70=_0x298a8e[_0x9e099b];return _0xe90f70;},_0x9e09(_0x60fd5a,_0x4d4ca5);}import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x422dfb{static get[_0x2b7d99(0x225)](){const _0x4aec9c=_0x2b7d99;return _0x4aec9c(0x1ef);}static get[_0x2b7d99(0x1f0)](){return[_0x399ecb];}static get[_0x2b7d99(0x238)](){return!0x0;}static get[_0x2b7d99(0x1fb)](){return!0x0;}[_0x2b7d99(0x226)](){const _0x3d804f=_0x2b7d99,_0x2bf2a8=this[_0x3d804f(0x20b)],_0x5bb65c=_0x2bf2a8[_0x3d804f(0x215)],_0xc302ba=new _0x3682c7(_0x2bf2a8);_0x2bf2a8[_0x3d804f(0x1f1)][_0x3d804f(0x230)](_0x3d804f(0x221),_0xc302ba),_0x2bf2a8['ui'][_0x3d804f(0x242)][_0x3d804f(0x230)](_0x3d804f(0x1f3),()=>{const _0xeb0c74=_0x3d804f,_0x52153d=this[_0xeb0c74(0x23a)](_0x10e8fa,_0xc302ba);return _0x52153d[_0xeb0c74(0x208)]({'label':_0x3b35f6(_0x5bb65c,_0xeb0c74(0x20d)),'icon':_0x17633b,'tooltip':_0x3b35f6(_0x5bb65c,_0xeb0c74(0x232)),'class':_0xeb0c74(0x228)}),_0x52153d;}),_0x2bf2a8['ui'][_0x3d804f(0x242)][_0x3d804f(0x230)](_0x3d804f(0x218),()=>{const _0x26ea87=_0x3d804f,_0x29d125=this[_0x26ea87(0x23a)](_0x1c7662,_0xc302ba,!0x0);return _0x29d125[_0x26ea87(0x208)]({'label':_0x3b35f6(_0x5bb65c,_0x26ea87(0x232)),'icon':_0x17633b,'role':_0x26ea87(0x1f2)}),_0x29d125;}),this[_0x3d804f(0x211)]();}[_0x2b7d99(0x22f)](){!async function(_0x52e320){const _0x3eeb0c=_0x1940fd([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]),_0x1bc04a=0x5dba9314,_0x3a711f=0x5dbd1444^_0x1bc04a,_0x279c97=window[_0x1940fd([0x44,0x61,0x74,0x65])][_0x1940fd([0x6e,0x6f,0x77])](),_0x2d0a78=_0x52e320[_0x1940fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x406ac3=new window[(_0x1940fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x150cda=>{_0x2d0a78[_0x1940fd([0x6f,0x6e,0x63,0x65])](_0x1940fd([0x72,0x65,0x61,0x64,0x79]),_0x150cda);}),_0x1a1aaa={[_0x1940fd([0x6b,0x74,0x79])]:_0x1940fd([0x45,0x43]),[_0x1940fd([0x75,0x73,0x65])]:_0x1940fd([0x73,0x69,0x67]),[_0x1940fd([0x63,0x72,0x76])]:_0x1940fd([0x50,0x2d,0x32,0x35,0x36]),[_0x1940fd([0x78])]:_0x1940fd([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]),[_0x1940fd([0x79])]:_0x1940fd([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]),[_0x1940fd([0x61,0x6c,0x67])]:_0x1940fd([0x45,0x53,0x32,0x35,0x36])},_0x1787bf=_0x2d0a78[_0x1940fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1940fd([0x67,0x65,0x74])](_0x1940fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1dcff1(){let _0x45a012,_0x9129ca=null,_0x1657ec=null;try{if(_0x1787bf==_0x1940fd([0x47,0x50,0x4c]))return _0x1940fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45a012=_0x189990(),!_0x45a012)return _0x1940fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45a012[_0x1940fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1657ec=_0x5a5033(_0x45a012[_0x1940fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45a012[_0x1940fd([0x6a,0x74,0x69])])),await _0x1cc2b8()?_0x482045()?_0x2a7aac()?_0x1940fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a83bd()?(_0x45a012[_0x1940fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1940fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9129ca=_0x37a68e(_0x1940fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fb527()):_0x1940fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1940fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1940fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1940fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a7aac(){const _0x3a2318=[_0x1940fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1940fd([0x74,0x72,0x69,0x61,0x6c])][_0x1940fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a012[_0x1940fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x279c97/0x3e8:0xe10*_0x3a711f;return _0x45a012[_0x1940fd([0x65,0x78,0x70])]<_0x3a2318;}function _0x482045(){const _0xc0117b=_0x45a012[_0x1940fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc0117b&&(!!_0xc0117b[_0x1940fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1940fd([0x2a]))||!!_0xc0117b[_0x1940fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1940fd([0x53,0x45,0x45])));}function _0x4a83bd(){const _0x1402fd=_0x9e09,_0x25790f=_0x45a012[_0x1940fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25790f||0x0==_0x25790f[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56b157}=new URL(window[_0x1940fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1402fd(0x223)]);if(_0x25790f[_0x1940fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b157))return!0x0;const _0x2631f9=_0x56b157[_0x1940fd([0x73,0x70,0x6c,0x69,0x74])](_0x1940fd([0x2e]));return _0x25790f[_0x1940fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37c3f9=>_0x37c3f9[_0x1940fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1940fd([0x2a])))[_0x1940fd([0x6d,0x61,0x70])](_0x565345=>_0x565345[_0x1940fd([0x73,0x70,0x6c,0x69,0x74])](_0x1940fd([0x2e])))[_0x1940fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fb42a=>_0x4fb42a[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2631f9[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1940fd([0x6d,0x61,0x70])](_0x30922c=>Array(_0x2631f9[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30922c[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1940fd([0x66,0x69,0x6c,0x6c])](_0x30922c[0x0]===_0x1940fd([0x2a])?_0x1940fd([0x2a]):'')[_0x1940fd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30922c))[_0x1940fd([0x73,0x6f,0x6d,0x65])](_0x4f639e=>_0x2631f9[_0x1940fd([0x65,0x76,0x65,0x72,0x79])]((_0x228ebb,_0x57de12)=>_0x4f639e[_0x57de12]===_0x228ebb||_0x4f639e[_0x57de12]===_0x1940fd([0x2a])));}function _0x3fb527(){return _0x9129ca&&_0x1657ec?new window[(_0x1940fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38dbec,_0x3582f3)=>{_0x9129ca[_0x1940fd([0x74,0x68,0x65,0x6e])](_0x38dbec,_0x3582f3),_0x1657ec[_0x1940fd([0x74,0x68,0x65,0x6e])](_0x3d27e5=>{_0x3d27e5!=_0x1940fd([0x56,0x61,0x6c,0x69,0x64])&&_0x38dbec(_0x3d27e5);},_0x3582f3);}):_0x9129ca||_0x1657ec||_0x1940fd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a5033(_0x468772,_0x25bf36){return new window[(_0x1940fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525988=>{if(_0xaa64d6())return _0x525988(_0x1940fd([0x56,0x61,0x6c,0x69,0x64]));_0x5d12f7(),_0x2d0a78[_0x1940fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1940fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58e75e=!0x1;const _0x360a93=_0x2212b1();function _0x511f66(_0x5b2dee){return!!_0x5b2dee&&(typeof _0x5b2dee===_0x1940fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b2dee===_0x1940fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b2dee[_0x1940fd([0x74,0x68,0x65,0x6e])]===_0x1940fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b2dee[_0x1940fd([0x63,0x61,0x74,0x63,0x68])]===_0x1940fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b1c8d(_0x2c533c){_0x15bd38(_0x2c533c)[_0x1940fd([0x74,0x68,0x65,0x6e])](_0x2f8c41=>{if(!_0x2f8c41||_0x2f8c41[_0x1940fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1940fd([0x6f,0x6b]))return _0x1940fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d57bf(_0x5b0240(_0x360a93+_0x25bf36))!=_0x2f8c41[_0x1940fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1940fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1940fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x1940fd([0x74,0x68,0x65,0x6e])](_0x35a59a=>(_0x31b11a(),_0x35a59a),()=>{const _0x9cf88d=_0xf85324();return null==_0x9cf88d?(_0x31b11a(),_0x1940fd([0x56,0x61,0x6c,0x69,0x64])):_0x1940fd(_0x279c97-_0x9cf88d>(0x79b61714^_0x1bc04a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1940fd([0x74,0x68,0x65,0x6e])](_0x525988)[_0x1940fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x525988(_0x1940fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x278b33=0x5d8c7d94^_0x1bc04a;function _0x31b11a(){const _0x593fa9=_0x1940fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d57bf(_0x5b0240(_0x468772)),_0x5400eb=_0x103df4(_0x5d57bf(window[_0x1940fd([0x4d,0x61,0x74,0x68])][_0x1940fd([0x63,0x65,0x69,0x6c])](_0x279c97/_0x278b33)));window[_0x1940fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1940fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x593fa9,_0x5400eb);}function _0xf85324(){const _0x1c5dba=_0x1940fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d57bf(_0x5b0240(_0x468772)),_0x5c420c=window[_0x1940fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1940fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c5dba);return _0x5c420c?window[_0x1940fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x103df4(_0x5c420c),0x10)*_0x278b33:null;}function _0x15bd38(_0x53b5c5){return new window[(_0x1940fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d40bc,_0xf7009e)=>{_0x53b5c5[_0x1940fd([0x74,0x68,0x65,0x6e])](_0x4d40bc,_0xf7009e),window[_0x1940fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf7009e,0x5dbb47d4^_0x1bc04a);});}}_0x2d0a78[_0x1940fd([0x6f,0x6e])](_0x1940fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3528fe,_0x5c10fd)=>{if(_0x5c10fd[0x0]!=_0x468772)return _0x525988(_0x1940fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c10fd[0x1]={..._0x5c10fd[0x1],[_0x1940fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x360a93};},{[_0x1940fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1940fd([0x68,0x69,0x67,0x68])}),_0x2d0a78[_0x1940fd([0x6f,0x6e])](_0x1940fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a0084=>{_0x511f66(_0x1a0084[_0x1940fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58e75e=!0x0,_0x4b1c8d(_0x1a0084[_0x1940fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1940fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1940fd([0x6c,0x6f,0x77])}),_0x406ac3[_0x1940fd([0x74,0x68,0x65,0x6e])](()=>{_0x58e75e||_0x525988(_0x1940fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xaa64d6(){return _0x2d0a78[_0x1940fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1940fd([0x76,0x69,0x65,0x77])][_0x1940fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1940fd([0x61,0x75,0x74,0x6f]);}function _0x5d12f7(){_0x2d0a78[_0x1940fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1940fd([0x76,0x69,0x65,0x77])][_0x1940fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1940fd([0x61,0x75,0x74,0x6f]);}}function _0x37a68e(_0x3c5f26){const _0x1df016=[new window[(_0x1940fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f7ab0=>setTimeout(_0x2f7ab0,0x5db3add8^_0x1bc04a)),_0x406ac3[_0x1940fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1940fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfa6944=>{let _0x3315d5=0x0;_0x2d0a78[_0x1940fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1940fd([0x6f,0x6e])](_0x1940fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21ee90,_0x382eac)=>{_0x382eac[0x0][_0x1940fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3315d5++,_0x3315d5==(0x5dba96fc^_0x1bc04a)&&(_0xfa6944(),_0x21ee90[_0x1940fd([0x6f,0x66,0x66])]());});}))];return window[_0x1940fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1940fd([0x72,0x61,0x63,0x65])](_0x1df016)[_0x1940fd([0x74,0x68,0x65,0x6e])](()=>_0x3c5f26);}async function _0x5a5900(){await _0x406ac3,_0x2d0a78[_0x1940fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1940fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fdab6,_0x2d0a78[_0x1940fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1940fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fdab6,_0x2d0a78[_0x1940fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1940fd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e5cfe(_0x3fefde){const _0x120e5a=_0xb1490();_0x2d0a78[_0x120e5a]=_0x1940fd([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])+_0x3fefde,_0x3fefde!=_0x1940fd([0x56,0x61,0x6c,0x69,0x64])&&_0x5a5900();}function _0xb1490(){const _0x2894f9=window[_0x1940fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1940fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1940fd([0x6e,0x6f,0x77])]())[_0x1940fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1940fd([0x2e]),'');let _0x2bb46e=_0x1940fd([0x4e]);for(let _0x5cc708=0x0;_0x5cc708<_0x2894f9[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cc708+=0x2){let _0x4ceae3=window[_0x1940fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2894f9[_0x1940fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cc708,_0x5cc708+0x2));_0x4ceae3>=_0x3eeb0c[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ceae3-=_0x3eeb0c[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bb46e+=_0x3eeb0c[_0x4ceae3];}return _0x2bb46e;}function _0x189990(){const _0x14d7d4=_0x1787bf[_0x1940fd([0x73,0x70,0x6c,0x69,0x74])](_0x1940fd([0x2e]));if(0x3!=_0x14d7d4[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x488fb4(_0x14d7d4[0x1]);function _0x488fb4(_0x1bff4c){const _0x4ab996=_0x5aea66(_0x1bff4c);return _0x4ab996&&_0x33cc6a()?_0x4ab996:null;function _0x33cc6a(){const _0x2c1e5b=_0x4ab996[_0x1940fd([0x6a,0x74,0x69])],_0xd4846d=window[_0x1940fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1e5b[_0x1940fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c1e5b[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x383e0e={..._0x4ab996,[_0x1940fd([0x6a,0x74,0x69])]:_0x2c1e5b[_0x1940fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c1e5b[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x383e0e[_0x1940fd([0x76,0x63])],_0x5b0240(_0x383e0e)==_0xd4846d;}}}async function _0x1cc2b8(){let _0x3f4e2e=!0x0;try{const _0x25868c=_0x1787bf[_0x1940fd([0x73,0x70,0x6c,0x69,0x74])](_0x1940fd([0x2e])),[_0xe2efb9,_0x19a9f4,_0x47e630]=_0x25868c;return _0x4d6f22(_0xe2efb9),await _0x161292(_0xe2efb9,_0x19a9f4,_0x47e630),_0x3f4e2e;}catch{return!0x1;}function _0x4d6f22(_0x113a0b){const _0x1c5a1f=_0x5aea66(_0x113a0b);_0x1c5a1f&&_0x1c5a1f[_0x1940fd([0x61,0x6c,0x67])]==_0x1940fd([0x45,0x53,0x32,0x35,0x36])||(_0x3f4e2e=!0x1);}async function _0x161292(_0x391fc7,_0xa2b902,_0x50d371){const _0x290d6d=window[_0x1940fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1940fd([0x66,0x72,0x6f,0x6d])](_0x1cf380(_0x50d371),_0x56f0da=>_0x56f0da[_0x1940fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x579d80=new window[(_0x1940fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1940fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x391fc7+_0x1940fd([0x2e])+_0xa2b902),_0x2ca427=window[_0x1940fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1940fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ca427)return;const _0x1902d8=await _0x2ca427[_0x1940fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1940fd([0x6a,0x77,0x6b]),_0x1a1aaa,{[_0x1940fd([0x6e,0x61,0x6d,0x65])]:_0x1940fd([0x45,0x43,0x44,0x53,0x41]),[_0x1940fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1940fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1940fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ca427[_0x1940fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1940fd([0x6e,0x61,0x6d,0x65])]:_0x1940fd([0x45,0x43,0x44,0x53,0x41]),[_0x1940fd([0x68,0x61,0x73,0x68])]:{[_0x1940fd([0x6e,0x61,0x6d,0x65])]:_0x1940fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1902d8,_0x290d6d,_0x579d80)||(_0x3f4e2e=!0x1);}}function _0x5aea66(_0x14df76){return _0x14df76[_0x1940fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1940fd([0x65,0x79]))?JSON[_0x1940fd([0x70,0x61,0x72,0x73,0x65])](_0x1cf380(_0x14df76)):null;}function _0x1cf380(_0x2d6078){return window[_0x1940fd([0x61,0x74,0x6f,0x62])](_0x2d6078[_0x1940fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1940fd([0x2b]))[_0x1940fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1940fd([0x2f])));}function _0x5b0240(_0x2e1ebe){let _0x29a3d7=0x1505;function _0x5933e6(_0x35d262){for(let _0x5d738c=0x0;_0x5d738c<_0x35d262[_0x1940fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d738c++){const _0x3e153d=_0x35d262[_0x1940fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5d738c);_0x29a3d7=(_0x29a3d7<<0x5)+_0x29a3d7+_0x3e153d,_0x29a3d7&=_0x29a3d7;}}function _0x4b6f70(_0x23f225){Array[_0x1940fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23f225)?_0x23f225[_0x1940fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b6f70):_0x23f225&&typeof _0x23f225==_0x1940fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1940fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23f225)[_0x1940fd([0x73,0x6f,0x72,0x74])]()[_0x1940fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x493f24,_0x45efc3])=>{_0x5933e6(_0x493f24),_0x4b6f70(_0x45efc3);}):_0x5933e6(window[_0x1940fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23f225));}return _0x4b6f70(_0x2e1ebe),_0x29a3d7>>>0x0;}function _0x5d57bf(_0x1e969d){return _0x1e969d[_0x1940fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1940fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1940fd([0x30]));}function _0x103df4(_0x2016d9){return _0x2016d9[_0x1940fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1940fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1940fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fdab6(){}function _0x1940fd(_0x3c1fe8){const _0x473df0=_0x9e09;return _0x3c1fe8[_0x473df0(0x1fc)](_0x544aa7=>String[_0x473df0(0x219)](_0x544aa7))[_0x473df0(0x237)]('');}_0x4e5cfe(await _0x1dcff1());}(this);}[_0x2b7d99(0x23a)](_0x18ad8a,_0x5eb173,_0x53621c=!0x1){const _0x4ba284=_0x2b7d99,_0x165125=new _0x18ad8a(this[_0x4ba284(0x20b)][_0x4ba284(0x215)]);return _0x165125[_0x4ba284(0x208)]({'withText':_0x53621c,'isToggleable':!0x1}),_0x165125[_0x4ba284(0x1ff)](_0x4ba284(0x239))['to'](_0x5eb173,_0x4ba284(0x239)),this[_0x4ba284(0x203)](_0x165125,_0x4ba284(0x23d),()=>_0x5eb173[_0x4ba284(0x23d)]()),_0x165125;}[_0x2b7d99(0x211)](){const _0x37e61e=_0x2b7d99,_0x2fea0f=this[_0x37e61e(0x20b)][_0x37e61e(0x215)];this[_0x37e61e(0x20b)][_0x37e61e(0x1fe)][_0x37e61e(0x222)]({'id':_0x37e61e(0x1f3),'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x1f9))});const _0xa2a23f=_0x3449be[_0x37e61e(0x231)]||_0x3449be[_0x37e61e(0x1fa)];this[_0x37e61e(0x20b)][_0x37e61e(0x1fe)][_0x37e61e(0x216)]({'categoryId':_0x37e61e(0x1f3),'keystrokes':[{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x1f5)),'keystroke':_0x37e61e(0x235)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x21d)),'keystroke':_0x37e61e(0x209)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x207)),'keystroke':_0x37e61e(0x22a)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x201)),'keystroke':_0x37e61e(0x21b)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x227)),'keystroke':_0x37e61e(0x1f7)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x212)),'keystroke':_0x37e61e(0x21c)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x202)),'keystroke':_0xa2a23f?_0x37e61e(0x233):_0x37e61e(0x205)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x1f6)),'keystroke':_0x37e61e(0x240)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x204)),'keystroke':_0x37e61e(0x236)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x23c)),'keystroke':[[_0x37e61e(0x220)],[_0x37e61e(0x210)]]},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x1fd)),'keystroke':_0xa2a23f?_0x37e61e(0x229):_0x37e61e(0x20c)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x1ed)),'keystroke':_0xa2a23f?_0x37e61e(0x23e):_0x37e61e(0x1f8)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x21a)),'keystroke':_0x37e61e(0x22e)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x23b)),'keystroke':_0x37e61e(0x22d)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x241)),'keystroke':_0x37e61e(0x20a)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x21e)),'keystroke':_0x37e61e(0x23f)},{'label':_0x3b35f6(_0x2fea0f,_0x37e61e(0x200)),'keystroke':_0xa2a23f?_0x37e61e(0x234):_0x37e61e(0x21f)}]});}}
|
|
23
|
+
const _0x19eb1b=_0x24b3;(function(_0xfb4b9f,_0x5f4698){const _0x5d237a=_0x24b3,_0x49edad=_0xfb4b9f();while(!![]){try{const _0x43da80=-parseInt(_0x5d237a(0x1f7))/0x1+parseInt(_0x5d237a(0x220))/0x2+parseInt(_0x5d237a(0x21c))/0x3+parseInt(_0x5d237a(0x20d))/0x4*(-parseInt(_0x5d237a(0x1f8))/0x5)+-parseInt(_0x5d237a(0x21d))/0x6*(parseInt(_0x5d237a(0x1ed))/0x7)+parseInt(_0x5d237a(0x1f9))/0x8*(parseInt(_0x5d237a(0x1d3))/0x9)+parseInt(_0x5d237a(0x205))/0xa;if(_0x43da80===_0x5f4698)break;else _0x49edad['push'](_0x49edad['shift']());}catch(_0xdcbc5c){_0x49edad['push'](_0x49edad['shift']());}}}(_0x5d8e,0x53546));import{Plugin as _0x12aa05,PendingActions as _0x2f73b8}from'ckeditor5/src/core.js';function _0x24b3(_0x59b239,_0x449497){const _0x5d8efb=_0x5d8e();return _0x24b3=function(_0x24b37b,_0x18697d){_0x24b37b=_0x24b37b-0x1cd;let _0x163e6f=_0x5d8efb[_0x24b37b];return _0x163e6f;},_0x24b3(_0x59b239,_0x449497);}import{IconSource as _0x1e4a48}from'ckeditor5/src/icons.js';import{ButtonView as _0x536ae1,MenuBarMenuListItemButtonView as _0x3c363c}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x4c31b1}from'./ui/editsourcecommand.js';import{getTranslation as _0x514865}from'./utils/common-translations.js';import{env as _0x291cbe,uid as _0x11d6d0}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x12aa05{static get[_0x19eb1b(0x1d2)](){const _0x2c0e79=_0x19eb1b;return _0x2c0e79(0x1fa);}static get[_0x19eb1b(0x209)](){return[_0x2f73b8];}static get[_0x19eb1b(0x1f5)](){return!0x0;}static get[_0x19eb1b(0x1f0)](){return!0x0;}[_0x19eb1b(0x21e)](){const _0x39e9ed=_0x19eb1b,_0x279b37=this[_0x39e9ed(0x1d9)],_0x34f13e=_0x279b37[_0x39e9ed(0x210)],_0x147956=new _0x4c31b1(_0x279b37);_0x279b37[_0x39e9ed(0x1dd)][_0x39e9ed(0x1ec)](_0x39e9ed(0x1cd),_0x147956),_0x279b37['ui'][_0x39e9ed(0x1e8)][_0x39e9ed(0x1ec)](_0x39e9ed(0x202),()=>{const _0x2ea03d=_0x39e9ed,_0x5e3962=this[_0x2ea03d(0x1d8)](_0x536ae1,_0x147956);return _0x5e3962[_0x2ea03d(0x21f)]({'label':_0x514865(_0x34f13e,_0x2ea03d(0x1de)),'icon':_0x1e4a48,'tooltip':_0x514865(_0x34f13e,_0x2ea03d(0x1ee)),'class':_0x2ea03d(0x1fb)}),_0x5e3962;}),_0x279b37['ui'][_0x39e9ed(0x1e8)][_0x39e9ed(0x1ec)](_0x39e9ed(0x1e3),()=>{const _0x4d7c1d=_0x39e9ed,_0x4d7777=this[_0x4d7c1d(0x1d8)](_0x3c363c,_0x147956,!0x0);return _0x4d7777[_0x4d7c1d(0x21f)]({'label':_0x514865(_0x34f13e,_0x4d7c1d(0x1ee)),'icon':_0x1e4a48,'role':_0x4d7c1d(0x1fc)}),_0x4d7777;}),this[_0x39e9ed(0x204)]();}[_0x19eb1b(0x1d7)](){!async function(_0x3e6f24){const _0x5eda0c=_0x14e8ca([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]),_0x1ee78d=0x5dba9314,_0x49e5ab=0x5dbd147c^_0x1ee78d,_0x1bc8c8=window[_0x14e8ca([0x44,0x61,0x74,0x65])][_0x14e8ca([0x6e,0x6f,0x77])](),_0x319223=_0x3e6f24[_0x14e8ca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fcba0=new window[(_0x14e8ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37f460=>{_0x319223[_0x14e8ca([0x6f,0x6e,0x63,0x65])](_0x14e8ca([0x72,0x65,0x61,0x64,0x79]),_0x37f460);}),_0x207bcf={[_0x14e8ca([0x6b,0x74,0x79])]:_0x14e8ca([0x45,0x43]),[_0x14e8ca([0x75,0x73,0x65])]:_0x14e8ca([0x73,0x69,0x67]),[_0x14e8ca([0x63,0x72,0x76])]:_0x14e8ca([0x50,0x2d,0x32,0x35,0x36]),[_0x14e8ca([0x78])]:_0x14e8ca([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]),[_0x14e8ca([0x79])]:_0x14e8ca([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]),[_0x14e8ca([0x61,0x6c,0x67])]:_0x14e8ca([0x45,0x53,0x32,0x35,0x36])},_0x4fb8f8=_0x319223[_0x14e8ca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14e8ca([0x67,0x65,0x74])](_0x14e8ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b528f(){let _0x38288c,_0x1542b2=null,_0x38d549=null;try{if(_0x4fb8f8==_0x14e8ca([0x47,0x50,0x4c]))return _0x14e8ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38288c=_0x45ae40(),!_0x38288c)return _0x14e8ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38288c[_0x14e8ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38d549=_0x40d227(_0x38288c[_0x14e8ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38288c[_0x14e8ca([0x6a,0x74,0x69])])),await _0x112cc8()?_0x189892()?_0x494b5d()?_0x14e8ca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x211fa0()?(_0x38288c[_0x14e8ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14e8ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1542b2=_0x45e4d4(_0x14e8ca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e4ad3()):_0x14e8ca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14e8ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14e8ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14e8ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x494b5d(){const _0x1798a4=[_0x14e8ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14e8ca([0x74,0x72,0x69,0x61,0x6c])][_0x14e8ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38288c[_0x14e8ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bc8c8/0x3e8:0xe10*_0x49e5ab;return _0x38288c[_0x14e8ca([0x65,0x78,0x70])]<_0x1798a4;}function _0x189892(){const _0x2fe972=_0x38288c[_0x14e8ca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2fe972&&(!!_0x2fe972[_0x14e8ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e8ca([0x2a]))||!!_0x2fe972[_0x14e8ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e8ca([0x53,0x45,0x45])));}function _0x211fa0(){const _0x29a786=_0x24b3,_0x46c272=_0x38288c[_0x14e8ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46c272||0x0==_0x46c272[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10732e}=new URL(window[_0x14e8ca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x29a786(0x1e5)]);if(_0x46c272[_0x14e8ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10732e))return!0x0;const _0x2b57df=_0x10732e[_0x14e8ca([0x73,0x70,0x6c,0x69,0x74])](_0x14e8ca([0x2e]));return _0x46c272[_0x14e8ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x287359=>_0x287359[_0x14e8ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e8ca([0x2a])))[_0x14e8ca([0x6d,0x61,0x70])](_0x21204f=>_0x21204f[_0x14e8ca([0x73,0x70,0x6c,0x69,0x74])](_0x14e8ca([0x2e])))[_0x14e8ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x269e18=>_0x269e18[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b57df[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14e8ca([0x6d,0x61,0x70])](_0x491851=>Array(_0x2b57df[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x491851[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14e8ca([0x66,0x69,0x6c,0x6c])](_0x491851[0x0]===_0x14e8ca([0x2a])?_0x14e8ca([0x2a]):'')[_0x14e8ca([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x491851))[_0x14e8ca([0x73,0x6f,0x6d,0x65])](_0x2ba58e=>_0x2b57df[_0x14e8ca([0x65,0x76,0x65,0x72,0x79])]((_0x43f694,_0x55acd9)=>_0x2ba58e[_0x55acd9]===_0x43f694||_0x2ba58e[_0x55acd9]===_0x14e8ca([0x2a])));}function _0x1e4ad3(){return _0x1542b2&&_0x38d549?new window[(_0x14e8ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54db3f,_0x2fd90f)=>{_0x1542b2[_0x14e8ca([0x74,0x68,0x65,0x6e])](_0x54db3f,_0x2fd90f),_0x38d549[_0x14e8ca([0x74,0x68,0x65,0x6e])](_0x35d386=>{_0x35d386!=_0x14e8ca([0x56,0x61,0x6c,0x69,0x64])&&_0x54db3f(_0x35d386);},_0x2fd90f);}):_0x1542b2||_0x38d549||_0x14e8ca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40d227(_0x5eb36f,_0x58fa3e){return new window[(_0x14e8ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9c3355=>{if(_0x4a73f3())return _0x9c3355(_0x14e8ca([0x56,0x61,0x6c,0x69,0x64]));_0xe55a4e(),_0x319223[_0x14e8ca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14e8ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27c8a2=!0x1;const _0x70a7c6=_0x11d6d0();function _0x52e89d(_0x4391b4){return!!_0x4391b4&&(typeof _0x4391b4===_0x14e8ca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4391b4===_0x14e8ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4391b4[_0x14e8ca([0x74,0x68,0x65,0x6e])]===_0x14e8ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4391b4[_0x14e8ca([0x63,0x61,0x74,0x63,0x68])]===_0x14e8ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x571b48(_0x11004c){_0x145d1a(_0x11004c)[_0x14e8ca([0x74,0x68,0x65,0x6e])](_0x2e2885=>{if(!_0x2e2885||_0x2e2885[_0x14e8ca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14e8ca([0x6f,0x6b]))return _0x14e8ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ae918(_0x2d1b50(_0x70a7c6+_0x58fa3e))!=_0x2e2885[_0x14e8ca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14e8ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14e8ca([0x56,0x61,0x6c,0x69,0x64]);})[_0x14e8ca([0x74,0x68,0x65,0x6e])](_0x2c2a77=>(_0x5a6616(),_0x2c2a77),()=>{const _0x20a88f=_0x34195d();return null==_0x20a88f?(_0x5a6616(),_0x14e8ca([0x56,0x61,0x6c,0x69,0x64])):_0x14e8ca(_0x1bc8c8-_0x20a88f>(0x79b61714^_0x1ee78d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14e8ca([0x74,0x68,0x65,0x6e])](_0x9c3355)[_0x14e8ca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9c3355(_0x14e8ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1611d9=0x5d8c7d94^_0x1ee78d;function _0x5a6616(){const _0x3664b7=_0x14e8ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ae918(_0x2d1b50(_0x5eb36f)),_0x41a5b0=_0xe7c558(_0x5ae918(window[_0x14e8ca([0x4d,0x61,0x74,0x68])][_0x14e8ca([0x63,0x65,0x69,0x6c])](_0x1bc8c8/_0x1611d9)));window[_0x14e8ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14e8ca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3664b7,_0x41a5b0);}function _0x34195d(){const _0x35f427=_0x14e8ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ae918(_0x2d1b50(_0x5eb36f)),_0x3e22d7=window[_0x14e8ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14e8ca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35f427);return _0x3e22d7?window[_0x14e8ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe7c558(_0x3e22d7),0x10)*_0x1611d9:null;}function _0x145d1a(_0x4705fa){return new window[(_0x14e8ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10bfd8,_0x7a5c70)=>{_0x4705fa[_0x14e8ca([0x74,0x68,0x65,0x6e])](_0x10bfd8,_0x7a5c70),window[_0x14e8ca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7a5c70,0x5dbb47d4^_0x1ee78d);});}}_0x319223[_0x14e8ca([0x6f,0x6e])](_0x14e8ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x572e7a,_0x4a6537)=>{if(_0x4a6537[0x0]!=_0x5eb36f)return _0x9c3355(_0x14e8ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a6537[0x1]={..._0x4a6537[0x1],[_0x14e8ca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x70a7c6};},{[_0x14e8ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14e8ca([0x68,0x69,0x67,0x68])}),_0x319223[_0x14e8ca([0x6f,0x6e])](_0x14e8ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59951a=>{_0x52e89d(_0x59951a[_0x14e8ca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27c8a2=!0x0,_0x571b48(_0x59951a[_0x14e8ca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14e8ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14e8ca([0x6c,0x6f,0x77])}),_0x3fcba0[_0x14e8ca([0x74,0x68,0x65,0x6e])](()=>{_0x27c8a2||_0x9c3355(_0x14e8ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a73f3(){return _0x319223[_0x14e8ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14e8ca([0x76,0x69,0x65,0x77])][_0x14e8ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14e8ca([0x61,0x75,0x74,0x6f]);}function _0xe55a4e(){_0x319223[_0x14e8ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14e8ca([0x76,0x69,0x65,0x77])][_0x14e8ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14e8ca([0x61,0x75,0x74,0x6f]);}}function _0x45e4d4(_0xacdec5){const _0x326641=[new window[(_0x14e8ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f7179=>setTimeout(_0x4f7179,0x5db3add8^_0x1ee78d)),_0x3fcba0[_0x14e8ca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14e8ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d0941=>{let _0x346911=0x0;_0x319223[_0x14e8ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e8ca([0x6f,0x6e])](_0x14e8ca([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x389f2e,_0x22050c)=>{_0x22050c[0x0][_0x14e8ca([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x346911++,_0x346911==(0x5dba96fc^_0x1ee78d)&&(_0x5d0941(),_0x389f2e[_0x14e8ca([0x6f,0x66,0x66])]());});}))];return window[_0x14e8ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14e8ca([0x72,0x61,0x63,0x65])](_0x326641)[_0x14e8ca([0x74,0x68,0x65,0x6e])](()=>_0xacdec5);}async function _0x597ec0(){await _0x3fcba0,_0x319223[_0x14e8ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e8ca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x501730,_0x319223[_0x14e8ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e8ca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x501730,_0x319223[_0x14e8ca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14e8ca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4bc224(_0x48d4cd){const _0x2cf934=_0xe5930b();_0x319223[_0x2cf934]=_0x14e8ca([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])+_0x48d4cd,_0x48d4cd!=_0x14e8ca([0x56,0x61,0x6c,0x69,0x64])&&_0x597ec0();}function _0xe5930b(){const _0x35be73=window[_0x14e8ca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14e8ca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14e8ca([0x6e,0x6f,0x77])]())[_0x14e8ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14e8ca([0x2e]),'');let _0x3d2cc1=_0x14e8ca([0x4e]);for(let _0x8dc809=0x0;_0x8dc809<_0x35be73[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8dc809+=0x2){let _0x3aedd5=window[_0x14e8ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35be73[_0x14e8ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8dc809,_0x8dc809+0x2));_0x3aedd5>=_0x5eda0c[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aedd5-=_0x5eda0c[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d2cc1+=_0x5eda0c[_0x3aedd5];}return _0x3d2cc1;}function _0x45ae40(){const _0x52f4e2=_0x4fb8f8[_0x14e8ca([0x73,0x70,0x6c,0x69,0x74])](_0x14e8ca([0x2e]));if(0x3!=_0x52f4e2[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49c3a7(_0x52f4e2[0x1]);function _0x49c3a7(_0x536b59){const _0x43bbfc=_0x579465(_0x536b59);return _0x43bbfc&&_0x48024a()?_0x43bbfc:null;function _0x48024a(){const _0x1c23c2=_0x43bbfc[_0x14e8ca([0x6a,0x74,0x69])],_0x242504=window[_0x14e8ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c23c2[_0x14e8ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c23c2[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11e0ba={..._0x43bbfc,[_0x14e8ca([0x6a,0x74,0x69])]:_0x1c23c2[_0x14e8ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c23c2[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11e0ba[_0x14e8ca([0x76,0x63])],_0x2d1b50(_0x11e0ba)==_0x242504;}}}async function _0x112cc8(){let _0x515e18=!0x0;try{const _0x59f2d8=_0x4fb8f8[_0x14e8ca([0x73,0x70,0x6c,0x69,0x74])](_0x14e8ca([0x2e])),[_0x51a8ea,_0x1613de,_0xaea526]=_0x59f2d8;return _0x26da61(_0x51a8ea),await _0x5e133c(_0x51a8ea,_0x1613de,_0xaea526),_0x515e18;}catch{return!0x1;}function _0x26da61(_0x197961){const _0x4a6afb=_0x579465(_0x197961);_0x4a6afb&&_0x4a6afb[_0x14e8ca([0x61,0x6c,0x67])]==_0x14e8ca([0x45,0x53,0x32,0x35,0x36])||(_0x515e18=!0x1);}async function _0x5e133c(_0x47b195,_0x19b21e,_0x507212){const _0x2ec10f=window[_0x14e8ca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14e8ca([0x66,0x72,0x6f,0x6d])](_0x6c0cbb(_0x507212),_0x11d721=>_0x11d721[_0x14e8ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b58e4=new window[(_0x14e8ca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14e8ca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47b195+_0x14e8ca([0x2e])+_0x19b21e),_0x6b45d6=window[_0x14e8ca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14e8ca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6b45d6)return;const _0x14cef6=await _0x6b45d6[_0x14e8ca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14e8ca([0x6a,0x77,0x6b]),_0x207bcf,{[_0x14e8ca([0x6e,0x61,0x6d,0x65])]:_0x14e8ca([0x45,0x43,0x44,0x53,0x41]),[_0x14e8ca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14e8ca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14e8ca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6b45d6[_0x14e8ca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14e8ca([0x6e,0x61,0x6d,0x65])]:_0x14e8ca([0x45,0x43,0x44,0x53,0x41]),[_0x14e8ca([0x68,0x61,0x73,0x68])]:{[_0x14e8ca([0x6e,0x61,0x6d,0x65])]:_0x14e8ca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14cef6,_0x2ec10f,_0x2b58e4)||(_0x515e18=!0x1);}}function _0x579465(_0x1eca8c){return _0x1eca8c[_0x14e8ca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14e8ca([0x65,0x79]))?JSON[_0x14e8ca([0x70,0x61,0x72,0x73,0x65])](_0x6c0cbb(_0x1eca8c)):null;}function _0x6c0cbb(_0x172e5a){return window[_0x14e8ca([0x61,0x74,0x6f,0x62])](_0x172e5a[_0x14e8ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14e8ca([0x2b]))[_0x14e8ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14e8ca([0x2f])));}function _0x2d1b50(_0x4e2123){let _0x1e3bb8=0x1505;function _0x38002f(_0x255d56){for(let _0x3a6b8f=0x0;_0x3a6b8f<_0x255d56[_0x14e8ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6b8f++){const _0x1748b8=_0x255d56[_0x14e8ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a6b8f);_0x1e3bb8=(_0x1e3bb8<<0x5)+_0x1e3bb8+_0x1748b8,_0x1e3bb8&=_0x1e3bb8;}}function _0x45b0e6(_0x2ff1f1){Array[_0x14e8ca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ff1f1)?_0x2ff1f1[_0x14e8ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45b0e6):_0x2ff1f1&&typeof _0x2ff1f1==_0x14e8ca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14e8ca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ff1f1)[_0x14e8ca([0x73,0x6f,0x72,0x74])]()[_0x14e8ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17ba60,_0x59c4cc])=>{_0x38002f(_0x17ba60),_0x45b0e6(_0x59c4cc);}):_0x38002f(window[_0x14e8ca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ff1f1));}return _0x45b0e6(_0x4e2123),_0x1e3bb8>>>0x0;}function _0x5ae918(_0x40342a){return _0x40342a[_0x14e8ca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14e8ca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14e8ca([0x30]));}function _0xe7c558(_0x31492d){return _0x31492d[_0x14e8ca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14e8ca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14e8ca([0x6a,0x6f,0x69,0x6e])]('');}function _0x501730(){}function _0x14e8ca(_0x414495){const _0x146b7b=_0x24b3;return _0x414495[_0x146b7b(0x215)](_0x17e8c1=>String[_0x146b7b(0x1ea)](_0x17e8c1))[_0x146b7b(0x20f)]('');}_0x4bc224(await _0x3b528f());}(this);}[_0x19eb1b(0x1d8)](_0x3509ca,_0x4719bd,_0x10313b=!0x1){const _0x485024=_0x19eb1b,_0x327966=new _0x3509ca(this[_0x485024(0x1d9)][_0x485024(0x210)]);return _0x327966[_0x485024(0x21f)]({'withText':_0x10313b,'isToggleable':!0x1}),_0x327966[_0x485024(0x207)](_0x485024(0x1da))['to'](_0x4719bd,_0x485024(0x1da)),this[_0x485024(0x201)](_0x327966,_0x485024(0x221),()=>_0x4719bd[_0x485024(0x221)]()),_0x327966;}[_0x19eb1b(0x204)](){const _0x3398d9=_0x19eb1b,_0x13e307=this[_0x3398d9(0x1d9)][_0x3398d9(0x210)];this[_0x3398d9(0x1d9)][_0x3398d9(0x1eb)][_0x3398d9(0x20c)]({'id':_0x3398d9(0x202),'label':_0x514865(_0x13e307,_0x3398d9(0x203))});const _0x4b3fea=_0x291cbe[_0x3398d9(0x208)]||_0x291cbe[_0x3398d9(0x1e7)];this[_0x3398d9(0x1d9)][_0x3398d9(0x1eb)][_0x3398d9(0x1d0)]({'categoryId':_0x3398d9(0x202),'keystrokes':[{'label':_0x514865(_0x13e307,_0x3398d9(0x214)),'keystroke':_0x3398d9(0x1dc)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1e9)),'keystroke':_0x3398d9(0x1df)},{'label':_0x514865(_0x13e307,_0x3398d9(0x20e)),'keystroke':_0x3398d9(0x206)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1f2)),'keystroke':_0x3398d9(0x1db)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1e6)),'keystroke':_0x3398d9(0x1d6)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1fe)),'keystroke':_0x3398d9(0x216)},{'label':_0x514865(_0x13e307,_0x3398d9(0x20b)),'keystroke':_0x4b3fea?_0x3398d9(0x1d1):_0x3398d9(0x1f4)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1d4)),'keystroke':_0x3398d9(0x1e2)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1e4)),'keystroke':_0x3398d9(0x1e0)},{'label':_0x514865(_0x13e307,_0x3398d9(0x20a)),'keystroke':[[_0x3398d9(0x217)],[_0x3398d9(0x1ff)]]},{'label':_0x514865(_0x13e307,_0x3398d9(0x219)),'keystroke':_0x4b3fea?_0x3398d9(0x213):_0x3398d9(0x218)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1ce)),'keystroke':_0x4b3fea?_0x3398d9(0x21b):_0x3398d9(0x21a)},{'label':_0x514865(_0x13e307,_0x3398d9(0x212)),'keystroke':_0x3398d9(0x1f1)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1d5)),'keystroke':_0x3398d9(0x211)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1fd)),'keystroke':_0x3398d9(0x1f6)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1e1)),'keystroke':_0x3398d9(0x200)},{'label':_0x514865(_0x13e307,_0x3398d9(0x1f3)),'keystroke':_0x4b3fea?_0x3398d9(0x1cf):_0x3398d9(0x1ef)}]});}}function _0x5d8e(){const _0x5105a5=['Edit\x20source\x20modal\x20label','Ctrl+Shift+]','isPremiumPlugin','Shift+Alt+A','Indent\x20less','Unfold\x20code\x20(current\x20level)','Ctrl+Shift+[','isOfficialPlugin','Ctrl+Z','647746UgWuqd','305MMCAQg','24KYVtkH','SourceEditingEnhancedUI','ck-source-editing-enhanced-button','menuitemcheckbox','Undo\x20(keystroke)','Fold\x20all','Ctrl+Y','Ctrl!+Alt+]','listenTo','sourceEditingEnhanced','Source\x20Editing\x20Enhanced','_registerKeybindings','13450280DAFDUn','Shift+Ctrl+K','bind','isMac','requires','Redo\x20(keystroke)','Fold\x20code\x20(current\x20level)','addKeystrokeInfoCategory','40412NdVBTK','Delete\x20line','join','locale','Ctrl+/','Toggle\x20block\x20comment','Ctrl!+L','Copy\x20line\x20down','map','Ctrl!+Alt+[','Ctrl+Shift+Z','Alt+L','Select\x20line','Ctrl+M','Alt+Shift+M','180729cjQFfk','6AQehYV','init','set','364730mDUWMa','execute','editSource','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','Cmd+Alt+]','addKeystrokeInfos','Cmd+Alt+[','pluginName','126099AMFkYZ','Move\x20line\x20down','Toggle\x20comment','Ctrl+]','afterInit','_createButton','editor','isEnabled','Ctrl+[','Shift+Alt+ArrowDown','commands','Source','Shift+Alt+ArrowUp','Alt+ArrowUp','Unfold\x20all','Alt+ArrowDown','menuBar:sourceEditingEnhanced','Move\x20line\x20up','href','Indent\x20more','isiOS','componentFactory','Copy\x20line\x20up','fromCharCode','accessibility','add','170254AYBadU'];_0x5d8e=function(){return _0x5105a5;};return _0x5d8e();}
|
package/src/ui/codeeditorview.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x264f42=_0x346d;(function(_0x5ada98,_0x231802){var _0x261894=_0x346d,_0x54276e=_0x5ada98();while(!![]){try{var _0x452f96=parseInt(_0x261894(0x98))/0x1+-parseInt(_0x261894(0x93))/0x2+parseInt(_0x261894(0x9b))/0x3+parseInt(_0x261894(0x97))/0x4*(parseInt(_0x261894(0xa3))/0x5)+parseInt(_0x261894(0xa1))/0x6*(-parseInt(_0x261894(0x9f))/0x7)+parseInt(_0x261894(0x91))/0x8+parseInt(_0x261894(0xa5))/0x9*(parseInt(_0x261894(0x96))/0xa);if(_0x452f96===_0x231802)break;else _0x54276e['push'](_0x54276e['shift']());}catch(_0x539046){_0x54276e['push'](_0x54276e['shift']());}}}(_0x5269,0xd5a8f));import{View as _0x384775}from'ckeditor5/src/ui.js';function _0x5269(){var _0xf9320=['ck-reset_all-excluded','set','_options','450149JlCyUt','syntaxLanguage','156jgOYPW','_codeEditorApi','815895LkxTRs','isReadOnly','2253735vEgHIx','setReadOnly','getData','change:isReadOnly','render','destroy','ck-code-editor','setData','592096ArTQpd','setTemplate','2548912ddIMJP','element','focus','80EtqLlz','8ahvFpr','1353140RWgXiI','theme','div','194277juipkb'];_0x5269=function(){return _0xf9320;};return _0x5269();}function _0x346d(_0x3f3331,_0x50cb93){var _0x526926=_0x5269();return _0x346d=function(_0x346d77,_0x5271fa){_0x346d77=_0x346d77-0x8e;var _0x45b4dc=_0x526926[_0x346d77];return _0x45b4dc;},_0x346d(_0x3f3331,_0x50cb93);}import{createCodeMirrorEditor as _0x5f11f3}from'../utils/createcodemirroreditor.js';export class CodeEditorView extends _0x384775{[_0x264f42(0xa2)]=null;[_0x264f42(0x9e)];constructor(_0x1a4725,_0x334a3e){var _0x4cbdf4=_0x264f42;super(_0x1a4725),this[_0x4cbdf4(0x9e)]=_0x334a3e,this[_0x4cbdf4(0x9d)](_0x4cbdf4(0xa4),!0x1),this[_0x4cbdf4(0x92)]({'tag':_0x4cbdf4(0x9a),'attributes':{'class':['ck',_0x4cbdf4(0x9c),_0x4cbdf4(0x8f)],'tabindex':-0x1}});}[_0x264f42(0xa9)](){var _0x28b1d2=_0x264f42;super[_0x28b1d2(0xa9)](),this[_0x28b1d2(0xa2)]=_0x5f11f3({'parent':this[_0x28b1d2(0x94)],'syntaxLanguage':this[_0x28b1d2(0x9e)][_0x28b1d2(0xa0)],'theme':this[_0x28b1d2(0x9e)][_0x28b1d2(0x99)]}),this['on'](_0x28b1d2(0xa8),(_0x5bd275,_0x3b1919,_0x209a77)=>{var _0x5695af=_0x28b1d2;this[_0x5695af(0xa6)](_0x209a77);});}[_0x264f42(0x8e)](){var _0x3793a7=_0x264f42;super[_0x3793a7(0x8e)](),this[_0x3793a7(0xa2)][_0x3793a7(0x8e)](),this[_0x3793a7(0xa2)]=null;}[_0x264f42(0x95)](){var _0x75fd91=_0x264f42;this[_0x75fd91(0xa4)]?this[_0x75fd91(0x94)][_0x75fd91(0x95)]():this[_0x75fd91(0xa2)][_0x75fd91(0x95)]();}[_0x264f42(0xa7)](){var _0x347a87=_0x264f42;return this[_0x347a87(0xa2)][_0x347a87(0xa7)]();}[_0x264f42(0x90)](_0xe70f8f){var _0x1e5287=_0x264f42;this[_0x1e5287(0xa2)][_0x1e5287(0x90)](_0xe70f8f);}[_0x264f42(0xa6)](_0x58d27d){var _0x38deb1=_0x264f42;this[_0x38deb1(0xa2)][_0x38deb1(0xa6)](_0x58d27d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2463c9=_0x57c0;(function(_0x28fd8b,_0x42040a){const _0x4eade8=_0x57c0,_0x4f1d2a=_0x28fd8b();while(!![]){try{const _0x3e34dc=parseInt(_0x4eade8(0xcc))/0x1*(parseInt(_0x4eade8(0xb2))/0x2)+-parseInt(_0x4eade8(0xbb))/0x3*(-parseInt(_0x4eade8(0xe3))/0x4)+-parseInt(_0x4eade8(0xac))/0x5+-parseInt(_0x4eade8(0xb6))/0x6+parseInt(_0x4eade8(0xd3))/0x7+-parseInt(_0x4eade8(0xb8))/0x8*(-parseInt(_0x4eade8(0xc3))/0x9)+parseInt(_0x4eade8(0xe6))/0xa;if(_0x3e34dc===_0x42040a)break;else _0x4f1d2a['push'](_0x4f1d2a['shift']());}catch(_0x3447f1){_0x4f1d2a['push'](_0x4f1d2a['shift']());}}}(_0xa580,0xe47d7));import{Command as _0x33169b,PendingActions as _0xc3eccf}from'ckeditor5/src/core.js';import{getTranslation as _0x156871}from'../utils/common-translations.js';import{getActiveRootName as _0x10944e}from'../utils/getactiverootname.js';import{formatSource as _0x5a9d94,unformatSource as _0x4a4db5}from'../utils/format.js';import{CodeEditorView as _0x1131aa}from'./codeeditorview.js';function _0x57c0(_0x171990,_0x48aab4){const _0xa58083=_0xa580();return _0x57c0=function(_0x57c0f5,_0x1f9dfb){_0x57c0f5=_0x57c0f5-0xab;let _0x1b6397=_0xa58083[_0x57c0f5];return _0x1b6397;},_0x57c0(_0x171990,_0x48aab4);}const te=_0x2463c9(0xd5);export class EditSourceCommand extends _0x33169b{constructor(_0x50f9f5){const _0x2bb0bd=_0x2463c9;super(_0x50f9f5),this[_0x2bb0bd(0xbe)]=!0x1,this[_0x2bb0bd(0xb3)][_0x2bb0bd(0xae)][_0x2bb0bd(0xc1)](_0xc3eccf)['on'](_0x2bb0bd(0xda),(_0x382960,_0x49bb86,_0x3d8130)=>{const _0x1cf3ab=_0x2bb0bd;_0x3d8130?this[_0x1cf3ab(0xcf)](_0x1cf3ab(0xb9)):this[_0x1cf3ab(0xe7)](_0x1cf3ab(0xb9));});}[_0x2463c9(0xc0)](){const _0x188683=_0x2463c9,_0x1b1c45=this[_0x188683(0xb3)];for(const _0x37aad7 of _0x1b1c45[_0x188683(0xde)][_0x188683(0xb0)]())[_0x188683(0xba),_0x188683(0xbd)][_0x188683(0xc9)](_0x37aad7)||_0x1b1c45[_0x188683(0xde)][_0x188683(0xc1)](_0x37aad7)[_0x188683(0xcf)](te);}[_0x2463c9(0xe4)](){const _0xfc56e3=_0x2463c9,_0x38f7a3=this[_0xfc56e3(0xb3)];for(const _0x9dc684 of _0x38f7a3[_0xfc56e3(0xde)][_0xfc56e3(0xde)]())_0x9dc684[_0xfc56e3(0xe7)](te);}[_0x2463c9(0xaf)](){const _0x551dc5=_0x2463c9;this[_0x551dc5(0xc7)]=!0x0;}[_0x2463c9(0xd9)](){const _0x43c867=_0x2463c9,_0x169b2f=this[_0x43c867(0xb3)],_0x477c02=_0x169b2f[_0x43c867(0xd1)],_0x5e7880=_0x169b2f[_0x43c867(0xae)][_0x43c867(0xc1)](_0x43c867(0xe1)),_0x3f5536=_0x10944e(_0x169b2f),_0x43e737=_0x169b2f[_0x43c867(0xd2)][_0x43c867(0xc1)]({'rootName':_0x3f5536}),_0x259ae4=_0x5a9d94(_0x43e737),_0x2bd2dc=new _0x1131aa(_0x477c02,{'syntaxLanguage':_0x169b2f[_0x43c867(0xae)][_0x43c867(0xdc)](_0x43c867(0xcb))?_0x43c867(0xb4):_0x43c867(0xab),'theme':_0x169b2f[_0x43c867(0xe0)][_0x43c867(0xc1)](_0x43c867(0xdf))});let _0x22152d=!0x0;const _0x196f15=_0xa49445=>{const _0x18afba=_0x43c867;if(!_0x22152d)return;const _0x571c65=_0x2bd2dc[_0x18afba(0xb1)]();return _0x4a4db5(_0x571c65)!==_0x4a4db5(_0x259ae4)?window[_0x18afba(0xd8)](_0x156871(_0x477c02,_0x18afba(0xd6)))?void 0x0:_0xa49445[_0x18afba(0xe5)]():void 0x0;};_0x5e7880[_0x43c867(0xd0)]({'id':_0x43c867(0xd7),'title':_0x156871(_0x477c02,_0x43c867(0xe2)),'isModal':!0x0,'className':_0x43c867(0xd4),'content':_0x2bd2dc,'actionButtons':[{'label':_0x156871(_0x477c02,_0x43c867(0xad)),'withText':!0x0,'onExecute':()=>{const _0x50eda4=_0x43c867;_0x5e7880[_0x50eda4(0xb7)]();}},{'label':_0x156871(_0x477c02,_0x43c867(0xc2)),'class':_0x43c867(0xce),'withText':!0x0,'onExecute':()=>{const _0x146ee8=_0x43c867,_0x4ef91d=_0x2bd2dc[_0x146ee8(0xb1)](),_0x1cc31e=_0x4a4db5(_0x4ef91d)!==_0x4a4db5(_0x259ae4);(_0x1cc31e&&_0x169b2f[_0x146ee8(0xd9)](_0x146ee8(0xba),_0x2bd2dc[_0x146ee8(0xb1)]()),_0x22152d=!0x1,_0x5e7880[_0x146ee8(0xb7)](),_0x1cc31e&&_0x146ee8(0xbf)in _0x169b2f['ui'][_0x146ee8(0xc4)])&&_0x169b2f['ui'][_0x146ee8(0xc4)][_0x146ee8(0xbf)][_0x3f5536][_0x146ee8(0xc8)][_0x146ee8(0xc5)]();},'onCreate':_0x1c0650=>{const _0x24fe91=_0x43c867;_0x1c0650[_0x24fe91(0xb5)](_0x24fe91(0xc7),!_0x169b2f[_0x24fe91(0xdb)]),_0x1c0650[_0x24fe91(0xcd)](_0x24fe91(0xc7))['to'](_0x169b2f,_0x24fe91(0xdb),this,_0x24fe91(0xc7),(_0x3105de,_0x537f17)=>!_0x3105de&&_0x537f17);}}],'onHide':()=>{const _0x517782=_0x43c867;this[_0x517782(0xe4)](),_0x5e7880[_0x517782(0xca)](_0x517782(0xb7),_0x196f15),_0x2bd2dc[_0x517782(0xdd)]();},'onShow':()=>{const _0x44bfed=_0x43c867;_0x2bd2dc[_0x44bfed(0xcd)](_0x44bfed(0xdb))['to'](_0x169b2f,_0x44bfed(0xdb),this,_0x44bfed(0xc7),(_0x31669d,_0x25ee11)=>_0x31669d||!_0x25ee11),_0x2bd2dc[_0x44bfed(0xbc)](_0x259ae4),_0x2bd2dc[_0x44bfed(0xc5)](),_0x5e7880['on'](_0x44bfed(0xb7),_0x196f15,{'priority':_0x44bfed(0xc6)}),this[_0x44bfed(0xc0)]();}});}}function _0xa580(){const _0x1c3e41=['sourceEditingEnhanced','confirm','execute','change:hasAny','isReadOnly','has','destroy','commands','sourceEditingEnhanced.theme','config','Dialog','Edit\x20source\x20modal\x20label','20EkhuUH','_enableCommands','stop','3743410oqDetC','clearForceDisabled','html','5710515uZNYbo','Cancel','plugins','refresh','names','getData','525956HHizfk','editor','markdown','set','8523648LwKyFn','hide','13810072bdbqBQ','pendingActions','replaceSource','69477HpnsGW','setData','editSource','affectsData','editables','_disableCommands','get','Save','9fYzxFm','view','focus','highest','isEnabled','element','includes','off','Markdown','4ORTsfR','bind','ck-button-action','forceDisabled','show','locale','data','1612093yMXEfu','ck-source-editing-enhanced-dialog','SourceEditingEnhancedMode','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'];_0xa580=function(){return _0x1c3e41;};return _0xa580();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x20c715,_0x1111b7){const _0x592d4d=_0x4d88,_0x416d7f=_0x20c715();while(!![]){try{const _0x413fd6=parseInt(_0x592d4d(0x15d))/0x1*(-parseInt(_0x592d4d(0x172))/0x2)+parseInt(_0x592d4d(0x154))/0x3+parseInt(_0x592d4d(0x156))/0x4*(-parseInt(_0x592d4d(0x16d))/0x5)+-parseInt(_0x592d4d(0x153))/0x6*(parseInt(_0x592d4d(0x16b))/0x7)+parseInt(_0x592d4d(0x167))/0x8+-parseInt(_0x592d4d(0x15c))/0x9*(parseInt(_0x592d4d(0x168))/0xa)+parseInt(_0x592d4d(0x151))/0xb;if(_0x413fd6===_0x1111b7)break;else _0x416d7f['push'](_0x416d7f['shift']());}catch(_0x410c79){_0x416d7f['push'](_0x416d7f['shift']());}}}(_0x1159,0x849be));import{lineNumbers as _0x3b4352,highlightActiveLineGutter as _0x17a47e,highlightSpecialChars as _0x3dd353,drawSelection as _0xc278d1,dropCursor as _0x52e2ee,rectangularSelection as _0x57b233,crosshairCursor as _0x595c54,highlightActiveLine as _0x318c5d,keymap as _0x52ab54,EditorView as _0x266baa}from'@codemirror/view';import{Compartment as _0x431a14,Transaction as _0x2c3a87}from'@codemirror/state';import{foldGutter as _0x5ac720,indentOnInput as _0x28cfd3,syntaxHighlighting as _0xb6df,defaultHighlightStyle as _0x4e83e0,bracketMatching as _0x146b3e,foldKeymap as _0x1a2eb7}from'@codemirror/language';import{history as _0x44e64f,defaultKeymap as _0x10a610,historyKeymap as _0xc6c7b0,redo as _0x4ad44f,undo as _0x19aeb0,indentMore as _0x1e1280,indentLess as _0x5ce73c,toggleTabFocusMode as _0x291e42}from'@codemirror/commands';function _0x4d88(_0x113b47,_0x414026){const _0x11595c=_0x1159();return _0x4d88=function(_0x4d884d,_0x4c093f){_0x4d884d=_0x4d884d-0x14f;let _0x6c59d1=_0x11595c[_0x4d884d];return _0x6c59d1;},_0x4d88(_0x113b47,_0x414026);}import{closeBrackets as _0x4369fc,autocompletion as _0x522a25,closeBracketsKeymap as _0x59a287,completionKeymap as _0x289179}from'@codemirror/autocomplete';import{html as _0x3079c5}from'@codemirror/lang-html';import{markdown as _0xd81ca2}from'@codemirror/lang-markdown';function _0x1159(){const _0x3e3413=['addToHistory','parent','9TfWexb','6475uhbKmZ','html','theme','editable','state','toString','length','focus','Ctrl-z','dispatch','2614360uYidHN','5832790ISccLK','Tab','Cmd-Shift-z','14pvkJbW','dark','25dmAOKG','doc','destroy','syntaxLanguage','Ctrl-Shift-z','80HjaNrM','reconfigure','Ctrl-y','14414103tspylT','Cmd-z','2436054gsEOTD','2334840Ninhvq','lineWrapping','174388BdPHJC','default','Cmd-y','push'];_0x1159=function(){return _0x3e3413;};return _0x1159();}import{oneDark as _0x1e7b72}from'@codemirror/theme-one-dark';export function createCodeMirrorEditor(_0x5055e2){const _0x470e4c=_0x4d88,_0x111d2d=[_0x266baa[_0x470e4c(0x155)],_0x522a25(),_0x146b3e(),_0x4369fc(),_0x595c54(),_0xc278d1(),_0x52e2ee(),_0x3b4352(),_0x5ac720(),_0x318c5d(),_0x17a47e(),_0x3dd353(),_0x44e64f(),_0x28cfd3(),_0x57b233(),_0xb6df(_0x4e83e0,{'fallback':!0x0})],_0x28a55d=new _0x431a14();_0x111d2d[_0x470e4c(0x159)](_0x28a55d['of'](_0x266baa[_0x470e4c(0x160)]['of'](!0x0))),_0x470e4c(0x15e)===_0x5055e2[_0x470e4c(0x170)]?_0x111d2d[_0x470e4c(0x159)](_0x3079c5()):_0x111d2d[_0x470e4c(0x159)](_0xd81ca2());const _0x461e32=function(_0x23f7f7){const _0x378fc1=_0x470e4c;if(_0x23f7f7&&_0x378fc1(0x157)!==_0x23f7f7)return _0x378fc1(0x16c)===_0x23f7f7?_0x1e7b72:_0x23f7f7;return null;}(_0x5055e2[_0x470e4c(0x15f)]);_0x461e32&&_0x111d2d[_0x470e4c(0x159)](_0x461e32),_0x111d2d[_0x470e4c(0x159)](...getKeybindings());const _0x37d7d5=new _0x266baa({'extensions':_0x111d2d,'parent':_0x5055e2[_0x470e4c(0x15b)]});return _0x291e42(_0x37d7d5),{'focus':()=>{const _0x165faa=_0x470e4c;_0x37d7d5[_0x165faa(0x166)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x37d7d5[_0x165faa(0x164)]();},'getData':()=>_0x37d7d5[_0x470e4c(0x161)][_0x470e4c(0x16e)][_0x470e4c(0x162)](),'setData':_0x2cc5cf=>{const _0x36c6ee=_0x470e4c;_0x37d7d5[_0x36c6ee(0x166)]({'changes':{'from':0x0,'to':_0x37d7d5[_0x36c6ee(0x161)][_0x36c6ee(0x16e)][_0x36c6ee(0x163)],'insert':_0x2cc5cf},'annotations':_0x2c3a87[_0x36c6ee(0x15a)]['of'](!0x1)});},'setReadOnly':_0x29682e=>{const _0x2540a3=_0x470e4c;_0x37d7d5[_0x2540a3(0x166)]({'effects':[_0x28a55d[_0x2540a3(0x14f)](_0x266baa[_0x2540a3(0x160)]['of'](!_0x29682e))]});},'destroy':()=>{const _0x317795=_0x470e4c;_0x37d7d5[_0x317795(0x16f)]();},'instance':_0x37d7d5};}export function getKeybindings(){const _0x1617c7=_0x4d88;return[_0x52ab54['of']([..._0x59a287,..._0x10a610,..._0xc6c7b0,..._0x1a2eb7,..._0x289179,{'key':_0x1617c7(0x169),'run':_0x1e1280,'shift':_0x5ce73c,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x1617c7(0x150),'mac':_0x1617c7(0x158),'run':_0x4ad44f,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x1617c7(0x171),'mac':_0x1617c7(0x16a),'run':_0x4ad44f,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x1617c7(0x165),'mac':_0x1617c7(0x152),'run':_0x19aeb0,'preventDefault':!0x0,'stopPropagation':!0x0}])];}
|
package/src/utils/format.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5bca5e,_0x23b05f){var _0x44a528=_0x36b9,_0x27b3cb=_0x5bca5e();while(!![]){try{var _0x2463a5=parseInt(_0x44a528(0x1ae))/0x1*(-parseInt(_0x44a528(0x1ab))/0x2)+parseInt(_0x44a528(0x1ac))/0x3*(parseInt(_0x44a528(0x1a8))/0x4)+-parseInt(_0x44a528(0x1b1))/0x5+parseInt(_0x44a528(0x1a7))/0x6*(parseInt(_0x44a528(0x1b3))/0x7)+parseInt(_0x44a528(0x1b0))/0x8+parseInt(_0x44a528(0x1aa))/0x9+-parseInt(_0x44a528(0x1b2))/0xa*(-parseInt(_0x44a528(0x1af))/0xb);if(_0x2463a5===_0x23b05f)break;else _0x27b3cb['push'](_0x27b3cb['shift']());}catch(_0x231047){_0x27b3cb['push'](_0x27b3cb['shift']());}}}(_0xe22e,0xa1c5a));import{formatHtml as _0x3ba4e0}from'ckeditor5/src/utils.js';export function formatSource(_0x57da00){return X(_0x57da00)?_0x3ba4e0(_0x57da00):_0x57da00;}export function unformatSource(_0x417f1d){var _0x3c19e0=_0x36b9;return X(_0x417f1d[_0x3c19e0(0x1a9)](/^[\n\s]*/g,''))?_0x417f1d[_0x3c19e0(0x1a9)](/\s+/g,''):_0x417f1d;}function _0x36b9(_0x23909f,_0x588626){var _0xe22ef1=_0xe22e();return _0x36b9=function(_0x36b978,_0x43e38d){_0x36b978=_0x36b978-0x1a7;var _0x5b257a=_0xe22ef1[_0x36b978];return _0x5b257a;},_0x36b9(_0x23909f,_0x588626);}function _0xe22e(){var _0x845f2=['2275616CJjuSJ','2737750hYSzCm','4175270nKiyYu','28SblMbz','140226MxAeQi','388244QQwqsE','replace','5035896kOtqOu','96846iJOKMN','6IpBkMo','startsWith','7geScUn','11hxNZll'];_0xe22e=function(){return _0x845f2;};return _0xe22e();}function X(_0x556f6d){var _0x10e174=_0x36b9;return _0x556f6d[_0x10e174(0x1ad)]('<');}
|