// Sonde Piwik /*!! * Piwik - free/libre analytics platform * * JavaScript tracking client * * @link https://piwik.org * @source https://github.com/piwik/piwik/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 JSON_PIWIK!=="object"&&typeof window.JSON==="object"&&window.JSON.stringify&&window.JSON.parse){JSON_PIWIK=window.JSON}else{(function(){var a={}; /*!! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */ (function(){var c=typeof define==="function"&&define.amd;var e={"function":true,object:true};var h=e[typeof a]&&a&&!a.nodeType&&a;var i=e[typeof window]&&window||this,b=h&&e[typeof module]&&module&&!module.nodeType&&typeof global=="object"&&global;if(b&&(b.global===b||b.window===b||b.self===b)){i=b}function j(ab,V){ab||(ab=i.Object());V||(V=i.Object()); var K=ab.Number||i.Number,R=ab.String||i.String,x=ab.Object||i.Object,S=ab.Date||i.Date,T=ab.SyntaxError||i.SyntaxError,aa=ab.TypeError||i.TypeError,J=ab.Math||i.Math,Y=ab.JSON||i.JSON;if(typeof Y=="object"&&Y){V.stringify=Y.stringify;V.parse=Y.parse}var n=x.prototype,u=n.toString,r,m,L;var B=new S(-3509827334573292);try{B=B.getUTCFullYear()==-109252&&B.getUTCMonth()===0&&B.getUTCDate()===1&&B.getUTCHours()==10&&B.getUTCMinutes()==37&&B.getUTCSeconds()==6&&B.getUTCMilliseconds()==708}catch(v){}function o(ac){if(o[ac]!==L){return o[ac]}var ad;if(ac=="bug-string-char-index"){ad="a"[0]!="a"}else{if(ac=="json"){ad=o("json-stringify")&&o("json-parse")}else{var ak,ah='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if(ac=="json-stringify"){var ai=V.stringify,aj=typeof ai=="function"&&B;if(aj){(ak=function(){return 1}).toJSON=ak;try{aj=ai(0)==="0"&&ai(new K())==="0"&&ai(new R())=='""'&&ai(u)===L&&ai(L)===L&&ai()===L&&ai(ak)==="1"&&ai([ak])=="[1]"&&ai([L])=="[null]"&&ai(null)=="null"&&ai([L,u,null])=="[null,null,null]"&&ai({a:[ak,true,false,null,"\x00\b\n\f\r\t"]})==ah&&ai(null,ak)==="1"&&ai([1,2],null,1)=="[\n 1,\n 2\n]"&&ai(new S(-8640000000000000))=='"-271821-04-20T00:00:00.000Z"'&&ai(new S(8640000000000000))=='"+275760-09-13T00:00:00.000Z"'&&ai(new S(-62198755200000))=='"-000001-01-01T00:00:00.000Z"'&&ai(new S(-1))=='"1969-12-31T23:59:59.999Z"' }catch(ae){aj=false}}ad=aj}if(ac=="json-parse"){var ag=V.parse;if(typeof ag=="function"){try{if(ag("0")===0&&!ag(false)){ak=ag(ah);var af=ak.a.length==5&&ak.a[0]===1;if(af){try{af=!ag('"\t"')}catch(ae){}if(af){try{af=ag("01")!==1}catch(ae){}}if(af){try{af=ag("1.")!==1}catch(ae){}}}}}catch(ae){af=false}}ad=af}}}return o[ac]=!!ad}if(!o("json")){var U="[object Function]",Q="[object Date]",N="[object Number]",O="[object String]",E="[object Array]",A="[object Boolean]";var F=o("bug-string-char-index");if(!B){var s=J.floor;var Z=[0,31,59,90,120,151,181,212,243,273,304,334];var D=function(ac,ad){return Z[ad]+365*(ac-1970)+s((ac-1969+(ad=+(ad>1)))/4)-s((ac-1901+ad)/100)+s((ac-1601+ad)/400)}}if(!(r=n.hasOwnProperty)){r=function(ae){var ac={},ad;if((ac.__proto__=null,ac.__proto__={toString:1},ac).toString!=u){r=function(ah){var ag=this.__proto__,af=ah in (this.__proto__=null,this);this.__proto__=ag;return af}}else{ad=ac.constructor;r=function(ag){var af=(this.constructor||ad).prototype;return ag in this&&!(ag in af&&this[ag]===af[ag]) }}ac=null;return r.call(this,ae)}}m=function(ae,ah){var af=0,ac,ad,ag;(ac=function(){this.valueOf=0}).prototype.valueOf=0;ad=new ac();for(ag in ad){if(r.call(ad,ag)){af++}}ac=ad=null;if(!af){ad=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];m=function(aj,an){var am=u.call(aj)==U,al,ak;var ai=!am&&typeof aj.constructor!="function"&&e[typeof aj.hasOwnProperty]&&aj.hasOwnProperty||r;for(al in aj){if(!(am&&al=="prototype")&&ai.call(aj,al)){an(al)}}for(ak=ad.length;al=ad[--ak];ai.call(aj,al)&&an(al)){}}}else{if(af==2){m=function(aj,am){var ai={},al=u.call(aj)==U,ak;for(ak in aj){if(!(al&&ak=="prototype")&&!r.call(ai,ak)&&(ai[ak]=1)&&r.call(aj,ak)){am(ak)}}}}else{m=function(aj,am){var al=u.call(aj)==U,ak,ai;for(ak in aj){if(!(al&&ak=="prototype")&&r.call(aj,ak)&&!(ai=ak==="constructor")){am(ak)}}if(ai||r.call(aj,(ak="constructor"))){am(ak)}}}}return m(ae,ah)};if(!o("json-stringify")){var q={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"}; var I="000000";var t=function(ac,ad){return(I+(ad||0)).slice(-ac)};var z="\\u00";var C=function(ai){var ad='"',ag=0,ah=ai.length,ac=!F||ah>10;var af=ac&&(F?ai.split(""):ai);for(;ag-1/0&&at<1/0){if(D){ay=s(at/86400000);for(ap=s(ay/365.2425)+1970-1;D(ap+1,0)<=ay;ap++){}for(az=s((ay-D(ap,0))/30.42);D(ap,az+1)<=ay;az++){}ay=1+ay-D(ap,az);ak=(at%86400000+86400000)%86400000;aw=s(ak/3600000)%24;au=s(ak/60000)%60;aq=s(ak/1000)%60;an=ak%1000}else{ap=at.getUTCFullYear();az=at.getUTCMonth();ay=at.getUTCDate();aw=at.getUTCHours();au=at.getUTCMinutes();aq=at.getUTCSeconds();an=at.getUTCMilliseconds()}at=(ap<=0||ap>=10000?(ap<0?"-":"+")+t(6,ap<0?-ap:ap):t(4,ap))+"-"+t(2,az+1)+"-"+t(2,ay)+"T"+t(2,aw)+":"+t(2,au)+":"+t(2,aq)+"."+t(3,an)+"Z" }else{at=null}}else{if(typeof at.toJSON=="function"&&((ae!=N&&ae!=O&&ae!=E)||r.call(at,"toJSON"))){at=at.toJSON(ai)}}}if(ag){at=ag.call(aA,ai,at)}if(at===null){return"null"}ae=u.call(at);if(ae==A){return""+at}else{if(ae==N){return at>-1/0&&at<1/0?""+at:"null"}else{if(ae==O){return C(""+at)}}}if(typeof at=="object"){for(af=aj.length;af--;){if(aj[af]===at){throw aa()}}aj.push(at);ar=[];av=ac;ac+=ax;if(ae==E){for(ah=0,af=at.length;ah0){for(ad="",af>10&&(af=10); ad.length=48&&ad<=57||ad>=97&&ad<=102||ad>=65&&ad<=70)){H()}}ag+=M("0x"+ah.slice(ae,G));break;default:H()}}else{if(ad==34){break}ad=ah.charCodeAt(G);ae=G;while(ad>=32&&ad!=92&&ad!=34){ad=ah.charCodeAt(++G)}ag+=ah.slice(ae,G)}}}if(ah.charCodeAt(G)==34){G++; return ag}H();default:ae=G;if(ad==45){ai=true;ad=ah.charCodeAt(++G)}if(ad>=48&&ad<=57){if(ad==48&&((ad=ah.charCodeAt(G+1)),ad>=48&&ad<=57)){H()}ai=false;for(;G=48&&ad<=57);G++){}if(ah.charCodeAt(G)==46){ac=++G;for(;ac=48&&ad<=57);ac++){}if(ac==G){H()}G=ac}ad=ah.charCodeAt(G);if(ad==101||ad==69){ad=ah.charCodeAt(++G);if(ad==43||ad==45){G++}for(ac=G;ac=48&&ad<=57);ac++){}if(ac==G){H()}G=ac}return +ah.slice(ae,G)}if(ai){H()}if(ah.slice(G,G+4)=="true"){G+=4;return true}else{if(ah.slice(G,G+5)=="false"){G+=5;return false}else{if(ah.slice(G,G+4)=="null"){G+=4;return null}}}H()}}return"$"};var W=function(ad){var ac,ae;if(ad=="$"){H()}if(typeof ad=="string"){if((F?ad.charAt(0):ad[0])=="@"){return ad.slice(1)}if(ad=="["){ac=[];for(;;ae||(ae=true)){ad=y();if(ad=="]"){break}if(ae){if(ad==","){ad=y();if(ad=="]"){H()}}else{H()}}if(ad==","){H()}ac.push(W(ad))}return ac}else{if(ad=="{"){ac={};for(;;ae||(ae=true)){ad=y(); if(ad=="}"){break}if(ae){if(ad==","){ad=y();if(ad=="}"){H()}}else{H()}}if(ad==","||typeof ad!="string"||(F?ad.charAt(0):ad[0])!="@"||y()!=":"){H()}ac[ad.slice(1)]=W(y())}return ac}}H()}return ad};var P=function(ae,ad,af){var ac=w(ae,ad,af);if(ac===L){delete ae[ad]}else{ae[ad]=ac}};var w=function(af,ae,ag){var ad=af[ae],ac;if(typeof ad=="object"&&ad){if(u.call(ad)==E){for(ac=ad.length;ac--;){P(ad,ac,ag)}}else{m(ad,function(ah){P(ad,ah,ag)})}}return ag.call(af,ae,ad)};V.parse=function(ae,af){var ac,ad;G=0;X=""+ae;ac=W(y());if(y()!="$"){H()}G=X=null;return af&&u.call(af)==U?w((ad={},ad[""]=ac,ad),"",af):ac}}}V.runInContext=j;return V}if(h&&!c){j(i,h)}else{var f=i.JSON,k=i.JSON3,d=false;var g=j(i,(i.JSON3={noConflict:function(){if(!d){d=true;i.JSON=f;i.JSON3=k;f=k=null}return g}}));i.JSON={parse:g.parse,stringify:g.stringify}}if(c){define(function(){return g})}}).call(this);JSON_PIWIK=a})()}if(typeof _paq!=="object"){_paq=[]}if(typeof window.Piwik!=="object"){window.Piwik=(function(){var r,b={},x={},F=document,h=navigator,V=screen,S=window,i=S.performance||S.mozPerformance||S.msPerformance||S.webkitPerformance,t=S.encodeURIComponent,R=S.decodeURIComponent,l=unescape,H=[],D,e,ac=[],m=false; function p(aj){try{return R(aj)}catch(ak){return unescape(aj)}}function I(ak){var aj=typeof ak;return aj!=="undefined"}function z(aj){return typeof aj==="function"}function U(aj){return typeof aj==="object"}function w(aj){return typeof aj==="string"||aj instanceof String}function A(ak){if(!ak){return true}var aj;var al=true;for(aj in ak){if(Object.prototype.hasOwnProperty.call(ak,aj)){al=false}}return al}function af(aj){var ak=typeof console;if(ak!=="undefined"&&console&&console.error){console.error(aj)}}function ab(){var ao,an,aq,ak,aj;for(ao=0;ao0;if(am){ap=aq.split("::");al=ap[0];aq=ap[1];if("object"===typeof e[al]&&"function"===typeof e[al][aq]){e[al][aq].apply(e[al],ak)}else{if(aj){ac.push(aj)}}}else{for(an=0;an0;if(ar){ap=aq.split(".");if(al&&"object"===typeof al[ap[0]]){al=al[ap[0]]; aq=ap[1]}else{if(aj){ac.push(aj);break}}}if(al[aq]){al[aq].apply(al,ak)}else{var at="The method '"+aq+'\' was not found in "_paq" variable. Please have a look at the Piwik tracker documentation: https://developer.piwik.org/api-reference/tracking-javascript';af(at);if(!ar){throw new TypeError(at)}}if(aq==="addTracker"){break}if(aq==="setTrackerUrl"||aq==="setSiteId"){break}}else{aq.apply(H[an],ak)}}}}}function ai(am,al,ak,aj){if(am.addEventListener){am.addEventListener(al,ak,aj);return true}if(am.attachEvent){return am.attachEvent("on"+al,ak)}am["on"+al]=ak}function n(aj){if(F.readyState==="complete"){aj()}else{if(S.addEventListener){S.addEventListener("load",aj)}else{if(S.attachEvent){S.attachEvent("onload",aj)}}}}function q(am){var aj=false;if(F.attachEvent){aj=F.readyState==="complete"}else{aj=F.readyState!=="loading"}if(aj){am();return}var al;if(F.addEventListener){ai(F,"DOMContentLoaded",function ak(){F.removeEventListener("DOMContentLoaded",ak,false);if(!aj){aj=true;am()}})}else{if(F.attachEvent){F.attachEvent("onreadystatechange",function ak(){if(F.readyState==="complete"){F.detachEvent("onreadystatechange",ak); if(!aj){aj=true;am()}}});if(F.documentElement.doScroll&&S===S.top){(function ak(){if(!aj){try{F.documentElement.doScroll("left")}catch(an){setTimeout(ak,0);return}aj=true;am()}}())}}}ai(S,"load",function(){if(!aj){aj=true;am()}},false)}function Y(ak,ap,aq){if(!ak){return""}var aj="",am,al,an,ao;for(am in b){if(Object.prototype.hasOwnProperty.call(b,am)){ao=b[am]&&"function"===typeof b[am][ak];if(ao){al=b[am][ak];an=al(ap||{},aq);if(an){aj+=an}}}}return aj}function ad(){var aj;m=true;Y("unload");if(r){do{aj=new Date()}while(aj.getTimeAlias()=0;ao--){an=ap[ao].split("=")[0];if(an===al){ap.splice(ao,1)}}var at=ap.join("&");if(at){aq=aq+"?"+at}if(ar){aq+="#"+ar}}return aq}function f(al,ak){var aj="[\\?&#]"+ak+"=([^&#]*)";var an=new RegExp(aj);var am=an.exec(al);return am?R(am[1]):""}function a(aj){if(aj&&String(aj)===aj){return aj.replace(/^\s+|\s+$/g,"")}return aj}function C(aj){return unescape(t(aj))}function ah(az){var al=function(aF,aE){return(aF<>>(32-aE))},aA=function(aH){var aF="",aG,aE;for(aG=7;aG>=0;aG--){aE=(aH>>>(aG*4))&15;aF+=aE.toString(16)}return aF},ao,aC,aB,ak=[],at=1732584193,aq=4023233417,ap=2562383102,an=271733878,am=3285377520,ay,ax,aw,av,au,aD,aj,ar=[];az=C(az);aj=az.length;for(aC=0;aC>>29);ar.push((aj<<3)&4294967295);for(ao=0;aoao.offsetWidth+ao.scrollLeft||aq+au-avao.offsetHeight+ao.scrollTop||aw+ar-avar?-1:1});if(aj.length<=1){return aj}var ak=0;var am=0;var an=[];var al;al=aj[ak++];while(al){if(al===aj[ak]){am=an.push(ak) }al=aj[ak++]||null}while(am--){aj.splice(an[am],1)}return aj},getAttributeValueFromNode:function(an,al){if(!this.hasNodeAttribute(an,al)){return}if(an&&an.getAttribute){return an.getAttribute(al)}if(!an||!an.attributes){return}var am=(typeof an.attributes[al]);if("undefined"===am){return}if(an.attributes[al].value){return an.attributes[al].value}if(an.attributes[al].nodeValue){return an.attributes[al].nodeValue}var ak;var aj=an.attributes;if(!aj){return}for(ak=0;ak1000){break}aj++}},findPieceNode:function(ak){var aj;aj=aa.findFirstNodeHavingAttribute(ak,this.CONTENT_PIECE_ATTR);if(!aj){aj=aa.findFirstNodeHavingClass(ak,this.CONTENT_PIECE_CLASS)}if(aj){return aj}return ak},findTargetNodeNoDefault:function(aj){if(!aj){return}var ak=aa.findFirstNodeHavingAttributeWithValue(aj,this.CONTENT_TARGET_ATTR); if(ak){return ak}ak=aa.findFirstNodeHavingAttribute(aj,this.CONTENT_TARGET_ATTR);if(ak){return ak}ak=aa.findFirstNodeHavingClass(aj,this.CONTENT_TARGET_CLASS);if(ak){return ak}},findTargetNode:function(aj){var ak=this.findTargetNodeNoDefault(aj);if(ak){return ak}return aj},findContentName:function(ak){if(!ak){return}var an=aa.findFirstNodeHavingAttributeWithValue(ak,this.CONTENT_NAME_ATTR);if(an){return aa.getAttributeValueFromNode(an,this.CONTENT_NAME_ATTR)}var aj=this.findContentPiece(ak);if(aj){return this.removeDomainIfIsInLink(aj)}if(aa.hasNodeAttributeWithValue(ak,"title")){return aa.getAttributeValueFromNode(ak,"title")}var al=this.findPieceNode(ak);if(aa.hasNodeAttributeWithValue(al,"title")){return aa.getAttributeValueFromNode(al,"title")}var am=this.findTargetNode(ak);if(aa.hasNodeAttributeWithValue(am,"title")){return aa.getAttributeValueFromNode(am,"title")}},findContentPiece:function(ak){if(!ak){return}var am=aa.findFirstNodeHavingAttributeWithValue(ak,this.CONTENT_PIECE_ATTR); if(am){return aa.getAttributeValueFromNode(am,this.CONTENT_PIECE_ATTR)}var aj=this.findPieceNode(ak);var al=this.findMediaUrlInNode(aj);if(al){return this.toAbsoluteUrl(al)}},findContentTarget:function(al){if(!al){return}var am=this.findTargetNode(al);if(aa.hasNodeAttributeWithValue(am,this.CONTENT_TARGET_ATTR)){return aa.getAttributeValueFromNode(am,this.CONTENT_TARGET_ATTR)}var ak;if(aa.hasNodeAttributeWithValue(am,"href")){ak=aa.getAttributeValueFromNode(am,"href");return this.toAbsoluteUrl(ak)}var aj=this.findPieceNode(al);if(aa.hasNodeAttributeWithValue(aj,"href")){ak=aa.getAttributeValueFromNode(aj,"href");return this.toAbsoluteUrl(ak)}},isSameDomain:function(aj){if(!aj||!aj.indexOf){return false}if(0===aj.indexOf(this.getLocation().origin)){return true}var ak=aj.indexOf(this.getLocation().host);if(8>=ak&&0<=ak){return true}return false},removeDomainIfIsInLink:function(al){var ak="^https?://[^/]+";var aj="^.*//[^/]+";if(al&&al.search&&-1!==al.search(new RegExp(ak))&&this.isSameDomain(al)){al=al.replace(new RegExp(aj),""); if(!al){al="/"}}return al},findMediaUrlInNode:function(an){if(!an){return}var al=["img","embed","video","audio"];var aj=an.nodeName.toLowerCase();if(-1!==L(al,aj)&&aa.findFirstNodeHavingAttributeWithValue(an,"src")){var am=aa.findFirstNodeHavingAttributeWithValue(an,"src");return aa.getAttributeValueFromNode(am,"src")}if(aj==="object"&&aa.hasNodeAttributeWithValue(an,"data")){return aa.getAttributeValueFromNode(an,"data")}if(aj==="object"){var ao=aa.findNodesByTagName(an,"param");if(ao&&ao.length){var ak;for(ak=0;ak0}var ak=am.clientWidth;if(S.innerWidth&&ak>S.innerWidth){ak=S.innerWidth}var aj=am.clientHeight;if(S.innerHeight&&aj>S.innerHeight){aj=S.innerHeight}return((an.bottom>0||al)&&an.right>0&&an.left=0){c1=c1.slice(0,c0)}c0=c1.lastIndexOf("/");if(c0!==c1.length-1){c1=c1.slice(0,c0+1)}return c1+cZ}function ct(c1,cZ){var c0;c1=String(c1).toLowerCase();cZ=String(cZ).toLowerCase();if(c1===cZ){return true}if(cZ.slice(0,1)==="."){if(c1===cZ.slice(1)){return true}c0=c1.length-cZ.length;if((c0>0)&&(c1.slice(c0)===cZ)){return true}}return false}function b9(cZ){var c0=document.createElement("a");if(cZ.indexOf("//")!==0&&cZ.indexOf("http")!==0){if(cZ.indexOf("*")===0){cZ=cZ.substr(1) }if(cZ.indexOf(".")===0){cZ=cZ.substr(1)}cZ="http://"+cZ}c0.href=v.toAbsoluteUrl(cZ);if(c0.pathname){return c0.pathname}return""}function aV(c0,cZ){if(!ae(cZ,"/")){cZ="/"+cZ}if(!ae(c0,"/")){c0="/"+c0}var c1=(cZ==="/"||cZ==="/*");if(c1){return true}if(c0===cZ){return true}cZ=String(cZ).toLowerCase();c0=String(c0).toLowerCase();if(Q(cZ,"*")){cZ=cZ.slice(0,-1);c1=(!cZ||cZ==="/");if(c1){return true}if(c0===cZ){return true}return c0.indexOf(cZ)===0}if(!Q(c0,"/")){c0+="/"}if(!Q(cZ,"/")){cZ+="/"}return c0.indexOf(cZ)===0}function am(c3,c5){var c0,cZ,c1,c2,c4;for(c0=0;c00)&&(c2.slice(c1)===cZ)){return true}}}return false}function ce(cZ,c1){cZ=cZ.replace("send_image=0","send_image=1");var c0=new Image(1,1);c0.onload=function(){D=0; if(typeof c1==="function"){c1()}};c0.src=ax+(ax.indexOf("?")<0?"?":"&")+cZ}function aY(c0){var c4="object"===typeof h&&"function"===typeof h.sendBeacon&&"function"===typeof Blob;if(!c4){return false}var c3={type:"application/x-www-form-urlencoded; charset=UTF-8"};var c2=false;try{var cZ=new Blob([c0],c3);c2=h.sendBeacon(ax,cZ)}catch(c1){return false}return c2}function cM(c0,c1,cZ){if(!I(cZ)||null===cZ){cZ=true}if(m&&aY(c0)){return}setTimeout(function(){if(m&&aY(c0)){return}var c4;try{var c3=S.XMLHttpRequest?new S.XMLHttpRequest():S.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;c3.open("POST",ax,true);c3.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var c5=m&&aY(c0);if(!c5&&cZ){ce(c0,c1)}}else{if(this.readyState===4&&(typeof c1==="function")){c1()}}};c3.setRequestHeader("Content-Type",cl);c3.send(c0)}catch(c2){c4=m&&aY(c0);if(!c4&&cZ){ce(c0,c1)}}},50)}function b4(c0){var cZ=new Date();var c1=cZ.getTime()+c0;if(!r||c1>r){r=c1}}function cc(cZ){if(b0||!aX){return }b0=setTimeout(function c0(){b0=null;if(!a4){a4=(!F.hasFocus||F.hasFocus())}if(!a4){cc(aX);return}if(bF()){return}var c1=new Date(),c2=aX-(c1.getTime()-cH);c2=Math.min(aX,c2);cc(c2)},cZ||aX)}function by(){if(!b0){return}clearTimeout(b0);b0=null}function a2(){a4=true;if(bF()){return}cc()}function ar(){by()}function cW(){if(aG||!aX){return}aG=true;ai(S,"focus",a2);ai(S,"blur",ar);cc()}function cp(c3){var c0=new Date();var cZ=c0.getTime();cH=cZ;if(co&&cZ2000){cM(c0,c1)}else{ce(c0,c1)}b4(cZ)})}if(!aG){cW()}else{cc()}}function b8(cZ){if(cA){return false}return(cZ&&cZ.length)}function cV(c1,cZ){if(!b8(c1)){return}var c0='{"requests":["?'+c1.join('","?')+'"]}';cp(function(){cM(c0,null,false);b4(cZ)})}function aL(cZ){return ba+cZ+"."+bU+"."+be}function bT(){if(bb){return"0"}if(!I(h.cookieEnabled)){var cZ=aL("testcookie"); cU(cZ,"1");return aw(cZ)==="1"?"1":"0"}return h.cookieEnabled?"1":"0"}function a8(){be=bV((cG||cE)+(bf||"/")).slice(0,4)}function bL(){var c0=aL("cvar"),cZ=aw(c0);if(cZ.length){cZ=JSON_PIWIK.parse(cZ);if(U(cZ)){return cZ}}return{}}function cq(){if(aI===false){aI=bL()}}function cB(){return bV((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(cP)+(new Date()).getTime()+Math.random()).slice(0,16)}function at(){return bV((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(cP)).slice(0,6)}function a6(){return Math.floor((new Date()).getTime()/1000)}function aC(){var c0=a6();var c1=at();var cZ=String(c0)+c1;return cZ}function cL(c1){c1=String(c1);var c4=at();var c2=c4.length;var c3=c1.substr(-1*c2,c2);var c0=parseInt(c1.substr(0,c1.length-c2),10);if(c0&&c3&&c3===c4){var cZ=a6();if(aR<=0){return true}if(cZ>=c0&&cZ<=(c0+aR)){return true}}return false}function cX(cZ){if(!cx){return""}var c3=f(cZ,ap);if(!c3){return""}c3=String(c3);var c1=new RegExp("^[a-zA-Z0-9]+$");if(c3.length===32&&c1.test(c3)){var c0=c3.substr(16,32); if(cL(c0)){var c2=c3.substr(0,16);return c2}}return""}function cy(){if(!bC){bC=cX(bB)}var c1=new Date(),cZ=Math.round(c1.getTime()/1000),c0=aL("id"),c4=aw(c0),c3,c2;if(c4){c3=c4.split(".");c3.unshift("0");if(bC.length){c3[1]=bC}return c3}if(bC.length){c2=bC}else{if("0"===bT()){c2=""}else{c2=cB()}}c3=["1",c2,cZ,0,cZ,"",""];return c3}function aP(){var c6=cy(),c2=c6[0],c3=c6[1],c0=c6[2],cZ=c6[3],c4=c6[4],c1=c6[5];if(!I(c6[6])){c6[6]=""}var c5=c6[6];return{newVisitor:c2,uuid:c3,createTs:c0,visitCount:cZ,currentVisitTs:c4,lastVisitTs:c1,lastEcommerceOrderTs:c5}}function aA(){var c2=new Date(),c0=c2.getTime(),c3=aP().createTs;var cZ=parseInt(c3,10);var c1=(cZ*1000)+cv-c0;return c1}function aE(cZ){if(!bU){return}var c1=new Date(),c0=Math.round(c1.getTime()/1000);if(!I(cZ)){cZ=aP()}var c2=cZ.uuid+"."+cZ.createTs+"."+cZ.visitCount+"."+c0+"."+cZ.lastVisitTs+"."+cZ.lastEcommerceOrderTs;cU(aL("id"),c2,aA(),bf,cG,bG)}function bA(){var cZ=aw(aL("ref"));if(cZ.length){try{cZ=JSON_PIWIK.parse(cZ);if(U(cZ)){return cZ }}catch(c0){}}return["","",0,""]}function bM(c1,c0,cZ){cU(c1,"",-86400,c0,cZ)}function bm(c0){var cZ="testvalue";cU("test",cZ,10000,null,c0);if(aw("test")===cZ){bM("test",null,c0);return true}return false}function ay(){var c0=bb;bb=false;var cZ,c1;for(cZ=0;cZdp){df.visitCount++;df.lastVisitTs=df.currentVisitTs}if(!bl||!c7.length){for(dl in cf){if(Object.prototype.hasOwnProperty.call(cf,dl)){c7=f(dq,cf[dl]);if(c7.length){break}}}for(dl in bu){if(Object.prototype.hasOwnProperty.call(bu,dl)){cZ=f(dq,bu[dl]);if(cZ.length){break}}}}dt=d(bd);da=dk.length?d(dk):"";if(dt.length&&!aN(dt)&&(!bl||!da.length||aN(da))){dk=bd}if(dk.length||c7.length){c6=c9;dj=[c7,cZ,c6,bQ(dk.slice(0,c3))];cU(dg,JSON_PIWIK.stringify(dj),cN,bf,cG)}}c1+="&idsite="+bU+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+c0.getHours()+"&m="+c0.getMinutes()+"&s="+c0.getSeconds()+"&url="+t(bQ(dq))+(bd.length?"&urlref="+t(bQ(bd)):"")+((bo&&bo.length)?"&uid="+t(bo):"")+"&_id="+df.uuid+"&_idts="+df.createTs+"&_idvc="+df.visitCount+"&_idn="+df.newVisitor+(c7.length?"&_rcn="+t(c7):"")+(cZ.length?"&_rck="+t(cZ):"")+"&_refts="+c6+"&_viewts="+df.lastVisitTs+(String(df.lastEcommerceOrderTs).length?"&_ects="+df.lastEcommerceOrderTs:"")+(String(dk).length?"&_ref="+t(bQ(dk.slice(0,c3))):"")+(dc?"&cs="+t(dc):"")+"&send_image=0"; for(dl in cP){if(Object.prototype.hasOwnProperty.call(cP,dl)){c1+="&"+dl+"="+cP[dl]}}var ds=[];if(dm){for(dl in dm){if(Object.prototype.hasOwnProperty.call(dm,dl)&&/^dimension\d+$/.test(dl)){var c5=dl.replace("dimension","");ds.push(parseInt(c5,10));ds.push(String(c5));c1+="&"+dl+"="+dm[dl];delete dm[dl]}}}if(dm&&A(dm)){dm=null}for(dl in bc){if(Object.prototype.hasOwnProperty.call(bc,dl)){var db=(-1===L(ds,dl));if(db){c1+="&dimension"+dl+"="+bc[dl]}}}if(dm){c1+="&data="+t(JSON_PIWIK.stringify(dm))}else{if(aj){c1+="&data="+t(JSON_PIWIK.stringify(aj))}}function c8(du,dv){var dw=JSON_PIWIK.stringify(du);if(dw.length>2){return"&"+dv+"="+t(dw)}return""}var dr=cY(bK);var dh=cY(ca);c1+=c8(dr,"cvar");c1+=c8(dh,"e_cvar");if(aI){c1+=c8(aI,"_cvar");for(dl in di){if(Object.prototype.hasOwnProperty.call(di,dl)){if(aI[dl][0]===""||aI[dl][1]===""){delete aI[dl]}}}if(bE){cU(dd,JSON_PIWIK.stringify(aI),cd,bf,cG)}}if(aU){if(cb){c1+=">_ms="+cb}else{if(i&&i.timing&&i.timing.requestStart&&i.timing.responseEnd){c1+=">_ms="+(i.timing.responseEnd-i.timing.requestStart) }}}if(aD){c1+="&pv_id="+aD}df.lastEcommerceOrderTs=I(c2)&&String(c2).length?c2:df.lastEcommerceOrderTs;aE(df);b1();c1+=Y(dn,{tracker:bw,request:c1});if(cI.length){c1+="&"+cI}if(z(bZ)){c1=bZ(c1)}return c1}bF=function aZ(){var cZ=new Date();if(cH+aX<=cZ.getTime()){var c0=ch("ping=1",null,"ping");bt(c0,bx);return true}return false};function bg(c2,c1,c7,c3,cZ,da){var c5="idgoal=0",c6,c0=new Date(),c8=[],c9,c4=String(c2).length;if(c4){c5+="&ec_id="+t(c2);c6=Math.round(c0.getTime()/1000)}c5+="&revenue="+c1;if(String(c7).length){c5+="&ec_st="+c7}if(String(c3).length){c5+="&ec_tx="+c3}if(String(cZ).length){c5+="&ec_sh="+cZ}if(String(da).length){c5+="&ec_dt="+da}if(cJ){for(c9 in cJ){if(Object.prototype.hasOwnProperty.call(cJ,c9)){if(!I(cJ[c9][1])){cJ[c9][1]=""}if(!I(cJ[c9][2])){cJ[c9][2]=""}if(!I(cJ[c9][3])||String(cJ[c9][3]).length===0){cJ[c9][3]=0}if(!I(cJ[c9][4])||String(cJ[c9][4]).length===0){cJ[c9][4]=1}c8.push(cJ[c9])}}c5+="&ec_items="+t(JSON_PIWIK.stringify(c8))}c5=ch(c5,aj,"ecommerce",c6); bt(c5,bx);if(c4){cJ={}}}function bN(cZ,c3,c2,c1,c0,c4){if(String(cZ).length&&I(c3)){bg(cZ,c3,c2,c1,c0,c4)}}function bi(cZ){if(I(cZ)){bg("",cZ,"","","","")}}function bO(c0,c2,c1){aD=a7();var cZ=ch("action_name="+t(ag(c0||a9)),c2,"log");bt(cZ,bx,c1)}function aS(c1,c0){var c2,cZ="(^| )(piwik[_-]"+c0;if(c1){for(c2=0;c20){c0+="&"}else{c0+="?"}var c1=bh();c0=E(c0,ap,c1);aa.setAnyAttribute(cZ,"href",c0)}function au(c2){var c3=aa.getAttributeValueFromNode(c2,"href");if(!c3){return false}c3=String(c3);var c0=c3.indexOf("//")===0||c3.indexOf("http://")===0||c3.indexOf("https://")===0;if(!c0){return false}var cZ=c2.pathname||b9(c2.href);var c1=(c2.hostname||d(c2.href)).toLowerCase();if(am(c1,cZ)){if(!ct(cE,K(c1))){return true}return false}return false}function cs(cZ){var c0=cT(cZ);if(c0&&c0.type){c0.href=p(c0.href);cK(c0.href,c0.type,undefined,null,cZ);return}if(cx){cZ=ao(cZ);if(au(cZ)){b7(cZ)}}}function ck(){return F.all&&!F.addEventListener}function cF(cZ){var c1=cZ.which;var c0=(typeof cZ.button);if(!c1&&c0!=="undefined"){if(ck()){if(cZ.button&1){c1=1}else{if(cZ.button&2){c1=3}else{if(cZ.button&4){c1=2}}}}else{if(cZ.button===0||cZ.button==="0"){c1=1}else{if(cZ.button&1){c1=2}else{if(cZ.button&2){c1=3}}}}}return c1}function bH(cZ){switch(cF(cZ)){case 1:return"left"; case 2:return"middle";case 3:return"right"}}function aT(cZ){return cZ.target||cZ.srcElement}function av(cZ){return function(c2){c2=c2||S.event;var c1=bH(c2);var c3=aT(c2);if(c2.type==="click"){var c0=false;if(cZ&&c1==="middle"){c0=true}if(c3&&!c0){cs(c3)}}else{if(c2.type==="mousedown"){if(c1==="middle"&&c3){aJ=c1;bq=c3}else{aJ=bq=null}}else{if(c2.type==="mouseup"){if(c1===aJ&&c3===bq){cs(c3)}aJ=bq=null}else{if(c2.type==="contextmenu"){cs(c3)}}}}}}function al(c1,c0){var cZ=typeof c0;if(cZ==="undefined"){c0=true}ai(c1,"click",av(c0),false);if(c0){ai(c1,"mouseup",av(c0),false);ai(c1,"mousedown",av(c0),false);ai(c1,"contextmenu",av(c0),false)}}function br(c1,c3){ak=true;var c2,c0=aS(bp,"ignore"),c4=F.links,cZ=null,c5=null;if(c4){for(c2=0;c20){c3=parseInt(c3,10);c6(c3)}})}function cr(){var c0,c2,c3={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"};if(!((new RegExp("MSIE")).test(h.userAgent))){if(h.mimeTypes&&h.mimeTypes.length){for(c0 in c3){if(Object.prototype.hasOwnProperty.call(c3,c0)){c2=h.mimeTypes[c3[c0]];cP[c0]=(c2&&c2.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(h.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&I(h.javaEnabled)&&h.javaEnabled()){cP.java="1" }if(z(S.GearsFactory)){cP.gears="1"}cP.cookie=bT()}var c1=parseInt(V.width,10);var cZ=parseInt(V.height,10);cP.res=parseInt(c1,10)+"x"+parseInt(cZ,10)}cr();a8();aE();this.getVisitorId=function(){return aP().uuid};this.getVisitorInfo=function(){return cy()};this.getAttributionInfo=function(){return bA()};this.getAttributionCampaignName=function(){return bA()[0]};this.getAttributionCampaignKeyword=function(){return bA()[1]};this.getAttributionReferrerTimestamp=function(){return bA()[2]};this.getAttributionReferrerUrl=function(){return bA()[3]};this.setTrackerUrl=function(cZ){ax=cZ};this.getTrackerUrl=function(){return ax};this.getPiwikUrl=function(){return N(this.getTrackerUrl(),bv)};this.addTracker=function(cZ,c1){if(!c1){throw new Error("A siteId must be given to add a new tracker")}if(!I(cZ)||null===cZ){cZ=this.getTrackerUrl()}var c0=new P(cZ,c1);H.push(c0);return c0};this.getSiteId=function(){return bU};this.setSiteId=function(cZ){bR(cZ)};this.resetUserId=function(){bo="";bC=cB()};this.setUserId=function(cZ){if(!I(cZ)||!cZ.length){return }bo=cZ;bC=bV(bo).substr(0,16)};this.getUserId=function(){return bo};this.setCustomData=function(cZ,c0){if(U(cZ)){aj=cZ}else{if(!aj){aj={}}aj[cZ]=c0}};this.getCustomData=function(){return aj};this.setCustomRequestProcessing=function(cZ){bZ=cZ};this.appendToTrackingUrl=function(cZ){cI=cZ};this.getRequest=function(cZ){return ch(cZ)};this.addPlugin=function(cZ,c0){b[cZ]=c0};this.setCustomDimension=function(cZ,c0){cZ=parseInt(cZ,10);if(cZ>0){if(!I(c0)){c0=""}if(!w(c0)){c0=String(c0)}bc[cZ]=c0}};this.getCustomDimension=function(cZ){cZ=parseInt(cZ,10);if(cZ>0&&Object.prototype.hasOwnProperty.call(bc,cZ)){return bc[cZ]}};this.deleteCustomDimension=function(cZ){cZ=parseInt(cZ,10);if(cZ>0){delete bc[cZ]}};this.setCustomVariable=function(c0,cZ,c3,c1){var c2;if(!I(c1)){c1="visit"}if(!I(cZ)){return}if(!I(c3)){c3=""}if(c0>0){cZ=!w(cZ)?String(cZ):cZ;c3=!w(c3)?String(c3):c3;c2=[cZ.slice(0,bj),c3.slice(0,bj)];if(c1==="visit"||c1===2){cq();aI[c0]=c2}else{if(c1==="page"||c1===3){bK[c0]=c2}else{if(c1==="event"){ca[c0]=c2 }}}}};this.getCustomVariable=function(c0,c1){var cZ;if(!I(c1)){c1="visit"}if(c1==="page"||c1===3){cZ=bK[c0]}else{if(c1==="event"){cZ=ca[c0]}else{if(c1==="visit"||c1===2){cq();cZ=aI[c0]}}}if(!I(cZ)||(cZ&&cZ[0]==="")){return false}return cZ};this.deleteCustomVariable=function(cZ,c0){if(this.getCustomVariable(cZ,c0)){this.setCustomVariable(cZ,"","",c0)}};this.deleteCustomVariables=function(cZ){if(cZ==="page"||cZ===3){bK={}}else{if(cZ==="event"){ca={}}else{if(cZ==="visit"||cZ===2){aI={}}}}};this.storeCustomVariablesInCookie=function(){bE=true};this.setLinkTrackingTimer=function(cZ){bx=cZ};this.getLinkTrackingTimer=function(){return bx};this.setDownloadExtensions=function(cZ){if(w(cZ)){cZ=cZ.split("|")}cO=cZ};this.addDownloadExtensions=function(c0){var cZ;if(w(c0)){c0=c0.split("|")}for(cZ=0;cZ1&&ak!=="addTracker"){af("The method "+ak+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: https://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}ap[ak]++}}}}return ao }var B=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","enableLinkTracking"];function Z(aj,al){var ak=new P(aj,al);H.push(ak);_paq=c(_paq,B);for(D=0;D<_paq.length;D++){if(_paq[D]){ab(_paq[D])}}_paq=new G();return ak}ai(S,"beforeunload",ad,false);Date.prototype.getTimeAlias=Date.prototype.getTime;e={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(am,al,ak,aj){var an=typeof aj;if(an==="undefined"){aj=false}ai(am,al,ak,aj)},onLoad:n,onReady:q,isNodeVisible:j,isOrWasNodeVisible:v.isNodeVisible},on:function(ak,aj){if(!x[ak]){x[ak]=[]}x[ak].push(aj)},off:function(al,ak){if(!x[al]){return}var aj=0;for(aj;aj>2,e=(e&3)<<4|f>>4,p=(f&15)<<2|c>>6,l=c&63,isNaN(f)?p=l=64:isNaN(c)&&(l=64),b=b+this._keyStr.charAt(n)+this._keyStr.charAt(e)+this._keyStr.charAt(p)+this._keyStr.charAt(l); return b},decode:function(a){var b="",e,f,c,n,p,l=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,f=(f&15)<<4|n>>2,c=(n&3)<<6|p,b+=String.fromCharCode(e),64!=n&&(b+=String.fromCharCode(f)),64!=p&&(b+=String.fromCharCode(c));return b=d.Base64._utf8_decode(b)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",e=0;e< a.length;e++){var f=a.charCodeAt(e);128>f?b+=String.fromCharCode(f):(127f?b+=String.fromCharCode(f>>6|192):(b+=String.fromCharCode(f>>12|224),b+=String.fromCharCode(f>>6&63|128)),b+=String.fromCharCode(f&63|128))}return b},_utf8_decode:function(a){for(var b="",e=0,f,c,d;ef?(b+=String.fromCharCode(f),e++):191f?(c=a.charCodeAt(e+1),b+=String.fromCharCode((f&31)<<6|c&63),e+=2):(c=a.charCodeAt(e+1),d=a.charCodeAt(e+2),b+=String.fromCharCode((f&15)<<12| (c&63)<<6|d&63),e+=3);return b}};d.loadScript=function(a,b){var e;b=b||function(){};e=document.createElement("script");e.type="text/javascript";e.src=a.url;e.async=!1;e.defer=!1;e.onload=e.onreadystatechange=function(a){a=a||window.event;if("load"===a.type||/loaded|complete/.test(e.readyState)&&(!document.documentMode||9>document.documentMode))e.onload=e.onreadystatechange=e.onerror=null,b(null,a)};e.onerror=function(a){e.onload=e.onreadystatechange=e.onerror=null;b({msg:"script not loaded",event:a})}; var f=document.head||document.getElementsByTagName("head")[0];f.insertBefore(e,f.lastChild)};d.cloneSimpleObject=function(a,b){if("object"!==typeof a||null===a||a instanceof Date)return a;var e=new a.constructor,f;for(f in a)a.hasOwnProperty(f)&&(void 0===f||b&&void 0===a[f]||(e[f]=d.cloneSimpleObject(a[f])));return e};d.isEmptyObject=function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0};d.isObject=function(a){return null!==a&&"object"===typeof a&&!(a instanceof Array)};d.ATVALUE="_ATVALUE"; d.ATPREFIX="_ATPREFIX";d.object2Flatten=function(a,b,e,f,c){var n={},p="",l="",s=[],g="",r=0,u;for(u in a)if(a.hasOwnProperty(u))if(n=d.splitProtocolAndKey(u,c),p=n.prefix||f||"",l=(b?b+"_":"")+n.key,d.isObject(a[u]))d.object2Flatten(a[u],l,e,p,c);else{s=l.split("_");g="";for(r=0;ra.length||":"!==a[1]?(e="",f=a):4>a.length||":"!==a[3]?(e=a.substring(0,1),f=a.substring(2,a.length)): (e=a.substring(0,3),f=a.substring(4,a.length));b&&(e=e.toLowerCase(),f=f.toLowerCase());return{prefix:e,key:f}};d.jsonSerialize=function(b){try{return"undefined"!==typeof JSON&&JSON.stringify?JSON.stringify(b):a(b)}catch(c){return null}};d.jsonParse=function(a){try{return"undefined"!==typeof JSON&&JSON.parse?JSON.parse(a+""):k(a)}catch(b){return null}};d.trim=function(a){try{return String.prototype.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}catch(b){return a}};d.arrayIndexOf= function(a,b){if(Array.prototype.indexOf){var c=-1;"undefined"!==typeof a.indexOf(b)&&(c=a.indexOf(b));return c}return function(a){if(null==this)throw new TypeError;var b=Object(this),h=b.length>>>0;if(0===h)return-1;var c=0;1=h)return-1;for(c=0<=c?c:Math.max(h-Math.abs(c),0);c>a/4).toString(16)})}catch(a){}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"===a?b:b&3| 8).toString(16)})},num:function(b){var c=new Date,e=function(a){a-=100*Math.floor(a/100);return 10>a?"0"+a:String(a)};return e(c.getHours())+""+e(c.getMinutes())+""+e(c.getSeconds())+""+a(b-6)}}};d.isPreview=function(){return window.navigator&&"preview"===window.navigator.loadPurpose};d.isPrerender=function(a){var b,c=!1,f=["webkit","ms"];if("prerender"===document.visibilityState)b="visibilitychange";else for(var g=0;gb.indexOf(e)&&(f.flattenedProperty=a.substring(c.length))}return f} function n(a){for(var b=[],c={},f=0;fb.indexOf(e.key)&&b.push(e.key);e.flattenedProperty&&(c[e.key]=(c[e.key]||[]).concat(e.flattenedProperty))}else for(var l in a[f])a[f].hasOwnProperty(l)&&(0>b.indexOf(l)&&b.push(l),0>a.indexOf(l)&&(c[l]=(c[l]||[]).concat(a[f][l])));return{keys:b,values:c}}var p=this,l={storageParams:null,bufferParams:null},s="";p.CONSENTNO= "Consent-NO";p.ALL="*";p.testStorageParam=function(a,b){var c;if(l.storageParams instanceof Array){for(var f,e=l.storageParams.length-1;0<=e;e--)if(f=l.storageParams[e],"string"===typeof f){if(f===a||f===p.ALL)return{toSetInStorage:!0}}else{a:{c=a;var h=b,d=void 0,m=void 0;for(m in f)if(f.hasOwnProperty(m)&&c===m){if(!h){c=!0;break a}d=[];f[m]instanceof Array?d=f[m]:d.push(f[m]);for(var g=0;gd&&(r.str=r.str.substring(0,d-r.paramSize), r.strSize=r.str.length),v=x,z=r;else if(e[x]=r,e[x].paramSize+e[x].strSize>d&&!e[x].truncate){a.emit("Tracker:Hit:Build:Error",{lvl:"ERROR",msg:'Too long parameter: "'+e[x].param+'"',details:{value:e[x].str}});l=!0;s=x;break}v&&(e[v]=z);e=[e,l,s,G];c=e[0];l=e[1];g=e[3];l&&(e=e[2],c=c[e],c.str=c.str.substring(0,d-c.paramSize),c.strSize=c.str.length,l={},l.mherr=h("mherr","1",!1,!1,"",!1,!1),l[e]=c,c=l);c=m(c,d);if(null===c[1])f=c[0];else for(f.push(c[0]);null!==c[1];)c=m(c[1],d),f.push(c[0]);return f}, n="";a.buffer.presentInFilters(f,"hitType")||(f=a.buffer.addInFilters(f,"hitType",["page"]));f=a.buffer.addInFilters(f,"hitType",["all"]);var q,k;if(ATInternet.Utils.isObject(c)){f=a.buffer.addInFilters(f,"permanent",!0);f=a.buffer.get(f,!0);for(q in c)c.hasOwnProperty(q)&&(n={},c[q]&&"object"===typeof c[q]&&c[q].hasOwnProperty("_value")?(k=c[q]._value,c[q].hasOwnProperty("_options")&&(n=c[q]._options)):k=c[q],k=ATInternet.Utils.privacy.testBufferParam(q,k),k.toSetInBuffer&&(f[q]={_value:k.value, _options:n}));n=r(f)}else for(q in f=a.buffer.get(f,!0),n=r(f),f)f.hasOwnProperty(q)&&(f[q]._options&&f[q]._options.permanent||a.buffer.del(q));e&&e(n,g)};g.getCollectDomain=function(){var b="",b=a.getConfig("logSSL")||a.getConfig("log"),c=a.getConfig("domain");return b=b&&c?b+"."+c:a.getConfig("collectDomainSSL")||a.getConfig("collectDomain")};var f=function(b){var c="",f=a.getConfig("baseURL");if(f)c=f;else{var f=g.getCollectDomain(),e=a.getConfig("pixelPath"),e=e||"/";"/"!==e.charAt(0)&&(e="/"+ e);f&&(c=(a.getConfig("forceHttp")?"http://":"https://")+f+e)}f=a.getConfig("site");c&&f?b&&b(null,c+"?s="+f):b&&b({message:"Config error"})},q=function(a,b,c){f(function(f,h){f?c&&c(f):(d=k-(h.length+27),e(a,b,function(a,b){var f=[],e=ATInternet.Utils.uuid().num(13);if(a instanceof Array)for(var d=1;d<=a.length;d++)f.push(h+b+"&mh="+d+"-"+a.length+"-"+e+a[d-1]);else f.push(h+b+a);c&&c(null,f)}))})},n=function(b,c,f,e,h,d,m){return function(){return function(g){a.emit(b,{lvl:h,details:{hit:c,method:f, event:g,isMultiHit:d,elementType:m}});e&&e()}}()};g.send=function(b,c,f,e,h){q(b,c,function(b,c){if(b)a.emit("Tracker:Hit:Build:Error",{lvl:"ERROR",msg:b.message,details:{}}),f&&f();else for(var d=0;d]/g,"").substring(0,1600).replace(/&/g, "$").replace(/#/g,"\u00b5");var m=d.getContext("page")||{};m.url=window.encodeURIComponent(h);d.setContext("page",m);d.setParam("page_url",h,{permanent:!0,hitType:"page click publisher selfPromotion onSiteAdsClick onSiteAdsImpression InternalSearch mvtesting richmedia".split(" ")})}d.plugins.init();d.callbacks.init();d.emit("Tracker:Ready",{lvl:"INFO",msg:"Tracker initialized",details:{tracker:d,args:{config:a,context:g,callback:k}}});k&&k(d);ATInternet.Tracker.instances.push(d)}; ATInternet.Tracker.Tag=Tag;ATInternet.Tracker.instances=[];ATInternet.Tracker.pluginProtos={};ATInternet.Tracker.addPlugin=function(a,g){g=g||ATInternet.Tracker.Plugins[a];if(!ATInternet.Tracker.pluginProtos[a]){ATInternet.Tracker.pluginProtos[a]=g;for(var k=0;k=d&&(c=!0);return{itemToDelete:c,timestamp:d}},b=function(a){var b=!1;try{localStorage.removeItem(a),b=!0}catch(c){}return b};this.getData= function(c){var d=null,e=localStorage.getItem(c);if(e){var e=m(e),f=ATInternet.Utils.jsonParse(e);f&&"object"===typeof f?a(f).itemToDelete&&b(c)||(delete f.options.expires,d=ATInternet.Utils.jsonSerialize(f)):d=e}return d};this.setData=function(c){var d=!1;if(c.name&&"string"===typeof c.name){var e=a(c);"number"===typeof e.timestamp&&(c.options.expires=e.timestamp);var f=ATInternet.Utils.jsonSerialize(c);if(e.itemToDelete)d=b(c.name);else try{localStorage.setItem(c.name,h(f)),d=!0}catch(g){}}return d}}: new e;var f=function(c,d){var e=!1;c&&"object"===typeof c&&(d||ATInternet.Utils.consent&&!a.getConfig("disableCookie")&&!a.getConfig("disableStorage"))&&(e=b.setData(c));return e},q=function(a,b,c){a={name:a,val:b};c&&c.session&&"number"===typeof c.session&&(c.end=c.session);a.options=c||{};return a},n=function(c){var d=null,e=null;a.getConfig("disableCookie")||a.getConfig("disableStorage")||!c||"string"!==typeof c||(e=b.getData(c));(c=e)&&(d=ATInternet.Utils.jsonParse(c));return d},p=function(a, b){var c=ATInternet.Utils.cloneSimpleObject(a);return f(c,b)?ATInternet.Utils.jsonParse(ATInternet.Utils.jsonSerialize(a)):null},l=function(a,b,d){if(!d&&c[a])d=c[a];else if(d=n(a))d.options=d.options||{},d.options.session&&"number"===typeof d.options.session&&(d.options.end=d.options.session,p(d,!1)),c[a]=d;return d?b?(a=null,!d||"object"!==typeof d.val||d.val instanceof Array||void 0===d.val[b]||(a=d.val[b]),a):d.val:null},s=function(a,b,d,e,f){if(b){if(f=n(a))!f||"object"!==typeof f.val||f.val instanceof Array?f=null:"undefined"===typeof d?delete f.val[b]:f.val[b]=d,f&&(f=p(f,e))}else f=f||{},f=q(a,d,f),f=p(f,e);return f?(c[a]=f,f.val):null},t=function(a,b){if(b)s(a,b,void 0,!0,null);else{c[a]=void 0;var d=q(a,"",{end:new Date("Thu, 01 Jan 1970 00:00:00 UTC"),path:"/"});f(d,!0)}};a.storage={};a.storage.getAll=function(){return c};a.storage.get=g.get=function(a,b){b=!!b;return a instanceof Array?l(a[0],a[1],b):l(a,"",b)};a.storage.getPrivate=g.getPrivate=function(b,c){b instanceof Array?b[0]+=a.getConfig("site"): b+=a.getConfig("site");return g.get(b,c)};a.storage.set=g.set=function(a,b,c,d){var e;a instanceof Array?(e=a[0],a=a[1],c=null):(e=a,a=null);return ATInternet.Utils.privacy.testStorageParam(e,a).toSetInStorage||d?s(e,a,b,d,c):null};a.storage.setPrivate=g.setPrivate=function(b,c,d){b instanceof Array?b[0]+=a.getConfig("site"):b+=a.getConfig("site");return g.set(b,c,d)};a.storage.del=g.del=function(a){a instanceof Array?t(a[0],a[1]):t(a,"")};a.storage.delPrivate=g.delPrivate=function(b){b instanceof Array?b[0]+=a.getConfig("site"):b+=a.getConfig("site");g.del(b)};a.storage.cacheInvalidation=g.cacheInvalidation=function(){c={}}};ATInternet.Tracker.addPlugin("Storage"); }).call(window);(function(){var dfltPluginCfg={};var dfltGlobalCfg={};ATInternet.Tracker.Plugins.Utils=function(a){var g=this,k={};a.utils={};a.utils.getQueryStringValue=g.getQueryStringValue=function(a,c){var d=ATInternet.Utils.hashcode(c).toString();if(!k[d]){k[d]={};for(var g=RegExp("[&#?]{1}([^&=#?]*)=([^&#]*)?","g"),e=g.exec(c);null!==e;)k[d][e[1]]=e[2],e=g.exec(c)}return k[d].hasOwnProperty(a)?k[d][a]:null};a.utils.manageChapters=g.manageChapters=function(b,c,d){var g="";if(b)for(var e=a.getConfig("ignoreEmptyChapterValue"),f="",k=1;kb.indexOf("."))return window[b]||document;b=b.split(".");return window[b[0]][b[1]]||document}return document};a.utils.getLocation=g.getLocation=function(){return g.getDocumentLevel().location.href};a.utils.getHostName=g.getHostName=function(){return g.getDocumentLevel().location.hostname};a.dispatchIndex={};a.dispatchStack=[]; a.dispatchEventFor={};var d=0;a.dispatchSubscribe=function(b){return a.dispatchIndex[b]?!1:(a.dispatchStack.push(b),a.dispatchIndex[b]=!0)};a.dispatchSubscribed=function(b){return!0===a.dispatchIndex[b]};a.addSpecificDispatchEventFor=function(b){return a.dispatchEventFor[b]?!1:(a.dispatchEventFor[b]=!0,d++,!0)};a.processSpecificDispatchEventFor=function(b){a.dispatchEventFor[b]&&(a.dispatchEventFor[b]=!1,d--,0===d&&(a.dispatchEventFor={},a.emit("Tracker:Plugin:SpecificEvent:Exec:Complete",{lvl:"INFO"})))}; a.dispatch=function(b,c){var g=function(){for(var d="",f=null;0]/g,"").substring(0, 1600).replace(/&/g,"$"));return a},u=function(){var b=a.utils.getDocumentLevel();a.setParam("ref",r(b),{permanent:!0,last:!0,hitType:["page","ecommerce","avinsights","events"]})},v=function(){b="set"+(h.domainAttribution?"":"Private");c="get"+(h.domainAttribution?"":"Private");var r=a.utils.getLocation();g=a.utils.getQueryStringValue("xtref",r);void 0===g&&(g="");d=a.getContext("forcedReferer");if(a.getConfig("redirect")){var r=a.utils.getDocumentLevel(),r=d?d:null!==g?g:r?r.referrer:"acc_dir",v; if(v=r){v={path:"/",end:a.getConfig("redirectionLifetime")};var C=m(c,["atredir"]);null!==C?v="object"===typeof C&&!(C instanceof Array):(m(b,["atredir",{},v]),v=!0)}v&&m(b,[["atredir","ref"],r])}else k=m(c,[["atredir","ref"]]),m("del",[["atredir","ref"]]),e(),f(),q(),n(),t(),p(),l(),s(),u();a.emit("ContextVariables:Ready",{lvl:"INFO"})};a.contextVariables={};a.contextVariables.params={};a.contextVariables.params.vtag=e;a.contextVariables.params.ptag=f;a.contextVariables.params.r=q;a.contextVariables.params.re= n;a.contextVariables.params.lng=p;a.contextVariables.params.idp=l;a.contextVariables.params.jv=s;a.contextVariables.params.hl=t;a.contextVariables.params.ref=u;a.contextVariables.setAll=v;a.plugins.waitForDependencies(["Storage","Utils"],v)};ATInternet.Tracker.addPlugin("ContextVariables"); }).call(window);(function(){var dfltPluginCfg={};var dfltGlobalCfg={};ATInternet.Tracker.Plugins.Page=function(a){var g=["pageId","chapterLabel","update"],k=["pid","pchap","pidt"],d=["page","site"],b=["f","x"],c=function(b){return a.utils.manageChapters(b,"chapter",3)+(b.name?b.name:"")},h=function(a,b,c){b?a=b:a||"undefined"===typeof c||(a=c);return a},m=function(a,b,c){b.hasOwnProperty(c)&&(a[c]=h(a[c],b[c],void 0))},e=function(c,f,e){if(f)for(var g=0;gb.delay?1:0})},l=function(a){var b;a=a?e.delayBufferingConfiguration:e.delayConfiguration;"undefined"!==typeof a[1]&&(b=a[1].delay);"undefined"===typeof b?a[0].number=1:0b?h.seekBackward(a,b,c,f):h.seekForward(a, b,c,f)};h.seekBackward=function(a,b,c,f){h.seekStart(a,null,f);e.eventDuration=0;e.previousCursorPosition=m.value2Number(a);e.currentCursorPosition=m.value2Number(b);t("av.backward",!0,c,f)};h.seekForward=function(a,b,c,f){h.seekStart(a,null,f);e.eventDuration=0;e.previousCursorPosition=m.value2Number(a);e.currentCursorPosition=m.value2Number(b);t("av.forward",!0,c,f)};h.seekStart=function(a,b,c){a=m.value2Number(a);e.previousCursorPosition=e.currentCursorPosition;e.currentCursorPosition=a;e.eventDuration= e.isPlaying?f.getEventDuration():0;t("av.seek.start",!0,b,c)};h.adClick=function(a,b){t("av.ad.click",!1,a,b)};h.adSkip=function(a,b){t("av.ad.skip",!1,a,b)};h.error=function(a,b,c){var f={};ATInternet.Utils.isObject(c)&&(f=c);f.av_player_error=String(a);t("av.error",!1,b,f)};h.display=function(a,b){t("av.display",!1,a,b)};h.close=function(a,b){t("av.close",!1,a,b)};h.volume=function(a,b){t("av.volume",!1,a,b)};h.subtitleOn=function(a,b){t("av.subtitle.on",!1,a,b)};h.subtitleOff=function(a,b){t("av.subtitle.off", !1,a,b)};h.fullscreenOn=function(a,b){t("av.fullscreen.on",!1,a,b)};h.fullscreenOff=function(a,b){t("av.fullscreen.off",!1,a,b)};h.quality=function(a,b){t("av.quality",!1,a,b)};h.speed=function(a,b){t("av.speed",!1,a,b)};h.share=function(a,b){t("av.share",!1,a,b)};e={previousCursorPosition:0,currentCursorPosition:0,eventDuration:0,playbackSpeed:1,previousEvent:"",isPlaybackActivated:!1,isPlaying:!1,sessionId:"",delayConfiguration:[],delayConfigurationBackup:[],delayBufferingConfiguration:[],delayBufferingConfigurationBackup:[]}; (function(){var a=b?{0:1,1:10,5:20,15:30,30:60}:null;s(!1,d?{0:5,1:10,5:20,15:30,30:60}:null);s(!0,a)})();e.sessionId=c||ATInternet.Utils.uuid().v4();(function(){f=new r;ATInternet.Utils.addEvtListener(window,"unload",function(){f.stopHeartbeatTimer(!1);f.stopHeartbeatTimer(!0)})})();q={}};(function(){a.plugins.waitForDependencies(["EventRoot"],function(){a.configPlugin("AvInsights",dfltPluginCfg||{},function(a){g=a})})})()};ATInternet.Tracker.addPlugin("AvInsights"); }).call(window);(function(){var dfltPluginCfg={"hitParameter":"col","hitValue":"2"};var dfltGlobalCfg={};ATInternet.Tracker.Plugins.EventRoot=function(a){var g={},k=function(a){for(var b=[],c,d=0;d=k;k++)if(l="chapter"+k,h=b[l]||"",g&&h||!g&&b.hasOwnProperty(l))d[l]=h;b.url&&(d.url=b.url);g={};"string"===typeof b.level2?(h=ATInternet.Utils.trim(b.level2),0b.delay?1:0});this.timeout[b][c]={refreshTab:e,backupRefreshTab:ATInternet.Utils.cloneSimpleObject(e),delayConfiguration:{}}}d=this.timeout[b][c];if(0> profil: "+profil); } function EnvoleDnmaClickSonde(element,plateform,exploitant,projet,appli,login,profil,collectivite,etab,service,fgdebug) { if(login) { var ATTag = new ATInternet.Tracker.Tag({site: collectivite}); ATTag.setProps({ "SERVICE": service, "TYPE": "TIERS", "OUTIL": appli.toUpperCase(), "UAI": etab, "PROJET": projet, "EXPLOITANT": exploitant, "PLATEFORME": plateform, "PROFIL": DnmaProfil(profil), }, false); ATTag.identifiedVisitor.set({ id: login, category: DnmaProfil(profil), }); ATTag.click.send({ elem: element, name: appli.toUpperCase(), level2:etab, type: 'navigation', }); if(fgdebug) console.log("SONDE DNMA = appli: "+appli.toUpperCase()+" >> login: "+login+" >> service: "+service); } } function EnvoleDnmaSonde(plateform,exploitant,projet,appli,login,profil,collectivite,etab,usage,route,fgdebug) { if(login) { if(fgdebug) console.log("SONDE DNMA = usage: "+usage); if(usage) service = DnmaServicebyUsage(usage); else service = DnmaServicebyAppli(appli); profil = DnmaProfil(profil); var ATTag = new ATInternet.Tracker.Tag({site: collectivite}); ATTag.setProps({ "SERVICE": service, "TYPE": "NATIF", "OUTIL": appli.toUpperCase(), "UAI": etab, "PROJET": projet, "EXPLOITANT": exploitant, "PLATEFORME": plateform, "PROFIL": profil, }, true) ATTag.identifiedVisitor.set({ id: login, category: profil }); ATTag.page.set({ name: appli.toUpperCase(), chapter1:'', chapter2:'', chapter3:'', level2:etab, }); ATTag.dispatch(); if(fgdebug && route) console.log("SONDE DNMA = route: "+route+" >> usage: "+usage); if(fgdebug) console.log("SONDE DNMA = appli: "+appli.toUpperCase()+" >> login: "+login+" >> service: "+service); } } function DnmaServicebyUsage(usage) { switch (usage.toUpperCase()) { case 'ACCUEIL': return "ACCUEIL"; break; case 'FICHIER': return "STOCKAGE_PARTAGE"; break; case 'COLLABORATIF': return "PRODUCTION_COLLABORATIVE"; break; case 'CALENDRIER': return "GESTION_TEMPS"; break; default: return "PAGE_ENT"; break; } } function DnmaServicebyAppli(appli) { switch (appli.toUpperCase()) { case 'CALENDRIER': return "GESTION_TEMPS"; break; case 'CDT': return "SERVICES_VIE_SCOLAIRE"; break; case 'DOKUWIKI': return "PRODUCTION_COLLABORATIVE"; break; case 'ECONNECT': return "PAGE_ENT"; break; case 'EDISPATCHER': return "PAGE_ENT"; break; case 'ETHERHOME': return "PRODUCTION_COLLABORATIVE"; break; case 'FLUXBB': return "PRODUCTION_COLLABORATIVE"; break; case 'GRR': return "RESERVATION_SALLES_MATERIELS"; break; case 'GEPI': return "SERVICES_VIE_SCOLAIRE"; break; case 'KANBOARD': return "PRODUCTION_COLLABORATIVE"; break; case 'LIMESURVEY': return "PRODUCTION_COLLABORATIVE"; break; case 'MAHARA': return "GESTION_COMPETENCES"; break; case 'MINDMAPS': return "PRODUCTION_COLLABORATIVE"; break; case 'MOODLE': return "PARCOURS_PEDAGOGIQUE"; break; case 'NINEBOARD': return "PRODUCTION_COLLABORATIVE"; break; case 'NINESCHOOL': return "PARCOURS_PEDAGOGIQUE"; break; case 'NINESKELETOR': return "PAGE_ENT"; break; case 'NINESURVEY': return "GESTION_TEMPS"; break; case 'OPENSONDAGE': return "GESTION_TEMPS"; break; case 'PIWIGO': return "STOCKAGE_PARTAGE"; break; case 'ROUNDCUBE': return "COURRIER_ELECTRONIQUE"; break; case 'SACOCHE': return "GESTION_COMPETENCES"; break; case 'WORDPRESS': return "PRODUCTION_COLLABORATIVE"; break; default: return "PAGE_ENT"; break; } } function DnmaProfil(profil) { switch (profil) { case 'National_1': return "ELEVE"; break; // Eleve case 'National_2': return "PARENT"; break; // Responsable case 'National_3': return "ENSEIGNANT"; break; // Enseignant case 'National_6': return "ADMIN_VIE_SCOL_TECH"; break; // Administatif case 'administrateur': return "ADMIN_VIE_SCOL_TECH"; break; // Administrateur case 'autre': return "AUTRE"; break; // Autre default: return "AUTRE"; break; // Autre } } // Une fonction qui va lancer toutes les sondes function EnvoleLancerLesSondes() { // Variables var rne = '9741173G'; var name = 'LA POSSESSION'; var adress = ''; var cp = ''; var country = 'France'; var type = 'collège'; var nature = 'production'; var job = 'ENT'; var appli = 'wordpress'; var profil = 'visiteur'; var login = ''; var provenance = 'externe'; var route = ''; var usage = ''; var fgdebug = ''; // Variables DNMA var plateform = "ENVOLE"; var exploitant = "MEN-PCLL"; var projet = "METICE"; var collectivite = "614591"; var etab = "9741173G"; if(login) { // Sonde Piwik EnvolePiwikSonde("https://portail.lapossession.ac-reunion.fr/piwik/",rne,name,adress,cp,country,type,nature,job,appli,profil,provenance,1,fgdebug); EnvolePiwikSonde("https://piwik.ac-reunion.fr//",rne,name,adress,cp,country,type,nature,job,appli,profil,provenance,129,fgdebug); // Sonde DNMA EnvoleDnmaSonde(plateform,exploitant,projet,appli,login,profil,collectivite,etab,usage,route,fgdebug); } } // Une fonction qui va lancer la sondes sur des clicks function EnvoleClickSondes(element,appli,service) { // Variables var rne = '9741173G'; var name = 'LA POSSESSION'; var adress = ''; var cp = ''; var country = 'France'; var type = 'collège'; var nature = 'production'; var job = 'ENT'; var profil = 'visiteur'; var login = ''; var provenance = 'externe'; var route = ''; var usage = ''; var fgdebug = ''; // Variables DNMA var plateform = "ENVOLE"; var exploitant = "MEN-PCLL"; var projet = "METICE"; var collectivite = "614591"; var etab = "9741173G"; // Sonde Piwik if(login) { // Sonde Piwik EnvolePiwikSonde("https://portail.lapossession.ac-reunion.fr/piwik/",rne,name,adress,cp,country,type,nature,job,appli,profil,provenance,1,fgdebug); EnvolePiwikSonde("https://piwik.ac-reunion.fr//",rne,name,adress,cp,country,type,nature,job,appli,profil,provenance,129,fgdebug); // Sonde DNMA EnvoleDnmaClickSonde(element,plateform,exploitant,projet,appli,login,profil,collectivite,etab,service,fgdebug); } } // Execution des sondes EnvoleLancerLesSondes();