From 0fdf498f6f393be865436040d654416d65eea44b Mon Sep 17 00:00:00 2001 From: Zack Rauen Date: Mon, 6 Aug 2018 01:37:31 -0400 Subject: [PATCH] improve emote, stop-animation, better favorites --- css/main.css | 4 + css/main.min.css | 2 +- js/main.js | 290 ++++++++++++++--------------------------------- js/main.min.js | 4 +- 4 files changed, 90 insertions(+), 210 deletions(-) diff --git a/css/main.css b/css/main.css index 6b053dd5..e0278b12 100644 --- a/css/main.css +++ b/css/main.css @@ -884,6 +884,10 @@ margin-right: -30px; cursor: pointer; } +.fav.active { + background-color: yellow; +} + #bd-ps-container { position: fixed; width: 50%; diff --git a/css/main.min.css b/css/main.min.css index de8275c7..352393d5 100644 --- a/css/main.min.css +++ b/css/main.min.css @@ -1 +1 @@ -.bd-loaderv2{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FscXVlXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAwMCAyMDAwIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyMDAwIDIwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGZpbGw9IiMzRTgyRTUiIGQ9Ik0xNDAyLjIsNjMxLjdjLTkuNy0zNTMuNC0yODYuMi00OTYtNjQyLjYtNDk2SDY4LjR2NzE0LjFsNDQyLDM5OFY0OTAuN2gyNTdjMjc0LjUsMCwyNzQuNSwzNDQuOSwwLDM0NC45ICAgSDU5Ny42djMyOS41aDE2OS44YzI3NC41LDAsMjc0LjUsMzQ0LjgsMCwzNDQuOGgtNjk5djM1NC45aDY5MS4yYzM1Ni4zLDAsNjMyLjgtMTQyLjYsNjQyLjYtNDk2YzAtMTYyLjYtNDQuNS0yODQuMS0xMjIuOS0zNjguNiAgIEMxMzU3LjcsOTE1LjgsMTQwMi4yLDc5NC4zLDE0MDIuMiw2MzEuN3oiLz48cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMTI2Mi41LDEzNS4yTDEyNjIuNSwxMzUuMmwtNzYuOCwwYzI2LjYsMTMuMyw1MS43LDI4LjEsNzUsNDQuM2M3MC43LDQ5LjEsMTI2LjEsMTExLjUsMTY0LjYsMTg1LjMgICBjMzkuOSw3Ni42LDYxLjUsMTY1LjYsNjQuMywyNjQuNmwwLDEuMnYxLjJjMCwxNDEuMSwwLDU5Ni4xLDAsNzM3LjF2MS4ybDAsMS4yYy0yLjcsOTktMjQuMywxODgtNjQuMywyNjQuNiAgIGMtMzguNSw3My44LTkzLjgsMTM2LjItMTY0LjYsMTg1LjNjLTIyLjYsMTUuNy00Ni45LDMwLjEtNzIuNiw0My4xaDcyLjVjMzQ2LjIsMS45LDY3MS0xNzEuMiw2NzEtNTY3LjlWNzE2LjcgICBDMTkzMy41LDMxMi4yLDE2MDguNywxMzUuMiwxMjYyLjUsMTM1LjJ6Ii8+PC9nPjwvc3ZnPg==);position:fixed;bottom:5px;right:5px;z-index:2147483647;display:block;width:20px;height:20px;background-size:100% 100%;-webkit-animation:bd-loaderv2-animation 1.5s ease-in-out infinite}@-webkit-keyframes bd-loaderv2-animation{0%{opacity:.05}50%{opacity:.6}100%{opacity:.05}}.ui-standard-sidebar-view .bd-psm{background-color:#292b2f;box-shadow:0 0 12px 6px rgba(31,31,31,0.32);border:1px solid #3f4146;width:60vw;height:80vh;border-radius:6px}.ui-standard-sidebar-view #bd-customcss-attach-controls button,.bd-detached-css-editor #bd-customcss-attach-controls button{margin:0;width:100px;background:#31332b;color:#FFF;height:26px;font-weight:600;margin-top:5px;border-radius:3px}.ui-standard-sidebar-view #bd-customcss-attach-controls button:hover,.bd-detached-css-editor #bd-customcss-attach-controls button:hover{background:#3b3e44}.cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:700;color:#00f}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin{line-height:1em;font-weight:700;color:#077}.cm-s-neat span.cm-special{line-height:1em;font-weight:700;color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-atom,.cm-s-neat span.cm-number{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-neat .CodeMirror-matchingbracket{outline:grey solid 1px;color:#000 !important}#custom-css-ta{background:#d8d8d8;height:200px;font-family:"Consolas"}.content-region .CodeMirror,.content-region .cm-s-material .CodeMirror-gutters,#bd-customcss-detach-container .CodeMirror,#bd-customcss-detach-container .cm-s-material .CodeMirror-gutters{background:#292b2f !important}.content-region #bd-customcss-attach-controls,#bd-customcss-detach-container #bd-customcss-attach-controls{background:#272822;color:#FFF;border:0;box-shadow:0 1px 0 0 #2f3129 inset}.content-region #bd-customcss-pane,.content-region #bd-customcss-innerpane,#bd-customcss-detach-container #bd-customcss-pane,#bd-customcss-detach-container #bd-customcss-innerpane{min-height:calc(80vh - 165px)}.content-region .CodeMirror,.content-region .CodeMirror-scroll{max-height:calc(95vh - 165px);min-height:calc(95vh - 165px);height:auto}.content-region .CodeMirror-simplescroll-vertical,.content-region .CodeMirror-simplescroll-horizontal,#bd-customcss-detach-container .CodeMirror-simplescroll-vertical,#bd-customcss-detach-container .CodeMirror-simplescroll-horizontal{background:transparent !important}.content-region .CodeMirror-simplescroll-vertical,#bd-customcss-detach-container .CodeMirror-simplescroll-vertical{margin-right:3px !important}.content-region .CodeMirror-simplescroll-horizontal,#bd-customcss-detach-container .CodeMirror-simplescroll-horizontal{margin-bottom:3px !important}.content-region .CodeMirror-simplescroll-vertical div,.content-region .CodeMirror-simplescroll-horizontal div,#bd-customcss-detach-container .CodeMirror-simplescroll-vertical div,#bd-customcss-detach-container .CodeMirror-simplescroll-horizontal div{background:#18191c !important;border:none !important;border-radius:5px !important}.content-region .CodeMirror-scrollbar-filler,#bd-customcss-detach-container .CodeMirror-scrollbar-filler{display:none !important}.ui-standard-sidebar-view #editor-detached h3{color:#87909c;font-weight:600;font-size:22px}.ui-standard-sidebar-view #editor-detached button{margin:auto;margin-left:calc(50% - 100px);margin-top:20px;background:#7289da;color:#FFF;font-weight:600;border-radius:5px;font-size:20px}.bd-blue .ui-standard-sidebar-view #editor-detached button{background:#3a71c1}.ui-standard-sidebar-view .bd-versioninfo-wrapper{bottom:0;left:0;position:fixed;background:inherit;right:0;padding:5px}.ui-standard-sidebar-view .bd-versioninfo-wrapper span{color:#b9bbbe;font-weight:600;font-size:11px}.ui-standard-sidebar-view .bd-versioninfo-wrapper a{font-size:11px}.bd-server-card .bd-server-tags{flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:0;line-height:24px;font-size:12px;color:#b9bbbe;font-weight:700;margin-right:10px}.ui-card.ui-card-primary.bd-server-card:first-child{margin-bottom:13px}.ui-card.ui-card-primary.bd-server-card:first-child:after{border:3px solid #7289da;content:"";display:block;position:absolute;left:0;right:0;margin-top:4px}.bd-server-card.bd-server-card-pinned{margin-bottom:15px}.bd-server-card.bd-server-card-pinned:after{background:#3a71c1;content:"";height:3px;width:100%;display:block;margin-top:7px;position:absolute;top:100%}.bd-server-description-container{color:#b9bbbe;min-height:65px;max-height:65px;border-top:1px solid #3f4146;border-bottom:1px solid #3f4146;padding-top:5px;font-size:13px}.bd-server-header{justify-content:space-between;font-weight:600}.bd-server-card{display:flex}.bd-server-content{padding:5px 10px;flex:1}.bd-server-image{min-width:115px;min-height:115px;max-width:115px;max-height:115px}.bd-server-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-right:15px;max-width:330px;flex:1 1 50%}.bd-layer{-ms-flex-direction:column;-webkit-box-direction:normal;-webkit-box-orient:vertical;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:column;left:0;position:absolute;right:0;top:0}.spoiler{color:transparent !important}.spoiler img{display:none}.spoiler:before{content:"Spoiler";display:block;background:#1d1d1d;color:#adadad !important;min-height:30px;text-align:center;line-height:100%;font-family:"Consolas";padding-top:5px}.emotemenu-enabled .channel-textarea-inner textarea{margin-right:45px !important}#bdbeta{background:red}.editor-wrapper{display:flex}.line-numbers,.editor{line-height:normal;font-family:Consolas,monospace;box-sizing:border-box;height:calc(100vh - 250px);font-size:14px}.line-numbers{white-space:pre;color:gray;padding:10px 5px 0 5px;background:#24262a;overflow:hidden}.editor{width:100%;background:#292b2f;outline:0;color:white;padding:10px;resize:none}#bd-customcss-detach-container .editor-wrapper,#bd-customcss-detach-container .line-numbers,#bd-customcss-detach-container .editor{height:100%}#emote-menu{background:#36393e;height:0;width:300px;position:absolute;bottom:45px;right:0;border:1px solid #000;border-radius:5px 0 0 0;overflow:hidden;visibility:hidden;transition:all 1s;-webkit-transition:all 1s}.emotemenu-open{height:450px !important;visibility:visible !important}#emote-menu-header{width:100%;height:30px;background-color:#36393e}.emote-menu-tab{float:left;width:130px;text-align:center;padding:7px;color:#adadad;background-color:#424549;cursor:pointer}.emote-menu-tab:hover{background-color:#45484c}#emote-menu-inner,#emote-menu-inner-fav{height:412px}.emote-menu-tab-selected{background-color:#36393e}.emote-menu-tab-selected:hover{background-color:#36393e}#emote-container{padding:10px}.emote-container{display:inline-block;padding:2px;border-radius:5px;width:30px;height:30px;position:relative}.emote-icon{max-width:100%;max-height:100%;position:absolute;margin:auto;top:0;right:0;bottom:0;left:0;cursor:pointer}.emote.stop-animation{animation:none !important}.emote-container:hover{background:rgba(123,123,123,0.37)}.emoteflip,.emotespinflip{transform:scaleX(-1)}.emotespin{animation:1s emote-spin infinite linear}.emote1spin{animation:1s emote-spin-reverse infinite linear}.emotespin2{animation:.5s emote-spin infinite linear}.emote2spin{animation:.5s emote-spin-reverse infinite linear}.emotespin3{animation:.2s emote-spin infinite linear}.emote3spin{animation:.2s emote-spin-reverse infinite linear}.emotepulse{animation:1s emote-pulse infinite linear}.emotetr{transform:translateX(-3px)}.emotebl{transform:translateY(-3px)}.emotebr{transform:translate(-3px,-3px)}.emoteshake{animation:1s emote-shake infinite linear}.emoteflap{transform:scaleY(-1) !important}.emoteshake2{animation:emote-shake2 .3s linear infinite}.emoteshake3{animation:emote-shake3 .1s linear infinite}@keyframes emote-shake2{25%{transform:translate(-1px,-1px)}50%{transform:translate(-1px,1px)}75%{transform:translate(1px,1px)}75%{transform:translate(1px,-1px)}}@keyframes emote-shake3{25%{transform:translate(-1px,-1px)}50%{transform:translate(-1px,1px)}75%{transform:translate(1px,1px)}75%{transform:translate(1px,-1px)}}@keyframes emote-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes emote-spin-reverse{from{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes emote-pulse{0%{-webkit-transform:scale(1,1)}50%{-webkit-transform:scale(1.2,1.2)}100%{-webkit-transform:scale(1,1)}}@keyframes emote-shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}#tc-settings-panel{position:fixed;width:50%;height:75%;background:#2e3136;display:block;z-index:9001;margin-left:25%;margin-top:5%;border:1px solid #000;box-shadow:0 0 20px 0 #000;max-height:800px;min-width:750px}#tc-settings-panel-header{background:#36393e;height:60px;border-bottom:1px solid #000;box-shadow:0 1px 0 0 #4e4e4e}#tc-settings-panel-header h2{margin:0;line-height:60px;margin-left:10px;color:#adadad;display:inline-block;float:left}#tc-settings-panel-header span{float:right;display:inline;line-height:50px;margin-right:15px;font-size:29px;font-weight:bold;color:#adadad}#rmenu{width:auto;background:#505050;position:absolute;z-index:999999;display:none;box-shadow:0 0 2px #000;padding:2px}#rmenu ul a{text-decoration:none;color:#FFF;padding:3px}#tc-settings-panel-body{overflow:auto}#tc-settings-panel-body ul{overflow:auto;position:absolute;padding:0;margin-top:0;border-bottom:1px solid #000;left:0;right:0;bottom:40px;top:61px}#tc-settings-panel-body ul li{padding:15px;color:#adadad;background:#2e3136;border-bottom:1px solid #000;box-shadow:0 1px 0 #404040 inset}#tc-settings-panel-body ul li:nth-child(odd){background:#33363b}#tc-settings-panel-body ul li h2{display:inline}#tc-links a{color:#FFF}#tc-settings-panel-footer{background:#36393e;height:40px;position:absolute;bottom:0;right:0;left:0;border-top:1px solid #000;box-shadow:0 1px 0 #505050 inset;line-height:40px;padding-left:10px;color:#adadad !important}#tc-links{float:right;margin-right:10px}.tc-switch{background:#2e3136;width:100px;height:24px;display:inline-block;float:right;margin:-7px;border:1px solid #000;outline:1px solid #404040;cursor:pointer}.tc-switch.disabled{background:gray;cursor:default}.tc-switch.disabled span{background:gray !important}.tc-switch.disabled .tc-switch-on{border-left:1px gray !important}.tc-switch span{line-height:24px;display:inline-block;width:49px;text-align:center;height:24px}.tc-switch-off{border-right:1px solid #000}.tc-switch-on{border-left:1px solid #404040}.tc-switch-on.active{background:green;border-left:1px solid #00ae08}.tc-switch-off.active{background:#860606}.bd-minimal .divider-32i8lo{opacity:0}.bd-minimal .large-3ChYtB{max-width:20px;max-height:20px;background-size:100%;margin-right:2px;margin-top:0;border-radius:0}.bd-minimal .content-3dzVd8{border-left:2px solid #ebebeb;padding-left:2px}.bd-minimal .theme-dark .content-3dzVd8{border-left:2px solid #303030}.bd-minimal .username-_4ZSMR{font-size:small}.bd-minimal.bd-minimal-chan .channels-Ie2l6A{display:none}.bd-minimal .container-1YxwTf{padding:5px}.bd-minimal .embed{padding:2px}.bd-minimal .members-1998pB .small-5Os1Bb{max-width:15px;max-height:15px;background-size:15px 15px}.bd-minimal .members-1998pB .small-5Os1Bb .status-oxiHuE{height:5px;width:5px}.bd-minimal .members-1998pB .member-3W1lQa{padding:5px}.bd-minimal .members-1998pB .memberInner-2CPc3V{transform:scale(0.9)}.bd-minimal .membersWrap-2h-GB4{min-width:0}.bd-minimal .members-1998pB .membersGroup-v9BXpm{margin-top:3px;transform:scale(0.9)}.bd-minimal .channels-Ie2l6A header span{font-size:12px}.bd-minimal .channels-Ie2l6A .channels-Ie2l6A{padding:0}.bd-minimal .guildsWrapper-5TJh6A .guilds-1q_RqH .guild-1EfMGQ{width:20px;height:20px;background-size:100%;font-size:15px;line-height:20px}.bd-minimal .guildsWrapper-5TJh6A .guilds-1q_RqH .guild-1EfMGQ .guildInner-3DSoA4 a,.bd-minimal .guild-1EfMGQ .guildInner-3DSoA4 .guildIcon-CT-ZDq{width:20px;height:20px;background-size:100%;font-size:15px;line-height:20px}.bd-minimal .guild-1EfMGQ .guildInner-3DSoA4{width:20px;height:20px;background-size:100%;font-size:15px;line-height:20px}.bd-minimal .guilds-1q_RqH .homeIcon-1FoKUJ{width:10px;height:10px;background-size:100%;font-size:15px;line-height:20px}.bd-minimal .guilds-1q_RqH .friendsOnline-_wi_fM{margin-left:-15px;font-size:7px}.bd-minimal .guildsWrapper-5TJh6A{width:45px}.bd-minimal .guildsWrapper-5TJh6A .guildSeparator-1X4GQ1{margin-left:-15px}.bd-minimal .guildsWrapper-5TJh6A .guilds-1q_RqH .guild-1EfMGQ.selected-ML3OIq:before{height:20px;margin-top:-10px}.bd-minimal .guildsAdd-21_IdK{font-size:20px;line-height:14px}.bd-minimal .guilds-1q_RqH .audio-3vVhBi .guildInner-3DSoA4:after{width:12px;height:12px;background-size:12px}.bd-minimal .guild-header header span{margin-left:-20px}.bd-minimal .btn-hamburger{margin-right:-30px}.bd-minimal .container-2Thooq .avatar-small{width:15px;height:15px;background-size:15px 15px}.bd-minimal .container-2Thooq .avatar-small .status-oxiHuE{height:5px;width:5px}.bd-minimal .container-2Thooq .accountDetails-3k9g4n{transform:scale(0.8)}.bd-minimal .container-2Thooq .button-2b6hmh{height:14px;width:14px;background-size:14px 14px;margin-left:3px}.bd-minimal .container-2Thooq .button-2b6hmh svg{height:14px;width:14px}.bd-minimal .channels-Ie2l6A{width:160px}.bd-minimal .content-20Aix8{transform:scale(0.9)}.bd-minimal .containerDefault-3GGEv_{transform:scale(0.9)}.bd-minimal .icon-sxakjD{width:14px;height:14px}.emotewrapper{position:relative;display:inline-flex;object-fit:contain;margin:-.1em .05em -.2em .1em;vertical-align:top}.emotewrapper.jumboable{margin-bottom:0;margin-top:.2em;vertical-align:-.3em}.emote{height:1.45em}.emote.jumboable{height:2rem}.emotewrapper:hover .fav{display:block}#bd-changelog h2{font-size:150%;padding-bottom:10px;border-bottom:1px solid rgba(0,0,0,0.5)}.fav{display:none;position:absolute;width:15px;height:15px;right:-7px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAzFBMVEUAAABQUFBMTExLS0tNTU1MTExNTU1NTU1MTExMTExNTU1LS0tEREBEREBEREBEREBJSUhLS0tLS0tEREBNTU1NTU1NTU1EREArKyhNTU1NTU0AAABMTExKSklMTExNTU1NTU1NTU1KSkpMTExKSkhNTU1KSkpISEZNTU1LS0tAQDxOTk5KSkpLS0tNTU1MTExMTEx/f39MTExMTExLS0pLS0tMTExNTU1NTU1LS0pNTU1NTU1NTU1NTU1NTU1NTUxNTU1NTU1NTUxMTEzB8C/5AAAAOnRSTlMAI8X96oWAgYSF68QBAg0PMCb9BIuLgQUD4N0Bh0mKhZSOQ4gcrKscaW8QRE6fmJyjAshASceG7cIpqQOxTQAAALVJREFUGFddx6FOA0EYAOGZvd07Qm6vVCAAgUUgQEDfX/YZMAigqaFN7iC5tsmPqGPUN/AvUVeoEbGOCElJz08Uzeixqu4AqomVVSNngOVjTqDGZSl3UFtPGV2ot2zaq96YM9p5Ddzcf/nTTAlj+/sNtNu8OcwkIsbPBtrUfMQeEhGQmHbmGIFMwLPzu6UMIwBNgToshgq8Nr2ki+Oy7ebDHp70LRPWB6OZgfWLWei7fJonOOsPCGA9kVlssOoAAAAASUVORK5CYII=");border:0;background-size:100% 100%;background-repeat:no-repeat;background-color:#303030;border-radius:5px;top:-7px;cursor:pointer}#bd-ps-container{position:fixed;width:50%;height:75%;background:#2e3136;display:block;z-index:9001;margin-left:25%;margin-top:5%;border:1px solid #000;box-shadow:0 0 20px 0 #000;max-height:800px;min-width:750px}#bd-ps-header{background:#36393e;height:60px;border-bottom:1px solid #000;box-shadow:0 1px 0 0 #4e4e4e}#bd-ps-header h2{margin:0;line-height:60px;margin-left:10px;color:#adadad;display:inline-block;float:left}#bd-ps-header span{float:right;display:inline;line-height:50px;margin-right:15px;font-size:29px;font-weight:bold;color:#adadad}#bd-ps-body{position:absolute;padding:0;margin-top:0;left:0;right:0;bottom:0;top:61px;overflow:auto}.bd-ps-server{width:100%;height:200px}.bd-ps-server-header{height:50px;width:100%;margin-top:1px;background:#202020;color:#aeaeae;line-height:50px;font-size:20px}.bd-ps-server-header span{margin-left:10px}.bd-ps-server-body{padding:5px}.bd-ps-server-icon{width:90px;height:90px;background:#202020;display:inline-block}.bd-ps-server-info{position:absolute;height:190px;display:inline-block;left:100px;right:5px;color:#aeaeae;overflow:auto}#bd-ps-body table{width:100%;margin:0;padding:0;border-color:red;border-collapse:collapse;text-align:left}#bd-ps-body table th{background-color:#202020;color:#ededed;height:50px;padding-left:5px}#bd-ps-body table tr{margin:0;padding:0;height:50px;background-color:#33363b;border-bottom:1px solid #000;box-shadow:0 1px 0 #404040 inset}#bd-ps-body table tr td{padding-left:5px;color:#ededed;min-width:100px}#bd-ps-body .description{overflow:auto;max-height:60px;word-wrap:break-word}#bd-ps-body table tr:nth-child(odd){background-color:#2e3136}#bd-show-channels{display:none;width:12px;height:18px;background:#2e3136;position:absolute;left:33px;top:79px;text-align:left !important;padding:0 !important;padding-left:3px !important;color:#ebebeb;z-index:90000}.bd-minimal-chan #bd-show-channels{display:block !important}.tipsy{z-index:9000000001 !important;position:fixed;padding:5px;display:block;visibility:visible;opacity:.8}.tipsy-arrow{position:absolute;width:0;height:0;border:5px solid transparent;bottom:0;right:10px;border-bottom:0;border-top-color:black}.tipsy-inner{background-color:black;color:white;max-width:300px;padding:5px 8px 4px;text-align:center;overflow:hidden !important;text-overflow:ellipsis}#bd-psd-container{position:fixed;width:50%;height:75%;display:block;margin-left:25%;margin-top:5%;box-shadow:0 0 20px 0 #000;background:#2e3135;border:1px solid #25282c;min-width:750px;min-height:800px}#bd-psd-header{width:100%;height:40px;border-bottom:1px solid #25282c;line-height:40px;color:#adadad}#bd-psd-header span{margin-left:10px}#bd-psd-body{height:100%;width:100%}#bd-psd-table{width:100%;margin:0;padding:0;text-align:left;color:#adadad}#bd-psd-table thead th{background:#1d1d1d;padding:5px}#bd-psd-table tbody td{padding:5px}#bd-psd-table tbody tr{background:#292c30}#bd-psd-table tbody tr:nth-child(odd){background:#2e3135}#bd-psd-table button{background:#292c30;border:1px solid #1d1d1d;width:60px;height:30px;color:#adadad;cursor:pointer}#bd-psd-table button:hover{background:#2e3135}#bd-psd-header a{float:right;margin-right:10px;font-size:30px;color:#adadad;text-decoration:none;margin-top:-7px}.bd-g-table{text-align:left;width:520px;white-space:nowrap}.bd-g-table thead th{background:#ebebeb !important;color:#87909c !important;padding:5px !important}.bd-g-table tbody tr{background:#e0e0e0 !important}.bd-g-table tbody tr:nth-child(odd){background:#ececec !important}.bd-g-table tbody td{color:#87909c !important;padding:5px !important;font-size:small}.bd-g-table textarea{width:100% !important;background:#e0e0e0 !important;border:none !important;resize:none !important;font-size:small !important;margin:0 !important;padding:0 !important}.bd-g-table input{margin:0 !important;padding:0 !important}.message-group.compact .message .markup .message-content{text-indent:0}.bd-psb{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAG6ElEQVR4XtWZS0xTWRjHP54+H+WhQRO0GAQxxikxmhhMKBu2upLoTDKsaupmcGVYVTdjxhUrG9kMG0OYTDKSuGIzZQHGUQNEowaJ4lt8UXwBPuf7kV5ycrmXW26bVP/JlxR6zvc63+uc5n379k1+ZOTLD45CPnR2dkoWcUgpqhS2LUgoxZX+kiwgEolYBmSGlpYWsdDT0xMoLi7uaW5ulk2bNomJJ0+ehPv6+sIfP37s0z1JY893FUKt27ZtQ3n58OGDTE1NQXyWiooKqa6uFtZkN4QyhK0IHFi/fr3MzMyIelos8DkvL09Wr17Nmp/Yk4skDimdNGPbREFBAR+Cq1atki9fvogdGFBSUiLwYa0L4I2MULYNOFtWVja0e/fumIbHvyLyj1KzpLBs2TLp7u6OrFmzJrhx40b5+vWr2PH582fZsmWL6JoQa9ljoBme8EYGspApaYA+4FWFztbU1ETD4bBYGB8fl0QiQWicJkKUfg0qVLiocJmcnBQncAKvXr2Sa9euwWM8VZVI/Hb4KwuxAP/R0VG+P+a7CpnK48G3b9/ibQTJkSNHUKRdhYuuwbMCWOMG9mOgVik+B2/cuPEHCzAcPiT77OwsvCTlsKgaIRjhJ4nDGg7RxsZG+fTpk6XYfIIS6/v27RPA91QbYn8xsO7169fky4L9yWRyPvTevHmDEaKykRt9+vQpvSOx1BA6uWPHjpiS5BI3b96ETqHPUkNo/P3795LrWQkd0MVPCHXdv3//N20+oXXr1kk6IE9IUsKJMEM4IFyIcfiQA4WFiPXGixcvRHVIoIvfMhq/dOkSMSqLgdjVOJWRkREEEs8kJLUf4jP/4zvWsJY9nvlCtUKHTDpxpwqv04rXpifhKujOnTuWtz1Boj98+JBkFsaOoqIicYLKxPAOhr+sjBKUT0qcCcLk9u3b86PCUsCp3Lp1S7Zv3054iQH+zuos1FpbW4uCZkLzWe7evUvcS36+v5mQvfCgj5gOgB+95vr16wdF5HgmBkS2bt0aWL58udgr0vPnz2V6etoS7BvwgNeGDRvEAidN166srAxquEUI5XQNCChhdaNSiLmlvr4exUk6M46pEG6ex8rzSr1KA0qggUlV6Wd6j1O1oTrR4Cz+yNu7dy/Jf45mJiLDSv1KF5SSTgYc4jLC0THPwxCCGbON4X2rKzsZwKJTKTLxd4rGlGJORlB68bqZI/x9+PBhSnMI0ktRqyb3n5pzLSS33YCodZNCWZTEM8SpDbR6t9A5j/LiDr6jnP0iNrx7904CgYBZ3QgtegYFhIpFrnCzk4sXL0btBgRXrlwZZjFKs9mjRruFT694o9fBACoZjnOSBWGgWXLDAkwDVqxYYXrbq3G5GTAg3hhw4+kBDFk0idOaezglwifLgCe8UdLXnTjJxjQHN47S7bQaSFaP7Q0uPJEP+TJgWBMTCq1du9ZrFCCp3Gb/A54GsMYBdN90vE8BQV+nEIpfvnz5HDMPRmgPwCuOBlAtuNg4gDo/tkgliqXW2IFMV+9bFyqUHxuDvcTdLjQ1qVe1EFRaWhqgkdkNoTM/ePAAgVlpZMT/5s2bccqCLj00NITiSbwOpZQfdbvQjBqzBxPj7zqste/cuXNByeP95+XLl475SJmEJD3Ay6mM4m2UPyEiZ/zOQmcmJibamRipEGYYad8QSi9zSybgNOFD57UPeo8fP05ayvs1IKmMOh49etTGm479eHkupDMizA9wCt6nSdmhMvnQlbWnRfKAYzZPgcTCCC4nGLQU4HXNMXPKNSuS5ZTpTA1oVsXb6urqUNipe6IAVYn7LmOIV0elg+N1Epe9rHc8mV27dlEo2rUCcSfu82tAdM+ePXiEsdax6mAYIcAozEyPgvxNblgnxn56B5d7eHBa7HMD3+MUZA8ODkb9GhDWcfpgeXk5Cnl61jIEYAwv0SgOMMR62Ut31oIXstFBR+mwr4ctvY3FqqqqJJe4d+8e105fD1sJvcjEuODkENZDccLPuxAGdPGG43Ih53kE8iqjfvfzaoEBcXTxm8RxmChaKZfG7YkXA1p/R+qY24hXbk0er27sYT1dHMXZz0MXlY68MZWXZ8+eGc/r/l7m/ksZ0YXCPDbB+MqVK8OqyFHGjqampuOqSIkKO83c4gXW6NoT7GEvPNQhR+EJb2Qgy1t5exJ742BqyBs3OiTv+OaPEpP79+8PuJ0CJ3f16tVh3VNv7BEDrUrB1NB2IZ2fWfMlfcDwpEd7H0ZJ4GYAa8QdXchAVq5+Zu2n4XkYMPI9/8wa1yGMH+lISLvyxLXgZfbkwABP8JPQRH9//1F9Fo/qKBAySiYGDGOgrkmKD/hPYv8IG5+tG1XWQBLPG/Aj439gf0WR+WMvWwAAAABJRU5ErkJggg==");width:25px;height:25px;background-color:transparent;background-size:100%}.bd-psm{position:fixed;pointer-events:auto;width:490px;height:460px;background-color:white;z-index:900000;margin:auto;right:0;left:170px;top:-60px;bottom:0;box-shadow:0 0 10px 5px rgba(193,193,193,0.75);border:1px solid #ebebeb}.bd-alert{position:absolute;width:600px;height:200px;left:0;right:0;top:300px;background-color:#2e3136;margin:auto;border:1px solid #323232;box-shadow:0 0 5px 3px rgba(30,30,30,0.5);color:#ebebeb}.bd-alert-header{height:25px;background:#36393e}.bd-alert-header span{line-height:25px;margin-left:5px}.bd-alert-closebtn{cursor:pointer;float:right;margin-right:5px;margin-top:2px}.bd-alert-closebtn:hover{color:#adadad}.bd-alert-body{height:178px}.bd-alert-body a{color:#FFF !important}.bd-alert-body .scroller-wrap{height:178px}.bd-alert-body .scroller-wrap .scroller{padding:5px;word-wrap:break-word}.channel-textarea-inner textarea{margin-right:40px}.servericon{width:64px;display:inline-block;background-size:100% auto;height:64px}.serverinfo{display:inline-block}#pubs-container{width:800px;position:fixed;top:50%;left:50%;margin-top:-284.5px;margin-left:-400px;background:#FFF;z-index:9000000}#pubs-container .scroller-wrap{height:500px}#pubs-header{background:#7289da;padding:5px 12px 5px 5px}#pubs-header h2{display:inline-block;font-weight:600;color:#FFF}#pubs-header input,#pubs-header button{float:right}#pubs-sterm{outline:none !important;padding-left:3px}.bd-dropdown{position:absolute;display:inline-block;width:150px;right:225px}.bd-dropdown button{width:150px}.bd-dropdown .bd-dropdown-list ul{height:0}.bd-dropdown.open .bd-dropdown-list ul{height:140px}.bd-dropdown-list{position:absolute;right:0;top:32px;z-index:90001;width:150px;background:#f3f3f3}.bd-dropdown-list ul{height:0;overflow-y:auto;overflow-x:hidden;transition:all .5s ease-in-out}.bd-dropdown-list ul li{padding:5px;background:#e6e6e6;cursor:pointer;color:#87909c;font-weight:600}.bd-dropdown-list ul li:nth-child(odd){background:#e2e1e1}.bd-dropdown-list ul li:hover{background:#f9f5f5}#pubs-header input{border:0;height:30px;width:150px;color:#555;background-color:#fff;-webkit-transition:width 1s ease-in-out;-moz-transition:width 1s ease-in-out;-o-transition:width 1s ease-in-out;transition:width 1s ease-in-out}#pubs-header button{height:32px;background-color:#f9f9f9;color:#949494}#pubs-footer{height:25px;line-height:25px;background:#7289da}#pubs-footer div{float:right;margin-right:5px;font-weight:600px;color:#FFF}#pubs-footer a{color:#FFF;text-decoration:none;font-weight:800}#pubs-container .scroller-wrap{margin-top:75px}.server-row{padding:5px;display:flex;background-color:#FFF}.server-row:nth-child(odd){background-color:#f3f3f3}.server-icon{width:64px;height:64px;background-size:100% auto}.server-info{display:flex;flex-flow:column;line-height:64px;margin-left:20px}.server-info span{font-size:16px;color:#000;font-weight:600}.server-info a{color:#4056a2;text-decoration:none;font-weight:800;margin-left:5px}.server-info button{width:90px;height:48px;margin-top:8px;background-color:#738bd7;color:#fff;font-size:19px}.server-info button:hover{background-color:#697ec4}.server-information{flex-grow:1;position:relative}.server-name,.server-desription{flex-grow:100}.server-name span{overflow:hidden;text-overflow:ellipsis;max-width:300px;white-space:nowrap}.server-name-span,.server-description{position:absolute;top:0;transition:visibility 0s,opacity .8s linear}.server-official,.server-tags{visibility:visible;opacity:1;transition:visibility 0s,opacity .8s linear}.server-information:hover .server-description{visibility:visible;opacity:1}.server-information:hover .server-name-span{visibility:hidden;opacity:0}.server-information:hover .server-tags{visibility:hidden;opacity:0}.server-information:hover .server-official{visibility:hidden;opacity:0}.server-tags{position:absolute !important;bottom:0 !important;height:38px !important;font-size:10px !important;visibility:visible;opacity:1}.server-official{position:absolute !important;top:0 !important;height:20px !important;font-size:14px !important;line-height:14px !important;color:#7289da !important;font-weight:700 !important;text-shadow:0 0 4px #7289da;visibility:visible;opacity:1;padding-left:2px;padding-right:2px}.server-description{visibility:hidden;opacity:0;font-size:12px !important;line-height:12px !important;text-overflow:initial !important;white-space:inherit !important;overflow-y:auto !important;height:64px !important}.server-region{min-width:85px}.server-pinned{position:absolute;width:777px;padding-right:-10px;padding-right:17px;border-bottom:2px solid #272727}#server-bd-tag{position:absolute !important;bottom:0 !important;height:20px !important;line-height:20px !important;font-size:13px !important;font-weight:600 !important}#pubs-spinner{position:fixed;top:50%;left:50%;margin-left:-16px;margin-top:-16px}#pubs-container .scroller::-webkit-scrollbar-track-piece,#pubs-container .scroller::-webkit-scrollbar-thumb{border-radius:0}.bd-hide-bd .callout-backdrop{display:none}.bd-detached-editor .app{width:70%}.bd-detached-editor #bd-customcss-detach-container{display:block}#bd-customcss-detach-container{display:none;position:absolute;width:30%;top:0;right:0;bottom:0;background-color:#36393e}#bd-customcss-detach-editor{height:calc(100% - 87px)}#bd-customcss-detach-editor #bd-customcss-innerpane,#bd-customcss-detach-editor .CodeMirror{height:100%}#bd-customcss-detach-controls{background:#e8e8e8;border-top:1px solid #adadad;-webkit-box-shadow:inset 0 1px 0 0 white;height:100%;padding:5px}#bd-customcss-detach-controls .checkbox-group li{margin-top:5px;display:inline-block}#bd-customcss-detach-controls button{width:90px;height:30px;margin-top:8px;background-color:#738bd7;color:#fff;font-size:19px}#bd-customcss-detach-controls-buttons{bottom:5px}#editor-detached{margin-top:50px}#editor-detached h3{text-align:center;font-size:30px}#editor-detached .btn{left:50%;margin-left:-100px;margin-top:10px;width:200px;height:60px}#bd-customcss-attach-controls{background:#e8e8e8;border:1px solid #FFF;border-top:1px solid #adadad;-webkit-box-shadow:inset 0 1px 0 0 white;height:100%;padding:5px;height:75px}#bd-customcss-attach-controls .checkbox-group{margin-bottom:0}#bd-customcss-attach-controls .checkbox-group li{margin-top:5px;display:inline-block}#bd-customcss-attach-controls button{margin:0;width:100px}#bd-customcss-detach-container #bd-customcss-detach-controls-buttons button{width:90px;height:30px;margin-top:8px;background-color:#738bd7;color:#fff;font-size:19px}.emoji-picker,.emojiPicker-3m1S-j{box-shadow:none;border-top:0;border-radius:0 0 5px 5px}#bda-qem{border-radius:5px 5px 0 0;background:#FFF;border-bottom:1px solid rgba(0,0,0,0.1) !important;height:30px;display:flex;flex-direction:row;padding-right:1px !important}#bda-qem button{border-left:1px solid #efefef;background:transparent;box-shadow:#cecece 1px 0 0 0;flex-grow:1}#bda-qem button:hover{background:#ececec}#bda-qem-twitch{border-radius:5px 0 0 0;order:2}#bda-qem-emojis{border-radius:0 5px 0 0;order:3}#bda-qem-favourite{order:3}#bda-qem button.active{background-color:#e2e2e2}#bda-qem-twitch-container,#bda-qem-favourite-container{width:346px;height:327px;background-color:#FFF;border-radius:0 0 5px 5px}#bda-qem-twitch-container .scroller-wrap,#bda-qem-favourite-container .scroller-wrap{height:100%}.emote-menu-inner{padding:5px 0 0 15px}#rmenu{left:25px;display:block !important;cursor:pointer;color:#FFF;position:fixed}.bda-qme-hidden #bda-qem-emojis{display:none}.bd-select select{width:100%;margin:0;outline:0;padding:.6em .8em .5em .8em;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;padding-right:2em;background:0;border:1px solid transparent !important;-webkit-appearance:none;appearance:none;color:#404040;outline:none !important}.bd-select::after{content:" ";position:absolute;top:50%;right:1em;z-index:2;pointer-events:none;display:none}.bd-select select:focus{border-color:#aaa}.bd-select:focus::after{display:block}.bd-select{position:absolute;right:220px;height:32px;top:5px;border-radius:0;display:inline-block;border:0;border-radius:0;box-shadow:0 1px 0 1px rgba(0,0,0,.04);background:#fff;outline:none !important}.bd-select:before{content:"Category";color:#FFF;position:absolute;right:100%;margin-right:5px;line-height:32px}#bd-pane .tab-bar.TOP{margin-bottom:0}#bd-settings-pane{margin-top:18px}#bd-themes-pane .bda-plugin-reload{margin-top:70px}.bda-backdrop{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;background:rgba(0,0,0,0.5)}.bd-settings{max-width:516px}.bda-dark #bda-qem-favourite-container,.bda-dark #bda-qem-twitch-container{background-color:#353535}.bda-dark #bda-qem{border-bottom:1px solid #464646 !important;background:#353535}.bda-dark #bda-qem button{background:#353535;border-left:1px solid #242424;box-shadow:#424242 1px 0 0 0;color:#FFF}.bda-dark #bda-qem button.active{background-color:#292929}.bda-dark #bda-qem button:hover{background-color:#303030}.bda-dark #bda-qem-favourite-container,.bda-dark #bda-qem-twitch-container{background-color:#353535}.bda-dark .emoji-picker,.bda-dark .emojiPicker-3m1S-j{background-color:#353535}.bda-dark .emoji-picker .category,.bda-dark .emojiPicker-3m1S-j .category-2U57w6{background-color:#353535}.bda-dark .emoji-picker .header .search-bar,.bda-dark .emojiPicker-3m1S-j .header-1nkwgG .search-bar{background-color:#2b2b2b}.bda-dark .emoji-picker .search-bar input,.bda-dark .emojiPicker-3m1S-j .search-bar input{color:#FFF}.bda-dark .emoji-picker .search-bar input::-webkit-input-placeholder,.bda-dark .emojiPicker-3m1S-j .search-bar input::-webkit-input-placeholder{color:#FFF}.bda-dark .emoji-picker .scroller .emoji-item.selected,.bda-dark .emojiPicker-3m1S-j .scroller-3vODG7 .emojiItem-109bjA.selected-39BZ4S{background-color:rgba(123,123,123,0.37)}.bda-dark .emoji-picker .dimmer.visible,.bda-dark .emojiPicker-3m1S-j .dimmer-3iH-5D.visible-3k45bQ{background-color:rgba(62,62,62,0.65)}.bda-dark .emoji-picker .diversity-selector .popout-3sVMXz,.bda-dark .emojiPicker-3m1S-j .diversitySelector-tmmMv0 .popout-2nUePc{background:#353535;border-color:#202020}.bda-dark #bda-qem-twitch-container .scroller::-webkit-scrollbar,.bda-dark #bda-qem-twitch-container .scroller::-webkit-scrollbar-track,.bda-dark #bda-qem-twitch-container .scroller::-webkit-scrollbar-track-piece,.bda-dark #pubs-container .scroller::-webkit-scrollbar,.bda-dark #pubs-container .scroller::-webkit-scrollbar-track,.bda-dark #pubs-container .scroller::-webkit-scrollbar-track-piece{background-color:#303030 !important;border-color:#303030 !important}.bda-dark #bda-qem-favourite-container .scroller::-webkit-scrollbar,.bda-dark #bda-qem-favourite-container .scroller::-webkit-scrollbar-track,.bda-dark #bda-qem-favourite-container .scroller::-webkit-scrollbar-track-piece{background-color:#303030 !important;border-color:#303030 !important}.bda-dark .emoji-picker .scroller::-webkit-scrollbar,.bda-dark .emoji-picker .scroller::-webkit-scrollbar-track,.bda-dark .emoji-picker .scroller::-webkit-scrollbar-track-piece,.bda-dark .emojiPicker-3m1S-j .scroller-3vODG7::-webkit-scrollbar,.bda-dark .emojiPicker-3m1S-j .scroller-3vODG7::-webkit-scrollbar-track,.bda-dark .emojiPicker-3m1S-j .scroller-3vODG7::-webkit-scrollbar-track-piece{background-color:#303030 !important;border-color:#303030 !important}.bda-dark #bda-qem-twitch-container .scroller::-webkit-scrollbar-thumb,.bda-dark #bda-qem-favourite-container .scroller::-webkit-scrollbar-thumb,.bda-dark .emoji-picker .scroller::-webkit-scrollbar-thumb,.bda-dark emojiPicker-3g68GS .scroller-3vODG7::-webkit-scrollbar-thumb,.bda-dark #pubs-container .scroller::-webkit-scrollbar-thumb{border-color:#202020 !important;background-color:#202020 !important}.bda-dark .server-row{background-color:#36393e}.bda-dark .server-row:nth-child(odd),.bda-dark #pubs-container{background-color:#2e3136}.bda-dark .server-info span{color:#d6d6d6}.bda-dark #pubs-header,.bda-dark #pubs-footer{background:#202020}.bda-dark #pubs-sterm{background:#36393e;color:#FFF}.bda-dark #pubs-searchbtn{background:#2e3136}.bda-dark .bd-select{background:#36393e}.bda-dark .server-info button{background-color:#202020}.bda-dark #pubs-cat{color:#FFF}.bda-dark .bd-dropdown-select{background-color:#2e3136}.bda-dark .bd-dropdown-list ul li:nth-child(odd){background:#36393e}.bda-dark .bd-dropdown-list ul li{background:#3d4046}.bda-dark .bd-dropdown-list ul li:hover{background:#2d2f33}.bda-dark #pubs-header button{background-color:#2e3136}.bda-dark .bd-dropdown .bd-dropdown-list ul::-webkit-scrollbar,.server-description::-webkit-scrollbar{width:12px}.bda-dark .bd-dropdown .bd-dropdown-list ul::-webkit-scrollbar-track,.server-description::-webkit-scrollbar-track{background:#303030}.bda-dark .bd-dropdown .bd-dropdown-list ul::-webkit-scrollbar-thumb,.server-description::-webkit-scrollbar-thumb{background:#202020}.bd-pfbtn{background:#7289da;color:#FFF;border-radius:5px;margin-left:10px}#bd-settings-sidebar .ui-tab-bar-item{color:#b9bbbe;padding-top:6px;padding-bottom:6px;margin-bottom:2px;padding:6px 10px;position:relative;font-size:16px;line-height:20px;border-radius:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;font-weight:500;cursor:pointer}#bd-settings-sidebar .ui-tab-bar-item:hover{color:#f6f6f7;background-color:hsla(216,4%,74%,.1)}#bd-settings-sidebar .ui-tab-bar-item.selected{color:#fff;background-color:#7289da}#bd-settings-sidebar .ui-tab-bar-header{color:#72767d;padding:6px 10px;font-size:12px;line-height:16px;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;font-weight:500}#bd-settings-sidebar .ui-tab-bar-separator{background-color:hsla(218,5%,47%,.3);margin-left:10px;margin-right:10px;height:1px;margin-bottom:8px;margin-top:8px}#bd-settingspane-container h2.ui-form-title{color:#f6f6f7;text-transform:uppercase;font-weight:600;display:inline-block}#bd-settingspane-container .ui-switch-item{flex-direction:column}#bd-settingspane-container .ui-switch-item h3{font-weight:500;color:#f6f6f7;flex:1;line-height:24px}#bd-settingspane-container .ui-switch-item .style-description{color:#72767d;font-size:14px;font-weight:500;margin-bottom:10px;line-height:30px;border-bottom:1px solid hsla(218,5%,47%,.3)}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:44px;height:24px;display:block;flex:0 0 auto}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper input{position:absolute;opacity:0;cursor:pointer;width:100%;height:100%;z-index:1}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch{background:#7289da;position:absolute;top:0;right:0;bottom:0;left:0;background:#72767d;border-radius:14px;transition:background .15s ease-in-out,box-shadow .15s ease-in-out,border .15s ease-in-out}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch:before{content:"";display:block;width:18px;height:18px;position:absolute;top:3px;left:3px;bottom:3px;background:#f6f6f7;border-radius:10px;transition:all .15s ease;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05)}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch.checked{background:#7289da}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch.checked:before{transform:translateX(20px)}#pubslayer .ui-tab-bar-item{color:#b9bbbe;padding-top:6px;padding-bottom:6px;margin-bottom:2px;padding:6px 10px;position:relative;font-size:16px;line-height:20px;border-radius:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;font-weight:500;cursor:pointer}#pubslayer .ui-tab-bar-item:hover{color:#f6f6f7;background-color:hsla(216,4%,74%,.1)}#pubslayer .ui-tab-bar-item.selected{color:#fff;background-color:#7289da}#pubslayer .ui-tab-bar-header{color:#72767d;padding:6px 10px;font-size:12px;line-height:16px;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;font-weight:500}#pubslayer #bd-settings-sidebar .ui-tab-bar-separator{background-color:hsla(218,5%,47%,.3);margin-left:10px;margin-right:10px;height:1px;margin-bottom:8px;margin-top:8px}#pubslayer h2.ui-form-title{color:#f6f6f7;text-transform:uppercase;font-weight:600}#pubslayer h5.ui-form-title{color:#f6f6f7}#pubslayer button{background:#7289da;color:#FFF;font-size:14px;font-weight:500;line-height:16px;padding:2px 16px;border:0;border-radius:3px;transition:background-color .17s ease}#pubslayer button:hover{background-color:#677bc4}#pubslayer input{color:#f6f6f7;background-color:rgba(0,0,0,.1);border-color:rgba(0,0,0,.3);padding:10px;height:30px;border-width:1px;border-style:solid;border-radius:3px;outline:0;transition:background-color .15s ease,border .15s ease}#bd-settingspane-container .scroller-wrap{height:100%}#bd-settingspane-container .scroller-wrap .scroller{display:flex}.bda-slist{user-select:text}.bda-slist li{background:rgba(32,34,37,.6);border:1px solid #202225;border-radius:5px;padding:5px 7px;max-height:175px;margin-bottom:20px;overflow:hidden}.bda-slist li.settings-open{max-height:800px;overflow-y:auto}.bda-slist .bda-header{color:#e6e6e7;font-weight:700;font-size:12px;overflow:hidden;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,0.1);padding-bottom:5px}.bda-slist .bda-description{margin:5px 0;color:#b0b6b9;overflow-y:auto;max-height:100px;padding:5px 0;word-break:break-word}.bda-slist .scroller::-webkit-scrollbar-track-piece,.bda-slist .scroller::-webkit-scrollbar-thumb{border-radius:0 !important;border-color:transparent}.bda-slist .bda-footer{border-top:1px solid rgba(255,255,255,0.1);padding-top:5px;color:#87909c;font-weight:700;font-size:12px;overflow:hidden;display:flex;justify-content:space-between;align-items:center}.bda-slist .bda-footer button{background:#7289da;color:#FFF;border-radius:5px;display:block;margin-left:auto;padding:2px 16px;transition:opacity 250ms ease}.bda-slist .bda-footer button:disabled{opacity:.4}.bda-slist .bda-footer a{color:#7289da}.bda-slist .bda-footer a:hover{text-decoration:underline}@keyframes bd-backdrop{to{opacity:.85}}@keyframes bd-modal-wrapper{to{transform:scale(1);opacity:1}}@keyframes bd-backdrop-closing{to{opacity:0}}@keyframes bd-modal-wrapper-closing{to{transform:scale(0.7);opacity:0}}.bd-backdrop{animation:bd-backdrop 250ms ease;animation-fill-mode:forwards;opacity:0;background-color:#000;transform:translateZ(0)}.bd-modal-wrapper.closing .bd-backdrop{animation:bd-backdrop-closing 200ms linear;animation-fill-mode:forwards;animation-delay:50ms;opacity:.85}.bd-modal-wrapper.closing .bd-modal{animation:bd-modal-wrapper-closing 250ms cubic-bezier(0.19,1,0.22,1);animation-fill-mode:forwards;opacity:1;transform:scale(1)}.bd-modal-wrapper .bd-modal{animation:bd-modal-wrapper 250ms cubic-bezier(0.175,0.885,0.32,1.275);animation-fill-mode:forwards;transform:scale(0.7);transform-origin:50% 50%;display:flex;align-items:center;box-sizing:border-box;contain:content;justify-content:center;top:0;left:0;bottom:0;right:0;opacity:0;pointer-events:none;position:absolute;z-index:1000}.bd-modal-wrapper .bd-modal-inner{display:flex;contain:layout;flex-direction:column;pointer-events:auto;border:1px solid rgba(28,36,43,.6);border-radius:5px;box-shadow:0 2px 10px 0 rgba(0,0,0,.2);overflow:hidden;max-height:660px;min-height:200px;width:440px;user-select:text}.bd-modal-wrapper .bd-startup-modal .bd-modal-inner{height:500px;width:700px}.bd-modal-wrapper .header{background-color:#35393e;box-shadow:0 2px 3px 0 rgba(0,0,0,.2);padding:12px 20px;z-index:1;color:#fff;font-size:16px;font-weight:700;line-height:19px}.bd-modal-wrapper .bd-modal-body{background-color:#36393f;color:#fff;flex-direction:row;overflow:hidden;display:flex;flex-direction:column;flex:1;contain:layout;position:relative}.bd-modal-wrapper .scroller{padding:10px}.bd-modal-wrapper .bd-startup-modal .bd-modal-body{padding:0}.bd-modal-wrapper .scroller{overflow-y:auto}.bd-modal-wrapper .footer{display:flex;justify-content:flex-end;padding:10px 20px}.bd-modal-wrapper .footer button{background-color:#7289da;color:#fff;min-height:32px;min-width:60px;align-items:center;border-radius:3px;display:flex;font-size:14px;font-weight:500;justify-content:center;line-height:16px;padding:2px 16px;user-select:none}.bd-modal-wrapper .footer button:hover{background-color:#677bc4}.bd-modal-wrapper .footer button:active{background-color:#5f6fb9}.bd-modal-wrapper .tab-bar-container{align-items:center;border-bottom:0;background:rgba(0,0,0,0.2);box-shadow:0 2px 3px 0 rgba(0,0,0,.1);display:flex;flex-direction:row;justify-content:space-between;margin-bottom:15px}.bd-modal-wrapper .tab-bar.TOP{margin:0;border:0}.bd-modal-wrapper .tab-bar-container .tab-bar-item{margin:0 15px;padding:15px 0;color:#fff !important;opacity:.5;transition:opacity 200ms ease}.bd-modal-wrapper .tab-bar-container .tab-bar-item:hover{border-color:#fff}.bd-modal-wrapper .tab-bar-container .tab-bar-item.selected{opacity:1;border-color:#fff}.bd-modal-wrapper .tab-bar.TOP .tab-bar-item+.tab-bar-item{margin:0}.bd-modal-wrapper .table-header{display:flex;justify-content:space-between;color:#fff;font-weight:700;padding-bottom:10px;margin:3px 15px 0 15px;border-bottom:1px solid #fff;font-size:14px}.bd-modal-wrapper .table-column{width:25%}.bd-modal-wrapper .table-column.column-error{width:50%}.bd-modal-wrapper .table-column{word-wrap:break-word}.bd-modal-wrapper .errors{display:flex;flex-direction:column;padding:0;font-size:14px;padding:0 5px}.bd-modal-wrapper .error{display:flex;color:#fff;border-bottom:1px solid rgba(255,255,255,0.25);padding:15px 0;align-items:center}.bd-modal-wrapper .bd-startup-modal .scroller{padding-top:0}.bd-toasts{position:fixed;display:flex;top:0;flex-direction:column;align-items:center;justify-content:flex-end;pointer-events:none;z-index:4000}@keyframes bd-toast-up{from{transform:translateY(0);opacity:0}}.bd-toast{animation:bd-toast-up 300ms ease;transform:translateY(-10px);background:#36393f;padding:10px;border-radius:5px;box-shadow:0 0 0 1px rgba(32,34,37,.6),0 2px 10px 0 rgba(0,0,0,.2);font-weight:500;color:#fff;user-select:text;font-size:14px;opacity:1;margin-top:10px;pointer-events:none;user-select:none}@keyframes bd-toast-down{to{transform:translateY(0);opacity:0}}.bd-toast.closing{animation:bd-toast-down 200ms ease;animation-fill-mode:forwards;opacity:1;transform:translateY(-10px)}.bd-toast.icon{padding-left:30px;background-size:20px 20px;background-repeat:no-repeat;background-position:6px 50%}.bd-toast.toast-info{background-color:#4a90e2}.bd-toast.toast-info.icon{background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtNmgydjZ6bTAtOGgtMlY3aDJ2MnoiLz48L3N2Zz4=)}.bd-toast.toast-success{background-color:#43b581}.bd-toast.toast-success.icon{background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}.bd-toast.toast-danger,.bd-toast.toast-error{background-color:#f04747}.bd-toast.toast-danger.icon,.bd-toast.toast-error.icon{background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTEyIDJDNi40NyAyIDIgNi40NyAyIDEyczQuNDcgMTAgMTAgMTAgMTAtNC40NyAxMC0xMFMxNy41MyAyIDEyIDJ6bTUgMTMuNTlMMTUuNTkgMTcgMTIgMTMuNDEgOC40MSAxNyA3IDE1LjU5IDEwLjU5IDEyIDcgOC40MSA4LjQxIDcgMTIgMTAuNTkgMTUuNTkgNyAxNyA4LjQxIDEzLjQxIDEyIDE3IDE1LjU5eiIvPiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PC9zdmc+)}.bd-toast.toast-warning,.bd-toast.toast-warn{background-color:#ffa600;color:white}.bd-toast.toast-warning.icon,.bd-toast.toast-warn.icon{background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMSAyMWgyMkwxMiAyIDEgMjF6bTEyLTNoLTJ2LTJoMnYyem0wLTRoLTJ2LTRoMnY0eiIvPjwvc3ZnPg==)}.bd-blue .bd-pfbtn{background:#3a71c1}.bd-blue .bot-tag{background:#3a71c1}.bd-blue .bot-tag.bot-tag-invert{color:#3a71c1 !important}.bd-blue .spinner-wandering-cubes .spinner-item{background-color:#3a71c1}.bd-blue .spinner-chasing-dots .spinner-item{background-color:#3a71c1}.bd-blue .spinner.spinner-spinning-circle .path{stroke:#3a71c1}.bd-blue .note textarea::-moz-selection{background:#3a71c1}.bd-blue .note textarea::selection{background:#3a71c1}.bd-blue .scroller-wrap .scrollbar .thumb:after{background-color:#3a71c1}.bd-blue #autocomplete-popout .empty h4{color:#3a71c1}.bd-blue .user-popout .header{background:#3a71c1 url(/assets/8cd2f31a12333149b89ef3931626ab83.png)}.bd-blue .checkbox .checkbox-inner input[type=checkbox]:checked+span{background-color:#3a71c1;border-color:#3a71c1}.bd-blue .checkbox .checkbox-inner.alt input[type=checkbox]:checked+span:after{border-color:#3a71c1}.bd-blue .download-apps .footer a{color:#3a71c1}.bd-blue .download-apps .platforms .platform.active{border-color:#3a71c1}.bd-blue .download-apps .platforms .platform.active .download-button{background-color:#3a71c1}.bd-blue .radio .radio-inner span:after{background:#3a71c1}.bd-blue .radio:hover span:after{background:#3a71c1}.bd-blue .radio-image .radio-inner span:after{border:2px solid #3a71c1}.bd-blue .radio-image:hover span:after{border-color:#3a71c1}.bd-blue #overlay-wrapper .overlay .guild-panel .guild-panel-header{background-color:#3a71c1}.bd-blue #overlay-wrapper .overlay .guild-panel .btn-call{color:#3a71c1}.bd-blue .overlay-user-popout .user-popout-options .btn{background-color:#3a71c1}.bd-blue .clipboard-input-inner input::-moz-selection{background:#3a71c1}.bd-blue .clipboard-input-inner input::selection{background:#3a71c1}.bd-blue .btn-help:hover{background:#3a71c1}.bd-blue .popout-3sVMXz.popoutLeft-30WmrD header:before{border-left-color:#3a71c1}.bd-blue .popout-3sVMXz.popout-right header:before{border-right-color:#3a71c1}.bd-blue .popout-3sVMXz.popoutBottom-1YbShG header:before{border-bottom-color:#3a71c1}.bd-blue .popout-3sVMXz.popoutInvert-3UdKhn:not(.popoutBottom-1YbShG).popoutTop-3uu9vG header:before{border-top-color:#3a71c1}.bd-blue .guild-channels .channel-text.selected:before{border-left:2px solid #3a71c1}.bd-blue .guild-channels .channel-text:hover:not(.unread):before{border-left:2px solid #3a71c1}.bd-blue .guild-channels .channel-text.unread:not(.selected):not(.channel-muted).selected:before{background-color:#3a71c1}.bd-blue .guild-channels .channel-voice-states li.speaking .avatar-small{background-color:#3a71c1}.bd-blue .tooltip{background-color:#3a71c1}.bd-blue .tooltip.tooltip-top:after{border-top-color:#3a71c1}.bd-blue .tooltip.tooltip-bottom:after{border-bottom-color:#3a71c1}.bd-blue .tooltip.tooltip-left:after{border-left-color:#3a71c1}.bd-blue .tooltip.tooltip-right:after{border-right-color:#3a71c1}.bd-blue .button{background-color:#3a71c1}.bd-blue .tutorial-popout .button-area .skip-tips a{color:#3a71c1}.bd-blue .chat .has-more button{color:#3a71c1}.bd-blue .chat .new-messages-bar:hover{background-color:#3a71c1}.bd-blue .message-group .edit-message .edit-operation>a{color:#3a71c1}.bd-blue .message-group .edit-message .channel-textarea-inner{border-color:#3a71c1}.bd-blue .mention{color:#3a71c1}.bd-blue .mention:hover{background-color:#3a71c1}.bd-blue .mentioned .mention:hover{color:#3a71c1}.bd-blue .markdown-modal .markdown-modal-header b{color:#3a71c1}.bd-blue .change-log .changelog-fixed{background-color:#3a71c1}.bd-blue .change-log .changelog-button .cta{background-color:#3a71c1}.bd-blue .form .form-header{color:#3a71c1}.bd-blue .form header{color:#3a71c1}.bd-blue .form .control-group textarea:focus{border-bottom:2px solid #3a71c1}.bd-blue .form .btn-primary{background-color:#3a71c1}.bd-blue .region-select button{color:#3a71c1}.bd-blue .region-select:hover button{border-color:#3a71c1}.bd-blue .region-select:hover button{background-color:#3a71c1}.bd-blue .region-select-flag{background-color:#3a71c1}.bd-blue .region-select-flag.vip:after{background:#3a71c1}.bd-blue .region-select-modal .region-select-modal-header{color:#3a71c1}.bd-blue .region-select-modal .region-select-modal-option:hover{border-color:#3a71c1}.bd-blue .upload-drop-modal .bgScale{background:#3a71c1}.bd-blue .upload-modal{background-color:#3a71c1}.bd-blue .upload-modal .inner .file .icon.image{border:2px solid #3a71c1}.bd-blue .avatar-uploader-inner{background-color:#3a71c1}.bd-blue .create-guild-container h5{color:#3a71c1}.bd-blue .create-guild-container .join-server .sample-link{color:#3a71c1}.bd-blue .create-guild-container .action.create .action-header{color:#3a71c1}.bd-blue .tab-bar.TOP .tab-bar-item.selected{border-bottom:2px solid #3a71c1;color:#3a71c1}.bd-blue .tab-bar.SIDE .tab-bar-item:before{border-left:4px solid #3a71c1}.bd-blue .color-picker-popout input:focus{border-color:#3a71c1}.bd-blue #settings-roles .roles li.selected:before{color:#3a71c1;background-color:#3a71c1}.bd-blue #settings-roles .roles li.sorting:after{border:2px solid #3a71c1}.bd-blue .guild-settings-modal-overview a{color:#3a71c1}.bd-blue .need-help-modal .header{background-color:#3a71c1}.bd-blue .search-popout .date-picker .date-picker-hint .hint-value{background-color:#3a71c1}.bd-blue .react-datepicker .react-datepicker__day:hover{background-color:#3a71c1}.bd-blue .react-datepicker .react-datepicker__day.react-datepicker__day--today:after{background-color:#3a71c1}.bd-blue .messages-popout-wrap .has-more button{color:#3a71c1}.bd-blue .btn-filled{background-color:#3a71c1}.bd-blue .btn-filled.white{color:#3a71c1}.bd-blue .emoji-picker .premium-promo .btn{background-color:#3a71c1}.bd-blue .emojiPicker-3m1S-j .premium-promo .btn{background-color:#3a71c1}.bd-blue .channel-textarea.has-results .channel-textarea-inner{border-color:#3a71c1}.bd-blue .channel-textarea-autocomplete-inner{border:2px solid #3a71c1}.bd-blue .channel-textarea-autocomplete-inner header{background-color:#3a71c1}.bd-blue .channel-textarea-autocomplete-inner ul.images li.active{border-color:#3a71c1}.bd-blue .reaction.reaction-me .reaction-count{color:#3a71c1}.bd-blue .theme-dark .reaction.reaction-me .reaction-count{color:#3a71c1}.bd-blue .spinner-wandering-cubes .ui-spinner-item{background-color:#3a71c1}.bd-blue .spinner-chasing-dots .ui-spinner-item{background-color:#3a71c1}.bd-blue .theme-light .ui-spinner.spinner-spinning-circle .path{stroke:#3a71c1}.bd-blue .theme-dark .ui-spinner.spinner-spinning-circle .path{stroke:#3a71c1}.bd-blue .theme-dark .ui-spinner.spinner-spinning-circle .path-2{stroke:#3a71c1}.bd-blue .ui-button.brand.filled{background-color:#3a71c1}.bd-blue .ui-button.brand.filled:disabled{background-color:#3a71c1}.bd-blue .ui-button.brand.inverted{color:#3a71c1}.bd-blue .ui-button.brand.outlined{color:#3a71c1}.bd-blue .ui-button.brand.outlined:active{background-color:#3a71c1;border-color:#3a71c1}.bd-blue .ui-button.brand.outlined:disabled{color:#3a71c1}.bd-blue .ui-button.brand.link{color:#3a71c1}.bd-blue .ui-button.brand.link:not(:disabled):hover .ui-button-contents{background-image:-webkit-linear-gradient(bottom,transparent,transparent 1px,#3a71c1 0,#3a71c1 2px,transparent 0);background-image:linear-gradient(to top,transparent,transparent 1px,#3a71c1 1px,#3a71c1 2px,transparent 2px)}.bd-blue .ui-button.brand.ghost{color:#3a71c1}.bd-blue .ui-button.brand .ui-spinner-item{background-color:#3a71c1}.bd-blue .theme-blurple .ui-button.primary.filled{color:#3a71c1}.bd-blue .theme-blurple .ui-form-title.h5{color:#3a71c1}.bd-blue .btn-filled{background-color:#3a71c1}.bd-blue .btn-filled.white{color:#3a71c1}.bd-blue .progress .progress-bar{background-color:#3a71c1}.bd-blue .radio-theme input[type=radio]:checked~label{border-color:#3a71c1}.bd-blue .now-playing{background:#3a71c1}.bd-blue .user-settings-modal-account .discord-tag{color:#3a71c1}.bd-blue .modal-new-user>.steps .step-3 .instant-invite input{color:#3a71c1}.bd-blue .modal-new-user h5{color:#3a71c1}.bd-blue .modal-new-user .steps-wrap .steps li.on:before{background-color:#3a71c1}.bd-blue .modal-new-user .steps-wrap .steps li.active{background-color:#3a71c1}.bd-blue .ui-tab-bar.SIDE .ui-tab-bar-item.selected{background-color:#3a71c1}.bd-blue .ui-tab-bar.SIDE .ui-tab-bar-item:active{background-color:#3a71c1}.bd-blue .ui-tab-bar.SIDE .ui-tab-bar-item.brand{color:#3a71c1}.bd-blue .theme-light .ui-text-input .input:focus{border-color:#3a71c1}.bd-blue .theme-dark .ui-text-input .input:focus{border-color:#3a71c1}.bd-blue .theme-blurple .ui-text-input .input{color:#3a71c1}.bd-blue .theme-blurple .ui-text-input .input:hover{border-color:#3a71c1}.bd-blue .theme-blurple .ui-select:hover .Select .Select-control{border-color:#3a71c1}.bd-blue .theme-blurple .ui-select:hover .Select .Select-control .Select-arrow{border-color:#3a71c1 transparent transparent}.bd-blue .theme-blurple .ui-select .Select.is-open .Select-control{border-color:#3a71c1}.bd-blue .theme-blurple .ui-select .Select-menu-outer{border-color:#3a71c1}.bd-blue .theme-blurple .ui-select .Select-menu-outer .Select-option{color:#3a71c1}.bd-blue .theme-blurple .ui-select .Select-value-label{color:#3a71c1}.bd-blue .ui-card-brand{background:#3a71c1;border-color:#3a71c1}.bd-blue .ui-checkbox-wrapper .ui-checkbox.checked polyline{stroke:#3a71c1}.bd-blue .ui-checkbox-wrapper .ui-checkbox.checked.inverted{background:#3a71c1}.bd-blue .ui-region-flag.vip:after{background:#3a71c1}.bd-blue .ui-scroller-wrap .scrollbar .thumb:after{background-color:#3a71c1}.bd-blue .ui-quick-select-popout-option .ui-icon-check-mark .ui-icon-fg{stroke:#3a71c1}.bd-blue .ui-switch-checkbox:checked+.ui-switch{background:#3a71c1}.bd-blue #instant-invite-modal .clipboard-input-inner input{color:#3a71c1}.bd-blue #instant-invite-modal .copy{background-color:#3a71c1}.bd-blue .color-brand{color:#3a71c1}.bd-blue .webkhook-modal-header.ui-form-title.h5{color:#3a71c1}.bd-blue .ui-bot-tag{background:#3a71c1}.bd-blue .ui-bot-tag.invert{color:#3a71c1}.bd-blue #user-profile-modal .btn{background-color:#3a71c1}.bd-blue #user-profile-modal .guilds .avatar-large{background-color:#3a71c1}.bd-blue .premium-payment-modal{background-color:#3a71c1}.bd-blue .premium-payment-modal .premium-payment-button{color:#3a71c1}.bd-blue .premium-payment-modal .premium-payment-button .spinner .spinner-item{background-color:#3a71c1}.bd-blue .invite-modal .avatar-xxxlarge{background-color:#3a71c1}.bd-blue .ui-screenshare-modal-tile .image-container img.selected{border-color:#3a71c1}.bd-blue .detected-platform-accounts-modal .btn-group .btn-primary{background-color:#3a71c1}.bd-blue .ui-new-terms-modal .title{color:#3a71c1}.bd-blue #oauth2-authorize .authorize-inner header{background:#3a71c1}.bd-blue #oauth2-authorize .authorize-inner footer button.primary{background:#3a71c1}.bd-blue #oauth2-authorize .select select:focus{border-color:#3a71c1}.bd-blue #oauth2-authorize .select.focus:after{border-top-color:#3a71c1}.bd-blue #oauth2-authorize .scope-bot .avatar-large{background-color:#3a71c1}.bd-blue .invite-header .invite-guild-icon{background-color:#3a71c1}.bd-blue .invite-marketing .invite-marketing-header{color:#3a71c1}.bd-blue .invite-marketing .invite-marketing-button{color:#3a71c1;border:2px solid #3a71c1}.bd-blue .invite-mobile .top{background-color:#3a71c1}.bd-blue .invite-mobile .link.purple{background-color:#3a71c1}.bd-blue .verify-connected-account .btn{background-color:#3a71c1}.bd-blue #unsupported-browser li:hover{border-color:#3a71c1}.bd-blue #unsupported-browser li:hover .btn{background-color:#3a71c1;border-color:#3a71c1}.bd-blue .ui-slider .slider-bar-fill{background:#3a71c1}.bd-blue .popout-menu .popout-menu-item.invite{color:#3a71c1}.bd-blue .channel-members .invite-btn{background-color:#3a71c1}.bd-blue .chat .welcome-message h1{color:#3a71c1}.bd-blue .channel-textarea-guard button{background-color:#3a71c1}.bd-blue .private-channel-recipients-invite .footer button{background-color:#3a71c1}.bd-blue .private-channel-recipients-invite .footer button:disabled:hover{background-color:#3a71c1}.bd-blue .private-channel-recipients-invite .error-state.not-friends .btn{background:#3a71c1}.bd-blue .ui-call-avatar-border.voice.video.selected{box-shadow:inset 0 0 0 2px #3a71c1}.bd-blue .ui-call-avatar-border.video.selected:not(.speaking){box-shadow:inset 0 0 0 2px #3a71c1}.bd-blue .invite-banner{background-color:#3a71c1}.bd-blue .invite-banner .instant-invite:not(.clipboard-input-copied) .clipboard-input-inner button{color:#3a71c1}.bd-blue .invite-banner.invite-banner-1 .instant-invite .clipboard-input-inner button:before{background:-webkit-linear-gradient(left,hsla(0,0%,100%,0),#3a71c1);background:linear-gradient(to right,hsla(0,0%,100%,0),#3a71c1)}.bd-blue .add-friend-input-wrapper .btn:disabled{background-color:#3a71c1}.bd-blue #friends .btn{background-color:#3a71c1}.bd-blue #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary{background-color:#3a71c1}.bd-blue #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary .badge{color:#3a71c1}.bd-blue #friends .friends-table .friends-row .friends-column-guilds .avatar-small{background-color:#3a71c1}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.selected .badge{background-color:#3a71c1}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary{background-color:#3a71c1}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary .badge{color:#3a71c1}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary.selected{color:#3a71c1;background-color:#fff}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary.selected .badge{background-color:#3a71c1}.bd-blue .private-channels .search-result:hover:before{border-left:2px solid #3a71c1}.bd-blue .private-channels .channel.selected .icon-friends{background-color:#3a71c1}.bd-blue .private-channels .channel.selected:before{border-left:2px solid #3a71c1}.bd-blue #rtc-debug-modal #users-section .user-list li.selected:before{color:#3a71c1;background-color:#3a71c1}.bd-blue .notice.notice-brand{background-color:#3a71c1}.bd-blue .notice.notice-brand .btn:hover{color:#3a71c1}.bd-blue .theme-light .ui-text-input .input:focus{border-color:#3a71c1}.bd-blue .theme-dark .ui-text-input .input:focus{border-color:#3a71c1}.bd-blue .theme-blurple .ui-text-input .input{color:#3a71c1}.bd-blue .theme-blurple .ui-text-input .input:hover{border-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-navigation .button{color:#3a71c1}.bd-blue .onboarding-navigation .step-status .step.current{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide.mic-test .content.waiting .button{color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .ui-switch-wrapper:not(.disabled):not(.clear):hover .ui-switch-checkbox:checked+.ui-switch{background:#3f79ce}.bd-blue *[style*="border-color: rgb(114, 137, 218)"]{border-color:#3a71c1 !important}.bd-blue *[style*="background-color: rgb(114, 137, 218)"]{background-color:#3a71c1 !important}.bd-blue .bda-slist .bda-footer button{background-color:#3a71c1}.bd-blue .bda-slist .bda-footer a{color:#3a71c1}.bd-blue .bd-modal-wrapper .footer button{background-color:#3a71c1}.bd-blue .bd-modal-wrapper .footer button:hover{background-color:#356bbb}.bd-blue .bd-modal-wrapper .footer button:active{background-color:#2a61b1} +.bd-loaderv2{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FscXVlXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAwMCAyMDAwIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyMDAwIDIwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGZpbGw9IiMzRTgyRTUiIGQ9Ik0xNDAyLjIsNjMxLjdjLTkuNy0zNTMuNC0yODYuMi00OTYtNjQyLjYtNDk2SDY4LjR2NzE0LjFsNDQyLDM5OFY0OTAuN2gyNTdjMjc0LjUsMCwyNzQuNSwzNDQuOSwwLDM0NC45ICAgSDU5Ny42djMyOS41aDE2OS44YzI3NC41LDAsMjc0LjUsMzQ0LjgsMCwzNDQuOGgtNjk5djM1NC45aDY5MS4yYzM1Ni4zLDAsNjMyLjgtMTQyLjYsNjQyLjYtNDk2YzAtMTYyLjYtNDQuNS0yODQuMS0xMjIuOS0zNjguNiAgIEMxMzU3LjcsOTE1LjgsMTQwMi4yLDc5NC4zLDE0MDIuMiw2MzEuN3oiLz48cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMTI2Mi41LDEzNS4yTDEyNjIuNSwxMzUuMmwtNzYuOCwwYzI2LjYsMTMuMyw1MS43LDI4LjEsNzUsNDQuM2M3MC43LDQ5LjEsMTI2LjEsMTExLjUsMTY0LjYsMTg1LjMgICBjMzkuOSw3Ni42LDYxLjUsMTY1LjYsNjQuMywyNjQuNmwwLDEuMnYxLjJjMCwxNDEuMSwwLDU5Ni4xLDAsNzM3LjF2MS4ybDAsMS4yYy0yLjcsOTktMjQuMywxODgtNjQuMywyNjQuNiAgIGMtMzguNSw3My44LTkzLjgsMTM2LjItMTY0LjYsMTg1LjNjLTIyLjYsMTUuNy00Ni45LDMwLjEtNzIuNiw0My4xaDcyLjVjMzQ2LjIsMS45LDY3MS0xNzEuMiw2NzEtNTY3LjlWNzE2LjcgICBDMTkzMy41LDMxMi4yLDE2MDguNywxMzUuMiwxMjYyLjUsMTM1LjJ6Ii8+PC9nPjwvc3ZnPg==);position:fixed;bottom:5px;right:5px;z-index:2147483647;display:block;width:20px;height:20px;background-size:100% 100%;-webkit-animation:bd-loaderv2-animation 1.5s ease-in-out infinite}@-webkit-keyframes bd-loaderv2-animation{0%{opacity:.05}50%{opacity:.6}100%{opacity:.05}}.ui-standard-sidebar-view .bd-psm{background-color:#292b2f;box-shadow:0 0 12px 6px rgba(31,31,31,0.32);border:1px solid #3f4146;width:60vw;height:80vh;border-radius:6px}.ui-standard-sidebar-view #bd-customcss-attach-controls button,.bd-detached-css-editor #bd-customcss-attach-controls button{margin:0;width:100px;background:#31332b;color:#FFF;height:26px;font-weight:600;margin-top:5px;border-radius:3px}.ui-standard-sidebar-view #bd-customcss-attach-controls button:hover,.bd-detached-css-editor #bd-customcss-attach-controls button:hover{background:#3b3e44}.cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:700;color:#00f}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin{line-height:1em;font-weight:700;color:#077}.cm-s-neat span.cm-special{line-height:1em;font-weight:700;color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-atom,.cm-s-neat span.cm-number{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-neat .CodeMirror-matchingbracket{outline:grey solid 1px;color:#000 !important}#custom-css-ta{background:#d8d8d8;height:200px;font-family:"Consolas"}.content-region .CodeMirror,.content-region .cm-s-material .CodeMirror-gutters,#bd-customcss-detach-container .CodeMirror,#bd-customcss-detach-container .cm-s-material .CodeMirror-gutters{background:#292b2f !important}.content-region #bd-customcss-attach-controls,#bd-customcss-detach-container #bd-customcss-attach-controls{background:#272822;color:#FFF;border:0;box-shadow:0 1px 0 0 #2f3129 inset}.content-region #bd-customcss-pane,.content-region #bd-customcss-innerpane,#bd-customcss-detach-container #bd-customcss-pane,#bd-customcss-detach-container #bd-customcss-innerpane{min-height:calc(80vh - 165px)}.content-region .CodeMirror,.content-region .CodeMirror-scroll{max-height:calc(95vh - 165px);min-height:calc(95vh - 165px);height:auto}.content-region .CodeMirror-simplescroll-vertical,.content-region .CodeMirror-simplescroll-horizontal,#bd-customcss-detach-container .CodeMirror-simplescroll-vertical,#bd-customcss-detach-container .CodeMirror-simplescroll-horizontal{background:transparent !important}.content-region .CodeMirror-simplescroll-vertical,#bd-customcss-detach-container .CodeMirror-simplescroll-vertical{margin-right:3px !important}.content-region .CodeMirror-simplescroll-horizontal,#bd-customcss-detach-container .CodeMirror-simplescroll-horizontal{margin-bottom:3px !important}.content-region .CodeMirror-simplescroll-vertical div,.content-region .CodeMirror-simplescroll-horizontal div,#bd-customcss-detach-container .CodeMirror-simplescroll-vertical div,#bd-customcss-detach-container .CodeMirror-simplescroll-horizontal div{background:#18191c !important;border:none !important;border-radius:5px !important}.content-region .CodeMirror-scrollbar-filler,#bd-customcss-detach-container .CodeMirror-scrollbar-filler{display:none !important}.ui-standard-sidebar-view #editor-detached h3{color:#87909c;font-weight:600;font-size:22px}.ui-standard-sidebar-view #editor-detached button{margin:auto;margin-left:calc(50% - 100px);margin-top:20px;background:#7289da;color:#FFF;font-weight:600;border-radius:5px;font-size:20px}.bd-blue .ui-standard-sidebar-view #editor-detached button{background:#3a71c1}.ui-standard-sidebar-view .bd-versioninfo-wrapper{bottom:0;left:0;position:fixed;background:inherit;right:0;padding:5px}.ui-standard-sidebar-view .bd-versioninfo-wrapper span{color:#b9bbbe;font-weight:600;font-size:11px}.ui-standard-sidebar-view .bd-versioninfo-wrapper a{font-size:11px}.bd-server-card .bd-server-tags{flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:0;line-height:24px;font-size:12px;color:#b9bbbe;font-weight:700;margin-right:10px}.ui-card.ui-card-primary.bd-server-card:first-child{margin-bottom:13px}.ui-card.ui-card-primary.bd-server-card:first-child:after{border:3px solid #7289da;content:"";display:block;position:absolute;left:0;right:0;margin-top:4px}.bd-server-card.bd-server-card-pinned{margin-bottom:15px}.bd-server-card.bd-server-card-pinned:after{background:#3a71c1;content:"";height:3px;width:100%;display:block;margin-top:7px;position:absolute;top:100%}.bd-server-description-container{color:#b9bbbe;min-height:65px;max-height:65px;border-top:1px solid #3f4146;border-bottom:1px solid #3f4146;padding-top:5px;font-size:13px}.bd-server-header{justify-content:space-between;font-weight:600}.bd-server-card{display:flex}.bd-server-content{padding:5px 10px;flex:1}.bd-server-image{min-width:115px;min-height:115px;max-width:115px;max-height:115px}.bd-server-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-right:15px;max-width:330px;flex:1 1 50%}.bd-layer{-ms-flex-direction:column;-webkit-box-direction:normal;-webkit-box-orient:vertical;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:column;left:0;position:absolute;right:0;top:0}.spoiler{color:transparent !important}.spoiler img{display:none}.spoiler:before{content:"Spoiler";display:block;background:#1d1d1d;color:#adadad !important;min-height:30px;text-align:center;line-height:100%;font-family:"Consolas";padding-top:5px}.emotemenu-enabled .channel-textarea-inner textarea{margin-right:45px !important}#bdbeta{background:red}.editor-wrapper{display:flex}.line-numbers,.editor{line-height:normal;font-family:Consolas,monospace;box-sizing:border-box;height:calc(100vh - 250px);font-size:14px}.line-numbers{white-space:pre;color:gray;padding:10px 5px 0 5px;background:#24262a;overflow:hidden}.editor{width:100%;background:#292b2f;outline:0;color:white;padding:10px;resize:none}#bd-customcss-detach-container .editor-wrapper,#bd-customcss-detach-container .line-numbers,#bd-customcss-detach-container .editor{height:100%}#emote-menu{background:#36393e;height:0;width:300px;position:absolute;bottom:45px;right:0;border:1px solid #000;border-radius:5px 0 0 0;overflow:hidden;visibility:hidden;transition:all 1s;-webkit-transition:all 1s}.emotemenu-open{height:450px !important;visibility:visible !important}#emote-menu-header{width:100%;height:30px;background-color:#36393e}.emote-menu-tab{float:left;width:130px;text-align:center;padding:7px;color:#adadad;background-color:#424549;cursor:pointer}.emote-menu-tab:hover{background-color:#45484c}#emote-menu-inner,#emote-menu-inner-fav{height:412px}.emote-menu-tab-selected{background-color:#36393e}.emote-menu-tab-selected:hover{background-color:#36393e}#emote-container{padding:10px}.emote-container{display:inline-block;padding:2px;border-radius:5px;width:30px;height:30px;position:relative}.emote-icon{max-width:100%;max-height:100%;position:absolute;margin:auto;top:0;right:0;bottom:0;left:0;cursor:pointer}.emote.stop-animation{animation:none !important}.emote-container:hover{background:rgba(123,123,123,0.37)}.emoteflip,.emotespinflip{transform:scaleX(-1)}.emotespin{animation:1s emote-spin infinite linear}.emote1spin{animation:1s emote-spin-reverse infinite linear}.emotespin2{animation:.5s emote-spin infinite linear}.emote2spin{animation:.5s emote-spin-reverse infinite linear}.emotespin3{animation:.2s emote-spin infinite linear}.emote3spin{animation:.2s emote-spin-reverse infinite linear}.emotepulse{animation:1s emote-pulse infinite linear}.emotetr{transform:translateX(-3px)}.emotebl{transform:translateY(-3px)}.emotebr{transform:translate(-3px,-3px)}.emoteshake{animation:1s emote-shake infinite linear}.emoteflap{transform:scaleY(-1) !important}.emoteshake2{animation:emote-shake2 .3s linear infinite}.emoteshake3{animation:emote-shake3 .1s linear infinite}@keyframes emote-shake2{25%{transform:translate(-1px,-1px)}50%{transform:translate(-1px,1px)}75%{transform:translate(1px,1px)}75%{transform:translate(1px,-1px)}}@keyframes emote-shake3{25%{transform:translate(-1px,-1px)}50%{transform:translate(-1px,1px)}75%{transform:translate(1px,1px)}75%{transform:translate(1px,-1px)}}@keyframes emote-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes emote-spin-reverse{from{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes emote-pulse{0%{-webkit-transform:scale(1,1)}50%{-webkit-transform:scale(1.2,1.2)}100%{-webkit-transform:scale(1,1)}}@keyframes emote-shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}#tc-settings-panel{position:fixed;width:50%;height:75%;background:#2e3136;display:block;z-index:9001;margin-left:25%;margin-top:5%;border:1px solid #000;box-shadow:0 0 20px 0 #000;max-height:800px;min-width:750px}#tc-settings-panel-header{background:#36393e;height:60px;border-bottom:1px solid #000;box-shadow:0 1px 0 0 #4e4e4e}#tc-settings-panel-header h2{margin:0;line-height:60px;margin-left:10px;color:#adadad;display:inline-block;float:left}#tc-settings-panel-header span{float:right;display:inline;line-height:50px;margin-right:15px;font-size:29px;font-weight:bold;color:#adadad}#rmenu{width:auto;background:#505050;position:absolute;z-index:999999;display:none;box-shadow:0 0 2px #000;padding:2px}#rmenu ul a{text-decoration:none;color:#FFF;padding:3px}#tc-settings-panel-body{overflow:auto}#tc-settings-panel-body ul{overflow:auto;position:absolute;padding:0;margin-top:0;border-bottom:1px solid #000;left:0;right:0;bottom:40px;top:61px}#tc-settings-panel-body ul li{padding:15px;color:#adadad;background:#2e3136;border-bottom:1px solid #000;box-shadow:0 1px 0 #404040 inset}#tc-settings-panel-body ul li:nth-child(odd){background:#33363b}#tc-settings-panel-body ul li h2{display:inline}#tc-links a{color:#FFF}#tc-settings-panel-footer{background:#36393e;height:40px;position:absolute;bottom:0;right:0;left:0;border-top:1px solid #000;box-shadow:0 1px 0 #505050 inset;line-height:40px;padding-left:10px;color:#adadad !important}#tc-links{float:right;margin-right:10px}.tc-switch{background:#2e3136;width:100px;height:24px;display:inline-block;float:right;margin:-7px;border:1px solid #000;outline:1px solid #404040;cursor:pointer}.tc-switch.disabled{background:gray;cursor:default}.tc-switch.disabled span{background:gray !important}.tc-switch.disabled .tc-switch-on{border-left:1px gray !important}.tc-switch span{line-height:24px;display:inline-block;width:49px;text-align:center;height:24px}.tc-switch-off{border-right:1px solid #000}.tc-switch-on{border-left:1px solid #404040}.tc-switch-on.active{background:green;border-left:1px solid #00ae08}.tc-switch-off.active{background:#860606}.bd-minimal .divider-32i8lo{opacity:0}.bd-minimal .large-3ChYtB{max-width:20px;max-height:20px;background-size:100%;margin-right:2px;margin-top:0;border-radius:0}.bd-minimal .content-3dzVd8{border-left:2px solid #ebebeb;padding-left:2px}.bd-minimal .theme-dark .content-3dzVd8{border-left:2px solid #303030}.bd-minimal .username-_4ZSMR{font-size:small}.bd-minimal.bd-minimal-chan .channels-Ie2l6A{display:none}.bd-minimal .container-1YxwTf{padding:5px}.bd-minimal .embed{padding:2px}.bd-minimal .members-1998pB .small-5Os1Bb{max-width:15px;max-height:15px;background-size:15px 15px}.bd-minimal .members-1998pB .small-5Os1Bb .status-oxiHuE{height:5px;width:5px}.bd-minimal .members-1998pB .member-3W1lQa{padding:5px}.bd-minimal .members-1998pB .memberInner-2CPc3V{transform:scale(0.9)}.bd-minimal .membersWrap-2h-GB4{min-width:0}.bd-minimal .members-1998pB .membersGroup-v9BXpm{margin-top:3px;transform:scale(0.9)}.bd-minimal .channels-Ie2l6A header span{font-size:12px}.bd-minimal .channels-Ie2l6A .channels-Ie2l6A{padding:0}.bd-minimal .guildsWrapper-5TJh6A .guilds-1q_RqH .guild-1EfMGQ{width:20px;height:20px;background-size:100%;font-size:15px;line-height:20px}.bd-minimal .guildsWrapper-5TJh6A .guilds-1q_RqH .guild-1EfMGQ .guildInner-3DSoA4 a,.bd-minimal .guild-1EfMGQ .guildInner-3DSoA4 .guildIcon-CT-ZDq{width:20px;height:20px;background-size:100%;font-size:15px;line-height:20px}.bd-minimal .guild-1EfMGQ .guildInner-3DSoA4{width:20px;height:20px;background-size:100%;font-size:15px;line-height:20px}.bd-minimal .guilds-1q_RqH .homeIcon-1FoKUJ{width:10px;height:10px;background-size:100%;font-size:15px;line-height:20px}.bd-minimal .guilds-1q_RqH .friendsOnline-_wi_fM{margin-left:-15px;font-size:7px}.bd-minimal .guildsWrapper-5TJh6A{width:45px}.bd-minimal .guildsWrapper-5TJh6A .guildSeparator-1X4GQ1{margin-left:-15px}.bd-minimal .guildsWrapper-5TJh6A .guilds-1q_RqH .guild-1EfMGQ.selected-ML3OIq:before{height:20px;margin-top:-10px}.bd-minimal .guildsAdd-21_IdK{font-size:20px;line-height:14px}.bd-minimal .guilds-1q_RqH .audio-3vVhBi .guildInner-3DSoA4:after{width:12px;height:12px;background-size:12px}.bd-minimal .guild-header header span{margin-left:-20px}.bd-minimal .btn-hamburger{margin-right:-30px}.bd-minimal .container-2Thooq .avatar-small{width:15px;height:15px;background-size:15px 15px}.bd-minimal .container-2Thooq .avatar-small .status-oxiHuE{height:5px;width:5px}.bd-minimal .container-2Thooq .accountDetails-3k9g4n{transform:scale(0.8)}.bd-minimal .container-2Thooq .button-2b6hmh{height:14px;width:14px;background-size:14px 14px;margin-left:3px}.bd-minimal .container-2Thooq .button-2b6hmh svg{height:14px;width:14px}.bd-minimal .channels-Ie2l6A{width:160px}.bd-minimal .content-20Aix8{transform:scale(0.9)}.bd-minimal .containerDefault-3GGEv_{transform:scale(0.9)}.bd-minimal .icon-sxakjD{width:14px;height:14px}.emotewrapper{position:relative;display:inline-flex;object-fit:contain;margin:-.1em .05em -.2em .1em;vertical-align:top}.emotewrapper.jumboable{margin-bottom:0;margin-top:.2em;vertical-align:-.3em}.emote{height:1.45em}.emote.jumboable{height:2rem}.emotewrapper:hover .fav{display:block}#bd-changelog h2{font-size:150%;padding-bottom:10px;border-bottom:1px solid rgba(0,0,0,0.5)}.fav{display:none;position:absolute;width:15px;height:15px;right:-7px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAzFBMVEUAAABQUFBMTExLS0tNTU1MTExNTU1NTU1MTExMTExNTU1LS0tEREBEREBEREBEREBJSUhLS0tLS0tEREBNTU1NTU1NTU1EREArKyhNTU1NTU0AAABMTExKSklMTExNTU1NTU1NTU1KSkpMTExKSkhNTU1KSkpISEZNTU1LS0tAQDxOTk5KSkpLS0tNTU1MTExMTEx/f39MTExMTExLS0pLS0tMTExNTU1NTU1LS0pNTU1NTU1NTU1NTU1NTU1NTUxNTU1NTU1NTUxMTEzB8C/5AAAAOnRSTlMAI8X96oWAgYSF68QBAg0PMCb9BIuLgQUD4N0Bh0mKhZSOQ4gcrKscaW8QRE6fmJyjAshASceG7cIpqQOxTQAAALVJREFUGFddx6FOA0EYAOGZvd07Qm6vVCAAgUUgQEDfX/YZMAigqaFN7iC5tsmPqGPUN/AvUVeoEbGOCElJz08Uzeixqu4AqomVVSNngOVjTqDGZSl3UFtPGV2ot2zaq96YM9p5Ddzcf/nTTAlj+/sNtNu8OcwkIsbPBtrUfMQeEhGQmHbmGIFMwLPzu6UMIwBNgToshgq8Nr2ki+Oy7ebDHp70LRPWB6OZgfWLWei7fJonOOsPCGA9kVlssOoAAAAASUVORK5CYII=");border:0;background-size:100% 100%;background-repeat:no-repeat;background-color:#303030;border-radius:5px;top:-7px;cursor:pointer}.fav.active{background-color:yellow}#bd-ps-container{position:fixed;width:50%;height:75%;background:#2e3136;display:block;z-index:9001;margin-left:25%;margin-top:5%;border:1px solid #000;box-shadow:0 0 20px 0 #000;max-height:800px;min-width:750px}#bd-ps-header{background:#36393e;height:60px;border-bottom:1px solid #000;box-shadow:0 1px 0 0 #4e4e4e}#bd-ps-header h2{margin:0;line-height:60px;margin-left:10px;color:#adadad;display:inline-block;float:left}#bd-ps-header span{float:right;display:inline;line-height:50px;margin-right:15px;font-size:29px;font-weight:bold;color:#adadad}#bd-ps-body{position:absolute;padding:0;margin-top:0;left:0;right:0;bottom:0;top:61px;overflow:auto}.bd-ps-server{width:100%;height:200px}.bd-ps-server-header{height:50px;width:100%;margin-top:1px;background:#202020;color:#aeaeae;line-height:50px;font-size:20px}.bd-ps-server-header span{margin-left:10px}.bd-ps-server-body{padding:5px}.bd-ps-server-icon{width:90px;height:90px;background:#202020;display:inline-block}.bd-ps-server-info{position:absolute;height:190px;display:inline-block;left:100px;right:5px;color:#aeaeae;overflow:auto}#bd-ps-body table{width:100%;margin:0;padding:0;border-color:red;border-collapse:collapse;text-align:left}#bd-ps-body table th{background-color:#202020;color:#ededed;height:50px;padding-left:5px}#bd-ps-body table tr{margin:0;padding:0;height:50px;background-color:#33363b;border-bottom:1px solid #000;box-shadow:0 1px 0 #404040 inset}#bd-ps-body table tr td{padding-left:5px;color:#ededed;min-width:100px}#bd-ps-body .description{overflow:auto;max-height:60px;word-wrap:break-word}#bd-ps-body table tr:nth-child(odd){background-color:#2e3136}#bd-show-channels{display:none;width:12px;height:18px;background:#2e3136;position:absolute;left:33px;top:79px;text-align:left !important;padding:0 !important;padding-left:3px !important;color:#ebebeb;z-index:90000}.bd-minimal-chan #bd-show-channels{display:block !important}.tipsy{z-index:9000000001 !important;position:fixed;padding:5px;display:block;visibility:visible;opacity:.8}.tipsy-arrow{position:absolute;width:0;height:0;border:5px solid transparent;bottom:0;right:10px;border-bottom:0;border-top-color:black}.tipsy-inner{background-color:black;color:white;max-width:300px;padding:5px 8px 4px;text-align:center;overflow:hidden !important;text-overflow:ellipsis}#bd-psd-container{position:fixed;width:50%;height:75%;display:block;margin-left:25%;margin-top:5%;box-shadow:0 0 20px 0 #000;background:#2e3135;border:1px solid #25282c;min-width:750px;min-height:800px}#bd-psd-header{width:100%;height:40px;border-bottom:1px solid #25282c;line-height:40px;color:#adadad}#bd-psd-header span{margin-left:10px}#bd-psd-body{height:100%;width:100%}#bd-psd-table{width:100%;margin:0;padding:0;text-align:left;color:#adadad}#bd-psd-table thead th{background:#1d1d1d;padding:5px}#bd-psd-table tbody td{padding:5px}#bd-psd-table tbody tr{background:#292c30}#bd-psd-table tbody tr:nth-child(odd){background:#2e3135}#bd-psd-table button{background:#292c30;border:1px solid #1d1d1d;width:60px;height:30px;color:#adadad;cursor:pointer}#bd-psd-table button:hover{background:#2e3135}#bd-psd-header a{float:right;margin-right:10px;font-size:30px;color:#adadad;text-decoration:none;margin-top:-7px}.bd-g-table{text-align:left;width:520px;white-space:nowrap}.bd-g-table thead th{background:#ebebeb !important;color:#87909c !important;padding:5px !important}.bd-g-table tbody tr{background:#e0e0e0 !important}.bd-g-table tbody tr:nth-child(odd){background:#ececec !important}.bd-g-table tbody td{color:#87909c !important;padding:5px !important;font-size:small}.bd-g-table textarea{width:100% !important;background:#e0e0e0 !important;border:none !important;resize:none !important;font-size:small !important;margin:0 !important;padding:0 !important}.bd-g-table input{margin:0 !important;padding:0 !important}.message-group.compact .message .markup .message-content{text-indent:0}.bd-psb{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAG6ElEQVR4XtWZS0xTWRjHP54+H+WhQRO0GAQxxikxmhhMKBu2upLoTDKsaupmcGVYVTdjxhUrG9kMG0OYTDKSuGIzZQHGUQNEowaJ4lt8UXwBPuf7kV5ycrmXW26bVP/JlxR6zvc63+uc5n379k1+ZOTLD45CPnR2dkoWcUgpqhS2LUgoxZX+kiwgEolYBmSGlpYWsdDT0xMoLi7uaW5ulk2bNomJJ0+ehPv6+sIfP37s0z1JY893FUKt27ZtQ3n58OGDTE1NQXyWiooKqa6uFtZkN4QyhK0IHFi/fr3MzMyIelos8DkvL09Wr17Nmp/Yk4skDimdNGPbREFBAR+Cq1atki9fvogdGFBSUiLwYa0L4I2MULYNOFtWVja0e/fumIbHvyLyj1KzpLBs2TLp7u6OrFmzJrhx40b5+vWr2PH582fZsmWL6JoQa9ljoBme8EYGspApaYA+4FWFztbU1ETD4bBYGB8fl0QiQWicJkKUfg0qVLiocJmcnBQncAKvXr2Sa9euwWM8VZVI/Hb4KwuxAP/R0VG+P+a7CpnK48G3b9/ibQTJkSNHUKRdhYuuwbMCWOMG9mOgVik+B2/cuPEHCzAcPiT77OwsvCTlsKgaIRjhJ4nDGg7RxsZG+fTpk6XYfIIS6/v27RPA91QbYn8xsO7169fky4L9yWRyPvTevHmDEaKykRt9+vQpvSOx1BA6uWPHjpiS5BI3b96ETqHPUkNo/P3795LrWQkd0MVPCHXdv3//N20+oXXr1kk6IE9IUsKJMEM4IFyIcfiQA4WFiPXGixcvRHVIoIvfMhq/dOkSMSqLgdjVOJWRkREEEs8kJLUf4jP/4zvWsJY9nvlCtUKHTDpxpwqv04rXpifhKujOnTuWtz1Boj98+JBkFsaOoqIicYLKxPAOhr+sjBKUT0qcCcLk9u3b86PCUsCp3Lp1S7Zv3054iQH+zuos1FpbW4uCZkLzWe7evUvcS36+v5mQvfCgj5gOgB+95vr16wdF5HgmBkS2bt0aWL58udgr0vPnz2V6etoS7BvwgNeGDRvEAidN166srAxquEUI5XQNCChhdaNSiLmlvr4exUk6M46pEG6ex8rzSr1KA0qggUlV6Wd6j1O1oTrR4Cz+yNu7dy/Jf45mJiLDSv1KF5SSTgYc4jLC0THPwxCCGbON4X2rKzsZwKJTKTLxd4rGlGJORlB68bqZI/x9+PBhSnMI0ktRqyb3n5pzLSS33YCodZNCWZTEM8SpDbR6t9A5j/LiDr6jnP0iNrx7904CgYBZ3QgtegYFhIpFrnCzk4sXL0btBgRXrlwZZjFKs9mjRruFT694o9fBACoZjnOSBWGgWXLDAkwDVqxYYXrbq3G5GTAg3hhw4+kBDFk0idOaezglwifLgCe8UdLXnTjJxjQHN47S7bQaSFaP7Q0uPJEP+TJgWBMTCq1du9ZrFCCp3Gb/A54GsMYBdN90vE8BQV+nEIpfvnz5HDMPRmgPwCuOBlAtuNg4gDo/tkgliqXW2IFMV+9bFyqUHxuDvcTdLjQ1qVe1EFRaWhqgkdkNoTM/ePAAgVlpZMT/5s2bccqCLj00NITiSbwOpZQfdbvQjBqzBxPj7zqste/cuXNByeP95+XLl475SJmEJD3Ay6mM4m2UPyEiZ/zOQmcmJibamRipEGYYad8QSi9zSybgNOFD57UPeo8fP05ayvs1IKmMOh49etTGm479eHkupDMizA9wCt6nSdmhMvnQlbWnRfKAYzZPgcTCCC4nGLQU4HXNMXPKNSuS5ZTpTA1oVsXb6urqUNipe6IAVYn7LmOIV0elg+N1Epe9rHc8mV27dlEo2rUCcSfu82tAdM+ePXiEsdax6mAYIcAozEyPgvxNblgnxn56B5d7eHBa7HMD3+MUZA8ODkb9GhDWcfpgeXk5Cnl61jIEYAwv0SgOMMR62Ut31oIXstFBR+mwr4ctvY3FqqqqJJe4d+8e105fD1sJvcjEuODkENZDccLPuxAGdPGG43Ih53kE8iqjfvfzaoEBcXTxm8RxmChaKZfG7YkXA1p/R+qY24hXbk0er27sYT1dHMXZz0MXlY68MZWXZ8+eGc/r/l7m/ksZ0YXCPDbB+MqVK8OqyFHGjqampuOqSIkKO83c4gXW6NoT7GEvPNQhR+EJb2Qgy1t5exJ742BqyBs3OiTv+OaPEpP79+8PuJ0CJ3f16tVh3VNv7BEDrUrB1NB2IZ2fWfMlfcDwpEd7H0ZJ4GYAa8QdXchAVq5+Zu2n4XkYMPI9/8wa1yGMH+lISLvyxLXgZfbkwABP8JPQRH9//1F9Fo/qKBAySiYGDGOgrkmKD/hPYv8IG5+tG1XWQBLPG/Aj439gf0WR+WMvWwAAAABJRU5ErkJggg==");width:25px;height:25px;background-color:transparent;background-size:100%}.bd-psm{position:fixed;pointer-events:auto;width:490px;height:460px;background-color:white;z-index:900000;margin:auto;right:0;left:170px;top:-60px;bottom:0;box-shadow:0 0 10px 5px rgba(193,193,193,0.75);border:1px solid #ebebeb}.bd-alert{position:absolute;width:600px;height:200px;left:0;right:0;top:300px;background-color:#2e3136;margin:auto;border:1px solid #323232;box-shadow:0 0 5px 3px rgba(30,30,30,0.5);color:#ebebeb}.bd-alert-header{height:25px;background:#36393e}.bd-alert-header span{line-height:25px;margin-left:5px}.bd-alert-closebtn{cursor:pointer;float:right;margin-right:5px;margin-top:2px}.bd-alert-closebtn:hover{color:#adadad}.bd-alert-body{height:178px}.bd-alert-body a{color:#FFF !important}.bd-alert-body .scroller-wrap{height:178px}.bd-alert-body .scroller-wrap .scroller{padding:5px;word-wrap:break-word}.channel-textarea-inner textarea{margin-right:40px}.servericon{width:64px;display:inline-block;background-size:100% auto;height:64px}.serverinfo{display:inline-block}#pubs-container{width:800px;position:fixed;top:50%;left:50%;margin-top:-284.5px;margin-left:-400px;background:#FFF;z-index:9000000}#pubs-container .scroller-wrap{height:500px}#pubs-header{background:#7289da;padding:5px 12px 5px 5px}#pubs-header h2{display:inline-block;font-weight:600;color:#FFF}#pubs-header input,#pubs-header button{float:right}#pubs-sterm{outline:none !important;padding-left:3px}.bd-dropdown{position:absolute;display:inline-block;width:150px;right:225px}.bd-dropdown button{width:150px}.bd-dropdown .bd-dropdown-list ul{height:0}.bd-dropdown.open .bd-dropdown-list ul{height:140px}.bd-dropdown-list{position:absolute;right:0;top:32px;z-index:90001;width:150px;background:#f3f3f3}.bd-dropdown-list ul{height:0;overflow-y:auto;overflow-x:hidden;transition:all .5s ease-in-out}.bd-dropdown-list ul li{padding:5px;background:#e6e6e6;cursor:pointer;color:#87909c;font-weight:600}.bd-dropdown-list ul li:nth-child(odd){background:#e2e1e1}.bd-dropdown-list ul li:hover{background:#f9f5f5}#pubs-header input{border:0;height:30px;width:150px;color:#555;background-color:#fff;-webkit-transition:width 1s ease-in-out;-moz-transition:width 1s ease-in-out;-o-transition:width 1s ease-in-out;transition:width 1s ease-in-out}#pubs-header button{height:32px;background-color:#f9f9f9;color:#949494}#pubs-footer{height:25px;line-height:25px;background:#7289da}#pubs-footer div{float:right;margin-right:5px;font-weight:600px;color:#FFF}#pubs-footer a{color:#FFF;text-decoration:none;font-weight:800}#pubs-container .scroller-wrap{margin-top:75px}.server-row{padding:5px;display:flex;background-color:#FFF}.server-row:nth-child(odd){background-color:#f3f3f3}.server-icon{width:64px;height:64px;background-size:100% auto}.server-info{display:flex;flex-flow:column;line-height:64px;margin-left:20px}.server-info span{font-size:16px;color:#000;font-weight:600}.server-info a{color:#4056a2;text-decoration:none;font-weight:800;margin-left:5px}.server-info button{width:90px;height:48px;margin-top:8px;background-color:#738bd7;color:#fff;font-size:19px}.server-info button:hover{background-color:#697ec4}.server-information{flex-grow:1;position:relative}.server-name,.server-desription{flex-grow:100}.server-name span{overflow:hidden;text-overflow:ellipsis;max-width:300px;white-space:nowrap}.server-name-span,.server-description{position:absolute;top:0;transition:visibility 0s,opacity .8s linear}.server-official,.server-tags{visibility:visible;opacity:1;transition:visibility 0s,opacity .8s linear}.server-information:hover .server-description{visibility:visible;opacity:1}.server-information:hover .server-name-span{visibility:hidden;opacity:0}.server-information:hover .server-tags{visibility:hidden;opacity:0}.server-information:hover .server-official{visibility:hidden;opacity:0}.server-tags{position:absolute !important;bottom:0 !important;height:38px !important;font-size:10px !important;visibility:visible;opacity:1}.server-official{position:absolute !important;top:0 !important;height:20px !important;font-size:14px !important;line-height:14px !important;color:#7289da !important;font-weight:700 !important;text-shadow:0 0 4px #7289da;visibility:visible;opacity:1;padding-left:2px;padding-right:2px}.server-description{visibility:hidden;opacity:0;font-size:12px !important;line-height:12px !important;text-overflow:initial !important;white-space:inherit !important;overflow-y:auto !important;height:64px !important}.server-region{min-width:85px}.server-pinned{position:absolute;width:777px;padding-right:-10px;padding-right:17px;border-bottom:2px solid #272727}#server-bd-tag{position:absolute !important;bottom:0 !important;height:20px !important;line-height:20px !important;font-size:13px !important;font-weight:600 !important}#pubs-spinner{position:fixed;top:50%;left:50%;margin-left:-16px;margin-top:-16px}#pubs-container .scroller::-webkit-scrollbar-track-piece,#pubs-container .scroller::-webkit-scrollbar-thumb{border-radius:0}.bd-hide-bd .callout-backdrop{display:none}.bd-detached-editor .app{width:70%}.bd-detached-editor #bd-customcss-detach-container{display:block}#bd-customcss-detach-container{display:none;position:absolute;width:30%;top:0;right:0;bottom:0;background-color:#36393e}#bd-customcss-detach-editor{height:calc(100% - 87px)}#bd-customcss-detach-editor #bd-customcss-innerpane,#bd-customcss-detach-editor .CodeMirror{height:100%}#bd-customcss-detach-controls{background:#e8e8e8;border-top:1px solid #adadad;-webkit-box-shadow:inset 0 1px 0 0 white;height:100%;padding:5px}#bd-customcss-detach-controls .checkbox-group li{margin-top:5px;display:inline-block}#bd-customcss-detach-controls button{width:90px;height:30px;margin-top:8px;background-color:#738bd7;color:#fff;font-size:19px}#bd-customcss-detach-controls-buttons{bottom:5px}#editor-detached{margin-top:50px}#editor-detached h3{text-align:center;font-size:30px}#editor-detached .btn{left:50%;margin-left:-100px;margin-top:10px;width:200px;height:60px}#bd-customcss-attach-controls{background:#e8e8e8;border:1px solid #FFF;border-top:1px solid #adadad;-webkit-box-shadow:inset 0 1px 0 0 white;height:100%;padding:5px;height:75px}#bd-customcss-attach-controls .checkbox-group{margin-bottom:0}#bd-customcss-attach-controls .checkbox-group li{margin-top:5px;display:inline-block}#bd-customcss-attach-controls button{margin:0;width:100px}#bd-customcss-detach-container #bd-customcss-detach-controls-buttons button{width:90px;height:30px;margin-top:8px;background-color:#738bd7;color:#fff;font-size:19px}.emoji-picker,.emojiPicker-3m1S-j{box-shadow:none;border-top:0;border-radius:0 0 5px 5px}#bda-qem{border-radius:5px 5px 0 0;background:#FFF;border-bottom:1px solid rgba(0,0,0,0.1) !important;height:30px;display:flex;flex-direction:row;padding-right:1px !important}#bda-qem button{border-left:1px solid #efefef;background:transparent;box-shadow:#cecece 1px 0 0 0;flex-grow:1}#bda-qem button:hover{background:#ececec}#bda-qem-twitch{border-radius:5px 0 0 0;order:2}#bda-qem-emojis{border-radius:0 5px 0 0;order:3}#bda-qem-favourite{order:3}#bda-qem button.active{background-color:#e2e2e2}#bda-qem-twitch-container,#bda-qem-favourite-container{width:346px;height:327px;background-color:#FFF;border-radius:0 0 5px 5px}#bda-qem-twitch-container .scroller-wrap,#bda-qem-favourite-container .scroller-wrap{height:100%}.emote-menu-inner{padding:5px 0 0 15px}#rmenu{left:25px;display:block !important;cursor:pointer;color:#FFF;position:fixed}.bda-qme-hidden #bda-qem-emojis{display:none}.bd-select select{width:100%;margin:0;outline:0;padding:.6em .8em .5em .8em;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;padding-right:2em;background:0;border:1px solid transparent !important;-webkit-appearance:none;appearance:none;color:#404040;outline:none !important}.bd-select::after{content:" ";position:absolute;top:50%;right:1em;z-index:2;pointer-events:none;display:none}.bd-select select:focus{border-color:#aaa}.bd-select:focus::after{display:block}.bd-select{position:absolute;right:220px;height:32px;top:5px;border-radius:0;display:inline-block;border:0;border-radius:0;box-shadow:0 1px 0 1px rgba(0,0,0,.04);background:#fff;outline:none !important}.bd-select:before{content:"Category";color:#FFF;position:absolute;right:100%;margin-right:5px;line-height:32px}#bd-pane .tab-bar.TOP{margin-bottom:0}#bd-settings-pane{margin-top:18px}#bd-themes-pane .bda-plugin-reload{margin-top:70px}.bda-backdrop{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;background:rgba(0,0,0,0.5)}.bd-settings{max-width:516px}.bda-dark #bda-qem-favourite-container,.bda-dark #bda-qem-twitch-container{background-color:#353535}.bda-dark #bda-qem{border-bottom:1px solid #464646 !important;background:#353535}.bda-dark #bda-qem button{background:#353535;border-left:1px solid #242424;box-shadow:#424242 1px 0 0 0;color:#FFF}.bda-dark #bda-qem button.active{background-color:#292929}.bda-dark #bda-qem button:hover{background-color:#303030}.bda-dark #bda-qem-favourite-container,.bda-dark #bda-qem-twitch-container{background-color:#353535}.bda-dark .emoji-picker,.bda-dark .emojiPicker-3m1S-j{background-color:#353535}.bda-dark .emoji-picker .category,.bda-dark .emojiPicker-3m1S-j .category-2U57w6{background-color:#353535}.bda-dark .emoji-picker .header .search-bar,.bda-dark .emojiPicker-3m1S-j .header-1nkwgG .search-bar{background-color:#2b2b2b}.bda-dark .emoji-picker .search-bar input,.bda-dark .emojiPicker-3m1S-j .search-bar input{color:#FFF}.bda-dark .emoji-picker .search-bar input::-webkit-input-placeholder,.bda-dark .emojiPicker-3m1S-j .search-bar input::-webkit-input-placeholder{color:#FFF}.bda-dark .emoji-picker .scroller .emoji-item.selected,.bda-dark .emojiPicker-3m1S-j .scroller-3vODG7 .emojiItem-109bjA.selected-39BZ4S{background-color:rgba(123,123,123,0.37)}.bda-dark .emoji-picker .dimmer.visible,.bda-dark .emojiPicker-3m1S-j .dimmer-3iH-5D.visible-3k45bQ{background-color:rgba(62,62,62,0.65)}.bda-dark .emoji-picker .diversity-selector .popout-3sVMXz,.bda-dark .emojiPicker-3m1S-j .diversitySelector-tmmMv0 .popout-2nUePc{background:#353535;border-color:#202020}.bda-dark #bda-qem-twitch-container .scroller::-webkit-scrollbar,.bda-dark #bda-qem-twitch-container .scroller::-webkit-scrollbar-track,.bda-dark #bda-qem-twitch-container .scroller::-webkit-scrollbar-track-piece,.bda-dark #pubs-container .scroller::-webkit-scrollbar,.bda-dark #pubs-container .scroller::-webkit-scrollbar-track,.bda-dark #pubs-container .scroller::-webkit-scrollbar-track-piece{background-color:#303030 !important;border-color:#303030 !important}.bda-dark #bda-qem-favourite-container .scroller::-webkit-scrollbar,.bda-dark #bda-qem-favourite-container .scroller::-webkit-scrollbar-track,.bda-dark #bda-qem-favourite-container .scroller::-webkit-scrollbar-track-piece{background-color:#303030 !important;border-color:#303030 !important}.bda-dark .emoji-picker .scroller::-webkit-scrollbar,.bda-dark .emoji-picker .scroller::-webkit-scrollbar-track,.bda-dark .emoji-picker .scroller::-webkit-scrollbar-track-piece,.bda-dark .emojiPicker-3m1S-j .scroller-3vODG7::-webkit-scrollbar,.bda-dark .emojiPicker-3m1S-j .scroller-3vODG7::-webkit-scrollbar-track,.bda-dark .emojiPicker-3m1S-j .scroller-3vODG7::-webkit-scrollbar-track-piece{background-color:#303030 !important;border-color:#303030 !important}.bda-dark #bda-qem-twitch-container .scroller::-webkit-scrollbar-thumb,.bda-dark #bda-qem-favourite-container .scroller::-webkit-scrollbar-thumb,.bda-dark .emoji-picker .scroller::-webkit-scrollbar-thumb,.bda-dark emojiPicker-3g68GS .scroller-3vODG7::-webkit-scrollbar-thumb,.bda-dark #pubs-container .scroller::-webkit-scrollbar-thumb{border-color:#202020 !important;background-color:#202020 !important}.bda-dark .server-row{background-color:#36393e}.bda-dark .server-row:nth-child(odd),.bda-dark #pubs-container{background-color:#2e3136}.bda-dark .server-info span{color:#d6d6d6}.bda-dark #pubs-header,.bda-dark #pubs-footer{background:#202020}.bda-dark #pubs-sterm{background:#36393e;color:#FFF}.bda-dark #pubs-searchbtn{background:#2e3136}.bda-dark .bd-select{background:#36393e}.bda-dark .server-info button{background-color:#202020}.bda-dark #pubs-cat{color:#FFF}.bda-dark .bd-dropdown-select{background-color:#2e3136}.bda-dark .bd-dropdown-list ul li:nth-child(odd){background:#36393e}.bda-dark .bd-dropdown-list ul li{background:#3d4046}.bda-dark .bd-dropdown-list ul li:hover{background:#2d2f33}.bda-dark #pubs-header button{background-color:#2e3136}.bda-dark .bd-dropdown .bd-dropdown-list ul::-webkit-scrollbar,.server-description::-webkit-scrollbar{width:12px}.bda-dark .bd-dropdown .bd-dropdown-list ul::-webkit-scrollbar-track,.server-description::-webkit-scrollbar-track{background:#303030}.bda-dark .bd-dropdown .bd-dropdown-list ul::-webkit-scrollbar-thumb,.server-description::-webkit-scrollbar-thumb{background:#202020}.bd-pfbtn{background:#7289da;color:#FFF;border-radius:5px;margin-left:10px}#bd-settings-sidebar .ui-tab-bar-item{color:#b9bbbe;padding-top:6px;padding-bottom:6px;margin-bottom:2px;padding:6px 10px;position:relative;font-size:16px;line-height:20px;border-radius:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;font-weight:500;cursor:pointer}#bd-settings-sidebar .ui-tab-bar-item:hover{color:#f6f6f7;background-color:hsla(216,4%,74%,.1)}#bd-settings-sidebar .ui-tab-bar-item.selected{color:#fff;background-color:#7289da}#bd-settings-sidebar .ui-tab-bar-header{color:#72767d;padding:6px 10px;font-size:12px;line-height:16px;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;font-weight:500}#bd-settings-sidebar .ui-tab-bar-separator{background-color:hsla(218,5%,47%,.3);margin-left:10px;margin-right:10px;height:1px;margin-bottom:8px;margin-top:8px}#bd-settingspane-container h2.ui-form-title{color:#f6f6f7;text-transform:uppercase;font-weight:600;display:inline-block}#bd-settingspane-container .ui-switch-item{flex-direction:column}#bd-settingspane-container .ui-switch-item h3{font-weight:500;color:#f6f6f7;flex:1;line-height:24px}#bd-settingspane-container .ui-switch-item .style-description{color:#72767d;font-size:14px;font-weight:500;margin-bottom:10px;line-height:30px;border-bottom:1px solid hsla(218,5%,47%,.3)}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:44px;height:24px;display:block;flex:0 0 auto}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper input{position:absolute;opacity:0;cursor:pointer;width:100%;height:100%;z-index:1}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch{background:#7289da;position:absolute;top:0;right:0;bottom:0;left:0;background:#72767d;border-radius:14px;transition:background .15s ease-in-out,box-shadow .15s ease-in-out,border .15s ease-in-out}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch:before{content:"";display:block;width:18px;height:18px;position:absolute;top:3px;left:3px;bottom:3px;background:#f6f6f7;border-radius:10px;transition:all .15s ease;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05)}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch.checked{background:#7289da}#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch.checked:before{transform:translateX(20px)}#pubslayer .ui-tab-bar-item{color:#b9bbbe;padding-top:6px;padding-bottom:6px;margin-bottom:2px;padding:6px 10px;position:relative;font-size:16px;line-height:20px;border-radius:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;font-weight:500;cursor:pointer}#pubslayer .ui-tab-bar-item:hover{color:#f6f6f7;background-color:hsla(216,4%,74%,.1)}#pubslayer .ui-tab-bar-item.selected{color:#fff;background-color:#7289da}#pubslayer .ui-tab-bar-header{color:#72767d;padding:6px 10px;font-size:12px;line-height:16px;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;font-weight:500}#pubslayer #bd-settings-sidebar .ui-tab-bar-separator{background-color:hsla(218,5%,47%,.3);margin-left:10px;margin-right:10px;height:1px;margin-bottom:8px;margin-top:8px}#pubslayer h2.ui-form-title{color:#f6f6f7;text-transform:uppercase;font-weight:600}#pubslayer h5.ui-form-title{color:#f6f6f7}#pubslayer button{background:#7289da;color:#FFF;font-size:14px;font-weight:500;line-height:16px;padding:2px 16px;border:0;border-radius:3px;transition:background-color .17s ease}#pubslayer button:hover{background-color:#677bc4}#pubslayer input{color:#f6f6f7;background-color:rgba(0,0,0,.1);border-color:rgba(0,0,0,.3);padding:10px;height:30px;border-width:1px;border-style:solid;border-radius:3px;outline:0;transition:background-color .15s ease,border .15s ease}#bd-settingspane-container .scroller-wrap{height:100%}#bd-settingspane-container .scroller-wrap .scroller{display:flex}.bda-slist{user-select:text}.bda-slist li{background:rgba(32,34,37,.6);border:1px solid #202225;border-radius:5px;padding:5px 7px;max-height:175px;margin-bottom:20px;overflow:hidden}.bda-slist li.settings-open{max-height:800px;overflow-y:auto}.bda-slist .bda-header{color:#e6e6e7;font-weight:700;font-size:12px;overflow:hidden;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,0.1);padding-bottom:5px}.bda-slist .bda-description{margin:5px 0;color:#b0b6b9;overflow-y:auto;max-height:100px;padding:5px 0;word-break:break-word}.bda-slist .scroller::-webkit-scrollbar-track-piece,.bda-slist .scroller::-webkit-scrollbar-thumb{border-radius:0 !important;border-color:transparent}.bda-slist .bda-footer{border-top:1px solid rgba(255,255,255,0.1);padding-top:5px;color:#87909c;font-weight:700;font-size:12px;overflow:hidden;display:flex;justify-content:space-between;align-items:center}.bda-slist .bda-footer button{background:#7289da;color:#FFF;border-radius:5px;display:block;margin-left:auto;padding:2px 16px;transition:opacity 250ms ease}.bda-slist .bda-footer button:disabled{opacity:.4}.bda-slist .bda-footer a{color:#7289da}.bda-slist .bda-footer a:hover{text-decoration:underline}@keyframes bd-backdrop{to{opacity:.85}}@keyframes bd-modal-wrapper{to{transform:scale(1);opacity:1}}@keyframes bd-backdrop-closing{to{opacity:0}}@keyframes bd-modal-wrapper-closing{to{transform:scale(0.7);opacity:0}}.bd-backdrop{animation:bd-backdrop 250ms ease;animation-fill-mode:forwards;opacity:0;background-color:#000;transform:translateZ(0)}.bd-modal-wrapper.closing .bd-backdrop{animation:bd-backdrop-closing 200ms linear;animation-fill-mode:forwards;animation-delay:50ms;opacity:.85}.bd-modal-wrapper.closing .bd-modal{animation:bd-modal-wrapper-closing 250ms cubic-bezier(0.19,1,0.22,1);animation-fill-mode:forwards;opacity:1;transform:scale(1)}.bd-modal-wrapper .bd-modal{animation:bd-modal-wrapper 250ms cubic-bezier(0.175,0.885,0.32,1.275);animation-fill-mode:forwards;transform:scale(0.7);transform-origin:50% 50%;display:flex;align-items:center;box-sizing:border-box;contain:content;justify-content:center;top:0;left:0;bottom:0;right:0;opacity:0;pointer-events:none;position:absolute;z-index:1000}.bd-modal-wrapper .bd-modal-inner{display:flex;contain:layout;flex-direction:column;pointer-events:auto;border:1px solid rgba(28,36,43,.6);border-radius:5px;box-shadow:0 2px 10px 0 rgba(0,0,0,.2);overflow:hidden;max-height:660px;min-height:200px;width:440px;user-select:text}.bd-modal-wrapper .bd-startup-modal .bd-modal-inner{height:500px;width:700px}.bd-modal-wrapper .header{background-color:#35393e;box-shadow:0 2px 3px 0 rgba(0,0,0,.2);padding:12px 20px;z-index:1;color:#fff;font-size:16px;font-weight:700;line-height:19px}.bd-modal-wrapper .bd-modal-body{background-color:#36393f;color:#fff;flex-direction:row;overflow:hidden;display:flex;flex-direction:column;flex:1;contain:layout;position:relative}.bd-modal-wrapper .scroller{padding:10px}.bd-modal-wrapper .bd-startup-modal .bd-modal-body{padding:0}.bd-modal-wrapper .scroller{overflow-y:auto}.bd-modal-wrapper .footer{display:flex;justify-content:flex-end;padding:10px 20px}.bd-modal-wrapper .footer button{background-color:#7289da;color:#fff;min-height:32px;min-width:60px;align-items:center;border-radius:3px;display:flex;font-size:14px;font-weight:500;justify-content:center;line-height:16px;padding:2px 16px;user-select:none}.bd-modal-wrapper .footer button:hover{background-color:#677bc4}.bd-modal-wrapper .footer button:active{background-color:#5f6fb9}.bd-modal-wrapper .tab-bar-container{align-items:center;border-bottom:0;background:rgba(0,0,0,0.2);box-shadow:0 2px 3px 0 rgba(0,0,0,.1);display:flex;flex-direction:row;justify-content:space-between;margin-bottom:15px}.bd-modal-wrapper .tab-bar.TOP{margin:0;border:0}.bd-modal-wrapper .tab-bar-container .tab-bar-item{margin:0 15px;padding:15px 0;color:#fff !important;opacity:.5;transition:opacity 200ms ease}.bd-modal-wrapper .tab-bar-container .tab-bar-item:hover{border-color:#fff}.bd-modal-wrapper .tab-bar-container .tab-bar-item.selected{opacity:1;border-color:#fff}.bd-modal-wrapper .tab-bar.TOP .tab-bar-item+.tab-bar-item{margin:0}.bd-modal-wrapper .table-header{display:flex;justify-content:space-between;color:#fff;font-weight:700;padding-bottom:10px;margin:3px 15px 0 15px;border-bottom:1px solid #fff;font-size:14px}.bd-modal-wrapper .table-column{width:25%}.bd-modal-wrapper .table-column.column-error{width:50%}.bd-modal-wrapper .table-column{word-wrap:break-word}.bd-modal-wrapper .errors{display:flex;flex-direction:column;padding:0;font-size:14px;padding:0 5px}.bd-modal-wrapper .error{display:flex;color:#fff;border-bottom:1px solid rgba(255,255,255,0.25);padding:15px 0;align-items:center}.bd-modal-wrapper .bd-startup-modal .scroller{padding-top:0}.bd-toasts{position:fixed;display:flex;top:0;flex-direction:column;align-items:center;justify-content:flex-end;pointer-events:none;z-index:4000}@keyframes bd-toast-up{from{transform:translateY(0);opacity:0}}.bd-toast{animation:bd-toast-up 300ms ease;transform:translateY(-10px);background:#36393f;padding:10px;border-radius:5px;box-shadow:0 0 0 1px rgba(32,34,37,.6),0 2px 10px 0 rgba(0,0,0,.2);font-weight:500;color:#fff;user-select:text;font-size:14px;opacity:1;margin-top:10px;pointer-events:none;user-select:none}@keyframes bd-toast-down{to{transform:translateY(0);opacity:0}}.bd-toast.closing{animation:bd-toast-down 200ms ease;animation-fill-mode:forwards;opacity:1;transform:translateY(-10px)}.bd-toast.icon{padding-left:30px;background-size:20px 20px;background-repeat:no-repeat;background-position:6px 50%}.bd-toast.toast-info{background-color:#4a90e2}.bd-toast.toast-info.icon{background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtNmgydjZ6bTAtOGgtMlY3aDJ2MnoiLz48L3N2Zz4=)}.bd-toast.toast-success{background-color:#43b581}.bd-toast.toast-success.icon{background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}.bd-toast.toast-danger,.bd-toast.toast-error{background-color:#f04747}.bd-toast.toast-danger.icon,.bd-toast.toast-error.icon{background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTEyIDJDNi40NyAyIDIgNi40NyAyIDEyczQuNDcgMTAgMTAgMTAgMTAtNC40NyAxMC0xMFMxNy41MyAyIDEyIDJ6bTUgMTMuNTlMMTUuNTkgMTcgMTIgMTMuNDEgOC40MSAxNyA3IDE1LjU5IDEwLjU5IDEyIDcgOC40MSA4LjQxIDcgMTIgMTAuNTkgMTUuNTkgNyAxNyA4LjQxIDEzLjQxIDEyIDE3IDE1LjU5eiIvPiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PC9zdmc+)}.bd-toast.toast-warning,.bd-toast.toast-warn{background-color:#ffa600;color:white}.bd-toast.toast-warning.icon,.bd-toast.toast-warn.icon{background-image:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMSAyMWgyMkwxMiAyIDEgMjF6bTEyLTNoLTJ2LTJoMnYyem0wLTRoLTJ2LTRoMnY0eiIvPjwvc3ZnPg==)}.bd-blue .bd-pfbtn{background:#3a71c1}.bd-blue .bot-tag{background:#3a71c1}.bd-blue .bot-tag.bot-tag-invert{color:#3a71c1 !important}.bd-blue .spinner-wandering-cubes .spinner-item{background-color:#3a71c1}.bd-blue .spinner-chasing-dots .spinner-item{background-color:#3a71c1}.bd-blue .spinner.spinner-spinning-circle .path{stroke:#3a71c1}.bd-blue .note textarea::-moz-selection{background:#3a71c1}.bd-blue .note textarea::selection{background:#3a71c1}.bd-blue .scroller-wrap .scrollbar .thumb:after{background-color:#3a71c1}.bd-blue #autocomplete-popout .empty h4{color:#3a71c1}.bd-blue .user-popout .header{background:#3a71c1 url(/assets/8cd2f31a12333149b89ef3931626ab83.png)}.bd-blue .checkbox .checkbox-inner input[type=checkbox]:checked+span{background-color:#3a71c1;border-color:#3a71c1}.bd-blue .checkbox .checkbox-inner.alt input[type=checkbox]:checked+span:after{border-color:#3a71c1}.bd-blue .download-apps .footer a{color:#3a71c1}.bd-blue .download-apps .platforms .platform.active{border-color:#3a71c1}.bd-blue .download-apps .platforms .platform.active .download-button{background-color:#3a71c1}.bd-blue .radio .radio-inner span:after{background:#3a71c1}.bd-blue .radio:hover span:after{background:#3a71c1}.bd-blue .radio-image .radio-inner span:after{border:2px solid #3a71c1}.bd-blue .radio-image:hover span:after{border-color:#3a71c1}.bd-blue #overlay-wrapper .overlay .guild-panel .guild-panel-header{background-color:#3a71c1}.bd-blue #overlay-wrapper .overlay .guild-panel .btn-call{color:#3a71c1}.bd-blue .overlay-user-popout .user-popout-options .btn{background-color:#3a71c1}.bd-blue .clipboard-input-inner input::-moz-selection{background:#3a71c1}.bd-blue .clipboard-input-inner input::selection{background:#3a71c1}.bd-blue .btn-help:hover{background:#3a71c1}.bd-blue .popout-3sVMXz.popoutLeft-30WmrD header:before{border-left-color:#3a71c1}.bd-blue .popout-3sVMXz.popout-right header:before{border-right-color:#3a71c1}.bd-blue .popout-3sVMXz.popoutBottom-1YbShG header:before{border-bottom-color:#3a71c1}.bd-blue .popout-3sVMXz.popoutInvert-3UdKhn:not(.popoutBottom-1YbShG).popoutTop-3uu9vG header:before{border-top-color:#3a71c1}.bd-blue .guild-channels .channel-text.selected:before{border-left:2px solid #3a71c1}.bd-blue .guild-channels .channel-text:hover:not(.unread):before{border-left:2px solid #3a71c1}.bd-blue .guild-channels .channel-text.unread:not(.selected):not(.channel-muted).selected:before{background-color:#3a71c1}.bd-blue .guild-channels .channel-voice-states li.speaking .avatar-small{background-color:#3a71c1}.bd-blue .tooltip{background-color:#3a71c1}.bd-blue .tooltip.tooltip-top:after{border-top-color:#3a71c1}.bd-blue .tooltip.tooltip-bottom:after{border-bottom-color:#3a71c1}.bd-blue .tooltip.tooltip-left:after{border-left-color:#3a71c1}.bd-blue .tooltip.tooltip-right:after{border-right-color:#3a71c1}.bd-blue .button{background-color:#3a71c1}.bd-blue .tutorial-popout .button-area .skip-tips a{color:#3a71c1}.bd-blue .chat .has-more button{color:#3a71c1}.bd-blue .chat .new-messages-bar:hover{background-color:#3a71c1}.bd-blue .message-group .edit-message .edit-operation>a{color:#3a71c1}.bd-blue .message-group .edit-message .channel-textarea-inner{border-color:#3a71c1}.bd-blue .mention{color:#3a71c1}.bd-blue .mention:hover{background-color:#3a71c1}.bd-blue .mentioned .mention:hover{color:#3a71c1}.bd-blue .markdown-modal .markdown-modal-header b{color:#3a71c1}.bd-blue .change-log .changelog-fixed{background-color:#3a71c1}.bd-blue .change-log .changelog-button .cta{background-color:#3a71c1}.bd-blue .form .form-header{color:#3a71c1}.bd-blue .form header{color:#3a71c1}.bd-blue .form .control-group textarea:focus{border-bottom:2px solid #3a71c1}.bd-blue .form .btn-primary{background-color:#3a71c1}.bd-blue .region-select button{color:#3a71c1}.bd-blue .region-select:hover button{border-color:#3a71c1}.bd-blue .region-select:hover button{background-color:#3a71c1}.bd-blue .region-select-flag{background-color:#3a71c1}.bd-blue .region-select-flag.vip:after{background:#3a71c1}.bd-blue .region-select-modal .region-select-modal-header{color:#3a71c1}.bd-blue .region-select-modal .region-select-modal-option:hover{border-color:#3a71c1}.bd-blue .upload-drop-modal .bgScale{background:#3a71c1}.bd-blue .upload-modal{background-color:#3a71c1}.bd-blue .upload-modal .inner .file .icon.image{border:2px solid #3a71c1}.bd-blue .avatar-uploader-inner{background-color:#3a71c1}.bd-blue .create-guild-container h5{color:#3a71c1}.bd-blue .create-guild-container .join-server .sample-link{color:#3a71c1}.bd-blue .create-guild-container .action.create .action-header{color:#3a71c1}.bd-blue .tab-bar.TOP .tab-bar-item.selected{border-bottom:2px solid #3a71c1;color:#3a71c1}.bd-blue .tab-bar.SIDE .tab-bar-item:before{border-left:4px solid #3a71c1}.bd-blue .color-picker-popout input:focus{border-color:#3a71c1}.bd-blue #settings-roles .roles li.selected:before{color:#3a71c1;background-color:#3a71c1}.bd-blue #settings-roles .roles li.sorting:after{border:2px solid #3a71c1}.bd-blue .guild-settings-modal-overview a{color:#3a71c1}.bd-blue .need-help-modal .header{background-color:#3a71c1}.bd-blue .search-popout .date-picker .date-picker-hint .hint-value{background-color:#3a71c1}.bd-blue .react-datepicker .react-datepicker__day:hover{background-color:#3a71c1}.bd-blue .react-datepicker .react-datepicker__day.react-datepicker__day--today:after{background-color:#3a71c1}.bd-blue .messages-popout-wrap .has-more button{color:#3a71c1}.bd-blue .btn-filled{background-color:#3a71c1}.bd-blue .btn-filled.white{color:#3a71c1}.bd-blue .emoji-picker .premium-promo .btn{background-color:#3a71c1}.bd-blue .emojiPicker-3m1S-j .premium-promo .btn{background-color:#3a71c1}.bd-blue .channel-textarea.has-results .channel-textarea-inner{border-color:#3a71c1}.bd-blue .channel-textarea-autocomplete-inner{border:2px solid #3a71c1}.bd-blue .channel-textarea-autocomplete-inner header{background-color:#3a71c1}.bd-blue .channel-textarea-autocomplete-inner ul.images li.active{border-color:#3a71c1}.bd-blue .reaction.reaction-me .reaction-count{color:#3a71c1}.bd-blue .theme-dark .reaction.reaction-me .reaction-count{color:#3a71c1}.bd-blue .spinner-wandering-cubes .ui-spinner-item{background-color:#3a71c1}.bd-blue .spinner-chasing-dots .ui-spinner-item{background-color:#3a71c1}.bd-blue .theme-light .ui-spinner.spinner-spinning-circle .path{stroke:#3a71c1}.bd-blue .theme-dark .ui-spinner.spinner-spinning-circle .path{stroke:#3a71c1}.bd-blue .theme-dark .ui-spinner.spinner-spinning-circle .path-2{stroke:#3a71c1}.bd-blue .ui-button.brand.filled{background-color:#3a71c1}.bd-blue .ui-button.brand.filled:disabled{background-color:#3a71c1}.bd-blue .ui-button.brand.inverted{color:#3a71c1}.bd-blue .ui-button.brand.outlined{color:#3a71c1}.bd-blue .ui-button.brand.outlined:active{background-color:#3a71c1;border-color:#3a71c1}.bd-blue .ui-button.brand.outlined:disabled{color:#3a71c1}.bd-blue .ui-button.brand.link{color:#3a71c1}.bd-blue .ui-button.brand.link:not(:disabled):hover .ui-button-contents{background-image:-webkit-linear-gradient(bottom,transparent,transparent 1px,#3a71c1 0,#3a71c1 2px,transparent 0);background-image:linear-gradient(to top,transparent,transparent 1px,#3a71c1 1px,#3a71c1 2px,transparent 2px)}.bd-blue .ui-button.brand.ghost{color:#3a71c1}.bd-blue .ui-button.brand .ui-spinner-item{background-color:#3a71c1}.bd-blue .theme-blurple .ui-button.primary.filled{color:#3a71c1}.bd-blue .theme-blurple .ui-form-title.h5{color:#3a71c1}.bd-blue .btn-filled{background-color:#3a71c1}.bd-blue .btn-filled.white{color:#3a71c1}.bd-blue .progress .progress-bar{background-color:#3a71c1}.bd-blue .radio-theme input[type=radio]:checked~label{border-color:#3a71c1}.bd-blue .now-playing{background:#3a71c1}.bd-blue .user-settings-modal-account .discord-tag{color:#3a71c1}.bd-blue .modal-new-user>.steps .step-3 .instant-invite input{color:#3a71c1}.bd-blue .modal-new-user h5{color:#3a71c1}.bd-blue .modal-new-user .steps-wrap .steps li.on:before{background-color:#3a71c1}.bd-blue .modal-new-user .steps-wrap .steps li.active{background-color:#3a71c1}.bd-blue .ui-tab-bar.SIDE .ui-tab-bar-item.selected{background-color:#3a71c1}.bd-blue .ui-tab-bar.SIDE .ui-tab-bar-item:active{background-color:#3a71c1}.bd-blue .ui-tab-bar.SIDE .ui-tab-bar-item.brand{color:#3a71c1}.bd-blue .theme-light .ui-text-input .input:focus{border-color:#3a71c1}.bd-blue .theme-dark .ui-text-input .input:focus{border-color:#3a71c1}.bd-blue .theme-blurple .ui-text-input .input{color:#3a71c1}.bd-blue .theme-blurple .ui-text-input .input:hover{border-color:#3a71c1}.bd-blue .theme-blurple .ui-select:hover .Select .Select-control{border-color:#3a71c1}.bd-blue .theme-blurple .ui-select:hover .Select .Select-control .Select-arrow{border-color:#3a71c1 transparent transparent}.bd-blue .theme-blurple .ui-select .Select.is-open .Select-control{border-color:#3a71c1}.bd-blue .theme-blurple .ui-select .Select-menu-outer{border-color:#3a71c1}.bd-blue .theme-blurple .ui-select .Select-menu-outer .Select-option{color:#3a71c1}.bd-blue .theme-blurple .ui-select .Select-value-label{color:#3a71c1}.bd-blue .ui-card-brand{background:#3a71c1;border-color:#3a71c1}.bd-blue .ui-checkbox-wrapper .ui-checkbox.checked polyline{stroke:#3a71c1}.bd-blue .ui-checkbox-wrapper .ui-checkbox.checked.inverted{background:#3a71c1}.bd-blue .ui-region-flag.vip:after{background:#3a71c1}.bd-blue .ui-scroller-wrap .scrollbar .thumb:after{background-color:#3a71c1}.bd-blue .ui-quick-select-popout-option .ui-icon-check-mark .ui-icon-fg{stroke:#3a71c1}.bd-blue .ui-switch-checkbox:checked+.ui-switch{background:#3a71c1}.bd-blue #instant-invite-modal .clipboard-input-inner input{color:#3a71c1}.bd-blue #instant-invite-modal .copy{background-color:#3a71c1}.bd-blue .color-brand{color:#3a71c1}.bd-blue .webkhook-modal-header.ui-form-title.h5{color:#3a71c1}.bd-blue .ui-bot-tag{background:#3a71c1}.bd-blue .ui-bot-tag.invert{color:#3a71c1}.bd-blue #user-profile-modal .btn{background-color:#3a71c1}.bd-blue #user-profile-modal .guilds .avatar-large{background-color:#3a71c1}.bd-blue .premium-payment-modal{background-color:#3a71c1}.bd-blue .premium-payment-modal .premium-payment-button{color:#3a71c1}.bd-blue .premium-payment-modal .premium-payment-button .spinner .spinner-item{background-color:#3a71c1}.bd-blue .invite-modal .avatar-xxxlarge{background-color:#3a71c1}.bd-blue .ui-screenshare-modal-tile .image-container img.selected{border-color:#3a71c1}.bd-blue .detected-platform-accounts-modal .btn-group .btn-primary{background-color:#3a71c1}.bd-blue .ui-new-terms-modal .title{color:#3a71c1}.bd-blue #oauth2-authorize .authorize-inner header{background:#3a71c1}.bd-blue #oauth2-authorize .authorize-inner footer button.primary{background:#3a71c1}.bd-blue #oauth2-authorize .select select:focus{border-color:#3a71c1}.bd-blue #oauth2-authorize .select.focus:after{border-top-color:#3a71c1}.bd-blue #oauth2-authorize .scope-bot .avatar-large{background-color:#3a71c1}.bd-blue .invite-header .invite-guild-icon{background-color:#3a71c1}.bd-blue .invite-marketing .invite-marketing-header{color:#3a71c1}.bd-blue .invite-marketing .invite-marketing-button{color:#3a71c1;border:2px solid #3a71c1}.bd-blue .invite-mobile .top{background-color:#3a71c1}.bd-blue .invite-mobile .link.purple{background-color:#3a71c1}.bd-blue .verify-connected-account .btn{background-color:#3a71c1}.bd-blue #unsupported-browser li:hover{border-color:#3a71c1}.bd-blue #unsupported-browser li:hover .btn{background-color:#3a71c1;border-color:#3a71c1}.bd-blue .ui-slider .slider-bar-fill{background:#3a71c1}.bd-blue .popout-menu .popout-menu-item.invite{color:#3a71c1}.bd-blue .channel-members .invite-btn{background-color:#3a71c1}.bd-blue .chat .welcome-message h1{color:#3a71c1}.bd-blue .channel-textarea-guard button{background-color:#3a71c1}.bd-blue .private-channel-recipients-invite .footer button{background-color:#3a71c1}.bd-blue .private-channel-recipients-invite .footer button:disabled:hover{background-color:#3a71c1}.bd-blue .private-channel-recipients-invite .error-state.not-friends .btn{background:#3a71c1}.bd-blue .ui-call-avatar-border.voice.video.selected{box-shadow:inset 0 0 0 2px #3a71c1}.bd-blue .ui-call-avatar-border.video.selected:not(.speaking){box-shadow:inset 0 0 0 2px #3a71c1}.bd-blue .invite-banner{background-color:#3a71c1}.bd-blue .invite-banner .instant-invite:not(.clipboard-input-copied) .clipboard-input-inner button{color:#3a71c1}.bd-blue .invite-banner.invite-banner-1 .instant-invite .clipboard-input-inner button:before{background:-webkit-linear-gradient(left,hsla(0,0%,100%,0),#3a71c1);background:linear-gradient(to right,hsla(0,0%,100%,0),#3a71c1)}.bd-blue .add-friend-input-wrapper .btn:disabled{background-color:#3a71c1}.bd-blue #friends .btn{background-color:#3a71c1}.bd-blue #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary{background-color:#3a71c1}.bd-blue #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary .badge{color:#3a71c1}.bd-blue #friends .friends-table .friends-row .friends-column-guilds .avatar-small{background-color:#3a71c1}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.selected .badge{background-color:#3a71c1}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary{background-color:#3a71c1}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary .badge{color:#3a71c1}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary.selected{color:#3a71c1;background-color:#fff}.bd-blue .theme-dark #friends .friends-header .tab-bar .tab-bar-item.tab-bar-item-primary.selected .badge{background-color:#3a71c1}.bd-blue .private-channels .search-result:hover:before{border-left:2px solid #3a71c1}.bd-blue .private-channels .channel.selected .icon-friends{background-color:#3a71c1}.bd-blue .private-channels .channel.selected:before{border-left:2px solid #3a71c1}.bd-blue #rtc-debug-modal #users-section .user-list li.selected:before{color:#3a71c1;background-color:#3a71c1}.bd-blue .notice.notice-brand{background-color:#3a71c1}.bd-blue .notice.notice-brand .btn:hover{color:#3a71c1}.bd-blue .theme-light .ui-text-input .input:focus{border-color:#3a71c1}.bd-blue .theme-dark .ui-text-input .input:focus{border-color:#3a71c1}.bd-blue .theme-blurple .ui-text-input .input{color:#3a71c1}.bd-blue .theme-blurple .ui-text-input .input:hover{border-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-navigation .button{color:#3a71c1}.bd-blue .onboarding-navigation .step-status .step.current{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide.mic-test .content.waiting .button{color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .onboarding-slide textarea:focus{box-shadow:0 2px 0 #3a71c1}.bd-blue .nuf-page .button.filled{background-color:#3a71c1}.bd-blue .ui-switch-wrapper:not(.disabled):not(.clear):hover .ui-switch-checkbox:checked+.ui-switch{background:#3f79ce}.bd-blue *[style*="border-color: rgb(114, 137, 218)"]{border-color:#3a71c1 !important}.bd-blue *[style*="background-color: rgb(114, 137, 218)"]{background-color:#3a71c1 !important}.bd-blue .bda-slist .bda-footer button{background-color:#3a71c1}.bd-blue .bda-slist .bda-footer a{color:#3a71c1}.bd-blue .bd-modal-wrapper .footer button{background-color:#3a71c1}.bd-blue .bd-modal-wrapper .footer button:hover{background-color:#356bbb}.bd-blue .bd-modal-wrapper .footer button:active{background-color:#2a61b1} diff --git a/js/main.js b/js/main.js index 92bac3fb..4296c8f9 100644 --- a/js/main.js +++ b/js/main.js @@ -83,11 +83,6 @@ window.bdPluginStorage.set = function(pn, i, v) { betterDiscordIPC.sendSync('synchronous-message', { 'arg': 'pluginstorage', 'cmd': 'set', 'pn': pn, 'var': i, 'data': v }); }; -betterDiscordIPC.on('asynchronous-reply', (event, arg) => { - console.log(event); - console.log(arg); -}); - var bdSettings = {}; var bdSettingsStorage = {}; bdSettingsStorage.initialize = function() { @@ -128,14 +123,6 @@ var jsVersion = 1.792; var supportedVersion = "0.2.81"; var bbdVersion = "0.1.0"; -var mainObserver; - -var twitchEmoteUrlStart = "https://static-cdn.jtvnw.net/emoticons/v1/"; -var twitchEmoteUrlEnd = "/1.0"; -var ffzEmoteUrlStart = "https://cdn.frankerfacez.com/emoticon/"; -var ffzEmoteUrlEnd = "/1"; -var bttvEmoteUrlStart = "https://cdn.betterttv.net/emote/"; -var bttvEmoteUrlEnd = "/1x"; var mainCore; @@ -159,7 +146,6 @@ var settings = { "Startup Error Modal": { "id": "fork-ps-1", "info": "Show a modal with plugin/theme errors on startup", "implemented": true, "hidden": false, "cat": "fork"}, "Show Toasts": { "id": "fork-ps-2", "info": "Shows a small notification for starting and stopping plugins & themes", "implemented": true, "hidden": false, "cat": "fork"}, "Scroll To Settings": { "id": "fork-ps-3", "info": "Auto-scrolls to a plugin's settings when the button is clicked (only if out of view)", "implemented": true, "hidden": false, "cat": "fork"}, - "Emote Modifier Tooltip": { "id": "fork-es-1", "info": "Shows the emote modifier in the tooltip.", "implemented": true, "hidden": false, "cat": "fork"}, "Animate On Hover": { "id": "fork-es-2", "info": "Only animate the emote modifiers on hover", "implemented": true, "hidden": false, "cat": "fork"}, "Copy Selector": { "id": "fork-dm-1", "info": "Adds a \"Copy Selector\" option to context menus when developer mode is active", "implemented": true, "hidden": false, "cat": "fork"}, "Download Emotes": { "id": "fork-es-3", "info": "Download emotes when the cache is expired", "implemented": true, "hidden": false, "cat": "fork"}, @@ -208,7 +194,6 @@ var defaultCookie = { "fork-ps-2": true, "fork-ps-3": true, "fork-ps-4": true, - "fork-es-1": true, "fork-es-2": false, "fork-es-3": true }; @@ -221,16 +206,6 @@ var bdpluginErrors, bdthemeErrors; // define for backwards compatibility var bdConfig = null; function Core(config) { - if (!config) { - config = { - branch: "master", - repo: "rauenzi", - updater: { - CDN: "cdn.rawgit.com" - } - } - } - else config.newLoader = true; window.bdConfig = config; } @@ -373,9 +348,9 @@ Core.prototype.loadSettings = function () { }; Core.prototype.initObserver = function () { - mainObserver = new MutationObserver((mutations) => { + const mainObserver = new MutationObserver((mutations) => { - for (let i = 0; i < mutations.length; i++) { + for (let i = 0, mlen = mutations.length; i < mlen; i++) { let mutation = mutations[i]; if (typeof pluginModule !== "undefined") pluginModule.rawObserver(mutation); @@ -554,10 +529,10 @@ Core.prototype.showToast = function(content, options = {}) { if (!document.querySelector('.bd-toasts')) { let toastWrapper = document.createElement("div"); toastWrapper.classList.add("bd-toasts"); - let boundingElement = document.querySelector('.chat form, #friends, .noChannel-Z1DQK7, .activityFeed-28jde9'); + let boundingElement = document.querySelector('.chat-3bRxxu form, #friends, .noChannel-Z1DQK7, .activityFeed-28jde9'); toastWrapper.style.setProperty("left", boundingElement ? boundingElement.getBoundingClientRect().left + "px" : "0px"); toastWrapper.style.setProperty("width", boundingElement ? boundingElement.offsetWidth + "px" : "100%"); - toastWrapper.style.setProperty("bottom", (document.querySelector('.chat form') ? document.querySelector('.chat form').offsetHeight : 80) + "px"); + toastWrapper.style.setProperty("bottom", (document.querySelector('.chat-3bRxxu form') ? document.querySelector('.chat-3bRxxu form').offsetHeight : 80) + "px"); document.querySelector('.app').appendChild(toastWrapper); } const {type = "", icon = true, timeout = 3000} = options; @@ -683,23 +658,6 @@ EmoteModule.prototype.init = async function () { } }; - if (!bdConfig.newLoader) { - window.bdEmotes = { - TwitchGlobal: emotesTwitch, - TwitchSubscriber: subEmotesTwitch, - BTTV: emotesBTTV, - FrankerFaceZ: emotesFfz, - BTTV2: emotesBTTV2 - } - - for (let type in window.bdEmotes) { - for (let emote in window.bdEmotes[type]) { - window.bdEmotes[type][emote] = emoteInfo[type].getEmoteURL(window.bdEmotes[type][emote]); - } - } - return; - } - this.loadEmoteData(emoteInfo); this.getBlacklist(); @@ -711,43 +669,44 @@ EmoteModule.prototype.init = async function () { const markup = returnValue.props.children[1]; if (!markup.props.children) return; const nodes = markup.props.children[1]; + if (!nodes || !nodes.length) return; for (let n = 0; n < nodes.length; n++) { const node = nodes[n]; if (typeof(node) !== "string") continue; const words = node.split(/([^\s]+)([\s]|$)/g); - for (let w = 0, wlen = words.length; w < wlen; w++) { - let emote = words[w]; - let emoteSplit = emote.split(':'); - let emoteName = emoteSplit[0]; - let emoteModifier = emoteSplit[1] ? emoteSplit[1] : ""; - let emoteOverride = emoteModifier.slice(0); - - if (bemotes.includes(emoteName) || emoteName.length < 4) continue; - if (!this.modifiers.includes(emoteModifier) || !settingsCookie["bda-es-8"]) emoteModifier = ""; - if (!this.overrides.includes(emoteOverride)) emoteOverride = ""; - else emoteModifier = emoteOverride; - - let cats = this.categories; - if (emoteOverride === "twitch") { - if (bdEmotes.TwitchGlobal[emoteName]) cats = ["TwitchGlobal"]; - else if (bdEmotes.TwitchSubscriber[emoteName]) cats = ["TwitchSubscriber"]; - } - else if (emoteOverride === "bttv") { - if (bdEmotes.BTTV[emoteName]) cats = ["BTTV"]; - else if (bdEmotes.BTTV2[emoteName]) cats = ["BTTV2"]; - } - else if (emoteOverride === "ffz") { - if (bdEmotes.FrankerFaceZ[emoteName]) cats = ["FrankerFaceZ"]; - } - - for (let c = 0, clen = cats.length; c < clen; c++) { - if (!bdEmotes[cats[c]][emoteName] || !settingsCookie[bdEmoteSettingIDs[cats[c]]]) continue; + for (let c = 0, clen = this.categories.length; c < clen; c++) { + for (let w = 0, wlen = words.length; w < wlen; w++) { + let emote = words[w]; + let emoteSplit = emote.split(':'); + let emoteName = emoteSplit[0]; + let emoteModifier = emoteSplit[1] ? emoteSplit[1] : ""; + let emoteOverride = emoteModifier.slice(0); + + if (bemotes.includes(emoteName) || emoteName.length < 4) continue; + if (!this.modifiers.includes(emoteModifier) || !settingsCookie["bda-es-8"]) emoteModifier = ""; + if (!this.overrides.includes(emoteOverride)) emoteOverride = ""; + else emoteModifier = emoteOverride; + + let current = this.categories[c]; + if (emoteOverride === "twitch") { + if (bdEmotes.TwitchGlobal[emoteName]) current = "TwitchGlobal"; + else if (bdEmotes.TwitchSubscriber[emoteName]) current = "TwitchSubscriber"; + } + else if (emoteOverride === "bttv") { + if (bdEmotes.BTTV[emoteName]) current = "BTTV"; + else if (bdEmotes.BTTV2[emoteName]) current = "BTTV2"; + } + else if (emoteOverride === "ffz") { + if (bdEmotes.FrankerFaceZ[emoteName]) current = "FrankerFaceZ"; + } + + if (!bdEmotes[current][emoteName] || !settingsCookie[bdEmoteSettingIDs[current]]) continue; const results = nodes[n].match(new RegExp(`([\\s]|^)${utils.escape(emoteModifier ? emoteName + ":" + emoteModifier : emoteName)}([\\s]|$)`)); if (!results) continue; const pre = nodes[n].substring(0, results.index + results[1].length); const post = nodes[n].substring(results.index + results[0].length - results[2].length); nodes[n] = pre; - const emoteComponent = BDV2.react.createElement(BDEmote, {name: emoteName, url: bdEmotes[cats[c]][emoteName], modifier: emoteModifier}); + const emoteComponent = BDV2.react.createElement(BDEmote, {name: emoteName, url: bdEmotes[current][emoteName], modifier: emoteModifier}); nodes.splice(n+1, 0, post); nodes.splice(n+1, 0, emoteComponent); n = n + 2; @@ -811,7 +770,7 @@ EmoteModule.prototype.loadEmoteData = async function(emoteInfo) { resolve(data) }); }); - let isValid = this.testJSON(data); + let isValid = Utils.testJSON(data); if (isValid) bdEmotes = JSON.parse(data); @@ -895,113 +854,16 @@ EmoteModule.prototype.downloadEmotes = function(emoteMeta) { }); } -EmoteModule.prototype.testJSON = function(data) { - try { - let json = JSON.parse(data); - return true; - } - catch(err) { - return false; - } - return false; -} - EmoteModule.prototype.getBlacklist = function () { $.getJSON("https://cdn.rawgit.com/rauenzi/betterDiscordApp/" + _hash + "/data/emotefilter.json", function (data) { bemotes = data.blacklist; }); }; -EmoteModule.prototype.getNodes = function (node) { - var next; - var nodes = []; - - var treeWalker = document.createTreeWalker(node, NodeFilter.SHOW_TEXT, null, false); - - // eslint-disable-next-line no-cond-assign - while (next = treeWalker.nextNode()) { - nodes.push(next); - } - return nodes; -}; - var bemotes = []; -EmoteModule.prototype.injectEmote = async function(node, edited) { - let messageScroller = document.querySelector('.messages-3amgkR.scroller'); - let message = node; - if (message.getElementsByClassName("message-content").length) message = message.getElementsByClassName("message-content")[0]; - let editNode = null; - let textNodes = utils.getTextNodes(message); - - let words = textNodes.map(n => n.data).join(" ").split(/([^\s]+)([\s]|$)/g).filter(function(e) { return e; }); - - let inject = function(message, messageScroller, category, emoteName, emoteModifier) { - let inCategory = Object.hasOwnProperty.call(bdEmotes[category], emoteName); - if (!inCategory || !settingsCookie[bdEmoteSettingIDs[category]]) return false; - - let url = bdEmotes[category][emoteName]; - let element = this.createEmoteElement(emoteName, url, emoteModifier); - let oldHeight = message.offsetHeight; - utils.insertElement(message, new RegExp(`([\\s]|^)${utils.escape(emoteModifier ? emoteName + ":" + emoteModifier : emoteName)}([\\s]|$)`), $(element)[0]); - messageScroller.scrollTop = messageScroller.scrollTop + (message.offsetHeight - oldHeight); - return true; - } - - inject = inject.bind(this, message, messageScroller); - - for (let w = 0, len = words.length; w < len; w++) { - let emote = words[w]; - let emoteSplit = emote.split(':'); - let emoteName = emoteSplit[0]; - let emoteModifier = emoteSplit[1] ? emoteSplit[1] : ""; - let emoteOverride = emoteModifier.slice(0); - - if (bemotes.includes(emoteName) || emoteName.length < 4) continue; - if (!this.modifiers.includes(emoteModifier) || !settingsCookie["bda-es-8"]) emoteModifier = ""; - if (!this.overrides.includes(emoteOverride)) emoteOverride = ""; - - if (emoteOverride === "twitch") { - let tglobal = false; - let tsubscriber = false; - tglobal = inject("TwitchGlobal", emoteName, emoteOverride); - if (!tglobal) tsubscriber = inject("TwitchSubscriber", emoteName, emoteOverride); - if (tglobal || tsubscriber) continue; - } - else if (emoteOverride === "bttv") { - let bttv = false; - let bttv2 = false; - bttv = inject("BTTV", emoteName, emoteOverride); - if (!bttv) bttv2 = inject("BTTV2", emoteName, emoteOverride); - if (bttv || bttv2) continue; - } - else if (emoteOverride === "ffz") { - let ffz = inject("FrankerFaceZ", emoteName, emoteOverride); - if (ffz) continue; - } - - for (let c = 0, clen = this.categories.length; c < clen; c++) { - inject(this.categories[c], emoteName, emoteModifier); - } - - if (emote == "[!s]") message.classList.add("spoiler"); - } -}; - -EmoteModule.prototype.createEmoteElement = function(word, url, mod) { - var len = Math.round(word.length / 4); - var name = word.substr(0, len) + "\uFDD9" + word.substr(len, len) + "\uFDD9" + word.substr(len * 2, len) + "\uFDD9" + word.substr(len * 3); - var stopAnim = settingsCookie['fork-es-2'] ? " stop-animation" : ""; - var modClass = mod ? "emote" + mod : ""; - var html = '' + name + ''; - return html.replace(new RegExp("\uFDD9", "g"), ""); -}; - EmoteModule.prototype.autoCapitalize = function () { - - var self = this; - - $('body').delegate($(".channelTextArea-1LDbYG textarea:first"), 'keyup change paste', function () { + $('body').delegate($(".channelTextArea-1LDbYG textarea:first"), 'keyup change paste', () => { if (!settingsCookie["bda-es-4"]) return; var text = $(".channelTextArea-1LDbYG textarea:first").val(); @@ -1010,7 +872,7 @@ EmoteModule.prototype.autoCapitalize = function () { var lastWord = text.split(" ").pop(); if (lastWord.length > 3) { if (lastWord == "danSgame") return; - var ret = self.capitalize(lastWord.toLowerCase()); + var ret = this.capitalize(lastWord.toLowerCase()); if (ret !== null && ret !== undefined) { utils.insertText(utils.getTextArea()[0], text.replace(lastWord, ret)); } @@ -1347,6 +1209,17 @@ Utils.prototype.getTextNodes = function(node) { return textNodes; } +Utils.testJSON = function(data) { + try { + let json = JSON.parse(data); + return true; + } + catch(err) { + return false; + } + return false; +}; + Utils.suppressErrors = (method, desiption) => (...params) => { try { return method(...params); } catch (e) { console.error('Error occurred in ' + desiption, e); } @@ -1404,21 +1277,11 @@ function VoiceMode() { } -VoiceMode.prototype.obsCallback = function () { - var self = this; - if (settingsCookie["bda-gs-4"]) { - self.disable(); - setTimeout(function () { - self.enable(); - }, 300); - } -}; - VoiceMode.prototype.enable = function () { $(".scroller.guild-channels ul").first().css("display", "none"); $(".scroller.guild-channels header").first().css("display", "none"); $(".app.flex-vertical").first().css("overflow", "hidden"); - $(".chat.flex-vertical.flex-spacer").first().css("visibility", "hidden").css("min-width", "0px"); + $(".chat-3bRxxu").first().css("visibility", "hidden").css("min-width", "0px"); $(".flex-vertical.channels-wrap").first().css("flex-grow", "100000"); $(".guild-header .btn.btn-hamburger").first().css("visibility", "hidden"); }; @@ -1427,7 +1290,7 @@ VoiceMode.prototype.disable = function () { $(".scroller.guild-channels ul").first().css("display", ""); $(".scroller.guild-channels header").first().css("display", ""); $(".app.flex-vertical").first().css("overflow", ""); - $(".chat.flex-vertical.flex-spacer").first().css("visibility", "").css("min-width", ""); + $(".chat-3bRxxu").first().css("visibility", "").css("min-width", ""); $(".flex-vertical.channels-wrap").first().css("flex-grow", ""); $(".guild-header .btn.btn-hamburger").first().css("visibility", ""); }; @@ -2040,13 +1903,10 @@ var ClassNormalizer = class ClassNormalizer { /*V2 Premature*/ -window.bdtemp = { - 'editorDetached': false -}; - class V2 { constructor() { + this.editorDetached = false; this.WebpackModules = (() => { //__webpack_require__ = window.webpackJsonp.push([[id], {[id]: (module, exports, req) => module.exports = req}, [[id]]]); const req = typeof(webpackJsonp) == "function" ? webpackJsonp([], {'__extra_id__': (module, exports, req) => exports.default = req}, ['__extra_id__']).default : @@ -2164,6 +2024,25 @@ class BDEmote extends BDV2.reactComponent { super(props); this.props.label = this.props.modifier ? `${this.props.name}:${this.props.modifier}` : this.props.name; this.props.modifierClass = this.props.modifier ? ` emote${this.props.modifier}` : ""; + this.props.animateOnHover = bdSettings.settings["fork-es-2"]; + const isFav = quickEmoteMenu && quickEmoteMenu.favoriteEmotes && quickEmoteMenu.favoriteEmotes[this.props.label] ? true : false; + this.state = { + shouldAnimate: !this.props.animateOnHover, + isFavorite: isFav + }; + + this.onMouseEnter = this.onMouseEnter.bind(this); + this.onMouseLeave = this.onMouseLeave.bind(this); + } + + onMouseEnter() { + if (!this.state.shouldAnimate && this.props.animateOnHover) this.setState({shouldAnimate: true}); + if (!this.state.isFavorite && quickEmoteMenu.favoriteEmotes[this.props.label]) this.setState({isFavorite: true}); + else if (this.state.isFavorite && !quickEmoteMenu.favoriteEmotes[this.props.label]) this.setState({isFavorite: false}); + } + + onMouseLeave() { + if (this.state.shouldAnimate && this.props.animateOnHover) this.setState({shouldAnimate: false}); } render() { @@ -2174,23 +2053,30 @@ class BDEmote extends BDV2.reactComponent { delay: 750 }, BDV2.react.createElement("div", { - className: "emotewrapper" + (this.props.jumboable ? " jumboable" : "") + className: "emotewrapper" + (this.props.jumboable ? " jumboable" : ""), + onMouseEnter: this.onMouseEnter, + onMouseLeave: this.onMouseLeave }, BDV2.react.createElement("img", { draggable: false, - className: "emote" + this.props.modifierClass + (this.props.jumboable ? " jumboable" : ""), + className: "emote" + this.props.modifierClass + (this.props.jumboable ? " jumboable" : "") + (!this.state.shouldAnimate ? " stop-animation" : ""), dataModifier: this.props.modifier, alt: this.props.label, src: this.props.url }), BDV2.react.createElement("input", { - className: "fav", + className: "fav" + (this.state.isFavorite ? " active" : ""), title: "Favorite!", type: "button", onClick: (e) => { e.preventDefault(); e.stopPropagation(); - quickEmoteMenu.favorite(this.props.name, this.props.url); + if (this.state.isFavorite) { + delete quickEmoteMenu.favoriteEmotes[this.props.label]; + quickEmoteMenu.updateFavorites(); + } + else quickEmoteMenu.favorite(this.props.label, this.props.url); + this.setState({isFavorite: !this.state.isFavorite}); } }) ) @@ -2543,7 +2429,7 @@ class V2C_CssEditorDetached extends BDV2.reactComponent { componentDidMount() { $("#app-mount").addClass('bd-detached-editor'); - window.bdtemp.editorDetached = true; + BDV2.editorDetached = true; // this.updateLineCount(); this.editor = ace.edit("bd-customcss-editor-detached"); this.editor.setTheme("ace/theme/monokai"); @@ -2559,7 +2445,7 @@ class V2C_CssEditorDetached extends BDV2.reactComponent { componentWillUnmount() { $("#app-mount").removeClass('bd-detached-editor'); - window.bdtemp.editorDetached = false; + BDV2.editorDetached = false; this.editor.destroy(); } @@ -2715,7 +2601,7 @@ class V2C_CssEditor extends BDV2.reactComponent { setInitialState() { this.state = { - 'detached': this.props.detached || window.bdtemp.editorDetached + 'detached': this.props.detached || BDV2.editorDetached }; } @@ -3392,16 +3278,6 @@ class V2_SettingsPanel { if (_c["fork-ps-4"]) classNormalizer.start(); else classNormalizer.stop(); - if (_c["fork-es-2"]) { - $('.emote').each(() => { - $(this).addClass("stop-animation"); - }); - } - else { - $('.emote').each(() => { - $(this).removeClass("stop-animation"); - }); - } if (_c["bda-gs-8"]) { dMode.enable(_c["fork-dm-1"]); diff --git a/js/main.min.js b/js/main.min.js index 672f95a0..d3dba08e 100644 --- a/js/main.min.js +++ b/js/main.min.js @@ -1,4 +1,4 @@ -(function(){let a=window.require("fs"),o=window.require("process"),d=o.platform,l=("win32"===d?o.env.APPDATA:"darwin"===d?o.env.HOME+"/Library/Preferences":process.env.HOME+"/.config")+"/BetterDiscord/",u="localStorage.json",h={};if(a.existsSync(`${l}${u}`))try{h=JSON.parse(a.readFileSync(`${l}${u}`))}catch(f){console.log(f)}else if(a.existsSync(u))try{h=JSON.parse(a.readFileSync(u))}catch(f){console.log(f)}var g=h;g.setItem=function(f,y){g[f]=y,this.save()},g.getItem=function(f){return g[f]||null},g.save=function(){a.writeFileSync(`${l}${u}`,JSON.stringify(this),null,4)};var b=new Proxy(g,{set:function(f,y,E){g[y]=E,g.save()},get:function(f,y){return g[y]||null}});window.localStorage=b})(),(()=>{let a=document.createElement("div");a.className="bd-loaderv2",a.title="BetterDiscord is loading...",document.body.appendChild(a)})(),window.bdStorage={},window.bdStorage.get=function(a){return betterDiscordIPC.sendSync("synchronous-message",{arg:"storage",cmd:"get","var":a})},window.bdStorage.set=function(a,o){betterDiscordIPC.sendSync("synchronous-message",{arg:"storage",cmd:"set","var":a,data:o})},window.bdPluginStorage={},window.bdPluginStorage.get=function(a,o){return betterDiscordIPC.sendSync("synchronous-message",{arg:"pluginstorage",cmd:"get",pn:a,"var":o})},window.bdPluginStorage.set=function(a,o,d){betterDiscordIPC.sendSync("synchronous-message",{arg:"pluginstorage",cmd:"set",pn:a,"var":o,data:d})},betterDiscordIPC.on("asynchronous-reply",(a,o)=>{console.log(a),console.log(o)});var bdSettings={},bdSettingsStorage={};bdSettingsStorage.initialize=function(){let a=require("fs"),o={};if(a.existsSync(bdConfig.dataPath+"/bdsettings.json"))try{o=JSON.parse(a.readFileSync(bdConfig.dataPath+"/bdsettings.json"))}catch(d){o={}}bdSettings=o?o:{}},bdSettingsStorage.get=function(a){return bdSettings[a]?bdSettings[a]:null},bdSettingsStorage.set=function(a,o){let d=require("fs");bdSettings[a]=o;try{return d.writeFileSync(bdConfig.dataPath+"/bdsettings.json",JSON.stringify(bdSettings,null,4)),!0}catch(l){return utils.err(l),!1}};var settingsPanel,emoteModule,utils,quickEmoteMenu,voiceMode,pluginModule,themeModule,dMode,publicServersModule,jsVersion=1.792,supportedVersion="0.2.81",bbdVersion="0.1.0",mainObserver,twitchEmoteUrlStart="https://static-cdn.jtvnw.net/emoticons/v1/",twitchEmoteUrlEnd="/1.0",ffzEmoteUrlStart="https://cdn.frankerfacez.com/emoticon/",ffzEmoteUrlEnd="/1",bttvEmoteUrlStart="https://cdn.betterttv.net/emote/",bttvEmoteUrlEnd="/1x",mainCore,settings={"Save logs locally":{id:"bda-gs-0",info:"Saves chat logs locally",implemented:!1,hidden:!1,cat:"core"},"Public Servers":{id:"bda-gs-1",info:"Display public servers button",implemented:!0,hidden:!1,cat:"core"},"Minimal Mode":{id:"bda-gs-2",info:"Hide elements and reduce the size of elements.",implemented:!0,hidden:!1,cat:"core"},"Voice Mode":{id:"bda-gs-4",info:"Only show voice chat",implemented:!0,hidden:!1,cat:"core"},"Hide Channels":{id:"bda-gs-3",info:"Hide channels in minimal mode",implemented:!0,hidden:!1,cat:"core"},"Dark Mode":{id:"bda-gs-5",info:"Make certain elements dark by default(wip)",implemented:!0,hidden:!1,cat:"core"},"Override Default Emotes":{id:"bda-es-5",info:"Override default emotes",implemented:!1,hidden:!1,cat:"core"},"Voice Disconnect":{id:"bda-dc-0",info:"Disconnect from voice server when closing Discord",implemented:!0,hidden:!1,cat:"core"},"Custom css live update":{id:"bda-css-0",info:"",implemented:!0,hidden:!0,cat:"core"},"Custom css auto udpate":{id:"bda-css-1",info:"",implemented:!0,hidden:!0,cat:"core"},"24 Hour Timestamps":{id:"bda-gs-6",info:"Replace 12hr timestamps with proper ones",implemented:!0,hidden:!1,cat:"core"},"Coloured Text":{id:"bda-gs-7",info:"Make text colour the same as role colour",implemented:!0,hidden:!1,cat:"core"},"BetterDiscord Blue":{id:"bda-gs-b",info:"Replace Discord blue with BD Blue",implemented:!0,hidden:!1,cat:"core"},"Developer Mode":{id:"bda-gs-8",info:"Developer Mode",implemented:!0,hidden:!1,cat:"core"},"Startup Error Modal":{id:"fork-ps-1",info:"Show a modal with plugin/theme errors on startup",implemented:!0,hidden:!1,cat:"fork"},"Show Toasts":{id:"fork-ps-2",info:"Shows a small notification for starting and stopping plugins & themes",implemented:!0,hidden:!1,cat:"fork"},"Scroll To Settings":{id:"fork-ps-3",info:"Auto-scrolls to a plugin's settings when the button is clicked (only if out of view)",implemented:!0,hidden:!1,cat:"fork"},"Emote Modifier Tooltip":{id:"fork-es-1",info:"Shows the emote modifier in the tooltip.",implemented:!0,hidden:!1,cat:"fork"},"Animate On Hover":{id:"fork-es-2",info:"Only animate the emote modifiers on hover",implemented:!0,hidden:!1,cat:"fork"},"Copy Selector":{id:"fork-dm-1",info:"Adds a \"Copy Selector\" option to context menus when developer mode is active",implemented:!0,hidden:!1,cat:"fork"},"Download Emotes":{id:"fork-es-3",info:"Download emotes when the cache is expired",implemented:!0,hidden:!1,cat:"fork"},"Normalize Classes":{id:"fork-ps-4",info:"Adds stable classes to elements to help themes. (e.g. adds .da-channels to .channels-Ie2l6A)",implemented:!0,hidden:!1,cat:"fork"},"Twitch Emotes":{id:"bda-es-7",info:"Show Twitch emotes",implemented:!0,hidden:!1,cat:"emote"},"FrankerFaceZ Emotes":{id:"bda-es-1",info:"Show FrankerFaceZ Emotes",implemented:!0,hidden:!1,cat:"emote"},"BetterTTV Emotes":{id:"bda-es-2",info:"Show BetterTTV Emotes",implemented:!0,hidden:!1,cat:"emote"},"Emote Menu":{id:"bda-es-0",info:"Show Twitch/Favourite emotes in emote menu",implemented:!0,hidden:!1,cat:"emote"},"Emoji Menu":{id:"bda-es-9",info:"Show Discord emoji menu",implemented:!0,hidden:!1,cat:"emote"},"Emote Autocomplete":{id:"bda-es-3",info:"Autocomplete emote commands",implemented:!1,hidden:!1,cat:"emote"},"Emote Auto Capitalization":{id:"bda-es-4",info:"Autocapitalize emote commands",implemented:!0,hidden:!1,cat:"emote"},"Show Names":{id:"bda-es-6",info:"Show emote names on hover",implemented:!0,hidden:!1,cat:"emote"},"Show emote modifiers":{id:"bda-es-8",info:"Enable emote mods (flip, spin, pulse, spin2, spin3, 1spin, 2spin, 3spin, tr, bl, br, shake, shake2, shake3, flap)",implemented:!0,hidden:!1,cat:"emote"}},defaultCookie={version:jsVersion,"bda-gs-0":!1,"bda-gs-1":!0,"bda-gs-2":!1,"bda-gs-3":!1,"bda-gs-4":!1,"bda-gs-5":!0,"bda-gs-6":!1,"bda-gs-7":!1,"bda-gs-8":!1,"bda-es-0":!0,"bda-es-1":!0,"bda-es-2":!0,"bda-es-3":!1,"bda-es-4":!1,"bda-es-5":!0,"bda-es-6":!0,"bda-es-7":!0,"bda-gs-b":!1,"bda-es-8":!0,"bda-jd":!0,"bda-dc-0":!1,"bda-css-0":!1,"bda-css-1":!1,"bda-es-9":!0,"fork-dm-1":!1,"fork-ps-1":!0,"fork-ps-2":!0,"fork-ps-3":!0,"fork-ps-4":!0,"fork-es-1":!0,"fork-es-2":!1,"fork-es-3":!0},settingsCookie={},bdpluginErrors,bdthemeErrors,bdConfig=null;function Core(a){a?a.newLoader=!0:a={branch:"master",repo:"rauenzi",updater:{CDN:"cdn.rawgit.com"}},window.bdConfig=a}var classNormalizer;Core.prototype.init=async function(){function a(){0
Please download the latest version from BetterDiscord.net"):void(utils=new Utils,await utils.getHash(),utils.log("Initializing Settings"),this.initSettings(),classNormalizer=new ClassNormalizer,emoteModule=new EmoteModule,utils.log("Initializing EmoteModule"),emoteModule.init().then(()=>{emoteModule.initialized=!0}),publicServersModule=new V2_PublicServers,quickEmoteMenu=new QuickEmoteMenu,voiceMode=new VoiceMode,dMode=new devMode,$(document).ready(function(){setTimeout(a,1e3)}))},Core.prototype.injectExternals=function(){utils.injectJs("https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.9/ace.js")},Core.prototype.initSettings=function(){if(bdSettingsStorage.initialize(),$.cookie("better-discord"))return settingsCookie=JSON.parse($.cookie("better-discord")),this.saveSettings(),void $.removeCookie("better-discord",{path:"/"});if(!bdSettingsStorage.get("settings"))settingsCookie=defaultCookie,this.saveSettings();else for(var a in this.loadSettings(),$("`),settingsCookie["fork-ps-2"]&&mainCore.showToast(`${bdthemes[a].name} v${bdthemes[a].version} has been applied.`)},ThemeModule.prototype.disableTheme=function(a){themeCookie[a]=!1,this.saveThemeData(),$(`#${utils.escapeID(bdthemes[a].name)}`).remove(),settingsCookie["fork-ps-2"]&&mainCore.showToast(`${bdthemes[a].name} v${bdthemes[a].version} has been removed.`)},ThemeModule.prototype.toggleTheme=function(a){themeCookie[a]?this.disableTheme(a):this.enableTheme(a)},ThemeModule.prototype.loadThemeData=function(){if($.cookie("bd-themes"))return themeCookie=JSON.parse($.cookie("bd-themes")),this.saveThemeData(),void $.removeCookie("bd-themes",{path:"/"});let a=bdSettingsStorage.get("themes");a&&(themeCookie=a)},ThemeModule.prototype.saveThemeData=function(){bdSettingsStorage.set("themes",themeCookie)};function BdApi(){}BdApi.injectCSS=function(a,o){$("head").append($(""),$("#customcss").html(this.editor.session.getValue()).detach().appendTo(document.head)}saveCss(){window.bdStorage.set("bdcustomcss",btoa(this.editor.session.getValue()))}}class V2C_CssEditor extends BDV2.reactComponent{constructor(a){super(a);let o=this;o.props.lines=0,o.setInitialState(),o.attach=o.attach.bind(o),o.detachedEditor=BDV2.react.createElement(V2C_CssEditorDetached,{attach:o.attach}),o.onClick=o.onClick.bind(o),o.updateCss=o.updateCss.bind(o),o.saveCss=o.saveCss.bind(o),o.detach=o.detach.bind(o)}setInitialState(){this.state={detached:this.props.detached||window.bdtemp.editorDetached}}componentDidMount(){this.editor=ace.edit("bd-customcss-editor"),this.editor.setTheme("ace/theme/monokai"),this.editor.session.setMode("ace/mode/css"),this.editor.setShowPrintMargin(!1),this.editor.setFontSize(14),this.editor.on("change",()=>{settingsCookie["bda-css-0"]&&(this.saveCss(),this.updateCss())})}componentWillUnmount(){this.editor.destroy()}componentDidUpdate(a,o){let d=this;o.detached&&!d.state.detached&&BDV2.reactDom.unmountComponentAtNode(d.detachedRoot)}codeMirror(){}get options(){return{lineNumbers:!0,mode:"css",indentUnit:4,theme:"material",scrollbarStyle:"simple"}}get css(){let a=window.bdStorage.get("bdcustomcss"),o="";return a&&""!==a&&(o=atob(a)),o}updateLineCount(){let a=this.refs.editor.value.split("\n").length;a==this.props.lines||(this.refs.lines.textContent=Array.from(Array(a),(o,d)=>d+1).join(".\n")+".",this.props.lines=a)}render(){let a=this,{detached:o}=a.state;return BDV2.react.createElement("div",{className:"content-column default",style:{padding:"60px 40px 0px"}},o&&BDV2.react.createElement("div",{id:"editor-detached"},BDV2.react.createElement(V2Components.SettingsTitle,{text:"Custom CSS Editor"}),BDV2.react.createElement("h3",null,"Editor Detached"),BDV2.react.createElement("button",{className:"btn btn-primary",onClick:()=>{a.attach()}},"Attach")),!o&&BDV2.react.createElement("div",null,BDV2.react.createElement(V2Components.SettingsTitle,{text:"Custom CSS Editor"}),BDV2.react.createElement("div",{className:"editor-wrapper"},BDV2.react.createElement("div",{id:"bd-customcss-editor",className:"editor",ref:"editor"},a.css)),BDV2.react.createElement("div",{id:"bd-customcss-attach-controls"},BDV2.react.createElement("ul",{className:"checkbox-group"},BDV2.react.createElement(V2Components.Checkbox,{id:"live-update",text:"Live Update",onChange:this.onChange,checked:settingsCookie["bda-css-0"]})),BDV2.react.createElement("div",{id:"bd-customcss-detach-controls-button"},BDV2.react.createElement("button",{style:{borderRadius:"3px 0 0 3px",borderRight:"1px solid #3f4146"},className:"btn btn-primary",onClick:()=>{a.onClick("update")}},"Update"),BDV2.react.createElement("button",{style:{borderRadius:"0",borderLeft:"1px solid #2d2d2d",borderRight:"1px solid #2d2d2d"},className:"btn btn-primary",onClick:()=>{a.onClick("save")}},"Save"),BDV2.react.createElement("button",{style:{borderRadius:"0 3px 3px 0",borderLeft:"1px solid #3f4146"},className:"btn btn-primary",onClick:()=>{a.onClick("detach")}},"Detach"),BDV2.react.createElement("span",{style:{fontSize:"10px",marginLeft:"5px"}},"Unsaved changes are lost on detach")))))}onClick(a){let o=this;"update"===a?o.updateCss():"save"===a?o.saveCss():"detach"===a?o.detach():void 0}onChange(a,o){"live-update"===a?(settingsCookie["bda-css-0"]=o,mainCore.saveSettings()):void 0}updateCss(){0==$("#customcss").length&&$("head").append(""),$("#customcss").html(this.editor.session.getValue()).detach().appendTo(document.head)}saveCss(){window.bdStorage.set("bdcustomcss",btoa(this.editor.session.getValue()))}detach(){let a=this;a.setState({detached:!0});let o=a.detachedRoot;return o?void BDV2.reactDom.render(a.detachedEditor,o):void console.log("FAILED TO INJECT ROOT: .app")}get detachedRoot(){let a=$("#bd-customcss-detach-container");return a.length?a[0]:this.injectDetachedRoot()?this.detachedRoot:null}injectDetachedRoot(){return!!$(".app").length&&($("
",{id:"bd-customcss-detach-container"}).insertAfter($(".app")),!0)}attach(){let a=this;a.setState({detached:!1})}}class V2C_List extends BDV2.reactComponent{constructor(a){super(a)}render(){return BDV2.react.createElement("ul",{className:this.props.className},this.props.children)}}class V2C_ContentColumn extends BDV2.reactComponent{constructor(a){super(a)}render(){return BDV2.react.createElement("div",{className:"content-column default"},BDV2.react.createElement("h2",{className:"ui-form-title h2 margin-reset margin-bottom-20"},this.props.title),this.props.children)}}class V2C_PluginCard extends BDV2.reactComponent{constructor(a){super(a);let o=this;o.onChange=o.onChange.bind(o),o.showSettings=o.showSettings.bind(o),o.setInitialState(),o.hasSettings="function"==typeof o.props.plugin.getSettingsPanel,o.settingsPanel=""}setInitialState(){this.state={checked:pluginCookie[this.props.plugin.getName()],settings:!1}}componentDidUpdate(){if(this.state.settings){if("object"==typeof this.settingsPanel&&this.refs.settingspanel.appendChild(this.settingsPanel),!settingsCookie["fork-ps-3"])return;var a=(l,u)=>{let h=l.scrollTop,g=h+l.clientHeight,b=u.offsetTop,f=b+u.clientHeight;return bg};let o=$(BDV2.reactDom.findDOMNode(this)),d=o.parents(".scroller");if(!a(d[0],o[0]))return;d.animate({scrollTop:o.offset().top-d.offset().top+d.scrollTop()-30},300)}}render(){let a=this,{plugin:o}=this.props,d=o.getName(),l=o.getAuthor(),u=o.getDescription(),h=o.getVersion(),g=bdplugins[d].website,b=bdplugins[d].source;if(this.state.settings){try{a.settingsPanel=o.getSettingsPanel()}catch(f){utils.err("Unable to get settings panel for "+o.getName()+".",f)}return BDV2.react.createElement("li",{className:"settings-open ui-switch-item"},BDV2.react.createElement("div",{style:{float:"right",cursor:"pointer"},onClick:()=>{this.refs.settingspanel.innerHTML="",a.setState({settings:!1})}},BDV2.react.createElement(V2Components.XSvg,null)),"object"==typeof a.settingsPanel&&BDV2.react.createElement("div",{id:`plugin-settings-${d}`,className:"plugin-settings",ref:"settingspanel"}),"object"!=typeof a.settingsPanel&&BDV2.react.createElement("div",{id:`plugin-settings-${d}`,className:"plugin-settings",ref:"settingspanel",dangerouslySetInnerHTML:{__html:a.settingsPanel}}))}return BDV2.react.createElement("li",{"data-name":d,"data-version":h,className:"settings-closed ui-switch-item"},BDV2.react.createElement("div",{className:"bda-header"},BDV2.react.createElement("span",{className:"bda-header-title"},BDV2.react.createElement("span",{className:"bda-name"},d)," v",BDV2.react.createElement("span",{className:"bda-version"},h)," by ",BDV2.react.createElement("span",{className:"bda-author"},l)),BDV2.react.createElement("label",{className:"ui-switch-wrapper ui-flex-child",style:{flex:"0 0 auto"}},BDV2.react.createElement("input",{checked:this.state.checked,onChange:this.onChange,className:"ui-switch-checkbox",type:"checkbox"}),BDV2.react.createElement("div",{className:this.state.checked?"ui-switch checked":"ui-switch"}))),BDV2.react.createElement("div",{className:"bda-description-wrap scroller-wrap fade"},BDV2.react.createElement("div",{className:"bda-description scroller"},u)),(g||b||this.hasSettings)&&BDV2.react.createElement("div",{className:"bda-footer"},BDV2.react.createElement("span",{className:"bda-links"},g&&BDV2.react.createElement("a",{className:"bda-link bda-link-website",href:g,target:"_blank"},"Website"),g&&b&&" | ",b&&BDV2.react.createElement("a",{className:"bda-link bda-link-source",href:b,target:"_blank"},"Source")),this.hasSettings&&BDV2.react.createElement("button",{onClick:this.showSettings,className:"bda-settings-button",disabled:!this.state.checked},"Settings")))}onChange(){this.setState({checked:!this.state.checked}),pluginModule.togglePlugin(this.props.plugin.getName())}showSettings(){this.hasSettings&&this.setState({settings:!0})}}class V2C_ThemeCard extends BDV2.reactComponent{constructor(a){super(a),this.setInitialState(),this.onChange=this.onChange.bind(this)}setInitialState(){this.state={checked:themeCookie[this.props.theme.name]}}render(){let{theme:a}=this.props,o=a.name,d=a.description,l=a.version,u=a.author,h=bdthemes[o].website,g=bdthemes[o].source;return BDV2.react.createElement("li",{"data-name":o,"data-version":l,className:"settings-closed ui-switch-item"},BDV2.react.createElement("div",{className:"bda-header"},BDV2.react.createElement("span",{className:"bda-header-title"},BDV2.react.createElement("span",{className:"bda-name"},o)," v",BDV2.react.createElement("span",{className:"bda-version"},l)," by ",BDV2.react.createElement("span",{className:"bda-author"},u)),BDV2.react.createElement("label",{className:"ui-switch-wrapper ui-flex-child",style:{flex:"0 0 auto"}},BDV2.react.createElement("input",{checked:this.state.checked,onChange:this.onChange,className:"ui-switch-checkbox",type:"checkbox"}),BDV2.react.createElement("div",{className:this.state.checked?"ui-switch checked":"ui-switch"}))),BDV2.react.createElement("div",{className:"bda-description-wrap scroller-wrap fade"},BDV2.react.createElement("div",{className:"bda-description scroller"},d)),(h||g)&&BDV2.react.createElement("div",{className:"bda-footer"},BDV2.react.createElement("span",{className:"bda-links"},h&&BDV2.react.createElement("a",{className:"bda-link",href:h,target:"_blank"},"Website"),h&&g&&" | ",g&&BDV2.react.createElement("a",{className:"bda-link",href:g,target:"_blank"},"Source"))))}onChange(){this.setState({checked:!this.state.checked}),themeModule.toggleTheme(this.props.theme.name)}}class V2Cs_TabBar{static get Item(){return V2C_TabBarItem}static get Header(){return V2C_TabBarHeader}static get Separator(){return V2C_TabBarSeparator}}class V2Components{static get SettingsPanel(){return V2C_SettingsPanel}static get Switch(){return V2C_Switch}static get Scroller(){return V2C_Scroller}static get TabBar(){return V2Cs_TabBar}static get SideBar(){return V2C_SideBar}static get Tools(){return V2C_Tools}static get SettingsTitle(){return V2C_SettingsTitle}static get CssEditor(){return V2C_CssEditor}static get Checkbox(){return V2C_Checkbox}static get List(){return V2C_List}static get PluginCard(){return V2C_PluginCard}static get ThemeCard(){return V2C_ThemeCard}static get ContentColumn(){return V2C_ContentColumn}static get XSvg(){return V2C_XSvg}static get Layer(){return V2C_Layer}static get SidebarView(){return V2C_SidebarView}static get ServerCard(){return V2C_ServerCard}}class V2_SettingsPanel_Sidebar{constructor(a){this.onClick=a}get items(){return[{text:"Core",id:"core"},{text:"Zere's Fork",id:"fork"},{text:"Emotes",id:"emotes"},{text:"Custom CSS",id:"customcss"},{text:"Plugins",id:"plugins"},{text:"Themes",id:"themes"}]}get component(){return BDV2.react.createElement("span",null,BDV2.react.createElement(V2Components.SideBar,{onClick:this.onClick,headerText:"Bandaged BD",items:this.items}),BDV2.react.createElement("div",{style:{fontSize:"12px",fontWeight:"600",color:"#72767d",padding:"2px 10px"}},`BD v${bdVersion} by `,BDV2.react.createElement("a",{href:"https://github.com/Jiiks/",target:"_blank"},"Jiiks")),BDV2.react.createElement("div",{style:{fontSize:"12px",fontWeight:"600",color:"#72767d",padding:"2px 10px"}},`BBD v${bbdVersion} by `,BDV2.react.createElement("a",{href:"https://github.com/rauenzi/",target:"_blank"},"Zerebos")))}get root(){let a=$("#bd-settings-sidebar");return a.length?a[0]:this.injectRoot()?this.root:null}injectRoot(){let a=$("[class*='side-'] > [class*='item-']:not([class*=Danger])").last();return!!a.length&&($("",{id:"bd-settings-sidebar"}).insertBefore(a.prev()),!0)}render(){let a=this.root;return a?void BDV2.reactDom.render(this.component,a):void console.log("FAILED TO LOCATE ROOT: [class*='side-'] > [class*='item-']:not([class*=Danger])")}}class V2_SettingsPanel{constructor(){let a=this;a.sideBarOnClick=a.sideBarOnClick.bind(a),a.onChange=a.onChange.bind(a),a.updateSettings=this.updateSettings.bind(a),a.sidebar=new V2_SettingsPanel_Sidebar(a.sideBarOnClick)}get root(){let a=$("#bd-settingspane-container");return a.length?a[0]:this.injectRoot()?this.root:null}injectRoot(){return!!$(".layer-3QrUeG .ui-standard-sidebar-view, .layer-3QrUeG .ui-standard-sidebar-view").length&&($(".layer-3QrUeG .ui-standard-sidebar-view, .layer-3QrUeG .ui-standard-sidebar-view").append($("
",{class:"content-region",id:"bd-settingspane-container"})),!0)}get coreSettings(){return this.getSettings("core")}get forkSettings(){return this.getSettings("fork")}get emoteSettings(){return this.getSettings("emote")}getSettings(a){return Object.keys(settings).reduce((o,d)=>{let l=settings[d];return l.cat===a&&l.implemented&&!l.hidden&&(l.text=d,o.push(l)),o},[])}sideBarOnClick(a){let o=this;$(".content-region").first().hide(),$(o.root).show();"core"===a?o.renderCoreSettings():"fork"===a?o.renderForkSettings():"emotes"===a?o.renderEmoteSettings():"customcss"===a?o.renderCustomCssEditor():"plugins"===a?o.renderPluginPane():"themes"===a?o.renderThemePane():void 0}onClick(){}onChange(a,o){settingsCookie[a]=o,this.updateSettings()}updateSettings(){let a=settingsCookie;a["bda-es-0"]?$("#twitchcord-button-container").show():$("#twitchcord-button-container").hide(),a["bda-gs-b"]?$("body").addClass("bd-blue"):$("body").removeClass("bd-blue"),a["bda-gs-2"]?$("body").addClass("bd-minimal"):$("body").removeClass("bd-minimal"),a["bda-gs-3"]?$("body").addClass("bd-minimal-chan"):$("body").removeClass("bd-minimal-chan"),a["bda-gs-1"]?$("#bd-pub-li").show():$("#bd-pub-li").hide(),a["bda-gs-4"]?voiceMode.enable():voiceMode.disable(),a["bda-gs-5"]?$("#app-mount").addClass("bda-dark"):$("#app-mount").removeClass("bda-dark"),a["bda-gs-6"]&&mainCore.inject24Hour(),a["bda-gs-7"]?mainCore.injectColoredText():mainCore.removeColoredText(),a["fork-ps-4"]?classNormalizer.start():classNormalizer.stop(),a["fork-es-2"]?$(".emote").each(()=>{$(this).addClass("stop-animation")}):$(".emote").each(()=>{$(this).removeClass("stop-animation")}),a["bda-gs-8"]?dMode.enable(a["fork-dm-1"]):dMode.disable(),mainCore.saveSettings()}renderSidebar(){let a=this;$("[class*='side-'] > [class*='item-']").off("click.v2settingspanel").on("click.v2settingspanel",()=>{BDV2.reactDom.unmountComponentAtNode(a.root),$(a.root).hide(),$(".content-region").first().show()}),a.sidebar.render()}get coreComponent(){return BDV2.react.createElement(V2Components.Scroller,{contentColumn:!0,fade:!0,dark:!0,children:[BDV2.react.createElement(V2Components.SettingsPanel,{key:"cspanel",title:"Core Settings",onChange:this.onChange,settings:this.coreSettings}),BDV2.react.createElement(V2Components.Tools,{key:"tools"})]})}get forkComponent(){return BDV2.react.createElement(V2Components.Scroller,{contentColumn:!0,fade:!0,dark:!0,children:[BDV2.react.createElement(V2Components.SettingsPanel,{key:"fspanel",title:"Zere's Fork Settings",onChange:this.onChange,settings:this.forkSettings,button:{title:"Clear Emote Cache",onClick:()=>{emoteModule.clearEmoteData(),emoteModule.init(),quickEmoteMenu.init()}}}),BDV2.react.createElement(V2Components.Tools,{key:"tools"})]})}get emoteComponent(){return BDV2.react.createElement(V2Components.Scroller,{contentColumn:!0,fade:!0,dark:!0,children:[BDV2.react.createElement(V2Components.SettingsPanel,{key:"espanel",title:"Emote Settings",onChange:this.onChange,settings:this.emoteSettings}),BDV2.react.createElement(V2Components.Tools,{key:"tools"})]})}get customCssComponent(){return BDV2.react.createElement(V2Components.Scroller,{contentColumn:!0,fade:!0,dark:!0,children:[BDV2.react.createElement(V2Components.CssEditor,{key:"csseditor"}),BDV2.react.createElement(V2Components.Tools,{key:"tools"})]})}get pluginsComponent(){let a=Object.keys(bdplugins).reduce((u,h)=>{return u.push(BDV2.react.createElement(V2Components.PluginCard,{key:h,plugin:bdplugins[h].plugin})),u},[]),o=BDV2.react.createElement(V2Components.List,{key:"plugin-list",className:"bda-slist",children:a}),d=BDV2.react.createElement("button",{key:"folder-button",className:"bd-pfbtn",onClick:()=>{betterDiscordIPC.send("asynchronous-message",{arg:"opendir",path:"plugindir"})}},"Open Plugin Folder"),l=BDV2.react.createElement(V2Components.ContentColumn,{key:"pcolumn",title:"Plugins",children:[d,o]});return BDV2.react.createElement(V2Components.Scroller,{contentColumn:!0,fade:!0,dark:!0,children:[l,BDV2.react.createElement(V2Components.Tools,{key:"tools"})]})}get themesComponent(){let a=Object.keys(bdthemes).reduce((u,h)=>{return u.push(BDV2.react.createElement(V2Components.ThemeCard,{key:h,theme:bdthemes[h]})),u},[]),o=BDV2.react.createElement(V2Components.List,{key:"theme-list",className:"bda-slist",children:a}),d=BDV2.react.createElement("button",{key:"folder-button",className:"bd-pfbtn",onClick:()=>{betterDiscordIPC.send("asynchronous-message",{arg:"opendir",path:"themedir"})}},"Open Theme Folder"),l=BDV2.react.createElement(V2Components.ContentColumn,{key:"tcolumn",title:"Themes",children:[d,o]});return BDV2.react.createElement(V2Components.Scroller,{contentColumn:!0,fade:!0,dark:!0,children:[l,BDV2.react.createElement(V2Components.Tools,{key:"tools"})]})}renderCoreSettings(){let a=this.root;return a?void BDV2.reactDom.render(this.coreComponent,a):void console.log("FAILED TO LOCATE ROOT: .layer .ui-standard-sidebar-view")}renderForkSettings(){let a=this.root;return a?void BDV2.reactDom.render(this.forkComponent,a):void console.log("FAILED TO LOCATE ROOT: .layer .ui-standard-sidebar-view")}renderEmoteSettings(){let a=this.root;return a?void BDV2.reactDom.render(this.emoteComponent,a):void console.log("FAILED TO LOCATE ROOT: .layer .ui-standard-sidebar-view")}renderCustomCssEditor(){let a=this.root;return a?void BDV2.reactDom.render(this.customCssComponent,a):void console.log("FAILED TO LOCATE ROOT: .layer .ui-standard-sidebar-view")}renderPluginPane(){let a=this.root;return a?void BDV2.reactDom.render(this.pluginsComponent,a):void console.log("FAILED TO LOCATE ROOT: .layer .ui-standard-sidebar-view")}renderThemePane(){let a=this.root;return a?void BDV2.reactDom.render(this.themesComponent,a):void console.log("FAILED TO LOCATE ROOT: .layer .ui-standard-sidebar-view")}}class V2C_Layer extends BDV2.reactComponent{constructor(a){super(a)}componentDidMount(){$(window).on(`keyup.${this.props.id}`,a=>{27===a.which&&BDV2.reactDom.unmountComponentAtNode(this.refs.root.parentNode)}),$(`#${this.props.id}`).animate({opacity:1},{step:function(a){$(this).css("transform",`scale(${1.1-0.1*a}) translateZ(0px)`)},duration:200,done:()=>{$(`#${this.props.id}`).css("opacity","").css("transform","")}})}componentWillUnmount(){$(window).off(`keyup.${this.props.id}`),$(`#${this.props.id}`).animate({opacity:0},{step:function(a){$(this).css("transform",`scale(${1.1-0.1*a}) translateZ(0px)`)},duration:200,done:()=>{$(`#${this.props.rootId}`).remove()}}),$("[class*=\"layer-\"]").removeClass("publicServersOpen").animate({opacity:1},{step:function(a){$(this).css("transform",`scale(${0.07*a+0.93}) translateZ(0px)`)},duration:200,done:()=>{$("[class*=\"layer-\"]").css("opacity","").css("transform","")}})}componentWillMount(){$("[class*=\"layer-\"]").addClass("publicServersOpen").animate({opacity:0},{step:function(a){$(this).css("transform",`scale(${0.07*a+0.93}) translateZ(0px)`)},duration:200})}render(){return BDV2.react.createElement("div",{className:"layer bd-layer layer-3QrUeG",id:this.props.id,ref:"root",style:{opacity:0,transform:"scale(1.1) translateZ(0px)"}},this.props.children)}}class V2C_SidebarView extends BDV2.reactComponent{constructor(a){super(a)}render(){let{sidebar:a,content:o,tools:d}=this.props.children;return BDV2.react.createElement("div",{className:"ui-standard-sidebar-view"},BDV2.react.createElement("div",{className:"sidebar-region"},BDV2.react.createElement(V2Components.Scroller,{key:"sidebarScroller",ref:"sidebarScroller",sidebar:!0,fade:a.fade||!0,dark:a.dark||!0,children:a.component})),BDV2.react.createElement("div",{className:"content-region"},BDV2.react.createElement("div",{className:"content-transition-wrap"},BDV2.react.createElement("div",{className:"scrollerWrap-2lJEkd content-region-scroller-wrap scrollerThemed-2oenus themeGhost-28MSn0 scrollerTrack-1ZIpsv"},BDV2.react.createElement("div",{className:"scroller-2FKFPG content-region-scroller scroller",ref:"contentScroller"},BDV2.react.createElement("div",{className:"content-column default"},o.component),d.component)))))}}class V2_PublicServers{constructor(){}get component(){return BDV2.react.createElement(V2Components.Layer,{rootId:"pubslayerroot",id:"pubslayer",children:BDV2.react.createElement(V2C_PublicServers,{rootId:"pubslayerroot"})})}get root(){let a=document.getElementById("pubslayerroot");return a?a:this.injectRoot()?this.root:null}injectRoot(){return!!$(".layers, .layers-3iHuyZ").length&&($(".layers, .layers-3iHuyZ").append($("
",{id:"pubslayerroot"})),!0)}render(){let a=this.root;return a?void BDV2.reactDom.render(this.component,a):void console.log("FAILED TO LOCATE ROOT: .layers")}get button(){let a=$("
",{class:BDV2.guildClasses.guild,id:"bd-pub-li",css:{height:"20px",display:settingsCookie["bda-gs-1"]?"":"none"}}).append($("
",{class:BDV2.guildClasses.guildInner,css:{height:"20px","border-radius":"4px"}}).append($("",{}).append($("
",{text:"public",id:"bd-pub-button",css:{"line-height":"20px","font-size":"12px"},click:()=>{this.render()}}))));return a}initialize(){let a=$(`.${BDV2.guildClasses.guilds}>:first-child`);a.after(this.button)}}class V2C_ServerCard extends BDV2.reactComponent{constructor(a){super(a),this.props.server.iconUrl||(this.props.server.iconUrl=this.props.fallback),this.state={imageError:!1,joined:this.props.guildList.includes(this.props.server.identifier)}}render(){let{server:a}=this.props;return BDV2.react.createElement("div",{className:`card-3Qj_Yx cardPrimary-1Hv-to marginBottom8-AtZOdT bd-server-card${a.pinned?" bd-server-card-pinned":""}`},BDV2.react.createElement("img",{ref:"img",className:"bd-server-image",src:a.iconUrl,onError:this.handleError.bind(this)}),BDV2.react.createElement("div",{className:"flexChild-faoVW3 bd-server-content"},BDV2.react.createElement("div",{className:"flex-1xMQg5 flex-1O1GKY horizontal-1ae9ci horizontal-2EEEnY directionRow-3v3tfG noWrap-3jynv6 bd-server-header"},BDV2.react.createElement("h5",{className:"h5-18_1nd defaultColor-1_ajX0 margin-reset bd-server-name"},a.name),BDV2.react.createElement("h5",{className:"h5-18_1nd defaultColor-1_ajX0 margin-reset bd-server-member-count"},a.members," Members")),BDV2.react.createElement("div",{className:"flex-1xMQg5 flex-1O1GKY horizontal-1ae9ci horizontal-2EEEnY directionRow-3v3tfG noWrap-3jynv6"},BDV2.react.createElement("div",{className:"scrollerWrap-2lJEkd scrollerThemed-2oenus themeGhostHairline-DBD-2d scrollerFade-1Ijw5y bd-server-description-container"},BDV2.react.createElement("div",{className:"scroller-2FKFPG scroller bd-server-description"},a.description))),BDV2.react.createElement("div",{className:"flex-1xMQg5 flex-1O1GKY horizontal-1ae9ci horizontal-2EEEnY directionRow-3v3tfG noWrap-3jynv6 bd-server-footer"},BDV2.react.createElement("div",{className:"flexChild-faoVW3 bd-server-tags",style:{flex:"1 1 auto"}},a.categories.join(", ")),this.state.joined&&BDV2.react.createElement("button",{type:"button",className:"button-38aScr lookFilled-1Gx00P colorBrand-3pXr91 sizeMin-1mJd1x grow-q77ONN colorGreen-29iAKY",style:{minHeight:"12px",marginTop:"4px",backgroundColor:"#3ac15c"}},BDV2.react.createElement("div",{className:"ui-button-contents"},"Joined")),a.error&&BDV2.react.createElement("button",{type:"button",className:"button-38aScr lookFilled-1Gx00P colorBrand-3pXr91 sizeMin-1mJd1x grow-q77ONN disabled-9aF2ug",style:{minHeight:"12px",marginTop:"4px",backgroundColor:"#c13a3a"}},BDV2.react.createElement("div",{className:"ui-button-contents"},"Error")),!a.error&&!this.state.joined&&BDV2.react.createElement("button",{type:"button",className:"button-38aScr lookFilled-1Gx00P colorBrand-3pXr91 sizeMin-1mJd1x grow-q77ONN",style:{minHeight:"12px",marginTop:"4px"},onClick:()=>{this.join()}},BDV2.react.createElement("div",{className:"ui-button-contents"},"Join")))))}handleError(){this.props.server.iconUrl=this.props.fallback,this.setState({imageError:!0})}join(){this.props.join(this)}}class V2C_PublicServers extends BDV2.reactComponent{constructor(a){super(a),this.setInitialState(),this.close=this.close.bind(this),this.changeCategory=this.changeCategory.bind(this),this.search=this.search.bind(this),this.searchKeyDown=this.searchKeyDown.bind(this),this.checkConnection=this.checkConnection.bind(this),this.join=this.join.bind(this),this.connect=this.connect.bind(this),this.GuildStore=BDV2.WebpackModules.findByUniqueProperties(["getGuilds"]),this.AvatarDefaults=BDV2.WebpackModules.findByUniqueProperties(["getUserAvatarURL","DEFAULT_AVATARS"]),this.InviteActions=BDV2.WebpackModules.findByUniqueProperties(["acceptInvite"]),this.SortedGuildStore=BDV2.WebpackModules.findByUniqueProperties(["getSortedGuilds"])}componentDidMount(){this.checkConnection()}setInitialState(){this.state={selectedCategory:-1,title:"Loading...",loading:!0,servers:[],next:null,connection:{state:0,user:null}}}close(){BDV2.reactDom.unmountComponentAtNode(document.getElementById(this.props.rootId))}search(a,o){let d=this;$.ajax({method:"GET",url:`${d.endPoint}${a}${a?"&schema=new":"?schema=new"}`,success:l=>{let u=l.results.reduce((f,y)=>{return y.joined=!1,f.push(y),f},[]);o||(u=d.state.servers.concat(u));let g=l.size+l.from;l.next=`?from=${g}`,d.state.term&&(l.next+=`&term=${d.state.term}`),d.state.selectedCategory&&(l.next+=`&category=${d.categoryButtons[d.state.selectedCategory]}`),g>=l.total&&(g=l.total,l.next=null);let b=`Showing 1-${g} of ${l.total} results in ${d.categoryButtons[d.state.selectedCategory]}`;d.state.term&&(b+=` for ${d.state.term}`),d.setState({loading:!1,title:b,servers:u,next:l.next}),o&&(d.refs.sbv.refs.contentScroller.scrollTop=0)},error:()=>{d.setState({loading:!1,title:"Failed to load servers. Check console for details"})}})}join(a){return a.props.pinned?this.InviteActions.acceptInvite(a.props.invite_code):void $.ajax({method:"GET",url:`${this.joinEndPoint}/${a.props.server.identifier}`,headers:{Accept:"application/json;","Content-Type":"application/json;","x-discord-id":this.state.connection.user.id,"x-discord-token":this.state.connection.user.accessToken},crossDomain:!0,xhrFields:{withCredentials:!0},success:()=>{a.setState({joined:!0})}})}connect(){let a=this,o=a.windowOptions;o.x=Math.round(window.screenX+window.innerWidth/2-o.width/2),o.y=Math.round(window.screenY+window.innerHeight/2-o.height/2),a.joinWindow=new(window.require("electron").remote.BrowserWindow)(o);let d=window.location.hostname.split(".")[0],l=a.connectEndPoint+("canary"===d||"ptb"===d?`/${d}`:"")+"?betterDiscord";a.joinWindow.webContents.on("did-navigate",(u,h)=>{"https://join.discordservers.com/session"!=h||(a.joinWindow.close(),a.checkConnection())}),a.joinWindow.loadURL(l)}get windowOptions(){return{width:500,height:550,backgroundColor:"#282b30",show:!0,resizable:!1,maximizable:!1,minimizable:!1,alwaysOnTop:!0,frame:!1,center:!1}}get bdServer(){let o=this.SortedGuildStore.guildPositions,d=this.AvatarDefaults.DEFAULT_AVATARS;return BDV2.react.createElement(V2Components.ServerCard,{server:{name:"BetterDiscord",online:"7500+",members:"20000+",categories:["community","programming","support"],description:"Official BetterDiscord server for support etc",identifier:"86004744966914048",iconUrl:"https://cdn.discordapp.com/icons/86004744966914048/292e7f6bfff2b71dfd13e508a859aedd.webp",nativejoin:!0,invite_code:"0Tmfo5ZbORCRqbAd",pinned:!0},pinned:!0,join:this.join,guildList:o,fallback:d[Math.floor(5*Math.random())]})}get endPoint(){return"https://search.discordservers.com"}get joinEndPoint(){return"https://join.discordservers.com"}get connectEndPoint(){return"https://join.discordservers.com/connect"}checkConnection(){let a=this;try{$.ajax({method:"GET",url:`${a.joinEndPoint}/session`,headers:{Accept:"application/json;","Content-Type":"application/json;"},crossDomain:!0,xhrFields:{withCredentials:!0},success:o=>{a.setState({selectedCategory:0,connection:{state:2,user:o}}),a.search("",!0)},error:o=>{if(403===o.status||404===o.status)return void a.setState({title:"Not connected to discordservers.com!",loading:!0,selectedCategory:-1,connection:{state:1,user:null}})}})}catch(o){a.setState({title:"Not connected to discordservers.com!",loading:!0,selectedCategory:-1,connection:{state:1,user:null}})}}render(){return BDV2.react.createElement(V2Components.SidebarView,{ref:"sbv",children:this.component})}get component(){return{sidebar:{component:this.sidebar},content:{component:this.content},tools:{component:BDV2.react.createElement(V2Components.Tools,{key:"pt",ref:"tools",onClick:this.close})}}}get sidebar(){return BDV2.react.createElement("div",{className:"sidebar",key:"ps"},BDV2.react.createElement("div",{className:"ui-tab-bar SIDE"},BDV2.react.createElement("div",{className:"ui-tab-bar-header",style:{fontSize:"16px"}},"Public Servers"),BDV2.react.createElement(V2Components.TabBar.Separator,null),this.searchInput,BDV2.react.createElement(V2Components.TabBar.Separator,null),BDV2.react.createElement(V2Components.TabBar.Header,{text:"Categories"}),this.categoryButtons.map((a,o)=>{return BDV2.react.createElement(V2Components.TabBar.Item,{id:o,onClick:this.changeCategory,key:o,text:a,selected:this.state.selectedCategory===o})}),BDV2.react.createElement(V2Components.TabBar.Separator,null),this.footer,this.connection))}get searchInput(){return BDV2.react.createElement("div",{className:"ui-form-item"},BDV2.react.createElement("div",{className:"ui-text-input flex-vertical",style:{width:"172px",marginLeft:"10px"}},BDV2.react.createElement("input",{ref:"searchinput",onKeyDown:this.searchKeyDown,onChange:()=>{},type:"text",className:"input default",placeholder:"Search...",maxLength:"50"})))}searchKeyDown(a){let o=this;if(!(o.state.loading||13!==a.which)){o.setState({loading:!0,title:"Loading...",term:a.target.value});let d=`?term=${a.target.value}`;0!==o.state.selectedCategory&&(d+=`&category=${o.categoryButtons[o.state.selectedCategory]}`),o.search(d,!0)}}get categoryButtons(){return["All","FPS Games","MMO Games","Strategy Games","Sports Games","Puzzle Games","Retro Games","Party Games","Tabletop Games","Sandbox Games","Simulation Games","Community","Language","Programming","Other"]}changeCategory(a){let o=this;if(!o.state.loading)return o.refs.searchinput.value="",o.setState({loading:!0,selectedCategory:a,title:"Loading...",term:null}),0===a?void o.search("",!0):void o.search(`?category=${o.categoryButtons[a]}`,!0)}get content(){let a=this,o=this.SortedGuildStore.guildPositions,d=this.AvatarDefaults.DEFAULT_AVATARS;return 1===a.state.connection.state?a.notConnected:[BDV2.react.createElement("div",{ref:"content",key:"pc",className:"content-column default"},BDV2.react.createElement(V2Components.SettingsTitle,{text:a.state.title}),a.bdServer,a.state.servers.map(l=>{return BDV2.react.createElement(V2Components.ServerCard,{key:l.identifier,server:l,join:a.join,guildList:o,fallback:d[Math.floor(5*Math.random())]})}),a.state.next&&BDV2.react.createElement("button",{type:"button",onClick:()=>{a.state.loading||(a.setState({loading:!0}),a.search(a.state.next,!1))},className:"ui-button filled brand small grow",style:{width:"100%",marginTop:"10px",marginBottom:"10px"}},BDV2.react.createElement("div",{className:"ui-button-contents"},a.state.loading?"Loading":"Load More")),0`),d=[a(bdpluginErrors),a(bdthemeErrors)];o.find(".tab-bar-item").on("click",l=>{l.preventDefault(),o.find(".tab-bar-item").removeClass("selected"),$(l.target).addClass("selected"),o.find(".scroller").empty().append(d[$(l.target).index()])}),o.find(".footer button").on("click",()=>{o.addClass("closing"),setTimeout(()=>{o.remove()},300)}),o.find(".bd-backdrop").on("click",()=>{o.addClass("closing"),setTimeout(()=>{o.remove()},300)}),o.appendTo("#app-mount"),o.find(".tab-bar-item")[0].click()}},Core.prototype.showToast=function(a,o={}){if(bdConfig.deferLoaded){if(!document.querySelector(".bd-toasts")){let g=document.createElement("div");g.classList.add("bd-toasts");let b=document.querySelector(".chat-3bRxxu form, #friends, .noChannel-Z1DQK7, .activityFeed-28jde9");g.style.setProperty("left",b?b.getBoundingClientRect().left+"px":"0px"),g.style.setProperty("width",b?b.offsetWidth+"px":"100%"),g.style.setProperty("bottom",(document.querySelector(".chat-3bRxxu form")?document.querySelector(".chat-3bRxxu form").offsetHeight:80)+"px"),document.querySelector(".app").appendChild(g)}const{type:d="",icon:l=!0,timeout:u=3e3}=o;let h=document.createElement("div");h.classList.add("bd-toast"),d&&h.classList.add("toast-"+d),d&&l&&h.classList.add("icon"),h.innerText=a,document.querySelector(".bd-toasts").appendChild(h),setTimeout(()=>{h.classList.add("closing"),setTimeout(()=>{h.remove(),document.querySelectorAll(".bd-toasts .bd-toast").length||document.querySelector(".bd-toasts").remove()},300)},u)}};var emotesFfz={},emotesBTTV={},emotesBTTV2={},emotesTwitch={},subEmotesTwitch={};window.bdEmotes={TwitchGlobal:{},TwitchSubscriber:{},BTTV:{},FrankerFaceZ:{},BTTV2:{}},window.bdEmoteSettingIDs={TwitchGlobal:"bda-es-7",TwitchSubscriber:"bda-es-7",BTTV:"bda-es-2",FrankerFaceZ:"bda-es-1",BTTV2:"bda-es-2"};function EmoteModule(){}EmoteModule.prototype.init=async function(){this.modifiers=["flip","spin","pulse","spin2","spin3","1spin","2spin","3spin","tr","bl","br","shake","shake2","shake3","flap"],this.overrides=["twitch","bttv","ffz"],this.categories=["TwitchGlobal","TwitchSubscriber","BTTV","BTTV2","FrankerFaceZ"];let a={TwitchGlobal:{url:"https://twitchemotes.com/api_cache/v3/global.json",backup:"https://"+bdConfig.updater.CDN+"/"+bdConfig.repo+"/BetterDiscordApp/"+bdConfig.hash+"/data/emotedata_twitch_global.json",variable:"TwitchGlobal",oldVariable:"emotesTwitch",getEmoteURL:o=>`https://static-cdn.jtvnw.net/emoticons/v1/${o.id}/1.0`,getOldData:(o,d)=>{return{id:o.match(/\/([0-9]+)\//)[1],code:d,emoticon_set:0,description:null}}},TwitchSubscriber:{url:"https://twitchemotes.com/api_cache/v3/subscriber.json",backup:"https://"+bdConfig.updater.CDN+"/"+bdConfig.repo+"/BetterDiscordApp/"+bdConfig.hash+"/data/emotedata_twitch_subscriber.json",variable:"TwitchSubscriber",oldVariable:"subEmotesTwitch",parser:o=>{let d={};for(let l in o){let u=o[l];for(let b,h=0,g=u.emotes.length;h{return o},getEmoteURL:o=>`https://static-cdn.jtvnw.net/emoticons/v1/${o}/1.0`,getOldData:o=>o.match(/\/([0-9]+)\//)[1]},FrankerFaceZ:{url:"https://"+bdConfig.updater.CDN+"/"+bdConfig.repo+"/BetterDiscordApp/"+bdConfig.hash+"/data/emotedata_ffz.json",variable:"FrankerFaceZ",oldVariable:"emotesFfz",getEmoteURL:o=>`https://cdn.frankerfacez.com/emoticon/${o}/1`,getOldData:o=>o.match(/\/([0-9]+)\//)[1]},BTTV:{url:"https://api.betterttv.net/emotes",variable:"BTTV",oldVariable:"emotesBTTV",parser:o=>{let d={};for(let h,l=0,u=o.emotes.length;l`${o}`,getOldData:o=>o},BTTV2:{url:"https://"+bdConfig.updater.CDN+"/"+bdConfig.repo+"/BetterDiscordApp/"+bdConfig.hash+"/data/emotedata_bttv.json",variable:"BTTV2",oldVariable:"emotesBTTV2",getEmoteURL:o=>`https://cdn.betterttv.net/emote/${o}/1x`,getOldData:o=>o.match(/emote\/(.+)\//)[1]}};for(this.loadEmoteData(a),this.getBlacklist();!BDV2.MessageContentComponent;)await new Promise(o=>setTimeout(o,100));this.cancelEmoteRender||(this.cancelEmoteRender=Utils.monkeyPatch(BDV2.MessageContentComponent.prototype,"render",{after:({thisObject:o,returnValue:d})=>{const l=d.props.children[1];if(l.props.children){const u=l.props.children[1];if(u&&u.length){for(let g=0;gV.length)){this.modifiers.includes(U)&&settingsCookie["bda-es-8"]||(U=""),this.overrides.includes(H)?U=H:H="";let W=this.categories[M];if("twitch"===H?bdEmotes.TwitchGlobal[V]?W="TwitchGlobal":bdEmotes.TwitchSubscriber[V]&&(W="TwitchSubscriber"):"bttv"===H?bdEmotes.BTTV[V]?W="BTTV":bdEmotes.BTTV2[V]&&(W="BTTV2"):"ffz"==H&&bdEmotes.FrankerFaceZ[V]&&(W="FrankerFaceZ"),bdEmotes[W][V]&&settingsCookie[bdEmoteSettingIDs[W]]){const Z=u[g].match(new RegExp(`([\\s]|^)${utils.escape(U?V+":"+U:V)}([\\s]|$)`));if(Z){const J=u[g].substring(0,Z.index+Z[1].length),K=u[g].substring(Z.index+Z[0].length-Z[2].length);u[g]=J;const Q=BDV2.react.createElement(BDEmote,{name:V,url:bdEmotes[W][V],modifier:U});u.splice(g+1,0,K),u.splice(g+1,0,Q),g+=2}}}}}}const h=u.every(g=>{return"string"==typeof g&&""==g.replace(/\s*/,"")||g.type&&"BDEmote"==g.type.name||g.props&&g.props.children&&g.props.children.props&&g.props.children.props.emojiName});if(h)for(let g of u)"object"==typeof g&&("BDEmote"==g.type.name?g.props.jumboable=!0:g.props&&g.props.children&&g.props.children.props&&g.props.children.props.emojiName&&(g.props.children.props.jumboable=!0))}}}}))},EmoteModule.prototype.clearEmoteData=async function(){let a=require("fs"),d=bdConfig.dataPath+"emote_data.json",l=a.existsSync(d);l&&a.unlinkSync(d),window.bdEmotes={TwitchGlobal:{},TwitchSubscriber:{},BTTV:{},FrankerFaceZ:{},BTTV2:{}}},EmoteModule.prototype.goBack=async function(a){for(let o in a)for(let d in bdEmotes[a[o].variable])window[a[o].oldVariable][d]=a[o].getOldData(bdEmotes[a[o].variable][d],d)},EmoteModule.prototype.loadEmoteData=async function(a){let o=require("fs"),l=bdConfig.dataPath+"emote_data.json",u=o.existsSync(l);if(u&&!bdConfig.cache.expired){settingsCookie["fork-ps-2"]&&mainCore.showToast("Loading emotes from cache.",{type:"info"}),utils.log("[Emotes] Loading emotes from local cache.");let h=await new Promise(b=>{o.readFile(l,"utf8",(y,E)=>{utils.log("[Emotes] Emotes loaded from cache."),y&&(E={}),b(E)})}),g=Utils.testJSON(h);for(let b in g&&(bdEmotes=JSON.parse(h)),a)g=0{o(d,(h,g,b)=>{if(h)return utils.err("[Emotes] Could not download "+a.variable,h),a.backup?(a.url=a.backup,a.backup=null,a.backupParser&&(a.parser=a.backupParser),l(this.downloadEmotes(a))):u({});let f={};try{f=JSON.parse(b)}catch(y){return utils.err("[Emotes] Could not download "+a.variable,h),a.backup?(a.url=a.backup,a.backup=null,a.backupParser&&(a.parser=a.backupParser),l(this.downloadEmotes(a))):u({})}for(let y in"function"==typeof a.parser&&(f=a.parser(f)),f)f[y]=a.getEmoteURL(f[y]);l(f),utils.log("[Emotes] Downloaded: "+a.variable)})})},EmoteModule.prototype.getBlacklist=function(){$.getJSON("https://cdn.rawgit.com/rauenzi/betterDiscordApp/"+_hash+"/data/emotefilter.json",function(a){bemotes=a.blacklist})};var bemotes=[];EmoteModule.prototype.autoCapitalize=function(){$("body").delegate($(".channelTextArea-1LDbYG textarea:first"),"keyup change paste",()=>{if(settingsCookie["bda-es-4"]){var a=$(".channelTextArea-1LDbYG textarea:first").val();if(void 0!=a){var o=a.split(" ").pop();if(3",o+=" ",o+=" ",o+="
",this.qmeHeader=o;var d="";for(let h in d+="
",d+="
",d+="
",d+="
",bdEmotes.TwitchGlobal)if(bdEmotes.TwitchGlobal.hasOwnProperty(h)){var l=bdEmotes.TwitchGlobal[h];d+="
",d+=" \"\"",d+=" ",d+="
"}d+="
",d+="
",d+="
",d+="
",this.teContainer=d;var u="";for(let h in u+="
",u+="
",u+="
",u+="
",this.favoriteEmotes){var l=this.favoriteEmotes[h];u+="
",u+=" \"\"",u+=" ",u+="
"}u+="
",u+="
",u+="
",u+="
",this.faContainer=u},QuickEmoteMenu.prototype.favContext=function(a,o){a.stopPropagation();var d=$("
",{id:"rmenu","data-emoteid":$(o).prop("title"),text:"Remove",class:"context-menu theme-dark"});return d.css({top:a.pageY-$("#bda-qem-favourite-container").offset().top,left:a.pageX-$("#bda-qem-favourite-container").offset().left}),$(o).parent().append(d),d.on("click",function(l){return l.preventDefault(),l.stopPropagation(),$(this).remove(),delete quickEmoteMenu.favoriteEmotes[$(this).data("emoteid")],quickEmoteMenu.updateFavorites(),!1}),!1},QuickEmoteMenu.prototype.switchHandler=function(a){this.switchQem($(a).attr("id"))},QuickEmoteMenu.prototype.switchQem=function(a){var o=$("#bda-qem-twitch"),d=$("#bda-qem-favourite"),l=$("#bda-qem-emojis");o.removeClass("active"),d.removeClass("active"),l.removeClass("active"),$(".emojiPicker-3m1S-j").hide(),$("#bda-qem-favourite-container").hide(),$("#bda-qem-twitch-container").hide();"bda-qem-twitch"===a?(o.addClass("active"),$("#bda-qem-twitch-container").show()):"bda-qem-favourite"===a?(d.addClass("active"),$("#bda-qem-favourite-container").show()):"bda-qem-emojis"===a?(l.addClass("active"),$(".emojiPicker-3m1S-j").show(),$(".emojiPicker-3m1S-j .search-bar-inner input, .emojiPicker-3m1S-j .search-bar-inner input").focus()):void 0;this.lastTab=a;var u=$(".emote-icon");u.off(),u.on("click",function(){var h=$(this).attr("title"),g=utils.getTextArea();utils.insertText(g[0]," "==g.val().slice(-1)?g.val()+h:g.val()+" "+h)})},QuickEmoteMenu.prototype.obsCallback=function(a){var o=$(a);settingsCookie["bda-es-9"]?o.removeClass("bda-qme-hidden"):o.addClass("bda-qme-hidden");settingsCookie["bda-es-0"]&&(o.prepend(this.qmeHeader),o.append(this.teContainer),o.append(this.faContainer),this.lastTab==void 0&&(this.lastTab="bda-qem-favourite"),this.switchQem(this.lastTab))},QuickEmoteMenu.prototype.favorite=function(a,o){this.favoriteEmotes.hasOwnProperty(a)||(this.favoriteEmotes[a]=o),this.updateFavorites()},QuickEmoteMenu.prototype.updateFavorites=function(){var a="";for(var o in a+="
",a+="
",a+="
",a+="
",this.favoriteEmotes){var d=this.favoriteEmotes[o];a+="
",a+=" \"\"",a+=" ",a+="
"}a+="
",a+="
",a+="
",a+="
",this.faContainer=a,$("#bda-qem-favourite-container").replaceWith(a),window.bdStorage.set("bdfavemotes",btoa(JSON.stringify(this.favoriteEmotes)))};var _hash;function Utils(){}Utils.prototype.getTextArea=function(){return $(".channelTextArea-1LDbYG textarea")},Utils.prototype.insertText=function(a,o){a.focus(),a.selectionStart=0,a.selectionEnd=a.value.length,document.execCommand("insertText",!1,o)},Utils.prototype.jqDefer=function(a){window.jQuery?a():setTimeout(function(){this.jqDefer(a)},100)},Utils.prototype.getHash=function(){return new Promise(a=>{$.getJSON("https://api.github.com/repos/rauenzi/BetterDiscordApp/commits/master").done(function(o){_hash=o.sha,bdConfig.hash=_hash,a(_hash)}).fail(()=>{_hash=_bdhash||"48844445d65c6fb5a019eff14d7dcffcc1744071",a(_hash)})})},Utils.prototype.loadHtml=function(a,o){var d=$("
",{class:"bd-container"}).appendTo("body");a="//cdn.rawgit.com/Jiiks/BetterDiscordApp/"+_hash+"/html/"+a+".html",d.load(a,o())},Utils.prototype.injectJs=function(a){$("