import{in as e,nn as t}from"./DRAiiyBy.mjs";import{a as n,c as r,i,n as a,o,s,t as c}from"./B657Q3Jk.mjs";import"./DZ3venUT.mjs";var l=()=>({width:window.innerWidth,height:window.innerHeight}),u=e(l(),e=>{let t=()=>e(l());return window.addEventListener(`resize`,t),()=>{window.removeEventListener(`resize`,t)}}),d=()=>window&&`screen`in window&&`orientation`in window.screen,f=()=>window&&`orientation`in window,p=e(d()?window.screen.orientation.type:f()&&(window.orientation===90||window.orientation===-90)?`landscape-primary`:`portrait-primary`,e=>{let t=()=>{},n=t=>{if(!d()||!t.target||typeof t.target.type!=`string`)return;let n=t.target.type;e(n)},r=()=>{f()&&(window.orientation===90||window.orientation===-90?e(`landscape-primary`):e(`portrait-primary`))};return d()?(window.screen.orientation.addEventListener(`change`,n),t=()=>{window.screen.orientation.removeEventListener(`change`,n)}):f()&&(window.addEventListener(`orientationchange`,r),t=()=>{window.removeEventListener(`orientationchange`,r)}),()=>{t()}}),m=t([u],([e])=>{let t=e.widthi(e.width)),g=t(u,e=>s(e.width)),_=t([p,u],([e,t])=>(t.widthe||t),y=t(u,e=>o(e.width));t(u,e=>r(e.width));export{g as a,v as i,m as n,h as o,_ as r,u as s,y as t};