"use strict";function gscounteranimate(e,t,n,s,i,a){let r=null;Date.now();let o=m=>{r||(r=m);let c=Math.min((m-r)/(1e3*s),1),u=new Intl.NumberFormat;e.innerHTML=(a||"")+u.format(Math.floor(c*(n-t)+t))+(i||""),c<1?window.requestAnimationFrame(o):(window.cancelAnimationFrame(window.requestAnimationFrame(o)),e.classList.add("countfinished"))};window.requestAnimationFrame(o)}const gspbInviewCounters=document.getElementsByClassName("gs-counter");let gspbinviewcounterobserve=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=e.target;if(!t.classList.contains("countfinished")){let n=parseInt(t.dataset.start),s=parseInt(t.dataset.end),i=t.dataset.postfix,a=t.dataset.prefix,r=parseFloat(t.dataset.duration);gscounteranimate(t,n,s,r,i,a)}}})},{threshold:.3});for(let itemobserve of gspbInviewCounters)gspbinviewcounterobserve.observe(itemobserve);