1import{St as e,X as t,gt as n}from"./CqaAIM5P.js";import{D as r,x as i}from"./BRmsbH64.js";var a=1,o=9,s=11;function c(e){return r(e)&&e.nodeType===a&&typeof e.nodeName==`string`}function l(e){return r(e)&&e.nodeType===o}function u(e){return r(e)&&e.constructor?.name===`VisualViewport`}function d(e){return r(e)&&e.nodeType!==void 0}function f(e){return d(e)&&e.nodeType===s&&`host`in e}function p(e,t){if(!e||!t||!c(e)||!c(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&f(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function m(e){return l(e)?e:u(e)?e.document:e?.ownerDocument??document}function h(e){return f(e)?h(e.host):l(e)?e.defaultView??window:c(e)?e.ownerDocument?.defaultView??window:window}function g(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var _=class{element;#e=e(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return t(this.#e)}set root(e){n(this.#e,e)}constructor(e){typeof e==`function`?this.element=i(e):this.element=e}getDocument=()=>m(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>g(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function v(e,t){return e>=0&&e<t.length}function y(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function b(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function x(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t+n;return i=r?(i%e.length+e.length)%e.length:Math.max(0,Math.min(i,e.length-1)),e[i]}function S(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t-n;return i=r?(i%e.length+e.length)%e.length:Math.max(0,Math.min(i,e.length-1)),e[i]}function C(e,t,n){let r=t.toLowerCase();if(r.endsWith(` `)){let i=r.slice(0,-1);if(e.filter(e=>e.toLowerCase().startsWith(i)).length<=1)return C(e,i,n);let a=n?.toLowerCase();if(a&&a.startsWith(i)&&a.charAt(i.length)===` `&&t.trim()===i)return n;let o=e.filter(e=>e.toLowerCase().startsWith(r));if(o.length>0){let t=n?e.indexOf(n):-1;return w(o,Math.max(t,0)).find(e=>e!==n)||n}}let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=i.toLowerCase(),o=n?e.indexOf(n):-1,s=w(e,Math.max(o,0));i.length===1&&(s=s.filter(e=>e!==n));let c=s.find(e=>e?.toLowerCase().startsWith(a));return c===n?void 0:c}function w(e,t){return e.map((n,r)=>e[(t+r)%e.length])}export{y as a,p as c,v as i,m as l,x as n,b as o,C as r,_ as s,S as t,h as u};
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.