(function() { try { window._mnHM = window._mnHM || {}; window._mnHM.serverUrl = "http://hm.medianetadvertising.com/heatmap/hm?"; window._mnHM.forceHM = 0;!function(n,t){"use strict";function e(){function e(n,t){for(var e in t)t.hasOwnProperty(e)&&("def"===e?h.appendObj(t.def,M):(M[n]=M[n]||{},t[e]instanceof Array?(M[n][e]=M[n][e]||[],M[n][e]=M[n][e].concat(t[e])):t[e]instanceof Object&&(M[n][e]=M[n][e]||{},h.appendObj(t[e],M[n][e]))))}function a(){var n=encodeURIComponent(JSON.stringify(M));n.length>y&&(o(),i())}function o(n){var e=s+"d="+encodeURIComponent(JSON.stringify(M));(l>u||n)&&(u++,g===t||n?(new Image).src=e:g(e))}function i(){M={}}function v(){h.isObjectEmpty(M)||(p&&(M.init=1,M.cid=n._mnHM.cid,p=!1),o(),i(),c=r),setTimeout(v,c)}var M={};this.push=function(n,t,r){h.isSet(t)&&(a(),e(n,t)),r&&(f++,f===d&&(o(!0),i()))},this.register=function(){d++},h.addListener(m,"load",v)}function a(){if(h.validate(),m&&(m._mnHM=m._mnHM||{},m._mnHM.container===t)){var a,o=n._mnHM.loggingConfig;a=o==t||o.loggingPercentage==t?i:o.loggingPercentage,(n._mnHM.forceHM||Math.floor(100*Math.random())-1&&this.userAgent.indexOf("mobile")>-1&&this.deviceType.getId()!==o.getId()&&(this.deviceType=i),this.deviceType.getId()===a.getId()&&"ontouchstart"in e&&(this.deviceType=n))};r.deviceListPriority=[o,i,a,n],r.prototype.detectDeviceType=function(){for(var e=r.deviceListPriority,t=0;t0||A>=R){var e=X.getWireData();X.send(e),h()}setTimeout(f,M)}function l(e){if(C>A&&100*Math.random()1||r.y<0||r.y>1?null:d(s)?(r.x=Math.round(1e5*r.x)/1e5,r.y=Math.round(1e5*r.y)/1e5,{xPath:s,x:r.x,y:r.y}):null}function w(e){var t=null;try{t=b(e)}catch(n){}return t}function E(){try{e.top!=e&&(e.location.href===e.top.location.href?(Y=e.top,Y._mnHM=Y._mnHM||{}):Y=!1),N=H.clientWidth||Y.innerWidth,F=u();var t=i;Y&&(t=Y._mnHM.hmStatus2),("d"===F&&(990>N||null===N)||"NA"===F||!d(L)||!d(D)||t!==i)&&(B=!1)}catch(n){B=!1,Y=!1}}function x(){W||(r(!1,Y.document,"mousemove",l,P,O),o(Y.document,"click",m),o(Y,"unload",p),f(),W=!0)}function T(){return Y.document.documentElement&&0!==Y.document.documentElement.clientHeight?Y.document.documentElement:Y.document.body}function k(){E(),Y&&B&&(Y._mnHM.hmStatus2=1,H=T(),Y._mnHM.container.register(),s(Y.document,x))}n=n||{};var N,D=n.requrl,L=n.cid,M=3e4,P=600,O=200,H={},I={},_={},A=0,S=0,C=15,R=5,j=4,B=!0,W=!1,F="NA",Y=e,U=function(){try{return Node.DOCUMENT_TYPE_NODE}catch(e){return 10}}(),q=function(){try{return Node.ELEMENT_NODE}catch(e){return 1}}(),K={article:"A",aside:"AS",blockquote:"BQ",button:"B",canvas:"C",center:"CE",code:"CO",dialog:"DI",div:"D",form:"F",footer:"FO",frame:"FR",header:"H",iframe:"IF",img:"I",input:"IN",label:"L",link:"LN",nav:"N",object:"O",option:"OP",pre:"P",section:"SC",select:"SE",span:"S",strong:"ST",table:"T",tbody:"TB",thead:"TH",textarea:"TA"},X={send:function(e,t){var n=Y._mnHM.container,i=n.constructor.Datatype;n.push(i.HM,e,t)},getDefaultParams:function(){return{cid:L,url:decodeURIComponent(D),t:F}},getWireData:function(){var e={def:X.getDefaultParams(),mc:[_]};return c()||0===A||(e.mm=[I]),e}};e._mnHM.logEnabled&&k()}(window,document,_mnHM);!function(e,t,n,i){"use strict";function o(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function d(e){return e!==i&&""!==e&&null!==e}function s(e,t){/complete|interactive|loaded/.test(Z.document.readyState)?t.apply():e.addEventListener?e.addEventListener("DOMContentLoaded",t,!1):e.attachEvent&&e.attachEvent("onreadystatechange",function(){"complete"===e.readyState&&t.apply()})}function a(){var t=function(e,t,n){this.id=e,this.name=t,this.regexp=n};t.prototype.getName=function(){return this.name},t.prototype.getId=function(){return this.id},t.prototype.getRegexp=function(){return this.regexp};var n=new t("NA","UNKNOWN_DEVICE",new RegExp("")),i=new t("m","MOBILE",new RegExp("fennec/|mobile|phone|iphone|ipod|blackberry|playbook|bb10|android|palm|windows\\s+ce|s60;\\ssymbos|series\\s60|series40|samsung-gt-|sonyericsson|nokia|samsung\\sgt|nokia|maui\\sruntime|j2me/midp|brew|docomo/[\\d]+.[\\d]+|mi\\s3w\\smiui|maui\\swap\\sbrowser")),o=new t("t","TABLET",new RegExp("hudl ht7s3 build|kindle( |/)|ipad|tablet|playbook|smart\\stab|gt-n8000|gt-n8013|gt-p[\\d][\\d][\\d][\\d]|me371mg|nexus\\s(7|8|9|[\\d][\\d])\\sbuild/|sm-t[\\d][\\d][\\d]|\\ssgp[\\d][\\d][\\d] build/|touchpad build|venue7\\s[\\d][\\d][\\d][\\d]\\s|gt-n5100 build|lenovoa3300[-]hv|kfjwi\\sbuild/|shw-m\\d\\d\\d[a-z]\\sbuild/|smarttab10-|sony\\stablet\\s(s|p)\\s|huawei\\smediapad\\sbuild|thinkpad\\stablet\\s|vodafone\\ssmarttab|(kfapwa|kfapwi|kfarwi|kfaswi|kfjwa|kfjwi|kfot|kfsawa|kfsawi|kfsowi|kfthwa|kfthwi|kftt)\\sbuild|ideatab\\s|mediapad\\s[\\d]+\\slite\\sbuild|mid\\d\\d\\d\\d\\sbuild/")),d=new t("d","DESKTOP",new RegExp("windows|win([\\d][\\d]|nt)(\\s|;|[)])|windows\\snt\\s\\d[.]\\d|cros;|cros\\s|linux|os\\s+[x9]|solaris|bsd|x11|mac_powerpc|macintosh")),s=function(t){this.deviceType=n,t&&(this.userAgent=t.toLowerCase(),this.deviceType=this.detectDeviceType(),this.userAgent.indexOf("android")>-1&&this.userAgent.indexOf("mobile")>-1&&this.deviceType.getId()!==o.getId()&&(this.deviceType=i),this.deviceType.getId()===d.getId()&&"ontouchstart"in e&&(this.deviceType=n))};s.deviceListPriority=[o,i,d,n],s.prototype.detectDeviceType=function(){for(var e=s.deviceListPriority,t=0;t0){var e=$.getWireData();$.send(e),p()}setTimeout(r,z)}function m(){Y?g():L=(new Date).getTime(),Y=!1,setTimeout(m,P)}function l(){Y=!0}function f(){Y=!1}function h(){g();var e=$.getWireData();$.send(e,!0),p()}function p(){F.length=0}function g(){var e=v();"object"==typeof e&&null!==e&&0!=e.t&&F.push(e.s,e.v,e.t),L=(new Date).getTime()}function v(){var e=new Date,t=e.getTime()-L;if(c()){var n=I/N,i=W/N;return 1>n&&1>i&&t>0&&V>t?{s:Math.round(1e5*n)/1e5,v:Math.round(1e5*i)/1e5,t:Math.round(t/100)}:null}return I>=0&&W>q&&V>t?{s:Math.round(I),v:W,t:Math.round(t/100)}:null}function y(){var e=Z.document;"undefined"!=typeof Z.innerWidth?(_=Z.innerWidth,W=Z.innerHeight):"undefined"!=typeof e.documentElement&&"undefined"!=typeof e.documentElement.clientWidth&&0!==e.documentElement.clientWidth?(_=e.documentElement.clientWidth,W=e.documentElement.clientHeight):(_=e.getElementsByTagName("body")[0].clientWidth,W=e.getElementsByTagName("body")[0].clientHeight)}function b(){N=0,O=0;var e=Z.document;"undefined"!=typeof e.body&&(N=Math.max(e.body.scrollHeight||0,e.body.offsetHeight||0,N),O=Math.max(e.body.scrollWidth||0,e.body.offsetWidth||0,O)),"undefined"!=typeof e.documentElement&&(N=Math.max(e.documentElement.clientHeight||0,e.documentElement.scrollHeight||0,e.documentElement.offsetHeight||0,N),O=Math.max(e.documentElement.clientWidth||0,e.documentElement.scrollWidth||0,e.documentElement.offsetWidth||0,O))}function w(e){var t;return function(){var n=function(){t=null,T()},i=!t;clearTimeout(t),t=setTimeout(n,e),i&&E()}}function E(){var e=new Date;e.getTime()-L>j&&F.length/3=t)return;n=h(e),ye[n].vt=ye[n].vt?ye[n].vt+t:t,be[e].vLogged!==Le&&(t>=10?(be[e].currentState=Ze.viewed,be[e].vLogged=Le,be[e].mt=ke):be[e].mt!==ke&&(be[e].currentState=Ze.missedTime))}else be[e].ma!==xe&&i&&Ce&&(be[e].currentState=Ze.missedArea);i&&(be[e].os=Ne)}function g(e){for(var t in be)be.hasOwnProperty(t)&&p(t,e)}function b(e){we.push(e)}function w(e){return Te.hasOwnProperty(e)?Te[e]:We.document.getElementById(e)}function y(){function e(){var e,n=$e.rpos(i);e=$e.getViewRatio(n,r),be[o].xPath=t,be[o].pos=i,be[o].dim=r,be[o].vRatio=e}var t,n,i,r;for(var o in be)if(be.hasOwnProperty(o)){if(n=w(o),!n)continue;r=$e.dim(n),i=$e.pos(n),t=P(n),e()}}function T(e,t,n,i,r,o){var a,u=$e.rpos(n);a=$e.getViewRatio(u,i),be[t]={adp:r,xPath:e,channelId:o,pos:n,dim:i,vRatio:a,vLogged:0,ma:0,mt:0,os:0,of:0,vi:0,previousState:null,currentState:Ze.outOfFocus}}function D(e,t,n,i){var r,o,a,u;o=P(e),r=s(o,n,i),a=$e.pos(e),u=$e.dim(e),T(o,t,a,u,n,i),b(r)}function E(e){for(var t=0;t-1?e.split("/")[2]:e.split("/")[0]}function P(e){for(var t=[];e&&e.nodeType===Ue&&"BODY"!==e.nodeName&&"HTML"!==e.nodeName;e=e.parentNode){var n,i=0;for(n=e.previousSibling;n;n=n.previousSibling)n.nodeType!==Ge&&n.nodeName===e.nodeName&&++i;var r=e.nodeName.toLowerCase();r in qe&&(r=qe[r]);var o=i?i+1:"";t.splice(0,0,r+o)}return t.length?t.join("."):null}function O(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function Y(e){var t=_(e),n=E(t);return S(t)?!1:n}function x(t){var n=!1;e._mnHM.DFPAdsInfo=e._mnHM.DFPAdsInfo||{};var i=e._mnHM.DFPAdsInfo[t.id];return i&&(n="dfp:"+i.advertiserId),n}function k(e){var t=!1,n=F(e)[1];try{var i=e.contentDocument.body;""!==i.textContent&&n.mnetbidID&&(t="hb:"+n.mnetbidID)}catch(r){}return t}function N(e){function t(e){for(var t=e.getElementsByTagName("script"),n=0;nn||(t=C(e),m(t,n))}function X(e){var t=F(e),n=t[0];if(n)try{n.addEventListener?n.addEventListener("mousedown",function(){M(e)},!1):n.attachEvent("onmousedown",function(){M(e)})}catch(i){}}function A(e){try{O(e,"mouseover",function(){he=(new Date).getTime(),de=e}),O(e,"mouseout",function(){H(e),de=i})}catch(t){}}function L(){var e=(new Date).getTime();Ae>0&&e-Xe>=pe&&(y(),Xe=e,Ae=0),setTimeout(L,pe)}function R(){Ae>10&&(y(),Xe=(new Date).getTime(),Ae=0)}function B(e){var t,n;Ae++,R();try{e.forEach(function(e){for(var i=0;i16){var t=-1===e.indexOf("V")?3:6;n.visitorID=e.substr(0,e.length-t)}return n.visitorID}function ie(e){if(!a(e))return{};var t,n,i,r,o={};if(t=e.indexOf("?"),-1===t)return o;for(n=e.substring(t+1).split("&"),i=n.length;i--;)r=n[i].split("="),o[r[0]]=r[1];return o}function re(e){this.url=e,this.map=ie(this.url)}function oe(){fe=!!We.atob}function ae(){var t=function(e,t,n){this.id=e,this.name=t,this.regexp=n};t.prototype.getName=function(){return this.name},t.prototype.getId=function(){return this.id},t.prototype.getRegexp=function(){return this.regexp};var n=new t("NA","UNKNOWN_DEVICE",new RegExp("")),i=new t("m","MOBILE",new RegExp("fennec/|mobile|phone|iphone|ipod|blackberry|playbook|bb10|android|palm|windows\\s+ce|s60;\\ssymbos|series\\s60|series40|samsung-gt-|sonyericsson|nokia|samsung\\sgt|nokia|maui\\sruntime|j2me/midp|brew|docomo/[\\d]+.[\\d]+|mi\\s3w\\smiui|maui\\swap\\sbrowser")),r=new t("t","TABLET",new RegExp("hudl ht7s3 build|kindle( |/)|ipad|tablet|playbook|smart\\stab|gt-n8000|gt-n8013|gt-p[\\d][\\d][\\d][\\d]|me371mg|nexus\\s(7|8|9|[\\d][\\d])\\sbuild/|sm-t[\\d][\\d][\\d]|\\ssgp[\\d][\\d][\\d] build/|touchpad build|venue7\\s[\\d][\\d][\\d][\\d]\\s|gt-n5100 build|lenovoa3300[-]hv|kfjwi\\sbuild/|shw-m\\d\\d\\d[a-z]\\sbuild/|smarttab10-|sony\\stablet\\s(s|p)\\s|huawei\\smediapad\\sbuild|thinkpad\\stablet\\s|vodafone\\ssmarttab|(kfapwa|kfapwi|kfarwi|kfaswi|kfjwa|kfjwi|kfot|kfsawa|kfsawi|kfsowi|kfthwa|kfthwi|kftt)\\sbuild|ideatab\\s|mediapad\\s[\\d]+\\slite\\sbuild|mid\\d\\d\\d\\d\\sbuild/")),o=new t("d","DESKTOP",new RegExp("windows|win([\\d][\\d]|nt)(\\s|;|[)])|windows\\snt\\s\\d[.]\\d|cros;|cros\\s|linux|os\\s+[x9]|solaris|bsd|x11|mac_powerpc|macintosh")),a=function(t){this.deviceType=n,t&&(this.userAgent=t.toLowerCase(),this.deviceType=this.detectDeviceType(),this.userAgent.indexOf("android")>-1&&this.userAgent.indexOf("mobile")>-1&&this.deviceType.getId()!==r.getId()&&(this.deviceType=i),this.deviceType.getId()===o.getId()&&"ontouchstart"in e&&(this.deviceType=n))};a.deviceListPriority=[r,i,o,n],a.prototype.detectDeviceType=function(){for(var e=a.deviceListPriority,t=0;tt;t++)if(this._handlers[t]===e)return this._handlers.splice(t,1),this._scope.splice(t,1),!0;return!1},e.prototype.notify=function(e){for(var t=this._handlers.length,n=t-1;n>=0;n--){var i=this._scope[n];this._handlers[n].call(i,e)}},e}(),$e={pos:function(e){var t=e,n={X:0,Y:0};if(t.offsetParent)do n.X+=t.offsetLeft,n.Y+=t.offsetTop;while(t=t.offsetParent);return n},scroll:function(){var e=Re.win.pageYOffset&&{X:Re.win.pageXOffset,Y:Re.win.pageYOffset}||{},t=Re.dE&&{X:Re.dE.scrollLeft,Y:Re.dE.scrollTop}||{},n=Re.dB&&{X:Re.dB.scrollLeft,Y:Re.dB.scrollTop}||{};return{X:Math.max(e.X||0,t.X||0,n.X||0),Y:Math.max(e.Y||0,t.Y||0,n.Y||0)}},rpos:function(e){var t={X:0,Y:0};return t.X=e.X-le.X,t.Y=e.Y-le.Y,t},setvpSize:function(){He.X=Re.win.innerWidth||Re.dE&&Re.dE.clientWidth||Re.dB&&Re.dB.clientWidth,He.Y=Re.win.innerHeight||Re.dE&&Re.dE.clientHeight||Re.dB&&Re.dB.clientHeight},dim:function(e){return{X:e.clientWidth,Y:e.clientHeight}},debounce:function(e,t,n,i){var r;return function(){var o=function(){r=null,n.call(e)},a=!r;clearTimeout(r),r=setTimeout(o,i),a&&t.call(e)}},getViewRatio:function(e,t){if(e.X+t.X>=0&&e.Y+t.Y>=0&&e.X<=He.X&&e.Y<=He.Y){var n={X:e.X+t.X>He.X?He.X:e.X+t.X,Y:e.Y+t.Y>He.Y?He.Y:e.Y+t.Y},i={x:e.X>=0?(He.X-e.X)/t.X:n.X/t.X,y:e.Y>=0?(He.Y-e.Y)/t.Y:n.Y/t.Y};if(i.x!==!1&&i.y!==!1)return i.x=0!==Math.floor(i.x)?100:Math.ceil(100*i.x),i.y=0!==Math.floor(i.y)?100:Math.ceil(100*i.y),i}return!1},isViewable:function(e){return e.x*e.y>=5e3}},Je={send:function(e,t){var n=We._mnHM.container,i=n.constructor.Datatype;n.push(i.ADT,e,t)},getDefaultParams:function(){return{cid:me,url:decodeURIComponent(ve),hvsid:te(),vid:ne(),t:Ye}},getWireData:function(){if(je){if(we.length<=0)return null}else{var e=f();if(o(e)&&we.length<=0)return null}var t={def:Je.getDefaultParams()};return we.length>0&&(t.im=we),je||(t["if"]=[e]),je=!1,t}},et={enable:function(){rt.subscribe(this,this.updatePageState),tt.subscribe(this,this.updateScroll),nt.subscribe(this,this.updateResize),it.subscribe(this,this.updateMouseMove),rt.isPageHidden()===!1&&(Ce=!0)},updatePageState:function(e){if("visible"===e)Ce=!0,Fe=(new Date).getTime();else{var t=(new Date).getTime(),n=t-Fe;n>=100&&g(n)}},updateScroll:function(e){Ce=!0,g(e)},updateResize:function(e){g(e)},updateMouseMove:function(){Ce=!0},update:function(){if(!rt.isPageHidden()&&rt.isAPISupported()){var e=(new Date).getTime()-Fe;g(e),Fe=(new Date).getTime()}}},tt=function(){var e=new Qe;return e.enable=function(){r(We,"scroll",$e.debounce(this,e.onScrollStart,e.onScrollEnd,Me))},e.onScrollStart=function(){var e=(new Date).getTime(),t=e-Fe;this.notify(t)},e.onScrollEnd=function(){Fe=(new Date).getTime(),le=$e.scroll(),ee()},e}(),nt=function(){var e=new Qe;return e.enable=function(){r(We,"resize",$e.debounce(this,e.onResizeStart,e.onResizeEnd,Me))},e.onResizeStart=function(){var t=(new Date).getTime(),n=t-Fe;e.notify(n)},e.onResizeEnd=function(){Fe=(new Date).getTime(),$e.setvpSize(),y()},e}(),it=function(){var e=new Qe;return e.position=function(){},e.onmove=function(){return $e.debounce(e,e.notify,e.notify,Me)}(),e.enable=function(){r(We,"mousemove",e.onmove)},e}(),rt=function(){var e=new Qe;return e.onchange=function(t){var n="visible",i="hidden",r={focus:n,focusin:n,pageshow:n,blur:i,focusout:i,pagehide:i};t=t||We.event;var o;o=t.type in r?r[t.type]:We.document.hidden?i:n,e.notify(o)},e.isPageHidden=function(){var e="function"==typeof We.document.hasFocus?We.document.hasFocus():!0;return!e||We.document.hidden||We.document.msHidden||We.document.webkitHidden},e.isAPISupported=function(){return"hidden"in We.document||"mozHidden"in We.document||"webkitHidden"in We.document||"msHidden"in We.document},e.enable=function(){var t="hidden",n=We.document;t in n?n.addEventListener("visibilitychange",e.onchange):(t="mozHidden")in n?n.addEventListener("mozvisibilitychange",e.onchange):(t="webkitHidden")in n?n.addEventListener("webkitvisibilitychange",e.onchange):(t="msHidden")in n?n.addEventListener("msvisibilitychange",e.onchange):"onfocusin"in n?n.onfocusin=n.onfocusout=e.onchange:We.onpageshow=We.onpagehide=We.onfocus=We.onblur=e.onchange,n.hidden!==i&&e.onchange({type:n.hidden?"blur":"focus"})},e}();re.prototype.getParam=function(e){return this.map[e]||""},ce()}(window,document,_mnHM);!function(t,e,i,n){"use strict";function o(t){if(!F.isStringSet(t))return{};var e,i,n,o,r={};if(e=t.indexOf("?"),-1===e)return r;for(i=t.substring(e+1).split("&"),n=i.length;n--;)o=i[n].split("="),r[o[0]]=o[1];return r}function r(t){this.url=t,this.map=o(this.url)}function s(t,e,i,n){var o;return function(){var r=function(){o=null,i.call(t)},s=!o;clearTimeout(o),o=setTimeout(r,n),s&&e.call(t)}}function a(t,e,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent("on"+e,i)}function u(t){var e=Array.prototype.slice.call(arguments,1);return function(){var i=e.concat(Array.prototype.slice.call(arguments));return t.apply(this,i)}}function c(t){var e=Y.getWireData();Y.send(e,t),B.clear()}function d(){B._update_count>0&&c(),setTimeout(d,x)}function l(){I||(I=!0,c(!0))}function h(){var e=function(t,e,i){this.id=t,this.name=e,this.regexp=i};e.prototype.getName=function(){return this.name},e.prototype.getId=function(){return this.id},e.prototype.getRegexp=function(){return this.regexp};var i=new e("NA",O.unknown,new RegExp("")),n=new e("m",O.mobile,new RegExp("fennec/|mobile|phone|iphone|ipod|blackberry|playbook|bb10|android|palm|windows\\s+ce|s60;\\ssymbos|series\\s60|series40|samsung-gt-|sonyericsson|nokia|samsung\\sgt|nokia|maui\\sruntime|j2me/midp|brew|docomo/[\\d]+.[\\d]+|mi\\s3w\\smiui|maui\\swap\\sbrowser")),o=new e("t",O.tablet,new RegExp("hudl ht7s3 build|kindle( |/)|ipad|tablet|playbook|smart\\stab|gt-n8000|gt-n8013|gt-p[\\d][\\d][\\d][\\d]|me371mg|nexus\\s(7|8|9|[\\d][\\d])\\sbuild/|sm-t[\\d][\\d][\\d]|\\ssgp[\\d][\\d][\\d] build/|touchpad build|venue7\\s[\\d][\\d][\\d][\\d]\\s|gt-n5100 build|lenovoa3300[-]hv|kfjwi\\sbuild/|shw-m\\d\\d\\d[a-z]\\sbuild/|smarttab10-|sony\\stablet\\s(s|p)\\s|huawei\\smediapad\\sbuild|thinkpad\\stablet\\s|vodafone\\ssmarttab|(kfapwa|kfapwi|kfarwi|kfaswi|kfjwa|kfjwi|kfot|kfsawa|kfsawi|kfsowi|kfthwa|kfthwi|kftt)\\sbuild|ideatab\\s|mediapad\\s[\\d]+\\slite\\sbuild|mid\\d\\d\\d\\d\\sbuild/")),r=new e("d",O.desktop,new RegExp("windows|win([\\d][\\d]|nt)(\\s|;|[)])|windows\\snt\\s\\d[.]\\d|cros;|cros\\s|linux|os\\s+[x9]|solaris|bsd|x11|mac_powerpc|macintosh")),s=function(e){this.deviceType=i,e&&(this.userAgent=e.toLowerCase(),this.deviceType=this.detectDeviceType(),this.userAgent.indexOf("android")>-1&&this.userAgent.indexOf("mobile")>-1&&this.deviceType.getId()!==o.getId()&&(this.deviceType=n),this.deviceType.getId()===r.getId()&&"ontouchstart"in t&&(this.deviceType=i))};s.deviceListPriority=[o,n,r,i],s.prototype.detectDeviceType=function(){for(var t=s.deviceListPriority,e=0;ee;e++)if(this._handlers[e]===t)return this._handlers.splice(e,1),this._scope.splice(e,1),!0;return!1},t.prototype.notify=function(t){for(var e=this._handlers.length,i=e-1;i>=0;i--){var n=this._scope[i];this._handlers[i].call(n,t)}},t}(),F={};F.isStringSet=function(t){return t!==n&&""!==t&&null!==t},F.getQueryParamString=function(t,e){return F.isStringSet(e)&&F.isStringSet(t)?"&"+t+"="+e:""},F.getQueryParamsFromObject=function(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=F.getQueryParamString(i,t[i]));return e},F.isObjectEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},F.onDOMLoad=function(t,e){/complete|interactive|loaded/.test(T.document.readyState)?e.apply():t.addEventListener?a(t,"DOMContentLoaded",e):t.attachEvent&&t.attachEvent("onreadystatechange",function(){"complete"===t.readyState&&e.apply()})},r.prototype.getParam=function(t){return this.map[t]||""};var Y={send:function(t,e){var i=T._mnHM.container,n=i.constructor.Datatype;i.push(n.ALT,t,e)},getDefaultParams:function(){return{id:S}},getWireData:function(){var t={def:Y.getDefaultParams()};return F.isObjectEmpty(B.getMetrics())||(t.m=B.getMetrics()),F.isObjectEmpty(B.getDimensions())||(t.d=B.getDimensions()),t}},U=function(){var t=new z;return t.onchange=function(e){var i={focus:H.visible,focusin:H.visible,pageshow:H.visible,blur:H.hidden,focusout:H.hidden,pagehide:H.hidden};e=e||T.event;var n;n=e.type in i?i[e.type]:T.document.hidden?H.hidden:H.visible,t.notify(n)},t.isPageHidden=function(){var t="function"==typeof T.document.hasFocus?T.document.hasFocus():!0;return!t||T.document.hidden||T.document.msHidden||T.document.webkitHidden},t.isAPISupported=function(){return"hidden"in T.document||"mozHidden"in T.document||"webkitHidden"in T.document||"msHidden"in T.document},t.enable=function(){var e="hidden",i=T.document;e in i?a(i,"visibilitychange",t.onchange):(e="mozHidden")in i?a(i,"mozvisibilitychange",t.onchange):(e="webkitHidden")in i?a(i,"webkitvisibilitychange",t.onchange):(e="msHidden")in i?a(i,"msvisibilitychange",t.onchange):"onfocusin"in i?i.onfocusin=i.onfocusout=t.onchange:T.onpageshow=T.onpagehide=T.onfocus=T.onblur=t.onchange,i.hidden!==n&&t.onchange({type:i.hidden?"blur":"focus"})},t}(),j=function(){var t=new z;return t.position=function(){},t.onmove=function(){return s(t,t.notify,t.notify,k)}(),t.enable=function(){a(T,"mousemove",t.onmove)},t}(),W=function(){var t=new z;return t.viewPortHeight=0,t.setViewPortSize=function(){var e=T.document;t.viewPortHeight="undefined"!=typeof T.innerWidth?T.innerHeight:"undefined"!=typeof e.documentElement&&"undefined"!=typeof e.documentElement.clientWidth&&0!==e.documentElement.clientWidth?e.documentElement.clientHeight:e.getElementsByTagName("body")[0].clientHeight},t.getViewPortHeight=function(){return t.viewPortHeight},t.handleResize=function(){t.setViewPortSize()},t.onresize=function(){return s(t,t.handleResize,t.handleResize,k)}(),t.enable=function(){t.setViewPortSize(),a(T,"resize",t.onresize)},t}(),X=function(){var t=new z;return t.currentScrollY=0,t.setScrollY=function(){var e="undefined"!=typeof T.pageYOffset;t.currentScrollY=e?T.pageYOffset:A.scrollTop},t.handleScroll=function(e){t.setScrollY(),t.notify(e)},t.onscroll=function(){return s(t,u(t.handleScroll,M.started),u(t.handleScroll,M.stopped),k)}(),t.getScrollY=function(){return this.currentScrollY},t.enable=function(){t.setScrollY(),a(T,"scroll",t.onscroll)},t}(),B=function(){var t={};return t._metrics={},t._dimensions={},t._update_count=0,t.clear=function(){this._metrics={},this._dimensions={},this._update_count=0},t.set=function(t,e){F.isStringSet(e)&&(this._metrics[t]=e,this._update_count++)},t.setDimensions=function(t){this._dimensions=t},t.get=function(t){return this._metrics[t]},t.getMetrics=function(){return this._metrics},t.getDimensions=function(){return this._dimensions},t}(),Q={PageViewDuration:{totalTime:0,lastViewStartTime:new Date,oldPageState:H.visible,UPDATE_INTERVAL:1e3,enable:function(){U.isAPISupported()!==!1&&(U.subscribe(this,this.update),U.isPageHidden()&&(this.oldPageState=H.hidden),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL))},update:function(t){var e=!1;return this.oldPageState===H.visible&&(this.totalTime+=new Date-this.lastViewStartTime,e=!0),t===H.visible&&(this.lastViewStartTime=new Date),this.oldPageState=t,e},updateAndPush:function(){var t=U.isPageHidden()?H.hidden:H.visible;this.update(t)&&this.push(),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL)},push:function(){B.get(L.viewTime)!==this.totalTime&&B.set(L.viewTime,this.totalTime)}},InteractionDuration:{totalTime:0,activityStartTime:new Date,inactive:!0,timeout:0,UPDATE_INTERVAL:1e3,INACTIVE_AFTER_WAIT:1e3,enable:function(){j.subscribe(this,this.setActive),X.subscribe(this,this.setActive),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL)},setActive:function(){U.isPageHidden()||(clearTimeout(this.timeout),this.inactive&&(this.inactive=!1,this.activityStartTime=new Date),this.timeout=setTimeout(this.setInactive.bind(this),this.INACTIVE_AFTER_WAIT))},setInactive:function(){this.inactive===!1&&(this.inactive=!0,this.totalTime+=new Date-this.activityStartTime),this.push()},updateAndPush:function(){this.inactive===!1&&(this.totalTime+=new Date-this.activityStartTime,this.activityStartTime=new Date,this.push()),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL)},push:function(){B.get(L.interactTime)!==this.totalTime&&B.set(L.interactTime,this.totalTime)}},Scrolled:{enable:function(){X.subscribe(this,this.update)},update:function(){this.push(1),X.unsubscribe(this.update)},push:function(t){t&&B.set(L.scrolled,t)}},MaxScrollDepth:{maxDepth:0,enable:function(){this.update(),X.subscribe(this,this.update)},update:function(){var t=this.getScrollDepth();t>this.maxDepth&&(this.maxDepth=t,this.push())},push:function(){B.get(L.maxScrollDepth)!==this.maxDepth&&B.set(L.maxScrollDepth,this.maxDepth)},getScrollDepth:function(){return Math.round(W.getViewPortHeight()+X.getScrollY())}},ScrollVelocity:{startTime:0,startPosition:0,totalTime:0,totalDistance:0,upScrollDistance:0,upScrollTime:0,downScrollDistance:0,downScrollTime:0,enable:function(){X.subscribe(this,this.update),this.startPosition=X.getScrollY()},update:function(t){if(t===M.started)this.startTime=new Date;else if(this.startTime){var e=X.getScrollY(),i=new Date-this.startTime,n=e-this.startPosition;this.totalDistance+=Math.abs(n),this.totalTime+=i,0>n?(this.upScrollDistance+=Math.abs(n),this.upScrollTime+=i):(this.downScrollDistance+=n,this.downScrollTime+=i),this.push(),this.startPosition=e}},push:function(){var t=(this.downScrollDistance/this.downScrollTime).toFixed(2),e=(this.upScrollDistance/this.upScrollTime).toFixed(2),i=(this.totalDistance/this.totalTime).toFixed(2);isNaN(Number(t))||t==1/0||B.set(L.downScrollVelocity,t),isNaN(Number(e))||e==1/0||B.set(L.upScrollVelocity,e),isNaN(Number(i))||i==1/0||B.set(L.scrollVelocity,i)}}};p.getBrowser=function(){try{if(t.opr&&t.opr.addons||t.opera||navigator.userAgent.indexOf(" OPR/")>=0)return R.opera;if("undefined"!=typeof InstallTrigger)return R.firefox;if(Object.prototype.toString.call(t.HTMLElement).indexOf("Constructor")>0)return R.safari;if(e.documentMode)return R.ie;if(t.StyleMedia)return R.edge;if(t.chrome&&t.chrome.webstore)return R.chrome;if(/firefox|FxiOS/i.test(navigator.userAgent))return R.firefox;if(/chrome|chromium|CriOS/i.test(navigator.userAgent))return R.chrome;if(/safari/i.test(navigator.userAgent))return R.safari;if(/OPR|Opera/.test(navigator.userAgent))return R.opera;if(/MSIE/.test(navigator.userAgent))return R.ie}catch(i){return R.unknown}},p.getDevice=function(){var t;try{t=h()}catch(e){t=O.unknown}return t},p.getOS=function(){var e;try{-1!==navigator.appVersion.indexOf("Win")&&(e=N.windows),-1!==navigator.appVersion.indexOf("Mac")&&(e=N.mac),-1!==navigator.appVersion.indexOf("X11")&&(e=N.unix),-1!==navigator.appVersion.indexOf("Linux")&&(e=N.linux),/android/i.test(navigator.userAgent)&&!t.MSStream&&(e=N.android),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!t.MSStream&&(e=N.ios)}catch(i){e=N.unknown}return e},p.getURL=function(){return decodeURIComponent(D)},p.getCID=function(){return P},p.getCountryCode=function(){return i.countryCode},p.getResolution=function(){if(screen.width&&screen.height){var t=Math.round(screen.width),e=Math.round(screen.height);return screen.deviceXDPI&&screen.logicalXDPI&&(t=Math.round(t*(screen.deviceXDPI/screen.logicalXDPI)),e=Math.round(e*(screen.deviceXDPI/screen.logicalXDPI))),t+"x"+e}return""},p.getVisitId=function(){if(i.visitID!==n)return i.visitID;var e=i.crid,o=t._mNDetails||parent._mNDetails||{},s=new r("?"+o.locHash[e]);return s.getParam("hvsid")},p.getRefererDomain=function(){var t=i.refererDomain;return F.isStringSet(t)||(t="noref"),t},w()}(window,document,_mnHM);} catch (err) { var errStacktrace; if (err.stack) {errStacktrace = err.stack;} else if (err.s) {errStacktrace = err.s;} else if (err.stacktrace) {errStacktrace = err.stacktrace;} else errStacktrace = 'No StackTrace'; // console.log('[HM Master] Error: ' + errStacktrace); } })();