!function(){function t(){document.querySelectorAll("[data-target-date]").forEach(function(t){var e=t.getAttribute("data-target-date");if(e){var n=t.querySelector(".fb-count-down-time.days"),o=t.querySelector(".fb-count-down-time.hours"),r=t.querySelector(".fb-count-down-time.minutes"),i=t.querySelector(".fb-count-down-time.seconds");setInterval(u,1e3),u()}function a(t){return t<10?"0"+t:t}function u(){var t=(new Date).getTime(),u=new Date(e).getTime()-t;if(u<0)return n&&(n.textContent="00"),o&&(o.textContent="00"),r&&(r.textContent="00"),void(i&&(i.textContent="00"));var d=a(Math.floor(u/864e5)),c=a(Math.floor(u%864e5/36e5)),f=a(Math.floor(u%36e5/6e4)),w=a(Math.floor(u%6e4/1e3));n&&(n.textContent=d),o&&(o.textContent=c),r&&(r.textContent=f),i&&(i.textContent=w)}})}var e=!1;!function(){if(!e&&(e=!0,"complete"===document.readyState||"interactive"===document.readyState?setTimeout(t,100):document.addEventListener("DOMContentLoaded",function(){setTimeout(t,100)}),"undefined"!=typeof window)){var n=window.location.href;new MutationObserver(function(){n!==window.location.href&&(n=window.location.href,setTimeout(t,300))}).observe(document.body,{childList:!0,subtree:!0})}}(),window.reinitCountdown=t}();