1import{a as i,b as f,c as g,d as h,e as p,o as v,p as b}from"./chunk-4IYVOA4B.js";import{j as u}from"./chunk-PUKMGLDE.js";u();var C=t=>I(t),N=(t,e)=>(typeof t=="string"&&(e=t,t=void 0),C(t).includes(e)),I=(t=window)=>{if(typeof t>"u")return[];t.Ionic=t.Ionic||{};let e=t.Ionic.platforms;return e==null&&(e=t.Ionic.platforms=W(t),e.forEach(o=>t.document.documentElement.classList.add(`plt-${o}`))),e},W=t=>{let e=i.get("platform");return Object.keys(M).filter(o=>{let s=e?.[o];return typeof s=="function"?s(t):M[o](t)})},_=t=>l(t)&&!A(t),m=t=>!!(r(t,/iPad/i)||r(t,/Macintosh/i)&&l(t)),k=t=>r(t,/iPhone/i),x=t=>r(t,/iPhone|iPod/i)||m(t),P=t=>r(t,/android|sink/i),L=t=>P(t)&&!r(t,/mobile/i),F=t=>{let e=t.innerWidth,o=t.innerHeight,s=Math.min(e,o),a=Math.max(e,o);return s>390&&s<520&&a>620&&a<800},H=t=>{let e=t.innerWidth,o=t.innerHeight,s=Math.min(e,o),a=Math.max(e,o);return m(t)||L(t)||s>460&&s<820&&a>780&&a<1400},l=t=>R(t,"(any-pointer:coarse)"),S=t=>!l(t),A=t=>y(t)||E(t),y=t=>!!(t.cordova||t.phonegap||t.PhoneGap),E=t=>{let e=t.Capacitor;return!!(e?.isNative||e?.isNativePlatform&&e.isNativePlatform())},T=t=>r(t,/electron/i),B=t=>{var e;return!!(!((e=t.matchMedia)===null||e===void 0)&&e.call(t,"(display-mode: standalone)").matches||t.navigator.standalone)},r=(t,e)=>e.test(t.navigator.userAgent),R=(t,e)=>{var o;return(o=t.matchMedia)===null||o===void 0?void 0:o.call(t,e).matches},M={ipad:m,iphone:k,ios:x,android:P,phablet:F,tablet:H,cordova:y,capacitor:E,electron:T,pwa:B,mobile:l,mobileweb:_,desktop:S,hybrid:A},d,z=t=>t&&b(t)||d,D=(t={})=>{if(typeof window>"u")return;let e=window.document,o=window,s=o.Ionic=o.Ionic||{},a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f(o)),{persistConfig:!1}),s.config),h(o)),t);i.reset(a),i.getBoolean("persistConfig")&&g(o,a),I(o),s.config=i,s.mode=d=i.get("mode",e.documentElement.getAttribute("mode")||(N(o,"ios")?"ios":"md")),i.set("mode",d),e.documentElement.setAttribute("mode",d),e.documentElement.classList.add(d),i.getBoolean("_testing")&&i.set("animated",!1);let j=n=>{var c;return(c=n.tagName)===null||c===void 0?void 0:c.startsWith("ION-")},O=n=>["ios","md"].includes(n);v(n=>{for(;n;){let c=n.mode||n.getAttribute("mode");if(c){if(O(c))return c;j(n)&&p('Invalid ionic mode: "'+c+'", expected: "ios" or "md"')}n=n.parentElement}return d})};export{N as a,z as b,D as c};
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.