1import{t as e}from"./on.DGiIsTf9.js";var t=90,n=120,r=60,i=100,a=0,o=400,s=767,c=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,l=()=>window.matchMedia(`(hover: none)`).matches||window.matchMedia(`(pointer: coarse)`).matches;function u(e,t,n){let r=new Set((e.getAttribute(`data-state`)??``).split(` `).filter(Boolean));n?r.add(t):r.delete(t);let i=[...r].join(` `);i?e.setAttribute(`data-state`,i):e.removeAttribute(`data-state`)}function d(d){let f=d.querySelector(`[data-js="nav-bar"]`);if(!f)return;let p=d.dataset.variant===`solid`?a:i,m=()=>u(d,`scrolled`,window.scrollY>p);m(),window.addEventListener(`scroll`,m,{passive:!0});let h=()=>d.setAttribute(`data-transitions`,`on`);requestAnimationFrame(()=>requestAnimationFrame(h)),setTimeout(h,150),new ResizeObserver(()=>{let e=getComputedStyle(d),t=d.hasAttribute(`data-event-registration`)?d.getBoundingClientRect().height:f.getBoundingClientRect().bottom-d.getBoundingClientRect().top+parseFloat(e.paddingBottom)+parseFloat(e.borderBottomWidth);document.documentElement.style.setProperty(`--nav-h`,`${t}px`)}).observe(f);let g=document.querySelectorAll(`[data-nav-theme="dark"], [section-theme="dark"]`);if(g.length){let e=!1,t=()=>{e=!1;let t=f.getBoundingClientRect(),n=t.top+t.height/2,r=!1;g.forEach(e=>{let t=e.getBoundingClientRect();t.top<=n&&t.bottom>=n&&(r=!0)}),r?d.setAttribute(`data-theme`,`dark`):d.removeAttribute(`data-theme`)},n=()=>{e||(e=!0,requestAnimationFrame(t))};window.addEventListener(`scroll`,n,{passive:!0}),window.addEventListener(`resize`,n,{passive:!0}),t()}let _=d.querySelector(`[data-js="mega-trigger"]`),v=d.querySelector(`[data-js="mega"]`),y=d.querySelector(`[data-js="mega-panel"]`),b=d.querySelector(`[data-js="nav-burger"]`),x=!1,S=0,C=0,w=!1,T=!1,E=window.matchMedia(`(max-width: ${s}px)`),D=d.querySelector(`[data-js="nav-sub"]`),O=()=>{D&&!D.hidden&&(D.hidden=!0,_?.setAttribute(`aria-expanded`,`false`))},k=()=>{clearTimeout(S),clearTimeout(C)},A=()=>{!_||!y||!v||(x=!0,u(d,`mega-open`,!0),y.setAttribute(`data-state`,`open`),_.setAttribute(`aria-expanded`,`true`),y.setAttribute(`aria-hidden`,`false`))},j=()=>{!_||!y||!v||(x=!1,u(d,`mega-open`,!1),y.removeAttribute(`data-state`),_.setAttribute(`aria-expanded`,`false`),y.setAttribute(`aria-hidden`,`true`))},M=(e=!1)=>{k();let n=c()?0:e?r:t;S=window.setTimeout(A,n)},N=(e=!1)=>{k();let t=c()||e?0:n;C=window.setTimeout(()=>{!w&&!T&&j()},t)};_&&y&&v&&(_.setAttribute(`aria-haspopup`,`true`),_.setAttribute(`aria-controls`,y.id),_.setAttribute(`aria-expanded`,`false`),y.setAttribute(`role`,`region`),y.setAttribute(`aria-hidden`,`true`),l()||(_.addEventListener(`pointerenter`,()=>{E.matches||(w=!0,M())}),_.addEventListener(`pointerleave`,e=>{if(E.matches)return;w=!1;let t=e.relatedTarget;if(t&&v.contains(t))return k();x?N():k()}),v.addEventListener(`pointerenter`,()=>{E.matches||(T=!0,k())}),v.addEventListener(`pointerleave`,e=>{if(E.matches)return;T=!1;let t=e.relatedTarget;if(t&&d.contains(t)&&f.contains(t))return k();x&&N()}),f.addEventListener(`pointermove`,e=>{E.matches||x&&(e.target.closest(`[data-js="mega-trigger"]`)||(w=!1,N()))}),f.addEventListener(`pointerleave`,e=>{if(E.matches)return;let t=e.relatedTarget;x&&!(t&&v.contains(t))&&(w=!1,N())})),_.addEventListener(`click`,e=>{if(e.preventDefault(),k(),E.matches){if(D){let e=D.hidden;D.hidden=!e,_.setAttribute(`aria-expanded`,String(e))}return}I&&z(),x?j():A()}),_.addEventListener(`focusin`,()=>{_.matches(`:focus-visible`)&&!x&&(k(),A())}),v.querySelectorAll(`[data-js="mega-close"]`).forEach(e=>e.addEventListener(`click`,e=>{e.preventDefault(),k(),j()})),document.addEventListener(`pointerdown`,e=>{if(!x)return;let t=e.target;if(!(b&&b.contains(t))){if(d.contains(t))return k();k(),j()}},!0),b?.addEventListener(`pointerdown`,()=>{x&&(k(),j())},!0));let P=d.querySelector(`[data-js="nav-drawer"]`),F=d.querySelector(`[data-js="nav-menu"]`),I=!1,L=0,R=()=>{if(I||!P||!F||!b)return;I=!0,L++,u(d,`menu-open`,!0),b.setAttribute(`aria-expanded`,`true`),document.documentElement.setAttribute(`data-nav-lock`,``);let e=F.offsetHeight;F.style.transition=`none`,F.style.transform=`translateY(-${e}px)`,F.offsetHeight,F.style.transition=c()?`none`:`transform ${o}ms ease`,F.style.transform=`translateY(0px)`},z=()=>{if(O(),!I||!P||!F||!b)return;I=!1;let e=++L;b.setAttribute(`aria-expanded`,`false`),F.style.transform=`translateY(-${F.offsetHeight}px)`;let t=()=>{e!==L||I||(u(d,`menu-open`,!1),document.documentElement.removeAttribute(`data-nav-lock`),F.style.transition=``,F.style.transform=``,F.removeEventListener(`transitionend`,t))};if(c())return t();
1F.addEventListener(`transitionend`,t),setTimeout(t,520)};b&&P&&F&&(b.setAttribute(`aria-expanded`,`false`),b.addEventListener(`click`,()=>I?z():R()),P.addEventListener(`click`,e=>{e.target===P&&z()}),F.addEventListener(`click`,e=>{e.target.closest(`a[href]`)&&z()}),e(`(min-width: 768px)`,e=>{e&&I&&z(),!e&&x&&(k(),j())})),window.addEventListener(`keydown`,e=>{e.key===`Escape`&&(k(),x&&j(),z())})}var f=document.querySelector(`[data-js="nav"]`);f&&d(f);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.