1function e(e){e||={};for(let t=1;t<arguments.length;t++)if(arguments[t])for(let n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}function t(){let e=window.innerHeight*.01,t=document.body.clientWidth*.01;document.documentElement.style.setProperty(`--vh`,`${e.toString()}px`),document.documentElement.style.setProperty(`--vw`,`${t.toString()}px`)}var n={},r={_baseUrl:null,set baseUrl(e){try{this._baseUrl=new URL(e)}catch{this._baseUrl=new URL(window.location)}for(let e of[...this._baseUrl.searchParams.keys()])this._baseUrl.searchParams.delete(e)},get baseUrl(){return this._baseUrl},baseUrlWithParams(e){let t=new URL(this._baseUrl);for(let[n,r]of Object.entries(e))t.searchParams.set(n,r);return t}},i=document.querySelector(`meta[name="baseurl"]`);r.baseUrl=i?i.content:window.location;var a=document.querySelector(`meta[name="assets"]`);a=a&&typeof a!=`string`?a.content:window.location.toString();function o(e,t){if(e){if(e.startsWith(`/`)&&!e.startsWith(`//`)){let t=new URL(a);t.pathname=e.startsWith(t.pathname)?e:t.pathname+e.replace(/^\//,``),e=t.toString()}if(!e.endsWith(`.svg`)){console.error(e,`missing svg in url`),console.error(t,`element with missing svg in data-url`);return}n[e]=n[e]||fetch(e).then(e=>e.text()).then(t=>new Promise((n,r)=>{let i=new DOMParser().parseFromString(t,`image/svg+xml`).querySelector(`svg`);i?n(i):r(Error(`Unable to parse SVG `+e))})),n[e].then(e=>{let n=e.cloneNode(!0),r=n.attributes,i=r.length;for(let e=0;e<i;++e)if(r[e].specified){if(r[e].name===`class`){let n=r[e].value.replace(/\s+/g,` `).trim().split(` `),i=n.length;for(let e=0;e<i;++e)t.classList.add(n[e])}else t.setAttribute(r[e].name,r[e].value)}for(n.querySelectorAll(`[id]`).forEach(e=>{let t=e.getAttribute(`id`);if(document.getElementById(t)){let r;do r=`${t}-${Math.floor(Date.now()*Math.random())}`;while(document.getElementById(r));e.setAttribute(`id`,r);let i=n.querySelectorAll(`*`);for(let e of i)for(let n of e.attributes)n.value===`url(#${t})`&&e.setAttribute(n.name,`url(#${r})`)}});n.childNodes.length;)t.appendChild(n.childNodes[0])})}}function s(){return r.baseUrl.toString()}function c(){let e=document.querySelector(`meta[name=viewport]`);if(e!==null){let t=e.getAttribute(`content`),n=/maximum-scale=[0-9.]+/g;t=n.test(t)?t.replace(n,`maximum-scale=1.0`):[t,`maximum-scale=1.0`].join(`, `),e.setAttribute(`content`,t)}}function l(e){return e.querySelectorAll(`a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])`)}function u(e,t=e,n){e.addEventListener(`keydown`,e=>{if(e.key===`Tab`||e.keyCode===9){let r=l(t),i=n||r[0],a=r[r.length-1];e.shiftKey?document.activeElement===i&&(a.focus(),e.preventDefault()):document.activeElement===a&&(i.focus(),e.preventDefault())}})}function d(e,t,n={clickPreventDefault:!1,keydownPreventDefault:!0}){e.addEventListener(`click`,e=>{n.clickPreventDefault&&e.preventDefault(),t(e)}),e.addEventListener(`keydown`,e=>{(e.code===`Enter`||e.code===`Space`)&&(n.keydownPreventDefault&&e.preventDefault(),t(e))})}export{s as a,t as c,o as i,u as l,c as n,l as o,e as r,r as s,d as t};
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.