(function() { try { window._mnHM = window._mnHM || {}; window._mnHM.serverUrl = "http://lg2.media.net/log?logid=kfk&evtid=hm&"; window._mnHM.postServerUrl = "http://logpostback.media.net/log"; window._mnHM.forceHM = 0;!function(n,e){"use strict";function t(){function t(n,e){for(var t in e)e.hasOwnProperty(t)&&("def"===t?M.appendObj(e.def,H):(H[n]=H[n]||{},e[t]instanceof Array?(H[n][t]=H[n][t]||[],H[n][t]=H[n][t].concat(e[t])):e[t]instanceof Object&&(H[n][t]=H[n][t]||{},M.appendObj(e[t],H[n][t]))))}function o(){var n=encodeURIComponent(JSON.stringify(H));n.length>y&&(r(),i())}function r(t){function o(){return JSON.stringify(H)}function r(){return s+"d="+encodeURIComponent(o())}function a(){return g+encodeURIComponent(encodeURIComponent(o()))+p}if(!(u++>=l)){H.cid=n._mnHM.cid,1===u&&(H.init=1);var i=!1;t&&n.navigator.sendBeacon&&n._mnHM.postServerUrl?(H.flush=2,i=n.navigator.sendBeacon(n._mnHM.postServerUrl,a())):t||v===e||(v(r()),i=!0),i||(t&&(H.flush=3),M.sendDataUsingImg(r()))}}function i(){H={}}function h(){M.isObjectEmpty(H)||(r(),i(),c=a),setTimeout(h,c)}var H={};this.push=function(n,e,a){M.isSet(e)&&(o(),t(n,e)),a&&(f++,f===d&&(r(!0),i()))},this.register=function(){d++},M.addListener(m,"load",function(){setTimeout(h,c)})}function o(){if(M.validate(),m&&(m._mnHM=m._mnHM||{},m._mnHM.container===e)){var o,r=n._mnHM.loggingConfig;o=r==e||r.loggingPercentage==e?i:r.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(A1||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&&(N<990||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 n<1&&i<1&&t>0&&t=0&&W>q&&tj&&F.length/3=10?(Se[e].currentState=nt.viewed,Se[e].vLogged=Ve,Se[e].mt=Ae):Se[e].mt!==Ae&&(Se[e].currentState=nt.missedTime))}else Se[e].ma!==Xe&&i&&Ue&&(Se[e].currentState=nt.missedArea);i&&(Se[e].os=Le)}function w(e){for(var t in Se)Se.hasOwnProperty(t)&&b(t,e)}function y(e,t){_e[e]=t}function E(e){return Oe.hasOwnProperty(e)?Oe[e]:Ze.document.getElementById(e)}function T(){function e(){var e,n=rt.rpos(i);e=rt.getViewRatio(n,r),Se[o].xPath=t,Se[o].pos=i,Se[o].dim=r,Se[o].vRatio=e}var t,n,i,r;for(var o in Se)if(Se.hasOwnProperty(o)){if(n=E(o),!n)continue;r=rt.dim(n),i=rt.pos(n),t=Y(n),e()}}function D(e,t,n,i,r,o,a){var u,s=rt.rpos(n);u=rt.getViewRatio(s,i),Se.hasOwnProperty(t)&&l(t),Se[t]={adp:r,xPath:e,channelId:o,counter:a,creationTime:(new Date).getTime(),pos:n,dim:i,vRatio:u,vLogged:0,ma:0,mt:0,os:0,of:0,vi:0,previousState:null,currentState:nt.outOfFocus}}function S(e){for(;e&&e.nodeType===Je&&"BODY"!==e.nodeName&&"HTML"!==e.nodeName;e=e.parentNode)if("fixed"===Z(e,"position"))return!0;return!1}function _(e,t,n){var i,r,o,a,u,s=0,d={};if(u=$(e),r=Y(e),o=rt.pos(e),a=rt.dim(e),Se.hasOwnProperty(t)){if((new Date).getTime()-Se[t].creationTime<=ye)return;s=Se[t].counter+1}i=c(r,n,u,s),S(e)&&(d.fixed=1),y(i,d),D(r,t,o,a,n,u,s)}function P(e){for(var t=0;t-1?e.split("/")[2]:e.split("/")[0]}function Y(e){for(var t=[];e&&e.nodeType===Je&&"BODY"!==e.nodeName&&"HTML"!==e.nodeName;e=e.parentNode){var n,i=0;for(n=e.previousSibling;n;n=n.previousSibling)n.nodeType!==$e&&n.nodeName===e.nodeName&&++i;var r=e.nodeName.toLowerCase();r in et&&(r=et[r]);var o=i?i+1:"";t.splice(0,0,r+o)}return t.length?t.join("."):null}function x(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function N(e){var t=k(e),n=P(t);return!O(t)&&n}function H(t){var n=!1;if(!(t&&t.parentElement&&t.parentElement.parentElement&&t.parentElement.parentElement.id))return n;e._mnHM.DFPAdsInfo=e._mnHM.DFPAdsInfo||{};var i=e._mnHM.DFPAdsInfo[t.parentElement.parentElement.id];return i&&(n="dfp:"+i.advertiserId),n}function M(e){var t=!1,n=j(e)[1];try{var i=e.contentDocument.body;""!==i.textContent&&n.mnetbidID&&(t="hb:"+n.mnetbidID)}catch(r){}return t}function I(e){function t(e){for(var t=e.getElementsByTagName("script"),n=0;n0&&e-ze>=Te&&(T(),ze=e,Fe=0),setTimeout(B,Te)}function z(){Fe>10&&(T(),ze=(new Date).getTime(),Fe=0)}function F(e){Fe++,z();try{e.forEach(function(e){if("childList"===e.type){for(var t=[],n=0;n16){var t=e.indexOf("V")===-1?3:6;n.visitorID=e.substr(0,e.length-t)}return n.visitorID}function ue(e){if(!a(e))return{};var t,n,i,r,o={};if(t=e.indexOf("?"),t===-1)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 se(e){this.url=e,this.map=ue(this.url)}function ce(){pe=!!Ze.atob}function de(){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;t=0;n--){var i=this._scope[n];this._handlers[n].call(i,e)}},e}(),rt={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=We.win.pageYOffset&&{X:We.win.pageXOffset,Y:We.win.pageYOffset}||{},t=We.dE&&{X:We.dE.scrollLeft,Y:We.dE.scrollTop}||{},n=We.dB&&{X:We.dB.scrollLeft,Y:We.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-ve.X,t.Y=e.Y-ve.Y,t},setvpSize:function(){Be.X=We.win.innerWidth||We.dE&&We.dE.clientWidth||We.dB&&We.dB.clientWidth,Be.Y=We.win.innerHeight||We.dE&&We.dE.clientHeight||We.dB&&We.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<=Be.X&&e.Y<=Be.Y){var n={X:e.X+t.X>Be.X?Be.X:e.X+t.X,Y:e.Y+t.Y>Be.Y?Be.Y:e.Y+t.Y},i={x:e.X>=0?(Be.X-e.X)/t.X:n.X/t.X,y:e.Y>=0?(Be.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}},ot={send:function(e,t){if(!n.loggingConfig||!n.loggingConfig.disableHmLogging){var i=Ze._mnHM.container,r=i.constructor.Datatype;i.push(r.ADT,e,t)}},getDefaultParams:function(){return{cid:Ee,url:decodeURIComponent(be),hvsid:oe(),vid:ae(),t:Ie}},getWireData:function(){if(Qe){if(o(_e))return null}else{var e=m();if(o(e)&&o(_e))return null}var t={def:ot.getDefaultParams()};return o(_e)||(t.im=_e),o(e)||(t["if"]=[e]),Qe=!1,t}},at={enable:function(){dt.subscribe(this,this.updatePageState),ut.subscribe(this,this.updateScroll),st.subscribe(this,this.updateResize),ct.subscribe(this,this.updateMouseMove),dt.isPageHidden()===!1&&(Ue=!0)},updatePageState:function(e){if("visible"===e)Ue=!0,qe=(new Date).getTime();else{var t=(new Date).getTime(),n=t-qe;n>=100&&w(n)}},updateScroll:function(e){Ue=!0,w(e)},updateResize:function(e){w(e)},updateMouseMove:function(){Ue=!0},update:function(){if(!dt.isPageHidden()&&dt.isAPISupported()){var e=(new Date).getTime()-qe;w(e),qe=(new Date).getTime()}}},ut=function(){var e=new it;return e.enable=function(){r(Ze,"scroll",rt.debounce(this,e.onScrollStart,e.onScrollEnd,Ce))},e.onScrollStart=function(){var e=(new Date).getTime(),t=e-qe;this.notify(t)},e.onScrollEnd=function(){qe=(new Date).getTime(),ve=rt.scroll(),re()},e}(),st=function(){var e=new it;return e.enable=function(){r(Ze,"resize",rt.debounce(this,e.onResizeStart,e.onResizeEnd,Ce))},e.onResizeStart=function(){var t=(new Date).getTime(),n=t-qe;e.notify(n)},e.onResizeEnd=function(){qe=(new Date).getTime(),rt.setvpSize(),T()},e}(),ct=function(){var e=new it;return e.position=function(){},e.onmove=function(){return rt.debounce(e,e.notify,e.notify,Ce)}(),e.enable=function(){r(Ze,"mousemove",e.onmove)},e}(),dt=function(){var e=new it;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||Ze.event;var o;o=t.type in r?r[t.type]:Ze.document.hidden?i:n,e.notify(o)},e.isPageHidden=function(){var e="function"!=typeof Ze.document.hasFocus||Ze.document.hasFocus();return!e||Ze.document.hidden||Ze.document.msHidden||Ze.document.webkitHidden},e.isAPISupported=function(){return"hidden"in Ze.document||"mozHidden"in Ze.document||"webkitHidden"in Ze.document||"msHidden"in Ze.document},e.enable=function(){var t="hidden",n=Ze.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:Ze.onpageshow=Ze.onpagehide=Ze.onfocus=Ze.onblur=e.onchange,n.hidden!==i&&e.onchange({type:n.hidden?"blur":"focus"})},e}();se.prototype.getParam=function(e){return this.map[e]||""},me()}(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("?"),e===-1)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 c(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 u(t){var e=Y.getWireData();Y.send(e,t),B.clear()}function d(){B._update_count>0&&u(),setTimeout(d,x)}function l(){I||(I=!0,u(!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;e=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:V.visible,focusin:V.visible,pageshow:V.visible,blur:V.hidden,focusout:V.hidden,pagehide:V.hidden};e=e||T.event;var n;n=e.type in i?i[e.type]:T.document.hidden?V.hidden:V.visible,t.notify(n)},t.isPageHidden=function(){var t="function"!=typeof T.document.hasFocus||T.document.hasFocus();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;"undefined"!=typeof T.innerWidth?t.viewPortHeight=T.innerHeight:"undefined"!=typeof e.documentElement&&"undefined"!=typeof e.documentElement.clientWidth&&0!==e.documentElement.clientWidth?t.viewPortHeight=e.documentElement.clientHeight:t.viewPortHeight=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,c(t.handleScroll,M.started),c(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:V.visible,UPDATE_INTERVAL:1e3,enable:function(){U.isAPISupported()!==!1&&(U.subscribe(this,this.update),U.isPageHidden()&&(this.oldPageState=V.hidden),setTimeout(this.updateAndPush.bind(this),this.UPDATE_INTERVAL))},update:function(t){var e=!1;return this.oldPageState===V.visible&&(this.totalTime+=new Date-this.lastViewStartTime,e=!0),t===V.visible&&(this.lastViewStartTime=new Date),this.oldPageState=t,e},updateAndPush:function(){var t=U.isPageHidden()?V.hidden:V.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,n<0?(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{navigator.appVersion.indexOf("Win")!==-1&&(e=N.windows),navigator.appVersion.indexOf("Mac")!==-1&&(e=N.mac),navigator.appVersion.indexOf("X11")!==-1&&(e=N.unix),navigator.appVersion.indexOf("Linux")!==-1&&(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); } })();