((e,t)=>{"use strict";const i=function(){const t="A"===this.tagName?this.parentNode:this,i=t.tfTag("ul")[0],s=t.classList;s.remove("edge"),s.toggle("edge",i.getBoundingClientRect().right>e.w)},s=e=>{if(null===e||e.dataset.edge)return;e.dataset.edge=!0;const t=e.tfTag("li");for(let e=t.length-1;e>-1;--e)if(t[e].tfTag("ul")[0]){t[e].tfOn("mouseenter",i,{passive:!0});let s=t[e].firstChild;"A"===s.tagName&&s.tfOn("focus",i,{passive:!0})}};e.on("tf_edge_init",(e=>{void 0===e?(s(t.tfId("main-nav")),s(t.tfId("footer-nav"))):s(e)}))})(Themify,document);