(function(g,h,L){function kb(a,b,c,d){function e(a){var b=(new Date).getTime();a&&b<a&&(Na+=a-b+20);f.setTimeout(function(){e(b)},20,"timeCorrector")}function q(){var a=(new Date).getTime()+Na;a<Ga&&(a=Ga+10);return Ga=a}function p(){return Math.round((q()-W)/50)}function ia(a,b){b=Math.max(0,Math.min(b,65535));f.mergeArrays(a,[b>>8,b&255])}function n(a,b){f.mergeArrays(a,[b&255])}function l(a,b){for(b=Math.max(0,b|0);127<b;)f.mergeArrays(a,[b&127|128]),b>>=7;f.mergeArrays(a,[b])}function ya(a,b){255<
b.length&&(b=b.substr(0,255));f.mergeArrays(a,[b.length]);for(var c=0;c<b.length;c++)ia(a,b.charCodeAt(c))}function r(a,b){l(a,b.length);for(var c=0;c<b.length;c++)l(a,b.charCodeAt(c))}function za(a,b,c,d,e,f){for(var F;c&&(F=m.getElementSize(c))&&(!F[0]||!F[1]);)c=m.getElementParent(c);if(!c)return null;F=c[D];if(!F||0>F)return null;var q={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[b];if(!q)return null;var g=m.getElementXY(c);c=[];n(c,q);l(c,a);l(c,F);l(c,Math.max(0,d[0]-g[0]));
l(c,Math.max(0,d[1]-g[1]));/^mouse(up|down)|click$/.test(b)&&(a=e||f,n(c,2>a?1:a==(e?2:4)?4:2));return c}function nb(a,b,c,d){b=b[D];if(!b||0>b)return null;var e=[];n(e,31);l(e,a);l(e,b);l(e,c[0]);l(e,c[1]);n(e,0);n(e,0);n(e,d);return e}function ob(a,b){var c=[];n(c,3);l(c,a);l(c,b[0]);l(c,b[1]);return c}function pb(a,b,c){var d=[];c=c[D];if(!c||0>c)return null;n(d,16);l(d,a);l(d,b[0]);l(d,b[1]);l(d,c);return d}function T(a,b,c){var d=[];n(d,28);l(d,a);l(d,b[0]);l(d,b[1]);l(d,c[0]);l(d,c[1]);return d}
function A(a,b,c,d){var e=[];n(e,5);l(e,a);ia(e,b);n(e,c);a=d[D];if(!a||0>a)a=0;l(e,a);return e}function Q(a,b){var c;if(0==b.length)var d=c="";else 100>=b.length?(c=b,d=""):200>=b.length?(c=b.substr(0,100),d=b.substr(100)):(c=b.substr(0,97),d=b.substr(b.length-97));var e=[];n(e,29);l(e,a);r(e,c);r(e,d);return e}function x(a){var b=[];n(b,27);l(b,a);return b}function qb(a){var b=[];n(b,14);l(b,a);return b}function rb(a){var b=[];n(b,15);l(b,a);return b}function sb(a,b){var c=[];n(c,17);l(c,a);l(c,
b[D]);return c}function tb(a,b){var c=[];n(c,18);l(c,a);l(c,b[D]);return c}function w(a,b,c){var d=[];n(d,19);l(d,a);l(d,b[D]);ya(d,String(c));return d}function E(a){var b=a[D];if(!b||0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||L(a.form))return null;var c=m.getFormNumber(a.form);if(0>c)return null;var d="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 d)return null;for(var e=-1,f=a.form.elements,F=f.length,q=0,g=0;q<F;q++)if(f[q].name==a.name){if(f[q]==a){e=g;break}g++}if(0>e)return null;f=[];n(f,7);l(f,b);l(f,c);l(f,d);r(f,a.name||"");l(f,e);return f}function C(a,b){var c=m.getFormNumber(b);if(0>c)return null;for(var d=b.elements,e=d.length,F=[],q=0;q<e;q++)if(!m.isEmptyField(d[q])){var g=d[q][D];g&&0<g&&f.mergeArrays(F,[g])}d=[];n(d,11);l(d,a);l(d,c);l(d,F.length);for(c=0;c<F.length;c++)l(d,
F[c]);return d}function G(){var a=[];n(a,13);return a}function y(a,b,c){a=a.apply(g,b);na.append(a,c)}function H(a){if(a[D])a:{var b=p(),c=a[D];if(0<c){var d=[];a=m.getElementRegion(a);var e=ba[c],f=a[0]+"x"+a[1],q=a[2]+"x"+a[3];f!=e.pos&&(e.pos=f,n(d,9),l(d,b),l(d,c),l(d,a[0]),l(d,a[1]));q!=e.size&&(e.size=q,n(d,10),l(d,b),l(d,c),l(d,a[2]),l(d,a[3]));if(d.length){a=d;break a}}a=null}else{(c=m.getElementParent(a))&&H(c);a[D]=U;ba[U]={};U++;if(a.nodeName)if(c=+a[D],!isFinite(c)||0>=c)b=null;else{var d=
64,e=0,g=m.getElementParent(a),f=g&&g[D]?g[D]:0;0>f&&(f=0);var q=a.nodeName.toUpperCase(),F=ub[q];F||(d|=2);var h=m.getElementNeighborPosition(a);h||(d|=4);var u=m.getElementRegion(a);(g=g?m.getElementRegion(g):null)&&u[0]==g[0]&&u[1]==g[1]&&u[2]==g[2]&&u[3]==g[3]&&(d|=8);ba[c].pos=u[0]+"x"+u[1];ba[c].size=u[2]+"x"+u[3];a.id&&"string"==typeof a.id&&(d|=32);(g=m.calcTextChecksum(a))&&(d|=16);var B=m.calcAttribChecksum(a);B&&(e|=2);b:{var k=m.getElementChildren(m.getElementParent(a),a.tagName);for(var M=
0;M<k.length;M++)if((!k[M].id||"string"!=typeof k[M].id)&&m.calcAttribChecksum(k[M])==B&&m.calcTextChecksum(k[M])==g){k=!0;break b}k=!1}k&&(d|=1,b=m.calcChildrenChecksum(a));k=[];n(k,1);l(k,c);n(k,d);l(k,f);F?n(k,F):ya(k,q);h&&l(k,h);d&8||(l(k,u[0]),l(k,u[1]),l(k,u[2]),l(k,u[3]));d&32&&ya(k,a.id);g&&ia(k,g);d&1&&ia(k,b);n(k,e);B&&ia(k,B);b=k}else a[D]=-1,b=null;na.append(b,void 0);a=E(a)}na.append(a,void 0)}function K(a,b){var c=a&&m.classNameExists(a,"(ym-disable-keys|-metrika-nokeys)");b&&a&&(c=
c||!!m.getElementsByClassName("(ym-disable-keys|-metrika-nokeys)",a).length);return c}function L(a){return a&&m.classNameExists(a,"(ym-disable-submit|-metrika-noform)")}function J(a){var b=z.getTarget(a);if(b&&"SCROLLBAR"!=b.nodeName){if(/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b.tagName))if(b[D])H(b);else{var c=b.form;if(c)for(var c=c.elements,d=c.length,e=0;e<d;e++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[e].tagName)&&!c[e][D]&&H(c[e]);else H(b)}else H(b);y(za,[p(),a.type,b,z.getPos(a),a.which,a.button])}}
function P(a){J(a);a:{if(g.getSelection){try{var b=g.getSelection()}catch(mb){break a}var c=b.toString();var d=b.anchorNode}else h.selection&&h.selection.createRange&&(a=h.selection.createRange(),c=a.text,d=a.parentElement());if("string"==typeof c){try{for(;d&&1!=d.nodeType;)d=d.parentNode}catch(mb){break a}d&&N(d)||K(d,!0)||c==X||(X=c,y(Q,[p(),c]))}}}function aa(a){var b=q(),c=b-Z;if(!(10>c)){var d=z.getPos(a),e=O[0]-d[0],f=O[1]-d[1],e=e*e+f*f;0>=e||16>e&&100>c||20>c&&256>e||(Z=b,O=d,J(a))}}function ka(){var a=
m.getDocumentScroll(),b=q();10>b-S||10>Math.abs(a[0]-ca[0])&&10>Math.abs(a[1]-ca[1])||(S=b,ca=a,y(ob,[p(),a]))}function B(a){if(a=z.getTarget(a)){var b=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=V[a.localId],!b||10>Math.abs(c[0]-b[0])&&10>Math.abs(c[1]-b[1]))return}else{for(;V[b];)b=Math.random();a.localId=b}V[a.localId]=c;a!==h&&(H(a),y(pb,[p(),c,a]))}}function u(){y(T,[p(),m.getViewportSize(),m.getDocumentSize()])}function M(){y(G,[],!0)}function R(a){return(a.shiftKey?2:0)|(a.ctrlKey?
4:0)|(a.altKey?1:0)|(a.metaKey?8:0)|(a.ctrlKey||a.altKey?16:0)}function N(a){return"INPUT"==a.tagName?"password"==a.type||a.name&&ha.test(a.name)||a.id&&ha.test(a.id):!1}function oa(a,b,c){!(a=z.getTarget(a))||N(a)||K(a)||(H(a),y(A,[p(),b,c,a]))}function Oa(a){var b=a.keyCode,c=R(a);if({3:1,8:1,9:1,13:1,16:1,17:1,18:1,19:1,20:1,27:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,45:1,46:1,91:1,92:1,93:1,106:1,110:1,111:1,144:1,145:1}[b]||112<=b&&123>=b||96<=b&&105>=b||c&16)19==b&&4==(c&-17)&&(b=144),oa(a,
b,c|16),fa=!1,f.setTimeout(function(){fa=!0},1),!(67==b&&c&4)||c&1||c&2||Ha()}function Pa(a){fa&&!ga&&0!==a.which&&(oa(a,a.charCode||a.keyCode,R(a)),ga=!0,f.setTimeout(function(){ga=!1},1))}function Ha(){Y||(Y=!0,X&&y(x,[p()]),f.setTimeout(function(){Y=!1},1))}function Ia(){sa||(sa=!0,y(qb,[p()]))}function ta(){sa&&(sa=!1,y(rb,[p()]))}function Qa(a){(!sa||a&&!a.fromElement)&&Ia()}function Ra(a){a&&!a.toElement&&ta()}function Aa(a){if((a=z.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[D])H(a);
else{var b=a.form;if(b)for(var b=b.elements,c=b.length,d=0;d<c;d++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[d].tagName)&&!b[d][D]&&H(b[d]);else H(a)}y(sb,[p(),a])}}function Ba(a){(a=z.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(H(a),y(tb,[p(),a]))}function Ca(a){if((a=z.getTarget(a))&&!N(a)&&!K(a)&&/^INPUT|SELECT|TEXTAREA$/.test(a.tagName)){var b=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;H(a);y(w,[p(),a,b])}}function ua(a){if((a=z.getTarget(a))&&!L(a)&&"FORM"==a.nodeName){for(var b=
a.elements,c=0;c<b.length;c++)m.isEmptyField(b[c])||H(b[c]);y(C,[p(),a],!0)}}function Ja(a){ka();if(a.touches&&a.touches.length){var b=z.getTarget(a);if(b&&b!=h){H(b);for(var c=0;c<a.touches.length;c++)y(za,[p(),"touch",b,[a.touches[c].pageX,a.touches[c].pageY],0,0])}}}function Da(a){var b=z.getTarget(a);if(b){var c;"wheel"==a.type?c=0<a.deltaY?1:0>a.deltaY?2:0:"mousewheel"==a.type&&(c=0<a.wheelDelta?2:0>a.wheelDelta?1:0);c&&(H(b),y(nb,[p(),b,z.getPos(a),c]))}}function ea(a){(a=z.getTarget(a))&&"BODY"==
a.tagName&&na.append([],!0)}var na=new Ea({protocol:a,counterId:b,counterType:c,meta:{url:v().href,hitId:d,timezone:va,timestamp:wa}}),ub={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},Na=0,Ga=0;e(0);var U=1,Z=0,O=[0,0],S=0,ca=[0,0],V={},ha=/^(password|passwd|pswd)$/,fa=!0,ga=!1,X="",Y=!1,sa=!0,W=q(),D="metrikaId_"+
Math.random(),ba={},da=":submit"+Math.random();if(!f.isMetrikaPlayer()){k.on(h,"mousemove",aa);k.on(h,"click,dblclick,mousedown",J);k.on(h,"mouseup",P);k.on(g,"scroll",ka);if("onmousewheel"in h)k.on(h,"mousewheel",Da);else k.on(h,"wheel",Da);k.on(g,"beforeunload",M);if(!vb)k.on(g,"unload",M);k.on(g,"resize",u);k.on(h,"keydown",Oa);k.on(h,"keypress",Pa);k.on(h,"copy",Ha);k.on(h,"touchmove,touchstart",Ja);if(h.body)k.on(h,"mouseleave",ea);h.attachEvent&&!g.opera?(k.on(h,"focusin",Qa),k.on(h,"focusout",
Ra)):(k.on(g,"focus",Ia),k.on(g,"blur",ta),k.on(h,"blur",ta));h.addEventListener?(k.on(h,"scroll",B),k.on(h,"focus",Aa),k.on(h,"blur",Ba),k.on(h,"change",Ca),k.on(h,"submit",ua)):h.attachEvent&&(k.on(h,"focusin",Aa),k.on(h,"focusout",Ba),function(){for(var a=h.getElementsByTagName("form"),b=0;b<a.length;b++){for(var c=a[b].getElementsByTagName("*"),d=0;d<c.length;d++)if(/^INPUT|SELECT|TEXTAREA$/.test(c[d].tagName))k.on(c[d],"change",Ca);k.on(a[b],"submit",ua)}}());(function(){var a=h.getElementsByTagName("form");
if(a.length)for(var b=0;b<a.length;b++){var c=a[b].submit;if("function"==typeof c||"object"==typeof c&&/^\s*function submit\(\)/.test(String(c)))a[b][da]=c,a[b].submit=function(){ua({target:this});return this[da]()}}})();"0:0"!=m.getDocumentScroll().join(":")&&ka();u()}return{start:function(){na.activate()},stop:function(){na.clear();k.un(h,"mousemove",aa);k.un(h,"click,dblclick,mousedown",J);k.un(h,"mouseup",P);k.un(h,"mousewheel",Da);k.un(h,"wheel",Da);k.un(g,"scroll",ka);k.un(g,"beforeunload",
M);k.un(g,"unload",M);k.un(g,"resize",u);k.un(h,"keydown",Oa);k.un(h,"keypress",Pa);k.un(h,"copy",Ha);k.un(h,"touchmove",Ja);k.un(h,"touchstart",Ja);h.body&&k.un(h,"mouseleave",ea);k.un(h,"focusin",Qa);k.un(h,"focusout",Ra);k.un(g,"focus",Ia);k.un(g,"blur",ta);k.un(h,"blur",ta);h.removeEventListener?(k.un(h,"scroll",B),k.un(h,"focus",Aa),k.un(h,"blur",Ba),k.un(h,"change",Ca),k.un(h,"submit",ua)):h.detachEvent&&(k.un(h,"focusin",Aa),k.un(h,"focusout",Ba),function(){for(var a=h.getElementsByTagName("form"),
b=0;b<a.length;b++){for(var c=a[b].getElementsByTagName("*"),d=0;d<c.length;d++)/^INPUT|SELECT|TEXTAREA$/.test(c[d].tagName)&&k.un(c[d],"change",Ca);k.un(a[b],"submit",ua)}}());(function(){for(var a=h.getElementsByTagName("form"),b=0;b<a.length;b++)a[b][da]&&(a[b].submit=a[b][da])})()},uploadPages:function(a,b){function c(){var e;k.un(h,"DOMContentLoaded",c);k.un(g,"load",c);for(var f=a.split(/\n/),q=v().href,p=/regexp:/,l=0;l<f.length;l++)if(e=f[l])if(p.test(e)){e=Sa(e.replace(p,""));try{var u=new RegExp(e)}catch(Rb){}if(u&&
u.test(q)){d.uploadPage(b);break}}else if(-1!==q.indexOf(e)){d.uploadPage(b);break}}var d=this;"complete"==h.readyState?c():(k.on(h,"DOMContentLoaded",c),k.on(g,"load",c))},uploadPage:t(function(e){if("function"==typeof g.toStaticHTML&&-1<g.toStaticHTML.toString().indexOf("NoScript"))return!1;var f=h.documentElement;if(f&&19E4<(""+f.innerHTML).length)return!1;var q=g.XMLHttpRequest?new g.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),p=m.getDocumentCharset(),l="text/html"+(p?";charset\x3d"+p:
""),u=new wb({protocol:a,counterId:b,counterType:c});if("html"==e)return e=new RegExp("\x3cscript [^\x3e]*?//"+I.host.replace(/\./g,"\\\\.")+"/watch/.*?\x3c/script\x3e","gi"),u.sendContent(m.getDocumentHTML().replace(e,""),l,d,va,wa),!0;q&&(q.open("get",v().href,!0),q.onreadystatechange=t(function(){if(4==q.readyState){var a=q.getResponseHeader("content-type")||"";p&&-1===a.indexOf("charset\x3d")&&(a=l);u.sendContent(q.responseText,a,d,va,wa)}},"updatePage.1"),q.overrideMimeType&&p&&q.overrideMimeType(l),
q.send(null));return!0},"uploadPage")}}function t(a,b,c){return function(){try{return a.apply(this,arguments)}catch(d){c||Ta(d,b)}}}function Ta(a,b){var c;if(.01>Math.random())try{var d=a&&a.message||"";(c=-1<d.indexOf("network error occurred")||-1<d.indexOf("send beacon")&&-1<d.indexOf("Content Security Policy"))||(new ga).log("jserrs",X,a.message,b,A.href,"","string"===typeof a.stack&&a.stack.replace(/\n/g,"\\n"))}catch(e){}}function v(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),
c=b.length,d=c,e,f;d--;)a[b[d]]="";try{for(e=g.location,d=c;d--;)f=b[d],a[f]=""+e[f]}catch(p){A&&(a=A)}return a}function Sa(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function Ua(){return-1!=v().hostname.search(/(?:^|\.)(?:ya|yandex)\.(?:\w+|com?\.\w+)$/)}function la(a){return-1!==(""+g.navigator.userAgent).toLowerCase().search(a)}function Y(a){var b,c=a.length,d="";for(b=0;b<c;b++)d+=String.fromCharCode(a.charCodeAt(b)+50);return C.encode(U.encode(d))}function G(a){var b,c="";a=
C.decode(a);var d=0;for(b=a.length;d<b;d++)c+=String.fromCharCode(a.charCodeAt(d)-50);return c}function Va(a){return Sa(a&&a.innerHTML&&a.innerHTML.replace(/<\/?[^>]+>/gi,""))}function Wa(a,b){var c;if(!a||!b)return!1;var d=[];for(c=0;c<b.length;c++)d.push(b[c].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(new RegExp("\\.("+d.join("|")+")$","i")).test(a)}function xb(a){a=a.target||a.srcElement;var b;if(!a)return!1;3==a.nodeType&&(a=a.parentNode);for(b=a&&a.nodeName&&a.nodeName.toString().toLowerCase();a&&a.parentNode&&a.parentNode.nodeName&&("a"!=b&&"area"!=b||!a.href);)b=(a=a.parentNode)&&a.nodeName&&a.nodeName.toString().toLowerCase();return a.href?a:!1}function yb(a,b){return(a?a.replace(/^www\./,""):"").toLowerCase()==(b?b.replace(/^www\./,""):"").toLowerCase()}
function zb(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 Xa(){var a=g.performance||g.webkitPerformance,b=a&&a.timing,c,d=[];if(b&&(c=b.navigationStart))for(d=[b.domainLookupEnd-b.domainLookupStart,b.connectEnd-b.connectStart,b.responseStart-b.requestStart,b.responseEnd-b.responseStart,b.fetchStart-c,b.redirectEnd-b.redirectStart,b.redirectCount||a.navigation&&a.navigation.redirectCount],d.push(b.domInteractive&&
b.domLoading?b.domInteractive-b.domLoading:null),d.push(b.domContentLoadedEventStart&&b.domContentLoadedEventEnd?b.domContentLoadedEventEnd-b.domContentLoadedEventStart:null),d.push(b.domComplete?b.domComplete-c:null),d.push(b.loadEventStart?b.loadEventStart-c:null),d.push(b.loadEventStart&&b.loadEventEnd?b.loadEventEnd-b.loadEventStart:null),d.push(b.domContentLoadedEventStart?b.domContentLoadedEventStart-c:null),a=0;a<d.length;a++)b=d[a],null!==b&&(0>b||36E5<b)&&(d[a]=null);return d}function Ab(a){var b=
[],c=a._lastPerformanceTiming,d=Xa(),e;if(c){var f=0;for(e=c.length;f<e;f++)null===d[f]?b.push(d[f]):b.push(c[f]===d[f]?"":d[f])}else b=d;a._lastPerformanceTiming=d;return b.join(",")}function Bb(){if("object"==typeof g.chrome&&g.chrome.loadTimes){var a=g.chrome.loadTimes();if(a.requestTime&&a.firstPaintTime&&g.performance&&g.performance.timing)return Math.round(1E3*a.firstPaintTime-g.performance.timing.navigationStart)}else if(g.performance&&g.performance.timing&&(a=g.performance.timing,a.navigationStart&&
a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}function Cb(a){var b=h.referrer||"",c,d;if((new RegExp("^https?://"+A.host+"/")).test(b))return!1;var e=a.patterns;for(c=0;c<e.length;c++){var q=new RegExp(e[c],"i");if(b.match(q))if(q=a.params||[],q.length){var g=f.safeDecodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20"));for(d=0;d<q.length;d++)if(g==f.safeDecodeURIComponent(q[d]))return!0}else return!0}return!1}function Za(a,b){var c=!1,d;if(a&&"string"!=typeof a&&a.length)for(d=
0;d<a.length;d++){var e=a[d].selector;var f=a[d].text;var g=e.charAt(0);e=e.slice(1);if("#"==g){if(g=h.getElementById(e))c=!0,b&&Z.unshift([g,g.innerHTML]),g.innerHTML=f}else if("."==g)for(g=m.getElementsByClassName(e),e=0;e<g.length;e++){var c=!0,k=g[e],n=f;b&&Z.unshift([k,k.innerHTML]);k.innerHTML=n}}return c}function $a(){var a;for(a=0;a<Z.length;a++)Z[a][0].innerHTML=Z[a][1]}function Db(a,b){var c,d="";a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"")||"";if(a){var e=a.split("\x26");for(c=0;c<
e.length;c++){var g=e[c].split("\x3d");"_openstat"===g[0]&&(d=g[1])}}var p=b.split("?");for(c=0;c<p.length;c++){var k=p[c].split("\x26");for(e=0;e<k.length;e++)g=k[e].split("\x3d"),"_openstat"===g[0]&&(d=g[1])}d&&(d=-1<d.indexOf(";")?f.safeDecodeURIComponent(d):U.decode(C.decode(d.replace(/[-*_]/g,function(a){return{"*":"+","-":"/",_:"\x3d"}[a]||a}))));return d&&(c=d.split(";"),4==c.length)?{service:c[0],campaign:c[1],ad:c[2],source:c[3]}:null}var I={protocol:"https:",baseUrl:"mc.yandex.",yandexWhiteListTld:"ru ua by kz az kg lv md tj tm uz ee fr co.il com.ge com.am com.tr".split(" ")};
I.host=I.baseUrl+"ru";var f={mixin:function(a){var b,c;for(b=1;b<arguments.length;b++)if(arguments[b]){for(c in arguments[b])arguments[b].hasOwnProperty(c)&&(a[c]=arguments[b][c]);arguments[b].hasOwnProperty("toString")&&(a.toString=arguments[b].toString)}return a}},w=function(a){a=a||{};f.mixin(this,a);this._initComponent()};w.prototype._initComponent=function(){};w.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;f.mixin(a.constructor.prototype,a);a.constructor.prototype.constructor=a.constructor;a.constructor.superclass=b.prototype;a.constructor.inherit=w.inherit;return a.constructor};f.isArray=function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"==Object.prototype.toString.call(a)};f.mergeArrays=function(a){var b,c,d=arguments.length;for(b=1;b<d;b++){var e=arguments[b];if(f.isArray(e)||e&&
"[object Arguments]"===e.toString())for(c=0;c<e.length;c++)a[a.length]=e[c]}return a};f.getNativeFunction=function(a,b){var c;b=b||g;return(c=b.constructor&&b.constructor.prototype&&b.constructor.prototype[a]||b[a])&&"apply"in c?function(){return c.apply(b,arguments)}:function(){}};f.setTimeout=function(a,b,c){return f.getNativeFunction("setTimeout")(t(a,c||"setTimeout"),b)};f.defer=function(a,b,c,d,e){return f.setTimeout(function(){a.apply(c,d||[])},b,e)};f.throttle=function(a,b,c,d){var e,g,p;return function(){g=
arguments;p=this;e||function(){e=null;g&&(a.apply(c||p,g),g=null,e=f.setTimeout(arguments.callee,b,d))}()}};var ab=w.inherit({storage:null,storageKey:"dataBuffer",maxBufferSize:255,flushTimeout:1E4,startBufferTime:0,active:!0,meta:null,onFlush:function(){},onFlushCtx:null,bufferExpireTime:864E5,_initComponent:function(){var a;ab.superclass._initComponent.apply(this,arguments);this._data=[];this._packetNumber=0;this._flushTID=null;this._saveToStorageThrottled=f.throttle(this._saveToStorage,300,this,
"DataBuffer._saveToStorage");this.storage&&((a=this.storage.get(this.storageKey))&&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())},getFlushSize:function(){return this._data.length},append:function(a,b){f.mergeArrays(this._data,a);this._saveToStorageThrottled();this.active&&((b||this.getFlushSize()>=this.maxBufferSize)&&this._flush(),this._flushTID||(this._flushTID=f.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(){if(!this._data.length)return!1;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})}});f.forEachKey=function(a,b,c){for(var d in a)a.hasOwnProperty(d)&&b.call(c,d,a[d],a)};f.isEqual=function(a,b){var c=!0;f.forEachKey(a,function(a,e){b.hasOwnProperty(a)&&b[a]===e||(c=!1)});if(!c)return c;f.forEachKey(b,function(b,e){a.hasOwnProperty(b)&&a[b]===e||(c=!1)});return c};var k=w.inherit({_initComponent:function(){k.superclass._initComponent.apply(this,arguments);this._listeners=[]},on:function(a,b,c,d,e){e=k._getOpts(e);b=b.split(",");var f=b.length,p=this._listeners,
h;for(h=0;h<f;h++){var n=b[h];var l=t(function(a){c.call(d||this,a||g.event)},"on"+n);p[p.length]=[a,n,c,d,e,l];a.addEventListener?a.addEventListener(n,l,k._prepOpts(e)):a.attachEvent&&a.attachEvent("on"+n,l)}},un:function(a,b,c,d,e){e=k._getOpts(e);var g=this._listeners,p=g.length,h;for(h=0;h<p;h++){var n=g[h];if(n[0]==a&&n[1]==b&&n[2]==c&&n[3]==d&&f.isEqual(n[4],e)){g.splice(h,1);this._removeListener(a,b,n[5],e);break}}},unAll:function(){var a=this._listeners,b=a.length,c;for(c=0;c<b;c++){var d=
a[c];this._removeListener(d[0],d[1],d[5],d[4])}a.length=0},_removeListener:function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,k._prepOpts(d)):a.detachEvent&&a.detachEvent("on"+b,c)}});k.supportsPassive=function(){if(k._supportsPassive!==L)return k._supportsPassive;k._supportsPassive=!1;try{var a=Object.defineProperty({},"passive",{get:function(){k._supportsPassive=!0}});g.addEventListener("test",null,a)}catch(b){}return k._supportsPassive};k._getOpts=function(a){return f.mixin({capture:!0,
passive:!0},a||{})};k._prepOpts=function(a){return k.supportsPassive()?a:!!a.capture};k.on=function(){k._instance||(k._instance=new k);k._instance.on.apply(k._instance,arguments)};k.un=function(){k._instance&&k._instance.un.apply(k._instance,arguments)};f.async=function(a){if(g.postMessage){var b="__ym__promise"+Math.random()+"_"+ +new Date;var c=function(d){d.data===b&&(d.stopPropagation&&d.stopPropagation(),a(),k.un(g,"message",c,null,{passive:!1}))};k.on(g,"message",c,null,{passive:!1});g.postMessage(b,
"*")}else f.setTimeout(a,0)};var pa=w.inherit({transports:[],postParams:[],dontSendRequests:!1,send:function(a,b,c,d){var e=[a],g=this,p=c||function(){};g.dontSendRequests?p.call(d):function n(a){if(a<this.transports.length)try{var c=new this.transports[a]({postParams:this.postParams,queryStringParams:this.queryStringParams});b["browser-info"]=c.logInfo(b["browser-info"]);(function za(q){q>=e.length?n.call(this,a+1):c.request(e[q],b,function(a,b,c){a?p.call(d,b,c):f.async(function(){za.call(g,q+1)})},
this)}).call(this,0)}catch(lb){Ta(lb,"send by "+(c&&c.id)),n.call(this,a+1)}}.call(this,0)}}),aa={};f.keys=function(a){var b,c=[];for(b in a)a.hasOwnProperty(b)&&c.push(b);return c};f.map=function(a,b){var c,d=[];for(c=0;c<b.length;c++)d.push(a(b[c],c));return d};aa.stringify=function(a,b){var c=[],d=b||{},e={},g=f.keys(a).length,p,h;if(d.lastOrdering!==L)for(h=1;h<=b.lastOrdering.length;h++)e[b.lastOrdering[h-1]]=g+h;if(d.firstOrdering!==L)for(h=0;h<b.firstOrdering.length;h++)e[b.firstOrdering[h]]=
h;for(p in a)if(a.hasOwnProperty(p))if(d=a[p],f.isArray(d))for(h=0;h<d.length;h++)c.push({key:p,value:encodeURIComponent(p)+"\x3d"+encodeURIComponent(String(d[h]))});else c.push({key:p,value:encodeURIComponent(p)+"\x3d"+encodeURIComponent(String(d))});c.sort(function(a,b){var c=e[a.key],d=e[b.key];"undefined"===typeof c&&(c=g);"undefined"===typeof d&&(d=g);return c-d});return f.map(function(a){return a.value},c).join("\x26")};f.inArray=function(a,b){var c;for(c=0;c<a.length;c++)if(a[c]==b)return!0;
return!1};var O=w.inherit({postParams:[],index:0,logInfo:function(a){var b;if(a)return a=(b=a.match(/^ti:\d:/))?a.replace(b[0],""):a,"ti:"+this.index+":"+a},_buildUrl:function(a,b){var c=aa.stringify(b,this.queryStringParams);return a+(-1<a.indexOf("?")?"\x26":c?"?":"")+c},_splitParams:function(a){var b={},c={};f.forEachKey(a,function(a,e){f.inArray(this.postParams,a)?c[a]=e:b[a]=e},this);return{get:b,post:c}}}),qa=O.inherit({id:"XHR",index:7,method:"POST",withCredentials:!0,request:function(a,b,
c,d){if(/[^a-z0-9.:-]/.test(A.host)&&g.opera&&"function"==typeof g.opera.version){var e=g.opera.version();if("string"==typeof e&&"12"==e.split(".")[0])return c.call(d,!1)}if(g.XMLHttpRequest){var f=new XMLHttpRequest;if("withCredentials"in f){b=this._splitParams(b);a=this._buildUrl(a,b.get);try{f.open(this.method,a,!0)}catch(p){return c.call(d,!1)}f.withCredentials=this.withCredentials;this._setHeaders(f);f.send(this._preparePostParams(b));f.onreadystatechange=function(){4==f.readyState&&c.call(d,
200==f.status,f.responseText)};return}}c.call(d,!1)},setMethod:function(a){this.method=a},_preparePostParams:function(a){return aa.stringify(a.post)},_setHeaders:function(a){a.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}}),Eb=O.inherit({id:"beacon",index:1,request:function(a,b,c,d){"function"==typeof navigator.sendBeacon&&navigator.onLine?(b=this._splitParams(b),b.get["force-urlencoded"]=1,c.call(d,navigator.sendBeacon(this._buildUrl(a,b.get),aa.stringify(b.post)))):c.call(d,
!1)}});f.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 S=O.inherit({id:"form",index:2,enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){S.superclass._initComponent.apply(this,arguments);"_htmlfile"in S.prototype||(S.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:h)},request:function(a,b,c,d){var e=this._doc;if(!e)return c.call(d,!1);
b=this._splitParams(b);var g="ifr"+f.random();var h=e.createElement("div");h.style.position="absolute";h.style.left="-99999px";h.style.top="-99999px";var k=['\x3ciframe name\x3d"',g,'"\x3e\x3c/iframe\x3e','\x3cform action\x3d"',this._buildUrl(a,b.get),'" method\x3d"post" target\x3d"',g,'" enctype\x3d"',this.enctype,'"\x3e'];f.forEachKey(b.post,function(a){f.mergeArrays(k,['\x3cinput type\x3d"hidden" autocomplete\x3d"off" autocorrect\x3d"off"',' autocapitalize\x3d"off" spellcheck\x3d"false" name\x3d"',
a,'"/\x3e'])});f.mergeArrays(k,["\x3c/form\x3e"]);h.innerHTML=k.join("");e.body.appendChild(h);var n=h.getElementsByTagName("form")[0];f.forEachKey(b.post,function(a,b){n[a].value=b});n.submit();f.setTimeout(function(){e.body.removeChild(h)},1E4,"TransportForm.request.2");return c.call(d,!0)},_createHtmlfile:function(){try{if(g.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("\x3chtml\x3e\x3cbody\x3e\x3c/body\x3e\x3c/html\x3e");a.close();return a}}catch(b){}return null}}),Fb=S.inherit({id:"htmlfile",
index:3,htmlfileOnly:!0}),W=O.inherit({id:"img",index:4,request:function(a,b,c,d){a=this._buildUrl(a,b);var e=!1;b=h.createElement("img");c=c||function(){};b.onload=t(function(){e||(c.call(d,!0),e=!0)},"TransportImage.request");b.onerror=t(function(){e||(c.call(d,!1),e=!0)},"TransportImage.request");b.src=a;this.timeout&&f.setTimeout(function(){e||(c.call(d,!1),e=!0)},this.timeout)}}),ba={stringify:function(a){try{return JSON.stringify(a)}catch(b){return"null"}}};f.toJSON=function(a){var b;if(a===
L)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,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"';case Array:var c=[];var d=0;for(b=a.length;d<b;d++)c[c.length]=f.toJSON(a[d]);return"["+c.join(",")+"]";case Object:c=[];for(d in a)a.hasOwnProperty(d)&&a[d]!==L&&(c[c.length]=f.toJSON(d)+":"+f.toJSON(a[d]));return"{"+c.join(",")+"}";default:return ba.stringify(a)}};
var P=w.inherit({counterId:"",_initComponent:function(){P.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&&f.isArray(b)&&!b.length?this.remove(a):this._ls.setItem(this._getLsKey(a),f.toJSON(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},clearStorageId:function(){this.remove("lsid")},_getLsKey:function(a){return"_ym"+this.counterId+"_"+a}}),J=w.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){var a;J.superclass._initComponent.apply(this,arguments);this._domain=null;if(!this.onlyCurrentDomain){var b=
A.host.split(".");for(a=2;;)if(a<=b.length){if(this._domain="."+b.slice(-a).join("."),a++,this.isEnabled())break}else{this._domain=null;break}}},create:function(a,b,c){a=[this._prepareName(a)+"\x3d"+encodeURIComponent(b)];c&&(b=new Date,b.setTime(b.getTime()+6E4*c),a.push("expires\x3d"+b.toGMTString()));this._domain&&a.push("domain\x3d"+this._domain);a.push("path\x3d/");try{h.cookie=a.join(";")}catch(d){}},read:function(a){try{var b=h.cookie}catch(c){}return b&&b.match(new RegExp("(?:^|;\\s*)"+this._prepareName(a)+
"\x3d([^;]*)"))?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:"")}});J.isEnabled=function(){return(new J({onlyCurrentDomain:!0})).isEnabled()};var E={getSeconds:function(){return Math.round(+new Date/1E3)}},K=pa.inherit({protocol:"",host:I.host,
queryStringParams:{firstOrdering:["wmode","callback","cnt-class"],lastOrdering:["browser-info"]},resource:"",counterId:"",counterType:0,retry:!1,transports:[Eb,qa,W,Fb],_initComponent:function(){K.superclass._initComponent.apply(this,arguments);this.retry&&(this._storage=new P)},send:function(a,b,c,d){var e=this._registerRequest(a,b);this._sendSavedRequest(e,a,b,c,d)},_sendSavedRequest:function(a,b,c,d,e){var h=g.Ya._metrika.firstReqStatus;if("process"==h)g.Ya._metrika.firstReqCallbacks=f.mergeArrays(g.Ya._metrika.firstReqCallbacks||
[],[[this,arguments]]);else{h||(g.Ya._metrika.firstReqStatus="process");this.counterType&&(b["cnt-class"]=this.counterType);c.st=E.getSeconds();c.u=K._userID;h=[this.protocol,"//",this.host,"/",this.resource,"/",this.counterId].join("");var p=[];c&&(f.forEachKey(c,function(a,b){"t"!=a&&f.mergeArrays(p,[a,b])}),c.t&&f.mergeArrays(p,["t",c.t]));p.length&&(b["browser-info"]=p.join(":"));return K.superclass.send.call(this,h,b,function(){var b;g.Ya._metrika.firstReqStatus="complete";this._unregisterRequest(a);
var c=g.Ya._metrika.firstReqCallbacks;g.Ya._metrika.firstReqCallbacks=null;if(c)for(b=0;b<c.length;b++)c[b][0]._sendSavedRequest.apply(c[b][0],c[b][1]);d&&d.apply(e,arguments)},this)}},_isRetryEnabled:function(){return this.retry&&this._storage&&this._storage.isEnabled()},_registerRequest:function(a,b){var c;if(this._isRetryEnabled()){b.rqnl=b.rqnl||0;b.rqnl++;var d=this._storage.get("retryReqs")||{};for(c=1;d[c];)c++;d[c]={protocol:this.protocol,host:this.host,resource:this.resource,counterId:this.counterId,
counterType:this.counterType,postParams:this.postParams,params:a,browserInfo:b,ghid:Ya._globalMetrikaHitId,time:+new Date};this._storage.set("retryReqs",d);return c}},_unregisterRequest:function(a){if(a&&this._isRetryEnabled()){var b=this._storage.get("retryReqs")||{};b[a]&&(delete b[a],this._storage.set("retryReqs",b))}},_getVersion:t(function(){return X},"",!0)});K.initCookie=function(){var a=new J,b=a.read("uid");b||(b=E.getSeconds(),b=b+""+f.random(),a.create("uid",b,1036800));K._userID=b};K.retransmit=
function(){var a=new P,b=a.get("retryReqs")||{},c;a.remove("retryReqs");f.forEachKey(b,function(a,b){g.Ya._metrika.firstReqStatus||(g.Ya._metrika.firstReqStatus="complete");b.ghid&&b.ghid!=Ya._globalMetrikaHitId&&b.time&&b.time+864E5>+new Date&&2>=b.browserInfo.rqnl&&(c=new K({protocol:b.protocol,host:b.host,resource:b.resource,counterId:b.counterId,counterType:b.counterType,postParams:b.postParams||[],retry:!0}),c.send(b.params,b.browserInfo))})};f.fletcher=function(a){for(var b=a.length,c=0,d=255,
e=255,f,g,h;b;){f=21<b?21:b;b-=f;do g="string"==typeof a?a.charCodeAt(c):a[c],c++,255<g&&(h=g>>8,g&=255,g^=h),d+=g,e+=d;while(--f);d=(d&255)+(d>>8);e=(e&255)+(e>>8)}a=(d&255)+(d>>8)<<8|(e&255)+(e>>8);return 65535==a?0:a};var C={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/\x3d",tailSafe:"*-_",encode:function(a,b){var c=(C.abc+(b?C.tailSafe:C.tail)).split(""),d=a.length,e=[],g=d-d%3,h;for(h=0;h<g;h+=3){var k=(a[h]<<16)+(a[h+1]<<8)+a[h+2];f.mergeArrays(e,[c[k>>18&63],
c[k>>12&63],c[k>>6&63],c[k&63]])}switch(d-g){case 1:k=a[g]<<4;f.mergeArrays(e,[c[k>>6&63],c[k&63],c[64],c[64]]);break;case 2:k=(a[g]<<10)+(a[g+1]<<2),f.mergeArrays(e,[c[k>>12&63],c[k>>6&63],c[k&63],c[64]])}return e.join("")}};f.trim=function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};f.isFunction=function(a){return"function"===typeof a};f.isNumber=function(a){return isFinite(a)&&!isNaN(a)&&"[object Number]"==Object.prototype.toString.call(a)};f.isString=function(a){return"[object String]"==
Object.prototype.toString.call(a)};f.arrayIndexOf=function(a,b){var c;for(c=0;c<a.length;c++)if(a[c]===b)return c;return-1};f.warning=function(){g.console&&"function"==typeof console.warn&&console.warn.apply(console,arguments)};f.isObject=function(a){try{return a&&null!==a&&"[object Object]"==Object.prototype.toString.call(a)}catch(b){return!1}};f._playerRegexp=/^.+\.mtproxy\.yandex\.net$/;f.isMetrikaPlayer=function(){return"MetrikaPlayer"==g.name||this._playerRegexp.test(g.location.hostname)};var m=
{getDocumentCharset:function(){return(""+(h.characterSet||h.charset||"")).toLowerCase()},getRootElement:function(){var a=h.documentElement;return"CSS1Compat"==h.compatMode?a:h.body||a},getViewportSize:function(){var a=m.getRootElement();return[a.clientWidth||g.innerWidth,a.clientHeight||g.innerHeight]},getDocumentTitle:function(){var a=h.title;"string"!=typeof a&&(a=(a=h.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}},r={_silverlightVersion:"",getSilverlightVersion:function(){if(!r._silverlightVersion)if(g.ActiveXObject)try{var a=
new ActiveXObject("AgControl.AgControl");var b=function(a,b,d,f){for(;c(a,b);)b[d]+=f;b[d]-=f};var c=function(a,b){return a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3])};var d=[1,0,0,0];b(a,d,0,1);b(a,d,1,1);b(a,d,2,1E4);b(a,d,2,1E3);b(a,d,2,100);b(a,d,2,10);b(a,d,2,1);b(a,d,3,1);r._silverlightVersion=d.join(".")}catch(e){}else if(b=g.navigator,b=b.plugins&&b.plugins["Silverlight Plug-In"])r._silverlightVersion=b.description;return r._silverlightVersion||""},_flashVersion:0,getFlashVersion:function(){if(!r._flashVersion){var a=
g.navigator;if("undefined"!=typeof a.plugins&&"object"==typeof a.plugins["Shockwave Flash"]){var b=a.plugins["Shockwave Flash"];var c=b.version;if((b=b.description)||c)if(a=a.mimeTypes,"undefined"==typeof a||!a["application/x-shockwave-flash"]||a["application/x-shockwave-flash"].enabledPlugin)c?r._flashVersion=c:b&&(r._flashVersion=b.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,"."))}else if("undefined"!=typeof g.ActiveXObject)try{if(c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),
b=c.GetVariable("$version"))r._flashVersion=b.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,"")}catch(d){}}return r._flashVersion},getLanguage:function(){var a=(g.navigator?navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage:"").toLowerCase();return f.isString(a)?a:""},getJavaEnabled:function(){try{return navigator.javaEnabled()}catch(a){return!1}}};f.fnv32a=function(a){var b=2166136261,c;var d=0;for(c=a.length;d<c;++d)b^=a.charCodeAt(d),b+=(b<<1)+(b<<
4)+(b<<7)+(b<<8)+(b<<24);return b>>>0};r.getFingerPrint=function(){var a=[],b;if(navigator.plugins&&navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++){var c=navigator.plugins[b];f.mergeArrays(a,[c.name,c.version,c.description,c.filename])}if(navigator.mimeTypes&&navigator.mimeTypes.length)for(b=0;b<navigator.mimeTypes.length;b++)c=navigator.mimeTypes[b],f.mergeArrays(a,[c.type,c.description,c.suffixes]);return f.fnv32a(a.join(";"))+"01"};r.getPlatform=t(function(){return""+navigator.platform},
"",!0);r.getNotificationPermission=function(){try{var a=Notification.permission}catch(b){}switch(a){case "denied":return 1;case "granted":return 2}};r.isIframe=function(){try{return g.top!=g.self}catch(a){return!1}};r._nMap={other:"0",none:"1",unknown:"2",wifi:"3",ethernet:"4",bluetooth:"5",cellular:"6",wimax:"7",mixed:"8"};r.netType=function(){var a=(navigator.connection||{type:""}).type;return r._nMap[a]||a};r.isSafari=function(){try{return navigator.vendor&&-1<navigator.vendor.indexOf("Apple")&&
navigator.userAgent&&!navigator.userAgent.match("CriOS")}catch(a){}return!1};m.removeNode=function(a){var b=a&&a.parentNode;b&&b.removeChild(a)};k.ready=function(a){var b=h.readyState;if("interactive"===b||"complete"===b)g.setTimeout(t(a,"evt::ready",void 0),0);else{var c=function(){k.un(h,"DOMContentLoaded",c);k.un(g,"load",c);a()};k.on(h,"DOMContentLoaded",c);k.on(g,"load",c)}};var bb={url:I.protocol+"//"+I.host+"/metrika/",_value:null,init:function(){var a=this._getLs().read("isad");a?this._set(a):
this._getReqStatus()||this._send()},getVal:function(){return this._value},_set:function(a){this._value="1"==a||"2"==a?a:null},_send:function(){var a=this;this._setReqStatus("process");k.ready(function(){var b=h.createElement("img");b.onload=function(){a._saveReq(!1);m.removeNode(this)};b.onerror=function(){a._saveReq(!0);m.removeNode(this)};b.src=a.url+String.fromCharCode(97,100,118,101,114,116,46,103,105,102);r.isSafari()&&(b.style.position="absolute",b.style.visibility="hidden",b.style.width="0px",
b.style.height="0px",m.getRootElement().appendChild(b))})},_saveReq:function(a){this._value=a=a?"1":"2";this._setReqStatus("complete");this._getLs().create("isad",a,1200)},_setReqStatus:function(a){try{g.Ya._metrika.adStatus=a}catch(b){}},_getReqStatus:function(){try{return g.Ya._metrika.adStatus}catch(a){return"complete"}},_getLs:function(){this._ls||(this._ls=new J);return this._ls}},U={encode:function(a){var b=[],c;var d=0;for(c=a.length;d<c;d++){var e=a.charCodeAt(d);128>e?b.push(e):(127<e&&2048>
e?b.push(e>>6|192):(b.push(e>>12|224),b.push(e>>6&63|128)),b.push(e&63|128))}return b},decode:function(a){for(var b="",c=0,d,e,f;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(e=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|e&63),c+=2):(e=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),c+=3);return b}};C.decode=function(a,b){for(var c=C.abc+(b?C.tailSafe:C.tail),d=0,e="",f,g,h,k,l;a.length%4;)a+="\x3d";do{f=c.indexOf(a.charAt(d++));
g=c.indexOf(a.charAt(d++));k=c.indexOf(a.charAt(d++));l=c.indexOf(a.charAt(d++));if(0>f||0>g||0>k||0>l)return null;h=f<<18|g<<12|k<<6|l;f=h>>16&255;g=h>>8&255;h&=255;e=64==k?e+String.fromCharCode(f):64==l?e+String.fromCharCode(f,g):e+String.fromCharCode(f,g,h)}while(d<a.length);return e};ba.parse=function(a){try{return JSON.parse(a)}catch(b){return null}};var ca=K.inherit({hitId:0,trackHash:!1,trimParams:!1,webvisor:!1,counter:null,counterNum:0,resource:"watch",retry:!0,postParams:["site-info"],countersNoTitle:"22836271 1143050 29626870 9928105 26128362 29850769".split(" "),
fake:!1,sendTitle:!0,_initComponent:function(){ca.superclass._initComponent.apply(this,arguments);this._trackHash=this.trackHash;this._vid=[G("Y2VkY2hr"),G("qJ0\x3d")];this._mue=[G("ZGNpZ2U\x3d"),G("n5ObnqSn"),G("p6WXpJefk5ue")];this._oid=[G("Y2ZjZ2Nr"),G("VZqhoZ2RdZiZkXWnpKSXoKaHpZek"),G("oZuW")];this._aid=[G("ZWZkZmNrYmc\x3d"),G("maGhmZ6XppOZ"),G("oqeUk5al"),G("mZemhpOkmZemm6CZ"),G("h6Wblg\x3d\x3d")];"0"===""+this.counterType&&(this.sendTitle=-1===f.arrayIndexOf(this.countersNoTitle,""+this.counterId))},
setTrackHash:function(a){this._trackHash=a},sendHit:function(a){this._hitExt({url:a.url,title:a.title,referrer:a.referrer,vParams:a.vParams,modes:{ar:!0,saveRef:!0,pv:!0},callback:a.callback,ctx:a.ctx})},sendExperiments:function(a){this._hitExt({url:v().href,title:"",referrer:"",modes:{ex:!0,ar:!0},experiments:a.experiments,callback:a.callback,ctx:a.ctx})},sendPrerenderHit:function(a){this._hitExt({url:a.url,title:a.title,referrer:a.referrer,modes:{ar:!0,pq:!0}})},sendAjaxHit:function(a){this._hitExt({url:a.url,
title:a.title,referrer:a.referrer,modes:a.modes})},sendParams:function(a,b,c){this._hitExt({url:v().href,title:"",referrer:"",vParams:a,modes:{ar:!0,pa:!0,onlyData:!0},callback:b,ctx:c})},sendGoal:function(a,b){if(/[\/&=?#]/.test(a))f.warning("Incorrect goal");else if(a){var c=v();this._hitExt({url:"goal://"+c.hostname+"/"+encodeURIComponent(a),title:m.getDocumentTitle(),referrer:c.href,vParams:b.vParams,modes:{ar:!0},callback:b.callback,ctx:b.ctx})}else f.warning("Empty goal")},sendClickLink:function(a){this._hitExt({url:a.url,
title:a.title,referrer:v().href,modes:a.modes})},sendExtLink:function(a){this._hitExt({url:a.url,title:a.title||"",referrer:v().href,vParams:a.vParams,modes:{ar:!0,ln:!0,ut:Ka},callback:a.callback,ctx:a.ctx})},sendFileUpload:function(a){this._hitExt({url:a.url,title:a.title||"",referrer:v().href,vParams:a.vParams,modes:{ar:!0,ln:!0,dl:!0},callback:a.callback,ctx:a.ctx})},sendNotBounce:function(a,b){this._hitExt({url:v().href,title:"",referrer:"",modes:{cl:a,ar:!0,nb:!0,onlyData:!0},callback:b.callback,
ctx:b.ctx})},sendDevice:function(a){this._hitExt({browserInfo:{di:a.data,dip:a.port},callback:a.callback,ctx:a.ctx})},_hitExt:function(a){function b(a,b){b&&(m[a]=b)}var c,d,e,g={};if(!f.isMetrikaPlayer()){var h=a.modes||{};var k=a.browserInfo||{};var n="undefined"!=typeof a.referrer?a.referrer:da.lastReferrer;var l=a.url||"";var m={};h.ar&&!h.onlyData&&(n=null===n||""===n?"":this._prepareHitUrl(n),l=this._prepareHitUrl(a.url));b("page-ref",f.trim(n,xa));b("page-url",f.trim(l,xa));Ua()?b("ut",Ka):
"undefined"!=typeof h.ut&&b("ut",f.trim(h.ut,Gb));b("exp",a.experiments);if(d=a.vParams)d.__ym&&f.isNumber(d.__ym.turbo_page)&&(g.tp=d.__ym.turbo_page),l=f.toJSON(d),this.trimParams&&l.length>Hb?e=!0:b("site-info",l);h.saveRef&&(da.lastReferrer=n);this.fake||(c=this._getTechInfo(a.title,h,this.counterId,a.ts,a.tz,this._trackHash,this.hitId,this.webvisor,this.counter));f.mixin(k,c,g);this.send(m,k,function(){e&&this.counter.params(d);a.userParams&&this.counter.userParams(a.userParams);f.isFunction(a.callback)&&
a.callback.apply(a.ctx,arguments)},this)}},_prepareHitUrl:function(a){var b=v(),c=b.host,b=b.href;if(!f.isString(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},_getTechInfo:function(a,b,c,d,e,h,k,ia,n){function l(a,b,c){var d=""+b;
a&&b&&(c||-1===d.indexOf(":"))&&(p[a]=d)}function q(a){b[a]&&l(a,"1")}var p={};b=b||{};d=d||E.getTimestamp();e=e||E.getTimezone();l("j",r.getJavaEnabled()?"1":"");l("nt",r.netType());V&&l("s",V.width+"x"+V.height+"x"+(V.colorDepth||V.pixelDepth));g.devicePixelRatio&&l("sk",g.devicePixelRatio);r.isIframe()&&l("ifr","1");l("adb",bb.getVal());l("f",r.getFlashVersion());l("l",r.getSilverlightVersion());l("fpr",r.getFingerPrint());l("cn",this.counterNum);if(!b.pa){var t=m.getViewportSize();l("w",t[0]+
"x"+t[1])}try{var v=this._vid;var z=this.counterType;var A=this.counterId;A==v[0]&&1==z&&f.isObject(g[v[1]])&&f.isNumber(g[v[1]].id)&&l("vid",Y(""+g[v[1]].id));var T=this._mue;A==T[0]&&1==z&&f.isObject(g[T[1]])&&g[T[1]][T[2]]&&l("mue",Y(""+g[T[1]][T[2]]));var w=this._oid;A==w[0]&&1==z&&l("oid",Y(JSON.parse($(w[1]).contents()[0].data)[w[2]]));var Q=this._aid;A==Q[0]&&0==z&&l("aid",Y(g[Q[1]][Q[2]]()[Q[3]](Q[4])[0]))}catch(x){}l("z",e);l("i",d);l("et",E.getSeconds());l("en",m.getDocumentCharset());l("v",
X);l("c",navigator.cookieEnabled?"1":"");l("la",r.getLanguage());l("ntf",r.getNotificationPermission());f.random(100)||l("np",C.encode(U.encode(f.trim(r.getPlatform(),100))));h&&l("wh","1");e="ar ln dl cpf ad nb pa pq pv ex".split(" ");for(d=0;d<e.length;d++)q(e[d]);e=["va","vt","sn","sa","he"];b.nb&&e.push("cl");for(d=0;d<e.length;d++)h=e[d],l(h,b[h]);e=new P({counterId:c});e.isEnabled()&&(c=e.getStorageId(),(d=e.get("reqNum"))?d++:d=1,e.set("reqNum",d),e.get("reqNum")==d?(l("ls",c),l("rqn",d)):
(e.remove("reqNum"),e.clearStorageId(),1<d&&(l("ls",c),l("rqn",0))));l("rn",f.random());l("hid",k);l("ds",Ab(n));n._firstPaint||(n._firstPaint=Bb(),l("fp",n._firstPaint));if(ia){g.name||(g.name=Math.round(65535*Math.random()));if(k=+g.name)0>k&&(k*=-1),k%=65535;l("wn",k||f.fletcher(g.name));try{g.history&&l("hl",String(g.history.length))}catch(x){}}k="";this.sendTitle&&(k=this._getTitle(a));l("t",k,!0);return p},_getTitle:function(a){a="undefined"==typeof a?(a=m.getDocumentTitle())?f.trim(a,cb):"":
f.trim(a,cb);return a}});f.array2Props=function(a){var b=a.length,c={},d=c,e;for(e=0;e<b-1;e++){var f=a[e];d[f]={};e<b-2&&(d=d[f])}d[f]=a[b-1];return c};var ga=w.inherit({sampling:1,counterId:26302566,_initComponent:function(){ga.superclass._initComponent.apply(this,arguments);this._sender=new ca({protocol:"https:",counterId:this.counterId,retry:!1,counter:{}})},log:function(){this.logParams(f.array2Props(arguments))},logParams:function(a){Math.random()<this.sampling&&this._sender.sendHit({url:A.href,
title:"",referrer:"",vParams:a})}}),Ib=K.inherit({resource:"webvisor",retry:!0,postParams:["wv-data"],sendPacket:function(a,b,c,d,e,h,k,m){if(!a||!a.length)return!1;var q=C.encode(a,!0);if(0==q.indexOf("AAAAAAAAADw")&&g.Error){var l=Error();"string"==typeof l.stack&&(new ga({sampling:.1})).log("bad visor packet 5",1)}a={rn:f.random(),"page-url":b,wmode:0,"wv-type":0,"wv-hit":c,"wv-part":d+1,"wv-check":f.fletcher(a),"wv-data":q};e={v:this._getVersion(),z:e,i:h};return this.send(a,e,k,m)}}),Ea=ab.inherit({protocol:"",
counterId:"",counterType:"",meta:null,maxBufferSize:7500,flushTimeout:3E4,storageKey:"visorbuff",active:!1,_initComponent:function(){this.storage=new P({counterId:this.counterId});this._sender=new Ib({protocol:this.protocol,counterId:this.counterId,counterType:this.counterType});Ea.superclass._initComponent.apply(this,arguments)},onFlush:function(a,b,c){this._sender.sendPacket(a,b.url,b.hitId,c,b.timezone,b.timestamp)}}),wb=K.inherit({resource:"webvisor",transports:[qa,S],postParams:["wv-data"],sendContent:function(a,
b,c,d,e,f,g){if(!a)return!1;-1<a.indexOf("\r")&&(a=a.replace(/\r\n/g,"\n"));a={"wv-type":1,"page-url":v().href,"wv-hit":c,"wv-data":C.encode(U.encode(a))};return 245E3<a["wv-data"].length?!1:this.send(a,{z:d,i:e,pct:b||""},f,g)}});m.getDocumentHTML=function(){var a="";var b=h.documentElement;var c=b.outerHTML,d,e;if(c)b=c;else{c=b.attributes;var f="";for(d=0;d<c.length;d++)(e=c[d])&&(f+=" "+e.name+'\x3d"'+(e.value||"")+'"');b="\x3chtml"+f+"\x3e"+b.innerHTML+"\x3c/html\x3e"}if(c=h.doctype)a=c.publicId?
' PUBLIC "'+c.publicId+'"':"",f=c.systemId?' "'+c.systemId+'"':"",a="\x3c!DOCTYPE "+c.name+a+f+"\x3e\n";return a+b};m.getDocumentScroll=function(){return[g.pageXOffset||h.documentElement&&h.documentElement.scrollLeft||h.body&&h.body.scrollLeft||0,g.pageYOffset||h.documentElement&&h.documentElement.scrollTop||h.body&&h.body.scrollTop||0]};m.getElementParent=function(a){if(!a||a==h.documentElement)return null;if(a==h.body)return h.documentElement;var b=null;try{b=a.parentNode}catch(c){}return b};m.getElementChildren=
function(a,b){var c=[],d,e,g;if(a&&(d=a.childNodes)){var h=0;for(g=d.length;h<g;h++){var k=d[h];(e="INPUT"==k.nodeName&&k.type&&"hidden"==k.type.toLocaleLowerCase())||b&&k.nodeName!=b||f.mergeArrays(c,[k])}}return c};m.getElementNeighborPosition=function(a){var b=m.getElementParent(a),c;if(b){var d=0;b=b.childNodes;var e=a&&a.nodeName;for(c=0;c<b.length;c++){var f=b[c]&&b[c].nodeName;if(e==f){if(a==b[c])return d;d++}}}return 0};m.getElementXY=function(a){var b;if(!a||!a.ownerDocument||"PARAM"==a.tagName||
a==h.body||a==h.documentElement)return[0,0];if(a.getBoundingClientRect){a=a.getBoundingClientRect();var c=m.getDocumentScroll();return[Math.round(a.left+c[0]),Math.round(a.top+c[1])]}for(b=c=0;a;)c+=a.offsetLeft,b+=a.offsetTop,a=a.offsetParent;return[c,b]};m.getDocumentSize=function(){var a=m.getRootElement(),b=m.getViewportSize();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]};m.getElementSize=function(a){var b;return a==h.body||a==h.documentElement?m.getDocumentSize():(b=a.getBoundingClientRect&&
a.getBoundingClientRect())?[b.width,b.height]:[a.offsetWidth,a.offsetHeight]};m.getElementRegion=function(a){var b=m.getElementXY(a);a=m.getElementSize(a);return[b[0],b[1],a[0],a[1]]};m.calcChildrenChecksum=function(a){var b=t(function(){return a.innerHTML},"",!0)()||"";return f.fletcher(b.replace(/(<[^>]*>|[\u0000-\u0020])/g,""))};m.getFormNumber=function(a){var b=h.getElementsByTagName("form"),c;var d=0;for(c=b.length;d<c;d++)if(b[d]==a)return d;return-1};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.calcTextChecksum=function(a){var b="";a=a.childNodes;var c;var d=0;for(c=a.length;d<c;d++)a[d]&&3==a[d].nodeType&&(b+=a[d].nodeValue);return f.fletcher(b.replace(/[\u0000-\u0020]+/g,""))};m.calcAttribChecksum=function(a){var b="",c="width height align title alt name".split(" "),d;"IMG"==a.tagName&&(b+=a.src.toLowerCase());
"A"==a.tagName&&(b+=a.href.toLowerCase());b+=String(a.className||"").toLowerCase();for(d=0;d<c.length;d++)a.getAttribute&&(b+=String(a.getAttribute(c[d])||"").toLowerCase());return f.fletcher(b.replace(/[\u0000-\u0020]+/g,""))};m.classNameExists=function(a,b){try{return(new RegExp("(?:^|\\s)"+b+"(?:\\s|$)")).test(a.className)}catch(c){return!1}};m.getElementsByClassName=function(a,b){var c;b=b||h;var d=b.getElementsByTagName("*");var e=[];for(c=0;c<d.length;c++)m.classNameExists(d[c],a)&&e.push(d[c]);
return e};f.arrayEvery=function(a,b,c){var d;for(d=0;d<a.length;d++)if(!b.call(c,a[d],d,a))return!1;return!0};f.arrayFilter=function(a,b,c){var d=[],e;for(e=0;e<a.length;e++)b.call(c,a[e],e,a)&&d.push(a[e]);return d};f.arrDiff=function(a,b){return f.arrayFilter(a,function(a){return-1===f.arrayIndexOf(b,a)})};f.encodeURIComponent=function(a,b){a=String(a);b&&a.length>b&&(a=a.substr(0,b));return(g.encodeURIComponent||g.escape)(a).replace(/\+/g,"%2B")};f.bind=function(a,b){var c=[].slice.call(arguments,
2);return function(){return a.apply(b||this,c.concat([].slice.call(arguments,0)))}};f.pad=function(a){return(10>a?"0":"")+a};f.clearTimeout=function(a){return f.getNativeFunction("clearTimeout")(a)};f._urlParser=null;f.parseUrl=function(a){if(!this._urlParser)try{this._urlParser=h.createElement("a")}catch(b){}return this._urlParser?(this._urlParser.href=a,{protocol:this._urlParser.protocol,host:this._urlParser.host,port:this._urlParser.port,hostname:this._urlParser.hostname,hash:this._urlParser.hash,
search:this._urlParser.search,query:this._urlParser.search.replace(/^\?/,""),pathname:this._urlParser.pathname||"/",path:(this._urlParser.pathname||"/")+this._urlParser.search,href:this._urlParser.href}):{}};f.safeDecodeURIComponent=function(a){try{return decodeURIComponent(a)}catch(b){return""}};f.getTld=function(){if(!this._tld){var a=A.hostname.split(".");this._tld=a[a.length-1]}return this._tld};f.reduce=function(a,b,c){var d=0;b==L&&(b=c[0],d++);for(;d<c.length;)b=a(b,c[d]),d++;return b};f.filter=
function(a,b){var c,d=[];for(c=0;c<b.length;c++)a(b[c])&&d.push(b[c]);return d};f.isDev=function(){if(f._isDevSetted)return f._isDev;try{f._isDevSetted=!0;var a=new Image;Object.defineProperty(a,"id",{get:function(){f._isDev=!0}})}catch(b){}};var vb=!la(/webkit/)&&la(/gecko/),db=w.inherit({hid:0,tz:0,ts:0,counterId:0,counterType:0,url:"",protocol:"",enabled:!1,_initComponent:function(){if(this.isEnabled()){var a=this._getStorage();var b=a.read("visorc");"b"!=b&&"w"!=b&&(b="");if(!a.isEnabled()||la("opera mini"))b=
"b";this._vc=b;"b"!=b&&(this._recorder=new kb(this.protocol,this.counterId,this.counterType,this.hid,this.counter));db.superclass._initComponent.apply(this,arguments)}},start:function(a){if(this.isEnabled()&&this._recorder){a=a||{};var b=+a.recp;if(!isFinite(b)||0>b||1<b)var c="w";c||(c=this.hid%1E4/1E4<b?"w":"b");this._getStorage().create("visorc",c,30);"w"==c?(this._recorder.start(),b=a.arch_type,(a=a.urls)&&b&&"none"!=b&&this._recorder.uploadPages(a,b)):this._recorder.stop()}},isEnabled:function(){return this.enabled},
getVc:function(){return this._vc},_getStorage:function(){this._storage||(this._storage=new J({counterId:this.counterId}));return this._storage}});E.getMinutes=function(){return Math.floor(+new Date/1E3/60)};var pa=O.inherit({id:"script",index:6,request:function(a,b,c,d){var e=!1,k=f.getNativeFunction("createElement",h)("script");this.timeout&&f.setTimeout(function(){e||(e=!0,m.removeNode(k),c.call(d,!1))},this.timeout);if(!k)return e=!0,c.call(d,!1),!1;var p="_ymjsp"+f.random();g[p]=t(function(){if(!e){try{delete g[p]}catch(n){g[p]=
L}c.apply(d,f.mergeArrays([!0],arguments));e=!0;m.removeNode(k)}},"transport.script");k.type="text/javascript";k.src=this._buildUrl(a,f.mixin({wmode:5,callback:p},b));k.async="async";var r=h.getElementsByTagName("head")[0];r||(r=h.createElement("head"),h.documentElement.appendChild(r));f.async(function(){r.insertBefore(k,r.firstChild)});k.onerror=function(){e=!0;c.call(d,!1);g[p]=L};return!0}}),La=ca.inherit({transports:[pa],trimParams:!0,_initComponent:function(){La.superclass._initComponent.apply(this,
arguments);this._ilStorage=new P({counterId:this.counterId})},checkYandexHost:function(a){if(a){a:{if(a=f.parseUrl(a).host.match(/(?:^|\.)(?:ya|yandex)\.(?:\w+|com?\.\w+)$/))if(a=a[0].split("yandex").reverse()[0].substring(1),-1!=f.arrayIndexOf(I.yandexWhiteListTld,a))break a;a=!1}a&&(this.host=I.baseUrl+a)}},sendHit:function(a){var b={},c=this._ilStorage.get("il");a.visitColor&&(b.vc=a.visitColor);a.hasPrerender&&(b.pr=1);c&&(this._ilStorage.remove("il"),b.ilt=C.encode(U.encode(f.trim(c,eb))));this.checkYandexHost(a.referrer);
this._hitExt({url:a.url,title:a.title,referrer:a.referrer,vParams:a.vParams,userParams:a.userParams,experiments:a.experiments,modes:a.modes,browserInfo:b,ts:a.ts,tz:a.tz,callback:a.callback,ctx:a.ctx})}}),Jb=w.inherit({cid:3,cnt:0,_initComponent:function(){this._storage=new P},hit:function(a){var b=this,c=this._storage.get("wasSynced");c&&c.time+864E5>+new Date||g.Ya._metrika.fakeHit?a():(g.Ya._metrika.fakeHit=!0,this._getSender().sendHit({callback:function(){b._storage.set("wasSynced",{time:+new Date});
a()}}))},_getSender:function(){this._sender||(this._sender=new La({protocol:"https:",counterType:this.cnt,counterId:this.cid,sendTitle:!1,dontSendRequests:this.dontSendRequests,fake:!0}));return this._sender}}),fb=w.inherit({baseUrl:I.baseUrl,baseTld:"ru",_initComponent:function(){var a=this;fb.superclass._initComponent.apply(this,arguments);this.syncTlds=f.reduce(function(a,c){return c(a)},I.yandexWhiteListTld,[f.bind(f.filter,null,function(b){return b!==a.baseTld}),f.bind(f.reduce,null,function(a,
c){a[c]=[c];return a},{})])},langToDomain:{ka:"ge",ro:"md",tg:"tj",tk:"tm",et:"ee",hy:"com.am",he:"co.li",ky:"kg",uk:"ua",be:"by",tr:"com.tr",kk:"kz"},sync:function(a){var b=this,c=this._need(),d=Ua();!this._is()&&c?(this._setStatus(!0),d?this._getCn().hit(function(){b._sync(c,a)}):a(function(){})):a();d&&this._addMda()},_addMda:function(){var a=new J({skipPrefix:!0}),b=new J;"0"!==a.read("mda")&&a.create("mda","0",1036800);b.read("mda")&&b.erase("mda")},_is:function(){try{return!!g.Ya._metrika.startSync}catch(a){return!1}},
_setStatus:function(a){try{g.Ya._metrika.startSync=a}catch(b){}},_need:function(){var a=this._getDomainByLang(),b=this._getTld(),c=[],d;(d=this.syncTlds[b])&&c.push.apply(c,d);d=this.syncTlds[a];a!==b&&d&&c.push.apply(c,d);var e=this._getLs().get("synced")||{};c=f.arrayFilter(c,function(a){return(e[a]||1)+1440<E.getMinutes()});return c.length&&c||!1},_sync:function(a,b){var c,d=0,e=I.protocol+"//",f=a.length,g=this;if(0<f){b=b||function(){};var h=function(){d++;f===d&&b()};var k=g._getLs();var l=
new W({});for(c=0;c<f;c++)(function(a){l.request(e+(g.baseUrl+a)+"/sync_cookie_image_check",{},function(b){h();var c=E.getMinutes();b||(c-=1435);b=k.get("synced")||{};b[a]=c;k.set("synced",b)})})(a[c])}else b()},_getCn:function(){this._cn||(this._cn=new Jb({fake:!0,dontSendRequests:this.dontSendRequests}));return this._cn},_getLs:function(){this._ls||(this._ls=new P);return this._ls},_getTld:function(){var a=f.getTld();return{am:"com.am",tr:"com.tr",ge:"com.ge",il:"co.il","\u0440\u0444":"ru","xn--p1ai":"ru",
"\u0443\u043a\u0440":"ua","xn--j1amh":"ua","\u0431\u0435\u043b":"by","xn--90ais":"by"}[a]||a},_getDomainByLang:function(){if(!g.navigator)return"ru";try{var a=navigator.languages?navigator.languages[0]:r.getLanguage()}catch(b){}a=(a||"").toLowerCase().split("-")[0];return this.langToDomain[a]||"ru"}}),Kb=qa.inherit({id:"RawBodyXHR",index:9,postParams:["body"],_setHeaders:function(){},_preparePostParams:function(a){return a.post.body||""}});r.isAndroid=t(function(){var a=navigator.userAgent.toLowerCase(),
b=r.getPlatform()||"";return-1<a.indexOf("android")&&-1<a.indexOf("mobile")&&b.match(/^android|linux armv/i)},"",!0);r.isIOS=t(function(){var a=r.getPlatform()||"";return"iPhone"===a||"iPad"===a},"",!0);var ha={_url:I.protocol+"//"+I.host+"/user_storage_set?",_params:{},init:function(a){this._params=a||{}},save:function(a,b){this._getReq().request(this._url+aa.stringify({key:a,value:f.toJSON(b)}));this._getLs().set(a,b)},get:function(a){return{remote:this._params[a],local:this._getLs().get(a)}},getNum:function(a){a=
this.get(a);return Math.max(+a.remote||0,+a.local||0)},_getLs:function(){this._ls||(this._ls=new P);return this._ls},_getReq:function(){this._req||(this._req=new W);return this._req}},Lb={sync:t(function(a,b,c){var d=["30102","29009"],e={t:'UV|L7,!"T[rwe\x26D_\x3eZIb\\aW#98Y.PC6k'};if(this._enabled(a,b,c)){this._setStatus(!0);var f=new Kb({method:"GET",withCredentials:!1});var g=d.length;(function n(a){var b=d[a];a<g?f.request("http://127.0.0.1:"+b+"/p",e,function(c,d){c?this._save(c,d,b):n.call(this,
a+1)},this):this._save(!1)}).call(this,0)}},"ds"),_save:function(a,b,c){var d=E.getMinutes();a?(new ca({protocol:"https:",counterType:0,counterId:42822899,sendTitle:!1,fake:!0})).sendDevice({data:f.trim(b),port:c}):d-=45;ha.save("ds",d)},_is:function(){try{return!!g.Ya._metrika.dSync}catch(a){return!1}},_enabled:function(a,b,c){var d;if(!(60<E.getMinutes()-ha.getNum("ds"))||this._is()||f.isDev())return!1;b=(d=0===b)&&0<=f.arrayIndexOf([39370095,1282253,29302335,43653484,41734944,31048081,16443139,
27737346,41870499,33911514,30744873,5564395,2580487],a);a=r.isIOS()&&d&&39192920===a;return r.isAndroid()&&(0==v().hostname.search(/^(.*\.)?((ya|yandex(\-team)?)\.(com\.)?\w+|(auto|kinopoisk)\.ru|yadi\.sk|yastatic\.net)$/)||!c&&.1>=Math.random()&&b)||a},_setStatus:function(a){try{g.Ya._metrika.dSync=a}catch(b){}}},z={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){var b=
null;try{(b=a.target||a.srcElement)&&!b.ownerDocument&&b.documentElement&&(b=b.documentElement)}catch(c){}return b},getMouseButton:function(a){return a.which||a.button==L?a.which:a.button&1?1:a.button&2?3:a.button&4?2:0},prevent:function(a){a=a||g.event;a.preventDefault?a.preventDefault():a.returnValue=!1}};z.dispatchCustomEvent=t(function(a,b){var c;b=b||h;if(c=f.getNativeFunction("createEvent",h)("Event"))c.initEvent(a,!1,!1),f.getNativeFunction("dispatchEvent",b)(c)},"evt.dispatch");var da={lastReferrer:null};
r.isIE=function(){return h&&!h.addEventListener||!1};r.isChromePdf=function(){var a,b=navigator.plugins;if(b&&b.length)for(a=0;a<b.length;a++)if(/Chrome PDF Viewer/.test(b[a].name))return!0;return!1};var ea={};ea._cookie=new J({onlyCurrentDomain:!0});ea.log=t(function(){var a=-1<A.href.indexOf("_ym_debug\x3d1")||g._ym_debug;a&&this._cookie.create("debug","1");g.console&&console.log&&(a||"1"===this._cookie.read("debug"))&&console.log.apply(console,arguments)},"DebugConsole.log");var Mb=K.inherit({resource:"clmap",
retry:!0,transports:[W],sendClick:function(a,b,c,d){this.send({"page-url":a,"pointer-click":b},{},c,d)}}),Nb=w.inherit({filter:null,ignoreTags:[],quota:0,isTrackHash:!1,protocol:"",counterId:0,counterType:0,startTime:0,dontSendRequests:!1,MAX_LEN_PATH:128,TIMEOUT_CLICK:50,TIMEOUT_SAME_CLICKS:1E3,DELTA_SAME_CLICKS:2,tags:"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(" "),
_initComponent:function(){var a,b;this._lastClick=null;this.hasQuota=!!this.quota;this._quota=this.quota;this._ignoreTags=[];if(this.ignoreTags)for(a=0;a<this.ignoreTags.length;a++)this.ignoreTags[a]&&f.mergeArrays(this._ignoreTags,[String(this.ignoreTags[a]).toUpperCase()]);this._cacheTags={};a=59;var c=String.fromCharCode;for(b=0;b<this.tags.length;b++)this._cacheTags[this.tags[b]]=c(a),c(a),a++;this._sender=new Mb({dontSendRequests:this.dontSendRequests,protocol:this.protocol,counterId:this.counterId,
counterType:this.counterType});this._start=!1;this.start()},destroy:function(){this.stop()},start:function(){if(!this._start)k.on(h,"click",this._handler,this);this._start=!0},stop:function(){this._start&&k.un(h,"click",this._handler,this);this._start=!1},setTrackHash:function(a){this.isTrackHash=a},_isIgnore:function(a){return m.classNameExists(a,"(ym-disable-clickmap|ym-clickmap-ignore)")},_handler:function(a){a={el:z.getTarget(a),pos:z.getPos(a),button:z.getMouseButton(a),time:+new Date};if(this._isTrackingClick(a)){var b=
m.getElementSize(a.el);var c=m.getElementXY(a.el);b=["rn",f.random(),"x",Math.floor(65535*(a.pos[0]-c[0])/(b[0]||1)),"y",Math.floor(65535*(a.pos[1]-c[1])/(b[1]||1)),"t",Math.floor((a.time-this.startTime)/100),"p",this._getElPath(a.el)];c=v().href;this.isTrackHash?f.mergeArrays(b,["wh","1"]):c=c.split("#")[0];this._sender.sendClick(f.trim(c,xa),b.join(":"));this._lastClick=a}},_isTrackingClick:function(a){var b;if(g.ymDisabledClickmap||f.isMetrikaPlayer()||!a.el)return!1;var c=a.el.tagName;if((2==
a.button||3==a.button)&&"A"!=c||this.filter&&!this.filter(a.el,c))return!1;for(b=0;b<this._ignoreTags.length;b++)if(this._ignoreTags[b]==c)return!1;for(c=a.el;c;){if(this._isIgnore(c))return!1;c=c.parentNode}if(this._lastClick){if(a.time-this._lastClick.time<this.TIMEOUT_CLICK)return!1;c=Math.abs(this._lastClick.pos[0]-a.pos[0]);b=Math.abs(this._lastClick.pos[1]-a.pos[1]);var d=a.time-this._lastClick.time;if(this._lastClick.el==a.el&&c<this.DELTA_SAME_CLICKS&&b<this.DELTA_SAME_CLICKS&&d<this.TIMEOUT_SAME_CLICKS)return!1}if(this.hasQuota){if(!this._quota)return!1;
this._quota--}return!0},_getElPath:function(a){for(var b="";a&&a.parentNode&&"BODY"!=a.tagName&&"HTML"!=a.tagName;)b+=this._cacheTags[a.tagName]||"*",b+=m.getElementNeighborPosition(a)||"",a=a.parentNode;return f.trim(b,this.MAX_LEN_PATH)}});m.loadScript=function(a,b){b=b||g;var c=f.mixin({type:"text/javascript",charset:"utf-8",async:!0},a),d=b.document,e=f.getNativeFunction("createElement",d),h=e("script");if(h){h.type=c.type;h.charset=c.charset;h.src=c.src;c.async&&(h.async=!0);try{var k=d.getElementsByTagName("head")[0];
if(!k){var m=d.getElementsByTagName("html")[0];k=e("head");m&&m.appendChild(k)}k.insertBefore(h,k.firstChild);return h}catch(n){}}};var gb=w.inherit({_initComponent:function(){gb.superclass._initComponent.apply(this,arguments);this._executedMsgs={};k.on(g,"message",this._onMessage,this)},_buildRemoteIframe:function(a){var b=f.getNativeFunction("createElement",h)("div"),c=h.body||h.documentElement;if(c){b.innerHTML='\x3ciframe name\x3d"RemoteIframe" allowtransparency\x3d"true" style\x3d"position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"\x3e\x3c/iframe\x3e';
var d=b.firstChild;d.onload=function(){m.loadScript({src:a},d.contentWindow)};g._ym__remoteIframeEl=d;b.createShadowRoot||b.webkitCreateShadowRoot?(c.appendChild(b),b.removeChild(d),(c=b.createShadowRoot?b.createShadowRoot():b.webkitCreateShadowRoot())&&c.appendChild(d),g._ym__remoteIframeContainer=b):(c.appendChild(d),g._ym__remoteIframeContainer=d)}},_isAllowedLang:function(a){return-1!==f.arrayIndexOf(["ru","uk","en","tr"],a)},_isAllowedOrigin:function(a){return/^http:\/\/(.+\.)?webvisor\.com\/?$/.test(a)},
_isAllowedStatic:function(a){return/^https?:\/\/(((.+\.)?dev\.webvisor\.com)|(yastatic\.net))(\/.*)?$/.test(a)},_onMessage:function(a){try{var b=a.origin}catch(c){}b&&this._isAllowedOrigin(b)&&(b=ba.parse(a.data))&&"appendremote"===b.action&&this._isAllowedStatic(b.domain)&&this._isAllowedLang(b.lang)&&!this._executedMsgs[b.id]&&(this._executedMsgs[b.id]=!0,g._ym__postMessageEvent=a,g._ym__inpageMode=b.inpageMode,g._ym__initMessage=b.initMessage,this._buildRemoteIframe(b.domain+"/cdn/inpage-remote/inpage-remote."+
b.lang+".js"))}});E.getTimestamp=function(){var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",c;for(c=0;c<a.length;c++)b+=f.pad(a[c]);return b};E.getTimezone=function(){return-(new Date).getTimezoneOffset()};var hb=w.inherit({counter:null,prefsEcommerce:null,dataLayerName:"dataLayer",allowedEvents:"currencyCode add delete remove purchase detail".split(" "),_initComponent:function(){var a="customArr";hb.superclass._initComponent.apply(this,
arguments);this._overridePush(this.prefsEcommerce)||(f.isString(this.prefsEcommerce)&&(this.dataLayerName=this.prefsEcommerce),a=this.dataLayerName,this._tryTimeout=f.bind(this._tryTimeout,this),this._tryTimeout());this.counter._ecommerce=a},_overridePush:function(a){if(a&&"function"==typeof a.push){var b=this;b._send(a);var c=a.push;a.push=function(){b._send([].slice.call(arguments,0));c.apply(this,arguments)};return!0}return!1},_tryTimeout:function(){this._overridePush(g[this.dataLayerName])||f.setTimeout(this._tryTimeout,
1E3,"dlObserver")},_send:function(a){var b=[],c=this.allowedEvents,d,e;var g=0;for(e=a.length;g<e;g++)if((d=a[g])&&d.ecommerce){var h={};var k=!1;f.forEachKey(d.ecommerce,function(a,b){0<=f.arrayIndexOf(c,a)&&(k=!0,h[a]=b)});k&&b.push(h)}b.length&&this.counter.params({__ym:{ecommerce:b}})}}),Ob={match:function(){this.enabled()&&k.ready(function(){var a=f.getNativeFunction("createElement",h)("iframe");a.onload=function(){ha.save("cm",E.getMinutes());m.removeNode(a)};a.style.display="none";a.src=I.protocol+
"//"+I.host+"/metrika/watch_match.html";h.documentElement.appendChild(a)})},enabled:function(){return 1440<E.getMinutes()-ha.getNum("cm")&&"tr"===f.getTld()}},ib={set:function(a,b){t(function(){g.Ya._metrika[a]=b},"",!0)()},get:function(a){return t(function(){return g.Ya._metrika[a]},"",!0)()}};t(function(){(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};a[d].call(e.exports,e,e.exports,b);e.l=!0;return e.exports}var c={};b.m=a;b.c=c;b.d=function(a,c,f){b.o(a,
c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:f})};b.n=function(a){var c=a&&a.__esModule?function(){return a["default"]}:function(){return a};b.d(c,"a",c);return c};b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};b.p="";return b(b.s=3)})({0:function(a,b,c){b.__esModule=!0;b.listToArray=function(a){return a?[].slice.call(a):[]}},1:function(a,b,c){b.__esModule=!0;var d=[".googlesyndication.com/","/googleads"];b.isGoogleSrc=function(a){return!(!a||!d.filter(function(b){return 0<
a.indexOf(b)}).length)}},3:function(a,b,c){b.__esModule=!0;a={detectAd:c(4).detectAd};g.Ya?g.Ya.AdDetector?a=g.Ya.AdDetector:g.Ya.AdDetector=a:g.Ya={AdDetector:a};b.AdDetector=a},34:function(a,b,c){b.__esModule=!0;b.getParentElementsCount=function(a){for(var b=0;;)if(a=a.parentElement)b++;else return b}},4:function(a,b,c){b.__esModule=!0;var d=c(5),e=c(9),f=c(34),k=c(6),m=h.body,n=h.documentElement;b.detectAd=function(){var a=g.pageYOffset||n.scrollTop||m.scrollTop,b=g.pageXOffset||n.scrollLeft||
m.scrollLeft,c=n.clientTop||m.clientTop||0,h=n.clientLeft||m.clientLeft||0,p=n.scrollWidth||n.offsetWidth||g.innerWidth,q=n.scrollHeight||n.offsetHeight||g.innerHeight,r=k.getFrienlyWindowsTree(g),t=[];k.windowsTreeEach(r,function(a){var b=a.window,c=a.parent,f=0<d.getParentFriendlyIFrames(b.document.documentElement).length,g=e.getAdsInWindow(b,{isInIFrame:f}),f=g.adElements,g=g.iframeProviders;if(c){var h=b.frameElement,k=t.filter(function(a){return a.windowsTree===c})[0].adElements;g.forEach(function(a){k.push({provider:a,
element:h})})}t.push({windowsTree:a,adElements:f})});t.forEach(function(a){a.adElements=a.adElements.sort(function(a,b){return f.getParentElementsCount(a.element)-f.getParentElementsCount(b.element)})});var v=[],Q=[];t.forEach(function(a){var b=a.windowsTree,c=b.parent;a=a.adElements;var b=d.getParentFriendlyIFrames(b.window.document.documentElement),e=b[b.length-1];a.forEach(function(a){var b=a.element;Q.push({provider:a.provider,element:c?e:b})})});Q.forEach(function(d){var e=d.element;var f=e.getBoundingClientRect();
var g=f.top+a-c;f=f.left+b-h;var k=e.clientWidth;e=e.clientHeight;var l=f+k,m=g+e,n=0>f?0:f<p?f:p,r=0>g?0:g<q?g:q;100<=((l>p?p:l>n?l:n)-n)*((m>q?q:m>r?m:r)-r)&&v.push({top:g,left:f,width:k,height:e,provider:d.provider})});return{page:{width:p,height:q},window:{top:a,left:b,width:g.innerWidth,height:g.innerHeight},ads:v}}},5:function(a,b,c){b.__esModule=!0;b.getParentFriendlyIFrames=function(a){for(var b=[];;)try{if(a=a.ownerDocument.defaultView.frameElement)b.push(a);else return b}catch(q){return b}}},
6:function(a,b,c){function d(a){return h.listToArray(a.document.getElementsByTagName("iframe")).filter(function(a){if(g.isSafari)return!1;try{return a.contentWindow.document}catch(ya){return!1}}).map(function(a){return a.contentWindow})}function e(a,b){var c={window:a,children:[],parent:b};c.children=d(a).map(function(a){return e(a,c)});return c}function f(a,b){b(a);a.children.forEach(function(a){return f(a,b)})}b.__esModule=!0;var g=c(7),h=c(0);b.getFrienlyWindowsTree=e;b.windowsTreeEach=f},7:function(a,
b,c){b.__esModule=!0;a=c(8);b.isSafari=a.isSafari()},8:function(a,b,c){b.__esModule=!0;b.isSafari=function(){var a=navigator.userAgent.toLowerCase();return-1!==a.indexOf("safari")&&-1===a.indexOf("chrome")&&-1===a.indexOf("android")}},9:function(a,b,c){b.__esModule=!0;var d=c(0),e=c(1);b.getAdsInWindow=function(a,b){function c(a,b){b.forEach(function(b){q.push({provider:a,element:b})})}var f=b.isInIFrame,g=a.document.body,h=d.listToArray(g.querySelectorAll("img")),k=d.listToArray(g.querySelectorAll("iframe")),
m=d.listToArray(g.querySelectorAll("script")),p=d.listToArray(g.querySelectorAll("div")),q=[],r=[],t=d.listToArray(g.querySelectorAll("yatag")),v=d.listToArray(g.querySelectorAll("yatag yatag"));c("yandex",t.filter(function(a){return-1===v.indexOf(a)}));c("adriver",k.filter(function(a){return(a=a.src)&&-1<a.indexOf(".adriver.ru/")}));c("adfox",k.filter(function(a){return(a=a.id)&&-1<a.toLowerCase().indexOf("adfox")}));c("adfox",h.filter(function(a){return(a=a.src)&&-1<a.indexOf("/banners.adfox.ru/")}));
c("adfox",p.filter(function(a){return-1<a.id.indexOf("AdFox_banner_")}));f&&h.filter(function(a){return(a=a.src)&&-1<a.indexOf(".adfox.ru/")}).length&&r.push("adfox");k.filter(function(a){return e.isGoogleSrc(a.src)}).forEach(function(a){q.push({provider:"google",element:a})});f&&m.filter(function(a){return e.isGoogleSrc(a.src)}).length&&r.push("google");c("awaps",k.filter(function(a){return(a=a.src)&&-1<a.indexOf("awaps.yandex.net/")}));c("criteo",k.filter(function(a){var b=a.src;a=a.id;return b&&
(-1<b.indexOf(".criteo.com/")||a&&-1<a.indexOf("cto_iframe_"))?!0:!1}));return{adElements:q,iframeProviders:r}}}})},"",!0)();var Pb={init:function(a,b){if(Math.random()<(b||.005)&&!ib.get("adDetect")){ib.set("adDetect",!0);var c=function(b){var c=g.Ya.AdDetector.detectAd();var d=c.window;var e=c.page;a.sendParams({__ym:{ads:{w:{t:d.top,l:d.left,w:d.width,h:d.height},p:{w:e.width,h:e.height},a:f.map(function(a){return{t:a.top,l:a.left,w:a.width,h:a.height,p:a.provider}},c.ads),full:b?1:0}}})};var d=
t(function(){k.un(g,"load",d);c(!0)},"",!0);k.on(g,"load",d);g.setTimeout(t(c,"setTimeout",!0),1E4)}}};aa.parse=function(a,b){var c={},d;a=a&&a.replace(/^\?/,"")||"";if(a.length){var e=a.split("\x26");for(d=0;d<e.length;d++)if(e[d]){var g=e[d].split("\x3d");if(g[0]){var h=f.safeDecodeURIComponent(g[0]);g=f.safeDecodeURIComponent((g[1]||"").replace(/\+/g,"%20"));b&&h in c?f.isArray(c[h])?c[h].push(g):c[h]=[c[h],g]:c[h]=g}}}return c};var Z=[],A=v(),va=E.getTimezone(),wa=E.getTimestamp(),X="893",V=g.screen,
Gb=64,xa=r.isIE()?512:2048,Hb=r.isIE()?512:2048,cb=r.isIE()?100:400,eb=100,Ka="noindex",jb=/\.(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)|psd|rar|rss|rtf|sea|sfv|sit|sha1|svg|tar|tif?f|torrent|ts|txt|vob|wave?|wma|wmv|wmf|webm|ppt(x|m|b)?|xls(x|m|b)?|pdf|phps|png|xpi|g?zip)$/i,Qb=+new Date,Ma,Fa;g.Ya=g.Ya||{};Ya._metrika=Ya._metrika||{};
Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};Ya._metrika.counterNum=Ya._metrika.counterNum||0;Ya._metrika.hitId=Ya._metrika.hitId||f.random(1,1073741824);Ya._globalMetrikaHitId=f.random();Ya._metrika.v=X;var fa=!!Ya._metrika.oo;g.Ya.Metrika=function(a,b,c,d){var e=this;return t(function(){function q(B){var u=!1;if(Ya._metrika.hitParam[ma]){if(1!=c||Ya._metrika.counters[ma])return!1;u=!0}Ya._metrika.counters[ma]=e;Ya._metrika.hitParam[ma]=1;e._webvisor=
!d&&!fa&&(x&&x.webvisor||!1);e._directCampaign=x&&x.directCampaign;x&&x.trackHash&&G(!0);if(!d&&!u){var M=new db({protocol:"https:",counterId:a,counterType:c,hid:la,tz:va,ts:wa,url:A.href,enabled:e._webvisor});e.replacePhones();u=new fb({dontSendRequests:fa});var n=function(d){var u=new La({protocol:"https:",counterType:c,counterId:a,trackHash:ja,hitId:la,webvisor:e._webvisor,counter:e,dontSendRequests:fa,counterNum:pa}),l={ut:T,he:x?~~x.httpError:0,ad:1==c&&g.Ya&&g.Ya.Direct,pv:!0,cpf:r.isChromePdf(),
saveRef:!0};Ma=+new Date;u.sendHit({url:S,referrer:W,title:m.getDocumentTitle(),vParams:b,userParams:X,experiments:Y,modes:l,visitColor:M.getVc(),hasPrerender:B,ts:wa,tz:va,callback:function(u,l){u=u||{};var B="0"!==u.pcs;ha.init(l);Ob.match();Lb.sync(a,c,B);ea.log("PageView. Counter ",a,". URL: ",A.href,". Referrer: "+h.referrer,". Params: ",b);Fa||(Fa=+new Date);M.start(u.webvisor);var m=u.mp2;B=new J({counterId:a});B.erase("mp2_substs");if(m){b:{var n=m.conditions;var p;if(n&&n.length)for(p=0;p<
n.length;p++){var q=n[p];if("ref"==q.type)q=Cb(q);else if("adv"==q.type){var r;var R=q;var t=Ya._metrika.counter._directCampaign;var N=R.ServiceNamePattern;var v=R.RefererPattern;q=t?R.direct_orders:R.direct_camp;var y=h.referrer,oa=aa.parse(A.search),x=Db(A.search,A.hash),z={};var w=["source","medium","campaign","term","content"];for(r=0;r<w.length;r++)oa["utm_"+w[r]]&&(z[w[r]]=oa["utm_"+w[r]]);var C=t?"direct.yandex.ru":x&&x.service||z.source;r=!1;if(!r&&N&&N.length)for(w=0;w<N.length;w++)if((new RegExp(N[w],
"i")).test(C)){r=!0;break}if(!r&&!R.yandex_direct&&v&&v.length)for(N=0;N<v.length;N++)if((new RegExp(v[N],"i")).test(y)){r=!0;break}!r&&R.google_adwords&&oa.gclid&&(r=!0);if(r&&q&&q.length&&(r=!1,t=t||x&&x.campaign||z&&z.campaign))for(R=0;R<q.length;R++)if(q[R]==t){r=!0;break}q=r}else q=!1;if(q){n[p].track_id&&B.create("mp2_track",n[p].track_id,43200);break b}}}n=B.read("mp2_track");m=m.substs&&m.substs[n];n&&m?(B.create("mp2_substs",f.toJSON(m)),B=Za(m),e.params("__ym",B?"mp_trackid":"mp_trackid_bad",
n)):$a()}else $a();k.on(g,"load",e.replacePhones,e);e._inited=!0;d&&d()}})};u.sync(n)}w();x&&(x.enableAll?(p(!0),l(!0),C()):(x.clickmap&&l(x.clickmap),x.trackLinks&&p(x.trackLinks),x.accurateTrackBounce&&C(x.accurateTrackBounce)),(x.ecommerce||x.useDataLayer)&&new hb({counter:e,prefsEcommerce:x.ecommerce}),x.triggerEvent&&f.async(function(){z.dispatchCustomEvent("yacounter"+a+"inited")}))}function p(a){var b={};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;break;case "boolean":b.on=
a;break;default:return}e._trackLinks=b}function w(){p(!1);k.on(h,"click",function(a){e._trackLinks&&e._trackLinks.on&&n(a)})}function n(a){var b=xb(a),c;if(b){a=!1;var d=(c=""+b.href)?c.split(/\?/)[0]:"";var e=function(a){var d=Va(b);y.sendClickLink({url:c,title:c==d?"":d,modes:a})};if(jb.test(d)||jb.test(c)||Wa(c,ra)||Wa(d,ra))a=!0;var g=m.classNameExists(b,"ym-disable-tracklink");d=m.classNameExists(b,"ym-external-link");g||(g={ln:!0,dl:a},d?e(g):(d=b.hostname||f.parseUrl(b.href).hostname||"",yb(v().hostname,
d)?a?(g.ln=!1,e(g)):(a=Va(b))&&a!=c&&H.set("il",f.trim(a,eb)):c&&-1!=c.search(/^ *(data|javascript):/i)||(g.ut=Ka,e(g))))}}function l(b){"undefined"==typeof b&&(b=!0);!0===b&&(b={});e._clickmap&&e._clickmap.destroy();b&&(e._clickmap=new Nb({dontSendRequests:fa,filter:b.filter,ignoreTags:b.ignoreTags,quota:b.quota,isTrackHash:b.isTrackHash,protocol:"https:",counterId:a,counterType:c,startTime:Qb}))}function E(a,b){function c(){if(!q){p&&f.clearTimeout(p);var c=m?B:B+ +new Date-n;c=b-c;0>c&&(c=0);p=
f.setTimeout(function(){q=!0;e(!1);a()},c,"trackUserTime")}}function d(){u||(l=!0,m=!1,u=!0,c())}function e(a){var b;for(b=0;b<t.length;b+=3)if(a)k.on(t[b],t[b+1],t[b+2]);else k.un(t[b],t[b+1],t[b+2])}var l=!1,u=!1,m=!0,B=0,n=+new Date,p=null,q=!1;if(r.isIE())f.setTimeout(a,b,"trackUserTime");else{var t=[g,"blur",function(){m=l=u=!0;B+=+new Date-n;n=+new Date;c()},g,"focus",function(){l||u||(B=0);n=+new Date;l=u=!0;m=!1;c()},h,"click",d,h,"mousemove",d,h,"keydown",d,h,"scroll",d];e(!0);c()}}function C(b){"number"!=
typeof b&&(b=15E3);if(!e._isAccurateTrackBounce){e._isAccurateTrackBounce=!0;var c=new P({counterId:a});var d=c.get("lastHit");c.set("lastHit",+new Date);((c=c.get("lastHit"))&&(!d||d<c-18E5)||!zb(h.referrer,v().href)||.1>Math.random())&&E(function(){e.notBounce()},b)}}function I(a){var b=function(){var a=v().hash.split("#")[1];if("undefined"==typeof a)return!1;var b=a.indexOf("?");0<b&&(a=a.substring(0,b));return a};var c=b();(function N(){var d=b();d!==c&&(a(),c=d);qa=f.setTimeout(N,200,"trackHash")})()}
function G(a){if(!1===a)ja&&("onhashchange"in g?k.un(g,"hashchange",U):f.clearTimeout(qa),ja=!1);else if(a=U,!ja){if("onhashchange"in g)k.on(g,"hashchange",a);else I(a);ja=!0}y.setTrackHash(ja);e._trackHash=ja}function U(){var a={ut:T,ad:1==c&&g.Ya&&g.Ya.Direct,wh:!0,saveRef:!0,pv:!0};V=da.lastReferrer=Q;y.sendAjaxHit({url:v().href,title:m.getDocumentTitle(),referrer:V,modes:a});Q=v().href}function O(a,b,c){a=xa.parseValidate(a,b);b=[];a&&(b.push(a),c=c||{},f.isFunction(c.callback)&&(b.push(c.callback),
c.ctx&&b.push(c.ctx)));b.length&&e.params.apply(e,b)}var T="",V="",Q=da.lastReferrer=A.href;Ya._metrika.counter||(Ya._metrika.counter=e);if("object"==typeof a){var x=a;d=a.defer;T=a.ut;c=a.type;b=a.params;var X=a.userParams;var Y=x.experiments;var Z=x.nck;var S=a.url;var W=a.referrer;a=a.id}(function(a){if(g.performance&&"function"===typeof performance.getEntries&&(a===L&&(a=1),!(Math.random()>=a))){a={1882689622:1,2318205080:1,3115871109:1,3604875100:1,339366994:1,2890452365:1,849340123:1,173872646:1,
2343947156:1,655012937:1,1996539654:1,2065498185:1,823651274:1,12282461:1,1555719328:1,1417229093:1,138396985:1};var b=performance.getEntries(),c={},d;for(d=0;d<b.length;d++){var e=b[d];var h=e.name.replace(/^https?:\/\//,"").split("?")[0];var k=f.fnv32a(h);a[k]&&!c[h]&&(c[h]={dns:Math.round(e.domainLookupEnd-e.domainLookupStart),tcp:Math.round(e.connectEnd-e.connectStart),duration:Math.round(e.duration),response:Math.round(e.responseEnd-e.requestStart),pages:A.href})}f.keys(c).length&&(new ga).logParams({timings8:c})}})(24226447==
a?1:.002);S=S?S:A.href;W=W?W:h.referrer;a=a||0;/^\d+$/.test(a)||(a=0);c=c||0;var ma=a+":"+c;if(Ya._metrika.counters[ma])return Ya._metrika.counters[ma];var la=Ya._metrika.hitId;Ya._metrika.counterNum++;var pa=Ya._metrika.counterNum;Z||(K.initCookie(),bb.init());K.retransmit();var y=new ca({protocol:"https:",counterType:c,counterId:a,hitId:la,counter:e,dontSendRequests:fa,counterNum:pa});e.replacePhones=t(function(){var b,c;try{(b=(new J({counterId:a})).read("mp2_substs"))&&(c=ba.parse(b))&&Za(c,!0)}catch(M){}return e},
"counter.replacePhones");e.reachGoal=t(function(b,c,d,f){2<=arguments.length&&"function"===typeof c&&(f=d,d=c,c=L);ea.log("Reach goal. Counter: "+a+". Goal id: "+b+". Params: ",c);y.sendGoal(b,{vParams:c,callback:d,ctx:f});return e},"counter.reachGoal");e.trackLinks=t(function(a){p(a);return e},"counter.trackLinks");var H=new P({counterId:a});e.hit=t(function(b,c,d,g,h,k){b?(f.isObject(c)&&(d=c.referer,g=c.params,h=c.callback,k=c.ctx,c=c.title),ea.log("PageView. Counter "+a,". URL: "+b,". Referrer: "+
d,". Params: ",g),y.sendHit({url:b,title:c,referrer:d,vParams:g,callback:h,ctx:k})):f.warning("Empty hit url");return e},"counter.hit");e.params=t(function(b){var c=arguments.length,d=c,g=[].slice.call(arguments,0);if(b){if(1<arguments.length){if(f.isFunction(arguments[c-1])){var h=arguments[c-1];d=c-1}else if(f.isFunction(arguments[c-2])){h=arguments[c-2];var k=arguments[c-1];d=c-2}g=[].slice.call(g,0,d);1<g.length&&(g=[f.array2Props(g)])}ea.log("User params. Counter "+a+". Params: ",g[0]);y.sendParams(g[0],
h,k)}else f.warning("Wrong params");return e},"counter.params");e.file=t(function(a,b){a?(b=b||{},y.sendFileUpload({url:a,title:b.title,vParams:b.params,callback:b.callback,ctx:b.ctx})):f.warning("Empty file url");return e},"counter.file");e.extLink=t(function(a,b){a?(b=b||{},y.sendExtLink({url:a,title:b.title,vParams:b.params,callback:b.callback,ctx:b.ctx})):f.warning("Empty link");return e},"counter.extLink");e.notBounce=t(function(a){var b=0;a=a||{};Ma&&Fa&&(b=Fa-Ma);y.sendNotBounce(b,{callback:a.callback,
ctx:a.ctx});return e},"counter.notBounce");var ra=[];e.addFileExtension=function(a){if(!a)return f.warning("Empty extension"),e;"string"==typeof a?ra.push(a):ra=ra.concat(a);return e};e.clickmap=function(a){l(a);return e};e.accurateTrackBounce=function(a){C(a);return e};var qa=null;var ja=!1;e.trackHash=function(a){G(a);return e};var xa={requiredEcommerceFields:["currency","goods"],parseValidate:function(a,b){var c=this.validate(a,b),d;if(!c.isValid)return console&&console.log(c.message),!1;c={};
c[a]={};b.currency&&(c.currencyCode=b.currency);b.goods&&(c[a].products=b.goods);for(d in b)b.hasOwnProperty(d)&&-1===f.arrayIndexOf(this.requiredEcommerceFields,d)&&(c[a].actionField||(c[a].actionField={}),c[a].actionField[d]=b[d]);return{__ym:{ecommerce:[c]}}},validate:function(a,b){var c=!1,d="";if(f.isObject(b))switch(a){case "detail":case "add":case "remove":f.isArray(b.goods)&&b.goods.length?(c=f.arrayEvery(b.goods,function(a){return f.isObject(a)&&(f.isString(a.id)||f.isNumber(a.id)||f.isString(a.name)||
f.isString(a.name))}))||(d="All items in 'goods' should be objects and contain 'id' or 'name' field"):d="Ecommerce data should contain 'goods' non-empty array";break;case "purchase":f.isNumber(b.id)||f.isString(b.id)?c=!0:d="Purchase object should contain string or number 'id' field"}else d="Ecommerce data should be an object";return{isValid:c,message:d}}};e.ecommerceDetail=t(function(a,b){O("detail",a,b);return e},"ecommerce.detail");e.ecommerceAdd=t(function(a,b){O("add",a,b);return e},"ecommerce.add");
e.ecommerceRemove=t(function(a,b){O("remove",a,b);return e},"ecommerce.remove");e.ecommercePurchase=t(function(a,b){O("purchase",a,b);return e},"ecommerce.purchase");e.userParams=t(function(a,b,c){f.isObject(a)?e.params({__ymu:a},b||function(){},c):f.warning("Wrong user params");return e},"uparams");e.experiments=t(function(a,b,c){y.sendExperiments({callback:b,ctx:c,experiments:a});return e},"exps");e.id=e.setUserID=t(function(a,b,c){f.isString(a)||f.isNumber(a)?e.params({__ym:{user_id:a}},b||function(){},
c):f.warning("Incorrect user ID");return e},"id");var Ea=new J;e.getClientID=t(function(){return Ea.read("uid")},"guid");e.enableAll=function(){p(!0);l(!0);C();return e};e.uploadPage=function(){};Pb.init(y);e._performanceTiming=Xa;if(a)if("prerender"==h.webkitVisibilityState){y.sendPrerenderHit({url:A.href,title:m.getDocumentTitle(),referrer:h.referrer});var ka=function(){"prerender"!=h.webkitVisibilityState&&(k.un(h,"webkitvisibilitychange",ka),q(!0))};k.on(h,"webkitvisibilitychange",ka)}else q(!1)},
"init")()};g.Ya._metrika.remoteCtrlInited||(g.Ya._metrika.remoteCtrlInited=!0,new gb);g.Ya.Metrika.counters=function(){var a=[];f.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._metrika.getCounters=Ya._metrika.getCounters||function(){var a=
[];f.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&&Ya.Metrika&&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)});(function(){function a(a){try{delete g[a]}catch(q){g[a]=
L}}var b=g.yandex_metrika_callback,c=g.yandex_metrika_callbacks,d;"function"==typeof b&&b();if("object"==typeof c)for(b=0;b<c.length;b++)if(d=c[b])c[b]=null,d();a("yandex_metrika_callback");a("yandex_metrika_callbacks")})();g.Ya.Metrika.informer=function(a){var b=!!Ya.Metrika._informer;Ya.Metrika._informer=a;b||m.loadScript({src:"https://informer.yandex.ru/metrika/informer.js"})};k.on(h,"click",t(function(a){var b=z.getTarget(a);if(b&&"ym-advanced-informer"==b.className){var c=b.getAttribute("data-lang");
var d=b.getAttribute("data-cid");Ya.Metrika.informer({i:b,id:+d,lang:c});z.prevent(a)}},"adv-inf"),null,{passive:!1})})(this,this.document);