function d(){return{openTab:"festival",showScrollToTop:!1,init(){this.$watch("openTab",()=>this.$nextTick(()=>window.lucideIcons&&window.lucideIcons.init())),window.addEventListener("scroll",()=>{this.showScrollToTop=window.scrollY>400},{passive:!0});let e={"#sponsors":"sponsors","#agenda":"agenda","#venue":"venue","#pitch":"pitch","#tickets":"festival"},i=a=>{if(!a)return;let c=a.toLowerCase(),t=c.replace("#",""),s=t.indexOf("-"),l=s>0?`#${t.slice(0,s)}`:`#${t}`,h=e[l]||e[c]||null;if(h){this.changeTab(h,!1);let r=[t,`${t}-page`,`${t}-section`];if(s>0){let n=t.slice(0,s);r.push(n,`${n}-page`,`${n}-section`)}for(let n of r){let o=document.getElementById(n);if(o){o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),setTimeout(()=>{o.scrollIntoView({behavior:"smooth",block:"start"});try{o.focus({preventScroll:!0})}catch{}o.classList.add("hash-highlight"),setTimeout(()=>o.classList.remove("hash-highlight"),1800)},100);break}}}};window.location&&window.location.hash&&i(window.location.hash),window.addEventListener("hashchange",()=>{i(window.location.hash)},{passive:!0})},changeTab(e,i=!0){this.openTab=e;try{typeof gtag=="function"&>ag("event","tab_change",{event_category:"Navigation",event_label:e,value:e}),typeof window.dataLayer<"u"&&window.dataLayer.push({event:"tab_change",tab_name:e,event_category:"Navigation"})}catch(a){console.warn("Analytics tracking error:",a)}i&&this.$nextTick(()=>{window.scrollTo({top:0,behavior:"smooth"})})}}}window.yucatechApp=d;