(function(){function d(n){var t=n.getBoundingClientRect();return t.top<(window.innerHeight||document.documentElement.clientHeight)}function y(){for(var t,n=0;n<v.length;n++)t=v[n],!t.hasAttribute("data-visible")&&d(t)&&t.setAttribute("data-visible",!0)}function s(t){t>i&&o?(o=!1,e=!0,n.removeAttribute("data-stuck"),n.setAttribute("data-unstuck",!0)):t<i&&e&&(o=!0,e=!1,n.removeAttribute("data-unstuck"),n.setAttribute("data-stuck",!0))}function g(){h=window.pageYOffset;r||(window.requestAnimationFrame(function(){stickyPanelListenerIsOn&&s(h);y();r=!1}),r=!0)}function w(){window.matchMedia("(min-width: 752px)").matches?(stickyPanelListenerIsOn=!0,s(window.pageYOffset)):stickyPanelListenerIsOn=!1}function nt(){i=p.offsetHeight-n.offsetHeight;s(window.pageYOffset);w();k()}function k(){var n,t,i;for(console.log(),n=0;n<a.length;n++)t=a[n],t.style.height="auto",i=t.querySelector(".js-toggle_inner_wrap"),t.style.height=i.clientHeight+"px"}var v=document.querySelectorAll(".js-animate_in"),i,h,r,b,c,u,t,l,f,a;y();var n=document.querySelector(".js-sticky_panel"),p=document.querySelector(".js-sticky_reference"),e=!1,o=!0;for(n.setAttribute("data-stuck",!0),i=p.offsetHeight-n.offsetHeight,window.addEventListener("scroll",g),h=0,r=!1,w(),b=100,function(){resizeTaskId=null;window.addEventListener("resize",function(n){resizeTaskId!==null&&clearTimeout(resizeTaskId);resizeTaskId=setTimeout(function(){resizeTaskId=null;nt(n)},b)})}(),c=document.querySelectorAll(".js-toggle"),u=0;u<c.length;u++)for(t=c[u],l=t.querySelectorAll(".js-toggle_button"),f=0;f<l.length;f++)l[f].addEventListener("click",function(){t.hasAttribute("data-open")?t.removeAttribute("data-open"):t.setAttribute("data-open",!0)});a=document.querySelectorAll(".js-toggle_tab");k()})()