diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index d8f167f3b1..57c4abc9eb 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'};(()=>{BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};BDFDB['loadMessage']=function(c){BDFDB['clearStarttimout'](c);c['name']=c['name']||c['getName']();c['version']=c['version']||c['getVersion']();c['author']=c['author']||c['getAuthor']();c['description']=c['description']||c['getDescription']();var d=BDFDB['getLibraryStrings']()['toast_plugin_started']['replace']('{{oldversion}}','v'+c['version']);console['log']('%c['+c['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',d);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](c['name']+'\x20'+d,{'nopointer':!![],'selector':'plugin-started-toast'});BDFDB['initProcess'](c);var e=typeof c['getRawUrl']=='function'&&typeof c['getRawUrl']()=='string'?c['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+c['name']+'/'+c['name']+'.plugin.js';BDFDB['checkUpdate'](c['name'],e);if(typeof c['initConstructor']==='function')c['initConstructor']();if(typeof c['css']==='string')BDFDB['appendLocalStyle'](c['name'],c['css']);BDFDB['WebModules']['patchModules'](c);BDFDB['addOnSwitchListener'](c);BDFDB['addSettingsButtonListener'](c);BDFDB['addContextListener'](c);BDFDB['translatePlugin'](c);BDFDB['checkChangeLog'](c);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][e]={'name':c['name'],'raw':e,'version':c['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);c['started']=!![];for(let f in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][f]['started']&&typeof BDFDB['myPlugins'][f]['initialize']=='function')BDFDB['myPlugins'][f]['initialize']();};BDFDB['unloadMessage']=function(g){BDFDB['clearStarttimout'](g);g['name']=g['name']||g['getName']();g['version']=g['version']||g['getVersion']();g['author']=g['author']||g['getAuthor']();g['description']=g['description']||g['getDescription']();delete BDFDB['myPlugins'][g['name']];var h=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+g['version']);console['log']('%c['+g['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',h);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](g['name']+'\x20'+h,{'nopointer':!![],'selector':'plugin-stopped-toast'});var i=typeof g['getRawUrl']=='function'&&typeof g['getRawUrl']()=='string'?g['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+g['name']+'/'+g['name']+'.plugin.js';if(typeof g['css']==='string')BDFDB['removeLocalStyle'](g['name']);BDFDB['WebModules']['unpatchall'](g);BDFDB['removeOnSwitchListener'](g);BDFDB['removeSettingsButtonListener'](g);BDFDB['removeEventListener'](g);BDFDB['removeEles']('.'+g['name']+'-modal,\x20.'+g['name']['toLowerCase']()+'-modal,\x20.'+g['name']+'-settingsmodal,\x20.'+g['name']['toLowerCase']()+'-settingsmodal');if(!BDFDB['isObjectEmpty'](g['observers'])){for(let j in g['observers'])for(let k of g['observers'][j])k['disconnect']();delete g['observers'];}delete window['PluginUpdates']['plugins'][i];if(BDFDB['isObjectEmpty'](window['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete g['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'];}};BDFDB['initProcess']=function(r){if(BDFDB['isBDv2']())return;var s=0x0,t=setInterval(()=>{var u=BDFDB['WebModules']['findByProperties']('getCurrentUser')['getCurrentUser']();if(u){clearInterval(t);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']['includes'](btoa(u['id']['split']('')['reverse']()['join'](''))['split']('')['reverse']()['join'](''))){var v=require('fs');var w=require('path');v['unlink'](w['join'](BDFDB['getPluginsFolder'](),r['name']+'.plugin.js'),x=>{});v['unlink'](w['join'](BDFDB['getPluginsFolder'](),r['name']+'.config.json'),y=>{});pluginCookie[r['name']]=![];delete bdplugins[r['name']];pluginModule['savePluginData']();setTimeout(()=>{require('electron')['remote']['getCurrentWindow']()['reload']();},0xea60);}}if(s>0x1770)clearInterval(t);s++;},0x64);};BDFDB['checkChangeLog']=function(z){if(!BDFDB['isObject'](z)||!z['changelog'])return;var A=BDFDB['loadAllData'](z,'changelog');if(!A['currentversion']||BDFDB['checkVersions'](z['version'],A['currentversion'])){A['currentversion']=z['version'];var B='';var C={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let D in z['changelog']){D=D['toLowerCase']();var E=BDFDB['disCN']['changelog'+D];if(E){B+='
'+C[D]+'
';for(let F of z['changelog'][D])B+='- '+F[0x0]+''+(F[0x1]?':\x20'+F[0x1]+'.':'')+'
';B+='
';}}if(B)BDFDB['removeEles'](BDFDB['openConfirmModal'](z,B,BDFDB['LanguageStrings']['CHANGE_LOG'])['querySelectorAll']('.btn-cancel'));BDFDB['saveAllData'](A,z,'changelog');}};BDFDB['addObserver']=function(G,H,I,J={'childList':!![]}){if(!BDFDB['isObject'](G)||!H||!I)return;if(BDFDB['isObjectEmpty'](G['observers']))G['observers']={};if(!Array['isArray'](G['observers'][I['name']]))G['observers'][I['name']]=[];if(!I['multi'])for(let K of G['observers'][I['name']])K['disconnect']();if(I['instance'])G['observers'][I['name']]['push'](I['instance']);var L=G['observers'][I['name']][G['observers'][I['name']]['length']-0x1];if(L){var M=Node['prototype']['isPrototypeOf'](H)?H:typeof H==='string'?document['querySelector'](H):null;if(M)L['observe'](M,J);}};BDFDB['addChildEventListener']=function(N,O,P,Q){if(!Node['prototype']['isPrototypeOf'](N)||!O||!P||!P['trim']()||typeof Q!='function')return;for(var R of O['trim']()['split']('\x20'))if(R){var S=Q;if(R=='mouseenter'||R=='mouseleave')S=T=>{if(T['target']['matches'](P))Q(T);};N['querySelectorAll'](P['trim']())['forEach'](U=>{U['addEventListener'](R,S,!![]);});}};BDFDB['addEventListener']=function(V,W,X,Y,Z){if(!BDFDB['isObject'](V)||!Node['prototype']['isPrototypeOf'](W)||!X)return;var a0=typeof Y=='function';var a1=a0?undefined:Y;var a2=a0?Y:Z;if(typeof a2!='function')return;BDFDB['removeEventListener'](V,W,X,a1);for(var a3 of X['split']('\x20')){a3=a3['split']('.');var a4=a3['shift']()['toLowerCase']();if(!a4)return;var a5=a4;a4=a4=='mouseenter'||a4=='mouseleave'?'mouseover':a4;var a6=(a3['join']('.')||'')+V['name'];if(!Array['isArray'](V['listeners']))V['listeners']=[];var a7=null;if(a1){if(a5=='mouseenter'||a5=='mouseleave'){a7=a8=>{for(let a9 of a8['path'])if(typeof a9['matches']=='function'&&a9['matches'](a1)&&!a9[a6+'BDFDB'+a5]){a9[a6+'BDFDB'+a5]=!![];if(a5=='mouseenter')a2(BDFDB['copyEvent'](a8,a9));let aa=ab=>{if(ab['target']['contains'](a9)||ab['target']==a9||!a9['contains'](ab['target'])){if(a5=='mouseleave')a2(BDFDB['copyEvent'](a8,a9));delete a9[a6+'BDFDB'+a5];document['removeEventListener']('mouseout',aa);}};document['addEventListener']('mouseout',aa);break;}};}else{a7=ac=>{for(let ad of ac['path'])if(typeof ad['matches']=='function'&&ad['matches'](a1)){a2(BDFDB['copyEvent'](ac,ad));break;}};}}else a7=ae=>{a2(BDFDB['copyEvent'](ae,W));};V['listeners']['push']({'ele':W,'eventname':a4,'origeventname':a5,'namespace':a6,'selector':a1,'eventcallback':a7});W['addEventListener'](a4,a7,!![]);}};BDFDB['copyEvent']=function(af,ag){var ah=new af['constructor'](af['type'],af);Object['defineProperty'](ah,'originalEvent',{'value':af});Object['defineProperty'](ah,'which',{'value':af['which']});Object['defineProperty'](ah,'keyCode',{'value':af['keyCode']});Object['defineProperty'](ah,'path',{'value':af['path']});Object['defineProperty'](ah,'relatedTarget',{'value':af['relatedTarget']});Object['defineProperty'](ah,'srcElement',{'value':af['srcElement']});Object['defineProperty'](ah,'target',{'value':af['target']});Object['defineProperty'](ah,'toElement',{'value':af['toElement']});if(ag)Object['defineProperty'](ah,'currentTarget',{'value':ag});return ah;};BDFDB['stopEvent']=function(ai){if(BDFDB['isObject'](ai)){if(typeof ai['preventDefault']=='function')ai['preventDefault']();if(typeof ai['stopPropagation']=='function')ai['stopPropagation']();if(typeof ai['stopImmediatePropagation']=='function')ai['stopImmediatePropagation']();if(BDFDB['isObject'](ai['originalEvent'])){if(typeof ai['originalEvent']['preventDefault']=='function')ai['originalEvent']['preventDefault']();if(typeof ai['originalEvent']['stopPropagation']=='function')ai['originalEvent']['stopPropagation']();if(typeof ai['originalEvent']['stopImmediatePropagation']=='function')ai['originalEvent']['stopImmediatePropagation']();}}};BDFDB['removeEventListener']=function(aj,ak,al='',am){if(!BDFDB['isObject'](aj)||!Array['isArray'](aj['listeners']))return;if(Node['prototype']['isPrototypeOf'](ak)){for(var an of al['split']('\x20')){an=an['split']('.');var ao=an['shift']()['toLowerCase']();var ap=(an['join']('.')||'')+aj['name'];for(let aq of aj['listeners']){let ar=[];if(aq['ele']==ak&&(!ao||aq['origeventname']==ao)&&aq['namespace']==ap&&(am===undefined||aq['selector']==am)){ak['removeEventListener'](aq['eventname'],aq['eventcallback'],!![]);ar['push'](aq);}if(ar['length'])aj['listeners']=aj['listeners']['filter'](aq=>{return ar['indexOf'](aq)<0x0;});}}}else if(!ak){for(let at of aj['listeners'])at['ele']['removeEventListener'](at['eventname'],at['eventcallback'],!![]);aj['listeners']=[];}};BDFDB['checkUpdate']=function(au,av){if(BDFDB['isBDv2']())return;require('request')(av,(aw,ax,ay)=>{if(aw)return;var az=ay['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!az)return;if(BDFDB['checkVersions'](az[0x0],window['PluginUpdates']['plugins'][av]['version']))BDFDB['showUpdateNotice'](au,av);else BDFDB['removeUpdateNotice'](au);});};BDFDB['checkVersions']=function(aA,aB){if(!aA||!aB)return!![];aA=aA['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aC=>parseInt(aC))['filter'](aD=>(aD||aD==0x0)&&!isNaN(aD));aB=aB['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aE=>parseInt(aE))['filter'](aF=>(aF||aF==0x0)&&!isNaN(aF));var aG=Math['max'](aA['length'],aB['length']);if(!aG)return!![];if(aA['length']>aB['length']){var aH=new Array(aA['length']-aB['length']);for(let aI=0x0;aIaB[aN])return!![];}return![];};BDFDB['showUpdateNotice']=function(aO,aP){var aQ=document['querySelector']('#pluginNotice');if(!aQ){aQ=BDFDB['createNotificationsBar']('The\x20following\x20plugins\x20have\x20updates: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':''});aQ['style']['setProperty']('display','block','important');aQ['style']['setProperty']('visibility','visible','important');aQ['style']['setProperty']('opacity','1','important');var aR=aQ['querySelector'](BDFDB['dotCN']['noticebutton']);if(aR){BDFDB['toggleEles'](aR,!![]);aR['addEventListener']('click',()=>{window['location']['reload'](![]);});aR['addEventListener']('mouseenter',()=>{if(window['PluginUpdates']['downloaded'])BDFDB['createTooltip'](window['PluginUpdates']['downloaded']['join'](',\x20'),aR,{'type':'bottom','selector':'update-notice-tooltip'});});}}if(aQ){var aS=aQ['querySelector']('#outdatedPlugins');if(aS&&!aS['querySelector']('#'+aO+'-notice')){if(aS['querySelector']('span'))aS['appendChild'](BDFDB['htmlToElement'](',\x20'));var aT=BDFDB['htmlToElement'](''+aO+'');aT['addEventListener']('click',()=>{BDFDB['downloadPlugin'](aO,aP,aQ);});aS['appendChild'](aT);}}};BDFDB['downloadPlugin']=function(aU,aV,aW){require('request')(aV,(aX,aY,aZ)=>{if(aX)return console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Unable\x20to\x20get\x20update\x20for\x20'+aU);BDFDB['creationTime']=0x0;var b0=aZ['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);b0=b0['toString']()['replace'](/['"]/g,'');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),bdplugins[aU]?bdplugins[aU]['filename']:aV['split']('/')['slice'](-0x1)[0x0]),aZ);BDFDB['showToast'](aU+'\x20v'+window['PluginUpdates']['plugins'][aV]['version']+'\x20has\x20been\x20replaced\x20by\x20'+aU+'\x20v'+b0+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});if(aW['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][aV]['version']=b0;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](aU))window['PluginUpdates']['downloaded']['push'](aU);}BDFDB['removeUpdateNotice'](aU,aW);});};BDFDB['removeUpdateNotice']=function(b1,b2=document['querySelector']('#pluginNotice')){if(!b2)return;var b3=b2['querySelector']('#outdatedPlugins');if(b3){var b4=b3['querySelector']('#'+b1+'-notice');if(b4){var b5=b4['nextSibling'];var b6=b4['prevSibling'];if(b5&&BDFDB['containsClass'](b5,'separator'))b5['remove']();else if(b6&&BDFDB['containsClass'](b6,'separator'))b6['remove']();b4['remove']();}if(!b3['querySelector']('span')){var b7=b2['querySelector'](BDFDB['dotCN']['noticebutton']);if(b7){b2['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](b7,![]);}else b2['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(b8,b9={}){var ba=document['querySelector']('.toasts,\x20.bd-toasts');if(!ba){var bb=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bc=bb?BDFDB['getRects'](bb):null;var bd=bb?bb['querySelector'](BDFDB['dotCN']['memberswrap']):null;var be=bc?bc['left']:0x136;var bf=bc?bd?bc['width']-BDFDB['getRects'](bd)['width']:bc['width']:window['outerWidth']-b7;var bg=bb?bb['querySelector']('form'):null;var bh=bg?BDFDB['getRects'](bg)['height']:0x50;ba=BDFDB['htmlToElement']('');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](ba);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![]}=b9;var bi=BDFDB['htmlToElement'](''+(html===!![]?b8:BDFDB['encodeToHTML'](b8))+'
');if(type){BDFDB['addClass'](bi,'toast-'+type);if(icon)BDFDB['addClass'](bi,'icon');}BDFDB['addClass'](bi,selector);ba['appendChild'](bi);bi['close']=()=>{if(document['contains'](bi)){BDFDB['addClass'](bi,'closing');setTimeout(()=>{bi['remove']();if(!ba['querySelectorAll']('.toast,\x20.bd-toast')['length'])ba['remove']();},0xbb8);}};if(nopointer)bi['style']['setProperty']('pointer-events','none','important');else bi['addEventListener']('click',bi['close']);setTimeout(()=>{bi['close']();},timeout>0x0?timeout:0x927c0);return bi;};BDFDB['DesktopNotificationQueue']={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(bj,bk={}){var bl=()=>{BDFDB['DesktopNotificationQueue']['queue']['push']({'parsedcontent':bj,'parsedoptions':bk});bm();};var bm=()=>{if(!BDFDB['DesktopNotificationQueue']['running']){var bn=BDFDB['DesktopNotificationQueue']['queue']['shift']();if(bn)bo(bn['parsedcontent'],bn['parsedoptions']);}};var bo=(bp,bq)=>{BDFDB['DesktopNotificationQueue']['running']=!![];var br=bq['silent'];bq['silent']=bq['silent']||bq['sound']?!![]:![];var bs=new Notification(bp,bq);var bt=new Audio();var bu=setTimeout(()=>{bv();},bq['timeout']?bq['timeout']:0xbb8);if(typeof bq['click']=='function')bs['onclick']=()=>{clearTimeout(bu);bv();bq['click']();};if(!br&&bq['sound']){bt['src']=bq['sound'];bt['play']();}var bv=()=>{bt['pause']();bs['close']();BDFDB['DesktopNotificationQueue']['running']=![];setTimeout(()=>{bm();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bl();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bw){if(bw==='granted')bl();});};BDFDB['createTooltip']=function(bx,by,bz={}){if(!bx||!by||!Node['prototype']['isPrototypeOf'](by)||!document['contains'](by))return null;var bA=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bA)return null;var bB=Math['round'](Math['random']()*0x2386f26fc10000);var bC=BDFDB['htmlToElement']('');if(bz['type']&&BDFDB['disCN']['tooltip'+bz['type']['toLowerCase']()])BDFDB['addClass'](bC,BDFDB['disCN']['tooltip'+bz['type']['toLowerCase']()]);if(bz['id'])bC['id']=bz['id']['split']('\x20')['join']('');if(bz['selector'])BDFDB['addClass'](bC,bz['selector']);if(bz['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+bB,bz['css'],bA);if(bz['style'])bC['style']=bz['style'];if(bz['html']===!![])bC['innerHTML']=bx;else bC['innerText']=bx;if(bC['style']['borderColor']&&bC['style']['backgroundColor'])BDFDB['addClass'](bC,'tooltip-customcolor');else if(bz['color']&&BDFDB['disCN']['tooltip'+bz['color']['toLowerCase']()])BDFDB['addClass'](bC,BDFDB['disCN']['tooltip'+bz['color']['toLowerCase']()]);else BDFDB['addClass'](bC,BDFDB['disCN']['tooltipblack']);bA['appendChild'](bC);var bD,bE,bF=BDFDB['getRects'](by),bG=BDFDB['getRects'](bC);if(!bz['position'])bz['position']=bz['type'];switch(bz['position']){case'top':bD=bF['left']+(bF['width']-bG['width'])/0x2;bE=bF['top']-bG['height'];break;case'bottom':bD=bF['left']+(bF['width']-bG['width'])/0x2;bE=bF['top']+bF['height'];break;case'left':bD=bF['left']-bG['width'];bE=bF['top']+(bF['height']-bG['height'])/0x2;break;default:bD=bF['left']+bF['width'];bE=bF['top']+(bF['height']-bG['height'])/0x2;break;}bC['style']['setProperty']('left',bD+'px','important');bC['style']['setProperty']('top',bE+'px','important');var bH=()=>{bC['remove']();};var bI=new MutationObserver(bJ=>{bJ['forEach'](bK=>{var bL=Array['from'](bK['removedNodes']);var bM=bL['indexOf'](bC)>-0x1;var bN=bL['indexOf'](by)>-0x1;var bO=bL['some'](bP=>bP['contains'](by));var bQ=by['contains'](bK['target'])&&bL['some'](bR=>BDFDB['containsClass'](bR,BDFDB['disCN']['channeliconspacing']));if(bM||bN||bO||bQ){bI['disconnect']();bC['remove']();by['removeEventListener']('mouseleave',bH);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+bB,bA);}});});bI['observe'](document['body'],{'subtree':!![],'childList':!![]});by['addEventListener']('mouseleave',bH);if(bz['delay']){BDFDB['toggleEles'](bC);setTimeout(()=>{BDFDB['toggleEles'](bC);},bz['delay']);}return bC;};BDFDB['createNotificationsBar']=function(bS,bT={}){if(!bS)return;var bU=document['querySelector'](BDFDB['dotCN']['layers']);if(!bU)return;var bV=Math['round'](Math['random']()*0x2386f26fc10000);var bW=BDFDB['htmlToElement']('');bU['parentElement']['insertBefore'](bW,bU);bW['style']['setProperty']('height','36px','important');var bX=bW['querySelector']('.notice-message');if(bT['icon']){var bY={'android':{'name':BDFDB['disCNS']['noticeiconandroid']+BDFDB['disCN']['noticeicon'],'size':'small'},'apple':{'name':BDFDB['disCNS']['noticeiconapple']+BDFDB['disCN']['noticeicon'],'size':'small'},'windows':{'name':BDFDB['disCNS']['noticeiconwindows']+BDFDB['disCN']['noticeicon'],'size':'small'},'androidBig':{'name':BDFDB['disCNS']['noticeiconandroid']+BDFDB['disCN']['noticeplatformicon'],'size':'big'},'appleBig':{'name':BDFDB['disCNS']['noticeiconapple']+BDFDB['disCN']['noticeplatformicon'],'size':'big'},'windowsBig':{'name':BDFDB['disCNS']['noticeiconwindows']+BDFDB['disCN']['noticeplatformicon'],'size':'big'}};for(let bZ of bT['icon']['split']('\x20'))if(bY[bZ])bW['insertBefore'](BDFDB['htmlToElement'](''),bY[bZ]['size']=='small'?null:bX);}if(bT['btn'])bW['appendChild'](BDFDB['htmlToElement'](''));if(bT['id'])bW['id']=bT['id']['split']('\x20')['join']('');if(bT['selector'])BDFDB['addClass'](bW,bT['selector']);if(bT['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+bV,bT['css']);if(bT['style'])bW['style']=bT['style'];if(bT['html']===!![])bX['innerHTML']=bS;else{var c0=document['createElement']('a');var c1=[];for(let c2 of bS['split']('\x20')){var c3=BDFDB['encodeToHTML'](c2);c0['href']=c2;c1['push'](c0['host']&&c0['host']!==window['location']['host']?'':c3);}bX['innerHTML']=c1['join']('\x20');}var c4=null;if(bT['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(c4=BDFDB['disCN']['notice'+bT['type']])BDFDB['addClass'](bW,c4);if(bT['type']=='premium'){var c5=bW['querySelector'](BDFDB['dotCN']['noticebutton']);if(c5)BDFDB['addClass'](c5,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](bX,BDFDB['disCN']['noticepremiumtext']);bW['insertBefore'](BDFDB['htmlToElement'](''),bX);}}if(!c4){var c6=BDFDB['colorCONVERT'](bT['color'],'RGBCOMP');if(c6){var c7=c6[0x0]>0xb4&&c6[0x1]>0xb4&&c6[0x2]>0xb4?'#000':'#FFF';var c8=BDFDB['colorCONVERT'](c6,'HEX');var c9=c6[0x0]>0xb4&&c6[0x1]>0xb4&&c6[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+bV,'.DevilBro-notice.notice-'+bV+'{background-color:\x20'+c8+'\x20!important;}.DevilBro-notice.notice-'+bV+'\x20.notice-message\x20{color:\x20'+c7+'\x20!important;}.DevilBro-notice.notice-'+bV+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:\x20'+c7+'\x20!important;border-color:\x20'+BDFDB['colorSETALPHA'](c7,0.25,'RGBA')+'\x20!important;}.DevilBro-notice.notice-'+bV+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:\x20'+c8+'\x20!important;background-color:\x20'+c7+'\x20!important;}.DevilBro-notice.notice-'+bV+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:\x20'+c9+'\x20!important;}');}else BDFDB['addClass'](bW,BDFDB['disCN']['noticedefault']);}bW['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{bW['style']['setProperty']('overflow','hidden','important');bW['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+bV);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+bV);bW['remove']();},0x1f4);});return bW;};BDFDB['getDiscordFolder']=function(){var ca=BDFDB['getDiscordBuilt']();ca='discord'+(ca=='stable'?'':ca);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),ca,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=function(){var cb=require('process');var cc=require('path');if(cb['env']['injDir'])return cc['resolve'](cb['env']['injDir'],'plugins/');switch(cb['platform']){case'win32':return cc['resolve'](cb['env']['appdata'],'BetterDiscord/plugins/');case'darwin':return cc['resolve'](cb['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(cb['env']['XDG_CONFIG_HOME'])return cc['resolve'](cb['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return cc['resolve'](cb['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var cd=require('process');var ce=require('path');if(cd['env']['injDir'])return ce['resolve'](cd['env']['injDir'],'plugins/');switch(cd['platform']){case'win32':return ce['resolve'](cd['env']['appdata'],'BetterDiscord/themes/');case'darwin':return ce['resolve'](cd['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(cd['env']['XDG_CONFIG_HOME'])return ce['resolve'](cd['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return ce['resolve'](cd['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(cf=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!cf)return;var cg=cf['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!cg)return;var ch=cg['parentElement']['querySelector']('h2');if(ch&&ch['innerText']){let ci=ch['innerText']['toLowerCase']();if(ci==='plugins'||ci==='themes')return ci;}};BDFDB['checkAllUpdates']=function(){for(let cj in window['PluginUpdates']['plugins']){var ck=window['PluginUpdates']['plugins'][cj];BDFDB['checkUpdate'](ck['name'],ck['raw']);}};BDFDB['sortObject']=function(cl,cm,cn){var co={};if(cm===undefined||!cm)for(let cp of Object['keys'](cl)['sort']())co[cp]=cl[cp];else{let cq=[];for(let cp in cl)cq['push'](cl[cp]);cq=BDFDB['sortArrayByKey'](cq,cm,cn);for(let cs of cq)for(let cp in cl)if(BDFDB['equals'](cs,cl[cp])){co[cp]=cs;break;}}return co;};BDFDB['reverseObject']=function(cu,cv){var cw={};for(let cx of cv===undefined||!cv?Object['keys'](cu)['reverse']():Object['keys'](cu)['sort']()['reverse']())cw[cx]=cu[cx];return cw;};BDFDB['filterObject']=function(cy,cz){return Object['keys'](cy)['filter'](cA=>cz(cy[cA]))['reduce']((cB,cC)=>(cB[cC]=cy[cC],cB),{});};BDFDB['isObject']=function(cD){return cD&&Object['prototype']['isPrototypeOf'](cD)&&!Array['prototype']['isPrototypeOf'](cD);};BDFDB['isObjectEmpty']=function(cE){return typeof cE!=='object'||Object['getOwnPropertyNames'](cE)['length']==0x0;};BDFDB['pushToObject']=function(cF,cG){if(BDFDB['isObject'](cF))cF[Object['keys'](cF)['length']]=cG;};BDFDB['deepAssign']=function(cH,...cI){if(!cI['length'])return cH;var cJ=cI['shift']();if(BDFDB['isObject'](cH)&&BDFDB['isObject'](cJ)){for(var cK in cJ){if(BDFDB['isObject'](cJ[cK])){if(!cH[cK])Object['assign'](cH,{[cK]:{}});BDFDB['deepAssign'](cH[cK],cJ[cK]);}else Object['assign'](cH,{[cK]:cJ[cK]});}}return BDFDB['deepAssign'](cH,...cI);};BDFDB['sortArrayByKey']=function(cL,cM,cN){if(cN===undefined)cN=null;return cL['sort'](function(cO,cP){var cQ=cO[cM],cR=cP[cM];if(cQ!==cN)return cQcR?0x1:0x0;});};BDFDB['removeFromArray']=function(cS,cT,cU=![]){if(!cS||!cT||!Array['isArray'](cS)||!cS['includes'](cT))return cS;if(!cU)cS['splice'](cS['indexOf'](cT),0x1);else while(cS['indexOf'](cT)>-0x1)cS['splice'](cS['indexOf'](cT),0x1);return cS;};BDFDB['getAllIndexes']=function(cV,cW){var cX=[],cY=-0x1;while((cY=cV['indexOf'](cW,cY+0x1))!==-0x1)cX['push'](cY);return cX;};BDFDB['removeCopiesFromArray']=function(cZ){return[...new Set(cZ)];};BDFDB['highlightText']=function(d0,d1){if(!d1||d1['length']<0x1)return d0;var d2=0x0,d3=d0,d4='',d5='';BDFDB['getAllIndexes'](d0['toUpperCase'](),d1['toUpperCase']())['forEach'](d6=>{var d7=d2*(d4['length']+d5['length']);d6=d6+d7;var d8=d6+d1['length'];var d9=[-0x1]['concat'](BDFDB['getAllIndexes'](d0['substring'](0x0,d6),'<'));var da=[-0x1]['concat'](BDFDB['getAllIndexes'](d0['substring'](0x0,d6),'>'));if(d9[d9['length']-0x1]>da[da['length']-0x1])return;d0=d0['substring'](0x0,d6)+d4+d0['substring'](d6,d8)+d5+d0['substring'](d8);d2++;});return d0?d0:d3;};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 db=setInterval(()=>{var dc=document['querySelector']('html')['lang'];if(dc){clearInterval(db);BDFDB['languages']['$discord']['name']='Discord\x20('+BDFDB['languages'][dc]['name']+')';BDFDB['languages']['$discord']['id']=BDFDB['languages'][dc]['id'];BDFDB['languages']['$discord']['ownlang']=BDFDB['languages'][dc]['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var dd=null;try{dd=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(de){try{dd=require(require('electron')['remote']['app']['getAppPath']()['replace']('app.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(df){var dg=BDFDB['getDiscordVersion']();if(dg){dg=dg['split']('.');if(dg['length']==0x3&&!isNaN(dg=parseInt(dg[0x2])))dd=dg>0x12c?'stable':da>0xc8?'canary':'ptb';else dd='stable';}else dd='stable';}}BDFDB['getDiscordBuilt']['built']=dd;return dd;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var dh=null;try{dh=require('electron')['remote']['app']['getVersion']();}catch(di){di='';}BDFDB['getDiscordBuilt']['version']=dh;return dh;}};BDFDB['getDiscordLanguage']=function(){var dj=document['querySelector']('html')['lang']||'en-US';var dk=dj['split']('-');var dl=dk[0x0];var dm=dk[0x1]||'';dj=dm&&dl['toUpperCase']()!==dm['toUpperCase']()?dl+'-'+dm:dl;return BDFDB['languages'][dj]||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 dn=BDFDB['getRects'](document['body']['firstElementChild']);var dp=Math['round'](0x64*window['outerWidth']/dn['width']);var dq=Math['round'](0x64*window['outerHeight']/dn['height']);return dpds['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(dt,du){if(!dt||!du)return null;let dv=Node['prototype']['isPrototypeOf'](dt)?BDFDB['getReactInstance'](dt):dt;if(!BDFDB['isObject'](dv))return null;let dw=dv;for(let dx of du['split']('.')['filter'](dy=>dy)){dw=dw[dx];if(dw==undefined)return null;}return dw;};BDFDB['getOwnerInstance']=function(dz){if(dz===undefined)return null;if(!dz['node']&&!dz['instance']||!dz['name']&&(!dz['props']||!Array['isArray'](dz['props'])))return null;var dA=dz['instance']||BDFDB['getReactInstance'](dz['node']);if(!dA)return null;dz['name']=dz['name']&&!Array['isArray'](dz['name'])?Array['of'](dz['name']):dz['name'];var dB=-0x1;var dC=dz['depth']===undefined?0xf:dz['depth'];var dD=dz['up']===undefined?![]:dz['up'];var dE=performance['now']();var dF=dz['time']===undefined?0x96:dz['time'];var dG=dD?{'return':!![],'sibling':!![]}:{'child':!![],'sibling':!![]};var dH={};var dI=dL(dA);if(dz['all']){for(let dJ in dH){if(dz['group'])for(let dA in dH[dJ])delete dH[dJ][dA]['BDFDBreactSearch'];else delete dH[dJ]['BDFDBreactSearch'];}return dH;}else return dI;function dL(dA){dB++;if(!dA||Node['prototype']['isPrototypeOf'](dA)||BDFDB['getReactInstance'](dA)||dB>dC||performance['now']()-dE>dF)dO=null;else{var dN=Object['getOwnPropertyNames'](dA);var dO=null;for(let dP=0x0;dO==null&&dPdA['type']['displayName']===dS['split']('\x20')[0x0]||dA['type']['name']===dS['split']('\x20')[0x0])||dz['props']&&dz['props']['every'](dT=>dA['stateNode'][dT]!==undefined))||dz['defaultProps']&&dz['defaultProps']['every'](dU=>dA['stateNode'][dU]!==undefined)){if(dz['all']===undefined||!dz['all'])dO=dA['stateNode'];else if(dz['all']){if(dz['noCopies']===undefined||!dz['noCopies']||dz['noCopies']&&!dA['stateNode']['BDFDBreactSearch']){dA['stateNode']['BDFDBreactSearch']=!![];if(dz['group']){if(dz['name']&&dA['type']&&(dA['type']['displayName']||dA['type']['name'])){var dV='Default';for(let dW of dz['name'])if(dA['type']['displayName']===dW['split']('\x20')[0x0]||dA['type']['name']===dW['split']('\x20')[0x0]){dV=dW;break;}if(typeof dH[dV]=='undefined')dH[dV]={};BDFDB['pushToObject'](dH[dV],dA['stateNode']);}}else BDFDB['pushToObject'](dH,dA['stateNode']);}}}if(dO==null&&(typeof dR==='object'||typeof dR==='function')&&dG[dQ])dO=dL(dR);}}dB--;return dO;}};BDFDB['getKeyInformation']=function(dX){if(dX===undefined)return null;if(!dX['node']&&!dX['instance']||!dX['key'])return null;var dY=dX['instance']||BDFDB['getReactInstance'](dX['node']);if(!dY)return null;var dZ=-0x1;var e0=dX['depth']===undefined?0xf:dX['depth'];var e1=performance['now']();var e2=dX['time']===undefined?0x96:dX['time'];var e3={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':dX['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':dX['up']?![]:!![],'return':dX['up']?!![]:![],'sibling':dX['up']?![]:!![],'firstEffect':!![]};if(typeof dX['whitelist']==='object')Object['assign'](e3,dX['whiteList']);var e4=typeof dX['blackList']==='object'?dX['blackList']:{};var e5=[];var e6=e7(dY);if(dX['all'])return e5;else return e6;function e7(dY){dZ++;if(!dY||Node['prototype']['isPrototypeOf'](dY)||BDFDB['getReactInstance'](dY)||dZ>e0||performance['now']()-e1>e2)ea=null;else{var e9=Object['getOwnPropertyNames'](dY);var ea=null;for(let eb=0x0;ea==null&&ebek['default']=ei},[eh])['default']:window['webpackJsonp']['push']([[],{[eh]:(em,en,ei)=>em['exports']=ei},[[eh]]]);delete ei['m'][eh];delete ei['c'][eh];BDFDB['WebModules']['find']['req']=ei;}for(let ep in BDFDB['WebModules']['find']['req']['c']){if(BDFDB['WebModules']['find']['req']['c']['hasOwnProperty'](ep)){var eq=BDFDB['WebModules']['find']['req']['c'][ep]['exports'];if(eq&&eq['__esModule']&&eq['default']&&eg(eq['default']))return eq['default'];if(eq&&eg(eq))return eq;}}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(er){er=Array['isArray'](er)?er:Array['from'](arguments);var es=JSON['stringify'](er);if(BDFDB['WebModules']['cachedData']['prop'][es])return BDFDB['WebModules']['cachedData']['prop'][es];else{var et=BDFDB['WebModules']['find'](et=>er['every'](ev=>et[ev]!==undefined));if(et){BDFDB['WebModules']['cachedData']['prop'][es]=et;return et;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',es+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(ew){var ex=JSON['stringify'](ew);if(BDFDB['WebModules']['cachedData']['name'][ex])return BDFDB['WebModules']['cachedData']['name'][ex];else{var ey=BDFDB['WebModules']['find'](ey=>ey['displayName']===ew);if(ey){BDFDB['WebModules']['cachedData']['name'][ex]=ey;return ey;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',ex+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(eA){eA=Array['isArray'](eA)?eA:Array['from'](arguments);var eB=JSON['stringify'](eA);if(BDFDB['WebModules']['cachedData']['proto'][eB])return BDFDB['WebModules']['cachedData']['proto'][eB];else{var eC=BDFDB['WebModules']['find'](eC=>eC['prototype']&&eA['every'](eE=>eC['prototype'][eE]!==undefined));if(eC){BDFDB['WebModules']['cachedData']['proto'][eB]=eC;return eC;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',eB+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['patchtypes']=['before','instead','after'];BDFDB['WebModules']['patchmap']={'BannedCard':'BannedUser','EmojiPicker':'FluxContainer(EmojiPicker)','InviteCard':'InviteRow','Guild':'DropTarget(DragSource(FluxContainer(Guild)))','PopoutContainer':'Popout','MemberCard':'Member','TypingUsers':'FluxContainer(TypingUsers)','WebhookCard':'Webhook'};BDFDB['WebModules']['notfindablemodules']={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','Message':'message','MessageOptionPopout':'optionpopout','MessageUsername':'messageusername','UserPopout':'userpopout','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(eF,eG,eH,eI){if(!eF||!eG||!eH||!Object['keys'](eI)['some'](eJ=>BDFDB['WebModules']['patchtypes']['includes'](eJ)))return null;const eK=(typeof eH==='string'?eH:eH['name'])['toLowerCase']();const eL=(eM,eN)=>(...eO)=>{try{return eM(...eO);}catch(eP){console['error']('Error\x20occurred\x20in\x20'+eN,eP);}};if(!eF['BDFDBpatch'])eF['BDFDBpatch']={};eG=Array['isArray'](eG)?eG:Array['of'](eG);for(let eQ of eG){if(!eF[eQ])eF[eQ]=()=>{};const eR=eF[eQ];if(!eF['BDFDBpatch'][eQ]){eF['BDFDBpatch'][eQ]={};for(let eS of BDFDB['WebModules']['patchtypes'])eF['BDFDBpatch'][eQ][eS]={};eF['BDFDBpatch'][eQ]['originalMethod']=eR;eF[eQ]=function(){const eT={'thisObject':this,'methodArguments':arguments,'originalMethod':eR,'originalMethodName':eQ,'callOriginalMethod':()=>eT['returnValue']=eT['originalMethod']['apply'](eT['thisObject'],eT['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']){if(!BDFDB['isObjectEmpty'](eF['BDFDBpatch'][eQ]['before']))for(let eU in BDFDB['sortObject'](eF['BDFDBpatch'][eQ]['before'])){eL(eF['BDFDBpatch'][eQ]['before'][eU],'`before`\x20callback\x20of\x20'+eF[eQ]['displayName'])(eT);}if(BDFDB['isObjectEmpty'](eF['BDFDBpatch'][eQ]['instead']))eT['callOriginalMethod']();else for(let eV in BDFDB['sortObject'](eF['BDFDBpatch'][eQ]['instead'])){const eW=eL(eF['BDFDBpatch'][eQ]['instead'][eV],'`instead`\x20callback\x20of\x20'+eF[eQ]['displayName'])(eT);if(eW!==undefined)eT['returnValue']=eW;}if(!BDFDB['isObjectEmpty'](eF['BDFDBpatch'][eQ]['after']))for(let eX in BDFDB['sortObject'](eF['BDFDBpatch'][eQ]['after'])){eL(eF['BDFDBpatch'][eQ]['after'][eX],'`after`\x20callback\x20of\x20'+eF[eQ]['displayName'])(eT);}}else eT['callOriginalMethod']();return eT['returnValue'];};}for(let eY of BDFDB['WebModules']['patchtypes'])if(typeof eI[eY]=='function')eF['BDFDBpatch'][eQ][eY][eK]=eI[eY];}const eZ=()=>{BDFDB['WebModules']['unpatch'](eF,eG,eH);};if(eH&&typeof eH=='object'){if(!Array['isArray'](eH['patchCancels']))eH['patchCancels']=[];eH['patchCancels']['push'](eZ);}return eZ;};BDFDB['WebModules']['unpatch']=function(f0,f1,f2){if(!f0||!f0['BDFDBpatch'])return;const f3=!f2?null:(typeof f2==='string'?f2:f2['name'])['toLowerCase']();f1=Array['isArray'](f1)?f1:Array['of'](f1);for(let f4 of f1){if(f0[f4]&&f0['BDFDBpatch'][f4]){for(let f5 of BDFDB['WebModules']['patchtypes']){if(f3)delete f0['BDFDBpatch'][f4][f5][f3];else delete f0['BDFDBpatch'][f4][f5];}var f6=!![];for(let f5 of BDFDB['WebModules']['patchtypes'])if(!BDFDB['isObjectEmpty'](f0['BDFDBpatch'][f4][f5]))f6=![];if(f6){f0[f4]=f0['BDFDBpatch'][f4]['originalMethod'];delete f0['BDFDBpatch'][f4];if(BDFDB['isObjectEmpty'](f0['BDFDBpatch']))delete f0['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(f8){if(BDFDB['isObject'](f8)&&Array['isArray'](f8['patchCancels']))for(let f9 of f8['patchCancels'])f9();};BDFDB['WebModules']['forceAllUpdates']=function(fa,fb){fb=fb&&BDFDB['WebModules']['patchmap'][fb]?BDFDB['WebModules']['patchmap'][fb]+'\x20'+fb:fb;if(BDFDB['isObject'](fa)&&BDFDB['isObject'](fa['patchModules'])&&(!fb||fa['patchModules'][fb])){const fc=document['querySelector'](BDFDB['dotCN']['app']);const fd=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fc){var fe=[];for(let ff in fa['patchModules']){var fg=Array['isArray'](fa['patchModules'][ff])?fa['patchModules'][ff]:Array['of'](fa['patchModules'][ff]);if(fg['includes']('componentDidUpdate')||fg['includes']('componentDidMount')||fg['includes']('render'))fe['push'](ff);}fe=fb?fe['filter'](fh=>fh==fb):fe;if(fe['length']>0x0){const fi=BDFDB['getOwnerInstance']({'node':fc,'name':fe,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let ff in fi)for(let fk in fi[ff])BDFDB['WebModules']['initiateProcess'](fa,fi[ff][fk],ff,['componentDidUpdate','componentDidMount','render']);if(fd){const fl=BDFDB['getOwnerInstance']({'node':fd,'name':fe,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let ff in fl)for(let fk in fl[ff])BDFDB['WebModules']['initiateProcess'](fa,fl[ff][fk],ff,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(fo){if(BDFDB['isObject'](fo)&&BDFDB['isObject'](fo['patchModules'])){for(let fp in fo['patchModules']){var fq=BDFDB['WebModules']['patchmap'][fp];if(fq){fo['patchModules'][fq+'\x20'+fp]=fo['patchModules'][fp];delete fo['patchModules'][fp];if(!BDFDB['WebModules']['notfindablemodules'][fp])ft(BDFDB['WebModules']['findByName'](fq),fq+'\x20'+fp);}else if(!BDFDB['WebModules']['notfindablemodules'][fp])ft(BDFDB['WebModules']['findByName'](fp),fp);}for(let fp in BDFDB['WebModules']['notfindablemodules']){var fs=BDFDB['WebModules']['patchmap'][fp]?BDFDB['WebModules']['patchmap'][fp]+'\x20'+fp:fp;if(BDFDB['DiscordClasses'][BDFDB['WebModules']['notfindablemodules'][fp]]&&fo['patchModules'][fs])fA(BDFDB['WebModules']['notfindablemodules'][fp],fs);}function ft(fu,fp){if(fu){var fs=fp['split']('\x20')[0x0];fu=fu['displayName']==fs?fu:BDFDB['getOwnerInstance']({'instance':fu,'name':fs,'up':!![]});if(fu){var fx=fu['_reactInternalFiber']&&fu['_reactInternalFiber']['type']?fu['_reactInternalFiber']['type']:fu;var fy={};fy[fo['name']=='$BDFDB'?'before':'after']=fz=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](fo,fz['thisObject'],fp,[fz['originalMethodName']]);};BDFDB['WebModules']['patch'](fx['prototype'],fo['patchModules'][fp],fo,fy);}}}function fA(fB,fp){var fD=BDFDB['getReactInstance'](document['querySelector'](BDFDB['dotCN'][fB]));if(fK(fD,fp))ft(fD,fp);else{var fE=![],fF=new MutationObserver(fG=>{fG['forEach'](fH=>{fH['addedNodes']['forEach'](fI=>{var fJ=null;if(!fE&&fI['tagName']&&(fJ=BDFDB['containsClass'](fI,BDFDB['disCN'][fB])?fI:fI['querySelector'](BDFDB['dotCN'][fB]))!=null){fD=BDFDB['getReactInstance'](fJ);if(fK(fD,fp)){fE=!![];fF['disconnect']();ft(fD,fp);BDFDB['WebModules']['forceAllUpdates'](fo,fp);}}});});});BDFDB['addObserver'](fo,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':fF,'multi':!![]},{'childList':!![],'subtree':!![]});}}function fK(fL,fp){return fL&&(fp!='V2C_PluginCard'&&fp!='V2C_ThemeCard'||fp=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||fp=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(fN,fO,fP,fQ){if(fN&&typeof fN=='object'&&fO){fP=(fP['split']('\x20')[0x1]||fP)['replace'](/[^A-z0-9]|_/g,'');fP=fP[0x0]['toUpperCase']()+fP['slice'](0x1);if(typeof fN['process'+fP]=='function'){var fR=BDFDB['React']['findDOMNodeSafe'](fO);if(fR)fN['process'+fP](fO,fR,fQ);else setImmediate(()=>{fR=BDFDB['React']['findDOMNodeSafe'](fO);if(fR)fN['process'+fP](fO,fR,fQ);});}}};var fS=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');var fT=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(fS&&fT){BDFDB['React']=Object['assign']({},fS,fT);BDFDB['React']['findDOMNodeSafe']=function(fU){if(!fU||!fU['updater']||typeof fU['updater']['isMounted']!=='function'||!fU['updater']['isMounted'](fU))return null;return fT['findDOMNode'](fU);};};BDFDB['addOnSwitchListener']=function(fV){if(typeof fV['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](fV);var fW=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(fW){var fX=new MutationObserver(fY=>{fY['forEach'](fZ=>{if(fZ['target']&&BDFDB['containsClass'](fZ['target'],BDFDB['disCN']['nochannel']))fV['onSwitch']();});});var g0=fW['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(g0)fX['observe'](g0,{'attributes':!![]});fV['onSwitchFix']=new MutationObserver(g1=>{g1['forEach'](g2=>{if(g2['addedNodes']){g2['addedNodes']['forEach'](g3=>{if(BDFDB['containsClass'](g3,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))fX['observe'](g3,{'attributes':!![]});});}});});fV['onSwitchFix']['observe'](fW,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(g4){if(typeof g4['onSwitch']==='function'&&BDFDB['isObject'](g4['onSwitchFix'])){g4['onSwitchFix']['disconnect']();delete g4['onSwitchFix'];}};BDFDB['addContextListener']=function(g5){for(let g6 of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof g5['on'+g6+'Context']==='function'||typeof g5['on'+g6+'ContextMenu']==='function'){var g7=BDFDB['WebModules']['findByName'](g6=='GroupDM'?'FluxContainer(GroupDMContextMenu)':g6+'ContextMenu');if(g7&&g7['prototype'])BDFDB['WebModules']['patch'](g7['prototype'],'componentDidMount',g5,{'after':g8=>{var g9=g6=='GroupDM'?g8['thisObject']['_reactInternalFiber']['child']['child']['stateNode']:BDFDB['React']['findDOMNodeSafe'](g8['thisObject']);if(g9){if(typeof g5['on'+g6+'Context']==='function')g5['on'+g6+'Context'](g8['thisObject'],g9);if(typeof g5['on'+g6+'ContextMenu']==='function')g5['on'+g6+'ContextMenu'](g8['thisObject'],g9);BDFDB['initElements'](g9,g5);BDFDB['updateContextPosition'](g9);}}});}}};BDFDB['addSettingsButtonListener']=function(ga){if(BDFDB['isBDv2']()&&typeof ga['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](ga);BDFDB['appendSettingsButton'](ga);var gb=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(gb){ga['settingsButtonObserver']=new MutationObserver(gc=>{gc['forEach'](gd=>{if(gd['addedNodes']){gd['addedNodes']['forEach'](ge=>{if(ge['tagName']&&BDFDB['containsClass'](ge,'active'))BDFDB['appendSettingsButton'](ga);});}});});ga['settingsButtonObserver']['observe'](gb,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(gf){var gg=document['querySelector'](BDFDB['dotCN']['_bdv2Card']+'[data-plugin-id='+gf['id']+']');if(gg){var gh=BDFDB['htmlToElement']('');gg['insertBefore'](gh,gg['querySelector'](BDFDB['d']['_bdv2Button']));gh['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',gh,{'type':'top'});BDFDB['addClass'](gh,BDFDB['disCN']['_bdv2TooltipOpen']);});gh['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](gh,BDFDB['disCN']['_bdv2TooltipOpen']);});gh['addEventListener']('click',()=>{var gi=BDFDB['htmlToElement'](''+gf['name']+'\x20Settings
');var gj=gf['getSettingsPanel']();gi['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof gj=='string'?BDFDB['htmlToElement'](gj):gj);if(typeof gf['onSettingsClosed']==='function')BDFDB['addChildEventListener'](gi,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{gf['onSettingsClosed']();});BDFDB['appendModal'](gi);});}};BDFDB['removeSettingsButtonListener']=function(gk){if(BDFDB['isBDv2']()&&typeof gk['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+gk['id']+']\x20.DevilBro-settingsbutton');gk['settingsButtonObserver']['disconnect']();delete gk['settingsButtonObserver'];}};var gl=BDFDB['WebModules']['findByProperties']('Messages')['Messages'];BDFDB['LanguageStrings']=new Proxy(gl,{'get':function(gm,gn){if(!gm[gn])console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',gn+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var go=typeof gm[gn]=='object'?gm[gn]['format'](Object['assign']({},BDFDB['LanguageStringsVars'])):gm[gn];if(typeof go=='string')return go;else if(Array['isArray'](go)){var gp='';for(let gq of go){if(typeof gq=='string')gp+=BDFDB['encodeToHTML'](gq);else if(BDFDB['isObject'](gq)&&gq['props'])gp+='<'+gq['type']+'>'+BDFDB['encodeToHTML'](gq['props']['children'][0x0]['toString']())+''+gq['type']+'>';}return gp;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',gn+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}}});BDFDB['LanguageStringsVars']={};for(let gr in BDFDB['WebModules']['findByProperties']('Messages')['Messages']){try{BDFDB['LanguageStrings'][gr];}catch(gs){let gt=gs['toString']()['split']('for:\x20')[0x1];if(gt&&typeof gt=='string')BDFDB['LanguageStringsVars'][gt]='{{'+gt['toLowerCase']()+'}}';}};BDFDB['equals']=function(gu,gv,gw){var gx=-0x1;if(gw===undefined||typeof gw!=='boolean')gw=![];return gy(gu,gv);function gy(gz,gA){gx++;var gB=!![];if(gx>0x3e8)gB=null;else{if(typeof gz!==typeof gA)gB=![];else if(typeof gz==='undefined')gB=!![];else if(typeof gz==='symbol')gB=!![];else if(typeof gz==='boolean')gB=gz==gA;else if(typeof gz==='string')gB=gz==gA;else if(typeof gz==='number'){if(isNaN(gz)||isNaN(gA))gB=isNaN(gz)==isNaN(gA);else gB=gz==gA;}else if(!gz&&!gA)gB=!![];else if(!gz||!gA)gB=![];else if(typeof gz==='function'||typeof gz==='object'){var gC=Object['getOwnPropertyNames'](gz);var gD=Object['getOwnPropertyNames'](gA);if(gC['length']!==gD['length'])gB=![];else for(let gE=0x0;gB===!![]&&gEgU['length']?gX:gU['length'];};BDFDB['readServerList']=function(){var gY=[],gZ=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'Guild','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let h0 in gZ)if(gZ[h0]['props']&&gZ[h0]['props']['guild']&&gZ[h0]['_reactInternalFiber']['child'])gY['push'](Object['assign'](new gZ[h0]['props']['guild']['constructor'](gZ[h0]['props']['guild']),{'div':gZ[h0]['_reactInternalFiber']['child']['stateNode'],'instance':gZ[h0]}));return gY;};BDFDB['readUnreadServerList']=function(h1){var h2=[];for(let h3 of h1===undefined||!Array['isArray'](h1)?BDFDB['readServerList']():h1){let h4=Node['prototype']['isPrototypeOf'](h3)?h3:h3&&h3['div']?h3['div']:null;if(Node['prototype']['isPrototypeOf'](h4)&&(BDFDB['containsClass'](h4,BDFDB['disCN']['guildunread'])||h4['querySelector'](BDFDB['dotCN']['badge'])))h2['push'](h3);}return h2;};BDFDB['getSelectedServer']=function(){var h5=BDFDB['WebModules']['findByProperties']('getGuilds')['getGuild'](BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId')['getGuildId']());if(h5)return BDFDB['getServerData'](h5['id'])||Object['assign'](new h5['constructor'](h5),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(h6){if(!Node['prototype']['isPrototypeOf'](h6)||!BDFDB['getReactInstance'](h6))return;let h7=BDFDB['getParentEle'](BDFDB['dotCN']['guild'],h6);if(!h7)return;var h8=h7['querySelector']('a');var h9=h8&&h8['href']?h8['href']['split']('/'):null;return h9&&h9['length']>0x3&&!isNaN(parseInt(h9[0x4]))?h9[0x4]['toString']():null;};BDFDB['getServerDiv']=function(ha){if(!ha)return null;if(Node['prototype']['isPrototypeOf'](ha))return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],ha);else{let hb=typeof ha=='object'?ha['id']:ha;if(hb)return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],document['querySelector'](BDFDB['dotCNS']['guildswrapper']+BDFDB['dotCN']['guild']+'\x20a[href*=\x22/channels/'+hb+'\x22]'));}return null;};BDFDB['getServerData']=function(hc){if(!hc)return null;let hd=Node['prototype']['isPrototypeOf'](hc)?BDFDB['getServerID'](hc):typeof hc=='object'?hc['id']:hc;hd=typeof hd=='number'?hd['toFixed']():hd;for(let he of BDFDB['readServerList']())if(he&&he['id']==hd)return he;return null;};BDFDB['readChannelList']=function(){var hf=[],hg=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hh in hg)if(hg[hh]['props']&&!hg[hh]['props']['ispin']&&hg[hh]['props']['channel']&&hg[hh]['_reactInternalFiber']['return'])hf['push'](Object['assign'](new hg[hh]['props']['channel']['constructor'](hg[hh]['props']['channel']),{'div':Node['prototype']['isPrototypeOf'](hg[hh]['_reactInternalFiber']['return']['stateNode'])?hg[hh]['_reactInternalFiber']['return']['stateNode']:hg[hh]['_reactInternalFiber']['child']['child']['stateNode'],'instance':hg[hh]}));return hf;};BDFDB['getSelectedChannel']=function(){var hi=BDFDB['WebModules']['findByProperties']('getChannels')['getChannel'](BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId')['getChannelId']());if(hi)return BDFDB['getChannelData'](hi['id'])||Object['assign'](new hi['constructor'](hi),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(hj){if(!Node['prototype']['isPrototypeOf'](hj)||!BDFDB['getReactInstance'](hj))return;hj=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],hj);if(!hj)return;var hk=BDFDB['getKeyInformation']({'node':hj,'key':'channel'});return hk?hk['id']['toString']():null;};BDFDB['getChannelDiv']=function(hl){if(!hl)return null;let hm=BDFDB['getChannelData'](hl);return hm?hm['div']:null;};BDFDB['getChannelData']=function(hn){if(!hn)return null;let ho=Node['prototype']['isPrototypeOf'](hn)?BDFDB['getChannelID'](hn):typeof hn=='object'?hn['id']:hn;ho=typeof ho=='number'?ho['toFixed']():ho;for(let hp of BDFDB['readChannelList']())if(hp&&hp['id']==ho)return hp;return null;};BDFDB['readDmList']=function(){var hq=[],hr=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hs in hr)if(hr[hs]['props']&&hr[hs]['props']['channel']&&hr[hs]['_reactInternalFiber']['child'])hq['push'](Object['assign'](new hr[hs]['props']['channel']['constructor'](hr[hs]['props']['channel']),{'div':hr[hs]['_reactInternalFiber']['child']['child']['stateNode'],'instance':hr[hs]}));return hq;};BDFDB['getDmID']=function(ht){if(!Node['prototype']['isPrototypeOf'](ht)||!BDFDB['getReactInstance'](ht))return;if(!BDFDB['getParentEle'](BDFDB['dotCN']['dms'],ht))return;let hu=BDFDB['getParentEle'](BDFDB['dotCN']['guild'],ht);if(!hu)return;var hv=hu['querySelector']('a');var hw=hv&&hv['href']?hv['href']['split']('/'):null;return hw&&hw['length']>0x3&&!isNaN(parseInt(hw[0x4]))?hw[0x4]['toString']():null;};BDFDB['getDmDiv']=function(hx){if(!hx)return null;if(Node['prototype']['isPrototypeOf'](hx))return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],hx);else{let hy=typeof hx=='object'?hx['id']:hx;if(hy)return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],document['querySelector'](BDFDB['dotCNS']['dms']+BDFDB['dotCN']['guild']+'\x20a[href*=\x22/channels/@me/'+hy+'\x22]'));}return null;};BDFDB['getDmData']=function(hz){if(!hz)return null;let hA=Node['prototype']['isPrototypeOf'](hz)?BDFDB['getChannelID'](hz):typeof hz=='object'?hz['id']:hz;hA=typeof hA=='number'?hA['toFixed']():hA;for(let hB of BDFDB['readDmList']())if(hB&&hB['id']==hA)return hB;return null;};BDFDB['clearReadNotifications']=function(hC){if(!hC)return;var hD=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!hD)return;for(let hE of Array['isArray'](hC)?hC:typeof hC=='string'||typeof hC=='number'?Array['of'](hC):Array['from'](hC)){let hF=Node['prototype']['isPrototypeOf'](hE)?BDFDB['getServerID'](hE):hE&&typeof hE=='object'?hE['id']:hE;if(hF)hD['markGuildAsRead'](hF);}};BDFDB['markChannelAsRead']=function(hG){if(!hG)return;var hH=BDFDB['WebModules']['findByProperties']('getOldestUnreadMessageId');var hI=BDFDB['WebModules']['findByProperties']('getAPIBaseURL');var hJ=BDFDB['WebModules']['findByProperties']('Permissions','ActivityTypes','StatusTypes');if(!hH||!hI||!hJ)return;for(let hK of Array['isArray'](hG)?hG:typeof hG=='string'||typeof hG=='number'?Array['of'](hG):Array['from'](hG)){let hL=Node['prototype']['isPrototypeOf'](hK)?BDFDB['getChannelID'](hK)||BDFDB['getDmID'](hK):hK&&typeof hK=='object'?hK['id']:hK;if(hL){let hM=hH['getOldestUnreadMessageId'](hL);if(hM)hI['post']({'body':{},'url':hJ['Endpoints']['MESSAGES_ACK'](hL,hM)});}}};BDFDB['markGuildAsRead']=function(hN){if(!hN)return;var hO=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!hO)return;for(let hP of Array['isArray'](hN)?hN:typeof hN=='string'||typeof hN=='number'?Array['of'](hN):Array['from'](hN)){let hQ=Node['prototype']['isPrototypeOf'](hP)?BDFDB['getServerID'](hP):hP&&typeof hP=='object'?hP['id']:hP;if(hQ)hO['markGuildAsRead'](hQ);}};BDFDB['saveAllData']=function(hR,hS,hT){var hU=require('fs'),hV,hW;if(!BDFDB['isBDv2']()){hW=typeof hS==='string'?hS:hS['name'];hV=require('path')['join'](BDFDB['getPluginsFolder'](),hW+'.config.json');}else{hW=typeof hS==='string'?hS['toLowerCase']():null;var hX=hW?BDFDB['Plugins'][hW]?BDFDB['Plugins'][hW]['contentPath']:null:hS['contentPath'];if(!hX)return;hV=require('path')['join'](hX,'settings.json');}var hY=hU['existsSync'](hV);var hZ=!hY?{}:typeof BDFDB['cachedData'][hW]!=='undefined'?BDFDB['cachedData'][hW]:BDFDB['readConfig'](hV);hZ[hT]=hR;if(BDFDB['isObjectEmpty'](hZ[hT]))delete hZ[hT];if(BDFDB['isObjectEmpty'](hZ)){delete BDFDB['cachedData'][hW];if(hY)hU['unlinkSync'](hV);}else{BDFDB['cachedData'][hW]=hZ;hU['writeFileSync'](hV,JSON['stringify'](hZ,null,'\x09'));}};BDFDB['loadAllData']=function(i0,i1){var i2=require('fs'),i3,i4;if(!BDFDB['isBDv2']()){i4=typeof i0==='string'?i0:i0['name'];i3=require('path')['join'](BDFDB['getPluginsFolder'](),i4+'.config.json');}else{i4=typeof i0==='string'?i0['toLowerCase']():null;var i5=i4?BDFDB['Plugins'][i4]?BDFDB['Plugins'][i4]['contentPath']:null:i0['contentPath'];if(!i5)return{};i3=require('path')['join'](i5,'settings.json');}if(!i2['existsSync'](i3)){delete BDFDB['cachedData'][i4];return{};}var i6=typeof BDFDB['cachedData'][i4]!=='undefined'?BDFDB['cachedData'][i4]:BDFDB['readConfig'](i3);BDFDB['cachedData'][i4]=i6;return i6&&typeof i6[i1]!=='undefined'?i6[i1]:{};};BDFDB['removeAllData']=function(i7,i8){var i9=require('fs'),ia,ib;if(!BDFDB['isBDv2']()){ib=typeof i7==='string'?i7:i7['name'];ia=require('path')['join'](BDFDB['getPluginsFolder'](),ib+'.config.json');}else{ib=typeof i7==='string'?i7['toLowerCase']():null;var ic=ib?BDFDB['Plugins'][ib]?BDFDB['Plugins'][ib]['contentPath']:null:i7['contentPath'];if(!ic)return;ia=require('path')['join'](ic,'settings.json');}var id=i9['existsSync'](ia);var ie=!id?{}:typeof BDFDB['cachedData'][ib]!=='undefined'?BDFDB['cachedData'][ib]:BDFDB['readConfig'](ia);delete ie[i8];if(BDFDB['isObjectEmpty'](ie)){delete BDFDB['cachedData'][ib];if(id)i9['unlinkSync'](ia);}else{BDFDB['cachedData'][ib]=ie;i9['writeFileSync'](ia,JSON['stringify'](ie,null,'\x09'));}};BDFDB['getAllData']=function(ig,ih){if(!BDFDB['isObject'](ig)||!ig['defaults']||!ig['defaults'][ih])return{};var ii=BDFDB['loadAllData'](ig,ih),ij={},ik=![];for(let il in ig['defaults'][ih]){if(ii[il]==null){ij[il]=ig['defaults'][ih][il]['value'];ik=!![];}else ij[il]=ii[il];}if(ik)BDFDB['saveAllData'](ij,ig,ih);return ij;};BDFDB['readConfig']=function(im){try{return JSON['parse'](require('fs')['readFileSync'](im));}catch(io){return{};}};BDFDB['saveData']=function(ip,iq,ir,is){var it=BDFDB['loadAllData'](ir,is);it[ip]=iq;BDFDB['saveAllData'](it,ir,is);};BDFDB['loadData']=function(iu,iv,iw){var ix=BDFDB['loadAllData'](iv,iw);var iy=ix[iu];return iy===undefined?null:iy;};BDFDB['removeData']=function(iz,iA,iB){var iC=BDFDB['loadAllData'](iA,iB);delete iC[iz];BDFDB['saveAllData'](iC,iA,iB);};BDFDB['getData']=function(iD,iE,iF){var iG=BDFDB['getAllData'](iE,iF);var iH=iG[iD];return iH===undefined?null:iH;};BDFDB['appendWebScript']=function(iI,iJ){if(!iJ&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));iJ=iJ||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];iJ=Node['prototype']['isPrototypeOf'](iJ)?iJ:document['head'];BDFDB['removeWebScript'](iI,iJ);iJ['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(iK,iL){iL=iL||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];iL=Node['prototype']['isPrototypeOf'](iL)?iL:document['head'];BDFDB['removeEles'](iL['querySelectorAll']('script[src=\x22'+iK+'\x22]'));};BDFDB['appendWebStyle']=function(iM,iN){if(!iN&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));iN=iN||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];iN=Node['prototype']['isPrototypeOf'](iN)?iN:document['head'];BDFDB['removeWebStyle'](iM,iN);iN['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(iO,iP){iP=iP||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];iP=Node['prototype']['isPrototypeOf'](iP)?iP:document['head'];BDFDB['removeEles'](iP['querySelectorAll']('link[href=\x22'+iO+'\x22]'));};BDFDB['appendLocalStyle']=function(iQ,iR,iS){if(!iS&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));iS=iS||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];iS=Node['prototype']['isPrototypeOf'](iS)?iS:document['head'];BDFDB['removeLocalStyle'](iQ,iS);iS['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(iT,iU){iU=iU||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];iU=Node['prototype']['isPrototypeOf'](iU)?iU:document['head'];BDFDB['removeEles'](iU['querySelectorAll']('style[id=\x22'+iT+'CSS\x22]'));};BDFDB['formatBytes']=function(iV,iW){iV=parseInt(iV);if(isNaN(iV)||iV<0x0)return'0\x20Bytes';if(iV==0x1)return'1\x20Byte';var iX=Math['floor'](Math['log'](iV)/Math['log'](0x400));return parseFloat((iV/Math['pow'](0x400,iX))['toFixed'](iW<0x1?0x0:iW>0x14?0x14:iW||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][iX];};BDFDB['colorCONVERT']=function(iY,iZ,j0){if(!iY)return null;iZ=iZ===undefined||!iZ?iZ='RGBCOMP':iZ['toUpperCase']();j0=j0===undefined||!j0||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](j0['toUpperCase']())?BDFDB['colorTYPE'](iY):j0['toUpperCase']();if(iZ=='RGBCOMP'){switch(j0){case'RGBCOMP':if(iY['length']==0x3)return jA(iY);else if(iY['length']==0x4){var j1=jD(iY['pop']());return jA(iY)['concat'](j1);}case'RGB':return jA(iY['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var j2=iY['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var j1=jD(j2['pop']());return jA(j2)['concat'](j1);case'HSLCOMP':if(iY['length']==0x3)return BDFDB['colorCONVERT']('hsl('+iY['join'](',')+')','RGBCOMP');else if(iY['length']==0x4){var j1=jD(jw['pop']());return BDFDB['colorCONVERT']('hsl('+jw['join'](',')+')','RGBCOMP')['concat'](j1);}case'HSL':var j5=jH(iY['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var j6,j7,j8,j9,ja,jb,jc,jd;var je=j5[0x0]/0x168,jf=parseInt(j5[0x1])/0x64,jg=parseInt(j5[0x2])/0x64;j9=Math['floor'](je*0x6);ja=je*0x6-j9;jb=jg*(0x1-jf);jc=jg*(0x1-ja*jf);jd=jg*(0x1-(0x1-ja)*jf);switch(j9%0x6){case 0x0:j6=jg,j7=jd,j8=jb;break;case 0x1:j6=jc,j7=jg,j8=jb;break;case 0x2:j6=jb,j7=jg,j8=jd;break;case 0x3:j6=jb,j7=jc,j8=jg;break;case 0x4:j6=jd,j7=jb,j8=jg;break;case 0x5:j6=jg,j7=jb,j8=jc;break;}return[Math['round'](j6*0xff),Math['round'](j7*0xff),Math['round'](j8*0xff)];case'HSLA':var j5=iY['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var j1=jD(j5['pop']());return BDFDB['colorCONVERT']('hsl('+j5['join'](',')+')','RGBCOMP')['concat'](j1);case'HEX':var jj=/^#([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'](iY);return[parseInt(jj[0x1]+jj[0x1]||jj[0x4],0x10)['toString'](),parseInt(jj[0x2]+jj[0x2]||jj[0x5],0x10)['toString'](),parseInt(jj[0x3]+jj[0x3]||jj[0x6],0x10)['toString']()];default:return null;}}else{var jk=j0=='RGBCOMP'?iY:BDFDB['colorCONVERT'](iY,'RGBCOMP',j0);if(jk)switch(iZ){case'RGB':return'rgb('+jA(jk['slice'](0x0,0x3))['join'](',')+')';case'RGBA':jk=jk['slice'](0x0,0x4);var j1=jk['length']==0x4?jD(jk['pop']()):0x1;return'rgba('+jA(jk)['concat'](j1)['join'](',')+')';case'HSLCOMP':var j1=jk['length']==0x4?jD(jk['pop']()):null;var j5=jH(BDFDB['colorCONVERT'](jk,'HSL')['replace'](/\s/g,'')['split'](','));return j1?j5['concat'](j1):j5;case'HSL':var j6=jy(jk[0x0]),j7=jy(jk[0x1]),j8=jy(jk[0x2]);var jr=Math['max'](j6,j7,j8),js=Math['min'](j6,j7,j8),jt=jr-js,je,jf=jr===0x0?0x0:jt/jr,jg=jr/0xff;switch(jr){case js:je=0x0;break;case j6:je=j7-j8+jt*(j70xff?0xff:ja<0x0?0x0:ja;};function jA(j2){return j2['map'](ja=>{return jy(ja);});};function jD(j1){j1=j1['toString']();j1=(j1['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(j1['replace'](/[^0-9\.\-]/g,''));return isNaN(j1)||j1>0x1?0x1:j1<0x0?0x0:j1;};function jF(jG){jG=parseFloat(jG['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(jG)||jG>0x64?0x64:jG<0x0?0x0:jG)+'%';};function jH(j2){let je=parseFloat(j2['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));je=isNaN(je)||je>0x168?0x168:je<0x0?0x0:je;return[je]['concat'](j2['map'](jK=>{return jF(jK);}));};};BDFDB['colorSETALPHA']=function(jL,jM,jN){var jO=BDFDB['colorCONVERT'](jL,'RGBCOMP');if(jO){jM=jM['toString']();jM=(jM['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(jM['replace'](/[^0-9\.\-]/g,''));jM=isNaN(jM)||jM>0x1?0x1:jM<0x0?0x0:jM;jO[0x3]=jM;jN=(jN||BDFDB['colorTYPE'](jK))['toUpperCase']();jN=jN=='HSL'||jN=='RGB'?jN+'A':jN;return BDFDB['colorCONVERT'](jO,jN);}return null;};BDFDB['colorCHANGE']=function(jP,jQ,jR){jQ=parseFloat(jQ);if(jP&&typeof jQ=='number'&&!isNaN(jQ)){var jS=BDFDB['colorCONVERT'](jP,'RGBCOMP');if(jS){if(parseInt(jQ)!==jQ){jQ=jQ['toString']();jQ=(jQ['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(jQ['replace'](/[^0-9\.\-]/g,''));jQ=isNaN(jQ)?0x0:jQ;return BDFDB['colorCONVERT']([Math['round'](jS[0x0]*(0x1+jQ)),Math['round'](jS[0x1]*(0x1+jQ)),Math['round'](jS[0x2]*(0x1+jQ))],jR||BDFDB['colorTYPE'](jP));}else return BDFDB['colorCONVERT']([Math['round'](jS[0x0]+jQ),Math['round'](jS[0x1]+jQ),Math['round'](jS[0x2]+jQ)],jR||BDFDB['colorTYPE'](jP));}}return null;};BDFDB['colorINV']=function(jT,jU){if(jT){var jV=BDFDB['colorCONVERT'](jT,'RGBCOMP');if(jV)return BDFDB['colorCONVERT']([0xff-jV[0x0],0xff-jV[0x1],0xff-jV[0x2]],jU||BDFDB['colorTYPE'](jT));}return null;};BDFDB['colorCOMPARE']=function(jW,jX){if(jW&&jX){jW=BDFDB['colorCONVERT'](jW,'RGBCOMP');jX=BDFDB['colorCONVERT'](jX,'RGBCOMP');if(jW&&jX)return BDFDB['equals'](jW,jX);}return null;};BDFDB['colorISBRIGHT']=function(jY,jZ=0xa0){jY=BDFDB['colorCONVERT'](jY,'RGBCOMP');if(!jY)return![];return parseInt(jZ)