/* Js for , Version=1778041390 */
 if(typeof(v) != "object") v = {};v.pageID = 63;;
;
    (function() {
        const animateCounter = (el) => {
            const target = parseFloat(el.getAttribute('data-target'));
            const unit = el.getAttribute('data-unit') || '';
            const duration = 2000;
            let start = null;
            const step = (timestamp) => {
                if (!start) start = timestamp;
                const progress = Math.min((timestamp - start) / duration, 1);
                const current = progress * target;
                el.textContent = (target % 1 === 0 ? Math.floor(current) : current.toFixed(1)) + unit;
                if (progress < 1) window.requestAnimationFrame(step); }; window.requestAnimationFrame(step); }; const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.classList.add('is-visible');
                    entry.target.querySelectorAll('.xt-counter, .xt-cap-counter').forEach(counter => {
                        if (!counter.dataset.animated) {
                            animateCounter(counter);
                            counter.dataset.animated = "true";
                        }
                    });
                    if (entry.target.id === 'xt-progress') {
                        entry.target.querySelectorAll('.xt-timeline-item').forEach((item, i) => {
                            setTimeout(() => item.classList.add('item-visible'), i * 250);
                        });
                    }
                }
            });
        }, { threshold: 0.1 });
        document.querySelectorAll('.xt-fade-in').forEach(s => observer.observe(s));
    })();
    