"object"!=typeof _paq&&(_paq=[]),"object"!=typeof window.Matomo&&(window.Matomo=window.Piwik=function(){function t(t){try{return ot(t)}catch(e){return unescape(t)}}function e(t){return"undefined"!==typeof t}function n(t){return"function"==typeof t}function i(t){return"object"==typeof t}function r(t){return"string"==typeof t||t instanceof String}function o(t){return"number"==typeof t||t instanceof Number}function a(t){return e(t)&&(o(t)||r(t)&&t.length)}function s(t){if(!t)return!0;var e,n=!0;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n=!1);return n}function u(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)}function c(){var t,e,n,i,o;for(t=0;t0)s=(a=n.split("::"))[0],n=a[1],"object"==typeof X[s]&&"function"==typeof X[s][n]?X[s][n].apply(X[s],i):o&&st.push(o);else for(e=0;e0;if(c)if(a=n.split("."),s&&"object"==typeof s[a[0]])s=s[a[0]],n=a[1];else if(o){st.push(o);break}if(s[n])s[n].apply(s,i);else{var f="The method '"+n+'\' was not found in "_paq" variable. Please have a look at the Matomo tracker documentation: https://developer.matomo.org/api-reference/tracking-javascript';if(u(f),!c)throw new TypeError(f)}if("addTracker"===n)break;if("setTrackerUrl"===n||"setSiteId"===n)break}else n.apply(at[e],i)}}function f(t,e,n,i){return t.addEventListener?(t.addEventListener(e,n,i),!0):t.attachEvent?t.attachEvent("on"+e,n):void(t["on"+e]=n)}function l(t){"complete"===Z.readyState?t():nt.addEventListener?nt.addEventListener("load",t,!1):nt.attachEvent&&nt.attachEvent("onload",t)}function d(t){var e=!1;(e=Z.attachEvent?"complete"===Z.readyState:"loading"!==Z.readyState)?t():(Z.addEventListener?f(Z,"DOMContentLoaded",function n(){Z.removeEventListener("DOMContentLoaded",n,!1),e||(e=!0,t())}):Z.attachEvent&&(Z.attachEvent("onreadystatechange",function i(){"complete"===Z.readyState&&(Z.detachEvent("onreadystatechange",i),e||(e=!0,t()))}),Z.documentElement.doScroll&&nt===nt.top&&function r(){if(!e){try{Z.documentElement.doScroll("left")}catch(n){return void setTimeout(r,0)}e=!0,t()}}()),f(nt,"load",function(){e||(e=!0,t())},!1))}function h(t,e,n){if(!t)return"";var i,r,o="";for(i in $)Object.prototype.hasOwnProperty.call($,i)&&($[i]&&"function"==typeof $[i][t])&&(r=(0,$[i][t])(e||{},n))&&(o+=r);return o}function g(){var t;lt=!0,h("unload");var e=(t=new Date).getTimeAlias();if(Y-e>3e3&&(Y=e+3e3),Y)do{t=new Date}while(t.getTimeAlias()=0;u--)s[u].split("=")[0]===e&&s.splice(u,1);var c=s.join("&");c&&(r=r+"?"+c),o&&(r+="#"+o)}return r}function O(e,n){var i=new RegExp("[\\?&#]"+n+"=([^&#]*)").exec(e);return i?t(i[1]):""}function I(t){return t&&String(t)===t?t.replace(/^\s+|\s+$/g,""):t}function L(t){return unescape(rt(t))}function x(t){var e,n,i,r,o,a,s,u,c,f,l=function(t,e){return t<>>32-e},d=function(t){var e,n="";for(e=7;e>=0;e--)n+=(t>>>4*e&15).toString(16);return n},h=[],g=1732584193,m=4023233417,p=2562383102,v=271733878,C=3285377520,T=[];for(f=(t=L(t)).length,n=0;n>>29),T.push(f<<3&4294967295),e=0;ed.offsetWidth+d.scrollLeft||c+f-hd.offsetHeight+d.scrollTop||a+l-h=0)&&g(t)!==String(e)&&u("There was an error setting cookie `"+t+"`. Please check domain and path."))}function T(t){var e,n;for(t=S(t,xn),n=0;n=0&&(t=t.slice(0,n)),(n=t.lastIndexOf("/"))!==t.length-1&&(t=t.slice(0,n+1)),t+e)}function E(t,e){var n;if((t=String(t).toLowerCase())===(e=String(e).toLowerCase()))return!0;if("."===e.slice(0,1)){if(t===e.slice(1))return!0;if((n=t.length-e.length)>0&&t.slice(n)===e)return!0}return!1}function L(t){var e=document.createElement("a");return 0!==t.indexOf("//")&&0!==t.indexOf("http")&&(0===t.indexOf("*")&&(t=t.substr(1)),0===t.indexOf(".")&&(t=t.substr(1)),t="http://"+t),e.href=ht.toAbsoluteUrl(t),e.pathname?e.pathname:""}function V(t,e){w(e,"/")||(e="/"+e),w(t,"/")||(t="/"+t);var n="/"===e||"/*"===e;return!!n||(t===e||(e=String(e).toLowerCase(),t=String(t).toLowerCase(),y(e,"*")?!!(n=!(e=e.slice(0,-1))||"/"===e)||(t===e||0===t.indexOf(e)):(y(t,"/")||(t+="/"),y(e,"/")||(e+="/"),0===t.indexOf(e))))}function U(t,e){var n,i,r;for(n=0;n0&&t.slice(i)===n)return!0}}return!1}function z(t,e){t=t.replace("send_image=0","send_image=1");var n=new Image(1,1);n.onload=function(){Q=0,"function"==typeof e&&e({request:t,trackerUrl:hn,success:!0})},n.onerror=function(){"function"==typeof e&&e({request:t,trackerUrl:hn,success:!1})},n.src=hn+(hn.indexOf("?")<0?"?":"&")+t}function J(t){return"POST"===fn||t&&(t.length>2e3||0===t.indexOf('{"requests"'))}function K(){return"object"==typeof tt&&"function"==typeof tt.sendBeacon&&"function"==typeof Blob}function st(t,e,n){if(!K())return!1;var i={type:"application/x-www-form-urlencoded; charset=UTF-8"},r=!1,o=hn;try{var a=new Blob([t],i);n&&!J(t)&&(a=new Blob([],i),o=o+(o.indexOf("?")<0?"?":"&")+t),r=tt.sendBeacon(o,a)}catch(s){return!1}return r&&"function"==typeof e&&e({request:t,trackerUrl:hn,success:!0,isSendBeacon:!0}),r}function gt(t,n,i){e(i)&&null!==i||(i=!0),lt&&st(t,n,i)||setTimeout(function(){if(!lt||!st(t,n,i))try{var e=nt.XMLHttpRequest?new nt.XMLHttpRequest:nt.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;e.open("POST",hn,!0),e.onreadystatechange=function(){4!==this.readyState||this.status>=200&&this.status<300?4===this.readyState&&"function"==typeof n&&n({request:t,trackerUrl:hn,success:!0,xhr:this}):!(lt&&st(t,n,i))&&i?z(t,n):"function"==typeof n&&n({request:t,trackerUrl:hn,success:!1,xhr:this})},e.setRequestHeader("Content-Type",dn),e.withCredentials=!0,e.send(t)}catch(r){!(lt&&st(t,n,i))&&i?z(t,n):"function"==typeof n&&n({request:t,trackerUrl:hn,success:!1})}},50)}function mt(t){var e=(new Date).getTime()+t;(!Y||e>Y)&&(Y=e)}function pt(){!0,ri=(new Date).getTime()}function vt(){var t=(new Date).getTime();return!ri||t-ri>Ue}function Ct(){vt()&&je()}function Tt(){"hidden"===Z.visibilityState&&vt()?je():"visible"===Z.visibilityState&&(ri=(new Date).getTime())}function Nt(){!ii&&Ue&&(ii=!0,f(nt,"focus",pt),f(nt,"blur",Ct),f(nt,"visibilitychange",Tt),ct++,X.addPlugin("HeartBeat"+ct,{unload:function(){ii&&vt()&&je()}}))}function bt(t){var e=(new Date).getTime();if(oi=e,ti&&e=t.length)return[t];for(var n=0,i=t.length,r=[];n=r&&o<=r+Pn)return!0}return!1}function Ut(t){if(!ni)return"";var e=O(t,xn);if(!e)return"";e=String(e);var n=new RegExp("^[a-zA-Z0-9]+$");if(32===e.length&&n.test(e)&&Dt(e.substr(16,32)))return e.substr(0,16);return""}function jt(){Tn||(Tn=Ut(an));var t,e=new Date,n=Math.round(e.getTime()/1e3),i=g(_t("id"));return i?((t=i.split(".")).unshift("0"),Tn.length&&(t[1]=Tn),t):t=["1",Tn.length?Tn:"0"===Ot()?"":Rt(),n]}function Gt(){var t=jt();return{newVisitor:t[0],uuid:t[1],createTs:t[2]}}function Ft(){var t=(new Date).getTime(),e=Gt().createTs;return 1e3*parseInt(e,10)+Mn-t}function Ht(t){if(vn){var n=new Date;Math.round(n.getTime()/1e3);e(t)||(t=Gt());var i=t.uuid+"."+t.createTs+".";m(_t("id"),i,Ft(),Be,He,Rn,qn)}}function Bt(){var t=g(_t("ref"));if(t.length)try{if(i(t=nt.JSON.parse(t)))return t}catch(e){}return["","",0,""]}function Wt(t){var e=Ln+"testcookie_domain",n="testvalue";return m(e,n,1e4,null,t,Rn,qn),g(e)===n&&(St(e,null,t),!0)}function zt(){var t,e,n=Vn;for(Vn=!1,t=0;t2?"&"+e+"="+rt(n):""}var o,u,c,f,l,d,p,v=new Date,N=Math.round(v.getTime()/1e3),b=1024,k=Bn,w=_t("ses"),y=_t("ref"),A=_t("cvar"),E=g(w),_=Bt(),S=De||an;if(Vn&&zt(),We)return"";var I=Gt(),L=Z.characterSet||Z.charset;if(L&&"utf-8"!==L.toLowerCase()||(L=null),d=_[0],p=_[1],u=_[2],c=_[3],!E){if(!Je||!d.length){for(o in On)if(Object.prototype.hasOwnProperty.call(On,o)&&(d=O(S,On[o])).length)break;for(o in In)if(Object.prototype.hasOwnProperty.call(In,o)&&(p=O(S,In[o])).length)break}f=C(sn),l=c.length?C(c):"",!f.length||W(f)||Je&&l.length&&!W(l)||(c=sn),(c.length||d.length)&&(_=[d,p,u=N,T(c.slice(0,b))],m(y,nt.JSON.stringify(_),Un,Be,He,Rn,qn))}t+="&idsite="+vn+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+v.getHours()+"&m="+v.getMinutes()+"&s="+v.getSeconds()+"&url="+rt(T(S))+(sn.length?"&urlref="+rt(T(sn)):"")+(a(Cn)?"&uid="+rt(Cn):"")+"&_id="+I.uuid+"&_idn="+I.newVisitor+(d.length?"&_rcn="+rt(d):"")+(p.length?"&_rck="+rt(p):"")+"&_refts="+u+(String(c).length?"&_ref="+rt(T(c.slice(0,b))):"")+(L?"&cs="+rt(L):"")+"&send_image=0";var x=Lt();for(o in x)Object.prototype.hasOwnProperty.call(x,o)&&(t+="&"+o+"="+x[o]);var P=[];if(e)for(o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&/^dimension\d+$/.test(o)){var R=o.replace("dimension","");P.push(parseInt(R,10)),P.push(String(R)),t+="&"+o+"="+rt(e[o]),delete e[o]}for(o in e&&s(e)&&(e=null),Qn)Object.prototype.hasOwnProperty.call(Qn,o)&&(t+="&"+o+"="+rt(Qn[o]));for(o in Jn){if(Object.prototype.hasOwnProperty.call(Jn,o))-1===D(P,o)&&(t+="&dimension"+o+"="+rt(Jn[o]))}e?t+="&data="+rt(nt.JSON.stringify(e)):Fe&&(t+="&data="+rt(nt.JSON.stringify(Fe)));var q=Yt(Wn),V=Yt(zn);if(t+=r(q,"cvar"),t+=r(V,"e_cvar"),Bn){for(o in t+=r(Bn,"_cvar"),k)Object.prototype.hasOwnProperty.call(k,o)&&(""!==Bn[o][0]&&""!==Bn[o][1]||delete Bn[o]);Hn&&m(A,nt.JSON.stringify(Bn),Dn,Be,He,Rn,qn)}return jn&&Gn&&!Fn&&(t=$t(t),Fn=!0),Ke&&(t+="&pv_id="+Ke),Ht(I),Qt(),t+=h(i,{tracker:Ze,request:t}),mn.length&&(t+="&"+mn),n(Ye)&&(t=Ye(t)),t}function Zt(t,n,i,r,o,a){var s,u="idgoal=0",c=(new Date,[]),f=String(t).length;if(f&&(u+="&ec_id="+rt(t)),u+="&revenue="+n,String(i).length&&(u+="&ec_st="+i),String(r).length&&(u+="&ec_tx="+r),String(o).length&&(u+="&ec_sh="+o),String(a).length&&(u+="&ec_dt="+a),Xn){for(s in Xn)Object.prototype.hasOwnProperty.call(Xn,s)&&(e(Xn[s][1])||(Xn[s][1]=""),e(Xn[s][2])||(Xn[s][2]=""),e(Xn[s][3])&&0!==String(Xn[s][3]).length||(Xn[s][3]=0),e(Xn[s][4])&&0!==String(Xn[s][4]).length||(Xn[s][4]=1),c.push(Xn[s]));u+="&ec_items="+rt(nt.JSON.stringify(c))}wt(u=Kt(u,Fe,"ecommerce"),_n),f&&(Xn={})}function te(t,n,i,r,o,a){String(t).length&&e(n)&&Zt(t,n,i,r,o,a)}function ee(t){e(t)&&Zt("",t,"","","","")}function ne(t,e,n){si||(Ke=Xt());var i=Kt("action_name="+rt(q(t||Nn)),e,"log");jn&&!Fn&&(i=$t(i)),wt(i,_n,n)}function ie(t,e){var n,i="(^| )(piwik[_-]"+e+"|matomo[_-]"+e;if(t)for(n=0;n0&&s(e=parseInt(e,10))})}var De,Ue,je,Ge,Fe,He,Be,We,ze,Je,Ye,Qe,Xe,$e,Ke,Ze=this,tn="mtm_consent",en="mtm_cookie_consent",nn="mtm_consent_removed",rn=P(Z.domain,nt.location.href,p()),on=R(rn[0]),an=t(rn[1]),sn=t(rn[2]),un=!1,cn="GET",fn=cn,ln="application/x-www-form-urlencoded; charset=UTF-8",dn=ln,hn=o||"",gn="",mn="",pn="",vn=c||"",Cn="",Tn="",Nn="",bn=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","rtf","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],kn=[on],wn=[],yn=[],An=[],En=[],_n=500,Sn=!0,On=["pk_campaign","mtm_campaign","piwik_campaign","matomo_campaign","utm_campaign","utm_source","utm_medium"],In=["pk_kwd","mtm_kwd","piwik_kwd","matomo_kwd","utm_term"],Ln="_pk_",xn="pk_vid",Pn=180,Rn=!1,qn="Lax",Vn=!1,Mn=339552e5,Dn=18e5,Un=15768e6,jn=!0,Gn=!1,Fn=!1,Hn=!1,Bn=!1,Wn={},zn={},Jn={},Yn=200,Qn={},Xn={},$n={},Kn=[],Zn=!1,ti=!1,ei=!1,ni=!1,ii=!1,ri=(H(),null),oi=null,ai=x,si=!1,ui=0,ci=["id","ses","cvar","ref"],fi=!1,li=null,di=[],hi=[],gi=ft++,mi=!1,pi=!0;try{Nn=Z.title}catch(Ci){Nn=""}li=!g(nn),je=function(){var t=new Date;return t=t.getTime(),!!oi&&(oi+Ue<=t&&(Ze.ping(),!0))};var vi={enabled:!0,requests:[],timeout:null,interval:2500,sendRequests:function(){var t=this.requests;this.requests=[],1===t.length?wt(t[0],_n):Et(t,_n)},canQueue:function(){return!lt&&this.enabled},pushMultiple:function(t){var e;if(this.canQueue())for(e=0;e0&&(e(n)||(n=""),r(n)||(n=String(n)),Jn[t]=n)},this.getCustomDimension=function(t){if((t=parseInt(t,10))>0&&Object.prototype.hasOwnProperty.call(Jn,t))return Jn[t]},this.deleteCustomDimension=function(t){(t=parseInt(t,10))>0&&delete Jn[t]},this.setCustomVariable=function(t,n,i,o){var a;e(o)||(o="visit"),e(n)&&(e(i)||(i=""),t>0&&(n=r(n)?n:String(n),i=r(i)?i:String(i),a=[n.slice(0,Yn),i.slice(0,Yn)],"visit"===o||2===o?(Pt(),Bn[t]=a):"page"===o||3===o?Wn[t]=a:"event"===o&&(zn[t]=a)))},this.getCustomVariable=function(t,n){var i;return e(n)||(n="visit"),"page"===n||3===n?i=Wn[t]:"event"===n?i=zn[t]:"visit"!==n&&2!==n||(Pt(),i=Bn[t]),!(!e(i)||i&&""===i[0])&&i},this.deleteCustomVariable=function(t,e){this.getCustomVariable(t,e)&&this.setCustomVariable(t,"","",e)},this.deleteCustomVariables=function(t){"page"===t||3===t?Wn={}:"event"===t?zn={}:"visit"!==t&&2!==t||(Bn={})},this.storeCustomVariablesInCookie=function(){Hn=!0},this.setLinkTrackingTimer=function(t){_n=t},this.getLinkTrackingTimer=function(){return _n},this.setDownloadExtensions=function(t){r(t)&&(t=t.split("|")),bn=t},this.addDownloadExtensions=function(t){var e;for(r(t)&&(t=t.split("|")),e=0;e1&&"addTracker"!==a&&"enableLinkTracking"!==a&&u("The method "+a+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Matomo trackers documentation: https://developer.matomo.org/guides/tracking-javascript-guide#multiple-piwik-trackers'),r[a]++)}}return t}function J(t,e){var n=new B(t,e);for(at.push(n),_paq=z(_paq,gt),Q=0;Q<_paq.length;Q++)_paq[Q]&&c(_paq[Q]);return _paq=new W,X.trigger("TrackerAdded",[n]),n}var Y,Q,X,$={},K={},Z=document,tt=navigator,et=screen,nt=window,it=nt.performance||nt.mozPerformance||nt.msPerformance||nt.webkitPerformance,rt=nt.encodeURIComponent,ot=nt.decodeURIComponent,at=(unescape,[]),st=[],ut=0,ct=0,ft=0,lt=!1,dt={htmlCollectionToArray:function(t){var e,n=[];if(!t||!t.length)return n;for(e=0;er?-1:1}),t.length<=1)return t;var n,i=0,r=0,o=[];for(n=t[i++];n;)n===t[i]&&(r=o.push(i)),n=t[i++]||null;for(;r--;)t.splice(o[r],1);return t},getAttributeValueFromNode:function(t,e){if(this.hasNodeAttribute(t,e)){if(t&&t.getAttribute)return t.getAttribute(e);if(t&&t.attributes)if("undefined"!==typeof t.attributes[e]){if(t.attributes[e].value)return t.attributes[e].value;if(t.attributes[e].nodeValue)return t.attributes[e].nodeValue;var n,i=t.attributes;if(i){for(n=0;n1e3)break;n++}},findPieceNode:function(t){var e;return(e=dt.findFirstNodeHavingAttribute(t,this.CONTENT_PIECE_ATTR))||(e=dt.findFirstNodeHavingClass(t,this.CONTENT_PIECE_CLASS)),e||(e=dt.findFirstNodeHavingClass(t,this.LEGACY_CONTENT_PIECE_CLASS)),e||t},findTargetNodeNoDefault:function(t){if(t){var e=dt.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_TARGET_ATTR);return e||((e=dt.findFirstNodeHavingAttribute(t,this.CONTENT_TARGET_ATTR))?e:(e=dt.findFirstNodeHavingClass(t,this.CONTENT_TARGET_CLASS))?e:(e=dt.findFirstNodeHavingClass(t,this.LEGACY_CONTENT_TARGET_CLASS))||void 0)}},findTargetNode:function(t){var e=this.findTargetNodeNoDefault(t);return e||t},findContentName:function(t){if(t){var e=dt.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_NAME_ATTR);if(e)return dt.getAttributeValueFromNode(e,this.CONTENT_NAME_ATTR);var n=this.findContentPiece(t);if(n)return this.removeDomainIfIsInLink(n);if(dt.hasNodeAttributeWithValue(t,"title"))return dt.getAttributeValueFromNode(t,"title");var i=this.findPieceNode(t);if(dt.hasNodeAttributeWithValue(i,"title"))return dt.getAttributeValueFromNode(i,"title");var r=this.findTargetNode(t);return dt.hasNodeAttributeWithValue(r,"title")?dt.getAttributeValueFromNode(r,"title"):void 0}},findContentPiece:function(t){if(t){var e=dt.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_PIECE_ATTR);if(e)return dt.getAttributeValueFromNode(e,this.CONTENT_PIECE_ATTR);var n=this.findPieceNode(t),i=this.findMediaUrlInNode(n);return i?this.toAbsoluteUrl(i):void 0}},findContentTarget:function(t){if(t){var e,n=this.findTargetNode(t);if(dt.hasNodeAttributeWithValue(n,this.CONTENT_TARGET_ATTR))return dt.getAttributeValueFromNode(n,this.CONTENT_TARGET_ATTR);if(dt.hasNodeAttributeWithValue(n,"href"))return e=dt.getAttributeValueFromNode(n,"href"),this.toAbsoluteUrl(e);var i=this.findPieceNode(t);return dt.hasNodeAttributeWithValue(i,"href")?(e=dt.getAttributeValueFromNode(i,"href"),this.toAbsoluteUrl(e)):void 0}},isSameDomain:function(t){if(!t||!t.indexOf)return!1;if(0===t.indexOf(this.getLocation().origin))return!0;var e=t.indexOf(this.getLocation().host);return 8>=e&&0<=e},removeDomainIfIsInLink:function(t){var e="^https?://[^/]+",n="^.*//[^/]+";return t&&t.search&&-1!==t.search(new RegExp(e))&&this.isSameDomain(t)&&((t=t.replace(new RegExp(n),""))||(t="/")),t},findMediaUrlInNode:function(t){if(t){var e=["img","embed","video","audio"],n=t.nodeName.toLowerCase();if(-1!==D(e,n)&&dt.findFirstNodeHavingAttributeWithValue(t,"src")){var i=dt.findFirstNodeHavingAttributeWithValue(t,"src");return dt.getAttributeValueFromNode(i,"src")}if("object"===n&&dt.hasNodeAttributeWithValue(t,"data"))return dt.getAttributeValueFromNode(t,"data");if("object"===n){var r,o=dt.findNodesByTagName(t,"param");if(o&&o.length)for(r=0;r0);var r=n.clientWidth;nt.innerWidth&&r>nt.innerWidth&&(r=nt.innerWidth);var o=n.clientHeight;return nt.innerHeight&&o>nt.innerHeight&&(o=nt.innerHeight),(e.bottom>0||i)&&e.right>0&&e.left