webpackJsonp([13],{105:function(t,e,i){"use strict";$(function(){$.fn.extend({carousel:function(t){if(!(t&&t.action&&t.eventType))return!1;t=$.extend({time:0,lazyLoadImg:".dt-carousel-img"},t);var e,i,a=$(document),n=$(this),o=$(t.action),r=0|t.time,s=function(e){var i,a,s,l,u;if(o.removeClass("cur"),o.eq(e).addClass("cur"),n.each(function(t,e){s=$(e),s.hasClass("cur")&&(l=s)}),l){if(u=n.eq(e),i=u.find(t.lazyLoadImg),i.length&&(a=i.attr("data-src"),a&&i.css({"background-image":"url("+a+")"})),n.index(l)!==e){switch(t.animateType){case"move":l.removeClass("cur"),u.addClass("cur");var p,f=$(t.carouselWrap);p=0!==e?"-"+e+"00%":"0%",f.stop(!0,!0),f.animate({left:p});break;default:if(t.fadeElement){var m=l.find(t.fadeElement),v=u.find(t.fadeElement);m.stop(!0,!0),v.stop(!0,!0),l.removeClass("cur"),u.addClass("cur"),m.css({display:"block"}).fadeOut(1e3),v.css({display:"none"}).fadeIn(1e3)}else l.stop(!0,!0),u.stop(!0,!0),l.removeClass("cur").css({display:"block"}),u.addClass("cur").css({display:"none"}),l.fadeOut(1e3),u.fadeIn(1e3)}t.callback&&t.callback(e,l,u,d,c)}0!==r&&d()}},c=function(){clearTimeout(e)},d=function l(){clearTimeout(e),e=setTimeout(function(){var e=$(t.action+".cur"),a=o.index(e[0]);i=a===n.length-1?0:a+1,s(i),l()},r)};t.left&&t.right&&a.delegate(t.left,"click",function(e){var a=$(t.action+".cur"),c=o.index(a[0]);i=0===c?n.length-1:c-1,s(i),0!==r&&d()}).delegate(t.right,"click",function(e){var a=$(t.action+".cur"),c=o.index(a[0]);i=c===n.length-1?0:c+1,s(i),0!==r&&d()}),a.delegate(t.action,t.eventType,function(t){var e=($(this),o.index(this));s(e)}),0!==r&&d()}})})},17:function(t,e,i){"use strict";!function(){$.G&&!$.G.reTop&&($.G.reTop=function(){var t,e=$(window),i=e.width(),a=e.height(),n=$.browser,o=(n.msie&&"6.0"===n.version,n.webkit,!1),r=$("#dt-side-combo"),s=$("#dt-backtotop");if(!s.length){r=$('
').sidepop({id:"dt-side-combo",dockSide:"right",width:44,height:44,scroll:1,departure:10,baseline:"bottom",bias:80,isFixed:!0,scrollDelayTime:100,zIndex:1e4,btnset:0}),r=r.parent().parent(),r.addClass("vh");$("#dt-side-combo");s=$("#dt-backtotop"),s.click(function(t){t.preventDefault();o=!0,$("body,html").animate({scrollTop:0},200,function(){o=!1}),r.css("display","none")});var c=function(i){clearTimeout(t),o||(t=window.setTimeout(function(){var t=e.scrollTop();t>100?r.stop().css({display:"block"}).animate({opacity:1},300):r.stop().animate({opacity:0},300,function(){r.css("display","none")}),i&&$({}).delay(300).queue(function(){r.removeClass("vh")})},100))};e.scroll(c),c(!0);var d=function(){var t=17,e=i+t;if(1120>=e||e>1262&&1336>=e)r.css({left:"auto",right:10,marginLeft:0});else{var a=1262>=e?490:612;r.css({left:"50%",marginLeft:a})}};d(),e.resize(function(){i=e.width(),a=e.height(),d()})}},$(function(){$.G.reTop()}))}()},26:function(t,e,i){"use strict";!function(t){var e={type:"",id:"",commentId:""};t.extend(t.fn,{feedback:function(i){var a=t.extend(e,i),n=t(this);if(n.length&&0!=a.id&&""!=a.id){var o,r=!!t.G.getUSERID(),s={article:204,feed_video:207,atlas:205,blog:201,articleComment:203,atlasComment:206,feedVideoComment:206,blogComment:206},c={article:window.location.protocol+"//"+window.location.host+"/article/?id="+a.id,articleComment:window.location.protocol+"//"+window.location.host+"/article/?id="+a.id+"&comment_id="+a.commentId,feed_video:window.location.protocol+"//"+window.location.host+"/p/feedvideo/?id="+a.id,feedVideoComment:window.location.protocol+"//"+window.location.host+"/p/feedvideo/?id="+a.id+"&comment_id="+a.commentId,atlas:window.location.protocol+"//"+window.location.host+"/p/atlas/?id="+a.id,atlasComment:window.location.protocol+"//"+window.location.host+"/p/atlas/?id="+a.id+"&comment_id="+a.commentId,blog:window.location.protocol+"//"+window.location.host+"/blog/?id="+a.id,blogComment:window.location.protocol+"//"+window.location.host+"/blog/?id="+a.id+"&comment_id="+a.commentId},d=s[a.type],l=c[a.type],u="",p=function(e){var i=t("#dt-report-dialog");if(0==i.length){var a='\n
\n
\n
\n
\n - 抄袭/未授权转载
\n - 淫秽低俗不能忍!
\n - 广告!垃圾内容!
\n - 骂人是不对的!
\n - 其他
\n
\n
\n
\n \n
\n
确定\n
';t("#win-house").append(a),e()}else e()},f=function(){var e=t("#dt-report-dialog"),i=e.find(".report-reason"),a=e.find(".report-reason input"),n=e.find(".report-detail");a.val(""),e.off("click"),e.find(".report-reason").removeClass("active"),e.on("click",".report-reason",function(){t(this).hasClass("active")?t(this).removeClass("active"):t(this).addClass("active")}),e.on("click",".report-reason .reason-item",function(e){e.stopPropagation(),e.preventDefault(),a.val(t(this).text()),i.removeClass("active"),"其他"==a.val()?n.show():n.hide()}),e.on("click",".submit",function(){var t=n.find("textarea").val();u=""==t?a.val():t,""!=u&&(SUGAR.PopOut.closeMask(),m(e,a))})},m=function(e){var i=e.find(".submit"),n=e.find(".report-reason input");if(!i.hasClass("locked")){i.addClass("locked");var r={nickname:a.nickname,flag:d,msg:u,refer_url:l};t.ajax({url:"/napi/feedback/",type:"POST",data:r,success:function(e){1===e.status?(n.val(""),clearTimeout(o),o=setTimeout(function(){SUGAR.PopOut.alert('举报成功
')},500),t({}).delay(1500).queue(function(){SUGAR.PopOut.closeMask()})):(clearTimeout(o),o=setTimeout(function(){SUGAR.PopOut.alert('举报失败 请稍候再试
')},500),t({}).delay(1500).queue(function(){SUGAR.PopOut.closeMask()}))}}).always(function(){i.removeClass("locked")})}};return n.on("click",function(){a.nickname=r?USER.username:"",p(function(){f(),SUGAR.PopOut.alert(["举报",t("#dt-report-dialog")],1)})}),n}}})}($)},5:function(t,e,i){"use strict";var a=i(2),n=i(4),o=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;n.registerHelper("ifCond",function(t,e,i,a){switch(e){case"==":return t==i?a.fn(this):a.inverse(this);case"===":return t===i?a.fn(this):a.inverse(this);case"<":return i>t?a.fn(this):a.inverse(this);case"<=":return i>=t?a.fn(this):a.inverse(this);case">":return t>i?a.fn(this):a.inverse(this);case">=":return t>=i?a.fn(this):a.inverse(this);case"!=":return t!=i?a.fn(this):a.inverse(this);case"&&":return t&&i?a.fn(this):a.inverse(this);case"||":return t||i?a.fn(this):a.inverse(this);default:return a.inverse(this)}}),n.registerHelper("math",function(t,e,i,a){return t=parseFloat(t),i=parseFloat(i),{"+":t+i,"-":t-i,"*":t*i,"/":t/i,"%":t%i}[e]}),n.registerHelper("if",function(t,e){return t?e.fn(this):e.inverse(this)}),n.registerHelper("duitang",function(t){return"http://www.duitang.com/"+t}),n.registerHelper("timePattern",function(t){var e=(new Date).getTime(),i=1e3*t-e;if(i>0){var a=Math.floor(i/1e3/3600/24),n=Math.floor(i/1e3/3600-24*a),o=Math.floor((i-1e3*(60*n*60-24*a*3600))/1e6/60);return a+"天"+n+"时"+o+"分"}}),n.registerHelper("promotionDone",function(t,e){var i=(new Date).getTime(),a=1e3*t-i;return 0>a||e?"done":""}),n.registerHelper("promotionUrl",function(t,e,i){var a=(new Date).getTime(),n=1e3*e-a;return 0>n||i?"javascript:;":"/shopping/temaihui/detail/"+t+"/?__urlopentype=pageweb"}),n.registerHelper("taobaoUrl",function(t,e,i){var a=(new Date).getTime(),n=1e3*e-a;return 0>n||i?"javascript:;":t}),n.registerHelper("truncate",function(t,e){var i=$.trim(t).substring(0,e);return i}),n.registerHelper("pcjump",function(t,e){var i=(new Date).getTime(),a=1e3*t-i,n=navigator.userAgent.toString().toLowerCase(),o=(!!n.match(/ipad/gi),!!n.match(/iphone/gi)),r=!!n.match(/android/gi);return 0>a||e?"target=_self":o||r?"":"target=_blank"}),n.registerHelper("dtImageTrans",function(t,e,i,n,r){var s,c=$.trim(t).replace(/^http(s)?:\/\//gi,""),c=c.split("/"),d=c[0],c=c[1];return-1==d.indexOf("duitang.com")||!c||"uploads"!=c&&"misc"!=c?t:(e?(i=i||0,n=n||0,r=r?"_"+r:"",s=a.dtImageTrans(t).replace(/(\.[a-z_]+)$/gi,".thumb."+i+"_"+n+r+"$1")):s=t.replace(/(?:\.thumb\.\w+|\.[a-z]+!\w+)(\.[a-z_]+)$/gi,"$1"),o||(s=s.replace(/_webp$/i,"")),s)}),n.registerHelper("plus",function(t,e){return t+e}),n.registerHelper("exist",function(t,e){return t?e.fn(this):e.inverse(this)}),n.registerHelper("HbCut",function(t,e){return a.cut(t,e)}),n.registerHelper("HbContent",function(t,e){var i=a.trimLink(t),n=i;return n}),n.registerHelper("HbAddParam",function(t,e,i){return a.addParam(t,e,i)}),n.registerHelper("HbAddParamOpenTypePageWeb",function(t){return a.addParam(t,"__urlopentype","pageweb")}),n.registerHelper("HbInc",function(t){return parseInt(t)+1}),n.registerHelper("htmlescape",function(t){t=n.Utils.escapeExpression(t);var e=/(\n)/gi;return e.test(t)&&(t=t.replace(e,"
").replace(/\r/,"").replace(/\s/gi," ")),new n.SafeString(t)})},506:function(t,e,i){"use strict";i(17),i(105);var a=i(4);i(5);var n=i(507),o=n.fetchDynamicList,r=n.fetchFeedList;i(65),i(26),i(508);var s=i(2);$(function(){function t(){$.ajax({url:"/napi/people/badge/user/list/by_top/",type:"GET",mysuccess:function(t){1===t.status&&(f(t),h())}}).always(function(){})}function e(){$.ajax({url:"/napi/ad/banner/list/",type:"GET",data:{ad_id:"WEB001"},mysuccess:function(t){1===t.status&&d(t)}}).always(function(){})}function i(t){t.find(".dynamic-feed-item").each(function(t,e){var i=$(e);if(!i.hasClass("hasExposure")){var a=i.visible(!0,!1,"vertical");a&&(i.addClass("hasExposure"),s.digy("FEED","EXPOSE",n(i)))}})}function n(t){var e={scene_id:"selection"==I?"1":"2",type:t.data("type"),id:t.data("id"),feed_id:t.data("feedid"),trace_id:t.data("traceid"),trace_info:t.data("traceinfo")};return e}function c(t){var e="",i="__urlopentype=pageweb",a=new RegExp("\\?"+i+"(=[^&]*)?"),n=new RegExp("\\&"+i+"(=[^&]*)?");return e=t.replace("duitang://","https://").replace(/\/life\_artist\/article\//g,"/article/").replace(/\/atlas\/detail\//g,"/p/atlas/").replace(/\/album\/detail\//g,"/album/").replace(a,"?").replace(n,"").replace(/\?&/,"?").replace(/\?$/,"")}function d(t){var e=$("#carousel-tmpl").html(),i=a.compile(e);t.data.length=t.data.object_list.length+"00%;",$(t.data.object_list).each(function(t,e){e.image_url=$.G.dtImageTrans(e.image_url,!0,760,380,"c"),e.link=c(e.target)});var n=i(t.data);$("#dt-carousel").empty().append(n),$(".dt-carousel-item").carousel({action:".dt-carousel-point",eventType:"click",time:6e3,fadeElement:".dt-carousel-img",left:".dt-carousel-action-left",right:".dt-carousel-action-right",animateType:"move",carouselWrap:".dt-carousel-content",callback:function(t,e,i,a,n){var o=i.find(".dt-carousel-title").html(),r=$(".dt-carousel-action-title");r.html(o),$(".dt-carousel-item").mouseover(function(){n()}).mouseout(function(){a()})}})}function l(t,e,i){var a=$(".selection-detail"),n=a.find(".content-detail");if(a.attr("locked",1),e)if(USER.ID)var o="/napi/vienna/feed/list/by_recommend/";else var o="/napi/vienna/feed/list/by_common/";else if(USER.ID)var o="/napi/vienna/feed/list/by_read/";else var o="/napi/vienna/feed/list/by_common/";var s={url:o,first:e,refresh:i};r(s,function(o,r){return a.find(".my-loading").hide(),t&&a.attr("locked",0),n.find(".loading").remove(),e&&(a.find(".view-more").show(),0===r.feedList.length)?void l(void 0,!1,!0):(0===r.feedList.length?(n.html('暂无内容
'),a.attr("nomore",1).find(".view-more").hide()):(i&&n.empty(),n.append(o),a.find(".view-more").show(),p($(".more-action-list .report"))),0==r.more&&a.attr("nomore",1).find(".view-more").hide(),v(),void $(".more-action").each(function(t){}))})}function u(t,e,i){var a=$(".attention-detail"),n=a.find(".content-detail");if(a.attr("locked",1),USER.ID){var r="/napi/vienna/useractivity/followee/",s={url:r,first:e,refresh:i};o(s,function(e,o){a.find(".my-loading").hide(),n.find(".loading").remove(),t&&a.attr("locked",0),0===o.dynamicList.length?(n.html('暂无内容
'),a.attr("nomore",1).find(".view-more").remove()):(i&&n.empty(),n.append(e),a.find(".view-more").show(),p($(".more-action-list .report"))),0==o.more&&a.attr("nomore",1).find(".view-more").remove(),v()})}else window.location.href="/login/"}function p(t){t.each(function(t,e){var i=$(e),a=i.closest(".dynamic-feed-item"),n=a.data("type"),o=a.data("id");i.feedback({type:n,id:o})})}function f(t){var e=$("#daren-tmpl").html(),i=a.compile(e);$(t.data.object_list).each(function(t,e){e.avatar=$.G.dtImageTrans(e.avatar,!0,80,80,"c"),this.identity.indexOf("personal_certify")>=0?this.isIdentity=!0:this.isIdentity=!1,"1"==e.friendShip?e.isFollowed=!0:e.isFollowed=!1});var n=i(t.data);$(".dt-daren-list").empty().append(n)}function m(t){0==t.find(".view-more").length&&t.append($('查看更多
'))}function v(){var t;T.on("mouseenter",".gif-img",function(e){var i=$(e.target),a=i.attr("src");t=setTimeout(function(){/\.gif_jpeg/.test(a)&&(a=a.replace(".gif_jpeg",".gif"),i.parent(".gif-img").addClass("move"),i.attr("src",a))},200)}),T.on("mouseleave",".gif-img",function(e){var i=$(e.target),a=i.attr("src");clearTimeout(t),/\.gif$/.test(a)&&(a=a.replace(".gif",".gif_jpeg"),i.parent(".gif-img").removeClass("move"),i.attr("src",a))})}function h(){T.off("click",".daren-follow").on("click",".daren-follow",function(t){var e,i=$(t.target),a=i.data("userid");e=i.hasClass("active")?!0:!1,$.ajax({url:e?"/napi/people/unfollow/":"/napi/people/follow/",type:"POST",data:{user_id:a},success:function(t){1===t.status&&(e?(i.removeClass("active"),i.text("关注")):(i.addClass("active"),i.text("已关注")))}})})}function g(){if("selection"==I){l(!0,!1);var t=$(".selection-detail");t.find(".content-detail").append(''),t.find(".view-more").remove()}else{u(!0,0);var t=$(".attention-detail");t.find(".content-detail").append(''),t.find(".view-more").remove()}}function _(t,e,i){var a=t?{resource_type:i,resource_id:e}:{favorite_id:e},n=t?"/napi/favorite/add/":"/napi/favorite/remove/";return new Promise(function(t,e){$.ajax({url:n,type:"POST",data:a,mysuccess:function(e){t(e)}})})}function b(t,e,i){var a={category:i,object_id:e},n=t?"/napi/like/":"/napi/unlike/";return new Promise(function(t,e){$.ajax({url:n,type:"POST",data:a,mysuccess:function(e){t(e)}})})}function y(){$.ajax({url:"/napi/vienna/useractivity/update_count/",method:"GET",success:function(t){1===t.status&&t.data.count>0&&$(".content-tabs").find(".attention").addClass("unread").find("span").html("新动态")}})}var w,k,T=$(document),x=!1,I="selection",C=!!$.G.getUSERID(),E="https://b-ssl.duitang.com/uploads/item/201804/23/20180423144103_3RcMy.png",q="https://b-ssl.duitang.com/uploads/item/201804/23/20180423141044_kt5Rj.png",G="https://b-ssl.duitang.com/uploads/item/201804/23/20180423122004_sYcGR.png",j="https://b-ssl.duitang.com/uploads/item/201804/23/20180423141044_YizTc.png",D={},S=void 0;$("#dt-carousel").on("a","mousedown",function(){var t=$(this),e=t.closest("#dt-carousel").find("a"),i=e.index(t);$.G.gaq("/_trc/NIdex/_/focus_"+i+"__"+$(this).attr("href"))}),$("#dt-slider").on("a","mousedown",function(t){$.G.gaq("/_trc/NIdex/_/story_entry__"+$(this).attr("href"))}),T.on(".dt-woo-list a","mousedown",function(t){$.G.gaq("/_trc/NIdex/_/category_entry__"+$(this).attr("href"))}),$("#dt-enter").on("a","mousedown",function(){var t=$(this),e=t.closest("#dt-enter").find("a"),i=e.index(t);$.G.gaq("/_trc/NIdex/_/guide_entry_"+i)}),$("#dt-hot").on("a","mousedown",function(){$.G.gaq("/_trc/NIdex/_/hot_activ_entry__"+$(this).attr("href"))}),$(".dt-album").on("a","mousedown",function(){$.G.gaq("/_trc/NIdex/_/albums_entry__"+$(this).attr("href"))}),$(".wxlink").on("mouseover",function(t){clearTimeout(w);var e=$(this).position().left+10,i=$(this).position().top+25,a=$('');a.appendTo("body").fadeIn(),$(".weixinpopout").css({position:"absolute",top:i,left:e})}),$(".wxlink").on("mouseout",function(t){w=setTimeout(function(){$(".weixinpopout").animate({opacity:0},function(){$(this).remove()})},400)}),T.find("a").each(function(t,e){var i=$(e);i.data("href",i.attr("href"))}),T.on("body > a","click",function(){var t=$(this).attr("href");$.G.gaq("/_trc/Error/_/adclick_to_"+t)}),T.on("mousedown","a",function(t){var e=$(this),i=e.attr("href"),a=e.data("href");a&&i!=a&&$.G.gaq("/_trc/Error/_/adclick_change_"+i)}),T.on("click",".dt-daren .change-daren",function(){$.ajax({url:"/napi/people/badge/user/list/by_random/",type:"GET",success:function(t){f(t),h()}})}),T.on("click",".view-more",function(){g()}),window.setTimeout(function(){for(var t=$("body").children(),e=$(window).width(),i=0;5>i;i++){var a=t.eq(-i-1);if(a.hasClass("dn")||"script"==a.get(0).tagName.toLowerCase())break;if(!a.hasClass("dt-side-combo")&&!a.hasClass("blockUI")&&a.outerWidth()>0&&a.offset().left=T.height()-200;"1"!=a&&"1"!=e&&n&&"0"==t.attr("locked")&&g()}),T.on("click",".digy-visit",function(t){var e=$(t.target).closest(".dynamic-feed-item");s.digy("FEED","VISIT",n(e))}),T.on("click",".favorite-action",function(t){var e=$(this),i=e.parent().data("type"),a=e.parent().data("id"),o=e.data("favoriteid"),r=!e.hasClass("active");return C?void _(r,r?a:o,i).then(function(t){e.toggleClass("active").data("favoriteid",t.data.id);var i=r?G:j;e.find("img").attr("src",i);var a=parseInt(e.find("span").text()),o=a?r?a+1:1==a?"收藏":a-1:1;if(e.find("span").text(o),r){var c=e.closest(".dynamic-feed-item"),d=n(c);d.bhv_value="collect",s.digy("FEED","BEHAVIOR",d)}}):void SUGAR.PopOut.login()}),T.on("click",".like-action",function(t){var e,i=this,a=$(this),o=a.parent().data("type");switch(o){case"article":e=3;break;case"atlas":e=5;break;case"feed_video":e=6}var r=a.parent().data("id"),c=!a.hasClass("active");return C?void b(c,r,e).then(function(t){a.toggleClass("active");var e=c?E:q;a.find("img").attr("src",e);var o=parseInt($(i).find("span").text()),r=o?c?o+1:1==o?"赞":o-1:1;if(a.find("span").text(r),c){var d=a.closest(".dynamic-feed-item"),l=n(d);l.bhv_value="like",s.digy("FEED","BEHAVIOR",l)}}):void SUGAR.PopOut.login()}),T.on("mouseenter",".more-action",function(){S=$(this).parent().parent().find(".more-action-list"),S.on("mouseenter",function(){clearTimeout(D)}),S.on("mouseleave",function(){D=setTimeout(function(){S.hide().animate({height:0},100)},200)}),clearTimeout(D),"none"==S.css("display")&&S.show().animate({height:140},100)}),T.on("mouseleave",".more-action",function(){D=setTimeout(function(){S.hide().animate({height:0},100)},200)}),l(void 0,!0),USER.ID&&(u(void 0,1),x=!0),t(),y(),e()})},507:function(t,e,i){"use strict";function a(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e/g,">"),e+=t[i]}return e}var r=a(["",""],["",""]),s=i(0),c=i(2),d=1,l=2,u=3,p=4,f=5,m="long-img",v="gif-img",h="",g="https://b-ssl.duitang.com/uploads/item/201804/23/20180423144103_3RcMy.png",_="https://b-ssl.duitang.com/uploads/item/201804/23/20180423141044_kt5Rj.png",b="https://b-ssl.duitang.com/uploads/item/201804/23/20180423122004_sYcGR.png",y="https://b-ssl.duitang.com/uploads/item/201804/23/20180423141044_YizTc.png",w=function(){var t=s(".people-avatar img").attr("src"),e=s(".people-name a").text(),i=s("#people-detail").data("userid");return{avatar:t,username:e,userId:i}},$={start:Date.now(),limit:18,more:1,dynamicList:[]},k={start:0,limit:18,more:1,feedList:[]},T=function(t){var e;k.start=t.next_start,k.more=t.more,(e=k.feedList).push.apply(e,n(t.object_list.map(j)))},x=function(t){var e=(t.more,t.next_start,t.object_list);$.start=t.next_start,$.more=t.more,D(e)},I=function(t){var e=t.num,i=t.show_blog_volist,a=t.album_name,n=t.album_id,o=t.sender,r=i.slice(0,6).map(function(t){var e=t.blog_id,i=t.photo;return{blog_id:e,photo_path:i.path}});o.avatar=c.dtImageTrans(path,!0,200,200,"c");var s={favorite_count:t.favorite_count,favorite_id:t.favorite_id,comment_count:t.comment_count,like_count:t.like_count,like_id:t.like_id},l=parseInt(e),u=l>6,p=l-6,f={type:d,album_name:a,blogs:r,haveMore:u,moreNum:p,id:n,sender:o,social:s};return f},C=function(t){var e=t.atlas,i=t.id,a=t.trace_info,n=e.blogs,o=e.album,r=e.id,s=e.desc,d=e.sender,u=(o.name,o.count,{favorite_count:e.favorite_count,favorite_id:e.favorite_id,comment_count:e.comment_count,like_count:e.like_count,like_id:e.like_id}),p=1==n.length;d.avatar=c.dtImageTrans(d.avatar,!0,200,200,"c");var f=n.slice(0,9).map(function(t){var e=t.id,i=t.photo,a=i.height,n=i.width,o=i.path,r="",s=h;if(p){var d=parseInt(a*(400/n));d>600?(r=c.dtImageTrans(o,!0,400,670,"a"),s=m):204>d?(r=c.dtImageTrans(o,!0,400,227,"c"),s=S(o)):(r=c.dtImageTrans(o,!0,400,d,"c"),s=S(o))}else r=o,s=S(o);return{blog_id:e,photo_path:r,img_type:s}});p&&(f=f[0]);var v={type:l,album_desc:s,blogs:f,singleImg:p,feed_id:i,trace_info:a,id:r,sender:d,social:u};return v},E=function(t){var e=t.feed_video,i=t.id,a=t.trace_info,n=e.id,o=e.title,r=e.upload_video,s=e.sender,d=r.cover,l={favorite_count:e.favorite_count,favorite_id:e.favorite_id,comment_count:e.comment_count,like_count:e.like_count,like_id:e.like_id};s.avatar=c.dtImageTrans(s.avatar,!0,200,200,"c");var p=d.photo_path,f={type:u,feed_id:i,trace_info:a,id:n,title:o,photo_path:p,sender:s,social:l};return f},q=function(t){var e=t.id,i=(t.resource_info,t.trace_info),a=t.article,n=a.cover,o=a.title,r=a.id,s=a.sender,d={favorite_count:a.favorite_count,favorite_id:a.favorite_id,comment_count:a.comment_count,like_count:a.like_count,like_id:a.like_id};s.avatar=c.dtImageTrans(s.avatar,!0,200,200,"c");var l=n.cover_desc,u=n.photo_path,f={type:p,cover_desc:l,photo_path:u,title:o,feed_id:e,trace_info:i,id:r,sender:s,social:d};return f},G=function(t){var e=t.feed_vo_list,i=e[0],a=i.id,n=i.trace_info,o=e[0].atlas,r=o.blogs,s=o.album,d=o.id,l=o.desc,u=o.sender;s.name,s.count;u.avatar=c.dtImageTrans(u.avatar,!0,200,200,"c");var p={favorite_count:e[0].atlas.favorite_count,favorite_id:e[0].atlas.favorite_id,comment_count:e[0].atlas.comment_count,like_count:e[0].atlas.like_count,like_id:e[0].atlas.like_id},v=1==r.length,g=r.slice(0,9).map(function(t){var e=t.id,i=t.photo,a=i.height,n=i.width,o=i.path,r="",s=h;if(v){var d=parseInt(a*(400/n));d>600?(r=c.dtImageTrans(o,!0,400,670,"a"),s=m):204>d?(r=c.dtImageTrans(o,!0,400,227,"c"),s=S(o)):(r=c.dtImageTrans(o,!0,400,d,"c"),s=S(o))}else r=o,s=S(o);return{blog_id:e,photo_path:r,img_type:s}});v&&(g=g[0]);var _={type:f,album_desc:l,blogs:g,singleImg:v,feed_id:a,trace_info:n,id:d,sender:u,social:p};return _},j=function(t){var e=t.date_str,i=t.resource_info,a=void 0,n={};if(!t.type)switch(t.resource_type){case"atlas":t.type=l,t.data=t,e=i;break;case"article":t.data=t,t.type=p,e=i;break;case"feed_video":t.data=t,t.type=u,e=i}switch(t.type){case d:n=I(t.data),a="album";break;case l:n=C(t.data),a="atlas";break;case u:n=E(t.data),a="feed_video";break;case p:n=q(t.data),a="article";break;case f:n=G(t.data),a="atlas"}return Object.assign({},n,{date_str:e,data_type:a,resource_info:i})},D=function(t){var e;(e=$.dynamicList).push.apply(e,n(t.map(j)))},S=function(t){var e="";return/\.gif/g.test(t)&&(e=v),e},H=function(t,e){var i=t.refresh;k.feedList=[],s.ajax({url:t.url,type:"GET",data:{start:i?0:k.start,limit:k.limit},success:function(t){var i=t.status,a=t.data,n=a.more,o=a.object_list;if(1===i)if(T(a),1===n&&0===o.length);else{var r=N(k);e(r,k)}}})},R=function Q(t,e){var i=t.first,a=t.refresh;$.dynamicList=[],s.ajax({url:t.url,type:"GET",data:{start:a?Date.now():$.start,limit:$.limit,first:a?1:i?1:0},success:function(i){var a=i.status,n=i.data,o=n.more,r=n.object_list;if(1===a)if(x(n),1===o&&0===r.length)Q(t,e);else{var s=B($);e(s,$)}}})},A=function(t,e){var i=t.id,a=t.avatar,n=t.username;return'\n "},L=function(t){var e=t.social,i=void 0,a=void 0,n=void 0,o=void 0;switch(t.data_type){case"atlas":o=t.singleImg?t.blogs.photo_path:t.blogs[0].photo_path,n=t.album_desc,i="http://service.weibo.com/share/share.php?appkey=1152390549&title="+n+"&url=http%3A//"+location.host+"/p/atlas/%3Fid%3D"+t.id+"&pic="+o,a="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A//"+location.host+"/p/atlas/%3Fid%3D"+t.id+"&title="+n+"&pics="+o;break;case"feed_video":o=t.photo_path,n=t.title,i="http://service.weibo.com/share/share.php?appkey=1152390549&title="+n+"&url=http%3A//"+location.host+"/p/feedvideo/%3Fid%3D"+t.id+"&pic="+o,a="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A//"+location.host+"/p/feedvideo/%3Fid%3D"+t.id+"&title="+n+"&pics="+o;break;case"article":o=t.photo_path,n=t.title,i="http://service.weibo.com/share/share.php?appkey=1152390549&title="+n+"&url=http%3A//"+location.host+"/article/%3Fid%3D"+t.id+"&pic="+o,a="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A//"+location.host+"/article/%3Fid%3D"+t.id+"&title="+n+"&pics="+o}return'\n
\n
\n
\n
'+(e.like_count>0?e.like_count:"赞")+'\n
\n\n
\n
\n
'+(e.favorite_count>0?e.favorite_count:"收藏")+'\n
\n
\n
\n
更多\n
\n
\n\n
\n
'},O=function(t,e){var i=e.singleImg;return i?P(t,e):z(t,e)},P=function(t,e){var i=e.date_str,a=e.album_desc,n=e.blogs,s=e.feed_id,c=e.trace_info,d=e.id,l=e.sender,u=n.photo_path,p=(n.blog_id,n.img_type),f=u;p==v&&(f=u+"_jpeg");var m=o(r,a);return'\n
\n '+A(l,i)+'\n
'+m+'
\n
\n
\n \n \n
\n '+L(e)+"\n
"},z=function(t,e){var i=e.date_str,a=e.album_desc,n=e.blogs,s=e.feed_id,d=e.trace_info,l=e.id,u=e.sender,p=o(r,a),f=n.reduce(function(t,e,i){var a=e.photo_path,n=(e.blog_id,e.img_type),o=c.dtImageTrans(a,!0,300,300,"c");n==v&&(o+="_jpeg");var r=i%3===0,s=t+('\n \n ');return s},"");return'\n
\n '+A(u,i)+'\n
'+p+'
\n
\n
\n '+f+"\n
\n \n
\n "+L(e)+"\n
\n "},U=function(t,e){var i=e.date_str,a=e.album_name,n=e.blogs,o=e.haveMore,r=e.moreNum,s=e.id,d=e.sender,l=r+6,u=n.reduce(function(t,e,i){var a=e.photo_path,n=e.blog_id,s=c.dtImageTrans(a,!0,300,300,"c"),d=i%3===0,l=t+('\n \n '+(5===i&&o?'+ '+r+"
":"")+"\n ");return l},"");return'\n
\n '+A(d,i)+'\n
\n 更新专辑 \n '+a+'\n
\n
\n '+u+'\n
\n
\n '+(r+6>9?'":"")+"\n \n
\n "+L(e)+"\n "},F=function(t,e){var i=e.feed_id,a=e.trace_info,n=e.date_str,o=e.title,r=e.photo_path,s=e.id,d=e.sender,l=c.dtImageTrans(r,!0,400,228,"c");return'\n
\n '+A(d,n)+'\n
'+o+'
\n
\n
\n '+L(e)+"\n
"},M=function(t,e){var i=e.date_str,a=(e.cover_desc,
e.photo_path),n=e.title,o=e.feed_id,r=e.trace_info,s=e.id,d=e.sender,l=c.dtImageTrans(a,!0,400,228,"c");return/\.gif$/.test(l)&&(l=l.replace(/\.gif$/,".gif_jpeg")),'"},W=function(t,e){var i=e.singleImg;return i?P(t,e):z(t,e)},N=function(t){var e=t.feedList,i=e.reduce(function(t,e){var i=e.type,a="";switch(i){case d:a=U(w,e);break;case l:a=O(w,e);break;case u:a=F(w,e);break;case p:a=M(w,e);break;case f:a=W(w,e)}return t+a},"");return i},B=function(t){var e=t.userInfo,i=t.dynamicList,a=i.reduce(function(t,i){var a=i.type,n="";switch(a){case d:n=U(e,i);break;case l:n=O(e,i);break;case u:n=F(e,i);break;case p:n=M(e,i);break;case f:n=W(e,i)}return t+n},"");return a};t.exports={fetchDynamicList:R,fetchFeedList:H}},508:function(t,e,i){"use strict";!function(t){var e=t(window);t.fn.visible=function(i,a,n,o){if(!(this.length<1)){n=n||"both";var r=this.length>1?this.eq(0):this,s="undefined"!=typeof o&&null!==o,c=s?t(o):e,d=s?c.position():0,l=r.get(0),u=c.outerWidth(),p=c.outerHeight(),f=a===!0?l.offsetWidth*l.offsetHeight:!0;if("function"==typeof l.getBoundingClientRect){var m=l.getBoundingClientRect(),v=s?m.top-d.top>=0&&m.top=0&&m.top
0&&m.bottom<=p+d.top:m.bottom>0&&m.bottom<=p,g=s?m.left-d.left>=0&&m.left=0&&m.left0&&m.right0&&m.right<=u,b=i?v||h:v&&h,y=i?g||_:g&&_,b=m.top<0&&m.bottom>p?!0:b,y=m.left<0&&m.right>u?!0:y;if("both"===n)return f&&b&&y;if("vertical"===n)return f&&b;if("horizontal"===n)return f&&y}else{var w=s?0:d,$=w+p,k=c.scrollLeft(),T=k+u,x=r.position(),I=x.top,C=I+r.height(),E=x.left,q=E+r.width(),G=i===!0?C:I,j=i===!0?I:C,D=i===!0?q:E,S=i===!0?E:q;if("both"===n)return!!f&&$>=j&&G>=w&&T>=S&&D>=k;if("vertical"===n)return!!f&&$>=j&&G>=w;if("horizontal"===n)return!!f&&T>=S&&D>=k}}}}(jQuery)},65:function(t,e,i){"use strict";$(function(){var t,e=$(".wrap-siderbar"),i=$(".main-list-content .right-content"),a=$("#content").outerWidth(),n=$(window),o=function(e,i){n.on("scroll",function(){if(0!=e.length){var o=n.width(),r=(o-a)/2;return clearTimeout(t),0>r?void e.css({position:"static",top:"0",right:"0"}):void(t=setTimeout(function(){var t=n.scrollTop();t>i?(e.css({position:"fixed",right:r+"px"}),e.animate({top:"100px"})):e.css({position:"static",top:"0",right:"0"})},100))}})};e.length>0&&(e.append('\n
\n
'),o($(".app-download-guide.side"),810)),i.length>0&&(i.append('\n
\n
'),o($(".app-download-guide.side"),910))})}},[506]);