1import"./app-DoPGeyqi.js";import"./preload-helper-PPVm8Dsz.js";import"./helpers-D3mYkYaM.js";function d(){const o=()=>{const i=[...document.querySelectorAll("aside")].find(t=>t.querySelector('[data-aa-adunit*="_sidebar_top_article"]'));if(!i)return;if(window.matchMedia("(max-width: 868px)").matches){i.style.gridTemplateRows="auto";return}const n=i.getBoundingClientRect(),r=[...document.querySelectorAll('[data-aa-adunit*="_in-content_"], .embla-affiliate-carousel')].filter(t=>t.offsetParent!==null).map(t=>t.closest("center")||t).filter((t,e,l)=>t&&l.indexOf(t)===e).map(t=>{const e=t.getBoundingClientRect();return{el:t,top:e.top-n.top,bottom:e.bottom-n.top,height:e.height}}).sort((t,e)=>t.top-e.top);if(!r.length)return;const a=[];let s=0;r.forEach(t=>{const e=t.top-s;e>0&&a.push(`${Math.round(e)}px`),a.push(`${Math.round(t.height)}px`),s=t.bottom}),i.style.gridTemplateRows=a.join(" ")};"requestIdleCallback"in window?requestIdleCallback(o,{timeout:200}):setTimeout(o,0),window.addEventListener("resize",()=>{"requestIdleCallback"in window?requestIdleCallback(o,{timeout:200}):setTimeout(o,0)})}d();export{d as initSideBarAds};
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.