cdn.matomo.cloud
Open in
urlscan Pro
2600:9000:2724:ec00:c:7d55:b3c0:93a1
Public Scan
URL:
https://cdn.matomo.cloud/korian.matomo.cloud/matomo.js
Submission: On July 31 via api from IT — Scanned from IT
Submission: On July 31 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
/*!! * 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 s,b={},A={},K=document,g=navigator,ac=screen,X=window,h=X.performance||X.mozPerformance||X.msPerformance||X.webkitPerformance,u=X.encodeURIComponent,W=X.decodeURIComponent,k=unescape,M=[],I,v,am=[],z=0,ag=0,Y=0,m=false,q="";function p(au){try{return W(au)}catch(av){return unescape(au)}}function N(av){var au=typeof av;return au!=="undefined"}function D(au){return typeof au==="function"}function aa(au){return typeof au==="object"}function y(au){return typeof au==="string"||au instanceof String}function al(au){return typeof au==="number"||au instanceof Number }function ad(au){return N(au)&&(al(au)||(y(au)&&au.length))}function E(av){if(!av){return true}var au;for(au in av){if(Object.prototype.hasOwnProperty.call(av,au)){return false}}return true}function ap(au){var av=typeof console;if(av!=="undefined"&&console&&console.error){console.error(au)}}function ak(){var az,ay,aB,av,au;for(az=0;az<arguments.length;az+=1){au=null;if(arguments[az]&&arguments[az].slice){au=arguments[az].slice()}av=arguments[az];aB=av.shift();var aA,aw;var ax=y(aB)&&aB.indexOf("::")>0;if(ax){aA=aB.split("::");aw=aA[0];aB=aA[1];if("object"===typeof v[aw]&&"function"===typeof v[aw][aB]){v[aw][aB].apply(v[aw],av)}else{if(au){am.push(au)}}}else{for(ay=0;ay<M.length;ay++){if(y(aB)){aw=M[ay];var aC=aB.indexOf(".")>0;if(aC){aA=aB.split(".");if(aw&&"object"===typeof aw[aA[0]]){aw=aw[aA[0]];aB=aA[1]}else{if(au){am.push(au);break}}}if(aw[aB]){aw[aB].apply(aw,av)}else{var aD="The method '"+aB+'\' was not found in "_paq" variable. Please have a look at the Matomo tracker documentation: https://developer.matomo.org/api-reference/tracking-javascript'; ap(aD);if(!aC){throw new TypeError(aD)}}if(aB==="addTracker"){break}if(aB==="setTrackerUrl"||aB==="setSiteId"){break}}else{aB.apply(M[ay],av)}}}}}function at(ax,aw,av,au){if(ax.addEventListener){ax.addEventListener(aw,av,au);return true}if(ax.attachEvent){return ax.attachEvent("on"+aw,av)}ax["on"+aw]=av}function n(au){if(K.readyState==="complete"){au()}else{if(X.addEventListener){X.addEventListener("load",au,false)}else{if(X.attachEvent){X.attachEvent("onload",au)}}}}function r(ax){var au=false;if(K.attachEvent){au=K.readyState==="complete"}else{au=K.readyState!=="loading"}if(au){ax();return}var aw;if(K.addEventListener){at(K,"DOMContentLoaded",function av(){K.removeEventListener("DOMContentLoaded",av,false);if(!au){au=true;ax()}})}else{if(K.attachEvent){K.attachEvent("onreadystatechange",function av(){if(K.readyState==="complete"){K.detachEvent("onreadystatechange",av);if(!au){au=true;ax()}}});if(K.documentElement.doScroll&&X===X.top){(function av(){if(!au){try{K.documentElement.doScroll("left") }catch(ay){setTimeout(av,0);return}au=true;ax()}}())}}}at(X,"load",function(){if(!au){au=true;ax()}},false)}function ah(av,aA,aB){if(!av){return""}var au="",ax,aw,ay,az;for(ax in b){if(Object.prototype.hasOwnProperty.call(b,ax)){az=b[ax]&&"function"===typeof b[ax][av];if(az){aw=b[ax][av];ay=aw(aA||{},aB);if(ay){au+=ay}}}}return au}function an(av){var au;m=true;ah("unload");au=new Date();var aw=au.getTimeAlias();if((s-aw)>3000){s=aw+3000}if(s){do{au=new Date()}while(au.getTimeAlias()<s)}}function o(aw,av){var au=K.createElement("script");au.type="text/javascript";au.src=aw;if(au.readyState){au.onreadystatechange=function(){var ax=this.readyState;if(ax==="loaded"||ax==="complete"){au.onreadystatechange=null;av()}}}else{au.onload=av}K.getElementsByTagName("head")[0].appendChild(au)}function O(){var au="";try{au=X.top.document.referrer}catch(aw){if(X.parent){try{au=X.parent.document.referrer}catch(av){au=""}}}if(au===""){au=K.referrer}return au}function t(au){var aw=new RegExp("^([a-z]+):"),av=aw.exec(au); return av?av[1]:null}function d(au){var aw=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),av=aw.exec(au);return av?av[1]:au}function H(au){return(/^[0-9][0-9]*(\.[0-9]+)?$/).test(au)}function R(aw,ax){var au={},av;for(av in aw){if(aw.hasOwnProperty(av)&&ax(aw[av])){au[av]=aw[av]}}return au}function C(aw){var au={},av;for(av in aw){if(aw.hasOwnProperty(av)){if(H(aw[av])){au[av]=Math.round(aw[av])}else{throw new Error('Parameter "'+av+'" provided value "'+aw[av]+'" is not valid. Please provide a numeric value.')}}}return au}function l(av){var aw="",au;for(au in av){if(av.hasOwnProperty(au)){aw+="&"+u(au)+"="+u(av[au])}}return aw}function ao(av,au){av=String(av);return av.lastIndexOf(au,0)===0}function V(av,au){av=String(av);return av.indexOf(au,av.length-au.length)!==-1}function B(av,au){av=String(av);return av.indexOf(au)!==-1}function f(av,au){av=String(av);return av.substr(0,av.length-au)}function J(ax,aw,az){ax=String(ax);if(!az){az=""}var au=ax.indexOf("#");var aA=ax.length; if(au===-1){au=aA}var ay=ax.substr(0,au);var av=ax.substr(au,aA-au);if(ay.indexOf("?")===-1){ay+="?"}else{if(!V(ay,"?")){ay+="&"}}return ay+u(aw)+"="+u(az)+av}function j(av,aw){av=String(av);if(av.indexOf("?"+aw+"=")===-1&&av.indexOf("&"+aw+"=")===-1&&av.indexOf("#"+aw+"=")===-1){return av}var aB="";var aD=av.indexOf("#");if(aD!==-1){aB=av.substr(aD+1);av=av.substr(0,aD)}var ax=av.indexOf("?");var au="";var aA=av;if(ax>-1){au=av.substr(ax+1);aA=av.substr(0,ax)}var az=function(aF){var aH;var aG=aF.length-1;for(aG;aG>=0;aG--){aH=aF[aG].split("=")[0];if(aH===aw){aF.splice(aG,1)}}return aF};if(au){var aC=az(au.split("&")).join("&");if(aC){aA+="?"+aC}}if(aB&&aB.indexOf("=")>0){var ay=aB.charAt(0)==="?";if(ay){aB=aB.substr(1)}var aE=az(aB.split("&")).join("&");if(aE){aA+="#";if(ay){aA+="?"}aA+=aE}}else{if(aB){aA+="#"+aB}}return aA}function e(aw,av){var au="[\\?&#]"+av+"=([^&#]*)";var ay=new RegExp(au);var ax=ay.exec(aw);return ax?p(ax[1]):""}function a(au){if(au&&String(au)===au){return au.replace(/^\s+|\s+$/g,"") }return au}function G(au){return unescape(u(au))}function ar(aJ){var aw=function(aP,aO){return(aP<<aO)|(aP>>>(32-aO))},aK=function(aR){var aP="",aQ,aO;for(aQ=7;aQ>=0;aQ--){aO=(aR>>>(aQ*4))&15;aP+=aO.toString(16)}return aP},az,aM,aL,av=[],aD=1732584193,aB=4023233417,aA=2562383102,ay=271733878,ax=3285377520,aI,aH,aG,aF,aE,aN,au,aC=[];aJ=G(aJ);au=aJ.length;for(aM=0;aM<au-3;aM+=4){aL=aJ.charCodeAt(aM)<<24|aJ.charCodeAt(aM+1)<<16|aJ.charCodeAt(aM+2)<<8|aJ.charCodeAt(aM+3);aC.push(aL)}switch(au&3){case 0:aM=2147483648;break;case 1:aM=aJ.charCodeAt(au-1)<<24|8388608;break;case 2:aM=aJ.charCodeAt(au-2)<<24|aJ.charCodeAt(au-1)<<16|32768;break;case 3:aM=aJ.charCodeAt(au-3)<<24|aJ.charCodeAt(au-2)<<16|aJ.charCodeAt(au-1)<<8|128;break}aC.push(aM);while((aC.length&15)!==14){aC.push(0)}aC.push(au>>>29);aC.push((au<<3)&4294967295);for(az=0;az<aC.length;az+=16){for(aM=0;aM<16;aM++){av[aM]=aC[az+aM]}for(aM=16;aM<=79;aM++){av[aM]=aw(av[aM-3]^av[aM-8]^av[aM-14]^av[aM-16],1)}aI=aD;aH=aB;aG=aA;aF=ay;aE=ax;for(aM=0; aM<=19;aM++){aN=(aw(aI,5)+((aH&aG)|(~aH&aF))+aE+av[aM]+1518500249)&4294967295;aE=aF;aF=aG;aG=aw(aH,30);aH=aI;aI=aN}for(aM=20;aM<=39;aM++){aN=(aw(aI,5)+(aH^aG^aF)+aE+av[aM]+1859775393)&4294967295;aE=aF;aF=aG;aG=aw(aH,30);aH=aI;aI=aN}for(aM=40;aM<=59;aM++){aN=(aw(aI,5)+((aH&aG)|(aH&aF)|(aG&aF))+aE+av[aM]+2400959708)&4294967295;aE=aF;aF=aG;aG=aw(aH,30);aH=aI;aI=aN}for(aM=60;aM<=79;aM++){aN=(aw(aI,5)+(aH^aG^aF)+aE+av[aM]+3395469782)&4294967295;aE=aF;aF=aG;aG=aw(aH,30);aH=aI;aI=aN}aD=(aD+aI)&4294967295;aB=(aB+aH)&4294967295;aA=(aA+aG)&4294967295;ay=(ay+aF)&4294967295;ax=(ax+aE)&4294967295}aN=aK(aD)+aK(aB)+aK(aA)+aK(ay)+aK(ax);return aN.toLowerCase()}function af(aw,au,av){if(!aw){aw=""}if(!au){au=""}if(aw==="translate.googleusercontent.com"){if(av===""){av=au}au=e(au,"u");aw=d(au)}else{if(aw==="cc.bingj.com"||aw==="webcache.googleusercontent.com"||aw.slice(0,5)==="74.6."){au=K.links[0].href;aw=d(au)}}return[aw,au,av]}function P(av){var au=av.length;if(av.charAt(--au)==="."){av=av.slice(0,au)}if(av.slice(0,2)==="*."){av=av.slice(1) }if(av.indexOf("/")!==-1){av=av.substr(0,av.indexOf("/"))}return av}function aq(av){av=av&&av.text?av.text:av;if(!y(av)){var au=K.getElementsByTagName("title");if(au&&N(au[0])){av=au[0].text}}return av}function T(au){if(!au){return[]}if(!N(au.children)&&N(au.childNodes)){return au.children}if(N(au.children)){return au.children}return[]}function Z(av,au){if(!av||!au){return false}if(av.contains){return av.contains(au)}if(av===au){return true}if(av.compareDocumentPosition){return !!(av.compareDocumentPosition(au)&16)}return false}function Q(aw,ax){if(aw&&aw.indexOf){return aw.indexOf(ax)}if(!N(aw)||aw===null){return -1}if(!aw.length){return -1}var au=aw.length;if(au===0){return -1}var av=0;while(av<au){if(aw[av]===ax){return av}av++}return -1}function i(aw){if(!aw){return false}function au(ay,az){if(X.getComputedStyle){return K.defaultView.getComputedStyle(ay,null)[az]}if(ay.currentStyle){return ay.currentStyle[az]}}function ax(ay){ay=ay.parentNode;while(ay){if(ay===K){return true}ay=ay.parentNode }return false}function av(aA,aG,ay,aD,aB,aE,aC){var az=aA.parentNode,aF=1;if(!ax(aA)){return false}if(9===az.nodeType){return true}if("0"===au(aA,"opacity")||"none"===au(aA,"display")||"hidden"===au(aA,"visibility")){return false}if(!N(aG)||!N(ay)||!N(aD)||!N(aB)||!N(aE)||!N(aC)){aG=aA.offsetTop;aB=aA.offsetLeft;aD=aG+aA.offsetHeight;ay=aB+aA.offsetWidth;aE=aA.offsetWidth;aC=aA.offsetHeight}if(aw===aA&&(0===aC||0===aE)&&"hidden"===au(aA,"overflow")){return false}if(az){if(("hidden"===au(az,"overflow")||"scroll"===au(az,"overflow"))){if(aB+aF>az.offsetWidth+az.scrollLeft||aB+aE-aF<az.scrollLeft||aG+aF>az.offsetHeight+az.scrollTop||aG+aC-aF<az.scrollTop){return false}}if(aA.offsetParent===az){aB+=az.offsetLeft;aG+=az.offsetTop}return av(az,aG,ay,aD,aB,aE,aC)}return true}return av(aw)}var aj={htmlCollectionToArray:function(aw){var au=[],av;if(!aw||!aw.length){return au}for(av=0;av<aw.length;av++){au.push(aw[av])}return au},find:function(au){if(!document.querySelectorAll||!au){return[]}var av=document.querySelectorAll(au); return this.htmlCollectionToArray(av)},findMultiple:function(aw){if(!aw||!aw.length){return[]}var av,ax;var au=[];for(av=0;av<aw.length;av++){ax=this.find(aw[av]);au=au.concat(ax)}au=this.makeNodesUnique(au);return au},findNodesByTagName:function(av,au){if(!av||!au||!av.getElementsByTagName){return[]}var aw=av.getElementsByTagName(au);return this.htmlCollectionToArray(aw)},makeNodesUnique:function(au){var az=[].concat(au);au.sort(function(aB,aA){if(aB===aA){return 0}var aD=Q(az,aB);var aC=Q(az,aA);if(aD===aC){return 0}return aD>aC?-1:1});if(au.length<=1){return au}var av=0;var ax=0;var ay=[];var aw;aw=au[av++];while(aw){if(aw===au[av]){ax=ay.push(av)}aw=au[av++]||null}while(ax--){au.splice(ay[ax],1)}return au},getAttributeValueFromNode:function(ay,aw){if(!this.hasNodeAttribute(ay,aw)){return}if(ay&&ay.getAttribute){return ay.getAttribute(aw)}if(!ay||!ay.attributes){return}var ax=(typeof ay.attributes[aw]);if("undefined"===ax){return}if(ay.attributes[aw].value){return ay.attributes[aw].value }if(ay.attributes[aw].nodeValue){return ay.attributes[aw].nodeValue}var av;var au=ay.attributes;if(!au){return}for(av=0;av<au.length;av++){if(au[av].nodeName===aw){return au[av].nodeValue}}return null},hasNodeAttributeWithValue:function(av,au){var aw=this.getAttributeValueFromNode(av,au);return !!aw},hasNodeAttribute:function(aw,au){if(aw&&aw.hasAttribute){return aw.hasAttribute(au)}if(aw&&aw.attributes){var av=(typeof aw.attributes[au]);return"undefined"!==av}return false},hasNodeCssClass:function(aw,au){if(aw&&au&&aw.className){var av=typeof aw.className==="string"?aw.className.split(" "):[];if(-1!==Q(av,au)){return true}}return false},findNodesHavingAttribute:function(ay,aw,au){if(!au){au=[]}if(!ay||!aw){return au}var ax=T(ay);if(!ax||!ax.length){return au}var av,az;for(av=0;av<ax.length;av++){az=ax[av];if(this.hasNodeAttribute(az,aw)){au.push(az)}au=this.findNodesHavingAttribute(az,aw,au)}return au},findFirstNodeHavingAttribute:function(aw,av){if(!aw||!av){return}if(this.hasNodeAttribute(aw,av)){return aw }var au=this.findNodesHavingAttribute(aw,av);if(au&&au.length){return au[0]}},findFirstNodeHavingAttributeWithValue:function(ax,aw){if(!ax||!aw){return}if(this.hasNodeAttributeWithValue(ax,aw)){return ax}var au=this.findNodesHavingAttribute(ax,aw);if(!au||!au.length){return}var av;for(av=0;av<au.length;av++){if(this.getAttributeValueFromNode(au[av],aw)){return au[av]}}},findNodesHavingCssClass:function(ay,ax,au){if(!au){au=[]}if(!ay||!ax){return au}if(ay.getElementsByClassName){var az=ay.getElementsByClassName(ax);return this.htmlCollectionToArray(az)}var aw=T(ay);if(!aw||!aw.length){return[]}var av,aA;for(av=0;av<aw.length;av++){aA=aw[av];if(this.hasNodeCssClass(aA,ax)){au.push(aA)}au=this.findNodesHavingCssClass(aA,ax,au)}return au},findFirstNodeHavingClass:function(aw,av){if(!aw||!av){return}if(this.hasNodeCssClass(aw,av)){return aw}var au=this.findNodesHavingCssClass(aw,av);if(au&&au.length){return au[0]}},isLinkElement:function(av){if(!av){return false}var au=String(av.nodeName).toLowerCase(); var ax=["a","area"];var aw=Q(ax,au);return aw!==-1},setAnyAttribute:function(av,au,aw){if(!av||!au){return}if(av.setAttribute){av.setAttribute(au,aw)}else{av[au]=aw}}};var x={CONTENT_ATTR:"data-track-content",CONTENT_CLASS:"matomoTrackContent",LEGACY_CONTENT_CLASS:"piwikTrackContent",CONTENT_NAME_ATTR:"data-content-name",CONTENT_PIECE_ATTR:"data-content-piece",CONTENT_PIECE_CLASS:"matomoContentPiece",LEGACY_CONTENT_PIECE_CLASS:"piwikContentPiece",CONTENT_TARGET_ATTR:"data-content-target",CONTENT_TARGET_CLASS:"matomoContentTarget",LEGACY_CONTENT_TARGET_CLASS:"piwikContentTarget",CONTENT_IGNOREINTERACTION_ATTR:"data-content-ignoreinteraction",CONTENT_IGNOREINTERACTION_CLASS:"matomoContentIgnoreInteraction",LEGACY_CONTENT_IGNOREINTERACTION_CLASS:"piwikContentIgnoreInteraction",location:undefined,findContentNodes:function(){var av="."+this.CONTENT_CLASS;var aw="."+this.LEGACY_CONTENT_CLASS;var au="["+this.CONTENT_ATTR+"]";var ax=aj.findMultiple([av,aw,au]);return ax},findContentNodesWithinNode:function(ax){if(!ax){return[] }var av=aj.findNodesHavingCssClass(ax,this.CONTENT_CLASS);av=aj.findNodesHavingCssClass(ax,this.LEGACY_CONTENT_CLASS,av);var au=aj.findNodesHavingAttribute(ax,this.CONTENT_ATTR);if(au&&au.length){var aw;for(aw=0;aw<au.length;aw++){av.push(au[aw])}}if(aj.hasNodeAttribute(ax,this.CONTENT_ATTR)){av.push(ax)}else{if(aj.hasNodeCssClass(ax,this.CONTENT_CLASS)){av.push(ax)}else{if(aj.hasNodeCssClass(ax,this.LEGACY_CONTENT_CLASS)){av.push(ax)}}}av=aj.makeNodesUnique(av);return av},findParentContentNode:function(av){if(!av){return}var aw=av;var au=0;while(aw&&aw!==K&&aw.parentNode){if(aj.hasNodeAttribute(aw,this.CONTENT_ATTR)){return aw}if(aj.hasNodeCssClass(aw,this.CONTENT_CLASS)){return aw}if(aj.hasNodeCssClass(aw,this.LEGACY_CONTENT_CLASS)){return aw}aw=aw.parentNode;if(au>1000){break}au++}},findPieceNode:function(av){var au;au=aj.findFirstNodeHavingAttribute(av,this.CONTENT_PIECE_ATTR);if(!au){au=aj.findFirstNodeHavingClass(av,this.CONTENT_PIECE_CLASS)}if(!au){au=aj.findFirstNodeHavingClass(av,this.LEGACY_CONTENT_PIECE_CLASS) }if(au){return au}return av},findTargetNodeNoDefault:function(au){if(!au){return}var av=aj.findFirstNodeHavingAttributeWithValue(au,this.CONTENT_TARGET_ATTR);if(av){return av}av=aj.findFirstNodeHavingAttribute(au,this.CONTENT_TARGET_ATTR);if(av){return av}av=aj.findFirstNodeHavingClass(au,this.CONTENT_TARGET_CLASS);if(av){return av}av=aj.findFirstNodeHavingClass(au,this.LEGACY_CONTENT_TARGET_CLASS);if(av){return av}},findTargetNode:function(au){var av=this.findTargetNodeNoDefault(au);if(av){return av}return au},findContentName:function(av){if(!av){return}var ay=aj.findFirstNodeHavingAttributeWithValue(av,this.CONTENT_NAME_ATTR);if(ay){return aj.getAttributeValueFromNode(ay,this.CONTENT_NAME_ATTR)}var au=this.findContentPiece(av);if(au){return this.removeDomainIfIsInLink(au)}if(aj.hasNodeAttributeWithValue(av,"title")){return aj.getAttributeValueFromNode(av,"title")}var aw=this.findPieceNode(av);if(aj.hasNodeAttributeWithValue(aw,"title")){return aj.getAttributeValueFromNode(aw,"title")}var ax=this.findTargetNode(av); if(aj.hasNodeAttributeWithValue(ax,"title")){return aj.getAttributeValueFromNode(ax,"title")}},findContentPiece:function(av){if(!av){return}var ax=aj.findFirstNodeHavingAttributeWithValue(av,this.CONTENT_PIECE_ATTR);if(ax){return aj.getAttributeValueFromNode(ax,this.CONTENT_PIECE_ATTR)}var au=this.findPieceNode(av);var aw=this.findMediaUrlInNode(au);if(aw){return this.toAbsoluteUrl(aw)}},findContentTarget:function(aw){if(!aw){return}var ax=this.findTargetNode(aw);if(aj.hasNodeAttributeWithValue(ax,this.CONTENT_TARGET_ATTR)){return aj.getAttributeValueFromNode(ax,this.CONTENT_TARGET_ATTR)}var av;if(aj.hasNodeAttributeWithValue(ax,"href")){av=aj.getAttributeValueFromNode(ax,"href");return this.toAbsoluteUrl(av)}var au=this.findPieceNode(aw);if(aj.hasNodeAttributeWithValue(au,"href")){av=aj.getAttributeValueFromNode(au,"href");return this.toAbsoluteUrl(av)}},isSameDomain:function(au){if(!au||!au.indexOf){return false}if(0===au.indexOf(this.getLocation().origin)){return true}var av=au.indexOf(this.getLocation().host); if(8>=av&&0<=av){return true}return false},removeDomainIfIsInLink:function(aw){var av="^https?://[^/]+";var au="^.*//[^/]+";if(aw&&aw.search&&-1!==aw.search(new RegExp(av))&&this.isSameDomain(aw)){aw=aw.replace(new RegExp(au),"");if(!aw){aw="/"}}return aw},findMediaUrlInNode:function(ay){if(!ay){return}var aw=["img","embed","video","audio"];var au=ay.nodeName.toLowerCase();if(-1!==Q(aw,au)&&aj.findFirstNodeHavingAttributeWithValue(ay,"src")){var ax=aj.findFirstNodeHavingAttributeWithValue(ay,"src");return aj.getAttributeValueFromNode(ax,"src")}if(au==="object"&&aj.hasNodeAttributeWithValue(ay,"data")){return aj.getAttributeValueFromNode(ay,"data")}if(au==="object"){var az=aj.findNodesByTagName(ay,"param");if(az&&az.length){var av;for(av=0;av<az.length;av++){if("movie"===aj.getAttributeValueFromNode(az[av],"name")&&aj.hasNodeAttributeWithValue(az[av],"value")){return aj.getAttributeValueFromNode(az[av],"value")}}}var aA=aj.findNodesByTagName(ay,"embed");if(aA&&aA.length){return this.findMediaUrlInNode(aA[0]) }}},trim:function(au){return a(au)},isOrWasNodeInViewport:function(az){if(!az||!az.getBoundingClientRect||az.nodeType!==1){return true}var ay=az.getBoundingClientRect();var ax=K.documentElement||{};var aw=ay.top<0;if(aw&&az.offsetTop){aw=(az.offsetTop+ay.height)>0}var av=ax.clientWidth;if(X.innerWidth&&av>X.innerWidth){av=X.innerWidth}var au=ax.clientHeight;if(X.innerHeight&&au>X.innerHeight){au=X.innerHeight}return((ay.bottom>0||aw)&&ay.right>0&&ay.left<av&&((ay.top<au)||aw))},isNodeVisible:function(av){var au=i(av);var aw=this.isOrWasNodeInViewport(av);return au&&aw},buildInteractionRequestParams:function(au,av,aw,ax){var ay="";if(au){ay+="c_i="+u(au)}if(av){if(ay){ay+="&"}ay+="c_n="+u(av)}if(aw){if(ay){ay+="&"}ay+="c_p="+u(aw)}if(ax){if(ay){ay+="&"}ay+="c_t="+u(ax)}if(ay){ay+="&ca=1"}return ay},buildImpressionRequestParams:function(au,av,aw){var ax="c_n="+u(au)+"&c_p="+u(av);if(aw){ax+="&c_t="+u(aw)}if(ax){ax+="&ca=1"}return ax},buildContentBlock:function(aw){if(!aw){return}var au=this.findContentName(aw); var av=this.findContentPiece(aw);var ax=this.findContentTarget(aw);au=this.trim(au);av=this.trim(av);ax=this.trim(ax);return{name:au||"Unknown",piece:av||"Unknown",target:ax||""}},collectContent:function(ax){if(!ax||!ax.length){return[]}var aw=[];var au,av;for(au=0;au<ax.length;au++){av=this.buildContentBlock(ax[au]);if(N(av)){aw.push(av)}}return aw},setLocation:function(au){this.location=au},getLocation:function(){var au=this.location||X.location;if(!au.origin){au.origin=au.protocol+"//"+au.hostname+(au.port?":"+au.port:"")}return au},toAbsoluteUrl:function(av){if((!av||String(av)!==av)&&av!==""){return av}if(""===av){return this.getLocation().href}if(av.search(/^\/\//)!==-1){return this.getLocation().protocol+av}if(av.search(/:\/\//)!==-1){return av}if(0===av.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+av}if(0===av.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+av}if(0===av.search("^[a-zA-Z]{2,11}:")){return av}if(av.search(/^\//)!==-1){return this.getLocation().origin+av }var au="(.*/)";var aw=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(au))[0];return aw+av},isUrlToCurrentDomain:function(av){var aw=this.toAbsoluteUrl(av);if(!aw){return false}var au=this.getLocation().origin;if(au===aw){return true}if(0===String(aw).indexOf(au)){if(":"===String(aw).substr(au.length,1)){return false}return true}return false},setHrefAttribute:function(av,au){if(!av||!au){return}aj.setAnyAttribute(av,"href",au)},shouldIgnoreInteraction:function(au){if(aj.hasNodeAttribute(au,this.CONTENT_IGNOREINTERACTION_ATTR)){return true}if(aj.hasNodeCssClass(au,this.CONTENT_IGNOREINTERACTION_CLASS)){return true}if(aj.hasNodeCssClass(au,this.LEGACY_CONTENT_IGNOREINTERACTION_CLASS)){return true}return false}};function ab(av,ay){if(ay){return ay}av=x.toAbsoluteUrl(av);if(B(av,"?")){var ax=av.indexOf("?");av=av.slice(0,ax)}if(V(av,"matomo.php")){av=f(av,"matomo.php".length)}else{if(V(av,"piwik.php")){av=f(av,"piwik.php".length)}else{if(V(av,".php")){var au=av.lastIndexOf("/"); var aw=1;av=av.slice(0,au+aw)}}}if(V(av,"/js/")){av=f(av,"js/".length)}return av}function S(aA){var aC="Matomo_Overlay";var av=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=[^&]*)?");var aw=av.exec(K.referrer);if(aw){var ay=aw[1];if(ay!==String(aA)){return false}var az=aw[2],au=aw[3],ax=aw[4];if(!ax){ax=""}else{if(ax.indexOf("&segment=")===0){ax=ax.substr("&segment=".length)}}X.name=aC+"###"+az+"###"+au+"###"+ax}var aB=X.name.split("###");return aB.length===4&&aB[0]===aC}function ae(av,aA,aw){var az=X.name.split("###"),ay=az[1],au=az[2],ax=az[3],aB=ab(av,aA);o(aB+"plugins/Overlay/client/client.js?v=1",function(){Matomo_Overlay_Client.initialize(aB,aw,ay,au,ax)})}function w(){var aw;try{aw=X.frameElement}catch(av){return true}if(N(aw)){return(aw&&String(aw.nodeName).toLowerCase()==="iframe")?true:false}try{return X.self!==X.top}catch(au){return true}}function U(ct,cn){var bV=this,bo="mtm_consent",c1="mtm_cookie_consent",da="mtm_consent_removed",ch=af(K.domain,X.location.href,O()),di=P(ch[0]),bZ=p(ch[1]),bA=p(ch[2]),dg=false,cx="GET",dC=cx,aQ="application/x-www-form-urlencoded; charset=UTF-8",cR=aQ,aM=ct||"",bU="",dr="",cD="",cj=cn||"",bL="",b0="",bf,bu="",dy=["7z","aac","apk","arc","arj","asc","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","md5","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","sha","sha256","sha512","sig","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","xz","z","zip"],aG=[di],bM=[],cS=[".paypal.com"],cy=[],bY=[],bj=[],bW=500,dl=true,c7,bg,b4,b1,aw,cH=["pk_campaign","mtm_campaign","piwik_campaign","matomo_campaign","utm_campaign","utm_source","utm_medium"],bT=["pk_kwd","mtm_kwd","piwik_kwd","matomo_kwd","utm_term"],cV=["mtm_campaign","matomo_campaign","mtm_cpn","pk_campaign","piwik_campaign","pk_cpn","utm_campaign","mtm_keyword","matomo_kwd","mtm_kwd","pk_keyword","piwik_kwd","pk_kwd","utm_term","mtm_source","pk_source","utm_source","mtm_medium","pk_medium","utm_medium","mtm_content","pk_content","utm_content","mtm_cid","pk_cid","utm_id","mtm_clid","mtm_group","pk_group","mtm_placement","pk_placement"],bv="_pk_",aD="pk_vid",ba=180,dp,bC,b5=false,aR="Lax",bx=false,de,bp,dm=true,bI,c8=33955200000,cE=1800000,dx=15768000000,bd=true,bR=false,bs=false,b3=false,aZ=false,cq,b9={},cC={},bz={},bG=200,cN={},ds={},dz={},a3={},co=[],by=false,ck=false,cp=[],cu=false,cZ=false,ax=false,dA=false,db=false,aW=false,bn=w(),cT=null,dq=null,a0,bO,cl=ar,bB,aU,bN=false,cK=0,bH=["id","ses","cvar","ref"],cY=false,bP=null,c9=[],cM=[],aF=Y++,aE=false,dn=true,cW=false; try{bu=K.title}catch(cU){bu=""}function aL(dN){if(bx&&dN!==da){return 0}var dL=new RegExp("(^|;)[ ]*"+dN+"=([^;]*)"),dM=dL.exec(K.cookie);return dM?W(dM[2]):0}bP=!aL(da);function dG(dP,dQ,dT,dS,dN,dO,dR){if(bx&&dP!==da){return}var dM;if(dT){dM=new Date();dM.setTime(dM.getTime()+dT)}if(!dR){dR="Lax"}K.cookie=dP+"="+u(dQ)+(dT?";expires="+dM.toGMTString():"")+";path="+(dS||"/")+(dN?";domain="+dN:"")+(dO?";secure":"")+";SameSite="+dR;if((!dT||dT>=0)&&aL(dP)!==String(dQ)){var dL="There was an error setting cookie `"+dP+"`. Please check domain and path.";ap(dL)}}function cf(dL){var dN,dM;if(dm!==true&&!cY){for(dM=0;dM<cH.length;dM++){dL=j(dL,cH[dM])}for(dM=0;dM<bT.length;dM++){dL=j(dL,bT[dM])}for(dM=0;dM<cV.length;dM++){dL=j(dL,cV[dM])}}dL=j(dL,aD);dL=j(dL,"ignore_referrer");dL=j(dL,"ignore_referer");for(dM=0;dM<cy.length;dM++){dL=j(dL,cy[dM])}if(b1){dN=new RegExp("#.*");return dL.replace(dN,"")}return dL}function b8(dN,dL){var dO=t(dL),dM;if(dO){return dL}if(dL.slice(0,1)==="/"){return t(dN)+"://"+d(dN)+dL }dN=cf(dN);dM=dN.indexOf("?");if(dM>=0){dN=dN.slice(0,dM)}dM=dN.lastIndexOf("/");if(dM!==dN.length-1){dN=dN.slice(0,dM+1)}return dN+dL}function c5(dN,dL){var dM;dN=String(dN).toLowerCase();dL=String(dL).toLowerCase();if(dN===dL){return true}if(dL.slice(0,1)==="."){if(dN===dL.slice(1)){return true}dM=dN.length-dL.length;if((dM>0)&&(dN.slice(dM)===dL)){return true}}return false}function cB(dL){var dM=document.createElement("a");if(dL.indexOf("//")!==0&&dL.indexOf("http")!==0){if(dL.indexOf("*")===0){dL=dL.substr(1)}if(dL.indexOf(".")===0){dL=dL.substr(1)}dL="http://"+dL}dM.href=x.toAbsoluteUrl(dL);if(dM.pathname){return dM.pathname}return""}function be(dM,dL){if(!ao(dL,"/")){dL="/"+dL}if(!ao(dM,"/")){dM="/"+dM}var dN=(dL==="/"||dL==="/*");if(dN){return true}if(dM===dL){return true}dL=String(dL).toLowerCase();dM=String(dM).toLowerCase();if(V(dL,"*")){dL=dL.slice(0,-1);dN=(!dL||dL==="/");if(dN){return true}if(dM===dL){return true}return dM.indexOf(dL)===0}if(!V(dM,"/")){dM+="/"}if(!V(dL,"/")){dL+="/" }return dM.indexOf(dL)===0}function aA(dP,dR){var dM,dL,dN,dO,dQ;for(dM=0;dM<aG.length;dM++){dO=P(aG[dM]);dQ=cB(aG[dM]);if(c5(dP,dO)&&be(dR,dQ)){return true}}return false}function a6(dO){var dM,dL,dN;for(dM=0;dM<aG.length;dM++){dL=P(aG[dM].toLowerCase());if(dO===dL){return true}if(dL.slice(0,1)==="."){if(dO===dL.slice(1)){return true}dN=dO.length-dL.length;if((dN>0)&&(dO.slice(dN)===dL)){return true}}}return false}function cJ(dL){var dM,dO,dQ,dN,dP;if(!dL.length||!cS.length){return false}dO=d(dL);dQ=cB(dL);if(dO.indexOf("www.")===0){dO=dO.substr(4)}for(dM=0;dM<cS.length;dM++){dN=P(cS[dM]);dP=cB(cS[dM]);if(dN.indexOf("www.")===0){dN=dN.substr(4)}if(c5(dO,dN)&&be(dQ,dP)){return true}}return false}function au(){if(q&&q.length>0){return true}q=e(X.location.href,"tracker_install_check");return q&&q.length>0}function cI(){if(au()&&aa(X)){X.close()}}function cF(dL,dN){dL=dL.replace("send_image=0","send_image=1");var dM=new Image(1,1);dM.onload=function(){I=0;if(typeof dN==="function"){dN({request:dL,trackerUrl:aM,success:true}) }};dM.onerror=function(){if(typeof dN==="function"){dN({request:dL,trackerUrl:aM,success:false})}};dM.src=aM+(aM.indexOf("?")<0?"?":"&")+dL;cI()}function c2(dL){if(dC==="POST"){return true}return dL&&(dL.length>2000||dL.indexOf('{"requests"')===0)}function aT(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bh(dP,dS,dR){var dN=aT();if(!dN){return false}var dO={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dT=false;var dM=aM;try{var dL=new Blob([dP],dO);if(dR&&!c2(dP)){dL=new Blob([],dO);dM=dM+(dM.indexOf("?")<0?"?":"&")+dP}dT=g.sendBeacon(dM,dL)}catch(dQ){return false}if(dT&&typeof dS==="function"){dS({request:dP,trackerUrl:aM,success:true,isSendBeacon:true})}cI();return dT}function dw(dM,dN,dL){if(!N(dL)||null===dL){dL=true}if(m&&bh(dM,dN,dL)){return}setTimeout(function(){if(m&&bh(dM,dN,dL)){return}var dQ;try{var dP=X.XMLHttpRequest?new X.XMLHttpRequest():X.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dP.open("POST",aM,true); dP.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dR=m&&bh(dM,dN,dL);if(!dR&&dL){cF(dM,dN)}else{if(typeof dN==="function"){dN({request:dM,trackerUrl:aM,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dN==="function")){dN({request:dM,trackerUrl:aM,success:true,xhr:this})}}};dP.setRequestHeader("Content-Type",cR);dP.withCredentials=true;dP.send(dM)}catch(dO){dQ=m&&bh(dM,dN,dL);if(!dQ&&dL){cF(dM,dN)}else{if(typeof dN==="function"){dN({request:dM,trackerUrl:aM,success:false})}}}cI()},50)}function cv(dM){var dL=new Date();var dN=dL.getTime()+dM;if(!s||dN>s){s=dN}}function bl(){bn=true;cT=new Date().getTime()}function dF(){var dL=new Date().getTime();return !cT||(dL-cT)>bg}function aH(){if(dF()){b4()}}function a5(){if(K.visibilityState==="hidden"&&dF()){b4()}else{if(K.visibilityState==="visible"){cT=new Date().getTime()}}}function dJ(){if(aW||!bg){return}aW=true;at(X,"focus",bl);at(X,"blur",aH);at(X,"visibilitychange",a5);ag++;v.addPlugin("HeartBeat"+ag,{unload:function(){if(aW&&dF()){b4() }}})}function c0(dP){var dM=new Date();var dL=dM.getTime();dq=dL;if(cZ&&dL<cZ){var dN=cZ-dL;setTimeout(dP,dN);cv(dN+50);cZ+=50;return}if(cZ===false){var dO=800;cZ=dL+dO}dP()}function aX(){if(aL(da)){bP=false}else{if(aL(bo)){bP=true}}}function b2(dO){var dN,dM="",dL="";for(dN in dz){if(Object.prototype.hasOwnProperty.call(dz,dN)){dL+="&"+dN+"="+dz[dN]}}if(a3){dM="&uadata="+u(X.JSON.stringify(a3))}if(dO instanceof Array){for(dN=0;dN<dO.length;dN++){dO[dN]+=dM+dL}}else{dO+=dM+dL}return dO}function av(){return N(g.userAgentData)&&D(g.userAgentData.getHighEntropyValues)}function cG(dL){if(by||ck){return}ck=true;a3={brands:g.userAgentData.brands,platform:g.userAgentData.platform};g.userAgentData.getHighEntropyValues(["brands","model","platform","platformVersion","uaFullVersion","fullVersionList"]).then(function(dN){var dM;if(dN.fullVersionList){delete dN.brands;delete dN.uaFullVersion}a3=dN;by=true;ck=false;dL()},function(dM){by=true;ck=false;dL()})}function bS(dM,dL,dN){aX();if(!bP){c9.push([dM,dN]); return}if(dn&&!by&&av()){co.push([dM,dN]);return}aE=true;if(!de&&dM){if(cY&&bP){dM+="&consent=1"}dM=b2(dM);c0(function(){if(dl&&bh(dM,dN,true)){cv(100);return}if(c2(dM)){dw(dM,dN)}else{cF(dM,dN)}cv(dL)})}if(!aW){dJ()}}function cA(dL){if(de){return false}return(dL&&dL.length)}function dv(dL,dP){if(!dP||dP>=dL.length){return[dL]}var dM=0;var dN=dL.length;var dO=[];for(dM;dM<dN;dM+=dP){dO.push(dL.slice(dM,dM+dP))}return dO}function dH(dM,dL){if(!cA(dM)){return}if(dn&&!by&&av()){co.push([dM,null]);return}if(!bP){c9.push([dM,null]);return}aE=true;c0(function(){var dP=dv(dM,50);var dN=0,dO;for(dN;dN<dP.length;dN++){dO='{"requests":["?'+b2(dP[dN]).join('","?')+'"],"send_image":0}';if(dl&&bh(dO,null,false)){cv(100)}else{dw(dO,null,false)}}cv(dL)})}function a2(dL){return bv+dL+"."+cj+"."+bB}function cc(dN,dM,dL){dG(dN,"",-129600000,dM,dL)}function ci(){if(bx){return"0"}if(!N(X.showModalDialog)&&N(g.cookieEnabled)){return g.cookieEnabled?"1":"0"}var dL=bv+"testcookie";dG(dL,"1",undefined,bC,dp,b5,aR); var dM=aL(dL)==="1"?"1":"0";cc(dL);return dM}function bt(){bB=cl((dp||di)+(bC||"/")).slice(0,4)}function ay(){var dM,dL;for(dM=0;dM<co.length;dM++){dL=typeof co[dM][0];if(dL==="string"){bS(co[dM][0],bW,co[dM][1])}else{if(dL==="object"){dH(co[dM][0],bW)}}}co=[]}function c6(){if(!dn){return{}}if(av()){cG(ay)}if(N(dz.res)){return dz}var dM,dO,dP={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",fla:"application/x-shockwave-flash",java:"application/x-java-vm",ag:"application/x-silverlight"};if(!((new RegExp("MSIE")).test(g.userAgent))){if(g.mimeTypes&&g.mimeTypes.length){for(dM in dP){if(Object.prototype.hasOwnProperty.call(dP,dM)){dO=g.mimeTypes[dP[dM]];dz[dM]=(dO&&dO.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(g.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&N(g.javaEnabled)&&g.javaEnabled()){dz.java="1"}if(!N(X.showModalDialog)&&N(g.cookieEnabled)){dz.cookie=g.cookieEnabled?"1":"0"}else{dz.cookie=ci() }}var dN=parseInt(ac.width,10);var dL=parseInt(ac.height,10);dz.res=parseInt(dN,10)+"x"+parseInt(dL,10);return dz}function ca(){var dM=a2("cvar"),dL=aL(dM);if(dL&&dL.length){dL=X.JSON.parse(dL);if(aa(dL)){return dL}}return{}}function c3(){if(aZ===false){aZ=ca()}}function df(){var dL=c6();return cl((g.userAgent||"")+(g.platform||"")+X.JSON.stringify(dL)+(new Date()).getTime()+Math.random()).slice(0,16)}function aJ(){var dL=c6();return cl((g.userAgent||"")+(g.platform||"")+X.JSON.stringify(dL)).slice(0,6)}function bq(){return Math.floor((new Date()).getTime()/1000)}function aS(){var dM=bq();var dN=aJ();var dL=String(dM)+dN;return dL}function du(dN){dN=String(dN);var dQ=aJ();var dO=dQ.length;var dP=dN.substr(-1*dO,dO);var dM=parseInt(dN.substr(0,dN.length-dO),10);if(dM&&dP&&dP===dQ){var dL=bq();if(ba<=0){return true}if(dL>=dM&&dL<=(dM+ba)){return true}}return false}function dI(dL){if(!db){return""}var dP=e(dL,aD);if(!dP){return""}dP=String(dP);var dN=new RegExp("^[a-zA-Z0-9]+$");if(dP.length===32&&dN.test(dP)){var dM=dP.substr(16,32); if(du(dM)){var dO=dP.substr(0,16);return dO}}return""}function dc(){if(!b0){b0=dI(bZ)}var dN=new Date(),dL=Math.round(dN.getTime()/1000),dM=a2("id"),dQ=aL(dM),dP,dO;if(dQ){dP=dQ.split(".");dP.unshift("0");if(b0.length){dP[1]=b0}return dP}if(b0.length){dO=b0}else{if("0"===ci()){dO=""}else{dO=df()}}dP=["1",dO,dL];return dP}function a9(){var dO=dc(),dM=dO[0],dN=dO[1],dL=dO[2];return{newVisitor:dM,uuid:dN,createTs:dL}}function aP(){var dO=new Date(),dM=dO.getTime(),dP=a9().createTs;var dL=parseInt(dP,10);var dN=(dL*1000)+c8-dM;return dN}function aV(dL){if(!cj){return}var dN=new Date(),dM=Math.round(dN.getTime()/1000);if(!N(dL)){dL=a9()}var dO=dL.uuid+"."+dL.createTs+".";dG(a2("id"),dO,aP(),bC,dp,b5,aR)}function bX(){var dL=aL(a2("ref"));if(dL.length){try{dL=X.JSON.parse(dL);if(aa(dL)){return dL}}catch(dM){}}return["","",0,""]}function bJ(dN){var dM=bv+"testcookie_domain";var dL="testvalue";dG(dM,dL,10000,null,dN,b5,aR);if(aL(dM)===dL){cc(dM,null,dN);return true}return false}function aN(){var dM=bx; bx=false;var dL,dN;for(dL=0;dL<bH.length;dL++){dN=a2(bH[dL]);if(dN!==da&&dN!==bo&&0!==aL(dN)){cc(dN,bC,dp)}}bx=dM}function cg(dL){cj=dL}function dK(dP){if(!dP||!aa(dP)){return}var dO=[];var dN;for(dN in dP){if(Object.prototype.hasOwnProperty.call(dP,dN)){dO.push(dN)}}var dQ={};dO.sort();var dL=dO.length;var dM;for(dM=0;dM<dL;dM++){dQ[dO[dM]]=dP[dO[dM]]}return dQ}function cs(){dG(a2("ses"),"1",cE,bC,dp,b5,aR)}function br(){var dO="";var dM="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dN=dM.length;var dL;for(dL=0;dL<6;dL++){dO+=dM.charAt(Math.floor(Math.random()*dN))}return dO}function aI(dM){if(cD!==""){dM+=cD;bs=true;return dM}if(!h){return dM}var dN=(typeof h.timing==="object")&&h.timing?h.timing:undefined;if(!dN){dN=(typeof h.getEntriesByType==="function")&&h.getEntriesByType("navigation")?h.getEntriesByType("navigation")[0]:undefined}if(!dN){return dM}var dL="";if(dN.connectEnd&&dN.fetchStart){if(dN.connectEnd<dN.fetchStart){return dM}dL+="&pf_net="+Math.round(dN.connectEnd-dN.fetchStart) }if(dN.responseStart&&dN.requestStart){if(dN.responseStart<dN.requestStart){return dM}dL+="&pf_srv="+Math.round(dN.responseStart-dN.requestStart)}if(dN.responseStart&&dN.responseEnd){if(dN.responseEnd<dN.responseStart){return dM}dL+="&pf_tfr="+Math.round(dN.responseEnd-dN.responseStart)}if(N(dN.domLoading)){if(dN.domInteractive&&dN.domLoading){if(dN.domInteractive<dN.domLoading){return dM}dL+="&pf_dm1="+Math.round(dN.domInteractive-dN.domLoading)}}else{if(dN.domInteractive&&dN.responseEnd){if(dN.domInteractive<dN.responseEnd){return dM}dL+="&pf_dm1="+Math.round(dN.domInteractive-dN.responseEnd)}}if(dN.domComplete&&dN.domInteractive){if(dN.domComplete<dN.domInteractive){return dM}dL+="&pf_dm2="+Math.round(dN.domComplete-dN.domInteractive)}if(dN.loadEventEnd&&dN.loadEventStart){if(dN.loadEventEnd<dN.loadEventStart){return dM}dL+="&pf_onl="+Math.round(dN.loadEventEnd-dN.loadEventStart)}return dM+dL}function cr(dL){return e(dL,"ignore_referrer")==="1"||e(dL,"ignore_referer")==="1"}function dB(){var dV,dO=new Date(),dP=Math.round(dO.getTime()/1000),d0,dN,dQ=1024,dX,dR,dM=a2("ses"),dU=a2("ref"),dT=aL(dM),dL=bX(),dZ=bf||bZ,dW,dS,dY={}; dW=dL[0];dS=dL[1];d0=dL[2];dN=dL[3];if(!cr(dZ)&&!dT){if((!bI||!dW.length)&&(dm||cY)){for(dV in cH){if(Object.prototype.hasOwnProperty.call(cH,dV)){dW=e(dZ,cH[dV]);if(dW.length){break}}}for(dV in bT){if(Object.prototype.hasOwnProperty.call(bT,dV)){dS=e(dZ,bT[dV]);if(dS.length){break}}}}dX=d(bA);dR=dN.length?d(dN):"";if(dX.length&&!a6(dX)&&!cJ(bA)&&(!bI||!dR.length||a6(dR)||cJ(dN))){dN=bA}if(dN.length||dW.length){d0=dP;dL=[dW,dS,d0,cf(dN.slice(0,dQ))];dG(dU,X.JSON.stringify(dL),dx,bC,dp,b5,aR)}}if(dW.length){dY._rcn=u(dW)}if(dS.length){dY._rck=u(dS)}dY._refts=d0;if(String(dN).length){dY._ref=u(cf(dN.slice(0,dQ)))}return dY}function cL(dM,dY,dZ){var dX,dL=new Date(),dW=aZ,dS=a2("cvar"),d1=bf||bZ,dN=cr(d1);if(bx){aN()}if(de){return""}var d0=new RegExp("^file://","i");if(!cW&&(X.location.protocol==="file:"||d0.test(d1))){return""}c6();var dT=a9();var dQ=K.characterSet||K.charset;if(!dQ||dQ.toLowerCase()==="utf-8"){dQ=null}dM+="&idsite="+cj+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+dL.getHours()+"&m="+dL.getMinutes()+"&s="+dL.getSeconds()+"&url="+u(cf(d1))+(bA.length&&!cJ(bA)&&!dN?"&urlref="+u(cf(bA)):"")+(ad(bL)?"&uid="+u(bL):"")+"&_id="+dT.uuid+"&_idn="+dT.newVisitor+(dQ?"&cs="+u(dQ):"")+"&send_image=0"; var dV=dB();for(dX in dV){if(Object.prototype.hasOwnProperty.call(dV,dX)){dM+="&"+dX+"="+dV[dX]}}var d3=[];if(dY){for(dX in dY){if(Object.prototype.hasOwnProperty.call(dY,dX)&&/^dimension\d+$/.test(dX)){var dO=dX.replace("dimension","");d3.push(parseInt(dO,10));d3.push(String(dO));dM+="&"+dX+"="+u(dY[dX]);delete dY[dX]}}}if(dY&&E(dY)){dY=null}for(dX in cN){if(Object.prototype.hasOwnProperty.call(cN,dX)){dM+="&"+dX+"="+u(cN[dX])}}for(dX in bz){if(Object.prototype.hasOwnProperty.call(bz,dX)){var dR=(-1===Q(d3,dX));if(dR){dM+="&dimension"+dX+"="+u(bz[dX])}}}if(dY){dM+="&data="+u(X.JSON.stringify(dY))}else{if(aw){dM+="&data="+u(X.JSON.stringify(aw))}}function dP(d4,d5){var d6=X.JSON.stringify(d4);if(d6.length>2){return"&"+d5+"="+u(d6)}return""}var d2=dK(b9);var dU=dK(cC);dM+=dP(d2,"cvar");dM+=dP(dU,"e_cvar");if(aZ){dM+=dP(aZ,"_cvar");for(dX in dW){if(Object.prototype.hasOwnProperty.call(dW,dX)){if(aZ[dX][0]===""||aZ[dX][1]===""){delete aZ[dX]}}}if(b3){dG(dS,X.JSON.stringify(aZ),cE,bC,dp,b5,aR) }}if(bd&&bR&&!bs){dM=aI(dM);bs=true}if(aU){dM+="&pv_id="+aU}aV(dT);cs();dM+=ah(dZ,{tracker:bV,request:dM});if(dr.length){dM+="&"+dr}if(au()){dM+="&tracker_install_check="+q}if(D(cq)){dM=cq(dM)}return dM}b4=function bi(){var dL=new Date();dL=dL.getTime();if(!dq){return false}if(dq+bg<=dL){bV.ping();return true}return false};function bD(dO,dN,dS,dP,dL,dV){var dR="idgoal=0",dM=new Date(),dT=[],dU,dQ=String(dO).length;if(dQ){dR+="&ec_id="+u(dO)}dR+="&revenue="+dN;if(String(dS).length){dR+="&ec_st="+dS}if(String(dP).length){dR+="&ec_tx="+dP}if(String(dL).length){dR+="&ec_sh="+dL}if(String(dV).length){dR+="&ec_dt="+dV}if(ds){for(dU in ds){if(Object.prototype.hasOwnProperty.call(ds,dU)){if(!N(ds[dU][1])){ds[dU][1]=""}if(!N(ds[dU][2])){ds[dU][2]=""}if(!N(ds[dU][3])||String(ds[dU][3]).length===0){ds[dU][3]=0}if(!N(ds[dU][4])||String(ds[dU][4]).length===0){ds[dU][4]=1}dT.push(ds[dU])}}dR+="&ec_items="+u(X.JSON.stringify(dT))}dR=cL(dR,aw,"ecommerce");bS(dR,bW);if(dQ){ds={}}}function cb(dL,dP,dO,dN,dM,dQ){if(String(dL).length&&N(dP)){bD(dL,dP,dO,dN,dM,dQ) }}function bF(dL){if(N(dL)){bD("",dL,"","","","")}}function cd(dM,dO,dN){if(!bN){aU=br()}var dL=cL("action_name="+u(aq(dM||bu)),dO,"log");if(bd&&!bs){dL=aI(dL)}bS(dL,bW,dN)}function bb(dN,dM){var dO,dL="(^| )(piwik[_-]"+dM+"|matomo[_-]"+dM;if(dN){for(dO=0;dO<dN.length;dO++){dL+="|"+dN[dO]}}dL+=")( |$)";return new RegExp(dL)}function a4(dL){return(aM&&dL&&0===String(dL).indexOf(aM))}function cP(dP,dL,dQ,dM){if(a4(dL)){return 0}var dO=bb(bY,"download"),dN=bb(bj,"link"),dR=new RegExp("\\.("+dy.join("|")+")([?&#]|$)","i");if(dN.test(dP)){return"link"}if(dM||dO.test(dP)||dR.test(dL)){return"download"}if(dQ){return 0}return"link"}function aC(dM){var dL;dL=dM.parentNode;while(dL!==null&&N(dL)){if(aj.isLinkElement(dM)){break}dM=dL;dL=dM.parentNode}return dM}function dE(dQ){dQ=aC(dQ);if(!aj.hasNodeAttribute(dQ,"href")){return}if(!N(dQ.href)){return}var dP=aj.getAttributeValueFromNode(dQ,"href");var dM=dQ.pathname||cB(dQ.href);var dR=dQ.hostname||d(dQ.href);var dS=dR.toLowerCase();var dN=dQ.href.replace(dR,dS); var dO=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!dO.test(dN)){var dL=cP(dQ.className,dN,aA(dS,dM),aj.hasNodeAttribute(dQ,"download"));if(dL){return{type:dL,href:dN}}}}function aY(dL,dM,dN,dO){var dP=x.buildInteractionRequestParams(dL,dM,dN,dO);if(!dP){return}return cL(dP,null,"contentInteraction")}function bm(dL,dM){if(!dL||!dM){return false}var dN=x.findTargetNode(dL);if(x.shouldIgnoreInteraction(dN)){return false}dN=x.findTargetNodeNoDefault(dL);if(dN&&!Z(dN,dM)){return false}return true}function cO(dN,dM,dP){if(!dN){return}var dL=x.findParentContentNode(dN);if(!dL){return}if(!bm(dL,dN)){return}var dO=x.buildContentBlock(dL);if(!dO){return}if(!dO.target&&dP){dO.target=dP}return x.buildInteractionRequestParams(dM,dO.name,dO.piece,dO.target)}function a7(dM){if(!cp||!cp.length){return false}var dL,dN;for(dL=0;dL<cp.length;dL++){dN=cp[dL];if(dN&&dN.name===dM.name&&dN.piece===dM.piece&&dN.target===dM.target){return true}}return false}function a8(dL){return function(dP){if(!dL){return }var dN=x.findParentContentNode(dL);var dM;if(dP){dM=dP.target||dP.srcElement}if(!dM){dM=dL}if(!bm(dN,dM)){return}if(!dN){return false}var dQ=x.findTargetNode(dN);if(!dQ||x.shouldIgnoreInteraction(dQ)){return false}var dO=dE(dQ);if(dA&&dO&&dO.type){return dO.type}return bV.trackContentInteractionNode(dM,"click")}}function ce(dN){if(!dN||!dN.length){return}var dL,dM;for(dL=0;dL<dN.length;dL++){dM=x.findTargetNode(dN[dL]);if(dM&&!dM.contentInteractionTrackingSetupDone){dM.contentInteractionTrackingSetupDone=true;at(dM,"click",a8(dM))}}}function bK(dN,dO){if(!dN||!dN.length){return[]}var dL,dM;for(dL=0;dL<dN.length;dL++){if(a7(dN[dL])){dN.splice(dL,1);dL--}else{cp.push(dN[dL])}}if(!dN||!dN.length){return[]}ce(dO);var dP=[];for(dL=0;dL<dN.length;dL++){dM=cL(x.buildImpressionRequestParams(dN[dL].name,dN[dL].piece,dN[dL].target),undefined,"contentImpressions");if(dM){dP.push(dM)}}return dP}function cX(dM){var dL=x.collectContent(dM);return bK(dL,dM)}function bk(dM){if(!dM||!dM.length){return[] }var dL;for(dL=0;dL<dM.length;dL++){if(!x.isNodeVisible(dM[dL])){dM.splice(dL,1);dL--}}if(!dM||!dM.length){return[]}return cX(dM)}function aO(dN,dL,dM){var dO=x.buildImpressionRequestParams(dN,dL,dM);return cL(dO,null,"contentImpression")}function dD(dO,dM){if(!dO){return}var dL=x.findParentContentNode(dO);var dN=x.buildContentBlock(dL);if(!dN){return}if(!dM){dM="Unknown"}return aY(dM,dN.name,dN.piece,dN.target)}function dd(dM,dO,dL,dN){return"e_c="+u(dM)+"&e_a="+u(dO)+(N(dL)?"&e_n="+u(dL):"")+(N(dN)?"&e_v="+u(dN):"")+"&ca=1"}function aB(dN,dP,dL,dO,dR,dQ){if(!ad(dN)||!ad(dP)){ap("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces");return false}var dM=cL(dd(dN,dP,dL,dO),dR,"event");bS(dM,bW,dQ)}function cm(dL,dO,dM,dP){var dN=cL("search="+u(dL)+(dO?"&search_cat="+u(dO):"")+(N(dM)?"&search_count="+dM:""),dP,"sitesearch");bS(dN,bW)}function dh(dL,dP,dO,dN){var dM=cL("idgoal="+dL+(dP?"&revenue="+dP:""),dO,"goal");bS(dM,bW,dN)}function dt(dO,dL,dS,dR,dN){var dQ=dL+"="+u(cf(dO)); var dM=cO(dN,"click",dO);if(dM){dQ+="&"+dM}var dP=cL(dQ,dS,"link");bS(dP,bW,dR)}function b7(dM,dL){if(dM!==""){return dM+dL.charAt(0).toUpperCase()+dL.slice(1)}return dL}function cw(dQ){var dP,dL,dO=["","webkit","ms","moz"],dN;if(!bp){for(dL=0;dL<dO.length;dL++){dN=dO[dL];if(Object.prototype.hasOwnProperty.call(K,b7(dN,"hidden"))){if(K[b7(dN,"visibilityState")]==="prerender"){dP=true}break}}}if(dP){at(K,dN+"visibilitychange",function dM(){K.removeEventListener(dN+"visibilitychange",dM,false);dQ()});return}dQ()}function bE(){var dM=bV.getVisitorId();var dL=aS();return dM+dL}function cz(dL){if(!dL){return}if(!aj.hasNodeAttribute(dL,"href")){return}var dM=aj.getAttributeValueFromNode(dL,"href");if(!dM||a4(dM)){return}if(!bV.getVisitorId()){return}dM=j(dM,aD);var dN=bE();dM=J(dM,aD,dN);aj.setAnyAttribute(dL,"href",dM)}function bw(dO){var dP=aj.getAttributeValueFromNode(dO,"href");if(!dP){return false}dP=String(dP);var dM=dP.indexOf("//")===0||dP.indexOf("http://")===0||dP.indexOf("https://")===0; if(!dM){return false}var dL=dO.pathname||cB(dO.href);var dN=(dO.hostname||d(dO.href)).toLowerCase();if(aA(dN,dL)){if(!c5(di,P(dN))){return true}return false}return false}function c4(dL){var dM=dE(dL);if(dM&&dM.type){dM.href=p(dM.href);dt(dM.href,dM.type,undefined,null,dL);return}if(db){dL=aC(dL);if(bw(dL)){cz(dL)}}}function cQ(){return K.all&&!K.addEventListener}function dj(dL){var dN=dL.which;var dM=(typeof dL.button);if(!dN&&dM!=="undefined"){if(cQ()){if(dL.button&1){dN=1}else{if(dL.button&2){dN=3}else{if(dL.button&4){dN=2}}}}else{if(dL.button===0||dL.button==="0"){dN=1}else{if(dL.button&1){dN=2}else{if(dL.button&2){dN=3}}}}}return dN}function b6(dL){switch(dj(dL)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function bc(dL){return dL.target||dL.srcElement}function dk(dL){return dL==="A"||dL==="AREA"}function aK(dL){function dM(dO){var dP=bc(dO);var dQ=dP.nodeName;var dN=bb(bM,"ignore");while(!dk(dQ)&&dP&&dP.parentNode){dP=dP.parentNode;dQ=dP.nodeName}if(dP&&dk(dQ)&&!dN.test(dP.className)){return dP }}return function(dP){dP=dP||X.event;var dQ=dM(dP);if(!dQ){return}var dO=b6(dP);if(dP.type==="click"){var dN=false;if(dL&&dO==="middle"){dN=true}if(dQ&&!dN){c4(dQ)}}else{if(dP.type==="mousedown"){if(dO==="middle"&&dQ){a0=dO;bO=dQ}else{a0=bO=null}}else{if(dP.type==="mouseup"){if(dO===a0&&dQ===bO){c4(dQ)}a0=bO=null}else{if(dP.type==="contextmenu"){c4(dQ)}}}}}}function az(dO,dN,dL){var dM=typeof dN;if(dM==="undefined"){dN=true}at(dO,"click",aK(dN),dL);if(dN){at(dO,"mouseup",aK(dN),dL);at(dO,"mousedown",aK(dN),dL);at(dO,"contextmenu",aK(dN),dL)}}function a1(dM,dP,dQ){if(cu){return true}cu=true;var dR=false;var dO,dN;function dL(){dR=true}n(function(){function dS(dU){setTimeout(function(){if(!cu){return}dR=false;dQ.trackVisibleContentImpressions();dS(dU)},dU)}function dT(dU){setTimeout(function(){if(!cu){return}if(dR){dR=false;dQ.trackVisibleContentImpressions()}dT(dU)},dU)}if(dM){dO=["scroll","resize"];for(dN=0;dN<dO.length;dN++){if(K.addEventListener){K.addEventListener(dO[dN],dL,false)}else{X.attachEvent("on"+dO[dN],dL) }}dT(100)}if(dP&&dP>0){dP=parseInt(dP,10);dS(dP)}})}var bQ={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dL=this.requests;this.requests=[];if(dL.length===1){bS(dL[0],bW)}else{dH(dL,bW)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dM){if(!this.canQueue()){dH(dM,bW);return}var dL;for(dL=0;dL<dM.length;dL++){this.push(dM[dL])}},push:function(dL){if(!dL){return}if(!this.canQueue()){bS(dL,bW);return}bQ.requests.push(dL);if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.timeout=setTimeout(function(){bQ.timeout=null;bQ.sendRequests()},bQ.interval);var dM="RequestQueue"+aF;if(!Object.prototype.hasOwnProperty.call(b,dM)){b[dM]={unload:function(){if(bQ.timeout){clearTimeout(bQ.timeout)}bQ.sendRequests()}}}}};bt();this.hasConsent=function(){return bP};this.getVisitorInfo=function(){if(!aL(a2("id"))){aV()}return dc()};this.getVisitorId=function(){return this.getVisitorInfo()[1]};this.getAttributionInfo=function(){return bX() };this.getAttributionCampaignName=function(){return bX()[0]};this.getAttributionCampaignKeyword=function(){return bX()[1]};this.getAttributionReferrerTimestamp=function(){return bX()[2]};this.getAttributionReferrerUrl=function(){return bX()[3]};this.setTrackerUrl=function(dL){aM=dL};this.getTrackerUrl=function(){return aM};this.getMatomoUrl=function(){return ab(this.getTrackerUrl(),bU)};this.getPiwikUrl=function(){return this.getMatomoUrl()};this.addTracker=function(dN,dM){if(!N(dN)||null===dN){dN=this.getTrackerUrl()}var dL=new U(dN,dM);M.push(dL);v.trigger("TrackerAdded",[this]);return dL};this.getSiteId=function(){return cj};this.setSiteId=function(dL){cg(dL)};this.resetUserId=function(){bL=""};this.setUserId=function(dL){if(ad(dL)){bL=dL}};this.setVisitorId=function(dM){var dL=/[0-9A-Fa-f]{16}/g;if(y(dM)&&dL.test(dM)){b0=dM}else{ap("Invalid visitorId set"+dM)}};this.getUserId=function(){return bL};this.setCustomData=function(dL,dM){if(aa(dL)){aw=dL}else{if(!aw){aw={}}aw[dL]=dM}};this.getCustomData=function(){return aw };this.setCustomRequestProcessing=function(dL){cq=dL};this.appendToTrackingUrl=function(dL){dr=dL};this.getRequest=function(dL){return cL(dL)};this.addPlugin=function(dL,dM){b[dL]=dM};this.setCustomDimension=function(dL,dM){dL=parseInt(dL,10);if(dL>0){if(!N(dM)){dM=""}if(!y(dM)){dM=String(dM)}bz[dL]=dM}};this.getCustomDimension=function(dL){dL=parseInt(dL,10);if(dL>0&&Object.prototype.hasOwnProperty.call(bz,dL)){return bz[dL]}};this.deleteCustomDimension=function(dL){dL=parseInt(dL,10);if(dL>0){delete bz[dL]}};this.setCustomVariable=function(dM,dL,dP,dN){var dO;if(!N(dN)){dN="visit"}if(!N(dL)){return}if(!N(dP)){dP=""}if(dM>0){dL=!y(dL)?String(dL):dL;dP=!y(dP)?String(dP):dP;dO=[dL.slice(0,bG),dP.slice(0,bG)];if(dN==="visit"||dN===2){c3();aZ[dM]=dO}else{if(dN==="page"||dN===3){b9[dM]=dO}else{if(dN==="event"){cC[dM]=dO}}}}};this.getCustomVariable=function(dM,dN){var dL;if(!N(dN)){dN="visit"}if(dN==="page"||dN===3){dL=b9[dM]}else{if(dN==="event"){dL=cC[dM]}else{if(dN==="visit"||dN===2){c3(); dL=aZ[dM]}}}if(!N(dL)||(dL&&dL[0]==="")){return false}return dL};this.deleteCustomVariable=function(dL,dM){if(this.getCustomVariable(dL,dM)){this.setCustomVariable(dL,"","",dM)}};this.deleteCustomVariables=function(dL){if(dL==="page"||dL===3){b9={}}else{if(dL==="event"){cC={}}else{if(dL==="visit"||dL===2){aZ={}}}}};this.storeCustomVariablesInCookie=function(){b3=true};this.setLinkTrackingTimer=function(dL){bW=dL};this.getLinkTrackingTimer=function(){return bW};this.setDownloadExtensions=function(dL){if(y(dL)){dL=dL.split("|")}dy=dL};this.addDownloadExtensions=function(dM){var dL;if(y(dM)){dM=dM.split("|")}for(dL=0;dL<dM.length;dL++){dy.push(dM[dL])}};this.removeDownloadExtensions=function(dN){var dM,dL=[];if(y(dN)){dN=dN.split("|")}for(dM=0;dM<dy.length;dM++){if(Q(dN,dy[dM])===-1){dL.push(dy[dM])}}dy=dL};this.setDomains=function(dL){aG=y(dL)?[dL]:dL;var dP=false,dN=0,dM;for(dN;dN<aG.length;dN++){dM=String(aG[dN]);if(c5(di,P(dM))){dP=true;break}var dO=cB(dM);if(dO&&dO!=="/"&&dO!=="/*"){dP=true; break}}if(!dP){aG.push(di)}};this.setExcludedReferrers=function(dL){cS=y(dL)?[dL]:dL};this.enableCrossDomainLinking=function(){db=true};this.disableCrossDomainLinking=function(){db=false};this.isCrossDomainLinkingEnabled=function(){return db};this.setCrossDomainLinkingTimeout=function(dL){ba=dL};this.getCrossDomainLinkingUrlParameter=function(){return u(aD)+"="+u(bE())};this.setIgnoreClasses=function(dL){bM=y(dL)?[dL]:dL};this.setRequestMethod=function(dL){if(dL){dC=String(dL).toUpperCase()}else{dC=cx}if(dC==="GET"){this.disableAlwaysUseSendBeacon()}};this.setRequestContentType=function(dL){cR=dL||aQ};this.setGenerationTimeMs=function(dL){ap("setGenerationTimeMs is no longer supported since Matomo 4. The call will be ignored. The replacement is setPagePerformanceTiming.")};this.setPagePerformanceTiming=function(dP,dR,dQ,dM,dS,dN){var dO={pf_net:dP,pf_srv:dR,pf_tfr:dQ,pf_dm1:dM,pf_dm2:dS,pf_onl:dN};try{dO=R(dO,N);dO=C(dO);cD=l(dO);if(cD===""){ap("setPagePerformanceTiming() called without parameters. This function needs to be called with at least one performance parameter."); return}bs=false;bR=true}catch(dL){ap("setPagePerformanceTiming: "+dL.toString())}};this.setReferrerUrl=function(dL){bA=dL};this.setCustomUrl=function(dL){bf=b8(bZ,dL)};this.getCurrentUrl=function(){return bf||bZ};this.setDocumentTitle=function(dL){bu=dL};this.setPageViewId=function(dL){aU=dL;bN=true};this.getPageViewId=function(){return aU};this.setAPIUrl=function(dL){bU=dL};this.setDownloadClasses=function(dL){bY=y(dL)?[dL]:dL};this.setLinkClasses=function(dL){bj=y(dL)?[dL]:dL};this.setCampaignNameKey=function(dL){cH=y(dL)?[dL]:dL};this.setCampaignKeywordKey=function(dL){bT=y(dL)?[dL]:dL};this.discardHashTag=function(dL){b1=dL};this.setCookieNamePrefix=function(dL){bv=dL;if(aZ){aZ=ca()}};this.setCookieDomain=function(dL){var dM=P(dL);if(!bx&&!bJ(dM)){ap("Can't write cookie on domain "+dL)}else{dp=dM;bt()}};this.setExcludedQueryParams=function(dL){cy=y(dL)?[dL]:dL};this.getCookieDomain=function(){return dp};this.hasCookies=function(){return"1"===ci()};this.setSessionCookie=function(dN,dM,dL){if(!dN){throw new Error("Missing cookie name") }if(!N(dL)){dL=cE}bH.push(dN);dG(a2(dN),dM,dL,bC,dp,b5,aR)};this.getCookie=function(dM){var dL=aL(a2(dM));if(dL===0){return null}return dL};this.setCookiePath=function(dL){bC=dL;bt()};this.getCookiePath=function(){return bC};this.setVisitorCookieTimeout=function(dL){c8=dL*1000};this.setSessionCookieTimeout=function(dL){cE=dL*1000};this.getSessionCookieTimeout=function(){return cE};this.setReferralCookieTimeout=function(dL){dx=dL*1000};this.setConversionAttributionFirstReferrer=function(dL){bI=dL};this.setSecureCookie=function(dL){if(dL&&location.protocol!=="https:"){ap("Error in setSecureCookie: You cannot use `Secure` on http.");return}b5=dL};this.setCookieSameSite=function(dL){dL=String(dL);dL=dL.charAt(0).toUpperCase()+dL.toLowerCase().slice(1);if(dL!=="None"&&dL!=="Lax"&&dL!=="Strict"){ap("Ignored value for sameSite. Please use either Lax, None, or Strict.");return}if(dL==="None"){if(location.protocol==="https:"){this.setSecureCookie(true)}else{ap("sameSite=None cannot be used on http, reverted to sameSite=Lax."); dL="Lax"}}aR=dL};this.disableCookies=function(){bx=true;if(cj){aN()}};this.areCookiesEnabled=function(){return !bx};this.setCookieConsentGiven=function(){if(bx&&!de){bx=false;if(!dn){this.enableBrowserFeatureDetection()}if(cj&&aE){aV();var dL=cL("ping=1",null,"ping");bS(dL,bW)}}};this.requireCookieConsent=function(){if(this.getRememberedCookieConsent()){return false}this.disableCookies();return true};this.getRememberedCookieConsent=function(){return aL(c1)};this.forgetCookieConsentGiven=function(){cc(c1,bC,dp);this.disableCookies()};this.rememberCookieConsentGiven=function(dM){if(dM){dM=dM*60*60*1000}else{dM=30*365*24*60*60*1000}this.setCookieConsentGiven();var dL=new Date().getTime();dG(c1,dL,dM,bC,dp,b5,aR)};this.deleteCookies=function(){aN()};this.setDoNotTrack=function(dM){var dL=g.doNotTrack||g.msDoNotTrack;de=dM&&(dL==="yes"||dL==="1");if(de){this.disableCookies()}};this.disableCampaignParameters=function(){dm=false};this.alwaysUseSendBeacon=function(){dl=true};this.disableAlwaysUseSendBeacon=function(){dl=false };this.addListener=function(dM,dL){az(dM,dL,false)};this.enableLinkTracking=function(dM){if(dA){return}dA=true;var dL=this;r(function(){ax=true;var dN=K.body;az(dN,dM,true)})};this.enableJSErrorTracking=function(){if(dg){return}dg=true;var dL=X.onerror;X.onerror=function(dQ,dO,dN,dP,dM){cw(function(){var dR="JavaScript Errors";var dS=dO+":"+dN;if(dP){dS+=":"+dP}if(Q(cM,dR+dS+dQ)===-1){cM.push(dR+dS+dQ);aB(dR,dS,dQ)}});if(dL){return dL(dQ,dO,dN,dP,dM)}return false}};this.disablePerformanceTracking=function(){bd=false};this.enableHeartBeatTimer=function(dL){dL=Math.max(dL||15,5);bg=dL*1000;if(dq!==null){dJ()}};this.disableHeartBeatTimer=function(){if(bg||aW){if(X.removeEventListener){X.removeEventListener("focus",bl);X.removeEventListener("blur",aH);X.removeEventListener("visibilitychange",a5)}else{if(X.detachEvent){X.detachEvent("onfocus",bl);X.detachEvent("onblur",aH);X.detachEvent("visibilitychange",a5)}}}bg=null;aW=false};this.killFrame=function(){if(X.location!==X.top.location){X.top.location=X.location }};this.redirectFile=function(dL){if(X.location.protocol==="file:"){X.location=dL}};this.setCountPreRendered=function(dL){bp=dL};this.trackGoal=function(dL,dO,dN,dM){cw(function(){dh(dL,dO,dN,dM)})};this.trackLink=function(dM,dL,dO,dN){cw(function(){dt(dM,dL,dO,dN)})};this.getNumTrackedPageViews=function(){return cK};this.trackPageView=function(dL,dN,dM){cp=[];c9=[];cM=[];if(S(cj)){cw(function(){ae(aM,bU,cj)})}else{cw(function(){cK++;cd(dL,dN,dM)})}};this.disableBrowserFeatureDetection=function(){dn=false;dz={};if(av()){ay()}};this.enableBrowserFeatureDetection=function(){dn=true;c6()};this.trackAllContentImpressions=function(){if(S(cj)){return}cw(function(){r(function(){var dL=x.findContentNodes();var dM=cX(dL);bQ.pushMultiple(dM)})})};this.trackVisibleContentImpressions=function(dL,dM){if(S(cj)){return}if(!N(dL)){dL=true}if(!N(dM)){dM=750}a1(dL,dM,this);cw(function(){n(function(){var dN=x.findContentNodes();var dO=bk(dN);bQ.pushMultiple(dO)})})};this.trackContentImpression=function(dN,dL,dM){if(S(cj)){return }dN=a(dN);dL=a(dL);dM=a(dM);if(!dN){return}dL=dL||"Unknown";cw(function(){var dO=aO(dN,dL,dM);bQ.push(dO)})};this.trackContentImpressionsWithinNode=function(dL){if(S(cj)||!dL){return}cw(function(){if(cu){n(function(){var dM=x.findContentNodesWithinNode(dL);var dN=bk(dM);bQ.pushMultiple(dN)})}else{r(function(){var dM=x.findContentNodesWithinNode(dL);var dN=cX(dM);bQ.pushMultiple(dN)})}})};this.trackContentInteraction=function(dN,dO,dL,dM){if(S(cj)){return}dN=a(dN);dO=a(dO);dL=a(dL);dM=a(dM);if(!dN||!dO){return}dL=dL||"Unknown";cw(function(){var dP=aY(dN,dO,dL,dM);if(dP){bQ.push(dP)}})};this.trackContentInteractionNode=function(dN,dM){if(S(cj)||!dN){return}var dL=null;cw(function(){dL=dD(dN,dM);if(dL){bQ.push(dL)}});return dL};this.logAllContentBlocksOnPage=function(){var dN=x.findContentNodes();var dL=x.collectContent(dN);var dM=typeof console;if(dM!=="undefined"&&console&&console.log){console.log(dL)}};this.trackEvent=function(dM,dO,dL,dN,dQ,dP){cw(function(){aB(dM,dO,dL,dN,dQ,dP)})};this.trackSiteSearch=function(dL,dN,dM,dO){cp=[]; cw(function(){cm(dL,dN,dM,dO)})};this.setEcommerceView=function(dP,dL,dN,dM){cN={};if(ad(dN)){dN=String(dN)}if(!N(dN)||dN===null||dN===false||!dN.length){dN=""}else{if(dN instanceof Array){dN=X.JSON.stringify(dN)}}var dO="_pkc";cN[dO]=dN;if(N(dM)&&dM!==null&&dM!==false&&String(dM).length){dO="_pkp";cN[dO]=dM}if(!ad(dP)&&!ad(dL)){return}if(ad(dP)){dO="_pks";cN[dO]=dP}if(!ad(dL)){dL=""}dO="_pkn";cN[dO]=dL};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(ds))};this.addEcommerceItem=function(dP,dL,dN,dM,dO){if(ad(dP)){ds[dP]=[String(dP),dL,dN,dM,dO]}};this.removeEcommerceItem=function(dL){if(ad(dL)){dL=String(dL);delete ds[dL]}};this.clearEcommerceCart=function(){ds={}};this.trackEcommerceOrder=function(dL,dP,dO,dN,dM,dQ){cb(dL,dP,dO,dN,dM,dQ)};this.trackEcommerceCartUpdate=function(dL){bF(dL)};this.trackRequest=function(dM,dO,dN,dL){cw(function(){var dP=cL(dM,dO,dL);bS(dP,bW,dN)})};this.ping=function(){this.trackRequest("ping=1",null,null,"ping")};this.disableQueueRequest=function(){bQ.enabled=false };this.setRequestQueueInterval=function(dL){if(dL<1000){throw new Error("Request queue interval needs to be at least 1000ms")}bQ.interval=dL};this.queueRequest=function(dM,dL){cw(function(){var dN=dL?dM:cL(dM);bQ.push(dN)})};this.isConsentRequired=function(){return cY};this.getRememberedConsent=function(){var dL=aL(bo);if(aL(da)){if(dL){cc(bo,bC,dp)}return null}if(!dL||dL===0){return null}return dL};this.hasRememberedConsent=function(){return !!this.getRememberedConsent()};this.requireConsent=function(){cY=true;bP=this.hasRememberedConsent();if(!bP){bx=true}z++;b["CoreConsent"+z]={unload:function(){if(!bP){aN()}}}};this.setConsentGiven=function(dM){bP=true;if(!dn){this.enableBrowserFeatureDetection()}cc(da,bC,dp);var dN,dL;for(dN=0;dN<c9.length;dN++){dL=typeof c9[dN][0];if(dL==="string"){bS(c9[dN][0],bW,c9[dN][1])}else{if(dL==="object"){dH(c9[dN][0],bW)}}}c9=[];if(!N(dM)||dM){this.setCookieConsentGiven()}};this.rememberConsentGiven=function(dN){if(dN){dN=dN*60*60*1000}else{dN=30*365*24*60*60*1000 }var dL=true;this.setConsentGiven(dL);var dM=new Date().getTime();dG(bo,dM,dN,bC,dp,b5,aR)};this.forgetConsentGiven=function(dL){if(dL){dL=dL*60*60*1000}else{dL=30*365*24*60*60*1000}cc(bo,bC,dp);dG(da,new Date().getTime(),dL,bC,dp,b5,aR);this.forgetCookieConsentGiven();this.requireConsent()};this.isUserOptedOut=function(){return !bP};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=function(){this.setConsentGiven(false)};this.enableFileTracking=function(){cW=true};n(function(){setTimeout(function(){bR=true},0)});v.trigger("TrackerSetup",[this]);v.addPlugin("TrackerVisitorIdCookie"+aF,{unload:function(){if(av()&&!by){by=true;ay()}if(!aE){aV();dB()}}})}function L(){return{push:ak}}function c(az,ay){var aA={};var aw,ax;for(aw=0;aw<ay.length;aw++){var au=ay[aw];aA[au]=1;for(ax=0;ax<az.length;ax++){if(az[ax]&&az[ax][0]){var av=az[ax][0];if(au===av){ak(az[ax]);delete az[ax];if(aA[av]>1&&av!=="addTracker"&&av!=="enableLinkTracking"){ap("The method "+av+' 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') }aA[av]++}}}}return az}var F=["addTracker","enableFileTracking","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCampaignParameters","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 ai(aw,av){var au=new U(aw,av);M.push(au);_paq=c(_paq,F);for(I=0;I<_paq.length;I++){if(_paq[I]){ak(_paq[I])}}_paq=new L();v.trigger("TrackerAdded",[au]);return au}at(X,"beforeunload",an,false);at(X,"visibilitychange",function(){if(m){return}if(K.visibilityState==="hidden"){ah("unload") }},false);at(X,"online",function(){if(N(g.serviceWorker)){g.serviceWorker.ready.then(function(au){if(au&&au.sync){return au.sync.register("matomoSync")}},function(){})}},false);at(X,"message",function(az){if(!az||!az.origin){return}var aB,ax,av;var aC=d(az.origin);var ay=v.getAsyncTrackers();for(ax=0;ax<ay.length;ax++){av=d(ay[ax].getMatomoUrl());if(av===aC){aB=ay[ax];break}}if(!aB){return}var aw=null;try{aw=JSON.parse(az.data)}catch(aA){return}if(!aw){return}function au(aF){var aH=K.getElementsByTagName("iframe");for(ax=0;ax<aH.length;ax++){var aG=aH[ax];var aD=d(aG.src);if(aG.contentWindow&&N(aG.contentWindow.postMessage)&&aD===aC){var aE=JSON.stringify(aF);aG.contentWindow.postMessage(aE,az.origin)}}}if(N(aw.maq_initial_value)){au({maq_opted_in:aw.maq_initial_value&&aB.hasConsent(),maq_url:aB.getMatomoUrl(),maq_optout_by_default:aB.isConsentRequired()})}else{if(N(aw.maq_opted_in)){ay=v.getAsyncTrackers();for(ax=0;ax<ay.length;ax++){aB=ay[ax];if(aw.maq_opted_in){aB.rememberConsentGiven() }else{aB.forgetConsentGiven()}}au({maq_confirm_opted_in:aB.hasConsent(),maq_url:aB.getMatomoUrl(),maq_optout_by_default:aB.isConsentRequired()})}}},false);Date.prototype.getTimeAlias=Date.prototype.getTime;v={initialized:false,JSON:X.JSON,DOM:{addEventListener:function(ax,aw,av,au){var ay=typeof au;if(ay==="undefined"){au=false}at(ax,aw,av,au)},onLoad:n,onReady:r,isNodeVisible:i,isOrWasNodeVisible:x.isNodeVisible},on:function(av,au){if(!A[av]){A[av]=[]}A[av].push(au)},off:function(aw,av){if(!A[aw]){return}var au=0;for(au;au<A[aw].length;au++){if(A[aw][au]===av){A[aw].splice(au,1)}}},trigger:function(aw,ax,av){if(!A[aw]){return}var au=0;for(au;au<A[aw].length;au++){A[aw][au].apply(av||X,ax)}},addPlugin:function(au,av){b[au]=av},getTracker:function(av,au){if(!N(au)){au=this.getAsyncTracker().getSiteId()}if(!N(av)){av=this.getAsyncTracker().getTrackerUrl()}return new U(av,au)},getAsyncTrackers:function(){return M},addTracker:function(aw,av){var au;if(!M.length){au=ai(aw,av)}else{au=M[0].addTracker(aw,av) }return au},getAsyncTracker:function(ay,ax){var aw;if(M&&M.length&&M[0]){aw=M[0]}else{return ai(ay,ax)}if(!ax&&!ay){return aw}if((!N(ax)||null===ax)&&aw){ax=aw.getSiteId()}if((!N(ay)||null===ay)&&aw){ay=aw.getTrackerUrl()}var av,au=0;for(au;au<M.length;au++){av=M[au];if(av&&String(av.getSiteId())===String(ax)&&av.getTrackerUrl()===ay){return av}}},retryMissedPluginCalls:function(){var av=am;am=[];var au=0;for(au;au<av.length;au++){ak(av[au])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return v});define("matomo",[],function(){return v})}return v}())} /*!!! pluginTrackerHook */ /* GENERATED: tracker.min.js */ /*!! * Copyright (C) InnoCraft Ltd - All rights reserved. * * All information contained herein is, and remains the property of InnoCraft Ltd. * * @link https://www.innocraft.com/ * @license For license details see https://www.innocraft.com/license */ (function(){var x=new Date().getTime();var D=null;var U=false;var F=10;var O=false;var a=true;var A=null;var I=1000*60*60*3;var t=document;var G=window;var i=0;var o=0;var E=false;var d={play:50,pause:25,resume:25,finish:50,seek:50};var M=function(){return{play:0,pause:0,resume:0,finish:0,seek:0}};var m={play:50,pause:100,resume:100,finish:50,seek:100};var j=25;var y=true;var u=function(){return""};var K=[];function q(){if(typeof Piwik==="object"&&typeof Piwik.JSON==="object"){return Piwik.JSON}else{if(G.JSON&&G.JSON.parse&&G.JSON.stringify){return G.JSON}else{if(typeof G.JSON2==="object"&&G.JSON2.parse&&G.JSON2.stringify){return G.JSON2}else{return{parse:function(){return{}},stringify:function(){return""}}}}}}var e=true;function f(){if(U&&"undefined"!==typeof console&&console&&console.debug){console.debug.apply(console,arguments) }}function v(W){return typeof W==="object"&&typeof W.length==="number"}function N(){return t.getElementById("engage_video")&&t.getElementById("videoDisplay1_wrapper")}function b(){return"function"===typeof jwplayer}function n(){return"function"===typeof flowplayer}function r(Y,X){if(!X.getMediaTitle()&&"function"===typeof u){var W=u(Y);if(W){X.setMediaTitle(W)}}}var g={AUDIO:"Audio",VIDEO:"Video"};var J={getLocation:function(){var W=this.location||G.location;if(!W.origin){W.origin=W.protocol+"//"+W.hostname+(W.port?":"+W.port:"")}return W},setLocation:function(W){this.location=W},makeUrlAbsolute:function(X){if((!X||String(X)!==X)&&X!==""){return X}if(X.indexOf("//")===0){return this.getLocation().protocol+X}if(X.indexOf("://")!==-1){return X}if(X.indexOf("/")===0){return this.getLocation().origin+X}if(X.indexOf("#")===0||X.indexOf("?")===0){return this.getLocation().origin+this.getLocation().pathname+X}if(""===X){return this.getLocation().href}var W="(.*/)";var Y=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(W))[0]; return Y+X}};var T={getCurrentTime:function(){return new Date().getTime()},roundTimeToSeconds:function(W){return Math.round(W/1000)},isNumber:function(W){return !isNaN(W)},isArray:function(W){return typeof W==="object"&&W!==null&&typeof W.length==="number"},indexOfArray:function(Y,X){if(!Y){return -1}if(Y.indexOf){return Y.indexOf(X)}if(!this.isArray(Y)){return -1}for(var W=0;W<Y.length;W++){if(Y[W]===X){return W}}return -1},getTimeScriptLoaded:function(W){return x},generateUniqueId:function(){var Z="";var X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";var Y=X.length;for(var W=0;W<6;W++){Z+=X.charAt(Math.floor(Math.random()*Y))}return Z},trim:function(W){if(W&&String(W)===W){return W.replace(/^\s+|\s+$/g,"")}return W},getQueryParameter:function(W,aa){var Z=new RegExp("[?&]"+aa+"(=([^&#]*)|&|#|$)");var Y=Z.exec(W);if(!Y){return null}if(!Y[2]){return""}var X=Y[2].replace(/\+/g," ");return decodeURIComponent(X)},isDocumentOffScreen:function(){return t&&"undefined"!==t.hidden&&t.hidden },roundUp:function(X,W){if(X!==null&&X!==false&&this.isNumber(X)){return Math.ceil(X/W)*W}}};var p={getAttribute:function(X,W){if(X&&X.getAttribute&&W){return X.getAttribute(W)}return null},setAttribute:function(Y,W,X){if(Y&&Y.setAttribute){Y.setAttribute(W,X)}},isMediaIgnored:function(W){var X=p.getAttribute(W,"data-piwik-ignore");if(!!X||X===""){return true}X=p.getAttribute(W,"data-matomo-ignore");if(!!X||X===""){return true}return false},getMediaResource:function(W,X){var Y=p.getAttribute(W,"data-matomo-resource");if(Y){return Y}Y=p.getAttribute(W,"data-piwik-resource");if(Y){return Y}Y=p.getAttribute(W,"src");if(Y){return Y}return X},getMediaTitle:function(W){var X=p.getAttribute(W,"data-matomo-title");if(!X){X=p.getAttribute(W,"data-piwik-title")}if(!X){X=p.getAttribute(W,"title")}if(!X){X=p.getAttribute(W,"alt")}return X},hasCssClass:function(Y,Z){if(Y&&Y.className){var X=(""+Y.className).split(" ");for(var W=0;W<X.length;W++){if(X[W]===Z){return true}}}return false},getFirstParentWithClass:function(Y,Z,W){if(W<=0||!Y||!Y.parentNode){return null }var X=Y.parentNode;if(this.hasCssClass(X,Z)){return X}else{return this.getFirstParentWithClass(X,Z,--W)}},isFullscreen:function(W){if(W&&t.fullScreenElement===W||t.mozFullScreenElement===W||t.webkitFullscreenElement===W||t.msFullscreenElement===W){return true}return false}};function V(){if(null===A){if("object"===typeof Piwik&&Piwik.getAsyncTrackers){return Piwik.getAsyncTrackers()}}if(v(A)){return A}return[]}function l(X,W,Y){this.playerName=X;this.type=W;this.resource=Y;this.disabled=false;this.reset()}l.piwikTrackers=[];l.prototype.disable=function(){this.disabled=true};l.prototype.reset=function(){this.id=T.generateUniqueId();this.mediaTitle=null;this.timeToInitialPlay=null;this.width=null;this.height=null;this.fullscreen=false;this.timeout=null;this.watchedTime=0;this.lastTimeCheck=null;this.isPlaying=false;this.isPaused=false;this.mediaProgressInSeconds=0;this.mediaLengthInSeconds=0;this.disabled=false;this.numPlaysSameMedia=0;this.numPlaysSameMediaOffScreen=0;this.viewedSegments=[]; this.trackedSegments=[];this.lastSentProgressRequestUrl=""};l.prototype.setResource=function(W){this.resource=W};l.prototype.getResource=function(){return this.resource};l.prototype.makeRequestUrlFromParams=function(Y){var X="";for(var W in Y){if(Object.prototype.hasOwnProperty.call(Y,W)){X+=W+"="+encodeURIComponent(Y[W])+"&"}}return X};l.prototype.trackEvent=function(ac){if(this.disabled){return}if(!D){D=T.getCurrentTime()}else{if((T.getCurrentTime()-D)>I){this.disable();return}}var W=V();var X="Media"+this.type;var Z=this.mediaTitle||this.resource;var aa=this.makeRequestUrlFromParams({e_c:X,e_a:ac,e_n:Z,e_v:parseInt(Math.round(this.mediaProgressInSeconds),10),ca:"1"});if(W&&W.length){var Y=0,ab;for(Y;Y<W.length;Y++){ab=W[Y];if(ab&&ab.MediaAnalytics&&ab.MediaAnalytics.isTrackEventsEnabled()){if(L.isEventsLimitReached(ab,Z,ac,this.mediaLengthInSeconds)){f("Event limit reached for event: "+ac);continue}if("function"===typeof ab.queueRequest&&"function"===typeof ab.disableQueueRequest){ab.queueRequest(aa) }else{ab.trackRequest(aa)}L.incrLimitPerTrackerPerMediaResource(ab,Z,ac)}}}else{if(typeof G._paq==="undefined"){G._paq=[]}G._paq.push(["trackRequest",aa]);f("piwikWasNotYetInitialized. This means players were scanning too early for media or there are no async trackers")}f("trackEvent",X,Z,ac)};l.prototype.trackProgress=function(aa,ac,ab,X,Y,ae,an,af,ak,ag,ad,W,ai){if(this.disabled){return}if(!D){D=T.getCurrentTime()}else{if((T.getCurrentTime()-D)>I){this.disable();return}}if(this.isPlaying&&!ae){ae=1}var am={ma_id:aa,ma_ti:ac!==null?ac:"",ma_pn:ab,ma_mt:X,ma_re:Y,ma_st:parseInt(Math.floor(ae),10),ma_ps:parseInt(an,10),ma_le:af,ma_ttp:ak!==null?ak:"",ma_w:ag?ag:"",ma_h:ad?ad:"",ma_fs:W?"1":"0",ma_se:ai.join(","),ca:"1"};var ah=this.makeRequestUrlFromParams(am);if(ah===this.lastSentProgressRequestUrl){return}this.lastSentProgressRequestUrl=ah;var al=V();if(al&&al.length){var aj=0,Z;for(aj;aj<al.length;aj++){Z=al[aj];if(Z&&Z.MediaAnalytics&&Z.MediaAnalytics.isTrackProgressEnabled()){if("function"===typeof Z.queueRequest&&"function"===typeof Z.disableQueueRequest){Z.queueRequest(ah) }else{Z.trackRequest(ah)}}}}else{if(typeof G._paq==="undefined"){G._paq=[]}G._paq.push(["trackRequest",ah]);f("piwikWasNotYetInitialized. This means players were scanning too early for media or there are no async trackers")}if(U){f("trackProgress",q().stringify(am))}};l.prototype.setFullscreen=function(W){if(!this.fullscreen){this.fullscreen=!!W}};l.prototype.setWidth=function(W){if(T.isNumber(W)){this.width=parseInt(W,10)}};l.prototype.setHeight=function(W){if(T.isNumber(W)){this.height=parseInt(W,10)}};l.prototype.setMediaTitle=function(W){this.mediaTitle=W};l.prototype.getMediaTitle=function(){return this.mediaTitle};l.prototype.setMediaProgressInSeconds=function(W){this.mediaProgressInSeconds=W;if(this.isPlaying){this.viewedSegments.push(W)}};l.prototype.getMediaProgressInSeconds=function(){return this.mediaProgressInSeconds};l.prototype.setMediaTotalLengthInSeconds=function(W){this.mediaLengthInSeconds=W};l.prototype.getMediaTotalLengthInSeconds=function(){return this.mediaLengthInSeconds };l.prototype.play=function(){if(this.isPlaying){return}this.isPlaying=true;this.setMediaProgressInSeconds(this.getMediaProgressInSeconds());this.startWatchedTime();if(e&&this.timeToInitialPlay===null){this.timeToInitialPlay=T.roundTimeToSeconds(T.getCurrentTime()-T.getTimeScriptLoaded())}e=false;if(this.isPaused){this.isPaused=false;this.trackEvent("resume")}else{this.trackEvent("play");var W=T.isDocumentOffScreen();this.numPlaysSameMedia++;i++;if(W){this.numPlaysSameMediaOffScreen++;o++}if(this.numPlaysSameMedia>25||i>50){this.disable()}else{if(this.numPlaysSameMediaOffScreen>10||o>15){this.disable()}}}this.trackUpdate()};l.prototype.startWatchedTime=function(){this.lastTimeCheck=T.getCurrentTime()};l.prototype.stopWatchedTime=function(){if(this.lastTimeCheck){this.watchedTime+=T.getCurrentTime()-this.lastTimeCheck;this.lastTimeCheck=null}};l.prototype.seekStart=function(){if(this.isPlaying){this.stopWatchedTime()}};l.prototype.seekFinish=function(){if(this.isPlaying){this.startWatchedTime() }};l.prototype.pause=function(){if(this.isPlaying){this.isPaused=true;this.isPlaying=false;if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.stopWatchedTime();this.trackUpdate();this.trackEvent("pause")}};l.prototype.finish=function(){if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.stopWatchedTime();this.trackUpdate();this.trackEvent("finish");this.id=T.generateUniqueId();this.timeToInitialPlay=null;this.lastTimeCheck=null;this.isPlaying=false;this.isPaused=false;this.watchedTime=0;this.mediaProgressInSeconds=0};l.prototype.trackUpdate=function(){if(this.timeout){clearTimeout(this.timeout);this.timeout=null}var W=T.getCurrentTime();if(this.lastTimeCheck){this.watchedTime+=(W-this.lastTimeCheck);this.lastTimeCheck=W}var ac=this.mediaLengthInSeconds;if(!ac||!T.isNumber(ac)){ac=""}else{ac=parseInt(this.mediaLengthInSeconds,10)}var Z=T.roundTimeToSeconds(this.watchedTime);var aa=this.mediaProgressInSeconds;if(aa>ac&&ac){aa=ac}var X=[];var Y,ab;for(Y=0;Y<this.viewedSegments.length; Y++){ab=this.viewedSegments[Y];if(ab>=0&&ab<=ac){if(ab<=300){ab=T.roundUp(ab,15)}else{ab=T.roundUp(ab,30)}if(ab>=0&&ab<1){ab=15}if(-1===T.indexOfArray(X,ab)&&-1===T.indexOfArray(this.trackedSegments,ab)){X.push(ab);this.trackedSegments.push(ab)}}}this.viewedSegments=[];this.trackProgress(this.id,this.mediaTitle,this.playerName,this.type,this.resource,Z,aa,ac,this.timeToInitialPlay,this.width,this.height,this.fullscreen,X)};l.prototype.update=function(){if(this.timeout){return}var Y=T.roundTimeToSeconds(this.watchedTime);var X=F;if(!O&&(Y>=1800||i>10)){X=300}else{if(!O&&(Y>=600||i>4)){X=240}else{if(!O&&(Y>=300||i>2)){X=120}else{if(!O&&Y>=60){X=60}}}}X=X*1000;var W=this;this.timeout=setTimeout(function(){W.trackUpdate();W.timeout=null},X)};var L={isEventsLimitReached:function(Z,X,Y,W){if(!y){return false}if(L.getTotalEventsOnTracker(Z,Y)>=L.getTotalAllowedEventsPerTracker(Y)){f("blocked due to max tracker limit reached for action: "+Y);return true}var aa=(W&&W>900&&(Y==="pause"||Y==="resume"))?2:1; L.initializeLimitPerTrackerPerMediaResource(Z,X,Y);return(Z.MediaAnalytics.quotaEventRequests[X][Y]>(d[Y]*aa))},getTotalEventsOnTracker:function(Z,Y){var X=0;if(typeof Z.MediaAnalytics.quotaEventRequests==="undefined"){Z.MediaAnalytics.quotaEventRequests={};return X}if(Object.keys(Z.MediaAnalytics.quotaEventRequests).length){for(var W in Z.MediaAnalytics.quotaEventRequests){X=X+(Z.MediaAnalytics.quotaEventRequests[W][Y]||0)}}return X},getTotalAllowedEventsPerTracker:function(W){return(m[W]||j)},initializeLimitPerTrackerPerMediaResource:function(Y,W,X){if(typeof Y.MediaAnalytics.quotaEventRequests==="undefined"){Y.MediaAnalytics.quotaEventRequests={}}if(typeof Y.MediaAnalytics.quotaEventRequests[W]==="undefined"){Y.MediaAnalytics.quotaEventRequests[W]=M()}if(typeof Y.MediaAnalytics.quotaEventRequests[W][X]==="undefined"){Y.MediaAnalytics.quotaEventRequests[W][X]=0}},incrLimitPerTrackerPerMediaResource:function(Y,W,X){if(!y){return}L.initializeLimitPerTrackerPerMediaResource(Y,W,X);Y.MediaAnalytics.quotaEventRequests[W][X]++ }};var c={players:{},registerPlayer:function(W,X){if(!X||!X.scanForMedia||"function"!==typeof X.scanForMedia){throw new Error("A registered player does not implement the scanForMedia function")}W=W.toLowerCase();this.players[W]=X},removePlayer:function(W){W=W.toLowerCase();delete this.players[W]},getPlayer:function(W){W=W.toLowerCase();if(W in this.players){return this.players[W]}return null},getPlayers:function(){return this.players},scanForMedia:function(X){if(!a){return}if("undefined"===typeof X||!X){X=document}var W;for(W in this.players){if(Object.prototype.hasOwnProperty.call(this.players,W)){this.players[W].scanForMedia(X)}}}};var S=function(ai,Y){if(!ai){return}if(!G.addEventListener){return}if(ai.hasPlayerInstance){return}ai.hasPlayerInstance=true;var an=g.VIDEO===Y;var ab=J.makeUrlAbsolute(ai.currentSrc);var W=p.getMediaResource(ai,ab);var ac="html5"+Y.toLowerCase();if(typeof paella==="object"&&typeof paella.opencast==="object"){ac="paella-opencast"}else{if(p.getFirstParentWithClass(ai,"video-js",1)){ac="video.js" }else{if(p.hasCssClass(ai,"jw-video")){ac="jwplayer";var af=p.getFirstParentWithClass(ai,"jw-flag-media-audio");if(af){Y=g.AUDIO}}else{if(p.getFirstParentWithClass(ai,"flowplayer",3)){ac="flowplayer"}}}}var aa=new l(ac,Y,W);K.push(aa);function X(){if(ai.duration){aa.setMediaTotalLengthInSeconds(ai.duration)}}function ad(){if(an){var au=ai;if(ac==="jwplayer"){var at=p.getFirstParentWithClass(au,"jwplayer");if(at){au=at}}if("undefined"!==typeof au.videoWidth&&au.videoWidth){aa.setWidth(au.videoWidth)}else{if("undefined"!==typeof au.clientWidth&&au.clientWidth){aa.setWidth(au.clientWidth)}}if("undefined"!==typeof au.videoHeight&&au.videoHeight){aa.setHeight(au.videoHeight)}else{if("undefined"!==typeof au.clientHeight&&au.clientHeight){aa.setHeight(au.clientHeight)}}aa.setFullscreen(p.isFullscreen(au))}}function ae(){aa.setMediaProgressInSeconds(ai.currentTime)}function ao(){var at=p.getMediaTitle(ai);if(at){aa.setMediaTitle(at)}else{ak(ai,aa)}}ar(ai,aa);ad();ao();X();ae();var Z=false;var ag=false; var ah=null;if(ai.currentSrc){ah=ai.currentSrc}function ak(av,az){if(b()&&!az.getMediaTitle()){var ax=p.getFirstParentWithClass(av,"jwplayer",3);if(!ax){ax=p.getFirstParentWithClass(av,"jwplayer-video",3);if(ax&&"undefined"!==typeof ax.children&&ax.children&&ax.children.length&&ax.children[0]){ax=ax.children[0]}}if(ax){try{var aA=jwplayer(ax);if(aA&&aA.getPlaylistItem){var aB=aA.getPlaylistItem();if(aB&&aB.matomoTitle){az.setMediaTitle(aB.matomoTitle)}else{if(aB&&aB.piwikTitle){az.setMediaTitle(aB.piwikTitle)}else{if(aB&&aB.title){az.setMediaTitle(aB.title)}}}}}catch(aw){f(aw)}}}if(n()&&!az.getMediaTitle()){var at=p.getFirstParentWithClass(av,"flowplayer",4);if(at){var aA=flowplayer(at);if(aA&&aA.video&&aA.video.matomoTitle){az.setMediaTitle(aA.video.matomoTitle)}else{if(aA&&aA.video&&aA.video.piwikTitle){az.setMediaTitle(aA.video.piwikTitle)}else{if(aA&&aA.video&&aA.video.title){az.setMediaTitle(aA.video.title)}else{if(aA&&aA.video&&aA.video.fv_title){az.setMediaTitle(aA.video.fv_title) }}}}}}if(!az.getMediaTitle()){var au=t.getElementById("engage_basic_description_title");if(au&&au.innerText){var ay=T.trim(au.innerText);if(ay){az.setMediaTitle(ay)}}else{if(typeof paella==="object"&&typeof paella.opencast==="object"&&typeof paella.opencast._episode==="object"&&paella.opencast._episode.dcTitle){var ay=T.trim(paella.opencast._episode.dcTitle);if(ay){az.setMediaTitle(ay)}}}}r(av,az)}function ar(ax,aw){if(b()){var az=p.getFirstParentWithClass(ax,"jwplayer",3);if(!az){az=p.getFirstParentWithClass(ax,"jwplayer-video",3);if(az&&"undefined"!==typeof az.children&&az.children&&az.children.length&&az.children[0]){az=az.children[0]}}if(az){try{var au=jwplayer(az);if(au&&au.getPlaylistItem){var av=au.getPlaylistItem();if(av&&"undefined"!==typeof av.matomoResource&&av.matomoResource){aw.setResource(av.matomoResource)}else{if(av&&"undefined"!==typeof av.piwikResource&&av.piwikResource){aw.setResource(av.piwikResource)}}}}catch(ay){f(ay)}}}if(n()){var at=p.getFirstParentWithClass(ax,"flowplayer",4); if(at){var au=flowplayer(at);if(au&&au.video&&"undefined"!==typeof au.video.matomoResource&&au.video.matomoResource){aw.setResource(au.video.matomoResource)}else{if(au&&au.video&&"undefined"!==typeof au.video.piwikResource&&au.video.piwikResource){aw.setResource(au.video.piwikResource)}}}}}function aj(){if(!ah&&ai.currentSrc){ah=ai.currentSrc}else{if(ah&&ai.currentSrc&&ah!=ai.currentSrc){ah=ai.currentSrc;var au=J.makeUrlAbsolute(ah);var at=aa.getMediaTitle();Z=false;aa.reset();aa.setResource(au);aa.setMediaTitle("");var av=p.getMediaTitle(ai);if(av&&av!==at){aa.setMediaTitle(av)}else{ak(ai,aa)}ar(ai,aa);X()}}}function aq(){if(!ag&&(aa.getResource()||aa.getMediaTitle())){ag=true;ao(ai,aa);ar(ai,aa);aa.trackUpdate()}}function al(){aj();ad();X();ae();aq()}var am=null;if(ai.loop){am=0}var ap=false;if(ai.loop&&ai.autoplay&&ai.muted){ap=true}ai.addEventListener("playing",function(){aj();if("undefined"!==typeof ai.paused&&ai.paused){return}if("undefined"!==typeof ai.ended&&ai.ended){return}if(!Z){ae(); Z=true;aa.play()}},true);ai.addEventListener("durationchange",X,true);ai.addEventListener("loadedmetadata",al,true);ai.addEventListener("loadeddata",al,true);ai.addEventListener("pause",function(){if(ai.currentTime&&ai.duration&&ai.currentTime===ai.duration){return}if(ai.seeking){return}ae();Z=false;aa.pause()},true);ai.addEventListener("seeking",function(){if(ai.seeking){ae();var at=parseInt(aa.getMediaProgressInSeconds(),10);if(am===null||am!==at){am=at;aa.trackEvent("seek")}}},true);ai.addEventListener("ended",function(){Z=false;aa.finish()},true);ai.addEventListener("timeupdate",function(){ae();X();if(an&&!aa.width){ad()}if("undefined"!==typeof ai.paused&&ai.paused){return}if("undefined"!==typeof ai.ended&&ai.ended){return}if(ap){var at=T.roundTimeToSeconds(aa.watchedTime);var au=aa.getMediaTotalLengthInSeconds();if(at>=30&&au>=1&&au<30&&(at/au)>=3){aa.disable()}}ag=true;if(!Z){Z=true;aa.play()}else{aa.update()}},true);ai.addEventListener("seeking",function(){aa.seekStart()},true);ai.addEventListener("seeked",function(){ae(); X();aa.seekFinish()},true);if(an){ai.addEventListener("resize",al,true);G.addEventListener("resize",function(){ad()},false)}aa.timeout=setTimeout(function(){al();aa.timeout=null},1500)};S.scanForMedia=function(Z){if(!G.addEventListener){return}var aa=N();var ad=Z.getElementsByTagName("video");var X;for(var Y=0;Y<ad.length;Y++){if(!p.isMediaIgnored(ad[Y])){X=p.getAttribute(ad[Y],"id");if(aa){var ab=Z.querySelector("#videoDisplay1_wrapper");if(ab&&("function"===typeof ab.contains)&&!ab.contains(ad[Y])){continue}}if(X!=="video_0"&&Z.querySelector("#videoPlayerWrapper_0")&&Z.querySelector("#video_0")){continue}new S(ad[Y],g.VIDEO)}}ad=null;var W=Z.getElementsByTagName("audio");for(var Y=0;Y<W.length;Y++){if(!p.isMediaIgnored(W[Y])){new S(W[Y],g.AUDIO)}}W=null;if("undefined"!==typeof soundManager&&soundManager&&"undefined"!==typeof soundManager.sounds){for(var Y in soundManager.sounds){if(Object.prototype.hasOwnProperty.call(soundManager.sounds,Y)){var ac=soundManager.sounds[Y];if(ac&&ac.isHTML5&&ac._a){if(!p.isMediaIgnored(ac._a)){new S(ac._a,g.AUDIO) }}}}}};var P=function(Y,ae){if(!Y||!G.addEventListener){return}if(Y.hasPlayerInstance||!b()){return}var af=p.getFirstParentWithClass(Y,"jwplayer",3);if(!af){return}var aj=jwplayer(af);if(!aj||!aj.getItem||"undefined"===(typeof aj.getItem())){return}Y.hasPlayerInstance=true;function ag(al){var am=al.getPlaylistItem();if(am&&am.matomoResource){return am.matomoResource}if(am&&am.piwikResource){return am.piwikResource}if(am&&am.file){return am.file}return""}function X(am){var an=am.getPlaylistItem();if(an&&an.matomoTitle){return an.matomoTitle}if(an&&an.piwikTitle){return an.piwikTitle}if(an&&an.title){return an.title}if("function"===typeof u){var al=u(Y);if(al){return al}}return null}function ad(al,am,ao){var an=ag(al);if(ao&&an&&ao!=an){ao=an;am.reset();am.setResource(J.makeUrlAbsolute(ao));am.setMediaTitle(X(al));am.setWidth(al.getWidth());am.setHeight(al.getHeight());am.setFullscreen(al.getFullscreen());return true}return false}var ai=ag(aj);var W=J.makeUrlAbsolute(ai);var Z=p.getMediaResource(Y,W); var ah=new l("jwplayer",ae,Z);ah.setMediaTitle(X(aj));ah.setWidth(aj.getWidth());ah.setHeight(aj.getHeight());ah.setFullscreen(aj.getFullscreen());K.push(ah);var aa=aj.getDuration();if(aa){ah.setMediaTotalLengthInSeconds(aa)}var ab=false,ac=ai;var ak=null;aj.on("play",function(){ad(aj,ah,ac);ab=true;ah.play()},true);aj.on("playlistItem",function(){ad(aj,ah,ac);if(aj.getState()!=="playing"){ab=false}},true);aj.on("pause",function(){if(aj.getPosition()&&aj.getDuration()&&aj.getPosition()===aj.getDuration()){return}ah.pause()},true);aj.on("complete",function(){ah.finish()},true);aj.on("time",function(){var al=aj.getPosition();if(al){ah.setMediaProgressInSeconds(al)}var am=aj.getDuration();if(am){ah.setMediaTotalLengthInSeconds(am)}if(ab){ah.update()}else{ab=true;ah.play()}},true);aj.on("seek",function(){ah.seekStart()},true);aj.on("seeked",function(){var al=aj.getPosition();if(al){ah.setMediaProgressInSeconds(al)}var an=aj.getDuration();if(an){ah.setMediaTotalLengthInSeconds(an)}ah.seekFinish(); var am=parseInt(ah.getMediaProgressInSeconds(),10);if(ak===null||ak!==am){ak=am;ah.trackEvent("seek")}},true);aj.on("resize",function(){ah.setWidth(aj.getWidth());ah.setHeight(aj.getHeight());ah.setFullscreen(aj.getFullscreen())},true);aj.on("fullscreen",function(){ah.setWidth(aj.getWidth());ah.setHeight(aj.getHeight());ah.setFullscreen(aj.getFullscreen())},false);ah.trackUpdate()};P.scanForMedia=function(X){if(!G.addEventListener||!b()){return}var Z=X.getElementsByTagName("object");for(var W=0;W<Z.length;W++){if(!p.isMediaIgnored(Z[W])&&p.hasCssClass(Z[W],"jw-swf")){var Y=g.VIDEO;if(p.hasCssClass(Z[W],"jw-flag-media-audio")){Y=g.AUDIO}new P(Z[W],Y)}}Z=null};var s=function(Z,ac){if(!Z){return}if(!G.addEventListener){return}if(Z.playerInstance){return}Z.playerInstance=true;var W=p.getAttribute(Z,"src");var Y=p.getMediaResource(Z,null);var af=new l("vimeo",ac,Y);af.setWidth(Z.clientWidth);af.setHeight(Z.clientHeight);af.setFullscreen(p.isFullscreen(Z));K.push(af);G.addEventListener("resize",function(){af.setWidth(Z.clientWidth); af.setHeight(Z.clientHeight);af.setFullscreen(p.isFullscreen(Z))},false);var ae=p.getMediaTitle(Z);var aa=!p.getAttribute(Z,"data-piwik-title")&&!p.getAttribute(Z,"data-matomo-title");if(ae){af.setMediaTitle(ae)}Z.matomoSeekLastTime=null;var X=function(ai){if(!(/^(https?:)?\/\/(player.)?vimeo.com(?=$|\/)/).test(ai.origin)){return false}if(!ai||!ai.data){return}if(Z.contentWindow&&ai.source&&Z.contentWindow!==ai.source){return}var aj=ai.data;if("string"===typeof aj){aj=q().parse(ai.data)}if(("event" in aj&&aj.event==="ready")||("method" in aj&&aj.method==="ping")){if(ab==="*"){ab=ai.origin}if(!Z.isVimeoReady){Z.isVimeoReady=true;ad("addEventListener","play");ad("addEventListener","pause");ad("addEventListener","finish");ad("addEventListener","seek");ad("addEventListener","seeked");ad("addEventListener","playProgress");ad("getVideoTitle")}return}if("method" in aj){f("vimeoMethod",aj.method);switch(aj.method){case"getVideoTitle":if(aj.value&&aa){af.setMediaTitle(aj.value)}else{if(aa){r(Z,af) }}aa=true;af.trackUpdate();break;case"getPaused":if(aj.value){af.pause()}}return}if("event" in aj){var ag=aj.event;f("vimeoEvent",ag);if(aj&&aj.data){aj=aj.data}if(af&&aj&&aj.seconds){if(af.getMediaProgressInSeconds()===aj.seconds&&(ag==="playProgress"||ag==="timeupdate")){return}af.setMediaProgressInSeconds(aj.seconds)}if(af&&aj&&aj.duration){af.setMediaTotalLengthInSeconds(aj.duration)}switch(ag){case"play":af.play();break;case"timeupdate":case"playProgress":if(af._isSeeking){af._isSeeking=false;af.seekFinish()}af.update();break;case"seek":af.seekStart();af._isSeeking=true;break;case"seeked":var ah=parseInt(af.getMediaProgressInSeconds(),10);if(Z.matomoSeekLastTime===null||Z.matomoSeekLastTime!==ah){Z.matomoSeekLastTime=ah;af.trackEvent("seek")}break;case"pause":if(aj&&aj.seconds&&aj&&aj.duration&&aj.seconds===aj.duration){f("ignoring pause event because video is finished");break}setTimeout(function(){ad("getPaused")},700);break;case"finish":af.finish();break}}};G.addEventListener("message",X,true); var ab="*";af._isSeeking=false;function ad(aj,ah){var ag={method:aj};if(ah!==undefined){ag.value=ah}if(Z&&Z.contentWindow){if(navigator&&navigator.userAgent){var ai=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));if(ai>=8&&ai<10){ag=q().stringify(ag)}}Z.contentWindow.postMessage(ag,ab)}}ad("ping")};s.scanForMedia=function(Y){if(!G.addEventListener){return}var X=Y.getElementsByTagName("iframe");for(var W=0;W<X.length;W++){if(p.isMediaIgnored(X[W])){continue}var Z=p.getAttribute(X[W],"src");if(Z&&(Z.indexOf("player.vimeo.com")>0||(Z.indexOf("vimeo.com")>0&&Z.indexOf("embed")>0))){new s(X[W],g.VIDEO)}}X=null};var w=function(ab,ae){if(!ab){return}if(!G.addEventListener){return}if(ab.playerInstance){return}if(typeof Plyr==="function"&&p.getFirstParentWithClass(ab,"plyr",2)){return}var X=p.getMediaResource(ab,null);var ah=new l("youtube",ae,X);ah.setWidth(ab.clientWidth);ah.setHeight(ab.clientHeight);ah.setFullscreen(p.isFullscreen(ab));K.push(ah);G.addEventListener("resize",function(){ah.setWidth(ab.clientWidth); ah.setHeight(ab.clientHeight);ah.setFullscreen(p.isFullscreen(ab))},false);var ag=p.getMediaTitle(ab);if(ag){ah.setMediaTitle(ag)}var Y=false;var aa=null;var ad=!p.getAttribute(ab,"data-piwik-title")&&!p.getAttribute(ab,"data-matomo-title");var W=false;var ac=false;var af=null;function Z(ai){if(!ai||!ai.target){return}var am=ai.target;var al;if(ai&&"undefined"!==typeof ai.data&&null!==ai.data){al=ai.data}else{if(!am.getPlayerState){f("youtubeMissingPlayerState");return}al=am.getPlayerState()}f("youtubeStateChange",al);switch(al){case YT.PlayerState.ENDED:if(am.getCurrentTime){ah.setMediaProgressInSeconds(am.getCurrentTime())}if(am.getDuration){ah.setMediaTotalLengthInSeconds(am.getDuration())}ah.finish();if(aa){clearInterval(aa);aa=null}break;case YT.PlayerState.PLAYING:var aj=null;if(am.getVideoData){aj=am.getVideoData()}if(!af&&aj&&aj.video_id){af=aj.video_id}else{if(af&&aj&&aj.video_id&&af!=aj.video_id){af=aj.video_id;ah.reset();if(am.getVideoUrl){ah.setResource(am.getVideoUrl())}ad=true; W=false;Y=false;f("currentVideoId has changed to "+af)}}if(am.getCurrentTime){ah.setMediaProgressInSeconds(am.getCurrentTime())}if(am.getDuration){ah.setMediaTotalLengthInSeconds(am.getDuration())}if(ad){if(aj&&aj.title){ah.setMediaTitle(aj.title)}ad=false}if(!W||ac){W=true;ac=false;Y=false;ah.play()}else{if(Y){Y=false;ah.seekFinish()}}ah.update();if(!aa){var ak=[];aa=setInterval(function(){if(ah.isPlaying){if(am&&am.getCurrentTime){var an=am.getCurrentTime();ah.setMediaProgressInSeconds(an);ak.push(an);if(ak.length>60){ak.shift();var ao=0;var ap=true;for(ao=0;ao<ak.length;ao++){if(ak[ao]!==ak[0]){ap=false}}if(ap){ac=true;ah.pause();ak=[];return}}}ah.update()}},1*1000)}break;case -1:case YT.PlayerState.PAUSED:setTimeout(function(){if(am&&am.getPlayerState&&am.getPlayerState()==YT.PlayerState.PAUSED){if(am&&am.getCurrentTime){ah.setMediaProgressInSeconds(am.getCurrentTime())}ah.pause();ac=true;if(aa){clearInterval(aa);aa=null}}else{f("target not found in YT paused state")}},1000);break;case YT.PlayerState.BUFFERING:ah.seekStart(); Y=true;if(aa){clearInterval(aa);aa=null}break}}ab.playerInstance=new YT.Player(ab,{events:{onReady:function(ai){if(!ai||!ai.target){return}if(ad&&ai.target&&ai.target.getVideoData){var aj=ai.target.getVideoData();if(aj&&aj.title){ah.setMediaTitle(aj.title)}else{r(ab,ah)}}ah.trackUpdate();if(ai.target.getPlayerState&&ai.target.getPlayerState()==YT.PlayerState.PLAYING){Z(ai)}},onError:function(ai){if(!ai||!ai.data){return}if(ah.isPlaying){ac=true;ah.pause()}f("YT onError event happened")},onStateChange:Z}})};w.scanForMedia=function(ae){if(!G.addEventListener){return}var Y=[];var ad=ae.getElementsByTagName("iframe");for(var aa=0;aa<ad.length;aa++){if(p.isMediaIgnored(ad[aa])){continue}var W=p.getAttribute(ad[aa],"src");if(W&&(W.indexOf("youtube.com")>0||W.indexOf("youtube-nocookie.com")>0)){p.setAttribute(ad[aa],"enablejsapi","true");Y.push(ad[aa])}}ad=null;function X(ai,ah){if(!(ai in window)){return}var aj=window[ai];if("function"!==typeof aj){return}try{if(aj.toString&&aj.toString().indexOf("function replaceMe")===0){return }}catch(ag){}function af(){try{aj.apply(window,[].slice.call(arguments,0));ah()}catch(ak){ah();throw ak}}window[ai]=af}function ac(){return"object"===typeof YT&&YT&&YT.Player}function Z(){if(!ac()){return}var af=ae.getElementsByTagName("iframe");for(var ag=0;ag<af.length;ag++){if(p.isMediaIgnored(af[ag])){continue}var ah=p.getAttribute(af[ag],"src");if(ah&&(ah.indexOf("youtube.com")>0||ah.indexOf("youtube-nocookie.com")>0)){if(af[ag].setAttribute){af[ag].setAttribute("enablejsapi","true")}new w(af[ag],g.VIDEO)}}}if(Y&&Y.length){if(ac()){Z()}else{if(G.onYouTubeIframeAPIReady){X("onYouTubeIframeAPIReady",Z);ab(false)}else{if(G.onYouTubePlayerAPIReady){X("onYouTubePlayerAPIReady",Z);ab(false)}else{G.onYouTubeIframeAPIReady=Z;ab(true)}}}}function ab(ah){if(!ah&&(typeof G.YT==="object"||t.querySelectorAll('script[src="https://www.youtube.com/iframe_api"]').length>0)){return}var ag=t.createElement("script");ag.src="https://www.youtube.com/iframe_api";var af=t.getElementsByTagName("script");if(af&&af.length){var ai=af[0]; ai.parentNode.insertBefore(ag,ai)}else{if(t.body){t.body.appendChild(ag)}}}Y=null};var H=function(Z,aj){if(!Z){return}if(Z.playerInstance){return}var am=new SC.Widget(Z);Z.playerInstance=am;var W=p.getAttribute(Z,"data-matomo-resource");if(!W){W=p.getAttribute(Z,"data-piwik-resource")}var al=new l("soundcloud",aj,W);K.push(al);var ak=p.getMediaTitle(Z);if(ak){al.setMediaTitle(ak)}var X=false;var Y=null;var ae=!p.getAttribute(Z,"data-piwik-title")&&!p.getAttribute(Z,"data-matomo-title");function ab(){return al.getMediaTitle()&&al.getResource()}var ai=null;function ah(an){am.getCurrentSound(function(ao){if(ao===null){am.getCurrentSoundIndex(function(ap){if(ap>=0){am.getSounds(function(aq){if(ap in aq&&aq[ap]){an(aq[ap])}})}})}else{an(ao)}})}function ag(an){if(!an){return}ai=an.id;if(ae&&!al.getMediaTitle()&&an.title){al.setMediaTitle(an.title)}if(an.uri&&!al.getResource()){al.setResource(an.uri)}if(an.duration){al.setMediaTotalLengthInSeconds(parseInt(Math.floor(an.duration/1000)))}al.trackUpdate() }function ad(an){if(an&&an.soundId&&ai!==an.soundId){ai=an.soundId;al.reset();al.setResource("");al.setMediaTitle("");ae=true;X=false;ah(ag);f("currentId has changed to "+ai);return true}return false}function aa(){am.getDuration(function(an){al.setMediaTotalLengthInSeconds(parseInt(Math.floor(an/1000)))})}function af(an){if("object"===typeof an&&"undefined"!==typeof an.currentPosition){al.setMediaProgressInSeconds(parseInt(Math.floor(an.currentPosition/1000)))}}var ac=false;am.bind(SC.Widget.Events.READY,function(an){ah(ag);am.bind(SC.Widget.Events.PLAY,function(ao){if(!ab()){return}if(ad(ao)){return}aa();af(ao);al.play()});am.bind(SC.Widget.Events.PLAY_PROGRESS,function(ao){if(!ab()){return}if(ad(ao)){return}aa();af(ao);if(ac){return}if(al.isPaused){al.play();return}if(!al.isPlaying){return}if(X){X=false;al.seekFinish()}al.update()});am.bind(SC.Widget.Events.PAUSE,function(ao){if(!ab()){return}if(ad(ao)){return}aa();af(ao);if(al.getMediaProgressInSeconds()&&al.getMediaTotalLengthInSeconds()===al.getMediaProgressInSeconds()){f("ignoring pause event because video is finished"); return}al.pause();ac=true;setTimeout(function(){ac=false},1000)});am.bind(SC.Widget.Events.FINISH,function(ao){if(!ab()){return}if(ad(ao)){return}aa();af(ao);al.finish()});am.bind(SC.Widget.Events.SEEK,function(ao){if(!ab()){return}if(ad(ao)){return}aa();af(ao);al.seekStart();X=true})})};H.scanForMedia=function(ab){function Z(){var ag=[];var ae=ab.getElementsByTagName("iframe");for(var af=0;af<ae.length;af++){if(p.isMediaIgnored(ae[af])){continue}var ah=p.getAttribute(ae[af],"src");if(ah&&ah.indexOf("w.soundcloud.com")>0){ag.push(ae[af])}}return ag}function aa(){return"object"===typeof SC&&SC&&SC.Widget}function ad(){if(!aa()){return}var af=Z();for(var ae=0;ae<af.length;ae++){var ag=p.getAttribute(af[ae],"src");if(ag&&ag.indexOf("w.soundcloud.com")>0){new H(af[ae],g.AUDIO)}}}var Y=Z();if(Y&&Y.length){if(aa()){ad()}else{var X=t.createElement("script");X.src="https://w.soundcloud.com/player/api.js";X.onload=ad;var W=t.getElementsByTagName("script");if(W&&W.length){var ac=W[0];ac.parentNode.insertBefore(X,ac) }else{if(t.body){t.body.appendChild(X)}}}}Y=null};c.registerPlayer("html5",S);c.registerPlayer("vimeo",s);c.registerPlayer("youtube",w);c.registerPlayer("jwplayer",P);c.registerPlayer("soundcloud",H);function C(W){if("undefined"!==typeof W.MediaAnalytics){return}W.MediaAnalytics={enableEvents:true,enableProgress:true,quotaEventRequests:{},disableTrackEvents:function(){this.enableEvents=false},enableTrackEvents:function(){this.enableEvents=true},isTrackEventsEnabled:function(){return a&&this.enableEvents},disableTrackProgress:function(){this.enableProgress=false},enableTrackProgress:function(){this.enableProgress=true},isTrackProgressEnabled:function(){return a&&this.enableProgress}}; arguments[0].MediaAnalytics.enableEvents = false; ;Piwik.trigger("MediaAnalytics.TrackerInitialized",[W])}function z(){if(typeof window==="object"&&"function"===typeof G.piwikMediaAnalyticsAsyncInit){G.piwikMediaAnalyticsAsyncInit()}if(typeof window==="object"&&"function"===typeof G.matomoMediaAnalyticsAsyncInit){G.matomoMediaAnalyticsAsyncInit() }E=true}var B=false;var k=false;function h(){if(!B&&b()){B=true;var X=jwplayer();if("object"===typeof X&&"function"===typeof X.on){X.on("ready",function(Y){c.scanForMedia(document)})}}if(!k&&n()){k=true;flowplayer(function(Z,Y){if(Z){Z.on("ready",function(){c.scanForMedia(document)});Z.on("load",function(){c.scanForMedia(document)})}});var W=flowplayer();if("object"===typeof W&&"function"===typeof W.on){W.on("ready",function(){c.scanForMedia(document)});W.on("load",function(){c.scanForMedia(document)})}}}function Q(){Piwik.DOM.onReady(function(){var W=V();if(!W||!v(W)||!W.length){return}c.scanForMedia(document);h()});Piwik.DOM.onLoad(function(){var W=V();if(!W||!v(W)||!W.length){return}c.scanForMedia(document);h()})}function R(){if("object"===typeof G&&"object"===typeof G.Piwik&&"object"===typeof G.Piwik.MediaAnalytics){return}if("object"===typeof G&&!G.Piwik){return}Piwik.MediaAnalytics={utils:T,url:J,element:p,players:c,rateLimit:L,MediaTracker:l,mediaType:g,scanForMedia:function(Y){c.scanForMedia(Y||document) },setPingInterval:function(Y){if(10>Y){throw new Error("Ping interval needs to be at least ten seconds")}O=true;F=parseInt(Y,10)},removePlayer:function(Y){c.removePlayer(Y)},addPlayer:function(Z,Y){c.registerPlayer(Z,Y)},disableMediaAnalytics:function(){a=false},enableMediaAnalytics:function(){a=true},setMatomoTrackers:function(Y){this.setPiwikTrackers(Y)},setPiwikTrackers:function(Y){if(Y===null){A=null;return}if(!v(Y)){Y=[Y]}A=Y;if(E){Q()}},setMediaTitleFallback:function(Y){if("function"!==typeof Y){throw new Error("The mediaTitleFallback needs to be callback function")}u=Y},getMatomoTrackers:function(){return V()},getPiwikTrackers:function(){return V()},isMediaAnalyticsEnabled:function(){return a},setMaxTrackingTime:function(Y){I=parseInt(Y,10)*1000},enableDebugMode:function(){U=true},enableRateLimit:function(){y=true},disableRateLimit:function(){y=false}};Piwik.addPlugin("MediaAnalytics",{unload:function(){var Z;f("tracker intances mediaTrackerInstances");for(var Y=0;Y<K.length;Y++){Z=K[Y]; if(Z&&Z.timeout){f("before unload");Z.trackUpdate()}}},log:function(aa){var Y=V();if(Y&&Y.length){for(var Z=0;Z<Y.length;Z++){if(typeof Y[Z].MediaAnalytics.quotaEventRequests!=="undefined"&&Object.keys(Y[Z].MediaAnalytics.quotaEventRequests).length>0){Y[Z].MediaAnalytics.quotaEventRequests={}}}}return""}});if(G.Piwik.initialized){var W=Piwik.getAsyncTrackers();var X=0;for(X;X<W.length;X++){C(W[X])}Piwik.on("TrackerSetup",C);Piwik.retryMissedPluginCalls();z();Q();Piwik.on("TrackerAdded",Q)}else{Piwik.on("TrackerSetup",C);Piwik.on("MatomoInitialized",function(){z();Q();Piwik.on("TrackerAdded",Q)})}}if("object"===typeof G.Piwik){R()}else{if("object"!==typeof G.matomoPluginAsyncInit){G.matomoPluginAsyncInit=[]}G.matomoPluginAsyncInit.push(R)}})(); /* END GENERATED: tracker.min.js */ /* GENERATED: tracker.min.js */ (function(){var N=1;var aH=9;var o=10;var P=8;var w=3;var ax=["button","submit","reset"]; /*!! * Copyright (C) 2015 Pavel Savshenko * Copyright (C) 2011 Google Inc. All rights reserved. * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> * Copyright (C) 2009 Joseph Pecoraro * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ ; var i={};i.cssPath=function(aT,aR){if(aT.nodeType!==N){return""}var aQ=[];var aP=aT;while(aP){var aS=i._cssPathStep(aP,!!aR,aP===aT);if(!aS){break}aQ.push(aS);if(aS.optimized){break}aP=aP.parentNode}aQ.reverse();return aQ.join(" > ")};i._cssPathStep=function(a4,aW,a3){if(a4.nodeType!==N){return null}var a2=a4.getAttribute("id");if(aW){if(a2){return new i.DOMNodePathStep(ba(a2),true)}var aQ=a4.nodeName.toLowerCase();if(aQ==="body"||aQ==="head"||aQ==="html"){return new i.DOMNodePathStep(a4.nodeName.toLowerCase(),true)}}var aP=a4.nodeName.toLowerCase();if(a2){return new i.DOMNodePathStep(aP.toLowerCase()+ba(a2),true)}var aX=a4.parentNode;if(!aX||aX.nodeType===aH){return new i.DOMNodePathStep(aP.toLowerCase(),true)}function bg(bi){var bj=bi.getAttribute("class");if(!bj){return[]}return bj.split(/\s+/g).filter(Boolean).map(function(bk){return"$"+bk})}function ba(bi){return"#"+bf(bi)}function bf(bj){if(bb(bj)){return bj}var bi=/^(?:[0-9]|-[0-9-]?)/.test(bj);var bk=bj.length-1;return bj.replace(/./g,function(bm,bl){return((bi&&bl===0)||!aR(bm))?aT(bm,bl===bk):bm })}function aT(bj,bi){return"\\"+a1(bj)+(bi?"":" ")}function a1(bj){var bi=bj.charCodeAt(0).toString(16);if(bi.length===1){bi="0"+bi}return bi}function aR(bi){if(/[a-zA-Z0-9_\-]/.test(bi)){return true}return bi.charCodeAt(0)>=160}function bb(bi){return/^-?[a-zA-Z_][a-zA-Z0-9_\-]*$/.test(bi)}function a6(bi){var bk={},bj;for(bj=0;bj<bi.length;bj++){bk[bi[bj]]=true}return bk}var aZ=bg(a4);var a0=false;var a8=false;var a9=-1;var aV=aX.children;if(aV&&aV.length){for(var a7=0;(a9===-1||!a8)&&a7<aV.length;++a7){var bc=aV[a7];if(bc===a4){a9=a7;continue}if(a8){continue}if(bc.nodeName.toLowerCase()!==aP.toLowerCase()){continue}a0=true;var bh=a6(aZ);var aU=aZ.length;if(aU===0){a8=true;continue}var be=bg(bc);for(var a5=0;a5<be.length;++a5){var aS=be[a5];if(!bh.hasOwnProperty(aS)){continue}delete bh[aS];aU--;if(!aU){a8=true;break}}}}var aY=aP.toLowerCase();if(a3&&aP.toLowerCase()==="input"&&a4.getAttribute("type")&&!a4.getAttribute("id")&&!a4.getAttribute("class")){aY+='[type="'+a4.getAttribute("type")+'"]' }if(a8){aY+=":nth-child("+(a9+1)+")"}else{if(a0){for(var bd=0;bd<aZ.length;bd++){aY+="."+bf(aZ[bd].substr(1))}}}return new i.DOMNodePathStep(aY,false)};i.DOMNodePathStep=function(aQ,aP){this.value=aQ;this.optimized=aP||false};i.DOMNodePathStep.prototype={toString:function(){return this.value}}; /*!! * Copyright 2011 Google Inc. * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ ;var b=function(aS,aP){for(var aR in aP){if(aP.hasOwnProperty(aR)){aS[aR]=aP[aR]}}function aQ(){this.constructor=aS }aQ.prototype=aP.prototype;aS.prototype=new aQ()};var E;if(typeof WebKitMutationObserver!=="undefined"){E=WebKitMutationObserver}else{if(typeof MutationObserver!=="undefined"){E=MutationObserver}}if(typeof E!=="undefined"&&E){var J=(function(){function aP(){this.nodes=[];this.values=[]}aP.prototype.isIndex=function(aQ){return +aQ===aQ>>>0};aP.prototype.nodeId=function(aQ){var aR=aQ[aP.ID_PROP];if(!aR){aR=aQ[aP.ID_PROP]=aP.nextId_++}return aR};aP.prototype.set=function(aQ,aR){var aS=this.nodeId(aQ);this.nodes[aS]=aQ;this.values[aS]=aR};aP.prototype.get=function(aQ){var aR=this.nodeId(aQ);return this.values[aR]};aP.prototype.has=function(aQ){return this.nodeId(aQ) in this.nodes};aP.prototype["delete"]=function(aQ){var aR=this.nodeId(aQ);delete this.nodes[aR];this.values[aR]=undefined};aP.prototype.keys=function(){var aQ=[];for(var aR in this.nodes){if(!this.isIndex(aR)){continue}aQ.push(this.nodes[aR])}return aQ};aP.ID_PROP="__mutation_summary_node_map_id__";aP.nextId_=1;return aP})();var aC; (function(aP){aP[aP.STAYED_OUT=0]="STAYED_OUT";aP[aP.ENTERED=1]="ENTERED";aP[aP.STAYED_IN=2]="STAYED_IN";aP[aP.REPARENTED=3]="REPARENTED";aP[aP.REORDERED=4]="REORDERED";aP[aP.EXITED=5]="EXITED"})(aC||(aC={}));function B(aP){return aP===aC.ENTERED||aP===aC.EXITED}var ab=(function(){function aP(aW,aV,aR,aT,aS,aU,aQ,aX){if(aV===void 0){aV=false}if(aR===void 0){aR=false}if(aT===void 0){aT=false}if(aS===void 0){aS=null}if(aU===void 0){aU=false}if(aQ===void 0){aQ=null}if(aX===void 0){aX=null}this.node=aW;this.childList=aV;this.attributes=aR;this.characterData=aT;this.oldParentNode=aS;this.added=aU;this.attributeOldValues=aQ;this.characterDataOldValue=aX;this.isCaseInsensitive=this.node.nodeType===N&&this.node instanceof HTMLElement&&this.node.ownerDocument instanceof HTMLDocument}aP.prototype.getAttributeOldValue=function(aQ){if(!this.attributeOldValues){return undefined}if(this.isCaseInsensitive){aQ=aQ.toLowerCase()}return this.attributeOldValues[aQ]};aP.prototype.getAttributeNamesMutated=function(){var aR=[]; if(!this.attributeOldValues){return aR}for(var aQ in this.attributeOldValues){aR.push(aQ)}return aR};aP.prototype.attributeMutated=function(aR,aQ){this.attributes=true;this.attributeOldValues=this.attributeOldValues||{};if(aR in this.attributeOldValues){return}this.attributeOldValues[aR]=aQ};aP.prototype.characterDataMutated=function(aQ){if(this.characterData){return}this.characterData=true;this.characterDataOldValue=aQ};aP.prototype.removedFromParent=function(aQ){this.childList=true;if(this.added||this.oldParentNode){this.added=false}else{this.oldParentNode=aQ}};aP.prototype.insertedIntoParent=function(){this.childList=true;this.added=true};aP.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode){return this.oldParentNode}if(this.added){return null}}return this.node.parentNode};return aP})();var ao=(function(){function aP(){this.added=new J();this.removed=new J();this.maybeMoved=new J();this.oldPrevious=new J();this.moved=undefined}return aP})();var W=(function(aQ){b(aP,aQ); function aP(aU,aS){aQ.call(this);this.rootNode=aU;this.reachableCache=undefined;this.wasReachableCache=undefined;this.anyParentsChanged=false;this.anyAttributesChanged=false;this.anyCharacterDataChanged=false;for(var aR=0;aR<aS.length;aR++){var aT=aS[aR];switch(aT.type){case"childList":this.anyParentsChanged=true;for(var aV=0;aV<aT.removedNodes.length;aV++){var aW=aT.removedNodes[aV];this.getChange(aW).removedFromParent(aT.target)}for(var aV=0;aV<aT.addedNodes.length;aV++){var aW=aT.addedNodes[aV];this.getChange(aW).insertedIntoParent()}break;case"attributes":this.anyAttributesChanged=true;var aX=this.getChange(aT.target);aX.attributeMutated(aT.attributeName,aT.oldValue);break;case"characterData":this.anyCharacterDataChanged=true;var aX=this.getChange(aT.target);aX.characterDataMutated(aT.oldValue);break}}}aP.prototype.getChange=function(aR){var aS=this.get(aR);if(!aS){aS=new ab(aR);this.set(aR,aS)}return aS};aP.prototype.getOldParent=function(aR){var aS=this.get(aR);return aS?aS.getOldParent():aR.parentNode };aP.prototype.getIsReachable=function(aR){if(aR===this.rootNode){return true}if(!aR){return false}this.reachableCache=this.reachableCache||new J();var aS=this.reachableCache.get(aR);if(aS===undefined){aS=this.getIsReachable(aR.parentNode);this.reachableCache.set(aR,aS)}return aS};aP.prototype.getWasReachable=function(aR){if(aR===this.rootNode){return true}if(!aR){return false}this.wasReachableCache=this.wasReachableCache||new J();var aS=this.wasReachableCache.get(aR);if(aS===undefined){aS=this.getWasReachable(this.getOldParent(aR));this.wasReachableCache.set(aR,aS)}return aS};aP.prototype.reachabilityChange=function(aR){if(this.getIsReachable(aR)){return this.getWasReachable(aR)?aC.STAYED_IN:aC.ENTERED}return this.getWasReachable(aR)?aC.EXITED:aC.STAYED_OUT};return aP})(J);var K=(function(){function aP(aR,aQ,aS,aU,aT){this.rootNode=aR;this.mutations=aQ;this.selectors=aS;this.calcReordered=aU;this.calcOldPreviousSibling=aT;this.treeChanges=new W(aR,aQ);this.entered=[];this.exited=[];this.stayedIn=new J(); this.visited=new J();this.childListChangeMap=undefined;this.characterDataOnly=undefined;this.matchCache=undefined;this.processMutations()}aP.prototype.processMutations=function(){if(!this.treeChanges.anyParentsChanged&&!this.treeChanges.anyAttributesChanged){return}var aQ=this.treeChanges.keys();for(var aR=0;aR<aQ.length;aR++){this.visitNode(aQ[aR],undefined)}};aP.prototype.visitNode=function(aT,aR){if(this.visited.has(aT)){return}this.visited.set(aT,true);var aV=this.treeChanges.get(aT);var aS=aR;if((aV&&aV.childList)||aS==undefined){aS=this.treeChanges.reachabilityChange(aT)}if(aS===aC.STAYED_OUT){return}this.matchabilityChange(aT);if(aS===aC.ENTERED){this.entered.push(aT)}else{if(aS===aC.EXITED){this.exited.push(aT);this.ensureHasOldPreviousSiblingIfNeeded(aT)}else{if(aS===aC.STAYED_IN){var aQ=aC.STAYED_IN;if(aV&&aV.childList){if(aV.oldParentNode!==aT.parentNode){aQ=aC.REPARENTED;this.ensureHasOldPreviousSiblingIfNeeded(aT)}else{if(this.calcReordered&&this.wasReordered(aT)){aQ=aC.REORDERED }}}this.stayedIn.set(aT,aQ)}}}if(aS===aC.STAYED_IN){return}for(var aU=aT.firstChild;aU;aU=aU.nextSibling){this.visitNode(aU,aS)}};aP.prototype.ensureHasOldPreviousSiblingIfNeeded=function(aS){if(!this.calcOldPreviousSibling){return}this.processChildlistChanges();var aQ=aS.parentNode;var aR=this.treeChanges.get(aS);if(aR&&aR.oldParentNode){aQ=aR.oldParentNode}var aT=this.childListChangeMap.get(aQ);if(!aT){aT=new ao();this.childListChangeMap.set(aQ,aT)}if(!aT.oldPrevious.has(aS)){aT.oldPrevious.set(aS,aS.previousSibling)}};aP.prototype.getChanged=function(aS,aU,aX){this.selectors=aU;this.characterDataOnly=aX;for(var aT=0;aT<this.entered.length;aT++){var aV=this.entered[aT];var aW=this.matchabilityChange(aV);if(aW===aC.ENTERED||aW===aC.STAYED_IN){aS.added.push(aV)}}var aQ=this.stayedIn.keys();for(var aT=0;aT<aQ.length;aT++){var aV=aQ[aT];var aW=this.matchabilityChange(aV);if(aW===aC.ENTERED){aS.added.push(aV)}else{if(aW===aC.EXITED){aS.removed.push(aV)}else{if(aW===aC.STAYED_IN&&(aS.reparented||aS.reordered)){var aR=this.stayedIn.get(aV); if(aS.reparented&&aR===aC.REPARENTED){aS.reparented.push(aV)}else{if(aS.reordered&&aR===aC.REORDERED){aS.reordered.push(aV)}}}}}}for(var aT=0;aT<this.exited.length;aT++){var aV=this.exited[aT];var aW=this.matchabilityChange(aV);if(aW===aC.EXITED||aW===aC.STAYED_IN){aS.removed.push(aV)}}};aP.prototype.getOldParentNode=function(aR){var aS=this.treeChanges.get(aR);if(aS&&aS.childList){return aS.oldParentNode?aS.oldParentNode:null}var aQ=this.treeChanges.reachabilityChange(aR);if(aQ===aC.STAYED_OUT||aQ===aC.ENTERED){throw Error("getOldParentNode requested on invalid node.")}return aR.parentNode};aP.prototype.getOldPreviousSibling=function(aS){var aQ=aS.parentNode;var aR=this.treeChanges.get(aS);if(aR&&aR.oldParentNode){aQ=aR.oldParentNode}var aT=this.childListChangeMap.get(aQ);if(!aT){throw Error("getOldPreviousSibling requested on invalid node.")}return aT.oldPrevious.get(aS)};aP.prototype.getOldAttribute=function(aR,aQ){var aT=this.treeChanges.get(aR);if(!aT||!aT.attributes){throw Error("getOldAttribute requested on invalid node.") }var aS=aT.getAttributeOldValue(aQ);if(aS===undefined){throw Error("getOldAttribute requested for unchanged attribute name.")}return aS};aP.prototype.attributeChangedNodes=function(aY){if(!this.treeChanges.anyAttributesChanged){return{}}var aT;var aV;if(aY){aT={};aV={};for(var aZ=0;aZ<aY.length;aZ++){var a0=aY[aZ];aT[a0]=true;aV[a0.toLowerCase()]=a0}}var a2={};var aR=this.treeChanges.keys();for(var aZ=0;aZ<aR.length;aZ++){var aU=aR[aZ];var a1=this.treeChanges.get(aU);if(!a1.attributes){continue}if(aC.STAYED_IN!==this.treeChanges.reachabilityChange(aU)||aC.STAYED_IN!==this.matchabilityChange(aU)){continue}var aX=aU;var aS=a1.getAttributeNamesMutated();for(var aW=0;aW<aS.length;aW++){var a0=aS[aW];if(aT&&!aT[a0]&&!(a1.isCaseInsensitive&&aV[a0])){continue}var aQ=a1.getAttributeOldValue(a0);if(aQ===aX.getAttribute(a0)){continue}if(aV&&a1.isCaseInsensitive){a0=aV[a0]}a2[a0]=a2[a0]||[];a2[a0].push(aX)}}return a2};aP.prototype.getOldCharacterData=function(aQ){var aR=this.treeChanges.get(aQ);if(!aR||!aR.characterData){throw Error("getOldCharacterData requested on invalid node.") }return aR.characterDataOldValue};aP.prototype.getCharacterDataChanged=function(){if(!this.treeChanges.anyCharacterDataChanged){return[]}var aR=this.treeChanges.keys();var aQ=[];for(var aS=0;aS<aR.length;aS++){var aT=aR[aS];if(aC.STAYED_IN!==this.treeChanges.reachabilityChange(aT)){continue}var aU=this.treeChanges.get(aT);if(!aU.characterData||aT.textContent==aU.characterDataOldValue){continue}aQ.push(aT)}return aQ};aP.prototype.computeMatchabilityChange=function(aR,aT){if(!this.matchCache){this.matchCache=[]}if(!this.matchCache[aR.uid]){this.matchCache[aR.uid]=new J()}var aS=this.matchCache[aR.uid];var aQ=aS.get(aT);if(aQ===undefined){aQ=aR.matchabilityChange(aT,this.treeChanges.get(aT));aS.set(aT,aQ)}return aQ};aP.prototype.matchabilityChange=function(aU){var aV=this;if(this.characterDataOnly){switch(aU.nodeType){case P:case w:return aC.STAYED_IN;default:return aC.STAYED_OUT}}if(!this.selectors){return aC.STAYED_IN}if(aU.nodeType!==N){return aC.STAYED_OUT}var aT=aU;var aR=this.selectors.map(function(aW){return aV.computeMatchabilityChange(aW,aT) });var aQ=aC.STAYED_OUT;var aS=0;while(aQ!==aC.STAYED_IN&&aS<aR.length){switch(aR[aS]){case aC.STAYED_IN:aQ=aC.STAYED_IN;break;case aC.ENTERED:if(aQ===aC.EXITED){aQ=aC.STAYED_IN}else{aQ=aC.ENTERED}break;case aC.EXITED:if(aQ===aC.ENTERED){aQ=aC.STAYED_IN}else{aQ=aC.EXITED}break}aS++}return aQ};aP.prototype.getChildlistChange=function(aQ){var aR=this.childListChangeMap.get(aQ);if(!aR){aR=new ao();this.childListChangeMap.set(aQ,aR)}return aR};aP.prototype.processChildlistChanges=function(){if(this.childListChangeMap){return}this.childListChangeMap=new J();for(var aT=0;aT<this.mutations.length;aT++){var aR=this.mutations[aT];if(aR.type!="childList"){continue}if(this.treeChanges.reachabilityChange(aR.target)!==aC.STAYED_IN&&!this.calcOldPreviousSibling){continue}var aW=this.getChildlistChange(aR.target);var aQ=aR.previousSibling;function aV(aY,aX){if(!aY||aW.oldPrevious.has(aY)||aW.added.has(aY)||aW.maybeMoved.has(aY)){return}if(aX&&(aW.added.has(aX)||aW.maybeMoved.has(aX))){return}aW.oldPrevious.set(aY,aX) }for(var aS=0;aS<aR.removedNodes.length;aS++){var aU=aR.removedNodes[aS];aV(aU,aQ);if(aW.added.has(aU)){aW.added["delete"](aU)}else{aW.removed.set(aU,true);aW.maybeMoved["delete"](aU)}aQ=aU}aV(aR.nextSibling,aQ);for(var aS=0;aS<aR.addedNodes.length;aS++){var aU=aR.addedNodes[aS];if(aW.removed.has(aU)){aW.removed["delete"](aU);aW.maybeMoved.set(aU,true)}else{aW.added.set(aU,true)}}}};aP.prototype.wasReordered=function(aR){if(!this.treeChanges.anyParentsChanged){return false}this.processChildlistChanges();var aS=aR.parentNode;var aX=this.treeChanges.get(aR);if(aX&&aX.oldParentNode){aS=aX.oldParentNode}var aV=this.childListChangeMap.get(aS);if(!aV){return false}if(aV.moved){return aV.moved.get(aR)}aV.moved=new J();var aQ=new J();function aU(a0){if(!a0){return false}if(!aV.maybeMoved.has(a0)){return false}var a1=aV.moved.get(a0);if(a1!==undefined){return a1}if(aQ.has(a0)){a1=true}else{aQ.set(a0,true);a1=aZ(a0)!==aY(a0)}if(aQ.has(a0)){aQ["delete"](a0);aV.moved.set(a0,a1)}else{a1=aV.moved.get(a0) }return a1}var aW=new J();function aY(a1){var a0=aW.get(a1);if(a0!==undefined){return a0}a0=aV.oldPrevious.get(a1);while(a0&&(aV.removed.has(a0)||aU(a0))){a0=aY(a0)}if(a0===undefined){a0=a1.previousSibling}aW.set(a1,a0);return a0}var aT=new J();function aZ(a1){if(aT.has(a1)){return aT.get(a1)}var a0=a1.previousSibling;while(a0&&(aV.added.has(a0)||aU(a0))){a0=a0.previousSibling}aT.set(a1,a0);return a0}aV.maybeMoved.keys().forEach(aU);return aV.moved.get(aR)};return aP})();var ac=(function(){function aP(aQ,aT){var aV=this;this.projection=aQ;this.added=[];this.removed=[];this.reparented=aT.all||aT.element||aT.characterData?[]:undefined;this.reordered=aT.all?[]:undefined;aQ.getChanged(this,aT.elementFilter,aT.characterData);if(aT.all||aT.attribute||aT.attributeList){var aS=aT.attribute?[aT.attribute]:aT.attributeList;var aR=aQ.attributeChangedNodes(aS);if(aT.attribute){this.valueChanged=aR[aT.attribute]||[]}else{this.attributeChanged=aR;if(aT.attributeList){aT.attributeList.forEach(function(aW){if(!aV.attributeChanged.hasOwnProperty(aW)){aV.attributeChanged[aW]=[] }})}}}if(aT.all||aT.characterData){var aU=aQ.getCharacterDataChanged();if(aT.characterData){this.valueChanged=aU}else{this.characterDataChanged=aU}}if(this.reordered){this.getOldPreviousSibling=aQ.getOldPreviousSibling.bind(aQ)}}aP.prototype.getOldParentNode=function(aQ){return this.projection.getOldParentNode(aQ)};aP.prototype.getOldAttribute=function(aR,aQ){return this.projection.getOldAttribute(aR,aQ)};aP.prototype.getOldCharacterData=function(aQ){return this.projection.getOldCharacterData(aQ)};aP.prototype.getOldPreviousSibling=function(aQ){return this.projection.getOldPreviousSibling(aQ)};return aP})();var aq=/[a-zA-Z_]+/;var aw=/[a-zA-Z0-9_\-]+/;function R(aP){return'"'+aP.replace(/"/,'\\"')+'"'}var ap=(function(){function aP(){}aP.prototype.matches=function(aQ){if(aQ===null){return false}if(this.attrValue===undefined){return true}if(!this.contains){return this.attrValue==aQ}var aS=aQ.split(" ");for(var aR=0;aR<aS.length;aR++){if(this.attrValue===aS[aR]){return true}}return false}; aP.prototype.toString=function(){if(this.attrName==="class"&&this.contains){return"."+this.attrValue}if(this.attrName==="id"&&!this.contains){return"#"+this.attrValue}if(this.contains){return"["+this.attrName+"~="+R(this.attrValue)+"]"}if("attrValue" in this){return"["+this.attrName+"="+R(this.attrValue)+"]"}return"["+this.attrName+"]"};return aP})();var aG=(function(){function aP(){this.uid=aP.nextUid++;this.qualifiers=[]}Object.defineProperty(aP.prototype,"caseInsensitiveTagName",{get:function(){return this.tagName.toUpperCase()},enumerable:true,configurable:true});Object.defineProperty(aP.prototype,"selectorString",{get:function(){return this.tagName+this.qualifiers.join("")},enumerable:true,configurable:true});aP.prototype.isMatching=function(aQ){return aQ[aP.matchesSelector](this.selectorString)};aP.prototype.wasMatching=function(aS,aY,aV){if(!aY||!aY.attributes){return aV}var aT=aY.isCaseInsensitive?this.caseInsensitiveTagName:this.tagName;if(aT!=="*"&&aT!==aS.tagName){return false }var aR=[];var aW=false;for(var aU=0;aU<this.qualifiers.length;aU++){var aX=this.qualifiers[aU];var aQ=aY.getAttributeOldValue(aX.attrName);aR.push(aQ);aW=aW||(aQ!==undefined)}if(!aW){return aV}for(var aU=0;aU<this.qualifiers.length;aU++){var aX=this.qualifiers[aU];var aQ=aR[aU];if(aQ===undefined){aQ=aS.getAttribute(aX.attrName)}if(!aX.matches(aQ)){return false}}return true};aP.prototype.matchabilityChange=function(aQ,aS){var aR=this.isMatching(aQ);if(aR){return this.wasMatching(aQ,aS,aR)?aC.STAYED_IN:aC.ENTERED}else{return this.wasMatching(aQ,aS,aR)?aC.EXITED:aC.STAYED_OUT}};aP.parseSelectors=function(a3){var aV=[];var aX;var aZ;function a1(){if(aX){if(aZ){aX.qualifiers.push(aZ);aZ=undefined}aV.push(aX)}aX=new aP()}function a0(){if(aZ){aX.qualifiers.push(aZ)}aZ=new ap()}var bf=/\s/;var aQ;var aR="Invalid or unsupported selector syntax.";var aY=1;var a8=2;var a2=3;var a9=4;var bd=5;var a6=6;var aS=7;var bb=8;var aT=9;var a7=10;var be=11;var aW=12;var a5=13;var a4=14;var aU=aY;var ba=0;while(ba<a3.length){var bc=a3[ba++]; switch(aU){case aY:if(bc.match(aq)){a1();aX.tagName=bc;aU=a8;break}if(bc=="*"){a1();aX.tagName="*";aU=a2;break}if(bc=="."){a1();a0();aX.tagName="*";aZ.attrName="class";aZ.contains=true;aU=a9;break}if(bc=="#"){a1();a0();aX.tagName="*";aZ.attrName="id";aU=a9;break}if(bc=="["){a1();a0();aX.tagName="*";aZ.attrName="";aU=a6;break}if(bc.match(bf)){break}throw Error(aR);case a8:if(bc.match(aw)){aX.tagName+=bc;break}if(bc=="."){a0();aZ.attrName="class";aZ.contains=true;aU=a9;break}if(bc=="#"){a0();aZ.attrName="id";aU=a9;break}if(bc=="["){a0();aZ.attrName="";aU=a6;break}if(bc.match(bf)){aU=a4;break}if(bc==","){aU=aY;break}throw Error(aR);case a2:if(bc=="."){a0();aZ.attrName="class";aZ.contains=true;aU=a9;break}if(bc=="#"){a0();aZ.attrName="id";aU=a9;break}if(bc=="["){a0();aZ.attrName="";aU=a6;break}if(bc.match(bf)){aU=a4;break}if(bc==","){aU=aY;break}throw Error(aR);case a9:if(bc.match(aq)){aZ.attrValue=bc;aU=bd;break}throw Error(aR);case bd:if(bc.match(aw)){aZ.attrValue+=bc;break}if(bc=="."){a0(); aZ.attrName="class";aZ.contains=true;aU=a9;break}if(bc=="#"){a0();aZ.attrName="id";aU=a9;break}if(bc=="["){a0();aU=a6;break}if(bc.match(bf)){aU=a4;break}if(bc==","){aU=aY;break}throw Error(aR);case a6:if(bc.match(aq)){aZ.attrName=bc;aU=aS;break}if(bc.match(bf)){break}throw Error(aR);case aS:if(bc.match(aw)){aZ.attrName+=bc;break}if(bc.match(bf)){aU=bb;break}if(bc=="~"){aZ.contains=true;aU=aT;break}if(bc=="="){aZ.attrValue="";aU=be;break}if(bc=="]"){aU=a2;break}throw Error(aR);case bb:if(bc=="~"){aZ.contains=true;aU=aT;break}if(bc=="="){aZ.attrValue="";aU=be;break}if(bc=="]"){aU=a2;break}if(bc.match(bf)){break}throw Error(aR);case aT:if(bc=="="){aZ.attrValue="";aU=be;break}throw Error(aR);case a7:if(bc=="]"){aU=a2;break}if(bc.match(bf)){break}throw Error(aR);case be:if(bc.match(bf)){break}if(bc=='"'||bc=="'"){aQ=bc;aU=a5;break}aZ.attrValue+=bc;aU=aW;break;case aW:if(bc.match(bf)){aU=a7;break}if(bc=="]"){aU=a2;break}if(bc=="'"||bc=='"'){throw Error(aR)}aZ.attrValue+=bc;break;case a5:if(bc==aQ){aU=a7; break}aZ.attrValue+=bc;break;case a4:if(bc.match(bf)){break}if(bc==","){aU=aY;break}throw Error(aR)}}switch(aU){case aY:case a8:case a2:case bd:case a4:a1();break;default:throw Error(aR)}if(!aV.length){throw Error(aR)}return aV};aP.nextUid=1;aP.matchesSelector=(function(){var aQ=document.createElement("div");if(typeof aQ.webkitMatchesSelector==="function"){return"webkitMatchesSelector"}if(typeof aQ.mozMatchesSelector==="function"){return"mozMatchesSelector"}if(typeof aQ.msMatchesSelector==="function"){return"msMatchesSelector"}return"matchesSelector"})();return aP})();var m=/^([a-zA-Z:_]+[a-zA-Z0-9_\-:\.]*)$/;function j(aP){if(typeof aP!="string"){throw Error("Invalid request opion. attribute must be a non-zero length string.")}aP=aP.trim();if(!aP){throw Error("Invalid request opion. attribute must be a non-zero length string.")}if(!aP.match(m)){throw Error("Invalid request option. invalid attribute name: "+aP)}return aP}function az(aV){if(!aV.trim().length){throw Error("Invalid request option: elementAttributes must contain at least one attribute.") }var aU={};var aP={};var aT=aV.split(/\s+/);for(var aR=0;aR<aT.length;aR++){var aQ=aT[aR];if(!aQ){continue}var aQ=j(aQ);var aS=aQ.toLowerCase();if(aU[aS]){throw Error("Invalid request option: observing multiple case variations of the same attribute is not supported.")}aP[aQ]=true;aU[aS]=true}return Object.keys(aP)}function X(aQ){var aP={};aQ.forEach(function(aR){aR.qualifiers.forEach(function(aS){aP[aS.attrName]=true})});return Object.keys(aP)}var d=(function(){function aP(aQ){var aR=this;this.connected=false;this.options=aP.validateOptions(aQ);this.observerOptions=aP.createObserverOptions(this.options.queries);this.root=this.options.rootNode;this.callback=this.options.callback;this.elementFilter=Array.prototype.concat.apply([],this.options.queries.map(function(aS){return aS.elementFilter?aS.elementFilter:[]}));if(!this.elementFilter.length){this.elementFilter=undefined}this.calcReordered=this.options.queries.some(function(aS){return aS.all});this.queryValidators=[];if(aP.createQueryValidator){this.queryValidators=this.options.queries.map(function(aS){return aP.createQueryValidator(aR.root,aS) })}this.observer=new E(function(aS){aR.observerCallback(aS)});this.reconnect()}aP.createObserverOptions=function(aR){var aT={childList:true,subtree:true};var aQ;function aS(aU){if(aT.attributes&&!aQ){return}aT.attributes=true;aT.attributeOldValue=true;if(!aU){aQ=undefined;return}aQ=aQ||{};aU.forEach(function(aV){aQ[aV]=true;aQ[aV.toLowerCase()]=true})}aR.forEach(function(aV){if(aV.characterData){aT.characterData=true;aT.characterDataOldValue=true;return}if(aV.all){aS();aT.characterData=true;aT.characterDataOldValue=true;return}if(aV.attribute){aS([aV.attribute.trim()]);return}var aU=X(aV.elementFilter).concat(aV.attributeList||[]);if(aU.length){aS(aU)}});if(aQ){aT.attributeFilter=Object.keys(aQ)}return aT};aP.validateOptions=function(aQ){for(var aW in aQ){if(!(aW in aP.optionKeys)){throw Error("Invalid option: "+aW)}}if(typeof aQ.callback!=="function"){throw Error("Invalid options: callback is required and must be a function")}if(!aQ.queries||!aQ.queries.length){throw Error("Invalid options: queries must contain at least one query request object.") }var aU={callback:aQ.callback,rootNode:aQ.rootNode||document,observeOwnChanges:!!aQ.observeOwnChanges,oldPreviousSibling:!!aQ.oldPreviousSibling,queries:[]};for(var aR=0;aR<aQ.queries.length;aR++){var aT=aQ.queries[aR];if(aT.all){if(Object.keys(aT).length>1){throw Error("Invalid request option. all has no options.")}aU.queries.push({all:true});continue}if("attribute" in aT){var aV={attribute:j(aT.attribute)};aV.elementFilter=aG.parseSelectors("*["+aV.attribute+"]");if(Object.keys(aT).length>1){throw Error("Invalid request option. attribute has no options.")}aU.queries.push(aV);continue}if("element" in aT){var aS=Object.keys(aT).length;var aV={element:aT.element,elementFilter:aG.parseSelectors(aT.element)};if(aT.hasOwnProperty("elementAttributes")){aV.attributeList=az(aT.elementAttributes);aS--}if(aS>1){throw Error("Invalid request option. element only allows elementAttributes option.")}aU.queries.push(aV);continue}if(aT.characterData){if(Object.keys(aT).length>1){throw Error("Invalid request option. characterData has no options.") }aU.queries.push({characterData:true});continue}throw Error("Invalid request option. Unknown query request.")}return aU};aP.prototype.createSummaries=function(aR){if(!aR||!aR.length){return[]}var aQ=new K(this.root,aR,this.elementFilter,this.calcReordered,this.options.oldPreviousSibling);var aT=[];for(var aS=0;aS<this.options.queries.length;aS++){aT.push(new ac(aQ,this.options.queries[aS]))}return aT};aP.prototype.checkpointQueryValidators=function(){this.queryValidators.forEach(function(aQ){if(aQ){aQ.recordPreviousState()}})};aP.prototype.runQueryValidators=function(aQ){this.queryValidators.forEach(function(aS,aR){if(aS){aS.validate(aQ[aR])}})};aP.prototype.changesToReport=function(aQ){return aQ.some(function(aR){var aU=["added","removed","reordered","reparented","valueChanged","characterDataChanged"];if(aU.some(function(aV){return aR[aV]&&aR[aV].length})){return true}if(aR.attributeChanged){var aT=Object.keys(aR.attributeChanged);var aS=aT.some(function(aV){return !!aR.attributeChanged[aV].length });if(aS){return true}}return false})};aP.prototype.observerCallback=function(aQ){if(!this.options.observeOwnChanges){this.observer.disconnect()}var aR=this.createSummaries(aQ);this.runQueryValidators(aR);if(this.options.observeOwnChanges){this.checkpointQueryValidators()}if(this.changesToReport(aR)){this.callback(aR)}if(!this.options.observeOwnChanges&&this.connected){this.checkpointQueryValidators();this.observer.observe(this.root,this.observerOptions)}};aP.prototype.reconnect=function(){if(this.connected){throw Error("Already connected")}this.observer.observe(this.root,this.observerOptions);this.connected=true;this.checkpointQueryValidators()};aP.prototype.takeSummaries=function(){if(!this.connected){throw Error("Not connected")}var aQ=this.createSummaries(this.observer.takeRecords());return this.changesToReport(aQ)?aQ:undefined};aP.prototype.disconnect=function(){var aQ=this.takeSummaries();this.observer.disconnect();this.connected=false;return aQ};aP.NodeMap=J;aP.parseElementFilter=aG.parseSelectors; aP.optionKeys={callback:true,queries:true,rootNode:true,oldPreviousSibling:true,observeOwnChanges:true};return aP})();var y=(function(){function aP(aV,aW,aQ){var aU=this;this.target=aV;this.mirror=aW;this.nextId=1;this.knownNodes=new d.NodeMap();var aX=this.serializeNode(aV).id;var aS=[];for(var aR=aV.firstChild;aR;aR=aR.nextSibling){aS.push(this.serializeNode(aR,true))}this.mirror.initialize(aX,aS);var aY=this;var aT=[{all:true}];if(aQ){aT=aT.concat(aQ)}this.mutationSummary=new d({rootNode:aV,callback:function(aZ){aU.applyChanged(aZ)},queries:aT})}aP.prototype.disconnect=function(){if(this.mutationSummary){this.mutationSummary.disconnect();this.mutationSummary=undefined}};aP.prototype.rememberNode=function(aQ){var aR=this.nextId++;this.knownNodes.set(aQ,aR);return aR};aP.prototype.forgetNode=function(aQ){this.knownNodes["delete"](aQ)};aP.prototype.serializeNode=function(aT,aU,a3,a1){if(aT===null){return null}var aR=this.knownNodes.get(aT);if(aR!==undefined){return{id:aR}}var aX={nodeType:aT.nodeType,id:this.rememberNode(aT)}; var a2=aN.shouldMaskElementRecursive(aT,a3,a1);a3=a2.isIgnoredField;a1=a2.isIgnoredContent;switch(aX.nodeType){case o:var a0=aT;aX.name=a0.name;aX.publicId=a0.publicId;aX.systemId=a0.systemId;break;case P:aX.textContent=" ";break;case w:if(aT.textContent&&!a1&&aN.shouldMaskContent(aT,true)){aX.textContent=aN.maskFormField(aT.textContent)}else{aX.textContent=aN.getMaskedTextContent(aT,a3,a1)}break;case N:aX.tagName=aT.tagName;aX.attributes={};if("SCRIPT"===aX.tagName||"NOSCRIPT"===aX.tagName){break}if("STYLE"===aX.tagName&&(("string"===typeof aT.innerText&&aT.innerText.trim()==="")||("string"===typeof aT.innerHTML&&aT.innerHTML.trim()===""))&&O.styleSheets&&O.styleSheets.length){var aQ;for(var aV=0;aV<O.styleSheets.length;aV++){if(O.styleSheets[aV]){var aZ=O.styleSheets[aV];if(aZ&&aZ.ownerNode&&!aZ.href&&aZ.ownerNode===aT&&aZ.cssRules&&aZ.cssRules.length){var aY="";for(var aW=0;aW<aZ.cssRules.length;aW++){if(aZ.cssRules[aW].cssText){aY+=aZ.cssRules[aW].cssText+" "}}aQ=O.createTextNode(aY); aX.childNodes=[this.serializeNode(aQ,false,a3,a1)];break}}}if(aQ){break}}aX.attributes=this.getAttributesFromNode(aT,a3,a1);if(aU&&aT.childNodes.length){aX.childNodes=[];for(var aS=aT.firstChild;aS;aS=aS.nextSibling){aX.childNodes.push(this.serializeNode(aS,true,a3,a1))}}break}return aX};aP.prototype.getAttributesFromNode=function(aU,a4,a0){a0=a0||false;a4=a4||false;var aV={};var aY;for(var aW=0;aW<aU.attributes.length;aW++){var aZ=aU.attributes[aW];if(aZ&&"value" in aZ){aY=aZ.value}else{aY=""}var aX=false;if(aZ.name==="value"&&aU.tagName==="INPUT"&&aU.value&&(!aU.type||String(aU.type).toLowerCase()==="text"||String(aU.type).toLowerCase()==="number")){aY=aU.value}if(aZ.name==="src"&&(aU.tagName==="IMG"||(aU.tagName==="INPUT"&&aU.type==="image"))&&aN.shouldMaskContent(aU,true)){if(!aN.hasAttribute(aU,"height")){aV.height=aN.getHeight(aU)}if(!aN.hasAttribute(aU,"width")){aV.width=aN.getWidth(aU)}aY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFhAJ/wlseKgAAAABJRU5ErkJggg=="; aV.src=aY}if(aZ.name==="value"&&aU.tagName==="INPUT"&&aU.value&&String(aU.type).toLowerCase()==="password"){aX=true}if("INPUT"===aU.tagName&&aU.type&&aU.type==="hidden"&&"value"===aZ.name){aV[aZ.name]=""}else{if("INPUT"===aU.tagName&&"value"===aZ.name&&(!aI||a4||aN.shouldMaskField(aU,false))){aV[aZ.name]=aN.maskFormField(aY,aX)}else{if(("title"===aZ.name||"alt"===aZ.name||"label"===aZ.name||"placeholder"===aZ.name)&&(a0||aN.shouldMaskContent(aU,false))){aV[aZ.name]=aN.maskFormField(aY)}else{aV[aZ.name]=aY}}}if("IFRAME"===aU.tagName&&aZ.name==="srcdoc"){aV[aZ.name]=""}}if("IFRAME"===aU.tagName&&(aU.scrollWidth<=1||aU.scrollHeight<=1)){aV.src="about:blank"}else{if("META"===aU.tagName){if(aU.attributes.property&&String(aU.attributes.property.value).indexOf("og:")>=0){aV={}}else{if(aU.attributes.name){var a3=String(aU.attributes.name.value).toLowerCase();if(a3.indexOf("twitter:")>=0||a3.indexOf("description")>=0||a3.indexOf("keywords")>=0){aV={}}}}}else{if("LINK"===aU.tagName){if(aU.attributes.rel){var a2=String(aU.attributes.rel.value).toLowerCase(); var a1=["icon","preload","preconnect","dns-prefetch","next","prev","alternate","search"];if(a1.indexOf(a2)>=0){aV={}}}if(aU.attributes.href){var aT=String(aU.attributes.href.value).toLowerCase().indexOf(".scr.kaspersky-labs.com");if(aT>5&&aT<=20){aV={}}}if(aU.href){if(typeof I.URL==="function"){var aS=ak.onCssLoaded(aU.href);var aQ=3;if(!aS){aR(aU.href);function aR(a5){if(aQ>0){setTimeout(function(){aQ--;aS=ak.onCssLoaded(aU.href);if(!aS){aR(aU.href)}},300)}}}}aV.url=aU.href}}}}return aV};aP.prototype.serializeAddedAndMoved=function(aT,aQ,aU){var aW=this;var aS=aT.concat(aQ).concat(aU);var aV=new d.NodeMap();aS.forEach(function(aZ){var aY=aZ.parentNode;var aX=aV.get(aY);if(!aX){aX=new d.NodeMap();aV.set(aY,aX)}aX.set(aZ,true)});var aR=[];aV.keys().forEach(function(aY){var aX=aV.get(aY);var a0=aX.keys();while(a0.length){var aZ=a0[0];while(aZ.previousSibling&&aX.has(aZ.previousSibling)){aZ=aZ.previousSibling}while(aZ&&aX.has(aZ)){var a1=aW.serializeNode(aZ);a1.previousSibling=aW.serializeNode(aZ.previousSibling); a1.parentNode=aW.serializeNode(aZ.parentNode);aR.push(a1);aX["delete"](aZ);aZ=aZ.nextSibling}var a0=aX.keys()}});return aR};aP.prototype.serializeAttributeChanges=function(aQ){var aS=this;var aR=new d.NodeMap();Object.keys(aQ).forEach(function(aT){aQ[aT].forEach(function(aW){var aU=aR.get(aW);if(!aU){aU=aS.serializeNode(aW);aU.attributes={};aR.set(aW,aU)}var aV=aN.shouldMaskElementRecursive(aW);var aX=aS.getAttributesFromNode(aW,aV.isIgnoredField,aV.isIgnoredContent);aU.attributes[aT]=aT in aX?aX[aT]:null})});return aR.keys().map(function(aT){return aR.get(aT)})};aP.prototype.applyChanged=function(aT){var aW=this;var aR=aT[0];var aU=aR.removed.map(function(aX){return aW.serializeNode(aX)});var aS=this.serializeAddedAndMoved(aR.added,aR.reparented,aR.reordered);var aQ=this.serializeAttributeChanges(aR.attributeChanged);var aV=aR.characterDataChanged.map(function(aY){var aZ=aW.serializeNode(aY);if(aY.nodeType===w&&aY.parentNode){aY=aY.parentNode}var aX=aN.shouldMaskElementRecursive(aY,false,false); aZ.textContent=aN.getMaskedTextContent(aY,aX.isIgnoredField,aX.isIgnoredContent);return aZ});this.mirror.applyChanged(aU,aS,aQ,aV);aR.removed.forEach(function(aX){aW.forgetNode(aX)})};return aP})()} /*!! * Copyright (C) InnoCraft Ltd - All rights reserved. * * All information contained herein is, and remains the property of InnoCraft Ltd. * * @link https://www.innocraft.com/ * @license For license details see https://www.innocraft.com/license */ ;var O=document;var I=window;var F=0;var l=false;var L=!u();var am=true;var n=null;var at=false;var ad="";var T=false;var g=15*60*1000;var aa=30*60*1000;var S=10;var av=(5*60*1000);var aA=2000;var C=1000;var H=100;var Y=500;var G=false;function u(){if("object"!==typeof JSON){return true}if("function"!==typeof Array.prototype.map||"function"!==typeof Array.prototype.filter||"function"!==typeof Array.prototype.indexOf){return true}if("function"!==typeof Element.prototype.getBoundingClientRect){return true}var aP=["cc.bingj.com"]; if(aP.indexOf(O.domain)!==-1||String(O.domain).indexOf(".googleusercontent.com")!==-1){return true}var aR=/alexa|baidu|bing|bot|crawler|curl|crawling|duckduckgo|facebookexternalhit|feedburner|googlebot|google web preview|linkdex|nagios|postrank|pingdom|robot|slurp|spider|yahoo!|yandex|wget/i.test(navigator.userAgent);if(aR){return true}var aQ=String(O.referrer);if(aQ&&aQ.indexOf("module=Overlay&action=startOverlaySession")>=0){return true}return false}function U(){if(l&&"object"===typeof console){if(typeof console.debug==="function"){console.debug.apply(console,arguments)}else{if(typeof console.log==="function"){console.log.apply(console,arguments)}}}}var D=function(){return true};var s=1;var aJ=2;var h=3;var V=4;var aK=5;var ag=6;var a=7;var k=8;var e=9;var ar=10;var p=11;var ay=12;var aF=13;var aD=0;var af=1;var c=2;var aI=true;var Q=false;var an=false;var aO=true;var M=null;var A=false;var ae={};if("object"===typeof JSON){ae=JSON}var aj=false;var al=[];var aL={hasObserver:function(){if(typeof WebKitMutationObserver!=="undefined"){return true }else{if(typeof MutationObserver!=="undefined"){return true}}return false}};var ai=aL.hasObserver();var r={getScrollLeft:function(){return I.document.body.scrollLeft||I.document.documentElement.scrollLeft},getScrollTop:function(){return I.document.body.scrollTop||I.document.documentElement.scrollTop},getDocumentHeight:function(){return au.safeMathMax([O.body.offsetHeight,O.body.scrollHeight,O.documentElement.offsetHeight,O.documentElement.clientHeight,O.documentElement.scrollHeight,1])},getDocumentWidth:function(){return au.safeMathMax([O.body.offsetWidth,O.body.scrollWidth,O.documentElement.offsetWidth,O.documentElement.clientWidth,O.documentElement.scrollWidth,1])},getWindowSize:function(){var aP=I.innerHeight||O.documentElement.clientHeight||O.body.clientHeight;var aQ=I.innerWidth||O.documentElement.clientWidth||O.body.clientWidth;return{width:aQ,height:aP}}};var t={namespace:"hsr",set:function(aR,aV,aT){aV=parseInt(aV,10);aT=parseInt(aT,10);var aU="";var aQ=t.getHsrConfigs(aR);var aS=false; for(var aP=0;aP<aQ.length;aP++){if(aQ[aP]&&aQ[aP].id===aV){aS=true;aQ[aP].value=aT}aU+=aQ[aP].id+"."+aQ[aP].value+"_"}if(!aS){aU+=aV+"."+aT}aR.setSessionCookie(this.namespace,aU)},get:function(aR,aS){aS=parseInt(aS,10);var aQ=t.getHsrConfigs(aR);for(var aP=0;aP<aQ.length;aP++){if(aQ[aP]&&aQ[aP].id===aS){return aQ[aP].value}}return null},getHsrConfigs:function(aS){var aT=aS.getCookie(this.namespace);if(!aT){return[]}var aR=[];var aU=String(aT).split("_"),aP;for(var aQ=0;aQ<aU.length;aQ++){aP=aU[aQ].split(".");if(aP&&aP.length===2){aR.push({id:parseInt(aP[0],10),value:parseInt(aP[1],10)})}}return aR}};var aN={getAttribute:function(aQ,aP){if(aQ&&aQ.getAttribute&&aP){return aQ.getAttribute(aP)}return null},hasAttribute:function(aQ,aP){if(aQ&&aQ.hasAttribute){return aQ.hasAttribute(aP)}if(aQ&&aQ.attributes){var aR=(typeof aQ.attributes[aP]);return aR!=="undefined"}return false},getTagName:function(aP){if(aP&&aP.tagName){return(""+aP.tagName).toLowerCase()}return null},getCssClasses:function(aQ){if(aQ&&aQ.className){var aP=typeof aQ.className==="string"?au.trim(aQ.className).split(/\s+/):[]; return aP}return[]},getHeight:function(aP){if(aP&&(aP.nodeType===9||aP.tagName==="HTML")){return r.getDocumentHeight()}if(aP===window){return O.documentElement.clientHeight}return au.safeMathMax([aP.scrollHeight,aP.offsetHeight,0])},getWidth:function(aP){if(aP&&(aP.nodeType===9||aP.tagName==="HTML")){return r.getDocumentWidth()}if(aP===window){return O.documentElement.clientWidth}return au.safeMathMax([aP.scrollWidth,aP.offsetWidth,0])},getOffset:function(aQ){if(!aQ.getBoundingClientRect){return{top:0,left:0,width:0,height:0}}var aP=(aQ&&aQ.ownerDocument).documentElement;var aR=aQ.getBoundingClientRect();return{top:Math.floor(aR.top)+(I.pageYOffset||O.scrollTop||0)-(aP.clientTop||0),left:Math.floor(aR.left)+(I.pageXOffset||O.scrollLeft||0)-(aP.clientLeft||0),width:au.safeMathMax([aR.width,aN.getWidth(aQ)]),height:au.safeMathMax([aR.height,aN.getHeight(aQ)])}},getSelector:function(aQ,aP){return i.cssPath(aQ,false)},getMaskedTextContent:function(aQ,aR,aP){if("undefined"!==typeof aQ.parentNode&&aQ.parentNode&&aQ.parentNode.tagName==="TEXTAREA"&&(!aI||aR||aN.shouldMaskField(aQ,false))){return aN.maskFormField(au.trim(aQ.textContent)) }else{if(aP||aN.shouldMaskContent(aQ,false)){return aN.maskFormField(au.trim(aQ.textContent))}}return aQ.textContent},maskFormField:function(aR,aQ){if(!aR){return aR}aR=String(aR).replace(/./g,"*");if(aQ){var aP=Math.floor(Math.random()*10)+1;aR=aR+(new Array(aP+1).join("*"))}return aR},shouldMaskElementRecursive:function(aS,aT,aQ){if(!aQ){aQ=false}if(!aT){aT=false}if(!aT&&aN.shouldMaskField(aS,false)){aT=true}else{if(aT&&!aN.shouldMaskField(aS,false)){aT=false}}if(!aQ&&aN.shouldMaskContent(aS,false)){aQ=true}else{if(aQ&&aS.nodeName!=="#text"&&!aN.shouldMaskContent(aS,false)){aQ=false}}var aR=(aS&&aS.parentNode)?aS.parentNode:null;var aP=true;while(aR){if(!aT&&(aR.nodeType==="INPUT"||aR.nodeType==="SELECT"||aR.nodeType==="TEXTAREA")&&aN.shouldMaskField(aR,false)){aT=true}if(!aQ&&aP&&((aS.nodeType!=="INPUT"&&aS.nodeType!=="SELECT"&&aS.nodeType!=="TEXTAREA")&&!aN.hasAttribute(aS,"data-matomo-unmask")&&aS.nodeName!=="#text")){if(aN.shouldMaskContent(aR,false)){aQ=true}else{if(aN.hasAttribute(aR,"data-matomo-unmask")){aP=false }}}if(aT&&aQ){aR=null;break}else{aR=aR.parentNode?aR.parentNode:null}}if(aT&&aN.isAllowedInputType(aS)){aT=false}return{isIgnoredField:aT,isIgnoredContent:aQ}},shouldMaskField:function(aP,aY){if(!aP){return false}var aV=aN.getAttribute(aP,"type");if(!aV){aV="text"}else{aV=String(aV).toLowerCase()}if(aN.isAllowedInputType(aP)){return false}var aT=aV==="radio"||aV==="checkbox"||(aP.nodeName&&aP.nodeName==="SELECT");if(!aI){if(aT){return false}return true}var aW=aN.getAttribute(aP,"name");var aR=aN.getAttribute(aP,"id");var aS=aN.getAttribute(aP,"autocomplete");aW=au.trim(String(aW)).toLowerCase().replace(/[\s_-]+/g,"");aR=au.trim(String(aR)).toLowerCase().replace(/[\s_-]+/g,"");aS=au.trim(String(aS)).toLowerCase().replace(/[\s_-]+/g,"");var aU=["creditcardnumber","off","kreditkarte","debitcard","kreditkort","kredietkaart"," kartakredytowa","cvv","cc","ccc","cccsc","cccvc","ccexpiry","ccexpyear","ccexpmonth","cccvv","cctype","cvc","exp","ccname","cardnumber","ccnumber","username","creditcard","name","fullname","familyname","firstname","vorname","nachname","lastname","nickname","surname","login","formlogin","konto","user","website","domain","gender","company","firma","geschlecht","email","emailaddress","emailadresse","mail","epos","ebost","epost","eposta","authpw","token_auth","tokenauth","token","pin","ibanaccountnum","ibanaccountnumber","account","accountnum","auth","age","alter","tel","city","cell","cellphone","bic","iban","swift","kontonummer","konto","kontonr","phone","mobile","mobiili","mobilne","handynummer","téléphone","telefono","ssn","socialsecuritynumber","socialsec","socsec","address","addressline1","addressline2","billingaddress","billingaddress1","billingaddress2","shippingaddress","shippingaddress1","shippingaddress2","vat","vatnumber","gst","gstnumber","tax","taxnumber","steuernummer","adresse","indirizzo","adres","dirección","osoite","address1","address2","address3","street","strasse","rue","via","ulica","calle","sokak","zip","zipcode","plz","postleitzahl","postalcode","postcode","dateofbirth","dob","telephone","telefon","telefonnr","telefonnummer","password","passwort","kennwort","wachtwoord","contraseña","passord","hasło","heslo","wagwoord","parole","contrasenya","heslo","clientid","identifier","id","consumersecret","webhooksecret","consumerkey","keyconsumersecret","keyconsumerkey","clientsecret","secret","secretq","secretquestion","privatekey","publickey","pw","pwd","pwrd","pword","paword","pasword","paswort","pass"]; if(aV==="password"||aV==="email"||aV==="tel"||aV==="hidden"||aU.indexOf(aW)!==-1||aU.indexOf(aR)!==-1||aU.indexOf(aS)!==-1||aN.hasAttribute(aP,"data-piwik-mask")||aN.hasAttribute(aP,"data-matomo-mask")){return true}if(!aT&&aP&&aP.value){if(!aV||aV==="text"||aV==="number"||(aP&&aP.nodeName==="TEXTAREA")){if(/^\d{7,24}$/.test(String(aP.value))){return true}if(String(aP.value).indexOf("@")!==-1&&String(aP.value).length>2){return true}}}if(aY){var aX=aP.parentNode?aP.parentNode:null;var aQ=false;while(aX){if(aN.hasAttribute(aX,"data-piwik-mask")||aN.hasAttribute(aX,"data-matomo-mask")){return true}else{if(!aQ&&aX&&aN.hasAttribute(aX,"data-matomo-unmask")){aQ=true}aX=aX.parentNode?aX.parentNode:null}}if(aQ){return false}}if(aN.hasAttribute(aP,"data-matomo-unmask")){return false}if(aT){return false}return true},shouldMaskContent:function(aR,aQ){if(!aR){return false}if(aR.tagName&&aR.tagName!=="FORM"&&aN.hasAttribute(aR,"data-matomo-mask")){return true}if(aR.tagName&&aR.tagName!=="FORM"&&aN.hasAttribute(aR,"data-matomo-unmask")){return false }if(aQ){var aP=aR.parentNode?aR.parentNode:null;while(aP){if(aR.nodeName==="#text"&&aN.hasAttribute(aP,"data-matomo-unmask")){return false}else{if(aP.tagName!=="FORM"&&aN.hasAttribute(aP,"data-matomo-mask")){return true}else{aP=aP.parentNode?aP.parentNode:null}}}}return false},isAllowedInputType:function(aP){return(aP.type&&ax.indexOf(aP.type)!==-1&&!aN.hasAttribute(aP,"data-piwik-mask")&&!aN.hasAttribute(aP,"data-matomo-mask"))}};var au={safeMathMax:function(aP){var aQ=[];var aR;for(aR=0;aR<aP.length;aR++){if(this.isNumber(aP[aR])){aQ.push(aP[aR])}}if(aQ.length===0){return NaN}return Math.max.apply(null,aQ)},isArray:function(aP){return typeof aP==="object"&&aP!==null&&typeof aP.length==="number"},getCurrentTime:function(){return new Date().getTime()},getTimeSincePageReady:function(){if(!F){return 0}return(new Date().getTime())-F},roundTimeToSeconds:function(aP){return Math.round(aP/1000)},getRandomInt:function(aQ,aP){return Math.round(Math.random()*(aP-aQ)+aQ)},isNumber:function(aP){return !isNaN(aP) },trim:function(aP){if(aP&&String(aP)===aP){return aP.replace(/^\s+|\s+$/g,"")}return aP},generateUniqueId:function(){var aS="";var aQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";var aR=aQ.length;for(var aP=0;aP<6;aP++){aS+=aQ.charAt(Math.floor(Math.random()*aR))}return aS}};function f(aP){return location.href&&location.href.indexOf(aP)>0}function x(){return f("pk_hsr_forcesample=1")||f("pk_hsr_capturescreen=1")}function v(){return f("pk_hsr_forcesample=0")}function Z(aP){if(x()){return true}if(v()){return false}if(aP>=100){return true}if(aP<=0){return false}if(aP>=1){return aP>=au.getRandomInt(1,H)}return(aP*10)>=au.getRandomInt(1,H*10)}function q(aP){if("undefined"!==typeof aP.HeatmapSessionRecording){return}aP.HeatmapSessionRecording={myId:au.generateUniqueId(),hasReceivedConfig:false,hasRequestedConfig:false,hasTrackedData:false,hasSentStopTrackingEvent:false,enabled:true,hsrIdsToGetDOM:[],disable:function(){this.enabled=false},enable:function(){this.enabled=true },isEnabled:function(){return L&&this.enabled},numSentTrackingRequests:0,Heatmap:{data:[],hsrids:[],configs:[],addConfig:function(aQ){if("object"!==typeof aQ||!aQ.id){return}aQ.id=parseInt(aQ.id,10);this.configs.push(aQ);if("undefined"===typeof aQ.sample_rate){aQ.sample_rate=H}else{aQ.sample_rate=Math.min(parseFloat(aQ.sample_rate),H)}if(aQ.id&&Z(aQ.sample_rate)&&D(aQ)){this.addHsrId(aQ.id);if((aQ.getdom&&!aQ.capture_manually)||f("pk_hsr_capturescreen=1")){aP.HeatmapSessionRecording.hsrIdsToGetDOM.push(aQ.id)}}},addHsrId:function(aQ){this.hsrids.push(aQ);if(aP.HeatmapSessionRecording.hasTrackedData){z.recordData(af,{ty:a,id:aQ})}}},Both:{data:[]},Session:{data:[],hsrids:[],configs:[],addConfig:function(aS){if("object"!==typeof aS||!aS.id){return}aS.id=parseInt(aS.id,10);if("undefined"===typeof aS.sample_rate){aS.sample_rate=H}else{aS.sample_rate=Math.min(parseFloat(aS.sample_rate),H)}aS.conditionsMet=false;this.configs.push(aS);var aR=parseInt(aP.getSiteId(),10);var aT=t.get(aP,aS.id);if(1===aT&&!v()){aS.sample_rate=H; aS.activity=false;aS.min_time=0}else{if(x()){}else{if(0===aT||!Z(aS.sample_rate)){t.set(aP,aS.id,0);return}}}this.checkConditionsMet();if(aS.min_time){var aQ=this;Piwik.DOM.onReady(function(){var aU=(aS.min_time*1000)-au.getTimeSincePageReady()+120;if(aU>=0){setTimeout(function(){aQ.checkConditionsMet()},aU)}else{aQ.checkConditionsMet()}})}},checkConditionsMet:function(){var aR;for(var aS=0;aS<this.configs.length;aS++){aR=this.configs[aS];if(aR&&!aR.conditionsMet){var aQ=true;if(aR.min_time&&aR.min_time>=au.roundTimeToSeconds(au.getTimeSincePageReady())){aQ=false}if(aR.activity&&!an){an=r.getDocumentHeight()<=r.getWindowSize().height}if(aR.activity&&(!Q||!an)){aQ=false}if(aQ){aR.conditionsMet=true;if(D(aR)){if("undefined"===typeof aR.keystrokes||!aR.keystrokes||aR.keystrokes==="0"){aI=false}this.addHsrId(aR.id)}}}}},addHsrId:function(aQ){this.hsrids.push(aQ);if(aP.HeatmapSessionRecording.hasTrackedData){z.recordData(c,{ty:a,id:aQ})}var aR=parseInt(aP.getSiteId(),10);t.set(aP,aQ,1)}},addConfig:function(aQ){this.hasRequestedConfig=true; this.hasReceivedConfig=true;if("undefined"===typeof aQ||!aQ){aM.checkAllConfigsReceived();return}if("object"===typeof aQ.heatmap){this.Heatmap.addConfig(aQ.heatmap)}var aR;if(aQ.heatmaps&&au.isArray(aQ.heatmaps)&&aQ.heatmaps.length){for(aR=0;aR<aQ.heatmaps.length;aR++){if(!aQ.heatmaps[aR].capture_manually){this.Heatmap.addConfig(aQ.heatmaps[aR])}}}if(ai){if(aQ.sessions&&au.isArray(aQ.sessions)&&aQ.sessions.length){for(aR=0;aR<aQ.sessions.length;aR++){this.Session.addConfig(aQ.sessions[aR])}}if("object"===typeof aQ.session){this.Session.addConfig(aQ.session)}}aM.checkAllConfigsReceived()}}}var aB=r.getWindowSize();var z={getPiwikTrackers:function(){if(null===n){if("object"===typeof Piwik&&Piwik.getAsyncTrackers){var aP=Piwik.getAsyncTrackers();if(!aP||!aP.length){return[]}return aP}}if(au.isArray(n)){return n}return[]},sendQueuedData:function(aW,aX){if(!at||!ad){return}if(!aW||!aW.HeatmapSessionRecording){return}var aT=aW.HeatmapSessionRecording;if(!aT.isEnabled()){return}var aP=[];var aQ=[]; if(aT.Heatmap.hsrids&&aT.Heatmap.hsrids.length){aP=aT.Heatmap.hsrids;if(aT.Heatmap.data.length){aQ=aT.Heatmap.data;aT.Heatmap.data=[]}}var aV=aT.Session.hsrids&&aT.Session.hsrids.length&&ak.initialDOM;if(aV){aP=aP.concat(aT.Session.hsrids);if(aT.Session.data.length){aQ=aQ.concat(aT.Session.data);aT.Session.data=[];if(!aI){for(var aR=(aQ.length-1);aR>=0;aR--){if(aQ[aR]&&aQ[aR].ty&&aQ[aR].ty===e){aQ.splice(aR,1)}}}}}if(aP.length&&aT.Both.data.length){aQ=aQ.concat(aT.Both.data);aT.Both.data=[]}if("undefined"===typeof aX){aX=this.shouldEndRecording(aW)}if(aX&&aT.hasTrackedData&&!aT.hasSentStopTrackingEvent&&aV){aQ.push({ty:p});aT.hasSentStopTrackingEvent=true}if(!aP||!aP.length||!aQ||!aQ.length){return}if(aW.HeatmapSessionRecording.hsrIdsToGetDOM&&aW.HeatmapSessionRecording.hsrIdsToGetDOM.length){if(!ak.initialDOM&&ai){var aU=new y(O,{initialize:function(aY,aZ){ak.initialDOM=ae.stringify({rootId:aY,children:aZ})}});aU.disconnect()}if(ak.initialDOM&&ai){for(var aS=0;aS<aW.HeatmapSessionRecording.hsrIdsToGetDOM.length; aS++){aQ.push({ty:k,dom:ak.initialDOM,id:aW.HeatmapSessionRecording.hsrIdsToGetDOM[aS]})}aW.HeatmapSessionRecording.hsrIdsToGetDOM=[]}}aT.hasTrackedData=true;this.sendQueuedDataRequestNow(aW,aP,aQ);if(aX){Piwik.HeatmapSessionRecording.disable()}},shouldEndRecording:function(aR){var aU=au.getTimeSincePageReady();if(aa<aU){return true}if(g<aU){var aT=aR.HeatmapSessionRecording;var aQ=!aT.numSentTrackingRequests||aT.numSentTrackingRequests<=S;var aP=60*1000;var aS=M&&(aU<(aP+M));if(aQ||aS){g=aU+av}else{return true}}return false},sendQueuedDataRequestNow:function(aX,aQ,aY){var aR="";for(var aS=0;aS<aY.length;aS++){for(var aP in aY[aS]){if(Object.prototype.hasOwnProperty.call(aY[aS],aP)){aR+="&hsr_ev["+aS+"]["+aP+"]="+encodeURIComponent(aY[aS][aP])}}}for(var aU=0;aU<aQ.length;aU++){aR+="&hsr_ids[]="+encodeURIComponent(aQ[aU])}var aV="hsr_vid="+ad+aR;var aW=r.getWindowSize();var aZ=r.getDocumentHeight();if(!ak.scrollMaxPercentage){var aT=r.getScrollTop();ak.scrollMaxPercentage=parseInt(((aW.height+aT)/aZ)*C,10) }aV+="&hsr_vw="+encodeURIComponent(aW.width);aV+="&hsr_vh="+encodeURIComponent(aW.height);aV+="&hsr_ti="+au.getTimeSincePageReady();aV+="&hsr_smp="+ak.scrollMaxPercentage;aV+="&hsr_fyp="+parseInt((aB.height/aZ)*C,10);aV+="&ca=1";aX.HeatmapSessionRecording.numSentTrackingRequests++;aX.trackRequest(aV,null,null,"HeatmapSessionRecording");U("track: "+aV)},recordData:function(aP,aQ){if(!aj){al.push({type:aP,data:aQ});return}var aR=z.getPiwikTrackers();aR.forEach(function(aS){if(aS.HeatmapSessionRecording&&aS.HeatmapSessionRecording.isEnabled()){if("object"===typeof aQ&&"undefined"!==typeof aQ.ti&&aQ.ti&&(!M||aQ.ti>M)&&aQ.ty&&aQ.ty!==ag){M=aQ.ti}if(aD===aP){aS.HeatmapSessionRecording.Both.data.push(aQ)}else{if(af===aP){aS.HeatmapSessionRecording.Heatmap.data.push(aQ)}else{if(c===aP){aS.HeatmapSessionRecording.Session.data.push(aQ)}}}}});if(l){U("recorddata",ae.stringify(aQ))}},stopSendingData:function(){var aP=z.getPiwikTrackers();aP.forEach(function(aQ){if(aQ.HeatmapSessionRecording){var aR=aQ.HeatmapSessionRecording; if("undefined"!==typeof aR.trackingInterval){clearInterval(aR.trackingInterval);delete aR.trackingInterval}}})},startSendingData:function(){var aP=z.getPiwikTrackers();aP.forEach(function(aQ){if(aQ.HeatmapSessionRecording&&"undefined"===typeof aQ.HeatmapSessionRecording.trackingInterval){var aR=au.getRandomInt(10250,11250);aQ.HeatmapSessionRecording.trackingInterval=setInterval(function(){z.sendQueuedData(aQ)},aR);z.sendQueuedData(aQ)}})}};function aE(){ ;if(typeof window==="object"&&"function"===typeof I.piwikHeatmapSessionRecordingAsyncInit){I.piwikHeatmapSessionRecordingAsyncInit()}if(typeof window==="object"&&"function"===typeof I.matomoHeatmapSessionRecordingAsyncInit){I.matomoHeatmapSessionRecordingAsyncInit()}var aQ=al;al=[];aj=true;for(var aP=0;aP<aQ.length;aP++){z.recordData(aQ[aP].type,aQ[aP].data)}Piwik.DOM.onLoad(function(){at=true;setTimeout(function(){if(L){var aR=z.getPiwikTrackers();if(aR&&aR.length){Piwik.HeatmapSessionRecording.enable()}}},10) })}var ak={moveEvents:["mousemove","touchmove"],clickEvents:["mousedown"],scrollEvents:["scroll","resize"],lastScroll:null,lastElementScroll:null,lastMove:null,lastResize:null,scrollMaxPercentage:0,lastResizeInterval:null,lastScrollInterval:null,lastMoveInterval:null,isRecording:false,isRecordingMutations:false,startRecording:function(){if(!L||this.isRecording){return}this.isRecording=true;this.lastScrollInterval=setInterval(function(){if(ak.lastScroll){var aP=ak.lastScroll;ak.lastScroll=null;var aQ={ti:aP.time,ty:h,x:aP.scrollX,y:aP.scrollY};z.recordData(c,aQ)}if(ak.lastElementScroll){var aP=ak.lastElementScroll;ak.lastElementScroll=null;var aQ={ti:aP.time,ty:ay,s:aP.selector,x:aP.scrollX,y:aP.scrollY};z.recordData(c,aQ)}},200);this.lastResizeInterval=setInterval(function(){if(ak.lastResize){var aP=ak.lastResize;ak.lastResize=null;var aQ={ti:aP.ti,ty:V,x:aP.width,y:aP.height};z.recordData(c,aQ)}},200);this.lastMoveInterval=setInterval(function(){if(ak.lastMove){var aP=ak.lastMove;ak.lastMove=null; var aQ={ti:aP.time,ty:s,s:aP.selector,x:aP.offsetx,y:aP.offsety};z.recordData(aD,aQ)}},200);this.scrollEvents.forEach(function(aP){I.addEventListener(aP,ak.onScroll,true)});this.clickEvents.forEach(function(aP){I.addEventListener(aP,ak.onClick,true)});this.moveEvents.forEach(function(aP){I.addEventListener(aP,ak.onMove,true)})},mirror:null,initialDOM:null,startRecordingMutations:function(){if(!L||!ai||this.isRecordingMutations){return}this.isRecordingMutations=true;I.addEventListener("resize",ak.onResize,true);I.addEventListener("change",ak.onFormChange,true);try{this.mirror=new y(document,{initialize:function(aQ,aR){var aS={ty:aK,ti:0,te:ae.stringify({rootId:aQ,children:aR})};if(!ak.initialDOM){ak.initialDOM=aS.te}z.recordData(c,aS)},applyChanged:function(aT,aR,aQ,aU){if(aT.length||aR.length||aQ.length||aU.length){var aS={ti:au.getTimeSincePageReady(),ty:ag,te:{}};if(aT.length){aS.te.rem=aT}if(aR.length){aS.te.adOrMo=aR}if(aQ.length){aS.te.att=aQ}if(aU.length){aS.te.text=aU}aS.te=ae.stringify(aS.te); z.recordData(c,aS)}}})}catch(aP){U(aP)}},onResize:function(){var aP=r.getWindowSize();ak.lastResize={ti:au.getTimeSincePageReady(),width:aP.width,height:aP.height}},onFormChange:function(aX){if(!("target" in aX)||!aX.target){return}var aS=aX.target;var aQ=aN.getTagName(aS);if(!aQ){return}var aR=au.getTimeSincePageReady();var aP=ar;var aT=false;if(aQ==="input"){var aW=aN.getAttribute(aS,"type");if(String(aW).toLowerCase()==="radio"||String(aW).toLowerCase()==="checkbox"){aT=true}else{aP=e}}else{if(aQ==="textarea"){aP=e}else{if(aQ!=="select"){return}}}if(!aI&&aP===e){return}var aU=aN.getSelector(aS);var aY="";if(aT){aY=aS.checked?"1":"0"}else{if(aP===e&&"undefined"!==typeof aS.value){aY=String(aS.value);if(aY>Y){aY=aY.substr(0,Y)}if(aN.shouldMaskField(aS,!aN.hasAttribute(aS,"data-matomo-unmask"))){aY=aN.maskFormField(aY,aN.getAttribute(aS,"type")==="password")}}else{if(aP===ar&&"undefined"!==typeof aS.value){aY=String(aS.value)}}}var aV={ti:aR,ty:aP,s:aU,te:aY};if(aU){z.recordData(c,aV)}else{U("No selector found for text input ",aX) }},onScroll:function(aP){if(!an){an=true;ak.checkTrackersIfConditionsMet()}var aT=au.getTimeSincePageReady();if(aP&&aP.type&&aP.type==="scroll"&&aP.target&&aP.target!==O){var aZ=aP.target;if("undefined"===typeof aZ.scrollTop){return}var aR=aZ.scrollTop;var aU=aZ.scrollLeft;var aS=aN.getWidth(aZ);var aQ=aN.getHeight(aZ);if(aS<=0||aQ<=0||!aS||!aQ){return}var aV=aN.getSelector(aZ);ak.lastElementScroll={time:aT,selector:aV,scrollY:parseInt((C*aR)/aQ,10),scrollX:parseInt((C*aU)/aS,10)};return}var aX=parseInt(r.getScrollTop(),10);var aW=parseInt(r.getScrollLeft(),10);var a1=r.getDocumentHeight();var aY=r.getDocumentWidth();ak.lastScroll={time:aT,scrollY:parseInt((C*aX)/a1,10),scrollX:parseInt((C*aW)/aY,10)};var a0=parseInt((C*(aX+r.getWindowSize().height))/a1,10);if(a0>ak.scrollMaxPercentage){ak.scrollMaxPercentage=a0}},checkTrackersIfConditionsMet:function(){var aQ=z.getPiwikTrackers();for(var aP=0;aP<aQ.length;aP++){if(aQ[aP]&&aQ[aP].HeatmapSessionRecording&&aQ[aP].HeatmapSessionRecording.Session){aQ[aP].HeatmapSessionRecording.Session.checkConditionsMet() }}},onClick:function(aU){U("click");if(!Q){Q=true;ak.checkTrackersIfConditionsMet()}if(!("target" in aU)||!("pageY" in aU)||!("pageX" in aU)||!aU.target){return}var aT=au.getTimeSincePageReady();ak.lastMove=null;var aV=aN.getOffset(aU.target);var aR=parseInt(((aU.pageX-aV.left)/aV.width)*aA,10);var aQ=parseInt(((aU.pageY-aV.top)/aV.height)*aA,10);var aP=aN.getSelector(aU.target);if(aR%2===1){aR++}if(aQ%2===1){aQ++}if(l&&(isNaN(aR)||isNaN(aQ))){U("could not detect x or y coordinate for selector "+aP,aU)}var aS={ti:aT,ty:aJ,s:aP,x:aR,y:aQ};if(aP){z.recordData(aD,aS)}else{U("No selector found for click ",aU)}},onCssLoaded:function(aR){var aU=document.styleSheets;var aV=false;for(var aQ=0;aQ<aU.length;aQ++){if(aU[aQ].href&&aU[aQ].href===aR){aV=true;try{if(aU[aQ]["cssRules"]){var aT="";for(var aP=0;aP<aU[aQ]["cssRules"].length;aP++){aT=aT+aU[aQ]["cssRules"][aP]["cssText"]+" "}ak.onCssContentFetched(aU[aQ].href,aT)}}catch(aS){if(aS.code===18){(function(aW){var aX=new XMLHttpRequest();aX.onreadystatechange=function(){if(this.readyState==4&&this.status==200){ak.onCssContentFetched(aU[aW].href,aX.responseText) }};aX.open("GET",aU[aW].href,true);aX.send()})(aQ)}if(l){U("CSS fetching error"+aS.message,aU[aQ].href)}}break}}return aV},onCssContentFetched:function(aP,aQ){if(!aQ){U("CSS Content empty ",aP);return}aQ=ak.updateAbsoluteUrlsInContent(aP,aQ);var aR={ti:0,ty:aF,s:aP,te:aQ};z.recordData(aD,aR)},updateAbsoluteUrlsInContent:function(aQ,aP){return aP.replace(/url\((?!['"]?(?:data|http|https):)['"]?([^'"\)]*)['"]?\)/gi,function(aU,aS,aR){try{var aT=new I.URL(aS,aQ);return aT.href?aU.replace(aS,aT.href):aU}catch(aV){return aU}})},onMove:function(aW){if(!am){return}if(!("clientY" in aW)||!("clientX" in aW)||!("pageX" in aW)||!("pageY" in aW)){return}var aY=aW.clientX;var aX=aW.clientY;var aS=O.elementFromPoint(aY,aX);if(aS){var aR=au.getTimeSincePageReady();var aU=aN.getOffset(aS);var aQ=parseInt(((aW.pageX-aU.left)/aU.width)*aA,10);var aP=parseInt(((aW.pageY-aU.top)/aU.height)*aA,10);if(aQ%2===1){aQ++}if(aP%2===1){aP++}var aT=aN.getSelector(aS);if(l&&(isNaN(aQ)||isNaN(aP))){U("could not detect x or y coordinate for selector "+aT,aW) }if(aT){if(!G){G=true;var aV={ti:0,ty:s,s:aT,x:aQ,y:aP};z.recordData(aD,aV)}else{ak.lastMove={selector:aT,offsetx:aQ,offsety:aP,time:aR}}}else{U("No selector found for click ",aW)}}},stopRecording:function(){this.isRecording=false;if(this.lastResizeInterval!==null){clearInterval(this.lastResizeInterval);this.lastResizeInterval=null}if(this.lastScrollInterval!==null){clearInterval(this.lastScrollInterval);this.lastScrollInterval=null}if(this.lastMoveInterval!==null){clearInterval(this.lastMoveInterval);this.lastMoveInterval=null}this.scrollMaxPercentage=0;this.lastScroll=null;this.lastElementScroll=null;this.lastMove=null;this.lastResize=null;this.scrollEvents.forEach(function(aP){I.removeEventListener(aP,ak.onScroll,true)});this.moveEvents.forEach(function(aP){I.removeEventListener(aP,ak.onMove,true)});this.clickEvents.forEach(function(aP){I.removeEventListener(aP,ak.onClick,true)})},stopRecordingMutations:function(){this.isRecordingMutations=false;I.removeEventListener("resize",ak.onResize,true); I.removeEventListener("change",ak.onFormChange,true);this.initialDOM=null;if(this.mirror){this.mirror.disconnect();this.mirror=null}}};var aM={fetch:function(){var aY=0;var aT=z.getPiwikTrackers();if(!aT||!aT.length){return}for(var aS=0;aS<aT.length;aS++){var aX=aT[aS];if(aX&&aX.HeatmapSessionRecording&&aX.hasConsent()&&!aX.HeatmapSessionRecording.hasRequestedConfig&&aX.HeatmapSessionRecording.isEnabled()){var aW=aX.getPiwikUrl();var aU=aX.getSiteId();if(!aW||!aU){U("cannot find piwik url for tracker or site, disabling heatmap & session recording");aX.HeatmapSessionRecording.disable();aX.HeatmapSessionRecording.hasReceivedConfig=true;continue}aX.HeatmapSessionRecording.hasRequestedConfig=true;if(aW.substr(-1,1)!=="/"){aW+="/"}aY++;var aP;if(T){aP=aX.getCurrentUrl()}else{aP=I.location.href;try{aP=decodeURIComponent(aP)}catch(aV){aP=unescape(aP)}}aW+="plugins/HeatmapSessionRecording/configs.php?idsite="+encodeURIComponent(aU)+"&trackerid="+aX.HeatmapSessionRecording.myId+"&url="+encodeURIComponent(aP); var aQ=t.getHsrConfigs(aX);for(var aR=0;aR<aQ.length;aR++){aW+="&hsr"+encodeURIComponent(aQ[aR].id)+"="+encodeURIComponent(aQ[aR].value)}(function(a0){var aZ=O.createElement("script");aZ.src=aW;aZ.async=true;aZ.defer=true;aZ.onerror=function(){a0.HeatmapSessionRecording.disable();a0.HeatmapSessionRecording.hasReceivedConfig=true;aM.checkAllConfigsReceived()};setTimeout(function(){var a2=O.getElementsByTagName("head");if(a2&&a2.length&&a2[0]){a2[0].appendChild(aZ)}else{var a1=O.getElementsByTagName("body");if(a1&&a1.length&&a1[0]){a1[0].appendChild(aZ)}}},10)})(aX)}}if(aY===0){this.checkAllConfigsReceived()}},assign:function(aP){var aS=z.getPiwikTrackers();for(var aQ=0;aQ<aS.length;aQ++){var aR=aS[aQ];if(aR&&aR.HeatmapSessionRecording){if(aR.getSiteId()==aP.idsite&&aR.HeatmapSessionRecording.myId===aP.trackerid){aR.HeatmapSessionRecording.addConfig(aP);break}}}this.checkAllConfigsReceived()},checkAllConfigsReceived:function(){var aT=z.getPiwikTrackers();var aS=false;var aP=false;if(!aT||!aT.length){return }var aR;for(var aQ=0;aQ<aT.length;aQ++){if(aT[aQ].HeatmapSessionRecording){aR=aT[aQ].HeatmapSessionRecording;if(!aR.hasReceivedConfig){return}if(aR.Heatmap.configs&&aR.Heatmap.configs.length){aS=true}if(aR.Session.configs&&aR.Session.configs.length){aP=true}}}if(!aS&&!aP){Piwik.HeatmapSessionRecording.disable();A=true}else{if(!aP){Piwik.DOM.onLoad(function(){setTimeout(function(){ak.stopRecordingMutations()},20)})}}}};function ah(){if("object"===typeof window&&"object"===typeof I.Piwik&&"object"===typeof I.Piwik.HeatmapSessionRecording){return}if("object"===typeof window&&!I.Piwik){return}ae=Piwik.JSON;Piwik.HeatmapSessionRecording={utils:au,element:aN,storage:t,dom:r,tracking:z,recording:ak,RECORD_TYPE_BOTH:aD,RECORD_TYPE_HEATMAP:af,RECORD_TYPE_SESSION:c,configuration:aM,getIdView:function(){return ad},disableRecordMovements:function(){am=false},captureInitialDom:function(aQ){if(aQ){var aR=z.getPiwikTrackers();aR.forEach(function(aS){if(aS&&A&&!u()){L=true;aS.HeatmapSessionRecording.enable() }if(aS&&aS.HeatmapSessionRecording&&aS.hasConsent()&&aS.HeatmapSessionRecording.isEnabled()){aS.HeatmapSessionRecording.Heatmap.addConfig({id:aQ,sample_rate:100,getdom:true,capture_manually:false})}})}},enableRecordMovements:function(){am=true},isRecordingMovements:function(){return am},disableAutoDetectNewPageView:function(){aO=false},enableAutoDetectNewPageView:function(){aO=true},isAutoDetectingNewPageViews:function(){return aO},matchTrackerUrl:function(){return T=true},setTrigger:function(aQ){if(typeof aQ==="function"){D=aQ}else{throw Error("trigger needs to be a method")}},setNewPageView:function(aR){if(u()){return}U("new pageview");var aQ=this.isEnabled();if(aQ){this.disable()}ad=au.generateUniqueId();F=new Date().getTime();al=[];Q=false;an=false;this._resetTrackers();if(aQ||A){this.enable(aR)}},_resetTrackers:function(){var aQ=z.getPiwikTrackers();aQ.forEach(function(aS){var aR=true;if("undefined"!==typeof aS.HeatmapSessionRecording){aR=aS.HeatmapSessionRecording.enabled;delete aS.HeatmapSessionRecording }q(aS);if(!aR){aS.HeatmapSessionRecording.disable()}})},_setDisabled:function(){A=false;L=false},disable:function(){if(u()){return}var aQ=z.getPiwikTrackers();aQ.forEach(function(aS){var aR=false;z.sendQueuedData(aS,aR)});this._setDisabled();ak.stopRecording();ak.stopRecordingMutations();z.stopSendingData()},enable:function(aQ){if(u()){return}L=true;A=false;if("undefined"===typeof aQ||aQ===true){aM.fetch()}else{if("object"===typeof aQ){var aR=z.getPiwikTrackers();aR.forEach(function(aS){aS.HeatmapSessionRecording.addConfig(aQ)})}else{U("manual tracker config required")}}ak.startRecording();ak.startRecordingMutations();z.startSendingData()},isEnabled:function(){return L},setMaxCaptureTime:function(aQ){g=parseInt(aQ,10)*1000;if(g>aa){g=aa}},setMaxTextInputLength:function(aQ){Y=aQ},disableCaptureKeystrokes:function(){aI=false},enableCaptureKeystrokes:function(){aI=true},setMatomoTrackers:function(aQ){this.setPiwikTrackers(aQ)},setPiwikTrackers:function(aQ){if(aQ===null){n=null;return}if(!au.isArray(aQ)){aQ=[aQ] }n=aQ;n.forEach(q);if(aj){if(A){this.enable()}else{if(L){aM.fetch()}}}},enableDebugMode:function(){l=true}};Piwik.DOM.onReady(function(){F=new Date().getTime()});Piwik.addPlugin("HeatmapSessionRecording",{log:function(aQ){if(aO){if(aQ.tracker&&aQ.tracker.getNumTrackedPageViews&&aQ.tracker.getNumTrackedPageViews()>1){setTimeout(function(){Piwik.HeatmapSessionRecording.setNewPageView(true)},10)}}return""},unload:function(){if(!u()){var aQ=z.getPiwikTrackers();z.stopSendingData();aQ.forEach(function(aS){var aR=false;z.sendQueuedData(aS,aR)})}}});if(I.Piwik.initialized){var aP=Piwik.getAsyncTrackers();aP.forEach(q);Piwik.on("TrackerSetup",q);Piwik.retryMissedPluginCalls();aE();aM.fetch();Piwik.on("TrackerAdded",function(){if(A){Piwik.HeatmapSessionRecording.enable()}else{aM.fetch()}})}else{Piwik.on("TrackerSetup",q);Piwik.on("MatomoInitialized",function(){aE();if(L||A){aM.fetch()}Piwik.on("TrackerAdded",function(){if(L){aM.fetch()}else{if(A){Piwik.HeatmapSessionRecording.enable()}}})})}}ad=au.generateUniqueId(); if("object"===typeof I.Piwik){ah()}else{if("object"!==typeof I.matomoPluginAsyncInit){I.matomoPluginAsyncInit=[]}I.matomoPluginAsyncInit.push(ah)}})(); /* END GENERATED: tracker.min.js */ /* GENERATED: tracker.min.js */ /*!! * Copyright (C) InnoCraft Ltd - All rights reserved. * * All information contained herein is, and remains the property of InnoCraft Ltd. * * @link https://www.innocraft.com/ * @license For license details see https://www.innocraft.com/license */ (function(){var l=false;var r=true;var q=null;var k=false;var j="FIELD_CHECKABLE";var y="FIELD_SELECTABLE";var h="FIELD_TEXT";var n=["password","text","url","tel","email","search","",null];var a=["color","date","datetime","datetime-local","month","number","range","time","week"];var b=["radio","checkbox"];var p=["button","submit","hidden","reset"];var u=30000;var z=[];var o=500;function e(){if(l&&"undefined"!==typeof console&&console&&console.debug){console.debug.apply(console,arguments)}}var c={getAttribute:function(B,A){if(B&&B.getAttribute&&A){return B.getAttribute(A)}return null},hasClass:function(B,A){if(!B||!B.className){return false}return(" "+B.className+" ").indexOf(" "+A+" ")>-1},hasNodeAttribute:function(B,A){if(B&&B.hasAttribute){return B.hasAttribute(A) }if(B&&B.attributes){var C=(typeof B.attributes[A]);return C!=="undefined"}return false},isIgnored:function(A){if(this.hasNodeAttribute(A,"data-matomo-ignore")){return true}if(this.hasNodeAttribute(A,"data-piwik-ignore")){return true}return false},getTagName:function(A){if(A&&A.tagName){return(""+A.tagName).toLowerCase()}return null},findAllFormElements:function(A){if(A&&A.querySelectorAll){return A.querySelectorAll("form, [data-piwik-form], [data-matomo-form]")}return[]},findAllFieldElements:function(A){if(A&&A.querySelectorAll){return A.querySelectorAll("input,select,textarea,button,textarea")}return[]},findFormTrackerInstance:function(B,A){if("undefined"===typeof A){A=100}if(A<=0||!B){return null}if(B.formTrackerInstance){return B.formTrackerInstance}if(B.parentNode){return this.findFormTrackerInstance(B.parentNode,--A)}}};var v={isArray:function(A){return typeof A==="object"&&A!==null&&typeof A.length==="number"},indexOfArray:function(C,B){if(!C){return -1}if(C.indexOf){return C.indexOf(B) }if(!this.isArray(C)){return -1}for(var A=0;A<C.length;A++){if(C[A]===B){return A}}return -1},getCurrentTime:function(){return new Date().getTime()},isNumber:function(A){return !isNaN(A)},generateUniqueId:function(){var D="";var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";var C=B.length;for(var A=0;A<6;A++){D+=B.charAt(Math.floor(Math.random()*C))}return D},paramsToQueryString:function(C){if(!C){C={}}var B="";for(var A in C){if(Object.prototype.hasOwnProperty.call(C,A)){if(C[A]===null){continue}B+=A+"="+encodeURIComponent(C[A])+"&"}}return B}};var g={getPiwikTrackers:function(){if(null===q){if("object"===typeof Piwik&&Piwik.getAsyncTrackers){return Piwik.getAsyncTrackers()}}if(v.isArray(q)){return q}return[]},trackParams:function(F,E){if(!r){return}var C=v.paramsToQueryString(F);if(C){if(C.substr(-1)!=="&"){C+="&"}C+="ca=1"}if(!C||C===""){return}var A=this.getPiwikTrackers();if(A&&A.length){var B=0,D;for(B;B<A.length;B++){D=A[B];if(!D.noOfFormRequestsSent){D.noOfFormRequestsSent=0 }if(D.noOfFormRequestsSent>o){e("maximum number of form request allowed for a tracker reached");continue}if(E&&500===D.getLinkTrackingTimer()&&D.setLinkTrackingTimer){D.setLinkTrackingTimer(650)}if(D&&(!D.FormAnalytics||D.FormAnalytics.isEnabled())){D.queueRequest(C);D.noOfFormRequestsSent++}}}if(l){e("trackProgress: "+Piwik.JSON.stringify(F))}}};function f(){ Matomo.FormAnalytics.setMaxNoOfFormRequestsAllowed(500); ;if(typeof window==="object"&&"function"===typeof window.piwikFormAnalyticsAsyncInit){window.piwikFormAnalyticsAsyncInit()}if(typeof window==="object"&&"function"===typeof window.matomoFormAnalyticsAsyncInit){window.matomoFormAnalyticsAsyncInit()}k=true}function t(A){this.reset();this.fields=[];this.firstFieldEngagementDate=null;this.lastFieldEngagementDate=null;this.hesitationTimeTracked=false;this.formStartTracked=false;this.node=A;this.formId=c.getAttribute(A,"id");this.formName=c.getAttribute(A,"data-matomo-name");if(!this.formName){this.formName=c.getAttribute(A,"data-piwik-name")}if(!this.formName){this.formName=c.getAttribute(A,"name") }this.entryFieldName="";this.exitFieldName="";this.lastFocusedFieldName="";this.fieldsWithUpdates=[];this.fieldNodes=[];this.initialFormViewLoggedWithTrackers=[];this.trackingTimeout=null;this.timeLastTrackingRequest=0;this.timeOffWindowBeforeEngagement=0;this.timeOffWindowSinceEngagement=0;Piwik.DOM.addEventListener(window,"focus",(function(B){return function(){if(!B.timeWindowBlur){return}var C=v.getCurrentTime()-B.timeWindowBlur;B.timeWindowBlur=null;if(C<0){C=0}if(B.timeLastTrackingRequest){B.timeLastTrackingRequest=B.timeLastTrackingRequest+C}if(B.firstFieldEngagementDate){B.timeOffWindowSinceEngagement+=C;e("time off engaged "+B.timeOffWindowSinceEngagement)}else{B.timeOffWindowBeforeEngagement+=C;e("time off not engaged "+B.timeOffWindowBeforeEngagement)}}})(this));Piwik.DOM.addEventListener(window,"blur",(function(B){return function(){B.timeWindowBlur=v.getCurrentTime();e("window blur")}})(this));Piwik.DOM.addEventListener(A,"submit",(function(B){return function(){e("form submit"); B.trackFormSubmit()}})(this))}t.prototype.reset=function(){this.detectionDate=v.getCurrentTime();this.formViewId=v.generateUniqueId();this.fieldsWithUpdates=[];this.firstFieldEngagementDate=null;this.lastFieldEngagementDate=null;this.timeOffWindowSinceEngagement=0;this.timeOffWindowBeforeEngagement=0;this.formStartTracked=false;if(this.fields&&this.fields.length){for(var A=0;A<this.fields.length;A++){this.fields[A].resetOnFormSubmit()}}};t.prototype.trackFormSubmit=function(){this.setEngagedWithForm();var A=this.lastFieldEngagementDate-this.firstFieldEngagementDate-this.timeOffWindowSinceEngagement;if(A<0){A=0}var B={fa_su:1,fa_tts:A};this.sendUpdate(this.fields,B,true);this.reset()};t.prototype.trackFormConversion=function(){if(!this.timeLastTrackingRequest){this.sendUpdate([],{fa_co:1});return}var A=(v.getCurrentTime()-this.timeLastTrackingRequest)/1000;if(A<2){var B=this;setTimeout(function(){B.sendUpdate([],{fa_co:1})},800)}else{this.sendUpdate([],{fa_co:1})}};t.prototype.shouldBeTracked=function(){return !!this.fields&&!!this.fields.length };t.prototype.trackInitialFormView=function(){if(!this.initialFormViewLoggedWithTrackers||!this.initialFormViewLoggedWithTrackers.length){this.initialFormViewLoggedWithTrackers=g.getPiwikTrackers();this.sendUpdate([],{fa_fv:"1"})}};t.prototype.setEngagedWithForm=function(A){this.lastFieldEngagementDate=v.getCurrentTime();if(!this.firstFieldEngagementDate){this.firstFieldEngagementDate=this.lastFieldEngagementDate}};t.prototype.trackFieldUpdate=function(A){if(v.indexOfArray(this.fieldsWithUpdates,A)===-1){this.fieldsWithUpdates.push(A)}this.scheduleSendUpdate()};t.prototype.scheduleSendUpdate=function(){if(this.trackingTimeout){clearTimeout(this.trackingTimeout);this.trackingTimeout=null}var A=this;this.trackingTimeout=setTimeout(function(){var B=A.fieldsWithUpdates;A.fieldsWithUpdates=[];A.sendUpdate(B)},u)};t.prototype.sendUpdate=function(D,G,F){if(!this.shouldBeTracked()){return}if(this.trackingTimeout){clearTimeout(this.trackingTimeout);this.trackingTimeout=null}if(!D){D=[]}var A=[]; for(var C=0;C<D.length;C++){A.push(D[C].getTrackingParams())}var E={fa_vid:this.formViewId,fa_id:this.formId,fa_name:this.formName};if(this.entryFieldName){E.fa_ef=this.entryFieldName}if(this.exitFieldName){E.fa_lf=this.exitFieldName}if(A.length){E.fa_fields=Piwik.JSON.stringify(A)}if(this.firstFieldEngagementDate){if(!this.formStartTracked){E.fa_st="1";this.formStartTracked=true}if(!this.hesitationTimeTracked){E.fa_ht=this.firstFieldEngagementDate-this.detectionDate-this.timeOffWindowBeforeEngagement;this.hesitationTimeTracked=true}if(this.lastFieldEngagementDate&&this.timeLastTrackingRequest){E.fa_ts=this.lastFieldEngagementDate-this.timeLastTrackingRequest;if(E.fa_ts<0){E.fa_ts=0}}else{if(this.lastFieldEngagementDate&&!this.timeLastTrackingRequest){E.fa_ts=this.lastFieldEngagementDate-this.firstFieldEngagementDate-this.timeOffWindowSinceEngagement;if(E.fa_ts<0){E.fa_ts=0}}}this.timeLastTrackingRequest=v.getCurrentTime()}if(G){for(var B in G){if(Object.prototype.hasOwnProperty.call(G,B)){E[B]=G[B] }}}if("undefined"===typeof F){F=false}g.trackParams(E,F)};t.prototype.scanForFields=function(){var D,C=0,G,F,B;F=c.findAllFieldElements(this.node);for(D=0;D<F.length;D++){if(!F[D]){continue}if(this.fields&&this.fields.length&&this.fields.length>2500){continue}B=F[D];if(c.isIgnored(B)||v.indexOfArray(this.fieldNodes,B)>-1){continue}var A=c.getTagName(B);var E=c.getAttribute(B,"type");if(v.indexOfArray(p,E)!==-1){continue}else{if("button"===A){continue}}if(A==="input"&&!E){E="text"}var H=c.getAttribute(B,"data-matomo-name");if(!H){H=c.getAttribute(B,"data-piwik-name");if(!H){H=c.getAttribute(B,"name");if(!H){H=c.getAttribute(B,"id");if(!H){continue}}}}this.fieldNodes.push(B);var I=false;for(C=0;C<this.fields.length;C++){if(this.fields[C]&&this.fields[C].fieldName===H){I=true;this.fields[C].addNode(B);break}}if(!I){G=new w(this,F[D],A,E,H);this.addFormField(G)}}};t.prototype.addFormField=function(A){this.fields.push(A)};function w(E,D,C,B,F){this.discoveredDate=v.getCurrentTime();this.tracker=E; this.timespent=0;this.hesitationtime=0;this.nodes=[];this.tagName=C;this.fieldName=F;this.fieldType=B;this.startFocus=null;this.timeLastChange=null;this.numChanges=0;this.numFocus=0;this.numDeletes=0;this.numCursor=0;this.canCountChange=true;this.isFocusedCausedAuto=c.hasNodeAttribute(D,"autofocus");if(this.tagName==="select"){this.category=y}else{if(this.tagName==="textarea"){this.category=h}else{if(v.indexOfArray(b,this.fieldType)!==-1){this.category=j}else{if(v.indexOfArray(a,this.fieldType)!==-1){this.category=y}else{this.category=h}}}}this.addNode(D);var A=(D===document.activeElement);if(A){this.onFocus()}}w.prototype.addNode=function(B){this.nodes.push(B);function A(E,C,G){if(E&&"object"===typeof tinymce&&"function"===typeof tinymce.get&&c.getTagName(E)==="textarea"&&c.getAttribute(E,"id")){var F=c.getAttribute(E,"id");var D=tinymce.get(F);if(D){D.on(C,G);return}}else{if(E&&"function"===typeof jQuery&&c.getTagName(E)==="select"&&c.hasClass(E,"select2-hidden-accessible")&&E.nextSibling){if(C==="focus"){C="select2:open" }else{if(C==="blur"){C="select2:close"}}jQuery(E).on(C,G);return}}Piwik.DOM.addEventListener(E,C,G)}A(B,"focus",(function(C){return function(D){if(C.isAutoFocus()){e("field autofocus "+C.fieldName)}else{e("field focus "+C.fieldName)}C.onFocus()}})(this));A(B,"blur",(function(C){return function(){e("field blur "+C.fieldName);C.onBlur()}})(this));if(this.category===h){A(B,"keyup",(function(C){return function(F){var E=F.which||F.keyCode;var D=[9,16,17,18,20,27,91];if((E&&v.indexOfArray(D,E)!==-1)||F.isCtrlKey){return}if(E>=37&&E<=40){if(!C.isBlank()){C.numCursor++;C.tracker.trackFieldUpdate(C)}return}if(E==8||E==46){if(!C.isBlank()){C.numDeletes++;C.tracker.trackFieldUpdate(C)}return}e("field text keyup "+C.fieldName);C.onChange()}})(this));A(B,"paste",(function(C){return function(){e("field text paste "+C.fieldName);C.onChange()}})(this))}else{A(B,"change",(function(C){return function(){e("field change "+C.fieldName);C.onChange()}})(this))}};w.prototype.resetOnFormSubmit=function(){this.hesitationtime=0; this.timespent=0;this.numFocus=0;this.numDeletes=0;this.numCursor=0;this.numChanges=0;this.startFocus=null;this.timeLastChange=null;this.canCountChange=true;this.hasChangedValueSinceFocus=false;this.isFocusedCausedAuto=false};w.prototype.isAutoFocus=function(){if(!this.isFocusedCausedAuto){return false}if(this.tracker.entryFieldName&&this.tracker.entryFieldName!==this.fieldName){this.isFocusedCausedAuto=false}if(this.tracker.exitFieldName&&this.tracker.exitFieldName!==this.fieldName){this.isFocusedCausedAuto=false}return this.isFocusedCausedAuto};w.prototype.getTrackingParams=function(){return{fa_fts:this.getTimeSpent(),fa_fht:this.getHesitationTime(),fa_fb:this.isBlank(),fa_fn:this.fieldName,fa_fch:this.numChanges,fa_ff:this.numFocus,fa_fd:this.numDeletes,fa_fcu:this.numCursor,fa_ft:this.fieldType||this.tagName,fa_fs:this.getFieldSize()}};w.prototype.isBlank=function(){if(this.category===j){for(var A=0;A<this.nodes.length;A++){if(this.nodes[A]&&this.nodes[A].checked){return false}}return true }if(!this.nodes[0]){return false}var B=this.nodes[0];if("undefined"===typeof B.value){return true}var C=B.value;if(null===C||false===C||""===C){return true}return String(C).length===0};w.prototype.getFieldSize=function(){if(this.category===h){if(this.nodes[0]&&this.nodes[0].value){return String(this.nodes[0].value).length}else{return 0}}else{return -1}};w.prototype.getTimeSpent=function(){if(this.numChanges&&!this.timeSpent){this.timeSpent=1}if(!this.startFocus||this.isAutoFocus()){return this.timespent}if(this.timeLastChange){var A=this.timeLastChange-this.startFocus;if(A<0){A=0}return this.timespent+A}return this.timespent+v.getCurrentTime()-this.startFocus};w.prototype.getHesitationTime=function(){if(this.numChanges||!this.startFocus||this.isAutoFocus()){return this.hesitationtime}var A=v.getCurrentTime();return this.hesitationtime+(A-this.startFocus)};w.prototype.onFocus=function(){this.startFocus=v.getCurrentTime();var A=this.fieldName!==this.tracker.lastFocusedFieldName;if(A&&this.tracker.lastFocusedFieldName){this.isFocusedCausedAuto=false }this.timeLastChange=null;this.hasChangedValueSinceFocus=false;this.tracker.lastFocusedFieldName=this.fieldName;if(A){this.canCountChange=true}if(A&&!this.isAutoFocus()){this.numFocus++;this.tracker.setEngagedWithForm();this.tracker.trackFieldUpdate(this);this.tracker.exitFieldName=this.fieldName;this.tracker.scheduleSendUpdate()}};w.prototype.onBlur=function(){if(!this.startFocus){return}if(this.hasChangedValueSinceFocus){if(this.timeLastChange&&this.startFocus){this.timespent+=(this.timeLastChange-this.startFocus)}this.timeLastChange=null;this.startFocus=null;return}if(!this.isAutoFocus()){var A=v.getCurrentTime();this.timespent+=A-this.startFocus;if(!this.numChanges){this.hesitationtime+=A-this.startFocus}this.tracker.setEngagedWithForm();this.tracker.trackFieldUpdate(this)}this.startFocus=null};w.prototype.onChange=function(){this.timeLastChange=v.getCurrentTime();if(this.isAutoFocus()){this.startFocus=this.timeLastChange}else{if(!this.startFocus){return}}this.isFocusedCausedAuto=false; this.hasChangedValueSinceFocus=true;if(!this.numChanges){this.hesitationtime+=this.timeLastChange-this.startFocus}if(this.canCountChange){this.numChanges++;this.canCountChange=false}if(!this.tracker.entryFieldName){this.tracker.entryFieldName=this.fieldName}this.tracker.setEngagedWithForm();this.tracker.trackFieldUpdate(this)};function x(C,A){if(!r){return}if(!document.querySelectorAll){return}var B;if(C&&C.formTrackerInstance){B=C.formTrackerInstance;B.scanForFields()}else{if(!c.isIgnored(C)){B=new t(C);B.scanForFields();z.push(B);C.formTrackerInstance=B}}if(A&&B&&B.shouldBeTracked()){B.trackInitialFormView()}return B}function d(C){if("undefined"===typeof C){C=document}var A=c.findAllFormElements(C);for(var B=0;B<A.length;B++){x(A[B],true)}}function i(){Piwik.DOM.onReady(function(){var A=g.getPiwikTrackers();if(!A||!v.isArray(A)||!A.length){return}d(document)});Piwik.DOM.onLoad(function(){var A=g.getPiwikTrackers();if(!A||!v.isArray(A)||!A.length){return}d(document)})}function m(A){if("undefined"!==typeof A.FormAnalytics){return }A.FormAnalytics={enabled:true,enable:function(){this.enabled=true},disable:function(){this.enabled=false},isEnabled:function(){return r&&this.enabled}}}function s(){if("object"===typeof window&&"object"===typeof window.Piwik&&"object"===typeof window.Piwik.FormAnalytics){return}if("object"===typeof window&&!window.Piwik){return}Piwik.FormAnalytics={element:c,utils:v,tracking:g,FormField:w,FormTracker:t,disableFormAnalytics:function(){r=false},enableFormAnalytics:function(){r=true},isFormAnalyticsEnabled:function(){return r},setMatomoTrackers:function(A){this.setPiwikTrackers(A)},setPiwikTrackers:function(A){if(A===null){q=null;return}if(!v.isArray(A)){A=[A]}q=A;if(k){i()}},setTrackingTimer:function(A){if(A<5){throw new Error("Delay needs to be at least five")}u=parseInt(A,10)},enableDebugMode:function(){l=true},scanForForms:d,trackFormSubmit:function(B){var A=c.findFormTrackerInstance(B);if(A){A.trackFormSubmit()}},trackFormConversion:function(A,C){if("string"===typeof A||"string"===typeof C){g.trackParams({fa_vid:v.generateUniqueId(),fa_id:C,fa_name:A,fa_co:1}); return}var B=c.findFormTrackerInstance(A);if(B){B.trackFormConversion()}},trackForm:function(A){return x(A,true)},setMaxNoOfFormRequestsAllowed:function(A){if(A==parseInt(A)){o=A}}};Piwik.addPlugin("FormAnalytics",{log:function(F){if(!r||!F||!F.tracker){return""}var C=F.tracker;if(C.FormAnalytics&&!C.FormAnalytics.isEnabled()){return""}var A=c.findAllFormElements(document);var E="";for(var B=0;B<A.length;B++){var D=x(A[B],false);if(D&&D.shouldBeTracked()&&v.indexOfArray(D.initialFormViewLoggedWithTrackers,C)===-1){D.initialFormViewLoggedWithTrackers.push(C);if(D.formViewId!==null){E+="&fa_fp["+B+"][fa_vid]="+encodeURIComponent(D.formViewId)}if(D.formId!==null){E+="&fa_fp["+B+"][fa_id]="+encodeURIComponent(D.formId)}if(D.formName!==null){E+="&fa_fp["+B+"][fa_name]="+encodeURIComponent(D.formName)}E+="&fa_fp["+B+"][fa_fv]=1"}}if(E){e("sending request with pageview"+E);return"&fa_pv=1"+E}return""},unload:function(){var B;for(var A=0;A<z.length;A++){B=z[A];if(B&&B.trackingTimeout){e("before unload"); clearTimeout(B.trackingTimeout);B.sendUpdate(B.fieldsWithUpdates,{},true)}}}});if(window.Piwik.initialized){Piwik.on("TrackerSetup",m);Piwik.retryMissedPluginCalls();f();i();Piwik.on("TrackerAdded",function(){setTimeout(i,700)})}else{Piwik.on("TrackerSetup",m);Piwik.on("MatomoInitialized",function(){f();i();Piwik.on("TrackerAdded",function(){setTimeout(i,700)})})}}if("object"===typeof window.Piwik){s()}else{if("object"!==typeof window.matomoPluginAsyncInit){window.matomoPluginAsyncInit=[]}window.matomoPluginAsyncInit.push(s)}})(); /* END GENERATED: tracker.min.js */ /* GENERATED: tracker.min.js */ /*!! * Copyright (C) InnoCraft Ltd - All rights reserved. * * All information contained herein is, and remains the property of InnoCraft Ltd. * * @link https://www.innocraft.com/ * @license For license details see https://www.innocraft.com/license */ (function(){var a="original";var n=false;var i=true;var h="PiwikAbTesting"; window.matomoAbTestingCampaignUrlParamList = ["mtm_campaign","matomo_campaign","mtm_cpn","pk_campaign","piwik_campaign","pk_cpn","utm_campaign","mtm_keyword","matomo_kwd","mtm_kwd","pk_keyword","piwik_kwd","pk_kwd","utm_term","mtm_source","pk_source","utm_source","mtm_medium","pk_medium","utm_medium","mtm_content","pk_content","utm_content","mtm_cid","pk_cid","utm_id","mtm_clid","mtm_group","pk_group","mtm_placement","pk_placement"]; ;function m(){if(n&&"undefined"!==typeof console&&console&&console.debug){console.debug.apply(console,arguments)}}function b(o){m(o);if(typeof k!=="undefined"&&k&&k.THROW_ERRORS){throw new Error(o)}}var j={isItpBrowser:function(){return navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&navigator.userAgent.indexOf("CriOS")===-1&&navigator.userAgent.indexOf("FxiOS")===-1},getRandomNumber:function(p,o){return parseInt(Math.round(Math.random()*(o-p)+p,10))},hasLocalStorage:function(){if(typeof localStorage==="undefined"){return false}var p=new Date();var o;try{localStorage.setItem(p,p);o=localStorage.getItem(p)==p; localStorage.removeItem(p);return o&&localStorage&&typeof JSON==="object"&&typeof JSON.parse==="function"}catch(q){return false}},decodeSafe:function(p){try{return window.decodeURIComponent(p)}catch(o){return window.unescape(p)}},getQueryParameter:function(o,s){o=(""+o).toLowerCase();s=(""+s).toLowerCase();var r=new RegExp("[?&]"+s+"(=([^&#]*)|&|#|$)","i");var q=r.exec(o);if(!q){return null}if(!q[2]){return""}var p=q[2].replace(/\+/g," ");return this.decodeSafe(p)},removeQueryAndHashFromUrl:function(p){var o=p.indexOf("#");if(o!==-1){p=p.substr(0,o)}var q=p.indexOf("?");if(q!==-1){p=p.substr(0,q)}return p},removeProtocol:function(p){var o=(""+p).indexOf("://");if(o!==-1&&o<9){return p.substr(o)}return p},removeWwwSubdomain:function(o){return(""+o).replace("://www.","://")},getVariationTest:function(o){if(o&&o.search){var p=j.getQueryParameter(o.search,"pk_ab_test");if(p){m("requested variation test "+p);return String(p).split(",")}}return[]},getQueryParamDelimiter:function(o){if(o&&(o.indexOf("?")!==-1)){return"&" }return"?"},appendCampaignUrlParamsIfPresent:function(q,r){if(typeof window.matomoAbTestingCampaignUrlParamList==="undefined"){return r}for(var s=0;s<window.matomoAbTestingCampaignUrlParamList.length;s++){const u=window.matomoAbTestingCampaignUrlParamList[s];const o=j.getQueryParameter(q.search,u);if(o&&!j.getQueryParameter(r,u)){r+=j.getQueryParamDelimiter(r)+u+"="+o}}const p=j.getQueryParameter(q.search,"utm_content");const t=j.getQueryParameter(q.search,"utm_id");if(p&&!j.getQueryParameter(r,"utm_content")){r+=j.getQueryParamDelimiter(r)+"utm_content="+p}if(t&&!j.getQueryParameter(r,"utm_id")){r+=j.getQueryParamDelimiter(r)+"utm_id="+t}return r}};var d={local:function(){var p=localStorage.getItem(h)||"{}";if(p&&p!=="{}"){localStorage.setItem(h,p)}var o=JSON.parse(p)||{};this.set=function(s,q,r){q=s+":"+q;o[q]=r;localStorage.setItem(h,JSON.stringify(o))};this.get=function(r,q){q=r+":"+q;if(o&&q in o){return o[q]}};this.clearAll=function(){o={};localStorage.setItem(h,JSON.stringify({})) }},cookies:function(){this.set=function(s,q,r){q=h+":"+s+":"+q;var t=365;var p=new Date();p.setTime(p.getTime()+(t*24*60*60*1000));var o="; expires="+p.toGMTString();document.cookie=q+"="+encodeURIComponent(r)+"; expires="+o+"; path=/;SameSite=Lax"};this.get=function(q,p){p=h+":"+q+":"+p;var r=p+"=";var t=document.cookie.split(";");for(var o=0;o<t.length;o++){var s=t[o];s=(""+s).replace(/^\s+/,"");if(s.indexOf(r)==0){return decodeURIComponent(s.substring(r.length,s.length))}}};this.clearAll=function(){}}};var e={location:window.location,matchesTarget:function(o){if(!o||!o.type||!o.attribute){return true}var p=e._getValueForAttribute(o);return e._matchesAttribute(o,p)},matchesTargets:function(s,q){if(q&&q.length){var o;for(var p=0;p<q.length;p++){o=q[p];if(this.matchesTarget(o)){return false}}}if(s&&s.length){var r;for(var p=0;p<s.length;p++){r=s[p];if(this.matchesTarget(r)){return true}}return false}return true},matchesDate:function(q,p,r){var s=q.getTime()+(q.getTimezoneOffset()*60000); try{var u=new Date(p)}catch(t){if(p){b("Invalid startDateTime given")}}try{var o=new Date(r)}catch(t){if(r){b("Invalid startDateTime given")}}if(p&&isNaN&&isNaN(u.getTime())){b("Invalid startDateTime given")}if(r&&isNaN&&isNaN(o.getTime())){b("Invalid endDateTime given")}if(p&&s<(u.getTime()+(u.getTimezoneOffset()*60000))){return false}if(r&&s>(o.getTime()+(o.getTimezoneOffset()*60000))){return false}return true},_getValueForAttribute:function(p){var o=(""+p.attribute).toLowerCase();switch(o){case k.TARGET_ATTRIBUTE_URL:return j.decodeSafe(this.location.href);case k.TARGET_ATTRIBUTE_PATH:return j.decodeSafe(this.location.pathname);case k.TARGET_ATTRIBUTE_URLPARAM:return j.getQueryParameter(this.location.search,p.value)}},_matchesAttribute:function(q,o){var p=(""+q.attribute).toLowerCase();switch(p){case k.TARGET_ATTRIBUTE_URL:case k.TARGET_ATTRIBUTE_PATH:return this._matchesTargetValue(o,q.type,q.inverted,q.value);case k.TARGET_ATTRIBUTE_URLPARAM:return this._matchesTargetValue(o,q.type,q.inverted,q.value2); default:b("Invalid target attribute")}return false},_matchesTargetValue:function(q,p,s,o){var r=false;var s=!!s&&s!=="0";if("string"===typeof q){q=q.toLowerCase()}if("string"===typeof o&&p!=="regexp"){o=o.toLowerCase()}switch(p){case k.TARGET_TYPE_ANY:r=true;break;case k.TARGET_TYPE_EXISTS:if(typeof q!=="undefined"&&q!==null){r=true}break;case k.TARGET_TYPE_EQUALS_SIMPLE:if(q&&q===String(o)){r=true}q=j.removeQueryAndHashFromUrl(q);q=j.removeProtocol(q);o=j.removeProtocol(o);q=j.removeWwwSubdomain(q);o=j.removeWwwSubdomain(o);if(q&&(q===String(o)||q+"/"===String(o)||q==="/"+o||q===o+"/"||q==="/"+o+"/")){r=true}break;case k.TARGET_TYPE_EQUALS_EXACTLY:if(q&&q===String(o)){r=true}if(q&&q.indexOf("://")>0&&q.charAt(q.length-1)==="/"&&3===(q.split("/").length-1)&&q===(o+"/")){r=true}if(o&&o.indexOf("://")>0&&o.charAt(o.length-1)==="/"&&3===(o.split("/").length-1)&&o===(q+"/")){r=true}break;case k.TARGET_TYPE_CONTAINS:if(q&&q.indexOf(String(o))!==-1){r=true}break;case k.TARGET_TYPE_STARTS_WITH:if(q&&q.indexOf(String(o))===0){r=true }break;case k.TARGET_TYPE_REGEXP:if(new RegExp(o).test(q)){r=true}break;default:b("Invalid target type given")}if(s){return !r}return r}};var k=function(p){this.options=p?p:{};m("creating experiment with options",p);if(!this.options.name){b('Missing experiment name in options. Use eg: new PiwikAbTesting.Experiment({name: "MyName"})')}if(!this.options.variations){b('Missing "variations" option. Use eg: new PiwikAbTesting.Experiment({variations: [{...}, {...}]})')}if(typeof this.options.variations!=="object"||!this.options.variations.length){b('"variations" has to be an array')}var q;for(q=0;q<this.options.variations.length;q++){if(typeof this.options.variations[q]!=="object"){b("Each variation has to be an object")}if(!this.options.variations[q].name){b("Missing variation name")}if(typeof this.options.variations[q].activate!=="function"){b('A variation does not implement the "activate" method'+JSON.stringify(p))}}if(this.options.trigger&&typeof this.options.trigger!=="function"){b('The "trigger" option is not a function') }if(this.options.matomoTracker&&!this.options.piwikTracker){this.options.piwikTracker=this.options.matomoTracker}if(this.options.piwikTracker){if(typeof this.options.piwikTracker!=="object"){b("The Matomo tracker must be an instance of Piwik")}if(!this.options.piwikTracker.trackEvent){b("The Matomo instance does not implement the trackEvent method. Maybe a wrong Matomo instance is based as option?")}if(!this.options.piwikTracker.trackGoal){b("The Matomo instance does not implement the trackGoal method. Maybe a wrong Matomo instance is based as option?")}}if(this.options.percentage&&this.options.percentage<0||this.options.percentage>100){b("percentage has to be between 0 and 100")}this.name=null;this.variations=null;this.includedTargets=null;this.excludedTargets=null;this.startDateTime=null;this.endDateTime=null;this.percentage=100;this.piwikTracker=null;this.trigger=function(){return true};this._cacheForcedVariationName=null;if(j.hasLocalStorage()){m("using local storage");this.storage=new d.local() }else{m("using cookies storage");this.storage=new d.cookies()}var o;for(o in this.options){if(Object.prototype.hasOwnProperty.call(this.options,o)){this[o]=this.options[o]}}this._track=function(u,t){if(this.piwikTracker){this.piwikTracker[u].apply(this.piwikTracker,t)}else{if(typeof window._paq==="undefined"){window._paq=[]}t.unshift(u);window._paq.push(t)}m("sent tracking request",u,t)};this.trackUsedVariation=function(t){this._track("trackEvent",["abtesting",this.name,t])};this.trackGoal=function(t){if(t){this._track("trackGoal",[t])}};this._getVariationByName=function(u){u=(""+u).toLowerCase();for(var t=0;t<this.variations.length;t++){if((""+this.variations[t].name).toLowerCase()===u){return this.variations[t]}}};this._makeEvent=function(u){var t=this;var v=function(w){w()};if("undefined"!==typeof Piwik&&"undefined"!==typeof Piwik.DOM&&Piwik.DOM.onReady){v=Piwik.DOM.onReady}return{type:"activate",experiment:this,onReady:v,redirect:function(x){var w="pk_abe="+encodeURIComponent(t.name)+"&pk_abv="+encodeURIComponent(u.name); x+=j.getQueryParamDelimiter(x)+w;if(t.options.forwardUtmParams){x=j.appendCampaignUrlParamsIfPresent(window.location,x)}var z=Piwik.getAsyncTrackers();for(var y=0;y<z.length;y++){z[y].trackPageView=function(){};z[y].trackEvent=function(){};z[y].trackGoal=function(){}}if(window.location.href===x){return}window.location.replace(x)}}};this.forceVariation=function(w){this._cacheForcedVariationName=w;m(this.name,"forcing variation",w);var u=this._getVariationByName(w);var t=this.storage.set("variation",this.name,w);if(u&&u.activate){var v=this._makeEvent(u);u.activate.apply(u,[v])}this.trackUsedVariation(w);return t};this.getActivatedVariationName=function(){var t;if(this._cacheForcedVariationName){t=this._cacheForcedVariationName}else{t=this.storage.get("variation",this.name)}if(this._getVariationByName(t)){return t}};this._doVariationsIncludeOriginal=function(){for(var u=0;u<this.variations.length;u++){var t=this.variations[u];if(t&&t.name&&t.name===a){return true}}return false};this._getVariationDefaultPercentage=function(){var u=100; var x=this.variations.length;for(var w=0;w<this.variations.length;w++){var v=this.variations[w];if(v&&(v.percentage||v.percentage===0||v.percentage==="0")){u=u-parseInt(v.percentage,10);x--}}var t=Math.round(u/x);if(t>100){t=100}if(t<0){t=0}return t};this.getRandomVariationName=function(){var z=this._getVariationDefaultPercentage();var w=[];for(var x=0;x<this.variations.length;x++){var t=z;if(this.variations[x].percentage||this.variations[x].percentage===0||this.variations[x].percentage==="0"){t=this.variations[x].percentage}for(var v=0;v<t;v++){w.push(x)}}var u=j.getRandomNumber(0,w.length-1);var y=w[u];return this.variations[y].name};this._isInTestGroup=function(){var t=this.storage.get("isInTestGroup",this.name);if(typeof t!=="undefined"&&t!==null){return t==="1"?true:false}t=j.getRandomNumber(1,100)<=this.percentage;this.storage.set("isInTestGroup",this.name,t?"1":"0");return t};this.selectRandomVariation=function(){m(this.name,"select random variation");var t=this.getRandomVariationName(); this.forceVariation(t);return t};this.shouldTrigger=function(){if(!i){m(this.name,"wont run because feature is disabled");return false}if(!e.matchesDate(new Date(),this.startDateTime,this.endDateTime)){m(this.name,"wont run, scheduled date does not match");return false}if(!e.matchesTargets(this.includedTargets,this.excludedTargets)){m(this.name,"wont run, targets do not match");return false}if(!this.trigger()){m(this.name,"wont run, disabled by trigger method");return false}if(!this._isInTestGroup()){m(this.name,"wont run, not in test group");return false}return true};if(!this._doVariationsIncludeOriginal()){this.variations.push({name:a,activate:function(){}})}var r=j.getVariationTest(window.location||null);if(r&&r.length){for(var q=0;q<r.length;q++){if(this._getVariationByName(r[q])){m("going to test variation and disable tracking "+r[q]);this.trackUsedVariation=function(){};this.forceVariation(r[q]);return}}}if(!this.shouldTrigger()){m(this.name,"experiment should not trigger");return }m(this.name,"should trigger");var s=this.getActivatedVariationName();if(s){this.forceVariation(s)}else{m(this.name,"no existing variation found");this.selectRandomVariation()}};k.NAME_ORIGINAL_VARIATION=a;k.TARGET_ATTRIBUTE_URL="url";k.TARGET_ATTRIBUTE_PATH="path";k.TARGET_ATTRIBUTE_URLPARAM="urlparam";k.TARGET_TYPE_ANY="any";k.TARGET_TYPE_EXISTS="exists";k.TARGET_TYPE_EQUALS_SIMPLE="equals_simple";k.TARGET_TYPE_EQUALS_EXACTLY="equals_exactly";k.TARGET_TYPE_CONTAINS="contains";k.TARGET_TYPE_STARTS_WITH="starts_with";k.TARGET_TYPE_REGEXP="regexp";k.THROW_ERRORS=true;function f(){if(typeof window==="object"&&"function"===typeof window.piwikAbTestingAsyncInit){window.piwikAbTestingAsyncInit()}if(typeof window==="object"&&"function"===typeof window.matomoAbTestingAsyncInit){window.matomoAbTestingAsyncInit()}}var c=false;function g(){function o(){if(c){return}if("object"!==typeof Piwik){return}var r=Piwik.getAsyncTrackers();if(!r||!r.length){return}if(window.location&&j.getQueryParameter(window.location.search,"pk_abe")){c=true; var q=j.getQueryParameter(window.location.search,"pk_abe");var p=j.getQueryParameter(window.location.search,"pk_abv");Piwik.AbTesting.enter({experiment:q,variation:p});m("entered experiment from url parameters")}}Piwik.DOM.onReady(o);Piwik.DOM.onLoad(o)}function l(){if("object"===typeof window&&"object"===typeof window.Piwik&&"object"===typeof window.Piwik.AbTesting){m("wont initialize, AbTesting already loaded");return}if("object"===typeof window&&"object"!==typeof window.Piwik){m("wont initialize, Matomo is not yet loaded");return}Piwik.AbTesting={utils:j,target:e,storage:d,Experiment:k,disableWhenItp:function(){if(j.isItpBrowser()){this.disable();m("disabled because itp browser")}},isEnabled:function(){return i},disable:function(){i=false},enable:function(){i=true},enter:function(o){if(o&&o.experiment){window._paq=window._paq||[];window._paq.push(["trackEvent","abtesting",o.experiment,o.variation||a]);m("entering user into an experiment",o)}else{m("not entering user into an experiment, missing parameter experiment") }},create:function(o){return new k(o)},enableDebugMode:function(){n=true}};if(window.Piwik.initialized){Piwik.retryMissedPluginCalls();f();g()}else{Piwik.on("MatomoInitialized",function(){f();g()})}if(j.isItpBrowser()&&j.hasLocalStorage()){new d.local()}}if(typeof piwikExposeAbTestingTarget!=="undefined"&&piwikExposeAbTestingTarget){window.piwikAbTestingTarget=e}if("object"===typeof window.Piwik){m("matomo was already loaded, initializing abTesting now");l()}else{if("object"!==typeof window.matomoPluginAsyncInit){window.matomoPluginAsyncInit=[]}window.matomoPluginAsyncInit.push(l);m("matomo not loaded yet, waiting for it to be loaded")}})(); /* END GENERATED: tracker.min.js */ /* GENERATED: tracker.min.js */ (function(){function a(){if("object"===typeof window&&!window.Matomo){return}window.Matomo.on("TrackerSetup",function(b){b.setCookieConsentGiven=function(){};b.rememberCookieConsentGiven=function(){};b.disableCookies()})}if("object"===typeof window.Matomo){a()}else{if("object"!==typeof window.matomoPluginAsyncInit){window.matomoPluginAsyncInit=[]}window.matomoPluginAsyncInit.push(a)}})(); /* END GENERATED: tracker.min.js */ (function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.matomoPluginAsyncInit&&window.matomoPluginAsyncInit.length){var a=0;for(a;a<window.matomoPluginAsyncInit.length;a++){if(typeof window.matomoPluginAsyncInit[a]==="function"){window.matomoPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit() }if(window&&window.matomoAsyncInit){window.matomoAsyncInit()}if(!window.Matomo.getAsyncTrackers().length){if(b()){window.Matomo.addTracker()}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&console&&console.error){console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c)}}}}}window.Matomo.trigger("MatomoInitialized",[]);window.Matomo.initialized=true}());(function(){var a=(typeof window.AnalyticsTracker);if(a==="undefined"){window.AnalyticsTracker=window.Matomo}}());if(typeof window.piwik_log!=="function"){window.piwik_log=function(c,e,g,f){function b(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var d,a=window.Matomo.getTracker(g,e); a.setDocumentTitle(c);a.setCustomData(f);d=b("tracker_pause");if(d){a.setLinkTrackingTimer(d)}d=b("download_extensions");if(d){a.setDownloadExtensions(d)}d=b("hosts_alias");if(d){a.setDomains(d)}d=b("ignore_classes");if(d){a.setIgnoreClasses(d)}a.trackPageView();if(b("install_tracker")){piwik_track=function(i,j,k,h){a.setSiteId(j);a.setTrackerUrl(k);a.trackLink(i,h)};a.enableLinkTracking()}}} /*!! @license-end */;