!function(){"use strict";function e(e,t,o=500){let n=t.clientHeight;e.style.height=`${n}px`,e.style.transition=`height ${o} ease`}function t(){var t,o,n;let c=document.location.hash;c&&(t=document.querySelector(c),o=t.querySelector(".content-wrapper"),n=t.querySelector(".content"),window.scrollTo({top:o.offsetTop-300,behavior:"smooth"}),e(o,n,300)),document.querySelectorAll("[open-collapse]").forEach((c=>{c.addEventListener("click",(i=>{i.preventDefault(),t=c.closest("[data-collapse]"),o=t.querySelector(".content-wrapper"),n=t.querySelector(".content"),t.classList.toggle("-open"),function(t,o,n=500){"0px"==window.getComputedStyle(t).height?e(t,o,n):function(e,t=500){e.style.height="0px",e.style.transition=`height ${t} ease`}(t,n)}(o,n,300)}))}))}const o={init:function(){t()}};window.addEventListener("DOMContentLoaded",(()=>{o.init()}))}(); //# sourceMappingURL=pages.js.map