PageSourceSearch

https://cdn.songsuey.com/js/home-hero.js?v=992c542f

js songsuey.com collected 2026-09-25 20:23:04 UTC 20,711 bytes, 2 lines download raw bytes

1(function(){const t=document.getElementById("hdStars");if(!t)return;const l=t.getContext("2d");let y=0,u=0;function n(){t.width=y,t.height=u,l.clearRect(0,0,y,u);for(let f=0;f<180;f++){const a=Math.random()*y,r=Math.random()*u,p=Math.random()*1.1+.1;l.fillStyle=`rgba(255,255,255,${(Math.random()*.6+.1).toFixed(2)})`,l.beginPath(),l.arc(a,r,p,0,Math.PI*2),l.fill()}const c=["rgba(176,123,252,0.85)","rgba(86,176,255,0.85)","rgba(248,87,166,0.75)","rgba(61,214,245,0.75)"];for(let f=0;f<22;f++){const a=Math.random()*y,r=Math.random()*u,p=Math.random()*1.4+.4;l.fillStyle=c[Math.floor(Math.random()*c.length)],l.beginPath(),l.arc(a,r,p,0,Math.PI*2),l.fill()}}if(typeof ResizeObserver=="function")new ResizeObserver(f=>{const a=f[0].contentRect;y=a.width,u=a.height,n()}).observe(t);else{const c=()=>{const f=t.getBoundingClientRect();y=f.width,u=f.height,n()};c(),window.addEventListener("resize",c)}})(),(function(){const t=document.getElementById("hdSearchInput");if(!t)return;const l=["Does Taylor Swift write her own songs?","Who wrote Thriller?","Kendrick Lamar","Did Elvis write anything?","Who wrote Purple Rain?","Does Lana Del Rey write her own songs?","Billie Eilish","Did Whitney Houston write anything?","Who wrote Hotel California?","Rihanna","Does Dolly Parton write her own songs?","Nirvana","Did Frank Sinatra write his own songs?","Bruno Mars","Lady Gaga","Drake","Radiohead"],y=26,u=12,n=1900,c=500,f="|",a=window.matchMedia("(prefers-reduced-motion: reduce)");let r=0,p=0,d=!1,s=!0,o=null,h=0;function v(){o&&(clearTimeout(o),o=null)}function C(){v(),h=0,t.placeholder=_[r],o=setTimeout(q,n)}function q(){if(a.matches){t.placeholder=_[r],v();return}if(document.activeElement===t||t.value||document.hidden){C();return}const w=_[r];if(!d&&p<w.length)p++,t.placeholder=w.slice(0,p)+f,o=setTimeout(q,y);else if(d)if(p>0)p--,t.placeholder=w.slice(0,p)+f,o=setTimeout(q,u);else{d=!1,s=!0;const M=_[r];r+=1,r>=_.length&&(R(M),r=0),o=setTimeout(q,y*4)}else{if(h||(h=Date.now()+n),Date.now()>=h){h=0,s=!0,d=!0,t.placeholder=w+f,o=setTimeout(q,u);return}s=!s,t.placeholder=w+(s?f:""),o=setTimeout(q,c)}}let _=l.slice();function R(w){for(let M=_.length-1;M>0;M--){const X=Math.floor(Math.random()*(M+1)),F=_[M];_[M]=_[X],_[X]=F}_.length>1&&_[0]===w&&_.push(_.shift())}R(null),p=0,d=!1,o=setTimeout(q,350),t.addEventListener("focus",C),t.addEventListener("blur",()=>{t.value||q()}),document.addEventListener("visibilitychange",()=>{!document.hidden&&!o&&q()}),a.addEventListener("change",()=>{a.matches?(v(),t.placeholder=_[r]):q()});function K(w,M){typeof window.gtag=="function"&&window.gtag("event",w,M)}const D=t.form;D&&D.addEventListener("submit",()=>{const w=t.value.trim().toLowerCase();w&&K("home_search",{search_term:w})}),document.querySelectorAll(".hd-hero__hints .hd-hint").forEach(w=>{w.addEventListener("click",()=>{K("home_search_suggestion",{suggestion:w.textContent.trim()})})}),document.addEventListener("keydown",w=>{w.key==="/"&&document.activeElement!==t&&!/INPUT|TEXTAREA/.test(document.activeElement.tagName)&&(w.preventDefault(),t.focus())})})(),(function(){const t=Array.prototype.slice.call(document.querySelectorAll(".hd-ticker__track[data-pps]"));if(!t.length)return;const l=20;function y(a){const r=window.getComputedStyle(a),p=parseFloat(r.columnGap
1)||0;let d=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0),s=0;return Array.prototype.forEach.call(a.children,function(o){const h=o.getBoundingClientRect().width;if(!(h>0))return;const v=window.getComputedStyle(o);d+=h+(parseFloat(v.marginLeft)||0)+(parseFloat(v.marginRight)||0),s++}),s>1&&(d+=p*(s-1)),s?d:0}function u(a,r){const p=a.getBoundingClientRect().width/2;return Math.max(p,r.getBoundingClientRect().width,r.scrollWidth||0,y(r))}function n(){const a=[];t.forEach(function(r){const p=r.querySelector(".hd-ticker__set"),d=parseFloat(r.dataset.pps);if(!p||!(d>0))return;const s=u(r,p);if(!(s>0))return;const o=s/d;if(!isFinite(o)||o<l)return;const h=o.toFixed(1)+"s";r.style.animationDuration!==h&&a.push([r,h])}),a.forEach(function(r){r[0].style.animationDuration=r[1]})}n(),window.addEventListener("load",n),document.fonts&&document.fonts.ready&&document.fonts.ready.then(n);let c=0;function f(){c&&clearTimeout(c),c=setTimeout(function(){c=0,n()},150)}if(window.addEventListener("resize",f),window.addEventListener("orientationchange",f),typeof ResizeObserver=="function"){const a=new ResizeObserver(f);t.forEach(function(r){const p=r.querySelector(".hd-ticker__set");p&&a.observe(p)})}})(),(function(){const t=document.querySelectorAll("[data-reveal]");if(!t.length)return;if(document.documentElement.classList.add("hd-reveal-ready"),!("IntersectionObserver"in window)){t.forEach(y=>y.classList.add("in-view"));return}const l=new IntersectionObserver(y=>{y.forEach(u=>{u.isIntersecting&&(u.target.classList.add("in-view"),l.unobserve(u.target))})},{threshold:.18});t.forEach(y=>l.observe(y))})(),(function(){const t=document.querySelectorAll(".hd-statbar__num[data-count]");if(!t.length)return;const l=c=>c.toLocaleString("en-US");if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||!("IntersectionObserver"in window)){t.forEach(c=>{c.textContent=l(parseInt(c.dataset.count,10))});return}const u=Array.from(t);u.forEach(c=>{c.textContent="0"});const n=new IntersectionObserver(c=>{c.forEach(f=>{if(!f.isIntersecting)return;n.unobserve(f.target);const a=f.target,r=parseInt(a.dataset.count,10),p=1400,d=u.indexOf(a)*130;let s=null;const o=h=>{s===null&&(s=h);const v=Math.min((h-s)/p,1),C=1-Math.pow(1-v,3);a.textContent=l(Math.round(r*C)),v<1&&requestAnimationFrame(o)};setTimeout(()=>requestAnimationFrame(o),d)})},{threshold:.4});t.forEach(c=>n.observe(c))})(),(function(){const t=document.getElementById("hdH2h"),l=document.getElementById("hdH2hPairs");if(!t||!l)return;let y;try{y=JSON.parse(l.textContent)}catch{return}const u=(y||[]).filter(Boolean);if(!u.length)return;const n=document.getElementById("hdH2hCards"),c=t.querySelector(".hd-vs-bars"),f=t.querySelector(".hd-vs__mid"),a=t.querySelector(".hd-vs__vs"),r=document.getElementById("hdH2hShuffle"),p=document.getElementById("hdH2hCompare"),d=Array.from(t.querySelectorAll("[data-h2h-pair]")),s=window.matchMedia("(prefers-reduced-motion: reduce)"),o=e=>t.querySelector('[data-h2h="'+e+'"]'),h=e=>t.querySelector(".hd-vs__card--"+e),v=e=>Number(e).toLocaleString("en-US"),C=(e,i)=>{typeof window.gtag=="function"&&window.gtag("event",e,i)},q=e=>e>=80?"high":e>=50?"mid":e>=25?"low":"none",_=[{key:"score",read:e=>e.score},{key:"sole",read:e=>e.solePct},{key:"co",read:e=>e.coPct}],R=[];u.forEach(function(e){R.push(e.a,e.b)});let K=t.dataset.h2hCurrent||u[0].key;const D=1750,w=480,M=45,X=320,F=700;let U=0,H=!1;n&&n.removeAttribute("aria-live");const V=document.createElement("p");V.className="sr-only",V.setAttribute("role","status"),t.appendChild(V);function m(e,i){const g=o("name-"+e);g.textContent=i.name,g.setAttribute("href","/artist/"+i.id+"/");const L=q(i.score),k=o("tier-"+e);k.textContent=i.label,k.className="hd-badge hd-badge--"+L,o("scorebox-"+e).className="hd-vs__score hd-vs__score--"+L;const A=h(e);A&&(A.classList.remove("hd-vs__card--t-high","hd-vs__card--t-mid","hd-vs__card--t-low","hd-vs__card--t-none"),A.classList.add("hd-vs__card--t-"+L)),o("score-"+e).textContent=i.score,o("albums-"+e).textContent=v(i.albums),o("tracks-"+e).textContent=v(i.tracks),_.forEach(function(x){const T=x.read(i),Y=t.querySelector('[data-h2h-fill="'+e+"-"+x.key+'"]'),j=t.querySelector('[data-h2h-val="'+e+"-"+x.key+'"]');Y&&Y.style.setProperty("--w",T),j&&(j.textContent=T+"%")})}function b(e){const i=o("kind"),g=e.kind==="feud"?"feud":e.kind==="fan armies"?"armies":"debate",L=g==="feud"?"fa-fire":g==="armies"?"fa-crown":"fa-users";i.className="hd-kind hd-kind--"+g,i.querySelector("use").setAttribute("href","/assets/icons/sprite.svg#"+L),o("kind-text").textContent=e.kind.charAt(0).toUpperCase()+e.kind.slice(1)}function B(e){p&&p.setAttribute("href","/compare/?a="+e.a.id+"&b="+e.b.id)}function O(e){d.forEach(function(i){const g=i.dataset.h2hPair===e.key;i.classList.toggle("is-active",g),g?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")})}function N(e){b(e),B(e),O(e),K=e.key;const i=o("teaser");i&&(i.textContent=e.teaser||""),V.textContent=e.a.name+" "+e.a.score+" percent versus "+e.b.name+" "+e.b.score+" percent."+(e.teaser?" "+e.teaser:"")}function P(e){Z(),m("a",e.a),m("b",e.b),N(e),ee(e,!1),!s.matches&&n&&(n.classList.remove("is-swapping"),n.offsetWidth,n.classList.add("is-swapping"))}const E=e=>e[Math.floor(Math.random()*e.length)];["a","b"].forEach(function(e){const i=h(e);if(!i)return;const g=document.createElement("span");g.className="hd-vs__crown",g.hidden=!0,g.innerHTML='<svg class="icon" focusable="false" aria-hidden="true"><use href="/assets/icons/sprite.svg#fa-crown"></use></svg> Higher authorship',i.appendChild(g)});let G=null;function Z(){G&&(clearTimeout(G),G=null),["a","b"].forEach(function(e){const i=h(e);if(!i)return;i.classList.remove("is-winner","is-outdone");const g=i.querySelector(".hd-vs__crown");g&&(g.hidden=!0)})}function ee(e,i){const g=function(){if(G=null,e.a.score===e.b.score)return;const L=e.a.score>e.b.score?"a":"b",k=h(L),A=h(L==="a"?"b":"a");if(k){k.classList.add("is-winner");const x=k.querySelector(".hd-vs__crown");x&&(x.hidden=!1)}A&&A.classList.add("is-outdone")};i?G=setTimeout(g,750):g()}function oe(e,i){const g=h(e);g&&[g.querySelector(".hd-vs__name"),o("scorebox-"+e),o("tier-"+e)].forEac
1h(function(L){!L||!L.animate||L.animate([{opacity:.25,transform:"translateY("+(-5-11*i).toFixed(1)+"px)",filter:"blur("+(.5+1.9*i).toFixed(2)+"px)"},{opacity:1,transform:"none",filter:"blur(0px)"}],{duration:Math.round(105+95*(1-i)),easing:"ease-out"})})}function te(e){!e||!e.animate||e.animate([{transform:"scale(1.18)",filter:"brightness(1.45)"},{transform:"none",filter:"brightness(1)"}],{duration:460,easing:"cubic-bezier(0.34,1.56,0.64,1)"})}function J(e,i,g,L){if(!e)return;const k=Number(i)||0,A=L||String,x=performance.now();e.textContent=A(0),requestAnimationFrame(function T(Y){if(g!==U)return;const j=Math.min((Y-x)/F,1);e.textContent=A(Math.round(k*(1-Math.pow(1-j,3)))),j<1&&requestAnimationFrame(T)})}function re(){if(!f||!a)return;const e=document.createElement("span");e.className="hd-vs__sparks",e.setAttribute("aria-hidden","true");const i=a.getBoundingClientRect(),g=f.getBoundingClientRect();e.style.left=(i.left-g.left+i.width/2).toFixed(1)+"px",e.style.top=(i.top-g.top+i.height/2).toFixed(1)+"px";const L=["var(--blue)","var(--purple)","var(--magenta)"];for(let k=0;k<12;k++){const A=k/12*Math.PI*2+Math.random()*.5,x=44+Math.random()*44,T=document.createElement("i");T.className="hd-vs__spark",T.style.setProperty("--dx",(Math.cos(A)*x).toFixed(1)+"px"),T.style.setProperty("--dy",(Math.sin(A)*x).toFixed(1)+"px"),T.style.setProperty("--sz",(4+Math.random()*3.5).toFixed(1)+"px"),T.style.setProperty("--tone",L[k%L.length]),T.style.setProperty("--dur",Math.round(470+Math.random()*260)+"ms"),e.appendChild(T)}f.appendChild(e),setTimeout(function(){e.remove()},950)}function se(){U++,H=!1,n&&(n.classList.remove("is-spinning"),n.removeAttribute("aria-busy")),c&&c.classList.remove("is-charging-a","is-charging-b"),r&&(r.disabled=!1,r.classList.remove("is-spinning"))}function ie(){if(H)return;const e=u.filter(function(S){return S.key!==K}),i=E(e.length?e:u);if(C("randomize_click",{page_area:"home_h2h",artist_a:i.a.id,artist_b:i.b.id}),s.matches){P(i);return}H=!0;const g=++U,L=document.activeElement===r;r&&(r.disabled=!0,r.classList.add("is-spinning")),n&&(n.classList.remove("is-swapping"),n.classList.add("is-spinning"),n.setAttribute("aria-busy","true")),c&&c.classList.add("is-charging-a","is-charging-b"),Z(),a&&a.classList.remove("is-landed"),["a","b"].forEach(function(S){const z=h(S);z&&z.classList.remove("is-landed")}),B(i);const k={a:D,b:D+w},A={a:0,b:0},x={a:!1,b:!1},T={a:null,b:null},Y=performance.now();function j(S){const z=i[S];m(S,z);const W=h(S);W&&(W.classList.remove("is-landed"),W.offsetWidth,W.classList.add("is-landed")),c&&c.classList.remove("is-charging-"+S),J(o("score-"+S),z.score,g),J(o("albums-"+S),z.albums,g,v),J(o("tracks-"+S),z.tracks,g,v),_.forEach(function(I){J(t.querySelector('[data-h2h-val="'+S+"-"+I.key+'"]'),I.read(z),g,$=>$+"%")}),te(o("scorebox-"+S)),te(o("tier-"+S))}function ae(){H=!1,N(i),n&&(n.classList.remove("is-spinning"),n.removeAttribute("aria-busy")),re(),ee(i,!0),a&&(a.classList.remove("is-landed"),a.offsetWidth,a.classList.add("is-landed")),r&&(r.disabled=!1,r.classList.remove("is-spinning"),L&&document.activeElement===document.body&&r.focus())}requestAnimationFrame(function S(z){if(g!==U)return;const W=z-Y;["a","b"].forEach(function(I){if(x[I])return;if(W>=k[I]){x[I]=!0,j(I);return}if(W<A[I])return;const $=W/k[I];let Q=E(R);for(let ne=0;ne<6&&Q===T[I]&&R.length>1;ne++)Q=E(R);T[I]=Q,m(I,Q),oe(I,1-$),A[I]=W+M+(X-M)*Math.pow($,2.6)}),x.a&&x.b?ae():requestAnimationFrame(S)})}d.forEach(function(e){e.addEventListener("click",function(){const i=u.find(function(g){return g.key===e.dataset.h2hPair});i&&(C("teaser_click",{artist_a:i.a.id,artist_b:i.b.id,matchup_kind:i.kind}),H&&se(),P(i))})}),r&&(r.hidden=!1,r.addEventListener("click",ie))})(),(function(){const t=document.getElementById("hdTeasers"),l=document.getElementById("hdTeasersToggle");if(!t||!l)return;const y=document.getElementById("hdTeasersGrid"),u=Array.from(t.querySelectorAll(".hd-teaser")),n=document.getElementById("hdTeasersPager"),c=n&&n.querySelector('[data-pager="pages"]'),f=n&&n.querySelector('[data-pager="count"]'),a=n&&n.querySelector('[data-pager="prev"]'),r=n&&n.querySelector('[data-pager="next"]'),p=12,d=2;let s=0,o=0,h=[],v=0,C=[];function q(){if(!y)return 1;const m=getComputedStyle(y).gridTemplateColumns;
1return!m||m==="none"?1:Math.max(1,m.split(" ").filter(Boolean).length)}function _(){u.forEach(function(m){m.hidden=!1})}function R(m,b){const B=document.activeElement;v=Math.min(Math.max(m,0),o-1);const O=h[v],N=O+s;u.forEach(function(P,E){P.hidden=E<O||E>=N}),C.forEach(function(P,E){E===v?P.setAttribute("aria-current","page"):P.removeAttribute("aria-current")}),a.disabled=v===0,r.disabled=v===o-1,f.textContent="Showing "+(O+1)+" to "+N+" of "+u.length+" matchups",b!==!1&&(B===a&&a.disabled?r.focus():B===r&&r.disabled&&a.focus())}function K(){C.forEach(function(m){m.remove()}),C=[];for(let m=0;m<o;m++){const b=document.createElement("button");b.type="button",b.className="hd-pager__page",b.textContent=String(m+1),b.setAttribute("aria-label","Matchups page "+(m+1)+" of "+o),b.addEventListener("click",function(){R(m)}),c.appendChild(b),C.push(b)}}function D(){if(!n||!c||!f||!a||!r)return;const m=q(),b=Math.max(d,Math.round(p/m)),B=m*b;if(B>=u.length){s=u.length,o=1,h=[0],C.forEach(function(E){E.remove()}),C=[],n.hidden=!0,_();return}if(B===s&&!n.hidden)return;const O=h.length?h[Math.min(v,h.length-1)]:0;s=B,o=Math.ceil(u.length/s),h=[];const N=u.length-s;for(let E=0;E<o;E++)h.push(o===1?0:Math.round(E*N/(o-1)));K();let P=0;for(let E=0;E<h.length;E++)h[E]<=O&&(P=E);n.hidden=!1,R(P,!1)}a&&a.addEventListener("click",function(){R(v-1)}),r&&r.addEventListener("click",function(){R(v+1)}),D(),l.addEventListener("click",function(){const m=t.classList.toggle("is-open");l.setAttribute("aria-pressed",String(m)),l.querySelector("span").textContent=m?"Collapse to chips":"Show all details",D()});let w=!1;window.addEventListener("resize",function(){w||(w=!0,requestAnimationFrame(function(){w=!1,D()}))},{passive:!0}),document.fonts&&document.fonts.ready&&document.fonts.ready.then(D);const M=9,X=64;let F=null;function U(m){const b=m.querySelector(".hd-teaser__copy");if(!b||(F=m,t.classList.contains("is-open")))return;b.style.removeProperty("--hd-tip-max"),m.classList.remove("hd-teaser--down");const B=m.getBoundingClientRect(),O=b.offsetHeight,N=B.top-M,P=window.innerHeight-B.bottom-M,E=N<O&&P>N;m.classList.toggle("hd-teaser--down",E);const G=E?P:N;O>G&&b.style.setProperty("--hd-tip-max",Math.max(X,G)+"px")}t.addEventListener("pointerover",function(m){const b=m.target.closest?m.target.closest(".hd-teaser"):null;b&&b!==F&&U(b)}),t.addEventListener("focusin",function(m){const b=m.target.closest?m.target.closest(".hd-teaser"):null;b&&U(b)}),t.addEventListener("pointerleave",function(){F=null}),t.addEventListener("focusout",function(){F=null});let H=!1;function V(){H||!F||(H=!0,requestAnimationFrame(function(){H=!1,F&&U(F)}))}window.addEventListener("scroll",V,{passive:!0}),window.addEventListener("resize",V,{passive:!0})})(),requestAnimationFrame(function(){document.querySelectorAll(".hd-gauge[data-val]").forEach(function(t){t.style.setProperty("--val",t.dataset.val)})}),(function(){const t=document.getElementById("hdCopyLink");if(!t)return;const l=2200,y=t.innerHTML;let u=null;const n=document.createElement("p");n.className="sr-only",n.setAttribute("role","status"),t.parentNode.appendChild(n);function c(d,s,o){u&&(clearTimeout(u),u=null),t.innerHTML='<svg class="icon" focusable="false" aria-hidden="true"><use href="/assets/icons/sprite.svg#'+d+'"></use></svg> '+s,t.classList.remove("is-copied","is-copy-failed"),o&&t.classList.add(o),n.textContent=s,u=setTimeout(function(){u=null,t.innerHTML=y,t.classList.remove("is-copied","is-copy-failed"),n.textContent=""},o==="is-copy-failed"?l*2:l)}function f(d){let s=document.getElementById("hdCopyManual");s||(s=document.createElement("input"),s.id="hdCopyManual",s.className="hd-share__manual",s.type="text",s.readOnly=!0,s.setAttribute("aria-label","Link to copy"),t.parentNode.appendChild(s)),s.value=d,s.hidden=!1,s.focus(),s.select()}function a(d){const s=document.createElement("textarea");s.value=d,s.setAttribute("readonly",""),s.style.position="fixed",s.style.top="-1000px",s.style.opacity="0",document.body.appendChild(s);const o=document.getSelection(),h=o&&o.rangeCount>0?o.getRangeAt(0):null;s.select();let v=!1;try{v=document.execCommand("copy")}catch{v=!1}return s.remove(),h&&o&&(o.removeAllRanges(),o.addRange(h)),v}function r(){c("fa-check","Link copied","is-copied")}function p(d){c("fa-circle-exclamation","Copy that link","is-copy-failed"),f(d)}t.addEventListener("click",function(){const d=t.dataset.copyUrl||window.location.href;
1if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(d).then(r,function(){a(d)?r():p(d)});return}a(d)?r():p(d)})})(),(function(){const t=document.querySelector(".hd-spark__bars");if(!t)return;const l=Array.prototype.slice.call(t.querySelectorAll(".hd-spark__col"));if(l.length<2)return;l.forEach(function(n,c){n.tabIndex=c===0?0:-1});const y=t.getAttribute("aria-label");y&&t.setAttribute("aria-label",y+". Use the left and right arrow keys to move between albums");function u(n){const c=Math.min(Math.max(n,0),l.length-1);l.forEach(function(f,a){f.tabIndex=a===c?0:-1}),l[c].focus()}t.addEventListener("keydown",function(n){if(n.altKey||n.ctrlKey||n.metaKey)return;const c=l.indexOf(document.activeElement);if(c===-1)return;let f=null;n.key==="ArrowRight"||n.key==="ArrowDown"?f=c+1:n.key==="ArrowLeft"||n.key==="ArrowUp"?f=c-1:n.key==="Home"?f=0:n.key==="End"&&(f=l.length-1),f!==null&&(n.preventDefault(),u(f))}),t.addEventListener("pointerdown",function(n){const c=n.target.closest?n.target.closest(".hd-spark__col"):null,f=l.indexOf(c);f!==-1&&l.forEach(function(a,r){a.tabIndex=r===f?0:-1})})})(),(function(){const t=document.querySelector(".hd-spark");if(!t)return;const l=t.querySelector(".hd-spark__bars");if(!l)return;t.classList.add("hd-spark--anchored");const y=8,u=Array.prototype.slice.call(l.querySelectorAll(".hd-spark__col"));if(!u.length)return;let n=null;function c(d,s){let o=0;return d.right>s-y&&(o=s-y-d.right),d.left+o<y&&(o=y-d.left),Math.round(o)}function f(d){const s=d.querySelector(".hd-spark__tip");s&&(d.style.setProperty("--hd-tip-shift","0px"),d.style.setProperty("--hd-tip-shift",c(s.getBoundingClientRect(),document.documentElement.clientWidth)+"px"),n=d)}function a(){n=null,u.forEach(function(o){o.style.setProperty("--hd-tip-shift","0px")});const d=document.documentElement.clientWidth,s=u.map(function(o){const h=o.querySelector(".hd-spark__tip");return h?h.getBoundingClientRect():null});u.forEach(function(o,h){s[h]&&o.style.setProperty("--hd-tip-shift",c(s[h],d)+"px")})}a(),window.addEventListener("load",a),document.fonts&&document.fonts.ready&&document.fonts.ready.then(a);function r(d){const s=d.target&&d.target.closest?d.target.closest(".hd-spark__col"):null;s&&s!==n&&f(s)}l.addEventListener("pointerover",r),l.addEventListener("mouseover",r),l.addEventListener("focusin",r);let p=0;window.addEventListener("resize",function(){p&&clearTimeout(p),p=setTimeout(function(){p=0,a()},100)})})();
2//# sourceMappingURL=home-hero.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.