diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index 6a1022cfa7..4f61da7cea 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -4459,6 +4459,11 @@
avatarwrapper: ["Avatar", "wrapper"],
backdrop: ["Backdrop", "backdrop"],
backdropwithlayer: ["Backdrop", "backdropWithLayer"],
+ badgebase: ["Badge", "base"],
+ badgeicon: ["Badge", "icon"],
+ badgeiconbadge: ["Badge", "iconBadge"],
+ badgenumberbadge: ["Badge", "numberBadge"],
+ badgetextbadge: ["Badge", "textBadge"],
badgewrapper: ["NotFound", "badgeWrapper"],
bdfdbdev: ["BDFDB", "dev"],
bdfdbsupporter: ["BDFDB", "supporter"],
@@ -4838,12 +4843,6 @@
green: ["TextStyle", "statusGreen"],
grey: ["TextStyle", "statusGrey"],
guild: ["BDFDB", "guild"],
- guildbadgebase: ["Badge", "base"],
- guildbadgeicon: ["Badge", "icon"],
- guildbadgeiconbadge: ["Badge", "iconBadge"],
- guildbadgeiconbadge2: ["GuildsItems", "iconBadge"],
- guildbadgenumberbadge: ["Badge", "numberBadge"],
- guildbadgetextbadge: ["Badge", "textBadge"],
guildbuttoncontainer: ["GuildsItems", "circleButtonMask"],
guildbuttoninner: ["GuildsItems", "circleIconButton"],
guildbuttonicon: ["GuildsItems", "circleIcon"],
@@ -4891,6 +4890,7 @@
guildheadername: ["GuildHeader", "name"],
guildicon: ["GuildIcon", "icon"],
guildiconacronym: ["GuildIcon", "acronym"],
+ guildiconbadge: ["GuildsItems", "iconBadge"],
guildiconchildwrapper: ["GuildIcon", "childWrapper"],
guildiconselected: ["GuildIcon", "selected"],
guildiconwrapper: ["GuildIcon", "wrapper"],
@@ -6313,7 +6313,21 @@
}
};
- InternalComponents.LibraryComponents.Badges = BDFDB.ModuleUtils.findByProperties("IconBadge", "NumberBadge");
+ InternalComponents.LibraryComponents.Badges = Object.assign({}, BDFDB.ModuleUtils.findByProperties("IconBadge", "NumberBadge"));
+ InternalComponents.LibraryComponents.Badges.IconBadge = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.Badges.IconBadge") || reactInitialized && class BDFDB_IconBadge extends LibraryModules.React.Component {
+ render() {
+ return BDFDB.ReactUtils.createElement("div", {
+ className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.badgeiconbadge, this.props.className),
+ style: Object.assign({
+ backgroundColor: this.props.disableColor ? null : (this.props.color || BDFDB.DiscordConstants.Colors.STATUS_RED)
+ }, this.props.style),
+ children: BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.SvgIcon, {
+ className: BDFDB.disCN.badgeicon,
+ name: this.props.icon
+ })
+ });
+ }
+ };
InternalComponents.LibraryComponents.BotTag = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.BotTag") || reactInitialized && class BDFDB_BotTag extends LibraryModules.React.Component {
handleClick(e) {if (typeof this.props.onClick == "function") this.props.onClick(e, this);}
@@ -7720,6 +7734,7 @@
render() {
if (BDFDB.ObjectUtils.is(this.props.name)) {
this.props.iconSVG = this.props.name.icon;
+ this.props.nativeClass = true;
let props = Object.assign({
width: 24,
height: 24,
diff --git a/Plugins/BDFDB.min.js b/Plugins/BDFDB.min.js
index f188b4415b..91286efbf1 100644
--- a/Plugins/BDFDB.min.js
+++ b/Plugins/BDFDB.min.js
@@ -1 +1 @@
-(c=>{if(window['BDFDB']&&window['BDFDB']['ListenerUtils']&&typeof window['BDFDB']['ListenerUtils']['remove']=='function')window['BDFDB']['ListenerUtils']['remove'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['StoreChangeUtils']&&typeof window['BDFDB']['StoreChangeUtils']['remove']=='function')window['BDFDB']['StoreChangeUtils']['remove'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['ObserverUtils']&&typeof window['BDFDB']['ObserverUtils']['disconnect']=='function')window['BDFDB']['ObserverUtils']['disconnect'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['ModuleUtils']&&typeof window['BDFDB']['ModuleUtils']['unpatch']=='function')window['BDFDB']['ModuleUtils']['unpatch'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['WindowUtils']&&typeof window['BDFDB']['WindowUtils']['closeAll']=='function')window['BDFDB']['WindowUtils']['closeAll'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['WindowUtils']&&typeof window['BDFDB']['WindowUtils']['removeListener']=='function')window['BDFDB']['WindowUtils']['removeListener'](window['BDFDB']);var d={'myPlugins':Object['assign']({},window['BDFDB']&&window['BDFDB']['myPlugins']),'InternalData':Object['assign']({'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'componentPatchQueries':{}},window['BDFDB']&&window['BDFDB']['InternalData'],{'creationTime':performance['now']()}),'BDv2Api':window['BDFDB']&&window['BDFDB']['BDv2Api']||undefined,'name':'BDFDB'};var e=Math['round'](Math['random']()*0x2386f26fc10000),f={};d['InternalData']['loadid']=e;if(typeof Array['prototype']['flat']!='function')Array['prototype']['flat']=function(){return this;};f['defaults']={'settings':{'showToasts':{'value':!![],'description':'Show\x20Plugin\x20start\x20and\x20stop\x20Toasts'},'showSupportBadges':{'value':!![],'description':'Show\x20little\x20Badges\x20for\x20Users\x20who\x20support\x20my\x20Patreon'}}};d['LogUtils']={};d['LogUtils']['log']=function(g,h){console['log']('%c['+(typeof h=='string'&&h||'BDFDB')+']','color:\x20#3a71c1;\x20font-weight:\x20700;',(typeof g=='string'&&g||'')['trim']());};d['LogUtils']['warn']=function(i,j){console['warn']('%c['+(typeof j=='string'&&j||'BDFDB')+']','color:\x20#3a71c1;\x20font-weight:\x20700;',(typeof i=='string'&&i||'')['trim']());};d['LogUtils']['error']=function(k,l){console['error']('%c['+(typeof l=='string'&&l||'BDFDB')+']','color:\x20#3a71c1;\x20font-weight:\x20700;','Fatal\x20Error:\x20'+(typeof k=='string'&&k||'')['trim']());};d['LogUtils']['log']('Loading\x20library.');d['PluginUtils']={};d['PluginUtils']['init']=function(m){m['name']=m['name']||(typeof m['getName']=='function'?m['getName']():null);m['version']=m['version']||(typeof m['getVersion']=='function'?m['getVersion']():null);m['author']=m['author']||(typeof m['getAuthor']=='function'?m['getAuthor']():null);m['description']=m['description']||(typeof m['getDescription']=='function'?m['getDescription']():null);f['clearStartTimeout'](m);let n=d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_started','v'+m['version']);d['LogUtils']['log'](n,m['name']);if(!d['BDUtils']['getSettings']('fork-ps-2')&&d['DataUtils']['get'](d,'settings','showToasts'))d['NotificationUtils']['toast'](m['name']+'\x20'+n,{'nopointer':!![],'selector':'plugin-started-toast'});let o=typeof m['getRawUrl']=='function'&&typeof m['getRawUrl']()=='string'?m['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+m['name']+'/'+m['name']+'.plugin.js';d['PluginUtils']['checkUpdate'](m['name'],o);if(d['ObjectUtils']['is'](m['classes']))f['addPluginClasses'](m);if(typeof m['initConstructor']==='function')d['TimeUtils']['suppress'](m['initConstructor']['bind'](m),'Could\x20not\x20initiate\x20constructor!',m['name'])();if(typeof m['css']==='string')d['DOMUtils']['appendLocalStyle'](m['name'],m['css']);f['patchPlugin'](m);f['addSpecialListeners'](m);d['PluginUtils']['translate'](m);d['PluginUtils']['checkChangeLog'](m);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][o]={'name':m['name'],'raw':o,'version':m['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=d['TimeUtils']['interval'](c=>{d['PluginUtils']['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);m['started']=!![];delete m['stopping'];for(let q in d['myPlugins'])if(!d['myPlugins'][q]['started']&&typeof d['myPlugins'][q]['initialize']=='function')setImmediate(c=>{d['TimeUtils']['suppress'](d['myPlugins'][q]['initialize']['bind'](d['myPlugins'][q]),'Could\x20not\x20initiate\x20plugin!',q)();});};d['PluginUtils']['clear']=function(s){f['clearStartTimeout'](s);delete d['myPlugins'][s['name']];let t=d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_stopped','v'+s['version']);d['LogUtils']['log'](t,s['name']);if(!d['BDUtils']['getSettings']('fork-ps-2')&&d['DataUtils']['get'](d,'settings','showToasts'))d['NotificationUtils']['toast'](s['name']+'\x20'+t,{'nopointer':!![],'selector':'plugin-stopped-toast'});let u=typeof s['getRawUrl']=='function'&&typeof s['getRawUrl']()=='string'?s['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+s['name']+'/'+s['name']+'.plugin.js';if(d['ObjectUtils']['is'](s['classes']))f['removePluginClasses'](s);if(typeof s['css']==='string')d['DOMUtils']['removeLocalStyle'](s['name']);d['ModuleUtils']['unpatch'](s);d['ListenerUtils']['remove'](s);d['StoreChangeUtils']['remove'](s);d['ObserverUtils']['disconnect'](s);d['WindowUtils']['closeAll'](s);d['WindowUtils']['removeListener'](s);for(let v in d['InternalData']['componentPatchQueries'])d['ArrayUtils']['remove'](d['InternalData']['componentPatchQueries'][v]['query'],s,!![]);for(let w of document['querySelectorAll']('.'+s['name']+'-modal,\x20.'+s['name']['toLowerCase']()+'-modal,\x20.'+s['name']+'-settingsmodal,\x20.'+s['name']['toLowerCase']()+'-settingsmodal')){let x=w['querySelector'](d['dotCN']['modalclose']);if(x)x['click']();}delete d['DataUtils']['cached'][s['name']];delete window['PluginUpdates']['plugins'][u];delete s['started'];d['TimeUtils']['timeout'](c=>{delete s['stopping'];});};d['PluginUtils']['translate']=function(z){z['labels']={};if(typeof z['setLabelsByLanguage']==='function'||typeof z['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])C();else{var A=d['TimeUtils']['interval'](c=>{if(document['querySelector']('html')['lang']){d['TimeUtils']['clear'](A);C();}},0x64);}function C(){var D=d['LanguageUtils']['getLanguage']();if(typeof z['setLabelsByLanguage']==='function')z['labels']=z['setLabelsByLanguage'](D['id']);if(typeof z['changeLanguageStrings']==='function')z['changeLanguageStrings']();d['LogUtils']['log'](d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_translated',D['ownlang']),z['name']);}}};d['PluginUtils']['checkUpdate']=function(E,F){if(d['BDUtils']['isBDv2']()||!E||!F)return;i2['request'](F,(G,H,I)=>{if(G)return;var J=I['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!J)return;if(d['NumberUtils']['getVersionDifference'](J[0x0],window['PluginUpdates']['plugins'][F]['version'])>0.2){d['NotificationUtils']['toast'](E+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});d['PluginUtils']['downloadUpdate'](E,F);}else if(d['NumberUtils']['compareVersions'](J[0x0],window['PluginUpdates']['plugins'][F]['version']))d['PluginUtils']['showUpdateNotice'](E,F);else d['PluginUtils']['removeUpdateNotice'](E);});};d['PluginUtils']['checkAllUpdates']=function(){for(let K in window['PluginUpdates']['plugins']){var L=window['PluginUpdates']['plugins'][K];d['PluginUtils']['checkUpdate'](L['name'],L['raw']);}};d['PluginUtils']['showUpdateNotice']=function(M,N){if(!M||!N)return;var O=document['querySelector']('#pluginNotice');if(!O){O=d['NotificationUtils']['notice']('The\x20following\x20plugins\x20need\x20to\x20be\x20updated: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!d['BDUtils']['isAutoLoadEnabled']()?'Reload':'','customicon':''});O['style']['setProperty']('display','block','important');O['style']['setProperty']('visibility','visible','important');O['style']['setProperty']('opacity','1','important');O['querySelector'](d['dotCN']['noticedismiss'])['addEventListener']('click',c=>{d['DOMUtils']['remove']('.update-clickme-tooltip');});let Q=O['querySelector'](d['dotCN']['noticebutton']);if(Q){d['DOMUtils']['toggle'](Q,!![]);Q['addEventListener']('click',c=>{i2['electron']['remote']['getCurrentWindow']()['reload']();});Q['addEventListener']('mouseenter',c=>{if(window['PluginUpdates']['downloaded'])d['TooltipUtils']['create'](Q,window['PluginUpdates']['downloaded']['join'](',\x20'),{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(O){var T=O['querySelector']('#outdatedPlugins');if(T&&!T['querySelector']('#'+M+'-notice')){if(T['querySelector']('span'))T['appendChild'](d['DOMUtils']['create'](',\x20'));var U=d['DOMUtils']['create'](''+M+'');U['addEventListener']('click',c=>{d['PluginUtils']['downloadUpdate'](M,N);});T['appendChild'](U);if(!document['querySelector']('.update-clickme-tooltip'))d['TooltipUtils']['create'](T,'Click\x20us!',{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};d['PluginUtils']['removeUpdateNotice']=function(W,X=document['querySelector']('#pluginNotice')){if(!W||!X)return;var Y=X['querySelector']('#outdatedPlugins');if(Y){var Z=Y['querySelector']('#'+W+'-notice');if(Z){var a0=Z['nextSibling'];var a1=Z['prevSibling'];if(a0&&d['DOMUtils']['containsClass'](a0,'separator'))a0['remove']();else if(a1&&d['DOMUtils']['containsClass'](a1,'separator'))a1['remove']();Z['remove']();}if(!Y['querySelector']('span')){var a2=X['querySelector'](d['dotCN']['noticebutton']);if(a2){X['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';d['DOMUtils']['toggle'](a2,![]);}else X['querySelector'](d['dotCN']['noticedismiss'])['click']();}}};d['PluginUtils']['downloadUpdate']=function(a3,a4){if(!a3||!a4)return;i2['request'](a4,(a5,a6,a7)=>{if(a5)return d['LogUtils']['warn']('Unable\x20to\x20get\x20update\x20for\x20'+a3);d['InternalData']['creationTime']=0x0;var a8=a7['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);a8=a8['toString']()['replace'](/['"]/g,'');i2['fs']['writeFileSync'](i2['path']['join'](d['BDUtils']['getPluginsFolder'](),a4['split']('/')['slice'](-0x1)[0x0]),a7);d['NotificationUtils']['toast'](a3+'\x20v'+window['PluginUpdates']['plugins'][a4]['version']+'\x20has\x20been\x20replaced\x20by\x20'+a3+'\x20v'+a8+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var a9=document['querySelector']('#pluginNotice');if(a9){if(a9['querySelector'](d['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][a4]['version']=a8;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](a3))window['PluginUpdates']['downloaded']['push'](a3);}d['PluginUtils']['removeUpdateNotice'](a3,a9);}});};d['PluginUtils']['checkChangeLog']=function(aa){if(!d['ObjectUtils']['is'](aa)||!aa['changelog'])return;var ab=d['DataUtils']['load'](aa,'changelog');if(!ab['currentversion']||d['NumberUtils']['compareVersions'](aa['version'],ab['currentversion'])){ab['currentversion']=aa['version'];d['DataUtils']['save'](ab,aa,'changelog');d['PluginUtils']['openChangeLog'](aa);}};d['PluginUtils']['openChangeLog']=function(ac){if(!d['ObjectUtils']['is'](ac)||!ac['changelog'])return;var ad='',ae={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let af in ac['changelog']){af=af['toLowerCase']();var ag=d['disCN']['changelog'+af];if(ag){ad+='
'+ae[af]+'
';for(let ah of ac['changelog'][af])ad+='- '+ah[0x0]+''+(ah[0x1]?':\x20'+ah[0x1]+'.':'')+'
';ad+='
';}}if(ad)d['ModalUtils']['open'](ac,{'header':ac['name']+'\x20'+d['LanguageUtils']['LanguageStrings']['CHANGE_LOG'],'subheader':'Version\x20'+ac['version'],'children':d['ReactUtils']['elementToReact'](d['DOMUtils']['create'](ad)),'className':d['disCN']['modalchangelogmodal'],'contentClassName':d['disCNS']['changelogcontainer']+d['disCN']['modalminicontent']});};d['PluginUtils']['addLoadingIcon']=function(ai){if(!Node['prototype']['isPrototypeOf'](ai))return;d['DOMUtils']['addClass'](ai,d['disCN']['loadingicon']);let aj=document['querySelector'](d['dotCN']['app']+'>'+d['dotCN']['loadingiconwrapper']);if(!aj){aj=d['DOMUtils']['create']('');document['querySelector'](d['dotCN']['app'])['appendChild'](aj);let ak=new MutationObserver(al=>{if(!aj['firstElementChild'])d['DOMUtils']['remove'](aj);});ak['observe'](aj,{'childList':!![]});}aj['appendChild'](ai);};d['PluginUtils']['createSettingsPanel']=function(am,an){if(!d['ObjectUtils']['is'](am)||!an||!d['ReactUtils']['isValidElement'](an)&&!d['ArrayUtils']['is'](an)||d['ArrayUtils']['is'](an)&&!an['length'])return;let ao=d['DOMUtils']['create']('');d['ReactUtils']['render'](d['ReactUtils']['createElement'](xp['LibraryComponents']['SettingsPanel'],{'key':am['name']+'-settingspanel','title':am['name'],'children':an}),ao);return ao;};d['PluginUtils']['refreshSettingsPanel']=function(ap,aq,...ar){if(!d['ObjectUtils']['is'](ap)||typeof ap['getSettingsPanel']!='function'||!Node['prototype']['isPrototypeOf'](aq)||!aq['parentElement'])return;aq['parentElement']['appendChild'](ap['getSettingsPanel'](...ar));aq['remove']();};f['clearStartTimeout']=function(as){if(!d['ObjectUtils']['is'](as))return;d['TimeUtils']['clear'](as['startTimeout'],as['libLoadTimeout']);delete as['startTimeout'];delete as['libLoadTimeout'];};f['addSpecialListeners']=function(at){if(d['ObjectUtils']['is'](at)){if(typeof at['onSettingsClosed']==='function'){let au=d['ModuleUtils']['findByName']('StandardSidebarView');if(au)d['ModuleUtils']['patch'](at,au['prototype'],'componentWillUnmount',{'after':av=>{at['onSettingsClosed']();}});}if(typeof at['onSwitch']==='function'){let aw=document['querySelector'](d['dotCN']['guildswrapper']+'\x20~\x20*\x20>\x20'+d['dotCN']['chatspacer']);if(aw){let ax=new MutationObserver(ay=>{ay['forEach'](az=>{if(az['target']&&d['DOMUtils']['containsClass'](az['target'],d['disCN']['nochannel']))at['onSwitch']();});});d['ObserverUtils']['connect'](at,aw['querySelector'](d['dotCNC']['chat']+d['dotCN']['nochannel']),{'name':'switchFixNoChannelObserver','instance':ax},{'attributes':!![]});let aA=new MutationObserver(aB=>{aB['forEach'](aC=>{if(aC['addedNodes']){aC['addedNodes']['forEach'](aD=>{if(d['DOMUtils']['containsClass'](aD,d['disCN']['chat'],d['disCN']['nochannel'],![])){d['ObserverUtils']['connect'](at,aD,{'name':'switchFixNoChannelObserver','instance':ax},{'attributes':!![]});}});}});});d['ObserverUtils']['connect'](at,aw,{'name':'switchFixSpacerObserver','instance':aA},{'childList':!![]});}}f['addContextListeners'](at);}};d['ObserverUtils']={};d['ObserverUtils']['connect']=function(aE,aF,aG,aH={'childList':!![]}){if(!d['ObjectUtils']['is'](aE)||!aF||!aG)return;if(d['ObjectUtils']['isEmpty'](aE['observers']))aE['observers']={};if(!d['ArrayUtils']['is'](aE['observers'][aG['name']]))aE['observers'][aG['name']]=[];if(!aG['multi'])for(let aI of aE['observers'][aG['name']])aI['disconnect']();if(aG['instance'])aE['observers'][aG['name']]['push'](aG['instance']);var aJ=aE['observers'][aG['name']][aE['observers'][aG['name']]['length']-0x1];if(aJ){var aK=Node['prototype']['isPrototypeOf'](aF)?aF:typeof aF==='string'?document['querySelector'](aF):null;if(aK)aJ['observe'](aK,aH);}};d['ObserverUtils']['disconnect']=function(aL,aM){if(d['ObjectUtils']['is'](aL)&&!d['ObjectUtils']['isEmpty'](aL['observers'])){let aN=typeof aM=='string'?aM:d['ObjectUtils']['is'](aM)?aM['name']:null;if(!aN){for(let aM in aL['observers'])for(let aP of aL['observers'][aM])aP['disconnect']();delete aL['observers'];}else if(!d['ArrayUtils']['is'](aL['observers'][aN])){for(let aQ of aL['observers'][aN])aQ['disconnect']();delete aL['observers'][aN];}}};d['StoreChangeUtils']={};d['StoreChangeUtils']['add']=function(aR,aS,aT){if(!d['ObjectUtils']['is'](aR)||!d['ObjectUtils']['is'](aS)||typeof aS['addChangeListener']!='function'||typeof aT!='function')return;d['ListenerUtils']['remove'](aR,aS,aT);if(!d['ArrayUtils']['is'](aR['changeListeners']))aR['changeListeners']=[];aR['changeListeners']['push']({'store':aS,'callback':aT});aS['addChangeListener'](aT);};d['StoreChangeUtils']['remove']=function(aU,aV,aW){if(!d['ObjectUtils']['is'](aU)||!d['ArrayUtils']['is'](aU['changeListeners']))return;if(!aV){while(aU['changeListeners']['length']){let aX=aU['changeListeners']['pop']();aX['store']['removeChangeListener'](aX['callback']);}}else if(d['ObjectUtils']['is'](aV)&&typeof aV['addChangeListener']=='function'){if(!aW){for(let aY of aU['changeListeners']){let aZ=[];if(aY['store']==aV){aY['store']['removeChangeListener'](aY['callback']);aZ['push'](aY);}if(aZ['length'])aU['changeListeners']=aU['changeListeners']['filter'](aY=>!aZ['includes'](aY));}}else if(typeof aW=='function'){aV['removeChangeListener'](aW);aU['changeListeners']=aU['changeListeners']['filter'](b1=>b1['store']==aV&&b1['callback']==aW);}}};d['ListenerUtils']={};d['ListenerUtils']['add']=function(b2,b3,b4,b5,b6){if(!d['ObjectUtils']['is'](b2)||!Node['prototype']['isPrototypeOf'](b3)&&b3!==window||!b4)return;let b7=typeof b5=='function';let b8=b7?undefined:b5;let b9=b7?b5:b6;if(typeof b9!='function')return;d['ListenerUtils']['remove'](b2,b3,b4,b8);for(let ba of b4['split']('\x20')){ba=ba['split']('.');let bb=ba['shift']()['toLowerCase']();if(!bb)return;let bc=bb;bb=bb=='mouseenter'||bb=='mouseleave'?'mouseover':bb;let bd=(ba['join']('.')||'')+b2['name'];if(!d['ArrayUtils']['is'](b2['eventListeners']))b2['eventListeners']=[];let be=null;if(b8){if(bc=='mouseenter'||bc=='mouseleave'){be=bf=>{for(let bg of bf['path'])if(typeof bg['matches']=='function'&&bg['matches'](b8)&&!bg[bd+'BDFDB'+bc]){bg[bd+'BDFDB'+bc]=!![];if(bc=='mouseenter')b9(d['ListenerUtils']['copyEvent'](bf,bg));let bh=bi=>{if(bi['target']['contains'](bg)||bi['target']==bg||!bg['contains'](bi['target'])){if(bc=='mouseleave')b9(d['ListenerUtils']['copyEvent'](bf,bg));delete bg[bd+'BDFDB'+bc];document['removeEventListener']('mouseout',bh);}};document['addEventListener']('mouseout',bh);break;}};}else{be=bj=>{for(let bk of bj['path'])if(typeof bk['matches']=='function'&&bk['matches'](b8)){b9(d['ListenerUtils']['copyEvent'](bj,bk));break;}};}}else be=bl=>{b9(d['ListenerUtils']['copyEvent'](bl,b3));};b2['eventListeners']['push']({'ele':b3,'eventname':bb,'origeventname':bc,'namespace':bd,'selector':b8,'eventcallback':be});b3['addEventListener'](bb,be,!![]);}};d['ListenerUtils']['remove']=function(bm,bn,bo='',bp){if(!d['ObjectUtils']['is'](bm)||!d['ArrayUtils']['is'](bm['eventListeners']))return;if(!bn){while(bm['eventListeners']['length']){let bq=bm['eventListeners']['pop']();bq['ele']['removeEventListener'](bq['eventname'],bq['eventcallback'],!![]);}}else if(Node['prototype']['isPrototypeOf'](bn)||bn===window){for(let br of bo['split']('\x20')){br=br['split']('.');let bs=br['shift']()['toLowerCase']();let bt=(br['join']('.')||'')+bm['name'];for(let bq of bm['eventListeners']){let bv=[];if(bq['ele']==bn&&(!bs||bq['origeventname']==bs)&&bq['namespace']==bt&&(bp===undefined||bq['selector']==bp)){bq['ele']['removeEventListener'](bq['eventname'],bq['eventcallback'],!![]);bv['push'](bq);}if(bv['length'])bm['eventListeners']=bm['eventListeners']['filter'](bq=>!bv['includes'](bq));}}}};d['ListenerUtils']['multiAdd']=function(bx,by,bz){if(!Node['prototype']['isPrototypeOf'](bx)||!by||typeof bz!='function')return;for(let bA of by['trim']()['split']('\x20')['filter'](bB=>bB))bx['addEventListener'](bA,bz,!![]);};d['ListenerUtils']['multiRemove']=function(bC,bD,bE){if(!Node['prototype']['isPrototypeOf'](bC)||!bD||typeof bE!='function')return;for(let bF of bD['trim']()['split']('\x20')['filter'](bG=>bG))bC['removeEventListener'](bF,bE,!![]);};d['ListenerUtils']['addToChildren']=function(bH,bI,bJ,bK){if(!Node['prototype']['isPrototypeOf'](bH)||!bI||!bJ||!bJ['trim']()||typeof bK!='function')return;for(let bL of bI['trim']()['split']('\x20')['filter'](bM=>bM)){let bN=bK;if(bL=='mouseenter'||bL=='mouseleave')bN=bO=>{if(bO['target']['matches'](bJ))bK(bO);};bH['querySelectorAll'](bJ['trim']())['forEach'](bP=>{bP['addEventListener'](bL,bN,!![]);});}};d['ListenerUtils']['copyEvent']=function(bQ,bR){if(!bQ||!bQ['constructor']||!bQ['type'])return bQ;var bS=new bQ['constructor'](bQ['type'],bQ);Object['defineProperty'](bS,'originalEvent',{'value':bQ});Object['defineProperty'](bS,'which',{'value':bQ['which']});Object['defineProperty'](bS,'keyCode',{'value':bQ['keyCode']});Object['defineProperty'](bS,'path',{'value':bQ['path']});Object['defineProperty'](bS,'relatedTarget',{'value':bQ['relatedTarget']});Object['defineProperty'](bS,'srcElement',{'value':bQ['srcElement']});Object['defineProperty'](bS,'target',{'value':bQ['target']});Object['defineProperty'](bS,'toElement',{'value':bQ['toElement']});if(bR)Object['defineProperty'](bS,'currentTarget',{'value':bR});return bS;};d['ListenerUtils']['stopEvent']=function(bT){if(d['ObjectUtils']['is'](bT)){if(typeof bT['preventDefault']=='function')bT['preventDefault']();if(typeof bT['stopPropagation']=='function')bT['stopPropagation']();if(typeof bT['stopImmediatePropagation']=='function')bT['stopImmediatePropagation']();if(d['ObjectUtils']['is'](bT['originalEvent'])){if(typeof bT['originalEvent']['preventDefault']=='function')bT['originalEvent']['preventDefault']();if(typeof bT['originalEvent']['stopPropagation']=='function')bT['originalEvent']['stopPropagation']();if(typeof bT['originalEvent']['stopImmediatePropagation']=='function')bT['originalEvent']['stopImmediatePropagation']();}}};var bU=[],bV={'queue':[],'running':![]};d['NotificationUtils']={};d['NotificationUtils']['toast']=function(bW,bX={}){let bY=document['querySelector']('.toasts,\x20.bd-toasts');if(!bY){let bZ=document['querySelector'](d['dotCN']['channels']+'\x20+\x20div');let c0=bZ?d['DOMUtils']['getRects'](bZ):null;let c1=bZ?bZ['querySelector'](d['dotCN']['memberswrap']):null;let c2=c0?c0['left']:0x136;let c3=c0?c1?c0['width']-d['DOMUtils']['getRects'](c1)['width']:c0['width']:window['outerWidth']-0x0;let c4=bZ?bZ['querySelector']('form'):null;let c5=c4?d['DOMUtils']['getRects'](c4)['height']:0x50;bY=d['DOMUtils']['create']('');(document['querySelector'](d['dotCN']['app'])||document['body'])['appendChild'](bY);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bX;let c6=d['DOMUtils']['create'](''+(html===!![]?bW:d['StringUtils']['htmlEscape'](bW))+'
');if(type){d['DOMUtils']['addClass'](c6,'toast-'+type);if(icon)d['DOMUtils']['addClass'](c6,'icon');}else if(color){let c7=d['ColorUtils']['convert'](color,'RGB');if(c7)c6['style']['setProperty']('background-color',c7);}d['DOMUtils']['addClass'](c6,selector);bY['appendChild'](c6);c6['close']=c=>{if(document['contains'](c6)){d['DOMUtils']['addClass'](c6,'closing');c6['style']['setProperty']('pointer-events','none','important');d['TimeUtils']['timeout'](c=>{c6['remove']();if(!bY['querySelectorAll']('.toast,\x20.bd-toast')['length'])bY['remove']();},0xbb8);}};if(nopointer)c6['style']['setProperty']('pointer-events','none','important');else c6['addEventListener']('click',c6['close']);d['TimeUtils']['timeout'](c=>{c6['close']();},timeout>0x0?timeout:0x927c0);return c6;};d['NotificationUtils']['desktop']=function(cb,cc={}){var cd=c=>{bV['queue']['push']({'parsedcontent':cb,'parsedoptions':cc});cf();};var cf=c=>{if(!bV['running']){var ch=bV['queue']['shift']();if(ch)ci(ch['parsedcontent'],ch['parsedoptions']);}};var ci=(cj,ck)=>{bV['running']=!![];var cl=ck['silent'];ck['silent']=ck['silent']||ck['sound']?!![]:![];var cm=new Notification(cj,ck);var cn=new Audio();var co=d['TimeUtils']['timeout'](c=>{cr();},ck['timeout']?ck['timeout']:0xbb8);if(typeof ck['click']=='function')cm['onclick']=c=>{d['TimeUtils']['clear'](co);cr();ck['click']();};if(!cl&&ck['sound']){cn['src']=ck['sound'];cn['play']();}var cr=c=>{cn['pause']();cm['close']();bV['running']=![];d['TimeUtils']['timeout'](c=>{cf();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')cd();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(cu){if(cu==='granted')cd();});};d['NotificationUtils']['notice']=function(cv,cw={}){if(!cv)return;var cx=document['querySelector'](d['dotCN']['layers']);if(!cx)return;var cy=d['NumberUtils']['generateId'](bU);var cz=d['DOMUtils']['create']('');cx['parentElement']['insertBefore'](cz,cx);var cA=cz['querySelector']('.notice-message');if(cw['platform'])for(let cB of cw['platform']['split']('\x20'))if(wt['noticeicon'+cB]){let cC=d['DOMUtils']['create']('');d['DOMUtils']['addClass'](cC,d['disCN']['noticeplatformicon']);d['DOMUtils']['removeClass'](cC,d['disCN']['noticeicon']);cz['insertBefore'](cC,cA);}if(cw['customicon']){let cD=d['DOMUtils']['create'](cw['customicon']);let cC=d['DOMUtils']['create']('');if(cD['tagName']=='span'&&!cD['firstElementChild'])cC['style']['setProperty']('background','url('+cw['customicon']+')\x20center/cover\x20no-repeat');else cC['appendChild'](cD);d['DOMUtils']['addClass'](cC,d['disCN']['noticeplatformicon']);d['DOMUtils']['removeClass'](cC,d['disCN']['noticeicon']);cz['insertBefore'](cC,cA);}if(cw['btn']||cw['button'])cz['appendChild'](d['DOMUtils']['create'](''));if(cw['id'])cz['id']=cw['id']['split']('\x20')['join']('');if(cw['selector'])d['DOMUtils']['addClass'](cz,cw['selector']);if(cw['css'])d['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbar'+cy,cw['css']);if(cw['style'])cz['style']=cw['style'];if(cw['html']===!![])cA['innerHTML']=cv;else{var cF=document['createElement']('a');var cG=[];for(let cH of cv['split']('\x20')){var cI=d['StringUtils']['htmlEscape'](cH);cF['href']=cH;cG['push'](cF['host']&&cF['host']!==window['location']['host']?'':cI);}cA['innerHTML']=cG['join']('\x20');}var cJ=null;if(cw['type']&&!document['querySelector'](d['dotCNS']['chatbase']+d['dotCN']['noticestreamer'])){if(cJ=d['disCN']['notice'+cw['type']])d['DOMUtils']['addClass'](cz,cJ);if(cw['type']=='premium'){var cK=cz['querySelector'](d['dotCN']['noticebutton']);if(cK)d['DOMUtils']['addClass'](cK,d['disCN']['noticepremiumaction']);d['DOMUtils']['addClass'](cA,d['disCN']['noticepremiumtext']);cz['insertBefore'](d['DOMUtils']['create'](''),cA);}}if(!cJ){var cL=d['ColorUtils']['convert'](cw['color'],'RGBCOMP');if(cL){var cM=cL[0x0]>0xb4&&cL[0x1]>0xb4&&cL[0x2]>0xb4?'#000':'#FFF';var cN=d['ColorUtils']['convert'](cL,'HEX');var cO=cL[0x0]>0xb4&&cL[0x1]>0xb4&&cL[0x2]>0xb4?'brightness(0%)':'brightness(100%)';d['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cy,d['dotCN']['noticewrapper']+'[notice-id=\x22'+cy+'\x22]{background-color:'+cN+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+cy+'\x22]\x20.notice-message\x20{color:'+cM+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+cy+'\x22]\x20'+d['dotCN']['noticebutton']+'\x20{color:'+cM+'\x20!important;border-color:'+d['ColorUtils']['setAlpha'](cM,0.25,'RGBA')+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+cy+'\x22]\x20'+d['dotCN']['noticebutton']+':hover\x20{color:'+cN+'\x20!important;background-color:'+cM+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+cy+'\x22]\x20'+d['dotCN']['noticedismiss']+'\x20{filter:'+cO+'\x20!important;}');}else d['DOMUtils']['addClass'](cz,d['disCN']['noticedefault']);}cz['style']['setProperty']('height','36px','important');cz['style']['setProperty']('min-width','70vw','important');cz['style']['setProperty']('left','unset','important');cz['style']['setProperty']('right','unset','important');let cP=(d['DOMUtils']['getWidth'](document['body']['firstElementChild'])-d['DOMUtils']['getWidth'](cz))/0x2;cz['style']['setProperty']('left',cP+'px','important');cz['style']['setProperty']('right',cP+'px','important');cz['style']['setProperty']('min-width','unset','important');cz['style']['setProperty']('width','unset','important');cz['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cP*0x2+'px)','important');cz['querySelector'](d['dotCN']['noticedismiss'])['addEventListener']('click',c=>{cz['style']['setProperty']('overflow','hidden','important');cz['style']['setProperty']('height','0px','important');d['TimeUtils']['timeout'](c=>{d['ArrayUtils']['remove'](bU,cy);d['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbar'+cy);d['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cy);cz['remove']();},0x1f4);});return cz;};d['NotificationUtils']['alert']=function(cS,cT){if(typeof cS=='string'&&typeof cS=='string'&&window['BdApi']&&typeof BdApi['alert']=='function')BdApi['alert'](cS,cT);};var cU=[];d['TooltipUtils']={};d['TooltipUtils']['create']=function(cV,cW,cX={}){let cY=document['querySelector'](d['dotCN']['appmount']+'\x20>\x20*\x20>\x20'+d['dotCN']['itemlayercontainer']);if(!cY||typeof cW!='string'&&!d['ObjectUtils']['is'](cX['guild'])||!Node['prototype']['isPrototypeOf'](cV)||!document['contains'](cV))return null;let cZ=d['NumberUtils']['generateId'](cU);let d0=d['DOMUtils']['create']('');cY['appendChild'](d0);let d1=d0['firstElementChild'];if(cX['id'])d1['id']=cX['id']['split']('\x20')['join']('');if(!cX['type']||!d['disCN']['tooltip'+cX['type']['toLowerCase']()])cX['type']='top';d['DOMUtils']['addClass'](d1,d['disCN']['tooltip'+cX['type']['toLowerCase']()]);d1['type']=cX['type']['toLowerCase']();let d2=![],d3=![],d4='';if(cX['style'])d4+=cX['style'];if(cX['fontColor']){d2=d['ObjectUtils']['is'](cX['fontColor']);if(!d2)d4=(d4?d4+'\x20':'')+('color:\x20'+d['ColorUtils']['convert'](cX['fontColor'],'RGBA')+'\x20!important;');}if(cX['backgroundColor']){d3=!![];let d5=d['ObjectUtils']['is'](cX['backgroundColor']);let d6=!d5?d['ColorUtils']['convert'](cX['backgroundColor'],'RGBA'):d['ColorUtils']['createGradient'](cX['backgroundColor']);d4=(d4?d4+'\x20':'')+('background:\x20'+d6+'\x20!important;\x20border-color:\x20'+(d5?d['ColorUtils']['convert'](cX['backgroundColor'][cX['type']=='left'?0x64:0x0],'RGBA'):d6)+'\x20!important;');}if(d4)d1['style']=d4;if(typeof cX['zIndex']=='number'){d0['style']['setProperty']('z-index',cX['zIndex'],'important');d1['style']['setProperty']('z-index',cX['zIndex'],'important');}if(d3)d['DOMUtils']['addClass'](d1,d['disCN']['tooltipcustom']);else if(cX['color']&&d['disCN']['tooltip'+cX['color']['toLowerCase']()])d['DOMUtils']['addClass'](d1,d['disCN']['tooltip'+cX['color']['toLowerCase']()]);else d['DOMUtils']['addClass'](d1,d['disCN']['tooltipblack']);if(cX['list']||d['ObjectUtils']['is'](cX['guild']))d['DOMUtils']['addClass'](d1,d['disCN']['tooltiplistitem']);if(cX['selector'])d['DOMUtils']['addClass'](d1,cX['selector']);if(d['ObjectUtils']['is'](cX['guild'])){let d7=i5['StreamUtils']['getAllApplicationStreams']()['filter'](d8=>d8['guildId']===cX['guild']['id'])['map'](d9=>d9['ownerId']);let da=d7['map'](db=>i5['UserStore']['getUser'](db))['filter'](dc=>dc);let dd=Object['keys'](i5['VoiceUtils']['getVoiceStates'](cX['guild']['id']))['map'](de=>!d7['includes'](de)&&d['LibraryModules']['UserStore']['getUser'](de))['filter'](df=>df);let dg=cW||cX['guild']['toString']();if(d2)dg=''+d['StringUtils']['htmlEscape'](dg)+'';d['ReactUtils']['render'](d['ReactUtils']['createElement'](d['ReactUtils']['Fragment'],{'children':[d['ReactUtils']['createElement']('div',{'className':d['DOMUtils']['formatClassName'](d['disCN']['tooltiprow'],d['disCN']['tooltiprowguildname']),'children':[d['ReactUtils']['createElement'](xp['LibraryComponents']['GuildComponents']['Badge'],{'guild':cX['guild'],'size':i5['StringUtils']['cssValueToNumber'](wi['TooltipGuild']['iconSize']),'className':d['disCN']['tooltiprowicon']}),d['ReactUtils']['createElement']('span',{'className':d['DOMUtils']['formatClassName'](d['disCN']['tooltipguildnametext'],(dd['length']||da['length'])&&d['disCN']['tooltipguildnametextlimitedsize']),'children':d2||cX['html']?d['ReactUtils']['elementToReact'](d['DOMUtils']['create'](dg)):dg})]}),dd['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](xp['LibraryComponents']['SvgIcon'],{'name':xp['LibraryComponents']['SvgIcon']['Names']['SPEAKER'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](xp['LibraryComponents']['UserSummaryItem'],{'users':dd,'max':0x6})]}):null,da['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](xp['LibraryComponents']['SvgIcon'],{'name':xp['LibraryComponents']['SvgIcon']['Names']['STREAM'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](xp['LibraryComponents']['UserSummaryItem'],{'users':da,'max':0x6})]}):null]['filter'](dh=>dh)}),d1);}else{if(d2)d1['innerHTML']=''+d['StringUtils']['htmlEscape'](cW)+'';else if(cX['html']===!![])d1['innerHTML']=cW;else d1['innerText']=cW;}d1['appendChild'](d['DOMUtils']['create'](''));d1['anker']=cV;if(cX['hide'])d['DOMUtils']['appendLocalStyle']('BDFDBhideOtherTooltips'+cZ,'#app-mount\x20'+d['dotCN']['tooltip']+':not([tooltip-id=\x22'+cZ+'\x22])\x20{display:\x20none\x20!important;}',cY);let di=c=>{d['DOMUtils']['remove'](d0);};cV['addEventListener']('mouseleave',di);let dk=new MutationObserver(dl=>dl['forEach'](dm=>{let dn=Array['from'](dm['removedNodes']);if(dn['indexOf'](d0)>-0x1||dn['indexOf'](cV)>-0x1||dn['some'](dp=>dp['contains'](cV))){d['ArrayUtils']['remove'](cU,cZ);dk['disconnect']();d['DOMUtils']['remove'](d0);d['DOMUtils']['removeLocalStyle']('BDFDBhideOtherTooltips'+cZ,cY);cV['removeEventListener']('mouseleave',di);}}));dk['observe'](document['body'],{'subtree':!![],'childList':!![]});d['TooltipUtils']['update'](d1);if(cX['delay']){d['DOMUtils']['toggle'](d0);d['TimeUtils']['timeout'](c=>{d['DOMUtils']['toggle'](d0);},cX['delay']);}return d0;};d['TooltipUtils']['update']=function(dr){if(!Node['prototype']['isPrototypeOf'](dr))return;let ds=d['DOMUtils']['getParent'](d['dotCN']['itemlayer'],dr);if(!Node['prototype']['isPrototypeOf'](ds))return;dr=ds['querySelector'](d['dotCN']['tooltip']);if(!Node['prototype']['isPrototypeOf'](dr)||!Node['prototype']['isPrototypeOf'](dr['anker'])||!dr['type'])return;var dt=dr['querySelector'](d['dotCN']['tooltippointer']);var du,dv,dw=d['DOMUtils']['getRects'](dr['anker']),dx=d['DOMUtils']['getRects'](ds),dy=d['DOMUtils']['getRects'](document['querySelector'](d['dotCN']['appmount'])),dz={'height':0xa,'width':0xa};switch(dr['type']){case'top':dv=dw['top']-dx['height']-dz['height']+0x2;du=dw['left']+(dw['width']-dx['width'])/0x2;break;case'bottom':dv=dw['top']+dw['height']+dz['height']-0x2;du=dw['left']+(dw['width']-dx['width'])/0x2;break;case'left':dv=dw['top']+(dw['height']-dx['height'])/0x2;du=dw['left']-dx['width']-dz['width']+0x2;break;case'right':dv=dw['top']+(dw['height']-dx['height'])/0x2;du=dw['left']+dw['width']+dz['width']-0x2;break;}ds['style']['setProperty']('top',dv+'px');ds['style']['setProperty']('left',du+'px');dt['style']['removeProperty']('margin-left');dt['style']['removeProperty']('margin-top');if(dr['type']=='top'||dr['type']=='bottom'){if(du<0x0){ds['style']['setProperty']('left','5px');dt['style']['setProperty']('margin-left',du-0xa+'px');}else{var dA=dy['width']-(du+dx['width']);if(dA<0x0){ds['style']['setProperty']('left',dy['width']-dx['width']-0x5+'px');dt['style']['setProperty']('margin-left',-0x1*dA+'px');}}}else if(dr['type']=='left'||dr['type']=='right'){if(dv<0x0){ds['style']['setProperty']('top','5px');dt['style']['setProperty']('margin-top',dv-0xa+'px');}else{var dB=dy['height']-(dv+dx['height']);if(dB<0x0){ds['style']['setProperty']('top',dy['height']-dx['height']-0x5+'px');dt['style']['setProperty']('margin-top',-0x1*dB+'px');}}}};d['ObjectUtils']={};d['ObjectUtils']['is']=function(dC){return dC&&Object['prototype']['isPrototypeOf'](dC)&&!Array['prototype']['isPrototypeOf'](dC);};d['ObjectUtils']['extract']=function(dD,...dE){let dF={};if(d['ObjectUtils']['is'](dD))for(let dG of dE['flat'](0xa)['filter'](dH=>dH))if(dD[dG])dF[dG]=dD[dG];return dF;};d['ObjectUtils']['exclude']=function(dI,...dJ){let dK=Object['assign']({},dI);d['ObjectUtils']['delete'](dK,...dJ);return dK;};d['ObjectUtils']['delete']=function(dL,...dM){if(d['ObjectUtils']['is'](dL))for(let dN of dM['flat'](0xa)['filter'](dO=>dO))delete dL[dN];};d['ObjectUtils']['sort']=function(dP,dQ,dR){if(!d['ObjectUtils']['is'](dP))return{};var dS={};if(dQ===undefined||!dQ)for(let dT of Object['keys'](dP)['sort']())dS[dT]=dP[dT];else{let dU=[];for(let dT in dP)dU['push'](dP[dT]);dU=d['ArrayUtils']['keySort'](dU,dQ,dR);for(let dW of dU)for(let dT in dP)if(d['equals'](dW,dP[dT])){dS[dT]=dW;break;}}return dS;};d['ObjectUtils']['reverse']=function(dY,dZ){if(!d['ObjectUtils']['is'](dY))return{};var e0={};for(let e1 of dZ===undefined||!dZ?Object['keys'](dY)['reverse']():Object['keys'](dY)['sort']()['reverse']())e0[e1]=dY[e1];return e0;};d['ObjectUtils']['filter']=function(e2,e3,e4=![]){if(!d['ObjectUtils']['is'](e2))return{};if(typeof e3!='function')return e2;return Object['keys'](e2)['filter'](e5=>e3(e4?e5:e2[e5]))['reduce']((e6,e7)=>(e6[e7]=e2[e7],e6),{});};d['ObjectUtils']['push']=function(e8,e9){if(d['ObjectUtils']['is'](e8))e8[Object['keys'](e8)['length']]=e9;};d['ObjectUtils']['pop']=function(ea,eb){if(d['ObjectUtils']['is'](ea)){let ec=Object['keys'](ea);if(!ec['length'])return;let eb=ea[ec[ec['length']-0x1]];delete ea[ec[ec['length']-0x1]];return eb;}};d['ObjectUtils']['map']=function(ee,ef){if(!d['ObjectUtils']['is'](ee))return{};if(typeof ef!='string'&&typeof ef!='function')return ee;var eg={};for(let eh in ee)if(d['ObjectUtils']['is'](ee[eh]))eg[eh]=typeof ef=='string'?ee[eh][ef]:ef(ee[eh],eh);return eg;};d['ObjectUtils']['toArray']=function(ei){if(!d['ObjectUtils']['is'](ei))return[];return Object['entries'](ei)['map'](ej=>ej[0x1]);};d['ObjectUtils']['deepAssign']=function(ek,...el){if(!el['length'])return ek;let em=el['shift']();if(d['ObjectUtils']['is'](ek)&&d['ObjectUtils']['is'](em)){for(let en in em){if(d['ObjectUtils']['is'](em[en])){if(!ek[en])Object['assign'](ek,{[en]:{}});d['ObjectUtils']['deepAssign'](ek[en],em[en]);}else Object['assign'](ek,{[en]:em[en]});}}return d['ObjectUtils']['deepAssign'](ek,...el);};d['ObjectUtils']['isEmpty']=function(eo){return!d['ObjectUtils']['is'](eo)||Object['getOwnPropertyNames'](eo)['length']==0x0;};d['ArrayUtils']={};d['ArrayUtils']['is']=function(ep){return ep&&Array['isArray'](ep);};d['ArrayUtils']['sum']=function(eq){return Array['isArray'](eq)?eq['reduce']((er,es)=>er+Math['round'](es),0x0):0x0;};d['ArrayUtils']['keySort']=function(et,eu,ev){if(!d['ArrayUtils']['is'](et))return[];if(eu==null)return et;if(ev===undefined)ev=null;return et['sort']((ew,ex)=>{var ey=ew[eu],ez=ex[eu];if(ey!==ev)return eyez?0x1:0x0;});};d['ArrayUtils']['numSort']=function(eA){return eA['sort']((eB,eC)=>{return eBeC?0x1:0x0;});};d['ArrayUtils']['remove']=function(eD,eE,eF=![]){if(!d['ArrayUtils']['is'](eD))return[];if(!eD['includes'](eE))return eD;if(!eF)eD['splice'](eD['indexOf'](eE),0x1);else while(eD['indexOf'](eE)>-0x1)eD['splice'](eD['indexOf'](eE),0x1);return eD;};d['ArrayUtils']['getAllIndexes']=function(eG,eH){if(!d['ArrayUtils']['is'](eG)&&typeof eG!='string')return[];var eI=[],eJ=-0x1;while((eJ=eG['indexOf'](eH,eJ+0x1))!==-0x1)eI['push'](eJ);return eI;};d['ArrayUtils']['removeCopies']=function(eK){if(!d['ArrayUtils']['is'](eK))return[];return[...new Set(eK)];};d['ModuleUtils']={};d['ModuleUtils']['cached']=window['BDFDB']&&window['BDFDB']['ModuleUtils']&&window['BDFDB']['ModuleUtils']['cached']||{};d['ModuleUtils']['find']=function(eL,eM){eM=typeof eM!='boolean'?!![]:eM;let eN=f['getWebModuleReq']();for(let eO in eN['c'])if(eN['c']['hasOwnProperty'](eO)){let eP=eN['c'][eO]['exports'];if(eP&&(typeof eP=='object'||typeof eP=='function')&&eL(eP))return eM?eP:eN['c'][eO];if(eP&&eP['__esModule']){for(let eQ in eP)if(eP[eQ]&&(typeof eP[eQ]=='object'||typeof eP[eQ]=='function')&&eL(eP[eQ]))return eM?eP[eQ]:eN['c'][eO];if(eP['default']&&(typeof eP['default']=='object'||typeof eP['default']=='function'))for(let eR in eP['default'])if(eP['default'][eR]&&(typeof eP['default'][eR]=='object'||typeof eP['default'][eR]=='function')&&eL(eP['default'][eR]))return eM?eP['default'][eR]:eN['c'][eO];}}};d['ModuleUtils']['findByProperties']=function(...eS){eS=eS['flat'](0xa);let eT=eS['pop']();if(typeof eT!='boolean'){eS['push'](eT);eT=!![];}return f['findModule']('prop',JSON['stringify'](eS),eU=>eS['every'](eV=>eU[eV]!==undefined),eT);};d['ModuleUtils']['findByName']=function(eW,eX){return f['findModule']('name',JSON['stringify'](eW),eY=>eY['displayName']===eW||eY['render']&&eY['render']['displayName']===eW,typeof eX!='boolean'?!![]:eX);};d['ModuleUtils']['findByString']=function(...eZ){eZ=eZ['flat'](0xa);let f0=eZ['pop']();if(typeof f0!='boolean'){eZ['push'](f0);f0=!![];}return f['findModule']('string',JSON['stringify'](eZ),f1=>eZ['every'](f2=>typeof f1=='function'&&(f1['toString']()['indexOf'](f2)>-0x1||typeof f1['__originalMethod']=='function'&&f1['__originalMethod']['toString']()['indexOf'](f2)>-0x1||typeof f1['__originalFunction']=='function'&&f1['__originalFunction']['toString']()['indexOf'](f2)>-0x1)||d['ObjectUtils']['is'](f1)&&typeof f1['type']=='function'&&f1['type']['toString']()['indexOf'](f2)>-0x1),f0);};d['ModuleUtils']['findByPrototypes']=function(...f3){f3=f3['flat'](0xa);let f4=f3['pop']();if(typeof f4!='boolean'){f3['push'](f4);f4=!![];}return f['findModule']('proto',JSON['stringify'](f3),f5=>f5['prototype']&&f3['every'](f6=>f5['prototype'][f6]!==undefined),f4);};f['findModule']=function(f7,f8,f9,fa){if(!d['ObjectUtils']['is'](d['ModuleUtils']['cached'][f7]))d['ModuleUtils']['cached'][f7]={'module':{},'export':{}};if(fa&&d['ModuleUtils']['cached'][f7]['export'][f8])return d['ModuleUtils']['cached'][f7]['export'][f8];else if(!fa&&d['ModuleUtils']['cached'][f7]['module'][f8])return d['ModuleUtils']['cached'][f7]['module'][f8];else{var fb=d['ModuleUtils']['find'](f9,fa);if(fb){if(fa)d['ModuleUtils']['cached'][f7]['export'][f8]=fb;else d['ModuleUtils']['cached'][f7]['module'][f8]=fb;return fb;}else d['LogUtils']['warn'](f8+'\x20['+f7+']\x20not\x20found\x20in\x20WebModules');}};f['getWebModuleReq']=function(){if(!f['getWebModuleReq']['req']){const fc='BDFDB-WebModules';const fd=window['webpackJsonp']['push']([[],{[fc]:(fe,ff,fd)=>fe['exports']=fd},[[fc]]]);delete fd['m'][fc];delete fd['c'][fc];f['getWebModuleReq']['req']=fd;}return f['getWebModuleReq']['req'];};var fh={};fh['Patchtypes']=['before','instead','after'];fh['Patchmap']={'BannedCard':'BannedUser','ChannelWindow':'Channel','InvitationCard':'InviteRow','InviteCard':'InviteRow','MemberCard':'Member','PopoutContainer':'Popout','QuickSwitchResult':'Result','UserProfile':'UserProfileBody','WebhookCard':'Webhook'};fh['ForceObserve']=['DirectMessage','GuildIcon'];fh['NonRender']=['ContextMenuItem','DiscordTag','InviteModalUserRow','Mention','Message','MessageHeader','MessageTimestamp','NameTag','NowPlayingItem','PrivateChannelEmptyMessage','SystemMessage','SimpleMessageAccessories','UserInfo'];fh['PropsFind']=['UnavailableGuildsButton'];fh['MemoComponent']=['MessageContent','NowPlayingHeader'];fh['NonPrototype']=[]['concat'](fh['NonRender'],fh['PropsFind'],fh['MemoComponent'],['ChannelTextAreaContainer']);fh['LoadedInComponents']={'AutocompleteChannelResult':'LibraryComponents.AutocompleteItems.Channel','AutocompleteUserResult':'LibraryComponents.AutocompleteItems.User','ContextMenuItem':'NativeSubComponents.ContextMenuItem','MessageHeader':'LibraryComponents.MessageHeader','QuickSwitchChannelResult':'LibraryComponents.QuickSwitchItems.Channel','QuickSwitchGroupDMResult':'LibraryComponents.QuickSwitchItems.GroupDM','QuickSwitchGuildResult':'LibraryComponents.QuickSwitchItems.Guild','QuickSwitchUserResult':'LibraryComponents.QuickSwitchItems.User'};fh['Patchfinder']={'Account':'accountinfo','App':'app','AppSkeleton':'app','AppView':'appcontainer','AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','ChannelTextAreaForm':'chatform','ChannelWindow':'chatcontent','DirectMessage':'guildouter','EmojiPicker':'emojipicker','Guild':'guildouter','GuildIcon':'avataricon','GuildSettingsBans':'guildsettingsbannedcard','GuildSettingsEmoji':'guildsettingsemojicard','GuildSettingsMembers':'guildsettingsmembercard','GuildSidebar':'guildchannels','I18nLoaderWrapper':'app','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','Popouts':'popouts','PrivateChannelCall':'callcurrentcontainer','PrivateChannelCallParticipants':'callcurrentcontainer','PrivateChannelRecipientsInvitePopout':'searchpopoutdmaddpopout','PrivateChannelsList':'dmchannelsscroller','QuickSwitchChannelResult':'quickswitchresult','QuickSwitchGuildResult':'quickswitchresult','QuickSwitchResult':'quickswitchresult','MemberCard':'guildsettingsmembercard','Messages':'messages','MessagesPopout':'messagespopout','ModalLayer':'layermodal','MutualGuilds':'userprofilebody','MutualFriends':'userprofilebody','NameTag':'nametag','Note':'usernote','SearchResults':'searchresultswrap','TypingUsers':'typing','UnreadDMs':'guildsscroller','Upload':'uploadmodal','UserHook':'auditloguserhook','UserPopout':'userpopout','UserProfile':'userprofile','V2C_ContentColumn':'contentcolumn','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};fh['GlobalModules']={};try{fh['GlobalModules']['V2C_ContentColumn']=V2C_ContentColumn;}catch(fi){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ContentColumn\x22');}try{fh['GlobalModules']['V2C_List']=V2C_List;}catch(fj){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_List\x22');}try{fh['GlobalModules']['V2C_PluginCard']=V2C_PluginCard;}catch(fk){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_PluginCard\x22');}try{fh['GlobalModules']['V2C_ThemeCard']=V2C_ThemeCard;}catch(fl){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ThemeCard\x22');}d['ModuleUtils']['isPatched']=function(fm,fn,fo){if(!fm||!d['ObjectUtils']['is'](fn)||!fn['BDFDBpatch']||!fo)return![];const fp=(typeof fm==='string'?fm:fm['name'])['toLowerCase']();return fp&&fn[fo]&&fn[fo]['__isBDFDBpatched']&&fn['BDFDBpatch'][fo]&&d['ObjectUtils']['toArray'](fn['BDFDBpatch'][fo])['some'](fq=>d['ObjectUtils']['toArray'](fq)['some'](fr=>Object['keys'](fr)['includes'](fp)));};d['ModuleUtils']['patch']=function(fs,ft,fu,fv,fw=![]){if(!fs||!d['ObjectUtils']['is'](ft)||!fu||!d['ObjectUtils']['is'](fv))return null;fv=d['ObjectUtils']['filter'](fv,fx=>fh['Patchtypes']['includes'](fx),!![]);if(d['ObjectUtils']['isEmpty'](fv))return null;const fy=typeof fs==='string'?fs:fs['name'];const fz=fy['toLowerCase']();const fA=d['ObjectUtils']['is'](fs)&&!isNaN(fs['patchPriority'])?fs['patchPriority']<0x0?0x0:fs['patchPriority']>0xa?0xa:Math['round'](fs['patchPriority']):0x5;if(!d['ObjectUtils']['is'](ft['BDFDBpatch']))ft['BDFDBpatch']={};fu=[fu]['flat'](0xa)['filter'](fB=>fB);for(let fC of fu)if(ft[fC]==null||typeof ft[fC]=='function'){let fD=0x0;if(!ft['BDFDBpatch'][fC]||fw&&(!ft[fC]||!ft[fC]['__isBDFDBpatched'])){if(!ft['BDFDBpatch'][fC]){ft['BDFDBpatch'][fC]={};for(let fE of fh['Patchtypes'])ft['BDFDBpatch'][fC][fE]={};}if(!ft[fC])ft[fC]=c=>{};const fG=ft[fC];ft['BDFDBpatch'][fC]['originalMethod']=fG;ft[fC]=function(){let fH=![],fI=![];const fJ={'thisObject':this,'methodArguments':arguments,'originalMethod':fG,'originalMethodName':fC,'callOriginalMethod':c=>{if(!fI)fJ['returnValue']=fJ['originalMethod']['apply'](fJ['thisObject'],fJ['methodArguments']);},'callOriginalMethodAfterwards':c=>{fH=!![];},'stopOriginalMethodCall':c=>{fI=!![];}};if(ft['BDFDBpatch']&&ft['BDFDBpatch'][fC]){for(let fN in ft['BDFDBpatch'][fC]['before'])for(let fO in d['ObjectUtils']['sort'](ft['BDFDBpatch'][fC]['before'][fN])){d['TimeUtils']['suppress'](ft['BDFDBpatch'][fC]['before'][fN][fO],'\x22before\x22\x20callback\x20of\x20'+fC+'\x20in\x20'+(ft['constructor']?ft['constructor']['displayName']||ft['constructor']['name']:'module'),ft['BDFDBpatch'][fC]['before'][fN][fO]['pluginName'])(fJ);}let fP=d['ObjectUtils']['toArray'](ft['BDFDBpatch'][fC]['instead'])['some'](fQ=>!d['ObjectUtils']['isEmpty'](fQ));if(fP)for(let fN in ft['BDFDBpatch'][fC]['instead'])for(let fO in d['ObjectUtils']['sort'](ft['BDFDBpatch'][fC]['instead'][fN])){let fT=d['TimeUtils']['suppress'](ft['BDFDBpatch'][fC]['instead'][fN][fO],'\x22instead\x22\x20callback\x20of\x20'+fC+'\x20in\x20'+(ft['constructor']?ft['constructor']['displayName']||ft['constructor']['name']:'module'),ft['BDFDBpatch'][fC]['instead'][fN][fO]['pluginName'])(fJ);if(fT!==undefined)fJ['returnValue']=fT;}if((!fP||fH)&&!fI)d['TimeUtils']['suppress'](fJ['callOriginalMethod'],'originalMethod\x20of\x20'+fC+'\x20in\x20'+(ft['constructor']?ft['constructor']['displayName']||ft['constructor']['name']:'module'))();for(let fN in ft['BDFDBpatch'][fC]['after'])for(let fO in d['ObjectUtils']['sort'](ft['BDFDBpatch'][fC]['after'][fN])){let fT=d['TimeUtils']['suppress'](ft['BDFDBpatch'][fC]['after'][fN][fO],'\x22after\x22\x20callback\x20of\x20'+fC+'\x20in\x20'+(ft['constructor']?ft['constructor']['displayName']||ft['constructor']['name']:'module'),ft['BDFDBpatch'][fC]['after'][fN][fO]['pluginName'])(fJ);if(fT!==undefined)fJ['returnValue']=fT;}}else d['TimeUtils']['suppress'](fJ['callOriginalMethod'],'originalMethod\x20of\x20'+fC+'\x20in\x20'+(ft['constructor']?ft['constructor']['displayName']||ft['constructor']['name']:'module'))();fH=![],fI=![];return fC=='render'&&fJ['returnValue']===undefined?null:fJ['returnValue'];};for(let fX of Object['keys'](fG))ft[fC][fX]=fG[fX];if(!ft[fC]['__originalFunction']){let fY=fG['__originalMethod']||fG['__originalFunction']||fG;if(typeof fY=='function')ft[fC]['__originalFunction']=fY;}ft[fC]['__isBDFDBpatched']=!![];}for(let fZ in fv)if(typeof fv[fZ]=='function'){if(!d['ObjectUtils']['is'](ft['BDFDBpatch'][fC][fZ][fA]))ft['BDFDBpatch'][fC][fZ][fA]={};ft['BDFDBpatch'][fC][fZ][fA][fz]=fv[fZ];ft['BDFDBpatch'][fC][fZ][fA][fz]['pluginName']=fy;}}let g0=c=>{d['ModuleUtils']['unpatch'](fs,ft,fu);};if(d['ObjectUtils']['is'](fs)){if(!d['ArrayUtils']['is'](fs['patchCancels']))fs['patchCancels']=[];fs['patchCancels']['push'](g0);}return g0;};d['ModuleUtils']['unpatch']=function(g2,g3,g4){if(!g3&&!g4){if(d['ObjectUtils']['is'](g2)&&d['ArrayUtils']['is'](g2['patchCancels']))while(g2['patchCancels']['length'])g2['patchCancels']['pop']()();}else{if(!d['ObjectUtils']['is'](g3)||!g3['BDFDBpatch'])return;const g5=!g2?null:(typeof g2==='string'?g2:g2['name'])['toLowerCase']();if(g4){for(let g6 of[g4]['flat'](0xa)['filter'](g7=>g7))if(g3[g6]&&g3['BDFDBpatch'][g6])g9(g6,g5);}else for(let g8 of g3['BDFDBpatch'])g9(g8,g5);}function g9(ga,gb){for(let gc of fh['Patchtypes']){if(gb)for(let gd in g3['BDFDBpatch'][ga][gc]){delete g3['BDFDBpatch'][ga][gc][gd][gb];if(d['ObjectUtils']['isEmpty'](g3['BDFDBpatch'][ga][gc][gd]))delete g3['BDFDBpatch'][ga][gc][gd];}else delete g3['BDFDBpatch'][ga][gc];}if(d['ObjectUtils']['isEmpty'](d['ObjectUtils']['filter'](g3['BDFDBpatch'][ga],ge=>fh['Patchtypes']['includes'](ge)&&!d['ObjectUtils']['isEmpty'](g3['BDFDBpatch'][ga][ge]),!![]))){g3[ga]=g3['BDFDBpatch'][ga]['originalMethod'];delete g3['BDFDBpatch'][ga];if(d['ObjectUtils']['isEmpty'](g3['BDFDBpatch']))delete g3['BDFDBpatch'];}}};d['ModuleUtils']['forceAllUpdates']=function(gf,gg){if(d['ObjectUtils']['is'](gf)&&d['ObjectUtils']['is'](gf['patchedModules'])){const gh=document['querySelector'](d['dotCN']['app']);const gi=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);if(gh){let gj=[],gk={};for(let gl in gf['patchedModules'])for(let gm in gf['patchedModules'][gl]){let gn=[gf['patchedModules'][gl][gm]]['flat'](0xa)['filter'](go=>go);if(gn['includes']('componentDidMount')||gn['includes']('componentDidUpdate')||gn['includes']('render')){gj['push'](gm);let gp=gm['split']('\x20_\x20_\x20')[0x0];if(!gk[gp])gk[gp]=[];gk[gp]['push'](gl);}}gg=[gg]['flat'](0xa)['filter'](gq=>gq);if(gg['length']){gg=gg['map'](gr=>gr&&fh['Patchmap'][gr]?fh['Patchmap'][gr]+'\x20_\x20_\x20'+gr:gr);gj=gj['filter'](gs=>gg['indexOf'](gs)>-0x1);}gj=d['ArrayUtils']['removeCopies'](gj);if(gj['length']){try{const gt=d['ReactUtils']['findOwner'](gh,{'name':gj,'all':!![],'group':!![],'unlimited':!![]});const gu=d['ReactUtils']['findOwner'](gh,{'name':gj,'all':!![],'group':!![],'unlimited':!![],'up':!![]});for(let gm in gt)for(let gw of gt[gm])f['forceInitiateProcess'](gf,gw,gm,gk[gm]);for(let gm in gu)for(let gw of gu[gm])f['forceInitiateProcess'](gf,gw,gm,gk[gm]);if(gi){const gz=d['ReactUtils']['findOwner'](gi,{'name':gj,'all':!![],'group':!![],'unlimited':!![]});for(let gm in gz)for(let gw of gz[gm])f['forceInitiateProcess'](gf,gw,gm,gk[gm]);}}catch(gC){d['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+gC,gf['name']);}}}}};f['forceInitiateProcess']=function(gD,gE,gF,gG){if(!gD||!gE||!gF)return;let gH=[];for(let gI in gD['patchedModules'])if(gD['patchedModules'][gI][gF])gH['push'](gD['patchedModules'][gI][gF]);gH=d['ArrayUtils']['removeCopies'](gH)['flat'](0xa)['filter'](gJ=>gJ);if(gH['includes']('componentDidMount'))f['initiateProcess'](gD,gF,{'instance':gE,'methodname':'componentDidMount','patchtypes':gG});if(gH['includes']('render'))d['ReactUtils']['forceUpdate'](gE);else if(gH['includes']('componentDidUpdate'))f['initiateProcess'](gD,gF,{'instance':gE,'methodname':'componentDidUpdate','patchtypes':gG});};f['initiateProcess']=function(gK,gL,gM){if(d['ObjectUtils']['is'](gK)&&!gK['stopping']&&gM['instance']){gK=gK==d&&f||gK;gL=(gL['split']('\x20_\x20_\x20')[0x1]||gL)['replace'](/[^A-z0-9]|_/g,'');gL=gL['charAt'](0x0)['toUpperCase']()+gL['slice'](0x1);if(typeof gK['process'+gL]=='function'){if(typeof gM['methodname']=='string'&&(gM['methodname']['indexOf']('componentDid')==0x0||gM['methodname']['indexOf']('componentWill')==0x0)){gM['node']=d['ReactUtils']['findDOMNode'](gM['instance']);if(gM['node'])return gK['process'+gL](gM);else d['TimeUtils']['timeout'](c=>{gM['node']=d['ReactUtils']['findDOMNode'](gM['instance']);if(gM['node'])return gK['process'+gL](gM);});}else if(gM['returnvalue']||gM['patchtypes']['includes']('before'))return gK['process'+gL](gM);}}};f['patchPlugin']=function(gO){if(!d['ObjectUtils']['is'](gO)||!d['ObjectUtils']['is'](gO['patchedModules']))return;d['ModuleUtils']['unpatch'](gO);for(let gP in gO['patchedModules'])for(let gQ in gO['patchedModules'][gP]){if(fh['GlobalModules'][gQ]&&typeof fh['GlobalModules'][gQ]=='function')gY(fh['GlobalModules'][gQ],gQ,gP);else{let gR=gQ['split']('\x20_\x20_\x20')[0x1]||gQ;let gS=fh['LoadedInComponents'][gQ]&&d['ReactUtils']['getValue'](xp,fh['LoadedInComponents'][gQ]);if(gS)gY(fh['NonRender']['includes'](gR)?(d['ModuleUtils']['find'](gT=>gT==gS,![])||{})['exports']:gS,gQ,gP);else{let gU=fh['Patchfinder'][gR];let gV=fh['Patchmap'][gQ];let gW=gV?gV+'\x20_\x20_\x20'+gQ:gQ;let gX=gW['split']('\x20_\x20_\x20')[0x0];if(gV){gO['patchedModules'][gP][gW]=gO['patchedModules'][gP][gQ];delete gO['patchedModules'][gP][gQ];}if(fh['PropsFind']['includes'](gR))gY((d['ModuleUtils']['findByProperties'](gX,![])||{})['exports'],gW,gP,!![]);else if(fh['NonRender']['includes'](gR))gY((d['ModuleUtils']['findByName'](gX,![])||{})['exports'],gW,gP,!![]);else if(fh['MemoComponent']['includes'](gR))gY((d['ModuleUtils']['findByName'](gX,![])||{'exports':{}})['exports']['default'],gW,gP,!![]);else if(!gU)gY(d['ModuleUtils']['findByName'](gX),gW,gP);else if(wt[gU])h6(gU,gW,gP,fh['ForceObserve']['includes'](gR));}}}function gY(gZ,h0,h1,h2){if(gZ){let h3=h0['split']('\x20_\x20_\x20')[0x0];gZ=gZ['_reactInternalFiber']&&gZ['_reactInternalFiber']['type']?gZ['_reactInternalFiber']['type']:gZ;gZ=h2||f['isInstanceCorrect'](gZ,h3)||fh['LoadedInComponents'][h0]?gZ:d['ReactUtils']['findConstructor'](gZ,h3)||d['ReactUtils']['findConstructor'](gZ,h3,{'up':!![]});if(gZ){gZ=gZ['_reactInternalFiber']&&gZ['_reactInternalFiber']['type']?gZ['_reactInternalFiber']['type']:gZ;let h4={};h4[h1]=h5=>{return f['initiateProcess'](gO,h0,{'instance':window!=h5['thisObject']?h5['thisObject']:{'props':h5['methodArguments'][0x0]},'returnvalue':h5['returnValue'],'methodname':h5['originalMethodName'],'patchtypes':[h1]});};d['ModuleUtils']['patch'](gO,fh['NonPrototype']['includes'](h3)?gZ:gZ['prototype'],gO['patchedModules'][h1][h0],h4);}}}function h6(h7,h8,h9,ha){const hb=document['querySelector'](d['dotCN']['app']),hc=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);let hd=![];if(!ha){if(hb){let he=d['ReactUtils']['findConstructor'](hb,h8,{'unlimited':!![]})||d['ReactUtils']['findConstructor'](hb,h8,{'unlimited':!![],'up':!![]});if(he&&(hd=!![]))gY(he,h8,h9);}if(!hd&&hc){let hf=d['ReactUtils']['findConstructor'](hc,h8,{'unlimited':!![]});if(hf&&(hd=!![]))gY(hf,h8,h9);}}if(!hd){let hg=![],hh=d['disCN'][h7],hi=d['dotCN'][h7];for(let hj of document['querySelectorAll'](hi)){let hk=d['ReactUtils']['getInstance'](hj);if(hr(hk,h8)){hg=!![];gY(hk,h8,h9);d['ModuleUtils']['forceAllUpdates'](gO,h8);break;}}if(!hg){let hl=new MutationObserver(hm=>{hm['forEach'](hn=>{hn['addedNodes']['forEach'](ho=>{if(hg||!ho||!ho['tagName'])return;let hj=null;if((hj=d['DOMUtils']['containsClass'](ho,hh)?ho:ho['querySelector'](hi))!=null){let hk=d['ReactUtils']['getInstance'](hj);if(hr(hk,h8)){hg=!![];hl['disconnect']();gY(hk,h8,h9);d['ModuleUtils']['forceAllUpdates'](gO,h8);}}});});});d['ObserverUtils']['connect'](gO,d['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':hl,'multi':!![]},{'childList':!![],'subtree':!![]});}}}function hr(hs,ht){if(!hs)return![];hs=hs['_reactInternalFiber']&&hs['_reactInternalFiber']['type']?hs['_reactInternalFiber']['type']:hs;hs=f['isInstanceCorrect'](hs,ht)?hs:d['ReactUtils']['findConstructor'](hs,ht)||d['ReactUtils']['findConstructor'](hs,ht,{'up':!![]});return!!hs;}};f['isInstanceCorrect']=function(hu,hv){return hu&&(hu['type']&&(hu['type']['render']&&hu['type']['render']['displayName']===hv||hu['type']['displayName']===hv||hu['type']['name']===hv||hu['type']===hv)||hu['render']&&(hu['render']['displayName']===hv||hu['render']['name']===hv)||hu['displayName']==hv||hu['name']===hv);};f['addContextListeners']=function(hw){for(let hx of yH['NormalContextMenus'])if(typeof hw['on'+hx]==='function')f['patchContextMenuPlugin'](hw,hx,xp['LibraryComponents']['ContextMenus'][hx]);for(let hy of yH['FluxContextMenus'])if(typeof hw['on'+hy]==='function'){if(d['InternalData']['componentPatchQueries'][hy]['module'])f['patchContextMenuPlugin'](hw,hy,d['InternalData']['componentPatchQueries'][hy]['module']);else{d['InternalData']['componentPatchQueries'][hy]['query']['push'](hw);d['InternalData']['componentPatchQueries'][hy]['query']['sort']((hz,hA)=>{return hz['name']hA['name']?0x1:0x0;});}}for(let hB of yH['QueuedComponents'])if(typeof hw['on'+hB]==='function'){if(d['InternalData']['componentPatchQueries'][hB]['module'])f['patchExportedContextMenuPlugin'](hw,hB,d['InternalData']['componentPatchQueries'][hB]['module']);else{d['InternalData']['componentPatchQueries'][hB]['query']['push'](hw);d['InternalData']['componentPatchQueries'][hB]['query']['sort']((hC,hD)=>{return hC['name']hD['name']?0x1:0x0;});}}};f['patchContextMenuPlugin']=function(hE,hF,hG){if(hG&&hG['prototype'])d['ModuleUtils']['patch'](hE,hG['prototype'],'render',{'after':hH=>{if(hH['thisObject']&&hH['returnValue']&&typeof hE['on'+hF]==='function')hE['on'+hF]({'instance':hH['thisObject'],'returnvalue':hH['returnValue'],'methodname':'render'});}});};f['patchExportedContextMenuPlugin']=function(hI,hJ,hK){if(hK&&hK['exports'])d['ModuleUtils']['patch'](hI,hK['exports'],'default',{'after':hL=>{if(hL['returnValue']&&typeof hI['on'+hJ]==='function')hI['on'+hJ]({'instance':{'props':hL['methodArguments'][0x0]},'returnvalue':hL['returnValue'],'methodname':'default'});}});};f['executeExtraPatchedPatches']=function(hM,hN){if(d['ObjectUtils']['is'](d['InternalData']['componentPatchQueries'][hM])&&d['ArrayUtils']['is'](d['InternalData']['componentPatchQueries'][hM]['query']))for(let hO of d['InternalData']['componentPatchQueries'][hM]['query'])if(hN['returnvalue']&&typeof hO['on'+hM]==='function')hO['on'+hM](hN);};f['patchContextMenuLib']=function(hP,hQ){if(hP&&hP['prototype']){d['ModuleUtils']['patch'](d,hP['prototype'],'render',{'after':hR=>{if(hR['thisObject']['props']['BDFDBcontextMenu']&&hR['thisObject']['props']['children']&&hR['returnValue']&&hR['returnValue']['props']){hR['returnValue']['props']['children']=hR['thisObject']['props']['children'];delete hR['thisObject']['props']['value'];delete hR['thisObject']['props']['children'];delete hR['thisObject']['props']['BDFDBcontextMenu'];}if(hQ){let hS=d['ReactUtils']['getValue'](hR,'thisObject._reactInternalFiber.child.type');if(hS&&hS['displayName']&&d['InternalData']['componentPatchQueries'][hS['displayName']]&&!d['InternalData']['componentPatchQueries'][hS['displayName']]['module']){d['InternalData']['componentPatchQueries'][hS['displayName']]['module']=hS;f['patchContextMenuLib'](hS,![]);while(d['InternalData']['componentPatchQueries'][hS['displayName']]['query']['length'])f['patchContextMenuPlugin'](d['InternalData']['componentPatchQueries'][hS['displayName']]['query']['pop'](),hS['displayName'],hS);}}}});}};f['patchExportedContextMenuLib']=function(hT,hU,hV){let hW=d['ModuleUtils']['find'](hX=>hX==hT['type'],![]);if(hW&&hW['exports']&&hW['exports']['default']){if(!xp['LibraryComponents']['ContextMenus'][hU]){xp['LibraryComponents']['ContextMenus'][hU]=hW['exports']['default'];d['LibraryComponents']['ContextMenus'][hU]=hW['exports']['default'];}if(!xp['LibraryComponents']['ContextMenus']['_Exports'][hU]){xp['LibraryComponents']['ContextMenus']['_Exports'][hU]=hW['exports'];d['LibraryComponents']['ContextMenus']['_Exports'][hU]=hW['exports'];}if(d['InternalData']['componentPatchQueries'][hU]&&!d['InternalData']['componentPatchQueries'][hU]['module']){d['InternalData']['componentPatchQueries'][hU]['module']=hW;while(d['InternalData']['componentPatchQueries'][hU]['query']['length'])f['patchExportedContextMenuPlugin'](d['InternalData']['componentPatchQueries'][hU]['query']['pop'](),hU,hW);let hY=hV&&d['ReactUtils']['getValue'](hT,'memoizedProps.onClose');if(typeof hY=='function')hY();}if(!hW['exports']['default']['displayName'])hW['exports']['default']['displayName']=hU;}};f['getContextMenuType']=function(hZ,i0){if(hZ){if(hZ=='MessageContextMenu'&&i0&&i0['type']!=xp['LibraryComponents']['ContextMenus']['MessageContextMenu'])return'MessageOptionContextMenu';else if(hZ['endsWith']('ContextMenu'))return hZ;else if(xp['LibraryComponents']['ContextMenus']['_Types']['includes'](hZ)){if(hZ['indexOf']('USER_')==0x0)return'UserContextMenu';else if(hZ['indexOf']('CHANNEL_')==0x0)return'ChannelContextMenu';else if(hZ['indexOf']('GUILD_')==0x0)return'GuildContextMenu';else if(hZ['indexOf']('MESSAGE_')==0x0)return'MessageContextMenu';}}return null;};d['DiscordConstants']=d['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var i1={};i1['Channel']=d['ModuleUtils']['findByPrototypes']('getRecipientId','isManaged','getGuildId');i1['Guild']=d['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');i1['Invite']=d['ModuleUtils']['findByPrototypes']('getExpiresAt','isExpired');i1['Message']=d['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');i1['Messages']=d['ModuleUtils']['findByPrototypes']('jumpToMessage','hasAfterCached','forEach');i1['Timestamp']=d['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');i1['User']=d['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');d['DiscordObjects']=Object['assign']({},i1);var i2={};for(let i3 of['child_process','electron','fs','path','process','request']){try{i2[i3]=require(i3);}catch(i4){}}d['LibraryRequires']=Object['assign']({},i2);var i5={};i5['AckUtils']=d['ModuleUtils']['findByProperties']('localAck','bulkAck');i5['APIUtils']=d['ModuleUtils']['findByProperties']('getAPIBaseURL');i5['AnalyticsUtils']=d['ModuleUtils']['findByProperties']('isThrottled','track');i5['AnimationUtils']=d['ModuleUtils']['findByProperties']('spring','decay');i5['BadgeUtils']=d['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');i5['CategoryCollapseStore']=d['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');i5['CategoryCollapseUtils']=d['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');i5['ChannelStore']=d['ModuleUtils']['findByProperties']('getChannel','getChannels');i5['ColorUtils']=d['ModuleUtils']['findByProperties']('hex2int','hex2rgb');i5['ContextMenuUtils']=d['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');i5['CopyLinkUtils']=d['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');i5['CurrentUserStore']=d['ModuleUtils']['findByProperties']('getCurrentUser');i5['CurrentVoiceUtils']=d['ModuleUtils']['findByProperties']('getAveragePing','isConnected');i5['DirectMessageStore']=d['ModuleUtils']['findByProperties']('getPrivateChannelIds','getPrivateChannelTimestamps');i5['DirectMessageUnreadStore']=d['ModuleUtils']['findByProperties']('getUnreadPrivateChannelIds');i5['DispatchApiUtils']=d['ModuleUtils']['findByProperties']('dirtyDispatch','isDispatching');i5['DispatchUtils']=d['ModuleUtils']['findByProperties']('ComponentDispatch');i5['DirectMessageUtils']=d['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');i5['EmojiUtils']=d['ModuleUtils']['findByProperties']('translateInlineEmojiToSurrogates','translateSurrogatesToInlineEmoji');i5['FriendUtils']=d['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');i5['FolderStore']=d['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');i5['FolderUtils']=d['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');i5['GuildBoostUtils']=d['ModuleUtils']['findByProperties']('getTierName','getUserLevel');i5['GuildChannelStore']=d['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');i5['GuildEmojiStore']=d['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');i5['GuildSettingsUtils']=d['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');i5['GuildStore']=d['ModuleUtils']['findByProperties']('getGuild','getGuilds');i5['GuildUnavailableStore']=d['ModuleUtils']['findByProperties']('isUnavailable','totalUnavailableGuilds');i5['GuildUtils']=d['ModuleUtils']['findByProperties']('transitionToGuildSync');i5['HistoryUtils']=d['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;i5['IconUtils']=d['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');i5['InviteUtils']=d['ModuleUtils']['findByProperties']('acceptInvite','createInvite');i5['KeyCodeUtils']=Object['assign']({},d['ModuleUtils']['findByProperties']('toCombo','keyToCode'));i5['KeyCodeUtils']['getString']=function(i6){return i5['KeyCodeUtils']['toString']([i6]['flat'](0xa)['filter'](i7=>i7)['map'](i8=>[d['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],i8,d['DiscordConstants']['KeyboardEnvs']['BROWSER']]),!![]);};i5['KeyEvents']=d['ModuleUtils']['findByProperties']('aliases','code','codes');i5['LanguageStore']=d['ModuleUtils']['findByProperties']('getLanguages','Messages');i5['LastChannelStore']=d['ModuleUtils']['findByProperties']('getLastSelectedChannelId');i5['LastGuildStore']=d['ModuleUtils']['findByProperties']('getLastSelectedGuildId');i5['LoginUtils']=d['ModuleUtils']['findByProperties']('login','logout');i5['MemberStore']=d['ModuleUtils']['findByProperties']('getMember','getMembers');i5['MessagePinUtils']=d['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');i5['MessageStore']=d['ModuleUtils']['findByProperties']('getMessage','getMessages');i5['MessageUtils']=d['ModuleUtils']['findByProperties']('receiveMessage','editMessage');i5['ModalUtils']=d['ModuleUtils']['findByProperties']('openModal','hasModalOpen');i5['MutedUtils']=d['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');i5['NoteStore']=d['ModuleUtils']['findByProperties']('getNotes','getNote');i5['NotificationSettingsStore']=d['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');i5['NotificationSettingsUtils']=d['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');i5['NotificationUtils']=d['ModuleUtils']['findByProperties']('makeTextChatNotification','shouldNotify');i5['PlatformUtils']=d['ModuleUtils']['findByProperties']('isWindows','isLinux');i5['PermissionUtils']=d['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');i5['PermissionRoleUtils']=d['ModuleUtils']['findByProperties']('getHighestRole','can');i5['QuoteUtils']=d['ModuleUtils']['findByProperties']('canQuote','createQuotedText');i5['ReactionUtils']=d['ModuleUtils']['findByProperties']('addReaction','removeReaction');i5['SearchPageUtils']=d['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');i5['SelectChannelUtils']=d['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');i5['SettingsUtils']=d['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');i5['SoundUtils']=d['ModuleUtils']['findByProperties']('playSound','createSound');i5['SpellCheckUtils']=d['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');i5['SlateUtils']=d['ModuleUtils']['findByProperties']('serialize','deserialize');i5['SlateSelectionUtils']=d['ModuleUtils']['findByProperties']('serialize','serializeSelection');i5['StateStoreUtils']=d['ModuleUtils']['findByProperties']('useStateFromStores','useStateFromStoresArray');i5['StatusMetaUtils']=d['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');i5['StoreChangeUtils']=d['ModuleUtils']['findByProperties']('get','set','clear','remove');i5['StreamUtils']=d['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');i5['StringUtils']=d['ModuleUtils']['findByProperties']('cssValueToNumber','upperCaseFirstChar');i5['UnreadGuildUtils']=d['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');i5['UnreadChannelUtils']=d['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');i5['UploadUtils']=d['ModuleUtils']['findByProperties']('upload','instantBatchUpload');i5['UserNameUtils']=d['ModuleUtils']['findByProperties']('getName','getNickname');i5['UserStore']=d['ModuleUtils']['findByProperties']('getUser','getUsers');i5['Utilities']=d['ModuleUtils']['findByProperties']('flatMap','cloneDeep');i5['VoiceUtils']=d['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');i5['ZoomUtils']=d['ModuleUtils']['findByProperties']('setZoom','setFontSize');d['LibraryModules']=Object['assign']({},i5);i5['React']=d['ModuleUtils']['findByProperties']('createElement','cloneElement');i5['ReactDOM']=d['ModuleUtils']['findByProperties']('render','findDOMNode');d['ReactUtils']=Object['assign']({},i5['React'],i5['ReactDOM']);d['ReactUtils']['childrenToArray']=function(i9){if(i9&&i9['props']&&i9['props']['children']&&!d['ArrayUtils']['is'](i9['props']['children'])){var ia=i9['props']['children'];i9['props']['children']=[];i9['props']['children']['push'](ia);}return i9['props']['children'];};d['ReactUtils']['createElement']=function(ib,ic){if(ib&&ib['defaultProps'])for(let id in ib['defaultProps'])if(ic[id]==null)ic[id]=ib['defaultProps'][id];try{return i5['React']['createElement'](ib||'div',ic||{})||null;}catch(ie){d['LogUtils']['error']('Could\x20not\x20create\x20react\x20element!\x20'+ie);}return null;};d['ReactUtils']['elementToReact']=function(ig,ih){if(d['ReactUtils']['isValidElement'](ig))return ig;else if(!Node['prototype']['isPrototypeOf'](ig))return null;else if(ig['nodeType']==Node['TEXT_NODE'])return ig['nodeValue'];let ii={},ij=[];if(typeof ih=='function')ii['ref']=ih;for(let ik of ig['attributes'])ii[ik['name']]=ik['value'];if(ig['attributes']['style'])ii['style']=d['ObjectUtils']['filter'](ig['style'],il=>ig['style'][il]&&isNaN(parseInt(il)),!![]);ii['children']=[];if(ig['style']&&ig['style']['cssText'])for(let im of ig['style']['cssText']['split'](';'))if(im['endsWith']('!important')){let io=im['split'](':')[0x0];let ip=io['replace'](/-([a-z]?)/g,(iq,ir)=>ir['toUpperCase']());if(ii['style'][ip]!=null)ij['push'](io);}for(let is of ig['childNodes'])ii['children']['push'](d['ReactUtils']['elementToReact'](is));let it=d['ReactUtils']['createElement'](ig['tagName'],ii);d['ReactUtils']['forceStyle'](it,ij);return it;};d['ReactUtils']['forceStyle']=function(iu,iv){if(!d['ReactUtils']['isValidElement'](iu)||!d['ObjectUtils']['is'](iu['props']['style'])||!d['ArrayUtils']['is'](iv)||!iv['length'])return;let iw=iu['ref'];iu['ref']=ix=>{if(typeof iw=='function')iw(ix);let iy=d['ReactUtils']['findDOMNode'](ix);if(Node['prototype']['isPrototypeOf'](iy))for(let iz of iv){let iA=iu['props']['style'][iz['replace'](/-([a-z]?)/g,(iB,iC)=>iC['toUpperCase']())];if(iA!=null)iy['style']['setProperty'](iz,iA,'important');}};};d['ReactUtils']['findChildren']=function(iD,iE){if(!iD||!d['ObjectUtils']['is'](iE)||!iE['name']&&!iE['key']&&!iE['props']&&!iE['filter'])return[null,-0x1];var iF=Node['prototype']['isPrototypeOf'](iD)?d['ReactUtils']['getInstance'](iD):iD;if(!d['ObjectUtils']['is'](iF)&&!d['ArrayUtils']['is'](iF))return[null,-0x1];iE['name']=iE['name']&&[iE['name']]['flat']()['filter'](iG=>iG);iE['key']=iE['key']&&[iE['key']]['flat']()['filter'](iH=>iH);iE['props']=iE['props']&&[iE['props']]['flat']()['filter'](iI=>iI);iE['filter']=typeof iE['filter']=='function'&&iE['filter'];var iJ=firstarray=iF;while(!d['ArrayUtils']['is'](firstarray)&&firstarray['props']&&firstarray['props']['children'])firstarray=firstarray['props']['children'];if(!d['ArrayUtils']['is'](firstarray)){if(iJ&&iJ['props']){iJ['props']['children']=[iJ['props']['children']];firstarray=iJ['props']['children'];}else firstarray=[];}return iK(iF);function iK(iL){var iM=[firstarray,-0x1];if(!iL)return iM;if(!d['ArrayUtils']['is'](iL)){if(iQ(iL))iM=iO(iL);else if(iL['props']&&iL['props']['children']){iJ=iL;iM=iK(iL['props']['children']);}}else{for(let iN=0x0;iM[0x1]==-0x1&&iNf['isInstanceCorrect'](iF,iT))||iE['key']&&iE['key']['some'](iU=>iF['key']==iU)||iS&&iE['props']&&iE['props']['every'](iV=>d['ArrayUtils']['is'](iV)?d['ArrayUtils']['is'](iV[0x1])?iV[0x1]['some'](iW=>iX(iS,iV[0x0],iW)):iX(iS,iV[0x0],iV[0x1]):iS[iV]!==undefined)||iE['filter']&&iE['filter'](iF);}function iX(iY,iZ,j0){return iZ!=null&&iY[iZ]!=null&&j0!=null&&(iZ=='className'?('\x20'+iY[iZ]+'\x20')['indexOf']('\x20'+j0+'\x20')>-0x1:d['equals'](iY[iZ],j0));}};d['ReactUtils']['findConstructor']=function(j1,j2,j3={}){if(!d['ObjectUtils']['is'](j3))return null;if(!j1||!j2)return j3['all']?j3['group']?{}:[]:null;var j4=Node['prototype']['isPrototypeOf'](j1)?d['ReactUtils']['getInstance'](j1):j1;if(!d['ObjectUtils']['is'](j4))return j3['all']?j3['group']?{}:[]:null;j2=j2&&[j2]['flat'](0xa)['filter'](j5=>typeof j5=='string');if(!j2['length'])return j3['all']?j3['group']?{}:[]:null;;var j6=-0x1;var j7=performance['now']();var j8=j3['unlimited']?0x3b9ac9ff:j3['depth']===undefined?0x1e:j3['depth'];var j9=j3['unlimited']?0x3b9ac9ff:j3['time']===undefined?0x96:j3['time'];var ja=j3['up']?{'return':!![],'sibling':!![],'default':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'default':!![],'_reactInternalFiber':!![]};var jb=j3['group']?{}:[];var jc=jf(j4);if(j3['all']){for(let jd in jb){if(j3['group'])for(let je in jb[jd])delete jb[jd][je]['BDFDBreactSearch'];else delete jb[jd]['BDFDBreactSearch'];}return jb;}else return jc;function jf(j4){j6++;var jh=undefined;if(j4&&!Node['prototype']['isPrototypeOf'](j4)&&!d['ReactUtils']['getInstance'](j4)&&j6(j4['type']['render']&&j4['type']['render']['displayName']||j4['type']['displayName']||j4['type']['name'])===ji['split']('\x20_\x20_\x20')[0x0])){if(j3['all']===undefined||!j3['all'])jh=j4['type'];else if(j3['all']){if(!j4['type']['BDFDBreactSearch']){j4['type']['BDFDBreactSearch']=!![];if(j3['group']){if(j4['type']&&(j4['type']['render']&&j4['type']['render']['displayName']||j4['type']['displayName']||j4['type']['name'])){let jj=j3['name']['find'](jk=>(j4['type']['render']&&j4['type']['render']['displayName']||j4['type']['displayName']||j4['type']['name']||j4['type'])['split']('\x20_\x20_\x20')[0x0]==jk)||'Default';if(!d['ArrayUtils']['is'](foundinstances[jj]))foundinstances[jj]=[];foundinstances[jj]['push'](j4['stateNode']);}}else foundinstances['push'](j4['type']);}}}if(jh===undefined){let jl=Object['getOwnPropertyNames'](j4);for(let jm=0x0;jh===undefined&&jmjt);jr['key']=jr['key']&&[jr['key']]['flat']()['filter'](ju=>ju);jr['props']=jr['props']&&[jr['props']]['flat']()['filter'](jv=>jv);var jw=-0x1;var jx=performance['now']();var jy=jr['unlimited']?0x3b9ac9ff:jr['depth']===undefined?0x1e:jr['depth'];var jz=jr['unlimited']?0x3b9ac9ff:jr['time']===undefined?0x96:jr['time'];var jA=jr['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var jB=jr['group']?{}:[];var jC=jF(js);if(jr['all']){for(let jD in jB){if(jr['group'])for(let jE in jB[jD])delete jB[jD][jE]['BDFDBreactSearch'];else delete jB[jD]['BDFDBreactSearch'];}return jB;}else return jC;function jF(js){jw++;var jH=undefined;if(js&&!Node['prototype']['isPrototypeOf'](js)&&!d['ReactUtils']['getInstance'](js)&&jwf['isInstanceCorrect'](js,jJ['split']('\x20_\x20_\x20')[0x0]))||jr['key']&&jr['key']['some'](jK=>js['key']==jK)||jI&&jr['props']&&jr['props']['every'](jL=>d['ArrayUtils']['is'](jL)?d['ArrayUtils']['is'](jL[0x1])?jL[0x1]['some'](jM=>d['equals'](jI[jL[0x0]],jM)):d['equals'](jI[jL[0x0]],jL[0x1]):jI[jL]!==undefined))){if(jr['all']===undefined||!jr['all'])jH=js['stateNode'];else if(jr['all']){if(!js['stateNode']['BDFDBreactSearch']){js['stateNode']['BDFDBreactSearch']=!![];if(jr['group']){if(jr['name']&&js['type']&&(js['type']['render']&&js['type']['render']['displayName']||js['type']['displayName']||js['type']['name']||js['type'])){let jN=jr['name']['find'](jO=>(js['type']['render']&&js['type']['render']['displayName']||js['type']['displayName']||js['type']['name']||js['type'])['split']('\x20_\x20_\x20')[0x0]==jO)||'Default';if(!d['ArrayUtils']['is'](jB[jN]))jB[jN]=[];jB[jN]['push'](js['stateNode']);}}else jB['push'](js['stateNode']);}}}if(jH===undefined){let jP=Object['getOwnPropertyNames'](js);for(let jQ=0x0;jH===undefined&&jQjV);jT['key']=jT['key']&&[jT['key']]['flat']()['filter'](jW=>jW);var jX=-0x1;var jY=performance['now']();var jZ=jT['unlimited']?0x3b9ac9ff:jT['depth']===undefined?0x1e:jT['depth'];var k0=jT['unlimited']?0x3b9ac9ff:jT['time']===undefined?0x96:jT['time'];var k1=jT['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return k2(jU);function k2(jU){jX++;var k4=undefined;if(jU&&!Node['prototype']['isPrototypeOf'](jU)&&!d['ReactUtils']['getInstance'](jU)&&jX(jU['type']['render']&&jU['type']['render']['displayName']||jU['type']['displayName']||jU['type']['name']||jU['type'])===k5['split']('\x20_\x20_\x20')[0x0])||jT['key']&&jT['key']['some'](k6=>jU['key']==k6)))k4=jU['memoizedProps'];if(k4===undefined){let k7=Object['getOwnPropertyNames'](jU);for(let k8=0x0;k4===undefined&&k8kx))if(kw['updater']&&typeof kw['updater']['isMounted']=='function'&&kw['updater']['isMounted'](kw))kw['forceUpdate']();};d['ReactUtils']['getInstance']=function(ky){if(!d['ObjectUtils']['is'](ky))return null;return ky[Object['keys'](ky)['find'](kz=>kz['startsWith']('__reactInternalInstance'))];};d['ReactUtils']['getValue']=function(kA,kB){if(!kA||!kB)return null;var kC=Node['prototype']['isPrototypeOf'](kA)?d['ReactUtils']['getInstance'](kA):kA;if(!d['ObjectUtils']['is'](kC))return null;var kD=kC,kE=kB['split']('.')['filter'](kF=>kF);for(value of kE){if(!kD)return null;kD=kD[value];}return kD;};d['ReactUtils']['render']=function(kG,kH){if(!d['ReactUtils']['isValidElement'](kG)||!Node['prototype']['isPrototypeOf'](kH))return;try{i5['ReactDOM']['render'](kG,kH);let kI=new MutationObserver(kJ=>kJ['forEach'](kK=>{let kL=Array['from'](kK['removedNodes']);if(kL['indexOf'](kH)>-0x1||kL['some'](kM=>kM['contains'](kH))){kI['disconnect']();d['ReactUtils']['unmountComponentAtNode'](kH);}}));kI['observe'](document['body'],{'subtree':!![],'childList':!![]});}catch(kN){d['LogUtils']['error']('Could\x20not\x20render\x20react\x20element!\x20'+kN);}};f['setDefaultProps']=function(kO,kP){if(d['ObjectUtils']['is'](kO))kO['defaultProps']=Object['assign']({},kO['defaultProps'],kP);};d['sameProto']=function(kQ,kR){if(kQ!=null&&typeof kQ=='object')return kQ['constructor']&&kQ['constructor']['prototype']&&typeof kQ['constructor']['prototype']['isPrototypeOf']=='function'&&kQ['constructor']['prototype']['isPrototypeOf'](kR);else return typeof kQ==typeof kR;};d['equals']=function(kS,kT,kU){var kV=-0x1;if(kU===undefined||typeof kU!=='boolean')kU=![];return kW(kS,kT);function kW(kX,kY){kV++;var kZ=!![];if(kV>0x3e8)kZ=null;else{if(typeof kX!==typeof kY)kZ=![];else if(typeof kX==='function')kZ=kX['toString']()==kY['toString']();else if(typeof kX==='undefined')kZ=!![];else if(typeof kX==='symbol')kZ=!![];else if(typeof kX==='boolean')kZ=kX==kY;else if(typeof kX==='string')kZ=kX==kY;else if(typeof kX==='number'){if(isNaN(kX)||isNaN(kY))kZ=isNaN(kX)==isNaN(kY);else kZ=kX==kY;}else if(!kX&&!kY)kZ=!![];else if(!kX||!kY)kZ=![];else if(typeof kX==='object'){var l0=Object['getOwnPropertyNames'](kX);var l1=Object['getOwnPropertyNames'](kY);if(l0['length']!==l1['length'])kZ=![];else for(let l2=0x0;kZ===!![]&&l2{let l5=d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['app']),{'name':'Messages','unlimited':!![]});let l6=d['ReactUtils']['getValue'](l5,'_reactInternalFiber.type.prototype');if(l5&&l6){let l7=d['ModuleUtils']['patch']({'name':'tempPatch'},l6,'render',{'after':l8=>{l7();let [l9,la]=d['ReactUtils']['findChildren'](l8['returnValue'],{'props':['message','channel']});if(la>-0x1)for(let lb of l9)if(lb['props']['message'])lb['props']['message']=new d['DiscordObjects']['Message'](lb['props']['message']);}});d['ReactUtils']['forceUpdate'](l5);}},0x3e8);};d['UserUtils']={};var lc=i5['CurrentUserStore']?i5['CurrentUserStore']['getCurrentUser']():null;d['UserUtils']['is']=function(ld){return ld&&ld instanceof d['DiscordObjects']['User'];};d['UserUtils']['me']=new Proxy(lc||{},{'get':function(le,lf){if(!lc)lc=i5['CurrentUserStore']['getCurrentUser']();return lc?lc[lf]:null;}});d['UserUtils']['getStatus']=function(lg=d['UserUtils']['me']['id']){lg=typeof lg=='number'?lg['toFixed']():lg;let lh=d['UserUtils']['getActivitiy'](lg);return lh&&lh['type']==d['DiscordConstants']['ActivityTypes']['STREAMING']?'streaming':i5['StatusMetaUtils']['getStatus'](lg);};d['UserUtils']['getStatusColor']=function(li){li=typeof li=='string'?li['toLowerCase']():null;switch(li){case'online':return d['DiscordConstants']['Colors']['STATUS_GREEN'];case'mobile':return d['DiscordConstants']['Colors']['STATUS_GREEN'];case'idle':return d['DiscordConstants']['Colors']['STATUS_YELLOW'];case'dnd':return d['DiscordConstants']['Colors']['STATUS_RED'];case'playing':return d['DiscordConstants']['Colors']['BRAND'];case'listening':return d['DiscordConstants']['Colors']['SPOTIFY'];case'streaming':return d['DiscordConstants']['Colors']['TWITCH'];default:return d['DiscordConstants']['Colors']['STATUS_GREY'];}};d['UserUtils']['getActivitiy']=function(lj=d['UserUtils']['me']['id']){for(let lk of i5['StatusMetaUtils']['getActivities'](lj))if(lk['type']!=d['DiscordConstants']['ActivityTypes']['CUSTOM_STATUS'])return lk;return null;};d['UserUtils']['getAvatar']=function(ll=d['UserUtils']['me']['id']){var lm=i5['UserStore']['getUser'](typeof ll=='number'?ll['toFixed']():ll);if(!lm)return window['location']['origin']+'/assets/322c936a8c8be1b803cd94861bdfa868.png';else return((lm['avatar']?'':window['location']['origin'])+i5['IconUtils']['getUserAvatarURL'](lm))['split']('?')[0x0];};d['UserUtils']['can']=function(ln,lo=d['UserUtils']['me']['id'],lp=i5['LastChannelStore']['getChannelId']()){if(!d['DiscordConstants']['Permissions'][ln])d['LogUtils']['warn'](ln+'\x20not\x20found\x20in\x20Permissions');else{var lq=i5['ChannelStore']['getChannel'](lp);if(lq)return i5['PermissionUtils']['canUser'](lo,d['DiscordConstants']['Permissions'][ln],lq);}return![];};d['GuildUtils']={};d['GuildUtils']['is']=function(lr){return lr&&lr instanceof d['DiscordObjects']['Guild'];};d['GuildUtils']['getIcon']=function(ls){var lt=i5['GuildStore']['getGuild'](typeof ls=='number'?ls['toFixed']():ls);if(!lt||!lt['icon'])return null;return i5['IconUtils']['getGuildIconURL'](lt)['split']('?')[0x0];};d['GuildUtils']['getBanner']=function(lu){var lv=i5['GuildStore']['getGuild'](typeof lu=='number'?lu['toFixed']():lu);if(!lv||!lv['banner'])return null;return i5['IconUtils']['getGuildBannerURL'](lv)['split']('?')[0x0];};d['GuildUtils']['getFolder']=function(lw){return d['LibraryModules']['FolderStore']['guildFolders']['filter'](lx=>lx['folderId'])['find'](ly=>ly['guildIds']['includes'](lw));};d['GuildUtils']['getId']=function(lz){if(!Node['prototype']['isPrototypeOf'](lz)||!d['ReactUtils']['getInstance'](lz))return;let lA=d['DOMUtils']['getParent'](d['dotCN']['guildouter'],lz);if(!lA)return;var lB=lA['querySelector'](d['dotCN']['guildiconwrapper']);var lC=lB&&lB['href']?lB['href']['split']('/')['slice'](-0x2)[0x0]:null;return lC&&!isNaN(parseInt(lC))?lC['toString']():null;};d['GuildUtils']['getData']=function(lD){if(!lD)return null;let lE=Node['prototype']['isPrototypeOf'](lD)?d['GuildUtils']['getId'](lD):typeof lD=='object'?lD['id']:lD;lE=typeof lE=='number'?lE['toFixed']():lE;for(let lF of d['GuildUtils']['getAll']())if(lF&&lF['id']==lE)return lF;return null;};d['GuildUtils']['getAll']=function(){var lG=[],lH=[];for(let lI of d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['guilds']),{'name':['Guild','GuildIcon'],'all':!![],'unlimited':!![]})){if(lI['props']&&lI['props']['guild'])lH['push'](Object['assign'](new lI['props']['guild']['constructor'](lI['props']['guild']),{'div':lI['handleContextMenu']&&d['ReactUtils']['findDOMNode'](lI),'instance':lI}));}for(let lJ of d['LibraryModules']['FolderStore']['getFlattenedGuildIds']()){let lK=null;for(let lL of lH)if(lL['id']==lJ){lK=lL;break;}if(lK)lG['push'](lK);else{let lM=d['LibraryModules']['GuildStore']['getGuild'](lJ);lG['push'](Object['assign'](new lM['constructor'](lM),{'div':null,'instance':null}));}}return lG;};d['GuildUtils']['getUnread']=function(lN){var lO=[];for(let lP of lN===undefined||!d['ArrayUtils']['is'](lN)?d['GuildUtils']['getAll']():lN){if(!lP)return null;let lQ=Node['prototype']['isPrototypeOf'](lP)?d['GuildUtils']['getId'](lP):typeof lP=='object'?lP['id']:lP;lQ=typeof lQ=='number'?lQ['toFixed']():lQ;if(lQ&&(i5['UnreadGuildUtils']['hasUnread'](lQ)||i5['UnreadGuildUtils']['getMentionCount'](lQ)>0x0))lO['push'](lP);}return lO;};d['GuildUtils']['getPinged']=function(lR){var lS=[];for(let lT of lR===undefined||!d['ArrayUtils']['is'](lR)?d['GuildUtils']['getAll']():lR){if(!lT)return null;let lU=Node['prototype']['isPrototypeOf'](lT)?d['GuildUtils']['getId'](lT):typeof lT=='object'?lT['id']:lT;lU=typeof lU=='number'?lU['toFixed']():lU;if(lU&&i5['UnreadGuildUtils']['getMentionCount'](lU)>0x0)lS['push'](lT);}return lS;};d['GuildUtils']['getMuted']=function(lV){var lW=[];for(let lX of lV===undefined||!d['ArrayUtils']['is'](lV)?d['GuildUtils']['getAll']():lV){if(!lX)return null;let lY=Node['prototype']['isPrototypeOf'](lX)?d['GuildUtils']['getId'](lX):typeof lX=='object'?lX['id']:lX;lY=typeof lY=='number'?lY['toFixed']():lY;if(lY&&i5['MutedUtils']['isGuildOrCategoryOrChannelMuted'](lY))lW['push'](lX);}return lW;};d['GuildUtils']['getSelected']=function(){var lZ=i5['GuildStore']['getGuild'](i5['LastGuildStore']['getGuildId']());if(lZ)return d['GuildUtils']['getData'](lZ['id'])||Object['assign'](new lZ['constructor'](lZ),{'div':null,'instance':null});else return null;};d['GuildUtils']['openMenu']=function(m0,m1=d['InternalData']['mousePosition']){if(!m0)return;let m2=Node['prototype']['isPrototypeOf'](m0)?d['GuildUtils']['getId'](m0):typeof m0=='object'?m0['id']:m0;let m3=i5['GuildStore']['getGuild'](m2);if(m3)i5['ContextMenuUtils']['openContextMenu'](m1,function(m1){return d['ReactUtils']['createElement'](xp['LibraryComponents']['ContextMenus']['_Exports']['GuildContextMenu']&&xp['LibraryComponents']['ContextMenus']['_Exports']['GuildContextMenu']['default'],Object['assign']({},m1,{'type':d['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':m3,'badge':i5['UnreadGuildUtils']['getMentionCount'](m3['id']),'link':d['DiscordConstants']['Routes']['CHANNEL'](m3['id'],i5['LastChannelStore']['getChannelId'](m3['id'])),'selected':m3['id']==i5['LastGuildStore']['getGuildId']()}));});};d['GuildUtils']['markAsRead']=function(m5){if(!m5)return;var m6=[];for(let m7 of d['ArrayUtils']['is'](m5)?m5:typeof m5=='string'||typeof m5=='number'?Array['of'](m5):Array['from'](m5)){let m8=Node['prototype']['isPrototypeOf'](m7)?d['GuildUtils']['getId'](m7):m7&&typeof m7=='object'?m7['id']:m7;let m9=m8&&i5['GuildChannelStore']['getChannels'](m8);if(m9)for(let ma in m9)if(d['ArrayUtils']['is'](m9[ma]))for(let mb of m9[ma])m6['push'](mb['channel']['id']);}if(m6['length'])i5['AckUtils']['bulkAck'](m6);};d['FolderUtils']={};d['FolderUtils']['getId']=function(mc){if(!Node['prototype']['isPrototypeOf'](mc)||!d['ReactUtils']['getInstance'](mc))return;mc=d['DOMUtils']['getParent'](d['dotCN']['guildfolderwrapper'],mc);if(!mc)return;return d['ReactUtils']['findValue'](mc,'folderId',{'up':!![]});};d['FolderUtils']['getDefaultName']=function(md){let me=d['LibraryModules']['FolderStore']['getGuildFolderById'](md);if(!me)return'';let mf=0x2*d['DiscordConstants']['MAX_GUILD_FOLDER_NAME_LENGTH'];let mg=[],mh=me['guildIds']['map'](mi=>(d['LibraryModules']['GuildStore']['getGuild'](mi)||{})['name'])['filter'](mj=>mj);for(let i3 of mh)if(i3['length']mG)[0x0];return(mD&&'@'||'')+(mF&&mF['toString']()||'');case d['DiscordConstants']['ChannelTypes']['GROUP_DM']:if(mE['name'])return mE['name'];let mH=mE['recipients']['map'](d['LibraryModules']['UserStore']['getUser'])['filter'](mI=>mI);return mH['length']>0x0?mH['map'](mF=>mF['toString'])['join'](',\x20'):d['LanguageUtils']['LanguageStrings']['UNNAMED'];case d['DiscordConstants']['ChannelTypes']['GUILD_ANNOUNCEMENT']:case d['DiscordConstants']['ChannelTypes']['GUILD_TEXT']:return(mD&&'#'||'')+mE['name'];default:return mE['name'];}};d['ChannelUtils']['getAll']=function(){var mK=[];for(let mL of d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['channels']),{'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'unlimited':!![]}))if(mL['props']&&!mL['props']['ispin']&&mL['props']['channel']&&mL['_reactInternalFiber']['return']){var mM=d['ReactUtils']['findDOMNode'](mL);mM=mM&&d['DOMUtils']['containsClass'](mM['parentElement'],d['disCN']['categorycontainerdefault'],d['disCN']['channelcontainerdefault'],![])?mM['parentElement']:mM;mK['push'](Object['assign'](new mL['props']['channel']['constructor'](mL['props']['channel']),{'div':mM,'instance':mL}));}return mK;};d['ChannelUtils']['getSelected']=function(){var mN=i5['ChannelStore']['getChannel'](i5['LastChannelStore']['getChannelId']());if(mN)return d['ChannelUtils']['getData'](mN['id'])||Object['assign'](new mN['constructor'](mN),{'div':null,'instance':null});else return null;};d['ChannelUtils']['openMenu']=function(mO,mP=d['InternalData']['mousePosition']){if(!mO)return;let mQ=Node['prototype']['isPrototypeOf'](mO)?d['ChannelUtils']['getId'](mO):typeof mO=='object'?mO['id']:mO;let mR=i5['ChannelStore']['getChannel'](mQ);if(mR){let mS=null;for(let mT in d['DiscordConstants']['ChannelTypes'])if(d['DiscordConstants']['ChannelTypes'][mT]==mR['type']){mS=d['DiscordConstants']['ContextMenuTypes'][(mT=='GUILD_CATEGORY'?'CHANNEL_':'CHANNEL_LIST_')+mT['replace']('GUILD_','')];break;}if(mS)i5['ContextMenuUtils']['openContextMenu'](mP,function(mP){return d['ReactUtils']['createElement'](xp['LibraryComponents']['ContextMenus']['_Exports']['ChannelContextMenu']&&xp['LibraryComponents']['ContextMenus']['_Exports']['ChannelContextMenu']['default'],Object['assign']({},mP,{'type':mS,'channel':mR,'guild':i5['GuildStore']['getGuild'](mR['guild_id']),'selected':mR['id']==i5['LastChannelStore']['getChannelId']()}));});}};d['ChannelUtils']['markAsRead']=function(mV){if(!mV)return;var mW=[];for(let mX of mV=d['ArrayUtils']['is'](mV)?mV:typeof mV=='string'||typeof mV=='number'?Array['of'](mV):Array['from'](mV)){let mY=Node['prototype']['isPrototypeOf'](mX)?d['ChannelUtils']['getId'](mX):mX&&typeof mX=='object'?mX['id']:mX;if(mY)mW['push'](mY);}if(mW['length'])i5['AckUtils']['bulkAck'](mW);};d['DMUtils']={};d['DMUtils']['isDMChannel']=function(mZ){let n0=typeof mZ=='string'?i5['ChannelStore']['getChannel'](mZ):mZ;return d['ObjectUtils']['is'](n0)&&(n0['type']==d['DiscordConstants']['ChannelTypes']['DM']||n0['type']==d['DiscordConstants']['ChannelTypes']['GROUP_DM']);};d['DMUtils']['getIcon']=function(n1){var n2=i5['ChannelStore']['getChannel'](n1=typeof n1=='number'?n1['toFixed']():n1);if(!n2)return null;if(!n2['icon'])return n2['type']==0x1?d['UserUtils']['getAvatar'](n2['recipients'][0x0]):n2['type']==0x3?window['location']['origin']+i5['IconUtils']['getChannelIconURL'](n2)['split']('?')[0x0]:null;return i5['IconUtils']['getChannelIconURL'](n2)['split']('?')[0x0];};d['DMUtils']['getId']=function(n3){if(!Node['prototype']['isPrototypeOf'](n3)||!d['ReactUtils']['getInstance'](n3))return;let n4=d['DOMUtils']['getParent'](d['dotCN']['guildouter'],n3);if(!n4)return;var n5=n4['querySelector'](d['dotCN']['guildiconwrapper']);var n6=n5&&n5['href']?n5['href']['split']('/')['slice'](-0x1)[0x0]:null;return n6&&!isNaN(parseInt(n6))?n6['toString']():null;};d['DMUtils']['getDiv']=function(n7){if(!n7)return null;if(Node['prototype']['isPrototypeOf'](n7)){var n8=d['DOMUtils']['getParent'](d['dotCN']['guildouter'],n7);return n8?n8['parentElement']:n8;}else{let n9=typeof n7=='object'?n7['id']:n7;if(n9){var n8=d['DOMUtils']['getParent'](d['dotCN']['guildouter'],document['querySelector'](d['dotCNS']['guilds']+d['dotCN']['dmpill']+'\x20+\x20*\x20'+d['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+n9+'\x22]'));return n8&&d?n8['parentElement']:n8;}}return null;};d['DMUtils']['getData']=function(nb){if(!nb)return null;let nc=Node['prototype']['isPrototypeOf'](nb)?d['BDFDB']['DMUtils']['getId'](nb):typeof nb=='object'?nb['id']:nb;nc=typeof nc=='number'?nc['toFixed']():nc;for(let nd of d['DMUtils']['getAll']())if(nd&&nd['id']==nc)return nd;return null;};d['DMUtils']['getAll']=function(){var ne=[];for(let nf of d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['guilds']),{'name':'DirectMessage','all':!![],'unlimited':!![]})){if(nf['props']&&nf['props']['channel'])ne['push'](Object['assign'](new nf['props']['channel']['constructor'](nf['props']['channel']),{'div':d['ReactUtils']['findDOMNode'](nf),'instance':nf}));}return ne;};d['DMUtils']['openMenu']=function(ng,nh=d['InternalData']['mousePosition']){if(!ng)return;let ni=Node['prototype']['isPrototypeOf'](ng)?d['ChannelUtils']['getId'](ng):typeof ng=='object'?ng['id']:ng;let nj=i5['ChannelStore']['getChannel'](ni);if(nj){if(nj['isMultiUserDM']())i5['ContextMenuUtils']['openContextMenu'](nh,function(nh){return d['ReactUtils']['createElement'](xp['LibraryComponents']['ContextMenus']['GroupDMContextMenu'],Object['assign']({},nh,{'channelId':nj['id'],'selected':nj['id']==i5['LastChannelStore']['getChannelId']()}));},{'noBlurEvent':!![]});else i5['ContextMenuUtils']['openContextMenu'](nh,function(nh){return d['ReactUtils']['createElement'](xp['LibraryComponents']['ContextMenus']['_Exports']['UserContextMenu']&&xp['LibraryComponents']['ContextMenus']['_Exports']['UserContextMenu']['default'],Object['assign']({},nh,{'type':d['DiscordConstants']['ContextMenuTypes']['USER_PRIVATE_CHANNELS'],'user':i5['UserStore']['getUser'](nj['recipients'][0x0]),'channelId':nj['id'],'selected':nj['id']==i5['LastChannelStore']['getChannelId']()}));});}};d['DMUtils']['markAsRead']=function(nm){if(!nm)return;var nn=[];for(let no of nm=d['ArrayUtils']['is'](nm)?nm:typeof nm=='string'||typeof nm=='number'?Array['of'](nm):Array['from'](nm)){let np=Node['prototype']['isPrototypeOf'](no)?d['BDFDB']['DMUtils']['getId'](no):no&&typeof no=='object'?no['id']:no;if(np)nn['push'](np);}for(let nq in nn)d['TimeUtils']['timeout'](c=>{i5['AckUtils']['ack'](nn[nq]);},nq*0x3e8);};d['DataUtils']={};d['DataUtils']['cached']=window['BDFDB']&&window['BDFDB']['DataUtils']&&window['BDFDB']['DataUtils']['cached']||{};d['DataUtils']['save']=function(ns,nt,nu,nv){let nw,nx;if(!d['BDUtils']['isBDv2']()){nx=typeof nt==='string'?nt:nt['name'];nw=i2['path']['join'](d['BDUtils']['getPluginsFolder'](),nx+'.config.json');}else{nx=typeof nt==='string'?nt['toLowerCase']():null;let ny=nx?d['Plugins'][nx]?d['Plugins'][nx]['contentPath']:null:nt['contentPath'];if(!ny)return;nw=i2['path']['join'](ny,'settings.json');}let nz=d['DataUtils']['cached'][nx]!==undefined?d['DataUtils']['cached'][nx]:f['readConfig'](nw)||{};if(nu===undefined)nz=d['ObjectUtils']['is'](ns)?d['ObjectUtils']['sort'](ns):ns;else{if(nv===undefined)nz[nu]=d['ObjectUtils']['is'](ns)?d['ObjectUtils']['sort'](ns):ns;else{if(!d['ObjectUtils']['is'](nz[nu]))nz[nu]={};nz[nu][nv]=d['ObjectUtils']['is'](ns)?d['ObjectUtils']['sort'](ns):ns;}}let nA=d['ObjectUtils']['is'](nz);if(nu!==undefined&&nA&&d['ObjectUtils']['is'](nz[nu])&&d['ObjectUtils']['isEmpty'](nz[nu]))delete nz[nu];if(d['ObjectUtils']['isEmpty'](nz)){delete d['DataUtils']['cached'][nx];if(i2['fs']['existsSync'](nw))i2['fs']['unlinkSync'](nw);}else{if(nA)nz=d['ObjectUtils']['sort'](nz);d['DataUtils']['cached'][nx]=nA?d['ObjectUtils']['deepAssign']({},nz):nz;i2['fs']['writeFileSync'](nw,JSON['stringify'](nz,null,'\x09'));}};d['DataUtils']['load']=function(nB,nC,nD){let nE,nF;if(!d['BDUtils']['isBDv2']()){nF=typeof nB==='string'?nB:nB['name'];nE=i2['path']['join'](d['BDUtils']['getPluginsFolder'](),nF+'.config.json');}else{nF=typeof nB==='string'?nB['toLowerCase']():null;let nG=nF?d['Plugins'][nF]?d['Plugins'][nF]['contentPath']:null:nB['contentPath'];if(!nG)return{};nE=i2['path']['join'](nG,'settings.json');}let nH=d['DataUtils']['cached'][nF]!==undefined?d['DataUtils']['cached'][nF]:f['readConfig'](nE)||{};let nI=d['ObjectUtils']['is'](nH);d['DataUtils']['cached'][nF]=nI?d['ObjectUtils']['deepAssign']({},nH):nH;if(nC===undefined)return nH;else{let nJ=nI?d['ObjectUtils']['is'](nH[nC])||nH[nC]==undefined?d['ObjectUtils']['deepAssign']({},nH[nC]):nH[nC]:null;if(nD===undefined)return nJ;else return!d['ObjectUtils']['is'](nJ)||nJ[nD]===undefined?null:nJ[nD];}};d['DataUtils']['remove']=function(nK,nL,nM){let nN,nO;if(!d['BDUtils']['isBDv2']()){nO=typeof nK==='string'?nK:nK['name'];nN=i2['path']['join'](d['BDUtils']['getPluginsFolder'](),nO+'.config.json');}else{nO=typeof nK==='string'?nK['toLowerCase']():null;let nP=nO?d['Plugins'][nO]?d['Plugins'][nO]['contentPath']:null:nK['contentPath'];if(!nP)return;nN=i2['path']['join'](nP,'settings.json');}let nQ=d['DataUtils']['cached'][nO]!==undefined?d['DataUtils']['cached'][nO]:f['readConfig'](nN)||{};let nR=d['ObjectUtils']['is'](nQ);if(nL===undefined||!nR)nQ={};else{if(nM===undefined)delete nQ[nL];else if(d['ObjectUtils']['is'](nQ[nL]))delete nQ[nL][nM];}if(d['ObjectUtils']['is'](nQ[nL])&&d['ObjectUtils']['isEmpty'](nQ[nL]))delete nQ[nL];if(d['ObjectUtils']['isEmpty'](nQ)){delete d['DataUtils']['cached'][nO];if(i2['fs']['existsSync'](nN))i2['fs']['unlinkSync'](nN);}else{if(nR)nQ=d['ObjectUtils']['sort'](nQ);d['DataUtils']['cached'][nO]=nR?d['ObjectUtils']['deepAssign']({},nQ):nQ;i2['fs']['writeFileSync'](nN,JSON['stringify'](nQ,null,'\x09'));}};d['DataUtils']['get']=function(nS,nT,nU){nS=typeof nS=='string'?d['BDUtils']['getPlugin'](nS):nS;if(!d['ObjectUtils']['is'](nS))return nU===undefined?{}:null;let nV=(nS==d&&f||nS)['defaults'];if(!d['ObjectUtils']['is'](nV)||!nV[nT])return nU===undefined?{}:null;let nW=d['DataUtils']['load'](nS,nT),nX={},nY=![];for(let nZ in nV[nT]){let o0=d['ObjectUtils']['is'](nV[nT][nZ]['value']);if(nW[nZ]==null||o0&&(!d['ObjectUtils']['is'](nW[nZ])||Object['keys'](nV[nT][nZ]['value'])['some'](o1=>nV[nT][nZ]['value'][o1]!=null&&!d['sameProto'](nV[nT][nZ]['value'][o1],nW[nZ][o1])))){nX[nZ]=o0?d['ObjectUtils']['deepAssign']({},nV[nT][nZ]['value']):nV[nT][nZ]['value'];nY=!![];}else nX[nZ]=nW[nZ];}if(nY)d['DataUtils']['save'](nX,nS,nT);if(nU===undefined)return nX;else return nX[nU]===undefined?null:nX[nU];};f['readConfig']=function(o2){try{return JSON['parse'](i2['fs']['readFileSync'](o2));}catch(o3){return{};}};d['ColorUtils']={};d['ColorUtils']['convert']=function(o4,o5,o6){if(d['ObjectUtils']['is'](o4)){var o7={};for(let o8 in o4)o7[o8]=d['ColorUtils']['convert'](o4[o8],o5,o6);return o7;}else{o5=o5===undefined||!o5?o5='RGBCOMP':o5['toUpperCase']();o6=o6===undefined||!o6||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](o6['toUpperCase']())?d['ColorUtils']['getType'](o4):o6['toUpperCase']();if(o5=='RGBCOMP'){switch(o6){case'RGBCOMP':if(o4['length']==0x3)return oI(o4);else if(o4['length']==0x4){let o9=oL(o4['pop']());return oI(o4)['concat'](o9);}break;case'RGB':return oI(o4['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let oa=o4['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let o9=oL(oa['pop']());return oI(oa)['concat'](o9);case'HSLCOMP':if(o4['length']==0x3)return d['ColorUtils']['convert']('hsl('+oP(o4)['join'](',')+')','RGBCOMP');else if(o4['length']==0x4){let oc=oL(o4['pop']());return d['ColorUtils']['convert']('hsl('+oP(o4)['join'](',')+')','RGBCOMP')['concat'](oc);}break;case'HSL':var od=oP(o4['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var oe,of,og,oh,oi,oj,ok,ol;var om=od[0x0]/0x168,on=parseInt(od[0x1])/0x64,oo=parseInt(od[0x2])/0x64;oh=Math['floor'](om*0x6);oi=om*0x6-oh;oj=oo*(0x1-on);ok=oo*(0x1-oi*on);ol=oo*(0x1-(0x1-oi)*on);switch(oh%0x6){case 0x0:oe=oo,of=ol,og=oj;break;case 0x1:oe=ok,of=oo,og=oj;break;case 0x2:oe=oj,of=oo,og=ol;break;case 0x3:oe=oj,of=ok,og=oo;break;case 0x4:oe=ol,of=oj,og=oo;break;case 0x5:oe=oo,of=oj,og=ok;break;}return[Math['round'](oe*0xff),Math['round'](of*0xff),Math['round'](og*0xff)];case'HSLA':var od=o4['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return d['ColorUtils']['convert']('hsl('+od['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](oL(od['pop']()));case'HEX':var oq=/^#([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'](o4);return[parseInt(oq[0x1]+oq[0x1]||oq[0x4],0x10)['toString'](),parseInt(oq[0x2]+oq[0x2]||oq[0x5],0x10)['toString'](),parseInt(oq[0x3]+oq[0x3]||oq[0x6],0x10)['toString']()];case'HEXA':var oq=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$|^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i['exec'](o4);return[parseInt(oq[0x1]+oq[0x1]||oq[0x5],0x10)['toString'](),parseInt(oq[0x2]+oq[0x2]||oq[0x6],0x10)['toString'](),parseInt(oq[0x3]+oq[0x3]||oq[0x7],0x10)['toString'](),Math['floor'](d['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(oq[0x4]+oq[0x4]||oq[0x8],0x10)['toString']()))/0x64];case'INT':o4=oT(o4);return[(o4>>0x10&0xff)['toString'](),(o4>>0x8&0xff)['toString'](),(o4&0xff)['toString']()];default:return null;}}else{var os=o6=='RGBCOMP'?o4:d['ColorUtils']['convert'](o4,'RGBCOMP',o6);if(os)switch(o5){case'RGB':return'rgb('+oI(os['slice'](0x0,0x3))['join'](',')+')';case'RGBA':os=os['slice'](0x0,0x4);var ot=os['length']==0x4?oL(os['pop']()):0x1;return'rgba('+oI(os)['concat'](ot)['join'](',')+')';case'HSLCOMP':var ot=os['length']==0x4?oL(os['pop']()):null;var od=oP(d['ColorUtils']['convert'](os,'HSL')['replace'](/\s/g,'')['split'](','));return ot!=null?od['concat'](ot):od;case'HSL':var oe=oG(os[0x0]),of=oG(os[0x1]),og=oG(os[0x2]);var oz=Math['max'](oe,of,og),oA=Math['min'](oe,of,og),oB=oz-oA,om,on=oz===0x0?0x0:oB/oz,oo=oz/0xff;switch(oz){case oA:om=0x0;break;case oe:om=of-og+oB*(of0xff?0xff:oi<0x0?0x0:oi;}};function oI(oJ){return oJ['map'](oi=>{return oG(oi);});};function oL(ot){if(ot==null){return 0x1;}else{ot=ot['toString']();ot=(ot['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(ot['replace'](/[^0-9\.\-]/g,''));return isNaN(ot)||ot>0x1?0x1:ot<0x0?0x0:ot;}};function oN(oO){if(oO==null){return'100%';}else{oO=parseFloat(oO['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(oO)||oO>0x64?0x64:oO<0x0?0x0:oO)+'%';}};function oP(oQ){let om=parseFloat(oQ['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));om=isNaN(om)||om>0x168?0x168:om<0x0?0x0:om;return[om]['concat'](oQ['map'](oS=>{return oN(oS);}));};function oT(oi){if(oi==null){return 0xffffff;}else{oi=parseInt(oi['toString']()['replace'](/[^0-9]/g,''));return isNaN(oi)||oi>0xffffff?0xffffff:oi<0x0?0x0:oi;}};};d['ColorUtils']['setAlpha']=function(oV,oW,oX){if(d['ObjectUtils']['is'](oV)){var oY={};for(let oZ in oV)oY[oZ]=d['ColorUtils']['setAlpha'](oV[oZ],oW,oX);return oY;}else{var p0=d['ColorUtils']['convert'](oV,'RGBCOMP');if(p0){oW=oW['toString']();oW=(oW['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oW['replace'](/[^0-9\.\-]/g,''));oW=isNaN(oW)||oW>0x1?0x1:oW<0x0?0x0:oW;p0[0x3]=oW;oX=(oX||d['ColorUtils']['getType'](oV))['toUpperCase']();oX=oX=='RGB'||oX=='HSL'||oX=='HEX'?oX+'A':oX;return d['ColorUtils']['convert'](p0,oX);}}return null;};d['ColorUtils']['getAlpha']=function(p1){var p2=d['ColorUtils']['convert'](p1,'RGBCOMP');if(p2){if(p2['length']==0x3)return 0x1;else if(p2['length']==0x4){let p3=p2[0x3]['toString']();p3=(p3['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(p3['replace'](/[^0-9\.\-]/g,''));return isNaN(p3)||p3>0x1?0x1:p3<0x0?0x0:p3;}}return null;};d['ColorUtils']['change']=function(p4,p5,p6){p5=parseFloat(p5);if(p4!=null&&typeof p5=='number'&&!isNaN(p5)){if(d['ObjectUtils']['is'](p4)){var p7={};for(let p8 in p4)p7[p8]=d['ColorUtils']['change'](p4[p8],p5,p6);return p7;}else{var p9=d['ColorUtils']['convert'](p4,'RGBCOMP');if(p9){if(parseInt(p5)!==p5){p5=p5['toString']();p5=(p5['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(p5['replace'](/[^0-9\.\-]/g,''));p5=isNaN(p5)?0x0:p5;return d['ColorUtils']['convert']([Math['round'](p9[0x0]*(0x1+p5)),Math['round'](p9[0x1]*(0x1+p5)),Math['round'](p9[0x2]*(0x1+p5))],p6||d['ColorUtils']['getType'](p4));}else return d['ColorUtils']['convert']([Math['round'](p9[0x0]+p5),Math['round'](p9[0x1]+p5),Math['round'](p9[0x2]+p5)],p6||d['ColorUtils']['getType'](p4));}}}return null;};d['ColorUtils']['invert']=function(pa,pb){if(d['ObjectUtils']['is'](pa)){var pc={};for(let pd in pa)pc[pd]=d['ColorUtils']['invert'](pa[pd],pb);return pc;}else{var pe=d['ColorUtils']['convert'](pa,'RGBCOMP');if(pe)return d['ColorUtils']['convert']([0xff-pe[0x0],0xff-pe[0x1],0xff-pe[0x2]],pb||d['ColorUtils']['getType'](pa));}return null;};d['ColorUtils']['compare']=function(pf,pg){if(pf&&pg){pf=d['ColorUtils']['convert'](pf,'RGBA');pg=d['ColorUtils']['convert'](pg,'RGBA');if(pf&&pg)return d['equals'](pf,pg);}return null;};d['ColorUtils']['isBright']=function(ph,pi=0xa0){ph=d['ColorUtils']['convert'](ph,'RGBCOMP');if(!ph)return![];return parseInt(pi)