(this["webpackJsonpspotify-bingo-v2"]=this["webpackJsonpspotify-bingo-v2"]||[]).push([[3],{198:function(t,n,e){"use strict";e.r(n),e.d(n,"getCLS",function(){return f}),e.d(n,"getFCP",function(){return v}),e.d(n,"getFID",function(){return m}),e.d(n,"getLCP",function(){return h}),e.d(n,"getTTFB",function(){return y});var i,a,r=function(t){return{name:t,value:arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,delta:0,entries:[],id:"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),isFinal:!1}},o=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var e=new PerformanceObserver(function(t){return t.getEntries().map(n)});return e.observe({type:t,buffered:!0}),e}}catch(t){}},s=!1,u=!1,c=function(t){s=!t.persisted},p=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u||(addEventListener("pagehide",c),addEventListener("beforeunload",function(){}),u=!0),addEventListener("visibilitychange",function(n){var e=n.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:e,isUnloading:s})},{capture:!0,once:n})},d=function(t,n,e,i){var a;return function(){e&&n.isFinal&&e.disconnect(),n.value>=0&&(i||n.isFinal||"hidden"===document.visibilityState)&&(n.delta=n.value-(a||0),(n.delta||n.isFinal||void 0===a)&&(t(n),a=n.value))}},f=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),n())},s=o("layout-shift",a);s&&(n=d(t,i,s,e),p(function(t){var e=t.isUnloading;s.takeRecords().map(a),e&&(i.isFinal=!0),n()}))},l=function(){return void 0===i&&(i="hidden"===document.visibilityState?0:1/0,p(function(t){var n=t.timeStamp;return i=n},!0)),{get timeStamp(){return i}}},v=function(t){var n,e=r("FCP"),i=l(),a=o("paint",function(t){"first-contentful-paint"===t.name&&t.startTime<i.timeStamp&&(e.value=t.startTime,e.isFinal=!0,e.entries.push(t),n())});a&&(n=d(t,e,a))},m=function(t){var n=r("FID"),e=l(),i=function(t){t.startTime<e.timeStamp&&(n.value=t.processingStart-t.startTime,n.entries.push(t),n.isFinal=!0,s())},a=o("first-input",i),s=d(t,n,a);a?p(function(){a.takeRecords().map(i),a.disconnect()},!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay(function(t,i){i.timeStamp<e.timeStamp&&(n.value=t,n.isFinal=!0,n.entries=[{entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+t}],s())})},g=function(){return a||(a=new Promise(function(t){return["scroll","keydown","pointerdown"].map(function(n){addEventListener(n,t,{once:!0,passive:!0,capture:!0})})})),a},h=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r("LCP"),a=l(),s=function(t){var e=t.startTime;e<a.timeStamp?(i.value=e,i.entries.push(t)):i.isFinal=!0,n()},u=o("largest-contentful-paint",s);if(u){n=d(t,i,u,e);var c=function(){i.isFinal||(u.takeRecords().map(s),i.isFinal=!0,n())};g().then(c),p(c,!0)}},y=function(t){var n,e=r("TTFB");n=function(){try{var n=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,n={entryType:"navigation",startTime:0};for(var e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n}();e.value=e.delta=n.responseStart,e.entries=[n],e.isFinal=!0,t(e)}catch(t){}},"complete"===document.readyState?setTimeout(n,0):addEventListener("pageshow",n)}}}]);
//# sourceMappingURL=3.13fc0ab5.chunk.js.map