var BM=BM||{};BM.config={B:{timeout:1e3,delay:750,maxUrlLength:300,sendlimit:20},V:{distance:20},N:{maxUrlLength:300},E:{buffer:30,timeout:5e3,maxUrlLength:300},C:{distance:50}},function(n){function ot(){if(!document.querySelector||!document.querySelectorAll){y({FN:"init",S:"QuerySelector"});return}v={};f=[];g=1;d=0;k=0;e=[];o=0;s=!1;var n=Math.floor(Math.random()*1e4).toString(36);t={P:{C:0,N:0,I:n,S:kt,M:i,T:0,K:i,F:0}};ri()}function dt(n,t){var r={};for(var i in n)i.indexOf("_")!==0&&(i in t&&(n[i]!==t[i]||i==="i")?(r[i]=t[i],n[i]=t[i]):r[i]=null);return r}function gt(n){var i={};for(var t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}function tt(n,t,i){if(!s){y({FN:"snapshot",S:n});return}i=i||yt;t=t||!1;var r=w()+i;it(e,n)===-1&&e.push(n);t?(st(),ht(t)):r>o&&(st(),k=sb_st(ht,i),o=r)}function y(n){var f={T:"CI.BoxModelError",FID:"CI",Name:ut,SV:ft,P:t&&"P"in t?p(t.P):i,TS:r(),ST:l},u,e;for(u in n)f[u]=n[u];e=p(f);ct(e)}function st(){o>0&&(sb_ct(k),o=0)}function ht(n){var i,u;if(!s){y({FN:"send",S:e.join(c[1])});return}(g<=wt||n)&&(t.P.S=e.join(c[1]),t.P.F=n?1:0,t.P.M=ui(),i=r(),ni(),t.P.T=r(),t.P.N=g++,t.P.C+=r()-i,u=ti(t),t.P.C=0,ct(u),e=[],o=0)}function ni(){s&&rt("compute")}function ct(n){if(lt(window,"Log2")&&Log2.LogEvent&&JSON)Log2.LogEvent("ClientInst",JSON.parse(n),null,null,null,null,null,null);else{var i=w(),r="Event.ClientInst<\/T>"+_G.IG+"<\/IG>"+i+"<\/TS>","]]]\]>")+"]]\]><\/D><\/E>",u=""+r+"<\/Events>"+i+"<\/STS><\/ClientInstRequest>",t=sj_gx();t.open("POST","/fd/ls/lsp.aspx",!0);t.setRequestHeader("Content-Type","text/xml");t.send(u)}sj_evt.fire("BM",n)}function p(n){var r=i,u,t;for(u in n)if(t=n[u],t!==i){var o=typeof t=="number",f='"',e=o||t.indexOf("{")===0?i:f;r+=f+u+f+":"+e+t+e+","}return"{"+(r.length>0?r.substr(0,r.length-1):i)+"}"}function ti(n){function g(n,t){function y(n){return n.replace(bt,encodeURIComponent)}var h=!0,f=[],u,r,e,s,o,l,v;if(t=t||1,!("_c"in n)||t<=1){for(u in n)if(r=n[u],s=u.charCodeAt(0)>=65&&u.charCodeAt(0)<=90,s&&f.push(u),u.indexOf("_")===0)continue;else typeof r=="number"?(e=parseInt(r.toString()).toString(36),f.push(e),nt(e)):typeof r=="string"?(e=y(r),f.push(e),nt(e)):r==null?f.push(i):typeof r=="object"&&(o=g(r,t+1,u),(o&&o.length>0||s)&&f.push(o),h=!1);h&&(n._c=!0)}return l=c[t],v=f.join(a+l+a),v}function nt(n){n.length>2&&(n in w&&it(f,n)===-1?f.push(n):w[n]=1)}var tt=r(),w={},h={T:"CI.BoxModel",FID:"CI",Name:ut,SV:ft,P:i},e={},s,b,u,o,k,l,y;for(u in n)u!=="P"&&(s=g(n[u]),s&&s.length>0&&(e[u]=s.split(a)));b=f.slice(d).join(c[1]);d=f.length;t.P.K=b;for(u in e){if(u!=="M")for(o=0;o=0&&(e[u][o]=a+l.toString(36));y=e[u].join(i);u in v&&v[u]===y||(h[u]=v[u]=y)}return t.P.C+=r()-tt,h.P=p(t.P),p(h)}function it(n,t){for(var i=0;i0?f:-1;var ut="innerWidth"in window?window.innerWidth:r.clientWidth,ft="innerHeight"in window?window.innerHeight:r.clientHeight,et=window.pageXOffset||r.scrollLeft,ot=window.pageYOffset||r.scrollTop,st=s in document?document[s]:c;for(o=n.exists(window,"devicePixelRatio")?window.devicePixelRatio:-1,it={t:n.time(),x:et,y:ot,w:ut,h:ft,dw:h.clientWidth,dh:h.clientHeight,d:o,s:f,v:st,e:c},g=n.dequeue("V"),g.push({t:it.t,i:it}),rt=0;rt1){if(f=r[1]?"visible":"hidden",r.length>2)switch(r[2]){case 0:f="apphidden";break;case 1:f="appvisible";break;case 2:f="webvisible"}e=n.clone(i[t]);e.t=n.time();e.v=f;e.e="cortana";u.push(e);n.snapshot(t,f==="hidden")}}function p(){var f=n.clone(i[t]);f.t=n.time();f.w="innerWidth"in window?window.innerWidth:r.clientWidth;f.h="innerHeight"in window?window.innerHeight:r.clientHeight;f.v="peekexpand";f.e="cortana";u.push(f);n.snapshot(t)}function w(n,t){var i=n.x-t.x,r=n.y-t.y;return Math.sqrt(i*i+r*r)}function it(r){for(var f,o,s=u.length,e=0;ek)&&(e===0?n.metric(1,f.t):l+=w(f,o),r[t].push(n.delta(i[t],f)),o=f);n.metric(8,parseInt(l));u=[]}function rt(){sj_ue(window,"scroll",a);sj_ue(window,"resize",v);sj_ue(window,"pageshow",e);sj_ue(window,"pagehide",e);s in document&&(sj_ue(document,"visibilitychange",e),sj_evt.unbind("visibility",y),sj_evt.unbind("peekexpand",p));u=[]}var t="V",o,f,h,b="",c="default",s="visibilityState",i,u=[],k=n.config[t].distance,r,d,l,ut=n.extend({id:t,load:g,compute:it,unload:rt});ut&&(n.viewport=nt)}(BM),function(n){function b(r){r[t]=[];f=r;s=document.body;i={};i[t]=[];u=n.dequeue("L");l(document,n.time());u=[]}function k(){return i[t]}function l(n,t){var i,e,u;if(n.querySelectorAll)for(i in h){var f=h[i],o=f[0],s=f[1];for(i+=!f[2]?r:" >*",e=n.querySelectorAll(i),u=0;u0}function v(n){while(n&&n.hasAttribute&&n!==document.body){if(n.hasAttribute("data-bm"))return parseInt(n.getAttribute("data-bm"));n=n.parentElement}return null}function g(n,r,u,f){var o,e;if(n){for(o=i[t],e=0;e-1?(o=n.layout()[a],l=o&&o._e===t?o.p:p(t)):l=p(t);e={t:f,i:null,s:nt(t),k:r,x:0,y:0,w:t.offsetWidth,h:t.offsetHeight,z:0,e:u,p:l,_e:t,_s:r,_ex:-1,_ey:-1};t.tagName==="IMG"||e.s.indexOf("rms_img")>=0?(h=v(t),e.k=h&&h=0?r:e.k);c=t;try{if(t.offsetParent)do e.x+=t.offsetLeft,e.y+=t.offsetTop;while(t=t.offsetParent)}catch(w){e.x=null;e.y=null}while(c!==s&&(c=c.parentElement))e.z++;return e}function tt(t){try{if(n.exists(t,"src")&&t.src.indexOf("data:")!==0)return t.src?t.src:r}catch(i){}return r}function p(n){for(var t=Number(n.getAttribute(e+w))||Number(n.getAttribute(e+c))||-1;(n=n.parentElement)&&t===-1;)t=Number(n.getAttribute(e+c))||t;return t}function it(){for(var u,s,f=i[t],e=n.time(),r=0;r0&&(r=s,n.snapshot(i))}}function h(n){var t=n.offsetWidth>=20||n.offsetHeight>=20,i=r.indexOf(n.parentNode)>=0;return t&&!i}function c(){}function l(){t&&t.disconnect();t=null;r=[]}var i="MT",r=[],t,u,f;n.register({id:i,check:e,load:o,compute:c,unload:l})}(BM),function(n){function g(){return!0}function nt(n){n[u]=[];d=n;c=0;e=0}function tt(i){for(var k,nt,a,tt,rt=n.viewport().w,g=n.layout(),b=0;b=0?rt-h-r.offsetWidth:h,h>=0&&!p(o.x,h)&&(w=o.k.length===0?y(r):w,i[u].push({t:n.time(),l:o.i,e:"X",v:Math.abs(o.x-h),m:w}),e++),d>=0&&!p(o.y,d)&&(w=o.k.length===0?y(r):w,i[u].push({t:n.time(),l:o.i,e:"Y",v:Math.abs(o.y-d),m:w}),e++),r.tagName!=="IMG"||o.i in t||(a=it(r),a&&(k=n.exists(r,k)?r[k]:!0,nt=n.exists(r,s)?r[s]>0:!0,k?nt||(t[o.i]={_e:r,_s:a,_d:!0,_b:!1},v(b,a)):(t[o.i]={_e:r,_s:a,_d:!1,_b:!0},l(r,!0)))),r.tagName!=="DIV"||!r.hasAttribute("data-src")||o.i in t||(a=r.getAttribute("data-src"),tt=r.style.backgroundImage,tt||(t[o.i]={_e:r,_s:a,_d:!1,_b:!1},l(r,!1))))}n.metric(5,e);n.metric(6,c)}function it(t){try{if(n.exists(t,"src"))return t.src?t.src:f}catch(i){}return f}function l(n,t){t&&(sj_be(n,"load",r),sj_be(n,"error",r));i||(i=sb_st(a,k))}function r(n){var t=window.event||n,i=sj_et(n);return a(t.type,i)}function a(u,f){var s=0,e,o,h;for(e in t)if(!t[e]._d&&(!f||t[e]._e===f)&&(o=t[e]._e,h=o.tagName==="IMG"?!o[w]||u&&u==="error":!o.style.backgroundImage,t[e]._b&&(sj_ue(o,"load",r),sj_ue(o,"error",r)),h&&(v(e,t[e]._s),s++),t[e]._d=!0,f))return;s>0&&n.snapshot("E");i=0}function v(){}function y(n){var t=n.querySelector("a");return t&&t.href?t.href.substr(0,b):f}function p(n,t){return n>=t-h&&n<=t+h}function rt(){var u,n;for(u in t)n=t[u],n._b&&!n._d&&(sj_ue(n._e,"load",r),sj_ue(n._e,"error",r));i&&(sb_ct(i),i=0);t={}}var u="E",f="",w="complete",s="naturalWidth",o=n.config[u],h=o.buffer,b=o.maxUrlLength,k=o.timeout,i=0,c,e,t={},d;n.register({id:u,check:g,load:nt,compute:tt,unload:rt})}(BM),function(n){function b(){return _w.performance&&performance.now&&performance.getEntries}function k(t){t[r]=[];l[r]=[];f=performance.timing.loadEventEnd-performance.timing.navigationStart;h=n.viewport();c=0;g()}function d(u){var k,it,d,v,tt,rt;if(r in l){var ct=u[r],p=l[r],kt=performance.timing,ut=performance.getEntries();for(v=0;v=0&&g.indexOf("progrender=1")===-1&&(i=o.startTime,f=o.duration),v=0;v=0||w[1]===e){ft=!1;break}ft&&c++;var et=t(o.startTime,i),lt=s(o.duration),at=t(o.connectStart,i),vt=o.secureConnectionStart===0?0:t(o.secureConnectionStart,i),yt=t(o.connectEnd,i),pt=t(o.requestStart,i),wt=t(o.responseStart,i),bt=t(o.responseEnd,i),ot=null,st=n.layout();for(tt=0;tt=0?f.substr(0,a):f,t=t.indexOf(o)===0?t.substr(1):t,r=u.search.toLowerCase(),y=l.length>0?t.substr(0,v):n.substr(0,v),r.length>0&&(h=r.indexOf("event."))>0&&(c=r.indexOf("&data"))>0?(t=r.substr(h,c-h).replace("event.",e),t==="clientinst"&&(s=w.exec(r.replace(/%22/g,'"')),s!=null&&s.length>1&&(t=s[1]))):t.indexOf("rms/")===0&&(i=t.split(o))&&i.length>1?t=i[1].replace("rms%20answers%20",e).replace(".source",e):(i=t.split(o))&&i.length>=2&&(t=i[i.length-2]+o+i[i.length-1]),[f,l,t,y]}function t(n,t){return n&&n>0?s(n-t):-1}function s(n){return n<-1?-1:parseInt(n)}function tt(){}var r="N",a=0,i=0,f,h,c,v=n.config[r].maxUrlLength,u=document.createElement("A"),e="",o="/",p=":",w=/"name":"(.*?)"/,l={},y=[location.hostname,"live.com","virtualearth.net","bing.net","msedge.net","skype.com","microsofttranslator.com","footprintdns.com","testanalytics.net","footprintpredict.com"];n.register({id:r,check:b,load:k,compute:d,unload:tt})}(BM),function(n){function p(){return!0}function w(n){i=1;n[t]=[];y=n;s=document.documentElement;r=[];o=0;f={};l(sj_be,h);b();i=2}function l(n,t){for(var o,f,i,r=0;r=0;i--)u[i]===f&&u.splice(i,1)}function b(){for(var r,i=n.dequeue("EVT"),t=0;t0?f.touches[0]:null,h=f.pointerType||f.type.indexOf("touch")==0&&"touch"||"mouse",l={_e:f.target,t:e||n.time(),l:null,e:f.type,p:h,b:n.exists(f,"button")?f.button:null,x:o?o.pageX:"pageX"in f?f.pageX:"clientX"in f?f.clientX+s.scrollLeft:null,y:o?o.pageY:"pageY"in f?f.pageY:"clientY"in f?f.clientY+s.scrollTop:null,s:n.exists(f,"buttons")?f.buttons:null};return r.push(l),i===2||i===1?n.snapshot(t):c||(n.error({FN:"enqueue",S:"C",ET:f.type,EVTS:u.join("+")}),c=!0),!0}function a(n,t){var i=n.x-t.x,r=n.y-t.y;return Math.sqrt(i*i+r*r)}function d(i){var h=r.length,e,s,u;if(h>0){for(e=(t in f)?f[t]:null,s=0;sv)&&(u.l=n.match(u._e),e===null?(n.metric(1,u.t),e=f[t]=n.clone(u),i[t].push(u)):(o+=a(u,e),i[t].push(n.delta(e,u))));r=[]}n.metric(9,parseInt(o))}function g(){i=3;l(sj_ue,h);i=4}var t="C",r=[],f={},v=n.config[t].distance,e=["click","mousedown","mouseup","mousemove","touchstart","touchend","touchmove"],o,s,y,c=!1,i=0,u=[];n.register({id:t,check:p,load:w,compute:d,unload:g})}(BM),function(n){function e(){return!0}function o(n){n[t]=[];u=n;f(sj_be,i);s()}function f(n,t){for(var u,i=0;i0&&location.href.indexOf("&rdr=1")===-1&&location.href.indexOf("?")>0?(h=location.href+"&rdr=1"+(_G&&_G.IG?"&rdrig="+_G.IG:""),typeof sj_lc!="undefined"?window.sj_lc(h):location.href=h):(c=document.getElementById("b_content"),c&&(c.style.visibility="visible")))}function f(n,t){for(var r,i=0;i0&&r(t[0].i,t[0].t)}function r(u,e){if(i){u=u||_w.event;var s=""+Math.round((new Date).getTime()/1e3);o[t].push({t:e||n.time(),e:u.type,s:s});sj_cook.set("_SS","HV",s,!1,"/");i=!1;f(sj_ue,r);n.metric(10,1);n.snapshot(t)}return!0}function a(){}function v(){i&&(f(sj_ue,r),i=!1)}var t="BD",e=["click","mousedown","mouseup","touchstart","touchend","mousemove","touchmove","scroll","keydown","resize"],o,i=!1,u=n.config[t],s=u&&u.basic?u.basic:!1;n.register({id:t,check:h,load:c,compute:a,unload:v})}(BM)