1import{cn as F,c4 as T,cA as I}from"./logger-B4OCWT-4.js";import{computed as t,toValue as a,watch as S}from"vue";const G=w=>{const{endTime:n,interval:M=100,day:r=!1,hour:v=!0,minute:m="always",second:y="always"}=w,{timestamp:E,pause:A,resume:N}=F({interval:M,controls:!0}),_=T(void 0,{minimumIntegerDigits:2}),u=t(()=>Math.max(+(a(n)??0)-E.value,0)),s=t(()=>Math.max(Math.floor(u.value/(1440*60*1e3)),0)),o=t(()=>Math.floor(u.value/(3600*1e3)%(a(r)===!1?Number.MAX_SAFE_INTEGER:24))),l=t(()=>Math.floor(u.value/(60*1e3)%(a(v)===!1?Number.MAX_SAFE_INTEGER:60))),c=t(()=>Math.floor(u.value/1e3%(a(m)===!1?Number.MAX_SAFE_INTEGER:60))),i=t(()=>{const e=[],f=a(r),h=a(v),p=a(m),d=a(y);return(f==="always"||f&&s.value>0)&&e.push(s.value),(h==="always"||h&&(o.value>0||s.value>0))&&e.push(o.value),(p==="always"||p&&(l.value>0||o.value>0||s.value>0))&&e.push(l.value),(d==="always"||d&&(c.value>0||l.value>0||o.value>0||s.value>0))&&e.push(c.value),e}),b=t(()=>i.value.map(e=>_.value.format(e)).join(":"));return I(()=>u.value<=0,()=>{A()}),S(()=>a(n),()=>{N()}),{countdown:b,timeParts:i,remaining:u}};export{G as u};
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.