(function(){function d(){const a=performance.getEntriesByType("navigation")[0].toJSON();a.start=performance.timing.requestStart;delete a.serverTiming;if(0<a.duration){var e=0>a.fetchStart?-a.fetchStart:0;"domainLookupStart domainLookupEnd connectStart connectEnd requestStart responseStart responseEnd domComplete domInteractive domContentLoadedEventStart domContentLoadedEventEnd loadEventStart loadEventEnd duration".split(" ").forEach(c=>{a[c]+=e});var b=a.duration/1E3;b=b.toFixed(100<=b?0:10<=b?1:
2).substring(0,4);browser.runtime.sendMessage({time:b,timing:a,website:window.location.href}).catch(c=>console.log(c))}else setTimeout(d,100)}"complete"===document.readyState?d():window.addEventListener("load",d)})();
