class Countdown{initCountDown(){if(document.getElementById("days")){let i=new Date("Dec 17, 2027 12:00:01").getTime(),m=setInterval(function(){var e=(new Date).getTime(),e=i-e,n=Math.floor(e/864e5),t=Math.floor(e%864e5/36e5),o=Math.floor(e%36e5/6e4),d=Math.floor(e%6e4/1e3);document.getElementById("days").innerHTML=n,document.getElementById("hours").innerHTML=t,document.getElementById("minutes").innerHTML=o,document.getElementById("seconds").innerHTML=d,e<0&&(clearInterval(m),document.getElementById("days").innerHTML="",document.getElementById("hours").innerHTML="",document.getElementById("minutes").innerHTML="",document.getElementById("seconds").innerHTML="",n=document.getElementById("end"))&&(n.innerHTML="00:00:00:00")},1e3)}}init(){this.initCountDown()}}document.addEventListener("DOMContentLoaded",()=>{(new Countdown).init()});