// source --> https://rotlichtadresse.de/wp-content/plugins/baqend/js/speed-kit-install.js 
(function(){var speedKit={appName:"red-dragon-65",sw:"https://rotlichtadresse.de/speed-kit-sw.js",scope:"https://rotlichtadresse.de/",rumTracking:false,disabled:false,userAgentDetection:false,enabledSites:[{pathname:[/^((?!\/wp-admin\/).)*$/]}],whitelist:[{url:["rotlichtadresse.de","fonts.googleapis.com","fonts.gstatic.com","maxcdn.bootstrapcdn.com"],contentType:["document","image","script","style","font","track"]}],blacklist:[{url:["rotlichtadresse.de/wp-json","rotlichtadresse.de/wp-login","rotlichtadresse.de/login","rotlichtadresse.de/wp-content/plugins/baqend",/\.pdf/,/\.gif[?&]/]},{contentType:["video"]},{pathname :/[?&](_=1\d{12})/},{cookie:["wordpress_logged_in","twostep_auth","comment_","woocommerce_cart","woocommerce_items"],contentType:["document"]}],stripQueryParams:[{params:["utm_","msclkid","gclsrc","fbclid","dclid","cjid","gclid"]}],image:{quality:85,webp:true,pjpeg:true},fetchOriginInterval:1440};!function(e,t,n,r,i,o,a){"use strict";var s="baqend-speedkit",c="".concat(s,"-store"),u="".concat(s,"-user-id"),d="".concat(s,"-session-id"),l="".concat(s,"-session-index"),p="".concat(s,"-session-timestamp"),f="".concat(s,"-config"),g="".concat(s,"-secondary-config"),h="".concat(s,"-sk-opt-out"),v="".concat(s,"-rum-opt-out"),m="".concat(s,"-rum-split-enabled"),y="".concat(s,"-hashing-salt"),S="".concat(s,"-debug-config-hash"),w="".concat(s,"-session-authToken"),b="".concat(s,"-bypass-deactivation-toggle");function k(e,t,n,r){return Promise.resolve(e).then((function(e){return new Promise((function(i,o){var a=e.transaction(t,n),s=Promise.resolve(r(a.objectStore(t)));a.oncomplete=function(){return s.then(i)},a.onabort=a.onerror=function(){return o(a.error)}}))}))}function T(e,t,n){return k(e,t,"readwrite",n)}function C(e,t){if(!t||"/"===t)return e;var n="".concat(t.lastIndexOf("/")===t.length-1?t.substr(0,t.length-1):t),r="".concat(0===e.indexOf("/")?"":"/").concat(e);return"".concat(n).concat(r)}var N=function(){function e(e){this.dbp=null,this.cacheName=C(s,e),this.dbp=this.openDb()}return e.prototype.get=function(e){return(t=this.db(),n=c,r=function(t){return t.get(e)},k(t,n,"readonly",r)).then((function(e){return e.result||null}));var t,n,r},e.prototype.set=function(e,t){return T(this.db(),c,(function(n){return n.put(t,e)&&void 0}))},e.prototype.clear=function(){return Promise.all([(e=this.db(),t=c,T(e,t,(function(e){return e.clear()})).then((function(){})))]).then((function(){}));var e,t},e.prototype.disconnect=function(){var e=this;return null===this.dbp?Promise.resolve():this.dbp.then((function(t){e.dbp=null,t.close()}))},e.prototype.db=function(){return null===this.dbp&&(this.dbp=this.openDb()),this.dbp},e.prototype.openDb=function(){var e=this,t=indexedDB.open(this.cacheName,1);return t.onupgradeneeded=function(e){var n=e.oldVersion,r=t.result;if(n<1){if(!r)return;try{r.createObjectStore(c)}catch(i){}}},this.openRequest(t).then((function(t){return t.onclose=function(){e.dbp=null},t.onerror=function(){e.dbp=null},t.onversionchange=function(n){n.newVersion||(e.dbp=null,t.close())},t}))},e.prototype.openRequest=function(e){return new Promise((function(t,n){e.onsuccess=function(){return t(e.result)},e.onerror=function(){return n(e.error)},e.onblocked=function(){return n(e.error)}}))},e}();!function(){function e(){this.map=new Map}e.prototype.get=function(e){return Promise.resolve(this.map.get(e)||null)},e.prototype.set=function(e,t){return this.map.set(e,t),Promise.resolve()},e.prototype.clear=function(){return this.map.clear(),Promise.resolve()}}();function P(t){"complete"!==e.readyState?window.addEventListener("load",(function(){return t()})):t()}function O(t){"loading"===e.readyState?e.addEventListener("DOMContentLoaded",(function(){return t()})):setTimeout(t,0)}function E(t){e.querySelector("html.speed-kit-dynamic-loaded")?setTimeout(t,0):e.addEventListener("speed-kit-loaded",(function(){return t()}))}function I(e){return void 0===e&&(e=25),function(e){var t=[];t.length=e;var n=0;for(;n<e;)t[n]=0,n+=1;return t}(e).map((function(){return Math.floor(62*Math.random())})).map((function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"[e]})).join("")}var R=75e3;function L(e,t,n,r){var i=e.events;for(i.sort((function(e,t){return JSON.stringify(t).length-JSON.stringify(e).length}));r>t&&i.length>0;){var o=i.shift();r=JSON.stringify(e).length;var a=o&&"string"==typeof o.action?"events.".concat(o.action):"events";-1===n.indexOf(a)&&n.push(a)}return r>t&&0===i.length&&(delete e.events,r=JSON.stringify(e).length),r}function D(e,n){var r=function(e,t){void 0===t&&(t=R);var n=JSON.stringify(e),r=n.length;if(r<=t)return[e,n];var i=[],o=[];Object.keys(e).forEach((function(t){var n=JSON.stringify(e[t]);i.push({name:t,size:n.length})})),i.sort((function(e,t){return t.size-e.size}));for(var a=0;r>t&&i[a];)"events"===i[a].name&&Array.isArray(e.events)?(r=L(e,t,o,r),a+=1):(delete e[i[a].name],r-=i[a].size,o.push(i[a].name),a+=1);return e.truncatedKeys=o,[e,JSON.stringify(e)]}(n),i=r[0],o=r[1];try{if(t.sendBeacon&&t.sendBeacon(e,o))return}catch(c){}i.xhrFallback=!0;var a=JSON.stringify(i),s=new XMLHttpRequest;s.open("POST",e,!0),s.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),s.send(a)}function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={};return e.forEach((function(e){Object.keys(e).forEach((function(t){return n[t]=e[t]}))})),n}function K(e,t){if("undefined"!=typeof Storage)try{localStorage.setItem(e,t)}catch(n){}}var U,x=[u,f];function B(e){var t=null;if("undefined"!=typeof Storage)try{t=localStorage.getItem(e)}catch(n){}return t}function F(){return!("1"!==B(h)&&!window.deactivateSpeedKit)}function H(t,n){if(!(F()||(K(t,n),SpeedKit.trackingOptionsProvider.getTrackingOptions().noCookies||x.indexOf(t)<0))){var i=r.cookieLifetime||180,o=new Date(Date.now()+24*i*60*60*1e3).toUTCString();try{e.cookie="".concat(t,"=").concat(n,"; expires=").concat(o,"; path=/; SameSite=Lax; Secure")}catch(a){}}}function j(t,n){void 0===n&&(n=!0);var r=B(t),i=function(t){try{var n=new RegExp("".concat(t,"=([^,;]*)")),r=e.cookie.match(n);return r&&r[1]?r[1]:null}catch(i){}return null}(t),o=function(e){if(null===e||"null"===e||""===e||"[object Object]"===e)return!1;if(/^-?\d+(\.\d+)?$/.test(e))return!0;try{var t=decodeURIComponent(e);return JSON.parse(t),!0}catch(r){var n=/^[a-zA-Z0-9\s]+$/.test(e);return n||V(r,U.SNIPPET),n}}(r)?r:i;return o&&r!==i&&n&&H(t,o),o}function G(e){return void 0===e&&(e=!0),j(u,e)||I()}function M(e){return"reason"in e}!function(e){e.SNIPPET="snippet",e.CONFIG="skConfig",e.RUMPLUGIN="rum",e.CUSTOMPLUGIN="customPlugin",e.JSTRACKINGPLUGIN="js",e.DFCONFIG="dfConfig",e.MERGE="merge",e.CHANGEDETECTION="cd",e.DYNAMICFETCHER="df",e.SSR="ssr",e.BLOCKINGNOTRELEASED="blockingScriptNotReleased",e.MAINNOTMERGED="mainNotMerged",e.BODYMERGEABORTED="bodyMergeAborted",e.SERVICEWORKER="sw",e.SLOWCHUNK="slowChunk",e.CONFIGPLUGIN="configPlugin"}(U||(U={}));var W=function(){function e(){this.maxErrors=10,this.errorHandlers={},this.trackedErrors=new Set}return e.prototype.registerContext=function(e,t,n){void 0===n&&(n=!1),this.errorHandlers[e]&&!n||(this.errorHandlers[e]=t)},e.prototype.isContextRegistered=function(e){return Object.prototype.hasOwnProperty.call(this.errorHandlers,e)},e.getInstance=function(){return window.SpeedKit=window.SpeedKit||{},window.SpeedKit.errorService||(window.SpeedKit.errorService=new e),window.SpeedKit.errorService},e.prototype.processError=function(e,t,n,r,i){if(void 0===r&&(r=!1),this.errorHandlers[n]){var o=this.getErrorInfo(e,t,n,i);this.shouldTrackError(o,r)&&this.errorHandlers[n](o)}},e.prototype.getErrorInfo=function(e,t,n,r){var i,o={timestamp:null!==(i=null==e?void 0:e.timeStamp)&&void 0!==i?i:performance.now(),type:t,message:"",stackTrace:"null"};if(this.isErrorLike(e)){var a=M(e)?e.reason.message||JSON.stringify(e.reason):e.message;o.message=a,o.stackTrace=M(e)?e.reason.stack:e.stack||"null"}return"snippet"===n&&(o.message="Install.js: ".concat(o.message)),r&&(o.message=r),o},e.prototype.shouldTrackError=function(e,t){var n=this.generateErrorKey(e),r=this.trackedErrors.has(n),i=this.trackedErrors.size>=this.maxErrors;return!(r||i&&!t)&&(this.trackedErrors.add(n),!0)},e.prototype.generateErrorKey=function(e){var t=e.stackTrace.match(/:(\d+):(\d+)/),n="";if(t){var r=t[1],i=t[2];n="-".concat(r,"-").concat(i)}return"".concat(e.message,"-").concat(e.type).concat(n)},e.prototype.isErrorLike=function(e){return!!e&&"object"==typeof e&&null!==e&&("reason"in e||"message"in e)},e}();function V(e,t){var n=W.getInstance();n.isContextRegistered("snippet")||n.registerContext("snippet",J),n.processError(e,t,"snippet")}function q(e,t,n){z("events",[{action:"".concat(e),label:"".concat(t),value:isNaN(Number(n))?0:Number(n),ts:performance.now()}])}function J(e){!function(){if(!window.SpeedKit||!window.SpeedKit.track){var e=SpeedKit.trackingOptionsProvider.shouldSendTracking()&&!SpeedKit.trackingOptionsProvider.getTrackingOptions().performanceOnly;window.SpeedKit=window.SpeedKit||{},window.SpeedKit.navigateId=window.SpeedKit.navigateId||"".concat(I(32)),window.SpeedKit.group=window.SpeedKit.group||"sk",window.SpeedKit.track=q,e&&(window.SpeedKit.userId=window.SpeedKit.userId||G())}}(),z("jsErrors",[e])}function z(e,t){if(SpeedKit.trackingOptionsProvider.shouldSendTracking()){var n={userId:SpeedKit.userId},i={piId:SpeedKit.navigateId,testGroup:SpeedKit.group};i[e]=t;var o=SpeedKit.trackingOptionsProvider.getTrackingOptions().performanceOnly?i:A(i,n),a="https://".concat(r.appDomain||"{}.app.baqend.com".replace("{}",r.appName),"/v1");D("".concat(a,"/rum/pi"),o)}}var Q,$=function(){function e(e){this.dataLayerEventListeners=[],this.dataLayerUpdateListeners=[],this.observedDataLayerEvents=[],this.seenIndices=[],this.dataLayerName=e}return e.prototype.onDataLayer=function(e){var t=this;this.dataLayerEventListeners.length||this.observeDataLayer((function(e,n){var r,i,o=window[t.dataLayerName];if(n&&(r=t.seenIndices).push.apply(r,n),Object.keys(o).filter((function(e){return!isNaN(Number(e))&&-1===t.seenIndices.indexOf(e)})).forEach((function(n){e.push(o[Number(n)]),t.seenIndices.push(n)})),e.length){(i=t.observedDataLayerEvents).push.apply(i,e);for(var a=0,s=t.dataLayerEventListeners;a<s.length;a++){var c=s[a];t.emitEventsToObserver(e,c)}}})),this.dataLayerEventListeners.push(e),this.emitEventsToObserver(this.observedDataLayerEvents,e)},e.prototype.emitEventsToObserver=function(e,t){for(var n=function(e){if(!e)return"continue";setTimeout((function(){return t(e)}))},r=0,i=e;r<i.length;r++){n(i[r])}},e.prototype.observeDataLayer=function(e){var t=this;this.onDataLayerReady((function(n){var r=n.push;n.push=function push(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=n.length,a=Array.prototype.slice.call(t),s=r.apply(n,a),c=Object.keys(n).filter((function(e){return!isNaN(Number(e))&&Number(e)>=o})),u=Math.round(performance.now()),d=a.map((function(e){var t;try{if("structuredClone"in window)return(t=window.structuredClone(e)).bqTs=u,t;(t="length"in e?Array.from(e):JSON.parse(JSON.stringify(e))).bqTs=u}catch(n){}return t||e}));return e(d,c),s},t.seenIndices=Object.keys(n).filter((function(e){return!isNaN(Number(e))})),e(n)}))},e.prototype.onDataLayerReady=function(e){this.dataLayerUpdateListeners.length||this.startDataLayerObserver(),this.dataLayerUpdateListeners.push(e);var t=window[this.dataLayerName];t&&e(t)},e.prototype.startDataLayerObserver=function(){var e=this,t=Object.getOwnPropertyDescriptor(window,this.dataLayerName),n=this.dataLayerUpdateListeners,r=window[this.dataLayerName],i=function(e){var t=r!==e;r=e,t&&e&&setTimeout((function(){n.forEach((function(t){return t(e)}))}))};if(!t||t.configurable)try{Object.defineProperty(window,this.dataLayerName,{configurable:!0,enumerable:!0,get:function(){return r},set:function(e){i(e)}})}catch(o){V(o,U.SNIPPET)}else setInterval((function(){i(window[e.dataLayerName])}),500)},e}(),Y=function(){function e(e){this.rumController=e,this.triggerFunctions={domInteractive:this.rumController.onDOMInteractive,load:this.rumController.onLoad,speedKitLoaded:this.rumController.onSpeedKitLoaded,dataLayer:this.rumController.onDataLayer.bind(this.rumController),dataLayerReady:this.rumController.onDataLayerReady.bind(this.rumController),visibilityHidden:this.rumController.onVisibilityHidden,dfDataReady:this.rumController.onDfDataReady,leavePage:this.rumController.onLeavePage.bind(this.rumController),gaReady:this.rumController.onGaReady.bind(this.rumController),gaTracking:this.rumController.onGaTracking.bind(this.rumController),click:this.rumController.onClick,nextTick:this.rumController.onNextTick,bfCacheNavigation:this.rumController.onBFCacheNavigation,navigation:this.rumController.onNavigation,scrollEnd:this.rumController.onScrollEnd.bind(this.rumController),piTimeout:this.rumController.onPiTimeout.bind(this.rumController)}}return e.prototype.initPlugin=function(e){var t=this;if(e.shouldExecute)try{if(!e.shouldExecute())return}catch(i){V(i,this.determineErrorType(e))}e.type||(e.type="Data");"string"==typeof e.on?e.on=this.triggerFunctions[e.on]||this.getUnknownTriggerFunction(e.on):e.on=e.on||function(e){return e()};var n=this.generateCallbackFunction(e);if("SoftNavigation"===e.type){var r=n;n=function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];(e=t.rumController).triggerSoftNavigation.apply(e,n),r.apply(void 0,n)}}try{e.on(n,this.rumController)}catch(i){V(i,this.determineErrorType(e))}},e.prototype.generateCallbackFunction=function(e){var t=this;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e.track){var i=[t.rumController].concat(n);try{e.track.apply(e,i)}catch(c){V(c,t.determineErrorType(e))}}else if(e.key&&(e.set||e.append||e.setTiming)){var o,a=t.getControllerFunction(e),s=t.getTrackingFunction(e);try{o=s.apply(e,n)}catch(c){V(c,t.determineErrorType(e))}null!=o&&a.call(t.rumController,e.key,o)}}},e.prototype.getControllerFunction=function(e){return e.setTiming?this.rumController.setTiming:e.set?this.rumController.set:this.rumController.append},e.prototype.getTrackingFunction=function(e){return e.setTiming||e.set||e.append},e.prototype.getUnknownTriggerFunction=function(e){var t=this,n=function(r){null!==t.resolvePluginVariable(e)?r():setTimeout((function(){return n(r)}),200)};return n},e.prototype.resolvePluginVariable=function(e){for(var t=e.replace(/\[(\w+)\]/g,".$1"),n=(t=t.replace(/^\./,"")).split("."),r=window,i=0,o=n;i<o.length;i++){var a=o[i];if("object"!=typeof r||null==r)break;r=r[a]}return r||null},e.prototype.determineErrorType=function(e){return Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")?U.CUSTOMPLUGIN:U.RUMPLUGIN},e}();function Z(t){e.addEventListener("visibilitychange",(function(){"hidden"===e.visibilityState&&t()}),!0)}function _(t){SpeedKit&&SpeedKit.dynamicBlocks&&SpeedKit.dynamicBlocks.complete&&SpeedKit.dynamicBlocks.dataComplete||!e.querySelector("html.speed-kit-dynamic-loading")?setTimeout(t,0):e.addEventListener("dynamic-fetcher-data-ready",(function(){return t()}))}function X(e){var t=new URL(e.sw||"/sw.js",location.origin);return t.origin+t.pathname}function ee(e,t){var n=t.scriptURL;if(!n)return!1;var r=X(e);if(r===n.split("?")[0])return!0;var i=new URL(n).searchParams.get("othersw");return!!i&&r===i.split("?")[0]}function te(e){return!!e&&!(e.scriptURL&&!ee(r,e))}function ne(e){if(r.fetchInUnload&&"serviceWorker"in t){var i=t[n].controller;if(i&&te(i)){var o="https://".concat(r.appDomain||"{}.app.baqend.com".replace("{}",r.appName),"/v1");D("".concat(o,"/speedkit/signals?").concat("isUnloadPhase","=").concat(e),{}),i.postMessage({type:"page-unload",isUnloadPhase:e})}}}!function(e){e.softNavigation="softNavigation",e.pagehide="pagehide",e.visibilityChange="visibilityChange",e.beforeunload="beforeunload",e.unload="unload",e.timeout="timeout"}(Q||(Q={}));var re=function(){function t(){this.callbacks=[],this.unloaded=!1,this.communicatedUnloadFlag=!1}return t.prototype.init=function(){var t=this;this.registerUnloadCommunication(),e.addEventListener("visibilitychange",(function(){"hidden"===e.visibilityState&&t.triggerLeavePage(Q.visibilityChange)})),"onpagehide"in window?window.addEventListener("pagehide",(function(){t.triggerLeavePage(Q.pagehide),SpeedKit.rumController.clearAllPiTimeouts()})):(window.addEventListener("beforeunload",(function(){return t.triggerLeavePage(Q.beforeunload)})),window.addEventListener("unload",(function(){return t.triggerLeavePage(Q.unload)})))},t.prototype.onLeavePage=function(e){this.callbacks.push(e)},t.prototype.executeRemainingCallbacks=function(e){if(!this.unloaded)for(var t=0,n=this.callbacks;t<n.length;t++){(0,n[t])(e)}},t.prototype.registerUnloadCommunication=function(){var t=this;e.addEventListener("visibilitychange",(function(){"hidden"===e.visibilityState?t.communicateUnloadFlag(!0):"visible"===e.visibilityState&&t.unloaded&&(t.unloaded=!1,t.communicateUnloadFlag(!1))}),{capture:!0}),window.addEventListener("beforeunload",(function(){return t.communicateUnloadFlag(!0)}),{capture:!0}),"onpagehide"in window?window.addEventListener("pagehide",(function(){return t.communicateUnloadFlag(!0)}),{capture:!0}):window.addEventListener("unload",(function(){return t.communicateUnloadFlag(!0)}),{capture:!0})},t.prototype.communicateUnloadFlag=function(e){this.communicatedUnloadFlag!==e&&(this.communicatedUnloadFlag=e,ne(e))},t.prototype.triggerLeavePage=function(e){var t=SpeedKit;this.executeRemainingCallbacks(e),it(t,e),e!==Q.softNavigation&&e!==Q.timeout&&(this.unloaded=!0)},t.prototype.isUnloaded=function(){return this.unloaded},t}(),ie=function(){function e(){this.gaObserver=[]}return e.prototype.onGaTracking=function(e){if(!this.gaObserver.length){var t=this.gaObserver;this.observeGa((function(e){for(var n=0,r=t;n<r.length;n++){r[n].apply({},e)}}))}this.gaObserver.push(e)},e.prototype.onGaReady=function(e){O(this.waitForGa.bind(this,e))},e.prototype.observeGa=function(e){O(this.initGa.bind(this,e))},e.prototype.initGa=function(e){var t=this;this.waitForGa((function(){window.ga.getAll().forEach((function(n){var r=n.get("sendHitTask");n.set("sendHitTask",(function(n){r.call(t,n),e.call(t,n)}))}))}))},e.prototype.waitForGa=function(e){var t=this,n=window.ga;n?n((function(){return e()})):setTimeout((function(){return t.waitForGa(e)}),500)},e}();function oe(e){return e.className?"object"==typeof e.className?e.className.animVal.toString():e.className:""}function ae(e){return e.getAttribute("formAction")||e.getAttribute("action")||e.getAttribute("href")||e.getAttribute("src")||e.getAttribute("code")||e.getAttribute("codebase")||""}function se(e){window.addEventListener("click",(function(t){if(t.isTrusted){var n,r=t.target;r&&e({element:n=r,elementClasses:oe(n),elementId:n.getAttribute("for")||n.id||"",elementTarget:n.getAttribute("formTarget")||n.getAttribute("target")||"",elementUrl:ae(n)},t)}}),{passive:!0,capture:!0})}function ce(e){setTimeout(e,0)}function ue(e){window.addEventListener("pageshow",(function(t){t.persisted&&setTimeout(e,0)}))}function de(e,t,n){void 0===t&&(t=""),void 0===n&&(n=1024);try{var r=e.id||"";if(r=le(r)<=3?pe(r):"","BODY"===e.tagName||r){var i="".concat(r?[e.tagName,r].join("#"):e.tagName," ").concat(t).trim();return i.length<=n?i:t}var o=function(e,t){for(var n="",r=[].slice.apply(e).sort(),i=0;i<r.length;i+=1){var o=r[i];if(le(o)<=t){var a=pe(o);""!==a&&(n+=".".concat(a))}}return n}(e.classList,3);return(o="> ".concat(e.tagName).concat(o," ").concat(t).trim()).length>n?t:e.parentElement?de(e.parentElement,o,n):o}catch(a){return""}}function le(e){var t=e.match(/[^A-Za-z0-9_-]/g);return t?t.length:0}function pe(e){return"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(e):le(e)>0?"":e}var fe,ge,he=function(){function e(){this.callbacks=[],this.seenTimings=[]}return e.prototype.init=function(){var e=this;if(this.isResourceTimingSupported()){var t=window.performance.getEntriesByType("resource");t.length&&(this.seenTimings=t,this.executeRegisteredCallbacks(t)),new PerformanceObserver((function(t){var n=t.getEntriesByType("resource").filter((function(e){return!!e.name}));n.length>0&&e.executeRegisteredCallbacks(n),e.seenTimings=e.seenTimings.concat(n)})).observe({entryTypes:["resource"]})}},e.prototype.onResourceTimings=function(e){this.callbacks.push(e),this.seenTimings.length>0&&e(this.seenTimings)},e.prototype.executeRegisteredCallbacks=function(e){for(var t=0,n=this.callbacks;t<n.length;t++){(0,n[t])(e)}},e.prototype.isResourceTimingSupported=function(){return"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf("resource")>=0},e}();function ve(){return window.performance?performance.timing.navigationStart||Math.trunc(performance.timeOrigin):0}function me(e,t){var n=t?"".concat(e,"-").concat(r.secondaryTestId):e;return t&&n.includes("-unsupported")&&(n="".concat(n.replace(/-unsupported/g,""),"-unsupported")),n||"None"}function ye(e){return"regexp:/".concat(e.source,"/").concat(e.flags||"")}function Se(e,t,n){return void 0===n&&(n=1),t instanceof Array?t.some((function(t){return Se(e,t,n)})):t instanceof RegExp?t.test(e):2===n?e.toLowerCase()===t.toLowerCase():String.prototype.startsWith?e.toLowerCase().startsWith(t.toLowerCase()):e.toLowerCase().substring(0,t.length)===t.toLowerCase()}function we(e,t,n){return void 0===n&&(n=1),!(!t||Array.isArray(t)&&!t.length)&&Se(e,t,n)}function be(e){return"string"==typeof e&&/^(\s*(function\s*\(|(\([\w\s,]*\)|[A-Za-z]+)\s*=>))/.test(e)}function ke(e){return function(e){return/^(?:(?:\w+?:)?\/\/)?(.*)$/.exec(e)[1]}(function(e){try{var t=new URL(e);return t.hash&&(t.hash=""),t.toString()}catch(r){var n=e.match(/([^#]+)#/);return n&&n[1]?n[1]:e}}(e))}function Te(e){return new Function("return ".concat(e))()}function Ce(t,n,r){if(!function(e){if(!e.contentType)return!0;return-1!==e.contentType.indexOf(ge.Document)||-1!==e.contentType.indexOf(ge.Navigate)}(t))return!1;var i=[{condition:t.pathname,matcher:function(){return function(e,t,n){var r;return Se((null===(r=n.ruleSetConfig)||void 0===r?void 0:r.version)&&n.ruleSetConfig.version>=2?t.pathname:"".concat(t.pathname).concat(t.search),e.pathname)}(t,n,r)}},{condition:t.host,matcher:function(){return function(e,t){return Se(t.host,e.host)}(t,n)}},{condition:t.url,matcher:function(){return function(e,t){return Se(ke(t.href),e.url)}(t,n)}},{condition:t.cookie,matcher:function(){return function(t,n){var r=t.cookie,i=be(r);if("function"==typeof t.cookie||i)try{return(i?Te(r):r)(n.toString(),e.cookie)}catch(o){return!1}return e.cookie.split(";").some((function(e){return Se(e.trim(),r)}))}(t,n)}},{condition:t.storage,matcher:function(){return function(e,t,n){var r=e.storage;try{var i=t.watchStorageKeys;if(!i||0===i.length)return!1;var o=be(r),a=function(e){var t={};return[localStorage,sessionStorage].forEach((function(n){for(var r=0;r<n.length;r+=1){var i=n.key(r);null!==i&&Ne(i,e)&&(t[i]=n.getItem(i)||"")}})),t}(i);if("function"==typeof r||o)try{return(o?Te(r):r)(n.toString(),a)}catch(s){return!1}return Object.entries(a).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).some((function(e){return Se(e,r)}))}catch(c){return!1}}(t,r,n)}}].filter((function(e){return void 0!==e.condition})).map((function(e){return e.matcher()}));return i.length>0&&i.every((function(e){return e}))}function Ne(e,t){return t.some((function(t){return"string"==typeof t?t===e:t.test(e)}))}function Pe(e){return e?e instanceof Array?e.every((function(e){return"string"==typeof e||e instanceof RegExp}))?[{params:e}]:e:[{params:e}]:[]}function Oe(e,t){var n;if("undefined"==typeof URLSearchParams)return e;for(var r=new URL(e,location.origin),i=function(e,t){for(var n=[],r=0,i=Pe(t.stripQueryParams);r<i.length;r++){var o=i[r];if(!o.rules||o.rules.some((function(n){return Ce(n,e,t)})))(!o.enabledSites||o.enabledSites.some((function(n){return Ce(n,e,t)})))&&(n=n.concat(o.params))}return n}(r,t),o=0,a=Array.from(r.searchParams.keys());o<a.length;o++){var s=a[o];(we(s,i,null===(n=t.ruleSetConfig)||void 0===n?void 0:n.version)||"bqpassthrough"===s||"bqpreloadrequest"===s)&&r.searchParams.delete(s)}return r.href}function Ee(e){var r=t[n];if(r&&void 0!==r.ready&&"function"==typeof r.ready.then)return r.ready.then((function(t){var n;if(t.active&&"activated"===t.active.state)return t.active.postMessage(e);null===(n=t.active)||void 0===n||n.addEventListener("statechange",(function(){var n;"activated"===(null===(n=t.active)||void 0===n?void 0:n.state)&&t.active.postMessage(e)}))}))}!function(e){e.BFCACHE="bfcache",e.HARD="hard",e.SOFT="soft"}(fe||(fe={})),function(e){e.Document="document",e.Navigate="navigate",e.Fetch="fetch",e.Audio="audio",e.Video="video",e.Track="track",e.PDF="pdf",e.Image="image",e.Style="style",e.Script="script",e.Font="font",e.Undefined="undefined"}(ge||(ge={}));var Ie=function(){function e(e){var t=this;this.navigationCallbacks=[],this.leavePageHandler=e,O((function(){t.triggerNavigation(fe.HARD)})),ue((function(){t.triggerNavigation(fe.BFCACHE)}))}return e.prototype.onNavigation=function(e){this.navigationCallbacks.push(e)},e.prototype.triggerSoftNavigation=function(e,t){var n;try{if(!this.isValidNavigation(e))return;null===(n=Ee({type:"increment-soft-pi",data:{url:e}}))||void 0===n||n.catch((function(e){return V(e,U.RUMPLUGIN)})),this.leavePageHandler.triggerLeavePage(Q.softNavigation),this.initializeSoftNavigationImpression(e,null==t?void 0:t.timestamp,null==t?void 0:t.softResourcesDuration,null==t?void 0:t.softRenderDuration),this.triggerNavigation(fe.SOFT)}catch(r){V(r,U.RUMPLUGIN)}},e.prototype.triggerNavigation=function(e){var t=this;setTimeout((function(){for(var n=0,r=t.navigationCallbacks;n<r.length;n++){var i=r[n];try{i(e)}catch(o){V(o,U.RUMPLUGIN)}}}),0)},e.prototype.initializeSoftNavigationImpression=function(e,t,n,i){var o=SpeedKit,a=Math.round(t||performance.now()),s=ve()+a;o.softNavigate={id:I(32),start:a,softResourcesDuration:void 0!==n?Math.round(n):void 0,softRenderDuration:void 0!==i?Math.round(i):void 0};var c={userId:o.userId},u={navigationStart:s,hardNavigation:o.navigateId,softNavigationOffset:a,testGroup:o.group,piId:o.softNavigate.id,testId:me(o.splitTestId,!!r.secondaryGroup)},d=o.rumController;d.initRumImpression(u,c,fe.SOFT);try{var l=new URL(e,location.origin);d.set("url",l.href,!1,Le.Once)}catch(p){}it(o)},e.prototype.isValidNavigation=function(e){try{var t=Oe(SpeedKit.rumController.getCurrentRumImpression().getDataByKey("url"),r),n=Oe(e,r),i=new URL(t,location.origin),o=new URL(n,location.origin);return i.hash="",o.hash="",i.href!==o.href}catch(a){}return!1},e}();function Re(e,t){return!(Array.isArray(e)&&!Array.isArray(t)||!Array.isArray(e)&&Array.isArray(t))&&!(typeof e!=typeof t)&&(Array.isArray(e)?e.length===t.length:"object"==typeof e?function(e,t){var n=0,r=0;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&(n+=1,!Re(e[i],t[i])))return!1;for(var o in t)r+=1;return n===r}(e,t):e===t)}var Le,De=function(){function i(e,t,n,r,i){this.beaconIndex=0,this.piFlagSent=!1,this.sendingScheduled=!1,this.init=this.getInit(e,t),this.leavePageHandler=r,this.piTimeoutHandler=i,this.navigationType=n,this.sentTracking=Object.create(this.init),this.unsentTracking={},this.customTimers={},this.customDimensions=[{name:"customPiDimensions",type:"PiDimension",dimensionData:{}},{name:"customSessionDimensions",type:"SessionDimension",dimensionData:{}}],this.enforcedTopLevelAttributes=[{key:"pageType",defaultValue:"None"}]}return i.prototype.append=function(e,t,n){void 0===n&&(n=!0),this.reportTracking(e,t,Le.Append),n&&this.sendCollapsed()},i.prototype.calculateRelative=function(e){if(void 0!==e)return e-this.init.navigationStart},i.prototype.getBeaconIndex=function(){return this.beaconIndex},i.prototype.getPiId=function(){return this.init.piId},i.prototype.reportEvent=function(e,t,n,r){if(!(void 0===t||t<0)&&(this.reportTracking(e,t),void 0!==r&&n)){var i=r-t;if(i<0)return;this.reportTracking(n,i)}},i.prototype.sendCollapsed=function(){var e=this;this.leavePageHandler.isUnloaded()?this.sendCurrentTracking():this.sendingScheduled||(this.sendingScheduled=!0,setTimeout((function(){e.sendingScheduled=!1,e.sendCurrentTracking()}),100))},i.prototype.sendCurrentTracking=function(t){if((t||!(this.beaconIndex>=90))&&SpeedKit.trackingOptionsProvider.shouldSendTracking()){var n=this.getUnsentTracking();if(n){t&&this.prepareUnloadBeacon(n,t);var i="";if(0===n.beaconIndex&&this.piTimeoutHandler.addTimeout(this.init.piId),!e.prerendering&&!this.piFlagSent){this.piFlagSent=!0;var o=this.navigationType===fe.SOFT?"&bqpi=0;sp=1":"&bqpi=1";i="?pi=1".concat(this.shouldAppendPiCount()?o:"")}D("".concat(r.appURL,"/rum/pi").concat(i),n)}}},i.prototype.set=function(e,t,n,r){var i;void 0===n&&(n=!0),void 0===r&&(r=!1),i="boolean"==typeof r?r?Le.Force:Le.Override:r;var o=this.reportTracking(e,t,i);return n&&this.sendCollapsed(),o},i.prototype.setTiming=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!1),"number"==typeof t?this.set(e,t-this.init.navigationStart,n,r):this.set(e,t,n,r)},i.prototype.trackCustomEvent=function(e,t,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!0);var o={action:"".concat(e),label:"".concat(t),value:isNaN(Number(n))?0:Number(n)};i&&(o.ts=performance.now()),this.reportTracking("events",o,Le.Append),r&&this.sendCollapsed()},i.prototype.trackCustomTimer=function(e,t,n){void 0===n&&(n=!0),this.reportCustomTimer(e,t),n&&this.sendCollapsed()},i.prototype.updateBaseDimension=function(e,t){this.init[e]=t},i.prototype.getInit=function(e,t){return SpeedKit.trackingOptionsProvider.getTrackingOptions().performanceOnly?e:A(e,t)},i.prototype.reportTracking=function(e,t,n){if(void 0===n&&(n=Le.Override),Ve.isEmptyValue(t))return!1;var r=void 0;if("object"==typeof t){var i=JSON.parse(JSON.stringify(t));if(r=Ve.cleanObject(i),Ve.isEmptyValue(r))return!1}var o=r||t,a=this.customDimensions.filter((function(t){return Object.prototype.hasOwnProperty.call(t.dimensionData,e)}))[0];if(a)return this.reportCustomDimension(e,o,a.type);if(Object.prototype.hasOwnProperty.call(this.customTimers,e))return this.reportCustomTimer(e,o);if(n===Le.Append)return this.unsentTracking[e]=this.getConcatenatedUnsent(e,o),!0;if(!Array.isArray(o)&&Re(o,this.sentTracking[e])&&n!==Le.Force)return!1;var s=this.unsentTracking&&this.unsentTracking.hasOwnProperty&&Object.prototype.hasOwnProperty.call(this.unsentTracking,e);return(!Object.prototype.hasOwnProperty.call(this.sentTracking,e)&&!s||n!==Le.Once&&!this.isTopLevelDimension(e))&&(this.unsentTracking[e]=o,!0)},i.prototype.reportCustomDimension=function(e,t,n){var r="string"==typeof t?t:JSON.stringify(t),i=this.customDimensions.filter((function(e){return e.type===n}))[0];if(!i)return!1;if(i.dimensionData[e]&&"null"!==i.dimensionData[e])return!1;i.dimensionData[e]=r;var o=this.unsentTracking[i.name]||{};return o[e]=r,this.unsentTracking[i.name]=o,!0},i.prototype.reportCustomTimer=function(e,t){if("number"!=typeof t)return!1;if(this.customTimers[e]&&-1!==this.customTimers[e])return!1;this.customTimers[e]=t;var n=this.unsentTracking.customTimers||{};return n[e]=t,this.unsentTracking.customTimers=n,!0},i.prototype.getConcatenatedUnsent=function(e,t){var n=Array.isArray(t)?t:[t],r=void 0!==this.unsentTracking[e]?this.unsentTracking[e]:[];return(Array.isArray(r)?r:[r]).concat(n)},i.prototype.isTopLevelDimension=function(e){return!!this.enforcedTopLevelAttributes.filter((function(t){return t.key===e})).length},i.prototype.getUnsentTracking=function(){if(0===Object.keys(this.unsentTracking).length)return null;var e=Object.create(null);for(var t in this.init)Object.prototype.hasOwnProperty.call(this.init,t)&&(e[t]=this.init[t]);for(var t in e.beaconIndex=this.beaconIndex,e.ts=Math.round(performance.now()),this.unsentTracking)Object.prototype.hasOwnProperty.call(this.unsentTracking,t)&&(this.sentTracking[t]=Array.isArray(this.unsentTracking[t])&&Array.isArray(this.sentTracking[t])?this.sentTracking[t].concat(this.unsentTracking[t]):this.unsentTracking[t],e[t]=this.unsentTracking[t]);return this.unsentTracking=Object.create(null),this.beaconIndex+=1,e},i.prototype.initEnforcedTopLevelAttributes=function(e){var t=this;this.enforcedTopLevelAttributes.forEach((function(n){!!e.filter((function(e){return e.key===n.key})).length||t.reportTracking(n.key,n.defaultValue)}))},i.prototype.initCustomDimensionData=function(e){var t=this;e.forEach((function(e){e.key&&(t.customDimensions.every((function(t){return t.type!==e.type}))||t.isTopLevelDimension(e.key)||t.reportCustomDimension(e.key,"null",e.type))}))},i.prototype.initCustomTimerData=function(e){var t=this;e.forEach((function(e){e.key&&"CustomTimer"===e.type&&(t.customTimers[e.key]=-1)}))},i.prototype.getTrackedData=function(){var e=Object.create(null);for(var t in this.init)Object.prototype.hasOwnProperty.call(this.init,t)&&(e[t]=this.init[t]);for(var t in this.sentTracking)Object.prototype.hasOwnProperty.call(this.sentTracking,t)&&(e[t]=this.sentTracking[t]);return e},i.prototype.getDataByKey=function(e){return Object.prototype.hasOwnProperty.call(this.unsentTracking,e)?Array.isArray(this.unsentTracking[e])&&Array.isArray(this.sentTracking[e])?this.sentTracking[e].concat(this.unsentTracking[e]):this.unsentTracking[e]:Object.prototype.hasOwnProperty.call(this.sentTracking,e)?this.sentTracking[e]:void 0},i.prototype.prepareUnloadBeacon=function(e,t){if(e.unloadType=t,this.sentTracking.unloadType=t,e.events)for(var n=0,r=e.events;n<r.length;n++){delete r[n].ts}return e},i.prototype.shouldAppendPiCount=function(){var e="B"!==r.group,i=!SpeedKit.trackingOptionsProvider.getTrackingOptions().pageDisabled;return(!te(t[n]?t[n].controller:null)||this.navigationType===fe.BFCACHE)&&i&&e},i}(),Ae=function(){function e(){var e=this;this.callbacks=[],this.scrolling=!1,this.scrollStartTime=0,this.scrollTimer=null,window.addEventListener("scroll",(function(){e.scrolling||(e.scrollStartTime=performance.now()),e.scrolling=!0,e.scrollTimer&&window.clearTimeout(e.scrollTimer),e.scrollTimer=window.setTimeout((function(){e.scrolling=!1,e.executeCallbacks(e.scrollStartTime,performance.now())}),150)}),{passive:!0})}return e.prototype.onScrollEnd=function(e){this.callbacks.push(e)},e.prototype.executeCallbacks=function(e,t){for(var n=0,r=this.callbacks;n<r.length;n++){(0,r[n])(e,t)}},e}(),Ke=function(){function e(e){this.timers={},this.callbacks=[],this.leavePageHandler=e}return e.prototype.addTimeout=function(e){var t=this;this.timers[e]=window.setTimeout((function(){t.handleTimeout(e)}),174e4)},e.prototype.handleTimeout=function(e){for(var t=0,n=this.callbacks;t<n.length;t++){(0,n[t])(e)}e===SpeedKit.rumController.getCurrentRumImpression().getPiId()&&this.leavePageHandler.triggerLeavePage(Q.timeout),delete this.timers[e]},e.prototype.clearAllPiTimeouts=function(){for(var e in this.timers)Object.prototype.hasOwnProperty.call(this.timers,e)&&clearTimeout(this.timers[e]);this.timers={}},e.prototype.onPiTimeout=function(e){this.callbacks.push(e)},e}();!function(e){e.Override="override",e.Append="append",e.Force="force",e.Once="once"}(Le||(Le={}));var Ue,xe,Be,Fe,He,je,Ge,Me,We,Ve=function(){function e(e,t){var n=this;this.rumImpressions=[],this.dataLayerHandler=new $(SpeedKit.trackingOptionsProvider.getTrackingOptions().dataLayer),this.leavePageHandler=new re,this.navigationHandler=new Ie(this.leavePageHandler),this.gATrackingHandler=new ie,this.resourceTimingsHandler=new he,this.scrollEventHandler=new Ae,this.piTimeoutHandler=new Ke(this.leavePageHandler),this.onDOMInteractive=O,this.onLoad=P,this.onSpeedKitLoaded=E,this.onGaReady=this.gATrackingHandler.onGaReady.bind(this.gATrackingHandler),this.onGaTracking=this.gATrackingHandler.onGaTracking.bind(this.gATrackingHandler),this.onDataLayer=function(e){return n.dataLayerHandler.onDataLayer(e)},this.onDataLayerReady=function(e){return n.dataLayerHandler.onDataLayerReady(e)},this.onDfDataReady=_,this.onVisibilityHidden=Z,this.onLeavePage=this.leavePageHandler.onLeavePage.bind(this.leavePageHandler),this.onScrollEnd=this.scrollEventHandler.onScrollEnd.bind(this.scrollEventHandler),this.onClick=se,this.onNextTick=ce,this.getSelector=de,this.onNavigation=function(e){n.navigationHandler.onNavigation(e)},this.onBFCacheNavigation=ue,this.onPiTimeout=this.piTimeoutHandler.onPiTimeout.bind(this.piTimeoutHandler),this.pluginHandler=new Y(this),this.onResourceTimings=this.resourceTimingsHandler.onResourceTimings.bind(this.resourceTimingsHandler),this.triggerSoftNavigation=this.navigationHandler.triggerSoftNavigation.bind(this.navigationHandler),this.clearAllPiTimeouts=this.piTimeoutHandler.clearAllPiTimeouts.bind(this.piTimeoutHandler);var r=new De(e,t,fe.HARD,this.leavePageHandler,this.piTimeoutHandler);this.currentRumImpression=r,this.rumImpressions.push(r),this.hardNavigation=this.rumImpressions[0]}return e.prototype.initializePlugins=function(){var e=this.getPlugins();this.initDimensions(e),e.forEach(this.pluginHandler.initPlugin,this.pluginHandler),this.leavePageHandler.init(),this.resourceTimingsHandler.init()},e.prototype.initDimensions=function(e){this.initCustomTimerData(e),this.initCustomDimensionData(e),this.initEnforcedTopLevelAttributes(e)},e.prototype.reinitialize=function(e,t,n){var r=new De(e,t,n,this.leavePageHandler,this.piTimeoutHandler);this.rumImpressions=[],this.rumImpressions.push(r),this.hardNavigation=this.rumImpressions[0],this.previousRumImpression=void 0,this.currentRumImpression=r;var i=this.getPlugins();this.initDimensions(i)},e.prototype.initRumImpression=function(e,t,n){this.previousRumImpression=this.currentRumImpression;var r=new De(e,t,n,this.leavePageHandler,this.piTimeoutHandler);this.rumImpressions.push(r),this.currentRumImpression=r;var i=this.getPlugins();this.initDimensions(i)},e.prototype.getCurrentRumImpression=function(){return this.currentRumImpression},e.prototype.getPreviousRumImpression=function(){return this.previousRumImpression},e.prototype.reportEvent=function(e,t,n,r){this.currentRumImpression.reportEvent(e,t,n,r)},e.prototype.sendCurrentTracking=function(e){if(this.hardNavigation!==this.currentRumImpression)return this.hardNavigation.sendCurrentTracking(e),void this.currentRumImpression.sendCurrentTracking(e);this.currentRumImpression.sendCurrentTracking(e)},e.prototype.updateBaseDimension=function(e,t){this.currentRumImpression.updateBaseDimension(e,t)},e.prototype.trackCustomEvent=function(e,t,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!0),this.currentRumImpression.trackCustomEvent(e,t,n,r,i)},e.prototype.trackCustomTimer=function(e,t,n){void 0===n&&(n=!0),this.currentRumImpression.trackCustomTimer(e,t,n)},e.prototype.set=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!1),this.currentRumImpression.set(e,t,n,r)},e.prototype.getImpressionById=function(e){for(var t,n=0,r=this.rumImpressions;n<r.length;n++){var i=r[n];i.getPiId()===e&&(t=i)}return t},e.prototype.setTiming=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!1),this.currentRumImpression.setTiming(e,t,n,r)},e.prototype.append=function(e,t,n){void 0===n&&(n=!0),this.currentRumImpression.append(e,t,n)},e.prototype.getBeaconIndex=function(){return this.currentRumImpression.getBeaconIndex()},e.prototype.calculateRelative=function(e){return this.currentRumImpression.calculateRelative(e)},e.prototype.getHardNavigation=function(){return this.hardNavigation},e.cleanObject=function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))if(e.isEmptyValue(t[n]))delete t[n];else if("object"==typeof t[n]){var r=e.cleanObject(t[n]);if(e.isEmptyValue(r)){delete t[n];continue}t[n]=r}if(Array.isArray(t)&&t.length>0){var i=t.filter((function(e){return void 0!==e}));return i.length>0?i:void 0}return Object.keys(t).length>0?t:void 0},e.isEmptyValue=function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length},e.prototype.getPlugins=function(){return window.SpeedKit&&window.SpeedKit.rumPlugins?window.SpeedKit.rumPlugins:[]},e.prototype.initEnforcedTopLevelAttributes=function(e){this.currentRumImpression.initEnforcedTopLevelAttributes(e)},e.prototype.initCustomDimensionData=function(e){this.currentRumImpression.initCustomDimensionData(e)},e.prototype.initCustomTimerData=function(e){this.currentRumImpression.initCustomTimerData(e)},e.prototype.sendCollapsed=function(){if(this.hardNavigation!==this.currentRumImpression)return this.hardNavigation.sendCollapsed(),void this.currentRumImpression.sendCollapsed();this.currentRumImpression.sendCollapsed()},e.prototype.getTrackedData=function(){return this.currentRumImpression.getTrackedData()},e}();function qe(e){return parseFloat((1-e).toFixed(2))}function Je(){var e=t.userAgent;return e.indexOf("Safari")>-1&&-1===e.indexOf("Edge")&&-1===e.indexOf("Chrome")}function ze(){return!Je()&&"undefined"!=typeof PerformanceNavigationTiming&&!!performance.getEntriesByType}function Qe(e){if(void 0===e&&(e=!1),e)return je.softNavigation;var t=performance.navigation;if(!ze())return $e(t.type);var n=performance.getEntriesByType("navigation");return n[0]&&"toJSON"in n[0]?je[n[0].type]:$e(t.type)}function $e(e){return"number"!=typeof e?je[e]:e}function Ye(e){var t=function(){var e=window.performance.timing;if(!ze())return e;var t=performance.getEntriesByType("navigation");if(t[0]&&"toJSON"in t[0])return t[0].toJSON();return e}(),n=window.performance.timing,r="entryType"in t,i={};for(var o in t)if("number"==typeof t[o]){var a=0!==t[o],s=n&&("number"!=typeof n[o]||0!==n[o]);a||s?r?i[o]=Math.trunc(t[o]):t[o]>=e&&(i[o]=t[o]-e):i[o]=-1}else i[o]=t[o];var c=n.domLoading-e,u=i.finalResponseHeadersStart,d=i.responseStart;return i.ttfb=r?Math.max(u||0,d):c,i.domLoading=c,i.navigationStart=e,i}function Ze(){return"undefined"!=typeof PerformanceNavigationTiming&&performance.getEntriesByType&&"document"!==performance.getEntriesByType("navigation")[0].name?performance.getEntriesByType("navigation")[0].name:location.href}function _e(e,t){return Xe(e)===Xe(t)}function Xe(e){return null==e?void 0:e.replace("-debug","").replace("-unsupported","")}function et(){return t.serviceWorker&&t.serviceWorker.controller?t.serviceWorker.controller.scriptURL:null}function tt(e,t){e.lastNavigate.cdnBackendTime&&t.set("cdnBackendTime",e.lastNavigate.cdnBackendTime,!1),e.lastNavigate.cdnPoP&&t.set("cdnPop","".concat(e.lastNavigate.cdnPoP),!1);var n=function(){var e=null;try{e=new URL(r.sw||"",window.location.origin).searchParams.get("r")}catch(t){}return e}();n&&t.set("configVersion","".concat(n),!1)}function nt(e,t){var n,i,o,a=e.softNavigate?et():e.controllingServiceWorker;a&&t.set("controllingSw",a,!1),e.lastNavigate.disconnectCause!==He.None&&e.lastNavigate.disconnectCause!==He.DashboardDisabled&&[Ue.Error,Ue.Disconnected].indexOf(e.lastNavigate.responseCause)>=0&&t.set("disconnectCause",e.lastNavigate.disconnectCause,!1),"number"==typeof e.split&&t.set("split",(n=e.group,i=e.split,o="A"===n&&"number"==typeof r.secondarySplit?"B"===r.secondaryGroup?qe(r.secondarySplit):r.secondarySplit:1,i*o),!1),e.softNavigate&&(t.set("hardNavigation",e.navigateId),t.set("softResourcesDuration",e.softNavigate.softResourcesDuration,!1),t.set("softRenderDuration",e.softNavigate.softRenderDuration,!1))}function rt(t,n){var r,i=ve(),o=e.prerendering||!!t.lastNavigate.activationStart&&t.lastNavigate.activationStart>0;n.reportEvent("snippetExecution",t.executionTime-i),n.set("variation",t.lastNavigate.variation,!1),n.set("assetCause",t.lastNavigate.assetCause,!1),n.set("assetSource",t.lastNavigate.assetSource,!1),n.set("swBooted",t.lastNavigate.swBooted,!1),n.set("prerendered",o,!1),n.set("redirectList",null===(r=t.lastNavigate.redirectList)||void 0===r?void 0:r.map((function(e){return e.url})),!1,Le.Once),n.setTiming("originResponseStart",t.lastNavigate.originResponseStart,!1),n.set("assetTTFB",t.lastNavigate.assetTTFB,!1),n.set("assetUrl",t.lastNavigate.assetCacheKey,!1),n.set("originTTFB",t.lastNavigate.originTTFB,!1),n.set("preloadFailureCause",t.lastNavigate.preloadFailureCause,!1),n.set("speedKitVariationDuration",t.lastNavigate.variationDuration,!1),n.set("pageTypeEnabled",t.pageTypeEnabled,!1,Le.Once),function(e,t){e.lastNavigate.applicationState&&t.set("applicationState",e.lastNavigate.applicationState,!1),e.actualSplitTestId&&!_e(e.actualSplitTestId,e.splitTestId)&&t.set("actualTestId","".concat(e.actualSplitTestId),!1),e.actualGroup&&e.actualGroup!==e.group&&t.set("actualTestGroup","".concat(e.actualGroup),!1),e.lastNavigate.activationStart&&t.set("activationStart",e.lastNavigate.activationStart,!1),e.lastNavigate.noBfCacheReasons&&t.set("noBfCacheReasons",e.lastNavigate.noBfCacheReasons,!1,Le.Once),e.lastNavigate.rcompMetadata&&(t.set("normalizedAcceptEncoding",e.lastNavigate.rcompMetadata.ae),t.set("originEncoding",e.lastNavigate.rcompMetadata.oe),t.set("nodeEncoding",e.lastNavigate.rcompMetadata.ne),t.set("contentEncoding",e.lastNavigate.rcompMetadata.ce),t.set("originLength",e.lastNavigate.rcompMetadata.ol),t.set("nodeLength",e.lastNavigate.rcompMetadata.nl),t.set("contentLength",e.lastNavigate.rcompMetadata.cl))}(t,n),void 0!==window.performance&&function(e,t){var n=Ye(t);e.set("secureConnectDuration",n.secureConnectionStart>=0&&n.connectEnd>=0?n.connectEnd-n.secureConnectionStart:-1,!1,Le.Once),e.reportEvent("unload",n.unloadEventStart,"unloadDuration",n.unloadEventEnd),e.reportEvent("domainLookup",n.domainLookupStart,"domainLookupDuration",n.domainLookupEnd),e.reportEvent("connect",n.connectStart,"connectDuration",n.connectEnd),e.reportEvent("redirect",n.redirectStart,"redirectDuration",n.redirectEnd),e.reportEvent("response",n.responseStart,"responseDuration",n.responseEnd),e.reportEvent("load",n.loadEventStart,"loadDuration",n.loadEventEnd),e.reportEvent("domContentLoaded",n.domContentLoadedEventStart,"domContentLoadedDuration",n.domContentLoadedEventEnd),e.reportEvent("request",n.requestStart),e.reportEvent("fetch",n.fetchStart),e.reportEvent("ttfb",n.ttfb),e.reportEvent("domComplete",n.domComplete),e.reportEvent("domInteractive",n.domInteractive),e.reportEvent("workerStart",n.workerStart)}(n,i),function(e,t){var n=e.lastNavigate?e.lastNavigate.timings:null;n&&(t.setTiming("speedKitFetchEvent",n.eventStart,!1),t.setTiming("speedKitHandle",n.handleStart,!1),t.setTiming("speedKitBlacklistHandler",n.blacklistHandler,!1),t.setTiming("speedKitDisabledPageHandler",n.disabledPageHandler,!1),void 0!==n.handleStart&&void 0!==n.handleEnd&&t.set("speedKitHandleDuration",n.handleEnd-n.handleStart,!1),void 0!==n.cacheStart&&void 0!==n.cacheEnd&&t.reportEvent("speedKitCacheLookup",n.cacheStart-n.handleStart,"speedKitCacheLookupDuration",n.cacheEnd-n.handleStart),void 0!==n.fetchStart&&void 0!==n.fetchEnd&&t.reportEvent("speedKitFetchCall",n.fetchStart-n.handleStart,"speedKitFetchCallDuration",n.fetchEnd-n.handleStart))}(t,n)}function it(n,i){var o,a,s=n.rumController,c=!!r.secondaryGroup,u=window.devicePixelRatio,d=n.lastNavigate.responseSource===Ge.BfCache,l=!!n.softNavigate,p=function(e){var t=e?location.href:Ze(),n=SpeedKit.trackingOptionsProvider.getTrackingOptions();if(n.stripAllParameter)return t.replace(/\?.*/,"?redacted");if(n.stripParameters){var r=new URL(t);return n.stripParameters.forEach((function(e,t){var n=r.searchParams.get(e)||"",i=n.length?"".concat(e,"=").concat(n):e;r.search=r.search.replace(new RegExp("(\\?|&)".concat(i)),"$1redacted-".concat(t))})),r.href}return t}(l),f=l?null===(a=null===(o=s.getPreviousRumImpression())||void 0===o?void 0:o.getTrackedData())||void 0===a?void 0:a.url:e.referrer;c&&s.updateBaseDimension("testGroup","".concat(r.group,"-").concat(r.secondaryGroup));var g=s.getHardNavigation();d||rt(n,g),function(e,t){t.set("responseSource",e.lastNavigate.responseSource,!1),e.lastNavigate.responseCause!==Ue.Unknown&&t.set("responseCause",e.lastNavigate.responseCause,!1)&&t.set("responseSource",e.lastNavigate.responseSource,!1,!0)}(n,d&&!l?s:g),s.set("url",p,!1,Le.Once),s.set("userAgent",t.userAgent,!1,Le.Once),s.set("referrer",f,!1),s.set("firstLoad",!l&&n.lastNavigate.firstLoad,!1),s.set("disabled",n.disabled,!1),s.set("swSupported",n.swSupported,!1),s.set("skSupported",n.skSupported,!1),s.set("screenResolution",n.screenResolution,!1,Le.Once),s.set("documentVisible","visible"===e.visibilityState,!1,Le.Once),s.set("devicePixelRatio",u,!1),s.set("inControlGroup",r.isControlGroup,!1),s.set("inIFrame",window.top!==window,!1),s.set("supportsTouch","ontouchend"in e,!1);var h="supports"in HTMLScriptElement&&HTMLScriptElement.supports("speculationrules");s.set("supportsSpeculationRules",h,!1),nt(n,s),void 0!==window.performance&&function(e,t){var n=Qe(t);void 0!==n&&e.set("navigationType",n,!1)}(s,l),d||l||tt(n,s),i?s.sendCurrentTracking(i):s.sendCollapsed()}function ot(){return!!e.querySelector(".speed-kit-dynamic-loading,.speed-kit-dynamic-loaded")}function at(e){var t=SpeedKit.trackingOptionsProvider.getTrackingOptions();return!t.noTracking&&!t.performanceOnly&&(H(u,e),!0)}function st(e){var t,n=function(){it(e)};P((function(){setTimeout((function(){n()}))})),function(e,t){"complete"!==e.readyState?window.addEventListener("speed-kit-completed",t,{once:!0}):t()}(e,(function(){n()})),t=function(){n()},"undefined"!=typeof PerformancePaintTiming&&window.performance.getEntriesByType&&performance.getEntriesByType("paint").length>0||"undefined"==typeof PerformanceObserver||"undefined"==typeof PerformancePaintTiming?t():new PerformanceObserver(t).observe({entryTypes:["paint"]}),window.addEventListener("pageshow",(function(e){if(e.persisted){SpeedKit.navigateId=I(32),SpeedKit.lastNavigate.responseCause=ot()?Fe.AssetAPI:Fe.Origin,SpeedKit.lastNavigate.responseSource=Ge.BfCache,SpeedKit.executionTime=Date.now();var t=ve();SpeedKit.softNavigate=void 0;var n={userId:SpeedKit.userId},i={navigationStart:t,testGroup:SpeedKit.group,piId:SpeedKit.navigateId,testId:me(SpeedKit.splitTestId,!!r.secondaryGroup)};SpeedKit.lastNavigate.firstLoad=!1,SpeedKit.rumController.clearAllPiTimeouts(),SpeedKit.rumController.reinitialize(i,n,fe.BFCACHE),at(SpeedKit.userId),it(SpeedKit),ne(!1)}else{var o=function(){var e;if(!ze())return[];var t=performance.getEntriesByType("navigation");if(!t||!t[0])return[];var n=null===(e=t[0].notRestoredReasons)||void 0===e?void 0:e.reasons;return n&&n.length?n.filter((function(e){return!!e.reason})).map((function(e){return e.reason})):[]}();o.length&&(SpeedKit.lastNavigate.noBfCacheReasons=o)}}))}function ct(t,n,r){var i;void 0===r&&(r={}),"function"==typeof CustomEvent?i=new CustomEvent(t,{detail:r}):(i=e.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,r),n.dispatchEvent(i)}function ut(e){e.readyState!==Me.Complete&&(e.readyState===Me.Loading&&(e.readyState=Me.Prepared,ct("speed-kit-prepared",window)),setTimeout((function(){e.readyState=Me.Complete,ct("speed-kit-completed",window)})))}function dt(e,t,n,r){void 0===r&&(r=1e3);var i=!1;return n&&setTimeout((function(){return i?null:n()}),r),new Promise((function(n,r){var o=new MessageChannel,a=o.port1,s=o.port2;a.onmessage=function(e){i=!0,n(e.data)},a.onmessageerror=function(e){try{r(new Error("Service Worker ping failed with data ".concat(JSON.stringify(e.data))))}catch(o){r(new Error("Service Worker ping failed"))}},e.postMessage(t,[s])}))}function lt(t){var n,r;if(e.prerendering)e.addEventListener("prerenderingchange",(function(){return t()}),{once:!0});else{var i=null===(r=null===(n=null===performance||void 0===performance?void 0:performance.getEntriesByType)||void 0===n?void 0:n.call(performance,"navigation")[0])||void 0===r?void 0:r.activationStart;i&&i>0&&t()}}function pt(e,t){dt(e,{type:"get-navigate-info",clientURL:Ze()},(function(){t.lastNavigate.responseSource=ot()?Ge.AssetAPI:Ge.Origin,t.lastNavigate.responseCause=Ue.NoSwResponse,ut(t)})).catch((function(e){return V(e,U.SNIPPET),null})).then((function(n){n&&n.responseSource===Ge.Prerender&&lt((function(){dt(e,{type:"increment-page-impression"})})),function(e,t){if(!t||"wasCacheHit"in t)return;if("reason"in t)return e.lastNavigate.applicationState=t.applicationState,e.lastNavigate.errorMessage=t.reason,void(t.applicationState===We.FAILED&&(e.lastNavigate.responseCause=Ue.SwFailed,V(new TypeError(t.reason),U.SERVICEWORKER)));t.firstLoad=e.lastNavigate.firstLoad;var n=t.responseSource===Ge.Origin,r=[Ue.NoMatchingNavigate,Ue.SwBooting,Ue.NoNavigate,Ue.Unknown].includes(t.responseCause);e.lastNavigate=Object.assign(e.lastNavigate,t),n&&ot()&&(e.lastNavigate.responseSource=r?Ge.AssetAPI:Ge.SDN)}(t,n),ut(t)}))}function ft(e){return fetch("".concat(r.appURL,"/config/VAPIDPublicKey")).then((function(e){return e.arrayBuffer()})).then((function(e){return{applicationServerKey:e,userVisibleOnly:!0}})).then((function(t){return e.subscribe(t)})).then((function(e){var t={subscription:e,devicetype:"WebPush"};return fetch("".concat(r.appURL,"/db/Device/register"),{method:"POST",credentials:"include",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})})).then((function(e){return 200===e.status}),(function(){return!1}))}function gt(){return"Notification"in window?Notification.requestPermission().then((function(e){return"denied"===e?"denied":"granted"!==e?"undecided":t[n].ready.then((function(e){var t=e.pushManager;return function(e){return e.getSubscription().then((function(e){return!!e}))}(t).then((function(e){return!!e||ft(t)}))})).then((function(e){return e?"registered":"unregistered"}))})):Promise.resolve("unsupported")}function ht(e){return e?new URL(e,location.origin).pathname:e}function vt(e){var n;null===(n=Ee({type:"update-device",data:e}))||void 0===n||n.catch((function(e){return V(e,U.SNIPPET)}));try{!function(e){if("B"===r.group)return;var n=ht(r.scope),i=t.userAgent,o=new N(n);o.set("/com.baqend.speedkit.device",{device:e,userAgent:i}).catch((function(e){return V(e,U.SNIPPET)})).then((function(){return o.disconnect().catch((function(e){return V(e,U.SNIPPET)}))}))}(e),window.SpeedKit.device=e}catch(i){V(i,U.SNIPPET)}}function mt(e){var r=t[n].controller;r&&(r.postMessage({type:"bypass-deactivation",data:e}),sessionStorage.setItem(b,e.toString()))}function yt(){var e=t[n];e&&e.controller&&e.controller.postMessage({type:"connect"})}function St(){var e=t[n];e&&e.controller&&e.controller.postMessage({type:"disconnect"})}function wt(){var e=B(y);if(e)return e;var t=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<32;n+=1)t+=e.charAt(Math.floor(Math.random()*e.length));return t}();return K(y,t),t}function bt(e){return e?function(e,t){for(var n="",r=0;r<e.length;r+=1){var i=r%t.length;n+=(e.charCodeAt(r)^t.charCodeAt(i)).toString(32)}return n}(e,wt()):""}function kt(e){var r=t[n].controller;r&&r.postMessage({type:"offline",data:e})}function Tt(){var e=t[n].controller;e&&e.postMessage({type:"fetch-bloom-filter",data:!0})}function Ct(t){var n;null===(n=Ee({event:t,type:"send-cookies",data:e.cookie}))||void 0===n||n.catch((function(e){return V(e,U.SNIPPET)}))}function Nt(e,r,i){return!!t[n]&&!!t[n].getRegistrations&&function(e,n,r){return"Safari"===e?15!==n||r>=2||t.userAgent.includes("SpeedCurve"):"Chrome"===e?n>=61:"Firefox"!==e||n>122}(e,r,i)}function Pt(){return t.userAgent.indexOf("Edge")>=0}function Ot(e){var n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)\.?(\d+)?/i)||[],r=null;if(/trident/i.test(n[1]))return r=/\brv[ :]+(\d+)\.?(\d+)?/g.exec(e)||[],["IE",parseInt(r[1],10)||0,parseInt(r[2],10)||0];var i=function(e){if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*?Version)/.test(e)){var t=e.match(/(OS |os |OS)(\d+)_?(\d+)?/i)||[];return[/\b(crios)\/(\d+)/i.test(e)?"Safari":"SafariWebView",parseInt(t[2],10)||0,parseInt(t[3],10)||0]}return null}(e)||function(e,t){if("Chrome"===t[1]){var n=null;if(null!=(n=e.match(/\bEdg\/(\d+)\.?(\d+)?/)||e.match(/\bEdge\/(\d+)\.?(\d+)?/)))return["Edge",parseInt(n[1],10),parseInt(n[2],10)||0];if(null!=(n=e.match(/\bOPR\/(\d+)\.?(\d+)?/)))return["Opera",parseInt(n[1],10),parseInt(n[2],10)||0]}return null}(e,n);if(null!==i)return i;var o=n[2]?[n[1],parseInt(n[2],10),parseInt(n[3],10)||0]:[t.appName,parseInt(t.appVersion,10),0];return-1===e.indexOf("Android")&&null!=(r=e.match(/version\/(\d+)\.?(\d+)?/i))&&(o.splice(1,1,parseInt(r[1],10)),o.splice(2,1,parseInt(r[2],10)||0)),o}function Et(e){var t=Ot(e);if(!t[0]||isNaN(t[1])||isNaN(t[2]))return!0;if("SafariWebView"===t[0])return!0;return!!e.match(/app(?!le)/gi)||["sdk","-ios","webview","wv","overlay"].some((function(t){return e.toLowerCase().indexOf(t)>-1}))}function It(e,n,i,o){void 0===o&&(o=!1);var a=!r.enableForWebViews&&Et(t.userAgent),s=Nt(e,n,i),c=function(e,n,r){return"Chrome"===e?n>=85:"Edge"===e?n>=121:"Opera"===e?n>=71:"Firefox"===e?n>=93:("Safari"===e||"SafariWebView"===e)&&(t.userAgent.includes("SpeedCurve")||n>16||16===n&&r>=4)}(e,n,i);return s&&c&&!o&&!a&&!Pt()}function Rt(e,t){var n;if("function"==typeof URL)n=t?new URL(t):new URL(Ze());else{if(t)return!1;n=location}var r=!e.enabledSites||e.enabledSites.some((function(t){return Ce(t,n,e)})),i=!!e.disabledSites&&e.disabledSites.some((function(t){return Ce(t,n,e)})),o=r&&!i,a=!e.whitelist||e.whitelist.some((function(t){return Ce(t,n,e)})),s=!!e.blacklist&&e.blacklist.some((function(t){return Ce(t,n,e)}));return o&&(a&&!s)}function Lt(e){var t;null===(t=Ee({type:"prewarm-fetch",data:e.filter((function(e){return function(e){try{return new URL(e,window.location.origin),!0}catch(t){return!1}}("string"==typeof e?e:e.url)})).map((function(e){var t="string"!=typeof e;return{url:t?e.url:e,contentType:t&&e.as||ge.Navigate}}))}))||void 0===t||t.catch((function(e){V(e,U.SNIPPET)}))}function Dt(e){if(e){var n=t.serviceWorker.controller;if(n&&te(n)){var r="reset"===e?null:e;r?sessionStorage.setItem(w,r):sessionStorage.removeItem(w),dt(n,{type:"auth-token",data:r})}}}function At(t){if("undefined"!=typeof Storage)try{localStorage.removeItem(t)}catch(n){}try{e.cookie="".concat(t,"=; expires=").concat((new Date).toUTCString(),"; path=/; SameSite=lax; Secure")}catch(r){}}function Kt(e,t){if(t)return!0;var n=e.group,r=e.testId;return!(!r||-1===r.indexOf("-debug"))||"A"!==n}function Ut(){return"true"===B("baqend-speedkit-debug")}function xt(e,n){var i=function(e,n){var i=n===g,o=function(e,t){var n="undefined"!==e.testId,i="undefined"!==e.group,o=t?r.secondaryTestId:r.splitTestId,a=n&&!_e(e.testId,o);if(i&&!a)return e.group;var s=t?r.secondaryGroup:r.group,c=t?r.secondarySplit:r.split;return function(e,t){if(void 0===e)return Math.random()<t?"A":"B";return e}(s,c)}(e,i),a=i?r.secondaryTestId:r.splitTestId;a&&(a=function(e){var n=Ot(t.userAgent),i=n[0],o=n[1],a=n[2];return It(i,o,a)&&!r.disabled?e.replace("-unsupported",""):e.indexOf("-unsupported")>-1?e:"".concat(e,"-unsupported")}(function(e){return Ut()?e.indexOf("-debug")>-1?e:"".concat(e,"-debug"):e.replace("-debug","")}(a)));return{group:o,testId:a}}(e,n),o=n===g;return o?(r.secondaryGroup=i.group,r.secondaryTestId=i.testId):(r.group=i.group,r.splitTestId=i.testId),Kt(i,o?r.secondarySplit<1:r.split<1)?(function(e,t,n){r=n,i=encodeURIComponent(JSON.stringify(e)),o=encodeURIComponent(JSON.stringify(t)),o!==i&&o&&H(r,o);var r,i,o}(e,i,n),!0):(At(n),!1)}function Bt(){return r.disabled||!1===r.enabled}function Ft(e,i,o,a){var s=window.location.href,c=Ot(t.userAgent),u=c[0],d=c[1],l=c[2],p=function(e,i,o,a,s,c){var u=It(e,i,o,a),d="B"===r.group||"B"===r.secondaryGroup;return u?!d&&Bt()?[Ge.Origin,Ue.Disabled]:!s||!r.sdnSetup&&ot()?!d&&c?[Ge.Origin,Ue.GroupChange]:d?[Ge.Origin,Ue.NonSKGroup]:t[n].controller?[ot()?Ge.AssetAPI:Ge.Origin,Ue.Unknown]:[Ge.Origin,Ue.NoSwInstalled]:[Ge.Origin,Ue.FirstLoad]:[Ge.Origin,Ue.SkUnsupported]}(u,d,l,e,i,"B"===o.group||"B"===a.group),f=p[0];return{url:s,browser:u,firstLoad:i,browserVersion:d,minorVersion:l,responseCause:p[1],responseSource:f,cdnBackendTime:null,cdnPoP:null,splitTestId:o.testId,group:void 0!==r.split?o.group:r.group,disconnectCause:He.None,swBooted:!1}}function Ht(e,t,n){return e.put("".concat(t),new Response(null,{status:200,statusText:(r=n,JSON.stringify(r,(function(e,t){return t instanceof RegExp?ye(t):t})))}));var r}function jt(i){var o=function(e){var t=e;if(r.includeServiceWorker){var n=e.indexOf("?")>=0?"&":"?";t+="".concat(n,"othersw=").concat(r.includeServiceWorker)}return t}(r.sw);return t[n].register(o,{scope:r.scope||"/"}).then((function(t){var n;n=!1,e.addEventListener("visibilitychange",(function(){"hidden"===e.visibilityState?n||(n=!0,Ct("visibilitychange")):n=!1})),window.addEventListener("pagehide",(function(){n||(n=!0,Ct("pagehide"))}));var o=X(r),a=i.controllingServiceWorker;(!a||(null==o?void 0:o.split("?")[0])!==a.split("?")[0])&&function(t){P((function(){window.setTimeout((function(){if(t.active&&"undefined"!=typeof PerformanceResourceTiming){var n,i=(n=Ye(ve()).domContentLoadedEventEnd,window.performance.getEntriesByType?performance.getEntriesByType("resource").filter((function(e){if(n>0&&e.startTime+e.duration>n)return!1;var t;try{t=new URL(e.name)}catch(r){return!1}return(null==t?void 0:t.origin)!==window.location.origin})):[]).map((function(t){var n,r=t.name,i=t.initiatorType;return"link"===i&&(n=function(t){var n=e.querySelector('link[href="'.concat(t,'"]'));switch((null==n?void 0:n.getAttribute("rel"))||(null==n?void 0:n.getAttribute("as"))){case"audio":return ge.Audio;case"document":return ge.Document;case"fetch":return ge.Fetch;case"image":return ge.Image;case"script":return ge.Script;case"stylesheet":case"style":return ge.Style;case"track":return ge.Track;case"video":return ge.Video;default:return}}(r)),{initiatorType:i,contentType:n,url:r}}));dt(t.active,{type:"prewarm-fetch",data:i}).then((function(n){if(n.applicationState===We.FAILED)return function(t){return window.caches?caches.open(C(s,r.scope)).then((function(t){var n=window.devicePixelRatio,i=window.screen.width,o=[[location.origin,e.cookie]];return Promise.all([Ht(t,"/com.baqend.speedkit.screen",{dpr:n,width:i}),Ht(t,"/com.baqend.speedkit.config",r),Ht(t,"/com.baqend.speedkit.cookie",{origins:o})])})).then((function(){return t.postMessage({type:"init-cache"})})):Promise.resolve()}(t.active)}))}}),1e3)}))}(t),function(e){e.navigationPreload&&Gt(e).then((function(){r.navigationPreload?e.navigationPreload.enable():e.navigationPreload.disable()})).catch((function(e){return V(e,U.SNIPPET)}))}(t),Gt(t).then((function(){!function(e){var t=new URLSearchParams(location.search).get("debugSpeedKit"),n=sessionStorage.getItem(S),r="reset"===t,i=t||n,o=sessionStorage.getItem(b)||"false";r||!i?sessionStorage.removeItem(S):sessionStorage.setItem(S,i),dt(e,{type:"config-debug",data:{configDebugId:i,bypassDeactivation:o}})}(t.active)}))}))}function Gt(e){var t=e.waiting||e.installing;return t?new Promise((function(e){return t.addEventListener("statechange",(function(){"activated"===t.state&&e(t)}))})):Promise.resolve(e.active)}function Mt(e){return e===Ue.SkUnsupported}function Wt(t){"loading"===e.readyState?e.addEventListener("DOMContentLoaded",t):setTimeout(t,0)}function Vt(e){var t=j(e),n=e===g,i=n?r.secondarySplit:r.split,o="".concat(s,n?"-secondary-ab-test-info":"-ab-test-info");if(t)return qt(t);var a={group:"undefined",testId:"undefined"},c=j(o);c&&(a=qt(c),At(o),Kt(a,null!=i&&i<1)&&H(e,encodeURIComponent(JSON.stringify(a))));return a}function qt(e){try{return JSON.parse(decodeURIComponent(e))}catch(t){return{group:"undefined",testId:"undefined"}}}function Jt(t){for(var n=0,r=e.cookie.replace(/\s/g,"").split(";").filter((function(e){return 0===e.lastIndexOf(t,0)}));n<r.length;n++){var i=r[n],o=i.indexOf("="),a=o>-1?i.substr(0,o):i;e.cookie="".concat(a,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax; Secure")}}function zt(e,t){if(e)return function(e,t){if("undefined"!=typeof Storage)try{for(var n in localStorage)n.includes(e)&&!(null==t?void 0:t.includes(n))&&localStorage.removeItem(n)}catch(r){}}(s,[h]),void Jt(s);t.noCookies&&Jt(s),(t.noTracking||t.performanceOnly)&&[u,d,l,p].forEach((function(e){return At(e)}))}function Qt(e){e.readyState!==Me.Prepared&&e.readyState!==Me.Complete&&(e.readyState=Me.Prepared,ct("speed-kit-prepared",window))}function $t(e){var t=e.active||e.installing||e.waiting;if(!t)return"";var n=new URL(t.scriptURL);return n.origin+n.pathname}function Yt(e,t,n,r,i){var o;void 0===r&&(r=""),void 0===i&&(i=[]);var a=function(a){if(i.length>=10)return"break";var s="".concat(r,".").concat(a),c=e[a],u=t[a];if(c===u)return"continue";try{var d=null===(o=null==n?void 0:n.find((function(e){return Se(a,e.key)})))||void 0===o?void 0:o.compare;if(d){var l=function(e,t,n,r){var i=r(t,n);if(!i)return null;return{key:e,desc:i,local:_t(t),remote:_t(n)}}(s,c,u,d);return l&&i.push(l),"continue"}}catch(f){return V(f,U.CHANGEDETECTION),"break"}var p=function(e,t,n){var r,i,o,a;if(null===t||null===n||"object"!=typeof t||"object"!=typeof n)return{key:e,desc:"diff in value",local:_t(t),remote:_t(n)};if(Array.isArray(t)!==Array.isArray(n))return{key:e,desc:"diff in object type",local:Zt(t),remote:Zt(n)};if(Object.keys(t).length!==Object.keys(n).length)return{key:e,desc:"diff in child count",local:null===(i=null===(r=Object.keys(t))||void 0===r?void 0:r.length)||void 0===i?void 0:i.toString(),remote:null===(a=null===(o=Object.keys(n))||void 0===o?void 0:o.length)||void 0===a?void 0:a.toString()};return null}(s,c,u);if(p)return i.push(p),"continue";Yt(c,u,n,s,i)};for(var s in e){if("break"===a(s))break}return i}function Zt(e){return Array.isArray(e)?"array(".concat(e.length,")"):typeof e}function _t(e){return"string"==typeof e?e:JSON.stringify(e)}!function(e){e.Blacklist="Blacklist",e.Blocked="Blocked",e.ClientError="ClientError",e.Redirect="Redirect",e.CORSRedirect="CORSRedirect",e.CriticalResource="CriticalResource",e.Delayed="Delayed",e.Disabled="Disabled",e.Disconnected="Disconnected",e.DynamicBlock="DynamicBlock",e.DynamicBlockPreload="DynamicBlockPreload",e.DynamicBlockCached="DynamicBlockCached",e.Error="Error",e.Fallback="Fallback",e.Fetchlist="Fetchlist",e.FirstLoad="FirstLoad",e.GroupChange="GroupChange",e.HardReload="HardReload",e.IgnoredAfterPOSTNavigate="IgnoredAfterPOSTNavigate",e.InternalServerError="InternalServerError",e.LoopDetected="LoopDetected",e.NavigationPreload="NavigationPreload",e.NonSKGroup="NonSKGroup",e.SkUnsupported="SkUnsupported",e.NoSwInstalled="NoSwInstalled",e.NoSwResponse="NoSwResponse",e.Offline="Offline",e.Onboarding="Onboarding",e.SafeScript="SafeScript",e.SwFailed="SwFailed",e.TrackingRequest="TrackingRequest",e.Unknown="Unknown",e.Immutable="Immutable",e.NotEnabled="NotEnabled",e.NotWhitelisted="NotWhitelisted",e.UserAgentChanged="UserAgentChanged",e.TooLargeRequest="TooLargeRequest",e.FormatNotSupported="FormatNotSupported",e.OtherSwInstalled="OtherSwInstalled",e.SwBooting="SwBooting",e.NoNavigate="NoNavigate",e.NoMatchingNavigate="NoMatchingNavigate",e.Timeout="Timeout",e.DisabledSites="DisabledSites",e.PartialResponse="PartialResponse",e.PreloadBlacklist="PreloadBlacklist",e.NoHtmlNavigate="NoHtmlNavigate",e.PostNavigate="PostNavigate",e.VariationTimeout="VariationTimeout",e.RacedApiResponse="RacedApiResponse",e.IFrameFetch="IFrameFetch"}(Ue||(Ue={})),function(e){e.CacheMiss="CacheMiss",e.ExpiredResponse="ExpiredResponse",e.InstantRefresh="InstantRefresh",e.Deployment="Deployment",e.InvalidCacheSketch="InvalidCacheSketch",e.ReloadCacheMode="ReloadCacheMode",e.UrlInCacheSketch="UrlInCacheSketch"}(xe||(xe={})),function(e){e.CacheHit="CacheHit",e.RevalidationWhitelist="RevalidationWhitelist"}(Be||(Be={})),function(e){e.AssetAPI="AssetAPI",e.Origin="Origin"}(Fe||(Fe={})),function(e){e.SWException="SWException",e.BloomfilterException="BloomfilterException",e.DashboardDisabled="DashboardDisabled",e.ServerError="ServerError",e.PostMessage="PostMessage",e.CORSRedirect="CORSRedirect",e.Offline="Offline",e.OriginServerError="OriginServerError",e.None="None",e.AssetTimeout="AssetTimeout"}(He||(He={})),function(e){e[e.navigate=0]="navigate",e[e.reload=1]="reload",e[e.back_forward=2]="back_forward",e[e.prerender=3]="prerender",e[e.softNavigation=4]="softNavigation",e[e.reserved=255]="reserved"}(je||(je={})),function(e){e.AssetAPI="AssetAPI",e.Shield="Shield",e.Storage="Storage",e.Edge="Edge",e.Collapsed="Collapsed",e.PendingAsset="PendingAsset",e.Stream="Stream",e.MissingCachingHeader="MissingCachingHeader",e.Generated="Generated",e.Origin="Origin",e.SwCache="SwCache",e.SDN="SDN",e.BfCache="BfCache",e.Prerender="Prerender",e.Recompress="Recompress"}(Ge||(Ge={})),function(e){e.Loading="loading",e.Complete="complete",e.Prepared="prepared"}(Me||(Me={})),function(e){e.INSTALLING="installing",e.BOOTING="booting",e.RUNNING="running",e.FAILED="failed"}(We||(We={}));var Xt=function(){function e(e){var n,r=this;this.speedKitConfig=e;var i="object"==typeof e.apiChangeDetection?e.apiChangeDetection:void 0;this.sampleRate=(null==i?void 0:i.sampleRate)||1,this.whitelist=this.getEnabledAPIs(e),this.blacklist=(null==i?void 0:i.blacklist)||[],this.customCompareFunction=null==i?void 0:i.compare,this.keyCompareFunctions=null==i?void 0:i.compareKeys,this.onChange=null==i?void 0:i.onChange,this.timeout=(null==i?void 0:i.timeout)||1e3,this.checkedUrls=new Set,(null===(n=null==t?void 0:t.serviceWorker)||void 0===n?void 0:n.controller)&&this.canDetectChanges()&&this.checkSamplerate()&&(this.observer=new PerformanceObserver((function(e){return r.observeEntries(e)})),this.observer.observe({buffered:!0,type:"resource"}))}return e.prototype.canDetectChanges=function(){return"performance"in window&&"getEntriesByType"in performance&&!!this.speedKitConfig.apiChangeDetection},e.prototype.checkSamplerate=function(){return!(this.sampleRate&&this.sampleRate<1)||Math.random()>this.sampleRate},e.prototype.isWhitelisted=function(e){var t=this;return this.whitelist.some((function(n){return Ce(n,e,t.speedKitConfig)}))},e.prototype.isBlacklisted=function(e){var t=this;return"#bqBlacklist"===e.hash||this.blacklist.some((function(n){return Ce(n,e,t.speedKitConfig)}))},e.prototype.observeEntries=function(e){var t=this,n=e.getEntries().filter((function(e){try{if(!t.isSkResponse(e))return!1;var n=new URL(e.name);return!t.checkedUrls.has(e.name)&&t.isWhitelisted(n)&&!t.isBlacklisted(n)&&!n.hostname.startsWith("sklookup.")}catch(r){return!1}}));n.length&&(n.forEach((function(e){t.checkedUrls.add(e.name)})),setTimeout((function(){t.detectChanges(n).then((function(e){var n=e.filter((function(e){return e.triggeredBy.length}));n.length&&t.sendChangeReport(n)})).catch((function(){}))}),this.timeout))},e.prototype.detectChanges=function(e){var t=this;return Promise.all(e.map((function(e){return t.fetchVersions(e)}))).then((function(e){var n=[];return e.forEach((function(e){if(null!==e.cached&&e.assetKey)if(null!==e.origin){var r=t.applyCompareFunction(e.cached,e.origin);r.length&&n.push({url:e.assetKey,triggeredBy:r,ts:e.startTime})}else n.push({url:e.assetKey,triggeredBy:[{key:"originError",desc:"Origin API response not found"}]})})),n}))},e.prototype.applyCompareFunction=function(e,t){if(!this.customCompareFunction)try{return Yt(JSON.parse(e),JSON.parse(t),this.keyCompareFunctions)}catch(r){return this.fallbackCompareFunction(e,t)}try{var n=this.customCompareFunction(e,t);return n?Array.isArray(n)?n:"string"==typeof n?[{key:"none",desc:n}]:!0===n?[{key:"none",desc:"difference"}]:[n]:[]}catch(i){return V(i,U.SNIPPET),[]}},e.prototype.fetchVersions=function(e){var t=new URL(e.name);return Promise.all([this.fetchFromSW(t),this.fetchFromOrigin(t)]).then((function(t){var n=t[0],r=t[1];return{cached:n.cached,origin:r,assetKey:n.assetKey,startTime:e.startTime}}))},e.prototype.fallbackCompareFunction=function(e,t){return e===t?[]:[{key:"text",desc:"text mismatch"}]},e.prototype.fetchFromSW=function(e){var t={assetKey:"",cached:null};return fetch(e.href.replace(/https?:\/\//,"$&".concat("sklookup."))).then((function(e){return t.assetKey=e.headers.get("baqend-asset-key")||"",null==e?void 0:e.text()})).then((function(e){return t.cached=e,t})).catch((function(){return t}))},e.prototype.fetchFromOrigin=function(e){return e.hash="#bqBlacklist",fetch(e.href).then((function(e){return null==e?void 0:e.text()})).catch((function(){return null}))},e.prototype.sendChangeReport=function(e){var n;SpeedKit.rumController.set("apiChangeOrigin",window.location.origin,!1,Le.Force),SpeedKit.rumController.append("apiChange",e);try{var r=Array.from(new Set(e.map((function(e){return e.url})).filter(Boolean)));r.length&&(null===(n=null==t?void 0:t.serviceWorker)||void 0===n?void 0:n.controller)&&t.serviceWorker.controller.postMessage({type:"purge-cache",data:r})}catch(i){}this.onChange&&this.onChange(e.map((function(e){return e.url})))},e.prototype.isSkResponse=function(e){return!!e.serverTiming&&e.serverTiming.filter((function(e){return["cache","pop"].indexOf(e.name)>-1})).length>1},e.prototype.getEnabledAPIs=function(e){var t=e.enabledAPIs;if(!t)return[];for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r];if("rules"in o)for(var a=0,s=o.rules;a<s.length;a++){var c=s[a];n.push(c)}else n.push(o)}return n},e}();function en(e){var t,n=Object.assign({},window.localStorage,window.sessionStorage);Object.keys(n).forEach((function(t){Se(t,e)||delete n[t]})),null===(t=Ee({data:n,type:"send-storage"}))||void 0===t||t.catch((function(e){return V(e,U.SNIPPET)}))}function tn(e,t){try{Se(e,t)&&en(t)}catch(n){}}function nn(e){!function(e){var t=Storage.prototype.setItem;Object.defineProperty(Storage.prototype,"setItem",{configurable:!0,writable:!0,value:function(n,r){t.call(this,n,r),tn(n,e)}})}(e),function(e){var t=Storage.prototype.removeItem;Object.defineProperty(Storage.prototype,"removeItem",{configurable:!0,writable:!0,value:function(n){t.call(this,n),tn(n,e)}})}(e)}var rn=function(){function t(){this.sendingScheduled=!1}return t.prototype.cookieListener=function(){var t=this,n=Object.getOwnPropertyDescriptor(Document.prototype,"cookie");n&&n.configurable&&Object.defineProperty(Document.prototype,"cookie",{configurable:!0,get:function(){return n.get.call(e)},set:function(r){n.set.call(e,r),t.handleCookieSet()}})},t.prototype.handleCookieSet=function(){var e=this;if(!this.lastUpdateTime)return Ct(),void(this.lastUpdateTime=Date.now());var t=Date.now()-this.lastUpdateTime;if(t>=500)return Ct(),void(this.lastUpdateTime=Date.now());this.sendingScheduled||(this.sendingScheduled=!0,setTimeout((function(){Ct(),e.sendingScheduled=!1,e.lastUpdateTime=Date.now()}),500-t))},t}();var on,an={performanceOnly:!1,stripAllParameter:!1,noCookies:!1,noTracking:!1,pageDisabled:!1,dataLayer:"dataLayer",prerenderSampleRate:.2},sn=function(){function t(e){this.trackingOptions=this.initTrackingOptions(e)}return t.prototype.getTrackingOptions=function(){return this.trackingOptions},t.prototype.shouldSendTracking=function(){return e.prerendering?this.isPrerenderTrackingEnabled():!this.trackingOptions.noTracking},t.prototype.initTrackingOptions=function(e){var t=A({},an);return r.rumTracking=this.isRumActive(),r.rumTracking?e?(r.rumTracking=!1,A(t,{noTracking:!0})):"boolean"==typeof r.rumTracking?t:A(t,r.rumTracking):A(t,{noTracking:!0})},t.prototype.isRumActive=function(){if(!(!F()&&"1"!==B(v)&&!window.deactivateSpeedKitRUM))return!1;var t=r.rumTracking;if(!t)return!1;if(void 0===r.sampleRate)return function(t){if(e.cookie="".concat(t,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax; Secure"),"undefined"!=typeof Storage)try{localStorage.removeItem(t)}catch(n){}}(m),t;var n,i="boolean"==typeof(n=JSON.parse(B(m)||"{}"))?n:void 0!==n.split?n.split:null;return!!(null===i?this.isRumSplitEnabled():i)&&t},t.prototype.isPrerenderTrackingEnabled=function(){return void 0===this.trackOnPrerender&&(this.trackOnPrerender=Math.random()<this.trackingOptions.prerenderSampleRate),this.trackOnPrerender},t.prototype.isRumSplitEnabled=function(){var e,t=Math.random()<(null!==(e=r.sampleRate)&&void 0!==e?e:1);return r.sampleRate&&K(m,t.toString()),t},t}();function cn(e){return!!("string"==typeof e||e instanceof RegExp||Array.isArray(e)&&e.every((function(e){return"string"==typeof e||e instanceof RegExp})))}function un(e,t,n){var r,i=e(n);if(i&&(!Array.isArray(i)||0!==i.length))if(t.stripQueryParams)if(cn(t.stripQueryParams)&&cn(i))!function(e,t){var n,r,i=e.stripQueryParams;if(Array.isArray(i)||Array.isArray(t))return!Array.isArray(i)&&Array.isArray(t)?(e.stripQueryParams=[i],void(n=e.stripQueryParams).push.apply(n,t)):void(!Array.isArray(i)||Array.isArray(t)?(r=e.stripQueryParams).push.apply(r,t):e.stripQueryParams.push(t));e.stripQueryParams=[i,t]}(t,i);else{var o=Pe(i);t.stripQueryParams=Pe(t.stripQueryParams),(r=t.stripQueryParams).push.apply(r,o)}else t.stripQueryParams=i}function dn(e,t,n){var r,i=e(n);if(i&&(!Array.isArray(i)||0!==i.length)){var o=new Set(Object.values(on));i.every((function(e){return"object"==typeof e&&Object.keys(e).every((function(e){return o.has(e)}))}))&&(t.blacklist?(r=t.blacklist).push.apply(r,i):t.blacklist=i)}}!function(e){e.ContentType="contentType",e.Cookie="cookie",e.Desktop="desktop",e.Host="host",e.Mobile="mobile",e.Pathname="pathname",e.Tablet="tablet",e.Url="url",e.Hashparam="hashparam",e.Storage="storage"}(on||(on={}));var ln=function(){function e(e){this.addStripQueryParams=un,this.addBlacklist=dn,this.initializePlugins(e)}return e.prototype.initializePlugins=function(e){var t=this,n=this.getPlugins();try{var r="structuredClone"in window?structuredClone(e):function e(t,n,r){if(null===t||"object"!=typeof t)return t;var i=n||[],o=r||[],a=i.indexOf(t);if(-1!==a)return o[a];if("[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("[object RegExp]"===Object.prototype.toString.call(t)){var s=t,c=new RegExp(s.source,(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.sticky?"y":"")+(s.unicode?"u":"")+(s.dotAll?"s":""));return c.lastIndex=s.lastIndex,c}var u=Array.isArray(t)?[]:{};for(var d in i.push(t),o.push(u),t)Object.prototype.hasOwnProperty.call(t,d)&&(u[d]=e(t[d],i,o));return u}(e),i=[];n.forEach((function(n){Object.keys(n).forEach((function(o){try{var a=n[o];if("applyToConfig"===o&&"function"==typeof a)return void i.push(a);var s=t[o];"function"==typeof a&&"function"==typeof s&&s(a,e,r)}catch(c){V(c,U.CONFIGPLUGIN)}}))})),i.forEach((function(t){try{t(e)}catch(n){V(n,U.CONFIGPLUGIN)}}))}catch(o){V(o,U.CONFIGPLUGIN)}},e.prototype.getPlugins=function(){return window.SpeedKit&&window.SpeedKit.configPlugins?window.SpeedKit.configPlugins:[]},e}();try{!function(){if(function(){var t;try{window.navigator.serviceWorker,e.cookie}catch(r){if("SecurityError"===String("object"==typeof r&&null!==r&&"message"in r&&r.message)||String(r).indexOf("sandboxed")>=0)return!0}var n=null===(t=window.frameElement)||void 0===t?void 0:t.getAttribute("sandbox");return!!n&&"false"!==n}()||(o=window.top!==window,"https:"!==location.protocol||!r.executeInIframe&&o))return;var o;if(window[i])return;window[i]=!0,window.addEventListener("speed-kit-completed",(function(){if(/speedKitStatus/.test(window.location.href)){var e=window.SpeedKit,t=e.group,n=e.lastNavigate,r=n.responseCause,i=n.responseSource;alert("\n     Group: ".concat(t,"\n\n     Cause: ").concat(r,"\n\n     Source: ").concat(i))}})),[d,l,p].forEach((function(e){return At(e)}));var a=window.location.href.match(/speed-kit-rum-opt-out=([01])/);a&&K(v,a[1]);var s=F();window.SpeedKit=window.SpeedKit||{},window.SpeedKit.trackingOptionsProvider=new sn(s);var c=function(){if(null!==j(f)||null!==j(u))return!1;if(t.serviceWorker&&(null==r.split||1===r.split)){var e=t.serviceWorker.controller;return!e||!ee(r,e)}return!0}(),h=function(){var e={group:"",testId:r.splitTestId||"undefined"};if(window.location.href.indexOf("".concat("disableSpeedKit","=1"))>=0?e.group="B":window.location.href.indexOf("".concat("enableSpeedKit","=1"))>=0&&(e.group="A"),e.group)return H(f,encodeURIComponent(JSON.stringify(e))),e}()||Vt(f),m=Vt(g),y=function(e,t,n){var i=!1;if(n)return r.group="optOut",i;if(null==r.split){var o="undefined"===e.testId&&"undefined"!==e.group;r.group=o?e.group:"A"}else i=xt(e,f);Ut()&&(r.secondarySplit=null);if(null!=r.secondarySplit&&"A"===r.group){var a=xt(t,g);i=i||a}return i}(h,m,s),S=function(){var e=window.SpeedKit.userId,t=SpeedKit.trackingOptionsProvider.getTrackingOptions(),n=!t.noTracking&&!t.performanceOnly;return window.SpeedKit.userId||(e=n?G():""),{userInfo:{userId:e},persisted:at(e)}}(),b=S.userInfo,k=S.persisted,T=function(e,t){var n=null===j(u)&&null===j(f)&&null===j(g);if(!n)return!1;if(n&&e)return!0;if(t)return!1;return H(u,"testDenied"),n=null===j(u),At(u),n}(y&&k,s),C=t.userAgent.indexOf("Firefox/")>=0;new Xt(r),function(e,n){r.sw=r.sw||"/sw.js",null!=r.split&&r.group&&(r.sw=(i=r.sw,o="gr",a=r.group,s=i.indexOf("?")>-1?"&":"?","".concat(i).concat(s).concat(o,"=").concat(a)));var i,o,a,s;void 0===r.isControlGroup&&(r.isControlGroup=(c=r.group,u=r.secondaryGroup,"B"===c||"A"===c&&"B"===u));var c,u;var d=!r.enableForWebViews&&Et(t.userAgent);r.disabled=!1===r.enabled||r.disabled||"B"===r.group||"B"===r.secondaryGroup||d||Pt()||e,r.appURL="https://".concat(r.appDomain||"{}.app.baqend.com".replace("{}",r.appName),"/v1"),r.customVariation&&r.customVariation.forEach((function(e){e.rules&&0!==e.rules.length||(e.rules=[{contentType:[ge.Document]}])}));"object"==typeof r.apiChangeDetection&&(r.apiChangeDetection.onChange=void 0,r.apiChangeDetection.compare=void 0,r.apiChangeDetection.compareKeys=void 0);if("function"==typeof r.precache)try{var l=r.precache;r.precache=l.call(null)}catch(p){r.precache=[],V(p,U.CONFIG)}mn("customDevice"),ot()?r.detectDevice=null:mn("detectDevice");(function e(t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n],o=t[i];"function"==typeof o?t[i]=o.toString():"object"==typeof o&&null!==o&&(t[i]=e(o))}return t})(r),Array.isArray(r.shouldDetectDevice)&&0!==r.shouldDetectDevice.length||(r.shouldDetectDevice=[{contentType:[ge.Document]}]);(n||Je())&&(r.navigationPreload=!1);void 0===r.fetchInUnload&&(r.fetchInUnload=!0)}(s,C),new ln(r);var N=function(e,i,o,a){var s=function(e,t,n,i){var o=r.group,a=window.SpeedKit.navigateId||"".concat(I(32)),s=ve(),c=t.userId,u=e.browser,d=e.browserVersion,l=e.minorVersion,p="undefined"!==n.testId||i?n.testId:void 0,f="undefined"!==n.group||i?n.group:void 0,g={navigationStart:s,testGroup:o,piId:a,testId:me(r.splitTestId,!!r.secondaryGroup)},h=new Ve(g,{userId:c}),v=h.trackCustomEvent.bind(h),m=h.getTrackedData.bind(h),y={navigateId:a,userId:c,group:o,actualGroup:f,rumController:h,getTrackedData:m,track:v,subscribe:gt,bypassDeactivation:mt,activate:yt,deactivate:St,split:"number"==typeof r.split?"B"===r.group?qe(r.split):r.split:1,updateDevice:vt,getHash:bt,simulateOfflineMode:kt,fetchBloomFilter:Tt,updateCookies:Ct,preload:Lt,stripQueryParameter:Oe,actualSplitTestId:p,setAuthToken:Dt,testSpeedKitRule:Ce,disabled:!1,lastNavigate:e,readyState:Me.Loading,splitTestId:r.splitTestId,controllingServiceWorker:et(),executionTime:Date.now(),swSupported:Nt(u,d,l),skSupported:It(u,d,l),screenResolution:{width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio},pageTypeEnabled:Rt(r),isPageTypeEnabled:function(e){return Rt(r,e)}};return Object.keys(window.SpeedKit).forEach((function(e){("boolean"==typeof window.SpeedKit[e]||"number"==typeof window.SpeedKit[e]||window.SpeedKit[e])&&(y[e]=window.SpeedKit[e])})),window.SpeedKit=y,h.initializePlugins(),window.SpeedKit}(e,i,o,a);s.disabled="B"!==r.group&&"B"!==r.secondaryGroup&&!!Bt(),t[n]&&t[n].controller||!ot()||(s.lastNavigate.responseSource=Ge.SDN);return s}(Ft(T,c,h,m),b,h,c),O=SpeedKit.trackingOptionsProvider.getTrackingOptions();zt(s,O),function(t){var n,r;e.prerendering?e.addEventListener("prerenderingchange",(function(){var e,n;t.lastNavigate.activationStart=null===(n=null===(e=null===performance||void 0===performance?void 0:performance.getEntriesByType)||void 0===e?void 0:e.call(performance,"navigation")[0])||void 0===n?void 0:n.activationStart,it(t)}),{once:!0}):t.lastNavigate.activationStart=null===(r=null===(n=null===performance||void 0===performance?void 0:performance.getEntriesByType)||void 0===n?void 0:n.call(performance,"navigation")[0])||void 0===r?void 0:r.activationStart}(N),O.noTracking||T||fn(N);lt((function(){O.noTracking||T||fn(N)})),Mt(N.lastNavigate.responseCause)||Bt()||(E=t.serviceWorker.register,Object.defineProperty(t.serviceWorker,"register",{configurable:!0,get:function(){return function(e,n){var i=X(r).split("/").pop();return i&&!e.includes(i)?t.serviceWorker.getRegistration():E.call(t.serviceWorker,e,n)}}}));var E;if(Mt(N.lastNavigate.responseCause))return yn(!1),Qt(N),void ut(N);var R=t[n].controller,L=te(R);!R||L||function(e,t){return"B"===r.group||"B"===r.secondaryGroup||("B"===e.lastNavigate.group||(!!Bt()||t))}(N,c)||(N.lastNavigate.responseCause=Ue.OtherSwInstalled);Qt(N),void t.serviceWorker.getRegistrations().then((function(e){var n=X(r),i=new URL(r.scope||"/",location.origin).toString();e.some((function(e){return e.scope===i&&$t(e)===n}))&&1===Qe()&&e.length>0&&!t.serviceWorker.controller&&(SpeedKit.lastNavigate.responseCause=Ue.HardReload)})).catch((function(){SpeedKit.lastNavigate.responseCause=Ue.SkUnsupported,SpeedKit.skSupported=!1,it(SpeedKit)})),L?function(i,o,a){a&&!e.referrer&&function(t){dt(t,{type:"get-referrer-info",clientURL:Ze()}).then((function(t){!e.referrer&&t.referrer&&Object.defineProperty(e,"referrer",{configurable:!0,get:function(){return t.referrer}})}))}(o);pt(o,i),Ct("load"),(new rn).cookieListener(),function(e){t[n].addEventListener("message",(function(t){var n=t.data,r=n.type,i=n.payload;"asset-response-timings"===r&&(e.lastNavigate=Object.assign(e.lastNavigate,i),it(e))}))}(i),r.watchStorageKeys&&"undefined"!=typeof Storage&&(en(r.watchStorageKeys),nn(r.watchStorageKeys));Je()&&Qe()===je.reload&&Tt();!function(e){dt(e,{type:"auth-token",data:sessionStorage.getItem(w)})}(o)}(N,R,C):ut(N);var D=function(){var e=window.location.href.indexOf("".concat("enableSpeedKit","=1"))>=0,t=window.location.href.indexOf("".concat("disableSpeedKit","=1"))>=0,n=e&&!t;n&&(sessionStorage.setItem("enableSpeedKitParam","1"),mt(!0));return n}();if(Bt()&&!D)return void yn();if(!R)return pn();A=!1,P((function(){A||(A=!0,pn())})),Wt((function(){setTimeout((function(){A||(A=!0,pn())}),1e3)}));var A}()}catch(Sn){V(Sn,U.SNIPPET)}function pn(){var e=!1;gn().catch((function(t){return e||V(t,U.SNIPPET),e=!0,vn().then((function(){return gn()}))})).then((function(){return jt(SpeedKit)})).catch((function(t){return function(e){return["The operation is insecure","A mutation operation was attempted on a database that did not allow mutations","The user denied permission to use Service Worker"].some((function(t){return e.indexOf(t)>-1}))||"Rejected"===e}(M(t)?t.reason.message||JSON.stringify(t.reason):t.message)?(SpeedKit.lastNavigate.responseCause=Ue.SkUnsupported,SpeedKit.skSupported=!1,it(SpeedKit),hn()):(e||V(t,U.SNIPPET),e=!0,hn())})).catch((function(t){e||V(t,U.SNIPPET),e=!0}))}function fn(e){it(e),st(e)}function gn(){var n=ht(r.scope),i=new N(n),o=window.devicePixelRatio,a=window.screen.width,s="ontouchend"in e,c=t.userAgent,u=r.customDevice,d=u?i.set("/com.baqend.speedkit.device",{device:u,userAgent:c}):Promise.resolve();return Promise.all([i.set("/com.baqend.speedkit.config",r),i.set("/com.baqend.speedkit.screen",{dpr:o,width:a,supportsTouch:s}),i.set("/com.baqend.speedkit.cookie",{origins:[[location.origin,e.cookie]]}),d]).then((function(){return i.disconnect()}))}function hn(){var e=new URL(r.scope||"/",location.origin).toString(),i=X(r);return t[n].getRegistrations().then((function(t){return t.forEach((function(t){var n=$t(t);if(t.scope!==e||n!==i){var o=t.active||t.installing||t.waiting;o&&ee(r,o)&&t.unregister()}else t.unregister()}))})).catch((function(){return null})).then((function(){return vn()}))}function vn(){return Promise.all([window.caches?caches.keys().then((function(e){var t=e.filter((function(e){return new RegExp("^".concat(C(s,r.scope),".*")).test(e)}));return Promise.all(t.map((function(e){return caches.delete(e)})))})):Promise.resolve(),(e=new N(r.scope),e.clear().then((function(){return e.disconnect()})))]);var e}function mn(t){if(r[t]){if("function"!=typeof r[t])return vt(r[t]);var n=r[t];r[t]=null,Wt((function(){try{var r="detectDevice"===t?e:void 0,i=n.call(null,r);Promise.resolve(i).then((function(e){e&&"string"==typeof e&&vt(e)})).catch((function(e){V(e,U.CONFIG)}))}catch(Sn){V(Sn,U.CONFIG)}}))}}function yn(e){void 0===e&&(e=!0),t[n]&&hn().catch((function(t){e&&V(t,U.SNIPPET)}))}}(document,navigator,"serviceWorker","undefined"!=typeof speedKit?speedKit:config,"SNIPPET_LOADED");})();