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