window.addEventListener("scroll",function(){var n=document.getElementById("h");n&&n.classList.toggle("sc",window.scrollY>50)});var countUp=function(){var d=document.querySelectorAll(".count-num"),e=0;d.forEach(function(f){var g=f.getAttribute("data-count");if(!g)return;var h=parseInt(g),i=0,j=Math.ceil(h/45),k=setInterval(function(){i+=j;if(i>=h){i=h;clearInterval(k)}(f.getAttribute("data-prefix")||"")+i.toLocaleString()+(f.getAttribute("data-suffix")||"")},22)})};var elemInView=function(f){var g=f.getBoundingClientRect();return g.top0};var revealVis=function(){var d=document.querySelectorAll(".reveal:not(.visible)");d.forEach(function(e){if(elemInView(e))e.classList.add("visible")})};var tickSim=function(){var d=document.querySelectorAll(".ticker-val");d.forEach(function(e){var f=parseFloat(e.getAttribute("data-val"));if(isNaN(f))return;var g=f*(1+(Math.random()-0.5)*0.002);e.textContent=g.toFixed(2);e.classList.remove("tu","td");e.classList.add(g>f?"tu":"td");e.setAttribute("data-val",g.toFixed(2))})};window.addEventListener("scroll",revealVis);window.addEventListener("load",function(){countUp();revealVis()});