PageSourceSearch

https://omr.com/daily/assets/CI-Ka1Rf.js

js omr.com collected 2026-09-24 08:29:16 UTC 1,685 bytes, 1 lines download raw bytes

1import{c5 as E,bR as m,c7 as S,be as w,ex as M,bJ as v}from"./CAMA6yvQ.js";function Y(o){function i(){return new ResizeObserver(()=>{requestAnimationFrame(o)})}const t=E?i():void 0;m(()=>{o(),t==null||t.observe(document.documentElement)}),S(()=>{t==null||t.disconnect()})}function z(o){m(()=>{document.fonts&&document.fonts.ready.then(function(){i()}),window.addEventListener("resize",i)}),S(()=>{window.removeEventListener("resize",i)});function i(){window.requestAnimationFrame(o)}}function D(o,{focusOffsetRatio:i=.25,includeTop:t=!1,includeBottom:b=!1}={}){const u=v(0),a=v((window==null?void 0:window.scrollY)??0),l=w(()=>Math.ceil(a.value+u.value));m(()=>{g()}),Y(R);function g(){u.value=window.innerHeight*i,R()}z(g),M(()=>a.value=window.scrollY);const r=v(new Map),A=w(()=>{const e=d.value.find(n=>h(n.id));return e==null?void 0:e.id}),d=w(()=>o.value?Array.from(o.value.children).filter(e=>e.tagName==="DIV"&&e.id!==""):[]);function h(e){if(!window||!r.value)return!1;const n=r.value.get(e);return n&&n.start<=l.value&&(n.end===null||n.end>=l.value)}function R(){let e=null;const n=new Map;d.value.slice().reverse().forEach(s=>{const c=s.getBoundingClientRect().top+window.scrollY;!e&&!b&&(e=s.getBoundingClientRect().bottom+window.scrollY),n.set(s.id,{start:c,end:e}),e=c-1});const f=new Map(Array.from(n.entries()).reverse());if(t){const s=Array.from(f.entries())[0];if(s){const[c,{end:y}]=s;f.set(c,{start:0,end:y})}}r.value=f}function p(e){const n=r.value.get(e);return n?`${n.start} | ${n.end??"∞"}`:null}return{focusableSections:d,activeSection:A,sectionRanges:r,focusOffset:u,currentScrollY:a,focusPointAbsolute:l,debugInfoForSection:p}}export{Y as a,z as b,D 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.