(function(g,k,B){function u(a,b,c){return function(){try{return a.apply(this,arguments)}catch(d){c||Da(d,b)}}}function Da(a,b){var c;if(.01>Math.random())try{var d=a&&a.message||"";(c=-1>8,b&255])}function t(a,b){e.mergeArrays(a,[b&255])}function q(a,b){for(b=Math.max(0,b|0);127>=7;e.mergeArrays(a,[b])}function n(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,h=p.getElementParent(a),f=h&&h[J]?h[J]:0;0>f&&(f=0);var e=a.nodeName.toUpperCase(),m=Ab[e];m||(c|=2);var r=p.getElementNeighborPosition(a);r||(c|=4);var V=p.getElementRegion(a);(h=h?p.getElementRegion(h):null)&&V[0]==h[0]&&V[1]==h[1]&&V[2]==h[2]&& V[3]==h[3]&&(c|=8);Y[b].pos=V[0]+"x"+V[1];Y[b].size=V[2]+"x"+V[3];a.id&&"string"==typeof a.id&&(c|=32);(h=p.calcTextChecksum(a))&&(c|=16);var g=p.calcAttribChecksum(a);g&&(d|=2);a:{var w=p.getElementChildren(p.getElementParent(a),a.tagName);for(var G=0;Ge)return null;var m={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[b];if(!m)return null;var r=p.getElementXY(c);c=[];t(c,m);q(c,a);q(c,e);q(c,Math.max(0,d[0]-r[0]));q(c,Math.max(0,d[1]-r[1]));/^mouse(up|down)|click$/.test(b)&&(a=h||f,t(c,2>a?1:a==(h? 2:4)?4:2));return c}function v(a,b,c,d){b=b[J];if(!b||0>b)return null;var h=[];t(h,31);q(h,a);q(h,b);q(h,c[0]);q(h,c[1]);t(h,0);t(h,0);t(h,d);return h}function x(a,b){var c=[];t(c,3);q(c,a);q(c,b[0]);q(c,b[1]);return c}function Bb(a,b,c){var d=[];c=c[J];if(!c||0>c)return null;t(d,16);q(d,a);q(d,b[0]);q(d,b[1]);q(d,c);return d}function ma(a,b,c){var d=[];t(d,28);q(d,a);q(d,b[0]);q(d,b[1]);q(d,c[0]);q(d,c[1]);return d}function B(a,b,c,d,h){var f=[];t(f,38);q(f,a);O(f,b);t(f,c);a=d[J];if(!a||0>a)a=0; q(f,a);t(f,h?1:0);return f}function Cb(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 h=[];t(h,29);q(h,a);$a(h,c);$a(h,d);return h}function A(a){var b=[];t(b,27);q(b,a);return b}function D(a){var b=[];t(b,14);q(b,a);return b}function E(a){var b=[];t(b,15);q(b,a);return b}function I(a,b){var c=[];t(c,17);q(c,a);q(c,b[J]);return c}function P(a,b){var c=[];t(c,18);q(c,a);q(c,b[J]);return c} function R(a,b,c,d){var h=[];t(h,39);q(h,a);q(h,b[J]);n(h,String(c));t(h,d?1:0);return h}function S(a){var b=a[J];if(!b||0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||sa(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 h=-1,f=a.form.elements,e=f.length,m=0,r=0;mh)return null;f=[];t(f,7);q(f,b);q(f,c);q(f,d);$a(f,a.name||"");q(f,h);return f}function y(a,b){var c=p.getFormNumber(b);if(0>c)return null;for(var d=b.elements,h=d.length,f=[],m=0;mc)){var d=F.getPos(a),f=qa[0]-d[0],e=qa[1]-d[1];f=f*f+e*e;0>=f||16>f&&100>c||20>c&&256>f||(jb=b,qa=d,W(a))}}function da(){var a=p.getDocumentScroll(),b=h();10>b-kb||10>Math.abs(a[0]-bb[0])&&10>Math.abs(a[1]-bb[1])||(kb=b,bb=a,K(x,[m(),a]))}function ja(a){if(a=F.getTarget(a)){var b=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=cb[a.localId],!b||10>Math.abs(c[0]-b[0])&&10>Math.abs(c[1]-b[1]))return}else{for(;cb[b];)b= Math.random();a.localId=b}cb[a.localId]=c;a!==k&&(N(a),K(Bb,[m(),c,a]))}}function la(){K(ma,[m(),p.getViewportSize(),p.getDocumentSize()])}function M(){K(ca,[],!0)}function ia(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 na(a){return"INPUT"==a.tagName?"password"==a.type||a.name&&Oa.test(a.name)||a.id&&Oa.test(a.id):!1}function ea(a){if(!a)return{ignore:!0,forceRecord:!1,isPrivate:!1,privateFlag:!1,recordData:!0};var b="password"===a.type|| Oa.test(a.name)||Oa.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 Q(a,b,c){a=F.getTarget(a);var d=ea(a);d.ignore||!d.forceRecord&&(d.isPrivate&&f.get("isEU")||U(a))||(N(a),K(B,[m(),b,c,a,d.privateFlag]))}function fa(a){var b=a.keyCode,c=ia(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),Q(a,b,c|16),db=!1,e.setTimeout(function(){db=!0},1,"wvl.keyDown"),!(67==b&&c&4)||c&1||c&2||ya()}function va(a){db&&!ra&&0!==a.which&&(Q(a,a.charCode||a.keyCode,ia(a)),ra=!0,e.setTimeout(function(){ra=!1},1,"vwl.keyPress"))}function pa(){if(g.getSelection){try{var a=g.getSelection()}catch(zb){return}var b= a.toString();var c=a.anchorNode}else k.selection&&k.selection.createRange&&(a=k.selection.createRange(),b=a.text,c=a.parentElement());if("string"==typeof b){try{for(;c&&1!=c.nodeType;)c=c.parentNode}catch(zb){return}if(c){a=ea(c).privateFlag||U(c,!0);c=c.getElementsByTagName("*");for(var d=0;da.deltaY?2:0:"mousewheel"==a.type&&(c=0a.wheelDelta?1:0);c&&(N(b),K(v,[m(),b,F.getPos(a),c]))}}function lb(a){(a=F.getTarget(a))&&"BODY"==a.tagName&&xa.append([],!0)}var xa=new Qa({protocol:a,globalConfig:f,counterId:b,counterType:c,meta:{url:C().href,hitId:d,timezone:Ha, timestamp:Ia}}),mb=p.getBody(),Ab={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}}(),ib=0,Za=0;r(0);var ab=1,jb=0,qa=[0,0],kb=0,bb=[0,0],cb={},Oa=/^(password|passwd|pswd)$/,db=!0,ra=!1,Z="",ua=!1,Ga=!0,ka=h(),J="metrikaId_"+Math.random(),Y={},oa=":submit"+Math.random();if(!e.isMetrikaPlayer()){l.on(k,"mousemove",ba);l.on(k,"click,dblclick,mousedown",W);l.on(k,"mouseup",ta);l.on(g,"scroll",da);if("onmousewheel"in k)l.on(k,"mousewheel",Pa);else l.on(k,"wheel",Pa);l.on(g,"beforeunload", M);if(!Db)l.on(g,"unload",M);l.on(g,"resize",la);l.on(k,"keydown",fa);l.on(k,"keypress",va);l.on(k,"copy",ya);l.on(k,"touchmove,touchstart",eb);if(mb)l.on(k,"mouseleave",lb);k.attachEvent&&!g.opera?(l.on(k,"focusin",G),l.on(k,"focusout",L)):(l.on(g,"focus",za),l.on(g,"blur",w),l.on(k,"blur",w));k.addEventListener?(l.on(k,"scroll",ja),l.on(k,"focus",H),l.on(k,"blur",X),l.on(k,"change",T),l.on(k,"submit",ha)):k.attachEvent&&(l.on(k,"focusin",H),l.on(k,"focusout",X),function(){for(var a=k.getElementsByTagName("form"), b=0;b]+>/gi,""))}function ob(a,b){var c;if(!a||!b)return!1;var d=[];for(c=0;cb||36E5=b;b++)a+=this.m.supportsVersion(b)?b:"0";return a+this.m.canMakePayments()};return a}();b.u=a},function(a,b){var c=this&&this.V||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype, new d)}}();b.a=!0;a=function(){function a(a){this.D=a;this.h=!0;this.canvas=k.createElement("canvas");this.I()||(this.h=!1)}a.prototype.I=function(){this.c=this.canvas.getContext(this.D);return!(!this.canvas.getContext||!this.c)};a.prototype.g=function(){return this.h?this.o():this.id};return a}();var d=function(a){function b(){var b=a.call(this,"webgl")||this;b.h&&!b.J()&&(b.h=!1);return b}c(b,a);b.prototype.J=function(){var a=this.canvas.getContext&&(this.canvas.getContext("webgl")||this.canvas.getContext("experimental-webgl")); return!!g.WebGLRenderingContext&&!!a};b.prototype.j=function(a){var b=this.c;b.clearColor(0,0,0,1);b.enable(b.DEPTH_TEST);b.depthFunc(b.LEQUAL);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);return"["+a[0]+", "+a[1]+"]"};b.prototype.M=function(a){var b,c=a.getExtension("EXT_texture_filter_anisotropic")||a.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||a.getExtension("MOZ_EXT_texture_filter_anisotropic");return c?(b=a.getParameter(c.MAX_TEXTURE_MAX_ANISOTROPY_EXT),0===b&&(b=2),b):null};b.prototype.o= function(){var a=this.c,b=[],c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]),a.STATIC_DRAW);c.K=3;c.O=3;var d=a.createProgram(),f=a.createShader(a.VERTEX_SHADER);a.shaderSource(f,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate\x3dattrVertex+uniformOffset;gl_Position\x3dvec4(attrVertex,0,1);}");a.compileShader(f);var e=a.createShader(a.FRAGMENT_SHADER); a.shaderSource(e,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor\x3dvec4(varyinTexCoordinate,0,1);}");a.compileShader(e);a.attachShader(d,f);a.attachShader(d,e);a.linkProgram(d);a.useProgram(d);d.R=a.getAttribLocation(d,"attrVertex");d.P=a.getUniformLocation(d,"uniformOffset");a.enableVertexAttribArray(d.aa);a.vertexAttribPointer(d.R,c.K,a.FLOAT,!1,0,0);a.uniform2f(d.P,1,1);a.drawArrays(a.TRIANGLE_STRIP,0,c.O);null!=a.canvas&&b.push(a.canvas.toDataURL());b.push("extensions:"+ a.getSupportedExtensions().join(";"));b.push("webgl aliased line width range:"+this.j(a.getParameter(a.ALIASED_LINE_WIDTH_RANGE)));b.push("webgl aliased point size range:"+this.j(a.getParameter(a.ALIASED_POINT_SIZE_RANGE)));b.push("webgl alpha bits:"+a.getParameter(a.ALPHA_BITS));b.push("webgl antialiasing:"+(a.getContextAttributes().antialias?"yes":"no"));b.push("webgl blue bits:"+a.getParameter(a.BLUE_BITS));b.push("webgl depth bits:"+a.getParameter(a.DEPTH_BITS));b.push("webgl green bits:"+a.getParameter(a.GREEN_BITS)); b.push("webgl max anisotropy:"+this.M(a));b.push("webgl max combined texture image units:"+a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS));b.push("webgl max cube map texture size:"+a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE));b.push("webgl max fragment uniform vectors:"+a.getParameter(a.MAX_FRAGMENT_UNIFORM_VECTORS));b.push("webgl max render buffer size:"+a.getParameter(a.MAX_RENDERBUFFER_SIZE));b.push("webgl max texture image units:"+a.getParameter(a.MAX_TEXTURE_IMAGE_UNITS));b.push("webgl max texture size:"+ a.getParameter(a.MAX_TEXTURE_SIZE));b.push("webgl max varying vectors:"+a.getParameter(a.MAX_VARYING_VECTORS));b.push("webgl max vertex attribs:"+a.getParameter(a.MAX_VERTEX_ATTRIBS));b.push("webgl max vertex texture image units:"+a.getParameter(a.MAX_VERTEX_TEXTURE_IMAGE_UNITS));b.push("webgl max vertex uniform vectors:"+a.getParameter(a.MAX_VERTEX_UNIFORM_VECTORS));b.push("webgl max viewport dims:"+this.j(a.getParameter(a.MAX_VIEWPORT_DIMS)));b.push("webgl red bits:"+a.getParameter(a.RED_BITS)); b.push("webgl renderer:"+a.getParameter(a.RENDERER));b.push("webgl shading language version:"+a.getParameter(a.SHADING_LANGUAGE_VERSION));b.push("webgl stencil bits:"+a.getParameter(a.STENCIL_BITS));b.push("webgl vendor:"+a.getParameter(a.VENDOR));b.push("webgl version:"+a.getParameter(a.VERSION));try{var r=a.getExtension("WEBGL_debug_renderer_info");r&&(b.push("webgl unmasked vendor:"+a.getParameter(r.UNMASKED_VENDOR_WEBGL)),b.push("webgl unmasked renderer:"+a.getParameter(r.UNMASKED_RENDERER_WEBGL)))}catch(aa){}if(!a.getShaderPrecisionFormat)return b.join("~"); b.push("webgl vertex shader high float precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_FLOAT).precision);b.push("webgl vertex shader high float precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_FLOAT).rangeMin);b.push("webgl vertex shader high float precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_FLOAT).rangeMax);b.push("webgl vertex shader medium float precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_FLOAT).precision);b.push("webgl vertex shader medium float precision rangeMin:"+ a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_FLOAT).rangeMin);b.push("webgl vertex shader medium float precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_FLOAT).rangeMax);b.push("webgl vertex shader low float precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_FLOAT).precision);b.push("webgl vertex shader low float precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_FLOAT).rangeMin);b.push("webgl vertex shader low float precision rangeMax:"+ a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_FLOAT).rangeMax);b.push("webgl fragment shader high float precision:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT).precision);b.push("webgl fragment shader high float precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT).rangeMin);b.push("webgl fragment shader high float precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT).rangeMax);b.push("webgl fragment shader medium float precision:"+ a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_FLOAT).precision);b.push("webgl fragment shader medium float precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_FLOAT).rangeMin);b.push("webgl fragment shader medium float precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_FLOAT).rangeMax);b.push("webgl fragment shader low float precision:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_FLOAT).precision);b.push("webgl fragment shader low float precision rangeMin:"+ a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_FLOAT).rangeMin);b.push("webgl fragment shader low float precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_FLOAT).rangeMax);b.push("webgl vertex shader high int precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_INT).precision);b.push("webgl vertex shader high int precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_INT).rangeMin);b.push("webgl vertex shader high int precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER, a.HIGH_INT).rangeMax);b.push("webgl vertex shader medium int precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_INT).precision);b.push("webgl vertex shader medium int precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_INT).rangeMin);b.push("webgl vertex shader medium int precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_INT).rangeMax);b.push("webgl vertex shader low int precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_INT).precision); b.push("webgl vertex shader low int precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_INT).rangeMin);b.push("webgl vertex shader low int precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_INT).rangeMax);b.push("webgl fragment shader high int precision:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_INT).precision);b.push("webgl fragment shader high int precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_INT).rangeMin);b.push("webgl fragment shader high int precision rangeMax:"+ a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_INT).rangeMax);b.push("webgl fragment shader medium int precision:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_INT).precision);b.push("webgl fragment shader medium int precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_INT).rangeMin);b.push("webgl fragment shader medium int precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_INT).rangeMax);b.push("webgl fragment shader low int precision:"+ a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_INT).precision);b.push("webgl fragment shader low int precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_INT).rangeMin);b.push("webgl fragment shader low int precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_INT).rangeMax);return b.join("~")};return b}(a);b.A=d;a=function(a){function b(){return a.call(this,"2d")||this}c(b,a);b.prototype.o=function(){var a=this.canvas,b=this.c,c=[];a.width=2E3;a.height=200; a.style.display="inline";b.rect(0,0,10,10);b.rect(2,2,6,6);c.push("canvas winding:"+(!1===b.isPointInPath(5,5,"evenodd")?"yes":"no"));b.textBaseline="alphabetic";b.fillStyle="#f60";b.fillRect(125,1,62,20);b.fillStyle="#069";b.font="11pt Arial";b.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",2,15);b.fillStyle="rgba(102, 204, 0, 0.2)";b.font="18pt Arial";b.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",4,45);b.globalCompositeOperation="multiply";b.fillStyle="rgb(255,0,255)";b.beginPath(); b.arc(50,50,50,0,2*Math.PI,!0);b.closePath();b.fill();b.fillStyle="rgb(0,255,255)";b.beginPath();b.arc(100,50,50,0,2*Math.PI,!0);b.closePath();b.fill();b.fillStyle="rgb(255,255,0)";b.beginPath();b.arc(75,100,50,0,2*Math.PI,!0);b.closePath();b.fill();b.fillStyle="rgb(255,0,255)";b.arc(75,75,75,0,2*Math.PI,!0);b.arc(75,75,25,0,2*Math.PI,!0);b.fill("evenodd");c.push("canvas fp:"+a.toDataURL());return c.join("~")};return b}(a);b.S=a},function(a,b){b.a=!0;a=function(){function a(){this.b=g.navigator}a.prototype.g= function(){return this.b.i?this.b.i:this.b.N?this.b.N:this.b.i?this.b.i:"unknown"};return a}();b.v=a},function(a,b){function c(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];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;return[c[0]<<16|c[1],c[2]<<16|c[3]]}function d(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];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;return[c[0]<<16|c[1],c[2]<<16|c[3]]}function f(a,b){b%=64;if(32===b)return[a[1],a[0]];if(32>b)return[a[0]<>>32-b,a[1]<< b|a[0]>>>32-b];b-=32;return[a[1]<>>32-b,a[0]<>>32-b]}function e(a,b){b%=64;return 0===b?a:32>b?[a[0]<>>32-b,a[1]<>>1]);a=c(a,[4283543511,3981806797]);a=h(a,[0,a[0]>>>1]);a=c(a,[3301882366,444984403]);return h(a,[0,a[0]>>>1])}b.a=!0;b.hash=function(a,b){a=a||"";b=b||0;var r=a.length%16,m=a.length-r,k=[0,b];b=[0,b];for(var t,l,O=[2277735313,289559509],p=[1291169091,658871167],n=0;n>>0).toString(16)).slice(-8)+("00000000"+(k[1]>>>0).toString(16)).slice(-8)+ ("00000000"+(b[0]>>>0).toString(16)).slice(-8)+("00000000"+(b[1]>>>0).toString(16)).slice(-8)}},function(a,b,c){b.a=!0;var d=c(6);a=function(){function a(){}a.prototype.g=function(){return d.s(navigator.plugins).sort(function(a,b){return a.name>b.name?1:2}).map(function(a){return[a.name,a.description,d.s(a).map(function(a){return[a.description,a.suffixes,a.type].join()}).join()].join()}).join()};return a}();b.w=a},function(a,b,c){var d=this&&this.U||Object.assign||function(a){for(var b,c=1,d=arguments.length;c< d;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};b.a=!0;var f=c(1),e=c(4),h=c(0),g=c(2),k=c(3);a=function(){function a(a){var b=this;this.l=a;this.G={webGL:f.A,dnt:g.v,plugins:e.w,applePay:h.u};this.l=d({webGL:!1,dnt:!1,plugins:!1,applePay:!1},a);this.F=Object.keys(this.l).filter(function(a){return b.l[a]}).map(function(a){return new b.G[a]})}a.prototype.toString=function(a){void 0===a&&(a=!0);var b=this.F.map(function(a){var b="";try{b=a.g()}catch(La){}return b}); return a?[k.hash(b.join(""),210)]:b.map(function(a){return k.hash(a,210)})};return a}();b.T=a;b["default"]=a},function(a,b){b.a=!0;b.s=function(a){return Array.prototype.slice.call(a)}}]);wa=wa["default"]}catch(a){ua={error:a,scope:"fip"}}var z={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(" ")};z.host=z.baseUrl+"ru";z.cross="L21ldHJpa2EvenpsYy5odG1s";var e={mixin:function(a){var b,c;for(b=1;b a?"0":"")+a};x.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+x.getMs()&&this.onFlush.call(this.onFlushCtx|| this,this.dataFromStorage(a.data),a.meta,a.pnum);this.clear()},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:x.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]===B&&(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===B?b:c},"",!0)()}};e.async=function(a,b,c){if(g.postMessage){var d= "__ym__promise"+Math.random()+"_"+x.getMs();var f=function(c){try{var e=c.data}catch(m){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 Ba=I.inherit({transports:[],globalConfig:v,postParams:[],isDisabled:function(){return this.globalConfig.get("oo")},send:function(a,b,c,d){var f=[a],g=this,h=c||function(){};g.isDisabled()? h.call(d):function t(a){if(a=f.length?c.blockNext()||t.call(this,a+1):c.request(f[r],b,function(a,b,c){a?h.call(d,b,c):e.async(function(){aa.call(g,r+1)},this,"senderCall")},this)}).call(this,0)}catch(yb){Da(yb,"send by "+(c&&c.id)),t.call(this,a+1)}}.call(this,0)}}),ja={};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 Q=na.inherit({id:"form",index:2,enctype:"application/x-www-form-urlencoded", htmlfileOnly:!1,_initComponent:function(){Q.superclass._initComponent.apply(this,arguments);"_htmlfile"in Q.prototype||(Q.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:k)},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 h=f.createElement("div");h.style.position="absolute";h.style.left="-99999px";h.style.top="-99999px";var m=['\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(m,['\x3cinput type\x3d"hidden" autocomplete\x3d"off" autocorrect\x3d"off"',' autocapitalize\x3d"off" spellcheck\x3d"false" name\x3d"',a,'"/\x3e'])});e.mergeArrays(m,["\x3c/form\x3e"]);h.innerHTML=m.join("");f.body.appendChild(h);var k=h.getElementsByTagName("form")[0];e.forEachKey(b.post,function(a,b){k[a].value=b});k.submit();e.setTimeout(function(){f.body.removeChild(h)}, 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}}),Mb=Q.inherit({id:"htmlfile",index:3,htmlfileOnly:!0}),Y=na.inherit({id:"img",index:4,request:function(a,b,c,d){a=this._buildUrl(a,b);var f=!1;b=k.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")}}),ca={stringify:function(a){try{var b=JSON.stringify(a)}catch(c){}return e.inArray(["{}",B],b)?"null":b}};e.toJSON=function(a){var b;if(a===B)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=E.hostname.split(".");this._tld=a[a.length-1]}return this._tld};var P={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/\x3d",tailSafe:"*-_"},D=I.inherit({counterId:"", onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){var a;D.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{k.cookie=a.join(";")}catch(d){}},read:function(a){try{var b=k.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: "")}});D.get=function(a){return(new D({onlyCurrentDomain:!0})).read(a)};D.set=function(a,b,c){return(new D({onlyCurrentDomain:!0})).create(a,b,c)};D.isEnabled=function(){return(new D({onlyCurrentDomain:!0})).isEnabled()};var p={removeNode:function(a){var b=a&&a.parentNode;b&&b.removeChild(a)}};n.isSafariWebView=u(function(){var a=navigator.userAgent||"";return navigator.vendor&&-1f&&500=c.browserInfo.rqnl&&(d=new A({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,h,g;b;){e=21>8,h&=255,h^=g),d+=h,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};P.encode=function(a,b){var c=(P.abc+(b?P.tailSafe:P.tail)).split(""),d=a.length,f=[],g=d-d%3,h;for(h=0;h>18&63],c[m>>12&63],c[m>>6&63],c[m&63]])}switch(d-g){case 1:m=a[g]<<4;e.mergeArrays(f,[c[m>>6&63],c[m&63],c[64],c[64]]);break;case 2:m=(a[g]<<10)+(a[g+1]<<2),e.mergeArrays(f,[c[m>>12&63],c[m>>6&63],c[m&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.isFunction=function(a){return"function"===typeof a};e.isNumber=function(a){return isFinite(a)&&!isNaN(a)&&"[object Number]"==Object.prototype.toString.call(a)};e.isString=function(a){return"[object String]"==Object.prototype.toString.call(a)};e.arrayIndexOf=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}};P.decode=function(a,b){for(var c=P.abc+(b?P.tailSafe:P.tail),d=0,f="",e,g,m,k,l;a.length%4;)a+="\x3d";do{e=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>e||0>g||0>k||0>l)return null;m=e<<18|g<<12|k<<6|l;e=m>>16&255;g=m>>8&255;m&=255;f=64==k?f+String.fromCharCode(e):64==l?f+String.fromCharCode(e,g):f+String.fromCharCode(e,g,m)}while(dOb?g=!0:c("site-info",q));m.saveRef&&(Sa.lastReferrer=l);h=function(a,b){var c={};e.forEachKey(b,function(a,b){-1===e.arrayIndexOf(["",B,null],b)&&(c[a]=b)});return e.mixin({},a,c)}(h,{gdpr:U.getState(this.globalConfig),eu:this.globalConfig.get("isEU"),v:this._getVersion()});this.fake||(d=this._getTechInfo(a.title,m,this.counterId,a.ts,a.tz,this._trackHash,this.hitId,this.webvisor,this.counter,a.nohit));e.mixin(k, d,h);this.send(n,k,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=C(),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},_getTechInfo:function(a,b,c,d,f,k,h,m,l,t){function r(a,b,c){var d=""+b;a&&b&&(c||-1===d.indexOf(":"))&&(v[a]=d)}function O(a){b[a]&&r(a,"1")}var v={};b=b||{};d=d||x.getTimestamp();f=f||x.getTimezone();r("j",n.getJavaEnabled()?"1":"");var u=n.isDesktop(this.globalConfig);u!==B&&r("dp",u?"1":"0");r("nt",n.netType());r("ns",n.getNavigationStart());pa&&r("s",pa.width+"x"+pa.height+"x"+(pa.colorDepth||pa.pixelDepth));g.devicePixelRatio&& r("sk",g.devicePixelRatio);n.isIframe()&&(r("ifr","1"),r("sti",n.isSameOriginTopFrame()?"1":"0"));g.ia_document&&g.ia_document.shareURL&&g.ia_document.referrer&&r("iia","1");r("adb",rb.getVal());r("f",n.getFlashVersion());r("l",n.getSilverlightVersion());r("fpr",n.getFingerPrint());r("cn",this.counterNum);b.pa||(u=p.getViewportSize(),r("w",u[0]+"x"+u[1]));r("z",f);r("i",d);r("et",x.getSeconds());r("en",p.getDocumentCharset());r("c",navigator.cookieEnabled?"1":"");r("la",n.getLanguage());r("ntf",n.getNotificationPermission()); e.random(100)||r("np",P.encode(oa.encode(e.trim(n.getPlatform(),100))));k&&r("wh","1");f="ar ln dl cpf ad nb pa pq pv ex".split(" ");for(d=0;dh&&(h*=-1),h%=65535;r("wn",h||e.fletcher(g.name));try{g.history&&r("hl",String(g.history.length))}catch(La){}}h="";this.sendTitle&&(h=this._getTitle(a));r("t",h,!0);return v},_getTitle:function(a){a="undefined"==typeof a?(a=p.getDocumentTitle())?e.trim(a,Ta):"":e.trim(a,Ta);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=k.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._urlParser=null;e.parseUrl=function(a){if(!this._urlParser)try{this._urlParser=k.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}):{}};e.safeDecodeURIComponent=function(a){try{return decodeURIComponent(a)}catch(b){return""}};e.isDev=function(){return!1};var Db=!Aa(/webkit/)&&Aa(/gecko/),sb=I.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()||Aa("opera mini"))b="b";this._vc=b;"b"!==b&&(this._recorder=new xb(this.protocol, this.counterId,this.counterType,this.hid,this.globalConfig));sb.superclass._initComponent.apply(this,arguments)}},start:function(a){if(this.isEnabled()&&this._recorder){a=a||{};var b=+a.recp;if(!isFinite(b)||0>b||1x.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 h=b||{};f={time:x.getMs(),params:h, bkParams:d};c.globalConfig.set("isEU",h.eu);c._storage.set(c.KEY_NAME,f);c._cookie.create(c.KEY_NAME,ca.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 gb({protocol:"https:",counterType:this.cnt,counterId:this.cid,sendTitle:!1,globalConfig:this.globalConfig,fake:!0}));return this._sender}}),ub=I.inherit({baseUrl:z.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;ub.superclass._initComponent.apply(this,arguments);this.syncTlds=e.reduce(function(a,c){return c(a)},z.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!=C().hostname.search(/(?:^|\.)(?:ya|yandex|beru|kinopoisk)\.(?:\w+|com?\.\w+)$/);!this._is()&&c?(this._setStatus(!0),d?this._getCn().hit(function(){b._sync(c,a)}):a()):a();d&&this._addMda()},_addMda:function(){var a=new D({skipPrefix:!0}),b=new D,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=n.isIOS()&&a; return n.isAndroid()&&a||c},_setStatus:function(a){try{this.globalConfig.set("dSync",a)}catch(b){}}},F={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!==k&&(b=null)}catch(c){}return b},getMouseButton:function(a){return a.which||a.button==B?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}};F.dispatchCustomEvent=u(function(a,b){var c;b=b||k;if(c=e.getNativeFunction("createEvent",k)("Event"))c.initEvent(a,!1,!1),e.getNativeFunction("dispatchEvent",b)(c)},"evt.dispatch");var Sa={lastReferrer:null},la=I.inherit({counter:null,prefsEcommerce:null,status:{NEW:B,PENDING:1,OK:2,FAIL:3},dataLayerName:"dataLayer",_initComponent:function(){la.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(la.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.asyncChunk||d>=this.maxDuration?(e.setTimeout(function(){g.callByTimeout(a,f)},this.restTime),!1):!0},this)},flushAsync:function(a){this.asyncBuffer.length&& this.callByTimeout(a)}},Va="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(" "),Tb=["https://brozen.yandex.ru","https://yabro1.zen-test.yandex.ru/yabro/index.html","https://yabro2.zen-test.yandex.ru/yabro/index.html"],U=I.inherit({globalKey:"f1",MAX_SIZE:1E6,isYAN:!1,trigger:function(a){this.globalConfig.get("dataLayer").push({ymetrikaEvent:{type:a}})}, initCounter:function(){},enabled:ia()&&-1g?0:gh?0:hk?k:m>p?m:p)-p)*((n>r?r:n>q?n:q)-q)&&u.push({top:h,left:g,width:l,height:e,provider:d.provider})});return{page:{width:k,height:r},window:{top:a,left:b,width:g.innerWidth,height:g.innerHeight},ads:u}}}, 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(r){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(q){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){r.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")),l=d.listToArray(g.querySelectorAll("script")),n=d.listToArray(g.querySelectorAll("div")),r=[],p=[],v=d.listToArray(g.querySelectorAll("yatag")),u=d.listToArray(g.querySelectorAll("yatag yatag"));c("yandex",v.filter(function(a){return-1===u.indexOf(a)}));c("adriver",k.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(h){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)}}}),E=C(),Ha=x.getTimezone(),Ia=x.getTimestamp(),pa=g.screen,Nb=64,Ca=n.isIE()?512:2048,Ob=n.isIE()?512:2048,Ta=n.isIE()?100:400,tb=100,fb="noindex",wb=/\.(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, Zb=+new Date,hb,Xa,Z=function(){return"1282"}();v.init().setSafe("counters",{}).setSafe("hitParam",{}).setSafe("counterNum",0).setSafe("dataLayer",[]).setSafe("hitId",e.random(1,1073741824)).setSafe("_globalMetrikaHitId",e.random()).setSafe("v",Z);g.Ya.Metrika=function(a,b,c,d){var f=this;return u(function(){function r(a){var b=k.referrer||"",c,d;if((new RegExp("^https?://"+E.host+"/")).test(b))return!1;var f=a.patterns;for(c=0;cc&&(c=0);q=e.setTimeout(function(){r=!0;f(!1);a()},c,"trackUserTime")}}function d(){m||(h=!0,w=!1,m=!0,c())}function f(a){var b;for(b=0;bMath.random())&&na(function(){f.notBounce()},b)}}function pa(a){var b=function(){var a=C().hash.split("#")[1];if("undefined"==typeof a)return!1;var b=a.indexOf("?");0=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