1import{o as e}from"./rolldown-runtime-d7iuo4nk.js";import{a as t}from"./use-service-k6uz85f2.js";import{D as n}from"./utils-j19nf4rh.js";import{Y as r}from"./url-utils-mnric08i.js";import{a as i}from"./vendor-react-hjibvy6c.js";import{bt as a}from"./esm-ezp3ztp3.js";var o=Symbol.for(`AppConfiguration`),{isMobile:s,isTablet:c}=r(),l=s,u=c,d=s,f=e(i()),p=()=>{let{container:e}=t();return(0,f.useMemo)(()=>e.get(o),[e])},m=Object.freeze({width:0,height:0});function h(e){let[t,r]=(0,f.useState)(m);return(0,f.useEffect)(()=>{let t=e.current;if(!t)return;let i=()=>{if(!t.isConnected)return;let{width:e,height:n}=t.getBoundingClientRect();r(t=>t.width===e&&t.height===n?t:{width:e,height:n})},a=n(i),o=new ResizeObserver(a);return o.observe(t),i(),()=>{a.cancel(),o.disconnect()}},[e]),t}var g=()=>{let{isDarkMode:e}=a();return e?`errorDark`:`error`},_=new Set([`button`,`submit`,`reset`,`checkbox`,`radio`,`range`,`color`,`file`,`image`,`hidden`]),v=e=>{if(e==null)return!1;let t=e.tagName;if(t===`TEXTAREA`)return!0;if(t===`INPUT`){let t=(e.getAttribute(`type`)??`text`).toLowerCase();return!_.has(t)}if(e.isContentEditable===!0)return!0;let n=e.getAttribute(`contenteditable`);return n!=null&&n!==`false`},y=100;function b(e){let[t,n]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{if(!e||typeof document>`u`){n(!1);return}let t=null,r=!1,i=()=>window.visualViewport?.height??window.innerHeight,a=i(),o=()=>{t=null;let e=v(document.activeElement)&&!r;n(t=>t===e?t:e)},s=()=>{t??(t=window.requestAnimationFrame(o))},c=()=>{r=!1,s()},l=()=>{let e=i(),t=e-a;a=e,!(Math.abs(t)<y)&&(r=t>0,s())};return o(),document.addEventListener(`focusin`,c,!0),document.addEventListener(`focusout`,s,!0),window.addEventListener(`resize`,l),window.visualViewport?.addEventListener(`resize`,l),()=>{document.removeEventListener(`focusin`,c,!0),document.removeEventListener(`focusout`,s,!0),window.removeEventListener(`resize`,l),window.visualViewport?.removeEventListener(`resize`,l),t!=null&&window.cancelAnimationFrame(t)}},[e]),t}export{l as a,o as c,p as i,g as n,u as o,h as r,d as s,b as t}; 2//# sourceMappingURL=global-ms4edq5k.js.map
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.