﻿(window.webpackJsonp=window.webpackJsonp||[]).push([["414b96e9bb7dc3fe0b6cfcdf03621dec"],{"+r8h":function(t,e,r){"use strict";r.r(e),r.d(e,"logMarketEventNow",(function(){return c})),r.d(e,"logMarketEvent",(function(){return u})),r.d(e,"flushMarketEvents",(function(){return d}));var n=r("Fkq0"),i=r("z9Td"),o=r("tGJf"),a=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n};function s(t,e,r,i){var s=window.MarketAnalyticsManager&&window.MarketAnalyticsManager.getHash();if(s){var c=r.slice(0,10),u=0,_=o.vkLocalStorage.getItem("market_event_count");_&&(u=parseInt(_)),u>=20&&(d(t),u=0);var m=Date.now(),l="market_event_item_"+Math.floor(1e5*Math.random())+"_"+m+"_"+e;c.unshift(m),c.unshift(e),c.push(s),o.vkLocalStorage.setItem(l,JSON.stringify(c)),o.vkLocalStorage.setItem("market_event_count",String(++u)),i&&d(t),n.marketDebug.apply(void 0,a(["debug","event",e],r))}else Object(n.marketDebug)("warn","events","Hash error")}function c(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];s(t,e,r,!0)}function u(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];s(t,e,r,!1)}function d(t){for(var e=[],r=0;r<o.vkLocalStorage.length();++r){var a=o.vkLocalStorage.key(r);a&&0===a.lastIndexOf("market_event_item_")&&e.push(a)}if(!(e.length<=0)){o.vkLocalStorage.setItem("market_event_count",String(0));var s=[],c="";e.forEach((function(t){var e=o.vkLocalStorage.getItem(t);if(o.vkLocalStorage.removeItem(t),e)try{var r=JSON.parse(e);c?r.pop():c=r.pop(),s.push(Object.values(r))}catch(t){Object(n.marketDebug)("error","event error","Unable to assemble events pack",t)}})),!c||s.length<1||(!window.MarketAnalyticsManager||window.MarketAnalyticsManager.isEnabled()?window.ajax.post(t===i.PLATFORM_MVK?"market.php":"al_market.php",{act:"log_events",hash:c,events:s},{onDone:function(){Object(n.marketDebug)("warn","events sent",s.length+" events sent")}}):Object(n.marketDebug)("error","event error","analytics disabled"))}}},Fkq0:function(t,e,r){"use strict";r.r(e),r.d(e,"marketDebug",(function(){return a})),r.d(e,"marketItemIdToObject",(function(){return s})),r.d(e,"albumLinkToObject",(function(){return c})),r.d(e,"parseBookmarkedProductClass",(function(){return u})),r.d(e,"extractURLQueryParameter",(function(){return d})),r.d(e,"isElementVisible",(function(){return _})),r.d(e,"isElementInViewport",(function(){return m}));var n=r("ZD4m"),i=r("W9Tc"),o=r("tGJf");function a(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];(Object(i.partConfigEnabled)("extended_client_logging")||o.vkLocalStorage.getItem("market_extended_client_logging"))&&("error"===t?console.error("[market "+e+"]: ",r):"warn"===t?console.warn("[market "+e+"]: ",r):"info"===t?console.info("[market "+e+"]: ",r):console.debug("[market "+e+"]: ",r))}function s(t,e){void 0===e&&(e="market");var r=new RegExp(e+"(-?[0-9]+)_([0-9]+)"),n=t.match(r);if(!n||n.length<3)return null;var i=n[1],o=n[2];return{id:i+"_"+o,ownerId:parseInt(i),itemId:parseInt(o)}}function c(t){var e=t.match(/market(\-?[0-9]+).+section=album_([0-9]+)/);if(!e||e.length<3)return null;var r=e[1],n=e[2];return{id:r+"_"+n,ownerId:parseInt(r),itemId:parseInt(n)}}function u(t){var e=t.match(/_([0-9]+)_(\-?[0-9]+)_4/);if(!e||e.length<3)return null;var r=e[1],n=e[2];return{id:n+"_"+r,ownerId:parseInt(n),itemId:parseInt(r)}}function d(t,e){var r=new RegExp("[?&]+"+e+"=([a-zA-Z0-9_]+)"),n=t.match(r);return!n||n.length<2?null:n[1]?String(n[1]):null}function _(t){var e;return"none"!==(null===(e=t.style)||void 0===e?void 0:e.display)}function m(t,e,r,i){void 0===e&&(e=50),void 0===r&&(r=null);var o=r?r.left:0,a=r?r.top:0,s=Object(n.getViewportSize)(),c=Object(n.getElementOffset)(t),u=Object(n.getElementSize)(t),d=u.width*e/100,_=u.height*e/100;if(i){if(i.width>s.width)return!1;if(i.height>s.height)return!1;s=i}return!(c.left+u.width<o+d)&&(!(c.left+d>s.width)&&(!(c.top+u.height<a+_)&&!(c.top+_>s.height)))}},HjP7:function(t,e,r){"use strict";r.r(e),r.d(e,"observersRegister",(function(){return i})),r.d(e,"observersStop",(function(){return o})),r.d(e,"observersRescan",(function(){return a}));var n={};function i(t){t.getObserverId()in n&&(n[t.getObserverId()].stop(),delete n[t.getObserverId()]),n[t.getObserverId()]=t}function o(){for(var t in n){if(n[t])n[t].stop()}}function a(){for(var t in n){if(n[t])n[t].scan()}}},Ky2T:function(t,e,r){"use strict";r.r(e),r.d(e,"MarketAnalyticsObserver",(function(){return m}));var n,i=r("Fkq0"),o=function(){function t(){}return t.prototype.connectMutator=function(e){if(this.mutationObserver)throw new Error("{Observer #"+e.getObserverId()+"} MutationObserver already connected to observer");var r=document.querySelector(e.getContainerQuery());r instanceof HTMLElement&&(this.mutationObserver=new MutationObserver((function(r){r.forEach((function(r){if(r.addedNodes)for(var n=0;n<r.addedNodes.length;n++){var i=r.addedNodes[n];if(i instanceof HTMLElement){var o=t.resolveNodes(i,e).filter((function(t){return!!t}));o&&(o.forEach((function(t){e.add(t)})),e.scan())}}}))})),this.mutationObserver.observe(r,{childList:!0,subtree:!0,attributes:!1,characterData:!1}))},t.prototype.disconnectMutator=function(t){t.isRunning()&&this.mutationObserver&&this.mutationObserver.disconnect()},t.resolveNodes=function(t,e){var r=[];if(e.getSelectorQuery(!1).split(",").forEach((function(e){if(t.matches(e))return r.push(t),!1})),r.length<1){var n=t.querySelectorAll(e.getSelectorQuery(!1));r=Array.from(n)}return r},t}(),a=r("VbSP"),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.filterItem=function(t){return!t.isTracked&&(t.isReached&&!this.isItemReached(t.node)?(this.track(t),this.persist(t),!1):(this.isItemReached(t.node)&&this.view(t),this.persist(t),!0))},e.prototype.view=function(t){var e=this;t.isTracked||(t.isReached=!0,t.viewStart||(t.viewStart=Date.now()),t.viewTimer&&(clearTimeout(t.viewTimer),t.viewTimer=0),t.viewTimer=window.setTimeout((function(){var r=t.node;!e.isItemReached(r)||function(t){var e=t.viewStart;return Date.now()-e>3e4}(t)?e.track(t):e.view(t)}),3e3))},e.prototype.track=function(e){e.viewTimer&&(clearTimeout(e.viewTimer),e.viewTimer=0),t.prototype.track.call(this,e)},e}(a.NodeObserver),u=r("ZD4m"),d=r("z9Td"),_=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=function(t){function e(r,n,i,a,s,c){void 0===i&&(i=""),void 0===a&&(a=!1),void 0===s&&(s=!1),void 0===c&&(c="");var u=t.call(this,r,n,i,a,c)||this;return u.observerId=r,u.itemSelector=n,u.container=i,u.isUnifyNodes=a,u.isDynamicNodes=s,u.gap=null,s&&u.addMutators([new o]),u.gap=e.getViewportGap(u.getPlatform()),u}return _(e,t),e.prototype.isReached=function(t){if(!Object(i.isElementVisible)(t))return!1;var e,r=this.gap,n=t.closest("[data-stat-viewport]");if(n){var o=n.getBoundingClientRect();r={top:o.top,left:o.left},e={width:o.left+o.width,height:o.top+o.height}}return Object(i.isElementInViewport)(t,45,r,e)},e.create=function(t){return new e(t.observerId,t.itemSelector,null==t?void 0:t.container,null==t?void 0:t.isUnifyNodes,null==t?void 0:t.isDynamicContent,null==t?void 0:t.platform)},e.getViewportGap=function(t){void 0===t&&(t="");var e={left:0,top:0},r="";return r=t===d.PLATFORM_MVK?"#vk_head":"#page_header_wrap,#market_search_input",document.querySelectorAll(r).forEach((function(t){var r=Object(u.getElementSize)(t);e.top=e.top+r.height})),e},e}(c)},RJa5:function(t,e,r){"use strict";var n,i,o,a;r.r(e),r.d(e,"AnalyticsArea",(function(){return n})),r.d(e,"AnalyticsEventTable",(function(){return i})),r.d(e,"ECommGoodsEvent",(function(){return o})),r.d(e,"ECommOrdersEvent",(function(){return a})),function(t){t.MARKET="market",t.GROUP="group",t.USER_PROFILE="user_profile",t.BOOKMARKS="bookmarks"}(n||(n={})),function(t){t.GOODS="ecomm_goods",t.ORDERS="ecomm_orders"}(i||(i={})),function(t){t.TRANSITION_TO_ITEM="transition_to_item",t.TRANSITION_TO_ALBUM="transition_to_album",t.SWITCH_ITEM_VARIANT_1="switch_item_variant_1",t.SWITCH_ITEM_VARIANT_2="switch_item_variant_2",t.TRANSITION_TO_ITEM_LEFT="transition_to_item_left",t.TRANSITION_TO_ITEM_RIGHT="transition_to_item_right",t.VIEW_ITEM="view_item",t.VIEW_ALBUM="view_album",t.CLOSE_ITEM="close_item",t.TRANSITION_TO_OWNER="transition_to_owner",t.VIEW_ITEM_MEDIA="view_item_media",t.ADD_ITEM_TO_CART="add_item_to_cart",t.EXPAND_ITEM_DESCRIPTION="expand_item_description",t.ADD_ITEM_TO_BOOKMARKS="add_item_to_bookmarks",t.REMOVE_ITEM_FROM_BOOKMARKS="remove_item_from_bookmarks",t.EXPAND_COMMENTS="expand_comments",t.COMMENT="comment",t.ADD_TO_CART_HS="add_to_cart_hs",t.OPEN_WIKI="open_wiki",t.SEND_MESSAGE_TO_OWNER="send_message_to_owner",t.OPEN_CHAT_WITH_OWNER="open_chat_with_owner",t.LIKE_ITEM="like_item",t.UNLIKE_ITEM="unlike_item",t.SHARE_ITEM="share_item",t.CTA_LINK="cta_link",t.CREATE_ITEM="create_item",t.CREATE_ALBUM="create_album",t.EDIT_ITEM="edit_item",t.EDIT_ALBUM="edit_album",t.DELETE_ITEM="delete_item",t.DELETE_ALBUM="delete_album",t.GROUP_ITEMS="group_items",t.ADD_PROPERTY="add_property",t.ADD_PROPERTY_VALUE="add_property_value",t.DELETE_PROPERTY="delete_property",t.DELETE_PROPERTY_VALUE="delete_property_value",t.TRANSITION_TO_EDIT_PROPERTIES="transition_to_edit_properties",t.TRANSITION_TO_EDIT_ALBUMS="transition_to_edit_albums",t.TRANSITION_TO_ADD_ALBUM="transition_to_add_album",t.TRANSITION_TO_ADD_ITEM="transition_to_add_item",t.TRANSITION_TO_EDIT_ITEM="transition_to_edit_item",t.TRANSITION_TO_DELETE_ALBUM="transition_to_delete_album",t.TRANSITION_TO_GROUP_ITEMS="transition_to_group_items"}(o||(o={})),function(t){t.EVENT_MAKE_ORDER="make_order",t.CANCEL_ORDER="cancel_order",t.EXPAND_ORDER_INFO="expand_order_info",t.TRANSITION_TO_ORDERS="transition_to_orders",t.OPEN_MARKET_GROUP_ORDERS="open_market_group_orders",t.OPEN_MARKET_GROUP_ITEMS="open_market_group_items",t.OPEN_MARKET_GROUP_SETTINGS="open_market_group_settings",t.OPEN_MARKET_GROUP_DELIVERY="open_market_group_delivery",t.TRANSITION_TO_MARKET_SUPPORT="transition_to_market_support",t.OPEN_ORDER_INFO="open_order_info",t.ADD_TRACK_CODE="add_track_code",t.ADD_INTERNAL_COMMENT="add_internal_comment",t.CHANGE_ORDER_STATUS="change_order_status",t.OPEN_CHAT_WITH_CUSTOMER="open_chat_with_customer",t.SEND_MESSAGE_TO_CUSTOMER="send_message_to_customer",t.OPEN_ORDER_HISTORY="open_order_history",t.FILTER_ORDERS_BY_STATUS="filter_orders_by_status",t.EXPORT_ORDERS_DATA="export_orders_data"}(a||(a={}))},VbSP:function(t,e,r){"use strict";r.r(e),r.d(e,"ATTR_STAT_ITEM",(function(){return o})),r.d(e,"ATTR_STAT_CONTAINER",(function(){return a})),r.d(e,"ATTR_STAT_ID",(function(){return s})),r.d(e,"SCROLL_DEBOUNCE_TIMEOUT",(function(){return c})),r.d(e,"NodeObserver",(function(){return u})),r.d(e,"getStatIdx",(function(){return d}));var n=r("BJj/"),i=r("HjP7"),o="data-stat-item",a="data-stat-container",s="data-stat-id",c=20,u=function(){function t(t,e,r,n,o){if(void 0===r&&(r=""),void 0===n&&(n=!1),void 0===o&&(o=""),this.observerId=t,this.itemSelector=e,this.container=r,this.isUnifyNodes=n,this.platform=o,this.trackingItems={},this._debounceTimeout=c,this.uniqueNodeCounter=0,this.nodes=[],this.isWatching=!1,this.mutatorList=[],Object(i.observersRegister)(this),!this.itemSelector.types&&!this.itemSelector.selectors)throw new Error("Empty itemSelector definition");this.container||(this.container=this.observerId)}return Object.defineProperty(t.prototype,"debounceTimeout",{set:function(t){this._debounceTimeout=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemReachedCallback",{set:function(t){this._itemReachedCallback=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preCheckReachedCallback",{set:function(t){this._preCheckReachedCallback=t},enumerable:!0,configurable:!0}),t.prototype.getObserverId=function(){return this.observerId},t.prototype.getItemSelector=function(){return this.itemSelector},t.prototype.getPlatform=function(){return this.platform},t.prototype.add=function(t){this.nodes.push(t)},t.prototype.getTrackingItems=function(){return this.trackingItems},t.prototype.addMutators=function(t){this.mutatorList=this.mutatorList.concat(t)},t.prototype.isRunning=function(){return this.isWatching},t.prototype.watch=function(){this.isWatching||(this.update(),this.startObserving(),this.connectMutators(),this.isWatching=!0)},t.prototype.stop=function(){this.isWatching&&(this.trackUntracked(),this.stopObserving(),this.disconnectMutators(),this.isWatching=!1)},t.prototype.scan=function(){this.viewportScanner()},t.prototype.trackUntracked=function(){var t=this.getTrackingItems();for(var e in t)if(t[e]){var r=t[e];!r.isTracked&&r.isReached&&(this.track(r),this.persist(r))}},t.prototype.connectMutators=function(){var t=this;this.mutatorList.forEach((function(e){e.connectMutator(t)}))},t.prototype.disconnectMutators=function(){var t=this;this.mutatorList.forEach((function(e){e.disconnectMutator(t)}))},t.prototype.getContainerQuery=function(){var t=this.container.substr(0,1);if("#"===t||"."===t)return this.container;var e=this.container?this.container:this.observerId;return"["+a+'="'+e+'"]'},t.prototype.getSelectorQuery=function(t){void 0===t&&(t=!0);var e=this.getContainerQuery(),r=[];return this.itemSelector.selectors?r=this.itemSelector.selectors.split(",").map((function(r){return t?e+" "+r:r})):this.itemSelector.types&&(r=this.itemSelector.types.split(",").map((function(r){return t?e+" ["+o+'^="'+r+'|"]':"["+o+'^="'+r+'|"]'}))),r.join(",")},t.prototype.update=function(){var t=document.querySelectorAll(this.getSelectorQuery());this.nodes=Array.from(t)},t.parseStatAttribute=function(t){var e=t.getAttribute(o),r=null==e?void 0:e.split("|");return r?{type:r[0],ownerId:parseInt(r[1]),itemId:parseInt(r[2])}:{type:"",ownerId:0,itemId:0}},t.prototype.getNodeKey=function(t,e){var r=String(e.itemId);this.isUnifyNodes&&(this.unifyNode(t),r=r+"_"+t.getAttribute(s));return this.observerId+"_"+r},t.prototype.isItemReached=function(t){return!(void 0!==this._preCheckReachedCallback&&!this._preCheckReachedCallback(t))&&this.isReached(t)},t.prototype.filterItem=function(t){return!t.isTracked&&!t.isReached&&(this.isItemReached(t.node)?(this.track(t),this.persist(t),!1):(this.persist(t),!0))},t.prototype.track=function(t){t.isTracked||(t.viewEnd=Date.now(),t.duration=t.viewEnd-t.viewStart,this._itemReachedCallback(t),t.isReached=!1,t.isTracked=!0)},t.prototype.persist=function(t){this.trackingItems[t.key]=t},t.prototype.getTrackingItem=function(e){var r=t.parseStatAttribute(e);if(!r.type||!r.itemId)return null;var n=this.getNodeKey(e,r);return n?n in this.trackingItems?this.trackingItems[n]:this.createTrackingItem(e,r):null},t.prototype.createTrackingItem=function(t,e){var r=this.getNodeKey(t,e);return this.trackingItems[r]={key:r,type:e.type,observerId:this.observerId,ownerId:e.ownerId,itemId:e.itemId,isTracked:!1,isReached:!1,viewStart:0,viewEnd:0,duration:0,node:t,viewTimer:0,data:{},platform:this.getPlatform()},this.trackingItems[r]},t.prototype.getNextUnifyId=function(){return++this.uniqueNodeCounter},t.prototype.unifyNode=function(t){t.getAttribute(s)||t.setAttribute(s,String(this.getNextUnifyId()))},t.prototype.startObserving=function(){var t=this;this.update(),this.viewportScanner=Object(n.debounce)((function(){t.nodes=t.nodes.filter((function(e){var r=t.getTrackingItem(e);return!!r&&t.filterItem(r)}))}),this._debounceTimeout),this.scrollEventListener=function(){return t.scan()},document.addEventListener("scroll",this.scrollEventListener,{passive:!0}),this.scan()},t.prototype.stopObserving=function(){document.removeEventListener("scroll",this.scrollEventListener),this.nodes=[],this.viewportScanner=function(){},this.scrollEventListener=function(){}},t}();function d(t){if(t.dataset.statIdx)return parseInt(t.dataset.statIdx||"")}},ZD4m:function(t,e,r){"use strict";function n(t){var e=t.getBoundingClientRect();return{left:e.left,top:e.top}}function i(){var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function o(t){var e=t.getBoundingClientRect(),r=e.width,n=e.height;return r&&n?{width:r,height:n}:{width:t.offsetWidth,height:t.offsetHeight}}r.r(e),r.d(e,"getElementOffset",(function(){return n})),r.d(e,"getViewportSize",(function(){return i})),r.d(e,"getElementSize",(function(){return o})),r.d(e,"getJsonDataValue",(function(){return a}));var a=function(t,e){var r=t.getAttribute(e);if(r)try{return JSON.parse(r)}catch(t){return}}},h8oe:function(t,e,r){"use strict";r.r(e),r.d(e,"rescan",(function(){return f})),r.d(e,"trackMarketEvent",(function(){return p})),r.d(e,"trackMarketArea",(function(){return v}));var n=r("+r8h"),i=r("Ky2T"),o=r("HjP7"),a=r("z9Td"),s=r("Fkq0"),c=r("RJa5"),u=[],d=!1;function _(t,e){void 0===e&&(e=0);var r=m(e);return!!r&&t.includes(r.event)}function m(t){return void 0===t&&(t=0),u.length>t?u[u.length-(1+t)]:null}function l(t){d||(window.addEventListener("beforeunload",(function(){Object(o.observersStop)(),Object(n.flushMarketEvents)(t)})),d=!0)}function f(){Object(o.observersRescan)()}function p(t){if(function(t){var e=m();if(e){if(t===c.ECommGoodsEvent.CLOSE_ITEM&&e.event===c.ECommGoodsEvent.CLOSE_ITEM)return!1;if(t===c.ECommGoodsEvent.TRANSITION_TO_ITEM){if(_([c.ECommGoodsEvent.TRANSITION_TO_ITEM_LEFT,c.ECommGoodsEvent.TRANSITION_TO_ITEM_RIGHT]))return!1;if(_([c.ECommGoodsEvent.SWITCH_ITEM_VARIANT_1,c.ECommGoodsEvent.SWITCH_ITEM_VARIANT_2]))return!1}}return!0}(t.event))if(t.event||t.table){t.table||(Object.values(c.ECommGoodsEvent).includes(t.event)?t.table=c.AnalyticsEventTable.GOODS:Object.values(c.ECommOrdersEvent).includes(t.event)?t.table=c.AnalyticsEventTable.ORDERS:Object(s.marketDebug)("error","table not specified")),t.screen=t.screen?t.screen:window.MarketAnalyticsManager&&window.MarketAnalyticsManager.getScreen(),t.platform=t.platform?t.platform:"web",l(t.platform);var e=String(t.event),r=t.table+":"+e;t.instant?Object(n.logMarketEventNow)(t.platform,r,t.ownerId,t.itemId,t.screen,t.albumId,t.time,t.duration):Object(n.logMarketEvent)(t.platform,r,t.ownerId,t.itemId,t.screen,t.albumId,t.time,t.duration),u.push(t),u.length>3&&u.shift()}else Object(s.marketDebug)("error","event and table not specified",t)}function v(t,e){var r;switch(void 0===e&&(e=""),l(e),Object(n.flushMarketEvents)(e),Object(s.marketDebug)("warn","analytics: start tracking area",t),t){case c.AnalyticsArea.MARKET:r=function(t){var e=0;void 0!==window.cur.aid&&(e=window.cur.aid),p({event:"market_item"===t.type?c.ECommGoodsEvent.VIEW_ITEM:c.ECommGoodsEvent.VIEW_ALBUM,ownerId:t.ownerId,itemId:"market_item"===t.type?t.itemId:0,albumId:"market_item"===t.type?e:t.itemId,duration:t.duration,time:t.viewStart,platform:t.platform})};var o=i.MarketAnalyticsObserver.create({observerId:"market_products",itemSelector:{types:"market_item"},isUnifyNodes:!0,isDynamicContent:!0,platform:e});o.itemReachedCallback=r;var u=i.MarketAnalyticsObserver.create({observerId:"market_albums",itemSelector:{types:"market_album"},isUnifyNodes:!0,isDynamicContent:!1,platform:e});u.itemReachedCallback=r,e!==a.PLATFORM_MVK&&(u.preCheckReachedCallback=function(t){var e,r=t.offsetTop,n=null===(e=t.parentNode)||void 0===e?void 0:e.parentNode;return n&&r<n.offsetHeight}),o.watch(),u.watch();break;case c.AnalyticsArea.GROUP:r=function(t){p({event:"market_item"===t.type?c.ECommGoodsEvent.VIEW_ITEM:c.ECommGoodsEvent.VIEW_ALBUM,ownerId:t.ownerId,itemId:"market_item"===t.type?t.itemId:0,albumId:"market_item"===t.type?0:t.itemId,duration:t.duration,time:t.viewStart,platform:t.platform})};var d=i.MarketAnalyticsObserver.create({observerId:"market_module",itemSelector:{types:"market_item"},isUnifyNodes:!0,platform:e});d.itemReachedCallback=r;var _=i.MarketAnalyticsObserver.create({observerId:"group_wall",itemSelector:{types:"market_item,market_album"},isUnifyNodes:!0,isDynamicContent:!0,platform:e});_.itemReachedCallback=r,d.watch(),_.watch();break;case c.AnalyticsArea.USER_PROFILE:var m=i.MarketAnalyticsObserver.create({observerId:"user_wall",itemSelector:{types:"market_item,market_album"},isUnifyNodes:!0,isDynamicContent:!0,platform:e});m.itemReachedCallback=function(t){p({event:"market_item"===t.type?c.ECommGoodsEvent.VIEW_ITEM:c.ECommGoodsEvent.VIEW_ALBUM,ownerId:t.ownerId,itemId:"market_item"===t.type?t.itemId:0,duration:t.duration,time:t.viewStart,albumId:"market_item"===t.type?0:t.itemId,platform:t.platform})},m.watch();break;case c.AnalyticsArea.BOOKMARKS:var f=i.MarketAnalyticsObserver.create({observerId:"bookmarks",itemSelector:{types:"market_item"},isUnifyNodes:!0,isDynamicContent:!0,platform:e});f.itemReachedCallback=function(t){p({table:c.AnalyticsEventTable.GOODS,event:c.ECommGoodsEvent.VIEW_ITEM,ownerId:t.ownerId,itemId:t.itemId,duration:t.duration,time:t.viewStart,albumId:0,platform:t.platform})},f.watch()}}},z9Td:function(t,e,r){"use strict";r.r(e),r.d(e,"PLATFORM_MVK",(function(){return n}));var n="mvk"}}]);try{stManager.done("cmodules/bundles/414b96e9bb7dc3fe0b6cfcdf03621dec.10c52165ebafda82f51b.js")}catch(t){}