!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:"211",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;t<a.length;t++)-1===e.Array.prototype.indexOf.call(n,a[t])&&(n.push(a[t]),o(a[t]))},1e3)}};return o.ElementObserver={lookupDelay:1e3,init:function(e,r){this.elements=[],this.selector=e,this.parentElement=r||t,this.state={running:!1},this.intervalId=null},insertIgnoreAnElement:function(e){-1===this.elements.indexOf(e)&&(this.elements.push(e),this.callback(e))},start:function(t){this.state.running=!0,this.callback=t;var r,o=this.parentElement.querySelectorAll(this.selector);for(r=0;r<o.length;r++){if(!this.state.running)return;this.insertIgnoreAnElement(o[r])}this.intervalId&&(e.clearInterval(this.intervalId),this.intervalId=null),this.intervalId=this._setIntervalSafe(e,function(){if(!this.state.running)return e.clearInterval(this.intervalId),void(this.intervalId=null);var t,r=this.parentElement.querySelectorAll(this.selector);for(t=0;t<r.length;t++){if(!this.state.running)return;this.insertIgnoreAnElement(r[t])}}.bind(this),this.lookupDelay)},stop:function(){this.state.running=!1},_setIntervalSafe:function(){return this.setIntervalSafe.apply(this,arguments)}.bind(o)},o.sendGetRequest=function(r){if(e.XMLHttpRequest instanceof e.Object)this.getRemoteContent(r);else{var o=t.createElement("img");o.width=1,o.height=1,o.src=r}},o.getRemoteContent=function(t,r){r||(r=function(){});var o=new e.XMLHttpRequest;o.onreadystatechange=function(){this.readyState===e.XMLHttpRequest.DONE&&(200===this.status?r(this.responseText):r(void 0))},o.open("GET",t,!0),o.send()},o.getEnumerableKeys=function(e){var t,r=[];for(t in e)e.hasOwnProperty(t)&&r.push(t);return r},o.getDeepPropertySafe=function(e,t){var r;try{for(r=0;r<t.length;r++)e=e[t[r]];return e}catch(e){return}},o.parseJSONSafe=function(t){try{return e.JSON.parse(t)}catch(e){return}},o.parseURL=function(r){var o,i=t.createElement("a");i.href=r;try{o={hash:i.hash,hostname:i.hostname,hostnameNaked:i.hostname.split(".").length>2?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<i.length-1&&-1===t.cookie.indexOf(n+"=1");){var a=new Date;a.setMinutes(a.getMinutes()+1);var s=a.toUTCString();o=i.slice(-1-++r).join("."),this.setCookie(n,1,s,"/",o,null)}return this.setCookie(n,null,"Thu, 01 Jan 1970 00:00:01 GMT","/",o,null),o},o.messageWindow=function(e,t){e.postMessage(JSON.stringify(t),"*")},o.messageFrameWindow=function(e,t){this.messageWindow(e.contentWindow,t)},o.createObject=function(t){if("function"==typeof e.Object.create)return e.Object.create(t);function r(){}return r.prototype=t,new r},o.cloneObjectShallow=function(t){return e.JSON.parse(e.JSON.stringify(t))},o.identifyArray=function(e){return!(!e||"object"!=typeof e||"[object Array]"!==Object.prototype.toString.call(e))},o.setIntervalSafe=function(e,t,r){return e.setInterval(function(){try{t.apply(null,arguments)}catch(e){this.trackErrorMetric(e)}}.bind(this),r)},o.addEventListenerSafe=function(e,t,r){var o=function(){try{r.apply(null,arguments)}catch(e){this.trackErrorMetric(e)}}.bind(this);return e.addEventListener(t,o),o},o.trackErrorMetric=function(r,o){if(o=o||"error_script",this.trackErrorMetric.errorsCount=parseInt(this.trackErrorMetric.errorsCount,10)||0,!(this.trackErrorMetric.errorsCount>=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<i;o++)n^=e.charCodeAt(o),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return t?("0000000"+(n>>>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(e,t){var o={},i=!(!r||!r.projectId)&&this.getCookieValue("__io_nav_state"+r.projectId),n=this.getMainDomain();i&&(o=this.parseJSONSafe(i)||{});var a=new Date((new Date).getTime()+9e5).toUTCString(),s=r&&r.projectId?r.projectId:"";this.setCookie("__io_nav_state"+s,JSON.stringify({current:e,currentDomain:t||"",previous:o.current,previousDomain:o.currentDomain?o.currentDomain:""}),a,"/","."+n)},o.getPreviousURI=function(){var e={},t=!(!r||!r.projectId)&&this.getCookieValue("__io_nav_state"+r.projectId);if(t&&(e=this.parseJSONSafe(t)||{}),e.previous&&e.previous!==e.current)return e.previous},o.getPreviousDomain=function(){var e={},t=!(!r||!r.projectId)&&this.getCookieValue("__io_nav_state"+r.projectId);if(t&&(e=this.parseJSONSafe(t)||{}),e.previous&&e.previous!==e.current&&e.previousDomain)return e.previousDomain},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.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,"/","."+this.getMainDomain()),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,"/",this.getMainDomain()),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 t=this.getCookieValue("__io")||this.getRandomHash();return e.parseInt(r.projectUniquesBySuperdomain,10)?(this.deleteCookie("__io","/",e.location.hostname),t=this.getCookieValue("__io")||this.getRandomHash(),this.setCookie("__io",t,!1,"/","."+this.getMainDomain())):this.setCookie("__io",t),t},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<u.length;o++)if(u[o].isCurrent){if(r)return"Other";r=u[o].name}return r||"Other"},o.getReferenceTimeFromWordsCount=function(t){return Math.round(e.parseInt(t,10)/(190/60))},o.getTextFromElement=function(e){var t,r,o="",i=["SCRIPT","STYLE","NOSCRIPT","VIDEO"];for(r=0;r<e.childNodes.length;r++)t=e.childNodes[r],-1===i.indexOf(t.nodeName)&&(1===t.nodeType?o+=this.getTextFromElement(t):3===t.nodeType&&(o+=t.nodeValue));return o},o.getReferenceTimeFromBlock=function(e){var r,o;if(r=t.querySelector(e))return o=this.getTextFromElement(r).trim().split(/\s+/).length,this.getReferenceTimeFromWordsCount(o)},o.getSortedSemver=function(t){return t.sort(function(t,r){var o,i,n=/(\.0+)+$/,a=t.replace(n,"").split("."),s=r.replace(n,"").split("."),c=Math.min(a.length,s.length);for(o=0;o<c;o++)if(i=e.parseInt(a[o],10)-e.parseInt(s[o],10))return i;return a.length-s.length})},o.getRandomHash=function(){return Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"."+Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"_"+Date.now()},o.getUTMCampaign=function(){var e={},r={};return t.referrer&&(r=this.parseURL(t.referrer)),e.referrerHostname=r.hostname||"",e.gclid=this.getSearchParam("gclid")||"",e.campaign=this.getSearchParam("utm_campaign")||"",e},o.getPreviousUTMCampaign=function(){var e=this.parseJSONSafe(this.getCookieValue("__io_pr_utm_campaign"))||{};return e.referrerHostname=e.referrerHostname||"",e.gclid=e.gclid||"",e.campaign=e.campaign||"",e},o.setPreviousUTMCampaign=function(e){if(e){var t="."+this.getMainDomain(),r={};null!==e.referrerHostname&&void 0!==e.referrerHostname&&""!==e.referrerHostname&&(r.referrerHostname=e.referrerHostname),null!==e.gclid&&void 0!==e.gclid&&""!==e.gclid&&(r.gclid=e.gclid),null!==e.campaign&&void 0!==e.campaign&&""!==e.campaign&&(r.campaign=e.campaign),this.setCookie("__io_pr_utm_campaign",JSON.stringify(r),null,"/",t)}},o.getCampaignResetStatus=function(){var e=this.getMainDomain();if(t.referrer&&-1===t.referrer.indexOf(e)){var r=this.getUTMCampaign(),o=this.getPreviousUTMCampaign();if(r.referrerHostname!==o.referrerHostname||r.gclid!==o.gclid||r.campaign!==o.campaign)return this.setPreviousUTMCampaign(r),!0}return!1},o.getSessionId=function(){var e=this.getCookieValue("__io_session_id"),t=new Date((new Date).getTime()+18e5).toUTCString(),r="."+this.getMainDomain();new Date((new Date).getTime()+18e5).getDate()>(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<s.length;n++)s[n].key===i&&(s[n].name=r,s[n].data=o,a=!0);a||s.push({name:r,data:o,key:i}),e.localStorage.setItem(this.storageKey,JSON.stringify(s))}},o.insert=function(r,o,i){if(t.getStorageStatusLocal()){var n=this._getQueue();n.push({name:r,data:o,key:i||void 0}),e.localStorage.setItem(this.storageKey,JSON.stringify(n))}},o.clearBySending=function(){if(t.getStorageStatusLocal()){var r,o=this._getQueue();if(o)for(e.localStorage.removeItem(this.storageKey),r=0;r<o.length;r++)o[r].name&&o[r].data&&t.deferMetricToSendInBatch(o[r].name,o[r].data)}};var i={};return(i=o).init=function(){this.clearBySending()},i}(window,e.helpers,e.defaults),void 0===e)e={};if(e.eventAPI=function(t,r,o,i){var n={mergeIdenticalCartItems:function(e){var r,o,i=[],n={};for(o=0;o<e.length;o++)r=String(e[o].product_id)+String(e[o].coins_int||e[o].price),n.hasOwnProperty(r)?n[r].count=t.parseInt(n[r].count,10)+t.parseInt(e[o].count,10):n[r]=e[o];for(var a in n)n.hasOwnProperty(a)&&i.push(n[a]);return i},saveBasketItems:function(e,r){if(o.getStorageStatusLocal()){var i=o.parseJSONSafe(t.localStorage.getItem("__io_add_to_busket"))||{};i[e]=t.parseInt(r,10)+(i[e]||0),t.localStorage.setItem("__io_add_to_busket",JSON.stringify(i))}},getAvailableBasketItemsCount:function(e,r){if(!o.getStorageStatusLocal())return n;var i=o.parseJSONSafe(t.localStorage.getItem("__io_add_to_busket"))||{},n=t.parseInt(r,10)-(i[e]||0);return n<=0?0:n},getTryOrderSendCount:function(e,r){if(!o.getStorageStatusLocal())return r;var i=o.parseJSONSafe(t.localStorage.getItem("__io_order_try"))||{},n=i[e]||0;if(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;n<i.length;n++)c[n]&&(s.slices[c[n]]=i[n]);break;case"price":s.slices.coins_int=i;break;case"event":s.slices.event=i,s.name=u[i]||i;break;case"product_id":s.slices.product_id=i,s.slices.post_uid=i;break;case"order_id":s.slices.order_id=i,s.slices.label=i;break;case"error_field":s.slices.error=""+(i.name||i);break;case"search_query":s.slices.search_queries=i;break;case"search_results":s.slices.time_int=i;break;case"user_visit":s.slices.user_email=i;break;default:if(s.slices.hasOwnProperty(r))continue;s.slices[r]=i}}if(e.basket&&(e.cart=e.basket),e.cart)for(e.cart=this.mergeIdenticalCartItems(e.cart),s.slices.cart="",n=0;n<e.cart.length;n++)e.cart[n].event=e.event,this.parseAndSendEventAsMetric(e.cart[n],s.slices);else if(e.errors)for(s.slices.errors="",n=0;n<e.errors.length;n++)this.parseAndSendEventAsMetric(e.errors[n],s.slices);else"search"===e.event&&(e.search_results?this.parseAndSendEventAsMetric({event:"search_items"},s.slices):this.parseAndSendEventAsMetric({event:"search_null_items"},s.slices)),"add_to_basket"===s.name&&this.saveBasketItems(o.hashFnv32a(s.slices.product_id+s.slices.coins_int),s.repeatCount),("try_order_send"!==s.name||(this.forceAddToBasket(s),s.repeatCount))&&("basket_send"!==s.name||this.saveBusketSendAction(o.hashFnv32a(s.slices.order_id+s.slices.product_id+s.slices.coins_int)))&&(this.addDefaultSlices(s.slices),o.sendMetric(s.name,s.slices,s.repeatCount))},_io_moon_utm:function(e){var t=this._io_moon_get_referrer(),r=this._io_moon_get_new_utm(),o=this._io_moon_get_old_utm(),i=o.source;return r=this._io_moon_set_source(r,i,t),o.source?"direct"==t&&"google"!=r.source&&"cpc"!=r.medium?(this._io_moon_check_visit_expire()||this._io_moon_reset_utm(o),this._io_moon_set_visit_expire(),o):this._io_moon_same_host()?(this._io_moon_check_visit_expire()||this._io_moon_reset_utm(o),this._io_moon_set_visit_expire(),o):o.io_source!=r.io_source||o.io_utm!=r.io_utm||o.source!=r.source||o.medium!=r.medium||o.campaign!=r.campaign||o.term!=r.term||o.content!=r.content?(this._io_moon_set_visit_expire(),this._io_moon_reset_utm(r),r):(this._io_moon_check_visit_expire()||this._io_moon_reset_utm(o),this._io_moon_set_visit_expire(),o):(this._io_moon_set_visit_expire(),this._io_moon_reset_utm(r),r)},_io_moon_setCookie:function(e,t,r,i,n,a){n||(n=this._io_moon_calc_domain_for_all_subdomains()),o.setCookie(e,t,r,i,n,a)},_io_moon_calc_domain_for_all_subdomains:function(){return"."+(e.defaults.projectMainDomain?e.defaults.projectMainDomain:location.hostname.replace(/^www\./,""))},_io_moon_get_referrer:function(){return function(){var e=r.referrer;if(!e)return"direct";var n=e.indexOf(location.hostname)>0&&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/60<e},_io_moon_get_old_utm:function(){var e={},t=o.getCookieValue("__io_moon_utm_prom1").split("}*{");if(t.length>0)for(var r=0;r<t.length;r++){var i=t[r].split("}:{");e[i[0]]=i[1]}var n={};return n.io_source=void 0!==e.io_source?e.io_source:"",n.io_utm=void 0!==e.io_utm?e.io_utm:"",n.source=void 0!==e.source?e.source:"",n.medium=void 0!==e.medium?e.medium:"",n.campaign=void 0!==e.campaign?e.campaign:"",n.term=void 0!==e.term?e.term:"",n.content=void 0!==e.content?e.content:"",n},_io_moon_get_param_from_query:function(e){return o.decodeURIrecursively(o.getSearchParam(e))||""},_io_moon_get_new_utm:function(){var e={};e.io_source=this._io_moon_get_param_from_query("io_source")||"",e.io_utm=this._io_moon_get_param_from_query("io_utm")||"",e.source=this._io_moon_get_param_from_query("utm_source")||this._io_moon_get_param_from_query("source")||"",e.medium=this._io_moon_get_param_from_query("utm_medium")||this._io_moon_get_param_from_query("medium")||"",e.campaign=this._io_moon_get_param_from_query("utm_campaign")||this._io_moon_get_param_from_query("campaign")||"",e.term=this._io_moon_get_param_from_query("utm_term")||this._io_moon_get_param_from_query("term")||"",e.content=this._io_moon_get_param_from_query("utm_content")||this._io_moon_get_param_from_query("content")||"";var t=o.getSearchParam("gclid");return!e.io_source&&t.length>0&&(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;t<r.length;t++)r[t].name&&r[t].data&&e.helpers.sendMetric(r[t].name,r[t].data)},e.helpers.sendBeakonRequestSafe=function(t,r,o){if(window.navigator instanceof window.Object&&"function"==typeof window.navigator.sendBeacon)window.navigator.sendBeacon(t);else if(this.getStorageStatusLocal())e.nextPageMetricQueueService.insert(r,o);else if(window.XMLHttpRequest instanceof window.Object)this.getRemoteContent(t);else{var i=document.createElement("img");i.width=1,i.height=1,i.src=t}},e.helpers.sendMetricPreventCancellation=function(t,r,o,i){var n="https://"+e.defaults.trackingHost+this.getMetricParamString(t,r)+"&s="+e.defaults.projectSignature+(o?"&_v="+o:"")+(i?"&__io="+this.getUserId():"")+"&"+Date.now();this.sendBeakonRequestSafe(n,t,r)},e.helpers.setPreviousPromCustomerId=function(e){if(this.getStorageStatusSession()){var t=this.parseJSONSafe(window.sessionStorage.getItem("__io_nav_prom_customer_id"))||{};window.sessionStorage.setItem("__io_nav_prom_customer_id",JSON.stringify({current:e,previous:t.current}))}},e.helpers.getPreviousPromCustomerId=function(){if(this.getStorageStatusSession()){var e=this.parseJSONSafe(window.sessionStorage.getItem("__io_nav_prom_customer_id"))||{};return e.previous?e.previous:void 0}},e.helpers.resetPromCustomerIdFromSessionStorage=function(){this.getStorageStatusSession()&&window.sessionStorage.setItem("__io_nav_prom_customer_id","")};for(var t=["tiu.ru","prom.ua","deal.by","satu.kz","bigl.ua"],r=0;r<t.length;r++)-1!==window.location.hostname.indexOf(t[r])&&(e.defaults.projectMainDomain=t[r]);function o(t){if(e.helpers.getStorageStatusSession()){var r,o="__io_landing_uri_"+(t?t.prom_customer_id:"");try{r=window.sessionStorage.getItem(o)}catch(e){}if(!r)try{window.sessionStorage.setItem(o,e.helpers.parseURL(document.location.href).pathname)}catch(e){}return r||window.location.pathname}}function i(t,r){var i={event:r};for(var n in t)"event"!=n&&(i[n]=t[n]);if("company_site"!=t.prom_or_client_site&&(i.source=t.owner.toLowerCase(),i.medium="",i.content="",i.campaign=""),"visits_merchant"===r){var a="__io_mv."+i.prom_customer_id;i.visitor_type=e.helpers.getCookieValue(a)?"return":"new",e.helpers.setCookie(a,1,!1,"/")}i.landing_url=o(t),window._io_data.push(i)}function n(e){var t={event:"categories"},r=[];for(var o in e.categories)r.push(o);r.sort(function(e,t){return e-t});for(o=0;o<r.length;o++){var i=r[o];if(void 0!==e.categories[i].id&&void 0!==e.categories[i].name){a=e.categories[i].id;var n=e.categories[i].name}else{var a=i;n=e.categories[a]}t["l"+(o+1)+"_id"]=a,t["l"+(o+1)+"_title"]=n,e["cat_l"+(o+1)+"_id"]=a}"pageviews_product"==e.event&&"full"==e.view_type&&window._io_data.push(t),e.categories=""}e.eventAPI.transformEventHook=function(t){if(t.prom_customer_id&&"pageviews"==t.event?e.helpers.setPreviousPromCustomerId(t.prom_customer_id):t.prom_customer_id||"pageviews"!=t.event||e.helpers.resetPromCustomerIdFromSessionStorage(),"visits_pageviews"!=t.event){if(!(t.event.indexOf("_merchant")>0)){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 d=e.helpers.getCookieValue(l)?"set":"no"}catch(e){d="error"}if(window._io_data.push({event:"debug_visits",client_id:t.client_id,user_agent:navigator.userAgent,cookie:l,cookie_set:d,uid:e.helpers.getCookieValue("__io")}),!e.helpers.getCookieValue(l)){var m={event:"visits"};for(var _ in t)"event"!=_&&(m[_]=t[_]);window._io_data.push(m);var g=new Date((new Date).getTime()+18e5).toUTCString(),p=e.eventAPI._io_moon_calc_domain_for_all_subdomains();e.helpers.setCookie(l,1,g,null,p)}}if("product_click"==t.event||"add_to_basket"==t.event){var h=e.helpers.cloneObjectShallow(t);t.event=null,e.eventAPI.addDefaultSlices(h),e.helpers.sendMetricPreventCancellation(h.event,h)}}else{for(var _=0;_<t.cart.length;_++){var f={};for(var v in t)"cart"!=v&&"categories"!=v&&(f[v]=t[v]);for(var v in t.cart[_])"price"!=v?"count"!=v?f[v]=t.cart[_][v]:f.val=t.cart[_].count:f.coins_int=t.cart[_].price;f.categories&&n(f),f.event=f.event+"_product";try{f.is_prosale="1"==window.sessionStorage.getItem("is_p"+f.product_id)?"yes":"no"}catch(e){f.is_prosale="no"}window._io_data.push(f),i(f,f.event+"_merchant")}t.event=null}}}else t.event=null},setTimeout(function e(){var t={};window.cached_slices_state&&(t=window.cached_slices_state),t.event="time",document.hasFocus()&&window._io_data.push(t),setTimeout(e,3e4)},3e4),e.helpers.getReferrer=function(t){var r=e.eventAPI._io_moon_calc_domain_for_all_subdomains(),o=function(){var o=t||document.referrer;o||(o=e.helpers.getCookieValue("__io_r3"));var i=["liqpay","privatbank","PayParts","portmone","paymaster"];for(var n in i)if(o.indexOf(i[n])>-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){}}}()}]);