(function(n,q,y){function E(a,b,d){return function(){try{return a.apply(this,arguments)}catch(f){d||Wa(f,b)}}}function Wa(a,b){var d;if(.01>Math.random())try{var f=a&&a.message||"";(d=-1<f.indexOf("network error occurred")||-1<f.indexOf("send beacon")&&-1<f.indexOf("Content Security Policy"))||(new Pa).log("jserrs",Ca,a.message,b,I.href,"","string"===typeof a.stack&&a.stack.replace(/\n/g,"\\n"))}catch(g){}}function D(a,b,d,f){return n.setTimeout(E(a,d||"setTimeout",f),b)}function Gb(a,b,d,f,g){function p(c,
a){a=Math.max(0,Math.min(a,65535));k.mergeArrays(c,[a>>8,a&255])}function h(c,a){k.mergeArrays(c,[a&255])}function m(c,a){if(-1==Y.indexOf(a))return!0;h(c,a)}function e(c,a){for(a=Math.max(0,a|0);127<a;)k.mergeArrays(c,[a&127|128]),a>>=7;k.mergeArrays(c,[a])}function c(c,a){255<a.length&&(a=a.substr(0,255));k.mergeArrays(c,[a.length]);for(var e=0;e<a.length;e++)p(c,a.charCodeAt(e))}function l(c,a){e(c,a.length);for(var b=0;b<a.length;b++)e(c,a.charCodeAt(b))}function u(a){if(!a.nodeName)return a[aa]=
-1,null;var b=+a[aa];if(!isFinite(b)||0>=b)return null;if(a.attributes)for(var l=a;l;){if(l.attributes.__ym_wv_ign)return null;l=l.parentElement}l=64;var d=0,f=t.getElementParent(a),g=f&&f[aa]?f[aa]:0;0>g&&(g=0);var u=a.nodeName.toUpperCase(),r=Da[u];r||(l|=2);var T=t.getElementNeighborPosition(a);T||(l|=4);var x=t.getElementRegion(a);(f=f?t.getElementRegion(f):null)&&x[0]==f[0]&&x[1]==f[1]&&x[2]==f[2]&&x[3]==f[3]&&(l|=8);Ea[b].pos=x[0]+"x"+x[1];Ea[b].size=x[2]+"x"+x[3];a.id&&"string"==typeof a.id&&
(l|=32);(f=t.calcTextChecksum(a))&&(l|=16);var A=t.calcAttribChecksum(a);A&&(d|=2);a:{var k=t.getElementChildren(t.getElementParent(a),a.tagName);for(var R=0;R<k.length;R++)if((!k[R].id||"string"!=typeof k[R].id)&&t.calcAttribChecksum(k[R])==A&&t.calcTextChecksum(k[R])==f){k=!0;break a}k=!1}if(k){l|=1;var F=t.calcChildrenChecksum(a)}k=[];if(m(k,1))return null;e(k,b);h(k,l);e(k,g);r?h(k,r):c(k,u);T&&e(k,T);l&8||(e(k,x[0]),e(k,x[1]),e(k,x[2]),e(k,x[3]));l&32&&c(k,a.id);f&&p(k,f);l&1&&p(k,F);h(k,d);
A&&p(k,A);return k}function r(c,a,b,l,d,f){for(var g;b&&(g=t.getElementSize(b))&&(!g[0]||!g[1]);)b=t.getElementParent(b);if(!b)return null;g=b[aa];if(!g||0>g)return null;var u={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[a];if(!u)return null;var r=t.getElementXY(b);b=[];if(m(b,u))return null;e(b,c);e(b,g);e(b,Math.max(0,l[0]-r[0]));e(b,Math.max(0,l[1]-r[1]));/^mouse(up|down)|click$/.test(a)&&(c=d||f,h(b,2>c?1:c==(d?2:4)?4:2));return b}function T(c,a,b,l,d){var f=[];if(m(f,38))return null;
e(f,c);p(f,a);h(f,b);c=l[aa];if(!c||0>c)c=0;e(f,c);h(f,d?1:0);return f}function x(c,a){var b;if(0==a.length)var d=b="";else 100>=a.length?(b=a,d=""):200>=a.length?(b=a.substr(0,100),d=a.substr(100)):(b=a.substr(0,97),d=a.substr(a.length-97));var h=[];if(m(h,29))return null;e(h,c);l(h,b);l(h,d);return h}function R(c){var a=[];if(m(a,27))return null;e(a,c);return a}function F(c){var a=[];h(a,14);e(a,c);return a}function A(c){var a=[];if(m(a,15))return null;e(a,c);return a}function U(c,a){var b=[];if(m(b,
17))return null;e(b,c);e(b,a[aa]);return b}function Qa(c,a){var b=[];if(m(b,18))return null;e(b,c);e(b,a[aa]);return b}function ta(a,b,l,d){var f=[];if(m(f,39))return null;e(f,a);e(f,b[aa]);c(f,String(l));h(f,d?1:0);return f}function Ra(c,a){var b=a[aa];if(0<b){var l=[],d=t.getElementRegion(a),h=Ea[b],f=d[0]+"x"+d[1],g=d[2]+"x"+d[3];if(f!=h.pos){h.pos=f;if(m(l,9))return null;e(l,c);e(l,b);e(l,d[0]);e(l,d[1])}if(g!=h.size){h.size=g;if(m(l,10))return null;e(l,c);e(l,b);e(l,d[2]);e(l,d[3])}if(l.length)return l}return null}
function K(c){var a=c[aa];if(!a||0>a||!/^INPUT|SELECT|TEXTAREA$/.test(c.nodeName)||!c.form||ma(c.form))return null;var b=t.getFormNumber(c.form);if(0>b)return null;var d="INPUT"==c.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}[c.type]:{SELECT:1,TEXTAREA:5}[c.nodeName];if("number"!=typeof d)return null;for(var h=-1,f=c.form.elements,g=f.length,u=0,r=0;u<g;u++)if(f[u].name==
c.name){if(f[u]==c){h=r;break}r++}if(0>h)return null;f=[];if(m(f,7))return null;e(f,a);e(f,b);e(f,d);l(f,c.name||"");e(f,h);return f}function Fa(c,a){var b=t.getFormNumber(a);if(0>b)return null;for(var l=a.elements,d=l.length,h=[],f=0;f<d;f++)if(!t.isEmptyField(l[f])){var g=l[f][aa];g&&0<g&&k.mergeArrays(h,[g])}l=[];if(m(l,11))return null;e(l,c);e(l,b);e(l,h.length);for(b=0;b<h.length;b++)e(l,h[b]);return l}function ja(c,a,e){c=c.apply(n,a);P.append(c,e)}function y(c){if(c[aa])c=Ra(v.nowEventTime(),
c);else{var a=t.getElementParent(c);a&&y(a);c[aa]=da;Ea[da]={};da++;a=u(c);P.append(a,void 0);c=K(c)}P.append(c,void 0)}function w(c,a){var e=c&&t.classNameExists(c,"(ym-disable-keys|-metrika-nokeys)");a&&c&&(e=e||!!t.getElementsByClassName("(ym-disable-keys|-metrika-nokeys)",c).length);return e}function ma(c){return c&&t.classNameExists(c,"(ym-disable-submit|-metrika-noform)")}function B(c){var a=M.getTarget(c);if(a&&"SCROLLBAR"!=a.nodeName){if(/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName))if(a[aa])y(a);
else{var e=a.form;if(e){e=e.elements;for(var b=e.length,l=0;l<b;l++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(e[l].tagName)&&!e[l][aa]&&y(e[l])}else y(a)}else y(a);ja(r,[v.nowEventTime(),c.type,a,M.getPos(c),c.which,c.button])}}function mb(c){B(c);la()}function nb(c){return(c.shiftKey?2:0)|(c.ctrlKey?4:0)|(c.altKey?1:0)|(c.metaKey?8:0)|(c.ctrlKey||c.altKey?16:0)}function ea(c){if(!c)return{ignore:!0,forceRecord:!1,isPrivate:!1,privateFlag:!1,recordData:!0};var a="password"===c.type||Z.test(c.name)||Z.test(c.id),
e=k.reduce(function(a,e){return a||S.generalRegex.test(c[e])},!1,["className","id","name"])||S.placeholderRegex.test(c.placeholder),b=S.forceRecordRegex.test(c.className);return{forceRecord:b,ignore:a,isPrivate:e,privateFlag:!b&&(e||a),recordData:b||!(e&&g.get("isEU")||a)}}function H(c){return"INPUT"==c.tagName?"password"==c.type||c.name&&Z.test(c.name)||c.id&&Z.test(c.id):!1}function na(c,a,e){c=M.getTarget(c);var b=ea(c);b.ignore||!b.forceRecord&&(b.isPrivate&&g.get("isEU")||w(c))||(y(c),ja(T,[v.nowEventTime(),
a,e,c,b.privateFlag]))}function V(c){var a=c.keyCode,e=nb(c);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}[a]||112<=a&&123>=a||96<=a&&105>=a||e&16)19==a&&4==(e&-17)&&(a=144),na(c,a,e|16),fa=!1,k.setTimeout(function(){fa=!0},1,"fvl.keyDown"),!(67==a&&e&4)||e&1||e&2||ha()}function W(c){fa&&!Za&&0!==c.which&&(na(c,c.charCode||c.keyCode,nb(c)),Za=!0,k.setTimeout(function(){Za=!1},1,"fvl.keyPress"))}function la(){if(n.getSelection){try{var c=
n.getSelection()}catch(Xa){return}var a=c.toString();var e=c.anchorNode}else q.selection&&q.selection.createRange&&(c=q.selection.createRange(),a=c.text,e=c.parentElement());if("string"==typeof a){try{for(;e&&1!=e.nodeType;)e=e.parentNode}catch(Xa){return}if(e){c=ea(e).privateFlag||w(e,!0);e=e.getElementsByTagName("*");for(var b=0;b<e.length&&!c;)c=ea(e[b]).privateFlag||w(e[b],!0),b++;a!=$a&&($a=a,a=c?k.map(function(){return S.obfuscatedSymbol},a.split("")).join(""):a,ja(x,[v.nowEventTime(),a]))}}}
function ha(){ab||(ab=!0,$a&&ja(R,[v.nowEventTime()]),k.setTimeout(function(){ab=!1},1,"fvl.copy"))}function N(){ya||(ya=!0,ja(F,[v.nowEventTime()]))}function Q(){ya&&(ya=!1,ja(A,[v.nowEventTime()]))}function D(c){(!ya||c&&!c.fromElement)&&N()}function E(c){c&&!c.toElement&&Q()}function O(c){if((c=M.getTarget(c))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c.tagName)){if(c[aa])y(c);else{var a=c.form;if(a){a=a.elements;for(var e=a.length,b=0;b<e;b++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a[b].tagName)&&
!a[b][aa]&&y(a[b])}else y(c)}ja(U,[v.nowEventTime(),c])}}function C(c){(c=M.getTarget(c))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c.tagName)&&(y(c),ja(Qa,[v.nowEventTime(),c]))}function I(c){if((c=M.getTarget(c))&&!H(c)&&!w(c)&&/^INPUT|SELECT|TEXTAREA$/.test(c.tagName)){var a=ea(c),e=/^(checkbox|radio)$/.test(c.type)?c.checked:c.value;e=a.recordData?e:k.map(function(){return S.obfuscatedSymbol},e.split("")).join("");y(c);ja(ta,[v.nowEventTime(),c,e,a.privateFlag])}}function J(c){if((c=M.getTarget(c))&&
!ma(c)&&"FORM"==c.nodeName){for(var a=c.elements,e=0;e<a.length;e++)t.isEmptyField(a[e])||y(a[e]);ja(Fa,[v.nowEventTime(),c],!0)}}function G(c){(c=M.getTarget(c))&&"BODY"==c.tagName&&P.append([],!0)}var P=new ob({protocol:a,counterId:b,globalConfig:g,counterType:d,meta:{url:L().href,hitId:f,timezone:bb,timestamp:cb}}),Da={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},Y=[17,18,38,32,39,15,11,7,1],S=function(){var c="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("("+c.join("|")+")","i"),placeholderRegex:new RegExp("("+c.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}}(),da=1,Z=/^(password|passwd|pswd)$/,fa=!0,Za=!1,$a="",ab=!1,ya=!0;v.initCorrector();v.nowTime();var aa="metrikaId_"+Math.random(),Ea={},Ga=":submit"+Math.random();if(!k.isMetrikaPlayer()){z.on(q,"click,dblclick,mousedown",B);z.on(q,"mouseup",mb);z.on(q,"keydown",V);z.on(q,"keypress",W);z.on(q,"copy",ha);if(t.getBody())z.on(q,"mouseleave",G);q.attachEvent&&!n.opera?(z.on(q,"focusin",D),z.on(q,
"focusout",E)):(z.on(n,"focus",N),z.on(n,"blur",Q),z.on(q,"blur",Q));q.addEventListener?(z.on(q,"focus",O),z.on(q,"blur",C),z.on(q,"change",I),z.on(q,"submit",J)):q.attachEvent&&(z.on(q,"focusin",O),z.on(q,"focusout",C),function(){for(var c=q.getElementsByTagName("form"),a=0;a<c.length;a++){for(var e=c[a].getElementsByTagName("*"),b=0;b<e.length;b++)if(/^INPUT|SELECT|TEXTAREA$/.test(e[b].tagName))z.on(e[b],"change",I);z.on(c[a],"submit",J)}}());(function(){var c=q.getElementsByTagName("form");if(c.length)for(var a=
0;a<c.length;a++){var e=c[a].submit;if("function"==typeof e||"object"==typeof e&&/^\s*function submit\(\)/.test(String(e)))c[a][Ga]=e,c[a].submit=function(){J({target:this});return this[Ga]()}}})()}return{start:function(){P.activate()},stop:function(){P.clear();z.un(q,"click",B);z.un(q,"dblclick",B);z.un(q,"mousedown",B);z.un(q,"mouseup",mb);z.un(q,"keydown",V);z.un(q,"keypress",W);z.un(q,"copy",ha);z.un(q,"focusin",D);z.un(q,"focusout",E);z.un(n,"focus",N);z.un(n,"blur",Q);z.un(q,"blur",Q);q.removeEventListener?
(z.un(q,"focus",O),z.un(q,"blur",C),z.un(q,"change",I),z.un(q,"submit",J)):q.detachEvent&&(z.un(q,"focusin",O),z.un(q,"focusout",C),function(){for(var c=q.getElementsByTagName("form"),a=0;a<c.length;a++){for(var e=c[a].getElementsByTagName("*"),b=0;b<e.length;b++)/^INPUT|SELECT|TEXTAREA$/.test(e[b].tagName)&&z.un(e[b],"change",I);z.un(c[a],"submit",J)}}());(function(){for(var c=q.getElementsByTagName("form"),a=0;a<c.length;a++)c[a][Ga]&&(c[a].submit=c[a][Ga])})()}}}function L(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),
d=b.length,f=d,g,p;f--;)a[b[f]]="";try{for(g=n.location,f=d;f--;)p=b[f],a[p]=""+g[p]}catch(h){I&&(a=I)}return a}function ua(){return 0==L().hostname.search(/^(.*\.)?((yandex(-team)?)\.(com?\.)?[a-z]+|(auto|kinopoisk|beru|bringly)\.ru|ya\.(ru|cc)|yadi\.sk|yastatic\.net|.*\.yandex)$/)}function db(a){return-1!==(""+n.navigator.userAgent).toLowerCase().search(a)}function pb(a){return(a=a&&a.innerHTML&&a.innerHTML.replace(/<\/?[^>]+>/gi,""))?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function qb(a,
b){var d;if(!a||!b)return!1;var f=[];for(d=0;d<b.length;d++)f.push(b[d].replace(/\^/g,"\\^").replace(/\$/g,"\\$").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\|/g,"\\|").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\?/g,"\\?").replace(/\*/g,"\\*").replace(/\+/g,"\\+").replace(/\{/g,"\\{").replace(/\}/g,"\\}"));return(new RegExp("\\.("+f.join("|")+")$","i")).test(a)}function Ib(a,b){function d(a){a=a.split(":");a=a[1]||"";a=a.replace(/^\/*/,"").replace(/^www\./,"");
return a.split("/")[0]}return a&&b?d(a)==d(b):a||b?!1:!0}function rb(){var a=n.performance||n.webkitPerformance,b=a&&a.timing,d,f=[];if(b&&(d=b.navigationStart))for(f=[b.domainLookupEnd-b.domainLookupStart,b.connectEnd-b.connectStart,b.responseStart-b.requestStart,b.responseEnd-b.responseStart,b.fetchStart-d,b.redirectEnd-b.redirectStart,b.redirectCount||a.navigation&&a.navigation.redirectCount],f.push(b.domInteractive&&b.domLoading?b.domInteractive-b.domLoading:null),f.push(b.domContentLoadedEventStart&&
b.domContentLoadedEventEnd?b.domContentLoadedEventEnd-b.domContentLoadedEventStart:null),f.push(b.domComplete?b.domComplete-d:null),f.push(b.loadEventStart?b.loadEventStart-d:null),f.push(b.loadEventStart&&b.loadEventEnd?b.loadEventEnd-b.loadEventStart:null),f.push(b.domContentLoadedEventStart?b.domContentLoadedEventStart-d:null),a=0;a<f.length;a++)b=f[a],null!==b&&(0>b||36E5<b)&&(f[a]=null);return f}function Jb(a){var b=[],d=a._lastPerformanceTiming,f=rb(),g;if(d){var p=0;for(g=d.length;p<g;p++)null===
f[p]?b.push(f[p]):b.push(d[p]===f[p]?"":f[p])}else b=f;a._lastPerformanceTiming=f;return b.join(",")}function Kb(a){return"first-contentful-paint"===a.name}function Lb(){var a=n.performance&&n.performance.getEntriesByType,b=a?k.filter(Kb,n.performance.getEntriesByType("paint")):[];if(b.length)return b=b[0],Math.round(b.startTime);if(a)return 0;if("object"==typeof n.chrome&&n.chrome.loadTimes){if(b=n.chrome.loadTimes(),b.requestTime&&b.firstPaintTime&&n.performance&&n.performance.timing)return Math.round(1E3*
b.firstPaintTime-n.performance.timing.navigationStart)}else if(n.performance&&n.performance.timing&&(b=n.performance.timing,b.navigationStart&&b.msFirstPaint))return b.msFirstPaint-b.navigationStart;return null}var La=!1;try{var Mb=function(a){function b(f){if(d[f])return d[f].exports;var g=d[f]={i:f,l:!1,exports:{}};a[f].call(g.exports,g,g.exports,b);g.l=!0;return g.exports}var d={};b.m=a;b.c=d;b.d=function(a,d,p){b.o(a,d)||Object.defineProperty(a,d,{enumerable:!0,get:p})};b.r=function(a){"undefined"!==
typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});Object.defineProperty(a,"__esModule",{value:!0})};b.t=function(a,d){d&1&&(a=b(a));if(d&8||d&4&&"object"===typeof a&&a&&a.__esModule)return a;var f=Object.create(null);b.r(f);Object.defineProperty(f,"default",{enumerable:!0,value:a});if(d&2&&"string"!=typeof a)for(var h in a)b.d(f,h,function(b){return a[b]}.bind(null,h));return f};b.n=function(a){var d=a&&a.__esModule?function(){return a["default"]}:function(){return a};
b.d(d,"a",d);return d};b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};b.p="";return b(b.s=67)}([function(a,b,d){d.r(b);d.d(b,"IterableUtils",function(){return u});var f=d(25),g=d(18),p=d(29),h=d(8),m=d(11);a=d(9);var e=d(2),c=a.a.Map,l=a.a.Set,u={binarySearch:function(c,a,e){var b=0,l=c.length-1;for(e="function"===typeof e?e:function(c){return c};b<=l;){var d=Math.round((b+l)/2),h=e(c[d]);if(h===a){var m=c[d];break}else a>h?b=d+1:l=d-1}return m},forof:function(c,a){c instanceof
h.List?c.forEach(a):c instanceof m.KeyValue?c.forEach(a):Object(f.a)(c,a)},forin:function(c,a){Object(g.a)(c,a)},fastIterate:function(c,a){for(var e=0,b=c.length;e<b;e++)a(e,c[e])},toArray:function(a){return a instanceof h.List||a instanceof m.KeyValue?l&&a instanceof l||c&&a instanceof c?Object(p.a)(a):a.toArray():Object(p.a)(a)},toList:function(c){c=this.isArray(c)?c:this.toArray(c);for(var a=new h.List,e=0;e<c.length;e++)a.add(c[e]);return a},addToArray:function(c){for(var a,e=arguments.length,
b=Array(1<e?e-1:0),l=1;l<e;l++)b[l-1]=arguments[l];return(a=[]).concat.apply(a,b).reduce(function(c,a){0>c.indexOf(a)&&c.push(a);return c},c)},removeFromArray:function(c){for(var a,e=arguments.length,b=Array(1<e?e-1:0),l=1;l<e;l++)b[l-1]=arguments[l];return(a=[]).concat.apply(a,b).reduce(function(c,a){var e=c.indexOf(a);0<=e&&c.splice(e,1);return c},c)},isArray:function(c){return"function"===typeof Array.isArray?Array.isArray(c):"[object Array]"==={}.toString.call(c)},inArray:function(c,a){return c?
"function"===typeof c.includes?c.includes(a):0<=c.indexOf(a):!1},fill:function(c,a){if(Array.prototype.fill)return c.fill(a);for(var e=c.length;0<e--;)c[e]=a;return c},reduce:function(c,a,e){return this.toArray(c).reduce(a,e)},reduceRight:function(c,a,e){return this.toArray(c).reduceRight(a,e)},map:function(c,a){var b=this.toArray(c);if(e.ObjectUtils.isNative(b.map,"map"))return b.map(a);for(var l=[],d=0;d<b.length;d++)l[d]=a(b[d],d,b);return l},find:function(c,a){if(Array.prototype.find)return c.find(a);
var e;this.forof(c,function(b,l){return!0===!!a(b,l,c)?(e=b,!1):!0});return e},keys:function(c){if("function"===typeof c.keys)return c.keys();var a=[];this.forof(c,function(c,e){a.push(e)});return a},values:function(c){if(c.hasOwnProperty("values"))return c.values();var a=[];this.forof(c,function(c,e){a.push(c)});return a},includes:function(c,a,b){void 0===b&&(b=0);if(e.ObjectUtils.isNative(Array.prototype.includes,"includes"))return c.includes(a,b);for(var l=c.length;b<l;b++)if(c[b]===a)return!0;
return!1}}},function(a,b){a.exports=function(a,b,g){b in a?Object.defineProperty(a,b,{value:g,enumerable:!0,configurable:!0,writable:!0}):a[b]=g;return a}},function(a,b,d){d.r(b);a=d(6);var f=d.n(a),g=d(9),p=g.a.Object.assign||function(c){for(var a=1;a<arguments.length;a++){var e=arguments[a],b=g.a.Object.prototype.hasOwnProperty.bind(e),l;for(l in e)b(l)&&(c[l]=e[l])}return c},h=d(18),m=d(25),e=d(27);d.d(b,"ObjectUtils",function(){return c});var c={sizeof:function(c,a){void 0===c&&(c={});void 0===
a&&(a=!1);var b=JSON.stringify(c);b=-~encodeURI(b).split(/%..|./).length;return a?e.NumberUtils.bytesToSize(b):b},assign:function(c){for(var a=arguments.length,e=Array(1<a?a-1:0),b=1;b<a;b++)e[b-1]=arguments[b];return p.apply(void 0,[c].concat(e))},deleteProps:function(c,a){void 0===a&&(a=[]);Object(m.a)(a,function(a){delete c[a]});return c},copyObject:function(c){return f()({},c)},type:function(c){return{}.toString.call(c)},deepCopyObject:function(c){return JSON.parse(JSON.stringify(c))},combine:function(){for(var c=
arguments.length,a=Array(c),e=0;e<c;e++)a[e]=arguments[e];return a.reduce(function(c,a){return null!=a?f()({},c,a):c},{})},findNativeImplementation:function(c){if(this.isNative(g.a[c],c))return g.a[c];var a=["webkit","moz","ms","o"];c=""+c.slice(0,1).toUpperCase()+c.slice(1);for(var e=0;e<a.length;e++){var b=""+a[e]+c;if(this.isNative(g.a[b],b))return g.a[b]}return null},isNative:function(c,a){return c?(new RegExp("function\\s*"+a+"\\s*\\(\\)\\s*\\{\\s*\\[native[\\s-]code\\]\\s*\\}","i")).test(c.toString()):
!1},isMonkeyPatchedOrUndefined:function(c,a){var e=g.a;if(e[c]===y||!this.isNative(e[c],c))return!0;if(a)for(var b=0;b<a.length;b++)if(!this.isNative(e[c].prototype[a[b]],a[b]))return!0;return!1},objectKeys:function(c){var a=[];Object(h.a)(c,function(c){return a.push(c)});return a},objectValues:function(c){var a=[];Object(h.a)(c,function(c,e){return a.push(e)});return a},safeAccess:function(c,a){if(null==c||"string"!==typeof a)return y;for(var e=a.split("."),b=c,l=0,d=e.length;l<d;l++)if(b=b[e[l]],
null==b)return y;return b},objectIsWindow:function(c){return"undefined"!==typeof Window&&c&&c.window&&c.window===c}}},function(a,b,d){b.a="undefined"!==typeof n?n:"undefined"!==typeof self?self:global},function(a,b,d){function f(c){var a={};"string"===typeof c&&0<c.length&&"?"!==c&&(c=c.replace(/^\?/,"").split("\x26"),Object(p.a)(c,function(c){var e=c.split("\x3d");c=e[0];e=e[1];try{a[c]=decodeURIComponent(e)}catch(F){a[c]=""}}));return a}d.r(b);var g=d(2),p=d(25);a=d(18);var h=d(3),m=d(9);g.ObjectUtils.objectIsWindow(h.a)&&
f(h.a.location.search);d=g.ObjectUtils.objectIsWindow(h.a)&&h.a!==h.a.top;var e=m.a.console||h.a.console;"undefined"===h.a.WV_DEBUG&&Object.defineProperty(h.a,"WV_DEBUG",{value:{}});var c=function(){var c=!1,a=!1;g.ObjectUtils.objectIsWindow(h.a)&&(c="1"===f(h.a.location.search)._ym_debug,a=/ym_debug=1/.test(h.a.document.cookie));return c||a}(),l={__native:e,__debugMode:c,__addDebug:function(c,a){},devLog:function(){}},u=["%cWV:","font-weight: bold;"];d&&u.length&&(u[1]+="color: purple");Object(a.a)(e,
function(a){var b,d=e[a]instanceof m.a.Function;l[a]=c?d?(b=e[a]).bind.apply(b,[e].concat(u)):e[a]:d?function(){}:e[a]},!0);c&&(l.devLog=e.log);b["default"]=l},function(a,b){a.exports=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}},function(a,b,d){var f=d(1);a.exports=function(a){for(var b=1;b<arguments.length;b++){var d=null!=arguments[b]?arguments[b]:{},m=Object.keys(d);"function"===typeof Object.getOwnPropertySymbols&&(m=
m.concat(Object.getOwnPropertySymbols(d).filter(function(a){return Object.getOwnPropertyDescriptor(d,a).enumerable})));m.forEach(function(e){f(a,e,d[e])})}return a}},function(a,b,d){d.r(b);d.d(b,"DO_NOT_TRACK",function(){return p});d.d(b,"IS_INCOGNITO",function(){return h});d.d(b,"IS_MOBILE_DEVICE",function(){return m});d.d(b,"IS_DEVELOPMENT",function(){return e});a=d(6);var f=d.n(a);a=d(12);var g=d(3);d=f()({},d(30).BrowserUtils,d(37).DocumentUtils,d(14).DOMUtils,d(22).FunctionUtils,d(0).IterableUtils,
d(91).MapUtils,d(27).NumberUtils,d(2).ObjectUtils,d(28).StringUtils,d(38).TimeUtils,d(16).Tools,{math:d(92).MathUtils});try{var p=a.a.respectDoNotTrack&&!0===navigator.doNotTrack}catch(c){p=!1}var h=function(){try{g.a.localStorage.setItem("test","test");var c="test"!==g.a.localStorage.getItem("test");g.a.localStorage.removeItem("test");return c}catch(l){return!0}}();try{var m=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(navigator.userAgent)?!0:!1}catch(c){m=!1}var e="development"===
a.a.environment;Object.defineProperties(d,{DO_NOT_TRACK:{value:p},IS_INCOGNITO:{value:h},IS_MOBILE_DEVICE:{value:m},IS_DEVELOPMENT:{value:e}});b["default"]=d},function(a,b,d){d.r(b);d.d(b,"List",function(){return m});a=d(13);var f=d.n(a);a=d(1);var g=d.n(a),p=d(9);a=d(2);var h=d(0);d=p.a.Set;a=a.ObjectUtils.isMonkeyPatchedOrUndefined("Set","add has clear delete forEach toString".split(" "));var m=function(){function a(c){g()(this,"list",[]);c&&(c instanceof a?this.create(h.IterableUtils.toArray(c)):
c instanceof Array&&this.create(c))}var c=a.prototype;c.add=function(c){!1===this.has(c)&&this.list.push(c);return this};c.has=function(c){return 0<=this.list.indexOf(c)};c.clear=function(){this.list.length=0;return this};c["delete"]=function(c){c=this.list.indexOf(c);return 0<=c?(this.list.splice(c,1),!0):!1};c.each=function(c){if("function"===typeof c)for(var a=0;a<this.list.length;){var e=this.list[a];2===c.length?c(e,e):c(e);a++}};c.forEach=function(c){this.each(c)};c.values=function(){return this.list.slice(0)};
c.keys=function(){return this.list.slice(0)};c.toArray=function(){return this.list.slice(0)};c.toString=function(){return"List("+this.size+")"};c.create=function(c){for(var a=0;a<c.length;)this.add(c[a]),a++};f()(a,[{key:"size",get:function(){return this.list.length}}]);return a}();b["default"]=a?m:d},function(a,b,d){var f=function(a,b){var d=a.contentWindow;return d?b.reduce(function(a,e){return a&&d.hasOwnProperty(e)},!0):!1};b.a=function(){var a="undefined"!==typeof global?global:"undefined"!==
typeof self?self:n;if("undefined"!==typeof q&&q.body){var b=q.createElement("iframe");b.name="ym-native-frame";b.title="ym-native-frame";b.frameBorder="0";b.style.opacity="0";b.style.width="0px";b.style.height="0px";b.style.position="absolute";b.style.left="100%";b.style.bottom="100%";b.style.setProperty("border","0","important");b.setAttribute("aria-hidden","true");/Trident|MSIE/.test(navigator.userAgent)?q.body.parentNode&&q.body.parentNode.appendChild(b):q.body.appendChild(b);f(b,["Set","Map"])&&
(a=b.contentWindow||a)}return a}()},function(a,b,d){d.d(b,"b",function(){return l});d.d(b,"a",function(){return u});a=d(33);var f=d.n(a);a=d(6);var g=d.n(a);a=d(12);var p=d(2),h=d(0),m=d(14),e=d(16),c=d(4);d=a.a.DOMIndexer;var l=d.IGNORED_NODES,u=d.IGNORED_ATTRIBUTES,r=d.SKIPPED_ATTRIBUTES,T=d.EXTRA_ATTRIBUTES,x=[],k={},F={INPUT:function(c,a){var e=g()({},a);"checkbox"===a.type||"radio"===a.type?c.checked?a.checked="checked":delete a.checked:e.value=c.value;return e},IMG:function(c,a){var e=g()({},
a);c.currentSrc&&(e.src=c.currentSrc||a.src);return e}},A=function(c){if(null==c)return!1;c=c.nodeType;return c===Node.TEXT_NODE||c===Node.COMMENT_NODE},U=function ea(c,a){var e=[];if("function"===typeof a){var b=a(c);null!=b&&b!==NodeFilter.FILTER_ACCEPT||e.push(c)}else e.push(c);if(c.childNodes&&0<c.childNodes.length){b=c.childNodes;for(var d=0,l=b.length;d<l;d++)e.push.apply(e,ea(b[d]))}return e},n=function(c,a,e){var b=function(c){return"function"===typeof e?e(c)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT:
NodeFilter.FILTER_ACCEPT};if("function"===typeof a&&b(c)===NodeFilter.FILTER_ACCEPT&&(a(c),!1===A(c)))for(c=q.createTreeWalker(c,-1,e?{acceptNode:b}:null,!1);c.nextNode()&&!1!==a(c.currentNode););},ta=function(c,a){var e=[];c&&(m.DOMUtils.nodeIsInTree(c)?n(null==c?q.documentElement:c,function(c){e.push(c)},a):e.push.apply(e,U(c,a)));return e},Ra=function(c){var a=c["*"],e=f()(c,["*"]),b={},d=new RegExp(a.join("|"),"i");h.IterableUtils.forin(e,function(c){var d,l=(d=[]).concat.apply(d,e[c].concat(a));
b[c]=new RegExp(l.join("|"),"i")});return function(c,a){if(c&&a){var e="string"===typeof c?c:c.nodeName;if(e)return(e=b[e.toLowerCase()])&&!!a.match(e)||!!a.match(d)}return!1}}(u),K=[function(c,a,e){return null==e||/^javascript/.test(e)},function(c,a){return"SCRIPT"===c.nodeName&&"src"===a},function(c,a){return"A"===c.nodeName&&"href"===a}],Fa=function(c,a,e){for(var b=0,d=K.length;b<d;b++)if(!0===K[b](c,a,e))return!1;return!0},ja=function(a,e,b){var d=b;if(Fa(a,e,b)){d=x.reduce(function(b,d){try{var l=
d(a,e,b);return null!=l?l:b}catch(la){return c["default"].warn("Filtering error",la),b}},d);if("string"===typeof d)return(b=k[e])?b(a,e,d)||d:d;if(null!=d&&!1!==d)return d.baseVal}return null},z=function(c,a){a:{try{q.createAttribute(a)}catch(H){var e=!1;break a}e=!0}return!e||Ra({nodeName:c},a)?!1:a},t=function(a,e,b){if(b&&b.name){if(!1!==z(e,b.name))try{var d,l=ja(a,b.name,b.value);return d={},d[b.name]=l||"",d}catch(V){c["default"].warn("Error while reading attribute",b,a),c["default"].warn(V)}}else c["default"].warn("Error while reading attribute",
b,a);return null};d=function(c){var a=new RegExp(c.join("|"),"gi");return function(c){return c&&!!c.nodeName.match(a)}}(l);var v=function(c){return c&&c.namespaceURI?/svg/.test(c.namespaceURI):!1};d={all:ta,map:function(c,a,e){var b=[];c=ta(c,e);h.IterableUtils.fastIterate(c,function(c,e){b.push(a(e))});return b},walk:n,each:function(c,a,e){c&&(c=ta(c,e),h.IterableUtils.fastIterate(c,a))},getAttributes:function(c){var a={},e=c.nodeName,b=h.IterableUtils.toArray(c.attributes);b&&b.length&&(h.IterableUtils.fastIterate(b,
function(b,d){var l=t(c,e,d);l&&p.ObjectUtils.assign(a,l)}),(b=T[e]||y)&&h.IterableUtils.fastIterate(b,function(b,d){t(a,e,{name:d,value:c[d]})}));return(b=F[e])?b(c,a):a},getContent:function(c){if(null!=c&&A(c))return c.textContent},getNamespace:function(c){if(v(c))return c.namespaceURI},normalizeAttributeValue:ja,cloneAttributes:function(c,a){var b=h.IterableUtils.toArray(c.attributes);h.IterableUtils.fastIterate(b,function(c,b){var d=!1===e.Tools.isNULL(b.namespaceURI),l=b.cloneNode();d?a.attributes.setNamedItemNS(l):
a.attributes.setNamedItem(l)});return a},isSVG:v,isTextNode:A,isIgnoredNode:d,isIgnoredAttr:Ra,isAttributeNameValid:z,isSkippedAttribute:function(c){return h.IterableUtils.includes(r,c)}};Object.defineProperty(d,"addAttributesFilter",{value:function(c){"function"===typeof c&&x.push(c)}});b.c=d},function(a,b,d){d.r(b);d.d(b,"KeyValue",function(){return m});a=d(13);var f=d.n(a);a=d(1);var g=d.n(a);a=d(2);var p=d(9),h=d(0);d=p.a.Map;a=a.ObjectUtils.isMonkeyPatchedOrUndefined("Map","set get has clear delete forEach toString".split(" "));
var m=function(){function a(c){g()(this,"lastIndex",0);g()(this,"list",[]);g()(this,"index",[]);c instanceof a?this.create(h.IterableUtils.toArray(c)):c instanceof Array&&this.create(c)}var c=a.prototype;c.allocate=function(c){void 0===c&&(c=0);this.list.length=c;this.index.length=c};c.set=function(c,a){var e=this.indexOf(this.index,c);-1!==e?this.list[e].value=a:(this.list[this.lastIndex]={key:c,value:a},this.index[this.lastIndex]=c,this.lastIndex++);return this};c.get=function(c){return(c=this.find(c))?
c.value:y};c.keys=function(){return this.list.map(function(c){return c.key})};c.values=function(){return this.list.map(function(c){return c.value})};c.has=function(c){return-1!==this.indexOf(this.index,c)};c.clear=function(){this.lastIndex=0;this.list.length=0;this.index.length=0;return this};c["delete"]=function(c){if(c=this.find(c))if(c=this.indexOf(this.list,c),-1!==c)return this.list.splice(c,1),this.index.splice(c,1),this.lastIndex--,!0;return!1};c.each=function(c){"function"===typeof c&&this.loop(function(a){var e=
a.key;a=a.value;2===c.length?c(e,a):c([e,a])})};c.forEach=function(c){var a=this;"function"===typeof c&&this.loop(function(e){c(e.value,e.key,a)})};c.toArray=function(){return this.list.map(function(c){return[c.key,c.value]})};c.toString=function(){return"KeyValue("+this.size+")"};c.loop=function(c){if("function"===typeof c)for(var a=0;a<this.list.length;)c.call(this,this.list[a]),a++};c.create=function(c){var a=0;if(c&&0<c.length)for(;a<c.length;){var e=c[a];this.set(e[0],e[1]);a++}};c.find=function(c){c=
this.indexOf(this.index,c);if(-1!==c)return this.list[c]};c.indexOf=function(c,a){return[].indexOf.call(c,a)};f()(a,[{key:"size",get:function(){return this.lastIndex}}]);return a}();b["default"]=a?m:d},function(a,b,d){d.d(b,"a",function(){return f});var f={environment:"production","package":{version:"2.6.2"},server:function(a){switch(a){case "test":return{port:8080,css_path:"/",public_host:"webvisor.local"};case "production":return{port:8080,css_path:"/",public_host:"webvisor.local"};case "metrika":return{port:8080,
css_path:"/",public_host:"webvisor.local"};default:return{port:8080,css_path:"/",public_host:"webvisor.local"}}}("production"),respectDoNotTrack:!0,experimentalWebSocket:!0,captors:{canvas:!1,input:!0,checkable:!0,keystrokes:!0,media:!1,mouse:!0,focus:!0,mutations:!0,resize:!0,deviceRotation:!0,selection:!0,scroll:!0,touch:!0,zoom:!0,window:!0,srcset:!0},captorsConfig:{input:{PD:function(){return{delimiter:"(-|\\.|_|\\s){0,2}",suspiciousWords:"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 contact.*".split(" "),
placeholderSuspiciousWords:"\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 \u043d\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(" ")}}}},
DOMIndexer:{IGNORED_NODES:["script","noscript","audio"],IGNORED_ATTRIBUTES:{"*":["^on*","srcset","integrity","crossorigin"],iframe:["src"],script:["src","type"]},SKIPPED_ATTRIBUTES:[],EXTRA_ATTRIBUTES:{VIDEO:["width","height"]},URL_NODES:["link","img","svg"],URL_ATTRIBUTES:"href link content poster style src srcset".split(" "),IGNORE_NODES_ORDER:["HEAD"],HIDABLE_NODES:"#text IMG INPUT BUTTON SELECT TEXTAREA".split(" "),REPLACE_ATTRIBUTES:{a:{href:"#"}}}}},function(a,b){function d(a,b){for(var d=0;d<
b.length;d++){var h=b[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,h)}}a.exports=function(a,b,p){b&&d(a.prototype,b);p&&d(a,p);return a}},function(a,b,d){d.r(b);d.d(b,"DOMUtils",function(){return h});var f=d(3),g=d(0),p=d(2),h={base:function(){var a=q.createElement("a");a.href="/";var e=q.querySelector("base");e&&e.href&&(a.href=e.href);return a.href},getScroll:function(a){return null==a?{left:0,top:0}:a.window===a?{top:a.scrollY||0,
left:a.scrollX||0}:null===a.ownerDocument?this.getScroll(this.scrollingElement(a)):{top:a.scrollTop||0,left:a.scrollLeft||0}},documentVisible:function(){if("undefined"!==typeof q){var a="undefined"!==typeof q.msHidden?"msHidden":"undefined"!==typeof q.webkitHidden?"webkitHidden":"hidden";return function(){return q[a]}}}(),isDOMNode:function(a){if(a)try{var e=a.ownerDocument;if(null===e)return!1;if(e.defaultView)return a instanceof e.defaultView.Node}catch(c){return"object"===typeof a&&"object"===
typeof a.style&&"object"===typeof a.ownerDocument}return!1},isScrollable:function(a){var e=a.scrollHeight!==a.clientHeight;return a.scrollWidth!==a.clientWidth||e},scrollingElement:function(a){a=a||q;return a.scrollingElement||(a.documentElement.scrollHeight>=a.body.scrollHeight&&0===a.compatMode.indexOf("CSS1")?a.documentElement:a.body)},convertNode:function(a,e,c){var b=void 0===c?{doc:q,saveChildren:!0}:c;c=b.doc;b=b.saveChildren;c=c||a.ownerDocument;var d=c.createElement(e);g.IterableUtils.forof(a.attributes,
function(c){d.setAttribute(c.name,c.value)});b&&g.IterableUtils.forof(a.childNodes,function(c){d.appendChild(c.cloneNode(!0))});return d},nodeIsRecordable:function(a){if(null!==a){var e=null!=a.getAttribute("metrika-ignore")||/-metrika-ignore/.test(a.className),c=null!=a.getAttribute("metrika-force")||/-metrika-force/.test(a.className);a=a.getAttribute("type");return c?!0:!e&&"password"!==a}return!1},contentSizeChanged:function(a,e){var c=a.ownerDocument?a.ownerDocument.defaultView:n,b={stopped:!1,
height:null,width:null,runner:function(){if(!this.stopped){var b=null==a?{}:"function"===typeof a?a()||{}:a;var d=b.scrollHeight;b=b.scrollWidth;if(d!==this.height||b!==this.width)this.height=d,this.width=b,e({width:b,height:d});c&&c.requestAnimationFrame(this.runner.bind(this))}},stop:function(){this.stopped=!0}};b.runner();return b},elementsFromPoint:function(a,e,c){c=c||q;var b=c.elementsFromPoint;if(b)return b.call(c,a,e);b=[];for(var d=[],h;(h=c.elementFromPoint(a,e))&&-1===b.indexOf(h);){b.push(h);
var m=h.style;d.push({value:m.getPropertyValue("pointer-events"),priority:m.getPropertyPriority("pointer-events")});m.setProperty("pointer-events","none","important")}for(a=d.length;e=d[--a];)b[a].style.setProperty("pointer-events",e.value?e.value:"",e.priority);return b},nodeIndentLevel:function(a){for(var e=0;a.parentNode;)a=a.parentNode,e++;return e},offsets:function(a,e){var c=void 0===e?{}:e,b=c.relative,d=void 0===b?!1:b;b=c.excludeBorder;var h=void 0===b?!1:b;c=c.excludePadding;var m=void 0===
c?!1:c;!1==="getBoundingClientRect"in a&&("documentElement"in a?a=a.documentElement:"document"in a&&(a=a.document.documentElement));var f=(a.ownerDocument||q).defaultView||n,g=a.getBoundingClientRect();c=g.top;b=g.right;var p=g.bottom,A=g.left;d&&(c=g.top,A=g.left);if(h||m)d=f.getComputedStyle(a),h&&(h=d.borderRightWidth,f=d.borderBottomWidth,g=d.borderLeftWidth,c+=parseInt(d.borderTopWidth||"0",10),b+=parseInt(h||"0",10),p+=parseInt(f||"0",10),A+=parseInt(g||"0",10)),m&&(m=d.paddingRight,h=d.paddingBottom,
f=d.paddingLeft,c+=parseInt(d.paddingTop||"0",10),b+=parseInt(m||"0",10),p+=parseInt(h||"0",10),A+=parseInt(f||"0",10));return{top:c,right:b,bottom:p,left:A}},nodeIsInTree:function(a){if(this.isDOMNode(a)){var e=a.ownerDocument;if(null!=e)return e.documentElement.contains(a)}return!1},waitForNode:function(a,e,c){var b=this;void 0===c&&(c=500);var d={disconnect:function(){}};if(b.nodeIsInTree(a))e(!0);else{var h=a.ownerDocument||q,m=new MutationObserver(function(){b.nodeIsInTree(a)&&(e(!0),m.disconnect())});
m.observe(h.documentElement,{subtree:!0,childList:!0});var f=isFinite(c)?D(function(){b.nodeIsInTree(a)||(e(!1),m.disconnect())},c):y;d.disconnect=function(){f&&clearTimeout(f);m.disconnect()}}return d},createElement:function(a,e,c){c=c||q;var b=c.createElement(a);g.IterableUtils.forin(e,function(c){var a=e[c];"style"===c?p.ObjectUtils.assign(b[c],a):b[c]=a});return b},matchesSelector:function(a,e){var c=g.IterableUtils.find(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector",
"oMatchesSelector"],function(c){return c in q.body});this.matchesSelector=function(a,e){if(c){if(null==a||null==a.ownerDocument)return!1;try{if(c in a)return a[c](e)}catch(r){}}return!1};return this.matchesSelector(a,e)},closestParent:function(a,e,c){void 0===c&&(c=!1);for(a=c&&!this.isTextNode(a)?a:a.parentNode;a;){if(a&&this.matchesSelector(a,e))return a;a=a.parentNode}return null},isTextNode:function(a){return 0<=[Node.TEXT_NODE,Node.COMMENT_NODE].indexOf(a.nodeType)},isChildOf:function(a,e,c){void 0===
c&&(c=!1);return null!=this.closestParent(a,e,c)},copyAttributes:function(a,e){g.IterableUtils.forof(a.attributes,function(c){try{e.setAttribute(c.name,c.value)}catch(l){f.a.console.warn("Can't copy attribute ["+c.name+"\x3d"+c.value+"]",{sourceNode:a})}});return e},isHiddenContent:function(a){if(null==a)return!1;if("#text"===a.nodeName)return this.isHiddenContent(a.parentNode);if(/ym-hidden-content/.test(a.className))return!1;var e=this.closestParent(a,".ym-hide-content",!0);a:{a=this.closestParent(a,
".ym-show-content",!0);e===a&&(a=null);if(null!=e||null!=a){if(e&&null==a){e=!0;break a}if((null!=e||!a)&&e&&a){e=!e.contains(a);break a}}e=!1}return e}}},function(a,b,d){(function(a,g){var f=d(8),h=d(0),m=d(2),e=function(){function c(c,e){var b=void 0===e?{}:e,d=b.context;d=void 0===d?null:d;b=b.expose;b=void 0===b?!1:b;this.allowedEvents=h.IterableUtils.toList((this.eventsList||c||[]).map(function(c){return c.split(":")[0]}));this.context=d||this;this._define("_events",new a)._define("_memory",
new a)._define("_namespaces",new a)._define("_options",new a)._define("_once",new a);this._setupEvents();this._exposeEvents(d,b)}var e=c.prototype;e.emit=function(c){for(var a=this,e=arguments.length,b=Array(1<e?e-1:0),d=1;d<e;d++)b[d-1]=arguments[d];return new g(function(e,d){var l=c.split(" ");h.IterableUtils.forof(l,function(c){a._invokeEvent(c,b,e,d)});return a})};e.on=function(c,a){var e=this;if("function"===typeof a){var b=c.split(" ");h.IterableUtils.forof(b,function(c){e._saveEvent(c,a)})}else throw Error("Callback sould be a function");
return this};e.off=function(c,a){var e=this;var b=c?c.split(" "):h.IterableUtils.keys(e._events);h.IterableUtils.forof(b,function(c){e._removeEvent(c,a)});return this};e._define=function(c,a){Object.defineProperty(this,c,{value:a,writable:!1});return this};e._exposeEvents=function(c,a){a&&m.ObjectUtils.assign(c,{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)})};e._getNamespace=function(c,a){var e=this._namespaces.get(c);return e?e.get(a)||this._events.get(c):this._events.get(c)};
e._hasOption=function(c,a){var e=this._options.get(c);return!!e&&e.has(a)};e._invokeEvent=function(c,a,e){var b=this;c=c.split(".");var d=c[0];c=c[1];var l=this._hasOption(d,"stop");if((c=this._getNamespace(d,c))&&0<c.size){var f=g.resolve();a=this._saveMemory(d,a);h.IterableUtils.forof(c,function(c){if(b._isAlreadyCalled(d,c))return!0;f=f.then(function(h){return!1!==h?(h=b._runCallback(d,c,a),e(h),l?h:null):!1})})}};e._isAlreadyCalled=function(c,a){if(this._hasOption(c,"once")){var e=this._once.get(c)||
new f["default"];if(e.has(a))return!0;e.add(a);this._once.set(c,e)}return!1};e._runCallback=function(c,a,e){e=this._saveMemory(c,e);return a.call.apply(a,[this.context].concat(e))};e._saveEvent=function(c,a){var e=c.split(":"),b=e[0];e=e.slice(1);var d=b.split(".");b=d[0];d=d[1];var l=this._events.get(b)||new f["default"];e=this._options.get(b)||h.IterableUtils.toList(e);var m=this._memory.get(b)||!1;l.has(a)||(l.add(a),this._events.set(b,l),this._options.set(b,e),this._saveNamespace(b,d,a),m&&this._runCallback(b,
a,m))};e._saveMemory=function(c,a){return this._hasOption(c,"memory")?this._memory.has(c)?this._memory.get(c)||[]:this._memory.set(c,a)&&a:a};e._saveNamespace=function(c,e,b){var d=this._namespaces.get(c)||new a,l=d.get(e||"__global")||new f["default"];l.add(b);d.set(e||"__global",l);this._namespaces.set(c,d)};e._setupEvents=function(){var c=this;this.allowedEvents.size&&h.IterableUtils.forof(this.allowedEvents,function(a){var e=a.split(":");a=e[0];e=e.slice(1);c._options.set(a,h.IterableUtils.toList(e));
c._events.set(a,new f["default"])})};e._removeCallbacks=function(c,a){if(a instanceof f["default"]){var e=this._events.get(c);h.IterableUtils.forof(a,function(c){e&&e["delete"](c)})}};e._removeEvent=function(c,a){var e=c.split("."),b=e[0];e=e[1];var d=this._events.get(b)||new f["default"];d.has(a)?(e||d["delete"](a),this._removeNamespace(b,e,a)):(e||(this._events["delete"](b),this._options["delete"](b)),this._removeNamespace(b,e))};e._removeNamespace=function(c,a){var e=this,b=this._namespaces.get(c);
b&&(a?(this._removeCallbacks(c,b.get(a)),b["delete"](a)):(h.IterableUtils.forof(b,function(a){e._removeCallbacks(c,a)}),this._namespaces["delete"](c)))};return c}();b.a=e}).call(this,d(11)["default"],d(21).Promise)},function(a,b,d){d.r(b);(function(a){d.d(b,"Tools",function(){return l});var f=d(12),p=d(3),h=d(41),m=d(2),e=d(4),c={"null":null,undefined:y,"true":!0,"false":!1},l={delay:function(c,e){void 0===e&&(e=0);return new a(function(a){D(function(){a(c())},e)})},copyText:function(c){return new a(function(a){var b=
q.createElement("textarea"),d=q.body;b.value=c;b.style.opacity="0";b.style.position="absolute";b.style.top="-99999px";b.style.left="-99999px";b.onselect=function(){try{b.onselect=null,q.execCommand&&q.execCommand("copy"),a()}catch(R){e["default"].warn("Error while copying text "+c,R)}d.removeChild(b)};d.appendChild(b);b.select()})},globalize:function(c,a){"undefined"!==typeof p.a&&Object.defineProperty(p.a,a,{value:c})},guid:function(){var c=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};
return c()+c()+"-"+c()+"-"+c()+"-"+c()+"-"+c()+c()+c()},measure:function(c,a,e){if(null!=a)return"function"===typeof a?a():a},apiMock:function(c){var a={properties:[],methods:[]};c=c.prototype;for(var e in c)if(c.hasOwnProperty(e))try{c[e]instanceof Function?a.methods.push(e):a.properties.push(e)}catch(x){a.properties.push(e)}return a},imageUrl:function(c){return/^\//.test(c)?c:[f.a.server.css_path.replace(/([/]+)$/,""),c].join("/")},cast:function(a){if(c.hasOwnProperty(a))return c[a];var e=Number(a);
return String(e)===a?e:a},"catch":function(c){try{c()}catch(r){return e["default"].warn(r),r}},fetch:h.a,promise:function(c){return(new a(function(a,e){c(a,e)}))["catch"](function(c){return e["default"].warn(c)})},isNULL:function(c){return null==c},isFunction:function(c){return"function"===typeof c},promiseError:function(c){e["default"].warn(c);return a.reject(c)},promiseExec:function(c){return new a(function(a){a(c())})},requestAnimationFrame:function(c){var a=m.ObjectUtils.findNativeImplementation("requestAnimationFrame"),
e=m.ObjectUtils.findNativeImplementation("cancelAnimationFrame");if(a&&e)return this.requestAnimationFrame=a.bind(n),this.requestAnimationFrame(c);this.requestAnimationFrame=a=function(c){return D(c,4)};return a(c)},cancelAnimationFrame:function(c){var a=m.ObjectUtils.findNativeImplementation("requestAnimationFrame"),e=m.ObjectUtils.findNativeImplementation("cancelAnimationFrame");a&&e?(this.cancelAnimationFrame=e.bind(n),this.cancelAnimationFrame(c)):(this.cancelAnimationFrame=function(c){clearTimeout(c)},
clearTimeout(c))},throwError:function(c){throw Error(c);},errorProxy:function(c,a,e){void 0===a&&(a=!1);try{return c()}catch(x){return n.console.warn("Error while running "+(e||c.name),x),a}}}}).call(this,d(21).Promise)},function(a,b){a.exports=function(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;a.__proto__=b}},function(a,b,d){b.a=function(a,b,d){void 0===d&&(d=!1);var h=2===b.length;if(a&&b instanceof Function)for(var f in a)if(a.hasOwnProperty(f)||!0===d){var e=h?b(f,
a[f]):b(f);if(!0!==e&&!1===e)break}}},function(a,b,d){(function(a,d){var f=new a;b.a={throttledFunctions:f,invokeAll:function(a){d.fastIterate(f,function(b,e){e.invoke.call(a)})},create:function(a,b){var e=void 0===b?{}:b,c=e.timeout,l=void 0===c?0:c;c=e.immediateFirstRun;var h=void 0===c?!1:c;e=e.context;var m=!0,g=null,p=null,k=null,F=null,A=!1,U=null,n=null;e={invoke:function(){var c=this.context||this;k!==g&&(F=d.now(),k=g,a.call(c,{object:g,prevObject:null,timeDifff:0,args:n}))},run:function(c){var e=
this.context||this;h&&(clearTimeout(U),U=D(function(){return m=!0},l));if(!A){g=c;for(var b=arguments.length,f=Array(1<b?b-1:0),u=1;u<b;u++)f[u-1]=arguments[u];n=f;m&&h?(m=!1,k=c,a.call(e,{object:c,prevObject:null,timeDifff:0,args:n})):(F=d.now(),A=!0,D(function xa(){var c=parseInt(d.now()-F,10);c>=l?(A=!1,F=d.now(),k!==g&&(p=k,k=g,a.call(e,{object:g,prevObject:p,timeDiff:c,args:n}))):D(xa)}))}},context:void 0===e?null:e,call:function(){var c;(c=this.run).call.apply(c,arguments)}};f.set(a,e);return e},
setContext:function(a,b){if(f.has(a)){var e=f.get(a);null==e.context&&(e.context=b)}}}}).call(this,d(11)["default"],d(7)["default"])},function(a,b,d){(function(a,g){d.d(b,"a",function(){return u});var f=d(12),h=new a,m=String.fromCharCode(8226),e=f.a.captorsConfig.input.PD();f=e.suspiciousWords;e=e.placeholderSuspiciousWords;var c=new RegExp("("+f.join("|")+")","i"),l=new RegExp("("+f.concat(e).join("|")+")","i"),u={isValidType:function(c){return/color|date|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/i.test(c)},
isValidNode:function(c){var a=c.nodeName;c=c.type;return"INPUT"===a?u.isValidType(c):/textarea|select|progress/i.test(a)},isPrivateInformationField:function(a){var e=a.placeholder;a=[a.className,a.id,a.name];c.lastIndex=0;l.lastIndex=0;return a.reduce(function(a,e){return a||c.test(e)},!1)||l.test(e)},isIgnored:function(c){var a=c.className;return/password/i.test(c.type)||/ym-disable-keys/i.test(a)||g.isHiddenContent(c)?!0:!1},isRecordable:function(c){return this.matchesClass(c.className,"ym-record-keys")?
!0:!1},matchesClass:function(c,a){return(new RegExp(a,"i")).test(c)},isAllowed:function(c,a){void 0===a&&(a=!1);return a?!0===u.isRecordable(c):!1===u.isIgnored(c)},isChanged:function(c,a){var e=!0;h.has(c)&&(e=h.get(c)[0],e=a!==e);e&&h.set(c,[a]);return e},validate:function(c,a){void 0===a&&(a={});var e=a,b=e.isEU,d=e.recording.keysMode;e=u.isRecordable(c);var l=u.isPrivateInformationField(c);d=u.isAllowed(c,"explicit"===d)&&!(b||l);return{forceRecord:e,isPrivate:l,isAllowed:d,isEU:b}},encode:function(c){void 0===
c&&(c="");return c&&0<c.length?c.split(/\n/).map(function(c){return g.repeatString(m,c.length)}).join("\n"):c}}}).call(this,d(11)["default"],d(7)["default"])},function(a,b,d){d.r(b);d.d(b,"Promise",function(){return f});var f=d(3).a.Promise||d(87).Promise},function(a,b,d){d.r(b);d.d(b,"FunctionUtils",function(){return f});var f={invoke:function(a,b,d){void 0===b&&(b=[]);return"function"===typeof a?(d&&(a=a.bind(d)),a.apply(void 0,b)):a},lazy:function(a,b){void 0===b&&(b=0);var d;return function(){for(var h=
arguments.length,e=Array(h),c=0;c<h;c++)e[c]=arguments[c];clearTimeout(d);d=D(function(){a.apply(void 0,e)},b)}},once:function(a){var b=function(){var d=a.apply(void 0,arguments);b=function(){return d};return d};return function(){return b.apply(void 0,arguments)}},noop:function(){return function(){}},toFunction:function(a){return"function"===typeof a?a:this.noop()},repeat:function(a,b){var d=void 0===b?{}:b,f=d.context,e=void 0===f?null:f;f=d.args;var c=void 0===f?[]:f;f=d.delay;var l=void 0===f?
0:f;d=d.raf;d=void 0===d?!0:d;var g=Date.now(),p=!1,k=null,x=d?this.requestAnimationFrame.bind(this):D,R=d?this.cancelAnimationFrame.bind(this):clearTimeout;d=function A(){p?R(k):(Date.now()-g>=l&&(g=Date.now(),a.apply(e,c)),k=x(A))};d.stop=function(){p=!0};d();return d}}},function(a,b,d){a.exports=d(89)},function(a,b,d){d.r(b);a=d(3).a.Symbol;d=a instanceof Function&&a.iterator?a:d(68);b["default"]=d},function(a,b,d){(function(a){var f=d(29),p=function(a,b,e){a.forEach(function(c,a){2===b.length?
e?b(c,a):b([c,a]):b(c)})};b.a=function(b,d){var e=2===d.length;if(b&&d instanceof Function)if(null!=b[a.iterator])if(e)if(b instanceof Array){e=0;for(var c=b.length;e<c;e++){var l=d(e,b[e]);if(!0!==l&&!1===l)break}}else{if(b[a.iterator])for(e=b,c=Array.isArray(e),l=0,e=c?e:e[a.iterator]();;){if(c){if(l>=e.length)break;var h=e[l++]}else{l=e.next();if(l.done)break;h=l.value}h=d(h[0],h[1]);if(!0!==h&&!1===h)break}}else for(e=b,c=Array.isArray(e),l=0,e=c?e:e[a.iterator]();;){if(c){if(l>=e.length)break;
h=e[l++]}else{l=e.next();if(l.done)break;h=l.value}h=d(h);if(!0!==h&&!1===h)break}else if("forEach"in b)p(b,d,e);else if(b instanceof Array)for(c=Object(f.a)(b),l=0;l<c.length&&(h=c[l],h=e?d.apply(void 0,h):d(h),!0===h||!1!==h);l++);}}).call(this,d(24)["default"])},function(a,b,d){var f=d(3),g=d(2),p=function(){var a=!1;if(g.ObjectUtils.objectIsWindow(f.a))try{f.a.addEventListener("test",function(){},Object.defineProperties({},{passive:{get:function(){return a=!0},configurable:!0,enumerable:!0}}))}catch(e){}return a}(),
h=function(a,e,c,b,d){void 0===d&&(d={});a+="EventListener";if(e&&e[a])return p?e[a](c,b,d):e[a](c,b,"boolean"===typeof d?d:d.capture||!1)};a=function(){function a(){}a.on=function(a,c,b,d){void 0===d&&(d={});return h("add",a,c,b,d)};a.off=function(a,c,b,d){void 0===d&&(d={});return h("remove",a,c,b,d)};return a}();b.a=a},function(a,b,d){d.r(b);d.d(b,"NumberUtils",function(){return f});var f={size:function(a,b){void 0===b&&(b="kb");switch(b.toLowerCase()){case "b":case "byte":case "bytes":return a;
case "kb":case "kilobyte":case "kilobytes":return a*this.size(1024,"bytes");case "mb":case "megabyte":case "megabytes":return a*this.size(1024,"kilobytes");case "gb":case "gigabyte":case "gigabytes":return a*this.size(1024,"megabytes");case "tb":case "terabyte":case "terabytes":return a*this.size(1024,"gigabytes");default:return a}},bytesToSize:function(a){if(0===a)return"0 Byte";var b=Math.round(Math.floor(Math.log(a)/Math.log(1024)));return Math.round(a/Math.pow(1024,b))+" "+["Bytes","KB","MB",
"GB","TB"][b]},closestNumber:function(a,b){return a.length?a.reduce(function(a,d){return Math.abs(d-b)<Math.abs(a-b)?d:a}):null}}},function(a,b,d){d.r(b);d.d(b,"StringUtils",function(){return p});var f=d(3),g=d(0),p={dasherize:function(a){return a.replace(/[A-Z]/g,function(b,e){var c=/[A-Z]/g.test(a[e-1]);return(0===e||c?"":"-")+b.toLowerCase()})},pad:function(a,b,e,c){void 0===b&&(b=2);void 0===e&&(e=" ");void 0===c&&(c=!1);a=String(a);b=g.IterableUtils.fill(Array(Math.max(0,Math.min(b-a.length,
b))),e);return c?""+a+b.join(""):""+b.join("")+a},stringToBlobURL:function(a,b,e){void 0===e&&(e=f.a.location);var c=function(){try{return new Blob([a],{type:b})}catch(r){var c=f.a;c=new (c.BlobBuilder||c.WebKitBlobBuilder||c.MozBlobBuilder||c.MSBlobBuilder);c.append(a);return c.getBlob(b)}}(),d=function(a){return a?(a=(URL||webkitURL).createObjectURL(a),/blob:(?!http[s]?).*/.test(a)?a.replace("blob:","blob:"+(e.protocol+"//"+e.host)+"/"):a):y}(c);return c?{blob:c,url:d}:null},repeatString:function(a,
b){void 0===b&&(b=1);return Array(b+1).join(a)},parseURL:function(a){if(!a)return y;if("string"!==typeof a)return f.a.console.warn("URL was expected to be a string",a),y;var b=a.match(/^(http[s]?|file):\/\/([^/\n]*)([^?\n]*)(\?[^\n]*)?/);if(b){var e=b.slice(1);b=e[0];var c=e[1],d=e[2];e=e[3];var h=c?(c.match(/([^:\s]+)(:[0-9]*)?/)||[]).slice(1):[],g=h[0];g=void 0===g?y:g;h=h[1];h=void 0===h?y:h;var p=g?(g.match(/\.([^.]+)$/)||[])[1]:y,k=d?function(){var a=d.match(/([^/]+)\.([^/]*)$/);return a?a[0]:
y}():y,R=d&&k?d.replace("/"+k,""):d||"/";return{protocol:b?b+":":y,hostname:c,host:g,port:(h||"80").replace(/:/,""),path:d||"/",tld:p,file:k,pathname:R,search:e?e.replace(/^\?/,""):y,url:a,assemble:function(a){var c=this;return a?a.replace(/(\{([^}]+)\})/g,function(){return c[2>=arguments.length?y:arguments[2]]}):this.url}}}return y}}},function(a,b,d){(function(a){var f=d(9),p=d(2);b.a=function(b){var d=[];if(!b)return d;if(b instanceof Array)return[].slice.call(b,0);if(p.ObjectUtils.isNative(f.a.Array.from,
"from"))return f.a.Array.from(b);var e="length"in b?b.length:"size"in b?b.size:0;var c=d.slice.call(b,0);if(c.length===e)return c;try{if(b.forEach)b.forEach(function(a,c){var e=a;c&&a&&c!==a&&(e=[c,a]);d.push(e)});else for(var l=b[a.iterator](),h,g;h=l.next(),g=h.value,!h.done;)d.push(g);return d}catch(T){return[]}}}).call(this,d(24)["default"])},function(a,b,d){d.r(b);d.d(b,"BrowserUtils",function(){return p});var f=d(3),g=d(14),p={isMSIE:function(){var a=f.a.navigator.userAgent,b=a.indexOf("MSIE ");
if(0<b)return parseInt(a.substring(b+5,a.indexOf(".",b)),10);if(0<a.indexOf("Trident/"))return b=a.indexOf("rv:"),parseInt(a.substring(b+3,a.indexOf(".",b)),10);b=a.indexOf("Edge/");return 0<b?parseInt(a.substring(b+5,a.indexOf(".",b)),10):!1},isIframe:function(a){return a.top!==a},isMobile:function(a){a=a||n&&n.navigator?navigator.userAgent:null;if(null==a)return!1;var b=!1;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a.substr(0,
4)))b=!0;return b},isAndroid:function(){return/android/i.test(navigator.userAgent)},isIOS:function(){return/ipad|iphone|ipod/i.test(navigator.userAgent)},orientation:function(a){a=a||f.a;return null!=a?a:(a=a.screen.orientation||a.screen.mozOrientation||a.screen.msOrientation)&&a.angle||0},devicePixelRatio:function(){return f.a.devicePixelRatio||1},meta:function(a){return(a=q.querySelector('meta[name\x3d"ym:'+a+'"]'))?a.content:null},scaleFactor:function(a,b){var e=a.clientWidth,c=a.clientHeight,
d=b.clientWidth,h=b.clientHeight;return d>e||h>c?(e/=d,c/=h,Math.min(1,Math.max(e>c?.1:.35,Math.min(e,c)))):1},viewportGetter:function(a){a=a||n.document;var b=a.defaultView,e=function(c){/Trident|MSIE/.test(b.navigator.userAgent)?a.body.parentNode&&a.body.parentNode.appendChild(c):a.body.appendChild(c)},c=a.querySelector("ym-measure.ym-viewport"),d=a.querySelector("ym-measure.ym-zoom");null===c&&(c=g.DOMUtils.createElement("ym-measure",{className:"ym-viewport",style:{display:"block",top:0,right:0,
bottom:0,left:0,position:"fixed",transform:"translate(0, -100%)",msTransform:"translate(0, -100%)",webkitTransform:"translate(0, -100%)",transformOrigin:"0 0",msTransformOrigin:"0 0",webkitTransformOrigin:"0 0"}}),e(c));null===d&&(d=g.DOMUtils.createElement("ym-measure",{className:"ym-zoom",style:{bottom:"100%",position:"fixed",width:"100vw"}}),e(d));return Object.defineProperties({getSize:function(a){void 0===a&&(a=1);var e=c;return{width:Math.round(e.clientWidth*a),height:Math.round(e.clientHeight*
a)}}},{zoomLevel:{get:function(){try{return parseFloat((d.clientWidth/b.innerWidth).toFixed(3))}catch(u){return 1}},configurable:!0,enumerable:!0},scrollingElement:{get:function(){return a.scrollingElement||(a.documentElement.scrollHeight>a.body.scrollHeight&&0===a.compatMode.indexOf("CSS1")?a.documentElement:a.body)},configurable:!0,enumerable:!0},orientation:{get:function(){var a=oa?oa.orientation||oa.mozOrientation||oa.msOrientation:null;return a&&a.angle||0},configurable:!0,enumerable:!0}})}}},
function(a,b,d){(function(a,g,p){d.d(b,"b",function(){return r});var h=d(1);h=d.n(h);var f=d(15),e="2d webgl experimental-webgl webgl2 experimental-webgl2 bitmaprenderer".split(" "),c=function(){var a=q.createElement("canvas");a.proxy=!1;return e.filter(function(c){return null!=a.getContext(c)})}(),l=new a,u=HTMLCanvasElement.prototype.getContext,r=function(a){var c=q.createElement("canvas");c.width=a.width;c.height=a.height;c.proxy=!1;c.getContext("2d").drawImage(a,0,0);return c.toDataURL("image/jpeg")},
k=function(a){a=a.constructor;if(l.has(a))return l.has(a);var c=g.apiMock(a);l.set(a,c);return c};a=function(){function a(){}a.mock=function(){if(!this.mocked){this.mocked=!0;HTMLCanvasElement.prototype.getContext=function(e){var b=u.call(this,e);if(null!==b)return!1!==this.proxy&&0<=c.indexOf(e)&&a.update(b),b};var b=q.querySelectorAll("canvas");g.forof(b,function(a){g.forof(e,a.getContext.bind(a))})}};a.remove=function(){this.mocked&&(this.mocked=!1,this.events.off(),HTMLCanvasElement.prototype.getContext=
u)};a.update=function(c){if(!1===a.proxies.has(c)){var e=this,b=c.canvas,d=Object.getPrototypeOf(c),l=k(c);g.nodeIsRecordable(b)&&l.properties&&(g.forof(l.properties,function(a){var b=Object.getOwnPropertyDescriptor(d,a),l=g.combine(b);b.get&&(l.get=b.get.bind(c));b.set&&(l.set=function(d){e.setterInvoked(c,a,d);return b.set.call(c,d)});Object.defineProperty(c,a,l)}),g.forof(l.methods,function(a){var b=c[a];Object.defineProperty(c,a,{configurable:!0,value:function(){for(var d=arguments.length,l=Array(d),
h=0;h<d;h++)l[h]=arguments[h];e.methodInvoked(c,a,l);return b.bind.apply(b,[c].concat(l))}})}));a.proxies.add(c)}};a.setterInvoked=function(a,c,e){var b=this;this.mocked&&D(function(){b.send(a,"setter",{name:c,value:String(e)})})};a.methodInvoked=function(a,c,e){var b=this;this.mocked&&D(function(){e=e.map(function(a){return a instanceof Image?r(a):String(a)});b.send(a,"method",{name:c,args:e})})};a.send=function(){};return a}();h()(a,"proxies",new p);h()(a,"mocked",!1);h()(a,"events",new f.a(["setter:memory",
"method:memory"]));b.a=a}).call(this,d(11)["default"],d(7)["default"],d(8)["default"])},function(a,b,d){(function(a){var f=d(13),p=d.n(f);f=d(1);var h=d.n(f),m=d(4);f=function(){function e(){h()(this,"executionFrameId",null);h()(this,"jobExecutionStartStamp",null);this.jobs=[];this.isRunning=!1}var c=e.prototype;c.push=function(c,e){var b,d=this;void 0===e&&(e=!1);(b=this.jobs).push.apply(b,[].concat(c));e?this.start(!0):a.requestAnimationFrame(function(){return d.start(e)})};c.start=function(a){void 0===
a&&(a=!1);this.isRunning||this.executeNextJob(a)};c.executeNextJob=function(a){void 0===a&&(a=!1);this.hasJobs&&(a?this._executeJobsSync():this._executeJobsAsync())};c._executeJobsSync=function(){if(this.hasJobs&&this.isRunning){for(a.cancelAnimationFrame(this.executionFrameId);this.hasJobs;)this._executeJob();this.jobExecutionStartStamp=null;this.isRunning=!1}};c._executeJobsAsync=function(){var c=this;if(this.hasJobs){this.isRunning=!0;var e;this.executionFrameId=a.requestAnimationFrame(function(){for(;c.hasJobs&&
(!c.jobExecutionStartStamp||150>e);)e=c._executeJob(!c.jobExecutionStartStamp);c.jobExecutionStartStamp=null;c._executeJobsAsync()})}else this.isRunning=!1};c._executeJob=function(a){void 0===a&&(a=!0);a&&(this.jobExecutionStartStamp=(new Date).valueOf());a=this.jobs.shift();try{a()}catch(u){m["default"].log("Error occurred when running job"),m["default"].log(u),m["default"].log(a.toString())}return(new Date).valueOf()-this.jobExecutionStartStamp};p()(e,[{key:"hasJobs",get:function(){return 0<this.jobs.length}}]);
return e}();b.a=f}).call(this,d(7)["default"])},function(a,b){a.exports=function(a,b){if(null==a)return{};var d={},f=Object.keys(a),h;for(h=0;h<f.length;h++){var m=f[h];0<=b.indexOf(m)||(d[m]=a[m])}return d}},function(a,b,d){d.d(b,"a",function(){return f});d.d(b,"b",function(){return g});var f=function(){function a(){this.m=[]}var b=a.prototype;b.use=function(a){this.m.push(a)};b.useRight=function(a){this.m.unshift(a)};b.run=function(a,e){this._execute(a,e)};b._execute=function(a,e){this.m.reduceRight(function(c,
e){return function(b){return e(b||a,c)}},function(c){return e(c||a)})(a)};return a}(),g=function(){function a(){this.m=[]}var b=a.prototype;b.use=function(a){this.m.push(a)};b.useRight=function(a){this.m.unshift(a)};b.run=function(a,e){return this._execute(a,e)};b._execute=function(a){for(var e=0,c=this.m.length;e<c;e++){var b=this.m[e](a);if(b===y)break;a=b}return a};return a}()},function(a,b,d){(function(b){function d(a,d,f,e,c,l,g){try{var h=a[l](g),m=h.value}catch(x){f(x);return}h.done?d(m):b.resolve(m).then(e,
c)}a.exports=function(a){return function(){var h=this,f=arguments;return new b(function(e,c){function b(a){d(m,e,c,b,g,"next",a)}function g(a){d(m,e,c,b,g,"throw",a)}var m=a.apply(h,f);b(y)})}}}).call(this,d(21).Promise)},function(a,b,d){var f=d(78)();a.exports=function(a){return a!==f&&null!==a}},function(a,b,d){d.r(b);d.d(b,"DocumentUtils",function(){return g});var f=function(a){return a?"IFRAME"===a.nodeName?a.contentDocument:a:null},g={open:function(a){(a=f(a))&&a.open()},write:function(a,b){var d=
f(a);d&&d.write(b)},close:function(a){(a=f(a))&&a.close()},initDocument:function(a){var b=void 0===a?{}:a;a=b.html;var d=b.doctype;d=void 0===d?"\x3c!DOCTYPE html\x3e":d;b=b.doc||q.cloneNode(!1);this.open(b);this.write(b,a||d+"\x3chtml\x3e\x3chead\x3e\x3c/head\x3e\x3cbody\x3e\x3c/body\x3e\x3c/html\x3e");this.close(b);return b}}},function(a,b,d){d.r(b);d.d(b,"TimeUtils",function(){return g});a=d(42);var f=d(28),g={now:function(){return(new Date).getTime()},formatTime:function(a,b){void 0===b&&(b=!0);
a=Number(a);return[Math.floor(a/3600),Math.floor(a/60%60),Math.floor(a%60)].filter(function(a,e){return!(0===a&&0===e)}).map(function(a,e){return f.StringUtils.pad(a,0!==e||b?2:0,"0")})},formattedTime:function(a,b,d){void 0===b&&(b=["sec","min","hours"]);void 0===d&&(d=!0);var e=g.formatTime(a,d).reverse();return b.reduce(function(a,b,d){e[d]&&parseInt(e[d],10)&&a.push(parseInt(e[d],10)+" "+b);return a},[]).reverse().join(" ")},timer:a.a}},function(a,b){function d(){throw Error("setTimeout has not been defined");
}function f(){throw Error("clearTimeout has not been defined");}function g(a){if(u===D)return D(a,0);if((u===d||!u)&&D)return u=D,D(a,0);try{return u(a,0)}catch(U){try{return u.call(null,a,0)}catch(Qa){return u.call(this,a,0)}}}function p(a){if(r===clearTimeout)return clearTimeout(a);if((r===f||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(a);try{return r(a)}catch(U){try{return r.call(null,a)}catch(Qa){return r.call(this,a)}}}function h(){x&&n&&(x=!1,n.length?k=n.concat(k):F=-1,k.length&&m())}
function m(){if(!x){var a=g(h);x=!0;for(var c=k.length;c;){n=k;for(k=[];++F<c;)n&&n[F].run();F=-1;c=k.length}n=null;x=!1;p(a)}}function e(a,c){this.fun=a;this.array=c}function c(){}var l=a.exports={};try{var u="function"===typeof D?D:d}catch(A){u=d}try{var r="function"===typeof clearTimeout?clearTimeout:f}catch(A){r=f}var k=[],x=!1,n,F=-1;l.nextTick=function(a){var c=Array(arguments.length-1);if(1<arguments.length)for(var b=1;b<arguments.length;b++)c[b-1]=arguments[b];k.push(new e(a,c));1!==k.length||
x||g(m)};e.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};l.on=c;l.addListener=c;l.once=c;l.off=c;l.removeListener=c;l.removeAllListeners=c;l.emit=c;l.prependListener=c;l.prependOnceListener=c;l.listeners=function(a){return[]};l.binding=function(a){throw Error("process.binding is not supported");};l.cwd=function(){return"/"};l.chdir=function(a){throw Error("process.chdir is not supported");};l.umask=function(){return 0}},
function(a,b,d){function f(){if("undefined"===typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function g(b,d,e){f()?a.exports=g=Reflect.construct:a.exports=g=function(a,e,b){var c=[null];c.push.apply(c,e);a=new (Function.bind.apply(a,c));b&&p(a,b.prototype);return a};return g.apply(null,arguments)}var p=d(88);a.exports=g},function(a,b,d){(function(a){var f=
d(37),p=d(2),h=d(18);b.a=function(b){var e=p.ObjectUtils.assign({url:"",headers:{},method:"get",type:"json",data:null},b);if(b.headers===y||b.headers["Content-Type"]===y)e.headers=e.headers||{},e.headers["Content-Type"]=function(){switch(e.type){case "json":return"application/json";case "css":return"text/css";case "html":return"text/html";default:return"text/plain"}}();return(new a(function(a,b){var c=new XMLHttpRequest,d=new FileReader;"css"===e.type&&(c.responseType="blob");c.addEventListener("readystatechange",
function(){var l=c.status;4===c.readyState&&(200<=l&&301>l?"css"===e.type?(d.addEventListener("load",function(c){a({result:d.result})}),d.readAsText(c.response)):(l=function(a){switch(e.type){case "json":return JSON.parse(a);case "html":return f.DocumentUtils.initDocument({html:a});default:return a}}(c.responseText),a({result:l})):b(Error(l+" "+c.statusText)))});c.addEventListener("error",b);c.open(e.method.toUpperCase(),e.url);Object(h.a)(e.headers,function(a,e){c.setRequestHeader(a,e)});c.send(e.data?
JSON.stringify(e.data):y)}))["catch"](function(a){return{}})}}).call(this,d(21).Promise)},function(a,b,d){(function(a,d){var f=function(){if("undefined"!==typeof n)return n;if("undefined"!==typeof global)return global;if("undefined"!==typeof self)return self}(),h=function(){return Date.now()},g=function(c){return c?(c=this._getTime()-c,0>c&&a.warn("Invalid stamp: "+c),c):0},e=function(a,e){var c;(c=f.console).log.apply(c,a.concat([e+"ms"]))};b.a=function(a){void 0===a&&(a={});var c=a.getStamp||g,
b=a.printLog||e,d={start:function(){var a=this._getTime();this._initializedAt=this._initializedAt||a;this._startedAt=a;return d},stamp:function(){return this._getStamp(this._startedAt)},stampSinceCreated:function(){return this._getStamp(this._initializedAt)},reset:function(){return this.start()},log:function(){for(var a=arguments.length,c=Array(a),e=0;e<a;e++)c[e]=arguments[e];b(c,this.stamp());return this},logSinceCreated:function(){for(var a=arguments.length,c=Array(a),e=0;e<a;e++)c[e]=arguments[e];
b(c,this.stampSinceCreated());return this}};Object.defineProperties(d,{_getTime:{value:(a.getTime||h).bind(d)},_getStamp:{value:c.bind(d)}});return d}}).call(this,d(4)["default"],d(39))},function(a,b,d){(function(a,g){var f=d(6),h=d.n(f),m=d(20),e=new a,c={input:{capture:!0,passive:!0},change:{capture:!0},keyup:{capture:!0},paste:{capture:!0},cut:{capture:!0}};b.a={inputs:{},events:{},create:function(a){var b=this;this.checkInpudDescriptorOverrideAbility=this.checkInpudDescriptorOverrideAbility.bind(this);
this.handleInputValueChange=this.handleInputValueChange.bind(this);this.handleInputChangeValueEvent=this.handleInputChangeValueEvent.bind(this);this.handleNodeIndex=this.handleNodeIndex.bind(this);this.handleNodeRemoval=this.handleNodeRemoval.bind(this);this.recorder=a;this.checkInpudDescriptorOverrideAbility(a)&&(a.indexer.dom.forEach(function(a){b.handleNodeIndex(a)}),a.indexer.on("add",this.handleNodeIndex),a.indexer.on("remove",this.handleNodeRemoval));g.forin(c,function(d){e.add(a.attachEvent(a.document,
d,b.handleInputChangeValueEvent,c[d]))})},handleNodeIndex:function(a){if(m.a.isValidNode(a.nativeNode)&&"__ym_input_override_test"!==a.nativeNode.getAttribute("class")){var c=a.nativeNode,e=a.id,b="radio"===a.attributes.type||"checkbox"===a.attributes.type;a=this.getPropertyName(b);this.inputs[e]={checkable:b,value:c[a]};b=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(c),a)||{};var d=Object.getOwnPropertyDescriptor(c,a)||{},l=h()({},b,d);if(g.isNative(l.set,"((set)?(\\s?"+a+")?)?")){var f=
this;try{Object.defineProperty(c,a,h()({},l,{configurable:!0,set:function(a){var c=this;f.recorder.errorLogger(function(){f.handleInputValueChange(e,a,c)},"inpVC");return l.set.call(this,a)}}))}catch(A){delete this.inputs[e]}}}},handleInputChangeValueEvent:function(a){var c=this;this.recorder.errorLogger(function(){var e=a.target,b=c.recorder.indexer.getNodeId(e);if(c.inputs[b]){var d=c.getPropertyName(c.inputs[b].checkable);c.handleInputValueChange(b,e[d],e)}},"inpChV")},handleInputValueChange:function(a,
c,e){var b=this.inputs[a],d=b.checkable;if(c!==b.value){if(d)e=this.recorder._getEventObject("change",a,{checked:c});else{var l=m.a.validate(e,this.recorder.options);b=l.forceRecord;var h=l.isPrivate;l=l.isAllowed||b?c:m.a.encode(c);e=this.recorder._getEventObject("change",e,{value:l,hidden:h&&!b})}this.inputs[a]={checkable:d,value:c};this.recorder._publishActions(e)}},handleNodeRemoval:function(a){a.nativeNode&&"__ym_input_override_test"===a.nativeNode.getAttribute("class")||delete this.inputs[a.id]},
getPropertyName:function(a){return a?"checked":"value"},checkInpudDescriptorOverrideAbility:function(a){var c=!0,e=a.document.createElement("input");e.value="INPUT_VALUE";e.setAttribute("style","display: none !important;");e.setAttribute("type","text");e.setAttribute("class","__ym_input_override_test");a.document.documentElement.appendChild(e);try{var b=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value")||{},d=Object.getOwnPropertyDescriptor(e,"value")||{},l=h()({},b,d);Object.defineProperty(e,
"value",h()({},l,{configurable:!0,set:function(a){return l.set.call(e,a)}}));"INPUT_VALUE"!==e.value&&(c=!1);e.value="INPUT_TEST";"INPUT_TEST"!==e.value&&(c=!1)}catch(F){c=!1}a.document.documentElement.removeChild(e);return c},destroy:function(a){var c=this;Object.keys(this.inputs).forEach(function(e){var b=a.indexer.findByID(e);if(b){e=c.getPropertyName(c.inputs[e].checkable);var d=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(b),e);Object.defineProperty(b,e,d)}});Object.keys(this.events).forEach(function(e){a.removeEvent(c.events[e])});
a.indexer.off("add",this.handleNodeIndex);a.indexer.off("remove",this.handleNodeRemoval)}}}).call(this,d(8)["default"],d(7)["default"])},function(a,b,d){(function(a,g){var f=d(19),h={mousemove:{capture:!0,passive:!0,lazy:5},mousedown:{capture:!0},mouseup:{capture:!0},click:{capture:!0}},m=new a,e=function(a){var c=a.object;a=a.args[0];var e=c.type,b=c.target,d=c.pageX,l=c.pageY,h=c.clientX;h=void 0===h?null:h;c=c.clientY;c=void 0===c?null:c;b=this.document.elementFromPoint(void 0===d?null:d,void 0===
l?null:l)||b;a=this._getEventObject(e,b,{x:h,y:c},a);this._publishActions(a)},c=f.a.create(e,{timeout:0}),l=function(a){var b=this.stamp;"mousemove"===a.type?c.call(this,a,b):e.call(this,{object:a,args:[b]})};b.a={create:function(a){var c=a._universalHandler(l);g.forin(h,function(e){m.add(a.attachEvent(a.document,e,c,h[e]))})},destroy:function(a){g.forof(m,function(c){return a.removeEvent(c)});m.clear()}}}).call(this,d(8)["default"],d(7)["default"])},function(a,b,d){(function(a,d){var f={focus:{capture:!0},
blur:{capture:!0}},h=new a,g=function(a){a=this._getEventObject(a.type,a.target);this._publishActions(a)};b.a={create:function(a){var c=a._universalHandler(g);d.forin(f,function(e){h.add(a.attachEvent(a.document,e,c,f[e]))})},destroy:function(a){d.forof(h,function(c){return a.removeEvent(c)});h.clear()}}}).call(this,d(8)["default"],d(7)["default"])},function(a,b,d){(function(a){var d,f=function(b,d){var e=this,c=a.now();this._blockUpcomingCaptor("resize");this._executeCaptor("deviceRotation",function(){D(function(){var l=
a.now()-c;e._publishActions(d.getValue.call(e,b,l))},300)})};b.a={getValue:function(a,b){var e=this.viewport.getSize(1);e=this._getEventObject("deviceRotation",0,{width:e.width,height:e.height,orientation:this.viewport.orientation});e.stamp-=b;return e},create:function(a){d=a.attachEvent(a.window,"orientationchange",a._universalHandler(f,{extra:[this]}),{passive:!0})},destroy:function(a){a.removeEvent(d)}}}).call(this,d(7)["default"])},function(a,b,d){(function(a,g){var f=d(19),h,m=new a,e=function(a){var c=
a.args[0],e=this.viewport.scrollingElement;a=a.object.target;var b=this.document,d=this.window,l=g.getScroll(a);c=this._getEventObject("scroll",a,{x:Math.max(l.left,0),y:Math.max(l.top,0),page:a===e||a===d||a===b||a===b.body},c);this._publishActions(c)},c=function(a){var c=a.target;if(m.has(c))c=m.get(c);else{var b=f.a.create(e,{timeout:g.isAndroid()?0:100,immediateFirstRun:!0});m.set(c,b);c=b}c.call(this,a)};b.a={create:function(a){var e=a._universalHandler(c);h=a.attachEvent(a.document,"scroll",
e.bind(a),{capture:!0,passive:!0})},destroy:function(a){a.removeEvent(h);m.clear()}}}).call(this,d(11)["default"],d(7)["default"])},function(a,b,d){(function(a,d){var f={mousemove:{capture:!0,passive:!0,lazy:5},touchmove:{capture:!0,passive:!0,lazy:5},mousedown:{capture:!0},touchdown:{capture:!0}},h=new a,g=!1,e=function(a){var c="select"===a.type?this.selection.getSelectionFor(a.target):this.selection.getPageSelection();c&&c.start!==c.end&&-1!==["mousemove","touchmove","touchdown"].indexOf(a.type)?
(g=!0,a=this._getEventObject("selection","select"===a.type?a.target:this.rootNode,c),this._publishActions(a)):g&&-1!==["mousedown","touchmove","touchdown"].indexOf(a.type)&&(g=!1,a=this._getEventObject("selection",null,{start:0,end:0}),this._publishActions(a))};b.a={create:function(a){var c=a._universalHandler(function(c){("mousemove"===c.type&&1===c.which||-1!==["mousedown","touchmove","touchdown"].indexOf(c.type))&&e.call(a,c)});d.forin(f,function(e){h.add(a.attachEvent(a.document,e,c,f[e]))})},
destroy:function(a){d.forof(h,function(c){return a.removeEvent(c)})}}}).call(this,d(8)["default"],d(7)["default"])},function(a,b,d){(function(a,g,p){var h=d(19),f={touchmove:{capture:!0,passive:!0},touchstart:{capture:!0},touchend:{capture:!0},touchcancel:{capture:!0},touchforcechange:{capture:!0}},e=new a,c=new g,l=!1,u=function(a){var c=a.object;a=a.args[0];var e=c.type,b=p.map(c.changedTouches,function(a){return{id:a.__id,x:Math.round(a.clientX),y:Math.round(a.clientY),force:a.force}});c=this._getEventObject(e,
c.target,{touches:b},a);this._publishActions(c)},r=h.a.create(u,{timeout:p.isAndroid()?0:300}),k=function(a){var e=this.stamp,b="touchcancel"===a.type||"touchend"===a.type;a.changedTouches&&0<a.changedTouches.length&&p.forof(a.changedTouches,function(a){var e=void 0===b?!1:b;if(c.has(a.identifier))var d=c.get(a.identifier);else d=p.guid(),c.set(a.identifier,d);e&&c["delete"](a.identifier);a.__id=d});"touchmove"===a.type?l?u.call(this,{object:a,args:[e]}):r.call(this,a,e):u.call(this,{object:a,args:[e]})};
b.a={create:function(a){var c=a._universalHandler(k);p.forin(f,function(b){e.add(a.attachEvent(a.document,b,c,f[b]))});var b=null,d=a._universalHandler(function(){clearTimeout(b);l=!0;b=D(function(){return l=!1},150)});e.add(a.attachEvent(a.document,"scroll",d,{passive:!0,capture:!0}))},destroy:function(a){p.forof(e,function(c){return a.removeEvent(c)});e.clear()}}}).call(this,d(8)["default"],d(11)["default"],d(7)["default"])},function(a,b,d){(function(a,d){var f=new a,h=[],g=null,e=function(){var a=
this,e=this.stamp,b=this.viewport.zoomLevel;if(this.zoomLevel!==b){clearTimeout(g);var f=d.scrollingElement(),m=f.scrollLeft;f=f.scrollTop;this.zoomLevel=b;h.push([e,b,m,f]);g=D(function(){var c=h[0],e=h[h.length-1],b=e[0];c=a._getEventObject("zoom",0,{zoomFrom:{level:c[1],x:c[2],y:c[3]},zoomTo:{level:e[1],x:e[2],y:e[3]},duration:b-c[0]},b);h.length=0;a._publishActions(c)},100)}};b.a={create:function(a){a=a._universalHandler(e);this.captor=d.repeat(a)},destroy:function(){this.captor.stop();f.clear()}}}).call(this,
d(8)["default"],d(7)["default"])},function(a,b,d){(function(a,d){var f,h="undefined"!==typeof q.hidden?{hidden:"hidden",event:"visibilitychange"}:"undefined"!==typeof q.msHidden?{hidden:"msHidden",event:"msvisibilitychange"}:"undefined"!==typeof q.webkitHidden?{hidden:"webkitHidden",event:"webkitvisibilitychange"}:null,g=h?(f={},f[h.event]={capture:!0},f):{focus:{capture:!0},blur:{capture:!0}},e={focus:"windowfocus",blur:"windowblur"},c=new a,l=function(a){a=h?this._getEventObject(e[q[h.hidden]?"blur":
"focus"],this.window):this._getEventObject(e[a.type],this.window);this._publishActions(a)};b.a={create:function(a){var e=a._universalHandler(l);d.forin(g,function(b){c.add(a.attachEvent(a.window,b,e,g[b]))})},destroy:function(a){d.forof(c,function(c){return a.removeEvent(c)});c.clear()}}}).call(this,d(8)["default"],d(7)["default"])},function(a,b,d){(function(a){var f=d(13),p=d.n(f);f=d(5);var h=d.n(f);f=d(17);var m=d.n(f);f=d(1);var e=d.n(f);f=d(15);var c=d(53),l=d(32),u=d(10);f=function(b){function d(d,
f){var g=b.call(this)||this;e()(h()(g),"IGNORE_NODE_ATTRIBUTE","__ym_wv_ign");e()(h()(g),"eventsList",["mutation"]);g.indexer=f;g.originalHTML=g.indexer.html;g.target=d;g.watcher=new c.a(g.target);g.queue=new l.a;g._timer=a.timer();g.watcher.on("mutation",g.collectMutations.bind(h()(g)));return g}m()(d,b);var f=d.prototype;f.addChanges=function(c,e){for(var b=arguments.length,d=Array(2<b?b-2:0),l=2;l<b;l++)d[l-2]=arguments[l];if(null!=c[e]&&0<d.length){var f,h=c[e].length;a.fastIterate(d,function(a,
c){return c.i=h+a});c[e]=(f=c[e]).concat.apply(f,d)}};f.collectMutations=function(a){var c=this;this.queue.push(function(){var e=c.processMutations(a);e.hasData&&c.emit("mutation",e.store)})};f.destroy=function(){this.queue.start(!0);this.off();this.watcher.off();this.watcher.stop()};f.cleanChangesObject=function(c){a.forin(c,function(a){0===c[a].length&&delete c[a]});return c};f.initObserver=function(){this.initObserver=a.noop();this.watcher.start();this._timer.start()};f.processMutations=function(c){var e=
this,b=!1,d=[];a.fastIterate(c,function(a,c){if(c.target.parentNode&&!u.c.isIgnoredNode(c.target.parentNode)){var l=e.changesObject;!1!==function(){var a=c.type,b=c.target,d=e.indexer.getIndexedNodeId(b);if(null==d)return!1;b=[c,d,b,l];switch(a){case "childList":return e.processTreeChanges.apply(e,b);case "attributes":return e.processAttributesChanges.apply(e,b);case "characterData":return e.processContentChanges.apply(e,b)}}()&&(b=!0,d.push(e.cleanChangesObject(l)))}});return{store:d,hasData:b}};
f.combineMutations=function(c,e){return a.reduce(Object.keys(e),function(a,c){var b;null==a[c]&&(a[c]=[]);a[c]=(b=a[c]).concat.apply(b,e[c]);return a},c)};f.processTreeChanges=function(c,e,b,d){var l=this,f=c.nextSibling,h=c.previousSibling;b=c.meta;c=b.addedNodes;b=b.removedNodes;b=void 0===b?[]:b;var g=[],m=[];a.fastIterate(void 0===c?[]:c,function(c,b){l.indexer.reindexNodeTree(b,{parentID:e,callback:function(c,e){if(c){var d=a.combine({id:c.id,pa:c.parent,nm:c.name},e===b&&{pr:l.getIDForNode(h),
nx:l.getIDForNode(f)});c.content&&(d.ct=c.content);c.namespace&&(d.ns=c.namespace);d.at=u.c.getAttributes(c.nativeNode);g.push(d)}}})});a.fastIterate(b,function(a,c){var b={id:l.indexer.removeNodeTree(c),pa:e,pr:l.getIDForNode(h),nx:l.getIDForNode(f)};b.id&&m.push(b)});if(0===g.length&&0===m.length)return!1;this.addChanges.apply(this,[d,"a"].concat(m));this.addChanges.apply(this,[d,"b"].concat(g))};f.processAttributesChanges=function(a,c,e,b){var d,l=a.meta;a=l.name;e=l.oldValue;l=l.newValue;this.addChanges(b,
"c",{id:c,at:(d={},d[a]={n:l,o:e},d)})};f.processContentChanges=function(a,c,e,b){this.addChanges(b,"d",{id:c,ct:{n:a.meta.newValue,o:a.meta.oldValue}})};f.getIDForNode=function(a){if(a){var c=this.indexer.getNodeId(a);if(null!=c)return c;this.indexer.reindexNodeTree(a);return this.indexer.getNodeId(a)}};p()(d,[{key:"changesObject",get:function(){return{a:[],b:[],c:[],d:[]}}},{key:"html",get:function(){return this.originalHTML}}]);return d}(f.a);b.a=f}).call(this,d(7)["default"])},function(a,b,d){(function(a,
g,p){var f=d(5),m=d.n(f);f=d(17);var e=d.n(f);f=d(1);var c=d.n(f),l=d(10);f=function(b){function d(a){var e=b.call(this)||this;c()(m()(e),"eventsList",["mutation"]);e.paused=!0;e.element=a;e.document=a.ownerDocument;e.observer=null;e.initMutationObserver();return e}e()(d,b);var f=d.prototype;f.start=function(){this.observer&&this.observer.observe(this.element,{childList:!0,attributes:!0,characterData:!0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0})};f.stop=function(){this.observer.disconnect()};
f.initMutationObserver=function(){var c=this,e=this.document.defaultView.MutationObserver;e?this.observer=new e(function(){try{for(var a=arguments.length,e=Array(a),b=0;b<a;b++)e[b]=arguments[b];c.processMutations.apply(c,e)}catch(Qa){}}):a.warn("Can't access MutationObserver of a window",n)};f.processMutations=function(a){var c=this;a=g.toArray(a);var e={added:new p,removed:new p};a=g.reduceRight(a,function(a,b){var d=b.type,l=b.target,f=c.collectSummary(d,l,e,b);null!=f&&a.unshift({target:l,type:d,
meta:f,nextSibling:b.nextSibling,previousSibling:b.previousSibling});return a},[]);0<a.length&&this.emit("mutation",a);e.added.clear();e.removed.clear()};f.collectSummary=function(a,c,e,b){switch(a){case "childList":c=g.reduce(b.addedNodes,function(a,c){!1===e.added.has(c)&&(a.push(c),l.c.walk(c,function(a){return e.added.add(a)}));return a},[]);b=g.reduce(b.removedNodes,function(a,c){!1===e.removed.has(c)&&(a.push(c),l.c.walk(c,function(a){return e.removed.add(a)}));return a},[]);if(0<c.length||
0<b.length)return{addedNodes:c,removedNodes:b};break;case "attributes":a=b.attributeName;b=b.oldValue;var d=c.getAttribute(a);if(b!==d)return{name:a,oldValue:l.c.normalizeAttributeValue(c,a,b),newValue:l.c.normalizeAttributeValue(c,a,d)};break;case "characterData":if(b=b.oldValue,c=c.textContent,c!==b)return{oldValue:b,newValue:c}}};return d}(d(15).a);b.a=f}).call(this,d(4)["default"],d(7)["default"],d(8)["default"])},function(a,b,d){(function(a){var f=d(17),p=d.n(f);f=function(b){function d(c){void 0===
c&&(c=[]);var e=b.call(this)||this;a.fastIterate(c,function(a,c){e.use(c)});return e}p()(d,b);var e=d.prototype;e.main=function(a,e){"function"===typeof e&&e()};e.send=function(a){this.run(a,this.main.bind(this))};return d}(d(34).a);b.a=f}).call(this,d(7)["default"])},function(a,b,d){a=d(1);var f=d.n(a),g=d(3);d=function(){function a(a){var e=this;f()(this,"_options",{checkOnLoad:!1,resetOnEnd:!1,loopCheckTime:50,loopMaxNumber:5,baitClass:"adsbygoogle yap-reset ya_partner",baitStyle:"width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;",
debug:!1});f()(this,"_var",{version:"3.2.1",bait:null,checking:!1,loop:null,loopNumber:0,event:{detected:[],notDetected:[]}});a!==y&&this.setOption(a);a=function(){D(function(){!0===e._options.checkOnLoad&&(!0===e._options.debug&&e._log("onload-\x3eeventCallback","A check loading is launched"),null===e._var.bait&&e._creatBait(),D(function(){e.check()},1))},1)};g.a.addEventListener!==y?g.a.addEventListener("load",a,!1):g.a.attachEvent("onload",a)}var b=a.prototype;b._log=function(){};b.setOption=function(a,
e){if(e!==y){var c=a;a={};a[c]=e}for(var b in a)this._options[b]=a[b],!0===this._options.debug&&this._log("setOption",'The option "'+b+'" he was assigned to "'+a[b]+'"');return this};b._creatBait=function(){var a=q.createElement("div");a.setAttribute("class",this._options.baitClass);a.setAttribute("style",this._options.baitStyle);this._var.bait=g.a.document.body.appendChild(a);this._var.bait=g.a.document.body.appendChild(a);this._var.bait.offsetParent;this._var.bait.offsetHeight;this._var.bait.offsetLeft;
this._var.bait.offsetTop;this._var.bait.offsetWidth;this._var.bait.clientHeight;this._var.bait.clientWidth;!0===this._options.debug&&this._log("_creatBait","Bait has been created")};b._destroyBait=function(){g.a.document.body.removeChild(this._var.bait);this._var.bait=null;!0===this._options.debug&&this._log("_destroyBait","Bait has been removed")};b.check=function(a){var e=this;a===y&&(a=!0);!0===this._options.debug&&this._log("check","An audit was requested "+(!0===a?"with a":"without")+" loop");
if(!0===this._var.checking)return!0===this._options.debug&&this._log("check","A check was canceled because there is already an ongoing"),!1;this._var.checking=!0;null===this._var.bait&&this._creatBait();this._var.loopNumber=0;!0===a&&(this._var.loop=setInterval(function(){e._checkBait(a)},this._options.loopCheckTime));D(function(){e._checkBait(a)},1);!0===this._options.debug&&this._log("check","A check is in progress ...");return!0};b.checkSync=function(){return this._checkBait()};b._checkBait=function(a){var e=
!1;if(!g.a.document.body)return!1;null===this._var.bait&&this._creatBait();if(null!==g.a.document.body.getAttribute("abp")||null===this._var.bait.offsetParent||0===parseInt(this._var.bait.offsetHeight,10)||0===parseInt(this._var.bait.offsetLeft,10)||0===parseInt(this._var.bait.offsetTop,10)||0===parseInt(this._var.bait.offsetWidth,10)||0===parseInt(this._var.bait.clientHeight,10)||0===parseInt(this._var.bait.clientWidth,10))e=!0;if(g.a.getComputedStyle!==y){var c=g.a.getComputedStyle(this._var.bait,
null);!c||"none"!==c.getPropertyValue("display")&&"hidden"!==c.getPropertyValue("visibility")||(e=!0)}!0===this._options.debug&&this._log("_checkBait","A check ("+(this._var.loopNumber+1)+"/"+this._options.loopMaxNumber+" ~"+(1+this._var.loopNumber*this._options.loopCheckTime)+"ms) was conducted and detection is "+(!0===e?"positive":"negative"));!0===a&&(this._var.loopNumber++,this._var.loopNumber>=this._options.loopMaxNumber&&this._stopLoop());if(!0===e)this._stopLoop(),this._destroyBait(),this.emitEvent(!0),
!0===a&&(this._var.checking=!1);else if(null===this._var.loop||!1===a)this._destroyBait(),this.emitEvent(!1),!0===a&&(this._var.checking=!1);return e};b._stopLoop=function(){clearInterval(this._var.loop);this._var.loop=null;this._var.loopNumber=0;!0===this._options.debug&&this._log("_stopLoop","A loop has been stopped")};b.emitEvent=function(a){!0===this._options.debug&&this._log("emitEvent","An event with a "+(!0===a?"positive":"negative")+" detection was called");a=this._var.event[!0===a?"detected":
"notDetected"];for(var e in a)if(!0===this._options.debug&&this._log("emitEvent","Call function "+(parseInt(e,10)+1)+"/"+a.length),a.hasOwnProperty(e))a[e]();!0===this._options.resetOnEnd&&this.clearEvent();return this};b.clearEvent=function(){this._var.event.detected=[];this._var.event.notDetected=[];!0===this._options.debug&&this._log("clearEvent","The event list has been cleared")};b.on=function(a,e){this._var.event[!0===a?"detected":"notDetected"].push(e);!0===this._options.debug&&this._log("on",
'A type of event "'+(!0===a?"detected":"notDetected")+'" was added');return this};b.onDetected=function(a){return this.on(!0,a)};b.onNotDetected=function(a){return this.on(!1,a)};return a}();b.a=d},function(a,b,d){a=function(){function a(a,b){void 0===a&&(a="body");void 0===b&&(b={});this.root="string"===typeof a?q.querySelector(a):a;this.ctx=b;var d=-1!==navigator.appVersion.indexOf("Mac")?"macos":"other";this.OS=d;this.modifierCodes={91:"super",93:"super",224:"super",18:"alt",17:"ctrl",16:"shift",
9:"tab",8:"backspace",46:"delete"};this.keyOrder={"super":1,ctrl:2,alt:3,shift:4,tab:5,"delete":6,backspace:6};this.singleKeys=[4,9,8,32,37,38,39,40,46];this.keyDict={macos:{91:"\x26#8984;",93:"\x26#8984;",224:"\x26#8984;",18:"\x26#8997;",17:"\x26#8963;",16:"\x26#8679;",9:"\x26#8677;",8:"\x26#9003;",46:"\x26#9003;"},other:{91:"\x26#xff;",93:"\x26#xff;",224:"\x26#xff;",18:"Alt",17:"Ctrl",16:"Shift",9:"Tab",8:"Backspace",46:"Delete"},multi:{32:"SPACEBAR",37:"\x26larr;",38:"\x26uarr;",39:"\x26rarr;",
40:"\x26darr;",13:"Enter"}};this.initialModifier=null;this.modifierPressed=0;this.events=[];this.modifiers={};this.captors=[];this.filters=[];this.keyStroke=[];this.holding=[];this.initHandler()}var b=a.prototype;b.onCapture=function(a){"function"===typeof a&&0>this.captors.indexOf(a)&&this.captors.push(a)};b.addElementFilter=function(a){"function"===typeof a&&0>this.captors.indexOf(a)&&this.filters.push(a)};b.applyFilters=function(a){var b=this;return this.filters.reduce(function(d,e){return!0===
d?d&&e.call(b,a):!1},!0)};b.initHandler=function(){this.attachEvent("keydown",this.keydownHandler);this.attachEvent("keyup",this.keyupHandler)};b.getKeystroke=function(a){var b=this,d=this.keyOrder;return a.map(function(a){var c=a.keyCode,e=b.modifierCodes[a.keyCode],d=b.getKeySymbol(a);return{id:c,key:b.getKeySymbol(a),isMeta:!!e&&/^&#/.test(d),modifier:e}}).sort(function(a,c){return(d[a.modifier]||100)-(d[c.modifier]||100)})};b.getKeySymbol=function(a){return this.keyDict[this.OS][a.keyCode]||this.keyDict.multi[a.keyCode]||
String.fromCharCode(a.keyCode)};b.startCapture=function(a){this.initialModifier=a;this.pushKey(a);this.cancelCapture()};b.sendKeys=function(a,b){var d=this;void 0===b&&(b=!1);if(1<a.length||b){var e=this.getKeystroke(a);this.captors.forEach(function(a){return a.call(d,e,b)})}};b.endCapture=function(){var a=this;this._keyStroke=this.keyStroke.slice(0);clearTimeout(this._endCapture);this._endCapture=D(function(){a.sendKeys(a._keyStroke)})};b.pushKey=function(a){!1===this.isCaptured(a)&&this.keyStroke.push(a)};
b.removeKey=function(a){this.keyStroke=this.keyStroke.reduce(function(b,d){d.keyCode!==a.keyCode&&b.push(d);return b},[])};b.cancelCapture=function(){this.isModifierPressed()?D(this.cancelCapture.bind(this),100):this.keyStroke.length=0};b.reset=function(){var a=this;this._reset=D(function(){a.resetImmediate()},300)};b.resetImmediate=function(){this.modifierPressed=0;this.keyStroke.length=0;this.holding.length=0;clearTimeout(this._endCapture)};b.cancelReset=function(){clearTimeout(this._reset)};b.keydownHandler=
function(a){this.applyFilters(a.target)&&!1===this.isInputWithShift(a)&&!a.repeat&&0>this.held(a.keyCode)&&(this.holding.push(a.keyCode),this.isModifier(a.keyCode)&&!this.isModifierPressed()?(this.modifierPressed+=1,this.startCapture(a),this.reset()):this.isModifierPressed()?(this.cancelReset(),this.pushKey(a),this.endCapture()):(this.resetImmediate(),this.pushKey(a)))};b.keyupHandler=function(a){if(this.applyFilters(a.target)){var b=this.isModifier(a.keyCode),d=this.held(a.keyCode);0<=d&&this.holding.splice(d,
1);b&&this.isModifierPressed()&&(this.modifierPressed=0,this.holding.length=0);1===this.keyStroke.length&&(b=this.keyStroke[0],0<=this.singleKeys.indexOf(b.keyCode)&&(this.sendKeys([b],!0),this.resetImmediate()));this.removeKey(a);clearTimeout(this._endCapture)}};b.attachEvent=function(a,b){var d=this;if("function"===typeof b){var e=this.ctx.attachEvent(this.ctx.document,a,function(a){(d.root&&d.root.contains(a.target)||a.target===d.root)&&d.ctx.errorLogger(function(){b.call(d,a)})},!0);this.events.push(function(){d.ctx.removeEvent(e)})}};
b.held=function(a){return this.holding.indexOf(a)};b.isModifier=function(a){return null!=this.modifierCodes[a]};b.isModifierPressed=function(){return 0<this.modifierPressed};b.isInitialModifier=function(a){return this.initialModifier?this.initialModifier.keyCode===a.keyCode:!1};b.isCaptured=function(a){return null!=this.keyStroke.reduce(function(b,d){null==b&&d.keyCode===a.keyCode&&(b=d);return b},null)};b.isInputWithShift=function(a){return"INPUT"===a.target.nodeName?a.shiftKey||32===a.keyCode||
"shift"===this.modifierCodes[a.keyCode]:!1};b.destroy=function(){var a;for(this.resetImmediate();a=this.events.pop();)a();this.filters.length=0};return a}();b.a=a},function(a,b,d){(function(a){var f=d(1),p=d.n(f),h=d(15),m=d(31),e=d(2),c=d(16),l=d(0);f="HTMLMediaElement"in n;var u={},r=l.IterableUtils.toList(["addEventListener","removeEventListener"]),k=function(){function b(){p()(this,"originalDescriptors",new a);p()(this,"mocked",!1);p()(this,"events",new h.a(["setter","method"]));e.ObjectUtils.assign(u,
c.Tools.apiMock(HTMLMediaElement))}var d=b.prototype;d.descriptor=function(a,c){return Object.getOwnPropertyDescriptor(a,c)};d.mock=function(){var a=this,c=HTMLMediaElement.prototype,b=this;l.IterableUtils.forof(u.properties,function(d){if(r.has(d))return!0;var l=a.descriptor(c,d);if(l){a.originalDescriptors.set(d,l);var f=e.ObjectUtils.combine(l);l.get&&(f.get=function(){return l.get.call(this)});l.set&&(f.set=function(a){b.setterInvoked(this,d,a);return l.set.call(this,a)});Object.defineProperty(c,
d,f)}});l.IterableUtils.forof(u.methods,function(e){if(r.has(e))return!0;var d=a.descriptor(c,e);a.originalDescriptors.set(e,d);Object.defineProperty(c,e,{configurable:!0,value:function(){for(var a,c=arguments.length,l=Array(c),f=0;f<c;f++)l[f]=arguments[f];b.methodInvoked(this,e,l);return(a=d.value).call.apply(a,[this].concat(l))}})});this.mocked=!0};d.remove=function(){this.events.off();var a=HTMLMediaElement.prototype;l.IterableUtils.forof(this.originalDescriptors,function(c,e){delete a[e];Object.defineProperty(a,
e,c)});this.mocked=!1};d.setterInvoked=function(a,c,e){var b=this;this.mocked&&D(function(){b.send(a,"setter",{name:c,value:e})})};d.methodInvoked=function(a,c,e){var b=this;this.mocked&&D(function(){e=e.map(function(a){return a instanceof Image?Object(m.b)(a):a});b.send(a,"method",{name:c,args:e})})};d.send=function(a,c,b){this.events.emit(c,e.ObjectUtils.combine(b,{media:a}))};return b}();p()(k,"supported",f);b.a=k}).call(this,d(11)["default"])},function(a,b,d){(function(a){d.d(b,"a",function(){return f});
var f=function(b,d){void 0===d&&(d="body");return new a(function(a){null==b.querySelector(d)||q.hidden||q.msHidden||q.webkitHidden?function c(){null==b.querySelector(d)||q.hidden||q.msHidden||q.webkitHidden?D(c,100):a()}():a()})}}).call(this,d(21).Promise)},function(a,b,d){(function(a,g){var f=d(13),h=d.n(f);f=d(5);var m=d.n(f);f=d(17);var e=d.n(f);f=d(1);var c=d.n(f),l=d(10);f=d(15);var u=d(34),r=d(0),k=d(2),x=d(22),n=d(16),F=d(4),A="attributes namespace content parent next prev".split(" ");f=function(b){function d(e,
d){var f=(void 0===d?{}:d).disabled;var l=void 0===f?!1:f;f=b.call(this)||this;c()(m()(f),"eventsList",["initialIndex:once:memory","add","remove","node"]);f.disabled=l;f.nextID=0;f.closed=!1;f.dom=new a;f.index=new a;f.initialDOM=new g;f.middleware=new u.b;f.document=e;f.quickAccess={};return f}e()(d,b);var f=d.prototype;f.initialIndex=function(){this.fastIndex(this.document.documentElement)};f.use=function(a){this.middleware.use(a)};f.initDOMCache=function(){this.domCache=new a(this.index)};f.writeCache=
function(a,c,e){this.domCache&&this.domCache.set(a,{node:c,data:e})};f.findCache=function(a){if(this.domCache)return this.domCache.get(a)};f.addQuckAccessItem=function(a,c){null==this.quickAccess[a]&&null==this[a]&&(this.quickAccess[a]=c,Object.defineProperty(this,a,{get:function(){return this.quickAccess[a]}}))};f.addToIndex=function(a,c,e){void 0===e&&(e=null);if(a=this.middleware.run(a)){this.emit("node",a);var b=a._DOMIndexerInfo;if(!1===this.dom.has(a)||null==b)e=this.generateNodeID(e),b={id:e,
name:a.tagName||a.nodeName,parent:c,nativeNode:a,namespace:l.c.getNamespace(a),attributes:l.c.getAttributes(a),content:l.c.getContent(a)},this.domCache&&this.writeCache(e,a,b),this.dom.set(a,b),this.index.set(e,a),a._DOMIndexerID=e,a._DOMIndexerInfo=b;this.emit("add",b);return b}F["default"].warn("Can't index undefined node")};f.clear=function(a){void 0===a&&(a=!0);r.IterableUtils.forof(r.IterableUtils.keys(this.dom),function(a){r.IterableUtils.forof(["_DOMIndexerID","_DOMIndexerInfo"],function(c){a[c]=
null;delete a[c]})});a&&(this.document=null);this.dom.clear();this.index.clear()};f.dump=function(){return{dom:new a(this.dom),index:new a(this.index)}};f.dumpRestore=function(a){k.ObjectUtils.assign(this,a);this.document.body.innerHTML=""};f.findByID=function(a){return this.find(a)};f.findByNode=function(a){return this.get(a)};f.find=function(a){if(null!=a){var c=this.index.get(a);return null==c&&this.domCache?(a=this.findCache(a))&&a.node:c}};f.findInfo=function(a){return this.dom.get(this.find(a))};
f.generateNodeID=function(a){return null!=a?a:this.nextID++};f.get=function(a){return this.dom.get(a)};f.getNodeId=function(a){return(a=this.get(a))&&a.id};f.getIndexedNodeId=function(a){var c=this.getNodeId(a);return null==c?(this.reindexNodeTree(a),this.getNodeId(a)):c};f.getNodesIds=function(a){var c=this;return r.IterableUtils.toArray(a).map(function(a){return{id:c.getNodeId(a),nodes:c.getNodesIds(a.childNodes)}})};f.reindexNodeTree=function(a,c){var e=this,b=void 0===c?{}:c,d=b.returnAll;d=void 0===
d?!1:d;var f=b.callback,h=void 0===f?null:f;b=b.parentID;var g=void 0===b?null:b;if(a){var m=[];if(a.parentNode||g)h=x.FunctionUtils.toFunction(h),l.c.each(a,function(a,c){g=c.parentNode&&e.getNodeId(c.parentNode)||g;if(null!=g){var b=e.addToIndex(c,g);m.push(b);h(b,c)}});return d?m:a._DOMIndexerID}};f.removeFromIndex=function(a){var c=this.getNodeId(a);this.dom["delete"](a);this.index["delete"](c);r.IterableUtils.toArray(a.childNodes).map(this.removeFromIndex.bind(this));this.emit("remove",a);return c};
f.replaceBody=function(a){this.removeNodeTree(this.BODY.id);var c=this.BODY.nativeNode;delete c._DOMIndexerInfo;delete c._DOMIndexerID;this.addToIndex(c,this.HTML.id,a)};f.removeNodeTree=function(a,c){var e=this;void 0===c&&(c=!1);if(a){var b=[],d=a._DOMIndexerID;l.c.each(a,function(a,c){var d=c._DOMIndexerID;e.dom["delete"](c);e.index["delete"](d);e.emit("remove",c);b.push(d)});return c?b:d}};f.fastIndex=function(a){if(!this.disabled){var c=this.addToIndex.bind(this),e=this.initialDOM.add.bind(this.initialDOM);
l.c.each(a,function(a,b){var d=c(b,b.parentNode&&b.parentNode._DOMIndexerID);e(k.ObjectUtils.copyObject(d))});this.initialDOM.forEach(function(a){var c=a.nativeNode,e=c.previousSibling;c=c.nextSibling;e&&e._DOMIndexerID&&(a.prev=e._DOMIndexerID);c&&c._DOMIndexerID&&(a.next=c._DOMIndexerID)})}};f.isIndexed=function(a){return this.dom.has(a)};f.showMissingNodes=function(a){var c=this;void 0===a&&(a=!1);a&&n.Tools.measure("Show missing nodes",function(){var a=l.c.all(c.document.documentElement);r.IterableUtils.fastIterate(a,
function(a,e){!1===c.dom.has(e)&&F["default"].log("Missing node",e)});F["default"].log("Index diff: [DOM: "+a.length+"] [INDEX: "+c.dom.size+"] [DIFF: "+(c.dom.size-a.length)+"]")})};f.getCurrentHtml=function(){var a=r.IterableUtils.map(this.dom,function(a){return a[1]});return d.simplify(a)};f.getDocument=function(){return this.document};f.setDocument=function(a){this.document=a};h()(d,[{key:"HTML",get:function(){return this.document.documentElement._DOMIndexerInfo}},{key:"BODY",get:function(){return this.document.body._DOMIndexerInfo}},
{key:"html",get:function(){return d.simplify(this.initialDOM)}}]);return d}(f.a);c()(f,"simplify",function(a){return r.IterableUtils.map(a,function(a){var c={id:a.id,name:a.name.toLowerCase()};r.IterableUtils.forof(A,function(e){null!=a[e]&&(c[e]=a[e])});return c})});c()(f,"toNodesTree",function(a){var c={};a=r.IterableUtils.toArray(a);r.IterableUtils.forof(a,function(a){if(null==c[a.id]){var e=k.ObjectUtils.combine(a);c[a.id]=e;null!=a.parent&&(a=c[a.parent])&&(a.children=a.children||[],a.children.push(e))}});
return c[0]});b.a=f}).call(this,d(11)["default"],d(8)["default"])},function(a,b,d){(function(a){var f=d(6),p=d.n(f);f=d(13);var h=d.n(f);f=d(1);var m=d.n(f),e=d(4);f=function(){function c(c){void 0===c&&(c=n);m()(this,"_cancelMainHandler",null);m()(this,"subscriptions",{});this.window=a.isIframe(c)?c.parent:c;c.Ya||(c.Ya={});c.Ya._metrika||(c.Ya._metrika={});if(c.Ya._metrika._m)return c.Ya._metrika._m;this.targetWindow=c;c.Ya._metrika._m=this;c=this.targetWindow.Ya._metrika;var e=this.targetWindow.Ya._metrika.fi||
"";e=/^ym-/.test(e)?e:"ym-"+a.guid();c.fi=e;this.identifier=this.targetWindow.Ya._metrika.fi;this._handleMessages();return this}var b=c.prototype;b.send=function(a,c){var b=this,d=void 0===c?{}:c,f=d.data,l=d.onResponse,h=d.onTimeout,g=d.receiver,m=d.awaitResponse,p=null,u=!1,r=!1,k,n=[],q=Date.now();"function"===typeof l&&(u=!0,p=a+"."+this.timestamp,this.listenOnce(function(a){a=a.data;var c=a._ym_cancel_response,d=a.data;if(a.type===p)c?e["default"].warn("Seems like you forgot to call `answer` in a message handler. This message requires response."):
(r=!0,l(d,{location:b.targetWindow.location.href,identifier:b.identifier}),clearTimeout(k));else return!1},this.targetWindow));p&&n.push("response:"+p);(function ma(){b._sendMessage({data:f,type:a,target:b._getReceiver(g),flags:n});if(m&&u){var c=3E4<=Date.now()-q;!1===r&&(c?"function"===typeof h&&h():k=D(ma,100))}})()};b.subscribe=function(a,c){var e=this._createSubscriptionsGroup(a);if(!1===this._isSubscribed(e,c))e.push(c);else throw Error("This callback has already been subscribed to "+a);};b.unsubscribe=
function(c,e){var b=this._getSubcribers(c);!0===this._isSubscribed(b,e)&&a.removeFromArray(b,e)};b.unsubscribeAll=function(a){(a=this._getSubcribers(a))&&a.splice(0)};b.listen=function(a){var c=this;this._attachEvent("message",a);return function(){return c._removeEvent("message",a)}};b.listenOnce=function(a,c){var e=this;c=c||this.window;var b=function(c){!1!==a(c)&&d()},d=function(){e._removeEvent("message",b,c)};this._attachEvent("message",b,c);return d};b._attachEvent=function(a,c,e){var b=this;
(e||this.window).addEventListener(a,c);return function(){return b._removeEvent(a,c)}};b._createSubscriptionsGroup=function(a){return this._getSubcribers(a)||(this.subscriptions[a]=[])};b._isSubscribed=function(a,c){return a&&c&&0<=a.indexOf(c)};b._removeEvent=function(a,c,e){(e||this.window).removeEventListener(a,c)};b._getSubcribers=function(a){return this.subscriptions[a]||null};b._sendMessage=function(a){var c=void 0===a?{}:a;a=c.target;var e=c.flags;e=void 0===e?[]:e;c={_ym_messenger:!0,_ym_identifier:this.identifier,
type:c.type,data:c.data};if(e&&0<e.length)for(var b=0,d=e.length;b<d;b++){var f=e[b].split(":");c["_ym_"+f[0]]=f[1]||!0}this._postMessage(c,a)};b._postMessage=function(a,c){(c||this.window).postMessage(a,"*")};b._getReceiver=function(a){if(null!=a){if(a.postMessage)return a;if(a.contentWindow)return a.contentWindow}};b._handleMessages=function(){var a=this;if(null==this._cancelMainHandler){var c=this._attachEvent("message",function(c){var b=c.data||{},d=b._ym_response,f=b._ym_identifier,l=b.data,
h=b.type;if(!0===b._ym_messenger&&h&&!/\.([0-9]+)$/.test(h)){b=a._getSubcribers(h);var g=a._findIframe(c.source);if(null===g)e["default"].warn("Cannot find iframe with id "+f);else{var m={id:f,sender:g,data:l,type:h};c=0;for(f=b.length;c<f;c++){var u=b[c];d?function(){var c={type:d,target:g.contentWindow},b=2===u.length,f=null,l=function(e){clearTimeout(f);e=b?p()({},c,{data:e}):p()({},c,{flags:["cancel_response"]});a._sendMessage(e)};b?(f=D(function(){e["default"].warn("Response has been canceled because `answer` was never called");
b=!1;l()},2E3),u(m,l)):(u(m),l())}():u(m)}}}},this.targetWindow);this._cancelMainHandler=function(){c();a._cancelMainHandler=null}}};b._findIframe=function(c){var b=[].slice.call(q.querySelectorAll("iframe"));return a.find(b,function(a){return a.contentWindow===c})||null};h()(c,[{key:"timestamp",get:function(){return a.now()}}]);return c}();b.a=f}).call(this,d(7)["default"])},function(a,b,d){(function(a){var f=d(6),p=d.n(f),h=d(4);f=function(){function b(a,b,e){void 0===a&&(a=n);void 0===b&&(b=q);
Object.defineProperty(this,"_indexer",{value:e});this.window=a;this.document=b;this.indexer=this._indexer;this.selection=this.window.getSelection()}var e=b.prototype;e.getPageSelection=function(){var a=this.getSelection();if(a){var b=this.indexer.getNodeId(a.startNode),e=this.indexer.getNodeId(a.endNode);this.restoreIndexer();return p()({},a,{startNode:b,endNode:e})}};e.restorePageSelection=function(c){if(c){var b=this.indexer.find(c.startNode),e=this.indexer.find(c.endNode);this.restoreIndexer();
a.isDOMNode(b)&&a.isDOMNode(e)&&this.restoreSelection(p()({},c,{startNode:b,endNode:e}))}};e.getSelection=function(){if(0<this.selection.rangeCount){var a=this.selection.getRangeAt(0)||this.document.createRange();return{start:a.startOffset,end:a.endOffset,startNode:a.startContainer,endNode:a.endContainer}}};e.restoreSelection=function(a){var c=a.start,b=a.end,e=a.startNode;a=a.endNode;try{var d=e.ownerDocument,f=d.defaultView.getSelection(),g=d.createRange();g.setStart(e,c);g.setEnd(a,b);f.removeAllRanges();
f.addRange(g)}catch(F){h["default"].log({start:{startNode:e,start:c},end:{endNode:a,end:b}},F)}};e.getSelectionFor=function(a){if(/text|search|password|tel|url/.test(a.type))return{start:a.selectionStart,end:a.selectionEnd}};e.restoreSelectionFor=function(a,b){b&&null!=b.start&&null!=b.end&&/text|search|password|tel|url/.test(a.type)&&(a.selectionStart=b.start,a.selectionEnd=b.end)};e.clear=function(){var a=this.document.createRange();a.setStart(this.document.body,0);a.setEnd(this.document.body,0);
this.selection.removeAllRanges();this.selection.addRange(a)};e.setIndexer=function(a){a!==this.indexer&&(this.indexer=a)};e.restoreIndexer=function(){this.indexer=this._indexer};return b}();b.a=f}).call(this,d(7)["default"])},function(a,b,d){(function(a){var f=d(3),p=d(4),h={doNotTrack:function(){return!0!==navigator.doNotTrack},localStorage:function(){try{return f.a.localStorage.setItem("test","value"),f.a.localStorage.removeItem("test"),!0}catch(m){return!1}},defineProperty:function(){try{return Object.defineProperty({},
"test",{value:123}),!0}catch(m){return!1}}};b.a=function(){a.forin(h,function(a){if(!h[a]())return p["default"].log("Feature not supported: "+a),!1});return!0}()}).call(this,d(7)["default"])},function(a,b,d){(function(a){var f=d(33),p=d.n(f);f=d(11);var h=d(0),m=d(28),e=d(2),c={items:{extnameFinder:/\.(css|png|gif|svg|jp[e]?g|mp4|ogv|webm|webp|mp3|ico|woff|ttf|eot)/gi,urlPartsFinder:/([?./]*)/gi,anchorFinder:/^(?!#).*([#]+)/g,cssURLFinder:/url\(['"]?((?!#|data|blob))([^()'"]+)['"]?\)/g,URLImportFinder:/@import ['"]((?!#|data|blob)([^()'"]+))['"]/g,
protocolMissing:/^(?!http[s]?).*/,dataurlTest:/^(data|blob):/,selectorTest:/^#(.*)/,protocolIncomplete:/^(http[s]?)?(:?\/\/)/,resourceFinder:/{{RESOURCE_URL}}/,proxiedURL:/proxy([^?]*)\?url=/i,relativePath:/^(?!\\)/},get:function(a){return this.items[a]},reset:function(a){this.items[a].lastIndex=0},test:function(a,c){var b=this.get(a);this.reset(a);return b.test(c)},resetMultiple:function(){for(var a,c=this,b=arguments.length,e=Array(b),d=0;d<b;d++)e[d]=arguments[d];e=(a=[]).concat.apply(a,e);h.IterableUtils.fastIterate(e,
function(a,b){return c.reset(b)})},resetAll:function(){this.resetMultiple(h.IterableUtils.keys(this.items))}},l={location:null,proxy:null,base:null,window:"object"===typeof n&&n||null,document:"object"===typeof q&&q||null},u=new f["default"],r=new f["default"],k=function(a){return"string"===typeof a?URL.parse?URL.parse(a):new URL(a):a},x=function(a){return r.get(a)||a},R=function(){var a=k(function(){if(l.base)return l.base;if(l.document){var a=l.document.querySelector("base[href]");return a?a.href:
l.location}return l.location}());return l.location={host:a.host,protocol:a.protocol,path:(a.pathname||a.path||"").replace(/[^/]*$/,"")}},F=[];f=Object.defineProperties({regexp:c,patchCSS:function(a,b){var e=this,d=(void 0===b?{}:b).location,f=void 0===d?null:d,l={cssURLFinder:function(a){return"url('"+a+"')"},URLImportFinder:function(a){return'@import "'+a+'"'}};["cssURLFinder","URLImportFinder"].forEach(function(a){return c.reset(a)});return["cssURLFinder","URLImportFinder"].reduce(function(a,b){return e.patchURLS(a,
c.get(b),f,l[b])},a)},patchURLS:function(a,c,b,e){var d=this,f=a,l=function(a){return"function"===typeof a?a:function(a){return a}}(e);"string"===typeof a&&a.match(c)&&(f=a.replace(c,function(){var a=d.patchURL(2>=arguments.length?y:arguments[2],{location:b});return l(a)}));return f},patchURL:function(a,c){var b=this,e=void 0===c?{}:c,d=e.location,f=void 0===d?null:d;e=e.split;var l=void 0===e?!1:e;return"string"===typeof a?function(a){return l?a.split(","):[a]}(a).reduce(function(a,c){var e=c.trim().split(" "),
d=e[0];e=e.slice(1);d=b.applyPatch(d,f);a.push([d].concat(e).join(" "));return a},[]).join(", "):a},applyPatch:function(b,e){var d=c.test("relativePath",b),f=this.getRelativeLocation(e),h=f.host,g=f.protocol,m="";"string"===typeof f.pathname?m=f.pathname:f.path&&(m=f.path);d=d?this.resolvePath(b,m):b;if(0<=F.indexOf(d))return d;if(r.has(d))return u.get(d);f=b;c.resetAll();if(c.test("dataurlTest",b)||c.test("selectorTest",b))return b;c.test("protocolMissing",b)&&(f=c.test("protocolIncomplete",b)?b.replace(c.get("protocolIncomplete"),
g+"//"):g+"//"+(h+"/"+d).replace(/([/]+)/g,"/"));r.set(b,f);/http[s]?/.test(f)?(h=f,c.test("proxiedURL",h)?f=h:(l.isWhitelisted?(g=l.isWhitelisted(h))&&a.warn("Whitelisted: "+h):g=!1,f=g?h:(g=l.proxy)&&c.test("resourceFinder",g)?g.replace(c.get("resourceFinder"),h.replace(/&/g,"%26")):h),F.push(f),u.set(b,f),h=f):(F.push(b),u.set(b,f),h=b);return l.noEncode?decodeURIComponent(h):h},getRelativeLocation:function(a){var b=c.test("relativePath",a);return a?b?(b=m.StringUtils.parseURL(x(a)),a=this.resolvePath(a,
this.location.protocol+"//"+this.location.host+(this.location.path||this.location.pathname)),b||e.ObjectUtils.assign({},this.location,{path:a})):e.ObjectUtils.assign({},this.location,{path:a}):this.location},resolvePath:function(a,c){if(/^\//.test(a))return a;for(var b=(c+"/"+a).replace(/([/]+)/g,"/").split("/"),e=[],d=0,f=b.length;d<f;d++){var l=b[d];""===l?e.length=0:"."!==l&&(".."===l?0<e.length&&--e.length:e.push(l))}e.unshift("");return e.join("/")},configure:function(a){void 0===a&&(a={});var c=
a;a=c.proxyWhitelist;c=p()(c,["proxyWhitelist"]);l=e.ObjectUtils.assign({},l,c);if(a){a=a.map(function(a){return a.replace("*","(.*)")}).join("|");var b=new RegExp(""+a,"ig");l.isWhitelisted=function(a){b.lastIndex=0;return b.test(a)}}},isURLLike:function(a){c.resetMultiple(["dataurlTest","selectorTest","extnameFinder","protocolMissing"]);return c.test("dataurlTest",a)||c.test("selectorTest",a)?!1:c.test("extnameFinder",a)&&c.test("protocolMissing",a)},clearCache:function(){u.clear();r.clear()},isProxiedURL:function(a){return a?
c.test("proxiedURL",a):!1}},{location:{get:function(){return R()},set:function(a){return(l=e.ObjectUtils.assign({},l,{location:a})).location},configurable:!0,enumerable:!0},config:{get:function(){return l},configurable:!0,enumerable:!0}});b.a=f}).call(this,d(4)["default"])},function(a,b,d){function f(){try{if(!n.sessionStorage)return null;var a=n.sessionStorage.getItem(p),b=!1;try{var e=n.opener?n.opener.sessionStorage:null;b=!!e&&a===e.getItem(p)}catch(c){b=!0}if(!a||b)a=g.Tools.guid(),n.sessionStorage.setItem(p,
a);return a}catch(c){return null}}d.d(b,"a",function(){return f});var g=d(16),p="__vw_tab_guid"},function(a,b,d){a=d(43);var f=new (d(32).a),g=0,p=0,h=function(a){var c=this,b=this.stamp;f.push(function(){b!==g&&(p=0);g=b;c._publishMutations(c._getMutationObject(a,b,p++))})},m=d(44),e=d(45),c,l=function(a,c){if(!this.IS_MOBILE_DEVICE){var b=0,e=function(){var d=c.getValue.call(this,a);d&&(0!==d.stamp?this._publishActions(d):3>b&&(D(e,300),b+=1))}.bind(this);e()}},u=d(46),r=d(47),k=d(48),x=d(49),n=
d(50);d=d(51);b.a={canvas:{create:function(a){var c=a.canvasProxy,b=a._universalHandler(function(a){a=this._getEventObject("canvasProperty",a.canvas,{property:a.name,value:a.value});this._publishActions(a)});a=a._universalHandler(function(a){a=this._getEventObject("canvasMethod",a.canvas,{method:a.name,args:a.args});this._publishActions(a)});c.events.on("setter",b);c.events.on("method",a);c.mock()},destroy:function(a){a.canvasProxy.remove()}},input:a.a,keystrokes:{create:function(a){a.keyCapture.onCapture(function(c){"OBJECT"===
q.activeElement.nodeName&&/flash/.test(q.getAttribute("type"))||(c=a._getEventObject("keystroke",-1,c),a._publishActions(c))})},destroy:function(a){a.keyCapture.destroy()}},media:{create:function(a){var c=new a.MediaProxy,b=a._universalHandler(function(c){c=a._getEventObject("mediaProperty",c.media,{property:c.name,value:c.value});a._publishActions(c)}),e=a._universalHandler(function(c){c=a._getEventObject("mediaMethod",c.media,{method:c.name,args:c.args});a._publishActions(c)});c.events.on("setter",
b);c.events.on("method",e);c.mock()},destroy:function(a){a.mediaProxy.remove()}},mutations:{create:function(a){a.summary.on("mutation",a._universalHandler(h))},destroy:function(a){a.summary.off("mutation");f.start(!0)}},mouse:m.a,focus:e.a,resize:{getValue:function(){var a=this.viewport.getSize(1),c=a.width;a=a.height;var b=this.viewport.scrollingElement;if(0<c&&0<a)return this._getEventObject("resize",0,{width:c,height:a,pageWidth:b.scrollWidth,pageHeight:b.scrollHeight})},create:function(a){c=a.attachEvent(a.window,
"resize",a._universalHandler(l,{extra:[this]}),{passive:!0})},destroy:function(a){a.removeEvent(c)}},deviceRotation:u.a,scroll:r.a,selection:k.a,touch:x.a,zoom:n.a,window:d.a,checkable:{scanFrequency:50,timeoutId:null,checkables:{},recorder:null,create:function(a){this.recorder=a;this.handleNodeIndex=this.handleNodeIndex.bind(this);this.handleNodeRemoval=this.handleNodeRemoval.bind(this);a.indexer.on("add",this.handleNodeIndex);a.indexer.on("remove",this.handleNodeRemoval);this.updatecheckablesStates()},
updatecheckablesStates:function(){var a=this;Object.keys(this.checkables).forEach(function(c){if((c=a.checkables[c])&&c.nodeInfo.nativeNode.checked!==c.checked){var b=a.recorder._getEventObject("change",c.nodeInfo.id,{checked:c.nodeInfo.nativeNode.checked});a.recorder._publishActions(b);c.checked=c.nodeInfo.nativeNode.checked}});D(this.updatecheckablesStates.bind(this),this.scanFrequency)},handleNodeIndex:function(a){"INPUT"!==a.name||"checkbox"!==a.attributes.type&&"radio"!==a.attributes.type||(this.checkables[a.id]=
{checked:a.nativeNode.checked,nodeInfo:a})},handleNodeRemoval:function(a){delete this.checkables[a.id]},destroy:function(){clearTimeout(this.timeoutId);this.recorder.indexer.off("add",this.handleNodeIndex);this.recorder.indexer.off("remove",this.handleNodeRemoval)}},srcset:{create:function(a){this.onImageLoad=this.onImageLoad.bind(this);a.document.addEventListener("load",this.onImageLoad,!0);this.recorder=a},onImageLoad:function(a){a=a.target;"IMG"===(a.tagName||a.nodeName)&&a.getAttribute("srcset")&&
this.recorder.summary.collectMutations([{meta:{name:"src",oldValue:null,newValue:a.currentSrc},target:a,type:"attributes"}])},destroy:function(a){a.document.removeEventListener("load",this.onImageLoad)}}}},function(a,b,d){a=d(12);var f=d(11),g=d(14),p={rand:function(a,b){return Math.round(Math.random()*(b-a))+a},charFromRange:function(a,b){var c=this.rand(a,b);return String.fromCharCode(c)},isLetter:function(a){return/[\w\u0410-\u042f\u0430-\u044f]/.test(a)},isNumber:function(a){return/[0-9]/.test(a)},
isUpperCase:function(a){return a===a.toUpperCase()},randomizeString:function(a){var c=this;return(a||"").split("").map(function(a){return c.isNumber(a)?c.rand(0,9):c.isLetter(a)?c.isUpperCase(a)?c.charFromRange(65,90):c.charFromRange(97,122):a}).join("")},getNodeBounds:function(a){if(a.getBoundingClientRect)return a.getBoundingClientRect();var c=a.ownerDocument.createRange();c.selectNode(a);a=c.getBoundingClientRect();c.detach();return a}},h=a.a.DOMIndexer.HIDABLE_NODES,m=new f.KeyValue,e=function(a,
b){var c=a.ownerDocument.createElement(b),e=p.getNodeBounds(a);c.setAttribute("ym-node-type",a.nodeName.toLowerCase());a.attributes&&(g.DOMUtils.copyAttributes(a,c),c.className=a.className);c.className+=" ym-hidden-content";return{placeholder:c,bounds:e}};b.a=function(a){if(0<=h.indexOf(a.nodeName)){var c=g.DOMUtils.isHiddenContent(a);if(m.has(a))return m.get(a);if(c){var b=a.nodeName;c=a.textContent;if("#text"===b&&c&&""===c.trim())return a;c=function(a){switch(b){case "#text":var c=e(a,"span").placeholder;
c.setAttribute("ym-text-content",p.randomizeString(a.textContent||""));return c;case "IMG":return c=e(a,"img"),a=c.placeholder,c=c.bounds,a.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII\x3d",a.width=c.width,a.height=c.height,a;case "TEXTAREA":case "INPUT":return c=e(a,"input"),a=c.placeholder,c=c.bounds,a.style.width=c.width+"px",a.style.height=c.height+"px",a;default:return c=e(a,"span"),a=c.placeholder,c=c.bounds,a.style.width=
c.width+"px",a.style.height=c.height+"px",a}}(a);m.set(a,c);return c}}return a}},function(a,b,d){d.r(b);(function(a,g,p){d.d(b,"default",function(){return Z});var f=d(40),m=d.n(f);f=d(23);var e=d.n(f);f=d(35);var c=d.n(f);f=d(6);var l=d.n(f);f=d(13);var u=d.n(f);f=d(5);var r=d.n(f);f=d(17);var k=d.n(f);f=d(1);var x=d.n(f),R=d(16),F=d(22),A=d(0),U=d(12),z=d(31),t=d(65),v=d(52),w=d(54),B=d(20);f=d(55);var E=d(56),C=d(57),J=d(58),ma=d(59),L=d(15),G=d(26),M=d(60),ea=d(61),H=d(62),na=d(19),V=d(63),W=d(10),
la=d(64),ha=d(30),N=d(14),Q=d(38),ra=d(7),ia=d(2),O=d(4),X=d(27),ba=d(66),ka=new f.a({checkOnLoad:!1,resetOnEnd:!0}),ca={},P={counterId:null,maxSize:X.NumberUtils.size(50,"mb"),maxDuration:864E5,compression:!1,isEU:!1,recording:{keysMode:"explicit"}},Da={disableIndex:!1},Y=!0===H.a,S=ra.IS_INCOGNITO||ra.DO_NOT_TRACK||"disable"===ha.BrowserUtils.meta("webvisor"),da=n!==n.top;n.__YM_WV_RECORDABLE__===y&&Object.defineProperty(n,"__YM_WV_RECORDABLE__",{value:!0});var Z=function(b){function d(c,e){void 0===
c&&(c={});void 0===e&&(e={});var d=b.call(this)||this;x()(r()(d),"middlewares",[]);x()(r()(d),"options",ia.ObjectUtils.assign({},P));x()(r()(d),"initOptions",ia.ObjectUtils.assign({},Da));x()(r()(d),"iframes",[]);x()(r()(d),"waitingBody",null);x()(r()(d),"ableToStart",!1);x()(r()(d),"_identifier",R.Tools.guid());x()(r()(d),"offsets",{left:0,top:0});x()(r()(d),"fatalError",!1);x()(r()(d),"captors",new a);x()(r()(d),"prevMutationStamp",null);x()(r()(d),"prevMutationOrderingID",0);x()(r()(d),"inited",
!1);x()(r()(d),"startOptions",null);x()(r()(d),"precache",[]);x()(r()(d),"paused",!0);x()(r()(d),"started",!1);x()(r()(d),"stopped",!1);x()(r()(d),"snapshotSent",!1);x()(r()(d),"eventsList",["error"]);x()(r()(d),"_slaveMessengerRegistrationHandler",function(a,c){return function(b){var e=b.offsets,f=b.reason;if(b.success)return d.offsets=e,d.sender.useRight(function(a){var c=a.data,b={};A.IterableUtils.fastIterate(["page","events","mutations"],function(a,e){c[e]&&(b[e]=c[e])});d.messenger.send("iframe_data",
{data:b})}),a();f.counterId&&c(Error("Counter ID mismatch"));f.domain&&c(Error("Domain mismatch"));c(Error("Cannot initialize slave messenger"))}});x()(r()(d),"_sendEOF",F.FunctionUtils.once(function(){if(!d._EOF_SENT){var a=d._getEventObject("eof");d._saveChanges({events:[a]});d._EOF_SENT=!0}}));O["default"].log("Initializing recorder",{IS_IN_IFRAME:da});d._context=function(a){var c={};return a?(c.window=a.window||n,c.document=a.document||q,c):{window:n,document:q}}(e);d.sender=new w.a(d.middlewares.splice(0));
d.captors=new a;d._timer=Q.TimeUtils.timer();d._tabId=Object(la.a)();d._configOptions=l()({},c);Object.defineProperty(d.window,"__WV_ENABLED__",{value:!0});return!Y||S?r()(d)||r()(d):d}k()(d,b);var f=d.prototype;f.configure=function(){var a=ia.ObjectUtils.combine({},l()({},P,this._configOptions));this.frames=[];this.viewport=ha.BrowserUtils.viewportGetter(this.document);this.zoomLevel=this.viewport.zoomLevel;this.prevMutationStamp=null;this.prevMutationOrderingID=0;this.ableToStart=this.inited=!1;
this.startOptions=this.initException=null;this.precache=[];this.options=l()({},a);this.canvasProxy=z.a;this.MediaProxy=C.a;W.c.addAttributesFilter(function(c,b,e){if(B.a.isValidNode(c)&&"value"===b)return c=B.a.validate(c,a),b=c.forceRecord,c.isAllowed||b?e:B.a.encode(e)})};f.attachEvent=function(){for(var a,c=arguments.length,b=Array(c),e=0;e<c;e++)b[e]=arguments[e];G.a.on.apply(G.a,(a=[]).concat.apply(a,b));return b};f.removeEvent=function(){for(var a,c=arguments.length,b=Array(c),e=0;e<c;e++)b[e]=
arguments[e];G.a.off.apply(G.a,(a=[]).concat.apply(a,b));return b};f["continue"]=function(){S||(this.paused=!1)};f.findNode=function(a){return this.indexer.getNodeId(a)};f.pause=function(){S||(this.paused=!0)};f.middleware=function(a){this.sender?this.sender.use(a):this.middlewares.push(a);return this};f.init=function(a){var b=this;void 0===a&&(a={});this.initOptions=ia.ObjectUtils.assign({},this.initOptions,a||{});this.errorLogger(c()(e.a.mark(function Ga(){return e.a.wrap(function(a){for(;;)switch(a.prev=
a.next){case 0:if(Y&&!S){a.next=2;break}return a.abrupt("return");case 2:return a.prev=2,a.next=5,Object(J.a)(b.document);case 5:b.waitingDocument=a.sent;a.next=11;break;case 8:a.prev=8,a.t0=a["catch"](2),b.__handleDocumentLoadError(a.t0);case 11:return a.next=13,b.__handleDocumentLoad();case 13:case "end":return a.stop()}},Ga,null,[[2,8]])})),"init")["catch"](function(a){clearTimeout(b.cancelIfNotStarted);b.waitingDocument=!1;b.fatal("init-failed",a);b.sendErrors=D(function(){b.stop(!0,!1)},3E4)})};
f.__handleDocumentLoadError=function(a){var c=a;"timeout"===a.message&&(c=Error("No \x3cbody\x3e found. Can't continue"));this.fatal("init-failed",c)};f.__handleDocumentLoad=function(){var a=c()(e.a.mark(function Ea(){var a=this;return e.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.configure(),this.__initIndexer(),this.__initEventHandlers(),c.next=5,this._initMessenger();case 5:this.waitingDocument=!1,this.ableToStart=!0,this.cancelIfNotStarted=D(function(){a.stop(!0,!1)},3E4),
this.emit("ready"),this.inited=!0,this.startOptions&&this.start(this.startOptions);case 11:case "end":return c.stop()}},Ea,this)}));return function(){return a.apply(this,arguments)}}();f.__initIndexer=function(){var a=this;this.indexer=new ma.a(this.document,{disabled:this.initOptions.disableIndex});this.indexer.on("node",function(c){return a.connectSlaveRecorder(c)});this.indexer.use(ba.a);this.indexer.initialIndex()};f.__initEventHandlers=function(){this.summary=new v.a(this.document.documentElement,
this.indexer);this.selection=new ea.a(n,this.document,this.indexer);this.keyCapture=new E.a("body",this);this.initOptions.disableMutations||this.summary.initObserver();this._initCaptors();this._createSnapshot()};f.connectSlaveRecorder=function(a){var c=this;if("IFRAME"===a.nodeName&&"ym-native-frame"!==a.name){try{var b=0<a.contentDocument.documentElement.childNodes.length&&"complete"===a.contentDocument.readyState}catch(gc){b=!0}var e=function Hb(a){var b=a.contentWindow,e=a.contentDocument;if(b&&
e){if(!0===b.__YM_WV_RECORDABLE__)return O["default"].warn("Iframe has internal counter installed");if(!0===b.__YM_RECORDING__)return O["default"].warn("We're already recording this iframe",a);a.contentWindow.__YM_RECORDING__=!0;b=c._createInstance(c._configOptions,{window:b,document:e});b.init(c.initOptions);b.start(c.startOptions);O["default"].info("Recorder injected into the iframe",a)}else D(function(){return Hb(a)},10)},d=function(a){try{var c=!!a.contentWondow&&!!a.contentWindow.location}catch(Xa){O["default"].warn(Xa),
c=!1}c&&!0!==a.contentWindow.__WV_ENABLED__&&e(a)};this.attachEvent(a,"load",function(){c.errorLogger(function(){d()},"ifLo")},{capture:!0,passive:!0});b&&(O["default"].log("Iframe is already loaded"),d(a))}};f.start=function(a){var c=this;void 0===a&&(a={});this.errorLogger(function(){if(c.ableToStart)if(!1===c.fatalError)if(!c.inited)c.savePageSnapshot(),c.fatal("init-failed",Error("Unknown error"));else{if(Y&&!S){clearTimeout(c.cancelIfNotStarted);var b=(a||{}).forms;c.options.recording=ia.ObjectUtils.combine({},
P.recording,{keysMode:void 0===b||b?"regular":"explicit"});c.start=F.FunctionUtils.noop();c.started=!0;c.sendSnapshot().then(function(a){a&&(c._sendInitialEvents(),c._sendPreCachedData(),c._timer.start())})["catch"](function(a){c.fatal("recording-interrupted",a);c.start()});c["continue"]()}}else c.stop(!0,!0);else(function Ka(){c.ableToStart?c.start(a):D(Ka,50)})()},"start")};f.stop=function(a,c){var b=this;void 0===a&&(a=!1);void 0===c&&(c=!0);Y&&!S&&(!1!==this.started&&this.inited||a)&&!0!==this.stopped&&
(O["default"].info("Stopping recorder...",{IS_IN_IFRAME:da}),clearTimeout(this.cancelIfNotStarted),clearTimeout(this.sendErrors),this.captors.forEach(function(a){a&&a.hasOwnProperty("destroy")&&a.destroy(b)}),this.indexer&&this.indexer.clear(),this.captors&&this.captors.clear(),na.a.invokeAll(this),this.summary&&this.summary.destroy(),this.keyCapture&&this.keyCapture.destroy(),c?(this._sendEOF(),!0===this.fatalError&&this._sendPreCachedData({force:!0}),this.emit("stop")):a&&this.emit("close"),this.started=
!1,this.stopped=!0)};f.fatal=function(a,c){void 0===c&&(c=null);this.fatal=F.FunctionUtils.noop();c=c||{message:"Unknown exception",stack:"No stack provided"};this.fatalError||(this.fatalError=!0,this.savePageSnapshot(),this.sendCustomEvent("fatalError",{code:a,exception:c.message,stack:c.stack}),this.stop(!0,!0))};f.setURLProxy=function(a){V.a.proxy=function(){if("string"===typeof a)return a;if("function"===typeof a)return a.call(this)}(a)};f.sendCustomEvent=function(a,c){var b=this._getEventObject(a,
null,c);this._saveChanges({events:[b]})};f._initCaptors=function(){var a=this;this.keyCapture.addElementFilter(function(a){return"INPUT"===a.nodeName?"password"!==a.type&&!1===/ym-disable-keys/.test(a.className):!0});var c=ia.ObjectUtils.combine({},U.a.captors,da?U.a.iframeCaptors:null);A.IterableUtils.forin(c,function(b){if(!0===c[b]){var e=t.a[b];a.errorLogger(function(){return e.create(a)},"init-captor-"+b);a.captors.set(b,e)}});G.a.on(this.window,"beforeunload",this.stop.bind(this))};f.throwError=
function(a,c){void 0===c&&(c="recorder");this.emit("error",{error:a,namespace:"recorder:"+c})};f.errorLogger=function(a,c){var b=this;void 0===c&&(c="recorder");try{var e=a();return e instanceof g?e["catch"](function(a){b.throwError(a,c+":async")}):e}catch(Ka){this.throwError(Ka,c)}};f._blockUpcomingCaptor=function(a,c){var b=this;void 0===c&&(c=Infinity);a&&(this._blockedCaptors=this._blockedCaptors||new p,this._blockedCaptors.add(a),Infinity>c&&D(function(){return b._releaseCaptor(a)},c))};f._releaseCaptor=
function(a){a&&this._blockedCaptors.has(a)&&this._blockedCaptors["delete"](a)};f._executeCaptor=function(a,c){a&&"function"===typeof c&&(this._blockedCaptors&&this._blockedCaptors.has(a)?this._releaseCaptor(a):c())};f._getEventObject=function(a,c,b,e){c="number"===typeof c?c:c?this.findNode(c)||-1:null;return{stamp:this._stampForType(a,e),type:a,target:c,meta:b||null}};f._getMutationObject=function(a,c,b){void 0===b&&(b=0);return{stamp:this._stampForType("mutation",c),meta:{changes:a,index:b}}};f._stampForType=
function(a,c){var b=c||this.stamp;return ca[a]=b+(b===ca[a]?1:0)};f._getInitialScroll=function(){var a=[],c=this.document.body,b=this._getScroll(c);null!=b&&a.push(b);a.concat(this._getScrollForEachNode(c.childNodes));return a};f._getScrollForEachNode=function(a){var c=this;return A.IterableUtils.toArray(a).reduce(function(a,b){var e=c._getScroll(b);null!=e&&a.push(e);0<b.childNodes.length&&(a=a.concat(c._getScrollForEachNode(b.childNodes)));return a},[])};f._getScroll=function(a){var c=a.scrollTop,
b=a.scrollLeft;if(0<c||0<b)return{target:this.findNode(a),scroll:[c,b]}};f._initMessenger=function(){var a=this;return new g(function(){var b=c()(e.a.mark(function Ka(c){var b;return e.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.messenger=new M.a(a.window);if(!ha.BrowserUtils.isIframe(a.window)){e.next=8;break}e.next=4;return a._initSlaveMessenger();case 4:(b=e.sent)&&a.fatal("messenger-init-failed",b);e.next=9;break;case 8:a._initMasterMessenger();case 9:c();case 10:case "end":return e.stop()}},
Ka)}));return function(a){return b.apply(this,arguments)}}())};f._initMasterMessenger=function(){var a=this,c=l()({},this.options);this.messenger.subscribe("iframe_register",function(b,e){var d=b.sender,f=b.data,l=N.DOMUtils.offsets(d),h=f.counterId===c.counterId;f=f.domain===a.domain;e({success:h||f,offsets:{top:l.top,left:l.left},reason:{counterId:!f,domain:!h}});O["default"].log("iFrame registered",d)});this.messenger.subscribe("iframe_data",function(c){var b=c.data,e=c.sender,d=a.findNode(e);
if(null!=d){var f={frameId:d};if(b.page){var h=l()({},b.page,f,{tabId:a.tabId,recordStamp:(new Date).getTime(),stamp:a._stampForType("page")});O["default"].log("Message from iframe ["+d+"]",e,c,a.document,h);a._request("/dump",{page:h})}if(b.events){c=N.DOMUtils.offsets(e,{relative:!0});var g=c.left,m=c.top;c=b.events.map(function(c){/mouse/.test(c.type)&&(c.meta.x=Math.round(c.meta.x+g),c.meta.y=Math.round(c.meta.y+m));return l()({},c,f,{stamp:a._stampForType(c.type)})});a._publishActions(c)}b.mutations&&
(b=b.mutations.map(function(c){return l()({},c,f,{stamp:a._stampForType("mutation")})}),a._publishMutations(b))}})};f._initSlaveMessenger=function(){var a=this,c=l()({},this.options);return(new g(function(b,e){O["default"].log("Awaiting subscription",a.document.documentElement);a.messenger.send("iframe_register",{awaitResponse:!0,data:{counterId:c.counterId,domain:a.domain},onResponse:a._slaveMessengerRegistrationHandler(b,e),onTimeout:function(){a.stop();O["default"].warn("Slave recorder stopped due to a timeout: no response from the parent page within 30 seconds.")}})}))["catch"](function(c){O["default"].warn(c,
a.document);return c})};f._publishActions=function(){var a;this._saveChanges({events:(a=[]).concat.apply(a,arguments)})};f._publishMutations=function(){var a;this._saveChanges({mutations:(a=[]).concat.apply(a,arguments)})};f._request=function(a,c,b){void 0===c&&(c={});void 0===b&&(b=!1);this._EOF_SENT&&!0!==b||(!0===this.started||!0===b?(c=ia.ObjectUtils.combine({_v:U.a["package"].version},l()({},c)),this.sender.send({url:a,data:l()({},c)})):this.precache.push([a,c]))};f._saveChanges=function(a){this._request("/dump",
a);O["default"].log("Sending data");!this._EOF_SENT&&this.started&&(this.dataSent>=this.options.maxSize||this.hitDuration>=this.options.maxDuration)&&this.stop()};f.sendSnapshot=function(){var a=this;return this.snapshot.get({onSuccess:function(c){a.savePageSnapshot(c);return!0},onFail:function(){return!1}})};f._createSnapshot=function(){var a=this,c=g.resolve().then(function(){return{content:a.summary.html}})["catch"](function(a){return{error:a}}).then(function(a){return{content:a.content,error:a.error}});
this.snapshot={get:function(b){var e=b.onSuccess,d=b.onFail;return c.then(function(c){var b=c.error;c=c.content;b?(c=d.call(a,c,b),a.fatal("invalid-snapshot",b)):c=e.call(a,c);return c})}}};f.savePageSnapshot=function(a){if(this.indexer&&!this.indexer.disabled&&!this.snapshotSent)return this.snapshotSent=!0,a=l()({content:a,frameId:0,tabId:this.tabId,recordStamp:(new Date).getTime()},this.page),this._saveChanges({page:a})};f._sendInitialEvents=function(){var a=this,c=[],b=function(){var c=a.captors.get("resize");
return c&&c.getValue.call(a)}(),e=this.viewport.scrollingElement,d=this._getInitialScroll().map(function(c){var b=c.scroll,d=b[0];b=b[1];c=function(a){return a===this.document||a===this.window?e:a}(a.indexer.find(c.target));return a._getEventObject("scroll",c,{x:b,y:d,page:c===e})});b&&c.push(b);c.push.apply(c,d);this._saveChanges({events:c})};f._sendPreCachedData=function(a){a=(void 0===a?{}:a).force;a=void 0===a?!1:a;if(this.precache.length)for(var c;null!=(c=this.precache.shift());)this._request(c[0],
c[1],a)};f._connectToParent=function(){this._sendMessage("connect",{id:this._identifier})};f._sendMessage=function(a,c){(da?this.window.top:this.window).postMessage({type:a,data:c},"*")};f._universalHandler=function(a,c){var b=this,e=(void 0===c?{}:c).extra,d=void 0===e?[]:e;return function(){for(var c=arguments.length,e=Array(c),f=0;f<c;f++)e[f]=arguments[f];b.errorLogger(function(){b.paused||a.apply(b,e.concat(d))},"universal-handler")}};f._createInstance=function(){for(var a=arguments.length,c=
Array(a),b=0;b<a;b++)c[b]=arguments[b];return m()(this.constructor,c)};u()(d,[{key:"window",get:function(){return this._context.window}},{key:"document",get:function(){return this._context.document}},{key:"bodyNode",get:function(){return this.__bodyNode||(this.__bodyNode=this.document.body)}},{key:"fpsDelay",get:function(){return 1E3/this.fps}},{key:"doctype",get:function(){var a=this.document.doctype||{},c=a.publicId,b=a.systemId;return"\x3c!DOCTYPE "+[a.name||"html",c?' PUBLIC "'+c+'"':"",!c&&b?
" SYSTEM":"",b?' "'+b+'"':""].join("")+"\x3e"}},{key:"rootNode",get:function(){return this.__rootNode||(this.__rootNode=this.document.documentElement)}},{key:"stamp",get:function(){return this._timer?this._timer.stamp():0}},{key:"eventID",get:function(){return this._eventID?this._eventID+=1:this._eventID=1}},{key:"page",get:function(){var a=this.viewport?this.viewport.getSize():{width:0,height:0},c=N.DOMUtils.base(),b=!!this.document.querySelector("base[href]");return{meta:{base:c,hasBase:b,viewport:a,
title:this.document.title,doctype:this.doctype,address:I.href,ua:navigator.userAgent,referrer:this.document.referrer,adblocking:ka.checkSync(),screen:{width:oa.width,height:oa.height},location:{host:I.host,protocol:I.protocol,path:I.pathname}}}}},{key:"domain",get:function(){return I.protocol+"//"+(I.host||I.hostname)+(I.port?":"+I.port:"")}},{key:"tabId",get:function(){return this._tabId}}]);return d}(L.a),fa={IS_INCOGNITO:ra.IS_INCOGNITO,IS_MOBILE_DEVICE:ra.IS_MOBILE_DEVICE,DO_NOT_TRACK:ra.DO_NOT_TRACK};
A.IterableUtils.forin(fa,function(a){var c={value:fa[a]};Object.defineProperty(Z,a,c);Object.defineProperty(Z.prototype,a,c)})}).call(this,d(11)["default"],d(21).Promise,d(8)["default"])},function(a,b,d){b=d(24)["default"];a.exports=d(69)()?b:d(70)},function(a,b,d){(function(b){var d={object:!0,symbol:!0};a.exports=function(){if("function"!==typeof b)return!1;var a=b("test symbol");try{String(a)}catch(h){return!1}return d[typeof b.iterator]&&d[typeof b.toPrimitive]&&d[typeof b.toStringTag]?!0:!1}}).call(this,
d(24)["default"])},function(a,b,d){(function(b){var f=d(71),p=d(85),h=Object.create,m=Object.defineProperties,e=Object.defineProperty,c=Object.prototype,l,u=h(null);if("function"===typeof b){var r=b;try{String(r());var k=!0}catch(F){}}var n=function(){var a=h(null);return function(b){for(var d=0,l,h;a[b+(d||"")];)++d;b+=d||"";a[b]=!0;l="@@"+b;e(c,l,f.gs(null,function(a){h||(h=!0,e(this,l,f(a)),h=!1)}));return l}}();var q=function(a){if(this instanceof q)throw new TypeError("Symbol is not a constructor");
return l(a)};a.exports=l=function U(a){if(this instanceof U)throw new TypeError("Symbol is not a constructor");if(k)return r(a);var c=h(q.prototype);a=a===y?"":String(a);return m(c,{__description__:f("",a),__name__:f("",n(a))})};m(l,{"for":f(function(a){return u[a]?u[a]:u[a]=l(String(a))}),keyFor:f(function(a){var c;p(a);for(c in u)if(u[c]===a)return c}),hasInstance:f("",r&&r.hasInstance||l("hasInstance")),isConcatSpreadable:f("",r&&r.isConcatSpreadable||l("isConcatSpreadable")),iterator:f("",r&&
r.iterator||l("iterator")),match:f("",r&&r.match||l("match")),replace:f("",r&&r.replace||l("replace")),search:f("",r&&r.search||l("search")),species:f("",r&&r.species||l("species")),split:f("",r&&r.split||l("split")),toPrimitive:f("",r&&r.toPrimitive||l("toPrimitive")),toStringTag:f("",r&&r.toStringTag||l("toStringTag")),unscopables:f("",r&&r.unscopables||l("unscopables"))});m(q.prototype,{constructor:f(l),toString:f("",function(){return this.__name__})});m(l.prototype,{toString:f(function(){return"Symbol ("+
p(this).__description__+")"}),valueOf:f(function(){return p(this)})});e(l.prototype,l.toPrimitive,f("",function(){var a=p(this);return"symbol"===typeof a?a:a.toString()}));e(l.prototype,l.toStringTag,f("c","Symbol"));e(q.prototype,l.toStringTag,f("c",l.prototype[l.toStringTag]));e(q.prototype,l.toPrimitive,f("c",l.prototype[l.toPrimitive]))}).call(this,d(24)["default"])},function(a,b,d){var f=d(72),g=d(80),p=d(81),h=d(82);(a.exports=function(a,b){var c;if(2>arguments.length||"string"!==typeof a){var e=
b;b=a;a=null}else e=arguments[2];if(null==a){var d=c=!0;var m=!1}else d=h.call(a,"c"),m=h.call(a,"e"),c=h.call(a,"w");d={value:b,configurable:d,enumerable:m,writable:c};return e?f(g(e),d):d}).gs=function(a,b,c,d){"string"!==typeof a&&(d=c,c=b,b=a,a=null);null==b?b=y:p(b)?null==c?c=y:p(c)||(d=c,c=y):(d=b,b=c=y);if(null==a){var e=!0;a=!1}else e=h.call(a,"c"),a=h.call(a,"e");b={get:b,set:c,configurable:e,enumerable:a};return d?f(g(d),b):b}},function(a,b,d){a.exports=d(73)()?Object.assign:d(74)},function(a,
b,d){a.exports=function(){var a=Object.assign;if("function"!==typeof a)return!1;var b={foo:"raz"};a(b,{bar:"dwa"},{trzy:"trzy"});return"razdwatrzy"===b.foo+b.bar+b.trzy}},function(a,b,d){var f=d(75),g=d(79),p=Math.max;a.exports=function(a,b){var e,c,d=p(arguments.length,2);a=Object(g(a));var h=function(c){try{a[c]=b[c]}catch(T){e||(e=T)}};for(c=1;c<d;++c)b=arguments[c],f(b).forEach(h);if(e!==y)throw e;return a}},function(a,b,d){a.exports=d(76)()?Object.keys:d(77)},function(a,b,d){a.exports=function(){try{return Object.keys("primitive"),
!0}catch(f){return!1}}},function(a,b,d){var f=d(36),g=Object.keys;a.exports=function(a){return g(f(a)?Object(a):a)}},function(a,b,d){a.exports=function(){}},function(a,b,d){var f=d(36);a.exports=function(a){if(!f(a))throw new TypeError("Cannot use null or undefined");return a}},function(a,b,d){var f=d(36),g=Array.prototype.forEach,p=Object.create;a.exports=function(a){var b=p(null);g.call(arguments,function(a){if(f(a)){a=Object(a);for(var c in a)b[c]=a[c]}});return b}},function(a,b,d){a.exports=function(a){return"function"===
typeof a}},function(a,b,d){a.exports=d(83)()?String.prototype.contains:d(84)},function(a,b,d){a.exports=function(){return"function"!==typeof"razdwatrzy".contains?!1:!0==="razdwatrzy".contains("dwa")&&!1==="razdwatrzy".contains("foo")}},function(a,b,d){var f=String.prototype.indexOf;a.exports=function(a,b){return-1<f.call(this,a,b)}},function(a,b,d){var f=d(86);a.exports=function(a){if(!f(a))throw new TypeError(a+" is not a symbol");return a}},function(a,b,d){a.exports=function(a){return a?"symbol"===
typeof a?!0:a.constructor&&"Symbol"===a.constructor.name?"Symbol"===a[a.constructor.toStringTag]:!1:!1}},function(a,b,d){(function(b){(function(b,d){a.exports=d()})(this,function(){function a(a){return"function"===typeof a}function d(){return function(){return b.nextTick(l)}}function f(){return"undefined"!==typeof H?function(){H(l)}:c()}function m(){var a=0,c=new la(l),b=q.createTextNode("");c.observe(b,{characterData:!0});return function(){b.data=a=++a%2}}function e(){var a=new MessageChannel;a.port1.onmessage=
l;return function(){return a.port2.postMessage(0)}}function c(){return function(){return D(l,1)}}function l(){for(var a=0;a<ea;a+=2)(0,N[a])(N[a+1]),N[a]=y,N[a+1]=y;ea=0}function u(){try{var a=Function("return this")().require("vertx");H=a.runOnLoop||a.runOnContext;return f()}catch(Y){return c()}}function r(a,c){var b=this,e=new this.constructor(x);e[ra]===y&&J(e);var d=b._state;if(d){var f=arguments[d-1];V(function(){return I(d,e,f,b._result)})}else E(b,e,a,c);return e}function k(a){if(a&&"object"===
typeof a&&a.constructor===this)return a;var c=new this(x);t(c,a);return c}function x(){}function R(a){try{return a.then}catch(Y){return ba.error=Y,ba}}function F(a,c,b,e){try{a.call(c,b,e)}catch(Z){return Z}}function A(a,c,b){V(function(a){var e=!1,d=F(b,c,function(b){e||(e=!0,c!==b?t(a,b):w(a,b))},function(c){e||(e=!0,B(a,c))},"Settle: "+(a._label||" unknown promise"));!e&&d&&(e=!0,B(a,d))},a)}function U(a,c){c._state===O?w(a,c._result):c._state===M?B(a,c._result):E(c,y,function(c){return t(a,c)},
function(c){return B(a,c)})}function z(c,b,e){b.constructor===c.constructor&&e===r&&b.constructor.resolve===k?U(c,b):e===ba?(B(c,ba.error),ba.error=null):e===y?w(c,b):a(e)?A(c,b,e):w(c,b)}function t(a,c){if(a===c)B(a,new TypeError("You cannot resolve a promise with itself"));else{var b=typeof c;null===c||"object"!==b&&"function"!==b?w(a,c):z(a,c,R(c))}}function v(a){a._onerror&&a._onerror(a._result);C(a)}function w(a,c){a._state===ia&&(a._result=c,a._state=O,0!==a._subscribers.length&&V(C,a))}function B(a,
c){a._state===ia&&(a._state=M,a._result=c,V(v,a))}function E(a,c,b,e){var d=a._subscribers,f=d.length;a._onerror=null;d[f]=c;d[f+O]=b;d[f+M]=e;0===f&&a._state&&V(C,a)}function C(a){var c=a._subscribers,b=a._state;if(0!==c.length){for(var e,d,f=a._result,l=0;l<c.length;l+=3)e=c[l],d=c[l+b],e?I(b,e,d,f):d(f);a._subscribers.length=0}}function I(c,b,e,d){var f=a(e),l=void 0,h=void 0,g=void 0,m=void 0;if(f){try{l=e(d)}catch(ya){ba.error=ya,l=ba}l===ba?(m=!0,h=l.error,l.error=null):g=!0;if(b===l){B(b,new TypeError("A promises callback cannot return that same promise."));
return}}else l=d,g=!0;b._state===ia&&(f&&g?t(b,l):m?B(b,h):c===O?w(b,l):c===M&&B(b,l))}function ma(a,c){try{c(function(c){t(a,c)},function(c){B(a,c)})}catch(S){B(a,S)}}function J(a){a[ra]=X++;a._state=y;a._result=y;a._subscribers=[]}var L=void 0,G=L=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},ea=0,H=void 0,na=void 0,V=function(a,c){N[ea]=a;N[ea+1]=c;ea+=2;2===ea&&(na?na(l):Q())},W=(L="undefined"!==typeof n?n:y)||{},la=W.MutationObserver||W.WebKitMutationObserver;
W="undefined"===typeof self&&"undefined"!==typeof b&&"[object process]"==={}.toString.call(b);var ha="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel,N=Array(1E3),Q=void 0;Q=W?d():la?m():ha?e():L===y?u():c();var ra=Math.random().toString(36).substring(2),ia=void 0,O=1,M=2,ba={error:null},X=0,ca=function(){function a(a,c){this._instanceConstructor=a;this.promise=new a(x);this.promise[ra]||J(this.promise);G(c)?(this._remaining=this.length=
c.length,this._result=Array(this.length),0===this.length?w(this.promise,this._result):(this.length=this.length||0,this._enumerate(c),0===this._remaining&&w(this.promise,this._result))):B(this.promise,Error("Array Methods must be provided an Array"))}a.prototype._enumerate=function(a){for(var c=0;this._state===ia&&c<a.length;c++)this._eachEntry(a[c],c)};a.prototype._eachEntry=function(a,c){var b=this._instanceConstructor,e=b.resolve;e===k?(e=R(a),e===r&&a._state!==ia?this._settledAt(a._state,c,a._result):
"function"!==typeof e?(this._remaining--,this._result[c]=a):b===P?(b=new b(x),z(b,a,e),this._willSettleAt(b,c)):this._willSettleAt(new b(function(c){return c(a)}),c)):this._willSettleAt(e(a),c)};a.prototype._settledAt=function(a,c,b){var e=this.promise;e._state===ia&&(this._remaining--,a===M?B(e,b):this._result[c]=b);0===this._remaining&&w(e,this._result)};a.prototype._willSettleAt=function(a,c){var b=this;E(a,y,function(a){return b._settledAt(O,c,a)},function(a){return b._settledAt(M,c,a)})};return a}(),
P=function(){function c(a){this[ra]=X++;this._result=this._state=y;this._subscribers=[];if(x!==a){if("function"!==typeof a)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(this instanceof c)ma(this,a);else throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}}c.prototype["catch"]=function(a){return this.then(null,a)};c.prototype["finally"]=function(c){var b=
this.constructor;return a(c)?this.then(function(a){return b.resolve(c()).then(function(){return a})},function(a){return b.resolve(c()).then(function(){throw a;})}):this.then(c,c)};return c}();P.prototype.then=r;P.all=function(a){return(new ca(this,a)).promise};P.race=function(a){var c=this;return G(a)?new c(function(b,e){for(var d=a.length,f=0;f<d;f++)c.resolve(a[f]).then(b,e)}):new c(function(a,c){return c(new TypeError("You must pass an array to race."))})};P.resolve=k;P.reject=function(a){var c=
new this(x);B(c,a);return c};P._setScheduler=function(a){na=a};P._setAsap=function(a){V=a};P._asap=V;P.polyfill=function(){var a=void 0;if("undefined"!==typeof global)a=global;else if("undefined"!==typeof self)a=self;else try{a=Function("return this")()}catch(da){throw Error("polyfill failed because global object is unavailable in this environment");}var c=a.Promise;if(c){var b=null;try{b=Object.prototype.toString.call(c.resolve())}catch(da){}if("[object Promise]"===b&&!c.cast)return}a.Promise=P};
return P.Promise=P})}).call(this,d(39))},function(a,b){function d(b,g){a.exports=d=Object.setPrototypeOf||function(a,b){a.__proto__=b;return a};return d(b,g)}a.exports=d},function(a,b,d){b=function(){return this||"object"===typeof self&&self}()||Function("return this")();var f=b.regeneratorRuntime&&0<=Object.getOwnPropertyNames(b).indexOf("regeneratorRuntime"),g=f&&b.regeneratorRuntime;b.regeneratorRuntime=y;a.exports=d(90);if(f)b.regeneratorRuntime=g;else try{delete b.regeneratorRuntime}catch(p){b.regeneratorRuntime=
y}},function(a,b,d){(function(b,d){!function(f){function h(a,c,b,d){c=Object.create((c&&c.prototype instanceof e?c:e).prototype);d=new A(d||[]);c._invoke=k(a,b,d);return c}function g(a,c,b){try{return{type:"normal",arg:a.call(c,b)}}catch(ha){return{type:"throw",arg:ha}}}function e(){}function c(){}function l(){}function p(a){["next","throw","return"].forEach(function(c){a[c]=function(a){return this._invoke(c,a)}})}function r(a){function c(b,e,f,l){b=g(a[b],a,e);if("throw"===b.type)l(b.arg);else{var h=
b.arg;return(b=h.value)&&"object"===typeof b&&y.call(b,"__await")?d.resolve(b.__await).then(function(a){c("next",a,f,l)},function(a){c("throw",a,f,l)}):d.resolve(b).then(function(a){h.value=a;f(h)},function(a){return c("throw",a,f,l)})}}var b;this._invoke=function(a,e){function f(){return new d(function(b,d){c(a,e,b,d)})}return b=b?b.then(f,f):f()}}function k(a,c,b){var e=I;return function(d,f){if(e===J)throw Error("Generator is already running");if(e===G){if("throw"===d)throw f;return t()}b.method=
d;for(b.arg=f;;){var l=b.delegate;if(l&&(l=n(l,b))){if(l===H)continue;return l}if("next"===b.method)b.sent=b._sent=b.arg;else if("throw"===b.method){if(e===I)throw e=G,b.arg;b.dispatchException(b.arg)}else"return"===b.method&&b.abrupt("return",b.arg);e=J;l=g(a,c,b);if("normal"===l.type){e=b.done?G:L;if(l.arg===H)continue;return{value:l.arg,done:b.done}}"throw"===l.type&&(e=G,b.method="throw",b.arg=l.arg)}}}function n(a,c){var b=a.iterator[c.method];if(b===w){c.delegate=null;if("throw"===c.method){if(a.iterator["return"]&&
(c.method="return",c.arg=w,n(a,c),"throw"===c.method))return H;c.method="throw";c.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}b=g(b,a.iterator,c.arg);if("throw"===b.type)return c.method="throw",c.arg=b.arg,c.delegate=null,H;b=b.arg;if(!b)return c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,H;if(b.done)c[a.resultName]=b.value,c.next=a.nextLoc,"return"!==c.method&&(c.method="next",c.arg=w);else return b;c.delegate=null;return H}
function q(a){var c={tryLoc:a[0]};1 in a&&(c.catchLoc=a[1]);2 in a&&(c.finallyLoc=a[2],c.afterLoc=a[3]);this.tryEntries.push(c)}function F(a){var c=a.completion||{};c.type="normal";delete c.arg;a.completion=c}function A(a){this.tryEntries=[{tryLoc:"root"}];a.forEach(q,this);this.reset(!0)}function U(a){if(a){var c=a[B];if(c)return c.call(a);if("function"===typeof a.next)return a;if(!isNaN(a.length)){var b=-1;c=function N(){for(;++b<a.length;)if(y.call(a,b))return N.value=a[b],N.done=!1,N;N.value=
w;N.done=!0;return N};return c.next=c}}return{next:t}}function t(){return{value:w,done:!0}}var z=Object.prototype,y=z.hasOwnProperty,w,v="function"===typeof b?b:{},B=v.iterator||"@@iterator",E=v.asyncIterator||"@@asyncIterator",D=v.toStringTag||"@@toStringTag";v="object"===typeof a;var C=f.regeneratorRuntime;if(C)v&&(a.exports=C);else{C=f.regeneratorRuntime=v?a.exports:{};C.wrap=h;var I="suspendedStart",L="suspendedYield",J="executing",G="completed",H={};f={};f[B]=function(){return this};(v=(v=Object.getPrototypeOf)&&
v(v(U([]))))&&v!==z&&y.call(v,B)&&(f=v);var M=l.prototype=e.prototype=Object.create(f);c.prototype=M.constructor=l;l.constructor=c;l[D]=c.displayName="GeneratorFunction";C.isGeneratorFunction=function(a){return(a="function"===typeof a&&a.constructor)?a===c||"GeneratorFunction"===(a.displayName||a.name):!1};C.mark=function(a){Object.setPrototypeOf?Object.setPrototypeOf(a,l):(a.__proto__=l,D in a||(a[D]="GeneratorFunction"));a.prototype=Object.create(M);return a};C.awrap=function(a){return{__await:a}};
p(r.prototype);r.prototype[E]=function(){return this};C.AsyncIterator=r;C.async=function(a,c,b,e){var d=new r(h(a,c,b,e));return C.isGeneratorFunction(c)?d:d.next().then(function(a){return a.done?a.value:d.next()})};p(M);M[D]="Generator";M[B]=function(){return this};M.toString=function(){return"[object Generator]"};C.keys=function(a){var c=[],b;for(b in a)c.push(b);c.reverse();return function N(){for(;c.length;){var b=c.pop();if(b in a)return N.value=b,N.done=!1,N}N.done=!0;return N}};C.values=U;
A.prototype={constructor:A,reset:function(a){this.next=this.prev=0;this.sent=this._sent=w;this.done=!1;this.delegate=null;this.method="next";this.arg=w;this.tryEntries.forEach(F);if(!a)for(var c in this)"t"===c.charAt(0)&&y.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=w)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},dispatchException:function(a){function c(c,e){f.type="throw";f.arg=a;b.next=c;e&&(b.method="next",b.arg=w);return!!e}
if(this.done)throw a;for(var b=this,e=this.tryEntries.length-1;0<=e;--e){var d=this.tryEntries[e],f=d.completion;if("root"===d.tryLoc)return c("end");if(d.tryLoc<=this.prev){var l=y.call(d,"catchLoc"),h=y.call(d,"finallyLoc");if(l&&h){if(this.prev<d.catchLoc)return c(d.catchLoc,!0);if(this.prev<d.finallyLoc)return c(d.finallyLoc)}else if(l){if(this.prev<d.catchLoc)return c(d.catchLoc,!0)}else if(h){if(this.prev<d.finallyLoc)return c(d.finallyLoc)}else throw Error("try statement without catch or finally");
}}},abrupt:function(a,c){for(var b=this.tryEntries.length-1;0<=b;--b){var e=this.tryEntries[b];if(e.tryLoc<=this.prev&&y.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var d=e;break}}d&&("break"===a||"continue"===a)&&d.tryLoc<=c&&c<=d.finallyLoc&&(d=null);b=d?d.completion:{};b.type=a;b.arg=c;return d?(this.method="next",this.next=d.finallyLoc,H):this.complete(b)},complete:function(a,c){if("throw"===a.type)throw a.arg;"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval=
this.arg=a.arg,this.method="return",this.next="end"):"normal"===a.type&&c&&(this.next=c);return H},finish:function(a){for(var c=this.tryEntries.length-1;0<=c;--c){var b=this.tryEntries[c];if(b.finallyLoc===a)return this.complete(b.completion,b.afterLoc),F(b),H}},"catch":function(a){for(var c=this.tryEntries.length-1;0<=c;--c){var b=this.tryEntries[c];if(b.tryLoc===a){a=b.completion;if("throw"===a.type){var e=a.arg;F(b)}return e}}throw Error("illegal catch attempt");},delegateYield:function(a,c,b){this.delegate=
{iterator:U(a),resultName:c,nextLoc:b};"next"===this.method&&(this.arg=w);return H}}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())}).call(this,d(24)["default"],d(21).Promise)},function(a,b,d){d.r(b);d.d(b,"MapUtils",function(){return f});var f={setIfNotExists:function(a,b,d){!1===a.has(b)&&a.set(b,this.invoke(d))},getOrSet:function(a,b,d){if(a.has(b))return a.get(b);d=this.invoke(d);a.set(b,d);return d},getAndUpdate:function(a,b,d){var f=d=this.invoke(d);a.has(b)&&
(f=a.get(b));a.set(b,d);return f}}},function(a,b,d){d.r(b);d.d(b,"MathUtils",function(){return g});var f=d(4),g={toChunks:function(a,b){var d=a.slice(0),e=d.length,c=e===b?Math.round:Math.floor,l=0;return d.reduce(function(a,h,g){var m=c(b/(e/g));0<g&&1<m-l&&f["default"].warn("Invalid index "+m+": "+c(b/(e/(g-1)))+" \x3c\x3d\x3e "+c(b/(e/g)),[d.length,g,b],[d.length/g],[b/(d.length/g)]);l=m;a[m]=a[m]||[];a[m].push(h);return a},[])},split:function(a,b){return a.reduce(function(a,e,c){c=Math.floor(c/
b);a[c]=(a[c]||[]).concat(e);return a},[])},avg:function(a){return a.length?a.reduce(function(a,b){return a+b})/a.length:NaN},max:function(a){var b=NaN;if(0<a.length){var d=a.length-2;for(b=a[a.length-1];0<=d;d--)b=b>a[d]?b:a[d]}return b},random:function(a,b){void 0===a&&(a=0);return Math.round(Math.random()*b+a)}}}])["default"]}catch(a){La={error:a,scope:"recoder"}}var k={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,d;for(b=1;b<arguments.length;b++)if(arguments[b]){for(d in arguments[b])arguments[b].hasOwnProperty(d)&&(a[d]=arguments[b][d]);arguments[b].hasOwnProperty("toString")&&(a.toString=arguments[b].toString)}return a}},G=function(a){a=a||{};k.mixin(this,a);this._initComponent()};G.prototype._initComponent=function(){};G.inherit=function(a){a=a||{};var b="function"==typeof this?this:Object;a.hasOwnProperty("constructor")||(a.constructor=function(){b.apply(this,arguments)});var d=
function(){};d.prototype=b.prototype;a.constructor.prototype=new d;k.mixin(a.constructor.prototype,a);a.constructor.prototype.constructor=a.constructor;a.constructor.superclass=b.prototype;a.constructor.inherit=G.inherit;return a.constructor};k.forEachKey=function(a,b,d){for(var f in a)a.hasOwnProperty(f)&&b.call(d,f,a[f],a)};k.isEqual=function(a,b){var d=!0;k.forEachKey(a,function(a,g){b.hasOwnProperty(a)&&b[a]===g||(d=!1)});if(!d)return d;k.forEachKey(b,function(b,g){a.hasOwnProperty(b)&&a[b]===
g||(d=!1)});return d};k.getNativeFunction=function(a,b){var d;b=b||n;return(d=b.constructor&&b.constructor.prototype&&b.constructor.prototype[a]||b[a])&&"apply"in d?function(){return d.apply(b,arguments)}:function(){}};k.setTimeout=function(a,b,d){return k.getNativeFunction("setTimeout")(E(a,d||"setTimeout"),b)};var z=G.inherit({_initComponent:function(){z.superclass._initComponent.apply(this,arguments);this._listeners=[]},on:function(a,b,d,f,g){g=z._getOpts(g);b=b.split(",");var p=b.length,h=this._listeners,
m;for(m=0;m<p;m++){var e=b[m];var c=E(function(a){d.call(f||this,a||n.event)},"on"+(e||"")+(g.name||""));h[h.length]=[a,e,d,f,g,c];a.addEventListener?a.addEventListener(e,c,z._prepOpts(g)):a.attachEvent&&a.attachEvent("on"+e,c)}},un:function(a,b,d,f,g){g=z._getOpts(g);var p=this._listeners,h=p.length,m;for(m=0;m<h;m++){var e=p[m];if(e[0]==a&&e[1]==b&&e[2]==d&&e[3]==f&&k.isEqual(e[4],g)){p.splice(m,1);this._removeListener(a,b,e[5],g);break}}},unAll:function(){var a=this._listeners,b=a.length,d;for(d=
0;d<b;d++){var f=a[d];this._removeListener(f[0],f[1],f[5],f[4])}a.length=0},_removeListener:function(a,b,d,f){a.removeEventListener?a.removeEventListener(b,d,z._prepOpts(f)):a.detachEvent&&a.detachEvent("on"+b,d)}});z.supportsPassive=function(){if(z._supportsPassive!==y)return z._supportsPassive;z._supportsPassive=!1;try{var a=Object.defineProperty({},"passive",{get:function(){z._supportsPassive=!0}});n.addEventListener("test",null,a)}catch(b){}return z._supportsPassive};z._getOpts=function(a){return k.mixin({capture:!0,
passive:!0},a||{})};z._prepOpts=function(a){return z.supportsPassive()?a:!!a.capture};z.on=function(){z._instance||(z._instance=new z);z._instance.on.apply(z._instance,arguments)};z.un=function(){z._instance&&z._instance.un.apply(z._instance,arguments)};var v={UNLOAD_MS:0,isPerfomance:n.performance&&n.performance.timing&&n.performance.timing.navigationStart&&n.performance.now,getMs:function(){return 0<this.UNLOAD_MS?this.UNLOAD_MS:this.isPerfomance?Math.round(n.performance.timing.navigationStart+
n.performance.now()):v.oldMs()},getFormStart:function(){return this.isPerfomance?Math.round(n.performance.now()):this.getMs()-this.initTime}};v.oldMs=Date.now?Date.now:function(){return(new Date).getTime()};v.initTime=v.getMs();z.on(n,"beforeunload,unload",function(){0===v.UNLOAD_MS&&(v.UNLOAD_MS=v.getMs())});k.pad=function(a){return(10>a?"0":"")+a};v.getTimestamp=function(){var a=new Date;a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()];var b="",d;for(d=0;d<
a.length;d++)b+=k.pad(a[d]);return b};v.getTimezone=function(){return-(new Date).getTimezoneOffset()};v.getMinutes=function(){return Math.floor(this.getMs()/1E3/60)};v.getSeconds=function(){return Math.round(this.getMs()/1E3)};v.isPerfomance||(v.deltaTime=0,v.lastNowTime=0,v.correctTime=0,v.timeCorrector=function(a){v.correctTime=v.getMs();a&&v.correctTime<v.lastTime&&(v.deltaTime+=a-v.correctTime+20);k.setTimeout(function(){v.timeCorrector(v.correctTime)},20,"timeCorrector")});v.initCorrector=function(){v.isPerfomance||
v.timeCorrector(0)};v.nowTime=function(){if(this.isPerfomance)return this.getMs();var a=this.getMs()+v.deltaTime;a<v.lastNowTime&&(a+=v.lastNowTime+10);return v.lastNowTime=a};v.nowEventTime=function(){return Math.round((v.nowTime()-v.initTime)/50)};k.toString=function(a){return Object.prototype.toString.call(a)};k.isFunction=function(a){return"function"===typeof a};k.isArray=function(a){return"function"===k.isFunction(Array.isArray)?Array.isArray(a):"[object Array]"===k.toString(a)};k.mergeArrays=
function(a){var b,d,f=arguments.length;for(b=1;b<f;b++){var g=arguments[b];if(k.isArray(g)||g&&"[object Arguments]"===g.toString())for(d=0;d<g.length;d++)a[a.length]=g[d]}return a};k.defer=function(a,b,d,f,g){return k.setTimeout(function(){a.apply(d,f||[])},b,g)};k.throttle=function(a,b,d,f){var g,p,h;return function(){p=arguments;h=this;g||function(){g=null;p&&(a.apply(d||h,p),p=null,g=k.setTimeout(arguments.callee,b,f))}()}};var za=G.inherit({storage:null,storageKey:"dataBuffer",store:{_keys:[],
_values:[],get:function(a){a=k.arrayIndexOf(this._keys,a);return-1==a?null:this._values[a]},set:function(a,b){this._keys.push(a);this._values.push(b)},pop:function(a){a=k.arrayIndexOf(this._keys,a);if(-1==a)return null;var b=this._values[a];this._keys.splice(a,1);this._values.splice(a,1);return b}},maxBufferSize:255,flushTimeout:1E4,startBufferTime:0,active:!0,meta:null,onFlush:function(){},onFlushCtx:null,bufferExpireTime:864E5,_initComponent:function(){var a;za.superclass._initComponent.apply(this,
arguments);this.wrappers=[];this._data=[];this._packetNumber=0;this._flushTID=null;this._saveToStorageThrottled=k.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>+v.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){k.mergeArrays(a,b)},updateStamp:function(a,b){a.stamp!==y&&(b.stamp=a.stamp,"eof"!==a.type&&delete a.stamp)},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=k.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:v.getMs()})}}),
sb="ru ua by kz az kg lv md tj tm uz ee fr co.il com.ge com.am com.tr".split(" "),B={storage:{},init:function(){var a=this;E(function(){n.Ya=n.Ya||{};n.Ya._metrika=n.Ya._metrika||{};a.storage=n.Ya._metrika},"",!0)();return this},setSafe:function(a,b){var d=this;E(function(){d.storage[a]===y&&(d.storage[a]=b)},"",!0)();return this},set:function(a,b){E(function(){n.Ya._metrika[a]=b},"",!0)();return this},get:function(a,b){return E(function(){var d=n.Ya._metrika[a];return d===y?b:d},"",!0)()}};k.async=
function(a,b,d){if(n.postMessage){var f="__ym__promise"+Math.random()+"_"+v.getMs();var g=function(d){try{var h=d.data}catch(m){return}h===f&&(d.stopPropagation&&d.stopPropagation(),a.call(b),z.un(n,"message",g,null,{passive:!1}))};z.on(n,"message",g,null,{passive:!1,name:".async."+(d||"")});n.postMessage(f,"*")}else k.setTimeout(function(){a.call(b)},0)};var Nb=G.inherit({transports:[],globalConfig:B,postParams:[],isDisabled:function(){return this.globalConfig.get("oo")},send:function(a,b,d,f){var g=
[a],p=this,h=d||function(){};p.isDisabled()?h.call(f):function c(a){if(a<this.transports.length)try{var e=new this.transports[a]({postParams:this.postParams,queryStringParams:this.queryStringParams});b["browser-info"]=e.logInfo(b["browser-info"]);(function T(d){d>=g.length?e.blockNext()||c.call(this,a+1):e.request(g[d],b,function(a,c,b){a?h.call(f,c,b):k.async(function(){T.call(p,d+1)},this,"senderCall")},this)}).call(this,0)}catch(u){Wa(u,"send by "+(e&&e.id)),c.call(this,a+1)}}.call(this,0)}}),
Aa={};k.keys=function(a){var b,d=[];for(b in a)a.hasOwnProperty(b)&&d.push(b);return d};k.map=function(a,b){var d,f=[];for(d=0;d<b.length;d++)f.push(a(b[d],d));return f};Aa.stringify=function(a,b){var d=[],f=b||{},g={},p=k.keys(a).length,h,m;if(f.lastOrdering!==y)for(m=1;m<=b.lastOrdering.length;m++)g[b.lastOrdering[m-1]]=p+m;if(f.firstOrdering!==y)for(m=0;m<b.firstOrdering.length;m++)g[b.firstOrdering[m]]=m;for(h in a)if(a.hasOwnProperty(h))if(f=a[h],k.isArray(f))for(m=0;m<f.length;m++)d.push({key:h,
value:encodeURIComponent(h)+"\x3d"+encodeURIComponent(String(f[m]))});else d.push({key:h,value:encodeURIComponent(h)+"\x3d"+encodeURIComponent(String(f))});d.sort(function(a,c){var b=g[a.key],e=g[c.key];"undefined"===typeof b&&(b=p);"undefined"===typeof e&&(e=p);return b-e});return k.map(function(a){return a.value},d).join("\x26")};k.inArray=function(a,b){var d;for(d=0;d<a.length;d++)if(a[d]==b)return!0;return!1};var Ba=G.inherit({postParams:[],index:0,blockNext:function(){return!1},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 d=Aa.stringify(b,this.queryStringParams);return a+(-1<a.indexOf("?")?"\x26":d?"?":"")+d},_splitParams:function(a){var b={},d={};k.forEachKey(a,function(a,g){k.inArray(this.postParams,a)?d[a]=g:b[a]=g},this);return{get:b,post:d}},_parseResp:function(a){return a}}),Ha=Ba.inherit({id:"XHR",index:7,method:"POST",withCredentials:!0,request:function(a,b,d,f){var g=this,p;if(/[^a-z0-9.:-]/.test(I.host)&&
n.opera&&"function"===typeof n.opera.version){var h=n.opera.version();if("string"===typeof h&&"12"===h.split(".")[0])return d.call(f,!1)}if(n.XMLHttpRequest){var m=new XMLHttpRequest;if("withCredentials"in m){b=this._splitParams(b);a=this._buildUrl(a,b.get);try{m.open(this.method,a,!0)}catch(e){return d.call(f,!1)}m.withCredentials=this.withCredentials;this._setHeaders(m);m.send(this._preparePostParams(b));m.onreadystatechange=function(){if(4===m.readyState){try{p=g._parseResp(m.responseText)}catch(e){return d.call(f,
!1)}d.apply(f,[200===m.status].concat(p))}};return}}d.call(f,!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")}}),w={};k.memorize=function(a,b){var d="memorize";return function(){"memorize"===d&&(d=a.apply(b||this,arguments));return d}};w.isAndroidWebView=E(function(){var a=navigator.userAgent||"";return a.match(/Android.*Version\/[0-9][0-9.]*\sChrome\/[0-9][0-9.]/)||
a.match(/Android.*Version\/[0-9][0-9.]*\s(?:Mobile\s)?Safari\/[0-9][0-9.]*\sChrome\/[0-9][0-9.]*/)||a.match(/; wv\).*Chrome\/[0-9][0-9.]*\sMobile/)},"isAndroidWebView");var Ob=Ba.inherit({id:"beacon",index:1,request:function(a,b,d,f){"function"===typeof navigator.sendBeacon&&!w.isAndroidWebView()&&navigator.onLine?(b=this._splitParams(b),b.get["force-urlencoded"]=1,d.call(f,navigator.sendBeacon(this._buildUrl(a,b.get),Aa.stringify(b.post)))):d.call(f,!1)}});k.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 Ia=Ba.inherit({id:"form",index:2,enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){Ia.superclass._initComponent.apply(this,arguments);"_htmlfile"in Ia.prototype||(Ia.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:q)},request:function(a,b,d,f){var g=this._doc;if(!g)return d.call(f,!1);b=this._splitParams(b);var p="ifr"+k.random();
var h=g.createElement("div");h.style.position="absolute";h.style.left="-99999px";h.style.top="-99999px";var m=['\x3ciframe name\x3d"',p,'"\x3e\x3c/iframe\x3e','\x3cform action\x3d"',this._buildUrl(a,b.get),'" method\x3d"post" target\x3d"',p,'" enctype\x3d"',this.enctype,'"\x3e'];k.forEachKey(b.post,function(a){k.mergeArrays(m,['\x3cinput type\x3d"hidden" autocomplete\x3d"off" autocorrect\x3d"off"',' autocapitalize\x3d"off" spellcheck\x3d"false" name\x3d"',a,'"/\x3e'])});k.mergeArrays(m,["\x3c/form\x3e"]);
h.innerHTML=m.join("");g.body.appendChild(h);var e=h.getElementsByTagName("form")[0];k.forEachKey(b.post,function(a,b){e[a].value=b});e.submit();k.setTimeout(function(){g.body.removeChild(h)},1E4,"TransportForm.request.2");return d.call(f,!0,"tf.request")},_createHtmlfile:function(){try{if(n.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}}),Pb=Ia.inherit({id:"htmlfile",index:3,htmlfileOnly:!0}),
va=Ba.inherit({id:"img",index:4,request:function(a,b,d,f){a=this._buildUrl(a,b);var g=!1;b=q.createElement("img");d=d||function(){};b.onload=E(function(){g||(d.call(f,!0),g=!0)},"TransportImage.request");b.onerror=E(function(){g||(d.call(f,!1),g=!0)},"TransportImage.request");b.src=a;this.timeout&&k.setTimeout(function(){g||(d.call(f,!1),g=!0)},this.timeout,"ti.request")}}),sa={stringify:function(a){try{var b=JSON.stringify(a)}catch(d){}return k.inArray(["{}",y],b)?"null":b}};k.toJSON=function(a){var b;
if(a===y)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 d=[];var f=0;for(b=a.length;f<b;f++)d[d.length]=k.toJSON(a[f]);return"["+d.join(",")+"]";case Object:d=[];for(f in a)a.hasOwnProperty(f)&&a[f]!==y&&(d[d.length]=k.toJSON(f)+":"+k.toJSON(a[f]));return"{"+d.join(",")+"}";default:return sa.stringify(a)}};
var ca=G.inherit({counterId:"",_initComponent:function(){ca.superclass._initComponent.apply(this,arguments);this._ls=null;try{this._ls=n.localStorage}catch(a){}},set:function(a,b){if(this.isEnabled())try{!b||b&&k.isArray(b)&&!b.length?this.remove(a):this._ls.setItem(this._getLsKey(a),k.toJSON(b))}catch(d){}},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&&n.JSON&&"object"==typeof this._ls&&"object"==typeof n.JSON},getStorageId:function(){var a=this.get("lsid");a||(a=Math.round(Math.random()*v.getMs()),this.set("lsid",a));return a},clearStorageId:function(){this.remove("lsid")},_getLsKey:function(a){return"_ym"+this.counterId+"_"+a}});k.fnv32a=function(a){var b=2166136261,d;var f=0;for(d=a.length;f<d;++f)b^=a.charCodeAt(f),b+=(b<<1)+(b<<4)+(b<<7)+(b<<8)+(b<<24);return b>>>0};k.getTld=function(){if(!this._tld){var a=
I.hostname.split(".");this._tld=a[a.length-1]}return this._tld};var pa={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/\x3d",tailSafe:"*-_"},J=G.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){var a;J.superclass._initComponent.apply(this,arguments);this._domain=null;if(!this.onlyCurrentDomain){var b=n.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,d){a=[this._prepareName(a)+"\x3d"+encodeURIComponent(b)];d&&(b=new Date,b.setTime(b.getTime()+6E4*d),a.push("expires\x3d"+b.toGMTString()));this._domain&&a.push("domain\x3d"+this._domain);a.push("path\x3d/");try{q.cookie=a.join(";")}catch(f){}},read:function(a){try{var b=q.cookie}catch(d){}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.get=function(a){return(new J({onlyCurrentDomain:!0})).read(a)};J.set=function(a,b,d){return(new J({onlyCurrentDomain:!0})).create(a,b,d)};J.isEnabled=function(){return(new J({onlyCurrentDomain:!0})).isEnabled()};var t={removeNode:function(a){var b=a&&a.parentNode;b&&b.removeChild(a)}};w.isSafariWebView=E(function(){var a=
navigator.userAgent||"";return navigator.vendor&&-1<navigator.vendor.indexOf("Apple")&&(!a.match(/Safari/)&&a.match(/Mobile/)||a.match(/CFNetwork\/[0-9][0-9.]*.*Darwin\/[0-9][0-9.]*/)||-1!==a.indexOf("FB_IAB")||-1!==a.indexOf("FBAV")||-1!==a.indexOf("OKApp")||-1!==a.indexOf("GSA/"))},"isSafariWebView");w.isSafari=function(){try{return navigator.vendor&&-1<navigator.vendor.indexOf("Apple")&&navigator.userAgent&&!navigator.userAgent.match("CriOS")}catch(a){}return!1};w.getMacOSVersion=E(function(){var a=
navigator.userAgent.match(/Mac OS X ([0-9]+)_([0-9]+)_([0-9]+)/);return a?[+a[1],+a[2],+a[2]]:[0,0,0]},"",!0);w.getPlatform=E(function(){return""+navigator.platform},"",!0);w.isIOS=E(function(){var a=w.getPlatform()||"";return"iPhone"===a||"iPad"===a},"",!0);w.isFF=E(function(){return n&&n.document&&n.document.documentElement&&n.document.documentElement.style?"MozAppearance"in n.document.documentElement.style&&"undefined"!==typeof n.InstallTrigger:!1},"isFF");var Ma={_storage:new ca,_cookie:new J,
key:"zzlc",updateInfo:function(a){k.forEachKey(this.getInfoFlags(),function(b,d){var f=d.call(this);f&&(a[b]=f)},this);return a},getZZ:function(){return this._storage.get(this.key)?this._storage.get(this.key):this.zz},getPP:function(){return this.globalConfig&&this.globalConfig.get("pp")?this.globalConfig.get("pp"):this.pp},getPU:function(){return this.globalConfig&&this.globalConfig.get("pu")?this.globalConfig.get("pu"):this.pu},getFip:function(){if(this._storage.get(this.fipKey))return this._storage.get(this.fipKey)},
getInfoFlags:function(){return{zz:this.getZZ,pp:this.getPP,pu:this.getPU,fip:this.getFip}},checkVersion:function(){var a=w.getMacOSVersion();return!((w.isIOS()||10<=a[0]&&13<=a[2])&&w.isSafari())||w.isSafariWebView()},noop:function(){},genPu:function(a){var b=k.fnv32a(n.location.host)+this._cookie.read("uid");this.pu=b;a.set("pu",b);return b},initPU:function(a,b){var d=this;b.get("pu")!==y||this.checkVersion()||(this.globalConfig=b,b.setSafe("pu",null),a.addHandler("gpu-get",function(){return{type:"gpu-get",
pu:b.get("pu")}},this),n.opener?(k.setTimeout(function(){d.genPu(b)},200,"pu"),a.sendToIframe(n.opener,{type:"gpu-get"},this.handleGpu,this)):this.genPu(b))},handleGpu:function(a){if(a=a.pu)this.pu=a,this.globalConfig.set("pu",a)},onicecandidate:E(function(a){var b;try{var d=(b=a.localDescription.sdp)&&b.match(/c=IN\s[\w\d]+\s([\w\d:.]+)/)}catch(f){a.onicecandidate=this.noop;"closed"!==a.iceConnectionState&&a.close();return}d&&0<d.length&&(this.pp=k.fnv32a(d[1]),this.globalConfig.set("pp",this.pp));
a.onicecandidate=this.noop;a.close()},"wrt"),onOffer:function(a,b){k.isFunction(a.setLocalDescription)&&a.setLocalDescription(b,this.noop,this.noop)},initPP:E(function(a){var b=n.RTCPeerConnection||n.mozRTCPeerConnection||n.webkitRTCPeerConnection;this.globalConfig=a;if(n.navigator.onLine&&b&&a.get("pp")==y&&(this.globalConfig.setSafe("pp",null),b&&b.prototype&&b.prototype.constructor&&b.prototype.constructor.name)){try{var d=new b({iceServers:[]});d.createDataChannel("y.metrika")}catch(g){return}if(k.isFunction(d.createOffer)&&
!d.createOffer.length){try{var f=d.createOffer()}catch(g){return}k.isFunction(f.then)&&f.then(k.bind(this.onOffer,this,d));d.onicecandidate=k.bind(this.onicecandidate,this,d)}}},"rcinit"),initZZ:function(){var a=this;if(!this.getZZ()&&!this.checkVersion()){var b=k.getNativeFunction("createElement",q)("iframe");b.style.display="none";b.style.width="1px";b.style.height="1px";b.style.visibility="hidden";b.src="https://mc.yandex.ru"+pa.decode("L21ldHJpa2EvenpsYy5odG1s");n.document.documentElement.appendChild(b);
z.on(n,"message",this.onMessage,this,{passive:!1});this.frame=b;this.timeout=k.setTimeout(function(){z.un(n,"message",a.onMessage,a,{passive:!1});t.removeNode(a.frame);a.zz="na"},3E3,"cd.initZZ")}},onMessage:function(a){a.data&&a.data.substr&&"__ym__zz"===a.data.substr(0,8)&&(this.zz=a.data.substr(8),t.removeNode(this.frame),this._storage.set(this.key,this.zz),z.un(n,"message",this.onMessage,this,{passive:!1}),clearTimeout(this.timeout))},fipKey:"fip",fpFactors:["webGL","plugins","applePay","dnt"],
initFip:function(){if(Object.keys&&!this.checkVersion()&&!this._storage.get(this.fipKey)){var a=new eb(k.reduce(function(a,d){a[d]=1;return a},{},this.fpFactors));a=a.toString(!1).join("-");this._storage.set(this.fipKey,a)}}},X=Nb.inherit({protocol:"",host:"mc.yandex.ru",queryStringParams:{firstOrdering:["wmode","callback","cnt-class"],lastOrdering:["browser-info"]},resource:"",counterId:"",counterType:0,retry:!1,transports:[Ob,Ha,va,Pb],_initComponent:function(){X.superclass._initComponent.apply(this,
arguments);this.retry&&(this._storage=new ca)},send:function(a,b,d,f){var g=this.globalConfig.get(wa.globalKey),p=this;g&&3!==this.counterId?g(function(){var h=p._registerRequest(a,b);p._sendSavedRequest(h,a,b,d,f)},a):(g=p._registerRequest(a,b),p._sendSavedRequest(g,a,b,d,f))},_sendSavedRequest:function(a,b,d,f,g){var p=this.globalConfig.get("firstReqStatus"),h=b.forceNoRedirect;if("process"==p)this.globalConfig.set("firstReqCallbacks",k.mergeArrays(this.globalConfig.get("firstReqCallbacks")||[],
[[this,arguments]]));else{p||this.globalConfig.set("firstReqStatus","process");this.counterType&&(b["cnt-class"]=this.counterType);this.globalConfig.get("pri")&&(d.pri=this.globalConfig.get("pri"));d.st=v.getSeconds();d.u=X._userID;d=Ma.updateInfo(d);p=[this.protocol,"//",this.host,"/",this.resource,"/",this.counterId,h?"/1":""].join("");delete b.forceNoRedirect;var m=[];d&&(k.forEachKey(d,function(a,c){"t"!=a&&k.mergeArrays(m,[a,c])}),d.t&&k.mergeArrays(m,["t",d.t]));m.length&&(b["browser-info"]=
m.join(":"));return X.superclass.send.call(this,p,b,function(){var b;this.globalConfig.set("firstReqStatus","complete");this._unregisterRequest(a);var c=this.globalConfig.get("firstReqCallbacks");this.globalConfig.set("firstReqCallbacks",null);if(c)for(b=0;b<c.length;b++)c[b][0]._sendSavedRequest.apply(c[b][0],c[b][1]);f&&f.apply(g,arguments)},this)}},_isRetryEnabled:function(){return this.retry&&this._storage&&this._storage.isEnabled()},_registerRequest:function(a,b){var d;if(this._isRetryEnabled()){b.rqnl=
b.rqnl||0;b.rqnl++;var f=this._storage.get("retryReqs")||{};for(d=1;f[d];)d++;f[d]={protocol:this.protocol,host:this.host,resource:this.resource,counterId:this.counterId,counterType:this.counterType,postParams:this.postParams,params:a,browserInfo:b,ghid:this.globalConfig.get("_globalMetrikaHitId"),time:v.getMs()};this._storage.set("retryReqs",f);return d}},_unregisterRequest:function(a){if(a&&this._isRetryEnabled()){var b=this._storage.get("retryReqs")||{};b[a]&&(delete b[a],this._storage.set("retryReqs",
b))}},_getVersion:E(function(){return Ca},"",!0)});X._storage=new ca;X.initCookie=function(){var a=new J,b=a.read("uid"),d=a.read("d"),f=v.getSeconds();if(!b)b=f+""+k.random(),a.create("uid",b,525600),a.create("d",f,525600);else if(!d||15768E3<f-parseInt(d))a.create("uid",b,525600),a.create("d",f,525600);X._userID=b};X.retransmit=function(a){var b=X._storage,d=b.get("retryReqs")||{},f;b.remove("retryReqs");k.forEachKey(d,function(b,d){var h=v.getMs();a.get("firstReqStatus")||a.set("firstReqStatus",
"complete");d.ghid&&d.ghid!=a.get("_globalMetrikaHitId")&&d.time&&d.time+864E5>h&&500<h-d.time&&2>=d.browserInfo.rqnl&&(f=new X({protocol:d.protocol,host:d.host,resource:d.resource,counterId:d.counterId,counterType:d.counterType,postParams:d.postParams||[],retry:!0}),f.send(d.params,d.browserInfo))})};k.fletcher=function(a){for(var b=a.length,d=0,f=255,g=255,p,h,m;b;){p=21<b?21:b;b-=p;do h="string"==typeof a?a.charCodeAt(d):a[d],d++,255<h&&(m=h>>8,h&=255,h^=m),f+=h,g+=f;while(--p);f=(f&255)+(f>>8);
g=(g&255)+(g>>8)}a=(f&255)+(f>>8)<<8|(g&255)+(g>>8);return 65535==a?0:a};pa.encode=function(a,b){var d=(pa.abc+(b?pa.tailSafe:pa.tail)).split(""),f=a.length,g=[],p=f-f%3,h;for(h=0;h<p;h+=3){var m=(a[h]<<16)+(a[h+1]<<8)+a[h+2];k.mergeArrays(g,[d[m>>18&63],d[m>>12&63],d[m>>6&63],d[m&63]])}switch(f-p){case 1:m=a[p]<<4;k.mergeArrays(g,[d[m>>6&63],d[m&63],d[64],d[64]]);break;case 2:m=(a[p]<<10)+(a[p+1]<<2),k.mergeArrays(g,[d[m>>12&63],d[m>>6&63],d[m&63],d[64]])}return g.join("")};k.arrayEvery=function(a,
b,d){var f;for(f=0;f<a.length;f++)if(!b.call(d,a[f],f,a))return!1;return!0};k.is4Bytes=function(a){return!k.arrayEvery((encodeURIComponent(a).match(/(%[A-F,\d]{2})+/g)||[]).join("").split("%"),function(a){return 240>parseInt(a,16)})};k.trim=function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};k.isNumber=function(a){return isFinite(a)&&!isNaN(a)&&"[object Number]"===k.toString(a)};k.isString=function(a){return"[object String]"===k.toString(a)};k._hasIndexOf=
[].indexOf&&0===[y].indexOf(y);k.arrayIndexOf=k._hasIndexOf?function(a,b){return a.indexOf(b)}:function(a,b){var d;for(d=0;d<a.length;d++)if(a[d]===b)return d;return-1};k.warning=function(){n.console&&"function"===typeof n.console.warn&&console.warn.apply(console,arguments)};k.isObject=function(a){try{return a&&null!==a&&"[object Object]"===k.toString(a)}catch(b){return!1}};k._urlParser=null;k.parseUrl=function(a){if(!this._urlParser)try{this._urlParser=q.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}):{}};k._playerRegexp=/^.+\.mtproxy\.yandex\.net$/;k.isMetrikaPlayer=function(){return"MetrikaPlayer"==n.name||this._playerRegexp.test(n.location.hostname)};
t.getDocumentCharset=function(){return(""+(q.characterSet||q.charset||"")).toLowerCase()};t.getBody=function(){for(var a=q.getElementsByTagName("body");0<a.length;)return a[0]};t.getRootElement=function(){var a=q.documentElement,b=t.getBody();return"CSS1Compat"==q.compatMode?a:b||a};t.getViewportSize=function(){var a=t.getRootElement();return[a.clientWidth||n.innerWidth,a.clientHeight||n.innerHeight]};t.getDocumentTitle=function(){var a=q.title;"string"!=typeof a&&(a=(a=q.getElementsByTagName("title"))&&
a.length?a[0].innerHTML:"");return a};w.getSilverlightVersion=k.memorize(function(){if(n.ActiveXObject)try{var a=new ActiveXObject("AgControl.AgControl");var b=function(a,b,f,e){for(;d(a,b);)b[f]+=e;b[f]-=e};var d=function(a,b){return a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3])};var f=[1,0,0,0];b(a,f,0,1);b(a,f,1,1);b(a,f,2,1E4);b(a,f,2,1E3);b(a,f,2,100);b(a,f,2,10);b(a,f,2,1);b(a,f,3,1);var g=f.join(".")}catch(p){}else if(b=n.navigator,b=b.plugins&&b.plugins["Silverlight Plug-In"])g=b.description;
return g||""});w.getFlashVersion=k.memorize(function(){var a=n.navigator;if("undefined"!=typeof a.plugins&&"object"==typeof a.plugins["Shockwave Flash"]){var b=a.plugins["Shockwave Flash"];var d=b.version;if((b=b.description)||d)if(a=a.mimeTypes,"undefined"==typeof a||!a["application/x-shockwave-flash"]||a["application/x-shockwave-flash"].enabledPlugin)d?w._flashVersion=d:b&&(w._flashVersion=b.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,"."))}else if("undefined"!=typeof n.ActiveXObject)try{if(d=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=d.GetVariable("$version"))w._flashVersion=b.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,"")}catch(f){}return w._flashVersion});w.getLanguage=k.memorize(function(){var a=(n.navigator?navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage:"").toLowerCase();return k.isString(a)?a:""});w.getJavaEnabled=k.memorize(function(){try{return navigator.javaEnabled()}catch(a){return!1}});w.getFingerPrint=k.memorize(function(){var a=
[],b;if(navigator.plugins&&navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++){var d=navigator.plugins[b];k.mergeArrays(a,[d.name,d.version,d.description,d.filename])}if(navigator.mimeTypes&&navigator.mimeTypes.length)for(b=0;b<navigator.mimeTypes.length;b++)d=navigator.mimeTypes[b],k.mergeArrays(a,[d.type,d.description,d.suffixes]);return k.fnv32a(a.join(";"))+"01"});w.getNotificationPermission=function(){try{var a=Notification.permission}catch(b){}switch(a){case "denied":return 1;case "granted":return 2}};
w.isIframe=k.memorize(function(){try{return n.top!=n.self}catch(a){return!1}});w._nMap={other:"0",none:"1",unknown:"2",wifi:"3",ethernet:"4",bluetooth:"5",cellular:"6",wimax:"7",mixed:"8"};w.netType=function(){var a=(navigator.connection||{type:""}).type;return w._nMap[a]||a};w.isHeadLess=k.memorize(function(){var a,b=["_phantom","__nightmare","callPhantom"];for(a=0;a<b.length;a++)if(n[b[a]])return!0;return/PhantomJS/.test(n.navigator.userAgent)||n.navigator.webdriver||n.isChrome&&!n.chrome?!0:/HeadlessChrome/.test(n.navigator.userAgent)});
w.getNavigationStart=k.memorize(function(){var a=n.performance||n.webkitPerformance;return a&&a.timing&&a.timing.navigationStart});w.isSameOriginTopFrame=function(){try{return n.top.contentWindow||!0}catch(a){return!1}};w.isDesktop=function(a){var b=a.get("bt",{});a.get("bt")===y&&(b.p=navigator.getBattery?navigator.getBattery():null,a.set("bt",b),b.p&&b.p.then&&b.p.then(function(a){b.v=a.charging&&0===a.chargingTime}));return b.v};w.isSelenium=k.memorize(function(){var a=["_selenium","callSelenium",
"_Selenium_IDE_Recorder"],b=["selenium","webdriver","driver"],d,f=n.document,g="__webdriver_evaluate __selenium_evaluate __webdriver_script_function __webdriver_script_func __webdriver_script_fn __fxdriver_evaluate __driver_unwrapped __webdriver_unwrapped __driver_evaluate __selenium_unwrapped __fxdriver_unwrapped".split(" ");for(d=0;d<a.length;d++)if(n[a[d]])return!0;for(d=0;d<g.length;d++)if(f&&f[g[d]])return!0;if(n.external&&n.external.toString&&0<=n.external.toString().indexOf("Sequentum"))return!0;
if(f.documentElement&&f.documentElement.getAttribute)for(d=0;d<b.length;d++)if(f.documentElement.getAttribute(b[d]))return!0;return!1});z.ready=function(a){var b=q.readyState;if("interactive"===b||"complete"===b)k.setTimeout(a,0,"evt::ready");else{var d=function(){z.un(q,"DOMContentLoaded",d);z.un(n,"load",d);a()};z.on(q,"DOMContentLoaded",d);z.on(n,"load",d)}};var tb={url:"https://mc.yandex.ru/metrika/",_value:null,init:function(a){var b=this._getLs().read("isad");this.globalConfig=a||B;b?this._set(b):
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");z.ready(function(){var b=q.createElement("img");b.onload=function(){a._saveReq(!1);t.removeNode(this)};b.onerror=function(){a._saveReq(!0);t.removeNode(this)};b.src=a.url+String.fromCharCode(97,100,118,101,114,116,46,103,105,102);w.isSafari()&&(b.style.position="absolute",b.style.visibility="hidden",b.style.width="0px",
b.style.height="0px",t.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{this.globalConfig.set("adStatus",a)}catch(b){}},_getReqStatus:function(){try{return this.globalConfig.get("adStatus")}catch(a){return"complete"}},_getLs:function(){this._ls||(this._ls=new J);return this._ls}},fb={encode:function(a){var b=[],d;var f=0;for(d=a.length;f<d;f++){var g=a.charCodeAt(f);128>
g?b.push(g):(127<g&&2048>g?b.push(g>>6|192):(b.push(g>>12|224),b.push(g>>6&63|128)),b.push(g&63|128))}return b},decode:function(a){for(var b="",d=0,f,g,p;d<a.length;)f=a.charCodeAt(d),128>f?(b+=String.fromCharCode(f),d++):191<f&&224>f?(g=a.charCodeAt(d+1),b+=String.fromCharCode((f&31)<<6|g&63),d+=2):(g=a.charCodeAt(d+1),p=a.charCodeAt(d+2),b+=String.fromCharCode((f&15)<<12|(g&63)<<6|p&63),d+=3);return b}};pa.decode=function(a,b){for(var d=pa.abc+(b?pa.tailSafe:pa.tail),f=0,g="",p,h,m,e,c;a.length%
4;)a+="\x3d";do{p=d.indexOf(a.charAt(f++));h=d.indexOf(a.charAt(f++));e=d.indexOf(a.charAt(f++));c=d.indexOf(a.charAt(f++));if(0>p||0>h||0>e||0>c)return null;m=p<<18|h<<12|e<<6|c;p=m>>16&255;h=m>>8&255;m&=255;g=64==e?g+String.fromCharCode(p):64==c?g+String.fromCharCode(p,h):g+String.fromCharCode(p,h,m)}while(f<a.length);return g};k.reduce=function(a,b,d){var f=0;b==y&&(b=d[0],f++);for(;f<d.length;)b=a(b,d[f]),f++;return b};k.filter=function(a,b){var d,f=[];for(d=0;d<b.length;d++)a(b[d])&&f.push(b[d]);
return f};sa.parse=function(a){try{return JSON.parse(a)}catch(b){return null}};var Na=X.inherit({hitId:0,trackHash:!1,trimParams:!1,webvisor:!1,counter:null,counterNum:0,resource:"watch",retry:!0,paramsQueue:{paramsQueue:[],length:function(){return this.paramsQueue.length},push:function(a){this.paramsQueue.push(a)},_reduce:function(a){return function(b,d){k.arrayEvery(k.keys(d),function(f){if(b.hasOwnProperty(f))return 1;-1==k.arrayIndexOf(a,f)&&(b[f]=d[f],delete d[f]);return 1});return b}},_filter:function(a){return k.keys(a).length},
mixin:function(a){var b={};this.paramsQueue.length&&(b=k.reduce(this._reduce(k.keys(a)),{},this.paramsQueue),this.paramsQueue=k.filter(this._filter,this.paramsQueue));return k.mixin({},a,b)}},postParams:["site-info"],countersNoTitle:"22836271 1143050 29626870 9928105 26128362 29850769".split(" "),fake:!1,sendTitle:!0,_initComponent:function(){Na.superclass._initComponent.apply(this,arguments);this._trackHash=this.trackHash;"0"===""+this.counterType&&(this.sendTitle=-1===k.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:k.mixin(a.modes||{},{ar:!0,saveRef:!0,pv:!0}),callback:a.callback,hasPrerender:a.hasPrerender,ctx:a.ctx},"hit")},sendExperiments:function(a){this._hitExt({url:L().href,title:"",referrer:"",modes:{ex:!0,ar:!0},experiments:a.experiments,callback:a.callback,ctx:a.ctx},"exp")},sendPrerenderHit:function(a){this._hitExt({url:a.url,vParams:a.vParams,
title:a.title,referrer:a.referrer,modes:{ar:!0,pq:!0}},"hit")},sendAjaxHit:function(a){this._hitExt({url:a.url,title:a.title,referrer:a.referrer,modes:a.modes},"hit")},sendParams:function(a,b,d,f){this._hitExt({url:f||L().href,title:"",referrer:"",forceNoRedirect:!0,vParams:a,modes:{ar:!0,pa:!0,onlyData:!0},callback:b,ctx:d},"pa")},sendGoal:function(a,b){if(/[/&=?#]/.test(a))k.warning("Incorrect goal");else if(a){var d=b.url?k.parseUrl(b.url):L();this._hitExt({url:"goal://"+d.hostname+"/"+encodeURIComponent(a),
title:t.getDocumentTitle(),referrer:d.href,forceNoRedirect:!0,vParams:b.vParams,modes:{ar:!0},callback:b.callback,ctx:b.ctx},"go")}else k.warning("Empty goal")},sendClickLink:function(a,b){this._hitExt({url:a.url,title:a.title,referrer:b||L().href,modes:a.modes})},sendExtLink:function(a,b){this._hitExt({url:a.url,title:a.title||"",referrer:b||L().href,vParams:a.vParams,modes:{ar:!0,ln:!0,ut:gb},callback:a.callback,ctx:a.ctx},"cl")},sendFileUpload:function(a){this._hitExt({url:a.url,title:a.title||
"",referrer:L().href,vParams:a.vParams,modes:{ar:!0,ln:!0,dl:!0},callback:a.callback,ctx:a.ctx},"fu")},sendNotBounce:function(a,b){this._hitExt({url:b.url||L().href,title:"",referrer:"",modes:{cl:a,ar:!0,nb:!0,onlyData:!0},callback:b.callback,ctx:b.ctx},"nb")},sendDevice:function(a){this._hitExt({browserInfo:{di:a.data,dip:a.port},callback:a.callback,ctx:a.ctx},"de")},_hitExt:function(a,b){function d(a,c){c&&(u[a]=c)}var f,g,p,h={};if(!k.isMetrikaPlayer()){var m=a.modes||{};var e=a.browserInfo||{};
var c="undefined"!==typeof a.referrer?a.referrer:Sa.lastReferrer;var l=a.url||"";var u={};a.nohit&&d("nohit",1);m.ar&&!m.onlyData&&(c=null===c||""===c?"":this._prepareHitUrl(c),l=this._prepareHitUrl(a.url));d("forceNoRedirect",a.forceNoRedirect);d("page-ref",k.trim(c,hb));d("page-url",k.trim(l,hb));k.is4Bytes(a.title)&&d("charset","utf-8");-1!=L().hostname.search(/(?:^|\.)(?:ya|yandex)\.(?:\w+|com?\.\w+)$/)?d("ut",gb):"undefined"!=typeof m.ut&&d("ut",k.trim(m.ut,Qb));d("exp",a.experiments);(g=a.vParams)&&
this.counter&&g.__ym&&(k.isNumber(g.__ym.turbo_page)&&(this.counter.tp=g.__ym.turbo_page),k.isNumber(g.__ym.turbo_page_id)&&(this.counter.tpid=g.__ym.turbo_page_id));(!g||k.isObject(g)&&!g.__ym&&!g.__ymu)&&this.paramsQueue.length()&&k.inArray(["go","hit","pa"],b)&&(g=this.paramsQueue.mixin(g));g&&(l=k.toJSON(g),this.trimParams&&l.length>Rb?p=!0:7E5<l?k.warning("Too big params"):d("site-info",l));m.saveRef&&(Sa.lastReferrer=c);h=function(a,c){var b={};k.forEachKey(c,function(a,c){-1===k.arrayIndexOf(["",
0,y,null],c)&&(b[a]=c)});return k.mixin({},a,b)}(h,{gdpr:wa.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||(f=this._getTechInfo(a.title,m,this.counterId,a.ts,a.tz,this._trackHash,this.hitId,this.webvisor,this.counter,a.nohit));h.wv=2;k.mixin(e,f,h);this.send(u,e,function(){p&&this.counter.params(g);a.userParams&&this.counter.userParams(a.userParams);
k.isFunction(a.callback)&&a.callback.apply(a.ctx,arguments)},this)}},_prepareHitUrl:function(a){var b=L(),d=b.host;b=b.href;if(!k.isString(a))return b;if(-1!=a.search(/^[a-z][\w.+-]+:\/\//i))return a;var f=a.charAt(0);if("?"==f)return f=b.search(/\?/),-1==f?b+a:b.substr(0,f)+a;if("#"==f)return f=b.search(/#/),-1==f?b+a:b.substr(0,f)+a;if("/"==f){if(f=b.search(d),-1!=f)return b.substr(0,f+d.length)+a}else return d=b.split("/"),d[d.length-1]=a,d.join("/");return a},getFu:function(a,b){var d=a!==L().href,
f=q.referrer.replace(/\/$/,""),g=(b||"").replace(/\/$/,"");f=f!==g;g=0;f&&d?g=3:f?g=1:d&&(g=2);return g},_getTechInfo:function(a,b,d,f,g,p,h,m,e,c){function l(a,c,b){var e=""+c;a&&c&&(b||-1===e.indexOf(":"))&&(r[a]=e)}function u(a){b[a]&&l(a,"1")}var r={};b=b||{};f=f||v.getTimestamp();g=g||v.getTimezone();l("j",w.getJavaEnabled()?"1":"");var T=w.isDesktop(this.globalConfig);T!==y&&l("dp",T?"1":"0");l("nt",w.netType());l("ns",w.getNavigationStart());oa&&l("s",oa.width+"x"+oa.height+"x"+(oa.colorDepth||
oa.pixelDepth));n.devicePixelRatio&&l("sk",n.devicePixelRatio);w.isSelenium()&&l("iss","1");w.isHeadLess()&&l("hdl","1");w.isIframe()&&(l("ifr","1"),l("sti",w.isSameOriginTopFrame()?"1":"0"));n.ia_document&&n.ia_document.shareURL&&n.ia_document.referrer&&l("iia","1");l("adb",tb.getVal());l("f",w.getFlashVersion());l("l",w.getSilverlightVersion());l("fpr",w.getFingerPrint());l("cn",this.counterNum);b.pa||(T=t.getViewportSize(),l("w",T[0]+"x"+T[1]));l("z",g);l("i",f);l("et",v.getSeconds());l("en",t.getDocumentCharset());
l("c",navigator.cookieEnabled?"1":"");l("la",w.getLanguage());l("ntf",w.getNotificationPermission());k.random(100)||l("np",pa.encode(fb.encode(k.trim(w.getPlatform(),100))));p&&l("wh","1");g="ar ln dl cpf ad nb pa pq pv ex".split(" ");for(f=0;f<g.length;f++)u(g[f]);g="va vt sn sa he pai".split(" ");b.nb&&g.push("cl");for(f=0;f<g.length;f++)p=g[f],l(p,b[p]);g=new ca({counterId:d});g.isEnabled()&&(d=g.getStorageId(),f=g.get("reqNum"),c||(f?f++:f=1),g.set("reqNum",f),g.get("reqNum")==f?(l("ls",d),l("rqn",
f)):(g.remove("reqNum"),g.clearStorageId(),1<f&&(l("ls",d),l("rqn",0))));l("rn",k.random());l("hid",h);c||3==this.counterId||b.pq||l("ds",Jb(e));e._firstPaint||c||(e._firstPaint=Lb(),l("fp",e._firstPaint));if(m){n.name||(n.name=Math.round(65535*Math.random()));if(h=+n.name)0>h&&(h*=-1),h%=65535;l("wn",h||k.fletcher(n.name));try{n.history&&l("hl",String(n.history.length))}catch(x){}}h="";this.sendTitle&&(h=this._getTitle(a));l("t",h,!0);return r},_getTitle:function(a){a="undefined"==typeof a?(a=t.getDocumentTitle())?
k.trim(a,ub):"":k.trim(a,ub);return a}});k.array2Props=function(a){var b=a.length,d={},f=d,g;for(g=0;g<b-1;g++){var p=a[g];f[p]={};g<b-2&&(f=f[p])}f[p]=a[b-1];return d};var Pa=G.inherit({sampling:1,counterId:26302566,_initComponent:function(){Pa.superclass._initComponent.apply(this,arguments);this._sender=new Na({protocol:"https:",counterId:this.counterId,retry:!1,counter:{}})},log:function(){this.logParams(k.array2Props(arguments))},logParams:function(a){Math.random()<this.sampling&&this._sender.sendHit({url:I.href,
title:"",referrer:"",vParams:a})}}),Sb=X.inherit({resource:"webvisor",retry:!0,postParams:["wv-data"],sendPacket:function(a,b,d,f,g,p,h,m){if(!a||!a.length)return!1;var e=pa.encode(a,!0);if(0==e.indexOf("AAAAAAAAADw")&&n.Error){var c=Error();"string"==typeof c.stack&&(new Pa({sampling:.1})).log("bad visor packet 5",1)}a={rn:k.random(),"page-url":b,wmode:0,"wv-type":0,"wv-hit":d,"wv-part":f+1,"wv-check":k.fletcher(a),"wv-data":e};g={v:this._getVersion(),z:g,i:p};return this.send(a,g,h,m)}}),ob=za.inherit({protocol:"",
counterId:"",counterType:"",meta:null,maxBufferSize:7500,flushTimeout:3E4,storageKey:"visorbuff",active:!1,_initComponent:function(){this.storage=new ca({counterId:this.counterId});this._sender=new Sb({globalConfig:this.globalConfig,protocol:this.protocol,counterId:this.counterId,counterType:this.counterType});ob.superclass._initComponent.apply(this,arguments)},onFlush:function(a,b,d){this._sender.sendPacket(a,b.url,b.hitId,d,b.timezone,b.timestamp)}});t.getDocumentHTML=function(){var a="";var b=
q.documentElement;var d=b.outerHTML,f,g;if(d)b=d;else{d=b.attributes;var p="";for(f=0;f<d.length;f++)(g=d[f])&&(p+=" "+g.name+'\x3d"'+(g.value||"")+'"');b="\x3chtml"+p+"\x3e"+b.innerHTML+"\x3c/html\x3e"}if(d=q.doctype)a=d.publicId?' PUBLIC "'+d.publicId+'"':"",p=d.systemId?' "'+d.systemId+'"':"",a="\x3c!DOCTYPE "+d.name+a+p+"\x3e\n";return a+b};t.getElementParent=function(a){if(!a||a==q.documentElement)return null;if(a==t.getBody())return q.documentElement;var b=null;try{b=a.parentNode}catch(d){}return b};
t.getElementChildren=function(a,b){var d=[],f,g,p;if(a&&(f=a.childNodes)){var h=0;for(p=f.length;h<p;h++){var m=f[h];(g="INPUT"==m.nodeName&&m.type&&"hidden"==m.type.toLocaleLowerCase())||b&&m.nodeName!=b||k.mergeArrays(d,[m])}}return d};t.getElementNeighborPosition=function(a){var b=t.getElementParent(a),d;if(b){var f=0;b=b.childNodes;var g=a&&a.nodeName;for(d=0;d<b.length;d++){var p=b[d]&&b[d].nodeName;if(g==p){if(a==b[d])return f;f++}}}return 0};t.getDocumentScroll=function(){var a=t.getBody();
return[n.pageXOffset||q.documentElement&&q.documentElement.scrollLeft||a&&a.scrollLeft||0,n.pageYOffset||q.documentElement&&q.documentElement.scrollTop||a&&a.scrollTop||0]};t.getElementXY=function(a){var b;if(!a||!a.ownerDocument||"PARAM"==a.tagName||a==t.getBody()||a==q.documentElement)return[0,0];if(a.getBoundingClientRect){a=a.getBoundingClientRect();var d=t.getDocumentScroll();return[Math.round(a.left+d[0]),Math.round(a.top+d[1])]}for(b=d=0;a;)d+=a.offsetLeft,b+=a.offsetTop,a=a.offsetParent;return[d,
b]};t.getDocumentSize=function(){var a=t.getRootElement(),b=t.getViewportSize();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]};t.getElementSize=function(a){var b;return a==t.getBody()||a==q.documentElement?t.getDocumentSize():(b=a.getBoundingClientRect&&a.getBoundingClientRect())?[b.width,b.height]:[a.offsetWidth,a.offsetHeight]};t.getElementRegion=function(a){var b=t.getElementXY(a);a=t.getElementSize(a);return[b[0],b[1],a[0],a[1]]};t.calcChildrenChecksum=function(a){var b=E(function(){return a.innerHTML},
"",!0)()||"";return k.fletcher(b.replace(/(<[^>]*>|[\u0000-\u0020])/g,""))};t.getFormNumber=function(a){var b=q.getElementsByTagName("form"),d;var f=0;for(d=b.length;f<d;f++)if(b[f]==a)return f;return-1};t.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};t.calcTextChecksum=function(a){var b="";a=a.childNodes;var d;
var f=0;for(d=a.length;f<d;f++)a[f]&&3==a[f].nodeType&&(b+=a[f].nodeValue);return k.fletcher(b.replace(/[\u0000-\u0020]+/g,""))};t.calcAttribChecksum=function(a){var b="",d="width height align title alt name".split(" "),f;"IMG"==a.tagName&&(b+=a.src.toLowerCase());"A"==a.tagName&&(b+=a.href.toLowerCase());b+=String(a.className||"").toLowerCase();for(f=0;f<d.length;f++)a.getAttribute&&(b+=String(a.getAttribute(d[f])||"").toLowerCase());return k.fletcher(b.replace(/[\u0000-\u0020]+/g,""))};t.classNameExists=
function(a,b){try{return(new RegExp("(?:^|\\s)"+b+"(?:\\s|$)")).test(a.className)}catch(d){return!1}};t.getElementsByClassName=function(a,b){var d;b=b||q;var f=b.getElementsByTagName("*");var g=[];for(d=0;d<f.length;d++)t.classNameExists(f[d],a)&&g.push(f[d]);return g};try{var eb=function(a){function b(f){if(d[f])return d[f].f;var g=d[f]={Z:f,L:!1,f:{}};return a[f].call(g.f,g,g.f,b),g.L=!0,g.f}var d={};return b.aa=a,b.W=d,b.o=function(a,d,p){b.D(a,d)||Object.defineProperty(a,d,{enumerable:!0,get:p})},
b.C=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});Object.defineProperty(a,"__esModule",{value:!0})},b.$=function(a,d){if((1&d&&(a=b(a)),8&d)||4&d&&"object"==typeof a&&a&&a.a)return a;var f=Object.create(null);if(b.C(f),Object.defineProperty(f,"default",{enumerable:!0,value:a}),2&d&&"string"!=typeof a)for(var h in a)b.o(f,h,function(b){return a[b]}.bind(null,h));return f},b.X=function(a){var d=a&&a.a?function(){return a["default"]}:
function(){return a};return b.o(d,"a",d),d},b.D=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.Y="",b(b.ba=0)}([function(a,b,d){var f=this&&this.U||function(){return(f=Object.assign||function(a){for(var c,b=1,e=arguments.length;b<e;b++)for(var d in c=arguments[b])Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);return a}).apply(this,arguments)};b.a=!0;var g=d(1),p=d(2),h=d(4),m=d(5),e=d(6);a=function(){function a(a){var c=this;this.l=a;this.H={webGL:g.B,dnt:m.w,plugins:p.A,
applePay:h.v};this.l=f({webGL:!1,dnt:!1,plugins:!1,applePay:!1},a);this.G=Object.keys(this.l).filter(function(a){return c.l[a]}).map(function(a){return new c.H[a]})}return a.prototype.toString=function(a){void 0===a&&(a=!0);var c=this.G.map(function(a){var c="";try{c=a.g()}catch(x){}return c});return a?[e.hash(c.join(""),210)]:c.map(function(a){return e.hash(a,210)})},a}();b.T=a;b["default"]=a},function(a,b){var d=this&&this.V||function(){function a(b,d){return(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])})(b,d)}return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}();b.a=!0;var f=function(a){function b(){var b=a.call(this,"webgl")||this;return b.h&&!b.J()&&(b.h=!1),b}return d(b,a),b.prototype.J=function(){var a=this.canvas.getContext&&(this.canvas.getContext("webgl")||this.canvas.getContext("experimental-webgl"));return!!n.WebGLRenderingContext&&
!!a},b.prototype.j=function(a){var b=this.c;return 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),"["+a[0]+", "+a[1]+"]"},b.prototype.M=function(a){var b,e=a.getExtension("EXT_texture_filter_anisotropic")||a.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||a.getExtension("MOZ_EXT_texture_filter_anisotropic");return e?(0===(b=a.getParameter(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT))&&(b=2),b):null},b.prototype.s=function(){var a=this.c,
b=[],e=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,e);a.bufferData(a.ARRAY_BUFFER,new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]),a.STATIC_DRAW);e.K=3;e.O=3;var c=a.createProgram(),d=a.createShader(a.VERTEX_SHADER);a.shaderSource(d,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate\x3dattrVertex+uniformOffset;gl_Position\x3dvec4(attrVertex,0,1);}");a.compileShader(d);var f=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(f,
"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor\x3dvec4(varyinTexCoordinate,0,1);}");a.compileShader(f);a.attachShader(c,d);a.attachShader(c,f);a.linkProgram(c);a.useProgram(c);c.R=a.getAttribLocation(c,"attrVertex");c.P=a.getUniformLocation(c,"uniformOffset");a.enableVertexAttribArray(c.ca);a.vertexAttribPointer(c.R,e.K,a.FLOAT,!1,0,0);a.uniform2f(c.P,1,1);a.drawArrays(a.TRIANGLE_STRIP,0,e.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 g=a.getExtension("WEBGL_debug_renderer_info");g&&(b.push("webgl unmasked vendor:"+a.getParameter(g.UNMASKED_VENDOR_WEBGL)),b.push("webgl unmasked renderer:"+a.getParameter(g.UNMASKED_RENDERER_WEBGL)))}catch(T){}return a.getShaderPrecisionFormat?(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),b.join("~")):b.join("~")},b}(a=function(){function a(a){this.F=a;this.h=!0;this.canvas=q.createElement("canvas");this.I()||(this.h=!1)}return a.prototype.I=function(){return this.c=this.canvas.getContext(this.F),
!(!this.canvas.getContext||!this.c)},a.prototype.g=function(){return this.h?this.s():this.id},a}());b.B=f;a=function(a){function b(){return a.call(this,"2d")||this}return d(b,a),b.prototype.s=function(){var a=this.canvas,b=this.c,e=[];return a.width=2E3,a.height=200,a.style.display="inline",b.rect(0,0,10,10),b.rect(2,2,6,6),e.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"),e.push("canvas fp:"+a.toDataURL()),e.join("~")},b}(a);b.S=a},function(a,b,d){b.a=!0;var f=d(3);a=function(){function a(){}return a.prototype.g=function(){return f.u(navigator.plugins).sort(function(a,b){return a.name>b.name?1:2}).map(function(a){return[a.name,a.description,f.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=n.ApplePaySession}return a.prototype.g=function(){var a=!1;try{a=n.self!==n.top}catch(p){}if(!this.m||"https:"!==I.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=n.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 d(a,c){a=[a[0]>>>16,65535&a[0],a[1]>>>16,65535&a[1]];c=[c[0]>>>16,65535&c[0],c[1]>>>16,65535&c[1]];var b=[0,0,0,0];return b[3]+=a[3]*c[3],b[2]+=b[3]>>>16,b[3]&=65535,b[2]+=a[2]*c[3],b[1]+=b[2]>>>16,b[2]&=65535,b[2]+=a[3]*c[2],b[1]+=b[2]>>>16,b[2]&=65535,b[1]+=a[1]*c[3],b[0]+=b[1]>>>16,b[1]&=65535,b[1]+=a[2]*c[2],b[0]+=b[1]>>>16,b[1]&=65535,b[1]+=a[3]*c[1],b[0]+=b[1]>>>16,b[1]&=65535,b[0]+=a[0]*c[3]+a[1]*c[2]+a[2]*c[1]+a[3]*c[0],
b[0]&=65535,[b[0]<<16|b[1],b[2]<<16|b[3]]}function f(a,c){a=[a[0]>>>16,65535&a[0],a[1]>>>16,65535&a[1]];c=[c[0]>>>16,65535&c[0],c[1]>>>16,65535&c[1]];var b=[0,0,0,0];return b[3]+=a[3]+c[3],b[2]+=b[3]>>>16,b[3]&=65535,b[2]+=a[2]+c[2],b[1]+=b[2]>>>16,b[2]&=65535,b[1]+=a[1]+c[1],b[0]+=b[1]>>>16,b[1]&=65535,b[0]+=a[0]+c[0],b[0]&=65535,[b[0]<<16|b[1],b[2]<<16|b[3]]}function g(a,c){return 32===(c%=64)?[a[1],a[0]]:32>c?[a[0]<<c|a[1]>>>32-c,a[1]<<c|a[0]>>>32-c]:(c-=32,[a[1]<<c|a[0]>>>32-c,a[0]<<c|a[1]>>>
32-c])}function p(a,c){return 0===(c%=64)?a:32>c?[a[0]<<c|a[1]>>>32-c,a[1]<<c]:[a[1]<<c-32,0]}function h(a,c){return[a[0]^c[0],a[1]^c[1]]}function m(a){return a=h(a,[0,a[0]>>>1]),a=h(a=d(a,[4283543511,3981806797]),[0,a[0]>>>1]),h(a=d(a,[3301882366,444984403]),[0,a[0]>>>1])}b.a=!0;b.hash=function(a,c){c=c||0;var b=(a=a||"").length%16,e=a.length-b,k=[0,c];c=[0,c];for(var n,x,q=[2277735313,289559509],F=[1291169091,658871167],A=0;A<e;A+=16)n=[255&a.charCodeAt(A+4)|(255&a.charCodeAt(A+5))<<8|(255&a.charCodeAt(A+
6))<<16|(255&a.charCodeAt(A+7))<<24,255&a.charCodeAt(A)|(255&a.charCodeAt(A+1))<<8|(255&a.charCodeAt(A+2))<<16|(255&a.charCodeAt(A+3))<<24],x=[255&a.charCodeAt(A+12)|(255&a.charCodeAt(A+13))<<8|(255&a.charCodeAt(A+14))<<16|(255&a.charCodeAt(A+15))<<24,255&a.charCodeAt(A+8)|(255&a.charCodeAt(A+9))<<8|(255&a.charCodeAt(A+10))<<16|(255&a.charCodeAt(A+11))<<24],n=g(n=d(n,q),31),k=f(k=g(k=h(k,d(n,F)),27),c),k=f(d(k,[0,5]),[0,1390208809]),x=g(x=d(x,F),33),c=f(c=g(c=h(c,d(x,q)),31),k),c=f(d(c,[0,5]),[0,
944331445]);switch(n=[0,0],x=[0,0],b){case 15:x=h(x,p([0,a.charCodeAt(A+14)],48));case 14:x=h(x,p([0,a.charCodeAt(A+13)],40));case 13:x=h(x,p([0,a.charCodeAt(A+12)],32));case 12:x=h(x,p([0,a.charCodeAt(A+11)],24));case 11:x=h(x,p([0,a.charCodeAt(A+10)],16));case 10:x=h(x,p([0,a.charCodeAt(A+9)],8));case 9:x=d(x=h(x,[0,a.charCodeAt(A+8)]),F),c=h(c,d(g(x,33),q));case 8:n=h(n,p([0,a.charCodeAt(A+7)],56));case 7:n=h(n,p([0,a.charCodeAt(A+6)],48));case 6:n=h(n,p([0,a.charCodeAt(A+5)],40));case 5:n=h(n,
p([0,a.charCodeAt(A+4)],32));case 4:n=h(n,p([0,a.charCodeAt(A+3)],24));case 3:n=h(n,p([0,a.charCodeAt(A+2)],16));case 2:n=h(n,p([0,a.charCodeAt(A+1)],8));case 1:n=d(n=h(n,[0,a.charCodeAt(A)]),q),k=h(k,d(g(n,31),F))}return k=f(k=h(k,[0,a.length]),c=h(c,[0,a.length])),c=f(c,k),k=f(k=m(k),c=m(c)),c=f(c,k),("00000000"+(k[0]>>>0).toString(16)).slice(-8)+("00000000"+(k[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}}]);eb=eb["default"]}catch(a){La=
{error:a,scope:"fip"}}k.arrayFilter=function(a,b,d){var f=[],g;for(g=0;g<a.length;g++)b.call(d,a[g],g,a)&&f.push(a[g]);return f};k.arrDiff=function(a,b){return k.arrayFilter(a,function(a){return-1===k.arrayIndexOf(b,a)})};k.encodeURIComponent=function(a,b){a=String(a);b&&a.length>b&&(a=a.substr(0,b));return(n.encodeURIComponent||n.escape)(a).replace(/\+/g,"%2B")};k.bind=function(a,b){var d=[].slice.call(arguments,2);return function(){return a.apply(b||this,d.concat([].slice.call(arguments,0)))}};
k.clearTimeout=function(a){return k.getNativeFunction("clearTimeout")(a)};k.safeDecodeURIComponent=function(a){try{return decodeURIComponent(a)}catch(b){return""}};k.isDev=function(){return!1};k.noop=function(){};!db(/webkit/)&&db(/gecko/);var ib={asyncChunk:400,maxDuration:20,restTime:100,asyncBuffer:[],timeout:null,rest:0,addAsyncItem:function(a,b,d,f,g){var p=this;this.asyncBuffer.push({fn:a,ctx:b,args:f||[],loggerName:g||""});d?(clearTimeout(this.timeout),p.flushAsync(!0)):v.getMs()-this.rest>=
this.restTime&&!this.timeout?(this.rest=v.getMs(),p.flushAsync()):this.timeout||(this.timeout=k.setTimeout(function(){p.rest=v.getMs();p.flushAsync();p.timeout=!1},this.restTime))},chain:function(a,b,d,f){var g=this;a.push=function(a){throw'Try to push in Executor when it started "'+a+'"';};(function c(b,d,e){g.addAsyncItem(function(b,e,d){e=a[b++](e);b<=a.length-1&&c(b,e,d)},null,e,[b,d],f+"."+b)})(0,b,d)},callByTimeout:function(a,b){for(var d=v.getMs(),f=0,g,p=(b||0)+1,h=0,m=this;this.asyncBuffer.length;)if(g=
this.asyncBuffer.shift(),h+=1,!g.isExecuted&&(E(function(){g.fn.apply(g.ctx,g.args)},"AsyncExecutor."+g.loggerName)(),f=v.getMs()-d,g.isExecuted=!0,!a&&(h>=this.asyncChunk||f>=this.maxDuration))){k.setTimeout(function(){m.callByTimeout(a,p)},this.restTime);break}},flushAsync:function(a){this.asyncBuffer.length&&this.callByTimeout(a)}},Tb=Ha.inherit({id:"XHRPlain",index:8,_splitParams:function(a){var b={},d={};k.forEachKey(a,function(a,g){k.inArray(this.postParams,a)?this.postParams.isSingle?d=g:d[a]=
g:b[a]=g},this);return{get:b,post:d}},_preparePostParams:function(a){return a.post},_setHeaders:function(a){a.setRequestHeader("Content-Type","text/plain")}}),jb=X.inherit({resource:"webvisor",version:2,retry:!1,postParams:["wv-data"],transports:[Tb],_initComponent:function(){jb.superclass._initComponent.apply(this,arguments);this.postParams.isSingle=!0},sendPacket:function(a,b,d,f,g,p,h,m,e){var c=t.getViewportSize();if(!a||!a.length)return!1;a={rn:k.random(),"page-url":b,wmode:0,"wv-type":this.version,
"wv-hit":d,"wv-part":f+1,"wv-data":a};g={et:h,w:c[0]+"x"+c[1],v:this._getVersion(),z:g,i:p};this.browserInfoMix&&(g=k.mixin(g,this.browserInfoMix));return this.send(a,g,m,e)}}),Ta=za.inherit({protocol:"",chunkSize:0,counterId:"",counterType:"",meta:null,maxBufferSize:7E5,flushTimeout:2E3,storageKey:"visorbuff2",active:!1,wvType:2,_v:"",_initComponent:function(){this._sender=new jb({version:this.wvType,protocol:this.protocol,globalConfig:this.globalConfig,counterId:this.counterId,browserInfoMix:this.browserInfoMix,
counterType:this.counterType});Ta.superclass._initComponent.apply(this,arguments)},append:function(a){!this._data.length&&a&&a.length&&(this.startBufferTime=v.getSeconds());Ta.superclass.append.apply(this,arguments)},_getSize:function(a){var b=this;this.chunkSize=n.Blob?this.chunkSize+(new Blob([a])).size:this.chunkSize+2*a.length;this.wrappers.length&&k.reduce(function(a,f){var d=f.getBufferData();b.chunkSize+=k.toJSON(d).length},0,this.wrappers);return this.chunkSize},addData:function(a,b,d,f,g){var p=
0,h=1,m={type:a},e=.9*this.maxBufferSize;this._v=d;this.wrappers.length&&k.arrayEvery(this.wrappers,function(c){c.trigger&&c.trigger(a,b);return 1});if(g)this._getSize("{}"),this.append([],f);else{this.updateStamp(b,m);d=sa.stringify(b);g=this._getSize(d);if(g>this.maxBufferSize)for(this._data.length&&this._flush(),f=Math.ceil(g/e);p<d.length;)m.partNum=h,m.end=h===f,m.data=d.slice(p,p+=e),h++,this._getSize(m.data),this.append([m],!0);else m.data=d,this.append([m],f);this.store.set(m,{id:a,data:b})}},
onFlush:function(a,b,d){this.chunkSize=0;k.arrayEvery(this.wrappers,function(b){if(!b.onFlush)return 1;k.arrayEvery(a,function(a){a=this.store.pop(a);if(!a)return 1;b.onFlush(a.id,a.data);return 1},this);return 1},this);k.arrayEvery(this.wrappers,function(b){b=b.getBufferData();b.data=sa.stringify(b.data);a.push(b);return 1});this._sender.sendPacket(sa.stringify(a),b.url,b.hitId,d,b.timezone,b.timestamp,this.startBufferTime)},getFlushSize:function(){return this.chunkSize}}),C=function(a){function b(f){if(d[f])return d[f].exports;
var g=d[f]={i:f,l:!1,exports:{}};a[f].call(g.exports,g,g.exports,b);g.l=!0;return g.exports}var d={};b.m=a;b.c=d;b.d=function(a,d,p){b.o(a,d)||Object.defineProperty(a,d,{configurable:!1,enumerable:!0,get:p})};b.r=function(a){Object.defineProperty(a,"__esModule",{value:!0})};b.n=function(a){var d=a&&a.__esModule?function(){return a["default"]}:function(){return a};b.d(d,"a",d);return d};b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};b.p="";return b(b.s=18)}([function(a,b,d){function f(a,
b,d){for(var e=Object.keys(b),c=0;c<e.length;++c)void 0!==a[e[c]]&&d||(a[e[c]]=b[e[c]]);return a}function g(a){function b(a,e){if(!(this instanceof b))return new b(a,e);Object.defineProperty(this,"message",{get:function(){return a}});Error.captureStackTrace?Error.captureStackTrace(this,b):Object.defineProperty(this,"stack",{value:Error().stack||""});e&&f(this,e)}(b.prototype=Object.create(Error.prototype)).constructor=b;Object.defineProperty(b.prototype,"name",{get:function(){return a}});b.prototype.toString=
function(){return this.name+": "+this.message};return b}b.asPromise=d(15);b.base64=d(14);b.EventEmitter=d(13);b["float"]=d(12);b.inquire=d(11);b.utf8=d(10);b.pool=d(9);b.LongBits=d(8);b.global="undefined"!=typeof n&&n||"undefined"!=typeof global&&global||"undefined"!=typeof self&&self||this;b.emptyArray=Object.freeze?Object.freeze([]):[];b.emptyObject=Object.freeze?Object.freeze({}):{};b.isNode=!!(b.global.process&&b.global.process.versions&&b.global.process.versions.node);b.isInteger=Number.isInteger||
function(a){return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a};b.isString=function(a){return"string"==typeof a||a instanceof String};b.isObject=function(a){return a&&"object"==typeof a};b.isset=b.isSet=function(a,b){var d=a[b];return!(null==d||!a.hasOwnProperty(b))&&("object"!=typeof d||0<(Array.isArray(d)?d.length:Object.keys(d).length))};b.Buffer=function(){try{var a=b.inquire("buffer").Buffer;return a.prototype.utf8Write?a:null}catch(h){return null}}();b._Buffer_from=null;b._Buffer_allocUnsafe=
null;b.newBuffer=function(a){return"number"==typeof a?b.Buffer?b._Buffer_allocUnsafe(a):new b.Array(a):b.Buffer?b._Buffer_from(a):"undefined"==typeof Uint8Array?a:new Uint8Array(a)};b.Array="undefined"!=typeof Uint8Array?Uint8Array:Array;b.Long=b.global.dcodeIO&&b.global.dcodeIO.Long||b.global.Long||b.inquire("long");b.key2Re=/^true|false|0|1$/;b.key32Re=/^-?(?:0|[1-9][0-9]*)$/;b.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;b.longToHash=function(a){return a?b.LongBits.from(a).toHash():b.LongBits.zeroHash};
b.longFromHash=function(a,d){var f=b.LongBits.fromHash(a);return b.Long?b.Long.fromBits(f.lo,f.hi,d):f.toNumber(!!d)};b.merge=f;b.lcFirst=function(a){return a.charAt(0).toLowerCase()+a.substring(1)};b.newError=g;b.ProtocolError=g("ProtocolError");b.oneOfGetter=function(a){for(var b={},d=0;d<a.length;++d)b[a[d]]=1;return function(){for(var a=Object.keys(this),c=a.length-1;-1<c;--c)if(1===b[a[c]]&&void 0!==this[a[c]]&&null!==this[a[c]])return a[c]}};b.oneOfSetter=function(a){return function(b){for(var d=
0;d<a.length;++d)a[d]!==b&&delete this[a[d]]}};b.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};b._configure=function(){var a=b.Buffer;a?(b._Buffer_from=a.from!==Uint8Array.from&&a.from||function(b,d){return new a(b,d)},b._Buffer_allocUnsafe=a.allocUnsafe||function(b){return new a(b)}):b._Buffer_from=b._Buffer_allocUnsafe=null}},function(a,b,d){function f(a,c){return RangeError("index out of range: "+a.pos+" + "+(c||1)+" \x3e "+a.len)}function g(a){this.buf=a;this.pos=0;this.len=a.length}
function k(){var a=new l(0,0),c=0;if(!(4<this.len-this.pos)){for(;3>c;++c){if(this.pos>=this.len)throw f(this);a.lo=(a.lo|(127&this.buf[this.pos])<<7*c)>>>0;if(128>this.buf[this.pos++])return a}a.lo=(a.lo|(127&this.buf[this.pos++])<<7*c)>>>0;return a}for(;4>c;++c)if(a.lo=(a.lo|(127&this.buf[this.pos])<<7*c)>>>0,128>this.buf[this.pos++])return a;a.lo=(a.lo|(127&this.buf[this.pos])<<28)>>>0;a.hi=(a.hi|(127&this.buf[this.pos])>>4)>>>0;if(128>this.buf[this.pos++])return a;c=0;if(4<this.len-this.pos)for(;5>
c;++c){if(a.hi=(a.hi|(127&this.buf[this.pos])<<7*c+3)>>>0,128>this.buf[this.pos++])return a}else for(;5>c;++c){if(this.pos>=this.len)throw f(this);a.hi=(a.hi|(127&this.buf[this.pos])<<7*c+3)>>>0;if(128>this.buf[this.pos++])return a}throw Error("invalid varint encoding");}function h(a,c){return(a[c-4]|a[c-3]<<8|a[c-2]<<16|a[c-1]<<24)>>>0}function m(){if(this.pos+8>this.len)throw f(this,8);return new l(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}a.exports=g;var e,c=d(0),l=c.LongBits,u=c.utf8,r,
n="undefined"!=typeof Uint8Array?function(a){if(a instanceof Uint8Array||Array.isArray(a))return new g(a);throw Error("illegal buffer");}:function(a){if(Array.isArray(a))return new g(a);throw Error("illegal buffer");};g.create=c.Buffer?function(a){return(g.create=function(a){return c.Buffer.isBuffer(a)?new e(a):n(a)})(a)}:n;g.prototype._slice=c.Array.prototype.subarray||c.Array.prototype.slice;g.prototype.uint32=(r=4294967295,function(){r=(127&this.buf[this.pos])>>>0;if(128>this.buf[this.pos++])return r;
r=(r|(127&this.buf[this.pos])<<7)>>>0;if(128>this.buf[this.pos++])return r;r=(r|(127&this.buf[this.pos])<<14)>>>0;if(128>this.buf[this.pos++])return r;r=(r|(127&this.buf[this.pos])<<21)>>>0;if(128>this.buf[this.pos++])return r;r=(r|(15&this.buf[this.pos])<<28)>>>0;if(128>this.buf[this.pos++])return r;if((this.pos+=5)>this.len)throw this.pos=this.len,f(this,10);return r});g.prototype.int32=function(){return 0|this.uint32()};g.prototype.sint32=function(){var a=this.uint32();return a>>>1^-(1&a)|0};g.prototype.bool=
function(){return 0!==this.uint32()};g.prototype.fixed32=function(){if(this.pos+4>this.len)throw f(this,4);return h(this.buf,this.pos+=4)};g.prototype.sfixed32=function(){if(this.pos+4>this.len)throw f(this,4);return 0|h(this.buf,this.pos+=4)};g.prototype["float"]=function(){if(this.pos+4>this.len)throw f(this,4);var a=c["float"].readFloatLE(this.buf,this.pos);this.pos+=4;return a};g.prototype["double"]=function(){if(this.pos+8>this.len)throw f(this,4);var a=c["float"].readDoubleLE(this.buf,this.pos);
this.pos+=8;return a};g.prototype.bytes=function(){var a=this.uint32(),c=this.pos,b=this.pos+a;if(b>this.len)throw f(this,a);this.pos+=a;return Array.isArray(this.buf)?this.buf.slice(c,b):c===b?new this.buf.constructor(0):this._slice.call(this.buf,c,b)};g.prototype.string=function(){var a=this.bytes();return u.read(a,0,a.length)};g.prototype.skip=function(a){if("number"==typeof a){if(this.pos+a>this.len)throw f(this,a);this.pos+=a}else{do if(this.pos>=this.len)throw f(this);while(128&this.buf[this.pos++])
}return this};g.prototype.skipType=function(a){switch(a){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(a=7&this.uint32());)this.skipType(a);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+a+" at offset "+this.pos);}return this};g._configure=function(a){e=a;var b=c.Long?"toLong":"toNumber";c.merge(g.prototype,{int64:function(){return k.call(this)[b](!1)},uint64:function(){return k.call(this)[b](!0)},sint64:function(){return k.call(this).zzDecode()[b](!1)},
fixed64:function(){return m.call(this)[b](!0)},sfixed64:function(){return m.call(this)[b](!1)}})}},function(a,b,d){function f(a,c,b){this.fn=a;this.len=c;this.next=void 0;this.val=b}function g(){}function k(a){this.head=a.head;this.tail=a.tail;this.len=a.len;this.next=a.states}function h(){this.len=0;this.tail=this.head=new f(g,0,0);this.states=null}function m(a,c,b){c[b]=255&a}function e(a,c){this.len=a;this.next=void 0;this.val=c}function c(a,c,b){for(;a.hi;)c[b++]=127&a.lo|128,a.lo=(a.lo>>>7|a.hi<<
25)>>>0,a.hi>>>=7;for(;127<a.lo;)c[b++]=127&a.lo|128,a.lo>>>=7;c[b++]=a.lo}function l(a,c,b){c[b]=255&a;c[b+1]=a>>>8&255;c[b+2]=a>>>16&255;c[b+3]=a>>>24}a.exports=h;var u,r=d(0),n=r.LongBits,x=r.base64,q=r.utf8;h.create=r.Buffer?function(){return(h.create=function(){return new u})()}:function(){return new h};h.alloc=function(a){return new r.Array(a)};r.Array!==Array&&(h.alloc=r.pool(h.alloc,r.Array.prototype.subarray));h.prototype._push=function(a,c,b){this.tail=this.tail.next=new f(a,c,b);this.len+=
c;return this};e.prototype=Object.create(f.prototype);e.prototype.fn=function(a,c,b){for(;127<a;)c[b++]=127&a|128,a>>>=7;c[b]=a};h.prototype.uint32=function(a){this.len+=(this.tail=this.tail.next=new e(128>(a>>>=0)?1:16384>a?2:2097152>a?3:268435456>a?4:5,a)).len;return this};h.prototype.int32=function(a){return 0>a?this._push(c,10,n.fromNumber(a)):this.uint32(a)};h.prototype.sint32=function(a){return this.uint32((a<<1^a>>31)>>>0)};h.prototype.uint64=function(a){a=n.from(a);return this._push(c,a.length(),
a)};h.prototype.int64=h.prototype.uint64;h.prototype.sint64=function(a){a=n.from(a).zzEncode();return this._push(c,a.length(),a)};h.prototype.bool=function(a){return this._push(m,1,a?1:0)};h.prototype.fixed32=function(a){return this._push(l,4,a>>>0)};h.prototype.sfixed32=h.prototype.fixed32;h.prototype.fixed64=function(a){a=n.from(a);return this._push(l,4,a.lo)._push(l,4,a.hi)};h.prototype.sfixed64=h.prototype.fixed64;h.prototype["float"]=function(a){return this._push(r["float"].writeFloatLE,4,a)};
h.prototype["double"]=function(a){return this._push(r["float"].writeDoubleLE,8,a)};var w=r.Array.prototype.set?function(a,c,b){c.set(a,b)}:function(a,c,b){for(var e=0;e<a.length;++e)c[b+e]=a[e]};h.prototype.bytes=function(a){var c=a.length>>>0;if(!c)return this._push(m,1,0);if(r.isString(a)){var b=h.alloc(c=x.length(a));x.decode(a,b,0);a=b}return this.uint32(c)._push(w,c,a)};h.prototype.string=function(a){var c=q.length(a);return c?this.uint32(c)._push(q.write,c,a):this._push(m,1,0)};h.prototype.fork=
function(){this.states=new k(this);this.head=this.tail=new f(g,0,0);this.len=0;return this};h.prototype.reset=function(){this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(g,0,0),this.len=0);return this};h.prototype.ldelim=function(){var a=this.head,c=this.tail,b=this.len;this.reset().uint32(b);b&&(this.tail.next=a.next,this.tail=c,this.len+=b);return this};h.prototype.finish=function(){for(var a=this.head.next,
c=this.constructor.alloc(this.len),b=0;a;)a.fn(a.val,c,b),b+=a.len,a=a.next;return c};h._configure=function(a){u=a}},function(a,b,d){a.exports={}},function(a,b,d){function f(a,b,d){if("function"!=typeof a)throw TypeError("rpcImpl must be a function");g.EventEmitter.call(this);this.rpcImpl=a;this.requestDelimited=!!b;this.responseDelimited=!!d}a.exports=f;var g=d(0);(f.prototype=Object.create(g.EventEmitter.prototype)).constructor=f;f.prototype.rpcCall=function u(a,b,e,c,d){if(!c)throw TypeError("request must be specified");
var f=this;if(!d)return g.asPromise(u,f,a,b,e,c);if(f.rpcImpl)try{return f.rpcImpl(a,b[f.requestDelimited?"encodeDelimited":"encode"](c).finish(),function(c,b){if(c)return f.emit("error",c,a),d(c);if(null!==b){if(!(b instanceof e))try{b=e[f.responseDelimited?"decodeDelimited":"decode"](b)}catch(R){return f.emit("error",R,a),d(R)}f.emit("data",b,a);return d(null,b)}f.end(!0)})}catch(T){f.emit("error",T,a),D(function(){d(T)},0)}else D(function(){d(Error("already ended"))},0)};f.prototype.end=function(a){this.rpcImpl&&
(a||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off());return this}},function(a,b,d){b.Service=d(4)},function(a,b,d){function f(a){g.call(this,a)}a.exports=f;var g=d(1);(f.prototype=Object.create(g.prototype)).constructor=f;a=d(0);a.Buffer&&(f.prototype._slice=a.Buffer.prototype.slice);f.prototype.string=function(){var a=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+a,this.len))}},function(a,b,d){function f(){k.call(this)}function g(a,b,e){40>a.length?
h.utf8.write(a,b,e):b.utf8Write(a,e)}a.exports=f;var k=d(2);(f.prototype=Object.create(k.prototype)).constructor=f;var h=d(0),m=h.Buffer;f.alloc=function(a){return(f.alloc=h._Buffer_allocUnsafe)(a)};var e=m&&m.prototype instanceof Uint8Array&&"set"===m.prototype.set.name?function(a,b,e){b.set(a,e)}:function(a,b,e){if(a.copy)a.copy(b,e,0,a.length);else for(var c=0;c<a.length;)b[e++]=a[c++]};f.prototype.bytes=function(a){h.isString(a)&&(a=h._Buffer_from(a,"base64"));var c=a.length>>>0;this.uint32(c);
c&&this._push(e,c,a);return this};f.prototype.string=function(a){var c=m.byteLength(a);this.uint32(c);c&&this._push(g,c,a);return this}},function(a,b,d){function f(a,c){this.lo=a>>>0;this.hi=c>>>0}a.exports=f;var g=d(0),k=f.zero=new f(0,0);k.toNumber=function(){return 0};k.zzEncode=k.zzDecode=function(){return this};k.length=function(){return 1};var h=f.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";f.fromNumber=function(a){if(0===a)return k;var c=0>a;c&&(a=-a);var b=a>>>0;a=(a-b)/4294967296>>>0;c&&
(a=~a>>>0,b=~b>>>0,4294967295<++b&&(b=0,4294967295<++a&&(a=0)));return new f(b,a)};f.from=function(a){if("number"==typeof a)return f.fromNumber(a);if(g.isString(a)){if(!g.Long)return f.fromNumber(parseInt(a,10));a=g.Long.fromString(a)}return a.low||a.high?new f(a.low>>>0,a.high>>>0):k};f.prototype.toNumber=function(a){if(!a&&this.hi>>>31){a=1+~this.lo>>>0;var c=~this.hi>>>0;a||(c=c+1>>>0);return-(a+4294967296*c)}return this.lo+4294967296*this.hi};f.prototype.toLong=function(a){return g.Long?new g.Long(0|
this.lo,0|this.hi,!!a):{low:0|this.lo,high:0|this.hi,unsigned:!!a}};var m=String.prototype.charCodeAt;f.fromHash=function(a){return a===h?k:new f((m.call(a,0)|m.call(a,1)<<8|m.call(a,2)<<16|m.call(a,3)<<24)>>>0,(m.call(a,4)|m.call(a,5)<<8|m.call(a,6)<<16|m.call(a,7)<<24)>>>0)};f.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};f.prototype.zzEncode=function(){var a=this.hi>>31;
this.hi=((this.hi<<1|this.lo>>>31)^a)>>>0;this.lo=(this.lo<<1^a)>>>0;return this};f.prototype.zzDecode=function(){var a=-(1&this.lo);this.lo=((this.lo>>>1|this.hi<<31)^a)>>>0;this.hi=(this.hi>>>1^a)>>>0;return this};f.prototype.length=function(){var a=this.lo,c=(this.lo>>>28|this.hi<<4)>>>0,b=this.hi>>>24;return 0===b?0===c?16384>a?128>a?1:2:2097152>a?3:4:16384>c?128>c?5:6:2097152>c?7:8:128>b?9:10}},function(a,b,d){a.exports=function(a,b,d){var f=d||8192,g=f>>>1,e=null,c=f;return function(d){if(1>
d||d>g)return a(d);c+d>f&&(e=a(f),c=0);d=b.call(e,c,c+=d);7&c&&(c=1+(7|c));return d}}},function(a,b,d){b.length=function(a){for(var b=0,d,f=0;f<a.length;++f)d=a.charCodeAt(f),128>d?b+=1:2048>d?b+=2:55296==(64512&d)&&56320==(64512&a.charCodeAt(f+1))?(++f,b+=4):b+=3;return b};b.read=function(a,b,d){if(1>d-b)return"";for(var f,g=null,e=[],c=0;b<d;)f=a[b++],128>f?e[c++]=f:191<f&&224>f?e[c++]=(31&f)<<6|63&a[b++]:239<f&&365>f?(f=((7&f)<<18|(63&a[b++])<<12|(63&a[b++])<<6|63&a[b++])-65536,e[c++]=55296+(f>>
10),e[c++]=56320+(1023&f)):e[c++]=(15&f)<<12|(63&a[b++])<<6|63&a[b++],8191<c&&((g||(g=[])).push(String.fromCharCode.apply(String,e)),c=0);return g?(c&&g.push(String.fromCharCode.apply(String,e.slice(0,c))),g.join("")):String.fromCharCode.apply(String,e.slice(0,c))};b.write=function(a,b,d){for(var f,g,e=d,c=0;c<a.length;++c)f=a.charCodeAt(c),128>f?b[d++]=f:(2048>f?b[d++]=f>>6|192:(55296==(64512&f)&&56320==(64512&(g=a.charCodeAt(c+1)))?(f=65536+((1023&f)<<10)+(1023&g),++c,b[d++]=f>>18|240,b[d++]=f>>
12&63|128):b[d++]=f>>12|224,b[d++]=f>>6&63|128),b[d++]=63&f|128);return d-e}},function(a,b,d){a.exports=function(a){return null}},function(a,b,d){function f(a){"undefined"!=typeof Float32Array?function(){function c(a,c,b){f[0]=a;c[b]=g[0];c[b+1]=g[1];c[b+2]=g[2];c[b+3]=g[3]}function b(a,c,b){f[0]=a;c[b]=g[3];c[b+1]=g[2];c[b+2]=g[1];c[b+3]=g[0]}function e(a,c){g[0]=a[c];g[1]=a[c+1];g[2]=a[c+2];g[3]=a[c+3];return f[0]}function d(a,c){g[3]=a[c];g[2]=a[c+1];g[1]=a[c+2];g[0]=a[c+3];return f[0]}var f=new Float32Array([-0]),
g=new Uint8Array(f.buffer),h=128===g[3];a.writeFloatLE=h?c:b;a.writeFloatBE=h?b:c;a.readFloatLE=h?e:d;a.readFloatBE=h?d:e}():function(){function c(a,c,b,e){var d=0>c?1:0;d&&(c=-c);if(0===c)a(0<1/c?0:2147483648,b,e);else if(isNaN(c))a(2143289344,b,e);else if(3.4028234663852886e+38<c)a((d<<31|2139095040)>>>0,b,e);else if(1.1754943508222875e-38>c)a((d<<31|Math.round(c/1.401298464324817e-45))>>>0,b,e);else{var f=Math.floor(Math.log(c)/Math.LN2);a((d<<31|f+127<<23|8388607&Math.round(c*Math.pow(2,-f)*8388608))>>>
0,b,e)}}function b(a,c,b){b=a(c,b);a=2*(b>>31)+1;c=b>>>23&255;b&=8388607;return 255===c?b?NaN:1/0*a:0===c?1.401298464324817e-45*a*b:a*Math.pow(2,c-150)*(b+8388608)}a.writeFloatLE=c.bind(null,g);a.writeFloatBE=c.bind(null,k);a.readFloatLE=b.bind(null,h);a.readFloatBE=b.bind(null,m)}();"undefined"!=typeof Float64Array?function(){function c(a,c,b){f[0]=a;c[b]=g[0];c[b+1]=g[1];c[b+2]=g[2];c[b+3]=g[3];c[b+4]=g[4];c[b+5]=g[5];c[b+6]=g[6];c[b+7]=g[7]}function b(a,c,b){f[0]=a;c[b]=g[7];c[b+1]=g[6];c[b+2]=
g[5];c[b+3]=g[4];c[b+4]=g[3];c[b+5]=g[2];c[b+6]=g[1];c[b+7]=g[0]}function e(a,c){g[0]=a[c];g[1]=a[c+1];g[2]=a[c+2];g[3]=a[c+3];g[4]=a[c+4];g[5]=a[c+5];g[6]=a[c+6];g[7]=a[c+7];return f[0]}function d(a,c){g[7]=a[c];g[6]=a[c+1];g[5]=a[c+2];g[4]=a[c+3];g[3]=a[c+4];g[2]=a[c+5];g[1]=a[c+6];g[0]=a[c+7];return f[0]}var f=new Float64Array([-0]),g=new Uint8Array(f.buffer),h=128===g[7];a.writeDoubleLE=h?c:b;a.writeDoubleBE=h?b:c;a.readDoubleLE=h?e:d;a.readDoubleBE=h?d:e}():function(){function c(a,c,b,e,d,f){var l=
0>e?1:0;l&&(e=-e);if(0===e)a(0,d,f+c),a(0<1/e?0:2147483648,d,f+b);else if(isNaN(e))a(0,d,f+c),a(2146959360,d,f+b);else if(1.7976931348623157e+308<e)a(0,d,f+c),a((l<<31|2146435072)>>>0,d,f+b);else if(2.2250738585072014e-308>e)e/=5e-324,a(e>>>0,d,f+c),a((l<<31|e/4294967296)>>>0,d,f+b);else{var g=Math.floor(Math.log(e)/Math.LN2);1024===g&&(g=1023);e*=Math.pow(2,-g);a(4503599627370496*e>>>0,d,f+c);a((l<<31|g+1023<<20|1048576*e&1048575)>>>0,d,f+b)}}function b(a,c,b,e,d){c=a(e,d+c);e=a(e,d+b);a=2*(e>>31)+
1;b=e>>>20&2047;c=4294967296*(1048575&e)+c;return 2047===b?c?NaN:1/0*a:0===b?5e-324*a*c:a*Math.pow(2,b-1075)*(c+4503599627370496)}a.writeDoubleLE=c.bind(null,g,0,4);a.writeDoubleBE=c.bind(null,k,4,0);a.readDoubleLE=b.bind(null,h,0,4);a.readDoubleBE=b.bind(null,m,4,0)}();return a}function g(a,c,b){c[b]=255&a;c[b+1]=a>>>8&255;c[b+2]=a>>>16&255;c[b+3]=a>>>24}function k(a,c,b){c[b]=a>>>24;c[b+1]=a>>>16&255;c[b+2]=a>>>8&255;c[b+3]=255&a}function h(a,c){return(a[c]|a[c+1]<<8|a[c+2]<<16|a[c+3]<<24)>>>0}
function m(a,c){return(a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3])>>>0}a.exports=f(f)},function(a,b,d){function f(){this._listeners={}}a.exports=f;f.prototype.on=function(a,b,d){(this._listeners[a]||(this._listeners[a]=[])).push({fn:b,ctx:d||this});return this};f.prototype.off=function(a,b){if(void 0===a)this._listeners={};else if(void 0===b)this._listeners[a]=[];else for(var d=this._listeners[a],f=0;f<d.length;)d[f].fn===b?d.splice(f,1):++f;return this};f.prototype.emit=function(a){var b=this._listeners[a];
if(b){for(var d=[],f=1;f<arguments.length;)d.push(arguments[f++]);for(f=0;f<b.length;)b[f].fn.apply(b[f++].ctx,d)}return this}},function(a,b,d){b.length=function(a){var b=a.length;if(!b)return 0;for(var d=0;1<--b%4&&"\x3d"===a.charAt(b);)++d;return Math.ceil(3*a.length)/4-d};var f=Array(64),g=Array(123);for(a=0;64>a;)g[f[a]=26>a?a+65:52>a?a+71:62>a?a-4:a-59|43]=a++;b.encode=function(a,b,d){for(var e,c=null,l=[],g=0,h=0;b<d;){var m=a[b++];switch(h){case 0:l[g++]=f[m>>2];e=(3&m)<<4;h=1;break;case 1:l[g++]=
f[e|m>>4];e=(15&m)<<2;h=2;break;case 2:l[g++]=f[e|m>>6],l[g++]=f[63&m],h=0}8191<g&&((c||(c=[])).push(String.fromCharCode.apply(String,l)),g=0)}h&&(l[g++]=f[e],l[g++]=61,1===h&&(l[g++]=61));return c?(g&&c.push(String.fromCharCode.apply(String,l.slice(0,g))),c.join("")):String.fromCharCode.apply(String,l.slice(0,g))};b.decode=function(a,b,d){for(var e,c=d,f=0,h=0;h<a.length;){var m=a.charCodeAt(h++);if(61===m&&1<f)break;if(void 0===(m=g[m]))throw Error("invalid encoding");switch(f){case 0:e=m;f=1;break;
case 1:b[d++]=e<<2|(48&m)>>4;e=m;f=2;break;case 2:b[d++]=(15&e)<<4|(60&m)>>2;e=m;f=3;break;case 3:b[d++]=(3&e)<<6|m,f=0}}if(1===f)throw Error("invalid encoding");return d-c};b.test=function(a){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a)}},function(a,b,d){a.exports=function(a,b){for(var d=Array(arguments.length-1),f=0,g=2,e=!0;g<arguments.length;)d[f++]=arguments[g++];return new Promise(function(c,l){d[f]=function(a){if(e)if(e=!1,a)l(a);else{for(var b=Array(arguments.length-
1),d=0;d<b.length;)b[d++]=arguments[d];c.apply(null,b)}};try{a.apply(b||null,d)}catch(u){e&&(e=!1,l(u))}})}},function(a,b,d){function f(){g.Reader._configure(g.BufferReader);g.util._configure()}var g=b;g.build="minimal";g.Writer=d(2);g.BufferWriter=d(7);g.Reader=d(1);g.BufferReader=d(6);g.util=d(0);g.rpc=d(5);g.roots=d(3);g.configure=f;g.Writer._configure(g.BufferWriter);f()},function(a,b,d){a.exports=d(16)},function(a,b,d){b=d(17);var f=b.Reader,g=b.Writer,k=b.util,h=b.roots["default"]||(b.roots["default"]=
{});h.BufferWrapper=function(){function a(a){this.buffer=[];if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=a[c[b]])}a.prototype.buffer=k.emptyArray;a.create=function(b){return new a(b)};a.encode=function(a,c){c||(c=g.create());if(null!=a.buffer&&a.buffer.length)for(var b=0;b<a.buffer.length;++b)h.Buffer.encode(a.buffer[b],c.uint32(10).fork()).ldelim();return c};a.decode=function(a,c){a instanceof f||(a=f.create(a));for(var b=void 0===c?a.len:a.pos+c,e=new h.BufferWrapper;a.pos<
b;){var d=a.uint32();switch(d>>>3){case 1:e.buffer&&e.buffer.length||(e.buffer=[]);e.buffer.push(h.Buffer.decode(a,a.uint32()));break;default:a.skipType(7&d)}}return e};return a}();h.Buffer=function(){function a(a){if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=a[c[b]])}a.prototype.stamp=0;a.prototype.data=null;a.prototype.page=0;a.prototype.chunk=k.newBuffer([]);a.prototype.end=!1;a.create=function(b){return new a(b)};a.encode=function(a,c){c||(c=g.create());null!=a.stamp&&
a.hasOwnProperty("stamp")&&c.uint32(8).int32(a.stamp);null!=a.data&&a.hasOwnProperty("data")&&h.Wrapper.encode(a.data,c.uint32(18).fork()).ldelim();null!=a.page&&a.hasOwnProperty("page")&&c.uint32(24).int32(a.page);null!=a.chunk&&a.hasOwnProperty("chunk")&&c.uint32(34).bytes(a.chunk);null!=a.end&&a.hasOwnProperty("end")&&c.uint32(40).bool(a.end);return c};a.decode=function(a,c){a instanceof f||(a=f.create(a));for(var b=void 0===c?a.len:a.pos+c,e=new h.Buffer;a.pos<b;){var d=a.uint32();switch(d>>>
3){case 1:e.stamp=a.int32();break;case 2:e.data=h.Wrapper.decode(a,a.uint32());break;case 3:e.page=a.int32();break;case 4:e.chunk=a.bytes();break;case 5:e.end=a.bool();break;default:a.skipType(7&d)}}return e};return a}();h.Wrapper=function(){function a(a){if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=a[c[b]])}a.prototype.page=null;a.prototype.mutation=null;a.prototype.event=null;a.prototype.articleInfo=null;a.prototype.publishersHeader=null;a.prototype.activity=0;var b;
Object.defineProperty(a.prototype,"data",{get:k.oneOfGetter(b="page mutation event articleInfo publishersHeader activity".split(" ")),set:k.oneOfSetter(b)});a.create=function(c){return new a(c)};a.encode=function(a,b){b||(b=g.create());null!=a.page&&a.hasOwnProperty("page")&&h.Page.encode(a.page,b.uint32(10).fork()).ldelim();null!=a.mutation&&a.hasOwnProperty("mutation")&&h.Mutation.encode(a.mutation,b.uint32(18).fork()).ldelim();null!=a.event&&a.hasOwnProperty("event")&&h.Event.encode(a.event,b.uint32(26).fork()).ldelim();
null!=a.articleInfo&&a.hasOwnProperty("articleInfo")&&h.ArticleInfo.encode(a.articleInfo,b.uint32(34).fork()).ldelim();null!=a.publishersHeader&&a.hasOwnProperty("publishersHeader")&&h.PublishersHeader.encode(a.publishersHeader,b.uint32(42).fork()).ldelim();null!=a.activity&&a.hasOwnProperty("activity")&&b.uint32(48).uint32(a.activity);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,e=new h.Wrapper;a.pos<c;){var d=a.uint32();switch(d>>>3){case 1:e.page=
h.Page.decode(a,a.uint32());break;case 2:e.mutation=h.Mutation.decode(a,a.uint32());break;case 3:e.event=h.Event.decode(a,a.uint32());break;case 4:e.articleInfo=h.ArticleInfo.decode(a,a.uint32());break;case 5:e.publishersHeader=h.PublishersHeader.decode(a,a.uint32());break;case 6:e.activity=a.uint32();break;default:a.skipType(7&d)}}return e};return a}();h.Page=function(){function a(a){this.content=[];if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=a[c[b]])}a.prototype.meta=
null;a.prototype.content=k.emptyArray;a.prototype.frameId=0;a.prototype.tabId="";a.prototype.recordStamp=k.Long?k.Long.fromBits(0,0,!1):0;a.create=function(b){return new a(b)};a.encode=function(a,c){c||(c=g.create());null!=a.meta&&a.hasOwnProperty("meta")&&h.Page.Meta.encode(a.meta,c.uint32(10).fork()).ldelim();if(null!=a.content&&a.content.length)for(var b=0;b<a.content.length;++b)h.Page.Content.encode(a.content[b],c.uint32(18).fork()).ldelim();null!=a.frameId&&a.hasOwnProperty("frameId")&&c.uint32(24).sint32(a.frameId);
null!=a.tabId&&a.hasOwnProperty("tabId")&&c.uint32(34).string(a.tabId);null!=a.recordStamp&&a.hasOwnProperty("recordStamp")&&c.uint32(40).int64(a.recordStamp);return c};a.decode=function(a,c){a instanceof f||(a=f.create(a));for(var b=void 0===c?a.len:a.pos+c,e=new h.Page;a.pos<b;){var d=a.uint32();switch(d>>>3){case 1:e.meta=h.Page.Meta.decode(a,a.uint32());break;case 2:e.content&&e.content.length||(e.content=[]);e.content.push(h.Page.Content.decode(a,a.uint32()));break;case 3:e.frameId=a.sint32();
break;case 4:e.tabId=a.string();break;case 5:e.recordStamp=a.int64();break;default:a.skipType(7&d)}}return e};a.Box=function(){function a(a){if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=a[c[b]])}a.prototype.width=0;a.prototype.height=0;a.create=function(c){return new a(c)};a.encode=function(a,b){b||(b=g.create());null!=a.width&&a.hasOwnProperty("width")&&b.uint32(8).int32(a.width);null!=a.height&&a.hasOwnProperty("height")&&b.uint32(16).int32(a.height);return b};a.decode=
function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,e=new h.Page.Box;a.pos<c;){var d=a.uint32();switch(d>>>3){case 1:e.width=a.int32();break;case 2:e.height=a.int32();break;default:a.skipType(7&d)}}return e};return a}();a.Location=function(){function a(a){if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=a[c[b]])}a.prototype.host="";a.prototype.protocol="";a.prototype.path="";a.create=function(c){return new a(c)};a.encode=function(a,b){b||(b=
g.create());null!=a.host&&a.hasOwnProperty("host")&&b.uint32(10).string(a.host);null!=a.protocol&&a.hasOwnProperty("protocol")&&b.uint32(18).string(a.protocol);null!=a.path&&a.hasOwnProperty("path")&&b.uint32(26).string(a.path);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Page.Location;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.host=a.string();break;case 2:d.protocol=a.string();break;case 3:d.path=a.string();break;default:a.skipType(7&
e)}}return d};return a}();a.Scroll=function(){function a(a){this.scroll=[];if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=a[c[b]])}a.prototype.target=0;a.prototype.scroll=k.emptyArray;a.create=function(c){return new a(c)};a.encode=function(a,b){b||(b=g.create());null!=a.target&&a.hasOwnProperty("target")&&b.uint32(8).int32(a.target);if(null!=a.scroll&&a.scroll.length){b.uint32(18).fork();for(var c=0;c<a.scroll.length;++c)b.int32(a.scroll[c]);b.ldelim()}return b};a.decode=
function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Page.Scroll;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.target=a.int32();break;case 2:d.scroll&&d.scroll.length||(d.scroll=[]);if(2==(7&e))for(e=a.uint32()+a.pos;a.pos<e;)d.scroll.push(a.int32());else d.scroll.push(a.int32());break;default:a.skipType(7&e)}}return d};return a}();a.Meta=function(){function a(a){this.initialScroll=[];if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=
a[c[b]])}a.prototype.doctype="";a.prototype.title="";a.prototype.address="";a.prototype.ua="";a.prototype.referrer="";a.prototype.base="";a.prototype.hasBase=!1;a.prototype.screen=null;a.prototype.viewport=null;a.prototype.location=null;a.prototype.initialScroll=k.emptyArray;a.create=function(c){return new a(c)};a.encode=function(a,b){b||(b=g.create());null!=a.doctype&&a.hasOwnProperty("doctype")&&b.uint32(10).string(a.doctype);null!=a.title&&a.hasOwnProperty("title")&&b.uint32(18).string(a.title);
null!=a.address&&a.hasOwnProperty("address")&&b.uint32(26).string(a.address);null!=a.ua&&a.hasOwnProperty("ua")&&b.uint32(34).string(a.ua);null!=a.referrer&&a.hasOwnProperty("referrer")&&b.uint32(42).string(a.referrer);null!=a.base&&a.hasOwnProperty("base")&&b.uint32(50).string(a.base);null!=a.hasBase&&a.hasOwnProperty("hasBase")&&b.uint32(56).bool(a.hasBase);null!=a.screen&&a.hasOwnProperty("screen")&&h.Page.Box.encode(a.screen,b.uint32(66).fork()).ldelim();null!=a.viewport&&a.hasOwnProperty("viewport")&&
h.Page.Box.encode(a.viewport,b.uint32(74).fork()).ldelim();null!=a.location&&a.hasOwnProperty("location")&&h.Page.Location.encode(a.location,b.uint32(82).fork()).ldelim();if(null!=a.initialScroll&&a.initialScroll.length)for(var c=0;c<a.initialScroll.length;++c)h.Page.Scroll.encode(a.initialScroll[c],b.uint32(90).fork()).ldelim();return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Page.Meta;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.doctype=
a.string();break;case 2:d.title=a.string();break;case 3:d.address=a.string();break;case 4:d.ua=a.string();break;case 5:d.referrer=a.string();break;case 6:d.base=a.string();break;case 7:d.hasBase=a.bool();break;case 8:d.screen=h.Page.Box.decode(a,a.uint32());break;case 9:d.viewport=h.Page.Box.decode(a,a.uint32());break;case 10:d.location=h.Page.Location.decode(a,a.uint32());break;case 11:d.initialScroll&&d.initialScroll.length||(d.initialScroll=[]);d.initialScroll.push(h.Page.Scroll.decode(a,a.uint32()));
break;default:a.skipType(7&e)}}return d};return a}();a.Content=function(){function a(a){this.attributes={};if(a)for(var c=Object.keys(a),b=0;b<c.length;++b)null!=a[c[b]]&&(this[c[b]]=a[c[b]])}a.prototype.id=0;a.prototype.name="";a.prototype.attributes=k.emptyObject;a.prototype.parent=0;a.prototype.content="";a.prototype.next=0;a.prototype.prev=0;a.create=function(c){return new a(c)};a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&b.uint32(8).int32(a.id);null!=a.name&&
a.hasOwnProperty("name")&&b.uint32(18).string(a.name);if(null!=a.attributes&&a.hasOwnProperty("attributes"))for(var c=Object.keys(a.attributes),d=0;d<c.length;++d)b.uint32(26).fork().uint32(10).string(c[d]).uint32(18).string(a.attributes[c[d]]).ldelim();null!=a.parent&&a.hasOwnProperty("parent")&&b.uint32(32).int32(a.parent);null!=a.content&&a.hasOwnProperty("content")&&b.uint32(42).string(a.content);null!=a.next&&a.hasOwnProperty("next")&&b.uint32(48).int32(a.next);null!=a.prev&&a.hasOwnProperty("prev")&&
b.uint32(56).int32(a.prev);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c,d=void 0===b?a.len:a.pos+b,e=new h.Page.Content;a.pos<d;)switch(c=a.uint32(),c>>>3){case 1:e.id=a.int32();break;case 2:e.name=a.string();break;case 3:a.skip().pos++;e.attributes===k.emptyObject&&(e.attributes={});c=a.string();a.pos++;e.attributes[c]=a.string();break;case 4:e.parent=a.int32();break;case 5:e.content=a.string();break;case 6:e.next=a.int32();break;case 7:e.prev=a.int32();break;default:a.skipType(7&
c)}return e};return a}();return a}();h.Mutation=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.target=0;a.prototype.stamp=0;a.prototype.meta=null;a.prototype.frameId=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.target&&a.hasOwnProperty("target")&&b.uint32(8).int32(a.target);null!=a.stamp&&a.hasOwnProperty("stamp")&&b.uint32(16).int32(a.stamp);null!=a.meta&&a.hasOwnProperty("meta")&&
h.Mutation.Meta.encode(a.meta,b.uint32(26).fork()).ldelim();null!=a.frameId&&a.hasOwnProperty("frameId")&&b.uint32(32).sint32(a.frameId);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Mutation;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.target=a.int32();break;case 2:d.stamp=a.int32();break;case 3:d.meta=h.Mutation.Meta.decode(a,a.uint32());break;case 4:d.frameId=a.sint32();break;default:a.skipType(7&e)}}return d};a.Delete=function(){function a(a){if(a)for(var b=
Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.id=0;a.prototype.pr=0;a.prototype.nx=0;a.prototype.pa=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&b.uint32(8).int32(a.id);null!=a.pr&&a.hasOwnProperty("pr")&&b.uint32(16).int32(a.pr);null!=a.nx&&a.hasOwnProperty("nx")&&b.uint32(24).int32(a.nx);null!=a.pa&&a.hasOwnProperty("pa")&&b.uint32(32).int32(a.pa);return b};a.decode=function(a,b){a instanceof
f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Mutation.Delete;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.id=a.int32();break;case 2:d.pr=a.int32();break;case 3:d.nx=a.int32();break;case 4:d.pa=a.int32();break;default:a.skipType(7&e)}}return d};return a}();a.Add=function(){function a(a){this.at={};if(a)for(var b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.id=0;a.prototype.nm="";a.prototype.pa=0;a.prototype.ns="";a.prototype.pr=0;a.prototype.at=
k.emptyObject;a.prototype.ct="";a.prototype.nx=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&b.uint32(8).int32(a.id);null!=a.nm&&a.hasOwnProperty("nm")&&b.uint32(18).string(a.nm);null!=a.pa&&a.hasOwnProperty("pa")&&b.uint32(24).int32(a.pa);null!=a.ns&&a.hasOwnProperty("ns")&&b.uint32(34).string(a.ns);null!=a.pr&&a.hasOwnProperty("pr")&&b.uint32(40).int32(a.pr);if(null!=a.at&&a.hasOwnProperty("at"))for(var c=Object.keys(a.at),d=
0;d<c.length;++d)b.uint32(50).fork().uint32(10).string(c[d]).uint32(18).string(a.at[c[d]]).ldelim();null!=a.ct&&a.hasOwnProperty("ct")&&b.uint32(58).string(a.ct);null!=a.nx&&a.hasOwnProperty("nx")&&b.uint32(64).int32(a.nx);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c,d=void 0===b?a.len:a.pos+b,e=new h.Mutation.Add;a.pos<d;)switch(c=a.uint32(),c>>>3){case 1:e.id=a.int32();break;case 2:e.nm=a.string();break;case 3:e.pa=a.int32();break;case 4:e.ns=a.string();break;case 5:e.pr=
a.int32();break;case 6:a.skip().pos++;e.at===k.emptyObject&&(e.at={});c=a.string();a.pos++;e.at[c]=a.string();break;case 7:e.ct=a.string();break;case 8:e.nx=a.int32();break;default:a.skipType(7&c)}return e};return a}();a.BeforeAfter=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.o="";a.prototype.n="";a.prototype.r=!1;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.o&&a.hasOwnProperty("o")&&
b.uint32(10).string(a.o);null!=a.n&&a.hasOwnProperty("n")&&b.uint32(18).string(a.n);null!=a.r&&a.hasOwnProperty("r")&&b.uint32(24).bool(a.r);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Mutation.BeforeAfter;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.o=a.string();break;case 2:d.n=a.string();break;case 3:d.r=a.bool();break;default:a.skipType(7&e)}}return d};return a}();a.AttributeChange=function(){function a(a){this.at={};if(a)for(var b=
Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.id=0;a.prototype.at=k.emptyObject;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&b.uint32(8).int32(a.id);if(null!=a.at&&a.hasOwnProperty("at"))for(var c=Object.keys(a.at),d=0;d<c.length;++d)b.uint32(18).fork().uint32(10).string(c[d]),h.Mutation.BeforeAfter.encode(a.at[c[d]],b.uint32(18).fork()).ldelim().ldelim();return b};a.decode=function(a,b){a instanceof
f||(a=f.create(a));for(var c,d=void 0===b?a.len:a.pos+b,e=new h.Mutation.AttributeChange;a.pos<d;)switch(c=a.uint32(),c>>>3){case 1:e.id=a.int32();break;case 2:a.skip().pos++;e.at===k.emptyObject&&(e.at={});c=a.string();a.pos++;e.at[c]=h.Mutation.BeforeAfter.decode(a,a.uint32());break;default:a.skipType(7&c)}return e};return a}();a.TextChange=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.id=0;a.prototype.ct=null;a.create=
function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&b.uint32(8).int32(a.id);null!=a.ct&&a.hasOwnProperty("ct")&&h.Mutation.BeforeAfter.encode(a.ct,b.uint32(18).fork()).ldelim();return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Mutation.TextChange;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.id=a.int32();break;case 2:d.ct=h.Mutation.BeforeAfter.decode(a,a.uint32());break;default:a.skipType(7&
e)}}return d};return a}();a.Changes=function(){function a(a){this.a=[];this.b=[];this.c=[];this.d=[];if(a)for(var b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.a=k.emptyArray;a.prototype.b=k.emptyArray;a.prototype.c=k.emptyArray;a.prototype.d=k.emptyArray;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());if(null!=a.a&&a.a.length)for(var c=0;c<a.a.length;++c)h.Mutation.Delete.encode(a.a[c],b.uint32(10).fork()).ldelim();if(null!=a.b&&
a.b.length)for(c=0;c<a.b.length;++c)h.Mutation.Add.encode(a.b[c],b.uint32(18).fork()).ldelim();if(null!=a.c&&a.c.length)for(c=0;c<a.c.length;++c)h.Mutation.AttributeChange.encode(a.c[c],b.uint32(26).fork()).ldelim();if(null!=a.d&&a.d.length)for(c=0;c<a.d.length;++c)h.Mutation.TextChange.encode(a.d[c],b.uint32(34).fork()).ldelim();return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Mutation.Changes;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.a&&
d.a.length||(d.a=[]);d.a.push(h.Mutation.Delete.decode(a,a.uint32()));break;case 2:d.b&&d.b.length||(d.b=[]);d.b.push(h.Mutation.Add.decode(a,a.uint32()));break;case 3:d.c&&d.c.length||(d.c=[]);d.c.push(h.Mutation.AttributeChange.decode(a,a.uint32()));break;case 4:d.d&&d.d.length||(d.d=[]);d.d.push(h.Mutation.TextChange.decode(a,a.uint32()));break;default:a.skipType(7&e)}}return d};return a}();a.Meta=function(){function a(a){this.changes=[];if(a)for(var b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&
(this[b[c]]=a[b[c]])}a.prototype.index=0;a.prototype.changes=k.emptyArray;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.index&&a.hasOwnProperty("index")&&b.uint32(8).int32(a.index);if(null!=a.changes&&a.changes.length)for(var c=0;c<a.changes.length;++c)h.Mutation.Changes.encode(a.changes[c],b.uint32(18).fork()).ldelim();return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Mutation.Meta;a.pos<c;){var e=
a.uint32();switch(e>>>3){case 1:d.index=a.int32();break;case 2:d.changes&&d.changes.length||(d.changes=[]);d.changes.push(h.Mutation.Changes.decode(a,a.uint32()));break;default:a.skipType(7&e)}}return d};return a}();return a}();h.Event=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.type=0;a.prototype.target=0;a.prototype.frameId=0;a.prototype.mouseEvent=null;a.prototype.scrollEvent=null;a.prototype.windowEvent=null;a.prototype.selectionEvent=
null;a.prototype.changeEvent=null;a.prototype.touchEvent=null;a.prototype.methodEvent=null;a.prototype.propertyEvent=null;a.prototype.zoomEvent=null;a.prototype.resizeEvent=null;a.prototype.keystrokesEvent=null;a.prototype.deviceRotationEvent=null;a.prototype.fatalErrorEvent=null;a.prototype.hashchangeEvent=null;var b;Object.defineProperty(a.prototype,"meta",{get:k.oneOfGetter(b="mouseEvent scrollEvent windowEvent selectionEvent changeEvent touchEvent methodEvent propertyEvent zoomEvent resizeEvent keystrokesEvent deviceRotationEvent fatalErrorEvent hashchangeEvent".split(" ")),
set:k.oneOfSetter(b)});a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.type&&a.hasOwnProperty("type")&&b.uint32(8).int32(a.type);null!=a.target&&a.hasOwnProperty("target")&&b.uint32(16).sint32(a.target);null!=a.frameId&&a.hasOwnProperty("frameId")&&b.uint32(24).sint32(a.frameId);null!=a.mouseEvent&&a.hasOwnProperty("mouseEvent")&&h.MouseEvent.encode(a.mouseEvent,b.uint32(34).fork()).ldelim();null!=a.scrollEvent&&a.hasOwnProperty("scrollEvent")&&h.ScrollEvent.encode(a.scrollEvent,
b.uint32(42).fork()).ldelim();null!=a.windowEvent&&a.hasOwnProperty("windowEvent")&&h.WindowEvent.encode(a.windowEvent,b.uint32(50).fork()).ldelim();null!=a.selectionEvent&&a.hasOwnProperty("selectionEvent")&&h.SelectionEvent.encode(a.selectionEvent,b.uint32(58).fork()).ldelim();null!=a.changeEvent&&a.hasOwnProperty("changeEvent")&&h.ChangeEvent.encode(a.changeEvent,b.uint32(66).fork()).ldelim();null!=a.touchEvent&&a.hasOwnProperty("touchEvent")&&h.TouchEvent.encode(a.touchEvent,b.uint32(74).fork()).ldelim();
null!=a.methodEvent&&a.hasOwnProperty("methodEvent")&&h.MethodEvent.encode(a.methodEvent,b.uint32(82).fork()).ldelim();null!=a.propertyEvent&&a.hasOwnProperty("propertyEvent")&&h.PropertyEvent.encode(a.propertyEvent,b.uint32(90).fork()).ldelim();null!=a.zoomEvent&&a.hasOwnProperty("zoomEvent")&&h.ZoomEvent.encode(a.zoomEvent,b.uint32(98).fork()).ldelim();null!=a.resizeEvent&&a.hasOwnProperty("resizeEvent")&&h.ResizeEvent.encode(a.resizeEvent,b.uint32(106).fork()).ldelim();null!=a.keystrokesEvent&&
a.hasOwnProperty("keystrokesEvent")&&h.KeystrokesEvent.encode(a.keystrokesEvent,b.uint32(114).fork()).ldelim();null!=a.deviceRotationEvent&&a.hasOwnProperty("deviceRotationEvent")&&h.DeviceRotationEvent.encode(a.deviceRotationEvent,b.uint32(122).fork()).ldelim();null!=a.fatalErrorEvent&&a.hasOwnProperty("fatalErrorEvent")&&h.FatalErrorEvent.encode(a.fatalErrorEvent,b.uint32(130).fork()).ldelim();null!=a.hashchangeEvent&&a.hasOwnProperty("hashchangeEvent")&&h.HashchangeEvent.encode(a.hashchangeEvent,
b.uint32(138).fork()).ldelim();return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.Event;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.type=a.int32();break;case 2:d.target=a.sint32();break;case 3:d.frameId=a.sint32();break;case 4:d.mouseEvent=h.MouseEvent.decode(a,a.uint32());break;case 5:d.scrollEvent=h.ScrollEvent.decode(a,a.uint32());break;case 6:d.windowEvent=h.WindowEvent.decode(a,a.uint32());break;case 7:d.selectionEvent=h.SelectionEvent.decode(a,
a.uint32());break;case 8:d.changeEvent=h.ChangeEvent.decode(a,a.uint32());break;case 9:d.touchEvent=h.TouchEvent.decode(a,a.uint32());break;case 10:d.methodEvent=h.MethodEvent.decode(a,a.uint32());break;case 11:d.propertyEvent=h.PropertyEvent.decode(a,a.uint32());break;case 12:d.zoomEvent=h.ZoomEvent.decode(a,a.uint32());break;case 13:d.resizeEvent=h.ResizeEvent.decode(a,a.uint32());break;case 14:d.keystrokesEvent=h.KeystrokesEvent.decode(a,a.uint32());break;case 15:d.deviceRotationEvent=h.DeviceRotationEvent.decode(a,
a.uint32());break;case 16:d.fatalErrorEvent=h.FatalErrorEvent.decode(a,a.uint32());break;case 17:d.hashchangeEvent=h.HashchangeEvent.decode(a,a.uint32());break;default:a.skipType(7&e)}}return d};return a}();h.MouseEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.x=0;a.prototype.y=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.x&&a.hasOwnProperty("x")&&b.uint32(8).int32(a.x);null!=
a.y&&a.hasOwnProperty("y")&&b.uint32(16).int32(a.y);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.MouseEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.x=a.int32();break;case 2:d.y=a.int32();break;default:a.skipType(7&e)}}return d};return a}();h.ScrollEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.x=0;a.prototype.y=0;a.prototype.page=!1;a.create=function(b){return new a(b)};
a.encode=function(a,b){b||(b=g.create());null!=a.x&&a.hasOwnProperty("x")&&b.uint32(8).int32(a.x);null!=a.y&&a.hasOwnProperty("y")&&b.uint32(16).int32(a.y);null!=a.page&&a.hasOwnProperty("page")&&b.uint32(24).bool(a.page);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ScrollEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.x=a.int32();break;case 2:d.y=a.int32();break;case 3:d.page=a.bool();break;default:a.skipType(7&e)}}return d};
return a}();h.WindowEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.WindowEvent;a.pos<c;){var e=a.uint32();a.skipType(7&e)}return d};return a}();h.SelectionEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&
(this[b[d]]=a[b[d]])}a.prototype.start=0;a.prototype.end=0;a.prototype.startNode=0;a.prototype.endNode=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.start&&a.hasOwnProperty("start")&&b.uint32(8).int32(a.start);null!=a.end&&a.hasOwnProperty("end")&&b.uint32(16).int32(a.end);null!=a.startNode&&a.hasOwnProperty("startNode")&&b.uint32(24).int32(a.startNode);null!=a.endNode&&a.hasOwnProperty("endNode")&&b.uint32(32).int32(a.endNode);return b};a.decode=function(a,
b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.SelectionEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.start=a.int32();break;case 2:d.end=a.int32();break;case 3:d.startNode=a.int32();break;case 4:d.endNode=a.int32();break;default:a.skipType(7&e)}}return d};return a}();h.ChangeEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.value="";a.prototype.checked=!1;a.prototype.hidden=!1;a.create=
function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.value&&a.hasOwnProperty("value")&&b.uint32(10).string(a.value);null!=a.checked&&a.hasOwnProperty("checked")&&b.uint32(16).bool(a.checked);null!=a.hidden&&a.hasOwnProperty("hidden")&&b.uint32(24).bool(a.hidden);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ChangeEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.value=a.string();break;case 2:d.checked=a.bool();
break;case 3:d.hidden=a.bool();break;default:a.skipType(7&e)}}return d};return a}();h.TouchEvent=function(){function a(a){this.touches=[];if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.touches=k.emptyArray;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());if(null!=a.touches&&a.touches.length)for(var c=0;c<a.touches.length;++c)h.TouchEvent.SubMeta.encode(a.touches[c],b.uint32(10).fork()).ldelim();return b};a.decode=function(a,
b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.TouchEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.touches&&d.touches.length||(d.touches=[]);d.touches.push(h.TouchEvent.SubMeta.decode(a,a.uint32()));break;default:a.skipType(7&e)}}return d};a.SubMeta=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.id="";a.prototype.x=0;a.prototype.y=0;a.prototype.force=0;a.create=function(b){return new a(b)};
a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&b.uint32(10).string(a.id);null!=a.x&&a.hasOwnProperty("x")&&b.uint32(21)["float"](a.x);null!=a.y&&a.hasOwnProperty("y")&&b.uint32(29)["float"](a.y);null!=a.force&&a.hasOwnProperty("force")&&b.uint32(37)["float"](a.force);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.TouchEvent.SubMeta;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.id=a.string();break;case 2:d.x=
a["float"]();break;case 3:d.y=a["float"]();break;case 4:d.force=a["float"]();break;default:a.skipType(7&e)}}return d};return a}();return a}();h.ZoomEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.zoomFrom=null;a.prototype.zoomTo=null;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.zoomFrom&&a.hasOwnProperty("zoomFrom")&&h.ZoomEvent.ZoomPoint.encode(a.zoomFrom,b.uint32(10).fork()).ldelim();
null!=a.zoomTo&&a.hasOwnProperty("zoomTo")&&h.ZoomEvent.ZoomPoint.encode(a.zoomTo,b.uint32(18).fork()).ldelim();return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ZoomEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.zoomFrom=h.ZoomEvent.ZoomPoint.decode(a,a.uint32());break;case 2:d.zoomTo=h.ZoomEvent.ZoomPoint.decode(a,a.uint32());break;default:a.skipType(7&e)}}return d};a.ZoomPoint=function(){function a(a){if(a)for(var b=Object.keys(a),
c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.level=0;a.prototype.x=0;a.prototype.y=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.level&&a.hasOwnProperty("level")&&b.uint32(13)["float"](a.level);null!=a.x&&a.hasOwnProperty("x")&&b.uint32(16).int32(a.x);null!=a.y&&a.hasOwnProperty("y")&&b.uint32(24).int32(a.y);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ZoomEvent.ZoomPoint;a.pos<
c;){var e=a.uint32();switch(e>>>3){case 1:d.level=a["float"]();break;case 2:d.x=a.int32();break;case 3:d.y=a.int32();break;default:a.skipType(7&e)}}return d};return a}();return a}();h.ResizeEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.width=0;a.prototype.height=0;a.prototype.pageWidth=0;a.prototype.pageHeight=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.width&&a.hasOwnProperty("width")&&
b.uint32(8).int32(a.width);null!=a.height&&a.hasOwnProperty("height")&&b.uint32(16).int32(a.height);null!=a.pageWidth&&a.hasOwnProperty("pageWidth")&&b.uint32(24).int32(a.pageWidth);null!=a.pageHeight&&a.hasOwnProperty("pageHeight")&&b.uint32(32).int32(a.pageHeight);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ResizeEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.width=a.int32();break;case 2:d.height=a.int32();break;case 3:d.pageWidth=
a.int32();break;case 4:d.pageHeight=a.int32();break;default:a.skipType(7&e)}}return d};return a}();h.MethodEvent=function(){function a(a){this.args=[];if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.method="";a.prototype.args=k.emptyArray;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.method&&a.hasOwnProperty("method")&&b.uint32(10).string(a.method);if(null!=a.args&&a.args.length)for(var c=0;c<a.args.length;++c)b.uint32(18).string(a.args[c]);
return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.MethodEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.method=a.string();break;case 2:d.args&&d.args.length||(d.args=[]);d.args.push(a.string());break;default:a.skipType(7&e)}}return d};return a}();h.PropertyEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.property="";a.prototype.value="";a.create=function(b){return new a(b)};
a.encode=function(a,b){b||(b=g.create());null!=a.property&&a.hasOwnProperty("property")&&b.uint32(10).string(a.property);null!=a.value&&a.hasOwnProperty("value")&&b.uint32(18).string(a.value);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.PropertyEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.property=a.string();break;case 2:d.value=a.string();break;default:a.skipType(7&e)}}return d};return a}();h.KeystrokesEvent=function(){function a(a){this.keystrokes=
[];if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.keystrokes=k.emptyArray;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());if(null!=a.keystrokes&&a.keystrokes.length)for(var c=0;c<a.keystrokes.length;++c)h.KeystrokesEvent.KeystrokeEvent.encode(a.keystrokes[c],b.uint32(10).fork()).ldelim();return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.KeystrokesEvent;a.pos<c;){var e=
a.uint32();switch(e>>>3){case 1:d.keystrokes&&d.keystrokes.length||(d.keystrokes=[]);d.keystrokes.push(h.KeystrokesEvent.KeystrokeEvent.decode(a,a.uint32()));break;default:a.skipType(7&e)}}return d};a.KeystrokeEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}a.prototype.id=0;a.prototype.key="";a.prototype.isMeta=!1;a.prototype.modifier="";a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&
b.uint32(8).int32(a.id);null!=a.key&&a.hasOwnProperty("key")&&b.uint32(18).string(a.key);null!=a.isMeta&&a.hasOwnProperty("isMeta")&&b.uint32(24).bool(a.isMeta);null!=a.modifier&&a.hasOwnProperty("modifier")&&b.uint32(34).string(a.modifier);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.KeystrokesEvent.KeystrokeEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.id=a.int32();break;case 2:d.key=a.string();break;case 3:d.isMeta=a.bool();
break;case 4:d.modifier=a.string();break;default:a.skipType(7&e)}}return d};return a}();return a}();h.DeviceRotationEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.width=0;a.prototype.height=0;a.prototype.orientation=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.width&&a.hasOwnProperty("width")&&b.uint32(8).int32(a.width);null!=a.height&&a.hasOwnProperty("height")&&b.uint32(16).int32(a.height);
null!=a.orientation&&a.hasOwnProperty("orientation")&&b.uint32(24).int32(a.orientation);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.DeviceRotationEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.width=a.int32();break;case 2:d.height=a.int32();break;case 3:d.orientation=a.int32();break;default:a.skipType(7&e)}}return d};return a}();h.FatalErrorEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=
a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.code="";a.prototype.exception="";a.prototype.stack="";a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.code&&a.hasOwnProperty("code")&&b.uint32(10).string(a.code);null!=a.exception&&a.hasOwnProperty("exception")&&b.uint32(18).string(a.exception);null!=a.stack&&a.hasOwnProperty("stack")&&b.uint32(26).string(a.stack);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.FatalErrorEvent;a.pos<
c;){var e=a.uint32();switch(e>>>3){case 1:d.code=a.string();break;case 2:d.exception=a.string();break;case 3:d.stack=a.string();break;default:a.skipType(7&e)}}return d};return a}();h.HashchangeEvent=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.hash="";a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.hash&&a.hasOwnProperty("hash")&&b.uint32(10).string(a.hash);return b};a.decode=function(a,
b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.HashchangeEvent;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.hash=a.string();break;default:a.skipType(7&e)}}return d};return a}();h.EventType=function(){var a={},b=Object.create(a);b[a[0]="mousemove"]=0;b[a[1]="mouseup"]=1;b[a[2]="mousedown"]=2;b[a[3]="click"]=3;b[a[4]="scroll"]=4;b[a[5]="windowblur"]=5;b[a[6]="windowfocus"]=6;b[a[7]="focus"]=7;b[a[8]="blur"]=8;b[a[9]="eof"]=9;b[a[10]="selection"]=10;b[a[11]="change"]=
11;b[a[12]="input"]=12;b[a[13]="touchmove"]=13;b[a[14]="touchstart"]=14;b[a[15]="touchend"]=15;b[a[16]="touchcancel"]=16;b[a[17]="touchforcechange"]=17;b[a[18]="canvasMethod"]=18;b[a[19]="canvasProperty"]=19;b[a[20]="zoom"]=20;b[a[21]="resize"]=21;b[a[22]="mediaMethod"]=22;b[a[23]="mediaProperty"]=23;b[a[24]="keystroke"]=24;b[a[25]="deviceRotation"]=25;b[a[26]="fatalError"]=26;b[a[27]="hashchange"]=27;return b}();h.PublishersHeader=function(){function a(a){this.articleMeta=[];if(a)for(var b=Object.keys(a),
d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.articleMeta=k.emptyArray;a.prototype.involvedTime=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());if(null!=a.articleMeta&&a.articleMeta.length)for(var c=0;c<a.articleMeta.length;++c)h.ArticleMeta.encode(a.articleMeta[c],b.uint32(10).fork()).ldelim();null!=a.involvedTime&&a.hasOwnProperty("involvedTime")&&b.uint32(16).int32(a.involvedTime);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));
for(var c=void 0===b?a.len:a.pos+b,d=new h.PublishersHeader;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.articleMeta&&d.articleMeta.length||(d.articleMeta=[]);d.articleMeta.push(h.ArticleMeta.decode(a,a.uint32()));break;case 2:d.involvedTime=a.int32();break;default:a.skipType(7&e)}}return d};return a}();h.ArticleMeta=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.id=0;a.prototype.x=0;a.prototype.y=0;a.prototype.width=
0;a.prototype.height=0;a.prototype.involvedTime=0;a.prototype.maxScrolled=0;a.prototype.chars=0;a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&b.uint32(8).uint32(a.id);null!=a.x&&a.hasOwnProperty("x")&&b.uint32(16).int32(a.x);null!=a.y&&a.hasOwnProperty("y")&&b.uint32(24).int32(a.y);null!=a.width&&a.hasOwnProperty("width")&&b.uint32(32).int32(a.width);null!=a.height&&a.hasOwnProperty("height")&&b.uint32(40).int32(a.height);null!=
a.involvedTime&&a.hasOwnProperty("involvedTime")&&b.uint32(48).int32(a.involvedTime);null!=a.maxScrolled&&a.hasOwnProperty("maxScrolled")&&b.uint32(61)["float"](a.maxScrolled);null!=a.chars&&a.hasOwnProperty("chars")&&b.uint32(64).int32(a.chars);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ArticleMeta;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.id=a.uint32();break;case 2:d.x=a.int32();break;case 3:d.y=a.int32();break;case 4:d.width=
a.int32();break;case 5:d.height=a.int32();break;case 6:d.involvedTime=a.int32();break;case 7:d.maxScrolled=a["float"]();break;case 8:d.chars=a.int32();break;default:a.skipType(7&e)}}return d};return a}();h.ArticleInfo=function(){function a(a){this.authors=[];this.topics=[];this.rubric=[];if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.id=0;a.prototype.pageUrlCanonical="";a.prototype.pageTitle="";a.prototype.authors=k.emptyArray;a.prototype.topics=k.emptyArray;
a.prototype.publicationDate="";a.prototype.chars=0;a.prototype.rubric=k.emptyArray;a.prototype.updateDate="";a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.id&&a.hasOwnProperty("id")&&b.uint32(8).uint32(a.id);null!=a.pageUrlCanonical&&a.hasOwnProperty("pageUrlCanonical")&&b.uint32(18).string(a.pageUrlCanonical);null!=a.pageTitle&&a.hasOwnProperty("pageTitle")&&b.uint32(26).string(a.pageTitle);if(null!=a.authors&&a.authors.length)for(var c=0;c<a.authors.length;++c)h.ArticleAuthor.encode(a.authors[c],
b.uint32(34).fork()).ldelim();if(null!=a.topics&&a.topics.length)for(c=0;c<a.topics.length;++c)h.ArticleTopic.encode(a.topics[c],b.uint32(42).fork()).ldelim();null!=a.publicationDate&&a.hasOwnProperty("publicationDate")&&b.uint32(50).string(a.publicationDate);null!=a.chars&&a.hasOwnProperty("chars")&&b.uint32(56).int32(a.chars);if(null!=a.rubric&&a.rubric.length)for(c=0;c<a.rubric.length;++c)h.ArticleRubric.encode(a.rubric[c],b.uint32(66).fork()).ldelim();null!=a.updateDate&&a.hasOwnProperty("updateDate")&&
b.uint32(74).string(a.updateDate);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ArticleInfo;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.id=a.uint32();break;case 2:d.pageUrlCanonical=a.string();break;case 3:d.pageTitle=a.string();break;case 4:d.authors&&d.authors.length||(d.authors=[]);d.authors.push(h.ArticleAuthor.decode(a,a.uint32()));break;case 5:d.topics&&d.topics.length||(d.topics=[]);d.topics.push(h.ArticleTopic.decode(a,a.uint32()));
break;case 6:d.publicationDate=a.string();break;case 7:d.chars=a.int32();break;case 8:d.rubric&&d.rubric.length||(d.rubric=[]);d.rubric.push(h.ArticleRubric.decode(a,a.uint32()));break;case 9:d.updateDate=a.string();break;default:a.skipType(7&e)}}return d};return a}();h.ArticleAuthor=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.name="";a.create=function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.name&&
a.hasOwnProperty("name")&&b.uint32(10).string(a.name);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ArticleAuthor;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.name=a.string();break;default:a.skipType(7&e)}}return d};return a}();h.ArticleTopic=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.name="";a.create=function(b){return new a(b)};a.encode=function(a,b){b||
(b=g.create());null!=a.name&&a.hasOwnProperty("name")&&b.uint32(10).string(a.name);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ArticleTopic;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.name=a.string();break;default:a.skipType(7&e)}}return d};return a}();h.ArticleRubric=function(){function a(a){if(a)for(var b=Object.keys(a),d=0;d<b.length;++d)null!=a[b[d]]&&(this[b[d]]=a[b[d]])}a.prototype.name="";a.prototype.position=0;a.create=
function(b){return new a(b)};a.encode=function(a,b){b||(b=g.create());null!=a.name&&a.hasOwnProperty("name")&&b.uint32(10).string(a.name);null!=a.position&&a.hasOwnProperty("position")&&b.uint32(16).int32(a.position);return b};a.decode=function(a,b){a instanceof f||(a=f.create(a));for(var c=void 0===b?a.len:a.pos+b,d=new h.ArticleRubric;a.pos<c;){var e=a.uint32();switch(e>>>3){case 1:d.name=a.string();break;case 2:d.position=a.int32();break;default:a.skipType(7&e)}}return d};return a}();a.exports=
h}]),Ua={ScrollEvent:{type:C.ScrollEvent,events:["scroll"]},SelectionEvent:{type:C.SelectionEvent,events:["selection"]},ChangeEvent:{type:C.ChangeEvent,events:["change","input"]},MethodEvent:{type:C.MethodEvent,repeated:"args",events:["canvasMethod","mediaMethod"]},PropertyEvent:{type:C.PropertyEvent,events:["canvasProperty","mediaProperty"]},KeystrokesEvent:{type:C.KeystrokesEvent,repeated:"keystrokes",events:["keystroke"]},ZoomEvent:{type:C.ZoomEvent,events:["zoom"]},ResizeEvent:{type:C.ResizeEvent,
events:["resize"]},WindowEvent:{type:C.WindowEvent,events:["windowfocus","windowblur","focus","blur","eof"]},MouseEvent:{type:C.MouseEvent,events:["mousemove","mouseup","mousedown","click"]},DeviceRotationEvent:{type:C.DeviceRotationEvent,events:["deviceRotation"]},FatalErrorEvent:{type:C.FatalErrorEvent,events:["fatalError"]},TouchEvent:{type:C.TouchEvent,repeated:"touches",events:["touchmove","touchstart","touchend","touchcancel","touchforcechange"]}},Ub=k.reduce(function(a,b){return a.concat(k.map(function(a){return{eventName:a,
type:Ua[b].type,repeated:Ua[b].repeated,typeStr:b}},Ua[b].events))},[],k.keys(Ua)),vb=za.inherit({protocol:"",chunkSize:0,counterId:"",counterType:"",meta:null,maxBufferSize:7E5,serializer:{nullToStr:function(a){var b=this;if(k.isArray(a))return k.map(function(a){return b.nullToStr(a)},a);if(k.isObject(a))k.forEachKey(a,function(d,f){a[d]=b.nullToStr(f);return!0});else if(null===a||a===y)a="";return a},uncapitalize:function(a,b){var d=a.slice(1);return a.charAt(0).toLowerCase()+(b?d.toLowerCase():
d)},capitalize:function(a,b){var d=a.slice(1);return a.charAt(0).toUpperCase()+(b?d.toLowerCase():d)},notNaN:function(a){return isNaN(a)&&"number"==typeof a?0:a},eventSerialize:function(a){var b=k.filter(function(b){return b.eventName==a.type},Ub),d;for(d=0;d<b.length;d++)var f=b[d];if(f)return f.repeated?(d=new f.type,d[f.repeated]=a.meta):d=new f.type(this.nullToStr(a.meta)),b=new C.Event({type:C.EventType[f.eventName],target:a.target,frameId:a.frameId}),b[this.uncapitalize(f.typeStr)]=d,b},pageSerialize:function(a){return new C.Page(this.nullToStr(a))},
articleInfoSerialize:function(a){return new C.ArticleInfo(this.nullToStr(a))},publishersHeaderSerialize:function(a){return new C.PublishersHeader(this.nullToStr(a))},mutationSerialize:function(a){return new C.Mutation(this.nullToStr(a))},initBuffer:function(){return new C.BufferWrapper},appendBuffer:function(a,b){a.buffer.push(b)},serializeChunk:function(a){return this.serializeBuffer(null,a)},serializeBuffer:function(a,b,d){var f=new C.Buffer(b);a=a||new C.Wrapper;b||(f.data=a);d!==y&&(f.stamp=d);
b&&b.stamp===y&&(f.stamp=v.getFormStart());return f},toTransport:function(a,b,d,f){var g=b||"BufferWrapper",k=this;if(d)ib.chain([function(){return k.nullToStr(a)},function(a){return C[g].encode(a)},function(a){return a.finish()},function(a){return d.call(f,a)}],"",!1,"toTransportChain."+g);else return C[g].encode(this.nullToStr(a)).finish()},fromTrasport:function(a,b){if("number"==typeof a[0])return C[b||"BufferWrapper"].decode(a)},serialize:function(a,b,d){var f={},g={},k=this[a+"Serialize"];if(k)f[a]=
k.call(this,b),g=new C.Wrapper(f);else if(d&&C.Wrapper.prototype[a]!==y)g[a]=b;else throw"Unrecoginze type of message";return d?C.Wrapper.encode(g).finish():g}},_dataSize:0,flushTimeout:2E3,storageKey:"visorbuff3",active:!1,wvType:3,_v:"",_initComponent:function(){this._sender=new jb({version:this.wvType,protocol:this.protocol,browserInfoMix:this.browserInfoMix,globalConfig:this.globalConfig,counterId:this.counterId,counterType:this.counterType});this.maxChunkSize=.9*this.maxBufferSize;Ta.superclass._initComponent.apply(this,
arguments)},activate:function(){this.active||(this.active=!0)},mergeData:function(a,b){b.data&&0===b.data.size||(this.serializer.appendBuffer(a,b),this._dataSize=0)},_getSize:function(a){return a.length},sendEncoded:function(a,b,d,f,g){var k=this._getSize(a),h=this.getFlushSize(),m=0,e=0,c=1;d.size=k;h+k>this.maxBufferSize&&h&&this._flush(f);if(k>this.maxBufferSize)for(h=Math.ceil(k/this.maxChunkSize);e<k;){b.page=c;b.end=c===h;b.chunk=a.slice(m,m+=this.maxChunkSize);if(0==b.chunk.length)break;b.size=
this._getSize(b.chunk);e+=b.size;d=this.serializer.serializeChunk(b);this.store.set(d,g);this.append(d,f);c++}else d=this.serializer.serializeBuffer(d,null,b.stamp),this.store.set(d,g),this.append(d,f)},addData:function(a,b,d,f,g){var p={type:a};this._v=d;this.wrappers.length&&k.arrayEvery(this.wrappers,function(d){d.trigger&&d.trigger(a,b);return 1});if(g){var h=this.serializer.serializeBuffer({size:0});this.append(h,f)}else this._data&&0==this._data.buffer.length&&(this.startBufferTime=v.getSeconds()),
this.updateStamp(b,p),h=this.serializer.serialize(a,b),f?(d=this.serializer.toTransport(h,"Wrapper"),this.sendEncoded(d,p,h,!0,{id:a,data:b})):this.serializer.toTransport(h,"Wrapper",function(d){this.sendEncoded(d,p,h,!1,{id:a,data:b})},this)},dataFromStorage:function(a){return this.serializer.fromTrasport(a)},dataToStorage:function(a){return this.serializer.toTransport(a)},getFlushSize:function(){var a=this,b=k.reduce(function(a,b){return a+(b.data?b.data.size:b.size)},0,this._data.buffer);this.wrappers.length&&
(b+=k.reduce(function(b,f){var d=f.getBufferData();return b+=a.serializer.serialize(d.type,d.data,!0).length},b,this.wrappers));return b},onFlush:function(a,b,d,f){var g=this;this._dataSize=0;a&&(this.wrappers.length&&(k.arrayEvery(this.wrappers,function(b){if(!b.onFlush)return 1;k.arrayEvery(a.buffer,function(a){a=this.store.pop(a);if(!a)return 1;b.onFlush(a.id,a.data);return 1},this)},this),a=k.reduce(function(a,b){var d=b.getBufferData(),e={data:{}};e.data[d.type]=d.data;d=new g.serializer.serializeBuffer(null,
e);g.mergeData(a,d);return a},a,this.wrappers)),f?this._sender.sendPacket(this.serializer.toTransport(a),b.url,b.hitId,d,b.timezone,b.timestamp,this.startBufferTime):this.serializer.toTransport(a,"BufferWrapper",function(a){this._sender.sendPacket(a,b.url,b.hitId,d,b.timezone,b.timestamp,this.startBufferTime)},this))},clear:function(){this._data=this.serializer.initBuffer();this._dataSize=0;this._flushTID=null;this.storage&&this.storage.remove(this.storageKey)}}),ka={};ka._cookie=new J({onlyCurrentDomain:!0});
ka._check=E(function(){return-1<n.location.href.indexOf("_ym_debug\x3d1")||n._ym_debug||"1"===ka._cookie.read("debug")});ka.enabled=ka._check();ka.log=E(function(){(-1<I.href.indexOf("_ym_debug\x3d1")||n._ym_debug)&&this._cookie.create("debug","1");n.console&&console.log&&this._check()&&(ka.enabled=!0,console.log.apply(console,arguments))},"DebugConsole.log");var Vb=G.inherit({eventMap:{mousemove:{val:0,multiply:1/.68},click:{val:0,multiply:1/.00975},input:{val:0,multiply:1/.0116},scroll:{val:0,multiply:1/
.31},fatalError:{val:0,multiply:1}},getBufferData:function(){var a=this;return{type:"activity",data:k.reduce(function(b,d){var f=a.eventMap[d];return Math.round(b+f.val*f.multiply)},0,k.keys(this.eventMap))}},onFlush:function(a,b){var d;if(d=this.eventMap["event"!==a?a:b.type])d.val+=1}}),Wb=G.inherit({buffer:null,meta:!1,activeEvents:"page resize scroll mousemove mousedown click windowfocus keystroke deviceRotation input touchmove touchstart".split(" "),isStopped:!1,schemas:{schema:{id:"s",_select:function(a,
b){return a.querySelectorAll(b)},_testAttr:function(a,b,d){return d.test(a.getAttribute(b))},_getVal:function(a){if(a&&0!=a.length)return a.length===y&&(a=[a]),a[0].getAttribute("content")||a[0].innerText},_getDate:function(a){var b="";a.length||(a=[a]);a=a[0];return b=a.attributes&&a.attributes.datetime?b+a.attributes.datetime.value:b+this._getVal(a)},fields:{id:function(a){var b=this._select(a,'[itemprop\x3d"identifier"]');if(b.length)return this._getVal(b);b=this._select(a,'[itemprop\x3d"mainEntityOfPage"]');
return b.length&&b[0].getAttribute("itemid")?b[0].getAttribute("itemid"):null},chars:function(a){var b=0,d=this._select(a,'[itemprop\x3d"articleBody"]');return b=d.length?b+d[0].innerText.length:b+a.innerText.length},topics:function(a){var b=[];a=this._select(a,'[itemprop\x3d"about"]');return b=k.map(function(a){var b={};a=self._select(a,'[itemprop\x3d"name"]');a.length&&(b.name=self._getVal(a));return b},a)},rubric:function(a){var b=[],d=this;a=this._select(a,'[itemtype$\x3d"schema.org/BreadcrumbList"]');
a.length||(a=this._select(this.root,'[itemtype$\x3d"schema.org/BreadcrumbList"]'));a.length&&(a=this._select(a[0],'[itemprop\x3d"itemListElement"]'),a.length&&(b=k.map(function(a){return{name:d._getVal(d._select(a,'[itemprop\x3d"name"]')),position:d._getVal(d._select(a,'[itemprop\x3d"position"]'))}},a)));return b},updateDate:function(a){a=this._select(a,'[itemprop\x3d"dateModified"]');return a.length?this._getDate(a):""},publicationDate:function(a){a=this._select(a,'[itemprop\x3d"datePublished"]');
return a.length?this._getDate(a):""},pageUrlCanonical:function(){var a=this._select(this.root,'[rel\x3d"canonical"]');if(a.length)return a[0].href},pageTitle:function(a){var b="",d=this._select(a,'[itemprop\x3d"headline"]');d.length&&(b+=this._getVal(d));d=this._select(a,'[itemprop\x3d"alternativeHeadline"]');d.length&&(b+=" "+this._getVal(d));return b},authors:function(a){a=this._select(a,'[itemprop\x3d"author"]');var b=this,d=[];return d=k.map(function(a){var d={};if(b._testAttr(a,"itemtype",/.+schema.org\/(Person|Organization)/)){var f=
b._select(a,'[itemprop\x3d"name"]');f.length&&(d.name=b._getVal(f))}d.name||(d.name=a.getAttribute("content")||a.innerText||a.getAttribute("href"));return d},a)}},_nodeToDict:function(a,b){var d={},f,g,p=this;if(b)return p.fields[b].call(p,a);k.map(function(b){d[b]=p.fields[b].call(p,a);return 1},k.keys(this.fields));d.stamp=v.getFormStart();d.id||(d.id=d.pageTitle);if(!d.id)for(f=1;5>=f;f++)if(g=this._getVal(this._select(a,"h"+f))){d.id=g;d.pageTitle=g;break}d.id||(f=this._select(this.root,'[rel\x3d"canonical"]'),
f.length&&(d.id=f[0].href));d.id=k.fnv32a(d.id)||1;d.update=k.bind(this._nodeToDict,this,a);return d},findArticals:function(){var a,b=[],d=n.document.querySelectorAll('[itemtype*\x3d"Article"]');for(a=0;a<d.length;a++)b.push(k.mixin({node:d[a],sended:!1,involvedTime:0},this._nodeToDict(d[a])));return b}}},checkSize:function(){var a=this,b="pai"+this._schema.id,d=this.globalConfig.get(b,[]);d.push(function(b){!a.isStopped&&b.length&&(a.findArticals(b),a.meta=a.getMeta(),a.send())});this.globalConfig.setSafe(b,
d);if(1==d.length){var f=function(d){var g=a.globalConfig.get(b),h=a._schema.findArticals();a.findArticals(h);a.meta=a.getMeta();var m=k.toJSON(a.meta);if(!a.isStopped){if(d!==m)for(d=0;d<g.length;d++){var e=k.map(function(a){return k.mixin({},a)},h);g[d](e)}a.timeout=k.setTimeout(function(){f(m)},1E3)}};f()}},stop:function(){this.isStopped=!0},getBufferData:function(){return{type:"publishersHeader",data:{articleMeta:this.meta||{},involvedTime:this.involvedTime||0}}},findArticals:function(a){var b=
k.map(function(a){return a.id},this.articles);this.articles=this.articles.concat(k.filter(function(a){return!k.inArray(b,a.id)},a))},getScroll:function(){this.scroll={x:n.pageXOffset||this.root.scrollLeft,y:n.pageYOffset||this.root.scrollTop}},_initComponent:function(){var a=t.getViewportSize();this.handlers=[];this.events=[];this.articles=[];this.root=t.getRootElement();this.getScroll();this.viewbox={width:a[0],height:a[1]}},getMeta:function(){var a=this;this.getScroll();return k.map(function(b){var d=
{id:b.id,involvedTime:b.involvedTime||0,maxScrolled:b.maxScrolled||0,chars:b.update?b.update("chars"):0};b.node&&k.isFunction(b.node.getBoundingClientRect)&&(b=b.node.getBoundingClientRect(),d.x=Math.round(b.left)+a.scroll.x,d.y=Math.round(b.top)+a.scroll.y,d.width=Math.round(b.width),d.height=Math.round(b.height));return d},this.articles)},getArticalsToSend:function(){var a=[],b;for(b=0;b<this.articles.length;b++)if(!this.articles[b].sended){var d=k.mixin({},this.articles[b]);delete d.node;delete d.sended;
delete d.involvedTime;delete d.visibility;delete d.maxScrolled;delete d.update;a.push(d)}return a},send:function(){var a=this.getArticalsToSend();a.length&&(this.push({articleInfo:a}),k.arrayEvery(this.articles,function(a){a.sended=!0;return 1}))},start:function(a){var b=this;a&&a.schema&&this.schemas[a.schema]&&n.document&&k.isFunction(n.document.querySelectorAll)?(this.globalConfig.setSafe("pai",function(){return k.reduce(function(a,b){(a.visibility||0)<=b.visibility&&(a=b);return a},{},b.articles).id}),
this._schema=this.schemas[a.schema],this._schema.root=this.root,this.checkSize()):this.stop()},push:function(a){k.arrayEvery(this.handlers,function(b){b(a);return 1});this.events.push(a)},middleware:function(a){this.handlers.push(a);k.arrayEvery(this.events,function(b){a(b)})},lastStamp:0,involvedTime:0,MAX_INACTIVE:5E3,trigger:function(a,b){var d="event"!==a?a:b.type;if(k.inArray(this.activeEvents,d)){"scroll"==d&&b.meta&&b.meta.page&&(this.scroll=b.meta);"resize"==d&&0==b.target&&(this.viewbox=
b.meta);var f=v.getMs()-this.lastStamp;f=Math.min(f,this.MAX_INACTIVE);this.involvedTime+=Math.round(f);this.lastStamp=v.getMs();this.meta&&this.scroll&&this.viewbox&&k.arrayEvery(this.articles,function(a,b){var d=this.meta[b],g=Math.max((Math.min(this.scroll.y+this.viewbox.height,d.y+d.height)-Math.max(this.scroll.y,d.y))/this.viewbox.height,0),e=Math.max((this.scroll.y+this.viewbox.height-d.y)/d.height,0);a.involvedTime+=Math.round(g*f);a.maxScrolled=Math.round(1E4*e)/1E4;a.visibility=g;d.involvedTime=
a.involvedTime;return 1},this)}}}),wb=G.inherit({hid:0,tz:0,ts:0,counterId:0,counterType:0,url:"",protocol:"",executor:ib,enabled:!1,_map:{page:{iterate:!1,name:"page"},events:{iterate:!0,name:"event"},mutations:{iterate:!0,name:"mutation"},articleInfo:{iterate:!0,name:"articleInfo"}},_getBufferType:function(){var a=Ta;ka.enabled||n.Uint8Array&&n.Uint8Array.prototype.slice&&(a=vb);return a},_initComponent:E(function(){var a=this._getBufferType();this._localStorage=new ca({counterId:this.counterId});
var b=this._localStorage.get("pai");var d=this._getStorage();var f=d.read("visorc");"b"!==f&&"w"!==f&&(f="");if(!d.isEnabled()||db("opera mini"))f="b";this._publisher=new Wb({globalConfig:this.globalConfig});this._vc=f;d={protocol:this.protocol,counterId:this.counterId,counterType:this.counterType,globalConfig:this.globalConfig,meta:{url:this.url,hitId:this.hid,timezone:this.tz,timestamp:this.ts}};this._recorder=new Mb({counterId:this.counterId});this._buffer=new a(k.mixin({},d,{browserInfoMix:{bt:1}}));
this._eventsBuffer=new a(k.mixin(d,b&&{browserInfoMix:{pai:b}}));this._localStorage.remove("pai");this._buffer.activate();this._eventsBuffer.activate();"b"!==f&&(this._formRecorder=new Gb(this.protocol,this.counterId,this.counterType,this.hid,this.globalConfig),this._recorder.on("error",function(a){Wa(a.error,a.namespace)}),this._activity=new Vb);wb.superclass._initComponent.apply(this,arguments)},"wv2.init"),start:E(function(a,b){var d=this,f=this._vc;if(this._recorder){a=a||{};var g=+a.recp;if(!isFinite(g)||
0>g||1<g)f="w";f||(f=this.hid%1E4/1E4<g?"w":"b");this._getStorage().create("visorc",f,30);this._publisher.start(b);"w"===f&&this.isEnabled()&&this.globalConfig.setSafe("wv2Counter",this.counterId);"w"===f&&this.isEnabled()&&this._isCorrectCounter()?(this._recorder.middleware(function(a){d.send(a.data)}),this._recorder.init(),this._eventsBuffer.wrappers.push(this._activity),this._recorder.start(a),this._formRecorder.start(),this.globalConfig.get("stopRecoder",function(){})(),this.globalConfig.set("stopRecoder",
function(){d.stop()})):this._publisher&&!this._publisher.isStopped?(this._recorder.middleware(function(a){d.send(a.data,!0)}),this._recorder.init({disableIndex:!0,disableMutations:!0}),this._recorder.start(a)):this.stop();this._publisher&&!this._publisher.isStopped&&(this._eventsBuffer.wrappers.push(this._publisher),this._eventsBuffer.setWVType(this._buffer instanceof vb?5:4),this._publisher.middleware(function(a){d.send(a)}))}},"wv2.start"),stop:function(){this._publisher&&this._publisher.stop();
this._recorder&&(this._recorder.stop(),this._formRecorder&&this._formRecorder.stop())},isEnabled:function(){var a=!this.globalConfig.get("oo");return this.enabled&&n.MutationObserver&&a},send:function(a,b){var d=a._v;k.forEachKey(a,function(a,g){var f=this._map[a],h=this._buffer;if(f){var m=f.name;k.inArray(["event","articleInfo"],m)&&(h=this._eventsBuffer);f.iterate?k.forEachKey(g,function(a,c){var e="eof"===c.type&&!c.frameId,f=[h],g;e&&(f=[this._eventsBuffer,this._buffer]);for(g=0;g<f.length;g++)this.executor.addAsyncItem(f[g].addData,
f[g],e,[m,c,d,e,b],"send."+(c?c.type||c.group||"":"empty"))},this):h.addData(m,g,d)}},this)},getVc:function(){return this._vc},_getStorage:function(){this._storage||(this._storage=new J({counterId:this.counterId}));return this._storage},_isCorrectCounter:function(){return this.counterId===this.globalConfig.get("wv2Counter")}}),xb={FN:"ym",STACK:"a",counters:[],waitPool:{},handle:function(a){if(2>a.length)return 1;var b=""+a[0];k.inArray(b,":")||(b+=":0");var d=b.split(":")[0];var f=a[1];var g=this.globalConfig.get("counters",
{})[b];"init"==f?(f="yaCounter"+d,n[f]||(a=k.mixin(a[2]||{},{id:+d}),n[f]=new n.Ya[this.constructorName](a))):k.inArray(this.counters,b)&&g&&g[f]?(a=[].slice.call(a,2),g[f].apply(g,a)):k.inArray(this.counters,b)||(this.waitPool[b]||(this.waitPool[b]=[]),this.waitPool[b].push(a));return 1},subscribe:function(a){a&&(this.counters.push(a),this.waitPool[a]&&(k.arrayEvery(this.waitPool[a],this.handle,this),delete this.waitPool[a]))},init:function(a,b){var d=this,f=n[this.FN];if(f){var g=f[this.STACK];
this.constructorName=a;this.globalConfig=b;g||(f[this.STACK]=g=[]);var p=g.push;g.push=function(){var a=p.apply(g,arguments);k.arrayEvery(arguments,d.handle,d);return a};f&&k.isArray(g)&&k.arrayEvery(g,this.handle,this)}}};t.loadScript=function(a,b){b=b||n;var d=k.mixin({type:"text/javascript",charset:"utf-8",async:!0},a),f=b.document,g=k.getNativeFunction("createElement",f),p=g("script");if(p){p.type=d.type;p.charset=d.charset;p.src=d.src;d.async&&(p.async=!0);try{var h=f.getElementsByTagName("head")[0];
if(!h){var m=f.getElementsByTagName("html")[0];h=g("head");m&&m.appendChild(h)}h.insertBefore(p,h.firstChild);return p}catch(e){}}};var Xb=Ba.inherit({id:"script",index:6,request:function(a,b,d,f){var g=!1,p=k.getNativeFunction("createElement",q)("script");this.timeout&&k.setTimeout(function(){g||(g=!0,t.removeNode(p),d.call(f,!1))},this.timeout,"ts.request");if(!p)return g=!0,d.call(f,!1),!1;var h="_ymjsp"+k.random();n[h]=E(function(){if(!g){try{delete n[h]}catch(e){n[h]=y}d.apply(f,k.mergeArrays([!0],
arguments));g=!0;t.removeNode(p)}},"transport.script");p.type="text/javascript";p.src=this._buildUrl(a,k.mixin({wmode:5,callback:h},b));p.async="async";var m=q.getElementsByTagName("head")[0];m||(m=q.createElement("head"),q.documentElement.appendChild(m));k.async(function(){m.insertBefore(p,m.firstChild)});p.onerror=function(){g=!0;d.call(f,!1);n[h]=y};return!0}}),yb=Ha.inherit({id:"XHRhit",index:10,_buildUrl:function(a,b){b.wmode=7;return yb.superclass._buildUrl.apply(this,[a,b])},_parseResp:function(a){var b=
sa.parse(a);if(!b)throw"";return k.map(function(a){return b[a]},k.keys(b))}}),kb=Na.inherit({transports:[yb,Xb],trimParams:!0,_initComponent:function(){kb.superclass._initComponent.apply(this,arguments);this._ilStorage=new ca({counterId:this.counterId})},postParams:[],checkYandexHost:function(a){if(a){a:{if(a=k.parseUrl(a).host.match(/(?:^|\.)(?:ya|yandex)\.(?:\w+|com?\.\w+)$/))if(a=a[0].split("yandex").reverse()[0].substring(1),-1!=k.arrayIndexOf(sb,a))break a;a=!1}a&&(this.host="mc.yandex."+a)}},
sendHit:function(a){var b={},d=this._ilStorage.get("il");a.visitColor&&(b.vc=a.visitColor);d&&(this._ilStorage.remove("il"),b.ilt=pa.encode(fb.encode(k.trim(d,zb))));this.checkYandexHost(a.referrer);this._hitExt({url:a.url,forceNoRedirect:a.forceNoRedirect,nohit:a.nohit,hasPrerender:a.hasPrerender,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},"hit")}}),Ab=G.inherit({cid:3,
cnt:0,KEY_NAME:"wasSynced",_initComponent:function(){this._storage=new ca;this._cookie=new J},hit:function(a,b){var d=this,f=b===y?!0:!1,g=f?this._storage.get(this.KEY_NAME):!1,p=[],h=this.globalConfig.get("fakeHit");if(h)return h(function(b){a(b)});!g&&f&&(g=this._cookie.read(this.KEY_NAME))&&(g=sa.parse(g));g&&g.params&&g.time+864E5>v.getMs()?(d.globalConfig.set("isEU",g.params.eu),a(g)):(this.globalConfig.set("fakeHit",function(a){p.push(a)}),this._getSender().sendHit({forceNoRedirect:this.forceNoRedirect,
callback:function(b,e){var c=b||{};g={time:v.getMs(),params:c,bkParams:e};d.globalConfig.set("isEU",c.eu);d._storage.set(d.KEY_NAME,g);d._cookie.create(d.KEY_NAME,sa.stringify(g),1728);a(g);d.globalConfig.set("fakeHit",function(a){a(g)});k.arrayEvery(p,function(a){a(g);return 1})}}))},_getSender:function(){this._sender||(this._sender=new kb({protocol:"https:",counterType:this.cnt,counterId:this.cid,sendTitle:!1,globalConfig:this.globalConfig,fake:!0}));return this._sender}}),Bb=G.inherit({baseUrl:"mc.yandex.",
globalConfig:B,baseTld:"ru",partners:{"mc.yandexsport.ru":{regex:/^([^/]+\.)?yandexsport\.ru$/,tld:"ru"},"mc.beru.ru":{regex:/^([^/]+\.)?beru\.ru$/,tld:"ru"},"mc.kinopoisk.ru":{regex:/^([^/]+\.)?kinopoisk\.ru$/,tld:"ru"}},_initComponent:function(){var a=this;Bb.superclass._initComponent.apply(this,arguments);this.syncTlds=k.reduce(function(a,d){return d(a)},sb,[k.bind(k.filter,null,function(b){return b!==a.baseTld}),k.bind(k.reduce,null,function(a,d){a[d]=[d];return a},{})]);k.forEachKey(this.partners,
function(a,d){d.regex.test(n.location.hostname)&&(this.syncTlds[d.tld]||(this.syncTlds[d.tld]=[]),this.syncTlds[d.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,d=this._need(),f=-1!=L().hostname.search(/(?:^|\.)(?:ya|yandex|beru|kinopoisk)\.(?:\w+|com?\.\w+)$/);this._is()?a():(f&&b._syncAdmetrica(),d?(this._setStatus(!0),f?this._getCn().hit(function(){b._sync(d,
a)}):a()):a());f&&this._addMda()},_addMda:function(){var a=new J({skipPrefix:!0}),b=new J,d=a.read("mda");"0"!==d&&"1"!==d&&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(),d=[],f;(f=this.syncTlds[b])&&d.push.apply(d,f);f=this.syncTlds[a];a!==b&&f&&d.push.apply(d,f);var g=
this._getLs().get("synced")||{};d=k.arrayFilter(d,function(a){return(g[a]||1)+1440<v.getMinutes()});return d.length&&d||!1},_syncAdmetrica:function(){var a=new va({}),b=this._getLs();((b.get("synced")||{}).SYNCED_ADM||1)+1440<v.getMinutes()&&a.request("https://mc.admetrica.ru/sync_cookie_image_check",{},function(a){b.get("synced");var d=v.getMinutes();a||(d-=1435);a=b.get("synced")||{};a.SYNCED_ADM=d;b.set("synced",a)})},_sync:function(a,b){var d,f=0,g=a.length,k=this;if(0<g){b=b||function(){};var h=
function(){f++;g===f&&b()};var m=k._getLs();var e=new va({});for(d=0;d<g;d++)(function(a){e.request("https://"+(k._replaceBase[a]?a:k.baseUrl+a)+"/sync_cookie_image_check",{},function(b){h();var c=v.getMinutes();b||(c-=1435);b=m.get("synced")||{};b[a]=c;m.set("synced",b)})})(a[d])}else b()},_getCn:function(){this._cn||(this._cn=new Ab({fake:!0,globalConfig:this.globalConfig}));return this._cn},_getLs:function(){this._ls||(this._ls=new ca);return this._ls},_getTld:function(){var a=k.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(!n.navigator)return"ru";try{var a=navigator.languages?navigator.languages[0]:w.getLanguage()}catch(b){}a&&a.toLowerCase&&(a=a.toLowerCase().split("-")[0]);return this.langToDomain[a]||"ru"}}),Yb=Ha.inherit({id:"RawBodyXHR",index:9,postParams:["body"],_setHeaders:function(){},_preparePostParams:function(a){return a.post.body||
""}});w.isAndroid=E(function(){var a=navigator.userAgent.toLowerCase(),b=w.getPlatform()||"";return-1<a.indexOf("android")&&-1<a.indexOf("mobile")&&b.match(/^android|linux armv/i)},"",!0);var Oa={_url:"https://mc.yandex.ru/user_storage_set?",_params:{},init:function(a){this._params=a||{}},save:function(a,b){this._getReq().request(this._url+Aa.stringify({key:a,value:k.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 ca);return this._ls},_getReq:function(){this._req||(this._req=new va);return this._req}},Zb={sync:E(function(a,b,d,f){var g={t:'UV|L7,!"T[rwe\x26D_\x3eZIb\\aW#98Y.PC6k'};this.globalConfig=f||B;if(this._enabled(a,b,d)){this._setStatus(!0);var k=new Yb({method:"GET",withCredentials:!1});var h=this._getHosts();var m=h.length;(function l(a){var b=h[a];a<m?k.request(b[0]+":"+b[1]+"/p",g,function(c,d){c?this._save(c,
d,b[1]):l.call(this,a+1)},this):this._save(!1)}).call(this,0)}},"ds"),_getHosts:function(){var a=[],b=I.protocol,d=w.isIOS();(w.isAndroid()||d&&"http:"===b)&&a.push(["http://127.0.0.1","30102"],["http://127.0.0.1","29009"]);d&&"https:"===b&&a.push(["https://yandexmetrica.com","30103"],["https://yandexmetrica.com","29010"]);return a},_save:function(a,b,d){var f=v.getMinutes();a?(new Na({protocol:"https:",counterType:0,counterId:42822899,sendTitle:!1,fake:!0})).sendDevice({data:k.trim(b),port:d}):f-=
45;Oa.save("ds",f)},_is:function(){try{return!!this.globalConfig.get("dSync")}catch(a){return!1}},_enabled:function(a,b,d){if(!(60<v.getMinutes()-Oa.getNum("ds"))||this._is()||k.isDev(this.globalConfig))return!1;a=0===b&&0<=k.arrayIndexOf([39370095,1282253,29302335,43653484,41734944,31048081,16443139,27737346,41870499,33911514,30744873,5564395,2580487],a);a=ua()||!d&&.1>=Math.random()&&a;d=w.isIOS()&&a;return w.isAndroid()&&a||d},_setStatus:function(a){try{this.globalConfig.set("dSync",a)}catch(b){}}},
M={getPos:function(a){var b=t.getRootElement(),d=t.getDocumentScroll();return[a.pageX||a.clientX+d[0]-(b.clientLeft||0)||0,a.pageY||a.clientY+d[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!==q&&(b=null)}catch(d){}return b},getMouseButton:function(a){return a.which||a.button==y?a.which:a.button&1?1:a.button&2?3:a.button&4?2:0},prevent:function(a){a=a||n.event;a.preventDefault?a.preventDefault():
a.returnValue=!1}};M.dispatchCustomEvent=E(function(a,b){var d;b=b||q;if(d=k.getNativeFunction("createEvent",q)("Event"))d.initEvent(a,!1,!1),k.getNativeFunction("dispatchEvent",b)(d)},"evt.dispatch");var Sa={lastReferrer:null},Ja=G.inherit({counter:null,prefsEcommerce:null,status:{NEW:y,PENDING:1,OK:2,FAIL:3},dataLayerName:"dataLayer",_initComponent:function(){Ja.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";k.arrayEvery(this.waitPool,function(a){a.fn.apply(a.ctx,a.args);return 1});this.onCookies=function(a,d){a.apply(d,[].slice.call(arguments,2))};if(this.prefsEcommerce||this.prefsUseDataLayer)this._overridePush(this.prefsEcommerce)||
(k.isString(this.prefsEcommerce)&&(this.dataLayerName=this.prefsEcommerce),a=this.dataLayerName,this._tryTimeout=k.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 d=a.push;a.push=function(){var a=d.apply(this,arguments);b._send([].slice.call(arguments,0));return a};return!0}return!1},_tryTimeout:function(){this._overridePush(n[this.dataLayerName])||k.setTimeout(this._tryTimeout,1E3,"dlObserver")},
_callHandlers:function(a){k.arrayEvery(Ja.handlers,function(b){b&&b.type&&k.arrayEvery(b.type.split(","),function(d){d.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 d=k.keys(b),f=!1,g={transaction_id:"id",value:"revenue"};if(b.items){var p={};p[a]={products:b.items};1<d.length&&(p[a].actionField=k.reduce(function(a,d){g[d]?a[g[d]]=b[d]:"currency"===d?f=b[d]:"items"!==
d&&b[d]&&(a[d]=b[d]);return a},{},d));f&&(p.currencyCode=f);return p}},_checkGtag:function(a){var b={view_item:"detail",add_to_cart:"add",remove_from_cart:"remove",begin_checkout:"checkout",purchase:"purchase"},d=[];a&&"event"===a[0]&&b[a[1]]&&(a=this._convert(b[a[1]],a[2]))&&d.push(a);return d},_send:function(a){var b=[],d=this.allowedEvents,f,g;var p=0;for(g=a.length;p<g;p++){if((f=a[p])&&f.ymetrikaEvent){var h=f.ymetrikaEvent;this._callHandlers(h);if("params"===h.type&&h.data){h.sended||(h.sended=
[]);if(h.counter)this.counter&&this.counter.params&&this.counterId==h.counter&&(this.onCookies(function(a){this.counter.params(a.data)},this,k.mixin({},h)),h.sended.push(this.counterId));else this.onCookies(function(a){k.forEachKey(this.globalConfig.get("counters"),function(b,c){var d=b.split(":")[0];!k.inArray(a.sended,d)&&c&&c.params&&(c.params(a.data),a.sended.push(d))},this)},this,k.mixin({},h));h.status==this.status.NEW&&h.parent&&this.frameConnector&&this.frameConnector.checkFrame(n.parent)&&
n.parent!==n&&(this.frameConnector.sendToParents({type:"params",data:h.data},function(){h.status=this.status.OK},this),h.status=this.status.PENDING)}}if(f&&f.ecommerce){var m={};var e=!1;k.forEachKey(f.ecommerce,function(a,b){0<=k.arrayIndexOf(d,a)&&(e=!0,m[a]=b)});e&&b.push(m)}b=b.concat(this._checkGtag(f))}if(b.length)this.onCookies(function(a){this.counter.params({__ym:{ecommerce:a}})},this,b)}});Ja.handlers=[];var Cb="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(" "),
$b=["https://brozen.yandex.ru","https://yabro1.zen-test.yandex.ru/yabro/index.html","https://yabro2.zen-test.yandex.ru/yabro/index.html"],wa=G.inherit({globalKey:"f1",MAX_SIZE:1E6,isYAN:!1,trigger:function(a){this.globalConfig.get("dataLayer").push({ymetrikaEvent:{type:a}})},initCounter:function(){},enabled:ua()&&-1<n.location.href.indexOf("yagdprcheck\x3d1"),_initComponent:function(){this._cookie=wa.cookie;this._sender=new Ab({fake:!0,globalConfig:this.globalConfig,forceNoRedirect:!0})},realise:function(a,
b){this.initCounter.apply(n,a);this.globalConfig.set(this.globalKey,function(a){a()});b.length&&ib.chain(b.concat([function(){b=[]}]),null,!1,"GDPR")},showPopup:function(a,b,d,f,g){var k=this;a=t.loadScript({src:"https://yastatic.net/q/global-notifications/cc/_lego-cc"+a+"."+b+".js"});k.trigger("GDPR-open-start");a.onerror=function(a){E(function(){throw a;},"gdpr-popup")();k.trigger("GDPR-open-fail");k.realise(d,f);k.frameConnector.sendToChildren({type:"GDPR-ok"})};a.onload=function(){k.trigger("GDPR-open-success");
Ja.handlers=Ja.handlers.concat([{type:"GDPR-ok, GDPR-cross",callback:function(a){a.once||(g.create("gdpr","0",525600),k.realise(d,f),k.frameConnector.sendToChildren({type:"GDPR-ok"}),a.once=!0)}},{type:"GDPR-cancel",callback:function(){g.create("gdpr","1");k.logCancel();k.frameConnector.sendToChildren({type:"GDPR-cancel"})}}])}},askGDPR:function(a,b,d,f,g,p){if(k.inArray([null,""],a))this.showPopup(b,d,f,g,p);else if("0"===a)this.trigger("GDPR-cookie-success"),this.realise(f,g);else if("1"===a)return this.trigger("GDPR-cookie-fail"),
this.logCancel(),!1},logCancel:function(){this._sender.hit(function(){},!1)},handle:function(){var a=this._sender,b=[],d=(w.getLanguage()||"").toLowerCase().split("-")[0],f="ontouchstart"in n?"-touch":"",g=this._cookie,p=g.read("gdpr"),h=g.read("yaGdprCheck"),m=this,e=this.globalConfig.get(this.globalKey),c=arguments;b.size=0;if(e)return e(function(){m.realise(c,b)});k.inArray("ru en kk be ky tr tt uk".split(" "),d)||(d="en");if(!this.enabled&&("0"===p||w.isSafariWebView()||w.isAndroidWebView()||
k.inArray($b,n.location.href.split("?")[0])||!ua()||g.read("yandex_login")||this.disable))return g.read("yandex_login")?this.trigger("GDPR-skip-login"):ua()?"0"===p?this.trigger("GDPR-skip"):w.isSafariWebView()||w.isAndroidWebView()?this.trigger("GDPR-skip-wv"):this.trigger("GDPR-skip-na"):this.trigger("GDPR-skip-domain"),this.realise(c,b);this.globalConfig.set(this.globalKey,function(a,c){var d=0;try{d=JSON.stringify(c).length||0}catch(T){}b.size+d<m.MAX_SIZE?(b.push(a),b.size+=d):k.warning("GDPR buffer is exceeded")});
a.hit(function(a){if(a.params.eu||h||m.enabled)if(m.frameConnector&&m.frameConnector.addHandler("isYandex",function(){return{type:"isYandex",isYandex:ua()}}),m.frameConnector.isIframe){m.frameConnector.sendToParents({type:"isYandex"},function(a,c){var d=!1;clearTimeout(e);c[0].isYandex?(m.trigger("GDPR-frame-ya"),m.frameConnector.addHandler("GDPR-ok",function(){d||(g.create("gdpr","0",525600),m.realise(c,b),d=!0)}),m.frameConnector.addHandler("GDPR-cancel",function(){g.create("gdpr","1")})):(m.trigger("GDPR-frame-noya"),
m.realise(c,b))});var e=k.setTimeout(function(){m.trigger("GDPR-frame-skip");m.realise(c,b)},2E3)}else m.askGDPR(p,f,d,c,b,g);else return a.params.eu?m.trigger("GDPR-skip-eu-na"):m.trigger("GDPR-eu-skip"),m.realise(c,b)})}});wa.globalKey="f1";wa.cookie=new J({skipPrefix:!0});wa.getState=function(a){var b=wa.cookie.read("gdpr");a=k.reduce(function(a,b){b.ymetrikaEvent&&k.inArray(Cb,b.ymetrikaEvent.type)&&a.push(k.arrayIndexOf(Cb,b.ymetrikaEvent.type));return a},[],a.get("dataLayer"));return a.length?
(a=a.join(","),b&&(a+="-"+(k.inArray(["0","1"],b)?b:"2")),a):""};var ac={init:function(a,b,d){"22663942"==d&&(d=q.createElement("img"),a&&a.account&&a.tmsec&&b&&(d.src="https://www.tns-counter.ru/V13a****"+a.account+"/ru/UTF-8/tmsec\x3d"+a.tmsec+"/"+b))}};w.isIE=k.memorize(function(){return q&&!q.addEventListener||!1});w.isChromePdf=k.memorize(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});w.isPrivate=E(function(a){var b=
k.bind(a,null,0);a=k.bind(a,null,1);if(k.isFunction(n.webkitRequestFileSystem)&&!w.isAndroid())return n.webkitRequestFileSystem(0,0,b,a);if(w.isFF())return"undefined"==typeof navigator.serviceWorker;if(w.isSafari()&&k.isFunction(n.openDatabase))try{n.openDatabase(null,null,null,null),b()}catch(d){a()}else{if(n.indexedDB||!n.PointerEvent&&!n.MSPointerEvent)return b();a()}},"isPrivate");w.findTarget=function(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&&!a["xlink:href"]);)b=(a=a.parentNode)&&a.nodeName&&a.nodeName.toString().toLowerCase();return a.href?a:!1};w.getHref=function(a){if(!a)return"";a=a.href;return k.isString(a)?""+a:"[object SVGAnimatedString]"===k.toString(a)?""+a.baseVal:""};w.getLinkComponents=function(a){return a&&"A"===a.nodeName?{href:a.href,hostname:a.hostname||k.parseUrl(a.href).hostname||"",host:a.host,protocol:a.protocol,
pathname:a.pathname,hash:a.hash,port:a.port,search:a.search,query:a.search.slice(Math.min(1,a.search.length)),path:(a.pathname||"/")+a.search}:k.isString(a)?k.parseUrl(a):{href:"",hostname:"",host:"",protocol:"",pathname:"",hash:"",port:"",search:"",query:"",path:""}};var bc=X.inherit({resource:"clmap",retry:!0,transports:[va],sendClick:function(a,b,d,f){this.send({"page-url":a,"pointer-click":b},{},d,f)}}),cc=G.inherit({filter:null,ignoreTags:[],quota:0,isTrackHash:!1,protocol:"",counterId:0,counterType:0,
startTime:0,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 svg circle clippath ellipse defs foreignobject g glyph glyphref image line lineargradient marker mask path pattern polygon polyline radialgradient rect set text textpath title".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]&&k.mergeArrays(this._ignoreTags,[String(this.ignoreTags[a]).toUpperCase()]);this._cacheTags={};a=59;var d=String.fromCharCode;for(b=0;b<this.tags.length;b++)this._cacheTags[this.tags[b]]=d(a),d(a),a++;this._sender=new bc({globalConfig:this.globalConfig,protocol:this.protocol,counterId:this.counterId,
counterType:this.counterType});this._start=!1;this.start()},destroy:function(){this.stop()},start:function(){if(!this._start)z.on(q,"click",this._handler,this);this._start=!0},stop:function(){this._start&&z.un(q,"click",this._handler,this);this._start=!1},setTrackHash:function(a){this.isTrackHash=a},_isIgnore:function(a){return t.classNameExists(a,"(ym-disable-clickmap|ym-clickmap-ignore)")},_handler:function(a){a={el:M.getTarget(a),pos:M.getPos(a),button:M.getMouseButton(a),time:+new Date};if(this._isTrackingClick(a)){var b=
t.getElementSize(a.el);var d=t.getElementXY(a.el);b=["rn",k.random(),"x",Math.floor(65535*(a.pos[0]-d[0])/(b[0]||1)),"y",Math.floor(65535*(a.pos[1]-d[1])/(b[1]||1)),"t",Math.floor((a.time-this.startTime)/100),"p",this._getElPath(a.el)];d=L().href;this.isTrackHash?k.mergeArrays(b,["wh","1"]):d=d.split("#")[0];this._sender.sendClick(k.trim(d,hb),b.join(":"));this._lastClick=a}},_isTrackingClick:function(a){var b;if(n.ymDisabledClickmap||k.isMetrikaPlayer()||!a.el)return!1;var d=a.el.tagName;if((2==
a.button||3==a.button)&&"A"!=d||this.filter&&!this.filter(a.el,d))return!1;for(b=0;b<this._ignoreTags.length;b++)if(this._ignoreTags[b]==d)return!1;for(d=a.el;d;){if(this._isIgnore(d))return!1;d=d.parentNode}if(this._lastClick){if(a.time-this._lastClick.time<this.TIMEOUT_CLICK)return!1;d=Math.abs(this._lastClick.pos[0]-a.pos[0]);b=Math.abs(this._lastClick.pos[1]-a.pos[1]);var f=a.time-this._lastClick.time;if(this._lastClick.el==a.el&&d<this.DELTA_SAME_CLICKS&&b<this.DELTA_SAME_CLICKS&&f<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+=t.getElementNeighborPosition(a)||"",a=a.parentNode;return k.trim(b,this.MAX_LEN_PATH)}}),Db=G.inherit({injectHash:{Wjw75ghm7fa7JW8p:"https://yastatic.net/metrika-static-watch/assessor-init.js",Z4RhWJNDJanzkGJa:"https://yastatic.net/metrika-static-watch/assessor-compare.js"},ASSESSOR_COOKIE:"assessor",REMOTE_CONTROL:"i",getInjectHash:function(){var a=
{};k.forEachKey(this.injectHash,function(b){a[Ca+(""+k.fnv32a(b))]=this.injectHash[b]},this);return a},checkAssessor:function(){var a=[],b=this.getInjectHash();k.forEachKey(b,function(d){if((new RegExp(d)).test(n.location.hash)||J.get(this.ASSESSOR_COOKIE+d))J.set(this.ASSESSOR_COOKIE+d),a.push(b[d])},this);return a},_initComponent:function(){var a=this.checkAssessor();this.globalConfig.get(this.REMOTE_CONTROL)||(this.globalConfig.set(this.REMOTE_CONTROL,!0),Db.superclass._initComponent.apply(this,
arguments),this._executedMsgs={},z.on(n,"message",this._onMessage,this),a.length&&(this.globalConfig.set("oo",!0),this.globalConfig.get("stopRecoder",function(){})(),k.arrayEvery(a,function(a){t.loadScript({src:a},n);return 1})))},_buildRemoteIframe:function(a){var b=k.getNativeFunction("createElement",q)("div"),d=t.getBody()||q.documentElement;if(d){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 f=b.firstChild;f.onload=function(){t.loadScript({src:a},f.contentWindow)};n._ym__remoteIframeEl=f;b.createShadowRoot||b.webkitCreateShadowRoot?(d.appendChild(b),b.removeChild(f),(d=b.createShadowRoot?b.createShadowRoot():b.webkitCreateShadowRoot())&&d.appendChild(f),n._ym__remoteIframeContainer=b):(d.appendChild(f),n._ym__remoteIframeContainer=f)}},_isAllowedLang:function(a){return-1!==k.arrayIndexOf(["ru","uk","en","tr"],a)},_isAllowedOrigin:function(a){return/^http:\/\/([\w\-.]+\.)?webvisor\.com\/?$/.test(a)},
_isAllowedStatic:function(a){return/^(([\w\-.]+\.)?dev\.webvisor\.com|yastatic\.net|[\w\-.]+\.s3\.yandex\.net)$/.test(a)},_onMessage:function(a){try{var b=a.origin}catch(d){}b&&this._isAllowedOrigin(b)&&(b=sa.parse(a.data))&&"appendremote"===b.action&&this._isAllowedStatic(k.parseUrl(b.domain).host)&&this._isAllowedLang(b.lang)&&!this._executedMsgs[b.id]&&(this._executedMsgs[b.id]=!0,n._ym__postMessageEvent=a,n._ym__inpageMode=b.inpageMode,n._ym__initMessage=b.initMessage,this._buildRemoteIframe(b.domain+
"/cdn/inpage-remote/"+(b.newScriptAddr?"_inpage-remote_":"inpage-remote.")+b.lang+".js"))}}),dc={match:function(){this.enabled()&&z.ready(function(){var a=k.getNativeFunction("createElement",q)("iframe");a.onload=function(){Oa.save("cm",v.getMinutes());t.removeNode(a)};a.style.display="none";a.src="https://mc.yandex.ru/metrika/watch_match.html";q.documentElement.appendChild(a)})},enabled:function(){return 1440<v.getMinutes()-Oa.getNum("cm")&&"tr"===k.getTld()}};E(function(){(function(a){function b(f){if(d[f])return d[f].exports;
var g=d[f]={i:f,l:!1,exports:{}};a[f].call(g.exports,g,g.exports,b);g.l=!0;return g.exports}var d={};b.m=a;b.c=d;b.d=function(a,d,k){b.o(a,d)||Object.defineProperty(a,d,{configurable:!1,enumerable:!0,get:k})};b.n=function(a){var d=a&&a.__esModule?function(){return a["default"]}:function(){return a};b.d(d,"a",d);return d};b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};b.p="";return b(b.s=3)})({0:function(a,b,d){b.__esModule=!0;b.listToArray=function(a){return a?[].slice.call(a):
[]}},1:function(a,b,d){b.__esModule=!0;var f=[".googlesyndication.com/","/googleads"];b.isGoogleSrc=function(a){return!(!a||!f.filter(function(b){return 0<a.indexOf(b)}).length)}},3:function(a,b,d){b.__esModule=!0;a={detectAd:d(4).detectAd};n.Ya?n.Ya.AdDetector?a=n.Ya.AdDetector:n.Ya.AdDetector=a:n.Ya={AdDetector:a};b.AdDetector=a},34:function(a,b,d){b.__esModule=!0;b.getParentElementsCount=function(a){for(var b=0;;)if(a=a.parentElement)b++;else return b}},4:function(a,b,d){b.__esModule=!0;var f=
d(5),g=d(9),k=d(34),h=d(6),m=q.body,e=q.documentElement;b.detectAd=function(){var a=n.pageYOffset||e.scrollTop||m.scrollTop,b=n.pageXOffset||e.scrollLeft||m.scrollLeft,d=e.clientTop||m.clientTop||0,p=e.clientLeft||m.clientLeft||0,q=e.scrollWidth||e.offsetWidth||n.innerWidth,x=e.scrollHeight||e.offsetHeight||n.innerHeight,w=h.getFrienlyWindowsTree(n),t=[];h.windowsTreeEach(w,function(a){var b=a.window,c=a.parent,d=0<f.getParentFriendlyIFrames(b.document.documentElement).length,e=g.getAdsInWindow(b,
{isInIFrame:d});d=e.adElements;e=e.iframeProviders;if(c){var h=b.frameElement,k=t.filter(function(a){return a.windowsTree===c})[0].adElements;e.forEach(function(a){k.push({provider:a,element:h})})}t.push({windowsTree:a,adElements:d})});t.forEach(function(a){a.adElements=a.adElements.sort(function(a,b){return k.getParentElementsCount(a.element)-k.getParentElementsCount(b.element)})});var v=[],y=[];t.forEach(function(a){var b=a.windowsTree,c=b.parent;a=a.adElements;b=f.getParentFriendlyIFrames(b.window.document.documentElement);
var d=b[b.length-1];a.forEach(function(a){var b=a.element;y.push({provider:a.provider,element:c?d:b})})});y.forEach(function(c){var e=c.element;var f=e.getBoundingClientRect();var g=f.top+a-d;f=f.left+b-p;var h=e.clientWidth;e=e.clientHeight;var k=f+h,l=g+e,m=0>f?0:f<q?f:q,n=0>g?0:g<x?g:x;100<=((k>q?q:k>m?k:m)-m)*((l>x?x:l>n?l:n)-n)&&v.push({top:g,left:f,width:h,height:e,provider:c.provider})});return{page:{width:q,height:x},window:{top:a,left:b,width:n.innerWidth,height:n.innerHeight},ads:v}}},5:function(a,
b,d){b.__esModule=!0;b.getParentFriendlyIFrames=function(a){for(var b=[];;)try{if(a=a.ownerDocument.defaultView.frameElement)b.push(a);else return b}catch(p){return b}}},6:function(a,b,d){function f(a){return m.listToArray(a.document.getElementsByTagName("iframe")).filter(function(a){if(h.isSafari)return!1;try{return a.contentWindow.document}catch(l){return!1}}).map(function(a){return a.contentWindow})}function g(a,b){var c={window:a,children:[],parent:b};c.children=f(a).map(function(a){return g(a,
c)});return c}function k(a,b){b(a);a.children.forEach(function(a){return k(a,b)})}b.__esModule=!0;var h=d(7),m=d(0);b.getFrienlyWindowsTree=g;b.windowsTreeEach=k},7:function(a,b,d){b.__esModule=!0;a=d(8);b.isSafari=a.isSafari()},8:function(a,b,d){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,d){b.__esModule=!0;var f=d(0),g=d(1);b.getAdsInWindow=function(a,b){function d(a,
b){b.forEach(function(b){q.push({provider:a,element:b})})}var e=b.isInIFrame,c=a.document.body,h=f.listToArray(c.querySelectorAll("img")),k=f.listToArray(c.querySelectorAll("iframe")),n=f.listToArray(c.querySelectorAll("script")),p=f.listToArray(c.querySelectorAll("div")),q=[],t=[],w=f.listToArray(c.querySelectorAll("yatag")),v=f.listToArray(c.querySelectorAll("yatag yatag"));d("yandex",w.filter(function(a){return-1===v.indexOf(a)}));d("adriver",k.filter(function(a){return(a=a.src)&&-1<a.indexOf(".adriver.ru/")}));
d("adfox",k.filter(function(a){return(a=a.id)&&-1<a.toLowerCase().indexOf("adfox")}));d("adfox",h.filter(function(a){return(a=a.src)&&-1<a.indexOf("/banners.adfox.ru/")}));d("adfox",p.filter(function(a){return-1<a.id.indexOf("AdFox_banner_")}));e&&h.filter(function(a){return(a=a.src)&&-1<a.indexOf(".adfox.ru/")}).length&&t.push("adfox");k.filter(function(a){return g.isGoogleSrc(a.src)}).forEach(function(a){q.push({provider:"google",element:a})});e&&n.filter(function(a){return g.isGoogleSrc(a.src)}).length&&
t.push("google");d("awaps",k.filter(function(a){return(a=a.src)&&-1<a.indexOf("awaps.yandex.net/")}));d("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:t}}}})},"",!0)();var ec={init:function(a,b){if(Math.random()<(b||.005)&&!B.get("adDetect")){B.set("adDetect",!0);var d=function(b){var d=n.Ya.AdDetector.detectAd();var f=d.window;var g=d.page;a.sendParams({__ym:{ads:{w:{t:f.top,l:f.left,
w:f.width,h:f.height},p:{w:g.width,h:g.height},a:k.map(function(a){return{t:a.top,l:a.left,w:a.width,h:a.height,p:a.provider}},d.ads),full:b?1:0}}})};var f=E(function(){z.un(n,"load",f);d(!0)},"",!0);z.on(n,"load",f);k.setTimeout(d,1E4,"AdDetector",!0)}}},Eb=G.inherit({message:n.postMessage,spliter:":",nameSpace:"__yminfo",pending:{},childs:{},isIframe:!1,parents:{},dataToSend:{parents:[],childs:[]},checkFrame:function(a){try{var b=a&&a.postMessage}catch(d){return!1}return b},checkChildrenData:function(a,
b){k.arrayEvery(this.dataToSend.childs,function(d){-1==k.arrayIndexOf(d.tryTo,b.counterId)&&(d.tryTo.push(b.counterId),k.mixin(d.data,{toCounter:b.counterId}),this.sendToIframe(a,d.data,function(){d.sendedTo.push(b.counterId);d.callback&&d.callback(b,arguments)}));return!0},this)},checkParentData:function(a,b){k.arrayEvery(this.dataToSend.parents,function(d){-1==k.arrayIndexOf(d.tryTo,b.counterId)&&(d.tryTo.push(b.counterId),k.mixin(d.data,{toCounter:b.counterId}),this.sendToIframe(a,d.data,function(){d.sendedTo.push(b.counterId);
d.callback&&d.callback(b,arguments)}));return!0},this)},getHandlers:function(){return{initToChild:[{fn:function(a,b){a.source===n.top&&this.trigger("parentConnect",a,b)}}],initToParent:[{fn:function(a,b){this.childs[b.counterId]={info:b,window:a.source};this.checkChildrenData(a.source,b)}}],parentConnect:[{fn:function(a,b){this.parents[b.counterId]={info:b,window:a.source};this.checkParentData(a.source,b)}}]}},genMessage:function(a,b){var d={date:v.getMs(),key:Math.random(),dir:0};b&&(d={date:b[0],
key:b[1],dir:b[2]});k.mixin(a,{counterId:this.counterId,hid:this.hid});var f={data:a};f[this.nameSpace]=[this.nameSpace,d.date,d.key,d.dir].join(this.spliter);return{meta:d,string:sa.stringify(f)}},sendToIframe:function(a,b,d,f){b=this.genMessage(b);var g=this,n=[b.meta.date,b.meta.key].join(this.spliter);this.checkFrame(a)&&(a.postMessage(b.string,"*"),this.pending[n]=k.bind(d,f||this),k.setTimeout(function(){delete g.pending[n]},5E3,this,"fc.toSendToIframe"))},sendToChildren:function(a,b,d){var f=
this,g=this.dataToSend.childs.push({sendedTo:[],tryTo:[],callback:b?k.bind(b,d||this):!1,data:a})-1;k.forEachKey(this.childs,function(a){this.dataToSend.childs[g].tryTo.push(a);return 1},this);k.keys(this.childs).length&&k.forEachKey(this.childs,function(b){this.sendToIframe(f.childs[b].window,k.mixin(a,{toCounter:b}),function(a){this.dataToSend.childs[g].sendedTo.push(b);this.dataToSend.childs[g].callback&&this.dataToSend.childs[g].callback(a)},this)},this)},sendToParents:function(a,b,d){var f=this.dataToSend.parents.push({sendedTo:[],
tryTo:[],callback:b?k.bind(b,d||this):!1,data:a})-1;k.forEachKey(this.parents,function(a){this.dataToSend.parents[f].tryTo.push(a);return 1},this);k.keys(this.parents).length&&this.sendToIframe(n.parent,a,function(a){k.forEachKey(this.parents,function(b){this.dataToSend.parents[f].sendedTo.push(b);this.dataToSend.parents[f].callback&&this.dataToSend.parents[f].callback(a)},this)},this)},addHandler:function(a,b,d){this.handlers[a]||(this.handlers[a]=[]);this.handlers[a].push({fn:b,ctx:d})},_initComponent:function(){var a=
n.document.getElementsByTagName("iframe"),b=0;Eb.superclass._initComponent.apply(this,arguments);this.handlers=k.mixin({},this.getHandlers());this.isIframe=w.isIframe();if(this.message){for(b=0;b<a.length;b++){var d=a[b];(function(a,b){a.sendToIframe(b.contentWindow,{type:"initToChild"},function(d){a.childs[d.counterId]={info:d,window:b.contentWindow}})})(this,d)}this.isIframe&&this.sendToIframe(n.parent,{type:"initToParent"},function(a){this.trigger("parentConnect",{source:n.parent},a)});z.on(n,
"message",this.onMessage,this,{passive:!1,name:"FrameConnector"})}},trigger:function(a,b,d){var f=this;return k.map(function(a){a=a.fn.call(a.ctx||f,b,d)||{};return k.mixin(a,{counterId:f.counterId,hid:f.hid})},this.handlers[a])},DIR_INDEX:2,onMessage:function(a){var b,d=[];try{var f=a.data;f=sa.parse(a.data);var g=f[this.nameSpace]}catch(h){return}if(g&&g.substring&&g.substring(0,this.nameSpace.length)==this.nameSpace){for(b=0;3>=b;b++){var n=k.arrayIndexOf(g,this.spliter);-1!==n?d.push(g.substring(0,
n)):d.push(g);g=g.substring(n+1)}b=d.splice(1,3);if((f=f.data)&&f.type&&this.handlers[f.type]&&"0"===b[this.DIR_INDEX]){if(!f.toCounter||f.toCounter===this.counterId){try{a.source}catch(h){return}f.counterId&&this.checkFrame(a.source)&&(n=this.trigger(f.type,a,f),a.source.postMessage(this.genMessage(n,[b[0],b[1],f.counterId]).string,"*"))}}else b[this.DIR_INDEX]==this.counterId&&k.isArray(f)&&k.arrayEvery(f,function(a){return a.counterId&&a.hid})&&(a=this.pending[[b[0],b[1]].join(this.spliter)])&&
a.apply(this,f)}}}),I=L(),bb=v.getTimezone(),cb=v.getTimestamp(),oa=n.screen,Qb=64,hb=w.isIE()?512:2048,Rb=w.isIE()?512:2048,ub=w.isIE()?100:400,zb=100,gb="noindex",Fb=/\.(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,
fc=+new Date,qa="Metrika",lb,Va,Ca=function(){return"1588"}();B.init().setSafe("counters",{}).setSafe("hitParam",{}).setSafe("counterNum",0).setSafe("dataLayer",[]).setSafe("hitId",k.random(1,1073741824)).setSafe("_globalMetrikaHitId",k.random()).setSafe("v",Ca);qa="Metrika2";n.Ya[qa]=function(a,b,d,f){var g=this;return E(function(){function p(a){var b=q.referrer||"",c,d;if((new RegExp("^https?://"+I.host+"/")).test(b))return!1;var e=a.patterns;for(c=0;c<e.length;c++){var f=new RegExp(e[c],"i");if(b.match(f))if(f=
a.params||[],f.length){var g=k.safeDecodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20"));for(d=0;d<f.length;d++)if(g==k.safeDecodeURIComponent(f[d]))return!0}else return!0}return!1}function h(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=q.getElementById(e))c=!0,b&&V.unshift([g,g.innerHTML]),g.innerHTML=f}else if("."==g)for(g=t.getElementsByClassName(e),e=0;e<g.length;e++){c=!0;var h=
g[e],k=f;b&&V.unshift([h,h.innerHTML]);h.innerHTML=k}}return c}function m(){var a;for(a=0;a<V.length;a++)V[a][0].innerHTML=V[a][1]}function e(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 f=e[c].split("\x3d");"_openstat"===f[0]&&(d=f[1])}}var g=b.split("?");for(c=0;c<g.length;c++){var h=g[c].split("\x26");for(e=0;e<h.length;e++)f=h[e].split("\x3d"),"_openstat"===f[0]&&(d=f[1])}d&&(d=-1<d.indexOf(";")?k.safeDecodeURIComponent(d):
fb.decode(pa.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}function c(a,b){return E(function(){if(!g.isDestructing())return a.apply(this,arguments)},b||"")}function l(){var c=!1;ea||(X.initCookie(),tb.init(B));Ma.initPU(ha,B);w.isAndroidWebView()||Ma.initPP(B);X.retransmit(B);va&&ac.init(va,la,a);B.get("pri")!=y||w.isAndroidWebView()||(B.setSafe("pri",null),w.isPrivate(E(function(a){B.set("pri",
a)},"privCb")));ra.init(ua);xb.subscribe(W);if(B.get("hitParam")[W]){if(1!=d||B.get("counters")[W])return!1;c=!0}B.get("counters")[W]=g;B.get("hitParam")[W]=1;k.async(function(){Ma.initFip(B)},this,"initFip");g._webvisor=K.webvisor||!1;g._directCampaign=K.directCampaign;K.trackHash&&G(!0);if(!c){ma=new wb({protocol:"https:",globalConfig:B,counterId:a,counterType:d,hid:la,tz:bb,ts:cb,url:I.href,enabled:g._webvisor});g.replacePhones();c=new Bb({globalConfig:B});var l=function(c){var l=new kb({protocol:"https:",
counterType:d,counterId:a,trackHash:ba,hitId:la,webvisor:g._webvisor,counter:g,globalConfig:B,counterNum:N}),r={ut:qa,he:~~K.httpError,ad:1==d&&n.Ya&&n.Ya.Direct,pv:!0,cpf:w.isChromePdf(),saveRef:!0};lb=+new Date;l.sendHit({url:H,referrer:na,title:t.getDocumentTitle(),vParams:b,userParams:Ba,nohit:f,experiments:Ca,modes:r,visitColor:ma.getVc(),hasPrerender:xa,ts:cb,tz:bb,callback:function(l,r){var S;f||(xa=!1);l=l||{};(S="0"!==l.pcs)||Ma.initZZ();l.eu!==y&&B.set("isEU",l.eu);Oa.init(r);dc.match();
Zb.sync(a,d,S,B);ka.log("PageView. Counter ",a,". URL: ",I.href,". Referrer: "+q.referrer,". Params: ",b);Va||(Va=+new Date);l.webvisor&&(l.webvisor.isEU=B.get("isEU"));if(!g.isDestructing()){ma.start(l.webvisor,l.publisher);var Y=l.mp2;S=new J({counterId:a});S.erase("mp2_substs");if(Y){b:{var t=Y.conditions;var w;if(t&&t.length)for(w=0;w<t.length;w++){var v=t[w];if("ref"==v.type)v=p(v);else if("adv"==v.type){var u;var x=v;var da=n.Ya._metrika.counter._directCampaign;var Z=x.ServiceNamePattern;var A=
x.RefererPattern;v=da?x.direct_orders:x.direct_camp;var C=q.referrer,D=Aa.parse(I.search),E=e(I.search,I.hash),F={};var fa=["source","medium","campaign","term","content"];for(u=0;u<fa.length;u++)D["utm_"+fa[u]]&&(F[fa[u]]=D["utm_"+fa[u]]);var G=da?"direct.yandex.ru":E&&E.service||F.source;u=!1;if(!u&&Z&&Z.length)for(fa=0;fa<Z.length;fa++)if((new RegExp(Z[fa],"i")).test(G)){u=!0;break}if(!u&&!x.yandex_direct&&A&&A.length)for(Z=0;Z<A.length;Z++)if((new RegExp(A[Z],"i")).test(C)){u=!0;break}!u&&x.google_adwords&&
D.gclid&&(u=!0);if(u&&v&&v.length&&(u=!1,da=da||E&&E.campaign||F&&F.campaign))for(x=0;x<v.length;x++)if(v[x]==da){u=!0;break}v=u}else v=!1;if(v){t[w].track_id&&S.create("mp2_track",t[w].track_id,43200);break b}}}t=S.read("mp2_track");Y=Y.substs&&Y.substs[t];t&&Y?(S.create("mp2_substs",k.toJSON(Y)),S=h(Y),g.params("__ym",S?"mp_trackid":"mp_trackid_bad",t)):m()}else m();z.on(n,"load",g.replacePhones,g)}g._inited=!0;c&&c()}})};c.sync(l)}r(!1);z.on(q,"click",C,null,{name:"extLinkClick"});0!=k.keys(K).length&&
(P&&P.initUserLayer(),K.enableAll?(r(!0),x(!0),F()):(K.clickmap&&x(K.clickmap),K.trackLinks&&r(K.trackLinks),K.accurateTrackBounce&&F(K.accurateTrackBounce)),K.triggerEvent&&k.async(function(){M.dispatchCustomEvent("yacounter"+a+"inited")},this,"yacounterInit"))}function u(a){var b=new wa({frameConnector:ha,globalConfig:B,initCounter:l,disable:K.yaDisableGDPR});xa=a;b.handle.apply(b,arguments)}function r(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}g._trackLinks=b}function C(a){if(g._trackLinks&&g._trackLinks.on){a=w.findTarget(a);var b=w.getLinkComponents(a),c=b.href,d=B.get("pai",k.noop)();if(c&&!t.classNameExists(a,"ym-disable-tracklink")){var e=b.protocol+"//"+b.hostname+b.pathname;d={pai:d&&d+"-"+la,ln:!0};var f=pb(a);f=c===f?"":f;if(t.classNameExists(a,"ym-external-link"))Q.sendClickLink({url:c,title:f,modes:d},H);else{var h=K.url?k.parseUrl(H).hostname:L().hostname;d.dl=Fb.test(e)||Fb.test(c)||qb(c,O)||qb(e,O);
b=b.hostname;(h?h.replace(/^www\./,""):"").toLowerCase()==(b?b.replace(/^www\./,""):"").toLowerCase()?d.dl?(d.ln=!1,Q.sendClickLink({url:c,title:f,modes:d},H)):(f=pb(a),ia.set("pai",d.pai),f&&f!==c&&ia.set("il",k.trim(f,zb))):c&&-1!==c.search(/^ *(data|javascript):/i)||(d.ut=gb,Q.sendClickLink({url:c,title:f,modes:d},H))}}}}function x(b){"undefined"===typeof b&&(b=!0);!0===b&&(b={});g._clickmap&&g._clickmap.destroy();b&&(g._clickmap=new cc({globalConfig:B,filter:b.filter,ignoreTags:b.ignoreTags,quota:b.quota,
isTrackHash:b.isTrackHash,protocol:"https:",counterId:a,counterType:d,startTime:fc}))}function D(a,b){function c(){if(!r){p&&k.clearTimeout(p);var c=h?l:l+ +new Date-m;c=b-c;0>c&&(c=0);p=k.setTimeout(function(){r=!0;e(!1);a()},c,"trackUserTime")}}function d(){g||(f=!0,h=!1,g=!0,c())}function e(a){var b;for(b=0;b<t.length;b+=3)if(a)z.on(t[b],t[b+1],t[b+2],{name:"tabTrack"});else z.un(t[b],t[b+1],t[b+2])}var f=!1,g=!1,h=!0,l=0,m=+new Date,p=null,r=!1;if(w.isIE())k.setTimeout(a,b,"trackUserTime");else{var t=
[n,"blur",function(){h=f=g=!0;l+=+new Date-m;m=+new Date;c()},n,"focus",function(){f||g||(l=0);m=+new Date;f=g=!0;h=!1;c()},q,"click",d,q,"mousemove",d,q,"keydown",d,q,"scroll",d];e(!0);c()}}function F(b){var c=K.referrer?na:q.referrer,d=K.url?H:L().href;"number"!==typeof b&&(b=15E3);if(!g._isAccurateTrackBounce){g._isAccurateTrackBounce=!0;var e=new ca({counterId:a});var f=e.get("lastHit");e.set("lastHit",v.getMs());((e=e.get("lastHit"))&&(!f||f<e-18E5)||!Ib(c,d)||.1>Math.random())&&D(function(){g.notBounce()},
b)}}function A(a){var b=function(){var a=L().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 fa(){var d=b();d!==c&&(a(),c=d);za=k.setTimeout(fa,200,"trackHash")})()}function G(a){if(!1===a)ba&&("onhashchange"in n?z.un(n,"hashchange",oa):k.clearTimeout(za),ba=!1);else if(a=oa,!ba){if("onhashchange"in n)z.on(n,"hashchange",a);else A(a);ba=!0}Q.setTrackHash(ba);g._trackHash=ba}function oa(){var a={ut:qa,ad:1==d&&n.Ya&&
n.Ya.Direct,wh:!0,saveRef:!0,pv:!0};Fa=Sa.lastReferrer=ja;Q.sendAjaxHit({url:K.url?H:L().href,title:t.getDocumentTitle(),referrer:Fa,modes:a});ja=L().href}function ta(a,b,c){a=Ha.parseValidate(a,b);b=[];a&&(b.push(a),c=c||{},k.isFunction(c.callback)&&(b.push(c.callback),c.ctx&&b.push(c.ctx)));b.length&&g.params.apply(g,b)}var qa="",K={},Fa="",ja=Sa.lastReferrer=I.href,ua=0,xa=!1,ma;B.setSafe("counter",g);La&&E(function(){throw La.error;},"include."+La.scope)();if("object"===typeof a){K=a;f=a.defer;
qa=a.ut;d=a.type;b=a.params;var Ba=a.userParams;var va=a.tns;var Ca=K.experiments;var ea=K.nck;var H=a.url;var na=a.referrer;a=a.id}if(!n["disableYaCounter"+a]){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 f=e[d].split("\x3d");if(f[0]){var g=k.safeDecodeURIComponent(f[0]);f=k.safeDecodeURIComponent((f[1]||"").replace(/\+/g,"%20"));b&&g in c?k.isArray(c[g])?c[g].push(f):c[g]=[c[g],f]:c[g]=f}}}return c};var V=[];
H=H?H:L().href;na=na?na:q.referrer;a=a||0;/^\d+$/.test(a)||(a=0);d=d||0;var W=a+":"+d;if(B.get("counters")[W])return ka.log("Duplicate counter "+W+" initialization"),B.get("counters")[W];var la=B.get("hitId");var ha=new Eb({counterId:a,hid:la});B.set("counterNum",B.get("counterNum")+1);var N=B.get("counterNum");var Q=new Na({protocol:"https:",counterType:d,counterId:a,hitId:la,counter:g,globalConfig:B,counterNum:N});var ra={init:function(a,b){if(n.performance&&"function"===typeof performance.getEntries&&
(a===y&&(a=1),!(Math.random()>=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(),e={},f={},g={},h={},l;b&&(g.counterId=51533966);for(l=0;l<d.length;l++){var m=d[l];var p=m.name.replace(/^https?:\/\//,"").split("?")[0];var q=k.fnv32a(p);"script"==m.initiatorType&&b&&(f[p]={dns:Math.round(m.domainLookupEnd-
m.domainLookupStart),tcp:Math.round(m.connectEnd-m.connectStart),duration:Math.round(m.duration),response:Math.round(m.responseEnd-m.requestStart),name:m.name,decodedBodySize:m.decodedBodySize});!c[q]||e[p]||b||(e[p]={dns:Math.round(m.domainLookupEnd-m.domainLookupStart),tcp:Math.round(m.connectEnd-m.connectStart),duration:Math.round(m.duration),response:Math.round(m.responseEnd-m.requestStart),pages:I.href})}k.keys(e).length&&(h.timings8=e);k.keys(f).length&&(h.scripts=f);k.keys(h).length&&(new Pa(g)).logParams(h)}}};
ua=24226447==a?1:.002;g.replacePhones=c(function(){var b,c;try{(b=(new J({counterId:a})).read("mp2_substs"))&&(c=sa.parse(b))&&h(c,!0)}catch(da){}return g},"counter.replacePhones");g.reachGoal=c(function(b,c,d,e){2<=arguments.length&&"function"===typeof c&&(e=d,d=c,c=y);ka.log("Reach goal. Counter: "+a+". Goal id: "+b+". Params: ",c);Q.sendGoal(b,{url:K.url?H:L().href,vParams:c,callback:d,ctx:e});return g},"counter.reachGoal");g.trackLinks=c(function(a){r(a);return g},"counter.trackLinks");var ia=
new ca({counterId:a});g.hit=c(function(b,c,d,e,f,h){b?(k.isObject(c)&&(d=c.referer,e=c.params,f=c.callback,h=c.ctx,c=c.title),H=b,ka.log("PageView. Counter "+a,". URL: "+b,". Referrer: "+d,". Params: ",e),Q.sendHit({url:b,title:c,hasPrerender:xa,referrer:d,vParams:e,callback:f,ctx:h}),xa=!1):k.warning("Empty hit url");return g},"counter.hit");g.params=c(function(b){var c=arguments.length,d=c,e=[].slice.call(arguments,0);if(b){if(1<arguments.length){if(k.isFunction(arguments[c-1])){var f=arguments[c-
1];d=c-1}else if(k.isFunction(arguments[c-2])){f=arguments[c-2];var h=arguments[c-1];d=c-2}e=[].slice.call(e,0,d);1<e.length&&(e=[k.array2Props(e)])}c=-1!==k.arrayIndexOf(k.keys(e[0]),"__ymu");(d=-1!==k.arrayIndexOf(k.keys(e[0]),"__ym")&&e[0].__ym.user_id)?ka.log('Set user id "'+e[0].__ym.user_id+'"'):ka.log((c?"User p":"P")+"arams. Counter "+a+". Params: ",e[0]);Q.sendParams(e[0],f,h,K.url?H:L().href)}else k.warning("Wrong params");return g},"counter.params");ha.addHandler("pluginInfo",function(){return K},
this);ha.addHandler("parentConnect",function(a,b){Q.paramsQueue.push({__ym:{parentIframe:{counterId:b.counterId,hid:b.hid}}})},this);g.file=c(function(a,b){a?(b=b||{},Q.sendFileUpload({url:a,title:b.title,vParams:b.params,callback:b.callback,ctx:b.ctx,referrer:K.url?H:L().href})):k.warning("Empty file url");return g},"counter.file");g.extLink=c(function(a,b){a?(b=b||{},Q.sendExtLink({url:a,title:b.title,vParams:b.params,callback:b.callback,ctx:b.ctx,referrer:K.url?H:L().href},H)):k.warning("Empty link");
return g},"counter.extLink");g.notBounce=c(function(a){var b=0;a=a||{};lb&&Va&&(b=Va-lb);Q.sendNotBounce(b,{url:K.url?H:L().href,callback:a.callback,ctx:a.ctx});return g},"counter.notBounce");var O=[];g.addFileExtension=c(function(a){if(!a)return k.warning("Empty extension"),g;"string"===typeof a?O.push(a):O=O.concat(a);return g});g.clickmap=function(a){x(a);return g};g.accurateTrackBounce=c(function(a){F(a);return g});var za=null;var ba=!1;g.trackHash=c(function(a){G(a);return g});var Ha={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===k.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(k.isObject(b))switch(a){case "detail":case "add":case "remove":k.isArray(b.goods)&&
b.goods.length?(c=k.arrayEvery(b.goods,function(a){return k.isObject(a)&&(k.isString(a.id)||k.isNumber(a.id)||k.isString(a.name)||k.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":k.isNumber(b.id)||k.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}}};g.ecommerceDetail=
c(function(a,b){ta("detail",a,b);return g},"ecommerce.detail");g.ecommerceAdd=c(function(a,b){ta("add",a,b);return g},"ecommerce.add");g.ecommerceRemove=c(function(a,b){ta("remove",a,b);return g},"ecommerce.remove");g.ecommercePurchase=c(function(a,b){ta("purchase",a,b);return g},"ecommerce.purchase");g.userParams=c(function(a,b,c){k.isObject(a)?g.params({__ymu:a},b||function(){},c):k.warning("Wrong user params");return g},"uparams");g.experiments=c(function(a,b,c){Q.sendExperiments({callback:b,ctx:c,
experiments:a});return g},"exps");g.id=g.setUserID=c(function(a,b,c){k.isString(a)||k.isNumber(a)?g.params({__ym:{user_id:a}},b||function(){},c):k.warning("Incorrect user ID");return g},"id");var Ia=new J;g.getClientID=c(function(a){var b=Ia.read("uid");a&&k.isFunction(a)&&a(b);return b},"guid");g.enableAll=function(){r(!0);x(!0);F();return g};g.uploadPage=function(){};g.destruct=c(function(){g._isDestructing=!0;z.un(q,"click",C,null,{name:"extLinkClick"});z.un(n,"load",g.replacePhones,g);G(!1);ma&&
ma.stop();B.set("stopRecoder",y);B.set("counter",y);x(!1);try{delete n["yaCounter"+a],delete B.get("counters")[W],delete B.get("hitParam")[W]}catch(Y){}});g.isDestructing=function(){return!!g._isDestructing};ec.init(Q);g._performanceTiming=rb;if(a){var P=new Ja({counter:g,counterId:a,globalConfig:B,frameConnector:ha,prefsEcommerce:K.ecommerce,prefsUseDataLayer:K.useDataLayer});if("prerender"===q.webkitVisibilityState||"prerender"===q.visibilityState){Q.sendPrerenderHit({url:H,vParams:b,title:t.getDocumentTitle(),
referrer:q.referrer});var Da=function(){"prerender"!==q.webkitVisibilityState&&"prerender"!==q.visibilityState&&(z.un(q,"webkitvisibilitychange,visibilitychange",Da),u(!0))};z.on(q,"webkitvisibilitychange,visibilitychange",Da)}else u(!1)}}},"init")()};xb.init(qa,B);new Db({globalConfig:B});n.Ya[qa].counters=function(){var a=[];k.forEachKey(B.get("counters"),function(b,d){var f=b.split(":");a.push({id:+f[0],type:+f[1],accurateTrackBounce:d._isAccurateTrackBounce,clickmap:d._clickmap&&d._clickmap._start,
oldCode:!!n.ya_cid,trackHash:!!d._trackHash,trackLinks:d._trackLinks&&d._trackLinks.on,webvisor:!!d._webvisor})});return a};B.setSafe("getCounters",function(){var a=[];k.forEachKey(B.get("counters"),function(b,d){var f=b.split(":");a.push({id:+f[0],type:+f[1],accurateTrackBounce:d._isAccurateTrackBounce,clickmap:d._clickmap&&d._clickmap._start,oldCode:!!n.ya_cid,trackHash:!!d._trackHash,trackLinks:d._trackLinks&&d._trackLinks.on,webvisor:!!d._webvisor})});return a});n.ya_cid&&n.Ya.Metrika&&new n.Ya.Metrika(n.ya_cid,
n.ya_params,n.ya_class);n.ya_cid&&!n.ya_hit&&(n.ya_hit=function(a,b){n.Ya._metrika.counter&&n.Ya._metrika.counter.reachGoal(a,b)});(function(){function a(a){try{delete n[a]}catch(m){n[a]=y}}var b="yandex_metrika_callback",d="yandex_metrika_callbacks";b="yandex_metrika_callback2";d="yandex_metrika_callbacks2";var f=n[b],g=n[d],k;"function"==typeof f&&f();if("object"==typeof g)for(f=0;f<g.length;f++)if(k=g[f])g[f]=null,k();a(b);a(d)})();n.Ya[qa].informer=function(a){var b=!!n.Ya[qa]._informer;Ya[qa]._informer=
a;Ya[qa]._informer.domain="informer.yandex.ru";b||t.loadScript({src:"https://informer.yandex.ru/metrika/informer.js"})};z.on(q,"click",E(function(a){var b=M.getTarget(a);if(b&&"ym-advanced-informer"===b.className){var d=b.getAttribute("data-lang");var f=b.getAttribute("data-cid");n.Ya[qa].informer({i:b,id:+f,lang:d});M.prevent(a)}},"adv-inf"),null,{passive:!1})})(this,this.document);