!function(){function t(){document.querySelectorAll(".fb-counter-number").forEach(function(t){if("true"!==t.dataset.animated){var e=new IntersectionObserver(function(n){n.forEach(function(n){n.isIntersecting&&(function(t){const e=parseFloat(t.getAttribute("counter-start"))||0,n=parseFloat(t.getAttribute("counter-end"))||0,i=parseInt(t.getAttribute("counter-duration"),10)||2e3,o="true"===t.getAttribute("separator-switch"),r=t.getAttribute("separator-type")||"comma";let a=null;window.requestAnimationFrame(function c(u){a||(a=u);const s=Math.min((u-a)/i,1),m=s*(n-e)+e,d=!Number.isInteger(e)||!Number.isInteger(n),l=d?1:0;let f;if(o)switch(r){case"comma":f=m.toLocaleString("en-US",{minimumFractionDigits:l,maximumFractionDigits:l});break;case"dot":f=m.toLocaleString("de-DE",{minimumFractionDigits:l,maximumFractionDigits:l});break;case"space":f=function(t,e){const[n,i]=t.toFixed(e).split("."),o=n.replace(/\B(?=(\d{3})+(?!\d))/g," ");return i?`${o}.${i}`:o}(m,l);break;default:f=m.toLocaleString(void 0,{minimumFractionDigits:l,maximumFractionDigits:l})}else f=d?m.toFixed(l):Math.round(m).toString();t.textContent=f,s<1&&window.requestAnimationFrame(c)})}(t),t.dataset.animated="true",e.disconnect())})},{threshold:.5});e.observe(t)}})}let e=!1;!function(){if(!e&&(e=!0,"complete"===document.readyState||"interactive"===document.readyState?setTimeout(t,100):document.addEventListener("DOMContentLoaded",function(){setTimeout(t,100)}),"undefined"!=typeof window)){let e=window.location.href;new MutationObserver(function(){e!==window.location.href&&(e=window.location.href,setTimeout(t,300))}).observe(document.body,{childList:!0,subtree:!0})}}(),window.reinitCounterAnimation=t}();