/*! 2020-04-20 20:46:05 v8.14.0 */
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";!function(){var t,e=window;try{var r="function";t=typeof e.WebSocket===r&&typeof e.WebSocket.prototype.send===r}catch(t){}if(t){var o=e.goldlog||(e.goldlog={});if(o._aplus_cplugin_ws)return;o._aplus_cplugin_ws=!0;var a=n(1),s=a.create();s.run()}}()},function(t,e,n){"use strict";var r=window,o=n(2),a=n(3),s=n(13),i=n(16),u=n(6),c=n(8),l=n(17),f=n(18),h=n(20),p=n(21),g=n(22);t.exports=o.extend({wsHandler:"",lsCnaKey:"APLUS_CNA",timeoutToHttp:3e3,domain:"log.mmstat.com",retryTimesKey:"aplusx_retry_times",maxRetryTimesPerHour:3,retryTimes:0,pageLoadDateHour:"",getDateHour:function(){return l.getFormatDate()+(new Date).getHours()},getRandom:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},getRetryTimes:function(){var t=0,e=c.get(this.retryTimesKey);if(e){var n=e.split("-");2===n.length&&n[0]===this.getDateHour()&&(t=parseInt(n[1]))}return t},setRetryTimes:function(t){c.set(this.retryTimesKey,this.getDateHour()+"-"+t)},doSetRetryTimes:function(){this.retryTimes<this.maxRetryTimesPerHour?this.setRetryTimes(++this.retryTimes):this.retryTimes>=this.maxRetryTimesPerHour&&this.pageLoadDateHour!==this.getDateHour()&&(this.retryTimes=0,this.setRetryTimes(++this.retryTimes))},cheatCallback:function(t,e){c.set(t.toUpperCase(),e)},newSend:function(t,e,n,r){var o=this;i(t,function(e,n){"number"!=typeof n&&"boolean"!=typeof n||(t[e]=n+"")});var a=c.get("APLUS_SN"),s=c.get("APLUS_SY");try{a&&(t.aplus_sn=a),s&&(t.aplus_sy=s),t.ua=navigator.userAgent,t.lang=navigator.language}catch(t){}this.wsHandler.send({id:"id"+o.getRandom(1,1e8),startTime:(new Date).getTime(),type:e,msg:{postData:JSON.stringify(t),url:n},method:r})},getPvPostData:function(t){var e,n=t.is_single,r=t.where_to_sendlog_ut.aplusToUT.toutflag,o=t.where_to_sendpv.url,s="//log.mmstat.com/o.gif";if("toUT2"===r&&!n||"toUT"===r&&!n||"toUT2"!==r&&"toUT"!==r){s=t.where_to_sendpv.url,e=t.what_to_sendpv.pvdata;var i=o.match(/\/\w+.gif/),u=i?i[0]:"/v.gif",c=a.arr2param(e),l=c.indexOf("&aplus&")>-1?"&aplus&":"&aplus=&",f=c.split(l),h=a.param2obj(f[0]);return{postData:a.assign(h,{logkey:u,url:location.href,gokey:f[1].replace(/&aws=1/,"")}),mmurl:s}}},pv_callback:function(t){try{var e=this.getPvPostData(t);e&&this.newSend(e.postData,"pv",e.mmurl)}catch(t){g.catchException("pv_callback",t)}},getHjljPostData:function(t){var e=t.is_single,n={},r=t.where_to_sendlog_ut.aplusToUT.toutflag,o="";if("toUT2"===r&&!e||"toUT"===r&&!e)o=t.where_to_hjlj.url,n=t.what_to_hjlj.logdata,n.logkey=n.logkey||"";else{if("toUT2"===r||"toUT"===r)return;o=t.where_to_hjlj.url,n=t.what_to_hjlj.logdata,n.logkey=t.userdata?t.userdata.logkey:""}return n.url=location.href,n.gokey&&(n.gokey=n.gokey.replace(/&aws=1/,"")),{postData:n,mmurl:o}},hjlj_callback:function(t){try{var e=this.getHjljPostData(t);e&&this.newSend(e.postData,"goldlog",e.mmurl,t.method)}catch(t){g.catchException("hjlj_callback",t)}},getCnaData:function(){var t={params:[]},e=u.getLsCna(this.lsCnaKey),n=f.getCookie("cna");return t.cna=e||n,e&&!n&&t.params.push("lstag=1"),t},cnaCallback:function(t,e){var n=u.getLsCna(this.lsCnaKey),r=f.getCookie("cna");n===r&&n===e&&r===e||(u.setLsCna(this.lsCnaKey,l.getFormatDate(),e),f.setCookie(t,e,{SameSite:"none"}))},watchWSStatus:function(t){var e=this;this.wsHandler.subscribe("APLUS_WS_OPEN",function(){t===e.maxRetryTimesPerHour&&(e.retryTimes=0,e.setRetryTimes(e.retryTimes))}),this.wsHandler.subscribe("APLUS_WS_ERROR",function(){e.doSetRetryTimes(),e.msgQueueToHttpRequest()}),this.wsHandler.subscribe("APLUS_WS_EXCEPTION",function(){e.doSetRetryTimes(),e.msgQueueToHttpRequest()}),this.wsHandler.subscribe("APLUS_WS_CLOSE",function(){e.msgQueueToHttpRequest()})},startWebSocket:function(){var t=this,e=this.getCnaData();this.wsHandler=p.create({cna:e.cna,params:e.params,createTime:(new Date).getTime()}),this.wsHandler.startWS(),this.watchWSStatus(this.getRetryTimes()),this.wsHandler.subscribe("APLUS_WS_SERVER_MSG",function(e){if(e){var n=e.indexOf(":"),r=e.substr(0,n),o=e.substr(n+1);switch(r){case"cna":t.cnaCallback(r,o);break;case"aplus_sn":case"aplus_sy":t.cheatCallback(r,o);break;default:var a={};a[r]=o,goldlog.send("//"+t.domain+"/s",a)}}})},subscribeLogs:function(t,e){h.pushIntoGoldlogQueue("goldlog.aplus_pubsub.subscribe",[t,function(t){"complete"===t.status&&e(t)}])},enableSendByWS:function(t){var e=goldlog.getMetaInfo("aplus-channel"),n=["WS","WS-ONLY"],r=n.indexOf(goldlog.aplusChannel)>-1||n.indexOf(e)>-1||n.indexOf(t)>-1;return r},watchLOG:function(){var t=this;t.subscribeLogs("mw_change_pv",function(e){var n=t.enableSendByWS(e.method);if(n===!0)if(t.retryTimes>=t.maxRetryTimesPerHour){var r=a.arr2obj(e.what_to_sendpv.pvdata);delete r.aws,r._j=1,goldlog.send(e.where_to_sendpv.url,r)}else t.pv_callback(e)}),t.subscribeLogs("mw_change_hjlj",function(e){var n="POST"===e.method;if(t.enableSendByWS(e.method))if(t.retryTimes>=t.maxRetryTimesPerHour){var r=t.getHjljPostData(e);if(r&&r.postData){r.postData.gokey+="&_j=1";var o={};i(r.postData,function(t,e){["url","logkey"].indexOf(t)===-1&&(o[t]=n?decodeURIComponent(e):e)}),goldlog.send(r.mmurl,o,e.method)}}else t.hjlj_callback(e)})},changeToHttpRequest:function(t){if(t&&t.length>0)for(var e=0;e<t.length;e++){var n=t[e],r=n.msg,o="object"==typeof r.postData?r.postData:JSON.parse(r.postData);o.gokey=o.gokey+"&_j=1",delete o.aplus_sn,delete o.aplus_sy,delete o.ua,delete o.lang;var a=[];i(o,function(t){try{o[t]=decodeURIComponent(o[t])}catch(e){o[t]=o[t]}"pv"===n.type?"gokey"===t?(a.push("aplus"),a.push(o[t].replace(/&aws=1/,""))):"pre"===t?a.push(t+"="+encodeURIComponent(o[t])):"url"!==t&&"logkey"!==t&&a.push(t+"="+o[t]):"gokey"===t&&(o[t]=o[t].replace(/&aws=1/,""))}),"pv"===n.type?goldlog.send(r.url+"?"+a.join("&")):goldlog.send(r.url,o,n.method||"GET")}},dataInArray:function(t,e){for(var n,r=0;r<t.length;r++)t[r].id===e.id&&(n=!0);return n},reduceDataInArray:function(t,e){for(var n=[],r=0;r<t.length;r++)t[r].id!==e.id&&n.push(t[r]);return n},msgQueueToHttpRequest:function(){var t=this.wsHandler.getMsgQueue();this.changeToHttpRequest(t),this.wsHandler.clearMsgQueue()},watchQueue:function(){var t=this;s.on(r,"beforeunload",function(){t.msgQueueToHttpRequest()}),this.wsHandler.subscribe("APLUS_WS_MSG_QUEUE_CHANGE",function(e){r.setTimeout(function(){var n=t.wsHandler.getMsgQueue();if(t.dataInArray(n,e)){t.doSetRetryTimes(),t.changeToHttpRequest([e]);var r=t.reduceDataInArray(n,e);t.wsHandler.setMsgQueue(r)}},t.timeoutToHttp)})},watchDomain:function(){var t=this;h.pushIntoGoldlogQueue("goldlog.aplus_pubsub.subscribe",["aplusInitContext",function(e){var n=e?e.where_to_sendpv:{},r=n.url.match(/(\w|-)+\.(\w|-)+\.(\w|-)+/);r&&r.length>0&&(t.domain=r[0])}])},run:function(){var t={aws:1};h.pushIntoGoldlogQueue("goldlog.appendMetaInfo",["aplus-exdata",t]),h.pushIntoGoldlogQueue("goldlog.appendMetaInfo",["aplus-cpvdata",t]);try{this.retryTimes=this.getRetryTimes(),this.pageLoadDateHour=this.getDateHour(),this.startWebSocket(),this.watchLOG(),this.watchQueue(),this.watchDomain()}catch(t){g.catchException("ws_main_run_fn",t)}}})},function(t,e){"use strict";function n(){}n.prototype.extend=function(){},n.prototype.create=function(){},n.extend=function(t){return this.prototype.extend.call(this,t)},n.prototype.create=function(t){var e=new this;for(var n in t)e[n]=t[n];return e},n.prototype.extend=function(t){var e=function(){};try{"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),e.prototype=Object.create(this.prototype);for(var n in t)e.prototype[n]=t[n];e.prototype.constructor=e,e.extend=e.prototype.extend,e.create=e.prototype.create}catch(t){console.log(t)}finally{return e}},t.exports=n},function(t,e,n){"use strict";function r(t){t=(t||"").split("#")[0].split("?")[0];var e=t.length,n=function(t){var e,n=t.length,r=0;for(e=0;e<n;e++)r=31*r+t.charCodeAt(e);return r};return e?n(e+"#"+t.charCodeAt(e-1)):-1}function o(t){for(var e=t.split("&"),n=0,r=e.length,o={};n<r;n++){var a=e[n],s=a.indexOf("="),i=a.substring(0,s),u=a.substring(s+1);o[i]=f.tryToDecodeURIComponent(u)}return o}function a(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}function s(t){var e,n,r,o=[],a=t.length;for(r=0;r<a;r++)e=t[r][0],n=t[r][1],o.push(l.isStartWith(e,y)?n:e+"="+encodeURIComponent(n));return o.join("&")}function i(t){var e,n,r,o={},a=t.length;for(r=0;r<a;r++)e=t[r][0],n=t[r][1],o[e]=n;return o}function u(t,e){var n,r,o,a=[];for(n in t)t.hasOwnProperty(n)&&(r=""+t[n],o=n+"="+encodeURIComponent(r),e?a.push(o):a.push(l.isStartWith(n,y)?r:o));return a.join("&")}function c(t,e){var n=t.indexOf("?")==-1?"?":"&",r=e?l.isArray(e)?s(e):u(e):"";return r?t+n+r:t}var l=n(4),f=n(6),h=n(9),p=parent!==self;e.is_in_iframe=p,e.makeCacheNum=l.makeCacheNum,e.isStartWith=l.isStartWith,e.isEndWith=l.isEndWith,e.any=l.any,e.each=l.each,e.assign=l.assign,e.isFunction=l.isFunction,e.isArray=l.isArray,e.isString=l.isString,e.isNumber=l.isNumber,e.isUnDefined=l.isUnDefined,e.isContain=l.isContain,e.sleep=n(10).sleep,e.makeChkSum=r,e.tryToDecodeURIComponent=f.tryToDecodeURIComponent,e.nodeListToArray=f.nodeListToArray,e.parseSemicolonContent=f.parseSemicolonContent,e.param2obj=o;var g=n(11),d=function(t){return/^(\/\/){0,1}(\w+\.){1,}\w+((\/\w+){1,})?$/.test(t)};e.hostValidity=d;var m=function(t,e){var n=/^(\/\/){0,1}(\w+\.){1,}\w+\/\w+\.gif$/.test(t),r=d(t),o="";return n?o="isGifPath":r&&(o="isHostPath"),o||g.logger({msg:e+": "+t+' is invalid, suggestion: "xxx.mmstat.com"'}),o},v=function(t){return!/^\/\/gj\.mmstat/.test(t)&&goldlog.isInternational()&&(t=t.replace(/^\/\/\w+\.mmstat/,"//gj.mmstat")),t};e.filterIntUrl=v,e.getPvUrl=function(t){t||(t={});var e,n,r=t.metaValue&&m(t.metaValue,t.metaName),o="";"isGifPath"===r?(e=/^\/\//.test(t.metaValue)?"":"//",o=e+t.metaValue):"isHostPath"===r&&(e=/^\/\//.test(t.metaValue)?"":"//",n=/\/$/.test(t.metaValue)?"":"/",o=e+t.metaValue+n+t.gifPath);var a;return o?a=o:(e=0===t.gifPath.indexOf("/")?t.gifPath:"/"+t.gifPath,a=t.url&&t.url.replace(/\/\w+\.gif/,e)),a},e.indexof=n(12).indexof,e.callable=a;var y="::-plain-::";e.mkPlainKey=function(){return y+Math.random()},e.s_plain_obj=y,e.mkPlainKeyForExparams=function(t){var e=t||y;return e+"exparams"},e.rndInt32=function(){return Math.round(2147483647*Math.random())},e.arr2param=s,e.arr2obj=i,e.obj2param=u,e.makeUrl=c,e.ifAdd=function(t,e){var n,r,o,a,s=e.length;for(n=0;n<s;n++)r=e[n],o=r[0],a=r[1],a&&t.push([o,a])},e.isStartWithProtocol=h.isStartWithProtocol,e.param2arr=function(t){for(var e,n=t.split("&"),r=0,o=n.length,a=[];r<o;r++)e=n[r].split("="),a.push([e.shift(),e.join("=")]);return a},e.catchException=function(t,e,n){var r=window,o=r.goldlog_queue||(r.goldlog_queue=[]),a=t;"object"==typeof e&&e.message&&(a=a+"_"+e.message),n&&n.msg&&(a+="_"+n.msg),o.push({action:"goldlog._aplus_cplugin_m.do_tracker_jserror",arguments:[{message:a,error:JSON.stringify(e),filename:t}]})}},function(t,e,n){"use strict";function r(t,e){return"function"!=typeof Object.assign?function(t){if(null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!==r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}(t,e):Object.assign({},t,e)}function o(t){return"function"==typeof t}function a(t){return"string"==typeof t}function s(t){return"undefined"==typeof t}function i(t,e){return t.indexOf(e)>-1}var u=window;e.assign=r,e.makeCacheNum=function(){return Math.floor(268435456*Math.random()).toString(16)},e.each=n(5),e.isStartWith=function(t,e){return 0===t.indexOf(e)},e.isEndWith=function(t,e){var n=t.length,r=e.length;return n>=r&&t.indexOf(e)==n-r},e.any=function(t,e){var n,r=t.length;for(n=0;n<r;n++)if(e(t[n]))return!0;return!1},e.isFunction=o,e.isArray=function(t){return Array.isArray?Array.isArray(t):/Array/.test(Object.prototype.toString.call(t))},e.isString=a,e.isNumber=function(t){return"number"==typeof t},e.isUnDefined=s,e.isContain=i;var c=function(t){var e,n=t.constructor===Array?[]:{};if("object"==typeof t){if(u.JSON&&u.JSON.parse)e=JSON.stringify(t),n=JSON.parse(e);else for(var r in t)n[r]="object"==typeof t[r]?c(t[r]):t[r];return n}};e.cloneObj=c,e.cloneDeep=c},function(t,e){"use strict";t.exports=function(t,e){var n,r=t.length;for(n=0;n<r;n++)e(t[n],n)}},function(t,e,n){"use strict";var r=n(7),o=n(8);t.exports={tryToDecodeURIComponent:function(t,e){var n=e||"";if(t)try{n=decodeURIComponent(t)}catch(t){}return n},parseSemicolonContent:function(t,e,n){e=e||{};var o,a,s=t.split(";"),i=s.length;for(o=0;o<i;o++){a=s[o].split("=");var u=r.trim(a.slice(1).join("="));e[r.trim(a[0])||""]=n?u:this.tryToDecodeURIComponent(u)}return e},nodeListToArray:function(t){var e,n;try{return e=[].slice.call(t)}catch(o){e=[],n=t.length;for(var r=0;r<n;r++)e.push(t[r]);return e}},getLsCna:function(t,e){if(o.set&&o.test()){var n="",r=o.get(t);if(r){var a=r.split("_")||[];n=e?a.length>1&&e===a[0]?a[1]:"":a.length>1?a[1]:""}return decodeURIComponent(n)}return""},setLsCna:function(t,e,n){n&&o.set&&o.test()&&o.set(t,e+"_"+encodeURIComponent(n))},getUrl:function(t){var e=t||"//log.mmstat.com/eg.js";try{var n=goldlog.getMetaInfo("aplus-rhost-v"),r=/[[a-z|0-9\.]+[a-z|0-9]/,o=n.match(r);o&&o[0]&&(e=e.replace(r,o[0]))}catch(t){}return e}}},function(t,e){"use strict";function n(t){return"string"==typeof t?t.replace(/^\s+|\s+$/g,""):""}e.trim=n},function(t,e){"use strict";t.exports={set:function(t,e){try{return localStorage.setItem(t,e),!0}catch(t){return!1}},get:function(t){try{return localStorage.getItem(t)}catch(t){return""}},test:function(){var t="grey_test_key";try{return localStorage.setItem(t,1),localStorage.removeItem(t),!0}catch(t){return!1}},remove:function(t){localStorage.removeItem(t)}}},function(t,e,n){"use strict";var r=n(4),o=function(){if(goldlog.aplusDebug){var t=location.protocol;return"http:"!==t&&"https:"!==t&&(t="https:"),t}return"https:"};e.getProtocal=o,e.isStartWithProtocol=function(t){for(var e=["javascript:","tel:","sms:","mailto:","tmall://","#"],n=0,o=e.length;n<o;n++)if(r.isStartWith(t,e[n]))return!0;return!1}},function(t,e){"use strict";e.sleep=function(t,e){return setTimeout(function(){e()},t)}},function(t,e){"use strict";var n=function(){var t=!1;return"boolean"==typeof goldlog.aplusDebug&&(t=goldlog.aplusDebug),t};e.isDebugAplus=n;var r=function(t){t||(t={});var e=t.level||"warn";window.console&&window.console[e]&&window.console[e](t.msg)};e.logger=r},function(t,e){"use strict";e.indexof=function(t,e){var n=-1;try{n=t.indexOf(e)}catch(o){for(var r=0;r<t.length;r++)t[r]===e&&(n=r)}finally{return n}}},function(t,e,n){"use strict";function r(t,e,n){var r=goldlog._$||{},o=r.meta_info||{},a=o.aplus_ctap||{},s=o["aplus-touch"];if(a&&"function"==typeof a.on)a.on(t,e);else{var u="ontouchend"in document.createElement("div");!u||"tap"!==s&&"tapSpm"!==n?i(t,u?"touchstart":"mousedown",e):c.on(t,e)}}function o(t){try{f.documentElement.doScroll("left")}catch(e){return void setTimeout(function(){o(t)},1)}t()}function a(t){var e=0,n=function(){0===e&&t(),e++};"complete"===f.readyState&&n();var r;if(f.addEventListener)r=function(){f.removeEventListener("DOMContentLoaded",r,!1),n()},f.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",n,!1);else if(f.attachEvent){r=function(){"complete"===f.readyState&&(f.detachEvent("onreadystatechange",r),n())},f.attachEvent("onreadystatechange",r),window.attachEvent("onload",n);var a=!1;try{a=null===window.frameElement}catch(t){}f.documentElement.doScroll&&a&&o(n)}}function s(t){"complete"===f.readyState?t():i(l,"load",t)}function i(){var t=arguments;if(2===t.length)"DOMReady"===t[0]&&a(t[1]),"onload"===t[0]&&s(t[1]);else if(3===t.length){var e=t[0],n=t[1],o=t[2];"tap"===n||"tapSpm"===n?r(e,o,n):e[d]((h?"on":"")+n,function(t){t=t||l.event;var e=t.target||t.srcElement;"function"==typeof o&&o(t,e)},!!u(n)&&{passive:!0})}}var u=n(14),c=n(15),l=window,f=document,h=!!f.attachEvent,p="attachEvent",g="addEventListener",d=h?p:g;e.DOMReady=a,e.onload=s,e.on=i},function(t,e){var n;t.exports=function(t){if("boolean"==typeof n)return n;if(!/touch|mouse|scroll|wheel/i.test(t))return!1;n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch(t){}return n}},function(t,e){"use strict";function n(t,e){return t+Math.floor(Math.random()*(e-t+1))}function r(t,e,n){var r=l.createEvent("HTMLEvents");if(r.initEvent(e,!0,!0),"object"==typeof n)for(var o in n)r[o]=n[o];t.dispatchEvent(r)}function o(t){0===Object.keys(h).length&&(f.addEventListener(d,a,!1),f.addEventListener(g,s,!1),f.addEventListener(v,s,!1));for(var e=0;e<t.changedTouches.length;e++){var n=t.changedTouches[e],r={};for(var o in n)r[o]=n[o];var i={startTouch:r,startTime:Date.now(),status:m,element:t.srcElement||t.target};h[n.identifier]=i}}function a(t){for(var e=0;e<t.changedTouches.length;e++){var n=t.changedTouches[e],r=h[n.identifier];if(!r)return;var o=n.clientX-r.startTouch.clientX,a=n.clientY-r.startTouch.clientY,s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));(r.status===m||"pressing"===r.status)&&s>10&&(r.status="panning")}}function s(t){for(var e=0;e<t.changedTouches.length;e++){var n=t.changedTouches[e],o=n.identifier,i=h[o];i&&(i.status===m&&t.type===g&&(i.timestamp=Date.now(),r(i.element,y,{touch:n,touchEvent:t})),delete h[o])}0===Object.keys(h).length&&(f.removeEventListener(d,a,!1),f.removeEventListener(g,s,!1),f.removeEventListener(v,s,!1))}function i(t){t.__fixTouchEvent||(t.addEventListener(p,function(){},!1),t.__fixTouchEvent=!0)}function u(){c||(f.addEventListener(p,o,!1),c=!0)}var c=!1,l=window.document,f=l.documentElement,h={},p="touchstart",g="touchend",d="touchmove",m="tapping",v="touchcancel",y="aplus_tap"+n(1,1e5);t.exports={on:function(t,e){u(),t&&t.addEventListener&&e&&(i(t),t.addEventListener(y,e._aplus_tap_callback=function(t){e(t,t.target)},!1))},un:function(t,e){t&&t.removeEventListener&&e&&e._aplus_tap_callback&&t.removeEventListener(y,e._aplus_tap_callback,!1)}}},function(t,e){"use strict";t.exports=function(t,e){if(Object&&Object.keys)for(var n=Object.keys(t),r=n.length,o=0;o<r;o++){var a=n[o];e(a,t[a])}else for(var s in t)e(s,t[s])}},function(t,e){"use strict";function n(t,e,n){var r=""+Math.abs(t),o=e-r.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}e.getFormatDate=function(t){var e=new Date;try{return[e.getFullYear(),n(e.getMonth()+1,2,0),n(e.getDate(),2,0)].join(t||"")}catch(t){return""}}},function(t,e,n){"use strict";function r(t){var e=i.cookie.match(new RegExp("(?:^|;)\\s*"+t+"=([^;]+)"));return e?e[1]:""}function o(t,e,n){n||(n={});var o=new Date;return"session"===n.expires||(n.expires&&("number"==typeof n.expires||n.expires.toUTCString)?("number"==typeof n.expires?o.setTime(o.getTime()+24*n.expires*60*60*1e3):o=n.expires,e+="; expires="+o.toUTCString()):(o.setTime(o.getTime()+63072e7),e+="; expires="+o.toUTCString())),e+="; path="+(n.path?n.path:"/"),e+="; domain="+n.domain,i.cookie=t+"="+e,n.SameSite&&/Chrome\/8\d+/.test(navigator.userAgent)&&(e+="; SameSite="+n.SameSite,e+="; Secure",i.cookie=t+"="+e),r(t)}function a(t,e,n){try{if(n||(n={}),n.domain)o(t,e,n);else for(var r=c.getDomains(),a=0;a<r.length;)n.domain=r[a],o(t,e,n)?a=r.length:a++}catch(t){}}function s(){var t={};return u.each(f,function(e){t[e]=r(e)}),t.cnaui=/\btanx\.com$/.test(l)?r("cnaui"):"",t}var i=document,u=n(4),c=n(19),l=location.hostname;e.getCookie=r,e.setCookie=a;var f=["tracknick","thw","cna"];e.getData=s,e.getHng=function(){return encodeURIComponent(r("hng")||"")}},function(t,e){"use strict";e.getDomains=function(){var t=[];try{for(var e=location.hostname,n=e.split("."),r=2;r<=n.length;)t.push(n.slice(n.length-r).join(".")),r++}catch(t){}return t}},function(t,e){"use strict";e.pushIntoGoldlogQueue=function(t,e){var n=window;(n.goldlog_queue||(n.goldlog_queue=[])).push({action:t,arguments:e})}},function(t,e,n){"use strict";var r=window,o="ws.mmstat.com",a=n(22),s=n(23),i=n(20);t.exports=s.extend({status:"inactive",websocket:{},wsindexPre:"wss",wsindex:0,msg_queue:[],setWsHandler:function(t){return this.websocket[this.wsindexPre+ ++this.wsindex]=new r.WebSocket(t)},getWsHandler:function(){return this.websocket[this.wsindexPre+this.wsindex]},getMsgQueue:function(){return this.msg_queue},clearMsgQueue:function(){this.msg_queue=[]},setMsgQueue:function(t){this.msg_queue=t},proessMsgQueue:function(t){var e,n=this,r=0;if(t&&t.length>0)for(e=t.length;r<e;)n.send(t.shift()),r++;else for(e=n.msg_queue.length;r<e;)n.send(n.msg_queue.shift()),r++},initWebSocket:function(t){var e=this,n="https:"===location.protocol?"wss://":"ws://",r=n+t+"/ws",o="initWebSocket";try{e.cna&&(r+="/"+e.cna),e.params&&e.params.length>0&&(r+="?"+e.params.join("&"));var s=e.setWsHandler(r),i=(new Date).getTime();s.onopen=function(){e.status="active";var t=e.getMsgQueue();t.length>0&&e.proessMsgQueue(t);var n="connTime="+((new Date).getTime()-i);a.catchException(o+"_onopen",{message:n}),e.publish("APLUS_WS_OPEN")},s.onerror=function(t){e.status="inactive";var n=t?t.target:{},r=t?t.timeStamp:"";a.catchException(o+"_onerror",{message:"targetUrl="+n.url+"&readyState="+n.readyState+"&timeStamp="+r}),e.publish("APLUS_WS_ERROR")},s.onclose=function(){e.status="inactive",e.publish("APLUS_WS_CLOSE")},s.onmessage=function(t){e.publish("APLUS_WS_SERVER_MSG",t.data)}}catch(t){a.catchException(o+"_exception",t),e.publish("APLUS_WS_EXCEPTION")}},readyInitWebSocket:function(){var t=this;i.pushIntoGoldlogQueue("goldlog.aplus_pubsub.subscribe",["aplusInitContext",function(){var e=t.getWsHandler();(!e||e&&e.readyState>1)&&t.initWebSocket(o)}])},start:function(){var t=this.getWsHandler();(!t||t&&t.readyState>1)&&(this.status="active",this.readyInitWebSocket())},stop:function(){var t=this.getWsHandler();t&&t.readyState<=1&&(this.status="inactive",t.close())},sendMsg:function(t){var e=this.getWsHandler();return!(!e||1!==e.readyState)&&(e.send(t),!0)},processSysEvent:function(t){"active"===t.msg?this.start():"inactive"===t.msg&&this.stop()},processLogEvent:function(t){if("active"===this.status){var e=this.sendMsg(t.msg.postData);e||(this.msg_queue.push(t),this.publish("APLUS_WS_MSG_QUEUE_CHANGE",t))}else this.msg_queue.push(t),this.publish("APLUS_WS_MSG_QUEUE_CHANGE",t)},send:function(t){var e=this.getWsHandler();switch((!e||e.readyState>1)&&this.start(),t.type){case"sys":this.processSysEvent(t);break;case"pv":case"goldlog":this.processLogEvent(t)}},startWS:function(){var t=this;t.start()}})},function(t,e,n){"use strict";var r=n(20);e.catchException=function(t,e){var n=t;"object"==typeof e&&e.message&&(n=n+"_"+e.message),r.pushIntoGoldlogQueue("goldlog._aplus_cplugin_m.do_tracker_jserror",[{message:n,error:JSON.stringify(e),filename:t}])}},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}var o=n(2),a=function(t){for(var e=t.length,n=new Array(e-1),r=1;r<e;r++)n[r-1]=t[r];return n},s=o.extend({create:function(t){var e=new this;for(var n in t)e[n]=t[n];return e.handlers=[],e.pubs={},e},setHandlers:function(t){this.handlers=t},subscribe:function(t,e){r(e);var n=this,o=n.pubs||{},a=o[t]||[];if(a)for(var s=0;s<a.length;s++){var i=a[s]();e.apply(n,i)}var u=n.handlers||[];return t in u||(u[t]=[]),u[t].push(e),n.setHandlers(u),n},subscribeOnce:function(t,e){r(e);var n,o=this;return this.subscribe.call(this,t,n=function(){o.unsubscribe.call(o,t,n);var r=Array.prototype.slice.call(arguments);e.apply(o,r)}),this},unsubscribe:function(t,e){r(e);var n=this.handlers[t];if(!n)return this;if("object"==typeof n&&n.length>0){for(var o=0;o<n.length;o++){var a=e.toString(),s=n[o].toString();a===s&&n.splice(o,1)}this.handlers[t]=n}else delete this.handlers[t];return this},publish:function(t){var e=a(arguments),n=this.handlers||[],r=n[t]?n[t].length:0;if(r>0)for(var o=0;o<r;o++){var s=n[t][o];s&&"function"==typeof s&&s.apply(this,e)}return this},cachePubs:function(t){var e=this.pubs||{},n=a(arguments);e[t]||(e[t]=[]),e[t].push(function(){return n})}});t.exports=s}]);