var _io_init_async=function(){try{if("docs.onthe.io"!==location.hostname){encodeURIComponent(location.pathname);window.io1famo=+Date.now();Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});_io_get_random_int=function(a,b){return Math.floor(Math.random()*(b-a+1))+a};_io_track_tags=function(a,b,c){var d=[];a="NodeList"==typeof a?a:document.querySelectorAll(a);b=b||"textContent";if(a&&a.length)for(var e=0;ea.indexOf(location.hostname)?!0:!1};_io_page=function(){var a=document.title||"none",a=_io_replace_to_html(a).replace(/\xA0/g," ").trim(),a=a.trim();
return encodeURIComponent(a)};_io_author=function(){var a=!1,b=document.querySelector(".io-hidden-author, .io-author");b&&(a=b.textContent.trim());if(a&&(a=a.replace(/(<([^>]+)>)/ig,"").trim(),a=a.replace(/[:,']/g,"_"),0<=a.indexOf(",")&&(a=a.substring(0,a.indexOf(","))),!(0<=a.indexOf(":"))&&a))return a=a.trim(),encodeURIComponent(a)};_io_get_page_type=function(){for(var a=0;a<_io_slices.length;a++)if(-1<_io_slices[a].indexOf("page_type"))return!0;return!1};_io_device=function(){navigator.userAgent||
(navigator.userAgent="undefined");var a="desktop",b=/Android|webOS|iPhone|PlayBook|iPad|iPod|IEMobile|BlackBerry|Mobile|Opera Mini/i.test(navigator.userAgent),c=/Tablet|PlayBook|iPad/i.test(navigator.userAgent)||/Android/i.test(navigator.userAgent)&&!/Mobile/i.test(navigator.userAgent)&&!/Opera Mini/i.test(navigator.userAgent),d=/Android/i.test(navigator.userAgent),e=/iPhone|iPad|iPod/i.test(navigator.userAgent);b&&(a=c?"tablet":"smart",a=d?a+"%20(Android)":e?a+"%20(iOS)":a+"%20(Other)");return a};
_io_start_page=function(){if(-1!==_io_cookie_indexOf("__io_p=")){var a=_io_cookie_match(/__io_p=([^;]+)/),a=a[0].split("|||");a[0]=a[0].substr(7,a[0].length);a[0]=a[0].replace(/[:,]/g,"_");return a[0]}a=new Date;a.setYear(a.getFullYear()+1);_io_cookie_set_value("__io_p="+_io_page()+"|||"+_io_referrer()+"; expires="+a.toUTCString()+"; path=/");return _io_page()};_io_referrer_group=function(a){a=a.replace("www.","");-1!==a.indexOf("/")&&(a=a.split("/")[2]);a=a.replace(/\.$/,"");a.indexOf("plus.google.");
a=a.replace(/google\.[a-z]+(\.[a-z]+)?/,"google");-1!==a.indexOf("plus.url.google")&&(a="google.plus");a=a.replace(/([m|mobile|web|mbasic|touch]\.)?facebook\.com/,"facebook");a=a.replace(/fb\.me/,"facebook");a=a.replace(/^fb$/,"facebook");a=a.replace(/(m\.)?vk\.com/,"vk.com");a=a.replace(/vkontakte\.ru/,"vk.com");a=a.replace(/^vk$/,"vk.com");a=a.replace(/([a-z_]+).vk.com/,"vk.com");a=a.replace(/^t\.co/,"twitter");a=a.replace(/clck\.yandex\.ru/,"yandex.ru");a=a.replace(/yandex\.[a-z]+(\.[a-z]+)?/,
"yandex.ru");a=a.replace(/m\.ok\.ru/,"ok.ru");a=a.replace(/l\.facebook/,"facebook");a=a.replace(/lfacebook/,"facebook");a=a.replace(/mobifacebook/,"facebook");a=a.replace(/wefacebook/,"facebook");a=a.replace(/twitter.com/,"twitter");a=a.replace(/com.google/,"google");a=a.replace(/r.search.yahoo.com/,"yahoo.com");a=a.replace(/search\.yahoo\.com/,"yahoo.com");a=a.replace(/m\.news\.yandex/,"news.yandex");a=a.replace(/googleads\.g\.doubleclick\.net/,"doubleclick.net");a=a.replace(/ua\.korrespondent\.net/,
"korrespondent.net");a=a.replace(/(.*)\.directadvert\.ru/,"directadvert.ru");-1!==a.indexOf("news")&&-1!==a.indexOf("yandex")&&(a="news.yandex.ru");return encodeURIComponent(a.replace(/[:,]/g,"_"))};_io_source_for_referrer=function(a){var b=[];location.search&&(b=location.search.substr(1).split(/&/));for(var c=0;ca.indexOf(location.hostname)||-1!==a.indexOf("prom.ua")?!0:!1;if(!b){var c=new Date;c.setYear(c.getFullYear()+1);_io_cookie_set_value("__io_r="+a+"; expires="+c.toUTCString()+"; path=/; domain=.prom.ua")}if(b)if(a=_io_cookie_match(/__io_r=([^;]+)/),-1!==_io_cookie_indexOf("__io_r=")&&
a&&a.length&&1a&&(a=0);return a=0==a?"0":7>a?a+"d":30>a?Math.round(a/7)+"w":Math.round(a/30)+"m"};_io_track_queue=function(a,b){if("undefined"!=typeof localStorage){var c=localStorage._io_queue,c=c?JSON.parse(c):[];c.push({key:a,value:b});localStorage._io_queue=JSON.stringify(c)}};
_io_browser=function(){navigator.userAgent||(navigator.userAgent="undefined");var a=navigator.userAgent,b,c=a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(c[1]))return/\brv[ :]+(\d+)/g.exec(a),"IE";if("Chrome"===c[1]&&(b=a.match(/\b(Edge)\/(\d+)/),null!=b))return"Edge";if("Chrome"===c[1]&&(b=a.match(/\b(OPR)\/(\d+)/),null!=b))return"Opera";if("Chrome"===c[1]&&(b=a.match(/\b(YaBrowser)\/(\d+)/),null!=b))return"YaBrowser";c=c[2]?[c[1],c[2]]:[navigator.appName,
navigator.appVersion,"-?"];null!=(b=a.match(/version\/(\d+)/i))&&c.splice(1,1,b[1]);c[0]=c[0].replace(/[0-9\s]+$/g,"");"MSIE"==c[0]&&(c[0]="IE");return c[0]};_io_last_visit=function(){var a=_io_cookie_match(/__io_lv=([^;]+)/);if(a)a=a[1];else return"0";return a=Math.round((+Date.now()-a)/864E5)};_io_user_type=function(){var a="";if(-1==_io_cookie_indexOf("__io_lv=")){var a="new",b=new Date;b.setYear(b.getFullYear()+1);_io_cookie_set_value("__io_lv="+ +Date.now()+"; expires="+b.toUTCString()+"; path=/")}else 0==
_io_lifetime()?a="new":(a=1*_io_last_visit(),a=30b&&"start"==a){a="finished";b=["top","middle","bottom","finished"];for(e=0;e<=b.indexOf(a);e++)_io_track_readability_on_scroll(b,e);return"finished"}e=b-document.body.getBoundingClientRect().top;b=10*Math.round(10-b/e*10);break}}if("start"!=a)for(100b&&(b=0),a=25>=b?"top":50>=b?"middle":75>=b?"bottom":"finished",b=["top",
"middle","bottom","finished"],e=0;e<=b.indexOf(a);e++)_io_track_readability_on_scroll(b,e)}if("finished"!=a("start")){var b="";("undefined"==typeof _io_tr_element?document:_io_tr_element).addEventListener("scroll",function(){clearInterval(b);b=setTimeout(a,200)})}};_io_decode_escape_sequence=function(a){return a.replace(/\\x([0-9A-Fa-f]{2})/g,function(a,c){return String.fromCharCode(parseInt(c,16))})};_io_track=function(a,b,c){if(a){Array.isArray(a)&&(a=a.join("&/?k[]=41949:"));a=_io_decode_escape_sequence(a);
c=0<=a.indexOf("visits_instantly")?"&__io="+("undefined"!=typeof _io_getCookie("__io")?_io_getCookie("__io"):""):"";b="https://tt.onthe.io/?k[]=41949:"+a+"&s=40d67c0b572c270cf96c57c0d146e8e5"+("undefined"!=typeof b?"&_v="+b:"")+c+"&"+ +Date.now();c=document.createElement("script");var d="_io"+1E5*Math.random()+"."+ +Date.now();c.setAttribute("src",b);c.setAttribute("async",!0);c.setAttribute("id",d);try{c.addEventListener("load",function(){var a=document.getElementById(d);a&&(a.remove?a.remove():
a.parentNode&&a.parentNode.removeChild(a))})}catch(e){_io_track_exception("error_script[error:"+e.message+",app:41949]"),_io_track_exception("error_script_dich[error:"+e.message.replace(/[:,]/g,"_")+",app:41949,url:"+location.pathname+"]"),_io_track_exception("error_script_new[error:"+e.message.replace(/[:,]/g,"_")+",app:41949,url:"+location.pathname+"]")}(document.head||document.getElementsByTagName("head")[0]).appendChild(c);_io_test_track=!0;-1t.indexOf(c)&&("read_finished"==c&&(b=parseInt((+Date.now()-window.io1famo)/1E3),300u.indexOf(a)&&(_io_track_batch(a,b),u.push(a))};var m=[],v=function(){var a=0;return function(b,c){clearTimeout(a);a=setTimeout(b,c)}}();_io_track_batch=function(a,b){if(Array.isArray(a))for(var c=0;cm.indexOf(a[c])&&
m.push(a[c]);else 0>m.indexOf(a)&&m.push(a);v(function(){for(var a=[],b=0;ba.target.getCurrentTime()&&_io_track("video_started["+_io_slices.join(",")+
",depth:"+_io_depth+",title:"+encodeURIComponent(_io_replace_to_html(a.target.getVideoData().title))+",reference_time:"+Math.round(a.target.getDuration())+",type:youtube]");0===a.data&&(_io_track("video_watch_finished["+_io_slices.join(",")+",depth:"+_io_depth+",title:"+encodeURIComponent(_io_replace_to_html(a.target.getVideoData().title))+",reference_time:"+Math.round(a.target.getDuration())+",type:youtube]"),_io_track("video_left["+_io_slices.join(",")+",depth:"+_io_depth+",title:"+encodeURIComponent(_io_replace_to_html(a.target.getVideoData().title))+
",reference_time:"+Math.round(a.target.getDuration())+",time_int:"+Math.round(a.target.getDuration())+",type:youtube]"))}}}))}window.onbeforeunload=function(){var a=window._io_players,b;for(b in a)2!=a[b].getPlayerState()&&1!=a[b].getPlayerState()||_io_track("video_left["+_io_slices.join(",")+",depth:"+_io_depth+",time_int:"+Math.round(a[b].getCurrentTime())+",title:"+encodeURIComponent(_io_replace_to_html(a[b].getVideoData().title))+",reference_time:"+Math.round(a[b].getDuration())+",type:youtube]")};
document.body.removeChild(a)};document.body.appendChild(a)};_io_track_html5_video=function(){if(0!==(__html_videos=document.querySelectorAll("video")).length){for(var a=0;a<__html_videos.length;a++){var b=__html_videos[a],c=_io_slices.slice(),d=Math.round(b.duration);"undefined"!=typeof d&&_io_slice_set("reference_time",d,c);_io_slice_set("type","html5",c);_io_slice_set("title",_io_slice_get("page"),c);_io_track_once("video_view["+c.join(",")+",depth:"+_io_depth+"]");(function(a,b){a.addEventListener("play",
function(){1>this.currentTime&&_io_track_once("video_started["+b.join(",")+",depth:"+_io_depth+"]")});a.addEventListener("ended",function(){time_int=Math.round(this.currentTime);_io_slice_set("time_int",time_int,b);_io_track_once("video_watch_finished["+b.join(",")+",depth:"+_io_depth+"]");_io_track_once("video_left["+b.join(",")+",depth:"+_io_depth+"]")})})(b,c)}(function(a){var b=window.onbeforeunload;window.onbeforeunload=function(){for(var c=0;c"))return a=a.split("=>"),
_io_q(a[0],b).has(a[1]);elem=b.querySelector(a)}"object"==typeof a&&(elem=a);elem&&(elem.has=d,elem.q=g,elem.parent=c,elem.qa=f,elem.selector=a,elem.parse=_io_parse.node(elem),elem.on=e,elem.clone=k);return elem};_io_qa=function(a,b){var c=function(a){if("function"===typeof a){for(var b=0;b"))return a=a.split("=>"),_io_qa(a[0],b).has(a[1]);var f=a instanceof Array?a:b.querySelectorAll(a);results=[];for(var g=0;g