var flagconsole = location.href.indexOf("console=1")>=0;!flagconsole&&(console.log=console.info=console.debug=function(){});/*! * @version 2.5.423 * @date 2021-12-31 * @generated web */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="https://mjs.sinaimg.cn/wap/project/activities/2.5.423/turnover_card_h5/",n(n.s=143)}([function(t,e){t.exports=window.__SINA_COMMON_PKG__.appSNC},function(t,e){t.exports=window.__SINA_COMMON_PKG__.baseUtils},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;Object(i.a)(this,t),this.root=e,this.margin=this.initMargin(n),this.initObserver()}return Object(a.a)(t,[{key:"initMargin",value:function(t){if("number"===typeof t)return"-"+t+"px";if("object"===typeof t&&t){var e=new Array(4).fill("0px");return Object.keys(t).forEach((function(n){var r="-"+t[n]+"px";"top"===n&&(e[0]=r),"right"===n&&(e[1]=r),"bottom"===n&&(e[2]=r),"left"===n&&(e[3]=r)})),e.join(" ")}}},{key:"initObserver",value:function(){this.observer=new IntersectionObserver((function(t,e){t.forEach((function(t){if(t.isIntersecting){var n=setTimeout((function(){t.target.__cr||e.unobserve(t.target),t.target.__act(t.target),t.target.dataset.__exposured=t.target.__cr?2:1}),t.target.__ts);t.target.__expt=n}else t.target.__expt&&clearTimeout(t.target.__expt)}))}),{root:this.root,rootMargin:this.margin,threshold:[.1]})}},{key:"observe",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.repeat,i=void 0!==r&&r,a=n.threshold,s=void 0===a?300:a;t.__act=e,t.__ts=s,t.__cr=i,this.observer.observe(t)}},{key:"observeAll",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0?(e&&(x=t.substring(n)),t.substring(0,n)):(e&&(x=""),t)}function E(t){for(var e=0,n=0,r=t;e=r.indexOf("<"),n=r.indexOf(">",e),e>=0&&n>=0&&n>e;)r=r.substring(0,e)+r.substring(n+1,r.length);return r}function T(t,e,n){if(null!=e){var r=function(){if(""!=u)return u;var t="",e=w.toLowerCase(),n=e.indexOf("sina.");if(n>0)t="sina.cn";else{var r=e.indexOf(".");if(!(r>0))return"";r+=1,(n=e.indexOf("/",r))<0&&(n=e.length),t=e.substring(r,n)}return u=t,t}();if("undefined"==n||null==n)document.cookie=t+"="+e+"; domain="+r+"; path=/";else{var i=new Date,a=i.getTime();a+=864e5*n,i.setTime(a),a=i.getTime(),document.cookie=t+"="+e+"; domain="+r+"; expires="+i.toUTCString()+"; path=/"}}}function k(){if(!(Math.floor(100*Math.random())0&&o.observeAll(e,(function(t){for(var e=0;e-1?"&":"?";e=e+i+"clicktime="+t+"&userid="+r}if("_blank"==n){var a=window.navigator.userAgent.toLowerCase();/ucbrowser/i.test(a)?window.location.href="ext:wo:"+e+x:/qqbrowser/i.test(a)?window.location.href=e+x:window.open(e+x)}else window.location.href=e+x}),200)}function I(t,e,n){for(var r=0;r=n?null:t}function O(t){var e=t.srcElement||t.target;if(null==e&&e==document)return!1;var n="",i="",a="",s="",o="";if("A"==e.tagName)n="txt",i=E(e.innerHTML),a=S(e.href,!0),o=e.getAttribute("target"),s=e;else if("IMG"==e.tagName){n="img",i=e.alt;var l=I(e,"A",8);l&&(a=S(l.href,!0),o=l.getAttribute("target"),s=l)}else{n="txt",i=E(e.innerHTML);var h=I(e,"A",8);h&&(a=S(h.href,!0),o=h.getAttribute("target"),s=h)}var c="",f=e.tagName,p="",u=!1;try{for(var d=0;d<10&&e!=document;d++){var m=e.getAttribute("data-sudaclick");e.getAttribute("data-sudaexposure");if(m){var g=e.getAttribute("data-sudatagname");if(g)u=!0,g.split(",").forEach((function(t){t.toUpperCase()==f&&(u=!1)}));c=m;for(var v=e.getElementsByTagName("A"),b=0;b30&&(i=i.substr(0,30));var w=(new Date).getTime();a=a.replace(/(\r\n)|(\n)|(\t)|(\<)|(\>)/gim,"");var A={data:{index:p,aid:c,url:encodeURIComponent(a)},action:"_click"};M(B(Object(r.a)({t:n,s:i,h:escape(a+(-1==a.indexOf("?")?"?":"&")+"channel="+y),ct:w,aid:c+"-"+p},C)),a,o,A)}}function B(t){var e="";for(var n in t)t[n]&&(e+=n+"="+t[n]+",");return e.substring(0,e.length-1)}function j(){L(window)}function L(t){for(var e=t.frames,n=0;n0&&(l=t,h=e,n,"function"===typeof window.getUserInfo&&"file:"!==window.location.protocol?window.getUserInfo((function(t){t&&t.uid&&(window.sudaMapConfig.uId=t.uid),k()}),!0):k(),c=!0)},z=function(t){if(!t.name)return!1;if(!c)return console.warn("SIMA has not inited!"),!1;t.type||(t.type="btn"),t.title||(t.title=""),t.index||(t.index=0),t.href||(t.href=window.location.href);var e=(new Date).getTime();M(B(Object(r.a)({t:t.type,s:t.title,h:escape(t.href+(-1==t.href.indexOf("?")?"?":"&")+"channel="+y),ct:e,aid:t.name+"-"+t.index},C)),"",void 0==t.target?"":t.target)};var N="";function H(t){for(var e in t)"string"==typeof t[e]&&(t[e]=t[e].replace(/(\r\n)|(\n)|(\t)|(\<)|(\>)/gim,""),t[e]=t[e].replace(/#/gim,""));return t}"function"===typeof window.getCookie&&(N=window.getCookie(m)||""),"function"!=typeof Object.assign&&(Object.assign=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r-1&&e.splice(n,1)}}function m(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;v(t,n,[],t._modules.root,!0),g(t,n,e)}function g(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,s={};a(i,(function(e,n){s[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var o=f.config.silent;f.config.silent=!0,t._vm=new f({data:{$$state:e},computed:s}),f.config.silent=o,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),f.nextTick((function(){return r.$destroy()})))}function v(t,e,n,r,i){var a=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=r),!a&&!i){var o=y(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){f.set(o,l,r.state)}))}var h=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var a=b(n,r,i),s=a.payload,o=a.options,l=a.type;return o&&o.root||(l=e+l),t.dispatch(l,s)},commit:r?t.commit:function(n,r,i){var a=b(n,r,i),s=a.payload,o=a.options,l=a.type;o&&o.root||(l=e+l),t.commit(l,s,o)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return y(t.state,n)}}}),i}(t,s,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,s+n,e,h)})),r.forEachAction((function(e,n){var r=e.root?n:s+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var i,a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(i=a)&&"function"===typeof i.then||(a=Promise.resolve(a)),t._devtoolHook?a.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):a}))}(t,r,i,h)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,s+n,e,h)})),r.forEachChild((function(r,a){v(t,e,n.concat(a),r,i)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function b(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function w(t){f&&t===f|| /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(f=t)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(t){0},p.prototype.commit=function(t,e,n){var r=this,i=b(t,e,n),a=i.type,s=i.payload,o=(i.options,{type:a,payload:s}),l=this._mutations[a];l&&(this._withCommit((function(){l.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(o,r.state)})))},p.prototype.dispatch=function(t,e){var n=this,r=b(t,e),i=r.type,a=r.payload,s={type:i,payload:a},o=this._actions[i];if(o){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,n.state)}))}catch(h){0}var l=o.length>1?Promise.all(o.map((function(t){return t(a)}))):o[0](a);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,n.state)}))}catch(h){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,n.state,t)}))}catch(h){0}e(t)}))}))}},p.prototype.subscribe=function(t,e){return d(t,this._subscribers,e)},p.prototype.subscribeAction=function(t,e){return d("function"===typeof t?{before:t}:t,this._actionSubscribers,e)},p.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},p.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},p.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),g(this,this.state)},p.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=y(e.state,t.slice(0,-1));f.delete(n,t[t.length-1])})),m(this)},p.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},p.prototype.hotUpdate=function(t){this._modules.update(t),m(this,!0)},p.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(p.prototype,u);var A=E((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=T(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),P=E((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=T(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),x=E((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),C=E((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var a=T(this.$store,"mapActions",t);if(!a)return;r=a.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function S(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function E(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function T(t,e,n){return t._modulesNamespaceMap[n]}function k(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function D(t){try{t.groupEnd()}catch(e){t.log("\u2014\u2014 log end \u2014\u2014")}}function M(){var t=new Date;return" @ "+I(t.getHours(),2)+":"+I(t.getMinutes(),2)+":"+I(t.getSeconds(),2)+"."+I(t.getMilliseconds(),3)}function I(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var O={Store:p,install:w,version:"3.6.2",mapState:A,mapMutations:P,mapGetters:x,mapActions:C,createNamespacedHelpers:function(t){return{mapState:A.bind(null,t),mapGetters:x.bind(null,t),mapMutations:P.bind(null,t),mapActions:C.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var a=t.mutationTransformer;void 0===a&&(a=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var o=t.actionTransformer;void 0===o&&(o=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var h=t.logActions;void 0===h&&(h=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var f=i(t.state);"undefined"!==typeof c&&(l&&t.subscribe((function(t,s){var o=i(s);if(n(t,f,o)){var l=M(),h=a(t),p="mutation "+t.type+l;k(c,p,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",h),c.log("%c next state","color: #4CAF50; font-weight: bold",r(o)),D(c)}f=o})),h&&t.subscribeAction((function(t,n){if(s(t,n)){var r=M(),i=o(t),a="action "+t.type+r;k(c,a,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),D(c)}})))}}};e.a=O}).call(this,n(58))},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n.r(e);var i=n(0),a=n.n(i),s=n(8).default;s.init(window.sudaMapConfig&&window.sudaMapConfig.pageId||2949,100);var o=function(t){var e=function(t){var e=function(t){if(t){for(var e=t.split(","),n={},r=0;r=n?null:t}function c(t){var e=t.srcElement||t.target;if(null==e&&e==document)return!1;var n="",r="";if("A"==e.tagName)"txt",e.getAttribute("target"),r=e;else if("IMG"==e.tagName){"img",n=e.alt;var i=h(e,"A",8);i&&(i.getAttribute("target"),r=i)}else{"txt";var a=h(e,"A",8);a&&(a.getAttribute("target"),r=a)}var s="",l=e.tagName,c="0",f=!1;try{for(var p=0;p<10&&e!=document;p++){var u=e.getAttribute("data-sudaclick");if(u){var d=e.getAttribute("data-sudatagname");if(d)f=!0,d.split(",").forEach((function(t){t.toUpperCase()==l&&(f=!1)}));s=u;for(var m=e.getElementsByTagName("A"),g=0;g30&&(n=n.substr(0,30));(new Date).getTime();o({data:s,index:c})}}function f(){p(window)}function p(t){for(var e=t.frames,n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?i.find("img").attr("src",t.portrait):i.html(''))}if(n.length>0){var a="http://passport.sina.cn/sso/logout?entry=wapsso&vt=4&r="+encodeURIComponent(window.location.href);n.html("\u9000\u51fa").attr("href",a)}}catch(s){console.log(s.message)}}return!1}}window.WapLogin=r;var i=r,a=document,s=window,o={UA:navigator.appVersion.toLowerCase(),uaIDs:{weibo:"weibo",sinanews:"sinanews",qqBrowser:"mqqbrowser/",ucBrowser:"ucbrowser/",baidu:"baidu",weixin:"micromessenger",qq:"qq",iphone:"iphone",ipod:"ipod",safari:/(Safari)\/(.*?)(?:\s{1}|$)/i,other:["crios/","sogou","browser","opera"]},systems:{ios:"ios",android:"android"},personURL:"https://my.sina.cn/?vt=4",sudaLog:function(t){if(SIMA){var e={type:"",name:t,title:"",index:0};"function"==typeof s.suds_count||s.suds_count?s.suds_count&&s.suds_count(obj):SIMA.suda_count&&SIMA.suda_count(e)}},insertDOM:function(t,e){t.append(e)},includeStr:function(t,e){return-1!=t.indexOf(e)},showEle:function(t,e,n){var r=$(t);if(void 0!=typeof isDelay){var i=parseInt(n)>0?parseInt(n):3e3;return e&&r.show(i),void(!e&&r.hide("fast"))}e&&r.show(),!e&&r.hide()},ajaxByJsonp:function(t){var e=a.getElementsByTagName("head")[0],n=a.createElement("script");n.src=t,n.charset="utf-8",e.appendChild(n)},getEvent:function(){if(a.all)return s.event;for(var t=this.getEvent.caller;null!=t;){var e=t.arguments[0];if(e&&(e.constructor===Event||e.constructor===MouseEvent||"object"===typeof e&&e.preventDefault&&e.stopPropagation))return e;t=t.caller}return null},preventEvent:function(t){return t&&t.preventDefault?t.preventDefault():s.event.returnValue=!1,!1},tokenListner:function(){var t=this;$(".re_cancel").each((function(){$(this).on("click",(function(){t.showToken()}))})),$(".re_ok").each((function(){$(this).on("click",(function(){t.showToken(),s.location.href=$(this).data("url")}))}))},insertToken:function(){var t=[];$(".re_box").length<1&&(t.push("
"),t.push('
'),t.push('
\u6536\u85cf\u5931\u8d25!
'),t.push('
'),t.push("
"),t.push("

\u60a8\u5df2\u6536\u85cf\uff0c\u8bf7\u5230\u4e2a\u4eba\u4e2d\u5fc3\u67e5\u770b

"),t.push("
"),t.push('\u77e5\u9053\u4e86'),t.push('\u53bb\u770b\u770b'),t.push("
"),t.push("
"),t.push("
"),this.insertDOM($("body"),t.join("")),this.tokenListner())},showToken:function(t,e){var n=$(".re_box"),r="",i="";n.length<=0&&this.insertToken(),n=$(".re_box"),r=$(".resault_f").eq(0),i=$(".resault_f").eq(1),this.tokenTimer&&clearTimeout(this.tokenTimer),r.hasClass("showFadeAnimate")&&r.html("").hide().removeClass("showFadeAnimate"),i.hasClass("showAnimate")&&(i.find("p").html(""),i.hide().removeClass("showAnimate")),"undefined"!=typeof e&&(e?(r.show().html(t).addClass("showFadeAnimate"),this.tokenTimer=setTimeout((function(){r.html("").hide().removeClass("showFadeAnimate")}),5e3)):e||i.show().addClass("showAnimate").find("p").html(t))},getShowNum:function(t){return t>0?t>1e4?parseInt(t/1e4)+"\u4e07":t:0},checkApp:function(t){return!!this.includeStr(this.UA,t)},isWeiboApp:function(){return this.checkApp(this.uaIDs.weibo)},isSinanews:function(){return this.checkApp(this.uaIDs.sinanews)},isQQBrowser:function(){return this.checkApp(this.uaIDs.qqBrowser)},isSafari:function(){var t=this,e=t.isBaiduBrowser()||t.isQQBrowser()||t.isUCBrowser()||t.isSinanews()||t.isWeiboApp()||t.isWeixinApp(),n=!1;for(var r in t.uaIDs.other){var i=t.uaIDs.other[r];!n&&(n=t.checkApp(i))}return!t.isAndroid()&&t.UA.match(t.uaIDs.safari)&&!e&&!n},isUCBrowser:function(){return this.checkApp(this.uaIDs.ucBrowser)},isBaiduBrowser:function(){return this.checkApp(this.uaIDs.baidu)},isWeixinApp:function(){return this.checkApp(this.uaIDs.weixin)},isQQApp:function(){return this.checkApp(this.uaIDs.qq)&&this.checkApp("nettype")},isAndroid:function(){return this.getPlatform()==this.systems.android},isIOS:function(){return this.getPlatform()==this.systems.ios},getSystem:function(){return this.systems},getPlatform:function(){var t=this.includeStr(this.UA,this.uaIDs.iphone),e=this.includeStr(this.UA,this.uaIDs.ipod);return t||e?this.systems.ios:this.systems.android},getBrowserVersion:function(){var t=this.isUCBrowser(),e=this.isQQBrowser(),n=this.UA,r=0;function i(t){var e=t.split(".");return parseFloat(e[0]+"."+parseInt(e[1]))}return t?r=i(n.split(this.uaIDs.ucBrowser)[1]):e&&(r=i(n.split(this.uaIDs.qqBrowser)[1])),r},getAllPlatformsInfo:function(){return{isWeiboApp:this.isWeiboApp(),isSinanews:this.isSinanews(),isBaiduBrowser:this.isBaiduBrowser(),isWeixinApp:this.isWeixinApp(),isQQApp:this.isQQApp()&&!this.isWeixinApp(),isQQBrowser:this.isQQBrowser()&&!this.isQQApp()&&!this.isWeixinApp(),isUCBrowser:this.isUCBrowser(),isSafari:this.isSafari(),system:this.getPlatform(),version:this.getBrowserVersion()}},getScreenInfo:function(){var t=s.innerWidth,e=s.innerHeight,n=a.documentElement,r=a.body;return{width:t||Math.min(n.clientHeight,r.clientHeight)||320,height:e||Math.min(n.clientHeight,r.clientHeight)||480,scrollTop:r.scrollTop||n.scrollTop||0,scrollLeft:r.scrollLeft||n.scrollLeft||0}},setCookieByDay:function(t,e,n,r,i,a){var s=new Date,o=864e5*n-1e3*(3600*s.getHours()+60*s.getMinutes()+s.getSeconds());return this.setCookie(t,e,o,r,i,a)},setCookie:function(t,e,n,r,i,s){var o=[];if(o.push(t+"="+escape(e)),n){var l=new Date;l.setTime(Date.now()+n),o.push("expires="+l.toGMTString())}r&&o.push("path="+r),i&&o.push("domain="+i),s&&o.push(s),a.cookie=o.join(";")},getCookie:function(t){if(!t)return console.log("missing key, get cookie abort!"),"";t=t.replace(/([\.\[\]\$])/g,"\\$1");var e=new RegExp(t+"=([^;]*)?;","i");return(a.cookie+";").match(e)?RegExp.$1:""},getQueryString:function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),n=window.location.search.substr(1).match(e);return null!==n?unescape(n[2]):null}},l={contentRows:[4,6],contentMax:88,userInfoUrl:window.location.protocol+"//interface.sina.cn/wap_api/wap_get_user_info.d.api?jsoncallback=",animate:["platformShow","sinaShow"],headimgsrc:window.location.protocol+"//n.sinaimg.cn/dae7ff0c/20151008/headimg.png",shareimgsrc:window.location.protocol+"//mjs.sinaimg.cn/wap/online/public/images/addToHome/sina_114x114_v1.png"},h={lower:window.location.protocol+"//3gimg.qq.com/html5/js/qb.js",higher:window.location.protocol+"//jsapi.qq.com/get?api=app.share"},c={shareBase:window.location.protocol+"//mjs.sinaimg.cn/wap/module/share_2.0/201509291635/",personal:window.location.protocol+"//my.sina.cn/?vt=4"},f=window.location.protocol===["h","ttp:"].join(""),p={platformsTo:{sweibo:["SinaWeibo","\u65b0\u6d6a\u5fae\u535a"],friend:["WechatFriends","\u5fae\u4fe1\u597d\u53cb"],fsircle:["WechatTimeline","\u5fae\u4fe1\u670b\u53cb\u5708"]},platformsFrom:{qqfriend:"qqfriend",qqweichat:"qqweichat",ucfriend:"ucfriend",ucweichat:"ucweichat"},ucPlatName:{iweibo:"kSinaWeibo",ifriend:"kWeixin",ifcircle:"kWeixinFriend",asweibo:"SinaWeibo",afriend:"WechatFriends",afcircle:"WechatTimeline"},browserStatus:{forbid:0,lower:1,higher:2},element:{CLASS:{wxShareIco:"j_share_bg",shareBg:"shareBg",shareIcon:"j_share_platform",shareContentZone:"j_icontent",shareBtn:"j_shareBtn",platforms_big:"j_platforms_big",sinaShareContent:"j_sinaShareContent",submitBtn:"j_isunbmit",addFavor:"j_iadd_btn",sinaInfo:"sinaInfo",forbid:"forbid",weiboFollowIcon:"j_wbfollow_btn",weiboFollow:"j_wbfollow"},ID:{sharefloat:"j_sharebox",floatCross:"j_sharecross",shareContentid:"j_ishare_content",sharetitle:"j_shareTitle",sharecnum:"j_ishare_num",spicid:"j_ishare_pic",userInfo:"j_sinaInfo",userName:"j_user_name",userImg:"j_user_img",shareImg:"j_ishare_img",insertDom:["j_com_pics_op","j_com_art_op"]}},shareWeiboContent:l,qqAPISrc:h,paths:c,defaultURL:{share:f?"//o.share.sina.cn/ajshare?vt=4":"//share.sina.cn/aj/ajshare?vt=4",target:f?"//o.share.sina.cn/ajpoint?vt=4":"//share.sina.cn/aj/ajpoint"},floatStatus:{login:0,platlist:1,share:2,fade:3}},u=function(){var t={ios:5.4,android:5.3,lower:5.4},e={ios:10.2,android:9.7},n=p.browserStatus,r={UC:n.forbid,QQ:n.forbid},i=o.getAllPlatformsInfo(),a=o.systems;return function(){var s=i,o=a,l=s.isQQBrowser,h=s.isUCBrowser,c=s.version,f=s.system,p=t,u=e,d=n,m=c>=u.android&&f===o.android,g=c>=u.ios&&f===o.ios,v=c>=p.android&&f===o.android,y=c>=p.lower&&f===o.android,b=c>=p.ios&&f===o.ios;h&&(m||g)?r.UC=d.higher:l&&(y||b)?r.QQ=d.higher:l&&v&&!y&&(r.QQ=d.lower);var w=function(){var t={},e=i,a=r.UC>n.forbid,s=r.QQ>n.forbid,o=e.isWeixinApp,l=e.isWeiboApp,h=e.isQQApp;return t.SinaWeibo=!0,t.WechatFriends=t.WechatTimeline=a||s||o||l||h,t}();for(var A in w)r[A]=w[A];return r}()},d=window;d.sinaCnShare||(d.sinaCnShare={},d.sinaCnShare.myUtility=o,d.sinaCnShare.getBrowserInfo=new u),d.sinaCnShare&&!d.sinaCnShare.wapLogin&&(d.sinaCnShare.wapLogin=new i);var m=n(1),g={shareFromUC:function(t,e){var n={getTop:function(t){var e=t.offsetTop;return null!=t.offsetParent&&(e+=n.getTop(t.offsetParent)),e},getLeft:function(t){var e=t.offsetLeft;return null!=t.offsetParent&&(e+=n.getLeft(t.offsetParent)),e},getCss3offsetTop:function(t){var e=getComputedStyle(t,null).webkitTransform;if("none"===e);else parseInt(e.split(",")[5].replace(")",""));return"BODY"!=t.parentNode.tagName&&(css3offsetTop+=n.getCss3offsetTop(t.parentNode)),css3offsetTop},getCss3offsetLeft:function(t){var e=getComputedStyle(t,null).webkitTransform;if("none"===e);else parseInt(e.split(",")[4]);return"BODY"!=t.parentNode.tagName&&(css3offsetLeft+=n.getCss3offsetLeft(t.parentNode)),css3offsetLeft},getNodeInfoById:function(t){var e=document.getElementById(t);return e?[n.getLeft(e)+n.getCss3offsetLeft(e),n.getTop(e)+n.getCss3offsetTop(e),e.offsetWidth,e.offsetHeight]:""}},r=p.platformsTo,i=p.ucPlatName,a=t.currentURL.indexOf("?")>=0?"&":"?",s=p.platformsFrom,o=t.platform,l=t.url;e&&e(t),"undefined"!=typeof ucweb?setTimeout((function(){ucweb.startRequest("shell.page_share",[t.title,t.content,t.url,t.platform,"","\u6211\u4eec\u6b63\u5728\u770b\u3010"+t.title+"\u3011\uff0c\u4e00\u8d77\u6765\u770b\u5427",n.getNodeInfoById(t.imgID)])}),500):"undefined"!=typeof ucbrowser&&(o===r.sweibo[0]?o=i.iweibo:o===r.friend[0]?(o=i.ifriend,l+=a+"from="+s.ucfriend):o===r.fsircle[0]&&(o=i.ifcircle,l+=a+"from="+s.ucweichat),setTimeout((function(){ucbrowser.web_share(t.title,t.content,l,o,"","",t.imgID)}),500))}},v=u(),y={shareFromQQ:function(t,e){var n=p.platformsTo,r=t.currentURL.indexOf("?")>=0?"&":"?",i=p.platformsFrom,a=t.platform,s=t.url;e&&e(t),a===n.friend[0]?(a=1,s+=r+"from="+i.qqfriend):a===n.fsircle[0]?(a=8,s+=r+"from="+i.qqweichat):a="";var o={title:t.title,description:t.content,url:s,img_url:t.imgSrc,to_app:a};"undefined"!=typeof browser&&"undefined"!=typeof browser.app&&v.QQ===p.browserStatus.higher?browser.app.share(o):"undefined"!=typeof window.qb&&v.QQ===p.browserStatus.lower&&window.qb.share(o)}},b={finishRelate:function(t){return'
\n ')},weiboLayer:function(t){var e=p.element,n=[],r="undefinded"!=typeof userInfo&&userInfo||{},i={uFace:r.userface||p.shareWeiboContent.headimgsrc,uname:r.uname||"\u65b0\u6d6a\u7528\u6237"};return n.push(p.shareWeiboContent.contentMax-t.content.length<0?"notice":""),n.push(p.shareWeiboContent.contentMax-t.content.length),'
\n
\n
\n
\n
\u5206\u4eab\u81f3\u5fae\u535a
\n
\n
\n
    \n
  • \n \n

    ').concat(p.platformsTo.sweibo[1],'

    \n
  • \n
  • \n \n

    ').concat(p.platformsTo.friend[1],'

    \n
  • \n
  • \n \n

    ').concat(p.platformsTo.fsircle[1],'

    \n
  • \n
\n
\n
\n
\n \n \n \n ').concat(i.uname,'\n
\n
\n \n \n \n \n ').concat(n[1],'\u5b57\n
\n\n \n
\n
\n
\n
\n
')},wxTips:function(){var t="//n.sinaimg.cn/default/dae7ff0c/20161228/sharetofriend.png",e=100,n=navigator.userAgent.match(/ios/gi);return window.shareTipsPic&&window.shareTipsPic.android&&window.shareTipsPic.ios&&(t=n?window.shareTipsPic.ios:window.shareTipsPic.android,e="100%"),'
\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t
')}},w={docConfig:"undefined"!==typeof __docConfig&&__docConfig||{},shareCallBack:null,element:p.element,weiboFollowKey:"sinaShareFollowRecord",removeWeiboFollow:function(){var t=this.element;$("."+t.CLASS.weiboFollow).remove()},sendShare:function(t){var e=t.type,n=t.shareContent,r=t.ajaxCBName,i=t.sendCB,a="",s=this.docConfig.__tj_ch?this.docConfig.__tj_ch:"news",l=p.platformsTo,h=e||l.sweibo[0],c=this,f=!parseInt(o.getCookie(c.weiboFollowKey)||"0")&&c.weiboFollowState?"1":"0",u=o.isSinanews()?"1":"0",d=r||"shareCallback",m=parseInt((new Date).getTime()/1e3),g=m+"85e47ac07ac9d6416"+userInfo.uid,v=hex_md5(g),y=encodeURIComponent(function(t,e){var n=arguments.length;-1===t.indexOf("?")?(t+="?",n>1&&(t+=e)):n>1&&(t+="&"+e);return t}(n.shareURL,"wm=3049_all&from=qudao")),b="&csrftime=".concat(m,"&csrfcode=").concat(v,"&title=").concat(encodeURIComponent(n.title),"&content=").concat(encodeURIComponent(n.content),"&pic=").concat(encodeURIComponent(n.imgSrc),"&url=").concat(y,"&isdoc=").concat(n.isdoc||1,"&tj_ch=").concat(s);switch(h){case l.friend[0]:a=n.staticURL+"?load=weixinsingle&jsoncallback=cb0987";break;case l.fsircle[0]:a=n.staticURL+"?load=weixingroup&jsoncallback=cb0987";break;case l.sweibo[0]:parseInt(f)&&(c.setCookieByDay(c.weiboFollowKey,"1",1,"/",".sina.cn"),c.removeWeiboFollow()),a=(n.targetURL||this.shareConfig.targetURL)+"&load=weibo&jsoncallback="+d+"&weibofollow="+f+"&isapp="+u}a+=b,o.ajaxByJsonp(a),n.shareCallBack&&(this.shareCallBack=n.shareCallBack),i&&i(),window.shareCallback=c.shareFinishCallBack.bind(c),window.cb0987=function(t){}},shareFinishCallBack:function(t){var e="",n={};switch(t.code){case-3:e="\u5206\u4eab\u5931\u8d25!";break;case-2:e="\u672a\u767b\u5f55!";break;case-1:e="\u8bf7\u6c42\u975e\u6cd5\uff01";break;case 1:e="\u5206\u4eab\u6210\u529f\uff01";break;default:e="\u672a\u77e5\u72b6\u6001\u7801 "+t.code}"function"===typeof this.shareCallBack?this.shareCallBack():!((n=sinaCnShare.shareWeiboFinish||{})&&n.finishCB&&n.finishCB())&&o.showToken(e,!0),o.sudaLog("public_sinashare_success")}},A=w,P=window;window.ishare=!0;var x=P.sinaCnShare,C=window.location.protocol,S=p.defaultURL.share,E=p.defaultURL.target,T=function(t){this.config=t||{},this.curLink=window.location.href,this.docConfig=P.__docConfig||{},this.shareConfig={imgID:this.config.imgid||"j_ishare_pic",imgClass:this.config.imgClass||"j_cshare_pic",imgSrc:this.config.imgURL||this.docConfig.__mainPic||"",title:this.config.title||this.docConfig.__title||"",content:this.config.content||this.docConfig.__content||"",staticURL:this.config.staticURL||C+E,targetURL:this.config.targetURL||C+S,shareURL:this.config.shareURL||this.docConfig.__shareUrl||this.docConfig.__docUrl||this.curLink,isdoc:this.config.isdoc||this.docConfig.__isdoc||this.docConfig.__gspsId&&1||0},this.shareCallBack="",this.paths=p.paths,this.element=p.element,this.qqAPISrc=p.qqAPISrc,this.ucPlatName=p.ucPlatName,this.floatStatus=p.floatStatus,this.platformsTo=p.platformsTo,this.platformsFrom=p.platformsFrom,this.browserStatus=p.browserStatus,this.shareWeiboContent=p.shareWeiboContent,this.curShareStatus={UC:this.browserStatus.forbid,QQ:this.browserStatus.forbid},this.allPlatformInfo={},this.myLogin=x.wapLogin,this.myUtility=x.myUtility,this.getBrowserInfo=x.getBrowserInfo,this.systems=this.myUtility.getSystem()};T.prototype=x.myUtility,T.prototype={tokenTimer:null,weiboFollowState:!0,getScreenInfo:function(){return this.myUtility.getScreenInfo()},showEle:function(t,e,n){this.myUtility.showEle(t,e,n)},openLogin:function(t,e){this.myLogin.login(!1)},shareHandle:function(t){this.layerStatus(this.floatStatus.fade),this.sendShare(t.platform)},shareFromUC:function(t,e){var n=this.shareConfig.shareURL||t.url;t.currentURL=n,g.shareFromUC(t,e)},shareFromQQ:function(t,e){var n=this.shareConfig.shareURL||t.url;t.currentURL=n,y.shareFromQQ(t,e)},shareFromWeinxin:function(t){var e=Object(m.$)("."+this.element.CLASS.wxShareIco),n=this;this.layerStatus(this.floatStatus.fade),e.length>0?e.show():(n.insertWeiXinTips(),setTimeout((function(){Object(m.$)("."+n.element.CLASS.wxShareIco).show()}),300))},shareFromWeibo:function(t){this.layerStatus(this.floatStatus.fade);try{WeiboJSBridge.invoke("openMenu",{},(function(t,e,n){}))}catch(e){console.log(e.message)}},sendShare:function(t,e,n){var r=this,i=e||this.shareConfig;i.title=i.title||this.shareConfig.title,i.content=i.content||this.shareConfig.content,i.imgSrc=i.imgSrc||this.shareConfig.imgSrc,i.shareURL=i.shareURL||this.shareConfig.shareURL,this.shareCallBack&&(i.callback=this.shareCallBack.bind(this)),A.sendShare({type:t,ajaxCBName:n,shareContent:i,sendCB:function(){r.layerStatus(r.floatStatus.fade)}})},callWeiboFloat:function(){var t=this.shareWeiboContent,e=this.shareConfig,n=t.contentMax-e.content.length,r=this.element;Object(m.$)("#"+r.ID.shareContentid).text(e.content),Object(m.$)("#"+r.ID.sharecnum).html(n),n<0?(Object(m.$)("#"+r.ID.sharecnum).addClass("notice"),Object(m.$)("."+r.CLASS.submitBtn).addClass(r.CLASS.forbid)):(Object(m.$)("#"+r.ID.sharecnum).removeClass("notice"),Object(m.$)("."+r.CLASS.submitBtn).removeClass(r.CLASS.forbid)),Object(m.$)("#"+r.ID.shareImg).attr("src",e.imgSrc),this.layerStatus(this.floatStatus.share)},getUserInfo:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){window.checkLogin()&&getUserInfo((function(t){userInfo.islogin=1,userInfo.userface=t.userface,userInfo.uname=t.uname,userInfo.uid=t.uid}))})),hideWeixinTimer:new Date,insertWeiXinTips:function(){var t=Object(m.$)("."+this.element.CLASS.wxShareIco),e=this;if(t.length<=0){var n=b.wxTips();this.myUtility.insertDOM(Object(m.$)("body"),n)}(t=Object(m.$)("."+this.element.CLASS.wxShareIco)).unbind("touchend",(function(){Object(m.$)(this).hide()})),t.bind("touchend",(function(t){t.preventDefault(),e.hideWeixinTimer=new Date,Object(m.$)(this).hide()}))},updateShareContent:function(t){var e=this.shareConfig,n=Object(m.$)("title"),r={findById:Object(m.$)("#"+e.imgID).length>0&&Object(m.$)("#"+e.imgID).attr("src"),findByClass:Object(m.$)("."+e.imgClass).length>0&&Object(m.$)("."+e.imgID).eq(0).attr("src")},i={imgID:e.imgID,title:e.title||n.html(),content:e.content||n.html(),imgSrc:e.imgSrc||this.docConfig.__mainPic||r.findById||r.findByClass||e.imgSrc||this.shareWeiboContent.shareimgsrc,url:e.shareURL,platform:t?t.data("platform")||t.parents("."+this.element.CLASS.shareIcon).data("platform"):""};return e.title=i.title,e.content=i.content,e.imgSrc=i.imgSrc,i},resetShareConfig:function(t){var e=t,n=this.shareConfig,r=this.element.ID;this.shareConfig.imgID=e.imgid||n.imgID,this.shareConfig.imgClass=e.imgClass||n.imgClass,this.shareConfig.imgSrc=e.imgSrc||n.imgSrc,this.shareConfig.title=e.title||n.title,this.shareConfig.content=e.content||n.content,this.shareConfig.staticURL=e.staticURL||n.staticURL,this.shareConfig.targetURL=e.targetURL||n.targetURL,this.shareConfig.shareURL=e.shareURL||n.shareURL,this.shareConfig.isdoc=e.isdoc||n.isdoc,Object(m.$)("title").html(this.shareConfig.title),Object(m.$)("#"+r.shareContentid).html(this.shareConfig.content),Object(m.$)("#"+r.shareImg).attr("src",this.shareConfig.imgSrc)},switchSharePlatform:function(t){var e=this.allPlatformInfo;e.isUCBrowser?this.shareFromUC(t,this.shareHandle.bind(this)):e.isSafari&&"undefined"!==typeof x.safari?(this.layerStatus(this.floatStatus.fade),this.sendShare(t.platform),x.safari.goSafariShare()):e.isQQBrowser?this.shareFromQQ(t):e.isWeixinApp||e.isQQApp?this.shareFromWeinxin(t):e.isWeiboApp&&this.shareFromWeibo(t)},showToken:function(t,e){this.myUtility.showToken(t,e)},insertShareFloat:function(){var t=b.weiboLayer(this.shareConfig);Object(m.$)("body").append(t),this.initFloatListner()},curTop:0,floatZoneStatus:function(t,e,n){var r=Object(m.$)(t),i=n===this.floatStatus.platlist?r.find("li"):r,a=e?1:0,s=this.shareWeiboContent,o=e?s.animate[0]:"",l=e?"block":"none";e?(r.css({opacity:0}),setTimeout((function(){r.css({opacity:a})}),250),i.css({"-webkit-animation-name":o,opacity:a,display:l}),i!==r&&r.css({display:l})):(i.css({"-webkit-animation-name":o,opacity:a,display:l}),r.css({opacity:a,display:l}))},updateUserInfo:function(){Object(m.$)("#"+this.element.ID.userImg).find("img").attr("src",userInfo.userface),Object(m.$)("#"+this.element.ID.userName).html(userInfo.uname)},hideBody:function(t){for(var e=Object(m.$)(document.body),n=e.children(),r=0;r1&&(this.shareCallBack=e),t&&(s=this.updateShareContent()),Object(m.$)("."+n.CLASS.shareBg).length<=0&&this.insertShareFloat(),this.showToken(),r.isWeixinApp||r.isWeiboApp?this.switchSharePlatform(s):a.QQ===i.forbid&&a.UC===i.forbid&&!r.isSafari||r.isWeixinApp?this.layerStatus(this.floatStatus.share):this.layerStatus(this.floatStatus.platlist)},wantShareToWB:function(t,e){var n=this,r=t||null;this.updateShareContent(),window.sendToWBCB=function(t){e&&e(t)};var i=function(){n.sendShare("",r,e&&"sendToWBCB")};window.userInfo?i():this.openLogin(i)},floatFocusListner:function(){Object(m.$)("."+this.element.CLASS.weiboFollow).on("click",(function(){}))},floatPlatformListner:function(){Object(m.$)("."+this.element.CLASS.shareIcon).on("click",(function(){}))},floatCloseListner:function(){var t=this;Object(m.$)("#"+this.element.ID.floatCross).on("click ",(function(){t.layerStatus(t.floatStatus.fade)}))},floatContentListner:function(t){var e=this.element,n=Object(m.$)("."+e.CLASS.sinaShareContent),r=Object(m.$)("."+e.CLASS.shareContentZone),i=Object(m.$)("#"+e.ID.shareContentid),a=Object(m.$)("#"+e.ID.sharecnum),s=Object(m.$)("."+e.CLASS.submitBtn),o=this.shareWeiboContent,l=this.shareConfig,h=this.myUtility.getScreenInfo().height,c=this,f=function(){if("block"===n.css("display")){var t=document.getElementById(e.ID.shareContentid).value,r=o.contentMax-t.length;a.html(r),r<0||r===o.contentMax?(a.addClass("notice"),s.addClass(e.CLASS.forbid)):(a.removeClass("notice"),s.removeClass(e.CLASS.forbid)),l.content=t}};t?(Object(m.$)("#"+e.ID.shareContentid).on("click tap",(function(){i.html();c.showToken(),i.focus()})).on("keyup",f).focus((function(){r.css({height:"85px"}),Object(m.$)(this).attr("rows",o.contentRows[0]),Object(m.$)(".sharebox").css({"margin-top":"40px"}),Object(m.$)(".shareBg").css("height",h+50+"px")})).blur((function(){Object(m.$)(this).attr("rows",o.contentRows[1]),Object(m.$)(".sharebox").css({"margin-top":"10px"}),Object(m.$)(".shareBg").css("height",h+10+"px")})),document.addEventListener("touchend",f,!1)):(r.css({height:"140px"}),i.attr("rows",o.contentRows[1]))},floatSubmitListner:function(){var t=this,e=this.element;Object(m.$)("."+e.CLASS.submitBtn).each((function(){Object(m.$)(this).on("click",(function(){t.showToken(),Object(m.$)(this).hasClass(e.CLASS.forbid)||t.sendShare(t.platformsTo.sweibo[0])}))}))},initFloatListner:function(){var t=this.myUtility.getScreenInfo().height;this.floatPlatformListner(),this.floatCloseListner(),this.floatContentListner(!0),this.floatSubmitListner(),this.floatFocusListner(),Object(m.$)("."+this.element.CLASS.shareBg).css("height",t+50+"px")},toggleWeiboFollow:function(){var t=this,e=t.element,n=Object(m.$)("."+e.CLASS.weiboFollowIcon);n.length>0&&(n.hasClass("on")?(n.removeClass("on"),t.weiboFollowState=!1):(n.addClass("on"),t.weiboFollowState=!0))},shareListner:function(){var t=this;Object(m.$)("."+t.element.CLASS.shareBtn).on("click tap",(function(){})),window.addEventListener("click",(function(e){var n=e.target||t.myUtility.getEvent().target,r=Object(m.$)(n),i="#j_comment_nav",a=t.element,s=t.platformsTo,o=t.allPlatformInfo.isUCBrowser,l=(new Date).getTime()-t.hideWeixinTimer.getTime()>500,h=r.parents("."+a.CLASS.shareIcon),c=h.length>0?t.updateShareContent(h):t.updateShareContent(r);(r.hasClass(a.CLASS.weiboFollow)||r.parent("."+a.CLASS.weiboFollow).length>0)&&t.toggleWeiboFollow(),r.hasClass(a.CLASS.shareBtn)||r.parents("."+a.CLASS.shareBtn).length>0||r.hasClass("j_share_btn")||r.parents(".j_share_btn").length>0?(t.myUtility.preventEvent(e),t.wantShare()):l&&(r.hasClass(a.CLASS.shareIcon)||h.length>0)&&(Object(m.$)("."+a.CLASS.shareBg).length<=0&&t.insertShareFloat(),t.showToken(),c.platform===s.sweibo[0]?t.callWeiboFloat():o?(t.showEle(i,!1),t.shareFromUC(c),setTimeout((function(){t.showEle(i,!0)}),600)):t.switchSharePlatform(c));var f=Object(m.$)("#ST_outLogin_mask"),p=Object(m.$)("#j_sharebox"),u="#j_sharecross";f.length>0&&p.length>0&&"none"!==p.css("display")&&("none"!==f.css("display")?t.showEle(u,!1):"none"===f.css("display")&&t.showEle(u,!0))}))},initUtility:function(){this.getUserInfo(),this.shareListner()},initBrowserVersion:function(){this.curShareStatus=this.getBrowserInfo},loadQQAPI:function(){var t=this.allPlatformInfo.isQQBrowser,e=this;if(t){var n=this.qqAPISrc,r=this.curShareStatus.QQ\n ').concat(n[r].title,"\n ");if(t)return e.listStr=t,b.finishRelate(e)}function z(t){var e=document.querySelector(".M_share_rebox.j_shareFinish"),n=document.body,r=document.querySelector("html");window.iscrollToTop=window.iscrollToTop||0,t?(window.iscrollToTop=window.scrollY,o.sudaLog(k),e&&e.classList.remove("hide"),n.style.overflow="hidden",n.style.marginTop="-".concat(window.iscrollToTop,"px"),r.style.position="fixed",r.style.height="100%",r.style.width="100%",r.style.overflow="hidden"):(e&&e.classList.add("hide"),n.style.overflow="auto",n.style.marginTop="0",r.style.position="relative",r.style.overflow="auto",window.iscrollToTop&&window.scrollTo(0,window.iscrollToTop))}function N(){var t=F();if(!t)return!1;var e=function(t,e){if(t&&"object"===typeof e){var n=j.createElement(t);for(var r in e)"innerHTML"!==r?n.setAttribute(r,e[r]):n[r]=e[r];return n}}("section",{class:"M_share_rebox j_shareFinish",innerHTML:t});return j.body.appendChild(e),z(!0),document.addEventListener("click",(function(t){var e=t.target;if(e.classList.contains("popup_share_clo")&&(z(!1),o.sudaLog(O)),e.classList.contains("j_share_unshow")){z(!1),o.sudaLog(I);var n=7,r=o.getQueryString("testLeftTime");r&&(n=parseInt(r)/1440),o.setCookieByDay(L,"1",n,"/",".sina.cn")}if(e.parentElement.classList.contains("popup_share_feed_txt")||e.classList.contains("popup_share_feed_txt")){var i=e.parentElement.classList.contains("popup_share_feed_txt")&&e.parentElement||e.classList.contains("popup_share_feed_txt")&&e;if(!i)return;var a=i.getAttribute("data-href");z(!1),window.location.href=a}})),window._sinaCallEvent&&window._sinaCallEvent.trigger("sina_bind_target"),!0}var H={finishCB:function(){var t=j.querySelector(".j_shareFinish.M_share_rebox"),e=!1;if(!o.getCookie(L))return $("."+p.element.CLASS.wxShareIco).hide(),t?(z(!0),e=!0):e=N(),e}};B.sinaCnShare&&(B.sinaCnShare.shareWeiboFinish=H);var R={_type:function(t){var e=typeof t;return"object"===e?Object.prototype.toString.call(t).match(/\[object (.*)\]/)?RegExp.$1.toLowerCase():"other":e},_extend:function(t,e,n){for(var r in n=n||!1,e)(e.hasOwnProperty(r)&&!t.hasOwnProperty(r)||!n)&&(t[r]=e[r])},generateUid:function(t){var e=["A","z","C","E","d","H","j","v","k","L"],n=(new Date).getTime();return(t=t||"")+function(){var t=""+parseInt(1e4*Math.random());return[].map.call(t,(function(t){return e[t]})).join("")}()+n},setCookie:function(t,e,n,r,i,a){var s=[];if(s.push(t+"="+escape(e)),n){var o=new Date;o.setTime(Date.now()+n),s.push("expires="+o.toGMTString())}r&&s.push("path="+r),i&&s.push("domain="+i),a&&s.push(a),doc.cookie=s.join(";")},getCookie:function(t){if(!t)return console.log("missing key, get cookie abort!"),"";t=t.replace(/([\.\[\]\$])/g,"\\$1");var e=new RegExp(t+"=([^;]*)?;","i");return(doc.cookie+";").match(e)?unescape(RegExp.$1):""}},G=function(){var t={};function e(t){return{listener:[],isLive:t||!1,liveEvents:[]}}return{on:function(t,n,r){this.eventMap||(this.eventMap={});var i=this.eventMap,a={},s=null;r=r||!1;if(i.hasOwnProperty(t)||(i[t]=e(r)),s=i[t],a=function(t,e){var n=t.listener,r={};return!n.every((function(t){return t.func!==e||(r=t,!1)}))||(r={func:e,liveIndex:0},n.push(r)),r}(i[t],n),r&&s.liveEvents.length>0&&a.liveIndex-1&&(window.jsBridge={process:function(t){console.log(t)}});var X=window,V=document,Q={get cnf(){return!this._cnf&&(this._cnf={actionMap:["unknow","comment","share","initShareInfo","open_comment","collection","login","newLogin","subscription","mpSubscription","constellation","skip","font-change","switch-daynight","update-constellation","car","scheme","appoint_match","appoint_query","reserved","search-keywords","forbidShowShare","confirmLogin","pageTimeout","get_deviceinfo","getDeviceStatus","activity-info","setAPPSearchKeywords","changeSearchKeyStatus","reloadPage","wdReadContinue","closePage","callPhone","searchGifInfo","jumpSysPushSetting","getSysPushSetting","getAppPushSetting","setAppPushSetting","onPageLifeCycle","refreshFeed","openApp","getAppCommonInfos","URLNavigateTo"],methods:["comment","share","initShareInfo","open_comment","collection","login","newLogin","subscription","mpSubscription","constellation","skip","car","scheme","appoint_match","appoint_query","reserved","searchKeywords","forbidShowShare","confirmLogin","pageTimeout","getDeviceInfo","getDeviceStatus","activityInfo","setAPPSearchKeywords","changeSearchKeyStatus","reloadPage","wdReadContinue","closePage","callPhone","searchGifInfo","jumpSysPushSetting","getSysPushSetting","getAppPushSetting","setAppPushSetting","refreshFeed","openApp","getAppCommonInfos","URLNavigateTo"],clientEventMap:["font-change","switch-daynight","update-constellation","search-keywords","get_deviceinfo","activity-info","searchGifInfo","onPageLifeCycle"],iframeProtocol:"jsBridge://",whiteCB:["share","initShareInfo","appoint_match","appoint_query","reserved","getDeviceStatus","login","newLogin","confirmLogin","changeSearchKeyStatus","searchGifInfo","jumpSysPushSetting","getSysPushSetting","getAppPushSetting","setAppPushSetting","onPageLifeCycle","refreshFeed","openApp","getAppCommonInfos","URLNavigateTo"]}),this._cnf},set cnf(t){return"object"===R._type(t)&&(!this._cnf&&this.cnf,Object.keys(t).forEach((function(e){this._cnf[e]=t[e]}))),t},init:function(t){navigator.userAgent.match(/sinanews/gi)&&(t&&(this.cnf=t),this.checkDepend()&&this.initListen())},initListen:function(){var t=this.cnf,e=this;t.clientEventMap.forEach((function(t){if(t){var n={method:"addEventListener",event:t,callback:"try{newsAppBridge.trigger('"+t+"',[data]);}catch(e){}"};e.on(t,e._proxy.bind(Q,t)),e._request(n)}})),t.methods.forEach((function(t){e.on("call_"+t,e._proxy.bind(Q,t))}))},checkDepend:function(){var t=this.cnf;return t.protolType="unknow",X.jsBridge&&"function"===R._type(X.jsBridge.process)?(t.protolType="jsBridge",this.enable=!0):!!navigator.userAgent.toLowerCase().match(/iphone|ipod|ipad/)&&(t.protolType="iframe",this.enable=!0)},_request:function(t,e,n){if(this.enable){var r=this.cnf;n=n||3e3;var i=R.generateUid(),a=null,s=null;if("function"===R._type(e)&&(X[s="h5appCallback"+i]=function(t){delete X[s],e(t)}.bind(window),R._extend(t,{callback:"try{window['"+s+"']([data])}catch(err){console.log(err)}"})),t=JSON.stringify(t),"jsBridge"===r.protolType)X.jsBridge.process(t);else{var o="jsBridge"+i;X[o]=t,(a=V.createElement("iframe")).src=r.iframeProtocol+o,a.style.display="none",r.iframeProtocol&&o&&V.body.appendChild(a),setTimeout((function(){document.body.removeChild(a)}),3e3)}}},_proxy:function(t,e,n){var r=this.cnf;if(r.actionMap&&-1!==r.actionMap.indexOf(t)){var i={data:{action:t},callback:"",method:"requestCallback"},a="undefined"!==typeof e&&e||{};switch(t){case"onPageLifeCycle":this.trigger("call_setPageLifeCycle",a);break;case"font-change":this.trigger("call_setFontSize",a);break;case"switch-daynight":this.trigger("call_dayNight",a);break;case"update-constellation":this.trigger("call_upConstellation",a);break;case"search-keywords":this.trigger("call_searchKeywords",a);break;case"activity-info":this.trigger("call_activityInfo",a);break;case"get_deviceinfo":this.trigger("call_getDeviceInfo",a);break;case"share":case"initShareInfo":R._extend(i.data,{url:a.url||location.href,title:a.title||V.title,pic:a.pic||"http://mjs.sinaimg.cn/wap/online/public/images/addToHome/mil_114x114_v1.png",intro:a.intro||V.title});break;case"comment":R._extend(i.data,{url:a.url||location.href,newsid:a.cmntid||"fxqaffy3538394",channel:a.ch||V.title,mid:""});break;case"open_comment":R._extend(i.data,{url:location.href,newsid:"fxqaffy3538394",channel:V.title,title:"test"});break;case"setAPPSearchKeywords":R._extend(i.data,{newKeyWords:a});break;case"changeSearchKeyStatus":R._extend(i.data,{keyWords:a.keyWords,code:a.code});break;case"subscription":R._extend(i.data,{url:a.url,channelId:a.channelId});break;case"searchGifInfo":R._extend(i.data,{gifType:a.gifType,gifLink:a.gifLink,gifId:a.gifId,gifSearchKey:a.gifSearchKey});break;case"skip":R._extend(i.data,{url:a.url});break;case"URLNavigateTo":case"getAppCommonInfos":case"openApp":case"refreshFeed":case"collection":case"wdReadContinue":case"closePage":case"callPhone":case"scheme":case"appoint_match":case"appoint_query":case"reserved":R._extend(i.data,a);break;case"jumpSysPushSetting":case"getSysPushSetting":case"getAppPushSetting":case"setAppPushSetting":case"reloadPage":case"pageTimeout":case"confirmLogin":case"login":case"newLogin":case"constellation":case"car":case"getDeviceStatus":case"forbidShowShare":case"mpSubscription":break;default:return}this.cnf.whiteCB.indexOf(t)>-1?this._request(i,n||function(e){console.log(t+" event CB : "+JSON.stringify(e))}):this._request(i)}}};R._extend(Q,G()),Q.init(),X.newsAppBridge=Q;var U=Q,Y=function(t){try{var e,n=nt(t);if(e=q(t,n))return e;if(e=W(t,n))return e;if(e=_(t,n))return e;if(e=et(t,n))return e;if(e=J(t,n))return e}catch(r){}return!1},J=function(t,e){if("kandian"!=e&&"k"!=e&&"i.k.nodejs-pre"!=e)return!1;var n=t.match("/article_([0-9a-zA-Z]+)_([0-9a-zA-Z]+).html");if(n&&n[1]&&n[2]){var r=n[2].substring(0,1);return"p"==r?n[1]+"-"+n[2]+"-hdpic-mp":"m"==r?n[1]+"-"+n[2]+"-video-mp":n[1]+"-"+n[2]+"-cms-mp"}return!1},q=function(t,e){var n=t.match("-i([a-z]{7}[0-9]{7})"),r=n?n[1]:"";if(r&&e){var i=K(t,r,e);return i||((i=Z(t,r,e))?i:("v"==e&&(e="video"),r+"-comos-"+e+"-cms"))}},K=function(t,e,n){return"yd"==n&&e+"-"+(rt(t,"mid")||0)+"-comos-original"},Z=function(t,e,n){return"top"==n&&e+"-comos-consice"},W=function(t,e){var n=!1;if("cj"==e){var r=t.match("/article/detail/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)"),i=t.match("/articles/view/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)");if(r&&r[1]&&r[2]&&(n=r[1]+"-"+r[2]+"-cj-cjtop"),i&&i[1]&&i[2]){var a=i[2].split("")[0];switch(n=i[1]+"-"+i[2]+"-cj-",a){case"p":n+="hdpic-mp";break;case"m":n+="video-mp";break;default:n+="cms-mp"}}}else if("t.cj"==e){var s=t.match("/articles/view/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)");if(s&&s[1]&&s[2]){var o=s[2].split("")[0];switch(n=s[1]+"-"+s[2]+"-tcj-",o){case"p":n+="hdpic-mp";break;case"m":n+="video-mp";break;default:n+="cms-mp"}}}return n},_=function(t,e){var n=tt(t,e);return!!n&&n+"-blog"},tt=function(t,e){if("blog"!=e)return!1;var n=t.match("dpool/blog/s/blog_(.*?).html");return!(!n||!n[1])&&n[1]},et=function(t,e){if("photo"!=e&&"i.photo.nodejs-pre"!=e)return!1;var n=t.match("album_([0-9_]*).htm");return!(!n||!n[1])&&n[1].replace(/\_/g,"-")+"-hdpic"},nt=function(t){var e=t.indexOf(".com.cn")>-1?t.match("://([a-zA-Z0-9-.]{0,61}).sina.com.cn"):t.match("://([a-zA-Z0-9-.]{0,61}).sina.cn");return e?e[1]:""},rt=function(t,e){if(-1==t.indexOf(e))return"";for(var n=t.split("?")[1].split("&"),r=0;r"+t;else{var n=document.createElement("div");n.style="position:fixed;z-index:9999;bottom:0;height:150px;background:rgba(0,0,0,0.7);padding:10px;font-size:18px;color:#FFF;",n.innerHTML=t,n.id="logShow",document.body.appendChild(n)}var r=document.body;r.innerHTML=t+"
"+r.innerHTML}var ct={_cnf:{typeMap:{news:"news",live:"live",subject:"subject",bigEvent:"bigEvent",hdPhoto:"photo",h5:"h5",YZB:"YZB"},_parentClass:"j_appHandle"},_isLock:!1,_lockTime:150,_callTimeout:2e3,_getInfo:function(t){if(t){var e=t.dataset,n=e.calltype,r=this._cnf.typeMap,i={},a=!0;if(n){switch(n){case r.news:e.id&&(a=!1),i.newsid=e.id;break;case r.live:e.id&&(a=!1),i.id=e.id,i.matchid=e.matchid||"";break;case r.subject:case r.bigEvent:case r.hdPhoto:case r.YZB:e.id&&(a=!1),i.id=e.id;break;case r.h5:e.url&&(a=!1),i.url=e.url}i.type=e.exttype||"",a||this._isLock||this._goNative(i,e.url)}}},_goNative:function(t,e){this._isLock=!0,newsAppBridge.trigger("call_scheme",t),this._clearLock()},_callFail:function(t){at._isCallFailTimer=setTimeout(t,this._callTimeout),at.onblur=function(){ot&&ht("blur"),clearTimeout(at._isCallFailTimer)},at.onfocus=function(){ot&&ht("focus")}},_clearLock:function(){var t=this;setTimeout((function(){t._isLock=!1}),t._lockTime)},_findParent:function(t,e,n){if(t){for(var r=n||8,i=t;i&&r&&"HTML"!=i.tagName;){if(i.classList.contains(e))return i;i=i.parentElement,r--}return null}},_addEvent:function(){var t=this;at.addEventListener("click",(function(e){var n=e.target,r=t._findParent(n,t._cnf._parentClass);r&&t._getInfo(r)}))},_checkhref:function(){if(lt){var t=st.querySelectorAll("a."+this._cnf._parentClass);t.length>0&&Array.prototype.slice.call(t).forEach((function(t){var e=t.href,n=it(e);e.match(/javascript\:/gi)||(n?(t.setAttribute("data-calltype","news"),t.setAttribute("data-id",n)):(t.setAttribute("data-calltype","h5"),t.setAttribute("data-url",e)),t.href="javascript:;")}))}},_init:function(){this._addEvent(),this._checkhref()}};ct._init();var ft=ct;U.jumpToAppEvt=ft._init.bind(ft);var pt=navigator.userAgent.toLocaleLowerCase().match(/iphone/gi);window.SNC={openApp:function(t){var e=t.params,n=t.success;try{U.trigger("call_openApp",[e||{},n])}catch(r){console.log("Sinanews JSSDK openApp API ERR : ",r.message)}},login:function(t){var e=t.success;try{var n=pt?"call_login":"call_newLogin";U.trigger(n,[{},e])}catch(r){console.log("Sinanews JSSDK login API ERR : ",r.message)}},forbidShowShare:function(){try{U.trigger("call_forbidShowShare",[{}])}catch(t){console.log("Sinanews JSSDK forbidShowShare API ERR : ",t.message)}},initShareInfo:function(t){var e=t.params;try{var n={url:e.url||window.location.href,title:e.title||document.title,pic:e.pic||"",intro:e.intro||"",isSendActivityCommonApi:0};U.trigger("call_initShareInfo",[n]),console.log("Sinanews JSSDK initShareInfo success!")}catch(r){console.log("Sinanews JSSDK initShareInfo API ERR : ",r.message)}},goShare:function(t){var e=t.params,n=t.success;try{var r={url:e.url||window.location.href,title:e.title||document.title,pic:e.pic||"",intro:e.intro||"",isSendActivityCommonApi:0};U.trigger("call_share",[r,n]),console.log("Sinanews JSSDK goShare success!")}catch(i){console.log("Sinanews JSSDK goShare API ERR : ",i.message)}},onPageLifeCycle:function(t){var e=t.success;try{U.on("call_setPageLifeCycle",e,!0),console.log("Sinanews JSSDK onPageLifeCycle success!")}catch(n){console.log("Sinanews JSSDK onPageLifeCycle API ERR : ",n.message)}},getAppCommonInfos:function(t){var e=t.params,n=t.success;try{U.trigger("call_getAppCommonInfos",[e,n]),console.log("Sinanews JSSDK getAppCommonInfos success!")}catch(r){console.log("Sinanews JSSDK getAppCommonInfos API ERR : ",r.message)}},URLNavigateTo:function(t){var e=t.params;try{U.trigger("call_URLNavigateTo",[e]),console.log("Sinanews JSSDK URLNavigateTo success!")}catch(n){console.log("Sinanews JSSDK URLNavigateTo API ERR : ",n.message)}}};var ut=window,dt=ut.sinaCnShare.myUtility,mt=ut.sinaCnShare.main;ut.setShareInfo=function(t){if(dt.isSinanews()){"sinanews";try{newsAppBridge.trigger("call_initShareInfo",[t])}catch(e){console.log(e.message)}}else dt.isWeixinApp()&&("wx",ut._wxShareConfig=t,ut.initWxInfo());mt.resetShareConfig({title:t.title,imgSrc:t.imgUrl,content:t.desc,shareURL:t.link})},ut.goShare=function(t,e){if(dt.isSinanews()){"sinanews";try{newsAppBridge.trigger("call_share",[t])}catch(n){console.log(n.message)}}else mt.resetShareConfig(t),mt.wantShare(!0,e)};e.a={setInfo:setShareInfo,goShare:goShare}},function(t,e,n){var r=n(7),i=r({}.toString),a=r("".slice);t.exports=function(t){return a(i(t),8,-1)}},function(t,e){t.exports=!1},function(t,e,n){var r,i=n(17),a=n(90),s=n(49),o=n(33),l=n(96),h=n(64),c=n(50),f=c("IE_PROTO"),p=function(){},u=function(t){return"