try{ (()=>{"use strict";const e=(e,t)=>Array.from(e).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e!==t)),t=t=>{const l=t.target.closest(".gkit-card");l.classList.toggle("active");const s=l.lastChild,c=t.target.closest(".gkit-accordion").querySelectorAll(".collapse"),a=e(c,s);Object.values(a).map((e=>e.style.maxHeight=null)),s.style.maxHeight?s.style.maxHeight=null:s.style.maxHeight=s.scrollHeight+"px",t.target.closest(".gkit-card-header").nextSibling.classList.toggle("show"),e(l.parentNode.childNodes,l).forEach((e=>{e&&(e.classList.remove("active"),e.lastChild.classList.remove("show"))}))};window.addEventListener("load",(()=>{document.querySelectorAll(".wp-block-gutenkit-advanced-accordion").forEach((e=>{e.querySelectorAll(".gkit-card-header").forEach((e=>{e.addEventListener("click",t)}));const l=e.querySelectorAll(".gkit-accordion .collapse");Object.values(l).map((e=>{e.classList.contains("show")&&(e.style.maxHeight=`${e.scrollHeight}px`)}))}))}))})(); } catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://shortgames.site/wp-content/plugins/gutenkit-blocks-addon/build/blocks/advanced-accordion/frontend.js\n- Error message: "+ e.message);}