/*! * @version 1.1.13 * @date 2020-01-02 * @generated */ !function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["@mfelibs/base-tools-SUDA"]=t():e["@mfelibs/base-tools-SUDA"]=t()}("undefined"!==typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return i});var r=function(e,t){var n,r,o,i=0;if("utf-16"===(t=t?t.toLowerCase():"")||"utf16"===t)for(r=0,o=e.length;r<\/script>'),document.getElementById("ie-domReady").onreadystatechange=function(){"complete"===this.readyState&&(e=(new Date).getTime(),this.onreadystatechange=null,this.parentNode.removeChild(this))})}();var n="https:"==window.location.protocol?"https://":"http://",o=function(){var o,i,a=window,s=document,u=navigator,c=(u.userAgent,a.screen),f=a.location.href,l=n+"beacon.sina.com.cn/a.gif?",d=n+"beacon.sina.com.cn/e.gif?",p="",h="",v="",m="",g="",w=parseInt((new Date).getTime());"undefined"!==typeof sudaLogConfig&&(p=void 0!==sudaLogConfig.uId?sudaLogConfig.uId:"",h=void 0!==sudaLogConfig.url?sudaLogConfig.url:"","undefined"!==typeof globalConfig&&(v=void 0!==globalConfig.startTime?globalConfig.startTime:t),m=void 0!==sudaLogConfig.ext1?sudaLogConfig.ext1:"",g=void 0!==sudaLogConfig.ext2?sudaLogConfig.ext2:""),p=p||"",i=w-v,o=e-v;var y=function(){for(var e=s.getElementsByName("sudameta"),t=[],n=0;n0?t:0;return n.length>r?n[r].content:""},_=function(e,t,n,r){if(""==e)return"";t+=r=""==r?"=":r;var o=e.indexOf(t);if(o<0)return"";o+=t.length;var i=e.indexOf(n,o);return in&&r.test(e.charAt(t-1));)t-=1;return e.slice(n,t)},A="MT="+(y()||"");if("undefined"!==typeof sudaLogConfig&&"undefined"!==typeof sudaLogConfig.prevPageClickTime&&""!==sudaLogConfig.prevPageClickTime){var O=void 0!==sudaLogConfig.prevPageClickTime?sudaLogConfig.prevPageClickTime:0;A+="|mperform:1|starttime:"+O+"|endtime:"+v+"|clicktime:"+(v-O)}var I,T,L,j,U=s.referrer.toLowerCase(),E="",D=function(){return c.width+"x"+c.height},N=function(){return c.colorDepth||""},P=function(){return u.appCodeName||""},M=function(){return u.appName.indexOf("Microsoft Internet Explorer")>-1?"MSIE":u.appName},R=function(){return u.cpuClass||u.oscpu||""},B=function(){return u.platform||""},z=function(){var e=void 0,t=void 0,n=void 0,r=1,o=u.appName.indexOf("Microsoft Internet Explorer")>-1?"MSIE":u.appName,i=u.appVersion;return"MSIE"==o?(t="MSIE",(e=i.indexOf(t))>=0&&3<=(n=window.parseInt(i.substring(e+5)))&&(r=1.1,4<=n&&(r=1.3))):"Netscape"!=o&&"Opera"!=o&&"Mozilla"!=o||(r=1.3,t="Netscape6",(e=i.indexOf(t))>=0&&(r=1.5)),r},q=function(){var e="";e=u.connection&&u.connection.type?u.connection.type:e;try{s.body.addBehavior("#default#clientCaps"),e=s.body.connectionType}catch(t){e="unkown"}return e},F=function(){return u.systemLanguage||u.language||""},G=function(){return(new Date).getTimezoneOffset()/60||""},V=function(){return""},H=function(){var e=u.plugins,t=u.javaEnabled(),n=void 0;if(1==t)return 1;if(e&&e.length){for(var r in e)if(null!=(n=e[r]).description){if(null!=t)break;-1==n.description.toLowerCase().indexOf("java plug-in")||(t=parseInt(n.version))}}else window.ActiveXObject&&(t=null!=new ActiveXObject("JavaWebStart.IsInstalled"));return t?1:0},J={pageId:function(){return""},sessionCount:function(){return""},excuteCount:function(){return SUDA.sudaCount},referrer:function(){if(""==U||U.match(/^[^\?&#]*.swf([\?#])?/)){var e=_(f,"ref","&","");if(""!=e)return escape(e)}return escape(U)},isHomepage:function(){var e="";try{s.body.addBehavior("#default#homePage"),e=s.body.isHomePage(f)?"Y":"N"}catch(t){e="unkown"}return e},PGLS:function(){return b("stencil")||""},ZT:function(){var e=b("subjectid");return e.replace(",","."),e.replace(";",","),escape(e)},mediaType:function(){return y()||""},domCount:function(){return s.getElementsByTagName("*").length||""},iframeCount:function(){return s.getElementsByTagName("iframe").length},onloadTime:i,readyTime:o,webUrl:h,ch:function(){return window.__docConfig?__docConfig.__domain:""},PE:function(){var e=document.getElementsByName("sudameta")[0];return e?e.content:""}},Z=function(){var e=C("SINAGLOBAL");if(""==e){e=C("Apache");S("SINAGLOBAL",e,3650)}return e},X=function(){var e=C("Apache");if(""==e){var t=new Date;e=1e13*Math.random()+"."+t.getTime(),S("Apache",e)}return e},$=function(){var e=C("Apache"),t=C("ULV").split(":"),n="",r=void 0;if(t.length>=6)if(e!=t[4]){r=new Date;var o=new Date(window.parseInt(t[0]));t[1]=window.parseInt(t[1])+1,r.getMonth()!=o.getMonth()?t[2]=1:t[2]=window.parseInt(t[2])+1,(r.getTime()-o.getTime())/864e5>=7?t[3]=1:r.getDay()1)){var c=n+"passport.sina.cn/sso/islogin?";-1==c.indexOf("?")&&(c+="?");var f=new Date,l={random:Math.random(),time:f.getTime()};s({success:function(e){e.data=e.data||{},e.data.uid||(u("SUBP"),e.data=i),e.data.uname=e.data.nick,e.data.userface=e.data.portrait_url,e.data.uid&&(e.data.islogin=1),e.data.uid&&window.setCookie("sina_ucode",a(e.data.uid),240,"/",".sina.cn"),window.userInfo=e.data,window.getUserInfo.aFn.length>0&&window.getUserInfo.aFn.forEach(function(t){t&&"function"==typeof t&&t(e.data)})},error:function(){window.getUserInfo.aFn.length>0&&window.getUserInfo.aFn.forEach(function(e){e&&"function"==typeof e&&e({})})},url:c,data:l,timeout:3e3})}}};var a=function(e,t){t=t||"encode";for(var n=["a","B","X","M","Z","Y","Q","c","I","p"],r="",o=0,i=e.length;o>2,a=(3&n)<<4|(r=e.charCodeAt(c++))>>4,s=(15&r)<<2|(o=e.charCodeAt(c++))>>6,u=63&o,isNaN(r)?s=u=64:isNaN(o)&&(u=64),t=t+this._keys.charAt(i)+this._keys.charAt(a)+this._keys.charAt(s)+this._keys.charAt(u),n=r=o="",i=a=s=u=""}while(c>4,a=(15&u)<<4|(c=r(d,e[p++]))>>2,s=(3&c)<<6|(f=r(d,e[p++])),o.push(i),64!=c&&-1!=c&&o.push(a),64!=f&&-1!=f&&o.push(s),i=a=s="",u=c=f=""}while(p4e3&&(console.log("\u56de\u9000\u6210\u529f\uff0c\u56de\u9000\u95f4\u9694\u7684\u65f6\u95f4\u662f\uff1a"+r),e&&"function"==typeof e&&e())}this.testVivo()&&window.addEventListener("click",function(t){(function e(t,n){return!!t&&("A"==t.nodeName?t:t!=n&&e(t.parentNode,n))})(t.target,document.body)&&setTimeout(function(){e&&"function"==typeof e&&e()},800)}),"onpageshow"in window&&"onpagehide"in window&&!this.testUA()?(console.log("\u7ed1\u5b9apageshow"),window.addEventListener("pageshow",function(t){console.log(t.persisted,"\u56de\u9000\u53c2\u6570"),t.persisted?(console.log("\u76f4\u63a5\u6267\u884c\u56de\u9000"),e&&"function"==typeof e&&e()):(console.log("\u5355\u6b21\u68c0\u6d4b\u56de\u9000"),n())},!1),window.addEventListener("pagehide",function(e){window.heartbeat_lastInterval=t()},!1)):(console.log("\u5f00\u542f\u56de\u9000\u5b9a\u65f6\u5668"),setInterval(n,800))},add:function(e){"function"==typeof e&&this.queue.push(e)}},window.heartbeat_lastInterval=(new Date).getTime(),window.heartbeat.bind(function(){console.log("\u56de\u9000\u6210\u529f");var t=e.getRecord(),n="";t&&t.href&&-1==t.href.indexOf("//sina.cn")&&(n=t.href),setTimeout(function(){SUDA.log("","twice","",n),window.heartbeat.queue.forEach(function(e){e&&"function"==typeof e&&e()}),window.sinaSax&&window.sinaSax.callback("saxHistory"),window.sinaSax&&window.sinaSax.callback("sendHistoryLog",[2])},300)})}}(),function(){if(-1!=window.location.href.indexOf("wm")){var e,t,n,r=(e=window.location.href,t=new RegExp("wm"+"=(.*?)(&|$)"),null!=(n=e.match(t))?n[1]:"");document.addEventListener("DOMNodeInserted",function(e){var t=void 0;switch(e.target.tagName){case void 0:return;case"A":t=[e.target];break;default:t=e.target.querySelectorAll("a")}o(t)},!1);var o=function(e){for(var t=function(e){var t={};if(e){for(var n=e.split("&"),r=0;r-1;t(s?i.slice(a+1):"").wm||(i=(i=(i=s?i:i+"?")+"&wm="+r).replace("?&","?"),o.setAttribute("href",i))}}}}}(),function(){if(-1!=window.location.href.indexOf("wm")||window.getCookie("wm")){var e,t,n,r="",o=window.sudaLogConfig&&window.sudaLogConfig.wmxp||1;-1!=window.location.href.indexOf("wm")?(e=window.location.href,t=new RegExp("wm"+"=(.*?)(&|$)"),r=null!=(n=e.match(t))?n[1]:"",window.setCookie("wm",r,o,"/",".sina.cn")):(r=window.getCookie("wm"),window.setCookie("wm",r,o,"/",".sina.cn"))}}(),function(){var e=n(3),t=e.crosData,r=e.cookieProtector;if("sina.cn"===location.host){var o=new r({maxSize:600,whiteList:["ustat","genTime","SMART","_SMART","NPIC","xjXName","xjMobile","xjProvince","xjCity","searchHistoryDB","hangqingInfo_username","hangqingInfo_usermobile","share_read_time","yzzx_val","qdz_val","myz_val","carsHistoryV2","complain_searchRecord","ANIMATE_LOGO","NAV_POINT_SHOW_FLAG","WEEK_NO_PUSH","ADD_SCREEN_POP","historyRecord","FAV_PROMPT","isOldUser","palmnews_banner_ch","current_city","w_dc","weather_my_visited","conceive_calendar","tools_job","changtu_my_visited","wm","fromsinago","vt","dfz_location","dfz_loc","SMART","dfz_loc","tabVersion","historyRecord","__utrace","SINAGLOBAL","Apache","ULV","SUP","ustat","SUBP","sina_ucode","SINAVID","lqreferer","lquser"].map(function(e){return{name:e}})});o.on("large",function(e){console.warn(e+" cookie is too large!")}),o.on("illegal",function(e){delCookie(e),console.warn(e+" cookie is too illegal,cookieProtector removed!")}),o.beginProtector()}SUDA.STORE=new t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(10);n.d(t,"cookieProtector",function(){return r.a}),n.d(t,"crosData",function(){return o.a}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r-1){var i=t[o];Object(s.b)(i)>r[o]&&e.emit("large",o,a.a)}else e.emit("illegal",o,a.a)})}}]),t}();t.a=c},function(e,t,n){"use strict";(function(t){var r=n(7);t.version[1]>5&&(r=n(8)),e.exports=r}).call(t,n(6))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],f=!1,l=-1;function d(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&p())}function p(){if(!f){var e=s(d);f=!0;for(var t=c.length;t;){for(u=c,c=[];++l1)for(var n=1;n=0?r=i:(r=n+i)<0&&(r=0);r1?t-1:0),r=1;r1?n-1:0),o=1;o1){if("number"===typeof(i=e({path:"/"},r.defaults,i)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,!0!==i[c]&&(u+="="+i[c]));return document.cookie=t+"="+o+u}t||(a={});for(var f=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,d=0;d=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var f="undefined"===typeof e?"undefined":n(e);if("string"===f&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"weeks":case"week":case"w":return n*s;case"days":case"day":case"d":return n*a;case"hours":case"hour":case"hrs":case"hr":case"h":return n*i;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(e);if("number"===f&&!1===isNaN(e))return t.long?function(e){var t=Math.abs(e);if(t>=a)return c(e,t,a,"day");if(t>=i)return c(e,t,i,"hour");if(t>=o)return c(e,t,o,"minute");if(t>=r)return c(e,t,r,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=a)return Math.round(e/a)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=o)return Math.round(e/o)+"m";if(t>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports={name:"@mfelibs/base-tools-crossdomaindata",version:"1.1.20",description:"",main:"./lib/index.js",module:"./src/index.js",scripts:{test:'echo "Error: no test specified" && exit 1',dev:"marax dev",build:"marax build",lib:"marax lib"},author:"",license:"ISC",dependencies:{"event-pubsub":"^4.3.0","js-cookie":"^2.2.0",lru_map:"^0.3.3","lz-string":"^1.4.4",ms:"^2.1.1",store2:"^2.7.0","url-parse":"^1.3.0"},devDependencies:{"webpack-marauder":"^1.8.3"}}}])});