UNPKG

countly-sdk-web-cip

Version:
11 lines 164 kB
/*
 * 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, Akamai Technologies, Inc. All rights reserved.
 * Copyrights licensed under the BSD License. See the accompanying LICENSE.txt file for terms.
 */
/* Boomerang Version: 1.0.0 84de36169253d0605fc44ad6cf5e75670bf2c9f7 */

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(d){var l,t,u,o,s,e,a,n=d;d.parent!==d&&document.getElementById("boomr-if-as")&&"script"===document.getElementById("boomr-if-as").nodeName.toLowerCase()&&(d=d.parent);u=d.document;d.BOOMR||(d.BOOMR={});BOOMR=d.BOOMR;if(!BOOMR.version){BOOMR.version="1.0.0";BOOMR.window=d;BOOMR.boomerang_frame=n;BOOMR.plugins||(BOOMR.plugins={});!function(){try{new d.CustomEvent("CustomEvent")!==undefined&&(o=function(e,t){return new d.CustomEvent(e,t)})}catch(e){}try{!o&&u.createEvent&&u.createEvent("CustomEvent")&&(o=function(e,t){var n=u.createEvent("CustomEvent");t=t||{cancelable:!1,bubbles:!1};n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail);return n})}catch(e){}!o&&u.createEventObject&&(o=function(e,t){var n=u.createEventObject();n.type=n.propertyName=e;n.detail=t.detail;return n});o||(o=function(){return undefined})}();s=function(e,t,n){var r=o(e,{detail:t});r&&(n?BOOMR.setImmediate(i):i());function i(){try{u.dispatchEvent?u.dispatchEvent(r):u.fireEvent&&u.fireEvent("onpropertychange",r)}catch(e){}}};if("undefined"!=typeof u.hidden){e="visibilityState";a="visibilitychange"}else if("undefined"!=typeof u.mozHidden){e="mozVisibilityState";a="mozvisibilitychange"}else if("undefined"!=typeof u.msHidden){e="msVisibilityState";a="msvisibilitychange"}else if("undefined"!=typeof u.webkitHidden){e="webkitVisibilityState";a="webkitvisibilitychange"}l={beacon_url:"",beacon_url_force_https:!0,beacon_urls_allowed:[],beacon_type:"AUTO",beacon_auth_key:"Authorization",beacon_auth_token:undefined,beacon_with_credentials:!1,beacon_disable_sendbeacon:!1,site_domain:d.location.hostname.replace(/.*?([^.]+\.[^.]+)\.?$/,"$1").toLowerCase(),user_ip:"",autorun:!0,hasSentPageLoadBeacon:!1,r:undefined,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=d.event);e.target?t=e.target:e.srcElement&&(t=e.srcElement);3===t.nodeType&&(t=t.parentNode);t&&t.nodeName&&"OBJECT"===t.nodeName.toUpperCase()&&"application/x-shockwave-flash"===t.type||l.fireEvent(n,t)}},clearEvents:function(){var e;for(e in this.events)this.events.hasOwnProperty(e)&&(this.events[e]=[])},clearListeners:function(){var e;for(e in l.listenerCallbacks)if(l.listenerCallbacks.hasOwnProperty(e))for(;l.listenerCallbacks[e].length;)BOOMR.utils.removeListener(l.listenerCallbacks[e][0].el,e,l.listenerCallbacks[e][0].fn);l.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(){l.onloadfired=!0},beaconUrlAllowed:function(e){if(!l.beacon_urls_allowed||0===l.beacon_urls_allowed.length)return!0;for(var t=0;t<l.beacon_urls_allowed.length;t++){if(new RegExp(l.beacon_urls_allowed[t]).exec(e))return!0}return!1},checkLocalStorageSupport:function(){var e=l.LOCAL_STORAGE_PREFIX+"clss";l.localStorageSupported=!1;try{if(!d.JSON||!d.localStorage)return;d.localStorage.setItem(e,e);l.localStorageSupported=d.localStorage.getItem(e)===e;d.localStorage.removeItem(e)}catch(t){l.localStorageSupported=!1}},onFrameUnloaded:function(){var e,t;BOOMR.isUnloaded=!0;for(e=0;e<l.nativeOverwrites.length;e++)(t=l.nativeOverwrites[e]).obj[t.functionName]=t.origFn;l.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:l.site_domain,ID:undefined,start:undefined,length:0,enabled:!0},utils:{hasPostMessageSupport:function(){return!(!d.postMessage||"function"!=typeof d.postMessage&&"object"!=typeof d.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;e=" "+e+"=";var t,n;if(0<=(t=(n=" "+u.cookie+";").indexOf(e))){t+=e.length;return n.substring(t,n.indexOf(";",t)).replace(/^"/,"").replace(/"$/,"")}},setCookie:function(e,t,n){var r,i,o,a,s;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){a=[i,"path=/","domain="+BOOMR.session.domain];if("number"==typeof n){(s=new Date).setTime(s.getTime()+1e3*n);s=s.toGMTString();a.push("expires="+s)}u.cookie=a.join("; ");if(BOOMR.testedCookies){BOOMR.cookies[e]="number"!=typeof n||0<n?r:undefined;return!0}BOOMR.cookies[e]=undefined;if(r===(o=this.getRawCookie(e))||void 0===o&&"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"+o)}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)},getLocalStorage:function(e){var t,n;if(!e||!l.localStorageSupported)return null;try{if(null===(t=d.localStorage.getItem(l.LOCAL_STORAGE_PREFIX+e)))return undefined;n=d.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,i,o;if(!e||!l.localStorageSupported||"object"!=typeof t)return!1;r={items:t};"number"==typeof n&&(r.expires=BOOMR.now()+1e3*n);if((i=d.JSON.stringify(r)).length<5e4){try{d.localStorage.setItem(l.LOCAL_STORAGE_PREFIX+e,i);if(i===(o=d.localStorage.getItem(l.LOCAL_STORAGE_PREFIX+e)))return!0}catch(a){}BOOMR.warn("Saved storage value doesn't match what we tried to set:\n"+i+"\n"+o)}else BOOMR.warn("Storage items too large: "+i.length+" "+i);return!1},removeLocalStorage:function(e){if(!e||!l.localStorageSupported)return!1;try{d.localStorage.removeItem(l.LOCAL_STORAGE_PREFIX+e);return!0}catch(t){}return!1},cleanupURL:function(e,t){if(!e||BOOMR.utils.isArray(e))return"";l.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""}e.match(/^\/\//)&&(e=location.protocol+e);if(!e.match(/^(https?|file):/)){BOOMR.error("Passed in URL is invalid: "+e);return""}t&&(e=e.replace(/#.*/,""));return e.replace(/\?([^#]*)/,function(e,t){return"?"+(10<t.length?BOOMR.utils.hashString(t):t)})},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!(d&&d.navigator&&d.navigator.userAgent&&d.navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&d&&d.MutationObserver&&"function"==typeof d.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 c(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(c,t))}a=d.MutationObserver;d.Zone&&"function"==typeof d.Zone.__symbol__&&(s=d.Zone.__symbol__("MutationObserver"))&&"string"==typeof s&&d.hasOwnProperty(s)&&"function"==typeof d[s]&&(a=d[s]);u.observer=new a(c);n&&(u.timer=setTimeout(c,u.timeout));u.observer.observe(e,t);return u},addListener:function(e,t,n,r){var i=!1;if(e.addEventListener){r&&BOOMR.browser.supportsPassive()&&(i={capture:!1,passive:!0});e.addEventListener(t,n,i)}else e.attachEvent&&e.attachEvent("on"+t,n);l.listenerCallbacks[t]=l.listenerCallbacks[t]||[];l.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(l.listenerCallbacks.hasOwnProperty(t))for(var r=0;r<l.listenerCallbacks[t].length;r++)if(n===l.listenerCallbacks[t][r].fn&&e===l.listenerCallbacks[t][r].el){l.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)return 1<o.length?decodeURIComponent(o.splice(1).join("=").replace(/\+/g," ")):"";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;var n,r=document.getElementsByTagName("script");for(n=r.length;n--;)if("interactive"===r[n].readyState)return r[n].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=d.pageXOffset!==undefined,t="CSS1Compat"===(d.document.compatMode||""),n={x:0,y:0};if(e)if("function"==typeof d.pageXOffset){n.x=d.pageXOffset();n.y=d.pageYOffset()}else{n.x=d.pageXOffset;n.y=d.pageYOffset}else if(t){n.x=d.document.documentElement.scrollLeft;n.y=d.document.documentElement.scrollTop}else{n.x=d.document.body.scrollLeft;n.y=d.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 d.innerHeight||d.document.documentElement.clientHeight||d.document.body.clientHeight},windowWidth:function(){return d.innerWidth||d.document.documentElement.clientWidth||d.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&&l.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)}},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"];BOOMR_check_doc_domain();e||(e={});e.log!==undefined&&(this.log=e.log);this.log||(this.log=function(){});this.pageId||(this.pageId=BOOMR.utils.generateId(8));if(e.primary&&l.handlers_attached)return this;if("undefined"!=typeof e.site_domain){/:/.test(e.site_domain)&&(e.site_domain=d.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&&(l.autorun=e.autorun);for(n in this.plugins)if(this.plugins.hasOwnProperty(n)){if(e[n]&&e[n].hasOwnProperty("enabled")&&!1===e[n].enabled){l.disabled_plugins[n]=1;"function"==typeof this.plugins[n].disable&&this.plugins[n].disable();continue}if(l.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 l.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&&(l[r[t]]=e[r[t]]);if(!l.handlers_attached&&!e.wait||l.handlers_attached&&l.waiting_for_config){if(!l.onloadfired&&(l.autorun===undefined||!1!==l.autorun)){BOOMR.hasBrowserOnloadFired()&&(BOOMR.loadedLate=!0);BOOMR.attach_page_ready(BOOMR.page_ready_autorun)}l.waiting_for_config=!1}if(l.handlers_attached)return this;e.wait&&(l.waiting_for_config=!0);BOOMR.attach_page_ready(function(){BOOMR.t_onload||(BOOMR.t_onload=BOOMR.now())});BOOMR.utils.addListener(d,"DOMContentLoaded",function(){l.fireEvent("dom_loaded")});BOOMR.fireEvent("config",e);BOOMR.subscribe("config",function(e){e.beacon_url&&(l.beacon_url=e.beacon_url)});BOOMR.subscribe("spa_navigation",l.spaNavigation,null,l);!function(){var e,t;if(a!==undefined){BOOMR.utils.addListener(u,a,function(){l.fireEvent("visibility_changed")});l.lastVisibilityState=BOOMR.visibilityState();BOOMR.subscribe("visibility_changed",function(){var e=BOOMR.visibilityState();BOOMR.lastVisibilityEvent[e]=BOOMR.now();if("prerender"===l.lastVisibilityState&&"prerender"!==e){BOOMR.addVar("vis.pre","1");l.fireEvent("prerender_to_visible")}l.lastVisibilityState=e})}BOOMR.utils.addListener(u,"mouseup",l.xb_handler("click"));e=u.getElementsByTagName("form");for(t=0;t<e.length;t++)BOOMR.utils.addListener(e[t],"submit",l.xb_handler("form_submit"));d.onpagehide||null===d.onpagehide||BOOMR.utils.addListener(d,"unload",function(){BOOMR.window=d=null});BOOMR.boomerang_frame!==BOOMR.window&&BOOMR.utils.addListener(BOOMR.boomerang_frame,"unload",l.onFrameUnloaded)}();l.handlers_attached=!0;return this},attach_page_ready:function(e){BOOMR.hasBrowserOnloadFired()?this.setImmediate(e,null,null,BOOMR):d.onpagehide||null===d.onpagehide?BOOMR.utils.addListener(d,"pageshow",e):BOOMR.utils.addListener(d,"load",e)},page_ready_autorun:function(e){l.autorun&&BOOMR.page_ready(e,!0)},page_ready:function(e,t){var n;if(!t&&"number"==typeof e){n=e;e=null}e||(e=d.event);e||(e={name:"load"});if(t){if("number"==typeof d.BOOMR_page_ready){e.timing=e.timing||{};e.timing.loadEventEnd=d.BOOMR_page_ready;BOOMR.addVar("pr",1,!0)}}else{e.timing=e.timing||{};n?e.timing.loadEventEnd=n:"number"==typeof d.BOOMR_page_ready?e.timing.loadEventEnd=d.BOOMR_page_ready:e.timing.loadEventEnd=BOOMR.now();BOOMR.addVar("pr",1,!0)}if(l.onloadfired)return this;l.fireEvent("page_ready",e);l.onloadfired=!0;return this},hasBrowserOnloadFired:function(){var e=BOOMR.getPerformance();return u.readyState&&"complete"===u.readyState||e&&e.timing&&0<e.timing.loadEventStart||0<d.BOOMR_onload},onloadFired:function(){return l.onloadfired},setImmediate:function(e,t,n,r){var i;i=function(){e.call(r||null,t,n||{},void 0);i=null};d.requestIdleCallback?d.requestIdleCallback(i,{timeout:1e3}):d.setImmediate?d.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){}},hrNow:function(){var e,t,n=BOOMR.getPerformance();if(n&&n.now)e=n.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 u[e]},lastVisibilityEvent:{},registerEvent:function(e){if(l.events.hasOwnProperty(e))return this;l.events[e]=[];return this},disable:function(){l.clearEvents();l.clearListeners()},fireEvent:function(e,t){return l.fireEvent(e,t)},subscribe:function(t,n,r,i,e){var o,a,s;t=t.toLowerCase();l.translate_events[t]&&(t=l.translate_events[t]);l.events.hasOwnProperty(t)||(l.events[t]=[]);s=l.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&&l.onloadfired&&l.autorun&&this.setImmediate(n,null,r,i);if("page_unload"===t||"before_unload"===t){l.unloadEventsCount++;!function(){var e;s.length;e=function(e){n&&n.call(i,e||d.event,r);++l.unloadEventCalled===l.unloadEventsCount&&BOOMR.real_sendBeacon()};"page_unload"===t&&(d.onpagehide||null===d.onpagehide?BOOMR.utils.addListener(d,"pagehide",e):BOOMR.utils.addListener(d,"unload",e));BOOMR.utils.addListener(d,"beforeunload",e)}()}return this},addError:function(e,t,n){var r,i=BOOMR.plugins.Errors;BOOMR.error("Boomerang caught error: "+e+", src: "+t+", extra: "+n);if(i&&i.is_supported())if("string"==typeof e)i.send({message:e,extra:n,functionName:t,noStack:!0},i.VIA_APP,i.SOURCE_BOOMERANG);else{"string"==typeof t&&(e.functionName=t);void 0!==n&&(e.extra=n);i.send(e,i.VIA_APP,i.SOURCE_BOOMERANG)}else{if("string"!=typeof e){(r=String(e)).match(/^\[object/)&&(r=e.name+": "+(e.description||e.message).replace(/\r\n$/,""));e=r}t!==undefined&&(e="["+t+":"+BOOMR.now()+"] "+e);n&&(e+=":: "+n);l.errors[e]?l.errors[e]++:l.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){l.vars[e]=t;n&&(l.singleBeaconVars[e]=1)}else if("object"==typeof e){var r,i=e;for(r in i)if(i.hasOwnProperty(r)){l.vars[r]=i[r];n&&(l.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++)l.vars.hasOwnProperty(n[t])&&delete l.vars[n[t]];return this},hasVar:function(e){return l.vars.hasOwnProperty(e)},getVar:function(e){return l.vars[e]},setVarPriority:function(e,t){if("number"!=typeof t||1!==Math.abs(t))return this;l.varPriority[t][e]=1;return this},setReferrer:function(e){l.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(){var e;for(e in this.plugins)if(this.plugins.hasOwnProperty(e)){if(l.disabled_plugins[e])continue;if("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(l.beaconInQueue)BOOMR.subscribe("beacon",function(){BOOMR.responseEnd(e,t,n,r)},null,BOOMR,!0);else{l.beaconInQueue=!0;if("object"==typeof e){if(!e.url)return;l.fireEvent("xhr_load",e)}else{BOOMR.real_sendBeacon();BOOMR.addVar("xhr.pg",e,!0);BOOMR.plugins.RT.startTimer("xhr_"+e,t);l.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&&(l.beacon_url_override=e);if(!l.beaconQueued){l.beaconQueued=!0;BOOMR.setImmediate(BOOMR.real_sendBeacon,null,null,BOOMR)}return!0},sendBeaconWhenReady:function(e,t,n){if(l.beaconInQueue)BOOMR.subscribe("beacon",function(){BOOMR.sendBeaconWhenReady(e,t,n)},null,BOOMR,!0);else{l.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(!l.beaconQueued)return!1;l.beaconQueued=!1;for(e in this.plugins)if(this.plugins.hasOwnProperty(e)){if(l.disabled_plugins[e])continue;if(!this.plugins[e].is_complete(l.vars))return!1}if(!(window&&window.Image&&window.navigator&&BOOMR.window))return!1;var r=BOOMR.utils.inArray(l.vars["http.initiator"],BOOMR.constants.BEACON_TYPE_SPAS),i="undefined"==typeof l.vars["http.initiator"]||r;l.vars.pgu||(l.vars.pgu=r?u.URL:u.URL.replace(/#.*/,""));l.vars.pgu=BOOMR.utils.cleanupURL(l.vars.pgu);l.vars.u&&!r||(l.vars.u=l.vars.pgu);l.vars.pgu===l.vars.u&&delete l.vars.pgu;l.r?l.vars.r=BOOMR.utils.cleanupURL(l.r):delete l.vars.r;l.vars.v=BOOMR.version;BOOMR.snippetVersion&&(l.vars.sv=BOOMR.snippetVersion);l.vars.sm=BOOMR.snippetMethod||"i";if(BOOMR.session.enabled){l.vars["rt.si"]=BOOMR.session.ID+"-"+Math.round(BOOMR.session.start/1e3).toString(36);l.vars["rt.ss"]=BOOMR.session.start;l.vars["rt.sl"]=BOOMR.session.length}else BOOMR.removeVar("rt.si","rt.ss","rt.sl");if(BOOMR.visibilityState()){l.vars["vis.st"]=BOOMR.visibilityState();BOOMR.lastVisibilityEvent.visible&&(l.vars["vis.lv"]=BOOMR.now()-BOOMR.lastVisibilityEvent.visible);BOOMR.lastVisibilityEvent.hidden&&(l.vars["vis.lh"]=BOOMR.now()-BOOMR.lastVisibilityEvent.hidden)}l.vars["ua.plt"]=navigator.platform;l.vars["ua.vnd"]=navigator.vendor;this.pageId&&(l.vars.pid=this.pageId);l.vars.n=++this.beaconsSent;if(d!==window){"if";l.vars["if"]=""}for(e in l.errors)l.errors.hasOwnProperty(e)&&t.push(e+(1<l.errors[e]?" (*"+l.errors[e]+")":""));0<t.length&&(l.vars.errors=t.join("\n"));l.errors={};l.fireEvent("before_beacon",l.vars);for(e in l.vars)l.vars.hasOwnProperty(e)&&(n[e]=l.vars[e]);BOOMR.removeVar(["qt","pgu"]);if("undefined"==typeof l.vars.early){for(var o in l.singleBeaconVars)l.singleBeaconVars.hasOwnProperty(o)&&BOOMR.removeVar(o);l.singleBeaconVars={};if(!l.hasSentPageLoadBeacon&&i){l.hasSentPageLoadBeacon=!0;BOOMR.setImmediate(function(){l.fireEvent("page_load_beacon",n)})}}if(BOOMR.session.rate_limited)return!1;l.beaconInQueue=!1;BOOMR.sendBeaconData(n);return!0},hasSentPageLoadBeacon:function(){return l.hasSentPageLoadBeacon},sendBeaconData:function(e){var t,n,r,i,o,a=[],s=!0;l.beacon_url=l.beacon_url_override||l.beacon_url;if(!l.beacon_url)return!1;if(!l.beaconUrlAllowed(l.beacon_url))return!1;if(BOOMR.utils.isObjectEmpty(e))return!1;l.fireEvent("beacon",e);a=this.getVarsOfPriority(e,-1);t=this.getVarsOfPriority(e,1);n=a.concat(this.getVarsOfPriority(e,0),t).join("&");l.beacon_url_force_https&&l.beacon_url.match(/^\/\//)&&(l.beacon_url="https:"+l.beacon_url);r=l.beacon_url+(-1<l.beacon_url.indexOf("?")?"&":"?")+n;if("GET"===l.beacon_type){s=!0;r.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"===l.beacon_type||r.length>BOOMR.constants.MAX_GET_LENGTH)&&(s=!1);if(d&&d.navigator&&"function"==typeof d.navigator.sendBeacon&&BOOMR.utils.isNative(d.navigator.sendBeacon)&&"function"==typeof d.Blob&&"GET"!==l.beacon_type&&"undefined"==typeof l.beacon_auth_token&&!l.beacon_disable_sendbeacon){var u=new d.Blob([n+"&sb=1"],{type:"application/x-www-form-urlencoded"});if(d.navigator.sendBeacon(l.beacon_url,u))return!0}BOOMR.orig_XMLHttpRequest||d&&d.XMLHttpRequest||(s=!0);if(s){try{i=new Image}catch(c){return!1}i.src=r}else{o=new(BOOMR.window.orig_XMLHttpRequest||BOOMR.orig_XMLHttpRequest||BOOMR.window.XMLHttpRequest);try{this.sendXhrPostBeacon(o,n)}catch(c){o=new BOOMR.boomerang_frame.XMLHttpRequest;this.sendXhrPostBeacon(o,n)}}return!0},hasSentPageLoadBeacon:function(){return l.hasSentPageLoadBeacon},sendXhrPostBeacon:function(e,t){e.open("POST",l.beacon_url);e.setRequestHeader("Content-type","application/x-www-form-urlencoded");if("undefined"!=typeof l.beacon_auth_token){"undefined"==typeof l.beacon_auth_key&&(l.beacon_auth_key="Authorization");e.setRequestHeader(l.beacon_auth_key,l.beacon_auth_token)}l.beacon_with_credentials&&(e.withCredentials=!0);e.send(t)},getVarsOfPriority:function(e,t){var n,r=[],i=0!==t?l.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){t!==undefined&&null!==t||(t="");"object"==typeof 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){var r=BOOMR.window.document.createElement("a");r.href=BOOMR.url;t.url=r.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(){};e=function(n){return function(e,t){this.log(e,n,"boomerang"+(t?"."+t:""));return this}};t.debug=e("debug");t.info=e("info");t.warn=e("warn");t.error=e("error")}();try{var i=t.getPerformance();i&&"function"==typeof i.now&&/\[native code\]/.test(String(i.now))&&i.timing&&i.timing.navigationStart&&(t.now=function(){return Math.round(i.now()+i.timing.navigationStart)})}catch(c){}l.checkLocalStorageSupport();!function(){var e;for(e in t)t.hasOwnProperty(e)&&(BOOMR[e]=t[e]);BOOMR.xhr_excludes||(BOOMR.xhr_excludes={})}();s("onBoomerangLoaded",{BOOMR:BOOMR},!0)}}(window);!function(e){"use strict";var t,n;void 0!==e&&(n=(t=e).ResourceTimingDecompression);var f={HOSTNAMES_REVERSED:!0,INITIATOR_TYPES:{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},DIMENSION_NAMES:{height:0,width:1,y:2,x:3,naturalHeight:4,naturalWidth:5},SCRIPT_ATTRIBUTES:{scriptAsync:1,scriptDefer:2,scriptBody:4},REL_TYPES:{prefetch:1,preload:2,prerender:3,stylesheet:4},getRevMap:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}};f.REV_INITIATOR_TYPES=f.getRevMap(f.INITIATOR_TYPES);f.REV_DIMENSION_NAMES=f.getRevMap(f.DIMENSION_NAMES);f.REV_SCRIPT_ATTRIBUTES=f.getRevMap(f.SCRIPT_ATTRIBUTES);f.REV_REL_TYPES=f.getRevMap(f.REL_TYPES);f.SPECIAL_DATA_PREFIX="*";f.SPECIAL_DATA_DIMENSION_TYPE="0";f.SPECIAL_DATA_DIMENSION_PREFIX=f.SPECIAL_DATA_PREFIX+f.SPECIAL_DATA_DIMENSION_TYPE;f.SPECIAL_DATA_SIZE_TYPE="1";f.SPECIAL_DATA_SCRIPT_TYPE="2";f.SPECIAL_DATA_SERVERTIMING_TYPE="3";f.SPECIAL_DATA_LINK_ATTR_TYPE="4";f.SPECIAL_DATA_NAMESPACED_TYPE="5";f.SPECIAL_DATA_SERVICE_WORKER_TYPE="6";f.HOSTNAME_REGEX=/^(https?:\/\/)([^/]+)(.*)/;f.searchSortedFirst=function(e,t,n){if(!e||0===e.length)return-1;t=(n=n||function a(e){return e})(t);for(var r=-1,i=e.length,o=0;r<i-1;)n(e[o=r+i>>>1])<t?r=o:i=o;return i};f.searchSortedLast=function(e,t,n){if(!e||0===e.length)return-1;t=(n=n||function a(e){return e})(t);for(var r=-1,i=e.length,o=0;r<i-1;)t<n(e[o=r+i>>>1])?i=o:r=o;return r};f.noConflict=function(){t.ResourceTimingDecompression=n;return f};f.decompressResources=function(e,t,n){var r,i=[];n=n||"";for(var o in e)if(e.hasOwnProperty(o)){var a=e[o],s=n+o;-1!==s.indexOf("|",s.length-1)&&(s=s.substring(0,s.length-1));if("string"==typeof a){var u=a.split("|");if(0===u.length)continue;r=undefined;if(this.isDimensionData(u[0])){r=this.decompressDimension(u[0]);u=u.splice(1)}for(var c=0;c<u.length;c++){var d=u[c];0<d.length&&d[0]===f.SPECIAL_DATA_PREFIX||i.push(this.addDimension(this.decodeCompressedResource(d,s,t),r))}}else{var l=this.decompressResources(a,t,s);i=i.concat(l)}}return i};f.isDimensionData=function(e){return e&&e.substring(0,f.SPECIAL_DATA_DIMENSION_PREFIX.length)===f.SPECIAL_DATA_DIMENSION_PREFIX};f.decompressDimension=function(e){var t,n,r={};if(!this.isDimensionData(e))return r;if((t=(e=e.substring(f.SPECIAL_DATA_DIMENSION_PREFIX.length)).split(",")).length<2)return r;r.y=0;for(n=r.x=0;n<t.length;n++)""===t[n]?r[this.REV_DIMENSION_NAMES[n]]=0:r[this.REV_DIMENSION_NAMES[n]]=parseInt(t[n],36);r.hasOwnProperty("naturalHeight")||(r.naturalHeight=r.height);r.hasOwnProperty("naturalWidth")||(r.naturalWidth=r.width);return r};f.addDimension=function(e,t){if(!e||!t)return e;for(var n in this.DIMENSION_NAMES)this.DIMENSION_NAMES.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(e[n]=t[n]);return e};f.getSortedCells=function(e){for(var t=[],n=0;n<e.length;n++)if(!(e[n].responseEnd<=e[n].startTime)){t.push({ts:e[n].startTime,val:1});t.push({ts:e[n].responseEnd,val:-1})}t.sort(function(e,t){return e.ts-t.ts});return t};f.addCellContributions=function(e){for(var t=0,n=0,r=[],i=e[0].ts,o=e.length,a={},s=0;s<o;s++){a=e[s];if(s<o-1&&e[s+1].ts===a.ts){e[s+1].val+=a.val;r.push(s)}else{n=a.val;0<t&&(a.val=(a.ts-i)/t);i=a.ts;t+=n}}for(s=r.length-1;0<=s;s--)e.splice(r[s],1);return e};f.sumContributions=function(e,t){if(!t||"undefined"==typeof t.startTime||"undefined"==typeof t.responseEnd)return 0;var n=t.startTime+1,r=t.responseEnd;function i(e){return e.ts}for(var o=this.searchSortedFirst(e,{ts:n},i),a=this.searchSortedLast(e,{ts:r},i),s=0,u=o;u<=a;u++)s+=e[u].val;return s};f.addContribution=function(e){if(!e||0===e.length)return e;var t=this.getSortedCells(e);if(t.length<2||t[0].val<1||t[t.length-1].ts<=0)return e;this.addCellContributions(t);for(var n=t[t.length-1].ts,r=0;r<e.length;r++)e[r].contribution=this.sumContributions(t,e[r])/n;return e};f.getInitiatorTypeFromIndex=function(e){return this.REV_INITIATOR_TYPES.hasOwnProperty(e)?this.REV_INITIATOR_TYPES[e]:"other"};f.decodeCompressedResource=function(e,t,n){if(!e||!t)return{};f.HOSTNAMES_REVERSED&&(t=f.reverseHostname(t));for(var r=isNaN(parseInt(e[0],10))?e[0]:parseInt(e[0],10),i=0<(e=1<e.length?e.split(f.SPECIAL_DATA_PREFIX):[]).length&&1<e[0].length?e[0].substring(1).split(","):[],o=1<e.length?e.slice(1):[],a=0;a<i.length;a++)""===i[a]?i[a]=0:i[a]=parseInt(i[a],36);var s=1<=i.length?i[0]:0,u=i.length<10?s:this.decodeCompressedResourceTimeStamp(i,9,s),c={name:t,initiatorType:this.getInitiatorTypeFromIndex(r),startTime:s,redirectStart:0<this.decodeCompressedResourceTimeStamp(i,9,s)?s:0,redirectEnd:this.decodeCompressedResourceTimeStamp(i,9,s),fetchStart:u,domainLookupStart:this.decodeCompressedResourceTimeStamp(i,8,s),domainLookupEnd:this.decodeCompressedResourceTimeStamp(i,7,s),connectStart:this.decodeCompressedResourceTimeStamp(i,6,s),secureConnectionStart:this.decodeCompressedResourceTimeStamp(i,5,s),connectEnd:this.decodeCompressedResourceTimeStamp(i,4,s),requestStart:this.decodeCompressedResourceTimeStamp(i,3,s),responseStart:this.decodeCompressedResourceTimeStamp(i,2,s),responseEnd:this.decodeCompressedResourceTimeStamp(i,1,s)};c.duration=0<c.responseEnd?c.responseEnd-c.startTime:0;for(a=0;a<o.length;a++)this.decompressSpecialData(o[a],c,n);return c};f.decodeCompressedResourceTimeStamp=function(e,t,n){return e&&e.length>=t+1&&0!==e[t]?e[t]+n:0};f.decompressScriptType=function(e,t){var n=parseInt(e,10);t||(t={});for(var r in this.SCRIPT_ATTRIBUTES)this.SCRIPT_ATTRIBUTES.hasOwnProperty(r)&&(t[r]=(n&this.SCRIPT_ATTRIBUTES[r])===this.SCRIPT_ATTRIBUTES[r]);return t};f.decompressLinkAttrType=function(e,t){var n=parseInt(e,10);t||(t={});this.REV_REL_TYPES.hasOwnProperty(n)&&(t.rel=this.REV_REL_TYPES[n]);return t};f.decompressSize=function(e,t){var n,r;void 0===t&&(t={});n=e.split(",");for(r=0;r<n.length;r++)if("_"===n[r])n[r]=0;else{""===n[r]&&(n[r]=0);n[r]=parseInt(n[r],36);0<r&&(n[r]+=n[0])}1===n.length&&n.push(n[0]);2===n.length&&n.push(n[0]);t.encodedBodySize=n[0];t.transferSize=n[1];t.decodedBodySize=n[2];return t};f.decompressNamespacedData=function(e,t){t=t||{};if("string"==typeof e){var n=e.indexOf(":");if(0<n){var r=e.substring(0,n),i=e.substring(n+":".length);t._data=t._data||{};if(t._data.hasOwnProperty(r)){Array.isArray(t._data[r])||(t._data[r]=[t._data[r]]);t._data[r].push(i)}else t._data[r]=i}}return t};f.decompressServiceWorkerData=function(e,t){t=t||{};if("string"==typeof e){var n=e.split(","),r=parseInt(n[0],36);t.workerStart=t.startTime+r;n[1]&&(t.fetchStart=t.startTime+parseInt(n[1],36))}return t};f.decompressSpecialData=function(e,t,n){var r;if(!e||0===e.length)return t;r=e[0];e=e.substring(1);r===f.SPECIAL_DATA_SIZE_TYPE?t=this.decompressSize(e,t):r===f.SPECIAL_DATA_SCRIPT_TYPE?t=this.decompressScriptType(e,t):r===f.SPECIAL_DATA_SERVERTIMING_TYPE?t=this.decompressServerTimingEntries(n,e,t):r===f.SPECIAL_DATA_LINK_ATTR_TYPE?t=this.decompressLinkAttrType(e,t):r===f.SPECIAL_DATA_NAMESPACED_TYPE?t=this.decompressNamespacedData(e,t):r===f.SPECIAL_DATA_SERVICE_WORKER_TYPE&&(t=this.decompressServiceWorkerData(e,t));return t};f.reverseHostname=function(e){return e.replace(f.HOSTNAME_REGEX,function(e,t,n,r){return t+f.reverseString(n)+r})};f.reverseString=function(e){for(var t=e.length,n="";t--;)n+=e[t];return n};f.decompressServerTimingEntries=function(t,e,n){void 0===n&&(n={});t&&e&&(n.serverTiming=e.split(",").map(function(e){return this.decompressServerTiming(t,e)},this));return n};f.decompressServerTiming=function(e,t){var n=t.split(":"),r=Number(n[0]),i=0,o=0;if(1<n.length){var a=n[1].split(".");""!==a[0]&&(i=Number(a[0]));1<a.length&&(o=Number(a[1]))}var s,u="";if(Array.isArray(e[i])){s=e[i][0];u=e[i][1+o]||""}else s=e[i];return{name:s,duration:r,description:u}};"function"==typeof define&&define.amd?define([],function(){return f}):"undefined"!=typeof module&&module.exports?module.exports=f:void 0!==t&&(t.ResourceTimingDecompression=f)}("undefined"!=typeof window?window:undefined);!function(){var _;if(!BOOMR.plugins.Continuity){var y=100,b=0,M=1,E=2,B="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_",v=".",w=BOOMR.getPerformance(),S={},T=w&&w.timing&&w.timing.navigationStart?w.timing.navigationStart:BOOMR.now(),t=function(c){var d={},r={},a=[],s=0,u=0,i=0;BOOMR.fpsLog&&BOOMR.fpsLog.length&&(c=BOOMR.fpsLog[0]+T);function l(){return Math.floor((BOOMR.now()-c)/y)}function f(){var e=0;if(_.ttiWaitForFrameworkReady){if(!_.frameworkReady)return;e=_.frameworkReady}if(BOOMR.plugins.PaintTiming&&BOOMR.plugins.PaintTiming.is_supported()&&w&&w.timeOrigin){var t=BOOMR.plugins.PaintTiming.getTimingFor("first-contentful-paint");t||(t=BOOMR.plugins.PaintTiming.getTimingFor("first-paint"));t&&(e=Math.max(e,Math.round(t+w.timeOrigin)))}else if(w&&w.timing&&w.timing.msFirstPaint)e=Math.max(e,w.timing.msFirstPaint);else if(BOOMR.window&&BOOMR.window.chrome&&"function"==typeof BOOMR.window.chrome.loadTimes){var n=BOOMR.window.chrome.loadTimes();n&&n.firstPaintTime&&(e=Math.max(e,1e3*n.firstPaintTime))}w&&w.timing&&w.timing.domContentLoadedEventEnd&&(e=Math.max(e,w.timing.domContentLoadedEventEnd));_.ttiWaitForHeroImages&&(i=function d(e){var t,n,r,i,o,a,s=0;if(!BOOMR.window||!BOOMR.window.document||"function"!=typeof BOOMR.window.document.querySelectorAll)return 0;if(!w||"function"!=typeof w.getEntriesByType)return 0;t=e+", "+e+" * img, "+e+" * image";if((n=BOOMR.window.document.querySelectorAll(t))&&n.length)for(r=0;r<n.length;r++){if(!(o=n[r].currentSrc||n[r].src||"function"==typeof n[r].getAttribute&&n[r].getAttribute("xlink:href"))&&"function"==typeof BOOMR.window.getComputedStyle){var u=BOOMR.window.getComputedStyle(n[r])&&BOOMR.window.getComputedStyle(n[r]).getPropertyValue("background");if(u){var c=u.match(/url\(["']?([^"']*)["']?\)/);c&&0<c.length&&(o=c[1])}}if(o&&(a=w.getEntriesByName(o))&&a.length)for(i=0;i<a.length;i++)s=Math.max(s,a[i].responseEnd)}return s?Math.floor(s+T):0}(_.ttiWaitForHeroImages))&&(e=Math.max(e,i));return e}function O(e,t){return function f(e,t,n,r,i){var o,a,s,u,c,d="",l=0;if(!n||!BOOMR.utils.Compression)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++){l="number"!=typeof n[o]||isNaN(n[o])?0:n[o];e===b?s=l<=63?B.charAt(l):v+l.toString(36)+v:e===M?s=l.toString(36):e===E&&(s=l<99?l<=9?"0"+Math.max(l,0):l:"__");if(o+3<=i&&(n[o+1]===l||0===l&&n[o+1]===undefined)&&(n[o+2]===l||0===l&&n[o+2]===undefined)&&(n[o+3]===l||0===l&&n[o+3]===undefined)){a=1;for(;o<i&&(n[o+1]===l||0===l&&n[o+1]===undefined);){a++;o++}u="*"+a.toString(36)+"*"+s}else u=s;if(0!==l||o!==i){e===M&&c&&(d+=",");c=!0;d+=u}}return c?e.toString()+d:""}(r[e].compressMode,r[e].backfillLast,d[e],0!==t?Math.floor((t-c)/y):0,l())}S.timeToInteractive=function(){if(s)return s-T};S.timeToVisuallyReady=function(){if(u)return u-T};S.timeToHeroImagesReady=function(){if(_.ttiWaitForHeroImages&&i)return i-T};S.timeToFrameworkReady=function(){if(_.ttiWaitForFrameworkReady&&_.frameworkReady)return _.frameworkReady-T};S.log=function(){return a};return{register:function o(e,t,n){d[e]||(d[e]=[]);r[e]={compressMode:t||b,backfillLast:n}},set:function p(e,t,n){void 0===n&&(n=l());d[e]&&(d[e][n]=t)},log:function m(e,t,n){void 0===t&&(t=l());a.push({type:e,time:t,val:n});a.length>_.logMaxEntries&&Array.prototype.splice.call(a,0,a.length-_.logMaxEntries)},increment:function g(e,t,n){void 0===n&&(n=l());void 0===t&&(t=1);if(d[e]){d[e][n]||(d[e][n]=0);d[e][n]+=t}},getTimeBucket:l,getStats:function h(e,t){var n,r=0,i=0,o=Infinity,a=0,s=Math.floor((t-c)/y);if(!d[e])return 0;for(var u in d[e])if(s<=(u=parseInt(u,10))&&d[e].hasOwnProperty(u)){r++;i+=n=d[e][u];o=Math.min(o,n);a=Math.max(a,n)}return{total:i,count:r,min:o,max:a}},analyze:function R(e){var t=l(),n=0,r=0;_.sendLog&&void 0!==e&&function i(){for(var e="",t=0;t<a.length;t++){var n=a[t];0!==t&&(e+="|");e+=n.type;e+=Math.round(n.time-T).toString(36);for(var r in n.val)if(n.val.hasOwnProperty(r)){e+=","+r;"number"==typeof n.val[r]?e+=n.val[r].toString(36):e+=n.val[r]}}""!==e&&_.addToBeacon("c.l",e)}();_.sendTimeline&&void 0!==e&&function o(e){var t,n;for(t in d)d.hasOwnProperty(t)&&""!==(n=O(t,e))&&_.addToBeacon("c.t."+t,n)}(e);if(!s&&(u||(u=f()))){_.addToBeacon("c.tti.vr",S.timeToVisuallyReady());_.addToBeacon("c.tti.fr",S.timeToFrameworkReady());_.addToBeacon("c.tti.hi",S.timeToHeroImagesReady());if(d.longtask||d.fps||d.busy){for(n=Math.floor((u-c)/y);n<=t;n++)if(d.longtask&&d.longtask[n])r=0;else if(d.fps&&(!d.fps[n]||d.fps[n]<2))r=0;else if(d.busy&&50<d.busy[n])r=0;else if(d.interdly&&d.interdly[n])r=0;else if(5<=++r){s=c+(n-5)*y;s=Math.max(s,u);break}0<s&&_.addToBeacon("c.tti",S.timeToInteractive())}}},stop:function e(){d={};a=[]},onBeacon:function t(){for(var e in d)d.hasOwnProperty(e)&&(d[e]=[]);a=[]}}},n=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},O={unknown:0,script:1,layout:2},p={unknown:0,iframe:1,embed:2,object:3},t=new e.PerformanceObserver(function a(e){var t,n;if(!i)return;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;S.longTasksTime=function(){return o};S.longTasksCount=function(){return m.length};return{getTasks:function u(){return m},clearTasks:n,analyze:function g(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]?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?o.containerName:undefined,c=o.containerId?o.containerId:undefined;u===c&&(u=undefined);var d=c===undefined?o.containerSrc:undefined;s.push({a:O[o.name]?O[o.name]:0,t:p[o.containerType]?p[o.containerType]:0,n:u,i:c,s:d})}0<s.length&&(i.a=s);a.push(i)}_.addToBeacon("c.lt.n",S.longTasksCount(),!0);_.addToBeacon("c.lt.tt",S.longTasksTime());_.addToBeacon("c.lt",function l(e){var t=window.UserTimingCompression||BOOMR.window.UserTimingCompression;return t?t.jsUrl(e):window.JSON?JSON.stringify(e):""}(a))}},stop:function c(){i=!1;t.disconnect();n()},onBeacon:function d(){n()}}}function n(){m=[];o=0}},r=function(e,r){r.register("busy",E);var i=Math.floor(3.125),o=BOOMR.now(),a=0,s=0,u=0,c=0,t=!1,n=!1;S.pageBusy=function(){return 0===u?0:Math.ceil(c/u*100)};t=setInterval(function d(){var e=BOOMR.now(),t=e-o;o=e;if(68<t){var n=Math.floor((t-32)/32);a+=n;s+=n;t-=32*n}a++;36<t&&s++},32);n=setInterval(function l(){var e=r.getTimeBucket(),t=e,n=0;if(0!==a){for(;i+1<a&&n<=100;){r.set("busy",100,--t);a-=i;s=Math.max(s-i,0);u+=i;c+=i;n++}u+=a;c+=s;r.set("busy",Math.ceil(s/a*100),e);s=a=0}},100);return{analyze:function f(e){_.addToBeacon("c.b",S.pageBusy())},stop:function O(){!1;if(t){clearInterval(t);t=!1}if(n){clearInterval(n);n=!1}},onBeacon:function p(){c=u=0}}},i=function(t,n){n.register("fps",b);var r,i,o=50,a=0,s=0,u=!0;if(BOOMR.fpsLog&&BOOMR.fpsLog.length){i=r=BOOMR.fpsLog[0]+T;for(var e=0;e<BOOMR.fpsLog.length;e++){var c=T+BOOMR.fpsLog[e];n.increment("fps",1,Math.floor((c-r)/y));o<=c-i&&s++;i=c}a=BOOMR.fpsLog.length;delete BOOMR.fpsLog}else r=BOOMR.now();t.requestAnimationFrame(function d(e){if(u){o<=e-i&&s++;i=e;a++;n.increment("fps");t.requestAnimationFrame(d)}});S.fps=function(){var e=S.fpsDuration();if(e)return Math.floor(a/(e/1e3))};S.fpsDuration=function(){if(r)return BOOMR.now()-r};S.fpsMinimum=function(){if(S.fpsDuration()){var e=n.getStats("fps",r).min;return e!==Infinity?e:undefined}};S.fpsLongFrames=function(){return s};S.fpsStart=function(){return r?r.toString(36):0};return{analyze:function l(e){_.addToBeacon("c.f",S.fps());_.addToBeacon("c.f.d",S.fpsDuration());_.addToBeacon("c.f.m",S.fpsMinimum());_.addToBeacon("c.f.l",S.fpsLongFrames());_.addToBeacon("c.f.s",S.fpsStart())},stop:function f(){u=!1;r=0},onBeacon:function O(){u&&(r=BOOMR.now());s=a=0}}},o=function(e,i,o){if(e&&e.document&&e.document.body&&e.document.documentElement){var a=2e3,s=20,u=0,c=0,d=0,l=0,f=0,O=0,p=0,m=0,t=!1,n=e.document.body,r=e.document.documentElement;i.register("scroll",b);i.register("scrollpct",E);var g=Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)-BOOMR.utils.windowHeight();S.scrollPct=function(){return l};S.scrollCount=function(){return f};S.scrollDistinct=function(){return p};S.scrollPixels=function(){return O};BOOMR.utils.addListener(e,"scroll",h,!0);t=setInterval(function R(){var e=Math.min(d,100);0!==e&&i.set("scrollpct",e);d=0},y);return{analyze:function M(e){_.addToBeacon("c.s",S.scrollCount());_.addToBeacon("c.s.p",S.scrollPct());_.addToBeacon("c.s.y",S.scrollPixels());_.addToBeacon("c.s.d",S.scrollDistinct())},stop:function B(){if(t){clearInterval(t);t=!1}BOOMR.utils.removeListener(e,"scroll",h)},onBeacon:function v(){p=O=f=l=0}}}function h(e){var t=BOOMR.now();f++;a<t-m&&p++;m=t;var n=BOOMR.utils.scroll().y,r=Math.abs(u-n);O+=r;i.increment("scroll",r);if(0===c||Math.abs(c-n)>s){i.log(0,t,{y:n});c=n}o.interact("scroll",t,e);d+=Math.round(r/g*100);l+=Math.round(r/g*100);u=n}},a=function(e,o,a){o.register("click",b);var s=10,u=3,c=0,d=0,l=0,f=0,O=0,p=null;function t(e){var t=BOOMR.now(),n=e.clientX,r=e.clientY;c++;var i=Math.round(Math.sqrt(Math.pow(O-r,2)+Math.pow(f-n,2)));if(p===e.target||i<=s){if(u<=++d+1){l++;BOOMR.fireEvent("rage_click",e)}}else d=0;f=n;O=r;p=e.target;o.increment("click");o.log(1,t,{x:n,y:r});a.interact("click",t,e)}S.clicksCount=function(){return c};S.clicksRage=function(){return l};BOOMR.utils.addListener(e.document,"click",t,!0);return{analyze:function n(e){_.addToBeacon("c.c",S.clicksCount());_.addToBeacon("c.c.r",S.clicksRage())},stop:function r(){BOOMR.utils.removeListener(e.document,"click",t)},onBeacon:function i(){l=d=c=0}}},s=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);r.interact("key",t,e)}S.keyCount=function(){return i};S.keyEscapes=function(){return o};BOOMR.utils.addListener(e.document,"keydown",t,!0);return{analyze:function a(e){_.addToBeacon("c.k",S.keyCount());_.addToBeacon("c.k.e",S.keyEscapes())},stop:function s(){BOOMR.utils.removeListener(e.document,"keydown",t)},onBeacon:function u(){o=i=0}}},u=function(e,o,t){o.register("mouse",b);o.register("mousepct",E);var a=0,s=0,n=0,r=0,u=0,c=0,d=0,i=!1,l=!1,f=Math.round(Math.sqrt(Math.pow(BOOMR.utils.windowHeight(),2)+Math.pow(BOOMR.utils.windowWidth(),2)));function O(e){var t=e.clientX,n=e.clientY,r=Math.round(Math.sqrt(Math.pow(s-n,2)+Math.pow(a-t,2))),i=Math.round(r/f*100);u+=i;c+=i;d+=r;a=t;s=n;o.increment("mouse",r)}S.mousePct=function(){return c};S.mousePixels=function(){return d};i=setInterval(function p(){var e=Math.min(u,100);0!==e&&o.set("mousepct",e);u=0},y);l=setInterval(function m(){if((n!==a||r!==s)&&10<=Math.round(Math.sqrt(Math.pow(r-s,2)+Math.pow(n-a,2)))){o.log(2,BOOMR.now(),{x:a,y:s});n=a;r=s}},250);BOOMR.utils.addListener(e.document,"mousemove",O,!0);return{analyze:function g(e){_.addToBeacon("c.m.p",S.mousePct());_.addToBeacon("c.m.n",S.mousePixels())},stop:function h(){if(i){clearInterval(i);i=!1}if(l){clearInterval(l);l=!1}BOOMR.utils.removeListener(e.document,"mousemove",O)},onBeacon:function R(){d=c=0}}},c=function(i,o,e){o.register("inter",b);o.register("interdly",b);var a=e,s=0,u=null,c=0,d=0,l=0,f=0,O=!0,p=0,m=0,g=!1,h=!1,R=!1;function t(){if(g){clearTimeout(g);g=!1}if(h){clearTimeout(h);h=!1}}function M(){BOOMR.sendBeaconWhenReady({"rt.start":"manual","http.initiator":"interaction","rt.tstart":p,"rt.end":m},function(){t();BOOMR.fireEvent("interaction")},_)}S.interactionDelayed=function(){return l};S.interactionDelayedTime=function(){return Math.ceil(f)};S.interactionAvgDelay=function(){if(0<c)return Math.ceil(d/c)};S.timeToFirstInteraction=function(){if(s)return s-T};S.firstInputDelay=function(){if(null!==u)return u};BOOMR.subscribe("spa_init",function n(){R=!0;t()},null,_);return{interact:function B(e,t,n){var r=0;t=t||BOOMR.now();if(O){c++;s||(s=t);if(n&&n.timeStamp&&(!_.isSafari||i===window)){r=14e11<n.timeStamp?t-n.timeStamp:t-T-n.timeStamp;d+=r;null===u&&(u=Math.ceil(r));if(50<r){o.increment("interdly");l++;f+=r}}o.increment("inter");if(!R&&_.afterOnloadMonitoring){m=BOOMR.now();if(!p){p=m;h=setTimeout(M,3e4)}if(g){clearTimeout(g);g=!1}g=setTimeout(M,a)}}},analyze:function r(e){_.addToBeacon("c.ttfi",S.timeToFirstInteraction());_.addToBeacon("c.i.dc",S.interactionDelayed());_.addToBeacon("c.i.dt",S.interactionDelayedTime());_.addToBeacon("c.i.a",S.interactionAvgDelay());null!==u&&_.addToBeacon("c.fid",S.firstInputDelay(),!0)},stop:function v(){O=!1},onBeacon:function y(){m=p=d=c=l=f=0;R=!1;t()}}},d=function(e,n,r){n.register("vis",b);var i={visible:0,hidden:1,prerender:2,unloaded:3},o=!0;BOOMR.subscribe("visibility_changed",function(e){var t=BOOMR.now();if(o){n.increment("vis");n.log(4,t,{s:i[BOOMR.visibilityState()]});r.interact("vis",t,e)}});return{stop:function t(){o=!1}}},l=function(e,i,o){i.register("orn",b);var a=!0;function t(e){var t=BOOMR.now(),n=window.orientation;if(a){i.increment("orn");var r=window.screen&&(screen.orientation||screen.msOrientation||screen.mozOrientation||{});r&&"number"==typeof r.angle&&(n=screen.orientation.angle);"number"==typeof n&&i.log(5,t,{a:n});o.interact("orn",t,e)}}BOOMR.utils.addListener(e,"orientationchange",t,!0);return{stop:function n(){a=!1;BOOMR.utils.removeListener(e,"orientationchange",t)}}},f=function(e,n){n.register("mem",M,!0);n.register("bat",E,!0);n.register("domsz",M,!0);n.register("domln",M,!0);n.register("mut",b);var t,r=e.document,i=!0,o=!1,a=null,s=0,u=0,c=r.getElementsByTagName("*");function d(){i&&a&&n.set("bat",a.level)}o=setInterval(function l(){var e=w&&w.memory&&w.memory.usedJSHeapSize;e&&n.set("mem",e);u=c.length;n.set("domsz",r.documentElement.innerHTML.length);n.set("domln",u);if(0<s){var t=Math.min(Math.round(s/u*100),100);n.set("mut",t);s=0}},1e3);e.navigator&&"function"==typeof e.navigator.getBattery&&e.navigator.getBattery().then(function(e){(a=e).onlevelchange&&(a.onlevelchange=d)});BOOMR.utils.isMutationObserverSupported()&&(t=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 O(){i=!1;if(o){clearInterval(o);o=!1}if(t&&t.observer){t.observer.disconnect();t=null}a&&a.onlevelchange&&(a.onlevelchange=null);c=null}}};_={monitorLongTasks:!0,monitorPageBusy:!0,monitorFrameRate:!0,monitorInteractions:!0,monitorStats:!1,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,statsMonitor:null,monitors:["timeline","longTaskMonitor","pageBusyMonitor","frameRateMonitor","scrollMonitor","keyMonitor","clickMonitor","mouseMonitor","interactionMonitor","visibilityMonitor","orientationMonitor","statsMonitor"],timeOfLastBeacon:0,hasAddedDataToBeacon:!1,isSafari:window&&window.navigator&&window.navigator.vendor&&-1!==window.navigator.vendor.indexOf("Apple"),onBeforeBeacon:function(){_.runAllAnalyzers()},runAllAnalyzers:function(){var e,t;if(!_.hasAddedDataToBeacon){for(e=0;e<_.monitors.length;e++)(t=_[_.monitors[e]])&&"function"==typeof t.analyze&&t.analyze(_.timeOfLastBeacon);_.addToBeacon("c.lb",_.timeOfLastBeacon?_.timeOfLastBeacon.toString(36):0);_.timeOfLastBeacon=BOOMR.now();_.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<_.monitors.length;t++){var n=_[_.monitors[t]];if(n){_.afterOnload||"function"==typeof n.stop&&n.stop();"function"==typeof n.onBeacon&&n.onBeacon()}}_.hasAddedDataToBeacon=!1}},onXhrLoad:function(e){e&&BOOMR.utils.inArray(e.initiator,BOOMR.constants.BEACON_TYPE_SPAS)&&(_.isSpa=!0);e&&"spa_hard"===e.initiator&&_.onPageReady()},onPageReady:function(){_.firedPageReady=!0;if(_.afterOnload&&_.monitorInteractions){_.afterOnloadMonitoring=!0;_.isSpa||"number"!=typeof _.afterOnloadMaxLength||setTimeout(function(){_.afterOnloadMonitoring=!1},_.afterOnloadMaxLength)}if(_.waitAfterOnload){var e=BOOMR.now();setTimeout(function t(){if(BOOMR.now()-e>_.waitAfterOnload){_.complete=!0;BOOMR.sendBeacon()}else{_.timeline.analyze();if(S.timeToInteractive()){_.complete=!0;BOOMR.sendBeacon()}else setTimeout(t,500)}},500)}else _.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(_,e,"Continuity",["monitorLongTasks","monitorPageBusy","monitorFrameRate","monitorInteractions","monitorStats","afterOnload","afterOnloadMaxLength","afterOnloadMinWait","waitAfterOnload","ttiWaitForFrameworkReady","ttiWaitForHeroImages","sendLog","logMaxEntries","sendTimeline"]);if(_.initialized)return this;_.initialized=!0;_.timeline=new t(BOOMR.now());if(BOOMR.window){if(_.monitorLongTasks&&BOOMR.window.PerformanceObserver&&BOOMR.window.PerformanceLongTaskTiming){_.longTaskMonitor=new n(BOOMR.window,_.timeline);_.ttiMethod="lt"}if(_.monitorFrameRate&&"function"==typeof BOOMR.window.requestAnimationFrame){_.frameRateMonitor=new i(BOOMR.window,_.timeline);_.ttiMethod||(_.ttiMethod="raf")}if(_.monitorPageBusy&&(!BOOMR.window.PerformanceObserver||!BOOMR.window.PerformanceLongTaskTiming||!_.monitorLongTasks)){_.pageBusyMonitor=new r(BOOMR.window,_.timeline);_.ttiMethod||(_.ttiMethod="b")}if(_.monitorInteractions){_.interactionMonitor=new c(BOOMR.window,_.timeline,_.afterOnloadMinWait);_.scrollMonitor=new o(BOOMR.window,_.timeline,_.interactionMonitor);_.keyMonitor=new s(BOOMR.window,_.timeline,_.interactionMonitor);_.clickMonitor=new a(BOOMR.window,_.timeline,_.interactionMonitor);_.mouseMonitor=new u(BOOMR.window,_.timeline,_.interactionMonitor);_.visibilityMonitor=new d(BOOMR.window,_.timeline,_.interactionMonitor);_.orientationMonitor=new l(BOOMR.window,_.timeline,_.interactionMonitor)}_.monitorStats&&(_.statsMonitor=new f(BOOMR.window,_.timeline,_.interactionMonitor))}BOOMR.addVar("c.e",T.toString(36));BOOMR.addVar("c.tti.m",_.ttiMethod);BOOMR.subscribe("before_beacon",_.onBeforeBeacon,null,_);BOOMR.subscribe("beacon",_.onBeacon,null,_);BOOMR.subscribe("page_ready",_.onPageReady,null,_);BOOMR.subscribe("xhr_load",_.onXhrLoad,null,_);return this},is_complete:function(e){return _.complete||e&&("error"===e["http.initiator"]||"undefined"!=typeof e.early)},frameworkReady:function(){_.frameworkReady=BOOMR.now()},metrics:S}}}();!function(){var r;if(!BOOMR.plugins.IFrameDelay){r=BOOMR.window;var i={initialized:!1,registerParent:!1,monitoredCount:0,finishedCount:0,runningCount:0,runningFrames:{},loadingIntervalID:undefined,loadedIntervalID:undefined,loadEnd:0,messages:{start:"boomrIframeLoading",done:"boomrIframeLoaded",startACK:"boomrIframeLoadingACK",doneACK:"boomrIframeLoadedACK"},onIFrameMessageAsParent:function(e){var t;if(e&&e.data&&"string"==typeof e.data&&"{"===e.data.charAt(0)&&e.source){try{t=JSON.parse(e.data)}catch(n){return}if(t.msg===i.messages.start){if(i.runningFrames[t.pid])return;e.source.postMessage(JSON.stringify({msg:i.messages.startACK}),e.origin);i.runningCount+=1;i.runningFrames[t.pid]=1}else if(t.msg===i.messages.done){e.source.postMessage(JSON.stringify({msg:i.messages.doneACK}),e.origin);i.runningCount-=1;i.finishedCount+=1;t.loadEnd>i.loadEnd&&(i.loadEnd=t.loadEnd);i.checkCompleteness()}}},onIFrameMessageAsChild:function(e){var t;if(e&&e.data&&"string"==typeof e.data&&"{"===e.data.charAt(0)&&e.source){try{t=JSON.parse(e.data)}catch(n){return}if(t.msg===i.messages.startACK){clearInterval(i.loadingIntervalID);i.loadingIntervalID=undefined}else if(t.msg===i.messages.doneACK){clearInterval(i.loadedIntervalID);i.loadedIntervalID=undefined}}},checkCompleteness:function(){if(i.is_complete()){BOOMR.addVar("ifdl.done",BOOMR.now());BOOMR.addVar("ifdl.ct",i.finishedCount);BOOMR.addVar("ifdl.r",i.runningCount);BOOMR.addVar("ifdl.mon",i.monitoredCount);BOOMR.hasBrowserOnloadFired()?BOOMR.page_ready(0<i.loadEnd?i.loadEnd:undefined):BOOMR.attach_page_ready(function(){BOOMR.page_ready(undefined,!0)})}},is_complete:function(){return!(i.enabled&&!i.registerParent)||i.finishedCount>=i.monitoredCount&&0===i.runningCount}};BOOMR.plugins.IFrameDelay={init:function(e){BOOMR.utils.pluginConfig(i,e,"IFrameDelay",["enabled","registerParent","monitoredCount"]);if(i.initialized)return this;i.initialized=!0;if(this.is_supported())if(i.registerParent){BOOMR.utils.addListener(window,"message",i.onIFrameMessageAsChild);function t(){r.parent.postMessage(JSON.stringify({msg:i.messages.start,pid:BOOMR.pageId}),"*")}t();i.loadingIntervalID=setInterval(t,250);BOOMR.subscribe("page_load_beacon",function(e){var t;t=e&&e["rt.end"]?e["rt.end"]:BOOMR.now();function n(){i.loadingIntervalID||r.parent.postMessage(JSON.stringify({msg:i.messages.done,pid:BOOMR.pageId,loadEnd:t}),"*")}n();i.loadedIntervalID=setInterval(n,250)})}else if(!i.registerParent&&i.monitoredCount&&0<i.monitoredCount)BOOMR.utils.addListener(r,"message",i.onIFrameMessageAsParent);else{i.finishedCount=i.monitoredCount=i.runningCount=0;i.enabled=!1}else i.enabled=!1;return this},is_complete:function(){return i.is_complete()},is_supported:function(){return BOOMR.utils.hasPostMessageSupport()&&window.JSON}}}}();!function(){var d,s,l,p,m,f=["uninitialized","open","responseStart","domInteractive","responseEnd"];if(!BOOMR.plugins.AutoXHR&&(d=BOOMR.window)&&d.XMLHttpRequest&&(new d.XMLHttpRequest).addEventListener){u.stop=function(){u.pause();u.observer=null};u.pause=function(){if(u.observer&&u.observer.observer&&!u.isPaused){u.isPaused=!0;u.observer.observer.disconnect()}};u.resume=function(){if(u.observer&&u.observer.observer&&u.isPaused){u.isPaused=!1;u.observer.observer.observe(s,u.observer.config)}};u.start=function(){if(!u.observer){var e={childList:!0,attributes:!0,subtree:!0,attributeFilter:["src","href"]};if(u.observer=BOOMR.utils.addObserver(s,e,null,l.mutation_cb,null,l)){u.observer.config=e;BOOMR.subscribe("page_unload",u.stop,null,u)}}};u.prototype.addEvent=function(e){var t,n,r,i={type:e.initiator,resource:e,nodes_to_wait:0,total_nodes:0,resources:[],complete:!1,aborted:!1,firedEarlyBeacon:!1},o=this.pending_events.length,a=this;for(t=o-1;0<=t;t--)if(this.pending_events[t]&&!this.pending_events[t].complete){n=this.pending_events[t];r=t;break}if(n)if("click"===n.type){if(0===n.nodes_to_wait||!n.resource.url){this.pending_events[r]=undefined;this.watch--}}else if("xhr"===n.type){if("click"===i.type)return null;if("xhr"===i.type){l.add_event_resource(e);return null}}else if(BOOMR.utils.inArray(n.type,BOOMR.constants.BEACON_TYPE_SPAS)){if("xhr"===i.type){l.add_event_resource(e);return null}if(BOOMR.utils.inArray(i.type,BOOMR.constants.BEACON_TYPE_SPAS)){n.resource.timing.loadEventEnd=BOOMR.now();n.aborted=!0;this.sendEvent(r)}}if("click"===i.type){if(!u.observer)return null;this.setTimeout(m.xhrIdleTimeout,o)}else if("xhr"===i.type){i.nodes_to_wait++;i.total_nodes++;i.ignoreMO=!0}else if(BOOMR.utils.inArray(i.type,BOOMR.constants.BEACON_TYPE_SPAS)){u.start();if(e.wait){i.nodes_to_wait++;i.total_nodes++;e.waitComplete=function(){a.load_finished(o);e.waitComplete=undefined}}else this.setTimeout(m.spaIdleTimeout,o)}this.watch++;this.pending_events.push(i);return e.index=o};u.prototype.sendEvent=function(e){var t=this.pending_events[e],n=this,r=BOOMR.now();if(t&&!t.complete){this.clearTimeout(e);if(BOOMR.readyToSend()){t.complete=!0;this.watch--;t.resource.resources=t.resources;BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS)&&(t.resource.url=s.URL);if("spa"===t.type&&0===t.total_nodes&&t.resource.url===n.lastSpaLocation){BOOMR.fireEvent("spa_cancel");this.pending_events[e]=undefined;return}if(BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS)){n.lastSpaLocation=t.resource.url;if(!t.forced){0===t.total_nodes&&(t.resource.timing.loadEventEnd=r-m.spaIdleTimeout);if("spa_hard"===t.type){var i=BOOMR.getPerformance();i&&i.timing&&i.timing.loadEventEnd&&t.resource.timing.loadEventEnd&&t.resource.timing.loadEventEnd<i.timing.loadEventEnd&&(t.resource.timing.loadEventEnd=i.timing.loadEventEnd)}}}this.sendResource(t.resource,e)}else setTimeout(function(){n.sendEvent(e)},500)}};u.prototype.sendResource=function(r,i){var o=this,e=o.pending_events[i],a=r.timing?r.timing.requestStart:undefined,t=function(e,t){e&&(r.timing.loadEventEnd=t||BOOMR.now());BOOMR.real_sendBeacon();r.onComplete&&r.onComplete(r);if(BOOMR.plugins.ResourceTiming&&BOOMR.plugins.ResourceTiming.is_enabled()&&r.timing&&r.timing.requestStart){var n=BOOMR.plugins.ResourceTiming.getCompressedResourceTiming(r.timing.requestStart,r.timing.loadEventEnd);BOOMR.plugins.ResourceTiming.addToBeacon(n)}if(BOOMR.utils.inArray(r.initiator,BOOMR.constants.BEACON_TYPE_SPAS)){o.calculateSpaTimings(r);if("number"==typeof i&&o.pending_events[i].aborted){BOOMR.addVar("pgu",s.URL,!0);BOOMR.addVar("rt.quit","",!0);BOOMR.addVar("rt.abld","",!0)}}BOOMR.responseEnd(r,a,r);"number"==typeof i&&(o.pending_events[i]=undefined)};"spa_hard"!==r.initiator||e&&e.aborted||BOOMR.hasBrowserOnloadFired()?t(!1):BOOMR.utils.addListener(d,"load",function(){var e=BOOMR.now();BOOMR.setImmediate(function(){t(!0,e)})})};u.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())return;var n=BOOMR.plugins.ResourceTiming.getFilteredResourceTiming(e.timing.requestStart,e.timing.loadEventEnd,m.spaBackEndResources).entries,r=Math.round(e.timing.loadEventEnd-e.timing.requestStart);if(!n||!n.length){e.timers={t_resp:0,t_page:r,t_done:r};return}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)),s=r-a;if(a<0||r<0||s<0){BOOMR.addError("Incorrect SPA time calculation");return}e.timers={t_resp:a,t_page:s,t_done:r}}};u.prototype.setTimeout=function(e,t){var n=this;if(e){this.clearTimeout(t);this.timer=setTimeout(function(){n.timedout(t)},e)}};u.prototype.timedout=function(e){var t;this.clearTimeout(e);if(t=this.pending_events[e]){if(BOOMR.utils.inArray(t.type,BOOMR.constants.BEACON_TYPE_SPAS)&&!BOOMR.hasBrowserOnloadFired()){this.setTimeout(1e3,e);return}if(0===t.nodes_to_wait){if("click"===t.type&&(0===t.total_nodes||!t.resource.url)){this.watch--;this.pending_events[e]=undefined}this.sendEvent(e)}}};u.prototype.clearTimeout=function(e){if(this.timer&&e===this.pending_events.length-1){clearTimeout(this.timer);this.timer=null}};u.prototype.load_cb=function(e,t){var n,r,i=BOOMR.now();if((n=e.target||e.srcElement)&&n._bmr){r=n._bmr.idx;t=void 0!==t?t:n._bmr.res||0;if(!n._bmr.end[t]){n._bmr.end[t]=i;this.load_finished(r,i)}}};u.prototype.monitorMO=function(e){var t=this.pending_events[e];t&&delete t.ignoreMO};u.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(){l.timerEarlyBeacon=null;if(!n.firedEarlyBeacon&&0===n.nodes_to_wait){n.firedEarlyBeacon=!0;BOOMR.plugins.Early.sendEarlyBeacon(n.resource,n.type)}},100)}this.setTimeout(m.spaIdleTimeout,e)}else this.setTimeout(m.xhrIdleTimeout,e);else this.sendEvent(e)}}};u.prototype.wait_for_node=function(t,n){var e,r,i,o,a,s,u,c,d,l=this,f=!1,O=!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]&&(O=!0);a=t.src||"function"==typeof t.getAttribute&&t.getAttribute("xlink:href")||t.href;t._bmr&&t._bmr.url!==a&&(O=!0);if(O&&"function"==typeof t._bmr.listener){l.load_cb({target:t,type:"changed"});t.removeEventListener("load",t._bmr.listener);t.removeEventListener("error",t._bmr.listener);delete t._bmr.listener}if(!a||a.match(/^(about:|javascript:|data:)/i))return!1;if("IMG"===t.nodeName){if(t.naturalWidth&&!O)return!1;if("function"==typeof t.getAttribute&&""===t.getAttribute("src"))return!1}if("IFRAME"===t.nodeName&&O)return!1;if("function"==typeof t.getAttribute){u=parseInt(t.getAttribute("height"),10);c=parseInt(t.getAttribute("width"),10)}isNaN(u)&&(u=!t.style||"0"!==t.style.height&&"0px"!==t.style.height&&"1px"!==t.style.height?undefined:0);isNaN(c)&&(c=!t.style||"0"!==t.style.width&&"0px"!==t.style.width&&"1px"!==t.style.width?undefined:0);if(!isNaN(u)&&u<=1&&!isNaN(c)&&c<=1)return!1;if(t.style&&"none"===t.style.display)return!1;if(t.style&&"hidden"===t.style.visibility)return!1;if(!(e=this.pending_events[n]))return!1;s=e.resources.length;e.urls||(e.urls={});if(e.urls[a])return!1;if(!e.resource.url){p.href=a;if(m.excludeFilter(p))return!1;e.resource.url=p.href}t._bmr||(t._bmr={end:{}});t._bmr.res=s;t._bmr.idx=n;delete t._bmr.end[s];t._bmr.url=a;d=function(e){l.load_cb(e,s);t.removeEventListener("load",d);t.removeEventListener("error",d);delete t._bmr.listener};t._bmr.listener=d;t.addEventListener("load",d);t.addEventListener("error",d);e.nodes_to_wait++;this.clearTimeout(n);e.total_nodes++;e.resources.push(t);e.urls[a]=1;f=!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++)f|=this.wait_for_node(r[i],n)},this);return f};u.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.nodes_to_wait++;t.total_nodes++;e.index=n;e.node=!0;return n};u.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};u.prototype.queue_is_empty=function(){return 0===this.nodesWaitingFor()};u.prototype.nodesWaitingFor=function(e){var t;if(0===this.pending_events.length)return 0;void 0===e&&(e=this.pending_events.length-1);return(t=this.pending_events[e])?t.nodes_to_wait:0};u.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)}}};l=new u;m={spaBackEndResources:["xmlhttprequest","script","fetch"],alwaysSendXhr:!1,excludeFilters:[],initialized:!1,captureXhrRequestResponse:!1,singlePageApp:!1,autoXhrEnabled:!1,monitorFetch:!1,fetchBodyUsedWait:200,spaIdleTimeout:1e3,xhrIdleTimeout:50,excludeFilter:function(e){var t,n;if(!e||!e.href)return!1;for(t=0;t<m.excludeFilters.length;t++)if("function"==typeof m.excludeFilters[t].cb){n=m.excludeFilters[t].ctx;m.excludeFilters[t].name;try{if(m.excludeFilters[t].cb.call(n,e))return!0}catch(r){BOOMR.addError(r,"BOOMR.plugins.AutoXHR.impl.excludeFilter()")}}return!1},loadFinished:function(t,e){var n,r,i,o,a;e=e||BOOMR.now();if(!t.timing.loadEventEnd){t.status&&BOOMR.fireEvent("xhr_error",t);t.timing.loadEventEnd=e;if((a=BOOMR.getPerformance())&&a.timing){r=a.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})){i=Math.floor(r+n.startTime);if((o=Math.floor(r+n.responseEnd))<=BOOMR.now()){t.timing.responseEnd=o;t.timing.loadEventEnd<o&&(t.timing.loadEventEnd=o);t.timing.requestStart=i;t.timing.fetchStart=i;0!==n.responseStart&&(t.timing.responseStart=Math.floor(r+n.responseStart));t.restiming=n}}}t.node&&function s(e,t){var n,r;if(!t||!e)return!1;if("boolean"==typeof t)return!0===t;if("function"==typeof t)try{return!0===t(e)}catch(i){return!1}if(BOOMR.utils.isArray(t))for(n=0;n<t.length;n++){if("string"==typeof(r=t[n])&&r===e)return!0;if(r instanceof RegExp&&r.test(e))return!0}return!1}(t.url,m.alwaysSendXhr)&&l.sendResource(t);if(0<=t.index){l.monitorMO(t.index);l.load_finished(t.index,t.timing.responseEnd)}}}};BOOMR.plugins.AutoXHR={is_complete:function(){return!0},init:function(e){var t,n;s=d.document;if(d&&s){p=s.createElement("A");BOOMR.utils.pluginConfig(m,e,"AutoXHR",["spaBackEndResources","alwaysSendXhr","monitorFetch","fetchBodyUsedWait","spaIdleTimeout","xhrIdleTimeout"]);BOOMR.instrumentXHR=O;BOOMR.uninstrumentXHR=g;BOOMR.instrumentFetch=a;BOOMR.uninstrumentFetch=c;if(!m.initialized){this.addExcludeFilter(o,null,"shouldExcludeXhr");m.initialized=!0}if(e&&e.AutoXHR&&e.AutoXHR.excludeFilters&&0<e.AutoXHR.excludeFilters.length)for(n=0;n<e.AutoXHR.excludeFilters.length;n++)m.excludeFilters.push(e.AutoXHR.excludeFilters[n]);m.autoXhrEnabled=e.instrument_xhr;m.singlePageApp=BOOMR.plugins.SPA&&BOOMR.plugins.SPA.isSinglePageApp(e);if(m.alwaysSendXhr&&m.autoXhrEnabled&&BOOMR.xhr&&"function"==typeof BOOMR.xhr.stop){function r(e){if(e.length)for(t=0;t<e.length;t++)h(e[t]);else h(e)}var i=BOOMR.xhr.stop(r);i&&i.length&&BOOMR.setImmediate(r,i)}if(m.singlePageApp){m.alwaysSendXhr||(m.autoXhrEnabled=!1);if(m.autoXhrEnabled){BOOMR.instrumentXHR();BOOMR.instrumentFetch()}}else if(m.autoXhrEnabled){BOOMR.instrumentXHR();BOOMR.instrumentFetch()}else if(!1===m.autoXhrEnabled){BOOMR.uninstrumentXHR();BOOMR.uninstrumentFetch()}BOOMR.registerEvent("xhr_error")}},getMutationHandler:function(){return l},getPathname:n,enableAutoXhr:function(){if(!m.autoXhrEnabled){BOOMR.instrumentXHR();BOOMR.instrumentFetch()}m.autoXhrEnabled=!0},addExcludeFilter:function(e,t,n){m.excludeFilters.push({cb:e,ctx:t,name:n})},setXhrRequestResponseCapturing:function(e){m.captureXhrRequestResponse=e}}}function n(e){if(!e)return null;e.href=e.href;var t=e.pathname;"/"!==t.charAt(0)&&(t="/"+t);return t}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 u(){this.watch=0;this.timer=null;this.timerEarlyBeacon=null;this.pending_events=[];this.lastSpaLocation=null}function a(){if(m.monitorFetch&&"function"==typeof d.fetch&&"function"==typeof d.Request&&"function"==typeof d.Response&&"function"==typeof d.Promise&&"function"==typeof window.fetch&&!d.fetch.polyfill&&(!BOOMR.proxy_fetch||BOOMR.proxy_fetch!==d.fetch))if(BOOMR.proxy_fetch&&BOOMR.orig_fetch&&BOOMR.orig_fetch===d.fetch)d.fetch=BOOMR.proxy_fetch;else{BOOMR.orig_fetch=d.orig_fetch||d.fetch;BOOMR.proxy_fetch=function(e,t){var n,r,i,o={timing:{},initiator:"xhr"};if("object"==typeof e&&e instanceof d.Request){n=e.url;r=t&&t.method||e.method||"GET";m.captureXhrRequestResponse&&(i=t&&t.body||e.body||undefined)}else{n=e;r=t&&t.method||"GET";m.captureXhrRequestResponse&&(i=t&&t.body||undefined)}p.href=n;if(m.excludeFilter(p))return BOOMR.orig_fetch.apply(d,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});l.addEvent(o);try{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&&m.fetchBodyUsedWait){e=BOOMR.now();o.responseBodyNotUsed=!0;setTimeout(function(){m.loadFinished(o,e)},m.fetchBodyUsedWait)}else m.loadFinished(o)}return function(){var e,t=r._bmrNextP;try{e=i.apply(this===window?d:this,arguments);for(;t&&!t._bmrHasOnFulfilled;)t=t._bmrNextP;t||(e instanceof d.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(n,r,i){return n._bmrNextP?r:function(){var e=Array.prototype.slice.call(arguments);if(0<e.length){if("function"==typeof e[0]){e[0]=s(n,e[0],i);n._bmrHasOnFulfilled=!0}if(1<e.length&&"function"==typeof e[1]){e[1]=s(n,e[1],i);n._bmrHasOnRejected=!0}}var t=r.apply(n,e);(n._bmrNextP=t).then=u(t,t.then,i);return t}}a.then=u(a,a.then,o);return a.then(function(e){var t,n=!1,r=!1;(e.status<200||400<=e.status)&&(o.status=e.status);o.fetchResponse=e;0<=o.index&&l.monitorMO(o.index);if(m.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 d.DOMParser&&(o.response.xml=(new d.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(c){o.status=-997;m.loadFinished(o);throw c}};BOOMR.utils.overwriteNative(d,"fetch",BOOMR.proxy_fetch)}}function c(){"function"==typeof d.fetch&&BOOMR.orig_fetch&&BOOMR.orig_fetch!==d.fetch&&(d.fetch=BOOMR.orig_fetch)}function O(){if(!BOOMR.proxy_XMLHttpRequest||BOOMR.proxy_XMLHttpRequest!==d.XMLHttpRequest)if(BOOMR.proxy_XMLHttpRequest&&BOOMR.orig_XMLHttpRequest&&BOOMR.orig_XMLHttpRequest===d.XMLHttpRequest){d.XMLHttpRequest=BOOMR.proxy_XMLHttpRequest;u.start()}else{BOOMR.orig_XMLHttpRequest=d.orig_XMLHttpRequest||d.XMLHttpRequest;u.start();!function e(){BOOMR.subscribe("click",function(){if(!m.singlePageApp){var e={timing:{},initiator:"click"};if(BOOMR.orig_XMLHttpRequest&&BOOMR.orig_XMLHttpRequest!==d.XMLHttpRequest){e.timing.requestStart=BOOMR.now();l.addEvent(e)}}})}();BOOMR.proxy_XMLHttpRequest=function(){var o,a,t,s={timing:{},initiator:"xhr"},u=!1,c=!1;o=new BOOMR.orig_XMLHttpRequest;a=o.open;t=o.send;o.open=function(e,t,n){p.href=t;if(m.excludeFilter(p)){c=!0;return a.apply(o,arguments)}c=!1;void 0===n&&(n=!0);BOOMR.fireEvent("xhr_init","xhr");function r(t,n){o.addEventListener(t,function(){if("readystatechange"===t){s.timing[f[o.readyState]]=BOOMR.now();if(4===o.readyState&&0!==o.status){(o.status<200||400<=o.status)&&(s.status=o.status);if(m.captureXhrRequestResponse){s.response={text:""===o.responseType||"text"===o.responseType?o.responseText:null,xml:""===o.responseType||"document"===o.responseType?o.responseXML:null,raw:o.response,json:o.responseJSON};if(o.response&&o.response.constructor&&o.response.constructor===BOOMR.boomerang_frame.Object&&BOOMR.boomerang_frame.Object!==d.Object)try{o.response.constructor=d.Object}catch(e){}}m.loadFinished(s)}else if(0===o.readyState&&"number"==typeof s.timing.open){s.status=-999;m.loadFinished(s)}}else{"load"===t?0!==o.status&&(o.status<200||400<=o.status)&&(s.status=o.status):s.status=void 0===n?o.status:n;m.loadFinished(s)}},!1)}if(!u){n&&r("readystatechange");r("load");r("timeout",-1001);r("error",-998);r("abort",-999)}s.url=p.href;s.method=e;s.type="xhr";delete s.status;n||(s.synchronous=!0);u=!0;try{return a.apply(o,arguments)}catch(i){s.status=-997;m.loadFinished(s);throw i}};o.send=function(e){if(c)return t.apply(o,arguments);m.captureXhrRequestResponse&&(o.resource.requestPayload=e);BOOMR.fireEvent("xhr_send",o);l.addEvent(s);s.timing.requestStart=BOOMR.now();return"undefined"==typeof s.status||-997!==s.status?t.apply(o,arguments):void 0};o.resource=s;return o};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(d,"XMLHttpRequest",BOOMR.proxy_XMLHttpRequest)}}function g(){BOOMR.orig_XMLHttpRequest&&BOOMR.orig_XMLHttpRequest!==d.XMLHttpRequest&&(d.XMLHttpRequest=BOOMR.orig_XMLHttpRequest)}function h(e){e.initiator="xhr";BOOMR.responseEnd(e)}}();!function(){var c,n=!1,t=!1,d=!1,l=!1,f=!1,O=!0,p=!1,m=!1,g=!1,r=[],o=!1;if(!BOOMR.plugins.SPA&&BOOMR.plugins.AutoXHR){var a={spaHardMissedOnComplete:function(e){var t,n=BOOMR.plugins.RT&&BOOMR.plugins.RT.navigationStart();o=!1;BOOMR.addVar("spa.missed","1",!0);BOOMR.plugins.RT&&BOOMR.plugins.RT.clearTimer("t_done");e.timing.requestStart=n;0===e.resources.length&&(t=BOOMR.getPerformance())&&t.timing&&t.timing.navigationStart&&t.timing.loadEventEnd&&(e.timing.loadEventEnd=t.timing.loadEventEnd)},pageReady:function(){l=!0}};BOOMR.plugins.SPA={is_complete:function(){return!o},init:function(e){if(e&&e.instrument_xhr){f=e.instrument_xhr;d&&f&&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(!d){l=!0;f&&BOOMR.plugins.AutoXHR.enableAutoXhr();o=!0;g?o=!1:BOOMR.plugins.SPA.route_change(a.spaHardMissedOnComplete)}},hook:function(e,t){"function"==typeof(t=t||{}).routeFilter&&(p=t.routeFilter);"function"==typeof t.routeChangeWaitFilter&&(m=t.routeChangeWaitFilter);t.disableHardNav&&(g=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=O&&!g?"spa_hard":"spa";if(!c||!c.wait){if("spa"===r&&p)try{if(!p.apply(null,e))return}catch(u){BOOMR.addError(u,"SPA.route_change.routeFilter")}d=!0;var i=BOOMR.plugins.RT&&BOOMR.plugins.RT.navigationStart(),o=l?BOOMR.now():i,a=BOOMR.window.document.URL;BOOMR.fireEvent("spa_init",[BOOMR.plugins.SPA.current_spa_nav(),a]);var s={timing:{requestStart:o},initiator:r,url:a};O=!1;if(!l||"function"==typeof t){l=!0;s.onComplete=function(e){if(!n){n=!0;BOOMR.fireEvent("spa_navigation")}"function"==typeof t&&t(e)}}if("spa"===r&&m)try{if(m.apply(null,arguments)){s.wait=!0;c=s}}catch(u){BOOMR.addError(u,"SPA.route_change.routeChangeWaitFilter")}s.index=BOOMR.plugins.AutoXHR.getMutationHandler().addEvent(s);f&&BOOMR.plugins.AutoXHR.enableAutoXhr()}},last_location:function(e){lastLocationChange=e},current_spa_nav:function(){return l?"spa":"spa_hard"},wait_complete:function(){if(c){c.wait=!1;c.waitComplete&&c.waitComplete();c=null}},markNavigationComplete:function(){var e,t,n=BOOMR.plugins.AutoXHR.getMutationHandler();c&&c.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,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())return;if(!u.routeChangeInProgress){if(e.toUrl){u.a.href=e.toUrl;e.toUrl=u.a.href}BOOMR.plugins.SPA.route_change(null,e)}}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.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){var t=(e||{}).newURL;u.routeChange({type:"hashchange",toUrl:t})});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();return!0}();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","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,o;if(!this.cookie)return!1;i=BOOMR.utils.getSubCookies(BOOMR.utils.getCookie(this.cookie))||{};for(o in i)i.hasOwnProperty(o)&&(isNaN(parseInt(o,10))||delete i[o]);if("object"==typeof e)for(o in e)e.hasOwnProperty(o)&&(e[o]===undefined?i.hasOwnProperty(o)&&delete i[o]:i[o]=e[o]);i.z=1;i.dm=BOOMR.session.domain;i.si=BOOMR.session.ID;i.ss=BOOMR.session.start.toString(36);i.sl=BOOMR.session.length.toString(36);1800!==a.session_exp&&(i.se=a.session_exp.toString(36));BOOMR.session.rate_limited&&(i.rl=1);i.tt=this.loadTime.toString(36);0<this.oboError?i.obo=this.oboError.toString(36):delete i.obo;r=BOOMR.now();if(t){i[t]=(r-BOOMR.session.start).toString(36);a.lastActionTime=r}this.beacon_url&&(i.bcn=this.beacon_url);if(!BOOMR.utils.setCookie(this.cookie,i,this.cookie_exp)){BOOMR.error("cannot set start cookie","rt");return!1}if(50<(n=BOOMR.now())-r){BOOMR.utils.removeCookie(this.cookie);BOOMR.error("took more than 50ms to set cookie... aborting: "+r+" -> "+n,"rt")}return!0},refreshSession:function(e){e||(e=BOOMR.plugins.RT.getCookie());if(e){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;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){var n=Math.round(e||0),r=Math.round(t||0);return(n=0===n?0:n-r)||""}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]){if(!(e=window.performance.getEntriesByName(t[n]))||0===e.length||!e[0])continue;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){var r;return t&&t.timing&&t.timing.loadEventEnd?t.timing.loadEventEnd:"xhr"!==n||t&&BOOMR.utils.inArray(t.initiator,BOOMR.constants.BEACON_TYPE_SPAS)?(r=BOOMR.getPerformance())&&r.timing?r.timing.loadEventEnd?r.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):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){var i;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());i=r(n);this.updateCookie({nu:BOOMR.utils.hashString(i)},"cl");BOOMR.addVar("nu",BOOMR.utils.cleanupURL(i),!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){var t="function"==typeof e.getAttribute&&e.getAttribute("action")||r.URL||"";return t.match(/\?/)?t:t+"?"})},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}if(isNaN(r.delta))continue;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,i=BOOMR.now(),o=!1;a.complete=!1;r=a.validateLoadTimestamp(i,e,t);if(("load"===t||"visible"===t||"xhr"===t||"early"===t)&&!a.setPageLoadTimers(t,r,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();n=a.determineTStart(t,e);a.refreshSession();a.maybeResetSession(r,n);"early"!==t&&this.endTimer("t_done",r);e&&"xhr"===e.initiator&&this.setTimer("t_done",e.timing.requestStart,e.timing.loadEventEnd);a.setSupportingTimestamps(n,t);this.addTimersToBeacon(null,t);BOOMR.setReferrer(a.r);"xhr"===t&&e&&e&&e.data&&(e=e.data);if("xhr"===t&&e){o=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)}o&&"passive"!==o&&BOOMR.addVar("rt.subres",1,!0);if("load"===t||"visible"===t||"xhr"===t&&!o||"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(){var c,y;if(!BOOMR.plugins.BW){(y=[{name:"image-0.png",size:11773,timeout:1400},{name:"image-1.png",size:40836,timeout:1200},{name:"image-2.png",size:165544,timeout:1300},{name:"image-3.png",size:382946,timeout:1500},{name:"image-4.png",size:1236278,timeout:1200},{name:"image-5.png",size:4511798,timeout:1200},{name:"image-6.png",size:9092136,timeout:1200}]).end=y.length;y.start=0;y.l={name:"image-l.gif",size:35,timeout:1e3};c={base_url:"",timeout:15e3,nruns:5,latency_runs:10,user_ip:"",block_beacon:!1,test_https:!1,cookie_exp:604800,cookie:"BA",results:[],latencies:[],latency:null,runs_left:0,aborted:!1,complete:!0,running:!1,initialized:!1,ncmp:function(e,t){return e-t},iqr:function(e){var t,n,r,i,o=e.length-1,a=[];t=(e[Math.floor(.25*o)]+e[Math.ceil(.25*o)])/2;if(0===(r=1.5*((n=(e[Math.floor(.75*o)]+e[Math.ceil(.75*o)])/2)-t)))return e;o++;for(i=0;i<o&&e[i]<n+r;i++)e[i]>t-r&&a.push(e[i]);return a},calc_latency:function(){var e,t,n,r,i,o,a=0,s=0;this.latencies.shift();t=(o=this.iqr(this.latencies.sort(this.ncmp))).length;for(e=0;e<t;e++){a+=o[e];s+=o[e]*o[e]}n=Math.round(a/t);i=(1.96*(r=Math.sqrt(s/t-a*a/(t*t)))/Math.sqrt(t)).toFixed(2);r=r.toFixed(2);return{mean:n,median:Math.round((o[Math.floor(t/2)]+o[Math.ceil(t/2)])/2),stddev:r,stderr:i}},calc_bw:function(){var e,t,n,r,i,o,a,s,u,c,d,l,f,O,p=0,m=[],g=[],h=0,R=0,M=0,B=0,v=[];for(e=0;e<this.nruns;e++)if(this.results[e]&&this.results[e].r){l=0;for(t=(n=this.results[e].r).length-1;0<=t&&l<3&&n[t];t--)if(null!==n[t].t){p++;l++;f=1e3*y[t].size/n[t].t;m.push(f);if(n[t].t>this.latency.mean){O=1e3*y[t].size/(n[t].t-this.latency.mean);g.push(O)}else v.push(t+"_"+n[t].t)}}if(3<m.length){m=this.iqr(m.sort(this.ncmp));g=this.iqr(g.sort(this.ncmp))}else{m=m.sort(this.ncmp);g=g.sort(this.ncmp)}p=Math.max(m.length,g.length);for(e=0;e<p;e++){if(e<m.length){h+=m[e];R+=Math.pow(m[e],2)}if(e<g.length){M+=g[e];B+=Math.pow(g[e],2)}}p=m.length;r=Math.round(h/p);i=Math.sqrt(R/p-Math.pow(h/p,2));o=Math.round(1.96*i/Math.sqrt(p));i=Math.round(i);p=m.length-1;a=Math.round((m[Math.floor(p/2)]+m[Math.ceil(p/2)])/2);if(g.length<1){v.push("l=="+g.length);s=r;u=i;c=o;d=a}else{p=g.length;s=Math.round(M/p);c=(1.96*(u=Math.sqrt(B/p-Math.pow(M/p,2)))/Math.sqrt(p)).toFixed(2);u=u.toFixed(2);p=g.length-1;d=Math.round((g[Math.floor(p/2)]+g[Math.ceil(p/2)])/2)}return{mean:r,stddev:i,stderr:o,median:a,mean_corrected:s,stddev_corrected:u,stderr_corrected:c,median_corrected:d,debug_info:v}},load_img:function(t,n,r){var e=this.base_url+y[t].name+"?t="+BOOMR.utils.generateId(10),i=0,o=0,a=new Image,s=this;function u(e){return function(){r&&r.call(s,t,o,n,e);if(null!==e){a.onload=a.onerror=null;a=null;clearTimeout(i);s=r=null}}}a.onload=u(!0);a.onerror=u(!1);i=setTimeout(u(null),y[t].timeout+Math.min(400,this.latency?this.latency.mean:400));o=BOOMR.now();a.src=e},lat_loaded:function(e,t,n,r){if(n===this.latency_runs+1){if(null!==r){var i=BOOMR.now()-t;this.latencies.push(i)}0===this.latency_runs&&(this.latency=this.calc_latency());BOOMR.setImmediate(this.iterate,null,null,this)}},img_loaded:function(e,t,n,r){if(n===this.runs_left+1&&!this.results[this.nruns-n].r[e])if(null!==r){var i={start:t,end:BOOMR.now(),t:null,state:r,run:n};r&&(i.t=i.end-i.start);this.results[this.nruns-n].r[e]=i;if(e>=y.end-1||this.results[this.nruns-n].r[e+1]!==undefined){n===this.nruns&&(y.start=e);BOOMR.setImmediate(this.iterate,null,null,this)}else this.load_img(e+1,n,this.img_loaded)}else this.results[this.nruns-n].r[e+1]={t:null,state:null,run:n}},finish:function(){this.latency||(this.latency=this.calc_latency());var e=this.calc_bw(),t={bw:e.median_corrected,bw_err:parseFloat(e.stderr_corrected,10),lat:this.latency.mean,lat_err:parseFloat(this.latency.stderr,10),bw_time:Math.round(BOOMR.now()/1e3)};BOOMR.addVar(t);0<e.debug_info.length&&BOOMR.addVar("bw_debug",e.debug_info.join(","));!isNaN(t.bw)&&0<t.bw&&BOOMR.utils.setCookie(this.cookie,{ba:Math.round(t.bw),be:t.bw_err,l:t.lat,le:t.lat_err,ip:this.user_ip,t:t.bw_time},this.user_ip?this.cookie_exp:0);(this.complete=!0)===this.block_beacon&&BOOMR.sendBeacon();this.running=!1},iterate:function(){if(!this.aborted)if(this.runs_left)if(this.latency_runs)this.load_img("l",this.latency_runs--,this.lat_loaded);else{this.results.push({r:[]});this.load_img(y.start,this.runs_left--,this.img_loaded)}else this.finish()},setVarsFromCookie:function(){var e,t,n,r,i,o,a,s,u;if((e=BOOMR.utils.getSubCookies(BOOMR.utils.getCookie(c.cookie)))&&e.ba){t=parseInt(e.ba,10);n=parseFloat(e.be,10);r=parseInt(e.l,10)||0;i=parseFloat(e.le,10)||0;o=e.ip.replace(/\.\d+$/,"0");a=parseInt(e.t,10);s=this.user_ip.replace(/\.\d+$/,"0");u=Math.round(BOOMR.now()/1e3);if(o===s&&a>=u-this.cookie_exp&&0<t){this.complete=!0;BOOMR.addVar({bw:t,lat:r,bw_err:n,lat_err:i,bw_time:a});return!0}}return!1}};BOOMR.plugins.BW={init:function(e){if(c.initialized)return this;BOOMR.utils.pluginConfig(c,e,"BW",["base_url","timeout","nruns","cookie","cookie_exp","test_https","block_beacon"]);e&&e.user_ip&&(c.user_ip=e.user_ip);if(!c.base_url)return this;y.start=0;c.runs_left=c.nruns;c.latency_runs=10;c.results=[];c.latencies=[];c.latency=null;c.complete=c.aborted=!1;BOOMR.removeVar("ba","ba_err","lat","lat_err");c.setVarsFromCookie()||BOOMR.subscribe("page_ready",this.run,null,this);c.initialized=!0;return this},run:function(){var e;if(c.running||c.complete)return this;(e=BOOMR.window.document.createElement("a")).href=c.base_url;if(!c.test_https&&"https:"===e.protocol){BOOMR.info("HTTPS detected, skipping bandwidth test","bw");(c.complete=!0)===c.block_beacon&&BOOMR.sendBeacon();return this}c.base_url=e.href;c.running=!0;setTimeout(this.abort,c.timeout);c.iterate();return this},abort:function(){c.aborted=!0;c.running&&c.finish()},is_complete:function(){return!0!==c.block_beacon||c.complete}}}}();!function(){if(!BOOMR.plugins.PaintTiming){var o={"first-paint":"fp","first-contentful-paint":"fcp"},a={initialized:!1,complete:!1,supported:null,timingCache:{},done:function(e,t){var n,r,i;if(this.complete)return this;if("load"!==t&&(!e||"spa_hard"!==e.initiator)){this.complete=!0;return this}if((n=BOOMR.getPerformance())&&"function"==typeof n.getEntriesByType){if((r=n.getEntriesByType("paint"))&&r.length){BOOMR.info("This user agent supports PaintTiming","pt");for(i=0;i<r.length;i++){a.timingCache[r[i].name]=r[i].startTime;o[r[i].name]&&BOOMR.addVar("pt."+o[r[i].name],Math.floor(r[i].startTime),!0)}this.complete=!0;BOOMR.sendBeacon()}}else this.complete=!0}};BOOMR.plugins.PaintTiming={init:function(){if(!this.is_supported()){a.complete=!0;a.initialized=!0}if(!a.complete&&"hidden"===BOOMR.visibilityState()){BOOMR.addVar("pt.hid",1,!0);a.complete=!0}if(!a.initialized){BOOMR.subscribe("page_ready",a.done,"load",a);BOOMR.subscribe("xhr_load",a.done,"xhr",a);BOOMR.subscribe("before_unload",a.done,null,a);a.initialized=!0}return this},is_complete:function(){return!0},is_enabled:function(){return a.initialized&&this.is_supported()},is_supported:function(){if(null!==a.supported)return a.supported;var e=BOOMR.getPerformance();a.supported=e&&"undefined"!=typeof window.PerformancePaintTiming&&"function"==typeof e.getEntriesByType;return a.supported},getTimingFor:function(e){var t,n;if(a.timingCache[e])return a.timingCache[e];if(this.is_supported()){var r;if((r=BOOMR.getPerformance())&&"function"==typeof r.getEntriesByType&&(t=r.getEntriesByType("paint"))&&t.length)for(n=0;n<t.length;n++)if(t[n].name===e){a.timingCache[e]=t[n].startTime;return a.timingCache[e]}}}}}}();!function(){if(!BOOMR.plugins.NavigationTiming){var d={complete:!1,fullySent:!1,sendBeacon:function(){this.complete=!0;BOOMR.sendBeacon()},xhr_done:function(e){var t;if(e&&"spa_hard"===e.initiator)d.done(e);else if(e&&"spa"===e.initiator)d.sendBeacon();else{BOOMR.window;var n,r,i={};if(e){e.data&&(e=e.data);if((t=BOOMR.getPerformance())&&e.restiming){i={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&&(i.nt_ssl_st=e.restiming.secureConnectionStart);for(r in i)if(i.hasOwnProperty(r)&&i[r]){i[r]+=t.timing.navigationStart;i[r]=Math.floor(i[r])}}if(e.timing){n=e.timing;i.nt_req_st||(i.nt_req_st=n.requestStart);i.nt_res_st||(i.nt_res_st=n.responseStart);i.nt_res_end||(i.nt_res_end=n.responseEnd);i.nt_domint=n.domInteractive;i.nt_domcomp=n.domComplete;i.nt_load_st=n.loadEventEnd;i.nt_load_end=n.loadEventEnd}for(r in i)i.hasOwnProperty(r)&&!i[r]&&delete i[r];BOOMR.addVar(i,undefined,!0);d.sendBeacon()}}},done:function(){var e,t,n,r,i,o,a=BOOMR.window,s={},u=0,c=!1;if(this.complete)return this;if(e=BOOMR.getPerformance()){if("function"==typeof e.getEntriesByType)if((r=e.getEntriesByType("navigation"))&&r.length){BOOMR.info("This user agent supports NavigationTiming2","nt");r=r[0];u=e.timing?e.timing.navigationStart:0}else r=undefined;if(!r&&e.timing){BOOMR.info("This user agent supports NavigationTiming","nt");r=e.timing}if(r){!(s={nt_nav_st:e.timing?e.timing.navigationStart:0,nt_red_st:l(u,r.redirectStart),nt_red_end:l(u,r.redirectEnd),nt_fet_st:l(u,r.fetchStart),nt_dns_st:l(u,r.domainLookupStart),nt_dns_end:l(u,r.domainLookupEnd),nt_con_st:l(u,r.connectStart),nt_con_end:l(u,r.connectEnd),nt_req_st:l(u,r.requestStart),nt_res_st:l(u,r.responseStart),nt_res_end:l(u,r.responseEnd),nt_domloading:l(u,r.domLoading),nt_domint:l(u,r.domInteractive),nt_domcontloaded_st:l(u,r.domContentLoadedEventStart),nt_domcontloaded_end:l(u,r.domContentLoadedEventEnd),nt_domcomp:l(u,r.domComplete),nt_load_st:l(u,r.loadEventStart),nt_load_end:l(u,r.loadEventEnd),nt_unload_st:l(u,r.unloadEventStart),nt_unload_end:l(u,r.unloadEventEnd)}).nt_domloading&&e&&e.timing&&e.timing.domLoading&&(s.nt_domloading=e.timing.domLoading);r.secureConnectionStart&&(s.nt_ssl_st=l(u,r.secureConnectionStart));e.timing&&e.timing.msFirstPaint&&(s.nt_first_paint=e.timing.msFirstPaint);r.workerStart&&(s.nt_worker_start=l(u,r.workerStart));if(r.decodedBodySize||r.transferSize){s.nt_enc_size=r.encodedBodySize;s.nt_dec_size=r.decodedBodySize;s.nt_trn_size=r.transferSize}r.nextHopProtocol&&(s.nt_protocol=r.nextHopProtocol)}if(!s.nt_first_paint&&BOOMR.plugins.PaintTiming){c=BOOMR.plugins.PaintTiming.is_supported();(i=BOOMR.plugins.PaintTiming.getTimingFor("first-paint"))&&(s.nt_first_paint=l(u,i))}if((!s.nt_protocol||!s.nt_first_paint)&&(!r||""!==r.nextHopProtocol)&&!c&&a.chrome&&"function"==typeof a.chrome.loadTimes&&(n=a.chrome.loadTimes())){s.nt_spdy=n.wasFetchedViaSpdy?1:0;s.nt_cinf=n.connectionInfo;"number"==typeof n.firstPaintTime&&0!==n.firstPaintTime&&(s.nt_first_paint=Math.round(1e3*n.firstPaintTime))}if(e.navigation){t=e.navigation;s.nt_red_cnt=t.redirectCount;s.nt_nav_type=t.type}for(o in s)s.hasOwnProperty(o)&&s[o]===undefined&&delete s[o];BOOMR.addVar(s,undefined,!0);r&&(r.requestStart&&r.navigationStart&&r.requestStart<r.navigationStart||r.responseStart&&r.navigationStart&&r.responseStart<r.navigationStart||r.responseStart&&r.fetchStart&&r.responseStart<r.fetchStart||r.navigationStart&&r.fetchStart<r.navigationStart||r.responseEnd&&r.responseEnd>BOOMR.now()+864e5)&&BOOMR.addVar("nt_bad",1,!0);0<s.nt_load_end&&(this.fullySent=!0)}d.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(!d.initialized){BOOMR.subscribe("page_ready",d.done,null,d);BOOMR.subscribe("prerender_to_visible",d.prerenderToVisible,null,d);BOOMR.subscribe("before_early_beacon",d.onBeforeEarlyBeacon,null,d);BOOMR.subscribe("xhr_load",d.xhr_done,null,d);BOOMR.subscribe("before_unload",d.done,null,d);BOOMR.subscribe("beacon",d.clear,null,d);d.initialized=!0}return this},is_complete:function(){return!0}}}function l(e,t){return"number"!=typeof t||0===t?undefined:Math.floor((e||0)+t)}}();!function(){var S;if(!BOOMR.plugins.ResourceTiming){var h={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},A=["startTime","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd","workerStart"],R="\n",M="*",B="0",v="1",y="2",P=1,I=2,x=4,_="3",b="4",E="5";S={complete:!1,sentNavBeacon:!1,initialized:!1,supported:null,xhr_load:function(){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(S.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(S,e,"ResourceTiming",["xssBreakWords","clearOnBeacon","urlLimit","trimUrls","trackedResourceTypes","serverTiming","monitorClearResourceTimings","splitAtPath","getSrcsetDimensions"]);if(S.initialized)return this;if(this.is_supported()){BOOMR.subscribe("page_ready",S.done,null,S);BOOMR.subscribe("prerender_to_visible",S.prerenderToVisible,null,S);BOOMR.subscribe("xhr_load",S.xhr_load,null,S);BOOMR.subscribe("beacon",S.onBeacon,null,S);BOOMR.subscribe("before_unload",S.done,null,S);if(S.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 S.complete=!0;var n;S.initialized=!0;return this},is_complete:function(){return!0},is_enabled:function(){return S.initialized&&this.is_supported()},is_supported:function(){if(null!==S.supported)return S.supported;var e=BOOMR.getPerformance();S.supported=e&&"function"==typeof e.getEntriesByType&&"undefined"!=typeof window.PerformanceResourceTiming;return S.supported},addResources:function(e,t){if(this.is_supported()&&BOOMR.utils.isArray(e)){S.collectedEntries=S.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<A.length;t++){var n=A[t];e.hasOwnProperty(n)&&(e[n]+=r)}return!0})}Array.prototype.push.apply(S.collectedEntries,e)}},getCompressedResourceTiming:r,getFilteredResourceTiming:F,calculateResourceTimingUnion:function c(e){var t;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)});var n=u(e),r=[],i=0;for(t=0;t<n.length;t++){var o=n[t];o.fetchStart<i&&(o.fetchStart=i);if(o.fetchStart<o.responseEnd){r.push(o);i=o.responseEnd}}var a=u(r),s=0;for(t=0;t<a.length;t++)s+=a[t].responseEnd-a[t].fetchStart;return s},addResourceTimingToBeacon:e,addToBeacon:i}}function w(e,t){"number"!=typeof e&&(e=0);"number"!=typeof t&&(t=0);var n=Math.round(e||0),r=Math.round(t||0);return 0===n?0:n-r}function N(e){try{e.location&&e.location.href;e.document;if("performance"in e&&e.performance)return!0}catch(t){}return!1}function C(e){var t=0;N(e)&&e.performance.timing&&e.performance.timing.navigationStart&&(t=e.performance.timing.navigationStart);return t}function k(e,t,n,r,i){var o,a,s,u,c,d,l,f,O,p,m,g=[],h={},R={};void 0===t&&(t=!0);void 0===n&&(n=0);void 0===r&&(r=0);if(10<r)return g;try{if(!N(e))return g;s=C(e);p=function E(e,t){var c,d,l={},f=e.document,O=f.createElement("A");c=(t=t||[0,0,0,0])[3]+(e.pageXOffset!==undefined)?e.pageXOffset:(f.documentElement||f.body.parentNode||f.body).scrollLeft;d=t[2]+(e.pageYOffset!==undefined)?e.pageYOffset:(f.documentElement||f.body.parentNode||f.body).scrollTop;["img","iframe","image"].forEach(function(e){var t,n,r,i,o,a,s,u=f.getElementsByTagName(e);for(n=0;n<u.length;n++)if(t=u[n]){i=t.currentSrc||t.src||"function"==typeof t.getAttribute&&t.getAttribute("src")||t.getAttribute("xlink:href");O.href=i;if((i=O.href)&&!l[i]&&((r=t.getBoundingClientRect()).height||t.offsetHeight)&&(r.width||t.offsetWidth)){l[i]=[r.height||t.offsetHeight,r.width||t.offsetWidth,Math.round(r.top+d),Math.round(r.left+c)];if(!t.naturalHeight&&!t.naturalWidth)continue;S.getSrcsetDimensions&&t.currentSrc&&(t.srcset||t.parentNode&&t.parentNode.nodeName&&"PICTURE"===t.parentNode.nodeName.toUpperCase())?(o=t.isConnected?t.ownerDocument.createElement("IMG"):new BOOMR.window.Image).src=i:o=t;a=o.naturalHeight||t.naturalHeight;s=o.naturalWidth||t.naturalWidth;!a&&!s||l[i][0]===a&&l[i][1]===s||l[i].push(a,s)}}});return l}(e,i);L(m=e.document.createElement("a"),h,"script");L(m,R,"link");if((d=e.document.getElementsByTagName("iframe"))&&d.length)for(o=0;o<d.length;o++){u=C(d[o].contentWindow);c=0;s<u&&(c=n+(u-s));m.href=d[o].src;g=g.concat(k(d[o].contentWindow,!1,c,r+1,p[m.href]))}if("function"!=typeof e.performance.getEntriesByType)return g;function M(e){return S.serverTiming&&e.serverTiming||[]}if(t)if((a=e.performance.getEntriesByType("navigation"))&&1===a.length){l=a[0];g.push({name:e.location.href,startTime:0,initiatorType:"html",redirectStart:l.redirectStart,redirectEnd:l.redirectEnd,fetchStart:l.fetchStart,domainLookupStart:l.domainLookupStart,domainLookupEnd:l.domainLookupEnd,connectStart:l.connectStart,secureConnectionStart:l.secureConnectionStart,connectEnd:l.connectEnd,requestStart:l.requestStart,responseStart:l.responseStart,responseEnd:l.responseEnd,workerStart:l.workerStart,encodedBodySize:l.encodedBodySize,decodedBodySize:l.decodedBodySize,transferSize:l.transferSize,serverTiming:M(l)})}else e.performance.timing&&0!==(f=e.performance.timing).navigationStart&&f.responseEnd<=f.navigationStart+36e5&&g.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 B=e.performance.getEntriesByType("resource"),v=[];if(e===BOOMR.window&&S.collectedEntries){Array.prototype.push.apply(B,S.collectedEntries);S.collectedEntries=[]}for(o=0;B&&o<B.length;o++){f=B[o];O={name:f.name,initiatorType:f.initiatorType,encodedBodySize:f.encodedBodySize,decodedBodySize:f.decodedBodySize,transferSize:f.transferSize,serverTiming:M(f),visibleDimensions:p[f.name],latestTime:U(f)};for(var y=0;y<A.length;y++){var _=A[y];O[_]="startTime"===_||f[_]?f[_]+n:0}f.hasOwnProperty("_data")&&(O._data=f._data);if(("script"===f.initiatorType||"link"===f.initiatorType)&&h[f.name]){var b=h[f.name];O.scriptAttrs=(b.async?P:0)|(b.defer?I:0);for(;1===b.nodeType&&"BODY"!==b.nodeName;)b=b.parentNode;O.scriptAttrs|="BODY"===b.nodeName?x:0}"link"===f.initiatorType&&R[f.name]&&BOOMR.utils.arrayFind(R[f.name].rel.split(/[\u0009\u000A\u000C\u000D\u0020]+/),function(e){e=e.toLowerCase();if(T[e]){O.linkAttrs=T[e];return!0}});v.push(O)}g=g.concat(v)}catch(w){return g}return g}function L(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 F(e,t,n){var r,i,o=k(BOOMR.window,!0,0,0),a=C(BOOMR.window),s={};if(!o||!o.length)return{entries:[]};o.sort(function(e,t){return e.startTime-t.startTime});var u=[];for(r=0;r<o.length;r++)if((0===(i=o[r]).name.indexOf("http:")||0===i.name.indexOf("https:"))&&!(-1<i.name.indexOf(BOOMR.url)||-1<i.name.indexOf(BOOMR.config_url)||"function"==typeof BOOMR.getBeaconURL&&BOOMR.getBeaconURL()&&-1<i.name.indexOf(BOOMR.getBeaconURL())||e&&a+i.startTime<e)){if(t&&a+i.startTime>t)break;if(void 0===n||"*"===n||!n.length||i.initiatorType&&BOOMR.utils.inArray(i.initiatorType,n)){f(s,i.serverTiming);u.push(i)}}var c=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},[])}(s);return{entries:u,serverTiming:{lookup:c,indexed:function l(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},{})}(c)}}}function D(e){var t,n,r;if(e.encodedBodySize||e.decodedBodySize||e.transferSize){t=e.transferSize;return[n=e.encodedBodySize,t?t-n:"_",(r=e.decodedBodySize)?r-n:0].map(V).join(",").replace(/,+$/,"")}return""}function H(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,S.urlLimit)}function U(e){return e.responseEnd?e.responseEnd:e.responseStart&&e.startTime?e.responseStart+.2*(e.responseStart-e.startTime):Infinity}function r(e,t){var n,r,i,o,a,s={},u={},c=F(e,t,S.trackedResourceTypes),d=c.entries,l=c.serverTiming;if(!d||!d.length)return{restiming:{},servertiming:[]};for(n=0;n<d.length;n++){r=d[n];void 0===(i=h[r.initiatorType])&&(i=0);a=i+[w(r.startTime,0),w(r.responseEnd,r.startTime),w(r.responseStart,r.startTime),w(r.requestStart,r.startTime),w(r.connectEnd,r.startTime),w(r.secureConnectionStart,r.startTime),w(r.connectStart,r.startTime),w(r.domainLookupEnd,r.startTime),w(r.domainLookupStart,r.startTime),w(r.redirectEnd,r.startTime),w(r.redirectStart,r.startTime)].map(V).join(",").replace(/,+$/,"");var f=D(r);""!==f&&(a+=M+v+f);r.hasOwnProperty("scriptAttrs")&&(a+=M+y+r.scriptAttrs);r.serverTiming&&r.serverTiming.length&&(a+=M+_+r.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+q(l.indexed[i].index,l.indexed[i].descriptions[t.description])},""));r.hasOwnProperty("linkAttrs")&&(a+=M+b+r.linkAttrs);o=H(r.name,S.trimUrls);if(r.hasOwnProperty("_data")){var O="";for(var p in r._data)r._data.hasOwnProperty(p)&&(O+=M+E+p+":"+r._data[p]);"undefined"==typeof s[o]?s[o]=a+O:s[o]+=O}else s[o]!==undefined?s[o]+="|"+a:r.visibleDimensions?s[o]=M+B+r.visibleDimensions.map(Math.round).map(V).join(",").replace(/,+$/,"")+"|"+a:s[o]=a;if(r.visibleDimensions){u[r.latestTime]||(u[r.latestTime]=[]);u[r.latestTime].push(r.visibleDimensions)}}return{restiming:function m(e,t){var n,r,i,o=0,a=[];for(n in e)e.hasOwnProperty(n)&&a.push(n);for(var s=0;s<a.length;s++){if("object"==typeof e[n=a[s]]&&(r=m(e[n],!1))){delete e[n];if(n===R){n=r.name;o++}else n+=r.name;e[n]=r.value}o++}if(1!==o)return!!t&&e;if(t){(i={})[n]=e[n];return i}return{name:n,value:e[n]}}(function g(e,t){var n,r,i,o,a,s,u,c,d={};function l(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)}}for(n in e){r=n;for(i=0;i<S.xssBreakWords.length;i++)r=r.replace(S.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(l(a.length-4),[])):r.split("");u=d;for(i=0;i<a.length;i++)void 0===(c=u[s=a[i]])?u=u[s]=i===a.length-1?o:{}:"string"==typeof c?u=u[s]={"|":c}:i===a.length-1?u[s]["|"]=o:u=u[s]}}return d}(s,S.splitAtPath),!0),servertiming:l.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 f(r,e){(e||[]).forEach(function(e){var t=e.name||e.metric;"undefined"==typeof r[t]&&(r[t]={count:0,counts:{}});var n=r[t];n.counts[e.description]=n.counts[e.description]||0;n.counts[e.description]++;n.count++})}function q(e,t){var n="";e&&(n+=e);t&&(n+="."+t);n.length&&(n=":"+n);return 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){"object"==typeof navigator&&(t=navigator.connection||navigator.mozConnection||navigator.webkitConnection||navigator.msConnection);if(t){t.addEventListener&&t.addEventListener("change",function(){e();BOOMR.fireEvent("netinfo",t)});e()}}function e(){var e;for(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,c,d,l,f={};if(!BOOMR.plugins.Memory){l={done:function(){if(i){BOOMR.removeVar("dom.res");t(!0,function(){var e,t,n={};if(f&&"function"==typeof f.getEntriesByType&&(e=f.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(c&&d,function(){BOOMR.addVar({"mem.lsln":c.length,"mem.ssln":d.length});window.JSON&&"function"==typeof JSON.stringify&&BOOMR.addVar({"mem.lssz":JSON.stringify(c).length,"mem.sssz":JSON.stringify(d).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)},"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;f=BOOMR.getPerformance();e=i.console;a=i.screen;s=i.navigator;try{c=i.localStorage;d=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){e}):"object"==typeof t&&t.hasOwnProperty("level")&&t}}catch(r){BOOMR.addError(r,"Memory.init")}o=f&&f.memory?f.memory:e&&e.memory?e.memory:null;if(l.initialized)return this;l.initialized=!0;BOOMR.subscribe("before_beacon",l.done,null,l);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){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(){if(!BOOMR.plugins.CACHE_RELOAD){var n={url:""};BOOMR.plugins.CACHE_RELOAD={init:function(e){BOOMR.utils.pluginConfig(n,e,"CACHE_RELOAD",["url"]);if(!n.url)return this;var t=document.createElement("iframe");t.style.display="none";t.src=n.url;document.body.appendChild(t);return this},is_complete:function(){return!0}}}}();!function(){BOOMR.utils=BOOMR.utils||{};if(!BOOMR.utils||!BOOMR.utils.Compression){var a=BOOMR.utils.Compression={};a.jsUrl=function(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(e,t){"use strict";e.ErrorStackParser=function s(){var n=/(^|@)\S+\:\d+/,r=/^\s*at .*(\S+\:\d+|\(native\))/m,i=/^(eval@)?(\[native code\])?$/;function o(e,t,n){if("function"==typeof Array.prototype.map)return e.map(t,n);for(var r=new Array(e.length),i=0;i<e.length;i++)r[i]=t.call(n,e[i]);return r}function a(e,t,n){if("function"==typeof Array.prototype.filter)return e.filter(t,n);for(var r=[],i=0;i<e.length;i++)t.call(n,e[i])&&r.push(e[i]);return r}return{parse:function(e){if("undefined"!=typeof e.stacktrace||"undefined"!=typeof e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(r))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=e.replace(/[\(\)\s]/g,"").split(":"),n=t.pop(),r=t[t.length-1];if(isNaN(parseFloat(r))||!isFinite(r))return[t.join(":"),n,undefined];var i=t.pop();return[t.join(":"),i,n]},parseV8OrIE:function(e){var t=a(e.stack.split("\n"),function(e){return!!e.match(r)},this);return o(t,function(e){-1<e.indexOf("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),n=this.extractLocation(t.pop()),r=t.join(" ")||undefined,i="eval"===n[0]?undefined:n[0];return{functionName:r,fileName:i,lineNumber:n[1],columnNumber:n[2],source:e}},this)},parseFFOrSafari:function(e){var t=a(e.stack.split("\n"),function(e){return!e.match(i)},this);return o(t,function(e){-1<e.indexOf(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1"));if(-1===e.indexOf("@")&&-1===e.indexOf(":"))return{functionName:e};var t=e.split("@"),n=this.extractLocation(t.pop()),r=t.join("@")||undefined;return{functionName:r,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:e}},this)},parseOpera:function(e){return!e.stacktrace||-1<e.message.indexOf("\n")&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],i=2,o=n.length;i<o;i+=2){var a=t.exec(n[i]);a&&r.push({fileName:a[2],lineNumber:a[1],source:n[i]})}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[],i=0,o=n.length;i<o;i+=2){var a=t.exec(n[i]);a&&r.push({functionName:a[3]||undefined,fileName:a[2],lineNumber:a[1],source:n[i]})}return r},parseOpera11:function(e){var t=a(e.stack.split("\n"),function(e){return!!e.match(n)&&!e.match(/^Error created at/)},this);return o(t,function(e){var t,n=e.split("@"),r=this.extractLocation(n.pop()),i=n.shift()||"",o=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||undefined;i.match(/\(([^\)]*)\)/)&&(t=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=t===undefined||"[arguments not available]"===t?undefined:t.split(",");return{functionName:o,args:a,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e}},this)}}}()}(this,function ID(){"use strict";var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;function i(e,t,n){if("function"==typeof Array.prototype.map)return e.map(t,n);for(var r=new Array(e.length),i=0;i<e.length;i++)r[i]=t.call(n,e[i]);return r}function o(e,t,n){if("function"==typeof Array.prototype.filter)return e.filter(t,n);for(var r=[],i=0;i<e.length;i++)t.call(n,e[i])&&r.push(e[i]);return r}return{parse:function(e){if("undefined"!=typeof e.stacktrace||"undefined"!=typeof e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=e.replace(/[\(\)\s]/g,"").split(":"),n=t.pop(),r=t[t.length-1];if(isNaN(parseFloat(r))||!isFinite(r))return[t.join(":"),n,undefined];var i=t.pop();return[t.join(":"),i,n]},parseV8OrIE:function(e){return i(o(e.stack.split("\n"),function(e){return!!e.match(n)},this),function(e){-1<e.indexOf("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),n=this.extractLocation(t.pop());return{functionName:t.join(" ")||undefined,fileName:"eval"===n[0]?undefined:n[0],lineNumber:n[1],columnNumber:n[2],source:e}},this)},parseFFOrSafari:function(e){return i(o(e.stack.split("\n"),function(e){return!e.match(r)},this),function(e){-1<e.indexOf(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1"));if(-1===e.indexOf("@")&&-1===e.indexOf(":"))return{functionName:e};var t=e.split("@"),n=this.extractLocation(t.pop());return{functionName:t.join("@")||undefined,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:e}},this)},parseOpera:function(e){return!e.stacktrace||-1<e.message.indexOf("\n")&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],i=2,o=n.length;i<o;i+=2){var a=t.exec(n[i]);a&&r.push({fileName:a[2],lineNumber:a[1],source:n[i]})}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[],i=0,o=n.length;i<o;i+=2){var a=t.exec(n[i]);a&&r.push({functionName:a[3]||undefined,fileName:a[2],lineNumber:a[1],source:n[i]})}return r},parseOpera11:function(e){return i(o(e.stack.split("\n"),function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this),function(e){var t,n=e.split("@"),r=this.extractLocation(n.pop()),i=n.shift()||"",o=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||undefined;i.match(/\(([^\)]*)\)/)&&(t=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));return{functionName:o,args:t===undefined||"[arguments not available]"===t?undefined:t.split(","),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e}},this)}}});!function(){var f;if(!BOOMR.plugins.Errors){var O=["BOOMR_addError","createStackForSend","BOOMR.window.console.error","BOOMR.plugins.Errors.init","BOOMR.window.onerror","BOOMR_plugins_errors_"],p=["Object.send","b.send","wrap","Anonymous function"],m=["/boomerang"];g.prototype.equals=function(e){return"object"==typeof e&&(this.code===e.code&&(this.message===e.message&&(this.functionName===e.functionName&&(this.fileName===e.fileName&&(this.lineNumber===e.lineNumber&&(this.columnNumber===e.columnNumber&&(this.stack===e.stack&&(this.type===e.type&&this.source===e.source))))))))};g.fromError=function(e,t,n){var r,i,o,a,s,u,c,d,l=!1,f=BOOMR.now();if(!e)return null;if(e.stack){5e3<e.stack.length&&(e.stack=e.stack.substr(0,5e3));if((i=ErrorStackParser.parse(e))&&i.length){if(e.generatedStack){if(4<=i.length&&i[1].functionName&&-1!==i[1].functionName.indexOf("createStackForSend")){i=i.slice(3);l=!0}if(3<=i.length&&i[0].functionName&&-1!==i[0].functionName.indexOf("createStackForSend")){i=i[1].fileName===i[2].fileName?i.slice(3):i.slice(2);l=!0}if(1<=i.length&&i[0].functionName&&-1!==i[0].functionName.indexOf("BOOMR_plugins_errors")){i=i.slice(1);l=!0}}for(o=0;o<i.length;o++){u=!1;if(d=(c=i[o]).functionName){for(a=0;a<O.length;a++)if(-1!==d.indexOf(O[a])){i.splice(o,1);o--;u=l=!0;break}if(!u&&c.fileName)for(a=0;a<m.length;a++)if(-1!==c.fileName.indexOf(m[a]))for(s=0;s<p.length;s++)if(-1!==d.indexOf(p[s])){i.splice(o,1);o--;u=l=!0;break}}}if(i.length){r=i[0];(l||"undefined"==typeof e.lineNumber)&&(e.lineNumber=r.lineNumber);(l||"undefined"==typeof e.columnNumber)&&(e.columnNumber=r.columnNumber);(l||"undefined"==typeof e.functionName)&&(e.functionName=r.functionName);(l||"undefined"==typeof e.fileName)&&(e.fileName=r.fileName)}e.stack&&(e.stack=e.stack.replace(/\s\s+/g," "))}}else(e.functionName||e.fileName||e.lineNumber||e.columnNumber)&&(i=[{lineNumber:e.lineNumber,columnNumber:e.columnNumber,fileName:e.fileName,functionName:e.functionName}]);"string"==typeof e.message&&"function"==typeof e.message.indexOf&&-1!==e.message.indexOf("ReferenceError:")&&"Error"===e.name&&(e.name="ReferenceError");return new g({code:e.code?e.code:undefined,message:e.message?e.message:undefined,functionName:e.functionName?e.functionName:undefined,fileName:e.fileName?e.fileName:undefined,lineNumber:e.lineNumber?e.lineNumber:undefined,columnNumber:e.columnNumber?e.columnNumber:undefined,stack:e.stack?e.stack:undefined,type:e.name?e.name:undefined,source:n,via:t,frames:i,extra:e.extra?e.extra:undefined,timestamp:e.timestamp?e.timestamp:f})};f={onError:undefined,monitorGlobal:!0,monitorNetwork:!0,monitorConsole:!0,monitorEvents:!0,monitorTimeout:!0,monitorRejections:!1,monitorReporting:!1,sendAfterOnload:!1,maxErrors:10,sendInterval:1e3,sendIntervalDuringLoad:2500,sendIntervalId:-1,maxEvents:10,isDuringLoad:!0,initialized:!1,autorun:!0,errors:[],q:[],events:[],reportingObserver:undefined,send:function(t,n,r){var i=BOOMR.now();if(t&&!0!==t.reported){t.reported=!0;n=n||BOOMR.plugins.Errors.VIA_APP;r=r||BOOMR.plugins.Errors.SOURCE_APP;if(t.stack||t.noStack){t.timestamp=t.timestamp||i;f.addError(t,n,r)}else{!function createStackForSend(){try{throw Error(t)}catch(e){(t=e).generatedStack=!0;t.timestamp=t.timestamp||i;f.addError(t,n,r)}}()}}},addError:function(e,t,n){var r,i,o,a=BOOMR.now();if(f.isDuringLoad||f.sendAfterOnload){if(f.onError){try{r=f.onError(e)}catch(s){r=!1}if(!r)return}if(!(f.errors.length>=f.maxErrors)){i=g.fromError(e,t,n);o=f.mergeDuplicateErrors(f.errors,i,!1);BOOMR.fireEvent("error",o||i);f.mergeDuplicateErrors(f.q,i,!0);if((BOOMR.hasSentPageLoadBeacon()||!f.autorun)&&-1===f.sendIntervalId){if(o)return;f.sendIntervalId=setTimeout(function(){f.sendIntervalId=-1;0!==f.q.length&&BOOMR.sendBeaconWhenReady({"rt.start":"manual","http.initiator":"error",api:1,"rt.tstart":a,"rt.end":a},function(){f.addErrorsToBeacon()},this)},f.isDuringLoad?f.sendIntervalDuringLoad:f.sendInterval)}}}},findDuplicateError:function(e,t){if(!BOOMR.utils.isArray(e)||void 0===t)return undefined;for(var n=0;n<e.length;n++)if(e[n].equals(t))return e[n];return undefined},mergeDuplicateErrors:function(e,t,n){if(!BOOMR.utils.isArray(e)||void 0===t)return undefined;var r=f.findDuplicateError(e,t);if(r){n&&(r.count+=t.count);return r}e.push(t);return undefined},pageReady:function(){f.isDuringLoad=!1},getErrors:function(){return 0!==f.errors.length&&f.errors},getErrorsForUrl:function(e){e=f.compressErrors(e);return BOOMR.utils.serializeForUrl(e)},addErrorsToBeacon:function(){if(f.q.length){var e=this.getErrorsForUrl(f.q);e&&BOOMR.addVar("err",e,!0);f.q=[]}},beforeBeacon:function(e){e&&"undefined"!=typeof e.early||f.addErrorsToBeacon()},wrapFn:function(o,a,s,u,c){var d=a[o];if("function"==typeof d){var l;"addEventListener"===o&&(l=a.removeEventListener);BOOMR.utils.overwriteNative(a,o,function(){try{var e=Array.prototype.slice.call(arguments),t=e[u],n=s?this===window?BOOMR.window:this:a,r=f.wrap(t,n,c);e[u]=r;if("addEventListener"===o){if(!f.trackFn(n,e[0],t,e[2],r))return;l&&l.apply(n,arguments)}return d.apply(n,e)}catch(i){f.send(i,c);throw i}})}},trackFn:function(e,t,n,r,i){if(!e)return!1;if(-1!==f.trackedFnIdx(e,t,n,r))return!1;e._bmrEvents||(e._bmrEvents=[]);r=!0===(r&&r.capture||r);e._bmrEvents.push([t,n,r,i]);return!0},trackedFnIdx:function(e,t,n,r){var i,o;if(e){e._bmrEvents||(e._bmrEvents=[]);r=!0===(r&&r.capture||r);for(i=0;i<e._bmrEvents.length;i++)if((o=e._bmrEvents[i])[0]===t&&o[1]===n&&o[2]===r)return i;return-1}},wrapRemoveEventListener:function(e){var i,o,t="removeEventListener",a=e[t];"function"==typeof a&&BOOMR.utils.overwriteNative(e,t,function(e,t,n){var r=this===window?BOOMR.window:this;if(-1!==(i=f.trackedFnIdx(r,e,t,n))){o=r._bmrEvents[i][3];a.call(r,e,o,n);r._bmrEvents.splice(i,1)}else a.call(r,e,t,n)})},wrap:function(t,n,r){if("function"!=typeof t)return t;r=r||BOOMR.plugins.Errors.VIA_APP;BOOMR_check_doc_domain();return function(){try{return t.apply(n,arguments)}catch(e){if(-2146823277===e.number&&(r===BOOMR.plugins.Errors.VIA_EVENTHANDLER||r===BOOMR.plugins.Errors.VIA_TIMEOUT))return;BOOMR.isUnloaded||f.send(e,r);throw e}}},test:function(){var e,t;if(0===arguments.length)return undefined;if("function"!=typeof(e=arguments[0]))return undefined;t=1<arguments.length?arguments[1]:BOOMR.window;var n=Array.prototype.slice.call(arguments,2);return f.wrap(e,t).apply(t,n)},normalizeToString:function(e){return void 0===e?"undefined":null===e?"null":"number"==typeof e&&isNaN(e)?"NaN":""===e?"(empty string)":0===e?"0":e?"function"==typeof e?"(function)":e&&"function"==typeof e.toString?e.toString():"(unknown)":"false"},compressErrors:function(e){var t,n,r,i,o,a,s,u,c,d=0;u=BOOMR.window.location.origin;for(t=0;t<e.length;t++){c={};1!==(r=e[t]).count&&(c.n=r.count);if("number"==typeof r.timestamp){d=r.timestamp;c.d=r.timestamp.toString(36)}if(r.frames.length){c.f=[];for(n=0;n<r.frames.length;n++){(i=r.frames[n]).lineNumber&&(i.lineNumber=parseInt(i.lineNumber,10));i.columnNumber&&(i.columnNumber=parseInt(i.columnNumber,10));a={l:i.lineNumber,c:i.columnNumber};"string"==typeof i.fileName&&(-1!==i.fileName.indexOf(u)?a.wo=i.fileName.replace(u,""):a.w=i.fileName);"string"==typeof i.functionName&&(a.f=i.functionName);c.f.push(a)}}if(r.events.length){c.e=[];for(n=0;n<r.events.length;n++){s={t:(o=r.events[n]).type,d:d?d-o.timestamp:o.timestamp};if(o.type===BOOMR.plugins.Errors.EVENT_CLICK){o.id&&(s.i=o.id);o.name&&(s.n=o.name);o.tagName&&(s.g=o.tagName)}else if(o.type===BOOMR.plugins.Errors.EVENT_NETWORK){o.url&&(s.u=o.url);o.method&&(s.m=o.method);o.result&&(s.r=o.result)}else if(o.type===BOOMR.plugins.Errors.EVENT_LOG){o.severity&&(s.s=o.severity);o.message&&(s.m=o.message)}c.e.push(s)}}r.source!==BOOMR.plugins.Errors.SOURCE_APP&&(c.s=r.source);"undefined"!=typeof r.via&&r.via!==BOOMR.plugins.Errors.VIA_APP&&(c.v=r.via);"undefined"!=typeof r.type&&"Error"!==r.type&&(c.t=r.type);r.code&&(c.c=r.code);r.message&&(c.m=r.message);r.extra&&(c.x=r.extra);e[t]=c}return e}};var a=BOOMR.plugins.Errors={init:function(e){var n,r;BOOMR.utils.pluginConfig(f,e,"Errors",["onError","monitorGlobal","monitorNetwork","monitorConsole","monitorEvents","monitorTimeout","monitorReporting","monitorRejections","sendAfterOnload","sendInterval","maxErrors"]);if(f.initialized)return this;e&&"undefined"!=typeof e.autorun&&(f.autorun=e.autorun);f.initialized=!0;BOOMR.subscribe("before_beacon",f.beforeBeacon,null,f);BOOMR.subscribe("page_ready",f.pageReady,null,f);BOOMR.registerEvent("error");if(f.monitorGlobal)try{BOOMR.globalOnError?BOOMR.window.onerror&&!BOOMR.window.onerror._bmr&&(BOOMR.globalOnError=BOOMR.window.onerror):BOOMR.globalOnError=BOOMR.window.onerror;BOOMR.utils.overwriteNative(BOOMR.window,"onerror",function(e,t,n,r,i){void 0===i&&"object"==typeof e&&"object"==typeof e.error&&null!==e.error&&(i=e.error);null!=i?f.send(i,a.VIA_GLOBAL_EXCEPTION_HANDLER):f.send({message:e,fileName:t,lineNumber:n,columnNumber:r,noStack:!0},a.VIA_GLOBAL_EXCEPTION_HANDLER);return"function"==typeof BOOMR.globalOnError&&BOOMR.globalOnError.apply(BOOMR.window,arguments)});if(BOOMR.globalErrors){for(var i=0;i<BOOMR.globalErrors.length;i++)f.send(BOOMR.globalErrors[i],a.VIA_GLOBAL_EXCEPTION_HANDLER);delete BOOMR.globalErrors}}catch(t){}f.monitorNetwork&&BOOMR.subscribe("xhr_error",function(e){f.send({code:e.status,message:e.url,noStack:!0},a.VIA_NETWORK)});f.monitorRejections&&BOOMR.window.PromiseRejectionEvent&&BOOMR.utils.addListener(BOOMR.window,"unhandledrejection",function(e){var t,n="Unhandled Promise Rejection";if(e&&e.reason){if("string"==typeof e.reason)n=e.reason;else{"string"==typeof e.reason.stack&&(t=e.reason.stack);n="undefined"==typeof e.reason.message?f.normalizeToString(e.reason):f.normalizeToString(e.reason.message)}f.send({message:n,stack:t,noStack:!t},a.VIA_REJECTION)}},!0);if(f.monitorConsole){BOOMR.window.console||(BOOMR.window.console={});BOOMR.globalConsole=BOOMR.window.console.error;try{BOOMR.utils.overwriteNative(BOOMR.window.console,"error",function(){var e=Array.prototype.slice.call(arguments);1===e.length?f.send(f.normalizeToString(e[0]),a.VIA_CONSOLE):f.send(f.normalizeToString(e),a.VIA_CONSOLE);"function"==typeof BOOMR.globalConsole&&("function"==typeof BOOMR.globalConsole.apply?BOOMR.globalConsole.apply(this,e):BOOMR.globalConsole(e[0],e[1],e[2]))})}catch(o){}}if(f.monitorEvents)if(BOOMR.window.EventTarget){f.wrapFn("addEventListener",BOOMR.window.EventTarget.prototype,!0,1,a.VIA_EVENTHANDLER);f.wrapRemoveEventListener(BOOMR.window.EventTarget.prototype)}else{if(BOOMR.window){f.wrapFn("addEventListener",BOOMR.window,!1,1,a.VIA_EVENTHANDLER);f.wrapRemoveEventListener(BOOMR.window)}if(BOOMR.window.Node){f.wrapFn("addEventListener",BOOMR.window.Node.prototype,!0,1,a.VIA_EVENTHANDLER);f.wrapRemoveEventListener(BOOMR.window.Node.prototype)}if(BOOMR.window.XMLHttpRequest){f.wrapFn("addEventListener",BOOMR.window.XMLHttpRequest.prototype,!0,1,a.VIA_EVENTHANDLER);f.wrapRemoveEventListener(BOOMR.window.XMLHttpRequest.prototype)}}if(f.monitorTimeout){f.wrapFn("setTimeout",BOOMR.window,!1,0,a.VIA_TIMEOUT);f.wrapFn("setInterval",BOOMR.window,!1,0,a.VIA_TIMEOUT)}if(f.monitorReporting&&BOOMR.window.ReportingObserver){f.reportingObserver=new BOOMR.window.ReportingObserver(function(e,t){if(BOOMR.utils.isArray(e))for(i=0;i<e.length;i++){n=e[i];(r=n&&n.body&&(n.body.message||n.body.reason))&&f.send({message:r,fileName:n.body.sourceFile||n.url,lineNumber:n.body.lineNumber,columnNumber:n.body.columnNumber,noStack:!0},a.VIA_REPORTING_API)}},{buffered:!0});f.reportingObserver.observe()}return this},is_complete:function(){return!0},is_supported:function(){return f.initialized},SOURCE_APP:1,SOURCE_BOOMERANG:2,VIA_APP:1,VIA_GLOBAL_EXCEPTION_HANDLER:2,VIA_NETWORK:3,VIA_CONSOLE:4,VIA_EVENTHANDLER:5,VIA_TIMEOUT:6,VIA_REJECTION:7,VIA_REPORTING_API:8,EVENT_CLICK:1,EVENT_NETWORK:2,EVENT_LOG:3,send:f.send,wrap:f.wrap,test:f.test,BoomerangError:g}}function g(e){"number"==typeof(e=e||{}).count||"string"==typeof e.count?this.count=parseInt(e.count,10):this.count=1;"number"==typeof e.timestamp?this.timestamp=e.timestamp:this.timestamp=BOOMR.now();"number"!=typeof e.code&&"string"!=typeof e.code||(this.code=parseInt(e.code,10));"string"==typeof e.message&&(this.message=e.message);"string"==typeof e.functionName&&(this.functionName=e.functionName);"string"==typeof e.fileName&&(this.fileName=e.fileName);"number"!=typeof e.lineNumber&&"string"!=typeof e.lineNumber||(this.lineNumber=parseInt(e.lineNumber,10));"number"!=typeof e.columnNumber&&"string"!=typeof e.columnNumber||(this.columnNumber=parseInt(e.columnNumber,10));"string"==typeof e.stack&&(this.stack=e.stack);"string"==typeof e.type&&(this.type=e.type);"undefined"!=typeof e.extra&&(this.extra=e.extra);this.source="number"==typeof e.source||"string"==typeof e.source?parseInt(e.source,10):BOOMR.plugins.Errors.SOURCE_APP;"number"!=typeof e.via&&"string"!=typeof e.via||(this.via=parseInt(e.via,10));BOOMR.utils.isArray(e.frames)?this.frames=e.frames:this.frames=[];BOOMR.utils.isArray(e.events)?this.events=e.events:this.events=[]}}();!function(){"use strict";if(!BOOMR.plugins.TPAnalytics){var d={complete:!1,clientids:!1,dropParams:[],googleAnalytics:function(){var e,t,n,r,i,o={},a=BOOMR.window,s=["utm_source","utm_medium","utm_term","utm_content","utm_campaign"];if(d.clientids){if("function"==typeof a.ga)try{a.ga(function(e){e&&(o.clientid=e.get("clientId"))});o.clientid||"function"!=typeof a.ga.getAll||(i=a.ga.getAll())&&0<i.length&&(o.clientid=i[0].get("clientId"))}catch(u){l("googleAnalytics: "+u)}o.clientid||((r=BOOMR.utils.getCookie("_ga"))?(r=r.split("."))&&4===r.length&&(o.clientid=r[2]+"."+r[3]):(r=BOOMR.utils.getCookie("__utma"))&&(r=r.split("."))&&6===r.length&&(o.clientid=r[1]+"."+r[2]))}for(e=0;e<s.length;e++){t=s[e];(n=BOOMR.utils.getQueryParamValue(t))&&(o[t]=n)}return o},adobeAnalytics:function(){var e,t,n,r,i,o={},a=BOOMR.window;if("undefined"!=typeof a._satellite||"function"==typeof a.mboxCreate||"function"==typeof a.Visitor||"object"==typeof a.s){if(d.clientids)if("object"==typeof a.s&&"object"==typeof a.s.visitor&&"function"==typeof a.s.visitor.getAnalyticsVisitorID&&"function"==typeof a.s.visitor.getMarketingCloudVisitorID)try{(t=a.s.visitor.getMarketingCloudVisitorID())&&(o.mid=t);(e=a.s.visitor.getAnalyticsVisitorID())&&(o.aid=a.s.visitor.getAnalyticsVisitorID())}catch(s){l("adobeAnalytics: "+s)}else if((n=/AMCV_([A-Z0-9]+)%40AdobeOrg/.exec(a.document.cookie))&&"function"==typeof a.Visitor&&"function"==typeof a.Visitor.getInstance)try{if((r=a.Visitor.getInstance(n[1]+"@AdobeOrg"))&&"function"==typeof r.getAnalyticsVisitorID&&"function"==typeof r.getMarketingCloudVisitorID){(t=r.getMarketingCloudVisitorID())&&(o.mid=t);(e=r.getAnalyticsVisitorID())&&(o.aid=r.getAnalyticsVisitorID())}}catch(s){l("adobeAnalytics: "+s)}else(e=(e=BOOMR.utils.getCookie("s_vi"))?(i=/\|([^\[]+)/.exec(e))&&0<i.length?i[1]:"":BOOMR.utils.getCookie("s_fid"))&&(o.aid=e);if("object"==typeof a.s){"string"==typeof a.s.campaign&&a.s.campaign&&(o.campaign=a.s.campaign);"string"==typeof a.s.purchaseID&&a.s.purchaseID&&(o.purchaseid=a.s.purchaseID)}}return o},ibmAnalytics:function(){var e,t,n,r,i,o,a={},s=BOOMR.window,u={cm_mmc:[/([^&#]+?)-_-([^&#]+?)-_-([^&#]+?)-_-([^&#]+)/,["mmc_vendor","mmc_category","mmc_placement","mmc_item"]],cm_sp:[/([^&#]+?)-_-([^&#]+?)-_-([^&#]+)/,["sp_type","sp_promotion","sp_link"]],cm_re:[/([^&#]+?)-_-([^&#]+?)-_-([^&#]+)/,["re_version","re_pagearea","re_link"]]};if(d.clientids&&"function"==typeof s.cmRetrieveUserID)try{s.cmRetrieveUserID(function(e){a.coreid=e})}catch(c){l("ibmAnalytics: "+c)}for(r in u)if(u.hasOwnProperty(r)&&(e=BOOMR.utils.getQueryParamValue(r))){i=u[r][0];o=u[r][1];if((t=i.exec(e))&&t.length>o.length)for(n=0;n<o.length;n++)t[n+1]&&(a[o[n]]=decodeURIComponent(t[n+1]))}return a},done:function(e,t){var n,r,i={ga:this.googleAnalytics,aa:this.adobeAnalytics,ia:this.ibmAnalytics};if(!this.complete&&("load"===t||e&&"spa_hard"===e.initiator)){for(n in i){r=i[n]();for(var o in r){var a="tp."+n+"."+o;BOOMR.utils.inArray(a,this.dropParams)||BOOMR.addVar(a,r[o],!0)}}this.complete=!0;BOOMR.sendBeacon()}},prerenderToVisible:function(){this.complete=!1;this.done({},"load")}};BOOMR.plugins.TPAnalytics={init:function(e){BOOMR.utils.pluginConfig(d,e,"TPAnalytics",["clientids","dropParams"]);if(!d.initialized){BOOMR.utils.isArray(d.dropParams)||(d.dropParams=[]);BOOMR.subscribe("page_ready",d.done,"load",d);BOOMR.subscribe("xhr_load",d.done,"xhr",d);BOOMR.subscribe("prerender_to_visible",d.prerenderToVisible,"load",d);d.initialized=!0}return this},is_complete:function(){return!0}}}function l(e){BOOMR.warn(e,"TPAnalytics")}}();!function(r){"use strict";var e,t;void 0!==r?t=(e=r).UserTimingCompression:e={};var f,n=f={};n.noConflict=function(){e.UserTimingCompression=t;return n};n.trimTiming=function(e,t){"number"!=typeof e&&(e=0);"number"!=typeof t&&(t=0);var n=Math.round(e),r=Math.round(t);return 0===n?0:n-r};n.toBase36=function(e){return"number"==typeof e?e.toString(36):""};n.findUserTimingForFrame=function(e){var t;if(!e)return[];try{e.location&&e.location.href;if(!("performance"in e&&e.performance&&e.performance.getEntriesByType))return t;t=(t=e.performance.getEntriesByType("mark")).concat(e.performance.getEntriesByType("measure"))}catch(n){return t}return t};n.compressUserTiming=function(e,t){var n,r,i,o=0,a={};t=t||{};if(!e||!e.length)return[];for(n=0;n<e.length;n++){"undefined"==typeof a[(r=e[n]).name]&&(a[r.name]=[]);"mark"===r.entryType?a[r.name].push({startTime:r.startTime}):"measure"===r.entryType&&a[r.name].push({startTime:r.startTime,duration:r.duration})}for(var s in a)if(a.hasOwnProperty(s)){if(t.map&&"undefined"==typeof t.map[s])continue;var u=a[s];if(t.map&&"undefined"!=typeof t.map[s]){delete a[s];s=t.map[s]}for(n=o=0;n<u.length;n++){var c=u[n];"0"===(i=f.toBase36(f.trimTiming(c.startTime,o)))&&(i="");var d=i;if("number"==typeof c.duration){var l=f.toBase36(Math.round(c.duration));d+="_";"0"!==l&&(d+=l)}o=c.startTime;u[n]=d}a[s]=f.compressArray(u)}return a};n.convertToTrie=function(e){var t,n,r,i,o,a,s,u={};if(!e)return{};for(t in e)if(e.hasOwnProperty(t)){r=e[t];i=t.split("");a=u;for(n=0;n<i.length;n++)void 0===(s=a[o=i[n]])?a=a[o]=n===i.length-1?r:{}:"string"==typeof s||"number"==typeof s?a=a[o]={"!":s}:n===i.length-1?a[o]["!"]=r:a=a[o]}return u};n.optimizeTrie=function(e,t){var n,r,i,o=0;if(!e)return{};for(n in e){if("object"==typeof e[n]&&(r=this.optimizeTrie(e[n],!1))){delete e[n];e[n+=r.name]=r.value}o++}if(1!==o)return!!t&&e;if(t){(i={})[n]=e[n];return i}return{name:n,value:e[n]}};n.compressArray=function(e){var t=0,n="";if(!e||0===e.length||e.constructor!==Array)return"";for(var r=0;r<e.length;r++){var i=e[r];if(r<e.length-1&&i===e[r+1])t++;else if(0<t){n+=(""!==n?".":"")+i+"*";2<=t&&(n+=t+1);t=0}else n+=(""!==n?".":"")+i}return/^\d+$/.test(n)?parseInt(n,10):n};n.getCompressedUserTiming=function(t){var e,n;e=(t=t||{}).window||r;n=this.findUserTimingForFrame(e);t.from&&(n=n.filter(function(e){return e.startTime+e.duration>=t.from}));t.to&&(n=n.filter(function(e){return e.startTime<=t.to}));return f.compressUserTiming(n,t)};n.compressForUri=function(e){if("object"!=typeof e)return"";var t=!1;for(var n in e)if(e.hasOwnProperty(n)){if(isNaN(n)){t=!1;break}t=!0}if(t)return"1"+f.flattenMap(e);var r=f.convertToTrie(e),i=f.optimizeTrie(r,!0),o=f.jsUrl(i),a=f.flattenArray(e);if("string"!=typeof a||0===a.length)return"";var s=encodeURIComponent(o),u=encodeURIComponent(a);return s.length<u.length?o:"0"+a};n.flattenArray=function(e){var t=[];if("object"!=typeof e)return"";for(var n in e)if(e.hasOwnProperty(n)){var r=(e[n]+"").replace("~","%7E");n=n.replace("~","%7E");t.push(n+"~"+r)}return t=t.join("~")};n.flattenMap=function(e){var t=[];if("object"!=typeof e)return"";for(var n in e)if(e.hasOwnProperty(n)){var r=parseInt(n,10),i=f.toBase36(r);if(1331<r)continue;1<i.length&&(i="-"+(1===(i=f.toBase36(r-36)).length?"0":"")+i);t.push(i+e[n])}t.sort();return t=t.join("~")};n.jsUrl=function(n){function r(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}switch(typeof n){case"number":return isFinite(n)?"~"+n:"~null";case"string":return"~'"+r(n);case"boolean":return"~"+n;case"object":return n?Array.isArray(n)?"~("+(n.map(function(e){return f.jsUrl(e)||"~null"}).join("")||"~")+")":"~("+Object.keys(n).map(function(e){var t=f.jsUrl(n[e]);return t&&r(e)+t}).filter(function(e){return e}).sort().join("~")+")":"~null";default:return undefined}};void 0!==e&&(e.UserTimingCompression=n)}("undefined"!=typeof window?window:undefined);!function(){if(!BOOMR.plugins.UserTiming){var s={complete:!1,initialized:!1,supported:!1,options:{from:0,window:BOOMR.window},getUserTiming:function(){var e=this.findUserTimingForFrame(s.options.window);s.options.from&&(e=e.filter(function(e){return e.startTime+e.duration>=s.options.from}));var t,n=window.UserTimingCompression||BOOMR.window.UserTimingCompression;if(void 0===n){if(0===e.length)return null;for(var r={},i=0,o=e.length;i<o;i++){var a=e[i];r[a.entryType]=r[a.entryType]||{};"mark"===a.entryType?r[a.entryType][a.name]=a.startTime:"measure"===a.entryType&&(r[a.entryType][a.name]=a.duration)}return JSON.stringify(r)}t=n.compressUserTiming(e);return n.compressForUri(t)},addEntriesToBeacon:function(e){var t,n=BOOMR.hrNow();if(!(this.complete||e&&"undefined"!=typeof e.early)){(t=this.getUserTiming())&&BOOMR.addVar("usertiming",t,!0);this.options.from=n;this.complete=!0}},findUserTimingForFrame:function(e){var t;if(!e)return[];try{e.location&&e.location.href;if(!("performance"in e&&e.performance&&e.performance.getEntriesByType))return t;t=(t=e.performance.getEntriesByType("mark")).concat(e.performance.getEntriesByType("measure"))}catch(n){return t}return t},clearMetrics:function(e){this.complete=!1},subscribe:function(){BOOMR.subscribe("before_beacon",this.addEntriesToBeacon,null,this);BOOMR.subscribe("beacon",this.clearMetrics,null,this)},pageReady:function(){this.checkSupport()&&this.subscribe()},checkSupport:function(){if(this.supported)return!0;var e=BOOMR.getPerformance();if(e&&"function"==typeof e.getEntriesByType){var t=e.getEntriesByType("mark"),n=e.getEntriesByType("measure");if(BOOMR.utils.isArray(t)&&BOOMR.utils.isArray(n)){BOOMR.info("Client supports UserTiming API","usertiming");return this.supported=!0}}return!1}};BOOMR.plugins.UserTiming={init:function(e){if(s.initialized)return this;s.checkSupport()?s.subscribe():BOOMR.subscribe("page_ready",s.pageReady,null,s);s.initialized=!0;return this},is_complete:function(){return!0},is_supported:function(){return s.initialized&&s.supported}}}}();!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){var u=o.apply(a,e);"function"==typeof t&&t.call(n,u)}}}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.Early){var n={initialized:!1,autorun:!0,earlyBeaconSent:!1,singlePageApp:!1,onConfigFired:!1,onSpaInit:function(){this.earlyBeaconSent=!1},clearMetrics:function(){BOOMR.removeVar("early")},sendEarlyBeacon:function(e,t){var n,r=0,i=BOOMR.getPerformance();if(n=BOOMR.window&&BOOMR.window.document){"onconfig"===t&&(this.onConfigFired=!0);i&&i.navigation&&(r=i.navigation.type);if(!(this.earlyBeaconSent||"prerender"===BOOMR.visibilityState()||1===r||2===r||!this.singlePageApp&&(!this.autorun||!this.onConfigFired&&"prerender_to_visible"===t||"loading"===n.readyState||BOOMR.hasBrowserOnloadFired())||this.singlePageApp&&!BOOMR.utils.inArray(t,BOOMR.constants.BEACON_TYPE_SPAS))){this.earlyBeaconSent=!0;BOOMR.addVar("early","1");if(e&&BOOMR.utils.inArray(e.initiator,BOOMR.constants.BEACON_TYPE_SPAS)){BOOMR.addVar("http.initiator",e.initiator);BOOMR.addVar("rt.start","manual")}BOOMR.fireEvent("before_early_beacon",e);BOOMR.sendBeacon()}}}};BOOMR.plugins.Early={init:function(e){if(e.primary||n.initialized)return this;"undefined"!=typeof e.autorun&&(n.autorun=e.autorun);n.singlePageApp=BOOMR.plugins.SPA&&BOOMR.plugins.SPA.isSinglePageApp(e);BOOMR.registerEvent("before_early_beacon");BOOMR.subscribe("config",n.sendEarlyBeacon,"onconfig",n,!0);BOOMR.subscribe("dom_loaded",n.sendEarlyBeacon,"dom_loaded",n,!0);BOOMR.subscribe("spa_init",n.onSpaInit,null,n);BOOMR.subscribe("prerender_to_visible",n.sendEarlyBeacon,"prerender_to_visible",n,!0);BOOMR.subscribe("beacon",n.clearMetrics,null,n);BOOMR.subscribe("before_beacon",function(e){"undefined"!=typeof e["rt.quit"]&&n.clearMetrics()},null,n);n.initialized=!0;return this},is_complete:function(){return!0},is_supported:function(){return n.initialized},sendEarlyBeacon:function(e,t){n.sendEarlyBeacon(e,t)}}}}();BOOMR.t_end=(new Date).getTime();