!function(e){var t={};function r(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t){!function(){try{if(void 0===e)var e={};if(e.defaults={trackingHost:"tt.onthe.io",projectId:"41949",projectSignature:"40d67c0b572c270cf96c57c0d146e8e5",projectCodeId:"LoD6SGe8vMTb",projectCodeVersion:"209",projectUniquesBySuperdomain:"0",projectVisitsBySuperdomain:"0",projectVisitsDuration:"30",projectVideosWithoutMarkup:"1",holdingHash:"",holdingId:"",crawlerFilter:"0",projectMainDomain:"prom.ua",projectHeadlineTestingAudienceRatio:"0",setWidgetOnMainDomain:"0"},void 0===e)e={};if(e.doubleLoadingDetector=function(e,t){var r={init:function(){if("object"!=typeof window.__io&&(window.__io={}),window.__io.startedTrackers||(window.__io.startedTrackers=[]),-1!==window.__io.startedTrackers.indexOf(t.projectCodeId))return!0;window.__io.startedTrackers.push(t.projectCodeId)}};return r}(document,e.defaults),void 0===e)e={};if(e.helpers=function(e,t,r){var o={decodeURIrecursively:function(e){try{for(;decodeURIComponent(e)!=e;)e=decodeURIComponent(e)}catch(e){}return e},encodeURIonce:function(e){return encodeURIComponent(this.decodeURIrecursively(e))},bindOnUrlChange:function(t){var r=e.location.pathname;this.setIntervalSafe(e,function(){e.location.pathname!==r&&(r=e.location.pathname,t())},100)},bindOnElementInsertion:function(r,o,i){i||(i=t);var n=i.querySelectorAll(r);return n=e.Array.prototype.slice.call(n),this.setIntervalSafe(e,function(){var t,a=i.querySelectorAll(r);for(t=0;t2?i.hostname.replace(/^www\./,""):i.hostname,host:i.host,href:i.href,origin:i.origin,pathname:i.pathname,port:i.port,protocol:i.protocol,search:i.search}}catch(t){o={hash:"",hostname:e.location.hostname,hostnameNaked:e.location.hostname.split(".").length>2?e.location.hostname.replace(/^www\./,""):e.location.hostname,host:e.location.host,href:e.location.protocol+"//"+e.location.host+("/"===r.charAt(0)?r:"/"+r),origin:e.location.origin,pathname:r,port:e.location.port,protocol:e.location.protocol,search:""}}return"/"!==o.pathname.charAt(0)&&(o.pathname="/"+o.pathname),o},o.getMainDomain=function(){for(var r=0,o=this.parseURL(e.location.hostname).hostnameNaked,i=o.split("."),n="__io_test"+(new Date).getTime();r=10)){this.trackErrorMetric.errorsCount++;var i={title:"string"==typeof r?r:r.message+"\n\n"+r.stack,href:e.location.href,url:e.location.pathname,domain:e.location.hostname,page:t.title,user_agent:e.navigator.userAgent,referrer_uri:t.referrer};this.sendMetric(o,i)}},o.getMetricParamString=function(t,o){(o=this.cloneObjectShallow(o)).cdn_version=r.projectCodeVersion;var i=[];for(var n in o)""!==o[n]&&o.hasOwnProperty(n)&&i.push(n+":"+this.encodeURIonce(o[n]));var a=t+"["+i.join()+"]";return a=a.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(e.parseInt(arguments[1],16))}),"/?k[]="+r.projectId+":"+a},o.deferMetricToSendInBatch=function(t,o){if(this.deferMetricToSendInBatch.queue||(this.deferMetricToSendInBatch.queue=[]),this.deferMetricToSendInBatch.queue.push(this.getMetricParamString(t,o)),!this.deferMetricToSendInBatch.isQueueActive)var i=this.setIntervalSafe(e,function(){if(0===this.deferMetricToSendInBatch.queue.length)return this.deferMetricToSendInBatch.isQueueActive=!1,void e.clearInterval(i);this.deferMetricToSendInBatch.isQueueActive=!0;var t="";do{t+="&"+this.deferMetricToSendInBatch.queue.shift()}while(this.deferMetricToSendInBatch.queue.length&&(t+this.deferMetricToSendInBatch.queue[0]).length<1900);var o="https://"+r.trackingHost+"/"+t+"&s="+r.projectSignature+"&"+Date.now();this.sendGetRequest(o)}.bind(this),1e3)},o.sendMetric=function(e,t,o,i){var n="https://"+r.trackingHost+this.getMetricParamString(e,t)+"&s="+r.projectSignature+(o?"&_v="+o:"")+(i?"&__io="+this.getUserId():"")+"&"+Date.now();this.sendGetRequest(n)},o.hashFnv32a=function(e,t,r){var o,i,n=void 0===r?2166136261:r;for(o=0,i=e.length;o>>0).toString(16)).substr(-8):n>>>0},o.getStorageStatusLocal=function(){try{var t="__io_test"+(new Date).getTime();return e.localStorage.setItem(t,"1"),e.localStorage.removeItem(t),!0}catch(e){return!1}},o.getStorageStatusSession=function(){try{var t="__io_test"+(new Date).getTime();return e.sessionStorage.setItem(t,"1"),e.sessionStorage.removeItem(t),!0}catch(e){return!1}},o.setPreviousURI=function(t,r){if(this.getStorageStatusSession()){var o=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};e.sessionStorage.setItem("__io_nav_state",JSON.stringify({current:t,currentDomain:r||"",previous:o.current,previousDomain:o.currentDomain?o.currentDomain:""}))}},o.getPreviousURI=function(){if(this.getStorageStatusSession()){var t=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};return t.previous&&t.previous!==t.current?t.previous:void 0}},o.getPreviousDomain=function(){if(this.getStorageStatusSession()){var t=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};return t.previous&&t.previous!==t.current&&t.previousDomain?t.previousDomain:void 0}},o.setStorageItem=function(t,r,o){o=o?e.encodeURIComponent(o):o;try{switch(t){case"local":e.localStorage.setItem(r,o);break;case"session":e.sessionStorage.setItem(r,o);break;default:throw new Error("IO -- invalid storage type specified")}return!0}catch(e){this.trackErrorMetric(e)}},o.getStorageItem=function(t,r){var o;switch(t){case"local":o=e.localStorage.getItem(r);break;case"session":o=e.sessionStorage.getItem(r)}try{return o?e.decodeURIComponent(o):o}catch(e){this.trackErrorMetric(e)}},o.getPreviousPageTitle=function(){if(this.getStorageStatusSession()){var e,r,o=t.title;if(e=this.getStorageItem("session","__io_previous_title_a"),r=this.getStorageItem("session","__io_previous_title_b"),e===o){if(r)return r}else if(this.setStorageItem("session","__io_previous_title_a",o),e)return this.setStorageItem("session","__io_previous_title_b",e),e}},o.getLastestHeadlineTestIds=function(){if(this.getStorageStatusSession()){var t=this.parseJSONSafe(e.sessionStorage.getItem("__io_headline_testing_latest"));if(t&&"object"==typeof t)return t.lifetime<0?(e.sessionStorage.removeItem("__io_headline_testing_latest"),t={}):t.previousPathname!==e.location.pathname&&(t.previousPathname=e.location.pathname,--t.lifetime,e.sessionStorage.setItem("__io_headline_testing_latest",JSON.stringify(t))),{blockId:t.blockId||void 0,headlineId:t.headlineId||void 0}}},o.getSearchParam=function(t,r){var o=(r?this.parseURL(r).search:e.location.search).match("[?&]"+t+"=([^(&?)]*)");return o?o[o.length-1]:""},o.getCookieValue=function(e){var r=t.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return r?this.decodeURIrecursively(r[r.length-1]):""},o.setCookie=function(e,r,o,i,n,a){var s=new Date;s.setFullYear(s.getFullYear()+1),s=s.toUTCString(),o||(o=s),i||(i="/"),void 0!==r&&(r=encodeURIComponent(r));var c=e+"="+(r||"")+"; expires="+o+"; path="+i+(n?"; domain="+n:"")+(a?"; secure":"");t.cookie=c},o.deleteCookie=function(t,r,o){o===e.location.hostname&&(o=null),this.setCookie(t,null,"Thu, 01 Jan 1970 00:00:01 GMT",r,o)},o.getDepth=function(){return this.getStorageStatusSession()?this.getDepthSession():this.getDepthCookie()},o.getDepthCookie=function(){var t=new Date((new Date).getTime()+9e5).toUTCString(),r=this.hashFnv32a(e.location.pathname),o=this.getCookieValue("__io_d");if(!o||2!==o.split("_").length)return this.setCookie("__io_d","1_"+r,t),1;var i=o.split("_")[1],n=e.parseInt(o.split("_")[0],10);if(r==i)return n||1;var a=(n||0)+1;return this.setCookie("__io_d",a+"_"+r,t),a},o.getDepthSession=function(){var t=this.hashFnv32a(e.location.pathname),r=e.sessionStorage.getItem("__io_d");if(!r||2!==r.split("_").length)return e.sessionStorage.setItem("__io_d","1_"+t),1;var o=r.split("_")[1],i=e.parseInt(r.split("_")[0],10);if(t==o)return i||1;var n=(i||0)+1;return e.sessionStorage.setItem("__io_d",n+"_"+t),n},o.getUserId=function(){var e=this.getCookieValue("__io");return e||(e=Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"."+Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"_"+Date.now()),this.setCookie("__io",e),e},o.getReferrerCurrentExternal=function(o){if(!(o=o||t.referrer))return null;var i=this.parseURL(o).hostnameNaked,n=this.parseURL(e.location.hostname).hostnameNaked,a=!1;return""!==r.projectMainDomain&&(a=-1!==i.indexOf(r.projectMainDomain)),a?null:i===n?null:i},o.getReferrerCurrentFromParams=function(t){t=t||e.location.href;var r=this.getSearchParam("io_source",t),o=this.getSearchParam("io_utm_social",t),i="?f"===this.parseURL(t).search?"facebook_group":null,n=this.getSearchParam("utm_referrer",t),a=this.getSearchParam("utm_source",t),s=this.getSearchParam("source",t);return r||o||i||n||a||s},o.getReferrer=function(e,t){var r=this.getReferrerCurrentFromParams(t)||this.getReferrerCurrentExternal(e);return r?(this.setCookie("__io_r",r),r):this.getCookieValue("__io_r")},o.getReferrerFirst=function(e){var t=this.getCookieValue("__io_first_source"),r=this.getReferrer(e);return!t&&r?(this.setCookie("__io_first_source",r),r):t},o.getDeviceName=function(){var t=e.navigator.userAgent||"undefined",r="desktop",o=/Android|webOS|iPhone|PlayBook|iPad|iPod|IEMobile|BlackBerry|Mobile|Opera Mini/i.test(t),i=/Tablet|PlayBook|iPad/i.test(t)||/Android/i.test(t)&&!/Mobile/i.test(t)&&!/Opera Mini/i.test(t),n=/Android/i.test(t),a=/iPhone|iPad|iPod/i.test(t);return o&&(i?(r="tablet",r+=n?" (Android)":a?" (iOS)":" (Other)"):(r="smart",r+=n?" (Android)":a?" (iOS)":" (Other)")),r},o.getBrowserNameAndVersion=function(){var t,r,o=e.navigator.userAgent,i="";switch(!0){case-1!==(t=o.indexOf("OPR/")):i=o.substring(t+4);break;case-1!==(t=o.indexOf("Opera"))&&-1!==(t=o.indexOf("Version")):i=o.substring(t+8);break;case-1!==(t=o.indexOf("Opera")):i=o.substring(t+6);break;case-1!==(t=o.indexOf("MSIE")):i=o.substring(t+5);break;case-1!==(t=o.indexOf("Chrome")):i=o.substring(t+7);break;case-1!==(t=o.indexOf("Safari"))&&-1!==(t=o.indexOf("Version")):i=o.substring(t+8);break;case-1!==(t=o.indexOf("Safari")):i=o.substring(t+7);break;case-1!==(t=o.indexOf("Firefox")):i=o.substring(t+8);break;case-1!==o.indexOf("Trident")&&-1!==(t=o.indexOf("rv:")):i=o.substring(t+3).split(")")[0];break;case(t=o.lastIndexOf(" ")+1)<(t=o.lastIndexOf("/")):i=o.substring(t+1)}return i=i.split(";")[0].split(" ")[0],r=(r=e.parseInt(i,10))||"(unknown version)",this.getBrowserName()+" "+r},o.getUserLifeTime=function(){var e=t.cookie.match(/__io=([^;]+)/);return e?(e=e[1].split("_")[1],(e=Math.round((+Date.now()-e)/864e5))<0&&(e=0),0==e?e="0":e<7?e+="d":e=e<30?Math.round(e/7)+"w":Math.round(e/30)+"m",e):"0"},o.getUserLifeTimeNumber=function(){var e=t.cookie.match(/__io_lv=([^;]+)/);return e?(e=e[1],e=Math.round((+Date.now()-e)/864e5)):"0"},o.getUserType=function(){var e="";if(-1==t.cookie.indexOf("__io_lv="))e="new",(r=new Date).setFullYear(r.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+r.toUTCString()+"; path=/";else if(0==this.getUserLifeTime())e="new";else{var r,o=1*this.getUserLifeTimeNumber();e=o>30?"new":o>7?"returned":"constant",(r=new Date).setFullYear(r.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+r.toUTCString()+"; path=/"}return e},o.getUserTypeByProject=function(){var e="",o="__io_ut_state"+r.projectId,i="",n=this.getStorageStatusSession();if(n&&(e=this.getStorageItem("session",o)),-1===t.cookie.indexOf("__io_lv"))i="new",(a=new Date).setFullYear(a.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+a.toUTCString()+"; path=/";else if(0==this.getUserLifeTime())i="new";else{var a,s=1*this.getUserLifeTimeNumber();i=s>30?"new":s>7?"returned":"constant",(a=new Date).setFullYear(a.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+a.toUTCString()+"; path=/"}return e||(n&&this.setStorageItem("session",o,i),i)},o.getBrowserName=function(){var r,o,i="[object OperaMini]"===Object.prototype.toString.call(e.operamini),n=!(i||(!e.opr||!e.opr.addons)&&!e.opera),a="undefined"!=typeof InstallTrigger,s=/constructor/i.test(e.HTMLElement)||"[object SafariRemoteNotification]"===Object.prototype.toString.call(this.getDeepPropertySafe(e,["safari","pushNotification"]))||"Apple Computer, Inc."===e.navigator.vendor,c=!!t.documentMode,u=[{name:"Opera",isCurrent:n},{name:"Firefox",isCurrent:a},{name:"Safari",isCurrent:s},{name:"IE",isCurrent:c},{name:"Edge",isCurrent:!c&&!!e.StyleMedia},{name:"Chrome",isCurrent:!(n||!e.chrome||!e.chrome.webstore&&!e.chrome.runtime)},{name:"Opera Mini",isCurrent:i}];for(o=0;o(new Date).getDate()&&(t=new Date((new Date).setHours(24,0,0,0)).toUTCString());var o=this.getCampaignResetStatus();return e&&!o?(this.setCookie("__io_session_id",e,t,"/",r),e):(e=this.getRandomHash(),this.setCookie("__io_session_id",e,t,"/",r),e)},o.injectScriptBySrc=function(e,r){var o=t.getElementsByTagName("script")[0],i=t.createElement("script");i.id=r,i.async=!0,i.src=e,o.parentNode.insertBefore(i,o)},o.loadComponentAsync=function(e){try{return e.init()}catch(e){this.trackErrorMetric(e)}},o}(window,document,e.defaults),void 0===e)e={};if(e.debugCodeLoader=function(e,t){var r={flagName:"_io_debug_tracking",init:function(){var r=t.getSearchParam(this.flagName),o=t.getCookieValue(this.flagName),i=r||o;if(i){var n={id:e.projectCodeId+"_"+i,uri:"https://"+i+"_cdn.onthe.io/io.js/"+e.projectCodeId};if(!document.getElementById(n.id))return t.injectScriptBySrc(n.uri,n.id),!0}}};return r}(e.defaults,e.helpers),void 0===e)e={};if(e.nextPageMetricQueueService=function(e,t,r){var o={};o.storageKey="__io_next_page_metrics"+r.projectId,o._getQueue=function(){return t.parseJSONSafe(e.localStorage.getItem(this.storageKey))||[]},o.insertUpdate=function(r,o,i){if(t.getStorageStatusLocal()&&i){var n,a,s=this._getQueue();for(n=0;n=r)return 0;var a=r-n;return i[e]=n+a,t.localStorage.setItem("__io_order_try",JSON.stringify(i)),a},saveBusketSendAction:function(e){if(o.getStorageStatusLocal()){t.localStorage.removeItem("__io_order_try"),t.localStorage.removeItem("__io_add_to_busket");var r=o.parseJSONSafe(t.localStorage.getItem("__io_order_complete"))||[];if(-1===r.indexOf(e))return r.push(e),t.localStorage.setItem("__io_order_complete",JSON.stringify(r)),!0}},addDefaultSlices:function(e){e.page=r.title;var t=o.getPreviousURI(),i=o.getPreviousPageTitle();t&&("/"===t?e.previous_page="Main Page":i&&(e.previous_page=i)),e.user_id=o.getUserId(),e.browser=o.getBrowserName(),e.referrer=o.getReferrer(),e.device=o.getDeviceName(),e.lifetime=o.getUserLifeTimeNumber(),e.user_type=o.getUserType();var n=this._io_moon_utm(e);for(var a in this._io_moon_send_visit(),n)n.hasOwnProperty(a)&&(e[a]||(e[a]=n[a]));!e.referrer&&e.source&&(e.referrer=e.source)},forceAddToBasket:function(e){var t=o.cloneObjectShallow(e.slices);t.count=this.getAvailableBasketItemsCount(o.hashFnv32a(e.slices.product_id+e.slices.coins_int),e.repeatCount),t.count&&this.parseAndSendEventAsMetric({event:"add_to_basket"},t)},parseAndSendEventAsMetric:function(e,t){var r,i,n,a,s={name:null,slices:{},repeatCount:1},c=["category","sub_category","sub_sub_category","extra_category"],u={order:"try_order_send",checkout:"basket_send",send_user_data:"user_data",search:"search_queries"};for(a in t)t.hasOwnProperty(a)&&(e.hasOwnProperty(a)||(e[a]=t[a]));for(r in e)if(e.hasOwnProperty(r)){if(i=e[r],o.identifyArray(i)){if(!i.join("").trim())continue}else if(("object"!=typeof i||null==i)&&!(i=String(i).trim()))continue;switch(r){case"count":s.repeatCount=i;break;case"product_url":s.slices.url=o.parseURL(i).pathname;break;case"categories":for(n=0;n0&&e.indexOf(location.hostname)<10;if(new RegExp("^(www.)?"+t.location.hostname.replace(/^www\./,"")).test(o.parseURL(e).hostname)&&(n=!0),""!==i.projectMainDomain&&new RegExp(i.projectMainDomain+"$").test(o.parseURL(e).hostname)&&(n=!0),n)return"direct";var a=o.getSearchParam("utm_source");"mail"==a?e="mail":a&&""==e&&(e=a);var s=o.getSearchParam("io_utm_social");if(s&&(e=s),location.search.indexOf("utm_referrer=https%3A%2F%2Fzen.yandex.com")>-1||location.search.indexOf("utm_referrer=https%3A%2F%2Fzen.yandex.ru")>-1||"zen.yandex.ru"===e)return"yandex_zen";if("?f"==location.search)return"facebook_group";var c=["liqpay","privatbank","PayParts","portmone","paymaster"];for(var u in c)if(e.indexOf(c[u])>-1)return"direct";return-1!==(e=e.replace("www.","")).indexOf("/")&&(e=e.split("/")[2]),-1!==(e=-1===(e=e.replace(/\.$/,"")).indexOf("plus.google.")?e.replace(/google\.[a-z]+(\.[a-z]+)?/,"google"):e.replace(/google(\.[a-z]+)?(\.[a-z]+)?/i,"google")).indexOf("plus.url.google")&&(e="google.plus"),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/([m|mobile|web|mbasic|touch]\.)?facebook\.com/,"facebook")).replace(/facebook/i,"facebook")).replace(/fb\.me/,"facebook")).replace(/^fb$/,"facebook")).replace(/(m\.)?vk\.com/,"vk.com")).replace(/vkontakte\.ru/,"vk.com")).replace(/^vk$/,"vk.com")).replace(/([a-z_]+).vk.com/,"vk.com")).replace(/^t\.co/,"twitter")).replace(/clck\.yandex\.ru/,"yandex.ru")).replace(/yandex\.[a-z]+(\.[a-z]+)?/,"yandex.ru")).replace(/m\.ok\.ru/,"ok.ru")).replace(/l\.facebook/,"facebook")).replace(/lfacebook/,"facebook")).replace(/mobifacebook/,"facebook")).replace(/wefacebook/,"facebook")).replace(/twitter.com/,"twitter")).replace(/com.google/,"google")).replace(/Google/,"google")).replace(/([a-z_]+).yahoo.com/,"yahoo.com")).replace(/([a-z_]+).bing.com/,"bing.com")).replace(/([a-z_]+).baidu.com/,"baidu.com")).replace(/m\.news\.yandex/,"news.yandex")).replace(/googleads\.g\.doubleclick\.net/,"doubleclick.net")).replace(/(.*)\.directadvert\.ru/,"directadvert.ru")).indexOf("news")&&-1!==e.indexOf("yandex")&&(e="news.yandex.ru"),e=(e=(e=e.replace(/duckduckgo\.com/i,"duckduckgo")).replace(/ecosia\.org/i,"ecosia")).replace(/[:,]/g,"_")}()},_io_moon_set_source:function(e,t,r){return e.source||(e.source=t&&"direct"==r?t:r),"direct"==e.source&&(e.io_source=e.io_utm=e.medium=e.campaign=e.term=e.content=""),e},_io_moon_set_visit_flag:function(){this._io_moon_setCookie("__io_visit_pageviews_flag",1)},_io_moon_reset_visit_flag:function(){o.deleteCookie("__io_visit_pageviews_flag")},_io_moon_one_visit_per_page:2,_io_moon_send_visit:function(){this._io_moon_one_visit_per_page>2?this._io_moon_reset_visit_flag():o.getCookieValue("__io_visit_pageviews_flag")&&(this._io_moon_reset_visit_flag(),this._io_moon_one_visit_per_page++,t._io_data.push({event:"visits_pageviews"}))},_io_moon_set_visit_expire:function(){var e=new Date((new Date).getTime()+864e5).toUTCString(),t=Date.now(),r="__io_visit_expire."+(new Date).getDate()+".day";this._io_moon_setCookie(r,t,e)},_io_moon_check_visit_expire:function(){var e=i.projectVisitsDuration||15,t="__io_visit_expire."+(new Date).getDate()+".day";if(!o.getCookieValue(t))return!1;var r=o.getCookieValue(t)?parseInt(o.getCookieValue(t),10):Date.now();return(Date.now()-r)/1e3/600)for(var r=0;r0&&(e.io_source="google|cpc",e.io_utm=t,e.medium||(e.medium="cpc"),e.source||(e.source="google")),e},_io_moon_reset_utm:function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+"}:{"+e[r]);this._io_moon_set_visit_expire(),this._io_moon_set_visit_flag(),this._io_moon_setCookie("__io_moon_utm_prom1",t.length>0?t.join("}*{"):"")},_io_moon_same_host:function(){return r.referrer.indexOf(location.hostname)>0&&r.referrer.indexOf(location.hostname)<10},transformEventHook:function(e){},init:function(){o.setIntervalSafe(t,function(){if(o.getDeepPropertySafe(t,["_io_data","length"])){var e=t._io_data.pop();this.transformEventHook(e),o.getDeepPropertySafe(e,["event"])&&this.parseAndSendEventAsMetric(e)}}.bind(this),10)}};return n}(window,document,e.helpers,e.defaults),void 0===e)e={};if(e.nonConfigViewTracker=function(e,t,r){var o={init:function(){r.identifyArray(e._io_data)||(e._io_data=[]),e._io_data.push({event:"pageviews"})}};return o}(window,document,e.helpers),void 0===e)e={};if(e.previousPageWatcher=function(e,t,r){var o={listenForConfigAndPageMatchOnce:function(){r.bindOnPageDescriptorAppearance(e.location.href,function(e){var r=e.getSlices();t.setPreviousURI(r.url,r.domain)}.bind(this))},listenForPageChnages:function(){t.bindOnUrlChange(this.listenForConfigAndPageMatchOnce.bind(this))},init:function(){"object"!=typeof e.__io&&(e.__io={}),e.__io.isPreviousPageWatcherInitialized||(e.__io.isPreviousPageWatcherInitialized=!0,r?(this.listenForConfigAndPageMatchOnce(),this.listenForPageChnages()):(t.setPreviousURI(e.location.pathname,e.location.hostname),t.bindOnUrlChange(function(){t.setPreviousURI(e.location.pathname,e.location.hostname)})))}};return o}(window,e.helpers,e.configParser),e.helpers.loadComponentAsync(e.debugCodeLoader))return;try{if(function(e){e.defaults.trackingHost="ttt.onthe.io",e.nonConfigViewTracker.init=function(){},e.eventAPI.forceAddToBasket=function(){},e.defaults.projectMainDomain=null,e.nextPageMetricQueueService.clearBySending=function(){var t,r=this._getQueue();if(r)for(window.localStorage.removeItem(this.storageKey),t=0;t0)){t.previous_page="",t.url=e.helpers.parseURL(document.location.href).pathname,t.previous_url=e.helpers.getPreviousURI(),void 0===t.previous_url&&(t.previous_url=""),t.domain=e.helpers.parseURL(document.location.href).hostname,t.landing_url=o({});var r=e.helpers.getPreviousPromCustomerId();if(t.prom_customer_id&&t.prom_customer_id==r||(t.previous_url=""),t.categories&&n(t),t.is_prosale&&"yes"==t.is_prosale&&t.product_id&&"product_click"==t.event)try{window.sessionStorage.setItem("is_p"+t.product_id,1)}catch(e){}"product_view: view_on_site"==t.page_type&&(t.page_type="product_view_view_on_site");var a=e.eventAPI._io_moon_utm();if(a.source.includes("facebook")&&"cpc"===a.medium&&(t.source="criteo"),"fb"===a.source&&"cpc"===a.medium&&(t.source="criteo"),a.source.includes("instagram")&&"cpc"===a.medium&&(t.source="criteo"),"cpc"==a.medium&&a.source.indexOf("google")>=0&&(t.source="Adwords"),"cpc"==a.medium&&a.source.indexOf("Google")>=0&&(t.source="Adwords"),"cpc"==a.medium&&a.source.indexOf("yandex")>=0&&(t.source="Yandex Direct"),"cpc"==a.medium&&a.source.indexOf("Yandex")>=0&&(t.source="Yandex Direct"),a.source.indexOf("yabs.yandex.ru")>=0&&(t.source="Yandex Direct"),a.source.indexOf("criteo")>=0&&(t.source="criteo"),a.source.indexOf("doubleclick.net")>=0&&(t.source="Adwords"),a.source.toLowerCase().indexOf("nova.rambler.ru")>=0&&(t.source="rambler.ru"),e.defaults.projectMainDomain||(a.source.indexOf("tiu.ru")>=0&&(t.source="tiu.ru"),a.source.indexOf("prom.ua")>=0&&(t.source="prom.ua"),a.source.indexOf("satu.kz")>=0&&(t.source="satu.kz"),a.source.indexOf("bigl.ua")>=0&&(t.source="bigl.ua"),a.source.indexOf("deal.by")>=0&&(t.source="deal.by")),"add_to_basket"==t.event&&(t.val=t.count),t.prom_customer_id&&("pageviews"==t.event&&i(t,"pageviews_merchant"),"callback"==t.event&&i(t,"callback_merchant"),"contact_seller"==t.event&&i(t,"contact_seller_merchant"),"contact_now"==t.event&&i(t,"contact_now_merchant"),"open_seller_contact"==t.event&&i(t,"open_seller_contact_merchant")),void 0===t.cart){if("pageviews"==t.event){if(t.prom_customer_id){var s;try{s=window.sessionStorage.getItem("io_session_tracked."+t.prom_customer_id)}catch(e){}if(!s){window.addEventListener("message",function(e){if("_io_message"==e.data){try{sessionStorage.setItem("io_session_tracked."+t.prom_customer_id,1)}catch(e){}i(t,"visits_merchant")}});var c=document.createElement("iframe");c.style.display="none",c.src="https://cdn.onthe.io/ift_LoD6SGe8vMTb.html?";var u={prom_customer_id:t.prom_customer_id,origin:location.protocol+"//"+location.hostname+"/"};for(var _ in u)c.src+=_+"="+encodeURIComponent(u[_])+"&";document.body.appendChild(c)}}window.cached_slices_state=t;var l="__io_v_pv_"+(new Date).getDate()+"."+(new Date).getMonth()+"."+(e.helpers.getReferrer()||"");try{var m=e.helpers.getCookieValue(l)?"set":"no"}catch(e){m="error"}if(window._io_data.push({event:"debug_visits",client_id:t.client_id,user_agent:navigator.userAgent,cookie:l,cookie_set:m,uid:e.helpers.getCookieValue("__io")}),!e.helpers.getCookieValue(l)){var d={event:"visits"};for(var _ in t)"event"!=_&&(d[_]=t[_]);window._io_data.push(d);var g=new Date((new Date).getTime()+18e5).toUTCString(),h=e.eventAPI._io_moon_calc_domain_for_all_subdomains();e.helpers.setCookie(l,1,g,null,h)}}if("product_click"==t.event){var p=e.helpers.cloneObjectShallow(t);t.event=null,e.eventAPI.addDefaultSlices(p),e.helpers.sendMetricPreventCancellation(p.event,p)}}else{for(var _=0;_-1)return"direct";var a=o.indexOf(location.hostname)>0&&o.indexOf(location.hostname)<10;if(new RegExp("^(www.)?"+window.location.hostname.replace(/^www\./,"")).test(e.helpers.parseURL(o).hostname)&&(a=!0),""!==e.defaults.projectMainDomain&&new RegExp(e.defaults.projectMainDomain+"$").test(e.helpers.parseURL(o).hostname)&&(a=!0),a||e.helpers.setCookie("__io_r3",o,null,null,r),a&&!t){var s=e.helpers.getCookieValue("__io_r3");if(!s)return"direct";o=s}return-1!==(o=o.replace("www.","")).indexOf("/")&&(o=o.split("/")[2]),-1!==(o=-1===(o=o.replace(/\.$/,"")).indexOf("plus.google.")?o.replace(/google\.[a-z]+(\.[a-z]+)?/,"google"):o.replace(/google(\.[a-z]+)?(\.[a-z]+)?/i,"google")).indexOf("plus.url.google")&&(o="google.plus"),-1!==(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o.replace(/([m|mobile|web|mbasic|touch]\.)?facebook\.com/,"facebook")).replace(/facebook/i,"facebook")).replace(/fb\.me/,"facebook")).replace(/^fb$/,"facebook")).replace(/(m\.)?vk\.com/,"vk.com")).replace(/vkontakte\.ru/,"vk.com")).replace(/^vk$/,"vk.com")).replace(/([a-z_]+).vk.com/,"vk.com")).replace(/^t\.co/,"twitter")).replace(/clck\.yandex\.ru/,"yandex.ru")).replace(/yandex\.[a-z]+(\.[a-z]+)?/,"yandex.ru")).replace(/m\.ok\.ru/,"ok.ru")).replace(/l\.facebook/,"facebook")).replace(/lfacebook/,"facebook")).replace(/mobifacebook/,"facebook")).replace(/wefacebook/,"facebook")).replace(/twitter.com/,"twitter")).replace(/com.google/,"google")).replace(/Google/,"google")).replace(/([a-z_]+).yahoo.com/,"yahoo.com")).replace(/([a-z_]+).bing.com/,"bing.com")).replace(/([a-z_]+).baidu.com/,"baidu.com")).replace(/m\.news\.yandex/,"news.yandex")).replace(/googleads\.g\.doubleclick\.net/,"doubleclick.net")).replace(/(.*)\.directadvert\.ru/,"directadvert.ru")).indexOf("news")&&-1!==o.indexOf("yandex")&&(o="news.yandex.ru"),o=(o=(o=o.replace(/duckduckgo\.com/i,"duckduckgo")).replace(/ecosia\.org/i,"ecosia")).replace(/[:,]/g,"_")}();return e.helpers.getCookieValue("__io_first_source")||e.helpers.setCookie("__io_first_source",o,null,null,r),o}}(e))return}catch(t){e.helpers.trackErrorMetric(t)}if(e.helpers.loadComponentAsync(e.doubleLoadingDetector))return;e.helpers.loadComponentAsync(e.previousPageWatcher),e.helpers.loadComponentAsync(e.nextPageMetricQueueService),e.helpers.loadComponentAsync(e.eventAPI),e.helpers.loadComponentAsync(e.nonConfigViewTracker)}catch(t){try{e.helpers.trackErrorMetric(t)}catch(e){}}}()}]);