!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("fedopsLogger",[],t):"object"==typeof exports?exports.fedopsLogger=t():e.fedopsLogger=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://static.parastorage.com/services/fedops-logger/5.23.0/",n(n.s=25)}([function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var r={},o=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0!==e?e:"undefined"!=typeof WorkerGlobalScope?WorkerGlobalScope:r};function i(){return"undefined"!=typeof navigator&&navigator&&navigator.sendBeacon}function a(e){return navigator.sendBeacon(e)}}).call(this,n(12))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return c}));var r=n(0);function o(e){return((Object(r.a)().fedops||{}).apps||{})[e]}function i(){Object(r.a)().fedops=Object(r.a)().fedops||{},Object(r.a)().fedops.apps=Object(r.a)().fedops.apps||{}}function a(e){i(),function(e){Object(r.a)().fedops.apps[e]=Object(r.a)().fedops.apps[e]||{}}(e)}function s(e){return(o(e)||{}).startLoadTime||0}function u(e,t){return(o(e)||{}).startLoadTime=t}function c(e){return(Object(r.a)().fedops||{}).sessionId=e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r={policy:"getCurrentConsentPolicy",header:"_getConsentPolicyHeader",isMethod:!0},o={policy:"consentPolicy",header:"consentPolicyHeader",isMethod:!1},i={essential:!0,dataToThirdParty:!0,advertising:!0,functional:!0,analytics:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGlobal=t.getWindowIfTop=t.isBackoffice=t.isWebWorker=t.getHost=t.setHost=void 0;var r,o=n(4);function i(e){if("undefined"!=typeof window&&window)try{return window.top===window.self?e?e(window):window:null}catch(e){return null}return null}t.setHost=function(e){r=e},t.getHost=function(e){void 0===e&&(e=o.DefaultBrand);var t=o.BrandToHostMap[e]||o.BrandToHostMap[o.DefaultBrand];return r||"frog."+t+".com"},t.isWebWorker=function(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope},t.isBackoffice=function(){return i((function(e){var t=e.document;return o.BackofficeDomains.some((function(e){return-1!==t.location.host.indexOf(e)}))}))},t.getWindowIfTop=i,t.getGlobal=function(e,t){return void 0===t&&(t=null),"undefined"!=typeof self&&self&&e(self)||t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCommonConfig=t.DefaultConsentPolicy=t.BrandToHostMap=t.DefaultBrand=t.EventContextMap=t.BackofficeDomains=t.LoggerVersion=void 0,t.LoggerVersion="2.0.875",t.BackofficeDomains=[".wix.com",".editorx.com"],function(e){e.msid="_msid",e.clientId="_client_id",e.uuid="_uuid",e.visitorId="_visitorId",e.siteMemberId="_siteMemberId",e.brandId="_brandId",e.ms="_ms"}(t.EventContextMap||(t.EventContextMap={})),t.DefaultBrand="wix",t.BrandToHostMap={wix:"wix",editorx:"editorx"},t.DefaultConsentPolicy={functional:!0,analytics:!0},t.DefaultCommonConfig={brand:t.DefaultBrand}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Errors=t.EventCategories=t.PublishMethods=void 0,function(e){e.Auto="auto",e.PostMessage="postMessage",e.Fetch="fetch"}(t.PublishMethods||(t.PublishMethods={})),function(e){e.Essential="essential",e.Functional="functional",e.Analytics="analytics"}(t.EventCategories||(t.EventCategories={})),function(e){e[e.Unsupported=0]="Unsupported"}(t.Errors||(t.Errors={}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r,o=n(2);function i(){return window}function a(){return self}function s(){return e}function u(){return globalThis}function c(e){var t;void 0===e&&(e=void 0),e&&(r=e),r||e||([u,s,a,i].forEach((function(e){try{r||(r=e())}catch(e){}})),r=r);try{"object"==typeof r.commonConfig&&r.commonConfig.consentPolicy&&(t=d(r.commonConfig,o.c)),t||"object"!=typeof r.consentPolicyManager||(t=d(r.consentPolicyManager,o.b)),t||"object"!=typeof r.Wix||"object"!=typeof r.Wix.Utils||"function"!=typeof r.Wix.Utils.getCurrentConsentPolicy||(t=d(r.Wix.Utils,o.b))}catch(e){}return t}function d(e,t){return{getCurrentConsentPolicy:function(){var n=e[t.policy];return t.isMethod?n():n},_getConsentPolicyHeader:function(){var n=e[t.header];return t.isMethod?n():n},deleteReference:!t.isMethod}}}).call(this,n(12))},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}();e.exports.defined=function(e,t){if(void 0===e)throw new o(t)},e.exports.object=function(e,t){if(void 0!==e&&("object"!==(void 0===e?"undefined":r(e))||Array.isArray(e)||null===e))throw new o(t)},e.exports.ok=function(e,t){if(!e)throw new o(t)},e.exports.func=function(e,t){if(void 0!==e&&"function"!=typeof e)throw new o(t)},e.exports.AssertionError=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readCookie=t.sendBeacon=t.getWindowSize=t.getDesktopSize=t.now=void 0,t.now=function(){return"undefined"!=typeof performance&&performance&&performance.now?performance.now():-1},t.getDesktopSize=function(e){return(e.screen&&e.screen.width||0)+"x"+(e.screen&&e.screen.height||0)},t.getWindowSize=function(e){var t=0,n=0;return e.innerWidth?(t=e.innerWidth,n=e.innerHeight):e.document&&(e.document.documentElement&&e.document.documentElement.clientWidth?(t=e.document.documentElement.clientWidth,n=e.document.documentElement.clientHeight):e.document.body&&e.document.body.clientWidth&&(t=e.document.body.clientWidth,n=e.document.body.clientHeight)),t+"x"+n},t.sendBeacon=function(e,t){return!("undefined"==typeof navigator||!navigator||!navigator.sendBeacon)&&navigator.sendBeacon(e,t)},t.readCookie=function(e){if("undefined"==typeof document)return null;for(var t=0,n=document.cookie.split(";");t1&&void 0!==arguments[1]?arguments[1]:{};return Promise.all(this._publishers.map((function(r){var o=Object.assign({},e);return Promise.resolve().then((function(){return r(o,Object.assign({},t._context,n))})).catch((function(e){return t._onPublisherFailHandler(e,{publisherName:r.name})}))}))).then((function(){}))}},{key:"_extractEventAndContext",value:function(e,t,n){var r=void 0,i={};if("string"!=typeof e)r=e,i=t||i;else{if(!(r=this._events[e]))throw new o.AssertionError("Event with key '"+e+"' not found in event map.");t&&(r=Object.assign({},r,t),i=n||i)}return{event:r,context:i}}},{key:"_initBuffer",value:function(e){var t=this,n=!0===e?300:e;return this._buffer||(this._buffer=new d(n).onFlush((function(n){var r=s(t._defaults,(function(e){return"function"!=typeof e}));return n.g=r,t._send(n,{useBatch:e})})))}},{key:"_handleDefaultsError",value:function(e){return this._defaultContinueOnFail?(c.error(e),null):Promise.reject(e)}},{key:"_getDefaults",value:function(){var e=this;if(!this._defaults)return Promise.resolve({});var t=a(this._defaults,(function(t,n){if("function"==typeof t)try{t=t()}catch(t){return e._handleDefaultsError(t)}return t&&"function"==typeof t.then?u.timedPromise(t,{message:"Cannot get default value '"+n+" for BI Event'",timeout:e._defaultValueTimeout}).catch((function(t){return e._handleDefaultsError(t)})):t}));return u.allAsObject(t)}}],[{key:"_defaultPublisherFailHandler",value:function(e,t){return t.publisherName}}]),e}();e.exports=p},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n-1};var D={xmlhttprequest:{count:"countXhr",unsupported:"unsprtXhr",duration:"timeXhr",total:"sizeXhr",longest:"longXhr",http2:"h2Xhr"},script:{count:"countJs",unsupported:"unsprtJs",duration:"timeJs",total:"sizeJs",cached:"cachedJs",http2:"h2Js"},link:{count:"countCss",unsupported:"unsprtCss",duration:"timeCss",total:"sizeCss",cached:"cachedCss",http2:"h2Css"},img:{count:"countImg",unsupported:"unsprtImg",duration:"timeImg",total:"sizeImg",cached:"cachedImages",http2:"h2Images"},fetch:{count:"countFetch",unsupported:"unsprtFetch",duration:"timeFetch",total:"sizeFetch",cached:"cachedFetch",http2:"h2Fetch"},other:{count:"countOther",unsupported:"unsprtOther",duration:"timeOther",total:"sizeOther",cached:"cachedOther",http2:"h2Other"}},L={link:function(e){return/(.\.css$|.\.css?.)/g.test(e.name)}},B=function(e){return e.responseEnd-e.startTime};function H(e,t){var n=L[t];return e.filter((function(e){return t===e.initiatorType&&(!n||n(e))}))}function R(e){return!e.name.match(/http(s)?:\/\/frog.wix.com\//)}function W(e){return t=e.name,(n=N())&&-1===t.indexOf(n)&&0===e.transferSize&&0===e.requestStart;var t,n}function U(e){var t=e.filter((function(e){return!W(e)}));return Object.keys(D).reduce((function(n,r){var o=H(e,r),i=H(t,r),a=D[r];return n[a.count]=i.length,n[a.duration]=function(e){if(0===e.length)return 0;var t={startTime:1/0,responseEnd:0};return e.forEach((function(e){t.startTime>e.startTime&&(t.startTime=e.startTime),t.responseEnd=B(e)?t:e}));return B(t)}(i)),a.cached&&(n[a.cached]=function(e){if(0===e.length)return 0;var t=e.filter((function(e){return 0===e.transferSize}));return Math.round(t.length/e.length*100)}(i)),n}),{})}function V(e){return{url:e.name,downloadDuration:e.responseEnd-e.startTime,bytesTransferred:e.transferSize,isHTTP2:"h2"===e.nextHopProtocol}}var J=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.performNetworkAnalysis=function(e){if(0===e.length)return null;var t=S(),n=e.filter(R),r=U(n);r.overhead=S()-t;var o=function(e){return Object.keys(e).reduce((function(t,n){var r=parseInt(e[n]);return isNaN(r)||"number"!=typeof r||(t[n]=r),t}),{})}(r);if(console.debug&&M()){var i=function(e){var t=e.reduce((function(e,t){return W(t)?e.unsupported.push(t):e.supported.push(t),e}),{supported:[],unsupported:[]});return Object.keys(D).reduce((function(e,n){return e[n]={},e[n].supported=H(t.supported,n).map((function(e){return V(e)})),e[n].unsupported=H(t.unsupported,n).map((function(e){return V(e)})),e}),{})}(n);console.debug("[fedops network analysis] [bytes analysis]\n"+JSON.stringify(o,null,4)),console.debug("[fedops network analysis] [resources breakdown]\n",i)}return o},r}(A),z=Object.keys(D).reduce((function(e,t){return e.concat(Object.values(D[t]))}),[]),G=function(){function e(e){var t=this;void 0===e&&(e=null),this.items=[],e&&(void 0===e.length?[e]:e).forEach((function(e){return t.addItem(e)}))}var t=e.prototype;return t.clone=function(){return new e(this.items.slice())},t.addItem=function(e){return this.items.push(e instanceof A?e:new A(e)),this},t.mergeItems=function(){for(var e={},t=0;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);no&&e.startTime+e.duration0){var r=JSON.stringify(t);e.addItem(this.dataItems.customParams(r))}},o.appLoaded=function(t){var n=void 0===t?{}:t,r=n.appId,o=n.customParams,i=n.paramsOverrides;if(!(r&&this._appLoadedCalled[r]||!r&&this._appLoadedCalled[this.appName])){e._clearLoadTimeout(),e._markAndMeasureAppLoad(this.appName),this._appLoadedCalled[r||this.appName]=!0,this._sendLastAppLoadPhaseIfNeeded(),this.reportNetworkAnalysis({appId:r});var a=this.dataSource.addItem(this.dataItems.biAppLoadFinish()).addItem(this.dataItems.appContext({appId:r||this.appId,widgetId:this.widgetId,isServerSide:this.isServerSide})).addItem(this.dataItems.duration(this._times.getAppLoadTime({appId:r})).setFirstRequestDuration(this._times.getFirstRequestDuration())).addItem(this._getDataItemWithDefaultParamsOverrides({appName:r})).addItem(this.dataItems.dataItem(i));return r&&this._changeAppNameForEvent(a,r),this._shouldAddCustomParams(o)&&this._addCustomParamsToEvent(a,o),this._report(a,this._getEndpoint())}},o.appLoadingPhaseStart=function(e,t){var n=void 0===t?{}:t,r=n.appId,o=n.widgetId,i=n.paramsOverrides;this.loadingPhases.createCodeParsingPhaseIfNotExist({appId:r,widgetId:o}),this.loadingPhases.saveLoadingPhase({name:e,appId:r,widgetId:o}),this._sendPreviousPhaseIfNeeded(e,{appId:r,widgetId:o,paramsOverrides:i}),x("[fedops] "+e+" started"),x("[fedops] phase:"+e+" "+r+(o?" "+o:"")+" started");var a=this.dataSource.addItem(this.dataItems.biLoadPhaseStart()).addItem(this.dataItems.appContext({appId:r,widgetId:o})).addItem(this.dataItems.loadingPhaseStart({name:e})).addItem(this._getDataItemWithDefaultParamsOverrides({appName:r})).addItem(this.dataItems.dataItem(i));r&&this._changeAppNameForEvent(a,r),this._report(a,this._getEndpoint())},o._changeAppNameForEvent=function(e,t){e.addItem(this.dataItems.appName({appName:t,isServerSide:this.isServerSide}))},o._sendPreviousPhaseIfNeeded=function(e,t){var n=void 0===t?{}:t,r=n.appId,o=n.widgetId,i=n.paramsOverrides,a=this.loadingPhases.getPhasePreviousTo({name:e,appId:r,widgetId:o});if(this.phasesConfig===ae.SEND_ON_START||a&&"code-parsing-phase"===a.name){x("[fedops] "+a.name+" finished");var s=this.dataItems.loadingPhaseFinish(a),u=this.dataItems.biLoadPhaseFinish(),c=this.dataItems.dataItem(i),d=this.dataSource.addItem(s).addItem(u).addItem(this._getDataItemWithDefaultParamsOverrides({appName:r})).addItem(c);this._report(d)}},o.appLoadingPhaseFinish=function(e,t){var n=void 0===t?{}:t,r=n.appId,o=n.widgetId,i=n.widgetArray,a=n.paramsOverrides;if(this.phasesConfig===ae.SEND_ON_START)throw new Error('To use appLoadingPhaseFinish you must use "phasesConfig: SEND_START_AND_FINISH" setting');x("[fedops] "+e+" finished"),x("[fedops] phase:"+e+" "+r+(o?" "+o:"")+" finished");var s=this.loadingPhases.getAppLoadingPhaseData({name:e,appId:r,widgetId:o});if(!s)throw new Error("Cannot report end of a phase that wasn't started. Phase "+e+" doesn't exist");var u=this.dataItems.loadingPhaseFinish(s),c=this.dataItems.biLoadPhaseFinish(),d=this._getDataItemWithDefaultParamsOverrides({appName:r}),p=this.dataItems.dataItem(a),f=this.dataItems.appContext({appId:r,widgetId:o,widgetArray:i,isServerSide:this.isServerSide}),h=this.dataSource.addItem(u).addItem(c).addItem(f).addItem(d).addItem(p);return r&&this._changeAppNameForEvent(h,r),this._report(h,this._getEndpoint())},o._getEndpoint=function(){return this.isPersistent?this._preset.persistentEndpoint:this._preset.nonPersistentEndpoint},o._getDataItemWithDefaultParamsOverrides=function(e){var t=(void 0===e?{}:e).appName,n=void 0===t?null:t;return this.dataItems.dataItem(de(de({},this._cookiesParamsOverrides.getCookieOverridesForApp(n||this.appName)),this._constructorParamsOverrides))},o._sendLastAppLoadPhaseIfNeeded=function(){var e=this.loadingPhases.getNextPhaseToReport();this.phasesConfig===ae.SEND_ON_START&&e&&"code-parsing-phase"!==e.name&&this._report(this.dataSource.addItem(this.dataItems.loadingPhaseFinish(e)).addItem(this.dataItems.biLoadPhaseFinish()))},e._clearLoadTimeout=function(){Object(g.a)()&&Object(g.a)().fedops&&"function"==typeof Object(g.a)().fedops.clearLoadTimeout&&Object(g.a)().fedops.clearLoadTimeout()},o.clearResourceTimings=function(){w()},e._markAppLoadStarted=function(e){x("[fedops] "+e+" app-load-started")},e._markAndMeasureAppLoad=function(e){x("[fedops] "+e+" app-loaded");try{j("[fedops] "+e+" app-loaded","[fedops] "+e+" app-load-started","[fedops] "+e+" app-loaded")}catch(e){}},o._markInteractionStarted=function(e){x("[fedops] "+this.appName+" interaction "+e+" started")},o._markAndMeasureInteractionEnded=function(e,t){if(t){x("[fedops] "+this.appName+" interaction "+e+" ended");try{j("[fedops] "+e+" duration","[fedops] "+this.appName+" interaction "+e+" started","[fedops] "+this.appName+" interaction "+e+" ended")}catch(e){}}},o.interactionStarted=function(e,t){var n=this,r=void 0===t?{}:t,o=r.timeOverride,i=r.interactionTimeout,a=r.startHook,s=r.timeoutHook,u=r.customParams,c=r.paramsOverrides;this._markInteractionStarted(e);var d=this.dataSource.addItem({name:e}).addItem(this.dataItems.biInteractionStart()).addItem(this._getDataItemWithDefaultParamsOverrides()).addItem(this.dataItems.dataItem(c));return this._shouldAddCustomParams(u)&&this._addCustomParamsToEvent(d,u),this._outgoingInteractions[e]={timestamp:o||S(),timeout:i||this.interactionTimeout},this._report(d),me(a||this.startHook,{name:e}),{timeoutId:function(){if(i||n.interactionTimeout)return setTimeout((function(){var t=n.dataSource.addItem({interactionName:e}).addItem({errorType:"timeout"}).addItem(n.dataItems.biError());n._report(t),me(s||n.timeoutHook,{name:e,timeout:i||n.interactionTimeout})}),i||n.interactionTimeout)}()}},o.interactionEnded=function(e,t){var n=void 0===t?{}:t,r=n.timeOverride,o=n.timeoutId,i=n.endHook,a=n.customParams,s=n.paramsOverrides,u=this._outgoingInteractions[e];this._markAndMeasureInteractionEnded(e,u),o&&clearTimeout(o);var c=this._outgoingInteractions[e]||this._getInteractionFromWindowIfPresent(e),d=r||S(),p=c?Math.floor(d-c.timestamp):"";me(i||this.endHook,{name:e,duration:p,timeout:this._outgoingInteractions[e]&&this._outgoingInteractions[e].timeout});var f=this.dataSource.addItem({name:e}).addItem({duration:p}).addItem(this.dataItems.biInteractionEnd()).addItem(this._getDataItemWithDefaultParamsOverrides()).addItem(this.dataItems.dataItem(s));this._shouldAddCustomParams(a)&&this._addCustomParamsToEvent(f,a),delete this._outgoingInteractions[e],this._report(f)},o._getInteractionsObjectFromWindow=function(){var e,t,n,r;return(null==(e=Object(g.a)())||null==(t=e.fedops)||null==(n=t.apps)||null==(r=n[this.appName])?void 0:r.interactions)||{}},o._getInteractionFromWindowIfPresent=function(e){return this._getInteractionsObjectFromWindow()[e]},o.flush=function(){this.reporter.flush()},o._handleBlackboxPageTransitionMeasurement=function(e){this._sendBlackboxMeasurement(e)},o._handleBlackboxPerformance=function(e){var t=this,n=Object(g.a)(),r=n.wixPerformanceMeasurements,o=e&&e.length,i=e&&e.entryType;o?this._handleBlackboxPerformanceEntries(e):i?this._handleBlackboxPageTransitionMeasurement(e):(n.addEventListener&&(n.addEventListener("wixPerformanceMeasurements",(function(e){return t._handleBlackboxPerformance(e.detail)})),n.addEventListener("wixPageMeasurements",(function(e){return t._handleBlackboxPerformance(e.detail)}))),r&&this._handleBlackboxPerformanceEntries(r))},o._sendBlackboxMeasurement=function(e){var t=this.dataItems.biBlackbox(e),n=this.dataItems.blackboxPerformance(e);if(t){var r=(new G).addItem(t).addItem(n);this._report(r,"bpm")}},o._handleBlackboxPerformanceEntries=function(e){var t=this;e.forEach((function(e){e.then&&e.then((function(e){return t._sendBlackboxMeasurement(e)}))}))},o.getLoggerForWidget=function(t){var n=t.appName,r=t.appId,o=t.widgetId,i=t.version,a=t.timeoutHook,s=t.startHook,u=t.endHook,c=t.useGlobalLogger,d=t.paramsOverrides,p=t.phasesConfig;return new e(n||r+"_"+o,i||this.getAppVersion(),c?this.reporter:I({biLoggerFactory:this.reporter._factory,preset:this._preset}),{isServerSide:this.isServerSide,appId:r,widgetId:o,sessionId:this.sessionId,phasesConfig:p||ae.SEND_ON_START,isPersistent:this.isPersistent,timeoutHook:a,startHook:s,endHook:u,customParams:this._customParams,presetType:this._presetType,paramsOverrides:d})},o._getUnReportedErrorFlows=function(e){var t=this;return e.filter((function(e){return!t._firstErrorFiredInFlow[e]}))},o.reportErrorThrownOncePerFlow=function(){var e=this,t=this._getFlowsOfError(),n=this._getUnReportedErrorFlows(t);n.length&&n.forEach((function(t){e._firstErrorFiredInFlow[t]=!0;var n=e.dataSource.addItem({interactionName:t}).addItem(e.dataItems.biError());e._report(n)}))},o._errorHappenedInOneOfAppLoadFlows=function(){return this._errorHappenedInAppLoadFlow()||this._errorHappenedInAppLoadingPhasesFlow()},o._errorHappenedInAppLoadFlow=function(){var e=this._getAppLoadStartedIndication(),t=this._getAppLoadedIndication();return e&&!t},o._getAppLoadStartedIndication=function(){var e,t="[fedops] "+this.appName+" app-load-started",n=null==(e=T(t))?void 0:e[0],r=this._times.getLoadStartTime();return n||r},o._getAppLoadedIndication=function(){var e,t="[fedops] "+this.appName+" app-loaded";return(null==(e=T(t))?void 0:e[0])||this._appLoadedCalled[this.appName]},o._errorHappenedInAppLoadingPhasesFlow=function(e){for(var t,n=(void 0===e?{appId:this.appName}:e).appId,r=this._getAppLoadingPhaseMarksForApp({appId:n}),o=fe(this._getPhaseNamesFromMarks(r));!(t=o()).done;){var i=t.value,a=this._getTimesOfPhase({phaseName:i,appPhasesMarks:r,appId:n}),s=a.startMarkTime,u=a.finishMarkTime;if(s&&!u)return!0}return!1},o._getFlowsOfError=function(){var e=this._errorHappenedInOneOfAppLoadFlows()?["app-load"]:[];return[].concat(e,this._getInteractionNamesWhereErrorHappened())},o._getInteractionNamesWhereErrorHappened=function(){var e=this._getInteractionNamesWhereErrorHappenedFromInstance();if(e.length)return e;var t=Object.keys(this._getInteractionsObjectFromWindow());return t.length?t:this._getInteractionNamesWhereErrorHappenedFromPerformanceMarks()},o._getInteractionNamesWhereErrorHappenedFromInstance=function(){return Object.keys(this._outgoingInteractions)},o._getInteractionNamesWhereErrorHappenedFromPerformanceMarks=function(){var t=this._getInteractionMarksOfCurrentApp();return e._getInteractionsThatDidntEndFromMarks(t)},o._getInteractionMarksOfCurrentApp=function(){var e=this;return O().reduce((function(t,n){var r=function(e){var t=Q.exec(e);if(t)return{appName:t[1],interactionName:t[2]}}(n.name);return r&&r.appName===e.appName&&(t[r.interactionName]=t[r.interactionName]||[],t[r.interactionName].push({startTime:n.startTime,name:n.name})),t}),{})},e._getInteractionsThatDidntEndFromMarks=function(t){var n=[];for(var r in t)if(t.hasOwnProperty(r)){var o=e._countStartedEndedInteractionMarks(t[r]),i=o.startedInteractions,a=o.endedInteractions;(!i&&!a||i-a!=0)&&n.push(r)}return n},e._countStartedEndedInteractionMarks=function(e){var t=0,n=0;return e.forEach((function(e){e.name.includes("started")?t++:e.name.includes("ended")&&n++})),{startedInteractions:t,endedInteractions:n}},t=e,(n=[{key:"dataSource",get:function(){return this.dataSourceBase.clone()}},{key:"sessionId",get:function(){return this.getParam("sessionId")},set:function(e){this.params.sessionId=e}}])&&le(t.prototype,n),r&&le(t,r),e}();function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t