(()=>{"use strict";const t=t=>{const e=JSON.parse(t),a="_blank"==e?.target?"_blank":"_self",c=(t=>{if(!t||"string"!=typeof t)return null;const e=t.replace(/(javascript:|data:|vbscript:)/gi,"");return/^(https?:\/\/)?([a-zA-Z0-9-]+(\.[a-zA-Z]{2,})+|localhost(:\d+)?|(\d{1,3}\.){3}\d{1,3})(:\d+)?(\/[^\s]*)?$|^#([a-zA-Z0-9-_]*)$/.test(e)?e:null})(e?.href),i=c||"#";window.open(i,a)},e=e=>{const a=e.target.closest(".gkit-image-accordion-item"),c=a.getAttribute("data-event"),i="gkit-image-accordion-item--active",s=a.getAttribute("data-link");switch(c){case"click":s&&a.classList.contains(i)&&t(s);const e=Array.from(a.parentNode.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t!==a);a.classList.contains(i)||(a.classList.add(i),e.map(t=>{t.classList.remove(i)}));break;case"hover":s&&t(s)}};window.addEventListener("load",()=>{document.querySelectorAll(".gkit-image-accordion").forEach(t=>{t.querySelectorAll(".gkit-image-accordion-item").forEach(t=>{t.addEventListener("click",e)}),Fancybox.bind(t,"[data-fancybox]",{})})})})();