forked from kinosang/piwik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
piwik.js
77 lines (77 loc) · 61.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
73
74
75
76
77
/*!!
* 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 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<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);JSON_PIWIK=a})()}if(typeof _paq!=="object"){_paq=[]}if(typeof window.Piwik!=="object"){window.Piwik=(function(){var q,b={},w={},E=document,h=navigator,U=screen,R=window,i=R.performance||R.mozPerformance||R.msPerformance||R.webkitPerformance,s=R.encodeURIComponent,Q=R.decodeURIComponent,l=unescape,G=[],C,e,ab=[];
function o(ai){try{return Q(ai)}catch(aj){return unescape(ai)}}function H(aj){var ai=typeof aj;return ai!=="undefined"}function y(ai){return typeof ai==="function"}function T(ai){return typeof ai==="object"}function v(ai){return typeof ai==="string"||ai instanceof String}function z(aj){if(!aj){return true}var ai;var ak=true;for(ai in aj){if(Object.prototype.hasOwnProperty.call(aj,ai)){ak=false}}return ak}function ae(ai){var aj=typeof console;if(aj!=="undefined"&&console&&console.error){console.error(ai)}}function aa(){var an,am,ap,aj,ai;for(an=0;an<arguments.length;an+=1){ai=null;if(arguments[an]&&arguments[an].slice){ai=arguments[an].slice()}aj=arguments[an];ap=aj.shift();var ao,ak;var al=v(ap)&&ap.indexOf("::")>0;if(al){ao=ap.split("::");ak=ao[0];ap=ao[1];if("object"===typeof e[ak]&&"function"===typeof e[ak][ap]){e[ak][ap].apply(e[ak],aj)}else{if(ai){ab.push(ai)}}}else{for(am=0;am<G.length;am++){if(v(ap)){ak=G[am];var aq=ap.indexOf(".")>0;if(aq){ao=ap.split(".");if(ak&&"object"===typeof ak[ao[0]]){ak=ak[ao[0]];
ap=ao[1]}else{if(ai){ab.push(ai);break}}}if(ak[ap]){ak[ap].apply(ak,aj)}else{var ar="The method '"+ap+'\' was not found in "_paq" variable. Please have a look at the Piwik tracker documentation: http://developer.piwik.org/api-reference/tracking-javascript';ae(ar);if(!aq){throw new TypeError(ar)}}if(ap==="addTracker"){break}if(ap==="setTrackerUrl"||ap==="setSiteId"){break}}else{ap.apply(G[am],aj)}}}}}function ah(al,ak,aj,ai){if(al.addEventListener){al.addEventListener(ak,aj,ai);return true}if(al.attachEvent){return al.attachEvent("on"+ak,aj)}al["on"+ak]=aj}function m(ai){if(E.readyState==="complete"){ai()}else{if(R.addEventListener){R.addEventListener("load",ai)}else{if(R.attachEvent){R.attachEvent("onload",ai)}}}}function p(al){var ai=false;if(E.attachEvent){ai=E.readyState==="complete"}else{ai=E.readyState!=="loading"}if(ai){al();return}var ak;if(E.addEventListener){ah(E,"DOMContentLoaded",function aj(){E.removeEventListener("DOMContentLoaded",aj,false);if(!ai){ai=true;al()}})}else{if(E.attachEvent){E.attachEvent("onreadystatechange",function aj(){if(E.readyState==="complete"){E.detachEvent("onreadystatechange",aj);
if(!ai){ai=true;al()}}});if(E.documentElement.doScroll&&R===R.top){(function aj(){if(!ai){try{E.documentElement.doScroll("left")}catch(am){setTimeout(aj,0);return}ai=true;al()}}())}}}ah(R,"load",function(){if(!ai){ai=true;al()}},false)}function X(aj,ao,ap){if(!aj){return""}var ai="",al,ak,am,an;for(al in b){if(Object.prototype.hasOwnProperty.call(b,al)){an=b[al]&&"function"===typeof b[al][aj];if(an){ak=b[al][aj];am=ak(ao||{},ap);if(am){ai+=am}}}}return ai}function ac(){var ai;X("unload");if(q){do{ai=new Date()}while(ai.getTimeAlias()<q)}}function n(ak,aj){var ai=E.createElement("script");ai.type="text/javascript";ai.src=ak;if(ai.readyState){ai.onreadystatechange=function(){var al=this.readyState;if(al==="loaded"||al==="complete"){ai.onreadystatechange=null;aj()}}}else{ai.onload=aj}E.getElementsByTagName("head")[0].appendChild(ai)}function I(){var ai="";try{ai=R.top.document.referrer}catch(ak){if(R.parent){try{ai=R.parent.document.referrer}catch(aj){ai=""}}}if(ai===""){ai=E.referrer}return ai
}function r(ai){var ak=new RegExp("^([a-z]+):"),aj=ak.exec(ai);return aj?aj[1]:null}function d(ai){var ak=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),aj=ak.exec(ai);return aj?aj[1]:ai}function ad(aj,ai){aj=String(aj);return aj.lastIndexOf(ai,0)===0}function P(aj,ai){aj=String(aj);return aj.indexOf(ai,aj.length-ai.length)!==-1}function x(aj,ai){aj=String(aj);return aj.indexOf(ai)!==-1}function g(aj,ai){aj=String(aj);return aj.substr(0,aj.length-ai)}function D(al,ak,an){al=String(al);if(!an){an=""}var ai=al.indexOf("#");var ao=al.length;if(ai===-1){ai=ao}var am=al.substr(0,ai);var aj=al.substr(ai,ao-ai);if(am.indexOf("?")===-1){am+="?"}else{if(!P(am,"?")){am+="&"}}return am+s(ak)+"="+s(an)+aj}function k(aj,ak){aj=String(aj);if(aj.indexOf("?"+ak+"=")===-1&&aj.indexOf("&"+ak+"=")===-1){return aj}var al=aj.indexOf("?");if(al===-1){return aj}var ai=aj.substr(al+1);var ap=aj.substr(0,al);if(ai){var aq="";var at=ai.indexOf("#");if(at!==-1){aq=ai.substr(at+1);ai=ai.substr(0,at)}var am;
var ao=ai.split("&");var an=ao.length-1;for(an;an>=0;an--){am=ao[an].split("=")[0];if(am===ak){ao.splice(an,1)}}var ar=ao.join("&");if(ar){ap=ap+"?"+ar}if(aq){ap+="#"+aq}}return ap}function f(ak,aj){var ai="[\\?&#]"+aj+"=([^&#]*)";var am=new RegExp(ai);var al=am.exec(ak);return al?Q(al[1]):""}function a(ai){if(ai&&String(ai)===ai){return ai.replace(/^\s+|\s+$/g,"")}return ai}function B(ai){return unescape(s(ai))}function ag(ay){var ak=function(aE,aD){return(aE<<aD)|(aE>>>(32-aD))},az=function(aG){var aE="",aF,aD;for(aF=7;aF>=0;aF--){aD=(aG>>>(aF*4))&15;aE+=aD.toString(16)}return aE},an,aB,aA,aj=[],ar=1732584193,ap=4023233417,ao=2562383102,am=271733878,al=3285377520,ax,aw,av,au,at,aC,ai,aq=[];ay=B(ay);ai=ay.length;for(aB=0;aB<ai-3;aB+=4){aA=ay.charCodeAt(aB)<<24|ay.charCodeAt(aB+1)<<16|ay.charCodeAt(aB+2)<<8|ay.charCodeAt(aB+3);aq.push(aA)}switch(ai&3){case 0:aB=2147483648;break;case 1:aB=ay.charCodeAt(ai-1)<<24|8388608;break;case 2:aB=ay.charCodeAt(ai-2)<<24|ay.charCodeAt(ai-1)<<16|32768;
break;case 3:aB=ay.charCodeAt(ai-3)<<24|ay.charCodeAt(ai-2)<<16|ay.charCodeAt(ai-1)<<8|128;break}aq.push(aB);while((aq.length&15)!==14){aq.push(0)}aq.push(ai>>>29);aq.push((ai<<3)&4294967295);for(an=0;an<aq.length;an+=16){for(aB=0;aB<16;aB++){aj[aB]=aq[an+aB]}for(aB=16;aB<=79;aB++){aj[aB]=ak(aj[aB-3]^aj[aB-8]^aj[aB-14]^aj[aB-16],1)}ax=ar;aw=ap;av=ao;au=am;at=al;for(aB=0;aB<=19;aB++){aC=(ak(ax,5)+((aw&av)|(~aw&au))+at+aj[aB]+1518500249)&4294967295;at=au;au=av;av=ak(aw,30);aw=ax;ax=aC}for(aB=20;aB<=39;aB++){aC=(ak(ax,5)+(aw^av^au)+at+aj[aB]+1859775393)&4294967295;at=au;au=av;av=ak(aw,30);aw=ax;ax=aC}for(aB=40;aB<=59;aB++){aC=(ak(ax,5)+((aw&av)|(aw&au)|(av&au))+at+aj[aB]+2400959708)&4294967295;at=au;au=av;av=ak(aw,30);aw=ax;ax=aC}for(aB=60;aB<=79;aB++){aC=(ak(ax,5)+(aw^av^au)+at+aj[aB]+3395469782)&4294967295;at=au;au=av;av=ak(aw,30);aw=ax;ax=aC}ar=(ar+ax)&4294967295;ap=(ap+aw)&4294967295;ao=(ao+av)&4294967295;am=(am+au)&4294967295;al=(al+at)&4294967295}aC=az(ar)+az(ap)+az(ao)+az(am)+az(al);
return aC.toLowerCase()}function W(ak,ai,aj){if(!ak){ak=""}if(!ai){ai=""}if(ak==="translate.googleusercontent.com"){if(aj===""){aj=ai}ai=f(ai,"u");ak=d(ai)}else{if(ak==="cc.bingj.com"||ak==="webcache.googleusercontent.com"||ak.slice(0,5)==="74.6."){ai=E.links[0].href;ak=d(ai)}}return[ak,ai,aj]}function J(aj){var ai=aj.length;if(aj.charAt(--ai)==="."){aj=aj.slice(0,ai)}if(aj.slice(0,2)==="*."){aj=aj.slice(1)}if(aj.indexOf("/")!==-1){aj=aj.substr(0,aj.indexOf("/"))}return aj}function af(aj){aj=aj&&aj.text?aj.text:aj;if(!v(aj)){var ai=E.getElementsByTagName("title");if(ai&&H(ai[0])){aj=ai[0].text}}return aj}function N(ai){if(!ai){return[]}if(!H(ai.children)&&H(ai.childNodes)){return ai.children}if(H(ai.children)){return ai.children}return[]}function S(aj,ai){if(!aj||!ai){return false}if(aj.contains){return aj.contains(ai)}if(aj===ai){return true}if(aj.compareDocumentPosition){return !!(aj.compareDocumentPosition(ai)&16)}return false}function K(ak,al){if(ak&&ak.indexOf){return ak.indexOf(al)
}if(!H(ak)||ak===null){return -1}if(!ak.length){return -1}var ai=ak.length;if(ai===0){return -1}var aj=0;while(aj<ai){if(ak[aj]===al){return aj}aj++}return -1}function j(ak){if(!ak){return false}function ai(am,an){if(R.getComputedStyle){return E.defaultView.getComputedStyle(am,null)[an]}if(am.currentStyle){return am.currentStyle[an]}}function al(am){am=am.parentNode;while(am){if(am===E){return true}am=am.parentNode}return false}function aj(ao,av,am,ar,ap,at,aq){var an=ao.parentNode,au=1;if(!al(ao)){return false}if(9===an.nodeType){return true}if("0"===ai(ao,"opacity")||"none"===ai(ao,"display")||"hidden"===ai(ao,"visibility")){return false}if(!H(av)||!H(am)||!H(ar)||!H(ap)||!H(at)||!H(aq)){av=ao.offsetTop;ap=ao.offsetLeft;ar=av+ao.offsetHeight;am=ap+ao.offsetWidth;at=ao.offsetWidth;aq=ao.offsetHeight}if(ak===ao&&(0===aq||0===at)&&"hidden"===ai(ao,"overflow")){return false}if(an){if(("hidden"===ai(an,"overflow")||"scroll"===ai(an,"overflow"))){if(ap+au>an.offsetWidth+an.scrollLeft||ap+at-au<an.scrollLeft||av+au>an.offsetHeight+an.scrollTop||av+aq-au<an.scrollTop){return false
}}if(ao.offsetParent===an){ap+=an.offsetLeft;av+=an.offsetTop}return aj(an,av,am,ar,ap,at,aq)}return true}return aj(ak)}var Z={htmlCollectionToArray:function(ak){var ai=[],aj;if(!ak||!ak.length){return ai}for(aj=0;aj<ak.length;aj++){ai.push(ak[aj])}return ai},find:function(ai){if(!document.querySelectorAll||!ai){return[]}var aj=document.querySelectorAll(ai);return this.htmlCollectionToArray(aj)},findMultiple:function(ak){if(!ak||!ak.length){return[]}var aj,al;var ai=[];for(aj=0;aj<ak.length;aj++){al=this.find(ak[aj]);ai=ai.concat(al)}ai=this.makeNodesUnique(ai);return ai},findNodesByTagName:function(aj,ai){if(!aj||!ai||!aj.getElementsByTagName){return[]}var ak=aj.getElementsByTagName(ai);return this.htmlCollectionToArray(ak)},makeNodesUnique:function(ai){var an=[].concat(ai);ai.sort(function(ap,ao){if(ap===ao){return 0}var ar=K(an,ap);var aq=K(an,ao);if(ar===aq){return 0}return ar>aq?-1:1});if(ai.length<=1){return ai}var aj=0;var al=0;var am=[];var ak;ak=ai[aj++];while(ak){if(ak===ai[aj]){al=am.push(aj)
}ak=ai[aj++]||null}while(al--){ai.splice(am[al],1)}return ai},getAttributeValueFromNode:function(am,ak){if(!this.hasNodeAttribute(am,ak)){return}if(am&&am.getAttribute){return am.getAttribute(ak)}if(!am||!am.attributes){return}var al=(typeof am.attributes[ak]);if("undefined"===al){return}if(am.attributes[ak].value){return am.attributes[ak].value}if(am.attributes[ak].nodeValue){return am.attributes[ak].nodeValue}var aj;var ai=am.attributes;if(!ai){return}for(aj=0;aj<ai.length;aj++){if(ai[aj].nodeName===ak){return ai[aj].nodeValue}}return null},hasNodeAttributeWithValue:function(aj,ai){var ak=this.getAttributeValueFromNode(aj,ai);return !!ak},hasNodeAttribute:function(ak,ai){if(ak&&ak.hasAttribute){return ak.hasAttribute(ai)}if(ak&&ak.attributes){var aj=(typeof ak.attributes[ai]);return"undefined"!==aj}return false},hasNodeCssClass:function(ak,ai){if(ak&&ai&&ak.className){var aj=typeof ak.className==="string"?ak.className.split(" "):[];if(-1!==K(aj,ai)){return true}}return false},findNodesHavingAttribute:function(am,ak,ai){if(!ai){ai=[]
}if(!am||!ak){return ai}var al=N(am);if(!al||!al.length){return ai}var aj,an;for(aj=0;aj<al.length;aj++){an=al[aj];if(this.hasNodeAttribute(an,ak)){ai.push(an)}ai=this.findNodesHavingAttribute(an,ak,ai)}return ai},findFirstNodeHavingAttribute:function(ak,aj){if(!ak||!aj){return}if(this.hasNodeAttribute(ak,aj)){return ak}var ai=this.findNodesHavingAttribute(ak,aj);if(ai&&ai.length){return ai[0]}},findFirstNodeHavingAttributeWithValue:function(al,ak){if(!al||!ak){return}if(this.hasNodeAttributeWithValue(al,ak)){return al}var ai=this.findNodesHavingAttribute(al,ak);if(!ai||!ai.length){return}var aj;for(aj=0;aj<ai.length;aj++){if(this.getAttributeValueFromNode(ai[aj],ak)){return ai[aj]}}},findNodesHavingCssClass:function(am,al,ai){if(!ai){ai=[]}if(!am||!al){return ai}if(am.getElementsByClassName){var an=am.getElementsByClassName(al);return this.htmlCollectionToArray(an)}var ak=N(am);if(!ak||!ak.length){return[]}var aj,ao;for(aj=0;aj<ak.length;aj++){ao=ak[aj];if(this.hasNodeCssClass(ao,al)){ai.push(ao)
}ai=this.findNodesHavingCssClass(ao,al,ai)}return ai},findFirstNodeHavingClass:function(ak,aj){if(!ak||!aj){return}if(this.hasNodeCssClass(ak,aj)){return ak}var ai=this.findNodesHavingCssClass(ak,aj);if(ai&&ai.length){return ai[0]}},isLinkElement:function(aj){if(!aj){return false}var ai=String(aj.nodeName).toLowerCase();var al=["a","area"];var ak=K(al,ai);return ak!==-1},setAnyAttribute:function(aj,ai,ak){if(!aj||!ai){return}if(aj.setAttribute){aj.setAttribute(ai,ak)}else{aj[ai]=ak}}};var u={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 aj="."+this.CONTENT_CLASS;var ai="["+this.CONTENT_ATTR+"]";
var ak=Z.findMultiple([aj,ai]);return ak},findContentNodesWithinNode:function(al){if(!al){return[]}var aj=Z.findNodesHavingCssClass(al,this.CONTENT_CLASS);var ai=Z.findNodesHavingAttribute(al,this.CONTENT_ATTR);if(ai&&ai.length){var ak;for(ak=0;ak<ai.length;ak++){aj.push(ai[ak])}}if(Z.hasNodeAttribute(al,this.CONTENT_ATTR)){aj.push(al)}else{if(Z.hasNodeCssClass(al,this.CONTENT_CLASS)){aj.push(al)}}aj=Z.makeNodesUnique(aj);return aj},findParentContentNode:function(aj){if(!aj){return}var ak=aj;var ai=0;while(ak&&ak!==E&&ak.parentNode){if(Z.hasNodeAttribute(ak,this.CONTENT_ATTR)){return ak}if(Z.hasNodeCssClass(ak,this.CONTENT_CLASS)){return ak}ak=ak.parentNode;if(ai>1000){break}ai++}},findPieceNode:function(aj){var ai;ai=Z.findFirstNodeHavingAttribute(aj,this.CONTENT_PIECE_ATTR);if(!ai){ai=Z.findFirstNodeHavingClass(aj,this.CONTENT_PIECE_CLASS)}if(ai){return ai}return aj},findTargetNodeNoDefault:function(ai){if(!ai){return}var aj=Z.findFirstNodeHavingAttributeWithValue(ai,this.CONTENT_TARGET_ATTR);
if(aj){return aj}aj=Z.findFirstNodeHavingAttribute(ai,this.CONTENT_TARGET_ATTR);if(aj){return aj}aj=Z.findFirstNodeHavingClass(ai,this.CONTENT_TARGET_CLASS);if(aj){return aj}},findTargetNode:function(ai){var aj=this.findTargetNodeNoDefault(ai);if(aj){return aj}return ai},findContentName:function(aj){if(!aj){return}var am=Z.findFirstNodeHavingAttributeWithValue(aj,this.CONTENT_NAME_ATTR);if(am){return Z.getAttributeValueFromNode(am,this.CONTENT_NAME_ATTR)}var ai=this.findContentPiece(aj);if(ai){return this.removeDomainIfIsInLink(ai)}if(Z.hasNodeAttributeWithValue(aj,"title")){return Z.getAttributeValueFromNode(aj,"title")}var ak=this.findPieceNode(aj);if(Z.hasNodeAttributeWithValue(ak,"title")){return Z.getAttributeValueFromNode(ak,"title")}var al=this.findTargetNode(aj);if(Z.hasNodeAttributeWithValue(al,"title")){return Z.getAttributeValueFromNode(al,"title")}},findContentPiece:function(aj){if(!aj){return}var al=Z.findFirstNodeHavingAttributeWithValue(aj,this.CONTENT_PIECE_ATTR);if(al){return Z.getAttributeValueFromNode(al,this.CONTENT_PIECE_ATTR)
}var ai=this.findPieceNode(aj);var ak=this.findMediaUrlInNode(ai);if(ak){return this.toAbsoluteUrl(ak)}},findContentTarget:function(ak){if(!ak){return}var al=this.findTargetNode(ak);if(Z.hasNodeAttributeWithValue(al,this.CONTENT_TARGET_ATTR)){return Z.getAttributeValueFromNode(al,this.CONTENT_TARGET_ATTR)}var aj;if(Z.hasNodeAttributeWithValue(al,"href")){aj=Z.getAttributeValueFromNode(al,"href");return this.toAbsoluteUrl(aj)}var ai=this.findPieceNode(ak);if(Z.hasNodeAttributeWithValue(ai,"href")){aj=Z.getAttributeValueFromNode(ai,"href");return this.toAbsoluteUrl(aj)}},isSameDomain:function(ai){if(!ai||!ai.indexOf){return false}if(0===ai.indexOf(this.getLocation().origin)){return true}var aj=ai.indexOf(this.getLocation().host);if(8>=aj&&0<=aj){return true}return false},removeDomainIfIsInLink:function(ak){var aj="^https?://[^/]+";var ai="^.*//[^/]+";if(ak&&ak.search&&-1!==ak.search(new RegExp(aj))&&this.isSameDomain(ak)){ak=ak.replace(new RegExp(ai),"");if(!ak){ak="/"}}return ak},findMediaUrlInNode:function(am){if(!am){return
}var ak=["img","embed","video","audio"];var ai=am.nodeName.toLowerCase();if(-1!==K(ak,ai)&&Z.findFirstNodeHavingAttributeWithValue(am,"src")){var al=Z.findFirstNodeHavingAttributeWithValue(am,"src");return Z.getAttributeValueFromNode(al,"src")}if(ai==="object"&&Z.hasNodeAttributeWithValue(am,"data")){return Z.getAttributeValueFromNode(am,"data")}if(ai==="object"){var an=Z.findNodesByTagName(am,"param");if(an&&an.length){var aj;for(aj=0;aj<an.length;aj++){if("movie"===Z.getAttributeValueFromNode(an[aj],"name")&&Z.hasNodeAttributeWithValue(an[aj],"value")){return Z.getAttributeValueFromNode(an[aj],"value")}}}var ao=Z.findNodesByTagName(am,"embed");if(ao&&ao.length){return this.findMediaUrlInNode(ao[0])}}},trim:function(ai){return a(ai)},isOrWasNodeInViewport:function(an){if(!an||!an.getBoundingClientRect||an.nodeType!==1){return true}var am=an.getBoundingClientRect();var al=E.documentElement||{};var ak=am.top<0;if(ak&&an.offsetTop){ak=(an.offsetTop+am.height)>0}var aj=al.clientWidth;if(R.innerWidth&&aj>R.innerWidth){aj=R.innerWidth
}var ai=al.clientHeight;if(R.innerHeight&&ai>R.innerHeight){ai=R.innerHeight}return((am.bottom>0||ak)&&am.right>0&&am.left<aj&&((am.top<ai)||ak))},isNodeVisible:function(aj){var ai=j(aj);var ak=this.isOrWasNodeInViewport(aj);return ai&&ak},buildInteractionRequestParams:function(ai,aj,ak,al){var am="";if(ai){am+="c_i="+s(ai)}if(aj){if(am){am+="&"}am+="c_n="+s(aj)}if(ak){if(am){am+="&"}am+="c_p="+s(ak)}if(al){if(am){am+="&"}am+="c_t="+s(al)}return am},buildImpressionRequestParams:function(ai,aj,ak){var al="c_n="+s(ai)+"&c_p="+s(aj);if(ak){al+="&c_t="+s(ak)}return al},buildContentBlock:function(ak){if(!ak){return}var ai=this.findContentName(ak);var aj=this.findContentPiece(ak);var al=this.findContentTarget(ak);ai=this.trim(ai);aj=this.trim(aj);al=this.trim(al);return{name:ai||"Unknown",piece:aj||"Unknown",target:al||""}},collectContent:function(al){if(!al||!al.length){return[]}var ak=[];var ai,aj;for(ai=0;ai<al.length;ai++){aj=this.buildContentBlock(al[ai]);if(H(aj)){ak.push(aj)}}return ak
},setLocation:function(ai){this.location=ai},getLocation:function(){var ai=this.location||R.location;if(!ai.origin){ai.origin=ai.protocol+"//"+ai.hostname+(ai.port?":"+ai.port:"")}return ai},toAbsoluteUrl:function(aj){if((!aj||String(aj)!==aj)&&aj!==""){return aj}if(""===aj){return this.getLocation().href}if(aj.search(/^\/\//)!==-1){return this.getLocation().protocol+aj}if(aj.search(/:\/\//)!==-1){return aj}if(0===aj.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+aj}if(0===aj.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+aj}if(0===aj.search("^[a-zA-Z]{2,11}:")){return aj}if(aj.search(/^\//)!==-1){return this.getLocation().origin+aj}var ai="(.*/)";var ak=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(ai))[0];return ak+aj},isUrlToCurrentDomain:function(aj){var ak=this.toAbsoluteUrl(aj);if(!ak){return false}var ai=this.getLocation().origin;if(ai===ak){return true}if(0===String(ak).indexOf(ai)){if(":"===String(ak).substr(ai.length,1)){return false
}return true}return false},setHrefAttribute:function(aj,ai){if(!aj||!ai){return}Z.setAnyAttribute(aj,"href",ai)},shouldIgnoreInteraction:function(ak){var aj=Z.hasNodeAttribute(ak,this.CONTENT_IGNOREINTERACTION_ATTR);var ai=Z.hasNodeCssClass(ak,this.CONTENT_IGNOREINTERACTION_CLASS);return aj||ai}};function M(aj,am){if(am){return am}aj=u.toAbsoluteUrl(aj);if(x(aj,"?")){var al=aj.indexOf("?");aj=aj.slice(0,al)}if(P(aj,"piwik.php")){aj=g(aj,"piwik.php".length)}else{if(P(aj,".php")){var ai=aj.lastIndexOf("/");var ak=1;aj=aj.slice(0,ai+ak)}}if(P(aj,"/js/")){aj=g(aj,"js/".length)}return aj}function L(ao){var aq="Piwik_Overlay";var aj=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$");var ak=aj.exec(E.referrer);if(ak){var am=ak[1];if(am!==String(ao)){return false}var an=ak[2],ai=ak[3],al=ak[4];if(!al){al=""}else{if(al.indexOf("&segment=")===0){al=al.substr("&segment=".length)}}R.name=aq+"###"+an+"###"+ai+"###"+al}var ap=R.name.split("###");
return ap.length===4&&ap[0]===aq}function V(aj,ap,al){var ao=R.name.split("###"),an=ao[1],ai=ao[2],am=ao[3],ak=M(aj,ap);n(ak+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(ak,al,an,ai,am)})}function t(){var ak;try{ak=R.frameElement}catch(aj){return true}if(H(ak)){return(ak&&String(ak.nodeName).toLowerCase()==="iframe")?true:false}try{return R.self!==R.top}catch(ai){return true}}function O(bY,bT){var bt=this,bO=W(E.domain,R.location.href,I()),cA=J(bO[0]),by=o(bO[1]),bb=o(bO[2]),cy=false,b2="GET",cN=b2,aA="application/x-www-form-urlencoded; charset=UTF-8",ch=aA,aw=bY||"",bs="",cE="",bQ=bT||"",bl="",bz="",aV,a7="",cK=["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"],ap=[cA],bm=[],bw=[],aY=[],bu=500,cq,aW,bC,bA,ai,cb=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],br=["pk_kwd","piwik_kwd","utm_term"],a8="_pk_",ao="pk_vid",aQ=180,cC,bd,a9=false,cw,a3,bi,cr=33955200000,b9=1800000,cJ=15768000000,aT=true,b7=0,bB=false,aH=false,bV,bG={},b6={},ba={},bg=200,cF={},cL={},bU=[],bZ=false,ck=false,aj=false,cM=false,ct=false,aF=false,a2=t(),cD=null,bW,aI,bn,bR=ag,bc,aC,cc=0,bh=["id","ses","cvar","ref"];
try{a7=E.title}catch(ci){a7=""}function cQ(c1,cY,cX,c0,cW,cZ){if(a9){return}var cV;if(cX){cV=new Date();cV.setTime(cV.getTime()+cX)}E.cookie=c1+"="+s(cY)+(cX?";expires="+cV.toGMTString():"")+";path="+(c0||"/")+(cW?";domain="+cW:"")+(cZ?";secure":"")}function av(cX){if(a9){return 0}var cV=new RegExp("(^|;)[ ]*"+cX+"=([^;]*)"),cW=cV.exec(E.cookie);return cW?Q(cW[2]):0}function bM(cV){var cW;cV=k(cV,ao);if(bA){cW=new RegExp("#.*");return cV.replace(cW,"")}return cV}function bF(cX,cV){var cY=r(cV),cW;if(cY){return cV}if(cV.slice(0,1)==="/"){return r(cX)+"://"+d(cX)+cV}cX=bM(cX);cW=cX.indexOf("?");if(cW>=0){cX=cX.slice(0,cW)}cW=cX.lastIndexOf("/");if(cW!==cX.length-1){cX=cX.slice(0,cW+1)}return cX+cV}function cp(cX,cV){var cW;cX=String(cX).toLowerCase();cV=String(cV).toLowerCase();if(cX===cV){return true}if(cV.slice(0,1)==="."){if(cX===cV.slice(1)){return true}cW=cX.length-cV.length;if((cW>0)&&(cX.slice(cW)===cV)){return true}}return false}function b5(cV){var cW=document.createElement("a");if(cV.indexOf("//")!==0&&cV.indexOf("http")!==0){if(cV.indexOf("*")===0){cV=cV.substr(1)
}if(cV.indexOf(".")===0){cV=cV.substr(1)}cV="http://"+cV}cW.href=u.toAbsoluteUrl(cV);if(cW.pathname){return cW.pathname}return""}function aU(cW,cV){if(!ad(cV,"/")){cV="/"+cV}if(!ad(cW,"/")){cW="/"+cW}var cX=(cV==="/"||cV==="/*");if(cX){return true}if(cW===cV){return true}cV=String(cV).toLowerCase();cW=String(cW).toLowerCase();if(P(cV,"*")){cV=cV.slice(0,-1);cX=(!cV||cV==="/");if(cX){return true}if(cW===cV){return true}return cW.indexOf(cV)===0}if(!P(cW,"/")){cW+="/"}if(!P(cV,"/")){cV+="/"}return cW.indexOf(cV)===0}function al(cZ,c1){var cW,cV,cX,cY,c0;for(cW=0;cW<ap.length;cW++){cY=J(ap[cW]);c0=b5(ap[cW]);if(cp(cZ,cY)&&aU(c1,c0)){return true}}return false}function aM(cY){var cW,cV,cX;for(cW=0;cW<ap.length;cW++){cV=J(ap[cW].toLowerCase());if(cY===cV){return true}if(cV.slice(0,1)==="."){if(cY===cV.slice(1)){return true}cX=cY.length-cV.length;if((cX>0)&&(cY.slice(cX)===cV)){return true}}}return false}function ca(cV,cX){var cW=new Image(1,1);cW.onload=function(){C=0;if(typeof cX==="function"){cX()
}};cV=cV.replace("send_image=0","send_image=1");cW.src=aw+(aw.indexOf("?")<0?"?":"&")+cV}function cI(cW,cZ,cV){if(!H(cV)||null===cV){cV=true}try{var cY=R.XMLHttpRequest?new R.XMLHttpRequest():R.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;cY.open("POST",aw,true);cY.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)&&cV){ca(cW,cZ)}else{if(this.readyState===4&&(typeof cZ==="function")){cZ()}}};cY.setRequestHeader("Content-Type",ch);cY.send(cW)}catch(cX){if(cV){ca(cW,cZ)}}}function b0(cW){var cV=new Date();var cX=cV.getTime()+cW;if(!q||cX>q){q=cX}}function b8(cV){if(bW||!aW){return}bW=setTimeout(function cW(){bW=null;if(!a2){a2=(!E.hasFocus||E.hasFocus())}if(!a2){b8(aW);return}if(bC()){return}var cX=new Date(),cY=aW-(cX.getTime()-cD);cY=Math.min(aW,cY);b8(cY)},cV||aW)}function bv(){if(!bW){return}clearTimeout(bW);bW=null}function a0(){a2=true;if(bC()){return}b8()}function aq(){bv()}function cS(){if(aF||!aW){return}aF=true;ah(R,"focus",a0);
ah(R,"blur",aq);b8()}function cl(cZ){var cW=new Date();var cV=cW.getTime();cD=cV;if(ck&&cV<ck){var cX=ck-cV;setTimeout(cZ,cX);b0(cX+50);ck+=50;return}if(ck===false){var cY=800;ck=cV+cY}cZ()}function bq(cW,cV,cX){if(!cw&&cW){cl(function(){if(cN==="POST"||String(cW).length>2000){cI(cW,cX)}else{ca(cW,cX)}b0(cV)})}if(!aF){cS()}else{b8()}}function b4(cV){if(cw){return false}return(cV&&cV.length)}function cR(cX,cV){if(!b4(cX)){return}var cW='{"requests":["?'+cX.join('","?')+'"]}';cl(function(){cI(cW,null,false);b0(cV)})}function aK(cV){return a8+cV+"."+bQ+"."+bc}function bP(){if(a9){return"0"}if(!H(h.cookieEnabled)){var cV=aK("testcookie");cQ(cV,"1");return av(cV)==="1"?"1":"0"}return h.cookieEnabled?"1":"0"}function a6(){bc=bR((cC||cA)+(bd||"/")).slice(0,4)}function bH(){var cW=aK("cvar"),cV=av(cW);if(cV.length){cV=JSON_PIWIK.parse(cV);if(T(cV)){return cV}}return{}}function cm(){if(aH===false){aH=bH()}}function cx(){return bR((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(cL)+(new Date()).getTime()+Math.random()).slice(0,16)
}function ar(){return bR((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(cL)).slice(0,6)}function a4(){return Math.floor((new Date()).getTime()/1000)}function aB(){var cW=a4();var cX=ar();var cV=String(cW)+cX;return cV}function cH(cX){cX=String(cX);var c0=ar();var cY=c0.length;var cZ=cX.substr(-1*cY,cY);var cW=parseInt(cX.substr(0,cX.length-cY),10);if(cW&&cZ&&cZ===c0){var cV=a4();if(aQ<=0){return true}if(cV>=cW&&cV<=(cW+aQ)){return true}}return false}function cT(cV){if(!ct){return""}var cZ=f(cV,ao);if(!cZ){return""}cZ=String(cZ);var cX=new RegExp("^[a-zA-Z0-9]+$");if(cZ.length===32&&cX.test(cZ)){var cW=cZ.substr(16,32);if(cH(cW)){var cY=cZ.substr(0,16);return cY}}return""}function cu(){if(!bz){bz=cT(by)}var cX=new Date(),cV=Math.round(cX.getTime()/1000),cW=aK("id"),c0=av(cW),cZ,cY;if(c0){cZ=c0.split(".");cZ.unshift("0");if(bz.length){cZ[1]=bz}return cZ}if(bz.length){cY=bz}else{if("0"===bP()){cY=""}else{cY=cx()}}cZ=["1",cY,cV,0,cV,"",""];return cZ}function aO(){var c2=cu(),cY=c2[0],cZ=c2[1],cW=c2[2],cV=c2[3],c0=c2[4],cX=c2[5];
if(!H(c2[6])){c2[6]=""}var c1=c2[6];return{newVisitor:cY,uuid:cZ,createTs:cW,visitCount:cV,currentVisitTs:c0,lastVisitTs:cX,lastEcommerceOrderTs:c1}}function az(){var cY=new Date(),cW=cY.getTime(),cZ=aO().createTs;var cV=parseInt(cZ,10);var cX=(cV*1000)+cr-cW;return cX}function aD(cV){if(!bQ){return}var cX=new Date(),cW=Math.round(cX.getTime()/1000);if(!H(cV)){cV=aO()}var cY=cV.uuid+"."+cV.createTs+"."+cV.visitCount+"."+cW+"."+cV.lastVisitTs+"."+cV.lastEcommerceOrderTs;cQ(aK("id"),cY,az(),bd,cC)}function bx(){var cV=av(aK("ref"));if(cV.length){try{cV=JSON_PIWIK.parse(cV);if(T(cV)){return cV}}catch(cW){}}return["","",0,""]}function bI(cX,cW,cV){cQ(cX,"",-86400,cW,cV)}function bj(cW){var cV="testvalue";cQ("test",cV,10000,null,cW);if(av("test")===cV){bI("test",null,cW);return true}return false}function ax(){var cW=a9;a9=false;var cV,cX;for(cV=0;cV<bh.length;cV++){cX=aK(bh[cV]);if(0!==av(cX)){bI(cX,bd,cC)}}a9=cW}function bN(cV){bQ=cV;aD()}function cU(cZ){if(!cZ||!T(cZ)){return}var cY=[];var cX;
for(cX in cZ){if(Object.prototype.hasOwnProperty.call(cZ,cX)){cY.push(cX)}}var c0={};cY.sort();var cV=cY.length;var cW;for(cW=0;cW<cV;cW++){c0[cY[cW]]=cZ[cY[cW]]}return c0}function bX(){cQ(aK("ses"),"*",b9,bd,cC)}function a5(){var cY="";var cW="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var cX=cW.length;var cV;for(cV=0;cV<6;cV++){cY+=cW.charAt(Math.floor(Math.random()*cX))}return cY}function cd(cX,di,dj,cY){var dh,cW=new Date(),c5=Math.round(cW.getTime()/1000),c2,dg,cZ=1024,dp,c6,de=aH,c0=aK("ses"),dc=aK("ref"),c9=aK("cvar"),da=av(c0),df=bx(),dl=aV||by,c3,cV;if(a9){ax()}if(cw){return""}var db=aO();if(!H(cY)){cY=""}var c8=E.characterSet||E.charset;if(!c8||c8.toLowerCase()==="utf-8"){c8=null}c3=df[0];cV=df[1];c2=df[2];dg=df[3];if(!da){var dk=b9/1000;if(!db.lastVisitTs||(c5-db.lastVisitTs)>dk){db.visitCount++;db.lastVisitTs=db.currentVisitTs}if(!bi||!c3.length){for(dh in cb){if(Object.prototype.hasOwnProperty.call(cb,dh)){c3=f(dl,cb[dh]);if(c3.length){break}}}for(dh in br){if(Object.prototype.hasOwnProperty.call(br,dh)){cV=f(dl,br[dh]);
if(cV.length){break}}}}dp=d(bb);c6=dg.length?d(dg):"";if(dp.length&&!aM(dp)&&(!bi||!c6.length||aM(c6))){dg=bb}if(dg.length||c3.length){c2=c5;df=[c3,cV,c2,bM(dg.slice(0,cZ))];cQ(dc,JSON_PIWIK.stringify(df),cJ,bd,cC)}}cX+="&idsite="+bQ+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+cW.getHours()+"&m="+cW.getMinutes()+"&s="+cW.getSeconds()+"&url="+s(bM(dl))+(bb.length?"&urlref="+s(bM(bb)):"")+((bl&&bl.length)?"&uid="+s(bl):"")+"&_id="+db.uuid+"&_idts="+db.createTs+"&_idvc="+db.visitCount+"&_idn="+db.newVisitor+(c3.length?"&_rcn="+s(c3):"")+(cV.length?"&_rck="+s(cV):"")+"&_refts="+c2+"&_viewts="+db.lastVisitTs+(String(db.lastEcommerceOrderTs).length?"&_ects="+db.lastEcommerceOrderTs:"")+(String(dg).length?"&_ref="+s(bM(dg.slice(0,cZ))):"")+(c8?"&cs="+s(c8):"")+"&send_image=0";for(dh in cL){if(Object.prototype.hasOwnProperty.call(cL,dh)){cX+="&"+dh+"="+cL[dh]}}var dn=[];if(di){for(dh in di){if(Object.prototype.hasOwnProperty.call(di,dh)&&/^dimension\d+$/.test(dh)){var c1=dh.replace("dimension","");
dn.push(parseInt(c1,10));dn.push(String(c1));cX+="&"+dh+"="+di[dh];delete di[dh]}}}if(di&&z(di)){di=null}for(dh in ba){if(Object.prototype.hasOwnProperty.call(ba,dh)){var c7=(-1===K(dn,dh));if(c7){cX+="&dimension"+dh+"="+ba[dh]}}}if(di){cX+="&data="+s(JSON_PIWIK.stringify(di))}else{if(ai){cX+="&data="+s(JSON_PIWIK.stringify(ai))}}function c4(dq,dr){var ds=JSON_PIWIK.stringify(dq);if(ds.length>2){return"&"+dr+"="+s(ds)}return""}var dm=cU(bG);var dd=cU(b6);cX+=c4(dm,"cvar");cX+=c4(dd,"e_cvar");if(aH){cX+=c4(aH,"_cvar");for(dh in de){if(Object.prototype.hasOwnProperty.call(de,dh)){if(aH[dh][0]===""||aH[dh][1]===""){delete aH[dh]}}}if(bB){cQ(c9,JSON_PIWIK.stringify(aH),b9,bd,cC)}}if(aT){if(b7){cX+=">_ms="+b7}else{if(i&&i.timing&&i.timing.requestStart&&i.timing.responseEnd){cX+=">_ms="+(i.timing.responseEnd-i.timing.requestStart)}}}if(aC){cX+="&pv_id="+aC}db.lastEcommerceOrderTs=H(cY)&&String(cY).length?cY:db.lastEcommerceOrderTs;aD(db);bX();cX+=X(dj,{tracker:bt,request:cX});if(cE.length){cX+="&"+cE
}if(y(bV)){cX=bV(cX)}return cX}bC=function aX(){var cV=new Date();if(cD+aW<=cV.getTime()){var cW=cd("ping=1",null,"ping");bq(cW,bu);return true}return false};function be(cY,cX,c3,cZ,cV,c6){var c1="idgoal=0",c2,cW=new Date(),c4=[],c5,c0=String(cY).length;if(c0){c1+="&ec_id="+s(cY);c2=Math.round(cW.getTime()/1000)}c1+="&revenue="+cX;if(String(c3).length){c1+="&ec_st="+c3}if(String(cZ).length){c1+="&ec_tx="+cZ}if(String(cV).length){c1+="&ec_sh="+cV}if(String(c6).length){c1+="&ec_dt="+c6}if(cF){for(c5 in cF){if(Object.prototype.hasOwnProperty.call(cF,c5)){if(!H(cF[c5][1])){cF[c5][1]=""}if(!H(cF[c5][2])){cF[c5][2]=""}if(!H(cF[c5][3])||String(cF[c5][3]).length===0){cF[c5][3]=0}if(!H(cF[c5][4])||String(cF[c5][4]).length===0){cF[c5][4]=1}c4.push(cF[c5])}}c1+="&ec_items="+s(JSON_PIWIK.stringify(c4))}c1=cd(c1,ai,"ecommerce",c2);bq(c1,bu);if(c0){cF={}}}function bJ(cV,cZ,cY,cX,cW,c0){if(String(cV).length&&H(cZ)){be(cV,cZ,cY,cX,cW,c0)}}function bf(cV){if(H(cV)){be("",cV,"","","","")}}function bK(cW,cY,cX){aC=a5();
var cV=cd("action_name="+s(af(cW||a7)),cY,"log");bq(cV,bu,cX)}function aR(cX,cW){var cY,cV="(^| )(piwik[_-]"+cW;if(cX){for(cY=0;cY<cX.length;cY++){cV+="|"+cX[cY]}}cV+=")( |$)";return new RegExp(cV)}function aL(cV){return(aw&&cV&&0===String(cV).indexOf(aw))}function ce(cZ,cV,c0,cW){if(aL(cV)){return 0}var cY=aR(bw,"download"),cX=aR(aY,"link"),c1=new RegExp("\\.("+cK.join("|")+")([?&#]|$)","i");if(cX.test(cZ)){return"link"}if(cW||cY.test(cZ)||c1.test(cV)){return"download"}if(c0){return 0}return"link"}function an(cW){var cV;cV=cW.parentNode;while(cV!==null&&H(cV)){if(Z.isLinkElement(cW)){break}cW=cV;cV=cW.parentNode}return cW}function cO(c0){c0=an(c0);if(!Z.hasNodeAttribute(c0,"href")){return}if(!H(c0.href)){return}var cZ=Z.getAttributeValueFromNode(c0,"href");if(aL(cZ)){return}var cW=c0.pathname||b5(c0.href);var c1=c0.hostname||d(c0.href);var c2=c1.toLowerCase();var cX=c0.href.replace(c1,c2);var cY=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!cY.test(cX)){var cV=ce(c0.className,cX,al(c2,cW),Z.hasNodeAttribute(c0,"download"));
if(cV){return{type:cV,href:cX}}}}function aG(cV,cW,cX,cY){var cZ=u.buildInteractionRequestParams(cV,cW,cX,cY);if(!cZ){return}return cd(cZ,null,"contentInteraction")}function cs(cX,cY,c2,cV,cW){if(!H(cX)){return}if(aL(cX)){return cX}var c0=u.toAbsoluteUrl(cX);var cZ="redirecturl="+s(c0)+"&";cZ+=aG(cY,c2,cV,(cW||cX));var c1="&";if(aw.indexOf("?")<0){c1="?"}return aw+c1+cZ}function a1(cV,cW){if(!cV||!cW){return false}var cX=u.findTargetNode(cV);if(u.shouldIgnoreInteraction(cX)){return false}cX=u.findTargetNodeNoDefault(cV);if(cX&&!S(cX,cW)){return false}return true}function cf(cX,cW,cZ){if(!cX){return}var cV=u.findParentContentNode(cX);if(!cV){return}if(!a1(cV,cX)){return}var cY=u.buildContentBlock(cV);if(!cY){return}if(!cY.target&&cZ){cY.target=cZ}return u.buildInteractionRequestParams(cW,cY.name,cY.piece,cY.target)}function aN(cW){if(!bU||!bU.length){return false}var cV,cX;for(cV=0;cV<bU.length;cV++){cX=bU[cV];if(cX&&cX.name===cW.name&&cX.piece===cW.piece&&cX.target===cW.target){return true
}}return false}function bp(cY){if(!cY){return false}var c1=u.findTargetNode(cY);if(!c1||u.shouldIgnoreInteraction(c1)){return false}var c2=cO(c1);if(cM&&c2&&c2.type){return false}if(Z.isLinkElement(c1)&&Z.hasNodeAttributeWithValue(c1,"href")){var cV=String(Z.getAttributeValueFromNode(c1,"href"));if(0===cV.indexOf("#")){return false}if(aL(cV)){return true}if(!u.isUrlToCurrentDomain(cV)){return false}var cZ=u.buildContentBlock(cY);if(!cZ){return}var cX=cZ.name;var c3=cZ.piece;var c0=cZ.target;if(!Z.hasNodeAttributeWithValue(c1,u.CONTENT_TARGET_ATTR)||c1.wasContentTargetAttrReplaced){c1.wasContentTargetAttrReplaced=true;c0=u.toAbsoluteUrl(cV);Z.setAnyAttribute(c1,u.CONTENT_TARGET_ATTR,c0)}var cW=cs(cV,"click",cX,c3,c0);u.setHrefAttribute(c1,cW);return true}return false}function aE(cW){if(!cW||!cW.length){return}var cV;for(cV=0;cV<cW.length;cV++){bp(cW[cV])}}function aP(cV){return function(cW){if(!cV){return}var cZ=u.findParentContentNode(cV);var c0;if(cW){c0=cW.target||cW.srcElement}if(!c0){c0=cV
}if(!a1(cZ,c0)){return}b0(bu);if(Z.isLinkElement(cV)&&Z.hasNodeAttributeWithValue(cV,"href")&&Z.hasNodeAttributeWithValue(cV,u.CONTENT_TARGET_ATTR)){var cX=Z.getAttributeValueFromNode(cV,"href");if(!aL(cX)&&cV.wasContentTargetAttrReplaced){Z.setAnyAttribute(cV,u.CONTENT_TARGET_ATTR,"")}}var c4=cO(cV);if(aj&&c4&&c4.type){return c4.type}if(bp(cZ)){return"href"}var c1=u.buildContentBlock(cZ);if(!c1){return}var cY=c1.name;var c5=c1.piece;var c3=c1.target;var c2=aG("click",cY,c5,c3);bq(c2,bu);return c2}}function bL(cX){if(!cX||!cX.length){return}var cV,cW;for(cV=0;cV<cX.length;cV++){cW=u.findTargetNode(cX[cV]);if(cW&&!cW.contentInteractionTrackingSetupDone){cW.contentInteractionTrackingSetupDone=true;ah(cW,"click",aP(cW))}}}function bk(cX,cY){if(!cX||!cX.length){return[]}var cV,cW;for(cV=0;cV<cX.length;cV++){if(aN(cX[cV])){cX.splice(cV,1);cV--}else{bU.push(cX[cV])}}if(!cX||!cX.length){return[]}aE(cY);bL(cY);var cZ=[];for(cV=0;cV<cX.length;cV++){cW=cd(u.buildImpressionRequestParams(cX[cV].name,cX[cV].piece,cX[cV].target),undefined,"contentImpressions");
if(cW){cZ.push(cW)}}return cZ}function cj(cW){var cV=u.collectContent(cW);return bk(cV,cW)}function aZ(cW){if(!cW||!cW.length){return[]}var cV;for(cV=0;cV<cW.length;cV++){if(!u.isNodeVisible(cW[cV])){cW.splice(cV,1);cV--}}if(!cW||!cW.length){return[]}return cj(cW)}function ay(cX,cV,cW){var cY=u.buildImpressionRequestParams(cX,cV,cW);return cd(cY,null,"contentImpression")}function cP(cY,cW){if(!cY){return}var cV=u.findParentContentNode(cY);var cX=u.buildContentBlock(cV);if(!cX){return}if(!cW){cW="Unknown"}return aG(cW,cX.name,cX.piece,cX.target)}function cv(cW,cY,cV,cX){return"e_c="+s(cW)+"&e_a="+s(cY)+(H(cV)?"&e_n="+s(cV):"")+(H(cX)?"&e_v="+s(cX):"")}function am(cX,cZ,cV,cY,c1,c0){if(a(String(cX)).length===0||a(String(cZ)).length===0){ae("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces");return false}var cW=cd(cv(cX,cZ,cV,cY),c1,"event");bq(cW,bu,c0)}function bS(cV,cY,cW,cZ){var cX=cd("search="+s(cV)+(cY?"&search_cat="+s(cY):"")+(H(cW)?"&search_count="+cW:""),cZ,"sitesearch");
bq(cX,bu)}function cz(cV,cY,cX){var cW=cd("idgoal="+cV+(cY?"&revenue="+cY:""),cX,"goal");bq(cW,bu)}function cG(cY,cV,c2,c1,cX){var c0=cV+"="+s(bM(cY));var cW=cf(cX,"click",cY);if(cW){c0+="&"+cW}var cZ=cd(c0,c2,"link");bq(cZ,bu,c1)}function bE(cW,cV){if(cW!==""){return cW+cV.charAt(0).toUpperCase()+cV.slice(1)}return cV}function b1(c0){var cZ,cV,cY=["","webkit","ms","moz"],cX;if(!a3){for(cV=0;cV<cY.length;cV++){cX=cY[cV];if(Object.prototype.hasOwnProperty.call(E,bE(cX,"hidden"))){if(E[bE(cX,"visibilityState")]==="prerender"){cZ=true}break}}}if(cZ){ah(E,cX+"visibilitychange",function cW(){E.removeEventListener(cX+"visibilitychange",cW,false);c0()});return}c0()}function b3(cV){if(!cV){return}if(!Z.hasNodeAttribute(cV,"href")){return}var cW=Z.getAttributeValueFromNode(cV,"href");if(!cW||aL(cW)){return}cW=k(cW,ao);if(cW.indexOf("?")>0){cW+="&"}else{cW+="?"}var cY=aO().uuid;var cX=aB();cW=D(cW,ao,cY+cX);Z.setAnyAttribute(cV,"href",cW)}function at(cY){var cZ=Z.getAttributeValueFromNode(cY,"href");
if(!cZ){return false}cZ=String(cZ);var cW=cZ.indexOf("//")===0||cZ.indexOf("http://")===0||cZ.indexOf("https://")===0;if(!cW){return false}var cV=cY.pathname||b5(cY.href);var cX=(cY.hostname||d(cY.href)).toLowerCase();if(al(cX,cV)){if(!cp(cA,J(cX))){return true}return false}return false}function co(cV){var cW=cO(cV);if(cW&&cW.type){cW.href=o(cW.href);cG(cW.href,cW.type,undefined,null,cV);return}if(ct){cV=an(cV);if(at(cV)){b3(cV)}}}function cg(){return E.all&&!E.addEventListener}function cB(cV){var cX=cV.which;var cW=(typeof cV.button);if(!cX&&cW!=="undefined"){if(cg()){if(cV.button&1){cX=1}else{if(cV.button&2){cX=3}else{if(cV.button&4){cX=2}}}}else{if(cV.button===0||cV.button==="0"){cX=1}else{if(cV.button&1){cX=2}else{if(cV.button&2){cX=3}}}}}return cX}function bD(cV){switch(cB(cV)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function aS(cV){return cV.target||cV.srcElement}function au(cV){return function(cY){cY=cY||R.event;var cX=bD(cY);var cZ=aS(cY);if(cY.type==="click"){var cW=false;
if(cV&&cX==="middle"){cW=true}if(cZ&&!cW){co(cZ)}}else{if(cY.type==="mousedown"){if(cX==="middle"&&cZ){aI=cX;bn=cZ}else{aI=bn=null}}else{if(cY.type==="mouseup"){if(cX===aI&&cZ===bn){co(cZ)}aI=bn=null}else{if(cY.type==="contextmenu"){co(cZ)}}}}}}function ak(cX,cW){var cV=typeof cW;if(cV==="undefined"){cW=true}ah(cX,"click",au(cW),false);if(cW){ah(cX,"mouseup",au(cW),false);ah(cX,"mousedown",au(cW),false);ah(cX,"contextmenu",au(cW),false)}}function bo(cX,cZ){aj=true;var cY,cW=aR(bm,"ignore"),c0=E.links,cV=null,c1=null;if(c0){for(cY=0;cY<c0.length;cY++){cV=c0[cY];if(!cW.test(cV.className)){c1=typeof cV.piwikTrackers;if("undefined"===c1){cV.piwikTrackers=[]}if(-1===K(cV.piwikTrackers,cZ)){cV.piwikTrackers.push(cZ);ak(cV,cX)}}}}}function aJ(cW,cZ,c0){if(bZ){return true}bZ=true;var c1=false;var cY,cX;function cV(){c1=true}m(function(){function c2(c4){setTimeout(function(){if(!bZ){return}c1=false;c0.trackVisibleContentImpressions();c2(c4)},c4)}function c3(c4){setTimeout(function(){if(!bZ){return
}if(c1){c1=false;c0.trackVisibleContentImpressions()}c3(c4)},c4)}if(cW){cY=["scroll","resize"];for(cX=0;cX<cY.length;cX++){if(E.addEventListener){E.addEventListener(cY[cX],cV)}else{R.attachEvent("on"+cY[cX],cV)}}c3(100)}if(cZ&&cZ>0){cZ=parseInt(cZ,10);c2(cZ)}})}function cn(){var cW,cY,cZ={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(cW in cZ){if(Object.prototype.hasOwnProperty.call(cZ,cW)){cY=h.mimeTypes[cZ[cW]];cL[cW]=(cY&&cY.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&H(h.javaEnabled)&&h.javaEnabled()){cL.java="1"}if(y(R.GearsFactory)){cL.gears="1"}cL.cookie=bP()}var cX=parseInt(U.width,10);var cV=parseInt(U.height,10);cL.res=parseInt(cX,10)+"x"+parseInt(cV,10)
}cn();a6();aD();this.getVisitorId=function(){return aO().uuid};this.getVisitorInfo=function(){return cu()};this.getAttributionInfo=function(){return bx()};this.getAttributionCampaignName=function(){return bx()[0]};this.getAttributionCampaignKeyword=function(){return bx()[1]};this.getAttributionReferrerTimestamp=function(){return bx()[2]};this.getAttributionReferrerUrl=function(){return bx()[3]};this.setTrackerUrl=function(cV){aw=cV};this.getTrackerUrl=function(){return aw};this.getPiwikUrl=function(){return M(this.getTrackerUrl(),bs)};this.addTracker=function(cV,cX){if(!cX){throw new Error("A siteId must be given to add a new tracker")}if(!H(cV)||null===cV){cV=this.getTrackerUrl()}var cW=new O(cV,cX);G.push(cW);return cW};this.getSiteId=function(){return bQ};this.setSiteId=function(cV){bN(cV)};this.setUserId=function(cV){if(!H(cV)||!cV.length){return}bl=cV;bz=bR(bl).substr(0,16)};this.getUserId=function(){return bl};this.setCustomData=function(cV,cW){if(T(cV)){ai=cV}else{if(!ai){ai={}}ai[cV]=cW
}};this.getCustomData=function(){return ai};this.setCustomRequestProcessing=function(cV){bV=cV};this.appendToTrackingUrl=function(cV){cE=cV};this.getRequest=function(cV){return cd(cV)};this.addPlugin=function(cV,cW){b[cV]=cW};this.setCustomDimension=function(cV,cW){cV=parseInt(cV,10);if(cV>0){if(!H(cW)){cW=""}if(!v(cW)){cW=String(cW)}ba[cV]=cW}};this.getCustomDimension=function(cV){cV=parseInt(cV,10);if(cV>0&&Object.prototype.hasOwnProperty.call(ba,cV)){return ba[cV]}};this.deleteCustomDimension=function(cV){cV=parseInt(cV,10);if(cV>0){delete ba[cV]}};this.setCustomVariable=function(cW,cV,cZ,cX){var cY;if(!H(cX)){cX="visit"}if(!H(cV)){return}if(!H(cZ)){cZ=""}if(cW>0){cV=!v(cV)?String(cV):cV;cZ=!v(cZ)?String(cZ):cZ;cY=[cV.slice(0,bg),cZ.slice(0,bg)];if(cX==="visit"||cX===2){cm();aH[cW]=cY}else{if(cX==="page"||cX===3){bG[cW]=cY}else{if(cX==="event"){b6[cW]=cY}}}}};this.getCustomVariable=function(cW,cX){var cV;if(!H(cX)){cX="visit"}if(cX==="page"||cX===3){cV=bG[cW]}else{if(cX==="event"){cV=b6[cW]
}else{if(cX==="visit"||cX===2){cm();cV=aH[cW]}}}if(!H(cV)||(cV&&cV[0]==="")){return false}return cV};this.deleteCustomVariable=function(cV,cW){if(this.getCustomVariable(cV,cW)){this.setCustomVariable(cV,"","",cW)}};this.deleteCustomVariables=function(cV){if(cV==="page"||cV===3){bG={}}else{if(cV==="event"){b6={}}else{if(cV==="visit"||cV===2){aH={}}}}};this.storeCustomVariablesInCookie=function(){bB=true};this.setLinkTrackingTimer=function(cV){bu=cV};this.getLinkTrackingTimer=function(){return bu};this.setDownloadExtensions=function(cV){if(v(cV)){cV=cV.split("|")}cK=cV};this.addDownloadExtensions=function(cW){var cV;if(v(cW)){cW=cW.split("|")}for(cV=0;cV<cW.length;cV++){cK.push(cW[cV])}};this.removeDownloadExtensions=function(cX){var cW,cV=[];if(v(cX)){cX=cX.split("|")}for(cW=0;cW<cK.length;cW++){if(K(cX,cK[cW])===-1){cV.push(cK[cW])}}cK=cV};this.setDomains=function(cV){ap=v(cV)?[cV]:cV;var cZ=false,cX=0,cW;for(cX;cX<ap.length;cX++){cW=String(ap[cX]);if(cp(cA,J(cW))){cZ=true;break}var cY=b5(cW);
if(cY&&cY!=="/"&&cY!=="/*"){cZ=true;break}}if(!cZ){ap.push(cA)}};this.enableCrossDomainLinking=function(){ct=true};this.disableCrossDomainLinking=function(){ct=false};this.isCrossDomainLinkingEnabled=function(){return ct};this.setCrossDomainLinkingTimeout=function(cV){aQ=cV};this.setIgnoreClasses=function(cV){bm=v(cV)?[cV]:cV};this.setRequestMethod=function(cV){cN=cV||b2};this.setRequestContentType=function(cV){ch=cV||aA};this.setReferrerUrl=function(cV){bb=cV};this.setCustomUrl=function(cV){aV=bF(by,cV)};this.getCurrentUrl=function(){return aV||by};this.setDocumentTitle=function(cV){a7=cV};this.setAPIUrl=function(cV){bs=cV};this.setDownloadClasses=function(cV){bw=v(cV)?[cV]:cV};this.setLinkClasses=function(cV){aY=v(cV)?[cV]:cV};this.setCampaignNameKey=function(cV){cb=v(cV)?[cV]:cV};this.setCampaignKeywordKey=function(cV){br=v(cV)?[cV]:cV};this.discardHashTag=function(cV){bA=cV};this.setCookieNamePrefix=function(cV){a8=cV;aH=bH()};this.setCookieDomain=function(cV){var cW=J(cV);if(bj(cW)){cC=cW;
a6()}};this.getCookieDomain=function(){return cC};this.hasCookies=function(){return"1"===bP()};this.setSessionCookie=function(cX,cW,cV){if(!cX){throw new Error("Missing cookie name")}if(!H(cV)){cV=b9}bh.push(cX);cQ(aK(cX),cW,cV,bd,cC)};this.getCookie=function(cW){var cV=av(aK(cW));if(cV===0){return null}return cV};this.setCookiePath=function(cV){bd=cV;a6()};this.getCookiePath=function(cV){return bd};this.setVisitorCookieTimeout=function(cV){cr=cV*1000};this.setSessionCookieTimeout=function(cV){b9=cV*1000};this.getSessionCookieTimeout=function(){return b9};this.setReferralCookieTimeout=function(cV){cJ=cV*1000};this.setConversionAttributionFirstReferrer=function(cV){bi=cV};this.disableCookies=function(){a9=true;cL.cookie="0";if(bQ){ax()}};this.deleteCookies=function(){ax()};this.setDoNotTrack=function(cW){var cV=h.doNotTrack||h.msDoNotTrack;cw=cW&&(cV==="yes"||cV==="1");if(cw){this.disableCookies()}};this.addListener=function(cW,cV){ak(cW,cV)};this.enableLinkTracking=function(cW){cM=true;
var cV=this;b1(function(){p(function(){bo(cW,cV)})})};this.enableJSErrorTracking=function(){if(cy){return}cy=true;var cV=R.onerror;R.onerror=function(c0,cY,cX,cZ,cW){b1(function(){var c1="JavaScript Errors";var c2=cY+":"+cX;if(cZ){c2+=":"+cZ}am(c1,c2,c0)});if(cV){return cV(c0,cY,cX,cZ,cW)}return false}};this.disablePerformanceTracking=function(){aT=false};this.setGenerationTimeMs=function(cV){b7=parseInt(cV,10)};this.enableHeartBeatTimer=function(cV){cV=Math.max(cV,1);aW=(cV||15)*1000;if(cD!==null){cS()}};this.disableHeartBeatTimer=function(){bv();if(aW||aF){if(R.removeEventListener){R.removeEventListener("focus",a0,true);R.removeEventListener("blur",aq,true)}else{if(R.detachEvent){R.detachEvent("onfocus",a0);R.detachEvent("onblur",aq)}}}aW=null;aF=false};this.killFrame=function(){if(R.location!==R.top.location){R.top.location=R.location}};this.redirectFile=function(cV){if(R.location.protocol==="file:"){R.location=cV}};this.setCountPreRendered=function(cV){a3=cV};this.trackGoal=function(cV,cX,cW){b1(function(){cz(cV,cX,cW)
})};this.trackLink=function(cW,cV,cY,cX){b1(function(){cG(cW,cV,cY,cX)})};this.getNumTrackedPageViews=function(){return cc};this.trackPageView=function(cV,cX,cW){bU=[];if(L(bQ)){b1(function(){V(aw,bs,bQ)})}else{b1(function(){cc++;bK(cV,cX,cW)})}};this.trackAllContentImpressions=function(){if(L(bQ)){return}b1(function(){p(function(){var cV=u.findContentNodes();var cW=cj(cV);cR(cW,bu)})})};this.trackVisibleContentImpressions=function(cV,cW){if(L(bQ)){return}if(!H(cV)){cV=true}if(!H(cW)){cW=750}aJ(cV,cW,this);b1(function(){m(function(){var cX=u.findContentNodes();var cY=aZ(cX);cR(cY,bu)})})};this.trackContentImpression=function(cX,cV,cW){if(L(bQ)){return}cX=a(cX);cV=a(cV);cW=a(cW);if(!cX){return}cV=cV||"Unknown";b1(function(){var cY=ay(cX,cV,cW);bq(cY,bu)})};this.trackContentImpressionsWithinNode=function(cV){if(L(bQ)||!cV){return}b1(function(){if(bZ){m(function(){var cW=u.findContentNodesWithinNode(cV);var cX=aZ(cW);cR(cX,bu)})}else{p(function(){var cW=u.findContentNodesWithinNode(cV);var cX=cj(cW);
cR(cX,bu)})}})};this.trackContentInteraction=function(cX,cY,cV,cW){if(L(bQ)){return}cX=a(cX);cY=a(cY);cV=a(cV);cW=a(cW);if(!cX||!cY){return}cV=cV||"Unknown";b1(function(){var cZ=aG(cX,cY,cV,cW);bq(cZ,bu)})};this.trackContentInteractionNode=function(cW,cV){if(L(bQ)||!cW){return}b1(function(){var cX=cP(cW,cV);bq(cX,bu)})};this.logAllContentBlocksOnPage=function(){var cX=u.findContentNodes();var cV=u.collectContent(cX);var cW=typeof console;if(cW!=="undefined"&&console&&console.log){console.log(cV)}};this.trackEvent=function(cW,cY,cV,cX,c0,cZ){b1(function(){am(cW,cY,cV,cX,c0,cZ)})};this.trackSiteSearch=function(cV,cX,cW,cY){b1(function(){bS(cV,cX,cW,cY)})};this.setEcommerceView=function(cY,cV,cX,cW){if(!H(cX)||!cX.length){cX=""}else{if(cX instanceof Array){cX=JSON_PIWIK.stringify(cX)}}bG[5]=["_pkc",cX];if(H(cW)&&String(cW).length){bG[2]=["_pkp",cW]}if((!H(cY)||!cY.length)&&(!H(cV)||!cV.length)){return}if(H(cY)&&cY.length){bG[3]=["_pks",cY]}if(!H(cV)||!cV.length){cV=""}bG[4]=["_pkn",cV]};this.addEcommerceItem=function(cZ,cV,cX,cW,cY){if(cZ.length){cF[cZ]=[cZ,cV,cX,cW,cY]
}};this.trackEcommerceOrder=function(cV,cZ,cY,cX,cW,c0){bJ(cV,cZ,cY,cX,cW,c0)};this.trackEcommerceCartUpdate=function(cV){bf(cV)};this.trackRequest=function(cW,cY,cX,cV){b1(function(){var cZ=cd(cW,cY,cV);bq(cZ,bu,cX)})};e.trigger("TrackerSetup",[this])}function F(){return{push:aa}}function c(an,am){var ao={};var ak,al;for(ak=0;ak<am.length;ak++){var ai=am[ak];ao[ai]=1;for(al=0;al<an.length;al++){if(an[al]&&an[al][0]){var aj=an[al][0];if(ai===aj){aa(an[al]);delete an[al];if(ao[aj]>1){ae("The method "+aj+' 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')}ao[aj]++}}}}return an}var A=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","enableLinkTracking"];function Y(ai,ak){var aj=new O(ai,ak);
G.push(aj);_paq=c(_paq,A);for(C=0;C<_paq.length;C++){if(_paq[C]){aa(_paq[C])}}_paq=new F();return aj}ah(R,"beforeunload",ac,false);Date.prototype.getTimeAlias=Date.prototype.getTime;e={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(al,ak,aj,ai){var am=typeof ai;if(am==="undefined"){ai=false}ah(al,ak,aj,ai)},onLoad:m,onReady:p,isNodeVisible:j,isOrWasNodeVisible:u.isNodeVisible},on:function(aj,ai){if(!w[aj]){w[aj]=[]}w[aj].push(ai)},off:function(ak,aj){if(!w[ak]){return}var ai=0;for(ai;ai<w[ak].length;ai++){if(w[ak][ai]===aj){w[ak].splice(ai,1)}}},trigger:function(ak,al,aj){if(!w[ak]){return}var ai=0;for(ai;ai<w[ak].length;ai++){w[ak][ai].apply(aj||R,al)}},addPlugin:function(ai,aj){b[ai]=aj},getTracker:function(ai,aj){if(!H(aj)){aj=this.getAsyncTracker().getSiteId()}if(!H(ai)){ai=this.getAsyncTracker().getTrackerUrl()}return new O(ai,aj)},getAsyncTrackers:function(){return G},addTracker:function(ai,aj){if(!G.length){Y(ai,aj)}else{G[0].addTracker(ai,aj)}},getAsyncTracker:function(aj,am){var al;
if(G&&G.length&&G[0]){al=G[0]}else{return Y(aj,am)}if(!am&&!aj){return al}if((!H(am)||null===am)&&al){am=al.getSiteId()}if((!H(aj)||null===aj)&&al){aj=al.getTrackerUrl()}var ak,ai=0;for(ai;ai<G.length;ai++){ak=G[ai];if(ak&&String(ak.getSiteId())===String(am)&&ak.getTrackerUrl()===aj){return ak}}},retryMissedPluginCalls:function(){var aj=ab;ab=[];var ai=0;for(ai;ai<aj.length;ai++){aa(aj[ai])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return e})}return e}());
/*!!! pluginTrackerHook */
}(function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()
}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&console&&console.error){console.error("_paq.push() was used but Piwik tracker was not initialized before the piwik.js file was loaded. Make sure to configure the tracker via _paq.push before loading piwik.js. Alternatively, you can create a tracker via Piwik.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c)}}}}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true}());(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 */
};