var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); S=KISSY,KISSY.config("modules",{util:{alias:"kg/kmd-adapter/0.1.5/util"},feature:{alias:"kg/kmd-adapter/0.1.5/feature"},"event-dom":{alias:"event"},"event-custom":{alias:"event"},"event-gesture":{alias:"event"}}),define=function(e,a,t){return KISSY.add(e,a,function(e,a,n,i){t(a,n,i)})};KISSY.add("kg/kmd-adapter/0.1.5/util",[],function(d,t,a,e){e.exports=d});define("kg/global-util/1.0.7/index",[],function(require,exports,module){var kgGlobalUtil107Index;kgGlobalUtil107Index=function(exports){function getCookie(e){var n=document.cookie.match("(?:^|;)\\s*"+e+"=([^;]*)");return n&&n[1]?decodeURIComponent(n[1]):""}var S=KISSY;window.TB||(window.TB={}),window.TB.Global||(window.TB.Global={});var onLine=-1===location.hostname.indexOf("daily.taobao.net"),cdnHost=location.protocol+"//"+(onLine?"g.alicdn.com":"g-assets.daily.taobao.net");return S.config({packages:[{name:"tbc",combine:!0,path:cdnHost+"/tbc/",ignorePackageNameInUri:!0},{name:"gallery",combine:!0,path:"//web.archive.org/web/20180814183657/https://assets.alicdn.com/s/kissy/gallery/",ignorePackageNameInUri:!0}]}),exports=TB.Global={version:"3.0",isLogin:function(){var e=getCookie("dnk")||getCookie("_nk_")||getCookie("tracknick"),n=getCookie("_l_g_"),t=getCookie("lgc");return!!(n&&e||t)},getNick:function(){var e=getCookie("dnk")||getCookie("_nk_"),n=getCookie("lgc"),t=e||n;return t&&(t=this.fromUnicode(t).replace(/[<>%&;\\'"]/g,"")),t},getAvatar:function(){var e="//web.archive.org/web/20180814183657/https://gtms03.alicdn.com/tps/i3/TB1yeWeIFXXXXX5XFXXuAZJYXXX-210-210.png_80x80.jpg",n=this.getNick();return n?"//web.archive.org/web/20180814183657/https://wwc.alicdn.com/avatar/getAvatar.do?userNick="+n+"&_input_charset=UTF-8&width=80&height=80&type=sns":e},fromUnicode:function(e){return e.replace(/\\u([a-f\d]{4})/gi,function(e,n){return String.fromCharCode(parseInt(n,16))})},getTag:function(){return parseInt(S.unparam(getCookie("uc1")).tag,10)},getHost:function(){return this.isDaily()?".daily.taobao.net":".taobao.com"},getCdnHost:function(){return cdnHost},isDaily:function(){return!onLine},isMobile:function(){var e=navigator.userAgent;return!!e.match(/AppleWebKit.*Mobile.*/)||"ontouchstart"in document.documentElement},getCharset:function(){return/utf\-*8/i.test(document.charset||document.characterSet)?"utf8":"gbk"},isHttps:function(){return"https:"===location.protocol},getComponentVersion:function getComponentVersion(name){var search=location.search.replace("?","");if(search&&-1!==search.indexOf("fn-")){search=search.split("&");for(var obj={},i=0,len=search.length;i0&&(e=window.JSTracker2);var t;window.g_config&&window.g_config.jstracker2&&(t=window.g_config.jstracker2),window.JSTracker2=new i(t);for(var n=0;n-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),i=[],o=2,a=r.length;a>o;o+=2){var s=t.exec(r[o]);s&&i.push(new n(void 0,void 0,s[2],s[1]))}return i},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),i=[],o=0,a=r.length;a>o;o+=2){var s=t.exec(r[o]);s&&i.push(new n(s[3]||void 0,void 0,s[2],s[1]))}return i},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(r)&&!e.match(/^Error created at/)},this).map(function(e){var t,r=e.split("@"),i=this.extractLocation(r.pop()),o=r.shift()||"",a=o.replace(//,"$2").replace(/\([^\)]*\)/g,"")||void 0;o.match(/\(([^\)]*)\)/)&&(t=o.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var s=void 0===t||"[arguments not available]"===t?void 0:t.split(",");return new n(a,s,i[0],i[1],i[2])},this)}};e.exports=function(e){var t=o.parse(e);return t}},function(e,t,n){function r(e){var t={msg:"",file:"",line:"",col:"",stack:"",url:"",ua:"",screen:"",nick:"",dns:"",con:"",req:"",res:"",dcl:"",onload:"",type:"",ki:""};this.version="o4.0.1",t={v:this.version,ua:o,screen:a,sampling:100,nick:s,ki:c},this._debug=-1!=location.href.indexOf("jt_debug"),this._pushed_num=0,this._config=u.merge(t,e)}var i=n(5),o=n(11),a=n(12),s=n(13),c=n(14),u=n(10);r.prototype.push=i,e.exports=r},function(e,t,n){var r=n(6),i=n(7),o=n(9),a=n(8),s=n(10);e.exports=function(e){try{if(!e)return;e&&e.constructor===Object||(e=r(e)),e=s.merge(e,this._config);var t=a;e.t=t();for(var n in e)(""===e[n]||null===e[n]||void 0===e[n])&&delete e[n];var c=s.stringify(e),u=e.sampling;if(1>u&&(u=9999999,"undefined"!=typeof console&&console.warn&&console.warn("JSTracker2 sampling is invalid, please set a integer above 1!")),"__PV"!==e.msg&&!this._debug&&Math.random()*u>1);else if(this._pushed_num<10){this._pushed_num++,this._debug&&window.console&&window.console.log(e);var d=o.call(this);i(d+c)}}catch(l){}}},function(e,t,n){var r=n(3);e.exports=function(e){var t={msg:e.message,file:"",line:"",col:"",stack:r(e).toString()};return t}},function(e,t,n){var r=n(8);e.exports=function(e){var t=window,n="jsFeImage_"+r(),i=t[n]=new Image;i.onload=i.onerror=function(){t[n]=null},i.src=e}},function(e,t){var n=function(){return+new Date+".r"+Math.floor(1e3*Math.random())};e.exports=n},function(e,t){e.exports=function(){var e="//web.archive.org/web/20180814183657/https://gm.mmstat.com";return this._config.server&&(e=this._config.server),e+"/jstracker.3?"}},function(e,t){e.exports={merge:function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},stringify:function(e){var t=[];for(var n in e)t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")},now:function(){return window.performance&&window.performance.now?window.performance.now():Date&&"function"==typeof Date.now?Date.now():new Date}}},function(e,t){var n=function(){try{if(/UBrowser/i.test(navigator.userAgent))return"";if("undefined"!=typeof window.scrollMaxX)return"";var e="track"in document.createElement("track"),t=window.chrome&&window.chrome.webstore?Object.keys(window.chrome.webstore).length:0;return window.clientInformation&&window.clientInformation.languages&&window.clientInformation.languages.length>2?"":e?t>1?" QIHU 360 EE":" QIHU 360 SE":""}catch(n){return""}}();e.exports=navigator.userAgent+n},function(e,t){e.exports=screen.width+"x"+screen.height},function(e,t){var n=null;try{var r=/_nk_=([^;]+)/.exec(document.cookie)||/_w_tb_nick=([^;]+)/.exec(document.cookie)||/lgc=([^;]+)/.exec(document.cookie);r&&(n=decodeURIComponent(r[1]))}catch(i){}e.exports=n},function(e,t){function n(){try{return KISSY.version}catch(e){return null}}e.exports=n()},function(e,t,n){var r=n(16),i=n(18),o=n(19);e.exports=function(){var e=this;if(this._debug||!(100*Math.random()>1)){if(this._cpu=new i,new o,window.WindVane&&window.WindVane.call&&navigator.userAgent.indexOf("iPhone")>-1&&window.WindVane.call("WVDevelopTool","getLocPerformanceData",{},function(t){try{e._windVanePerfData={w_dns:t.dns,w_c:t.c,w_scs:t.scs,w_rps:t.rps,w_rpe:t.rpe,w_dl:t.dl,w_dc:t.dc,w_lee:t.lee}}catch(n){}}),window.performance&&window.performance.memory)try{var t=parseInt(window.performance.memory.usedJSHeapSize),n=parseInt(window.performance.memory.totalJSHeapSize);t&&(this._jsHeapSizeData={jsHeapUsed:t},n&&(this._jsHeapSizeData.jsHeapUsedRate=(t/n).toFixed(4)))}catch(a){}setTimeout(function(){try{var t=r.call(e);window.JSTracker2.push(t)}catch(n){}},2e4)}}},function(e,t,n){var r=n(17),i=n(10);e.exports=function(){var e={},t=window;if(t.performance){var n=t.performance.timing;e.dns=n.domainLookupEnd-n.domainLookupStart,e.con=n.connectEnd-n.connectStart,e.req=n.responseStart-n.requestStart,e.res=n.responseEnd-n.responseStart,e.dcl=n.domContentLoadedEventEnd-n.domLoading,e.onload=n.loadEventStart-n.domLoading,e.type=window.performance.navigation.type,e.sampling=100}e.msg="__PV";var o=r.call(this);return e.stack=i.stringify(o),e}},function(e,t,n){var r=n(10);e.exports=function(){var e=window.performance||window.webkitPerformance||window.msPerformance||window.mozPerformance,t={};if(e){var n=e.timing;if(n){if(void 0===t.firstPaint){var i=-1;window.chrome&&window.chrome.loadTimes?(i=1e3*window.chrome.loadTimes().firstPaintTime,i-=1e3*window.chrome.loadTimes().startLoadTime):"number"==typeof window.performance.timing.msFirstPaint&&(i=window.performance.timing.msFirstPaint,t.firstPaint=i-window.performance.timing.navigationStart),t.firstPaint=Math.floor(i)}t.load=n.loadEventEnd-n.fetchStart,t.domReady=n.domComplete-n.domInteractive,t.readyStart=n.fetchStart-n.navigationStart,t.redirect=n.redirectEnd-n.redirectStart,t.appcache=n.domainLookupStart-n.fetchStart,t.unloadEvent=n.unloadEventEnd-n.unloadEventStart,t.lookupDomain=n.domainLookupEnd-n.domainLookupStart,t.connect=n.connectEnd-n.connectStart,t.request=n.responseEnd-n.requestStart,t.initDomTree=n.domInteractive-n.responseEnd,t.loadEvent=n.loadEventEnd-n.loadEventStart}}if(this._windVanePerfData&&(t=r.merge(t,this._windVanePerfData)),this._jsHeapSizeData&&(t=r.merge(t,this._jsHeapSizeData)),this._cpu){this._cpu.pause(),t.busy=Math.floor(this._cpu.getTotalSize(0,15e3));for(var o=this._cpu.data.dataArray,a=-1,s=0,c=0;c=5));c++);t.avail=Math.floor(this._cpu.data.timeArray[s]-this._cpu.data.timeArray[0]),t.busyPer=Math.floor(this._cpu.getOverPerAmount(1,0,15e3)/this._cpu.getOverPerAmount(0,0,15e3)*100),this._debug&&window.console&&window.console.log(t)}return t}},function(e,t){!function(e){function t(){this.conf={log:!1,consoleUI:!1,delay:100,stat:!0,ui:!1},this.log("start"),this.run(),this._lastTime=this.now(),this.data={timeArray:[],per_line:[],time_line:[],size_line:[],averageTime:this.conf.delay,totalSize:0,dataArray:[],timeArray:[]},this.log("end")}t.prototype.run=function(){var e,t=this;t.conf.ui,window.addEventListener&&window.addEventListener("touchmove",function(){t.resumeFlag=!0},!1),this._timerID=setTimeout(function(){if(!t.isPause){t.currentTime=t.now(),e=(t.currentTime-t._lastTime-t.conf.delay-0)/t.conf.delay,0>e&&(e=0),e>1&&(e=1),t._lastTime=t.currentTime;var n=t.getStepPer(t.now(),e),r=Math.floor(n/.5)+1;if(r=r>200?200:r,t.resumeFlag)t.resumeFlag=!1;else for(var i=0;r>i;i++)t.logPercent(e);t._timerID=setTimeout(arguments.callee,t.conf.delay)}},t.conf.delay)},t.prototype.now=function(){return window.performance&&window.performance.now?window.performance.now():Date&&"function"==typeof Date.now?Date.now():new Date},t.prototype.log=function(t){this.conf.log&&e.console&&e.console.log&&e.console.log("### CPU Log:"+t)},t.prototype.getStepPer=function(e,t){var n=this.data;n.time_line.push(e);var r;n.per_line.push(t);var i=n.time_line.length;r=1==n.time_line.length?n.averageTime:e-n.time_line[i-2],r=2?(n.totalSize+=(n.per_line[i-1]+n.per_line[i-2])*(n.time_line[i-1]-n.time_line[i-2])/2,n.size_line.push(n.totalSize)):n.size_line.push(0),n.per_line.length>2&&(n.per_line.shift(),n.time_line.shift()),o},t.prototype.drawUIByConsole=function(e){for(var t=Math.round(10*e),n="\u2586",r=t;r--;)n+="\u2586";n+=Math.round(100*e),this.log(n)},t.prototype.pause=function(){clearTimeout(this._timerID),this.isPause=!0,this.log("###########################PAUSE!!!!!!!!!")},t.prototype.resume=function(){(null==this.isPause||this.isPause)&&(this._lastTime=this.now()+1e4,this.isPause=!1,this.resumeFlag=!0,this.log("###########################RESUME!!!!!!!!!"),this.run())},t.prototype.logPercent=function(e){this.conf.stat&&this.logStat(e),this.conf.ui,this.conf.consoleUI&&this.drawUIByConsole(e)},t.prototype.logStat=function(e){var t=this.data;t.dataArray.push(e),t.timeArray.push(this.now())},t.prototype.getCurrentCPU=function(){for(var e=this.data,t=e.dataArray,n=0,r=t.length,i=0,o=r-1;o>=0&&(i+=t[o],n++,!(n>=3));o--);return 0==n?0:i/n},t.prototype.getTimeIndex=function(e,t){for(var n=this.data.timeArray,r=0;re)return r-1}else if(n[r]-n[0]>=e)return r;return n.length},t.prototype.getOverPerAmount=function(e,t,n){for(var r=this.data,i=this.getTimeIndex(t),o=this.getTimeIndex(n,1),a=r.dataArray,s=0,c=i;o>c;c++)"undefined"!=typeof a[c]&&a[c]>=e&&s++;return s},t.prototype.getTotalSize=function(e,t){var n=this.data,r=this.getTimeIndex(e),i=this.getTimeIndex(t,!0),o=n.size_line[i];o||(o=n.size_line[n.size_line.length-1]);var a=o-n.size_line[r];return a},e.cpu=t}(window),e.exports=cpu},function(e,t,n){function r(){try{this.init()}catch(e){}}var i=n(10);r.prototype.init=function(){var e=this,t=navigator.battery||navigator.mozBattery||navigator.webkitBattery;return t?(this.battery=t,this.setConfig(),void this.bindEvent()):void(navigator.getBattery&&navigator.getBattery().then(function(t){e.battery=t,e.setConfig(),e.bindEvent()}))},r.prototype.setConfig=function(){this.level=100*this.battery.level,this.lastTime=i.now()},r.prototype.bindEvent=function(){function e(){t=100*o.battery.level,n=i.now(),r=((o.level-t)/(n-o.lastTime)*1e3).toFixed(6),r&&r!=1/0&&r>0&&window.JSTracker2.push({sampling:1,msg:"__Battery",line:r}),o.battery.removeEventListener("levelchange",e,!1)}var t,n,r,o=this;this.battery&&this.level&&this.battery.addEventListener&&this.battery.removeEventListener&&this.battery.addEventListener("levelchange",e,!1)},e.exports=r}]);define("kg/tb-gnav/1.1.1/index",["util","cookie","io","kg/tb-nav/2.5.1/lib/menu/index","node","kg/tb-nav/2.5.1/lib/global/index","dom","event","ua","kg/tb-nav/2.5.1/lib/index"],function(n,a,t){var e,s,i,o,l,c,r,d,m,v,u,p=n("util"),_=n("cookie"),g=n("io"),h=n("kg/tb-nav/2.5.1/lib/menu/index"),b=n("node"),f=n("kg/tb-nav/2.5.1/lib/global/index"),T=n("dom"),E=(n("event"),n("ua")),M=n("kg/tb-nav/2.5.1/lib/index");e=function(n){return n={TAOBAO_HOMEPAGE:"\u6dd8\u5b9d\u7f51\u9996\u9875",HOPPING_CART:"\u8d2d\u7269\u8f66",PAID_ITEM:"\u5df2\u4e70\u5230\u7684\u5b9d\u8d1d",MY_HISTORY:"\u6211\u7684\u8db3\u8ff9",PAID_SHOP:"\u8d2d\u4e70\u8fc7\u7684\u5e97\u94fa",FAVORITE:"\u6536\u85cf\u5939",FAVORITE_ITEM:"\u6536\u85cf\u7684\u5b9d\u8d1d",FAVORITE_SHOP:"\u6536\u85cf\u7684\u5e97\u94fa",ORDER:"\u8ba2\u5355\u7ba1\u7406",DELIVERY_TRACE:"\u7269\u6d41\u8ffd\u8e2a",HELP:"\u6d77\u5916\u6d88\u8d39\u8005\u5e2e\u52a9",CHINA:"\u5927\u9646",logistics:"\u8de8\u5883\u7269\u6d41\u7ba1\u7406",SOUTHEAST_ASIA:"\u4e1c\u5357\u4e9a",XX:"\u5168\u7403",MOBILETAO:"\u624b\u673a\u901b\u6dd8\u5b9d",LOGIN:"\u767b\u5f55",FREEREG:"\u514d\u8d39\u6ce8\u518c",MESSAGE:"\u6d88\u606f",GOLOGIN:"\u4eb2\uff0c\u8bf7\u767b\u5f55",REGISTER:"\u6ce8\u518c",ACCOUNT_MANAGE:"\u5e10\u53f7\u7ba1\u7406",EXIT:"\u9000\u51fa",MY_TAOBAO:"\u6211\u7684\u6dd8\u5b9d",NEW_USER_GUIDE:"\u65b0\u624b\u8d2d\u7269\u5165\u95e8\u6559\u5b66",QUICK_GET_NEW_GIFT:"\u5feb\u53bb\u9886\u65b0\u4eba\u793c\u91d1!",ACTIVATE_MY_POWER:"\u7acb\u523b\u6fc0\u6d3b\u6211\u7684\u8eab\u4efd",LANGUAGE:"\u8bed\u8a00\u7248\u672c",ZH_CN_CHINESE:"\u7b80\u4f53\u4e2d\u6587",ZH_TW_CHINESE:"\u7e41\u9ad4\u4e2d\u6587",EN:"\u82f1\u6587",SAVE:"\u4fdd\u5b58",CN:"\u4e2d\u56fd\u5927\u9646",TW:"\u53f0\u6e7e",HK:"\u9999\u6e2f",MO:"\u6fb3\u95e8",JP:"\u65e5\u672c",KR:"\u97e9\u56fd",SG:"\u65b0\u52a0\u5761",MY:"\u9a6c\u6765\u897f\u4e9a",US:"\u7f8e\u56fd",CA:"\u52a0\u62ff\u5927",NZ:"\u65b0\u897f\u5170",AU:"\u6fb3\u5927\u5229\u4e9a",GLOBAL:"\u5168\u7403",side_cart:"\u8d2d\u7269\u8f66",change_language:"\u8bed\u8a00"}}(),s=function(n){return n={TAOBAO_HOMEPAGE:"\u6dd8\u5bf6\u7db2\u9996\u9801",HOPPING_CART:"\u8cfc\u7269\u8eca",MY_MSG_CENTER:"\u6211\u7684\u6d88\u606f\u4e2d\u5fc3",PAID_ITEM:"\u5df2\u8cb7\u5230\u7684\u5bf6\u8c9d",PAID_SHOP:"\u8cfc\u8cb7\u904e\u7684\u5e97\u92ea",MY_HISTORY:"\u6211\u7684\u8db3\u8de1",FAVORITE:"\u6536\u85cf\u593e",FAVORITE_ITEM:"\u6536\u85cf\u7684\u5bf6\u8c9d",FAVORITE_SHOP:"\u6536\u85cf\u7684\u5e97\u8216",logistics:"\u8de8\u5883\u7269\u6d41\u7ba1\u7406",HELP:"\u6d77\u5916\u6d88\u8cbb\u8005\u5e6b\u52a9",MOBILETAO:"\u624b\u6a5f\u901b\u6dd8\u5bf6",CHINA:"\u5927\u9678",SOUTHEAST_ASIA:"\u6771\u5357\u4e9e",XX:"\u5168\u7403",LOGIN:"\u767b\u9304",MESSAGE:"\u6d88\u606f",GOLOGIN:"\u89aa\uff0c\u8acb\u767b\u9304",REGISTER:"\u8a3b\u518a",ACCOUNT_MANAGE:"\u8cec\u865f\u7ba1\u7406",EXIT:"\u9000\u51fa",FREEREG:"\u514d\u8cbb\u6ce8\u518a",MY_TAOBAO:"\u6211\u7684\u6dd8\u5bf6",NEW_USER_GUIDE:"\u65b0\u624b\u8d2d\u7269\u5165\u95e8\u6559\u5b66",QUICK_GET_NEW_GIFT:"\u5feb\u53bb\u9886\u65b0\u4eba\u793c\u91d1!",ACTIVATE_MY_POWER:"\u7acb\u523b\u6fc0\u6d3b\u6211\u7684\u8eab\u4efd",EN:"\u82f1\u6587",SAVE:"\u4fdd\u5b58",CN:"\u4e2d\u570b\u5927\u9678",TW:"\u53f0\u7063",HK:"\u9999\u6e2f",MO:"\u6fb3\u9580",JP:"\u65e5\u672c",KR:"\u97d3\u570b",SG:"\u65b0\u52a0\u5761",MY:"\u99ac\u4f86\u897f\u4e9e",US:"\u7f8e\u570b",CA:"\u52a0\u62ff\u5927",NZ:"\u65b0\u897f\u862d",AU:"\u6fb3\u5927\u5229\u4e9e",GLOBAL:"\u5168\u7403",side_reg:"\u6ce8\u518c",side_lq:"\u9886\u53d6"}}(),i=function(n){return n={send:function(n){window.JSTracker2=window.JSTracker2||[];var a="https://web.archive.org/web/20180814183657/http://jstracker.www.taobao.com/nav/"+n.category;window.JSTracker2.push({url:a,msg:n.msg})}}}(),o=function(n){return n=function(n,a){return'\n \n "}}(),l=function(n){return n=function(n){return'\n \n '}}(),c=function(n){var a=p,t=_,e=g,s=i,o={CN:"CN|zh-CN|CNY|156",HK:"HK|zh-TW|HKD|344",TW:"TW|zh-TW|TWD|158",MO:"MO|zh-TW|MOP|446",KR:"KR|zh-CN|KRW|410",MY:"MY|zh-CN|MYR|458",AU:"AU|zh-CN|AUD|36",SG:"SG|zh-CN|SGD|702",NZ:"NZ|zh-CN|NZD|554",CA:"CA|zh-CN|CAD|124",US:"US|zh-CN|USD|840",JP:"JP|zh-CN|JPY|392",GLOBAL:"GLOBAL|zh-CN|USD|999"};return n={get:function(n){return o[n]||o.GLOBAL},pureGet:function(n){return o[n]},simplifiedLang:function(n){return!a.inArray(n,["HK","TW","MO"])},isMainland:function(n){return"CN"===n},getCode:function(){return this.code||"GLOBAL"},getRegion:function(n){var a=this;this.getVal(function(t){t?a.code=t.split("|")[0]:a.code="CN",n(a.code)})},getVal:function(n){var a=t.get("hng"),e=this;if(a)try{a=decodeURIComponent(a),a=e.shouldCookieUpdate(a),n(a)}catch(s){this.checkGlobal(n)}else this.checkGlobal(n)},checkGlobal:function(n){var a=window.g_config||{},t=a.regionID;t&&o[t]?(this.set(t),n(o[t])):this.getIpInfo(n)},shouldCookieUpdate:function(n){var a=n.split("|");if(3===a.length){var t=a[0];o[t]&&(n=o[t],this.set(t))}return n},getIpInfo:function(n){var a=this,t=this;new e({url:"//web.archive.org/web/20180814183657/https://tbip.alicdn.com/api/getipinfo",dataType:"jsonp",success:function(e){if(e&&e.data&&e.data.country_id){var i=e.data.country_id;s.send({category:"IP_INFO",msg:i});var l=t.pureGet(i);l?(n(l),a.set(i)):(l=t.get(i),n(l),a.set(i))}else n(o.CN),s.send({category:"IP_ERROR",msg:e})},error:function(a,t){n(o.CN),s.send({category:"IP_ERROR",msg:t})}})},set:function(n,a){var t=this,i=o[n]||o.GLOBAL;new e({url:"//web.archive.org/web/20180814183657/https://ocservice.taobao.com/cookieController/processUserCookie",data:{site:i.replace(/\|/g,"_"),from:1},dataType:"jsonp",success:function(e){e&&e.ret?t.sync(n,a):s.send({category:"WRITE_COOKIE",msg:e})},error:function(n,a){s.send({category:"WRITE_COOKIE",msg:a})}})},sync:function(n,a,e){var i,o=this;o.isMainland(n)&&t.set("thw","cn",360,".taobao.com","/"),a&&(i=setTimeout(function(){o.shouldRedirectMainland(n)},1e3)),KISSY.getScript("https://web.archive.org/web/20180814183657/https://login.taobao.com/jump?target=https://www.tmall.com",{success:function(){clearTimeout(i),a&&o.shouldRedirectMainland(n)},error:function(n,a){s.send({category:"SYNC_COOKIE",msg:a})}})},shouldRedirectMainland:function(n){this.isMainland(n)&&"world.taobao.com"===location.hostname&&"/"===location.pathname?location.href="https://web.archive.org/web/20180814183657/https://www.taobao.com/":location.reload()}}}(),r=function(n){var a=e,t=s,i=c;return n=function(n){return i.simplifiedLang(i.getCode())?a[n]:t[n]}}(),d=function(n){var a=p,t=h,e=r,s=["GLOBAL","CN","HK","TW","MO","KR","MY","AU","SG","NZ","CA","US","JP"],o=b.all,l=c,d=i;return n={init:function(n){this.listEl=o("#J_SiteNavRegionList"),this.currentCode=n,this.bind()},bind:function(){var n=this,a=!1;t.subscribe("region","show",function(){a||(n.render(),a=!0)}),this.listEl.delegate("click",".J_RegionItem",function(a){var t=o(a.currentTarget).index(),e=s[t];e!==n.currentCode&&(d.send({category:"REGION_SWITCH",msg:n.currentCode+" -> "+e}),l.set(e,!0))})},render:function(){var n=[];n=a.map(s,function(n){return'"}),this.listEl.html(n.join(""))}}}(),m=function(n){function a(){var n=i.getTag(),a="";return 10===n?a="super":20===n&&(a="apass"),a}function t(){var n=i.getTag(),t=i.getNick(),e=a(),s="";e&&(s="super");var r="";8==c.ie&&(r="ie8");var m='';(n===-1||isNaN(n))&&(m="",s="");var v='",p=v+m;o.html("#J_SiteNavLogin",l.substitute(A,{loginUrl:u,logoutUrl:_,regUrl:g,spaceUrl:b,nick:t,userInfo:p,login:d("GOLOGIN"),freeRegister:d("FREEREG")}))}function e(){var n=(i.getTag(),i.getNick()),t=a();c.ie&&c.ie<9&&(t=""),o.html("#J_SiteNavLoginPanel",l.substitute(J,{tagIcon:t,logoutUrl:_,regUrl:g,spaceUrl:b,avatarUrl:i.getAvatar(),host:i.getHost(),nick:n,manage:d("ACCOUNT_MANAGE"),exit:d("EXIT")}))}var s=h,i=f,o=T,l=p,c=E,d=r,m="https://web.archive.org/web/20180814183657/https://login"+i.getHost(),v="//web.archive.org/web/20180814183657/https://login"+i.getHost(),u=m+"/member/login.jhtml?f=top",_=v+"/member/logout.jhtml?f=top&out=true",g="//web.archive.org/web/20180814183657/https://reg"+i.getHost()+"/member/new_register.jhtml?from=tbtop&ex_info=&ex_sign=",b="//i"+i.getHost()+"/my_taobao.htm?ad_id=&am_id=&cm_id=&pm_id=1501036000a02c5c3739",M=location.href;/^http.*(\/member\/login\.jhtml)$/i.test(M)&&(M="");var N=M;u+=(~u.indexOf("?")?"&":"?")+"redirectURL="+encodeURIComponent(N),_+=(~_.indexOf("?")?"&":"?")+"redirectURL="+encodeURIComponent(N);var A='\n ',J='';return n={status:0,init:function(){this.render()},render:function(){var n=this;t();var a="site-nav-status-login",l="site-nav-status-logout",c="site-nav-multi-menu J_MultiMenu",r="#J_SiteNav",d="#J_SiteNavLogin";i.isLogin()?(o.replaceClass(r,l,a),o.addClass(d,c),s.subscribe("login","show",function(){n.status||(n.status=1,e())})):(o.replaceClass(r,a,l),o.removeClass(d,c))},destroy:function(){this.status=0}}}(),v=function(n){function a(){this.init()}var t=M,e=m,s=o,i=l,v=d,u=c,_=r,g=b.all,h=p;return a.prototype={init:function(){var n=this;this.getTmpl(function(a,s){n.el=g("#J_SiteNavBd"),n.el.html(a),n.bind();var i=n.getGlobalConfig(),o=n.getConfig(s);o=h.merge(o,i),t(o),o.user||e.init(),v.init(s)})},getTmpl:function(n){u.getRegion(function(a){var t=_(a);u.isMainland(a)?n(i(t),a):n(s(t,_),a)})},bind:function(){},getConfig:function(n){var a={};return u.isMainland(n)||(a={siteMap:!1,user:!1}),a},getGlobalConfig:function(){var n=window.g_config||{},a={};return n.footer||(a.footer=!1),a}},new a,n=a}(),u=function(n){return n=v}(),t.exports=u}); } /* FILE ARCHIVED ON 18:36:57 Aug 14, 2018 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 17:35:24 Feb 19, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): exclusion.robots: 0.08 exclusion.robots.policy: 0.068 cdx.remote: 0.109 esindex: 0.011 LoadShardBlock: 1102.736 (6) PetaboxLoader3.resolve: 285.904 (2) PetaboxLoader3.datanode: 533.555 (7) load_resource: 393.244 */