diff --git a/docs/index.html b/docs/index.html index 4ec6325..481eef8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -351,7 +351,7 @@
- + diff --git a/docs/src/js/cloud.js b/docs/src/js/cloud.js index 2ce9678..d5a1140 100644 --- a/docs/src/js/cloud.js +++ b/docs/src/js/cloud.js @@ -1 +1 @@ -var a0_0x5f3467=a0_0x3787;(function(_0x403839,_0x5d1dde){var _0x1fa03c=a0_0x3787,_0x2dc50f=_0x403839();while(!![]){try{var _0x39bd70=-parseInt(_0x1fa03c(0x1c5))/0x1*(-parseInt(_0x1fa03c(0x1af))/0x2)+parseInt(_0x1fa03c(0x19b))/0x3*(parseInt(_0x1fa03c(0x184))/0x4)+-parseInt(_0x1fa03c(0x196))/0x5+parseInt(_0x1fa03c(0x1ca))/0x6*(-parseInt(_0x1fa03c(0x1da))/0x7)+parseInt(_0x1fa03c(0x1d8))/0x8+-parseInt(_0x1fa03c(0x1a2))/0x9+-parseInt(_0x1fa03c(0x1e3))/0xa;if(_0x39bd70===_0x5d1dde)break;else _0x2dc50f['push'](_0x2dc50f['shift']());}catch(_0xda2192){_0x2dc50f['push'](_0x2dc50f['shift']());}}}(a0_0x449c,0x9e5ff));import*as a0_0x2067cc from'./main.js';import{localStorageFile}from'./storage.js';var clientId=a0_0x5f3467(0x19e),clientSecret=a0_0x5f3467(0x1b6);function authorizeWithDropbox(){var _0x42833f=a0_0x5f3467,_0x2d03c4=window[_0x42833f(0x1c2)][_0x42833f(0x1dc)][_0x42833f(0x186)]('?')[0x0],_0x482a76=_0x42833f(0x1d5),_0x3d7a7f=_0x42833f(0x19f),_0x151ff7='https://www.dropbox.com/oauth2/authorize?client_id='+clientId+_0x42833f(0x1db)+_0x482a76+'&token_access_type='+_0x3d7a7f+'&redirect_uri='+encodeURIComponent(_0x2d03c4);window['location'][_0x42833f(0x1dc)]=_0x151ff7;}function handleDropboxCallback(){var _0x26cd83=a0_0x5f3467,_0x371a34=getUrlParameter(_0x26cd83(0x1d5));_0x371a34?(getAccessToken(_0x371a34),console[_0x26cd83(0x1d4)](_0x26cd83(0x1e2),_0x371a34)):console['log'](_0x26cd83(0x181));}function getUrlParameter(_0x51fc89){var _0x247151=a0_0x5f3467;_0x51fc89=_0x51fc89[_0x247151(0x199)](/[\[]/,'\x5c[')[_0x247151(0x199)](/[\]]/,'\x5c]');var _0x4ea4a9=new RegExp(_0x247151(0x1cb)+_0x51fc89+_0x247151(0x1ae)),_0x437593=_0x4ea4a9[_0x247151(0x1b0)](location[_0x247151(0x1d0)]);return _0x437593===null?'':decodeURIComponent(_0x437593[0x1][_0x247151(0x199)](/\+/g,'\x20'));}function getAccessToken(_0x4e6602){var _0x595f72=a0_0x5f3467,_0x281e36=_0x595f72(0x178),_0x497905=window[_0x595f72(0x1c2)][_0x595f72(0x1dc)][_0x595f72(0x186)]('?')[0x0],_0x2f217a=new XMLHttpRequest();_0x2f217a[_0x595f72(0x18a)]('POST',_0x595f72(0x18c)),_0x2f217a[_0x595f72(0x1bc)]('Content-Type',_0x595f72(0x1b9)),_0x2f217a['onload']=function(){var _0x56b861=_0x595f72;if(_0x2f217a[_0x56b861(0x1de)]===0xc8){var _0x38822c=JSON[_0x56b861(0x17a)](_0x2f217a['responseText']),_0x948e47=_0x38822c[_0x56b861(0x1ad)],_0x165a68=_0x38822c[_0x56b861(0x1c7)],_0x210198=_0x38822c[_0x56b861(0x189)];localStorage['setItem'](_0x56b861(0x1a3),_0x948e47),localStorage[_0x56b861(0x1cc)](_0x56b861(0x193),_0x165a68),localStorage['setItem'](_0x56b861(0x198),_0x210198);}else console[_0x56b861(0x1d4)]('Do\x20not\x20receive\x20access\x20token\x20&\x20refresh\x20token');},_0x2f217a[_0x595f72(0x1cd)]('code='+_0x4e6602+_0x595f72(0x18d)+_0x281e36+_0x595f72(0x195)+clientId+_0x595f72(0x1a5)+clientSecret+_0x595f72(0x1b1)+encodeURIComponent(_0x497905));}export async function dpRefreshToken(){var _0x28b3fc=a0_0x5f3467;if(!localStorage[_0x28b3fc(0x18e)](_0x28b3fc(0x193)))throw _0x28b3fc(0x1b2);try{const _0xb6f9af=await fetch(_0x28b3fc(0x1b7),{'method':_0x28b3fc(0x1c8),'headers':{'Content-Type':_0x28b3fc(0x1b9)},'body':'refresh_token='+localStorage[_0x28b3fc(0x18e)](_0x28b3fc(0x193))+_0x28b3fc(0x182)}),_0x4755f7=await _0xb6f9af[_0x28b3fc(0x187)]();if(!_0x4755f7[_0x28b3fc(0x19a)])return localStorage[_0x28b3fc(0x1cc)](_0x28b3fc(0x1a3),_0x4755f7[_0x28b3fc(0x1ad)]),await lockNoti('',_0x28b3fc(0x180),0xbb8),await delay(0x3e8),!![];else alert(_0x4755f7[_0x28b3fc(0x1d1)]||'Failed\x20to\x20refresh\x20Dropbox\x20token.');}catch(_0x38c58b){console[_0x28b3fc(0x19a)](_0x28b3fc(0x1ce),_0x38c58b);}return![];}function a0_0x449c(){var _0x41d004=['POST','text/plain','2706ZzRSyZ','[\x5c?&#]','setItem','send','Error\x20while\x20refreshing\x20token:','endsWith','search','error_description','file','Do\x20you\x20want\x20to\x20backup\x20','log','code','gba','entries','9860224GOhCgl','https://content.dropboxapi.com/2/files/download','6818lqBaKk','&response_type=','href','downloadFileInCloud','status','Cloud\x20login\x20required!','state','.txt','Authorization\x20Code:','2911370nMBjQJ','blob','.gba_dateState','.ss6','length','alert','.ss2','authorization_code','Do\x20you\x20want\x20to\x20restore\x20','parse','classList','save','DOMContentLoaded','FSSync','Backing\x20up...','Refreshing\x20token...','Do\x20not\x20receive\x20authorization','&grant_type=refresh_token&client_id=knh3uz2mx2hp2eu&client_secret=nwb3dnfh09rhs31','status:\x20','4UQyxQF','.gba_slot','split','json','Do\x20you\x20want\x20to\x20logout?','uid','open','.ss5','https://api.dropbox.com/oauth2/token','&grant_type=','getItem','click','substring','stringify','active','refreshToken','remove','&client_id=','4162570kBpMaq','Cloud\x20↦\x20Kabu\x20storage\x20◆','uId','replace','error','871077ouXpYn','charAt','.ss3','knh3uz2mx2hp2eu','offline','.ss1','filter','3095874PLqvsi','accessToken','.gba_imageState','&client_secret=','\x20files\x20in\x20Kabu?','lastIndexOf','list','.ss4','text','Download\x20failed,\x20unknown\x20http\x20status:','slice','access_token','=([^&#]*)','2065454xMvHvd','exec','&redirect_uri=','No\x20refresh\x20token','application/json','https://content.dropboxapi.com/2/files/upload','Upload\x20failed,\x20unknown\x20http\x20status:\x20','nwb3dnfh09rhs31','https://api.dropboxapi.com/oauth2/token','confirm','application/x-www-form-urlencoded','.tag','_dateState','setRequestHeader','application/octet-stream','overwrite','.ss7','toUpperCase','\x20files\x20in\x20Cloud?','location','.ss0','Bearer\x20','1baBAez','Restore\x20canceled\x20by\x20user.','refresh_token'];a0_0x449c=function(){return _0x41d004;};return a0_0x449c();}function a0_0x3787(_0x2fffc5,_0x296291){var _0x449c76=a0_0x449c();return a0_0x3787=function(_0x37872c,_0x419c96){_0x37872c=_0x37872c-0x175;var _0x32b880=_0x449c76[_0x37872c];return _0x32b880;},a0_0x3787(_0x2fffc5,_0x296291);}export async function dpUploadFile(_0x226feb,_0xf72871){var _0x4c30ea=a0_0x5f3467;const _0x4997a3=localStorage['getItem'](_0x4c30ea(0x198));var _0x28caaf=JSON[_0x4c30ea(0x191)]({'autorename':!![],'mode':_0x4c30ea(0x1be),'mute':!![],'strict_conflict':![],'path':'/'+_0x4997a3+'/'+_0x226feb}),_0xf455c=new Blob([_0xf72871],{'type':_0x4c30ea(0x1bd)});for(var _0x23538c=0x0;_0x23538c<0x2;_0x23538c++){var _0x13451d=await fetch(_0x4c30ea(0x1b4),{'method':_0x4c30ea(0x1c8),'headers':{'Authorization':_0x4c30ea(0x1c4)+localStorage['getItem'](_0x4c30ea(0x1a3)),'Dropbox-API-Arg':_0x28caaf,'Content-Type':_0x4c30ea(0x1bd)},'body':_0xf455c});if(_0x13451d[_0x4c30ea(0x1de)]!=0xc8){if(_0x13451d[_0x4c30ea(0x1de)]==0x191){var _0x35c34f=await dpRefreshToken();if(!_0x35c34f)throw'Unable\x20to\x20refresh\x20token';continue;}else throw _0x4c30ea(0x1b5)+_0x13451d['status'];}else{var _0xe647df=await _0x13451d[_0x4c30ea(0x187)]();return console[_0x4c30ea(0x1d4)]('Kabu\x20storage\x20↦\x20Cloud\x20◆',_0x226feb),_0xe647df;}}return![];}async function dpDownloadFile(_0x314c8f){var _0x4a2bc3=a0_0x5f3467;const _0x374466=localStorage['getItem']('uId');var _0x2d6625=JSON['stringify']({'path':'/'+_0x374466+'/'+_0x314c8f});for(var _0x5d23d8=0x0;_0x5d23d8<0x2;_0x5d23d8++){var _0x1fd4c9=await fetch(_0x4a2bc3(0x1d9),{'method':_0x4a2bc3(0x1c8),'headers':{'Authorization':'Bearer\x20'+localStorage[_0x4a2bc3(0x18e)](_0x4a2bc3(0x1a3)),'Dropbox-API-Arg':_0x2d6625}});if(_0x1fd4c9[_0x4a2bc3(0x1de)]!=0xc8){if(_0x1fd4c9['status']==0x191){var _0x3a38ea=await dpRefreshToken();if(!_0x3a38ea)throw'Unable\x20to\x20refresh\x20token';continue;}else throw _0x4a2bc3(0x1ab)+_0x1fd4c9['status'];}const _0x31859b=new File([await _0x1fd4c9[_0x4a2bc3(0x1e4)]()],_0x314c8f);console[_0x4a2bc3(0x1d4)](_0x4a2bc3(0x197),_0x31859b['name']);if(_0x314c8f[_0x4a2bc3(0x1cf)](_0x4a2bc3(0x1e1))){const _0x27d2e9=await _0x31859b[_0x4a2bc3(0x1aa)](),[_0x3daf6d,_0x3fbca7]=_0x27d2e9['split']('\x0a\x0a'),_0x1c73fb=_0x314c8f['substring'](0x0,_0x314c8f['lastIndexOf'](_0x4a2bc3(0x1d6))+0x3),_0x2b9250=_0x314c8f[_0x4a2bc3(0x19c)](_0x314c8f['length']-0x5);localStorage[_0x4a2bc3(0x1cc)](_0x1c73fb+_0x4a2bc3(0x1bb)+_0x2b9250,_0x3fbca7),localStorage[_0x4a2bc3(0x1cc)](_0x1c73fb+'_imageState'+_0x2b9250,_0x3daf6d);}else a0_0x2067cc['uploadSaveOrSaveState'](_0x31859b,()=>{var _0x3842de=_0x4a2bc3;localStorageFile(),Module[_0x3842de(0x17e)]();});return _0x31859b;}return![];}document['addEventListener'](a0_0x5f3467(0x17d),function(){var _0x19788a=a0_0x5f3467;dropboxRestore['addEventListener']('click',async function(){var _0x5b299a=a0_0x3787;const _0x11dcfa=localStorage[_0x5b299a(0x18e)]('uId');if(_0x11dcfa===null||_0x11dcfa==='')window[_0x5b299a(0x176)](_0x5b299a(0x1df));else{var _0xdbfa83={'path':'/'+_0x11dcfa};for(var _0x2b272d=0x0;_0x2b272d<0x2;_0x2b272d++){var _0xcb334c=await fetch('https://api.dropboxapi.com/2/files/list_folder',{'method':_0x5b299a(0x1c8),'headers':{'Authorization':_0x5b299a(0x1c4)+localStorage[_0x5b299a(0x18e)](_0x5b299a(0x1a3)),'Content-Type':_0x5b299a(0x1b3)},'body':JSON[_0x5b299a(0x191)](_0xdbfa83)});console[_0x5b299a(0x1d4)](_0x5b299a(0x183),_0xcb334c[_0x5b299a(0x1de)]);if(_0xcb334c[_0x5b299a(0x1de)]!=0xc8){if(_0xcb334c[_0x5b299a(0x1de)]==0x191){var _0x50f3f4=await dpRefreshToken();if(!_0x50f3f4)throw'Unable\x20to\x20refresh\x20token';continue;}else throw'Download\x20failed,\x20unknown\x20http\x20status:\x20'+_0xcb334c[_0x5b299a(0x1de)];}else{const _0x54a8cb=await _0xcb334c[_0x5b299a(0x187)](),_0x2c2814=_0x54a8cb[_0x5b299a(0x1d7)][_0x5b299a(0x1a1)](_0x3317cf=>_0x3317cf[_0x5b299a(0x1ba)]===_0x5b299a(0x1d2))[_0x5b299a(0x175)],_0x4091ea=_0x5b299a(0x179)+_0x2c2814+_0x5b299a(0x1c1);if(window[_0x5b299a(0x1b8)](_0x4091ea))for(const _0x512b68 of _0x54a8cb[_0x5b299a(0x1d7)]){_0x512b68[_0x5b299a(0x1ba)]===_0x5b299a(0x1d2)&&(await lockNoti('Restoring...',_0x512b68['name'],0xbb8),await dpDownloadFile(_0x512b68['name']));}else console[_0x5b299a(0x1d4)](_0x5b299a(0x1c6));return!![];}}return![];}}),dropboxBackup['addEventListener']('click',async function(){var _0x2576af=a0_0x3787;const _0x5a73f6=localStorage['getItem']('uId');if(_0x5a73f6===null||_0x5a73f6==='')window[_0x2576af(0x176)]('Cloud\x20login\x20required!');else{const _0x26eb7e=[_0x2576af(0x1e0),_0x2576af(0x17c)];let _0x5799b3=0x0;for(const _0x4b183e of _0x26eb7e){const _0x19afec=a0_0x2067cc[_0x2576af(0x1a8)+(_0x4b183e[_0x2576af(0x19c)](0x0)[_0x2576af(0x1c0)]()+_0x4b183e[_0x2576af(0x1ac)](0x1))]();_0x5799b3+=_0x19afec[_0x2576af(0x175)];}if(window[_0x2576af(0x1b8)](_0x2576af(0x1d3)+_0x5799b3+_0x2576af(0x1a6)))for(const _0x1b4a86 of _0x26eb7e){const _0x1257fc=a0_0x2067cc[_0x2576af(0x1a8)+(_0x1b4a86[_0x2576af(0x19c)](0x0)[_0x2576af(0x1c0)]()+_0x1b4a86[_0x2576af(0x1ac)](0x1))]();for(const _0x251d03 of _0x1257fc){const _0x6c4d81=await a0_0x2067cc[_0x2576af(0x1dd)]('/data/'+_0x1b4a86+'s/'+_0x251d03);try{await lockNoti(_0x2576af(0x17f),_0x251d03,0xbb8),await dpUploadFile(_0x251d03,_0x6c4d81);if(_0x251d03['endsWith'](_0x2576af(0x1c3))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x1a0))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x177))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x19d))||_0x251d03['endsWith'](_0x2576af(0x1a9))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x18b))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x1e6))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x1bf))){const _0x2409cc=_0x251d03[_0x2576af(0x190)](0x0,_0x251d03[_0x2576af(0x1a7)]('.')),_0x11e757=_0x251d03['charAt'](_0x251d03[_0x2576af(0x175)]-0x1),_0x4dec62=localStorage[_0x2576af(0x18e)](_0x2409cc+_0x2576af(0x1a4)+_0x11e757),_0xa359a0=localStorage[_0x2576af(0x18e)](_0x2409cc+_0x2576af(0x1e5)+_0x11e757);if(_0x4dec62!==null){const _0x4f5d3d=_0x4dec62+'\x0a\x0a'+_0xa359a0,_0x267490=new Blob([_0x4f5d3d],{'type':_0x2576af(0x1c9)});await lockNoti(_0x2576af(0x17f),_0x2409cc+_0x2576af(0x185)+_0x11e757+_0x2576af(0x1e1),0xbb8),await dpUploadFile(_0x2409cc+_0x2576af(0x185)+_0x11e757+'.txt',_0x267490);}}}catch(_0x3b1c95){console[_0x2576af(0x19a)]('Failed\x20to\x20upload\x20file\x20'+_0x251d03+':',_0x3b1c95);}}}else console[_0x2576af(0x1d4)]('Restore\x20canceled\x20by\x20user.');}}),dropboxCloud['addEventListener'](_0x19788a(0x18f),function(){var _0x546fe2=_0x19788a;const _0x1d187a=localStorage[_0x546fe2(0x18e)](_0x546fe2(0x198));_0x1d187a===null||_0x1d187a===''?authorizeWithDropbox():window[_0x546fe2(0x1b8)](_0x546fe2(0x188))&&(localStorage[_0x546fe2(0x1cc)](_0x546fe2(0x198),''),dropboxRestore[_0x546fe2(0x17b)][_0x546fe2(0x194)](_0x546fe2(0x192)),dropboxBackup['classList']['remove'](_0x546fe2(0x192)),dropboxCloud[_0x546fe2(0x17b)][_0x546fe2(0x194)](_0x546fe2(0x192)));}),handleDropboxCallback();}); \ No newline at end of file +var a0_0x536866=a0_0x877e;(function(_0x2ecc6b,_0x3ff65f){var _0x27c2e1=a0_0x877e,_0x4a211b=_0x2ecc6b();while(!![]){try{var _0x338283=-parseInt(_0x27c2e1(0x1f8))/0x1+-parseInt(_0x27c2e1(0x1dc))/0x2+-parseInt(_0x27c2e1(0x24a))/0x3+-parseInt(_0x27c2e1(0x233))/0x4*(-parseInt(_0x27c2e1(0x1f6))/0x5)+-parseInt(_0x27c2e1(0x206))/0x6*(-parseInt(_0x27c2e1(0x249))/0x7)+-parseInt(_0x27c2e1(0x1e0))/0x8+parseInt(_0x27c2e1(0x227))/0x9;if(_0x338283===_0x3ff65f)break;else _0x4a211b['push'](_0x4a211b['shift']());}catch(_0x30c599){_0x4a211b['push'](_0x4a211b['shift']());}}}(a0_0x4e6e,0x3148d));import*as a0_0x540806 from'./main.js';import{localStorageFile}from'./storage.js';var clientId='knh3uz2mx2hp2eu',clientSecret=a0_0x536866(0x22f);function a0_0x4e6e(){var _0x9d9bc9=['location','&client_id=','save','.tag','stringify','.txt','refreshToken','\x20files\x20in\x20Cloud?','Download\x20failed,\x20unknown\x20http\x20status:','Bearer\x20','code=','.ss7','application/octet-stream','getItem','.ss6','https://www.dropbox.com/oauth2/authorize?client_id=','charAt','Failed\x20to\x20upload\x20file\x20','entries','toUpperCase','&grant_type=refresh_token&client_id=knh3uz2mx2hp2eu&client_secret=nwb3dnfh09rhs31','search','Restoring...','4544874zvxoNa','&redirect_uri=','&grant_type=','Cloud\x20login\x20required!','status:\x20','uId','substring','Cloud\x20↦\x20Kabu\x20storage\x20◆','nwb3dnfh09rhs31','open','gba','split','563260pZgNCH','.gba_slot','blob','log','alert','&client_secret=','downloadFileInCloud','.ss0','remove','No\x20refresh\x20token','https://api.dropboxapi.com/oauth2/token','lastIndexOf','uid','uploadSaveOrSaveState','setRequestHeader','click','.ss2','status','replace','https://content.dropboxapi.com/2/files/download','Do\x20you\x20want\x20to\x20backup\x20','access_token','4585RGeSeB','643170eItYIQ','DOMContentLoaded','356948AjHqZz','POST','offline','Backing\x20up...','1032168wDsBeq','.gba_imageState','overwrite','Upload\x20failed,\x20unknown\x20http\x20status:\x20','name','refresh_token=','Do\x20you\x20want\x20to\x20logout?','code','&response_type=','Content-Type','send','Do\x20not\x20receive\x20access\x20token\x20&\x20refresh\x20token','length','href','\x20files\x20in\x20Kabu?','classList','list','authorization_code','slice','&token_access_type=','text/plain','file','5NfwEcN','.ss5','233172ELgoye','accessToken','filter','error_description','confirm','Do\x20you\x20want\x20to\x20restore\x20','parse','Restore\x20canceled\x20by\x20user.','application/json','setItem','active','.ss3','Unable\x20to\x20refresh\x20token','endsWith','2850qDPIUk','_dateState','onload','addEventListener','Download\x20failed,\x20unknown\x20http\x20status:\x20','FSSync','.ss4','error','Authorization\x20Code:','application/x-www-form-urlencoded'];a0_0x4e6e=function(){return _0x9d9bc9;};return a0_0x4e6e();}function a0_0x877e(_0x34933a,_0x3e59ec){var _0x4e6e14=a0_0x4e6e();return a0_0x877e=function(_0x877ebb,_0x38a8c4){_0x877ebb=_0x877ebb-0x1dc;var _0x39e0ff=_0x4e6e14[_0x877ebb];return _0x39e0ff;},a0_0x877e(_0x34933a,_0x3e59ec);}function authorizeWithDropbox(){var _0xbad63e=a0_0x536866,_0xc014de=window['location'][_0xbad63e(0x1ed)][_0xbad63e(0x232)]('?')[0x0],_0x1112eb=_0xbad63e(0x1e7),_0x4a3b21=_0xbad63e(0x1de),_0x3d54e3=_0xbad63e(0x21f)+clientId+_0xbad63e(0x1e8)+_0x1112eb+_0xbad63e(0x1f3)+_0x4a3b21+'&redirect_uri='+encodeURIComponent(_0xc014de);window[_0xbad63e(0x210)][_0xbad63e(0x1ed)]=_0x3d54e3;}function handleDropboxCallback(){var _0x2b1df5=a0_0x536866,_0xdeee39=getUrlParameter(_0x2b1df5(0x1e7));_0xdeee39?(getAccessToken(_0xdeee39),console[_0x2b1df5(0x236)](_0x2b1df5(0x20e),_0xdeee39)):console[_0x2b1df5(0x236)]('Do\x20not\x20receive\x20authorization');}function getUrlParameter(_0x93dd16){var _0x25dd40=a0_0x536866;_0x93dd16=_0x93dd16[_0x25dd40(0x245)](/[\[]/,'\x5c[')[_0x25dd40(0x245)](/[\]]/,'\x5c]');var _0x1b9197=new RegExp('[\x5c?&#]'+_0x93dd16+'=([^&#]*)'),_0xf126ed=_0x1b9197['exec'](location[_0x25dd40(0x225)]);return _0xf126ed===null?'':decodeURIComponent(_0xf126ed[0x1][_0x25dd40(0x245)](/\+/g,'\x20'));}function getAccessToken(_0x38be5b){var _0x4d18b4=a0_0x536866,_0x16312a=_0x4d18b4(0x1f1),_0x13d5bf=window[_0x4d18b4(0x210)][_0x4d18b4(0x1ed)][_0x4d18b4(0x232)]('?')[0x0],_0x478c51=new XMLHttpRequest();_0x478c51[_0x4d18b4(0x230)](_0x4d18b4(0x1dd),'https://api.dropbox.com/oauth2/token'),_0x478c51[_0x4d18b4(0x241)](_0x4d18b4(0x1e9),_0x4d18b4(0x20f)),_0x478c51[_0x4d18b4(0x208)]=function(){var _0x2fc2cb=_0x4d18b4;if(_0x478c51[_0x2fc2cb(0x244)]===0xc8){var _0x206f8d=JSON[_0x2fc2cb(0x1fe)](_0x478c51['responseText']),_0x39a95b=_0x206f8d[_0x2fc2cb(0x248)],_0x2738da=_0x206f8d['refresh_token'],_0x56bd23=_0x206f8d[_0x2fc2cb(0x23f)];localStorage[_0x2fc2cb(0x201)](_0x2fc2cb(0x1f9),_0x39a95b),localStorage[_0x2fc2cb(0x201)]('refreshToken',_0x2738da),localStorage[_0x2fc2cb(0x201)](_0x2fc2cb(0x22c),_0x56bd23);}else console[_0x2fc2cb(0x236)](_0x2fc2cb(0x1eb));},_0x478c51[_0x4d18b4(0x1ea)](_0x4d18b4(0x21a)+_0x38be5b+_0x4d18b4(0x229)+_0x16312a+_0x4d18b4(0x211)+clientId+_0x4d18b4(0x238)+clientSecret+_0x4d18b4(0x228)+encodeURIComponent(_0x13d5bf));}export async function dpRefreshToken(){var _0x22e6b6=a0_0x536866;if(!localStorage[_0x22e6b6(0x21d)](_0x22e6b6(0x216)))throw _0x22e6b6(0x23c);try{const _0x484d76=await fetch(_0x22e6b6(0x23d),{'method':_0x22e6b6(0x1dd),'headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':_0x22e6b6(0x1e5)+localStorage[_0x22e6b6(0x21d)](_0x22e6b6(0x216))+_0x22e6b6(0x224)}),_0x1bec3a=await _0x484d76['json']();if(!_0x1bec3a[_0x22e6b6(0x20d)])return localStorage[_0x22e6b6(0x201)](_0x22e6b6(0x1f9),_0x1bec3a['access_token']),await lockNoti('','Refreshing\x20token...',0xbb8),await delay(0x3e8),!![];else alert(_0x1bec3a[_0x22e6b6(0x1fb)]||'Failed\x20to\x20refresh\x20Dropbox\x20token.');}catch(_0x597b6a){console['error']('Error\x20while\x20refreshing\x20token:',_0x597b6a);}return![];}export async function dpUploadFile(_0x3a91d8,_0x2e3b48){var _0x1043d3=a0_0x536866;const _0x7b0370=localStorage[_0x1043d3(0x21d)]('uId');var _0x3f4c47=JSON[_0x1043d3(0x214)]({'autorename':!![],'mode':_0x1043d3(0x1e2),'mute':!![],'strict_conflict':![],'path':'/'+_0x7b0370+'/'+_0x3a91d8}),_0x36b1aa=new Blob([_0x2e3b48],{'type':_0x1043d3(0x21c)});for(var _0x340f92=0x0;_0x340f92<0x2;_0x340f92++){var _0x528db5=await fetch('https://content.dropboxapi.com/2/files/upload',{'method':_0x1043d3(0x1dd),'headers':{'Authorization':_0x1043d3(0x219)+localStorage['getItem'](_0x1043d3(0x1f9)),'Dropbox-API-Arg':_0x3f4c47,'Content-Type':'application/octet-stream'},'body':_0x36b1aa});if(_0x528db5[_0x1043d3(0x244)]!=0xc8){if(_0x528db5[_0x1043d3(0x244)]==0x191){var _0x1549ee=await dpRefreshToken();if(!_0x1549ee)throw _0x1043d3(0x204);continue;}else throw _0x1043d3(0x1e3)+_0x528db5[_0x1043d3(0x244)];}else{var _0x521931=await _0x528db5['json']();return console[_0x1043d3(0x236)]('Kabu\x20storage\x20↦\x20Cloud\x20◆',_0x3a91d8),_0x521931;}}return![];}async function dpDownloadFile(_0x5862ca){var _0x158e44=a0_0x536866;const _0x490e59=localStorage['getItem'](_0x158e44(0x22c));var _0x28a02f=JSON[_0x158e44(0x214)]({'path':'/'+_0x490e59+'/'+_0x5862ca});for(var _0x5f44a0=0x0;_0x5f44a0<0x2;_0x5f44a0++){var _0x5c76c5=await fetch(_0x158e44(0x246),{'method':_0x158e44(0x1dd),'headers':{'Authorization':_0x158e44(0x219)+localStorage[_0x158e44(0x21d)]('accessToken'),'Dropbox-API-Arg':_0x28a02f}});if(_0x5c76c5[_0x158e44(0x244)]!=0xc8){if(_0x5c76c5[_0x158e44(0x244)]==0x191){var _0x5d58cc=await dpRefreshToken();if(!_0x5d58cc)throw _0x158e44(0x204);continue;}else throw _0x158e44(0x218)+_0x5c76c5['status'];}const _0x2e4cb3=new File([await _0x5c76c5[_0x158e44(0x235)]()],_0x5862ca);console[_0x158e44(0x236)](_0x158e44(0x22e),_0x2e4cb3[_0x158e44(0x1e4)]);if(_0x5862ca[_0x158e44(0x205)](_0x158e44(0x215))){const _0x466ccb=await _0x2e4cb3['text'](),[_0x261f53,_0x29d405]=_0x466ccb[_0x158e44(0x232)]('\x0a\x0a'),_0x14fae9=_0x5862ca['substring'](0x0,_0x5862ca[_0x158e44(0x23e)](_0x158e44(0x231))+0x3),_0x49d7a8=_0x5862ca[_0x158e44(0x220)](_0x5862ca[_0x158e44(0x1ec)]-0x5);localStorage[_0x158e44(0x201)](_0x14fae9+_0x158e44(0x207)+_0x49d7a8,_0x29d405),localStorage['setItem'](_0x14fae9+'_imageState'+_0x49d7a8,_0x261f53);}else a0_0x540806[_0x158e44(0x240)](_0x2e4cb3,()=>{var _0x92392=_0x158e44;localStorageFile(),Module[_0x92392(0x20b)]();});return _0x2e4cb3;}return![];}document[a0_0x536866(0x209)](a0_0x536866(0x24b),function(){var _0x528438=a0_0x536866;dropboxRestore[_0x528438(0x209)](_0x528438(0x242),async function(){var _0xb26ee2=_0x528438;const _0x1229bf=localStorage[_0xb26ee2(0x21d)](_0xb26ee2(0x22c));if(_0x1229bf===null||_0x1229bf==='')window[_0xb26ee2(0x237)](_0xb26ee2(0x22a));else{var _0xdafaec={'path':'/'+_0x1229bf};for(var _0x521ac5=0x0;_0x521ac5<0x2;_0x521ac5++){var _0x51bfef=await fetch('https://api.dropboxapi.com/2/files/list_folder',{'method':'POST','headers':{'Authorization':_0xb26ee2(0x219)+localStorage[_0xb26ee2(0x21d)]('accessToken'),'Content-Type':_0xb26ee2(0x200)},'body':JSON[_0xb26ee2(0x214)](_0xdafaec)});console[_0xb26ee2(0x236)](_0xb26ee2(0x22b),_0x51bfef[_0xb26ee2(0x244)]);if(_0x51bfef[_0xb26ee2(0x244)]!=0xc8){if(_0x51bfef[_0xb26ee2(0x244)]==0x191){var _0x3f5bcb=await dpRefreshToken();if(!_0x3f5bcb)throw _0xb26ee2(0x204);continue;}else throw _0xb26ee2(0x20a)+_0x51bfef[_0xb26ee2(0x244)];}else{const _0x2c1c33=await _0x51bfef['json'](),_0x1c810c=_0x2c1c33['entries'][_0xb26ee2(0x1fa)](_0x3e2257=>_0x3e2257[_0xb26ee2(0x213)]==='file')[_0xb26ee2(0x1ec)],_0x4acb69=_0xb26ee2(0x1fd)+_0x1c810c+_0xb26ee2(0x217);if(window[_0xb26ee2(0x1fc)](_0x4acb69))for(const _0x2a3faf of _0x2c1c33[_0xb26ee2(0x222)]){_0x2a3faf['.tag']===_0xb26ee2(0x1f5)&&(await lockNoti(_0xb26ee2(0x226),_0x2a3faf[_0xb26ee2(0x1e4)],0xbb8),await dpDownloadFile(_0x2a3faf[_0xb26ee2(0x1e4)]));}else console[_0xb26ee2(0x236)]('Restore\x20canceled\x20by\x20user.');return!![];}}return![];}}),dropboxBackup['addEventListener']('click',async function(){var _0x14637d=_0x528438;const _0x573644=localStorage[_0x14637d(0x21d)](_0x14637d(0x22c));if(_0x573644===null||_0x573644==='')window[_0x14637d(0x237)]('Cloud\x20login\x20required!');else{const _0x37d96b=['state',_0x14637d(0x212)];let _0x33ec11=0x0;for(const _0x3b04a0 of _0x37d96b){const _0x1212a1=a0_0x540806[_0x14637d(0x1f0)+(_0x3b04a0[_0x14637d(0x220)](0x0)[_0x14637d(0x223)]()+_0x3b04a0['slice'](0x1))]();_0x33ec11+=_0x1212a1[_0x14637d(0x1ec)];}if(window[_0x14637d(0x1fc)](_0x14637d(0x247)+_0x33ec11+_0x14637d(0x1ee)))for(const _0x9cbccb of _0x37d96b){const _0x54509d=a0_0x540806[_0x14637d(0x1f0)+(_0x9cbccb[_0x14637d(0x220)](0x0)[_0x14637d(0x223)]()+_0x9cbccb[_0x14637d(0x1f2)](0x1))]();for(const _0x46a645 of _0x54509d){const _0x2501ca=await a0_0x540806[_0x14637d(0x239)]('/data/'+_0x9cbccb+'s/'+_0x46a645);try{await lockNoti(_0x14637d(0x1df),_0x46a645,0xbb8),await dpUploadFile(_0x46a645,_0x2501ca);if(_0x46a645[_0x14637d(0x205)](_0x14637d(0x23a))||_0x46a645[_0x14637d(0x205)]('.ss1')||_0x46a645[_0x14637d(0x205)](_0x14637d(0x243))||_0x46a645['endsWith'](_0x14637d(0x203))||_0x46a645[_0x14637d(0x205)](_0x14637d(0x20c))||_0x46a645['endsWith'](_0x14637d(0x1f7))||_0x46a645[_0x14637d(0x205)](_0x14637d(0x21e))||_0x46a645[_0x14637d(0x205)](_0x14637d(0x21b))){const _0xcd33e6=_0x46a645[_0x14637d(0x22d)](0x0,_0x46a645[_0x14637d(0x23e)]('.')),_0x34fa38=_0x46a645['charAt'](_0x46a645['length']-0x1),_0x5cc841=localStorage[_0x14637d(0x21d)](_0xcd33e6+_0x14637d(0x1e1)+_0x34fa38),_0x429dd5=localStorage[_0x14637d(0x21d)](_0xcd33e6+'.gba_dateState'+_0x34fa38);if(_0x5cc841!==null){const _0x54dcc3=_0x5cc841+'\x0a\x0a'+_0x429dd5,_0x20173e=new Blob([_0x54dcc3],{'type':_0x14637d(0x1f4)});await lockNoti('Backing\x20up...',_0xcd33e6+'.gba_slot'+_0x34fa38+'.txt',0xbb8),await dpUploadFile(_0xcd33e6+_0x14637d(0x234)+_0x34fa38+_0x14637d(0x215),_0x20173e);}}}catch(_0x2e976d){console[_0x14637d(0x20d)](_0x14637d(0x221)+_0x46a645+':',_0x2e976d);}}}else console['log'](_0x14637d(0x1ff));}}),dropboxCloud[_0x528438(0x209)](_0x528438(0x242),function(){var _0x528282=_0x528438;const _0x2eeb81=localStorage[_0x528282(0x21d)]('uId');_0x2eeb81===null||_0x2eeb81===''?authorizeWithDropbox():window[_0x528282(0x1fc)](_0x528282(0x1e6))&&(localStorage[_0x528282(0x201)](_0x528282(0x22c),''),dropboxRestore[_0x528282(0x1ef)]['remove'](_0x528282(0x202)),dropboxBackup[_0x528282(0x1ef)][_0x528282(0x23b)](_0x528282(0x202)),dropboxCloud[_0x528282(0x1ef)][_0x528282(0x23b)](_0x528282(0x202)));}),handleDropboxCallback();}); \ No newline at end of file diff --git a/docs/src/js/gamepad.js b/docs/src/js/gamepad.js index 8a38eed..8cba4ac 100644 --- a/docs/src/js/gamepad.js +++ b/docs/src/js/gamepad.js @@ -1 +1 @@ -const a0_0x53190f=a0_0x916b;(function(_0x500af3,_0x520376){const _0x32b299=a0_0x916b,_0x47bad5=_0x500af3();while(!![]){try{const _0x5c86e0=parseInt(_0x32b299(0x195))/0x1*(parseInt(_0x32b299(0x16d))/0x2)+-parseInt(_0x32b299(0x180))/0x3*(-parseInt(_0x32b299(0x196))/0x4)+parseInt(_0x32b299(0x168))/0x5+parseInt(_0x32b299(0x18b))/0x6+parseInt(_0x32b299(0x18f))/0x7+parseInt(_0x32b299(0x16b))/0x8+-parseInt(_0x32b299(0x18c))/0x9;if(_0x5c86e0===_0x520376)break;else _0x47bad5['push'](_0x47bad5['shift']());}catch(_0x3b241c){_0x47bad5['push'](_0x47bad5['shift']());}}}(a0_0x9787,0x53f74));import*as a0_0x309d1a from'./main.js';let clickState=0x0,clickTimeout,clickTurbo=0x0,turboState=0x1;const turboButton=document[a0_0x53190f(0x176)](a0_0x53190f(0x18e));function buttonPress(_0x63b404,_0x264669){const _0xb3a09b=a0_0x53190f;if(_0x63b404[_0xb3a09b(0x183)]('-')){const [_0x333f1c,_0x3c8b92]=_0x63b404[_0xb3a09b(0x191)]()['split']('-');_0x264669?a0_0x309d1a['buttonPress'](_0x333f1c):a0_0x309d1a['buttonUnpress'](_0x333f1c),_0x264669?a0_0x309d1a[_0xb3a09b(0x15d)](_0x3c8b92):a0_0x309d1a[_0xb3a09b(0x15b)](_0x3c8b92);}else _0x264669?a0_0x309d1a[_0xb3a09b(0x15d)](_0x63b404[_0xb3a09b(0x191)]()):a0_0x309d1a[_0xb3a09b(0x15b)](_0x63b404[_0xb3a09b(0x191)]());}async function saveState(_0x1b6a79){const _0x201286=a0_0x53190f;await a0_0x309d1a[_0x201286(0x188)](_0x1b6a79),await a0_0x309d1a['screenShot'](_0x1b6a79);}function a0_0x9787(){const _0x5b9ebe=['classList','Left','Down','degree','setItem','dispatchEvent','touched','98865hmlcfS','1x\x20Speed','clientX','1033816ykYPFR','addEventListener','62160KDNAzy','elementFromPoint',']\x20Saved\x20State','touchmove','touchcancel','touchend','forEach','ApiAzure','Right','getElementById','touches','length','turbo-medium','split','add','autoStateCheck','DOMContentLoaded','apiKey,endpoint','slotStateSaved','1647iuAfkr','loadState','Start','includes','angle','log','2x\x20Speed','turboState','saveState','touchstart','remove','1732302rvmGRV','4129479MKbfAN','end','turbo','221473HtUASG','Up-right','toLowerCase','getItem','Down-left','Select','7xVWBeg','844InrUwL','Up-left','4x\x20Speed','buttonUnpress','turbo-fast','buttonPress','mousedown','mouseup','setFastForwardMultiplier'];a0_0x9787=function(){return _0x5b9ebe;};return a0_0x9787();}async function loadState(_0x3f6d85){const _0x533aa4=a0_0x53190f;await a0_0x309d1a[_0x533aa4(0x181)](_0x3f6d85);}function a0_0x916b(_0x1c8837,_0x27ea2c){const _0x97870e=a0_0x9787();return a0_0x916b=function(_0x916bec,_0x13594f){_0x916bec=_0x916bec-0x15a;let _0x5a1f6e=_0x97870e[_0x916bec];return _0x5a1f6e;},a0_0x916b(_0x1c8837,_0x27ea2c);}export async function turboF(_0x18053c){const _0x24651b=a0_0x53190f;if(_0x18053c===0x1)notiMessage(_0x24651b(0x169),0x5dc),turbo[_0x24651b(0x161)][_0x24651b(0x18a)](_0x24651b(0x179)),turbo[_0x24651b(0x161)]['remove'](_0x24651b(0x15c)),a0_0x309d1a[_0x24651b(0x160)](0x1);else{if(_0x18053c===0x2)notiMessage(_0x24651b(0x186),0x5dc),turbo[_0x24651b(0x161)][_0x24651b(0x17b)](_0x24651b(0x179)),turbo['classList']['remove']('turbo-fast'),a0_0x309d1a[_0x24651b(0x160)](0x2);else _0x18053c===0x3&&(notiMessage(_0x24651b(0x15a),0x5dc),turbo[_0x24651b(0x161)][_0x24651b(0x18a)](_0x24651b(0x179)),turbo[_0x24651b(0x161)][_0x24651b(0x17b)]('turbo-fast'),a0_0x309d1a[_0x24651b(0x160)](0x4));}}document['addEventListener'](a0_0x53190f(0x17d),function(){const _0x109e4e=a0_0x53190f;['A','B',_0x109e4e(0x182),_0x109e4e(0x194),'L','R','Up',_0x109e4e(0x163),_0x109e4e(0x162),_0x109e4e(0x175),_0x109e4e(0x197),_0x109e4e(0x190),_0x109e4e(0x193),'Down-right'][_0x109e4e(0x173)](_0x3ad9d0=>{const _0xd50d11=_0x109e4e,_0x486a9a=document[_0xd50d11(0x176)](_0x3ad9d0);let _0x578bde=null;[_0xd50d11(0x15e),_0xd50d11(0x189)][_0xd50d11(0x173)](_0xb44d52=>{const _0x516240=_0xd50d11;_0x486a9a[_0x516240(0x16c)](_0xb44d52,()=>{const _0xce1a03=_0x516240;_0x578bde=_0x486a9a,buttonPress(_0x3ad9d0,!![]),_0x486a9a[_0xce1a03(0x161)]['add']('touched');});}),[_0xd50d11(0x15f),_0xd50d11(0x172),_0xd50d11(0x171)]['forEach'](_0x448b5a=>{const _0x5bd3cd=_0xd50d11;_0x486a9a[_0x5bd3cd(0x16c)](_0x448b5a,()=>{const _0x59bc80=_0x5bd3cd;_0x578bde&&(buttonPress(_0x3ad9d0,![]),_0x578bde=null,_0x486a9a[_0x59bc80(0x161)][_0x59bc80(0x18a)](_0x59bc80(0x167)));});}),_0x486a9a[_0xd50d11(0x16c)](_0xd50d11(0x170),_0x52effd=>{const _0x4fe6f6=_0xd50d11,_0x4a5e94=_0x52effd['touches'][0x0],_0x3c73d9=document[_0x4fe6f6(0x16e)](_0x4a5e94[_0x4fe6f6(0x16a)],_0x4a5e94['clientY']);if(_0x3c73d9!==_0x578bde&&_0x52effd[_0x4fe6f6(0x177)][_0x4fe6f6(0x178)]===0x1){if(_0x578bde){const _0x1bad79=new Event('touchend');_0x578bde[_0x4fe6f6(0x166)](_0x1bad79);}if(_0x3c73d9){const _0x5bb7ca=new Event('touchstart');_0x3c73d9[_0x4fe6f6(0x166)](_0x5bb7ca);}_0x578bde=_0x3c73d9;}}),document[_0xd50d11(0x16c)](_0xd50d11(0x172),_0x16af77=>{const _0x40ce2a=_0xd50d11;if(_0x16af77[_0x40ce2a(0x177)]['length']===0x0){if(_0x578bde){const _0xec5b76=new Event('touchend');_0x578bde[_0x40ce2a(0x166)](_0xec5b76),_0x578bde=null;}}});let _0x2fe1da='';const _0x289651=(_0xc59a31,_0x331157)=>{const _0x5e1dd8=_0xd50d11,_0x46a565=_0xc59a31[_0x5e1dd8(0x17a)]('-');_0x46a565[_0x5e1dd8(0x173)](_0x3fecdd=>{const _0x12eae5=_0x5e1dd8;_0x331157?a0_0x309d1a[_0x12eae5(0x15d)](_0x3fecdd):a0_0x309d1a[_0x12eae5(0x15b)](_0x3fecdd);});};dynamic['on']('move',(_0x46c0b5,_0x7d994d)=>{const _0x57119a=_0xd50d11,_0x321e21=_0x7d994d[_0x57119a(0x184)][_0x57119a(0x164)];let _0xe45f8c='';if(_0x321e21>=337.5||_0x321e21<22.5)_0xe45f8c=_0x57119a(0x175);else{if(_0x321e21>=22.5&&_0x321e21<67.5)_0xe45f8c='Up-right';else{if(_0x321e21>=67.5&&_0x321e21<112.5)_0xe45f8c='Up';else{if(_0x321e21>=112.5&&_0x321e21<157.5)_0xe45f8c=_0x57119a(0x197);else{if(_0x321e21>=157.5&&_0x321e21<202.5)_0xe45f8c=_0x57119a(0x162);else{if(_0x321e21>=202.5&&_0x321e21<247.5)_0xe45f8c=_0x57119a(0x193);else{if(_0x321e21>=247.5&&_0x321e21<292.5)_0xe45f8c=_0x57119a(0x163);else _0x321e21>=292.5&&_0x321e21<337.5&&(_0xe45f8c='Down-right');}}}}}}_0xe45f8c!==_0x2fe1da&&(_0x289651(_0x2fe1da,![]),_0x289651(_0xe45f8c,!![]),_0x2fe1da=_0xe45f8c);}),dynamic['on'](_0xd50d11(0x18d),()=>{_0x289651(_0x2fe1da,![]),_0x2fe1da='';});});}),[a0_0x53190f(0x15f),a0_0x53190f(0x172),'touchcancel']['forEach'](_0x4f4fe5=>{saveStateButton['addEventListener'](_0x4f4fe5,()=>{clickState++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x2d1bf6=a0_0x916b;if(clickState===0x2){const _0x2d54ee=localStorage[_0x2d1bf6(0x192)]('autoStateCheck')||localStorage[_0x2d1bf6(0x165)](_0x2d1bf6(0x17c),'On');if(_0x2d54ee==='On'){const _0x5a8ec2=parseInt(localStorage[_0x2d1bf6(0x192)](_0x2d1bf6(0x17f))%0x7+0x1)||0x1;saveState(_0x5a8ec2),localStorage[_0x2d1bf6(0x165)](_0x2d1bf6(0x17f),_0x5a8ec2),ledSave('#DD5639'),notiMessage('['+_0x5a8ec2+_0x2d1bf6(0x16f),0x7d0),console[_0x2d1bf6(0x185)](localStorage[_0x2d1bf6(0x192)](_0x2d1bf6(0x17c)));}else{const _0x45cf77=parseInt(localStorage['getItem'](_0x2d1bf6(0x17f)))||0x1;console[_0x2d1bf6(0x185)](localStorage['getItem']('autoStateCheck')),saveState(_0x45cf77),localStorage[_0x2d1bf6(0x165)]('slotStateSaved',_0x45cf77),ledSave('#DD5639'),notiMessage('['+_0x45cf77+']\x20Saved\x20State',0x7d0);}}clickState=0x0;},0x12c);}),loadStateButton['addEventListener'](_0x4f4fe5,()=>{clickState++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x5169bd=a0_0x916b;if(clickState===0x2){const _0x56629f=localStorage['getItem'](_0x5169bd(0x17f))||0x1;loadState(_0x56629f),notiMessage('['+_0x56629f+']\x20Loaded\x20State',0x5dc);}else{if(clickState===0x3){let _0x30d05a=localStorage[_0x5169bd(0x192)](_0x5169bd(0x174)),_0xdc5f08=prompt(_0x5169bd(0x17e),_0x30d05a);_0xdc5f08!==null&&_0xdc5f08!==''&&localStorage[_0x5169bd(0x165)](_0x5169bd(0x174),_0xdc5f08);}}clickState=0x0;},0x12c);}),turboButton['addEventListener'](_0x4f4fe5,()=>{clickTurbo++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x35de2f=a0_0x916b;clickTurbo===0x2&&(turboState=turboState%0x3+0x1,turboF(turboState),localStorage[_0x35de2f(0x165)](_0x35de2f(0x187),turboState)),clickTurbo=0x0;},0x12c);});}); \ No newline at end of file +const a0_0x44cbed=a0_0xbd69;(function(_0xd975ad,_0x240b03){const _0x19878c=a0_0xbd69,_0x57460d=_0xd975ad();while(!![]){try{const _0x5a51ba=parseInt(_0x19878c(0x145))/0x1+parseInt(_0x19878c(0x12e))/0x2+-parseInt(_0x19878c(0x141))/0x3+parseInt(_0x19878c(0x12c))/0x4+-parseInt(_0x19878c(0x123))/0x5*(parseInt(_0x19878c(0x126))/0x6)+-parseInt(_0x19878c(0x14d))/0x7+parseInt(_0x19878c(0x142))/0x8*(parseInt(_0x19878c(0x138))/0x9);if(_0x5a51ba===_0x240b03)break;else _0x57460d['push'](_0x57460d['shift']());}catch(_0x2a9e72){_0x57460d['push'](_0x57460d['shift']());}}}(a0_0x2bd3,0x3162a));import*as a0_0x5c609a from'./main.js';let clickState=0x0,clickTimeout,clickTurbo=0x0,turboState=0x1;const turboButton=document['getElementById'](a0_0x44cbed(0x127));function buttonPress(_0x489a03,_0x195c01){const _0x37bfe9=a0_0x44cbed;if(_0x489a03[_0x37bfe9(0x128)]('-')){const [_0x338f56,_0xa68b3e]=_0x489a03[_0x37bfe9(0x12d)]()[_0x37bfe9(0x14c)]('-');_0x195c01?a0_0x5c609a[_0x37bfe9(0x159)](_0x338f56):a0_0x5c609a[_0x37bfe9(0x154)](_0x338f56),_0x195c01?a0_0x5c609a['buttonPress'](_0xa68b3e):a0_0x5c609a[_0x37bfe9(0x154)](_0xa68b3e);}else _0x195c01?a0_0x5c609a['buttonPress'](_0x489a03['toLowerCase']()):a0_0x5c609a[_0x37bfe9(0x154)](_0x489a03[_0x37bfe9(0x12d)]());}function a0_0xbd69(_0x425c72,_0x46a8fc){const _0x2bd3ce=a0_0x2bd3();return a0_0xbd69=function(_0xbd69e8,_0x4b4d91){_0xbd69e8=_0xbd69e8-0x122;let _0x376e41=_0x2bd3ce[_0xbd69e8];return _0x376e41;},a0_0xbd69(_0x425c72,_0x46a8fc);}function a0_0x2bd3(){const _0xa517cf=['loadState','touchstart',']\x20Loaded\x20State','Up-left','90KMFxSB','saveState','turboState','82146GwEOHn','turbo','includes','remove','setItem','elementFromPoint','599448gsERUg','toLowerCase','181174pSufDY','Right','getElementById','Up-right','Start','clientX',']\x20Saved\x20State','forEach','end','apiKey,endpoint','2025BRBAxt','autoStateCheck','clientY','turbo-medium','log','getItem','angle','degree','touches','1081629sjLxmK','26328ejxvXe','touchcancel','ApiAzure','133640UZCzNP','turbo-fast','Down','add','Down-left','screenShot','2x\x20Speed','split','2137107BMBYLF','4x\x20Speed','dispatchEvent','classList','touchend','touched','Left','buttonUnpress','length','slotStateSaved','setFastForwardMultiplier','addEventListener','buttonPress','#DD5639'];a0_0x2bd3=function(){return _0xa517cf;};return a0_0x2bd3();}async function saveState(_0x15b838){const _0x57130e=a0_0x44cbed;await a0_0x5c609a[_0x57130e(0x124)](_0x15b838),await a0_0x5c609a[_0x57130e(0x14a)](_0x15b838);}async function loadState(_0xb881de){const _0x49dcf5=a0_0x44cbed;await a0_0x5c609a[_0x49dcf5(0x15b)](_0xb881de);}export async function turboF(_0x375974){const _0x23f45b=a0_0x44cbed;if(_0x375974===0x1)notiMessage('1x\x20Speed',0x5dc),turbo[_0x23f45b(0x150)][_0x23f45b(0x129)]('turbo-medium'),turbo['classList'][_0x23f45b(0x129)](_0x23f45b(0x146)),a0_0x5c609a[_0x23f45b(0x157)](0x1);else{if(_0x375974===0x2)notiMessage(_0x23f45b(0x14b),0x5dc),turbo[_0x23f45b(0x150)][_0x23f45b(0x148)](_0x23f45b(0x13b)),turbo['classList'][_0x23f45b(0x129)](_0x23f45b(0x146)),a0_0x5c609a[_0x23f45b(0x157)](0x2);else _0x375974===0x3&&(notiMessage(_0x23f45b(0x14e),0x5dc),turbo[_0x23f45b(0x150)]['remove']('turbo-medium'),turbo[_0x23f45b(0x150)]['add'](_0x23f45b(0x146)),a0_0x5c609a[_0x23f45b(0x157)](0x4));}}document[a0_0x44cbed(0x158)]('DOMContentLoaded',function(){const _0x468dbf=a0_0x44cbed;['A','B',_0x468dbf(0x132),'Select','L','R','Up',_0x468dbf(0x147),_0x468dbf(0x153),_0x468dbf(0x12f),_0x468dbf(0x122),_0x468dbf(0x131),'Down-left','Down-right'][_0x468dbf(0x135)](_0x1787bb=>{const _0x519a45=_0x468dbf,_0x194cda=document[_0x519a45(0x130)](_0x1787bb);let _0x4101b8=null;['mousedown',_0x519a45(0x15c)][_0x519a45(0x135)](_0x2748b8=>{const _0x9b4cee=_0x519a45;_0x194cda[_0x9b4cee(0x158)](_0x2748b8,()=>{const _0x47357d=_0x9b4cee;_0x4101b8=_0x194cda,buttonPress(_0x1787bb,!![]),_0x194cda[_0x47357d(0x150)][_0x47357d(0x148)](_0x47357d(0x152));});}),['mouseup',_0x519a45(0x151),_0x519a45(0x143)][_0x519a45(0x135)](_0x377aa6=>{const _0x426c29=_0x519a45;_0x194cda[_0x426c29(0x158)](_0x377aa6,()=>{const _0x36304f=_0x426c29;_0x4101b8&&(buttonPress(_0x1787bb,![]),_0x4101b8=null,_0x194cda[_0x36304f(0x150)][_0x36304f(0x129)](_0x36304f(0x152)));});}),_0x194cda[_0x519a45(0x158)]('touchmove',_0x40af5a=>{const _0x44106a=_0x519a45,_0x4bb697=_0x40af5a[_0x44106a(0x140)][0x0],_0x73b1fa=document[_0x44106a(0x12b)](_0x4bb697[_0x44106a(0x133)],_0x4bb697[_0x44106a(0x13a)]);if(_0x73b1fa!==_0x4101b8&&_0x40af5a[_0x44106a(0x140)][_0x44106a(0x155)]===0x1){if(_0x4101b8){const _0x513128=new Event(_0x44106a(0x151));_0x4101b8[_0x44106a(0x14f)](_0x513128);}if(_0x73b1fa){const _0x5e5091=new Event(_0x44106a(0x15c));_0x73b1fa['dispatchEvent'](_0x5e5091);}_0x4101b8=_0x73b1fa;}}),document['addEventListener'](_0x519a45(0x151),_0x56b1f9=>{const _0x23a1b0=_0x519a45;if(_0x56b1f9[_0x23a1b0(0x140)][_0x23a1b0(0x155)]===0x0){if(_0x4101b8){const _0x5a9256=new Event(_0x23a1b0(0x151));_0x4101b8[_0x23a1b0(0x14f)](_0x5a9256),_0x4101b8=null;}}});let _0x346dee='';const _0xa9d88=(_0x6710fe,_0x2fce57)=>{const _0x8418fc=_0x519a45,_0x20fa76=_0x6710fe[_0x8418fc(0x14c)]('-');_0x20fa76[_0x8418fc(0x135)](_0x268659=>{const _0x5a75d5=_0x8418fc;_0x2fce57?a0_0x5c609a[_0x5a75d5(0x159)](_0x268659):a0_0x5c609a[_0x5a75d5(0x154)](_0x268659);});};dynamic['on']('move',(_0x44db86,_0x2991db)=>{const _0x37cad8=_0x519a45,_0x50a26d=_0x2991db[_0x37cad8(0x13e)][_0x37cad8(0x13f)];let _0x1bfea8='';if(_0x50a26d>=337.5||_0x50a26d<22.5)_0x1bfea8=_0x37cad8(0x12f);else{if(_0x50a26d>=22.5&&_0x50a26d<67.5)_0x1bfea8=_0x37cad8(0x131);else{if(_0x50a26d>=67.5&&_0x50a26d<112.5)_0x1bfea8='Up';else{if(_0x50a26d>=112.5&&_0x50a26d<157.5)_0x1bfea8='Up-left';else{if(_0x50a26d>=157.5&&_0x50a26d<202.5)_0x1bfea8=_0x37cad8(0x153);else{if(_0x50a26d>=202.5&&_0x50a26d<247.5)_0x1bfea8=_0x37cad8(0x149);else{if(_0x50a26d>=247.5&&_0x50a26d<292.5)_0x1bfea8=_0x37cad8(0x147);else _0x50a26d>=292.5&&_0x50a26d<337.5&&(_0x1bfea8='Down-right');}}}}}}_0x1bfea8!==_0x346dee&&(_0xa9d88(_0x346dee,![]),_0xa9d88(_0x1bfea8,!![]),_0x346dee=_0x1bfea8);}),dynamic['on'](_0x519a45(0x136),()=>{_0xa9d88(_0x346dee,![]),_0x346dee='';});});}),['mouseup',a0_0x44cbed(0x151),a0_0x44cbed(0x143)][a0_0x44cbed(0x135)](_0x1a1547=>{const _0x30af40=a0_0x44cbed;saveStateButton[_0x30af40(0x158)](_0x1a1547,()=>{clickState++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x5820b8=a0_0xbd69;if(clickState===0x2){const _0x15510c=localStorage[_0x5820b8(0x13d)](_0x5820b8(0x139))||localStorage['setItem']('autoStateCheck','On');if(_0x15510c==='On'){const _0x50f7d2=parseInt(localStorage[_0x5820b8(0x13d)](_0x5820b8(0x156))%0x7+0x1)||0x1;saveState(_0x50f7d2),localStorage[_0x5820b8(0x12a)](_0x5820b8(0x156),_0x50f7d2),ledSave(_0x5820b8(0x15a)),notiMessage('['+_0x50f7d2+']\x20Saved\x20State',0x7d0),console['log'](localStorage[_0x5820b8(0x13d)](_0x5820b8(0x139)));}else{const _0x41d612=parseInt(localStorage[_0x5820b8(0x13d)]('slotStateSaved'))||0x1;console[_0x5820b8(0x13c)](localStorage['getItem'](_0x5820b8(0x139))),saveState(_0x41d612),localStorage[_0x5820b8(0x12a)](_0x5820b8(0x156),_0x41d612),ledSave('#DD5639'),notiMessage('['+_0x41d612+_0x5820b8(0x134),0x7d0);}}clickState=0x0;},0x12c);}),loadStateButton['addEventListener'](_0x1a1547,()=>{clickState++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0xd10a9=a0_0xbd69;if(clickState===0x2){const _0x35d962=localStorage[_0xd10a9(0x13d)](_0xd10a9(0x156))||0x1;loadState(_0x35d962),notiMessage('['+_0x35d962+_0xd10a9(0x15d),0x5dc);}else{if(clickState===0x3){let _0x24314c=localStorage[_0xd10a9(0x13d)](_0xd10a9(0x144)),_0x8565f4=prompt(_0xd10a9(0x137),_0x24314c);_0x8565f4!==null&&_0x8565f4!==''&&localStorage['setItem'](_0xd10a9(0x144),_0x8565f4);}}clickState=0x0;},0x12c);}),turboButton[_0x30af40(0x158)](_0x1a1547,()=>{clickTurbo++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x3721d2=a0_0xbd69;clickTurbo===0x2&&(turboState=turboState%0x3+0x1,turboF(turboState),localStorage[_0x3721d2(0x12a)](_0x3721d2(0x125),turboState)),clickTurbo=0x0;},0x12c);});}); \ No newline at end of file diff --git a/docs/src/js/global.js b/docs/src/js/global.js index 6f2b75b..1653d6e 100644 --- a/docs/src/js/global.js +++ b/docs/src/js/global.js @@ -1 +1 @@ -const a0_0x19d326=a0_0xf44b;(function(_0x33d314,_0x4e1f37){const _0x3d36e7=a0_0xf44b,_0x82f272=_0x33d314();while(!![]){try{const _0x4052ca=parseInt(_0x3d36e7(0x204))/0x1+-parseInt(_0x3d36e7(0x1fd))/0x2*(parseInt(_0x3d36e7(0x1ce))/0x3)+parseInt(_0x3d36e7(0x20b))/0x4+-parseInt(_0x3d36e7(0x21e))/0x5*(-parseInt(_0x3d36e7(0x1be))/0x6)+-parseInt(_0x3d36e7(0x1f4))/0x7*(parseInt(_0x3d36e7(0x22c))/0x8)+parseInt(_0x3d36e7(0x1f2))/0x9+parseInt(_0x3d36e7(0x1e5))/0xa*(parseInt(_0x3d36e7(0x1dd))/0xb);if(_0x4052ca===_0x4e1f37)break;else _0x82f272['push'](_0x82f272['shift']());}catch(_0x5326a7){_0x82f272['push'](_0x82f272['shift']());}}}(a0_0x54c6,0x77a0b),appVer[a0_0x19d326(0x1db)]=gameVer);var messageTimeout;let stateAdj=0x1;function a0_0xf44b(_0xaef7cf,_0x36663c){const _0x54c6a7=a0_0x54c6();return a0_0xf44b=function(_0xf44b90,_0x1fce4f){_0xf44b90=_0xf44b90-0x1b7;let _0x272eff=_0x54c6a7[_0xf44b90];return _0x272eff;},a0_0xf44b(_0xaef7cf,_0x36663c);}function a0_0x54c6(){const _0x47fe1b=['.target-boxes','transform','fill','touchstart','led0','preventDefault','lastIndexOf','resizable-draggable','px,\x20','top','led01','dynamic','66RjhGMT','onerror','180px','60px','modifiers','map','restrictEdges','rect','0.4','led06','stateDiv07','translate(','stateDiv04','px)','parent','scrollTop','5880jGRDYJ','length','stateAdj','color','setItem','rgba(245,\x20232,\x20209,\x200.4)','\x0a---\x0a','touched','addEventListener','data-x','log','0px','forEach','textContent','toFixed','393305dyTOlz','GOpacity','rect3','paddingTop','stateDiv01','click','innerText','getDate','40KTfyyd','ontouchstart','rectOpacity','setAdjustment','screenSize','left','substring','padding-top','led07','led00','restrictSize','visible','Error\x20Led:','1145322BcREUd','stateDiv05','7iahkOC','style','gameName','#2F2F2F','led04','event.stopPropagation()','touched-1','upLoadFile','rect1','686hNWgdM','getItem','in-game','inputText','led03','getHours','backToHome','910249HuJQSU','slotStateSaved','deltaRect','[Err]\x20[','stateDiv02','errorLog','remove','250640QkWlYn','pop','scrollHeight','readAsDataURL','getAttribute','onloadend','setAttribute','stateDiv03','height','replace','getMonth','add','error','Error\x20ledSave:','led02','notiDetail','padStart',']\x20../','led05','14955SycmzF','width','result','unknown\x20source','saveStateButton','classList','setProperty','data-y','opacity','loadStateButton','DOMContentLoaded','querySelectorAll','image/png','getElementById','910504SvIqEs','_setArea'];a0_0x54c6=function(){return _0x47fe1b;};return a0_0x54c6();}var lockNotiTime;let opacity=parseFloat(localStorage[a0_0x19d326(0x1fe)]('opacity'))||0.1;const errorLogElements=document['getElementsByClassName'](a0_0x19d326(0x209)),ingame=document[a0_0x19d326(0x22b)](a0_0x19d326(0x1ff)),input=document['getElementById'](a0_0x19d326(0x200)),setAdjustment=document['getElementById'](a0_0x19d326(0x1e8)),savedStateAdj=localStorage['getItem'](a0_0x19d326(0x1d0)),ids=[a0_0x19d326(0x200),'stateDiv00',a0_0x19d326(0x1e1),a0_0x19d326(0x208),a0_0x19d326(0x212),a0_0x19d326(0x1ca),a0_0x19d326(0x1f3),'stateDiv06',a0_0x19d326(0x1c8)],touchedID=[a0_0x19d326(0x222),'loadStateButton','openLocalStorage',a0_0x19d326(0x1fb),a0_0x19d326(0x203),''];var dynamicZone=document['getElementById'](a0_0x19d326(0x1bd)),nippleOptions={'zone':dynamicZone,'color':a0_0x19d326(0x1f7),'size':0x78},dynamic=nipplejs['create'](nippleOptions);function positionAdjustment(_0x543ee0){const _0x544f45=a0_0x19d326,_0x461057=[{'paddingTop':_0x544f45(0x1d9),'rectOpacity':[0x1,0x1,0x1],'GOpacity':[0x0,0x0,0x0,0x1]},{'paddingTop':_0x544f45(0x1c1),'rectOpacity':[0.4,0x1,0x1],'GOpacity':[0x0,0x0,0x1,0x0]},{'paddingTop':'120px','rectOpacity':[0.4,0.4,0x1],'GOpacity':[0x0,0x1,0x0,0x0]},{'paddingTop':_0x544f45(0x1c0),'rectOpacity':[0.4,0.4,0.4],'GOpacity':[0x1,0x0,0x0,0x0]}];if(_0x543ee0>=0x1&&_0x543ee0<=0x4){const _0xdcabe0=_0x461057[_0x543ee0-0x1];document[_0x544f45(0x229)](_0x544f45(0x22e))[_0x544f45(0x1da)](function(_0x287cd8,_0x58fa08){const _0x536804=_0x544f45;_0x287cd8[_0x536804(0x1f5)][_0x536804(0x224)](_0x536804(0x1ec),_0xdcabe0[_0x536804(0x1e0)]);}),document[_0x544f45(0x22b)](_0x544f45(0x1fc))[_0x544f45(0x1f5)][_0x544f45(0x224)](_0x544f45(0x226),_0xdcabe0[_0x544f45(0x1e7)][0x0]),document[_0x544f45(0x22b)]('rect2')[_0x544f45(0x1f5)][_0x544f45(0x224)](_0x544f45(0x226),_0xdcabe0[_0x544f45(0x1e7)][0x1]),document[_0x544f45(0x22b)](_0x544f45(0x1df))['style'][_0x544f45(0x224)](_0x544f45(0x226),_0xdcabe0[_0x544f45(0x1e7)][0x2]);for(let _0x3b2f3a=0x0;_0x3b2f3a<0x4;_0x3b2f3a++){document['getElementById']('G'+_0x3b2f3a)[_0x544f45(0x1f5)][_0x544f45(0x224)](_0x544f45(0x226),_0xdcabe0[_0x544f45(0x1de)][_0x3b2f3a]);}}}ingame[a0_0x19d326(0x1e6)]=_0x4ab843=>{const _0x3dfbc6=a0_0x19d326;_0x4ab843[_0x3dfbc6(0x1b7)]();},setAdjustment['addEventListener'](a0_0x19d326(0x1e2),function(){const _0x3bd5eb=a0_0x19d326;stateAdj=stateAdj%0x4+0x1,positionAdjustment(stateAdj),localStorage[_0x3bd5eb(0x1d2)](_0x3bd5eb(0x1d0),stateAdj);}),ids['forEach'](function(_0x52b8d1){const _0x324060=a0_0x19d326;var _0x109da2=document['getElementById'](_0x52b8d1);_0x109da2&&_0x109da2['setAttribute'](_0x324060(0x1e6),_0x324060(0x1f9));}),touchedID['forEach'](function(_0x96e6c7){const _0x3aab5f=a0_0x19d326,_0x2b01f3=document[_0x3aab5f(0x22b)](_0x96e6c7);_0x2b01f3&&(_0x96e6c7===_0x3aab5f(0x222)||_0x96e6c7===_0x3aab5f(0x227)?(_0x2b01f3[_0x3aab5f(0x1d6)]('touchstart',function(){const _0x309149=_0x3aab5f;_0x2b01f3[_0x309149(0x223)][_0x309149(0x216)](_0x309149(0x1fa));}),_0x2b01f3['addEventListener']('touchend',function(){const _0x1c9635=_0x3aab5f;_0x2b01f3[_0x1c9635(0x223)][_0x1c9635(0x20a)]('touched-1');})):(_0x2b01f3[_0x3aab5f(0x1d6)](_0x3aab5f(0x231),function(){const _0x1660b6=_0x3aab5f;_0x2b01f3[_0x1660b6(0x223)]['add'](_0x1660b6(0x1d5));}),_0x2b01f3[_0x3aab5f(0x1d6)]('touchend',function(){const _0x16b25e=_0x3aab5f;_0x2b01f3['classList'][_0x16b25e(0x20a)](_0x16b25e(0x1d5));})));}),interact('#resizable-draggable')['resizable']({'edges':{'top':!![],'left':!![],'right':!![],'bottom':!![]},'modifiers':[interact[a0_0x19d326(0x1c2)][a0_0x19d326(0x1c4)]({'outer':a0_0x19d326(0x1cc)}),interact['modifiers'][a0_0x19d326(0x1ef)]({'min':{'width':0x32,'height':0x14}})],'listeners':{'move'(_0x4464c9){const _0x2ddbfd=a0_0x19d326,_0x170caf=_0x4464c9['target'],_0x5da700=(parseFloat(_0x170caf['getAttribute'](_0x2ddbfd(0x1d7)))||0x0)+_0x4464c9[_0x2ddbfd(0x206)][_0x2ddbfd(0x1ea)],_0x1e1a0e=(parseFloat(_0x170caf[_0x2ddbfd(0x20f)](_0x2ddbfd(0x225)))||0x0)+_0x4464c9['deltaRect'][_0x2ddbfd(0x1bb)];_0x170caf[_0x2ddbfd(0x1f5)]['width']=_0x4464c9[_0x2ddbfd(0x1c5)][_0x2ddbfd(0x21f)]+'px',_0x170caf[_0x2ddbfd(0x1f5)]['height']=_0x4464c9[_0x2ddbfd(0x1c5)][_0x2ddbfd(0x213)]+'px',_0x170caf[_0x2ddbfd(0x1f5)][_0x2ddbfd(0x22f)]=_0x2ddbfd(0x1c9)+_0x5da700+_0x2ddbfd(0x1ba)+_0x1e1a0e+'px)',_0x170caf[_0x2ddbfd(0x211)]('data-x',_0x5da700),_0x170caf[_0x2ddbfd(0x211)]('data-y',_0x1e1a0e);const _0x5dd59f=localStorage[_0x2ddbfd(0x1fe)]('gameName');localStorage[_0x2ddbfd(0x1d2)](_0x5dd59f+_0x2ddbfd(0x22d),_0x5da700[_0x2ddbfd(0x1dc)](0x0)+','+_0x1e1a0e[_0x2ddbfd(0x1dc)](0x0)+','+_0x4464c9[_0x2ddbfd(0x1c5)][_0x2ddbfd(0x21f)][_0x2ddbfd(0x1dc)](0x0)+','+_0x4464c9[_0x2ddbfd(0x1c5)][_0x2ddbfd(0x213)][_0x2ddbfd(0x1dc)](0x0)),console[_0x2ddbfd(0x1d8)](localStorage[_0x2ddbfd(0x1fe)](_0x5dd59f+'_setArea'));}}});function restoreArea(){const _0x511b94=a0_0x19d326,_0x5e3c5b=localStorage['getItem'](_0x511b94(0x1f6)),_0x395e0a=localStorage[_0x511b94(0x1fe)](_0x5e3c5b+_0x511b94(0x22d))||localStorage[_0x511b94(0x1fe)](_0x511b94(0x1e9));if(_0x395e0a){const [_0x53ca49,_0x23bf81,_0xa8ab2c,_0x269fb4]=_0x395e0a['split'](',')[_0x511b94(0x1c3)](Number),_0x1bc39c=document[_0x511b94(0x22b)](_0x511b94(0x1b9));_0x1bc39c[_0x511b94(0x1f5)][_0x511b94(0x21f)]=_0xa8ab2c+'px',_0x1bc39c[_0x511b94(0x1f5)][_0x511b94(0x213)]=_0x269fb4+'px',_0x1bc39c[_0x511b94(0x1f5)][_0x511b94(0x22f)]=_0x511b94(0x1c9)+_0x53ca49+_0x511b94(0x1ba)+_0x23bf81+_0x511b94(0x1cb),_0x1bc39c['setAttribute'](_0x511b94(0x1d7),_0x53ca49),_0x1bc39c[_0x511b94(0x211)](_0x511b94(0x225),_0x23bf81);}}async function delay(_0x41a1a7){return new Promise(_0x15b8ae=>setTimeout(_0x15b8ae,_0x41a1a7));}async function notiMessage(_0x1681b1,_0x624f98){const _0x11395b=a0_0x19d326;var _0x20e8b8=document[_0x11395b(0x22b)]('noti-mess');const _0x1c85ae=parseInt(localStorage[_0x11395b(0x1fe)]('slotStateSaved'))||'0',_0xcf906a=localStorage[_0x11395b(0x1fe)](_0x11395b(0x1f6));_0x20e8b8[_0x11395b(0x1f5)]['opacity']==='0.4'&&(clearTimeout(messageTimeout),_0x20e8b8[_0x11395b(0x1f5)][_0x11395b(0x226)]='0'),_0x20e8b8[_0x11395b(0x1db)]=_0x1681b1,_0x20e8b8[_0x11395b(0x1f5)]['opacity']=_0x11395b(0x1c6),messageTimeout=setTimeout(()=>{const _0x3ae0d3=_0x11395b;_0x20e8b8[_0x3ae0d3(0x1db)]='['+_0x1c85ae+']\x20'+_0xcf906a[_0x3ae0d3(0x1eb)](0x0,_0xcf906a[_0x3ae0d3(0x1b8)]('.')),_0x20e8b8['style'][_0x3ae0d3(0x226)]=_0x3ae0d3(0x1c6);},_0x624f98);}async function ledSave(_0x2bfe16){const _0x1ffed3=a0_0x19d326,_0x550cd3=parseInt(localStorage[_0x1ffed3(0x1fe)](_0x1ffed3(0x205))),_0x4356db=_0x550cd3===0x1?_0x1ffed3(0x1bc):_0x550cd3===0x2?_0x1ffed3(0x219):_0x550cd3===0x3?_0x1ffed3(0x201):_0x550cd3===0x4?_0x1ffed3(0x1f8):_0x550cd3===0x5?_0x1ffed3(0x21d):_0x550cd3===0x6?_0x1ffed3(0x1c7):_0x550cd3===0x7?'led07':_0x1ffed3(0x1ee);try{for(let _0x25fe3d=0x0;_0x25fe3d<=0x7;_0x25fe3d++){document[_0x1ffed3(0x22b)](_0x1ffed3(0x232)+_0x25fe3d)[_0x1ffed3(0x1f5)]['fill']='rgba(245,\x20232,\x20209,\x200.4)';}await delay(0x3e8);for(let _0xdc6f41=0x0;_0xdc6f41<=0x7;_0xdc6f41++){document[_0x1ffed3(0x22b)](_0x1ffed3(0x232)+_0xdc6f41)[_0x1ffed3(0x1f5)][_0x1ffed3(0x230)]=_0x1ffed3(0x1d3);}document[_0x1ffed3(0x22b)](_0x4356db)['style'][_0x1ffed3(0x230)]=_0x2bfe16;}catch(_0x54ccb8){console['error'](_0x1ffed3(0x218),_0x54ccb8);}};async function led(_0x34f5f2){const _0x593929=a0_0x19d326;try{const _0x131561=[{'id':_0x593929(0x1ee),'color':_0x593929(0x1d3)},{'id':_0x593929(0x1bc),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x593929(0x219),'color':_0x593929(0x1d3)},{'id':_0x593929(0x201),'color':_0x593929(0x1d3)},{'id':_0x593929(0x1f8),'color':_0x593929(0x1d3)},{'id':_0x593929(0x21d),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x593929(0x1c7),'color':_0x593929(0x1d3)},{'id':_0x593929(0x1ed),'color':_0x593929(0x1d3)}];if(_0x34f5f2>=0x0&&_0x34f5f2<_0x131561[_0x593929(0x1cf)]){const _0x5b6de5='#20A5A6';_0x131561['forEach']((_0x54fa94,_0x34e212)=>{const _0x353f3f=_0x593929;document['getElementById'](_0x54fa94['id'])[_0x353f3f(0x1f5)][_0x353f3f(0x230)]=_0x34e212===_0x34f5f2?_0x5b6de5:_0x54fa94[_0x353f3f(0x1d1)];});}}catch(_0x4972e2){console[_0x593929(0x217)](_0x593929(0x1f1),_0x4972e2);}}function formatDateTime(_0x4f40dd){const _0x295a52=a0_0x19d326,_0x4b7a85=new Date(_0x4f40dd),_0x2a983d=String(_0x4b7a85[_0x295a52(0x202)]())['padStart'](0x2,'0'),_0x4b568c=String(_0x4b7a85['getMinutes']())[_0x295a52(0x21b)](0x2,'0'),_0x41ac2f=_0x4b7a85[_0x295a52(0x1e4)](),_0x56ef73=_0x4b7a85[_0x295a52(0x215)]()+0x1;return _0x2a983d+':'+_0x4b568c+'\x20'+_0x41ac2f+'.'+_0x56ef73;}async function fileToBase64(_0x30effb){const _0x11cf20=a0_0x19d326,_0x58d6f6=new Blob([_0x30effb],{'type':_0x11cf20(0x22a)}),_0xbc6f06=await new Promise((_0x189119,_0xf58ed6)=>{const _0x302456=_0x11cf20,_0x243e77=new FileReader();_0x243e77[_0x302456(0x210)]=()=>{const _0x225e12=_0x302456;_0x189119(_0x243e77[_0x225e12(0x220)]);},_0x243e77[_0x302456(0x1bf)]=_0xf58ed6,_0x243e77[_0x302456(0x20e)](_0x58d6f6);});return _0xbc6f06;}async function lockNoti(_0x2b7425,_0x585ab1,_0x2d06dc){const _0x474bea=a0_0x19d326,_0x5ebedd=document['getElementById']('lockNoti'),_0x2b3905=document[_0x474bea(0x22b)]('notiTitle'),_0x197e2c=document[_0x474bea(0x22b)](_0x474bea(0x21a));lockNotiTime&&clearTimeout(lockNotiTime),_0x2b3905[_0x474bea(0x1db)]=_0x2b7425,_0x197e2c['textContent']=_0x585ab1,_0x5ebedd['classList'][_0x474bea(0x20a)](_0x474bea(0x1f0)),lockNotiTime=setTimeout(()=>{const _0x54e617=_0x474bea;_0x5ebedd[_0x54e617(0x223)]['add'](_0x54e617(0x1f0));},_0x2d06dc);}function logError(_0x5697de){const _0x708ac1=a0_0x19d326;if(errorLogElements[_0x708ac1(0x1cf)]>0x0){const _0x2bb553=errorLogElements[0x0];_0x2bb553[_0x708ac1(0x1e3)]+=_0x5697de+_0x708ac1(0x1d4),_0x2bb553[_0x708ac1(0x1cd)]=_0x2bb553[_0x708ac1(0x20d)];}}window['onerror']=function(_0x49b170,_0x2c5c1e,_0x2dde71){const _0x4f9f8d=a0_0x19d326,_0x547238=_0x2c5c1e?_0x2c5c1e['split']('/')[_0x4f9f8d(0x20c)]():_0x4f9f8d(0x221),_0x4982a2=_0x49b170[_0x4f9f8d(0x214)](/^(Uncaught\s(?:ReferenceError|Error|TypeError|SyntaxError|RangeError):?\s*)/i,''),_0x3872ef=_0x4f9f8d(0x207)+_0x2dde71+_0x4f9f8d(0x21c)+_0x547238+'\x20|\x20'+_0x4982a2+'.';return logError(_0x3872ef),![];},document[a0_0x19d326(0x1d6)](a0_0x19d326(0x228),function(){savedStateAdj!==null&&(stateAdj=parseInt(savedStateAdj),positionAdjustment(stateAdj));}); \ No newline at end of file +const a0_0x3c934c=a0_0x4b7a;(function(_0x549251,_0x1f4e78){const _0x3fd24a=a0_0x4b7a,_0x3bcedf=_0x549251();while(!![]){try{const _0x49485a=parseInt(_0x3fd24a(0x19b))/0x1*(-parseInt(_0x3fd24a(0x1ad))/0x2)+parseInt(_0x3fd24a(0x1e6))/0x3+-parseInt(_0x3fd24a(0x1c5))/0x4*(parseInt(_0x3fd24a(0x1cb))/0x5)+parseInt(_0x3fd24a(0x1a7))/0x6+parseInt(_0x3fd24a(0x1dd))/0x7+parseInt(_0x3fd24a(0x1cc))/0x8*(-parseInt(_0x3fd24a(0x1eb))/0x9)+parseInt(_0x3fd24a(0x1d0))/0xa;if(_0x49485a===_0x1f4e78)break;else _0x3bcedf['push'](_0x3bcedf['shift']());}catch(_0x50c0f3){_0x3bcedf['push'](_0x3bcedf['shift']());}}}(a0_0x7487,0x26e32),appVer[a0_0x3c934c(0x1b0)]=gameVer);var messageTimeout;let stateAdj=0x1;var lockNotiTime;let opacity=parseFloat(localStorage[a0_0x3c934c(0x1d9)](a0_0x3c934c(0x196)))||0.1;const errorLogElements=document[a0_0x3c934c(0x1aa)](a0_0x3c934c(0x1d7)),ingame=document[a0_0x3c934c(0x1d6)](a0_0x3c934c(0x1b1)),input=document[a0_0x3c934c(0x1d6)](a0_0x3c934c(0x1da)),setAdjustment=document[a0_0x3c934c(0x1d6)]('setAdjustment'),savedStateAdj=localStorage['getItem'](a0_0x3c934c(0x18a)),ids=[a0_0x3c934c(0x1da),a0_0x3c934c(0x1ce),'stateDiv01',a0_0x3c934c(0x18d),'stateDiv03',a0_0x3c934c(0x195),a0_0x3c934c(0x1e8),a0_0x3c934c(0x1c9),'stateDiv07'],touchedID=[a0_0x3c934c(0x1ee),a0_0x3c934c(0x191),a0_0x3c934c(0x19e),'upLoadFile','backToHome',''];var dynamicZone=document[a0_0x3c934c(0x1d6)](a0_0x3c934c(0x1a2)),nippleOptions={'zone':dynamicZone,'color':a0_0x3c934c(0x1d2),'size':0x78},dynamic=nipplejs['create'](nippleOptions);function positionAdjustment(_0x5282bc){const _0x29828c=a0_0x3c934c,_0x3173b6=[{'paddingTop':'0px','rectOpacity':[0x1,0x1,0x1],'GOpacity':[0x0,0x0,0x0,0x1]},{'paddingTop':_0x29828c(0x1a0),'rectOpacity':[0.4,0x1,0x1],'GOpacity':[0x0,0x0,0x1,0x0]},{'paddingTop':_0x29828c(0x1ef),'rectOpacity':[0.4,0.4,0x1],'GOpacity':[0x0,0x1,0x0,0x0]},{'paddingTop':_0x29828c(0x18b),'rectOpacity':[0.4,0.4,0.4],'GOpacity':[0x1,0x0,0x0,0x0]}];if(_0x5282bc>=0x1&&_0x5282bc<=0x4){const _0x4b9c17=_0x3173b6[_0x5282bc-0x1];document[_0x29828c(0x1b5)](_0x29828c(0x1e1))[_0x29828c(0x19c)](function(_0x212193,_0x2a9647){const _0x41ec60=_0x29828c;_0x212193[_0x41ec60(0x17f)]['setProperty'](_0x41ec60(0x1dc),_0x4b9c17['paddingTop']);}),document[_0x29828c(0x1d6)]('rect1')[_0x29828c(0x17f)][_0x29828c(0x1a1)](_0x29828c(0x196),_0x4b9c17['rectOpacity'][0x0]),document[_0x29828c(0x1d6)](_0x29828c(0x1b6))[_0x29828c(0x17f)]['setProperty'](_0x29828c(0x196),_0x4b9c17[_0x29828c(0x1b9)][0x1]),document[_0x29828c(0x1d6)]('rect3')[_0x29828c(0x17f)][_0x29828c(0x1a1)](_0x29828c(0x196),_0x4b9c17['rectOpacity'][0x2]);for(let _0xde3954=0x0;_0xde3954<0x4;_0xde3954++){document['getElementById']('G'+_0xde3954)[_0x29828c(0x17f)][_0x29828c(0x1a1)](_0x29828c(0x196),_0x4b9c17[_0x29828c(0x1c3)][_0xde3954]);}}}ingame[a0_0x3c934c(0x182)]=_0x1dd461=>{const _0x10312b=a0_0x3c934c;_0x1dd461[_0x10312b(0x1c8)]();},setAdjustment[a0_0x3c934c(0x18e)](a0_0x3c934c(0x183),function(){const _0x1a0c02=a0_0x3c934c;stateAdj=stateAdj%0x4+0x1,positionAdjustment(stateAdj),localStorage[_0x1a0c02(0x1de)](_0x1a0c02(0x18a),stateAdj);}),ids['forEach'](function(_0x458ebe){const _0x1d6e63=a0_0x3c934c;var _0x523d7d=document[_0x1d6e63(0x1d6)](_0x458ebe);_0x523d7d&&_0x523d7d[_0x1d6e63(0x180)]('ontouchstart','event.stopPropagation()');}),touchedID['forEach'](function(_0x2dff30){const _0x3409d3=a0_0x3c934c,_0x2a02eb=document[_0x3409d3(0x1d6)](_0x2dff30);_0x2a02eb&&(_0x2dff30==='saveStateButton'||_0x2dff30==='loadStateButton'?(_0x2a02eb[_0x3409d3(0x18e)](_0x3409d3(0x1ae),function(){const _0x7b6604=_0x3409d3;_0x2a02eb[_0x7b6604(0x19d)][_0x7b6604(0x1ca)]('touched-1');}),_0x2a02eb[_0x3409d3(0x18e)](_0x3409d3(0x1d1),function(){const _0x1245d1=_0x3409d3;_0x2a02eb[_0x1245d1(0x19d)][_0x1245d1(0x1c6)](_0x1245d1(0x198));})):(_0x2a02eb[_0x3409d3(0x18e)](_0x3409d3(0x1ae),function(){const _0x5209f4=_0x3409d3;_0x2a02eb[_0x5209f4(0x19d)][_0x5209f4(0x1ca)]('touched');}),_0x2a02eb['addEventListener'](_0x3409d3(0x1d1),function(){const _0x2cdac1=_0x3409d3;_0x2a02eb['classList'][_0x2cdac1(0x1c6)]('touched');})));}),interact('#resizable-draggable')['resizable']({'edges':{'top':!![],'left':!![],'right':!![],'bottom':!![]},'modifiers':[interact[a0_0x3c934c(0x1b2)][a0_0x3c934c(0x1c4)]({'outer':a0_0x3c934c(0x1b4)}),interact[a0_0x3c934c(0x1b2)]['restrictSize']({'min':{'width':0x32,'height':0x14}})],'listeners':{'move'(_0x421c51){const _0x4872f3=a0_0x3c934c,_0x585f21=_0x421c51[_0x4872f3(0x1be)],_0x5a9c1d=(parseFloat(_0x585f21[_0x4872f3(0x1a4)](_0x4872f3(0x1e0)))||0x0)+_0x421c51[_0x4872f3(0x197)][_0x4872f3(0x1bf)],_0x2dc0e7=(parseFloat(_0x585f21[_0x4872f3(0x1a4)](_0x4872f3(0x1bb)))||0x0)+_0x421c51['deltaRect'][_0x4872f3(0x1ea)];_0x585f21[_0x4872f3(0x17f)][_0x4872f3(0x1db)]=_0x421c51[_0x4872f3(0x1ab)][_0x4872f3(0x1db)]+'px',_0x585f21['style'][_0x4872f3(0x1c1)]=_0x421c51['rect'][_0x4872f3(0x1c1)]+'px',_0x585f21[_0x4872f3(0x17f)][_0x4872f3(0x1ec)]='translate('+_0x5a9c1d+'px,\x20'+_0x2dc0e7+_0x4872f3(0x1e4),_0x585f21[_0x4872f3(0x180)](_0x4872f3(0x1e0),_0x5a9c1d),_0x585f21[_0x4872f3(0x180)](_0x4872f3(0x1bb),_0x2dc0e7);const _0x53c794=localStorage['getItem'](_0x4872f3(0x1a3));localStorage[_0x4872f3(0x1de)](_0x53c794+_0x4872f3(0x1b8),_0x5a9c1d[_0x4872f3(0x199)](0x0)+','+_0x2dc0e7[_0x4872f3(0x199)](0x0)+','+_0x421c51[_0x4872f3(0x1ab)][_0x4872f3(0x1db)][_0x4872f3(0x199)](0x0)+','+_0x421c51[_0x4872f3(0x1ab)]['height'][_0x4872f3(0x199)](0x0)),console[_0x4872f3(0x185)](localStorage['getItem'](_0x53c794+_0x4872f3(0x1b8)));}}});function restoreArea(){const _0x335d53=a0_0x3c934c,_0xdf1641=localStorage[_0x335d53(0x1d9)]('gameName'),_0x5606c1=localStorage['getItem'](_0xdf1641+_0x335d53(0x1b8))||localStorage[_0x335d53(0x1d9)]('screenSize');if(_0x5606c1){const [_0x42e928,_0x5f4811,_0x385796,_0x45311f]=_0x5606c1[_0x335d53(0x190)](',')[_0x335d53(0x1b3)](Number),_0x38ed7a=document[_0x335d53(0x1d6)](_0x335d53(0x1cf));_0x38ed7a[_0x335d53(0x17f)][_0x335d53(0x1db)]=_0x385796+'px',_0x38ed7a['style'][_0x335d53(0x1c1)]=_0x45311f+'px',_0x38ed7a[_0x335d53(0x17f)][_0x335d53(0x1ec)]=_0x335d53(0x19f)+_0x42e928+_0x335d53(0x1e5)+_0x5f4811+'px)',_0x38ed7a[_0x335d53(0x180)](_0x335d53(0x1e0),_0x42e928),_0x38ed7a[_0x335d53(0x180)](_0x335d53(0x1bb),_0x5f4811);}}async function delay(_0x15eadc){return new Promise(_0x23440d=>setTimeout(_0x23440d,_0x15eadc));}async function notiMessage(_0x27083f,_0x6f17fd){const _0x954088=a0_0x3c934c;var _0x3737ad=document[_0x954088(0x1d6)](_0x954088(0x194));const _0xfc8846=parseInt(localStorage[_0x954088(0x1d9)](_0x954088(0x1a8)))||'0',_0x20171e=localStorage[_0x954088(0x1d9)](_0x954088(0x1a3));_0x3737ad[_0x954088(0x17f)]['opacity']===_0x954088(0x1d8)&&(clearTimeout(messageTimeout),_0x3737ad[_0x954088(0x17f)][_0x954088(0x196)]='0'),_0x3737ad[_0x954088(0x1b0)]=_0x27083f,_0x3737ad[_0x954088(0x17f)][_0x954088(0x196)]=_0x954088(0x1d8),messageTimeout=setTimeout(()=>{const _0x38a102=_0x954088;_0x3737ad[_0x38a102(0x1b0)]='['+_0xfc8846+']\x20'+_0x20171e['substring'](0x0,_0x20171e[_0x38a102(0x1df)]('.')),_0x3737ad[_0x38a102(0x17f)][_0x38a102(0x196)]=_0x38a102(0x1d8);},_0x6f17fd);}async function ledSave(_0x247133){const _0xf18613=a0_0x3c934c,_0x4f63d5=parseInt(localStorage[_0xf18613(0x1d9)]('slotStateSaved')),_0x1a52eb=_0x4f63d5===0x1?_0xf18613(0x1e7):_0x4f63d5===0x2?_0xf18613(0x17e):_0x4f63d5===0x3?_0xf18613(0x1c2):_0x4f63d5===0x4?_0xf18613(0x1d5):_0x4f63d5===0x5?'led05':_0x4f63d5===0x6?_0xf18613(0x189):_0x4f63d5===0x7?'led07':_0xf18613(0x1ac);try{for(let _0x21264e=0x0;_0x21264e<=0x7;_0x21264e++){document['getElementById'](_0xf18613(0x193)+_0x21264e)[_0xf18613(0x17f)][_0xf18613(0x1a5)]=_0xf18613(0x184);}await delay(0x3e8);for(let _0x1a444d=0x0;_0x1a444d<=0x7;_0x1a444d++){document[_0xf18613(0x1d6)](_0xf18613(0x193)+_0x1a444d)[_0xf18613(0x17f)][_0xf18613(0x1a5)]=_0xf18613(0x184);}document[_0xf18613(0x1d6)](_0x1a52eb)['style']['fill']=_0x247133;}catch(_0xecbf4a){console[_0xf18613(0x1d3)]('Error\x20ledSave:',_0xecbf4a);}};async function led(_0x147b54){const _0x9560b2=a0_0x3c934c;try{const _0x59e9ec=[{'id':_0x9560b2(0x1ac),'color':_0x9560b2(0x184)},{'id':_0x9560b2(0x1e7),'color':_0x9560b2(0x184)},{'id':_0x9560b2(0x17e),'color':_0x9560b2(0x184)},{'id':_0x9560b2(0x1c2),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x9560b2(0x1d5),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x9560b2(0x1c0),'color':_0x9560b2(0x184)},{'id':_0x9560b2(0x189),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x9560b2(0x1bd),'color':_0x9560b2(0x184)}];if(_0x147b54>=0x0&&_0x147b54<_0x59e9ec[_0x9560b2(0x1ed)]){const _0x220f7a=_0x9560b2(0x188);_0x59e9ec['forEach']((_0x483f2a,_0x13e2c0)=>{const _0xfd5b24=_0x9560b2;document[_0xfd5b24(0x1d6)](_0x483f2a['id'])[_0xfd5b24(0x17f)]['fill']=_0x13e2c0===_0x147b54?_0x220f7a:_0x483f2a[_0xfd5b24(0x1ba)];});}}catch(_0x4148ee){console[_0x9560b2(0x1d3)]('Error\x20Led:',_0x4148ee);}}function formatDateTime(_0xf341aa){const _0x5ccaa2=a0_0x3c934c,_0x5041b=new Date(_0xf341aa),_0x5f25ca=String(_0x5041b[_0x5ccaa2(0x1bc)]())[_0x5ccaa2(0x1af)](0x2,'0'),_0x561eb3=String(_0x5041b['getMinutes']())[_0x5ccaa2(0x1af)](0x2,'0'),_0x2444b7=_0x5041b[_0x5ccaa2(0x18f)](),_0x475110=_0x5041b['getMonth']()+0x1;return _0x5f25ca+':'+_0x561eb3+'\x20'+_0x2444b7+'.'+_0x475110;}async function fileToBase64(_0x5f0810){const _0x3c5540=new Blob([_0x5f0810],{'type':'image/png'}),_0x3a8e28=await new Promise((_0x4e682,_0x13884b)=>{const _0x5ccfb7=a0_0x4b7a,_0x356ab9=new FileReader();_0x356ab9[_0x5ccfb7(0x1e9)]=()=>{const _0x45c83a=_0x5ccfb7;_0x4e682(_0x356ab9[_0x45c83a(0x1e2)]);},_0x356ab9['onerror']=_0x13884b,_0x356ab9[_0x5ccfb7(0x1e3)](_0x3c5540);});return _0x3a8e28;}function a0_0x7487(){const _0x570c27=['getElementById','errorLog','0.4','getItem','inputText','width','padding-top','219513YaKiZn','setItem','lastIndexOf','data-x','.target-boxes','result','readAsDataURL','px)','px,\x20','27663KvVXjl','led01','stateDiv05','onloadend','top','2448RGtxsv','transform','length','saveStateButton','120px','led02','style','setAttribute','\x0a---\x0a','ontouchstart','click','rgba(245,\x20232,\x20209,\x200.4)','log',']\x20../','scrollHeight','#20A5A6','led06','stateAdj','180px','onerror','stateDiv02','addEventListener','getDate','split','loadStateButton','replace','led0','noti-mess','stateDiv04','opacity','deltaRect','touched-1','toFixed','DOMContentLoaded','313031pKHmFZ','forEach','classList','openLocalStorage','translate(','60px','setProperty','dynamic','gameName','getAttribute','fill','lockNoti','796086NFeHSS','slotStateSaved','[Err]\x20[','getElementsByClassName','rect','led00','2wjtVTR','touchstart','padStart','textContent','in-game','modifiers','map','parent','querySelectorAll','rect2','scrollTop','_setArea','rectOpacity','color','data-y','getHours','led07','target','left','led05','height','led03','GOpacity','restrictEdges','336VpZDiD','remove','innerText','preventDefault','stateDiv06','add','15095rFOQiC','760gvVoAA','unknown\x20source','stateDiv00','resizable-draggable','5784880KwthTi','touchend','#2F2F2F','error','notiDetail','led04'];a0_0x7487=function(){return _0x570c27;};return a0_0x7487();}async function lockNoti(_0x105dd3,_0x156dc2,_0x54ffe8){const _0xf2a3cd=a0_0x3c934c,_0x362226=document['getElementById'](_0xf2a3cd(0x1a6)),_0x4ae0f0=document[_0xf2a3cd(0x1d6)]('notiTitle'),_0x5ac9f8=document[_0xf2a3cd(0x1d6)](_0xf2a3cd(0x1d4));lockNotiTime&&clearTimeout(lockNotiTime),_0x4ae0f0[_0xf2a3cd(0x1b0)]=_0x105dd3,_0x5ac9f8['textContent']=_0x156dc2,_0x362226[_0xf2a3cd(0x19d)][_0xf2a3cd(0x1c6)]('visible'),lockNotiTime=setTimeout(()=>{const _0x2fc828=_0xf2a3cd;_0x362226[_0x2fc828(0x19d)][_0x2fc828(0x1ca)]('visible');},_0x54ffe8);}function a0_0x4b7a(_0x444b75,_0x262536){const _0x7487da=a0_0x7487();return a0_0x4b7a=function(_0x4b7a86,_0x4bf618){_0x4b7a86=_0x4b7a86-0x17e;let _0x4c4ba8=_0x7487da[_0x4b7a86];return _0x4c4ba8;},a0_0x4b7a(_0x444b75,_0x262536);}function logError(_0x5add5b){const _0x102d52=a0_0x3c934c;if(errorLogElements[_0x102d52(0x1ed)]>0x0){const _0x2cbffc=errorLogElements[0x0];_0x2cbffc[_0x102d52(0x1c7)]+=_0x5add5b+_0x102d52(0x181),_0x2cbffc[_0x102d52(0x1b7)]=_0x2cbffc[_0x102d52(0x187)];}}window[a0_0x3c934c(0x18c)]=function(_0x13f3b9,_0x553064,_0x650565){const _0x1597d2=a0_0x3c934c,_0x1a0545=_0x553064?_0x553064[_0x1597d2(0x190)]('/')['pop']():_0x1597d2(0x1cd),_0x579b47=_0x13f3b9[_0x1597d2(0x192)](/^(Uncaught\s(?:ReferenceError|Error|TypeError|SyntaxError|RangeError):?\s*)/i,''),_0x483d60=_0x1597d2(0x1a9)+_0x650565+_0x1597d2(0x186)+_0x1a0545+'\x20|\x20'+_0x579b47+'.';return logError(_0x483d60),![];},document[a0_0x3c934c(0x18e)](a0_0x3c934c(0x19a),function(){savedStateAdj!==null&&(stateAdj=parseInt(savedStateAdj),positionAdjustment(stateAdj));}); \ No newline at end of file diff --git a/docs/src/js/main.js b/docs/src/js/main.js index 64c516d..787bcd0 100644 --- a/docs/src/js/main.js +++ b/docs/src/js/main.js @@ -1 +1 @@ -const a0_0x4f002e=a0_0x223e;(function(_0x2099b9,_0x1f1145){const _0x1687f0=a0_0x223e,_0x1ceeb5=_0x2099b9();while(!![]){try{const _0x1ed35a=parseInt(_0x1687f0(0x1ea))/0x1*(-parseInt(_0x1687f0(0x1f8))/0x2)+-parseInt(_0x1687f0(0x1f7))/0x3+parseInt(_0x1687f0(0x1cf))/0x4+parseInt(_0x1687f0(0x223))/0x5+parseInt(_0x1687f0(0x215))/0x6+parseInt(_0x1687f0(0x20d))/0x7+parseInt(_0x1687f0(0x1fd))/0x8*(-parseInt(_0x1687f0(0x1d0))/0x9);if(_0x1ed35a===_0x1f1145)break;else _0x1ceeb5['push'](_0x1ceeb5['shift']());}catch(_0x13a643){_0x1ceeb5['push'](_0x1ceeb5['shift']());}}}(a0_0x3c69,0xdf714));import a0_0x3b6031 from'../core/mgba.js';import*as a0_0x5cf4fc from'./gamepad.js';import{localStorageFile}from'./storage.js';import{dpUploadFile,dpRefreshToken}from'./cloud.js';const Module={'canvas':document[a0_0x4f002e(0x1e7)](a0_0x4f002e(0x225))};function a0_0x3c69(){const _0x376437=['uploadCheats','Error\x20uploadCheat:','getElementById','.gbc','saveState','65215nYZlin','visible','listSaves','pagehide','toString','setItem','innerWidth','listGames','visibilitychange','replace','resumeGame','.ss0','_savedCheats','2990943sMRNUZ','32UAFJmt','/data/screenshots/','loadGame','turboState','hidden','43336wSeRTt','uploadSaveOrSaveState','add','screenshot','files','createObjectURL','editFileName','SDL2','now','deleteFile','onLine','turboF','slotStateSaved','application/octet-stream','screenSize','/data/states/','12046587TIkzVP','uploadRom','FSInit','disable','.png','Online!','control-setting','visibilityState','8375094HolvlX','body','log','addEventListener','createElement','\x20time(s)','timer','downloadFile','.gb','Error\x20uploadSavSta:','Cheat\x20uploaded\x20successfully:','listScreenshots','#E0C068','href','2001930RjhEGX','loadState','canvas','Off','Do\x20you\x20want\x20to\x20load\x20save\x20state?','_imageState0','error','revokeObjectURL','endsWith','uId','persisted','remove','name','Auto\x20save\x20','FSSync','4297596QSbyni','2718jJuMZQ','textContent','getItem','_dateState','Resumed!','.gba','padStart','listStates','gameName','No\x20screenshot!','0,0,','style','#20A5A6','beforeunload','click','classList','download','_dateState0','gbc1','buttonPress','_slot0.txt'];a0_0x3c69=function(){return _0x376437;};return a0_0x3c69();}function initializeCore(_0x195678,_0x3dcf93){_0x195678(_0x3dcf93)['then'](function(_0xbd2dc1){const _0x25dbdc=a0_0x223e;_0xbd2dc1[_0x25dbdc(0x20f)]();});}initializeCore(a0_0x3b6031,Module);let countAutoSave=0x0,turboState=0x1,countUpload=0x0;const canvas=document[a0_0x4f002e(0x1e7)]('canvas'),savedTurboState=localStorage['getItem'](a0_0x4f002e(0x1fb)),controlSetting=document[a0_0x4f002e(0x1e7)](a0_0x4f002e(0x213));function handleVisibilityChange(_0x21646c){const _0x56a55a=a0_0x4f002e;document[_0x56a55a(0x214)]===_0x56a55a(0x1fc)||_0x21646c?.['type']===_0x56a55a(0x1dd)||_0x21646c?.[_0x56a55a(0x1ca)]?(pauseGame(),canvas[_0x56a55a(0x1df)]['add'](_0x56a55a(0x1eb))):(setTimeout(()=>{const _0x1962d0=_0x56a55a;canvas[_0x1962d0(0x1df)]['remove'](_0x1962d0(0x1eb));},0x258),controlSetting['classList']['contains'](_0x56a55a(0x1eb))&&resumeGame());}async function statusShow(){const _0x3a61c8=a0_0x4f002e;document[_0x3a61c8(0x218)](_0x3a61c8(0x1ed),handleVisibilityChange),document['addEventListener'](_0x3a61c8(0x1f2),handleVisibilityChange),window['addEventListener'](_0x3a61c8(0x1dd),handleVisibilityChange),restoreArea(),startTimer(),savedTurboState!==null&&(turboState=parseInt(savedTurboState),await a0_0x5cf4fc[_0x3a61c8(0x208)](turboState)),await delay(0x3e8),await led(parseInt(localStorage[_0x3a61c8(0x1d2)](_0x3a61c8(0x209)))),await notiMessage(gameVer,0x3e8);}async function saveStatePeriodically(){const _0x58d8c8=a0_0x4f002e;await ledSave(_0x58d8c8(0x1dc)),await Module[_0x58d8c8(0x1e9)](0x0),await Module[_0x58d8c8(0x1ce)](),await screenShot(0x0),console[_0x58d8c8(0x217)](_0x58d8c8(0x1cd)+ ++countAutoSave+_0x58d8c8(0x21a));}async function saveStateInCloud(){const _0x182ea0=a0_0x4f002e,_0x550112=localStorage[_0x182ea0(0x1d2)]('gameName'),_0x127e4b=_0x550112[_0x182ea0(0x1f3)](_0x182ea0(0x1d5),'.ss0'),_0x4ecf6a=localStorage[_0x182ea0(0x1d2)](_0x182ea0(0x1c9)),_0x44333b=localStorage[_0x182ea0(0x1d2)](_0x550112+_0x182ea0(0x228)),_0x9a364e=localStorage[_0x182ea0(0x1d2)](_0x550112+_0x182ea0(0x1e1));if(navigator[_0x182ea0(0x207)]){if(_0x4ecf6a){await ledSave(_0x182ea0(0x221)),await delay(0x3e8),await dpUploadFile(_0x127e4b,Module[_0x182ea0(0x21c)](_0x182ea0(0x20c)+_0x127e4b));if(_0x44333b!==null){const _0x1a8ea0=_0x44333b+'\x0a\x0a'+_0x9a364e,_0x3d474d=new Blob([_0x1a8ea0],{'type':'text/plain'});await dpUploadFile(_0x550112+_0x182ea0(0x1e4),_0x3d474d);}else console[_0x182ea0(0x217)](_0x182ea0(0x1d9));await lockNoti('','Cloud\x20upload\x20'+ ++countUpload+_0x182ea0(0x21a),0x7d0);}else console[_0x182ea0(0x217)]('Unable\x20to\x20upload\x20to\x20Cloud!');}else console[_0x182ea0(0x217)](_0x182ea0(0x212));}function startTimer(){let [_0x34dbef,_0x525a4a,_0x3f0a2a,_0x2d8f5a,_0x2349bd]=[0x0,0x0,0x0,0x0,0x0];setInterval(()=>{const _0x405905=a0_0x223e;_0x3f0a2a++,_0x2d8f5a++,_0x2349bd++;if(_0x3f0a2a===0x3c)[_0x3f0a2a,_0x525a4a]=[0x0,_0x525a4a+0x1];if(_0x525a4a===0x3c)[_0x525a4a,_0x34dbef]=[0x0,_0x34dbef+0x1];document[_0x405905(0x1e7)](_0x405905(0x21b))['textContent']=_0x34dbef+'h'+_0x525a4a[_0x405905(0x1ee)]()['padStart'](0x2,'0')+'.'+_0x3f0a2a['toString']()[_0x405905(0x1d6)](0x2,'0');_0x2d8f5a===0x3c&&(saveStatePeriodically(),_0x2d8f5a=0x0);;_0x2d8f5a===0xe10&&(saveStateInCloud(),_0x2349bd=0x0);;},0x3e8);}export async function uploadGame(_0x3f85c3){const _0x275f25=a0_0x4f002e,_0x37b3fa=_0x3f85c3['files'][0x0];Module[_0x275f25(0x20e)](_0x37b3fa,()=>{const _0x5a7ac2=_0x275f25;Module[_0x5a7ac2(0x1ce)]();});}export async function loadGame(_0x42b0e8){const _0x584036=a0_0x4f002e,_0x2ea0e5=_0x42b0e8['replace'](/\.(gba|gbc|gb|zip)$/,_0x584036(0x1f5)),_0x1bc30c=Module[_0x584036(0x1d7)]();intro['classList'][_0x584036(0x1ff)]('disable'),errorLogElements[0x0][_0x584036(0x1db)]['bottom']='0',ingame[_0x584036(0x1df)][_0x584036(0x1cb)](_0x584036(0x210)),_0x42b0e8[_0x584036(0x1c8)](_0x584036(0x1e8))||_0x42b0e8['endsWith'](_0x584036(0x21d))?(canvas[_0x584036(0x1df)]['add']('gbc'),areaTrans[_0x584036(0x1df)]['add'](_0x584036(0x1e2)),localStorage[_0x584036(0x1ef)]('screenSize',_0x584036(0x1da)+(window[_0x584036(0x1f0)]-0xe6)+','+(window['innerWidth']-0xe6)*0x9/0xa)):localStorage['setItem'](_0x584036(0x20b),_0x584036(0x1da)+(window[_0x584036(0x1f0)]-0x96)+','+(window['innerWidth']-0x96)*0x2/0x3),_0x1bc30c['includes'](_0x2ea0e5)?(await Module[_0x584036(0x1fa)]('/data/games/'+_0x42b0e8),confirm(_0x584036(0x227))&&(await Module[_0x584036(0x224)](0x0),localStorage[_0x584036(0x1ef)](_0x584036(0x1d8),_0x42b0e8),console[_0x584036(0x217)](_0x42b0e8))):(await Module[_0x584036(0x1fa)]('/data/games/'+_0x42b0e8),localStorage[_0x584036(0x1ef)](_0x584036(0x1d8),_0x42b0e8)),await statusShow();}export async function saveState(_0x20cb9f){const _0x26ef45=a0_0x4f002e;await Module['saveState'](_0x20cb9f),await Module[_0x26ef45(0x1ce)]();}export async function loadState(_0x293214){const _0x23921d=a0_0x4f002e;await Module[_0x23921d(0x224)](_0x293214);}export async function downloadFile(_0x2f6e31,_0x3d2d9c){const _0x4bf2d2=a0_0x4f002e,_0x26800d=Module[_0x4bf2d2(0x21c)](_0x2f6e31),_0x58359b=document[_0x4bf2d2(0x219)]('a');document[_0x4bf2d2(0x216)]['appendChild'](_0x58359b),_0x58359b[_0x4bf2d2(0x1e0)]=_0x3d2d9c;const _0x3050dc=new Blob([_0x26800d],{'type':_0x4bf2d2(0x20a)});_0x58359b[_0x4bf2d2(0x222)]=URL[_0x4bf2d2(0x202)](_0x3050dc),_0x58359b[_0x4bf2d2(0x1de)](),URL[_0x4bf2d2(0x22a)](_0x3050dc),_0x58359b[_0x4bf2d2(0x1cb)]();}export function downloadFileInCloud(_0x417dd9){const _0x4338e4=a0_0x4f002e,_0x566316=Module[_0x4338e4(0x21c)](_0x417dd9);return _0x566316;}export async function uploadFile(_0x35900e){const _0x2fa96e=a0_0x4f002e,_0x4c4c30=_0x35900e[_0x2fa96e(0x201)][0x0];Module[_0x2fa96e(0x1fe)](_0x4c4c30,()=>{const _0x1cc09d=_0x2fa96e;Module[_0x1cc09d(0x1ce)]();});}export async function editFile(_0x3bb26f,_0x212be5,_0x565535){const _0x9a5196=a0_0x4f002e;await Module[_0x9a5196(0x203)](_0x3bb26f,_0x212be5,_0x565535),await Module[_0x9a5196(0x1ce)]();}export async function deleteFile(_0x51f70b){const _0x47f986=a0_0x4f002e;await Module[_0x47f986(0x206)](_0x51f70b),await Module[_0x47f986(0x1ce)]();}export function listGame(){const _0x2bbadd=a0_0x4f002e,_0x2ee643=Module[_0x2bbadd(0x1f1)]();return _0x2ee643;}export function listSave(){const _0x44419b=a0_0x4f002e,_0x51ef80=Module[_0x44419b(0x1ec)]();return _0x51ef80;}export function listState(){const _0x26b0b1=a0_0x4f002e,_0x14db6e=Module[_0x26b0b1(0x1d7)]();return _0x14db6e;}export function listCheat(){const _0x2e0ced=Module['listCheats']();return _0x2e0ced;}export function listScreenshot(){const _0xa46451=a0_0x4f002e,_0x33815e=Module[_0xa46451(0x220)]();return _0x33815e;}export function fileSize(_0x4b2634){const _0x35de74=Module['fileSize'](_0x4b2634);return _0x35de74;}export async function uploadCheat(_0x4d25ed){const _0x2b1eaf=a0_0x4f002e;try{const _0x558e4c=_0x4d25ed[_0x2b1eaf(0x201)][0x0];await Module[_0x2b1eaf(0x1e5)](_0x558e4c,()=>{const _0x5086db=_0x2b1eaf;console['log'](_0x5086db(0x21f),_0x558e4c[_0x5086db(0x1cc)]),localStorageFile(),Module[_0x5086db(0x1ce)]();});}catch(_0x3a1495){console[_0x2b1eaf(0x229)](_0x2b1eaf(0x1e6),_0x3a1495);}}export async function uploadSavSta(_0x5b22f1){const _0x2dc4f7=a0_0x4f002e;try{const _0xcceb42=_0x5b22f1[_0x2dc4f7(0x201)][0x0];await Module[_0x2dc4f7(0x1fe)](_0xcceb42,()=>{const _0x1b476d=_0x2dc4f7;console[_0x1b476d(0x217)]('Save/State\x20uploaded\x20successfully:',_0xcceb42[_0x1b476d(0x1cc)]),localStorageFile(),Module['FSSync']();});}catch(_0xac8b17){console[_0x2dc4f7(0x229)](_0x2dc4f7(0x21e),_0xac8b17);}}export async function uploadSaveOrSaveState(_0x172707){const _0x5bd82e=a0_0x4f002e;Module[_0x5bd82e(0x1fe)](_0x172707,()=>{localStorageFile(),Module['FSSync']();});}export async function resumeGame(){const _0x448d2b=a0_0x4f002e;Module[_0x448d2b(0x1f4)](),Module['SDL2'](),notiMessage(_0x448d2b(0x1d4),0x7d0);}export async function pauseGame(){const _0x4a7bf5=a0_0x4f002e;Module['pauseGame'](),Module[_0x4a7bf5(0x204)](),notiMessage('Paused!',0x7d0);}function a0_0x223e(_0x450d4a,_0x4c3e67){const _0x3c6964=a0_0x3c69();return a0_0x223e=function(_0x223e67,_0x4f05ce){_0x223e67=_0x223e67-0x1c8;let _0x5a58ae=_0x3c6964[_0x223e67];return _0x5a58ae;},a0_0x223e(_0x450d4a,_0x4c3e67);}export async function buttonPress(_0x2520e4){const _0x4aac63=a0_0x4f002e;Module[_0x4aac63(0x1e3)](_0x2520e4);}export async function buttonUnpress(_0x40b3e9){Module['buttonUnpress'](_0x40b3e9);}export async function screenShot(_0x573cf7){const _0x180b7e=a0_0x4f002e,_0x2282ff=localStorage[_0x180b7e(0x1d2)](_0x180b7e(0x1d8)),_0x55aedf=_0x2282ff[_0x180b7e(0x1f3)](/\.(gba|gbc|gb|zip)$/,'_');await Module[_0x180b7e(0x200)](''+_0x55aedf+_0x573cf7+_0x180b7e(0x211)),await Module['FSSync']();const _0x4ae9ed=await fileToBase64(Module[_0x180b7e(0x21c)]('/data/screenshots/'+_0x55aedf+_0x573cf7+_0x180b7e(0x211))),_0x3c538c=Date[_0x180b7e(0x205)](),_0x4588b8=formatDateTime(_0x3c538c);localStorage[_0x180b7e(0x1ef)](_0x2282ff+_0x180b7e(0x1d3)+_0x573cf7,_0x4588b8),localStorage[_0x180b7e(0x1ef)](_0x2282ff+'_imageState'+_0x573cf7,_0x4ae9ed);}export async function captureOCR(_0x39781a){const _0x1c9ec9=a0_0x4f002e;Module[_0x1c9ec9(0x200)](_0x39781a);const _0x132e67=Module['downloadFile'](_0x1c9ec9(0x1f9)+_0x39781a);return _0x132e67;}export async function setFastForwardMultiplier(_0x1b734a){Module['setFastForwardMultiplier'](_0x1b734a);}export function uploadCheats(_0x1a22b6,_0x59267c,_0x454b4c,_0x2b4b01,_0x1c569c){const _0x1bb2da=a0_0x4f002e;Module[_0x1bb2da(0x1e5)](_0x1a22b6,()=>{const _0x9269b=_0x1bb2da;Module['autoLoadCheats'](),setTimeout(()=>{const _0x470198=a0_0x223e;Module[_0x470198(0x1ce)]();},0x1f4),_0x2b4b01&&(localStorage[_0x9269b(0x1ef)](_0x59267c+_0x9269b(0x1f6),_0x454b4c),notiMessage('Cheat\x20Enabled!',0x5dc)),_0x1c569c[_0x9269b(0x1d1)]=localStorage[_0x9269b(0x1d2)](_0x59267c+_0x9269b(0x1f6)||_0x9269b(0x226));});} \ No newline at end of file +const a0_0x59828b=a0_0x335d;(function(_0x231f35,_0x5e9ccb){const _0x5b949f=a0_0x335d,_0x2de10e=_0x231f35();while(!![]){try{const _0x3eb91a=-parseInt(_0x5b949f(0x1b9))/0x1*(-parseInt(_0x5b949f(0x1b3))/0x2)+-parseInt(_0x5b949f(0x1e8))/0x3*(-parseInt(_0x5b949f(0x1b8))/0x4)+parseInt(_0x5b949f(0x19d))/0x5*(parseInt(_0x5b949f(0x19c))/0x6)+-parseInt(_0x5b949f(0x190))/0x7*(parseInt(_0x5b949f(0x189))/0x8)+parseInt(_0x5b949f(0x1c8))/0x9+parseInt(_0x5b949f(0x192))/0xa*(-parseInt(_0x5b949f(0x1d6))/0xb)+parseInt(_0x5b949f(0x1d2))/0xc;if(_0x3eb91a===_0x5e9ccb)break;else _0x2de10e['push'](_0x2de10e['shift']());}catch(_0x2690ef){_0x2de10e['push'](_0x2de10e['shift']());}}}(a0_0x2d2c,0x96441));import a0_0xb9334e from'../core/mgba.js';import*as a0_0x370cc6 from'./gamepad.js';function a0_0x2d2c(){const _0x36a3d7=['Error\x20uploadCheat:','_dateState','resumeGame','0,0,','application/octet-stream','_dateState0','pauseGame','endsWith','revokeObjectURL','persisted','canvas','loadState','2210787CfWwam','setFastForwardMultiplier','download','listScreenshots','\x20time(s)','Auto\x20save\x20','autoLoadCheats','classList','name','/data/screenshots/','4680408AYTwBB','bottom','/data/games/','beforeunload','580998NpSLen','slotStateSaved','innerWidth','onLine','deleteFile','Cloud\x20upload\x20','uploadSaveOrSaveState','No\x20screenshot!','Cheat\x20Enabled!','SDL2','control-setting','fileSize','.gbc','href','FSSync','/data/states/','loadGame','addEventListener','3yTIFtf','Off','toString','editFileName','screenSize','gbc1','log','Error\x20uploadSavSta:','795968bCkAKS','screenshot','createObjectURL','Save/State\x20uploaded\x20successfully:','Online!','Resumed!','saveState','56oPHfEj','.gba','160gRcIRl','text/plain','.png','disable','getItem','uploadCheats','FSInit','timer','Unable\x20to\x20upload\x20to\x20Cloud!','listGames','7260414PZlBsh','5UScJkQ','visible','#E0C068','createElement','_imageState','Do\x20you\x20want\x20to\x20load\x20save\x20state?','turboState','gameName','appendChild','_savedCheats','.ss0','visibilityState','add','files','body','replace','now','getElementById','turboF','listStates','error','downloadFile','2pBrrGn','padStart','uId','Cheat\x20uploaded\x20successfully:','.gb','1038252JdoVQH','151236aNHXhx','includes','setItem'];a0_0x2d2c=function(){return _0x36a3d7;};return a0_0x2d2c();}import{localStorageFile}from'./storage.js';import{dpUploadFile,dpRefreshToken}from'./cloud.js';const Module={'canvas':document[a0_0x59828b(0x1ae)](a0_0x59828b(0x1c6))};function initializeCore(_0x3e362f,_0x580e7c){_0x3e362f(_0x580e7c)['then'](function(_0x4c2073){const _0xed9361=a0_0x335d;_0x4c2073[_0xed9361(0x198)]();});}initializeCore(a0_0xb9334e,Module);let countAutoSave=0x0,turboState=0x1,countUpload=0x0;const canvas=document['getElementById'](a0_0x59828b(0x1c6)),savedTurboState=localStorage[a0_0x59828b(0x196)](a0_0x59828b(0x1a3)),controlSetting=document[a0_0x59828b(0x1ae)](a0_0x59828b(0x1e0));function handleVisibilityChange(_0x326b44){const _0x297521=a0_0x59828b;document[_0x297521(0x1a8)]==='hidden'||_0x326b44?.['type']===_0x297521(0x1d5)||_0x326b44?.[_0x297521(0x1c5)]?(pauseGame(),canvas[_0x297521(0x1cf)][_0x297521(0x1a9)](_0x297521(0x19e))):(setTimeout(()=>{const _0x5758bb=_0x297521;canvas[_0x5758bb(0x1cf)]['remove']('visible');},0x258),controlSetting[_0x297521(0x1cf)]['contains'](_0x297521(0x19e))&&resumeGame());}async function statusShow(){const _0x37a182=a0_0x59828b;document[_0x37a182(0x1e7)]('pagehide',handleVisibilityChange),document[_0x37a182(0x1e7)]('visibilitychange',handleVisibilityChange),window[_0x37a182(0x1e7)]('beforeunload',handleVisibilityChange),restoreArea(),startTimer(),savedTurboState!==null&&(turboState=parseInt(savedTurboState),await a0_0x370cc6[_0x37a182(0x1af)](turboState)),await delay(0x3e8),await led(parseInt(localStorage[_0x37a182(0x196)](_0x37a182(0x1d7)))),await notiMessage(gameVer,0x3e8);}async function saveStatePeriodically(){const _0x48f8a7=a0_0x59828b;await ledSave('#20A5A6'),await Module[_0x48f8a7(0x18f)](0x0),await Module[_0x48f8a7(0x1e4)](),await screenShot(0x0),console[_0x48f8a7(0x187)](_0x48f8a7(0x1cd)+ ++countAutoSave+_0x48f8a7(0x1cc));}async function saveStateInCloud(){const _0x103941=a0_0x59828b,_0x434e40=localStorage[_0x103941(0x196)](_0x103941(0x1a4)),_0x237a74=_0x434e40['replace'](_0x103941(0x191),'.ss0'),_0x3200d0=localStorage['getItem'](_0x103941(0x1b5)),_0x593af0=localStorage[_0x103941(0x196)](_0x434e40+'_imageState0'),_0x221871=localStorage[_0x103941(0x196)](_0x434e40+_0x103941(0x1c1));if(navigator[_0x103941(0x1d9)]){if(_0x3200d0){await ledSave(_0x103941(0x19f)),await delay(0x3e8),await dpUploadFile(_0x237a74,Module[_0x103941(0x1b2)](_0x103941(0x1e5)+_0x237a74));if(_0x593af0!==null){const _0x5e2586=_0x593af0+'\x0a\x0a'+_0x221871,_0x4308ad=new Blob([_0x5e2586],{'type':_0x103941(0x193)});await dpUploadFile(_0x434e40+'_slot0.txt',_0x4308ad);}else console['log'](_0x103941(0x1dd));await lockNoti('',_0x103941(0x1db)+ ++countUpload+_0x103941(0x1cc),0x7d0);}else console[_0x103941(0x187)](_0x103941(0x19a));}else console['log'](_0x103941(0x18d));}function startTimer(){let [_0x20326b,_0x51500b,_0xc45d6d,_0x4966f7,_0x2eab65]=[0x0,0x0,0x0,0x0,0x0];setInterval(()=>{const _0x15a34d=a0_0x335d;_0xc45d6d++,_0x4966f7++,_0x2eab65++;if(_0xc45d6d===0x3c)[_0xc45d6d,_0x51500b]=[0x0,_0x51500b+0x1];if(_0x51500b===0x3c)[_0x51500b,_0x20326b]=[0x0,_0x20326b+0x1];document['getElementById'](_0x15a34d(0x199))['textContent']=_0x20326b+'h'+_0x51500b[_0x15a34d(0x1ea)]()[_0x15a34d(0x1b4)](0x2,'0')+'.'+_0xc45d6d[_0x15a34d(0x1ea)]()['padStart'](0x2,'0');_0x4966f7===0x3c&&(saveStatePeriodically(),_0x4966f7=0x0);;_0x4966f7===0xe10&&(saveStateInCloud(),_0x2eab65=0x0);;},0x3e8);}export async function uploadGame(_0x1d9d11){const _0x574ecd=a0_0x59828b,_0x4b15f9=_0x1d9d11[_0x574ecd(0x1aa)][0x0];Module['uploadRom'](_0x4b15f9,()=>{Module['FSSync']();});}export async function loadGame(_0x5a7e40){const _0x55f82e=a0_0x59828b,_0x324159=_0x5a7e40[_0x55f82e(0x1ac)](/\.(gba|gbc|gb|zip)$/,_0x55f82e(0x1a7)),_0x13081e=Module[_0x55f82e(0x1b0)]();intro[_0x55f82e(0x1cf)][_0x55f82e(0x1a9)](_0x55f82e(0x195)),errorLogElements[0x0]['style'][_0x55f82e(0x1d3)]='0',ingame[_0x55f82e(0x1cf)]['remove'](_0x55f82e(0x195)),_0x5a7e40[_0x55f82e(0x1c3)](_0x55f82e(0x1e2))||_0x5a7e40[_0x55f82e(0x1c3)](_0x55f82e(0x1b7))?(canvas[_0x55f82e(0x1cf)]['add']('gbc'),areaTrans[_0x55f82e(0x1cf)][_0x55f82e(0x1a9)](_0x55f82e(0x186)),localStorage[_0x55f82e(0x1bb)](_0x55f82e(0x185),'0,0,'+(window[_0x55f82e(0x1d8)]-0xe6)+','+(window['innerWidth']-0xe6)*0x9/0xa)):localStorage[_0x55f82e(0x1bb)](_0x55f82e(0x185),_0x55f82e(0x1bf)+(window['innerWidth']-0x96)+','+(window[_0x55f82e(0x1d8)]-0x96)*0x2/0x3),_0x13081e[_0x55f82e(0x1ba)](_0x324159)?(await Module['loadGame'](_0x55f82e(0x1d4)+_0x5a7e40),confirm(_0x55f82e(0x1a2))&&(await Module[_0x55f82e(0x1c7)](0x0),localStorage[_0x55f82e(0x1bb)](_0x55f82e(0x1a4),_0x5a7e40),console['log'](_0x5a7e40))):(await Module[_0x55f82e(0x1e6)]('/data/games/'+_0x5a7e40),localStorage[_0x55f82e(0x1bb)](_0x55f82e(0x1a4),_0x5a7e40)),await statusShow();}export async function saveState(_0x5f2590){const _0x2e13d0=a0_0x59828b;await Module[_0x2e13d0(0x18f)](_0x5f2590),await Module[_0x2e13d0(0x1e4)]();}export async function loadState(_0xa3fab0){const _0xd36689=a0_0x59828b;await Module[_0xd36689(0x1c7)](_0xa3fab0);}export async function downloadFile(_0x326a17,_0x5875e6){const _0x3ee42e=a0_0x59828b,_0xe767ec=Module[_0x3ee42e(0x1b2)](_0x326a17),_0x38e5c8=document[_0x3ee42e(0x1a0)]('a');document[_0x3ee42e(0x1ab)][_0x3ee42e(0x1a5)](_0x38e5c8),_0x38e5c8[_0x3ee42e(0x1ca)]=_0x5875e6;const _0x3a5679=new Blob([_0xe767ec],{'type':_0x3ee42e(0x1c0)});_0x38e5c8[_0x3ee42e(0x1e3)]=URL[_0x3ee42e(0x18b)](_0x3a5679),_0x38e5c8['click'](),URL[_0x3ee42e(0x1c4)](_0x3a5679),_0x38e5c8['remove']();}export function downloadFileInCloud(_0x185a6e){const _0x480077=a0_0x59828b,_0x4b9bb8=Module[_0x480077(0x1b2)](_0x185a6e);return _0x4b9bb8;}export async function uploadFile(_0x8129c4){const _0x4e90f7=_0x8129c4['files'][0x0];Module['uploadSaveOrSaveState'](_0x4e90f7,()=>{const _0xddf229=a0_0x335d;Module[_0xddf229(0x1e4)]();});}export async function editFile(_0x1f8c61,_0x52c08f,_0x1ec66a){const _0x91ff83=a0_0x59828b;await Module[_0x91ff83(0x184)](_0x1f8c61,_0x52c08f,_0x1ec66a),await Module[_0x91ff83(0x1e4)]();}export async function deleteFile(_0x12befa){const _0x3b204e=a0_0x59828b;await Module[_0x3b204e(0x1da)](_0x12befa),await Module[_0x3b204e(0x1e4)]();}export function listGame(){const _0x40cbf6=a0_0x59828b,_0x41da48=Module[_0x40cbf6(0x19b)]();return _0x41da48;}export function listSave(){const _0x591464=Module['listSaves']();return _0x591464;}export function listState(){const _0x3dd7ed=a0_0x59828b,_0x5e0154=Module[_0x3dd7ed(0x1b0)]();return _0x5e0154;}export function listCheat(){const _0xe5cc0d=Module['listCheats']();return _0xe5cc0d;}export function listScreenshot(){const _0x80e376=a0_0x59828b,_0x530a4a=Module[_0x80e376(0x1cb)]();return _0x530a4a;}export function fileSize(_0x2f3450){const _0x4ebbeb=a0_0x59828b,_0x366fea=Module[_0x4ebbeb(0x1e1)](_0x2f3450);return _0x366fea;}export async function uploadCheat(_0x31636f){const _0x194b7c=a0_0x59828b;try{const _0x1bcd72=_0x31636f[_0x194b7c(0x1aa)][0x0];await Module[_0x194b7c(0x197)](_0x1bcd72,()=>{const _0x20eb98=_0x194b7c;console[_0x20eb98(0x187)](_0x20eb98(0x1b6),_0x1bcd72[_0x20eb98(0x1d0)]),localStorageFile(),Module[_0x20eb98(0x1e4)]();});}catch(_0x4d0bd5){console[_0x194b7c(0x1b1)](_0x194b7c(0x1bc),_0x4d0bd5);}}function a0_0x335d(_0x3cf700,_0x21b5f8){const _0x2d2c7a=a0_0x2d2c();return a0_0x335d=function(_0x335d8c,_0x4e2c37){_0x335d8c=_0x335d8c-0x184;let _0x35796e=_0x2d2c7a[_0x335d8c];return _0x35796e;},a0_0x335d(_0x3cf700,_0x21b5f8);}export async function uploadSavSta(_0x23f731){const _0x391111=a0_0x59828b;try{const _0xf9951b=_0x23f731['files'][0x0];await Module[_0x391111(0x1dc)](_0xf9951b,()=>{const _0x2c7d15=_0x391111;console[_0x2c7d15(0x187)](_0x2c7d15(0x18c),_0xf9951b[_0x2c7d15(0x1d0)]),localStorageFile(),Module['FSSync']();});}catch(_0x481fff){console[_0x391111(0x1b1)](_0x391111(0x188),_0x481fff);}}export async function uploadSaveOrSaveState(_0x2c29e1){const _0x1ec386=a0_0x59828b;Module[_0x1ec386(0x1dc)](_0x2c29e1,()=>{const _0xbfd958=_0x1ec386;localStorageFile(),Module[_0xbfd958(0x1e4)]();});}export async function resumeGame(){const _0x54603e=a0_0x59828b;Module[_0x54603e(0x1be)](),Module['SDL2'](),notiMessage(_0x54603e(0x18e),0x7d0);}export async function pauseGame(){const _0x573ac1=a0_0x59828b;Module[_0x573ac1(0x1c2)](),Module[_0x573ac1(0x1df)](),notiMessage('Paused!',0x7d0);}export async function buttonPress(_0x5c99f3){Module['buttonPress'](_0x5c99f3);}export async function buttonUnpress(_0x36df40){Module['buttonUnpress'](_0x36df40);}export async function screenShot(_0x45ca0f){const _0x228f4e=a0_0x59828b,_0x32edbb=localStorage['getItem'](_0x228f4e(0x1a4)),_0x5d55b3=_0x32edbb[_0x228f4e(0x1ac)](/\.(gba|gbc|gb|zip)$/,'_');await Module[_0x228f4e(0x18a)](''+_0x5d55b3+_0x45ca0f+_0x228f4e(0x194)),await Module[_0x228f4e(0x1e4)]();const _0x10b3e4=await fileToBase64(Module['downloadFile'](_0x228f4e(0x1d1)+_0x5d55b3+_0x45ca0f+_0x228f4e(0x194))),_0x5d323d=Date[_0x228f4e(0x1ad)](),_0x897407=formatDateTime(_0x5d323d);localStorage[_0x228f4e(0x1bb)](_0x32edbb+_0x228f4e(0x1bd)+_0x45ca0f,_0x897407),localStorage['setItem'](_0x32edbb+_0x228f4e(0x1a1)+_0x45ca0f,_0x10b3e4);}export async function captureOCR(_0x2f047d){const _0x15db35=a0_0x59828b;Module[_0x15db35(0x18a)](_0x2f047d);const _0x33ac95=Module[_0x15db35(0x1b2)](_0x15db35(0x1d1)+_0x2f047d);return _0x33ac95;}export async function setFastForwardMultiplier(_0x469eaf){const _0x1a0c8b=a0_0x59828b;Module[_0x1a0c8b(0x1c9)](_0x469eaf);}export function uploadCheats(_0x4407ca,_0x10587,_0x2ccb06,_0x4a89fd,_0x2d88e7){const _0x240a01=a0_0x59828b;Module[_0x240a01(0x197)](_0x4407ca,()=>{const _0x5d9b3c=_0x240a01;Module[_0x5d9b3c(0x1ce)](),setTimeout(()=>{const _0x65a648=_0x5d9b3c;Module[_0x65a648(0x1e4)]();},0x1f4),_0x4a89fd&&(localStorage[_0x5d9b3c(0x1bb)](_0x10587+_0x5d9b3c(0x1a6),_0x2ccb06),notiMessage(_0x5d9b3c(0x1de),0x5dc)),_0x2d88e7['textContent']=localStorage['getItem'](_0x10587+_0x5d9b3c(0x1a6)||_0x5d9b3c(0x1e9));});} \ No newline at end of file diff --git a/docs/src/js/ocr.js b/docs/src/js/ocr.js index 2f4ebd7..3ebdc76 100644 --- a/docs/src/js/ocr.js +++ b/docs/src/js/ocr.js @@ -1 +1 @@ -const a0_0x2318a8=a0_0x1cb3;(function(_0x3d0a3b,_0x5eb7c7){const _0x269c2b=a0_0x1cb3,_0x29d7dd=_0x3d0a3b();while(!![]){try{const _0x3eff77=parseInt(_0x269c2b(0x210))/0x1+-parseInt(_0x269c2b(0x20a))/0x2*(parseInt(_0x269c2b(0x1f3))/0x3)+parseInt(_0x269c2b(0x20d))/0x4+-parseInt(_0x269c2b(0x1fa))/0x5*(parseInt(_0x269c2b(0x1be))/0x6)+-parseInt(_0x269c2b(0x1e1))/0x7*(parseInt(_0x269c2b(0x1ed))/0x8)+parseInt(_0x269c2b(0x1fc))/0x9+parseInt(_0x269c2b(0x1b2))/0xa;if(_0x3eff77===_0x5eb7c7)break;else _0x29d7dd['push'](_0x29d7dd['shift']());}catch(_0x418914){_0x29d7dd['push'](_0x29d7dd['shift']());}}}(a0_0x21ba,0x6f578));import*as a0_0x2bb342 from'./main.js';var scrollAmount=0x0,scrollSpeed=0.5,runCount=0x0;let isFunctionARunning=![];var maxRunCount=0x2;let clickTurbo=0x0,clickTimeout;const inputText=document[a0_0x2318a8(0x1b0)](a0_0x2318a8(0x1ba)),input=document[a0_0x2318a8(0x1b0)]('input-container'),turbo=document[a0_0x2318a8(0x1b0)](a0_0x2318a8(0x200)),ID=['A','B','R','L'];async function getImage(){const _0xa09117=a0_0x2318a8;turbo[_0xa09117(0x1b1)][_0xa09117(0x1ce)](_0xa09117(0x1d6));try{const _0x35f036=localStorage[_0xa09117(0x1b7)]('gameName'),_0x1a8cb5=_0x35f036[_0xa09117(0x1eb)](/\.(gba|gbc|gb|zip)$/,_0xa09117(0x1d7)),_0x1a082a=await a0_0x2bb342[_0xa09117(0x1ee)](_0x1a8cb5);console['log'](_0x1a082a);const _0x1f0191=new Blob([_0x1a082a],{'type':_0xa09117(0x1fb)}),_0x3d89c7=await new Promise((_0x2ff1b0,_0x4bea74)=>{const _0x87b0e3=_0xa09117,_0x312dae=new FileReader();_0x312dae['onloadend']=()=>_0x2ff1b0(_0x312dae[_0x87b0e3(0x1da)]),_0x312dae[_0x87b0e3(0x1b9)]=_0x4bea74,_0x312dae[_0x87b0e3(0x1d2)](_0x1f0191);}),_0x5de8ee=new Image();console[_0xa09117(0x204)](_0x3d89c7),_0x5de8ee['src']=_0x3d89c7,_0x5de8ee['onload']=()=>{const _0x4cc765=_0xa09117,_0xc22917=document[_0x4cc765(0x1e4)](_0x4cc765(0x1cf)),_0x39c902=_0xc22917[_0x4cc765(0x1e3)]('2d'),_0x6df474=0x4;let _0x1e3633;_0x35f036[_0x4cc765(0x1d8)]('.gbc')||_0x35f036[_0x4cc765(0x1d8)](_0x4cc765(0x1f8))?(_0x1e3633=Math[_0x4cc765(0x1c4)](0xa0/(window[_0x4cc765(0x1c1)]-0xe6)),console[_0x4cc765(0x204)](_0x4cc765(0x1b5),_0x1e3633)):(_0x1e3633=Math[_0x4cc765(0x1c4)](0xf0/(window[_0x4cc765(0x1c1)]-0x96)),console['log'](_0x4cc765(0x203),_0x1e3633));const _0x457d2d=localStorage['getItem'](_0x35f036+_0x4cc765(0x1bb))||localStorage['getItem'](_0x4cc765(0x1d3)),[_0x3f3e5c,_0xd0675b,_0x27d33a,_0x646ae6]=_0x457d2d[_0x4cc765(0x1d5)](',')[_0x4cc765(0x1e9)](Number);_0xc22917[_0x4cc765(0x205)]=_0x27d33a*_0x1e3633*_0x6df474,_0xc22917[_0x4cc765(0x1b3)]=_0x646ae6*_0x1e3633*_0x6df474,_0x39c902['drawImage'](_0x5de8ee,_0x3f3e5c*_0x1e3633,_0xd0675b*_0x1e3633,_0x27d33a*_0x1e3633,_0x646ae6*_0x1e3633,0x0,0x0,_0x27d33a*_0x1e3633*_0x6df474,_0x646ae6*_0x1e3633*_0x6df474),console[_0x4cc765(0x204)](_0xc22917[_0x4cc765(0x1df)](_0x4cc765(0x1fb)));const _0xc1cc9d=_0xc22917[_0x4cc765(0x1df)](_0x4cc765(0x1fb))[_0x4cc765(0x1d5)](',')[0x1],_0x4e7c11=localStorage[_0x4cc765(0x1b7)](_0x4cc765(0x1d1));_0x4e7c11?azureServer(_0xc1cc9d):freeServer(_0xc1cc9d);};}catch(_0x5e367e){inputText['textContent']=_0x5e367e[_0xa09117(0x1d4)];}}async function freeServer(_0x22b0c2){const _0xef67e5=a0_0x2318a8;let _0x4603f0,_0xd0f2a9=0x0;const _0x53da1f=setInterval(()=>{const _0x5d478b=a0_0x1cb3;_0xd0f2a9+=0x1,_0xd0f2a9<=0x64&&(inputText[_0x5d478b(0x1c5)]='Waiting..'+_0xd0f2a9+'%');},0x64);try{const _0x3dd6bd=dataURItoBlob(_0x22b0c2),_0x79e5be=new FormData();_0x79e5be[_0xef67e5(0x1b4)](_0xef67e5(0x1c9),_0x3dd6bd,_0xef67e5(0x201)),_0x79e5be[_0xef67e5(0x1b4)](_0xef67e5(0x1e6),_0xef67e5(0x1f4)),_0x4603f0=await fetch(_0xef67e5(0x20e),{'method':_0xef67e5(0x206),'body':_0x79e5be,'headers':{'Origin':window[_0xef67e5(0x1d9)][_0xef67e5(0x209)],'X-Requested-With':_0xef67e5(0x1ff),'User-Agent':navigator[_0xef67e5(0x1f6)]}});const _0x4c92bc=await _0x4603f0[_0xef67e5(0x1b8)]();if(!_0x4603f0['ok']||_0x4c92bc[_0xef67e5(0x1fe)]===_0xef67e5(0x1e7)){const _0x209ae3=_0x4603f0['ok']?_0x4c92bc['error'][_0xef67e5(0x1d4)]:_0x4603f0[_0xef67e5(0x1c2)]===0x1f4?_0xef67e5(0x1c3):(await _0x4603f0[_0xef67e5(0x1b8)]())[_0xef67e5(0x1e7)][_0xef67e5(0x1d4)];throw new Error(_0x209ae3);}console[_0xef67e5(0x204)](_0x4c92bc[_0xef67e5(0x20c)]),transLogic(_0x4c92bc[_0xef67e5(0x20c)]);}catch(_0x2f2089){inputText['textContent']=_0x2f2089[_0xef67e5(0x1d4)];}finally{clearInterval(_0x53da1f),isFunctionARunning=![];}}async function azureServer(_0x3530a5){const _0x41518a=a0_0x2318a8;inputText[_0x41518a(0x1c5)]='...';const _0x29bfbd=localStorage[_0x41518a(0x1b7)]('ApiAzure');let [_0x24b62b,_0x38e063,_0x480df9]=_0x29bfbd[_0x41518a(0x1d5)](',');_0x480df9=parseInt(_0x480df9);const _0x60e6c6=new Date(),_0x3171b5=_0x60e6c6[_0x41518a(0x1f0)](),_0x41292a=_0x60e6c6['getFullYear'](),_0x31a592=localStorage[_0x41518a(0x1b7)]('lastSavedDate'),_0x5e515d=_0x31a592?new Date(_0x31a592):null;_0x5e515d&&(_0x3171b5!==_0x5e515d[_0x41518a(0x1f0)]()||_0x41292a!==_0x5e515d[_0x41518a(0x1e0)]())&&(_0x480df9=0x0,localStorage['setItem']('lastSavedDate',_0x60e6c6[_0x41518a(0x1e8)]()));if(_0x480df9>=0x1356){inputText['textContent']=_0x41518a(0x1ef);return;}try{const _0x3e9c7f=await fetch(_0x38e063+_0x41518a(0x1f1),{'method':'POST','headers':{'Ocp-Apim-Subscription-Key':_0x24b62b,'Content-Type':'application/octet-stream'},'body':dataURItoBlob(_0x3530a5)}),_0x2f4435=await _0x3e9c7f[_0x41518a(0x1b8)]();if(!_0x3e9c7f['ok']||_0x2f4435[_0x41518a(0x1fe)]==='error'){const _0x3e8e93=_0x3e9c7f['ok']?_0x2f4435[_0x41518a(0x1e7)]['message']:_0x3e9c7f['status']===0x1f4?_0x41518a(0x1c7):(await _0x3e9c7f[_0x41518a(0x1b8)]())[_0x41518a(0x1e7)][_0x41518a(0x1d4)];throw new Error(_0x3e8e93);}const _0x14634e=_0x2f4435[_0x41518a(0x1cb)][_0x41518a(0x1f5)][0x0],_0x26c2d5=_0x14634e[_0x41518a(0x1e2)]||[],_0x1820fd=_0x26c2d5['map'](_0x24d72b=>_0x24d72b[_0x41518a(0x20c)])[_0x41518a(0x1f9)]('\x0a');transLogic(_0x1820fd);}catch(_0x517019){inputText[_0x41518a(0x1c5)]=_0x517019['message'];const _0x5b4ba9=++_0x480df9;notiMessage('['+_0x5b4ba9+_0x41518a(0x1de),0x7d0),localStorage[_0x41518a(0x1fd)](_0x41518a(0x1d1),_0x24b62b+','+_0x38e063+','+_0x5b4ba9),localStorage['setItem'](_0x41518a(0x1bd),_0x60e6c6[_0x41518a(0x1e8)]());}finally{const _0x2e264c=++_0x480df9;notiMessage('['+_0x2e264c+_0x41518a(0x1de),0x7d0),isFunctionARunning=![],localStorage[_0x41518a(0x1fd)](_0x41518a(0x1d1),_0x24b62b+','+_0x38e063+','+_0x2e264c),localStorage[_0x41518a(0x1fd)](_0x41518a(0x1bd),_0x60e6c6['toISOString']());}}async function translateText(_0x2654e8,_0x108fa6,_0x2ad2ab){const _0x97b37f=a0_0x2318a8,_0x2640fd=_0x2654e8[_0x97b37f(0x1eb)](/[\r\n]+/g,',\x20')[_0x97b37f(0x1eb)](/([!?.,])\s*,\s*/g,'$1\x20')['replace'](/[^\p{L}\p{N}\s.,;'"?!()]+/gu,'')['replace'](/ {2,}/g,'\x20')[_0x97b37f(0x207)]();console['log'](_0x2640fd);var _0x11950c=_0x97b37f(0x1f2)+_0x108fa6+'&tl='+_0x2ad2ab+_0x97b37f(0x208)+encodeURIComponent(_0x2640fd);try{const _0x2005f9=await fetch(_0x11950c);if(!_0x2005f9['ok']){if(_0x2005f9[_0x97b37f(0x1c2)]===0x1f4)throw new Error(_0x97b37f(0x1c3));else{const _0x2ba9ec=await _0x2005f9[_0x97b37f(0x1b8)](),_0x3def89=new Error(_0x2ba9ec[_0x97b37f(0x1e7)][_0x97b37f(0x1d4)]);_0x3def89[_0x97b37f(0x1db)]=_0x2ba9ec[_0x97b37f(0x1e7)][_0x97b37f(0x1db)];throw _0x3def89;}}const _0x82feda=await _0x2005f9[_0x97b37f(0x1b8)]();if(Array[_0x97b37f(0x1c8)](_0x82feda)&&_0x82feda[_0x97b37f(0x20b)]>0x0&&Array['isArray'](_0x82feda[0x0])){var _0x4ce17c=_0x82feda[0x0][_0x97b37f(0x1e9)](_0x1cfb56=>_0x1cfb56[0x0])[_0x97b37f(0x1f9)]('\x20');return inputText['textContent']=_0x4ce17c['replace'](/ {2,}/g,'\x20'),setTimeout(()=>{startAutoScroll();},0x7d0),console[_0x97b37f(0x204)](_0x4ce17c[_0x97b37f(0x1eb)](/ {2,}/g,'\x20')),_0x4ce17c[_0x97b37f(0x1eb)](/ {2,}/g,'\x20');}else return inputText[_0x97b37f(0x1c5)]=_0x82feda,_0x82feda;}catch(_0x520134){inputText[_0x97b37f(0x1c5)]=_0x520134[_0x97b37f(0x1d4)];throw _0x520134;}}async function autoScroll(){const _0x3cbdda=a0_0x2318a8;var _0x319faa=inputText[_0x3cbdda(0x1b6)]-inputText[_0x3cbdda(0x1ca)];if(runCount>=maxRunCount)return;scrollAmount+=scrollSpeed,(scrollAmount>=_0x319faa||scrollAmount<=0x0)&&(scrollSpeed=-scrollSpeed,runCount++),inputText[_0x3cbdda(0x1dd)]=scrollAmount,requestAnimationFrame(autoScroll);}async function startAutoScroll(){scrollAmount=0x0,runCount=0x0,scrollSpeed=0.5,autoScroll();}function a0_0x1cb3(_0x3664a4,_0x3387bf){const _0x21ba4a=a0_0x21ba();return a0_0x1cb3=function(_0x1cb351,_0x521ed6){_0x1cb351=_0x1cb351-0x1b0;let _0x2ae49f=_0x21ba4a[_0x1cb351];return _0x2ae49f;},a0_0x1cb3(_0x3664a4,_0x3387bf);}async function detectLanguage(_0x1ac17d){const _0x55174d=a0_0x2318a8;var _0x1411d2=_0x55174d(0x1bc)+encodeURIComponent(_0x1ac17d);try{const _0xe3438a=await fetch(_0x1411d2),_0x434a1d=await _0xe3438a[_0x55174d(0x1b8)]();var _0x471187=_0x434a1d[0x8][0x0][0x0];return console[_0x55174d(0x204)](_0x55174d(0x1bf),_0x471187),_0x471187;}catch(_0x33561a){console[_0x55174d(0x1e7)](_0x55174d(0x1e5),_0x33561a);throw _0x33561a;}}async function transLogic(_0x23551a){const _0x19cda6=a0_0x2318a8,_0x17d5fb=localStorage[_0x19cda6(0x1b7)](_0x19cda6(0x1c6)),_0x545aab=localStorage[_0x19cda6(0x1b7)](_0x17d5fb+_0x19cda6(0x1f7));if(_0x545aab===null){const _0x3b3de6=await detectLanguage(_0x23551a);localStorage[_0x19cda6(0x1fd)](_0x17d5fb+_0x19cda6(0x1f7),_0x3b3de6);const _0x189e3a=await translateText(_0x23551a,_0x3b3de6,'en');return translateText(_0x189e3a,'en','vi');}else{if(_0x545aab==='en')return translateText(_0x23551a,'en','vi');else{const _0x18fc52=await translateText(_0x23551a,_0x545aab,'en');return translateText(_0x18fc52,'en','vi');}}}function a0_0x21ba(){const _0x119304=['00c7b1f2-0d6b-4e7b-9b0b-0b6c00c7b1f2','blocks','userAgent','_gameLang','.gb','join','1080DxNmYb','image/png','8073774QMOKTc','setItem','type','XMLHttpRequest','turbo','image.png','DOMContentLoaded','gba','log','width','POST','trim','&dt=t&q=','origin','4JfRZJc','length','text','1698400JXYHgi','https://seep.eu.org/http://158.160.66.115:40000/image_to_text','addEventListener','568769FPvESM','touchcancel','getElementById','classList','3166680OGMVRz','height','append','gbc','scrollWidth','getItem','json','onerror','inputText','_setArea','https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&dt=ld&q=','lastSavedDate','20796iDTcub','Language:','logoOcr','innerWidth','status','Internal\x20Server\x20Error','round','textContent','gameName','500\x20Internal\x20Server\x20Error','isArray','image','clientWidth','readResult','toggle','backgroundPositionX','add','canvas','mouseup','ApiAzure','readAsDataURL','screenSize','message','split','turbo-ocr','.png','endsWith','location','result','code','touchend','scrollLeft',']\x20Times\x20Azure','toDataURL','getFullYear','5299kiirbJ','lines','getContext','createElement','Error\x20detecting\x20language:','user','error','toISOString','map','visible','replace','forEach','7288AMdZHp','captureOCR','Used\x20more\x20than\x204950\x20times.\x20Continue\x20using\x20next\x20month.','getMonth','imageanalysis:analyze?features=caption,read&model-version=latest&api-version=2024-02-01','https://translate.googleapis.com/translate_a/single?client=gtx&sl=','469176avMZkz'];a0_0x21ba=function(){return _0x119304;};return a0_0x21ba();}function dataURItoBlob(_0x72d277){const _0x1f15aa=a0_0x2318a8,_0x29c631=atob(_0x72d277),_0x21e75c=new ArrayBuffer(_0x29c631['length']),_0x32cbd1=new Uint8Array(_0x21e75c);for(let _0x538f0a=0x0;_0x538f0a<_0x29c631[_0x1f15aa(0x20b)];_0x538f0a++){_0x32cbd1[_0x538f0a]=_0x29c631['charCodeAt'](_0x538f0a);}return new Blob([_0x21e75c],{'type':'image/png'});}function logoOcr(){const _0x44c193=a0_0x2318a8;var _0x3e7e85=Math['floor'](Math['random']()*0x3)+0x1,_0x222a83=-0xf*_0x3e7e85+'px';document[_0x44c193(0x1b0)](_0x44c193(0x1c0))['style'][_0x44c193(0x1cd)]=_0x222a83;}document['addEventListener'](a0_0x2318a8(0x202),function(){const _0x263bb0=a0_0x2318a8;ID[_0x263bb0(0x1ec)](function(_0x3bc5ee){const _0x39a03a=_0x263bb0,_0x2d00a6=document['getElementById'](_0x3bc5ee);_0x2d00a6&&_0x2d00a6[_0x39a03a(0x20f)]('touchstart',function(){const _0x1529ed=_0x39a03a;!isFunctionARunning&&turbo[_0x1529ed(0x1b1)]['remove']('turbo-ocr');});}),[_0x263bb0(0x1d0),_0x263bb0(0x1dc),_0x263bb0(0x211)][_0x263bb0(0x1ec)](_0x121edf=>{const _0x28e58e=_0x263bb0;turbo[_0x28e58e(0x20f)](_0x121edf,()=>{clickTurbo++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{clickTurbo===0x1&&(!isFunctionARunning&&(isFunctionARunning=!![],getImage(),logoOcr())),clickTurbo=0x0;},0x12c);}),areaSet[_0x28e58e(0x20f)](_0x121edf,()=>{const _0x4681c7=_0x28e58e;areaTrans['classList'][_0x4681c7(0x1cc)](_0x4681c7(0x1ea));});});}); \ No newline at end of file +const a0_0x553258=a0_0x9c0c;(function(_0x41ee8c,_0x4a82af){const _0x35d1ca=a0_0x9c0c,_0x19e16f=_0x41ee8c();while(!![]){try{const _0x1e9b80=parseInt(_0x35d1ca(0xed))/0x1*(-parseInt(_0x35d1ca(0xc7))/0x2)+-parseInt(_0x35d1ca(0xf8))/0x3+-parseInt(_0x35d1ca(0xbf))/0x4+parseInt(_0x35d1ca(0xd2))/0x5*(parseInt(_0x35d1ca(0xf7))/0x6)+-parseInt(_0x35d1ca(0x107))/0x7*(-parseInt(_0x35d1ca(0xbc))/0x8)+parseInt(_0x35d1ca(0xfd))/0x9*(-parseInt(_0x35d1ca(0xe5))/0xa)+-parseInt(_0x35d1ca(0xd9))/0xb*(-parseInt(_0x35d1ca(0xc4))/0xc);if(_0x1e9b80===_0x4a82af)break;else _0x19e16f['push'](_0x19e16f['shift']());}catch(_0x356624){_0x19e16f['push'](_0x19e16f['shift']());}}}(a0_0x199f,0x79c7c));import*as a0_0x49a8c1 from'./main.js';var scrollAmount=0x0,scrollSpeed=0.5,runCount=0x0;let isFunctionARunning=![];var maxRunCount=0x2;let clickTurbo=0x0,clickTimeout;const inputText=document[a0_0x553258(0xc9)]('inputText'),input=document[a0_0x553258(0xc9)](a0_0x553258(0xbd)),turbo=document[a0_0x553258(0xc9)]('turbo'),ID=['A','B','R','L'];function a0_0x9c0c(_0x239755,_0x32f176){const _0x199f89=a0_0x199f();return a0_0x9c0c=function(_0x9c0cd4,_0x5ec2ce){_0x9c0cd4=_0x9c0cd4-0xb0;let _0x3acf5c=_0x199f89[_0x9c0cd4];return _0x3acf5c;},a0_0x9c0c(_0x239755,_0x32f176);}async function getImage(){const _0x40b72a=a0_0x553258;turbo[_0x40b72a(0xea)][_0x40b72a(0xc3)](_0x40b72a(0xb0));try{const _0x3f52c9=localStorage[_0x40b72a(0xfb)](_0x40b72a(0xc0)),_0x566d67=_0x3f52c9[_0x40b72a(0xf6)](/\.(gba|gbc|gb|zip)$/,'.png'),_0x868c9d=await a0_0x49a8c1[_0x40b72a(0xd6)](_0x566d67);console[_0x40b72a(0x100)](_0x868c9d);const _0x39b4df=new Blob([_0x868c9d],{'type':'image/png'}),_0x177247=await new Promise((_0x367281,_0x418ba1)=>{const _0x6da63a=_0x40b72a,_0xc85e7c=new FileReader();_0xc85e7c['onloadend']=()=>_0x367281(_0xc85e7c[_0x6da63a(0x10d)]),_0xc85e7c[_0x6da63a(0x112)]=_0x418ba1,_0xc85e7c[_0x6da63a(0xfc)](_0x39b4df);}),_0x30276f=new Image();console[_0x40b72a(0x100)](_0x177247),_0x30276f[_0x40b72a(0x10f)]=_0x177247,_0x30276f[_0x40b72a(0xd8)]=()=>{const _0xc27a6e=_0x40b72a,_0x1baf8c=document[_0xc27a6e(0xbb)]('canvas'),_0x4a07a0=_0x1baf8c['getContext']('2d'),_0x5d7dc1=0x4;let _0x32ebbf;_0x3f52c9[_0xc27a6e(0x113)](_0xc27a6e(0xbe))||_0x3f52c9[_0xc27a6e(0x113)](_0xc27a6e(0xfa))?(_0x32ebbf=Math[_0xc27a6e(0xc6)](0xa0/(window[_0xc27a6e(0xd0)]-0xe6)),console[_0xc27a6e(0x100)]('gbc',_0x32ebbf)):(_0x32ebbf=Math['round'](0xf0/(window[_0xc27a6e(0xd0)]-0x96)),console[_0xc27a6e(0x100)](_0xc27a6e(0xc8),_0x32ebbf));const _0x340d10=localStorage[_0xc27a6e(0xfb)](_0x3f52c9+_0xc27a6e(0xe3))||localStorage[_0xc27a6e(0xfb)](_0xc27a6e(0xdb)),[_0x54cd50,_0x336b0e,_0x257704,_0x48e58e]=_0x340d10['split'](',')['map'](Number);_0x1baf8c[_0xc27a6e(0x103)]=_0x257704*_0x32ebbf*_0x5d7dc1,_0x1baf8c[_0xc27a6e(0xec)]=_0x48e58e*_0x32ebbf*_0x5d7dc1,_0x4a07a0['drawImage'](_0x30276f,_0x54cd50*_0x32ebbf,_0x336b0e*_0x32ebbf,_0x257704*_0x32ebbf,_0x48e58e*_0x32ebbf,0x0,0x0,_0x257704*_0x32ebbf*_0x5d7dc1,_0x48e58e*_0x32ebbf*_0x5d7dc1),console[_0xc27a6e(0x100)](_0x1baf8c[_0xc27a6e(0xf5)](_0xc27a6e(0xf9)));const _0x415169=_0x1baf8c[_0xc27a6e(0xf5)](_0xc27a6e(0xf9))[_0xc27a6e(0xcb)](',')[0x1],_0x1485ae=localStorage[_0xc27a6e(0xfb)](_0xc27a6e(0xe7));_0x1485ae?azureServer(_0x415169):freeServer(_0x415169);};}catch(_0x330117){inputText[_0x40b72a(0xc1)]=_0x330117['message'];}}async function freeServer(_0x7676a5){const _0x4bece6=a0_0x553258;let _0x5e72a4,_0x3878a6=0x0;const _0x5767af=setInterval(()=>{const _0xfa9d76=a0_0x9c0c;_0x3878a6+=0x1,_0x3878a6<=0x64&&(inputText[_0xfa9d76(0xc1)]=_0xfa9d76(0xb5)+_0x3878a6+'%');},0x64);try{const _0x148068=dataURItoBlob(_0x7676a5),_0x3d584d=new FormData();_0x3d584d[_0x4bece6(0xe6)](_0x4bece6(0x10e),_0x148068,_0x4bece6(0xe4)),_0x3d584d[_0x4bece6(0xe6)](_0x4bece6(0xe8),_0x4bece6(0xde)),_0x5e72a4=await fetch(_0x4bece6(0xe1),{'method':_0x4bece6(0x108),'body':_0x3d584d,'headers':{'Origin':window['location'][_0x4bece6(0xcc)],'X-Requested-With':_0x4bece6(0xf0),'User-Agent':navigator['userAgent']}});const _0x3403d4=await _0x5e72a4[_0x4bece6(0xdd)]();if(!_0x5e72a4['ok']||_0x3403d4['type']===_0x4bece6(0xd7)){const _0x5a21d0=_0x5e72a4['ok']?_0x3403d4[_0x4bece6(0xd7)][_0x4bece6(0xc5)]:_0x5e72a4[_0x4bece6(0xff)]===0x1f4?_0x4bece6(0x111):(await _0x5e72a4[_0x4bece6(0xdd)]())[_0x4bece6(0xd7)][_0x4bece6(0xc5)];throw new Error(_0x5a21d0);}console[_0x4bece6(0x100)](_0x3403d4['text']),transLogic(_0x3403d4['text']);}catch(_0x73716d){inputText[_0x4bece6(0xc1)]=_0x73716d['message'];}finally{clearInterval(_0x5767af),isFunctionARunning=![];}}async function azureServer(_0x1b8426){const _0x4d366d=a0_0x553258;inputText[_0x4d366d(0xc1)]=_0x4d366d(0xca);const _0x490d37=localStorage[_0x4d366d(0xfb)](_0x4d366d(0xe7));let [_0x172c7a,_0x3e2371,_0x77e2d6]=_0x490d37[_0x4d366d(0xcb)](',');_0x77e2d6=parseInt(_0x77e2d6);const _0x2b385e=new Date(),_0x44a27f=_0x2b385e[_0x4d366d(0xc2)](),_0x28209c=_0x2b385e['getFullYear'](),_0xe37afc=localStorage[_0x4d366d(0xfb)](_0x4d366d(0xf1)),_0x47034b=_0xe37afc?new Date(_0xe37afc):null;_0x47034b&&(_0x44a27f!==_0x47034b[_0x4d366d(0xc2)]()||_0x28209c!==_0x47034b[_0x4d366d(0xee)]())&&(_0x77e2d6=0x0,localStorage[_0x4d366d(0xe9)]('lastSavedDate',_0x2b385e[_0x4d366d(0xf3)]()));if(_0x77e2d6>=0x1356){inputText[_0x4d366d(0xc1)]=_0x4d366d(0xd1);return;}try{const _0x192222=await fetch(_0x3e2371+_0x4d366d(0xb4),{'method':_0x4d366d(0x108),'headers':{'Ocp-Apim-Subscription-Key':_0x172c7a,'Content-Type':_0x4d366d(0xb3)},'body':dataURItoBlob(_0x1b8426)}),_0x2830d4=await _0x192222[_0x4d366d(0xdd)]();if(!_0x192222['ok']||_0x2830d4[_0x4d366d(0x102)]===_0x4d366d(0xd7)){const _0x123d47=_0x192222['ok']?_0x2830d4[_0x4d366d(0xd7)][_0x4d366d(0xc5)]:_0x192222[_0x4d366d(0xff)]===0x1f4?_0x4d366d(0xe2):(await _0x192222[_0x4d366d(0xdd)]())[_0x4d366d(0xd7)]['message'];throw new Error(_0x123d47);}const _0x5e88a8=_0x2830d4[_0x4d366d(0x106)][_0x4d366d(0xce)][0x0],_0x3425b4=_0x5e88a8[_0x4d366d(0xba)]||[],_0x3cb0cd=_0x3425b4[_0x4d366d(0xdf)](_0x1e5082=>_0x1e5082[_0x4d366d(0xb7)])[_0x4d366d(0x10c)]('\x0a');transLogic(_0x3cb0cd);}catch(_0x2bbd83){inputText['textContent']=_0x2bbd83[_0x4d366d(0xc5)];const _0x225140=++_0x77e2d6;notiMessage('['+_0x225140+_0x4d366d(0xb8),0x7d0),localStorage[_0x4d366d(0xe9)]('ApiAzure',_0x172c7a+','+_0x3e2371+','+_0x225140),localStorage['setItem']('lastSavedDate',_0x2b385e['toISOString']());}finally{const _0x2fa685=++_0x77e2d6;notiMessage('['+_0x2fa685+_0x4d366d(0xb8),0x7d0),isFunctionARunning=![],localStorage[_0x4d366d(0xe9)](_0x4d366d(0xe7),_0x172c7a+','+_0x3e2371+','+_0x2fa685),localStorage[_0x4d366d(0xe9)](_0x4d366d(0xf1),_0x2b385e[_0x4d366d(0xf3)]());}}async function translateText(_0xb45b37,_0x39dfed,_0x9a9c8f){const _0x2fb1e3=a0_0x553258,_0x4b455c=_0xb45b37[_0x2fb1e3(0xf6)](/[\r\n]+/g,',\x20')['replace'](/([!?.,])\s*,\s*/g,_0x2fb1e3(0xfe))['replace'](/[^\p{L}\p{N}\s.,;'"?!()]+/gu,'')[_0x2fb1e3(0xf6)](/ {2,}/g,'\x20')[_0x2fb1e3(0xcd)]();console['log'](_0x4b455c);var _0x541259=_0x2fb1e3(0x105)+_0x39dfed+'&tl='+_0x9a9c8f+_0x2fb1e3(0xe0)+encodeURIComponent(_0x4b455c);try{const _0x28b7a7=await fetch(_0x541259);if(!_0x28b7a7['ok']){if(_0x28b7a7[_0x2fb1e3(0xff)]===0x1f4)throw new Error(_0x2fb1e3(0x111));else{const _0x596bb2=await _0x28b7a7['json'](),_0x523726=new Error(_0x596bb2[_0x2fb1e3(0xd7)][_0x2fb1e3(0xc5)]);_0x523726[_0x2fb1e3(0x110)]=_0x596bb2['error'][_0x2fb1e3(0x110)];throw _0x523726;}}const _0x3a6754=await _0x28b7a7['json']();if(Array[_0x2fb1e3(0xcf)](_0x3a6754)&&_0x3a6754['length']>0x0&&Array['isArray'](_0x3a6754[0x0])){var _0x434d08=_0x3a6754[0x0][_0x2fb1e3(0xdf)](_0x23f132=>_0x23f132[0x0])[_0x2fb1e3(0x10c)]('\x20');return inputText['textContent']=_0x434d08[_0x2fb1e3(0xf6)](/ {2,}/g,'\x20'),setTimeout(()=>{startAutoScroll();},0x7d0),console[_0x2fb1e3(0x100)](_0x434d08['replace'](/ {2,}/g,'\x20')),_0x434d08[_0x2fb1e3(0xf6)](/ {2,}/g,'\x20');}else return inputText[_0x2fb1e3(0xc1)]=_0x3a6754,_0x3a6754;}catch(_0x123670){inputText[_0x2fb1e3(0xc1)]=_0x123670[_0x2fb1e3(0xc5)];throw _0x123670;}}async function autoScroll(){const _0x365cb4=a0_0x553258;var _0x5c8c22=inputText[_0x365cb4(0xd3)]-inputText['clientWidth'];if(runCount>=maxRunCount)return;scrollAmount+=scrollSpeed,(scrollAmount>=_0x5c8c22||scrollAmount<=0x0)&&(scrollSpeed=-scrollSpeed,runCount++),inputText[_0x365cb4(0x104)]=scrollAmount,requestAnimationFrame(autoScroll);}async function startAutoScroll(){scrollAmount=0x0,runCount=0x0,scrollSpeed=0.5,autoScroll();}async function detectLanguage(_0x5848f2){const _0x2547de=a0_0x553258;var _0x1b0ba5=_0x2547de(0xf2)+encodeURIComponent(_0x5848f2);try{const _0x39c695=await fetch(_0x1b0ba5),_0x4f8eff=await _0x39c695[_0x2547de(0xdd)]();var _0x168f17=_0x4f8eff[0x8][0x0][0x0];return console[_0x2547de(0x100)](_0x2547de(0xb9),_0x168f17),_0x168f17;}catch(_0x2c1aa0){console[_0x2547de(0xd7)](_0x2547de(0x114),_0x2c1aa0);throw _0x2c1aa0;}}async function transLogic(_0x1f97e0){const _0x2fdd2b=a0_0x553258,_0xac1151=localStorage['getItem']('gameName'),_0x197eb0=localStorage[_0x2fdd2b(0xfb)](_0xac1151+_0x2fdd2b(0xb6));if(_0x197eb0===null){const _0x4ccc65=await detectLanguage(_0x1f97e0);localStorage[_0x2fdd2b(0xe9)](_0xac1151+_0x2fdd2b(0xb6),_0x4ccc65);const _0xdf1e09=await translateText(_0x1f97e0,_0x4ccc65,'en');return translateText(_0xdf1e09,'en','vi');}else{if(_0x197eb0==='en')return translateText(_0x1f97e0,'en','vi');else{const _0x903e22=await translateText(_0x1f97e0,_0x197eb0,'en');return translateText(_0x903e22,'en','vi');}}}function dataURItoBlob(_0x20f0b4){const _0xb9d65a=a0_0x553258,_0xdb35f8=atob(_0x20f0b4),_0x2d3b28=new ArrayBuffer(_0xdb35f8['length']),_0x100af4=new Uint8Array(_0x2d3b28);for(let _0x123598=0x0;_0x123598<_0xdb35f8[_0xb9d65a(0x109)];_0x123598++){_0x100af4[_0x123598]=_0xdb35f8[_0xb9d65a(0xeb)](_0x123598);}return new Blob([_0x2d3b28],{'type':_0xb9d65a(0xf9)});}function a0_0x199f(){const _0x1708e8=['log','mouseup','type','width','scrollLeft','https://translate.googleapis.com/translate_a/single?client=gtx&sl=','readResult','9436BmkmCN','POST','length','DOMContentLoaded','visible','join','result','image','src','code','Internal\x20Server\x20Error','onerror','endsWith','Error\x20detecting\x20language:','turbo-ocr','touchcancel','addEventListener','application/octet-stream','imageanalysis:analyze?features=caption,read&model-version=latest&api-version=2024-02-01','Waiting..','_gameLang','text',']\x20Times\x20Azure','Language:','lines','createElement','2328TaoVNB','input-container','.gbc','2741284IGkrhX','gameName','textContent','getMonth','add','36bRXLQq','message','round','20KKlbeR','gba','getElementById','...','split','origin','trim','blocks','isArray','innerWidth','Used\x20more\x20than\x204950\x20times.\x20Continue\x20using\x20next\x20month.','12420ITDhkG','scrollWidth','remove','random','captureOCR','error','onload','8936741YzrfHc','style','screenSize','forEach','json','00c7b1f2-0d6b-4e7b-9b0b-0b6c00c7b1f2','map','&dt=t&q=','https://seep.eu.org/http://158.160.66.115:40000/image_to_text','500\x20Internal\x20Server\x20Error','_setArea','image.png','10rjWHTP','append','ApiAzure','user','setItem','classList','charCodeAt','height','69077iYMfeT','getFullYear','touchstart','XMLHttpRequest','lastSavedDate','https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&dt=ld&q=','toISOString','touchend','toDataURL','replace','906azgHbI','1718487EKhZzI','image/png','.gb','getItem','readAsDataURL','6812217rRKhOa','$1\x20','status'];a0_0x199f=function(){return _0x1708e8;};return a0_0x199f();}function logoOcr(){const _0x7d7af8=a0_0x553258;var _0x173078=Math['floor'](Math[_0x7d7af8(0xd5)]()*0x3)+0x1,_0x195607=-0xf*_0x173078+'px';document[_0x7d7af8(0xc9)]('logoOcr')[_0x7d7af8(0xda)]['backgroundPositionX']=_0x195607;}document[a0_0x553258(0xb2)](a0_0x553258(0x10a),function(){const _0x4c18fa=a0_0x553258;ID[_0x4c18fa(0xdc)](function(_0x37c099){const _0xcb4c63=_0x4c18fa,_0x783d76=document[_0xcb4c63(0xc9)](_0x37c099);_0x783d76&&_0x783d76[_0xcb4c63(0xb2)](_0xcb4c63(0xef),function(){const _0x281451=_0xcb4c63;!isFunctionARunning&&turbo[_0x281451(0xea)][_0x281451(0xd4)](_0x281451(0xb0));});}),[_0x4c18fa(0x101),_0x4c18fa(0xf4),_0x4c18fa(0xb1)][_0x4c18fa(0xdc)](_0x444ab1=>{const _0x2f34cf=_0x4c18fa;turbo[_0x2f34cf(0xb2)](_0x444ab1,()=>{clickTurbo++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{clickTurbo===0x1&&(!isFunctionARunning&&(isFunctionARunning=!![],getImage(),logoOcr())),clickTurbo=0x0;},0x12c);}),areaSet[_0x2f34cf(0xb2)](_0x444ab1,()=>{const _0x5f29ac=_0x2f34cf;areaTrans[_0x5f29ac(0xea)]['toggle'](_0x5f29ac(0x10b));});});}); \ No newline at end of file diff --git a/docs/src/js/setting.js b/docs/src/js/setting.js index 01df1fd..cd2f30c 100644 --- a/docs/src/js/setting.js +++ b/docs/src/js/setting.js @@ -1 +1 @@ -function a0_0x4789(){const _0x568c4c=['deg)\x20sepia(','brightness','uploadCheats','1722jAnRAM','box8','Gt-4','indexOf','Auto\x20Switches\x20Slots','Line','box6','contrast','replace','classList','selected','autoStateCheck','xxxx\x20xx','visible','cheat0_enable\x20=\x20','reload','cheats\x20=\x201\x0a','contains',')\x20saturate(','_savedCheats','style','forEach','box3','remove','length','Gt-1','setItem','DELETE_CACHE','mouseup','location','onLine','img-shader','box7','box4','18nbaWBn','getItem','1280875XIODmE','box2','.cheats','2135844FTLNqB','saturate','touchstart','7713270ClgxPL','gameName','14306roysVM','active','Resumed!','brightness(','href','Sega','Off','Right','30fSUaKK','Crt','39416dhMwfu','.box','2939949xIxCNc','pauseGame','filter','hueRotate','log','add','CANCEL\x20is\x20disable\x20a\x20cheat\x20/\x20OK\x20is\x20enable\x20a\x20cheat','selectedShader','prompt','controller','addEventListener','opacity','box5','serviceWorker','4427468lqWhXj','toFixed','postMessage',')\x20contrast(','toggle','textContent','min','box0','DOMContentLoaded','Left','sepia','touchcancel','.gba','Gt-2',')\x20hue-rotate(','Manual\x20Switches\x20Slots','box1','getElementById','querySelectorAll'];a0_0x4789=function(){return _0x568c4c;};return a0_0x4789();}const a0_0x4d24d8=a0_0x1ea0;function a0_0x1ea0(_0x50d2c6,_0x3bc0aa){const _0x478962=a0_0x4789();return a0_0x1ea0=function(_0x1ea02a,_0x1a4d47){_0x1ea02a=_0x1ea02a-0x1bd;let _0x22dd1f=_0x478962[_0x1ea02a];return _0x22dd1f;},a0_0x1ea0(_0x50d2c6,_0x3bc0aa);}(function(_0x4ddf73,_0x139d12){const _0x2010dd=a0_0x1ea0,_0x8de634=_0x4ddf73();while(!![]){try{const _0x25f73b=-parseInt(_0x2010dd(0x1d5))/0x1*(parseInt(_0x2010dd(0x1cb))/0x2)+-parseInt(_0x2010dd(0x1e1))/0x3+-parseInt(_0x2010dd(0x1ef))/0x4+-parseInt(_0x2010dd(0x1cd))/0x5*(-parseInt(_0x2010dd(0x1dd))/0x6)+parseInt(_0x2010dd(0x205))/0x7*(parseInt(_0x2010dd(0x1df))/0x8)+-parseInt(_0x2010dd(0x1d0))/0x9+parseInt(_0x2010dd(0x1d3))/0xa;if(_0x25f73b===_0x139d12)break;else _0x8de634['push'](_0x8de634['shift']());}catch(_0x362156){_0x8de634['push'](_0x8de634['shift']());}}}(a0_0x4789,0xc613c));import*as a0_0x3960bc from'./main.js';let selectedIndex=0x0;const imgShader=document['getElementById'](a0_0x4d24d8(0x1c8))||'Sega',brightnessX=localStorage['getItem'](a0_0x4d24d8(0x203))||0x1,contrastX=localStorage['getItem']('contrast')||0x1,saturateX=localStorage[a0_0x4d24d8(0x1cc)](a0_0x4d24d8(0x1d1))||0x1,hueRotateX=localStorage[a0_0x4d24d8(0x1cc)](a0_0x4d24d8(0x1e4))||0x0,sepiaX=localStorage[a0_0x4d24d8(0x1cc)](a0_0x4d24d8(0x1f9))||0x0,boxes=document[a0_0x4d24d8(0x201)](a0_0x4d24d8(0x1e0)),sdValues=['Sega',a0_0x4d24d8(0x1de),a0_0x4d24d8(0x1c2),a0_0x4d24d8(0x1fc),'Gt-3',a0_0x4d24d8(0x207),a0_0x4d24d8(0x20a)],menuPad=document['getElementById']('menu-pad'),controlSetting=document[a0_0x4d24d8(0x200)]('control-setting'),SDL2ID=['A','B','R','L','Up','Down',a0_0x4d24d8(0x1f8),a0_0x4d24d8(0x1dc)];async function Right(_0x5c6acf,_0x50b6b5,_0x177e95,_0x502dd4,_0x369b86){const _0x4698a3=a0_0x4d24d8;let _0x2568bd=document[_0x4698a3(0x200)](_0x5c6acf),_0x423e75=parseFloat(_0x2568bd[_0x4698a3(0x1f4)]);_0x423e75=Math[_0x4698a3(0x1f5)](_0x50b6b5,_0x423e75+_0x177e95),_0x2568bd['textContent']=_0x423e75[_0x4698a3(0x1f0)](0x1);if(_0x502dd4===_0x4698a3(0x1ec))imgShader[_0x4698a3(0x1bd)][_0x4698a3(0x1ec)]=_0x2568bd[_0x4698a3(0x1f4)],localStorage[_0x4698a3(0x1c3)](_0x369b86,_0x2568bd['textContent']);else{localStorage[_0x4698a3(0x1c3)](_0x369b86,_0x2568bd[_0x4698a3(0x1f4)]),await delay(0x64);const _0x3d42b9=localStorage['getItem']('brightness')||0x1,_0xe28549=localStorage[_0x4698a3(0x1cc)](_0x4698a3(0x20c))||0x1,_0x47bc38=localStorage[_0x4698a3(0x1cc)]('saturate')||0x1,_0x4d6a29=localStorage[_0x4698a3(0x1cc)](_0x4698a3(0x1e4))||0x0,_0xcd7094=localStorage[_0x4698a3(0x1cc)](_0x4698a3(0x1f9))||0x0;canvas[_0x4698a3(0x1bd)][_0x4698a3(0x1e3)]=_0x4698a3(0x1d8)+_0x3d42b9+_0x4698a3(0x1f2)+_0xe28549+_0x4698a3(0x217)+_0x47bc38+_0x4698a3(0x1fd)+_0x4d6a29+'deg)\x20sepia('+_0xcd7094+')';}}async function Left(_0x1d8d8c,_0x23e9ee,_0x33256d,_0x1b4409,_0x43c7fc){const _0x3b6b8b=a0_0x4d24d8;let _0x154822=document['getElementById'](_0x1d8d8c),_0x184129=parseFloat(_0x154822[_0x3b6b8b(0x1f4)]);_0x184129=Math['max'](_0x23e9ee,_0x184129-_0x33256d),_0x154822['textContent']=_0x184129['toFixed'](0x1);if(_0x1b4409==='opacity')imgShader[_0x3b6b8b(0x1bd)]['opacity']=_0x154822[_0x3b6b8b(0x1f4)],localStorage[_0x3b6b8b(0x1c3)](_0x43c7fc,_0x154822[_0x3b6b8b(0x1f4)]);else{localStorage[_0x3b6b8b(0x1c3)](_0x43c7fc,_0x154822[_0x3b6b8b(0x1f4)]),await delay(0x64);const _0x5ea93f=localStorage[_0x3b6b8b(0x1cc)](_0x3b6b8b(0x203))||0x1,_0x445a65=localStorage[_0x3b6b8b(0x1cc)]('contrast')||0x1,_0x5f4f8c=localStorage[_0x3b6b8b(0x1cc)]('saturate')||0x1,_0x261fcb=localStorage[_0x3b6b8b(0x1cc)](_0x3b6b8b(0x1e4))||0x0,_0x213ec5=localStorage['getItem'](_0x3b6b8b(0x1f9))||0x0;canvas[_0x3b6b8b(0x1bd)][_0x3b6b8b(0x1e3)]=_0x3b6b8b(0x1d8)+_0x5ea93f+_0x3b6b8b(0x1f2)+_0x445a65+_0x3b6b8b(0x217)+_0x5f4f8c+_0x3b6b8b(0x1fd)+_0x261fcb+_0x3b6b8b(0x202)+_0x213ec5+')';}}SDL2ID[a0_0x4d24d8(0x1be)](function(_0x2151d3){const _0x583c05=a0_0x4d24d8,_0x3aec4f=document[_0x583c05(0x200)](_0x2151d3);_0x3aec4f&&_0x3aec4f['addEventListener'](_0x583c05(0x1d2),function(){const _0x1db657=_0x583c05;!stateList['classList'][_0x1db657(0x216)](_0x1db657(0x212))&&(statePageButton[_0x1db657(0x20e)]['remove']('active'),canvas[_0x1db657(0x20e)][_0x1db657(0x1c0)](_0x1db657(0x212)),stateList['classList'][_0x1db657(0x1e6)]('visible'),a0_0x3960bc['resumeGame']()),!areaTrans[_0x1db657(0x20e)]['contains'](_0x1db657(0x212))&&areaTrans['classList'][_0x1db657(0x1f3)](_0x1db657(0x212));});}),document[a0_0x4d24d8(0x1eb)](a0_0x4d24d8(0x1f7),function(){const _0x38e382=a0_0x4d24d8,_0x5a7b3e=localStorage[_0x38e382(0x1cc)](_0x38e382(0x1d4))||_0x38e382(0x211);box1['textContent']=localStorage[_0x38e382(0x1cc)](_0x5a7b3e+_0x38e382(0x218))||'xxxx\x20xx';if(localStorage[_0x38e382(0x1cc)](_0x38e382(0x210))==='On')box2[_0x38e382(0x1f4)]='On';else{box2['textContent']=_0x38e382(0x1db);const _0x32942b='Off';localStorage[_0x38e382(0x1c3)](_0x38e382(0x210),_0x32942b);}box3['textContent']=localStorage[_0x38e382(0x1cc)](_0x38e382(0x1e8))||_0x38e382(0x1da),box4[_0x38e382(0x1f4)]=localStorage[_0x38e382(0x1cc)](_0x38e382(0x1ec))||0x1,box5[_0x38e382(0x1f4)]=localStorage['getItem']('brightness')||0x1,box6[_0x38e382(0x1f4)]=localStorage[_0x38e382(0x1cc)]('contrast')||0x1,box7[_0x38e382(0x1f4)]=localStorage[_0x38e382(0x1cc)]('saturate')||0x1,box8[_0x38e382(0x1f4)]=localStorage[_0x38e382(0x1cc)](_0x38e382(0x1f9))||0x0,imgShader['classList']['add'](localStorage[_0x38e382(0x1cc)](_0x38e382(0x1e8))),imgShader[_0x38e382(0x1bd)][_0x38e382(0x1ec)]=localStorage[_0x38e382(0x1cc)]('opacity')||0.5,canvas[_0x38e382(0x1bd)][_0x38e382(0x1e3)]=_0x38e382(0x1d8)+brightnessX+')\x20contrast('+contrastX+_0x38e382(0x217)+saturateX+_0x38e382(0x1fd)+hueRotateX+_0x38e382(0x202)+sepiaX+')';let _0x51c747=sdValues[0x0];const _0x213bd7=()=>{const _0x50bc28=_0x38e382;boxes[_0x50bc28(0x1be)]((_0x430c7f,_0x2f3028)=>{const _0x11c669=_0x50bc28;_0x2f3028===selectedIndex?_0x430c7f[_0x11c669(0x20e)][_0x11c669(0x1e6)](_0x11c669(0x20f)):_0x430c7f[_0x11c669(0x20e)][_0x11c669(0x1c0)](_0x11c669(0x20f));});};_0x213bd7(),[_0x38e382(0x1c5),'touchend',_0x38e382(0x1fa)][_0x38e382(0x1be)](_0x5192e7=>{const _0x5c02dc=_0x38e382;document[_0x5c02dc(0x200)]('A')[_0x5c02dc(0x1eb)](_0x5192e7,()=>{const _0x230eaf=_0x5c02dc;if(menuPad[_0x230eaf(0x20e)][_0x230eaf(0x216)](_0x230eaf(0x1d6))){document[_0x230eaf(0x200)](_0x230eaf(0x1f6))[_0x230eaf(0x20e)][_0x230eaf(0x216)](_0x230eaf(0x20f))&&(setTimeout(()=>{const _0x5624ec=_0x230eaf;navigator[_0x5624ec(0x1c7)]?window['location'][_0x5624ec(0x214)](!![]):window[_0x5624ec(0x1c6)][_0x5624ec(0x1d9)]=window['location'][_0x5624ec(0x1d9)];},0x32),navigator[_0x230eaf(0x1ee)][_0x230eaf(0x1ea)][_0x230eaf(0x1f1)]({'type':_0x230eaf(0x1c4)}));if(document['getElementById']('box1')[_0x230eaf(0x20e)]['contains'](_0x230eaf(0x20f))){let _0xf84739=document['getElementById'](_0x230eaf(0x1ff));const _0x336294=localStorage[_0x230eaf(0x1cc)](_0x230eaf(0x1d4)),_0x1e3ee1=_0x336294[_0x230eaf(0x20d)](_0x230eaf(0x1fb),_0x230eaf(0x1cf)),_0x1e18b9=_0x230eaf(0x215);let _0x3b4345=![],_0x1f8421=_0x1e18b9;const _0x40b68f=window[_0x230eaf(0x1e9)]('Edit\x20cheat\x20code',localStorage['getItem'](_0x336294+'_savedCheats')||_0x230eaf(0x211));if(_0x40b68f!==null){const _0x2a21b7=confirm(_0x230eaf(0x1e7));_0x3b4345=_0x2a21b7,_0x1f8421+=_0x230eaf(0x213)+_0x3b4345+'\x0acheat0_code\x20=\x20\x22'+_0x40b68f+'\x22';const _0xb6e02f=new Blob([_0x1f8421],{'type':'text/plain'}),_0x5d6254=new File([_0xb6e02f],_0x1e3ee1);a0_0x3960bc[_0x230eaf(0x204)](_0x5d6254,_0x336294,_0x40b68f,_0x3b4345,_0xf84739);}}}}),document[_0x5c02dc(0x200)]('Up')['addEventListener'](_0x5192e7,()=>{const _0xfb7127=_0x5c02dc;menuPad['classList'][_0xfb7127(0x216)](_0xfb7127(0x1d6))&&(selectedIndex>0x0&&(selectedIndex--,_0x213bd7()));}),document[_0x5c02dc(0x200)]('Down')['addEventListener'](_0x5192e7,()=>{const _0xdba527=_0x5c02dc;menuPad[_0xdba527(0x20e)][_0xdba527(0x216)](_0xdba527(0x1d6))&&(selectedIndex{const _0xfec7e2=_0x5c02dc;if(menuPad[_0xfec7e2(0x20e)]['contains'](_0xfec7e2(0x1d6))){if(document[_0xfec7e2(0x200)](_0xfec7e2(0x1ce))['classList'][_0xfec7e2(0x216)](_0xfec7e2(0x20f))){let _0x41b3b4=document[_0xfec7e2(0x200)](_0xfec7e2(0x1ce));_0x41b3b4[_0xfec7e2(0x1f4)]=_0x41b3b4[_0xfec7e2(0x1f4)]==='On'?_0xfec7e2(0x1db):'On';if(_0x41b3b4[_0xfec7e2(0x1f4)]==='On'){const _0x57c01b='On';localStorage[_0xfec7e2(0x1c3)](_0xfec7e2(0x210),_0x57c01b),notiMessage(_0xfec7e2(0x209),0x5dc);}else{const _0x2713d9='Off';localStorage[_0xfec7e2(0x1c3)]('autoStateCheck',_0x2713d9),notiMessage(_0xfec7e2(0x1fe),0x5dc);}}if(document[_0xfec7e2(0x200)](_0xfec7e2(0x1bf))[_0xfec7e2(0x20e)][_0xfec7e2(0x216)]('selected')){let _0x3d14b4=document[_0xfec7e2(0x200)](_0xfec7e2(0x1bf)),_0x22725c=sdValues[_0xfec7e2(0x208)](_0x3d14b4[_0xfec7e2(0x1f4)]);_0x22725cimgShader[_0xfec7e2(0x20e)][_0xfec7e2(0x1c0)](_0x408e3f)),_0x51c747=_0x3d14b4[_0xfec7e2(0x1f4)],imgShader[_0xfec7e2(0x20e)][_0xfec7e2(0x1e6)](_0x51c747),localStorage[_0xfec7e2(0x1c3)]('selectedShader',_0x51c747);}document['getElementById'](_0xfec7e2(0x1ca))['classList'][_0xfec7e2(0x216)](_0xfec7e2(0x20f))&&Right(_0xfec7e2(0x1ca),0x1,0.1,_0xfec7e2(0x1ec),_0xfec7e2(0x1ec)),document[_0xfec7e2(0x200)](_0xfec7e2(0x1ed))[_0xfec7e2(0x20e)][_0xfec7e2(0x216)](_0xfec7e2(0x20f))&&Right(_0xfec7e2(0x1ed),0x2,0.1,_0xfec7e2(0x203),_0xfec7e2(0x203)),document[_0xfec7e2(0x200)]('box6')[_0xfec7e2(0x20e)][_0xfec7e2(0x216)](_0xfec7e2(0x20f))&&Right(_0xfec7e2(0x20b),0x2,0.1,_0xfec7e2(0x20c),'contrast'),document[_0xfec7e2(0x200)]('box7')[_0xfec7e2(0x20e)][_0xfec7e2(0x216)]('selected')&&Right('box7',0x4,0.1,_0xfec7e2(0x1d1),_0xfec7e2(0x1d1)),document['getElementById'](_0xfec7e2(0x206))['classList']['contains'](_0xfec7e2(0x20f))&&Right(_0xfec7e2(0x206),0x1,0.1,_0xfec7e2(0x1f9),_0xfec7e2(0x1f9));}}),document['getElementById'](_0x5c02dc(0x1f8))[_0x5c02dc(0x1eb)](_0x5192e7,()=>{const _0x1b3fed=_0x5c02dc;if(menuPad[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x1d6))){if(document[_0x1b3fed(0x200)]('box2')[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))){let _0x101264=document[_0x1b3fed(0x200)]('box2');_0x101264['textContent']=_0x101264[_0x1b3fed(0x1f4)]==='On'?_0x1b3fed(0x1db):'On';if(_0x101264[_0x1b3fed(0x1f4)]==='On'){const _0x4383d4='On';localStorage[_0x1b3fed(0x1c3)](_0x1b3fed(0x210),_0x4383d4),notiMessage(_0x1b3fed(0x209),0x5dc);}else{const _0x2acdfb=_0x1b3fed(0x1db);localStorage[_0x1b3fed(0x1c3)](_0x1b3fed(0x210),_0x2acdfb),notiMessage(_0x1b3fed(0x1fe),0x5dc);}}if(document[_0x1b3fed(0x200)](_0x1b3fed(0x1bf))[_0x1b3fed(0x20e)]['contains'](_0x1b3fed(0x20f))){let _0x251456=document['getElementById'](_0x1b3fed(0x1bf)),_0x592d49=sdValues['indexOf'](_0x251456[_0x1b3fed(0x1f4)]);_0x592d49>0x0?_0x251456[_0x1b3fed(0x1f4)]=sdValues[_0x592d49-0x1]:_0x251456['textContent']=sdValues[sdValues['length']-0x1],sdValues[_0x1b3fed(0x1be)](_0x45e3b2=>imgShader[_0x1b3fed(0x20e)][_0x1b3fed(0x1c0)](_0x45e3b2)),_0x51c747=_0x251456[_0x1b3fed(0x1f4)],imgShader[_0x1b3fed(0x20e)][_0x1b3fed(0x1e6)](_0x51c747),localStorage['setItem'](_0x1b3fed(0x1e8),_0x51c747);}document[_0x1b3fed(0x200)]('box4')[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))&&Left(_0x1b3fed(0x1ca),0x0,0.1,_0x1b3fed(0x1ec),_0x1b3fed(0x1ec)),document['getElementById'](_0x1b3fed(0x1ed))[_0x1b3fed(0x20e)][_0x1b3fed(0x216)]('selected')&&Left(_0x1b3fed(0x1ed),0x0,0.1,_0x1b3fed(0x203),'brightness'),document[_0x1b3fed(0x200)](_0x1b3fed(0x20b))[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))&&Left(_0x1b3fed(0x20b),0x0,0.1,_0x1b3fed(0x20c),_0x1b3fed(0x20c)),document['getElementById'](_0x1b3fed(0x1c9))[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))&&Left(_0x1b3fed(0x1c9),0x0,0.1,_0x1b3fed(0x1d1),_0x1b3fed(0x1d1)),document[_0x1b3fed(0x200)](_0x1b3fed(0x206))[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))&&Left('box8',0x0,0.1,'sepia','sepia');}}),menuPad[_0x5c02dc(0x1eb)](_0x5192e7,()=>{const _0x394d70=_0x5c02dc;menuPad[_0x394d70(0x20e)]['toggle']('active'),controlSetting[_0x394d70(0x20e)][_0x394d70(0x1f3)](_0x394d70(0x212)),controlSetting[_0x394d70(0x20e)]['contains'](_0x394d70(0x212))?(a0_0x3960bc['resumeGame'](),notiMessage(_0x394d70(0x1d7),0x7d0)):(a0_0x3960bc[_0x394d70(0x1e2)](),notiMessage('Paused!',0x7d0));});});}); \ No newline at end of file +const a0_0x5056bb=a0_0x1555;function a0_0x1555(_0x133c2e,_0x4ae6cd){const _0x565829=a0_0x5658();return a0_0x1555=function(_0x155585,_0x32b672){_0x155585=_0x155585-0x154;let _0x1e953f=_0x565829[_0x155585];return _0x1e953f;},a0_0x1555(_0x133c2e,_0x4ae6cd);}(function(_0x5c70f0,_0x43c2e4){const _0x110891=a0_0x1555,_0x33ccf9=_0x5c70f0();while(!![]){try{const _0x48415b=parseInt(_0x110891(0x16f))/0x1*(parseInt(_0x110891(0x17b))/0x2)+-parseInt(_0x110891(0x177))/0x3*(parseInt(_0x110891(0x17a))/0x4)+-parseInt(_0x110891(0x18f))/0x5*(parseInt(_0x110891(0x19d))/0x6)+-parseInt(_0x110891(0x194))/0x7+parseInt(_0x110891(0x1a3))/0x8+parseInt(_0x110891(0x164))/0x9+-parseInt(_0x110891(0x15b))/0xa;if(_0x48415b===_0x43c2e4)break;else _0x33ccf9['push'](_0x33ccf9['shift']());}catch(_0x3caf5a){_0x33ccf9['push'](_0x33ccf9['shift']());}}}(a0_0x5658,0x44d39));import*as a0_0x2afcfd from'./main.js';let selectedIndex=0x0;function a0_0x5658(){const _0x162cf1=['3109428JvJNdH','Paused!','postMessage','.box','style','box8','Manual\x20Switches\x20Slots','getElementById','box2','min','img-shader','38690RjhuDS','Auto\x20Switches\x20Slots','deg)\x20sepia(','box4','getItem','.cheats','Resumed!','classList','4383cswvaZ','_savedCheats','Gt-2','1140IygILb','26bofwsd','replace',')\x20contrast(','querySelectorAll','DOMContentLoaded','Sega','text/plain','Off','Gt-3','indexOf','setItem','length','.gba','box6','Gt-1','log','add','active','mouseup','forEach','274075jAwIRK','toFixed','visible','selectedShader','brightness','1416100ULMEgY','filter','cheats\x20=\x201\x0a','location','cheat0_enable\x20=\x20','touchstart','box1','saturate','\x0acheat0_code\x20=\x20\x22','48CveYYz','opacity','autoStateCheck','box5','xxxx\x20xx','box3','4445840TPqFTH','addEventListener','box7','controller','Left','toggle','max','menu-pad','uploadCheats','selected','Line','textContent','brightness(',')\x20saturate(','Down','serviceWorker','prompt','contains','DELETE_CACHE','Edit\x20cheat\x20code','Right','sepia','650740JsoLoh','gameName','href','resumeGame','hueRotate',')\x20hue-rotate(','remove','contrast','control-setting'];a0_0x5658=function(){return _0x162cf1;};return a0_0x5658();}const imgShader=document[a0_0x5056bb(0x16b)](a0_0x5056bb(0x16e))||a0_0x5056bb(0x180),brightnessX=localStorage['getItem'](a0_0x5056bb(0x193))||0x1,contrastX=localStorage[a0_0x5056bb(0x173)](a0_0x5056bb(0x162))||0x1,saturateX=localStorage[a0_0x5056bb(0x173)]('saturate')||0x1,hueRotateX=localStorage[a0_0x5056bb(0x173)]('hueRotate')||0x0,sepiaX=localStorage[a0_0x5056bb(0x173)](a0_0x5056bb(0x15a))||0x0,boxes=document[a0_0x5056bb(0x17e)](a0_0x5056bb(0x167)),sdValues=[a0_0x5056bb(0x180),'Crt',a0_0x5056bb(0x189),a0_0x5056bb(0x179),a0_0x5056bb(0x183),'Gt-4',a0_0x5056bb(0x1ad)],menuPad=document[a0_0x5056bb(0x16b)](a0_0x5056bb(0x1aa)),controlSetting=document[a0_0x5056bb(0x16b)](a0_0x5056bb(0x163)),SDL2ID=['A','B','R','L','Up','Down','Left',a0_0x5056bb(0x159)];async function Right(_0x5605ac,_0x2ca42f,_0x2a61d9,_0x5b211a,_0x4f13a8){const _0x4badfc=a0_0x5056bb;let _0x4efc51=document[_0x4badfc(0x16b)](_0x5605ac),_0x22e7f3=parseFloat(_0x4efc51[_0x4badfc(0x1ae)]);_0x22e7f3=Math[_0x4badfc(0x16d)](_0x2ca42f,_0x22e7f3+_0x2a61d9),_0x4efc51[_0x4badfc(0x1ae)]=_0x22e7f3[_0x4badfc(0x190)](0x1);if(_0x5b211a==='opacity')imgShader[_0x4badfc(0x168)][_0x4badfc(0x19e)]=_0x4efc51['textContent'],localStorage[_0x4badfc(0x185)](_0x4f13a8,_0x4efc51[_0x4badfc(0x1ae)]);else{localStorage[_0x4badfc(0x185)](_0x4f13a8,_0x4efc51['textContent']),await delay(0x64);const _0x598d64=localStorage[_0x4badfc(0x173)](_0x4badfc(0x193))||0x1,_0x44c548=localStorage['getItem'](_0x4badfc(0x162))||0x1,_0x554533=localStorage[_0x4badfc(0x173)](_0x4badfc(0x19b))||0x1,_0x2ff784=localStorage['getItem'](_0x4badfc(0x15f))||0x0,_0xfef57d=localStorage['getItem'](_0x4badfc(0x15a))||0x0;canvas[_0x4badfc(0x168)][_0x4badfc(0x195)]=_0x4badfc(0x1af)+_0x598d64+_0x4badfc(0x17d)+_0x44c548+')\x20saturate('+_0x554533+_0x4badfc(0x160)+_0x2ff784+_0x4badfc(0x171)+_0xfef57d+')';}}async function Left(_0x277c13,_0x5eb551,_0x4343c1,_0x2ac2c4,_0x30d926){const _0x54072b=a0_0x5056bb;let _0x3b176f=document[_0x54072b(0x16b)](_0x277c13),_0x12f480=parseFloat(_0x3b176f[_0x54072b(0x1ae)]);_0x12f480=Math[_0x54072b(0x1a9)](_0x5eb551,_0x12f480-_0x4343c1),_0x3b176f[_0x54072b(0x1ae)]=_0x12f480['toFixed'](0x1);if(_0x2ac2c4===_0x54072b(0x19e))imgShader[_0x54072b(0x168)]['opacity']=_0x3b176f[_0x54072b(0x1ae)],localStorage[_0x54072b(0x185)](_0x30d926,_0x3b176f['textContent']);else{localStorage[_0x54072b(0x185)](_0x30d926,_0x3b176f[_0x54072b(0x1ae)]),await delay(0x64);const _0x4bce2b=localStorage[_0x54072b(0x173)]('brightness')||0x1,_0x12150e=localStorage[_0x54072b(0x173)](_0x54072b(0x162))||0x1,_0x531f28=localStorage[_0x54072b(0x173)](_0x54072b(0x19b))||0x1,_0x4638e0=localStorage[_0x54072b(0x173)](_0x54072b(0x15f))||0x0,_0x973fa0=localStorage[_0x54072b(0x173)](_0x54072b(0x15a))||0x0;canvas[_0x54072b(0x168)][_0x54072b(0x195)]=_0x54072b(0x1af)+_0x4bce2b+_0x54072b(0x17d)+_0x12150e+_0x54072b(0x1b0)+_0x531f28+_0x54072b(0x160)+_0x4638e0+'deg)\x20sepia('+_0x973fa0+')';}}SDL2ID['forEach'](function(_0x55d5b4){const _0x30758a=a0_0x5056bb,_0x42d2b2=document['getElementById'](_0x55d5b4);_0x42d2b2&&_0x42d2b2[_0x30758a(0x1a4)](_0x30758a(0x199),function(){const _0x45be34=_0x30758a;!stateList[_0x45be34(0x176)][_0x45be34(0x156)](_0x45be34(0x191))&&(statePageButton[_0x45be34(0x176)]['remove'](_0x45be34(0x18c)),canvas['classList']['remove'](_0x45be34(0x191)),stateList[_0x45be34(0x176)][_0x45be34(0x18b)](_0x45be34(0x191)),a0_0x2afcfd[_0x45be34(0x15e)]()),!areaTrans[_0x45be34(0x176)][_0x45be34(0x156)](_0x45be34(0x191))&&areaTrans[_0x45be34(0x176)][_0x45be34(0x1a8)](_0x45be34(0x191));});}),document['addEventListener'](a0_0x5056bb(0x17f),function(){const _0x54783e=a0_0x5056bb,_0x4f26b8=localStorage[_0x54783e(0x173)]('gameName')||_0x54783e(0x1a1);box1[_0x54783e(0x1ae)]=localStorage['getItem'](_0x4f26b8+_0x54783e(0x178))||_0x54783e(0x1a1);if(localStorage[_0x54783e(0x173)]('autoStateCheck')==='On')box2[_0x54783e(0x1ae)]='On';else{box2['textContent']=_0x54783e(0x182);const _0x10558a=_0x54783e(0x182);localStorage[_0x54783e(0x185)](_0x54783e(0x19f),_0x10558a);}box3['textContent']=localStorage[_0x54783e(0x173)]('selectedShader')||_0x54783e(0x180),box4[_0x54783e(0x1ae)]=localStorage['getItem'](_0x54783e(0x19e))||0x1,box5[_0x54783e(0x1ae)]=localStorage['getItem'](_0x54783e(0x193))||0x1,box6['textContent']=localStorage['getItem']('contrast')||0x1,box7['textContent']=localStorage[_0x54783e(0x173)](_0x54783e(0x19b))||0x1,box8[_0x54783e(0x1ae)]=localStorage['getItem'](_0x54783e(0x15a))||0x0,imgShader['classList'][_0x54783e(0x18b)](localStorage[_0x54783e(0x173)](_0x54783e(0x192))),imgShader['style']['opacity']=localStorage[_0x54783e(0x173)](_0x54783e(0x19e))||0.5,canvas[_0x54783e(0x168)][_0x54783e(0x195)]=_0x54783e(0x1af)+brightnessX+_0x54783e(0x17d)+contrastX+_0x54783e(0x1b0)+saturateX+')\x20hue-rotate('+hueRotateX+'deg)\x20sepia('+sepiaX+')';let _0x2ae116=sdValues[0x0];const _0x4f7c0b=()=>{boxes['forEach']((_0x4446c4,_0x3665fa)=>{const _0x356e0d=a0_0x1555;_0x3665fa===selectedIndex?_0x4446c4[_0x356e0d(0x176)][_0x356e0d(0x18b)]('selected'):_0x4446c4['classList']['remove'](_0x356e0d(0x1ac));});};_0x4f7c0b(),[_0x54783e(0x18d),'touchend','touchcancel'][_0x54783e(0x18e)](_0x22abb7=>{const _0x38e6d6=_0x54783e;document[_0x38e6d6(0x16b)]('A')[_0x38e6d6(0x1a4)](_0x22abb7,()=>{const _0x4144a6=_0x38e6d6;if(menuPad['classList'][_0x4144a6(0x156)]('active')){document['getElementById']('box0')[_0x4144a6(0x176)][_0x4144a6(0x156)](_0x4144a6(0x1ac))&&(setTimeout(()=>{const _0xe051a5=_0x4144a6;navigator['onLine']?window[_0xe051a5(0x197)]['reload'](!![]):window['location']['href']=window[_0xe051a5(0x197)][_0xe051a5(0x15d)];},0x32),navigator[_0x4144a6(0x154)][_0x4144a6(0x1a6)][_0x4144a6(0x166)]({'type':_0x4144a6(0x157)}));if(document[_0x4144a6(0x16b)]('box1')['classList'][_0x4144a6(0x156)](_0x4144a6(0x1ac))){let _0x284d09=document['getElementById'](_0x4144a6(0x19a));const _0x5d5d21=localStorage[_0x4144a6(0x173)](_0x4144a6(0x15c)),_0x40a8e2=_0x5d5d21[_0x4144a6(0x17c)](_0x4144a6(0x187),_0x4144a6(0x174)),_0xdc1ba1=_0x4144a6(0x196);let _0x2b799a=![],_0x4167b3=_0xdc1ba1;const _0x5ebf33=window[_0x4144a6(0x155)](_0x4144a6(0x158),localStorage[_0x4144a6(0x173)](_0x5d5d21+_0x4144a6(0x178))||_0x4144a6(0x1a1));if(_0x5ebf33!==null){const _0xe4225=confirm('CANCEL\x20is\x20disable\x20a\x20cheat\x20/\x20OK\x20is\x20enable\x20a\x20cheat');_0x2b799a=_0xe4225,_0x4167b3+=_0x4144a6(0x198)+_0x2b799a+_0x4144a6(0x19c)+_0x5ebf33+'\x22';const _0x381883=new Blob([_0x4167b3],{'type':_0x4144a6(0x181)}),_0x245a8f=new File([_0x381883],_0x40a8e2);a0_0x2afcfd[_0x4144a6(0x1ab)](_0x245a8f,_0x5d5d21,_0x5ebf33,_0x2b799a,_0x284d09);}}}}),document['getElementById']('Up')[_0x38e6d6(0x1a4)](_0x22abb7,()=>{const _0x8cf763=_0x38e6d6;menuPad[_0x8cf763(0x176)][_0x8cf763(0x156)](_0x8cf763(0x18c))&&(selectedIndex>0x0&&(selectedIndex--,_0x4f7c0b()));}),document[_0x38e6d6(0x16b)](_0x38e6d6(0x1b1))[_0x38e6d6(0x1a4)](_0x22abb7,()=>{const _0x8c7261=_0x38e6d6;menuPad[_0x8c7261(0x176)][_0x8c7261(0x156)](_0x8c7261(0x18c))&&(selectedIndex{const _0x37f815=_0x38e6d6;if(menuPad[_0x37f815(0x176)][_0x37f815(0x156)]('active')){if(document[_0x37f815(0x16b)](_0x37f815(0x16c))[_0x37f815(0x176)][_0x37f815(0x156)](_0x37f815(0x1ac))){let _0x5be9d4=document[_0x37f815(0x16b)]('box2');_0x5be9d4[_0x37f815(0x1ae)]=_0x5be9d4[_0x37f815(0x1ae)]==='On'?_0x37f815(0x182):'On';if(_0x5be9d4[_0x37f815(0x1ae)]==='On'){const _0x4935cf='On';localStorage[_0x37f815(0x185)](_0x37f815(0x19f),_0x4935cf),notiMessage(_0x37f815(0x170),0x5dc);}else{const _0x5d093a='Off';localStorage['setItem'](_0x37f815(0x19f),_0x5d093a),notiMessage(_0x37f815(0x16a),0x5dc);}}if(document['getElementById']('box3')[_0x37f815(0x176)][_0x37f815(0x156)](_0x37f815(0x1ac))){let _0xa9cf64=document[_0x37f815(0x16b)](_0x37f815(0x1a2)),_0x3cb63e=sdValues[_0x37f815(0x184)](_0xa9cf64[_0x37f815(0x1ae)]);_0x3cb63eimgShader['classList']['remove'](_0x585f26)),_0x2ae116=_0xa9cf64['textContent'],imgShader[_0x37f815(0x176)][_0x37f815(0x18b)](_0x2ae116),localStorage[_0x37f815(0x185)](_0x37f815(0x192),_0x2ae116);}document[_0x37f815(0x16b)](_0x37f815(0x172))['classList'][_0x37f815(0x156)](_0x37f815(0x1ac))&&Right(_0x37f815(0x172),0x1,0.1,'opacity','opacity'),document[_0x37f815(0x16b)]('box5')['classList'][_0x37f815(0x156)](_0x37f815(0x1ac))&&Right(_0x37f815(0x1a0),0x2,0.1,'brightness',_0x37f815(0x193)),document[_0x37f815(0x16b)]('box6')['classList'][_0x37f815(0x156)](_0x37f815(0x1ac))&&Right(_0x37f815(0x188),0x2,0.1,_0x37f815(0x162),'contrast'),document[_0x37f815(0x16b)](_0x37f815(0x1a5))[_0x37f815(0x176)][_0x37f815(0x156)](_0x37f815(0x1ac))&&Right(_0x37f815(0x1a5),0x4,0.1,_0x37f815(0x19b),_0x37f815(0x19b)),document['getElementById'](_0x37f815(0x169))[_0x37f815(0x176)][_0x37f815(0x156)](_0x37f815(0x1ac))&&Right(_0x37f815(0x169),0x1,0.1,_0x37f815(0x15a),'sepia');}}),document[_0x38e6d6(0x16b)](_0x38e6d6(0x1a7))['addEventListener'](_0x22abb7,()=>{const _0x4f2ab9=_0x38e6d6;if(menuPad['classList'][_0x4f2ab9(0x156)](_0x4f2ab9(0x18c))){if(document[_0x4f2ab9(0x16b)](_0x4f2ab9(0x16c))['classList'][_0x4f2ab9(0x156)](_0x4f2ab9(0x1ac))){let _0x29df45=document[_0x4f2ab9(0x16b)]('box2');_0x29df45['textContent']=_0x29df45[_0x4f2ab9(0x1ae)]==='On'?_0x4f2ab9(0x182):'On';if(_0x29df45[_0x4f2ab9(0x1ae)]==='On'){const _0x58958c='On';localStorage[_0x4f2ab9(0x185)]('autoStateCheck',_0x58958c),notiMessage('Auto\x20Switches\x20Slots',0x5dc);}else{const _0x32cf9b=_0x4f2ab9(0x182);localStorage[_0x4f2ab9(0x185)]('autoStateCheck',_0x32cf9b),notiMessage(_0x4f2ab9(0x16a),0x5dc);}}if(document[_0x4f2ab9(0x16b)](_0x4f2ab9(0x1a2))[_0x4f2ab9(0x176)]['contains'](_0x4f2ab9(0x1ac))){let _0x50b5c1=document[_0x4f2ab9(0x16b)](_0x4f2ab9(0x1a2)),_0x41ec27=sdValues[_0x4f2ab9(0x184)](_0x50b5c1[_0x4f2ab9(0x1ae)]);_0x41ec27>0x0?_0x50b5c1['textContent']=sdValues[_0x41ec27-0x1]:_0x50b5c1[_0x4f2ab9(0x1ae)]=sdValues[sdValues[_0x4f2ab9(0x186)]-0x1],sdValues[_0x4f2ab9(0x18e)](_0x1bc285=>imgShader['classList'][_0x4f2ab9(0x161)](_0x1bc285)),_0x2ae116=_0x50b5c1[_0x4f2ab9(0x1ae)],imgShader[_0x4f2ab9(0x176)]['add'](_0x2ae116),localStorage['setItem']('selectedShader',_0x2ae116);}document[_0x4f2ab9(0x16b)](_0x4f2ab9(0x172))['classList']['contains'](_0x4f2ab9(0x1ac))&&Left(_0x4f2ab9(0x172),0x0,0.1,'opacity',_0x4f2ab9(0x19e)),document[_0x4f2ab9(0x16b)](_0x4f2ab9(0x1a0))[_0x4f2ab9(0x176)][_0x4f2ab9(0x156)]('selected')&&Left('box5',0x0,0.1,_0x4f2ab9(0x193),'brightness'),document['getElementById'](_0x4f2ab9(0x188))[_0x4f2ab9(0x176)][_0x4f2ab9(0x156)](_0x4f2ab9(0x1ac))&&Left('box6',0x0,0.1,_0x4f2ab9(0x162),_0x4f2ab9(0x162)),document[_0x4f2ab9(0x16b)](_0x4f2ab9(0x1a5))[_0x4f2ab9(0x176)]['contains'](_0x4f2ab9(0x1ac))&&Left(_0x4f2ab9(0x1a5),0x0,0.1,_0x4f2ab9(0x19b),_0x4f2ab9(0x19b)),document[_0x4f2ab9(0x16b)](_0x4f2ab9(0x169))[_0x4f2ab9(0x176)][_0x4f2ab9(0x156)](_0x4f2ab9(0x1ac))&&Left(_0x4f2ab9(0x169),0x0,0.1,_0x4f2ab9(0x15a),'sepia');}}),menuPad['addEventListener'](_0x22abb7,()=>{const _0x176819=_0x38e6d6;menuPad['classList']['toggle'](_0x176819(0x18c)),controlSetting[_0x176819(0x176)]['toggle']('visible'),controlSetting['classList'][_0x176819(0x156)](_0x176819(0x191))?(a0_0x2afcfd[_0x176819(0x15e)](),notiMessage(_0x176819(0x175),0x7d0)):(a0_0x2afcfd['pauseGame'](),notiMessage(_0x176819(0x165),0x7d0));});});}); \ No newline at end of file diff --git a/docs/src/js/state.js b/docs/src/js/state.js index e5763b6..d61d764 100644 --- a/docs/src/js/state.js +++ b/docs/src/js/state.js @@ -1 +1 @@ -function a0_0x5a2c(){const _0x37be8d=['rgba(32,\x20165,\x20166,\x200)','active','.ss','classList','backgroundRepeat','backgroundSize','stateDiv04','dateState00','textContent','no-repeat','/data/states/','addEventListener','pauseGame','state04','setItem','forEach','contains','cover','stateDiv06','removeItem','dateState07','7AgLNXP','resumeGame','state00','6462744Psctil','stateDiv05',']\x20Loaded\x20State','908754NPOYHZ','_imageState','6aLJnHQ','state05','.gba','loadState','url(\x27','_dateState','1345445GRXose','dateState02','backgroundPosition','dateState05','1833804mICRtk','touchcancel','slotStateSaved','8OTTwTE','#20A5A6','stateDiv02','center\x20center','14066570dOcOKu','state03','state02','mouseup','color','rgba(32,\x20165,\x20166,\x200.06)','style','Do\x20not\x20have\x20State!','dateState04','toggle','66569CRgqMQ','DOMContentLoaded','background','stateDiv01','visible','state07','#F5E8D1','Deleted\x20State!','stateDiv00','touchstart','1007385vKLiYQ','touchend','getElementById','state01','state06','getItem'];a0_0x5a2c=function(){return _0x37be8d;};return a0_0x5a2c();}const a0_0x492be3=a0_0xb348;(function(_0x1690a2,_0x179e79){const _0x15b665=a0_0xb348,_0x44f33d=_0x1690a2();while(!![]){try{const _0x2edd51=-parseInt(_0x15b665(0x12e))/0x1*(parseInt(_0x15b665(0x15b))/0x2)+-parseInt(_0x15b665(0x138))/0x3+-parseInt(_0x15b665(0x120))/0x4*(-parseInt(_0x15b665(0x119))/0x5)+parseInt(_0x15b665(0x159))/0x6+parseInt(_0x15b665(0x153))/0x7*(-parseInt(_0x15b665(0x156))/0x8)+-parseInt(_0x15b665(0x11d))/0x9+parseInt(_0x15b665(0x124))/0xa;if(_0x2edd51===_0x179e79)break;else _0x44f33d['push'](_0x44f33d['shift']());}catch(_0x26bd2e){_0x44f33d['push'](_0x44f33d['shift']());}}}(a0_0x5a2c,0x86149));function a0_0xb348(_0x566803,_0x5caeb7){const _0x5a2c9d=a0_0x5a2c();return a0_0xb348=function(_0xb348de,_0x43294e){_0xb348de=_0xb348de-0x118;let _0x2960d1=_0x5a2c9d[_0xb348de];return _0x2960d1;},a0_0xb348(_0x566803,_0x5caeb7);}import*as a0_0x46f82c from'./main.js';let clickTimer,clickedOver1s=![];function LoadstateInPage(_0x46263c,_0x7e8431,_0x3e2444,_0x54e53c){const _0x43bdc9=a0_0xb348,_0x11ea02=document[_0x43bdc9(0x13a)](_0x7e8431),_0x36d2aa=localStorage['getItem'](_0x43bdc9(0x11f)),_0x5d1e52=document[_0x43bdc9(0x13a)](_0x54e53c),_0x590887=localStorage['getItem']('gameName'),_0x54d3a9='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA2MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMEg2MFY0MEgwVjBaIiBmaWxsPSIjMTYxNjE2Ii8+CjxwYXRoIG9wYWNpdHk9IjAuNCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNCAxNkgyNlYyNEgzNFYxNlpNMzMgMTdIMzJWMThIMzFWMTlIMzBWMjBIMjlWMjFIMjhWMjJIMjdWMjNIMzNWMTdaIiBmaWxsPSIjRkZGRkY1Ii8+Cjwvc3ZnPgo=',_0x48aab4=_0x590887['replace'](_0x43bdc9(0x15d),_0x43bdc9(0x140)+_0x46263c),_0x973024=localStorage[_0x43bdc9(0x13d)](_0x590887+_0x43bdc9(0x15a)+_0x46263c)||_0x54d3a9,_0x391be4=localStorage['getItem'](_0x590887+_0x43bdc9(0x118)+_0x46263c);_0x11ea02['style']['backgroundImage']=_0x43bdc9(0x15f)+_0x973024+'\x27)',_0x11ea02[_0x43bdc9(0x12a)][_0x43bdc9(0x143)]=_0x43bdc9(0x14f),_0x11ea02[_0x43bdc9(0x12a)][_0x43bdc9(0x142)]=_0x43bdc9(0x147),_0x11ea02[_0x43bdc9(0x12a)][_0x43bdc9(0x11b)]=_0x43bdc9(0x123),document[_0x43bdc9(0x13a)](_0x3e2444)['textContent']=_0x391be4||'__',parseInt(_0x36d2aa)===parseInt(_0x46263c)?(_0x5d1e52[_0x43bdc9(0x12a)]['color']=_0x43bdc9(0x121),_0x5d1e52[_0x43bdc9(0x12a)]['background']=_0x43bdc9(0x129)):(_0x5d1e52[_0x43bdc9(0x12a)][_0x43bdc9(0x128)]=_0x43bdc9(0x134),_0x5d1e52['style'][_0x43bdc9(0x130)]=_0x43bdc9(0x13e)),_0x5d1e52[_0x43bdc9(0x149)](_0x43bdc9(0x137),function(){const _0x2e1aff=_0x43bdc9;localStorage[_0x2e1aff(0x13d)](_0x590887+'_imageState'+_0x46263c)?(clearTimeout(clickTimer),clickTimer=setTimeout(function(){const _0x329e14=_0x2e1aff;a0_0x46f82c['deleteFile'](_0x329e14(0x148)+_0x48aab4),localStorage[_0x329e14(0x151)](_0x590887+_0x329e14(0x118)+_0x46263c),localStorage[_0x329e14(0x151)](_0x590887+_0x329e14(0x15a)+_0x46263c),setTimeout(()=>{const _0x5e8497=_0x329e14;notiMessage(_0x5e8497(0x135),0x5dc),_0x11ea02[_0x5e8497(0x12a)]['backgroundImage']=_0x5e8497(0x15f)+_0x54d3a9+'\x27)',document[_0x5e8497(0x13a)](_0x3e2444)[_0x5e8497(0x146)]=localStorage[_0x5e8497(0x13d)](_0x590887+_0x5e8497(0x118)+_0x46263c)||'__';},0xc8);},0x5dc)):notiMessage(_0x2e1aff(0x12b),0x5dc);}),_0x5d1e52[_0x43bdc9(0x149)]('touchend',function(){clearTimeout(clickTimer),!clickedOver1s&&(_0x5d1e52['onclick']=()=>{const _0x1a567b=a0_0xb348;stateList[_0x1a567b(0x141)][_0x1a567b(0x12d)](_0x1a567b(0x132)),statePageButton['classList'][_0x1a567b(0x12d)](_0x1a567b(0x13f)),led(_0x46263c),a0_0x46f82c[_0x1a567b(0x15e)](_0x46263c),a0_0x46f82c[_0x1a567b(0x154)](),localStorage[_0x1a567b(0x14c)](_0x1a567b(0x11f),_0x46263c),notiMessage('['+_0x46263c+_0x1a567b(0x158),0x5dc);}),clickedOver1s=![];});}document[a0_0x492be3(0x149)](a0_0x492be3(0x12f),function(){const _0x260693=a0_0x492be3;[_0x260693(0x127),_0x260693(0x139),_0x260693(0x11e)][_0x260693(0x14d)](_0x3936db=>{const _0x184863=_0x260693;statePageButton[_0x184863(0x149)](_0x3936db,()=>{const _0x1bdf30=_0x184863;LoadstateInPage(0x0,_0x1bdf30(0x155),_0x1bdf30(0x145),_0x1bdf30(0x136)),LoadstateInPage(0x1,_0x1bdf30(0x13b),'dateState01',_0x1bdf30(0x131)),LoadstateInPage(0x2,_0x1bdf30(0x126),_0x1bdf30(0x11a),_0x1bdf30(0x122)),LoadstateInPage(0x3,_0x1bdf30(0x125),'dateState03','stateDiv03'),LoadstateInPage(0x4,_0x1bdf30(0x14b),_0x1bdf30(0x12c),_0x1bdf30(0x144)),LoadstateInPage(0x5,_0x1bdf30(0x15c),_0x1bdf30(0x11c),_0x1bdf30(0x157)),LoadstateInPage(0x6,_0x1bdf30(0x13c),'dateState06',_0x1bdf30(0x150)),LoadstateInPage(0x7,_0x1bdf30(0x133),_0x1bdf30(0x152),'stateDiv07'),stateList[_0x1bdf30(0x141)][_0x1bdf30(0x12d)](_0x1bdf30(0x132)),statePageButton[_0x1bdf30(0x141)]['toggle'](_0x1bdf30(0x13f)),stateList[_0x1bdf30(0x141)][_0x1bdf30(0x14e)](_0x1bdf30(0x132))?a0_0x46f82c[_0x1bdf30(0x154)]():a0_0x46f82c[_0x1bdf30(0x14a)]();});});}); \ No newline at end of file +const a0_0x2425ee=a0_0x1a69;(function(_0x96b918,_0x41b77b){const _0x50e6aa=a0_0x1a69,_0xeef5d6=_0x96b918();while(!![]){try{const _0x2f108e=parseInt(_0x50e6aa(0xcc))/0x1*(parseInt(_0x50e6aa(0xdb))/0x2)+-parseInt(_0x50e6aa(0x100))/0x3*(-parseInt(_0x50e6aa(0xe2))/0x4)+-parseInt(_0x50e6aa(0xca))/0x5*(-parseInt(_0x50e6aa(0xe4))/0x6)+-parseInt(_0x50e6aa(0xdf))/0x7+parseInt(_0x50e6aa(0xfe))/0x8*(parseInt(_0x50e6aa(0xf6))/0x9)+-parseInt(_0x50e6aa(0xfd))/0xa*(parseInt(_0x50e6aa(0xf0))/0xb)+-parseInt(_0x50e6aa(0xf5))/0xc*(parseInt(_0x50e6aa(0xee))/0xd);if(_0x2f108e===_0x41b77b)break;else _0xeef5d6['push'](_0xeef5d6['shift']());}catch(_0x384692){_0xeef5d6['push'](_0xeef5d6['shift']());}}}(a0_0x29a2,0xba5fa));function a0_0x29a2(){const _0x2f0b7e=['7086PwTKhX','getItem','cover','.ss','textContent','touchcancel','state02','_dateState','stateDiv00','stateDiv05','13VJrMRt','toggle','6777067Qzslht','stateDiv03','stateDiv04','gameName','dateState04','9582756UMhIHY','8166753YtPNcW','stateDiv06','dateState02','background','Do\x20not\x20have\x20State!',']\x20Loaded\x20State','state05','10xmyEIK','8PFgGGX','dateState03','3uSdIRl','backgroundImage','loadState','onclick','classList','contains','color','state01','state06','resumeGame','url(\x27','addEventListener','dateState06','backgroundSize','DOMContentLoaded','state04','_imageState','active','#20A5A6','2615fTvtJI','/data/states/','403cjbDHk','stateDiv02','dateState05','data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA2MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMEg2MFY0MEgwVjBaIiBmaWxsPSIjMTYxNjE2Ii8+CjxwYXRoIG9wYWNpdHk9IjAuNCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNCAxNkgyNlYyNEgzNFYxNlpNMzMgMTdIMzJWMThIMzFWMTlIMzBWMjBIMjlWMjFIMjhWMjJIMjdWMjNIMzNWMTdaIiBmaWxsPSIjRkZGRkY1Ii8+Cjwvc3ZnPgo=','touchend','state07','removeItem','deleteFile','forEach','backgroundRepeat','#F5E8D1','pauseGame','center\x20center','visible','style','3282smGiiC','stateDiv01','Deleted\x20State!','getElementById','10418492aOjKML','slotStateSaved','rgba(32,\x20165,\x20166,\x200)','5919996XYXYcq','backgroundPosition'];a0_0x29a2=function(){return _0x2f0b7e;};return a0_0x29a2();}function a0_0x1a69(_0x15f660,_0xa51cea){const _0x29a2c6=a0_0x29a2();return a0_0x1a69=function(_0x1a69f9,_0x287cad){_0x1a69f9=_0x1a69f9-0xc9;let _0x4e8237=_0x29a2c6[_0x1a69f9];return _0x4e8237;},a0_0x1a69(_0x15f660,_0xa51cea);}import*as a0_0x54264b from'./main.js';let clickTimer,clickedOver1s=![];function LoadstateInPage(_0x19f81c,_0x4000af,_0x5b9035,_0x231666){const _0x5b0767=a0_0x1a69,_0x2ba43d=document[_0x5b0767(0xde)](_0x4000af),_0x9c61cb=localStorage[_0x5b0767(0xe5)](_0x5b0767(0xe0)),_0x5c05f9=document['getElementById'](_0x231666),_0x39c65a=localStorage[_0x5b0767(0xe5)](_0x5b0767(0xf3)),_0x553c70=_0x5b0767(0xcf),_0x5c5479=_0x39c65a['replace']('.gba',_0x5b0767(0xe7)+_0x19f81c),_0x538929=localStorage[_0x5b0767(0xe5)](_0x39c65a+'_imageState'+_0x19f81c)||_0x553c70,_0x5ce191=localStorage[_0x5b0767(0xe5)](_0x39c65a+_0x5b0767(0xeb)+_0x19f81c);_0x2ba43d[_0x5b0767(0xda)]['backgroundImage']=_0x5b0767(0x10a)+_0x538929+'\x27)',_0x2ba43d[_0x5b0767(0xda)][_0x5b0767(0x10d)]=_0x5b0767(0xe6),_0x2ba43d[_0x5b0767(0xda)][_0x5b0767(0xd5)]='no-repeat',_0x2ba43d[_0x5b0767(0xda)][_0x5b0767(0xe3)]=_0x5b0767(0xd8),document[_0x5b0767(0xde)](_0x5b9035)[_0x5b0767(0xe8)]=_0x5ce191||'__',parseInt(_0x9c61cb)===parseInt(_0x19f81c)?(_0x5c05f9[_0x5b0767(0xda)]['color']=_0x5b0767(0xc9),_0x5c05f9[_0x5b0767(0xda)][_0x5b0767(0xf9)]='rgba(32,\x20165,\x20166,\x200.06)'):(_0x5c05f9[_0x5b0767(0xda)][_0x5b0767(0x106)]=_0x5b0767(0xd6),_0x5c05f9[_0x5b0767(0xda)]['background']=_0x5b0767(0xe1)),_0x5c05f9[_0x5b0767(0x10b)]('touchstart',function(){const _0x4e0b76=_0x5b0767;localStorage['getItem'](_0x39c65a+_0x4e0b76(0x110)+_0x19f81c)?(clearTimeout(clickTimer),clickTimer=setTimeout(function(){const _0x49da9f=_0x4e0b76;a0_0x54264b[_0x49da9f(0xd3)](_0x49da9f(0xcb)+_0x5c5479),localStorage[_0x49da9f(0xd2)](_0x39c65a+_0x49da9f(0xeb)+_0x19f81c),localStorage[_0x49da9f(0xd2)](_0x39c65a+_0x49da9f(0x110)+_0x19f81c),setTimeout(()=>{const _0x3d68aa=_0x49da9f;notiMessage(_0x3d68aa(0xdd),0x5dc),_0x2ba43d[_0x3d68aa(0xda)][_0x3d68aa(0x101)]=_0x3d68aa(0x10a)+_0x553c70+'\x27)',document[_0x3d68aa(0xde)](_0x5b9035)[_0x3d68aa(0xe8)]=localStorage[_0x3d68aa(0xe5)](_0x39c65a+_0x3d68aa(0xeb)+_0x19f81c)||'__';},0xc8);},0x5dc)):notiMessage(_0x4e0b76(0xfa),0x5dc);}),_0x5c05f9[_0x5b0767(0x10b)](_0x5b0767(0xd0),function(){const _0x531a7a=_0x5b0767;clearTimeout(clickTimer),!clickedOver1s&&(_0x5c05f9[_0x531a7a(0x103)]=()=>{const _0x28d430=_0x531a7a;stateList[_0x28d430(0x104)][_0x28d430(0xef)](_0x28d430(0xd9)),statePageButton[_0x28d430(0x104)][_0x28d430(0xef)](_0x28d430(0x111)),led(_0x19f81c),a0_0x54264b[_0x28d430(0x102)](_0x19f81c),a0_0x54264b['resumeGame'](),localStorage['setItem']('slotStateSaved',_0x19f81c),notiMessage('['+_0x19f81c+_0x28d430(0xfb),0x5dc);}),clickedOver1s=![];});}document[a0_0x2425ee(0x10b)](a0_0x2425ee(0x10e),function(){const _0x1cf184=a0_0x2425ee;['mouseup','touchend',_0x1cf184(0xe9)][_0x1cf184(0xd4)](_0x1c463e=>{statePageButton['addEventListener'](_0x1c463e,()=>{const _0x104222=a0_0x1a69;LoadstateInPage(0x0,'state00','dateState00',_0x104222(0xec)),LoadstateInPage(0x1,_0x104222(0x107),'dateState01',_0x104222(0xdc)),LoadstateInPage(0x2,_0x104222(0xea),_0x104222(0xf8),_0x104222(0xcd)),LoadstateInPage(0x3,'state03',_0x104222(0xff),_0x104222(0xf1)),LoadstateInPage(0x4,_0x104222(0x10f),_0x104222(0xf4),_0x104222(0xf2)),LoadstateInPage(0x5,_0x104222(0xfc),_0x104222(0xce),_0x104222(0xed)),LoadstateInPage(0x6,_0x104222(0x108),_0x104222(0x10c),_0x104222(0xf7)),LoadstateInPage(0x7,_0x104222(0xd1),'dateState07','stateDiv07'),stateList[_0x104222(0x104)]['toggle'](_0x104222(0xd9)),statePageButton['classList'][_0x104222(0xef)](_0x104222(0x111)),stateList[_0x104222(0x104)][_0x104222(0x105)](_0x104222(0xd9))?a0_0x54264b[_0x104222(0x109)]():a0_0x54264b[_0x104222(0xd7)]();});});}); \ No newline at end of file diff --git a/docs/src/js/storage.js b/docs/src/js/storage.js index 71ff606..032e32b 100644 --- a/docs/src/js/storage.js +++ b/docs/src/js/storage.js @@ -1 +1 @@ -const a0_0x1b505a=a0_0x4ef9;function a0_0x27fb(){const _0x38748b=['listGame','click','statesFile','40RPwJhq','ZiB','lastChild','flex-1','KiB','add','slice','disable','.bc','PiB','listScreenshot','.gba','onclick','_dateState','Edit\x20filename','close','opacity0','confirm','gap-16','listState','removeItem','remove','fileSize','/data/states/','YiB','/data/screenshots/','classList','home','editFile','uploadCheat','length','firstChild','6TDCWxN','EiB','listCheat','getElementById','endsWith','name','onclose','files','setItem','.cheats','uId','rom','appendChild','div','mib','175736vaBGJY','prompt','1879424JkyTNW','span','Delete\x20this\x20file?','/data/games/','delete','mgba-storage','right','275590IrPZWa','textContent','screenshotsFile','downloadFile','7LgOsdM','toFixed','replace','createElement','active','getItem','actionDiv','savesFile','storage','download','229369mKtpMl','1377834UTkOOh','193725PpzyJT','915669pDrHUS','addEventListener','TiB','_imageState','rom-item'];a0_0x27fb=function(){return _0x38748b;};return a0_0x27fb();}(function(_0x4b7646,_0x427f4d){const _0x5b3080=a0_0x4ef9,_0x708ff=_0x4b7646();while(!![]){try{const _0x1205fa=parseInt(_0x5b3080(0x229))/0x1+parseInt(_0x5b3080(0x212))/0x2*(-parseInt(_0x5b3080(0x203))/0x3)+-parseInt(_0x5b3080(0x214))/0x4+parseInt(_0x5b3080(0x1da))/0x5+-parseInt(_0x5b3080(0x22a))/0x6*(-parseInt(_0x5b3080(0x21f))/0x7)+-parseInt(_0x5b3080(0x1e3))/0x8*(-parseInt(_0x5b3080(0x1db))/0x9)+-parseInt(_0x5b3080(0x21b))/0xa;if(_0x1205fa===_0x427f4d)break;else _0x708ff['push'](_0x708ff['shift']());}catch(_0x292108){_0x708ff['push'](_0x708ff['shift']());}}}(a0_0x27fb,0x515fb));import*as a0_0x1b0558 from'./main.js';const mgbaStorage=document[a0_0x1b505a(0x206)](a0_0x1b505a(0x219)),savesFile=document[a0_0x1b505a(0x206)](a0_0x1b505a(0x226)),romsFile=document[a0_0x1b505a(0x206)]('romsFile'),statesFile=document[a0_0x1b505a(0x206)](a0_0x1b505a(0x1e2)),screenshotsFile=document['getElementById'](a0_0x1b505a(0x21d));function humanFileSize(_0x3d3ab3,_0x41f222=![],_0x1d0734=0x1){const _0x2d6a23=a0_0x1b505a,_0x1eeb81=_0x41f222?0x3e8:0x400,_0x24fd1d=_0x41f222?['kB','MB','GB','TB','PB','EB','ZB','YB']:[_0x2d6a23(0x1e7),'MiB','GiB',_0x2d6a23(0x1dd),_0x2d6a23(0x1ec),_0x2d6a23(0x204),_0x2d6a23(0x1e4),_0x2d6a23(0x1fb)];let _0x4a928f=-0x1;do{_0x3d3ab3/=_0x1eeb81,++_0x4a928f;}while(Math['abs'](_0x3d3ab3)>=_0x1eeb81&&_0x4a928f<_0x24fd1d[_0x2d6a23(0x201)]-0x1);return _0x3d3ab3[_0x2d6a23(0x220)](_0x1d0734)+'\x20'+_0x24fd1d[_0x4a928f];}function createElementStorage(_0x41fc65,_0x18587f,_0x5de7b5){const _0x309282=a0_0x1b505a,_0x4c9599=document[_0x309282(0x222)](_0x309282(0x210));_0x4c9599['classList']['add']('flex-1',_0x309282(0x1df),_0x309282(0x20e)),_0x41fc65[_0x309282(0x20f)](_0x4c9599);const _0x39291e=document['createElement'](_0x309282(0x215));_0x39291e['textContent']=_0x18587f,_0x39291e[_0x309282(0x1fd)][_0x309282(0x1e8)](_0x309282(0x1e6)),_0x4c9599[_0x309282(0x20f)](_0x39291e),_0x39291e[_0x309282(0x1ef)]=()=>{const _0x2c01cc=_0x309282,_0x53e8e3=document[_0x2c01cc(0x222)]('dialog');_0x53e8e3[_0x2c01cc(0x209)]=()=>_0x53e8e3[_0x2c01cc(0x1f8)](),_0x41fc65[_0x2c01cc(0x20f)](_0x53e8e3);const _0x8ee9c4=document[_0x2c01cc(0x222)](_0x2c01cc(0x210));_0x8ee9c4['classList'][_0x2c01cc(0x1e8)](_0x2c01cc(0x227),_0x2c01cc(0x21a),'gap-10'),_0x53e8e3[_0x2c01cc(0x20f)](_0x8ee9c4);const _0x5831f4=document['createElement'](_0x2c01cc(0x210));_0x5831f4[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)](_0x2c01cc(0x1fe),'bc',_0x2c01cc(0x1e6)),_0x8ee9c4[_0x2c01cc(0x20f)](_0x5831f4);const _0x5ef77d=document[_0x2c01cc(0x222)]('div');_0x5ef77d[_0x2c01cc(0x1fd)]['add'](_0x2c01cc(0x1e6)),_0x8ee9c4[_0x2c01cc(0x20f)](_0x5ef77d);const _0x1f5a08=document[_0x2c01cc(0x222)](_0x2c01cc(0x210));_0x1f5a08[_0x2c01cc(0x1fd)]['add'](_0x2c01cc(0x1e6)),_0x8ee9c4[_0x2c01cc(0x20f)](_0x1f5a08);const _0x176e91=document['createElement'](_0x2c01cc(0x210));_0x176e91['classList'][_0x2c01cc(0x1e8)](_0x2c01cc(0x1e6)),_0x8ee9c4[_0x2c01cc(0x20f)](_0x176e91),mgbaStorage[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)]('opacity0'),_0x5831f4[_0x2c01cc(0x1ef)]=()=>{const _0xc5f8ba=_0x2c01cc;_0x53e8e3['close'](),_0x53e8e3['remove'](),mgbaStorage['classList'][_0xc5f8ba(0x1f8)](_0xc5f8ba(0x1f3));};const _0x4fe751=document[_0x2c01cc(0x222)]('div');_0x4fe751[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)](_0x2c01cc(0x1e6),_0x2c01cc(0x1df),'hw','cw'),_0x4fe751[_0x2c01cc(0x21c)]=_0x18587f,_0x53e8e3[_0x2c01cc(0x20f)](_0x4fe751);const _0x545068=document[_0x2c01cc(0x222)]('div');_0x545068[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)](_0x2c01cc(0x225),'hw','cw',_0x2c01cc(0x1f5)),_0x53e8e3[_0x2c01cc(0x20f)](_0x545068);const _0x521ef5=document['createElement']('div');_0x521ef5[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)](_0x2c01cc(0x228),'bc'),_0x545068['appendChild'](_0x521ef5),_0x521ef5[_0x2c01cc(0x1ef)]=()=>{const _0x3506cc=_0x2c01cc;a0_0x1b0558[_0x3506cc(0x21e)](_0x5de7b5,_0x18587f);};const _0x324820=document[_0x2c01cc(0x222)](_0x2c01cc(0x210));_0x324820['classList'][_0x2c01cc(0x1e8)](_0x2c01cc(0x218),'bc'),_0x545068['appendChild'](_0x324820),_0x324820['onclick']=async()=>{const _0x202db9=_0x2c01cc;if(window[_0x202db9(0x1f4)](_0x202db9(0x216)+_0x18587f)){const _0x84d41b=_0x18587f[_0x202db9(0x221)](/\....$/,'.gba');a0_0x1b0558['deleteFile'](_0x5de7b5),localStorage[_0x202db9(0x1f7)](_0x84d41b+_0x202db9(0x1f0)+_0x18587f[_0x202db9(0x1e9)](-0x1)),localStorage[_0x202db9(0x1f7)](_0x84d41b+_0x202db9(0x1de)+_0x18587f[_0x202db9(0x1e9)](-0x1)),localStorageFile(),_0x53e8e3[_0x202db9(0x1f2)](),_0x53e8e3[_0x202db9(0x1f8)](),mgbaStorage['classList']['remove'](_0x202db9(0x1f3));}};const _0x38d8f1=document[_0x2c01cc(0x222)](_0x2c01cc(0x210));_0x38d8f1[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)]('rename','bc'),_0x545068[_0x2c01cc(0x20f)](_0x38d8f1),_0x38d8f1[_0x2c01cc(0x1ef)]=async()=>{const _0x397748=_0x2c01cc,_0x594dab=window[_0x397748(0x213)](_0x397748(0x1f1),_0x18587f);if(_0x594dab!==null){const _0x44a931=_0x18587f[_0x397748(0x221)](/\....$/,_0x397748(0x1ee)),_0x57bc13=_0x594dab[_0x397748(0x221)](/\....$/,_0x397748(0x1ee)),_0x389c73=_0x44a931+_0x397748(0x1f0)+_0x18587f[_0x397748(0x1e9)](-0x1),_0x1232d6=_0x44a931+'_imageState'+_0x18587f[_0x397748(0x1e9)](-0x1),_0x30e5ab=_0x57bc13+'_dateState'+_0x594dab[_0x397748(0x1e9)](-0x1),_0x2702ba=_0x57bc13+'_imageState'+_0x594dab[_0x397748(0x1e9)](-0x1),_0x56927a=localStorage[_0x397748(0x224)](_0x389c73),_0x22540f=localStorage['getItem'](_0x1232d6);_0x56927a!==null&&(localStorage['setItem'](_0x30e5ab,_0x56927a),localStorage[_0x397748(0x1f7)](_0x389c73)),_0x22540f!==null&&(localStorage[_0x397748(0x20b)](_0x2702ba,_0x22540f),localStorage[_0x397748(0x1f7)](_0x1232d6)),a0_0x1b0558[_0x397748(0x1ff)](_0x5de7b5,_0x18587f,_0x594dab),localStorageFile(),_0x53e8e3[_0x397748(0x1f2)](),_0x53e8e3['remove'](),mgbaStorage['classList'][_0x397748(0x1f8)](_0x397748(0x1f3));}},_0x53e8e3['showModal']();};const _0xabaf9c=document[_0x309282(0x222)](_0x309282(0x215));_0xabaf9c['textContent']=humanFileSize(a0_0x1b0558[_0x309282(0x1f9)](_0x5de7b5)),_0xabaf9c[_0x309282(0x1fd)][_0x309282(0x1e8)](_0x309282(0x211)),_0x4c9599['appendChild'](_0xabaf9c);}export function localStorageFile(){const _0x3fde63=a0_0x1b505a,_0x36906d=a0_0x1b0558[_0x3fde63(0x1e0)](),_0x567aed=a0_0x1b0558['listSave'](),_0x5431d0=a0_0x1b0558[_0x3fde63(0x1f6)](),_0x3b63c4=a0_0x1b0558[_0x3fde63(0x205)](),_0x2b12c2=a0_0x1b0558[_0x3fde63(0x1ed)](),_0x2ce886=[romsFile,savesFile,statesFile,cheatsFile,screenshotsFile];for(const _0xdb1bdb of _0x2ce886){while(_0xdb1bdb[_0x3fde63(0x202)]){_0xdb1bdb[_0x3fde63(0x1e5)][_0x3fde63(0x1f8)]();}}for(const _0x3ecd51 of _0x36906d){createElementStorage(romsFile,_0x3ecd51,_0x3fde63(0x217)+_0x3ecd51);}for(const _0x5d8958 of _0x5431d0){createElementStorage(statesFile,_0x5d8958,_0x3fde63(0x1fa)+_0x5d8958);}for(const _0x4960a7 of _0x567aed){createElementStorage(savesFile,_0x4960a7,'/data/saves/'+_0x4960a7);}for(const _0x4c7c5b of _0x3b63c4){createElementStorage(cheatsFile,_0x4c7c5b,'/data/cheats/'+_0x4c7c5b);}for(const _0x147794 of _0x2b12c2){createElementStorage(screenshotsFile,_0x147794,_0x3fde63(0x1fc)+_0x147794);}}function a0_0x4ef9(_0x22c25c,_0x21eb21){const _0x27fbbf=a0_0x27fb();return a0_0x4ef9=function(_0x4ef9fd,_0x35473a){_0x4ef9fd=_0x4ef9fd-0x1da;let _0xee1b93=_0x27fbbf[_0x4ef9fd];return _0xee1b93;},a0_0x4ef9(_0x22c25c,_0x21eb21);}document[a0_0x1b505a(0x1dc)]('DOMContentLoaded',function(){const _0x32c8a0=a0_0x1b505a;upLoadFile[_0x32c8a0(0x1dc)]('change',function(){const _0x3850a2=_0x32c8a0,_0xa5cf44=upLoadFile[_0x3850a2(0x20a)][0x0][_0x3850a2(0x208)];if(_0xa5cf44['endsWith'](_0x3850a2(0x20c)))a0_0x1b0558[_0x3850a2(0x200)](upLoadFile);else _0xa5cf44[_0x3850a2(0x207)](_0x3850a2(0x1ee))||_0xa5cf44[_0x3850a2(0x207)]('.gbc')||_0xa5cf44[_0x3850a2(0x207)](_0x3850a2(0x1eb))?a0_0x1b0558['uploadGame'](upLoadFile):a0_0x1b0558['uploadSavSta'](upLoadFile);}),openLocalStorage[_0x32c8a0(0x1dc)](_0x32c8a0(0x1e1),function(){const _0x556aa1=_0x32c8a0,_0x36b473=localStorage[_0x556aa1(0x224)](_0x556aa1(0x20d));storage[_0x556aa1(0x1fd)][_0x556aa1(0x1f8)]('disable'),intro[_0x556aa1(0x1fd)][_0x556aa1(0x1e8)](_0x556aa1(0x1ea)),ingame[_0x556aa1(0x1fd)]['add'](_0x556aa1(0x1ea)),_0x36b473===null||_0x36b473===''?(dropboxRestore['classList'][_0x556aa1(0x1f8)](_0x556aa1(0x223)),dropboxBackup['classList']['remove'](_0x556aa1(0x223)),dropboxCloud[_0x556aa1(0x1fd)][_0x556aa1(0x1f8)](_0x556aa1(0x223))):(dropboxRestore[_0x556aa1(0x1fd)][_0x556aa1(0x1e8)](_0x556aa1(0x223)),dropboxBackup[_0x556aa1(0x1fd)][_0x556aa1(0x1e8)](_0x556aa1(0x223)),dropboxCloud[_0x556aa1(0x1fd)][_0x556aa1(0x1e8)](_0x556aa1(0x223)));}),setTimeout(()=>{localStorageFile();},0xbb8);}); \ No newline at end of file +function a0_0x4894(_0x243fe8,_0x2afa7e){const _0x4f3ff0=a0_0x4f3f();return a0_0x4894=function(_0x4894ff,_0x936bcf){_0x4894ff=_0x4894ff-0x16c;let _0x51a36a=_0x4f3ff0[_0x4894ff];return _0x51a36a;},a0_0x4894(_0x243fe8,_0x2afa7e);}const a0_0x3aa54a=a0_0x4894;(function(_0x294f21,_0x1b74e6){const _0xcd9afa=a0_0x4894,_0x488914=_0x294f21();while(!![]){try{const _0x1715d0=-parseInt(_0xcd9afa(0x1b0))/0x1*(parseInt(_0xcd9afa(0x173))/0x2)+parseInt(_0xcd9afa(0x199))/0x3*(parseInt(_0xcd9afa(0x188))/0x4)+-parseInt(_0xcd9afa(0x1a2))/0x5*(parseInt(_0xcd9afa(0x174))/0x6)+parseInt(_0xcd9afa(0x1a8))/0x7*(parseInt(_0xcd9afa(0x190))/0x8)+parseInt(_0xcd9afa(0x1a1))/0x9*(-parseInt(_0xcd9afa(0x1c1))/0xa)+-parseInt(_0xcd9afa(0x186))/0xb*(parseInt(_0xcd9afa(0x16e))/0xc)+parseInt(_0xcd9afa(0x18d))/0xd*(parseInt(_0xcd9afa(0x172))/0xe);if(_0x1715d0===_0x1b74e6)break;else _0x488914['push'](_0x488914['shift']());}catch(_0x5e0c97){_0x488914['push'](_0x488914['shift']());}}}(a0_0x4f3f,0x9b875));import*as a0_0xdb48ef from'./main.js';const mgbaStorage=document[a0_0x3aa54a(0x175)](a0_0x3aa54a(0x192)),savesFile=document[a0_0x3aa54a(0x175)](a0_0x3aa54a(0x1b2)),romsFile=document[a0_0x3aa54a(0x175)](a0_0x3aa54a(0x1b4)),statesFile=document[a0_0x3aa54a(0x175)](a0_0x3aa54a(0x171)),screenshotsFile=document[a0_0x3aa54a(0x175)](a0_0x3aa54a(0x1bd));function humanFileSize(_0x52202d,_0x222914=![],_0x2eb264=0x1){const _0xd78449=a0_0x3aa54a,_0x4a8e39=_0x222914?0x3e8:0x400,_0x302759=_0x222914?['kB','MB','GB','TB','PB','EB','ZB','YB']:[_0xd78449(0x196),'MiB','GiB',_0xd78449(0x1b9),_0xd78449(0x1b7),_0xd78449(0x177),_0xd78449(0x1a5),_0xd78449(0x17f)];let _0x2e0491=-0x1;do{_0x52202d/=_0x4a8e39,++_0x2e0491;}while(Math[_0xd78449(0x17e)](_0x52202d)>=_0x4a8e39&&_0x2e0491<_0x302759['length']-0x1);return _0x52202d[_0xd78449(0x18c)](_0x2eb264)+'\x20'+_0x302759[_0x2e0491];}function a0_0x4f3f(){const _0x5a25c2=['div','31698IPqkrF','5ULRCqI','.gbc','rom-item','ZiB','createElement','_imageState','469FFIXiJ','uId','uploadGame','listCheat','prompt','dialog','/data/states/','onclose','3kVxLfg','.gba','savesFile','DOMContentLoaded','romsFile','right','/data/saves/','PiB','confirm','TiB','fileSize','classList','_dateState','screenshotsFile','download','lastChild','listScreenshot','2540TWAOWc','disable','downloadFile','actionDiv','removeItem','add','12MMPZmt','span','.cheats','statesFile','233912jZFOKd','8728yLPYjz','1565274renUDa','getElementById','getItem','EiB','replace','textContent','appendChild','rename','editFile','setItem','abs','YiB','gap-10','gap-16','addEventListener','home','listSave','Edit\x20filename','13249027fQwqCb','flex-1','4uiMdXQ','endsWith','Delete\x20this\x20file?','close','toFixed','702ZwZXFL','firstChild','listGame','121904pjpeoe','/data/screenshots/','mgba-storage','listState','slice','/data/games/','KiB','change','active','3260649fzdFVB','deleteFile','delete','showModal','remove','onclick','opacity0'];a0_0x4f3f=function(){return _0x5a25c2;};return a0_0x4f3f();}function createElementStorage(_0x16105d,_0x48440e,_0x1f2e06){const _0x8d01a=a0_0x3aa54a,_0x57c08b=document[_0x8d01a(0x1a6)](_0x8d01a(0x1a0));_0x57c08b[_0x8d01a(0x1bb)][_0x8d01a(0x16d)](_0x8d01a(0x187),_0x8d01a(0x1a4),'rom'),_0x16105d[_0x8d01a(0x17a)](_0x57c08b);const _0x33873a=document[_0x8d01a(0x1a6)](_0x8d01a(0x16f));_0x33873a[_0x8d01a(0x179)]=_0x48440e,_0x33873a[_0x8d01a(0x1bb)][_0x8d01a(0x16d)](_0x8d01a(0x187)),_0x57c08b['appendChild'](_0x33873a),_0x33873a['onclick']=()=>{const _0x311b0a=_0x8d01a,_0x3c6203=document['createElement'](_0x311b0a(0x1ad));_0x3c6203[_0x311b0a(0x1af)]=()=>_0x3c6203['remove'](),_0x16105d['appendChild'](_0x3c6203);const _0x2fbfd6=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x2fbfd6[_0x311b0a(0x1bb)][_0x311b0a(0x16d)]('storage',_0x311b0a(0x1b5),_0x311b0a(0x180)),_0x3c6203['appendChild'](_0x2fbfd6);const _0x2a2f47=document[_0x311b0a(0x1a6)]('div');_0x2a2f47[_0x311b0a(0x1bb)][_0x311b0a(0x16d)](_0x311b0a(0x183),'bc',_0x311b0a(0x187)),_0x2fbfd6[_0x311b0a(0x17a)](_0x2a2f47);const _0x5da6ba=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x5da6ba[_0x311b0a(0x1bb)][_0x311b0a(0x16d)]('flex-1'),_0x2fbfd6[_0x311b0a(0x17a)](_0x5da6ba);const _0x580e43=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x580e43['classList'][_0x311b0a(0x16d)](_0x311b0a(0x187)),_0x2fbfd6[_0x311b0a(0x17a)](_0x580e43);const _0x1b850d=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x1b850d[_0x311b0a(0x1bb)]['add'](_0x311b0a(0x187)),_0x2fbfd6[_0x311b0a(0x17a)](_0x1b850d),mgbaStorage[_0x311b0a(0x1bb)][_0x311b0a(0x16d)](_0x311b0a(0x19f)),_0x2a2f47['onclick']=()=>{const _0x159830=_0x311b0a;_0x3c6203['close'](),_0x3c6203[_0x159830(0x19d)](),mgbaStorage[_0x159830(0x1bb)][_0x159830(0x19d)]('opacity0');};const _0x3490d9=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x3490d9[_0x311b0a(0x1bb)][_0x311b0a(0x16d)](_0x311b0a(0x187),_0x311b0a(0x1a4),'hw','cw'),_0x3490d9[_0x311b0a(0x179)]=_0x48440e,_0x3c6203[_0x311b0a(0x17a)](_0x3490d9);const _0x52cec3=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x52cec3['classList']['add'](_0x311b0a(0x1c4),'hw','cw',_0x311b0a(0x181)),_0x3c6203[_0x311b0a(0x17a)](_0x52cec3);const _0x343d9a=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x343d9a[_0x311b0a(0x1bb)][_0x311b0a(0x16d)](_0x311b0a(0x1be),'bc'),_0x52cec3[_0x311b0a(0x17a)](_0x343d9a),_0x343d9a[_0x311b0a(0x19e)]=()=>{const _0x292597=_0x311b0a;a0_0xdb48ef[_0x292597(0x1c3)](_0x1f2e06,_0x48440e);};const _0x4a01e6=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x4a01e6[_0x311b0a(0x1bb)][_0x311b0a(0x16d)](_0x311b0a(0x19b),'bc'),_0x52cec3['appendChild'](_0x4a01e6),_0x4a01e6[_0x311b0a(0x19e)]=async()=>{const _0x547dd9=_0x311b0a;if(window[_0x547dd9(0x1b8)](_0x547dd9(0x18a)+_0x48440e)){const _0x4a2540=_0x48440e['replace'](/\....$/,_0x547dd9(0x1b1));a0_0xdb48ef[_0x547dd9(0x19a)](_0x1f2e06),localStorage[_0x547dd9(0x16c)](_0x4a2540+_0x547dd9(0x1bc)+_0x48440e['slice'](-0x1)),localStorage[_0x547dd9(0x16c)](_0x4a2540+_0x547dd9(0x1a7)+_0x48440e[_0x547dd9(0x194)](-0x1)),localStorageFile(),_0x3c6203['close'](),_0x3c6203[_0x547dd9(0x19d)](),mgbaStorage[_0x547dd9(0x1bb)][_0x547dd9(0x19d)](_0x547dd9(0x19f));}};const _0x7b4464=document[_0x311b0a(0x1a6)](_0x311b0a(0x1a0));_0x7b4464[_0x311b0a(0x1bb)]['add'](_0x311b0a(0x17b),'bc'),_0x52cec3['appendChild'](_0x7b4464),_0x7b4464[_0x311b0a(0x19e)]=async()=>{const _0x3d29a5=_0x311b0a,_0x1a80aa=window[_0x3d29a5(0x1ac)](_0x3d29a5(0x185),_0x48440e);if(_0x1a80aa!==null){const _0x15294e=_0x48440e[_0x3d29a5(0x178)](/\....$/,_0x3d29a5(0x1b1)),_0xd92f28=_0x1a80aa['replace'](/\....$/,_0x3d29a5(0x1b1)),_0x26a5b0=_0x15294e+_0x3d29a5(0x1bc)+_0x48440e[_0x3d29a5(0x194)](-0x1),_0x5b730e=_0x15294e+'_imageState'+_0x48440e['slice'](-0x1),_0x2a46e7=_0xd92f28+_0x3d29a5(0x1bc)+_0x1a80aa[_0x3d29a5(0x194)](-0x1),_0x2c95ba=_0xd92f28+_0x3d29a5(0x1a7)+_0x1a80aa['slice'](-0x1),_0x43ac6b=localStorage[_0x3d29a5(0x176)](_0x26a5b0),_0x32282f=localStorage[_0x3d29a5(0x176)](_0x5b730e);_0x43ac6b!==null&&(localStorage[_0x3d29a5(0x17d)](_0x2a46e7,_0x43ac6b),localStorage[_0x3d29a5(0x16c)](_0x26a5b0)),_0x32282f!==null&&(localStorage[_0x3d29a5(0x17d)](_0x2c95ba,_0x32282f),localStorage[_0x3d29a5(0x16c)](_0x5b730e)),a0_0xdb48ef[_0x3d29a5(0x17c)](_0x1f2e06,_0x48440e,_0x1a80aa),localStorageFile(),_0x3c6203[_0x3d29a5(0x18b)](),_0x3c6203[_0x3d29a5(0x19d)](),mgbaStorage[_0x3d29a5(0x1bb)][_0x3d29a5(0x19d)](_0x3d29a5(0x19f));}},_0x3c6203[_0x311b0a(0x19c)]();};const _0x3aa30d=document[_0x8d01a(0x1a6)](_0x8d01a(0x16f));_0x3aa30d['textContent']=humanFileSize(a0_0xdb48ef[_0x8d01a(0x1ba)](_0x1f2e06)),_0x3aa30d[_0x8d01a(0x1bb)][_0x8d01a(0x16d)]('mib'),_0x57c08b[_0x8d01a(0x17a)](_0x3aa30d);}export function localStorageFile(){const _0x41c5b4=a0_0x3aa54a,_0xca1cb2=a0_0xdb48ef[_0x41c5b4(0x18f)](),_0x32a061=a0_0xdb48ef[_0x41c5b4(0x184)](),_0x1ff59e=a0_0xdb48ef[_0x41c5b4(0x193)](),_0x3d77a5=a0_0xdb48ef[_0x41c5b4(0x1ab)](),_0x14be1b=a0_0xdb48ef[_0x41c5b4(0x1c0)](),_0x18f3f5=[romsFile,savesFile,statesFile,cheatsFile,screenshotsFile];for(const _0x122a85 of _0x18f3f5){while(_0x122a85[_0x41c5b4(0x18e)]){_0x122a85[_0x41c5b4(0x1bf)][_0x41c5b4(0x19d)]();}}for(const _0x183a64 of _0xca1cb2){createElementStorage(romsFile,_0x183a64,_0x41c5b4(0x195)+_0x183a64);}for(const _0x2d77a2 of _0x1ff59e){createElementStorage(statesFile,_0x2d77a2,_0x41c5b4(0x1ae)+_0x2d77a2);}for(const _0x158373 of _0x32a061){createElementStorage(savesFile,_0x158373,_0x41c5b4(0x1b6)+_0x158373);}for(const _0x317591 of _0x3d77a5){createElementStorage(cheatsFile,_0x317591,'/data/cheats/'+_0x317591);}for(const _0x351704 of _0x14be1b){createElementStorage(screenshotsFile,_0x351704,_0x41c5b4(0x191)+_0x351704);}}document[a0_0x3aa54a(0x182)](a0_0x3aa54a(0x1b3),function(){const _0xea31fd=a0_0x3aa54a;upLoadFile[_0xea31fd(0x182)](_0xea31fd(0x197),function(){const _0x27bf20=_0xea31fd,_0x10b9fb=upLoadFile['files'][0x0]['name'];if(_0x10b9fb[_0x27bf20(0x189)](_0x27bf20(0x170)))a0_0xdb48ef['uploadCheat'](upLoadFile);else _0x10b9fb[_0x27bf20(0x189)](_0x27bf20(0x1b1))||_0x10b9fb[_0x27bf20(0x189)](_0x27bf20(0x1a3))||_0x10b9fb[_0x27bf20(0x189)]('.bc')?a0_0xdb48ef[_0x27bf20(0x1aa)](upLoadFile):a0_0xdb48ef['uploadSavSta'](upLoadFile);}),openLocalStorage['addEventListener']('click',function(){const _0x4a0e0f=_0xea31fd,_0x236a9e=localStorage[_0x4a0e0f(0x176)](_0x4a0e0f(0x1a9));storage[_0x4a0e0f(0x1bb)][_0x4a0e0f(0x19d)](_0x4a0e0f(0x1c2)),intro[_0x4a0e0f(0x1bb)][_0x4a0e0f(0x16d)](_0x4a0e0f(0x1c2)),ingame[_0x4a0e0f(0x1bb)][_0x4a0e0f(0x16d)]('disable'),_0x236a9e===null||_0x236a9e===''?(dropboxRestore[_0x4a0e0f(0x1bb)]['remove'](_0x4a0e0f(0x198)),dropboxBackup[_0x4a0e0f(0x1bb)][_0x4a0e0f(0x19d)](_0x4a0e0f(0x198)),dropboxCloud[_0x4a0e0f(0x1bb)]['remove'](_0x4a0e0f(0x198))):(dropboxRestore[_0x4a0e0f(0x1bb)][_0x4a0e0f(0x16d)]('active'),dropboxBackup['classList']['add'](_0x4a0e0f(0x198)),dropboxCloud[_0x4a0e0f(0x1bb)][_0x4a0e0f(0x16d)](_0x4a0e0f(0x198)));}),setTimeout(()=>{localStorageFile();},0xbb8);}); \ No newline at end of file diff --git a/docs/src/js/welcome.js b/docs/src/js/welcome.js index 212d518..7e90f45 100644 --- a/docs/src/js/welcome.js +++ b/docs/src/js/welcome.js @@ -1 +1 @@ -const a0_0x329007=a0_0x4105;(function(_0x3e408e,_0x44e600){const _0x5e5d1c=a0_0x4105,_0x4835b5=_0x3e408e();while(!![]){try{const _0x1c0f69=parseInt(_0x5e5d1c(0x1cd))/0x1*(parseInt(_0x5e5d1c(0x1c7))/0x2)+parseInt(_0x5e5d1c(0x1c0))/0x3*(-parseInt(_0x5e5d1c(0x1d7))/0x4)+-parseInt(_0x5e5d1c(0x1d0))/0x5+parseInt(_0x5e5d1c(0x1d5))/0x6+parseInt(_0x5e5d1c(0x1d2))/0x7*(parseInt(_0x5e5d1c(0x1d8))/0x8)+-parseInt(_0x5e5d1c(0x1e0))/0x9+parseInt(_0x5e5d1c(0x1de))/0xa*(-parseInt(_0x5e5d1c(0x1cf))/0xb);if(_0x1c0f69===_0x44e600)break;else _0x4835b5['push'](_0x4835b5['shift']());}catch(_0x56a634){_0x4835b5['push'](_0x4835b5['shift']());}}}(a0_0x1b74,0x80716));function a0_0x1b74(){const _0x3fca3f=['4382973shrjWc','3kGrAvv','createElement','name','files','disable','add','classList','2JTrLmQ','rom-list','loadGame','addEventListener','change','removeChild','932903RoSNcf','firstChild','66VFutFJ','2401830wXVVcD','div','7YEaIaw','flex-1','getElementById','3963906YPFofy','gameName','2452996nGqGGc','5534768SetTNn','uploadGame','insertBefore','setItem','click','remove','297810lNCzNX','listGame'];a0_0x1b74=function(){return _0x3fca3f;};return a0_0x1b74();}import*as a0_0x32fd13 from'./main.js';const romlist=document[a0_0x329007(0x1d4)](a0_0x329007(0x1c8)),romInput=document[a0_0x329007(0x1d4)]('fileInput');async function romList(){const _0x1dbd6e=a0_0x329007;await a0_0x32fd13[_0x1dbd6e(0x1df)]()['forEach'](_0x1228a6=>{const _0x37f8e4=_0x1dbd6e,_0x4cb017=Object['assign'](document[_0x37f8e4(0x1c1)](_0x37f8e4(0x1d1)),{'className':_0x37f8e4(0x1d3),'textContent':_0x1228a6,'onclick':()=>{const _0x443f45=_0x37f8e4;a0_0x32fd13[_0x443f45(0x1c9)](_0x1228a6),localStorage[_0x443f45(0x1db)]('gameName',_0x1228a6);}});romlist[_0x37f8e4(0x1da)](_0x4cb017,romlist[_0x37f8e4(0x1ce)]);});}async function inputGame(_0x2fe76c){const _0x2a029e=a0_0x329007,_0x5510d5=_0x2fe76c[_0x2a029e(0x1c3)][0x0][_0x2a029e(0x1c2)];localStorage[_0x2a029e(0x1db)](_0x2a029e(0x1d6),_0x5510d5),await a0_0x32fd13[_0x2a029e(0x1d9)](romInput),await delay(0x1f4),await a0_0x32fd13[_0x2a029e(0x1c9)](_0x5510d5);}function a0_0x4105(_0x2cf7dc,_0x2f0659){const _0x1b74c7=a0_0x1b74();return a0_0x4105=function(_0x4105e0,_0x156b97){_0x4105e0=_0x4105e0-0x1c0;let _0x135849=_0x1b74c7[_0x4105e0];return _0x135849;},a0_0x4105(_0x2cf7dc,_0x2f0659);}document[a0_0x329007(0x1ca)]('DOMContentLoaded',function(){const _0x366ae9=a0_0x329007;setTimeout(()=>{romList();},0x7d0),romInput[_0x366ae9(0x1ca)](_0x366ae9(0x1cb),function(){inputGame(romInput);}),backToHome[_0x366ae9(0x1ca)](_0x366ae9(0x1dc),function(){const _0x5183ef=_0x366ae9;storage['classList'][_0x5183ef(0x1c5)](_0x5183ef(0x1c4)),intro[_0x5183ef(0x1c6)][_0x5183ef(0x1dd)](_0x5183ef(0x1c4)),ingame['classList'][_0x5183ef(0x1c5)](_0x5183ef(0x1c4));while(romlist[_0x5183ef(0x1ce)]){romlist[_0x5183ef(0x1cc)](romlist[_0x5183ef(0x1ce)]);}setTimeout(()=>{romList();},0x64);});}); \ No newline at end of file +const a0_0x9bd982=a0_0x45e7;(function(_0xd47b89,_0x11bfbc){const _0x4f9162=a0_0x45e7,_0x5563ba=_0xd47b89();while(!![]){try{const _0x1e6a13=-parseInt(_0x4f9162(0x105))/0x1*(-parseInt(_0x4f9162(0x10f))/0x2)+parseInt(_0x4f9162(0x113))/0x3*(parseInt(_0x4f9162(0x123))/0x4)+parseInt(_0x4f9162(0x11b))/0x5+parseInt(_0x4f9162(0x10a))/0x6*(-parseInt(_0x4f9162(0x10c))/0x7)+-parseInt(_0x4f9162(0x120))/0x8*(parseInt(_0x4f9162(0x121))/0x9)+parseInt(_0x4f9162(0x122))/0xa*(parseInt(_0x4f9162(0x11a))/0xb)+-parseInt(_0x4f9162(0x117))/0xc;if(_0x1e6a13===_0x11bfbc)break;else _0x5563ba['push'](_0x5563ba['shift']());}catch(_0x28c33c){_0x5563ba['push'](_0x5563ba['shift']());}}}(a0_0x1d2d,0xc0253));import*as a0_0x4821b1 from'./main.js';const romlist=document[a0_0x9bd982(0x11e)]('rom-list'),romInput=document[a0_0x9bd982(0x11e)](a0_0x9bd982(0x119));async function romList(){const _0xb8e231=a0_0x9bd982;await a0_0x4821b1[_0xb8e231(0x112)]()[_0xb8e231(0x110)](_0x22cac2=>{const _0x2812ce=_0xb8e231,_0x1fc1c2=Object[_0x2812ce(0x107)](document[_0x2812ce(0x10e)](_0x2812ce(0x103)),{'className':'flex-1','textContent':_0x22cac2,'onclick':()=>{const _0x1f0d2f=_0x2812ce;a0_0x4821b1[_0x1f0d2f(0x11c)](_0x22cac2),localStorage[_0x1f0d2f(0x106)](_0x1f0d2f(0x11f),_0x22cac2);}});romlist['insertBefore'](_0x1fc1c2,romlist['firstChild']);});}function a0_0x1d2d(){const _0x2c3b51=['createElement','11306FxGpYz','forEach','add','listGame','129ytQYhA','change','addEventListener','disable','9259140mbXjEV','click','fileInput','4609RYWPba','5802370CBzvvf','loadGame','DOMContentLoaded','getElementById','gameName','96JXXSjS','727830YlPATg','3670lrAkLn','76844pnTBTy','div','remove','106JOhVEv','setItem','assign','uploadGame','firstChild','45102hulgwO','classList','196XYuehO','files'];a0_0x1d2d=function(){return _0x2c3b51;};return a0_0x1d2d();}function a0_0x45e7(_0x30160f,_0x1ad39d){const _0x1d2d23=a0_0x1d2d();return a0_0x45e7=function(_0x45e75d,_0x17cbec){_0x45e75d=_0x45e75d-0x103;let _0x18fd53=_0x1d2d23[_0x45e75d];return _0x18fd53;},a0_0x45e7(_0x30160f,_0x1ad39d);}async function inputGame(_0x21dd8a){const _0x5b7509=a0_0x9bd982,_0x46c899=_0x21dd8a[_0x5b7509(0x10d)][0x0]['name'];localStorage[_0x5b7509(0x106)](_0x5b7509(0x11f),_0x46c899),await a0_0x4821b1[_0x5b7509(0x108)](romInput),await delay(0x1f4),await a0_0x4821b1[_0x5b7509(0x11c)](_0x46c899);}document[a0_0x9bd982(0x115)](a0_0x9bd982(0x11d),function(){const _0x283375=a0_0x9bd982;setTimeout(()=>{romList();},0x7d0),romInput[_0x283375(0x115)](_0x283375(0x114),function(){inputGame(romInput);}),backToHome[_0x283375(0x115)](_0x283375(0x118),function(){const _0x4e474b=_0x283375;storage[_0x4e474b(0x10b)][_0x4e474b(0x111)]('disable'),intro[_0x4e474b(0x10b)][_0x4e474b(0x104)](_0x4e474b(0x116)),ingame[_0x4e474b(0x10b)]['add'](_0x4e474b(0x116));while(romlist[_0x4e474b(0x109)]){romlist['removeChild'](romlist[_0x4e474b(0x109)]);}setTimeout(()=>{romList();},0x64);});}); \ No newline at end of file diff --git a/docs/sw.js b/docs/sw.js index d7f3079..7059473 100644 --- a/docs/sw.js +++ b/docs/sw.js @@ -1,4 +1,4 @@ -let revision = 'V2.22'; +let revision = 'V2.21'; importScripts('https://storage.googleapis.com/workbox-cdn/releases/7.1.0/workbox-sw.js'); workbox.setConfig({ debug: false }); revision = (parseInt(revision) + 1).toString(); @@ -34,7 +34,7 @@ workbox.routing.registerRoute( ); self.addEventListener('message', (event) => { if (event.data && event.data.type === 'DELETE_CACHE') { - if (navigator.onLine && navigator.connection.effectiveType !== 'none') { + if (navigator.onLine) { caches.keys().then((cacheNames) => { return Promise.all( cacheNames.map((cacheName) => { diff --git a/index.html b/index.html index 4ec6325..481eef8 100644 --- a/index.html +++ b/index.html @@ -351,7 +351,7 @@
- + diff --git a/sw.js b/sw.js index d7f3079..7059473 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -let revision = 'V2.22'; +let revision = 'V2.21'; importScripts('https://storage.googleapis.com/workbox-cdn/releases/7.1.0/workbox-sw.js'); workbox.setConfig({ debug: false }); revision = (parseInt(revision) + 1).toString(); @@ -34,7 +34,7 @@ workbox.routing.registerRoute( ); self.addEventListener('message', (event) => { if (event.data && event.data.type === 'DELETE_CACHE') { - if (navigator.onLine && navigator.connection.effectiveType !== 'none') { + if (navigator.onLine) { caches.keys().then((cacheNames) => { return Promise.all( cacheNames.map((cacheName) => {