(function(e,c,la){function M(a,b){return function(){try{return a.apply(this,arguments)}catch(g){ga(g,b)}}}function ga(a,b){if(0.01>Math.random()){var g=["cp: "+b,a.name+": "+a.message,"debug: "+Ga,"code: "+$a,"stack: "+a.stack],u=new Image,d,g={"cnt-class":100,errmsg:g.join("; ").replace(/\r?\n/g,"\\n")},c=[];for(d in g)g.hasOwnProperty(d)&&(c[c.length]=d+"="+encodeURIComponent(g[d]).replace(/\+/g,"%2B"));d=c.join("&");u.src="//an.yandex.ru/jserr/101500?"+d}}function N(a,b,g){return e.setTimeout(M(a,
g||"setTimeout"),b)}function O(a){for(var b=1,g=a.length;b<arguments.length;b++)a[g++]=arguments[b];return a.length}function ha(a){return"[object Array]"==Object.prototype.toString.call(a)}function Ha(a,b,g){var u,d,c=0;for(u in a)if(a.hasOwnProperty(u)&&(d=g?b.call(g,a[u],u,a,c):b(a[u],u,a,c),c++,!1===d))break;return this}function B(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),g=b.length,c=g;c--;)a[b[c]]="";try{for(var d=e.location,c=g;c--;){var C=b[c];a[C]=
""+d[C]}}catch(h){A&&(a=A)}return a}function vb(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function J(){return+new Date}function ta(a){return Math.floor(Math.random()*("number"==typeof a?a:1073741824))}function Lb(){var a=c.documentElement,b=c.doctype,g=a.attributes,u="",d="",e="",d=a.outerHTML;if(!d){for(d=0;d<g.length;d++){var h=g[d];h&&(u+=" "+h.name+'="'+(h.value||"")+'"')}d="<html"+u+">"+a.innerHTML+"</html>"}b&&(e="<!DOCTYPE "+b.name+(b.publicId?' PUBLIC "'+b.publicId+'"':"")+
(b.systemId?' "'+b.systemId+'"':"")+">\n");return e+d}function ab(a){for(var b=a.length,g=0,c=255,d=255;b;){var e=21<b?21:b,b=b-e;do{var h="string"==typeof a?a.charCodeAt(g):a[g];g++;if(255<h)var m=h>>8,h=h&255,h=h^m;c+=h;d+=c}while(--e);c=(c&255)+(c>>8);d=(d&255)+(d>>8)}a=(c&255)+(c>>8)<<8|(d&255)+(d>>8);return 65535==a?0:a}function gb(a){for(var b=J(),g=1;0<g;g++)if(0==g%1E3){var c=J();if(b>c)break;if(c-b>a)break}}function Ia(a){return-1!==(""+e.navigator.userAgent).toLowerCase().search(a)}function ua(a,
b,g,u){/[^a-z0-9.-]/.test(u)&&(u=null);a=a+"="+encodeURIComponent(b);g&&(b=new Date,b.setTime(b.getTime()+6E4*g),a+=";expires="+b.toGMTString());u&&(a+=";domain="+u);c.cookie=a+";path=/"}function Ja(a){return c.cookie.match(RegExp("(?:^|;\\s*)"+a+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null}function Mb(){ua("_metrika_enabled","1",60);var a=!!Ja("_metrika_enabled");ua("_metrika_enabled","",-1,void 0);return a}function hb(){var a=c.documentElement;return"CSS1Compat"==c.compatMode?a:c.body||a}function wb(){var a=
hb();a.__lookupGetter__&&a.__lookupGetter__("clientHeight");return[a.clientWidth,a.clientHeight]}function xb(){var a=hb(),b=wb();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]}function yb(){return[e.pageXOffset||c.documentElement&&c.documentElement.scrollLeft||c.body&&c.body.scrollLeft||0,e.pageYOffset||c.documentElement&&c.documentElement.scrollTop||c.body&&c.body.scrollTop||0]}function zb(a){if(!a.ownerDocument||"PARAM"==a.tagName||a==c.body||a==c.documentElement)return[0,0];
if(a.getBoundingClientRect)return a=a.getBoundingClientRect(),[Math.round(a.left+S[0]),Math.round(a.top+S[1])];for(var b=0,g=0;a;)b+=a.offsetLeft,g+=a.offsetTop,a=a.offsetParent;return[b,g]}function W(a,b){return a==c.documentElement?null:b?a.tagName.toLowerCase()===b?a:W(a.parentNode,b):a==c.body?c.documentElement:a.parentNode}function Ab(a,b){var g=[];if(a){var c=a.childNodes;if(c)for(var d=0,e=c.length;d<e;d++){var h=c[d];"INPUT"==h.nodeName&&h.type&&"hidden"==h.type.toLocaleLowerCase()||b&&h.nodeName!=
b||O(g,h)}}return g}function ib(a){var b=zb(a);a=a==c.body||a==c.documentElement?xb():[a.offsetWidth,a.offsetHeight];return[b[0],b[1],a[0],a[1]]}function Bb(a){var b="";a=a.childNodes;for(var g=0,c=a.length;g<c;g++)a[g]&&3==a[g].nodeType&&(b+=a[g].nodeValue);return ab(b.replace(/[\u0000-\u0020]+/g,""))}function Cb(a){var b="",g="width height align title alt name".split(" ");"IMG"==a.tagName&&(b+=a.src.toLowerCase());"A"==a.tagName&&(b+=a.href.toLowerCase());for(var b=b+String(a.className||"").toLowerCase(),
c=0;c<g.length;c++)a.getAttribute&&(b+=String(a.getAttribute(g[c])||"").toLowerCase());return ab(b.replace(/[\u0000-\u0020]+/g,""))}function Db(a){for(var b=c.getElementsByTagName("form"),g=0,e=b.length;g<e;g++)if(b[g]==a)return g;return-1}function ma(a,b){return RegExp("(?:^|\\s)"+b+"(?:\\s|$)").test(a.className)}function Eb(a){return"INPUT"==a.nodeName&&"submit"!=a.type&&"image"!=a.type&&"hidden"!=a.type?"radio"==a.type||"checkbox"==a.type?!a.checked:!a.value:"TEXTAREA"==a.nodeName?!a.value:"SELECT"==
a.nodeName?0>a.selectedIndex:!0}function Fb(a,b){b=b||c;for(var g=b.getElementsByTagName("*"),e=[],d=0;d<g.length;d++)ma(g[d],a)&&e.push(g[d]);return e}function T(a,b,g,c){X[X.length]=[g,g];a.addEventListener?a.addEventListener(b,g,!!c):a.attachEvent&&a.attachEvent("on"+b,g)}function Ka(a,b,g,c){for(var d=0;d<X.length;d++)if(X[d]&&X[d][0]==g){var e=X[d][1];delete X[d];break}e&&(a.removeEventListener?a.removeEventListener(b,e,!!c):a.detachEvent&&a.detachEvent("on"+b,e))}function na(a){try{delete e[a]}catch(b){e[a]=
la}}function va(a){var b=c.createElement("script");b.type="text/javascript";b.async=!0;b.src=a;try{var g=c.getElementsByTagName("html")[0];c.getElementsByTagName("head")[0]||g.appendChild(c.createElement("head"));var e=c.getElementsByTagName("head")[0];e.insertBefore(b,e.firstChild)}catch(d){}}function oa(){if(top!=e&&parent==top&&e.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var a=c.createElement("div");a.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';
var b=a.firstChild;N(function(){(c.body||c.documentElement).appendChild(b);try{var a=b.contentWindow.document}catch(u){}if(a){var d=Math.random();e[d]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var e=JSON.parse(c.data)}catch(u){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&e&&"script"==e.name&&e.data){c=g.getElementsByTagName("head")[0];var m=g.createElement("base");m.href=e.data;c.appendChild(m);m=g.createElement("script");m.src=
e.data;c.appendChild(m);-1<d.userAgent.indexOf("Firefox/3.6.")&&b.removeEventListener("message",a.onmessage,!1);a.onmessage=null}},-1<d.userAgent.indexOf("Firefox/3.6.")&&b.addEventListener("message",a.onmessage,!1),c.postMessage('{"name":"ping"}',"*"))}catch(e){}};a.open();a.write('<!doctype html><html><head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=edge" /></head><body><script type="text/javascript">eval("(" + Function.prototype.toString.call(parent['+d+']) + ")")(window, parent, top, document, navigator);\x3c/script></body></html>');
a.close()}},500)}}function Nb(a,b,g,u,d,C){function h(a,f,b){var k=M(function(a){return b(a||e.event)},f);aa[aa.length]=[a,f,b,k];a.addEventListener?a.addEventListener(f,k,!0):a.attachEvent&&a.attachEvent("on"+f,k)}function m(a,f,b){for(var k=0;k<aa.length;k++)if(aa[k]&&aa[k][0]==a&&aa[k][1]==f&&aa[k][2]==b){var c=aa[k][3];delete aa[k];break}c&&(a.removeEventListener?a.removeEventListener(f,c,!0):a.detachEvent&&a.detachEvent("on"+f,c))}function l(a){var f=hb();return[a.pageX||a.clientX+S[0]-(f.clientLeft||
0)||0,a.pageY||a.clientY+S[1]-(f.clientTop||0)||0]}function p(a){return a.target||a.srcElement}function J(a){return(a.shiftKey?Za:0)|(a.ctrlKey?jb:0)|(a.altKey?Wa:0)|(a.metaKey?Ga:0)|(a.ctrlKey||a.altKey?bb:0)}function G(a){var f=(new Date).getTime();a&&f<a&&(kb+=a-f+lb);N(function(){G(f)},lb,"timeCorrector")}function K(){var a=(new Date).getTime()+kb;a<mb&&(a=mb+lb/2);return mb=a}function w(){return Math.round((K()-gb)/Ob)}function A(a,f){f=Math.max(0,Math.min(f,65535));O(a,f>>8,f&255)}function t(a,
f){O(a,f&255)}function r(a,f){for(f=Math.max(0,f|0);127<f;)O(a,f&127|128),f>>=7;O(a,f)}function L(a,f){255<f.length&&(f=f.substr(0,255));O(a,f.length);for(var b=0;b<f.length;b++)A(a,f.charCodeAt(b))}function T(a,f){r(a,f.length);for(var b=0;b<f.length;b++)r(a,f.charCodeAt(b))}function R(a,f,b,k,c,g){for(;b&&(!b.offsetWidth||!b.offsetHeight);)b=W(b);if(!b)return null;var s=b[H];if(!s||0>s)return null;var d={mousemove:Pb,click:ra,dblclick:Ua,mousedown:Y,mouseup:Ka,touch:Qb}[f];if(!d)return null;var q=
zb(b);b=[];t(b,d);r(b,a);r(b,s);r(b,Math.max(0,k[0]-q[0]));r(b,Math.max(0,k[1]-q[1]));/^mouse(up|down)|click$/.test(f)&&(a=c||g,t(b,2>a?Va:a==(c?2:4)?ka:Xa));return b}function $(a,f,b,k){f=f[H];if(!f||0>f)return null;var c=[];t(c,Ta);r(c,a);r(c,f);r(c,b[0]);r(c,b[1]);t(c,0);t(c,0);t(c,k);return c}function X(a,f){var b=[];t(b,F);r(b,a);r(b,f[0]);r(b,f[1]);return b}function ca(a,f,b){var k=[];b=b[H];if(!b||0>b)return null;t(k,pa);r(k,a);r(k,f[0]);r(k,f[1]);r(k,b);return k}function fa(a,f,b){var k=[];
t(k,Ia);r(k,a);r(k,f[0]);r(k,f[1]);r(k,b[0]);r(k,b[1]);return k}function qa(a,f,b,k){var c=[];t(c,v);r(c,a);A(c,f);t(c,b);a=k[H];if(!a||0>a)a=0;r(c,a);return c}function Z(a,f){var b,k;0==f.length?k=b="":100>=f.length?(b=f,k=""):200>=f.length?(b=f.substr(0,100),k=f.substr(100)):(b=f.substr(0,97),k=f.substr(f.length-97));var c=[];t(c,Ja);r(c,a);T(c,b);T(c,k);return c}function la(a){var f=[];t(f,ha);r(f,a);return f}function da(a){var f=[];t(f,E);r(f,a);return f}function ea(a){var f=[];t(f,Rb);r(f,a);
return f}function sa(a,f){var b=[];t(b,Da);r(b,a);r(b,f[H]);return b}function ta(a,f){var b=[];t(b,Ea);r(b,a);r(b,f[H]);return b}function Aa(a,f,b){var k=[];t(k,Fa);r(k,a);r(k,f[H]);L(k,String(b));return k}function La(a){var f=a[H];if(!f||0>f||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||ma(a.form,"-metrika-noform"))return null;var b=Db(a.form);if(0>b)return null;var k;k="INPUT"==a.nodeName?{text:0,color:0,date:0,datetime:0,"datetime-local":0,email:0,number:0,range:0,search:0,tel:0,time:0,
url:0,month:0,week:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]:{SELECT:1,TEXTAREA:5}[a.nodeName];if("number"!=typeof k)return null;for(var c=-1,s=a.form.elements,g=s.length,d=0,q=0;d<g;d++)if(s[d].name==a.name){if(s[d]==a){c=q;break}q++}if(0>c)return null;s=[];t(s,x);r(s,f);r(s,b);r(s,k);T(s,a.name||"");r(s,c);return s}function Ba(a,f){var b=Db(f);if(0>b)return null;for(var k=f.elements,c=k.length,s=[],g=0;g<c;g++)if(!Eb(k[g])){var d=k[g][H];d&&0<d&&O(s,d)}k=[];t(k,Sb);r(k,a);r(k,b);r(k,
s.length);for(b=0;b<s.length;b++)r(k,s[b]);return k}function Ma(){var a=[];t(a,Tb);return a}function y(a,f,b){a=a.apply(e,f);Na.append(a,b)}function z(a){if(a[H])a:{var f=w(),b=a[H];if(0<b){var k=[];a=ib(a);var c=cb[b],s=a[0]+"x"+a[1],g=a[2]+"x"+a[3];s!=c.pos&&(c.pos=s,t(k,Ub),r(k,f),r(k,b),r(k,a[0]),r(k,a[1]));g!=c.size&&(c.size=g,t(k,Vb),r(k,f),r(k,b),r(k,a[2]),r(k,a[3]));if(k.length){a=k;break a}}a=null}else{(b=W(a))&&z(b);a[H]=nb;cb[nb]={};nb++;if(a.nodeName)if(b=+a[H],!isFinite(b)||0>=b)f=null;
else{var k=Ca,c=0,d=W(a),s=d&&d[H]?d[H]:0;0>s&&(s=0);var g=a.nodeName.toUpperCase(),q=Ha[g];q||(k|=$a);var e;b:{e=Ab(W(a),a.nodeName);for(var n=0;n<e.length;n++)if(e[n]==a){e=n;break b}e=0}e||(k|=ua);n=ib(a);(d=d?ib(d):null)&&n[0]==d[0]&&n[1]==d[1]&&n[2]==d[2]&&n[3]==d[3]&&(k|=na);cb[b].pos=n[0]+"x"+n[1];cb[b].size=n[2]+"x"+n[3];a.id&&"string"==typeof a.id&&(k|=oa);(d=Bb(a))&&(k|=va);var u=Cb(a);u&&(c|=fb);var h;b:{h=Ab(W(a),a.tagName);for(var V=0;V<h.length;V++)if((!h[V].id||"string"!=typeof h[V].id)&&
Cb(h[V])==u&&Bb(h[V])==d){h=!0;break b}h=!1}h&&(k|=ga,f=ab((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,"")));h=[];t(h,Wb);r(h,b);t(h,k);r(h,s);q?t(h,q):L(h,g);e&&r(h,e);k&na||(r(h,n[0]),r(h,n[1]),r(h,n[2]),r(h,n[3]));k&oa&&L(h,a.id);d&&A(h,d);k&ga&&A(h,f);t(h,c);u&&A(h,u);f=h}else a[H]=-1,f=null;Na.append(f,void 0);a=La(a)}Na.append(a,void 0)}function U(a){var f=p(a),b,k,c=0;if(f&&"SCROLLBAR"!=f.nodeName){if(f&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(f.tagName))if(f[H])z(f);else if(b=W(f,
"form"))for(b=b.elements,k=b.length;c<k;c++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[c].tagName)&&!b[c][H]&&z(b[c]);else z(f);else z(f);y(R,[w(),a.type,f,l(a),a.which,a.button])}}function Oa(a){U(a);var f,b;e.getSelection?(a=e.getSelection(),f=a.toString(),b=a.anchorNode):c.selection&&c.selection.createRange&&(a=c.selection.createRange(),f=a.text,b=a.parentElement());if("string"==typeof f){for(;b&&1!=b.nodeType;)b=b.parentNode;b&&"INPUT"==b.tagName&&"password"==b.type||b&&(/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(b.className)||
Fb("-metrika-nokeys",b).length)||f==ob||(ob=f,y(Z,[w(),f]))}}function Pa(a){var f=K(),b=f-Gb;if(!(b<Hb)){var k=l(a),c=pb[0]-k[0],s=pb[1]-k[1],c=c*c+s*s;0>=c||16>c&&100>b||20>b&&256>c||(Gb=f,pb=k,U(a))}}function D(){S=yb();var a=K();a-Ib<Hb||10>Math.abs(S[0]-qb[0])&&10>Math.abs(S[1]-qb[1])||(Ib=a,qb=S,y(X,[w(),S]))}function wa(a){a=p(a);var f=Math.random(),b=[a.scrollLeft,a.scrollTop];if(a.localId){if(f=rb[a.localId],!f||10>Math.abs(b[0]-f[0])&&10>Math.abs(b[1]-f[1]))return}else{for(;rb[f];)f=Math.random();
a.localId=f}rb[a.localId]=b;a!==c&&(z(a),y(ca,[w(),b,a]))}function Qa(){y(fa,[w(),wb(),xb()])}function xa(a){y(Ma,[],!0);try{if("beforeunload"==a.type)for(var f=+new Date+50;+new Date<f;);}catch(b){}}function ia(a,f,b){a=p(a);"INPUT"==a.tagName&&"password"==a.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(z(a),y(qa,[w(),f,b,a]))}function P(a){var f=a.keyCode,b=J(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}[f]||112<=f&&123>=f||96<=f&&105>=f||b&bb)19==f&&(b&~bb)==jb&&(f=144),ia(a,f,b|bb),sb=!1,N(function(){sb=!0},1),67==f&&b&jb&&!(b&Wa||b&Za)&&ba()}function ja(a){sb&&!tb&&0!==a.which&&(ia(a,a.charCode||a.keyCode,J(a)),tb=!0,N(function(){tb=!1},1))}function ba(){ub||(ub=!0,ob&&y(la,[w()]),N(function(){ub=!1},1))}function ya(){Ra||(Ra=!0,y(da,[w()]))}function Q(){Ra&&(Ra=!1,y(ea,[w()]))}function f(a){(!Ra||a&&!a.fromElement)&&ya()}function k(a){a&&!a.toElement&&Q()}function s(a){a=
p(a);var f,b,k=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[H])z(a);else if(f=W(a,"form"))for(f=f.elements,b=f.length;k<b;k++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(f[k].tagName)&&!f[k][H]&&z(f[k]);else z(a);y(sa,[w(),a])}}function q(a){(a=p(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(z(a),y(ta,[w(),a]))}function za(a){a=p(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className))&&a&&/^INPUT|SELECT|TEXTAREA$/.test(a.tagName)){var f=
/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;z(a);y(Aa,[w(),a,f])}}function V(a){a=p(a);if(!ma(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var f=a.elements,b=0;b<f.length;b++)Eb(f[b])||z(f[b]);y(Ba,[w(),a],!0)}}function n(a){D();if(a.touches&&a.touches.length){var f=p(a);if(f){z(f);for(var b=0;b<a.touches.length;b++)y(R,[w(),"touch",f,[a.touches[b].pageX,a.touches[b].pageY],0,0])}}}function I(a){var f=p(a);if(f){var b;"wheel"==a.type?b=0<a.deltaY?1:0>a.deltaY?2:0:"mousewheel"==a.type&&(b=
0<a.wheelDelta?2:0>a.wheelDelta?1:0);b&&(z(f),y($,[w(),f,l(a),b]))}}var Na=new Jb({protocol:a,counterId:b,counterType:g,meta:{url:B().href,hitId:d,timezone:db,timestamp:Sa}}),lb=20,Ob=50,Hb=10,Wb=1,Pb=2,F=3,pa=16,Y=4,v=5,x=7,Ub=9,Vb=10,Sb=11,Qb=12,Tb=13,E=14,Rb=15,Da=17,Ea=18,Fa=19,ha=27,Ia=28,Ja=29,Ka=30,Ta=31,ra=32,Ua=33,Va=1,Xa=2,ka=4,ga=1,$a=2,ua=4,na=8,va=16,oa=32,Ca=64,fb=2,Wa=1,Za=2,jb=4,Ga=8,bb=16,Ha={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},aa=[],kb=0;G(0);var mb=0,nb=1,Gb=0,pb=[0,0],Ib=0,qb=[0,0],rb={},sb=!0,tb=!1,ob="",ub=!1,Ra=!0,gb=K(),H="metrikaId_"+Math.random(),cb={},eb=":submit"+Math.random();"MetrikaPlayer"!=e.name&&(h(c,"mousemove",Pa),h(c,"click",U),h(c,"dblclick",U),h(c,"mousedown",U),h(c,"mouseup",Oa),h(e,"scroll",D),"onmousewheel"in c?h(c,"mousewheel",I):h(c,"wheel",I),h(e,"beforeunload",
xa),Kb||h(e,"unload",xa),h(e,"resize",Qa),h(c,"keydown",P),h(c,"keypress",ja),h(c,"copy",ba),h(c,"touchmove",n),h(c,"touchstart",n),c.attachEvent&&!e.opera?(h(c,"focusin",f),h(c,"focusout",k)):(h(e,"focus",ya),h(e,"blur",Q),h(c,"blur",Q)),c.addEventListener?(c.addEventListener("scroll",wa,!0),c.addEventListener("focus",s,!0),c.addEventListener("blur",q,!0),c.addEventListener("change",za,!0),c.addEventListener("submit",V,!0)):c.attachEvent&&(h(c,"focusin",s),h(c,"focusout",q),function(){for(var a=
c.getElementsByTagName("form"),f=0;f<a.length;f++){for(var b=a[f].getElementsByTagName("*"),k=0;k<b.length;k++)/^INPUT|SELECT|TEXTAREA$/.test(b[k].tagName)&&h(b[k],"change",za);h(a[f],"submit",V)}}()),function(){var a=c.getElementsByTagName("form");if(a.length)for(var f=0;f<a.length;f++){var b=a[f].submit;if("function"==typeof b||"object"==typeof b&&/^\s*function submit\(\)/.test(String(b)))a[f][eb]=b,a[f].submit=function(){V({target:this});return this[eb]()}}}(),"0:0"!=S.join(":")&&D(),Qa(),C.uploadPage=
function(f){if("function"==typeof e.toStaticHTML&&-1<e.toStaticHTML.toString().indexOf("NoScript"))return!1;var k=c.documentElement;if(k&&19E4<(""+k.innerHTML).length)return!1;var s=e.XMLHttpRequest?new e.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),q=(""+(c.characterSet||c.charset||"")).toLowerCase(),k="text/html"+(q?";charset="+q:""),n=new Xb({protocol:a,counterId:b,counterType:g});if("html"==f)return f=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),n.sendContent(Lb().replace(f,
""),k,d,db,Sa),!0;s&&(s.open("get",B().href,!0),s.onreadystatechange=function(){4==s.readyState&&n.sendContent(s.responseText,s.getResponseHeader("content-type"),d,db,Sa)},s.overrideMimeType&&q&&s.overrideMimeType(k),s.send(null));return!0});return{start:function(){Na.activate()},stop:function(){Na.clear();m(c,"mousemove",Pa);m(c,"click",U);m(c,"dblclick",U);m(c,"mousedown",U);m(c,"mouseup",Oa);m(c,"mousewheel",I);m(c,"wheel",I);m(e,"scroll",D);m(e,"beforeunload",xa);m(e,"unload",xa);m(e,"resize",
Qa);m(c,"keydown",P);m(c,"keypress",ja);m(c,"copy",ba);m(c,"touchmove",n);m(c,"touchstart",n);m(c,"focusin",f);m(c,"focusout",k);m(e,"focus",ya);m(e,"blur",Q);m(c,"blur",Q);c.removeEventListener?(c.removeEventListener("scroll",wa,!0),c.removeEventListener("focus",s,!0),c.removeEventListener("blur",q,!0),c.removeEventListener("change",za,!0),c.removeEventListener("submit",V,!0)):c.detachEvent&&(m(c,"focusin",s),m(c,"focusout",q),function(){for(var a=c.getElementsByTagName("form"),f=0;f<a.length;f++){for(var b=
a[f].getElementsByTagName("*"),k=0;k<b.length;k++)/^INPUT|SELECT|TEXTAREA$/.test(b[k].tagName)&&m(b[k],"change",za);m(a[f],"submit",V)}}());(function(){for(var a=c.getElementsByTagName("form"),f=0;f<a.length;f++)a[f][eb]&&(a[f].submit=a[f][eb])})()},uploadPages:function(a,f){function b(){m(c,"DOMContentLoaded",b);m(e,"load",b);for(var k=a.split(/\n/),s=B().href,d=/regexp:/,g=0;g<k.length;g++){var q=k[g];if(q)if(d.test(q)){q=vb(q.replace(d,""));try{var n=RegExp(q)}catch(h){}if(n&&n.test(s)){C.uploadPage(f);
break}}else if(-1!==s.indexOf(q)){C.uploadPage(f);break}}}"complete"==c.readyState?b():(h(c,"DOMContentLoaded",b),h(e,"load",b))}}}var Yb=!1,Ga="",Kb=!Ia(/webkit/)&&Ia(/gecko/),S=yb(),X=[],Ta=null,l={mixin:function(a){for(var b=1;b<arguments.length;b++)if(arguments[b]){for(var c in arguments[b])arguments[b].hasOwnProperty(c)&&(a[c]=arguments[b][c]);arguments[b].hasOwnProperty("toString")&&(a.toString=arguments[b].toString)}return a}},R=function(a){a=a||{};l.mixin(this,a);this._initComponent()};R.prototype._initComponent=
function(){};R.inherit=function(a){a=a||{};var b="function"==typeof this?this:Object;a.hasOwnProperty("constructor")||(a.constructor=function(){b.apply(this,arguments)});var c=function(){};c.prototype=b.prototype;a.constructor.prototype=new c;l.mixin(a.constructor.prototype,a);a.constructor.prototype.constructor=a.constructor;a.constructor.superclass=b.prototype;a.constructor.inherit=R.inherit;return a.constructor};var ca=R.inherit({counterId:"",_initComponent:function(){ca.superclass._initComponent.apply(this,
arguments);this._buffer={};this._ls=null;try{this._ls=e.localStorage}catch(a){}},set:function(a,b){if(this.isEnabled())try{!b||b&&ha(b)&&!b.length?this.remove(a):this._ls.setItem(this._getLsKey(a),JSON.stringify(b))}catch(c){}},get:function(a){if(this.isEnabled())try{return JSON.parse(this._ls.getItem(this._getLsKey(a)))}catch(b){}return null},remove:function(a){if(this.isEnabled())try{this._ls.removeItem(this._getLsKey(a))}catch(b){}},isEnabled:function(){return this._ls&&e.JSON&&"object"==typeof this._ls&&
"object"==typeof e.JSON},_getLsKey:function(a){return"_ym"+this.counterId+"_"+a}}),Aa=R.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){Aa.superclass._initComponent.apply(this,arguments);this._domain=null;if(!this.onlyCurrentDomain)for(var a=A.host.split("."),b=2;;)if(b<=a.length){if(this._domain="."+a.slice(-b).join("."),b++,this.isEnabled())break}else{this._domain=null;break}},create:function(a,b,g){a=[this._prepareName(a)+"="+encodeURIComponent(b)];g&&(b=new Date,
b.setTime(b.getTime()+6E4*g),a.push("expires="+b.toGMTString()));this._domain&&a.push("domain="+this._domain);a.push("path=/");try{c.cookie=a.join(";")}catch(e){}},read:function(a){try{var b=c.cookie}catch(g){}return b&&b.match(RegExp("(?:^|;\\s*)"+this._prepareName(a)+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null},erase:function(a){this.create(a,"",-1)},isEnabled:function(){this.create("metrika_enabled","1",60);var a=!!this.read("metrika_enabled");this.erase("metrika_enabled");return a},_prepareName:function(a){return(this.skipPrefix?
"":"_ym_")+a+(this.counterId?"_"+this.counterId:"")}});Aa.isEnabled=function(){return(new Aa({onlyCurrentDomain:!0})).isEnabled()};l.forEachKey=function(a,b,c){for(var e in a)a.hasOwnProperty(e)&&b.call(c,e,a[e],a)};l.inArray=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return!0;return!1};var G=R.inherit({transports:[],postParams:[],send:function(a,b,c,e){c=c||function(){};var d={},C={};l.forEachKey(b,function(a,b){l.inArray(this.postParams,a)?C[a]=b:d[a]=b},this);(function m(b){if(b<this.transports.length)try{var l=
new this.transports[b];l.request(a,d,C,function(a,d){a?c.call(e,d):m.call(this,b+1)},this)}catch(p){ga(p,"send by "+(l&&l.id)),m.call(this,b+1)}}).call(this,0)}}),ra={};l.isArray=function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"==Object.prototype.toString.call(a)};ra.stringify=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var e=a[c];if(l.isArray(e))for(var d=0;d<e.length;d++)b.push(encodeURIComponent(c)+"="+encodeURIComponent(String(e[d])));else b.push(encodeURIComponent(c)+
"="+encodeURIComponent(String(e)))}return b.join("&")};var Ba=R.inherit({_buildUrl:function(a,b){return a+(-1<a.indexOf("?")?"&":"?")+ra.stringify(b)}}),L=Ba.inherit({id:"XHR",request:function(a,b,c,u,d){if(e.opera&&"function"==typeof e.opera.version){var l=e.opera.version();if("string"==typeof l&&"12"==l.split(".")[0]&&/[^a-z0-9.:-]/.test(A.host))return u.call(d,!1)}if(e.XMLHttpRequest){var h=new XMLHttpRequest;if("withCredentials"in h){a=this._buildUrl(a,b);h.open("POST",a,!0);h.withCredentials=
!0;h.setRequestHeader("Content-Type","application/x-www-form-urlencoded");h.send(ra.stringify(c));(function(){4==h.readyState?u.call(d,200==h.status):N(arguments.callee,50,"TransportXHR.request")})();return}}u.call(d,!1)}});l.random=function(a,b){2>arguments.length&&(a=0);1>arguments.length&&(b=1073741824);return Math.floor(Math.random()*(b-a))+a};l.mergeArrays=function(a){for(var b=1;b<arguments.length;b++)if(l.isArray(arguments[b]))for(var c=0;c<arguments[b].length;c++)a[a.length]=arguments[b][c]};
var da=Ba.inherit({id:"form",enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){da.superclass._initComponent.apply(this,arguments);"_htmlfile"in da.prototype||(da.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:c)},request:function(a,b,c,e,d){var C=this._doc;if(!C)return e.call(d,!1);var h="ifr"+l.random(),m=C.createElement("div");m.style.position="absolute";m.style.left="-99999px";m.style.top="-99999px";var p=['<iframe name="',
h,'"></iframe>','<form action="',this._buildUrl(a,b),'" method="post" target="',h,'" enctype="',this.enctype,'">'];l.forEachKey(c,function(a){l.mergeArrays(p,['<textarea name="',a,'"></textarea>'])});l.mergeArrays(p,["</form>"]);m.innerHTML=p.join("");C.body.appendChild(m);var B=m.getElementsByTagName("form")[0];l.forEachKey(c,function(a,b){B[a].value=b});B.submit();N(function(){C.body.removeChild(m)},1E4,"TransportForm.request.2");return e.call(d,!0)},_createHtmlfile:function(){try{if(e.ActiveXObject){var a=
new ActiveXObject("htmlfile");a.open();a.write("<html><body></body></html>");a.close();return a}}catch(b){}return null}}),Z=da.inherit({id:"htmlfile",htmlfileOnly:!0}),Zb=Ba.inherit({id:"img",request:function(a,b,c,e,d){a=this._buildUrl(a,l.mixin({},b,c));b=new Image;b.onload=M(function(){e.call(d,!0)},"TransportImage.request");b.onerror=M(function(){e.call(d,!1)},"TransportImage.request");b.src=a}});l.defer=function(a,b,c,e,d){return N(function(){a.apply(c,e||[])},b,d)};var $=G.inherit({protocol:"",
host:"mc.yandex.ru",resource:"",counterId:"",counterType:0,retry:!1,transports:[L,Z,Zb],_initComponent:function(){$.superclass._initComponent.apply(this,arguments);this.retry&&(this._storage=new ca)},send:function(a,b,c,e){if(this.retry&&this._storage.isEnabled()){b.rqnl=b.rqnl||0;b.rqnl++;for(var d=this._storage.get("retryReqs")||{},C=0;d[C];)C++;d[C]={protocol:this.protocol,host:this.host,resource:this.resource,counterId:this.counterId,postParams:this.postParams,params:a,browserInfo:b,ghid:Ya._globalMetrikaHitId,
time:+new Date};this._storage.set("retryReqs",d)}b.st=Math.round((new Date).getTime()/1E3);var d=[this.protocol,"//",this.host,"/"+this.resource+"/"+this.counterId].join(""),h=[];b&&(l.forEachKey(b,function(a,b){"t"!=a&&l.mergeArrays(h,[a,b])}),b.t&&l.mergeArrays(h,["t",b.t]));h.length&&(a["browser-info"]=h.join(":"));this.counterType&&(a["cnt-class"]=this.counterType);if(this.retry&&this._storage.isEnabled())var m=l.defer(function(){},1E4,this,[],"SenderBK.timeout");return $.superclass.send.call(this,
d,a,function(){if(this.retry&&this._storage.isEnabled()){clearTimeout(m);var a=this._storage.get("retryReqs")||{};a[C]&&(delete a[C],this._storage.set("retryReqs",a))}c&&c.apply(e,arguments)},this)}});$.retransmit=function(){var a=new ca,b=a.get("retryReqs")||{};a.remove("retryReqs");l.forEachKey(b,function(a,b){b.ghid&&b.ghid!=Ya._globalMetrikaHitId&&b.time&&b.time+864E5>+new Date&&!(2<b.browserInfo.rqnl)&&(new $({protocol:b.protocol,host:b.host,resource:b.resource,counterId:b.counterId,postParams:b.postParams||
[],retry:!0})).send(b.params,b.browserInfo)})};var ea={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/=",tailSafe:"*-_",encode:function(a,b){for(var c=(ea.abc+(b?ea.tailSafe:ea.tail)).split(""),e=a.length,d=[],l=e-e%3,h,m=0;m<l;m+=3)h=(a[m]<<16)+(a[m+1]<<8)+a[m+2],O(d,c[h>>18&63],c[h>>12&63],c[h>>6&63],c[h&63]);switch(e-l){case 1:h=a[l]<<4;O(d,c[h>>6&63],c[h&63],c[64],c[64]);break;case 2:h=(a[l]<<10)+(a[l+1]<<2),O(d,c[h>>12&63],c[h>>6&63],c[h&63],c[64])}return d.join("")}},
$b={encode:function(a){for(var b=[],c=0,e=a.length;c<e;c++){var d=a.charCodeAt(c);128>d?b.push(d):(127<d&&2048>d?b.push(d>>6|192):(b.push(d>>12|224),b.push(d>>6&63|128)),b.push(d&63|128))}return b}},Xb=$.inherit({resource:"webvisor",transports:[L,da],postParams:["wv-data"],sendContent:function(a,b,c,e,d,l,h){if(!a)return!1;-1<a.indexOf("\r")&&(a=a.replace(/\r\n/g,"\n"));a={"wv-type":1,"page-url":B().href,"wv-hit":c,"wv-data":ea.encode($b.encode(a))};return this.send(a,{z:e,i:d,pct:b||""},l,h)}});
l.throttle=function(a,b,c,e){var d,l,h;return function(){l=arguments;h=this;d||function(){d=null;l&&(a.apply(c||h,l),l=null,d=N(arguments.callee,b,e))}()}};var Ca=R.inherit({storage:null,storageKey:"dataBuffer",maxBufferSize:255,flushTimeout:1E4,active:!0,meta:null,onFlush:function(){},onFlushCtx:null,bufferExpireTime:864E5,_initComponent:function(){Ca.superclass._initComponent.apply(this,arguments);this._data=[];this._packetNumber=0;this._flushTID=null;this._saveToStorageThrottled=l.throttle(this._saveToStorage,
300,this,"DataBuffer._saveToStorage");if(this.storage){var a=this.storage.get(this.storageKey);a&&a.data&&a.meta&&a.time&&a.time+this.bufferExpireTime>+new Date&&this.onFlush.call(this.onFlushCtx||this,a.data,a.meta,a.pnum);this.clear()}},append:function(a,b){l.mergeArrays(this._data,a);this._saveToStorageThrottled();this.active&&((b||this._data.length>=this.maxBufferSize)&&this._flush(),this._flushTID||(this._flushTID=l.defer(this._flush,this.flushTimeout,this,[],"DataBuffer._flush")))},activate:function(){this.active||
(this.active=!0,this.append([]))},clear:function(){this._data.length=0;this._flushTID=null;this.storage&&this.storage.remove(this.storageKey)},_flush:function(){this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber);this._packetNumber++;this.clear()},_saveToStorage:function(){this.storage&&this._data.length&&this.storage.set(this.storageKey,{data:this._data,meta:this.meta,pnum:this._packetNumber,time:+new Date})}});l.fletcher=function(a){for(var b=a.length,c=0,e=255,d=255;b;){var l=
21<b?21:b,b=b-l;do{var h="string"==typeof a?a.charCodeAt(c):a[c];c++;if(255<h)var m=h>>8,h=h&255,h=h^m;e+=h;d+=e}while(--l);e=(e&255)+(e>>8);d=(d&255)+(d>>8)}a=(e&255)+(e>>8)<<8|(d&255)+(d>>8);return 65535==a?0:a};var ac=$.inherit({resource:"webvisor",retry:!0,postParams:["wv-data"],sendPacket:function(a,b,c,e,d,p,h,m){if(!a||!a.length)return!1;a={rn:l.random(),"page-url":b,wmode:0,"wv-type":0,"wv-hit":c,"wv-part":e+1,"wv-check":l.fletcher(a),"wv-data":ea.encode(a,!0)};return this.send(a,{z:d,i:p},
h,m)}}),Jb=Ca.inherit({protocol:"",counterId:"",counterType:"",meta:null,maxBufferSize:7500,flushTimeout:3E4,storageKey:"visorbuff",active:!1,_initComponent:function(){this.storage=new ca({counterId:this.counterId});this._sender=new ac({protocol:this.protocol,counterId:this.counterId,counterType:this.counterType});Jb.superclass._initComponent.apply(this,arguments)},onFlush:function(a,b,c){this._sender.sendPacket(a,b.url,b.hitId,c,b.timezone,b.timestamp)}}),p={_jScriptVersion:0,getJScriptVersion:function(){p._jScriptVersion||
(p._jScriptVersion=(new Function("return /*@cc_on @_jscript_version @*/;"))());return p._jScriptVersion}};e.Ya=e.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};Ya._globalMetrikaHitId=l.random();var bc=!1,A=B(),db,Sa,K=e.navigator,sa=e.screen,fa="https:"==A.protocol?"https:":"http:",$a=512,Da=5.8>=p.getJScriptVersion(),Ua=Da?512:2048,cc=Da?512:2048,fb=Da?100:400,Va="noindex",Ea=50,Wa=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"),dc=J(),ec="_ym_visorc",Xa,Fa,fc="//mc.yandex.ru/clmap/";e.Ya.Metrika=function(a,b,g,u){var d=this;return M(function(){function C(a,b){b=b||256;if(!a)return"";a.length>b&&(a=a.substr(0,b));return(e.encodeURIComponent||e.escape)(a).replace(/\+/g,"%2B")}function h(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===la)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,e=a.length;d<e;d++)c[c.length]=h(a[d]);return"["+c.join(",")+"]";case Object:c="{";d=0;for(e in a)if(a.hasOwnProperty(e)){var g=a[e];g!==la&&(c+=(d?",":"")+'"'+b(e)+'":'+h(g),d++)}return c+"}";default:return"null"}}function m(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 G(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 L(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}
function R(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 O(a,b){var c=b.target,d=!1;if(!b.hostname)return!1;c&&"_self"!=c&&"_top"!=c&&"_parent"!=c||(d=!0);(c=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&e.Event&&(c=a.modifiers&e.Event.CONTROL_MASK||a.modifiers&e.Event.SHIFT_MASK||a.modifiers&e.Event.ALT_MASK);return d&&!c}function S(f,b,s){function q(a,f){a&&f&&(s?h[a]=f:h[h.length]=
[a,f].join(":"))}function g(a){q(a,b[a]?"1":"")}b=b||{};var h=s?{}:[],n=-1*(new Date).getTimezoneOffset(),I=X();Sa||(Sa=I,db=n);q("j",p.getJavaEnabled()?"1":"");sa&&q("s",sa.width+"x"+sa.height+"x"+(sa.colorDepth||sa.pixelDepth));e.devicePixelRatio&&q("sk",e.devicePixelRatio);q("f",p.getFlashVersion());q("l",p.getSilverlightVersion());q("fpr",p.getFingerPrint());b.pa||q("w",t()+"x"+r());q("z",n);q("i",I);q("et",Math.round((new Date).getTime()/1E3));q("en",(""+(c.characterSet||c.charset||"")).toLowerCase());
q("v",$a);q("c",K.cookieEnabled?"1":"");q("jv",p.getJScriptVersion());q("la",p.getLanguage());q("ex","prerender"==c.webkitVisibilityState?"pre1":"");Q&&q("wh","1");I="ar ln dl ad nb pa".split(" ");for(n=0;n<I.length;n++)g(I[n]);I=["va","vt","sn","sa","he"];b.nb&&I.push("cl");for(n=0;n<I.length;n++){var m=I[n];q(m,b[m])}b.reqNum&&(n=new ca({counterId:a}),n.isEnabled()&&((I=n.get("reqNum"))?I++:I=1,n.set("reqNum",I),(I=n.get("reqNum"))&&q("rqn",I)));q("rn",ta());q("hid",Ma);q("ds",Z());d._firstPaint||
(d._firstPaint=da(),q("fp",d._firstPaint));if(d._webvisor){e.name||(e.name=Math.round(65535*Math.random()));if(n=+e.name)0>n&&(n*=-1),n%=65535;q("wn",n||ab(e.name));try{e.history&&q("hl",String(e.history.length))}catch(u){}}f="undefined"==typeof f?(f=w())?l.trim(f,fb):"":l.trim(f,fb);q("t",f);return s?h:h.join(":")}function w(){var a=c.title;"string"!=typeof a&&(a=(a=c.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function X(){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 t(){var a=-1;c.documentElement&&"CSS1Compat"==c.compatMode?a=c.documentElement.clientWidth:c.body&&(a=c.body.clientWidth);return a}function r(){var a=-1;c.documentElement&&"CSS1Compat"==c.compatMode?a=c.documentElement.clientHeight:c.body&&(a=c.body.clientHeight);return a}function W(){var a=e.performance||e.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 Z(){var a=[],b=d._lastPerformanceTiming,c=W();if(b)for(var e=0,g=b.length;e<g;e++)null===c[e]?a.push(c[e]):a.push(b[e]===c[e]?"":c[e]);else a=c;d._lastPerformanceTiming=c;return a.join(",")}function da(){var a;if("object"==typeof e.chrome&&e.chrome.loadTimes){if(a=e.chrome.loadTimes(),a.requestTime&&
a.firstPaintTime)return~~(1E3*(a.firstPaintTime-a.requestTime))}else if(e.performance&&e.performance.timing&&(a=e.performance.timing,a.navigationStart&&a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}function ea(a){var b=c.referrer||"";if(RegExp("^https?://"+A.host+"/").test(b))return!1;for(var d=a.patterns,e=0;e<d.length;e++)if(b.match(RegExp(d[e],"i"))){var g=a.params||[];if(g.length)for(var h=qa((RegExp.$1||"").replace(/\+/g,"%20")),n=0;n<g.length;n++){if(h==qa(g[n]))return!0}else return!0}return!1}
function ga(a,b){var d=!1;if(a&&"string"!=typeof a&&a.length)for(var e=0;e<a.length;e++){var g=a[e].selector,h=a[e].text,n=g.charAt(0),g=g.slice(1);if("#"==n){if(n=c.getElementById(g))d=!0,b&&ia.unshift([n,n.innerHTML]),n.innerHTML=h}else if("."==n)for(n=Fb(g),g=0;g<n.length;g++){var d=!0,l=n[g],m=h;b&&ia.unshift([l,l.innerHTML]);l.innerHTML=m}}return d}function ha(){for(var a=0;a<ia.length;a++)ia[a][0].innerHTML=ia[a][1]}function na(a,b){a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"");var c="";
if(a)for(var d=a.split("&"),e=0;e<d.length;e++){var g=d[e].split("=");"_openstat"==g[0]&&(c=g[1])}b&&0==b.indexOf("_openstat=")&&(c=b.slice(10));c&&(c=-1<c.indexOf(";")?qa(c):oa(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 qa(a){try{return decodeURIComponent(a)}catch(b){return""}}function oa(a){for(;a.length%4;)a+="=";var b,c,d,e,g,h=0,l="";do{b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));
c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));if(0>b||0>c||0>e||0>g)return null;d=b<<18|c<<12|e<<6|g;b=d>>16&255;c=d>>8&255;d&=255;l=64==e?l+String.fromCharCode(b):64==g?l+String.fromCharCode(b,c):l+String.fromCharCode(b,c,d)}while(h<a.length);a=l;e="";for(h=c1=c2=g=0;g<
a.length;)h=a.charCodeAt(g),128>h?(e+=String.fromCharCode(h),g++):191<h&&224>h?(c2=a.charCodeAt(g+1),e+=String.fromCharCode((h&31)<<6|c2&63),g+=2):(c2=a.charCodeAt(g+1),c3=a.charCodeAt(g+2),e+=String.fromCharCode((h&15)<<12|(c2&63)<<6|c3&63),g+=3);return e}function ra(){var f=!1;if(Ya._metrika.hitParam[y]){if(1!=g||Ya._metrika.counters[y])return!1;f=!0}Ya._metrika.counters[y]=d;Ya._metrika.hitParam[y]=1;d._webvisor=!u&&(D&&D.webvisor||Yb||bc);d._directCampaign=D&&D.directCampaign;D&&D.trackHash&&
d.trackHash(!0);if(!u&&!f){d.replacePhones();var k=new Aa({counterId:a}),s=k.read("visorc")||Ja(ec);"b"!=s&&"w"!=s&&(s="");if(!Mb()||Ia("opera mini"))s="b";Xa=J();var f=new xa({protocol:fa,counterType:g,counterId:a}),q={ut:z,he:D?~~D.httpError:0,ad:1==g&&e.Ya&&e.Ya.Direct?!0:!1,saveRef:!0};f.sendHit(A.href,w(),c.referrer,b,q,s,function(a){Fa||(Fa=J());a=a||{};var b=a.webvisor||{};if(ja){var f=+b.recp;if(!isFinite(f)||0>f||1<f)s="w";s||(s=Ma%1E4/1E4<f?"w":"b");k.create("visorc",s,30);"w"==s?(ja.start(),
f=b.arch_type,(b=b.urls)&&f&&ja.uploadPages(b,f)):ja.stop()}b=a.mp2;a=d;k.erase("mp2_substs");if(b){b:if((f=b.conditions)&&f.length)for(var g=0;g<f.length;g++){var q;if("ref"==f[g].type)q=ea(f[g]);else if(q="adv"==f[g].type){var l=f[g],m=Ya._metrika.counter._directCampaign,u=l.ServiceNamePattern,r=l.RefererPattern;q=m?l.direct_orders:l.direct_camp;var p=c.referrer,F=A.search,F=F&&F.replace(/^\?/,""),pa={};if(F)for(var F=F.split("&"),Y=0;Y<F.length;Y++){var v=F[Y].split("=");pa[qa(v[0])]=qa(v[1])}for(var F=
na(A.search,A.hash),Y={},v=["source","medium","campaign","term","content"],x=0;x<v.length;x++)pa["utm_"+v[x]]&&(Y[v[x]]=pa["utm_"+v[x]]);x=m?"direct.yandex.ru":F&&F.service||Y.source;v=!1;if(!v&&u&&u.length)for(var t=0;t<u.length;t++)if(RegExp(u[t],"i").test(x)){v=!0;break}if(!v&&r&&r.length)for(u=0;u<r.length;u++)if(RegExp(r[u],"i").test(p)){v=!0;break}!v&&l.google_adwords&&pa.gclid&&(v=!0);!v&&l.yandex_direct&&pa.yclid&&(v=!0);if(v&&q&&q.length&&(v=!1,l=m||F&&F.campaign||Y&&Y.campaign))for(m=0;m<
q.length;m++)if(q[m]==l){v=!0;break}q=v}if(q){f[g].track_id&&k.create("mp2_track",f[g].track_id,43200);break b}}f=k.read("mp2_track");b=b.substs&&b.substs[f];f&&b?(k.create("mp2_substs",h(b)),b=ga(b),a.params("__ym",b?"mp_trackid":"mp_trackid_bad",f)):ha()}else ha();T(e,"load",d.replacePhones);d._inited=!0})}ua();D&&(D.enableAll?d.enableAll():(D.clickmap&&d.clickmap(D.clickmap),D.trackLinks&&d.trackLinks(D.trackLinks),D.accurateTrackBounce&&d.accurateTrackBounce(D.accurateTrackBounce),D.ad&&ad()));
d._webvisor&&(ja=new Nb(fa,a,g,D,Ma,d))}function ka(a){var b={delay:Ea};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Ea:a.delay;break;case "boolean":b.on=a;break;default:return}d._trackLinks=b}function ua(){ka(!1);T(c,"click",function(a){d._trackLinks.on&&va(a)},!0)}function va(a){var b=G(a);if(b){var c=!1,e=""+b.href,g=e?e.split(/\?/)[0]:"",h=function(a){var c=vb(b.innerHTML?b.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");P.sendClickLink(e,
e==c?"":c,a)},n=function(){return O(a,b)?d._trackLinks.delay:0};if(Wa.test(g)||Wa.test(e)||m(e,ba)||m(g,ba))c=!0;var l=ma(b,"ym-disable-tracklink"),g=ma(b,"ym-external-link");l||(l={ln:!0,dl:c},g?(l.delay=n(),h(l)):L(B().hostname,b.hostname)?c&&(l.ln=!1,l.delay=n(),h(l)):e&&-1!=e.search(/^ *(data|javascript):/i)||(l.ut=Va,l.delay=n(),h(l)))}}function Ca(a,b){function d(){if(!B){C&&clearTimeout(C);var c=b,e;e=r?p:p+J()-t;c-=e;0>c&&(c=0);C=N(function(){B=!0;n(!1);a()},c,"trackUserTime")}}function g(){r=
m=u=!0;p+=J()-t;t=J();d()}function h(){m||u||(p=0);t=J();m=u=!0;r=!1;d()}function l(){u||(m=!0,r=!1,u=!0,d())}function n(a){for(var b=0;b<F.length;b+=3)a?T(F[b],F[b+1],F[b+2]):Ka(F[b],F[b+1],F[b+2])}var m=!1,u=!1,r=!0,p=0,t=J(),C=null,B=!1;if(Da)N(a,b,"trackUserTime");else{var F=[e,"blur",g,e,"focus",h,c,"click",l,c,"mousemove",l,c,"keydown",l,c,"scroll",l];n(!0);d()}}function Ga(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 za(){var e=b();e!==c&&(a(),c=e);ya=N(za,200,"trackHash")})()}function La(a){Pa=lastReferrer=Oa;a={ut:z,ad:1==g&&e.Ya&&e.Ya.Direct?!0:!1,wh:!0,saveRef:!0};P.sendAjaxHit(B().href,w(),Pa,a);Oa=B().href}function Ha(b){function d(){var a=c.documentElement;return Math.max(a.scrollWidth,c.body.scrollWidth,a.clientWidth)}function h(a){function b(a){a=a.getBoundingClientRect();var f=c.body,d=c.documentElement,k=a.left+(e.pageXOffset||d.scrollLeft||f.scrollLeft)-(d.clientLeft||
f.clientLeft||0);return{top:Math.round(a.top+(e.pageYOffset||d.scrollTop||f.scrollTop)-(d.clientTop||f.clientTop||0)),left:Math.round(k)}}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 q(a){return a.toString().toUpperCase()}function l(a){if(null==a.pageX&&null!=a.clientX){var b=c.documentElement,f=c.body;a.pageX=a.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);
a.pageY=a.clientY+(b&&b.scrollTop||f&&f.scrollTop||0)-(b.clientTop||0)}return{x:a.pageX,y:a.pageY}}function m(a){for(var b=q(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 n=this,u=0,r=null,p="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 MAIN".split(" "),
t=59,y=String.fromCharCode,D={},w=0;w<p.length;w++)D[p[w]]=y(t),y(t),t++;this.handler=function(b){var f=c.getElementsByTagName("body")[0];if(!e.ymDisabledClickmap&&!ma(f,"ym-clickmap-ignore")){if(n._prefs.hasQuota){if(!n._prefs.quota)return;n._prefs.quota--}var p=b.target||b.srcElement;3==p.nodeType&&(p=p.parentNode);var f=q(p.nodeName),v=l(b),x;b.which||b.button===la||(b.which=b.button&1?1:b.button&2?3:b.button&4?2:0);x=b.which;if(x=2!=x&&3!=x||"A"==f)if(x=p.offsetHeight,x=!(0===p.offsetWidth&&0===
x||p.style&&"none"===p.style.display)){b:{for(x=p;x.parentNode;){if(ma(x,"ym-clickmap-ignore")){x=!0;break b}x=x.parentNode}x=!1}if(x=!x){b:{x=n._prefs.ignoreTags;for(var t=0;t<x.length;t++)if(q(x[t])==q(f)){x=!0;break b}x=!1}x=!x&&n._prefs.filter(p,f)}}if(x){f=J();p={dom:p,x:v.x,y:v.y,time:f};if((v=50<f-u)&&!(v=!n._prefs.ignoreSameClicks)){if(v=r){x=Math.abs(v.x-p.x);var t=Math.abs(v.y-p.y),y=p.time-v.time,v=v.dom==p.dom&&2>x&&2>t&&1E3>y?!0:!1}else v=!1;v=!v}if(v&&"MetrikaPlayer"!=e.name){if(v=b.target||
b.srcElement){3==v.nodeType&&(v=v.parentNode);for(x=q(v.nodeName);v.parentNode&&v.parentNode.nodeName&&("A"!=x&&"AREA"!=x||!v.href);)v=v.parentNode,x=q(v.nodeName);x=v.href?v:!1}else x=!1;v=!1;x&&O(b,x)&&!L(B().hostname,x.hostname)&&(v=!0);x=Za;var y=l(b),t=y.x,y=y.y,w=b.target||b.srcElement,z=n._prefs,A=h(w),E="";b=B().href;switch(z.mode){case "fixed":E="0";m(w)&&(E+="u");break;case "centered":E="1";A=Math.floor(d()/2);t=t>A?t-A+32768:t;m(w)&&(E+="u");break;default:E=q(w.nodeName);E="BODY"==E||"HTML"==
E?d():w.offsetWidth;z=q(w.nodeName);"BODY"==z||"HTML"==z?(z=c.documentElement,z=Math.max(z.scrollHeight,c.body.scrollHeight,z.clientHeight)):z=w.offsetHeight;E||(E=1);z||(z=1);t=Math.floor(65535*(t-A.left)/E);y=Math.floor(65535*(y-A.top)/z);for(A="";w.parentNode&&"BODY"!=q(w.nodeName)&&"HTML"!=q(w.nodeName);){A+=D[w.nodeName]||"*";b:{for(var E=w.parentNode,G=z=0;G<E.childNodes.length;G++)if(w.nodeName==E.childNodes[G].nodeName){if(w==E.childNodes[G]){E=z;break b}z++}E=0}A+=E||"";w=w.parentNode}E=
C(A,128)}y=["rn",ta(),"x",t,"y",y,"t",Math.floor(Math.floor(J()-dc)/100),"p",E];Q?y=y.concat("wh","1"):b=b?b.replace(/\#.*$/,""):b;"function"==typeof n._prefs.urlFilter&&(b=n._prefs.urlFilter(b));t=fc;b=["page-url",C(b,Ua),"pointer-click",y.join(":")];b=["cnt-class",g].concat(b);y=[];for(w=0;w<b.length;w+=2)(A=b[w+1])&&(y[y.length]=b[w]+"="+A);b=U+t+a+"?"+y.join("&");x(b,v?n._prefs.delay:0)}u=f;r=p}}};this.setPrefs=function(a){function b(a,c){return!0}this._prefs="undefined"==typeof a||!1===a||!0===
a?{filter:b,ignoreTags:[],mode:"",delay:Ea,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Ea: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||T(c,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&Ka(c,"click",this.handler,!0);this._start=!1};this.start(b)}var Ma=Math.round(1073741824*Math.random()),y,z="",U=fa,Oa=Ta=A.href,Pa="",D;Ya._metrika.counter||(Ya._metrika.counter=d);"object"==typeof a&&(D=a,u=a.defer,z=a.ut,g=a.type,b=a.params,U=a.onlyHttps?"https:":fa,a=a.id);a=a||0;/^\d+$/.test(a)||(a=0);g=g||0;y=a+":"+g;if(Ya._metrika.counters[y])return Ya._metrika.counters[y];
l.trim=function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};p._silverlightVersion="";p.getSilverlightVersion=function(){if(!p._silverlightVersion)if(e.ActiveXObject)try{var a=new ActiveXObject("AgControl.AgControl"),b=function(a,b,c,f){for(;a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3]);)b[c]+=f;b[c]-=f},c=[1,0,0,0];b(a,c,0,1);b(a,c,1,1);b(a,c,2,1E4);b(a,c,2,1E3);b(a,c,2,100);b(a,c,2,10);b(a,c,2,1);b(a,c,3,1);p._silverlightVersion=c.join(".")}catch(d){}else if(a=
K.plugins["Silverlight Plug-In"])p._silverlightVersion=a.description;return p._silverlightVersion||""};p._flashVersion=0;p.getFlashVersion=function(){if(!p._flashVersion){var a=e.navigator;if("undefined"!=typeof a.plugins&&"object"==typeof a.plugins["Shockwave Flash"]){var b=a.plugins["Shockwave Flash"].description;b&&(a=a.mimeTypes,"undefined"==typeof a||!a["application/x-shockwave-flash"]||a["application/x-shockwave-flash"].enabledPlugin)&&(p._flashVersion=b.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,
"."))}else if("undefined"!=typeof e.ActiveXObject)try{if(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var c=b.GetVariable("$version");c&&(p._flashVersion=c.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}}catch(d){}}return p._flashVersion};p.getLanguage=function(){return(e.navigator&&(K.language||K.browserLanguage)||"").toLowerCase()};p.getJavaEnabled=function(){try{return K.javaEnabled()}catch(a){return!1}};l.fnv32a=function(a){for(var b=2166136261,c=0,d=a.length;c<d;++c)b^=a.charCodeAt(c),
b+=(b<<1)+(b<<4)+(b<<7)+(b<<8)+(b<<24);return b>>>0};p.getFingerPrint=function(){var a=[];if(K.plugins&&K.plugins.length)for(var b=0;b<K.plugins.length;b++){var c=K.plugins[b];l.mergeArrays(a,[c.name,c.version,c.description,c.filename])}if(K.mimeTypes&&K.mimeTypes.length)for(b=0;b<K.mimeTypes.length;b++)c=K.mimeTypes[b],l.mergeArrays(a,[c.type,c.description,c.suffixes]);return l.fnv32a(a.join(";"))+"01"};var wa=$.inherit({trimParams:!1,resource:"watch",retry:!0,postParams:["site-info"],sendHit:function(a,
b,c,d,e){this._hitExt(a,b,c,d,{ut:e,ar:!0,saveRef:!0})},sendAjaxHit:function(a,b,c,d){this._hitExt(a,b,c,null,d)},sendParams:function(a){this._hitExt(B().href,"","",a,{ar:!0,pa:!0,onlyData:!0})},sendGoal:function(a,b){if(!/[\/&=?#]/.test(a)){var d=a?"goal://"+B().hostname+"/"+encodeURIComponent(a):B().href,e=w(),g=a?B().href:c.referrer;this._hitExt(d,e,g,b,{ar:!0})}},sendClickLink:function(a,b,c){this._hitExt(a,b,B().href,null,c)},sendExtLink:function(a,b,c,d){this._hitExt(a,"",B().href,d,{ar:!0,
ln:!0,ut:Va})},sendFileUpload:function(a,b,c,d){this._hitExt(a,"",B().href,d,{ar:!0,ln:!0,dl:!0})},sendNotBounce:function(a){this._hitExt(B().href,"","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})},sendVideoAction:function(a,b,c,d){this._hitExt(c,d||"","",null,{ar:!0,va:a,vt:+b})},sendSocialClick:function(a,b,c){this._hitExt(c||B().href,"","",null,{ar:!0,sn:l.trim(a,64),sa:l.trim(b,64)})},_hitExt:function(a,b,c,d,g,m,n,u){function p(a,b){b&&(r[a]=b)}g=g||{};m=m||{};if("MetrikaPlayer"!=e.name){c="undefined"!=
typeof c?c:Ta;var r={};g.ar&&!g.onlyData&&(c=this._prepareHitUrl(c),a=this._prepareHitUrl(a));g.reqNum=!0;p("page-ref",l.trim(c,Ua));p("page-url",l.trim(a,Ua));-1!=B().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)?p("ut",Va):"undefined"!=typeof g.ut&&p("ut",l.trim(g.ut,64));if(d)if(a=h(d),this.trimParams&&a.length>cc)var t=!0;else p("site-info",a);g.saveRef&&(Ta=c);l.mixin(m,S(b,g,!0));this.send(r,m,function(){t&&(new wa({protocol:this.protocol,counterType:this.counterType,
counterId:this.counterId})).sendParams(d);n&&n.apply(u,arguments)},this)}},_prepareHitUrl:function(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}}),Qa=Ba.inherit({id:"script",request:function(a,b,
d,g,h){var m="_ymjsp"+l.random(),n=c.createElement("script");e[m]=M(function(a){try{delete e[m]}catch(b){e[m]=la}g.call(h,!0,a);n.parentNode&&n.parentNode.removeChild(n)},"transport.script");n.type="text/javascript";n.src=this._buildUrl(a,l.mixin({wmode:5,callback:m},b,d));a=c.getElementsByTagName("head")[0];a.insertBefore(n,a.firstChild);return!0}}),xa=wa.inherit({transports:[Qa],retry:!1,trimParams:!0,sendHit:function(a,b,c,d,e,g,h,l){this._hitExt(a,b,c,d,e,g?{vc:g}:null,h,l)}}),ia=[];$.retransmit();
var P=new wa({protocol:U,counterType:g,counterId:a}),ja;d.replacePhones=M(function(){try{var b=Ja("_ym_mp2_substs_"+a);if(b){var c=(new Function("return "+b))();c&&ga(c,!0)}}catch(d){}},"counter.replacePhones");d.reachGoal=M(function(a,b){P.sendGoal(a,b);return!0},"counter.reachGoal");d.trackLinks=M(ka,"counter.trackLinks");d.hit=M(function(a,b,c,d,e){a&&P.sendHit(a,b,c,d,e)},"counter.hit");d.params=M(function(a){if(a){var b=arguments.length;if(1<b){for(var c={},d=c,e=0;e<b-1;e++){var g=""+arguments[e];
d[g]={};e<b-2&&(d=d[g])}d[g]=arguments[b-1];a=c}P.sendParams(a)}},"counter.params");d.file=M(function(a,b,c,d){a&&P.sendFileUpload(a,b,c,d)},"counter.file");d.extLink=M(function(a,b,c,d){a&&P.sendExtLink(a,b,c,d)},"counter.extLink");d.notBounce=M(function(){var a=0;Xa&&Fa&&(a=Fa-Xa);P.sendNotBounce(a)},"counter.notBounce");var ba=[];d.addFileExtension=function(a){"string"==typeof a?ba.push(a):ba=ba.concat(a)};d.clickmap=function(a){d._clickmap?d._clickmap.updateStatus(a):d._clickmap=new Ha(a)};d.accurateTrackBounce=
function(b){"number"!=typeof b&&(b=15E3);if(!d._isAccurateTrackBounce){d._isAccurateTrackBounce=!0;var e=new ca({counterId:a}),g=e.get("lastHit");e.set("lastHit",+new Date);((e=e.get("lastHit"))&&(!g||g<e-18E5)||!R(c.referrer,B().href)||0.1>Math.random())&&Ca(function(){d.notBounce()},b)}};var ya=null,Q=!1;d.trackHash=function(a){!1===a?Q&&("onhashchange"in e?Ka(e,"hashchange",La):clearInterval(ya),Q=!1):Q||("onhashchange"in e?T(e,"hashchange",La):Ga(La),Q=!0);d._trackHash=Q};d.video=M(function(a,
b,c,d){var e=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,h=e.length;g<h;g+=1)if(a===e[g]){e=g;break a}e=-1}-1!==e&&P.sendVideoAction(a,b,c,d)}},"counter.video");d.social=M(function(a,b,c){a&&b&&P.sendSocialClick(a,b,c)},"counter.social");d.enableAll=function(){d.trackLinks(!0);d.clickmap(!0);d.accurateTrackBounce()};d.pause=gb;d.uploadPage=function(){};d._performanceTiming=W;a&&ra()},"init")()};e.Ya.Metrika.counters=function(){var a=[];Ha(e.Ya._metrika.counters,function(b,c){var l=c.split(":");
a.push({id:+l[0],type:+l[1],accurateTrackBounce:b._isAccurateTrackBounce,clickmap:b._clickmap&&b._clickmap._start,oldCode:!!e.ya_cid,trackHash:!!b._trackHash,trackLinks:b._trackLinks&&b._trackLinks.on,webvisor:!!b._webvisor})});return a};var Za=function(a,b){var c=/(&|\?)browser-info=rqnl:(\d+):/;a=a.match(c)?a.replace(c,"$1browser-info=rqnl:"+(+RegExp.$2+1)+":"):a.replace(/(&|\?)browser-info=/,"$1browser-info=rqnl:1:");c=new Image;ka.add(a,b);c.onload=function(){ka.deleteHit(a)};c.src=a;"function"==
typeof e.ymLog&&e.ymLog(a)},ka=function(){var a=new ca;return{init:function(){this.send();this._events()},_events:function(){var a=this,c=function(){a._wasEnd||(a._wasEnd=!0,a._onEnd())};T(e,"beforeunload",c);Kb||T(e,"unload",c)},_onEnd:function(){var b=[],c=0;this._update(b);for(var e=0;e<b.length;e++)b[e].delay>c&&(c=b[e].delay);a.set("defer",b)},get:function(){return a.get("defer")},add:function(b,c){var e=[{url:b,delay:c,time:J()}];this._update(e);a.set("defer",e)},deleteHit:function(b){var c=
[];this._update(c,b);a.set("defer",c)},_update:function(a,c){var e=this.get(),d=J();if(e&&ha(e)&&e.length)for(var l=0;l<e.length;l++){var h=e[l];h.url&&h.url!=c&&h.time>d-4E3&&a.push(h)}return a},send:function(){var a=this.get(),c=J();if(a){if(ha(a)&&a.length)for(var e=0;e<a.length&&10>e;e++){var d=a[e];d&&d.url&&d.time>c-36E5&&this._isCorrectUrl(d.url)&&Za(d.url)}this.clear()}},_isCorrectUrl:function(a){return 0===a.replace(/^https?:/,"").indexOf("//mc.yandex.ru/")},clear:function(){a.remove("defer")}}}();
ka.init();e.ya_cid&&new Ya.Metrika(e.ya_cid,e.ya_params,e.ya_class);e.ya_cid&&!e.ya_hit&&(e.ya_hit=function(a,b){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(a,b)});G=e.yandex_metrika_callback;L=e.yandex_metrika_callbacks;"function"==typeof G&&G();if("object"==typeof L)for(G=0;G<L.length;G++)if(Z=L[G])L[G]=null,Z();na("yandex_metrika_callback");na("yandex_metrika_callbacks");L=["link","click","scroll","res"];for(G=0;G<L.length;G++)if(Z=L[G]+"map",-1!=A.href.search("ym_playback="+Z)){va(fa+"//metrika.yandex.ru/js/"+
Z+"/_loader.js");break}e.Ya.Metrika.informer=function(a){var b=!!Ya.Metrika._informer;Ya.Metrika._informer=a;b||va(fa+"//mc.yandex.ru/metrika/informer.js")};(function(){var a=p.getJScriptVersion();if(!a||5.8<a)"complete"==c.readyState?oa():T(e,"load",oa)})();(function(){var a=function(){var a=c.getElementsByTagName("body")[0],b=c.createElement("iframe");b.src="http://awaps.yandex.ru/0/2153/0.htm?ad=165746&pl=93829&rnd="+ta();b.setAttribute("style","position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden");
a.appendChild(b);N(function(){a.removeChild(b)},1E4,"ad")},b=function(){e.removeEventListener("load",b,!1);a()},g=e.performance;ta(200)||Ya._metrika.isAd||(Ya._metrika.isAd=!0,"http:"==fa&&"object"==typeof g&&e.addEventListener&&(g.timing&&g.timing.loadEventStart?a():e.addEventListener("load",b,!1)))})()})(this,this.document);
