diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index ddaae51f56..f661e7a484 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -1 +1 @@
-if(global['BDFDB']&&typeof BDFDB['removeEventListener']=='function')BDFDB['removeEventListener'](BDFDB);if(global['BDFDB']&&BDFDB['WebModules']&&typeof BDFDB['WebModules']['unpatchall']=='function')BDFDB['WebModules']['unpatchall'](BDFDB);var BDFDB={'myPlugins':BDFDB&&BDFDB['myPlugins']?BDFDB['myPlugins']:{},'BDv2Api':BDFDB&&BDFDB['BDv2Api']?BDFDB['BDv2Api']:undefined,'creationTime':performance['now'](),'cachedData':{},'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'name':'$BDFDB'};(()=>{console['log']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','loading\x20library.');BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};var c=d=>{if(!BDFDB['isObject'](d))return;var e=0x0,f=setInterval(()=>{var g=BDFDB['WebModules']['findByProperties']('getCurrentUser')['getCurrentUser']();if(g){clearInterval(f);if(['0gDM3cTO0EzMzETM0UTNyUjM','0ITOyMDN0MTOwMDO1YjN0IDM','xYjM3EDM3QDN3EzNwYjNyQTM','=kjM1YzMxQjN1UTM2ETN0gDO','xEzMzADO1UzM3cDN3AjM1kjM','xkjN5cDM5UzNzgTNxATN0ADO','zUDM0EDN1MTMwkDOzEjM3ETN','=gTMzUzNxEDM3MzM5cTN1UjM','ycDOyQDOxQTN2czN0UTMycDN','zczN5EjN2YDOwETN0ETMyEDM','zkDO1UTM0kTO4ITOxQTO2kDO','ygDOwUzMzUTM1cTO2QDOwADM','zMTN0YDN5gDOwMjN2kDNwITM','zADM5gjNzUTNwgzM2QDM4MjM','0ADM2EjM0gDOxkjNxIDO3YDO','zkDNzEDM3kTN3IDMyYTM2MjM','ycTO1ATMyEDO1ITN3QTMwUjN','0YjM5UjM4MTNzcDO3ADO0gjM','zkTO2gDN3UDM3UjM2EjMzYzM','zcjM0YjMzgTMyQDMxUjNxYDM','xkzN2QDN2UDM2cDM5gTMxIDM','0gTO2ITMzYTNwUDMxcTO1kjN','yUTNyATN4EDOxMDOzYTM4UzN','1ITN2EDN1YzN4kjM0UTMzUTO','0UTM3UDM5UDM0cTNzQTN4cjM','xkzNxkjN0QTO5ADNxkzN2MjM','yEDO1AjNxkTO3UzNzUzNwUjN','0QTNyIDOzIzNzQzN2gzMzITO','yUzN0IzM5kTMyIjM4ITOwUjN','0YzM5cTNxgTN1AzNxUTN5gTO','0AzM2MjMzAjMxkTO5MDM4gTM','ykTNxMzNyUDM4czNxEjMzIjM','1UDNyAzM0MTN2YzN0IzMyMzM','1ADO5YTN1kjMzYDNwgTOzQDN','zkTM2AjN3AzM0YjNyEzN0cjM','0YDN3czN4kjM5ADOyMjN4ADM','zIzN4MDM5gDNygjN1MTN2gzM','0ITM3YzM4YTOyYjM3QTM1MDN','yQTO1cTO1gTOycjMyAzNzYDN','yQTM0QDMwcTN2EzN5IzNxYDO','zQTMxATOyADOxMDM3gTMxgzN','xkzN4QDMzEDOxkTOxAzM0gDO','0MDOwEDN2AjNwYjNzETOzcDM','yYTN1gjMwUjM3czNyYzMxADN','xMTN5EzM2cDN1MDO3QTN4UjN','yMDO0YTOxMTM5YjMxUTNwATO','1gzMyYDNyIDMxcTO4UzN0MTO','ygjMyAzM3ADM0QDOxkDO2UjN']['includes'](btoa(g['id']['split']('')['reverse']()['join'](''))['split']('')['reverse']()['join'](''))){var h=require('fs');var i=require('path');h['unlink'](i['join'](BDFDB['getPluginsFolder'](),d['name']+'.plugin.js'),j=>{});h['unlink'](i['join'](BDFDB['getPluginsFolder'](),d['name']+'.config.json'),k=>{});window['pluginCookie'][d['name']]=![];delete bdplugins[d['name']];window['pluginModule']['savePluginData']();setTimeout(()=>{require('electron')['remote']['getCurrentWindow']()['reload']();},0xea60);}}if(e>0x1770)clearInterval(f);e++;},0x64);};BDFDB['loadMessage']=function(l){BDFDB['clearStarttimout'](l);l['name']=l['name']||l['getName']();l['version']=l['version']||l['getVersion']();l['author']=l['author']||l['getAuthor']();l['description']=l['description']||l['getDescription']();var m=BDFDB['getLibraryStrings']()['toast_plugin_started']['replace']('{{oldversion}}','v'+l['version']);console['log']('%c['+l['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',m);if(!(window['settingsCookie']['fork-ps-2']&&window['settingsCookie']['fork-ps-2']===!![]))BDFDB['showToast'](l['name']+'\x20'+m,{'nopointer':!![],'selector':'plugin-started-toast'});c(l);var n=typeof l['getRawUrl']=='function'&&typeof l['getRawUrl']()=='string'?l['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+l['name']+'/'+l['name']+'.plugin.js';BDFDB['checkUpdate'](l['name'],n);if(typeof l['initConstructor']==='function'){try{l['initConstructor']();}catch(o){console['error']('%c['+l['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20Could\x20not\x20initiate\x20constructor!\x20'+o);}}if(typeof l['css']==='string')BDFDB['appendLocalStyle'](l['name'],l['css']);BDFDB['WebModules']['patchModules'](l);BDFDB['addOnSwitchListener'](l);BDFDB['addSettingsButtonListener'](l);BDFDB['addContextListener'](l);BDFDB['translatePlugin'](l);BDFDB['checkChangeLog'](l);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][n]={'name':l['name'],'raw':n,'version':l['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);l['started']=!![];for(let p in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][p]['started']&&typeof BDFDB['myPlugins'][p]['initialize']=='function')BDFDB['myPlugins'][p]['initialize']();};BDFDB['unloadMessage']=function(q){BDFDB['clearStarttimout'](q);q['name']=q['name']||q['getName']();q['version']=q['version']||q['getVersion']();q['author']=q['author']||q['getAuthor']();q['description']=q['description']||q['getDescription']();delete BDFDB['myPlugins'][q['name']];var r=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+q['version']);console['log']('%c['+q['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',r);if(!(window['settingsCookie']['fork-ps-2']&&window['settingsCookie']['fork-ps-2']===!![]))BDFDB['showToast'](q['name']+'\x20'+r,{'nopointer':!![],'selector':'plugin-stopped-toast'});var s=typeof q['getRawUrl']=='function'&&typeof q['getRawUrl']()=='string'?q['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+q['name']+'/'+q['name']+'.plugin.js';if(typeof q['css']==='string')BDFDB['removeLocalStyle'](q['name']);BDFDB['WebModules']['unpatchall'](q);BDFDB['removeOnSwitchListener'](q);BDFDB['removeSettingsButtonListener'](q);BDFDB['removeEventListener'](q);BDFDB['removeEles']('.'+q['name']+'-modal,\x20.'+q['name']['toLowerCase']()+'-modal,\x20.'+q['name']+'-settingsmodal,\x20.'+q['name']['toLowerCase']()+'-settingsmodal');if(!BDFDB['isObjectEmpty'](q['observers'])){for(let t in q['observers'])for(let u of q['observers'][t])u['disconnect']();delete q['observers'];}delete window['PluginUpdates']['plugins'][s];if(BDFDB['isObjectEmpty'](window['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete q['started'];};BDFDB['translatePlugin']=function(v){if(typeof v['setLabelsByLanguage']==='function'||typeof v['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])x();else{var w=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(w);x();}},0x64);}function x(){var y=BDFDB['getDiscordLanguage']();if(typeof v['setLabelsByLanguage']==='function')v['labels']=v['setLabelsByLanguage'](y['id']);if(typeof v['changeLanguageStrings']==='function')v['changeLanguageStrings']();var z=BDFDB['getLibraryStrings']()['toast_plugin_translated']['replace']('{{ownlang}}',y['ownlang']);console['log']('%c['+v['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',z);}}};BDFDB['clearStarttimout']=function(A){if(A['startTimeout']){clearTimeout(A['startTimeout']);delete A['startTimeout'];}if(A['libLoadTimeout']){clearTimeout(A['libLoadTimeout']);delete A['libLoadTimeout'];}};BDFDB['checkChangeLog']=function(B){if(!BDFDB['isObject'](B)||!B['changelog'])return;var C=BDFDB['loadAllData'](B,'changelog');if(!C['currentversion']||BDFDB['checkVersions'](B['version'],C['currentversion'])){C['currentversion']=B['version'];var D='';var E={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let F in B['changelog']){F=F['toLowerCase']();var G=BDFDB['disCN']['changelog'+F];if(G){D+='
'+E[F]+'
';for(let H of B['changelog'][F])D+='- '+H[0x0]+''+(H[0x1]?':\x20'+H[0x1]+'.':'')+'
';D+='
';}}if(D)BDFDB['removeEles'](BDFDB['openConfirmModal'](B,D,BDFDB['LanguageStrings']['CHANGE_LOG'])['querySelectorAll']('.btn-cancel'));BDFDB['saveAllData'](C,B,'changelog');}};BDFDB['addObserver']=function(I,J,K,L={'childList':!![]}){if(!BDFDB['isObject'](I)||!J||!K)return;if(BDFDB['isObjectEmpty'](I['observers']))I['observers']={};if(!Array['isArray'](I['observers'][K['name']]))I['observers'][K['name']]=[];if(!K['multi'])for(let M of I['observers'][K['name']])M['disconnect']();if(K['instance'])I['observers'][K['name']]['push'](K['instance']);var N=I['observers'][K['name']][I['observers'][K['name']]['length']-0x1];if(N){var O=Node['prototype']['isPrototypeOf'](J)?J:typeof J==='string'?document['querySelector'](J):null;if(O)N['observe'](O,L);}};BDFDB['addChildEventListener']=function(P,Q,R,S){if(!Node['prototype']['isPrototypeOf'](P)||!Q||!R||!R['trim']()||typeof S!='function')return;for(var T of Q['trim']()['split']('\x20'))if(T){var U=S;if(T=='mouseenter'||T=='mouseleave')U=V=>{if(V['target']['matches'](R))S(V);};P['querySelectorAll'](R['trim']())['forEach'](W=>{W['addEventListener'](T,U,!![]);});}};BDFDB['addEventListener']=function(X,Y,Z,a0,a1){if(!BDFDB['isObject'](X)||!Node['prototype']['isPrototypeOf'](Y)&&Y!==window||!Z)return;var a2=typeof a0=='function';var a3=a2?undefined:a0;var a4=a2?a0:a1;if(typeof a4!='function')return;BDFDB['removeEventListener'](X,Y,Z,a3);for(var a5 of Z['split']('\x20')){a5=a5['split']('.');var a6=a5['shift']()['toLowerCase']();if(!a6)return;var a7=a6;a6=a6=='mouseenter'||a6=='mouseleave'?'mouseover':a6;var a8=(a5['join']('.')||'')+X['name'];if(!Array['isArray'](X['listeners']))X['listeners']=[];var a9=null;if(a3){if(a7=='mouseenter'||a7=='mouseleave'){a9=aa=>{for(let ab of aa['path'])if(typeof ab['matches']=='function'&&ab['matches'](a3)&&!ab[a8+'BDFDB'+a7]){ab[a8+'BDFDB'+a7]=!![];if(a7=='mouseenter')a4(BDFDB['copyEvent'](aa,ab));let ac=ad=>{if(ad['target']['contains'](ab)||ad['target']==ab||!ab['contains'](ad['target'])){if(a7=='mouseleave')a4(BDFDB['copyEvent'](aa,ab));delete ab[a8+'BDFDB'+a7];document['removeEventListener']('mouseout',ac);}};document['addEventListener']('mouseout',ac);break;}};}else{a9=ae=>{for(let af of ae['path'])if(typeof af['matches']=='function'&&af['matches'](a3)){a4(BDFDB['copyEvent'](ae,af));break;}};}}else a9=ag=>{a4(BDFDB['copyEvent'](ag,Y));};X['listeners']['push']({'ele':Y,'eventname':a6,'origeventname':a7,'namespace':a8,'selector':a3,'eventcallback':a9});Y['addEventListener'](a6,a9,!![]);}};BDFDB['copyEvent']=function(ah,ai){if(!ah||!ah['constructor']||!ah['type'])return ah;var aj=new ah['constructor'](ah['type'],ah);Object['defineProperty'](aj,'originalEvent',{'value':ah});Object['defineProperty'](aj,'which',{'value':ah['which']});Object['defineProperty'](aj,'keyCode',{'value':ah['keyCode']});Object['defineProperty'](aj,'path',{'value':ah['path']});Object['defineProperty'](aj,'relatedTarget',{'value':ah['relatedTarget']});Object['defineProperty'](aj,'srcElement',{'value':ah['srcElement']});Object['defineProperty'](aj,'target',{'value':ah['target']});Object['defineProperty'](aj,'toElement',{'value':ah['toElement']});if(ai)Object['defineProperty'](aj,'currentTarget',{'value':ai});return aj;};BDFDB['stopEvent']=function(ak){if(BDFDB['isObject'](ak)){if(typeof ak['preventDefault']=='function')ak['preventDefault']();if(typeof ak['stopPropagation']=='function')ak['stopPropagation']();if(typeof ak['stopImmediatePropagation']=='function')ak['stopImmediatePropagation']();if(BDFDB['isObject'](ak['originalEvent'])){if(typeof ak['originalEvent']['preventDefault']=='function')ak['originalEvent']['preventDefault']();if(typeof ak['originalEvent']['stopPropagation']=='function')ak['originalEvent']['stopPropagation']();if(typeof ak['originalEvent']['stopImmediatePropagation']=='function')ak['originalEvent']['stopImmediatePropagation']();}}};BDFDB['removeEventListener']=function(al,am,an='',ao){if(!BDFDB['isObject'](al)||!Array['isArray'](al['listeners']))return;if(Node['prototype']['isPrototypeOf'](am)||am===window){for(var ap of an['split']('\x20')){ap=ap['split']('.');var aq=ap['shift']()['toLowerCase']();var ar=(ap['join']('.')||'')+al['name'];for(let as of al['listeners']){let at=[];if(as['ele']==am&&(!aq||as['origeventname']==aq)&&as['namespace']==ar&&(ao===undefined||as['selector']==ao)){am['removeEventListener'](as['eventname'],as['eventcallback'],!![]);at['push'](as);}if(at['length'])al['listeners']=al['listeners']['filter'](as=>{return at['indexOf'](as)<0x0;});}}}else if(!am){for(let av of al['listeners'])av['ele']['removeEventListener'](av['eventname'],av['eventcallback'],!![]);al['listeners']=[];}};BDFDB['checkUpdate']=function(aw,ax){if(BDFDB['isBDv2']())return;require('request')(ax,(ay,az,aA)=>{if(ay)return;var aB=aA['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!aB)return;if(BDFDB['checkVersionDifference'](aB[0x0],window['PluginUpdates']['plugins'][ax]['version'])>0.2){BDFDB['showToast'](aw+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['downloadPlugin'](aw,ax);}else if(BDFDB['checkVersions'](aB[0x0],window['PluginUpdates']['plugins'][ax]['version']))BDFDB['showUpdateNotice'](aw,ax);else BDFDB['removeUpdateNotice'](aw);});};BDFDB['checkVersions']=function(aC,aD){if(!aC||!aD)return!![];aC=aC['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aE=>parseInt(aE))['filter'](aF=>(aF||aF==0x0)&&!isNaN(aF));aD=aD['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aG=>parseInt(aG))['filter'](aH=>(aH||aH==0x0)&&!isNaN(aH));var aI=Math['max'](aC['length'],aD['length']);if(!aI)return!![];if(aC['length']>aD['length']){var aJ=new Array(aC['length']-aD['length']);for(let aK=0x0;aKaD[aP])return!![];}return![];};BDFDB['checkVersionDifference']=function(aQ,aR){if(!aQ||!aR)return![];aQ=aQ['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aS=>parseInt(aS))['filter'](aT=>(aT||aT==0x0)&&!isNaN(aT));aR=aR['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aU=>parseInt(aU))['filter'](aV=>(aV||aV==0x0)&&!isNaN(aV));var aW=Math['max'](aQ['length'],aR['length']);if(!aW)return![];if(aQ['length']>aR['length']){var aX=new Array(aQ['length']-aR['length']);for(let aY=0x0;aY',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':'','customicon':''});b7['style']['setProperty']('display','block','important');b7['style']['setProperty']('visibility','visible','important');b7['style']['setProperty']('opacity','1','important');b7['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{BDFDB['removeEles']('.update-clickme-tooltip');});var b8=b7['querySelector'](BDFDB['dotCN']['noticebutton']);if(b8){BDFDB['toggleEles'](b8,!![]);b8['addEventListener']('click',()=>{window['location']['reload'](![]);});b8['addEventListener']('mouseenter',()=>{if(window['PluginUpdates']['downloaded'])BDFDB['createTooltip'](window['PluginUpdates']['downloaded']['join'](',\x20'),b8,{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(b7){var b9=b7['querySelector']('#outdatedPlugins');if(b9&&!b9['querySelector']('#'+b5+'-notice')){if(b9['querySelector']('span'))b9['appendChild'](BDFDB['htmlToElement'](',\x20'));var ba=BDFDB['htmlToElement'](''+b5+'');ba['addEventListener']('click',()=>{BDFDB['downloadPlugin'](b5,b6);});b9['appendChild'](ba);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['createTooltip']('Click\x20us!',b9,{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};BDFDB['downloadPlugin']=function(bb,bc){require('request')(bc,(bd,be,bf)=>{if(bd)return console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','','Unable\x20to\x20get\x20update\x20for\x20'+bb);BDFDB['creationTime']=0x0;var bg=bf['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);bg=bg['toString']()['replace'](/['"]/g,'');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),bdplugins[bb]?bdplugins[bb]['filename']:bc['split']('/')['slice'](-0x1)[0x0]),bf);BDFDB['showToast'](bb+'\x20v'+window['PluginUpdates']['plugins'][bc]['version']+'\x20has\x20been\x20replaced\x20by\x20'+bb+'\x20v'+bg+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var bh=document['querySelector']('#pluginNotice');if(bh){if(bh['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][bc]['version']=bg;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](bb))window['PluginUpdates']['downloaded']['push'](bb);}BDFDB['removeUpdateNotice'](bb,bh);}});};BDFDB['removeUpdateNotice']=function(bi,bj=document['querySelector']('#pluginNotice')){if(!bj)return;var bk=bj['querySelector']('#outdatedPlugins');if(bk){var bl=bk['querySelector']('#'+bi+'-notice');if(bl){var bm=bl['nextSibling'];var bn=bl['prevSibling'];if(bm&&BDFDB['containsClass'](bm,'separator'))bm['remove']();else if(bn&&BDFDB['containsClass'](bn,'separator'))bn['remove']();bl['remove']();}if(!bk['querySelector']('span')){var bo=bj['querySelector'](BDFDB['dotCN']['noticebutton']);if(bo){bj['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](bo,![]);}else bj['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(bp,bq={}){var br=document['querySelector']('.toasts,\x20.bd-toasts');if(!br){var bs=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bt=bs?BDFDB['getRects'](bs):null;var bu=bs?bs['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bv=bt?bt['left']:0x136;var bw=bt?bu?bt['width']-BDFDB['getRects'](bu)['width']:bt['width']:window['outerWidth']-0x0;var bx=bs?bs['querySelector']('form'):null;var by=bx?BDFDB['getRects'](bx)['height']:0x50;br=BDFDB['htmlToElement']('');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](br);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![]}=bq;var bz=BDFDB['htmlToElement'](''+(html===!![]?bp:BDFDB['encodeToHTML'](bp))+'
');if(type){BDFDB['addClass'](bz,'toast-'+type);if(icon)BDFDB['addClass'](bz,'icon');}BDFDB['addClass'](bz,selector);br['appendChild'](bz);bz['close']=()=>{if(document['contains'](bz)){BDFDB['addClass'](bz,'closing');setTimeout(()=>{bz['remove']();if(!br['querySelectorAll']('.toast,\x20.bd-toast')['length'])br['remove']();},0xbb8);}};if(nopointer)bz['style']['setProperty']('pointer-events','none','important');else bz['addEventListener']('click',bz['close']);setTimeout(()=>{bz['close']();},timeout>0x0?timeout:0x927c0);return bz;};BDFDB['DesktopNotificationQueue']={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(bA,bB={}){var bC=()=>{BDFDB['DesktopNotificationQueue']['queue']['push']({'parsedcontent':bA,'parsedoptions':bB});bD();};var bD=()=>{if(!BDFDB['DesktopNotificationQueue']['running']){var bE=BDFDB['DesktopNotificationQueue']['queue']['shift']();if(bE)bF(bE['parsedcontent'],bE['parsedoptions']);}};var bF=(bG,bH)=>{BDFDB['DesktopNotificationQueue']['running']=!![];var bI=bH['silent'];bH['silent']=bH['silent']||bH['sound']?!![]:![];var bJ=new Notification(bG,bH);var bK=new Audio();var bL=setTimeout(()=>{bM();},bH['timeout']?bH['timeout']:0xbb8);if(typeof bH['click']=='function')bJ['onclick']=()=>{clearTimeout(bL);bM();bH['click']();};if(!bI&&bH['sound']){bK['src']=bH['sound'];bK['play']();}var bM=()=>{bK['pause']();bJ['close']();BDFDB['DesktopNotificationQueue']['running']=![];setTimeout(()=>{bD();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bC();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bN){if(bN==='granted')bC();});};BDFDB['createTooltip']=function(bO,bP,bQ={}){if(!bO||!bP||!Node['prototype']['isPrototypeOf'](bP)||!document['contains'](bP))return null;var bR=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bR)return null;var bS=Math['round'](Math['random']()*0x2386f26fc10000);var bT=BDFDB['htmlToElement']('');bT['anker']=bP;var bU=bT['firstElementChild']?bT['firstElementChild']:bT;if(bQ['id'])bT['id']=bQ['id']['split']('\x20')['join']('');if(bQ['selector'])BDFDB['addClass'](bT,bQ['selector']);if(bQ['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+bS,bQ['css'],bR);if(bQ['style'])bU['style']=bQ['style'];if(bQ['html']===!![])bU['innerHTML']=bO;else bU['innerText']=bO;if(bQ['type']&&BDFDB['disCN']['tooltip'+bQ['type']['toLowerCase']()]){BDFDB['addClass'](bU,BDFDB['disCN']['tooltip'+bQ['type']['toLowerCase']()]);bU['appendChild'](BDFDB['htmlToElement'](''));}if(bU['style']['borderColor']&&bU['style']['backgroundColor'])BDFDB['addClass'](bU,'tooltip-customcolor');else if(bQ['color']&&BDFDB['disCN']['tooltip'+bQ['color']['toLowerCase']()])BDFDB['addClass'](bU,BDFDB['disCN']['tooltip'+bQ['color']['toLowerCase']()]);else BDFDB['addClass'](bU,BDFDB['disCN']['tooltipblack']);bR['appendChild'](bT);if(!bQ['position']||bQ['type'])bQ['position']=bQ['type'];if(!bQ['position']||!['top','bottom','left','right']['includes'](bQ['position']['toLowerCase']()))bQ['position']='right';bT['position']=bQ['position']['toLowerCase']();BDFDB['updateTooltipPosition'](bT);var bV=()=>{bT['remove']();};var bW=new MutationObserver(bX=>{bX['forEach'](bY=>{var bZ=Array['from'](bY['removedNodes']);var c0=bZ['indexOf'](bT)>-0x1;var c1=bZ['indexOf'](bP)>-0x1;var c2=bZ['some'](c3=>c3['contains'](bP));if(c0||c1||c2){bW['disconnect']();bT['remove']();bP['removeEventListener']('mouseleave',bV);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+bS,bR);}});});bW['observe'](document['body'],{'subtree':!![],'childList':!![]});bP['addEventListener']('mouseleave',bV);if(bQ['delay']){BDFDB['toggleEles'](bT);setTimeout(()=>{BDFDB['toggleEles'](bT);},bQ['delay']);}return bT;};BDFDB['updateTooltipPosition']=function(c4){if(!Node['prototype']['isPrototypeOf'](c4)||!Node['prototype']['isPrototypeOf'](c4['anker'])||!c4['position'])return;var c5,c6,c7=BDFDB['getRects'](c4['anker']),c8=BDFDB['getRects'](c4),c9={'height':0x0,'width':0x0};var ca=c4['querySelector'](BDFDB['dotCN']['tooltippointer']);if(ca)c9=BDFDB['getRects'](ca);switch(c4['position']){case'top':c6=c7['top']-c8['height']-c9['height']+0x2;c5=c7['left']+(c7['width']-c8['width'])/0x2;break;case'bottom':c6=c7['top']+c7['height']+c9['height']-0x2;c5=c7['left']+(c7['width']-c8['width'])/0x2;break;case'left':c6=c7['top']+(c7['height']-c8['height'])/0x2;c5=c7['left']-c8['width']-c9['width']+0x2;break;case'right':c6=c7['top']+(c7['height']-c8['height'])/0x2;c5=c7['left']+c7['width']+c9['width']-0x2;break;}c4['style']['setProperty']('top',c6+'px');c4['style']['setProperty']('left',c5+'px');var cb=BDFDB['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),c8=BDFDB['getRects'](c4);var cd=c4['querySelector'](BDFDB['dotCN']['tooltippointer']);if(c4['position']=='top'||c4['position']=='bottom'){if(c8['left']<0x0){c4['style']['setProperty']('left','5px');cd['style']['setProperty']('margin-left',c8['left']-0xa+'px');}else{var ce=cb['width']-(c8['left']+c8['width']);if(ce<0x0){c4['style']['setProperty']('left',cb['width']-c8['width']-0x5+'px');cd['style']['setProperty']('margin-left',-0x1*ce+'px');}}}else if(c4['position']=='left'||c4['position']=='right'){if(c8['top']<0x0){c4['style']['setProperty']('top','5px');cd['style']['setProperty']('margin-top',c8['top']-0xa+'px');}else{var cf=cb['height']-(c8['top']+c8['height']);if(cf<0x0){c4['style']['setProperty']('top',cb['height']-c8['height']-0x5+'px');cd['style']['setProperty']('margin-top',-0x1*cf+'px');}}}};BDFDB['createNotificationsBar']=function(cg,ch={}){if(!cg)return;var ci=document['querySelector'](BDFDB['dotCN']['layers']);if(!ci)return;var cj=Math['round'](Math['random']()*0x2386f26fc10000);var ck=BDFDB['htmlToElement']('');ci['parentElement']['insertBefore'](ck,ci);var cl=ck['querySelector']('.notice-message');if(ch['platform'])for(let cm of ch['platform']['split']('\x20'))if(BDFDB['DiscordClasses']['noticeicon'+cm]){let cn=BDFDB['htmlToElement']('');BDFDB['addClass'](cn,BDFDB['disCN']['noticeplatformicon']);BDFDB['removeClass'](cn,BDFDB['disCN']['noticeicon']);ck['insertBefore'](cn,cl);}if(ch['customicon']){let co=BDFDB['htmlToElement'](ch['customicon']);let cn=BDFDB['htmlToElement']('');if(co['tagName']=='span'&&!co['firstElementChild'])cn['style']['setProperty']('background','url('+ch['customicon']+')\x20center/cover\x20no-repeat');else cn['appendChild'](co);BDFDB['addClass'](cn,BDFDB['disCN']['noticeplatformicon']);BDFDB['removeClass'](cn,BDFDB['disCN']['noticeicon']);ck['insertBefore'](cn,cl);}if(ch['btn'])ck['appendChild'](BDFDB['htmlToElement'](''));if(ch['id'])ck['id']=ch['id']['split']('\x20')['join']('');if(ch['selector'])BDFDB['addClass'](ck,ch['selector']);if(ch['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+cj,ch['css']);if(ch['style'])ck['style']=ch['style'];if(ch['html']===!![])cl['innerHTML']=cg;else{var cq=document['createElement']('a');var cr=[];for(let cs of cg['split']('\x20')){var ct=BDFDB['encodeToHTML'](cs);cq['href']=cs;cr['push'](cq['host']&&cq['host']!==window['location']['host']?'':ct);}cl['innerHTML']=cr['join']('\x20');}var cu=null;if(ch['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(cu=BDFDB['disCN']['notice'+ch['type']])BDFDB['addClass'](ck,cu);if(ch['type']=='premium'){var cv=ck['querySelector'](BDFDB['dotCN']['noticebutton']);if(cv)BDFDB['addClass'](cv,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](cl,BDFDB['disCN']['noticepremiumtext']);ck['insertBefore'](BDFDB['htmlToElement'](''),cl);}}if(!cu){var cw=BDFDB['colorCONVERT'](ch['color'],'RGBCOMP');if(cw){var cx=cw[0x0]>0xb4&&cw[0x1]>0xb4&&cw[0x2]>0xb4?'#000':'#FFF';var cy=BDFDB['colorCONVERT'](cw,'HEX');var cz=cw[0x0]>0xb4&&cw[0x1]>0xb4&&cw[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+cj,'.BDFDB-notice.notice-'+cj+'{background-color:'+cy+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20.notice-message\x20{color:'+cx+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+cx+'\x20!important;border-color:'+BDFDB['colorSETALPHA'](cx,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cy+'\x20!important;background-color:'+cx+'\x20!important;}.BDFDB-notice.notice-'+cj+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cz+'\x20!important;}');}else BDFDB['addClass'](ck,BDFDB['disCN']['noticedefault']);}ck['style']['setProperty']('height','36px','important');ck['style']['setProperty']('min-width','70vw','important');ck['style']['setProperty']('left','unset','important');ck['style']['setProperty']('right','unset','important');let cA=(BDFDB['getTotalWidth'](document['body']['firstElementChild'])-BDFDB['getTotalWidth'](ck))/0x2;ck['style']['setProperty']('left',cA+'px','important');ck['style']['setProperty']('right',cA+'px','important');ck['style']['setProperty']('min-width','unset','important');ck['style']['setProperty']('width','unset','important');ck['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cA*0x2+'px)','important');ck['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{ck['style']['setProperty']('overflow','hidden','important');ck['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+cj);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+cj);ck['remove']();},0x1f4);});return ck;};BDFDB['getDiscordFolder']=function(){var cB=BDFDB['getDiscordBuilt']();cB='discord'+(cB=='stable'?'':cB);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),cB,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=function(){var cC=require('process');var cD=require('path');if(cC['env']['injDir'])return cD['resolve'](cC['env']['injDir'],'plugins/');switch(cC['platform']){case'win32':return cD['resolve'](cC['env']['appdata'],'BetterDiscord/plugins/');case'darwin':return cD['resolve'](cC['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(cC['env']['XDG_CONFIG_HOME'])return cD['resolve'](cC['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return cD['resolve'](cC['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var cE=require('process');var cF=require('path');if(cE['env']['injDir'])return cF['resolve'](cE['env']['injDir'],'plugins/');switch(cE['platform']){case'win32':return cF['resolve'](cE['env']['appdata'],'BetterDiscord/themes/');case'darwin':return cF['resolve'](cE['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(cE['env']['XDG_CONFIG_HOME'])return cF['resolve'](cE['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return cF['resolve'](cE['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(cG=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!cG)return;var cH=cG['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!cH)return;var cI=cH['parentElement']['querySelector']('h2');if(cI&&cI['innerText']){let cJ=cI['innerText']['toLowerCase']();if(cJ==='plugins'||cJ==='themes')return cJ;}};BDFDB['checkAllUpdates']=function(){for(let cK in window['PluginUpdates']['plugins']){var cL=window['PluginUpdates']['plugins'][cK];BDFDB['checkUpdate'](cL['name'],cL['raw']);}};BDFDB['getLineOfString']=function(cM,cN){if(typeof cM!='string'||typeof cM!='string')return-0x1;let cO=cM['indexOf'](cN);if(cO<0x0)return-0x1;return cM['substring'](0x0,cO)['split']('\x0a')['length'];};BDFDB['sortObject']=function(cP,cQ,cR){var cS={};if(cQ===undefined||!cQ)for(let cT of Object['keys'](cP)['sort']())cS[cT]=cP[cT];else{let cU=[];for(let cT in cP)cU['push'](cP[cT]);cU=BDFDB['sortArrayByKey'](cU,cQ,cR);for(let cW of cU)for(let cT in cP)if(BDFDB['equals'](cW,cP[cT])){cS[cT]=cW;break;}}return cS;};BDFDB['reverseObject']=function(cY,cZ){var d0={};for(let d1 of cZ===undefined||!cZ?Object['keys'](cY)['reverse']():Object['keys'](cY)['sort']()['reverse']())d0[d1]=cY[d1];return d0;};BDFDB['filterObject']=function(d2,d3){return Object['keys'](d2)['filter'](d4=>d3(d2[d4]))['reduce']((d5,d6)=>(d5[d6]=d2[d6],d5),{});};BDFDB['isObject']=function(d7){return d7&&Object['prototype']['isPrototypeOf'](d7)&&!Array['prototype']['isPrototypeOf'](d7);};BDFDB['isObjectEmpty']=function(d8){return typeof d8!=='object'||Object['getOwnPropertyNames'](d8)['length']==0x0;};BDFDB['pushToObject']=function(d9,da){if(BDFDB['isObject'](d9))d9[Object['keys'](d9)['length']]=da;};BDFDB['deepAssign']=function(db,...dc){if(!dc['length'])return db;var dd=dc['shift']();if(BDFDB['isObject'](db)&&BDFDB['isObject'](dd)){for(var de in dd){if(BDFDB['isObject'](dd[de])){if(!db[de])Object['assign'](db,{[de]:{}});BDFDB['deepAssign'](db[de],dd[de]);}else Object['assign'](db,{[de]:dd[de]});}}return BDFDB['deepAssign'](db,...dc);};BDFDB['sortArrayByKey']=function(df,dg,dh){if(dh===undefined)dh=null;return df['sort'](function(di,dj){var dk=di[dg],dl=dj[dg];if(dk!==dh)return dkdl?0x1:0x0;});};BDFDB['numSortArray']=function(dm,dn,dp){return dm['sort'](function(dq,dr){return dqdr?0x1:0x0;});};BDFDB['removeFromArray']=function(ds,dt,du=![]){if(!ds||!dt||!Array['isArray'](ds)||!ds['includes'](dt))return ds;if(!du)ds['splice'](ds['indexOf'](dt),0x1);else while(ds['indexOf'](dt)>-0x1)ds['splice'](ds['indexOf'](dt),0x1);return ds;};BDFDB['getAllIndexes']=function(dv,dw){var dx=[],dy=-0x1;while((dy=dv['indexOf'](dw,dy+0x1))!==-0x1)dx['push'](dy);return dx;};BDFDB['removeCopiesFromArray']=function(dz){return[...new Set(dz)];};BDFDB['highlightText']=function(dA,dB){if(!dB||dB['length']<0x1)return dA;var dC=0x0,dD=dA,dE='',dF='';BDFDB['getAllIndexes'](dA['toUpperCase'](),dB['toUpperCase']())['forEach'](dG=>{var dH=dC*(dE['length']+dF['length']);dG=dG+dH;var dI=dG+dB['length'];var dJ=[-0x1]['concat'](BDFDB['getAllIndexes'](dA['substring'](0x0,dG),'<'));var dK=[-0x1]['concat'](BDFDB['getAllIndexes'](dA['substring'](0x0,dG),'>'));if(dJ[dJ['length']-0x1]>dK[dK['length']-0x1])return;dA=dA['substring'](0x0,dG)+dE+dA['substring'](dG,dI)+dF+dA['substring'](dI);dC++;});return dA?dA:dD;};BDFDB['languages']={'$discord':{'name':'Discord\x20(English\x20(US))','id':'en-US','ownlang':'English\x20(US)','integrated':![],'dic':![],'deepl':![]},'af':{'name':'Afrikaans','id':'af','ownlang':'Afrikaans','integrated':![],'dic':!![],'deepl':![]},'sq':{'name':'Albanian','id':'sq','ownlang':'Shqiptar','integrated':![],'dic':![],'deepl':![]},'am':{'name':'Amharic','id':'am','ownlang':'አማርኛ','integrated':![],'dic':![],'deepl':![]},'ar':{'name':'Arabic','id':'ar','ownlang':'اللغة\x20العربية','integrated':![],'dic':![],'deepl':![]},'hy':{'name':'Armenian','id':'hy','ownlang':'Հայերեն','integrated':![],'dic':![],'deepl':![]},'az':{'name':'Azerbaijani','id':'az','ownlang':'آذربایجان\x20دیلی','integrated':![],'dic':![],'deepl':![]},'eu':{'name':'Basque','id':'eu','ownlang':'Euskara','integrated':![],'dic':![],'deepl':![]},'be':{'name':'Belarusian','id':'be','ownlang':'Беларуская','integrated':![],'dic':![],'deepl':![]},'bn':{'name':'Bengali','id':'bn','ownlang':'বাংলা','integrated':![],'dic':![],'deepl':![]},'bs':{'name':'Bosnian','id':'bs','ownlang':'Босански','integrated':![],'dic':![],'deepl':![]},'bg':{'name':'Bulgarian','id':'bg','ownlang':'български','integrated':!![],'dic':![],'deepl':![]},'my':{'name':'Burmese','id':'my','ownlang':'မြန်မာစာ','integrated':![],'dic':![],'deepl':![]},'ca':{'name':'Catalan','id':'ca','ownlang':'Català','integrated':![],'dic':![],'deepl':![]},'ceb':{'name':'Cebuano','id':'ceb','ownlang':'Bisaya','integrated':![],'dic':![],'deepl':![]},'ny':{'name':'Chewa','id':'ny','ownlang':'Nyanja','integrated':![],'dic':![],'deepl':![]},'zh-HK':{'name':'Chinese\x20(Hong\x20Kong)','id':'zh-HK','ownlang':'香港中文','integrated':![],'dic':![],'deepl':![]},'zh-CN':{'name':'Chinese\x20(Simplified)','id':'zh-CN','ownlang':'简体中文','integrated':![],'dic':![],'deepl':![]},'zh-TW':{'name':'Chinese\x20(Traditional)','id':'zh-TW','ownlang':'繁體中文','integrated':!![],'dic':![],'deepl':![]},'co':{'name':'Corsican','id':'co','ownlang':'Corsu','integrated':![],'dic':![],'deepl':![]},'hr':{'name':'Croatian','id':'hr','ownlang':'Hrvatski','integrated':!![],'dic':![],'deepl':![]},'cs':{'name':'Czech','id':'cs','ownlang':'Čeština','integrated':!![],'dic':![],'deepl':![]},'da':{'name':'Danish','id':'da','ownlang':'Dansk','integrated':!![],'dic':!![],'deepl':![]},'nl':{'name':'Dutch','id':'nl','ownlang':'Nederlands','integrated':!![],'dic':!![],'deepl':!![]},'en':{'name':'English','id':'en','ownlang':'English','integrated':![],'dic':!![],'deepl':!![]},'en-GB':{'name':'English\x20(UK)','id':'en-GB','ownlang':'English\x20(UK)','integrated':!![],'dic':!![],'deepl':![]},'en-US':{'name':'English\x20(US)','id':'en-US','ownlang':'English\x20(US)','integrated':!![],'dic':!![],'deepl':![]},'eo':{'name':'Esperanto','id':'eo','ownlang':'Esperanto','integrated':![],'dic':![],'deepl':![]},'et':{'name':'Estonian','id':'et','ownlang':'Eesti','integrated':![],'dic':![],'deepl':![]},'fil':{'name':'Filipino','id':'fil','ownlang':'Wikang\x20Filipino','integrated':![],'dic':![],'deepl':![]},'fi':{'name':'Finnish','id':'fi','ownlang':'Suomi','integrated':!![],'dic':![],'deepl':![]},'fr':{'name':'French','id':'fr','ownlang':'Français','integrated':!![],'dic':!![],'deepl':!![]},'fr-CA':{'name':'French\x20(Canadian)','id':'fr-CA','ownlang':'Français\x20Canadien','integrated':![],'dic':![],'deepl':![]},'fy':{'name':'Frisian','id':'fy','ownlang':'Frysk','integrated':![],'dic':![],'deepl':![]},'gl':{'name':'Galician','id':'gl','ownlang':'Galego','integrated':![],'dic':![],'deepl':![]},'ka':{'name':'Georgian','id':'ka','ownlang':'ქართული','integrated':![],'dic':![],'deepl':![]},'de':{'name':'German','id':'de','ownlang':'Deutsch','integrated':!![],'dic':!![],'deepl':!![]},'de-AT':{'name':'German\x20(Austria)','id':'de-AT','ownlang':'Österreichisch\x20Deutsch','integrated':![],'dic':![],'deepl':![]},'de-CH':{'name':'German\x20(Switzerland)','id':'de-CH','ownlang':'Schweizerdeutsch','integrated':![],'dic':![],'deepl':![]},'el':{'name':'Greek','id':'el','ownlang':'Ελληνικά','integrated':![],'dic':![],'deepl':![]},'gu':{'name':'Gujarati','id':'gu','ownlang':'ગુજરાતી','integrated':![],'dic':![],'deepl':![]},'ht':{'name':'Haitian\x20Creole','id':'ht','ownlang':'Kreyòl\x20Ayisyen','integrated':![],'dic':![],'deepl':![]},'ha':{'name':'Hausa','id':'ha','ownlang':'حَوْسَ','integrated':![],'dic':![],'deepl':![]},'haw':{'name':'Hawaiian','id':'haw','ownlang':'ʻŌlelo\x20Hawaiʻi','integrated':![],'dic':![],'deepl':![]},'iw':{'name':'Hebrew','id':'iw','ownlang':'עברית','integrated':![],'dic':![],'deepl':![]},'hi':{'name':'Hindi','id':'hi','ownlang':'हिन्दी','integrated':![],'dic':![],'deepl':![]},'hmn':{'name':'Hmong','id':'hmn','ownlang':'lol\x20Hmongb','integrated':![],'dic':![],'deepl':![]},'hu':{'name':'Hungarain','id':'hu','ownlang':'Magyar','integrated':![],'dic':![],'deepl':![]},'is':{'name':'Icelandic','id':'is','ownlang':'Íslenska','integrated':![],'dic':![],'deepl':![]},'ig':{'name':'Igbo','id':'ig','ownlang':'Asụsụ\x20Igbo','integrated':![],'dic':![],'deepl':![]},'id':{'name':'Indonesian','id':'id','ownlang':'Bahasa\x20Indonesia','integrated':![],'dic':![],'deepl':![]},'ga':{'name':'Irish','id':'ga','ownlang':'Gaeilge','integrated':![],'dic':![],'deepl':![]},'it':{'name':'Italian','id':'it','ownlang':'Italiano','integrated':!![],'dic':!![],'deepl':!![]},'ja':{'name':'Japanese','id':'ja','ownlang':'日本語','integrated':!![],'dic':![],'deepl':![]},'jv':{'name':'Javanese','id':'jv','ownlang':'ꦧꦱꦗꦮ','integrated':![],'dic':![],'deepl':![]},'kn':{'name':'Kannada','id':'kn','ownlang':'ಕನ್ನಡ','integrated':![],'dic':![],'deepl':![]},'kk':{'name':'Kazakh','id':'kk','ownlang':'Қазақ\x20Tілі','integrated':![],'dic':![],'deepl':![]},'km':{'name':'Khmer','id':'km','ownlang':'ភាសាខ្មែរ','integrated':![],'dic':![],'deepl':![]},'ko':{'name':'Korean','id':'ko','ownlang':'한국어','integrated':!![],'dic':![],'deepl':![]},'ku':{'name':'Kurdish','id':'ku','ownlang':'کوردی','integrated':![],'dic':![],'deepl':![]},'ky':{'name':'Kyrgyz','id':'ky','ownlang':'кыргызча','integrated':![],'dic':![],'deepl':![]},'lo':{'name':'Lao','id':'lo','ownlang':'ພາສາລາວ','integrated':![],'dic':![],'deepl':![]},'la':{'name':'Latin','id':'la','ownlang':'Latina','integrated':![],'dic':![],'deepl':![]},'lv':{'name':'Latvian','id':'lv','ownlang':'Latviešu','integrated':![],'dic':![],'deepl':![]},'lt':{'name':'Lithuanian','id':'lt','ownlang':'Lietuvių','integrated':![],'dic':![],'deepl':![]},'lb':{'name':'Luxembourgish','id':'lb','ownlang':'Lëtzebuergesch','integrated':![],'dic':![],'deepl':![]},'mk':{'name':'Macedonian','id':'mk','ownlang':'Mакедонски','integrated':![],'dic':![],'deepl':![]},'mg':{'name':'Malagasy','id':'mg','ownlang':'Malagasy','integrated':![],'dic':![],'deepl':![]},'ms':{'name':'Malay','id':'ms','ownlang':'بهاس\x20ملايو','integrated':![],'dic':![],'deepl':![]},'ml':{'name':'Malayalam','id':'ml','ownlang':'മലയാളം','integrated':![],'dic':![],'deepl':![]},'mt':{'name':'Maltese','id':'mt','ownlang':'Malti','integrated':![],'dic':![],'deepl':![]},'mi':{'name':'Maori','id':'mi','ownlang':'te\x20Reo\x20Māori','integrated':![],'dic':![],'deepl':![]},'mr':{'name':'Marathi','id':'mr','ownlang':'मराठी','integrated':![],'dic':![],'deepl':![]},'mn':{'name':'Mongolian','id':'mn','ownlang':'Монгол\x20Хэл','integrated':![],'dic':![],'deepl':![]},'ne':{'name':'Nepali','id':'ne','ownlang':'नेपाली','integrated':![],'dic':![],'deepl':![]},'no':{'name':'Norwegian','id':'no','ownlang':'Norsk','integrated':!![],'dic':![],'deepl':![]},'ps':{'name':'Pashto','id':'ps','ownlang':'پښتو','integrated':![],'dic':![],'deepl':![]},'fa':{'name':'Persian','id':'fa','ownlang':'فارسی','integrated':![],'dic':![],'deepl':![]},'pl':{'name':'Polish','id':'pl','ownlang':'Polski','integrated':!![],'dic':![],'deepl':!![]},'pt':{'name':'Portuguese','id':'pt','ownlang':'Português','integrated':![],'dic':!![],'deepl':!![]},'pt-BR':{'name':'Portuguese\x20(Brazil)','id':'pt-BR','ownlang':'Português\x20do\x20Brasil','integrated':!![],'dic':!![],'deepl':![]},'pt-PT':{'name':'Portuguese\x20(Portugal)','id':'pt-PT','ownlang':'Português\x20do\x20Portugal','integrated':![],'dic':![],'deepl':![]},'pa':{'name':'Punjabi','id':'pa','ownlang':'पंजाबी','integrated':![],'dic':![],'deepl':![]},'ro':{'name':'Romanian','id':'ro','ownlang':'Română','integrated':![],'dic':![],'deepl':![]},'ru':{'name':'Russian','id':'ru','ownlang':'Pусский','integrated':!![],'dic':!![],'deepl':!![]},'sm':{'name':'Samoan','id':'sm','ownlang':'Gagana\x20Sāmoa','integrated':![],'dic':![],'deepl':![]},'gd':{'name':'Scottish\x20Gaelic','id':'gd','ownlang':'Gàidhlig','integrated':![],'dic':![],'deepl':![]},'sr':{'name':'Serbian','id':'sr','ownlang':'Српски','integrated':![],'dic':![],'deepl':![]},'st':{'name':'Sotho','id':'st','ownlang':'Sesotho','integrated':![],'dic':![],'deepl':![]},'sn':{'name':'Shona','id':'sn','ownlang':'Shona','integrated':![],'dic':![],'deepl':![]},'sd':{'name':'Sindhi','id':'sd','ownlang':'سنڌي','integrated':![],'dic':![],'deepl':![]},'si':{'name':'Sinhala','id':'si','ownlang':'සිංහල','integrated':![],'dic':![],'deepl':![]},'sk':{'name':'Slovak','id':'sk','ownlang':'Slovenčina','integrated':![],'dic':![],'deepl':![]},'sl':{'name':'Slovenian','id':'sl','ownlang':'Slovenščina','integrated':![],'dic':![],'deepl':![]},'es':{'name':'Spanish','id':'es','ownlang':'Español','integrated':!![],'dic':!![],'deepl':!![]},'es-419':{'name':'Spanish\x20(Latin\x20America)','id':'es-419','ownlang':'Español\x20latinoamericano','integrated':![],'dic':![],'deepl':![]},'sw':{'name':'Swahili','id':'sw','ownlang':'Kiswahili','integrated':![],'dic':![],'deepl':![]},'sv':{'name':'Swedish','id':'sv','ownlang':'Svenska','integrated':!![],'dic':!![],'deepl':![]},'tg':{'name':'Tajik','id':'tg','ownlang':'тоҷикӣ','integrated':![],'dic':![],'deepl':![]},'ta':{'name':'Tamil','id':'ta','ownlang':'தமிழ்','integrated':![],'dic':![],'deepl':![]},'te':{'name':'Telugu','id':'te','ownlang':'తెలుగు','integrated':![],'dic':![],'deepl':![]},'th':{'name':'Thai','id':'th','ownlang':'ภาษาไทย','integrated':![],'dic':![],'deepl':![]},'tr':{'name':'Turkish','id':'tr','ownlang':'Türkçe','integrated':!![],'dic':![],'deepl':![]},'uk':{'name':'Ukrainian','id':'uk','ownlang':'Yкраїнський','integrated':!![],'dic':![],'deepl':![]},'ur':{'name':'Urdu','id':'ur','ownlang':'اُردُو','integrated':![],'dic':![],'deepl':![]},'uz':{'name':'Uzbek','id':'uz','ownlang':'اوزبیک','integrated':![],'dic':![],'deepl':![]},'vi':{'name':'Vietnamese','id':'vi','ownlang':'Tiếng\x20Việt\x20Nam','integrated':![],'dic':![],'deepl':![]},'cy':{'name':'Welsh','id':'cy','ownlang':'Cymraeg','integrated':![],'dic':![],'deepl':![]},'xh':{'name':'Xhosa','id':'xh','ownlang':'Xhosa','integrated':![],'dic':![],'deepl':![]},'yi':{'name':'Yiddish','id':'yi','ownlang':'ייִדיש\x20ייִדיש','integrated':![],'dic':![],'deepl':![]},'yo':{'name':'Yoruba','id':'yo','ownlang':'Èdè\x20Yorùbá','integrated':![],'dic':![],'deepl':![]},'zu':{'name':'Zulu','id':'zu','ownlang':'Zulu','integrated':![],'dic':![],'deepl':![]}};var dL=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(dL);var dM=BDFDB['getDiscordLanguage']();BDFDB['languages']['$discord']['name']='Discord\x20('+dM['name']+')';BDFDB['languages']['$discord']['id']=dM['id'];BDFDB['languages']['$discord']['ownlang']=dM['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var dN=null;try{dN=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dO){try{dN=require(require('electron')['remote']['app']['getAppPath']()['replace']('app.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dP){var dQ=BDFDB['getDiscordVersion']();if(dQ){dQ=dQ['split']('.');if(dQ['length']==0x3&&!isNaN(dQ=parseInt(dQ[0x2])))dN=dQ>0x12c?'stable':da>0xc8?'canary':'ptb';else dN='stable';}else dN='stable';}}BDFDB['getDiscordBuilt']['built']=dN;return dN;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var dR=null;try{dR=require('electron')['remote']['app']['getVersion']();}catch(dS){dS='';}BDFDB['getDiscordBuilt']['version']=dR;return dR;}};BDFDB['getDiscordLanguage']=function(){var dT=document['querySelector']('html')['lang']||'en-US';var dU=dT['split']('-');var dV=dU[0x0];var dW=dU[0x1]||'';dT=dW&&dV['toUpperCase']()!==dW['toUpperCase']()?dV+'-'+dW:dV;return BDFDB['languages'][dT]||BDFDB['languages'][dV]||BDFDB['languages']['en-US'];};BDFDB['getDiscordTheme']=function(){return document['querySelectorAll'](BDFDB['dotCN']['themelight'])['length']>=document['querySelectorAll'](BDFDB['dotCN']['themedark'])['length']?BDFDB['disCN']['themelight']:BDFDB['disCN']['themedark'];};BDFDB['getDiscordMode']=function(){return document['querySelectorAll'](BDFDB['dotCN']['messagegroupcompact'])['length']>=document['querySelectorAll'](BDFDB['dotCN']['messagegroupcozy'])['length']?'compact':'cozy';};BDFDB['getDiscordZoomFactor']=function(){var dX=BDFDB['getRects'](document['body']['firstElementChild']);var dY=Math['round'](0x64*window['outerWidth']/dX['width']);var dZ=Math['round'](0x64*window['outerHeight']/dX['height']);return dYe1['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(e2,e3){if(!e2||!e3)return null;let e4=Node['prototype']['isPrototypeOf'](e2)?BDFDB['getReactInstance'](e2):e2;if(!BDFDB['isObject'](e4))return null;let e5=e4;for(let e6 of e3['split']('.')['filter'](e7=>e7)){e5=e5[e6];if(e5==undefined)return null;}return e5;};BDFDB['getOwnerInstance']=function(e8){if(e8===undefined)return null;if(!e8['node']&&!e8['instance']||!e8['name']&&(!e8['props']||!Array['isArray'](e8['props'])))return null;var e9=e8['instance']||BDFDB['getReactInstance'](e8['node']);if(!e9)return null;e8['name']=e8['name']&&!Array['isArray'](e8['name'])?Array['of'](e8['name']):e8['name'];var ea=-0x1;var eb=e8['depth']===undefined?0xf:e8['depth'];var ec=e8['up']===undefined?![]:e8['up'];var ed=performance['now']();var ee=e8['time']===undefined?0x96:e8['time'];var ef=ec?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var eg={};var eh=ek(e9);if(e8['all']){for(let ei in eg){if(e8['group'])for(let e9 in eg[ei])delete eg[ei][e9]['BDFDBreactSearch'];else delete eg[ei]['BDFDBreactSearch'];}return eg;}else return eh;function ek(e9){ea++;if(!e9||Node['prototype']['isPrototypeOf'](e9)||BDFDB['getReactInstance'](e9)||ea>eb||performance['now']()-ed>ee)en=null;else{var em=Object['getOwnPropertyNames'](e9);var en=null;for(let eo=0x0;en==null&&eoe9['type']['displayName']===es['split']('\x20')[0x0]||e9['type']['name']===es['split']('\x20')[0x0])||e8['props']&&e8['props']['every'](et=>er[et]!==undefined)||e8['defaultProps']&&e8['defaultProps']['every'](eu=>er[eu]!==undefined))){if(e8['all']===undefined||!e8['all'])en=er;else if(e8['all']){if(e8['noCopies']===undefined||!e8['noCopies']||e8['noCopies']&&!er['BDFDBreactSearch']){er['BDFDBreactSearch']=!![];if(e8['group']){if(e8['name']&&e9['type']&&(e9['type']['displayName']||e9['type']['name'])){var ev='Default';for(let ew of e8['name'])if(e9['type']['displayName']===ew['split']('\x20')[0x0]||e9['type']['name']===ew['split']('\x20')[0x0]){ev=ew;break;}if(typeof eg[ev]=='undefined')eg[ev]={};BDFDB['pushToObject'](eg[ev],er);}}else BDFDB['pushToObject'](eg,er);}}}if(en==null&&(typeof eq==='object'||typeof eq==='function')&&ef[ep])en=ek(eq);}}ea--;return en;}};BDFDB['getKeyInformation']=function(ex){if(ex===undefined)return null;if(!ex['node']&&!ex['instance']||!ex['key'])return null;var ey=ex['instance']||BDFDB['getReactInstance'](ex['node']);if(!ey)return null;var ez=-0x1;var eA=ex['depth']===undefined?0xf:ex['depth'];var eB=performance['now']();var eC=ex['time']===undefined?0x96:ex['time'];var eD={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':ex['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':ex['up']?![]:!![],'return':ex['up']?!![]:![],'sibling':ex['up']?![]:!![],'firstEffect':!![]};var eE={'contextSection':!![]};if(typeof ex['whitelist']==='object')Object['assign'](eD,ex['whiteList']);if(typeof ex['blacklist']==='object')Object['assign'](eE,ex['blacklist']);var eF=[];var eG=eH(ey);if(ex['all'])return eF;else return eG;function eH(ey){ez++;if(!ey||Node['prototype']['isPrototypeOf'](ey)||BDFDB['getReactInstance'](ey)||ez>eA||performance['now']()-eB>eC)eK=null;else{var eJ=Object['getOwnPropertyNames'](ey);var eK=null;for(let eL=0x0;eK==null&&eLeU['default']=eS},[eR])['default']:window['webpackJsonp']['push']([[],{[eR]:(eW,eX,eS)=>eW['exports']=eS},[[eR]]]);delete eS['m'][eR];delete eS['c'][eR];BDFDB['WebModules']['find']['req']=eS;}for(let eZ in BDFDB['WebModules']['find']['req']['c']){if(BDFDB['WebModules']['find']['req']['c']['hasOwnProperty'](eZ)){var f0=BDFDB['WebModules']['find']['req']['c'][eZ]['exports'];if(f0&&f0['__esModule']&&f0['default']&&eQ(f0['default']))return f0['default'];if(f0&&eQ(f0))return f0;}}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(f1){f1=Array['isArray'](f1)?f1:Array['from'](arguments);var f2=JSON['stringify'](f1);if(BDFDB['WebModules']['cachedData']['prop'][f2])return BDFDB['WebModules']['cachedData']['prop'][f2];else{var f3=BDFDB['WebModules']['find'](f3=>f1['every'](f5=>f3[f5]!==undefined));if(f3){BDFDB['WebModules']['cachedData']['prop'][f2]=f3;return f3;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f2+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(f6){var f7=JSON['stringify'](f6);if(BDFDB['WebModules']['cachedData']['name'][f7])return BDFDB['WebModules']['cachedData']['name'][f7];else{var f8=BDFDB['WebModules']['find'](f8=>f8['displayName']===f6);if(f8){BDFDB['WebModules']['cachedData']['name'][f7]=f8;return f8;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f7+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(fa){fa=Array['isArray'](fa)?fa:Array['from'](arguments);var fb=JSON['stringify'](fa);if(BDFDB['WebModules']['cachedData']['proto'][fb])return BDFDB['WebModules']['cachedData']['proto'][fb];else{var fc=BDFDB['WebModules']['find'](fc=>fc['prototype']&&fa['every'](fe=>fc['prototype'][fe]!==undefined));if(fc){BDFDB['WebModules']['cachedData']['proto'][fb]=fc;return fc;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',fb+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['patchtypes']=['before','instead','after'];BDFDB['WebModules']['patchmap']={'BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};BDFDB['WebModules']['notfindablemodules']={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','CircleIconButton':'guildbuttoncontainer','EmojiPicker':'emojipicker','FriendsOnline':'friendsonline','Guild':'guildouter','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','Message':'message','MessageOptionPopout':'optionpopout','MessageUsername':'messageusername','SearchResults':'searchresultswrap','TypingUsers':'typing','UserPopout':'userpopout','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(ff,fg,fh,fi){if(!ff||!fg||!fh||!Object['keys'](fi)['some'](fj=>BDFDB['WebModules']['patchtypes']['includes'](fj)))return null;const fk=(typeof fh==='string'?fh:fh['name'])['toLowerCase']();const fl=(fm,fn)=>(...fo)=>{try{return fm(...fo);}catch(fp){console['error']('Error\x20occurred\x20in\x20'+fn,fp);}};if(!ff['BDFDBpatch'])ff['BDFDBpatch']={};fg=Array['isArray'](fg)?fg:Array['of'](fg);for(let fq of fg){if(!ff[fq])ff[fq]=()=>{};const fr=ff[fq];if(!ff['BDFDBpatch'][fq]){ff['BDFDBpatch'][fq]={};for(let fs of BDFDB['WebModules']['patchtypes'])ff['BDFDBpatch'][fq][fs]={};ff['BDFDBpatch'][fq]['originalMethod']=fr;ff[fq]=function(){const ft={'thisObject':this,'methodArguments':arguments,'originalMethod':fr,'originalMethodName':fq,'callOriginalMethod':()=>ft['returnValue']=ft['originalMethod']['apply'](ft['thisObject'],ft['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&ff['BDFDBpatch'][fq]){if(!BDFDB['isObjectEmpty'](ff['BDFDBpatch'][fq]['before']))for(let fu in BDFDB['sortObject'](ff['BDFDBpatch'][fq]['before'])){fl(ff['BDFDBpatch'][fq]['before'][fu],'`before`\x20callback\x20of\x20'+ff[fq]['displayName'])(ft);}if(BDFDB['isObjectEmpty'](ff['BDFDBpatch'][fq]['instead']))ft['callOriginalMethod']();else for(let fv in BDFDB['sortObject'](ff['BDFDBpatch'][fq]['instead'])){const fw=fl(ff['BDFDBpatch'][fq]['instead'][fv],'`instead`\x20callback\x20of\x20'+ff[fq]['displayName'])(ft);if(fw!==undefined)ft['returnValue']=fw;}if(!BDFDB['isObjectEmpty'](ff['BDFDBpatch'][fq]['after']))for(let fx in BDFDB['sortObject'](ff['BDFDBpatch'][fq]['after'])){fl(ff['BDFDBpatch'][fq]['after'][fx],'`after`\x20callback\x20of\x20'+ff[fq]['displayName'])(ft);}}else ft['callOriginalMethod']();return ft['returnValue'];};}for(let fy of BDFDB['WebModules']['patchtypes'])if(typeof fi[fy]=='function')ff['BDFDBpatch'][fq][fy][fk]=fi[fy];}const fz=()=>{BDFDB['WebModules']['unpatch'](ff,fg,fh);};if(fh&&typeof fh=='object'){if(!Array['isArray'](fh['patchCancels']))fh['patchCancels']=[];fh['patchCancels']['push'](fz);}return fz;};BDFDB['WebModules']['unpatch']=function(fA,fB,fC){if(!fA||!fA['BDFDBpatch'])return;const fD=!fC?null:(typeof fC==='string'?fC:fC['name'])['toLowerCase']();fB=Array['isArray'](fB)?fB:Array['of'](fB);for(let fE of fB){if(fA[fE]&&fA['BDFDBpatch'][fE]){for(let fF of BDFDB['WebModules']['patchtypes']){if(fD)delete fA['BDFDBpatch'][fE][fF][fD];else delete fA['BDFDBpatch'][fE][fF];}var fG=!![];for(let fF of BDFDB['WebModules']['patchtypes'])if(!BDFDB['isObjectEmpty'](fA['BDFDBpatch'][fE][fF]))fG=![];if(fG){fA[fE]=fA['BDFDBpatch'][fE]['originalMethod'];delete fA['BDFDBpatch'][fE];if(BDFDB['isObjectEmpty'](fA['BDFDBpatch']))delete fA['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(fI){if(BDFDB['isObject'](fI)&&Array['isArray'](fI['patchCancels']))for(let fJ of fI['patchCancels'])fJ();};BDFDB['WebModules']['forceAllUpdates']=function(fK,fL){fL=fL&&BDFDB['WebModules']['patchmap'][fL]?BDFDB['WebModules']['patchmap'][fL]+'\x20'+fL:fL;if(BDFDB['isObject'](fK)&&BDFDB['isObject'](fK['patchModules'])&&(!fL||fK['patchModules'][fL])){const fM=document['querySelector'](BDFDB['dotCN']['app']);const fN=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fM){var fO=[];for(let fP in fK['patchModules']){var fQ=Array['isArray'](fK['patchModules'][fP])?fK['patchModules'][fP]:Array['of'](fK['patchModules'][fP]);if(fQ['includes']('componentDidUpdate')||fQ['includes']('componentDidMount')||fQ['includes']('render'))fO['push'](fP);}fO=fL?fO['filter'](fR=>fR==fL):fO;if(fO['length']>0x0){const fS=BDFDB['getOwnerInstance']({'node':fM,'name':fO,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fP in fS)for(let fU in fS[fP])BDFDB['WebModules']['initiateProcess'](fK,fS[fP][fU],fP,['componentDidUpdate','componentDidMount','render']);if(fN){const fV=BDFDB['getOwnerInstance']({'node':fN,'name':fO,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fP in fV)for(let fU in fV[fP])BDFDB['WebModules']['initiateProcess'](fK,fV[fP][fU],fP,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(fY){if(BDFDB['isObject'](fY)&&BDFDB['isObject'](fY['patchModules'])){for(let fZ in fY['patchModules']){var g0=BDFDB['WebModules']['patchmap'][fZ];if(g0){fY['patchModules'][g0+'\x20'+fZ]=fY['patchModules'][fZ];delete fY['patchModules'][fZ];if(!BDFDB['WebModules']['notfindablemodules'][fZ])g3(BDFDB['WebModules']['findByName'](g0),g0+'\x20'+fZ);}else if(!BDFDB['WebModules']['notfindablemodules'][fZ])g3(BDFDB['WebModules']['findByName'](fZ),fZ);}for(let fZ in BDFDB['WebModules']['notfindablemodules']){var g2=BDFDB['WebModules']['patchmap'][fZ]?BDFDB['WebModules']['patchmap'][fZ]+'\x20'+fZ:fZ;if(BDFDB['DiscordClasses'][BDFDB['WebModules']['notfindablemodules'][fZ]]&&fY['patchModules'][g2])ga(BDFDB['WebModules']['notfindablemodules'][fZ],g2);}function g3(g4,fZ){if(g4){var g2=fZ['split']('\x20')[0x0];g4=g4['displayName']==g2?g4:BDFDB['getOwnerInstance']({'instance':g4,'name':g2,'up':!![]});if(g4){var g7=g4['_reactInternalFiber']&&g4['_reactInternalFiber']['type']?g4['_reactInternalFiber']['type']:g4;var g8={};g8[fY['name']=='$BDFDB'?'before':'after']=g9=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](fY,g9['thisObject'],fZ,[g9['originalMethodName']]);};BDFDB['WebModules']['patch'](g7['prototype'],fY['patchModules'][fZ],fY,g8);}}}function ga(gb,fZ){var gd=![];const ge=document['querySelector'](BDFDB['dotCN']['app']);const gf=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(ge){var gg=BDFDB['getOwnerInstance']({'node':ge,'name':fZ,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gg){gd=!![];g3(gg,fZ);}}if(!gd&&gf){var gh=BDFDB['getOwnerInstance']({'node':gf,'name':fZ,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gh){gd=!![];g3(gh,fZ);}}if(!gd){var gi=![],gj=new MutationObserver(gk=>{gk['forEach'](gl=>{gl['addedNodes']['forEach'](gm=>{var gn=null;if(!gi&&gm['tagName']&&(gn=BDFDB['containsClass'](gm,BDFDB['disCN'][gb])?gm:gm['querySelector'](BDFDB['dotCN'][gb]))!=null){instance=BDFDB['getReactInstance'](gn);if(go(instance,fZ)){gi=!![];gj['disconnect']();g3(instance,fZ);BDFDB['WebModules']['forceAllUpdates'](fY,fZ);}}});});});BDFDB['addObserver'](fY,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gj,'multi':!![]},{'childList':!![],'subtree':!![]});}}function go(gp,fZ){if(!gp)return![];gp=gp['displayName']==fZ?gp:BDFDB['getOwnerInstance']({'instance':gp,'name':fZ,'up':!![]});return gp&&(fZ!='V2C_PluginCard'&&fZ!='V2C_ThemeCard'||fZ=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||fZ=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(gr,gs,gt,gu){if(gr&&typeof gr=='object'&&gs){gt=(gt['split']('\x20')[0x1]||gt)['replace'](/[^A-z0-9]|_/g,'');gt=gt[0x0]['toUpperCase']()+gt['slice'](0x1);if(typeof gr['process'+gt]=='function'){var gv=BDFDB['React']['findDOMNodeSafe'](gs);if(gv)gr['process'+gt](gs,gv,gu);else setImmediate(()=>{gv=BDFDB['React']['findDOMNodeSafe'](gs);if(gv)gr['process'+gt](gs,gv,gu);});}}};var gw=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');var gx=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(gw&&gx){BDFDB['React']=Object['assign']({},gw,gx);BDFDB['React']['findDOMNodeSafe']=function(gy){if(!gy||!gy['updater']||typeof gy['updater']['isMounted']!=='function'||!gy['updater']['isMounted'](gy))return null;var gz=gx['findDOMNode'](gy)||BDFDB['getReactValue'](gy,'child.stateNode');return Node['prototype']['isPrototypeOf'](gz)?gz:null;};};BDFDB['addOnSwitchListener']=function(gA){if(typeof gA['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](gA);var gB=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(gB){var gC=new MutationObserver(gD=>{gD['forEach'](gE=>{if(gE['target']&&BDFDB['containsClass'](gE['target'],BDFDB['disCN']['nochannel']))gA['onSwitch']();});});var gF=gB['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(gF)gC['observe'](gF,{'attributes':!![]});gA['onSwitchFix']=new MutationObserver(gG=>{gG['forEach'](gH=>{if(gH['addedNodes']){gH['addedNodes']['forEach'](gI=>{if(BDFDB['containsClass'](gI,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))gC['observe'](gI,{'attributes':!![]});});}});});gA['onSwitchFix']['observe'](gB,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(gJ){if(typeof gJ['onSwitch']==='function'&&BDFDB['isObject'](gJ['onSwitchFix'])){gJ['onSwitchFix']['disconnect']();delete gJ['onSwitchFix'];}};BDFDB['addContextListener']=function(gK){for(let gL of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof gK['on'+gL+'Context']==='function'||typeof gK['on'+gL+'ContextMenu']==='function'){if(gL=='GroupDM'){var gM=![],gN=new MutationObserver(gO=>{gO['forEach'](gP=>{gP['addedNodes']['forEach'](gQ=>{var gR=null;if(!gM&&gQ['tagName']&&(gR=BDFDB['containsClass'](gQ,BDFDB['disCN']['contextmenu'])?gQ:gQ['querySelector'](BDFDB['dotCN']['contextmenu']))!=null){var gS=BDFDB['getReactInstance'](gR);if(gS&&gS['return']&&gS['return']['type']&&gS['return']['type']['displayName']==gL+'ContextMenu'){gM=!![];gN['disconnect']();gT(gL,gS['return']['type']);gX(gL,gS['return']['stateNode'],gS['stateNode']);}}});});});BDFDB['addObserver'](gK,BDFDB['dotCN']['appmount'],{'name':'checkForContextObserver','instance':gN,'multi':!![]},{'childList':!![],'subtree':!![]});}else gT(gL,BDFDB['WebModules']['findByName'](gL+'ContextMenu'));}}function gT(gL,gV){if(gV&&gV['prototype'])BDFDB['WebModules']['patch'](gV['prototype'],'componentDidMount',gK,{'after':gW=>{gX(gL,gW['thisObject'],BDFDB['React']['findDOMNodeSafe'](gW['thisObject']));}});}function gX(gL,gZ,h0){if(gZ&&h0){if(typeof gK['on'+gL+'Context']==='function')gK['on'+gL+'Context'](gZ,h0);if(typeof gK['on'+gL+'ContextMenu']==='function')gK['on'+gL+'ContextMenu'](gZ,h0);BDFDB['initElements'](h0,gK);BDFDB['updateContextPosition'](h0);}}};BDFDB['addSettingsButtonListener']=function(h1){if(BDFDB['isBDv2']()&&typeof h1['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](h1);BDFDB['appendSettingsButton'](h1);var h2=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(h2){h1['settingsButtonObserver']=new MutationObserver(h3=>{h3['forEach'](h4=>{if(h4['addedNodes']){h4['addedNodes']['forEach'](h5=>{if(h5['tagName']&&BDFDB['containsClass'](h5,'active'))BDFDB['appendSettingsButton'](h1);});}});});h1['settingsButtonObserver']['observe'](h2,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(h6){var h7=document['querySelector'](BDFDB['dotCN']['_bdv2card']+'[data-plugin-id='+h6['id']+']');if(h7){var h8=BDFDB['htmlToElement']('');h7['insertBefore'](h8,h7['querySelector'](BDFDB['d']['_bdv2button']));h8['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',h8,{'type':'top'});BDFDB['addClass'](h8,BDFDB['disCN']['_bdv2tooltipopen']);});h8['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](h8,BDFDB['disCN']['_bdv2tooltipopen']);});h8['addEventListener']('click',()=>{var h9=BDFDB['htmlToElement'](''+h6['name']+'\x20Settings
');var ha=h6['getSettingsPanel']();h9['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof ha=='string'?BDFDB['htmlToElement'](ha):ha);if(typeof h6['onSettingsClosed']==='function')BDFDB['addChildEventListener'](h9,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{h6['onSettingsClosed']();});BDFDB['appendModal'](h9);});}};BDFDB['removeSettingsButtonListener']=function(hb){if(BDFDB['isBDv2']()&&typeof hb['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+hb['id']+']\x20.BDFDB-settingsbutton');hb['settingsButtonObserver']['disconnect']();delete hb['settingsButtonObserver'];}};var hc={},hd=BDFDB['WebModules']['findByProperties']('Messages')['Messages'];BDFDB['LanguageStrings']=new Proxy(hd,{'get':function(he,hf){if(!he[hf])console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hf+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var hg=typeof he[hf]=='object'?he[hf]['format'](Object['assign']({},hc)):he[hf];if(typeof hg=='string')return hg;else if(Array['isArray'](hg)){var hh='';for(let hi of hg){if(typeof hi=='string')hh+=BDFDB['encodeToHTML'](hi);else if(BDFDB['isObject'](hi)&&hi['props'])hh+='<'+hi['type']+'>'+BDFDB['encodeToHTML'](hi['props']['children'][0x0]['toString']())+''+hi['type']+'>';}return hh;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hf+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}}});BDFDB['LanguageStringsCheck']=new Proxy(hd,{'get':function(hj,hk){return hj[hk];}});BDFDB['LanguageStringsFormat']=function(hl,hm){if(hl&&hm&&hd[hl]&&typeof hd[hl]=='object'&&typeof hd[hl]['format']=='function'){try{var hn={};for(let ho in hc)hn[ho]=hm;return hd[hl]['format'](hn);}catch(hp){console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hl+'\x20failed\x20to\x20format\x20string\x20in\x20BDFDB.LanguageStrings');}}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hl+'\x20is\x20not\x20a\x20formatable\x20string\x20in\x20BDFDB.LanguageStrings');};if(hd)for(let hq in hd){try{BDFDB['LanguageStrings'][hq];}catch(hr){let hs=hr['toString']()['split']('for:\x20')[0x1];if(hs&&typeof hs=='string'&&!hc[hs])hc[hs]='{{'+hs['toLowerCase']()+'}}';}};BDFDB['equals']=function(ht,hu,hv){var hw=-0x1;if(hv===undefined||typeof hv!=='boolean')hv=![];return hx(ht,hu);function hx(hy,hz){hw++;var hA=!![];if(hw>0x3e8)hA=null;else{if(typeof hy!==typeof hz)hA=![];else if(typeof hy==='undefined')hA=!![];else if(typeof hy==='symbol')hA=!![];else if(typeof hy==='boolean')hA=hy==hz;else if(typeof hy==='string')hA=hy==hz;else if(typeof hy==='number'){if(isNaN(hy)||isNaN(hz))hA=isNaN(hy)==isNaN(hz);else hA=hy==hz;}else if(!hy&&!hz)hA=!![];else if(!hy||!hz)hA=![];else if(typeof hy==='function'||typeof hy==='object'){var hB=Object['getOwnPropertyNames'](hy);var hC=Object['getOwnPropertyNames'](hz);if(hB['length']!==hC['length'])hA=![];else for(let hD=0x0;hA===!![]&&hDhV['length']?hY:hV['length'];};BDFDB['readServerList']=function(){var hZ=[],i0=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'Guild','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let i1 in i0)if(i0[i1]['props']&&i0[i1]['props']['guild']&&i0[i1]['_reactInternalFiber']['child'])hZ['push'](Object['assign'](new i0[i1]['props']['guild']['constructor'](i0[i1]['props']['guild']),{'div':BDFDB['React']['findDOMNodeSafe'](i0[i1]),'instance':i0[i1]}));return hZ;};BDFDB['readUnreadServerList']=function(i2){var i3=[];for(let i4 of i2===undefined||!Array['isArray'](i2)?BDFDB['readServerList']():i2){let i5=Node['prototype']['isPrototypeOf'](i4)?i4:i4&&i4['div']?i4['div']:null;let i6=BDFDB['getReactValue'](i5,'return.stateNode.props');if(i6&&(i6['unread']||i6['badge']>0x0))i3['push'](i4);}return i3;};BDFDB['readMutedServerList']=function(i7){var i8=[],i9=BDFDB['WebModules']['findByProperties']('isGuildOrCategoryOrChannelMuted');for(let ia of i7===undefined||!Array['isArray'](i7)?BDFDB['readServerList']():i7){let ib=Node['prototype']['isPrototypeOf'](ia)?ia:ia&&ia['div']?ia['div']:null;let ic=BDFDB['getReactValue'](ib,'return.stateNode.props.guild.id');if(ic&&i9['isGuildOrCategoryOrChannelMuted'](ic))i8['push'](ia);}return i8;};BDFDB['getSelectedServer']=function(){var id=BDFDB['WebModules']['findByProperties']('getGuilds')['getGuild'](BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId')['getGuildId']());if(id)return BDFDB['getServerData'](id['id'])||Object['assign'](new id['constructor'](id),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(ie){if(!Node['prototype']['isPrototypeOf'](ie)||!BDFDB['getReactInstance'](ie))return;let ig=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ie);if(!ig)return;var ih=ig['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var ii=ih&&ih['href']?ih['href']['split']('/')['slice'](-0x2)[0x0]:null;return ii&&!isNaN(parseInt(ii))?ii['toString']():null;};BDFDB['getServerDiv']=function(ij){if(!ij)return null;if(Node['prototype']['isPrototypeOf'](ij))return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ij);else{let ik=typeof ij=='object'?ij['id']:ij;if(ik)return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/'+ik+'\x22]'));}return null;};BDFDB['getServerData']=function(il){if(!il)return null;let im=Node['prototype']['isPrototypeOf'](il)?BDFDB['getServerID'](il):typeof il=='object'?il['id']:il;im=typeof im=='number'?im['toFixed']():im;for(let io of BDFDB['readServerList']())if(io&&io['id']==im)return io;return null;};BDFDB['readChannelList']=function(){var ip=[],iq=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let ir in iq)if(iq[ir]['props']&&!iq[ir]['props']['ispin']&&iq[ir]['props']['channel']&&iq[ir]['_reactInternalFiber']['return']){var is=BDFDB['React']['findDOMNodeSafe'](iq[ir]);is=is&&BDFDB['containsClass'](is['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?is['parentElement']:is;ip['push'](Object['assign'](new iq[ir]['props']['channel']['constructor'](iq[ir]['props']['channel']),{'div':is,'instance':iq[ir]}));}return ip;};BDFDB['getSelectedChannel']=function(){var it=BDFDB['WebModules']['findByProperties']('getChannels')['getChannel'](BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId')['getChannelId']());if(it)return BDFDB['getChannelData'](it['id'])||Object['assign'](new it['constructor'](it),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(iu){if(!Node['prototype']['isPrototypeOf'](iu)||!BDFDB['getReactInstance'](iu))return;iu=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],iu);if(!iu)return;var iv=BDFDB['getKeyInformation']({'node':iu,'key':'channel'});return iv?iv['id']['toString']():null;};BDFDB['getChannelDiv']=function(iw){if(!iw)return null;let ix=BDFDB['getChannelData'](iw);return ix?ix['div']:null;};BDFDB['getChannelData']=function(iy){if(!iy)return null;let iz=Node['prototype']['isPrototypeOf'](iy)?BDFDB['getChannelID'](iy):typeof iy=='object'?iy['id']:iy;iz=typeof iz=='number'?iz['toFixed']():iz;for(let iA of BDFDB['readChannelList']())if(iA&&iA['id']==iz)return iA;return null;};BDFDB['readDmList']=function(){var iB=[],iC=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let iD in iC)if(iC[iD]['props']&&iC[iD]['props']['channel']&&iC[iD]['_reactInternalFiber']['child'])iB['push'](Object['assign'](new iC[iD]['props']['channel']['constructor'](iC[iD]['props']['channel']),{'div':BDFDB['React']['findDOMNodeSafe'](iC[iD]),'instance':iC[iD]}));return iB;};BDFDB['getDmID']=function(iE){if(!Node['prototype']['isPrototypeOf'](iE)||!BDFDB['getReactInstance'](iE))return;let iF=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],iE);if(!iF)return;var iG=iF['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var iH=iG&&iG['href']?iG['href']['split']('/')['slice'](-0x1)[0x0]:null;return iH&&!isNaN(parseInt(iH))?iH['toString']():null;};BDFDB['getDmDiv']=function(iI){if(!iI)return null;if(Node['prototype']['isPrototypeOf'](iI)){var iJ=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],iI);return iJ?iJ['parentElement']:iJ;}else{let iK=typeof iI=='object'?iI['id']:iI;if(iK){var iJ=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['dmpill']+'\x20+\x20*\x20'+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+iK+'\x22]'));return iJ&&BDFDB?iJ['parentElement']:iJ;}}return null;};BDFDB['getDmData']=function(iM){if(!iM)return null;let iN=Node['prototype']['isPrototypeOf'](iM)?BDFDB['getDmID'](iM):typeof iM=='object'?iM['id']:iM;iN=typeof iN=='number'?iN['toFixed']():iN;for(let iO of BDFDB['readDmList']())if(iO&&iO['id']==iN)return iO;return null;};BDFDB['markChannelAsRead']=function(iP){if(!iP)return;var iQ=BDFDB['WebModules']['findByProperties']('getOldestUnreadMessageId');var iR=BDFDB['WebModules']['findByProperties']('ack','localAck');if(!iQ||!iR)return;for(let iS of Array['isArray'](iP)?iP:typeof iP=='string'||typeof iP=='number'?Array['of'](iP):Array['from'](iP)){let iT=Node['prototype']['isPrototypeOf'](iS)?BDFDB['getChannelID'](iS)||BDFDB['getDmID'](iS):iS&&typeof iS=='object'?iS['id']:iS;if(iT){let iU=iQ['getOldestUnreadMessageId'](iT);if(iU)iR['ack'](iT,!![],!![]);}}};BDFDB['markGuildAsRead']=function(iV){if(!iV)return;var iW=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!iW)return;for(let iX of Array['isArray'](iV)?iV:typeof iV=='string'||typeof iV=='number'?Array['of'](iV):Array['from'](iV)){let iY=Node['prototype']['isPrototypeOf'](iX)?BDFDB['getServerID'](iX):iX&&typeof iX=='object'?iX['id']:iX;if(iY)iW['markGuildAsRead'](iY);}};BDFDB['saveAllData']=function(iZ,j0,j1){var j2=require('fs'),j3,j4;if(!BDFDB['isBDv2']()){j4=typeof j0==='string'?j0:j0['name'];j3=require('path')['join'](BDFDB['getPluginsFolder'](),j4+'.config.json');}else{j4=typeof j0==='string'?j0['toLowerCase']():null;var j5=j4?BDFDB['Plugins'][j4]?BDFDB['Plugins'][j4]['contentPath']:null:j0['contentPath'];if(!j5)return;j3=require('path')['join'](j5,'settings.json');}var j6=j2['existsSync'](j3);var j7=!j6?{}:typeof BDFDB['cachedData'][j4]!=='undefined'?BDFDB['cachedData'][j4]:BDFDB['readConfig'](j3);j7[j1]=iZ;if(BDFDB['isObjectEmpty'](j7[j1]))delete j7[j1];if(BDFDB['isObjectEmpty'](j7)){delete BDFDB['cachedData'][j4];if(j6)j2['unlinkSync'](j3);}else{BDFDB['cachedData'][j4]=j7;j2['writeFileSync'](j3,JSON['stringify'](j7,null,'\x09'));}};BDFDB['loadAllData']=function(j8,j9){var ja=require('fs'),jb,jc;if(!BDFDB['isBDv2']()){jc=typeof j8==='string'?j8:j8['name'];jb=require('path')['join'](BDFDB['getPluginsFolder'](),jc+'.config.json');}else{jc=typeof j8==='string'?j8['toLowerCase']():null;var jd=jc?BDFDB['Plugins'][jc]?BDFDB['Plugins'][jc]['contentPath']:null:j8['contentPath'];if(!jd)return{};jb=require('path')['join'](jd,'settings.json');}if(!ja['existsSync'](jb)){delete BDFDB['cachedData'][jc];return{};}var je=typeof BDFDB['cachedData'][jc]!=='undefined'?BDFDB['cachedData'][jc]:BDFDB['readConfig'](jb);BDFDB['cachedData'][jc]=je;return je&&typeof je[j9]!=='undefined'?je[j9]:{};};BDFDB['removeAllData']=function(jf,jg){var jh=require('fs'),ji,jj;if(!BDFDB['isBDv2']()){jj=typeof jf==='string'?jf:jf['name'];ji=require('path')['join'](BDFDB['getPluginsFolder'](),jj+'.config.json');}else{jj=typeof jf==='string'?jf['toLowerCase']():null;var jk=jj?BDFDB['Plugins'][jj]?BDFDB['Plugins'][jj]['contentPath']:null:jf['contentPath'];if(!jk)return;ji=require('path')['join'](jk,'settings.json');}var jl=jh['existsSync'](ji);var jm=!jl?{}:typeof BDFDB['cachedData'][jj]!=='undefined'?BDFDB['cachedData'][jj]:BDFDB['readConfig'](ji);delete jm[jg];if(BDFDB['isObjectEmpty'](jm)){delete BDFDB['cachedData'][jj];if(jl)jh['unlinkSync'](ji);}else{BDFDB['cachedData'][jj]=jm;jh['writeFileSync'](ji,JSON['stringify'](jm,null,'\x09'));}};BDFDB['getAllData']=function(jn,jo){if(!BDFDB['isObject'](jn)||!jn['defaults']||!jn['defaults'][jo])return{};var jp=BDFDB['loadAllData'](jn,jo),jq={},jr=![];for(let js in jn['defaults'][jo]){if(jp[js]==null){jq[js]=jn['defaults'][jo][js]['value'];jr=!![];}else jq[js]=jp[js];}if(jr)BDFDB['saveAllData'](jq,jn,jo);return jq;};BDFDB['readConfig']=function(jt){try{return JSON['parse'](require('fs')['readFileSync'](jt));}catch(ju){return{};}};BDFDB['saveData']=function(jv,jw,jx,jy){var jz=BDFDB['loadAllData'](jx,jy);jz[jv]=jw;BDFDB['saveAllData'](jz,jx,jy);};BDFDB['loadData']=function(jA,jB,jC){var jD=BDFDB['loadAllData'](jB,jC);var jE=jD[jA];return jE===undefined?null:jE;};BDFDB['removeData']=function(jF,jG,jH){var jI=BDFDB['loadAllData'](jG,jH);delete jI[jF];BDFDB['saveAllData'](jI,jG,jH);};BDFDB['getData']=function(jJ,jK,jL){var jM=BDFDB['getAllData'](jK,jL);var jN=jM[jJ];return jN===undefined?null:jN;};BDFDB['appendWebScript']=function(jO,jP){if(!jP&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jP=jP||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jP=Node['prototype']['isPrototypeOf'](jP)?jP:document['head'];BDFDB['removeWebScript'](jO,jP);jP['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(jQ,jR){jR=jR||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jR=Node['prototype']['isPrototypeOf'](jR)?jR:document['head'];BDFDB['removeEles'](jR['querySelectorAll']('script[src=\x22'+jQ+'\x22]'));};BDFDB['appendWebStyle']=function(jS,jT){if(!jT&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jT=jT||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jT=Node['prototype']['isPrototypeOf'](jT)?jT:document['head'];BDFDB['removeWebStyle'](jS,jT);jT['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(jU,jV){jV=jV||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jV=Node['prototype']['isPrototypeOf'](jV)?jV:document['head'];BDFDB['removeEles'](jV['querySelectorAll']('link[href=\x22'+jU+'\x22]'));};BDFDB['appendLocalStyle']=function(jW,jX,jY){if(!jY&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jY=jY||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jY=Node['prototype']['isPrototypeOf'](jY)?jY:document['head'];BDFDB['removeLocalStyle'](jW,jY);jY['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(jZ,k0){k0=k0||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];k0=Node['prototype']['isPrototypeOf'](k0)?k0:document['head'];BDFDB['removeEles'](k0['querySelectorAll']('style[id=\x22'+jZ+'CSS\x22]'));};BDFDB['formatBytes']=function(k1,k2){k1=parseInt(k1);if(isNaN(k1)||k1<0x0)return'0\x20Bytes';if(k1==0x1)return'1\x20Byte';var k3=Math['floor'](Math['log'](k1)/Math['log'](0x400));return parseFloat((k1/Math['pow'](0x400,k3))['toFixed'](k2<0x1?0x0:k2>0x14?0x14:k2||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][k3];};BDFDB['colorCONVERT']=function(k4,k5,k6){if(!k4)return null;k5=k5===undefined||!k5?k5='RGBCOMP':k5['toUpperCase']();k6=k6===undefined||!k6||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](k6['toUpperCase']())?BDFDB['colorTYPE'](k4):k6['toUpperCase']();if(k5=='RGBCOMP'){switch(k6){case'RGBCOMP':if(k4['length']==0x3)return kG(k4);else if(k4['length']==0x4){var k7=kJ(k4['pop']());return kG(k4)['concat'](k7);}case'RGB':return kG(k4['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var k8=k4['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var k7=kJ(k8['pop']());return kG(k8)['concat'](k7);case'HSLCOMP':if(k4['length']==0x3)return BDFDB['colorCONVERT']('hsl('+k4['join'](',')+')','RGBCOMP');else if(k4['length']==0x4){var k7=kJ(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](k7);}case'HSL':var kb=kN(k4['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var kc,kd,ke,kf,kg,kh,ki,kj;var kk=kb[0x0]/0x168,kl=parseInt(kb[0x1])/0x64,km=parseInt(kb[0x2])/0x64;kf=Math['floor'](kk*0x6);kg=kk*0x6-kf;kh=km*(0x1-kl);ki=km*(0x1-kg*kl);kj=km*(0x1-(0x1-kg)*kl);switch(kf%0x6){case 0x0:kc=km,kd=kj,ke=kh;break;case 0x1:kc=ki,kd=km,ke=kh;break;case 0x2:kc=kh,kd=km,ke=kj;break;case 0x3:kc=kh,kd=ki,ke=km;break;case 0x4:kc=kj,kd=kh,ke=km;break;case 0x5:kc=km,kd=kh,ke=ki;break;}return[Math['round'](kc*0xff),Math['round'](kd*0xff),Math['round'](ke*0xff)];case'HSLA':var kb=k4['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var k7=kJ(kb['pop']());return BDFDB['colorCONVERT']('hsl('+kb['join'](',')+')','RGBCOMP')['concat'](k7);case'HEX':var kp=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$|^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i['exec'](k4);return[parseInt(kp[0x1]+kp[0x1]||kp[0x4],0x10)['toString'](),parseInt(kp[0x2]+kp[0x2]||kp[0x5],0x10)['toString'](),parseInt(kp[0x3]+kp[0x3]||kp[0x6],0x10)['toString']()];default:return null;}}else{var kq=k6=='RGBCOMP'?k4:BDFDB['colorCONVERT'](k4,'RGBCOMP',k6);if(kq)switch(k5){case'RGB':return'rgb('+kG(kq['slice'](0x0,0x3))['join'](',')+')';case'RGBA':kq=kq['slice'](0x0,0x4);var k7=kq['length']==0x4?kJ(kq['pop']()):0x1;return'rgba('+kG(kq)['concat'](k7)['join'](',')+')';case'HSLCOMP':var k7=kq['length']==0x4?kJ(kq['pop']()):null;var kb=kN(BDFDB['colorCONVERT'](kq,'HSL')['replace'](/\s/g,'')['split'](','));return k7?kb['concat'](k7):kb;case'HSL':var kc=kE(kq[0x0]),kd=kE(kq[0x1]),ke=kE(kq[0x2]);var kx=Math['max'](kc,kd,ke),ky=Math['min'](kc,kd,ke),kz=kx-ky,kk,kl=kx===0x0?0x0:kz/kx,km=kx/0xff;switch(kx){case ky:kk=0x0;break;case kc:kk=kd-ke+kz*(kd0xff?0xff:kg<0x0?0x0:kg;};function kG(k8){return k8['map'](kg=>{return kE(kg);});};function kJ(k7){k7=k7['toString']();k7=(k7['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(k7['replace'](/[^0-9\.\-]/g,''));return isNaN(k7)||k7>0x1?0x1:k7<0x0?0x0:k7;};function kL(kM){kM=parseFloat(kM['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(kM)||kM>0x64?0x64:kM<0x0?0x0:kM)+'%';};function kN(k8){let kk=parseFloat(k8['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));kk=isNaN(kk)||kk>0x168?0x168:kk<0x0?0x0:kk;return[kk]['concat'](k8['map'](kQ=>{return kL(kQ);}));};};BDFDB['colorSETALPHA']=function(kR,kS,kT){var kU=BDFDB['colorCONVERT'](kR,'RGBCOMP');if(kU){kS=kS['toString']();kS=(kS['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kS['replace'](/[^0-9\.\-]/g,''));kS=isNaN(kS)||kS>0x1?0x1:kS<0x0?0x0:kS;kU[0x3]=kS;kT=(kT||BDFDB['colorTYPE'](kR))['toUpperCase']();kT=kT=='HSL'||kT=='RGB'?kT+'A':kT;return BDFDB['colorCONVERT'](kU,kT);}return null;};BDFDB['colorCHANGE']=function(kV,kW,kX){kW=parseFloat(kW);if(kV&&typeof kW=='number'&&!isNaN(kW)){var kY=BDFDB['colorCONVERT'](kV,'RGBCOMP');if(kY){if(parseInt(kW)!==kW){kW=kW['toString']();kW=(kW['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kW['replace'](/[^0-9\.\-]/g,''));kW=isNaN(kW)?0x0:kW;return BDFDB['colorCONVERT']([Math['round'](kY[0x0]*(0x1+kW)),Math['round'](kY[0x1]*(0x1+kW)),Math['round'](kY[0x2]*(0x1+kW))],kX||BDFDB['colorTYPE'](kV));}else return BDFDB['colorCONVERT']([Math['round'](kY[0x0]+kW),Math['round'](kY[0x1]+kW),Math['round'](kY[0x2]+kW)],kX||BDFDB['colorTYPE'](kV));}}return null;};BDFDB['colorINV']=function(kZ,l0){if(kZ){var l1=BDFDB['colorCONVERT'](kZ,'RGBCOMP');if(l1)return BDFDB['colorCONVERT']([0xff-l1[0x0],0xff-l1[0x1],0xff-l1[0x2]],l0||BDFDB['colorTYPE'](kZ));}return null;};BDFDB['colorCOMPARE']=function(l2,l3){if(l2&&l3){l2=BDFDB['colorCONVERT'](l2,'RGBCOMP');l3=BDFDB['colorCONVERT'](l3,'RGBCOMP');if(l2&&l3)return BDFDB['equals'](l2,l3);}return null;};BDFDB['colorISBRIGHT']=function(l4,l5=0xa0){l4=BDFDB['colorCONVERT'](l4,'RGBCOMP');if(!l4)return![];return parseInt(l5)