LH_start=+(new Date());(function(a){"use strict";if(a.LH!==undefined&&a.LH.version!==undefined){return}var e="0.9",d=(window.location.protocol||document.location.protocol||"http:")+"//lh.secure.yahoo.com/lhbeam-"+e,c="root",b={beacon_url:d,timelines:{},tags:{},beaconNumber:0,navtimingBeaconSent:false,beaconTimeout:10,onloadHandler:function(){setTimeout(b.onloadWorker,b.beaconTimeout)},onloadWorker:function(){var f=b.getPerformance();if(f.timing&&f.timing.loadEventEnd===0){setTimeout(b.onloadWorker,b.beaconTimeout)}else{LH.beacon()}},getBeaconUrl:function(){var f=this.beacon_url,g=a.document;if(!f){return f}f+=((f.indexOf("?")>-1)?"&":"?")+"_uuid="+(this.uuid===null||this.uuid===undefined?"":encodeURIComponent(this.uuid));f+="&_sid="+(this.spaceid===null||this.spaceid===undefined?"":encodeURIComponent(this.spaceid));f+="&_sip="+(this.serverip===null||this.serverip===undefined?"":encodeURIComponent(this.serverip));if(this["crumb"]){f+="&_crumb="+encodeURIComponent(this["crumb"])}if(this["pvid"]){f+="&_pvid="+encodeURIComponent(this["pvid"])}if(this.offset>0){f+="&offset="+this.offset}f+=((f.indexOf("?")>-1)?"&":"?")+"u="+encodeURIComponent(g.URL.replace(/#.*/,""));return f},metrics:[],checkElemInMetrics:function(g){if(!b.metrics||b.metrics.length==0){return true}for(var f in b.metrics){if(g===b.metrics[f]){return true}}return false},timelineFactory:function(f){return{state:0,name:f,startTime:parseInt(b.getPerformance().now()),dirty:false,tags:{entries:{},toString:function(){var g="",h;for(h in this.entries){if(!this.entries.hasOwnProperty(h)){continue}if(this.entries[h]===true){g+="|t:"+h}else{g+="|t:"+h+","+this.entries[h]}}return g}},type:{mark:{dirty:false,entries:{},toString:function(){var h="",g,j;for(g in this.entries){if(!this.entries.hasOwnProperty(g)||!b.checkElemInMetrics(g)){continue}h+="|m:"+g+",";for(j in this.entries[g]){h+=this.entries[g][j].startTime+";"}}return h}},measure:{dirty:false,entries:{},toString:function(){var h="",g,j;for(g in this.entries){if(!this.entries.hasOwnProperty(g)||!b.checkElemInMetrics(g)){continue}h+="|s:"+g+",";for(j in this.entries[g]){h+=this.entries[g][j].startTime+","+this.entries[g][j].duration+";"}}return h}},custom:{dirty:false,entries:{},toString:function(){var h="",g,j;for(g in this.entries){if(!this.entries.hasOwnProperty(g)||!b.checkElemInMetrics(g)){continue}h+="|r:"+g+",";for(j in this.entries[g]){h+=this.entries[g][j].type+","+this.entries[g][j].startTime+","+this.entries[g][j].duration+";"}}return h}}},toString:function(g){if(!g){g=""}return"c="+this.name+","+this.state+g+this.tags.toString()+g+this.type.mark.toString()+g+this.type.measure.toString()+g+this.type.custom.toString()}}},navTiming:function(){var h,l=b.getPerformance(),g,k,j,f;if(l&&l.timing&&l.navigation){g=l.navigation;k=l.timing;f=k.navigationStart;j={navT:g.type,navS:f,fetS:k.fetchStart-f,dluS:k.domainLookupStart-f,dluE:k.domainLookupEnd-f,conS:k.connectStart-f,conE:k.connectEnd-f,reqS:k.requestStart-f,resS:k.responseStart-f,resE:k.responseEnd-f,domL:k.domLoading-f,domI:k.domInteractive-f,domS:k.domContentLoadedEventStart-f,domE:k.domContentLoadedEventEnd-f,domC:k.domComplete-f,lodS:k.loadEventStart-f,lodE:k.loadEventEnd-f};if(typeof k.linkNegotiationStart!=="undefined"&&k.linkNegotiationStart!==0){j.lnkS=k.linkNegotiationStart-f}if(typeof k.linkNegotiationEnd!=="undefined"&&k.linkNegotiationEnd!==0){j.lnkE=k.linkNegotiationEnd-f}if(k.unloadEventStart!==0){j.uldS=k.unloadEventStart-f;j.uldE=k.unloadEventEnd-f}if(k.redirectStart!==0){j.redC=g.redirectCount;j.redS=k.redirectStart-f;j.redE=k.redirectEnd-f}if(typeof k.secureConnectionStart==="number"){j.secS=k.secureConnectionStart>0?Math.max(1,k.secureConnectionStart-f):0}j.toString=function(m){var n="n=",i=0,o;if(b.hasOwnProperty("tags")){for(o in b.tags){if(!b.tags.hasOwnProperty(o)){continue}n+=(i>0?"|":"")+"t:";if(b.tags[o]===true){n+=o}else{n+=o+","+b.tags[o]}i++}}for(h in this){if(!this.hasOwnProperty(h)||h==="toString"){continue}n+=(i>0?"|":"")+encodeURIComponent(h)+((this[h]===null||this[h]===undefined||parseInt(this[h])<=0)?"":","+encodeURIComponent(this[h]));i++}return n}}return j},offset:0,myNow:function(){if(b.offset==0){b.offset=LH_start}return(+(new Date()))-b.offset},getPerformance:function(){var f=a.performance||a.webkitPerformance||a.msPerformance||a.mozPerformance||a.Performance||{};if(typeof f.now!=="function"&&typeof f.webkitNow!=="function"&&typeof f.msNow!=="function"&&typeof f.mozNow!=="function"){f.now=b.myNow}f.now=f.now||f.webkitNow||f.msNow||f.mozNow;return f},getQueryParams:function(){var i={},h,g=/[?&]?([^=]+)=([^&]*)/g,f=window.location.search||document.location.search;f=f.split("+").join(" ");while(h=g.exec(f)){i[decodeURIComponent(h[1])]=decodeURIComponent(h[2])}return i}};if(!b.timelines.hasOwnProperty(c)){b.timelines[c]=b.timelineFactory(c)}a.LH={t_start:LH_start,version:e,isInitialized:false,init:function(g){var h,j,f=b.getQueryParams();if(!g){g={}}for(h in g){if(g.hasOwnProperty(h)&&typeof g[h]!=="function"){b[h]=g[h]}}for(h in f){if(f.hasOwnProperty(h)&&typeof f[h]!=="function"){b[h]=f[h]}}LH.isInitialized=true;if(typeof g.log!=="undefined"){this.log=g.log}if(!this.log){this.log=function(i,k,n){}}j=b.getPerformance();if(j.timing&&j.timing.loadEventEnd==0){if(a.addEventListener){a.addEventListener("load",b.onloadHandler,false)}else{if(a.attachEvent){a.attachEvent("onload",b.onloadHandler)}}}else{b.onloadHandler()}return this},metrics:function(f){if(typeof f==="string"){b.metrics=f.split(",")}else{if(f instanceof Array){b.metrics=f}}},newState:function(f){if(f!==undefined){if(!b.timelines.hasOwnProperty(f)){throw new TypeError("Context not found")}b.timelines.context.state++}if(f!=c){b.timelines[c].state++}},newContext:function(f){if(!b.timelines.hasOwnProperty(f)){b.timelines[f]=b.timelineFactory(f)}},tag:function(i,h){var j,g=c,f;if(h){j=h.val}if(h&&typeof h.context==="string"){g=h.context}f=b.timelines[g];if(j!==undefined){f.tags.entries[i]=j}else{f.tags.entries[i]=true}},mark:function(g,j){var i=c,h,k,f,l;if(!g){throw new TypeError("Not enough arguments")}if(j&&typeof j.context==="string"){i=j.context}h=b.timelines[i];k=h.type.mark,f=k.entries;if(!f[g]){f[g]=[]}l={duration:0,entryType:"mark",name:g,startTime:parseInt(b.getPerformance().now())};f[g].push(l);k.dirty=true;h.dirty=true;return l},measure:function(h,j){var l,q,k=c,p,m,o,i=[],g={name:h,entryType:"measure"},f,n;if(j){l=typeof j.startMark==="string"?j.startMark:l;q=typeof j.endMark==="string"?j.endMark:q;m=typeof j.startMark==="object"?j.startMark:null;o=typeof j.endMark==="object"?j.endMark:null;k=typeof j.context==="string"?j.context:k}p=b.timelines[k];f=p.type.measure;n=f.entries;if(!h){throw new TypeError("Not enough arguments")}if((q||o)&&!(l||m)){throw new SyntaxError("No startMark provided with endMark")}if(l||m){if(l){i=p.type.mark.entries[l]}if(!m&&i instanceof Array&&i.length>0){m=i[i.length-1]}else{if(!m){throw new SyntaxError("startMark not found")}}g.startTime=m.startTime;if(q||o){if(q){i=p.type.mark.entries[q]}if(!o&&i instanceof Array&&i.length>0){o=i[i.length-1]}else{if(!o){throw new SyntaxError("endMark not found")}}g.duration=o.startTime-m.startTime}else{g.duration=parseInt(b.getPerformance().now())-m.startTime}}else{g.startTime=0;g.duration=parseInt(b.getPerformance().now())}if(!n[h]){n[h]=[]}n[h].push(g);f.dirty=true;p.dirty=true;return g},record:function(g,l,j){var i=c,h,f,k;if(j&&typeof j.context==="string"){i=j.context}h=b.timelines[i];f=h.type.custom;k=f.entries;if(!k[g]){k[g]=[]}k[g].push(l);f.dirty=true;h.dirty=true;return l},clearMarks:function(i){var h=c,g,j,f;if(i&&typeof i.context==="string"){h=i.context}g=b.timelines[h];j=g.type.mark,f=j.entries;if(i&&typeof i.name==="string"){if(f[name]){f[name].length=0;j.dirty=true;g.dirty=true}}else{j.entries={};j.dirty=true;g.dirty=true}},clearMeasures:function(i){var h=c,g,j,f;if(i&&typeof i.context==="string"){h=i.context}g=b.timelines[h];j=g.type.measure,f=j.entries;if(i&&typeof i.name==="string"){if(f[name]){f[name].length=0;j.dirty=true;g.dirty=true}}else{j.entries={};j.dirty=true;g.dirty=true}},clearCustomEntries:function(i){var h=c,g,f,j;if(i&&typeof i.context==="string"){h=i.context}g=b.timelines[h];f=g.type.custom,j=f.entries;if(i&&typeof i.name==="string"){if(j[name]){j[name].length=0;f.dirty=true;g.dirty=true}}else{f.entries={};f.dirty=true;g.dirty=true}},clearTags:function(h){var g=c,f;if(h&&typeof h.context==="string"){g=h.context}f=b.timelines[g];if(h&&typeof h.name==="string"){if(f.tags.entries[name]){delete f.tags.entries[name];f.dirty=true}}else{f.tags.entries={};f.dirty=true}},beacon:function(h){var s,t,q,u,f,j=c,l,o,r,n,m,g,k=b.LH_debug&&(b.LH_debug===true||b.LH_debug==="true"||b.LH_debug==="1");if(b.hasOwnProperty("spaceid")){s=b.spaceid}if(b.hasOwnProperty("serverip")){t=b.serverip}if(b.hasOwnProperty("pvid")){q=b.pvid}if(b.hasOwnProperty("crumb")){u=b.crumb}if(h&&h.hasOwnProperty("spaceid")){b.spaceid=h.spaceid}if(h&&h.hasOwnProperty("serverip")){b.serverip=h.serverip}if(h&&h.hasOwnProperty("pvid")){b.pvid=h.pvid}if(h&&h.hasOwnProperty("crumb")){b.crumb=h.crumb}f=b.getBeaconUrl();if(s){b.spaceid=s}if(t){b.serverip=t}if(q){b.pvid=q}if(u){b.crumb=u}if(k){g=b.getPerformance();if(g.getEntriesByType){l=g.getEntriesByType("resource");console.log("Resources present: "+l.length);for(m in l){if(l[m].name.indexOf("lh-")>=0||l[m].name.indexOf("lighthouse")>=0){console.log("Time for lighthouse resource",l[m])}}}}if(!f){return this}if(!b.navtimingBeaconSent){o=b.navTiming();if(o&&o.lodE>0){f+=((f.indexOf("?")>-1)?"&":"?")+b.navTiming().toString();b.navtimingBeaconSent=true}}if(h&&typeof h.context==="string"){j=h.context}r=b.timelines[j];f+=((f.indexOf("?")>-1)?"&":"?")+r.toString();if(k){console.log("beacon url: "+f)}b.beaconNumber++;n=new Image();if(k){n.onload=n.onerror=n.onabort=function(p){var i=p;return function(){var w=LH.mark("LH.endBeacon"),v=LH.measure("LH.beacon",{startMark:i,endMark:w});console.log("beacon response received",v)}}(LH.mark("LH.startBeacon"))}n.src=f;if(h&&h.clearMarks){this.clearMarks()}if(h&&h.clearMeasures){this.clearMeasures()}if(h&&h.clearCustomEntries){this.clearCustomEntries()}if(h&&h.clearTags){this.clearTags()}return this}}}(window)); /* content-aft.js 8acb8a6 */ (function(B,L){if(B.YAFT!==undefined){return}var a,H=false,M=false,s=false,e=new Date().getTime(),o=false,m=L.documentElement,j={useNormalizeCoverage:true,useCustomSelector:false,canShowVisualReport:true,generateHAR:false,maxWaitTime:3000,modules:[],modulesExclude:[]},C,k=0,F=0,I=0,p=[],h={},r={},D=0,E={};function b(w){var N={},d;for(d in w){if(typeof(w[d])==="object"&&w[d]!==null){N[d]=b(w[d])}else{N[d]=w[d]}}return N}function z(W){var ad=navigator.userAgent,R=navigator.appVersion,w,U=a.timing,O=U.navigationStart,Y,P=new Date(O),S,V,ag,ac,N="200",Z="OK",X=-1,aa=0,d=0,af=0,ab=0,Q=0,ae=0,T=0;ag={log:{version:"1.2",creator:{name:"YAFT",version:"0.1.0"},browser:{name:ad,version:R},pages:[{startedDateTime:P.toISOString(),id:"Page_1",title:L.location.href,pageTimings:{onContentLoad:U.domInteractive-O,onLoad:U.loadEventEnd-O}}],entries:[],comment:""}};for(ac=0;ac0)){w=0}return{url:d.name,start:d.startTime+w,duration:d.duration,durationFromNStart:(d.duration>0)?(d.duration+d.startTime+w):d.startTime+w,redirectStart:d.redirectStart+w,redirectDuration:d.redirectEnd-d.redirectStart,appCacheStart:0,appCacheDuration:0,dnsStart:d.domainLookupStart+w,dnsDuration:d.domainLookupEnd-d.domainLookupStart,tcpStart:d.connectStart+w,tcpDuration:d.connectEnd-d.connectStart,sslStart:0,sslDuration:0,requestStart:d.requestStart+w,requestDuration:d.responseStart-d.requestStart,responseStart:d.responseStart+w,responseDuration:d.responseStart===0?0:d.responseEnd-d.responseStart}}function i(){var d=a.timing;return{url:L.location.href,start:0,duration:d.responseEnd-d.navigationStart,durationFromNStart:d.responseEnd-d.navigationStart,redirectStart:d.redirectStart===0?0:d.redirectStart-d.navigationStart,redirectDuration:d.redirectEnd-d.redirectStart,appCacheStart:0,appCacheDuration:0,dnsStart:d.domainLookupStart-d.navigationStart,dnsDuration:d.domainLookupEnd-d.domainLookupStart,tcpStart:d.connectStart-d.navigationStart,tcpDuration:d.connectEnd-d.connectStart,sslStart:0,sslDuration:0,requestStart:d.requestStart-d.navigationStart,requestDuration:d.responseStart-d.requestStart,responseStart:d.responseStart-d.navigationStart,responseDuration:d.responseEnd-d.responseStart}}function l(){return{win:B,doc:L,docElem:m,viewportWidth:(m.clientWidth=0&&d.right>=0)},getElementCoverage:function(N){var w=this.getElementBounds(N),d,O;if(w.right<0){d=0}else{if(w.right>this.viewportWidth){if(w.left>=0){d=this.viewportWidth-w.left}else{d=this.viewportWidth}}else{if(w.left<0&&w.right>0){d=w.right}else{d=w.width}}}if(w.bottom<0){O=0}else{if(w.bottom>this.viewportHeight){if(w.top>=0){O=this.viewportHeight-w.top}else{O=this.viewportHeight}}else{if(w.top<0&&w.bottom>0){O=w.bottom}else{O=w.height}}}return d*O},getElementPercentage:function(N){var O=this.getElementCoverage(N),d=this.getViewportArea(),w=(O*100)/d;return Math.round(w)>0?w:0}}}function y(V,T){var W="",P,N,w,U,d,O,Q=false,R=(T&&T.length)?T.length:0,S=(V&&V.length)?V.length:0;for(P=0;P=0;N--){W=d[N].id;Q=false;for(w=0;w0){for(S=0;S0&&C.isInViewport(P,true)){O.push(n(Q[0]))}}}}T=O.length;if(T>0){for(S=0;SN){N=O[S].start}if(O[S].durationFromNStart>d){d=O[S].durationFromNStart}}}}else{U=true;if(R.modStart){N=R.modStart}if(R.modEnd){d=R.modEnd}}return{isCustom:U,start:N,loadTime:d,name:V.id,resources:O,inViewPort:C.isInViewport(V.id),coverageArea:C.getElementCoverage(V.id),coveragePercentage:C.getElementPercentage(V.id)}}function q(O){var d,N=0,w=0;for(d in O){if(O.hasOwnProperty(d)){N=O[d].coveragePercentage;if(O[d].inViewPort&&Math.round(N)>0){w+=N}}}return w}function f(w){var N,d=w.length;for(N=0;N0){if(j.useNormalizeCoverage){O[P].normCoveragePercentage=(O[P].coveragePercentage/F)*100;S+=O[P].normCoveragePercentage}if(O[P].loadTime>0){Q=Math.round(O[P].loadTime/100);d[Q]+=j.useNormalizeCoverage?O[P].normCoveragePercentage:O[P].coveragePercentage}}}for(Q=1;Q0)){T(null,"No timings available");return}if(!C){C=l()}y(j.modules,j.modulesExclude);G(r);R=YAFT.getFinalModulesReport();F=q(R);P=J(R);I=P.normTotalCoveragePercentage;p=c();Q=u(p);D=f(P.aftIntervals);if(j.generateHAR){S=z(h)}O={aft:P.aft,pageLoadTime:d,startRender:N,domInteractive:U,ttfb:w,event:V,modulesReport:R,totalCoveragePercentage:F,normTotalCoveragePercentage:I,domElementsCount:W,resources:h,har:S,costlyResources:p,httpRequests:Q,visuallyComplete:D};if(T){YAFT.logToConsole(O);YAFT.logToConsole(P.aftIntervals);T(O)}if(s===true&&j.canShowVisualReport&&B.YAFT_REPORT&&B.YAFT_REPORT.drawReport){B.YAFT_REPORT.drawReport(O)}}function g(w,d){if(o||!H){return}o=true;if(!M){d(null,"Nav or resource timing or both are not available");return false}if(j.maxWaitTime&&j.maxWaitTime>0){setTimeout(function(){K(w,d)},j.maxWaitTime)}else{K(w,d)}}B.YAFT={triggerPerf:g,triggerCustomTiming:function(N,P,d){if(!M){return false}var w,O;if(YAFT.isInitialized()){if(!C){C=l()}if(this.getConfig().useCustomSelector){w=L.querySelectorAll(N)}else{w=L.querySelectorAll('div[id^="'+N+'"], section[id^="'+N+'"], ul[id^="'+N+'"]')}if(w&&w.length>0){O=w[0];r[O.id]=O;A(O,{modStart:P,modEnd:d})}}},getFinalModulesReport:function(){return E},reset:function(){H=true;o=false;r=[]},perfExists:function(){return M},isInitialized:function(){return H},getConfig:function(){return j},getPerformance:function(){return B.performance||B.webkitPerformance||B.msPerformance||B.mozPerformance||B.Performance},getRequestAnimationFrame:function(){return B.requestAnimationFrame||B.webkitRequestAnimationFrame||B.mozRequestAnimationFrame||B.msRequestAnimationFrame||function(d){return B.setTimeout(d,1000/60)}},init:function(w,N){var d;this.reset();a=this.getPerformance();if(a&&a.timing&&(a.getEntriesByType!==undefined||a.webkitGetEntriesByType!==undefined)){e=a.timing.navigationStart;a.now=a.now||a.webkitNow||a.msNow||a.mozNow||function(){return new Date().getTime()-e};M=true}else{N(null,"Nav or resource timing or both are not available");return false}if(this.getQueryStrings().showaft){s=true}for(d in w){if(j.hasOwnProperty(d)&&w.hasOwnProperty(d)){if(j[d]!=="undefined"){j[d]=w[d]}}}if(a.timing.loadEventStart>a.timing.navigationStart){YAFT.triggerPerf("deferred",N)}else{if(B.addEventListener){B.addEventListener("load",function(){YAFT.triggerPerf("load",N)},false);B.addEventListener("unload",function(){YAFT.triggerPerf("unload",N)},false)}else{if(B.attachEvent){B.attachEvent("onload",function(){YAFT.triggerPerf("load",N)});B.attachEvent("onunload",function(){YAFT.triggerPerf("unload",N)})}}}},getDomElementsCount:function(){return L.getElementsByTagName("*").length},getTTFB:function(){return M?a.timing.responseStart-e:0},getPageLoadTime:function(){return M?a.timing.loadEventStart-e:0},getStartRenderTime:function(){return M?a.timing.domContentLoadedEventStart-e:0},getDomInteractive:function(){return M?a.timing.domInteractive-e:0},getNow:function(){return M?a.now():0},getQueryStrings:function(){var w={},P="",O=B.location.search.slice(1).split("&"),N=0,d=O.length||0;for(N=0;N