"object"!=typeof _paq&&(_paq=[]),"object"!=typeof window.Matomo&&(window.Matomo=window.Piwik=function(){function t(t){try{return et(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 z[s]&&"function"==typeof z[s][n]?z[s][n].apply(z[s],i):o&&it.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){it.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(nt[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"===Q.readyState?t():$.addEventListener?$.addEventListener("load",t,!1):$.attachEvent&&$.attachEvent("onload",t)}function d(t){var e=!1;(e=Q.attachEvent?"complete"===Q.readyState:"loading"!==Q.readyState)?t():(Q.addEventListener?f(Q,"DOMContentLoaded",function n(){Q.removeEventListener("DOMContentLoaded",n,!1),e||(e=!0,t())}):Q.attachEvent&&(Q.attachEvent("onreadystatechange",function i(){"complete"===Q.readyState&&(Q.detachEvent("onreadystatechange",i),e||(e=!0,t()))}),Q.documentElement.doScroll&&$===$.top&&function r(){if(!e){try{Q.documentElement.doScroll("left")}catch(n){return void setTimeout(r,0)}e=!0,t()}}()),f($,"load",function(){e||(e=!0,t())},!1))}function h(t,e,n){if(!t)return"";var i,r,o="";for(i in J)Object.prototype.hasOwnProperty.call(J,i)&&(J[i]&&"function"==typeof J[i][t])&&(r=(0,J[i][t])(e||{},n))&&(o+=r);return o}function g(){var t;st=!0,h("unload");var e=(t=new Date).getTimeAlias();if(W-e>3e3&&(W=e+3e3),W)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 A(e,n){var i=new RegExp("[\\?&#]"+n+"=([^&#]*)").exec(e);return i?t(i[1]):""}function E(t){return t&&String(t)===t?t.replace(/^\s+|\s+$/g,""):t}function _(t){return unescape(tt(t))}function S(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=_(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)!==e&&u("There was an error setting cookie `"+t+"`. Please check domain and path."))}function b(t){var e;return t=y(t,En),Ve?(e=new RegExp("#.*"),t.replace(e,"")):t}function k(t,e){var n;return v(e)?e:"/"===e.slice(0,1)?v(t)+"://"+C(t)+e:((n=(t=b(t)).indexOf("?"))>=0&&(t=t.slice(0,n)),(n=t.lastIndexOf("/"))!==t.length-1&&(t=t.slice(0,n+1)),t+e)}function _(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 x(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=ct.toAbsoluteUrl(t),e.pathname?e.pathname:""}function P(t,e){T(e,"/")||(e="/"+e),T(t,"/")||(t="/"+t);var n="/"===e||"/*"===e;return!!n||(t===e||(e=String(e).toLowerCase(),t=String(t).toLowerCase(),N(e,"*")?!!(n=!(e=e.slice(0,-1))||"/"===e)||(t===e||0===t.indexOf(e)):(N(t,"/")||(t+="/"),N(e,"/")||(e+="/"),0===t.indexOf(e))))}function G(t,e){var n,i,r;for(n=0;n0&&t.slice(i)===n)return!0}}return!1}function F(t,e){t=t.replace("send_image=0","send_image=1");var n=new Image(1,1);n.onload=function(){B=0,"function"==typeof e&&e({request:t,trackerUrl:cn,success:!0})},n.onerror=function(){"function"==typeof e&&e({request:t,trackerUrl:cn,success:!1})},n.src=cn+(cn.indexOf("?")<0?"?":"&")+t}function Y(t){return"POST"===an||t&&(t.length>2e3||0===t.indexOf('{"requests"'))}function it(){return"object"==typeof X&&"function"==typeof X.sendBeacon&&"function"==typeof Blob}function ft(t,e,n){if(!it())return!1;var i={type:"application/x-www-form-urlencoded; charset=UTF-8"},r=!1,o=cn;try{var a=new Blob([t],i);n&&!Y(t)&&(a=new Blob([],i),o=o+(o.indexOf("?")<0?"?":"&")+t),r=X.sendBeacon(o,a)}catch(s){return!1}return r&&"function"==typeof e&&e({request:t,trackerUrl:cn,success:!0,isSendBeacon:!0}),r}function lt(t,n,i){e(i)&&null!==i||(i=!0),st&&ft(t,n,i)||setTimeout(function(){if(!st||!ft(t,n,i))try{var e=$.XMLHttpRequest?new $.XMLHttpRequest:$.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;e.open("POST",cn,!0),e.onreadystatechange=function(){4!==this.readyState||this.status>=200&&this.status<300?4===this.readyState&&"function"==typeof n&&n({request:t,trackerUrl:cn,success:!0,xhr:this}):!(st&&ft(t,n,i))&&i?F(t,n):"function"==typeof n&&n({request:t,trackerUrl:cn,success:!1,xhr:this})},e.setRequestHeader("Content-Type",un),e.withCredentials=!0,e.send(t)}catch(r){!(st&&ft(t,n,i))&&i?F(t,n):"function"==typeof n&&n({request:t,trackerUrl:cn,success:!1})}},50)}function dt(t){var e=(new Date).getTime()+t;(!W||e>W)&&(W=e)}function ht(){!0,$n=(new Date).getTime()}function gt(){var t=(new Date).getTime();return!$n||t-$n>Pe}function mt(){gt()&&Me()}function pt(){!Kn&&Pe&&(Kn=!0,f($,"focus",ht),f($,"blur",mt),ot++,z.addPlugin("HeartBeat"+ot,{unload:function(){Kn&>()&&Me()}}))}function vt(t){var e=(new Date).getTime();if(Zn=e,Yn&&e=t.length)return[t];for(var n=0,i=t.length,r=[];n=r&&o<=r+_n)return!0}return!1}function Pt(t){if(!Xn)return"";var e=A(t,En);if(!e)return"";e=String(e);var n=new RegExp("^[a-zA-Z0-9]+$");if(32===e.length&&n.test(e)&&qt(e.substr(16,32)))return e.substr(0,16);return""}function Mt(){gn||(gn=Pt(en));var t,e=new Date,n=Math.round(e.getTime()/1e3),i=g(wt("id"));return i?((t=i.split(".")).unshift("0"),gn.length&&(t[1]=gn),t):t=["1",gn.length?gn:"0"===At()?"":It(),n]}function Vt(){var t=Mt();return{newVisitor:t[0],uuid:t[1],createTs:t[2]}}function Ut(){var t=(new Date).getTime(),e=Vt().createTs;return 1e3*parseInt(e,10)+Ln-t}function Dt(t){if(dn){var n=new Date;Math.round(n.getTime()/1e3);e(t)||(t=Vt());var i=t.uuid+"."+t.createTs+".";m(wt("id"),i,Ut(),je,De,Sn,On)}}function jt(){var t=g(wt("ref"));if(t.length)try{if(i(t=$.JSON.parse(t)))return t}catch(e){}return["","",0,""]}function Gt(t){var e=An+"testcookie_domain",n="testvalue";return m(e,n,1e4,null,t,Sn,On),g(e)===n&&(yt(e,null,t),!0)}function Ht(){var t,e,n=In;for(In=!1,t=0;t2?"&"+e+"="+tt(n):""}var o,u,c,f,l,d,p,v=new Date,T=Math.round(v.getTime()/1e3),N=1024,k=Un,w=wt("ses"),y=wt("ref"),E=wt("cvar"),_=g(w),S=jt(),O=qe||en;if(In&&Ht(),Ge)return"";var I=Vt(),L=Q.characterSet||Q.charset;if(L&&"utf-8"!==L.toLowerCase()||(L=null),d=S[0],p=S[1],u=S[2],c=S[3],!_){if(!Fe||!d.length){for(o in wn)if(Object.prototype.hasOwnProperty.call(wn,o)&&(d=A(O,wn[o])).length)break;for(o in yn)if(Object.prototype.hasOwnProperty.call(yn,o)&&(p=A(O,yn[o])).length)break}f=C(nn),l=c.length?C(c):"",!f.length||H(f)||Fe&&l.length&&!H(l)||(c=nn),(c.length||d.length)&&(S=[d,p,u=T,b(c.slice(0,N))],m(y,$.JSON.stringify(S),Rn,je,De,Sn,On))}t+="&idsite="+dn+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+v.getHours()+"&m="+v.getMinutes()+"&s="+v.getSeconds()+"&url="+tt(b(O))+(nn.length?"&urlref="+tt(b(nn)):"")+(a(hn)?"&uid="+tt(hn):"")+"&_id="+I.uuid+"&_idn="+I.newVisitor+(d.length?"&_rcn="+tt(d):"")+(p.length?"&_rck="+tt(p):"")+"&_refts="+u+(String(c).length?"&_ref="+tt(b(c.slice(0,N))):"")+(L?"&cs="+tt(L):"")+"&send_image=0";var x=_t();for(o in x)Object.prototype.hasOwnProperty.call(x,o)&&(t+="&"+o+"="+x[o]);var R=[];if(e)for(o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&/^dimension\d+$/.test(o)){var P=o.replace("dimension","");R.push(parseInt(P,10)),R.push(String(P)),t+="&"+o+"="+tt(e[o]),delete e[o]}for(o in e&&s(e)&&(e=null),Fn)Object.prototype.hasOwnProperty.call(Fn,o)&&(t+="&"+o+"="+tt(Fn[o]));for(o in Gn){if(Object.prototype.hasOwnProperty.call(Gn,o))-1===q(R,o)&&(t+="&dimension"+o+"="+tt(Gn[o]))}e?t+="&data="+tt($.JSON.stringify(e)):Ue&&(t+="&data="+tt($.JSON.stringify(Ue)));var M=Wt(Dn),V=Wt(jn);if(t+=r(M,"cvar"),t+=r(V,"e_cvar"),Un){for(o in t+=r(Un,"_cvar"),k)Object.prototype.hasOwnProperty.call(k,o)&&(""!==Un[o][0]&&""!==Un[o][1]||delete Un[o]);Vn&&m(E,$.JSON.stringify(Un),xn,je,De,Sn,On)}return qn&&Pn&&!Mn&&(t=Jt(t),Mn=!0),Ye&&(t+="&pv_id="+Ye),Dt(I),Bt(),t+=h(i,{tracker:Qe,request:t}),ln.length&&(t+="&"+ln),n(We)&&(t=We(t)),t}function Qt(t,n,i,r,o,a){var s,u="idgoal=0",c=(new Date,[]),f=String(t).length;if(f&&(u+="&ec_id="+tt(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),Wn){for(s in Wn)Object.prototype.hasOwnProperty.call(Wn,s)&&(e(Wn[s][1])||(Wn[s][1]=""),e(Wn[s][2])||(Wn[s][2]=""),e(Wn[s][3])&&0!==String(Wn[s][3]).length||(Wn[s][3]=0),e(Wn[s][4])&&0!==String(Wn[s][4]).length||(Wn[s][4]=1),c.push(Wn[s]));u+="&ec_items="+tt($.JSON.stringify(c))}Tt(u=Yt(u,Ue,"ecommerce"),bn),f&&(Wn={})}function Xt(t,n,i,r,o,a){String(t).length&&e(n)&&Qt(t,n,i,r,o,a)}function Kt(t){e(t)&&Qt("",t,"","","","")}function $t(t,e,n){ei||(Ye=zt());var i=Yt("action_name="+tt(L(t||mn)),e,"log");qn&&!Mn&&(i=Jt(i)),Tt(i,bn,n)}function Zt(t,e){var n,i="(^| )(piwik[_-]"+e+"|matomo[_-]"+e;if(t)for(n=0;n0&&s(e=parseInt(e,10))})}var qe,Pe,Me,Ve,Ue,De,je,Ge,He,Fe,We,Be,ze,Je,Ye,Qe=this,Xe="mtm_consent",Ke="mtm_cookie_consent",$e="mtm_consent_removed",Ze=O(Q.domain,$.location.href,p()),tn=I(Ze[0]),en=t(Ze[1]),nn=t(Ze[2]),rn=!1,on="GET",an=on,sn="application/x-www-form-urlencoded; charset=UTF-8",un=sn,cn=o||"",fn="",ln="",dn=c||"",hn="",gn="",mn="",pn=["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"],vn=[tn],Cn=[],Tn=[],Nn=[],bn=500,kn=!0,wn=["pk_campaign","mtm_campaign","piwik_campaign","matomo_campaign","utm_campaign","utm_source","utm_medium"],yn=["pk_kwd","mtm_kwd","piwik_kwd","matomo_kwd","utm_term"],An="_pk_",En="pk_vid",_n=180,Sn=!1,On="Lax",In=!1,Ln=339552e5,xn=18e5,Rn=15768e6,qn=!0,Pn=!1,Mn=!1,Vn=!1,Un=!1,Dn={},jn={},Gn={},Hn=200,Fn={},Wn={},Bn={},zn=[],Jn=!1,Yn=!1,Qn=!1,Xn=!1,Kn=!1,$n=(D(),null),Zn=null,ti=S,ei=!1,ni=0,ii=["id","ses","cvar","ref"],ri=!1,oi=null,ai=[],si=[],ui=at++,ci=!1;try{mn=Q.title}catch(li){mn=""}oi=!g($e),Me=function(){var t=new Date;return t=t.getTime(),!!Zn&&(Zn+Pe<=t&&(Qe.ping(),!0))};var fi={enabled:!0,requests:[],timeout:null,interval:2500,sendRequests:function(){var t=this.requests;this.requests=[],1===t.length?Tt(t[0],bn):kt(t,bn)},canQueue:function(){return!st&&this.enabled},pushMultiple:function(t){var e;if(this.canQueue())for(e=0;e0&&(e(n)||(n=""),r(n)||(n=String(n)),Gn[t]=n)},this.getCustomDimension=function(t){if((t=parseInt(t,10))>0&&Object.prototype.hasOwnProperty.call(Gn,t))return Gn[t]},this.deleteCustomDimension=function(t){(t=parseInt(t,10))>0&&delete Gn[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,Hn),i.slice(0,Hn)],"visit"===o||2===o?(Ot(),Un[t]=a):"page"===o||3===o?Dn[t]=a:"event"===o&&(jn[t]=a)))},this.getCustomVariable=function(t,n){var i;return e(n)||(n="visit"),"page"===n||3===n?i=Dn[t]:"event"===n?i=jn[t]:"visit"!==n&&2!==n||(Ot(),i=Un[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?Dn={}:"event"===t?jn={}:"visit"!==t&&2!==t||(Un={})},this.storeCustomVariablesInCookie=function(){Vn=!0},this.setLinkTrackingTimer=function(t){bn=t},this.getLinkTrackingTimer=function(){return bn},this.setDownloadExtensions=function(t){r(t)&&(t=t.split("|")),pn=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 F(t,e){var n=new j(t,e);for(nt.push(n),_paq=H(_paq,ft),B=0;B<_paq.length;B++)_paq[B]&&c(_paq[B]);return _paq=new G,z.trigger("TrackerAdded",[n]),n}var W,B,z,J={},Y={},Q=document,X=navigator,K=screen,$=window,Z=$.performance||$.mozPerformance||$.msPerformance||$.webkitPerformance,tt=$.encodeURIComponent,et=$.decodeURIComponent,nt=(unescape,[]),it=[],rt=0,ot=0,at=0,st=!1,ut={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=ut.findFirstNodeHavingAttribute(t,this.CONTENT_PIECE_ATTR))||(e=ut.findFirstNodeHavingClass(t,this.CONTENT_PIECE_CLASS)),e||(e=ut.findFirstNodeHavingClass(t,this.LEGACY_CONTENT_PIECE_CLASS)),e||t},findTargetNodeNoDefault:function(t){if(t){var e=ut.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_TARGET_ATTR);return e||((e=ut.findFirstNodeHavingAttribute(t,this.CONTENT_TARGET_ATTR))?e:(e=ut.findFirstNodeHavingClass(t,this.CONTENT_TARGET_CLASS))?e:(e=ut.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=ut.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_NAME_ATTR);if(e)return ut.getAttributeValueFromNode(e,this.CONTENT_NAME_ATTR);var n=this.findContentPiece(t);if(n)return this.removeDomainIfIsInLink(n);if(ut.hasNodeAttributeWithValue(t,"title"))return ut.getAttributeValueFromNode(t,"title");var i=this.findPieceNode(t);if(ut.hasNodeAttributeWithValue(i,"title"))return ut.getAttributeValueFromNode(i,"title");var r=this.findTargetNode(t);return ut.hasNodeAttributeWithValue(r,"title")?ut.getAttributeValueFromNode(r,"title"):void 0}},findContentPiece:function(t){if(t){var e=ut.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_PIECE_ATTR);if(e)return ut.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(ut.hasNodeAttributeWithValue(n,this.CONTENT_TARGET_ATTR))return ut.getAttributeValueFromNode(n,this.CONTENT_TARGET_ATTR);if(ut.hasNodeAttributeWithValue(n,"href"))return e=ut.getAttributeValueFromNode(n,"href"),this.toAbsoluteUrl(e);var i=this.findPieceNode(t);return ut.hasNodeAttributeWithValue(i,"href")?(e=ut.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!==q(e,n)&&ut.findFirstNodeHavingAttributeWithValue(t,"src")){var i=ut.findFirstNodeHavingAttributeWithValue(t,"src");return ut.getAttributeValueFromNode(i,"src")}if("object"===n&&ut.hasNodeAttributeWithValue(t,"data"))return ut.getAttributeValueFromNode(t,"data");if("object"===n){var r,o=ut.findNodesByTagName(t,"param");if(o&&o.length)for(r=0;r0);var r=n.clientWidth;$.innerWidth&&r>$.innerWidth&&(r=$.innerWidth);var o=n.clientHeight;return $.innerHeight&&o>$.innerHeight&&(o=$.innerHeight),(e.bottom>0||i)&&e.right>0&&e.left