1import{Ut as e,ct as t,g as n,gn as r,vn as i}from"./B4b-2GOK.js";import{d as a}from"./C-cJk7cJ.js";import{h as o,l as s}from"./KFpYqJ90.js";var c=[{layout:`xs`,from:0,to:639,layoutGroup:`phone`},{layout:`sm`,from:640,to:867,layoutGroup:`phone`},{layout:`md`,from:868,to:1023,layoutGroup:`tablet`},{layout:`lg`,from:1024,to:1279,layoutGroup:`tablet`},{layout:`xl`,from:1280,to:1359,layoutGroup:`tablet`},{layout:`rD`,from:1360,to:1439,layoutGroup:`desktop`},{layout:`2rD`,from:1440,to:1599,layoutGroup:`desktop`},{layout:`xxl`,from:1600,to:1919,layoutGroup:`desktop`},{layout:`3xl`,from:1920,to:99999,layoutGroup:`desktop`}],l=Object.values(((e,t)=>e.reduce((e,n)=>({...e,[n[t]]:[...e[n[t]]||[],n]}),{}))(c,`layoutGroup`)).map(e=>{let t=e[0],n=e[e.length-1];return{from:t.from,to:n.to,layoutGroup:t.layoutGroup}}),u=e=>({...e,query:`(min-width: ${e.from}px) and (max-width: ${e.to}px)`,queryPre:`(max-width: ${e.from-1}px)`,queryMin:`(min-width: ${e.from}px)`,queryMax:`(max-width: ${e.to}px)`,queryPost:`(min-width: ${e.from}px)`}),d={breakpoints:c.map(e=>u(e)),groupedBreakpoints:l.map(e=>u(e))},f={breakpoints:d.breakpoints,groupedBreakpoints:d.groupedBreakpoints,routes:a},p=e=>f.groupedBreakpoints.find(t=>t.layoutGroup===e)?.query,m=e=>f.breakpoints.find(t=>t.from<=e&&e<=t.to)?.layout,h=e=>f.groupedBreakpoints.find(t=>t.from<=e&&e<=t.to)?.layoutGroup,g=()=>{let a=i(!1),c=i(!1),l=i(!1),u=i(!1),d=i(0),f=i(!1);t(()=>{let t=s(p(`desktop`)),n=s(p(`tablet`)),r=s(p(`phone`)),i=s(`(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)`),m=o();e(()=>{a.value=t.value,c.value=n.value,l.value=r.value,u.value=i.value,d.value=m.width.value,f.value=`loading`in document.createElement(`img`)})});let g=n(()=>m(d.value)),_=n(()=>h(d.value));return{device:r({get isDesktop(){return a.value},get isTablet(){return c.value},get isMobile(){return l.value},get isRetina(){return u.value},get width(){return d.value},get layout(){return g.value},get layoutGroup(){return _.value},get hasNativeLazyload(){return f.value}}),togglePageScrolling:e=>{let t=document.querySelector(`html`);if(e)document.body.style.paddingRight=`0px`,t?.classList.remove(`overflow-hidden`);else{let e=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=`${e}px`,t?.classList.add(`overflow-hidden`)}},getQueryByLayout:p}};export{g 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.