(function(){function e(e,n){try{const r=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(n);window.webkit=r}catch(e){}}function n(){const e=new Uint32Array(4);window.crypto.getRandomValues(e);return e.reduce(((e="",n)=>e+n.toString(16).padStart(8,"0")),"")}class r{registeredApis={};frameId=n();registerApi(e,n){if(this.registeredApis[e]!==undefined){throw new Error(`API ${e} already registered.`)}this.registeredApis[e]=n}getRegisteredApi(e){return this.registeredApis[e]}getFrameId(){if(!this.frameId){this.frameId=n()}return this.frameId}registerFrame(){e("FrameBecameAvailable",{crwFrameId:this.getFrameId()})}}if(!window.__gCrWeb){window.__gCrWeb=new r}const t=window.__gCrWeb;function o(n,r){let o;const s=Array.prototype.slice.call(r);try{o=s.join(" ")}catch(e){}e("ConsoleMessageHandler",{sender_frame:t.getFrameId(),log_level:n,message:o,url:document.location.href})}const s=console.log;console.log=function(){const e=arguments;o("log",e);return s.apply(this,e)};const i=console.debug;console.debug=function(){const e=arguments;o("debug",e);return i.apply(this,e)};const c=console.info;console.info=function(){const e=arguments;o("info",e);return c.apply(this,e)};const a=console.warn;console.warn=function(){const e=arguments;o("warn",e);return a.apply(this,e)};const d=console.error;console.error=function(){const e=arguments;o("error",e);return d.apply(this,e)}})();