System.register(["./index-legacy.eb062188.js"],(function(e){"use strict";var s,t,i,n,c,a,l,r,u,o,m,d;return{setters:[function(e){s=e.a7,t=e.t,i=e.w,n=e.u,c=e.v,a=e.d,l=e.a8,r=e.y,u=e.Z,o=e.W,m=e.c,d=e.D}],execute:function(){const[S,p]=t("count-down"),f={time:i(0),format:n("HH:mm:ss"),autoStart:c,millisecond:Boolean};var h=a({name:S,props:f,emits:["change","finish"],setup(e,{emit:t,slots:i}){const{start:n,pause:c,reset:a,current:d}=l({time:+e.time,millisecond:e.millisecond,onChange:e=>t("change",e),onFinish:()=>t("finish")}),S=r((()=>function(e,t){const{days:i}=t;let{hours:n,minutes:c,seconds:a,milliseconds:l}=t;if(e.includes("DD")?e=e.replace("DD",s(i)):n+=24*i,e.includes("HH")?e=e.replace("HH",s(n)):c+=60*n,e.includes("mm")?e=e.replace("mm",s(c)):a+=60*c,e.includes("ss")?e=e.replace("ss",s(a)):l+=1e3*a,e.includes("S")){const t=s(l,3);e=e.includes("SSS")?e.replace("SSS",t):e.includes("SS")?e.replace("SS",t.slice(0,2)):e.replace("S",t.charAt(0))}return e}(e.format,d.value))),f=()=>{a(+e.time),e.autoStart&&n()};return u((()=>e.time),f,{immediate:!0}),o({start:n,pause:c,reset:f}),()=>m("div",{role:"timer",class:p()},[i.default?i.default(d.value):S.value])}});e("C",d(h))}}}));