diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index c58721b7f2..f4febf420f 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -6864,6 +6864,8 @@ var BDFDB = {
LibraryComponents.NavItem = BDFDB.ModuleUtils.findByName("NavItem");
+ LibraryComponents.PrivateChannel = BDFDB.ModuleUtils.findByName("PrivateChannel");
+
LibraryComponents.Popout = reactInitialized && class BDFDB_Popout extends LibraryModules.React.Component {
componentWillUnmount() {
delete this.props.containerInstance.popout;
diff --git a/Plugins/BDFDB.min.js b/Plugins/BDFDB.min.js
index bd2152a738..64795bb3e8 100644
--- a/Plugins/BDFDB.min.js
+++ b/Plugins/BDFDB.min.js
@@ -1 +1 @@
-if(window['BDFDB']&&BDFDB['ListenerUtils']&&typeof BDFDB['ListenerUtils']['remove']=='function')BDFDB['ListenerUtils']['remove'](BDFDB);if(window['BDFDB']&&BDFDB['ObserverUtils']&&typeof BDFDB['ObserverUtils']['disconnect']=='function')BDFDB['ObserverUtils']['disconnect'](BDFDB);if(window['BDFDB']&&BDFDB['ModuleUtils']&&typeof BDFDB['ModuleUtils']['unpatch']=='function')BDFDB['ModuleUtils']['unpatch'](BDFDB);var BDFDB={'myPlugins':BDFDB&&BDFDB['myPlugins']||{},'InternalData':BDFDB&&BDFDB['InternalData']||{'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0}},'BDv2Api':BDFDB&&BDFDB['BDv2Api']||undefined,'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'name':'$BDFDB'};(c=>{var d=Math['round'](Math['random']()*0x2386f26fc10000),e={};BDFDB['InternalData']['loadid']=d;BDFDB['InternalData']['creationTime']=performance['now']();BDFDB['LogUtils']={};BDFDB['LogUtils']['log']=function(f,g){if(typeof f!='string')f='';if(typeof g!='string'||g=='$BDFDB')g='BDFDB';console['log']('%c['+g+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',f['trim']());};BDFDB['LogUtils']['warn']=function(h,i){if(typeof h!='string')h='';if(typeof i!='string'||i=='$BDFDB')i='BDFDB';console['warn']('%c['+i+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',h['trim']());};BDFDB['LogUtils']['error']=function(j,k){if(typeof j!='string')j='';if(typeof k!='string'||k=='$BDFDB')k='BDFDB';console['error']('%c['+k+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20'+j['trim']());};BDFDB['LogUtils']['log']('Loading\x20library.');BDFDB['PluginUtils']={};BDFDB['PluginUtils']['init']=function(l){l['name']=l['name']||(typeof l['getName']=='function'?l['getName']():null);l['version']=l['version']||(typeof l['getVersion']=='function'?l['getVersion']():null);l['author']=l['author']||(typeof l['getAuthor']=='function'?l['getAuthor']():null);l['description']=l['description']||(typeof l['getDescription']=='function'?l['getDescription']():null);if(l['patchModules']){l['patchedModules']={'after':l['patchModules']};delete l['patchModules'];}l['patchedModules']=BDFDB['ObjectUtils']['filter'](l['patchedModules'],m=>eG['Patchtypes']['includes'](m),!![]);e['clearStartTimeout'](l);var n=BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_started','v'+l['version']);BDFDB['LogUtils']['log'](n,l['name']);if(!BDFDB['BDUtils']['getSettings']('fork-ps-2'))BDFDB['NotificationUtils']['toast'](l['name']+'\x20'+n,{'nopointer':!![],'selector':'plugin-started-toast'});var o=typeof l['getRawUrl']=='function'&&typeof l['getRawUrl']()=='string'?l['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+l['name']+'/'+l['name']+'.plugin.js';BDFDB['PluginUtils']['checkUpdate'](l['name'],o);if(typeof l['initConstructor']==='function')BDFDB['TimeUtils']['suppress'](l['initConstructor']['bind'](l),'Could\x20not\x20initiate\x20constructor!',l['name'])();if(typeof l['css']==='string')BDFDB['DOMUtils']['appendLocalStyle'](l['name'],l['css']);e['patchPlugin'](l);e['addOnSettingsClosedListener'](l);e['addOnSwitchListener'](l);e['addContextListeners'](l);BDFDB['PluginUtils']['translate'](l);BDFDB['PluginUtils']['checkChangeLog'](l);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][o]={'name':l['name'],'raw':o,'version':l['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=BDFDB['TimeUtils']['interval'](c=>{BDFDB['PluginUtils']['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);l['started']=!![];delete l['stopping'];for(let q in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][q]['started']&&typeof BDFDB['myPlugins'][q]['initialize']=='function')setImmediate(()=>{BDFDB['TimeUtils']['suppress'](BDFDB['myPlugins'][q]['initialize']['bind'](BDFDB['myPlugins'][q]),'Could\x20not\x20initiate\x20plugin!',q)();});};BDFDB['PluginUtils']['clear']=function(r){e['clearStartTimeout'](r);delete BDFDB['myPlugins'][r['name']];var s=BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_stopped','v'+r['version']);BDFDB['LogUtils']['log'](s,r['name']);if(!BDFDB['BDUtils']['getSettings']('fork-ps-2'))BDFDB['NotificationUtils']['toast'](r['name']+'\x20'+s,{'nopointer':!![],'selector':'plugin-stopped-toast'});var t=typeof r['getRawUrl']=='function'&&typeof r['getRawUrl']()=='string'?r['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+r['name']+'/'+r['name']+'.plugin.js';if(typeof r['css']==='string')BDFDB['DOMUtils']['removeLocalStyle'](r['name']);BDFDB['ModuleUtils']['unpatch'](r);BDFDB['ListenerUtils']['remove'](r);BDFDB['ObserverUtils']['disconnect'](r);e['removeOnSwitchListener'](r);for(let u of document['querySelectorAll']('.'+r['name']+'-modal,\x20.'+r['name']['toLowerCase']()+'-modal,\x20.'+r['name']+'-settingsmodal,\x20.'+r['name']['toLowerCase']()+'-settingsmodal')){let v=u['querySelector'](BDFDB['dotCN']['modalclose']);if(v)v['click']();}delete window['PluginUpdates']['plugins'][t];delete r['started'];BDFDB['TimeUtils']['timeout'](()=>{delete r['stopping'];});};BDFDB['PluginUtils']['translate']=function(w){w['labels']={};if(typeof w['setLabelsByLanguage']==='function'||typeof w['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])z();else{var x=BDFDB['TimeUtils']['interval'](c=>{if(document['querySelector']('html')['lang']){BDFDB['TimeUtils']['clear'](x);z();}},0x64);}function z(){var A=BDFDB['LanguageUtils']['getLanguage']();if(typeof w['setLabelsByLanguage']==='function')w['labels']=w['setLabelsByLanguage'](A['id']);if(typeof w['changeLanguageStrings']==='function')w['changeLanguageStrings']();BDFDB['LogUtils']['log'](BDFDB['LanguageUtils']['LibraryStringsFormat']('toast_plugin_translated',A['ownlang']),w['name']);}}};BDFDB['PluginUtils']['checkUpdate']=function(B,C){if(BDFDB['BDUtils']['isBDv2']()||!B||!C)return;hh['request'](C,(D,E,F)=>{if(D)return;var G=F['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!G)return;if(BDFDB['NumberUtils']['getVersionDifference'](G[0x0],window['PluginUpdates']['plugins'][C]['version'])>0.2){BDFDB['NotificationUtils']['toast'](B+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['PluginUtils']['downloadUpdate'](B,C);}else if(BDFDB['NumberUtils']['compareVersions'](G[0x0],window['PluginUpdates']['plugins'][C]['version']))BDFDB['PluginUtils']['showUpdateNotice'](B,C);else BDFDB['PluginUtils']['removeUpdateNotice'](B);});};BDFDB['PluginUtils']['checkAllUpdates']=function(){for(let H in window['PluginUpdates']['plugins']){var I=window['PluginUpdates']['plugins'][H];BDFDB['PluginUtils']['checkUpdate'](I['name'],I['raw']);}};BDFDB['PluginUtils']['showUpdateNotice']=function(J,K){if(!J||!K)return;var L=document['querySelector']('#pluginNotice');if(!L){L=BDFDB['NotificationUtils']['notice']('The\x20following\x20plugins\x20need\x20to\x20be\x20updated: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['BDUtils']['isAutoLoadEnabled']()?'Reload':'','customicon':''});L['style']['setProperty']('display','block','important');L['style']['setProperty']('visibility','visible','important');L['style']['setProperty']('opacity','1','important');L['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',c=>{BDFDB['DOMUtils']['remove']('.update-clickme-tooltip');});var N=L['querySelector'](BDFDB['dotCN']['noticebutton']);if(N){BDFDB['DOMUtils']['toggle'](N,!![]);N['addEventListener']('click',c=>{window['location']['reload'](![]);});N['addEventListener']('mouseenter',c=>{if(window['PluginUpdates']['downloaded'])BDFDB['TooltipUtils']['create'](N,window['PluginUpdates']['downloaded']['join'](',\x20'),{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(L){var Q=L['querySelector']('#outdatedPlugins');if(Q&&!Q['querySelector']('#'+J+'-notice')){if(Q['querySelector']('span'))Q['appendChild'](BDFDB['DOMUtils']['create'](',\x20'));var R=BDFDB['DOMUtils']['create'](''+J+'');R['addEventListener']('click',c=>{BDFDB['PluginUtils']['downloadUpdate'](J,K);});Q['appendChild'](R);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['TooltipUtils']['create'](Q,'Click\x20us!',{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};BDFDB['PluginUtils']['removeUpdateNotice']=function(T,U=document['querySelector']('#pluginNotice')){if(!T||!U)return;var V=U['querySelector']('#outdatedPlugins');if(V){var W=V['querySelector']('#'+T+'-notice');if(W){var X=W['nextSibling'];var Y=W['prevSibling'];if(X&&BDFDB['DOMUtils']['containsClass'](X,'separator'))X['remove']();else if(Y&&BDFDB['DOMUtils']['containsClass'](Y,'separator'))Y['remove']();W['remove']();}if(!V['querySelector']('span')){var Z=U['querySelector'](BDFDB['dotCN']['noticebutton']);if(Z){U['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['DOMUtils']['toggle'](Z,![]);}else U['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['PluginUtils']['downloadUpdate']=function(a0,a1){if(!a0||!a1)return;hh['request'](a1,(a2,a3,a4)=>{if(a2)return BDFDB['LogUtils']['warn']('Unable\x20to\x20get\x20update\x20for\x20'+a0);BDFDB['InternalData']['creationTime']=0x0;var a5=a4['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);a5=a5['toString']()['replace'](/['"]/g,'');hh['fs']['writeFileSync'](hh['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),a1['split']('/')['slice'](-0x1)[0x0]),a4);BDFDB['NotificationUtils']['toast'](a0+'\x20v'+window['PluginUpdates']['plugins'][a1]['version']+'\x20has\x20been\x20replaced\x20by\x20'+a0+'\x20v'+a5+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var a6=document['querySelector']('#pluginNotice');if(a6){if(a6['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][a1]['version']=a5;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](a0))window['PluginUpdates']['downloaded']['push'](a0);}BDFDB['PluginUtils']['removeUpdateNotice'](a0,a6);}});};BDFDB['PluginUtils']['checkChangeLog']=function(a7){if(!BDFDB['ObjectUtils']['is'](a7)||!a7['changelog'])return;var a8=BDFDB['DataUtils']['load'](a7,'changelog');if(!a8['currentversion']||BDFDB['NumberUtils']['compareVersions'](a7['version'],a8['currentversion'])){a8['currentversion']=a7['version'];BDFDB['DataUtils']['save'](a8,a7,'changelog');BDFDB['PluginUtils']['openChangeLog'](a7);}};BDFDB['PluginUtils']['openChangeLog']=function(a9){if(!BDFDB['ObjectUtils']['is'](a9)||!a9['changelog'])return;var aa='',ab={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let ac in a9['changelog']){ac=ac['toLowerCase']();var ad=BDFDB['disCN']['changelog'+ac];if(ad){aa+='
'+ab[ac]+'
';for(let ae of a9['changelog'][ac])aa+='- '+ae[0x0]+''+(ae[0x1]?':\x20'+ae[0x1]+'.':'')+'
';aa+='
';}}if(aa)BDFDB['ModalUtils']['open'](a9,{'header':BDFDB['LanguageUtils']['LanguageStrings']['CHANGE_LOG'],'children':BDFDB['ReactUtils']['elementToReact'](BDFDB['DOMUtils']['create'](aa)),'className':BDFDB['disCN']['modalchangelogmodal'],'contentClassName':BDFDB['disCNS']['changelogcontainer']+BDFDB['disCN']['modalminicontent']});};BDFDB['PluginUtils']['createSettingsPanel']=function(af,ag){if(!BDFDB['ObjectUtils']['is'](af)||!ag||!BDFDB['ReactUtils']['isValidElement'](ag)&&!BDFDB['ArrayUtils']['is'](ag)||BDFDB['ArrayUtils']['is'](ag)&&!ag['length'])return;var ah=BDFDB['DOMUtils']['create']('');BDFDB['ReactUtils']['render'](BDFDB['ReactUtils']['createElement'](y7['SettingsPanel'],{'key':af['name']+'-settingspanel','title':af['name'],'children':ag}),ah);return ah;};e['clearStartTimeout']=function(ai){if(!BDFDB['ObjectUtils']['is'](ai))return;BDFDB['TimeUtils']['clear'](ai['startTimeout'],ai['libLoadTimeout']);delete ai['startTimeout'];delete ai['libLoadTimeout'];};e['addOnSettingsClosedListener']=function(aj){if(BDFDB['ObjectUtils']['is'](aj)&&typeof aj['onSettingsClosed']==='function'){let ak=BDFDB['ModuleUtils']['findByName']('StandardSidebarView');if(ak)BDFDB['ModuleUtils']['patch'](aj,ak['prototype'],'componentWillUnmount',{'after':al=>{aj['onSettingsClosed']();}});}};e['addOnSwitchListener']=function(am){if(BDFDB['ObjectUtils']['is'](am)&&typeof am['onSwitch']==='function'){e['removeOnSwitchListener'](am);var an=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20~\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(an){var ao=new MutationObserver(ap=>{ap['forEach'](aq=>{if(aq['target']&&BDFDB['DOMUtils']['containsClass'](aq['target'],BDFDB['disCN']['nochannel']))am['onSwitch']();});});var ar=an['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(ar)ao['observe'](ar,{'attributes':!![]});am['onSwitchFix']=new MutationObserver(as=>{as['forEach'](at=>{if(at['addedNodes']){at['addedNodes']['forEach'](au=>{if(BDFDB['DOMUtils']['containsClass'](au,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))ao['observe'](au,{'attributes':!![]});});}});});am['onSwitchFix']['observe'](an,{'childList':!![]});}}};e['removeOnSwitchListener']=function(av){if(BDFDB['ObjectUtils']['is'](av)&&typeof av['onSwitch']==='function'&&BDFDB['ObjectUtils']['is'](av['onSwitchFix'])){av['onSwitchFix']['disconnect']();delete av['onSwitchFix'];}};BDFDB['ObserverUtils']={};BDFDB['ObserverUtils']['connect']=function(aw,ax,ay,az={'childList':!![]}){if(!BDFDB['ObjectUtils']['is'](aw)||!ax||!ay)return;if(BDFDB['ObjectUtils']['isEmpty'](aw['observers']))aw['observers']={};if(!BDFDB['ArrayUtils']['is'](aw['observers'][ay['name']]))aw['observers'][ay['name']]=[];if(!ay['multi'])for(let aA of aw['observers'][ay['name']])aA['disconnect']();if(ay['instance'])aw['observers'][ay['name']]['push'](ay['instance']);var aB=aw['observers'][ay['name']][aw['observers'][ay['name']]['length']-0x1];if(aB){var aC=Node['prototype']['isPrototypeOf'](ax)?ax:typeof ax==='string'?document['querySelector'](ax):null;if(aC)aB['observe'](aC,az);}};BDFDB['ObserverUtils']['disconnect']=function(aD,aE){if(BDFDB['ObjectUtils']['is'](aD)&&!BDFDB['ObjectUtils']['isEmpty'](aD['observers'])){let aF=typeof aE=='string'?aE:BDFDB['ObjectUtils']['is'](aE)?aE['name']:null;if(!aF){for(let aE in aD['observers'])for(let aH of aD['observers'][aE])aH['disconnect']();delete aD['observers'];}else if(!BDFDB['ArrayUtils']['is'](aD['observers'][aF])){for(let aI of aD['observers'][aF])aI['disconnect']();delete aD['observers'][aF];}}};BDFDB['ListenerUtils']={};BDFDB['ListenerUtils']['add']=function(aJ,aK,aL,aM,aN){if(!BDFDB['ObjectUtils']['is'](aJ)||!Node['prototype']['isPrototypeOf'](aK)&&aK!==window||!aL)return;var aO=typeof aM=='function';var aP=aO?undefined:aM;var aQ=aO?aM:aN;if(typeof aQ!='function')return;BDFDB['ListenerUtils']['remove'](aJ,aK,aL,aP);for(var aR of aL['split']('\x20')){aR=aR['split']('.');var aS=aR['shift']()['toLowerCase']();if(!aS)return;var aT=aS;aS=aS=='mouseenter'||aS=='mouseleave'?'mouseover':aS;var aU=(aR['join']('.')||'')+aJ['name'];if(!BDFDB['ArrayUtils']['is'](aJ['listeners']))aJ['listeners']=[];var aV=null;if(aP){if(aT=='mouseenter'||aT=='mouseleave'){aV=aW=>{for(let aX of aW['path'])if(typeof aX['matches']=='function'&&aX['matches'](aP)&&!aX[aU+'BDFDB'+aT]){aX[aU+'BDFDB'+aT]=!![];if(aT=='mouseenter')aQ(BDFDB['ListenerUtils']['copyEvent'](aW,aX));let aY=aZ=>{if(aZ['target']['contains'](aX)||aZ['target']==aX||!aX['contains'](aZ['target'])){if(aT=='mouseleave')aQ(BDFDB['ListenerUtils']['copyEvent'](aW,aX));delete aX[aU+'BDFDB'+aT];document['removeEventListener']('mouseout',aY);}};document['addEventListener']('mouseout',aY);break;}};}else{aV=b0=>{for(let b1 of b0['path'])if(typeof b1['matches']=='function'&&b1['matches'](aP)){aQ(BDFDB['ListenerUtils']['copyEvent'](b0,b1));break;}};}}else aV=b2=>{aQ(BDFDB['ListenerUtils']['copyEvent'](b2,aK));};aJ['listeners']['push']({'ele':aK,'eventname':aS,'origeventname':aT,'namespace':aU,'selector':aP,'eventcallback':aV});aK['addEventListener'](aS,aV,!![]);}};BDFDB['ListenerUtils']['remove']=function(b3,b4,b5='',b6){if(!BDFDB['ObjectUtils']['is'](b3)||!BDFDB['ArrayUtils']['is'](b3['listeners']))return;if(Node['prototype']['isPrototypeOf'](b4)||b4===window){for(var b7 of b5['split']('\x20')){b7=b7['split']('.');var b8=b7['shift']()['toLowerCase']();var b9=(b7['join']('.')||'')+b3['name'];for(let ba of b3['listeners']){let bb=[];if(ba['ele']==b4&&(!b8||ba['origeventname']==b8)&&ba['namespace']==b9&&(b6===undefined||ba['selector']==b6)){b4['removeEventListener'](ba['eventname'],ba['eventcallback'],!![]);bb['push'](ba);}if(bb['length'])b3['listeners']=b3['listeners']['filter'](ba=>{return bb['indexOf'](ba)<0x0;});}}}else if(!b4){for(let bd of b3['listeners'])bd['ele']['removeEventListener'](bd['eventname'],bd['eventcallback'],!![]);b3['listeners']=[];}};BDFDB['ListenerUtils']['multiAdd']=function(be,bf,bg){if(!Node['prototype']['isPrototypeOf'](be)||!bf||typeof bg!='function')return;for(var bh of bf['trim']()['split']('\x20')['filter'](bi=>bi))be['addEventListener'](bh,bg,!![]);};BDFDB['ListenerUtils']['multiRemove']=function(bj,bk,bl){if(!Node['prototype']['isPrototypeOf'](bj)||!bk||typeof bl!='function')return;for(var bm of bk['trim']()['split']('\x20')['filter'](bn=>bn))bj['removeEventListener'](bm,bl,!![]);};BDFDB['ListenerUtils']['addToChildren']=function(bo,bp,bq,br){if(!Node['prototype']['isPrototypeOf'](bo)||!bp||!bq||!bq['trim']()||typeof br!='function')return;for(var bs of bp['trim']()['split']('\x20')['filter'](bt=>bt)){var bu=br;if(bs=='mouseenter'||bs=='mouseleave')bu=bv=>{if(bv['target']['matches'](bq))br(bv);};bo['querySelectorAll'](bq['trim']())['forEach'](bw=>{bw['addEventListener'](bs,bu,!![]);});}};BDFDB['ListenerUtils']['copyEvent']=function(bx,by){if(!bx||!bx['constructor']||!bx['type'])return bx;var bz=new bx['constructor'](bx['type'],bx);Object['defineProperty'](bz,'originalEvent',{'value':bx});Object['defineProperty'](bz,'which',{'value':bx['which']});Object['defineProperty'](bz,'keyCode',{'value':bx['keyCode']});Object['defineProperty'](bz,'path',{'value':bx['path']});Object['defineProperty'](bz,'relatedTarget',{'value':bx['relatedTarget']});Object['defineProperty'](bz,'srcElement',{'value':bx['srcElement']});Object['defineProperty'](bz,'target',{'value':bx['target']});Object['defineProperty'](bz,'toElement',{'value':bx['toElement']});if(by)Object['defineProperty'](bz,'currentTarget',{'value':by});return bz;};BDFDB['ListenerUtils']['stopEvent']=function(bA){if(BDFDB['ObjectUtils']['is'](bA)){if(typeof bA['preventDefault']=='function')bA['preventDefault']();if(typeof bA['stopPropagation']=='function')bA['stopPropagation']();if(typeof bA['stopImmediatePropagation']=='function')bA['stopImmediatePropagation']();if(BDFDB['ObjectUtils']['is'](bA['originalEvent'])){if(typeof bA['originalEvent']['preventDefault']=='function')bA['originalEvent']['preventDefault']();if(typeof bA['originalEvent']['stopPropagation']=='function')bA['originalEvent']['stopPropagation']();if(typeof bA['originalEvent']['stopImmediatePropagation']=='function')bA['originalEvent']['stopImmediatePropagation']();}}};var bB=[],bC={'queue':[],'running':![]};BDFDB['NotificationUtils']={};BDFDB['NotificationUtils']['toast']=function(bD,bE={}){var bF=document['querySelector']('.toasts,\x20.bd-toasts');if(!bF){var bG=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bH=bG?BDFDB['DOMUtils']['getRects'](bG):null;var bI=bG?bG['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bJ=bH?bH['left']:0x136;var bK=bH?bI?bH['width']-BDFDB['DOMUtils']['getRects'](bI)['width']:bH['width']:window['outerWidth']-0x0;var bL=bG?bG['querySelector']('form'):null;var bM=bL?BDFDB['DOMUtils']['getRects'](bL)['height']:0x50;bF=BDFDB['DOMUtils']['create']('');(document['querySelector'](BDFDB['dotCN']['app'])||document['body'])['appendChild'](bF);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bE;var bN=BDFDB['DOMUtils']['create'](''+(html===!![]?bD:BDFDB['StringUtils']['htmlEscape'](bD))+'
');if(type){BDFDB['DOMUtils']['addClass'](bN,'toast-'+type);if(icon)BDFDB['DOMUtils']['addClass'](bN,'icon');}else if(color){var bO=BDFDB['ColorUtils']['convert'](color,'RGB');if(bO)bN['style']['setProperty']('background-color',bO);}BDFDB['DOMUtils']['addClass'](bN,selector);bF['appendChild'](bN);bN['close']=c=>{if(document['contains'](bN)){BDFDB['DOMUtils']['addClass'](bN,'closing');bN['style']['setProperty']('pointer-events','none','important');BDFDB['TimeUtils']['timeout'](c=>{bN['remove']();if(!bF['querySelectorAll']('.toast,\x20.bd-toast')['length'])bF['remove']();},0xbb8);}};if(nopointer)bN['style']['setProperty']('pointer-events','none','important');else bN['addEventListener']('click',bN['close']);BDFDB['TimeUtils']['timeout'](c=>{bN['close']();},timeout>0x0?timeout:0x927c0);return bN;};BDFDB['NotificationUtils']['desktop']=function(bS,bT={}){var bU=c=>{bC['queue']['push']({'parsedcontent':bS,'parsedoptions':bT});bW();};var bW=c=>{if(!bC['running']){var bY=bC['queue']['shift']();if(bY)bZ(bY['parsedcontent'],bY['parsedoptions']);}};var bZ=(c0,c1)=>{bC['running']=!![];var c2=c1['silent'];c1['silent']=c1['silent']||c1['sound']?!![]:![];var c3=new Notification(c0,c1);var c4=new Audio();var c5=BDFDB['TimeUtils']['timeout'](c=>{c8();},c1['timeout']?c1['timeout']:0xbb8);if(typeof c1['click']=='function')c3['onclick']=c=>{BDFDB['TimeUtils']['clear'](c5);c8();c1['click']();};if(!c2&&c1['sound']){c4['src']=c1['sound'];c4['play']();}var c8=c=>{c4['pause']();c3['close']();bC['running']=![];BDFDB['TimeUtils']['timeout'](c=>{bW();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bU();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(cb){if(cb==='granted')bU();});};BDFDB['NotificationUtils']['notice']=function(cc,cd={}){if(!cc)return;var ce=document['querySelector'](BDFDB['dotCN']['layers']);if(!ce)return;var cf=BDFDB['NumberUtils']['generateId'](bB);var cg=BDFDB['DOMUtils']['create']('');ce['parentElement']['insertBefore'](cg,ce);var ch=cg['querySelector']('.notice-message');if(cd['platform'])for(let ci of cd['platform']['split']('\x20'))if(xa['noticeicon'+ci]){let cj=BDFDB['DOMUtils']['create']('');BDFDB['DOMUtils']['addClass'](cj,BDFDB['disCN']['noticeplatformicon']);BDFDB['DOMUtils']['removeClass'](cj,BDFDB['disCN']['noticeicon']);cg['insertBefore'](cj,ch);}if(cd['customicon']){let ck=BDFDB['DOMUtils']['create'](cd['customicon']);let cj=BDFDB['DOMUtils']['create']('');if(ck['tagName']=='span'&&!ck['firstElementChild'])cj['style']['setProperty']('background','url('+cd['customicon']+')\x20center/cover\x20no-repeat');else cj['appendChild'](ck);BDFDB['DOMUtils']['addClass'](cj,BDFDB['disCN']['noticeplatformicon']);BDFDB['DOMUtils']['removeClass'](cj,BDFDB['disCN']['noticeicon']);cg['insertBefore'](cj,ch);}if(cd['btn']||cd['button'])cg['appendChild'](BDFDB['DOMUtils']['create'](''));if(cd['id'])cg['id']=cd['id']['split']('\x20')['join']('');if(cd['selector'])BDFDB['DOMUtils']['addClass'](cg,cd['selector']);if(cd['css'])BDFDB['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbar'+cf,cd['css']);if(cd['style'])cg['style']=cd['style'];if(cd['html']===!![])ch['innerHTML']=cc;else{var cm=document['createElement']('a');var cn=[];for(let co of cc['split']('\x20')){var cp=BDFDB['StringUtils']['htmlEscape'](co);cm['href']=co;cn['push'](cm['host']&&cm['host']!==window['location']['host']?'':cp);}ch['innerHTML']=cn['join']('\x20');}var cq=null;if(cd['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(cq=BDFDB['disCN']['notice'+cd['type']])BDFDB['DOMUtils']['addClass'](cg,cq);if(cd['type']=='premium'){var cr=cg['querySelector'](BDFDB['dotCN']['noticebutton']);if(cr)BDFDB['DOMUtils']['addClass'](cr,BDFDB['disCN']['noticepremiumaction']);BDFDB['DOMUtils']['addClass'](ch,BDFDB['disCN']['noticepremiumtext']);cg['insertBefore'](BDFDB['DOMUtils']['create'](''),ch);}}if(!cq){var cs=BDFDB['ColorUtils']['convert'](cd['color'],'RGBCOMP');if(cs){var ct=cs[0x0]>0xb4&&cs[0x1]>0xb4&&cs[0x2]>0xb4?'#000':'#FFF';var cu=BDFDB['ColorUtils']['convert'](cs,'HEX');var cv=cs[0x0]>0xb4&&cs[0x1]>0xb4&&cs[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cf,'.BDFDB-notice.notice-'+cf+'{background-color:'+cu+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20.notice-message\x20{color:'+ct+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+ct+'\x20!important;border-color:'+BDFDB['ColorUtils']['setAlpha'](ct,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cu+'\x20!important;background-color:'+ct+'\x20!important;}.BDFDB-notice.notice-'+cf+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cv+'\x20!important;}');}else BDFDB['DOMUtils']['addClass'](cg,BDFDB['disCN']['noticedefault']);}cg['style']['setProperty']('height','36px','important');cg['style']['setProperty']('min-width','70vw','important');cg['style']['setProperty']('left','unset','important');cg['style']['setProperty']('right','unset','important');let cw=(BDFDB['DOMUtils']['getWidth'](document['body']['firstElementChild'])-BDFDB['DOMUtils']['getWidth'](cg))/0x2;cg['style']['setProperty']('left',cw+'px','important');cg['style']['setProperty']('right',cw+'px','important');cg['style']['setProperty']('min-width','unset','important');cg['style']['setProperty']('width','unset','important');cg['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cw*0x2+'px)','important');cg['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',c=>{cg['style']['setProperty']('overflow','hidden','important');cg['style']['setProperty']('height','0px','important');BDFDB['TimeUtils']['timeout'](c=>{BDFDB['ArrayUtils']['remove'](bB,cf);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbar'+cf);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+cf);cg['remove']();},0x1f4);});return cg;};BDFDB['NotificationUtils']['alert']=function(cz,cA){if(typeof cz=='string'&&typeof cz=='string'&&window['BdApi']&&typeof BdApi['alert']=='function')BdApi['alert'](cz,cA);};var cB=[];BDFDB['TooltipUtils']={};BDFDB['TooltipUtils']['create']=function(cC,cD,cE={}){var cF=document['querySelector'](BDFDB['dotCN']['appmount']+'\x20>\x20*\x20>\x20'+BDFDB['dotCN']['itemlayercontainer']);if(!cF||typeof cD!='string'||!Node['prototype']['isPrototypeOf'](cC)||!document['contains'](cC))return null;var cG=document['querySelector']('.BDFDB-itemlayercontainer');if(!cG){cG=cF['cloneNode']();BDFDB['DOMUtils']['addClass'](cG,'BDFDB-itemlayercontainer');cF['parentElement']['insertBefore'](cG,cF['nextSibling']);}var cH=BDFDB['NumberUtils']['generateId'](cB);var cI=BDFDB['DOMUtils']['create']('');cG['appendChild'](cI);var cJ=cI['firstElementChild'];if(cE['id'])cJ['id']=cE['id']['split']('\x20')['join']('');if(cE['selector'])BDFDB['DOMUtils']['addClass'](cJ,cE['selector']);if(cE['style'])cJ['style']=cE['style'];if(cE['html']===!![])cJ['innerHTML']=cD;else cJ['innerText']=cD;if(!cE['type']||!BDFDB['disCN']['tooltip'+cE['type']['toLowerCase']()])cE['type']='top';BDFDB['DOMUtils']['addClass'](cJ,BDFDB['disCN']['tooltip'+cE['type']['toLowerCase']()]);cJ['position']=cE['type']['toLowerCase']();cJ['appendChild'](BDFDB['DOMUtils']['create'](''));if(cJ['style']['getPropertyValue']('border-color')&&(cJ['style']['getPropertyValue']('background-color')||cJ['style']['getPropertyValue']('background-image')))BDFDB['DOMUtils']['addClass'](cJ,'tooltip-customcolor');else if(cE['color']&&BDFDB['disCN']['tooltip'+cE['color']['toLowerCase']()])BDFDB['DOMUtils']['addClass'](cJ,BDFDB['disCN']['tooltip'+cE['color']['toLowerCase']()]);else BDFDB['DOMUtils']['addClass'](cJ,BDFDB['disCN']['tooltipblack']);cJ['anker']=cC;if(cE['hide'])BDFDB['DOMUtils']['appendLocalStyle']('BDFDBhideOtherTooltips'+cH,'#app-mount\x20'+BDFDB['dotCN']['tooltip']+':not(.BDFDB-tooltip-'+cH+')\x20{display:\x20none\x20!important;}',cG);var cK=c=>{BDFDB['DOMUtils']['remove'](cI);};cC['addEventListener']('mouseleave',cK);var cM=new MutationObserver(cN=>{cN['forEach'](cO=>{var cP=Array['from'](cO['removedNodes']);var cQ=cP['indexOf'](cI)>-0x1;var cR=cP['indexOf'](cC)>-0x1;var cS=cP['some'](cT=>cT['contains'](cC));if(cQ||cR||cS){BDFDB['ArrayUtils']['remove'](cB,cH);cM['disconnect']();BDFDB['DOMUtils']['remove'](cI);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBhideOtherTooltips'+cH,cG);BDFDB['DOMUtils']['removeLocalStyle']('BDFDBcustomTooltips'+cH,cG);if(!cG['firstElementChild'])BDFDB['DOMUtils']['remove'](cG);cC['removeEventListener']('mouseleave',cK);}});});cM['observe'](document['body'],{'subtree':!![],'childList':!![]});BDFDB['TooltipUtils']['update'](cJ);if(cE['delay']){BDFDB['DOMUtils']['toggle'](cI);BDFDB['TimeUtils']['timeout'](c=>{BDFDB['DOMUtils']['toggle'](cI);},cE['delay']);}return cI;};BDFDB['TooltipUtils']['update']=function(cV){if(!Node['prototype']['isPrototypeOf'](cV))return;let cW=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['itemlayer'],cV);if(!Node['prototype']['isPrototypeOf'](cW))return;cV=cW['querySelector'](BDFDB['dotCN']['tooltip']);if(!Node['prototype']['isPrototypeOf'](cV)||!Node['prototype']['isPrototypeOf'](cV['anker'])||!cV['position'])return;var cX=cV['querySelector'](BDFDB['dotCN']['tooltippointer']);var cY,cZ,d0=BDFDB['DOMUtils']['getRects'](cV['anker']),d1=BDFDB['DOMUtils']['getRects'](cW),d2=BDFDB['DOMUtils']['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),d3={'height':0xa,'width':0xa};switch(cV['position']){case'top':cZ=d0['top']-d1['height']-d3['height']+0x2;cY=d0['left']+(d0['width']-d1['width'])/0x2;break;case'bottom':cZ=d0['top']+d0['height']+d3['height']-0x2;cY=d0['left']+(d0['width']-d1['width'])/0x2;break;case'left':cZ=d0['top']+(d0['height']-d1['height'])/0x2;cY=d0['left']-d1['width']-d3['width']+0x2;break;case'right':cZ=d0['top']+(d0['height']-d1['height'])/0x2;cY=d0['left']+d0['width']+d3['width']-0x2;break;}cW['style']['setProperty']('top',cZ+'px');cW['style']['setProperty']('left',cY+'px');cX['style']['removeProperty']('margin-left');cX['style']['removeProperty']('margin-top');if(cV['position']=='top'||cV['position']=='bottom'){if(cY<0x0){cW['style']['setProperty']('left','5px');cX['style']['setProperty']('margin-left',cY-0xa+'px');}else{var d4=d2['width']-(cY+d1['width']);if(d4<0x0){cW['style']['setProperty']('left',d2['width']-d1['width']-0x5+'px');cX['style']['setProperty']('margin-left',-0x1*d4+'px');}}}else if(cV['position']=='left'||cV['position']=='right'){if(cZ<0x0){cW['style']['setProperty']('top','5px');cX['style']['setProperty']('margin-top',cZ-0xa+'px');}else{var d5=d2['height']-(cZ+d1['height']);if(d5<0x0){cW['style']['setProperty']('top',d2['height']-d1['height']-0x5+'px');cX['style']['setProperty']('margin-top',-0x1*d5+'px');}}}};BDFDB['ObjectUtils']={};BDFDB['ObjectUtils']['is']=function(d6){return d6&&Object['prototype']['isPrototypeOf'](d6)&&!Array['prototype']['isPrototypeOf'](d6);};BDFDB['ObjectUtils']['extract']=function(d7,...d8){let d9={};if(BDFDB['ObjectUtils']['is'](d7))for(let da of d8['flat']()['filter'](db=>db))if(d7[da])d9[da]=d7[da];return d9;};BDFDB['ObjectUtils']['exclude']=function(dc,...dd){let de=Object['assign']({},dc);BDFDB['ObjectUtils']['delete'](de,...dd);return de;};BDFDB['ObjectUtils']['delete']=function(df,...dg){if(BDFDB['ObjectUtils']['is'](df))for(let dh of dg['flat']()['filter'](di=>di))delete df[dh];};BDFDB['ObjectUtils']['sort']=function(dj,dk,dl){if(!BDFDB['ObjectUtils']['is'](dj))return{};var dm={};if(dk===undefined||!dk)for(let dn of Object['keys'](dj)['sort']())dm[dn]=dj[dn];else{let dp=[];for(let dn in dj)dp['push'](dj[dn]);dp=BDFDB['ArrayUtils']['keySort'](dp,dk,dl);for(let dr of dp)for(let dn in dj)if(BDFDB['equals'](dr,dj[dn])){dm[dn]=dr;break;}}return dm;};BDFDB['ObjectUtils']['reverse']=function(dt,du){if(!BDFDB['ObjectUtils']['is'](dt))return{};var dv={};for(let dw of du===undefined||!du?Object['keys'](dt)['reverse']():Object['keys'](dt)['sort']()['reverse']())dv[dw]=dt[dw];return dv;};BDFDB['ObjectUtils']['filter']=function(dx,dy,dz=![]){if(!BDFDB['ObjectUtils']['is'](dx))return{};if(typeof dy!='function')return dx;return Object['keys'](dx)['filter'](dA=>dy(dz?dA:dx[dA]))['reduce']((dB,dC)=>(dB[dC]=dx[dC],dB),{});};BDFDB['ObjectUtils']['push']=function(dD,dE){if(BDFDB['ObjectUtils']['is'](dD))dD[Object['keys'](dD)['length']]=dE;};BDFDB['ObjectUtils']['pop']=function(dF,dG){if(BDFDB['ObjectUtils']['is'](dF)){let dH=Object['keys'](dF);if(!dH['length'])return;let dG=dF[dH[dH['length']-0x1]];delete dF[dH[dH['length']-0x1]];return dG;}};BDFDB['ObjectUtils']['map']=function(dJ,dK){if(!BDFDB['ObjectUtils']['is'](dJ))return{};if(typeof dK!='string'&&typeof dK!='function')return dJ;var dL={};for(let dM in dJ)if(BDFDB['ObjectUtils']['is'](dJ[dM]))dL[dM]=typeof dK=='string'?dJ[dM][dK]:dK(dJ[dM],dM);return dL;};BDFDB['ObjectUtils']['toArray']=function(dN){if(!BDFDB['ObjectUtils']['is'](dN))return[];return Object['entries'](dN)['map'](dO=>dO[0x1]);};BDFDB['ObjectUtils']['deepAssign']=function(dP,...dQ){if(!dQ['length'])return dP;var dR=dQ['shift']();if(BDFDB['ObjectUtils']['is'](dP)&&BDFDB['ObjectUtils']['is'](dR)){for(var dS in dR){if(BDFDB['ObjectUtils']['is'](dR[dS])){if(!dP[dS])Object['assign'](dP,{[dS]:{}});BDFDB['ObjectUtils']['deepAssign'](dP[dS],dR[dS]);}else Object['assign'](dP,{[dS]:dR[dS]});}}return BDFDB['ObjectUtils']['deepAssign'](dP,...dQ);};BDFDB['ObjectUtils']['isEmpty']=function(dT){return!BDFDB['ObjectUtils']['is'](dT)||Object['getOwnPropertyNames'](dT)['length']==0x0;};BDFDB['ArrayUtils']={};BDFDB['ArrayUtils']['is']=function(dU){return dU&&Array['isArray'](dU);};BDFDB['ArrayUtils']['keySort']=function(dV,dW,dX){if(!BDFDB['ArrayUtils']['is'](dV))return[];if(dW==null)return dV;if(dX===undefined)dX=null;return dV['sort'](function(dY,dZ){var e0=dY[dW],e1=dZ[dW];if(e0!==dX)return e0e1?0x1:0x0;});};BDFDB['ArrayUtils']['numSort']=function(e2){return e2['sort'](function(e3,e4){return e3e4?0x1:0x0;});};BDFDB['ArrayUtils']['remove']=function(e5,e6,e7=![]){if(!BDFDB['ArrayUtils']['is'](e5))return[];if(!e5['includes'](e6))return e5;if(!e7)e5['splice'](e5['indexOf'](e6),0x1);else while(e5['indexOf'](e6)>-0x1)e5['splice'](e5['indexOf'](e6),0x1);return e5;};BDFDB['ArrayUtils']['getAllIndexes']=function(e8,e9){if(!BDFDB['ArrayUtils']['is'](e8)&&typeof e8!='string')return[];var ea=[],eb=-0x1;while((eb=e8['indexOf'](e9,eb+0x1))!==-0x1)ea['push'](eb);return ea;};BDFDB['ArrayUtils']['removeCopies']=function(ec){if(!BDFDB['ArrayUtils']['is'](ec))return[];return[...new Set(ec)];};BDFDB['ModuleUtils']={};BDFDB['ModuleUtils']['cached']={};BDFDB['ModuleUtils']['find']=function(ed){var ee=e['getWebModuleReq']();for(let ef in ee['c'])if(ee['c']['hasOwnProperty'](ef)){var eg=ee['c'][ef]['exports'];if(eg&&(typeof eg=='object'||typeof eg=='function')&&ed(eg))return eg;if(eg&&eg['__esModule'])for(let eh in eg)if(eg[eh]&&(typeof eg[eh]=='object'||typeof eg[eh]=='function')&&ed(eg[eh]))return eg[eh];}};BDFDB['ModuleUtils']['findByProperties']=function(ei){ei=BDFDB['ArrayUtils']['is'](ei)?ei:Array['from'](arguments);var ej=JSON['stringify'](ei);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['prop']))BDFDB['ModuleUtils']['cached']['prop']={};if(BDFDB['ModuleUtils']['cached']['prop'][ej])return BDFDB['ModuleUtils']['cached']['prop'][ej];else{var ek=BDFDB['ModuleUtils']['find'](ek=>ei['every'](em=>ek[em]!==undefined));if(ek){BDFDB['ModuleUtils']['cached']['prop'][ej]=ek;return ek;}else BDFDB['LogUtils']['warn'](ej+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByName']=function(en){var eo=JSON['stringify'](en);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['name']))BDFDB['ModuleUtils']['cached']['name']={};if(BDFDB['ModuleUtils']['cached']['name'][eo])return BDFDB['ModuleUtils']['cached']['name'][eo];else{var ep=BDFDB['ModuleUtils']['find'](ep=>ep['displayName']===en);if(ep){BDFDB['ModuleUtils']['cached']['name'][eo]=ep;return ep;}else BDFDB['LogUtils']['warn'](eo+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByString']=function(er){er=BDFDB['ArrayUtils']['is'](er)?er:Array['from'](arguments);var es=JSON['stringify'](er);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['string']))BDFDB['ModuleUtils']['cached']['string']={};if(BDFDB['ModuleUtils']['cached']['string'][es])return BDFDB['ModuleUtils']['cached']['string'][es];else{var et=BDFDB['ModuleUtils']['find'](et=>er['every'](ev=>typeof et=='function'&&et['toString']()['indexOf'](ev)>-0x1));if(et){BDFDB['ModuleUtils']['cached']['string'][es]=et;return et;}else BDFDB['LogUtils']['warn'](es+'\x20[string]\x20not\x20found\x20in\x20WebModules');}};BDFDB['ModuleUtils']['findByPrototypes']=function(ew){ew=BDFDB['ArrayUtils']['is'](ew)?ew:Array['from'](arguments);var ex=JSON['stringify'](ew);if(!BDFDB['ObjectUtils']['is'](BDFDB['ModuleUtils']['cached']['proto']))BDFDB['ModuleUtils']['cached']['proto']={};if(BDFDB['ModuleUtils']['cached']['proto'][ex])return BDFDB['ModuleUtils']['cached']['proto'][ex];else{var ey=BDFDB['ModuleUtils']['find'](ey=>ey['prototype']&&ew['every'](eA=>ey['prototype'][eA]!==undefined));if(ey){BDFDB['ModuleUtils']['cached']['proto'][ex]=ey;return ey;}else BDFDB['LogUtils']['warn'](ex+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};e['getWebModuleReq']=function(){if(!e['getWebModuleReq']['req']){const eB='BDFDB-WebModules';const eC=window['webpackJsonp']['push']([[],{[eB]:(eD,eE,eC)=>eD['exports']=eC},[[eB]]]);delete eC['m'][eB];delete eC['c'][eB];e['getWebModuleReq']['req']=eC;}return e['getWebModuleReq']['req'];};var eG={};eG['Patchtypes']=['before','instead','after'];eG['Patchmap']={'BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};eG['Patchfinder']={'Account':'accountinfo','App':'app','AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','EmojiPicker':'emojipicker','FriendRow':'friendsrow','Guild':'guildouter','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','PrivateChannelsList':'dmchannels','MemberCard':'guildsettingsmembercard','NameTag':'nametag','Note':'usernote','SearchResults':'searchresultswrap','TypingUsers':'typing','UserPopout':'userpopout','V2C_ContentColumn':'contentcolumn','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};eG['GlobalModules']={};try{eG['GlobalModules']['V2C_ContentColumn']=V2C_ContentColumn;}catch(eH){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ContentColumn\x22');}try{eG['GlobalModules']['V2C_List']=V2C_List;}catch(eI){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_List\x22');}try{eG['GlobalModules']['V2C_PluginCard']=V2C_PluginCard;}catch(eJ){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_PluginCard\x22');}try{eG['GlobalModules']['V2C_ThemeCard']=V2C_ThemeCard;}catch(eK){BDFDB['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ThemeCard\x22');}BDFDB['ModuleUtils']['patch']=function(eL,eM,eN,eO){if(!eL||!eM||!eN||!BDFDB['ObjectUtils']['is'](eO))return null;eO=BDFDB['ObjectUtils']['filter'](eO,eP=>eG['Patchtypes']['includes'](eP),!![]);if(BDFDB['ObjectUtils']['isEmpty'](eO))return;const eQ=typeof eL==='string'?eL:eL['name'];const eR=eQ['toLowerCase']();if(!eM['BDFDBpatch'])eM['BDFDBpatch']={};eN=[eN]['flat']()['filter'](eS=>eS);for(let eT of eN){if(!eM[eT])eM[eT]=c=>{};const eV=eM[eT];if(!eM['BDFDBpatch'][eT]){eM['BDFDBpatch'][eT]={};for(let eW of eG['Patchtypes'])eM['BDFDBpatch'][eT][eW]={};eM['BDFDBpatch'][eT]['originalMethod']=eV;eM[eT]=function(){const eX={'thisObject':this,'methodArguments':arguments,'originalMethod':eV,'originalMethodName':eT,'callOriginalMethod':c=>eX['returnValue']=eX['originalMethod']['apply'](eX['thisObject'],eX['methodArguments'])};if(window['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&eM['BDFDBpatch'][eT]){if(!BDFDB['ObjectUtils']['isEmpty'](eM['BDFDBpatch'][eT]['before']))for(let eZ in BDFDB['ObjectUtils']['sort'](eM['BDFDBpatch'][eT]['before'])){BDFDB['TimeUtils']['suppress'](eM['BDFDBpatch'][eT]['before'][eZ],'\x22before\x22\x20callback\x20of\x20'+eT+'\x20in\x20'+(eM['constructor']?eM['constructor']['displayName']||eM['constructor']['name']:'module'),eM['BDFDBpatch'][eT]['before'][eZ]['pluginname'])(eX);}if(BDFDB['ObjectUtils']['isEmpty'](eM['BDFDBpatch'][eT]['instead']))BDFDB['TimeUtils']['suppress'](eX['callOriginalMethod'],'originalMethod\x20of\x20'+eT+'\x20in\x20'+(eM['constructor']?eM['constructor']['displayName']||eM['constructor']['name']:'module'))();else for(let f0 in BDFDB['ObjectUtils']['sort'](eM['BDFDBpatch'][eT]['instead'])){let f1=BDFDB['TimeUtils']['suppress'](eM['BDFDBpatch'][eT]['instead'][f0],'\x22instead\x22\x20callback\x20of\x20'+eT+'\x20in\x20'+(eM['constructor']?eM['constructor']['displayName']||eM['constructor']['name']:'module'),eM['BDFDBpatch'][eT]['instead'][f0]['pluginname'])(eX);if(f1!==undefined)eX['returnValue']=f1;}if(!BDFDB['ObjectUtils']['isEmpty'](eM['BDFDBpatch'][eT]['after']))for(let f2 in BDFDB['ObjectUtils']['sort'](eM['BDFDBpatch'][eT]['after'])){let f1=BDFDB['TimeUtils']['suppress'](eM['BDFDBpatch'][eT]['after'][f2],'\x22after\x22\x20callback\x20of\x20'+eT+'\x20in\x20'+(eM['constructor']?eM['constructor']['displayName']||eM['constructor']['name']:'module'),eM['BDFDBpatch'][eT]['after'][f2]['pluginname'])(eX);if(f1!==undefined)eX['returnValue']=f1;}}else BDFDB['TimeUtils']['suppress'](eX['callOriginalMethod'],'originalMethod\x20of\x20'+eT+'\x20in\x20'+(eM['constructor']?eM['constructor']['displayName']||eM['constructor']['name']:'module'))();return eT=='render'&&eX['returnValue']===undefined?null:eX['returnValue'];};}for(let f4 in eO)if(typeof eO[f4]=='function'){eM['BDFDBpatch'][eT][f4][eR]=eO[f4];eM['BDFDBpatch'][eT][f4][eR]['pluginname']=eQ;}}let f5=c=>{BDFDB['ModuleUtils']['unpatch'](eL,eM,eN);};if(eL&&typeof eL=='object'){if(!BDFDB['ArrayUtils']['is'](eL['patchCancels']))eL['patchCancels']=[];eL['patchCancels']['push'](f5);}return f5;};BDFDB['ModuleUtils']['unpatch']=function(f7,f8,f9){if(!f8&&!f9){if(BDFDB['ObjectUtils']['is'](f7)&&BDFDB['ArrayUtils']['is'](f7['patchCancels'])){for(let fa of f7['patchCancels'])fa();f7['patchCancels']=[];}}else{if(!BDFDB['ObjectUtils']['is'](f8)||!f8['BDFDBpatch'])return;const fb=!f7?null:(typeof f7==='string'?f7:f7['name'])['toLowerCase']();if(f9){for(let fc of[f9]['flat']()['filter'](fd=>fd))if(f8[fc]&&f8['BDFDBpatch'][fc])ff(fc,fb);}else for(let fe of f8['BDFDBpatch'])ff(fe,fb);}function ff(fg,fh){for(let fi of eG['Patchtypes']){if(fh)delete f8['BDFDBpatch'][fg][fi][fh];else delete f8['BDFDBpatch'][fg][fi];}var fj=!![];for(let fi of eG['Patchtypes'])if(!BDFDB['ObjectUtils']['isEmpty'](f8['BDFDBpatch'][fg][fi]))fj=![];if(fj){f8[fg]=f8['BDFDBpatch'][fg]['originalMethod'];delete f8['BDFDBpatch'][fg];if(BDFDB['ObjectUtils']['isEmpty'](f8['BDFDBpatch']))delete f8['BDFDBpatch'];}}};BDFDB['ModuleUtils']['forceAllUpdates']=function(fl,fm){if(BDFDB['ObjectUtils']['is'](fl)&&BDFDB['ObjectUtils']['is'](fl['patchedModules'])){const fn=document['querySelector'](BDFDB['dotCN']['app']);const fo=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fn){let fp=[],fq={};for(let fr in fl['patchedModules'])for(let fs in fl['patchedModules'][fr]){let ft=[fl['patchedModules'][fr][fs]]['flat']()['filter'](fu=>fu);if(ft['includes']('componentDidMount')||ft['includes']('componentDidUpdate')||ft['includes']('render')){fp['push'](fs);let fv=fs['split']('\x20_\x20_\x20')[0x0];if(!fq[fv])fq[fv]=[];fq[fv]['push'](fr);}}fm=[fm]['flat']()['filter'](fw=>fw);if(fm['length']){fm=fm['map'](fx=>fx&&eG['Patchmap'][fx]?eG['Patchmap'][fx]+'\x20_\x20_\x20'+fx:fx);fp=fp['filter'](fy=>fm['indexOf'](fy)>-0x1);}fp=BDFDB['ArrayUtils']['removeCopies'](fp);if(fp['length']){try{const fz=BDFDB['ReactUtils']['findOwner'](fn,{'name':fp,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![]});const fA=BDFDB['ReactUtils']['findOwner'](fn,{'name':fp,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![],'up':!![]});for(let fs in fz)for(let fC of fz[fs])e['forceInitiateProcess'](fl,fC,fs,fq[fs]);for(let fs in fA)for(let fC of fA[fs])e['forceInitiateProcess'](fl,fC,fs,fq[fs]);if(fo){const fF=BDFDB['ReactUtils']['findOwner'](fo,{'name':fp,'all':!![],'noCopies':!![],'group':!![],'unlimited':!![]});for(let fs in fF)for(let fC of fF[fs])e['forceInitiateProcess'](fl,fC,fs,fq[fs]);}}catch(fI){BDFDB['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+fI,fl['name']);}}}}};e['forceInitiateProcess']=function(fJ,fK,fL,fM){if(!fJ||!fK||!fL)return;let fN=[];for(let fO in fJ['patchedModules'])if(fJ['patchedModules'][fO][fL])fN['push'](fJ['patchedModules'][fO][fL]);fN=BDFDB['ArrayUtils']['removeCopies'](fN)['flat']()['filter'](fP=>fP);if(fN['includes']('componentDidMount'))e['initiateProcess'](fJ,fL,{'instance':fK,'methodname':'componentDidMount','patchtypes':fM});if(fN['includes']('render'))BDFDB['ReactUtils']['forceUpdate'](fK);else if(fN['includes']('componentDidUpdate'))e['initiateProcess'](fJ,fL,{'instance':fK,'methodname':'componentDidUpdate','patchtypes':fM});};e['initiateProcess']=function(fQ,fR,fS){if(BDFDB['ObjectUtils']['is'](fQ)&&!fQ['stopping']&&fS['instance']){let fT=fQ['name']=='$BDFDB';if(fQ['name']=='$BDFDB')fQ=Bc;fR=(fR['split']('\x20_\x20_\x20')[0x1]||fR)['replace'](/[^A-z0-9]|_/g,'');fR=fR['charAt'](0x0)['toUpperCase']()+fR['slice'](0x1);if(typeof fQ['process'+fR]=='function'){let fU=!fT&&fQ['process'+fR]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(fU){if(fS['methodname']=='render'){if(fS['returnvalue'])fQ['process'+fR](fS['instance'],null,fS['returnvalue'],[fS['methodname']]);}else{let fV=BDFDB['ReactUtils']['findDOMNode'](fS['instance']);if(fV)fQ['process'+fR](fS['instance'],fV,fS['returnvalue'],[fS['methodname']]);else BDFDB['TimeUtils']['timeout'](c=>{fV=BDFDB['ReactUtils']['findDOMNode'](fS['instance']);if(fV)fQ['process'+fR](fS['instance'],fV,fS['returnvalue'],[fS['methodname']]);});}}else{if(fS['methodname']=='render'){if(fS['returnvalue']||fS['patchtypes']['includes']('before'))fQ['process'+fR](fS);}else{fS['node']=BDFDB['ReactUtils']['findDOMNode'](fS['instance']);if(fS['node'])fQ['process'+fR](fS);else BDFDB['TimeUtils']['timeout'](c=>{fS['node']=BDFDB['ReactUtils']['findDOMNode'](fS['instance']);if(fS['node'])fQ['process'+fR](fS);});}}}}};e['patchPlugin']=function(fY){if(!BDFDB['ObjectUtils']['is'](fY)||!BDFDB['ObjectUtils']['is'](fY['patchedModules']))return;BDFDB['ModuleUtils']['unpatch'](fY);for(let fZ in fY['patchedModules'])for(let g0 in fY['patchedModules'][fZ]){if(eG['GlobalModules'][g0]&&typeof eG['GlobalModules'][g0]=='function')g4(eG['GlobalModules'][g0],g0,fZ);else{var g1=eG['Patchmap'][g0];var g2=eG['Patchfinder'][g0['split']('\x20_\x20_\x20')[0x1]||g0];var g3=g1?g1+'\x20_\x20_\x20'+g0:g0;if(g1){fY['patchedModules'][fZ][g3]=fY['patchedModules'][fZ][g0];delete fY['patchedModules'][fZ][g0];}if(!g2)g4(BDFDB['ModuleUtils']['findByName'](g3['split']('\x20_\x20_\x20')[0x0]),g3,fZ);else if(xa[g2])gb(g2,g3,fZ);}}function g4(g5,g0,fZ){if(g5){var g8=g0['split']('\x20_\x20_\x20')[0x0];g5=g5['_reactInternalFiber']&&g5['_reactInternalFiber']['type']?g5['_reactInternalFiber']['type']:g5;g5=g5['displayName']==g8||g5['name']==g8?g5:BDFDB['ReactUtils']['findOwner'](g5,{'name':g8,'up':!![]});if(g5){g5=g5['_reactInternalFiber']&&g5['_reactInternalFiber']['type']?g5['_reactInternalFiber']['type']:g5;let g9={};g9[fZ]=ga=>{if(window['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])e['initiateProcess'](fY,g0,{'instance':ga['thisObject'],'returnvalue':ga['returnValue'],'methodname':ga['originalMethodName'],'patchtypes':[fZ]});};BDFDB['ModuleUtils']['patch'](fY,g5['prototype'],fY['patchedModules'][fZ][g0],g9);}}}function gb(g2,g0,fZ){const gf=document['querySelector'](BDFDB['dotCN']['app']),gg=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);var gh=![];if(gf){var gi=BDFDB['ReactUtils']['findOwner'](gf,{'name':g0,'unlimited':!![]})||BDFDB['ReactUtils']['findOwner'](gf,{'name':g0,'unlimited':!![],'up':!![]});if(gi){gh=!![];g4(gi,g0,fZ);}}if(!gh&&gg){var gj=BDFDB['ReactUtils']['findOwner'](gg,{'name':g0,'unlimited':!![]});if(gj){gh=!![];g4(gj,g0,fZ);}}if(!gh){var gk=![],gl=new MutationObserver(gm=>{gm['forEach'](gn=>{gn['addedNodes']['forEach'](go=>{if(gk||!go||!go['tagName'])return;var gp=null;if((gp=BDFDB['DOMUtils']['containsClass'](go,BDFDB['disCN'][g2])?go:go['querySelector'](BDFDB['dotCN'][g2]))!=null){var gq=BDFDB['ReactUtils']['getInstance'](gp);if(gr(gq,g0)){gk=!![];gl['disconnect']();g4(gq,g0,fZ);BDFDB['ModuleUtils']['forceAllUpdates'](fY,g0);}}});});});BDFDB['ObserverUtils']['connect'](fY,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gl,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gr(gs,gt){if(!gs)return![];gs=gs['_reactInternalFiber']&&gs['_reactInternalFiber']['type']?gs['_reactInternalFiber']['type']:gs;gs=gs['displayName']==gt||gs['name']==gt?gs:BDFDB['ReactUtils']['findOwner'](gs,{'name':gt,'up':!![]});return!!gs;}};var gu=['ChannelContextMenu','DeveloperContextMenu','GuildContextMenu','GuildRoleContextMenu','MessageContextMenu','NativeContextMenu','ScreenshareContextMenu','UserContextMenu','UserSettingsCogContextMenu'];var gv=['MessageOptionPopout'];var gw=['ApplicationContextMenu','GroupDMContextMenu'];var gx={};for(let gy of gw)gx[gy]={'query':[],'module':null};e['addContextListeners']=gz=>{if(!BDFDB['ObjectUtils']['is'](gz))return;for(let gA of gu)if(typeof gz['on'+gA]==='function')e['patchContextMenuPlugin'](gz,gA,BDFDB['ModuleUtils']['findByName'](gA));for(let gB of gv)if(typeof gz['on'+gB]==='function')e['patchPopoutPlugin'](gz,gB,BDFDB['ModuleUtils']['findByName'](gB));for(let gC of gw)if(typeof gz['on'+gC]==='function'){if(gx[gC]['module'])e['patchContextMenuPlugin'](gz,gC,gx[gC]['module']);else gx[gC]['query']['push'](gz);}};e['patchContextMenuPlugin']=(gD,gE,gF)=>{if(gF&&gF['prototype']){let gG=gD['on'+gE]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gG){BDFDB['ModuleUtils']['patch'](gD,gF['prototype'],'render',{'after':gH=>{let gI=gH['thisObject'],gJ=BDFDB['ReactUtils']['findDOMNode'](gH['thisObject']),gK=gH['returnValue'];if(gI&&gJ&&gK&&typeof gD['on'+gE]==='function')gD['on'+gE](gI,gJ,gK);}});}else{BDFDB['ModuleUtils']['patch'](gD,gF['prototype'],'render',{'after':gL=>{if(gL['thisObject']&&gL['returnValue']&&typeof gD['on'+gE]==='function')gD['on'+gE]({'instance':gL['thisObject'],'returnvalue':gL['returnValue'],'methodname':'render'});}});}}};e['patchPopoutPlugin']=(gM,gN,gO)=>{if(gO&&gO['prototype']){let gP=gM['on'+gN]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gP){BDFDB['ModuleUtils']['patch'](gM,gO['prototype'],'render',{'after':gQ=>{let gR=gQ['thisObject'],gS=BDFDB['ReactUtils']['findDOMNode'](gQ['thisObject']),gT=gQ['returnValue'];if(gR&&gS&&gT&&typeof gM['on'+gN]==='function'){gM['on'+gN](gR,gS,gT);if(!gR['BDFDBforceUpdateTimeout'])BDFDB['ReactUtils']['forceUpdate'](gR);}}});}else{BDFDB['ModuleUtils']['patch'](gM,gO['prototype'],'render',{'after':gU=>{if(gU['thisObject']&&gU['returnValue']&&typeof gM['on'+gN]==='function')gM['on'+gN]({'instance':gU['thisObject'],'returnvalue':gU['returnValue'],'methodname':'render'});}});}}};e['patchContextMenuLib']=(gV,gW)=>{if(gV&&gV['prototype']){BDFDB['ModuleUtils']['patch'](BDFDB,gV['prototype'],'componentDidMount',{'after':gX=>{if(!gX['thisObject']['BDFDBforceRenderTimeout']&&typeof gX['thisObject']['render']=='function')gX['thisObject']['render']();}});BDFDB['ModuleUtils']['patch'](BDFDB,gV['prototype'],'componentDidUpdate',{'after':gY=>{var gZ=BDFDB['ReactUtils']['findDOMNode'](gY['thisObject']);if(gZ){const h0=BDFDB['ReactUtils']['getValue'](gY,'thisObject._reactInternalFiber.stateNode.props.onHeightUpdate');const h1=BDFDB['DOMUtils']['getRects'](gZ),h2=BDFDB['DOMUtils']['getRects'](document['querySelector'](BDFDB['dotCN']['appmount']));if(h0&&h1['top']+h1['height']>h2['height'])h0();}}});BDFDB['ModuleUtils']['patch'](BDFDB,gV['prototype'],'render',{'after':h3=>{if(h3['thisObject']['props']['BDFDBcontextMenu']&&h3['thisObject']['props']['children']&&h3['returnValue']&&h3['returnValue']['props']){h3['returnValue']['props']['children']=h3['thisObject']['props']['children'];delete h3['thisObject']['props']['value'];delete h3['thisObject']['props']['children'];delete h3['thisObject']['props']['BDFDBcontextMenu'];}if(BDFDB['ReactUtils']['findDOMNode'](h3['thisObject'])){h3['thisObject']['BDFDBforceRenderTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete h3['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(gW){let h5=BDFDB['ReactUtils']['getValue'](h3,'thisObject._reactInternalFiber.child.type');if(h5&&h5['displayName']&&gx[h5['displayName']]&&!gx[h5['displayName']]['module']){gx[h5['displayName']]['module']=h5;e['patchContextMenuLib'](h5,![]);while(gx[h5['displayName']]['query']['length']){e['patchContextMenuPlugin'](gx[h5['displayName']]['query']['pop'](),h5['displayName'],h5);}}}}});}};e['patchPopoutLib']=(h6,h7)=>{if(h6&&h6['prototype']){BDFDB['ModuleUtils']['patch'](BDFDB,h6['prototype'],'componentDidMount',{'after':h8=>{if(!h8['thisObject']['BDFDBforceRenderTimeout']&&!h8['thisObject']['BDFDBforceUpdateTimeout']&&typeof h8['thisObject']['render']=='function')h8['thisObject']['render']();}});BDFDB['ModuleUtils']['patch'](BDFDB,h6['prototype'],'componentDidUpdate',{'after':h9=>{const ha=BDFDB['ReactUtils']['getValue'](h9,'thisObject._reactInternalFiber.return.return.return.stateNode.updateOffsets');if(ha)ha();h9['thisObject']['BDFDBforceUpdateTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete h9['thisObject']['BDFDBforceUpdateTimeout'];},0x3e8);}});BDFDB['ModuleUtils']['patch'](BDFDB,h6['prototype'],'render',{'after':hc=>{if(BDFDB['ReactUtils']['findDOMNode'](hc['thisObject'])){hc['thisObject']['BDFDBforceRenderTimeout']=!![];BDFDB['TimeUtils']['timeout'](c=>{delete hc['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hc['thisObject']['props']['message']&&!hc['thisObject']['props']['target']){const he=document['querySelector'](BDFDB['dotCN']['messages']);if(he)for(let hf of BDFDB['ReactUtils']['findOwner'](he,{'name':'Message','all':!![],'noCopies':!![],'unlimited':!![]})){if(hc['thisObject']['props']['message']['id']==hf['props']['message']['id']){target=BDFDB['ReactUtils']['findDOMNode'](hf);if(target)hc['thisObject']['props']['target']=target;break;}}}}});}};BDFDB['DiscordConstants']=BDFDB['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var hg={};hg['Channel']=BDFDB['ModuleUtils']['findByPrototypes']('getRecipientId','getTitleIcon','getGuildId');hg['Guild']=BDFDB['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');hg['Message']=BDFDB['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');hg['Timestamp']=BDFDB['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');hg['User']=BDFDB['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');BDFDB['DiscordObjects']=Object['assign']({},hg);var hh={};for(let hi of['child_process','electron','fs','path','process','request']){try{hh[hi]=require(hi);}catch(hj){}}BDFDB['LibraryRequires']=Object['assign']({},hh);var hk={};hk['AckUtils']=BDFDB['ModuleUtils']['findByProperties']('localAck','bulkAck');hk['APIUtils']=BDFDB['ModuleUtils']['findByProperties']('getAPIBaseURL');hk['AnimationUtils']=BDFDB['ModuleUtils']['findByProperties']('spring','decay');hk['BadgeUtils']=BDFDB['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');hk['CategoryCollapseStore']=BDFDB['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');hk['CategoryCollapseUtils']=BDFDB['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');hk['ChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getChannel','getChannels');hk['ColorUtils']=BDFDB['ModuleUtils']['findByProperties']('hex2int','hex2rgb');hk['ContextMenuUtils']=BDFDB['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');hk['CopyLinkUtils']=BDFDB['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');hk['CurrentUserStore']=BDFDB['ModuleUtils']['findByProperties']('getCurrentUser');hk['DirectMessageUtils']=BDFDB['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');hk['FriendUtils']=BDFDB['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');hk['FolderStore']=BDFDB['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');hk['FolderUtils']=BDFDB['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');hk['GuildBoostUtils']=BDFDB['ModuleUtils']['findByProperties']('getTierName','getUserLevel');hk['GuildChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');hk['GuildEmojiStore']=BDFDB['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');hk['GuildSettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');hk['GuildStore']=BDFDB['ModuleUtils']['findByProperties']('getGuild','getGuilds');hk['GuildUtils']=BDFDB['ModuleUtils']['findByProperties']('transitionToGuildSync');hk['HistoryUtils']=BDFDB['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;hk['IconUtils']=BDFDB['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');hk['InviteUtils']=BDFDB['ModuleUtils']['findByProperties']('acceptInvite','createInvite');hk['KeyCodeUtils']=Object['assign']({},BDFDB['ModuleUtils']['findByProperties']('toCombo','keyToCode'));hk['KeyCodeUtils']['getString']=hl=>{return hk['KeyCodeUtils']['toString']([hl]['flat']()['filter'](hm=>hm)['map'](hn=>[BDFDB['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],hn,BDFDB['DiscordConstants']['KeyboardEnvs']['BROWSER']]),!![]);};hk['KeyEvents']=BDFDB['ModuleUtils']['findByProperties']('aliases','code','codes');hk['LanguageStore']=BDFDB['ModuleUtils']['findByProperties']('getLanguages','Messages');hk['LastChannelStore']=BDFDB['ModuleUtils']['findByProperties']('getLastSelectedChannelId');hk['LastGuildStore']=BDFDB['ModuleUtils']['findByProperties']('getLastSelectedGuildId');hk['LoginUtils']=BDFDB['ModuleUtils']['findByProperties']('login','logout');hk['MemberStore']=BDFDB['ModuleUtils']['findByProperties']('getMember','getMembers');hk['MentionUtils']=BDFDB['ModuleUtils']['findByProperties']('getMentionCount','getMentionCounts');hk['MessageCreationUtils']=BDFDB['ModuleUtils']['findByProperties']('parse','isMentioned');hk['MessagePinUtils']=BDFDB['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');hk['MessageStore']=BDFDB['ModuleUtils']['findByProperties']('getMessage','getMessages');hk['MessageUtils']=BDFDB['ModuleUtils']['findByProperties']('receiveMessage','editMessage');hk['ModalUtils']=BDFDB['ModuleUtils']['findByProperties']('openModal','registerModalDispatch');hk['MutedUtils']=BDFDB['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');hk['NoteStore']=BDFDB['ModuleUtils']['findByProperties']('getNotes','getNote');hk['NotificationSettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');hk['NotificationSettingsStore']=BDFDB['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');hk['PlatformUtils']=BDFDB['ModuleUtils']['findByProperties']('isWindows','isLinux');hk['PermissionUtils']=BDFDB['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');hk['PermissionRoleUtils']=BDFDB['ModuleUtils']['findByProperties']('getHighestRole','can');hk['ReactionUtils']=BDFDB['ModuleUtils']['findByProperties']('addReaction','removeReaction');hk['SearchPageUtils']=BDFDB['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');hk['SelectChannelUtils']=BDFDB['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');hk['SettingsUtils']=BDFDB['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');hk['SoundUtils']=BDFDB['ModuleUtils']['findByProperties']('playSound','createSound');hk['SpellCheckUtils']=BDFDB['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');hk['StatusMetaUtils']=BDFDB['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');hk['StreamUtils']=BDFDB['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');hk['UnreadGuildUtils']=BDFDB['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');hk['UnreadChannelUtils']=BDFDB['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');hk['UploadUtils']=BDFDB['ModuleUtils']['findByProperties']('upload','instantBatchUpload');hk['UserStore']=BDFDB['ModuleUtils']['findByProperties']('getUser','getUsers');hk['VoiceUtils']=BDFDB['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');hk['ZoomUtils']=BDFDB['ModuleUtils']['findByProperties']('setZoom','setFontSize');BDFDB['LibraryModules']=Object['assign']({},hk);hk['React']=BDFDB['ModuleUtils']['findByProperties']('createElement','cloneElement');hk['ReactDOM']=BDFDB['ModuleUtils']['findByProperties']('render','findDOMNode');BDFDB['ReactUtils']=Object['assign']({},hk['React'],hk['ReactDOM']);BDFDB['ReactUtils']['createElement']=function(ho,hp){if(ho&&ho['defaultProps'])for(let hq in ho['defaultProps'])if(hp[hq]==null)hp[hq]=ho['defaultProps'][hq];try{return hk['React']['createElement'](ho||'div',hp||{})||null;}catch(hr){BDFDB['LogUtils']['error']('Fatal\x20Error:\x20Could\x20not\x20create\x20react\x20element!\x20'+hr);}return null;};BDFDB['ReactUtils']['elementToReact']=function(hs){if(BDFDB['ReactUtils']['isValidElement'](hs))return hs;else if(!Node['prototype']['isPrototypeOf'](hs))return null;else if(hs['nodeType']==Node['TEXT_NODE'])return hs['nodeValue'];let ht={},hu={};for(let hv of hs['attributes'])ht[hv['name']]=hv['value'];if(hs['attributes']['style'])ht['style']=BDFDB['ObjectUtils']['filter'](hs['style'],hw=>hs['style'][hw]&&isNaN(parseInt(hw)),!![]);ht['children']=[];if(hs['style']&&hs['style']['cssText'])for(let hx of hs['style']['cssText']['split'](';'))if(hx['endsWith']('!important')){let hy=hx['split'](':')[0x0];let hz=hy['replace'](/-([a-z]?)/g,(hA,hB)=>hB['toUpperCase']());if(ht['style'][hz]!=null)hu[hy]=ht['style'][hz];}if(Object['keys'](hu)['length'])ht['ref']=hC=>{let hD=BDFDB['ReactUtils']['findDOMNode'](hC);if(hD)for(let hE in hu)hD['style']['setProperty'](hE,hu[hE],'important');};for(let hF of hs['childNodes'])ht['children']['push'](BDFDB['ReactUtils']['elementToReact'](hF));return BDFDB['ReactUtils']['createElement'](hs['tagName'],ht);};BDFDB['ReactUtils']['findDOMNode']=function(hG){if(Node['prototype']['isPrototypeOf'](hG))return hG;if(!hG||!hG['updater']||typeof hG['updater']['isMounted']!=='function'||!hG['updater']['isMounted'](hG))return null;var hH=hk['ReactDOM']['findDOMNode'](hG)||BDFDB['ReactUtils']['getValue'](hG,'child.stateNode');return Node['prototype']['isPrototypeOf'](hH)?hH:null;};BDFDB['ReactUtils']['childrenToArray']=function(hI){if(hI&&hI['props']&&hI['props']['children']&&!BDFDB['ArrayUtils']['is'](hI['props']['children'])){var hJ=hI['props']['children'];hI['props']['children']=[];hI['props']['children']['push'](hJ);}return hI['props']['children'];};BDFDB['ReactUtils']['findChildren']=function(hK,hL){if(!hK||!BDFDB['ObjectUtils']['is'](hL)||!hL['name']&&!hL['key']&&!hL['props'])return[null,-0x1];var hM=Node['prototype']['isPrototypeOf'](hK)?BDFDB['ReactUtils']['getInstance'](hK):hK;if(!BDFDB['ObjectUtils']['is'](hM)&&!BDFDB['ArrayUtils']['is'](hM))return[null,-0x1];hL['name']=hL['name']&&[hL['name']]['flat']()['filter'](hN=>hN);hL['key']=hL['key']&&[hL['key']]['flat']()['filter'](hO=>hO);hL['props']=hL['props']&&[hL['props']]['flat']()['filter'](hP=>hP);var hQ=firstarray=hM;while(!BDFDB['ArrayUtils']['is'](firstarray)&&firstarray['props']&&firstarray['props']['children'])firstarray=firstarray['props']['children'];if(!BDFDB['ArrayUtils']['is'](firstarray)){if(hQ&&hQ['props']){hQ['props']['children']=[hQ['props']['children']];firstarray=hQ['props']['children'];}else firstarray=[];}return hR(hM);function hR(hS){var hT=[firstarray,-0x1];if(!hS)return hT;if(!BDFDB['ArrayUtils']['is'](hS)){if(hX(hS))hT=hV(hS);else if(hS['props']&&hS['props']['children']){hQ=hS;hT=hR(hS['props']['children']);}}else{for(let hU=0x0;hT[0x1]==-0x1&&hU(hM['type']['displayName']||hM['type']['name'])===i0)||hL['key']&&hL['key']['some'](i1=>hM['key']==i1)||hZ&&hL['props']&&hL['props']['every'](i2=>BDFDB['ArrayUtils']['is'](i2)?BDFDB['ArrayUtils']['is'](i2[0x1])?i2[0x1]['some'](i3=>i4(hZ,i2[0x0],i3)):i4(hZ,i2[0x0],i2[0x1]):hZ[i2]!==undefined);}function i4(i5,i6,i7){return i6!=null&&i5[i6]!=null&&i7!=null&&(i6=='className'?('\x20'+i5[i6]+'\x20')['indexOf']('\x20'+i7+'\x20')>-0x1:BDFDB['equals'](i5[i6],i7));}};BDFDB['ReactUtils']['findOwner']=function(i8,i9){if(!BDFDB['ObjectUtils']['is'](i9))return null;if(!i8||!i9['name']&&!i9['key']&&!i9['props'])return i9['all']?i9['group']?{}:[]:null;var ia=Node['prototype']['isPrototypeOf'](i8)?BDFDB['ReactUtils']['getInstance'](i8):i8;if(!BDFDB['ObjectUtils']['is'](ia))return i9['all']?i9['group']?{}:[]:null;i9['name']=i9['name']&&[i9['name']]['flat']()['filter'](ib=>ib);i9['key']=i9['key']&&[i9['key']]['flat']()['filter'](ic=>ic);i9['props']=i9['props']&&[i9['props']]['flat']()['filter'](id=>id);var ie=-0x1;var ig=performance['now']();var ih=i9['unlimited']?0x3b9ac9ff:i9['depth']===undefined?0x1e:i9['depth'];var ii=i9['unlimited']?0x3b9ac9ff:i9['time']===undefined?0x96:i9['time'];var ij=i9['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var ik=i9['group']?{}:[];var il=ip(ia);if(i9['all']){for(let im in ik){if(i9['group'])for(let io in ik[im])delete ik[im][io]['BDFDBreactSearch'];else delete ik[im]['BDFDBreactSearch'];}return ik;}else return il;function ip(ia){ie++;var ir=undefined;if(ia&&!Node['prototype']['isPrototypeOf'](ia)&&!BDFDB['ReactUtils']['getInstance'](ia)&&ie(ia['type']['displayName']||ia['type']['name'])===it['split']('\x20_\x20_\x20')[0x0])||i9['key']&&i9['key']['some'](iu=>ia['key']==iu)||is&&i9['props']&&i9['props']['every'](iv=>BDFDB['ArrayUtils']['is'](iv)?BDFDB['ArrayUtils']['is'](iv[0x1])?iv[0x1]['some'](iw=>BDFDB['equals'](is[iv[0x0]],iw)):BDFDB['equals'](is[iv[0x0]],iv[0x1]):is[iv]!==undefined))){if(i9['all']===undefined||!i9['all'])ir=ia['stateNode'];else if(i9['all']){if(i9['noCopies']===undefined||!i9['noCopies']||i9['noCopies']&&!ia['stateNode']['BDFDBreactSearch']){ia['stateNode']['BDFDBreactSearch']=!![];if(i9['group']){if(i9['name']&&ia['type']&&(ia['type']['displayName']||ia['type']['name'])){var ix='Default';for(let iy of i9['name'])if(ia['type']['displayName']===iy['split']('\x20_\x20_\x20')[0x0]||ia['type']['name']===iy['split']('\x20_\x20_\x20')[0x0]){ix=iy;break;}if(typeof ik[ix]=='undefined')ik[ix]=[];ik[ix]['push'](ia['stateNode']);}}else ik['push'](ia['stateNode']);}}}if(ir===undefined){let iz=Object['getOwnPropertyNames'](ia);for(let iA=0x0;ir===undefined&&iAiF);iD['key']=iD['key']&&[iD['key']]['flat']()['filter'](iG=>iG);var iH=-0x1;var iI=performance['now']();var iJ=iD['unlimited']?0x3b9ac9ff:iD['depth']===undefined?0x1e:iD['depth'];var iK=iD['unlimited']?0x3b9ac9ff:iD['time']===undefined?0x96:iD['time'];var iL=iD['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return iM(iE);function iM(iE){iH++;var iO=undefined;if(iE&&!Node['prototype']['isPrototypeOf'](iE)&&!BDFDB['ReactUtils']['getInstance'](iE)&&iH(iE['type']['displayName']||iE['type']['name'])===iP['split']('\x20_\x20_\x20')[0x0])||iD['key']&&iD['key']['some'](iQ=>iE['key']==iQ)))iO=iE['memoizedProps'];if(iO===undefined){let iR=Object['getOwnPropertyNames'](iE);for(let iS=0x0;iO===undefined&&iSjh))if(jg['updater']&&typeof jg['updater']['isMounted']=='function'&&jg['updater']['isMounted'](jg))jg['forceUpdate']();};BDFDB['ReactUtils']['getInstance']=function(ji){if(!BDFDB['ObjectUtils']['is'](ji))return null;return ji[Object['keys'](ji)['find'](jj=>jj['startsWith']('__reactInternalInstance'))];};BDFDB['ReactUtils']['getValue']=function(jk,jl){if(!jk||!jl)return null;var jm=Node['prototype']['isPrototypeOf'](jk)?BDFDB['ReactUtils']['getInstance'](jk):jk;if(!BDFDB['ObjectUtils']['is'](jm))return null;var jn=jm,jo=jl['split']('.')['filter'](jp=>jp);for(value of jo){if(!jn)return null;jn=jn[value];}return jn;};e['setDefaultProps']=function(jq,jr){if(BDFDB['ObjectUtils']['is'](jq))jq['defaultProps']=Object['assign']({},jq['defaultProps'],jr);};BDFDB['equals']=function(js,jt,ju){var jv=-0x1;if(ju===undefined||typeof ju!=='boolean')ju=![];return jw(js,jt);function jw(jx,jy){jv++;var jz=!![];if(jv>0x3e8)jz=null;else{if(typeof jx!==typeof jy)jz=![];else if(typeof jx==='undefined')jz=!![];else if(typeof jx==='symbol')jz=!![];else if(typeof jx==='boolean')jz=jx==jy;else if(typeof jx==='string')jz=jx==jy;else if(typeof jx==='number'){if(isNaN(jx)||isNaN(jy))jz=isNaN(jx)==isNaN(jy);else jz=jx==jy;}else if(!jx&&!jy)jz=!![];else if(!jx||!jy)jz=![];else if(typeof jx==='function'||typeof jx==='object'){var jA=Object['getOwnPropertyNames'](jx);var jB=Object['getOwnPropertyNames'](jy);if(jA['length']!==jB['length'])jz=![];else for(let jC=0x0;jz===!![]&&jC0x0))kc['push'](kd);}return kc;};BDFDB['GuildUtils']['getPinged']=function(kf){var kg=[];for(let kh of kf===undefined||!BDFDB['ArrayUtils']['is'](kf)?BDFDB['GuildUtils']['getAll']():kf){if(!kh)return null;let ki=Node['prototype']['isPrototypeOf'](kh)?BDFDB['GuildUtils']['getId'](kh):typeof kh=='object'?kh['id']:kh;ki=typeof ki=='number'?ki['toFixed']():ki;if(ki&&hk['MentionUtils']['getMentionCount'](ki)>0x0)kg['push'](kh);}return kg;};BDFDB['GuildUtils']['getMuted']=function(kj){var kk=[];for(let kl of kj===undefined||!BDFDB['ArrayUtils']['is'](kj)?BDFDB['GuildUtils']['getAll']():kj){if(!kl)return null;let km=Node['prototype']['isPrototypeOf'](kl)?BDFDB['GuildUtils']['getId'](kl):typeof kl=='object'?kl['id']:kl;km=typeof km=='number'?km['toFixed']():km;if(km&&hk['MutedUtils']['isGuildOrCategoryOrChannelMuted'](km))kk['push'](kl);}return kk;};BDFDB['GuildUtils']['getSelected']=function(){var kn=hk['GuildStore']['getGuild'](hk['LastGuildStore']['getGuildId']());if(kn)return BDFDB['GuildUtils']['getData'](kn['id'])||Object['assign'](new kn['constructor'](kn),{'div':null,'instance':null});else return null;};BDFDB['GuildUtils']['createCopy']=function(ko,kp={'pill':![],'hover':![],'click':![],'menu':![],'size':null}){let kq=typeof ko=='object'?ko['id']:ko;let kr=kq?hk['GuildStore']['getGuild'](kq):null;if(kr){let ks=hk['LastGuildStore']['getGuildId']()==kr['id'];let kt=hk['UnreadGuildUtils']['hasUnread'](kr['id']);let ku=BDFDB['DOMUtils']['create']('');let kv=ku['querySelector'](BDFDB['dotCN']['guildcontainer']);let kw=ku['querySelector'](BDFDB['dotCN']['guildpillitem']);BDFDB['DOMUtils']['toggle'](kw['parentElement'],kp['pill']);if(kp['pill']){kw['style']['setProperty']('opacity',ks?0x1:kt?0.7:0x0);kw['style']['setProperty']('height',ks?'40px':'8px');kw['style']['setProperty']('transform','translate3d(0px,\x200px,\x200px)');BDFDB['DOMUtils']['toggleClass'](ku,BDFDB['disCN']['_bdguildselected'],ks);BDFDB['DOMUtils']['toggleClass'](ku,BDFDB['disCN']['_bdguildunread'],kt);BDFDB['DOMUtils']['toggleClass'](kw,BDFDB['disCN']['_bdguildunread'],kt);}if(kp['hover']){let kx=ku['querySelector'](BDFDB['dotCN']['guildiconwrapper']);let ky=kw['style']['getPropertyValue']('opacity')!=0x0;let kz=new hk['AnimationUtils']['Value'](0x0);kz['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x32,0x1e]})['addListener'](kA=>{kv['style']['setProperty']('border-radius',kA['value']+'%');});let kB=new hk['AnimationUtils']['Value'](0x0);kB['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x8,0x14]})['addListener'](kC=>{kw['style']['setProperty']('height',kC['value']+'px');});let kD=new hk['AnimationUtils']['Value'](0x0);kD['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x0,0.7]})['addListener'](kE=>{kw['style']['setProperty']('opacity',''+kE['value']);});let kF=kG=>{hk['AnimationUtils']['parallel']([hk['AnimationUtils']['timing'](kz,{'toValue':kG,'duration':0xc8}),hk['AnimationUtils']['spring'](kB,{'toValue':kG,'friction':0x5})])['start']();};let kH=kI=>{hk['AnimationUtils']['parallel']([hk['AnimationUtils']['timing'](kD,{'toValue':kI,'duration':0xc8})])['start']();};kv['addEventListener']('mouseenter',c=>{ky=kw['style']['getPropertyValue']('opacity')!=0x0;if(hk['LastGuildStore']['getGuildId']()!=kr['id']){kF(0x1);if(!ky)kH(0x1);}});kv['addEventListener']('mouseleave',c=>{if(hk['LastGuildStore']['getGuildId']()!=kr['id']){kF(0x0);if(!ky)kH(0x0);}});}if(kp['click'])kv['addEventListener']('click',kL=>{BDFDB['ListenerUtils']['stopEvent'](kL);hk['GuildUtils']['transitionToGuildSync'](kr['id']);if(typeof kp['click']=='function')kp['click']();});if(kp['menu'])kv['addEventListener']('contextmenu',kM=>{BDFDB['GuildUtils']['openMenu'](kr['id'],kM);if(typeof kp['menu']=='function')kp['menu']();});if(kp['size']){ku['style']['setProperty']('margin','0','important');ku['style']['setProperty']('width',kp['size']+'px','important');ku['style']['setProperty']('height',kp['size']+'px','important');}return ku;}else return null;};BDFDB['GuildUtils']['openMenu']=function(kN,kO=BDFDB['mousePosition']){if(!kN)return;let kP=Node['prototype']['isPrototypeOf'](kN)?BDFDB['GuildUtils']['getId'](kN):typeof kN=='object'?kN['id']:kN;let kQ=hk['GuildStore']['getGuild'](kP);if(kQ)hk['ContextMenuUtils']['openContextMenu'](kO,function(kO){return BDFDB['ReactUtils']['createElement'](BDFDB['ModuleUtils']['findByName']('GuildContextMenu'),Object['assign']({},kO,{'type':BDFDB['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':kQ,'badge':hk['MentionUtils']['getMentionCount'](kQ['id']),'link':BDFDB['DiscordConstants']['Routes']['CHANNEL'](kQ['id'],hk['LastChannelStore']['getChannelId'](kQ['id'])),'selected':kQ['id']==hk['LastGuildStore']['getGuildId']()}));});};BDFDB['GuildUtils']['markAsRead']=function(kS){if(!kS)return;var kT=[];for(let kU of BDFDB['ArrayUtils']['is'](kS)?kS:typeof kS=='string'||typeof kS=='number'?Array['of'](kS):Array['from'](kS)){let kV=Node['prototype']['isPrototypeOf'](kU)?BDFDB['GuildUtils']['getId'](kU):kU&&typeof kU=='object'?kU['id']:kU;let kW=kV&&hk['GuildChannelStore']['getChannels'](kV);if(kW)for(let kX in kW)if(BDFDB['ArrayUtils']['is'](kW[kX]))for(let kY of kW[kX])kT['push'](kY['channel']['id']);}if(kT['length'])hk['AckUtils']['bulkAck'](kT);};BDFDB['FolderUtils']={};BDFDB['FolderUtils']['getId']=function(kZ){if(!Node['prototype']['isPrototypeOf'](kZ)||!BDFDB['ReactUtils']['getInstance'](kZ))return;kZ=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildfolderwrapper'],kZ);if(!kZ)return;return BDFDB['ReactUtils']['findValue'](kZ,'folderId',{'up':!![]});};BDFDB['FolderUtils']['getDiv']=function(l0){if(!l0)return null;let l1=BDFDB['FolderUtils']['getData'](l0);return l1?l1['div']:null;};BDFDB['FolderUtils']['getData']=function(l2){if(!l2)return null;let l3=Node['prototype']['isPrototypeOf'](l2)?BDFDB['FolderUtils']['getId'](l2):typeof l2=='object'?l2['id']:l2;l3=typeof l3=='number'?l3['toFixed']():l3;for(let l4 of BDFDB['FolderUtils']['getAll']())if(l4&&l4['folderId']==l3)return l4;return null;};BDFDB['FolderUtils']['getAll']=function(){var l5=[];for(let l6 of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['guildswrapper']),{'name':'GuildFolder','all':!![],'noCopies':!![],'unlimited':!![]})){if(l6['props']&&l6['props']['folderId'])l5['push'](Object['assign']({},l6['props'],{'div':BDFDB['ReactUtils']['findDOMNode'](l6),'instance':l6}));}return l5;};BDFDB['ChannelUtils']={};BDFDB['ChannelUtils']['getId']=function(l7){if(!Node['prototype']['isPrototypeOf'](l7)||!BDFDB['ReactUtils']['getInstance'](l7))return;l7=BDFDB['DOMUtils']['getParent'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],l7);if(!l7)return;var l8=BDFDB['ReactUtils']['findValue'](l7,'channel');return l8?l8['id']['toString']():null;};BDFDB['ChannelUtils']['getDiv']=function(l9){if(!l9)return null;let la=BDFDB['ChannelUtils']['getData'](l9);return la?la['div']:null;};BDFDB['ChannelUtils']['getData']=function(lb){if(!lb)return null;let lc=Node['prototype']['isPrototypeOf'](lb)?BDFDB['ChannelUtils']['getId'](lb):typeof lb=='object'?lb['id']:lb;lc=typeof lc=='number'?lc['toFixed']():lc;for(let ld of BDFDB['ChannelUtils']['getAll']())if(ld&&ld['id']==lc)return ld;return null;};BDFDB['ChannelUtils']['getAll']=function(){var le=[];for(let lf of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['channels']),{'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'unlimited':!![]}))if(lf['props']&&!lf['props']['ispin']&&lf['props']['channel']&&lf['_reactInternalFiber']['return']){var lg=BDFDB['ReactUtils']['findDOMNode'](lf);lg=lg&&BDFDB['DOMUtils']['containsClass'](lg['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?lg['parentElement']:lg;le['push'](Object['assign'](new lf['props']['channel']['constructor'](lf['props']['channel']),{'div':lg,'instance':lf}));}return le;};BDFDB['ChannelUtils']['getSelected']=function(){var lh=hk['ChannelStore']['getChannel'](hk['LastChannelStore']['getChannelId']());if(lh)return BDFDB['ChannelUtils']['getData'](lh['id'])||Object['assign'](new lh['constructor'](lh),{'div':null,'instance':null});else return null;};BDFDB['ChannelUtils']['openMenu']=function(li,lj=BDFDB['mousePosition']){if(!li)return;let lk=Node['prototype']['isPrototypeOf'](li)?BDFDB['ChannelUtils']['getId'](li):typeof li=='object'?li['id']:li;let ll=hk['ChannelStore']['getChannel'](lk);if(ll){let lm=null;for(let ln in BDFDB['DiscordConstants']['ChannelTypes'])if(BDFDB['DiscordConstants']['ChannelTypes'][ln]==ll['type']){lm=BDFDB['DiscordConstants']['ContextMenuTypes'][(ln=='GUILD_CATEGORY'?'CHANNEL_':'CHANNEL_LIST_')+ln['replace']('GUILD_','')];break;}if(lm)hk['ContextMenuUtils']['openContextMenu'](lj,function(lj){return BDFDB['ReactUtils']['createElement'](BDFDB['ModuleUtils']['findByName']('ChannelContextMenu'),Object['assign']({},lj,{'type':lm,'channel':ll,'guild':hk['GuildStore']['getGuild'](ll['guild_id']),'selected':ll['id']==hk['LastChannelStore']['getChannelId']()}));});}};BDFDB['ChannelUtils']['markAsRead']=function(lp){if(!lp)return;var lq=[];for(let lr of lp=BDFDB['ArrayUtils']['is'](lp)?lp:typeof lp=='string'||typeof lp=='number'?Array['of'](lp):Array['from'](lp)){let ls=Node['prototype']['isPrototypeOf'](lr)?BDFDB['ChannelUtils']['getId'](lr):lr&&typeof lr=='object'?lr['id']:lr;if(ls)lq['push'](ls);}if(lq['length'])hk['AckUtils']['bulkAck'](lq);};BDFDB['DMUtils']={};BDFDB['DMUtils']['getIcon']=function(lt){var lu=hk['ChannelStore']['getChannel'](lt=typeof lt=='number'?lt['toFixed']():lt);if(!lu)return null;if(!lu['icon'])return lu['type']==0x1?BDFDB['UserUtils']['getAvatar'](lu['recipients'][0x0]):lu['type']==0x3?'https://discordapp.com/assets/f046e2247d730629309457e902d5c5b3.svg':null;return hk['IconUtils']['getChannelIconURL'](lu)['split']('?')[0x0];};BDFDB['DMUtils']['getId']=function(lv){if(!Node['prototype']['isPrototypeOf'](lv)||!BDFDB['ReactUtils']['getInstance'](lv))return;let lw=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],lv);if(!lw)return;var lx=lw['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var ly=lx&&lx['href']?lx['href']['split']('/')['slice'](-0x1)[0x0]:null;return ly&&!isNaN(parseInt(ly))?ly['toString']():null;};BDFDB['DMUtils']['getDiv']=function(lz){if(!lz)return null;if(Node['prototype']['isPrototypeOf'](lz)){var lA=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],lz);return lA?lA['parentElement']:lA;}else{let lB=typeof lz=='object'?lz['id']:lz;if(lB){var lA=BDFDB['DOMUtils']['getParent'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['dmpill']+'\x20+\x20*\x20'+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+lB+'\x22]'));return lA&&BDFDB?lA['parentElement']:lA;}}return null;};BDFDB['DMUtils']['getData']=function(lD){if(!lD)return null;let lE=Node['prototype']['isPrototypeOf'](lD)?BDFDB['BDFDB']['DMUtils']['getId'](lD):typeof lD=='object'?lD['id']:lD;lE=typeof lE=='number'?lE['toFixed']():lE;for(let lF of BDFDB['DMUtils']['getAll']())if(lF&&lF['id']==lE)return lF;return null;};BDFDB['DMUtils']['getAll']=function(){var lG=[];for(let lH of BDFDB['ReactUtils']['findOwner'](document['querySelector'](BDFDB['dotCN']['guilds']),{'name':'DirectMessage','all':!![],'noCopies':!![],'unlimited':!![]})){if(lH['props']&&lH['props']['channel'])lG['push'](Object['assign'](new lH['props']['channel']['constructor'](lH['props']['channel']),{'div':BDFDB['ReactUtils']['findDOMNode'](lH),'instance':lH}));}return lG;};BDFDB['DMUtils']['markAsRead']=function(lI){if(!lI)return;var lJ=[];for(let lK of lI=BDFDB['ArrayUtils']['is'](lI)?lI:typeof lI=='string'||typeof lI=='number'?Array['of'](lI):Array['from'](lI)){let lL=Node['prototype']['isPrototypeOf'](lK)?BDFDB['BDFDB']['DMUtils']['getId'](lK):lK&&typeof lK=='object'?lK['id']:lK;if(lL)lJ['push'](lL);}for(let lM in lJ)BDFDB['TimeUtils']['timeout'](c=>{hk['AckUtils']['ack'](lJ[lM]);},lM*0x3e8);};BDFDB['DataUtils']={};BDFDB['DataUtils']['cached']={};BDFDB['DataUtils']['save']=function(lO,lP,lQ,lR){var lS,lT;if(!BDFDB['BDUtils']['isBDv2']()){lT=typeof lP==='string'?lP:lP['name'];lS=hh['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),lT+'.config.json');}else{lT=typeof lP==='string'?lP['toLowerCase']():null;var lU=lT?BDFDB['Plugins'][lT]?BDFDB['Plugins'][lT]['contentPath']:null:lP['contentPath'];if(!lU)return;lS=hh['path']['join'](lU,'settings.json');}var lV=hh['fs']['existsSync'](lS);var lW=!lV?{}:typeof BDFDB['DataUtils']['cached'][lT]!=='undefined'?BDFDB['DataUtils']['cached'][lT]:e['readConfig'](lS);if(lR===undefined)lW[lQ]=BDFDB['ObjectUtils']['is'](lO)?BDFDB['ObjectUtils']['sort'](lO):lO;else{if(!BDFDB['ObjectUtils']['is'](lW[lQ]))lW[lQ]={};lW[lQ][lR]=BDFDB['ObjectUtils']['is'](lO)?BDFDB['ObjectUtils']['sort'](lO):lO;}if(BDFDB['ObjectUtils']['isEmpty'](lW[lQ]))delete lW[lQ];if(BDFDB['ObjectUtils']['isEmpty'](lW)){delete BDFDB['DataUtils']['cached'][lT];if(lV)hh['fs']['unlinkSync'](lS);}else{lW=BDFDB['ObjectUtils']['sort'](lW);BDFDB['DataUtils']['cached'][lT]=BDFDB['ObjectUtils']['deepAssign']({},lW);hh['fs']['writeFileSync'](lS,JSON['stringify'](lW,null,'\x09'));}};BDFDB['DataUtils']['load']=function(lX,lY,lZ){var m0,m1;if(!BDFDB['BDUtils']['isBDv2']()){m1=typeof lX==='string'?lX:lX['name'];m0=hh['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),m1+'.config.json');}else{m1=typeof lX==='string'?lX['toLowerCase']():null;var m2=m1?BDFDB['Plugins'][m1]?BDFDB['Plugins'][m1]['contentPath']:null:lX['contentPath'];if(!m2)return{};m0=hh['path']['join'](m2,'settings.json');}if(!hh['fs']['existsSync'](m0)){delete BDFDB['DataUtils']['cached'][m1];return{};}var m3=typeof BDFDB['DataUtils']['cached'][m1]!=='undefined'&&typeof BDFDB['DataUtils']['cached'][m1][lY]!=='undefined'?BDFDB['DataUtils']['cached'][m1]:e['readConfig'](m0);BDFDB['DataUtils']['cached'][m1]=BDFDB['ObjectUtils']['deepAssign']({},m3);let m4=BDFDB['ObjectUtils']['deepAssign']({},m3&&typeof m3[lY]!=='undefined'?m3[lY]:{});if(lZ===undefined)return m4;else return m4[lZ]===undefined?null:m4[lZ];};BDFDB['DataUtils']['remove']=function(m5,m6,m7){var m8,m9;if(!BDFDB['BDUtils']['isBDv2']()){m9=typeof m5==='string'?m5:m5['name'];m8=hh['path']['join'](BDFDB['BDUtils']['getPluginsFolder'](),m9+'.config.json');}else{m9=typeof m5==='string'?m5['toLowerCase']():null;var ma=m9?BDFDB['Plugins'][m9]?BDFDB['Plugins'][m9]['contentPath']:null:m5['contentPath'];if(!ma)return;m8=hh['path']['join'](ma,'settings.json');}var mb=hh['fs']['existsSync'](m8);var mc=!mb?{}:typeof BDFDB['DataUtils']['cached'][m9]!=='undefined'?BDFDB['DataUtils']['cached'][m9]:e['readConfig'](m8);if(m7===undefined)delete mc[m6];else if(BDFDB['ObjectUtils']['is'](mc[m6]))delete mc[m6][m7];if(BDFDB['ObjectUtils']['isEmpty'](mc[m6]))delete mc[m6];if(BDFDB['ObjectUtils']['isEmpty'](mc)){delete BDFDB['DataUtils']['cached'][m9];if(mb)hh['fs']['unlinkSync'](m8);}else{mc=BDFDB['ObjectUtils']['sort'](mc);BDFDB['DataUtils']['cached'][m9]=mc;hh['fs']['writeFileSync'](m8,JSON['stringify'](mc,null,'\x09'));}};BDFDB['DataUtils']['get']=function(md,me,mf){md=typeof md=='string'?BDFDB['BDUtils']['getPlugin'](md):md;if(!BDFDB['ObjectUtils']['is'](md)||!md['defaults']||!md['defaults'][me])return mf===undefined?{}:null;var mg=BDFDB['DataUtils']['load'](md,me),mh={},mi=![];for(let mj in md['defaults'][me]){if(mg[mj]==null){mh[mj]=BDFDB['ObjectUtils']['is'](md['defaults'][me][mj]['value'])?BDFDB['ObjectUtils']['deepAssign']({},md['defaults'][me][mj]['value']):md['defaults'][me][mj]['value'];mi=!![];}else mh[mj]=mg[mj];}if(mi)BDFDB['DataUtils']['save'](mh,md,me);if(mf===undefined)return mh;else return mh[mf]===undefined?null:mh[mf];};e['readConfig']=function(mk){try{return JSON['parse'](hh['fs']['readFileSync'](mk));}catch(ml){return{};}};BDFDB['ColorUtils']={};BDFDB['ColorUtils']['convert']=function(mm,mn,mo){if(mm==null)return null;mn=mn===undefined||!mn?mn='RGBCOMP':mn['toUpperCase']();mo=mo===undefined||!mo||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](mo['toUpperCase']())?BDFDB['ColorUtils']['getType'](mm):mo['toUpperCase']();if(mn=='RGBCOMP'){switch(mo){case'RGBCOMP':if(mm['length']==0x3)return mY(mm);else if(mm['length']==0x4){let mp=n1(mm['pop']());return mY(mm)['concat'](mp);}break;case'RGB':return mY(mm['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let mq=mm['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let mp=n1(mq['pop']());return mY(mq)['concat'](mp);case'HSLCOMP':if(mm['length']==0x3)return BDFDB['ColorUtils']['convert']('hsl('+n5(mm)['join'](',')+')','RGBCOMP');else if(mm['length']==0x4){let ms=n1(mm['pop']());return BDFDB['ColorUtils']['convert']('hsl('+n5(mm)['join'](',')+')','RGBCOMP')['concat'](ms);}break;case'HSL':var mt=n5(mm['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var mu,mv,mw,mx,my,mz,mA,mB;var mC=mt[0x0]/0x168,mD=parseInt(mt[0x1])/0x64,mE=parseInt(mt[0x2])/0x64;mx=Math['floor'](mC*0x6);my=mC*0x6-mx;mz=mE*(0x1-mD);mA=mE*(0x1-my*mD);mB=mE*(0x1-(0x1-my)*mD);switch(mx%0x6){case 0x0:mu=mE,mv=mB,mw=mz;break;case 0x1:mu=mA,mv=mE,mw=mz;break;case 0x2:mu=mz,mv=mE,mw=mB;break;case 0x3:mu=mz,mv=mA,mw=mE;break;case 0x4:mu=mB,mv=mz,mw=mE;break;case 0x5:mu=mE,mv=mz,mw=mA;break;}return[Math['round'](mu*0xff),Math['round'](mv*0xff),Math['round'](mw*0xff)];case'HSLA':var mt=mm['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return BDFDB['ColorUtils']['convert']('hsl('+mt['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](n1(mt['pop']()));case'HEX':var mG=/^#([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'](mm);return[parseInt(mG[0x1]+mG[0x1]||mG[0x4],0x10)['toString'](),parseInt(mG[0x2]+mG[0x2]||mG[0x5],0x10)['toString'](),parseInt(mG[0x3]+mG[0x3]||mG[0x6],0x10)['toString']()];case'HEXA':var mG=/^#([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'](mm);return[parseInt(mG[0x1]+mG[0x1]||mG[0x5],0x10)['toString'](),parseInt(mG[0x2]+mG[0x2]||mG[0x6],0x10)['toString'](),parseInt(mG[0x3]+mG[0x3]||mG[0x7],0x10)['toString'](),Math['floor'](BDFDB['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(mG[0x4]+mG[0x4]||mG[0x8],0x10)['toString']()))/0x64];case'INT':mm=n9(mm);return[(mm>>0x10&0xff)['toString'](),(mm>>0x8&0xff)['toString'](),(mm&0xff)['toString']()];default:return null;}}else{var mI=mo=='RGBCOMP'?mm:BDFDB['ColorUtils']['convert'](mm,'RGBCOMP',mo);if(mI)switch(mn){case'RGB':return'rgb('+mY(mI['slice'](0x0,0x3))['join'](',')+')';case'RGBA':mI=mI['slice'](0x0,0x4);var ms=mI['length']==0x4?n1(mI['pop']()):0x1;return'rgba('+mY(mI)['concat'](ms)['join'](',')+')';case'HSLCOMP':var ms=mI['length']==0x4?n1(mI['pop']()):null;var mt=n5(BDFDB['ColorUtils']['convert'](mI,'HSL')['replace'](/\s/g,'')['split'](','));return ms!=null?mt['concat'](ms):mt;case'HSL':var mu=mW(mI[0x0]),mv=mW(mI[0x1]),mw=mW(mI[0x2]);var mP=Math['max'](mu,mv,mw),mQ=Math['min'](mu,mv,mw),mR=mP-mQ,mC,mD=mP===0x0?0x0:mR/mP,mE=mP/0xff;switch(mP){case mQ:mC=0x0;break;case mu:mC=mv-mw+mR*(mv0xff?0xff:my<0x0?0x0:my;}};function mY(mq){return mq['map'](my=>{return mW(my);});};function n1(ms){if(ms==null){return 0x1;}else{ms=ms['toString']();ms=(ms['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(ms['replace'](/[^0-9\.\-]/g,''));return isNaN(ms)||ms>0x1?0x1:ms<0x0?0x0:ms;}};function n3(n4){if(n4==null){return'100%';}else{n4=parseFloat(n4['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(n4)||n4>0x64?0x64:n4<0x0?0x0:n4)+'%';}};function n5(mq){let mC=parseFloat(mq['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));mC=isNaN(mC)||mC>0x168?0x168:mC<0x0?0x0:mC;return[mC]['concat'](mq['map'](n8=>{return n3(n8);}));};function n9(my){if(my==null){return 0xffffff;}else{my=parseInt(my['toString']()['replace'](/[^0-9]/g,''));return isNaN(my)||my>0xffffff?0xffffff:my<0x0?0x0:my;}};};BDFDB['ColorUtils']['setAlpha']=function(nb,nc,nd){if(BDFDB['ObjectUtils']['is'](nb)){var ne={};for(let nf in nb)ne[nf]=ng(nb[nf],nc,nd);return ne;}return ng(nb,nc,nd);function ng(nb){var ni=BDFDB['ColorUtils']['convert'](nb,'RGBCOMP');if(ni){nc=nc['toString']();nc=(nc['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nc['replace'](/[^0-9\.\-]/g,''));nc=isNaN(nc)||nc>0x1?0x1:nc<0x0?0x0:nc;ni[0x3]=nc;nd=(nd||BDFDB['ColorUtils']['getType'](nb))['toUpperCase']();nd=nd=='RGB'||nd=='HSL'||nd=='HEX'?nd+'A':nd;return BDFDB['ColorUtils']['convert'](ni,nd);}return null;}};BDFDB['ColorUtils']['getAlpha']=function(nj){var nk=BDFDB['ColorUtils']['convert'](nj,'RGBCOMP');if(nk){if(nk['length']==0x3)return 0x1;else if(nk['length']==0x4){let nl=nk[0x3]['toString']();nl=(nl['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nl['replace'](/[^0-9\.\-]/g,''));return isNaN(nl)||nl>0x1?0x1:nl<0x0?0x0:nl;}}return null;};BDFDB['ColorUtils']['change']=function(nm,nn,no){nn=parseFloat(nn);if(nm!=null&&typeof nn=='number'&&!isNaN(nn)){if(BDFDB['ObjectUtils']['is'](nm)){var np={};for(let nq in nm)np[nq]=nr(nm[nq],nn,no);return np;}else return nr(nm,nn,no);}return null;function nr(nm){var nt=BDFDB['ColorUtils']['convert'](nm,'RGBCOMP');if(nt){if(parseInt(nn)!==nn){nn=nn['toString']();nn=(nn['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(nn['replace'](/[^0-9\.\-]/g,''));nn=isNaN(nn)?0x0:nn;return BDFDB['ColorUtils']['convert']([Math['round'](nt[0x0]*(0x1+nn)),Math['round'](nt[0x1]*(0x1+nn)),Math['round'](nt[0x2]*(0x1+nn))],no||BDFDB['ColorUtils']['getType'](nm));}else return BDFDB['ColorUtils']['convert']([Math['round'](nt[0x0]+nn),Math['round'](nt[0x1]+nn),Math['round'](nt[0x2]+nn)],no||BDFDB['ColorUtils']['getType'](nm));}return null;};};BDFDB['ColorUtils']['invert']=function(nu,nv){if(nu!=null){var nw=BDFDB['ColorUtils']['convert'](nu,'RGBCOMP');if(nw)return BDFDB['ColorUtils']['convert']([0xff-nw[0x0],0xff-nw[0x1],0xff-nw[0x2]],nv||BDFDB['ColorUtils']['getType'](nu));}return null;};BDFDB['ColorUtils']['compare']=function(nx,ny){if(nx&&ny){nx=BDFDB['ColorUtils']['convert'](nx,'RGBA');ny=BDFDB['ColorUtils']['convert'](ny,'RGBA');if(nx&&ny)return BDFDB['equals'](nx,ny);}return null;};BDFDB['ColorUtils']['isBright']=function(nz,nA=0xa0){nz=BDFDB['ColorUtils']['convert'](nz,'RGBCOMP');if(!nz)return![];return parseInt(nA)