diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index a06a46c424..c1f7e57a47 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -1 +1 @@
-if(global['BDFDB']&&typeof BDFDB['removeEventListener']=='function')BDFDB['removeEventListener'](BDFDB);if(global['BDFDB']&&BDFDB['WebModules']&&typeof BDFDB['WebModules']['unpatchall']=='function')BDFDB['WebModules']['unpatchall'](BDFDB);var BDFDB={'myPlugins':BDFDB&&BDFDB['myPlugins']?BDFDB['myPlugins']:{},'BDv2Api':BDFDB&&BDFDB['BDv2Api']?BDFDB['BDv2Api']:undefined,'creationTime':performance['now'](),'cachedData':{},'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'name':'$BDFDB'};(()=>{console['log']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','loading\x20library.');BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};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'){try{c['initConstructor']();}catch(f){console['log']('%c['+c['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20Could\x20not\x20initiate\x20constructor!');}}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(!global['window']['PluginUpdates']||typeof global['window']['PluginUpdates']!=='object')global['window']['PluginUpdates']={'plugins':{}};global['window']['PluginUpdates']['plugins'][e]={'name':c['name'],'raw':e,'version':c['version']};if(typeof global['window']['PluginUpdates']['interval']==='undefined')global['window']['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);c['started']=!![];for(let g in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][g]['started']&&typeof BDFDB['myPlugins'][g]['initialize']=='function')BDFDB['myPlugins'][g]['initialize']();};BDFDB['unloadMessage']=function(h){BDFDB['clearStarttimout'](h);h['name']=h['name']||h['getName']();h['version']=h['version']||h['getVersion']();h['author']=h['author']||h['getAuthor']();h['description']=h['description']||h['getDescription']();delete BDFDB['myPlugins'][h['name']];var i=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+h['version']);console['log']('%c['+h['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',i);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](h['name']+'\x20'+i,{'nopointer':!![],'selector':'plugin-stopped-toast'});var j=typeof h['getRawUrl']=='function'&&typeof h['getRawUrl']()=='string'?h['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+h['name']+'/'+h['name']+'.plugin.js';if(typeof h['css']==='string')BDFDB['removeLocalStyle'](h['name']);BDFDB['WebModules']['unpatchall'](h);BDFDB['removeOnSwitchListener'](h);BDFDB['removeSettingsButtonListener'](h);BDFDB['removeEventListener'](h);BDFDB['removeEles']('.'+h['name']+'-modal,\x20.'+h['name']['toLowerCase']()+'-modal,\x20.'+h['name']+'-settingsmodal,\x20.'+h['name']['toLowerCase']()+'-settingsmodal');if(!BDFDB['isObjectEmpty'](h['observers'])){for(let k in h['observers'])for(let l of h['observers'][k])l['disconnect']();delete h['observers'];}delete global['window']['PluginUpdates']['plugins'][j];if(BDFDB['isObjectEmpty'](global['window']['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete h['started'];};BDFDB['translatePlugin']=function(m){if(typeof m['setLabelsByLanguage']==='function'||typeof m['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])o();else{var n=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(n);o();}},0x64);}function o(){var p=BDFDB['getDiscordLanguage']();if(typeof m['setLabelsByLanguage']==='function')m['labels']=m['setLabelsByLanguage'](p['id']);if(typeof m['changeLanguageStrings']==='function')m['changeLanguageStrings']();var q=BDFDB['getLibraryStrings']()['toast_plugin_translated']['replace']('{{ownlang}}',p['ownlang']);console['log']('%c['+m['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',q);}}};BDFDB['clearStarttimout']=function(r){if(r['startTimeout']){clearTimeout(r['startTimeout']);delete r['startTimeout'];}};BDFDB['initProcess']=function(s){if(!BDFDB['isObject'](s)||BDFDB['isBDv2']())return;var t=0x0,u=setInterval(()=>{var v=BDFDB['WebModules']['findByProperties']('getCurrentUser')['getCurrentUser']();if(v){clearInterval(u);if(['0gDM3cTO0EzMzETM0UTNyUjM','0ITOyMDN0MTOwMDO1YjN0IDM','xYjM3EDM3QDN3EzNwYjNyQTM','=kjM1YzMxQjN1UTM2ETN0gDO','xEzMzADO1UzM3cDN3AjM1kjM','xkjN5cDM5UzNzgTNxATN0ADO','zUDM0EDN1MTMwkDOzEjM3ETN','=gTMzUzNxEDM3MzM5cTN1UjM','ycDOyQDOxQTN2czN0UTMycDN','zczN5EjN2YDOwETN0ETMyEDM','zkDO1UTM0kTO4ITOxQTO2kDO','ygDOwUzMzUTM1cTO2QDOwADM','zMTN0YDN5gDOwMjN2kDNwITM','zADM5gjNzUTNwgzM2QDM4MjM','0ADM2EjM0gDOxkjNxIDO3YDO','zkDNzEDM3kTN3IDMyYTM2MjM','ycTO1ATMyEDO1ITN3QTMwUjN','0YjM5UjM4MTNzcDO3ADO0gjM','zkTO2gDN3UDM3UjM2EjMzYzM','zcjM0YjMzgTMyQDMxUjNxYDM','xkzN2QDN2UDM2cDM5gTMxIDM','0gTO2ITMzYTNwUDMxcTO1kjN','yUTNyATN4EDOxMDOzYTM4UzN','1ITN2EDN1YzN4kjM0UTMzUTO','0UTM3UDM5UDM0cTNzQTN4cjM','xkzNxkjN0QTO5ADNxkzN2MjM','yEDO1AjNxkTO3UzNzUzNwUjN','0QTNyIDOzIzNzQzN2gzMzITO','yUzN0IzM5kTMyIjM4ITOwUjN','0YzM5cTNxgTN1AzNxUTN5gTO','0AzM2MjMzAjMxkTO5MDM4gTM','ykTNxMzNyUDM4czNxEjMzIjM','1UDNyAzM0MTN2YzN0IzMyMzM','1ADO5YTN1kjMzYDNwgTOzQDN','zkTM2AjN3AzM0YjNyEzN0cjM','0YDN3czN4kjM5ADOyMjN4ADM','zIzN4MDM5gDNygjN1MTN2gzM','0ITM3YzM4YTOyYjM3QTM1MDN','yQTO1cTO1gTOycjMyAzNzYDN','yQTM0QDMwcTN2EzN5IzNxYDO','zQTMxATOyADOxMDM3gTMxgzN','xkzN4QDMzEDOxkTOxAzM0gDO','0MDOwEDN2AjNwYjNzETOzcDM','yYTN1gjMwUjM3czNyYzMxADN']['includes'](btoa(v['id']['split']('')['reverse']()['join'](''))['split']('')['reverse']()['join'](''))){var w=require('fs');var x=require('path');w['unlink'](x['join'](BDFDB['getPluginsFolder'](),s['name']+'.plugin.js'),y=>{});w['unlink'](x['join'](BDFDB['getPluginsFolder'](),s['name']+'.config.json'),z=>{});pluginCookie[s['name']]=![];delete bdplugins[s['name']];pluginModule['savePluginData']();setTimeout(()=>{require('electron')['remote']['getCurrentWindow']()['reload']();},0xea60);}}if(t>0x1770)clearInterval(u);t++;},0x64);};BDFDB['checkChangeLog']=function(A){if(!BDFDB['isObject'](A)||!A['changelog'])return;var B=BDFDB['loadAllData'](A,'changelog');if(!B['currentversion']||BDFDB['checkVersions'](A['version'],B['currentversion'])){B['currentversion']=A['version'];var C='';var D={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let E in A['changelog']){E=E['toLowerCase']();var F=BDFDB['disCN']['changelog'+E];if(F){C+='
'+D[E]+'
';for(let G of A['changelog'][E])C+='- '+G[0x0]+''+(G[0x1]?':\x20'+G[0x1]+'.':'')+'
';C+='
';}}if(C)BDFDB['removeEles'](BDFDB['openConfirmModal'](A,C,BDFDB['LanguageStrings']['CHANGE_LOG'])['querySelectorAll']('.btn-cancel'));BDFDB['saveAllData'](B,A,'changelog');}};BDFDB['addObserver']=function(H,I,J,K={'childList':!![]}){if(!BDFDB['isObject'](H)||!I||!J)return;if(BDFDB['isObjectEmpty'](H['observers']))H['observers']={};if(!Array['isArray'](H['observers'][J['name']]))H['observers'][J['name']]=[];if(!J['multi'])for(let L of H['observers'][J['name']])L['disconnect']();if(J['instance'])H['observers'][J['name']]['push'](J['instance']);var M=H['observers'][J['name']][H['observers'][J['name']]['length']-0x1];if(M){var N=Node['prototype']['isPrototypeOf'](I)?I:typeof I==='string'?document['querySelector'](I):null;if(N)M['observe'](N,K);}};BDFDB['addChildEventListener']=function(O,P,Q,R){if(!Node['prototype']['isPrototypeOf'](O)||!P||!Q||!Q['trim']()||typeof R!='function')return;for(var S of P['trim']()['split']('\x20'))if(S){var T=R;if(S=='mouseenter'||S=='mouseleave')T=U=>{if(U['target']['matches'](Q))R(U);};O['querySelectorAll'](Q['trim']())['forEach'](V=>{V['addEventListener'](S,T,!![]);});}};BDFDB['addEventListener']=function(W,X,Y,Z,a0){if(!BDFDB['isObject'](W)||!Node['prototype']['isPrototypeOf'](X)&&X!==global['window']||!Y)return;var a1=typeof Z=='function';var a2=a1?undefined:Z;var a3=a1?Z:a0;if(typeof a3!='function')return;BDFDB['removeEventListener'](W,X,Y,a2);for(var a4 of Y['split']('\x20')){a4=a4['split']('.');var a5=a4['shift']()['toLowerCase']();if(!a5)return;var a6=a5;a5=a5=='mouseenter'||a5=='mouseleave'?'mouseover':a5;var a7=(a4['join']('.')||'')+W['name'];if(!Array['isArray'](W['listeners']))W['listeners']=[];var a8=null;if(a2){if(a6=='mouseenter'||a6=='mouseleave'){a8=a9=>{for(let aa of a9['path'])if(typeof aa['matches']=='function'&&aa['matches'](a2)&&!aa[a7+'BDFDB'+a6]){aa[a7+'BDFDB'+a6]=!![];if(a6=='mouseenter')a3(BDFDB['copyEvent'](a9,aa));let ab=ac=>{if(ac['target']['contains'](aa)||ac['target']==aa||!aa['contains'](ac['target'])){if(a6=='mouseleave')a3(BDFDB['copyEvent'](a9,aa));delete aa[a7+'BDFDB'+a6];document['removeEventListener']('mouseout',ab);}};document['addEventListener']('mouseout',ab);break;}};}else{a8=ad=>{for(let ae of ad['path'])if(typeof ae['matches']=='function'&&ae['matches'](a2)){a3(BDFDB['copyEvent'](ad,ae));break;}};}}else a8=af=>{a3(BDFDB['copyEvent'](af,X));};W['listeners']['push']({'ele':X,'eventname':a5,'origeventname':a6,'namespace':a7,'selector':a2,'eventcallback':a8});X['addEventListener'](a5,a8,!![]);}};BDFDB['copyEvent']=function(ag,ah){if(!ag||!ag['constructor']||!ag['type'])return ag;var ai=new ag['constructor'](ag['type'],ag);Object['defineProperty'](ai,'originalEvent',{'value':ag});Object['defineProperty'](ai,'which',{'value':ag['which']});Object['defineProperty'](ai,'keyCode',{'value':ag['keyCode']});Object['defineProperty'](ai,'path',{'value':ag['path']});Object['defineProperty'](ai,'relatedTarget',{'value':ag['relatedTarget']});Object['defineProperty'](ai,'srcElement',{'value':ag['srcElement']});Object['defineProperty'](ai,'target',{'value':ag['target']});Object['defineProperty'](ai,'toElement',{'value':ag['toElement']});if(ah)Object['defineProperty'](ai,'currentTarget',{'value':ah});return ai;};BDFDB['stopEvent']=function(aj){if(BDFDB['isObject'](aj)){if(typeof aj['preventDefault']=='function')aj['preventDefault']();if(typeof aj['stopPropagation']=='function')aj['stopPropagation']();if(typeof aj['stopImmediatePropagation']=='function')aj['stopImmediatePropagation']();if(BDFDB['isObject'](aj['originalEvent'])){if(typeof aj['originalEvent']['preventDefault']=='function')aj['originalEvent']['preventDefault']();if(typeof aj['originalEvent']['stopPropagation']=='function')aj['originalEvent']['stopPropagation']();if(typeof aj['originalEvent']['stopImmediatePropagation']=='function')aj['originalEvent']['stopImmediatePropagation']();}}};BDFDB['removeEventListener']=function(ak,al,am='',an){if(!BDFDB['isObject'](ak)||!Array['isArray'](ak['listeners']))return;if(Node['prototype']['isPrototypeOf'](al)||al===global['window']){for(var ao of am['split']('\x20')){ao=ao['split']('.');var ap=ao['shift']()['toLowerCase']();var aq=(ao['join']('.')||'')+ak['name'];for(let ar of ak['listeners']){let as=[];if(ar['ele']==al&&(!ap||ar['origeventname']==ap)&&ar['namespace']==aq&&(an===undefined||ar['selector']==an)){al['removeEventListener'](ar['eventname'],ar['eventcallback'],!![]);as['push'](ar);}if(as['length'])ak['listeners']=ak['listeners']['filter'](ar=>{return as['indexOf'](ar)<0x0;});}}}else if(!al){for(let au of ak['listeners'])au['ele']['removeEventListener'](au['eventname'],au['eventcallback'],!![]);ak['listeners']=[];}};BDFDB['checkUpdate']=function(av,aw){if(BDFDB['isBDv2']())return;require('request')(aw,(ax,ay,az)=>{if(ax)return;var aA=az['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!aA)return;if(BDFDB['checkVersionDifference'](aA[0x0],global['window']['PluginUpdates']['plugins'][aw]['version'])>0.2){BDFDB['showToast'](av+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['downloadPlugin'](av,aw);}else if(BDFDB['checkVersions'](aA[0x0],global['window']['PluginUpdates']['plugins'][aw]['version']))BDFDB['showUpdateNotice'](av,aw);else BDFDB['removeUpdateNotice'](av);});};BDFDB['checkVersions']=function(aB,aC){if(!aB||!aC)return!![];aB=aB['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aD=>parseInt(aD))['filter'](aE=>(aE||aE==0x0)&&!isNaN(aE));aC=aC['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aF=>parseInt(aF))['filter'](aG=>(aG||aG==0x0)&&!isNaN(aG));var aH=Math['max'](aB['length'],aC['length']);if(!aH)return!![];if(aB['length']>aC['length']){var aI=new Array(aB['length']-aC['length']);for(let aJ=0x0;aJaC[aO])return!![];}return![];};BDFDB['checkVersionDifference']=function(aP,aQ){if(!aP||!aQ)return![];aP=aP['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aR=>parseInt(aR))['filter'](aS=>(aS||aS==0x0)&&!isNaN(aS));aQ=aQ['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aT=>parseInt(aT))['filter'](aU=>(aU||aU==0x0)&&!isNaN(aU));var aV=Math['max'](aP['length'],aQ['length']);if(!aV)return![];if(aP['length']>aQ['length']){var aW=new Array(aP['length']-aQ['length']);for(let aX=0x0;aX',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':'','customicon':''});b6['style']['setProperty']('display','block','important');b6['style']['setProperty']('visibility','visible','important');b6['style']['setProperty']('opacity','1','important');var b7=b6['querySelector'](BDFDB['dotCN']['noticebutton']);if(b7){BDFDB['toggleEles'](b7,!![]);b7['addEventListener']('click',()=>{global['window']['location']['reload'](![]);});b7['addEventListener']('mouseenter',()=>{if(global['window']['PluginUpdates']['downloaded'])BDFDB['createTooltip'](global['window']['PluginUpdates']['downloaded']['join'](',\x20'),b7,{'type':'bottom','selector':'update-notice-tooltip'});});}}if(b6){var b8=b6['querySelector']('#outdatedPlugins');if(b8&&!b8['querySelector']('#'+b4+'-notice')){if(b8['querySelector']('span'))b8['appendChild'](BDFDB['htmlToElement'](',\x20'));var b9=BDFDB['htmlToElement'](''+b4+'');b9['addEventListener']('click',()=>{BDFDB['downloadPlugin'](b4,b5);});b8['appendChild'](b9);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['createTooltip']('Click\x20us!',b8,{'type':'bottom','selector':'update-clickme-tooltip'});}}};BDFDB['downloadPlugin']=function(ba,bb){require('request')(bb,(bc,bd,be)=>{if(bc)return console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','','Unable\x20to\x20get\x20update\x20for\x20'+ba);BDFDB['creationTime']=0x0;var bf=be['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);bf=bf['toString']()['replace'](/['"]/g,'');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),bdplugins[ba]?bdplugins[ba]['filename']:bb['split']('/')['slice'](-0x1)[0x0]),be);BDFDB['showToast'](ba+'\x20v'+global['window']['PluginUpdates']['plugins'][bb]['version']+'\x20has\x20been\x20replaced\x20by\x20'+ba+'\x20v'+bf+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var bg=document['querySelector']('#pluginNotice');if(bg){if(bg['querySelector'](BDFDB['dotCN']['noticebutton'])){global['window']['PluginUpdates']['plugins'][bb]['version']=bf;if(!global['window']['PluginUpdates']['downloaded'])global['window']['PluginUpdates']['downloaded']=[];if(!global['window']['PluginUpdates']['downloaded']['includes'](ba))global['window']['PluginUpdates']['downloaded']['push'](ba);}BDFDB['removeUpdateNotice'](ba,bg);}});};BDFDB['removeUpdateNotice']=function(bh,bi=document['querySelector']('#pluginNotice')){if(!bi)return;var bj=bi['querySelector']('#outdatedPlugins');if(bj){var bk=bj['querySelector']('#'+bh+'-notice');if(bk){var bl=bk['nextSibling'];var bm=bk['prevSibling'];if(bl&&BDFDB['containsClass'](bl,'separator'))bl['remove']();else if(bm&&BDFDB['containsClass'](bm,'separator'))bm['remove']();bk['remove']();}if(!bj['querySelector']('span')){var bn=bi['querySelector'](BDFDB['dotCN']['noticebutton']);if(bn){bi['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](bn,![]);}else bi['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(bo,bp={}){var bq=document['querySelector']('.toasts,\x20.bd-toasts');if(!bq){var br=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bs=br?BDFDB['getRects'](br):null;var bt=br?br['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bu=bs?bs['left']:0x136;var bv=bs?bt?bs['width']-BDFDB['getRects'](bt)['width']:bs['width']:global['window']['outerWidth']-b7;var bw=br?br['querySelector']('form'):null;var bx=bw?BDFDB['getRects'](bw)['height']:0x50;bq=BDFDB['htmlToElement']('');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](bq);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![]}=bp;var by=BDFDB['htmlToElement'](''+(html===!![]?bo:BDFDB['encodeToHTML'](bo))+'
');if(type){BDFDB['addClass'](by,'toast-'+type);if(icon)BDFDB['addClass'](by,'icon');}BDFDB['addClass'](by,selector);bq['appendChild'](by);by['close']=()=>{if(document['contains'](by)){BDFDB['addClass'](by,'closing');setTimeout(()=>{by['remove']();if(!bq['querySelectorAll']('.toast,\x20.bd-toast')['length'])bq['remove']();},0xbb8);}};if(nopointer)by['style']['setProperty']('pointer-events','none','important');else by['addEventListener']('click',by['close']);setTimeout(()=>{by['close']();},timeout>0x0?timeout:0x927c0);return by;};BDFDB['DesktopNotificationQueue']={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(bz,bA={}){var bB=()=>{BDFDB['DesktopNotificationQueue']['queue']['push']({'parsedcontent':bz,'parsedoptions':bA});bC();};var bC=()=>{if(!BDFDB['DesktopNotificationQueue']['running']){var bD=BDFDB['DesktopNotificationQueue']['queue']['shift']();if(bD)bE(bD['parsedcontent'],bD['parsedoptions']);}};var bE=(bF,bG)=>{BDFDB['DesktopNotificationQueue']['running']=!![];var bH=bG['silent'];bG['silent']=bG['silent']||bG['sound']?!![]:![];var bI=new Notification(bF,bG);var bJ=new Audio();var bK=setTimeout(()=>{bL();},bG['timeout']?bG['timeout']:0xbb8);if(typeof bG['click']=='function')bI['onclick']=()=>{clearTimeout(bK);bL();bG['click']();};if(!bH&&bG['sound']){bJ['src']=bG['sound'];bJ['play']();}var bL=()=>{bJ['pause']();bI['close']();BDFDB['DesktopNotificationQueue']['running']=![];setTimeout(()=>{bC();},0x3e8);};};if(!('Notification'in global['window'])){}else if(Notification['permission']==='granted')bB();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bM){if(bM==='granted')bB();});};BDFDB['createTooltip']=function(bN,bO,bP={}){if(!bN||!bO||!Node['prototype']['isPrototypeOf'](bO)||!document['contains'](bO))return null;var bQ=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bQ)return null;var bR=Math['round'](Math['random']()*0x2386f26fc10000);var bS=BDFDB['htmlToElement']('');var bT=bS['firstElementChild']?bS['firstElementChild']:bS;if(bP['id'])bS['id']=bP['id']['split']('\x20')['join']('');if(bP['selector'])BDFDB['addClass'](bS,bP['selector']);if(bP['type']&&BDFDB['disCN']['tooltip'+bP['type']['toLowerCase']()])BDFDB['addClass'](bT,BDFDB['disCN']['tooltip'+bP['type']['toLowerCase']()]);if(bP['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+bR,bP['css'],bQ);if(bP['style'])bT['style']=bP['style'];if(bP['html']===!![])bT['innerHTML']=bN;else{bT['innerText']=bN;if(bN['split']('\x20')['length']<0x4)bT['style']['setProperty']('white-space','nowrap','important');}bT['appendChild'](BDFDB['htmlToElement'](''));if(bT['style']['borderColor']&&bT['style']['backgroundColor'])BDFDB['addClass'](bT,'tooltip-customcolor');else if(bP['color']&&BDFDB['disCN']['tooltip'+bP['color']['toLowerCase']()])BDFDB['addClass'](bT,BDFDB['disCN']['tooltip'+bP['color']['toLowerCase']()]);else BDFDB['addClass'](bT,BDFDB['disCN']['tooltipblack']);bQ['appendChild'](bS);var bU,bV,bW=BDFDB['getRects'](bO),bX=BDFDB['getRects'](bS);if(!bP['position']||bP['type'])bP['position']=bP['type'];if(!bP['position']||!['top','bottom','left','right']['includes'](bP['position']['toLowerCase']()))bP['position']='right';bP['position']=bP['position']['toLowerCase']();switch(bP['position']){case'top':bU=bW['left']+(bW['width']-bX['width'])/0x2;bV=bW['top']-bX['height'];break;case'bottom':bU=bW['left']+(bW['width']-bX['width'])/0x2;bV=bW['top']+bW['height'];break;case'left':bU=bW['left']-bX['width'];bV=bW['top']+(bW['height']-bX['height'])/0x2;break;case'right':bU=bW['left']+bW['width'];bV=bW['top']+(bW['height']-bX['height'])/0x2;break;}bS['style']['setProperty']('left',bU+'px','important');bS['style']['setProperty']('top',bV+'px','important');var bY=BDFDB['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),bX=BDFDB['getRects'](bS);var c0=bS['querySelector'](BDFDB['dotCN']['tooltippointer']);if(bP['position']=='top'||bP['position']=='bottom'){if(bX['left']<0x0){bS['style']['setProperty']('left','5px','important');c0['style']['setProperty']('margin-left',bX['left']-0xa+'px','important');}else{var c1=bY['width']-(bX['left']+bX['width']);if(c1<0x0){bS['style']['setProperty']('left',bY['width']-bX['width']-0x5+'px','important');c0['style']['setProperty']('margin-left',-0x1*c1+'px','important');}}}else if(bP['position']=='left'||bP['position']=='right'){if(bX['top']<0x0){bS['style']['setProperty']('top','5px','important');c0['style']['setProperty']('margin-top',bX['top']-0xa+'px','important');c0['style']['setProperty']('margin-top',-0x1*c1+'px','important');}else{var c2=bY['height']-(bX['top']+bX['height']);if(c2<0x0){bS['style']['setProperty']('top',bY['height']-bX['height']-0x5+'px','important');c0['style']['setProperty']('margin-top',-0x1*c2+'px','important');;}}}bT['style']['removeProperty']('white-space');var c3=()=>{bS['remove']();};var c4=new MutationObserver(c5=>{c5['forEach'](c6=>{var c7=Array['from'](c6['removedNodes']);var c8=c7['indexOf'](bS)>-0x1;var c9=c7['indexOf'](bO)>-0x1;var ca=c7['some'](cb=>cb['contains'](bO));if(c8||c9||ca){c4['disconnect']();bS['remove']();bO['removeEventListener']('mouseleave',c3);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+bR,bQ);}});});c4['observe'](document['body'],{'subtree':!![],'childList':!![]});bO['addEventListener']('mouseleave',c3);if(bP['delay']){BDFDB['toggleEles'](bS);setTimeout(()=>{BDFDB['toggleEles'](bS);},bP['delay']);}return bS;};BDFDB['createNotificationsBar']=function(cc,cd={}){if(!cc)return;var ce=document['querySelector'](BDFDB['dotCN']['layers']);if(!ce)return;var cf=Math['round'](Math['random']()*0x2386f26fc10000);var cg=BDFDB['htmlToElement']('');ce['parentElement']['insertBefore'](cg,ce);var ch=cg['querySelector']('.notice-message');if(cd['platform'])for(let ci of cd['platform']['split']('\x20'))if(BDFDB['DiscordClasses']['noticeicon'+ci]){let cj=BDFDB['htmlToElement']('');cj['addClass'](BDFDB['disCN']['noticeplatformicon']);cj['removeClass'](BDFDB['disCN']['noticeicon']);cg['insertBefore'](cj,ch);}if(cd['customicon']){let ck=BDFDB['htmlToElement'](cd['customicon']);let cj=BDFDB['htmlToElement']('');if(ck['tagName']=='span'&&!ck['firstElementChild'])cj['style']['setProperty']('background','url('+cd['customicon']+')\x20center/cover\x20no-repeat');else cj['appendChild'](ck);cj['addClass'](BDFDB['disCN']['noticeplatformicon']);cj['removeClass'](BDFDB['disCN']['noticeicon']);cg['insertBefore'](cj,ch);}if(cd['btn'])cg['appendChild'](BDFDB['htmlToElement'](''));if(cd['id'])cg['id']=cd['id']['split']('\x20')['join']('');if(cd['selector'])BDFDB['addClass'](cg,cd['selector']);if(cd['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+cf,cd['css']);if(cd['style'])cg['style']=cd['style'];if(cd['html']===!![])ch['innerHTML']=cc;else{var cm=document['createElement']('a');var cn=[];for(let co of cc['split']('\x20')){var cp=BDFDB['encodeToHTML'](co);cm['href']=co;cn['push'](cm['host']&&cm['host']!==global['window']['location']['host']?'':cp);}ch['innerHTML']=cn['join']('\x20');}var cq=null;if(cd['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(cq=BDFDB['disCN']['notice'+cd['type']])BDFDB['addClass'](cg,cq);if(cd['type']=='premium'){var cr=cg['querySelector'](BDFDB['dotCN']['noticebutton']);if(cr)BDFDB['addClass'](cr,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](ch,BDFDB['disCN']['noticepremiumtext']);cg['insertBefore'](BDFDB['htmlToElement'](''),ch);}}if(!cq){var cs=BDFDB['colorCONVERT'](cd['color'],'RGBCOMP');if(cs){var ct=cs[0x0]>0xb4&&cs[0x1]>0xb4&&cs[0x2]>0xb4?'#000':'#FFF';var cu=BDFDB['colorCONVERT'](cs,'HEX');var cv=cs[0x0]>0xb4&&cs[0x1]>0xb4&&cs[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+cf,'.BDFDB-notice.notice-'+cf+'{background-color:'+cu+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20.notice-message\x20{color:'+ct+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+ct+'\x20!important;border-color:'+BDFDB['colorSETALPHA'](ct,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cu+'\x20!important;background-color:'+ct+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cv+'\x20!important;}');}else BDFDB['addClass'](cg,BDFDB['disCN']['noticedefault']);}cg['style']['setProperty']('height','36px','important');cg['style']['setProperty']('min-width','70vw','important');cg['style']['setProperty']('left','unset','important');cg['style']['setProperty']('right','unset','important');let cw=(BDFDB['getTotalWidth'](document['body']['firstElementChild'])-BDFDB['getTotalWidth'](cg))/0x2;cg['style']['setProperty']('left',cw+'px','important');cg['style']['setProperty']('right',cw+'px','important');cg['style']['setProperty']('min-width','unset','important');cg['style']['setProperty']('width','unset','important');cg['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cw*0x2+'px)','important');cg['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{cg['style']['setProperty']('overflow','hidden','important');cg['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+cf);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+cf);cg['remove']();},0x1f4);});return cg;};BDFDB['getDiscordFolder']=function(){var cx=BDFDB['getDiscordBuilt']();cx='discord'+(cx=='stable'?'':cx);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),cx,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=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/plugins/');case'darwin':return cz['resolve'](cy['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(cy['env']['XDG_CONFIG_HOME'])return cz['resolve'](cy['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return cz['resolve'](cy['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var cA=require('process');var cB=require('path');if(cA['env']['injDir'])return cB['resolve'](cA['env']['injDir'],'plugins/');switch(cA['platform']){case'win32':return cB['resolve'](cA['env']['appdata'],'BetterDiscord/themes/');case'darwin':return cB['resolve'](cA['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(cA['env']['XDG_CONFIG_HOME'])return cB['resolve'](cA['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return cB['resolve'](cA['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(cC=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!cC)return;var cD=cC['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!cD)return;var cE=cD['parentElement']['querySelector']('h2');if(cE&&cE['innerText']){let cF=cE['innerText']['toLowerCase']();if(cF==='plugins'||cF==='themes')return cF;}};BDFDB['checkAllUpdates']=function(){for(let cG in global['window']['PluginUpdates']['plugins']){var cH=global['window']['PluginUpdates']['plugins'][cG];BDFDB['checkUpdate'](cH['name'],cH['raw']);}};BDFDB['getLineOfString']=function(cI,cJ){if(typeof cI!='string'||typeof cI!='string')return-0x1;let cK=cI['indexOf'](cJ);if(cK<0x0)return-0x1;return cI['substring'](0x0,cK)['split']('\x0a')['length'];};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'](d0=>cZ(cY[d0]))['reduce']((d1,d2)=>(d1[d2]=cY[d2],d1),{});};BDFDB['isObject']=function(d3){return d3&&Object['prototype']['isPrototypeOf'](d3)&&!Array['prototype']['isPrototypeOf'](d3);};BDFDB['isObjectEmpty']=function(d4){return typeof d4!=='object'||Object['getOwnPropertyNames'](d4)['length']==0x0;};BDFDB['pushToObject']=function(d5,d6){if(BDFDB['isObject'](d5))d5[Object['keys'](d5)['length']]=d6;};BDFDB['deepAssign']=function(d7,...d8){if(!d8['length'])return d7;var d9=d8['shift']();if(BDFDB['isObject'](d7)&&BDFDB['isObject'](d9)){for(var da in d9){if(BDFDB['isObject'](d9[da])){if(!d7[da])Object['assign'](d7,{[da]:{}});BDFDB['deepAssign'](d7[da],d9[da]);}else Object['assign'](d7,{[da]:d9[da]});}}return BDFDB['deepAssign'](d7,...d8);};BDFDB['sortArrayByKey']=function(db,dc,dd){if(dd===undefined)dd=null;return db['sort'](function(de,df){var dg=de[dc],dh=df[dc];if(dg!==dd)return dgdh?0x1:0x0;});};BDFDB['numSortArray']=function(di,dj,dk){return di['sort'](function(dl,dm){return dldm?0x1:0x0;});};BDFDB['removeFromArray']=function(dn,dp,dq=![]){if(!dn||!dp||!Array['isArray'](dn)||!dn['includes'](dp))return dn;if(!dq)dn['splice'](dn['indexOf'](dp),0x1);else while(dn['indexOf'](dp)>-0x1)dn['splice'](dn['indexOf'](dp),0x1);return dn;};BDFDB['getAllIndexes']=function(dr,ds){var dt=[],du=-0x1;while((du=dr['indexOf'](ds,du+0x1))!==-0x1)dt['push'](du);return dt;};BDFDB['removeCopiesFromArray']=function(dv){return[...new Set(dv)];};BDFDB['highlightText']=function(dw,dx){if(!dx||dx['length']<0x1)return dw;var dy=0x0,dz=dw,dA='',dB='';BDFDB['getAllIndexes'](dw['toUpperCase'](),dx['toUpperCase']())['forEach'](dC=>{var dD=dy*(dA['length']+dB['length']);dC=dC+dD;var dE=dC+dx['length'];var dF=[-0x1]['concat'](BDFDB['getAllIndexes'](dw['substring'](0x0,dC),'<'));var dG=[-0x1]['concat'](BDFDB['getAllIndexes'](dw['substring'](0x0,dC),'>'));if(dF[dF['length']-0x1]>dG[dG['length']-0x1])return;dw=dw['substring'](0x0,dC)+dA+dw['substring'](dC,dE)+dB+dw['substring'](dE);dy++;});return dw?dw:dz;};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 dH=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(dH);var dI=BDFDB['getDiscordLanguage']();BDFDB['languages']['$discord']['name']='Discord\x20('+dI['name']+')';BDFDB['languages']['$discord']['id']=dI['id'];BDFDB['languages']['$discord']['ownlang']=dI['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var dJ=null;try{dJ=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dK){try{dJ=require(require('electron')['remote']['app']['getAppPath']()['replace']('app.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dL){var dM=BDFDB['getDiscordVersion']();if(dM){dM=dM['split']('.');if(dM['length']==0x3&&!isNaN(dM=parseInt(dM[0x2])))dJ=dM>0x12c?'stable':da>0xc8?'canary':'ptb';else dJ='stable';}else dJ='stable';}}BDFDB['getDiscordBuilt']['built']=dJ;return dJ;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var dN=null;try{dN=require('electron')['remote']['app']['getVersion']();}catch(dO){dO='';}BDFDB['getDiscordBuilt']['version']=dN;return dN;}};BDFDB['getDiscordLanguage']=function(){var dP=document['querySelector']('html')['lang']||'en-US';var dQ=dP['split']('-');var dR=dQ[0x0];var dS=dQ[0x1]||'';dP=dS&&dR['toUpperCase']()!==dS['toUpperCase']()?dR+'-'+dS:dR;return BDFDB['languages'][dP]||BDFDB['languages'][dR]||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 dT=BDFDB['getRects'](document['body']['firstElementChild']);var dU=Math['round'](0x64*global['window']['outerWidth']/dT['width']);var dV=Math['round'](0x64*global['window']['outerHeight']/dT['height']);return dUdX['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(dY,dZ){if(!dY||!dZ)return null;let e0=Node['prototype']['isPrototypeOf'](dY)?BDFDB['getReactInstance'](dY):dY;if(!BDFDB['isObject'](e0))return null;let e1=e0;for(let e2 of dZ['split']('.')['filter'](e3=>e3)){e1=e1[e2];if(e1==undefined)return null;}return e1;};BDFDB['getOwnerInstance']=function(e4){if(e4===undefined)return null;if(!e4['node']&&!e4['instance']||!e4['name']&&(!e4['props']||!Array['isArray'](e4['props'])))return null;var e5=e4['instance']||BDFDB['getReactInstance'](e4['node']);if(!e5)return null;e4['name']=e4['name']&&!Array['isArray'](e4['name'])?Array['of'](e4['name']):e4['name'];var e6=-0x1;var e7=e4['depth']===undefined?0xf:e4['depth'];var e8=e4['up']===undefined?![]:e4['up'];var e9=performance['now']();var ea=e4['time']===undefined?0x96:e4['time'];var eb=e8?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var ec={};var ed=eg(e5);if(e4['all']){for(let ee in ec){if(e4['group'])for(let e5 in ec[ee])delete ec[ee][e5]['BDFDBreactSearch'];else delete ec[ee]['BDFDBreactSearch'];}return ec;}else return ed;function eg(e5){e6++;if(!e5||Node['prototype']['isPrototypeOf'](e5)||BDFDB['getReactInstance'](e5)||e6>e7||performance['now']()-e9>ea)ej=null;else{var ei=Object['getOwnPropertyNames'](e5);var ej=null;for(let ek=0x0;ej==null&&eke5['type']['displayName']===eo['split']('\x20')[0x0]||e5['type']['name']===eo['split']('\x20')[0x0])||e4['props']&&e4['props']['every'](ep=>en[ep]!==undefined)||e4['defaultProps']&&e4['defaultProps']['every'](eq=>en[eq]!==undefined))){if(e4['all']===undefined||!e4['all'])ej=en;else if(e4['all']){if(e4['noCopies']===undefined||!e4['noCopies']||e4['noCopies']&&!en['BDFDBreactSearch']){en['BDFDBreactSearch']=!![];if(e4['group']){if(e4['name']&&e5['type']&&(e5['type']['displayName']||e5['type']['name'])){var er='Default';for(let es of e4['name'])if(e5['type']['displayName']===es['split']('\x20')[0x0]||e5['type']['name']===es['split']('\x20')[0x0]){er=es;break;}if(typeof ec[er]=='undefined')ec[er]={};BDFDB['pushToObject'](ec[er],en);}}else BDFDB['pushToObject'](ec,en);}}}if(ej==null&&(typeof em==='object'||typeof em==='function')&&eb[el])ej=eg(em);}}e6--;return ej;}};BDFDB['getKeyInformation']=function(et){if(et===undefined)return null;if(!et['node']&&!et['instance']||!et['key'])return null;var eu=et['instance']||BDFDB['getReactInstance'](et['node']);if(!eu)return null;var ev=-0x1;var ew=et['depth']===undefined?0xf:et['depth'];var ex=performance['now']();var ey=et['time']===undefined?0x96:et['time'];var ez={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':et['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':et['up']?![]:!![],'return':et['up']?!![]:![],'sibling':et['up']?![]:!![],'firstEffect':!![]};var eA={'contextSection':!![]};if(typeof et['whitelist']==='object')Object['assign'](ez,et['whiteList']);if(typeof et['blacklist']==='object')Object['assign'](eA,et['blacklist']);var eB=[];var eC=eD(eu);if(et['all'])return eB;else return eC;function eD(eu){ev++;if(!eu||Node['prototype']['isPrototypeOf'](eu)||BDFDB['getReactInstance'](eu)||ev>ew||performance['now']()-ex>ey)eG=null;else{var eF=Object['getOwnPropertyNames'](eu);var eG=null;for(let eH=0x0;eG==null&&eHeQ['default']=eO},[eN])['default']:global['window']['webpackJsonp']['push']([[],{[eN]:(eS,eT,eO)=>eS['exports']=eO},[[eN]]]);delete eO['m'][eN];delete eO['c'][eN];BDFDB['WebModules']['find']['req']=eO;}for(let eV in BDFDB['WebModules']['find']['req']['c']){if(BDFDB['WebModules']['find']['req']['c']['hasOwnProperty'](eV)){var eW=BDFDB['WebModules']['find']['req']['c'][eV]['exports'];if(eW&&eW['__esModule']&&eW['default']&&eM(eW['default']))return eW['default'];if(eW&&eM(eW))return eW;}}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(eX){eX=Array['isArray'](eX)?eX:Array['from'](arguments);var eY=JSON['stringify'](eX);if(BDFDB['WebModules']['cachedData']['prop'][eY])return BDFDB['WebModules']['cachedData']['prop'][eY];else{var eZ=BDFDB['WebModules']['find'](eZ=>eX['every'](f1=>eZ[f1]!==undefined));if(eZ){BDFDB['WebModules']['cachedData']['prop'][eY]=eZ;return eZ;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',eY+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(f2){var f3=JSON['stringify'](f2);if(BDFDB['WebModules']['cachedData']['name'][f3])return BDFDB['WebModules']['cachedData']['name'][f3];else{var f4=BDFDB['WebModules']['find'](f4=>f4['displayName']===f2);if(f4){BDFDB['WebModules']['cachedData']['name'][f3]=f4;return f4;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f3+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(f6){f6=Array['isArray'](f6)?f6:Array['from'](arguments);var f7=JSON['stringify'](f6);if(BDFDB['WebModules']['cachedData']['proto'][f7])return BDFDB['WebModules']['cachedData']['proto'][f7];else{var f8=BDFDB['WebModules']['find'](f8=>f8['prototype']&&f6['every'](fa=>f8['prototype'][fa]!==undefined));if(f8){BDFDB['WebModules']['cachedData']['proto'][f7]=f8;return f8;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f7+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['patchtypes']=['before','instead','after'];BDFDB['WebModules']['patchmap']={'BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','Guild':'FluxContainer(Guild)','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};BDFDB['WebModules']['notfindablemodules']={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','CircleIconButton':'guildbuttoncontainer','EmojiPicker':'emojipicker','FriendsOnline':'friendsonline','Guild':'guildouter','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','Message':'message','MessageOptionPopout':'optionpopout','MessageUsername':'messageusername','TypingUsers':'typing','UserPopout':'userpopout','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(fb,fc,fd,fe){if(!fb||!fc||!fd||!Object['keys'](fe)['some'](ff=>BDFDB['WebModules']['patchtypes']['includes'](ff)))return null;const fg=(typeof fd==='string'?fd:fd['name'])['toLowerCase']();const fh=(fi,fj)=>(...fk)=>{try{return fi(...fk);}catch(fl){console['error']('Error\x20occurred\x20in\x20'+fj,fl);}};if(!fb['BDFDBpatch'])fb['BDFDBpatch']={};fc=Array['isArray'](fc)?fc:Array['of'](fc);for(let fm of fc){if(!fb[fm])fb[fm]=()=>{};const fn=fb[fm];if(!fb['BDFDBpatch'][fm]){fb['BDFDBpatch'][fm]={};for(let fo of BDFDB['WebModules']['patchtypes'])fb['BDFDBpatch'][fm][fo]={};fb['BDFDBpatch'][fm]['originalMethod']=fn;fb[fm]=function(){const fp={'thisObject':this,'methodArguments':arguments,'originalMethod':fn,'originalMethodName':fm,'callOriginalMethod':()=>fp['returnValue']=fp['originalMethod']['apply'](fp['thisObject'],fp['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&fb['BDFDBpatch'][fm]){if(!BDFDB['isObjectEmpty'](fb['BDFDBpatch'][fm]['before']))for(let fq in BDFDB['sortObject'](fb['BDFDBpatch'][fm]['before'])){fh(fb['BDFDBpatch'][fm]['before'][fq],'`before`\x20callback\x20of\x20'+fb[fm]['displayName'])(fp);}if(BDFDB['isObjectEmpty'](fb['BDFDBpatch'][fm]['instead']))fp['callOriginalMethod']();else for(let fr in BDFDB['sortObject'](fb['BDFDBpatch'][fm]['instead'])){const fs=fh(fb['BDFDBpatch'][fm]['instead'][fr],'`instead`\x20callback\x20of\x20'+fb[fm]['displayName'])(fp);if(fs!==undefined)fp['returnValue']=fs;}if(!BDFDB['isObjectEmpty'](fb['BDFDBpatch'][fm]['after']))for(let ft in BDFDB['sortObject'](fb['BDFDBpatch'][fm]['after'])){fh(fb['BDFDBpatch'][fm]['after'][ft],'`after`\x20callback\x20of\x20'+fb[fm]['displayName'])(fp);}}else fp['callOriginalMethod']();return fp['returnValue'];};}for(let fu of BDFDB['WebModules']['patchtypes'])if(typeof fe[fu]=='function')fb['BDFDBpatch'][fm][fu][fg]=fe[fu];}const fv=()=>{BDFDB['WebModules']['unpatch'](fb,fc,fd);};if(fd&&typeof fd=='object'){if(!Array['isArray'](fd['patchCancels']))fd['patchCancels']=[];fd['patchCancels']['push'](fv);}return fv;};BDFDB['WebModules']['unpatch']=function(fw,fx,fy){if(!fw||!fw['BDFDBpatch'])return;const fz=!fy?null:(typeof fy==='string'?fy:fy['name'])['toLowerCase']();fx=Array['isArray'](fx)?fx:Array['of'](fx);for(let fA of fx){if(fw[fA]&&fw['BDFDBpatch'][fA]){for(let fB of BDFDB['WebModules']['patchtypes']){if(fz)delete fw['BDFDBpatch'][fA][fB][fz];else delete fw['BDFDBpatch'][fA][fB];}var fC=!![];for(let fB of BDFDB['WebModules']['patchtypes'])if(!BDFDB['isObjectEmpty'](fw['BDFDBpatch'][fA][fB]))fC=![];if(fC){fw[fA]=fw['BDFDBpatch'][fA]['originalMethod'];delete fw['BDFDBpatch'][fA];if(BDFDB['isObjectEmpty'](fw['BDFDBpatch']))delete fw['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(fE){if(BDFDB['isObject'](fE)&&Array['isArray'](fE['patchCancels']))for(let fF of fE['patchCancels'])fF();};BDFDB['WebModules']['forceAllUpdates']=function(fG,fH){fH=fH&&BDFDB['WebModules']['patchmap'][fH]?BDFDB['WebModules']['patchmap'][fH]+'\x20'+fH:fH;if(BDFDB['isObject'](fG)&&BDFDB['isObject'](fG['patchModules'])&&(!fH||fG['patchModules'][fH])){const fI=document['querySelector'](BDFDB['dotCN']['app']);const fJ=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fI){var fK=[];for(let fL in fG['patchModules']){var fM=Array['isArray'](fG['patchModules'][fL])?fG['patchModules'][fL]:Array['of'](fG['patchModules'][fL]);if(fM['includes']('componentDidUpdate')||fM['includes']('componentDidMount')||fM['includes']('render'))fK['push'](fL);}fK=fH?fK['filter'](fN=>fN==fH):fK;if(fK['length']>0x0){const fO=BDFDB['getOwnerInstance']({'node':fI,'name':fK,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fL in fO)for(let fQ in fO[fL])BDFDB['WebModules']['initiateProcess'](fG,fO[fL][fQ],fL,['componentDidUpdate','componentDidMount','render']);if(fJ){const fR=BDFDB['getOwnerInstance']({'node':fJ,'name':fK,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fL in fR)for(let fQ in fR[fL])BDFDB['WebModules']['initiateProcess'](fG,fR[fL][fQ],fL,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(fU){if(BDFDB['isObject'](fU)&&BDFDB['isObject'](fU['patchModules'])){for(let fV in fU['patchModules']){var fW=BDFDB['WebModules']['patchmap'][fV];if(fW){fU['patchModules'][fW+'\x20'+fV]=fU['patchModules'][fV];delete fU['patchModules'][fV];if(!BDFDB['WebModules']['notfindablemodules'][fV])fZ(BDFDB['WebModules']['findByName'](fW),fW+'\x20'+fV);}else if(!BDFDB['WebModules']['notfindablemodules'][fV])fZ(BDFDB['WebModules']['findByName'](fV),fV);}for(let fV in BDFDB['WebModules']['notfindablemodules']){var fY=BDFDB['WebModules']['patchmap'][fV]?BDFDB['WebModules']['patchmap'][fV]+'\x20'+fV:fV;if(BDFDB['DiscordClasses'][BDFDB['WebModules']['notfindablemodules'][fV]]&&fU['patchModules'][fY])g6(BDFDB['WebModules']['notfindablemodules'][fV],fY);}function fZ(g0,fV){if(g0){var fY=fV['split']('\x20')[0x0];g0=g0['displayName']==fY?g0:BDFDB['getOwnerInstance']({'instance':g0,'name':fY,'up':!![]});if(g0){var g3=g0['_reactInternalFiber']&&g0['_reactInternalFiber']['type']?g0['_reactInternalFiber']['type']:g0;var g4={};g4[fU['name']=='$BDFDB'?'before':'after']=g5=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](fU,g5['thisObject'],fV,[g5['originalMethodName']]);};BDFDB['WebModules']['patch'](g3['prototype'],fU['patchModules'][fV],fU,g4);}}}function g6(g7,fV){var g9=![];const ga=document['querySelector'](BDFDB['dotCN']['app']);const gb=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(ga){var gc=BDFDB['getOwnerInstance']({'node':ga,'name':fV,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gc){g9=!![];fZ(gc,fV);}}if(!g9&&gb){var gd=BDFDB['getOwnerInstance']({'node':gb,'name':fV,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gd){g9=!![];fZ(gd,fV);}}if(!g9){var ge=![],gf=new MutationObserver(gg=>{gg['forEach'](gh=>{gh['addedNodes']['forEach'](gi=>{var gj=null;if(!ge&&gi['tagName']&&(gj=BDFDB['containsClass'](gi,BDFDB['disCN'][g7])?gi:gi['querySelector'](BDFDB['dotCN'][g7]))!=null){instance=BDFDB['getReactInstance'](gj);if(gk(instance,fV)){ge=!![];gf['disconnect']();fZ(instance,fV);BDFDB['WebModules']['forceAllUpdates'](fU,fV);}}});});});BDFDB['addObserver'](fU,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gf,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gk(gl,fV){if(!gl)return![];gl=gl['displayName']==fV?gl:BDFDB['getOwnerInstance']({'instance':gl,'name':fV,'up':!![]});return gl&&(fV!='V2C_PluginCard'&&fV!='V2C_ThemeCard'||fV=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||fV=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(gn,go,gp,gq){if(gn&&typeof gn=='object'&&go){gp=(gp['split']('\x20')[0x1]||gp)['replace'](/[^A-z0-9]|_/g,'');gp=gp[0x0]['toUpperCase']()+gp['slice'](0x1);if(typeof gn['process'+gp]=='function'){var gr=BDFDB['React']['findDOMNodeSafe'](go);if(gr)gn['process'+gp](go,gr,gq);else setImmediate(()=>{gr=BDFDB['React']['findDOMNodeSafe'](go);if(gr)gn['process'+gp](go,gr,gq);});}}};var gs=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');var gt=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(gs&>){BDFDB['React']=Object['assign']({},gs,gt);BDFDB['React']['findDOMNodeSafe']=function(gu){if(!gu||!gu['updater']||typeof gu['updater']['isMounted']!=='function'||!gu['updater']['isMounted'](gu))return null;var gv=gt['findDOMNode'](gu)||BDFDB['getReactValue'](gu,'child.stateNode');return Node['prototype']['isPrototypeOf'](gv)?gv:null;};};BDFDB['addOnSwitchListener']=function(gw){if(typeof gw['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](gw);var gx=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(gx){var gy=new MutationObserver(gz=>{gz['forEach'](gA=>{if(gA['target']&&BDFDB['containsClass'](gA['target'],BDFDB['disCN']['nochannel']))gw['onSwitch']();});});var gB=gx['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(gB)gy['observe'](gB,{'attributes':!![]});gw['onSwitchFix']=new MutationObserver(gC=>{gC['forEach'](gD=>{if(gD['addedNodes']){gD['addedNodes']['forEach'](gE=>{if(BDFDB['containsClass'](gE,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))gy['observe'](gE,{'attributes':!![]});});}});});gw['onSwitchFix']['observe'](gx,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(gF){if(typeof gF['onSwitch']==='function'&&BDFDB['isObject'](gF['onSwitchFix'])){gF['onSwitchFix']['disconnect']();delete gF['onSwitchFix'];}};BDFDB['addContextListener']=function(gG){for(let gH of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof gG['on'+gH+'Context']==='function'||typeof gG['on'+gH+'ContextMenu']==='function'){if(gH=='GroupDM'){var gI=![],gJ=new MutationObserver(gK=>{gK['forEach'](gL=>{gL['addedNodes']['forEach'](gM=>{var gN=null;if(!gI&&gM['tagName']&&(gN=BDFDB['containsClass'](gM,BDFDB['disCN']['contextmenu'])?gM:gM['querySelector'](BDFDB['dotCN']['contextmenu']))!=null){var gO=BDFDB['getReactInstance'](gN);if(gO&&gO['return']&&gO['return']['type']&&gO['return']['type']['displayName']==gH+'ContextMenu'){gI=!![];gJ['disconnect']();gP(gH,gO['return']['type']);gT(gH,gO['return']['stateNode'],gO['stateNode']);}}});});});BDFDB['addObserver'](gG,BDFDB['dotCN']['appmount'],{'name':'checkForContextObserver','instance':gJ,'multi':!![]},{'childList':!![],'subtree':!![]});}else gP(gH,BDFDB['WebModules']['findByName'](gH+'ContextMenu'));}}function gP(gH,gR){if(gR&&gR['prototype'])BDFDB['WebModules']['patch'](gR['prototype'],'componentDidMount',gG,{'after':gS=>{gT(gH,gS['thisObject'],BDFDB['React']['findDOMNodeSafe'](gS['thisObject']));}});}function gT(gH,gV,gW){if(gV&&gW){if(typeof gG['on'+gH+'Context']==='function')gG['on'+gH+'Context'](gV,gW);if(typeof gG['on'+gH+'ContextMenu']==='function')gG['on'+gH+'ContextMenu'](gV,gW);BDFDB['initElements'](gW,gG);BDFDB['updateContextPosition'](gW);}}};BDFDB['addSettingsButtonListener']=function(gX){if(BDFDB['isBDv2']()&&typeof gX['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](gX);BDFDB['appendSettingsButton'](gX);var gY=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(gY){gX['settingsButtonObserver']=new MutationObserver(gZ=>{gZ['forEach'](h0=>{if(h0['addedNodes']){h0['addedNodes']['forEach'](h1=>{if(h1['tagName']&&BDFDB['containsClass'](h1,'active'))BDFDB['appendSettingsButton'](gX);});}});});gX['settingsButtonObserver']['observe'](gY,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(h2){var h3=document['querySelector'](BDFDB['dotCN']['_bdv2Card']+'[data-plugin-id='+h2['id']+']');if(h3){var h4=BDFDB['htmlToElement']('');h3['insertBefore'](h4,h3['querySelector'](BDFDB['d']['_bdv2Button']));h4['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',h4,{'type':'top'});BDFDB['addClass'](h4,BDFDB['disCN']['_bdv2TooltipOpen']);});h4['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](h4,BDFDB['disCN']['_bdv2TooltipOpen']);});h4['addEventListener']('click',()=>{var h5=BDFDB['htmlToElement'](''+h2['name']+'\x20Settings
');var h6=h2['getSettingsPanel']();h5['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof h6=='string'?BDFDB['htmlToElement'](h6):h6);if(typeof h2['onSettingsClosed']==='function')BDFDB['addChildEventListener'](h5,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{h2['onSettingsClosed']();});BDFDB['appendModal'](h5);});}};BDFDB['removeSettingsButtonListener']=function(h7){if(BDFDB['isBDv2']()&&typeof h7['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+h7['id']+']\x20.BDFDB-settingsbutton');h7['settingsButtonObserver']['disconnect']();delete h7['settingsButtonObserver'];}};var h8=BDFDB['WebModules']['findByProperties']('Messages')['Messages'];BDFDB['LanguageStrings']=new Proxy(h8,{'get':function(h9,ha){if(!h9[ha])console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',ha+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var hb=typeof h9[ha]=='object'?h9[ha]['format'](Object['assign']({},BDFDB['LanguageStringsVars'])):h9[ha];if(typeof hb=='string')return hb;else if(Array['isArray'](hb)){var hc='';for(let hd of hb){if(typeof hd=='string')hc+=BDFDB['encodeToHTML'](hd);else if(BDFDB['isObject'](hd)&&hd['props'])hc+='<'+hd['type']+'>'+BDFDB['encodeToHTML'](hd['props']['children'][0x0]['toString']())+''+hd['type']+'>';}return hc;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',ha+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}}});BDFDB['LanguageStringsVars']={};for(let he in BDFDB['WebModules']['findByProperties']('Messages')['Messages']){try{BDFDB['LanguageStrings'][he];}catch(hf){let hg=hf['toString']()['split']('for:\x20')[0x1];if(hg&&typeof hg=='string')BDFDB['LanguageStringsVars'][hg]='{{'+hg['toLowerCase']()+'}}';}};BDFDB['equals']=function(hh,hi,hj){var hk=-0x1;if(hj===undefined||typeof hj!=='boolean')hj=![];return hl(hh,hi);function hl(hm,hn){hk++;var ho=!![];if(hk>0x3e8)ho=null;else{if(typeof hm!==typeof hn)ho=![];else if(typeof hm==='undefined')ho=!![];else if(typeof hm==='symbol')ho=!![];else if(typeof hm==='boolean')ho=hm==hn;else if(typeof hm==='string')ho=hm==hn;else if(typeof hm==='number'){if(isNaN(hm)||isNaN(hn))ho=isNaN(hm)==isNaN(hn);else ho=hm==hn;}else if(!hm&&!hn)ho=!![];else if(!hm||!hn)ho=![];else if(typeof hm==='function'||typeof hm==='object'){var hp=Object['getOwnPropertyNames'](hm);var hq=Object['getOwnPropertyNames'](hn);if(hp['length']!==hq['length'])ho=![];else for(let hr=0x0;ho===!![]&&hrhJ['length']?hM:hJ['length'];};BDFDB['readServerList']=function(){var hN=[],hO=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'Guild','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hP in hO)if(hO[hP]['props']&&hO[hP]['props']['guild']&&hO[hP]['_reactInternalFiber']['child'])hN['push'](Object['assign'](new hO[hP]['props']['guild']['constructor'](hO[hP]['props']['guild']),{'div':BDFDB['React']['findDOMNodeSafe'](hO[hP]),'instance':hO[hP]}));return hN;};BDFDB['readUnreadServerList']=function(hQ){var hR=[];for(let hS of hQ===undefined||!Array['isArray'](hQ)?BDFDB['readServerList']():hQ){let hT=Node['prototype']['isPrototypeOf'](hS)?hS:hS&&hS['div']?hS['div']:null;if(Node['prototype']['isPrototypeOf'](hT)&&hT['querySelector'](BDFDB['dotCN']['guildpillitem'])['style']['getPropertyValue']('opacity')>0x0||hT['querySelector'](BDFDB['dotCN']['guildbadgenumberbadge']))hR['push'](hS);}return hR;};BDFDB['getSelectedServer']=function(){var hU=BDFDB['WebModules']['findByProperties']('getGuilds')['getGuild'](BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId')['getGuildId']());if(hU)return BDFDB['getServerData'](hU['id'])||Object['assign'](new hU['constructor'](hU),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(hV){if(!Node['prototype']['isPrototypeOf'](hV)||!BDFDB['getReactInstance'](hV))return;let hW=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],hV);if(!hW)return;var hX=hW['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var hY=hX&&hX['href']?hX['href']['split']('/')['slice'](-0x2)[0x0]:null;return hY&&!isNaN(parseInt(hY))?hY['toString']():null;};BDFDB['getServerDiv']=function(hZ){if(!hZ)return null;if(Node['prototype']['isPrototypeOf'](hZ))return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],hZ);else{let i0=typeof hZ=='object'?hZ['id']:hZ;if(i0)return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/'+i0+'\x22]'));}return null;};BDFDB['getServerData']=function(i1){if(!i1)return null;let i2=Node['prototype']['isPrototypeOf'](i1)?BDFDB['getServerID'](i1):typeof i1=='object'?i1['id']:i1;i2=typeof i2=='number'?i2['toFixed']():i2;for(let i3 of BDFDB['readServerList']())if(i3&&i3['id']==i2)return i3;return null;};BDFDB['readChannelList']=function(){var i4=[],i5=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let i6 in i5)if(i5[i6]['props']&&!i5[i6]['props']['ispin']&&i5[i6]['props']['channel']&&i5[i6]['_reactInternalFiber']['return']){var i7=BDFDB['React']['findDOMNodeSafe'](i5[i6]);i7=i7&&BDFDB['containsClass'](i7['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?i7['parentElement']:i7;i4['push'](Object['assign'](new i5[i6]['props']['channel']['constructor'](i5[i6]['props']['channel']),{'div':i7,'instance':i5[i6]}));}return i4;};BDFDB['getSelectedChannel']=function(){var i8=BDFDB['WebModules']['findByProperties']('getChannels')['getChannel'](BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId')['getChannelId']());if(i8)return BDFDB['getChannelData'](i8['id'])||Object['assign'](new i8['constructor'](i8),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(i9){if(!Node['prototype']['isPrototypeOf'](i9)||!BDFDB['getReactInstance'](i9))return;i9=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],i9);if(!i9)return;var ia=BDFDB['getKeyInformation']({'node':i9,'key':'channel'});return ia?ia['id']['toString']():null;};BDFDB['getChannelDiv']=function(ib){if(!ib)return null;let ic=BDFDB['getChannelData'](ib);return ic?ic['div']:null;};BDFDB['getChannelData']=function(id){if(!id)return null;let ie=Node['prototype']['isPrototypeOf'](id)?BDFDB['getChannelID'](id):typeof id=='object'?id['id']:id;ie=typeof ie=='number'?ie['toFixed']():ie;for(let ig of BDFDB['readChannelList']())if(ig&&ig['id']==ie)return ig;return null;};BDFDB['readDmList']=function(){var ih=[],ii=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let ij in ii)if(ii[ij]['props']&&ii[ij]['props']['channel']&&ii[ij]['_reactInternalFiber']['child'])ih['push'](Object['assign'](new ii[ij]['props']['channel']['constructor'](ii[ij]['props']['channel']),{'div':BDFDB['React']['findDOMNodeSafe'](ii[ij]),'instance':ii[ij]}));return ih;};BDFDB['getDmID']=function(ik){if(!Node['prototype']['isPrototypeOf'](ik)||!BDFDB['getReactInstance'](ik))return;let il=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ik);if(!il)return;var im=il['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var io=im&&im['href']?im['href']['split']('/')['slice'](-0x1)[0x0]:null;return io&&!isNaN(parseInt(io))?io['toString']():null;};BDFDB['getDmDiv']=function(ip){if(!ip)return null;if(Node['prototype']['isPrototypeOf'](ip)){var iq=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ip);return iq?iq['parentElement']:iq;}else{let ir=typeof ip=='object'?ip['id']:ip;if(ir){var iq=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCNS']['dmcontainer']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+ir+'\x22]'));return iq&&BDFDB?iq['parentElement']:iq;}}return null;};BDFDB['getDmData']=function(it){if(!it)return null;let iu=Node['prototype']['isPrototypeOf'](it)?BDFDB['getDmID'](it):typeof it=='object'?it['id']:it;iu=typeof iu=='number'?iu['toFixed']():iu;for(let iv of BDFDB['readDmList']())if(iv&&iv['id']==iu)return iv;return null;};BDFDB['markChannelAsRead']=function(iw){if(!iw)return;var ix=BDFDB['WebModules']['findByProperties']('getOldestUnreadMessageId');var iy=BDFDB['WebModules']['findByProperties']('getAPIBaseURL');var iz=BDFDB['WebModules']['findByProperties']('Permissions','ActivityTypes','StatusTypes');if(!ix||!iy||!iz)return;for(let iA of Array['isArray'](iw)?iw:typeof iw=='string'||typeof iw=='number'?Array['of'](iw):Array['from'](iw)){let iB=Node['prototype']['isPrototypeOf'](iA)?BDFDB['getChannelID'](iA)||BDFDB['getDmID'](iA):iA&&typeof iA=='object'?iA['id']:iA;if(iB){let iC=ix['getOldestUnreadMessageId'](iB);if(iC)iy['post']({'body':{},'url':iz['Endpoints']['MESSAGES_ACK'](iB,iC)});}}};BDFDB['markGuildAsRead']=function(iD){if(!iD)return;var iE=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!iE)return;for(let iF of Array['isArray'](iD)?iD:typeof iD=='string'||typeof iD=='number'?Array['of'](iD):Array['from'](iD)){let iG=Node['prototype']['isPrototypeOf'](iF)?BDFDB['getServerID'](iF):iF&&typeof iF=='object'?iF['id']:iF;if(iG)iE['markGuildAsRead'](iG);}};BDFDB['saveAllData']=function(iH,iI,iJ){var iK=require('fs'),iL,iM;if(!BDFDB['isBDv2']()){iM=typeof iI==='string'?iI:iI['name'];iL=require('path')['join'](BDFDB['getPluginsFolder'](),iM+'.config.json');}else{iM=typeof iI==='string'?iI['toLowerCase']():null;var iN=iM?BDFDB['Plugins'][iM]?BDFDB['Plugins'][iM]['contentPath']:null:iI['contentPath'];if(!iN)return;iL=require('path')['join'](iN,'settings.json');}var iO=iK['existsSync'](iL);var iP=!iO?{}:typeof BDFDB['cachedData'][iM]!=='undefined'?BDFDB['cachedData'][iM]:BDFDB['readConfig'](iL);iP[iJ]=iH;if(BDFDB['isObjectEmpty'](iP[iJ]))delete iP[iJ];if(BDFDB['isObjectEmpty'](iP)){delete BDFDB['cachedData'][iM];if(iO)iK['unlinkSync'](iL);}else{BDFDB['cachedData'][iM]=iP;iK['writeFileSync'](iL,JSON['stringify'](iP,null,'\x09'));}};BDFDB['loadAllData']=function(iQ,iR){var iS=require('fs'),iT,iU;if(!BDFDB['isBDv2']()){iU=typeof iQ==='string'?iQ:iQ['name'];iT=require('path')['join'](BDFDB['getPluginsFolder'](),iU+'.config.json');}else{iU=typeof iQ==='string'?iQ['toLowerCase']():null;var iV=iU?BDFDB['Plugins'][iU]?BDFDB['Plugins'][iU]['contentPath']:null:iQ['contentPath'];if(!iV)return{};iT=require('path')['join'](iV,'settings.json');}if(!iS['existsSync'](iT)){delete BDFDB['cachedData'][iU];return{};}var iW=typeof BDFDB['cachedData'][iU]!=='undefined'?BDFDB['cachedData'][iU]:BDFDB['readConfig'](iT);BDFDB['cachedData'][iU]=iW;return iW&&typeof iW[iR]!=='undefined'?iW[iR]:{};};BDFDB['removeAllData']=function(iX,iY){var iZ=require('fs'),j0,j1;if(!BDFDB['isBDv2']()){j1=typeof iX==='string'?iX:iX['name'];j0=require('path')['join'](BDFDB['getPluginsFolder'](),j1+'.config.json');}else{j1=typeof iX==='string'?iX['toLowerCase']():null;var j2=j1?BDFDB['Plugins'][j1]?BDFDB['Plugins'][j1]['contentPath']:null:iX['contentPath'];if(!j2)return;j0=require('path')['join'](j2,'settings.json');}var j3=iZ['existsSync'](j0);var j4=!j3?{}:typeof BDFDB['cachedData'][j1]!=='undefined'?BDFDB['cachedData'][j1]:BDFDB['readConfig'](j0);delete j4[iY];if(BDFDB['isObjectEmpty'](j4)){delete BDFDB['cachedData'][j1];if(j3)iZ['unlinkSync'](j0);}else{BDFDB['cachedData'][j1]=j4;iZ['writeFileSync'](j0,JSON['stringify'](j4,null,'\x09'));}};BDFDB['getAllData']=function(j5,j6){if(!BDFDB['isObject'](j5)||!j5['defaults']||!j5['defaults'][j6])return{};var j7=BDFDB['loadAllData'](j5,j6),j8={},j9=![];for(let ja in j5['defaults'][j6]){if(j7[ja]==null){j8[ja]=j5['defaults'][j6][ja]['value'];j9=!![];}else j8[ja]=j7[ja];}if(j9)BDFDB['saveAllData'](j8,j5,j6);return j8;};BDFDB['readConfig']=function(jb){try{return JSON['parse'](require('fs')['readFileSync'](jb));}catch(jc){return{};}};BDFDB['saveData']=function(jd,je,jf,jg){var jh=BDFDB['loadAllData'](jf,jg);jh[jd]=je;BDFDB['saveAllData'](jh,jf,jg);};BDFDB['loadData']=function(ji,jj,jk){var jl=BDFDB['loadAllData'](jj,jk);var jm=jl[ji];return jm===undefined?null:jm;};BDFDB['removeData']=function(jn,jo,jp){var jq=BDFDB['loadAllData'](jo,jp);delete jq[jn];BDFDB['saveAllData'](jq,jo,jp);};BDFDB['getData']=function(jr,js,jt){var ju=BDFDB['getAllData'](js,jt);var jv=ju[jr];return jv===undefined?null:jv;};BDFDB['appendWebScript']=function(jw,jx){if(!jx&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jx=jx||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jx=Node['prototype']['isPrototypeOf'](jx)?jx:document['head'];BDFDB['removeWebScript'](jw,jx);jx['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(jy,jz){jz=jz||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jz=Node['prototype']['isPrototypeOf'](jz)?jz:document['head'];BDFDB['removeEles'](jz['querySelectorAll']('script[src=\x22'+jy+'\x22]'));};BDFDB['appendWebStyle']=function(jA,jB){if(!jB&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jB=jB||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jB=Node['prototype']['isPrototypeOf'](jB)?jB:document['head'];BDFDB['removeWebStyle'](jA,jB);jB['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(jC,jD){jD=jD||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jD=Node['prototype']['isPrototypeOf'](jD)?jD:document['head'];BDFDB['removeEles'](jD['querySelectorAll']('link[href=\x22'+jC+'\x22]'));};BDFDB['appendLocalStyle']=function(jE,jF,jG){if(!jG&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jG=jG||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jG=Node['prototype']['isPrototypeOf'](jG)?jG:document['head'];BDFDB['removeLocalStyle'](jE,jG);jG['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(jH,jI){jI=jI||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jI=Node['prototype']['isPrototypeOf'](jI)?jI:document['head'];BDFDB['removeEles'](jI['querySelectorAll']('style[id=\x22'+jH+'CSS\x22]'));};BDFDB['formatBytes']=function(jJ,jK){jJ=parseInt(jJ);if(isNaN(jJ)||jJ<0x0)return'0\x20Bytes';if(jJ==0x1)return'1\x20Byte';var jL=Math['floor'](Math['log'](jJ)/Math['log'](0x400));return parseFloat((jJ/Math['pow'](0x400,jL))['toFixed'](jK<0x1?0x0:jK>0x14?0x14:jK||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][jL];};BDFDB['colorCONVERT']=function(jM,jN,jO){if(!jM)return null;jN=jN===undefined||!jN?jN='RGBCOMP':jN['toUpperCase']();jO=jO===undefined||!jO||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](jO['toUpperCase']())?BDFDB['colorTYPE'](jM):jO['toUpperCase']();if(jN=='RGBCOMP'){switch(jO){case'RGBCOMP':if(jM['length']==0x3)return ko(jM);else if(jM['length']==0x4){var jP=kr(jM['pop']());return ko(jM)['concat'](jP);}case'RGB':return ko(jM['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var jQ=jM['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var jP=kr(jQ['pop']());return ko(jQ)['concat'](jP);case'HSLCOMP':if(jM['length']==0x3)return BDFDB['colorCONVERT']('hsl('+jM['join'](',')+')','RGBCOMP');else if(jM['length']==0x4){var jP=kr(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](jP);}case'HSL':var jT=kv(jM['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var jU,jV,jW,jX,jY,jZ,k0,k1;var k2=jT[0x0]/0x168,k3=parseInt(jT[0x1])/0x64,k4=parseInt(jT[0x2])/0x64;jX=Math['floor'](k2*0x6);jY=k2*0x6-jX;jZ=k4*(0x1-k3);k0=k4*(0x1-jY*k3);k1=k4*(0x1-(0x1-jY)*k3);switch(jX%0x6){case 0x0:jU=k4,jV=k1,jW=jZ;break;case 0x1:jU=k0,jV=k4,jW=jZ;break;case 0x2:jU=jZ,jV=k4,jW=k1;break;case 0x3:jU=jZ,jV=k0,jW=k4;break;case 0x4:jU=k1,jV=jZ,jW=k4;break;case 0x5:jU=k4,jV=jZ,jW=k0;break;}return[Math['round'](jU*0xff),Math['round'](jV*0xff),Math['round'](jW*0xff)];case'HSLA':var jT=jM['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var jP=kr(jT['pop']());return BDFDB['colorCONVERT']('hsl('+jT['join'](',')+')','RGBCOMP')['concat'](jP);case'HEX':var k7=/^#([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'](jM);return[parseInt(k7[0x1]+k7[0x1]||k7[0x4],0x10)['toString'](),parseInt(k7[0x2]+k7[0x2]||k7[0x5],0x10)['toString'](),parseInt(k7[0x3]+k7[0x3]||k7[0x6],0x10)['toString']()];default:return null;}}else{var k8=jO=='RGBCOMP'?jM:BDFDB['colorCONVERT'](jM,'RGBCOMP',jO);if(k8)switch(jN){case'RGB':return'rgb('+ko(k8['slice'](0x0,0x3))['join'](',')+')';case'RGBA':k8=k8['slice'](0x0,0x4);var jP=k8['length']==0x4?kr(k8['pop']()):0x1;return'rgba('+ko(k8)['concat'](jP)['join'](',')+')';case'HSLCOMP':var jP=k8['length']==0x4?kr(k8['pop']()):null;var jT=kv(BDFDB['colorCONVERT'](k8,'HSL')['replace'](/\s/g,'')['split'](','));return jP?jT['concat'](jP):jT;case'HSL':var jU=km(k8[0x0]),jV=km(k8[0x1]),jW=km(k8[0x2]);var kf=Math['max'](jU,jV,jW),kg=Math['min'](jU,jV,jW),kh=kf-kg,k2,k3=kf===0x0?0x0:kh/kf,k4=kf/0xff;switch(kf){case kg:k2=0x0;break;case jU:k2=jV-jW+kh*(jV0xff?0xff:jY<0x0?0x0:jY;};function ko(jQ){return jQ['map'](jY=>{return km(jY);});};function kr(jP){jP=jP['toString']();jP=(jP['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(jP['replace'](/[^0-9\.\-]/g,''));return isNaN(jP)||jP>0x1?0x1:jP<0x0?0x0:jP;};function kt(ku){ku=parseFloat(ku['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(ku)||ku>0x64?0x64:ku<0x0?0x0:ku)+'%';};function kv(jQ){let k2=parseFloat(jQ['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));k2=isNaN(k2)||k2>0x168?0x168:k2<0x0?0x0:k2;return[k2]['concat'](jQ['map'](ky=>{return kt(ky);}));};};BDFDB['colorSETALPHA']=function(kz,kA,kB){var kC=BDFDB['colorCONVERT'](kz,'RGBCOMP');if(kC){kA=kA['toString']();kA=(kA['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kA['replace'](/[^0-9\.\-]/g,''));kA=isNaN(kA)||kA>0x1?0x1:kA<0x0?0x0:kA;kC[0x3]=kA;kB=(kB||BDFDB['colorTYPE'](kz))['toUpperCase']();kB=kB=='HSL'||kB=='RGB'?kB+'A':kB;return BDFDB['colorCONVERT'](kC,kB);}return null;};BDFDB['colorCHANGE']=function(kD,kE,kF){kE=parseFloat(kE);if(kD&&typeof kE=='number'&&!isNaN(kE)){var kG=BDFDB['colorCONVERT'](kD,'RGBCOMP');if(kG){if(parseInt(kE)!==kE){kE=kE['toString']();kE=(kE['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kE['replace'](/[^0-9\.\-]/g,''));kE=isNaN(kE)?0x0:kE;return BDFDB['colorCONVERT']([Math['round'](kG[0x0]*(0x1+kE)),Math['round'](kG[0x1]*(0x1+kE)),Math['round'](kG[0x2]*(0x1+kE))],kF||BDFDB['colorTYPE'](kD));}else return BDFDB['colorCONVERT']([Math['round'](kG[0x0]+kE),Math['round'](kG[0x1]+kE),Math['round'](kG[0x2]+kE)],kF||BDFDB['colorTYPE'](kD));}}return null;};BDFDB['colorINV']=function(kH,kI){if(kH){var kJ=BDFDB['colorCONVERT'](kH,'RGBCOMP');if(kJ)return BDFDB['colorCONVERT']([0xff-kJ[0x0],0xff-kJ[0x1],0xff-kJ[0x2]],kI||BDFDB['colorTYPE'](kH));}return null;};BDFDB['colorCOMPARE']=function(kK,kL){if(kK&&kL){kK=BDFDB['colorCONVERT'](kK,'RGBCOMP');kL=BDFDB['colorCONVERT'](kL,'RGBCOMP');if(kK&&kL)return BDFDB['equals'](kK,kL);}return null;};BDFDB['colorISBRIGHT']=function(kM,kN=0xa0){kM=BDFDB['colorCONVERT'](kM,'RGBCOMP');if(!kM)return![];return parseInt(kN)