(function(d,c,da){function L(b){for(var c=1,d=b.length;c<arguments.length;c++)b[d++]=arguments[c];return b.length}function ka(b){return"[object Array]"==Object.prototype.toString.call(b)}function Ia(b,c,d){var h,f,x=0;for(h in b)if(b.hasOwnProperty(h)&&(f=d?c.call(d,b[h],h,b,x):c(b[h],h,b,x),x++,!1===f))break;return this}function B(){for(var b={},c="hash host hostname href pathname port protocol search".split(" "),u=c.length,h=u;h--;)b[c[h]]="";try{for(var f=d.location,h=u;h--;){var x=c[h];b[x]=""+
f[x]}}catch(s){M&&(b=M)}return b}function Lb(b){return b?(""+b).replace(/^\s+/,"").replace(/\s+$/,""):""}function Va(){return-1!=B().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)}function Ja(){return"MetrikaPlayer"==d.name}function H(){return+new Date}function la(b){return Math.floor(Math.random()*("number"==typeof b?b:1073741824))}function Xb(){var b=c.documentElement,d=c.doctype,u=b.attributes,h="",f="",x="",f=b.outerHTML;if(!f){for(f=0;f<u.length;f++){var s=u[f];s&&(h+=
" "+s.name+'="'+(s.value||"")+'"')}f="<html"+h+">"+b.innerHTML+"</html>"}d&&(x="<!DOCTYPE "+d.name+(d.publicId?' PUBLIC "'+d.publicId+'"':"")+(d.systemId?' "'+d.systemId+'"':"")+">\n");return x+f}function qb(b){var c=[],d;for(d in b)b.hasOwnProperty(d)&&(c[c.length]=d+"="+encodeURIComponent(b[d]));return c.join("&")}function Ka(b){for(var c=b.length,d=0,h=255,f=255;c;){var x=21<c?21:c,c=c-x;do{var s="string"==typeof b?b.charCodeAt(d):b[d];d++;if(255<s)var B=s>>8,s=s&255,s=s^B;h+=s;f+=h}while(--x);
h=(h&255)+(h>>8);f=(f&255)+(f>>8)}b=(h&255)+(h>>8)<<8|(f&255)+(f>>8);return 65535==b?0:b}function Wa(b){for(var c=H(),d=1;0<d;d++)if(0==d%1E3){var h=H();if(c>h)break;if(h-c>b)break}}function Xa(b){"function"==typeof d.ymLog&&d.ymLog(b)}function W(b,d,u,h){/[^a-z0-9.-]/.test(h)&&(h=null);b=b+"="+encodeURIComponent(d);u&&(d=new Date,d.setTime(d.getTime()+6E4*u),b+=";expires="+d.toGMTString());h&&(b+=";domain="+h);c.cookie=b+";path=/"}function xa(b){return c.cookie.match(RegExp("(?:^|;\\s*)"+b+"=([^;]*)"))?
decodeURIComponent(RegExp.$1):null}function rb(){W("_metrika_enabled","1",60);var b=!!xa("_metrika_enabled");W("_metrika_enabled","",-1,void 0);return b}function ya(){var b=c.documentElement;return"CSS1Compat"==c.compatMode?b:c.body||b}function Za(){var b=ya();return[b.clientWidth,b.clientHeight]}function $a(){var b=ya(),c=Za();return[Math.max(b.scrollWidth,c[0]),Math.max(b.scrollHeight,c[1])]}function La(){return[d.pageXOffset||c.documentElement&&c.documentElement.scrollLeft||c.body&&c.body.scrollLeft||
0,d.pageYOffset||c.documentElement&&c.documentElement.scrollTop||c.body&&c.body.scrollTop||0]}function ab(b){if(!b.ownerDocument||"PARAM"==b.tagName||b==c.body||b==c.documentElement)return[0,0];if(b.getBoundingClientRect)return b=b.getBoundingClientRect(),[Math.round(b.left+N[0]),Math.round(b.top+N[1])];for(var d=0,u=0;b;)d+=b.offsetLeft,u+=b.offsetTop,b=b.offsetParent;return[d,u]}function X(b,d){return b==c.documentElement?null:d?b.tagName.toLowerCase()===d?b:X(b.parentNode,d):b==c.body?c.documentElement:
b.parentNode}function bb(b,c){var d=[];if(b)for(var h=b.childNodes,f=0,x=h.length;f<x;f++){var s=h[f];"INPUT"==s.nodeName&&s.type&&"hidden"==s.type.toLocaleLowerCase()||c&&s.nodeName!=c||L(d,s)}return d}function Ma(b){var d=ab(b);b=b==c.body||b==c.documentElement?$a():[b.offsetWidth,b.offsetHeight];return[d[0],d[1],b[0],b[1]]}function cb(b){var c="";b=b.childNodes;for(var d=0,h=b.length;d<h;d++)b[d]&&3==b[d].nodeType&&(c+=b[d].nodeValue);return Ka(c.replace(/[\u0000-\u0020]+/g,""))}function db(b){var c=
"",d="width height align title alt name".split(" ");"IMG"==b.tagName&&(c+=b.src.toLowerCase());"A"==b.tagName&&(c+=b.href.toLowerCase());for(var c=c+String(b.className||"").toLowerCase(),h=0;h<d.length;h++)b.getAttribute&&(c+=String(b.getAttribute(d[h])||"").toLowerCase());return Ka(c.replace(/[\u0000-\u0020]+/g,""))}function eb(b){for(var d=c.getElementsByTagName("form"),u=0,h=d.length;u<h;u++)if(d[u]==b)return u;return-1}function ma(b,c){return RegExp("(?:^|\\s)"+c+"(?:\\s|$)").test(b.className)}
function Mb(b){return"INPUT"==b.nodeName&&"submit"!=b.type&&"image"!=b.type&&"hidden"!=b.type?"radio"==b.type||"checkbox"==b.type?!b.checked:!b.value:"TEXTAREA"==b.nodeName?!b.value:"SELECT"==b.nodeName?0>b.selectedIndex:!0}function R(b,c,d,h){O[O.length]=[d,d];b.addEventListener?b.addEventListener(c,d,!!h):b.attachEvent&&b.attachEvent("on"+c,d)}function Na(b,c,d,h){for(var f=0;f<O.length;f++)if(O[f]&&O[f][0]==d){var x=O[f][1];delete O[f];break}x&&(b.removeEventListener?b.removeEventListener(c,x,
!!h):b.detachEvent&&b.detachEvent("on"+c,x))}function na(b){try{delete d[b]}catch(c){d[b]=da}}function za(b){var d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=b;try{var u=c.getElementsByTagName("html")[0];c.getElementsByTagName("head")[0]||u.appendChild(c.createElement("head"));var h=c.getElementsByTagName("head")[0];h.insertBefore(d,h.firstChild)}catch(f){}}function Aa(){if(top!=d&&parent==top&&d.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var b=c.createElement("div");
b.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';var p=b.firstChild;setTimeout(function(){function b(c,d,f,h,x){try{f.postMessage&&(c.onmessage=function(b){b=b||c.event;try{var f=JSON.parse(b.data)}catch(u){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(b.origin)&&f&&"script"==f.name&&f.data){b=h.getElementsByTagName("head")[0];var p=h.createElement("base");p.href=f.data;
b.appendChild(p);p=h.createElement("script");p.src=f.data;b.appendChild(p);-1<x.userAgent.indexOf("Firefox/3.6.")&&d.removeEventListener("message",c.onmessage,!1);c.onmessage=null}},-1<x.userAgent.indexOf("Firefox/3.6.")&&d.addEventListener("message",c.onmessage,!1),f.postMessage('{"name":"ping"}',"*"))}catch(u){}}var d=c.body||c.documentElement;d.insertBefore(p,d.firstChild);try{var f=p.contentWindow.document}catch(x){}f&&(f.open(),f.write('<!doctype html><html><head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=edge" /></head><body><script type="text/javascript">('+
b.toString()+")(window, parent, top, document, navigator);\x3c/script></body></html>"),f.close())},500)}}function sb(b,p,u,h,f,x){function s(a,T){return function(){try{return a.apply(this,arguments)}catch(c){var d=["cp: "+T,c.name+": "+c.message,"debug: "+Nb,"stack: "+c.stack];(new Image).src="//an.yandex.ru/jserr/"+b+"?"+qb({"cnt-class":100+p,errmsg:d.join("; ").replace(/\r?\n/g,"\\n")})}}}function ea(a,T){return d.setTimeout(s(a,"setTimeout"),T)}function y(a,T,c){var b=s(function(a){return c(a||
d.event)},T);$[$.length]=[a,T,c,b];a.addEventListener?a.addEventListener(T,b,!0):a.attachEvent&&a.attachEvent("on"+T,b)}function t(a,T,b){for(var c=0;c<$.length;c++)if($[c]&&$[c][0]==a&&$[c][1]==T&&$[c][2]==b){var d=$[c][3];delete $[c];break}d&&(a.removeEventListener?a.removeEventListener(T,d,!0):a.detachEvent&&a.detachEvent("on"+T,d))}function H(a){var c=ya();return[a.pageX||a.clientX+N[0]-(c.clientLeft||0)||0,a.pageY||a.clientY+N[1]-(c.clientTop||0)||0]}function F(a){return a.target||a.srcElement}
function M(a){return(a.shiftKey?Ob:0)|(a.ctrlKey?tb:0)|(a.altKey?Pb:0)|(a.metaKey?Hb:0)|(a.ctrlKey||a.altKey?fb:0)}function K(a){var c=(new Date).getTime();a&&c<a&&(ub+=a-c+vb);ea(function(){K(c)},vb)}function R(){var a=(new Date).getTime()+ub;a<wb&&(a=wb+vb/2);return wb=a}function I(){return Math.round((R()-Kb)/J)}function O(a,c){c=Math.max(0,Math.min(c,65535));L(a,c>>8,c&255)}function w(a,c){L(a,c&255)}function m(a,c){for(c=Math.max(0,c|0);127<c;)L(a,c&127|128),c>>=7;L(a,c)}function Q(a,c){255<
c.length&&(c=c.substr(0,255));L(a,c.length);for(var b=0;b<c.length;b++)O(a,c.charCodeAt(b))}function W(a,c){m(a,c.length);for(var b=0;b<c.length;b++)m(a,c.charCodeAt(b))}function ja(a){if(!a.nodeName)return a[G]=-1,null;var c=+a[G];if(!isFinite(c)||0>=c)return null;var b=sb,d=0,e=X(a),q=e&&e[G]?e[G]:0;0>q&&(q=0);var k=a.nodeName.toUpperCase(),g=Ib[k];g||(b|=pb);var v;a:{v=bb(X(a),a.nodeName);for(var f=0;f<v.length;f++)if(v[f]==a){v=f;break a}v=0}v||(b|=Ia);f=Ma(a);(e=e?Ma(e):null)&&f[0]==e[0]&&f[1]==
e[1]&&f[2]==e[2]&&f[3]==e[3]&&(b|=Qb);gb[c].pos=f[0]+"x"+f[1];gb[c].size=f[2]+"x"+f[3];a.id&&"string"==typeof a.id&&(b|=Rb);(e=cb(a))&&(b|=rb);var S=db(a);S&&(d|=Gb);var l;a:{l=bb(X(a),a.tagName);for(var h=0;h<l.length;h++)if((!l[h].id||"string"!=typeof l[h].id)&&db(l[h])==S&&cb(l[h])==e){l=!0;break a}l=!1}if(l)var b=b|Sa,r=Ka((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,""));l=[];w(l,D);m(l,c);w(l,b);m(l,q);g?w(l,g):Q(l,k);v&&m(l,v);b&Qb||(m(l,f[0]),m(l,f[1]),m(l,f[2]),m(l,f[3]));b&Rb&&
Q(l,a.id);e&&O(l,e);b&Sa&&O(l,r);w(l,d);S&&O(l,S);return l}function da(a,c,b,e,d,q){for(;b&&(!b.offsetWidth||!b.offsetHeight);)b=X(b);if(!b)return null;var k=b[G];if(!k||0>k)return null;var g={mousemove:S,click:Aa,dblclick:lb,mousedown:Y,mouseup:za,touch:Yb}[c];if(!g)return null;var f=ab(b);b=[];w(b,g);m(b,a);m(b,k);m(b,Math.max(0,e[0]-f[0]));m(b,Math.max(0,e[1]-f[1]));/^mouse(up|down)|click$/.test(c)&&(a=d||q,w(b,2>a?mb:a==(d?2:4)?ob:nb));return b}function la(a,c){var b=[];w(b,P);m(b,a);m(b,c[0]);
m(b,c[1]);return b}function sa(a,c,b){var e=[];b=b[G];if(!b||0>b)return null;w(e,oa);m(e,a);m(e,c[0]);m(e,c[1]);m(e,b);return e}function ta(a,c,b){var e=[];w(e,Xa);m(e,a);m(e,c[0]);m(e,c[1]);m(e,b[0]);m(e,b[1]);return e}function ua(a,c,b,e){var d=[];w(d,r);m(d,a);O(d,c);w(d,b);a=e[G];if(!a||0>a)a=0;m(d,a);return d}function va(a,c){var b,e;0==c.length?e=b="":100>=c.length?(b=c,e=""):200>=c.length?(b=c.substr(0,100),e=c.substr(100)):(b=c.substr(0,97),e=c.substr(c.length-97));var d=[];w(d,na);m(d,a);
W(d,b);W(d,e);return d}function pa(a){var c=[];w(c,Wa);m(c,a);return c}function ca(a){var c=[];w(c,Zb);m(c,a);return c}function xa(a){var c=[];w(c,Ta);m(c,a);return c}function Fa(a,c){var b=[];w(b,Ua);m(b,a);m(b,c[G]);return b}function Ga(a,c){var b=[];w(b,wa);m(b,a);m(b,c[G]);return b}function Ha(a,c,b){var e=[];w(e,Va);m(e,a);m(e,c[G]);Q(e,String(b));return e}function ka(a,c){var b=c[G];if(0<b){var e=[],d=Ma(c),q=gb[b],k=d[0]+"x"+d[1],g=d[2]+"x"+d[3];k!=q.pos&&(q.pos=k,w(e,$b),m(e,a),m(e,b),m(e,
d[0]),m(e,d[1]));g!=q.size&&(q.size=g,w(e,ac),m(e,a),m(e,b),m(e,d[2]),m(e,d[3]));if(e.length)return e}return null}function Ja(a){var c=a[G];if(!c||0>c||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||ma(a.form,"-metrika-noform"))return null;var b=eb(a.form);if(0>b)return null;var e;e="INPUT"==a.nodeName?{text:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]:{SELECT:1,TEXTAREA:5}[a.nodeName];if("number"!=typeof e)return null;for(var d=-1,q=a.form.elements,k=q.length,g=0,f=0;g<k;g++)if(q[g].name==
a.name){if(q[g]==a){d=f;break}f++}if(0>d)return null;q=[];w(q,bc);m(q,c);m(q,b);m(q,e);W(q,a.name||"");m(q,d);return q}function Oa(a,c){var b=eb(c);if(0>b)return null;for(var e=c.elements,d=e.length,q=[],k=0;k<d;k++)if(!Mb(e[k])){var g=e[k][G];g&&0<g&&L(q,g)}e=[];w(e,cc);m(e,a);m(e,b);m(e,q.length);for(b=0;b<q.length;b++)m(e,q[b]);return e}function Na(){var a=[];w(a,C);return a}function n(a){clearTimeout(Sb);for(var c=(new Date).getTime()+Ba;hb.length&&(a||+(new Date).getTime()<c);){var b=hb.shift();
if(b=b[0].apply(d,b[1])){var e=b;6500<Ca.length+e.length&&l();for(var b=Ca,q=0,k=b.length;q<e.length;q++)b[k++]=e[q];ib||(ib=ea(l,dc))}}!0===a&&l(!0);hb.length&&(Sb=ea(n,ec))}function A(a,b,c){L(hb,[a,b]);n(c)}function E(a){if(a[G])A(ka,[I(),a]);else{var b=X(a);b&&E(b);a[G]=xb;gb[xb]={};xb++;A(ja,[a]);A(Ja,[a])}}function U(a){var b=F(a),c,e,d=0;if(b&&"SCROLLBAR"!=b.nodeName){if(b&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b.tagName))if(b[G])E(b);else if(c=X(b,"form"))for(c=c.elements,e=c.length;d<e;d++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[d].tagName)&&
!c[d][G]&&E(c[d]);else E(b);else E(b);A(da,[I(),a.type,b,H(a),a.which,a.button])}}function Da(a){U(a);var b,e;d.getSelection?(a=d.getSelection(),b=a.toString(),e=a.anchorNode):c.selection&&c.selection.createRange&&(a=c.selection.createRange(),b=a.text,e=a.parentElement());for(;e&&1!=e.nodeType;)e=e.parentNode;e&&"INPUT"==e.tagName&&"password"==e.type||e&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(e.className)||b==yb||(yb=b,A(va,[I(),b]))}function fa(a){var b=R(),c=b-Tb;if(!(c<V)){var e=H(a),d=zb[0]-e[0],
q=zb[1]-e[1],d=d*d+q*q;0>=d||16>d&&100>c||20>c&&256>d||(Tb=b,zb=e,U(a))}}function qa(){N=La();var a=R();a-Ub<V||10>Math.abs(N[0]-Ab[0])&&10>Math.abs(N[1]-Ab[1])||(Ub=a,Ab=N,A(la,[I(),N]))}function Pa(a){a=F(a);var b=Math.random(),e=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=Bb[a.localId],!b||10>Math.abs(e[0]-b[0])&&10>Math.abs(e[1]-b[1]))return}else{for(;Bb[b];)b=Math.random();a.localId=b}Bb[a.localId]=e;a!==c&&(E(a),A(sa,[I(),e,a]))}function z(){A(ta,[I(),Za(),$a()])}function ga(a){A(Na,[],!0);
l(!0);Nb=String(a)+" - "+typeof a;if("beforeunload"==a.type)for(a=+new Date+50;+new Date<a;);}function Ea(a,b,c){a=F(a);"INPUT"==a.tagName&&"password"==a.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(E(a),A(ua,[I(),b,c,a]))}function ra(a){var b=a.keyCode,c=M(a);if({3:1,8:1,9:1,13:1,16:1,17:1,18:1,19:1,20:1,27:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,45:1,46:1,91:1,92:1,93:1,106:1,110:1,111:1,144:1,145:1}[b]||112<=b&&123>=b||96<=b&&105>=b||c&fb)19==b&&(c&~fb)==tb&&(b=144),Ea(a,b,c|fb),
Cb=!1,ea(function(){Cb=!0},1),67==b&&c&tb&&!(c&Pb||c&Ob)&&ha()}function Qa(a){Cb&&!Db&&0!==a.which&&(Ea(a,a.charCode||a.keyCode,M(a)),Db=!0,ea(function(){Db=!1},1))}function ha(){Eb||(Eb=!0,yb&&A(pa,[I()]),ea(function(){Eb=!1},1))}function aa(){Ra||(Ra=!0,A(ca,[I()]))}function ia(){Ra&&(Ra=!1,A(xa,[I()]))}function Z(a){(!Ra||a&&!a.fromElement)&&aa()}function a(a){a&&!a.toElement&&ia()}function q(a){a=F(a);var b,c,e=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[G])E(a);else if(b=X(a,
"form"))for(b=b.elements,c=b.length;e<c;e++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[e].tagName)&&!b[e][G]&&E(b[e]);else E(a);A(Fa,[I(),a])}}function e(a){(a=F(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(E(a),A(Ga,[I(),a]))}function k(a){a=F(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className))&&a&&/^INPUT|SELECT|TEXTAREA$/.test(a.tagName)){var b=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;E(a);A(Ha,[I(),a,b])}}function v(a){a=F(a);
if(!ma(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var b=a.elements,c=0;c<b.length;c++)Mb(b[c])||E(b[c]);A(Oa,[I(),a],!0)}}function g(a){qa();if(a.touches&&a.touches.length){var b=F(a);if(b){E(b);for(var c=0;c<a.touches.length;c++)A(da,[I(),"touch",b,[a.touches[c].pageX,a.touches[c].pageY],0,0])}}}function l(a){clearTimeout(ib);ib=0;if(Ca.length){a={rn:Math.round(1E5*Math.random()),"wv-type":0,"cnt-class":p,"page-url":B().href,wmode:0,"wv-hit":h,"wv-part":Jb++,"wv-check":Ka(Ca),"browser-info":["z",
Fb,"i",jb].join(":")};for(var b=Ca,c=b.length,e=[],d=c-c%3,q,k=0;k<d;k+=3)q=(b[k]<<16)+(b[k+1]<<8)+b[k+2],L(e,ba[q>>18&63],ba[q>>12&63],ba[q>>6&63],ba[q&63]);switch(c-d){case 1:q=b[d]<<4;L(e,ba[q>>6&63],ba[q&63],"__");break;case 2:q=(b[d]<<10)+(b[d+1]<<2),L(e,ba[q>>12&63],ba[q>>6&63],ba[q&63],"_")}b={"wv-data":e.join("")};f.send("visor","webvisor",a,b);Ca.length=0}}var Ba=100,ec=200,dc=15E3,vb=20,J=50,V=10,D=1,S=2,P=3,oa=16,Y=4,r=5,bc=7,$b=9,ac=10,cc=11,Yb=12,C=13,Zb=14,Ta=15,Ua=17,wa=18,Va=19,Wa=
27,Xa=28,na=29,za=30,Aa=32,lb=33,mb=1,nb=2,ob=4,Sa=1,pb=2,Ia=4,Qb=8,rb=16,Rb=32,sb=64,Gb=2,Pb=1,Ob=2,tb=4,Hb=8,fb=16,Ib={A:1,ABBR:2,ACRONYM:3,ADDRESS:4,APPLET:5,AREA:6,B:7,BASE:8,BASEFONT:9,BDO:10,BIG:11,BLOCKQUOTE:12,BODY:13,BR:14,BUTTON:15,CAPTION:16,CENTER:17,CITE:18,CODE:19,COL:20,COLGROUP:21,DD:22,DEL:23,DFN:24,DIR:25,DIV:26,DL:27,DT:28,EM:29,FIELDSET:30,FONT:31,FORM:32,FRAME:33,FRAMESET:34,H1:35,H2:36,H3:37,H4:38,H5:39,H6:40,HEAD:41,HR:42,HTML:43,I:44,IFRAME:45,IMG:46,INPUT:47,INS:48,ISINDEX:49,
KBD:50,LABEL:51,LEGEND:52,LI:53,LINK:54,MAP:55,MENU:56,META:57,NOFRAMES:58,NOSCRIPT:59,OBJECT:60,OL:61,OPTGROUP:62,OPTION:63,P:64,PARAM:65,PRE:66,Q:67,S:68,SAMP:69,SCRIPT:70,SELECT:71,SMALL:72,SPAN:73,STRIKE:74,STRONG:75,STYLE:76,SUB:77,SUP:78,TABLE:79,TBODY:80,TD:81,TEXTAREA:82,TFOOT:83,TH:84,THEAD:85,TITLE:86,TR:87,TT:88,U:89,UL:90,VAR:91,NOINDEX:100},$=[],ub=0;K(0);var wb=0,hb=[],Sb,xb=1,Tb=0,zb=[0,0],Ub=0,Ab=[0,0],Bb={},Cb=!0,Db=!1,yb="",Eb=!1,Ra=!0,ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*-".split(""),
Ca=[],ib,Jb=1,Kb=R(),G="metrikaId_"+Math.random(),gb={},kb=":submit"+Math.random();if("MetrikaPlayer"!=d.name){y(c,"mousemove",fa);y(c,"click",U);y(c,"dblclick",U);y(c,"mousedown",U);y(c,"mouseup",Da);y(d,"scroll",qa);y(d,"beforeunload",ga);Vb||y(d,"unload",ga);y(d,"resize",z);y(c,"keydown",ra);y(c,"keypress",Qa);y(c,"copy",ha);y(c,"touchmove",g);y(c,"touchstart",g);c.attachEvent&&!d.opera?(y(c,"focusin",Z),y(c,"focusout",a)):(y(d,"focus",aa),y(d,"blur",ia),y(c,"blur",ia));c.addEventListener?(c.addEventListener("scroll",
Pa,!0),c.addEventListener("focus",q,!0),c.addEventListener("blur",e,!0),c.addEventListener("change",k,!0),c.addEventListener("submit",v,!0)):c.attachEvent&&(y(c,"focusin",q),y(c,"focusout",e),function(){for(var a=c.getElementsByTagName("form"),b=0;b<a.length;b++){for(var e=a[b].getElementsByTagName("*"),d=0;d<e.length;d++)/^INPUT|SELECT|TEXTAREA$/.test(e[d].tagName)&&y(e[d],"change",k);y(a[b],"submit",v)}}());(function(){var a=c.getElementsByTagName("form");if(a.length)for(var b=0;b<a.length;b++)a[b][kb]=
a[b].submit,a[b].submit=function(){v({target:this});return this[kb]()}})();"0:0"!=N.join(":")&&qa();z();var Wb=function(a,b){if(a){var e={"wv-type":1,"cnt-class":p,"page-url":B().href,"wv-hit":h,"browser-info":["z",Fb,"i",jb,"pct",b||""].join(":")};c.all&&(a=a.replace(/\r\n/g,"\n"));var d;d=a;d=d.replace(/\r\n/g,"\n");for(var q=[],k=String.fromCharCode,g=0,v=d.length;g<v;g++){var l=d.charCodeAt(g);128>l?q.push(k(l)):(127<l&&2048>l?q.push(k(l>>6|192)):(q.push(k(l>>12|224)),q.push(k(l>>6&63|128))),
q.push(k(l&63|128)))}d=q.join("");for(var q=[],S,r,Ba,l=0,x=d.length;l<x;)S=d.charCodeAt(l++),k=d.charCodeAt(l++),g=d.charCodeAt(l++),v=S>>2,S=(S&3)<<4|k>>4,r=(k&15)<<2|g>>6,Ba=g&63,isNaN(k)?r=Ba=64:isNaN(g)&&(Ba=64),q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(v)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(S)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(r)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(Ba));
d={"wv-data":q.join("")};f.sendMultipart("webvisor",e,d,3)}};x.uploadPage=function(a){if("function"==typeof d.toStaticHTML&&-1<d.toStaticHTML.toString().indexOf("NoScript"))return!1;var b=c.documentElement;if(b&&19E4<(""+b.innerHTML).length)return!1;var e=d.XMLHttpRequest?new d.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),q=(""+(c.characterSet||c.charset||"")).toLowerCase(),b="text/html"+(q?";charset="+q:"");if("html"==a)return a=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>",
"gi"),Wb(Xb().replace(a,""),b),!0;e&&(e.open("get",B().href,!0),e.onreadystatechange=function(){4==e.readyState&&Wb(e.responseText,e.getResponseHeader("content-type"))},e.overrideMimeType&&q&&e.overrideMimeType(b),e.send(null));return!0}}return{stop:function(){t(c,"mousemove",fa);t(c,"click",U);t(c,"dblclick",U);t(c,"mousedown",U);t(c,"mouseup",Da);t(d,"scroll",qa);t(d,"beforeunload",ga);t(d,"unload",ga);t(d,"resize",z);t(c,"keydown",ra);t(c,"keypress",Qa);t(c,"copy",ha);t(c,"touchmove",g);t(c,"touchstart",
g);t(c,"focusin",Z);t(c,"focusout",a);t(d,"focus",aa);t(d,"blur",ia);t(c,"blur",ia);c.removeEventListener?(c.removeEventListener("scroll",Pa,!0),c.removeEventListener("focus",q,!0),c.removeEventListener("blur",e,!0),c.removeEventListener("change",k,!0),c.removeEventListener("submit",v,!0)):c.detachEvent&&(t(c,"focusin",q),t(c,"focusout",e),function(){for(var a=c.getElementsByTagName("form"),b=0;b<a.length;b++){for(var e=a[b].getElementsByTagName("*"),d=0;d<e.length;d++)/^INPUT|SELECT|TEXTAREA$/.test(e[d].tagName)&&
t(e[d],"change",k);t(a[b],"submit",v)}}());(function(){for(var a=c.getElementsByTagName("form"),b=0;b<a.length;b++)a[b][kb]&&(a[b].submit=a[b][kb])})()},uploadPages:function(a,b){function e(){t(c,"DOMContentLoaded",e);t(d,"load",e);for(var q=a.split(/\n/),k=B().href,g=/regexp:/,f=0;f<q.length;f++){var l=q[f];if(l)if(g.test(l)){if(l=Lb(l.replace(g,"")),RegExp(l).test(k)){x.uploadPage(b);break}}else if(-1!==k.indexOf(l)){x.uploadPage(b);break}}}"complete"==c.readyState?e():(y(c,"DOMContentLoaded",e),
y(d,"load",e))}}}var Gb=!1,Nb="",Vb=-1===(""+d.navigator.userAgent).toLowerCase().search(/webkit/)&&-1!==(""+d.navigator.userAgent).toLowerCase().search(/gecko/),N=La(),O=[];d.Ya=d.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};var Hb=!1,M=B(),Fb,jb,ja=d.navigator,sa=d.screen,ta="https:"==M.protocol?"https:":"http:",Ib="$Rev: 1825 $".match(/(\d+)/)[1],ua="object"==typeof c.all,lb=64,va=ua?512:2048,mb=ua?512:2048,nb=ua?
100:400,Fa="noindex",Ga=50,ob=RegExp("\\.(3gp|7z|aac|ac3|acs|ai|avi|ape|apk|asf|bmp|bz2|cab|cdr|crc32|css|csv|cue|divx|dmg|djvu?|doc(x|m|b)?|emf|eps|exe|flac?|flv|iso|swf|gif|t?gz|jpe?g?|js|m3u8?|m4a|mp(3|4|e?g?)|m4v|md5|mkv|mov|msi|ods|og(g|m|v)|pdf|phps|png|ppt(x|m|b)?|psd|rar|rss|rtf|sea|sfv|sit|sha1|svg|tar|tif?f|torrent|ts|txt|vob|wave?|wma|wmv|wmf|webm|xls(x|m|b)?|xpi|g?zip)$","i"),Jb=H(),Sa="_ym_visorc",Ta,Ha,pb="//mc.yandex.ru/watch/",Kb="//mc.yandex.ru/clmap/";d.Ya.Metrika=function(b,p,u,
h){function f(a,b){b=b||256;if(!a)return"";a.length>b&&(a=a.substr(0,b));return(d.encodeURIComponent||d.escape)(a).replace(/\+/g,"%2B")}function x(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===da)return"";if(null===a)return"null";switch(a.constructor){case Boolean:return a.toString();case Number:return isFinite(a)?a.toString():"null";case String:return'"'+b(a)+'"';case Array:for(var c=[],d=0,f=a.length;d<f;d++)c[c.length]=x(a[d]);return"["+c.join(",")+"]";case Object:c=
"{";d=0;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];g!==da&&(c+=(d?",":"")+'"'+b(f)+'":'+x(g),d++)}return c+"}";default:return"null"}}function s(a,b){if(!a||!b)return!1;for(var c=[],d=0;d<b.length;d++)c.push(b[d].replace(/\^/g,"\\^").replace(/\$/g,"\\$").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\|/g,"\\|").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\?/g,"\\?").replace(/\*/g,"\\*").replace(/\+/g,"\\+").replace(/\{/g,"\\{").replace(/\}/g,"\\}"));return RegExp("\\.("+
c.join("|")+")$","i").test(a)}function ea(a){a=a.target||a.srcElement;if(!a)return!1;3==a.nodeType&&(a=a.parentNode);for(var b=a.nodeName.toString().toLowerCase();a.parentNode&&a.parentNode.nodeName&&("a"!=b&&"area"!=b||!a.href);)a=a.parentNode,b=a.nodeName.toString().toLowerCase();return a.href?a:!1}function y(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function t(a,b){function c(a){a=a.split(":");a=a[1]||"";a=a.replace(/^\/*/,"").replace(/^www\./,"");return a.split("/")[0]}
return a&&b?c(a)==c(b)?!0:!1:a||b?!1:!0}function K(a,b){var c=b.target,k=!1;if(!b.hostname)return!1;c&&"_self"!=c&&"_top"!=c&&"_parent"!=c||(k=!0);(c=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&d.Event&&(c=a.modifiers&d.Event.CONTROL_MASK||a.modifiers&d.Event.SHIFT_MASK||a.modifiers&d.Event.ALT_MASK);return k&&!c}function F(a,b,c,d,v){function g(a,b){l[l.length]=a;l[l.length]=b}v=v||{};c="undefined"!=typeof c?c:fa;var l=[];v.ar&&!v.onlyData&&(c=N(c),a=N(a));g("page-ref",f(c,va));g("page-url",f(a,
va));g("browser-info",I(b,v));Va()?g("ut",Fa):"undefined"!=typeof v.ut&&g("ut",f(""+v.ut,lb));d&&g("site-info",f(x(d),mb));v.saveRef&&(fa=c);a=Q(pb,l);Ja()||Ua(a,v.delay);return a}function O(a,q,e,k,v,g,l){function h(a,b){m[m.length]=a;m[m.length]=b}v=v||{};e="undefined"!=typeof e?e:fa;var m=[];v.ar&&!v.onlyData&&(e=N(e),a=N(a));if(!Ja()){var n="_ymjsp"+("--"==b?"":la()),s=c.createElement("script");d[n]=function(a){try{delete d[n]}catch(b){d[n]=da}l(a);s.parentNode&&s.parentNode.removeChild(s)};h("wmode",
5);h("callback",n);h("page-ref",f(e,va));h("page-url",f(a,va));a=I(q,v);g&&(a=["vc",g,a].join(":"));h("browser-info",a);Va()?h("ut",Fa):"undefined"!=typeof v.ut&&h("ut",f(""+v.ut,lb));k&&h("site-info",f(x(k),mb));v.saveRef&&(fa=e);k=Q(pb,m);s.type="text/javascript";s.src=k;v=c.getElementsByTagName("head")[0];v.insertBefore(s,v.firstChild);Xa(k)}}function Q(a,c){for(var e=["cnt-class",u].concat(c),d=[],f=0;f<e.length;f+=2){var g=e[f+1];g&&(d[d.length]=e[f]+"="+g)}return Da+a+b+"?"+d.join("&")}function N(a){var b=
B(),c=b.host,b=b.href;if(!a)return b;if(-1!=a.search(/^\w+:\/\//))return a;var d=a.charAt(0);if("?"==d)return d=b.search(/\?/),-1==d?b+a:b.substr(0,d)+a;if("#"==d)return d=b.search(/#/),-1==d?b+a:b.substr(0,d)+a;if("/"==d){if(d=b.search(c),-1!=d)return b.substr(0,d+c.length)+a}else return c=b.split("/"),c[c.length-1]=a,c.join("/");return a}function I(a,b){function e(a,b){a&&b&&(v[v.length]=[a,b].join(":"))}function k(a){e(a,b[a]?"1":"")}b=b||{};var v=[],g=-1*(new Date).getTimezoneOffset(),l=ca();
jb||(jb=l,Fb=g);e("j",ja.javaEnabled()?"1":"");sa&&e("s",sa.width+"x"+sa.height+"x"+(sa.colorDepth||sa.pixelDepth));null===ga&&(ga=X());e("f",ga);null===Ea&&(Ea=m());e("l",Ea||"");b.pa||e("w",ka()+"x"+wa());e("z",g);e("i",l);e("en",(""+(c.characterSet||c.charset||"")).toLowerCase());e("v",Ib);e("c",ja.cookieEnabled?"1":"");ua&&c.documentMode&&(null===ra&&(ra=Function("return /*@cc_on @_jscript_version @*/;")()),ra&&e("jv",ra));e("la",(ja&&(ja.language||ja.browserLanguage)||"").toLowerCase());e("ex",
"prerender"==c.webkitVisibilityState?"pre1":"");Z&&e("wh","1");l="ar ln dl ad nb pa".split(" ");for(g=0;g<l.length;g++)k(l[g]);l=["va","vt","sn","sa","he"];b.nb&&l.push("cl");for(g=0;g<l.length;g++){var h=l[g];e(h,b[h])}e("rn",la());e("hid",A);e("ds",za());n._firstPaint||(n._firstPaint=Aa(),e("fp",n._firstPaint));if(n._webvisor){d.name||(d.name=Math.round(65535*Math.random()));if(g=+d.name)0>g&&(g*=-1),g%=65535;e("wn",g||Ka(d.name));try{d.history&&e("hl",String(d.history.length))}catch(x){}}g="undefined"==
typeof a?(g=w())?f(g,nb):"":f(a,nb);e("t",g);return v.join(":")}function X(){var a=null,b=null,c,k=d.navigator;if("undefined"!=typeof k.plugins&&"object"==typeof k.plugins["Shockwave Flash"])a=k.plugins["Shockwave Flash"].description,!a||"undefined"!=typeof k.mimeTypes&&k.mimeTypes["application/x-shockwave-flash"]&&!k.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(b=a.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,"."));else if("undefined"!=typeof d.ActiveXObject)try{(c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&
(a=c.GetVariable("$version"))&&(b=a.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}catch(f){}return b}function w(){var a=c.title;"string"!=typeof a&&(a=(a=c.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function m(){var a=null;if(d.ActiveXObject)try{var b=new ActiveXObject("AgControl.AgControl"),c=function(a,b,c,d){for(;a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3]);)b[c]+=d;b[c]-=d},k=[1,0,0,0];c(b,k,0,1);c(b,k,1,1);c(b,k,2,1E4);c(b,k,2,1E3);c(b,k,2,100);c(b,
k,2,10);c(b,k,2,1);c(b,k,3,1);a=k.join(".")}catch(f){}else if(b=ja.plugins["Silverlight Plug-In"])a=b.description;return a}function ca(){for(var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",c=0;c<a.length;c++)b+=10>a[c]?"0"+a[c]:a[c];return b}function ka(){var a=-1;c.documentElement&&"CSS1Compat"==c.compatMode?a=c.documentElement.clientWidth:c.body&&(a=c.body.clientWidth);return a}function wa(){var a=-1;c.documentElement&&"CSS1Compat"==
c.compatMode?a=c.documentElement.clientHeight:c.body&&(a=c.body.clientHeight);return a}function na(){var a=d.performance||d.webkitPerformance,b=[];if(a=a&&a.timing){var c=a.navigationStart;if(c)for(b=[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,a.responseEnd-a.responseStart,a.fetchStart-c,a.redirectEnd-a.redirectStart,a.redirectCount],b.push(a.domInteractive&&a.domLoading?a.domInteractive-a.domLoading:null),b.push(a.domContentLoadedEventStart&&
a.domContentLoadedEventEnd?a.domContentLoadedEventEnd-a.domContentLoadedEventStart:null),b.push(a.domComplete?a.domComplete-c:null),b.push(a.loadEventStart?a.loadEventStart-c:null),b.push(a.loadEventStart&&a.loadEventEnd?a.loadEventEnd-a.loadEventStart:null),b.push(a.domContentLoadedEventStart?a.domContentLoadedEventStart-c:null),a=0;a<b.length;a++)c=b[a],null!==c&&(0>c||36E5<c)&&(b[a]=null)}return b}function za(){var a=[],b=n._lastPerformanceTiming,c=na();if(b)for(var d=0,f=b.length;d<f;d++)null===
c[d]?a.push(c[d]):a.push(b[d]===c[d]?"":c[d]);else a=c;n._lastPerformanceTiming=c;return a.join(",")}function Aa(){var a;if("object"==typeof d.chrome&&d.chrome.loadTimes){if(a=d.chrome.loadTimes(),a.requestTime&&a.firstPaintTime)return~~(1E3*(a.firstPaintTime-a.requestTime))}else if(d.performance&&d.performance.timing&&(a=d.performance.timing,a.navigationStart&&a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}function Ia(a){var b=c.referrer||"";if(RegExp("^https?://"+M.host+"/").test(b))return!1;
for(var d=a.patterns,k=0;k<d.length;k++)if(b.match(RegExp(d[k],"i"))){var f=a.params||[];if(f.length)for(var g=pa((RegExp.$1||"").replace(/\+/g,"%20")),l=0;l<f.length;l++){if(g==pa(f[l]))return!0}else return!0}return!1}function ya(a){var b=!1;if(a&&"string"!=typeof a&&a.length)for(var d=0;d<a.length;d++){var k=a[d].selector,f=a[d].text,g=k.charAt(0),k=k.slice(1);if("#"==g){if(g=c.getElementById(k))b=!0,g.innerHTML=f}else if("."==g){g=k;k=(k=void 0)||c;if(k.getElementsByClassName)g=k.getElementsByClassName(g);
else{for(var k=k.getElementsByTagName("*"),l=[],h=0;h<k.length;h++)ma(k[h],g)&&l.push(k[h]);g=l}for(k=0;k<g.length;k++)b=!0,g[k].innerHTML=f}}return b}function Ma(a,b){a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"");var c="";if(a)for(var d=a.split("&"),f=0;f<d.length;f++){var g=d[f].split("=");"_openstat"==g[0]&&(c=g[1])}b&&0==b.indexOf("_openstat=")&&(c=b.slice(10));c&&(c=-1<c.indexOf(";")?pa(c):Za(c.replace(/[-*_]/g,function(a){return{"*":"+","-":"/",_:"="}[a]||a})));return c&&(c=c.split(";"),
4==c.length)?{service:c[0],campaign:c[1],ad:c[2],source:c[3]}:null}function pa(a){try{return decodeURIComponent(a)}catch(b){return""}}function Za(a){for(;a.length%4;)a+="=";var b,c,d,f,g,l=0,h="";do{b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));
if(0>b||0>c||0>f||0>g)return null;d=b<<18|c<<12|f<<6|g;b=d>>16&255;c=d>>8&255;d&=255;h=64==f?h+String.fromCharCode(b):64==g?h+String.fromCharCode(b,c):h+String.fromCharCode(b,c,d)}while(l<a.length);a=h;f="";for(l=c1=c2=g=0;g<a.length;)l=a.charCodeAt(g),128>l?(f+=String.fromCharCode(l),g++):191<l&&224>l?(c2=a.charCodeAt(g+1),f+=String.fromCharCode((l&31)<<6|c2&63),g+=2):(c2=a.charCodeAt(g+1),c3=a.charCodeAt(g+2),f+=String.fromCharCode((l&15)<<12|(c2&63)<<6|c3&63),g+=3);return f}function $a(){var a=
!1;if(Ya._metrika.hitParam[E]){if(1!=u||Ya._metrika.counters[E])return!1;a=!0}Ya._metrika.counters[E]=n;Ya._metrika.hitParam[E]=1;n._webvisor=!h&&(z&&z.webvisor||Gb||Hb);n._directCampaign=z&&z.directCampaign;z&&z.trackHash&&n.trackHash(!0);if(!h&&!a){n.replacePhones();var f=xa(Sa);"b"!=f&&"w"!=f&&(f="");rb()||(f="b");Ta=H();O(M.href,w(),c.referrer,p,{ut:U,he:z?~~z.httpError:0,ad:1==u&&d.Ya&&d.Ya.Direct?!0:!1,saveRef:!0},f,function(a){Ha||(Ha=H());a=a||{};var k=a.webvisor||{},h=[];if(ha){var g=+k.recp;
if(!isFinite(g)||0>g||1<g)f="w";f||(f=A%1E4/1E4<g?"w":"b");W(Sa,f,30);"w"==f?(L(h,"visor"),g=k.arch_type,(k=k.urls)&&g&&ha.uploadPages(k,g)):ha.stop()}Qa.init(h);g=a.mp2;h=b;a=n;k="."+M.host.replace(/^www\./,"");W("_ym_mp2_substs_"+h,"",-1,k);if(g){var l="_ym_mp2_track_"+h;b:{var m=g.conditions;if(m&&m.length)for(var s=0;s<m.length;s++){var u;if("ref"==m[s].type)u=Ia(m[s]);else if(u="adv"==m[s].type){var p=m[s],J=Ya._metrika.counter._directCampaign,V=p.ServiceNamePattern,D=p.RefererPattern;u=J?p.direct_orders:
p.direct_camp;var S=c.referrer,P=M.search,P=P&&P.replace(/^\?/,""),oa={};if(P)for(var P=P.split("&"),Y=0;Y<P.length;Y++){var r=P[Y].split("=");oa[pa(r[0])]=pa(r[1])}for(var P=Ma(M.search,M.hash),Y={},r=["source","medium","campaign","term","content"],y=0;y<r.length;y++)oa["utm_"+r[y]]&&(Y[r[y]]=oa["utm_"+r[y]]);y=J?"direct.yandex.ru":P&&P.service||Y.source;r=!1;if(!r&&V&&V.length)for(var t=0;t<V.length;t++)if(RegExp(V[t],"i").test(y)){r=!0;break}if(!r&&D&&D.length)for(V=0;V<D.length;V++)if(RegExp(D[V],
"i").test(S)){r=!0;break}!r&&p.google_adwords&&oa.gclid&&(r=!0);!r&&p.yandex_direct&&oa.yclid&&(r=!0);if(r&&u&&u.length&&(r=!1,p=J||P&&P.campaign||Y&&Y.campaign))for(J=0;J<u.length;J++)if(u[J]==p){r=!0;break}u=r}if(u){m[s].track_id&&W(l,m[s].track_id,43200,k);break b}}}(l=xa(l))&&g.substs&&(g=g.substs[l])&&(W("_ym_mp2_substs_"+h,x(g),0,k),h=ya(g),a.params("__ym",h?"mp_trackid":"mp_trackid_bad",l))}R(d,"load",n.replacePhones);n._inited=!0})}ab();z&&(z.enableAll?n.enableAll():(z.clickmap&&n.clickmap(z.clickmap),
z.trackLinks&&n.trackLinks(z.trackLinks),z.accurateTrackBounce&&n.accurateTrackBounce(z.accurateTrackBounce),z.ad&&ad()));n._webvisor&&(ha=new sb(b,u,z,A,Qa,n))}function La(a){var b={delay:Ga};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Ga:a.delay;break;case "boolean":b.on=a;break;default:return}n._trackLinks=b}function ab(){La(!1);R(c,"click",function(a){n._trackLinks.on&&bb(a)})}function bb(a){var b=ea(a);if(b){var c=!1,d=""+b.href,f=d?d.split(/\?/)[0]:
"",g=function(a){var c=Lb(b.innerHTML?b.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");return F(d,d==c?"":c,B().href,null,a)},l=function(){return K(a,b)?n._trackLinks.delay:0};if(ob.test(f)||ob.test(d)||s(d,aa)||s(f,aa))c=!0;var h=ma(b,"ym-disable-tracklink"),f=ma(b,"ym-external-link");h||(h={ln:!0,dl:c},f?(h.delay=l(),g(h)):y(B().hostname,b.hostname)?c&&(h.ln=!1,h.delay=l(),g(h)):d&&-1!=d.search(/^ *(data|javascript):/i)||(h.ut=Fa,h.delay=l(),g(h)))}}function cb(a,b){function e(){if(!u){n&&
clearTimeout(n);var c=b,d;d=m?x:x+H()-s;c-=d;0>c&&(c=0);n=setTimeout(function(){u=!0;h(!1);a()},c)}}function f(){l||(g=!0,m=!1,l=!0,e())}function h(a){for(var b=0;b<p.length;b+=3)a?R(p[b],p[b+1],p[b+2]):Na(p[b],p[b+1],p[b+2])}var g=!1,l=!1,m=!0,x=0,s=H(),n=null,u=!1,p=[d,"blur",function(){m=g=l=!0;x+=H()-s;s=H();e()},d,"focus",function(){g||l||(x=0);s=H();g=l=!0;m=!1;e()},c,"click",f,c,"mousemove",f,c,"keydown",f,c,"scroll",f];h(!0);e()}function db(a){function b(){var a=B().hash.split("#")[1];if("undefined"==
typeof a)return!1;var c=a.indexOf("?");0<c&&(a=a.substring(0,c));return a}var c=b();(function v(){var d=b();d!==c&&(a(),c=d);ia=setTimeout(v,200)})()}function Oa(a){Pa=fa=qa;F(B().href,w(),Pa,null,{ut:U,ad:1==u&&d.Ya&&d.Ya.Direct?!0:!1,wh:!0,saveRef:!0});qa=B().href}function eb(a){function b(){var a=c.documentElement;return Math.max(a.scrollWidth,c.body.scrollWidth,a.clientWidth)}function e(a){function b(a){a=a.getBoundingClientRect();var e=c.body,f=c.documentElement,g=a.left+(d.pageXOffset||f.scrollLeft||
e.scrollLeft)-(f.clientLeft||e.clientLeft||0);return{top:Math.round(a.top+(d.pageYOffset||f.scrollTop||e.scrollTop)-(f.clientTop||e.clientTop||0)),left:Math.round(g)}}return a.getBoundingClientRect?b(a):function(a){for(var b=0,c=0;a;)b+=parseInt(a.offsetTop),c+=parseInt(a.offsetLeft),a=a.offsetParent;return{top:b,left:c}}(a)}function k(a){return a.toString().toUpperCase()}function h(a){if(null==a.pageX&&null!=a.clientX){var b=c.documentElement,d=c.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||
0)-(b.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b.clientTop||0)}return{x:a.pageX,y:a.pageY}}function g(a){for(var b=k(a.nodeName);a.parentNode&&"BODY"!=b&&"HTML"!=b;){if("A"==b||"INPUT"==b||"TEXTAREA"==b)return!0;a=a.parentNode;b=a.nodeName}return!1}for(var l=this,m=0,x=null,s="A B BIG BODY BUTTON DD DIV DL DT EM FIELDSET FORM H1 H2 H3 H4 H5 H6 HR I IMG INPUT LI OL P PRE SELECT SMALL SPAN STRONG SUB SUP TABLE TBODY TD TEXTAREA TFOOT TH THEAD TR U UL ABBR AREA BLOCKQUOTE CAPTION CENTER CITE CODE CANVAS DFN EMBED FONT INS KBD LEGEND LABEL MAP OBJECT Q S SAMP STRIKE TT ARTICLE AUDIO ASIDE FOOTER HEADER MENU METER NAV PROGRESS SECTION TIME VIDEO NOINDEX NOBR".split(" "),
n=59,p=String.fromCharCode,u={},t=0;t<s.length;t++)u[s[t]]=p(n),p(n),n++;this.handler=function(a){var s=c.getElementsByTagName("body")[0];if(!d.ymDisabledClickmap&&!ma(s,"ym-clickmap-ignore")){if(l._prefs.hasQuota){if(!l._prefs.quota)return;l._prefs.quota--}var n=a.target||a.srcElement;3==n.nodeType&&(n=n.parentNode);var s=k(n.nodeName),p=h(a),r;a.which||a.button===da||(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);r=a.which;if(r=2!=r&&3!=r||"A"==s)if(r=n.offsetHeight,r=!(0===n.offsetWidth&&0===
r||n.style&&"none"===n.style.display)){b:{for(r=n;r.parentNode;){if(ma(r,"ym-clickmap-ignore")){r=!0;break b}r=r.parentNode}r=!1}if(r=!r){b:{r=l._prefs.ignoreTags;for(var t=0;t<r.length;t++)if(k(r[t])==k(s)){r=!0;break b}r=!1}r=!r&&l._prefs.filter(n,s)}}if(r){s=H();n={dom:n,x:p.x,y:p.y,time:s};if((p=50<s-m)&&!(p=!l._prefs.ignoreSameClicks)){if(p=x){r=Math.abs(p.x-n.x);var t=Math.abs(p.y-n.y),J=n.time-p.time,p=p.dom==n.dom&&2>r&&2>t&&1E3>J?!0:!1}else p=!1;p=!p}if(p&&!Ja()){if(p=a.target||a.srcElement){3==
p.nodeType&&(p=p.parentNode);for(r=k(p.nodeName);p.parentNode&&p.parentNode.nodeName&&("A"!=r&&"AREA"!=r||!p.href);)p=p.parentNode,r=k(p.nodeName);r=p.href?p:!1}else r=!1;p=!1;r&&K(a,r)&&!y(B().hostname,r.hostname)&&(p=!0);r=Ua;var J=h(a),t=J.x,J=J.y,w=a.target||a.srcElement,D=l._prefs,z=e(w),C="";a=B().href;switch(D.mode){case "fixed":C="0";g(w)&&(C+="u");break;case "centered":C="1";z=Math.floor(b()/2);t=t>z?t-z+32768:t;g(w)&&(C+="u");break;default:C=k(w.nodeName);C="BODY"==C||"HTML"==C?b():w.offsetWidth;
D=k(w.nodeName);"BODY"==D||"HTML"==D?(D=c.documentElement,D=Math.max(D.scrollHeight,c.body.scrollHeight,D.clientHeight)):D=w.offsetHeight;C||(C=1);D||(D=1);t=Math.floor(65535*(t-z.left)/C);J=Math.floor(65535*(J-z.top)/D);for(z="";w.parentNode&&"BODY"!=k(w.nodeName)&&"HTML"!=k(w.nodeName);){z+=u[w.nodeName]||"*";b:{for(var C=w.parentNode,A=D=0;A<C.childNodes.length;A++)if(w.nodeName==C.childNodes[A].nodeName){if(w==C.childNodes[A]){C=D;break b}D++}C=0}z+=C||"";w=w.parentNode}C=f(z,128)}t=["rn",la(),
"x",t,"y",J,"t",Math.floor(Math.floor(H()-Jb)/100),"p",C];Z?t=t.concat("wh","1"):a=a?a.replace(/\#.*$/,""):a;"function"==typeof l._prefs.urlFilter&&(a=l._prefs.urlFilter(a));a=Q(Kb,["page-url",f(a,va),"pointer-click",t.join(":")]);r(a,p?l._prefs.delay:0)}m=s;x=n}}};this.setPrefs=function(a){function b(a,c){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:Ga,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||
"",delay:"undefined"==typeof a.delay?Ga:a.delay,quota:a.quota||0,hasQuota:!!a.quota,ignoreSameClicks:"undefined"==typeof a.ignoreSameClicks?!0:!1,urlFilter:a.urlFilter}};this.updateStatus=function(a){switch(typeof a){case "undefined":this.start(!0);break;case "boolean":a?this.start(a):this.stop();break;case "object":this.start(a)}};this._start=!1;this.start=function(a){this.setPrefs(a);this._start||R(c,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&Na(c,"click",this.handler,
!0);this._start=!1};this.start(a)}var n=this,A=Math.round(1073741824*Math.random()),E,U="",Da=ta,fa=M.href,qa=M.href,Pa="",z;Ya._metrika.counter||(Ya._metrika.counter=n);"object"==typeof b&&(z=b,h=b.defer,U=b.ut,u=b.type,p=b.params,Da=b.onlyHttps?"https:":ta,b=b.id);b=b||0;u=u||0;E=b+":"+u;if(Ya._metrika.counters[E])return Ya._metrika.counters[E];var ga=null,Ea=null,ra=null;d.postMessage&&d.addEventListener&&R(d,"message",function(a){if(a.data)try{var b="string"==typeof a.data?JSON.parse(a.data):
a.data;"object"==typeof b&&"ym_counters"==b.name&&a.source.postMessage({name:"ym_counters",data:d.Ya.Metrika.counters()},"*")}catch(c){}},!1);var Qa=new function(a,b,e){function f(a,b,c){if(p)h(p,g(a,b,0),c,"application/x-www-form-urlencoded");else{if("XMLHttpRequest"in d){var e=new XMLHttpRequest;if("withCredentials"in e){var k=c?"POST":"GET";a=g(a,b,"POST"==k?1:0);e.open(k,a,!0);e.withCredentials=!0;"POST"==k&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");e.send("POST"==
k?qb(c):null);return}}for(k in c)c.hasOwnProperty(k)&&(b[k]=c[k]);(new Image).src=g(a,b,0)}}function h(a,b,c,d){var e="ifr"+Math.round(1E10*Math.random()),f=a.createElement("div");f.style.position="absolute";f.style.left="-99999px";f.style.top="-99999px";b=['<iframe name="',e,'"></iframe>','<form action="',b,'" method="post" target="',e,'" enctype="',d,'">'];for(var g in c)c.hasOwnProperty(g)&&L(b,'<textarea name="',g,'"></textarea>');L(b,"</form>");f.innerHTML=b.join("");a.body.appendChild(f);g=
f.getElementsByTagName("form")[0];for(var k in c)c.hasOwnProperty(k)&&(g[k].value=c[k]);g.submit();setTimeout(function(){a.body.removeChild(f)},1E4)}function g(c,d,f){d["browser-info"]=["ct",f,d["browser-info"]].join(":");return a+"//"+b+"/"+c+"/"+e+"?"+qb(d)}function l(){if(d.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("<html><body></body></html>");a.close();return a}return null}try{var p=l()}catch(n){}var s="",m=[];return{send:function(a,b,c,d){a?s?-1<s.indexOf("|"+a+"|")&&
f(b,c,d):L(m,arguments):f(b,c,d)},sendMultipart:function(a,b,d,e){h(p||c,g(a,b,e),d,"multipart/form-data")},init:function(a){s="|"+a.join("|")+"|";for(a=0;a<m.length;a++)-1<s.indexOf("|"+m[a][0]+"|")&&f(m[a][1],m[a][2],m[a][3]);m.length=0}}}(Da,"mc.yandex.ru",b),ha;n.replacePhones=function(){try{var a=xa("_ym_mp2_substs_"+b);if(a){var c=(new Function("return "+a))();c&&ya(c)}}catch(d){}};n.reachGoal=function(a,b,d){var f=a?"goal://"+B().hostname+"/"+a:B().href,h=w(),g=a?B().href:c.referrer;"undefined"==
typeof d&&(d=a?100:0);F(f,h,g,b,{ar:!0,delay:d});return!0};n.trackLinks=La;n.hit=function(a,b,c,d,f){a&&F(a,b,c,d,{ut:f,ar:!0,saveRef:!0})};n.params=function(a){if(a){var b=arguments.length;if(1<b){for(var c={},d=c,f=0;f<b-1;f++){var g=""+arguments[f];d[g]={};f<b-2&&(d=d[g])}d[g]=arguments[b-1];a=c}F(B().href,"","",a,{ar:!0,pa:!0,onlyData:!0})}};n.file=function(a,b,c,d){a&&F(a,"",B().href,d,{ar:!0,ln:!0,dl:!0})};n.extLink=function(a,b,c,d){a&&F(a,"",B().href,d,{ar:!0,ln:!0,ut:Fa})};n.notBounce=function(){var a=
0;Ta&&Ha&&(a=Ha-Ta);F(B().href,"","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})};var aa=[];n.addFileExtension=function(a){"string"==typeof a?aa.push(a):aa=aa.concat(a)};n.clickmap=function(a){n._clickmap?n._clickmap.updateStatus(a):n._clickmap=new eb(a)};n.accurateTrackBounce=function(a){var b=function(){n.notBounce()};n._isAccurateTrackBounce||(n._isAccurateTrackBounce=!0,t(c.referrer,B().href)||("number"!=typeof a&&(a=15E3),ua?setTimeout(b,a):cb(b,a)))};var ia=null,Z=!1;n.trackHash=function(a){!1===a?
Z&&("onhashchange"in d?Na(d,"hashchange",Oa):clearInterval(ia),Z=!1):Z||("onhashchange"in d?R(d,"hashchange",Oa):db(Oa),Z=!0);n._trackHash=Z};n.video=function(a,b,c,d){var f=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,h=f.length;g<h;g+=1)if(a===f[g]){f=g;break a}f=-1}-1!==f&&F(c,d||"","",null,{ar:!0,va:a,vt:~~b})}};n.social=function(a,b,c){a&&b&&F(c||B().href,"","",null,{ar:!0,sn:f(a,64),sa:f(b,64)})};n.enableAll=function(){n.trackLinks(!0);n.clickmap(!0);n.accurateTrackBounce()};n.pause=
Wa;n.uploadPage=function(){};n._performanceTiming=na;b&&$a()};d.Ya.Metrika.counters=function(){var b=[];Ia(d.Ya._metrika.counters,function(c,u){var h=u.split(":");b.push({id:+h[0],type:+h[1],accurateTrackBounce:c._isAccurateTrackBounce,clickmap:c._clickmap&&c._clickmap._start,oldCode:!!d.ya_cid,trackHash:!!c._trackHash,trackLinks:c._trackLinks&&c._trackLinks.on,webvisor:!!c._webvisor})});return b};var Ua=function(b,c){var d=new Image;wa.add(b,c);d.onload=function(){wa.deleteHit(b)};d.src=b;Xa(b)},
wa=function(){var b=d.JSON,c=null;try{c=d.localStorage}catch(u){}var h={_buffer:{},has:function(){return c&&b&&"object"==typeof c&&"object"==typeof b},set:function(d,h){this._buffer[d]=h;if(this.has())try{!h||h&&ka(h)&&!h.length?this.remove(d):c.setItem(d,b.stringify(h))}catch(s){}},get:function(d){var h;if(this.has())try{if(h=c.getItem(d))return this._buffer[d]=b.parse(h),this._buffer[d]}catch(s){}else return this._buffer[d]||null;return null},remove:function(b){if(this.has())try{c.removeItem(b)}catch(d){}this._buffer[b]=
null}};return{init:function(){this.send();this._events()},_events:function(){var b=this,c=function(){b._wasEnd||(b._wasEnd=!0,b._onEnd())};R(d,"beforeunload",c);Vb||R(d,"unload",c)},_onEnd:function(){var b=[],c=0;this._update(b);for(var d=0;d<b.length;d++)b[d].delay>c&&(c=b[d].delay);c&&Wa(c);h.set("_yandexMetrikaDefer",b)},get:function(){return h.get("_yandexMetrikaDefer")},add:function(b,c){var d=[{url:b,delay:c,time:H()}];this._update(d);h.set("_yandexMetrikaDefer",d)},deleteHit:function(b){var c=
[];this._update(c,b);h.set("_yandexMetrikaDefer",c)},_update:function(b,c){var d=this.get(),h=H();if(d&&ka(d)&&d.length)for(var p=0;p<d.length;p++){var t=d[p];t.url&&t.url!=c&&t.time>h-4E3&&b.push(t)}return b},send:function(){var b=this.get(),c=H();if(b){if(ka(b)&&b.length)for(var d=0;d<b.length&&10>d;d++){var h=b[d];h&&h.url&&h.time>c-36E5&&this._isCorrectUrl(h.url)&&Ua(h.url)}this.clear()}},_isCorrectUrl:function(b){return 0===b.replace(/^https?:/,"").indexOf("//mc.yandex.ru/")},clear:function(){h.remove("_yandexMetrikaDefer")}}}();
wa.init();d.ya_cid&&new Ya.Metrika(d.ya_cid,d.ya_params,d.ya_class);d.ya_cid&&!d.ya_hit&&(d.ya_hit=function(b,c){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(b,c)});var K=d.yandex_metrika_callback,Q=d.yandex_metrika_callbacks;"function"==typeof K&&K();if("object"==typeof Q)for(K=0;K<Q.length;K++){var ca=Q[K];ca&&(Q[K]=null,ca())}na("yandex_metrika_callback");na("yandex_metrika_callbacks");Q=["link","click","scroll","res"];for(K=0;K<Q.length;K++)if(ca=Q[K]+"map",-1!=M.href.search("ym_playback="+
ca)){za(ta+"//metrika.yandex.ru/js/"+ca+"/_loader.js");break}d.Ya.Metrika.informer=function(b){var c=!!Ya.Metrika._informer;Ya.Metrika._informer=b;c||za(ta+"//mc.yandex.ru/metrika/informer.js")};"complete"==c.readyState?Aa():R(d,"load",Aa);(function(){var b=function(){var b=c.getElementsByTagName("body")[0],d=c.createElement("iframe");d.src="http://awaps.yandex.ru/0/2153/0.htm?ad=165746&pl=93829&rnd="+la();d.setAttribute("style","position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden");
b.appendChild(d);setTimeout(function(){b.removeChild(d)},1E4)},p=function(){d.removeEventListener("load",p,!1);b()},u=d.performance;la(200)||Ya._metrika.isAd||(Ya._metrika.isAd=!0,"http:"==ta&&"object"==typeof u&&d.addEventListener&&(u.timing&&u.timing.loadEventStart?b():d.addEventListener("load",p,!1)))})()})(this,this.document);
