PageSourceSearch

https://ewagroup.org/assets/CountUp-DpuBjpeI.js

js ewagroup.org collected 2026-10-09 17:37:11 UTC 1,230 bytes, 1 lines download raw bytes

1import{r as i,j as m}from"./index-D5uQ2R80.js";const b=t=>{const n=t.match(/[\d,]*\d(?:\.\d+)?/);if(!n||n.index===void 0)return null;const r=n[0],e=r.replace(/,/g,""),s=parseFloat(e);return Number.isNaN(s)?null:{num:s,prefix:t.slice(0,n.index),suffix:t.slice(n.index+r.length),decimals:e.includes(".")?e.split(".")[1].length:0}},p=(t,n)=>t.toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}),E=({value:t,durationMs:n=1600,className:r})=>{const e=b(t),s=i.useRef(null),f=i.useRef(!1),[l,c]=i.useState(e?`${e.prefix}${p(0,e.decimals)}${e.suffix}`:t);return i.useEffect(()=>{if(!e)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof IntersectionObserver>"u"){c(t);return}const o=s.current;if(!o)return;const u=new IntersectionObserver(x=>{x.forEach(h=>{if(!h.isIntersecting||f.current)return;f.current=!0;const g=performance.now(),a=w=>{const d=Math.min((w-g)/n,1),$=1-Math.pow(1-d,3);c(`${e.prefix}${p(e.num*$,e.decimals)}${e.suffix}`),d<1?requestAnimationFrame(a):c(t)};requestAnimationFrame(a),u.unobserve(o)})},{threshold:.4});return u.observe(o),()=>u.disconnect()},[e,t,n]),e?m.jsx("span",{ref:s,className:r,children:l}):m.jsx("span",{className:r,children:t})};export{E as C};

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.