document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".wp-block-uicore-a-tabs-nav-item").forEach(e=>{e.addEventListener("click",function(e){e.stopPropagation();const t=this.getAttribute("aria-controls");this.closest(".wp-block-uicore-a-tabs").querySelectorAll(".uicore-is-active").forEach(e=>{e.classList.remove("uicore-is-active")}),this.classList.add("uicore-is-active"),this.setAttribute("aria-selected","true"),this.querySelectorAll('[class*="wp-block-uicore-"]').forEach(e=>{e.classList.add("uicore-is-active")}),document.getElementById(t).classList.add("uicore-is-active")})})});