document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".tab-group").forEach(t=>{const e=t.querySelector(".tab-group__toolbar").querySelectorAll("button");e.forEach(r=>{r.addEventListener("click",()=>{var a;a=r,e.forEach(t=>{t.setAttribute("aria-selected","false")}),a.setAttribute("aria-selected","true"),function(e){const r=e.getAttribute("aria-controls"),a=t.querySelector(`#${r}`);t.querySelectorAll(".tab-group__innerblocks .tab").forEach(t=>{t.setAttribute("data-active","false")}),a.setAttribute("data-active","true")}(r)})})})});