/* BT page heroes v3 (Nov 11, 2026: compact title boxes on every page with one, Rule 5 Tracker added; v2 Oct 24, 2026): header panels like the MLB Teams page for /arbitration-tracker/, /free-agent-tracker/, /mlb-player-compare/, /players/. Logo strip (team-cap-on-dark) filters the page's team dropdown. */ (function(){ var P=location.pathname.replace(/\/+$/,'/'); var CFG={ '/arbitration-tracker/':{k:'MLB · Arbitration',t:'Arbitration Tracker',s:'Every arbitration-eligible player, with salary, status and projected 2027 salary.',strip:1,root:'#bt-arb',sel:'select'}, '/free-agent-tracker/':{k:'MLB · Free agency',t:'Free Agent Tracker',s:'Every MLB free agent: where they played, where they signed and for how much.',strip:1,root:'#bt-fa',sel:'select.bfa-tm',h1:1}, '/mlb-player-compare/':{k:'MLB · Player tools',t:'Player Compare',s:'Any big leaguer, side by side: every stat, any date range, splits and pitch velocity.',strip:0,root:'#bt-pc',h1:1}, '/players/':{k:'Baseball Things · Player pages',t:'Players',s:'Big leaguers, minor leaguers and top prospects. Tap a logo to see a team’s players.',strip:1,root:'.btd-controls',sel:'select.btd-tm',inside:1} }; CFG['/rule-5-tracker/']={k:'MLB · Rule 5 draft',t:'Rule 5 Tracker',s:'Every Rule 5-eligible player in all 30 organizations. Signed at 18 or younger: eligible after five seasons. 19 or older: after four.',strip:1,root:'#bt-r5',sel:'select.btr-team',pill:1,after:function(){var k=0;(function f(){var d=document.querySelector('#bt-r5 .btr-dl'),p=document.querySelector('.btph-pill');var t=d&&d.textContent.trim();if(p&&t){p.textContent=t.replace(/, 20\d\d/,'').replace(/^Reserve list deadline:/,'Reserve deadline:');p.style.display='inline-block';return}if(++k<60)setTimeout(f,250)})()}}; (function(){var st=document.createElement('style');st.id='bt-compact-heroes';st.textContent="/* BT compact title boxes v3 (Nov 11, 2026) */.btph,.btt-hero,.bci-hero,.hg-hero,.h-hero{padding:18px 24px 14px!important;border-radius:14px!important;margin-bottom:16px!important}.btph-k,.btt-kick,.bci-kick,.hg-kick,.h-hero .h-kick{font-size:11.5px!important;margin:0 0 3px!important;line-height:1.4!important}.btph .btph-t,.btt-hero h1,.bci-hero h1,.hg-hero .hg-title,.h-hero .h-title{font-size:30px!important;line-height:1.15!important;margin:0!important}.h-hero .h-title img{width:34px!important;height:34px!important}.btph-s,.btt-sub,.bci-hsub,.hg-hero .hg-sub,.h-hero .h-sub{font-size:15px!important;line-height:1.4!important;margin:3px 0 0!important;padding:0!important}.bci-ver{margin:6px 0 0!important;font-size:0!important;line-height:1!important}.bci-ver span{font-size:11.5px!important;margin:0!important}.h-hero .h-pills{margin-top:8px!important;gap:6px!important}.h-hero .h-pill{font-size:12px!important;padding:2px 9px!important}.btph-strip,.btt-strip,.bci-strip,.h-strip,.hg-strip{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:2px!important;margin:10px 0 0!important;padding:8px 0 0!important;overflow-x:auto!important;scrollbar-width:none}.btph-strip::-webkit-scrollbar,.btt-strip::-webkit-scrollbar,.bci-strip::-webkit-scrollbar,.h-strip::-webkit-scrollbar,.hg-strip::-webkit-scrollbar{display:none}.btph-strip a,.btt-strip a,.bci-strip a,.h-strip a{flex:0 1 28px!important;width:auto!important;min-width:19px!important;height:28px!important;padding:2px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important}.btph-strip img,.btt-strip img,.bci-strip img,.h-strip img{width:100%!important;max-width:22px!important;height:auto!important}.hg-strip button{flex:0 1 27px!important;width:auto!important;height:27px!important;min-width:19px!important;padding:2px!important;margin:0!important}.hg-strip button img{width:100%!important;max-width:22px!important;height:auto!important;margin:0!important}.hg-strip button span{display:none!important}.btph-pill{margin-left:10px;padding:1px 9px;border-radius:999px;background:rgba(108,180,255,.15);border:1px solid rgba(108,180,255,.35);color:#d6e2f1;font-size:11.5px;font-weight:700;letter-spacing:0;text-transform:none;vertical-align:1px}.btph-on #bt-r5 .btr-intro{display:none!important}@media (max-width:600px){.btph,.btt-hero,.bci-hero,.hg-hero,.h-hero{padding:14px 16px 12px!important}.btph .btph-t,.btt-hero h1,.bci-hero h1,.hg-hero .hg-title,.h-hero .h-title{font-size:24px!important}.btph-s,.btt-sub,.bci-hsub,.hg-hero .hg-sub,.h-hero .h-sub{font-size:14px!important}.btph-strip,.btt-strip,.bci-strip,.h-strip,.hg-strip{justify-content:flex-start!important}.btph-pill{display:table!important;margin:4px 0 0!important}.h-hero .h-pill:nth-child(2){display:none!important}}";document.head.appendChild(st);var n=0;(function f(){var s=document.querySelector('.bci-hsub');if(s){if(s.textContent.indexOf('three to five')<0)s.textContent='Which teams are best set up to contend over the next three to five years?';return}if(++n<80)setTimeout(f,250)})();})(); var C=CFG[P]; if(!C)return; var T=[[108,'Angels'],[117,'Astros'],[133,'Athletics'],[141,'Blue Jays'],[144,'Braves'],[158,'Brewers'],[138,'Cardinals'],[112,'Cubs'],[109,'Diamondbacks'],[119,'Dodgers'],[137,'Giants'],[114,'Guardians'],[136,'Mariners'],[146,'Marlins'],[121,'Mets'],[120,'Nationals'],[110,'Orioles'],[135,'Padres'],[143,'Phillies'],[134,'Pirates'],[140,'Rangers'],[139,'Rays'],[111,'Red Sox'],[113,'Reds'],[115,'Rockies'],[118,'Royals'],[116,'Tigers'],[142,'Twins'],[145,'White Sox'],[147,'Yankees']]; var css='.btph{margin:8px 0 26px;padding:30px 32px 24px;border-radius:18px;background:radial-gradient(120% 140% at 0% 0%,#163a63 0%,#0e2643 45%,#0a1c33 100%);border:1px solid rgba(255,255,255,.08);text-align:left;color:#fff}'+ '.btph-k{margin:0 0 8px!important;font-size:12.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6cb4ff}'+ '.btph .btph-t{margin:0!important;font-size:44px;line-height:1.05;font-weight:800;letter-spacing:-.01em;color:#fff;position:static!important;clip:auto!important;width:auto!important;height:auto!important}'+ '.btph-s{margin:10px 0 0!important;font-size:17px;line-height:1.4;color:#d6e2f1}'+ '.btph-strip{display:flex;flex-wrap:wrap;gap:6px 8px;margin:20px 0 0;padding:16px 0 0;border-top:1px solid rgba(255,255,255,.1)}'+ '.btph-strip a{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:8px;transition:background .15s,transform .15s}'+ '.btph-strip a:hover,.btph-strip a.on{background:rgba(255,255,255,.1);transform:translateY(-2px)}'+ '.btph-strip img{width:26px;height:26px;object-fit:contain}'+ '.gh-content>.btph{margin-bottom:0}.gh-content>.btph+*{margin-top:20px!important}.btph-on #bt-pc h1,.btph-on #bt-pc h1+p{display:none}.page-free-agent-tracker .gh-article-header,.page-mlb-player-compare .gh-article-header{display:none}'+ '@media (max-width:600px){.btph{padding:22px 18px}.btph .btph-t{font-size:34px}.btph-strip a{width:30px;height:30px}.btph-strip img{width:22px;height:22px}}'; function esc(s){return String(s).replace(/[&<>"]/g,function(c){return{'&':'&','<':'<','>':'>','"':'"'}[c]})} function build(){ var h=document.createElement('header');h.className='btph'; h.innerHTML='

'+esc(C.k)+(C.pill?'':'')+'

'+(C.h1?'

':'

')+esc(C.t)+(C.h1?'

':'

')+'

'+esc(C.s)+'

'+ (C.strip?'':''); h.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('.btph-strip a');if(!a)return;e.preventDefault();pick(a,h)}); return h; } function norm(s){return String(s||'').toLowerCase().replace(/d-backs/,'diamondbacks').replace(/[^a-z]/g,'')} function pick(a,h){ var id=a.getAttribute('data-id'),n=norm(a.getAttribute('data-n')); var sels=[].slice.call(document.querySelectorAll(C.sel||'select')); var on=a.classList.contains('on'); for(var i=0;i-1&&n.length>3)||v===n)hit=o} if(hit){s.value=on&&all?all.value:hit.value;s.dispatchEvent(new Event('change',{bubbles:true}));s.dispatchEvent(new Event('input',{bubbles:true})); [].forEach.call(h.querySelectorAll('.btph-strip a'),function(x){x.classList.remove('on')});if(!on)a.classList.add('on'); (s.closest('[id]')||s).scrollIntoView({behavior:'smooth',block:'start'});return} } } function place(){ if(document.querySelector('.btph'))return true; var root=document.querySelector(C.root); if(C.inside){if(!root)return false;root.parentNode.insertBefore(build(),root);return true} var gc=document.querySelector('.gh-content');if(!gc)return false; var first=root&&root.parentNode===gc?root:null; var tz=gc.querySelector(':scope>.btt-teaser'); var tgt=tz&&getComputedStyle(tz).display!=='none'?tz:(first||gc.firstElementChild); var hero=build(); if(first){var gcol=getComputedStyle(first).gridColumn;if(gcol&&gcol!=='auto')hero.style.gridColumn=gcol} gc.insertBefore(hero,tgt);document.body.classList.add('btph-on');return true; } var st=document.createElement('style');st.textContent=css;document.head.appendChild(st); var n=0;(function tick(){if(place()){if(C.after)C.after();return}if(++n>60)return;setTimeout(tick,250)})(); })();