-
Notifications
You must be signed in to change notification settings - Fork 0
/
piwik.js
72 lines (72 loc) · 56.7 KB
/
piwik.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*!!
* Piwik - free/libre analytics platform
*
* JavaScript tracking client
*
* @link http://piwik.org
* @source https://github.com/piwik/piwik/blob/master/js/piwik.js
* @license http://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 JSON2!=="object"&&typeof window.JSON==="object"&&window.JSON.stringify&&window.JSON.parse){JSON2=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<ah;ag++){var ae=ai.charCodeAt(ag);switch(ae){case 8:case 9:case 10:case 12:case 13:case 34:case 92:ad+=q[ae];break;default:if(ae<32){ad+=z+t(2,ae.toString(16));break}ad+=ac?af[ag]:ai.charAt(ag)}}return ad+'"'};var p=function(ai,aA,ag,al,ax,ac,aj){var at,ae,ap,az,ay,ak,aw,au,aq,an,ar,ad,ah,af,av,ao;try{at=aA[ai]}catch(am){}if(typeof at=="object"&&at){ae=u.call(at);if(ae==Q&&!r.call(at,"toJSON")){if(at>-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;ah<af;ah++){ad=p(ah,at,ag,al,ax,ac,aj);ar.push(ad===L?"null":ad)}ao=ar.length?(ax?"[\n"+ac+ar.join(",\n"+ac)+"\n"+av+"]":("["+ar.join(",")+"]")):"[]"}else{m(al||at,function(aC){var aB=p(aC,at,ag,al,ax,ac,aj);if(aB!==L){ar.push(C(aC)+":"+(ax?" ":"")+aB)}});ao=ar.length?(ax?"{\n"+ac+ar.join(",\n"+ac)+"\n"+av+"}":("{"+ar.join(",")+"}")):"{}"}aj.pop();return ao}};V.stringify=function(ac,ae,af){var ad,al,aj,ai;if(e[typeof ae]&&ae){if((ai=u.call(ae))==U){al=ae}else{if(ai==E){aj={};for(var ah=0,ag=ae.length,ak;ah<ag;ak=ae[ah++],((ai=u.call(ak)),ai==O||ai==N)&&(aj[ak]=1)){}}}}if(af){if((ai=u.call(af))==N){if((af-=af%1)>0){for(ad="",af>10&&(af=10);
ad.length<af;ad+=" "){}}}else{if(ai==O){ad=af.length<=10?af:af.slice(0,10)}}}return p("",(ak={},ak[""]=ac,ak),al,aj,ad,"",[])}}if(!o("json-parse")){var M=R.fromCharCode;var l={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"};var G,X;var H=function(){G=X=null;throw T()};var y=function(){var ah=X,af=ah.length,ag,ae,ac,ai,ad;while(G<af){ad=ah.charCodeAt(G);switch(ad){case 9:case 10:case 13:case 32:G++;break;case 123:case 125:case 91:case 93:case 58:case 44:ag=F?ah.charAt(G):ah[G];G++;return ag;case 34:for(ag="@",G++;G<af;){ad=ah.charCodeAt(G);if(ad<32){H()}else{if(ad==92){ad=ah.charCodeAt(++G);switch(ad){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:ag+=l[ad];G++;break;case 117:ae=++G;for(ac=G+4;G<ac;G++){ad=ah.charCodeAt(G);if(!(ad>=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<af&&((ad=ah.charCodeAt(G)),ad>=48&&ad<=57);G++){}if(ah.charCodeAt(G)==46){ac=++G;for(;ac<af&&((ad=ah.charCodeAt(ac)),ad>=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<af&&((ad=ah.charCodeAt(ac)),ad>=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);JSON2=a})()}if(typeof _paq!=="object"){_paq=[]}if(typeof window.Piwik!=="object"){window.Piwik=(function(){var n,a={},t={},A=document,f=navigator,R=screen,N=window,g=N.performance||N.mozPerformance||N.msPerformance||N.webkitPerformance,p=N.encodeURIComponent,M=N.decodeURIComponent,i=unescape,C=[],z,d,Y=[];
function l(af){try{return M(af)}catch(ag){return unescape(af)}}function D(ag){var af=typeof ag;return af!=="undefined"}function v(af){return typeof af==="function"}function Q(af){return typeof af==="object"}function s(af){return typeof af==="string"||af instanceof String}function w(ag){if(!ag){return true}var af;var ah=true;for(af in ag){if(Object.prototype.hasOwnProperty.call(ag,af)){ah=false}}return ah}function ab(af){if(console!==undefined&&console&&console.error){console.error(af)}}function X(){var ak,aj,am,ag,af;for(ak=0;ak<arguments.length;ak+=1){af=null;if(arguments[ak]&&arguments[ak].slice){af=arguments[ak].slice()}ag=arguments[ak];am=ag.shift();var al,ah;var ai=s(am)&&am.indexOf("::")>0;if(ai){al=am.split("::");ah=al[0];am=al[1];if("object"===typeof d[ah]&&"function"===typeof d[ah][am]){d[ah][am].apply(d[ah],ag)}else{if(af){Y.push(af)}}}else{for(aj=0;aj<C.length;aj++){if(s(am)){ah=C[aj];var an=am.indexOf(".")>0;if(an){al=am.split(".");if(ah&&"object"===typeof ah[al[0]]){ah=ah[al[0]];
am=al[1]}else{if(af){Y.push(af);break}}}if(ah[am]){ah[am].apply(ah,ag)}else{var ao="The method '"+am+'\' was not found in "_paq" variable. Please have a look at the Piwik tracker documentation: http://developer.piwik.org/api-reference/tracking-javascript';ab(ao);if(!an){throw new TypeError(ao)}}if(am==="addTracker"){break}if(am==="setTrackerUrl"||am==="setSiteId"){break}}else{am.apply(C[aj],ag)}}}}}function ae(ai,ah,ag,af){if(ai.addEventListener){ai.addEventListener(ah,ag,af);return true}if(ai.attachEvent){return ai.attachEvent("on"+ah,ag)}ai["on"+ah]=ag}function j(af){if(A.readyState==="complete"){af()}else{if(N.addEventListener){N.addEventListener("load",af)}else{if(N.attachEvent){N.attachEvent("onload",af)}}}}function m(ai){var af=false;if(A.attachEvent){af=A.readyState==="complete"}else{af=A.readyState!=="loading"}if(af){ai();return}var ah;if(A.addEventListener){ae(A,"DOMContentLoaded",function ag(){A.removeEventListener("DOMContentLoaded",ag,false);if(!af){af=true;ai()}})}else{if(A.attachEvent){A.attachEvent("onreadystatechange",function ag(){if(A.readyState==="complete"){A.detachEvent("onreadystatechange",ag);
if(!af){af=true;ai()}}});if(A.documentElement.doScroll&&N===N.top){(function ag(){if(!af){try{A.documentElement.doScroll("left")}catch(aj){setTimeout(ag,0);return}af=true;ai()}}())}}}ae(N,"load",function(){if(!af){af=true;ai()}},false)}function U(ag,ak){var af="",ai,ah,aj;for(ai in a){if(Object.prototype.hasOwnProperty.call(a,ai)){ah=a[ai][ag];if(v(ah)){aj=ah(ak);if(aj){af+=aj}}}}return af}function Z(){var af;U("unload");if(n){do{af=new Date()}while(af.getTimeAlias()<n)}}function k(ah,ag){var af=A.createElement("script");af.type="text/javascript";af.src=ah;if(af.readyState){af.onreadystatechange=function(){var ai=this.readyState;if(ai==="loaded"||ai==="complete"){af.onreadystatechange=null;ag()}}}else{af.onload=ag}A.getElementsByTagName("head")[0].appendChild(af)}function E(){var af="";try{af=N.top.document.referrer}catch(ah){if(N.parent){try{af=N.parent.document.referrer}catch(ag){af=""}}}if(af===""){af=A.referrer}return af}function o(af){var ah=new RegExp("^([a-z]+):"),ag=ah.exec(af);
return ag?ag[1]:null}function c(af){var ah=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),ag=ah.exec(af);return ag?ag[1]:af}function P(ah,ag){var af="[\\?&#]"+ag+"=([^&#]*)";var aj=new RegExp(af);var ai=aj.exec(ah);return ai?M(ai[1]):""}function y(af){return unescape(p(af))}function ad(av){var ah=function(aB,aA){return(aB<<aA)|(aB>>>(32-aA))},aw=function(aD){var aB="",aC,aA;for(aC=7;aC>=0;aC--){aA=(aD>>>(aC*4))&15;aB+=aA.toString(16)}return aB},ak,ay,ax,ag=[],ao=1732584193,am=4023233417,al=2562383102,aj=271733878,ai=3285377520,au,at,ar,aq,ap,az,af,an=[];av=y(av);af=av.length;for(ay=0;ay<af-3;ay+=4){ax=av.charCodeAt(ay)<<24|av.charCodeAt(ay+1)<<16|av.charCodeAt(ay+2)<<8|av.charCodeAt(ay+3);an.push(ax)}switch(af&3){case 0:ay=2147483648;break;case 1:ay=av.charCodeAt(af-1)<<24|8388608;break;case 2:ay=av.charCodeAt(af-2)<<24|av.charCodeAt(af-1)<<16|32768;break;case 3:ay=av.charCodeAt(af-3)<<24|av.charCodeAt(af-2)<<16|av.charCodeAt(af-1)<<8|128;break}an.push(ay);while((an.length&15)!==14){an.push(0)
}an.push(af>>>29);an.push((af<<3)&4294967295);for(ak=0;ak<an.length;ak+=16){for(ay=0;ay<16;ay++){ag[ay]=an[ak+ay]}for(ay=16;ay<=79;ay++){ag[ay]=ah(ag[ay-3]^ag[ay-8]^ag[ay-14]^ag[ay-16],1)}au=ao;at=am;ar=al;aq=aj;ap=ai;for(ay=0;ay<=19;ay++){az=(ah(au,5)+((at&ar)|(~at&aq))+ap+ag[ay]+1518500249)&4294967295;ap=aq;aq=ar;ar=ah(at,30);at=au;au=az}for(ay=20;ay<=39;ay++){az=(ah(au,5)+(at^ar^aq)+ap+ag[ay]+1859775393)&4294967295;ap=aq;aq=ar;ar=ah(at,30);at=au;au=az}for(ay=40;ay<=59;ay++){az=(ah(au,5)+((at&ar)|(at&aq)|(ar&aq))+ap+ag[ay]+2400959708)&4294967295;ap=aq;aq=ar;ar=ah(at,30);at=au;au=az}for(ay=60;ay<=79;ay++){az=(ah(au,5)+(at^ar^aq)+ap+ag[ay]+3395469782)&4294967295;ap=aq;aq=ar;ar=ah(at,30);at=au;au=az}ao=(ao+au)&4294967295;am=(am+at)&4294967295;al=(al+ar)&4294967295;aj=(aj+aq)&4294967295;ai=(ai+ap)&4294967295}az=aw(ao)+aw(am)+aw(al)+aw(aj)+aw(ai);return az.toLowerCase()}function T(ah,af,ag){if(!ah){ah=""}if(!af){af=""}if(ah==="translate.googleusercontent.com"){if(ag===""){ag=af}af=P(af,"u");
ah=c(af)}else{if(ah==="cc.bingj.com"||ah==="webcache.googleusercontent.com"||ah.slice(0,5)==="74.6."){af=A.links[0].href;ah=c(af)}}return[ah,af,ag]}function F(ag){var af=ag.length;if(ag.charAt(--af)==="."){ag=ag.slice(0,af)}if(ag.slice(0,2)==="*."){ag=ag.slice(1)}if(ag.indexOf("/")!==-1){ag=ag.substr(0,ag.indexOf("/"))}return ag}function ac(ag){ag=ag&&ag.text?ag.text:ag;if(!s(ag)){var af=A.getElementsByTagName("title");if(af&&D(af[0])){ag=af[0].text}}return ag}function J(af){if(!af){return[]}if(!D(af.children)&&D(af.childNodes)){return af.children}if(D(af.children)){return af.children}return[]}function O(ag,af){if(!ag||!af){return false}if(ag.contains){return ag.contains(af)}if(ag===af){return true}if(ag.compareDocumentPosition){return !!(ag.compareDocumentPosition(af)&16)}return false}function G(ah,ai){if(ah&&ah.indexOf){return ah.indexOf(ai)}if(!D(ah)||ah===null){return -1}if(!ah.length){return -1}var af=ah.length;if(af===0){return -1}var ag=0;while(ag<af){if(ah[ag]===ai){return ag}ag++
}return -1}function aa(ag,af){ag=String(ag);return ag.lastIndexOf(af,0)===0}function L(ag,af){ag=String(ag);return ag.indexOf(af,ag.length-af.length)!==-1}function u(ag,af){ag=String(ag);return ag.indexOf(af)!==-1}function e(ag,af){ag=String(ag);return ag.substr(0,ag.length-af)}function h(ah){if(!ah){return false}function af(aj,ak){if(N.getComputedStyle){return A.defaultView.getComputedStyle(aj,null)[ak]}if(aj.currentStyle){return aj.currentStyle[ak]}}function ai(aj){aj=aj.parentNode;while(aj){if(aj===A){return true}aj=aj.parentNode}return false}function ag(al,ar,aj,ao,am,ap,an){var ak=al.parentNode,aq=1;if(!ai(al)){return false}if(9===ak.nodeType){return true}if("0"===af(al,"opacity")||"none"===af(al,"display")||"hidden"===af(al,"visibility")){return false}if(!D(ar)||!D(aj)||!D(ao)||!D(am)||!D(ap)||!D(an)){ar=al.offsetTop;am=al.offsetLeft;ao=ar+al.offsetHeight;aj=am+al.offsetWidth;ap=al.offsetWidth;an=al.offsetHeight}if(ah===al&&(0===an||0===ap)&&"hidden"===af(al,"overflow")){return false
}if(ak){if(("hidden"===af(ak,"overflow")||"scroll"===af(ak,"overflow"))){if(am+aq>ak.offsetWidth+ak.scrollLeft||am+ap-aq<ak.scrollLeft||ar+aq>ak.offsetHeight+ak.scrollTop||ar+an-aq<ak.scrollTop){return false}}if(al.offsetParent===ak){am+=ak.offsetLeft;ar+=ak.offsetTop}return ag(ak,ar,aj,ao,am,ap,an)}return true}return ag(ah)}var W={htmlCollectionToArray:function(ah){var af=[],ag;if(!ah||!ah.length){return af}for(ag=0;ag<ah.length;ag++){af.push(ah[ag])}return af},find:function(af){if(!document.querySelectorAll||!af){return[]}var ag=document.querySelectorAll(af);return this.htmlCollectionToArray(ag)},findMultiple:function(ah){if(!ah||!ah.length){return[]}var ag,ai;var af=[];for(ag=0;ag<ah.length;ag++){ai=this.find(ah[ag]);af=af.concat(ai)}af=this.makeNodesUnique(af);return af},findNodesByTagName:function(ag,af){if(!ag||!af||!ag.getElementsByTagName){return[]}var ah=ag.getElementsByTagName(af);return this.htmlCollectionToArray(ah)},makeNodesUnique:function(af){var ak=[].concat(af);af.sort(function(am,al){if(am===al){return 0
}var ao=G(ak,am);var an=G(ak,al);if(ao===an){return 0}return ao>an?-1:1});if(af.length<=1){return af}var ag=0;var ai=0;var aj=[];var ah;ah=af[ag++];while(ah){if(ah===af[ag]){ai=aj.push(ag)}ah=af[ag++]||null}while(ai--){af.splice(aj[ai],1)}return af},getAttributeValueFromNode:function(aj,ah){if(!this.hasNodeAttribute(aj,ah)){return}if(aj&&aj.getAttribute){return aj.getAttribute(ah)}if(!aj||!aj.attributes){return}var ai=(typeof aj.attributes[ah]);if("undefined"===ai){return}if(aj.attributes[ah].value){return aj.attributes[ah].value}if(aj.attributes[ah].nodeValue){return aj.attributes[ah].nodeValue}var ag;var af=aj.attributes;if(!af){return}for(ag=0;ag<af.length;ag++){if(af[ag].nodeName===ah){return af[ag].nodeValue}}return null},hasNodeAttributeWithValue:function(ag,af){var ah=this.getAttributeValueFromNode(ag,af);return !!ah},hasNodeAttribute:function(ah,af){if(ah&&ah.hasAttribute){return ah.hasAttribute(af)}if(ah&&ah.attributes){var ag=(typeof ah.attributes[af]);return"undefined"!==ag}return false
},hasNodeCssClass:function(ah,af){if(ah&&af&&ah.className){var ag=typeof ah.className==="string"?ah.className.split(" "):[];if(-1!==G(ag,af)){return true}}return false},findNodesHavingAttribute:function(aj,ah,af){if(!af){af=[]}if(!aj||!ah){return af}var ai=J(aj);if(!ai||!ai.length){return af}var ag,ak;for(ag=0;ag<ai.length;ag++){ak=ai[ag];if(this.hasNodeAttribute(ak,ah)){af.push(ak)}af=this.findNodesHavingAttribute(ak,ah,af)}return af},findFirstNodeHavingAttribute:function(ah,ag){if(!ah||!ag){return}if(this.hasNodeAttribute(ah,ag)){return ah}var af=this.findNodesHavingAttribute(ah,ag);if(af&&af.length){return af[0]}},findFirstNodeHavingAttributeWithValue:function(ai,ah){if(!ai||!ah){return}if(this.hasNodeAttributeWithValue(ai,ah)){return ai}var af=this.findNodesHavingAttribute(ai,ah);if(!af||!af.length){return}var ag;for(ag=0;ag<af.length;ag++){if(this.getAttributeValueFromNode(af[ag],ah)){return af[ag]}}},findNodesHavingCssClass:function(aj,ai,af){if(!af){af=[]}if(!aj||!ai){return af}if(aj.getElementsByClassName){var ak=aj.getElementsByClassName(ai);
return this.htmlCollectionToArray(ak)}var ah=J(aj);if(!ah||!ah.length){return[]}var ag,al;for(ag=0;ag<ah.length;ag++){al=ah[ag];if(this.hasNodeCssClass(al,ai)){af.push(al)}af=this.findNodesHavingCssClass(al,ai,af)}return af},findFirstNodeHavingClass:function(ah,ag){if(!ah||!ag){return}if(this.hasNodeCssClass(ah,ag)){return ah}var af=this.findNodesHavingCssClass(ah,ag);if(af&&af.length){return af[0]}},isLinkElement:function(ag){if(!ag){return false}var af=String(ag.nodeName).toLowerCase();var ai=["a","area"];var ah=G(ai,af);return ah!==-1},setAnyAttribute:function(ag,af,ah){if(!ag||!af){return}if(ag.setAttribute){ag.setAttribute(af,ah)}else{ag[af]=ah}}};var r={CONTENT_ATTR:"data-track-content",CONTENT_CLASS:"piwikTrackContent",CONTENT_NAME_ATTR:"data-content-name",CONTENT_PIECE_ATTR:"data-content-piece",CONTENT_PIECE_CLASS:"piwikContentPiece",CONTENT_TARGET_ATTR:"data-content-target",CONTENT_TARGET_CLASS:"piwikContentTarget",CONTENT_IGNOREINTERACTION_ATTR:"data-content-ignoreinteraction",CONTENT_IGNOREINTERACTION_CLASS:"piwikContentIgnoreInteraction",location:undefined,findContentNodes:function(){var ag="."+this.CONTENT_CLASS;
var af="["+this.CONTENT_ATTR+"]";var ah=W.findMultiple([ag,af]);return ah},findContentNodesWithinNode:function(ai){if(!ai){return[]}var ag=W.findNodesHavingCssClass(ai,this.CONTENT_CLASS);var af=W.findNodesHavingAttribute(ai,this.CONTENT_ATTR);if(af&&af.length){var ah;for(ah=0;ah<af.length;ah++){ag.push(af[ah])}}if(W.hasNodeAttribute(ai,this.CONTENT_ATTR)){ag.push(ai)}else{if(W.hasNodeCssClass(ai,this.CONTENT_CLASS)){ag.push(ai)}}ag=W.makeNodesUnique(ag);return ag},findParentContentNode:function(ag){if(!ag){return}var ah=ag;var af=0;while(ah&&ah!==A&&ah.parentNode){if(W.hasNodeAttribute(ah,this.CONTENT_ATTR)){return ah}if(W.hasNodeCssClass(ah,this.CONTENT_CLASS)){return ah}ah=ah.parentNode;if(af>1000){break}af++}},findPieceNode:function(ag){var af;af=W.findFirstNodeHavingAttribute(ag,this.CONTENT_PIECE_ATTR);if(!af){af=W.findFirstNodeHavingClass(ag,this.CONTENT_PIECE_CLASS)}if(af){return af}return ag},findTargetNodeNoDefault:function(af){if(!af){return}var ag=W.findFirstNodeHavingAttributeWithValue(af,this.CONTENT_TARGET_ATTR);
if(ag){return ag}ag=W.findFirstNodeHavingAttribute(af,this.CONTENT_TARGET_ATTR);if(ag){return ag}ag=W.findFirstNodeHavingClass(af,this.CONTENT_TARGET_CLASS);if(ag){return ag}},findTargetNode:function(af){var ag=this.findTargetNodeNoDefault(af);if(ag){return ag}return af},findContentName:function(ag){if(!ag){return}var aj=W.findFirstNodeHavingAttributeWithValue(ag,this.CONTENT_NAME_ATTR);if(aj){return W.getAttributeValueFromNode(aj,this.CONTENT_NAME_ATTR)}var af=this.findContentPiece(ag);if(af){return this.removeDomainIfIsInLink(af)}if(W.hasNodeAttributeWithValue(ag,"title")){return W.getAttributeValueFromNode(ag,"title")}var ah=this.findPieceNode(ag);if(W.hasNodeAttributeWithValue(ah,"title")){return W.getAttributeValueFromNode(ah,"title")}var ai=this.findTargetNode(ag);if(W.hasNodeAttributeWithValue(ai,"title")){return W.getAttributeValueFromNode(ai,"title")}},findContentPiece:function(ag){if(!ag){return}var ai=W.findFirstNodeHavingAttributeWithValue(ag,this.CONTENT_PIECE_ATTR);if(ai){return W.getAttributeValueFromNode(ai,this.CONTENT_PIECE_ATTR)
}var af=this.findPieceNode(ag);var ah=this.findMediaUrlInNode(af);if(ah){return this.toAbsoluteUrl(ah)}},findContentTarget:function(ah){if(!ah){return}var ai=this.findTargetNode(ah);if(W.hasNodeAttributeWithValue(ai,this.CONTENT_TARGET_ATTR)){return W.getAttributeValueFromNode(ai,this.CONTENT_TARGET_ATTR)}var ag;if(W.hasNodeAttributeWithValue(ai,"href")){ag=W.getAttributeValueFromNode(ai,"href");return this.toAbsoluteUrl(ag)}var af=this.findPieceNode(ah);if(W.hasNodeAttributeWithValue(af,"href")){ag=W.getAttributeValueFromNode(af,"href");return this.toAbsoluteUrl(ag)}},isSameDomain:function(af){if(!af||!af.indexOf){return false}if(0===af.indexOf(this.getLocation().origin)){return true}var ag=af.indexOf(this.getLocation().host);if(8>=ag&&0<=ag){return true}return false},removeDomainIfIsInLink:function(ah){var ag="^https?://[^/]+";var af="^.*//[^/]+";if(ah&&ah.search&&-1!==ah.search(new RegExp(ag))&&this.isSameDomain(ah)){ah=ah.replace(new RegExp(af),"");if(!ah){ah="/"}}return ah},findMediaUrlInNode:function(aj){if(!aj){return
}var ah=["img","embed","video","audio"];var af=aj.nodeName.toLowerCase();if(-1!==G(ah,af)&&W.findFirstNodeHavingAttributeWithValue(aj,"src")){var ai=W.findFirstNodeHavingAttributeWithValue(aj,"src");return W.getAttributeValueFromNode(ai,"src")}if(af==="object"&&W.hasNodeAttributeWithValue(aj,"data")){return W.getAttributeValueFromNode(aj,"data")}if(af==="object"){var ak=W.findNodesByTagName(aj,"param");if(ak&&ak.length){var ag;for(ag=0;ag<ak.length;ag++){if("movie"===W.getAttributeValueFromNode(ak[ag],"name")&&W.hasNodeAttributeWithValue(ak[ag],"value")){return W.getAttributeValueFromNode(ak[ag],"value")}}}var al=W.findNodesByTagName(aj,"embed");if(al&&al.length){return this.findMediaUrlInNode(al[0])}}},trim:function(af){if(af&&String(af)===af){return af.replace(/^\s+|\s+$/g,"")}return af},isOrWasNodeInViewport:function(ak){if(!ak||!ak.getBoundingClientRect||ak.nodeType!==1){return true}var aj=ak.getBoundingClientRect();var ai=A.documentElement||{};var ah=aj.top<0;if(ah&&ak.offsetTop){ah=(ak.offsetTop+aj.height)>0
}var ag=ai.clientWidth;if(N.innerWidth&&ag>N.innerWidth){ag=N.innerWidth}var af=ai.clientHeight;if(N.innerHeight&&af>N.innerHeight){af=N.innerHeight}return((aj.bottom>0||ah)&&aj.right>0&&aj.left<ag&&((aj.top<af)||ah))},isNodeVisible:function(ag){var af=h(ag);var ah=this.isOrWasNodeInViewport(ag);return af&&ah},buildInteractionRequestParams:function(af,ag,ah,ai){var aj="";if(af){aj+="c_i="+p(af)}if(ag){if(aj){aj+="&"}aj+="c_n="+p(ag)}if(ah){if(aj){aj+="&"}aj+="c_p="+p(ah)}if(ai){if(aj){aj+="&"}aj+="c_t="+p(ai)}return aj},buildImpressionRequestParams:function(af,ag,ah){var ai="c_n="+p(af)+"&c_p="+p(ag);if(ah){ai+="&c_t="+p(ah)}return ai},buildContentBlock:function(ah){if(!ah){return}var af=this.findContentName(ah);var ag=this.findContentPiece(ah);var ai=this.findContentTarget(ah);af=this.trim(af);ag=this.trim(ag);ai=this.trim(ai);return{name:af||"Unknown",piece:ag||"Unknown",target:ai||""}},collectContent:function(ai){if(!ai||!ai.length){return[]}var ah=[];var af,ag;for(af=0;af<ai.length;
af++){ag=this.buildContentBlock(ai[af]);if(D(ag)){ah.push(ag)}}return ah},setLocation:function(af){this.location=af},getLocation:function(){var af=this.location||N.location;if(!af.origin){af.origin=af.protocol+"//"+af.hostname+(af.port?":"+af.port:"")}return af},toAbsoluteUrl:function(ag){if((!ag||String(ag)!==ag)&&ag!==""){return ag}if(""===ag){return this.getLocation().href}if(ag.search(/^\/\//)!==-1){return this.getLocation().protocol+ag}if(ag.search(/:\/\//)!==-1){return ag}if(0===ag.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+ag}if(0===ag.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+ag}if(0===ag.search("^[a-zA-Z]{2,11}:")){return ag}if(ag.search(/^\//)!==-1){return this.getLocation().origin+ag}var af="(.*/)";var ah=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(af))[0];return ah+ag},isUrlToCurrentDomain:function(ag){var ah=this.toAbsoluteUrl(ag);if(!ah){return false}var af=this.getLocation().origin;
if(af===ah){return true}if(0===String(ah).indexOf(af)){if(":"===String(ah).substr(af.length,1)){return false}return true}return false},setHrefAttribute:function(ag,af){if(!ag||!af){return}W.setAnyAttribute(ag,"href",af)},shouldIgnoreInteraction:function(ah){var ag=W.hasNodeAttribute(ah,this.CONTENT_IGNOREINTERACTION_ATTR);var af=W.hasNodeCssClass(ah,this.CONTENT_IGNOREINTERACTION_CLASS);return ag||af}};function I(ag,aj){if(aj){return aj}if(u(ag,"?")){var ai=ag.indexOf("?");ag=ag.slice(0,ai)}if(L(ag,"piwik.php")){ag=e(ag,"piwik.php".length)}else{if(L(ag,".php")){var af=ag.lastIndexOf("/");var ah=1;ag=ag.slice(0,af+ah)}}if(L(ag,"/js/")){ag=e(ag,"js/".length)}return ag}function H(al){var an="Piwik_Overlay";var ag=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$");var ah=ag.exec(A.referrer);if(ah){var aj=ah[1];if(aj!==String(al)){return false}var ak=ah[2],af=ah[3],ai=ah[4];if(!ai){ai=""}else{if(ai.indexOf("&segment=")===0){ai=ai.substr("&segment=".length)
}}N.name=an+"###"+ak+"###"+af+"###"+ai}var am=N.name.split("###");return am.length===4&&am[0]===an}function S(ag,am,ai){var al=N.name.split("###"),ak=al[1],af=al[2],aj=al[3],ah=I(ag,am);k(ah+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(ah,ai,ak,af,aj)})}function q(){var ah;try{ah=N.frameElement}catch(ag){return true}if(D(ah)){return(ah&&String(ah.nodeName).toLowerCase()==="iframe")?true:false}try{return N.self!==N.top}catch(af){return true}}function K(bL,bF){var bB=T(A.domain,N.location.href,E()),ck=F(bB[0]),bl=l(bB[1]),a0=l(bB[2]),ci=false,bP="GET",cw=bP,au="application/x-www-form-urlencoded; charset=UTF-8",b1=au,ap=bL||"",bg="",co="",bD=bF||"",a9="",bm="",aM,aW="",ct=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],al=[ck],ba=[],bj=[],aP=[],bh=500,cb,aN,bp,bn,af,bX=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bf=["pk_kwd","piwik_kwd","utm_term"],aX="_pk_",cm,a2,aY=false,cg,aU,a6,cc=33955200000,bV=1800000,cs=15768000000,aK=true,bT=0,bo=false,az=false,bI,bt={},bS={},aZ={},a5=200,cp={},cu={},bH=[],bM=false,b5=false,ag=false,cv=false,ax=false,aT=q(),cn=null,bJ,aA,bb,bE=ad,a1;
try{aW=A.title}catch(b3){aW=""}function cz(cJ,cG,cF,cI,cE,cH){if(aY){return}var cD;if(cF){cD=new Date();cD.setTime(cD.getTime()+cF)}A.cookie=cJ+"="+p(cG)+(cF?";expires="+cD.toGMTString():"")+";path="+(cI||"/")+(cE?";domain="+cE:"")+(cH?";secure":"")}function ao(cF){if(aY){return 0}var cD=new RegExp("(^|;)[ ]*"+cF+"=([^;]*)"),cE=cD.exec(A.cookie);return cE?M(cE[2]):0}function bz(cD){var cE;if(bn){cE=new RegExp("#.*");return cD.replace(cE,"")}return cD}function bs(cF,cD){var cG=o(cD),cE;if(cG){return cD}if(cD.slice(0,1)==="/"){return o(cF)+"://"+c(cF)+cD}cF=bz(cF);cE=cF.indexOf("?");if(cE>=0){cF=cF.slice(0,cE)}cE=cF.lastIndexOf("/");if(cE!==cF.length-1){cF=cF.slice(0,cE+1)}return cF+cD}function b9(cF,cD){var cE;cF=String(cF).toLowerCase();cD=String(cD).toLowerCase();if(cF===cD){return true}if(cD.slice(0,1)==="."){if(cF===cD.slice(1)){return true}cE=cF.length-cD.length;if((cE>0)&&(cF.slice(cE)===cD)){return true}}return false}function bR(cD){var cE=document.createElement("a");if(cD.indexOf("//")!==0&&cD.indexOf("http")!==0){if(cD.indexOf("*")===0){cD=cD.substr(1)
}if(cD.indexOf(".")===0){cD=cD.substr(1)}cD="http://"+cD}cE.href=r.toAbsoluteUrl(cD);if(cE.pathname){return cE.pathname}return""}function aL(cE,cD){if(!aa(cD,"/")){cD="/"+cD}if(!aa(cE,"/")){cE="/"+cE}var cF=(cD==="/"||cD==="/*");if(cF){return true}if(cE===cD){return true}cD=String(cD).toLowerCase();cE=String(cE).toLowerCase();if(L(cD,"*")){cD=cD.slice(0,-1);cF=(!cD||cD==="/");if(cF){return true}if(cE===cD){return true}return cE.indexOf(cD)===0}if(!L(cE,"/")){cE+="/"}if(!L(cD,"/")){cD+="/"}return cE.indexOf(cD)===0}function ai(cH,cJ){var cE,cD,cF,cG,cI;for(cE=0;cE<al.length;cE++){cG=F(al[cE]);cI=bR(al[cE]);if(b9(cH,cG)&&aL(cJ,cI)){return true}}return false}function aE(cG){var cE,cD,cF;for(cE=0;cE<al.length;cE++){cD=F(al[cE].toLowerCase());if(cG===cD){return true}if(cD.slice(0,1)==="."){if(cG===cD.slice(1)){return true}cF=cG.length-cD.length;if((cF>0)&&(cG.slice(cF)===cD)){return true}}}return false}function bW(cD,cF){var cE=new Image(1,1);cE.onload=function(){z=0;if(typeof cF==="function"){cF()
}};cD=cD.replace("send_image=0","send_image=1");cE.src=ap+(ap.indexOf("?")<0?"?":"&")+cD}function cr(cE,cH,cD){if(!D(cD)||null===cD){cD=true}try{var cG=N.XMLHttpRequest?new N.XMLHttpRequest():N.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;cG.open("POST",ap,true);cG.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)&&cD){bW(cE,cH)}else{if(this.readyState===4&&(typeof cH==="function")){cH()}}};cG.setRequestHeader("Content-Type",b1);cG.send(cE)}catch(cF){if(cD){bW(cE,cH)}}}function bN(cE){var cD=new Date();var cF=cD.getTime()+cE;if(!n||cF>n){n=cF}}function bU(cD){if(bJ||!aN){return}bJ=setTimeout(function cE(){bJ=null;if(!aT){aT=(!A.hasFocus||A.hasFocus())}if(!aT){bU(aN);return}if(bp()){return}var cF=new Date(),cG=aN-(cF.getTime()-cn);cG=Math.min(aN,cG);bU(cG)},cD||aN)}function bi(){if(!bJ){return}clearTimeout(bJ);bJ=null}function aR(){aT=true;if(bp()){return}bU()}function am(){bi()}function cB(){if(ax||!aN){return}ax=true;ae(N,"focus",aR);
ae(N,"blur",am);bU()}function b6(cH){var cE=new Date();var cD=cE.getTime();cn=cD;if(b5&&cD<b5){var cF=b5-cD;setTimeout(cH,cF);bN(cF+50);b5+=50;return}if(b5===false){var cG=800;b5=cD+cG}cH()}function be(cE,cD,cF){if(!cg&&cE){b6(function(){if(cw==="POST"){cr(cE,cF)}else{bW(cE,cF)}bN(cD)})}if(!ax){cB()}else{bU()}}function bQ(cD){if(cg){return false}return(cD&&cD.length)}function cA(cF,cD){if(!bQ(cF)){return}var cE='{"requests":["?'+cF.join('","?')+'"]}';b6(function(){cr(cE,null,false);bN(cD)})}function aC(cD){return aX+cD+"."+bD+"."+a1}function bC(){if(aY){return"0"}if(!D(f.cookieEnabled)){var cD=aC("testcookie");cz(cD,"1");return ao(cD)==="1"?"1":"0"}return f.cookieEnabled?"1":"0"}function aV(){a1=bE((cm||ck)+(a2||"/")).slice(0,4)}function bu(){var cE=aC("cvar"),cD=ao(cE);if(cD.length){cD=JSON2.parse(cD);if(Q(cD)){return cD}}return{}}function b7(){if(az===false){az=bu()}}function ch(){return bE((f.userAgent||"")+(f.platform||"")+JSON2.stringify(cu)+(new Date()).getTime()+Math.random()).slice(0,16)
}function ce(){var cF=new Date(),cD=Math.round(cF.getTime()/1000),cE=aC("id"),cI=ao(cE),cH,cG;if(cI){cH=cI.split(".");cH.unshift("0");if(bm.length){cH[1]=bm}return cH}if(bm.length){cG=bm}else{if("0"===bC()){cG=""}else{cG=ch()}}cH=["1",cG,cD,0,cD,"",""];return cH}function aG(){var cK=ce(),cG=cK[0],cH=cK[1],cE=cK[2],cD=cK[3],cI=cK[4],cF=cK[5];if(!D(cK[6])){cK[6]=""}var cJ=cK[6];return{newVisitor:cG,uuid:cH,createTs:cE,visitCount:cD,currentVisitTs:cI,lastVisitTs:cF,lastEcommerceOrderTs:cJ}}function at(){var cG=new Date(),cE=cG.getTime(),cH=aG().createTs;var cD=parseInt(cH,10);var cF=(cD*1000)+cc-cE;return cF}function av(cD){if(!bD){return}var cF=new Date(),cE=Math.round(cF.getTime()/1000);if(!D(cD)){cD=aG()}var cG=cD.uuid+"."+cD.createTs+"."+cD.visitCount+"."+cE+"."+cD.lastVisitTs+"."+cD.lastEcommerceOrderTs;cz(aC("id"),cG,at(),a2,cm)}function bk(){var cD=ao(aC("ref"));if(cD.length){try{cD=JSON2.parse(cD);if(Q(cD)){return cD}}catch(cE){}}return["","",0,""]}function bv(cF,cE,cD){cz(cF,"",-86400,cE,cD)
}function a7(cE){var cD="testvalue";cz("test",cD,10000,null,cE);if(ao("test")===cD){bv("test",null,cE);return true}return false}function aq(){var cF=aY;aY=false;var cD=["id","ses","cvar","ref"];var cE,cG;for(cE=0;cE<cD.length;cE++){cG=aC(cD[cE]);if(0!==ao(cG)){bv(cG,a2,cm)}}aY=cF}function bA(cD){bD=cD;av()}function cC(cH){if(!cH||!Q(cH)){return}var cG=[];var cF;for(cF in cH){if(Object.prototype.hasOwnProperty.call(cH,cF)){cG.push(cF)}}var cI={};cG.sort();var cD=cG.length;var cE;for(cE=0;cE<cD;cE++){cI[cG[cE]]=cH[cG[cE]]}return cI}function bK(){cz(aC("ses"),"*",bV,a2,cm)}function bY(cF,c0,c1,cG){var cZ,cE=new Date(),cN=Math.round(cE.getTime()/1000),cK,cY,cH=1024,c6,cO,cW=az,cI=aC("ses"),cU=aC("ref"),cR=aC("cvar"),cS=ao(cI),cX=bk(),c3=aM||bl,cL,cD;if(aY){aq()}if(cg){return""}var cT=aG();if(!D(cG)){cG=""}var cQ=A.characterSet||A.charset;if(!cQ||cQ.toLowerCase()==="utf-8"){cQ=null}cL=cX[0];cD=cX[1];cK=cX[2];cY=cX[3];if(!cS){var c2=bV/1000;if(!cT.lastVisitTs||(cN-cT.lastVisitTs)>c2){cT.visitCount++;
cT.lastVisitTs=cT.currentVisitTs}if(!a6||!cL.length){for(cZ in bX){if(Object.prototype.hasOwnProperty.call(bX,cZ)){cL=P(c3,bX[cZ]);if(cL.length){break}}}for(cZ in bf){if(Object.prototype.hasOwnProperty.call(bf,cZ)){cD=P(c3,bf[cZ]);if(cD.length){break}}}}c6=c(a0);cO=cY.length?c(cY):"";if(c6.length&&!aE(c6)&&(!a6||!cO.length||aE(cO))){cY=a0}if(cY.length||cL.length){cK=cN;cX=[cL,cD,cK,bz(cY.slice(0,cH))];cz(cU,JSON2.stringify(cX),cs,a2,cm)}}cF+="&idsite="+bD+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+cE.getHours()+"&m="+cE.getMinutes()+"&s="+cE.getSeconds()+"&url="+p(bz(c3))+(a0.length?"&urlref="+p(bz(a0)):"")+((a9&&a9.length)?"&uid="+p(a9):"")+"&_id="+cT.uuid+"&_idts="+cT.createTs+"&_idvc="+cT.visitCount+"&_idn="+cT.newVisitor+(cL.length?"&_rcn="+p(cL):"")+(cD.length?"&_rck="+p(cD):"")+"&_refts="+cK+"&_viewts="+cT.lastVisitTs+(String(cT.lastEcommerceOrderTs).length?"&_ects="+cT.lastEcommerceOrderTs:"")+(String(cY).length?"&_ref="+p(bz(cY.slice(0,cH))):"")+(cQ?"&cs="+p(cQ):"")+"&send_image=0";
for(cZ in cu){if(Object.prototype.hasOwnProperty.call(cu,cZ)){cF+="&"+cZ+"="+cu[cZ]}}var c5=[];if(c0){for(cZ in c0){if(Object.prototype.hasOwnProperty.call(c0,cZ)&&/^dimension\d+$/.test(cZ)){var cJ=cZ.replace("dimension","");c5.push(parseInt(cJ,10));c5.push(String(cJ));cF+="&"+cZ+"="+c0[cZ];delete c0[cZ]}}}if(c0&&w(c0)){c0=null}for(cZ in aZ){if(Object.prototype.hasOwnProperty.call(aZ,cZ)){var cP=(-1===G(c5,cZ));if(cP){cF+="&dimension"+cZ+"="+aZ[cZ]}}}if(c0){cF+="&data="+p(JSON2.stringify(c0))}else{if(af){cF+="&data="+p(JSON2.stringify(af))}}function cM(c7,c8){var c9=JSON2.stringify(c7);if(c9.length>2){return"&"+c8+"="+p(c9)}return""}var c4=cC(bt);var cV=cC(bS);cF+=cM(c4,"cvar");cF+=cM(cV,"e_cvar");if(az){cF+=cM(az,"_cvar");for(cZ in cW){if(Object.prototype.hasOwnProperty.call(cW,cZ)){if(az[cZ][0]===""||az[cZ][1]===""){delete az[cZ]}}}if(bo){cz(cR,JSON2.stringify(az),bV,a2,cm)}}if(aK){if(bT){cF+=">_ms="+bT}else{if(g&&g.timing&&g.timing.requestStart&&g.timing.responseEnd){cF+=">_ms="+(g.timing.responseEnd-g.timing.requestStart)
}}}cT.lastEcommerceOrderTs=D(cG)&&String(cG).length?cG:cT.lastEcommerceOrderTs;av(cT);bK();cF+=U(c1);if(co.length){cF+="&"+co}if(v(bI)){cF=bI(cF)}return cF}bp=function aO(){var cD=new Date();if(cn+aN<=cD.getTime()){var cE=bY("ping=1",null,"ping");be(cE,bh);return true}return false};function a3(cG,cF,cL,cH,cD,cO){var cJ="idgoal=0",cK,cE=new Date(),cM=[],cN,cI=String(cG).length;if(cI){cJ+="&ec_id="+p(cG);cK=Math.round(cE.getTime()/1000)}cJ+="&revenue="+cF;if(String(cL).length){cJ+="&ec_st="+cL}if(String(cH).length){cJ+="&ec_tx="+cH}if(String(cD).length){cJ+="&ec_sh="+cD}if(String(cO).length){cJ+="&ec_dt="+cO}if(cp){for(cN in cp){if(Object.prototype.hasOwnProperty.call(cp,cN)){if(!D(cp[cN][1])){cp[cN][1]=""}if(!D(cp[cN][2])){cp[cN][2]=""}if(!D(cp[cN][3])||String(cp[cN][3]).length===0){cp[cN][3]=0}if(!D(cp[cN][4])||String(cp[cN][4]).length===0){cp[cN][4]=1}cM.push(cp[cN])}}cJ+="&ec_items="+p(JSON2.stringify(cM))}cJ=bY(cJ,af,"ecommerce",cK);be(cJ,bh);if(cI){cp={}}}function bw(cD,cH,cG,cF,cE,cI){if(String(cD).length&&D(cH)){a3(cD,cH,cG,cF,cE,cI)
}}function a4(cD){if(D(cD)){a3("",cD,"","","","")}}function bx(cE,cG,cF){var cD=bY("action_name="+p(ac(cE||aW)),cG,"log");be(cD,bh,cF)}function aI(cF,cE){var cG,cD="(^| )(piwik[_-]"+cE;if(cF){for(cG=0;cG<cF.length;cG++){cD+="|"+cF[cG]}}cD+=")( |$)";return new RegExp(cD)}function aD(cD){return(ap&&cD&&0===String(cD).indexOf(ap))}function bZ(cH,cD,cI,cE){if(aD(cD)){return 0}var cG=aI(bj,"download"),cF=aI(aP,"link"),cJ=new RegExp("\\.("+ct.join("|")+")([?&#]|$)","i");if(cF.test(cH)){return"link"}if(cE||cG.test(cH)||cJ.test(cD)){return"download"}if(cI){return 0}return"link"}function aj(cE){var cD;cD=cE.parentNode;while(cD!==null&&D(cD)){if(W.isLinkElement(cE)){break}cE=cD;cD=cE.parentNode}return cE}function cx(cI){cI=aj(cI);if(!W.hasNodeAttribute(cI,"href")){return}if(!D(cI.href)){return}var cH=W.getAttributeValueFromNode(cI,"href");if(aD(cH)){return}var cE=cI.pathname||bR(cI.href);var cJ=cI.hostname||c(cI.href);var cK=cJ.toLowerCase();var cF=cI.href.replace(cJ,cK);var cG=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");
if(!cG.test(cF)){var cD=bZ(cI.className,cF,ai(cK,cE),W.hasNodeAttribute(cI,"download"));if(cD){return{type:cD,href:cF}}}}function ay(cD,cE,cF,cG){var cH=r.buildInteractionRequestParams(cD,cE,cF,cG);if(!cH){return}return bY(cH,null,"contentInteraction")}function cd(cF,cG,cK,cD,cE){if(!D(cF)){return}if(aD(cF)){return cF}var cI=r.toAbsoluteUrl(cF);var cH="redirecturl="+p(cI)+"&";cH+=ay(cG,cK,cD,(cE||cF));var cJ="&";if(ap.indexOf("?")<0){cJ="?"}return ap+cJ+cH}function aS(cD,cE){if(!cD||!cE){return false}var cF=r.findTargetNode(cD);if(r.shouldIgnoreInteraction(cF)){return false}cF=r.findTargetNodeNoDefault(cD);if(cF&&!O(cF,cE)){return false}return true}function b0(cF,cE,cH){if(!cF){return}var cD=r.findParentContentNode(cF);if(!cD){return}if(!aS(cD,cF)){return}var cG=r.buildContentBlock(cD);if(!cG){return}if(!cG.target&&cH){cG.target=cH}return r.buildInteractionRequestParams(cE,cG.name,cG.piece,cG.target)}function aF(cE){if(!bH||!bH.length){return false}var cD,cF;for(cD=0;cD<bH.length;cD++){cF=bH[cD];
if(cF&&cF.name===cE.name&&cF.piece===cE.piece&&cF.target===cE.target){return true}}return false}function bd(cG){if(!cG){return false}var cJ=r.findTargetNode(cG);if(!cJ||r.shouldIgnoreInteraction(cJ)){return false}var cK=cx(cJ);if(cv&&cK&&cK.type){return false}if(W.isLinkElement(cJ)&&W.hasNodeAttributeWithValue(cJ,"href")){var cD=String(W.getAttributeValueFromNode(cJ,"href"));if(0===cD.indexOf("#")){return false}if(aD(cD)){return true}if(!r.isUrlToCurrentDomain(cD)){return false}var cH=r.buildContentBlock(cG);if(!cH){return}var cF=cH.name;var cL=cH.piece;var cI=cH.target;if(!W.hasNodeAttributeWithValue(cJ,r.CONTENT_TARGET_ATTR)||cJ.wasContentTargetAttrReplaced){cJ.wasContentTargetAttrReplaced=true;cI=r.toAbsoluteUrl(cD);W.setAnyAttribute(cJ,r.CONTENT_TARGET_ATTR,cI)}var cE=cd(cD,"click",cF,cL,cI);r.setHrefAttribute(cJ,cE);return true}return false}function aw(cE){if(!cE||!cE.length){return}var cD;for(cD=0;cD<cE.length;cD++){bd(cE[cD])}}function aH(cD){return function(cE){if(!cD){return}var cH=r.findParentContentNode(cD);
var cI;if(cE){cI=cE.target||cE.srcElement}if(!cI){cI=cD}if(!aS(cH,cI)){return}bN(bh);if(W.isLinkElement(cD)&&W.hasNodeAttributeWithValue(cD,"href")&&W.hasNodeAttributeWithValue(cD,r.CONTENT_TARGET_ATTR)){var cF=W.getAttributeValueFromNode(cD,"href");if(!aD(cF)&&cD.wasContentTargetAttrReplaced){W.setAnyAttribute(cD,r.CONTENT_TARGET_ATTR,"")}}var cM=cx(cD);if(ag&&cM&&cM.type){return cM.type}if(bd(cH)){return"href"}var cJ=r.buildContentBlock(cH);if(!cJ){return}var cG=cJ.name;var cN=cJ.piece;var cL=cJ.target;var cK=ay("click",cG,cN,cL);be(cK,bh);return cK}}function by(cF){if(!cF||!cF.length){return}var cD,cE;for(cD=0;cD<cF.length;cD++){cE=r.findTargetNode(cF[cD]);if(cE&&!cE.contentInteractionTrackingSetupDone){cE.contentInteractionTrackingSetupDone=true;ae(cE,"click",aH(cE))}}}function a8(cF,cG){if(!cF||!cF.length){return[]}var cD,cE;for(cD=0;cD<cF.length;cD++){if(aF(cF[cD])){cF.splice(cD,1);cD--}else{bH.push(cF[cD])}}if(!cF||!cF.length){return[]}aw(cG);by(cG);var cH=[];for(cD=0;cD<cF.length;
cD++){cE=bY(r.buildImpressionRequestParams(cF[cD].name,cF[cD].piece,cF[cD].target),undefined,"contentImpressions");if(cE){cH.push(cE)}}return cH}function b4(cE){var cD=r.collectContent(cE);return a8(cD,cE)}function aQ(cE){if(!cE||!cE.length){return[]}var cD;for(cD=0;cD<cE.length;cD++){if(!r.isNodeVisible(cE[cD])){cE.splice(cD,1);cD--}}if(!cE||!cE.length){return[]}return b4(cE)}function ar(cF,cD,cE){var cG=r.buildImpressionRequestParams(cF,cD,cE);return bY(cG,null,"contentImpression")}function cy(cG,cE){if(!cG){return}var cD=r.findParentContentNode(cG);var cF=r.buildContentBlock(cD);if(!cF){return}if(!cE){cE="Unknown"}return ay(cE,cF.name,cF.piece,cF.target)}function cf(cE,cG,cD,cF){return"e_c="+p(cE)+"&e_a="+p(cG)+(D(cD)?"&e_n="+p(cD):"")+(D(cF)?"&e_v="+p(cF):"")}function ak(cF,cH,cD,cG,cI){if(String(cF).length===0||String(cH).length===0){return false}var cE=bY(cf(cF,cH,cD,cG),cI,"event");be(cE,bh)}function bG(cD,cG,cE,cH){var cF=bY("search="+p(cD)+(cG?"&search_cat="+p(cG):"")+(D(cE)?"&search_count="+cE:""),cH,"sitesearch");
be(cF,bh)}function cj(cD,cG,cF){var cE=bY("idgoal="+cD+(cG?"&revenue="+cG:""),cF,"goal");be(cE,bh)}function cq(cG,cD,cK,cJ,cF){var cI=cD+"="+p(bz(cG));var cE=b0(cF,"click",cG);if(cE){cI+="&"+cE}var cH=bY(cI,cK,"link");be(cH,(cJ?0:bh),cJ)}function bq(cE,cD){if(cE!==""){return cE+cD.charAt(0).toUpperCase()+cD.slice(1)}return cD}function bO(cI){var cH,cD,cG=["","webkit","ms","moz"],cF;if(!aU){for(cD=0;cD<cG.length;cD++){cF=cG[cD];if(Object.prototype.hasOwnProperty.call(A,bq(cF,"hidden"))){if(A[bq(cF,"visibilityState")]==="prerender"){cH=true}break}}}if(cH){ae(A,cF+"visibilitychange",function cE(){A.removeEventListener(cF+"visibilitychange",cE,false);cI()});return}cI()}function ca(cD){var cE=cx(cD);if(cE&&cE.type){cE.href=l(cE.href);cq(cE.href,cE.type,undefined,null,cD)}}function b2(){return A.all&&!A.addEventListener}function cl(cD){var cF=cD.which;var cE=(typeof cD.button);if(!cF&&cE!=="undefined"){if(b2()){if(cD.button&1){cF=1}else{if(cD.button&2){cF=3}else{if(cD.button&4){cF=2}}}}else{if(cD.button===0||cD.button==="0"){cF=1
}else{if(cD.button&1){cF=2}else{if(cD.button&2){cF=3}}}}}return cF}function br(cD){switch(cl(cD)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function aJ(cD){return cD.target||cD.srcElement}function an(cD){return function(cG){cG=cG||N.event;var cF=br(cG);var cH=aJ(cG);if(cG.type==="click"){var cE=false;if(cD&&cF==="middle"){cE=true}if(cH&&!cE){ca(cH)}}else{if(cG.type==="mousedown"){if(cF==="middle"&&cH){aA=cF;bb=cH}else{aA=bb=null}}else{if(cG.type==="mouseup"){if(cF===aA&&cH===bb){ca(cH)}aA=bb=null}else{if(cG.type==="contextmenu"){ca(cH)}}}}}}function ah(cE,cD){ae(cE,"click",an(cD),false);if(cD){ae(cE,"mouseup",an(cD),false);ae(cE,"mousedown",an(cD),false);ae(cE,"contextmenu",an(cD),false)}}function bc(cE){if(!ag){ag=true;var cF,cD=aI(ba,"ignore"),cG=A.links;if(cG){for(cF=0;cF<cG.length;cF++){if(!cD.test(cG[cF].className)){ah(cG[cF],cE)}}}}}function aB(cF,cH,cI){if(bM){return true}bM=true;var cJ=false;var cG,cE;function cD(){cJ=true}j(function(){function cK(cM){setTimeout(function(){if(!bM){return
}cJ=false;cI.trackVisibleContentImpressions();cK(cM)},cM)}function cL(cM){setTimeout(function(){if(!bM){return}if(cJ){cJ=false;cI.trackVisibleContentImpressions()}cL(cM)},cM)}if(cF){cG=["scroll","resize"];for(cE=0;cE<cG.length;cE++){if(A.addEventListener){A.addEventListener(cG[cE],cD)}else{N.attachEvent("on"+cG[cE],cD)}}cL(100)}if(cH&&cH>0){cH=parseInt(cH,10);cK(cH)}})}function b8(){var cE,cG,cH={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(f.userAgent))){if(f.mimeTypes&&f.mimeTypes.length){for(cE in cH){if(Object.prototype.hasOwnProperty.call(cH,cE)){cG=f.mimeTypes[cH[cE]];cu[cE]=(cG&&cG.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&D(f.javaEnabled)&&f.javaEnabled()){cu.java="1"}if(v(N.GearsFactory)){cu.gears="1"
}cu.cookie=bC()}var cF=parseInt(R.width,10);var cD=parseInt(R.height,10);cu.res=parseInt(cF,10)+"x"+parseInt(cD,10)}b8();aV();av();this.getVisitorId=function(){return aG().uuid};this.getVisitorInfo=function(){return ce()};this.getAttributionInfo=function(){return bk()};this.getAttributionCampaignName=function(){return bk()[0]};this.getAttributionCampaignKeyword=function(){return bk()[1]};this.getAttributionReferrerTimestamp=function(){return bk()[2]};this.getAttributionReferrerUrl=function(){return bk()[3]};this.setTrackerUrl=function(cD){ap=cD};this.getTrackerUrl=function(){return ap};this.addTracker=function(cD,cF){if(!cF){throw new Error("A siteId must be given to add a new tracker")}if(!D(cD)||null===cD){cD=this.getTrackerUrl()}var cE=new K(cD,cF);C.push(cE);return cE};this.getSiteId=function(){return bD};this.setSiteId=function(cD){bA(cD)};this.setUserId=function(cD){if(!D(cD)||!cD.length){return}a9=cD;bm=bE(a9).substr(0,16)};this.getUserId=function(){return a9};this.setCustomData=function(cD,cE){if(Q(cD)){af=cD
}else{if(!af){af={}}af[cD]=cE}};this.getCustomData=function(){return af};this.setCustomRequestProcessing=function(cD){bI=cD};this.appendToTrackingUrl=function(cD){co=cD};this.getRequest=function(cD){return bY(cD)};this.addPlugin=function(cD,cE){a[cD]=cE};this.setCustomDimension=function(cD,cE){cD=parseInt(cD,10);if(cD>0){if(!D(cE)){cE=""}if(!s(cE)){cE=String(cE)}aZ[cD]=cE}};this.getCustomDimension=function(cD){cD=parseInt(cD,10);if(cD>0&&Object.prototype.hasOwnProperty.call(aZ,cD)){return aZ[cD]}};this.deleteCustomDimension=function(cD){cD=parseInt(cD,10);if(cD>0){delete aZ[cD]}};this.setCustomVariable=function(cE,cD,cH,cF){var cG;if(!D(cF)){cF="visit"}if(!D(cD)){return}if(!D(cH)){cH=""}if(cE>0){cD=!s(cD)?String(cD):cD;cH=!s(cH)?String(cH):cH;cG=[cD.slice(0,a5),cH.slice(0,a5)];if(cF==="visit"||cF===2){b7();az[cE]=cG}else{if(cF==="page"||cF===3){bt[cE]=cG}else{if(cF==="event"){bS[cE]=cG}}}}};this.getCustomVariable=function(cE,cF){var cD;if(!D(cF)){cF="visit"}if(cF==="page"||cF===3){cD=bt[cE]
}else{if(cF==="event"){cD=bS[cE]}else{if(cF==="visit"||cF===2){b7();cD=az[cE]}}}if(!D(cD)||(cD&&cD[0]==="")){return false}return cD};this.deleteCustomVariable=function(cD,cE){if(this.getCustomVariable(cD,cE)){this.setCustomVariable(cD,"","",cE)}};this.storeCustomVariablesInCookie=function(){bo=true};this.setLinkTrackingTimer=function(cD){bh=cD};this.setDownloadExtensions=function(cD){if(s(cD)){cD=cD.split("|")}ct=cD};this.addDownloadExtensions=function(cE){var cD;if(s(cE)){cE=cE.split("|")}for(cD=0;cD<cE.length;cD++){ct.push(cE[cD])}};this.removeDownloadExtensions=function(cF){var cE,cD=[];if(s(cF)){cF=cF.split("|")}for(cE=0;cE<ct.length;cE++){if(G(cF,ct[cE])===-1){cD.push(ct[cE])}}ct=cD};this.setDomains=function(cD){al=s(cD)?[cD]:cD;var cH=false,cF=0,cE;for(cF;cF<al.length;cF++){cE=String(al[cF]);if(b9(ck,F(cE))){cH=true;break}var cG=bR(cE);if(cG&&cG!=="/"&&cG!=="/*"){cH=true;break}}if(!cH){al.push(ck)}};this.setIgnoreClasses=function(cD){ba=s(cD)?[cD]:cD};this.setRequestMethod=function(cD){cw=cD||bP
};this.setRequestContentType=function(cD){b1=cD||au};this.setReferrerUrl=function(cD){a0=cD};this.setCustomUrl=function(cD){aM=bs(bl,cD)};this.setDocumentTitle=function(cD){aW=cD};this.setAPIUrl=function(cD){bg=cD};this.setDownloadClasses=function(cD){bj=s(cD)?[cD]:cD};this.setLinkClasses=function(cD){aP=s(cD)?[cD]:cD};this.setCampaignNameKey=function(cD){bX=s(cD)?[cD]:cD};this.setCampaignKeywordKey=function(cD){bf=s(cD)?[cD]:cD};this.discardHashTag=function(cD){bn=cD};this.setCookieNamePrefix=function(cD){aX=cD;az=bu()};this.setCookieDomain=function(cD){var cE=F(cD);if(a7(cE)){cm=cE;aV()}};this.setCookiePath=function(cD){a2=cD;aV()};this.setVisitorCookieTimeout=function(cD){cc=cD*1000};this.setSessionCookieTimeout=function(cD){bV=cD*1000};this.setReferralCookieTimeout=function(cD){cs=cD*1000};this.setConversionAttributionFirstReferrer=function(cD){a6=cD};this.disableCookies=function(){aY=true;cu.cookie="0";if(bD){aq()}};this.deleteCookies=function(){aq()};this.setDoNotTrack=function(cE){var cD=f.doNotTrack||f.msDoNotTrack;
cg=cE&&(cD==="yes"||cD==="1");if(cg){this.disableCookies()}};this.addListener=function(cE,cD){ah(cE,cD)};this.enableLinkTracking=function(cD){cv=true;bO(function(){m(function(){bc(cD)})})};this.enableJSErrorTracking=function(){if(ci){return}ci=true;var cD=N.onerror;N.onerror=function(cI,cG,cF,cH,cE){bO(function(){var cJ="JavaScript Errors";var cK=cG+":"+cF;if(cH){cK+=":"+cH}ak(cJ,cK,cI)});if(cD){return cD(cI,cG,cF,cH,cE)}return false}};this.disablePerformanceTracking=function(){aK=false};this.setGenerationTimeMs=function(cD){bT=parseInt(cD,10)};this.enableHeartBeatTimer=function(cD){cD=Math.max(cD,1);aN=(cD||15)*1000;if(cn!==null){cB()}};this.killFrame=function(){if(N.location!==N.top.location){N.top.location=N.location}};this.redirectFile=function(cD){if(N.location.protocol==="file:"){N.location=cD}};this.setCountPreRendered=function(cD){aU=cD};this.trackGoal=function(cD,cF,cE){bO(function(){cj(cD,cF,cE)})};this.trackLink=function(cE,cD,cG,cF){bO(function(){cq(cE,cD,cG,cF)})};this.trackPageView=function(cD,cF,cE){bH=[];
if(H(bD)){bO(function(){S(ap,bg,bD)})}else{bO(function(){bx(cD,cF,cE)})}};this.trackAllContentImpressions=function(){if(H(bD)){return}bO(function(){m(function(){var cD=r.findContentNodes();var cE=b4(cD);cA(cE,bh)})})};this.trackVisibleContentImpressions=function(cD,cE){if(H(bD)){return}if(!D(cD)){cD=true}if(!D(cE)){cE=750}aB(cD,cE,this);bO(function(){j(function(){var cF=r.findContentNodes();var cG=aQ(cF);cA(cG,bh)})})};this.trackContentImpression=function(cF,cD,cE){if(H(bD)){return}if(!cF){return}cD=cD||"Unknown";bO(function(){var cG=ar(cF,cD,cE);be(cG,bh)})};this.trackContentImpressionsWithinNode=function(cD){if(H(bD)||!cD){return}bO(function(){if(bM){j(function(){var cE=r.findContentNodesWithinNode(cD);var cF=aQ(cE);cA(cF,bh)})}else{m(function(){var cE=r.findContentNodesWithinNode(cD);var cF=b4(cE);cA(cF,bh)})}})};this.trackContentInteraction=function(cF,cG,cD,cE){if(H(bD)){return}if(!cF||!cG){return}cD=cD||"Unknown";bO(function(){var cH=ay(cF,cG,cD,cE);be(cH,bh)})};this.trackContentInteractionNode=function(cE,cD){if(H(bD)||!cE){return
}bO(function(){var cF=cy(cE,cD);be(cF,bh)})};this.logAllContentBlocksOnPage=function(){var cE=r.findContentNodes();var cD=r.collectContent(cE);if(console!==undefined&&console&&console.log){console.log(cD)}};this.trackEvent=function(cE,cG,cD,cF,cH){bO(function(){ak(cE,cG,cD,cF,cH)})};this.trackSiteSearch=function(cD,cF,cE,cG){bO(function(){bG(cD,cF,cE,cG)})};this.setEcommerceView=function(cG,cD,cF,cE){if(!D(cF)||!cF.length){cF=""}else{if(cF instanceof Array){cF=JSON2.stringify(cF)}}bt[5]=["_pkc",cF];if(D(cE)&&String(cE).length){bt[2]=["_pkp",cE]}if((!D(cG)||!cG.length)&&(!D(cD)||!cD.length)){return}if(D(cG)&&cG.length){bt[3]=["_pks",cG]}if(!D(cD)||!cD.length){cD=""}bt[4]=["_pkn",cD]};this.addEcommerceItem=function(cH,cD,cF,cE,cG){if(cH.length){cp[cH]=[cH,cD,cF,cE,cG]}};this.trackEcommerceOrder=function(cD,cH,cG,cF,cE,cI){bw(cD,cH,cG,cF,cE,cI)};this.trackEcommerceCartUpdate=function(cD){a4(cD)};this.trackRequest=function(cD,cF,cE){bO(function(){var cG=bY(cD,cF);be(cG,bh,cE)})};d.trigger("TrackerSetup",[this])
}function B(){return{push:X}}function b(ak,aj){var al={};var ah,ai;for(ah=0;ah<aj.length;ah++){var af=aj[ah];al[af]=1;for(ai=0;ai<ak.length;ai++){if(ak[ai]&&ak[ai][0]){var ag=ak[ai][0];if(af===ag){X(ak[ai]);delete ak[ai];if(al[ag]>1){ab("The method "+ag+' 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: http://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}al[ag]++}}}}return ak}var x=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","enableLinkTracking"];function V(af,ah){var ag=new K(af,ah);C.push(ag);_paq=b(_paq,x);for(z=0;z<_paq.length;z++){if(_paq[z]){X(_paq[z])}}_paq=new B();return ag}ae(N,"beforeunload",Z,false);Date.prototype.getTimeAlias=Date.prototype.getTime;d={initialized:false,DOM:{addEventListener:function(ai,ah,ag,af){var aj=typeof af;if(aj==="undefined"){af=false}ae(ai,ah,ag,af)
},onLoad:j,onReady:m},on:function(ag,af){if(!t[ag]){t[ag]=[]}t[ag].push(af)},off:function(ah,ag){if(!t[ah]){return}var af=0;for(af;af<t[ah].length;af++){if(t[ah][af]===ag){t[ah].splice(af,1)}}},trigger:function(ah,ai,ag){if(!t[ah]){return}var af=0;for(af;af<t[ah].length;af++){t[ah][af].apply(ag||N,ai)}},addPlugin:function(af,ag){a[af]=ag},getTracker:function(af,ag){if(!D(ag)){ag=this.getAsyncTracker().getSiteId()}if(!D(af)){af=this.getAsyncTracker().getTrackerUrl()}return new K(af,ag)},getAsyncTrackers:function(){return C},addTracker:function(af,ag){if(!C.length){V(af,ag)}else{C[0].addTracker(af,ag)}},getAsyncTracker:function(ag,aj){var ai;if(C&&C[0]){ai=C[0]}if(!aj&&!ag){return ai}if((!D(aj)||null===aj)&&ai){aj=ai.getSiteId()}if((!D(ag)||null===ag)&&ai){ag=ai.getTrackerUrl()}var ah,af=0;for(af;af<C.length;af++){ah=C[af];if(ah&&String(ah.getSiteId())===String(aj)&&ah.getTrackerUrl()===ag){return ah}}},retryMissedPluginCalls:function(){var ag=Y;Y=[];var af=0;for(af;af<ag.length;af++){X(ag[af])
}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return d})}return d}());
/*!!! pluginTrackerHook */
}(function(){if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}window.Piwik.addTracker();window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true}());if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)
}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}};
/*!! @license-end */
};