import{aH as c,a5 as o}from"./main-BDtKGhFI.js";const t=(s=!1)=>{const e=c({openPanels:[],count:0});o("isAccordionOpen",n=>e.openPanels.includes(n)),o("generateAccordionId",()=>(e.count+=1,e.count)),o("toggleAccordionPanelById",n=>{e.openPanels.includes(n)?e.openPanels=e.openPanels.filter(a=>a!==n):s?e.openPanels.push(n):e.openPanels=[n]})};export{t as s};