diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index 680c11bdb3..b55ad37cfd 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -1171,7 +1171,6 @@
return modulefunction == "render" && data.returnValue === undefined ? null : data.returnValue;
};
for (let key of Object.keys(originalfunction)) module[modulefunction][key] = originalfunction[key];
- if (!module[modulefunction].__originalMethod) module[modulefunction].__originalMethod = originalfunction;
if (!module[modulefunction].__originalFunction) module[modulefunction].__originalFunction = originalfunction;
module[modulefunction].__isBDFDBpatched = true;
}
@@ -7411,7 +7410,7 @@
render() {
return BDFDB.ReactUtils.createElement("div", {
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.favbuttoncontainer, this.props.className),
- children: BDFDB.ReactUtils.createElement(InternalComponents.NativeSubComponents.FavButton, Object.assign({}, this.props, {onClick: this.handleClick.bind(this)}))
+ children: BDFDB.ReactUtils.createElement(InternalComponents.NativeSubComponents.FavButton, BDFDB.ObjectUtils.exclude(Object.assign({}, this.props, {onClick: this.handleClick.bind(this)}), "className"))
});
}
};
diff --git a/Plugins/BDFDB.min.js b/Plugins/BDFDB.min.js
index 12facc5b7d..780b2a41b1 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']['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'},'addSupportLinks':{'value':!![],'description':'Add\x20PayPal/Patreon\x20links\x20to\x20my\x20Plugin\x20Entries'}}};d['LogUtils']={};d['LogUtils']['log']=function(g,h){if(typeof g!='string')g='';if(typeof h!='string'||h=='$BDFDB')h='BDFDB';console['log']('%c['+h+']','color:\x20#3a71c1;\x20font-weight:\x20700;',g['trim']());};d['LogUtils']['warn']=function(i,j){if(typeof i!='string')i='';if(typeof j!='string'||j=='$BDFDB')j='BDFDB';console['warn']('%c['+j+']','color:\x20#3a71c1;\x20font-weight:\x20700;',i['trim']());};d['LogUtils']['error']=function(k,l){if(typeof k!='string')k='';if(typeof l!='string'||l=='$BDFDB')l='BDFDB';console['error']('%c['+l+']','color:\x20#3a71c1;\x20font-weight:\x20700;','Fatal\x20Error:\x20'+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);if(m['patchModules']){m['patchedModules']={'after':m['patchModules']};delete m['patchModules'];}m['patchedModules']=d['ObjectUtils']['filter'](m['patchedModules'],n=>f7['Patchtypes']['includes'](n),!![]);f['clearStartTimeout'](m);let o=d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_started','v'+m['version']);d['LogUtils']['log'](o,m['name']);if(!d['BDUtils']['getSettings']('fork-ps-2')&&d['DataUtils']['get'](d,'settings','showToasts'))d['NotificationUtils']['toast'](m['name']+'\x20'+o,{'nopointer':!![],'selector':'plugin-started-toast'});let p=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'],p);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'][p]={'name':m['name'],'raw':p,'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 r in d['myPlugins'])if(!d['myPlugins'][r]['started']&&typeof d['myPlugins'][r]['initialize']=='function')setImmediate(c=>{d['TimeUtils']['suppress'](d['myPlugins'][r]['initialize']['bind'](d['myPlugins'][r]),'Could\x20not\x20initiate\x20plugin!',r)();});};d['PluginUtils']['clear']=function(t){f['clearStartTimeout'](t);delete d['myPlugins'][t['name']];let u=d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_stopped','v'+t['version']);d['LogUtils']['log'](u,t['name']);if(!d['BDUtils']['getSettings']('fork-ps-2')&&d['DataUtils']['get'](d,'settings','showToasts'))d['NotificationUtils']['toast'](t['name']+'\x20'+u,{'nopointer':!![],'selector':'plugin-stopped-toast'});let v=typeof t['getRawUrl']=='function'&&typeof t['getRawUrl']()=='string'?t['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+t['name']+'/'+t['name']+'.plugin.js';if(d['ObjectUtils']['is'](t['classes']))f['removePluginClasses'](t);if(typeof t['css']==='string')d['DOMUtils']['removeLocalStyle'](t['name']);d['ModuleUtils']['unpatch'](t);d['ListenerUtils']['remove'](t);d['ObserverUtils']['disconnect'](t);d['WindowUtils']['closeAll'](t);d['WindowUtils']['removeListener'](t);for(let w in d['InternalData']['componentPatchQueries'])d['ArrayUtils']['remove'](d['InternalData']['componentPatchQueries'][w]['query'],t,!![]);for(let x of document['querySelectorAll']('.'+t['name']+'-modal,\x20.'+t['name']['toLowerCase']()+'-modal,\x20.'+t['name']+'-settingsmodal,\x20.'+t['name']['toLowerCase']()+'-settingsmodal')){let y=x['querySelector'](d['dotCN']['modalclose']);if(y)y['click']();}delete d['DataUtils']['cached'][t['name']];delete window['PluginUpdates']['plugins'][v];delete t['started'];d['TimeUtils']['timeout'](c=>{delete t['stopping'];});};d['PluginUtils']['translate']=function(A){A['labels']={};if(typeof A['setLabelsByLanguage']==='function'||typeof A['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])D();else{var B=d['TimeUtils']['interval'](c=>{if(document['querySelector']('html')['lang']){d['TimeUtils']['clear'](B);D();}},0x64);}function D(){var E=d['LanguageUtils']['getLanguage']();if(typeof A['setLabelsByLanguage']==='function')A['labels']=A['setLabelsByLanguage'](E['id']);if(typeof A['changeLanguageStrings']==='function')A['changeLanguageStrings']();d['LogUtils']['log'](d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_translated',E['ownlang']),A['name']);}}};d['PluginUtils']['checkUpdate']=function(F,G){if(d['BDUtils']['isBDv2']()||!F||!G)return;i3['request'](G,(H,I,J)=>{if(H)return;var K=J['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!K)return;if(d['NumberUtils']['getVersionDifference'](K[0x0],window['PluginUpdates']['plugins'][G]['version'])>0.2){d['NotificationUtils']['toast'](F+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});d['PluginUtils']['downloadUpdate'](F,G);}else if(d['NumberUtils']['compareVersions'](K[0x0],window['PluginUpdates']['plugins'][G]['version']))d['PluginUtils']['showUpdateNotice'](F,G);else d['PluginUtils']['removeUpdateNotice'](F);});};d['PluginUtils']['checkAllUpdates']=function(){for(let L in window['PluginUpdates']['plugins']){var M=window['PluginUpdates']['plugins'][L];d['PluginUtils']['checkUpdate'](M['name'],M['raw']);}};d['PluginUtils']['showUpdateNotice']=function(N,O){if(!N||!O)return;var P=document['querySelector']('#pluginNotice');if(!P){P=d['NotificationUtils']['notice']('The\x20following\x20plugins\x20need\x20to\x20be\x20updated: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!d['BDUtils']['isAutoLoadEnabled']()?'Reload':'','customicon':''});P['style']['setProperty']('display','block','important');P['style']['setProperty']('visibility','visible','important');P['style']['setProperty']('opacity','1','important');P['querySelector'](d['dotCN']['noticedismiss'])['addEventListener']('click',c=>{d['DOMUtils']['remove']('.update-clickme-tooltip');});let R=P['querySelector'](d['dotCN']['noticebutton']);if(R){d['DOMUtils']['toggle'](R,!![]);R['addEventListener']('click',c=>{i3['electron']['remote']['getCurrentWindow']()['reload']();});R['addEventListener']('mouseenter',c=>{if(window['PluginUpdates']['downloaded'])d['TooltipUtils']['create'](R,window['PluginUpdates']['downloaded']['join'](',\x20'),{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(P){var U=P['querySelector']('#outdatedPlugins');if(U&&!U['querySelector']('#'+N+'-notice')){if(U['querySelector']('span'))U['appendChild'](d['DOMUtils']['create'](',\x20'));var V=d['DOMUtils']['create'](''+N+'');V['addEventListener']('click',c=>{d['PluginUtils']['downloadUpdate'](N,O);});U['appendChild'](V);if(!document['querySelector']('.update-clickme-tooltip'))d['TooltipUtils']['create'](U,'Click\x20us!',{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};d['PluginUtils']['removeUpdateNotice']=function(X,Y=document['querySelector']('#pluginNotice')){if(!X||!Y)return;var Z=Y['querySelector']('#outdatedPlugins');if(Z){var a0=Z['querySelector']('#'+X+'-notice');if(a0){var a1=a0['nextSibling'];var a2=a0['prevSibling'];if(a1&&d['DOMUtils']['containsClass'](a1,'separator'))a1['remove']();else if(a2&&d['DOMUtils']['containsClass'](a2,'separator'))a2['remove']();a0['remove']();}if(!Z['querySelector']('span')){var a3=Y['querySelector'](d['dotCN']['noticebutton']);if(a3){Y['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';d['DOMUtils']['toggle'](a3,![]);}else Y['querySelector'](d['dotCN']['noticedismiss'])['click']();}}};d['PluginUtils']['downloadUpdate']=function(a4,a5){if(!a4||!a5)return;i3['request'](a5,(a6,a7,a8)=>{if(a6)return d['LogUtils']['warn']('Unable\x20to\x20get\x20update\x20for\x20'+a4);d['InternalData']['creationTime']=0x0;var a9=a8['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);a9=a9['toString']()['replace'](/['"]/g,'');i3['fs']['writeFileSync'](i3['path']['join'](d['BDUtils']['getPluginsFolder'](),a5['split']('/')['slice'](-0x1)[0x0]),a8);d['NotificationUtils']['toast'](a4+'\x20v'+window['PluginUpdates']['plugins'][a5]['version']+'\x20has\x20been\x20replaced\x20by\x20'+a4+'\x20v'+a9+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var aa=document['querySelector']('#pluginNotice');if(aa){if(aa['querySelector'](d['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][a5]['version']=a9;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](a4))window['PluginUpdates']['downloaded']['push'](a4);}d['PluginUtils']['removeUpdateNotice'](a4,aa);}});};d['PluginUtils']['checkChangeLog']=function(ab){if(!d['ObjectUtils']['is'](ab)||!ab['changelog'])return;var ac=d['DataUtils']['load'](ab,'changelog');if(!ac['currentversion']||d['NumberUtils']['compareVersions'](ab['version'],ac['currentversion'])){ac['currentversion']=ab['version'];d['DataUtils']['save'](ac,ab,'changelog');d['PluginUtils']['openChangeLog'](ab);}};d['PluginUtils']['openChangeLog']=function(ad){if(!d['ObjectUtils']['is'](ad)||!ad['changelog'])return;var ae='',af={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let ag in ad['changelog']){ag=ag['toLowerCase']();var ah=d['disCN']['changelog'+ag];if(ah){ae+='
'+af[ag]+'
';for(let ai of ad['changelog'][ag])ae+='- '+ai[0x0]+''+(ai[0x1]?':\x20'+ai[0x1]+'.':'')+'
';ae+='
';}}if(ae)d['ModalUtils']['open'](ad,{'header':ad['name']+'\x20'+d['LanguageUtils']['LanguageStrings']['CHANGE_LOG'],'subheader':'Version\x20'+ad['version'],'children':d['ReactUtils']['elementToReact'](d['DOMUtils']['create'](ae)),'className':d['disCN']['modalchangelogmodal'],'contentClassName':d['disCNS']['changelogcontainer']+d['disCN']['modalminicontent']});};d['PluginUtils']['addLoadingIcon']=function(aj){if(!Node['prototype']['isPrototypeOf'](aj))return;d['DOMUtils']['addClass'](aj,d['disCN']['loadingicon']);let ak=document['querySelector'](d['dotCN']['app']+'>'+d['dotCN']['loadingiconwrapper']);if(!ak){ak=d['DOMUtils']['create']('');document['querySelector'](d['dotCN']['app'])['appendChild'](ak);let al=new MutationObserver(am=>{if(!ak['firstElementChild'])d['DOMUtils']['remove'](ak);});al['observe'](ak,{'childList':!![]});}ak['appendChild'](aj);};d['PluginUtils']['createSettingsPanel']=function(an,ao){if(!d['ObjectUtils']['is'](an)||!ao||!d['ReactUtils']['isValidElement'](ao)&&!d['ArrayUtils']['is'](ao)||d['ArrayUtils']['is'](ao)&&!ao['length'])return;let ap=d['DOMUtils']['create']('');d['ReactUtils']['render'](d['ReactUtils']['createElement'](Aq['LibraryComponents']['SettingsPanel'],{'key':an['name']+'-settingspanel','title':an['name']=='$BDFDB'?'BDFDB':an['name'],'children':ao}),ap);return ap;};d['PluginUtils']['refreshSettingsPanel']=function(aq,ar,...as){if(!d['ObjectUtils']['is'](aq)||typeof aq['getSettingsPanel']!='function'||!Node['prototype']['isPrototypeOf'](ar)||!ar['parentElement'])return;ar['parentElement']['appendChild'](aq['getSettingsPanel'](...as));ar['remove']();};f['clearStartTimeout']=function(at){if(!d['ObjectUtils']['is'](at))return;d['TimeUtils']['clear'](at['startTimeout'],at['libLoadTimeout']);delete at['startTimeout'];delete at['libLoadTimeout'];};f['addSpecialListeners']=function(au){if(d['ObjectUtils']['is'](au)){if(typeof au['onSettingsClosed']==='function'){let av=d['ModuleUtils']['findByName']('StandardSidebarView');if(av)d['ModuleUtils']['patch'](au,av['prototype'],'componentWillUnmount',{'after':aw=>{au['onSettingsClosed']();}});}if(typeof au['onSwitch']==='function'){let ax=document['querySelector'](d['dotCN']['guildswrapper']+'\x20~\x20*\x20>\x20'+d['dotCN']['chatspacer']);if(ax){let ay=new MutationObserver(az=>{az['forEach'](aA=>{if(aA['target']&&d['DOMUtils']['containsClass'](aA['target'],d['disCN']['nochannel']))au['onSwitch']();});});d['ObserverUtils']['connect'](au,ax['querySelector'](d['dotCNC']['chat']+d['dotCN']['nochannel']),{'name':'switchFixNoChannelObserver','instance':ay},{'attributes':!![]});let aB=new MutationObserver(aC=>{aC['forEach'](aD=>{if(aD['addedNodes']){aD['addedNodes']['forEach'](aE=>{if(d['DOMUtils']['containsClass'](aE,d['disCN']['chat'],d['disCN']['nochannel'],![])){d['ObserverUtils']['connect'](au,aE,{'name':'switchFixNoChannelObserver','instance':ay},{'attributes':!![]});}});}});});d['ObserverUtils']['connect'](au,ax,{'name':'switchFixSpacerObserver','instance':aB},{'childList':!![]});}}f['addContextListeners'](au);}};d['ObserverUtils']={};d['ObserverUtils']['connect']=function(aF,aG,aH,aI={'childList':!![]}){if(!d['ObjectUtils']['is'](aF)||!aG||!aH)return;if(d['ObjectUtils']['isEmpty'](aF['observers']))aF['observers']={};if(!d['ArrayUtils']['is'](aF['observers'][aH['name']]))aF['observers'][aH['name']]=[];if(!aH['multi'])for(let aJ of aF['observers'][aH['name']])aJ['disconnect']();if(aH['instance'])aF['observers'][aH['name']]['push'](aH['instance']);var aK=aF['observers'][aH['name']][aF['observers'][aH['name']]['length']-0x1];if(aK){var aL=Node['prototype']['isPrototypeOf'](aG)?aG:typeof aG==='string'?document['querySelector'](aG):null;if(aL)aK['observe'](aL,aI);}};d['ObserverUtils']['disconnect']=function(aM,aN){if(d['ObjectUtils']['is'](aM)&&!d['ObjectUtils']['isEmpty'](aM['observers'])){let aO=typeof aN=='string'?aN:d['ObjectUtils']['is'](aN)?aN['name']:null;if(!aO){for(let aN in aM['observers'])for(let aQ of aM['observers'][aN])aQ['disconnect']();delete aM['observers'];}else if(!d['ArrayUtils']['is'](aM['observers'][aO])){for(let aR of aM['observers'][aO])aR['disconnect']();delete aM['observers'][aO];}}};d['ListenerUtils']={};d['ListenerUtils']['add']=function(aS,aT,aU,aV,aW){if(!d['ObjectUtils']['is'](aS)||!Node['prototype']['isPrototypeOf'](aT)&&aT!==window||!aU)return;var aX=typeof aV=='function';var aY=aX?undefined:aV;var aZ=aX?aV:aW;if(typeof aZ!='function')return;d['ListenerUtils']['remove'](aS,aT,aU,aY);for(var b0 of aU['split']('\x20')){b0=b0['split']('.');var b1=b0['shift']()['toLowerCase']();if(!b1)return;var b2=b1;b1=b1=='mouseenter'||b1=='mouseleave'?'mouseover':b1;var b3=(b0['join']('.')||'')+aS['name'];if(!d['ArrayUtils']['is'](aS['listeners']))aS['listeners']=[];var b4=null;if(aY){if(b2=='mouseenter'||b2=='mouseleave'){b4=b5=>{for(let b6 of b5['path'])if(typeof b6['matches']=='function'&&b6['matches'](aY)&&!b6[b3+'BDFDB'+b2]){b6[b3+'BDFDB'+b2]=!![];if(b2=='mouseenter')aZ(d['ListenerUtils']['copyEvent'](b5,b6));let b7=b8=>{if(b8['target']['contains'](b6)||b8['target']==b6||!b6['contains'](b8['target'])){if(b2=='mouseleave')aZ(d['ListenerUtils']['copyEvent'](b5,b6));delete b6[b3+'BDFDB'+b2];document['removeEventListener']('mouseout',b7);}};document['addEventListener']('mouseout',b7);break;}};}else{b4=b9=>{for(let ba of b9['path'])if(typeof ba['matches']=='function'&&ba['matches'](aY)){aZ(d['ListenerUtils']['copyEvent'](b9,ba));break;}};}}else b4=bb=>{aZ(d['ListenerUtils']['copyEvent'](bb,aT));};aS['listeners']['push']({'ele':aT,'eventname':b1,'origeventname':b2,'namespace':b3,'selector':aY,'eventcallback':b4});aT['addEventListener'](b1,b4,!![]);}};d['ListenerUtils']['remove']=function(bc,bd,be='',bf){if(!d['ObjectUtils']['is'](bc)||!d['ArrayUtils']['is'](bc['listeners']))return;if(Node['prototype']['isPrototypeOf'](bd)||bd===window){for(var bg of be['split']('\x20')){bg=bg['split']('.');var bh=bg['shift']()['toLowerCase']();var bi=(bg['join']('.')||'')+bc['name'];for(let bj of bc['listeners']){let bk=[];if(bj['ele']==bd&&(!bh||bj['origeventname']==bh)&&bj['namespace']==bi&&(bf===undefined||bj['selector']==bf)){bd['removeEventListener'](bj['eventname'],bj['eventcallback'],!![]);bk['push'](bj);}if(bk['length'])bc['listeners']=bc['listeners']['filter'](bj=>{return bk['indexOf'](bj)<0x0;});}}}else if(!bd){for(let bm of bc['listeners'])bm['ele']['removeEventListener'](bm['eventname'],bm['eventcallback'],!![]);bc['listeners']=[];}};d['ListenerUtils']['multiAdd']=function(bn,bo,bp){if(!Node['prototype']['isPrototypeOf'](bn)||!bo||typeof bp!='function')return;for(var bq of bo['trim']()['split']('\x20')['filter'](br=>br))bn['addEventListener'](bq,bp,!![]);};d['ListenerUtils']['multiRemove']=function(bs,bt,bu){if(!Node['prototype']['isPrototypeOf'](bs)||!bt||typeof bu!='function')return;for(var bv of bt['trim']()['split']('\x20')['filter'](bw=>bw))bs['removeEventListener'](bv,bu,!![]);};d['ListenerUtils']['addToChildren']=function(bx,by,bz,bA){if(!Node['prototype']['isPrototypeOf'](bx)||!by||!bz||!bz['trim']()||typeof bA!='function')return;for(var bB of by['trim']()['split']('\x20')['filter'](bC=>bC)){var bD=bA;if(bB=='mouseenter'||bB=='mouseleave')bD=bE=>{if(bE['target']['matches'](bz))bA(bE);};bx['querySelectorAll'](bz['trim']())['forEach'](bF=>{bF['addEventListener'](bB,bD,!![]);});}};d['ListenerUtils']['copyEvent']=function(bG,bH){if(!bG||!bG['constructor']||!bG['type'])return bG;var bI=new bG['constructor'](bG['type'],bG);Object['defineProperty'](bI,'originalEvent',{'value':bG});Object['defineProperty'](bI,'which',{'value':bG['which']});Object['defineProperty'](bI,'keyCode',{'value':bG['keyCode']});Object['defineProperty'](bI,'path',{'value':bG['path']});Object['defineProperty'](bI,'relatedTarget',{'value':bG['relatedTarget']});Object['defineProperty'](bI,'srcElement',{'value':bG['srcElement']});Object['defineProperty'](bI,'target',{'value':bG['target']});Object['defineProperty'](bI,'toElement',{'value':bG['toElement']});if(bH)Object['defineProperty'](bI,'currentTarget',{'value':bH});return bI;};d['ListenerUtils']['stopEvent']=function(bJ){if(d['ObjectUtils']['is'](bJ)){if(typeof bJ['preventDefault']=='function')bJ['preventDefault']();if(typeof bJ['stopPropagation']=='function')bJ['stopPropagation']();if(typeof bJ['stopImmediatePropagation']=='function')bJ['stopImmediatePropagation']();if(d['ObjectUtils']['is'](bJ['originalEvent'])){if(typeof bJ['originalEvent']['preventDefault']=='function')bJ['originalEvent']['preventDefault']();if(typeof bJ['originalEvent']['stopPropagation']=='function')bJ['originalEvent']['stopPropagation']();if(typeof bJ['originalEvent']['stopImmediatePropagation']=='function')bJ['originalEvent']['stopImmediatePropagation']();}}};var bK=[],bL={'queue':[],'running':![]};d['NotificationUtils']={};d['NotificationUtils']['toast']=function(bM,bN={}){let bO=document['querySelector']('.toasts,\x20.bd-toasts');if(!bO){let bP=document['querySelector'](d['dotCN']['channels']+'\x20+\x20div');let bQ=bP?d['DOMUtils']['getRects'](bP):null;let bR=bP?bP['querySelector'](d['dotCN']['memberswrap']):null;let bS=bQ?bQ['left']:0x136;let bT=bQ?bR?bQ['width']-d['DOMUtils']['getRects'](bR)['width']:bQ['width']:window['outerWidth']-0x0;let bU=bP?bP['querySelector']('form'):null;let bV=bU?d['DOMUtils']['getRects'](bU)['height']:0x50;bO=d['DOMUtils']['create']('');(document['querySelector'](d['dotCN']['app'])||document['body'])['appendChild'](bO);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bN;let bW=d['DOMUtils']['create'](''+(html===!![]?bM:d['StringUtils']['htmlEscape'](bM))+'
');if(type){d['DOMUtils']['addClass'](bW,'toast-'+type);if(icon)d['DOMUtils']['addClass'](bW,'icon');}else if(color){let bX=d['ColorUtils']['convert'](color,'RGB');if(bX)bW['style']['setProperty']('background-color',bX);}d['DOMUtils']['addClass'](bW,selector);bO['appendChild'](bW);bW['close']=c=>{if(document['contains'](bW)){d['DOMUtils']['addClass'](bW,'closing');bW['style']['setProperty']('pointer-events','none','important');d['TimeUtils']['timeout'](c=>{bW['remove']();if(!bO['querySelectorAll']('.toast,\x20.bd-toast')['length'])bO['remove']();},0xbb8);}};if(nopointer)bW['style']['setProperty']('pointer-events','none','important');else bW['addEventListener']('click',bW['close']);d['TimeUtils']['timeout'](c=>{bW['close']();},timeout>0x0?timeout:0x927c0);return bW;};d['NotificationUtils']['desktop']=function(c1,c2={}){var c3=c=>{bL['queue']['push']({'parsedcontent':c1,'parsedoptions':c2});c5();};var c5=c=>{if(!bL['running']){var c7=bL['queue']['shift']();if(c7)c8(c7['parsedcontent'],c7['parsedoptions']);}};var c8=(c9,ca)=>{bL['running']=!![];var cb=ca['silent'];ca['silent']=ca['silent']||ca['sound']?!![]:![];var cc=new Notification(c9,ca);var cd=new Audio();var ce=d['TimeUtils']['timeout'](c=>{ch();},ca['timeout']?ca['timeout']:0xbb8);if(typeof ca['click']=='function')cc['onclick']=c=>{d['TimeUtils']['clear'](ce);ch();ca['click']();};if(!cb&&ca['sound']){cd['src']=ca['sound'];cd['play']();}var ch=c=>{cd['pause']();cc['close']();bL['running']=![];d['TimeUtils']['timeout'](c=>{c5();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')c3();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(ck){if(ck==='granted')c3();});};d['NotificationUtils']['notice']=function(cl,cm={}){if(!cl)return;var cn=document['querySelector'](d['dotCN']['layers']);if(!cn)return;var co=d['NumberUtils']['generateId'](bK);var cp=d['DOMUtils']['create']('');cn['parentElement']['insertBefore'](cp,cn);var cq=cp['querySelector']('.notice-message');if(cm['platform'])for(let cr of cm['platform']['split']('\x20'))if(zu['noticeicon'+cr]){let cs=d['DOMUtils']['create']('');d['DOMUtils']['addClass'](cs,d['disCN']['noticeplatformicon']);d['DOMUtils']['removeClass'](cs,d['disCN']['noticeicon']);cp['insertBefore'](cs,cq);}if(cm['customicon']){let ct=d['DOMUtils']['create'](cm['customicon']);let cs=d['DOMUtils']['create']('');if(ct['tagName']=='span'&&!ct['firstElementChild'])cs['style']['setProperty']('background','url('+cm['customicon']+')\x20center/cover\x20no-repeat');else cs['appendChild'](ct);d['DOMUtils']['addClass'](cs,d['disCN']['noticeplatformicon']);d['DOMUtils']['removeClass'](cs,d['disCN']['noticeicon']);cp['insertBefore'](cs,cq);}if(cm['btn']||cm['button'])cp['appendChild'](d['DOMUtils']['create'](''));if(cm['id'])cp['id']=cm['id']['split']('\x20')['join']('');if(cm['selector'])d['DOMUtils']['addClass'](cp,cm['selector']);if(cm['css'])d['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbar'+co,cm['css']);if(cm['style'])cp['style']=cm['style'];if(cm['html']===!![])cq['innerHTML']=cl;else{var cv=document['createElement']('a');var cw=[];for(let cx of cl['split']('\x20')){var cy=d['StringUtils']['htmlEscape'](cx);cv['href']=cx;cw['push'](cv['host']&&cv['host']!==window['location']['host']?'':cy);}cq['innerHTML']=cw['join']('\x20');}var cz=null;if(cm['type']&&!document['querySelector'](d['dotCNS']['chatbase']+d['dotCN']['noticestreamer'])){if(cz=d['disCN']['notice'+cm['type']])d['DOMUtils']['addClass'](cp,cz);if(cm['type']=='premium'){var cA=cp['querySelector'](d['dotCN']['noticebutton']);if(cA)d['DOMUtils']['addClass'](cA,d['disCN']['noticepremiumaction']);d['DOMUtils']['addClass'](cq,d['disCN']['noticepremiumtext']);cp['insertBefore'](d['DOMUtils']['create'](''),cq);}}if(!cz){var cB=d['ColorUtils']['convert'](cm['color'],'RGBCOMP');if(cB){var cC=cB[0x0]>0xb4&&cB[0x1]>0xb4&&cB[0x2]>0xb4?'#000':'#FFF';var cD=d['ColorUtils']['convert'](cB,'HEX');var cE=cB[0x0]>0xb4&&cB[0x1]>0xb4&&cB[0x2]>0xb4?'brightness(0%)':'brightness(100%)';d['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+co,d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]{background-color:'+cD+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20.notice-message\x20{color:'+cC+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticebutton']+'\x20{color:'+cC+'\x20!important;border-color:'+d['ColorUtils']['setAlpha'](cC,0.25,'RGBA')+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticebutton']+':hover\x20{color:'+cD+'\x20!important;background-color:'+cC+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticedismiss']+'\x20{filter:'+cE+'\x20!important;}');}else d['DOMUtils']['addClass'](cp,d['disCN']['noticedefault']);}cp['style']['setProperty']('height','36px','important');cp['style']['setProperty']('min-width','70vw','important');cp['style']['setProperty']('left','unset','important');cp['style']['setProperty']('right','unset','important');let cF=(d['DOMUtils']['getWidth'](document['body']['firstElementChild'])-d['DOMUtils']['getWidth'](cp))/0x2;cp['style']['setProperty']('left',cF+'px','important');cp['style']['setProperty']('right',cF+'px','important');cp['style']['setProperty']('min-width','unset','important');cp['style']['setProperty']('width','unset','important');cp['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cF*0x2+'px)','important');cp['querySelector'](d['dotCN']['noticedismiss'])['addEventListener']('click',c=>{cp['style']['setProperty']('overflow','hidden','important');cp['style']['setProperty']('height','0px','important');d['TimeUtils']['timeout'](c=>{d['ArrayUtils']['remove'](bK,co);d['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbar'+co);d['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+co);cp['remove']();},0x1f4);});return cp;};d['NotificationUtils']['alert']=function(cI,cJ){if(typeof cI=='string'&&typeof cI=='string'&&window['BdApi']&&typeof BdApi['alert']=='function')BdApi['alert'](cI,cJ);};var cK=[];d['TooltipUtils']={};d['TooltipUtils']['create']=function(cL,cM,cN={}){var cO=document['querySelector'](d['dotCN']['appmount']+'\x20>\x20*\x20>\x20'+d['dotCN']['itemlayercontainer']);if(!cO||typeof cM!='string'&&!d['ObjectUtils']['is'](cN['guild'])||!Node['prototype']['isPrototypeOf'](cL)||!document['contains'](cL))return null;var cP=d['NumberUtils']['generateId'](cK);var cQ=d['DOMUtils']['create']('');cO['appendChild'](cQ);var cR=cQ['firstElementChild'];if(cN['id'])cR['id']=cN['id']['split']('\x20')['join']('');if(!cN['type']||!d['disCN']['tooltip'+cN['type']['toLowerCase']()])cN['type']='top';d['DOMUtils']['addClass'](cR,d['disCN']['tooltip'+cN['type']['toLowerCase']()]);cR['type']=cN['type']['toLowerCase']();let cS=![],cT=![],cU='';if(cN['style'])cU+=cN['style'];if(cN['fontColor']){cS=d['ObjectUtils']['is'](cN['fontColor']);if(!cS)cU=(cU?cU+'\x20':'')+('color:\x20'+d['ColorUtils']['convert'](cN['fontColor'],'RGBA')+'\x20!important;');}if(cN['backgroundColor']){cT=!![];let cV=d['ObjectUtils']['is'](cN['backgroundColor']);let cW=!cV?d['ColorUtils']['convert'](cN['backgroundColor'],'RGBA'):d['ColorUtils']['createGradient'](cN['backgroundColor']);cU=(cU?cU+'\x20':'')+('background:\x20'+cW+'\x20!important;\x20border-color:\x20'+(cV?d['ColorUtils']['convert'](cN['backgroundColor'][cN['type']=='left'?0x64:0x0],'RGBA'):cW)+'\x20!important;');}if(cU)cR['style']=cU;if(cT)d['DOMUtils']['addClass'](cR,d['disCN']['tooltipcustom']);else if(cN['color']&&d['disCN']['tooltip'+cN['color']['toLowerCase']()])d['DOMUtils']['addClass'](cR,d['disCN']['tooltip'+cN['color']['toLowerCase']()]);else d['DOMUtils']['addClass'](cR,d['disCN']['tooltipblack']);if(cN['list']||d['ObjectUtils']['is'](cN['guild']))d['DOMUtils']['addClass'](cR,d['disCN']['tooltiplistitem']);if(cN['selector'])d['DOMUtils']['addClass'](cR,cN['selector']);if(d['ObjectUtils']['is'](cN['guild'])){let cX=i6['StreamUtils']['getAllApplicationStreams']()['filter'](cY=>cY['guildId']===cN['guild']['id'])['map'](cZ=>cZ['ownerId']);let d0=cX['map'](d1=>i6['UserStore']['getUser'](d1))['filter'](d2=>d2);let d3=Object['keys'](i6['VoiceUtils']['getVoiceStates'](cN['guild']['id']))['map'](d4=>!cX['includes'](d4)&&d['LibraryModules']['UserStore']['getUser'](d4))['filter'](d5=>d5);let d6=cM||cN['guild']['toString']();if(cS)d6=''+d['StringUtils']['htmlEscape'](d6)+'';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'](Aq['LibraryComponents']['GuildComponents']['Badge'],{'guild':cN['guild'],'size':i6['StringUtils']['cssValueToNumber'](zj['TooltipGuild']['iconSize']),'className':d['disCN']['tooltiprowicon']}),d['ReactUtils']['createElement']('span',{'className':d['DOMUtils']['formatClassName'](d['disCN']['tooltipguildnametext'],(d3['length']||d0['length'])&&d['disCN']['tooltipguildnametextlimitedsize']),'children':cS||cN['html']?d['ReactUtils']['elementToReact'](d['DOMUtils']['create'](d6)):d6})]}),d3['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](Aq['LibraryComponents']['SvgIcon'],{'name':Aq['LibraryComponents']['SvgIcon']['Names']['SPEAKER'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](Aq['LibraryComponents']['UserSummaryItem'],{'users':d3,'max':0x6})]}):null,d0['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](Aq['LibraryComponents']['SvgIcon'],{'name':Aq['LibraryComponents']['SvgIcon']['Names']['STREAM'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](Aq['LibraryComponents']['UserSummaryItem'],{'users':d0,'max':0x6})]}):null]['filter'](d7=>d7)}),cR);}else{if(cS)cR['innerHTML']=''+d['StringUtils']['htmlEscape'](cM)+'';else if(cN['html']===!![])cR['innerHTML']=cM;else cR['innerText']=cM;}cR['appendChild'](d['DOMUtils']['create'](''));cR['anker']=cL;if(cN['hide'])d['DOMUtils']['appendLocalStyle']('BDFDBhideOtherTooltips'+cP,'#app-mount\x20'+d['dotCN']['tooltip']+':not([tooltip-id=\x22'+cP+'\x22])\x20{display:\x20none\x20!important;}',cO);let d8=c=>{d['DOMUtils']['remove'](cQ);};cL['addEventListener']('mouseleave',d8);let da=new MutationObserver(db=>db['forEach'](dc=>{let dd=Array['from'](dc['removedNodes']);if(dd['indexOf'](cQ)>-0x1||dd['indexOf'](cL)>-0x1||dd['some'](de=>de['contains'](cL))){d['ArrayUtils']['remove'](cK,cP);da['disconnect']();d['DOMUtils']['remove'](cQ);d['DOMUtils']['removeLocalStyle']('BDFDBhideOtherTooltips'+cP,cO);cL['removeEventListener']('mouseleave',d8);}}));da['observe'](document['body'],{'subtree':!![],'childList':!![]});d['TooltipUtils']['update'](cR);if(cN['delay']){d['DOMUtils']['toggle'](cQ);d['TimeUtils']['timeout'](c=>{d['DOMUtils']['toggle'](cQ);},cN['delay']);}return cQ;};d['TooltipUtils']['update']=function(dg){if(!Node['prototype']['isPrototypeOf'](dg))return;let dh=d['DOMUtils']['getParent'](d['dotCN']['itemlayer'],dg);if(!Node['prototype']['isPrototypeOf'](dh))return;dg=dh['querySelector'](d['dotCN']['tooltip']);if(!Node['prototype']['isPrototypeOf'](dg)||!Node['prototype']['isPrototypeOf'](dg['anker'])||!dg['type'])return;var di=dg['querySelector'](d['dotCN']['tooltippointer']);var dj,dk,dl=d['DOMUtils']['getRects'](dg['anker']),dm=d['DOMUtils']['getRects'](dh),dn=d['DOMUtils']['getRects'](document['querySelector'](d['dotCN']['appmount'])),dp={'height':0xa,'width':0xa};switch(dg['type']){case'top':dk=dl['top']-dm['height']-dp['height']+0x2;dj=dl['left']+(dl['width']-dm['width'])/0x2;break;case'bottom':dk=dl['top']+dl['height']+dp['height']-0x2;dj=dl['left']+(dl['width']-dm['width'])/0x2;break;case'left':dk=dl['top']+(dl['height']-dm['height'])/0x2;dj=dl['left']-dm['width']-dp['width']+0x2;break;case'right':dk=dl['top']+(dl['height']-dm['height'])/0x2;dj=dl['left']+dl['width']+dp['width']-0x2;break;}dh['style']['setProperty']('top',dk+'px');dh['style']['setProperty']('left',dj+'px');di['style']['removeProperty']('margin-left');di['style']['removeProperty']('margin-top');if(dg['type']=='top'||dg['type']=='bottom'){if(dj<0x0){dh['style']['setProperty']('left','5px');di['style']['setProperty']('margin-left',dj-0xa+'px');}else{var dq=dn['width']-(dj+dm['width']);if(dq<0x0){dh['style']['setProperty']('left',dn['width']-dm['width']-0x5+'px');di['style']['setProperty']('margin-left',-0x1*dq+'px');}}}else if(dg['type']=='left'||dg['type']=='right'){if(dk<0x0){dh['style']['setProperty']('top','5px');di['style']['setProperty']('margin-top',dk-0xa+'px');}else{var dr=dn['height']-(dk+dm['height']);if(dr<0x0){dh['style']['setProperty']('top',dn['height']-dm['height']-0x5+'px');di['style']['setProperty']('margin-top',-0x1*dr+'px');}}}};d['ObjectUtils']={};d['ObjectUtils']['is']=function(ds){return ds&&Object['prototype']['isPrototypeOf'](ds)&&!Array['prototype']['isPrototypeOf'](ds);};d['ObjectUtils']['extract']=function(dt,...du){let dv={};if(d['ObjectUtils']['is'](dt))for(let dw of du['flat'](0xa)['filter'](dx=>dx))if(dt[dw])dv[dw]=dt[dw];return dv;};d['ObjectUtils']['exclude']=function(dy,...dz){let dA=Object['assign']({},dy);d['ObjectUtils']['delete'](dA,...dz);return dA;};d['ObjectUtils']['delete']=function(dB,...dC){if(d['ObjectUtils']['is'](dB))for(let dD of dC['flat'](0xa)['filter'](dE=>dE))delete dB[dD];};d['ObjectUtils']['sort']=function(dF,dG,dH){if(!d['ObjectUtils']['is'](dF))return{};var dI={};if(dG===undefined||!dG)for(let dJ of Object['keys'](dF)['sort']())dI[dJ]=dF[dJ];else{let dK=[];for(let dJ in dF)dK['push'](dF[dJ]);dK=d['ArrayUtils']['keySort'](dK,dG,dH);for(let dM of dK)for(let dJ in dF)if(d['equals'](dM,dF[dJ])){dI[dJ]=dM;break;}}return dI;};d['ObjectUtils']['reverse']=function(dO,dP){if(!d['ObjectUtils']['is'](dO))return{};var dQ={};for(let dR of dP===undefined||!dP?Object['keys'](dO)['reverse']():Object['keys'](dO)['sort']()['reverse']())dQ[dR]=dO[dR];return dQ;};d['ObjectUtils']['filter']=function(dS,dT,dU=![]){if(!d['ObjectUtils']['is'](dS))return{};if(typeof dT!='function')return dS;return Object['keys'](dS)['filter'](dV=>dT(dU?dV:dS[dV]))['reduce']((dW,dX)=>(dW[dX]=dS[dX],dW),{});};d['ObjectUtils']['push']=function(dY,dZ){if(d['ObjectUtils']['is'](dY))dY[Object['keys'](dY)['length']]=dZ;};d['ObjectUtils']['pop']=function(e0,e1){if(d['ObjectUtils']['is'](e0)){let e2=Object['keys'](e0);if(!e2['length'])return;let e1=e0[e2[e2['length']-0x1]];delete e0[e2[e2['length']-0x1]];return e1;}};d['ObjectUtils']['map']=function(e4,e5){if(!d['ObjectUtils']['is'](e4))return{};if(typeof e5!='string'&&typeof e5!='function')return e4;var e6={};for(let e7 in e4)if(d['ObjectUtils']['is'](e4[e7]))e6[e7]=typeof e5=='string'?e4[e7][e5]:e5(e4[e7],e7);return e6;};d['ObjectUtils']['toArray']=function(e8){if(!d['ObjectUtils']['is'](e8))return[];return Object['entries'](e8)['map'](e9=>e9[0x1]);};d['ObjectUtils']['deepAssign']=function(ea,...eb){if(!eb['length'])return ea;let ec=eb['shift']();if(d['ObjectUtils']['is'](ea)&&d['ObjectUtils']['is'](ec)){for(let ed in ec){if(d['ObjectUtils']['is'](ec[ed])){if(!ea[ed])Object['assign'](ea,{[ed]:{}});d['ObjectUtils']['deepAssign'](ea[ed],ec[ed]);}else Object['assign'](ea,{[ed]:ec[ed]});}}return d['ObjectUtils']['deepAssign'](ea,...eb);};d['ObjectUtils']['isEmpty']=function(ee){return!d['ObjectUtils']['is'](ee)||Object['getOwnPropertyNames'](ee)['length']==0x0;};d['ArrayUtils']={};d['ArrayUtils']['is']=function(ef){return ef&&Array['isArray'](ef);};d['ArrayUtils']['sum']=function(eg){return Array['isArray'](eg)?eg['reduce']((eh,ei)=>eh+Math['round'](ei),0x0):0x0;};d['ArrayUtils']['keySort']=function(ej,ek,el){if(!d['ArrayUtils']['is'](ej))return[];if(ek==null)return ej;if(el===undefined)el=null;return ej['sort']((em,en)=>{var eo=em[ek],ep=en[ek];if(eo!==el)return eoep?0x1:0x0;});};d['ArrayUtils']['numSort']=function(eq){return eq['sort']((er,es)=>{return eres?0x1:0x0;});};d['ArrayUtils']['remove']=function(et,eu,ev=![]){if(!d['ArrayUtils']['is'](et))return[];if(!et['includes'](eu))return et;if(!ev)et['splice'](et['indexOf'](eu),0x1);else while(et['indexOf'](eu)>-0x1)et['splice'](et['indexOf'](eu),0x1);return et;};d['ArrayUtils']['getAllIndexes']=function(ew,ex){if(!d['ArrayUtils']['is'](ew)&&typeof ew!='string')return[];var ey=[],ez=-0x1;while((ez=ew['indexOf'](ex,ez+0x1))!==-0x1)ey['push'](ez);return ey;};d['ArrayUtils']['removeCopies']=function(eA){if(!d['ArrayUtils']['is'](eA))return[];return[...new Set(eA)];};d['ModuleUtils']={};d['ModuleUtils']['cached']=window['BDFDB']&&window['BDFDB']['ModuleUtils']&&window['BDFDB']['ModuleUtils']['cached']||{};d['ModuleUtils']['find']=function(eB,eC){eC=typeof eC!='boolean'?!![]:eC;var eD=f['getWebModuleReq']();for(let eE in eD['c'])if(eD['c']['hasOwnProperty'](eE)){var eF=eD['c'][eE]['exports'];if(eF&&(typeof eF=='object'||typeof eF=='function')&&eB(eF))return eC?eF:eD['c'][eE];if(eF&&eF['__esModule']){for(let eG in eF)if(eF[eG]&&(typeof eF[eG]=='object'||typeof eF[eG]=='function')&&eB(eF[eG]))return eC?eF[eG]:eD['c'][eE];if(eF['default']&&(typeof eF['default']=='object'||typeof eF['default']=='function'))for(let eH in eF['default'])if(eF['default'][eH]&&(typeof eF['default'][eH]=='object'||typeof eF['default'][eH]=='function')&&eB(eF['default'][eH]))return eC?eF['default'][eH]:eD['c'][eE];}}};d['ModuleUtils']['findByProperties']=function(...eI){eI=eI['flat'](0xa);let eJ=eI['pop']();if(typeof eJ!='boolean'){eI['push'](eJ);eJ=!![];}return f['findModule']('prop',JSON['stringify'](eI),eK=>eI['every'](eL=>eK[eL]!==undefined),eJ);};d['ModuleUtils']['findByName']=function(eM,eN){return f['findModule']('name',JSON['stringify'](eM),eO=>eO['displayName']===eM||eO['render']&&eO['render']['displayName']===eM,typeof eN!='boolean'?!![]:eN);};d['ModuleUtils']['findByString']=function(...eP){eP=eP['flat'](0xa);let eQ=eP['pop']();if(typeof eQ!='boolean'){eP['push'](eQ);eQ=!![];}return f['findModule']('string',JSON['stringify'](eP),eR=>eP['every'](eS=>typeof eR=='function'&&(eR['toString']()['indexOf'](eS)>-0x1||eR['__originalMethod']&&eR['__originalMethod']['toString']()['indexOf'](eS)>-0x1||eR['__originalFunction']&&eR['__originalFunction']['toString']()['indexOf'](eS)>-0x1)||d['ObjectUtils']['is'](eR)&&typeof eR['type']=='function'&&(eR['type']['toString']()['indexOf'](eS)>-0x1||eR['type']['__originalMethod']&&eR['type']['__originalMethod']['toString']()['indexOf'](eS)>-0x1||eR['type']['__originalFunction']&&eR['type']['__originalFunction']['toString']()['indexOf'](eS)>-0x1)),eQ);};d['ModuleUtils']['findByPrototypes']=function(...eT){eT=eT['flat'](0xa);let eU=eT['pop']();if(typeof eU!='boolean'){eT['push'](eU);eU=!![];}return f['findModule']('proto',JSON['stringify'](eT),eV=>eV['prototype']&&eT['every'](eW=>eV['prototype'][eW]!==undefined),eU);};f['findModule']=function(eX,eY,eZ,f0){if(!d['ObjectUtils']['is'](d['ModuleUtils']['cached'][eX]))d['ModuleUtils']['cached'][eX]={'module':{},'export':{}};if(f0&&d['ModuleUtils']['cached'][eX]['export'][eY])return d['ModuleUtils']['cached'][eX]['export'][eY];else if(!f0&&d['ModuleUtils']['cached'][eX]['module'][eY])return d['ModuleUtils']['cached'][eX]['module'][eY];else{var f1=d['ModuleUtils']['find'](eZ,f0);if(f1){if(f0)d['ModuleUtils']['cached'][eX]['export'][eY]=f1;else d['ModuleUtils']['cached'][eX]['module'][eY]=f1;return f1;}else d['LogUtils']['warn'](eY+'\x20['+eX+']\x20not\x20found\x20in\x20WebModules');}};f['getWebModuleReq']=function(){if(!f['getWebModuleReq']['req']){const f2='BDFDB-WebModules';const f3=window['webpackJsonp']['push']([[],{[f2]:(f4,f5,f3)=>f4['exports']=f3},[[f2]]]);delete f3['m'][f2];delete f3['c'][f2];f['getWebModuleReq']['req']=f3;}return f['getWebModuleReq']['req'];};var f7={};f7['Patchtypes']=['before','instead','after'];f7['Patchmap']={'BannedCard':'BannedUser','ChannelWindow':'Channel','InvitationCard':'InviteRow','InviteCard':'InviteRow','MemberCard':'Member','PopoutContainer':'Popout','QuickSwitchResult':'Result','UserProfile':'UserProfileBody','WebhookCard':'Webhook'};f7['ForceObserve']=['DirectMessage','GuildIcon'];f7['DefaultRender']=['ContextMenuItem','DiscordTag','InviteModalUserRow','Mention','Message','MessageHeader','MessageTimestamp','NameTag','NowPlayingItem','SystemMessage','SimpleMessageAccessories','UserInfo'];f7['MemoComponent']=['MessageContent','NowPlayingHeader'];f7['NonPrototype']=[]['concat'](f7['DefaultRender'],f7['MemoComponent'],['ChannelTextAreaContainer']);f7['LoadedInComponents']={'AutocompleteChannelResult':'LibraryComponents.AutocompleteComponents.Channel','AutocompleteUserResult':'LibraryComponents.AutocompleteComponents.User','ContextMenuItem':'NativeSubComponents.ContextMenuItem','QuickSwitchChannelResult':'LibraryComponents.QuickSwitchComponents.Channel','QuickSwitchGroupDMResult':'LibraryComponents.QuickSwitchComponents.GroupDM','QuickSwitchGuildResult':'LibraryComponents.QuickSwitchComponents.Guild','QuickSwitchUserResult':'LibraryComponents.QuickSwitchComponents.User'};f7['Patchfinder']={'Account':'accountinfo','App':'app','AppSkeleton':'app','AppView':'appcontainer','AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','ChannelTextAreaForm':'chatform','ChannelWindow':'chatcontent','DirectMessage':'guildouter','EmojiPicker':'emojipicker','FriendRow':'friendsrow','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'};f7['GlobalModules']={};try{f7['GlobalModules']['V2C_ContentColumn']=V2C_ContentColumn;}catch(f8){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ContentColumn\x22');}try{f7['GlobalModules']['V2C_List']=V2C_List;}catch(f9){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_List\x22');}try{f7['GlobalModules']['V2C_PluginCard']=V2C_PluginCard;}catch(fa){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_PluginCard\x22');}try{f7['GlobalModules']['V2C_ThemeCard']=V2C_ThemeCard;}catch(fb){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ThemeCard\x22');}d['ModuleUtils']['isPatched']=function(fc,fd,fe){if(!fc||!d['ObjectUtils']['is'](fd)||!fd['BDFDBpatch']||!fe)return![];const ff=(typeof fc==='string'?fc:fc['name'])['toLowerCase']();return ff&&fd[fe]&&fd[fe]['__isBDFDBpatched']&&fd['BDFDBpatch'][fe]&&Object['keys'](fd['BDFDBpatch'][fe])['some'](fg=>Object['keys'](fd['BDFDBpatch'][fe][fg])['includes'](ff));};d['ModuleUtils']['patch']=function(fh,fi,fj,fk,fl=![]){if(!fh||!d['ObjectUtils']['is'](fi)||!fj||!d['ObjectUtils']['is'](fk))return null;fk=d['ObjectUtils']['filter'](fk,fm=>f7['Patchtypes']['includes'](fm),!![]);if(d['ObjectUtils']['isEmpty'](fk))return null;const fn=typeof fh==='string'?fh:fh['name'];const fo=fn['toLowerCase']();if(!fi['BDFDBpatch'])fi['BDFDBpatch']={};fj=[fj]['flat'](0xa)['filter'](fp=>fp);for(let fq of fj)if(fi[fq]==null||typeof fi[fq]=='function'){if(!fi['BDFDBpatch'][fq]||fl&&(!fi[fq]||!fi[fq]['__isBDFDBpatched'])){if(!fi['BDFDBpatch'][fq]){fi['BDFDBpatch'][fq]={};for(let fr of f7['Patchtypes'])fi['BDFDBpatch'][fq][fr]={};}if(!fi[fq])fi[fq]=c=>{};const ft=fi[fq];fi['BDFDBpatch'][fq]['originalMethod']=ft;fi[fq]=function(){let fu=![],fv=![];const fw={'thisObject':this,'methodArguments':arguments,'originalMethod':ft,'originalMethodName':fq,'callOriginalMethod':c=>{if(!fv)fw['returnValue']=fw['originalMethod']['apply'](fw['thisObject'],fw['methodArguments']);},'callOriginalMethodAfterwards':c=>{fu=!![];},'stopOriginalMethodCall':c=>{fv=!![];}};if(fi['BDFDBpatch']&&fi['BDFDBpatch'][fq]){if(!d['ObjectUtils']['isEmpty'](fi['BDFDBpatch'][fq]['before']))for(let fA in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['before'])){d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['before'][fA],'\x22before\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['before'][fA]['pluginName'])(fw);}let fB=!d['ObjectUtils']['isEmpty'](fi['BDFDBpatch'][fq]['instead']);if(fB)for(let fA in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['instead'])){let fD=d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['instead'][fA],'\x22instead\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['instead'][fA]['pluginName'])(fw);if(fD!==undefined)fw['returnValue']=fD;}if((!fB||fu)&&!fv)d['TimeUtils']['suppress'](fw['callOriginalMethod'],'originalMethod\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'))();if(!d['ObjectUtils']['isEmpty'](fi['BDFDBpatch'][fq]['after']))for(let fA in d['ObjectUtils']['sort'](fi['BDFDBpatch'][fq]['after'])){let fD=d['TimeUtils']['suppress'](fi['BDFDBpatch'][fq]['after'][fA],'\x22after\x22\x20callback\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'),fi['BDFDBpatch'][fq]['after'][fA]['pluginName'])(fw);if(fD!==undefined)fw['returnValue']=fD;}}else d['TimeUtils']['suppress'](fw['callOriginalMethod'],'originalMethod\x20of\x20'+fq+'\x20in\x20'+(fi['constructor']?fi['constructor']['displayName']||fi['constructor']['name']:'module'))();fu=![],fv=![];return fq=='render'&&fw['returnValue']===undefined?null:fw['returnValue'];};for(let fG of Object['keys'](ft))fi[fq][fG]=ft[fG];if(!fi[fq]['__originalMethod'])fi[fq]['__originalMethod']=ft;if(!fi[fq]['__originalFunction'])fi[fq]['__originalFunction']=ft;fi[fq]['__isBDFDBpatched']=!![];}for(let fH in fk)if(typeof fk[fH]=='function'){fi['BDFDBpatch'][fq][fH][fo]=fk[fH];fi['BDFDBpatch'][fq][fH][fo]['pluginName']=fn;}}let fI=c=>{d['ModuleUtils']['unpatch'](fh,fi,fj);};if(d['ObjectUtils']['is'](fh)){if(!d['ArrayUtils']['is'](fh['patchCancels']))fh['patchCancels']=[];fh['patchCancels']['push'](fI);}return fI;};d['ModuleUtils']['unpatch']=function(fK,fL,fM){if(!fL&&!fM){if(d['ObjectUtils']['is'](fK)&&d['ArrayUtils']['is'](fK['patchCancels'])){for(let fN of fK['patchCancels'])fN();fK['patchCancels']=[];}}else{if(!d['ObjectUtils']['is'](fL)||!fL['BDFDBpatch'])return;const fO=!fK?null:(typeof fK==='string'?fK:fK['name'])['toLowerCase']();if(fM){for(let fP of[fM]['flat'](0xa)['filter'](fQ=>fQ))if(fL[fP]&&fL['BDFDBpatch'][fP])fS(fP,fO);}else for(let fR of fL['BDFDBpatch'])fS(fR,fO);}function fS(fT,fU){for(let fV of f7['Patchtypes']){if(fU)delete fL['BDFDBpatch'][fT][fV][fU];else delete fL['BDFDBpatch'][fT][fV];}let fW=!![];for(let fV of f7['Patchtypes'])if(!d['ObjectUtils']['isEmpty'](fL['BDFDBpatch'][fT][fV]))fW=![];if(fW){fL[fT]=fL['BDFDBpatch'][fT]['originalMethod'];delete fL['BDFDBpatch'][fT];if(d['ObjectUtils']['isEmpty'](fL['BDFDBpatch']))delete fL['BDFDBpatch'];}}};d['ModuleUtils']['forceAllUpdates']=function(fY,fZ){if(d['ObjectUtils']['is'](fY)&&d['ObjectUtils']['is'](fY['patchedModules'])){const g0=document['querySelector'](d['dotCN']['app']);const g1=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);if(g0){let g2=[],g3={};for(let g4 in fY['patchedModules'])for(let g5 in fY['patchedModules'][g4]){let g6=[fY['patchedModules'][g4][g5]]['flat'](0xa)['filter'](g7=>g7);if(g6['includes']('componentDidMount')||g6['includes']('componentDidUpdate')||g6['includes']('render')){g2['push'](g5);let g8=g5['split']('\x20_\x20_\x20')[0x0];if(!g3[g8])g3[g8]=[];g3[g8]['push'](g4);}}fZ=[fZ]['flat'](0xa)['filter'](g9=>g9);if(fZ['length']){fZ=fZ['map'](ga=>ga&&f7['Patchmap'][ga]?f7['Patchmap'][ga]+'\x20_\x20_\x20'+ga:ga);g2=g2['filter'](gb=>fZ['indexOf'](gb)>-0x1);}g2=d['ArrayUtils']['removeCopies'](g2);if(g2['length']){try{const gc=d['ReactUtils']['findOwner'](g0,{'name':g2,'all':!![],'group':!![],'unlimited':!![]});const gd=d['ReactUtils']['findOwner'](g0,{'name':g2,'all':!![],'group':!![],'unlimited':!![],'up':!![]});for(let g5 in gc)for(let gf of gc[g5])f['forceInitiateProcess'](fY,gf,g5,g3[g5]);for(let g5 in gd)for(let gf of gd[g5])f['forceInitiateProcess'](fY,gf,g5,g3[g5]);if(g1){const gi=d['ReactUtils']['findOwner'](g1,{'name':g2,'all':!![],'group':!![],'unlimited':!![]});for(let g5 in gi)for(let gf of gi[g5])f['forceInitiateProcess'](fY,gf,g5,g3[g5]);}}catch(gl){d['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+gl,fY['name']);}}}}};f['forceInitiateProcess']=function(gm,gn,go,gp){if(!gm||!gn||!go)return;let gq=[];for(let gr in gm['patchedModules'])if(gm['patchedModules'][gr][go])gq['push'](gm['patchedModules'][gr][go]);gq=d['ArrayUtils']['removeCopies'](gq)['flat'](0xa)['filter'](gs=>gs);if(gq['includes']('componentDidMount'))f['initiateProcess'](gm,go,{'instance':gn,'methodname':'componentDidMount','patchtypes':gp});if(gq['includes']('render'))d['ReactUtils']['forceUpdate'](gn);else if(gq['includes']('componentDidUpdate'))f['initiateProcess'](gm,go,{'instance':gn,'methodname':'componentDidUpdate','patchtypes':gp});};f['initiateProcess']=function(gt,gu,gv){if(d['ObjectUtils']['is'](gt)&&!gt['stopping']&&gv['instance']){let gw=gt['name']=='$BDFDB';if(gt['name']=='$BDFDB')gt=f;gu=(gu['split']('\x20_\x20_\x20')[0x1]||gu)['replace'](/[^A-z0-9]|_/g,'');gu=gu['charAt'](0x0)['toUpperCase']()+gu['slice'](0x1);if(typeof gt['process'+gu]=='function'){let gx=!gw&>['process'+gu]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gx){if(gv['methodname']=='render'){if(gv['returnvalue'])gt['process'+gu](gv['instance'],null,gv['returnvalue'],[gv['methodname']]);}else{let gy=d['ReactUtils']['findDOMNode'](gv['instance']);if(gy)gt['process'+gu](gv['instance'],gy,gv['returnvalue'],[gv['methodname']]);else d['TimeUtils']['timeout'](c=>{gy=d['ReactUtils']['findDOMNode'](gv['instance']);if(gy)gt['process'+gu](gv['instance'],gy,gv['returnvalue'],[gv['methodname']]);});}}else{if(typeof gv['methodname']=='string'&&(gv['methodname']['indexOf']('componentDid')==0x0||gv['methodname']['indexOf']('componentWill')==0x0)){gv['node']=d['ReactUtils']['findDOMNode'](gv['instance']);if(gv['node'])gt['process'+gu](gv);else d['TimeUtils']['timeout'](c=>{gv['node']=d['ReactUtils']['findDOMNode'](gv['instance']);if(gv['node'])gt['process'+gu](gv);});}else if(gv['returnvalue']||gv['patchtypes']['includes']('before'))gt['process'+gu](gv);}}}};f['patchPlugin']=function(gB){if(!d['ObjectUtils']['is'](gB)||!d['ObjectUtils']['is'](gB['patchedModules']))return;d['ModuleUtils']['unpatch'](gB);for(let gC in gB['patchedModules'])for(let gD in gB['patchedModules'][gC]){if(f7['GlobalModules'][gD]&&typeof f7['GlobalModules'][gD]=='function')gL(f7['GlobalModules'][gD],gD,gC);else{let gE=gD['split']('\x20_\x20_\x20')[0x1]||gD;let gF=f7['LoadedInComponents'][gD]&&d['ReactUtils']['getValue'](Aq,f7['LoadedInComponents'][gD]);if(gF)gL(f7['DefaultRender']['includes'](gE)?(d['ModuleUtils']['find'](gG=>gG==gF,![])||{})['exports']:gF,gD,gC);else{let gH=f7['Patchfinder'][gE];let gI=f7['Patchmap'][gD];let gJ=gI?gI+'\x20_\x20_\x20'+gD:gD;let gK=gJ['split']('\x20_\x20_\x20')[0x0];if(gI){gB['patchedModules'][gC][gJ]=gB['patchedModules'][gC][gD];delete gB['patchedModules'][gC][gD];}if(f7['DefaultRender']['includes'](gE))gL((d['ModuleUtils']['findByName'](gK,![])||{})['exports'],gJ,gC,!![]);else if(f7['MemoComponent']['includes'](gE))gL((d['ModuleUtils']['findByName'](gK,![])||{'exports':{}})['exports']['default'],gJ,gC,!![]);else if(!gH)gL(d['ModuleUtils']['findByName'](gK),gJ,gC);else if(zu[gH])gT(gH,gJ,gC,f7['ForceObserve']['includes'](gE));}}}function gL(gM,gN,gO,gP){if(gM){let gQ=gN['split']('\x20_\x20_\x20')[0x0];gM=gM['_reactInternalFiber']&&gM['_reactInternalFiber']['type']?gM['_reactInternalFiber']['type']:gM;gM=gP||f['isInstanceCorrect'](gM,gQ)||f7['LoadedInComponents'][gN]?gM:d['ReactUtils']['findConstructor'](gM,gQ)||d['ReactUtils']['findConstructor'](gM,gQ,{'up':!![]});if(gM){gM=gM['_reactInternalFiber']&&gM['_reactInternalFiber']['type']?gM['_reactInternalFiber']['type']:gM;let gR={};gR[gO]=gS=>{f['initiateProcess'](gB,gN,{'instance':window!=gS['thisObject']?gS['thisObject']:{'props':gS['methodArguments'][0x0]},'returnvalue':gS['returnValue'],'methodname':gS['originalMethodName'],'patchtypes':[gO]});};d['ModuleUtils']['patch'](gB,f7['NonPrototype']['includes'](gQ)?gM:gM['prototype'],gB['patchedModules'][gO][gN],gR);}}}function gT(gU,gV,gW,gX){const gY=document['querySelector'](d['dotCN']['app']),gZ=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);let h0=![];if(!gX){if(gY){let h1=d['ReactUtils']['findConstructor'](gY,gV,{'unlimited':!![]})||d['ReactUtils']['findConstructor'](gY,gV,{'unlimited':!![],'up':!![]});if(h1&&(h0=!![]))gL(h1,gV,gW);}if(!h0&&gZ){let h2=d['ReactUtils']['findConstructor'](gZ,gV,{'unlimited':!![]});if(h2&&(h0=!![]))gL(h2,gV,gW);}}if(!h0){let h3=![],h4=d['disCN'][gU],h5=d['dotCN'][gU];for(let h6 of document['querySelectorAll'](h5)){let h7=d['ReactUtils']['getInstance'](h6);if(he(h7,gV)){h3=!![];gL(h7,gV,gW);d['ModuleUtils']['forceAllUpdates'](gB,gV);break;}}if(!h3){let h8=new MutationObserver(h9=>{h9['forEach'](ha=>{ha['addedNodes']['forEach'](hb=>{if(h3||!hb||!hb['tagName'])return;let h6=null;if((h6=d['DOMUtils']['containsClass'](hb,h4)?hb:hb['querySelector'](h5))!=null){let h7=d['ReactUtils']['getInstance'](h6);if(he(h7,gV)){h3=!![];h8['disconnect']();gL(h7,gV,gW);d['ModuleUtils']['forceAllUpdates'](gB,gV);}}});});});d['ObserverUtils']['connect'](gB,d['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':h8,'multi':!![]},{'childList':!![],'subtree':!![]});}}}function he(hf,hg){if(!hf)return![];hf=hf['_reactInternalFiber']&&hf['_reactInternalFiber']['type']?hf['_reactInternalFiber']['type']:hf;hf=f['isInstanceCorrect'](hf,hg)?hf:d['ReactUtils']['findConstructor'](hf,hg)||d['ReactUtils']['findConstructor'](hf,hg,{'up':!![]});return!!hf;}};f['isInstanceCorrect']=function(hh,hi){return hh&&(hh['type']&&(hh['type']['render']&&hh['type']['render']['displayName']===hi||hh['type']['displayName']===hi||hh['type']['name']===hi||hh['type']===hi)||hh['render']&&(hh['render']['displayName']===hi||hh['render']['name']===hi)||hh['displayName']==hi||hh['name']===hi);};f['addContextListeners']=function(hj){for(let hk of BC['NormalContextMenus'])if(typeof hj['on'+hk]==='function')f['patchContextMenuPlugin'](hj,hk,Aq['LibraryComponents']['ContextMenus'][hk]);for(let hl of BC['FluxContextMenus'])if(typeof hj['on'+hl]==='function'){if(d['InternalData']['componentPatchQueries'][hl]['module'])f['patchContextMenuPlugin'](hj,hl,d['InternalData']['componentPatchQueries'][hl]['module']);else{d['InternalData']['componentPatchQueries'][hl]['query']['push'](hj);d['InternalData']['componentPatchQueries'][hl]['query']['sort']((hm,hn)=>{return hm['name']hn['name']?0x1:0x0;});}}for(let ho of BC['QueuedComponents'])if(typeof hj['on'+ho]==='function'){if(d['InternalData']['componentPatchQueries'][ho]['module'])f['patchExportedContextMenuPlugin'](hj,ho,d['InternalData']['componentPatchQueries'][ho]['module']);else{d['InternalData']['componentPatchQueries'][ho]['query']['push'](hj);d['InternalData']['componentPatchQueries'][ho]['query']['sort']((hp,hq)=>{return hp['name']hq['name']?0x1:0x0;});}}};f['patchContextMenuPlugin']=function(hr,hs,ht){if(ht&&ht['prototype']){let hu=hr['on'+hs]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(hu){d['ModuleUtils']['patch'](hr,ht['prototype'],'render',{'after':hv=>{let hw=hv['thisObject'],hx=d['ReactUtils']['findDOMNode'](hv['thisObject']),hy=hv['returnValue'];if(hw&&hx&&hy&&typeof hr['on'+hs]==='function')hr['on'+hs](hw,hx,hy);}});}else{d['ModuleUtils']['patch'](hr,ht['prototype'],'render',{'after':hz=>{if(hz['thisObject']&&hz['returnValue']&&typeof hr['on'+hs]==='function')hr['on'+hs]({'instance':hz['thisObject'],'returnvalue':hz['returnValue'],'methodname':'render'});}});}}};f['patchExportedContextMenuPlugin']=function(hA,hB,hC){if(hC&&hC['exports']){let hD=hA['on'+hB]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(hD)d['ModuleUtils']['patch'](hA,hC['exports'],'default',{'after':hE=>{if(hE['returnValue']&&typeof hA['on'+hB]==='function')hA['on'+hB]({'props':hE['methodArguments'][0x0]},document,hE['returnValue']);}});else d['ModuleUtils']['patch'](hA,hC['exports'],'default',{'after':hF=>{if(hF['returnValue']&&typeof hA['on'+hB]==='function')hA['on'+hB]({'instance':{'props':hF['methodArguments'][0x0]},'returnvalue':hF['returnValue'],'methodname':'default'});}});}};f['executeExtraPatchedPatches']=function(hG,hH){if(d['ObjectUtils']['is'](d['InternalData']['componentPatchQueries'][hG])&&d['ArrayUtils']['is'](d['InternalData']['componentPatchQueries'][hG]['query']))for(let hI of d['InternalData']['componentPatchQueries'][hG]['query'])if(hH['returnvalue']&&typeof hI['on'+hG]==='function')hI['on'+hG](hH);};f['patchContextMenuLib']=function(hJ,hK){if(hJ&&hJ['prototype']){d['ModuleUtils']['patch'](d,hJ['prototype'],'componentDidMount',{'after':hL=>{if(!hL['thisObject']['BDFDBforceRenderTimeout']&&typeof hL['thisObject']['render']=='function')hL['thisObject']['render']();}});d['ModuleUtils']['patch'](d,hJ['prototype'],'componentDidUpdate',{'after':hM=>{var hN=d['ReactUtils']['findDOMNode'](hM['thisObject']);if(hN){const hO=d['ReactUtils']['getValue'](hM,'thisObject._reactInternalFiber.stateNode.props.onHeightUpdate');const hP=d['DOMUtils']['getRects'](hN),hQ=d['DOMUtils']['getRects'](document['querySelector'](d['dotCN']['appmount']));if(hO&&hP['top']+hP['height']>hQ['height'])hO();}}});d['ModuleUtils']['patch'](d,hJ['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(d['ReactUtils']['findDOMNode'](hR['thisObject'])){hR['thisObject']['BDFDBforceRenderTimeout']=!![];d['TimeUtils']['timeout'](c=>{delete hR['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hK){let hT=d['ReactUtils']['getValue'](hR,'thisObject._reactInternalFiber.child.type');if(hT&&hT['displayName']&&d['InternalData']['componentPatchQueries'][hT['displayName']]&&!d['InternalData']['componentPatchQueries'][hT['displayName']]['module']){d['InternalData']['componentPatchQueries'][hT['displayName']]['module']=hT;f['patchContextMenuLib'](hT,![]);while(d['InternalData']['componentPatchQueries'][hT['displayName']]['query']['length'])f['patchContextMenuPlugin'](d['InternalData']['componentPatchQueries'][hT['displayName']]['query']['pop'](),hT['displayName'],hT);}}}});}};f['patchExportedContextMenuLib']=function(hU,hV,hW){let hX=d['ModuleUtils']['find'](hY=>hY==hU['type'],![]);if(hX&&hX['exports']&&hX['exports']['default']){if(!Aq['LibraryComponents']['ContextMenus'][hV]){Aq['LibraryComponents']['ContextMenus'][hV]=hX['exports']['default'];d['LibraryComponents']['ContextMenus'][hV]=hX['exports']['default'];}if(!Aq['LibraryComponents']['ContextMenus']['_Exports'][hV]){Aq['LibraryComponents']['ContextMenus']['_Exports'][hV]=hX['exports'];d['LibraryComponents']['ContextMenus']['_Exports'][hV]=hX['exports'];}if(d['InternalData']['componentPatchQueries'][hV]&&!d['InternalData']['componentPatchQueries'][hV]['module']){d['InternalData']['componentPatchQueries'][hV]['module']=hX;while(d['InternalData']['componentPatchQueries'][hV]['query']['length'])f['patchExportedContextMenuPlugin'](d['InternalData']['componentPatchQueries'][hV]['query']['pop'](),hV,hX);let hZ=hW&&d['ReactUtils']['getValue'](hU,'memoizedProps.onClose');if(typeof hZ=='function')hZ();}if(!hX['exports']['default']['displayName'])hX['exports']['default']['displayName']=hV;}};f['getContextMenuType']=function(i0,i1){if(i0){if(i0=='MessageContextMenu'&&i1&&i1['type']!=Aq['LibraryComponents']['ContextMenus']['MessageContextMenu'])return'MessageOptionContextMenu';else if(i0['endsWith']('ContextMenu'))return i0;else if(Aq['LibraryComponents']['ContextMenus']['_Types']['includes'](i0)){if(i0['indexOf']('USER_')==0x0)return'UserContextMenu';else if(i0['indexOf']('CHANNEL_')==0x0)return'ChannelContextMenu';else if(i0['indexOf']('GUILD_')==0x0)return'GuildContextMenu';else if(i0['indexOf']('MESSAGE_')==0x0)return'MessageContextMenu';}}return null;};d['DiscordConstants']=d['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var i2={};i2['Channel']=d['ModuleUtils']['findByPrototypes']('getRecipientId','isManaged','getGuildId');i2['Guild']=d['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');i2['Invite']=d['ModuleUtils']['findByPrototypes']('getExpiresAt','isExpired');i2['Message']=d['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');i2['Messages']=d['ModuleUtils']['findByPrototypes']('jumpToMessage','hasAfterCached','forEach');i2['Timestamp']=d['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');i2['User']=d['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');d['DiscordObjects']=Object['assign']({},i2);var i3={};for(let i4 of['child_process','electron','fs','path','process','request']){try{i3[i4]=require(i4);}catch(i5){}}d['LibraryRequires']=Object['assign']({},i3);var i6={};i6['AckUtils']=d['ModuleUtils']['findByProperties']('localAck','bulkAck');i6['APIUtils']=d['ModuleUtils']['findByProperties']('getAPIBaseURL');i6['AnalyticsUtils']=d['ModuleUtils']['findByProperties']('isThrottled','track');i6['AnimationUtils']=d['ModuleUtils']['findByProperties']('spring','decay');i6['BadgeUtils']=d['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');i6['CategoryCollapseStore']=d['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');i6['CategoryCollapseUtils']=d['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');i6['ChannelStore']=d['ModuleUtils']['findByProperties']('getChannel','getChannels');i6['ColorUtils']=d['ModuleUtils']['findByProperties']('hex2int','hex2rgb');i6['ContextMenuUtils']=d['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');i6['CopyLinkUtils']=d['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');i6['CurrentUserStore']=d['ModuleUtils']['findByProperties']('getCurrentUser');i6['CurrentVoiceUtils']=d['ModuleUtils']['findByProperties']('getAveragePing','isConnected');i6['DirectMessageStore']=d['ModuleUtils']['findByProperties']('getPrivateChannelIds','getPrivateChannelTimestamps');i6['DirectMessageUnreadStore']=d['ModuleUtils']['findByProperties']('getUnreadPrivateChannelIds');i6['DispatchApiUtils']=d['ModuleUtils']['findByProperties']('dirtyDispatch','isDispatching');i6['DispatchUtils']=d['ModuleUtils']['findByProperties']('ComponentDispatch');i6['DirectMessageUtils']=d['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');i6['FriendUtils']=d['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');i6['FolderStore']=d['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');i6['FolderUtils']=d['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');i6['GuildBoostUtils']=d['ModuleUtils']['findByProperties']('getTierName','getUserLevel');i6['GuildChannelStore']=d['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');i6['GuildEmojiStore']=d['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');i6['GuildSettingsUtils']=d['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');i6['GuildStore']=d['ModuleUtils']['findByProperties']('getGuild','getGuilds');i6['GuildUtils']=d['ModuleUtils']['findByProperties']('transitionToGuildSync');i6['HistoryUtils']=d['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;i6['IconUtils']=d['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');i6['InviteUtils']=d['ModuleUtils']['findByProperties']('acceptInvite','createInvite');i6['KeyCodeUtils']=Object['assign']({},d['ModuleUtils']['findByProperties']('toCombo','keyToCode'));i6['KeyCodeUtils']['getString']=function(i7){return i6['KeyCodeUtils']['toString']([i7]['flat'](0xa)['filter'](i8=>i8)['map'](i9=>[d['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],i9,d['DiscordConstants']['KeyboardEnvs']['BROWSER']]),!![]);};i6['KeyEvents']=d['ModuleUtils']['findByProperties']('aliases','code','codes');i6['LanguageStore']=d['ModuleUtils']['findByProperties']('getLanguages','Messages');i6['LastChannelStore']=d['ModuleUtils']['findByProperties']('getLastSelectedChannelId');i6['LastGuildStore']=d['ModuleUtils']['findByProperties']('getLastSelectedGuildId');i6['LoginUtils']=d['ModuleUtils']['findByProperties']('login','logout');i6['MemberStore']=d['ModuleUtils']['findByProperties']('getMember','getMembers');i6['MessagePinUtils']=d['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');i6['MessageStore']=d['ModuleUtils']['findByProperties']('getMessage','getMessages');i6['MessageUtils']=d['ModuleUtils']['findByProperties']('receiveMessage','editMessage');i6['ModalUtils']=d['ModuleUtils']['findByProperties']('openModal','hasModalOpen');i6['MutedUtils']=d['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');i6['NoteStore']=d['ModuleUtils']['findByProperties']('getNotes','getNote');i6['NotificationSettingsUtils']=d['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');i6['NotificationSettingsStore']=d['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');i6['PlatformUtils']=d['ModuleUtils']['findByProperties']('isWindows','isLinux');i6['PermissionUtils']=d['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');i6['PermissionRoleUtils']=d['ModuleUtils']['findByProperties']('getHighestRole','can');i6['QuoteUtils']=d['ModuleUtils']['findByProperties']('canQuote','createQuotedText');i6['ReactionUtils']=d['ModuleUtils']['findByProperties']('addReaction','removeReaction');i6['SearchPageUtils']=d['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');i6['SelectChannelUtils']=d['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');i6['SettingsUtils']=d['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');i6['SoundUtils']=d['ModuleUtils']['findByProperties']('playSound','createSound');i6['SpellCheckUtils']=d['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');i6['SlateUtils']=d['ModuleUtils']['findByProperties']('serialize','deserialize');i6['SlateSelectionUtils']=d['ModuleUtils']['findByProperties']('serialize','serializeSelection');i6['StateStoreUtils']=d['ModuleUtils']['findByProperties']('useStateFromStores','useStateFromStoresArray');i6['StatusMetaUtils']=d['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');i6['StoreUtils']=d['ModuleUtils']['findByProperties']('get','set','clear','remove');i6['StreamUtils']=d['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');i6['StringUtils']=d['ModuleUtils']['findByProperties']('cssValueToNumber','upperCaseFirstChar');i6['UnreadGuildUtils']=d['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');i6['UnreadChannelUtils']=d['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');i6['UploadUtils']=d['ModuleUtils']['findByProperties']('upload','instantBatchUpload');i6['UserNameUtils']=d['ModuleUtils']['findByProperties']('getName','getNickname');i6['UserStore']=d['ModuleUtils']['findByProperties']('getUser','getUsers');i6['Utilities']=d['ModuleUtils']['findByProperties']('flatMap','cloneDeep');i6['VoiceUtils']=d['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');i6['ZoomUtils']=d['ModuleUtils']['findByProperties']('setZoom','setFontSize');d['LibraryModules']=Object['assign']({},i6);i6['React']=d['ModuleUtils']['findByProperties']('createElement','cloneElement');i6['ReactDOM']=d['ModuleUtils']['findByProperties']('render','findDOMNode');d['ReactUtils']=Object['assign']({},i6['React'],i6['ReactDOM']);d['ReactUtils']['childrenToArray']=function(ia){if(ia&&ia['props']&&ia['props']['children']&&!d['ArrayUtils']['is'](ia['props']['children'])){var ib=ia['props']['children'];ia['props']['children']=[];ia['props']['children']['push'](ib);}return ia['props']['children'];};d['ReactUtils']['createElement']=function(ic,id){if(ic&&ic['defaultProps'])for(let ie in ic['defaultProps'])if(id[ie]==null)id[ie]=ic['defaultProps'][ie];try{return i6['React']['createElement'](ic||'div',id||{})||null;}catch(ig){d['LogUtils']['error']('Could\x20not\x20create\x20react\x20element!\x20'+ig);}return null;};d['ReactUtils']['elementToReact']=function(ih){if(d['ReactUtils']['isValidElement'](ih))return ih;else if(!Node['prototype']['isPrototypeOf'](ih))return null;else if(ih['nodeType']==Node['TEXT_NODE'])return ih['nodeValue'];let ii={},ij=[];for(let ik of ih['attributes'])ii[ik['name']]=ik['value'];if(ih['attributes']['style'])ii['style']=d['ObjectUtils']['filter'](ih['style'],il=>ih['style'][il]&&isNaN(parseInt(il)),!![]);ii['children']=[];if(ih['style']&&ih['style']['cssText'])for(let im of ih['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 ih['childNodes'])ii['children']['push'](d['ReactUtils']['elementToReact'](is));let it=d['ReactUtils']['createElement'](ih['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{i6['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['equals']=function(kQ,kR,kS){var kT=-0x1;if(kS===undefined||typeof kS!=='boolean')kS=![];return kU(kQ,kR);function kU(kV,kW){kT++;var kX=!![];if(kT>0x3e8)kX=null;else{if(typeof kV!==typeof kW)kX=![];else if(typeof kV==='function')kX=kV['toString']()==kW['toString']();else if(typeof kV==='undefined')kX=!![];else if(typeof kV==='symbol')kX=!![];else if(typeof kV==='boolean')kX=kV==kW;else if(typeof kV==='string')kX=kV==kW;else if(typeof kV==='number'){if(isNaN(kV)||isNaN(kW))kX=isNaN(kV)==isNaN(kW);else kX=kV==kW;}else if(!kV&&!kW)kX=!![];else if(!kV||!kW)kX=![];else if(typeof kV==='object'){var kY=Object['getOwnPropertyNames'](kV);var kZ=Object['getOwnPropertyNames'](kW);if(kY['length']!==kZ['length'])kX=![];else for(let l0=0x0;kX===!![]&&l0{let l3=d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['app']),{'name':'Messages','unlimited':!![]});let l4=d['ReactUtils']['getValue'](l3,'_reactInternalFiber.type.prototype');if(l3&&l4){let l5=d['ModuleUtils']['patch']({'name':'tempPatch'},l4,'render',{'after':l6=>{l5();let [l7,l8]=d['ReactUtils']['findChildren'](l6['returnValue'],{'props':['message','channel']});if(l8>-0x1)for(let l9 of l7)if(l9['props']['message'])l9['props']['message']=new d['DiscordObjects']['Message'](l9['props']['message']);}});d['ReactUtils']['forceUpdate'](l3);}},0x3e8);};d['UserUtils']={};var la=i6['CurrentUserStore']?i6['CurrentUserStore']['getCurrentUser']():null;d['UserUtils']['is']=function(lb){return lb&&lb instanceof d['DiscordObjects']['User'];};d['UserUtils']['me']=new Proxy(la||{},{'get':function(lc,ld){if(!la)la=i6['CurrentUserStore']['getCurrentUser']();return la?la[ld]:null;}});d['UserUtils']['getStatus']=function(le=d['UserUtils']['me']['id']){le=typeof le=='number'?le['toFixed']():le;let lf=d['UserUtils']['getActivitiy'](le);return lf&&lf['type']==d['DiscordConstants']['ActivityTypes']['STREAMING']?'streaming':i6['StatusMetaUtils']['getStatus'](le);};d['UserUtils']['getStatusColor']=function(lg){lg=typeof lg=='string'?lg['toLowerCase']():null;switch(lg){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(lh=d['UserUtils']['me']['id']){for(let li of i6['StatusMetaUtils']['getActivities'](lh))if(li['type']!=d['DiscordConstants']['ActivityTypes']['CUSTOM_STATUS'])return li;return null;};d['UserUtils']['getAvatar']=function(lj=d['UserUtils']['me']['id']){var lk=i6['UserStore']['getUser'](typeof lj=='number'?lj['toFixed']():lj);if(!lk)return window['location']['origin']+'/assets/322c936a8c8be1b803cd94861bdfa868.png';else return((lk['avatar']?'':window['location']['origin'])+i6['IconUtils']['getUserAvatarURL'](lk))['split']('?')[0x0];};d['UserUtils']['can']=function(ll,lm=d['UserUtils']['me']['id'],ln=i6['LastChannelStore']['getChannelId']()){if(!d['DiscordConstants']['Permissions'][ll])d['LogUtils']['warn'](ll+'\x20not\x20found\x20in\x20Permissions');else{var lo=i6['ChannelStore']['getChannel'](ln);if(lo)return i6['PermissionUtils']['canUser'](lm,d['DiscordConstants']['Permissions'][ll],lo);}return![];};d['GuildUtils']={};d['GuildUtils']['is']=function(lp){return lp&&lp instanceof d['DiscordObjects']['Guild'];};d['GuildUtils']['getIcon']=function(lq){var lr=i6['GuildStore']['getGuild'](typeof lq=='number'?lq['toFixed']():lq);if(!lr||!lr['icon'])return null;return i6['IconUtils']['getGuildIconURL'](lr)['split']('?')[0x0];};d['GuildUtils']['getBanner']=function(ls){var lt=i6['GuildStore']['getGuild'](typeof ls=='number'?ls['toFixed']():ls);if(!lt||!lt['banner'])return null;return i6['IconUtils']['getGuildBannerURL'](lt)['split']('?')[0x0];};d['GuildUtils']['getFolder']=function(lu){return d['LibraryModules']['FolderStore']['guildFolders']['filter'](lv=>lv['folderId'])['find'](lw=>lw['guildIds']['includes'](lu));};d['GuildUtils']['getId']=function(lx){if(!Node['prototype']['isPrototypeOf'](lx)||!d['ReactUtils']['getInstance'](lx))return;let ly=d['DOMUtils']['getParent'](d['dotCN']['guildouter'],lx);if(!ly)return;var lz=ly['querySelector'](d['dotCN']['guildiconwrapper']);var lA=lz&&lz['href']?lz['href']['split']('/')['slice'](-0x2)[0x0]:null;return lA&&!isNaN(parseInt(lA))?lA['toString']():null;};d['GuildUtils']['getData']=function(lB){if(!lB)return null;let lC=Node['prototype']['isPrototypeOf'](lB)?d['GuildUtils']['getId'](lB):typeof lB=='object'?lB['id']:lB;lC=typeof lC=='number'?lC['toFixed']():lC;for(let lD of d['GuildUtils']['getAll']())if(lD&&lD['id']==lC)return lD;return null;};d['GuildUtils']['getAll']=function(){var lE=[],lF=[];for(let lG of d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['guilds']),{'name':['Guild','GuildIcon'],'all':!![],'unlimited':!![]})){if(lG['props']&&lG['props']['guild'])lF['push'](Object['assign'](new lG['props']['guild']['constructor'](lG['props']['guild']),{'div':lG['handleContextMenu']&&d['ReactUtils']['findDOMNode'](lG),'instance':lG}));}for(let lH of d['LibraryModules']['FolderStore']['getFlattenedGuildIds']()){let lI=null;for(let lJ of lF)if(lJ['id']==lH){lI=lJ;break;}if(lI)lE['push'](lI);else{let lK=d['LibraryModules']['GuildStore']['getGuild'](lH);lE['push'](Object['assign'](new lK['constructor'](lK),{'div':null,'instance':null}));}}return lE;};d['GuildUtils']['getUnread']=function(lL){var lM=[];for(let lN of lL===undefined||!d['ArrayUtils']['is'](lL)?d['GuildUtils']['getAll']():lL){if(!lN)return null;let lO=Node['prototype']['isPrototypeOf'](lN)?d['GuildUtils']['getId'](lN):typeof lN=='object'?lN['id']:lN;lO=typeof lO=='number'?lO['toFixed']():lO;if(lO&&(i6['UnreadGuildUtils']['hasUnread'](lO)||i6['UnreadGuildUtils']['getMentionCount'](lO)>0x0))lM['push'](lN);}return lM;};d['GuildUtils']['getPinged']=function(lP){var lQ=[];for(let lR of lP===undefined||!d['ArrayUtils']['is'](lP)?d['GuildUtils']['getAll']():lP){if(!lR)return null;let lS=Node['prototype']['isPrototypeOf'](lR)?d['GuildUtils']['getId'](lR):typeof lR=='object'?lR['id']:lR;lS=typeof lS=='number'?lS['toFixed']():lS;if(lS&&i6['UnreadGuildUtils']['getMentionCount'](lS)>0x0)lQ['push'](lR);}return lQ;};d['GuildUtils']['getMuted']=function(lT){var lU=[];for(let lV of lT===undefined||!d['ArrayUtils']['is'](lT)?d['GuildUtils']['getAll']():lT){if(!lV)return null;let lW=Node['prototype']['isPrototypeOf'](lV)?d['GuildUtils']['getId'](lV):typeof lV=='object'?lV['id']:lV;lW=typeof lW=='number'?lW['toFixed']():lW;if(lW&&i6['MutedUtils']['isGuildOrCategoryOrChannelMuted'](lW))lU['push'](lV);}return lU;};d['GuildUtils']['getSelected']=function(){var lX=i6['GuildStore']['getGuild'](i6['LastGuildStore']['getGuildId']());if(lX)return d['GuildUtils']['getData'](lX['id'])||Object['assign'](new lX['constructor'](lX),{'div':null,'instance':null});else return null;};d['GuildUtils']['openMenu']=function(lY,lZ=d['InternalData']['mousePosition']){if(!lY)return;let m0=Node['prototype']['isPrototypeOf'](lY)?d['GuildUtils']['getId'](lY):typeof lY=='object'?lY['id']:lY;let m1=i6['GuildStore']['getGuild'](m0);if(m1)i6['ContextMenuUtils']['openContextMenu'](lZ,function(lZ){return d['ReactUtils']['createElement'](Aq['LibraryComponents']['ContextMenus']['_Exports']['GuildContextMenu']&&Aq['LibraryComponents']['ContextMenus']['_Exports']['GuildContextMenu']['default'],Object['assign']({},lZ,{'type':d['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':m1,'badge':i6['UnreadGuildUtils']['getMentionCount'](m1['id']),'link':d['DiscordConstants']['Routes']['CHANNEL'](m1['id'],i6['LastChannelStore']['getChannelId'](m1['id'])),'selected':m1['id']==i6['LastGuildStore']['getGuildId']()}));});};d['GuildUtils']['markAsRead']=function(m3){if(!m3)return;var m4=[];for(let m5 of d['ArrayUtils']['is'](m3)?m3:typeof m3=='string'||typeof m3=='number'?Array['of'](m3):Array['from'](m3)){let m6=Node['prototype']['isPrototypeOf'](m5)?d['GuildUtils']['getId'](m5):m5&&typeof m5=='object'?m5['id']:m5;let m7=m6&&i6['GuildChannelStore']['getChannels'](m6);if(m7)for(let m8 in m7)if(d['ArrayUtils']['is'](m7[m8]))for(let m9 of m7[m8])m4['push'](m9['channel']['id']);}if(m4['length'])i6['AckUtils']['bulkAck'](m4);};d['FolderUtils']={};d['FolderUtils']['getId']=function(ma){if(!Node['prototype']['isPrototypeOf'](ma)||!d['ReactUtils']['getInstance'](ma))return;ma=d['DOMUtils']['getParent'](d['dotCN']['guildfolderwrapper'],ma);if(!ma)return;return d['ReactUtils']['findValue'](ma,'folderId',{'up':!![]});};d['FolderUtils']['getDefaultName']=function(mb){let mc=d['LibraryModules']['FolderStore']['getGuildFolderById'](mb);if(!mc)return'';let md=0x2*d['DiscordConstants']['MAX_GUILD_FOLDER_NAME_LENGTH'];let me=[],mf=mc['guildIds']['map'](mg=>(d['LibraryModules']['GuildStore']['getGuild'](mg)||{})['name'])['filter'](mh=>mh);for(let i4 of mf)if(i4['length']{i6['AckUtils']['ack'](nd[ng]);},ng*0x3e8);};d['DataUtils']={};d['DataUtils']['cached']=window['BDFDB']&&window['BDFDB']['DataUtils']&&window['BDFDB']['DataUtils']['cached']||{};d['DataUtils']['save']=function(ni,nj,nk,nl){let nm,nn;if(!d['BDUtils']['isBDv2']()){nn=typeof nj==='string'?nj:nj['name'];nm=i3['path']['join'](d['BDUtils']['getPluginsFolder'](),nn+'.config.json');}else{nn=typeof nj==='string'?nj['toLowerCase']():null;let no=nn?d['Plugins'][nn]?d['Plugins'][nn]['contentPath']:null:nj['contentPath'];if(!no)return;nm=i3['path']['join'](no,'settings.json');}let np=d['DataUtils']['cached'][nn]!==undefined?d['DataUtils']['cached'][nn]:f['readConfig'](nm)||{};if(nk===undefined)np=d['ObjectUtils']['is'](ni)?d['ObjectUtils']['sort'](ni):ni;else{if(nl===undefined)np[nk]=d['ObjectUtils']['is'](ni)?d['ObjectUtils']['sort'](ni):ni;else{if(!d['ObjectUtils']['is'](np[nk]))np[nk]={};np[nk][nl]=d['ObjectUtils']['is'](ni)?d['ObjectUtils']['sort'](ni):ni;}}let nq=d['ObjectUtils']['is'](np);if(nk!==undefined&&nq&&d['ObjectUtils']['is'](np[nk])&&d['ObjectUtils']['isEmpty'](np[nk]))delete np[nk];if(d['ObjectUtils']['isEmpty'](np)){delete d['DataUtils']['cached'][nn];if(i3['fs']['existsSync'](nm))i3['fs']['unlinkSync'](nm);}else{if(nq)np=d['ObjectUtils']['sort'](np);d['DataUtils']['cached'][nn]=nq?d['ObjectUtils']['deepAssign']({},np):np;i3['fs']['writeFileSync'](nm,JSON['stringify'](np,null,'\x09'));}};d['DataUtils']['load']=function(nr,ns,nt){let nu,nv;if(!d['BDUtils']['isBDv2']()){nv=typeof nr==='string'?nr:nr['name'];nu=i3['path']['join'](d['BDUtils']['getPluginsFolder'](),nv+'.config.json');}else{nv=typeof nr==='string'?nr['toLowerCase']():null;let nw=nv?d['Plugins'][nv]?d['Plugins'][nv]['contentPath']:null:nr['contentPath'];if(!nw)return{};nu=i3['path']['join'](nw,'settings.json');}let nx=d['DataUtils']['cached'][nv]!==undefined?d['DataUtils']['cached'][nv]:f['readConfig'](nu)||{};let ny=d['ObjectUtils']['is'](nx);d['DataUtils']['cached'][nv]=ny?d['ObjectUtils']['deepAssign']({},nx):nx;if(ns===undefined)return nx;else{let nz=ny?d['ObjectUtils']['is'](nx[ns])||nx[ns]==undefined?d['ObjectUtils']['deepAssign']({},nx[ns]):nx[ns]:null;if(nt===undefined)return nz;else return!d['ObjectUtils']['is'](nz)||nz[nt]===undefined?null:nz[nt];}};d['DataUtils']['remove']=function(nA,nB,nC){let nD,nE;if(!d['BDUtils']['isBDv2']()){nE=typeof nA==='string'?nA:nA['name'];nD=i3['path']['join'](d['BDUtils']['getPluginsFolder'](),nE+'.config.json');}else{nE=typeof nA==='string'?nA['toLowerCase']():null;let nF=nE?d['Plugins'][nE]?d['Plugins'][nE]['contentPath']:null:nA['contentPath'];if(!nF)return;nD=i3['path']['join'](nF,'settings.json');}let nG=d['DataUtils']['cached'][nE]!==undefined?d['DataUtils']['cached'][nE]:f['readConfig'](nD)||{};let nH=d['ObjectUtils']['is'](nG);if(nB===undefined||!nH)nG={};else{if(nC===undefined)delete nG[nB];else if(d['ObjectUtils']['is'](nG[nB]))delete nG[nB][nC];}if(d['ObjectUtils']['is'](nG[nB])&&d['ObjectUtils']['isEmpty'](nG[nB]))delete nG[nB];if(d['ObjectUtils']['isEmpty'](nG)){delete d['DataUtils']['cached'][nE];if(i3['fs']['existsSync'](nD))i3['fs']['unlinkSync'](nD);}else{if(nH)nG=d['ObjectUtils']['sort'](nG);d['DataUtils']['cached'][nE]=nH?d['ObjectUtils']['deepAssign']({},nG):nG;i3['fs']['writeFileSync'](nD,JSON['stringify'](nG,null,'\x09'));}};d['DataUtils']['get']=function(nI,nJ,nK){nI=typeof nI=='string'?d['BDUtils']['getPlugin'](nI):nI;if(!d['ObjectUtils']['is'](nI))return nK===undefined?{}:null;let nL=(nI['name']=='$BDFDB'?f:nI)['defaults'];if(!d['ObjectUtils']['is'](nL)||!nL[nJ])return nK===undefined?{}:null;var nM=d['DataUtils']['load'](nI,nJ),nN={},nO=![];for(let nP in nL[nJ]){if(nM[nP]==null){nN[nP]=d['ObjectUtils']['is'](nL[nJ][nP]['value'])?d['ObjectUtils']['deepAssign']({},nL[nJ][nP]['value']):nL[nJ][nP]['value'];nO=!![];}else nN[nP]=nM[nP];}if(nO)d['DataUtils']['save'](nN,nI,nJ);if(nK===undefined)return nN;else return nN[nK]===undefined?null:nN[nK];};f['readConfig']=function(nQ){try{return JSON['parse'](i3['fs']['readFileSync'](nQ));}catch(nR){return{};}};d['ColorUtils']={};d['ColorUtils']['convert']=function(nS,nT,nU){if(d['ObjectUtils']['is'](nS)){var nV={};for(let nW in nS)nV[nW]=d['ColorUtils']['convert'](nS[nW],nT,nU);return nV;}else{nT=nT===undefined||!nT?nT='RGBCOMP':nT['toUpperCase']();nU=nU===undefined||!nU||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](nU['toUpperCase']())?d['ColorUtils']['getType'](nS):nU['toUpperCase']();if(nT=='RGBCOMP'){switch(nU){case'RGBCOMP':if(nS['length']==0x3)return ow(nS);else if(nS['length']==0x4){let nX=oz(nS['pop']());return ow(nS)['concat'](nX);}break;case'RGB':return ow(nS['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let nY=nS['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let nX=oz(nY['pop']());return ow(nY)['concat'](nX);case'HSLCOMP':if(nS['length']==0x3)return d['ColorUtils']['convert']('hsl('+oD(nS)['join'](',')+')','RGBCOMP');else if(nS['length']==0x4){let o0=oz(nS['pop']());return d['ColorUtils']['convert']('hsl('+oD(nS)['join'](',')+')','RGBCOMP')['concat'](o0);}break;case'HSL':var o1=oD(nS['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var o2,o3,o4,o5,o6,o7,o8,o9;var oa=o1[0x0]/0x168,ob=parseInt(o1[0x1])/0x64,oc=parseInt(o1[0x2])/0x64;o5=Math['floor'](oa*0x6);o6=oa*0x6-o5;o7=oc*(0x1-ob);o8=oc*(0x1-o6*ob);o9=oc*(0x1-(0x1-o6)*ob);switch(o5%0x6){case 0x0:o2=oc,o3=o9,o4=o7;break;case 0x1:o2=o8,o3=oc,o4=o7;break;case 0x2:o2=o7,o3=oc,o4=o9;break;case 0x3:o2=o7,o3=o8,o4=oc;break;case 0x4:o2=o9,o3=o7,o4=oc;break;case 0x5:o2=oc,o3=o7,o4=o8;break;}return[Math['round'](o2*0xff),Math['round'](o3*0xff),Math['round'](o4*0xff)];case'HSLA':var o1=nS['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return d['ColorUtils']['convert']('hsl('+o1['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](oz(o1['pop']()));case'HEX':var oe=/^#([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'](nS);return[parseInt(oe[0x1]+oe[0x1]||oe[0x4],0x10)['toString'](),parseInt(oe[0x2]+oe[0x2]||oe[0x5],0x10)['toString'](),parseInt(oe[0x3]+oe[0x3]||oe[0x6],0x10)['toString']()];case'HEXA':var oe=/^#([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'](nS);return[parseInt(oe[0x1]+oe[0x1]||oe[0x5],0x10)['toString'](),parseInt(oe[0x2]+oe[0x2]||oe[0x6],0x10)['toString'](),parseInt(oe[0x3]+oe[0x3]||oe[0x7],0x10)['toString'](),Math['floor'](d['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(oe[0x4]+oe[0x4]||oe[0x8],0x10)['toString']()))/0x64];case'INT':nS=oH(nS);return[(nS>>0x10&0xff)['toString'](),(nS>>0x8&0xff)['toString'](),(nS&0xff)['toString']()];default:return null;}}else{var og=nU=='RGBCOMP'?nS:d['ColorUtils']['convert'](nS,'RGBCOMP',nU);if(og)switch(nT){case'RGB':return'rgb('+ow(og['slice'](0x0,0x3))['join'](',')+')';case'RGBA':og=og['slice'](0x0,0x4);var oh=og['length']==0x4?oz(og['pop']()):0x1;return'rgba('+ow(og)['concat'](oh)['join'](',')+')';case'HSLCOMP':var oh=og['length']==0x4?oz(og['pop']()):null;var o1=oD(d['ColorUtils']['convert'](og,'HSL')['replace'](/\s/g,'')['split'](','));return oh!=null?o1['concat'](oh):o1;case'HSL':var o2=ou(og[0x0]),o3=ou(og[0x1]),o4=ou(og[0x2]);var on=Math['max'](o2,o3,o4),oo=Math['min'](o2,o3,o4),op=on-oo,oa,ob=on===0x0?0x0:op/on,oc=on/0xff;switch(on){case oo:oa=0x0;break;case o2:oa=o3-o4+op*(o30xff?0xff:o6<0x0?0x0:o6;}};function ow(ox){return ox['map'](o6=>{return ou(o6);});};function oz(oh){if(oh==null){return 0x1;}else{oh=oh['toString']();oh=(oh['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oh['replace'](/[^0-9\.\-]/g,''));return isNaN(oh)||oh>0x1?0x1:oh<0x0?0x0:oh;}};function oB(oC){if(oC==null){return'100%';}else{oC=parseFloat(oC['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(oC)||oC>0x64?0x64:oC<0x0?0x0:oC)+'%';}};function oD(oE){let oa=parseFloat(oE['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));oa=isNaN(oa)||oa>0x168?0x168:oa<0x0?0x0:oa;return[oa]['concat'](oE['map'](oG=>{return oB(oG);}));};function oH(o6){if(o6==null){return 0xffffff;}else{o6=parseInt(o6['toString']()['replace'](/[^0-9]/g,''));return isNaN(o6)||o6>0xffffff?0xffffff:o6<0x0?0x0:o6;}};};d['ColorUtils']['setAlpha']=function(oJ,oK,oL){if(d['ObjectUtils']['is'](oJ)){var oM={};for(let oN in oJ)oM[oN]=d['ColorUtils']['setAlpha'](oJ[oN],oK,oL);return oM;}else{var oO=d['ColorUtils']['convert'](oJ,'RGBCOMP');if(oO){oK=oK['toString']();oK=(oK['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oK['replace'](/[^0-9\.\-]/g,''));oK=isNaN(oK)||oK>0x1?0x1:oK<0x0?0x0:oK;oO[0x3]=oK;oL=(oL||d['ColorUtils']['getType'](oJ))['toUpperCase']();oL=oL=='RGB'||oL=='HSL'||oL=='HEX'?oL+'A':oL;return d['ColorUtils']['convert'](oO,oL);}}return null;};d['ColorUtils']['getAlpha']=function(oP){var oQ=d['ColorUtils']['convert'](oP,'RGBCOMP');if(oQ){if(oQ['length']==0x3)return 0x1;else if(oQ['length']==0x4){let oR=oQ[0x3]['toString']();oR=(oR['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oR['replace'](/[^0-9\.\-]/g,''));return isNaN(oR)||oR>0x1?0x1:oR<0x0?0x0:oR;}}return null;};d['ColorUtils']['change']=function(oS,oT,oU){oT=parseFloat(oT);if(oS!=null&&typeof oT=='number'&&!isNaN(oT)){if(d['ObjectUtils']['is'](oS)){var oV={};for(let oW in oS)oV[oW]=d['ColorUtils']['change'](oS[oW],oT,oU);return oV;}else{var oX=d['ColorUtils']['convert'](oS,'RGBCOMP');if(oX){if(parseInt(oT)!==oT){oT=oT['toString']();oT=(oT['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oT['replace'](/[^0-9\.\-]/g,''));oT=isNaN(oT)?0x0:oT;return d['ColorUtils']['convert']([Math['round'](oX[0x0]*(0x1+oT)),Math['round'](oX[0x1]*(0x1+oT)),Math['round'](oX[0x2]*(0x1+oT))],oU||d['ColorUtils']['getType'](oS));}else return d['ColorUtils']['convert']([Math['round'](oX[0x0]+oT),Math['round'](oX[0x1]+oT),Math['round'](oX[0x2]+oT)],oU||d['ColorUtils']['getType'](oS));}}}return null;};d['ColorUtils']['invert']=function(oY,oZ){if(d['ObjectUtils']['is'](oY)){var p0={};for(let p1 in oY)p0[p1]=d['ColorUtils']['invert'](oY[p1],oZ);return p0;}else{var p2=d['ColorUtils']['convert'](oY,'RGBCOMP');if(p2)return d['ColorUtils']['convert']([0xff-p2[0x0],0xff-p2[0x1],0xff-p2[0x2]],oZ||d['ColorUtils']['getType'](oY));}return null;};d['ColorUtils']['compare']=function(p3,p4){if(p3&&p4){p3=d['ColorUtils']['convert'](p3,'RGBA');p4=d['ColorUtils']['convert'](p4,'RGBA');if(p3&&p4)return d['equals'](p3,p4);}return null;};d['ColorUtils']['isBright']=function(p5,p6=0xa0){p5=d['ColorUtils']['convert'](p5,'RGBCOMP');if(!p5)return![];return parseInt(p6)