import{r as s}from"./i18n-Dnhn5Rxr.js";import{R as i,y as o,ae as n,T as p}from"./index-DWyDLubb.js";import{G as l}from"./utils.svelte-CCyS_0CY.js";import"./clone-BkeCM4Nl.js";function u(c,r){i(r,!0);const a=s(r,["$$slots","$$events","$$legacy"]),t=new l(a);let e;o(()=>{e&&clearInterval(e),t.props.active&&(e=setInterval(()=>{document.visibilityState==="visible"&&t.dispatch("tick")},t.props.value*1e3))}),n(()=>{e&&clearInterval(e)}),p()}export{u as default};
