diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index 4d7dea609f..7a34ff6ac4 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);if(global['BDFDB']&&typeof BDFDB['killObservers']=='function')BDFDB['killObservers'](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'};(()=>{var c=Math['round'](Math['random']()*0x2386f26fc10000);BDFDB['id']=c;console['log']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','loading\x20library.');BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};BDFDB['loadMessage']=function(d){BDFDB['clearStarttimout'](d);d['name']=d['name']||(typeof d['getName']=='function'?d['getName']():null);d['version']=d['version']||(typeof d['getVersion']=='function'?d['getVersion']():null);d['author']=d['author']||(typeof d['getAuthor']=='function'?d['getAuthor']():null);d['description']=d['description']||(typeof d['getDescription']=='function'?d['getDescription']():null);var e=BDFDB['getLibraryStrings']()['toast_plugin_started']['replace']('{{oldversion}}','v'+d['version']);console['log']('%c['+d['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',e);if(!(window['settingsCookie']['fork-ps-2']&&window['settingsCookie']['fork-ps-2']===!![]))BDFDB['showToast'](d['name']+'\x20'+e,{'nopointer':!![],'selector':'plugin-started-toast'});var f=typeof d['getRawUrl']=='function'&&typeof d['getRawUrl']()=='string'?d['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+d['name']+'/'+d['name']+'.plugin.js';BDFDB['checkUpdate'](d['name'],f);if(typeof d['initConstructor']==='function'){try{d['initConstructor']();}catch(g){console['error']('%c['+d['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20Could\x20not\x20initiate\x20constructor!\x20'+g);}}if(typeof d['css']==='string')BDFDB['appendLocalStyle'](d['name'],d['css']);BDFDB['WebModules']['patchModules'](d);BDFDB['addOnSwitchListener'](d);BDFDB['addSettingsButtonListener'](d);BDFDB['addContextListener'](d);BDFDB['translatePlugin'](d);BDFDB['checkChangeLog'](d);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][f]={'name':d['name'],'raw':f,'version':d['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);d['started']=!![];for(let h in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][h]['started']&&typeof BDFDB['myPlugins'][h]['initialize']=='function')BDFDB['myPlugins'][h]['initialize']();};BDFDB['unloadMessage']=function(i){BDFDB['clearStarttimout'](i);delete BDFDB['myPlugins'][i['name']];var j=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+i['version']);console['log']('%c['+i['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',j);if(!(window['settingsCookie']['fork-ps-2']&&window['settingsCookie']['fork-ps-2']===!![]))BDFDB['showToast'](i['name']+'\x20'+j,{'nopointer':!![],'selector':'plugin-stopped-toast'});var k=typeof i['getRawUrl']=='function'&&typeof i['getRawUrl']()=='string'?i['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+i['name']+'/'+i['name']+'.plugin.js';if(typeof i['css']==='string')BDFDB['removeLocalStyle'](i['name']);BDFDB['WebModules']['unpatchall'](i);BDFDB['removeOnSwitchListener'](i);BDFDB['removeSettingsButtonListener'](i);BDFDB['removeEventListener'](i);BDFDB['removeEles']('.'+i['name']+'-modal,\x20.'+i['name']['toLowerCase']()+'-modal,\x20.'+i['name']+'-settingsmodal,\x20.'+i['name']['toLowerCase']()+'-settingsmodal');BDFDB['killObservers'](i);delete window['PluginUpdates']['plugins'][k];if(BDFDB['isObjectEmpty'](window['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete i['started'];};BDFDB['translatePlugin']=function(l){if(typeof l['setLabelsByLanguage']==='function'||typeof l['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])n();else{var m=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(m);n();}},0x64);}function n(){var o=BDFDB['getDiscordLanguage']();if(typeof l['setLabelsByLanguage']==='function')l['labels']=l['setLabelsByLanguage'](o['id']);if(typeof l['changeLanguageStrings']==='function')l['changeLanguageStrings']();var p=BDFDB['getLibraryStrings']()['toast_plugin_translated']['replace']('{{ownlang}}',o['ownlang']);console['log']('%c['+l['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',p);}}};BDFDB['clearStarttimout']=function(q){if(q['startTimeout']){clearTimeout(q['startTimeout']);delete q['startTimeout'];}if(q['libLoadTimeout']){clearTimeout(q['libLoadTimeout']);delete q['libLoadTimeout'];}};BDFDB['checkChangeLog']=function(r){if(!BDFDB['isObject'](r)||!r['changelog'])return;var s=BDFDB['loadAllData'](r,'changelog');if(!s['currentversion']||BDFDB['checkVersions'](r['version'],s['currentversion'])){s['currentversion']=r['version'];var t='';var u={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let v in r['changelog']){v=v['toLowerCase']();var w=BDFDB['disCN']['changelog'+v];if(w){t+='
'+u[v]+'
';for(let x of r['changelog'][v])t+='- '+x[0x0]+''+(x[0x1]?':\x20'+x[0x1]+'.':'')+'
';t+='
';}}if(t)BDFDB['removeEles'](BDFDB['openConfirmModal'](r,t,BDFDB['LanguageStrings']['CHANGE_LOG'])['querySelectorAll']('.btn-cancel'));BDFDB['saveAllData'](s,r,'changelog');}};BDFDB['addObserver']=function(y,z,A,B={'childList':!![]}){if(!BDFDB['isObject'](y)||!z||!A)return;if(BDFDB['isObjectEmpty'](y['observers']))y['observers']={};if(!Array['isArray'](y['observers'][A['name']]))y['observers'][A['name']]=[];if(!A['multi'])for(let C of y['observers'][A['name']])C['disconnect']();if(A['instance'])y['observers'][A['name']]['push'](A['instance']);var D=y['observers'][A['name']][y['observers'][A['name']]['length']-0x1];if(D){var E=Node['prototype']['isPrototypeOf'](z)?z:typeof z==='string'?document['querySelector'](z):null;if(E)D['observe'](E,B);}};BDFDB['killObservers']=function(F){if(!BDFDB['isObjectEmpty'](F['observers'])){for(let G in F['observers'])for(let H of F['observers'][G])H['disconnect']();delete F['observers'];}};BDFDB['addChildEventListener']=function(I,J,K,L){if(!Node['prototype']['isPrototypeOf'](I)||!J||!K||!K['trim']()||typeof L!='function')return;for(var M of J['trim']()['split']('\x20'))if(M){var N=L;if(M=='mouseenter'||M=='mouseleave')N=O=>{if(O['target']['matches'](K))L(O);};I['querySelectorAll'](K['trim']())['forEach'](P=>{P['addEventListener'](M,N,!![]);});}};BDFDB['addEventListener']=function(Q,R,S,T,U){if(!BDFDB['isObject'](Q)||!Node['prototype']['isPrototypeOf'](R)&&R!==window||!S)return;var V=typeof T=='function';var W=V?undefined:T;var X=V?T:U;if(typeof X!='function')return;BDFDB['removeEventListener'](Q,R,S,W);for(var Y of S['split']('\x20')){Y=Y['split']('.');var Z=Y['shift']()['toLowerCase']();if(!Z)return;var a0=Z;Z=Z=='mouseenter'||Z=='mouseleave'?'mouseover':Z;var a1=(Y['join']('.')||'')+Q['name'];if(!Array['isArray'](Q['listeners']))Q['listeners']=[];var a2=null;if(W){if(a0=='mouseenter'||a0=='mouseleave'){a2=a3=>{for(let a4 of a3['path'])if(typeof a4['matches']=='function'&&a4['matches'](W)&&!a4[a1+'BDFDB'+a0]){a4[a1+'BDFDB'+a0]=!![];if(a0=='mouseenter')X(BDFDB['copyEvent'](a3,a4));let a5=a6=>{if(a6['target']['contains'](a4)||a6['target']==a4||!a4['contains'](a6['target'])){if(a0=='mouseleave')X(BDFDB['copyEvent'](a3,a4));delete a4[a1+'BDFDB'+a0];document['removeEventListener']('mouseout',a5);}};document['addEventListener']('mouseout',a5);break;}};}else{a2=a7=>{for(let a8 of a7['path'])if(typeof a8['matches']=='function'&&a8['matches'](W)){X(BDFDB['copyEvent'](a7,a8));break;}};}}else a2=a9=>{X(BDFDB['copyEvent'](a9,R));};Q['listeners']['push']({'ele':R,'eventname':Z,'origeventname':a0,'namespace':a1,'selector':W,'eventcallback':a2});R['addEventListener'](Z,a2,!![]);}};BDFDB['copyEvent']=function(aa,ab){if(!aa||!aa['constructor']||!aa['type'])return aa;var ac=new aa['constructor'](aa['type'],aa);Object['defineProperty'](ac,'originalEvent',{'value':aa});Object['defineProperty'](ac,'which',{'value':aa['which']});Object['defineProperty'](ac,'keyCode',{'value':aa['keyCode']});Object['defineProperty'](ac,'path',{'value':aa['path']});Object['defineProperty'](ac,'relatedTarget',{'value':aa['relatedTarget']});Object['defineProperty'](ac,'srcElement',{'value':aa['srcElement']});Object['defineProperty'](ac,'target',{'value':aa['target']});Object['defineProperty'](ac,'toElement',{'value':aa['toElement']});if(ab)Object['defineProperty'](ac,'currentTarget',{'value':ab});return ac;};BDFDB['stopEvent']=function(ad){if(BDFDB['isObject'](ad)){if(typeof ad['preventDefault']=='function')ad['preventDefault']();if(typeof ad['stopPropagation']=='function')ad['stopPropagation']();if(typeof ad['stopImmediatePropagation']=='function')ad['stopImmediatePropagation']();if(BDFDB['isObject'](ad['originalEvent'])){if(typeof ad['originalEvent']['preventDefault']=='function')ad['originalEvent']['preventDefault']();if(typeof ad['originalEvent']['stopPropagation']=='function')ad['originalEvent']['stopPropagation']();if(typeof ad['originalEvent']['stopImmediatePropagation']=='function')ad['originalEvent']['stopImmediatePropagation']();}}};BDFDB['removeEventListener']=function(ae,af,ag='',ah){if(!BDFDB['isObject'](ae)||!Array['isArray'](ae['listeners']))return;if(Node['prototype']['isPrototypeOf'](af)||af===window){for(var ai of ag['split']('\x20')){ai=ai['split']('.');var aj=ai['shift']()['toLowerCase']();var ak=(ai['join']('.')||'')+ae['name'];for(let al of ae['listeners']){let am=[];if(al['ele']==af&&(!aj||al['origeventname']==aj)&&al['namespace']==ak&&(ah===undefined||al['selector']==ah)){af['removeEventListener'](al['eventname'],al['eventcallback'],!![]);am['push'](al);}if(am['length'])ae['listeners']=ae['listeners']['filter'](al=>{return am['indexOf'](al)<0x0;});}}}else if(!af){for(let ao of ae['listeners'])ao['ele']['removeEventListener'](ao['eventname'],ao['eventcallback'],!![]);ae['listeners']=[];}};BDFDB['checkUpdate']=function(ap,aq){if(BDFDB['isBDv2']())return;require('request')(aq,(ar,as,at)=>{if(ar)return;var au=at['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!au)return;if(BDFDB['checkVersionDifference'](au[0x0],window['PluginUpdates']['plugins'][aq]['version'])>0.2){BDFDB['showToast'](ap+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['downloadPlugin'](ap,aq);}else if(BDFDB['checkVersions'](au[0x0],window['PluginUpdates']['plugins'][aq]['version']))BDFDB['showUpdateNotice'](ap,aq);else BDFDB['removeUpdateNotice'](ap);});};BDFDB['checkVersions']=function(av,aw){if(!av||!aw)return!![];av=av['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](ax=>parseInt(ax))['filter'](ay=>(ay||ay==0x0)&&!isNaN(ay));aw=aw['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](az=>parseInt(az))['filter'](aA=>(aA||aA==0x0)&&!isNaN(aA));var aB=Math['max'](av['length'],aw['length']);if(!aB)return!![];if(av['length']>aw['length']){var aC=new Array(av['length']-aw['length']);for(let aD=0x0;aDaw[aI])return!![];}return![];};BDFDB['checkVersionDifference']=function(aJ,aK){if(!aJ||!aK)return![];aJ=aJ['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aL=>parseInt(aL))['filter'](aM=>(aM||aM==0x0)&&!isNaN(aM));aK=aK['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aN=>parseInt(aN))['filter'](aO=>(aO||aO==0x0)&&!isNaN(aO));var aP=Math['max'](aJ['length'],aK['length']);if(!aP)return![];if(aJ['length']>aK['length']){var aQ=new Array(aJ['length']-aK['length']);for(let aR=0x0;aR',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':'','customicon':''});b0['style']['setProperty']('display','block','important');b0['style']['setProperty']('visibility','visible','important');b0['style']['setProperty']('opacity','1','important');b0['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{BDFDB['removeEles']('.update-clickme-tooltip');});var b1=b0['querySelector'](BDFDB['dotCN']['noticebutton']);if(b1){BDFDB['toggleEles'](b1,!![]);b1['addEventListener']('click',()=>{window['location']['reload'](![]);});b1['addEventListener']('mouseenter',()=>{if(window['PluginUpdates']['downloaded'])BDFDB['createTooltip'](window['PluginUpdates']['downloaded']['join'](',\x20'),b1,{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(b0){var b2=b0['querySelector']('#outdatedPlugins');if(b2&&!b2['querySelector']('#'+aY+'-notice')){if(b2['querySelector']('span'))b2['appendChild'](BDFDB['htmlToElement'](',\x20'));var b3=BDFDB['htmlToElement'](''+aY+'');b3['addEventListener']('click',()=>{BDFDB['downloadPlugin'](aY,aZ);});b2['appendChild'](b3);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['createTooltip']('Click\x20us!',b2,{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};BDFDB['downloadPlugin']=function(b4,b5){require('request')(b5,(b6,b7,b8)=>{if(b6)return console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','','Unable\x20to\x20get\x20update\x20for\x20'+b4);BDFDB['creationTime']=0x0;var b9=b8['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);b9=b9['toString']()['replace'](/['"]/g,'');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),bdplugins[b4]?bdplugins[b4]['filename']:b5['split']('/')['slice'](-0x1)[0x0]),b8);BDFDB['showToast'](b4+'\x20v'+window['PluginUpdates']['plugins'][b5]['version']+'\x20has\x20been\x20replaced\x20by\x20'+b4+'\x20v'+b9+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var ba=document['querySelector']('#pluginNotice');if(ba){if(ba['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][b5]['version']=b9;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](b4))window['PluginUpdates']['downloaded']['push'](b4);}BDFDB['removeUpdateNotice'](b4,ba);}});};BDFDB['removeUpdateNotice']=function(bb,bc=document['querySelector']('#pluginNotice')){if(!bc)return;var bd=bc['querySelector']('#outdatedPlugins');if(bd){var be=bd['querySelector']('#'+bb+'-notice');if(be){var bf=be['nextSibling'];var bg=be['prevSibling'];if(bf&&BDFDB['containsClass'](bf,'separator'))bf['remove']();else if(bg&&BDFDB['containsClass'](bg,'separator'))bg['remove']();be['remove']();}if(!bd['querySelector']('span')){var bh=bc['querySelector'](BDFDB['dotCN']['noticebutton']);if(bh){bc['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](bh,![]);}else bc['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(bi,bj={}){var bk=document['querySelector']('.toasts,\x20.bd-toasts');if(!bk){var bl=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bm=bl?BDFDB['getRects'](bl):null;var bn=bl?bl['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bo=bm?bm['left']:0x136;var bp=bm?bn?bm['width']-BDFDB['getRects'](bn)['width']:bm['width']:window['outerWidth']-0x0;var bq=bl?bl['querySelector']('form'):null;var br=bq?BDFDB['getRects'](bq)['height']:0x50;bk=BDFDB['htmlToElement']('');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](bk);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![]}=bj;var bs=BDFDB['htmlToElement'](''+(html===!![]?bi:BDFDB['encodeToHTML'](bi))+'
');if(type){BDFDB['addClass'](bs,'toast-'+type);if(icon)BDFDB['addClass'](bs,'icon');}BDFDB['addClass'](bs,selector);bk['appendChild'](bs);bs['close']=()=>{if(document['contains'](bs)){BDFDB['addClass'](bs,'closing');setTimeout(()=>{bs['remove']();if(!bk['querySelectorAll']('.toast,\x20.bd-toast')['length'])bk['remove']();},0xbb8);}};if(nopointer)bs['style']['setProperty']('pointer-events','none','important');else bs['addEventListener']('click',bs['close']);setTimeout(()=>{bs['close']();},timeout>0x0?timeout:0x927c0);return bs;};BDFDB['DesktopNotificationQueue']={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(bt,bu={}){var bv=()=>{BDFDB['DesktopNotificationQueue']['queue']['push']({'parsedcontent':bt,'parsedoptions':bu});bw();};var bw=()=>{if(!BDFDB['DesktopNotificationQueue']['running']){var bx=BDFDB['DesktopNotificationQueue']['queue']['shift']();if(bx)by(bx['parsedcontent'],bx['parsedoptions']);}};var by=(bz,bA)=>{BDFDB['DesktopNotificationQueue']['running']=!![];var bB=bA['silent'];bA['silent']=bA['silent']||bA['sound']?!![]:![];var bC=new Notification(bz,bA);var bD=new Audio();var bE=setTimeout(()=>{bF();},bA['timeout']?bA['timeout']:0xbb8);if(typeof bA['click']=='function')bC['onclick']=()=>{clearTimeout(bE);bF();bA['click']();};if(!bB&&bA['sound']){bD['src']=bA['sound'];bD['play']();}var bF=()=>{bD['pause']();bC['close']();BDFDB['DesktopNotificationQueue']['running']=![];setTimeout(()=>{bw();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bv();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bG){if(bG==='granted')bv();});};BDFDB['createTooltip']=function(bH,bI,bJ={}){if(!bH||!bI||!Node['prototype']['isPrototypeOf'](bI)||!document['contains'](bI))return null;var bK=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bK)return null;var bL=document['querySelector']('.BDFDB-tooltips');if(!bL){bL=bK['cloneNode']();BDFDB['addClass'](bL,'BDFDB-tooltips');bK['parentElement']['insertBefore'](bL,bK['nextSibling']);}var c=Math['round'](Math['random']()*0x2386f26fc10000);var bN=BDFDB['htmlToElement']('');bN['anker']=bI;var bO=bN['firstElementChild']?bN['firstElementChild']:bN;if(bJ['id'])bN['id']=bJ['id']['split']('\x20')['join']('');if(bJ['selector'])BDFDB['addClass'](bN,bJ['selector']);if(bJ['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+c,bJ['css'],bL);if(bJ['style'])bO['style']=bJ['style'];if(bJ['html']===!![])bO['innerHTML']=bH;else bO['innerText']=bH;if(bJ['type']&&BDFDB['disCN']['tooltip'+bJ['type']['toLowerCase']()]){BDFDB['addClass'](bO,BDFDB['disCN']['tooltip'+bJ['type']['toLowerCase']()]);bO['appendChild'](BDFDB['htmlToElement'](''));}if(bO['style']['borderColor']&&bO['style']['backgroundColor'])BDFDB['addClass'](bO,'tooltip-customcolor');else if(bJ['color']&&BDFDB['disCN']['tooltip'+bJ['color']['toLowerCase']()])BDFDB['addClass'](bO,BDFDB['disCN']['tooltip'+bJ['color']['toLowerCase']()]);else BDFDB['addClass'](bO,BDFDB['disCN']['tooltipblack']);bL['appendChild'](bN);if(!bJ['position']||bJ['type'])bJ['position']=bJ['type'];if(!bJ['position']||!['top','bottom','left','right']['includes'](bJ['position']['toLowerCase']()))bJ['position']='right';bN['position']=bJ['position']['toLowerCase']();BDFDB['updateTooltipPosition'](bN);var bP=()=>{bN['remove']();if(!bL['firstElementChild'])BDFDB['removeEles'](bL);};var bQ=new MutationObserver(bR=>{bR['forEach'](bS=>{var bT=Array['from'](bS['removedNodes']);var bU=bT['indexOf'](bN)>-0x1;var bV=bT['indexOf'](bI)>-0x1;var bW=bT['some'](bX=>bX['contains'](bI));if(bU||bV||bW){bQ['disconnect']();bP();bI['removeEventListener']('mouseleave',bP);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+c,bL);}});});bQ['observe'](document['body'],{'subtree':!![],'childList':!![]});bI['addEventListener']('mouseleave',bP);if(bJ['delay']){BDFDB['toggleEles'](bN);setTimeout(()=>{BDFDB['toggleEles'](bN);},bJ['delay']);}return bN;};BDFDB['updateTooltipPosition']=function(bY){if(!Node['prototype']['isPrototypeOf'](bY)||!Node['prototype']['isPrototypeOf'](bY['anker'])||!bY['position'])return;var bZ,c0,c1=BDFDB['getRects'](bY['anker']),c2=BDFDB['getRects'](bY),c3={'height':0x0,'width':0x0};var c4=bY['querySelector'](BDFDB['dotCN']['tooltippointer']);if(c4)c3=BDFDB['getRects'](c4);switch(bY['position']){case'top':c0=c1['top']-c2['height']-c3['height']+0x2;bZ=c1['left']+(c1['width']-c2['width'])/0x2;break;case'bottom':c0=c1['top']+c1['height']+c3['height']-0x2;bZ=c1['left']+(c1['width']-c2['width'])/0x2;break;case'left':c0=c1['top']+(c1['height']-c2['height'])/0x2;bZ=c1['left']-c2['width']-c3['width']+0x2;break;case'right':c0=c1['top']+(c1['height']-c2['height'])/0x2;bZ=c1['left']+c1['width']+c3['width']-0x2;break;}bY['style']['setProperty']('top',c0+'px');bY['style']['setProperty']('left',bZ+'px');var c5=BDFDB['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),c2=BDFDB['getRects'](bY);var c7=bY['querySelector'](BDFDB['dotCN']['tooltippointer']);if(bY['position']=='top'||bY['position']=='bottom'){if(c2['left']<0x0){bY['style']['setProperty']('left','5px');c7['style']['setProperty']('margin-left',c2['left']-0xa+'px');}else{var c8=c5['width']-(c2['left']+c2['width']);if(c8<0x0){bY['style']['setProperty']('left',c5['width']-c2['width']-0x5+'px');c7['style']['setProperty']('margin-left',-0x1*c8+'px');}}}else if(bY['position']=='left'||bY['position']=='right'){if(c2['top']<0x0){bY['style']['setProperty']('top','5px');c7['style']['setProperty']('margin-top',c2['top']-0xa+'px');}else{var c9=c5['height']-(c2['top']+c2['height']);if(c9<0x0){bY['style']['setProperty']('top',c5['height']-c2['height']-0x5+'px');c7['style']['setProperty']('margin-top',-0x1*c9+'px');}}}};BDFDB['createNotificationsBar']=function(ca,cb={}){if(!ca)return;var cc=document['querySelector'](BDFDB['dotCN']['layers']);if(!cc)return;var c=Math['round'](Math['random']()*0x2386f26fc10000);var ce=BDFDB['htmlToElement']('');cc['parentElement']['insertBefore'](ce,cc);var cf=ce['querySelector']('.notice-message');if(cb['platform'])for(let cg of cb['platform']['split']('\x20'))if(rH['noticeicon'+cg]){let ch=BDFDB['htmlToElement']('');BDFDB['addClass'](ch,BDFDB['disCN']['noticeplatformicon']);BDFDB['removeClass'](ch,BDFDB['disCN']['noticeicon']);ce['insertBefore'](ch,cf);}if(cb['customicon']){let ci=BDFDB['htmlToElement'](cb['customicon']);let ch=BDFDB['htmlToElement']('');if(ci['tagName']=='span'&&!ci['firstElementChild'])ch['style']['setProperty']('background','url('+cb['customicon']+')\x20center/cover\x20no-repeat');else ch['appendChild'](ci);BDFDB['addClass'](ch,BDFDB['disCN']['noticeplatformicon']);BDFDB['removeClass'](ch,BDFDB['disCN']['noticeicon']);ce['insertBefore'](ch,cf);}if(cb['btn'])ce['appendChild'](BDFDB['htmlToElement'](''));if(cb['id'])ce['id']=cb['id']['split']('\x20')['join']('');if(cb['selector'])BDFDB['addClass'](ce,cb['selector']);if(cb['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+c,cb['css']);if(cb['style'])ce['style']=cb['style'];if(cb['html']===!![])cf['innerHTML']=ca;else{var ck=document['createElement']('a');var cl=[];for(let cm of ca['split']('\x20')){var cn=BDFDB['encodeToHTML'](cm);ck['href']=cm;cl['push'](ck['host']&&ck['host']!==window['location']['host']?'':cn);}cf['innerHTML']=cl['join']('\x20');}var co=null;if(cb['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(co=BDFDB['disCN']['notice'+cb['type']])BDFDB['addClass'](ce,co);if(cb['type']=='premium'){var cp=ce['querySelector'](BDFDB['dotCN']['noticebutton']);if(cp)BDFDB['addClass'](cp,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](cf,BDFDB['disCN']['noticepremiumtext']);ce['insertBefore'](BDFDB['htmlToElement'](''),cf);}}if(!co){var cq=BDFDB['colorCONVERT'](cb['color'],'RGBCOMP');if(cq){var cr=cq[0x0]>0xb4&&cq[0x1]>0xb4&&cq[0x2]>0xb4?'#000':'#FFF';var cs=BDFDB['colorCONVERT'](cq,'HEX');var ct=cq[0x0]>0xb4&&cq[0x1]>0xb4&&cq[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+c,'.BDFDB-notice.notice-'+c+'{background-color:'+cs+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20.notice-message\x20{color:'+cr+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+cr+'\x20!important;border-color:'+BDFDB['colorSETALPHA'](cr,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cs+'\x20!important;background-color:'+cr+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+ct+'\x20!important;}');}else BDFDB['addClass'](ce,BDFDB['disCN']['noticedefault']);}ce['style']['setProperty']('height','36px','important');ce['style']['setProperty']('min-width','70vw','important');ce['style']['setProperty']('left','unset','important');ce['style']['setProperty']('right','unset','important');let cu=(BDFDB['getTotalWidth'](document['body']['firstElementChild'])-BDFDB['getTotalWidth'](ce))/0x2;ce['style']['setProperty']('left',cu+'px','important');ce['style']['setProperty']('right',cu+'px','important');ce['style']['setProperty']('min-width','unset','important');ce['style']['setProperty']('width','unset','important');ce['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cu*0x2+'px)','important');ce['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{ce['style']['setProperty']('overflow','hidden','important');ce['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+c);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+c);ce['remove']();},0x1f4);});return ce;};BDFDB['getDiscordFolder']=function(){var cv=BDFDB['getDiscordBuilt']();cv='discord'+(cv=='stable'?'':cv);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),cv,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=function(){var cw=require('process');var cx=require('path');if(cw['env']['injDir'])return cx['resolve'](cw['env']['injDir'],'plugins/');switch(cw['platform']){case'win32':return cx['resolve'](cw['env']['appdata'],'BetterDiscord/plugins/');case'darwin':return cx['resolve'](cw['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(cw['env']['XDG_CONFIG_HOME'])return cx['resolve'](cw['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return cx['resolve'](cw['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var cy=require('process');var cz=require('path');if(cy['env']['injDir'])return cz['resolve'](cy['env']['injDir'],'plugins/');switch(cy['platform']){case'win32':return cz['resolve'](cy['env']['appdata'],'BetterDiscord/themes/');case'darwin':return cz['resolve'](cy['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(cy['env']['XDG_CONFIG_HOME'])return cz['resolve'](cy['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return cz['resolve'](cy['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(cA=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!cA)return;var cB=cA['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!cB)return;var cC=cB['parentElement']['querySelector']('h2');if(cC&&cC['innerText']){let cD=cC['innerText']['toLowerCase']();if(cD==='plugins'||cD==='themes')return cD;}};BDFDB['checkAllUpdates']=function(){for(let cE in window['PluginUpdates']['plugins']){var cF=window['PluginUpdates']['plugins'][cE];BDFDB['checkUpdate'](cF['name'],cF['raw']);}};BDFDB['getLineOfString']=function(cG,cH){if(typeof cG!='string'||typeof cG!='string')return-0x1;let cI=cG['indexOf'](cH);if(cI<0x0)return-0x1;return cG['substring'](0x0,cI)['split']('\x0a')['length'];};BDFDB['sortObject']=function(cJ,cK,cL){var cM={};if(cK===undefined||!cK)for(let cN of Object['keys'](cJ)['sort']())cM[cN]=cJ[cN];else{let cO=[];for(let cN in cJ)cO['push'](cJ[cN]);cO=BDFDB['sortArrayByKey'](cO,cK,cL);for(let cQ of cO)for(let cN in cJ)if(BDFDB['equals'](cQ,cJ[cN])){cM[cN]=cQ;break;}}return cM;};BDFDB['reverseObject']=function(cS,cT){var cU={};for(let cV of cT===undefined||!cT?Object['keys'](cS)['reverse']():Object['keys'](cS)['sort']()['reverse']())cU[cV]=cS[cV];return cU;};BDFDB['filterObject']=function(cW,cX){return Object['keys'](cW)['filter'](cY=>cX(cW[cY]))['reduce']((cZ,d0)=>(cZ[d0]=cW[d0],cZ),{});};BDFDB['isObject']=function(d1){return d1&&Object['prototype']['isPrototypeOf'](d1)&&!Array['prototype']['isPrototypeOf'](d1);};BDFDB['isObjectEmpty']=function(d2){return typeof d2!=='object'||Object['getOwnPropertyNames'](d2)['length']==0x0;};BDFDB['pushToObject']=function(d3,d4){if(BDFDB['isObject'](d3))d3[Object['keys'](d3)['length']]=d4;};BDFDB['deepAssign']=function(d5,...d6){if(!d6['length'])return d5;var d7=d6['shift']();if(BDFDB['isObject'](d5)&&BDFDB['isObject'](d7)){for(var d8 in d7){if(BDFDB['isObject'](d7[d8])){if(!d5[d8])Object['assign'](d5,{[d8]:{}});BDFDB['deepAssign'](d5[d8],d7[d8]);}else Object['assign'](d5,{[d8]:d7[d8]});}}return BDFDB['deepAssign'](d5,...d6);};BDFDB['sortArrayByKey']=function(d9,da,db){if(db===undefined)db=null;return d9['sort'](function(dc,dd){var de=dc[da],df=dd[da];if(de!==db)return dedf?0x1:0x0;});};BDFDB['numSortArray']=function(dg,dh,di){return dg['sort'](function(dj,dk){return djdk?0x1:0x0;});};BDFDB['removeFromArray']=function(dl,dm,dn=![]){if(!dl||!dm||!Array['isArray'](dl)||!dl['includes'](dm))return dl;if(!dn)dl['splice'](dl['indexOf'](dm),0x1);else while(dl['indexOf'](dm)>-0x1)dl['splice'](dl['indexOf'](dm),0x1);return dl;};BDFDB['getAllIndexes']=function(dp,dq){var dr=[],ds=-0x1;while((ds=dp['indexOf'](dq,ds+0x1))!==-0x1)dr['push'](ds);return dr;};BDFDB['removeCopiesFromArray']=function(dt){return[...new Set(dt)];};BDFDB['highlightText']=function(du,dv){if(!dv||dv['length']<0x1)return du;var dw=0x0,dx=du,dy='',dz='';BDFDB['getAllIndexes'](du['toUpperCase'](),dv['toUpperCase']())['forEach'](dA=>{var dB=dw*(dy['length']+dz['length']);dA=dA+dB;var dC=dA+dv['length'];var dD=[-0x1]['concat'](BDFDB['getAllIndexes'](du['substring'](0x0,dA),'<'));var dE=[-0x1]['concat'](BDFDB['getAllIndexes'](du['substring'](0x0,dA),'>'));if(dD[dD['length']-0x1]>dE[dE['length']-0x1])return;du=du['substring'](0x0,dA)+dy+du['substring'](dA,dC)+dz+du['substring'](dC);dw++;});return du?du:dx;};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 dF=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(dF);var dG=BDFDB['getDiscordLanguage']();BDFDB['languages']['$discord']['name']='Discord\x20('+dG['name']+')';BDFDB['languages']['$discord']['id']=dG['id'];BDFDB['languages']['$discord']['ownlang']=dG['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var dH=null;try{dH=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dI){try{dH=require(require('electron')['remote']['app']['getAppPath']()['replace']('app.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dJ){var dK=BDFDB['getDiscordVersion']();if(dK){dK=dK['split']('.');if(dK['length']==0x3&&!isNaN(dK=parseInt(dK[0x2])))dH=dK>0x12c?'stable':da>0xc8?'canary':'ptb';else dH='stable';}else dH='stable';}}BDFDB['getDiscordBuilt']['built']=dH;return dH;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var dL=null;try{dL=require('electron')['remote']['app']['getVersion']();}catch(dM){dM='';}BDFDB['getDiscordBuilt']['version']=dL;return dL;}};BDFDB['getDiscordLanguage']=function(){var dN=document['querySelector']('html')['lang']||'en-US';var dO=dN['split']('-');var dP=dO[0x0];var dQ=dO[0x1]||'';dN=dQ&&dP['toUpperCase']()!==dQ['toUpperCase']()?dP+'-'+dQ:dP;return BDFDB['languages'][dN]||BDFDB['languages'][dP]||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 dR=BDFDB['getRects'](document['body']['firstElementChild']);var dS=Math['round'](0x64*window['outerWidth']/dR['width']);var dT=Math['round'](0x64*window['outerHeight']/dR['height']);return dSdV['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(dW,dX){if(!dW||!dX)return null;let dY=Node['prototype']['isPrototypeOf'](dW)?BDFDB['getReactInstance'](dW):dW;if(!BDFDB['isObject'](dY))return null;let dZ=dY;for(let e0 of dX['split']('.')['filter'](e1=>e1)){dZ=dZ[e0];if(dZ==undefined)return null;}return dZ;};BDFDB['getOwnerInstance']=function(e2){if(e2===undefined)return null;if(!e2['node']&&!e2['instance']||!e2['name']&&(!e2['props']||!Array['isArray'](e2['props'])))return null;var e3=e2['instance']||BDFDB['getReactInstance'](e2['node']);if(!e3)return null;e2['name']=e2['name']&&!Array['isArray'](e2['name'])?Array['of'](e2['name']):e2['name'];var e4=-0x1;var e5=e2['depth']===undefined?0xf:e2['depth'];var e6=e2['up']===undefined?![]:e2['up'];var e7=performance['now']();var e8=e2['time']===undefined?0x96:e2['time'];var e9=e6?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var ea={};var eb=ee(e3);if(e2['all']){for(let ec in ea){if(e2['group'])for(let e3 in ea[ec])delete ea[ec][e3]['BDFDBreactSearch'];else delete ea[ec]['BDFDBreactSearch'];}return ea;}else return eb;function ee(e3){e4++;if(!e3||Node['prototype']['isPrototypeOf'](e3)||BDFDB['getReactInstance'](e3)||e4>e5||performance['now']()-e7>e8)eh=null;else{var eg=Object['getOwnPropertyNames'](e3);var eh=null;for(let ei=0x0;eh==null&&eie3['type']['displayName']===em['split']('\x20')[0x0]||e3['type']['name']===em['split']('\x20')[0x0])||e2['props']&&e2['props']['every'](en=>el[en]!==undefined)||e2['defaultProps']&&e2['defaultProps']['every'](eo=>el[eo]!==undefined))){if(e2['all']===undefined||!e2['all'])eh=el;else if(e2['all']){if(e2['noCopies']===undefined||!e2['noCopies']||e2['noCopies']&&!el['BDFDBreactSearch']){el['BDFDBreactSearch']=!![];if(e2['group']){if(e2['name']&&e3['type']&&(e3['type']['displayName']||e3['type']['name'])){var ep='Default';for(let eq of e2['name'])if(e3['type']['displayName']===eq['split']('\x20')[0x0]||e3['type']['name']===eq['split']('\x20')[0x0]){ep=eq;break;}if(typeof ea[ep]=='undefined')ea[ep]={};BDFDB['pushToObject'](ea[ep],el);}}else BDFDB['pushToObject'](ea,el);}}}if(eh==null&&(typeof ek==='object'||typeof ek==='function')&&e9[ej])eh=ee(ek);}}e4--;return eh;}};BDFDB['getKeyInformation']=function(er){if(er===undefined)return null;if(!er['node']&&!er['instance']||!er['key'])return null;var es=er['instance']||BDFDB['getReactInstance'](er['node']);if(!es)return null;var et=-0x1;var eu=er['depth']===undefined?0xf:er['depth'];var ev=performance['now']();var ew=er['time']===undefined?0x96:er['time'];var ex={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':er['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':er['up']?![]:!![],'return':er['up']?!![]:![],'sibling':er['up']?![]:!![],'firstEffect':!![]};var ey={'contextSection':!![]};if(typeof er['whitelist']==='object')Object['assign'](ex,er['whiteList']);if(typeof er['blacklist']==='object')Object['assign'](ey,er['blacklist']);var ez=[];var eA=eB(es);if(er['all'])return ez;else return eA;function eB(es){et++;if(!es||Node['prototype']['isPrototypeOf'](es)||BDFDB['getReactInstance'](es)||et>eu||performance['now']()-ev>ew)eE=null;else{var eD=Object['getOwnPropertyNames'](es);var eE=null;for(let eF=0x0;eE==null&&eFeO['default']=eM},[c])['default']:window['webpackJsonp']['push']([[],{[c]:(eQ,eR,eM)=>eQ['exports']=eM},[[c]]]);delete eM['m'][c];delete eM['c'][c];BDFDB['WebModules']['find']['req']=eM;}for(let eT in BDFDB['WebModules']['find']['req']['c']){if(BDFDB['WebModules']['find']['req']['c']['hasOwnProperty'](eT)){var eU=BDFDB['WebModules']['find']['req']['c'][eT]['exports'];if(eU&&eU['__esModule']&&eU['default']&&eK(eU['default']))return eU['default'];if(eU&&eK(eU))return eU;}}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(eV){eV=Array['isArray'](eV)?eV:Array['from'](arguments);var eW=JSON['stringify'](eV);if(BDFDB['WebModules']['cachedData']['prop'][eW])return BDFDB['WebModules']['cachedData']['prop'][eW];else{var eX=BDFDB['WebModules']['find'](eX=>eV['every'](eZ=>eX[eZ]!==undefined));if(eX){BDFDB['WebModules']['cachedData']['prop'][eW]=eX;return eX;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',eW+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(f0){var f1=JSON['stringify'](f0);if(BDFDB['WebModules']['cachedData']['name'][f1])return BDFDB['WebModules']['cachedData']['name'][f1];else{var f2=BDFDB['WebModules']['find'](f2=>f2['displayName']===f0);if(f2){BDFDB['WebModules']['cachedData']['name'][f1]=f2;return f2;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f1+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(f4){f4=Array['isArray'](f4)?f4:Array['from'](arguments);var f5=JSON['stringify'](f4);if(BDFDB['WebModules']['cachedData']['proto'][f5])return BDFDB['WebModules']['cachedData']['proto'][f5];else{var f6=BDFDB['WebModules']['find'](f6=>f6['prototype']&&f4['every'](f8=>f6['prototype'][f8]!==undefined));if(f6){BDFDB['WebModules']['cachedData']['proto'][f5]=f6;return f6;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f5+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['patchtypes']=['before','instead','after'];BDFDB['WebModules']['patchmap']={'Account':'FluxContainer(Account)','BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','Note':'FluxContainer(Note)','WebhookCard':'Webhook'};BDFDB['WebModules']['notfindablemodules']={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','CircleIconButton':'guildbuttoncontainer','EmojiPicker':'emojipicker','FriendsOnline':'friendsonline','FriendRow':'friendsrow','Guild':'guildcontainer','GuildHeader':'guildheader','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','Message':'message','MessageOptionPopout':'optionpopout','MessageUsername':'messageusername','NameTag':'nametag','SearchResults':'searchresultswrap','TypingUsers':'typing','UserPopout':'userpopout','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(f9,fa,fb,fc){if(!f9||!fa||!fb||!Object['keys'](fc)['some'](fd=>BDFDB['WebModules']['patchtypes']['includes'](fd)))return null;const fe=(typeof fb==='string'?fb:fb['name'])['toLowerCase']();const ff=(fg,fh)=>(...fi)=>{try{return fg(...fi);}catch(fj){console['error']('Error\x20occurred\x20in\x20'+fh,fj);}};if(!f9['BDFDBpatch'])f9['BDFDBpatch']={};fa=Array['isArray'](fa)?fa:Array['of'](fa);for(let fk of fa){if(!f9[fk])f9[fk]=()=>{};const fl=f9[fk];if(!f9['BDFDBpatch'][fk]){f9['BDFDBpatch'][fk]={};for(let fm of BDFDB['WebModules']['patchtypes'])f9['BDFDBpatch'][fk][fm]={};f9['BDFDBpatch'][fk]['originalMethod']=fl;f9[fk]=function(){const fn={'thisObject':this,'methodArguments':arguments,'originalMethod':fl,'originalMethodName':fk,'callOriginalMethod':()=>fn['returnValue']=fn['originalMethod']['apply'](fn['thisObject'],fn['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&f9['BDFDBpatch'][fk]){if(!BDFDB['isObjectEmpty'](f9['BDFDBpatch'][fk]['before']))for(let c in BDFDB['sortObject'](f9['BDFDBpatch'][fk]['before'])){ff(f9['BDFDBpatch'][fk]['before'][c],'`before`\x20callback\x20of\x20'+f9[fk]['displayName'])(fn);}if(BDFDB['isObjectEmpty'](f9['BDFDBpatch'][fk]['instead']))fn['callOriginalMethod']();else for(let c in BDFDB['sortObject'](f9['BDFDBpatch'][fk]['instead'])){const fq=ff(f9['BDFDBpatch'][fk]['instead'][c],'`instead`\x20callback\x20of\x20'+f9[fk]['displayName'])(fn);if(fq!==undefined)fn['returnValue']=fq;}if(!BDFDB['isObjectEmpty'](f9['BDFDBpatch'][fk]['after']))for(let c in BDFDB['sortObject'](f9['BDFDBpatch'][fk]['after'])){ff(f9['BDFDBpatch'][fk]['after'][c],'`after`\x20callback\x20of\x20'+f9[fk]['displayName'])(fn);}}else fn['callOriginalMethod']();return fn['returnValue'];};}for(let fs of BDFDB['WebModules']['patchtypes'])if(typeof fc[fs]=='function')f9['BDFDBpatch'][fk][fs][fe]=fc[fs];}const ft=()=>{BDFDB['WebModules']['unpatch'](f9,fa,fb);};if(fb&&typeof fb=='object'){if(!Array['isArray'](fb['patchCancels']))fb['patchCancels']=[];fb['patchCancels']['push'](ft);}return ft;};BDFDB['WebModules']['unpatch']=function(fu,fv,fw){if(!fu||!fu['BDFDBpatch'])return;const fx=!fw?null:(typeof fw==='string'?fw:fw['name'])['toLowerCase']();fv=Array['isArray'](fv)?fv:Array['of'](fv);for(let fy of fv){if(fu[fy]&&fu['BDFDBpatch'][fy]){for(let fz of BDFDB['WebModules']['patchtypes']){if(fx)delete fu['BDFDBpatch'][fy][fz][fx];else delete fu['BDFDBpatch'][fy][fz];}var fA=!![];for(let fz of BDFDB['WebModules']['patchtypes'])if(!BDFDB['isObjectEmpty'](fu['BDFDBpatch'][fy][fz]))fA=![];if(fA){fu[fy]=fu['BDFDBpatch'][fy]['originalMethod'];delete fu['BDFDBpatch'][fy];if(BDFDB['isObjectEmpty'](fu['BDFDBpatch']))delete fu['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(fC){if(BDFDB['isObject'](fC)&&Array['isArray'](fC['patchCancels']))for(let fD of fC['patchCancels'])fD();};BDFDB['WebModules']['forceAllUpdates']=function(fE,fF){fF=fF&&BDFDB['WebModules']['patchmap'][fF]?BDFDB['WebModules']['patchmap'][fF]+'\x20'+fF:fF;if(BDFDB['isObject'](fE)&&BDFDB['isObject'](fE['patchModules'])&&(!fF||fE['patchModules'][fF])){const fG=document['querySelector'](BDFDB['dotCN']['app']);const fH=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fG){var fI=[];for(let fJ in fE['patchModules']){var fK=Array['isArray'](fE['patchModules'][fJ])?fE['patchModules'][fJ]:Array['of'](fE['patchModules'][fJ]);if(fK['includes']('componentDidUpdate')||fK['includes']('componentDidMount')||fK['includes']('render'))fI['push'](fJ);}fI=fF?fI['filter'](fL=>fL==fF):fI;if(fI['length']>0x0){const fM=BDFDB['getOwnerInstance']({'node':fG,'name':fI,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fJ in fM)for(let fO in fM[fJ])BDFDB['WebModules']['initiateProcess'](fE,fM[fJ][fO],fJ,['componentDidUpdate','componentDidMount','render']);if(fH){const fP=BDFDB['getOwnerInstance']({'node':fH,'name':fI,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fJ in fP)for(let fO in fP[fJ])BDFDB['WebModules']['initiateProcess'](fE,fP[fJ][fO],fJ,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(fS){if(BDFDB['isObject'](fS)&&BDFDB['isObject'](fS['patchModules'])){for(let fT in fS['patchModules']){var fU=BDFDB['WebModules']['patchmap'][fT];if(fU){fS['patchModules'][fU+'\x20'+fT]=fS['patchModules'][fT];delete fS['patchModules'][fT];if(!BDFDB['WebModules']['notfindablemodules'][fT])fX(BDFDB['WebModules']['findByName'](fU),fU+'\x20'+fT);}else if(!BDFDB['WebModules']['notfindablemodules'][fT])fX(BDFDB['WebModules']['findByName'](fT),fT);}for(let fT in BDFDB['WebModules']['notfindablemodules']){var fW=BDFDB['WebModules']['patchmap'][fT]?BDFDB['WebModules']['patchmap'][fT]+'\x20'+fT:fT;if(rH[BDFDB['WebModules']['notfindablemodules'][fT]]&&fS['patchModules'][fW])g4(BDFDB['WebModules']['notfindablemodules'][fT],fW);}function fX(fY,fT){if(fY){var fW=fT['split']('\x20')[0x0];fY=fY['displayName']==fW?fY:BDFDB['getOwnerInstance']({'instance':fY,'name':fW,'up':!![]});if(fY){var g1=fY['_reactInternalFiber']&&fY['_reactInternalFiber']['type']?fY['_reactInternalFiber']['type']:fY;var g2={};g2[fS['name']=='$BDFDB'?'before':'after']=g3=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](fS,g3['thisObject'],fT,[g3['originalMethodName']]);};BDFDB['WebModules']['patch'](g1['prototype'],fS['patchModules'][fT],fS,g2);}}}function g4(g5,fT){var g7=![];const g8=document['querySelector'](BDFDB['dotCN']['app']);const g9=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(g8){var ga=BDFDB['getOwnerInstance']({'node':g8,'name':fT,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(ga){g7=!![];fX(ga,fT);}}if(!g7&&g9){var gb=BDFDB['getOwnerInstance']({'node':g9,'name':fT,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gb){g7=!![];fX(gb,fT);}}if(!g7){var gc=![],gd=new MutationObserver(ge=>{ge['forEach'](gf=>{gf['addedNodes']['forEach'](gg=>{var gh=null;if(!gc&&gg['tagName']&&(gh=BDFDB['containsClass'](gg,BDFDB['disCN'][g5])?gg:gg['querySelector'](BDFDB['dotCN'][g5]))!=null){instance=BDFDB['getReactInstance'](gh);if(gi(instance,fT)){gc=!![];gd['disconnect']();fX(instance,fT);BDFDB['WebModules']['forceAllUpdates'](fS,fT);}}});});});BDFDB['addObserver'](fS,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gd,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gi(gj,fT){if(!gj)return![];gj=gj['displayName']==fT?gj:BDFDB['getOwnerInstance']({'instance':gj,'name':fT,'up':!![]});return gj&&(fT!='V2C_PluginCard'&&fT!='V2C_ThemeCard'||fT=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||fT=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(gl,gm,gn,go){if(BDFDB['isObject'](gl)&&gm){gl=gl['name']=='$BDFDB'?sb:gl;gn=(gn['split']('\x20')[0x1]||gn)['replace'](/[^A-z0-9]|_/g,'');gn=gn[0x0]['toUpperCase']()+gn['slice'](0x1);if(typeof gl['process'+gn]=='function'){var gp=BDFDB['React']['findDOMNodeSafe'](gm);if(gp)gl['process'+gn](gm,gp,go);else setImmediate(()=>{gp=BDFDB['React']['findDOMNodeSafe'](gm);if(gp)gl['process'+gn](gm,gp,go);});}}};var gq=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');var gr=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(gq&&gr){BDFDB['React']=Object['assign']({},gq,gr);BDFDB['React']['findDOMNodeSafe']=function(gs){if(!gs||!gs['updater']||typeof gs['updater']['isMounted']!=='function'||!gs['updater']['isMounted'](gs))return null;var gt=gr['findDOMNode'](gs)||BDFDB['getReactValue'](gs,'child.stateNode');return Node['prototype']['isPrototypeOf'](gt)?gt:null;};};BDFDB['addOnSwitchListener']=function(gu){if(typeof gu['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](gu);var gv=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(gv){var gw=new MutationObserver(gx=>{gx['forEach'](gy=>{if(gy['target']&&BDFDB['containsClass'](gy['target'],BDFDB['disCN']['nochannel']))gu['onSwitch']();});});var gz=gv['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(gz)gw['observe'](gz,{'attributes':!![]});gu['onSwitchFix']=new MutationObserver(gA=>{gA['forEach'](gB=>{if(gB['addedNodes']){gB['addedNodes']['forEach'](gC=>{if(BDFDB['containsClass'](gC,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))gw['observe'](gC,{'attributes':!![]});});}});});gu['onSwitchFix']['observe'](gv,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(gD){if(typeof gD['onSwitch']==='function'&&BDFDB['isObject'](gD['onSwitchFix'])){gD['onSwitchFix']['disconnect']();delete gD['onSwitchFix'];}};BDFDB['addContextListener']=function(gE){for(let gF of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof gE['on'+gF+'Context']==='function'||typeof gE['on'+gF+'ContextMenu']==='function'){if(gF=='GroupDM'){var gG=![],gH=new MutationObserver(gI=>{gI['forEach'](gJ=>{gJ['addedNodes']['forEach'](gK=>{var gL=null;if(!gG&&gK['tagName']&&(gL=BDFDB['containsClass'](gK,BDFDB['disCN']['contextmenu'])?gK:gK['querySelector'](BDFDB['dotCN']['contextmenu']))!=null){var gM=BDFDB['getReactInstance'](gL);if(gM&&gM['return']&&gM['return']['type']&&gM['return']['type']['displayName']==gF+'ContextMenu'){gG=!![];gH['disconnect']();gN(gF,gM['return']['type']);gR(gF,gM['return']['stateNode'],gM['stateNode']);}}});});});BDFDB['addObserver'](gE,BDFDB['dotCN']['appmount'],{'name':'checkForContextObserver','instance':gH,'multi':!![]},{'childList':!![],'subtree':!![]});}else gN(gF,BDFDB['WebModules']['findByName'](gF+'ContextMenu'));}}function gN(gF,gP){if(gP&&gP['prototype'])BDFDB['WebModules']['patch'](gP['prototype'],'componentDidMount',gE,{'after':gQ=>{gR(gF,gQ['thisObject'],BDFDB['React']['findDOMNodeSafe'](gQ['thisObject']));}});}function gR(gF,gT,gU){if(gT&&gU){if(typeof gE['on'+gF+'Context']==='function')gE['on'+gF+'Context'](gT,gU);if(typeof gE['on'+gF+'ContextMenu']==='function')gE['on'+gF+'ContextMenu'](gT,gU);BDFDB['initElements'](gU,gE);BDFDB['updateContextPosition'](gU);}}};BDFDB['addSettingsButtonListener']=function(gV){if(BDFDB['isBDv2']()&&typeof gV['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](gV);BDFDB['appendSettingsButton'](gV);var gW=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(gW){gV['settingsButtonObserver']=new MutationObserver(gX=>{gX['forEach'](gY=>{if(gY['addedNodes']){gY['addedNodes']['forEach'](gZ=>{if(gZ['tagName']&&BDFDB['containsClass'](gZ,'active'))BDFDB['appendSettingsButton'](gV);});}});});gV['settingsButtonObserver']['observe'](gW,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(h0){var h1=document['querySelector'](BDFDB['dotCN']['_bdv2card']+'[data-plugin-id='+h0['id']+']');if(h1){var h2=BDFDB['htmlToElement']('');h1['insertBefore'](h2,h1['querySelector'](BDFDB['d']['_bdv2button']));h2['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',h2,{'type':'top'});BDFDB['addClass'](h2,BDFDB['disCN']['_bdv2tooltipopen']);});h2['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](h2,BDFDB['disCN']['_bdv2tooltipopen']);});h2['addEventListener']('click',()=>{var h3=BDFDB['htmlToElement'](''+h0['name']+'\x20Settings
');var h4=h0['getSettingsPanel']();h3['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof h4=='string'?BDFDB['htmlToElement'](h4):h4);if(typeof h0['onSettingsClosed']==='function')BDFDB['addChildEventListener'](h3,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{h0['onSettingsClosed']();});BDFDB['appendModal'](h3);});}};BDFDB['removeSettingsButtonListener']=function(h5){if(BDFDB['isBDv2']()&&typeof h5['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+h5['id']+']\x20.BDFDB-settingsbutton');h5['settingsButtonObserver']['disconnect']();delete h5['settingsButtonObserver'];}};var h6={},h7=BDFDB['WebModules']['findByProperties']('Messages'),h8=h7?Object['assign']({},h7['_proxyContext']['defaultMessages']):{};BDFDB['LanguageStrings']=new Proxy(h8,{'get':function(h9,ha){var hb=h7['Messages'][ha];if(!hb)console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',ha+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var hc=typeof hb=='object'?hb['format'](Object['assign']({},h6)):hb;if(typeof hc=='string')return hc;else if(Array['isArray'](hc)){var hd='';for(let he of hc){if(typeof he=='string')hd+=BDFDB['encodeToHTML'](he);else if(BDFDB['isObject'](he)&&he['props'])hd+='<'+he['type']+'>'+BDFDB['encodeToHTML'](he['props']['children'][0x0]['toString']())+''+he['type']+'>';}return hd;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',ha+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}return'';}});BDFDB['LanguageStringsCheck']=new Proxy(h8,{'get':function(hf,hg){return h7['Messages'][hg];}});BDFDB['LanguageStringsFormat']=function(hh,hi){if(hh&&hi){var hj=h7['Messages'][hh];if(hj&&typeof hj=='object'&&typeof hj['format']=='function'){try{var hk={};for(let hl in h6)hk[hl]=hi;var hm=hj['format'](hk);if(typeof hm=='string')return hm;else if(Array['isArray'](hm)){var hn='';for(let ho of hm){if(typeof ho=='string')hn+=BDFDB['encodeToHTML'](ho);else if(BDFDB['isObject'](ho)&&ho['props'])hn+='<'+ho['type']+'>'+BDFDB['encodeToHTML'](ho['props']['children'][0x0]['toString']())+''+ho['type']+'>';}return hn;}}catch(hp){console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hh+'\x20failed\x20to\x20format\x20string\x20in\x20BDFDB.LanguageStrings');}}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hh+'\x20is\x20not\x20a\x20formatable\x20string\x20in\x20BDFDB.LanguageStrings');}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hh+'\x20enter\x20a\x20valid\x20key\x20and\x20value\x20to\x20format\x20the\x20string');return'';};if(h7)for(let hq in h8){try{BDFDB['LanguageStrings'][hq];}catch(hr){let hs=hr['toString']()['split']('for:\x20')[0x1];if(hs&&typeof hs=='string'&&!h6[hs])h6[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===!![]&&hDhW['length']?hZ:hW['length'];};BDFDB['readServerList']=function(){var i0=[],i1=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':['Guild','GuildIcon'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let i2 in i1)if(i1[i2]['props']&&i1[i2]['props']['guild'])i0['push'](Object['assign'](new i1[i2]['props']['guild']['constructor'](i1[i2]['props']['guild']),{'div':i1[i2]['handleContextMenu']?BDFDB['React']['findDOMNodeSafe'](i1[i2]):BDFDB['htmlToElement'](''),'instance':i1[i2]}));return i0;};BDFDB['readUnreadServerList']=function(i3){var i4=[],i5=BDFDB['WebModules']['findByProperties']('hasUnread','getUnreadGuilds');for(let i6 of i3===undefined||!Array['isArray'](i3)?BDFDB['readServerList']():i3){if(!i6)return null;let c=Node['prototype']['isPrototypeOf'](i6)?BDFDB['getServerID'](i6):typeof i6=='object'?i6['id']:i6;c=typeof c=='number'?c['toFixed']():c;if(c&&i5['hasUnread'](c))i4['push'](i6);}return i4;};BDFDB['readMutedServerList']=function(i8){var i9=[],ia=BDFDB['WebModules']['findByProperties']('isGuildOrCategoryOrChannelMuted');for(let ib of i8===undefined||!Array['isArray'](i8)?BDFDB['readServerList']():i8){if(!ib)return null;let c=Node['prototype']['isPrototypeOf'](ib)?BDFDB['getServerID'](ib):typeof ib=='object'?ib['id']:ib;c=typeof c=='number'?c['toFixed']():c;if(c&&ia['isGuildOrCategoryOrChannelMuted'](c))i9['push'](ib);}return i9;};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 c=ih&&ih['href']?ih['href']['split']('/')['slice'](-0x2)[0x0]:null;return c&&!isNaN(parseInt(c))?c['toString']():null;};BDFDB['getServerDiv']=function(ij){if(!ij)return null;if(Node['prototype']['isPrototypeOf'](ij))return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ij);else{let c=typeof ij=='object'?ij['id']:ij;if(c)return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/'+c+'\x22]'));}return null;};BDFDB['getServerData']=function(il){if(!il)return null;let c=Node['prototype']['isPrototypeOf'](il)?BDFDB['getServerID'](il):typeof il=='object'?il['id']:il;c=typeof c=='number'?c['toFixed']():c;for(let io of BDFDB['readServerList']())if(io&&io['id']==c)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 c=Node['prototype']['isPrototypeOf'](iy)?BDFDB['getChannelID'](iy):typeof iy=='object'?iy['id']:iy;c=typeof c=='number'?c['toFixed']():c;for(let iA of BDFDB['readChannelList']())if(iA&&iA['id']==c)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 c=iG&&iG['href']?iG['href']['split']('/')['slice'](-0x1)[0x0]:null;return c&&!isNaN(parseInt(c))?c['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 c=typeof iI=='object'?iI['id']:iI;if(c){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/'+c+'\x22]'));return iJ&&BDFDB?iJ['parentElement']:iJ;}}return null;};BDFDB['getDmData']=function(iM){if(!iM)return null;let c=Node['prototype']['isPrototypeOf'](iM)?BDFDB['getDmID'](iM):typeof iM=='object'?iM['id']:iM;c=typeof c=='number'?c['toFixed']():c;for(let iO of BDFDB['readDmList']())if(iO&&iO['id']==c)return iO;return null;};BDFDB['markChannelAsRead']=function(iP){if(!iP)return;var iQ=BDFDB['WebModules']['findByProperties']('localAck','bulkAck');if(!iQ)return;var iR=[];for(let iS of iP=Array['isArray'](iP)?iP:typeof iP=='string'||typeof iP=='number'?Array['of'](iP):Array['from'](iP)){let c=Node['prototype']['isPrototypeOf'](iS)?BDFDB['getChannelID'](iS)||BDFDB['getDmID'](iS):iS&&typeof iS=='object'?iS['id']:iS;if(c)iR['push'](c);}if(iR['length']>0x0)iQ['bulkAck'](iR);};BDFDB['markGuildAsRead']=function(iU){if(!iU)return;var iV=BDFDB['WebModules']['findByProperties']('getChannels','getDefaultChannel'),iW=BDFDB['WebModules']['findByProperties']('localAck','bulkAck');if(!iV||!iW)return;var iX=[];for(let iY of Array['isArray'](iU)?iU:typeof iU=='string'||typeof iU=='number'?Array['of'](iU):Array['from'](iU)){let c=Node['prototype']['isPrototypeOf'](iY)?BDFDB['getServerID'](iY):iY&&typeof iY=='object'?iY['id']:iY;let j0=c?iV['getChannels'](c):null;if(j0)for(let j1 in j0)if(Array['isArray'](j0[j1]))for(let j2 of j0[j1])iX['push'](j2['channel']['id']);}if(iX['length']>0x0)iW['bulkAck'](iX);};BDFDB['saveAllData']=function(j3,j4,j5){var j6=require('fs'),j7,j8;if(!BDFDB['isBDv2']()){j8=typeof j4==='string'?j4:j4['name'];j7=require('path')['join'](BDFDB['getPluginsFolder'](),j8+'.config.json');}else{j8=typeof j4==='string'?j4['toLowerCase']():null;var j9=j8?BDFDB['Plugins'][j8]?BDFDB['Plugins'][j8]['contentPath']:null:j4['contentPath'];if(!j9)return;j7=require('path')['join'](j9,'settings.json');}var ja=j6['existsSync'](j7);var jb=!ja?{}:typeof BDFDB['cachedData'][j8]!=='undefined'?BDFDB['cachedData'][j8]:BDFDB['readConfig'](j7);jb[j5]=j3;if(BDFDB['isObjectEmpty'](jb[j5]))delete jb[j5];if(BDFDB['isObjectEmpty'](jb)){delete BDFDB['cachedData'][j8];if(ja)j6['unlinkSync'](j7);}else{BDFDB['cachedData'][j8]=jb;j6['writeFileSync'](j7,JSON['stringify'](jb,null,'\x09'));}};BDFDB['loadAllData']=function(jc,jd){var je=require('fs'),jf,jg;if(!BDFDB['isBDv2']()){jg=typeof jc==='string'?jc:jc['name'];jf=require('path')['join'](BDFDB['getPluginsFolder'](),jg+'.config.json');}else{jg=typeof jc==='string'?jc['toLowerCase']():null;var jh=jg?BDFDB['Plugins'][jg]?BDFDB['Plugins'][jg]['contentPath']:null:jc['contentPath'];if(!jh)return{};jf=require('path')['join'](jh,'settings.json');}if(!je['existsSync'](jf)){delete BDFDB['cachedData'][jg];return{};}var ji=typeof BDFDB['cachedData'][jg]!=='undefined'?BDFDB['cachedData'][jg]:BDFDB['readConfig'](jf);BDFDB['cachedData'][jg]=ji;return ji&&typeof ji[jd]!=='undefined'?ji[jd]:{};};BDFDB['removeAllData']=function(jj,jk){var jl=require('fs'),jm,jn;if(!BDFDB['isBDv2']()){jn=typeof jj==='string'?jj:jj['name'];jm=require('path')['join'](BDFDB['getPluginsFolder'](),jn+'.config.json');}else{jn=typeof jj==='string'?jj['toLowerCase']():null;var jo=jn?BDFDB['Plugins'][jn]?BDFDB['Plugins'][jn]['contentPath']:null:jj['contentPath'];if(!jo)return;jm=require('path')['join'](jo,'settings.json');}var jp=jl['existsSync'](jm);var jq=!jp?{}:typeof BDFDB['cachedData'][jn]!=='undefined'?BDFDB['cachedData'][jn]:BDFDB['readConfig'](jm);delete jq[jk];if(BDFDB['isObjectEmpty'](jq)){delete BDFDB['cachedData'][jn];if(jp)jl['unlinkSync'](jm);}else{BDFDB['cachedData'][jn]=jq;jl['writeFileSync'](jm,JSON['stringify'](jq,null,'\x09'));}};BDFDB['getAllData']=function(jr,js){if(!BDFDB['isObject'](jr)||!jr['defaults']||!jr['defaults'][js])return{};var jt=BDFDB['loadAllData'](jr,js),ju={},jv=![];for(let jw in jr['defaults'][js]){if(jt[jw]==null){ju[jw]=jr['defaults'][js][jw]['value'];jv=!![];}else ju[jw]=jt[jw];}if(jv)BDFDB['saveAllData'](ju,jr,js);return ju;};BDFDB['readConfig']=function(jx){try{return JSON['parse'](require('fs')['readFileSync'](jx));}catch(jy){return{};}};BDFDB['saveData']=function(c,jA,jB,jC){var jD=BDFDB['loadAllData'](jB,jC);jD[c]=jA;BDFDB['saveAllData'](jD,jB,jC);};BDFDB['loadData']=function(c,jF,jG){var jH=BDFDB['loadAllData'](jF,jG);var jI=jH[c];return jI===undefined?null:jI;};BDFDB['removeData']=function(c,jK,jL){var jM=BDFDB['loadAllData'](jK,jL);delete jM[c];BDFDB['saveAllData'](jM,jK,jL);};BDFDB['getData']=function(c,jO,jP){var jQ=BDFDB['getAllData'](jO,jP);var jR=jQ[c];return jR===undefined?null:jR;};BDFDB['appendWebScript']=function(jS,jT){if(!jT&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jT=jT||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jT=Node['prototype']['isPrototypeOf'](jT)?jT:document['head'];BDFDB['removeWebScript'](jS,jT);jT['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(jU,jV){jV=jV||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jV=Node['prototype']['isPrototypeOf'](jV)?jV:document['head'];BDFDB['removeEles'](jV['querySelectorAll']('script[src=\x22'+jU+'\x22]'));};BDFDB['appendWebStyle']=function(jW,jX){if(!jX&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jX=jX||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jX=Node['prototype']['isPrototypeOf'](jX)?jX:document['head'];BDFDB['removeWebStyle'](jW,jX);jX['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(jY,jZ){jZ=jZ||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jZ=Node['prototype']['isPrototypeOf'](jZ)?jZ:document['head'];BDFDB['removeEles'](jZ['querySelectorAll']('link[href=\x22'+jY+'\x22]'));};BDFDB['appendLocalStyle']=function(c,k1,k2){if(!k2&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));k2=k2||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];k2=Node['prototype']['isPrototypeOf'](k2)?k2:document['head'];BDFDB['removeLocalStyle'](c,k2);k2['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(c,k4){k4=k4||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];k4=Node['prototype']['isPrototypeOf'](k4)?k4:document['head'];BDFDB['removeEles'](k4['querySelectorAll']('style[id=\x22'+c+'CSS\x22]'));};BDFDB['formatBytes']=function(k5,k6){k5=parseInt(k5);if(isNaN(k5)||k5<0x0)return'0\x20Bytes';if(k5==0x1)return'1\x20Byte';var k7=Math['floor'](Math['log'](k5)/Math['log'](0x400));return parseFloat((k5/Math['pow'](0x400,k7))['toFixed'](k6<0x1?0x0:k6>0x14?0x14:k6||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][k7];};BDFDB['colorCONVERT']=function(k8,k9,ka){if(!k8)return null;k9=k9===undefined||!k9?k9='RGBCOMP':k9['toUpperCase']();ka=ka===undefined||!ka||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](ka['toUpperCase']())?BDFDB['colorTYPE'](k8):ka['toUpperCase']();if(k9=='RGBCOMP'){switch(ka){case'RGBCOMP':if(k8['length']==0x3)return kK(k8);else if(k8['length']==0x4){var kb=kN(k8['pop']());return kK(k8)['concat'](kb);}case'RGB':return kK(k8['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var kc=k8['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var kb=kN(kc['pop']());return kK(kc)['concat'](kb);case'HSLCOMP':if(k8['length']==0x3)return BDFDB['colorCONVERT']('hsl('+k8['join'](',')+')','RGBCOMP');else if(k8['length']==0x4){var kb=kN(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](kb);}case'HSL':var kf=kR(k8['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var kg,kh,ki,kj,kk,kl,km,kn;var ko=kf[0x0]/0x168,kp=parseInt(kf[0x1])/0x64,kq=parseInt(kf[0x2])/0x64;kj=Math['floor'](ko*0x6);kk=ko*0x6-kj;kl=kq*(0x1-kp);km=kq*(0x1-kk*kp);kn=kq*(0x1-(0x1-kk)*kp);switch(kj%0x6){case 0x0:kg=kq,kh=kn,ki=kl;break;case 0x1:kg=km,kh=kq,ki=kl;break;case 0x2:kg=kl,kh=kq,ki=kn;break;case 0x3:kg=kl,kh=km,ki=kq;break;case 0x4:kg=kn,kh=kl,ki=kq;break;case 0x5:kg=kq,kh=kl,ki=km;break;}return[Math['round'](kg*0xff),Math['round'](kh*0xff),Math['round'](ki*0xff)];case'HSLA':var kf=k8['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var kb=kN(kf['pop']());return BDFDB['colorCONVERT']('hsl('+kf['join'](',')+')','RGBCOMP')['concat'](kb);case'HEX':var kt=/^#([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'](k8);return[parseInt(kt[0x1]+kt[0x1]||kt[0x4],0x10)['toString'](),parseInt(kt[0x2]+kt[0x2]||kt[0x5],0x10)['toString'](),parseInt(kt[0x3]+kt[0x3]||kt[0x6],0x10)['toString']()];default:return null;}}else{var ku=ka=='RGBCOMP'?k8:BDFDB['colorCONVERT'](k8,'RGBCOMP',ka);if(ku)switch(k9){case'RGB':return'rgb('+kK(ku['slice'](0x0,0x3))['join'](',')+')';case'RGBA':ku=ku['slice'](0x0,0x4);var kb=ku['length']==0x4?kN(ku['pop']()):0x1;return'rgba('+kK(ku)['concat'](kb)['join'](',')+')';case'HSLCOMP':var kb=ku['length']==0x4?kN(ku['pop']()):null;var kf=kR(BDFDB['colorCONVERT'](ku,'HSL')['replace'](/\s/g,'')['split'](','));return kb?kf['concat'](kb):kf;case'HSL':var kg=kI(ku[0x0]),kh=kI(ku[0x1]),ki=kI(ku[0x2]);var kB=Math['max'](kg,kh,ki),kC=Math['min'](kg,kh,ki),kD=kB-kC,ko,kp=kB===0x0?0x0:kD/kB,kq=kB/0xff;switch(kB){case kC:ko=0x0;break;case kg:ko=kh-ki+kD*(kh0xff?0xff:kk<0x0?0x0:kk;};function kK(kc){return kc['map'](kk=>{return kI(kk);});};function kN(kb){kb=kb['toString']();kb=(kb['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kb['replace'](/[^0-9\.\-]/g,''));return isNaN(kb)||kb>0x1?0x1:kb<0x0?0x0:kb;};function kP(kQ){kQ=parseFloat(kQ['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(kQ)||kQ>0x64?0x64:kQ<0x0?0x0:kQ)+'%';};function kR(kc){let ko=parseFloat(kc['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));ko=isNaN(ko)||ko>0x168?0x168:ko<0x0?0x0:ko;return[ko]['concat'](kc['map'](kU=>{return kP(kU);}));};};BDFDB['colorSETALPHA']=function(kV,kW,kX){var kY=BDFDB['colorCONVERT'](kV,'RGBCOMP');if(kY){kW=kW['toString']();kW=(kW['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kW['replace'](/[^0-9\.\-]/g,''));kW=isNaN(kW)||kW>0x1?0x1:kW<0x0?0x0:kW;kY[0x3]=kW;kX=(kX||BDFDB['colorTYPE'](kV))['toUpperCase']();kX=kX=='HSL'||kX=='RGB'?kX+'A':kX;return BDFDB['colorCONVERT'](kY,kX);}return null;};BDFDB['colorCHANGE']=function(kZ,l0,l1){l0=parseFloat(l0);if(kZ&&typeof l0=='number'&&!isNaN(l0)){var l2=BDFDB['colorCONVERT'](kZ,'RGBCOMP');if(l2){if(parseInt(l0)!==l0){l0=l0['toString']();l0=(l0['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(l0['replace'](/[^0-9\.\-]/g,''));l0=isNaN(l0)?0x0:l0;return BDFDB['colorCONVERT']([Math['round'](l2[0x0]*(0x1+l0)),Math['round'](l2[0x1]*(0x1+l0)),Math['round'](l2[0x2]*(0x1+l0))],l1||BDFDB['colorTYPE'](kZ));}else return BDFDB['colorCONVERT']([Math['round'](l2[0x0]+l0),Math['round'](l2[0x1]+l0),Math['round'](l2[0x2]+l0)],l1||BDFDB['colorTYPE'](kZ));}}return null;};BDFDB['colorINV']=function(l3,l4){if(l3){var l5=BDFDB['colorCONVERT'](l3,'RGBCOMP');if(l5)return BDFDB['colorCONVERT']([0xff-l5[0x0],0xff-l5[0x1],0xff-l5[0x2]],l4||BDFDB['colorTYPE'](l3));}return null;};BDFDB['colorCOMPARE']=function(l6,l7){if(l6&&l7){l6=BDFDB['colorCONVERT'](l6,'RGBCOMP');l7=BDFDB['colorCONVERT'](l7,'RGBCOMP');if(l6&&l7)return BDFDB['equals'](l6,l7);}return null;};BDFDB['colorISBRIGHT']=function(l8,l9=0xa0){l8=BDFDB['colorCONVERT'](l8,'RGBCOMP');if(!l8)return![];return parseInt(l9)