@ckeditor/ckeditor5-source-editing-enhanced 46.0.1-alpha.2 → 46.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x4f9b20,PendingActions as _0x560f95,Plugin as _0xb42740}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x73ed3e,formatHtml as _0x46d146,env as _0x13cb43,uid as _0x3f48e3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x33c9a2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x232c98,ButtonView as _0x281e66,MenuBarMenuListItemButtonView as _0x208e9a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x1d8232,crosshairCursor as _0x50da78,drawSelection as _0x2a8efd,dropCursor as _0xed7529,lineNumbers as _0x583936,highlightActiveLine as _0xa25a38,highlightActiveLineGutter as _0x2c242a,highlightSpecialChars as _0x20c24d,rectangularSelection as _0x4d1766,keymap as _0x9373ef}from'@codemirror/view';import{Compartment as _0x24724e,Transaction as _0x3978b4}from'@codemirror/state';import{bracketMatching as _0x1082d9,foldGutter as _0x1e4dc8,indentOnInput as _0x7251c2,syntaxHighlighting as _0x12864d,defaultHighlightStyle as _0x10f5a4,foldKeymap as _0x453719}from'@codemirror/language';import{toggleTabFocusMode as _0x3ef754,history as _0x4daa04,defaultKeymap as _0x6426ab,historyKeymap as _0x365738,indentLess as _0x3edde9,indentMore as _0x147297,redo as _0x1b33ac,undo as _0x5d9c01}from'@codemirror/commands';import{autocompletion as _0x381af5,closeBrackets as _0x17c83e,closeBracketsKeymap as _0x189add,completionKeymap as _0x4b9efa}from'@codemirror/autocomplete';import{html as _0xb8a560}from'@codemirror/lang-html';import{markdown as _0x52a138}from'@codemirror/lang-markdown';import{oneDark as _0x5e954e}from'@codemirror/theme-one-dark';function w(_0x26eb60,_0x2088b7){const t=_0x26eb60['t'];switch(_0x2088b7){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 _0x2088b7;}}function r(_0x18cde1){const _0x4af60f=_0x18cde1['editing']['view']['document']['roots'],_0x1bd1d0=_0x4af60f['length'];if(0x0===_0x1bd1d0)throw new _0x73ed3e('source-editing-enhanced-editor-no-root',_0x18cde1);if(0x1===_0x1bd1d0)return _0x4af60f['first']['rootName'];return Array['from'](_0x18cde1['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function $(_0x2f7bf5){return X(_0x2f7bf5['replace'](/^[\n\s]*/g,''))?_0x2f7bf5['replace'](/\s+/g,''):_0x2f7bf5;}function X(_0x1f0aa1){return _0x1f0aa1['startsWith']('<');}function Y(_0x530077){const _0x5897b4=[_0x1d8232['lineWrapping'],_0x381af5(),_0x1082d9(),_0x17c83e(),_0x50da78(),_0x2a8efd(),_0xed7529(),_0x583936(),_0x1e4dc8(),_0xa25a38(),_0x2c242a(),_0x20c24d(),_0x4daa04(),_0x7251c2(),_0x4d1766(),_0x12864d(_0x10f5a4,{'fallback':!0x0})],_0x27ac54=new _0x24724e();_0x5897b4['push'](_0x27ac54['of'](_0x1d8232['editable']['of'](!0x0))),'html'===_0x530077['syntaxLanguage']?_0x5897b4['push'](_0xb8a560()):_0x5897b4['push'](_0x52a138());const _0x33faca=function(_0x49821d){if(_0x49821d&&'default'!==_0x49821d)return'dark'===_0x49821d?_0x5e954e:_0x49821d;return null;}(_0x530077['theme']);_0x33faca&&_0x5897b4['push'](_0x33faca),_0x5897b4['push'](_0x9373ef['of']([..._0x189add,..._0x6426ab,..._0x365738,..._0x453719,..._0x4b9efa,{'key':'Tab','run':_0x147297,'shift':_0x3edde9,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x1b33ac,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x1b33ac,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x5d9c01,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x38460c=new _0x1d8232({'extensions':_0x5897b4,'parent':_0x530077['parent']});return _0x3ef754(_0x38460c),{'focus':()=>{_0x38460c['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x38460c['focus']();},'getData':()=>_0x38460c['state']['doc']['toString'](),'setData':_0x466ffd=>{_0x38460c['dispatch']({'changes':{'from':0x0,'to':_0x38460c['state']['doc']['length'],'insert':_0x466ffd},'annotations':_0x3978b4['addToHistory']['of'](!0x1)});},'setReadOnly':_0x2c130a=>{_0x38460c['dispatch']({'effects':[_0x27ac54['reconfigure'](_0x1d8232['editable']['of'](!_0x2c130a))]});},'destroy':()=>{_0x38460c['destroy']();},'instance':_0x38460c};}class ee extends _0x232c98{['_codeEditorApi']=null;['_options'];constructor(_0x4ea2e1,_0x1e7dac){super(_0x4ea2e1),this['_options']=_0x1e7dac,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',(_0x5921b6,_0x53ecb4,_0x16eb69)=>{this['setReadOnly'](_0x16eb69);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0xc5af9b){this['_codeEditorApi']['setData'](_0xc5af9b);}['setReadOnly'](_0x739612){this['_codeEditorApi']['setReadOnly'](_0x739612);}}const te='SourceEditingEnhancedMode';class d extends _0x4f9b20{constructor(_0xf32133){super(_0xf32133),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x560f95)['on']('change:hasAny',(_0x5ea12a,_0x42bc6a,_0x376751)=>{_0x376751?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x597614=this['editor'];for(const _0x1a19af of _0x597614['commands']['names']())['replaceSource','editSource']['includes'](_0x1a19af)||_0x597614['commands']['get'](_0x1a19af)['forceDisabled'](te);}['_enableCommands'](){const _0xf3cec2=this['editor'];for(const _0x43856b of _0xf3cec2['commands']['commands']())_0x43856b['clearForceDisabled'](te);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x496c36=this['editor'],_0x159aa7=_0x496c36['locale'],_0xe6c9bf=_0x496c36['plugins']['get']('Dialog'),_0x32ef24=r(_0x496c36),_0x50a59c=_0x496c36['data']['get']({'rootName':_0x32ef24}),_0x13c1ca=X(_0x5d51ac=_0x50a59c)?_0x46d146(_0x5d51ac):_0x5d51ac;var _0x5d51ac;const _0x368406=new ee(_0x159aa7,{'syntaxLanguage':_0x496c36['plugins']['has']('Markdown')?'markdown':'html','theme':_0x496c36['config']['get']('sourceEditingEnhanced.theme')});let _0x3b4683=!0x0;const _0x3c15f2=_0x38d582=>{if(!_0x3b4683)return;return $(_0x368406['getData']())!==$(_0x13c1ca)?window['confirm'](w(_0x159aa7,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x38d582['stop']():void 0x0;};_0xe6c9bf['show']({'id':'sourceEditingEnhanced','title':w(_0x159aa7,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x368406,'actionButtons':[{'label':w(_0x159aa7,'Cancel'),'withText':!0x0,'onExecute':()=>{_0xe6c9bf['hide']();}},{'label':w(_0x159aa7,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x2dd6ec=$(_0x368406['getData']())!==$(_0x13c1ca);(_0x2dd6ec&&_0x496c36['execute']('replaceSource',_0x368406['getData']()),_0x3b4683=!0x1,_0xe6c9bf['hide'](),_0x2dd6ec&&'editables'in _0x496c36['ui']['view'])&&_0x496c36['ui']['view']['editables'][_0x32ef24]['element']['focus']();},'onCreate':_0x3fa99d=>{_0x3fa99d['set']('isEnabled',!_0x496c36['isReadOnly']),_0x3fa99d['bind']('isEnabled')['to'](_0x496c36,'isReadOnly',this,'isEnabled',(_0x44b8d7,_0x3e7da6)=>!_0x44b8d7&&_0x3e7da6);}}],'onHide':()=>{this['_enableCommands'](),_0xe6c9bf['off']('hide',_0x3c15f2),_0x368406['destroy']();},'onShow':()=>{_0x368406['bind']('isReadOnly')['to'](_0x496c36,'isReadOnly',this,'isEnabled',(_0x31ae28,_0x21db65)=>_0x31ae28||!_0x21db65),_0x368406['setData'](_0x13c1ca),_0x368406['focus'](),_0xe6c9bf['on']('hide',_0x3c15f2,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0xb42740{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x560f95];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45dd42=this['editor'],_0x50b3c6=_0x45dd42['locale'],_0x5a6b13=new d(_0x45dd42);_0x45dd42['commands']['add']('editSource',_0x5a6b13),_0x45dd42['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x474760=this['_createButton'](_0x281e66,_0x5a6b13);return _0x474760['set']({'label':w(_0x50b3c6,'Source'),'icon':_0x33c9a2,'tooltip':w(_0x50b3c6,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x474760;}),_0x45dd42['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x3e81cc=this['_createButton'](_0x208e9a,_0x5a6b13,!0x0);return _0x3e81cc['set']({'label':w(_0x50b3c6,'Edit\x20source\x20modal\x20label'),'icon':_0x33c9a2,'role':'menuitemcheckbox'}),_0x3e81cc;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x18ead1){const _0x416fe3=_0x85e373([0x6d,0x63,0x45,0x54,0x30,0x47,0x4d,0x37,0x48,0x75,0x66,0x49,0x78,0x4e,0x69,0x71,0x38,0x67,0x6f,0x36,0x76,0x50,0x52,0x41,0x51,0x42,0x73,0x31,0x65,0x6e,0x39,0x4f,0x79,0x61,0x70,0x57,0x46,0x53,0x77,0x33,0x32,0x7a,0x72,0x74,0x4a,0x59,0x68,0x56,0x55,0x58,0x5a,0x44,0x43,0x6b,0x62,0x4b,0x35,0x6a,0x64,0x34,0x6c,0x4c]),_0x13a971=0x32d8ec07,_0x43605f=0x32df833f^_0x13a971,_0x4182f1=window[_0x85e373([0x44,0x61,0x74,0x65])][_0x85e373([0x6e,0x6f,0x77])](),_0x3fe770=_0x18ead1[_0x85e373([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa23b54=new window[(_0x85e373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2712e2=>{_0x3fe770[_0x85e373([0x6f,0x6e,0x63,0x65])](_0x85e373([0x72,0x65,0x61,0x64,0x79]),_0x2712e2);}),_0x43bdb5={[_0x85e373([0x6b,0x74,0x79])]:_0x85e373([0x45,0x43]),[_0x85e373([0x75,0x73,0x65])]:_0x85e373([0x73,0x69,0x67]),[_0x85e373([0x63,0x72,0x76])]:_0x85e373([0x50,0x2d,0x32,0x35,0x36]),[_0x85e373([0x78])]:_0x85e373([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]),[_0x85e373([0x79])]:_0x85e373([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]),[_0x85e373([0x61,0x6c,0x67])]:_0x85e373([0x45,0x53,0x32,0x35,0x36])},_0x20b9a5=_0x3fe770[_0x85e373([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x85e373([0x67,0x65,0x74])](_0x85e373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34b109(){let _0x2dbd62,_0x76b3b4=null,_0x3254a2=null;try{if(_0x20b9a5==_0x85e373([0x47,0x50,0x4c]))return _0x85e373([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2dbd62=_0x4b4858(),!_0x2dbd62)return _0x85e373([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2dbd62[_0x85e373([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3254a2=_0x1cdf28(_0x2dbd62[_0x85e373([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2dbd62[_0x85e373([0x6a,0x74,0x69])])),await _0x49d58e()?_0xe5af75()?_0x5a5383()?_0x85e373([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ae1f3()?(_0x2dbd62[_0x85e373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x85e373([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x76b3b4=_0x4017ae(_0x85e373([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2dbd62[_0x85e373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x85e373([0x74,0x72,0x69,0x61,0x6c])&&(_0x76b3b4=_0x4017ae(_0x85e373([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e64c7()):_0x85e373([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x85e373([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x85e373([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x85e373([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a5383(){const _0x3fd314=[_0x85e373([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x85e373([0x74,0x72,0x69,0x61,0x6c])][_0x85e373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbd62[_0x85e373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4182f1/0x3e8:0xe10*_0x43605f;return _0x2dbd62[_0x85e373([0x65,0x78,0x70])]<_0x3fd314;}function _0xe5af75(){const _0x2d5ae8=_0x2dbd62[_0x85e373([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d5ae8&&(!!_0x2d5ae8[_0x85e373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x85e373([0x2a]))||!!_0x2d5ae8[_0x85e373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x85e373([0x53,0x45,0x45])));}function _0x5ae1f3(){const _0x3c4fb5=_0x2dbd62[_0x85e373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c4fb5||0x0==_0x3c4fb5[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2da2fa}=new URL(window[_0x85e373([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c4fb5[_0x85e373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da2fa))return!0x0;const _0x7875b8=_0x2da2fa[_0x85e373([0x73,0x70,0x6c,0x69,0x74])](_0x85e373([0x2e]));return _0x3c4fb5[_0x85e373([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35d356=>_0x35d356[_0x85e373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x85e373([0x2a])))[_0x85e373([0x6d,0x61,0x70])](_0xa0513c=>_0xa0513c[_0x85e373([0x73,0x70,0x6c,0x69,0x74])](_0x85e373([0x2e])))[_0x85e373([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ae2d1=>_0x3ae2d1[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7875b8[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x85e373([0x6d,0x61,0x70])](_0x40109c=>Array(_0x7875b8[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40109c[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x85e373([0x66,0x69,0x6c,0x6c])](_0x40109c[0x0]===_0x85e373([0x2a])?_0x85e373([0x2a]):'')[_0x85e373([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40109c))[_0x85e373([0x73,0x6f,0x6d,0x65])](_0x5f4944=>_0x7875b8[_0x85e373([0x65,0x76,0x65,0x72,0x79])]((_0x20ab50,_0x4a307c)=>_0x5f4944[_0x4a307c]===_0x20ab50||_0x5f4944[_0x4a307c]===_0x85e373([0x2a])));}function _0x3e64c7(){return _0x76b3b4&&_0x3254a2?new window[(_0x85e373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a4368,_0x5dd877)=>{_0x76b3b4[_0x85e373([0x74,0x68,0x65,0x6e])](_0x1a4368,_0x5dd877),_0x3254a2[_0x85e373([0x74,0x68,0x65,0x6e])](_0x4bac5d=>{_0x4bac5d!=_0x85e373([0x56,0x61,0x6c,0x69,0x64])&&_0x1a4368(_0x4bac5d);},_0x5dd877);}):_0x76b3b4||_0x3254a2||_0x85e373([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cdf28(_0x126c87,_0x1900ff){return new window[(_0x85e373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215609=>{if(_0x5e0c12())return _0x215609(_0x85e373([0x56,0x61,0x6c,0x69,0x64]));_0x403c89(),_0x3fe770[_0x85e373([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x85e373([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe6fd76=!0x1;const _0x7b50b0=_0x3f48e3();function _0x1b4331(_0x4ee95f){return!!_0x4ee95f&&(typeof _0x4ee95f===_0x85e373([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ee95f===_0x85e373([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ee95f[_0x85e373([0x74,0x68,0x65,0x6e])]===_0x85e373([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ee95f[_0x85e373([0x63,0x61,0x74,0x63,0x68])]===_0x85e373([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c44b7(_0x34ab45){_0x51b5b1(_0x34ab45)[_0x85e373([0x74,0x68,0x65,0x6e])](_0x227ab5=>{if(!_0x227ab5||_0x227ab5[_0x85e373([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x85e373([0x6f,0x6b]))return _0x85e373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17aefa(_0x14180f(_0x7b50b0+_0x1900ff))!=_0x227ab5[_0x85e373([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x85e373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x85e373([0x56,0x61,0x6c,0x69,0x64]);})[_0x85e373([0x74,0x68,0x65,0x6e])](_0x5f190e=>(_0x51b64c(),_0x5f190e),()=>{const _0x6b1c1c=_0x452493();return null==_0x6b1c1c?(_0x51b64c(),_0x85e373([0x56,0x61,0x6c,0x69,0x64])):_0x85e373(_0x4182f1-_0x6b1c1c>(0x16d46807^_0x13a971)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x85e373([0x74,0x68,0x65,0x6e])](_0x215609)[_0x85e373([0x63,0x61,0x74,0x63,0x68])](()=>{_0x215609(_0x85e373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5784ca=0x32ee0287^_0x13a971;function _0x51b64c(){const _0x27dafe=_0x85e373([0x6c,0x6c,0x63,0x74,0x2d])+_0x17aefa(_0x14180f(_0x126c87)),_0x1172b9=_0x1e1244(_0x17aefa(window[_0x85e373([0x4d,0x61,0x74,0x68])][_0x85e373([0x63,0x65,0x69,0x6c])](_0x4182f1/_0x5784ca)));window[_0x85e373([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x85e373([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27dafe,_0x1172b9);}function _0x452493(){const _0x379f31=_0x85e373([0x6c,0x6c,0x63,0x74,0x2d])+_0x17aefa(_0x14180f(_0x126c87)),_0x332295=window[_0x85e373([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x85e373([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x379f31);return _0x332295?window[_0x85e373([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e1244(_0x332295),0x10)*_0x5784ca:null;}function _0x51b5b1(_0x424870){return new window[(_0x85e373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d85c3,_0x2c3144)=>{_0x424870[_0x85e373([0x74,0x68,0x65,0x6e])](_0x5d85c3,_0x2c3144),window[_0x85e373([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c3144,0x32d938c7^_0x13a971);});}}_0x3fe770[_0x85e373([0x6f,0x6e])](_0x85e373([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e9ba8,_0xd1d982)=>{if(_0xd1d982[0x0]!=_0x126c87)return _0x215609(_0x85e373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd1d982[0x1]={..._0xd1d982[0x1],[_0x85e373([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7b50b0};},{[_0x85e373([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x85e373([0x68,0x69,0x67,0x68])}),_0x3fe770[_0x85e373([0x6f,0x6e])](_0x85e373([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e6308=>{_0x1b4331(_0x1e6308[_0x85e373([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe6fd76=!0x0,_0x3c44b7(_0x1e6308[_0x85e373([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x85e373([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x85e373([0x6c,0x6f,0x77])}),_0xa23b54[_0x85e373([0x74,0x68,0x65,0x6e])](()=>{_0xe6fd76||_0x215609(_0x85e373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e0c12(){return _0x3fe770[_0x85e373([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x85e373([0x76,0x69,0x65,0x77])][_0x85e373([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x85e373([0x61,0x75,0x74,0x6f]);}function _0x403c89(){_0x3fe770[_0x85e373([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x85e373([0x76,0x69,0x65,0x77])][_0x85e373([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x85e373([0x61,0x75,0x74,0x6f]);}}function _0x4017ae(_0x3068fa){const _0x506c60=[new window[(_0x85e373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x299633=>setTimeout(_0x299633,0x32d1d2cb^_0x13a971)),_0xa23b54[_0x85e373([0x74,0x68,0x65,0x6e])](()=>new window[(_0x85e373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5560dc=>{let _0x259ce1=0x0;_0x3fe770[_0x85e373([0x6d,0x6f,0x64,0x65,0x6c])][_0x85e373([0x6f,0x6e])](_0x85e373([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3baff1,_0x2e3a59)=>{_0x2e3a59[0x0][_0x85e373([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x259ce1++,_0x259ce1==(0x32d8edff^_0x13a971)&&(_0x5560dc(),_0x3baff1[_0x85e373([0x6f,0x66,0x66])]());});}))];return window[_0x85e373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x85e373([0x72,0x61,0x63,0x65])](_0x506c60)[_0x85e373([0x74,0x68,0x65,0x6e])](()=>_0x3068fa);}async function _0x15e890(){await _0xa23b54,_0x3fe770[_0x85e373([0x6d,0x6f,0x64,0x65,0x6c])][_0x85e373([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe42752,_0x3fe770[_0x85e373([0x6d,0x6f,0x64,0x65,0x6c])][_0x85e373([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe42752,_0x3fe770[_0x85e373([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x85e373([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23f0a0(_0x441e58){const _0x1ad332=_0x2da2d6();_0x3fe770[_0x1ad332]=_0x85e373([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])+_0x441e58,_0x441e58!=_0x85e373([0x56,0x61,0x6c,0x69,0x64])&&_0x15e890();}function _0x2da2d6(){const _0x109b7d=window[_0x85e373([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x85e373([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x85e373([0x6e,0x6f,0x77])]())[_0x85e373([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x85e373([0x2e]),'');let _0x47ccc4=_0x85e373([0x6d]);for(let _0x402df7=0x0;_0x402df7<_0x109b7d[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x402df7+=0x2){let _0x20ca3f=window[_0x85e373([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x109b7d[_0x85e373([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x402df7,_0x402df7+0x2));_0x20ca3f>=_0x416fe3[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20ca3f-=_0x416fe3[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47ccc4+=_0x416fe3[_0x20ca3f];}return _0x47ccc4;}function _0x4b4858(){const _0x31c355=_0x20b9a5[_0x85e373([0x73,0x70,0x6c,0x69,0x74])](_0x85e373([0x2e]));if(0x3!=_0x31c355[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d4e68(_0x31c355[0x1]);function _0x5d4e68(_0xcd45fd){const _0x3a7a52=_0x358108(_0xcd45fd);return _0x3a7a52&&_0x18cbd8()?_0x3a7a52:null;function _0x18cbd8(){const _0x29a835=_0x3a7a52[_0x85e373([0x6a,0x74,0x69])],_0x15a269=window[_0x85e373([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a835[_0x85e373([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29a835[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59f615={..._0x3a7a52,[_0x85e373([0x6a,0x74,0x69])]:_0x29a835[_0x85e373([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29a835[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59f615[_0x85e373([0x76,0x63])],_0x14180f(_0x59f615)==_0x15a269;}}}async function _0x49d58e(){let _0x5ee7b4=!0x0;try{const _0x2cada7=_0x20b9a5[_0x85e373([0x73,0x70,0x6c,0x69,0x74])](_0x85e373([0x2e])),[_0x3e3107,_0x4f1d3a,_0x3cce85]=_0x2cada7;return _0x1266b7(_0x3e3107),await _0x5361b7(_0x3e3107,_0x4f1d3a,_0x3cce85),_0x5ee7b4;}catch{return!0x1;}function _0x1266b7(_0x793d5f){const _0x5555da=_0x358108(_0x793d5f);_0x5555da&&_0x5555da[_0x85e373([0x61,0x6c,0x67])]==_0x85e373([0x45,0x53,0x32,0x35,0x36])||(_0x5ee7b4=!0x1);}async function _0x5361b7(_0x5d580c,_0x27c811,_0x2d4cdd){const _0x470cd4=window[_0x85e373([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x85e373([0x66,0x72,0x6f,0x6d])](_0x1235e4(_0x2d4cdd),_0x519f81=>_0x519f81[_0x85e373([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f73d7=new window[(_0x85e373([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x85e373([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d580c+_0x85e373([0x2e])+_0x27c811),_0x50bb76=window[_0x85e373([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x85e373([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50bb76)return;const _0x4fed01=await _0x50bb76[_0x85e373([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x85e373([0x6a,0x77,0x6b]),_0x43bdb5,{[_0x85e373([0x6e,0x61,0x6d,0x65])]:_0x85e373([0x45,0x43,0x44,0x53,0x41]),[_0x85e373([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x85e373([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x85e373([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50bb76[_0x85e373([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x85e373([0x6e,0x61,0x6d,0x65])]:_0x85e373([0x45,0x43,0x44,0x53,0x41]),[_0x85e373([0x68,0x61,0x73,0x68])]:{[_0x85e373([0x6e,0x61,0x6d,0x65])]:_0x85e373([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fed01,_0x470cd4,_0x2f73d7)||(_0x5ee7b4=!0x1);}}function _0x358108(_0x320353){return _0x320353[_0x85e373([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x85e373([0x65,0x79]))?JSON[_0x85e373([0x70,0x61,0x72,0x73,0x65])](_0x1235e4(_0x320353)):null;}function _0x1235e4(_0x19ccd1){return window[_0x85e373([0x61,0x74,0x6f,0x62])](_0x19ccd1[_0x85e373([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x85e373([0x2b]))[_0x85e373([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x85e373([0x2f])));}function _0x14180f(_0x1a2013){let _0x1a6177=0x1505;function _0x92ca2a(_0x35c33f){for(let _0x2cf7e1=0x0;_0x2cf7e1<_0x35c33f[_0x85e373([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cf7e1++){const _0x12f57d=_0x35c33f[_0x85e373([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cf7e1);_0x1a6177=(_0x1a6177<<0x5)+_0x1a6177+_0x12f57d,_0x1a6177&=_0x1a6177;}}function _0x5a5412(_0x236c2a){Array[_0x85e373([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x236c2a)?_0x236c2a[_0x85e373([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a5412):_0x236c2a&&typeof _0x236c2a==_0x85e373([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x85e373([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x236c2a)[_0x85e373([0x73,0x6f,0x72,0x74])]()[_0x85e373([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a655c,_0x3481de])=>{_0x92ca2a(_0x5a655c),_0x5a5412(_0x3481de);}):_0x92ca2a(window[_0x85e373([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x236c2a));}return _0x5a5412(_0x1a2013),_0x1a6177>>>0x0;}function _0x17aefa(_0x2540d2){return _0x2540d2[_0x85e373([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x85e373([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x85e373([0x30]));}function _0x1e1244(_0x11bf32){return _0x11bf32[_0x85e373([0x73,0x70,0x6c,0x69,0x74])]('')[_0x85e373([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x85e373([0x6a,0x6f,0x69,0x6e])]('');}function _0xe42752(){}function _0x85e373(_0x397ee6){return _0x397ee6['map'](_0x3b49e=>String['fromCharCode'](_0x3b49e))['join']('');}_0x23f0a0(await _0x34b109());}(this);}['_createButton'](_0x56cf3c,_0x278e84,_0x4341d2=!0x1){const _0x44bb83=new _0x56cf3c(this['editor']['locale']);return _0x44bb83['set']({'withText':_0x4341d2,'isToggleable':!0x1}),_0x44bb83['bind']('isEnabled')['to'](_0x278e84,'isEnabled'),this['listenTo'](_0x44bb83,'execute',()=>_0x278e84['execute']()),_0x44bb83;}['_registerKeybindings'](){const _0x3fc8a3=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x3fc8a3,'Source\x20Editing\x20Enhanced')});const _0x16fef3=_0x13cb43['isMac']||_0x13cb43['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x3fc8a3,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x3fc8a3,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x3fc8a3,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x3fc8a3,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x3fc8a3,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x3fc8a3,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x3fc8a3,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x16fef3?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x3fc8a3,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x3fc8a3,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x3fc8a3,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x3fc8a3,'Select\x20line'),'keystroke':_0x16fef3?'Ctrl!+L':'Alt+L'},{'label':w(_0x3fc8a3,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x16fef3?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x3fc8a3,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x3fc8a3,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x3fc8a3,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x3fc8a3,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x3fc8a3,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x16fef3?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x4f9b20{constructor(_0x3fd992){super(_0x3fd992),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x592ec6,_0x4f1316){const _0x802be3=this['editor'],_0x43afc2=_0x4f1316?.['rootName']??r(_0x802be3);_0x802be3['data']['set']({[_0x43afc2]:_0x592ec6},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ne extends _0xb42740{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x227f2a){super(_0x227f2a),_0x227f2a['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 _0x47cd84=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d7fd5;for(const _0x1ae0b0 in _0x47cd84){const _0x3e51ae=_0x1ae0b0,_0x56c8fd=_0x47cd84[_0x3e51ae];if('sourceEditingEnhancedLicenseKeyValid'==_0x56c8fd||'sourceEditingEnhancedLicenseKeyInvalid'==_0x56c8fd||'sourceEditingEnhancedLicenseKeyExpired'==_0x56c8fd||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x56c8fd||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x56c8fd||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x56c8fd||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x56c8fd||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x56c8fd){delete _0x47cd84[_0x3e51ae],_0x4d7fd5=_0x56c8fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x4d7fd5&&_0x47cd84['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x4d7fd5&&_0x47cd84['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4d7fd5&&_0x47cd84['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4d7fd5&&_0x47cd84['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4d7fd5&&_0x47cd84['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x4d7fd5&&_0x47cd84['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4d7fd5&&_0x47cd84['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x157f80=this['editor'],_0x2ec9a9=_0x157f80['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x2ec9a9&&_0x157f80['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x73ed3e('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x2ec9a9&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x1efd39=>_0x157f80['plugins']['has'](_0x1efd39))&&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.'),_0x157f80['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};
|
|
23
|
+
import{Command as _0x202ebd,PendingActions as _0x160196,Plugin as _0xd9fd8c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x35ff61,formatHtml as _0x55f728,env as _0x4ef3a0,uid as _0x5ed4ad}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x300d0a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3629d6,ButtonView as _0x818a02,MenuBarMenuListItemButtonView as _0x5c5ca2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x1c862d,crosshairCursor as _0x578b35,drawSelection as _0x45ff13,dropCursor as _0x5795c3,lineNumbers as _0x187cb0,highlightActiveLine as _0x2454ef,highlightActiveLineGutter as _0x5a874b,highlightSpecialChars as _0x3ef48c,rectangularSelection as _0x15d1ae,keymap as _0x2c5af7}from'@codemirror/view';import{Compartment as _0x1dcbe7,Transaction as _0x4d2a83}from'@codemirror/state';import{bracketMatching as _0x4c0f1c,foldGutter as _0xfb7f3d,indentOnInput as _0x47fac5,syntaxHighlighting as _0x56c3be,defaultHighlightStyle as _0x2ac8bb,foldKeymap as _0xfd614b}from'@codemirror/language';import{toggleTabFocusMode as _0x3e2532,history as _0x58d740,defaultKeymap as _0x37d2f0,historyKeymap as _0x37e222,indentLess as _0x3f0ea6,indentMore as _0x57929d,redo as _0x105619,undo as _0x3da6b4}from'@codemirror/commands';import{autocompletion as _0x2c5bb4,closeBrackets as _0x4c7242,closeBracketsKeymap as _0x52bfab,completionKeymap as _0x3ffb6b}from'@codemirror/autocomplete';import{html as _0x43c5e1}from'@codemirror/lang-html';import{markdown as _0x26aee1}from'@codemirror/lang-markdown';import{oneDark as _0x4f90f8}from'@codemirror/theme-one-dark';function w(_0xc67de7,_0x4abc91){const t=_0xc67de7['t'];switch(_0x4abc91){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 _0x4abc91;}}function r(_0x4f48ea){const _0x2652c5=_0x4f48ea['editing']['view']['document']['roots'],_0x11ae20=_0x2652c5['length'];if(0x0===_0x11ae20)throw new _0x35ff61('source-editing-enhanced-editor-no-root',_0x4f48ea);if(0x1===_0x11ae20)return _0x2652c5['first']['rootName'];return Array['from'](_0x4f48ea['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x555b94){return tr(_0x555b94['replace'](/^[\n\s]*/g,''))?_0x555b94['replace'](/\s+/g,''):_0x555b94;}function tr(_0xe9dee1){return _0xe9dee1['startsWith']('<');}function p(_0x27be5d){const _0x2f712a=[_0x1c862d['lineWrapping'],_0x2c5bb4(),_0x4c0f1c(),_0x4c7242(),_0x578b35(),_0x45ff13(),_0x5795c3(),_0x187cb0(),_0xfb7f3d(),_0x2454ef(),_0x5a874b(),_0x3ef48c(),_0x58d740(),_0x47fac5(),_0x15d1ae(),_0x56c3be(_0x2ac8bb,{'fallback':!0x0})],_0x49fdc3=new _0x1dcbe7();_0x2f712a['push'](_0x49fdc3['of'](_0x1c862d['editable']['of'](!0x0))),'html'===_0x27be5d['syntaxLanguage']?_0x2f712a['push'](_0x43c5e1()):_0x2f712a['push'](_0x26aee1());const _0x4c3d99=function(_0x23d54e){if(_0x23d54e&&'default'!==_0x23d54e)return'dark'===_0x23d54e?_0x4f90f8:_0x23d54e;return null;}(_0x27be5d['theme']);_0x4c3d99&&_0x2f712a['push'](_0x4c3d99),_0x2f712a['push'](_0x2c5af7['of']([..._0x52bfab,..._0x37d2f0,..._0x37e222,..._0xfd614b,..._0x3ffb6b,{'key':'Tab','run':_0x57929d,'shift':_0x3f0ea6,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x105619,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x105619,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x3da6b4,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x4ace60=new _0x1c862d({'extensions':_0x2f712a,'parent':_0x27be5d['parent']});return _0x3e2532(_0x4ace60),{'focus':()=>{_0x4ace60['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x4ace60['focus']();},'getData':()=>_0x4ace60['state']['doc']['toString'](),'setData':_0x3582b2=>{_0x4ace60['dispatch']({'changes':{'from':0x0,'to':_0x4ace60['state']['doc']['length'],'insert':_0x3582b2},'annotations':_0x4d2a83['addToHistory']['of'](!0x1)});},'setReadOnly':_0x35a881=>{_0x4ace60['dispatch']({'effects':[_0x49fdc3['reconfigure'](_0x1c862d['editable']['of'](!_0x35a881))]});},'destroy':()=>{_0x4ace60['destroy']();},'instance':_0x4ace60};}class E extends _0x3629d6{['_codeEditorApi']=null;['_options'];constructor(_0x2ab07e,_0x11705f){super(_0x2ab07e),this['_options']=_0x11705f,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',(_0x2ad9be,_0x1bf479,_0x1ec235)=>{this['setReadOnly'](_0x1ec235);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x548054){this['_codeEditorApi']['setData'](_0x548054);}['setReadOnly'](_0x54590d){this['_codeEditorApi']['setReadOnly'](_0x54590d);}}const b='SourceEditingEnhancedMode';class d extends _0x202ebd{constructor(_0x35c029){super(_0x35c029),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x160196)['on']('change:hasAny',(_0x234a54,_0x432188,_0x53cd1f)=>{_0x53cd1f?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x5076ff=this['editor'];for(const _0x1b577a of _0x5076ff['commands']['names']())['replaceSource','editSource']['includes'](_0x1b577a)||_0x5076ff['commands']['get'](_0x1b577a)['forceDisabled'](b);}['_enableCommands'](){const _0x590588=this['editor'];for(const _0x1c863f of _0x590588['commands']['commands']())_0x1c863f['clearForceDisabled'](b);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x260037=this['editor'],_0x5a99f7=_0x260037['locale'],_0x316fbd=_0x260037['plugins']['get']('Dialog'),_0x48e1c0=r(_0x260037),_0x202bed=_0x260037['data']['get']({'rootName':_0x48e1c0}),_0x15a762=tr(_0x23c77d=_0x202bed)?_0x55f728(_0x23c77d):_0x23c77d;var _0x23c77d;const _0x3b2e88=new E(_0x5a99f7,{'syntaxLanguage':_0x260037['plugins']['has']('Markdown')?'markdown':'html','theme':_0x260037['config']['get']('sourceEditingEnhanced.theme')});let _0x54e66a=!0x0;const _0x53ec59=_0x483c82=>{if(!_0x54e66a)return;return g(_0x3b2e88['getData']())!==g(_0x15a762)?window['confirm'](w(_0x5a99f7,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x483c82['stop']():void 0x0;};_0x316fbd['show']({'id':'sourceEditingEnhanced','title':w(_0x5a99f7,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x3b2e88,'actionButtons':[{'label':w(_0x5a99f7,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x316fbd['hide']();}},{'label':w(_0x5a99f7,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x59c544=g(_0x3b2e88['getData']())!==g(_0x15a762);(_0x59c544&&_0x260037['execute']('replaceSource',_0x3b2e88['getData']()),_0x54e66a=!0x1,_0x316fbd['hide'](),_0x59c544&&'editables'in _0x260037['ui']['view'])&&_0x260037['ui']['view']['editables'][_0x48e1c0]['element']['focus']();},'onCreate':_0x5dfd17=>{_0x5dfd17['set']('isEnabled',!_0x260037['isReadOnly']),_0x5dfd17['bind']('isEnabled')['to'](_0x260037,'isReadOnly',this,'isEnabled',(_0x4e6f4f,_0x27d1e8)=>!_0x4e6f4f&&_0x27d1e8);}}],'onHide':()=>{this['_enableCommands'](),_0x316fbd['off']('hide',_0x53ec59),_0x3b2e88['destroy']();},'onShow':()=>{_0x3b2e88['bind']('isReadOnly')['to'](_0x260037,'isReadOnly',this,'isEnabled',(_0x1b1ff2,_0x413d7d)=>_0x1b1ff2||!_0x413d7d),_0x3b2e88['setData'](_0x15a762),_0x3b2e88['focus'](),_0x316fbd['on']('hide',_0x53ec59,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0xd9fd8c{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x160196];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x485bd7=this['editor'],_0x3a657c=_0x485bd7['locale'],_0x5ebc00=new d(_0x485bd7);_0x485bd7['commands']['add']('editSource',_0x5ebc00),_0x485bd7['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x2a3d46=this['_createButton'](_0x818a02,_0x5ebc00);return _0x2a3d46['set']({'label':w(_0x3a657c,'Source'),'icon':_0x300d0a,'tooltip':w(_0x3a657c,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x2a3d46;}),_0x485bd7['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x480d54=this['_createButton'](_0x5c5ca2,_0x5ebc00,!0x0);return _0x480d54['set']({'label':w(_0x3a657c,'Edit\x20source\x20modal\x20label'),'icon':_0x300d0a,'role':'menuitemcheckbox'}),_0x480d54;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x1a7fea){const _0x474d4c=_0xf8b206([0x30,0x58,0x4b,0x67,0x59,0x70,0x68,0x62,0x75,0x76,0x36,0x4f,0x55,0x71,0x37,0x45,0x38,0x7a,0x44,0x5a,0x31,0x73,0x47,0x6f,0x48,0x65,0x69,0x33,0x43,0x4e,0x74,0x54,0x32,0x78,0x35,0x6c,0x72,0x79,0x51,0x64,0x4d,0x61,0x6d,0x39,0x6a,0x6e,0x56,0x77,0x41,0x4a,0x57,0x46,0x50,0x42,0x52,0x34,0x63,0x6b,0x66,0x4c,0x53,0x49]),_0x10fa34=0x20e056bb,_0xd7eb98=0x20e739eb^_0x10fa34,_0x4c2656=window[_0xf8b206([0x44,0x61,0x74,0x65])][_0xf8b206([0x6e,0x6f,0x77])](),_0x2e0523=_0x1a7fea[_0xf8b206([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x255cbe=new window[(_0xf8b206([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13335c=>{_0x2e0523[_0xf8b206([0x6f,0x6e,0x63,0x65])](_0xf8b206([0x72,0x65,0x61,0x64,0x79]),_0x13335c);}),_0x4765fe={[_0xf8b206([0x6b,0x74,0x79])]:_0xf8b206([0x45,0x43]),[_0xf8b206([0x75,0x73,0x65])]:_0xf8b206([0x73,0x69,0x67]),[_0xf8b206([0x63,0x72,0x76])]:_0xf8b206([0x50,0x2d,0x32,0x35,0x36]),[_0xf8b206([0x78])]:_0xf8b206([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]),[_0xf8b206([0x79])]:_0xf8b206([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]),[_0xf8b206([0x61,0x6c,0x67])]:_0xf8b206([0x45,0x53,0x32,0x35,0x36])},_0x32980e=_0x2e0523[_0xf8b206([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf8b206([0x67,0x65,0x74])](_0xf8b206([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56ca80(){let _0x5a65ba,_0x1dc2aa=null,_0xa43e66=null;try{if(_0x32980e==_0xf8b206([0x47,0x50,0x4c]))return _0xf8b206([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a65ba=_0x2295f9(),!_0x5a65ba)return _0xf8b206([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a65ba[_0xf8b206([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa43e66=_0x23a368(_0x5a65ba[_0xf8b206([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a65ba[_0xf8b206([0x6a,0x74,0x69])])),await _0x431695()?_0x33d1aa()?_0x1f0795()?_0xf8b206([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31bb57()?(_0x5a65ba[_0xf8b206([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf8b206([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1dc2aa=_0x4e9120(_0xf8b206([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a65ba[_0xf8b206([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf8b206([0x74,0x72,0x69,0x61,0x6c])&&(_0x1dc2aa=_0x4e9120(_0xf8b206([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x565831()):_0xf8b206([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf8b206([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf8b206([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf8b206([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f0795(){const _0x36a667=[_0xf8b206([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf8b206([0x74,0x72,0x69,0x61,0x6c])][_0xf8b206([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a65ba[_0xf8b206([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c2656/0x3e8:0xe10*_0xd7eb98;return _0x5a65ba[_0xf8b206([0x65,0x78,0x70])]<_0x36a667;}function _0x33d1aa(){const _0x187ded=_0x5a65ba[_0xf8b206([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x187ded&&(!!_0x187ded[_0xf8b206([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf8b206([0x2a]))||!!_0x187ded[_0xf8b206([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf8b206([0x53,0x45,0x45])));}function _0x31bb57(){const _0x269829=_0x5a65ba[_0xf8b206([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x269829||0x0==_0x269829[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f2e50}=new URL(window[_0xf8b206([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x269829[_0xf8b206([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2e50))return!0x0;const _0xff8260=_0x4f2e50[_0xf8b206([0x73,0x70,0x6c,0x69,0x74])](_0xf8b206([0x2e]));return _0x269829[_0xf8b206([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e0cf7=>_0x5e0cf7[_0xf8b206([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf8b206([0x2a])))[_0xf8b206([0x6d,0x61,0x70])](_0x2e99ea=>_0x2e99ea[_0xf8b206([0x73,0x70,0x6c,0x69,0x74])](_0xf8b206([0x2e])))[_0xf8b206([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52cdee=>_0x52cdee[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xff8260[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf8b206([0x6d,0x61,0x70])](_0x5ee639=>Array(_0xff8260[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ee639[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf8b206([0x66,0x69,0x6c,0x6c])](_0x5ee639[0x0]===_0xf8b206([0x2a])?_0xf8b206([0x2a]):'')[_0xf8b206([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ee639))[_0xf8b206([0x73,0x6f,0x6d,0x65])](_0x364209=>_0xff8260[_0xf8b206([0x65,0x76,0x65,0x72,0x79])]((_0x23ccd0,_0x3d74b7)=>_0x364209[_0x3d74b7]===_0x23ccd0||_0x364209[_0x3d74b7]===_0xf8b206([0x2a])));}function _0x565831(){return _0x1dc2aa&&_0xa43e66?new window[(_0xf8b206([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x305242,_0x5d0861)=>{_0x1dc2aa[_0xf8b206([0x74,0x68,0x65,0x6e])](_0x305242,_0x5d0861),_0xa43e66[_0xf8b206([0x74,0x68,0x65,0x6e])](_0x463f69=>{_0x463f69!=_0xf8b206([0x56,0x61,0x6c,0x69,0x64])&&_0x305242(_0x463f69);},_0x5d0861);}):_0x1dc2aa||_0xa43e66||_0xf8b206([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23a368(_0x535eb2,_0x4571cf){return new window[(_0xf8b206([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x303d0d=>{if(_0x69c03())return _0x303d0d(_0xf8b206([0x56,0x61,0x6c,0x69,0x64]));_0x569195(),_0x2e0523[_0xf8b206([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf8b206([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7f54d3=!0x1;const _0x42b1b5=_0x5ed4ad();function _0x5bfeac(_0xb3f136){return!!_0xb3f136&&(typeof _0xb3f136===_0xf8b206([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb3f136===_0xf8b206([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb3f136[_0xf8b206([0x74,0x68,0x65,0x6e])]===_0xf8b206([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb3f136[_0xf8b206([0x63,0x61,0x74,0x63,0x68])]===_0xf8b206([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2996c6(_0x3e6805){_0x42c512(_0x3e6805)[_0xf8b206([0x74,0x68,0x65,0x6e])](_0x599b2a=>{if(!_0x599b2a||_0x599b2a[_0xf8b206([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf8b206([0x6f,0x6b]))return _0xf8b206([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a01a5(_0x2f4980(_0x42b1b5+_0x4571cf))!=_0x599b2a[_0xf8b206([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf8b206([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf8b206([0x56,0x61,0x6c,0x69,0x64]);})[_0xf8b206([0x74,0x68,0x65,0x6e])](_0x34e2c5=>(_0x4227f5(),_0x34e2c5),()=>{const _0x9d2a1f=_0xb77676();return null==_0x9d2a1f?(_0x4227f5(),_0xf8b206([0x56,0x61,0x6c,0x69,0x64])):_0xf8b206(_0x4c2656-_0x9d2a1f>(0x4ecd2bb^_0x10fa34)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf8b206([0x74,0x68,0x65,0x6e])](_0x303d0d)[_0xf8b206([0x63,0x61,0x74,0x63,0x68])](()=>{_0x303d0d(_0xf8b206([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49dca5=0x20d6b83b^_0x10fa34;function _0x4227f5(){const _0x562708=_0xf8b206([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a01a5(_0x2f4980(_0x535eb2)),_0xe8627b=_0x572cc0(_0x5a01a5(window[_0xf8b206([0x4d,0x61,0x74,0x68])][_0xf8b206([0x63,0x65,0x69,0x6c])](_0x4c2656/_0x49dca5)));window[_0xf8b206([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf8b206([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x562708,_0xe8627b);}function _0xb77676(){const _0x4d4580=_0xf8b206([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a01a5(_0x2f4980(_0x535eb2)),_0x2181e0=window[_0xf8b206([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf8b206([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d4580);return _0x2181e0?window[_0xf8b206([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x572cc0(_0x2181e0),0x10)*_0x49dca5:null;}function _0x42c512(_0x1780ad){return new window[(_0xf8b206([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1df768,_0x2caaae)=>{_0x1780ad[_0xf8b206([0x74,0x68,0x65,0x6e])](_0x1df768,_0x2caaae),window[_0xf8b206([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2caaae,0x20e1827b^_0x10fa34);});}}_0x2e0523[_0xf8b206([0x6f,0x6e])](_0xf8b206([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50d8b6,_0x1b2d4f)=>{if(_0x1b2d4f[0x0]!=_0x535eb2)return _0x303d0d(_0xf8b206([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b2d4f[0x1]={..._0x1b2d4f[0x1],[_0xf8b206([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42b1b5};},{[_0xf8b206([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf8b206([0x68,0x69,0x67,0x68])}),_0x2e0523[_0xf8b206([0x6f,0x6e])](_0xf8b206([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2eb112=>{_0x5bfeac(_0x2eb112[_0xf8b206([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7f54d3=!0x0,_0x2996c6(_0x2eb112[_0xf8b206([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf8b206([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf8b206([0x6c,0x6f,0x77])}),_0x255cbe[_0xf8b206([0x74,0x68,0x65,0x6e])](()=>{_0x7f54d3||_0x303d0d(_0xf8b206([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x69c03(){return _0x2e0523[_0xf8b206([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf8b206([0x76,0x69,0x65,0x77])][_0xf8b206([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf8b206([0x61,0x75,0x74,0x6f]);}function _0x569195(){_0x2e0523[_0xf8b206([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf8b206([0x76,0x69,0x65,0x77])][_0xf8b206([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf8b206([0x61,0x75,0x74,0x6f]);}}function _0x4e9120(_0x4ea711){const _0x33848e=[new window[(_0xf8b206([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45c3a6=>setTimeout(_0x45c3a6,0x20e96877^_0x10fa34)),_0x255cbe[_0xf8b206([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf8b206([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcec094=>{let _0x3861fd=0x0;_0x2e0523[_0xf8b206([0x6d,0x6f,0x64,0x65,0x6c])][_0xf8b206([0x6f,0x6e])](_0xf8b206([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x143925,_0x421d37)=>{_0x421d37[0x0][_0xf8b206([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3861fd++,_0x3861fd==(0x20e05743^_0x10fa34)&&(_0xcec094(),_0x143925[_0xf8b206([0x6f,0x66,0x66])]());});}))];return window[_0xf8b206([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf8b206([0x72,0x61,0x63,0x65])](_0x33848e)[_0xf8b206([0x74,0x68,0x65,0x6e])](()=>_0x4ea711);}async function _0x54c706(){await _0x255cbe,_0x2e0523[_0xf8b206([0x6d,0x6f,0x64,0x65,0x6c])][_0xf8b206([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43816b,_0x2e0523[_0xf8b206([0x6d,0x6f,0x64,0x65,0x6c])][_0xf8b206([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43816b,_0x2e0523[_0xf8b206([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf8b206([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4eaf2b(_0x4ef81c){const _0x308d40=_0x29c90d();_0x2e0523[_0x308d40]=_0xf8b206([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])+_0x4ef81c,_0x4ef81c!=_0xf8b206([0x56,0x61,0x6c,0x69,0x64])&&_0x54c706();}function _0x29c90d(){const _0x37fa26=window[_0xf8b206([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf8b206([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf8b206([0x6e,0x6f,0x77])]())[_0xf8b206([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf8b206([0x2e]),'');let _0x3e7666=_0xf8b206([0x58]);for(let _0x384284=0x0;_0x384284<_0x37fa26[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x384284+=0x2){let _0x219788=window[_0xf8b206([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37fa26[_0xf8b206([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x384284,_0x384284+0x2));_0x219788>=_0x474d4c[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x219788-=_0x474d4c[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e7666+=_0x474d4c[_0x219788];}return _0x3e7666;}function _0x2295f9(){const _0x13a882=_0x32980e[_0xf8b206([0x73,0x70,0x6c,0x69,0x74])](_0xf8b206([0x2e]));if(0x3!=_0x13a882[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3fc939(_0x13a882[0x1]);function _0x3fc939(_0x28a9b1){const _0x5efe36=_0x2a5697(_0x28a9b1);return _0x5efe36&&_0x5d847d()?_0x5efe36:null;function _0x5d847d(){const _0x4c6d5b=_0x5efe36[_0xf8b206([0x6a,0x74,0x69])],_0x371ab0=window[_0xf8b206([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c6d5b[_0xf8b206([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c6d5b[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f03c9={..._0x5efe36,[_0xf8b206([0x6a,0x74,0x69])]:_0x4c6d5b[_0xf8b206([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c6d5b[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f03c9[_0xf8b206([0x76,0x63])],_0x2f4980(_0x2f03c9)==_0x371ab0;}}}async function _0x431695(){let _0x57c7e8=!0x0;try{const _0x58126c=_0x32980e[_0xf8b206([0x73,0x70,0x6c,0x69,0x74])](_0xf8b206([0x2e])),[_0x80403a,_0x59e499,_0x4fdd4f]=_0x58126c;return _0x4e4d46(_0x80403a),await _0x29591b(_0x80403a,_0x59e499,_0x4fdd4f),_0x57c7e8;}catch{return!0x1;}function _0x4e4d46(_0x5ad5b3){const _0x2bb15c=_0x2a5697(_0x5ad5b3);_0x2bb15c&&_0x2bb15c[_0xf8b206([0x61,0x6c,0x67])]==_0xf8b206([0x45,0x53,0x32,0x35,0x36])||(_0x57c7e8=!0x1);}async function _0x29591b(_0x4ca62b,_0xf58bd6,_0x2001fd){const _0x3ab95a=window[_0xf8b206([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf8b206([0x66,0x72,0x6f,0x6d])](_0x5cc8e2(_0x2001fd),_0x3e120c=>_0x3e120c[_0xf8b206([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2be901=new window[(_0xf8b206([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf8b206([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ca62b+_0xf8b206([0x2e])+_0xf58bd6),_0x44be2a=window[_0xf8b206([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf8b206([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44be2a)return;const _0x408c4e=await _0x44be2a[_0xf8b206([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf8b206([0x6a,0x77,0x6b]),_0x4765fe,{[_0xf8b206([0x6e,0x61,0x6d,0x65])]:_0xf8b206([0x45,0x43,0x44,0x53,0x41]),[_0xf8b206([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf8b206([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf8b206([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44be2a[_0xf8b206([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf8b206([0x6e,0x61,0x6d,0x65])]:_0xf8b206([0x45,0x43,0x44,0x53,0x41]),[_0xf8b206([0x68,0x61,0x73,0x68])]:{[_0xf8b206([0x6e,0x61,0x6d,0x65])]:_0xf8b206([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x408c4e,_0x3ab95a,_0x2be901)||(_0x57c7e8=!0x1);}}function _0x2a5697(_0x4528c9){return _0x4528c9[_0xf8b206([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf8b206([0x65,0x79]))?JSON[_0xf8b206([0x70,0x61,0x72,0x73,0x65])](_0x5cc8e2(_0x4528c9)):null;}function _0x5cc8e2(_0x89e0c6){return window[_0xf8b206([0x61,0x74,0x6f,0x62])](_0x89e0c6[_0xf8b206([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf8b206([0x2b]))[_0xf8b206([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf8b206([0x2f])));}function _0x2f4980(_0x29fc96){let _0x8f9f40=0x1505;function _0x56d27a(_0x3492aa){for(let _0x24bf4b=0x0;_0x24bf4b<_0x3492aa[_0xf8b206([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24bf4b++){const _0x42dbd2=_0x3492aa[_0xf8b206([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24bf4b);_0x8f9f40=(_0x8f9f40<<0x5)+_0x8f9f40+_0x42dbd2,_0x8f9f40&=_0x8f9f40;}}function _0xf19217(_0x7f998d){Array[_0xf8b206([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7f998d)?_0x7f998d[_0xf8b206([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf19217):_0x7f998d&&typeof _0x7f998d==_0xf8b206([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf8b206([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7f998d)[_0xf8b206([0x73,0x6f,0x72,0x74])]()[_0xf8b206([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6324e4,_0x1fdf89])=>{_0x56d27a(_0x6324e4),_0xf19217(_0x1fdf89);}):_0x56d27a(window[_0xf8b206([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7f998d));}return _0xf19217(_0x29fc96),_0x8f9f40>>>0x0;}function _0x5a01a5(_0x28a701){return _0x28a701[_0xf8b206([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf8b206([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf8b206([0x30]));}function _0x572cc0(_0x59229c){return _0x59229c[_0xf8b206([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf8b206([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf8b206([0x6a,0x6f,0x69,0x6e])]('');}function _0x43816b(){}function _0xf8b206(_0x2da649){return _0x2da649['map'](_0x1f86a2=>String['fromCharCode'](_0x1f86a2))['join']('');}_0x4eaf2b(await _0x56ca80());}(this);}['_createButton'](_0x306df1,_0x233b45,_0x617cad=!0x1){const _0x1988cb=new _0x306df1(this['editor']['locale']);return _0x1988cb['set']({'withText':_0x617cad,'isToggleable':!0x1}),_0x1988cb['bind']('isEnabled')['to'](_0x233b45,'isEnabled'),this['listenTo'](_0x1988cb,'execute',()=>_0x233b45['execute']()),_0x1988cb;}['_registerKeybindings'](){const _0x30c94f=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x30c94f,'Source\x20Editing\x20Enhanced')});const _0x374711=_0x4ef3a0['isMac']||_0x4ef3a0['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x30c94f,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x30c94f,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x30c94f,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x30c94f,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x30c94f,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x30c94f,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x30c94f,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x374711?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x30c94f,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x30c94f,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x30c94f,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x30c94f,'Select\x20line'),'keystroke':_0x374711?'Ctrl!+L':'Alt+L'},{'label':w(_0x30c94f,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x374711?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x30c94f,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x30c94f,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x30c94f,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x30c94f,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x30c94f,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x374711?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x202ebd{constructor(_0x30abba){super(_0x30abba),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x2a491e,_0x423245){const _0x185ce8=this['editor'],_0x2165e6=_0x423245?.['rootName']??r(_0x185ce8);_0x185ce8['data']['set']({[_0x2165e6]:_0x2a491e},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ee extends _0xd9fd8c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x992dbe){super(_0x992dbe),_0x992dbe['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 _0x21f4ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x236d1f;for(const _0x13a089 in _0x21f4ac){const _0x48247d=_0x13a089,_0x52847d=_0x21f4ac[_0x48247d];if('sourceEditingEnhancedLicenseKeyValid'==_0x52847d||'sourceEditingEnhancedLicenseKeyInvalid'==_0x52847d||'sourceEditingEnhancedLicenseKeyExpired'==_0x52847d||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x52847d||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x52847d||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x52847d||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x52847d||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x52847d){delete _0x21f4ac[_0x48247d],_0x236d1f=_0x52847d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x236d1f&&_0x21f4ac['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x236d1f&&_0x21f4ac['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x236d1f&&_0x21f4ac['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x236d1f&&_0x21f4ac['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x236d1f&&_0x21f4ac['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x236d1f&&_0x21f4ac['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x236d1f&&_0x21f4ac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x15435d=this['editor'],_0x50bff8=_0x15435d['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x50bff8&&_0x15435d['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x35ff61('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x50bff8&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x56b71e=>_0x15435d['plugins']['has'](_0x56b71e))&&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.'),_0x15435d['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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.3",
|
|
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": "46.0.1-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
21
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.3",
|
|
22
|
+
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.3",
|
|
23
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.3",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.3",
|
|
25
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.3",
|
|
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": "46.0.1-alpha.
|
|
34
|
+
"ckeditor5": "46.0.1-alpha.3"
|
|
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 _0x55d7fa=_0x1392;(function(_0x11581a,_0x4f3d6f){const _0x2e80e8=_0x1392,_0x479998=_0x11581a();while(!![]){try{const _0x357c23=-parseInt(_0x2e80e8(0xb4))/0x1*(-parseInt(_0x2e80e8(0x7d))/0x2)+parseInt(_0x2e80e8(0xc3))/0x3+parseInt(_0x2e80e8(0x7e))/0x4*(parseInt(_0x2e80e8(0x9e))/0x5)+-parseInt(_0x2e80e8(0xa3))/0x6*(-parseInt(_0x2e80e8(0xc6))/0x7)+-parseInt(_0x2e80e8(0xa8))/0x8+parseInt(_0x2e80e8(0x98))/0x9+-parseInt(_0x2e80e8(0x84))/0xa;if(_0x357c23===_0x4f3d6f)break;else _0x479998['push'](_0x479998['shift']());}catch(_0x291592){_0x479998['push'](_0x479998['shift']());}}}(_0x2d54,0xe16c6));import{Plugin as _0x5b6e90,PendingActions as _0x37cc3}from'ckeditor5/src/core.js';import{IconSource as _0x18e1a0}from'ckeditor5/src/icons.js';import{ButtonView as _0x72f38e,MenuBarMenuListItemButtonView as _0x4c0343}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x2e5d9e}from'./ui/editsourcecommand.js';function _0x1392(_0x3fbb24,_0x1fd95d){const _0x2d5459=_0x2d54();return _0x1392=function(_0x139291,_0x28d492){_0x139291=_0x139291-0x72;let _0x3b5ce0=_0x2d5459[_0x139291];return _0x3b5ce0;},_0x1392(_0x3fbb24,_0x1fd95d);}import{getTranslation as _0x243c6b}from'./utils/common-translations.js';import{env as _0x5b48ba,uid as _0x1b77fe}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';function _0x2d54(){const _0x4a6720=['locale','Toggle\x20block\x20comment','Alt+ArrowDown','Shift+Alt+A','4XIZpxe','Ctrl+Z','Shift+Ctrl+K','execute','Ctrl+Y','menuitemcheckbox','editor','listenTo','Alt+ArrowUp','Indent\x20more','Copy\x20line\x20down','fromCharCode','Move\x20line\x20down','Alt+L','set','2862573sdhkTU','isEnabled','Undo\x20(keystroke)','12246241wzvmwn','Move\x20line\x20up','isOfficialPlugin','SourceEditingEnhancedUI','_registerKeybindings','Delete\x20line','_createButton','Ctrl+[','add','isMac','Ctrl!+L','Ctrl+Shift+]','740058MGVEof','3549692RCFAfZ','Redo\x20(keystroke)','Ctrl!+Alt+]','Select\x20line','bind','Shift+Alt+ArrowUp','39654290fDqDmF','isPremiumPlugin','Fold\x20code\x20(current\x20level)','Unfold\x20code\x20(current\x20level)','Cmd+Alt+[','sourceEditingEnhanced','componentFactory','isiOS','requires','href','Alt+Shift+M','Copy\x20line\x20up','Ctrl+]','Ctrl+Shift+[','Ctrl+Shift+Z','Edit\x20source\x20modal\x20label','editSource','ck-source-editing-enhanced-button','Toggle\x20comment','addKeystrokeInfoCategory','650214nHfGrj','Ctrl+/','init','accessibility','Unfold\x20all','Cmd+Alt+]','5kjLYRF','addKeystrokeInfos','menuBar:sourceEditingEnhanced','Indent\x20less','Fold\x20all','6oqGwdZ','commands','join','afterInit','Ctrl+M','2037408KecYhy','Source\x20Editing\x20Enhanced','Ctrl!+Alt+[','pluginName','Shift+Alt+ArrowDown','map','Source','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'];_0x2d54=function(){return _0x4a6720;};return _0x2d54();}export class SourceEditingEnhancedUI extends _0x5b6e90{static get[_0x55d7fa(0xab)](){const _0x30d3dc=_0x55d7fa;return _0x30d3dc(0x74);}static get[_0x55d7fa(0x8c)](){return[_0x37cc3];}static get[_0x55d7fa(0x73)](){return!0x0;}static get[_0x55d7fa(0x85)](){return!0x0;}[_0x55d7fa(0x9a)](){const _0x363cca=_0x55d7fa,_0x1662fe=this[_0x363cca(0xba)],_0x59e560=_0x1662fe[_0x363cca(0xb0)],_0xf43c18=new _0x2e5d9e(_0x1662fe);_0x1662fe[_0x363cca(0xa4)][_0x363cca(0x79)](_0x363cca(0x94),_0xf43c18),_0x1662fe['ui'][_0x363cca(0x8a)][_0x363cca(0x79)](_0x363cca(0x89),()=>{const _0x8cf640=_0x363cca,_0x5513ec=this[_0x8cf640(0x77)](_0x72f38e,_0xf43c18);return _0x5513ec[_0x8cf640(0xc2)]({'label':_0x243c6b(_0x59e560,_0x8cf640(0xae)),'icon':_0x18e1a0,'tooltip':_0x243c6b(_0x59e560,_0x8cf640(0x93)),'class':_0x8cf640(0x95)}),_0x5513ec;}),_0x1662fe['ui'][_0x363cca(0x8a)][_0x363cca(0x79)](_0x363cca(0xa0),()=>{const _0x42525a=_0x363cca,_0x235a44=this[_0x42525a(0x77)](_0x4c0343,_0xf43c18,!0x0);return _0x235a44[_0x42525a(0xc2)]({'label':_0x243c6b(_0x59e560,_0x42525a(0x93)),'icon':_0x18e1a0,'role':_0x42525a(0xb9)}),_0x235a44;}),this[_0x363cca(0x75)]();}[_0x55d7fa(0xa6)](){!async function(_0x3f8159){const _0x1d911f=_0x24b6e6([0x6d,0x63,0x45,0x54,0x30,0x47,0x4d,0x37,0x48,0x75,0x66,0x49,0x78,0x4e,0x69,0x71,0x38,0x67,0x6f,0x36,0x76,0x50,0x52,0x41,0x51,0x42,0x73,0x31,0x65,0x6e,0x39,0x4f,0x79,0x61,0x70,0x57,0x46,0x53,0x77,0x33,0x32,0x7a,0x72,0x74,0x4a,0x59,0x68,0x56,0x55,0x58,0x5a,0x44,0x43,0x6b,0x62,0x4b,0x35,0x6a,0x64,0x34,0x6c,0x4c]),_0xa51194=0x32d8ec07,_0x4e7778=0x32df833f^_0xa51194,_0x2788f7=window[_0x24b6e6([0x44,0x61,0x74,0x65])][_0x24b6e6([0x6e,0x6f,0x77])](),_0x3d5c79=_0x3f8159[_0x24b6e6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46c440=new window[(_0x24b6e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4df971=>{_0x3d5c79[_0x24b6e6([0x6f,0x6e,0x63,0x65])](_0x24b6e6([0x72,0x65,0x61,0x64,0x79]),_0x4df971);}),_0x5ac5df={[_0x24b6e6([0x6b,0x74,0x79])]:_0x24b6e6([0x45,0x43]),[_0x24b6e6([0x75,0x73,0x65])]:_0x24b6e6([0x73,0x69,0x67]),[_0x24b6e6([0x63,0x72,0x76])]:_0x24b6e6([0x50,0x2d,0x32,0x35,0x36]),[_0x24b6e6([0x78])]:_0x24b6e6([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]),[_0x24b6e6([0x79])]:_0x24b6e6([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]),[_0x24b6e6([0x61,0x6c,0x67])]:_0x24b6e6([0x45,0x53,0x32,0x35,0x36])},_0x294a58=_0x3d5c79[_0x24b6e6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24b6e6([0x67,0x65,0x74])](_0x24b6e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32b2c8(){let _0x169cbf,_0x290a23=null,_0x204527=null;try{if(_0x294a58==_0x24b6e6([0x47,0x50,0x4c]))return _0x24b6e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x169cbf=_0x1d8698(),!_0x169cbf)return _0x24b6e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x169cbf[_0x24b6e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x204527=_0x32bc12(_0x169cbf[_0x24b6e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x169cbf[_0x24b6e6([0x6a,0x74,0x69])])),await _0x40e9f1()?_0x43856a()?_0x13e368()?_0x24b6e6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31c74e()?(_0x169cbf[_0x24b6e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24b6e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x290a23=_0x4c3662(_0x24b6e6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x169cbf[_0x24b6e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24b6e6([0x74,0x72,0x69,0x61,0x6c])&&(_0x290a23=_0x4c3662(_0x24b6e6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53cd4a()):_0x24b6e6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24b6e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24b6e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24b6e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13e368(){const _0x27198f=[_0x24b6e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24b6e6([0x74,0x72,0x69,0x61,0x6c])][_0x24b6e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x169cbf[_0x24b6e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2788f7/0x3e8:0xe10*_0x4e7778;return _0x169cbf[_0x24b6e6([0x65,0x78,0x70])]<_0x27198f;}function _0x43856a(){const _0x356fcb=_0x169cbf[_0x24b6e6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x356fcb&&(!!_0x356fcb[_0x24b6e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24b6e6([0x2a]))||!!_0x356fcb[_0x24b6e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24b6e6([0x53,0x45,0x45])));}function _0x31c74e(){const _0x23b8b9=_0x1392,_0x4fd029=_0x169cbf[_0x24b6e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fd029||0x0==_0x4fd029[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d6cfe}=new URL(window[_0x24b6e6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x23b8b9(0x8d)]);if(_0x4fd029[_0x24b6e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d6cfe))return!0x0;const _0x3aa179=_0x2d6cfe[_0x24b6e6([0x73,0x70,0x6c,0x69,0x74])](_0x24b6e6([0x2e]));return _0x4fd029[_0x24b6e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfa20dd=>_0xfa20dd[_0x24b6e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24b6e6([0x2a])))[_0x24b6e6([0x6d,0x61,0x70])](_0x148621=>_0x148621[_0x24b6e6([0x73,0x70,0x6c,0x69,0x74])](_0x24b6e6([0x2e])))[_0x24b6e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11a11=>_0x11a11[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3aa179[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24b6e6([0x6d,0x61,0x70])](_0x3b2798=>Array(_0x3aa179[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b2798[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24b6e6([0x66,0x69,0x6c,0x6c])](_0x3b2798[0x0]===_0x24b6e6([0x2a])?_0x24b6e6([0x2a]):'')[_0x24b6e6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b2798))[_0x24b6e6([0x73,0x6f,0x6d,0x65])](_0x5b407f=>_0x3aa179[_0x24b6e6([0x65,0x76,0x65,0x72,0x79])]((_0x131698,_0x5a9f89)=>_0x5b407f[_0x5a9f89]===_0x131698||_0x5b407f[_0x5a9f89]===_0x24b6e6([0x2a])));}function _0x53cd4a(){return _0x290a23&&_0x204527?new window[(_0x24b6e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c85ee,_0x4f4fc6)=>{_0x290a23[_0x24b6e6([0x74,0x68,0x65,0x6e])](_0x4c85ee,_0x4f4fc6),_0x204527[_0x24b6e6([0x74,0x68,0x65,0x6e])](_0x1e11ab=>{_0x1e11ab!=_0x24b6e6([0x56,0x61,0x6c,0x69,0x64])&&_0x4c85ee(_0x1e11ab);},_0x4f4fc6);}):_0x290a23||_0x204527||_0x24b6e6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32bc12(_0x142289,_0x3ff701){return new window[(_0x24b6e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f712c=>{if(_0x32f883())return _0x5f712c(_0x24b6e6([0x56,0x61,0x6c,0x69,0x64]));_0xf0bd6d(),_0x3d5c79[_0x24b6e6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24b6e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25e656=!0x1;const _0x207303=_0x1b77fe();function _0x166126(_0x2403e5){return!!_0x2403e5&&(typeof _0x2403e5===_0x24b6e6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2403e5===_0x24b6e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2403e5[_0x24b6e6([0x74,0x68,0x65,0x6e])]===_0x24b6e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2403e5[_0x24b6e6([0x63,0x61,0x74,0x63,0x68])]===_0x24b6e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x321d82(_0x1e40f0){_0x5d6214(_0x1e40f0)[_0x24b6e6([0x74,0x68,0x65,0x6e])](_0x2d3435=>{if(!_0x2d3435||_0x2d3435[_0x24b6e6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24b6e6([0x6f,0x6b]))return _0x24b6e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x520b55(_0x575654(_0x207303+_0x3ff701))!=_0x2d3435[_0x24b6e6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24b6e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24b6e6([0x56,0x61,0x6c,0x69,0x64]);})[_0x24b6e6([0x74,0x68,0x65,0x6e])](_0x2a7269=>(_0x3e1bd8(),_0x2a7269),()=>{const _0x3b8c62=_0x367d38();return null==_0x3b8c62?(_0x3e1bd8(),_0x24b6e6([0x56,0x61,0x6c,0x69,0x64])):_0x24b6e6(_0x2788f7-_0x3b8c62>(0x16d46807^_0xa51194)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24b6e6([0x74,0x68,0x65,0x6e])](_0x5f712c)[_0x24b6e6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f712c(_0x24b6e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fcb94=0x32ee0287^_0xa51194;function _0x3e1bd8(){const _0x285304=_0x24b6e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x520b55(_0x575654(_0x142289)),_0x1c7ac3=_0x1639cc(_0x520b55(window[_0x24b6e6([0x4d,0x61,0x74,0x68])][_0x24b6e6([0x63,0x65,0x69,0x6c])](_0x2788f7/_0x4fcb94)));window[_0x24b6e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24b6e6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285304,_0x1c7ac3);}function _0x367d38(){const _0x5ec420=_0x24b6e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x520b55(_0x575654(_0x142289)),_0xb1423b=window[_0x24b6e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24b6e6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ec420);return _0xb1423b?window[_0x24b6e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1639cc(_0xb1423b),0x10)*_0x4fcb94:null;}function _0x5d6214(_0x3d9eb6){return new window[(_0x24b6e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cb420,_0x58408c)=>{_0x3d9eb6[_0x24b6e6([0x74,0x68,0x65,0x6e])](_0x4cb420,_0x58408c),window[_0x24b6e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58408c,0x32d938c7^_0xa51194);});}}_0x3d5c79[_0x24b6e6([0x6f,0x6e])](_0x24b6e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4215b8,_0x1d8bbf)=>{if(_0x1d8bbf[0x0]!=_0x142289)return _0x5f712c(_0x24b6e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d8bbf[0x1]={..._0x1d8bbf[0x1],[_0x24b6e6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x207303};},{[_0x24b6e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24b6e6([0x68,0x69,0x67,0x68])}),_0x3d5c79[_0x24b6e6([0x6f,0x6e])](_0x24b6e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49f34d=>{_0x166126(_0x49f34d[_0x24b6e6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25e656=!0x0,_0x321d82(_0x49f34d[_0x24b6e6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24b6e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24b6e6([0x6c,0x6f,0x77])}),_0x46c440[_0x24b6e6([0x74,0x68,0x65,0x6e])](()=>{_0x25e656||_0x5f712c(_0x24b6e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32f883(){return _0x3d5c79[_0x24b6e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24b6e6([0x76,0x69,0x65,0x77])][_0x24b6e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24b6e6([0x61,0x75,0x74,0x6f]);}function _0xf0bd6d(){_0x3d5c79[_0x24b6e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24b6e6([0x76,0x69,0x65,0x77])][_0x24b6e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24b6e6([0x61,0x75,0x74,0x6f]);}}function _0x4c3662(_0x32e3cf){const _0x3248b7=[new window[(_0x24b6e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x492596=>setTimeout(_0x492596,0x32d1d2cb^_0xa51194)),_0x46c440[_0x24b6e6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24b6e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x207648=>{let _0x237a12=0x0;_0x3d5c79[_0x24b6e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x24b6e6([0x6f,0x6e])](_0x24b6e6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5cb49f,_0x469e15)=>{_0x469e15[0x0][_0x24b6e6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x237a12++,_0x237a12==(0x32d8edff^_0xa51194)&&(_0x207648(),_0x5cb49f[_0x24b6e6([0x6f,0x66,0x66])]());});}))];return window[_0x24b6e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24b6e6([0x72,0x61,0x63,0x65])](_0x3248b7)[_0x24b6e6([0x74,0x68,0x65,0x6e])](()=>_0x32e3cf);}async function _0x26332f(){await _0x46c440,_0x3d5c79[_0x24b6e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x24b6e6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x567541,_0x3d5c79[_0x24b6e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x24b6e6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x567541,_0x3d5c79[_0x24b6e6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24b6e6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd9db1(_0x3b15a3){const _0x24e2c2=_0x5f3f17();_0x3d5c79[_0x24e2c2]=_0x24b6e6([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])+_0x3b15a3,_0x3b15a3!=_0x24b6e6([0x56,0x61,0x6c,0x69,0x64])&&_0x26332f();}function _0x5f3f17(){const _0x320687=window[_0x24b6e6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24b6e6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24b6e6([0x6e,0x6f,0x77])]())[_0x24b6e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24b6e6([0x2e]),'');let _0x4eff3f=_0x24b6e6([0x6d]);for(let _0x4fed62=0x0;_0x4fed62<_0x320687[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fed62+=0x2){let _0x2f431d=window[_0x24b6e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x320687[_0x24b6e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fed62,_0x4fed62+0x2));_0x2f431d>=_0x1d911f[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f431d-=_0x1d911f[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4eff3f+=_0x1d911f[_0x2f431d];}return _0x4eff3f;}function _0x1d8698(){const _0x4abbd5=_0x294a58[_0x24b6e6([0x73,0x70,0x6c,0x69,0x74])](_0x24b6e6([0x2e]));if(0x3!=_0x4abbd5[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16103a(_0x4abbd5[0x1]);function _0x16103a(_0xd1ccd7){const _0x378caf=_0x1f374a(_0xd1ccd7);return _0x378caf&&_0x5f2b51()?_0x378caf:null;function _0x5f2b51(){const _0x305191=_0x378caf[_0x24b6e6([0x6a,0x74,0x69])],_0x1e6b0f=window[_0x24b6e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x305191[_0x24b6e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x305191[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x225692={..._0x378caf,[_0x24b6e6([0x6a,0x74,0x69])]:_0x305191[_0x24b6e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x305191[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x225692[_0x24b6e6([0x76,0x63])],_0x575654(_0x225692)==_0x1e6b0f;}}}async function _0x40e9f1(){let _0x22182d=!0x0;try{const _0x2f6974=_0x294a58[_0x24b6e6([0x73,0x70,0x6c,0x69,0x74])](_0x24b6e6([0x2e])),[_0x1bd166,_0x3fb716,_0x22640e]=_0x2f6974;return _0x42895b(_0x1bd166),await _0x190bbd(_0x1bd166,_0x3fb716,_0x22640e),_0x22182d;}catch{return!0x1;}function _0x42895b(_0x376f5b){const _0x3433c5=_0x1f374a(_0x376f5b);_0x3433c5&&_0x3433c5[_0x24b6e6([0x61,0x6c,0x67])]==_0x24b6e6([0x45,0x53,0x32,0x35,0x36])||(_0x22182d=!0x1);}async function _0x190bbd(_0x45e354,_0x2f2453,_0x5cae0d){const _0x831242=window[_0x24b6e6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24b6e6([0x66,0x72,0x6f,0x6d])](_0x4a5d71(_0x5cae0d),_0x2b9e80=>_0x2b9e80[_0x24b6e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6816ff=new window[(_0x24b6e6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24b6e6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45e354+_0x24b6e6([0x2e])+_0x2f2453),_0x5a0a59=window[_0x24b6e6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24b6e6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a0a59)return;const _0x28f670=await _0x5a0a59[_0x24b6e6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24b6e6([0x6a,0x77,0x6b]),_0x5ac5df,{[_0x24b6e6([0x6e,0x61,0x6d,0x65])]:_0x24b6e6([0x45,0x43,0x44,0x53,0x41]),[_0x24b6e6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24b6e6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24b6e6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a0a59[_0x24b6e6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24b6e6([0x6e,0x61,0x6d,0x65])]:_0x24b6e6([0x45,0x43,0x44,0x53,0x41]),[_0x24b6e6([0x68,0x61,0x73,0x68])]:{[_0x24b6e6([0x6e,0x61,0x6d,0x65])]:_0x24b6e6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28f670,_0x831242,_0x6816ff)||(_0x22182d=!0x1);}}function _0x1f374a(_0x5bfb91){return _0x5bfb91[_0x24b6e6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24b6e6([0x65,0x79]))?JSON[_0x24b6e6([0x70,0x61,0x72,0x73,0x65])](_0x4a5d71(_0x5bfb91)):null;}function _0x4a5d71(_0x35fc7d){return window[_0x24b6e6([0x61,0x74,0x6f,0x62])](_0x35fc7d[_0x24b6e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24b6e6([0x2b]))[_0x24b6e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24b6e6([0x2f])));}function _0x575654(_0x3b7fe2){let _0x4fdf66=0x1505;function _0x142af6(_0xe81d8a){for(let _0x1085e3=0x0;_0x1085e3<_0xe81d8a[_0x24b6e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1085e3++){const _0x393095=_0xe81d8a[_0x24b6e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1085e3);_0x4fdf66=(_0x4fdf66<<0x5)+_0x4fdf66+_0x393095,_0x4fdf66&=_0x4fdf66;}}function _0x222ef0(_0x10aac2){Array[_0x24b6e6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10aac2)?_0x10aac2[_0x24b6e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x222ef0):_0x10aac2&&typeof _0x10aac2==_0x24b6e6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24b6e6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10aac2)[_0x24b6e6([0x73,0x6f,0x72,0x74])]()[_0x24b6e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x369d88,_0x510769])=>{_0x142af6(_0x369d88),_0x222ef0(_0x510769);}):_0x142af6(window[_0x24b6e6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10aac2));}return _0x222ef0(_0x3b7fe2),_0x4fdf66>>>0x0;}function _0x520b55(_0x468a60){return _0x468a60[_0x24b6e6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24b6e6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24b6e6([0x30]));}function _0x1639cc(_0x4d9f6b){return _0x4d9f6b[_0x24b6e6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24b6e6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24b6e6([0x6a,0x6f,0x69,0x6e])]('');}function _0x567541(){}function _0x24b6e6(_0x204551){const _0x516265=_0x1392;return _0x204551[_0x516265(0xad)](_0x4ab7cf=>String[_0x516265(0xbf)](_0x4ab7cf))[_0x516265(0xa5)]('');}_0xd9db1(await _0x32b2c8());}(this);}[_0x55d7fa(0x77)](_0x8af5b2,_0x927fa,_0x333752=!0x1){const _0x18b5bd=_0x55d7fa,_0xd34946=new _0x8af5b2(this[_0x18b5bd(0xba)][_0x18b5bd(0xb0)]);return _0xd34946[_0x18b5bd(0xc2)]({'withText':_0x333752,'isToggleable':!0x1}),_0xd34946[_0x18b5bd(0x82)](_0x18b5bd(0xc4))['to'](_0x927fa,_0x18b5bd(0xc4)),this[_0x18b5bd(0xbb)](_0xd34946,_0x18b5bd(0xb7),()=>_0x927fa[_0x18b5bd(0xb7)]()),_0xd34946;}[_0x55d7fa(0x75)](){const _0x2e9481=_0x55d7fa,_0x2c3db6=this[_0x2e9481(0xba)][_0x2e9481(0xb0)];this[_0x2e9481(0xba)][_0x2e9481(0x9b)][_0x2e9481(0x97)]({'id':_0x2e9481(0x89),'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xa9))});const _0x3bf71b=_0x5b48ba[_0x2e9481(0x7a)]||_0x5b48ba[_0x2e9481(0x8b)];this[_0x2e9481(0xba)][_0x2e9481(0x9b)][_0x2e9481(0x9f)]({'categoryId':_0x2e9481(0x89),'keystrokes':[{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xbe)),'keystroke':_0x2e9481(0xac)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x8f)),'keystroke':_0x2e9481(0x83)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x76)),'keystroke':_0x2e9481(0xb6)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xa1)),'keystroke':_0x2e9481(0x78)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xbd)),'keystroke':_0x2e9481(0x90)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xa2)),'keystroke':_0x2e9481(0xaa)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x86)),'keystroke':_0x3bf71b?_0x2e9481(0x88):_0x2e9481(0x91)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xc0)),'keystroke':_0x2e9481(0xb2)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x72)),'keystroke':_0x2e9481(0xbc)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x7f)),'keystroke':[[_0x2e9481(0x92)],[_0x2e9481(0xb8)]]},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x81)),'keystroke':_0x3bf71b?_0x2e9481(0x7b):_0x2e9481(0xc1)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xaf)),'keystroke':_0x3bf71b?_0x2e9481(0x8e):_0x2e9481(0xa7)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xb1)),'keystroke':_0x2e9481(0xb3)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x96)),'keystroke':_0x2e9481(0x99)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0xc5)),'keystroke':_0x2e9481(0xb5)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x9c)),'keystroke':_0x2e9481(0x80)},{'label':_0x243c6b(_0x2c3db6,_0x2e9481(0x87)),'keystroke':_0x3bf71b?_0x2e9481(0x9d):_0x2e9481(0x7c)}]});}}
|
|
23
|
+
const _0x59e798=_0x48fe;(function(_0x198294,_0x509fc7){const _0x2f9dbd=_0x48fe,_0x4d9a47=_0x198294();while(!![]){try{const _0x33f929=parseInt(_0x2f9dbd(0x19a))/0x1*(parseInt(_0x2f9dbd(0x14e))/0x2)+parseInt(_0x2f9dbd(0x16a))/0x3*(-parseInt(_0x2f9dbd(0x149))/0x4)+-parseInt(_0x2f9dbd(0x161))/0x5+-parseInt(_0x2f9dbd(0x180))/0x6+parseInt(_0x2f9dbd(0x163))/0x7*(parseInt(_0x2f9dbd(0x19d))/0x8)+-parseInt(_0x2f9dbd(0x15c))/0x9*(parseInt(_0x2f9dbd(0x171))/0xa)+-parseInt(_0x2f9dbd(0x185))/0xb*(-parseInt(_0x2f9dbd(0x18d))/0xc);if(_0x33f929===_0x509fc7)break;else _0x4d9a47['push'](_0x4d9a47['shift']());}catch(_0x389c08){_0x4d9a47['push'](_0x4d9a47['shift']());}}}(_0x2b5b,0xb4d36));function _0x2b5b(){const _0x120359=['isiOS','Ctrl!+Alt+[','Move\x20line\x20down','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','Move\x20line\x20up','Ctrl+Shift+[','Ctrl+Shift+]','editSource','execute','Alt+Shift+M','join','commands','Cmd+Alt+]','2921949OhPdkr','listenTo','Alt+ArrowDown','ck-source-editing-enhanced-button','Source','3287620GUOfhZ','Shift+Alt+A','7SlIHzT','bind','pluginName','Fold\x20code\x20(current\x20level)','Ctrl+Y','isPremiumPlugin','sourceEditingEnhanced','3jmduHr','_registerKeybindings','componentFactory','Ctrl+]','Unfold\x20all','accessibility','Undo\x20(keystroke)','20LjcPfC','addKeystrokeInfoCategory','menuBar:sourceEditingEnhanced','isOfficialPlugin','isEnabled','menuitemcheckbox','Toggle\x20block\x20comment','Ctrl!+Alt+]','Indent\x20more','href','map','afterInit','Delete\x20line','Copy\x20line\x20up','Ctrl+Z','5174388lYRpQt','Ctrl!+L','locale','Alt+ArrowUp','Alt+L','1431309LIlujC','_createButton','init','Source\x20Editing\x20Enhanced','fromCharCode','Ctrl+M','add','Unfold\x20code\x20(current\x20level)','132XjVlcO','Indent\x20less','Shift+Alt+ArrowDown','addKeystrokeInfos','set','Edit\x20source\x20modal\x20label','isMac','Ctrl+/','Shift+Ctrl+K','Select\x20line','Toggle\x20comment','Fold\x20all','Copy\x20line\x20down','633208pdWvVg','SourceEditingEnhancedUI','requires','2725944kveJNx','Ctrl+Shift+Z','Shift+Alt+ArrowUp','514248Lmhzmf','Redo\x20(keystroke)','editor','Ctrl+[','Cmd+Alt+[','4YCiAxI'];_0x2b5b=function(){return _0x120359;};return _0x2b5b();}import{Plugin as _0x10bdfc,PendingActions as _0x51549b}from'ckeditor5/src/core.js';import{IconSource as _0x221774}from'ckeditor5/src/icons.js';function _0x48fe(_0xf2fe65,_0x9c540e){const _0x2b5be8=_0x2b5b();return _0x48fe=function(_0x48fe25,_0x5e16ac){_0x48fe25=_0x48fe25-0x148;let _0x5af80c=_0x2b5be8[_0x48fe25];return _0x5af80c;},_0x48fe(_0xf2fe65,_0x9c540e);}import{ButtonView as _0x5b1721,MenuBarMenuListItemButtonView as _0x3bf4da}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x4355ae}from'./ui/editsourcecommand.js';import{getTranslation as _0x1c2c48}from'./utils/common-translations.js';import{env as _0x5a286f,uid as _0x39135a}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x10bdfc{static get[_0x59e798(0x165)](){const _0x2529e2=_0x59e798;return _0x2529e2(0x19b);}static get[_0x59e798(0x19c)](){return[_0x51549b];}static get[_0x59e798(0x174)](){return!0x0;}static get[_0x59e798(0x168)](){return!0x0;}[_0x59e798(0x187)](){const _0x37c7aa=_0x59e798,_0xa4108c=this[_0x37c7aa(0x14b)],_0x42f155=_0xa4108c[_0x37c7aa(0x182)],_0x555dce=new _0x4355ae(_0xa4108c);_0xa4108c[_0x37c7aa(0x15a)][_0x37c7aa(0x18b)](_0x37c7aa(0x156),_0x555dce),_0xa4108c['ui'][_0x37c7aa(0x16c)][_0x37c7aa(0x18b)](_0x37c7aa(0x169),()=>{const _0x56baba=_0x37c7aa,_0x36c0c5=this[_0x56baba(0x186)](_0x5b1721,_0x555dce);return _0x36c0c5[_0x56baba(0x191)]({'label':_0x1c2c48(_0x42f155,_0x56baba(0x160)),'icon':_0x221774,'tooltip':_0x1c2c48(_0x42f155,_0x56baba(0x192)),'class':_0x56baba(0x15f)}),_0x36c0c5;}),_0xa4108c['ui'][_0x37c7aa(0x16c)][_0x37c7aa(0x18b)](_0x37c7aa(0x173),()=>{const _0x25b4a6=_0x37c7aa,_0x248aa6=this[_0x25b4a6(0x186)](_0x3bf4da,_0x555dce,!0x0);return _0x248aa6[_0x25b4a6(0x191)]({'label':_0x1c2c48(_0x42f155,_0x25b4a6(0x192)),'icon':_0x221774,'role':_0x25b4a6(0x176)}),_0x248aa6;}),this[_0x37c7aa(0x16b)]();}[_0x59e798(0x17c)](){!async function(_0xb47af7){const _0x3b3501=_0xb9b56a([0x30,0x58,0x4b,0x67,0x59,0x70,0x68,0x62,0x75,0x76,0x36,0x4f,0x55,0x71,0x37,0x45,0x38,0x7a,0x44,0x5a,0x31,0x73,0x47,0x6f,0x48,0x65,0x69,0x33,0x43,0x4e,0x74,0x54,0x32,0x78,0x35,0x6c,0x72,0x79,0x51,0x64,0x4d,0x61,0x6d,0x39,0x6a,0x6e,0x56,0x77,0x41,0x4a,0x57,0x46,0x50,0x42,0x52,0x34,0x63,0x6b,0x66,0x4c,0x53,0x49]),_0x91db3f=0x20e056bb,_0x55ec88=0x20e739eb^_0x91db3f,_0x33338d=window[_0xb9b56a([0x44,0x61,0x74,0x65])][_0xb9b56a([0x6e,0x6f,0x77])](),_0x5d2995=_0xb47af7[_0xb9b56a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x41bb37=new window[(_0xb9b56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ba600=>{_0x5d2995[_0xb9b56a([0x6f,0x6e,0x63,0x65])](_0xb9b56a([0x72,0x65,0x61,0x64,0x79]),_0x3ba600);}),_0x5ec607={[_0xb9b56a([0x6b,0x74,0x79])]:_0xb9b56a([0x45,0x43]),[_0xb9b56a([0x75,0x73,0x65])]:_0xb9b56a([0x73,0x69,0x67]),[_0xb9b56a([0x63,0x72,0x76])]:_0xb9b56a([0x50,0x2d,0x32,0x35,0x36]),[_0xb9b56a([0x78])]:_0xb9b56a([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]),[_0xb9b56a([0x79])]:_0xb9b56a([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]),[_0xb9b56a([0x61,0x6c,0x67])]:_0xb9b56a([0x45,0x53,0x32,0x35,0x36])},_0x5ab4e9=_0x5d2995[_0xb9b56a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb9b56a([0x67,0x65,0x74])](_0xb9b56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8f29cf(){let _0x4923f1,_0x2d5940=null,_0xa4aa8d=null;try{if(_0x5ab4e9==_0xb9b56a([0x47,0x50,0x4c]))return _0xb9b56a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4923f1=_0xb7c492(),!_0x4923f1)return _0xb9b56a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4923f1[_0xb9b56a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa4aa8d=_0x1ec209(_0x4923f1[_0xb9b56a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4923f1[_0xb9b56a([0x6a,0x74,0x69])])),await _0x5623a2()?_0x4707a1()?_0x454c83()?_0xb9b56a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19b37e()?(_0x4923f1[_0xb9b56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb9b56a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d5940=_0x355acd(_0xb9b56a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4923f1[_0xb9b56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb9b56a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d5940=_0x355acd(_0xb9b56a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x6888f7()):_0xb9b56a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb9b56a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb9b56a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb9b56a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x454c83(){const _0x3488ad=[_0xb9b56a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb9b56a([0x74,0x72,0x69,0x61,0x6c])][_0xb9b56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4923f1[_0xb9b56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33338d/0x3e8:0xe10*_0x55ec88;return _0x4923f1[_0xb9b56a([0x65,0x78,0x70])]<_0x3488ad;}function _0x4707a1(){const _0x52a241=_0x4923f1[_0xb9b56a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52a241&&(!!_0x52a241[_0xb9b56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9b56a([0x2a]))||!!_0x52a241[_0xb9b56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9b56a([0x53,0x45,0x45])));}function _0x19b37e(){const _0x3eaee7=_0x48fe,_0x522cf9=_0x4923f1[_0xb9b56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x522cf9||0x0==_0x522cf9[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x458a97}=new URL(window[_0xb9b56a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3eaee7(0x17a)]);if(_0x522cf9[_0xb9b56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458a97))return!0x0;const _0x5f497b=_0x458a97[_0xb9b56a([0x73,0x70,0x6c,0x69,0x74])](_0xb9b56a([0x2e]));return _0x522cf9[_0xb9b56a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x584da3=>_0x584da3[_0xb9b56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9b56a([0x2a])))[_0xb9b56a([0x6d,0x61,0x70])](_0x24d828=>_0x24d828[_0xb9b56a([0x73,0x70,0x6c,0x69,0x74])](_0xb9b56a([0x2e])))[_0xb9b56a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b7edc=>_0x5b7edc[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f497b[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb9b56a([0x6d,0x61,0x70])](_0x2652bb=>Array(_0x5f497b[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2652bb[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb9b56a([0x66,0x69,0x6c,0x6c])](_0x2652bb[0x0]===_0xb9b56a([0x2a])?_0xb9b56a([0x2a]):'')[_0xb9b56a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2652bb))[_0xb9b56a([0x73,0x6f,0x6d,0x65])](_0x368edf=>_0x5f497b[_0xb9b56a([0x65,0x76,0x65,0x72,0x79])]((_0xda1eb,_0x2b8396)=>_0x368edf[_0x2b8396]===_0xda1eb||_0x368edf[_0x2b8396]===_0xb9b56a([0x2a])));}function _0x6888f7(){return _0x2d5940&&_0xa4aa8d?new window[(_0xb9b56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cc929,_0x4e6e82)=>{_0x2d5940[_0xb9b56a([0x74,0x68,0x65,0x6e])](_0x1cc929,_0x4e6e82),_0xa4aa8d[_0xb9b56a([0x74,0x68,0x65,0x6e])](_0x1eecf6=>{_0x1eecf6!=_0xb9b56a([0x56,0x61,0x6c,0x69,0x64])&&_0x1cc929(_0x1eecf6);},_0x4e6e82);}):_0x2d5940||_0xa4aa8d||_0xb9b56a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ec209(_0x24fe4d,_0x222f61){return new window[(_0xb9b56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561fd7=>{if(_0x537f1e())return _0x561fd7(_0xb9b56a([0x56,0x61,0x6c,0x69,0x64]));_0x1484d5(),_0x5d2995[_0xb9b56a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb9b56a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e8966=!0x1;const _0x17e5f2=_0x39135a();function _0x17bc24(_0x58039f){return!!_0x58039f&&(typeof _0x58039f===_0xb9b56a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58039f===_0xb9b56a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58039f[_0xb9b56a([0x74,0x68,0x65,0x6e])]===_0xb9b56a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58039f[_0xb9b56a([0x63,0x61,0x74,0x63,0x68])]===_0xb9b56a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20ed04(_0x4374db){_0x5b5730(_0x4374db)[_0xb9b56a([0x74,0x68,0x65,0x6e])](_0x1f09f2=>{if(!_0x1f09f2||_0x1f09f2[_0xb9b56a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb9b56a([0x6f,0x6b]))return _0xb9b56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x454fc2(_0x5148ad(_0x17e5f2+_0x222f61))!=_0x1f09f2[_0xb9b56a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb9b56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb9b56a([0x56,0x61,0x6c,0x69,0x64]);})[_0xb9b56a([0x74,0x68,0x65,0x6e])](_0x27b036=>(_0x3d8113(),_0x27b036),()=>{const _0x28e138=_0x58f7ce();return null==_0x28e138?(_0x3d8113(),_0xb9b56a([0x56,0x61,0x6c,0x69,0x64])):_0xb9b56a(_0x33338d-_0x28e138>(0x4ecd2bb^_0x91db3f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb9b56a([0x74,0x68,0x65,0x6e])](_0x561fd7)[_0xb9b56a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x561fd7(_0xb9b56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x150783=0x20d6b83b^_0x91db3f;function _0x3d8113(){const _0x5a941b=_0xb9b56a([0x6c,0x6c,0x63,0x74,0x2d])+_0x454fc2(_0x5148ad(_0x24fe4d)),_0x15f27c=_0x1d7926(_0x454fc2(window[_0xb9b56a([0x4d,0x61,0x74,0x68])][_0xb9b56a([0x63,0x65,0x69,0x6c])](_0x33338d/_0x150783)));window[_0xb9b56a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb9b56a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a941b,_0x15f27c);}function _0x58f7ce(){const _0x1f535f=_0xb9b56a([0x6c,0x6c,0x63,0x74,0x2d])+_0x454fc2(_0x5148ad(_0x24fe4d)),_0x4767a3=window[_0xb9b56a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb9b56a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f535f);return _0x4767a3?window[_0xb9b56a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d7926(_0x4767a3),0x10)*_0x150783:null;}function _0x5b5730(_0x530e04){return new window[(_0xb9b56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25c4e0,_0x296b10)=>{_0x530e04[_0xb9b56a([0x74,0x68,0x65,0x6e])](_0x25c4e0,_0x296b10),window[_0xb9b56a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x296b10,0x20e1827b^_0x91db3f);});}}_0x5d2995[_0xb9b56a([0x6f,0x6e])](_0xb9b56a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe1a1e,_0x518753)=>{if(_0x518753[0x0]!=_0x24fe4d)return _0x561fd7(_0xb9b56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x518753[0x1]={..._0x518753[0x1],[_0xb9b56a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17e5f2};},{[_0xb9b56a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb9b56a([0x68,0x69,0x67,0x68])}),_0x5d2995[_0xb9b56a([0x6f,0x6e])](_0xb9b56a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c1a21=>{_0x17bc24(_0x5c1a21[_0xb9b56a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e8966=!0x0,_0x20ed04(_0x5c1a21[_0xb9b56a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb9b56a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb9b56a([0x6c,0x6f,0x77])}),_0x41bb37[_0xb9b56a([0x74,0x68,0x65,0x6e])](()=>{_0x1e8966||_0x561fd7(_0xb9b56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x537f1e(){return _0x5d2995[_0xb9b56a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb9b56a([0x76,0x69,0x65,0x77])][_0xb9b56a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb9b56a([0x61,0x75,0x74,0x6f]);}function _0x1484d5(){_0x5d2995[_0xb9b56a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb9b56a([0x76,0x69,0x65,0x77])][_0xb9b56a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb9b56a([0x61,0x75,0x74,0x6f]);}}function _0x355acd(_0x582691){const _0x57eb63=[new window[(_0xb9b56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a688c=>setTimeout(_0x3a688c,0x20e96877^_0x91db3f)),_0x41bb37[_0xb9b56a([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb9b56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x571d27=>{let _0x256433=0x0;_0x5d2995[_0xb9b56a([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9b56a([0x6f,0x6e])](_0xb9b56a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1bc114,_0x3b5f93)=>{_0x3b5f93[0x0][_0xb9b56a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x256433++,_0x256433==(0x20e05743^_0x91db3f)&&(_0x571d27(),_0x1bc114[_0xb9b56a([0x6f,0x66,0x66])]());});}))];return window[_0xb9b56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb9b56a([0x72,0x61,0x63,0x65])](_0x57eb63)[_0xb9b56a([0x74,0x68,0x65,0x6e])](()=>_0x582691);}async function _0x3e054f(){await _0x41bb37,_0x5d2995[_0xb9b56a([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9b56a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x78b22f,_0x5d2995[_0xb9b56a([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9b56a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x78b22f,_0x5d2995[_0xb9b56a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb9b56a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39669e(_0x5b0a2e){const _0x394865=_0x4ff3a4();_0x5d2995[_0x394865]=_0xb9b56a([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])+_0x5b0a2e,_0x5b0a2e!=_0xb9b56a([0x56,0x61,0x6c,0x69,0x64])&&_0x3e054f();}function _0x4ff3a4(){const _0x54bed2=window[_0xb9b56a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb9b56a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb9b56a([0x6e,0x6f,0x77])]())[_0xb9b56a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb9b56a([0x2e]),'');let _0x1148f4=_0xb9b56a([0x58]);for(let _0x56ca45=0x0;_0x56ca45<_0x54bed2[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56ca45+=0x2){let _0x1f412c=window[_0xb9b56a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54bed2[_0xb9b56a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56ca45,_0x56ca45+0x2));_0x1f412c>=_0x3b3501[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f412c-=_0x3b3501[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1148f4+=_0x3b3501[_0x1f412c];}return _0x1148f4;}function _0xb7c492(){const _0x2c13f6=_0x5ab4e9[_0xb9b56a([0x73,0x70,0x6c,0x69,0x74])](_0xb9b56a([0x2e]));if(0x3!=_0x2c13f6[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x17747b(_0x2c13f6[0x1]);function _0x17747b(_0x3ba232){const _0x26d901=_0x371575(_0x3ba232);return _0x26d901&&_0x434d28()?_0x26d901:null;function _0x434d28(){const _0x156e23=_0x26d901[_0xb9b56a([0x6a,0x74,0x69])],_0x4fa017=window[_0xb9b56a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x156e23[_0xb9b56a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x156e23[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57e7a0={..._0x26d901,[_0xb9b56a([0x6a,0x74,0x69])]:_0x156e23[_0xb9b56a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x156e23[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57e7a0[_0xb9b56a([0x76,0x63])],_0x5148ad(_0x57e7a0)==_0x4fa017;}}}async function _0x5623a2(){let _0xcdba7=!0x0;try{const _0x32ff1c=_0x5ab4e9[_0xb9b56a([0x73,0x70,0x6c,0x69,0x74])](_0xb9b56a([0x2e])),[_0x2a4555,_0x412f8b,_0x261ffa]=_0x32ff1c;return _0x12b634(_0x2a4555),await _0x3f5abb(_0x2a4555,_0x412f8b,_0x261ffa),_0xcdba7;}catch{return!0x1;}function _0x12b634(_0x2f041c){const _0x4c5565=_0x371575(_0x2f041c);_0x4c5565&&_0x4c5565[_0xb9b56a([0x61,0x6c,0x67])]==_0xb9b56a([0x45,0x53,0x32,0x35,0x36])||(_0xcdba7=!0x1);}async function _0x3f5abb(_0x476ae8,_0x1c8d71,_0x5f5e03){const _0x27149b=window[_0xb9b56a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb9b56a([0x66,0x72,0x6f,0x6d])](_0x57e504(_0x5f5e03),_0x68deae=>_0x68deae[_0xb9b56a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f9dc5=new window[(_0xb9b56a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb9b56a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x476ae8+_0xb9b56a([0x2e])+_0x1c8d71),_0x46d98c=window[_0xb9b56a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb9b56a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46d98c)return;const _0x90ff69=await _0x46d98c[_0xb9b56a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb9b56a([0x6a,0x77,0x6b]),_0x5ec607,{[_0xb9b56a([0x6e,0x61,0x6d,0x65])]:_0xb9b56a([0x45,0x43,0x44,0x53,0x41]),[_0xb9b56a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb9b56a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb9b56a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46d98c[_0xb9b56a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb9b56a([0x6e,0x61,0x6d,0x65])]:_0xb9b56a([0x45,0x43,0x44,0x53,0x41]),[_0xb9b56a([0x68,0x61,0x73,0x68])]:{[_0xb9b56a([0x6e,0x61,0x6d,0x65])]:_0xb9b56a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x90ff69,_0x27149b,_0x1f9dc5)||(_0xcdba7=!0x1);}}function _0x371575(_0x552a7c){return _0x552a7c[_0xb9b56a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb9b56a([0x65,0x79]))?JSON[_0xb9b56a([0x70,0x61,0x72,0x73,0x65])](_0x57e504(_0x552a7c)):null;}function _0x57e504(_0xca9140){return window[_0xb9b56a([0x61,0x74,0x6f,0x62])](_0xca9140[_0xb9b56a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb9b56a([0x2b]))[_0xb9b56a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb9b56a([0x2f])));}function _0x5148ad(_0x4ab4d1){let _0x59f020=0x1505;function _0x313001(_0x208294){for(let _0x185547=0x0;_0x185547<_0x208294[_0xb9b56a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x185547++){const _0x210f6a=_0x208294[_0xb9b56a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x185547);_0x59f020=(_0x59f020<<0x5)+_0x59f020+_0x210f6a,_0x59f020&=_0x59f020;}}function _0x1b1709(_0x4f8713){Array[_0xb9b56a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f8713)?_0x4f8713[_0xb9b56a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b1709):_0x4f8713&&typeof _0x4f8713==_0xb9b56a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb9b56a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f8713)[_0xb9b56a([0x73,0x6f,0x72,0x74])]()[_0xb9b56a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a71b8,_0x4eb624])=>{_0x313001(_0x5a71b8),_0x1b1709(_0x4eb624);}):_0x313001(window[_0xb9b56a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f8713));}return _0x1b1709(_0x4ab4d1),_0x59f020>>>0x0;}function _0x454fc2(_0x4743f6){return _0x4743f6[_0xb9b56a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb9b56a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb9b56a([0x30]));}function _0x1d7926(_0x5c0eb4){return _0x5c0eb4[_0xb9b56a([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb9b56a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb9b56a([0x6a,0x6f,0x69,0x6e])]('');}function _0x78b22f(){}function _0xb9b56a(_0x313d60){const _0x2e967d=_0x48fe;return _0x313d60[_0x2e967d(0x17b)](_0xd0d564=>String[_0x2e967d(0x189)](_0xd0d564))[_0x2e967d(0x159)]('');}_0x39669e(await _0x8f29cf());}(this);}[_0x59e798(0x186)](_0x548da3,_0x575632,_0x1d021a=!0x1){const _0x56591e=_0x59e798,_0x3ce8c3=new _0x548da3(this[_0x56591e(0x14b)][_0x56591e(0x182)]);return _0x3ce8c3[_0x56591e(0x191)]({'withText':_0x1d021a,'isToggleable':!0x1}),_0x3ce8c3[_0x56591e(0x164)](_0x56591e(0x175))['to'](_0x575632,_0x56591e(0x175)),this[_0x56591e(0x15d)](_0x3ce8c3,_0x56591e(0x157),()=>_0x575632[_0x56591e(0x157)]()),_0x3ce8c3;}[_0x59e798(0x16b)](){const _0x453904=_0x59e798,_0x36b166=this[_0x453904(0x14b)][_0x453904(0x182)];this[_0x453904(0x14b)][_0x453904(0x16f)][_0x453904(0x172)]({'id':_0x453904(0x169),'label':_0x1c2c48(_0x36b166,_0x453904(0x188))});const _0x533321=_0x5a286f[_0x453904(0x193)]||_0x5a286f[_0x453904(0x14f)];this[_0x453904(0x14b)][_0x453904(0x16f)][_0x453904(0x190)]({'categoryId':_0x453904(0x169),'keystrokes':[{'label':_0x1c2c48(_0x36b166,_0x453904(0x199)),'keystroke':_0x453904(0x18f)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x17e)),'keystroke':_0x453904(0x148)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x17d)),'keystroke':_0x453904(0x195)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x18e)),'keystroke':_0x453904(0x14c)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x179)),'keystroke':_0x453904(0x16d)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x198)),'keystroke':_0x453904(0x150)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x166)),'keystroke':_0x533321?_0x453904(0x14d):_0x453904(0x154)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x151)),'keystroke':_0x453904(0x15e)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x153)),'keystroke':_0x453904(0x183)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x14a)),'keystroke':[[_0x453904(0x19e)],[_0x453904(0x167)]]},{'label':_0x1c2c48(_0x36b166,_0x453904(0x196)),'keystroke':_0x533321?_0x453904(0x181):_0x453904(0x184)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x152)),'keystroke':_0x533321?_0x453904(0x158):_0x453904(0x18a)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x177)),'keystroke':_0x453904(0x162)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x197)),'keystroke':_0x453904(0x194)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x170)),'keystroke':_0x453904(0x17f)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x16e)),'keystroke':_0x453904(0x178)},{'label':_0x1c2c48(_0x36b166,_0x453904(0x18c)),'keystroke':_0x533321?_0x453904(0x15b):_0x453904(0x155)}]});}}
|
package/src/ui/codeeditorview.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x142037=_0x5f02;(function(_0x58a3df,_0x2f3468){var _0x440be6=_0x5f02,_0x2805e2=_0x58a3df();while(!![]){try{var _0x12bac7=parseInt(_0x440be6(0x101))/0x1*(-parseInt(_0x440be6(0x10f))/0x2)+parseInt(_0x440be6(0x102))/0x3+parseInt(_0x440be6(0x100))/0x4*(-parseInt(_0x440be6(0x118))/0x5)+parseInt(_0x440be6(0x11b))/0x6+-parseInt(_0x440be6(0x10d))/0x7+-parseInt(_0x440be6(0x115))/0x8+parseInt(_0x440be6(0x110))/0x9*(parseInt(_0x440be6(0x10a))/0xa);if(_0x12bac7===_0x2f3468)break;else _0x2805e2['push'](_0x2805e2['shift']());}catch(_0x1c246a){_0x2805e2['push'](_0x2805e2['shift']());}}}(_0x168c,0xd76b2));import{View as _0x13e2d3}from'ckeditor5/src/ui.js';function _0x168c(){var _0x9651f5=['setData','isReadOnly','5565210gaVjmM','668ifYuaZ','142sYKVro','3498084tYqevC','render','change:isReadOnly','setTemplate','element','_codeEditorApi','getData','syntaxLanguage','20tsxmBi','_options','set','6673408ECbxsR','destroy','23398sFiSXc','11847294MRGtQP','focus','ck-reset_all-excluded','div','ck-code-editor','8000384ogILOe','theme','setReadOnly','6865kfzZkp'];_0x168c=function(){return _0x9651f5;};return _0x168c();}import{createCodeMirrorEditor as _0x1c32de}from'../utils/createcodemirroreditor.js';function _0x5f02(_0x4befe7,_0x4b5299){var _0x168c80=_0x168c();return _0x5f02=function(_0x5f025a,_0x21ab18){_0x5f025a=_0x5f025a-0x100;var _0x1a5cd0=_0x168c80[_0x5f025a];return _0x1a5cd0;},_0x5f02(_0x4befe7,_0x4b5299);}export class CodeEditorView extends _0x13e2d3{[_0x142037(0x107)]=null;[_0x142037(0x10b)];constructor(_0x257241,_0x89340c){var _0x536d1c=_0x142037;super(_0x257241),this[_0x536d1c(0x10b)]=_0x89340c,this[_0x536d1c(0x10c)](_0x536d1c(0x11a),!0x1),this[_0x536d1c(0x105)]({'tag':_0x536d1c(0x113),'attributes':{'class':['ck',_0x536d1c(0x112),_0x536d1c(0x114)],'tabindex':-0x1}});}[_0x142037(0x103)](){var _0x13638a=_0x142037;super[_0x13638a(0x103)](),this[_0x13638a(0x107)]=_0x1c32de({'parent':this[_0x13638a(0x106)],'syntaxLanguage':this[_0x13638a(0x10b)][_0x13638a(0x109)],'theme':this[_0x13638a(0x10b)][_0x13638a(0x116)]}),this['on'](_0x13638a(0x104),(_0x39564e,_0x1dfb9d,_0x5191cf)=>{var _0x442ce0=_0x13638a;this[_0x442ce0(0x117)](_0x5191cf);});}[_0x142037(0x10e)](){var _0x184980=_0x142037;super[_0x184980(0x10e)](),this[_0x184980(0x107)][_0x184980(0x10e)](),this[_0x184980(0x107)]=null;}[_0x142037(0x111)](){var _0x384eeb=_0x142037;this[_0x384eeb(0x11a)]?this[_0x384eeb(0x106)][_0x384eeb(0x111)]():this[_0x384eeb(0x107)][_0x384eeb(0x111)]();}[_0x142037(0x108)](){var _0x47d8f0=_0x142037;return this[_0x47d8f0(0x107)][_0x47d8f0(0x108)]();}[_0x142037(0x119)](_0x1f3188){var _0x26144b=_0x142037;this[_0x26144b(0x107)][_0x26144b(0x119)](_0x1f3188);}[_0x142037(0x117)](_0x509ae8){var _0x2fdf09=_0x142037;this[_0x2fdf09(0x107)][_0x2fdf09(0x117)](_0x509ae8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a5ec4=_0x3306;function _0x3c25(){const _0x3fa4f7=['plugins','view','clearForceDisabled','change:hasAny','get','_enableCommands','ck-button-action','Edit\x20source\x20modal\x20label','focus','pendingActions','44qpCXEZ','184725HJmotB','config','6HrWtXC','locale','hide','SourceEditingEnhancedMode','isReadOnly','execute','set','128DvuSNH','_disableCommands','stop','has','markdown','748461FIqRnh','confirm','forceDisabled','getData','11TGWXwS','sourceEditingEnhanced','bind','replaceSource','editor','3996740vembko','element','show','Markdown','highest','ck-source-editing-enhanced-dialog','sourceEditingEnhanced.theme','235015hAMzkm','Dialog','html','Cancel','editSource','65218EYAQss','commands','data','refresh','Save','names','2472316ZeXBXJ','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.','11144436yduBah','affectsData','off','isEnabled','destroy','editables','16MqRosM','includes','setData'];_0x3c25=function(){return _0x3fa4f7;};return _0x3c25();}(function(_0x20176d,_0x2b4f72){const _0x5089a8=_0x3306,_0x539980=_0x20176d();while(!![]){try{const _0x106ed3=-parseInt(_0x5089a8(0x161))/0x1*(parseInt(_0x5089a8(0x153))/0x2)+-parseInt(_0x5089a8(0x17d))/0x3+-parseInt(_0x5089a8(0x16e))/0x4*(-parseInt(_0x5089a8(0x14e))/0x5)+parseInt(_0x5089a8(0x171))/0x6*(parseInt(_0x5089a8(0x159))/0x7)+parseInt(_0x5089a8(0x178))/0x8*(-parseInt(_0x5089a8(0x16f))/0x9)+-parseInt(_0x5089a8(0x147))/0xa+parseInt(_0x5089a8(0x181))/0xb*(parseInt(_0x5089a8(0x15b))/0xc);if(_0x106ed3===_0x2b4f72)break;else _0x539980['push'](_0x539980['shift']());}catch(_0xaa5ec2){_0x539980['push'](_0x539980['shift']());}}}(_0x3c25,0x49263));import{Command as _0xb4a98d,PendingActions as _0x3373d5}from'ckeditor5/src/core.js';import{getTranslation as _0xa5f4b2}from'../utils/common-translations.js';import{getActiveRootName as _0x784516}from'../utils/getactiverootname.js';import{formatSource as _0x374e29,unformatSource as _0x1f6a8e}from'../utils/format.js';import{CodeEditorView as _0xa6dc4}from'./codeeditorview.js';function _0x3306(_0x52a3e3,_0x1d8dc3){const _0x3c255a=_0x3c25();return _0x3306=function(_0x3306ed,_0x238cc6){_0x3306ed=_0x3306ed-0x143;let _0x2e6d8=_0x3c255a[_0x3306ed];return _0x2e6d8;},_0x3306(_0x52a3e3,_0x1d8dc3);}const b=_0x4a5ec4(0x174);export class EditSourceCommand extends _0xb4a98d{constructor(_0x57697e){const _0x4fc5bc=_0x4a5ec4;super(_0x57697e),this[_0x4fc5bc(0x15c)]=!0x1,this[_0x4fc5bc(0x146)][_0x4fc5bc(0x164)][_0x4fc5bc(0x168)](_0x3373d5)['on'](_0x4fc5bc(0x167),(_0x5be3e0,_0x1e8e0c,_0x40b928)=>{const _0x5ce467=_0x4fc5bc;_0x40b928?this[_0x5ce467(0x17f)](_0x5ce467(0x16d)):this[_0x5ce467(0x166)](_0x5ce467(0x16d));});}[_0x4a5ec4(0x179)](){const _0x5b2591=_0x4a5ec4,_0x39e322=this[_0x5b2591(0x146)];for(const _0x4e5706 of _0x39e322[_0x5b2591(0x154)][_0x5b2591(0x158)]())[_0x5b2591(0x145),_0x5b2591(0x152)][_0x5b2591(0x162)](_0x4e5706)||_0x39e322[_0x5b2591(0x154)][_0x5b2591(0x168)](_0x4e5706)[_0x5b2591(0x17f)](b);}[_0x4a5ec4(0x169)](){const _0x45ee11=_0x4a5ec4,_0x236825=this[_0x45ee11(0x146)];for(const _0x4e1c76 of _0x236825[_0x45ee11(0x154)][_0x45ee11(0x154)]())_0x4e1c76[_0x45ee11(0x166)](b);}[_0x4a5ec4(0x156)](){const _0x34b051=_0x4a5ec4;this[_0x34b051(0x15e)]=!0x0;}[_0x4a5ec4(0x176)](){const _0x56adc3=_0x4a5ec4,_0x3e1343=this[_0x56adc3(0x146)],_0x544382=_0x3e1343[_0x56adc3(0x172)],_0x18838e=_0x3e1343[_0x56adc3(0x164)][_0x56adc3(0x168)](_0x56adc3(0x14f)),_0xc955fa=_0x784516(_0x3e1343),_0x38e733=_0x3e1343[_0x56adc3(0x155)][_0x56adc3(0x168)]({'rootName':_0xc955fa}),_0x5a6927=_0x374e29(_0x38e733),_0x41b6df=new _0xa6dc4(_0x544382,{'syntaxLanguage':_0x3e1343[_0x56adc3(0x164)][_0x56adc3(0x17b)](_0x56adc3(0x14a))?_0x56adc3(0x17c):_0x56adc3(0x150),'theme':_0x3e1343[_0x56adc3(0x170)][_0x56adc3(0x168)](_0x56adc3(0x14d))});let _0x365c31=!0x0;const _0x231b14=_0x484a58=>{const _0x2daca8=_0x56adc3;if(!_0x365c31)return;const _0x27e221=_0x41b6df[_0x2daca8(0x180)]();return _0x1f6a8e(_0x27e221)!==_0x1f6a8e(_0x5a6927)?window[_0x2daca8(0x17e)](_0xa5f4b2(_0x544382,_0x2daca8(0x15a)))?void 0x0:_0x484a58[_0x2daca8(0x17a)]():void 0x0;};_0x18838e[_0x56adc3(0x149)]({'id':_0x56adc3(0x143),'title':_0xa5f4b2(_0x544382,_0x56adc3(0x16b)),'isModal':!0x0,'className':_0x56adc3(0x14c),'content':_0x41b6df,'actionButtons':[{'label':_0xa5f4b2(_0x544382,_0x56adc3(0x151)),'withText':!0x0,'onExecute':()=>{const _0x5e1114=_0x56adc3;_0x18838e[_0x5e1114(0x173)]();}},{'label':_0xa5f4b2(_0x544382,_0x56adc3(0x157)),'class':_0x56adc3(0x16a),'withText':!0x0,'onExecute':()=>{const _0x4afb66=_0x56adc3,_0x1a798f=_0x41b6df[_0x4afb66(0x180)](),_0x7c33c9=_0x1f6a8e(_0x1a798f)!==_0x1f6a8e(_0x5a6927);(_0x7c33c9&&_0x3e1343[_0x4afb66(0x176)](_0x4afb66(0x145),_0x41b6df[_0x4afb66(0x180)]()),_0x365c31=!0x1,_0x18838e[_0x4afb66(0x173)](),_0x7c33c9&&_0x4afb66(0x160)in _0x3e1343['ui'][_0x4afb66(0x165)])&&_0x3e1343['ui'][_0x4afb66(0x165)][_0x4afb66(0x160)][_0xc955fa][_0x4afb66(0x148)][_0x4afb66(0x16c)]();},'onCreate':_0x56592b=>{const _0x2f22c8=_0x56adc3;_0x56592b[_0x2f22c8(0x177)](_0x2f22c8(0x15e),!_0x3e1343[_0x2f22c8(0x175)]),_0x56592b[_0x2f22c8(0x144)](_0x2f22c8(0x15e))['to'](_0x3e1343,_0x2f22c8(0x175),this,_0x2f22c8(0x15e),(_0x5b3f20,_0x3068f5)=>!_0x5b3f20&&_0x3068f5);}}],'onHide':()=>{const _0x57196b=_0x56adc3;this[_0x57196b(0x169)](),_0x18838e[_0x57196b(0x15d)](_0x57196b(0x173),_0x231b14),_0x41b6df[_0x57196b(0x15f)]();},'onShow':()=>{const _0x15d2d8=_0x56adc3;_0x41b6df[_0x15d2d8(0x144)](_0x15d2d8(0x175))['to'](_0x3e1343,_0x15d2d8(0x175),this,_0x15d2d8(0x15e),(_0x56c82c,_0x30b5e3)=>_0x56c82c||!_0x30b5e3),_0x41b6df[_0x15d2d8(0x163)](_0x5a6927),_0x41b6df[_0x15d2d8(0x16c)](),_0x18838e['on'](_0x15d2d8(0x173),_0x231b14,{'priority':_0x15d2d8(0x14b)}),this[_0x15d2d8(0x179)]();}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2edf72,_0x5b6b66){const _0x1eec86=_0x5a92,_0x553b3c=_0x2edf72();while(!![]){try{const _0x17bbbc=-parseInt(_0x1eec86(0x1a9))/0x1*(parseInt(_0x1eec86(0x1a3))/0x2)+parseInt(_0x1eec86(0x1ab))/0x3*(parseInt(_0x1eec86(0x19f))/0x4)+-parseInt(_0x1eec86(0x1b2))/0x5*(-parseInt(_0x1eec86(0x1ad))/0x6)+-parseInt(_0x1eec86(0x1b7))/0x7+parseInt(_0x1eec86(0x1a2))/0x8+-parseInt(_0x1eec86(0x1ae))/0x9*(parseInt(_0x1eec86(0x1bb))/0xa)+-parseInt(_0x1eec86(0x1a8))/0xb*(-parseInt(_0x1eec86(0x19e))/0xc);if(_0x17bbbc===_0x5b6b66)break;else _0x553b3c['push'](_0x553b3c['shift']());}catch(_0x366f3b){_0x553b3c['push'](_0x553b3c['shift']());}}}(_0xcc1f,0xdd366));import{lineNumbers as _0x53207e,highlightActiveLineGutter as _0x26e818,highlightSpecialChars as _0x15946a,drawSelection as _0x187aba,dropCursor as _0x206750,rectangularSelection as _0x402803,crosshairCursor as _0x69721e,highlightActiveLine as _0x33040f,keymap as _0x4b1fbf,EditorView as _0x147541}from'@codemirror/view';import{Compartment as _0x23e8d8,Transaction as _0x2c72ba}from'@codemirror/state';import{foldGutter as _0x145fe1,indentOnInput as _0x40bae8,syntaxHighlighting as _0x571300,defaultHighlightStyle as _0x3fe8fb,bracketMatching as _0x2e6888,foldKeymap as _0xb0194b}from'@codemirror/language';function _0x5a92(_0x1b7202,_0x1ba360){const _0xcc1f0=_0xcc1f();return _0x5a92=function(_0x5a92aa,_0x437b9a){_0x5a92aa=_0x5a92aa-0x19e;let _0xaee7b9=_0xcc1f0[_0x5a92aa];return _0xaee7b9;},_0x5a92(_0x1b7202,_0x1ba360);}function _0xcc1f(){const _0x44c98e=['destroy','Ctrl-y','Tab','length','editable','Ctrl-Shift-z','theme','25673784JKGAZd','404gWInub','html','default','4158464yWOwzA','2594rziWnd','parent','dark','Ctrl-z','Cmd-y','11sQsZCR','75fmsAEO','Cmd-Shift-z','48834nuQkkR','state','6gaTDqu','50967ZDhXjC','syntaxLanguage','addToHistory','dispatch','475885WswZTp','focus','doc','Cmd-z','push','11913629JcGCLW','reconfigure','lineWrapping','toString','2990akyUbL'];_0xcc1f=function(){return _0x44c98e;};return _0xcc1f();}import{history as _0x49ffe0,defaultKeymap as _0x35fec8,historyKeymap as _0x66f550,redo as _0x1d914a,undo as _0x2a1cff,indentMore as _0x4250c,indentLess as _0x1a40c7,toggleTabFocusMode as _0x1ba17b}from'@codemirror/commands';import{closeBrackets as _0x11f93b,autocompletion as _0xdbd914,closeBracketsKeymap as _0xc03872,completionKeymap as _0x5aa641}from'@codemirror/autocomplete';import{html as _0x144408}from'@codemirror/lang-html';import{markdown as _0x4429a8}from'@codemirror/lang-markdown';import{oneDark as _0x49baa9}from'@codemirror/theme-one-dark';export function createCodeMirrorEditor(_0x2e4d57){const _0xa3de32=_0x5a92,_0x556380=[_0x147541[_0xa3de32(0x1b9)],_0xdbd914(),_0x2e6888(),_0x11f93b(),_0x69721e(),_0x187aba(),_0x206750(),_0x53207e(),_0x145fe1(),_0x33040f(),_0x26e818(),_0x15946a(),_0x49ffe0(),_0x40bae8(),_0x402803(),_0x571300(_0x3fe8fb,{'fallback':!0x0})],_0x5d71ea=new _0x23e8d8();_0x556380[_0xa3de32(0x1b6)](_0x5d71ea['of'](_0x147541[_0xa3de32(0x1c0)]['of'](!0x0))),_0xa3de32(0x1a0)===_0x2e4d57[_0xa3de32(0x1af)]?_0x556380[_0xa3de32(0x1b6)](_0x144408()):_0x556380[_0xa3de32(0x1b6)](_0x4429a8());const _0x394fc7=function(_0x1bde6e){const _0xe71263=_0xa3de32;if(_0x1bde6e&&_0xe71263(0x1a1)!==_0x1bde6e)return _0xe71263(0x1a5)===_0x1bde6e?_0x49baa9:_0x1bde6e;return null;}(_0x2e4d57[_0xa3de32(0x1c2)]);_0x394fc7&&_0x556380[_0xa3de32(0x1b6)](_0x394fc7),_0x556380[_0xa3de32(0x1b6)](...getKeybindings());const _0x35fd96=new _0x147541({'extensions':_0x556380,'parent':_0x2e4d57[_0xa3de32(0x1a4)]});return _0x1ba17b(_0x35fd96),{'focus':()=>{const _0x577732=_0xa3de32;_0x35fd96[_0x577732(0x1b1)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x35fd96[_0x577732(0x1b3)]();},'getData':()=>_0x35fd96[_0xa3de32(0x1ac)][_0xa3de32(0x1b4)][_0xa3de32(0x1ba)](),'setData':_0x2585c=>{const _0x6e1397=_0xa3de32;_0x35fd96[_0x6e1397(0x1b1)]({'changes':{'from':0x0,'to':_0x35fd96[_0x6e1397(0x1ac)][_0x6e1397(0x1b4)][_0x6e1397(0x1bf)],'insert':_0x2585c},'annotations':_0x2c72ba[_0x6e1397(0x1b0)]['of'](!0x1)});},'setReadOnly':_0x28984c=>{const _0x290c99=_0xa3de32;_0x35fd96[_0x290c99(0x1b1)]({'effects':[_0x5d71ea[_0x290c99(0x1b8)](_0x147541[_0x290c99(0x1c0)]['of'](!_0x28984c))]});},'destroy':()=>{const _0x2415b3=_0xa3de32;_0x35fd96[_0x2415b3(0x1bc)]();},'instance':_0x35fd96};}export function getKeybindings(){const _0x13808e=_0x5a92;return[_0x4b1fbf['of']([..._0xc03872,..._0x35fec8,..._0x66f550,..._0xb0194b,..._0x5aa641,{'key':_0x13808e(0x1be),'run':_0x4250c,'shift':_0x1a40c7,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x13808e(0x1bd),'mac':_0x13808e(0x1a7),'run':_0x1d914a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x13808e(0x1c1),'mac':_0x13808e(0x1aa),'run':_0x1d914a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x13808e(0x1a6),'mac':_0x13808e(0x1b5),'run':_0x2a1cff,'preventDefault':!0x0,'stopPropagation':!0x0}])];}
|
package/src/utils/format.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x143b(_0x58646e,_0x39c2b0){var _0x1a7cce=_0x1a7c();return _0x143b=function(_0x143b4c,_0x4dc243){_0x143b4c=_0x143b4c-0x1a6;var _0x12a51c=_0x1a7cce[_0x143b4c];return _0x12a51c;},_0x143b(_0x58646e,_0x39c2b0);}function _0x1a7c(){var _0x2d73f8=['33498297knONLl','startsWith','814182ezSJpp','425SyayWE','2564308OqsjDj','5976194PBqAVm','15007312Raeuqc','12mPhzTB','replace','138738ESOvkG','366299dcxIfc'];_0x1a7c=function(){return _0x2d73f8;};return _0x1a7c();}(function(_0xe61d0d,_0x1a2fe5){var _0x18d5a4=_0x143b,_0x35a622=_0xe61d0d();while(!![]){try{var _0x52426c=-parseInt(_0x18d5a4(0x1a6))/0x1+parseInt(_0x18d5a4(0x1ab))/0x2+parseInt(_0x18d5a4(0x1a9))/0x3*(parseInt(_0x18d5a4(0x1ae))/0x4)+parseInt(_0x18d5a4(0x1aa))/0x5*(parseInt(_0x18d5a4(0x1b0))/0x6)+-parseInt(_0x18d5a4(0x1ac))/0x7+parseInt(_0x18d5a4(0x1ad))/0x8+-parseInt(_0x18d5a4(0x1a7))/0x9;if(_0x52426c===_0x1a2fe5)break;else _0x35a622['push'](_0x35a622['shift']());}catch(_0x3c85dc){_0x35a622['push'](_0x35a622['shift']());}}}(_0x1a7c,0xf312f));import{formatHtml as _0x1270c1}from'ckeditor5/src/utils.js';export function formatSource(_0x9c9499){return tr(_0x9c9499)?_0x1270c1(_0x9c9499):_0x9c9499;}export function unformatSource(_0x1bbda9){var _0x47087d=_0x143b;return tr(_0x1bbda9[_0x47087d(0x1af)](/^[\n\s]*/g,''))?_0x1bbda9[_0x47087d(0x1af)](/\s+/g,''):_0x1bbda9;}function tr(_0xcc699b){var _0xbf66b5=_0x143b;return _0xcc699b[_0xbf66b5(0x1a8)]('<');}
|