(function(g,h,C){function u(a,b,c){return function(){try{return a.apply(this,arguments)}catch(d){c||Ba(d,b)}}}function Ba(a,b){var c;if(.01>Math.random())try{var d=a&&a.message||"";(c=-1> 8,b&255])}function n(a,b){e.mergeArrays(a,[b&255])}function k(a,b){for(b=Math.max(0,b|0);127>=7;e.mergeArrays(a,[b])}function U(a,b){255=b)return null;if(a.attributes)for(var c=a;c;){if(c.attributes.__ym_wv_ign)return null; c=c.parentElement}c=64;var d=0,f=p.getElementParent(a),e=f&&f[J]?f[J]:0;0>e&&(e=0);var Ca=a.nodeName.toUpperCase(),g=vb[Ca];g||(c|=2);var t=p.getElementNeighborPosition(a);t||(c|=4);var x=p.getElementRegion(a);(f=f?p.getElementRegion(f):null)&&x[0]==f[0]&&x[1]==f[1]&&x[2]==f[2]&&x[3]==f[3]&&(c|=8);fa[b].pos=x[0]+"x"+x[1];fa[b].size=x[2]+"x"+x[3];a.id&&"string"==typeof a.id&&(c|=32);(f=p.calcTextChecksum(a))&&(c|=16);var S=p.calcAttribChecksum(a);S&&(d|=2);a:{var w=p.getElementChildren(p.getElementParent(a), a.tagName);for(var h=0;hq)return null;var Ca={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[b];if(!Ca)return null;var g=p.getElementXY(c);c=[];n(c,Ca);k(c,a);k(c,q);k(c,Math.max(0,d[0]-g[0]));k(c,Math.max(0,d[1]-g[1]));/^mouse(up|down)|click$/.test(b)&&(a=f||e,n(c,2>a?1:a==(f?2:4)?4:2));return c}function xb(a,b,c,d){b=b[J];if(!b||0>b)return null;var f=[];n(f,31);k(f,a);k(f,b);k(f,c[0]);k(f,c[1]);n(f,0);n(f,0);n(f,d);return f}function Da(a,b){var c=[];n(c,3);k(c,a);k(c,b[0]);k(c,b[1]);return c}function Va(a, b,c){var d=[];c=c[J];if(!c||0>c)return null;n(d,16);k(d,a);k(d,b[0]);k(d,b[1]);k(d,c);return d}function v(a,b,c){var d=[];n(d,28);k(d,a);k(d,b[0]);k(d,b[1]);k(d,c[0]);k(d,c[1]);return d}function C(a,b,c,d,f){var e=[];n(e,38);k(e,a);q(e,b);n(e,c);a=d[J];if(!a||0>a)a=0;k(e,a);n(e,f?1:0);return e}function yb(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 f=[];n(f,29);k(f,a);t(f,c);t(f, d);return f}function oa(a){var b=[];n(b,27);k(b,a);return b}function zb(a){var b=[];n(b,14);k(b,a);return b}function wa(a){var b=[];n(b,15);k(b,a);return b}function G(a,b){var c=[];n(c,17);k(c,a);k(c,b[J]);return c}function y(a,b){var c=[];n(c,18);k(c,a);k(c,b[J]);return c}function B(a,b,c,d){var f=[];n(f,39);k(f,a);k(f,b[J]);U(f,String(c));n(f,d?1:0);return f}function K(a){var b=a[J];if(!b||0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||R(a.form))return null;var c=p.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 f=-1,e=a.form.elements,q=e.length,g=0,x=0;gf)return null;e=[];n(e,7);k(e,b);k(e,c);k(e,d);t(e,a.name||"");k(e,f);return e}function O(a,b){var c=p.getFormNumber(b); if(0>c)return null;for(var d=b.elements,f=d.length,q=[],g=0;gc)){var d=A.getPos(a),f=Xa[0]-d[0],n=Xa[1]-d[1];f=f*f+n*n;0>=f||16>f&&100>c||20>c&&256>f||(fb=b,Xa= d,I(a))}}function ca(){var a=p.getDocumentScroll(),b=m.nowTime();10>b-gb||10>Math.abs(a[0]-Za[0])&&10>Math.abs(a[1]-Za[1])||(gb=b,Za=a,H(Da,[m.nowEventTime(),a]))}function W(a){if(a=A.getTarget(a)){var b=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=la[a.localId],!b||10>Math.abs(c[0]-b[0])&&10>Math.abs(c[1]-b[1]))return}else{for(;la[b];)b=Math.random();a.localId=b}la[a.localId]=c;a!==h&&(M(a),H(Va,[m.nowEventTime(),c,a]))}}function ja(){H(v,[m.nowEventTime(),p.getViewportSize(),p.getDocumentSize()])} function da(){H(sa,[],!0)}function ba(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&&La.test(a.name)||a.id&&La.test(a.id):!1}function X(a){if(!a)return{ignore:!0,forceRecord:!1,isPrivate:!1,privateFlag:!1,recordData:!0};var b="password"===a.type||La.test(a.name)||La.test(a.id),c=e.reduce(function(b,c){return b||Fa.generalRegex.test(a[c])},!1,["className","id","name"])||Fa.placeholderRegex.test(a.placeholder), d=Fa.forceRecordRegex.test(a.className);return{forceRecord:d,ignore:b,isPrivate:c,privateFlag:!d&&(c||b),recordData:d||!(c&&f.get("isEU")||b)}}function na(a,b,c){a=A.getTarget(a);var d=X(a);d.ignore||!d.forceRecord&&(d.isPrivate&&f.get("isEU")||L(a))||(M(a),H(C,[m.nowEventTime(),b,c,a,d.privateFlag]))}function pa(a){var b=a.keyCode,c=ba(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),na(a,b,c|16),$a=!1,e.setTimeout(function(){$a=!0},1,"wvl.keyDown"),!(67==b&&c&4)||c&1||c&2||Y()}function ea(a){$a&&!ab&&0!==a.which&&(na(a,a.charCode||a.keyCode,ba(a)),ab=!0,e.setTimeout(function(){ab=!1},1,"vwl.keyPress"))}function ia(){if(g.getSelection){try{var a=g.getSelection()}catch(ub){return}var b=a.toString();var c=a.anchorNode}else h.selection&&h.selection.createRange&&(a=h.selection.createRange(),b=a.text,c=a.parentElement());if("string"== typeof b){try{for(;c&&1!=c.nodeType;)c=c.parentNode}catch(ub){return}if(c){a=X(c).privateFlag||L(c,!0);c=c.getElementsByTagName("*");for(var d=0;da.deltaY?2:0:"mousewheel"==a.type&&(c=0a.wheelDelta?1:0);c&&(M(b),H(xb,[m.nowEventTime(),b,A.getPos(a),c]))}}function ib(a){(a=A.getTarget(a))&&"BODY"==a.tagName&&xa.append([],!0)}var xa=new Ma({protocol:a,globalConfig:f,counterId:b,counterType:c,meta:{url:z().href,hitId:d,timezone:Ga,timestamp:Ha}}), jb=p.getBody(),vb={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},Fa=function(){var a="first(-|\\.|_|\\s){0,2}name last(-|\\.|_|\\s){0,2}name zip postal phone address passport (bank|credit)(-|\\.|_|\\s){0,2}card card(-|\\.|_|\\s){0,2}number card(-|\\.|_|\\s){0,2}holder cvv card(-|\\.|_|\\s){0,2}exp card(-|\\.|_|\\s){0,2}name card.*month card.*year card.*month card.*year password email birth(-|\\.|_|\\s){0,2}(day|date) second(-|\\.|_|\\s){0,2}name third(-|\\.|_|\\s){0,2}name patronymic middle(-|\\.|_|\\s){0,2}name birth(-|\\.|_|\\s){0,2}place house street city flat state".split(" "); return{generalRegex:new RegExp("("+a.join("|")+")","i"),placeholderRegex:new RegExp("("+a.concat("\u0438\u043c\u044f;\u0444\u0430\u043c\u0438\u043b\u0438\u044f;\u043e\u0442\u0447\u0435\u0441\u0442\u0432\u043e;\u0438\u043d\u0434\u0435\u043a\u0441;\u0442\u0435\u043b\u0435\u0444\u043e\u043d;\u0430\u0434\u0440\u0435\u0441;\u043f\u0430\u0441\u043f\u043e\u0440\u0442;\u041d\u043e\u043c\u0435\u0440(-|\\.|_|\\s){0,2}\u043a\u0430\u0440\u0442\u044b;\u0434\u0430\u0442\u0430(-|\\.|_|\\s){0,2} \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f;\u0434\u043e\u043c;\u0443\u043b\u0438\u0446\u0430;\u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430;\u0433\u043e\u0440\u043e\u0434;\u043e\u0431\u043b\u0430\u0441\u0442\u044c".split(";")).join("|")+ ")","i"),forceRecordRegex:/ym-record-keys/i,obfuscatedSymbol:String.fromCharCode(8226),obfuscatedKeyCode:88}}(),Wa=1,fb=0,Xa=[0,0],gb=0,Za=[0,0],la={},La=/^(password|passwd|pswd)$/,$a=!0,ab=!1,bb="",ma=!1,P=!0;m.initCorrector();m.nowTime();var J="metrikaId_"+Math.random(),fa={},ha=":submit"+Math.random();if(!e.isMetrikaPlayer()){l.on(h,"mousemove",Z);l.on(h,"click,dblclick,mousedown",I);l.on(h,"mouseup",D);l.on(g,"scroll",ca);if("onmousewheel"in h)l.on(h,"mousewheel",ra);else l.on(h,"wheel",ra);l.on(g, "beforeunload",da);if(!Ab)l.on(g,"unload",da);l.on(g,"resize",ja);l.on(h,"keydown",pa);l.on(h,"keypress",ea);l.on(h,"copy",Y);l.on(h,"touchmove,touchstart",ka);if(jb)l.on(h,"mouseleave",ib);h.attachEvent&&!g.opera?(l.on(h,"focusin",V),l.on(h,"focusout",S)):(l.on(g,"focus",T),l.on(g,"blur",qa),l.on(h,"blur",qa));h.addEventListener?(l.on(h,"scroll",W),l.on(h,"focus",w),l.on(h,"blur",Q),l.on(h,"change",aa),l.on(h,"submit",E)):h.attachEvent&&(l.on(h,"focusin",w),l.on(h,"focusout",Q),function(){for(var a= h.getElementsByTagName("form"),b=0;b]+>/gi,""))}function lb(a,b){var c;if(!a||!b)return!1;var d=[];for(c=0;cb||36E5b.name?1:2}).map(function(a){return[a.name,a.description,d.u(a).map(function(a){return[a.description,a.suffixes,a.type].join()}).join()].join()}).join()},a}();b.A=a},function(a,b){b.a=!0;b.u=function(a){return Array.prototype.slice.call(a)}},function(a,b){b.a=!0;a=function(){function a(){this.m=g.ApplePaySession}return a.prototype.g=function(){var a= !1;try{a=g.self!==g.top}catch(q){}if(!this.m||"https:"!==K.protocol||a)return"";a="";for(var b=1;10>=b;b++)a+=this.m.supportsVersion(b)?b:"0";return a+this.m.canMakePayments()},a}();b.v=a},function(a,b){b.a=!0;a=function(){function a(){this.b=g.navigator}return a.prototype.g=function(){return this.b.i?this.b.i:this.b.N?this.b.N:this.b.i?this.b.i:"unknown"},a}();b.w=a},function(a,b){function c(a,b){a=[a[0]>>>16,65535&a[0],a[1]>>>16,65535&a[1]];b=[b[0]>>>16,65535&b[0],b[1]>>>16,65535&b[1]];var c=[0, 0,0,0];return c[3]+=a[3]*b[3],c[2]+=c[3]>>>16,c[3]&=65535,c[2]+=a[2]*b[3],c[1]+=c[2]>>>16,c[2]&=65535,c[2]+=a[3]*b[2],c[1]+=c[2]>>>16,c[2]&=65535,c[1]+=a[1]*b[3],c[0]+=c[1]>>>16,c[1]&=65535,c[1]+=a[2]*b[2],c[0]+=c[1]>>>16,c[1]&=65535,c[1]+=a[3]*b[1],c[0]+=c[1]>>>16,c[1]&=65535,c[0]+=a[0]*b[3]+a[1]*b[2]+a[2]*b[1]+a[3]*b[0],c[0]&=65535,[c[0]<<16|c[1],c[2]<<16|c[3]]}function d(a,b){a=[a[0]>>>16,65535&a[0],a[1]>>>16,65535&a[1]];b=[b[0]>>>16,65535&b[0],b[1]>>>16,65535&b[1]];var c=[0,0,0,0];return c[3]+= a[3]+b[3],c[2]+=c[3]>>>16,c[3]&=65535,c[2]+=a[2]+b[2],c[1]+=c[2]>>>16,c[2]&=65535,c[1]+=a[1]+b[1],c[0]+=c[1]>>>16,c[1]&=65535,c[0]+=a[0]+b[0],c[0]&=65535,[c[0]<<16|c[1],c[2]<<16|c[3]]}function f(a,b){return 32===(b%=64)?[a[1],a[0]]:32>b?[a[0]<>>32-b,a[1]<>>32-b]:(b-=32,[a[1]<>>32-b,a[0]<>>32-b])}function e(a,b){return 0===(b%=64)?a:32>b?[a[0]<>>32-b,a[1]<>>1]),[4283543511,3981806797]),[0,a[0]>>>1]),[3301882366,444984403]),[0,a[0]>>>1])}b.a=!0;b.hash=function(a,b){a=a||"";b=b||0;var q=a.length%16,n=a.length-q,h=[0,b];b=[0,b];for(var l,t,U=[2277735313,289559509],p=[1291169091,658871167],m=0;m>>0).toString(16)).slice(-8)+("00000000"+(h[1]>>>0).toString(16)).slice(-8)+("00000000"+(b[0]>>>0).toString(16)).slice(-8)+("00000000"+(b[1]>>>0).toString(16)).slice(-8)}}]);ya=ya["default"]}catch(a){Oa={error:a,scope:"fip"}}var F={protocol:"https:",baseUrl:"mc.yandex.",admetrikaUrl:"mc.admetrica.ru",yandexWhiteListTld:"ru ua by kz az kg lv md tj tm uz ee fr co.il com.ge com.am com.tr".split(" ")};F.host= F.baseUrl+"ru";F.cross="L21ldHJpa2EvenpsYy5odG1s";F.maxBodyLength=7E5;var e={isNativeFunction:function(a,b){return a?(new RegExp("function\\s*"+b+"\\s*\\(\\)\\s*\\{\\s*\\[native[\\s-]code\\]\\s*\\}","i")).test(a.toString()):!1},mixin:function(a){var b,c;for(b=1;ba?"0":"")+a};m.getTimestamp=function(){var a=new Date;a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()];var b="",c;for(c=0;c+m.getMs()&&this.onFlush.call(this.onFlushCtx|| this,this.dataFromStorage(a.data),a.meta,a.pnum);this.clear()},setWVType:function(a){this.wvType=a;this._sender.version=a},getFlushSize:function(){return this._data.length},mergeData:function(a,b){e.mergeArrays(a,b)},append:function(a,b){this.mergeData(this._data,a);this._saveToStorageThrottled();this.active&&((b||this.getFlushSize()>=this.maxBufferSize||this.getFlushSize()===this.maxChunkSize)&&this._flush(b),this._flushTID||(this._flushTID=e.defer(this._flush,this.flushTimeout,this,[b],"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(a){if(!this.getFlushSize())return this.clear(),!1;this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber,a);this._packetNumber++;this.clear()},dataFromStorage:function(a){return a},dataToStorage:function(a){return a},_saveToStorage:function(){this.storage&&this._data.length&&this.storage.set(this.storageKey, {data:this.dataToStorage(this._data),meta:this.meta,pnum:this._packetNumber,time:m.getMs()})}}),v={storage:{},init:function(){var a=this;u(function(){g.Ya=g.Ya||{};g.Ya._metrika=g.Ya._metrika||{};a.storage=g.Ya._metrika},"",!0)();return this},setSafe:function(a,b){var c=this;u(function(){c.storage[a]===C&&(c.storage[a]=b)},"",!0)();return this},set:function(a,b){u(function(){g.Ya._metrika[a]=b},"",!0)();return this},get:function(a,b){return u(function(){var c=g.Ya._metrika[a];return c===C?b:c},"", !0)()}};e.async=function(a,b,c){if(g.postMessage){var d="__ym__promise"+Math.random()+"_"+m.getMs();var f=function(c){try{var e=c.data}catch(k){return}e===d&&(c.stopPropagation&&c.stopPropagation(),a.call(b),l.un(g,"message",f,null,{passive:!1}))};l.on(g,"message",f,null,{passive:!1,name:".async."+(c||"")});g.postMessage(d,"*")}else e.setTimeout(function(){a.call(b)},0)};var za=B.inherit({transports:[],globalConfig:v,postParams:[],isDisabled:function(){return this.globalConfig.get("oo")},send:function(a, b,c,d){var f=[a],g=this,n=c||function(){};g.isDisabled()?n.call(d):function t(a){if(a=f.length?c.blockNext()||t.call(this,a+1):c.request(f[q],b,function(a,b,c){a?n.call(d,b,c):e.async(function(){Da.call(g,q+1)},this,"senderCall")},this)}).call(this,0)}catch(wb){Ba(wb,"send by "+(c&&c.id)),t.call(this,a+1)}}.call(this, 0)}}),X={};e.keys=function(a){var b,c=[];for(b in a)a.hasOwnProperty(b)&&c.push(b);return c};e.map=function(a,b){var c,d=[];for(c=0;carguments.length&&(b=a,a=0);1>arguments.length&&(b=1073741824);return Math.floor(Math.random()*(b-a))+a};var T=Y.inherit({id:"form",index:2,enctype:"application/x-www-form-urlencoded", htmlfileOnly:!1,_initComponent:function(){T.superclass._initComponent.apply(this,arguments);"_htmlfile"in T.prototype||(T.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:h)},request:function(a,b,c,d){var f=this._doc;if(!f)return c.call(d,!1);b=this._splitParams(b);var g="ifr"+e.random();var n=f.createElement("div");n.style.position="absolute";n.style.left="-99999px";n.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'];e.forEachKey(b.post,function(a){e.mergeArrays(k,['\x3cinput type\x3d"hidden" autocomplete\x3d"off" autocorrect\x3d"off"',' autocapitalize\x3d"off" spellcheck\x3d"false" name\x3d"',a,'"/\x3e'])});e.mergeArrays(k,["\x3c/form\x3e"]);n.innerHTML=k.join("");f.body.appendChild(n);var h=n.getElementsByTagName("form")[0];e.forEachKey(b.post,function(a,b){h[a].value=b});h.submit();e.setTimeout(function(){f.body.removeChild(n)}, 1E4,"TransportForm.request.2");return c.call(d,!0,"tf.request")},_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}}),Hb=T.inherit({id:"htmlfile",index:3,htmlfileOnly:!0}),V=Y.inherit({id:"img",index:4,request:function(a,b,c,d){a=this._buildUrl(a,b);var f=!1;b=h.createElement("img");c=c||function(){};b.onload=u(function(){f||(c.call(d,!0),f=!0)},"TransportImage.request"); b.onerror=u(function(){f||(c.call(d,!1),f=!0)},"TransportImage.request");b.src=a;this.timeout&&e.setTimeout(function(){f||(c.call(d,!1),f=!0)},this.timeout,"ti.request")}}),Z={stringify:function(a){try{var b=JSON.stringify(a)}catch(c){}return e.inArray(["{}",C],b)?"null":b}};e.toJSON=function(a){var b;if(a===C)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>>0};e.getTld=function(){if(!this._tld){var a=K.hostname.split(".");this._tld=a[a.length-1]}return this._tld};var L={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/\x3d",tailSafe:"*-_"},G=B.inherit({counterId:"", onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){var a;G.superclass._initComponent.apply(this,arguments);this._domain=null;if(!this.onlyCurrentDomain){var b=g.location.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: "")}});G.get=function(a){return(new G({onlyCurrentDomain:!0})).read(a)};G.set=function(a,b,c){return(new G({onlyCurrentDomain:!0})).create(a,b,c)};G.isEnabled=function(){return(new G({onlyCurrentDomain:!0})).isEnabled()};var p={removeNode:function(a){var b=a&&a.parentNode;b&&b.removeChild(a)}};r.isSafariWebView=u(function(){var a=navigator.userAgent||"";return navigator.vendor&&-1f&&500=c.browserInfo.rqnl&&(d=new O({protocol:c.protocol,host:c.host,resource:c.resource,counterId:c.counterId,counterType:c.counterType, postParams:c.postParams||[],retry:!0}),d.send(c.params,c.browserInfo))})};e.fletcher=function(a){for(var b=a.length,c=0,d=255,f=255,e,g,k;b;){e=21>8,g&=255,g^=k),d+=g,f+=d;while(--e);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};L.encode=function(a,b){var c=(L.abc+(b?L.tailSafe:L.tail)).split(""),d=a.length,f=[],g=d-d%3,n;for(n=0;n>18&63],c[k>>12&63],c[k>>6&63],c[k&63]])}switch(d-g){case 1:k=a[g]<<4;e.mergeArrays(f,[c[k>>6&63],c[k&63],c[64],c[64]]);break;case 2:k=(a[g]<<10)+(a[g+1]<<2),e.mergeArrays(f,[c[k>>12&63],c[k>>6&63],c[k&63],c[64]])}return f.join("")};e.arrayEvery=function(a,b,c){var d;for(d=0;dparseInt(a,16)})};e.trim= function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};e.isNumber=function(a){return isFinite(a)&&!isNaN(a)&&"[object Number]"===e.toString(a)};e.isString=function(a){return"[object String]"===e.toString(a)};e._hasIndexOf=[].indexOf&&-1===[].indexOf(1);e.arrayIndexOf=e._hasIndexOf?function(a,b){return a.indexOf(b)}:function(a,b){var c;for(c=0;cf?b.push(f):(127f?b.push(f>>6|192):(b.push(f>>12|224),b.push(f>>6&63|128)),b.push(f&63|128))}return b},decode:function(a){for(var b= "",c=0,d,f,e;cd?(b+=String.fromCharCode(d),c++):191d?(f=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|f&63),c+=2):(f=a.charCodeAt(c+1),e=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(f&63)<<6|e&63),c+=3);return b}};L.decode=function(a,b){for(var c=L.abc+(b?L.tailSafe:L.tail),d=0,f="",e,g,k,h,l;a.length%4;)a+="\x3d";do{e=c.indexOf(a.charAt(d++));g=c.indexOf(a.charAt(d++));h=c.indexOf(a.charAt(d++));l=c.indexOf(a.charAt(d++));if(0>e||0>g||0>h||0> l)return null;k=e<<18|g<<12|h<<6|l;e=k>>16&255;g=k>>8&255;k&=255;f=64==h?f+String.fromCharCode(e):64==l?f+String.fromCharCode(e,g):f+String.fromCharCode(e,g,k)}while(dJb?g=!0:m>F.maxBodyLength?e.warning("Too big params"):c("site-info",m));k.saveRef&&(Qa.lastReferrer=l);n=function(a,b){var c={};e.forEachKey(b,function(a,b){-1===e.arrayIndexOf(["",0,C,null],b)&&(c[a]=b)});return e.mixin({},a,c)}(n,{gdpr:ba.getState(this.globalConfig),tp:this.counter&& this.counter.tp,tpid:this.counter&&this.counter.tpid,fu:this.getFu(a.url,a.referrer),eu:this.globalConfig.get("isEU"),v:this._getVersion(),pr:a.hasPrerender?1:null});this.fake||(d=this._getTechInfo(a.title,k,this.counterId,a.ts,a.tz,this._trackHash,this.hitId,this.webvisor,this.counter,a.nohit));e.mixin(h,d,n);this.send(p,h,function(){g&&this.counter.params(f);a.userParams&&this.counter.userParams(a.userParams);e.isFunction(a.callback)&&a.callback.apply(a.ctx,arguments)},this)}},_prepareHitUrl:function(a){var b= z(),c=b.host;b=b.href;if(!e.isString(a))return b;if(-1!=a.search(/^[a-z][\w.+-]+:\/\//i))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},getFu:function(a,b){var c=a!==z().href,d=h.referrer.replace(/\/$/,""),f=(b||"").replace(/\/$/,"");d=d!==f;f=0;d&&c?f=3:d?f=1:c&&(f=2);return f}, _getTechInfo:function(a,b,c,d,f,h,n,k,l,t){function q(a,b,c){var d=""+b;a&&b&&(c||-1===d.indexOf(":"))&&(v[a]=d)}function U(a){b[a]&&q(a,"1")}var v={};b=b||{};d=d||m.getTimestamp();f=f||m.getTimezone();q("j",r.getJavaEnabled()?"1":"");var u=r.isDesktop(this.globalConfig);u!==C&&q("dp",u?"1":"0");q("nt",r.netType());q("ns",r.getNavigationStart());P&&q("s",P.width+"x"+P.height+"x"+(P.colorDepth||P.pixelDepth));g.devicePixelRatio&&q("sk",g.devicePixelRatio);r.isIframe()&&(q("ifr","1"),q("sti",r.isSameOriginTopFrame()? "1":"0"));g.ia_document&&g.ia_document.shareURL&&g.ia_document.referrer&&q("iia","1");q("adb",nb.getVal());q("f",r.getFlashVersion());q("l",r.getSilverlightVersion());q("fpr",r.getFingerPrint());q("cn",this.counterNum);b.pa||(u=p.getViewportSize(),q("w",u[0]+"x"+u[1]));q("z",f);q("i",d);q("et",m.getSeconds());q("en",p.getDocumentCharset());q("c",navigator.cookieEnabled?"1":"");q("la",r.getLanguage());q("ntf",r.getNotificationPermission());e.random(100)||q("np",L.encode(Pa.encode(e.trim(r.getPlatform(), 100))));h&&q("wh","1");f="ar ln dl cpf ad nb pa pq pv ex".split(" ");for(d=0;dn&&(n*=-1),n%=65535;q("wn",n||e.fletcher(g.name));try{g.history&&q("hl",String(g.history.length))}catch(Va){}}n="";this.sendTitle&&(n=this._getTitle(a));q("t",n,!0);return v},_getTitle:function(a){a="undefined"==typeof a?(a=p.getDocumentTitle())?e.trim(a,Ra):"":e.trim(a,Ra);return a}});e.array2Props=function(a){var b=a.length,c={},d=c,f;for(f=0;f]*>|[\u0000-\u0020])/g,""))};p.getFormNumber=function(a){var b=h.getElementsByTagName("form"),c;var d=0;for(c=b.length;da.selectedIndex:!0};p.calcTextChecksum=function(a){var b="";a=a.childNodes;var c;var d=0;for(c=a.length;db&&(a=a.substr(0,b));return(g.encodeURIComponent||g.escape)(a).replace(/\+/g,"%2B")};e.bind=function(a,b){var c=[].slice.call(arguments,2);return function(){return a.apply(b||this,c.concat([].slice.call(arguments,0)))}};e.clearTimeout=function(a){return e.getNativeFunction("clearTimeout")(a)}; e.safeDecodeURIComponent=function(a){try{return decodeURIComponent(a)}catch(b){return""}};e.isDev=function(){return!1};e.noop=function(){};var Ab=!ta(/webkit/)&&ta(/gecko/),ob=B.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()||ta("opera mini"))b="b";this._vc=b;"b"!==b&&(this._recorder=new tb(this.protocol,this.counterId,this.counterType, this.hid,this.globalConfig));ob.superclass._initComponent.apply(this,arguments)}},start:function(a){var b=this._vc;if(this.isEnabled()&&this._recorder){a=a||{};var c=+a.recp;if(!isFinite(c)||0>c||1m.getMs()?(c.globalConfig.set("isEU",f.params.eu),a(f)):(this.globalConfig.set("fakeHit",function(a){g.push(a)}),this._getSender().sendHit({forceNoRedirect:this.forceNoRedirect, callback:function(b,d){var k=b||{};f={time:m.getMs(),params:k,bkParams:d};c.globalConfig.set("isEU",k.eu);c._storage.set(c.KEY_NAME,f);c._cookie.create(c.KEY_NAME,Z.stringify(f),1728);a(f);c.globalConfig.set("fakeHit",function(a){a(f)});e.arrayEvery(g,function(a){a(f);return 1})}}))},_getSender:function(){this._sender||(this._sender=new db({protocol:"https:",counterType:this.cnt,counterId:this.cid,sendTitle:!1,globalConfig:this.globalConfig,fake:!0}));return this._sender}}),qb=B.inherit({baseUrl:F.baseUrl, globalConfig:v,baseTld:"ru",partners:{"mc.beru.ru":{regex:/^([^/]+\.)?beru\.ru$/,tld:"ru"},"mc.kinopoisk.ru":{regex:/^([^/]+\.)?kinopoisk\.ru$/,tld:"ru"}},_initComponent:function(){var a=this;qb.superclass._initComponent.apply(this,arguments);this.syncTlds=e.reduce(function(a,c){return c(a)},F.yandexWhiteListTld,[e.bind(e.filter,null,function(b){return b!==a.baseTld}),e.bind(e.reduce,null,function(a,c){a[c]=[c];return a},{})]);e.forEachKey(this.partners,function(a,c){c.regex.test(g.location.hostname)&& (this.syncTlds[c.tld]||(this.syncTlds[c.tld]=[]),this.syncTlds[c.tld].push(a),this._replaceBase[a]=!0)},this)},_replaceBase:{},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=-1!=z().hostname.search(/(?:^|\.)(?:ya|yandex|beru|kinopoisk)\.(?:\w+|com?\.\w+)$/);this._is()?a():(d&&b._syncAdmetrica(),c?(this._setStatus(!0),d?this._getCn().hit(function(){b._sync(c,a)}):a()):a());d&&this._addMda()}, _addMda:function(){var a=new G({skipPrefix:!0}),b=new G,c=a.read("mda");"0"!==c&&"1"!==c&&a.create("mda","0",1036800);b.read("mda")&&b.erase("mda")},_is:function(){try{return!!this.globalConfig.get("startSync")}catch(a){return!1}},_setStatus:function(a){try{this.globalConfig.set("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 f=this._getLs().get("synced")||{}; c=e.arrayFilter(c,function(a){return(f[a]||1)+1440=Math.random()&&a;c=r.isIOS()&&a;return r.isAndroid()&&a||c},_setStatus:function(a){try{this.globalConfig.set("dSync",a)}catch(b){}}}, A={getPos:function(a){var b=p.getRootElement(),c=p.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{if(b=a.target||a.srcElement)!b.ownerDocument&&b.documentElement?b=b.documentElement:b.ownerDocument!==h&&(b=null)}catch(c){}return b},getMouseButton:function(a){return a.which||a.button==C?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}};A.dispatchCustomEvent=u(function(a,b){var c;b=b||h;if(c=e.getNativeFunction("createEvent",h)("Event"))c.initEvent(a,!1,!1),e.getNativeFunction("dispatchEvent",b)(c)},"evt.dispatch");var Qa={lastReferrer:null},na=B.inherit({counter:null,prefsEcommerce:null,status:{NEW:C,PENDING:1,OK:2,FAIL:3},dataLayerName:"dataLayer",_initComponent:function(){na.superclass._initComponent.apply(this,arguments);this.frameConnector&&this.frameConnector.addHandler("params",function(a,b){if(this.counter&& this.counter.params)this.onCookies(function(a){this.counter.params(a.data)},this,b)},this);this._overridePush(this.globalConfig.get("dataLayer"))},waitPool:[],onCookies:function(a,b){this.waitPool.push({fn:a,ctx:b,args:[].slice.call(arguments,2)})},initUserLayer:function(){var a="customArr";e.arrayEvery(this.waitPool,function(a){a.fn.apply(a.ctx,a.args);return 1});this.onCookies=function(a,c){a.apply(c,[].slice.call(arguments,2))};if(this.prefsEcommerce||this.prefsUseDataLayer)this._overridePush(this.prefsEcommerce)|| (e.isString(this.prefsEcommerce)&&(this.dataLayerName=this.prefsEcommerce),a=this.dataLayerName,this._tryTimeout=e.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(){var a=c.apply(this,arguments);b._send([].slice.call(arguments,0));return a};return!0}return!1},_tryTimeout:function(){this._overridePush(g[this.dataLayerName])||e.setTimeout(this._tryTimeout,1E3,"dlObserver")}, _callHandlers:function(a){e.arrayEvery(na.handlers,function(b){b&&b.type&&e.arrayEvery(b.type.split(","),function(c){c.replace(" ","")===a.type&&b.callback&&b.callback(a);return 1});return 1})},allowedEvents:"currencyCode add delete remove purchase checkout detail".split(" "),_convert:function(a,b){var c=e.keys(b),d=!1,f={transaction_id:"id",value:"revenue"};if(b.items){var g={};g[a]={products:b.items};1=this.restTime&&!this.timeout?(this.rest=m.getMs(),g.flushAsync()):this.timeout||(this.timeout=e.setTimeout(function(){g.rest=m.getMs();g.flushAsync();g.timeout=!1},this.restTime))},chain:function(a,b,c,d){var f=this;a.push=function(a){throw'Try to push in Executor when it started "'+a+'"';};(function t(b,c,e){f.addAsyncItem(function(b, c,d){c=a[b++](c);b<=a.length-1&&t(b,c,d)},null,e,[b,c],d+"."+b)})(0,b,c)},callByTimeout:function(a,b){for(var c=m.getMs(),d=0,f,g=(b||0)+1,h=0,k=this;this.asyncBuffer.length;)if(f=this.asyncBuffer.shift(),h+=1,!f.isExecuted&&(u(function(){f.fn.apply(f.ctx,f.args)},"AsyncExecutor."+f.loggerName)(),d=m.getMs()-c,f.isExecuted=!0,!a&&(h>=this.asyncChunk||d>=this.maxDuration))){e.setTimeout(function(){k.callByTimeout(a,g)},this.restTime);break}},flushAsync:function(a){this.asyncBuffer.length&&this.callByTimeout(a)}}, Sa="GDPR-ok GDPR-cross GDPR-cancel GDPR-skip GDPR-frame-skip GDPR-frame-ya GDPR-frame-noya GDPR-open-start GDPR-eu-skip GDPR-open-fail GDPR-open-success GDPR-cookie-success GDPR-cookie-fail GDPR-skip-login GDPR-skip-domain GDPR-skip-na GDPR-skip-eu-na GDPR-skip-wv".split(" "),Ob=["https://brozen.yandex.ru","https://yabro1.zen-test.yandex.ru/yabro/index.html","https://yabro2.zen-test.yandex.ru/yabro/index.html"],ba=B.inherit({globalKey:"f1",MAX_SIZE:1E6,isYAN:!1,trigger:function(a){this.globalConfig.get("dataLayer").push({ymetrikaEvent:{type:a}})}, initCounter:function(){},enabled:ea()&&-1e?0:eg?0:gn?n:l>p?l:p)-p)*((m>q?q:m>r?m:r)-r)&&v.push({top:g,left:e,width:k,height:f,provider:d.provider})});return{page:{width:n,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 k.listToArray(a.document.getElementsByTagName("iframe")).filter(function(a){if(h.isSafari)return!1;try{return a.contentWindow.document}catch(x){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 g(a,b){b(a);a.children.forEach(function(a){return g(a,b)})}b.__esModule=!0;var h=c(7),k=c(0);b.getFrienlyWindowsTree=e;b.windowsTreeEach=g},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")),l=d.listToArray(g.querySelectorAll("iframe")),n=d.listToArray(g.querySelectorAll("script")),m=d.listToArray(g.querySelectorAll("div")),q=[],p=[],r=d.listToArray(g.querySelectorAll("yatag")),v=d.listToArray(g.querySelectorAll("yatag yatag"));c("yandex",r.filter(function(a){return-1===v.indexOf(a)}));c("adriver",l.filter(function(a){return(a=a.src)&&-1=b;b++){var g=e.arrayIndexOf(f,this.spliter);-1!==g?c.push(f.substring(0, g)):c.push(f);f=f.substring(g+1)}b=c.splice(1,3);if((d=d.data)&&d.type&&this.handlers[d.type]&&"0"===b[this.DIR_INDEX]){if(!d.toCounter||d.toCounter===this.counterId){try{a.source}catch(n){return}d.counterId&&this.checkFrame(a.source)&&(g=this.trigger(d.type,a,d),a.source.postMessage(this.genMessage(g,[b[0],b[1],d.counterId]).string,"*"))}}else b[this.DIR_INDEX]==this.counterId&&e.isArray(d)&&e.arrayEvery(d,function(a){return a.counterId&&a.hid})&&(a=this.pending[[b[0],b[1]].join(this.spliter)])&& a.apply(this,d)}}}),K=z(),Ga=m.getTimezone(),Ha=m.getTimestamp(),P=g.screen,Ib=64,Aa=r.isIE()?512:2048,Jb=r.isIE()?512:2048,Ra=r.isIE()?100:400,pb=100,cb="noindex",sb=/\.(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, Ub=+new Date,eb,Ua,va=function(){return"1489"}();v.init().setSafe("counters",{}).setSafe("hitParam",{}).setSafe("counterNum",0).setSafe("dataLayer",[]).setSafe("hitId",e.random(1,1073741824)).setSafe("_globalMetrikaHitId",e.random()).setSafe("v",va);g.Ya.Metrika=function(a,b,c,d){var f=this;return u(function(){function q(a){var b=h.referrer||"",c,d;if((new RegExp("^https?://"+K.host+"/")).test(b))return!1;var f=a.patterns;for(c=0;cc&&(c=0);q=e.setTimeout(function(){S=!0;f(!1);a()},c,"trackUserTime")}}function d(){m||(k=!0,n=!1,m=!0,c())}function f(a){var b;for(b=0;bMath.random())&&ea(function(){f.notBounce()},b)}}function va(a){var b=function(){var a=z().hash.split("#")[1];if("undefined"==typeof a)return!1;var b= a.indexOf("?");0=a))){var c={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},d=performance.getEntries(),f={},h={},k={},l={},m;b&&(k.counterId=51533966);for(m=0;m