!function(t={}){let{triggerClass:e="js3-toggle",toggleClass:r="o3-footer__detail-content--open",target:l,relatedTargets:a,ariaExpanded:o=null,ariaControls:i=null,multiple:n=!1,callback:g,initialState:s=!1}=t,u=document.querySelectorAll(`.${e}`);if(!u.length)return;let c=t=>Array.isArray(t)?t:t.split(" "),f=t=>"string"==typeof r||Array.isArray(r)?c(r):"object"==typeof r&&r[t]||[],A=s;u.forEach((t,e)=>{let r=f(e),s=t.getAttribute("data-o3-toggle-target")||l,u=t.getAttribute("data-o3-toggle-aria-expanded")||o,c=t.getAttribute("data-o3-toggle-aria-controls")||i,d=null!==t.getAttribute("data-o3-toggle-multiple")||n,y=[];if(s){let t=document.querySelectorAll(s);y.push(...Array.from(t))}else if(d){if("boolean"==typeof n||"siblings"===n){let e=Array.from(t.parentElement?.children||[]).filter(e=>e!==t);y.push(...e)}else"children"===n&&y.push(...Array.from(t.children))}else t.nextElementSibling&&y.push(t.nextElementSibling);if(a){let t=Array.isArray(a)?a.flatMap(t=>Array.from(document.querySelectorAll(t))):Array.from(document.querySelectorAll(a));y.push(...t)}t.addEventListener("click",function(e){e.preventDefault(),y.length&&(A=!A,y.forEach(t=>{r.forEach(e=>t.classList.toggle(e))}),u&&t.setAttribute(u,A.toString()),c&&l&&t.setAttribute(c,y[0].id),g&&g(A,t,y))})})}();
//# sourceMappingURL=footer.17c00a02.js.map
