(()=>{let e=document.querySelector("#animation-dropdown"),t=document.querySelector("#animationModal"),a=(e&&(e.onchange=function(){t.classList="",t.classList.add("modal","animate__animated",this.value)}),document.querySelector("#youTubeModal")),r=a.querySelector("iframe");a.addEventListener("hidden.bs.modal",function(){r.setAttribute("src","")}),[].slice.call(document.querySelectorAll('[data-bs-toggle="modal"]')).map(function(e){e.onclick=function(){var e=this.getAttribute("data-bs-target"),t=this.getAttribute("data-theVideo")+"?autoplay=1",e=document.querySelector(e+" iframe");e&&e.setAttribute("src",t)}}),document.querySelectorAll(".carousel").forEach(r=>{r.addEventListener("slide.bs.carousel",a=>{a.relatedTarget?requestAnimationFrame(()=>{a.relatedTarget.offsetHeight;var e=Math.max(a.relatedTarget.offsetHeight,a.relatedTarget.scrollHeight,a.relatedTarget.getBoundingClientRect().height),t=r.querySelector(".active.carousel-item").parentElement;0<e&&t&&t.animate([{height:t.offsetHeight+"px"},{height:e+"px"}],{duration:500,easing:"ease",fill:"forwards"})}):console.error("Next slide not found")})})})();