document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".navbar__toggle"),t=document.querySelector(".navbar__menu");e.addEventListener("click",function(){var i=t.classList.contains("is-active");i?(t.classList.remove("is-active"),t.classList.add("is-hidden"),e.classList.remove("is-active")):(t.classList.add("is-active"),t.classList.remove("is-hidden"),e.classList.add("is-active")),e.setAttribute("aria-expanded",!i)})}),function(){let e=document.querySelector(".js-post__share-button"),t=document.querySelector(".js-post__share-popup");e&&(t.addEventListener("click",function(e){e.stopPropagation()}),e.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.classList.toggle("is-visible")}),document.body.addEventListener("click",function(){t.classList.remove("is-visible")}));for(var i={Link:".js-share",Width:500,Height:500},s=document.querySelectorAll(i.Link),a=0;a-1&&a.indexOf("%")>-1?(s=parseFloat(s.replace("%","")),r=(a=parseFloat(a.replace("%","")))/s):-1===s.indexOf("%")&&-1===a.indexOf("%")&&(s=parseInt(s,10),r=(a=parseInt(a,10))/s),!1!==r)){let n=100*r+"%";e[t].setAttribute("style","--embed-aspect-ratio:"+n)}}}();