/*!! * Matomo - free/libre analytics platform * * JavaScript tracking client * * @link https://piwik.org * @source https://github.com/matomo-org/matomo/blob/master/js/piwik.js * @license https://piwik.org/free-software/bsd/ BSD-3 Clause (also in js/LICENSE.txt) * @license magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt BSD-3-Clause */ ;if(typeof _paq!=="object"){_paq=[]}if(typeof window.Matomo!=="object"){window.Matomo=window.Piwik=(function(){var r,b={},z={},J=document,g=navigator,ab=screen,W=window,h=W.performance||W.mozPerformance||W.msPerformance||W.webkitPerformance,t=W.encodeURIComponent,V=W.decodeURIComponent,k=unescape,L=[],H,u,al=[],y=0,af=0,X=0,m=false;function p(at){try{return V(at)}catch(au){return unescape(at)}}function M(au){var at=typeof au;return at!=="undefined"}function C(at){return typeof at==="function"}function Z(at){return typeof at==="object"}function x(at){return typeof at==="string"||at instanceof String}function ak(at){return typeof at==="number"||at instanceof Number }function ac(at){return M(at)&&(ak(at)||(x(at)&&at.length))}function D(au){if(!au){return true}var at;for(at in au){if(Object.prototype.hasOwnProperty.call(au,at)){return false}}return true}function ao(at){var au=typeof console;if(au!=="undefined"&&console&&console.error){console.error(at)}}function aj(){var ay,ax,aA,au,at;for(ay=0;ay0;if(aw){az=aA.split("::");av=az[0];aA=az[1];if("object"===typeof u[av]&&"function"===typeof u[av][aA]){u[av][aA].apply(u[av],au)}else{if(at){al.push(at)}}}else{for(ax=0;ax0;if(aB){az=aA.split(".");if(av&&"object"===typeof av[az[0]]){av=av[az[0]];aA=az[1]}else{if(at){al.push(at);break}}}if(av[aA]){av[aA].apply(av,au)}else{var aC="The method '"+aA+'\' was not found in "_paq" variable. Please have a look at the Matomo tracker documentation: https://developer.matomo.org/api-reference/tracking-javascript'; ao(aC);if(!aB){throw new TypeError(aC)}}if(aA==="addTracker"){break}if(aA==="setTrackerUrl"||aA==="setSiteId"){break}}else{aA.apply(L[ax],au)}}}}}function ar(aw,av,au,at){if(aw.addEventListener){aw.addEventListener(av,au,at);return true}if(aw.attachEvent){return aw.attachEvent("on"+av,au)}aw["on"+av]=au}function n(at){if(J.readyState==="complete"){at()}else{if(W.addEventListener){W.addEventListener("load",at,false)}else{if(W.attachEvent){W.attachEvent("onload",at)}}}}function q(aw){var at=false;if(J.attachEvent){at=J.readyState==="complete"}else{at=J.readyState!=="loading"}if(at){aw();return}var av;if(J.addEventListener){ar(J,"DOMContentLoaded",function au(){J.removeEventListener("DOMContentLoaded",au,false);if(!at){at=true;aw()}})}else{if(J.attachEvent){J.attachEvent("onreadystatechange",function au(){if(J.readyState==="complete"){J.detachEvent("onreadystatechange",au);if(!at){at=true;aw()}}});if(J.documentElement.doScroll&&W===W.top){(function au(){if(!at){try{J.documentElement.doScroll("left") }catch(ax){setTimeout(au,0);return}at=true;aw()}}())}}}ar(W,"load",function(){if(!at){at=true;aw()}},false)}function ag(au,az,aA){if(!au){return""}var at="",aw,av,ax,ay;for(aw in b){if(Object.prototype.hasOwnProperty.call(b,aw)){ay=b[aw]&&"function"===typeof b[aw][au];if(ay){av=b[aw][au];ax=av(az||{},aA);if(ax){at+=ax}}}}return at}function am(au){var at;m=true;ag("unload");at=new Date();var av=at.getTimeAlias();if((r-av)>3000){r=av+3000}if(r){do{at=new Date()}while(at.getTimeAlias()=0;ay--){ax=az[ay].split("=")[0];if(ax===av){az.splice(ay,1)}}var aC=az.join("&");if(aC){aA=aA+"?"+aC}if(aB){aA+="#"+aB}}return aA}function e(av,au){var at="[\\?&#]"+au+"=([^&#]*)";var ax=new RegExp(at);var aw=ax.exec(av);return aw?p(aw[1]):""}function a(at){if(at&&String(at)===at){return at.replace(/^\s+|\s+$/g,"")}return at}function F(at){return unescape(t(at))}function aq(aI){var av=function(aO,aN){return(aO<>>(32-aN))},aJ=function(aQ){var aO="",aP,aN;for(aP=7;aP>=0;aP--){aN=(aQ>>>(aP*4))&15; aO+=aN.toString(16)}return aO},ay,aL,aK,au=[],aC=1732584193,aA=4023233417,az=2562383102,ax=271733878,aw=3285377520,aH,aG,aF,aE,aD,aM,at,aB=[];aI=F(aI);at=aI.length;for(aL=0;aL>>29);aB.push((at<<3)&4294967295);for(ay=0;ayay.offsetWidth+ay.scrollLeft||aA+aD-aEay.offsetHeight+ay.scrollTop||aF+aB-aEaB?-1:1});if(at.length<=1){return at}var au=0;var aw=0;var ax=[];var av;av=at[au++];while(av){if(av===at[au]){aw=ax.push(au)}av=at[au++]||null}while(aw--){at.splice(ax[aw],1)}return at},getAttributeValueFromNode:function(ax,av){if(!this.hasNodeAttribute(ax,av)){return}if(ax&&ax.getAttribute){return ax.getAttribute(av)}if(!ax||!ax.attributes){return}var aw=(typeof ax.attributes[av]);if("undefined"===aw){return}if(ax.attributes[av].value){return ax.attributes[av].value}if(ax.attributes[av].nodeValue){return ax.attributes[av].nodeValue}var au;var at=ax.attributes;if(!at){return}for(au=0;au1000){break}at++}},findPieceNode:function(au){var at; at=ai.findFirstNodeHavingAttribute(au,this.CONTENT_PIECE_ATTR);if(!at){at=ai.findFirstNodeHavingClass(au,this.CONTENT_PIECE_CLASS)}if(!at){at=ai.findFirstNodeHavingClass(au,this.LEGACY_CONTENT_PIECE_CLASS)}if(at){return at}return au},findTargetNodeNoDefault:function(at){if(!at){return}var au=ai.findFirstNodeHavingAttributeWithValue(at,this.CONTENT_TARGET_ATTR);if(au){return au}au=ai.findFirstNodeHavingAttribute(at,this.CONTENT_TARGET_ATTR);if(au){return au}au=ai.findFirstNodeHavingClass(at,this.CONTENT_TARGET_CLASS);if(au){return au}au=ai.findFirstNodeHavingClass(at,this.LEGACY_CONTENT_TARGET_CLASS);if(au){return au}},findTargetNode:function(at){var au=this.findTargetNodeNoDefault(at);if(au){return au}return at},findContentName:function(au){if(!au){return}var ax=ai.findFirstNodeHavingAttributeWithValue(au,this.CONTENT_NAME_ATTR);if(ax){return ai.getAttributeValueFromNode(ax,this.CONTENT_NAME_ATTR)}var at=this.findContentPiece(au);if(at){return this.removeDomainIfIsInLink(at)}if(ai.hasNodeAttributeWithValue(au,"title")){return ai.getAttributeValueFromNode(au,"title") }var av=this.findPieceNode(au);if(ai.hasNodeAttributeWithValue(av,"title")){return ai.getAttributeValueFromNode(av,"title")}var aw=this.findTargetNode(au);if(ai.hasNodeAttributeWithValue(aw,"title")){return ai.getAttributeValueFromNode(aw,"title")}},findContentPiece:function(au){if(!au){return}var aw=ai.findFirstNodeHavingAttributeWithValue(au,this.CONTENT_PIECE_ATTR);if(aw){return ai.getAttributeValueFromNode(aw,this.CONTENT_PIECE_ATTR)}var at=this.findPieceNode(au);var av=this.findMediaUrlInNode(at);if(av){return this.toAbsoluteUrl(av)}},findContentTarget:function(av){if(!av){return}var aw=this.findTargetNode(av);if(ai.hasNodeAttributeWithValue(aw,this.CONTENT_TARGET_ATTR)){return ai.getAttributeValueFromNode(aw,this.CONTENT_TARGET_ATTR)}var au;if(ai.hasNodeAttributeWithValue(aw,"href")){au=ai.getAttributeValueFromNode(aw,"href");return this.toAbsoluteUrl(au)}var at=this.findPieceNode(av);if(ai.hasNodeAttributeWithValue(at,"href")){au=ai.getAttributeValueFromNode(at,"href");return this.toAbsoluteUrl(au) }},isSameDomain:function(at){if(!at||!at.indexOf){return false}if(0===at.indexOf(this.getLocation().origin)){return true}var au=at.indexOf(this.getLocation().host);if(8>=au&&0<=au){return true}return false},removeDomainIfIsInLink:function(av){var au="^https?://[^/]+";var at="^.*//[^/]+";if(av&&av.search&&-1!==av.search(new RegExp(au))&&this.isSameDomain(av)){av=av.replace(new RegExp(at),"");if(!av){av="/"}}return av},findMediaUrlInNode:function(ax){if(!ax){return}var av=["img","embed","video","audio"];var at=ax.nodeName.toLowerCase();if(-1!==P(av,at)&&ai.findFirstNodeHavingAttributeWithValue(ax,"src")){var aw=ai.findFirstNodeHavingAttributeWithValue(ax,"src");return ai.getAttributeValueFromNode(aw,"src")}if(at==="object"&&ai.hasNodeAttributeWithValue(ax,"data")){return ai.getAttributeValueFromNode(ax,"data")}if(at==="object"){var ay=ai.findNodesByTagName(ax,"param");if(ay&&ay.length){var au;for(au=0;au0}var au=aw.clientWidth;if(W.innerWidth&&au>W.innerWidth){au=W.innerWidth}var at=aw.clientHeight;if(W.innerHeight&&at>W.innerHeight){at=W.innerHeight}return((ax.bottom>0||av)&&ax.right>0&&ax.left=0)&&aH(dG)!==String(dH)){var dC="There was an error setting cookie `"+dG+"`. Please check domain and path.";ao(dC)}}function cb(dC){var dE,dD;dC=j(dC,az);dC=j(dC,"ignore_referrer");dC=j(dC,"ignore_referer");for(dD=0;dD=0){dE=dE.slice(0,dD)}dD=dE.lastIndexOf("/");if(dD!==dE.length-1){dE=dE.slice(0,dD+1)}return dE+dC}function cX(dE,dC){var dD; dE=String(dE).toLowerCase();dC=String(dC).toLowerCase();if(dE===dC){return true}if(dC.slice(0,1)==="."){if(dE===dC.slice(1)){return true}dD=dE.length-dC.length;if((dD>0)&&(dE.slice(dD)===dC)){return true}}return false}function cw(dC){var dD=document.createElement("a");if(dC.indexOf("//")!==0&&dC.indexOf("http")!==0){if(dC.indexOf("*")===0){dC=dC.substr(1)}if(dC.indexOf(".")===0){dC=dC.substr(1)}dC="http://"+dC}dD.href=w.toAbsoluteUrl(dC);if(dD.pathname){return dD.pathname}return""}function ba(dD,dC){if(!an(dC,"/")){dC="/"+dC}if(!an(dD,"/")){dD="/"+dD}var dE=(dC==="/"||dC==="/*");if(dE){return true}if(dD===dC){return true}dC=String(dC).toLowerCase();dD=String(dD).toLowerCase();if(U(dC,"*")){dC=dC.slice(0,-1);dE=(!dC||dC==="/");if(dE){return true}if(dD===dC){return true}return dD.indexOf(dC)===0}if(!U(dD,"/")){dD+="/"}if(!U(dC,"/")){dC+="/"}return dD.indexOf(dC)===0}function aw(dG,dI){var dD,dC,dE,dF,dH;for(dD=0;dD0)&&(dF.slice(dE)===dC)){return true}}}return false}function cD(dC){var dD,dF,dH,dE,dG;if(!dC.length||!cM.length){return false}dF=d(dC);dH=cw(dC);if(dF.indexOf("www.")===0){dF=dF.substr(4)}for(dD=0;dD2000||dC.indexOf('{"requests"')===0)}function aP(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob }function bd(dG,dJ,dI){var dE=aP();if(!dE){return false}var dF={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dK=false;var dD=aI;try{var dC=new Blob([dG],dF);if(dI&&!cU(dG)){dC=new Blob([],dF);dD=dD+(dD.indexOf("?")<0?"?":"&")+dG}dK=g.sendBeacon(dD,dC)}catch(dH){return false}if(dK&&typeof dJ==="function"){dJ({request:dG,trackerUrl:aI,success:true,isSendBeacon:true})}return dK}function dm(dD,dE,dC){if(!M(dC)||null===dC){dC=true}if(m&&bd(dD,dE,dC)){return}setTimeout(function(){if(m&&bd(dD,dE,dC)){return}var dH;try{var dG=W.XMLHttpRequest?new W.XMLHttpRequest():W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dG.open("POST",aI,true);dG.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dI=m&&bd(dD,dE,dC);if(!dI&&dC){cA(dD,dE)}else{if(typeof dE==="function"){dE({request:dD,trackerUrl:aI,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dE==="function")){dE({request:dD,trackerUrl:aI,success:true,xhr:this})}}}; dG.setRequestHeader("Content-Type",cL);dG.withCredentials=true;dG.send(dD)}catch(dF){dH=m&&bd(dD,dE,dC);if(!dH&&dC){cA(dD,dE)}else{if(typeof dE==="function"){dE({request:dD,trackerUrl:aI,success:false})}}}},50)}function cq(dD){var dC=new Date();var dE=dC.getTime()+dD;if(!r||dE>r){r=dE}}function bh(){bj=true;cN=new Date().getTime()}function dw(){var dC=new Date().getTime();return !cN||(dC-cN)>bc}function aD(){if(dw()){b0()}}function a1(){if(J.visibilityState==="hidden"&&dw()){b0()}else{if(J.visibilityState==="visible"){cN=new Date().getTime()}}}function dz(){if(aS||!bc){return}aS=true;ar(W,"focus",bh);ar(W,"blur",aD);ar(W,"visibilitychange",a1);af++;u.addPlugin("HeartBeat"+af,{unload:function(){if(aS&&dw()){b0()}}})}function cS(dG){var dD=new Date();var dC=dD.getTime();dg=dC;if(cR&&dC=dC.length){return[dC]}var dD=0;var dE=dC.length;var dF=[];for(dD;dD=dD&&dC<=(dD+a6)){return true}}return false}function dA(dC){if(!c3){return""}var dG=e(dC,az);if(!dG){return""}dG=String(dG);var dE=new RegExp("^[a-zA-Z0-9]+$");if(dG.length===32&&dE.test(dG)){var dD=dG.substr(16,32);if(dk(dD)){var dF=dG.substr(0,16);return dF}}return""}function c4(){if(!bX){bX=dA(bW)}var dE=new Date(),dC=Math.round(dE.getTime()/1000),dD=aY("id"),dH=aH(dD),dG,dF;if(dH){dG=dH.split(".");dG.unshift("0");if(bX.length){dG[1]=bX}return dG}if(bX.length){dF=bX}else{if("0"===ce()){dF=""}else{dF=c7()}}dG=["1",dF,dC];return dG}function a5(){var dF=c4(),dD=dF[0],dE=dF[1],dC=dF[2];return{newVisitor:dD,uuid:dE,createTs:dC}}function aL(){var dF=new Date(),dD=dF.getTime(),dG=a5().createTs;var dC=parseInt(dG,10);var dE=(dC*1000)+c0-dD; return dE}function aR(dC){if(!cf){return}var dE=new Date(),dD=Math.round(dE.getTime()/1000);if(!M(dC)){dC=a5()}var dF=dC.uuid+"."+dC.createTs+".";dx(aY("id"),dF,aL(),by,df,b1,aN)}function bV(){var dC=aH(aY("ref"));if(dC.length){try{dC=W.JSON.parse(dC);if(Z(dC)){return dC}}catch(dD){}}return["","",0,""]}function bF(dE){var dD=br+"testcookie_domain";var dC="testvalue";dx(dD,dC,10000,null,dE,b1,aN);if(aH(dD)===dC){b8(dD,null,dE);return true}return false}function aJ(){var dD=bt;bt=false;var dC,dE;for(dC=0;dC0){dG=parseInt(dG,10);dJ(dG)}})}var bM={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dC=this.requests;this.requests=[];if(dC.length===1){bO(dC[0],bS) }else{dy(dC,bS)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dD){if(!this.canQueue()){dy(dD,bS);return}var dC;for(dC=0;dC0){if(!M(dD)){dD=""}if(!x(dD)){dD=String(dD)}bv[dC]=dD}};this.getCustomDimension=function(dC){dC=parseInt(dC,10);if(dC>0&&Object.prototype.hasOwnProperty.call(bv,dC)){return bv[dC]}};this.deleteCustomDimension=function(dC){dC=parseInt(dC,10);if(dC>0){delete bv[dC]}};this.setCustomVariable=function(dD,dC,dG,dE){var dF;if(!M(dE)){dE="visit"}if(!M(dC)){return}if(!M(dG)){dG=""}if(dD>0){dC=!x(dC)?String(dC):dC;dG=!x(dG)?String(dG):dG;dF=[dC.slice(0,bC),dG.slice(0,bC)];if(dE==="visit"||dE===2){cV();aV[dD]=dF}else{if(dE==="page"||dE===3){b5[dD]=dF}else{if(dE==="event"){cx[dD]=dF}}}}};this.getCustomVariable=function(dD,dE){var dC;if(!M(dE)){dE="visit"}if(dE==="page"||dE===3){dC=b5[dD]}else{if(dE==="event"){dC=cx[dD]}else{if(dE==="visit"||dE===2){cV();dC=aV[dD]}}}if(!M(dC)||(dC&&dC[0]==="")){return false}return dC};this.deleteCustomVariable=function(dC,dD){if(this.getCustomVariable(dC,dD)){this.setCustomVariable(dC,"","",dD)}};this.deleteCustomVariables=function(dC){if(dC==="page"||dC===3){b5={} }else{if(dC==="event"){cx={}}else{if(dC==="visit"||dC===2){aV={}}}}};this.storeCustomVariablesInCookie=function(){bZ=true};this.setLinkTrackingTimer=function(dC){bS=dC};this.getLinkTrackingTimer=function(){return bS};this.setDownloadExtensions=function(dC){if(x(dC)){dC=dC.split("|")}dp=dC};this.addDownloadExtensions=function(dD){var dC;if(x(dD)){dD=dD.split("|")}for(dC=0;dC1&&au!=="addTracker"&&au!=="enableLinkTracking"){ao("The method "+au+' 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')}az[au]++}}}}return ay}var E=["addTracker","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSessionCookieTimeout","setVisitorCookieTimeout","setCookieNamePrefix","setCookieSameSite","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setVisitorId","setSiteId","alwaysUseSendBeacon","disableAlwaysUseSendBeacon","enableLinkTracking","setCookieConsentGiven","requireConsent","setConsentGiven","disablePerformanceTracking","setPagePerformanceTiming","setExcludedQueryParams","setExcludedReferrers"]; function ah(av,au){var at=new T(av,au);L.push(at);_paq=c(_paq,E);for(H=0;H<_paq.length;H++){if(_paq[H]){aj(_paq[H])}}_paq=new K();u.trigger("TrackerAdded",[at]);return at}ar(W,"beforeunload",am,false);ar(W,"visibilitychange",function(){if(m){return}if(J.visibilityState==="hidden"){ag("unload")}},false);ar(W,"online",function(){if(M(g.serviceWorker)){g.serviceWorker.ready.then(function(at){if(at&&at.sync){return at.sync.register("matomoSync")}},function(){})}},false);ar(W,"message",function(ay){if(!ay||!ay.origin){return}var aA,aw,au;var aB=d(ay.origin);var ax=u.getAsyncTrackers();for(aw=0;aw
 
 what does the code do