import{c as e,ba as a}from"./index-ltw-H9qF.js";import{r as t,j as s}from"./vendor-react-LhvuxEgB.js";import{A as n}from"./index-Bv48kbjj.js";const r=e("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);function i({value:e,format:r,prefix:i,className:o,style:m}){const[c,l]=t.useState("waiting");if(t.useEffect(()=>{const e=setTimeout(()=>l("mounted"),400);return()=>clearTimeout(e)},[]),t.useEffect(()=>{if("mounted"===c){const e=requestAnimationFrame(()=>l("animating"));return()=>cancelAnimationFrame(e)}},[c]),"waiting"===c){const e=(0).toLocaleString(void 0,r);return s.jsxs("span",{className:o,style:m,children:[i,e]})}return s.jsx(n,{className:o,style:m,format:r,prefix:i,transition:a.numberReveal,children:"animating"===c?e:0})}export{i as D,r as H};
