/*! For license information please see getPerformanceMetrics.4798a04804c1313337c5.js.LICENSE.txt */ (self.webpackChunkstreamate_server=self.webpackChunkstreamate_server||[]).push([[8466],{MHSr:(t,e,r)=>{var n;!function(){var o="undefined"!=typeof window&&window===this?this:void 0!==r.g&&null!=r.g?r.g:this,i="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){t!=Array.prototype&&t!=Object.prototype&&(t[e]=r.value)};function a(){a=function(){},o.Symbol||(o.Symbol=c)}var u=0;function c(t){return"jscomp_symbol_"+(t||"")+u++}function s(){a();var t=o.Symbol.iterator;t||(t=o.Symbol.iterator=o.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&i(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return f(this)}}),s=function(){}}function f(t){var e=0;return function(t){return s(),t={next:t},t[o.Symbol.iterator]=function(){return this},t}((function(){return ee||(clearTimeout(t.j),t.j=setTimeout((function(){var e=performance.timing.navigationStart,r=y(t.g,t.b);e=(window.a&&window.a.A?1e3*window.a.A().C-e:0)||performance.timing.domContentLoadedEventEnd-e;if(t.u)var n=t.u;else performance.timing.domContentLoadedEventEnd?n=(n=performance.timing).domContentLoadedEventEnd-n.navigationStart:n=null;var o=performance.now();null===n&&w(t,Math.max(r+5e3,o+1e3));var i=t.a;5e3>o-r?r=null:r=5e3>o-(r=i.length?i[i.length-1].end:e)?null:Math.max(r,n),r&&(t.s(r),clearTimeout(t.j),t.i=!1,t.c&&t.c.disconnect(),t.h&&t.h.disconnect()),w(t,performance.now()+1e3)}),e-performance.now()),t.v=e)}m.prototype.getFirstConsistentlyInteractive=function(){var t=this;return new Promise((function(e){t.s=e,"complete"==document.readyState?g(t):window.addEventListener("load",(function(){g(t)}))}))},m.prototype.m=function(t){this.f.set(t,performance.now())},m.prototype.l=function(t){this.f.delete(t)},m.prototype.B=function(){w(this,performance.now()+5e3)},o.Object.defineProperties(m.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(h(this.f.values()))}}});var b={getFirstConsistentlyInteractive:function(t){return t=t||{},"PerformanceLongTaskTiming"in window?new m(t).getFirstConsistentlyInteractive():Promise.resolve(null)}};t.exports?t.exports=b:void 0===(n=function(){return b}.apply(e,[]))||(t.exports=n)}()},OitA:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>y,getPageName:()=>l});r("hw65"),r("c8Rv"),r("1DZ/"),r("Zw7i"),r("cH/R"),r("wX6V"),r("QtZD"),r("veGK"),r("48PB"),r("NJqh"),r("ia0r"),r("mG41"),r("UqFA"),r("+2O5"),r("sQWU"),r("R65D");var n=r("dUpt"),o=r("MHSr"),i=r.n(o);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function s(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,u,"next",t)}function u(t){s(i,n,o,a,u,"throw",t)}a(void 0)}))}}function l(t){return t.match(/^\/cam\//i)?"cam_page":"/"===t||t.match(/^\/(search|view|browse|page)\//i)?"search_page":"/rewards"===t?"rewards_page":"/signup/register"===t?"signup_register_page":"/signup/options"===t?"signup_options_page":"/signup/verify"===t?"signup_verify_page":"/signup/response"===t?"signup_response_page":void 0}function h(){return p.apply(this,arguments)}function p(){return(p=f(c().mark((function t(){var e,r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"==typeof performance.getEntriesByType){t.next=2;break}return t.abrupt("return");case 2:return e=performance.getEntriesByType("paint"),r=e.find((function(t){return"first-contentful-paint"===t.name})),t.abrupt("return",null==r?void 0:r.startTime);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(){return v.apply(this,arguments)}function v(){return(v=f(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(e=performance)||void 0===e||!e.timing){t.next=2;break}return t.abrupt("return",performance.timing.loadEventEnd-performance.timing.navigationStart);case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(){return m.apply(this,arguments)}function m(){return(m=f(c().mark((function t(){var e,r,o,u,s,f;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l(window.location.pathname)){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,Promise.all([h(),i().getFirstConsistentlyInteractive(),d()]);case 5:r=t.sent,o=a(r,3),u=o[0],s=o[1],f=o[2],u&&n.clientStatsd.timing({key:"page_load_timing.".concat(e,".first_paint"),time:Math.round(u)},void 0,!0),s&&n.clientStatsd.timing({key:"page_load_timing.".concat(e,".time_to_interactive"),time:Math.round(s)},void 0,!0),f&&n.clientStatsd.timing({key:"page_load_timing.".concat(e,".page_load_event"),time:Math.round(f)},void 0,!0);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}}]); //# sourceMappingURL=https://sourcemaps.icfsys.com/streamate.server/getPerformanceMetrics.33adff41cdc1aba0071a0f083a69e37b.js.map