(function(){function e(e,t){try{const r=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(t);window.webkit=r}catch(e){}}function t(){const e=new Uint32Array(4);window.crypto.getRandomValues(e);return e.reduce(((e="",t)=>e+t.toString(16).padStart(8,"0")),"")}class r{registeredApis={};frameId=t();registerApi(e,t){if(this.registeredApis[e]!==undefined){throw new Error(`API ${e} already registered.`)}this.registeredApis[e]=t}getRegisteredApi(e){return this.registeredApis[e]}getFrameId(){if(!this.frameId){this.frameId=t()}return this.frameId}registerFrame(){e("FrameBecameAvailable",{crwFrameId:this.getFrameId()})}}if(!window.__gCrWeb){window.__gCrWeb=new r}const i=window.__gCrWeb;function n(){const t=window.document.querySelector('meta[name = "viewport"]');if(t){const r=t.getAttribute("content")?.includes("viewport-fit=cover");e("FullscreenViewportHandler",{frame_id:i.getFrameId(),cover:r})}}window.addEventListener("load",n)})();