/*
 * Copyright (c) 2011, Yahoo! Inc.  All rights reserved.
 * Copyright (c) 2011-2012, Log-Normal, Inc.  All rights reserved.
 * Copyright (c) 2012-2017, SOASTA, Inc. All rights reserved.
 * Copyright (c) 2017-2022, Akamai Technologies, Inc. All rights reserved.
 * Copyrights licensed under the BSD License. See the accompanying LICENSE.txt file for terms.
 */
/* Boomerang Version: 1.746.80 818c91c84863d127f5c4c68f7618859d027152fb */

BOOMR_start=(new Date).getTime();function BOOMR_check_doc_domain(e){if(window){if(!e){if(window.parent===window||!document.getElementById("boomr-if-as"))return;if(window.BOOMR&&BOOMR.boomerang_frame&&BOOMR.window)try{BOOMR.boomerang_frame.document.domain!==BOOMR.window.document.domain&&(BOOMR.boomerang_frame.document.domain=BOOMR.window.document.domain)}catch(t){BOOMR.isCrossOriginError(t)||BOOMR.addError(t,"BOOMR_check_doc_domain.domainFix")}e=document.domain}if(e&&-1!==e.indexOf(".")&&window.parent){try{window.parent.document;return}catch(t){try{document.domain=e}catch(n){return}}try{window.parent.document;return}catch(t){e=e.replace(/^[\w\-]+\./,"")}BOOMR_check_doc_domain(e)}}}BOOMR_check_doc_domain();!function(c){var u,t,a,o,s,e,l,n=c;c.parent!==c&&document.getElementById("boomr-if-as")&&"script"===document.getElementById("boomr-if-as").nodeName.toLowerCase()&&(c=c.parent);a=c.document;c.BOOMR||(c.BOOMR={});BOOMR=c.BOOMR;if(!BOOMR.version){BOOMR.version="1.746.80";BOOMR.window=c;BOOMR.boomerang_frame=n;BOOMR.plugins||(BOOMR.plugins={});!function(){try{new c.CustomEvent("CustomEvent")!==undefined&&(o=function(e,t){return new c.CustomEvent(e,t)})}catch(e){}try{!o&&a.createEvent&&a.createEvent("CustomEvent")&&(o=function(e,t){var n=a.createEvent("CustomEvent");n.initCustomEvent(e,(t=t||{cancelable:!1,bubbles:!1}).bubbles,t.cancelable,t.detail);return n})}catch(e){}o=(o=!o&&a.createEventObject?function(e,t){var n=a.createEventObject();n.type=n.propertyName=e;n.detail=t.detail;return n}:o)||function(){return undefined}}();s=function(e,t,n){var r=o(e,{detail:t});r&&(n?BOOMR.setImmediate(i):i());function i(){try{a.dispatchEvent?a.dispatchEvent(r):a.fireEvent&&a.fireEvent("onpropertychange",r)}catch(e){}}};if("undefined"!=typeof a.hidden){e="visibilityState";l="visibilitychange"}else if("undefined"!=typeof a.mozHidden){e="mozVisibilityState";l="mozvisibilitychange"}else if("undefined"!=typeof a.msHidden){e="msVisibilityState";l="msvisibilitychange"}else if("undefined"!=typeof a.webkitHidden){e="webkitVisibilityState";l="webkitvisibilitychange"}u={beacon_url:"",beacon_url_force_https:!0,beacon_urls_allowed:["^//[a-z0-9]+\\.akstat\\.io/?$"],beacon_type:"AUTO",beacon_auth_key:"Authorization",beacon_auth_token:undefined,beacon_with_credentials:!1,beacon_disable_sendbeacon:!1,site_domain:c.location.hostname.replace(/.*?([^.]+\.[^.]+)\.?$/,"$1").toLowerCase(),user_ip:"",autorun:!0,hasSentPageLoadBeacon:!1,r:undefined,same_site_cookie:"Lax",secure_cookie:!1,forced_same_site_cookie_none:!1,events:{page_ready:[],page_unload:[],before_unload:[],dom_loaded:[],visibility_changed:[],prerender_to_visible:[],before_beacon:[],beacon:[],page_load_beacon:[],xhr_load:[],click:[],form_submit:[],config:[],xhr_init:[],spa_init:[],spa_navigation:[],spa_cancel:[],xhr_send:[],xhr_error:[],error:[],netinfo:[],rage_click:[],before_early_beacon:[]},public_events:{before_beacon:"onBeforeBoomerangBeacon",beacon:"onBoomerangBeacon",onboomerangloaded:"onBoomerangLoaded"},translate_events:{onbeacon:"beacon",onconfig:"config",onerror:"error",onxhrerror:"xhr_error"},unloadEventsCount:0,unloadEventCalled:0,listenerCallbacks:{},vars:{},singleBeaconVars:{},varPriority:{"-1":{},1:{}},errors:{},disabled_plugins:{},localStorageSupported:!1,LOCAL_STORAGE_PREFIX:"_boomr_",nativeOverwrites:[],xb_handler:function(n){return function(e){var t;(e=e||c.event).target?t=e.target:e.srcElement&&(t=e.srcElement);(t=3===t.nodeType?t.parentNode:t)&&t.nodeName&&"OBJECT"===t.nodeName.toUpperCase()&&"application/x-shockwave-flash"===t.type||u.fireEvent(n,t)}},clearEvents:function(){for(var e in this.events)this.events.hasOwnProperty(e)&&(this.events[e]=[])},clearListeners:function(){for(var e in u.listenerCallbacks)if(u.listenerCallbacks.hasOwnProperty(e))for(;u.listenerCallbacks[e].length;)BOOMR.utils.removeListener(u.listenerCallbacks[e][0].el,e,u.listenerCallbacks[e][0].fn);u.listenerCallbacks={}},fireEvent:function(e,t){var n,r,i,o;e=e.toLowerCase();this.translate_events[e]&&(e=this.translate_events[e]);if(this.events.hasOwnProperty(e)){this.public_events.hasOwnProperty(e)&&s(this.public_events[e],t);i=this.events[e];"before_beacon"!==e&&"beacon"!==e&&"before_early_beacon"!==e&&BOOMR.real_sendBeacon();o=i.length;for(n=0;n<o;n++)try{(r=i[n]).fn.call(r.scope,t,r.cb_data)}catch(a){BOOMR.addError(a,"fireEvent."+e+"<"+n+">")}for(n=0;n<o;n++)if(i[n].once){i.splice(n,1);o--;n--}}},spaNavigation:function(){u.onloadfired=!0},beaconUrlAllowed:function(e){if(!u.beacon_urls_allowed||0===u.beacon_urls_allowed.length)return!0;for(var t=0;t<u.beacon_urls_allowed.length;t++)if(new RegExp(u.beacon_urls_allowed[t]).exec(e))return!0;return!1},checkLocalStorageSupport:function(){var e=u.LOCAL_STORAGE_PREFIX+"clss";u.localStorageSupported=!1;try{if(!c.JSON||!c.localStorage)return;c.localStorage.setItem(e,e);u.localStorageSupported=c.localStorage.getItem(e)===e;c.localStorage.removeItem(e)}catch(t){u.localStorageSupported=!1}},onFrameUnloaded:function(){var e,t;BOOMR.isUnloaded=!0;for(e=0;e<u.nativeOverwrites.length;e++)(t=u.nativeOverwrites[e]).obj[t.functionName]=t.origFn;u.nativeOverwrites=[]}};t={t_start:BOOMR_start,t_end:undefined,url:"",config_url:null,loadedLate:!1,beaconsSent:0,isUnloaded:!1,beaconInQueue:!1,cookies:{},testedCookies:!1,constants:{BEACON_TYPE_SPAS:["spa","spa_hard"],MAX_GET_LENGTH:2e3},session:{domain:u.site_domain,ID:undefined,start:undefined,length:0,enabled:!0},utils:{hasPostMessageSupport:function(){return!(!c.postMessage||"function"!=typeof c.postMessage&&"object"!=typeof c.postMessage)},objectToString:function(e,t,n){var r,i=[];if(!e||"object"!=typeof e)return e;t===undefined&&(t="\n\t");n=n||0;if(BOOMR.utils.isArray(e)){for(r=0;r<e.length;r++)0<n&&null!==e[r]&&"object"==typeof e[r]?i.push(this.objectToString(e[r],t+("\n\t"===t?"\t":""),n-1)):"&"===t?i.push(encodeURIComponent(e[r])):i.push(e[r]);t=","}else for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&(0<n&&null!==e[r]&&"object"==typeof e[r]?i.push(encodeURIComponent(r)+"="+this.objectToString(e[r],t+("\n\t"===t?"\t":""),n-1)):"&"===t?i.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r])):i.push(r+"="+e[r]));return i.join(t)},getCookie:function(e){var t;if(!e)return null;if("undefined"!=typeof BOOMR.cookies[e])return!1===BOOMR.cookies[e]?undefined:BOOMR.cookies[e];if(void 0===(t=this.getRawCookie(e))){BOOMR.cookies[e]=!1;return undefined}BOOMR.cookies[e]=t;return BOOMR.cookies[e]},getRawCookie:function(e){if(!e)return null;var t,n=" "+a.cookie+";";if(0<=(t=n.indexOf(e=" "+e+"="))){t+=e.length;return n.substring(t,n.indexOf(";",t)).replace(/^"/,"").replace(/"$/,"")}},setCookie:function(e,t,n){var r,i;if(!e||!BOOMR.session.domain||void 0===t){BOOMR.addVar("nocookie",1);return!1}if((r=this.objectToString(t,"&"))===BOOMR.cookies[e])return!0;if((i=e+'="'+r+'"').length<500){t=[i,"path=/","domain="+BOOMR.session.domain];if("number"==typeof n){(o=new Date).setTime(o.getTime()+1e3*n);o=o.toGMTString();t.push("expires="+o)}var o=this.getSameSiteAttributeParts();"https:"===location.protocol&&!0===u.secure_cookie&&-1===o.indexOf("Secure")&&o.push("Secure");t=t.concat(o);a.cookie=t.join("; ");if(BOOMR.testedCookies){BOOMR.cookies[e]="number"!=typeof n||0<n?r:undefined;return!0}BOOMR.cookies[e]=undefined;if(r===(t=this.getRawCookie(e))||void 0===t&&"number"==typeof n&&n<=0){BOOMR.cookies[e]=r;BOOMR.testedCookies=!0;BOOMR.removeVar("nocookie");return!0}BOOMR.warn("Saved cookie value doesn't match what we tried to set:\n"+r+"\n"+t)}else BOOMR.warn("Cookie too long: "+i.length+" "+i);BOOMR.addVar("nocookie",1);return!1},getSubCookies:function(e){var t,n,r,i,o=!1,a={};if(!e)return null;if("string"!=typeof e)return null;for(n=0,r=(t=e.split("&")).length;n<r;n++)if((i=t[n].split("="))[0]){i.push("");a[decodeURIComponent(i[0])]=decodeURIComponent(i[1]);o=!0}return o?a:null},removeCookie:function(e){return this.setCookie(e,{},-86400)},getSameSiteAttributeParts:function(){var e=u.same_site_cookie.toUpperCase();return"LAX"===(e=u.forced_same_site_cookie_none?"NONE":e)?["SameSite=Lax"]:"NONE"===e?"https:"===location.protocol&&this.isCurrentUASameSiteNoneCompatible()?["SameSite=None","Secure"]:[]:"STRICT"===e?["SameSite=Strict"]:["SameSite=Lax"]},getLocalStorage:function(e){var t,n;if(!e||!u.localStorageSupported)return null;try{if(null===(t=c.localStorage.getItem(u.LOCAL_STORAGE_PREFIX+e)))return undefined;n=c.JSON.parse(t)}catch(r){BOOMR.warn(r);return null}if(!n||"object"!=typeof n.items){this.removeLocalStorage(e);return null}if("number"==typeof n.expires&&BOOMR.now()>=n.expires){this.removeLocalStorage(e);return undefined}return n.items},setLocalStorage:function(e,t,n){var r;if(!e||!u.localStorageSupported||"object"!=typeof t)return!1;t={items:t};"number"==typeof n&&(t.expires=BOOMR.now()+1e3*n);if((t=c.JSON.stringify(t)).length<5e4){try{c.localStorage.setItem(u.LOCAL_STORAGE_PREFIX+e,t);if(t===(r=c.localStorage.getItem(u.LOCAL_STORAGE_PREFIX+e)))return!0}catch(i){}BOOMR.warn("Saved storage value doesn't match what we tried to set:\n"+t+"\n"+r)}else BOOMR.warn("Storage items too large: "+t.length+" "+t);return!1},removeLocalStorage:function(e){if(!e||!u.localStorageSupported)return!1;try{c.localStorage.removeItem(u.LOCAL_STORAGE_PREFIX+e);return!0}catch(t){}return!1},cleanupURL:function(e,t){if(!e||BOOMR.utils.isArray(e))return"";u.strip_query_string&&(e=e.replace(/\?.*/,"?qs-redacted"));if(void 0!==t&&e&&e.length>t){var n=e.indexOf("?");e=-1!==n&&n<t?e.substr(0,n)+"?...":e.substr(0,t-3)+"..."}return e},hashQueryString:function(e,t){if(!e)return e;if(!e.match){BOOMR.addError("TypeError: Not a string","hashQueryString",typeof e);return""}if((e=e.match(/^\/\//)?location.protocol+e:e).match(/^(https?|file):/))return(e=t?e.replace(/#.*/,""):e).replace(/\?([^#]*)/,function(e,t){return"?"+(10<t.length?BOOMR.utils.hashString(t):t)});BOOMR.error("Passed in URL is invalid: "+e);return""},pluginConfig:function(e,t,n,r){var i,o=0;if(!t||!t[n])return!1;for(i=0;i<r.length;i++)if(t[n][r[i]]!==undefined){e[r[i]]=t[n][r[i]];o++}return 0<o},arrayFilter:function(e,t){var n=[];if(!(this.isArray(e)||e&&"number"==typeof e.length)||"function"!=typeof t)return n;if("function"==typeof e.filter)n=e.filter(t);else for(var r,i=-1,o=e.length;++i<o;)t(r=e[i],i,e)&&(n[n.length]=r);return n},arrayFind:function(e,t){if(!(this.isArray(e)||e&&"number"==typeof e.length)||"function"!=typeof t)return undefined;if("function"==typeof e.find)return e.find(t);for(var n,r=-1,i=e.length;++r<i;)if(t(n=e[r],r,e))return n;return undefined},isMutationObserverSupported:function(){return!(c&&c.navigator&&c.navigator.userAgent&&c.navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&c&&c.MutationObserver&&"function"==typeof c.MutationObserver},addObserver:function(e,t,n,r,i,o){var a,s,u={observer:null,timer:null};if(!this.isMutationObserverSupported()||!r||!e)return null;function l(e){var t=!1;if(u.timer){clearTimeout(u.timer);u.timer=null}r&&((t=r.call(o,e,i))||(r=null));if(!t&&u.observer){u.observer.disconnect();u.observer=null}"number"==typeof t&&0<t&&(u.timer=setTimeout(l,t))}a=c.MutationObserver;c.Zone&&"function"==typeof c.Zone.__symbol__&&(s=c.Zone.__symbol__("MutationObserver"))&&"string"==typeof s&&c.hasOwnProperty(s)&&"function"==typeof c[s]&&(a=c[s]);u.observer=new a(l);n&&(u.timer=setTimeout(l,u.timeout));u.observer.observe(e,t);return u},addListener:function(e,t,n,r){var i=!1;if(e.addEventListener){"object"==typeof r?i=r:"boolean"==typeof r&&r&&BOOMR.browser.supportsPassive()&&(i={capture:!1,passive:!0});e.addEventListener(t,n,i)}else e.attachEvent&&e.attachEvent("on"+t,n);u.listenerCallbacks[t]=u.listenerCallbacks[t]||[];u.listenerCallbacks[t].push({el:e,fn:n})},removeListener:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n);if(u.listenerCallbacks.hasOwnProperty(t))for(var r=0;r<u.listenerCallbacks[t].length;r++)if(n===u.listenerCallbacks[t][r].fn&&e===u.listenerCallbacks[t][r].el){u.listenerCallbacks[t].splice(r,1);return}},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},inArray:function(e,t){var n;if(void 0===e||void 0===t||!t.length)return!1;for(n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},getQueryParamValue:function(e,t){var n,r,i,o;if(!e)return null;"string"==typeof t?(n=BOOMR.window.document.createElement("a")).href=t:n="object"==typeof t&&"string"==typeof t.search?t:BOOMR.window.location;r=n.search.slice(1).split(/&/);for(i=0;i<r.length;i++)if(r[i]&&(o=r[i].split("=")).length&&o[0]===e)try{return 1<o.length?decodeURIComponent(o.splice(1).join("=").replace(/\+/g," ")):""}catch(a){if(!a||"string"!=typeof a.name||-1===a.name.indexOf("URIError"))throw a}return null},generateUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},generateId:function(e){return"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".substr(0,e||40).replace(/x/g,function(e){return"0"===(e=(Math.random()||.01).toString(36))?"0":e.substr(2,1)})},serializeForUrl:function(e){return BOOMR.utils.Compression&&BOOMR.utils.Compression.jsUrl?BOOMR.utils.Compression.jsUrl(e):window.JSON?JSON.stringify(e):""},getMyURL:function(){var e,t=document.currentScript||document.getElementById("boomr-if-as")||document.getElementById("boomr-scr-as");if(t)return t.src;for(var n=document.getElementsByTagName("script"),r=n.length;r--;)if("interactive"===n[r].readyState)return n[r].src;try{throw new Error}catch(i){if("stack"in i&&(e=this.arrayFilter(i.stack.split(/\n/),function(e){return e.match(/https?:\/\//)}))&&e.length)return e[0].replace(/.*(https?:\/\/.+?)(:\d+)+\D*$/m,"$1")}return""},scroll:function(){var e=c.pageXOffset!==undefined,t="CSS1Compat"===(c.document.compatMode||""),n={x:0,y:0};if(e)if("function"==typeof c.pageXOffset){n.x=c.pageXOffset();n.y=c.pageYOffset()}else{n.x=c.pageXOffset;n.y=c.pageYOffset}else if(t){n.x=c.document.documentElement.scrollLeft;n.y=c.document.documentElement.scrollTop}else{n.x=c.document.body.scrollLeft;n.y=c.document.body.scrollTop}"number"==typeof n.sx&&(n.sx=Math.round(n.sx));"number"==typeof n.sy&&(n.sy=Math.round(n.sy));return n},windowHeight:function(){return c.innerHeight||c.document.documentElement.clientHeight||c.document.body.clientHeight},windowWidth:function(){return c.innerWidth||c.document.documentElement.clientWidth||c.document.body.clientWidth},isNative:function(e){return!!e&&e.toString&&!e.hasOwnProperty("toString")&&/\[native code\]/.test(String(e))},overwriteNative:function(e,t,n){if(e&&n){BOOMR.boomerang_frame!==BOOMR.window&&u.nativeOverwrites.push({obj:e,functionName:t,origFn:e[t]});e[t]=n}},isInteger:function(e){return(Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e})(e)},isObjectEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},hashString:function(e){e=encodeURIComponent(e);for(var t=2166136261,n=0;n<e.length;n++){t^=e.charCodeAt(n);t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24)}var r=(t>>>0).toString()+e.length;return parseInt(r).toString(36)},isCurrentUASameSiteNoneCompatible:function(){return!(c&&c.navigator&&c.navigator.userAgent&&"string"==typeof c.navigator.userAgent)||this.isUASameSiteNoneCompatible(c.navigator.userAgent)},isUASameSiteNoneCompatible:function(e){var t=e.match(/(UCBrowser)\/(\d+\.\d+)\.(\d+)/);if(t){var n=parseFloat(t[2]),r=t[3];return 12.13===n?!(r<=2):!(n<12.13)}if(t=e.match(/(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+)/)){n=t[2];return 51<=n&&n<=66?!1:!0}return(t=e.match(/(Macintosh;.*Mac OS X 10_14[_\d]*.*) AppleWebKit\//))?(!(t=e.match(/Version\/.* Safari\//))||null!==(t=e.match(/Chrom(?:e|ium)/)))&&!(t=e.match(/^Mozilla\/\d+(?:\.\d+)* \(Macintosh;.*Mac OS X \d+(?:_\d+)*\) AppleWebKit\/\d+(?:\.\d+)* \(KHTML, like Gecko\)$/)):!(t=e.match(/(iP.+; CPU .*OS 12(?:_\d+)*.*)/))}},browser:{results:{},supportsPassive:function(){if("undefined"==typeof BOOMR.browser.results.supportsPassive){BOOMR.browser.results.supportsPassive=!1;if(!Object.defineProperty)return!1;try{var e=Object.defineProperty({},"passive",{get:function(){BOOMR.browser.results.supportsPassive=!0}});window.addEventListener("test",null,e)}catch(t){}}return BOOMR.browser.results.supportsPassive}},init:function(e){var t,n,r=["autorun","beacon_auth_key","beacon_auth_token","beacon_with_credentials","beacon_disable_sendbeacon","beacon_url","beacon_url_force_https","beacon_type","site_domain","strip_query_string","user_ip","same_site_cookie","secure_cookie"];BOOMR_check_doc_domain();(e=e||{}).log!==undefined&&(this.log=e.log);this.log||(this.log=function(){});this.pageId||(this.pageId=BOOMR.utils.generateId(8));if(e.primary&&u.handlers_attached)return this;if("undefined"!=typeof e.site_domain){/:/.test(e.site_domain)&&(e.site_domain=c.location.hostname.toLowerCase());this.session.domain=e.site_domain}BOOMR.session.enabled&&"undefined"==typeof BOOMR.session.ID&&(BOOMR.session.ID=BOOMR.utils.generateUUID());"undefined"!=typeof e.autorun&&(u.autorun=e.autorun);for(n in this.plugins)if(this.plugins.hasOwnProperty(n))if(e[n]&&e[n].hasOwnProperty("enabled")&&!1===e[n].enabled){u.disabled_plugins[n]=1;"function"==typeof this.plugins[n].disable&&this.plugins[n].disable()}else{if(u.disabled_plugins[n]){if(!e[n]||!e[n].hasOwnProperty("enabled")||!0!==e[n].enabled)continue;"function"==typeof this.plugins[n].enable&&this.plugins[n].enable();delete u.disabled_plugins[n]}if("function"==typeof this.plugins[n].init)try{this.plugins[n].init(e)}catch(i){BOOMR.addError(i,n+".init")}}for(t=0;t<r.length;t++)e[r[t]]!==undefined&&(u[r[t]]=e[r[t]]);if(!u.handlers_attached&&!e.wait||u.handlers_attached&&u.waiting_for_config){if(!u.onloadfired&&(u.autorun===undefined||!1!==u.autorun)){BOOMR.hasBrowserOnloadFired()&&(BOOMR.loadedLate=!0);BOOMR.attach_page_ready(BOOMR.page_ready_autorun)}u.waiting_for_config=!1}if(u.handlers_attached)return this;e.wait&&(u.waiting_for_config=!0);BOOMR.attach_page_ready(function(){BOOMR.t_onload||(BOOMR.t_onload=BOOMR.now())});BOOMR.utils.addListener(c,"DOMContentLoaded",function(){u.fireEvent("dom_loaded")});BOOMR.fireEvent("config",e);BOOMR.subscribe("config",function(e){e.beacon_url&&(u.beacon_url=e.beacon_url)});BOOMR.subscribe("spa_navigation",u.spaNavigation,null,u);!function(){var e,t;if(l!==undefined){BOOMR.utils.addListener(a,l,function(){u.fireEvent("visibility_changed")});u.lastVisibilityState=BOOMR.visibilityState();BOOMR.subscribe("visibility_changed",function(){var e=BOOMR.visibilityState();BOOMR.lastVisibilityEvent[e]=BOOMR.now();if("prerender"===u.lastVisibilityState&&"prerender"!==e){BOOMR.addVar("vis.pre","1");u.fireEvent("prerender_to_visible")}u.lastVisibilityState=e})}BOOMR.utils.addListener(a,"mouseup",u.xb_handler("click"));e=a.getElementsByTagName("form");for(t=0;t<e.length;t++)BOOMR.utils.addListener(e[t],"submit",u.xb_handler("form_submit"));c.onpagehide||null===c.onpagehide||BOOMR.utils.addListener(c,"unload",function(){BOOMR.window=c=null});BOOMR.boomerang_frame!==BOOMR.window&&BOOMR.utils.addListener(BOOMR.boomerang_frame,"unload",u.onFrameUnloaded)}();u.handlers_attached=!0;return this},attach_page_ready:function(e){BOOMR.hasBrowserOnloadFired()?this.setImmediate(e,null,null,BOOMR):c.onpagehide||null===c.onpagehide?BOOMR.utils.addListener(c,"pageshow",e):BOOMR.utils.addListener(c,"load",e)},page_ready_autorun:function(e){u.autorun&&BOOMR.page_ready(e,!0)},page_ready:function(e,t){var n;if(!t&&"number"==typeof e){n=e;e=null}e=(e=e||c.event)||{name:"load"};if(t){if("number"==typeof c.BOOMR_page_ready){e.timing=e.timing||{};e.timing.loadEventEnd=c.BOOMR_page_ready;BOOMR.addVar("pr",1,!0)}}else{e.timing=e.timing||{};n?e.timing.loadEventEnd=n:"number"==typeof c.BOOMR_page_ready?e.timing.loadEventEnd=c.BOOMR_page_ready:e.timing.loadEventEnd=BOOMR.now();BOOMR.addVar("pr",1,!0)}if(u.onloadfired)return this;u.fireEvent("page_ready",e);u.onloadfired=!0;return this},hasBrowserOnloadFired:function(){var e=BOOMR.getPerformance();return a.readyState&&"complete"===a.readyState||e&&e.timing&&0<e.timing.loadEventStart||0<c.BOOMR_onload},onloadFired:function(){return u.onloadfired},setImmediate:function(e,t,n,r){var i=function(){e.call(r||null,t,n||{},void 0);i=null};c.requestIdleCallback?c.requestIdleCallback(i,{timeout:1e3}):c.setImmediate?c.setImmediate(i):setTimeout(i,10)},now:Date.now||function(){return(new Date).getTime()},getPerformance:function(){try{if(BOOMR.window)return"performance"in BOOMR.window&&BOOMR.window.performance?BOOMR.window.performance:BOOMR.window.msPerformance||BOOMR.window.webkitPerformance||BOOMR.window.mozPerformance}catch(e){}},forceSameSiteCookieNone:function(){u.forced_same_site_cookie_none=!0},hrNow:function(){var e,t=BOOMR.getPerformance();if(t&&t.now)e=t.now();else{t=BOOMR.plugins.RT&&BOOMR.plugins.RT.navigationStart&&BOOMR.plugins.RT.navigationStart()||BOOMR.t_lstart||BOOMR.t_start;e=BOOMR.now()-t}return e},visibilityState:e===undefined?function(){return"visible"}:function(){return a[e]},lastVisibilityEvent:{},registerEvent:function(e){if(u.events.hasOwnProperty(e))return this;u.events[e]=[];return this},disable:function(){u.clearEvents();u.clearListeners()},fireEvent:function(e,t){return u.fireEvent(e,t)},subscribe:function(t,n,r,i,e){var o,a,s;t=t.toLowerCase();u.translate_events[t]&&(t=u.translate_events[t]);u.events.hasOwnProperty(t)||(u.events[t]=[]);s=u.events[t];for(o=0;o<s.length;o++)if((a=s[o])&&a.fn===n&&a.cb_data===r&&a.scope===i)return this;s.push({fn:n,cb_data:r||{},scope:i||null,once:e||!1});"page_ready"===t&&u.onloadfired&&u.autorun&&this.setImmediate(n,null,r,i);if("page_unload"===t||"before_unload"===t){u.unloadEventsCount++;!function(){s.length;var e=function(e){n&&n.call(i,e||c.event,r);++u.unloadEventCalled===u.unloadEventsCount&&BOOMR.real_sendBeacon()};"page_unload"===t&&(c.onpagehide||null===c.onpagehide?BOOMR.utils.addListener(c,"pagehide",e):BOOMR.utils.addListener(c,"unload",e));BOOMR.utils.addListener(c,"beforeunload",e)}()}return this},addError:function BOOMR_addError(e,t,n){var r=BOOMR.plugins.Errors;BOOMR.error("Boomerang caught error: "+e+", src: "+t+", extra: "+n);if(r&&r.is_supported())if("string"==typeof e)r.send({message:e,extra:n,functionName:t,noStack:!0},r.VIA_APP,r.SOURCE_BOOMERANG);else{"string"==typeof t&&(e.functionName=t);void 0!==n&&(e.extra=n);r.send(e,r.VIA_APP,r.SOURCE_BOOMERANG)}else{"string"!=typeof e&&(e=r=(r=String(e)).match(/^\[object/)?e.name+": "+(e.description||e.message).replace(/\r\n$/,""):r);t!==undefined&&(e="["+t+":"+BOOMR.now()+"] "+e);n&&(e+=":: "+n);u.errors[e]?u.errors[e]++:u.errors[e]=1}},isCrossOriginError:function(e){return"SecurityError"===e.name||"TypeError"===e.name&&"Permission denied"===e.message||"Error"===e.name&&e.message&&e.message.match(/^(Permission|Access is) denied/)||-2146828218===e.number},addVar:function(e,t,n){if("string"==typeof e){u.vars[e]=t;n&&(u.singleBeaconVars[e]=1)}else if("object"==typeof e){var r,i=e;for(r in i)if(i.hasOwnProperty(r)){u.vars[r]=i[r];n&&(u.singleBeaconVars[r]=1)}}return this},appendVar:function(e,t){var n=BOOMR.getVar(e)||"";n&&(n+=",");BOOMR.addVar(e,n+t);return this},removeVar:function(e){var t,n;if(!arguments.length)return this;n=1===arguments.length&&BOOMR.utils.isArray(e)?e:arguments;for(t=0;t<n.length;t++)u.vars.hasOwnProperty(n[t])&&delete u.vars[n[t]];return this},hasVar:function(e){return u.vars.hasOwnProperty(e)},getVar:function(e){return u.vars[e]},setVarPriority:function(e,t){if("number"!=typeof t||1!==Math.abs(t))return this;u.varPriority[t][e]=1;return this},setReferrer:function(e){u.r=e},requestStart:function(t){var n=BOOMR.now();BOOMR.plugins.RT.startTimer("xhr_"+t,n);return{loaded:function(e){BOOMR.responseEnd(t,n,e)}}},readyToSend:function(){for(var e in this.plugins)if(this.plugins.hasOwnProperty(e)&&!u.disabled_plugins[e]&&"function"==typeof this.plugins[e].readyToSend&&!1===this.plugins[e].readyToSend())return!1;return!0},responseEnd:function(e,t,n,r){t="number"==typeof t?t:BOOMR.now();r="number"==typeof r?r:BOOMR.now();if(BOOMR.readyToSend())if(BOOMR.hasSentPageLoadBeacon()||BOOMR.utils.inArray(e.initiator,BOOMR.constants.BEACON_TYPE_SPAS))if(u.beaconInQueue)BOOMR.subscribe("beacon",function(){BOOMR.responseEnd(e,t,n,r)},null,BOOMR,!0);else{u.beaconInQueue=!0;if("object"==typeof e)e.url&&u.fireEvent("xhr_load",e);else{BOOMR.real_sendBeacon();BOOMR.addVar("xhr.pg",e,!0);BOOMR.plugins.RT.startTimer("xhr_"+e,t);u.fireEvent("xhr_load",{name:"xhr_"+e,data:n,timing:{loadEventEnd:r}})}}else BOOMR.subscribe("page_load_beacon",function(){BOOMR.responseEnd(e,t,n,r)},null,BOOMR,!0);else setTimeout(function(){BOOMR.responseEnd(e,t,n,r)},1e3)},uninstrumentXHR:function(){},instrumentXHR:function(){},uninstrumentFetch:function(){},instrumentFetch:function(){},sendBeacon:function(e){e&&(u.beacon_url_override=e);if(!u.beaconQueued){u.beaconQueued=!0;BOOMR.setImmediate(BOOMR.real_sendBeacon,null,null,BOOMR)}return!0},sendBeaconWhenReady:function(e,t,n){if(u.beaconInQueue)BOOMR.subscribe("beacon",function(){BOOMR.sendBeaconWhenReady(e,t,n)},null,BOOMR,!0);else{u.beaconInQueue=!0;for(var r in e)e.hasOwnProperty(r)&&BOOMR.addVar(r,e[r],!0);"function"==typeof t&&void 0!==n&&t.apply(n);BOOMR.sendBeacon()}},real_sendBeacon:function(){var e,t=[],n={};if(!u.beaconQueued)return!1;u.beaconQueued=!1;for(e in this.plugins)if(this.plugins.hasOwnProperty(e)&&!u.disabled_plugins[e]&&!this.plugins[e].is_complete(u.vars)){delete u.vars.early;return!1}if(!(window&&window.Image&&window.navigator&&BOOMR.window))return!1;var r=BOOMR.utils.inArray(u.vars["http.initiator"],BOOMR.constants.BEACON_TYPE_SPAS),i="undefined"==typeof u.vars["http.initiator"]||r;u.vars.pgu||(u.vars.pgu=r?a.URL:a.URL.replace(/#.*/,""));u.vars.pgu=BOOMR.utils.cleanupURL(u.vars.pgu);u.vars.u&&!r||(u.vars.u=u.vars.pgu);u.vars.pgu===u.vars.u&&delete u.vars.pgu;u.r?u.vars.r=BOOMR.utils.cleanupURL(u.r):delete u.vars.r;u.vars.v=BOOMR.version;BOOMR.snippetVersion&&(u.vars.sv=BOOMR.snippetVersion);u.vars.sm=BOOMR.snippetMethod||"i";if(BOOMR.session.enabled){u.vars["rt.si"]=BOOMR.session.ID+"-"+Math.round(BOOMR.session.start/1e3).toString(36);u.vars["rt.ss"]=BOOMR.session.start;"undefined"==typeof u.vars.early?u.vars["rt.sl"]=1<=BOOMR.session.length?BOOMR.session.length:1:u.vars["rt.sl"]=BOOMR.session.length}else BOOMR.removeVar("rt.si","rt.ss","rt.sl");if(BOOMR.visibilityState()){u.vars["vis.st"]=BOOMR.visibilityState();BOOMR.lastVisibilityEvent.visible&&(u.vars["vis.lv"]=BOOMR.now()-BOOMR.lastVisibilityEvent.visible);BOOMR.lastVisibilityEvent.hidden&&(u.vars["vis.lh"]=BOOMR.now()-BOOMR.lastVisibilityEvent.hidden)}u.vars["ua.plt"]=navigator.platform;u.vars["ua.vnd"]=navigator.vendor;this.pageId&&(u.vars.pid=this.pageId);u.vars.n=++this.beaconsSent;c!==window&&(u.vars["if"]="");for(e in u.errors)u.errors.hasOwnProperty(e)&&t.push(e+(1<u.errors[e]?" (*"+u.errors[e]+")":""));0<t.length&&(u.vars.errors=t.join("\n"));u.errors={};u.fireEvent("before_beacon",u.vars);for(e in u.vars)u.vars.hasOwnProperty(e)&&(n[e]=u.vars[e]);BOOMR.removeVar(["qt","pgu"]);if("undefined"==typeof u.vars.early){for(var o in u.singleBeaconVars)u.singleBeaconVars.hasOwnProperty(o)&&BOOMR.removeVar(o);u.singleBeaconVars={};if(!u.hasSentPageLoadBeacon&&i){u.hasSentPageLoadBeacon=!0;BOOMR.setImmediate(function(){u.fireEvent("page_load_beacon",n)})}}if(BOOMR.session.rate_limited)return!1;u.beaconInQueue=!1;BOOMR.sendBeaconData(n);return!0},sendBeaconData:function(e){var t,n=[],r=!0;u.beacon_url=u.beacon_url_override||u.beacon_url;if(!u.beacon_url)return!1;if(!u.beaconUrlAllowed(u.beacon_url))return!1;if(BOOMR.utils.isObjectEmpty(e))return!1;u.fireEvent("beacon",e);n=this.getVarsOfPriority(e,-1);i=this.getVarsOfPriority(e,1);n=n.concat(this.getVarsOfPriority(e,0),i).join("&");u.beacon_url_force_https&&u.beacon_url.match(/^\/\//)&&(u.beacon_url="https:"+u.beacon_url);e=u.beacon_url+(-1<u.beacon_url.indexOf("?")?"&":"?")+n;if("GET"===u.beacon_type){r=!0;e.length>BOOMR.constants.MAX_GET_LENGTH&&(window.console&&(console.warn||console.log)||function(){})("Boomerang: Warning: Beacon may not be sent via GET due to payload size > 2000 bytes")}else("POST"===u.beacon_type||e.length>BOOMR.constants.MAX_GET_LENGTH)&&(r=!1);if(c&&c.navigator&&"function"==typeof c.navigator.sendBeacon&&BOOMR.utils.isNative(c.navigator.sendBeacon)&&"function"==typeof c.Blob&&"GET"!==u.beacon_type&&"undefined"==typeof u.beacon_auth_token&&!u.beacon_disable_sendbeacon){var i=new c.Blob([n+"&sb=1"],{type:"application/x-www-form-urlencoded"});if(c.navigator.sendBeacon(u.beacon_url,i))return!0}if(r=!(BOOMR.orig_XMLHttpRequest||c&&c.XMLHttpRequest)?!0:r){try{t=new Image}catch(o){return!1}t.src=e}else{e=new(BOOMR.window.orig_XMLHttpRequest||BOOMR.orig_XMLHttpRequest||BOOMR.window.XMLHttpRequest);try{this.sendXhrPostBeacon(e,n)}catch(o){e=new BOOMR.boomerang_frame.XMLHttpRequest;this.sendXhrPostBeacon(e,n)}}return!0},hasSentPageLoadBeacon:function(){return u.hasSentPageLoadBeacon},sendXhrPostBeacon:function(e,t){e.open("POST",u.beacon_url);e.setRequestHeader("Content-type","application/x-www-form-urlencoded");if("undefined"!=typeof u.beacon_auth_token){"undefined"==typeof u.beacon_auth_key&&(u.beacon_auth_key="Authorization");e.setRequestHeader(u.beacon_auth_key,u.beacon_auth_token)}u.beacon_with_credentials&&(e.withCredentials=!0);e.send(t)},getVarsOfPriority:function(e,t){var n,r=[],i=0!==t?u.varPriority[t]:e;for(n in i)if(i.hasOwnProperty(n)&&e.hasOwnProperty(n)){r.push(this.getUriEncodedVar(n,"undefined"==typeof e[n]?"":e[n]));0!==t&&delete e[n]}return r},getUriEncodedVar:function(e,t){"object"==typeof(t=t===undefined||null===t?"":t)&&(t=BOOMR.utils.serializeForUrl(t));return encodeURIComponent(e)+"="+encodeURIComponent(t)},getResourceTiming:function(e,t,n){var r,i=BOOMR.getPerformance();try{if(i&&"function"==typeof i.getEntriesByName){if(!(r=i.getEntriesByName(e))||!r.length)return;if(!("function"!=typeof n||(r=BOOMR.utils.arrayFilter(r,n))&&r.length))return;1<r.length&&"function"==typeof t&&r.sort(t);return r[r.length-1]}}catch(o){BOOMR.warn("getResourceTiming:"+o)}}};if(BOOMR.url){n=BOOMR.window.document.createElement("a");n.href=BOOMR.url;t.url=n.href}else t.url=t.utils.getMyURL();delete BOOMR_start;if("number"==typeof BOOMR_lstart){t.t_lstart=BOOMR_lstart;delete BOOMR_lstart}else"number"==typeof BOOMR.window.BOOMR_lstart&&(t.t_lstart=BOOMR.window.BOOMR_lstart);"number"==typeof BOOMR.window.BOOMR_onload&&(t.t_onload=BOOMR.window.BOOMR_onload);!function(){var e;"object"==typeof console&&console.log!==undefined?t.log=function(e,t,n){console.log("("+BOOMR.now()+") {"+BOOMR.pageId+"}: "+n+": ["+t+"] "+e)}:t.log=function(){};t.debug=(e=function(n){return function(e,t){this.log(e,n,"boomerang"+(t?"."+t:""));return this}})("debug");t.info=e("info");t.warn=e("warn");t.error=e("error")}();try{var r=t.getPerformance();r&&"function"==typeof r.now&&/\[native code\]/.test(String(r.now))&&r.timing&&r.timing.navigationStart&&(t.now=function(){return Math.round(r.now()+r.timing.navigationStart)})}catch(i){}u.checkLocalStorageSupport();!function(){for(var e in t)t.hasOwnProperty(e)&&(BOOMR[e]=t[e]);BOOMR.xhr_excludes||(BOOMR.xhr_excludes={})}();s("onBoomerangLoaded",{BOOMR:BOOMR},!0)}}(window);!function(){if(!BOOMR.plugins.ConfigOverride){var i={safeConfigOverride:function(e,t,n){for(var r in t)if(e.hasOwnProperty(r)&&t.hasOwnProperty(r)&&("object"!=typeof t[r]||"object"==typeof e[r]))if("object"==typeof e[r]&&"object"==typeof t[r]){n[r]=n[r]||{};i.safeConfigOverride(e[r],t[r],n[r])}else{n[r]=e[r];BOOMR.addVar("c.o","")}},allowedConfigOverrides:{Akamai:{enabled:!0,dns_prefetch_enabled:!0,mapping_xhr_base_url:!0,mapping_xhr_url_path:!0,mapping_xhr_url_v4_prefix:!0,mapping_xhr_url_v6_prefix:!0},Angular:{enabled:!0},Ember:{enabled:!0},Backbone:{enabled:!0},History:{enabled:!0,monitorHistory:!0,disableHardNav:!0,routeFilter:!0,routeChangeWaitFilter:!0,routeChangeWaitFilterHardNavs:!0,monitorReplaceState:!0},PageParams:{enabled:!0,pageGroups:!0,customMetrics:!0,customDimensions:!0,customTimers:!0,abTests:!0,defaultDecimal:!0,defaultThousands:!0,xhr:!0,pci:!0,pciBlacklist:!0,jsVarPassArgs:!0,spaXhr:!0},CrossDomain:{cross_domain_url:!0,sending:!0,session_transfer_timeout:!0},IFrameDelay:{enabled:!0,monitoredCount:!0,registerParent:!0},instrument_xhr:!0,RT:{cookie:!0,session_exp:!0},BW:{base_url:!0,enabled:!0,test_https:!0},ResourceTiming:{enabled:!0,clearOnBeacon:!0,trimUrls:!0,serverTiming:!0,monitorClearResourceTimings:!0,splitAtPath:!0,getSrcsetDimensions:!0},AutoXHR:{alwaysSendXhr:!0,excludeFilters:!0,domExcludeFilters:!0,monitorFetch:!0,fetchBodyUsedWait:!0,spaIdleTimeout:!0,xhrIdleTimeout:!0,xhrRequireChanges:!0,spaStartFromClick:!0},Errors:{enabled:!0,onError:!0,monitorGlobal:!0,monitorNetwork:!0,monitorConsole:!0,monitorEvents:!0,monitorTimeout:!0,monitorRejection:!0,monitorReporting:!0,sendAfterOnload:!0,maxErrors:!0,sendInterval:!0},TPAnalytics:{enabled:!0},Continuity:{enabled:!0,monitorLongTasks:!0,monitorPageBusy:!0,monitorFrameRate:!0,monitorInteractions:!0,monitorStats:!0,afterOnload:!0,afterOnloadMaxLength:!0,afterOnloadMinWait:5e3,waitAfterOnload:!0,ttiWaitForFrameworkReady:!0,ttiWaitForHeroImages:!0,sendLog:!0,logMaxEntries:100,sendTimeline:!0},UserTiming:{enabled:!0},LOGN:{storeConfig:!0},Early:{enabled:!0},EventTiming:{enabled:!0},autorun:!0,beacon_disable_sendbeacon:!0,same_site_cookie:!0,secure_cookie:!0}};BOOMR.plugins.ConfigOverride={init:function(e){BOOMR.window&&BOOMR.window.BOOMR_config&&i.safeConfigOverride(BOOMR.window.BOOMR_config,i.allowedConfigOverrides,e);return this},is_complete:function(){return!0}}}}();!function(){if(!BOOMR.plugins.Continuity){var y=100,b=0,_=1,w=2,S="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_",E=".",T={passive:!0,capture:!0},x=BOOMR.getPerformance(),P={},k=x&&x.timing&&x.timing.navigationStart?x.timing.navigationStart:BOOMR.now(),L=5,C=20/(1e3/y),A=50,t=function(l){var d={},r={},o=[],a=0,n=0,i=0,s=!0,u=!1,f=0;BOOMR.fpsLog&&BOOMR.fpsLog.length&&(l=BOOMR.fpsLog[0]+k);function p(){return Math.floor((BOOMR.now()-l)/y)}function O(){var e=0;if(N.ttiWaitForFrameworkReady){if(!N.frameworkReady)return;e=N.frameworkReady}if(BOOMR.plugins.PaintTiming&&BOOMR.plugins.PaintTiming.is_supported()&&x&&x.timeOrigin){var t=BOOMR.plugins.PaintTiming.getTimingFor("largest-contentful-paint");(t=(t=t||BOOMR.plugins.PaintTiming.getTimingFor("first-contentful-paint"))||BOOMR.plugins.PaintTiming.getTimingFor("first-paint"))&&(e=Math.max(e,Math.round(t+x.timeOrigin)))}else if(x&&x.timing&&x.timing.msFirstPaint)e=Math.max(e,x.timing.msFirstPaint);else if(BOOMR.window&&BOOMR.window.chrome&&"function"==typeof BOOMR.window.chrome.loadTimes){t=BOOMR.window.chrome.loadTimes();t&&t.firstPaintTime&&(e=Math.max(e,1e3*t.firstPaintTime))}x&&x.timing&&x.timing.domContentLoadedEventEnd&&(e=Math.max(e,x.timing.domContentLoadedEventEnd));return e=N.ttiWaitForHeroImages&&(i=function u(e){var t,n,r,i,o,a=0;if(!BOOMR.window||!BOOMR.window.document||"function"!=typeof BOOMR.window.document.querySelectorAll)return 0;if(!x||"function"!=typeof x.getEntriesByType)return 0;if((t=BOOMR.window.document.querySelectorAll(e+", "+e+" * img, "+e+" * image"))&&t.length)for(n=0;n<t.length;n++){i=t[n].currentSrc||t[n].src||"function"==typeof t[n].getAttribute&&t[n].getAttribute("xlink:href");if(!i&&"function"==typeof BOOMR.window.getComputedStyle){var s=BOOMR.window.getComputedStyle(t[n])&&BOOMR.window.getComputedStyle(t[n]).getPropertyValue("background");if(s){s=s.match(/url\(["']?([^"']*)["']?\)/);s&&0<s.length&&(i=s[1])}}if(i&&(o=x.getEntriesByName(i))&&o.length)for(r=0;r<o.length;r++)a=Math.max(a,o[r].responseEnd)}return a?Math.floor(a+k):0}(N.ttiWaitForHeroImages))?Math.max(e,i):e}function m(e,t){return function f(e,t,n,r,i){var o,a,s,u,l,c="",d=0;if(!n)return"";if(0===n.length)return"";if(t){"undefined"==typeof n[r]&&(n[r]=0);for(o=r+1;o<=i;o++)"undefined"==typeof n[o]&&(n[o]=n[o-1])}for(o=r;o<=i;o++){d="number"!=typeof n[o]||isNaN(n[o])?0:n[o];e===b?s=d<=63?S.charAt(d):E+d.toString(36)+E:e===_?s=d.toString(36):e===w&&(s=d<99?d<=9?"0"+Math.max(d,0):d:"__");if(o+3<=i&&(n[o+1]===d||0===d&&n[o+1]===undefined)&&(n[o+2]===d||0===d&&n[o+2]===undefined)&&(n[o+3]===d||0===d&&n[o+3]===undefined)){a=1;for(;o<i&&(n[o+1]===d||0===d&&n[o+1]===undefined);){a++;o++}u="*"+a.toString(36)+"*"+s}else u=s;if(0!==d||o!==i){e===_&&l&&(c+=",");l=!0;c+=u}}return l?e.toString()+c:""}(r[e].compressMode,r[e].backfillLast,d[e],0!==t?Math.floor((t-l)/y):0,p())}P.timeToInteractive=function(){if(a)return a-k};P.timeToVisuallyReady=function(){if(n)return n-k};P.timeToHeroImagesReady=function(){if(N.ttiWaitForHeroImages&&i)return i-k};P.timeToFrameworkReady=function(){if(N.ttiWaitForFrameworkReady&&N.frameworkReady)return N.frameworkReady-k};P.log=function(){return o};return{register:function c(e,t,n){d[e]||(d[e]=[]);r[e]={compressMode:t||b,backfillLast:n}},set:function h(e,t,n){void 0===n&&(n=p());d[e]&&(d[e][n]=t)},log:function g(e,t,n){void 0===t&&(t=p());o.push({type:e,time:t,val:n});o.length>N.logMaxEntries&&Array.prototype.splice.call(o,0,o.length-N.logMaxEntries)},increment:function R(e,t,n){void 0===n&&(n=p());void 0===t&&(t=1);if(d[e]){d[e][n]||(d[e][n]=0);d[e][n]+=t}},getTimeBucket:p,getStats:function M(e,t){var n,r,i=0,o=0,a=Infinity,s=0,u=Math.floor((t-l)/y);if(!d[e])return 0;for(r in d[e]){r=parseInt(r,10);if(u<=r&&d[e].hasOwnProperty(r)){i++;o+=n=d[e][r];a=Math.min(a,n);s=Math.max(s,n)}}return{total:o,count:i,min:a,max:s}},analyze:function B(e){var t=p();N.sendLog&&void 0!==e&&function i(){for(var e="",t=0;t<o.length;t++){var n,r=o[t];0!==t&&(e+="|");e+=r.type;e+=Math.round(r.time-k).toString(36);for(n in r.val)if(r.val.hasOwnProperty(n)){e+=","+n;"number"==typeof r.val[n]?e+=r.val[n].toString(36):e+=r.val[n]}}""!==e&&N.addToBeacon("c.l",e)}();N.sendTimeline&&void 0!==e&&function r(e){var t,n;for(t in d)d.hasOwnProperty(t)&&""!==(n=m(t,e))&&N.addToBeacon("c.t."+t,n)}(e);if(!a&&(n=n||O())){if(s){N.addToBeacon("c.tti.vr",P.timeToVisuallyReady());N.addToBeacon("c.tti.fr",P.timeToFrameworkReady());N.addToBeacon("c.tti.hi",P.timeToHeroImagesReady());s=!1}if(d.longtask||d.fps||d.busy){e=!1===u?Math.max(Math.floor((n-l)/y),0):u+1,t=function c(e,t,n,r,i,o){for(var a=0,s=n,u=!1,l=n;l<=r;l++){s=l;if(o.longtask&&o.longtask[l])i=0;else if(o.fps&&(!o.fps[l]||o.fps[l]<C))i=0;else{if(o.busy){if(u&&"undefined"==typeof o.busy[l]){s--;break}u||"undefined"==typeof o.busy[l]||(u=!0);if(o.busy[l]>A){i=0;continue}}if(o.interdly&&o.interdly[l])i=0;else if(L<=++i){a=e+(l+1-L)*y;a=Math.max(a,t);break}}}return{tti:a,idleIntervals:i,lastBucketVisited:s}}(l,n,e,t,f,d);if(t){f=t.idleIntervals;u=t.lastBucketVisited;if(0<t.tti){a=t.tti;N.addToBeacon("c.tti",P.timeToInteractive())}}}}},stop:function e(){d={};o=[]},onBeacon:function v(){for(var e in d)if(d.hasOwnProperty(e))if(a||!1===u)d[e]=[];else{var t=d[e],n=new Array(u+1);d[e]=n.concat(t.slice(u+1))}s=!(o=[])}}},n=function(e){if(e.PerformanceObserver&&e.LayoutShift){var r=!0,i=0,t=new e.PerformanceObserver(function o(e){var t,n;if(r){t=e.getEntries();for(n=0;n<t.length;n++)t[n].hadRecentInput||(i+=t[n].value)}});try{t.observe({type:"layout-shift",buffered:!0})}catch(a){return}P.clsScore=function(){return i};return{clearClsScore:n,analyze:function s(e){N.addToBeacon("c.cls",P.clsScore())},stop:function u(){r=!1;t.disconnect();n()},onBeacon:function l(){n()}}}function n(){i=0}},r=function(e,r){if(e.PerformanceObserver&&e.PerformanceLongTaskTiming){var f={unknown:0,self:1,"same-origin-ancestor":2,"same-origin-descendant":3,"same-origin":4,"cross-origin-ancestor":5,"cross-origin-descendant":6,"cross-origin-unreachable":7,"multiple-contexts":8},p={unknown:0,script:1,layout:2},O={unknown:0,iframe:1,embed:2,object:3},t=new e.PerformanceObserver(function a(e){var t,n;if(i){t=e.getEntries();Array.prototype.push.apply(m,t);for(n=0;n<t.length;n++)o+=t[n].duration;r.increment("longtask",t.length)}});try{t.observe({entryTypes:["longtask"]})}catch(s){return}r.register("longtask",b);var m=[],i=!0,o=0;P.longTasksTime=function(){return o};P.longTasksCount=function(){return m.length};return{getTasks:function u(){return m},clearTasks:n,analyze:function h(e){var t,n,r,i,o,a=[],s=[];if(0!==m.length){for(t=0;t<m.length;t++){r=m[t];i={s:Math.round(r.startTime).toString(36),d:Math.ceil(r.duration).toString(36),n:f[r.name]||0};s=[];for(n=0;n<r.attribution.length;n++)if("script"!==(o=r.attribution[n]).name||"iframe"!==o.containerType||o.containerName||o.containerId||o.containerSrc){var u=o.containerName||undefined,l=o.containerId||undefined;u===l&&(u=undefined);var c=l===undefined?o.containerSrc:undefined;s.push({a:p[o.name]||0,t:O[o.containerType]||0,n:u,i:l,s:c})}0<s.length&&(i.a=s);a.push(i)}N.addToBeacon("c.lt.n",P.longTasksCount(),!0);N.addToBeacon("c.lt.tt",P.longTasksTime());N.addToBeacon("c.lt",function d(e){var t=BOOMR.utils.Compression&&BOOMR.utils.Compression.jsUrl||window.UserTimingCompression&&window.UserTimingCompression.jsUrl||BOOMR.window.UserTimingCompression&&BOOMR.window.UserTimingCompression.jsUrl;return t?t(e):window.JSON?JSON.stringify(e):""}(a))}},stop:function l(){i=!1;t.disconnect();n()},onBeacon:function c(){n()}}}function n(){m=[];o=0}},i=function(e,r){r.register("busy",w);var i=Math.floor(3.125),n=BOOMR.now(),o=0,a=0,s=0,u=0,t=!1,l=!1;P.pageBusy=function(){return 0===s?0:Math.ceil(u/s*100)};t=setInterval(function c(){var e=BOOMR.now(),t=e-n;n=e;if(68<t){e=Math.floor((t-32)/32);o+=e;a+=e;t-=32*e}o++;36<t&&a++},32);l=setInterval(function d(){var e=r.getTimeBucket(),t=e,n=0;if(0!==o){for(;i+1<o&&n<=100;){r.set("busy",100,--t);o-=i;a=Math.max(a-i,0);s+=i;u+=i;n++}s+=o;u+=a;r.set("busy",Math.ceil(a/o*100),e);a=o=0}},100);return{analyze:function f(e){N.addToBeacon("c.b",P.pageBusy())},stop:function p(){if(t){clearInterval(t);t=!1}if(l){clearInterval(l);l=!1}},onBeacon:function O(){u=s=0}}},o=function(t,n){n.register("fps",b);var r,i=50,o=0,a=0,s=!0;if(BOOMR.fpsLog&&BOOMR.fpsLog.length){for(var u=r=BOOMR.fpsLog[0]+k,e=0;e<BOOMR.fpsLog.length;e++){var l=k+BOOMR.fpsLog[e];n.increment("fps",1,Math.floor((l-r)/y));i<=l-u&&a++;u=l}o=BOOMR.fpsLog.length;delete BOOMR.fpsLog}else r=BOOMR.now();t.requestAnimationFrame(function c(e){if(s){i<=e-u&&a++;u=e;o++;n.increment("fps");t.requestAnimationFrame(c)}});P.fps=function(){var e=P.fpsDuration();if(e)return Math.floor(o/(e/1e3))};P.fpsDuration=function(){if(r)return BOOMR.now()-r};P.fpsMinimum=function(){if(P.fpsDuration()){var e=n.getStats("fps",r).min;return e!==Infinity?e:undefined}};P.fpsLongFrames=function(){return a};P.fpsStart=function(){return r?r.toString(36):0};return{analyze:function d(e){N.addToBeacon("c.f",P.fps());N.addToBeacon("c.f.d",P.fpsDuration());N.addToBeacon("c.f.m",P.fpsMinimum());N.addToBeacon("c.f.l",P.fpsLongFrames());N.addToBeacon("c.f.s",P.fpsStart())},stop:function f(){s=!1;r=0},onBeacon:function p(){s&&(r=BOOMR.now());a=o=0}}},a=function(e,i,t){if(e&&e.document&&e.document.body&&e.document.documentElement){var o=2e3,a=20,s=0,u=0,l=0,c=0,d=0,f=0,p=0,O=0,n=!1,r=e.document.body,m=e.document.documentElement;i.register("scroll",b);i.register("scrollpct",w);var h=Math.max(r.scrollHeight,r.offsetHeight,m.clientHeight,m.scrollHeight,m.offsetHeight)-BOOMR.utils.windowHeight();P.scrollPct=function(){return c};P.scrollCount=function(){return d};P.scrollDistinct=function(){return p};P.scrollPixels=function(){return f};BOOMR.utils.addListener(e,"scroll",g,T);n=setInterval(function R(){var e=Math.min(l,100);0!==e&&i.set("scrollpct",e);l=0},y);return{analyze:function M(e){N.addToBeacon("c.s",P.scrollCount());N.addToBeacon("c.s.p",P.scrollPct());N.addToBeacon("c.s.y",P.scrollPixels());N.addToBeacon("c.s.d",P.scrollDistinct())},stop:function B(){if(n){clearInterval(n);n=!1}BOOMR.utils.removeListener(e,"scroll",g)},onBeacon:function v(){p=f=d=c=0}}}function g(e){var t=BOOMR.now();d++;o<t-O&&p++;O=t;var n=Math.ceil(BOOMR.utils.scroll().y),r=Math.abs(s-n);f+=r;i.increment("scroll",r);if(0===u||Math.abs(u-n)>a){i.log(0,t,{y:n});u=n}l+=Math.round(r/h*100);c+=Math.round(r/h*100);s=n}},s=function(e,o,a){o.register("click",b);var s=10,u=3,l=0,c=0,d=0,f=0,p=0,O=null;function t(e){var t=BOOMR.now(),n=e.clientX,r=e.clientY;l++;var i=Math.round(Math.sqrt(Math.pow(p-r,2)+Math.pow(f-n,2)));if(O===e.target||i<=s){if(u<=++c+1){d++;BOOMR.fireEvent("rage_click",e)}}else c=0;f=n;p=r;O=e.target;o.increment("click");o.log(1,t,{x:n,y:r});e.cancelable&&a.interact("click",t,e)}P.clicksCount=function(){return l};P.clicksRage=function(){return d};BOOMR.utils.addListener(e.document,"click",t,T);return{analyze:function n(e){N.addToBeacon("c.c",P.clicksCount());N.addToBeacon("c.c.r",P.clicksRage())},stop:function r(){BOOMR.utils.removeListener(e.document,"click",t)},onBeacon:function i(){d=c=l=0}}},u=function(e,n,r){n.register("key",b);var i=0,o=0;function t(e){var t=BOOMR.now();i++;27===e.keyCode&&o++;n.increment("key");n.log(3,t);e.cancelable&&r.interact("key",t,e)}P.keyCount=function(){return i};P.keyEscapes=function(){return o};BOOMR.utils.addListener(e.document,"keydown",t,T);return{analyze:function a(e){N.addToBeacon("c.k",P.keyCount());N.addToBeacon("c.k.e",P.keyEscapes())},stop:function s(){BOOMR.utils.removeListener(e.document,"keydown",t)},onBeacon:function u(){o=i=0}}},l=function(e,i,t){i.register("mouse",b);i.register("mousepct",w);var o=0,a=0,n=0,r=0,s=0,u=0,l=0,c=!1,d=!1,f=Math.round(Math.sqrt(Math.pow(BOOMR.utils.windowHeight(),2)+Math.pow(BOOMR.utils.windowWidth(),2)));function p(e){var t=e.clientX,n=e.clientY,r=Math.round(Math.sqrt(Math.pow(a-n,2)+Math.pow(o-t,2))),e=Math.round(r/f*100);s+=e;u+=e;l+=r;o=t;a=n;i.increment("mouse",r)}P.mousePct=function(){return u};P.mousePixels=function(){return l};c=setInterval(function O(){var e=Math.min(s,100);0!==e&&i.set("mousepct",e);s=0},y);d=setInterval(function m(){if(n!==o||r!==a)if(10<=Math.round(Math.sqrt(Math.pow(r-a,2)+Math.pow(n-o,2)))){i.log(2,BOOMR.now(),{x:o,y:a});n=o;r=a}},250);BOOMR.utils.addListener(e.document,"mousemove",p,T);return{analyze:function h(e){N.addToBeacon("c.m.p",P.mousePct());N.addToBeacon("c.m.n",P.mousePixels())},stop:function g(){if(c){clearInterval(c);c=!1}if(d){clearInterval(d);d=!1}BOOMR.utils.removeListener(e.document,"mousemove",p)},onBeacon:function R(){l=u=0}}},c=function(i,o,e){o.register("inter",b);o.register("interdly",b);var a=e,s=0,u=null,l=0,c=0,d=0,f=0,p=!0,O=0,m=0,h=!1,g=!1,R=!1,n=!1;function t(){if(h){clearTimeout(h);h=!1}if(g){clearTimeout(g);g=!1}}function M(){BOOMR.sendBeaconWhenReady({"rt.start":"manual","http.initiator":"interaction","rt.tstart":O,"rt.end":m},function(){t();BOOMR.fireEvent("interaction")},N)}P.interactionDelayed=function(){return d};P.interactionDelayedTime=function(){return Math.ceil(f)};P.interactionAvgDelay=function(){if(0<l)return Math.ceil(c/l)};P.timeToFirstInteraction=function(){if(s)return s-k};P.firstInputDelay=function(){if(null!==u)return u};BOOMR.subscribe("spa_init",function r(){R=!0;t()},null,N);return{interact:function B(e,t,n){var r=0;BOOMR.hrNow();t=t||BOOMR.now();if(p){l++;s=s||(n&&n.timeStamp?n.timeStamp+k:t);if(n&&n.timeStamp&&(!N.isSafari||i===window)){r=14e11<n.timeStamp?t-n.timeStamp:BOOMR.hrNow()-n.timeStamp;c+=r;null===u&&(u=Math.ceil(r));if(50<r){o.increment("interdly");d++;f+=r}}o.increment("inter");if(!R&&N.afterOnloadMonitoring){m=BOOMR.now();if(!O){O=m;g=setTimeout(M,3e4)}if(h){clearTimeout(h);h=!1}h=setTimeout(M,a)}}},analyze:function v(e){var t;N.addToBeacon("c.i.dc",P.interactionDelayed());N.addToBeacon("c.i.dt",P.interactionDelayedTime());N.addToBeacon("c.i.a",P.interactionAvgDelay());if(!n&&(t=(t=BOOMR.plugins.EventTiming&&BOOMR.plugins.EventTiming.is_enabled()?BOOMR.plugins.EventTiming.metrics.firstInputDelay():t)||null===u?t:P.firstInputDelay())){N.addToBeacon("c.fid",Math.ceil(t),!0);N.addToBeacon("c.ttfi",BOOMR.plugins.EventTiming.metrics.timeToFirstInteraction()||P.timeToFirstInteraction());n=!0}},stop:function y(){p=!1},onBeacon:function _(){m=O=c=l=d=f=0;R=!1;t()}}},d=function(e,t,n){var r,i,o=!0;function a(){if(o){n.interact("pd",r,i);i=r=null;BOOMR.utils.removeListener(window,"pointerup",a)}}function s(e){if(o&&e.cancelable){r=BOOMR.now();i=e;BOOMR.utils.addListener(window,"pointerup",a,T)}}function u(){o=!1;BOOMR.utils.removeListener(window,"pointerdown",s);BOOMR.utils.removeListener(window,"pointerup",a);BOOMR.utils.removeListener(window,"pointercancel",u)}BOOMR.utils.addListener(window,"pointerdown",s,T);BOOMR.utils.addListener(window,"pointercancel",u,T);return{stop:u}},f=function(e,t,n){var r=!0;function i(e){if(r&&e.cancelable){var t=BOOMR.now();n.interact("md",t,e)}}BOOMR.utils.addListener(window,"mousedown",i,T);return{stop:function o(){r=!1;BOOMR.utils.removeListener(window,"mousedown",i)}}},p=function(e,t,n){var r=!0;function i(e){if(r&&e.cancelable){var t=BOOMR.now();n.interact("ts",t,e)}}BOOMR.utils.addListener(window,"touchstart",i,T);return{stop:function o(){r=!1;BOOMR.utils.removeListener(window,"touchstart",i)}}},O=function(e,n,t){n.register("vis",b);var r={visible:0,hidden:1,prerender:2,unloaded:3},i=!0;BOOMR.subscribe("visibility_changed",function(e){var t=BOOMR.now();if(i){n.increment("vis");n.log(4,t,{s:r[BOOMR.visibilityState()]})}});return{stop:function o(){i=!1}}},m=function(e,i,t){i.register("orn",b);var o=!0;function n(e){var t=BOOMR.now(),n=window.orientation;if(o){i.increment("orn");var r=window.screen&&(screen.orientation||screen.msOrientation||screen.mozOrientation||{});"number"==typeof(n=r&&"number"==typeof r.angle?screen.orientation.angle:n)&&i.log(5,t,{a:n})}}BOOMR.utils.addListener(e,"orientationchange",n,T);return{stop:function r(){o=!1;BOOMR.utils.removeListener(e,"orientationchange",n)}}},h=function(e,t){t.register("mem",_,!0);t.register("bat",w,!0);t.register("domsz",_,!0);t.register("domln",_,!0);t.register("mut",b);var n,r=e.document,i=!0,o=!1,a=null,s=0,u=0,l=r.getElementsByTagName("*");function c(){i&&a&&t.set("bat",a.level)}o=setInterval(function d(){var e=x&&x.memory&&x.memory.usedJSHeapSize;e&&t.set("mem",e);u=l.length;t.set("domsz",r.documentElement.innerHTML.length);t.set("domln",u);if(0<s){e=Math.min(Math.round(s/u*100),100);t.set("mut",e);s=0}},1e3);e.navigator&&"function"==typeof e.navigator.getBattery&&e.navigator.getBattery().then(function(e){(a=e).onlevelchange&&(a.onlevelchange=c)});BOOMR.utils.isMutationObserverSupported()&&(n=BOOMR.utils.addObserver(r,{childList:!0,subtree:!0},null,function f(e){e.forEach(function(e){if("childList"!==e.type)return!0;for(var t=0;t<e.addedNodes.length;t++){var n=e.addedNodes[t];s++;s+=n.getElementsByTagName?n.getElementsByTagName("*").length:0}});return!0},null,this));return{stop:function p(){i=!1;if(o){clearInterval(o);o=!1}if(n&&n.observer){n.observer.disconnect();n=null}a&&a.onlevelchange&&(a.onlevelchange=null);l=null}}},N={monitorLongTasks:!0,monitorPageBusy:!0,monitorFrameRate:!0,monitorInteractions:!0,monitorStats:!1,monitorLayoutShifts:!0,afterOnload:!1,afterOnloadMaxLength:6e4,afterOnloadMinWait:5e3,waitAfterOnload:!1,ttiWaitForFrameworkReady:!1,ttiWaitForHeroImages:!1,sendLog:!0,sendTimeline:!0,logMaxEntries:100,initialized:!1,complete:!1,isSpa:!1,firedPageReady:!1,afterOnloadMonitoring:!1,frameworkReady:null,timeline:null,ttiMethod:null,longTaskMonitor:null,pageBusyMonitor:null,frameRateMonitor:null,interactionMonitor:null,scrollMonitor:null,clickMonitor:null,keyMonitor:null,mouseMonitor:null,visibilityMonitor:null,orientationMonitor:null,touchStartMonitor:null,mouseDownMonitor:null,pointerDownMonitor:null,statsMonitor:null,layoutShiftMonitor:null,monitors:["timeline","longTaskMonitor","pageBusyMonitor","frameRateMonitor","scrollMonitor","keyMonitor","clickMonitor","mouseMonitor","interactionMonitor","visibilityMonitor","orientationMonitor","statsMonitor","layoutShiftMonitor","touchStartMonitor","mouseDownMonitor","pointerDownMonitor"],timeOfLastBeacon:0,hasAddedDataToBeacon:!1,isSafari:window&&window.navigator&&window.navigator.vendor&&-1!==window.navigator.vendor.indexOf("Apple"),onBeforeBeacon:function(){N.runAllAnalyzers()},runAllAnalyzers:function(){var e,t;if(!N.hasAddedDataToBeacon){for(e=0;e<N.monitors.length;e++)(t=N[N.monitors[e]])&&"function"==typeof t.analyze&&t.analyze(N.timeOfLastBeacon);N.addToBeacon("c.lb",N.timeOfLastBeacon?N.timeOfLastBeacon.toString(36):0);N.timeOfLastBeacon=BOOMR.now();N.hasAddedDataToBeacon=!0}},onBeacon:function(e){var t;if(!e||!("undefined"!=typeof e.early||e["http.initiator"]&&0===e["http.initiator"].indexOf("api_custom_"))){for(t=0;t<N.monitors.length;t++){var n=N[N.monitors[t]];if(n){N.afterOnload||"function"==typeof n.stop&&n.stop();"function"==typeof n.onBeacon&&n.onBeacon()}}N.hasAddedDataToBeacon=!1}},onXhrLoad:function(e){e&&BOOMR.utils.inArray(e.initiator,BOOMR.constants.BEACON_TYPE_SPAS)&&(N.isSpa=!0);e&&"spa_hard"===e.initiator&&N.onPageReady()},onPageReady:function(){N.firedPageReady=!0;if(N.afterOnload&&N.monitorInteractions){N.afterOnloadMonitoring=!0;N.isSpa||"number"!=typeof N.afterOnloadMaxLength||setTimeout(function(){N.afterOnloadMonitoring=!1},N.afterOnloadMaxLength)}if(N.waitAfterOnload){var e=BOOMR.now();setTimeout(function t(){if(BOOMR.now()-e>N.waitAfterOnload){N.complete=!0;BOOMR.sendBeacon()}else{N.timeline.analyze();if(P.timeToInteractive()){N.complete=!0;BOOMR.sendBeacon()}else setTimeout(t,500)}},500)}else N.complete=!0},addToBeacon:function(e,t,n){0!==t&&void 0!==t||n?BOOMR.addVar(e,t,!0):BOOMR.removeVar(e)}};BOOMR.plugins.Continuity={init:function(e){BOOMR.utils.pluginConfig(N,e,"Continuity",["monitorLongTasks","monitorPageBusy","monitorFrameRate","monitorInteractions","monitorStats","afterOnload","afterOnloadMaxLength","afterOnloadMinWait","waitAfterOnload","ttiWaitForFrameworkReady","ttiWaitForHeroImages","sendLog","logMaxEntries","sendTimeline","monitorLayoutShifts"]);if(N.initialized)return this;N.initialized=!0;N.timeline=new t(BOOMR.now());if(BOOMR.window){if(N.monitorLongTasks&&BOOMR.window.PerformanceObserver&&BOOMR.window.PerformanceLongTaskTiming){N.longTaskMonitor=new r(BOOMR.window,N.timeline);N.ttiMethod="lt"}if(N.monitorFrameRate&&"function"==typeof BOOMR.window.requestAnimationFrame){N.frameRateMonitor=new o(BOOMR.window,N.timeline);N.ttiMethod||(N.ttiMethod="raf")}if(N.monitorPageBusy&&(!BOOMR.window.PerformanceObserver||!BOOMR.window.PerformanceLongTaskTiming||!N.monitorLongTasks)){N.pageBusyMonitor=new i(BOOMR.window,N.timeline);N.ttiMethod||(N.ttiMethod="b")}if(N.monitorInteractions){N.interactionMonitor=new c(BOOMR.window,N.timeline,N.afterOnloadMinWait);N.scrollMonitor=new a(BOOMR.window,N.timeline,N.interactionMonitor);N.keyMonitor=new u(BOOMR.window,N.timeline,N.interactionMonitor);N.clickMonitor=new s(BOOMR.window,N.timeline,N.interactionMonitor);N.mouseMonitor=new l(BOOMR.window,N.timeline,N.interactionMonitor);N.visibilityMonitor=new O(BOOMR.window,N.timeline,N.interactionMonitor);N.orientationMonitor=new m(BOOMR.window,N.timeline,N.interactionMonitor);N.touchStartMonitor=new p(BOOMR.window,N.timeline,N.interactionMonitor);N.mouseDownMonitor=new f(BOOMR.window,N.timeline,N.interactionMonitor);N.pointerDownMonitor=new d(BOOMR.window,N.timeline,N.interactionMonitor)}N.monitorStats&&(N.statsMonitor=new h(BOOMR.window,N.timeline,N.interactionMonitor));N.monitorLayoutShifts&&BOOMR.window.PerformanceObserver&&(N.layoutShiftMonitor=new n(BOOMR.window))}BOOMR.addVar("c.e",k.toString(36));BOOMR.addVar("c.tti.m",N.ttiMethod);BOOMR.subscribe("before_beacon",N.onBeforeBeacon,null,N);BOOMR.subscribe("beacon",N.onBeacon,null,N);BOOMR.subscribe("page_ready",N.onPageReady,null,N);BOOMR.subscribe("xhr_load",N.onXhrLoad,null,N);return this},is_complete:function(e){return N.complete||e&&("error"===e["http.initiator"]||"undefined"!=typeof e.early)},frameworkReady:function(){N.frameworkReady=BOOMR.now()},metrics:P}}}();!function(){var p,d,f,a,O;if(!BOOMR.plugins.PageParams){var m,e=/(-?(?:[1-9][\d,]*)?[0-9](?:\.\d+)?)/,o=["img","iframe","script","link","object","svg","video"],r={name:1,"honorific-prefix":1,"given-name":1,"additional-name":1,"family-name":1,"honorific-suffix":1,username:1,"new-password":1,"current-password":1,"street-address":1,country:1,"country-name":1,"postal-code":1,email:1,tel:1},i=["cc-","address-","tel-"],n=[/(?:3[47][0-9]{13})/,/(?:3(?:0[0-5]|[68][0-9])[0-9]{11})/,/(?:6(?:011|5[0-9]{2})(?:[0-9]{12}))/,/(?:(?:2131|1800|35\d{3})\d{11})/,/(?:(?:5[0678]\d\d|6304|6390|67\d\d)\d{8,15})/,/(?:(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12})/,/(?:4[0-9]{12})(?:[0-9]{3})?/,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/],h=function(){return{pageGroups:{varname:"h.pg",stopOnFirst:!0,isDimension:!0},abTests:{varname:"h.ab",stopOnFirst:!0,isDimension:!0},customMetrics:{cleanUpRE:e},customDimensions:{sanitizeRE:/[^\w\. \-]/g,isDimension:!0},customTimers:{cleanUpRE:e,method:BOOMR.plugins.RT&&BOOMR.plugins.RT.setTimer,ctx:BOOMR.plugins.RT,preProcessor:function(e){return Math.round("number"==typeof e?e:parseFloat(e,10))}}}},s=["src","href","data","codebase"],u={".,":e},l={".":/\./g,",":/,/g," ":/ /g,"'":/'/g};(m=function(e){this.varname=e.varname;this.method=e.method||function(e,t){BOOMR.addVar(e,t,!0)};this.ctx=e.ctx||BOOMR;this.preProcessor=e.preProcessor;this.sanitizeRE=e.sanitizeRE||/[^\w \-]/g;this.cleanUpRE=e.cleanUpRE;this.resourceTime={};this.resources=[];this.RTSupport=!1;this.MOSupport=!1;return this}).prototype={apply:function(e){if(!(e=this.preProcessor?this.preProcessor(e):e)&&0!==e)return!1;"function"==typeof this.method&&this.method.call(this.ctx,this.varname,e);return!0},handle:function(e,t,n){var r=this;if(!this.isValid(e))return!1;e.label&&("ResourceGroup"===e.type&&O.resourceGroupHandlers[e.label]?r=O.resourceGroupHandlers[e.label]:(r=new m(this)).varname=e.label);return r[e.type](e,t,n)},isValid:function(e){return e&&"object"==typeof e&&e.hasOwnProperty("type")&&"function"==typeof this[e.type]&&(this.varname||e.label)},cleanUp:function(e,t){var n,r,i=this.cleanUpRE;if(!e)return e;if(i){n=t&&t.decimal?t.decimal:O.defaultDecimal;t=t&&t.thousands?t.thousands:O.defaultThousands;if(("."!==n||","!==t)&&void 0===(i=u[r=n+t])){i=new RegExp("(-?(?:[1-9][\\d"+t+"]*)?[0-9](?:\\"+n+"\\d+)?)");u[r]=i}if((r=e.match(i))&&1<r.length){e=r[1];if(void 0===(i=l[t])){i=new RegExp("\\"+t,"g");l[t]=i}e=e.replace(i,"");return e="."!==n?e.replace(n,"."):e}return""}return e.replace(this.sanitizeRE,"")},isValidObjectMember:function(e,t){return null!==e&&("object"==typeof e||(!("function"!=typeof e||!e.hasOwnProperty(t))||!("string"!=typeof e||!e.hasOwnProperty(t))))},extractFromDOMElement:function(e,t){var n="";if(O.pci&&this.hasSensitiveData(e)){BOOMR.appendVar("pci.redacted",t.label);return!1}null===e||!e.nodeName||"INPUT"!==e.nodeName.toUpperCase()&&"TEXTAREA"!==e.nodeName.toUpperCase()&&"SELECT"!==e.nodeName.toUpperCase()?null!==e&&(n=e.textContent||e.innerText):("checkbox"!==e.type.toLowerCase()&&"radio"!==e.type.toLowerCase()||e.checked)&&(n=e.value);if(O.pci&&this.isSensitiveData(n)){BOOMR.appendVar("pci.redacted",t.label);return!1}if(t.match&&"numeric"!==t.match){if("boolean"===t.match)n=1;else if(t.match.match(/^regex:/)){if(!(e=t.match.match(/^regex:(.*)/))||e.length<2)return!1;try{new RegExp(e[1],"i").test(n)&&(n=1)}catch(r){BOOMR.addError(r,"PageVars.URLPatternType",t.match);return!1}}}else n=this.cleanUp(n,t);return n},hasSensitiveData:function(e){var t;if(!e)return!1;if(e.nodeName&&("INPUT"===e.nodeName.toUpperCase()||"TEXTAREA"===e.nodeName.toUpperCase()||"SELECT"===e.nodeName.toUpperCase())){var n=e.autocomplete||"function"==typeof e.getAttribute&&e.getAttribute("autocomplete");if(n&&n.length){n=n.toLowerCase();if(r[n])return!0;for(t=0;t<i.length;t++)if(0===n.indexOf(i[t]))return!0}}if(O.pciBlacklist&&O.pciBlacklist.length){if(!O.pciBlacklistQueried){O.pciBlacklistMatch=this.runQuerySelector(O.pciBlacklist,f,!0);O.pciBlacklistQueried=!0}if(O.pciBlacklistMatch&&O.pciBlacklistMatch.length)for(t=0;t<O.pciBlacklistMatch.length;t++)if(e===O.pciBlacklistMatch[t])return!0}return!1},isSensitiveData:function(e){var t;if(!e||!e.length)return!1;for(t=0;t<n.length;t++)if(n[t].exec(e))return!0;return!1},execSafeRegEx:function(e,t){if(!(e instanceof RegExp))try{e=new RegExp(e,"i")}catch(n){BOOMR.addError(n,"PageVars.handleRegEx",e);return!1}return void 0!==t&&e.exec(t)},handleRegEx:function(e,t,n){var r=this.execSafeRegEx(e,n);if(!r||!r.length)return!1;t=t.replace(/\$([1-9])/g,function(e,t){return decodeURIComponent(r[parseInt(t,10)])});t=this.cleanUp(t);return this.apply(t)},checkURLPattern:function(e,t,n){var r;if(!e)return!0;r=e.replace(/([.+?\^=!:${}()|\[\]\/\\])/g,"\\$1").replace(/\*/g,".*?");try{r=new RegExp("^"+r+"$","i")}catch(i){BOOMR.addError(i,"PageVars.checkURLPattern",e);return!1}t=t||d.href;return!!r.exec(t)},nodeWalk:function(e,t){var n,r,i,o;if(!t)return e;if(!(n=t.match(/^(\w+)(?:\[(\d+)\])?\/?(.*)/))||!n.length)return null;r=e.getElementsByTagName(n[1]);if(n[2]){i=parseInt(n[2],10);if(isNaN(i))return null;if(r.length<=--i)return null;r=[r[i]]}for(i=0;i<r.length;i++)if(o=this.nodeWalk(r[i],n[3]))return o;return null},runXPath:function(e,t){var n,r,i,o=!1;t=t||f;try{t.evaluate?n=t.evaluate(e,t,null,9,null):t.selectNodes?n=t.selectNodes(e):o=!0}catch(a){i=a;o=!0}if(!n&&o)try{if(e.match(/^\/html(?:\/\w+(?:\[\d+\])?)*$/)){e=e.slice(6);return this.nodeWalk(f,e)}if(null!==(r=e.match(/\[@id=(["'])([^"']+)\1\]((?:\/\w+(?:\[\d+\])?)*)$/)))return(n=t.getElementById(r[2]))&&r[3]?this.nodeWalk(n,r[3].slice(1)):n;if(null!==(r=e.match(/\[@class="([^"]+)"\]((?:\/\w+(?:\[\d+\])?)*)$/)))return(n=(n=t.getElementsByClassName(r[1]))&&n.length?n[0]:n)&&r[2]?this.nodeWalk(n,r[2].slice(1)):n;if(i){BOOMR.error("Error evaluating XPath: "+i,"PageVars");BOOMR.addError(i,"PageVars.runXPath.native",e)}return null}catch(a){BOOMR.error("Error evaluating XPath: "+a,"PageVars");BOOMR.addError(a,"PageVars.runXPath.ours",e);return null}return n&&9===n.resultType&&n.singleNodeValue?n.singleNodeValue:null},runQuerySelector:function(e,t,n){var r;n=n||!1;t=t||f;try{if(!t.querySelector&&!t.querySelectorAll)return null;r=n?t.querySelectorAll(e):t.querySelector(e)}catch(i){BOOMR.error(""+i,"PageVars");BOOMR.addError(i,"PageVars.runQueryselector",e);return null}return r},JavaScriptVar:function(e){var t;if(!this.checkURLPattern(e.parameter1))return!1;if(t=this.extractJavaScriptVariable(e.varName,e))return t;O.mayRetry.push({handler:this,data:e});return!1},Custom:function(e){var t;if(!this.checkURLPattern(e.parameter2))return!1;if(t=this.extractJavaScriptVariable(e.parameter1,e))return t;O.mayRetry.push({handler:this,data:e});return!1},extractJavaScriptVariable:function(e,t,n){var r,i,o,a=n||p;if(!e)return!1;r=e.split(/\[((["'])[\w,.-]*\2|\d*)\]|\./);for(o=0;o<r.length;o++)r[o]&&(r[o]=r[o].replace(/("|')/g,""));if(!(r=BOOMR.utils.arrayFilter(r,function(e){return e&&0<e.length}))||0===r.length)return!1;i=a[r.shift()];try{for(;r.length&&this.isValidObjectMember(i,r[0]);)i=(a=i)[r.shift()]}catch(s){BOOMR.addError(s,"PageVars.extractJavaScriptVariable",e+"::"+r.join("."));return!1}if(0!==r.length)return!1;if("function"==typeof i)try{i=O.jsVarPassArgs?i.call(a,this.varname):i.call(a)}catch(s){BOOMR.plugins.Errors&&BOOMR.plugins.Errors.send(s);return!1}if(void 0===i||"object"==typeof i||"function"==typeof i)return!1;if(t&&"boolean"===t.match){if("string"==typeof i){if("0"!==(i=i.replace(/^\s+|\s+$/g,"").toLowerCase())&&"false"!==i&&i)return this.apply(1)}else if(i)return this.apply(1);return undefined}i=this.cleanUp(String(i),t);return this.apply(i)},URLPattern:function(e){if(!e.parameter2)return!1;if(!this.checkURLPattern(e.parameter1))return!1;if(e=BOOMR.utils.getQueryParamValue(e.parameter2,d)){e=this.cleanUp(e);return this.apply(e)}},URLSubstringEndOfText:function(e){return this.URLSubstringTrailingText(e)},URLSubstringTrailingText:function(e){return!!e.parameter1&&this.handleRegEx("^"+e.parameter1.replace(/([.+?\^=!:${}()|\[\]\/\\])/g,"\\$1").replace(/([^\.])\*/g,"$1.*?").replace(/^\*/,".*")+"(.*)"+(e.parameter2||"").replace(/([.+?\^=!:${}()|\[\]\/\\])/g,"\\$1").replace(/([^\.])\*/g,"$1.*")+"$","$1",d.href)},UserAgentRegex:function(e){return this._Regex(e.parameter1,e.regex,e.replacement,navigator.userAgent)},CookieRegex:function(e){return this._Regex(e.parameter1,e.regex,e.replacement,e.cookieName?BOOMR.utils.getCookie(e.cookieName):f.cookie)},URLRegex:function(e){return this._Regex(e.parameter1,e.regex,e.replacement,d.href)},Regexp:function(e,t){var n;return(n=t&&"string"==typeof t?t.match("http(|s)://"):n)&&0<n.length?this._Regex(null,e.parameter1,e.parameter2,t,e.ignore):this._Regex(null,e.parameter1,e.parameter2,d.href,e.ignore)},_Regex:function(e,t,n,r,i){i&&(n="1");return!(!t||!n)&&(!!this.checkURLPattern(e)&&this.handleRegEx(t,n,r))},URLPatternType:function(e){var t;if(!this.checkURLPattern(e.parameter1))return!1;if(!e.parameter1||e.parameter2||e.queryselector)if(e.queryselector){if(!(t=this.runQuerySelector(e.queryselector)))return!1;t=this.extractFromDOMElement(t,e)}else{if(!e.parameter2)return!1;if(!(t=this.runXPath(e.parameter2)))return!1;t=this.extractFromDOMElement(t,e)}else t="1";return this.apply(t)},ResourceTiming:function(e){var t,n,r,i,o;if(!e.parameter2&&!e.url&&!e.queryselector)return!1;if(!e.start||!e.end&&"*"!==e.start)return!1;if(!a||!a.getEntriesByName)return!1;if(!this.checkURLPattern(e.parameter1))return!1;"slowest"===e.parameter2||"slowest"===e.url?n="slowest":e.url?n=e.url:e.parameter2?t=this.runXPath(e.parameter2):e.queryselector&&(t=this.runQuerySelector(e.queryselector));if(t)n=t.currentSrc||t.src||"function"==typeof t.getAttribute&&t.getAttribute("xlink:href")||t.href;else if(!n)return!1;if(!(r=this.findResource(n,null,O.deltaFromNavStart))){O.mayRetry.push({handler:this,data:e});return!1}"slowest"===n&&BOOMR.addVar("dom.res.slowest",r.name,!0);if("*"===e.start){for(o in r)r.hasOwnProperty(o)&&o.match(/(Start|End)$/)&&0<r[o]&&BOOMR.addVar(this.varname+"."+o.replace(/^(...).*(St|En).*$/,"$1$2"),Math.round(r[o]),!0);return this.apply(r.duration)}if(e.relative_to_nt||"navigationStart"===e.start)i=O.deltaFromNavStart;else{i=parseFloat(r[e.start],10);if(!isNaN(i)&&0===i)return!1}e=parseFloat(r[e.end],10);if(isNaN(i)||isNaN(e))return!1;if(0===e)return!1;BOOMR.addVar(this.varname+"_st",Math.round(i-O.deltaFromNavStart),!0);return this.apply(e-i)},findResource:function(e,t,n){n=this.findResources(e,t,n,1);return null!==n&&n&&0<n.length?n[0]:null},getFrameResources:function(e,t){try{e.location&&e.location.href;return"performance"in e&&e.performance&&e.performance.getEntriesByName&&e.performance.getEntriesByType?t?e.performance.getEntriesByName(t):e.performance.getEntriesByType("resource"):null}catch(n){if(BOOMR.isCrossOriginError(n))return null;try{if("TypeError"===n.name&&"Invalid calling object"===n.message&&e.document.location.pathname.match(/\.pdf$/))return null}catch(r){}BOOMR.addError(n,"PageVars.getFrameResources");return null}},findResources:function(e,t,n,r){var i,o,a,s,u,l,c,d=[];t=t||p;n=n||0;if("slowest"!==e){if(null===(a=this.getFrameResources(t,e)))return null;if(a&&0<a.length)for(i=0;i<a.length;i++)if(!(a[i].startTime<n)){d.push(a[i]);if(r&&d.length===r)return d}}if(e&&(-1!==e.indexOf("*")||"slowest"===e)&&(a=this.getFrameResources(t))&&0<a.length)for(i=0;i<a.length;i++)if(!(a[i].startTime<n))if("slowest"===e)(!o||a[i].duration>o.duration)&&(o=a[i]);else if(a[i].name&&this.checkURLPattern(e,a[i].name,!1)){d.push(a[i]);if(r&&d.length===r)return d}if(t.frames){u=function f(e){try{return e.frames.length}catch(t){return 0}}(t);for(s=0;s<u;s++){c=t.frames[s];if(c&&c!==t&&(l=this.findResources(e,c,n,r?r-d.length:0)))for(i=0;i<l.length;i++)if("slowest"===e)(!o||l[i].duration>o.duration)&&(o=l[i]);else{d.push(l[i]);if(r&&d.length===r)return d}}}return o?[o]:d},UserTiming:function(e){var t,n;if(!e.parameter2)return!1;if(!a||"function"!=typeof a.getEntriesByType)return!1;if(!this.checkURLPattern(e.parameter1))return!1;t=a.getEntriesByType("mark");for(n=0;t&&n<t.length;n++)if(!(t[n].startTime<O.deltaFromNavStart)&&t[n].name===e.parameter2)return this.apply(t[n].startTime);t=a.getEntriesByType("measure");for(n=0;t&&n<t.length;n++)if(!(t[n].startTime<O.deltaFromNavStart)&&t[n].name===e.parameter2){t[n].startTime&&BOOMR.addVar(this.varname+"_st",Math.round(t[n].startTime),!0);return this.apply(t[n].duration)}O.mayRetry.push({handler:this,data:e})},Payload:function(e,t,n){var r,i,o=BOOMR.window.DOMParser,a=BOOMR.window.JSON;if(!n)return null;if(e.url&&!this.checkURLPattern(e.url,n.url))return null;if(e.parameter1&&e.parameter2){if(!n.response||!n.response.raw)return null;if("queryselector"===e.parameter1||"xpath"===e.parameter1){if(n.response.xml){"queryselector"===e.parameter1?r=this.runQuerySelector(e.parameter2,n.response.xml):"xpath"===e.parameter1&&(r=this.runXPath(e.parameter2,n.response.xml));if(!r)try{if(o){i=(new o).parseFromString(n.response.raw);"queryselector"===e.parameter1?r=this.runQuerySelector(e.parameter2,i):"xpath"===e.parameter1&&(r=this.runXPath(e.parameter2,i))}}catch(u){return null}return this.apply(this.extractFromDOMElement(r,e))}}else if("json"===e.parameter1){if(n.response.json)return this.extractJavaScriptVariable(e.parameter2,e,n.response.json);if(n.response.raw)try{if(window.JSON&&"function"==typeof a.parse){var s=a.parse(n.response.raw);return this.extractJavaScriptVariable(e.parameter2,e,s)}}catch(u){return null}}else if("substring"===e.parameter1){n.response.text||n.response.raw;return(n=this.execSafeRegEx(e.parameter2,n.response.text))&&n.length?!!(n=this.cleanUp(n[0]))&&this.apply(n):!1}}return null},ResourceGroup:function(e,t){var n,r,i,o,a,s,u,l=[];if(BOOMR.utils.isArray(t)){s=t[0];u=t[1]}else{s=t;u=BOOMR.window.document.URL}a="load"===(void 0!==s?s:"onload")?"onload":s;if(e.value){for(n in(this.config=e).value)if(e.value.hasOwnProperty(n)&&this.checkURLPattern(n,u)&&e.value[n].resources&&0<e.value[n].resources.length){if(e.value[n].on&&0<e.value[n].on.length&&(BOOMR.utils.inArray(a,e.value[n].on)||"init"===a&&BOOMR.utils.inArray("onload",e.value[n].on)))for(var c in e.value[n].resources)e.value[n].resources.hasOwnProperty(c)&&l.push(e.value[n].resources[c]);break}if(0===l.length)return null;this.resourceSet=l;(s=BOOMR.getPerformance())&&"function"==typeof s.getEntriesByName&&"function"==typeof s.getEntriesByType&&(this.RTSupport=!0);this.MOSupport=BOOMR.utils.isMutationObserverSupported();this.eventsrc=a;if(this.RTSupport)for(r=0;r<l.length;r++){"init"!==a&&"xhr"!==a&&this.refreshResourceGroupTimings(this.lookupResources(r),r);this.MOSupport&&("init"===a||this.isOnPageEvent())&&(this.obs=this.setupMutationObserver(r))}else if(this.RTSupport||!this.MOSupport||"init"!==a&&!this.isOnPageEvent()){if(!this.RTSupport&&!this.MOSupport&&("init"===a||this.isOnPageEvent()))for(r=0;r<l.length;r++)(i=this.setupListener(r))&&(this.listener=i)}else for(r=0;r<l.length;r++)(o=this.setupMutationObserver(r))&&(this.observer=o);if("onload"===a&&!this.attached){this.applyTimedResources(!0);this.attached=!0}return this}},setupMutationObserver:function(e){var t,n=this.resourceSet[e],r=0,i=this.getNode(e),o={childList:!0,attributes:!0,subtree:!0,attributeFilter:s};if(!this.isOnPageEvent()&&"onload"===this.eventsrc)return null;if(!(i="resource"===n.type?BOOMR.window.document.body:i)&&null===i){this.resourceSet[e].found=!1;this.resourceSet[e].fallback=!0;i=BOOMR.window.document.body}if(!i||"number"!=typeof i.length){if(i&&!this.isContainer(i)){this.resourceSet[e].found=!0;return null}this.traverseElements(i,e);return BOOMR.utils.addObserver(i,o,null,this.mutationCb.bind(this),e,this)}for(r=0;r<i.length;r++){t=i[r];this.traverseElements(t,e);!t||this.isContainer(t)?BOOMR.utils.addObserver(t,o,null,this.mutationCb.bind(this),e,this):this.resourceSet[e].found=!0}},setupListener:function(e){var t,n=this.resourceSet[e],r=this.getNode(e),i=null,o=0,a=this,s=BOOMR.now(),u=0;if((!(r="resource"===n.type?BOOMR.window.document.body:r)||null===r)&&BOOMR.window.document.body){this.resourceSet[e].found=!1;this.resourceSet[e].fallback=!0;r=BOOMR.window.document.body}if(BOOMR.window.document.body!==r||null!==r){if(r&&0<r.length){this.resourceSet[e].found=!0;for(u=0;u<r.length;u++){t=r[u];this.isContainer(t)?this.traverseElements(r,e):this.initResourceGroupListener(t,e)}return null}if(!r||this.isContainer(r)){this.traverseElements(r,e);i=setInterval(function l(){if(500<=o)clearInterval(i);else{a.traverseElements(r,e);o+=BOOMR.now()-s;s=BOOMR.now()}},100)}else{this.resourceSet[e].found=!0;this.initResourceGroupListener(r,e)}}},findResourceChildren:function(e){var t,n,r,i=[];if(!e||!e.getElementsByTagName)return i;for(t=0;t<o.length;t++){r=e.getElementsByTagName(o[t]);for(n=0;n<r.length;n++)i.push(r[n])}return i},attachContainerElements:function(e,t){var n,r,i=this.resourceSet[t],o=[];for(n in o=this.findResourceChildren(e)){r=this.getNodeURL(o[n]);if("resource"===i.type&&r&&this.checkURLPattern(i.value,r)){this.resourceSet[t].found=!0;this.initResourceGroupListener(o[n],t);break}("resource"!==i.type||r&&this.checkURLPattern(i.value,r)||!r&&this.isOnPageEvent())&&this.initResourceGroupListener(o[n],t)}},traverseElements:function(e,t){var n=this.resourceSet[t],r=this.getNodeURL(e);if("resource"===n.type)if(r&&this.checkURLPattern(n.value,r)){this.resourceSet[t].found=!0;this.initResourceGroupListener(e,t)}else this.isContainer(e)&&this.attachContainerElements(e,t);else if(this.isContainer(e)&&!n.fallback){this.resourceSet[t].found=!0;this.attachContainerElements(e,t)}else if(!this.isContainer(e)){this.resourceSet[t].found=!0;this.initResourceGroupListener(e,t)}},mutationCb:function(e,t){this.resourceSet[t];var n,r,i,o,a,s,u=[];if(e&&0<e.length){for(i=0;i<e.length;i++)if((r=e[i]).addedNodes&&0<r.addedNodes.length){a=r.addedNodes;for(s=0;s<a.length;s++)u.push(a[s])}if(u&&0<u.length){n=this.getNode(t);this.RTSupport&&this.refreshResourceGroupTimings(this.lookupResources(t),t);for(o=0;o<u.length;o++)this.traverseElements(u[o],t);if(n&&!n.hasOwnProperty("length")&&this.obs&&this.obs.observer&&this.resourceSet[t].fallback){this.resourceSet[t].fallback=!1;this.obs.observer.disconnect();clearTimeout(this.obs.timer);this.setupMutationObserver(t)}}}},isOnPageEvent:function(e){return e?"spa"===e||"spa_hard"===e||"xhr"===e:"spa"===this.eventsrc||"spa_hard"===this.eventsrc||"xhr"===this.eventsrc},resourceSetIsResolved:function(){var e=this.getUnresolvedIndex();return"boolean"==typeof e||"number"!=typeof e&&void 0},getUnresolvedIndex:function(){for(var e=0;e<this.resourceSet.length;e++)if(!this.resourceSet[e].found)return e;return!1},hasUnresolvedAddVar:function(){if(this.resourceSetIsResolved())return!1;var e=this.getUnresolvedIndex();BOOMR.addVar(this.varname+"_rg.err","nf|"+e,!0);return!(this.resolved=!1)},applyTimedResources:function(e){if(isNaN(this.resourceTime.start)||isNaN(this.resourceTime.stop))return!1;if(0===this.resourceTime.stop)return!1;if(this.hasUnresolvedAddVar())return!1;this.resolved=!0;BOOMR.removeVar(this.varname+"_rg.err");BOOMR.addVar(this.varname+"_st",Math.round(this.resourceTime.start),!0);if(this.obs&&this.obs.observer){this.obs.observer.disconnect();clearTimeout(this.obs.timer)}return this.apply(this.resourceTime.stop-this.resourceTime.start)},lookupResources:function(e){var t,n,r,i=this.resourceSet[e],o=this.getNode(e),a=[],s=0,u=0,l=this.getStartTime(e);if(o&&"undefined"==typeof o.length){this.resourceSet[e].found=!0;if(t=this.getNodeURL(o))a=this.findResources(t);else for(var c=this.findChildElements(o),d=0;d<c.length;d++)a.push(this.findResource(this.getNodeURL(c[d])))}else if(o&&"number"==typeof o.length&&0<o.length&&!o[0][l]&&"resource"!==i.type)for(s=0;s<o.length;s++){n=o[s];if(this.isContainer(n))this.traverseElements(n,e);else if(r=this.findResources(this.getNodeURL(n))){this.resourceSet[e].found=!0;for(u=0;u<r.length;u++)a.push(r[u])}}else if(o&&"number"==typeof o.length){0<o.length&&(this.resourceSet[e].found=!0);return o}return a},refreshResourceGroupTimings:function(e,t){if(e&&0<e.length){for(var n=0;n<e.length;n++)this.updateResourceGroupDelta(e[n],t);this.applyTimedResources()}},isContainer:function(e){if(e&&"string"==typeof e.nodeName)return!this.getNodeURL(e)},getNode:function(e){var t,n=this.resourceSet[e];switch(n.type){case"xpath":t=this.runXPath(n.value);break;case"queryselector":t=this.runQuerySelector(n.value,!1,!0);break;case"resource":this.RTSupport&&(t=this.findResources(n.value))}t||(this.resourceSet[e].found=!1);return t},findChildElements:function(e){var t,n,r,i=[];for(r in o){t=e.getElementsByTagName(o[r]);for(n=0;n<t.length;n++)i.push(t[n])}return i},getNodeURL:function(e){var t;if(!e)return null;switch(e.nodeName){case"IMG":case"IFRAME":case"SCRIPT":case"LINK":case"OBJECT":case"SVG":for(var n=0;n<s.length;n++)if("string"==typeof(t=e[s[n]])&&0<t.length)return t;break;default:return null}},getStartTime:function(e){var t=this.resourceSet[e],e="fetchStart";return e=t.start?t.start:e},updateResourceGroupDelta:function(e,t){var n=this.getStartTime(t);if(e){t=(t=e.responseEnd)||BOOMR.hrNow();"navigationStart"!==n?(!this.resourceTime.start||this.resourceTime.start>e[n])&&(this.resourceTime.start=e[n]):this.resourceTime.start=O.deltaFromNavStart;(!this.resourceTime.stop||this.resourceTime.stop<t)&&(this.resourceTime.stop=t)}},initResourceGroupListener:function(e,t){var n,r=this.resourceSet[t],i=this.getStartTime(t);e._bmr_rg=e._bmr_rg||{};e._bmr_rg[i]=e._bmr_rg[i]||BOOMR.hrNow();if(e._bmr_rg_resource){if(e._bmr_rg_resource&&!e._bmr_rg_resource.hasOwnProperty("length")){n=e._bmr_rg_resource;e._bmr_rg_resource=[]}e._bmr_rg_resource.push(n,r);this.addResourceGroupListener(e,t)}else{e._bmr_rg_resource=r;this.addResourceGroupListener(e,t)}},addResourceGroupListener:function(e,i){var o=this,a=this.resourceSet[i];function t(e){var t=e.target||e.srcElement,n=o.getNodeURL(t),r=o.getStartTime(i);if(n){if(o.RTSupport){e=o.findResources(n);if("resource"===a.type&&o.checkURLPattern(a.value,n)){if(e&&0<e.length){o.resourceSet[i].found=!0;o.refreshResourceGroupTimings(e,i)}}else o.refreshResourceGroupTimings(e,i)}else if("resource"===a.type&&o.checkURLPattern(a.value,n)){t._bmr_rg.responseEnd=t._bmr_rg.responseEnd||BOOMR.hrNow();o.updateResourceGroupDelta(t._bmr_rg,i)}else if(t._bmr_rg&&t._bmr_rg.responseEnd&&t._bmr_rg[r])o.updateResourceGroupDelta(t._bmr_rg,i);else{t._bmr_rg.responseEnd=t._bmr_rg.responseEnd||BOOMR.hrNow();o.updateResourceGroupDelta(t._bmr_rg,i)}o.applyTimedResources()}}e.complete&&this.getNodeURL(e)?t({target:e}):e.addEventListener?e.addEventListener("load",t):e.attachEvent&&e.attachEvent("onload",t)}};BOOMR.utils.runXPath=m.prototype.runXPath;BOOMR.utils.runQuerySelector=m.prototype.runQuerySelector;m.prototype.XPath=m.prototype.URLPatternType;m.prototype.URLQueryParam=m.prototype.URLPattern;O={pageGroups:[],abTests:[],customTimers:[],customMetrics:[],customDimensions:[],autorun:!0,defaultDecimal:".",defaultThousands:",",xhr:undefined,pci:!1,pciBlacklist:[],jsVarPassArgs:!0,spaXhr:undefined,xhrPageGroups:[],resourceGroupHandlers:{},complete:!1,initialized:!1,configReceived:!1,rerunAfterConfig:!1,unloadFired:!1,onloadfired:!1,hasXhrOn:!1,hasXhrIgnore:!1,pciBlacklistQueried:!1,pciBlacklistMatch:[],beaconQueue:[],mayRetry:[],deltaFromNavStart:0,matchPageGroupList:function(e,t,n){for(var r=0,r=0;r<t.length;r++)if(n.handle(t[r],e))return!0;return!1},excludeXhrFilter:function(e){var t=0,n=!1;if(!O.xhr)return!1;(o=h()).pageGroups.varname="xhr.pg";var r=O.hasXhrOn?O.xhrPageGroups:O.pageGroups,i=new m(o.pageGroups);i.method=null;var o=BOOMR.plugins.SPA&&BOOMR.plugins.SPA.isSpaNavInProgress()&&"all"===O.spaXhr;if("none"===O.xhr&&!o)return!0;if("match"===O.xhr&&!O.hasXhrOn&&!o)return!0;if("match"===O.xhr&&!o){if(r&&0===r.length)return!1;for(t=0;t<r.length;t++)if(i.handle(r[t],e.href)&&!r[t].ignore){n=!0;break}return n?!1:!0}if(o||BOOMR.utils.inArray(O.xhr,["all","subresource"]))for(t=0;t<r.length;t++)if(r[t].ignore&&i.handle(r[t],e.href))return!0;return!1},done:function(t,e){var n,r,i,o,a,s,u=O,l=!1;if(O.configReceived){i=h();if("xhr"===e||"error"===e||"rerun"===e||!this.complete){BOOMR_check_doc_domain();if("xhr"===e&&t&&!BOOMR.utils.inArray(t.initiator,BOOMR.constants.BEACON_TYPE_SPAS)){if(null===(u=O.extractXHRParams(t,i)))return;O.complete=!1;if((a=t.data||t).url){(d=f.createElement("a")).href=a.url;if("subresource"===O.xhr){(s=new m(i.pageGroups)).method=null;O.matchPageGroupList(d.href,O.hasXhrOn?O.xhrPageGroups:O.pageGroups,s)||(t.subresource="active")}O.hasXhrOn?u.pageGroups=O.xhrPageGroups:u.pageGroups=O.pageGroups;i.pageGroups.varname="xhr.pg";i.pageGroups.preProcessor=function(e){if(e&&e.match(/_subresource$/)){e=e.replace(/_subresource$/,"");t.subresource="passive"}return e}}}else{d=p.location;"error"!==e&&"early"!==e&&(this.complete=!0)}"error"===e&&(l=!0);O.clearMetrics();O.mayRetry=[];if("xhr"===e&&t&&"spa"===t.initiator&&t.timing&&t.timing.requestStart){s=BOOMR.plugins.RT&&BOOMR.plugins.RT.navigationStart&&BOOMR.plugins.RT.navigationStart()||BOOMR.t_lstart||BOOMR.t_start;O.deltaFromNavStart=t.timing.requestStart-s}else O.deltaFromNavStart=0;for(r in i)if(i.hasOwnProperty(r)){o=new m(i[r]);if(!l||i[r].isDimension)if("xhr"===e&&"pageGroups"===r&&a&&a.pg&&"string"==typeof a.pg)o.apply(a.pg);else for(n=0;n<u[r].length;n++)if("xhr"===e||!u[r][n].only_xhr){var c="xhr"===e&&t&&BOOMR.utils.inArray(t.initiator,BOOMR.constants.BEACON_TYPE_SPAS)?t.initiator:e;if(o.handle(u[r][n],c,a)&&i[r].stopOnFirst){u[r][n].subresource&&"xhr"===e&&t&&(t.subresource="active");break}}}BOOMR.sendBeacon()}}else O.rerunAfterConfig={edata:t,ename:e}},retry:function(){var e,t,n,r=O.mayRetry;O.mayRetry=[];for(e=0;e<r.length;e++)if(r[e]){n=t=null;try{(t=r[e].handler)[(n=r[e].data).type](n)}catch(i){BOOMR.addError(i,"PageVars.retry."+(n?n.type:"?")+"."+(t?t.varname:"?"))}}},initResourceGroupHandlers:function(e){var t,n,r=h();if(r.hasOwnProperty("customTimers"))for(var i=new m(r.customTimers),o=0;o<O.customTimers.length;o++)"ResourceGroup"===O.customTimers[o].type&&(t=O.customTimers[o]).label&&!O.resourceGroupHandlers.hasOwnProperty(t.label)&&(n=i.handle(t,e))&&(O.resourceGroupHandlers[t.label]=n)},removeResolvedResourceGroupHandlers:function(){for(var e in O.resourceGroupHandlers)O.resourceGroupHandlers.hasOwnProperty(e)&&O.resourceGroupHandlers[e].resolved&&delete O.resourceGroupHandlers[e]},clearMetrics:function(){O.pciBlacklistQueried=!1},onload:function(){this.onloadfired=!0},extractXHRParams:function(e,t){var n,r,i,o,a,s,u,l,c,d,f;if(!e)return null;if(!((f=e.data||e).url||f.timers&&f.timers.length||f.metrics&&f.metrics.length||f.dimensions&&f.dimensions.length))return null;n={pageGroups:[],abTests:O.abTests,customTimers:[],customMetrics:[],customDimensions:[]};for(i in r={timers:{impl:"customTimers",data:f.timers},metrics:{impl:"customMetrics",data:f.metrics},dimensions:{impl:"customDimensions",data:f.dimensions}})if(r.hasOwnProperty(i))if((o=r[i]).data&&o.data.length)for(c=0;c<o.data.length;c++){a=(u=o.data[c].split(/\s*=\s*/))[0];s=u[1];for(l=0;l<O[o.impl].length;l++)if(O[o.impl][l].name===a)if(void 0===s)n[o.impl].push(O[o.impl][l]);else{(d=new m(t[o.impl])).varname=O[o.impl].label;d.apply(d.cleanUp(s));d=null}}else if(f.url)for(l=0;l<O[o.impl].length;l++)O[o.impl][l].xhr_ok&&n[o.impl].push(O[o.impl][l]);return n},onunload:function(){O.unloadFired=!0;return this},onBeforeBeacon:function(e){e&&"error"===e["http.initiator"]&&O.done({},"error")},onBeforeEarlyBeacon:function(e){this.complete=!1;this.done({},"early")},prerenderToVisible:function(){this.complete=!1;this.done({},"load")},runPageParamsHandler:function(e,t){var n,r,i,o=h()[e],a=O[e];d=BOOMR.window.location;o.method=t;r=new m(o);for(n=0;n<a.length;n++)if(!a[n].only_xhr&&(i=r.handle(a[n],"custom"))&&o.stopOnFirst)return i},runAllDimensions:function(e){O.runPageParamsHandler("pageGroups",e);O.runPageParamsHandler("abTests",e);O.runPageParamsHandler("customDimensions",e)},sendMetric:function(e,t){if("string"==typeof e&&(void 0===t||"number"==typeof t)){var n={};n[e]=t=void 0===t?1:t;O.sendMetrics(n)}},sendMetrics:function(e){"object"==typeof e&&O.addToBeaconQueue({metrics:e})},sendTimer:function(e,t){if("string"==typeof e&&"number"==typeof t){var n={};n[e]=t;O.sendTimers(n)}},sendTimers:function(e){"object"==typeof e&&O.addToBeaconQueue({timers:e})},sendAll:function(e){"object"==typeof e&&O.addToBeaconQueue(e)},addToBeaconQueue:function(n){n.timestamp||(n.timestamp=BOOMR.now());n.vars||(n.vars={});O.configReceived?O.runAllDimensions(function(e,t){n.vars[e]=t}):n.needsDimensions=!0;O.beaconQueue.push(n);BOOMR.setImmediate(O.processBeaconQueue)},processBeaconQueue:function(e){var t,n,r,i={},o=!1,a=!1;if(0!==O.beaconQueue.length&&O.configReceived){t=O.beaconQueue.shift();i["rt.tstart"]=t.timestamp;i["rt.end"]=t.timestamp;i["http.initiator"]="api_custom_"+(t.timers?"timer":"metric");if(t.metrics)for(r in t.metrics)if(t.metrics.hasOwnProperty(r)){o=!1;for(n=0;n<O.customMetrics.length;n++)if(r===O.customMetrics[n].name){o=a=!0;i[O.customMetrics[n].label]=t.metrics[r];break}o||BOOMR.warn("Custom Metric "+r+" not found")}if(t.timers)for(r in t.timers)if(t.timers.hasOwnProperty(r)){o=!1;for(n=0;n<O.customTimers.length;n++)if(r===O.customTimers[n].name){o=a=!0;i.t_other?i.t_other+=",":i.t_other="";i.t_other+=O.customTimers[n].label+"|"+t.timers[r];break}o||BOOMR.warn("Custom Timer "+r+" not found")}if(a){for(var s in t.vars)t.vars.hasOwnProperty(s)&&(i[s]=t.vars[s]);i.n=++BOOMR.beaconsSent;O.sendBeacon(i);BOOMR.setImmediate(O.processBeaconQueue)}else BOOMR.warn("No data found to send, aborting Custom beacon")}},sendBeacon:function(e){e.d=BOOMR.session.domain;e["h.key"]=BOOMR.getVar("h.key");e["h.d"]=BOOMR.getVar("h.d");e["h.cr"]=BOOMR.getVar("h.cr");e["h.t"]=BOOMR.getVar("h.t");e.pid=BOOMR.pageId;e["rt.start"]="manual";if(BOOMR.session&&!1!==BOOMR.session.ID){e["rt.si"]=BOOMR.session.ID+"-"+Math.round(BOOMR.session.start/1e3).toString(36);e["rt.ss"]=BOOMR.session.start;e["rt.sl"]=BOOMR.session.length}e.api=1;e["api.v"]=2;e["api.l"]="boomr";e.v=BOOMR.version;BOOMR.fireEvent("before_custom_beacon",e);BOOMR.sendBeaconData(e)}};BOOMR.sendMetric=O.sendMetric;BOOMR.sendMetrics=O.sendMetrics;BOOMR.sendTimer=O.sendTimer;BOOMR.sendTimers=O.sendTimers;BOOMR.sendAll=O.sendAll;BOOMR.plugins.PageParams={init:function(e){var n,t=0,r=[];p=BOOMR.window;d=p.location;f=p.document;a=BOOMR.getPerformance();BOOMR.utils.pluginConfig(O,e,"PageParams",["pageGroups","abTests","customTimers","customMetrics","customDimensions","autorun","defaultDecimal","defaultThousands","xhr","pci","pciBlacklist","jsVarPassArgs","spaXhr"]);O.complete=!1;if("undefined"!=typeof e.PageParams){if(O.pageGroups&&0<O.pageGroups.length)for(t=0;t<O.pageGroups.length;t++)if(O.pageGroups[t]){if(O.pageGroups[t].on&&BOOMR.utils.inArray("xhr",O.pageGroups[t].on)||O.pageGroups[t].ignore){O.xhrPageGroups.push(O.pageGroups[t]);O.hasXhrOn=!0;O.pageGroups[t].ignore&&(O.hasXhrIgnore=!0);if(O.pageGroups[t].on&&1===O.pageGroups[t].on.length||O.pageGroups[t].ignore)continue}BOOMR.plugins.AutoXHR&&"Payload"===O.pageGroups[t].type&&BOOMR.plugins.AutoXHR.setXhrRequestResponseCapturing(!0);r.push(O.pageGroups[t])}O.pageGroups=r}"undefined"!=typeof e.autorun&&(O.autorun=e.autorun);O.pci&&BOOMR.addVar("pci",1);if(O.initialized&&O.configReceived)return this;if(O.initialized){O.configReceived=!0;O.initResourceGroupHandlers("init");for(n=0;n<O.beaconQueue.length;n++)if(O.beaconQueue[n].needsDimensions){O.runAllDimensions(function(e,t){O.beaconQueue[n].vars[e]=t});delete O.beaconQueue[n].needsDimensions}if(O.rerunAfterConfig){O.done(O.rerunAfterConfig.edata,O.rerunAfterConfig.ename);O.rerunAfterConfig=!1;return}}BOOMR.setImmediate(O.processBeaconQueue);if(!O.initialized){if(O.onloadfired)O.autorun&&O.done("load");else{BOOMR.subscribe("page_ready",O.onload,"load",O);BOOMR.subscribe("page_ready",O.done,"load",O);BOOMR.subscribe("prerender_to_visible",O.prerenderToVisible,"load",O);BOOMR.subscribe("spa_init",O.initResourceGroupHandlers);BOOMR.subscribe("xhr_init",O.initResourceGroupHandlers)}BOOMR.subscribe("before_unload",O.onunload,null,O);BOOMR.subscribe("before_unload",O.done,"unload",O);BOOMR.subscribe("beacon",O.clearMetrics,null,O);BOOMR.subscribe("beacon",O.removeResolvedResourceGroupHandlers);BOOMR.subscribe("xhr_load",O.done,"xhr",O);BOOMR.subscribe("before_beacon",O.onBeforeBeacon,null,O);BOOMR.subscribe("before_early_beacon",O.onBeforeEarlyBeacon,null,O);BOOMR.plugins.AutoXHR&&BOOMR.plugins.AutoXHR.addExcludeFilter(O.excludeXhrFilter,O,"BOOMR.plugins.PageParams.PageGroups");O.initialized=!0}return this},is_complete:function(){0<O.mayRetry.length&&O.retry();return O.configReceived||O.unloadFired},readyToSend:function(){return O.configReceived||O.unloadFired},rerun:function(){O.done({},"rerun")}}}}();!function(){var c,a,d,p,O,f=["uninitialized","open","responseStart","domInteractive","responseEnd"];if(!BOOMR.plugins.AutoXHR&&(c=BOOMR.window)&&c.XMLHttpRequest&&(new c.XMLHttpRequest).addEventListener){s.stop=function(){s.pause();s.observer=null};s.pause=function(){if(s.observer&&s.observer.observer&&!s.isPaused){s.isPaused=!0;s.observer.observer.disconnect()}};s.resume=function(){if(s.observer&&s.observer.observer&&s.isPaused){s.isPaused=!1;s.observer.observer.observe(a,s.observer.config)}};s.start=function(){if(!s.observer){var e={childList:!0,attributes:!0,subtree:!0,attributeFilter:["src","href"]};if(s.observer=BOOMR.utils.addObserver(a,e,null,d.mutation_cb,null,d)){s.observer.config=e;BOOMR.subscribe("page_unload",s.stop,null,s)}}};s.prototype.addEvent=function(e){for(var t,n,r={type:e.initiator,resource:e,nodes_to_wait:0,total_nodes:0,resources:[],xhr_resources:[],complete:!1,aborted:!1,firedEarlyBeacon:!1},i=this.pending_events.length,o=this,a=i-1;0<=a;a--)if(this.pending_events[a]&&!this.pending_events[a].complete){t=this.pending_events[a];n=a;break}if(t)if("click"===t.type&&O.singlePageApp&&O.spaStartFromClick&&"xhr"===r.type){r.resource.fromClick=!0;r.resource.timing.click=t.resource.timing.requestStart;r.resource.timing.requestStart=t.resource.timing.requestStart;r.interesting=t.interesting||0;r.total_nodes+=t.total_nodes;r.resources=t.resources.concat(r.resources);r.xhr_resources=t.xhr_resources.concat(r.xhr_resources);this.pending_events[n]=undefined;this.watch--}else if(("click"===t.type||t.resource.fromClick)&&O.singlePageApp&&O.spaStartFromClick&&"spa"===r.type){r.resource.timing=t.resource.timing;r.interesting=t.interesting||0;r.total_nodes+=t.total_nodes;r.resources=t.resources.concat(r.resources);t.resource.url&&r.xhr_resources.push(t.resource.url);r.xhr_resources=r.xhr_resources.concat(t.xhr_resources);this.pending_events[n]=undefined;this.watch--}else if("click"===t.type){if(0===t.nodes_to_wait||!t.resource.url){this.pending_events[n]=undefined;this.watch--}}else if("xhr"===t.type){if("click"===r.type)return null;if("xhr"===r.type){d.add_event_resource(e);return null}}else if(BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS)){if("xhr"===r.type){d.add_event_resource(e);return null}if(BOOMR.utils.inArray(r.type,BOOMR.constants.BEACON_TYPE_SPAS)){t.resource.timing.loadEventEnd=BOOMR.now();t.aborted=!0;this.sendEvent(n)}}if("click"===r.type){if(!s.observer)return null;this.setTimeout(O.xhrIdleTimeout,i)}else if("xhr"===r.type){r.nodes_to_wait++;r.total_nodes++;r.ignoreMO=!0}else if(BOOMR.utils.inArray(r.type,BOOMR.constants.BEACON_TYPE_SPAS)){s.start();if(e.wait){r.nodes_to_wait++;r.total_nodes++;e.waitComplete=function(){o.load_finished(i);e.waitComplete=undefined}}else this.setTimeout(O.spaIdleTimeout,i)}this.watch++;this.pending_events.push(r);return e.index=i};s.prototype.sendEvent=function(e){var t=this.pending_events[e],n=this;BOOMR.now();if(t&&!t.complete){this.clearTimeout(e);if(BOOMR.readyToSend()){t.complete=!0;this.watch--;BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS)&&(t.resource.url=a.URL);if("spa"!==t.type||0!==t.total_nodes||t.resource.url!==n.lastSpaLocation)if("click"!==t.type||0!==t.total_nodes&&t.resource.url){"click"===t.type&&O.singlePageApp&&O.spaStartFromClick&&(t.type=t.resource.initiator="xhr");if(!O.xhrRequireChanges||"xhr"!==t.type||1!==t.total_nodes||"undefined"!=typeof t.interesting&&0!==t.interesting||u(t.resource.url,O.alwaysSendXhr)){if(BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS)){n.lastSpaLocation=t.resource.url;if(!t.forced){"spa"===t.type&&0===t.total_nodes&&(t.resource.timing.loadEventEnd=t.resource.timing.requestStart+1);if("spa_hard"===t.type){var r=BOOMR.getPerformance();r&&r.timing&&r.timing.loadEventEnd&&t.resource.timing.loadEventEnd&&t.resource.timing.loadEventEnd<r.timing.loadEventEnd&&(t.resource.timing.loadEventEnd=r.timing.loadEventEnd)}}}this.sendResource(t.resource,e)}else this.pending_events[e]=undefined}else this.pending_events[e]=undefined;else{BOOMR.fireEvent("spa_cancel");this.pending_events[e]=undefined}}else setTimeout(function(){n.sendEvent(e)},500)}};s.prototype.sendResource=function(n,r){var i=this,e=i.pending_events[r],o=n.timing?n.timing.requestStart:undefined,t=function(e,t){e&&(n.timing.loadEventEnd=t||BOOMR.now());BOOMR.real_sendBeacon();n.onComplete&&n.onComplete(n);BOOMR.plugins.ResourceTiming&&BOOMR.plugins.ResourceTiming.is_enabled()&&n.timing&&n.timing.requestStart&&(n.restiming=BOOMR.plugins.ResourceTiming.getCompressedResourceTiming(n.timing.requestStart,n.timing.loadEventEnd));if(BOOMR.utils.inArray(n.initiator,BOOMR.constants.BEACON_TYPE_SPAS)){i.calculateSpaTimings(n);if("number"==typeof r&&i.pending_events[r].aborted){BOOMR.addVar("pgu",a.URL,!0);BOOMR.addVar("rt.quit","",!0);BOOMR.addVar("rt.abld","",!0)}}BOOMR.responseEnd(n,o,n);"number"==typeof r&&(i.pending_events[r]=undefined)};"spa_hard"!==n.initiator||e&&e.aborted||BOOMR.hasBrowserOnloadFired()?t(!1):BOOMR.utils.addListener(c,"load",function(){var e=BOOMR.now();BOOMR.setImmediate(function(){t(!0,e)})})};s.prototype.calculateSpaTimings=function(e){var t=BOOMR.getPerformance();if(t&&t.timing)if("spa_hard"===e.initiator){e.timing.responseEnd=t.timing.responseStart;e.timing.fetchStart=t.timing.navigationStart}else if(BOOMR.plugins.ResourceTiming&&BOOMR.plugins.ResourceTiming.is_supported()){var n=BOOMR.plugins.ResourceTiming.getFilteredResourceTiming(e.timing.requestStart,e.timing.loadEventEnd,O.spaBackEndResources).entries,r=Math.round(e.timing.loadEventEnd-e.timing.requestStart);if(n&&n.length){for(var i=e.timing.loadEventEnd-t.timing.navigationStart,o=0;o<n.length;o++)if(n[o].responseStart>i){n[o].responseStart=i;n[o].responseEnd=i}else n[o].responseEnd>i&&(n[o].responseEnd=i);var a=Math.round(BOOMR.plugins.ResourceTiming.calculateResourceTimingUnion(n)),t=r-a;a<0||r<0||t<0?BOOMR.addError("Incorrect SPA time calculation"):e.timers={t_resp:a,t_page:t,t_done:r}}else e.timers={t_resp:0,t_page:r,t_done:r}}};s.prototype.setTimeout=function(e,t){var n=this;if(e){this.clearTimeout(t);this.timer=setTimeout(function(){n.timedout(t)},e)}};s.prototype.timedout=function(e){var t;this.clearTimeout(e);(t=this.pending_events[e])&&(!BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS)||BOOMR.hasBrowserOnloadFired()?0===t.nodes_to_wait&&this.sendEvent(e):this.setTimeout(O.spaIdleTimeout,e))};s.prototype.clearTimeout=function(e){if(this.timer&&e===this.pending_events.length-1){clearTimeout(this.timer);this.timer=null}};s.prototype.load_cb=function(e,t){var n=BOOMR.now(),r=e.target||e.srcElement;if(r&&r._bmr){e=r._bmr.idx;t=void 0!==t?t:r._bmr.res||0;if(!r._bmr.end[t]){r._bmr.end[t]=n;this.load_finished(e,n)}}};s.prototype.monitorMO=function(e){e=this.pending_events[e];e&&delete e.ignoreMO};s.prototype.load_finished=function(e,t){var n=this.pending_events[e];if(n){n.nodes_to_wait--;if(0===n.nodes_to_wait){n.resource.timing.loadEventEnd=t||BOOMR.now();if(e===this.pending_events.length-1)if(BOOMR.utils.inArray(n.type,BOOMR.constants.BEACON_TYPE_SPAS)){if(!n.firedEarlyBeacon&&BOOMR.plugins.Early&&BOOMR.plugins.Early.is_supported()){if(this.timerEarlyBeacon){clearTimeout(this.timerEarlyBeacon);this.timerEarlyBeacon=null}this.timerEarlyBeacon=setTimeout(function(){d.timerEarlyBeacon=null;if(!n.firedEarlyBeacon&&0===n.nodes_to_wait){n.firedEarlyBeacon=!0;BOOMR.plugins.Early.sendEarlyBeacon(n.resource,n.type)}},100)}this.setTimeout(O.spaIdleTimeout,e)}else this.setTimeout(O.xhrIdleTimeout,e);else this.sendEvent(e)}}};s.prototype.wait_for_node=function(t,n){var r,i,o,e,a,s,u,l,c=this,d=!1,f=!1;if(t&&t.nodeName&&(t.nodeName.toUpperCase().match(/^(IMG|IFRAME|IMAGE)$/)||"LINK"===t.nodeName.toUpperCase()&&t.rel&&t.rel.match(/\bstylesheet\b/i))){t._bmr&&"number"==typeof t._bmr.res&&t._bmr.end[t._bmr.res]&&(f=!0);e=t.src||"function"==typeof t.getAttribute&&t.getAttribute("xlink:href")||t.href;t._bmr&&t._bmr.url!==e&&(f=!0);if(f&&"function"==typeof t._bmr.listener){c.load_cb({target:t,type:"changed"});t.removeEventListener("load",t._bmr.listener);t.removeEventListener("error",t._bmr.listener);delete t._bmr.listener}if(!e||e.match(/^(about:|javascript:|data:)/i))return!1;if("IMG"===t.nodeName){if(t.naturalWidth&&!f)return!1;if("function"==typeof t.getAttribute&&""===t.getAttribute("src"))return!1;if("lazy"===t.loading)return!1}if("IFRAME"===t.nodeName&&f)return!1;if("function"==typeof t.getAttribute){s=parseInt(t.getAttribute("height"),10);u=parseInt(t.getAttribute("width"),10)}isNaN(s)&&(s=!t.style||"0"!==t.style.height&&"0px"!==t.style.height&&"1px"!==t.style.height?undefined:0);isNaN(u)&&(u=!t.style||"0"!==t.style.width&&"0px"!==t.style.width&&"1px"!==t.style.width?undefined:0);if(!isNaN(s)&&s<=1&&!isNaN(u)&&u<=1)return!1;if(0===s||0===u)return!1;if(t.style&&("none"===t.style.display||"hidden"===t.style.visibility||"0"===t.style.opacity))return!1;if(O.domExcludeFilter(t))return!1;if(!(u=this.pending_events[n]))return!1;a=u.resources.length;u.urls||(u.urls={});if(u.urls[e])return!1;if(!u.resource.url){p.href=e;if(O.xhrExcludeFilter(p))return!1;u.resource.url=p.href}t._bmr||(t._bmr={end:{}});t._bmr.res=a;t._bmr.idx=n;delete t._bmr.end[a];t._bmr.url=e;l=function(e){c.load_cb(e,a);t.removeEventListener("load",l);t.removeEventListener("error",l);delete t._bmr.listener};t._bmr.listener=l;t.addEventListener("load",l);t.addEventListener("error",l);u.nodes_to_wait++;this.clearTimeout(n);u.total_nodes++;u.resources.push(t);u.urls[e]=1;d=!0}else t.nodeType===Node.ELEMENT_NODE&&["IMAGE","IMG"].forEach(function(e){if((r=t.getElementsByTagName(e))&&r.length)for(i=0,o=r.length;i<o;i++)d|=this.wait_for_node(r[i],n)},this);return d};s.prototype.add_event_resource=function(e){var t,n=this.pending_events.length-1;if(n<0)return-1;if(!(t=this.pending_events[n]))return-1;if(!e)return-1;t.xhr_resources.push(e.url);t.nodes_to_wait++;t.total_nodes++;e.index=n;e.node=!0;return n};s.prototype.mutation_cb=function(e){var i,o,a;if(!this.watch)return!0;if((o=(i=this).pending_events.length-1)<0||!this.pending_events[o])return!0;if((a=this.pending_events[o]).ignoreMO)return!0;"undefined"==typeof a.interesting&&(a.interesting=!1);if(e&&e.length){a.resource.timing.domComplete=BOOMR.now();e.forEach(function(e){var t,n,r;if("attributes"===e.type)a.interesting|=i.wait_for_node(e.target,o);else if("childList"===e.type){n=e.addedNodes.length;for(t=0;t<n;t++)a.interesting|=i.wait_for_node(e.addedNodes[t],o);n=e.removedNodes.length;for(t=0;t<n;t++)"IFRAME"===(r=e.removedNodes[t]).nodeName&&r._bmr&&i.load_cb({target:r,type:"removed"})}})}if(!a.interesting&&!a.timeoutExtended){this.setTimeout(1e3,o);a.timeoutExtended=!0}return!0};s.prototype.queue_is_empty=function(){return 0===this.nodesWaitingFor()};s.prototype.nodesWaitingFor=function(e){if(0===this.pending_events.length)return 0;void 0===e&&(e=this.pending_events.length-1);return(e=this.pending_events[e])?e.nodes_to_wait:0};s.prototype.completeEvent=function(e){var t,n=BOOMR.now();if(0!==this.pending_events.length){void 0===e&&(e=this.pending_events.length-1);if(t=this.pending_events[e]){t.resource.timing.loadEventEnd=n;t.forced=!0;this.sendEvent(e)}}};d=new s;O={spaBackEndResources:["xmlhttprequest","script","fetch"],alwaysSendXhr:!1,xhrExcludeFilters:[],domExcludeFilters:[],initialized:!1,captureXhrRequestResponse:!1,singlePageApp:!1,spaStartFromClick:!1,autoXhrEnabled:!1,monitorFetch:!1,fetchBodyUsedWait:200,spaIdleTimeout:1e3,xhrIdleTimeout:50,xhrRequireChanges:!0,xhrExcludeFilter:function(e){var t,n;if(!e||!e.href)return!1;for(t=0;t<O.xhrExcludeFilters.length;t++)if("function"==typeof O.xhrExcludeFilters[t].cb){n=O.xhrExcludeFilters[t].ctx;try{if(O.xhrExcludeFilters[t].cb.call(n,e))return!0}catch(r){BOOMR.addError(r,"BOOMR.plugins.AutoXHR.impl.xhrExcludeFilter()")}}return!1},domExcludeFilter:function(e){for(var t,n=0;n<O.domExcludeFilters.length;n++)if("function"==typeof O.domExcludeFilters[n].cb){t=O.domExcludeFilters[n].ctx;O.domExcludeFilters[n].name;try{if(O.domExcludeFilters[n].cb.call(t,e))return!0}catch(r){BOOMR.addError(r,"BOOMR.plugins.AutoXHR.impl.domExcludeFilter()")}}return!1},loadFinished:function(t,e){var n,r,i;e=e||BOOMR.now();if(!t.timing.loadEventEnd){t.status&&BOOMR.fireEvent("xhr_error",t);t.timing.loadEventEnd=e;if((i=BOOMR.getPerformance())&&i.timing){r=i.timing.navigationStart;if(n=BOOMR.getResourceTiming(t.url,function(e,t){return e.responseEnd-t.responseEnd},function(e){return Math.ceil(r+e.startTime+2)>=t.timing.requestStart&&0!==e.responseEnd})){e=Math.floor(r+n.startTime);if((i=Math.floor(r+n.responseEnd))<=BOOMR.now()){t.timing.responseEnd=i;t.timing.loadEventEnd<i&&(t.timing.loadEventEnd=i);t.fromClick&&t.timing.requestStart||(t.timing.requestStart=e);t.timing.fetchStart=e;0!==n.responseStart&&(t.timing.responseStart=Math.floor(r+n.responseStart));t.restiming=n}}}t.node&&u(t.url,O.alwaysSendXhr)&&d.sendResource(t);if(0<=t.index){d.monitorMO(t.index);d.load_finished(t.index,t.timing.responseEnd)}}}};BOOMR.plugins.AutoXHR={is_complete:function(){return!0},init:function(e){var t,n;a=c.document;if(c&&a){p=a.createElement("A");BOOMR.utils.pluginConfig(O,e,"AutoXHR",["spaBackEndResources","alwaysSendXhr","monitorFetch","fetchBodyUsedWait","spaIdleTimeout","xhrIdleTimeout","xhrRequireChanges","spaStartFromClick"]);if(!O.initialized){BOOMR.instrumentXHR=h;BOOMR.uninstrumentXHR=g;BOOMR.instrumentFetch=l;BOOMR.uninstrumentFetch=m;this.addExcludeFilter(o,null,"shouldExcludeXhr");O.initialized=!0}if(e&&e.AutoXHR&&e.AutoXHR.excludeFilters&&0<e.AutoXHR.excludeFilters.length)for(n=0;n<e.AutoXHR.excludeFilters.length;n++)"function"==typeof e.AutoXHR.excludeFilters[n]?O.xhrExcludeFilters.push({cb:e.AutoXHR.excludeFilters[n],ctx:this,name:"unknown XHR filter"}):O.xhrExcludeFilters.push(e.AutoXHR.excludeFilters[n]);if(e&&e.AutoXHR&&e.AutoXHR.domExcludeFilters&&0<e.AutoXHR.domExcludeFilters.length)for(n=0;n<e.AutoXHR.domExcludeFilters.length;n++)"function"==typeof e.AutoXHR.domExcludeFilters[n]?O.domExcludeFilters.push({cb:e.AutoXHR.domExcludeFilters[n],ctx:this,name:"unknown DOM filter"}):O.domExcludeFilters.push(e.AutoXHR.domExcludeFilters[n]);O.autoXhrEnabled=O.autoXhrEnabled||e.instrument_xhr;O.singlePageApp=O.singlePageApp||BOOMR.plugins.SPA&&BOOMR.plugins.SPA.isSinglePageApp(e);if(O.alwaysSendXhr&&O.autoXhrEnabled&&BOOMR.xhr&&"function"==typeof BOOMR.xhr.stop){function r(e){if(e.length)for(t=0;t<e.length;t++)R(e[t]);else R(e)}var i=BOOMR.xhr.stop(r);i&&i.length&&BOOMR.setImmediate(r,i)}if("undefined"!=typeof e.instrument_xhr)if(O.singlePageApp){O.alwaysSendXhr||(O.autoXhrEnabled=!1);if(O.autoXhrEnabled){BOOMR.instrumentXHR();BOOMR.instrumentFetch()}}else if(O.autoXhrEnabled){BOOMR.instrumentXHR();BOOMR.instrumentFetch()}else if(!1===O.autoXhrEnabled){BOOMR.uninstrumentXHR();BOOMR.uninstrumentFetch()}BOOMR.registerEvent("xhr_error")}},getMutationHandler:function(){return d},getPathname:n,enableAutoXhr:function(){if(!O.autoXhrEnabled){BOOMR.instrumentXHR();BOOMR.instrumentFetch()}O.autoXhrEnabled=!0},addExcludeFilter:function(e,t,n){O.xhrExcludeFilters.push({cb:e,ctx:t,name:n})},addDomExcludeFilter:function(e,t,n){O.domExcludeFilters.push({cb:e,ctx:t,name:n})},setXhrRequestResponseCapturing:function(e){O.captureXhrRequestResponse=e}}}function n(e){if(!e)return null;e.href=e.href;e=e.pathname;return e="/"!==e.charAt(0)?"/"+e:e}function o(e){var t;if(e.href){if(e.href.match(/^(about:|javascript:|data:)/i))return!0;if("function"==typeof BOOMR.getBeaconURL&&BOOMR.getBeaconURL()&&(0===(t=e.href.indexOf(BOOMR.getBeaconURL()))||5===t||6===t))return!0}return BOOMR.xhr_excludes.hasOwnProperty(e.href)||BOOMR.xhr_excludes.hasOwnProperty(e.hostname)||BOOMR.xhr_excludes.hasOwnProperty(n(e))}function s(){this.watch=0;this.timer=null;this.timerEarlyBeacon=null;this.pending_events=[];this.lastSpaLocation=null}function u(e,t){var n,r;if(t&&e){if("boolean"==typeof t)return!0===t;if("function"==typeof t)try{return!0===t(e)}catch(i){return}if(BOOMR.utils.isArray(t))for(n=0;n<t.length;n++){if("string"==typeof(r=t[n])&&r===e)return 1;if(r instanceof RegExp&&r.test(e))return 1}}}function l(){if(O.monitorFetch&&"function"==typeof c.fetch&&"function"==typeof c.Request&&"function"==typeof c.Response&&"function"==typeof c.Promise&&"function"==typeof window.fetch&&!c.fetch.polyfill&&!(BOOMR.proxy_fetch&&BOOMR.proxy_fetch===c.fetch||BOOMR.wrapped_fetch))if(BOOMR.proxy_fetch&&BOOMR.orig_fetch&&BOOMR.orig_fetch===c.fetch)c.fetch=BOOMR.proxy_fetch;else{BOOMR.orig_fetch=c.orig_fetch||c.fetch;BOOMR.proxy_fetch=function(e,t){var n,r,i,o={timing:{},initiator:"xhr"};if("object"==typeof e&&e instanceof c.Request){n=e.url;r=t&&t.method||e.method||"GET";O.captureXhrRequestResponse&&(i=t&&t.body||e.body||undefined)}else{n=e;r=t&&t.method||"GET";O.captureXhrRequestResponse&&(i=t&&t.body||undefined)}p.href=n;if(O.xhrExcludeFilter(p))return BOOMR.orig_fetch.apply(c,arguments);BOOMR.fireEvent("xhr_init","fetch");o.url=p.href;o.method=r;o.type="fetch";i&&(o.requestPayload=i);BOOMR.fireEvent("xhr_send",{resource:o});d.addEvent(o);try{o.timing.requestStart||(o.timing.requestStart=BOOMR.now());var a=BOOMR.orig_fetch.apply(this,arguments);function s(r,i,o){function a(){var e;if(o.fetchResponse&&!o.fetchResponse.bodyUsed&&O.fetchBodyUsedWait){e=BOOMR.now();o.responseBodyNotUsed=!0;setTimeout(function(){O.loadFinished(o,e)},O.fetchBodyUsedWait)}else O.loadFinished(o)}return function(){var e,t=r._bmrNextP;try{e=i.apply(this===window?c:this,arguments);for(;t&&!t._bmrHasOnFulfilled;)t=t._bmrNextP;t||(e instanceof c.Promise?e.then=u(e,e.then,o):a());return e}catch(n){for(;t&&!t._bmrHasOnRejected;)t=t._bmrNextP;t||a();throw n}}}function u(t,n,r){return t._bmrNextP?n:function(){var e=Array.prototype.slice.call(arguments);if(0<e.length){if("function"==typeof e[0]){e[0]=s(t,e[0],r);t._bmrHasOnFulfilled=!0}if(1<e.length&&"function"==typeof e[1]){e[1]=s(t,e[1],r);t._bmrHasOnRejected=!0}}e=n.apply(t,e);(t._bmrNextP=e).then=u(e,e.then,r);return e}}a.then=u(a,a.then,o);return a.then(function(e){var t,n=!1,r=!1;e.redirected&&(o.responseUrl=e.url);(e.status<200||400<=e.status)&&(o.status=e.status);o.fetchResponse=e;0<=o.index&&d.monitorMO(o.index);if(O.captureXhrRequestResponse&&"function"==typeof e.clone){if(t=e.headers.get("content-type")){n=-1!==t.indexOf("json");r=-1!==t.indexOf("xml")}o.response={};try{e.clone().text().then(function(e){o.response.text=e;o.response.raw=e;r&&"function"==typeof c.DOMParser&&(o.response.xml=(new c.DOMParser).parseFromString(e,"text/xml"))}).then(null,function(e){})}catch(i){}if(n)try{e.clone().json().then(function(e){o.response.json=e}).then(null,function(e){})}catch(i){}}return e},function(e){!e||"AbortError"!==e.name&&20!==e.code?o.status=-998:o.status=-999;throw e})}catch(l){o.status=-997;O.loadFinished(o);throw l}};BOOMR.utils.overwriteNative(c,"fetch",BOOMR.proxy_fetch);BOOMR.wrapped_fetch=!0}}function m(){if("function"==typeof c.fetch&&BOOMR.orig_fetch&&BOOMR.orig_fetch!==c.fetch){c.fetch=BOOMR.orig_fetch;BOOMR.wrapped_fetch=!1}}function h(){if(!(BOOMR.proxy_XMLHttpRequest&&BOOMR.proxy_XMLHttpRequest===c.XMLHttpRequest||BOOMR.wrapped_XMLHttpRequest))if(BOOMR.proxy_XMLHttpRequest&&BOOMR.orig_XMLHttpRequest&&BOOMR.orig_XMLHttpRequest===c.XMLHttpRequest){c.XMLHttpRequest=BOOMR.proxy_XMLHttpRequest;s.start()}else{BOOMR.orig_XMLHttpRequest=c.orig_XMLHttpRequest||c.XMLHttpRequest;s.start();!function e(){BOOMR.subscribe("click",function(){if(!O.singlePageApp||O.spaStartFromClick){var e={timing:{},initiator:"click"};if(BOOMR.orig_XMLHttpRequest&&BOOMR.orig_XMLHttpRequest!==c.XMLHttpRequest){e.timing.requestStart=BOOMR.now();d.addEvent(e)}}})}();BOOMR.proxy_XMLHttpRequest=function(){var o={timing:{},initiator:"xhr"},a=!1,s=!1,u=new BOOMR.orig_XMLHttpRequest,l=u.open,t=u.send;u.open=function(e,t,n){p.href=t;if(O.xhrExcludeFilter(p)){s=!0;return l.apply(u,arguments)}s=!1;void 0===n&&(n=!0);BOOMR.fireEvent("xhr_init","xhr");function r(t,n){u.addEventListener(t,function(){if("readystatechange"===t){o.timing[f[u.readyState]]=BOOMR.now();if(4===u.readyState&&0!==u.status){u.responseURL!==o.url&&(o.responseUrl=u.responseURL);(u.status<200||400<=u.status)&&(o.status=u.status);if(O.captureXhrRequestResponse){o.response={text:""===u.responseType||"text"===u.responseType?u.responseText:null,xml:""===u.responseType||"document"===u.responseType?u.responseXML:null,raw:u.response,json:u.responseJSON};if(u.response&&u.response.constructor&&u.response.constructor===BOOMR.boomerang_frame.Object&&BOOMR.boomerang_frame.Object!==c.Object)try{u.response.constructor=c.Object}catch(e){}}O.loadFinished(o)}else if(0===u.readyState&&"number"==typeof o.timing.open){u.responseURL!==o.url&&(o.responseUrl=u.responseURL);o.status=-999;O.loadFinished(o)}}else{u.responseURL!==o.url&&(o.responseUrl=u.responseURL);"load"===t?0!==u.status&&(u.status<200||400<=u.status)&&(o.status=u.status):o.status=void 0===n?u.status:n;O.loadFinished(o)}},!1)}if(!a){n&&r("readystatechange");r("load");r("timeout",-1001);r("error",-998);r("abort",-999)}o.url=p.href;o.method=e;o.type="xhr";delete o.status;n||(o.synchronous=!0);a=!0;try{return l.apply(u,arguments)}catch(i){o.status=-997;O.loadFinished(o);throw i}};u.send=function(e){if(s)return t.apply(u,arguments);O.captureXhrRequestResponse&&(u.resource.requestPayload=e);BOOMR.fireEvent("xhr_send",u);d.addEvent(o);o.timing.requestStart||(o.timing.requestStart=BOOMR.now());return"undefined"==typeof o.status||-997!==o.status?t.apply(u,arguments):void 0};u.resource=o;return u};BOOMR.proxy_XMLHttpRequest.UNSENT=0;BOOMR.proxy_XMLHttpRequest.OPENED=1;BOOMR.proxy_XMLHttpRequest.HEADERS_RECEIVED=2;BOOMR.proxy_XMLHttpRequest.LOADING=3;BOOMR.proxy_XMLHttpRequest.DONE=4;BOOMR.proxy_XMLHttpRequest.prototype=BOOMR.orig_XMLHttpRequest.prototype;BOOMR.utils.overwriteNative(c,"XMLHttpRequest",BOOMR.proxy_XMLHttpRequest);BOOMR.wrapped_XMLHttpRequest=!0}}function g(){if(BOOMR.orig_XMLHttpRequest&&BOOMR.orig_XMLHttpRequest!==c.XMLHttpRequest){c.XMLHttpRequest=BOOMR.orig_XMLHttpRequest;BOOMR.wrapped_XMLHttpRequest=!1}}function R(e){e.initiator="xhr";BOOMR.responseEnd(e)}}();!function(){var s,n=!1,t=!1,u=!1,l=!1,c=!1,d=!0,f=!1,p=!1,O=!1,m=!1,r=[],o=!1;if(!BOOMR.plugins.SPA&&BOOMR.plugins.AutoXHR){var a={spaHardMissedOnComplete:function(e){var t=BOOMR.plugins.RT&&BOOMR.plugins.RT.navigationStart(),n=BOOMR.plugins.AutoXHR.getMutationHandler();o=!1;BOOMR.addVar("spa.missed","1",!0);BOOMR.plugins.RT&&BOOMR.plugins.RT.clearTimer("t_done");e.timing.requestStart=t;(n=n.pending_events[e.index])&&0!==n.total_nodes||(n=BOOMR.getPerformance())&&n.timing&&n.timing.navigationStart&&n.timing.loadEventEnd&&"undefined"==typeof e.timing.loadEventEnd&&(e.timing.loadEventEnd=n.timing.loadEventEnd)},pageReady:function(){l=!0}};BOOMR.plugins.SPA={is_complete:function(e){return!o||e&&("error"===e["http.initiator"]||"undefined"!=typeof e.early)},init:function(e){if(e&&e.instrument_xhr){c=e.instrument_xhr;u&&c&&BOOMR.plugins.AutoXHR.enableAutoXhr()}if(!t){t=!0;BOOMR.subscribe("page_ready",a.pageReady,null,a)}},register:function(e){r.push(e)},supported_frameworks:function(){return r},onLoadSpaHardMissed:function(){if(!u){l=!0;c&&BOOMR.plugins.AutoXHR.enableAutoXhr();o=!0;m?o=!1:BOOMR.plugins.SPA.route_change(a.spaHardMissedOnComplete)}},hook:function(e,t){"function"==typeof(t=t||{}).routeFilter&&(f=t.routeFilter);"function"==typeof t.routeChangeWaitFilter&&(p=t.routeChangeWaitFilter);"boolean"==typeof t.routeChangeWaitFilterHardNavs&&(O=t.routeChangeWaitFilterHardNavs);t.disableHardNav&&(m=t.disableHardNav);if(n)return this;e&&BOOMR.attach_page_ready(this.onLoadSpaHardMissed);n=!0;return this},route_change:function(t,e){var n=!1,r=d&&!m?"spa_hard":"spa";if(!s||!s.wait){if("spa"==r&&f)try{if(!f.apply(null,e))return}catch(a){BOOMR.addError(a,"SPA.route_change.routeFilter")}u=!0;var i=BOOMR.plugins.RT&&BOOMR.plugins.RT.navigationStart(),o=l?BOOMR.now():i,i=BOOMR.window.document.URL;BOOMR.fireEvent("spa_init",[BOOMR.plugins.SPA.current_spa_nav(),i]);i={timing:{requestStart:o},initiator:r,url:i};d=!1;if(!l||"function"==typeof t){l=!0;i.onComplete=function(e){if(!n){n=!0;BOOMR.fireEvent("spa_navigation")}"function"==typeof t&&t(e)}}if(("spa"==r||O)&&p)try{if(p.apply(null,arguments)){i.wait=!0;s=i}}catch(a){BOOMR.addError(a,"SPA.route_change.routeChangeWaitFilter")}i.index=BOOMR.plugins.AutoXHR.getMutationHandler().addEvent(i);c&&BOOMR.plugins.AutoXHR.enableAutoXhr()}},last_location:function(e){lastLocationChange=e},current_spa_nav:function(){return l?"spa":"spa_hard"},wait_complete:function(){if(s){s.wait=!1;s.waitComplete&&s.waitComplete();s=null}},markNavigationComplete:function(){var e,t,n=BOOMR.plugins.AutoXHR.getMutationHandler();s&&s.wait&&BOOMR.plugins.SPA.wait_complete();if(n&&0<n.pending_events.length)for(e=n.pending_events.length-1;0<=e;e--)if((t=n.pending_events[e])&&BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS)){if(t.complete)break;n.nodesWaitingFor(e);BOOMR.addVar("spa.forced","1",!0);BOOMR.addVar("spa.waiting",n.nodesWaitingFor(),!0);n.completeEvent(e);return}},isSpaNavInProgress:function(){var e,t,n=BOOMR.plugins.AutoXHR.getMutationHandler();if(n&&0<n.pending_events.length)for(e=n.pending_events.length-1;0<=e;e--)if((t=n.pending_events[e])&&BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS))return!t.complete;return!1},isSinglePageApp:function(e){var t=!1,n=this.supported_frameworks();for(i=0;i<n.length;i++){var r=n[i];if(e[r]&&e[r].enabled){t=!0;break}}return t}};BOOMR.plugins.SPA.waitComplete=BOOMR.plugins.SPA.wait_complete}}();!function(){var u={monitorHistory:!0,enabled:!0,hooked:!1,routeChangeInProgress:!1,disableHardNav:!1,routeFilter:undefined,routeChangeWaitFilter:undefined,routeChangeWaitFilterHardNavs:!1,monitorReplaceState:!0,a:undefined,browserOnloadBeforeSetup:!1,DEPRECATED_PLUGINS:["Angular","Backbone","Ember"],resetRouteChangeInProgress:function(e){if(!e||!("undefined"!=typeof e.early||e["http.initiator"]&&0===e["http.initiator"].indexOf("api_custom_"))){u.routeChangeInProgress&&clearTimeout(u.routeChangeInProgress);u.routeChangeInProgress=!1}},setRouteChangeInProgress:function(){u.routeChangeInProgress&&clearTimeout(u.routeChangeInProgress);u.routeChangeInProgress=setTimeout(u.resetRouteChangeInProgress,50)},routeChange:function(e){if(u.enabled){if((!u.disableHardNav||BOOMR.onloadFired())&&!u.routeChangeInProgress){if(e.toUrl){u.a.href=e.toUrl;e.toUrl=u.a.href}BOOMR.plugins.SPA.route_change(null,[e.type,e.fromUrl,e.toUrl])}}else u.resetRouteChangeInProgress()}};if(!BOOMR.plugins.History&&"undefined"!=typeof BOOMR.plugins.SPA&&"undefined"!=typeof BOOMR.plugins.AutoXHR&&BOOMR.window&&BOOMR.window.document){BOOMR.plugins.SPA.register("History");u.a=BOOMR.window.document.createElement("A");BOOMR.plugins.History={is_complete:function(){return!0},hook:function(e,t,n){(n=n||{}).disableHardNav=u.disableHardNav;u.routeFilter&&(n.routeFilter=u.routeFilter);u.routeChangeWaitFilter&&(n.routeChangeWaitFilter=u.routeChangeWaitFilter);u.routeChangeWaitFilterHardNavs&&(n.routeChangeWaitFilterHardNavs=u.routeChangeWaitFilterHardNavs);!u.hooked&&u.monitorHistory&&function s(){var r,o,t,e,n,i=BOOMR.window.history;"function"==typeof i.pushState&&(i.pushState=(r=i.pushState,function(e,t,n){u.routeChange({type:"pushState",fromUrl:BOOMR.window.document.URL,toUrl:n});return r.apply(this,arguments)}));u.monitorReplaceState&&"function"==typeof i.replaceState&&(i.replaceState=(o=i.replaceState,function(e,t,n){var r=BOOMR.window.document.URL,i=r;if(3<=arguments.length&&null!=n){u.a.href=n;i=u.a.href}BOOMR.plugins.SPA.isSpaNavInProgress()&&i===r||u.routeChange({type:"pushState",fromUrl:BOOMR.window.document.URL,toUrl:n});return o.apply(this,arguments)}));"function"==typeof i.go&&(i.go=(t=i.go,function(e){u.routeChange({type:"go",fromUrl:BOOMR.window.document.URL});return t.apply(this,arguments)}));"function"==typeof i.back&&(i.back=(e=i.back,function(){u.routeChange({type:"back",fromUrl:BOOMR.window.document.URL});return e.apply(this,arguments)}));"function"==typeof i.forward&&(i.forward=(n=i.forward,function(){u.routeChange({type:"forward",fromUrl:BOOMR.window.document.URL});return n.apply(this,arguments)}));BOOMR.window.addEventListener("hashchange",function(e){u.routeChange({type:"hashchange",toUrl:(e||{}).newURL})});function a(){BOOMR.window.addEventListener("popstate",function(e){u.routeChange({type:"popstate",toUrl:BOOMR.window.document.URL})})}BOOMR.hasBrowserOnloadFired()?a():BOOMR.window.addEventListener("load",function(){setTimeout(a,0)});BOOMR.subscribe("beacon",u.resetRouteChangeInProgress);BOOMR.subscribe("spa_cancel",u.resetRouteChangeInProgress);BOOMR.subscribe("spa_init",u.setRouteChangeInProgress);u.browserOnloadBeforeSetup=BOOMR.hasBrowserOnloadFired()}();t=u.browserOnloadBeforeSetup;BOOMR.plugins.SPA.hook(t,n);if(!u.hooked&&!u.browserOnloadBeforeSetup&&(!u.disableHardNav||BOOMR.onloadFired())){BOOMR.plugins.SPA.route_change();u.setRouteChangeInProgress()}u.hooked=!0;return this},init:function(e){BOOMR.utils.pluginConfig(u,e,"History",["enabled","monitorHistory","disableHardNav","routeFilter","routeChangeWaitFilter","routeChangeWaitFilterHardNavs","monitorReplaceState"]);u.enabled&&this.hook();return this},disable:function(){u.enabled=!1;return this},enable:function(){u.enabled=!0;return this}};for(var e=0;e<u.DEPRECATED_PLUGINS.length;e++){var t=u.DEPRECATED_PLUGINS[e];BOOMR.plugins[t]=BOOMR.plugins.History;BOOMR.plugins[t]={init:function(t){return function(e){BOOMR.utils.pluginConfig(u,e,t,["enabled"]);u.enabled&&BOOMR.plugins.History.hook(undefined,undefined,{});return BOOMR.plugins[t]}}(t),enable:BOOMR.plugins.History.enable,hook:BOOMR.plugins.History.hook,is_complete:BOOMR.plugins.History.is_complete};BOOMR.plugins.SPA.register(t)}}}();!function(n){var r,a;if(!BOOMR.plugins.RT){a={onloadfired:!1,unloadfired:!1,visiblefired:!1,initialized:!1,complete:!1,autorun:!0,timers:{},cookie:"RT",cookie_exp:604800,session_exp:1800,strict_referrer:!0,navigationType:0,navigationStart:undefined,responseStart:undefined,loadTime:0,oboError:0,t_start:undefined,cached_t_start:undefined,cached_xhr_start:undefined,t_fb_approx:undefined,r:undefined,beacon_url:undefined,next_beacon_url:undefined,basic_timers:{t_done:1,t_resp:1,t_page:1},crossdomain_sending:!1,navigationStartSource:"",updateCookie:function(e,t){var n,r,i;if(!this.cookie)return!1;for(i in r=BOOMR.utils.getSubCookies(BOOMR.utils.getCookie(this.cookie))||{})r.hasOwnProperty(i)&&(isNaN(parseInt(i,10))||delete r[i]);if("object"==typeof e)for(i in e)e.hasOwnProperty(i)&&(e[i]===undefined?r.hasOwnProperty(i)&&delete r[i]:r[i]=e[i]);r.z=1;r.dm=BOOMR.session.domain;r.si=BOOMR.session.ID;r.ss=BOOMR.session.start.toString(36);r.sl=BOOMR.session.length.toString(36);1800!==a.session_exp&&(r.se=a.session_exp.toString(36));BOOMR.session.rate_limited&&(r.rl=1);r.tt=this.loadTime.toString(36);0<this.oboError?r.obo=this.oboError.toString(36):delete r.obo;n=BOOMR.now();if(t){r[t]=(n-BOOMR.session.start).toString(36);a.lastActionTime=n}this.beacon_url&&(r.bcn=this.beacon_url);if(!BOOMR.utils.setCookie(this.cookie,r,this.cookie_exp)){BOOMR.error("cannot set start cookie","rt");return!1}if(50<(t=BOOMR.now())-n){BOOMR.utils.removeCookie(this.cookie);BOOMR.error("took more than 50ms to set cookie... aborting: "+n+" -> "+t,"rt")}return!0},refreshSession:function(e){if(e=e||BOOMR.plugins.RT.getCookie()){e.ss?BOOMR.session.start=e.ss:BOOMR.session.start=BOOMR.plugins.RT.navigationStart()||BOOMR.t_lstart||BOOMR.t_start;e.si&&e.si.match(/-/)&&(BOOMR.session.ID=e.si);e.sl&&(BOOMR.session.length=e.sl);e.tt&&(this.loadTime=e.tt);e.obo&&(this.oboError=e.obo);e.dm&&!BOOMR.session.domain&&(BOOMR.session.domain=e.dm);e.se&&(a.session_exp=e.se);e.bcn&&(this.beacon_url=e.bcn);e.rl&&"1"===e.rl&&(BOOMR.session.rate_limited=!0)}},maybeResetSession:function(e,t){var n=0;BOOMR.session.start&&BOOMR.session.length&&(n=(BOOMR.now()-BOOMR.session.start)/BOOMR.session.length);var r=1e3*a.session_exp;if(!BOOMR.session.start||t&&BOOMR.session.start>t||e-(a.lastActionTime||BOOMR.t_start)>r||r<n){BOOMR.session.start=t||BOOMR.plugins.RT.navigationStart()||BOOMR.t_lstart||BOOMR.t_start;BOOMR.session.length=0;BOOMR.session.rate_limited=!1;a.loadTime=0;a.oboError=0;a.beacon_url=a.next_beacon_url;a.lastActionTime=e;a.updateCookie({rl:undefined,sl:BOOMR.session.length,ss:BOOMR.session.start,tt:a.loadTime,obo:undefined,bcn:a.beacon_url})}},initFromCookie:function(){var e,t,n=BOOMR.plugins.RT.getCookie();this.cookie||(BOOMR.session.enabled=!1);if(n){n.s=Math.max(+n.ld||0,Math.max(+n.ul||0,+n.cl||0));if(n.s&&(n.r||n.nu)){this.r=n.r;e=BOOMR.utils.hashString(r.URL);t=BOOMR.utils.hashString(r&&r.referrer||"");n.cl;n.nu;if(!this.strict_referrer||n.cl&&n.nu&&n.nu===e&&n.s<+n.cl+15||n.s===+n.ul&&this.r===t){this.t_start=n.s;+n.hd>n.s&&(this.t_fb_approx=n.hd)}else this.t_start=this.t_fb_approx=undefined}n.s&&(this.lastActionTime=n.s);this.refreshSession(n);this.updateCookie({s:undefined,ul:undefined,cl:undefined,hd:undefined,ld:undefined,rl:undefined,r:undefined,nu:undefined,sh:undefined});this.maybeResetSession(BOOMR.now())}},incrementSessionDetails:function(){BOOMR.session.length++;!a.timers.t_done||isNaN(a.timers.t_done.delta)?a.oboError++:a.loadTime+=a.timers.t_done.delta},getBoomerangTimings:function(){var e,t,n,r,i;function o(e,t){e=Math.round(e||0),t=Math.round(t||0);return(e=0===e?0:e-t)||""}if(BOOMR.t_start){BOOMR.plugins.RT.startTimer("boomerang",BOOMR.t_start);BOOMR.plugins.RT.endTimer("boomerang",BOOMR.t_end);BOOMR.plugins.RT.endTimer("boomr_fb",BOOMR.t_start);if(BOOMR.t_lstart){BOOMR.plugins.RT.endTimer("boomr_ld",BOOMR.t_lstart);BOOMR.plugins.RT.setTimer("boomr_lat",BOOMR.t_start-BOOMR.t_lstart)}}try{if(window&&"performance"in window&&window.performance&&"function"==typeof window.performance.getEntriesByName){t={"rt.bmr":BOOMR.url};BOOMR.config_url&&(t["rt.cnf"]=BOOMR.config_url);for(n in t)if(t.hasOwnProperty(n)&&t[n]&&(e=window.performance.getEntriesByName(t[n]))&&0!==e.length&&e[0]){i=[r=o((e=e[0]).startTime,0),o(e.responseEnd,r),o(e.responseStart,r),o(e.requestStart,r),o(e.connectEnd,r),o(e.secureConnectionStart,r),o(e.connectStart,r),o(e.domainLookupEnd,r),o(e.domainLookupStart,r),o(e.redirectEnd,r),o(e.redirectStart,r)].join(",").replace(/,+$/,"");BOOMR.addVar(n,i,!0)}}}catch(a){a&&a.name&&a.name.hasOwnProperty("length")&&-1===a.name.indexOf("NS_ERROR_FAILURE")&&BOOMR.addError(a,"rt.getBoomerangTimings")}},checkPreRender:function(){if("prerender"!==BOOMR.visibilityState())return!1;BOOMR.plugins.RT.startTimer("t_load",this.navigationStart);BOOMR.plugins.RT.endTimer("t_load");BOOMR.plugins.RT.startTimer("t_prerender",this.navigationStart);BOOMR.plugins.RT.startTimer("t_postrender");return!0},initFromNavTiming:function(){var e,t;if(!this.navigationStart){(t=BOOMR.getPerformance())&&t.navigation&&(this.navigationType=t.navigation.type);if(t&&t.timing){e=t.timing;this.navigationStartSource="navigation"}else if(n.chrome&&n.chrome.csi&&n.chrome.csi().startE){e={navigationStart:n.chrome.csi().startE};this.navigationStartSource="csi"}else if(n.gtbExternal&&n.gtbExternal.startE()){e={navigationStart:n.gtbExternal.startE()};this.navigationStartSource="gtb"}if(e){this.navigationStart=e.navigationStart||e.fetchStart||undefined;this.fetchStart=e.fetchStart||undefined;this.responseStart=e.responseStart||undefined;navigator.userAgent.match(/Firefox\/[78]\./)&&(this.navigationStart=e.unloadEventStart||e.fetchStart||undefined)}else BOOMR.warn("This browser doesn't support the WebTiming API","rt")}},validateLoadTimestamp:function(e,t,n){return t&&t.timing&&t.timing.loadEventEnd?t.timing.loadEventEnd:"xhr"!==n||t&&BOOMR.utils.inArray(t.initiator,BOOMR.constants.BEACON_TYPE_SPAS)?(t=BOOMR.getPerformance())&&t.timing?t.timing.loadEventEnd||e:BOOMR.t_onload||BOOMR.t_lstart||BOOMR.t_start||e:e},setPageLoadTimers:function(e,t,n){var r,i;if(!("xhr"===e||"early"===e&&n&&BOOMR.utils.inArray(n.initiator,BOOMR.constants.BEACON_TYPE_SPAS))){a.initFromCookie();a.initFromNavTiming();BOOMR.addVar("rt.start",this.navigationStartSource);if(a.checkPreRender())return!1}if("xhr"===e)if(n.timers)for(var o in n.timers)n.timers.hasOwnProperty(o)&&BOOMR.plugins.RT.setTimer(o,n.timers[o]);else n&&n.timing&&(void 0===(i=n.timing.fetchStart)||n.timing.responseEnd>=i)&&(r=n.timing.responseEnd);else a.responseStart?a.responseStart>=a.navigationStart&&a.responseStart>=a.fetchStart&&(r=a.responseStart):a.timers.hasOwnProperty("t_page")?BOOMR.plugins.RT.endTimer("t_page"):a.t_fb_approx&&(r=a.t_fb_approx);if(r&&"early"!==e){i?BOOMR.plugins.RT.setTimer("t_resp",i,r):BOOMR.plugins.RT.endTimer("t_resp",r);"load"===e&&a.timers.t_load?BOOMR.plugins.RT.setTimer("t_page",a.timers.t_load.end-r):t<r?BOOMR.addVar("t_page.inv",1,!0):t-r==0&&n&&n.timing&&n.timing.requestStart&&a.timers.t_resp&&a.timers.t_resp.delta?BOOMR.plugins.RT.setTimer("t_page",t-n.timing.requestStart-a.timers.t_resp.delta):BOOMR.plugins.RT.setTimer("t_page",t-r)}if("load"===e&&a.timers.hasOwnProperty("t_postrender")){BOOMR.plugins.RT.endTimer("t_postrender");BOOMR.plugins.RT.endTimer("t_prerender")}return!0},setSupportingTimestamps:function(e,t){e&&BOOMR.addVar("rt.tstart",e,!0);"number"==typeof a.navigationStart&&a.navigationStart!==e&&BOOMR.addVar("rt.nstart",a.navigationStart,!0);"number"==typeof a.t_start&&a.t_start!==e&&BOOMR.addVar("rt.cstart",a.t_start,!0);BOOMR.addVar("rt.bstart",BOOMR.t_start,!0);BOOMR.t_lstart&&BOOMR.addVar("rt.blstart",BOOMR.t_lstart,!0);"early"===t?BOOMR.addVar("rt.end",e||BOOMR.now(),!0):a.timers.t_done&&BOOMR.addVar("rt.end",a.timers.t_done.end,!0)},determineTStart:function(e,t){var n;if("xhr"===e||"early"===e&&t&&"spa"===t.initiator){t&&t.name&&a.timers[t.name]?n=a.timers[t.name].start:t&&t.timing&&t.timing.requestStart&&(n=t.timing.requestStart);void 0===n&&t&&BOOMR.utils.inArray(t.initiator,BOOMR.constants.BEACON_TYPE_SPAS)?BOOMR.addVar("rt.start","none"):BOOMR.addVar("rt.start","manual");a.cached_xhr_start=n}else{if(a.navigationStart)n=a.navigationStart;else if(a.t_start&&2!==a.navigationType){n=a.t_start;BOOMR.addVar("rt.start","cookie")}else if(a.cached_t_start)n=a.cached_t_start;else{BOOMR.addVar("rt.start","none");n=undefined}a.cached_t_start=n}return n},page_ready:function(){this.onloadfired=!0},check_visibility:function(){"visible"===BOOMR.visibilityState()&&(a.visiblefired=!0)},prerenderToVisible:function(){if(a.onloadfired&&a.autorun){BOOMR.addVar("vis.pre","1",!0);BOOMR.plugins.RT.done(null,"visible")}},page_unload:function(e){this.unloadfired||BOOMR.plugins.RT.done(e,"unload");this.updateCookie(!a.navigationStart&&a.strict_referrer?{r:BOOMR.utils.hashString(r.URL)}:null,"beforeunload"===e.type?"ul":"hd");this.unloadfired=!0},_iterable_click:function(e,t,n,r){if(n){for(;n&&n.nodeName&&n.nodeName.toUpperCase()!==t;)n=n.parentNode;if(n&&n.nodeName&&n.nodeName.toUpperCase()===t){this.refreshSession();this.maybeResetSession(BOOMR.now());r=r(n);this.updateCookie({nu:BOOMR.utils.hashString(r)},"cl");BOOMR.addVar("nu",BOOMR.utils.cleanupURL(r),!0)}}},onclick:function(e){a._iterable_click("Click","A",e,function(e){return e.href})},markComplete:function(){this.onloadfired&&(a.complete=!0)},onsubmit:function(e){a._iterable_click("Submit","FORM",e,function(e){e="function"==typeof e.getAttribute&&e.getAttribute("action")||r.URL||"";return e.match(/\?/)?e:e+"?"})},onconfig:function(e){e.beacon_url&&(a.beacon_url=e.beacon_url);if(e.RT){e.RT.oboError&&!isNaN(e.RT.oboError)&&e.RT.oboError>a.oboError&&(a.oboError=e.RT.oboError);if(e.RT.loadTime&&!isNaN(e.RT.loadTime)&&e.RT.loadTime>a.loadTime){a.loadTime=e.RT.loadTime;a.timers.t_done&&!isNaN(a.timers.t_done.delta)&&(a.loadTime+=a.timers.t_done.delta)}}},domloaded:function(){BOOMR.plugins.RT&&BOOMR.plugins.RT.endTimer("t_domloaded")},clear:function(e){e&&"undefined"!=typeof e.early||BOOMR.removeVar("rt.start")},spaNavigation:function(){a.onloadfired=!0}};BOOMR.plugins.RT={init:function(e){n!==BOOMR.window&&(n=BOOMR.window);e&&e.CrossDomain&&e.CrossDomain.sending&&(a.crossdomain_sending=!0);if(n&&n.document){r=n.document;BOOMR.utils.pluginConfig(a,e,"RT",["cookie","cookie_exp","session_exp","strict_referrer"]);e&&"undefined"!=typeof e.autorun&&(a.autorun=e.autorun);if(e&&e.beacon_url){a.beacon_url&&!e.force_beacon_url||(a.beacon_url=e.beacon_url);a.next_beacon_url=e.beacon_url}void 0!==r&&(a.r=BOOMR.utils.hashQueryString(r.referrer,!0));a.initFromCookie();if(a.initialized)return this;a.complete=!1;a.timers={};a.check_visibility();BOOMR.subscribe("page_ready",a.page_ready,null,a);BOOMR.subscribe("visibility_changed",a.check_visibility,null,a);BOOMR.subscribe("prerender_to_visible",a.prerenderToVisible,null,a);BOOMR.subscribe("page_ready",this.done,"load",this);BOOMR.subscribe("xhr_load",this.done,"xhr",this);BOOMR.subscribe("before_early_beacon",this.done,"early",this);BOOMR.subscribe("dom_loaded",a.domloaded,null,a);BOOMR.subscribe("page_unload",a.page_unload,null,a);BOOMR.subscribe("click",a.onclick,null,a);BOOMR.subscribe("form_submit",a.onsubmit,null,a);BOOMR.subscribe("before_beacon",this.addTimersToBeacon,"beacon",this);BOOMR.subscribe("beacon",a.clear,null,a);BOOMR.subscribe("error",a.markComplete,null,a);BOOMR.subscribe("config",a.onconfig,null,a);BOOMR.subscribe("spa_navigation",a.spaNavigation,null,a);BOOMR.subscribe("interaction",a.markComplete,null,a);BOOMR.getBeaconURL=function(){return a.beacon_url};a.initialized=!0;return this}},startTimer:function(e,t){if(e){"t_page"===e&&this.endTimer("t_resp",t);a.timers[e]={start:"number"==typeof t?t:BOOMR.now()}}return this},endTimer:function(e,t){if(e){a.timers[e]=a.timers[e]||{};a.timers[e].end===undefined&&(a.timers[e].end="number"==typeof t?t:BOOMR.now())}return this},clearTimer:function(e){e&&delete a.timers[e];return this},setTimer:function(e,t,n){e&&(a.timers[e]=void 0!==n?{start:t,end:n,delta:n-t}:{delta:t});return this},addTimersToBeacon:function(e,t){var n,r,i=[];for(n in a.timers)if(a.timers.hasOwnProperty(n)){if("number"!=typeof(r=a.timers[n]).delta){"number"!=typeof r.start&&(r.start="xhr"===t?a.cached_xhr_start:a.cached_t_start);r.delta=r.end-r.start}isNaN(r.delta)||(a.basic_timers.hasOwnProperty(n)?BOOMR.addVar(n,r.delta,!0):i.push(n+"|"+r.delta))}i.length&&BOOMR.addVar("t_other",i.join(","),!0);if("beacon"===t&&(!e||"undefined"==typeof e.early)){a.timers={};a.complete=!1}},done:function(e,t){if(BOOMR.plugins.RT){var n,r=BOOMR.now(),i=!1;a.complete=!1;n=a.validateLoadTimestamp(r,e,t);if(("load"===t||"visible"===t||"xhr"===t||"early"===t)&&!a.setPageLoadTimers(t,n,e))return this;("load"===t||"visible"===t||"early"===t&&(!e||"undefined"==typeof e.initiator||"spa_hard"===e.initiator)||"xhr"===t&&e&&"spa_hard"===e.initiator)&&a.getBoomerangTimings();r=a.determineTStart(t,e);a.refreshSession();a.maybeResetSession(n,r);"early"!==t&&this.endTimer("t_done",n);e&&"xhr"===e.initiator&&this.setTimer("t_done",e.timing.requestStart,e.timing.loadEventEnd);a.setSupportingTimestamps(r,t);this.addTimersToBeacon(null,t);BOOMR.setReferrer(a.r);"xhr"===t&&e&&e&&e.data&&(e=e.data);if("xhr"===t&&e){i=e.subresource;e.url&&BOOMR.addVar("u",BOOMR.utils.cleanupURL(e.url.replace(/#.*/,"")),!0);e.status&&(e.status<-1||400<=e.status)&&BOOMR.addVar("http.errno",e.status,!0);e.method&&"GET"!==e.method&&BOOMR.addVar("http.method",e.method,!0);e.type&&"xhr"!==e.type&&BOOMR.addVar("http.type",e.type[0],!0);e.headers&&BOOMR.addVar("http.hdr",e.headers,!0);e.synchronous&&BOOMR.addVar("xhr.sync",1,!0);e.initiator&&BOOMR.addVar("http.initiator",e.initiator,!0);e.responseBodyNotUsed&&BOOMR.addVar("fetch.bnu",1,!0);e.responseUrl&&BOOMR.addVar("xhr.ru",BOOMR.utils.cleanupURL(e.responseUrl),!0)}i&&"passive"!==i&&BOOMR.addVar("rt.subres",1,!0);if("load"===t||"visible"===t||"xhr"===t&&!i||"unload"===t&&!a.onloadfired&&a.autorun&&!a.crossdomain_sending){a.incrementSessionDetails();a.updateCookie(null,"ld")}BOOMR.addVar({"rt.tt":a.loadTime,"rt.obo":a.oboError},undefined,!0);a.updateCookie();if("unload"===t){BOOMR.addVar("rt.quit","",!0);a.onloadfired||BOOMR.addVar("rt.abld","",!0);a.visiblefired||BOOMR.addVar("rt.ntvu","",!0)}"early"!==t&&(a.complete=!0);BOOMR.sendBeacon(a.beacon_url);return this}},is_complete:function(e){return a.complete||e&&"error"===e["http.initiator"]||e&&"undefined"!=typeof e.early},updateCookie:function(){a.updateCookie()},getCookie:function(){var e,t,n;if(!a.cookie)return!1;if(e=BOOMR.utils.getSubCookies(BOOMR.utils.getCookie(a.cookie))||{}){if(1&e.z){t=36;n=parseInt(e.ss||0,36)}else{t=10;n=0}e.ss=parseInt(e.ss||0,t);e.tt=parseInt(e.tt||0,t);e.obo=parseInt(e.obo||0,t);e.sl=parseInt(e.sl||0,t);e.se&&(e.se=parseInt(e.se,t)||1800);e.ld&&(e.ld=n+parseInt(e.ld,t));e.ul&&(e.ul=n+parseInt(e.ul,t));e.cl&&(e.cl=n+parseInt(e.cl,t));e.hd&&(e.hd=n+parseInt(e.hd,t))}return e},incrementSessionDetails:function(){a.incrementSessionDetails()},navigationStart:function(){a.navigationStart||a.initFromNavTiming();return a.navigationStart}}}}(window);!function(){if(!BOOMR.plugins.PaintTiming){var i={"first-paint":"fp","first-contentful-paint":"fcp","largest-contentful-paint":"lcp"},o={initialized:!1,complete:!1,supported:null,timingCache:{},observer:null,externalMetrics:{},done:function(e,t){var n,r;if(this.complete)return this;if("load"!==t&&(!e||"spa_hard"!==e.initiator)){this.complete=!0;return this}if((e=BOOMR.getPerformance())&&"function"==typeof e.getEntriesByType){if((n=e.getEntriesByType("paint"))&&n.length){BOOMR.info("This user agent supports PaintTiming","pt");for(r=0;r<n.length;r++){o.timingCache[n[r].name]=n[r].startTime;i[n[r].name]&&BOOMR.addVar("pt."+i[n[r].name],Math.floor(n[r].startTime),!0)}this.complete=!0;BOOMR.sendBeacon()}}else this.complete=!0},onObserver:function(e){e=e.getEntries();if(0!==e.length){var e=e[e.length-1],t=e.renderTime||e.loadTime;o.timingCache[e.entryType]=t;var n="",r=e.element?e.element.tagName:"";e.element&&(e.element.href||e.element.src)&&(n=e.element.href||e.element.src);BOOMR.addVar("pt.lcp",Math.floor(t),!0);BOOMR.addVar("pt.lcp.src",n);BOOMR.addVar("pt.lcp.el",r);o.externalMetrics.lcp=function(){return Math.floor(t)};o.externalMetrics.lcpSrc=function(){return n};o.externalMetrics.lcpEl=function(){return r}}}};BOOMR.plugins.PaintTiming={init:function(){if(!this.is_supported()){o.complete=!0;o.initialized=!0}if(!o.complete&&"hidden"===BOOMR.visibilityState()){BOOMR.addVar("pt.hid",1,!0);o.complete=!0}if(!o.initialized){BOOMR.subscribe("page_ready",o.done,"load",o);BOOMR.subscribe("xhr_load",o.done,"xhr",o);BOOMR.subscribe("before_unload",o.done,null,o);if("function"==typeof BOOMR.window.PerformanceObserver&&"function"==typeof window.LargestContentfulPaint){o.observer=new BOOMR.window.PerformanceObserver(o.onObserver);o.observer.observe({type:"largest-contentful-paint",buffered:!0})}o.initialized=!0}return this},is_complete:function(){return!0},is_enabled:function(){return o.initialized&&this.is_supported()},is_supported:function(){if(null!==o.supported)return o.supported;var e=BOOMR.getPerformance();o.supported=e&&"undefined"!=typeof window.PerformancePaintTiming&&"function"==typeof e.getEntriesByType;return o.supported},getTimingFor:function(e){var t,n;if(o.timingCache[e])return o.timingCache[e];if(this.is_supported()){var r=BOOMR.getPerformance();if(r&&"function"==typeof r.getEntriesByType&&(t=r.getEntriesByType("paint"))&&t.length)for(n=0;n<t.length;n++)if(t[n].name===e){o.timingCache[e]=t[n].startTime;return o.timingCache[e]}}},metrics:o.externalMetrics}}}();!function(){if(!BOOMR.plugins.NavigationTiming){var l={complete:!1,fullySent:!1,sendBeacon:function(){this.complete=!0;BOOMR.sendBeacon()},xhr_done:function(e){var t;if(e&&"spa_hard"===e.initiator)l.done(e);else if(e&&"spa"===e.initiator)l.sendBeacon();else{BOOMR.window;var n,r={};if(e){e.data&&(e=e.data);if((t=BOOMR.getPerformance())&&e.restiming){r={nt_red_st:e.restiming.redirectStart,nt_red_end:e.restiming.redirectEnd,nt_fet_st:e.restiming.fetchStart,nt_dns_st:e.restiming.domainLookupStart,nt_dns_end:e.restiming.domainLookupEnd,nt_con_st:e.restiming.connectStart,nt_con_end:e.restiming.connectEnd,nt_req_st:e.restiming.requestStart,nt_res_st:e.restiming.responseStart,nt_res_end:e.restiming.responseEnd};e.restiming.secureConnectionStart&&(r.nt_ssl_st=e.restiming.secureConnectionStart);for(n in r)if(r.hasOwnProperty(n)&&r[n]){r[n]+=t.timing.navigationStart;r[n]=Math.floor(r[n])}}if(e.timing){e=e.timing;r.nt_req_st||(r.nt_req_st=e.requestStart);r.nt_res_st||(r.nt_res_st=e.responseStart);r.nt_res_end||(r.nt_res_end=e.responseEnd);r.nt_domint=e.domInteractive;r.nt_domcomp=e.domComplete;r.nt_load_st=e.loadEventEnd;r.nt_load_end=e.loadEventEnd}for(n in r)r.hasOwnProperty(n)&&!r[n]&&delete r[n];BOOMR.addVar(r,undefined,!0);l.sendBeacon()}}},done:function(){var e,t,n,r,i,o=BOOMR.window,a={},s=0,u=!1;if(this.complete)return this;if(e=BOOMR.getPerformance()){if("function"==typeof e.getEntriesByType)if((n=e.getEntriesByType("navigation"))&&n.length){BOOMR.info("This user agent supports NavigationTiming2","nt");n=n[0];s=e.timing?e.timing.navigationStart:0}else n=undefined;if(!n&&e.timing){BOOMR.info("This user agent supports NavigationTiming","nt");n=e.timing}if(n){!(a={nt_nav_st:e.timing?e.timing.navigationStart:0,nt_red_st:c(s,n.redirectStart),nt_red_end:c(s,n.redirectEnd),nt_fet_st:c(s,n.fetchStart),nt_dns_st:c(s,n.domainLookupStart),nt_dns_end:c(s,n.domainLookupEnd),nt_con_st:c(s,n.connectStart),nt_con_end:c(s,n.connectEnd),nt_req_st:c(s,n.requestStart),nt_res_st:c(s,n.responseStart),nt_res_end:c(s,n.responseEnd),nt_domloading:c(s,n.domLoading),nt_domint:c(s,n.domInteractive),nt_domcontloaded_st:c(s,n.domContentLoadedEventStart),nt_domcontloaded_end:c(s,n.domContentLoadedEventEnd),nt_domcomp:c(s,n.domComplete),nt_load_st:c(s,n.loadEventStart),nt_load_end:c(s,n.loadEventEnd),nt_unload_st:c(s,n.unloadEventStart),nt_unload_end:c(s,n.unloadEventEnd)}).nt_domloading&&e&&e.timing&&e.timing.domLoading&&(a.nt_domloading=e.timing.domLoading);n.secureConnectionStart&&(a.nt_ssl_st=c(s,n.secureConnectionStart));e.timing&&e.timing.msFirstPaint&&(a.nt_first_paint=e.timing.msFirstPaint);n.workerStart&&(a.nt_worker_start=c(s,n.workerStart));if(n.decodedBodySize||n.transferSize){a.nt_enc_size=n.encodedBodySize;a.nt_dec_size=n.decodedBodySize;a.nt_trn_size=n.transferSize}n.nextHopProtocol&&(a.nt_protocol=n.nextHopProtocol)}if(!a.nt_first_paint&&BOOMR.plugins.PaintTiming){u=BOOMR.plugins.PaintTiming.is_supported();(r=BOOMR.plugins.PaintTiming.getTimingFor("first-paint"))&&(a.nt_first_paint=c(s,r))}if((!a.nt_protocol||!a.nt_first_paint)&&(!n||""!==n.nextHopProtocol)&&!u&&o.chrome&&"function"==typeof o.chrome.loadTimes&&(t=o.chrome.loadTimes())){a.nt_spdy=t.wasFetchedViaSpdy?1:0;a.nt_cinf=t.connectionInfo;"number"==typeof t.firstPaintTime&&0!==t.firstPaintTime&&(a.nt_first_paint=Math.round(1e3*t.firstPaintTime))}if(e.navigation){e=e.navigation;a.nt_red_cnt=e.redirectCount;a.nt_nav_type=e.type}for(i in a)a.hasOwnProperty(i)&&a[i]===undefined&&delete a[i];BOOMR.addVar(a,undefined,!0);n&&(n.requestStart&&n.navigationStart&&n.requestStart<n.navigationStart||n.responseStart&&n.navigationStart&&n.responseStart<n.navigationStart||n.responseStart&&n.fetchStart&&n.responseStart<n.fetchStart||n.navigationStart&&n.fetchStart<n.navigationStart||n.responseEnd&&n.responseEnd>BOOMR.now()+864e5)&&BOOMR.addVar("nt_bad",1,!0);0<a.nt_load_end&&(this.fullySent=!0)}l.sendBeacon()},clear:function(e){this.complete=!(e&&e.early)&&this.fullySent},prerenderToVisible:function(){this.complete=!1;this.done()},onBeforeEarlyBeacon:function(e){e&&"undefined"!=typeof e.initiator&&"spa_hard"!==e.initiator||this.done()}};BOOMR.plugins.NavigationTiming={init:function(){if(!l.initialized){BOOMR.subscribe("page_ready",l.done,null,l);BOOMR.subscribe("prerender_to_visible",l.prerenderToVisible,null,l);BOOMR.subscribe("before_early_beacon",l.onBeforeEarlyBeacon,null,l);BOOMR.subscribe("xhr_load",l.xhr_done,null,l);BOOMR.subscribe("before_unload",l.done,null,l);BOOMR.subscribe("beacon",l.clear,null,l);l.initialized=!0}return this},is_complete:function(){return!0}}}function c(e,t){return"number"!=typeof t||0===t?undefined:Math.floor((e||0)+t)}}();!function(){if(!BOOMR.plugins.ResourceTiming){var g={other:0,img:1,link:2,script:3,css:4,xmlhttprequest:5,html:6,image:7,beacon:8,fetch:9,iframe:"a",subdocument:"a",body:"b",input:"c",frame:"a",object:"d",video:"e",audio:"f",source:"g",track:"h",embed:"i",eventsource:"j",navigation:6},T={prefetch:1,preload:2,prerender:3,stylesheet:4},x=["startTime","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd","workerStart"],R="\n",M="*",B="0",v="1",y="2",P=1,k=2,L=4,_="3",b="4",w="5",S="6",C={complete:!1,sentNavBeacon:!1,initialized:!1,supported:null,xhr_load:function(e){e&&e.restiming&&i(e.restiming);if(!this.complete){this.complete=!0;BOOMR.sendBeacon()}},xssBreakWords:[/(h)(ref)/gi,/(s)(rc)/gi,/(a)(ction)/gi],urlLimit:500,clearOnBeacon:!1,trimUrls:[],serverTiming:!0,monitorClearResourceTimings:!1,splitAtPath:!1,getSrcsetDimensions:!1,trackedResourceTypes:"*",done:function(){if(!this.sentNavBeacon){e();this.complete=!0;this.sentNavBeacon=!0;BOOMR.sendBeacon()}},onBeacon:function(e){var t=BOOMR.getPerformance();if(C.clearOnBeacon&&t){var n=t.clearResourceTimings||t.webkitClearResourceTimings;n&&"function"==typeof n&&n.call(t)}},prerenderToVisible:function(){this.sentNavBeacon=!1;this.done()}};BOOMR.plugins.ResourceTiming={init:function(e){BOOMR.utils.pluginConfig(C,e,"ResourceTiming",["xssBreakWords","clearOnBeacon","urlLimit","trimUrls","trackedResourceTypes","serverTiming","monitorClearResourceTimings","splitAtPath","getSrcsetDimensions"]);if(C.initialized)return this;if(this.is_supported()){BOOMR.subscribe("page_ready",C.done,null,C);BOOMR.subscribe("prerender_to_visible",C.prerenderToVisible,null,C);BOOMR.subscribe("xhr_load",C.xhr_load,null,C);BOOMR.subscribe("beacon",C.onBeacon,null,C);BOOMR.subscribe("before_unload",C.done,null,C);if(C.monitorClearResourceTimings){var t=this;BOOMR.window.performance.clearResourceTimings=(n=BOOMR.window.performance.clearResourceTimings,function(){t.addResources(BOOMR.window.performance.getEntriesByType("resource"));n.apply(BOOMR.window.performance,arguments)})}}else C.complete=!0;var n;C.initialized=!0;return this},is_complete:function(){return!0},is_enabled:function(){return C.initialized&&this.is_supported()},is_supported:function(){if(null!==C.supported)return C.supported;var e=BOOMR.getPerformance();C.supported=e&&"function"==typeof e.getEntriesByType&&"undefined"!=typeof window.PerformanceResourceTiming;return C.supported},addResources:function(e,t){if(this.is_supported()&&BOOMR.utils.isArray(e)){C.collectedEntries=C.collectedEntries||[];if("number"==typeof t){var r=t-(BOOMR.window.performance.timeOrigin||BOOMR.window.performance.timing.navigationStart);e=BOOMR.utils.arrayFilter(e,function(e){for(var t=0;t<x.length;t++){var n=x[t];e.hasOwnProperty(n)&&(e[n]+=r)}return!0})}Array.prototype.push.apply(C.collectedEntries,e)}},getCompressedResourceTiming:r,getFilteredResourceTiming:H,calculateResourceTimingUnion:function l(e){if(!e||!e.length)return 0;e.sort(function(e,t){return e.fetchStart!==t.fetchStart?e.fetchStart-t.fetchStart:(e.responseStart||e.responseEnd)-(t.responseStart||t.responseEnd)});for(var t=u(e),n=[],r=0,i=0;i<t.length;i++){var o=t[i];o.fetchStart<r&&(o.fetchStart=r);if(o.fetchStart<o.responseEnd){n.push(o);r=o.responseEnd}}var a=u(n),s=0;for(i=0;i<a.length;i++)s+=a[i].responseEnd-a[i].fetchStart;return s},addResourceTimingToBeacon:e,addToBeacon:i}}function E(e,t){var n,r,i,o,a,s,u,l,c={};for(n in e){r=n;for(i=0;i<C.xssBreakWords.length;i++)r=r.replace(C.xssBreakWords[i],"$1"+R+"$2");if(e.hasOwnProperty(n)){o=e[n];a=t?[(a=r.split("/"))[0]+"//",a[2]+(3<a.length?"/":"")].concat(a.slice(3).reduce(function d(o){return function(e,t,n){var r,i;if(-1!==t.indexOf(R)){r=t.split(R);for(i=0;i<r.length-1;i++){e.push(r[i]);e.push(R)}t=r.slice(-1)}"number"==typeof o&&n<o&&(t+="/");return e.concat(t)}}(a.length-4),[])):r.split("");u=c;for(i=0;i<a.length;i++)void 0===(l=u[s=a[i]])?u=u[s]=i===a.length-1?o:{}:"string"==typeof l?u=u[s]={"|":l}:i===a.length-1?u[s]["|"]=o:u=u[s]}}return c}function A(e,t){"number"!=typeof e&&(e=0);"number"!=typeof t&&(t=0);e=Math.round(e||0),t=Math.round(t||0);return 0===e?0:e-t}function N(e){try{e.location&&e.location.href;e.document;if("performance"in e&&e.performance)return 1}catch(t){}}function I(e){var t=0;return t=N(e)&&e.performance.timing&&e.performance.timing.navigationStart?e.performance.timing.navigationStart:t}function F(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,O,m=[],h={},g={};void 0===t&&(t=!0);void 0===n&&(n=0);if(10<(r=void 0===r?0:r))return m;try{if(!N(e))return m;s=I(e);p=function w(e,t){var u,l,c={},d=e.document,f=d.createElement("A");u=(t=t||[0,0,0,0])[3]+(e.pageXOffset!==undefined)?e.pageXOffset:(d.documentElement||d.body.parentNode||d.body).scrollLeft;l=t[2]+(e.pageYOffset!==undefined)?e.pageYOffset:(d.documentElement||d.body.parentNode||d.body).scrollTop;["img","iframe","image"].forEach(function(e){for(var t,n,r,i,o,a=d.getElementsByTagName(e),s=0;s<a.length;s++)if(o=a[s]){n=o.currentSrc||o.src||"function"==typeof o.getAttribute&&o.getAttribute("src")||o.getAttribute("xlink:href");f.href=n;n=f.href;if(n&&!c[n]&&((t=o.getBoundingClientRect()).height||o.offsetHeight)&&(t.width||o.offsetWidth)){c[n]=[t.height||o.offsetHeight,t.width||o.offsetWidth,Math.round(t.top+l),Math.round(t.left+u)];if(o.naturalHeight||o.naturalWidth){C.getSrcsetDimensions&&o.currentSrc&&(o.srcset||o.parentNode&&o.parentNode.nodeName&&"PICTURE"===o.parentNode.nodeName.toUpperCase())?(r=o.isConnected?o.ownerDocument.createElement("IMG"):new BOOMR.window.Image).src=n:r=o;i=r.naturalHeight||o.naturalHeight;o=r.naturalWidth||o.naturalWidth;!i&&!o||c[n][0]===i&&c[n][1]===o||c[n].push(i,o)}}}});return c}(e,i);U(O=e.document.createElement("a"),h,"script");U(O,g,"link");if((c=e.document.getElementsByTagName("iframe"))&&c.length)for(o=0;o<c.length;o++){u=I(c[o].contentWindow);l=0;s<u&&(l=n+(u-s));O.href=c[o].src;m=m.concat(F(c[o].contentWindow,!1,l,r+1,p[O.href]))}if("function"!=typeof e.performance.getEntriesByType)return m;function R(e){return C.serverTiming&&e.serverTiming||[]}if(t)if((a=e.performance.getEntriesByType("navigation"))&&1===a.length){d=a[0];m.push({name:e.location.href,startTime:0,initiatorType:"html",redirectStart:d.redirectStart,redirectEnd:d.redirectEnd,fetchStart:d.fetchStart,domainLookupStart:d.domainLookupStart,domainLookupEnd:d.domainLookupEnd,connectStart:d.connectStart,secureConnectionStart:d.secureConnectionStart,connectEnd:d.connectEnd,requestStart:d.requestStart,responseStart:d.responseStart,responseEnd:d.responseEnd,workerStart:d.workerStart,encodedBodySize:d.encodedBodySize,decodedBodySize:d.decodedBodySize,transferSize:d.transferSize,serverTiming:R(d)})}else e.performance.timing&&0!==(f=e.performance.timing).navigationStart&&f.responseEnd<=f.navigationStart+36e5&&m.push({name:e.location.href,startTime:0,initiatorType:"html",redirectStart:f.redirectStart?f.redirectStart-f.navigationStart:0,redirectEnd:f.redirectEnd?f.redirectEnd-f.navigationStart:0,fetchStart:f.fetchStart?f.fetchStart-f.navigationStart:0,domainLookupStart:f.domainLookupStart?f.domainLookupStart-f.navigationStart:0,domainLookupEnd:f.domainLookupEnd?f.domainLookupEnd-f.navigationStart:0,connectStart:f.connectStart?f.connectStart-f.navigationStart:0,secureConnectionStart:f.secureConnectionStart?f.secureConnectionStart-f.navigationStart:0,connectEnd:f.connectEnd?f.connectEnd-f.navigationStart:0,requestStart:f.requestStart?f.requestStart-f.navigationStart:0,responseStart:f.responseStart?f.responseStart-f.navigationStart:0,responseEnd:f.responseEnd?f.responseEnd-f.navigationStart:0});var M=e.performance.getEntriesByType("resource"),B=[];if(e===BOOMR.window&&C.collectedEntries){Array.prototype.push.apply(M,C.collectedEntries);C.collectedEntries=[]}for(o=0;M&&o<M.length;o++){for(var v={name:(f=M[o]).name,initiatorType:f.initiatorType,encodedBodySize:f.encodedBodySize,decodedBodySize:f.decodedBodySize,transferSize:f.transferSize,serverTiming:R(f),visibleDimensions:p[f.name],latestTime:function S(e){if(e.responseEnd)return e.responseEnd;if(e.responseStart&&e.startTime)return e.responseStart+.2*(e.responseStart-e.startTime);return Infinity}(f)},y=0;y<x.length;y++){var _=x[y];v[_]="startTime"===_||f[_]?f[_]+n:0}f.hasOwnProperty("_data")&&(v._data=f._data);if(("script"===f.initiatorType||"link"===f.initiatorType)&&h[f.name]){var b=h[f.name];v.scriptAttrs=(b["async"]?P:0)|(b.defer?k:0);for(;1===b.nodeType&&"BODY"!==b.nodeName;)b=b.parentNode;v.scriptAttrs|="BODY"===b.nodeName?L:0}"link"===f.initiatorType&&g[f.name]&&BOOMR.utils.arrayFind(g[f.name].rel.split(/[\u0009\u000A\u000C\u000D\u0020]+/),function(e){e=e.toLowerCase();if(T[e]){v.linkAttrs=T[e];return!0}});B.push(v)}m=m.concat(B)}catch(E){return m}return m}function U(t,n,e){Array.prototype.forEach.call(t.ownerDocument.getElementsByTagName(e),function(e){t.href=e.currentSrc||e.src||"function"==typeof e.getAttribute&&e.getAttribute("xlink:href")||e.href;t.href.match(/^https?:\/\//)&&(n[t.href]=e)})}function V(e){return"number"==typeof e&&0!==e?e.toString(36):"string"==typeof e?e:""}function H(e,t,n){var r,i=F(BOOMR.window,!0,0,0),o=I(BOOMR.window),a={};if(!i||!i.length)return{entries:[]};i.sort(function(e,t){return e.startTime-t.startTime});for(var s=[],u=0;u<i.length;u++){r=i[u];if("string"==typeof r.name&&((0===r.name.indexOf("http:")||0===r.name.indexOf("https:"))&&!("function"==typeof BOOMR.getBeaconURL&&BOOMR.getBeaconURL()&&-1<r.name.indexOf(BOOMR.getBeaconURL())||e&&o+r.startTime<e))){if(t&&o+r.startTime>t)break;if(void 0===n||"*"===n||!n.length||r.initiatorType&&BOOMR.utils.inArray(r.initiatorType,n)){!function c(n,e){(e||[]).forEach(function(e){var t=e.name||e.metric;"undefined"==typeof n[t]&&(n[t]={count:0,counts:{}});t=n[t];t.counts[e.description]=t.counts[e.description]||0;t.counts[e.description]++;t.count++})}(a,r.serverTiming);s.push(r)}}}var l=function d(r){return Object.keys(r).sort(function(e,t){return r[t].count-r[e].count}).reduce(function(e,n){var t=Object.keys(r[n].counts).sort(function(e,t){return r[n].counts[t]-r[n].counts[e]});e.push(1===t.length&&""===t[0]?n:[n].concat(t));return e},[])}(a);return{entries:s,serverTiming:{lookup:l,indexed:function f(e){return e.reduce(function(e,t,n){var r,i;if(Array.isArray(t)){r=t[0];i=t.slice(1).reduce(function(e,t,n){e[t]=n;return e},{})}else{r=t;i={"":0}}e[r]={index:n,descriptions:i};return e},{})}(l)}}}function r(e,t){var n,r={},i={},t=H(e,t,C.trackedResourceTypes),o=t.entries,a=t.serverTiming;if(!o||!o.length)return{restiming:{},servertiming:[]};for(n=0;n<o.length;n++){var s=o[n],u=(l=void 0===(l=g[s.initiatorType])?0:l)+[A(s.startTime,0),A(s.responseEnd,s.startTime),A(s.responseStart,s.startTime),A(s.requestStart,s.startTime),A(s.connectEnd,s.startTime),A(s.secureConnectionStart,s.startTime),A(s.connectStart,s.startTime),A(s.domainLookupEnd,s.startTime),A(s.domainLookupStart,s.startTime),A(s.redirectEnd,s.startTime),A(s.redirectStart,s.startTime)].map(V).join(",").replace(/,+$/,""),l=function p(e){var t,n;if(e.encodedBodySize||e.decodedBodySize||e.transferSize){t=e.transferSize;return[n=e.encodedBodySize,t?t-n:"_",(e=e.decodedBodySize)?e-n:0].map(V).join(",").replace(/,+$/,"")}return""}(s);""!==l&&(u+=M+v+l);s.hasOwnProperty("scriptAttrs")&&(u+=M+y+s.scriptAttrs);s.serverTiming&&s.serverTiming.length&&(u+=M+_+s.serverTiming.reduce(function(e,t,n){var r=String("undefined"!=typeof t.duration?t.duration:t.value);"0."===r.substring(0,2)&&(r=r.substring(1));var i=t.name||t.metric;return e+=(0<n?",":"")+r+function o(e,t){var n="";e&&(n+=e);t&&(n+="."+t);n.length&&(n=":"+n);return n}(a.indexed[i].index,a.indexed[i].descriptions[t.description])},""));s.hasOwnProperty("linkAttrs")&&(u+=M+b+s.linkAttrs);if(s.workerStart&&"number"==typeof s.workerStart&&0!==s.workerStart){var c=A(function O(e){"number"!=typeof e&&(e=0);return Math.ceil(e||0)}(s.workerStart),s.startTime);u+=M+S+V(c)}c=function m(e,t){var n,r,i;if(e&&t)for(n=0;n<t.length;n++)if("string"==typeof(i=t[n])){if(-1!==(r=e.indexOf(i))){e=e.substr(0,r+i.length)+"...";break}}else i instanceof RegExp&&i.test(e)&&(e=e.replace(i,"$1")+"...");return BOOMR.utils.cleanupURL(e,C.urlLimit)}(s.name,C.trimUrls);if(s.hasOwnProperty("_data")){var d,f="";for(d in s._data)s._data.hasOwnProperty(d)&&(f+=M+w+d+":"+s._data[d]);"undefined"==typeof r[c]?r[c]=u+f:r[c]+=f}else r[c]!==undefined?r[c]+="|"+u:s.visibleDimensions?r[c]=M+B+s.visibleDimensions.map(Math.round).map(V).join(",").replace(/,+$/,"")+"|"+u:r[c]=u;if(s.visibleDimensions){i[s.latestTime]||(i[s.latestTime]=[]);i[s.latestTime].push(s.visibleDimensions)}}return{restiming:function h(e,t){var n,r,i=0,o=[];for(n in e)e.hasOwnProperty(n)&&o.push(n);for(var a=0;a<o.length;a++){n=o[a];if("object"==typeof e[n]&&(r=h(e[n],!1))){delete e[n];if(n===R){n=r.name;i++}else n+=r.name;e[n]=r.value}i++}if(1!==i)return!!t&&e;if(t){(t={})[n]=e[n];return t}return{name:n,value:e[n]}}(E(r,C.splitAtPath),!0),servertiming:a.lookup}}function u(e){var t=[];if(!e||!e.length)return t;for(var n=0;n<e.length;n++){var r=e[n];n!==e.length-1&&r.fetchStart===e[n+1].fetchStart||t.push({fetchStart:r.fetchStart,responseEnd:r.responseStart||r.responseEnd})}return t}function e(e,t){var n;if("undefined"!=typeof JSON&&(n=r(e,t))){BOOMR.info("Client supports Resource Timing API","restiming");i(n)}}function i(e){BOOMR.addVar("restiming",JSON.stringify(e.restiming),!0);e.servertiming.length&&BOOMR.addVar("servertiming",BOOMR.utils.serializeForUrl(e.servertiming),!0)}}();!function(){var t,n={type:"ct",bandwidth:"bw",metered:"mt",effectiveType:"etype",downlinkMax:"lm",downlink:"dl",rtt:"rtt",saveData:"sd"};if("function"==typeof BOOMR.addVar&&(t="object"==typeof navigator?navigator.connection||navigator.mozConnection||navigator.webkitConnection||navigator.msConnection:t)){t.addEventListener&&t.addEventListener("change",function(){e();BOOMR.fireEvent("netinfo",t)});e()}function e(){for(var e in n)if("undefined"!=typeof t[e]){BOOMR.removeVar("mob."+n[e]);t[e]&&BOOMR.addVar("mob."+n[e],t[e])}}}();!function(){var i,u,o,a,s,l,c,d={};if(!BOOMR.plugins.Memory){var f=!1,p={done:function(){if(i){BOOMR.removeVar("dom.res");t(!0,function(){var e,t,n={};if(d&&"function"==typeof d.getEntriesByType&&(e=d.getEntriesByType("resource"))&&e.length){BOOMR.addVar("dom.res",e.length);t=BOOMR.window.document.createElement("a");[].forEach.call(e,function(e){t.href=e.name;n[t.hostname]=!0});BOOMR.addVar("dom.doms",Object.keys(n).length)}},"resources");o&&BOOMR.addVar({"mem.total":o.totalJSHeapSize,"mem.limit":o.jsHeapSizeLimit,"mem.used":o.usedJSHeapSize});t(l&&c,function(){BOOMR.addVar({"mem.lsln":l.length,"mem.ssln":c.length});window.JSON&&"function"==typeof JSON.stringify&&BOOMR.addVar({"mem.lssz":JSON.stringify(l).length,"mem.sssz":JSON.stringify(c).length})},"localStorage");t(a,function(){BOOMR.addVar({"scr.xy":a.width+"x"+a.height,"scr.bpp":a.colorDepth+"/"+(a.pixelDepth||"")});a.orientation&&BOOMR.addVar("scr.orn",a.orientation.angle+"/"+a.orientation.type);1<i.devicePixelRatio&&BOOMR.addVar("scr.dpx",i.devicePixelRatio);var e=BOOMR.utils.scroll();(e.x||e.y)&&BOOMR.addVar("scr.sxy",e.x+"x"+e.y)},"screen");t(s,function(){s.hardwareConcurrency&&BOOMR.addVar("cpu.cnc",s.hardwareConcurrency);s.maxTouchPoints&&BOOMR.addVar("scr.mtp",s.maxTouchPoints);s.connection&&s.connection.hasOwnProperty("saveData")&&BOOMR.addVar("net.sd",s.connection.saveData?1:0);"undefined"!=typeof s.deviceMemory&&BOOMR.addVar("dev.mem",s.deviceMemory)},"navigator");t(!0,function(){var t;BOOMR.addVar({"dom.ln":e("*"),"dom.sz":u.documentElement.innerHTML.length,"dom.ck":u.cookie.length});t={};BOOMR.addVar(e("img",["dom.img","dom.img.ext","dom.img.uniq"],function(e){return e.src&&!e.src.toLowerCase().match(/^(?:about:|javascript:|data:|#)/)},function(e){return!(t[e.currentSrc||e.src]=t.hasOwnProperty(e.currentSrc||e.src))}));t={};BOOMR.addVar(e("script",["dom.script","dom.script.ext","dom.script.uniq"],function(e){return e.src&&!e.src.toLowerCase().match(/^(?:about:|javascript:|#)/)},function(e){return!(t[e.src]=t.hasOwnProperty(e.src))}));t={};BOOMR.addVar(e("iframe",["dom.iframe","dom.iframe.ext","dom.iframe.uniq"],function(e){return e.src&&!e.src.toLowerCase().match(/^(?:about:|javascript:|#)/)},function(e){return!(t[e.src]=t.hasOwnProperty(e.src))}));t={};BOOMR.addVar(e("link",["dom.link","dom.link.css","dom.link.css.uniq"],function(e){return e.rel&&"stylesheet"===e.rel.toLowerCase()&&e.href&&!e.href.toLowerCase().match(/^(?:about:|javascript:|#)/)},function(e){return!(t[e.href]=t.hasOwnProperty(e.href))}))},"dom")}}};BOOMR.plugins.Memory={init:function(){var e;try{i=BOOMR.window;u=i.document;d=BOOMR.getPerformance();e=i.console;a=i.screen;s=i.navigator;try{l=i.localStorage;c=i.sessionStorage}catch(n){}if(s&&s.battery)s.battery;else if(s&&"function"==typeof s.getBattery){var t=s.getBattery();t&&"function"==typeof t.then?t.then(function(e){0}):"object"==typeof t&&t.hasOwnProperty("level")&&0}}catch(r){BOOMR.addError(r,"Memory.init")}o=d&&d.memory?d.memory:e&&e.memory?e.memory:null;if(p.initialized)return this;p.initialized=!0;BOOMR.subscribe("before_beacon",p.done,null,p);return this},is_complete:function(){return!0}}}function e(e,t){var n,r,i,o,a;try{r=(n=u.getElementsByTagName(e)).length;if(t&&t.length){(i={})[t[0]]=r;for(o=2;0<r&&o<arguments.length&&o-1<t.length;o++)if("function"==typeof(a=arguments[o]))try{if((n=BOOMR.utils.arrayFilter(n,a)).length!==r){r=n.length;i[t[o-1]]=r}}catch(s){if(!f){f=!0;BOOMR.addError(s,"Memory.nodeList."+e+".filter["+(o-2)+"]")}}}return i||r}catch(s){BOOMR.addError(s,"Memory.nodeList."+e);return 0}}function t(e,t,n){if(e)try{t()}catch(r){BOOMR.addError(r,"Memory.done."+n)}}}();!function(){BOOMR.utils=BOOMR.utils||{};if(!BOOMR.utils||!BOOMR.utils.Compression){var a=BOOMR.utils.Compression={};a.jsUrl=function s(e){function t(e){return/[^\w-.]/.test(e)?e=e.replace(/[^\w-.]/g,function(e){return"$"===e?"!":(e=e.charCodeAt(0))<256?"*"+("00"+e.toString(16)).slice(-2):"**"+("0000"+e.toString(16)).slice(-4)}):e}var n=[];switch(typeof e){case"number":return isFinite(e)?"~"+e:"~null";case"string":return"~'"+t(e);case"boolean":return"~"+e;case"object":if(!e)return"~null";if(BOOMR.utils.isArray(e)){for(var r=0;r<e.length;r++)r in e&&(n[r]=a.jsUrl(e[r])||"~null");return"~("+(n.join("")||"~")+")"}for(var i in e)if(e.hasOwnProperty(i)){var o=a.jsUrl(e[i]);o&&n.push(t(i)+o)}return"~("+n.sort().join("~")+")";default:return undefined}}}}();!function(){function r(e,t,n){var r=e.shift();if("string"==typeof r){var i=r.split("."),o=BOOMR,a=BOOMR;"BOOMR"===i[0]&&i.shift();for(;i.length&&o&&("object"==typeof o||"function"==typeof o);){var s=i.shift(),o=o[s];i.length&&(a=a[s])}if(!i.length&&"function"==typeof o){e=o.apply(a,e);"function"==typeof t&&t.call(n,e)}}}function e(e){for(var t=0;t<e.length;t++){var n=e[t];n&&(BOOMR.utils.isArray(n)?r(n):"object"==typeof n&&BOOMR.utils.isArray(n.arguments)&&r(n.arguments,n.callback,n.thisArg))}}var t=BOOMR.window.BOOMR_mq;BOOMR.utils.isArray(t)&&e(t);BOOMR.window.BOOMR_mq={push:function(){e(arguments)}}}();!function(){if(!BOOMR.plugins.Akamai){var a={initialized:!1,dns_prefetch_enabled:undefined,mapping_xhr_base_url:undefined,mapping_xhr_url_path:undefined,mapping_xhr_url_v4_prefix:undefined,mapping_xhr_url_v6_prefix:undefined,xhrRetryMarker:"akamaiXhrRetry",regEx:undefined,complete:!1,done:function(e,t){if(!this.complete){if(a.dns_prefetch_enabled&&BOOMR.plugins.AK&&BOOMR.plugins.AK.akDNSPreFetchDomain){var n=document.createElement("link");n.setAttribute("id","dnsprefetchlink");n.setAttribute("rel","dns-prefetch");n.setAttribute("href","//"+BOOMR.plugins.AK.akDNSPreFetchDomain);document.getElementsByTagName("head")[0].appendChild(n)}if(window.XMLHttpRequest&&!BOOMR.utils.getLocalStorage(a.xhrRetryMarker)&&a.mapping_xhr_base_url&&a.mapping_xhr_url_path&&(a.mapping_xhr_url_v4_prefix||a.mapping_xhr_url_v6_prefix)){if(a.mapping_xhr_url_v4_prefix){var r="https://"+a.mapping_xhr_url_v4_prefix+"."+a.mapping_xhr_base_url+a.mapping_xhr_url_path+"?c=p"+BOOMR.pageId,i=new XMLHttpRequest;i.open("GET",r,!0);setTimeout(function(){i.send()},200)}if(a.mapping_xhr_url_v6_prefix){var r="https://"+a.mapping_xhr_url_v6_prefix+"."+a.mapping_xhr_base_url+a.mapping_xhr_url_path+"?c=p"+BOOMR.pageId,o=new XMLHttpRequest;o.open("GET",r,!0);setTimeout(function(){o.send()},200)}BOOMR.utils.setLocalStorage(a.xhrRetryMarker,{},1800)}else BOOMR.utils.getLocalStorage(a.xhrRetryMarker);this.complete=!0}}};BOOMR.plugins.Akamai={init:function(e){BOOMR.utils.pluginConfig(a,e,"Akamai",["dns_prefetch_enabled","mapping_xhr_base_url","mapping_xhr_url_path","mapping_xhr_url_v4_prefix","mapping_xhr_url_v6_prefix"]);if(!a.regEx&&a.mapping_xhr_base_url&&a.mapping_xhr_url_path&&(a.mapping_xhr_url_v4_prefix||a.mapping_xhr_url_v6_prefix)&&BOOMR.plugins.AutoXHR){e=a.mapping_xhr_url_v4_prefix&&a.mapping_xhr_url_v6_prefix?"("+a.mapping_xhr_url_v4_prefix+"|"+a.mapping_xhr_url_v6_prefix+")":a.mapping_xhr_url_v4_prefix||a.mapping_xhr_url_v6_prefix;try{a.regEx=new RegExp("^https://"+e+"."+a.mapping_xhr_base_url+a.mapping_xhr_url_path);a.regEx&&BOOMR.plugins.AutoXHR.addExcludeFilter(function(e){return a.regEx.test(e.href)},a,"BOOMR.plugins.Akamai.exlude.mapping.endpoint")}catch(t){}}if(a.initialized)return this;BOOMR.subscribe("page_ready",a.done,"load",a);BOOMR.subscribe("xhr_load",a.done,"xhr",a);a.initialized=!0;return this},is_complete:function(){return!0}}}}();!function(){if(!BOOMR.plugins.EventTiming){var n={click:0,dblclick:1,mousedown:2,mouseup:3,mousemove:4,touchstart:5,touchend:6,touchmove:7,keydown:8,keyup:9,keypress:10,wheel:11,pointerdown:12,pointerup:13,pointermove:14,compositionstart:17,compositionupdate:18,compositionend:19,contextmenu:20},r={initialized:!1,supported:null,observerEvent:null,observerFirstInput:null,entries:[],firstInputDelay:null,timeToFirstInteraction:null,onBeforeBeacon:function(){if(r.entries&&r.entries.length){for(var e=[],t=0;t<r.entries.length;t++)e.push({n:n[r.entries[t].name]||r.entries[t].name,s:Math.round(r.entries[t].startTime).toString(36),d:Math.round(r.entries[t].duration).toString(36),p:Math.round(r.entries[t].processingEnd-r.entries[t].processingStart).toString(36),c:r.entries[t].cancelable?1:0,fi:"first-input"===r.entries[t].entryType?1:undefined});BOOMR.addVar("et.e",BOOMR.utils.serializeForUrl(e),!0)}r.entries=[];if(null!==r.firstInputDelay){BOOMR.addVar("et.fid",Math.ceil(r.firstInputDelay),!0);r.firstInputDelay=null}},onEventTiming:function(e){r.entries=r.entries.concat(e.getEntries())},onFirstInput:function(e){e=e.getEntries();r.entries=r.entries.concat(e);r.firstInputDelay=e[0].processingStart-e[0].startTime;r.timeToFirstInteraction=e[0].startTime}};BOOMR.plugins.EventTiming={init:function(){this.is_supported()||(r.initialized=!0);if(!r.initialized){BOOMR.subscribe("before_beacon",r.onBeforeBeacon,null,r);try{var e=BOOMR.window;r.observerEvent=new e.PerformanceObserver(r.onEventTiming);r.observerEvent.observe({type:["event"],buffered:!0});r.observerFirstInput=new e.PerformanceObserver(r.onFirstInput);r.observerFirstInput.observe({type:["first-input"],buffered:!0})}catch(t){r.supported=!1}r.initialized=!0}return this},is_complete:function(){return!0},is_enabled:function(){return r.initialized&&this.is_supported()},is_supported:function(){if(null!==r.supported)return r.supported;var e=BOOMR.window,t=BOOMR.getPerformance();r.supported=t&&"undefined"!=typeof e.PerformanceEventTiming&&"function"==typeof e.PerformanceObserver;r.supported&&BOOMR.info("This user agent supports EventTiming","et");return r.supported},stop:function(){if(r.observerEvent){r.observerEvent.disconnect();r.observerEvent=null}if(r.observerFirstInput){r.observerFirstInput.disconnect();r.observerFirstInput=null}},metrics:{count:function(){return r.entries.length},averageDuration:function(){if(0===r.entries.length)return 0;for(var e=0,t=0;t<r.entries.length;t++)e+=r.entries[t].duration;return e/r.entries.length},firstInputDelay:function(){return r.firstInputDelay},timeToFirstInteraction:function(){return r.timeToFirstInteraction}}}}}();!function(a){var s,u=document,l=a.location.hostname,c=!1,n=!1,r=!0,i=!1,e=a.BOOMR_LOGN_always,d=a.BOOMR_CONFIG_RELOAD_TIMEOUT||33e4,f=a.BOOMR_CONFIG_STORE_TIMEOUT||480,o=!1;if(!BOOMR.plugins.LOGN&&!1!==e&&(void 0!==e||l&&"localhost"!==l&&!l.match(/\.\d+$/)&&!l.match(/^mhtml/)&&!l.match(/^file:\//))){var p={storeConfig:!1};BOOMR.plugins.LOGN={init:function(e){var t;BOOMR.utils.pluginConfig(p,e,"LOGN",["storeConfig"]);if(c||BOOMR.session.rate_limited)return this;if(e){if(e.rate_limited){BOOMR.session.rate_limited=!0;return this}"undefined"!=typeof e.autorun&&(r=e.autorun)}if(n){BOOMR.fireEvent("config",e);o=!0;BOOMR.setImmediate(O);if(s){BOOMR.addVar("t_configjs",BOOMR.now()-s);if("number"==typeof BOOMR_configt){BOOMR.addVar("t_configfb",BOOMR_configt-s);delete BOOMR_configt}}return this}a&&a.BOOMR_API_key?t=a.BOOMR_API_key:u&&BOOMR.url&&-1!==BOOMR.url.lastIndexOf("/")&&(t=BOOMR.url.substr(BOOMR.url.lastIndexOf("/")+1));if(t){BOOMR.addVar("h.key",t);if(!i&&BOOMR.plugins&&BOOMR.plugins.AutoXHR&&"function"==typeof BOOMR.plugins.AutoXHR.addExcludeFilter){BOOMR.plugins.AutoXHR.addExcludeFilter(function(e){return!!(e&&e.href&&-1<e.href.indexOf(this))},t,"ConfigXHRRequestFilter");i=!0}BOOMR.setVarPriority("h.d",-1);BOOMR.setVarPriority("h.key",-1);BOOMR.setVarPriority("h.t",-1);BOOMR.setVarPriority("h.cr",1);BOOMR.subscribe("beacon",R,null,null);n=!0;BOOMR.setImmediate(g);return this}BOOMR.error("API key could not be detected from script URL or BOOMR_API_key, exiting")},is_complete:function(){return o},readyToSend:function(){return BOOMR.hasVar("h.cr")},isJson:!0}}function O(){if(!c){n=!(c=!0);(r||BOOMR.onloadFired()&&"prerender"!==BOOMR.visibilityState())&&BOOMR.sendBeacon()}}function m(e){if(e.session_id){BOOMR.session.ID=e.session_id;delete e.session_id}for(var t=["h.key","h.d","h.t","h.cr"],n=0;n<t.length;n++)if(e[t[n]]){BOOMR.addVar(t[n],e[t[n]]);delete e[t[n]]}BOOMR.init(e);return!0}function h(e,t){a.BOOMR_configt=BOOMR.now();var n,r=function o(e){var t=function(){throw new Exception("No JSON.parse available")};window.JSON&&"function"==typeof JSON.parse?t=JSON.parse:BOOMR.window&&(BOOMR.window.JSON&&"function"==typeof BOOMR.window.JSON.parse?t=BOOMR.window.JSON.parse:"function"==typeof BOOMR.window.json_parse&&(t=BOOMR.window.json_parse));try{return t(e)}catch(n){}return null}(e);if(r){n=t&&BOOMR.utils.getLocalStorage("LOGN")||{};for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i]);(p.storeConfig||r.LOGN&&r.LOGN.storeConfig)&&BOOMR.utils.setLocalStorage("LOGN",n,f);t||setTimeout(g,d);return m(r)}}function g(){var e,r,t,n=u.createElement("A"),i=BOOMR.getBeaconURL?BOOMR.getBeaconURL():"",o=[];if(!c){t=BOOMR.utils.getLocalStorage("LOGN");if(t&&m(t)){BOOMR.addVar("t_configls",Math.round(BOOMR.hrNow()));BOOMR.setImmediate(O)}}for(e in BOOMR.plugins)BOOMR.plugins.hasOwnProperty(e)&&o.push(encodeURIComponent(e));s=BOOMR.now();r="https://c.go-mpulse.net/api/config.json";r+="?key="+BOOMR.getVar("h.key")+"&d="+encodeURIComponent(l)+"&t="+Math.round(s/3e5)+"&v="+BOOMR.version+(a===window?"":"&if=")+"&sl="+(0<BOOMR.session.length?1:0)+"&si="+BOOMR.session.ID+"-"+Math.round(BOOMR.session.start/1e3).toString(36)+(c?"&r=":"")+(i?"&bcn="+encodeURIComponent(i):"")+(c?"":"&plugins="+o.join(","));r+="&acao=";if(BOOMR.plugins.AK&&BOOMR.plugins.AK.akVars){i=BOOMR.plugins.AK.akVars["ak.ai"];isNaN(i)||!BOOMR.utils.isInteger(i)&&isNaN(parseInt(i,10))||(r+="&ak.ai="+i)}n.href=r;BOOMR.config_url=n.href;!function(e){if(window.XDomainRequest){0===r.indexOf("https:")&&"http:"===window.location.protocol&&(r=r.replace("https://","http://"));var t=new XDomainRequest;t.open("GET",r);t.onload=function(){h(t.responseText,e)};t.send()}else{var n=new XMLHttpRequest;n.open("GET",r,!0);n.onreadystatechange=function(){4===n.readyState&&200===n.status&&h(n.responseText,e)};n.send(null)}}(c);c&&setTimeout(function(){g()},d)}function R(e){if(!e||!("undefined"!=typeof e.early||e["http.initiator"]&&0===e["http.initiator"].indexOf("api_custom_"))){BOOMR.removeVar("t_configjs");BOOMR.removeVar("t_configfb");BOOMR.removeVar("t_configls")}}}(BOOMR.window);BOOMR.init({primary:!0,log:null,wait:!0,site_domain:null,ResourceTiming:{enabled:!1},Angular:{enabled:!1},Ember:{enabled:!1},Backbone:{enabled:!1},History:{enabled:!1},Errors:{enabled:!1},TPAnalytics:{enabled:!1},UserTiming:{enabled:!1},Continuity:{enabled:!1},IFrameDelay:{enabled:!1},Early:{enabled:!1}});BOOMR.t_end=(new Date).getTime();
