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