function t(t,n={}){const e=document.querySelector(`meta[name="${t}"]`);if(!e)return n;const o=e.getAttribute("content");try{return JSON.parse(o)}catch(r){return o}}function n(t){if(null==t||t instanceof Date)return t;if("object"!=typeof t&&!Array.isArray(t))return t;if(Array.isArray(t))return t.map(n);const e={};return Object.entries(t).forEach((([t,o])=>{const r=t.replace(/[-_]([a-z0-9])/g,((t,n)=>n.toUpperCase()));e[r]=n(o)})),e}function e(t=window.navigator.userAgent){return/iPad|iPhone/i.test(t)}function o(){const t=navigator.userAgent;let n=!1;if("maxTouchPoints"in navigator)n=navigator.maxTouchPoints>0;else{const e=Boolean(window.matchMedia)&&matchMedia("(pointer:coarse)");n=e&&"(pointer:coarse)"===e.media?Boolean(e.matches):"orientation"in window||(/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(t)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(t))}return n}function r(){return!window.location.hostname||null!==window.location.hostname.match(/shop\.(app|dev)$/)}export{o as a,r as b,t as g,e as i,n as t};