1const E=(T,b)=>{const t=window,s="_qCitySPA",u="_qCityInitPopstate",d="_qCityInitAnchors",y="_qCityInitVisibility",f="_qCityInitScroll";if(!t[s]&&!t[u]&&!t[d]&&!t[y]&&!t[f]){const C=location.pathname+location.search,m="_qCityHistoryPatch",_="_qCityBootstrap",r="_qCityScrollEnabled",l="_qCityScrollDebounce",S="_qCityScroll",v=o=>{o&&t.scrollTo(o.x,o.y)},p=()=>{const o=document.documentElement;return{x:o.scrollLeft,y:o.scrollTop,w:Math.max(o.scrollWidth,o.clientWidth),h:Math.max(o.scrollHeight,o.clientHeight)}},h=o=>{const i=history.state||{};i[S]=o||p(),history.replaceState(i,"")};if(h(),t[u]=()=>{if(!t[s]){if(t[r]=!1,clearTimeout(t[l]),C!==location.pathname+location.search){const o=c=>c.closest("[q\\:container]"),i=o(b)?.querySelector("a[q\\:link]");if(i){const c=o(i),e=i.cloneNode();e.setAttribute("q:nbs",""),e.style.display="none",c.appendChild(e),t[_]=e,e.click()}else location.reload()}else if(history.scrollRestoration==="manual"){const o=history.state?.[S];v(o),t[r]=!0}}},!t[m]){t[m]=!0;const o=history.pushState,i=history.replaceState,c=e=>(e===null||typeof e>"u"?e={}:e?.constructor!==Object&&(e={_data:e}),e._qCityScroll=e._qCityScroll||p(),e);history.pushState=(e,n,a)=>(e=c(e),o.call(history,e,n,a)),history.replaceState=(e,n,a)=>(e=c(e),i.call(history,e,n,a))}t[d]=o=>{if(t[s]||o.defaultPrevented)return;const i=o.target.closest("a[href]");if(i&&!i.hasAttribute("preventdefault:click")){const c=i.getAttribute("href"),e=new URL(location.href),n=new URL(c,e),a=n.origin===e.origin,g=n.pathname+n.search===e.pathname+e.search;if(a&&g)if(o.preventDefault(),n.href!==e.href&&history.pushState(null,"",n),!n.hash)n.href.endsWith("#")?window.scrollTo(0,0):(t[r]=!1,clearTimeout(t[l]),h({...p(),x:0,y:0}),location.reload());else{const w=n.hash.slice(1),q=document.getElementById(w);q&&q.scrollIntoView()}}},t[y]=()=>{!t[s]&&t[r]&&document.visibilityState==="hidden"&&h()},t[f]=()=>{t[s]||!t[r]||(clearTimeout(t[l]),t[l]=setTimeout(()=>{h(),t[l]=void 0},200))},t[r]=!0,setTimeout(()=>{t.addEventListener("popstate",t[u]),t.addEventListener("scroll",t[f],{passive:!0}),document.addEventListener("click",t[d]),t.navigation||document.addEventListener("visibilitychange",t[y],{passive:!0})},0)}};export{E as s_UtMpQf9Cz3Q};
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.