text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["baseArticle"],{"0ccb":function(t,e,i){var r=i("50c4"),n=i("1148"),a=i("1d80"),o=Math.ceil,s=function(t){return function(e,i,s){var c,u,l=String(a(e)),d=l.length,f=void 0===s?" ":String(s),v=r(i);return v<=d||""==f?l:(c=v-d,u=n.call(f,o(c/f.length)),u.length>c&&(u=u.slice(0,c)),t?l+u:u+l)}};t.exports={start:s(!1),end:s(!0)}},1148:function(t,e,i){"use strict";var r=i("a691"),n=i("1d80");t.exports="".repeat||function(t){var e=String(n(this)),i="",a=r(t);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(i+=e);return i}},"3e73":function(t,e,i){},"4d90":function(t,e,i){"use strict";var r=i("23e7"),n=i("0ccb").start,a=i("9a0c");r({target:"String",proto:!0,forced:a},{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},5319:function(t,e,i){"use strict";var r=i("d784"),n=i("825a"),a=i("7b0b"),o=i("50c4"),s=i("a691"),c=i("1d80"),u=i("8aa5"),l=i("14c3"),d=Math.max,f=Math.min,v=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g,m=function(t){return void 0===t?t:String(t)};r("replace",2,(function(t,e,i,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,E=r.REPLACE_KEEPS_$0,I=g?"$":"$0";return[function(i,r){var n=c(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n,r):e.call(String(n),i,r)},function(t,r){if(!g&&E||"string"===typeof r&&-1===r.indexOf(I)){var a=i(e,t,this,r);if(a.done)return a.value}var c=n(t),v=String(this),h="function"===typeof r;h||(r=String(r));var p=c.global;if(p){var b=c.unicode;c.lastIndex=0}var T=[];while(1){var k=l(c,v);if(null===k)break;if(T.push(k),!p)break;var A=String(k[0]);""===A&&(c.lastIndex=u(v,o(c.lastIndex),b))}for(var w="",C=0,N=0;N<T.length;N++){k=T[N];for(var P=String(k[0]),y=d(f(s(k.index),v.length),0),q=[],x=1;x<k.length;x++)q.push(m(k[x]));var R=k.groups;if(h){var j=[P].concat(q,y,v);void 0!==R&&j.push(R);var Q=String(r.apply(void 0,j))}else Q=S(P,v,y,q,R,r);y>=C&&(w+=v.slice(C,y)+Q,C=y+P.length)}return w+v.slice(C)}];function S(t,i,r,n,o,s){var c=r+t.length,u=n.length,l=p;return void 0!==o&&(o=a(o),l=h),e.call(s,l,(function(e,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return i.slice(0,r);case"'":return i.slice(c);case"<":s=o[a.slice(1,-1)];break;default:var l=+a;if(0===l)return e;if(l>u){var d=v(l/10);return 0===d?e:d<=u?void 0===n[d-1]?a.charAt(1):n[d-1]+a.charAt(1):e}s=n[l-1]}return void 0===s?"":s}))}}))},5899:function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(t,e,i){var r=i("1d80"),n=i("5899"),a="["+n+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),c=function(t){return function(e){var i=String(r(e));return 1&t&&(i=i.replace(o,"")),2&t&&(i=i.replace(s,"")),i}};t.exports={start:c(1),end:c(2),trim:c(3)}},"5e98":function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:t.forModeration?"article-moderation":""}},[i("div",{staticClass:"Article",class:[t.className,t.moderateStatusClass]},[i("div",{staticClass:"Article-Header",class:{"ArticlePreview-Header":t.isPreview}},[i("div",{staticClass:"Article-Time Time-Tooltip ",class:{"ArticlePreview-Time":t.isPreview}},[t._v(" "+t._s(t._f("formatRelTime")(t.timestamp))+" "),i("div",{staticClass:"Time-TooltipText"},[t._v(" "+t._s(t._f("formatAbsTime")(t.timestamp))+" ")])]),i("div",{staticClass:"Article-Author",class:{"ArticlePreview-Author":t.isPreview}},[t.isPreview?i("router-link",{attrs:{to:{name:"article",params:{id:""+t.id}}}},[t._v(" "+t._s(t.author)+" ")]):i("div",[t._v(" "+t._s(t.author)+" ")])],1)]),t.isPreview?i("router-link",{staticClass:"ArticlePreview-Title",attrs:{to:{name:"article",params:{id:""+t.id}}}},[t._v(" "+t._s(t.title)+" ")]):i("div",{staticClass:"Article-Title"},[t._v(" "+t._s(t.title)+" ")]),i("div",{staticClass:"Article-Text"},[t.isPreview?[t._v(" "+t._s(t._f("formatText")(t.text))+" ")]:i("span",{domProps:{innerHTML:t._s(t.htmlText)}})],2),t.forModeration||t.myPosts?i("ModerationBlock",{attrs:{className:"ArticlePreview-Moderation",id:t.id,myPosts:t.myPosts},on:{moderated:t.onModerated}}):i("div",{staticClass:"Article-Footer"},[i("SocialBlock",{attrs:{className:"Article-Social ArticlePreview-Social",isPreview:t.isPreview,likeCount:t.likes,dislikeCount:t.dislikes,commentCount:t.commentCount,viewCount:t.viewCount},on:{like:t.onLike,dislike:t.onDislike}}),t.isPreview?t._e():i("div",{staticClass:"Article-Tags"},t._l(t.tags,(function(e,r){return i("div",{key:r,staticClass:"Tag Article-Tag",on:{click:function(i){return t.onSelectTag(e)}}},[t._v(" #"+t._s(e)+" ")])})),0)],1)],1)])},n=[],a=(i("a9e3"),i("d3b7"),i("ac1f"),i("5319"),i("bc3a")),o=i.n(a),s=i("8c89"),c=i("ed08"),u=i("2b0e"),l=function(){return i.e("socialBlock").then(i.bind(null,"4205"))},d=function(){return i.e("moderationBlock").then(i.bind(null,"32d2"))},f={components:{SocialBlock:l,ModerationBlock:d},props:{className:{type:String,required:!1},forModeration:{type:Boolean,required:!1,default:!1},myPosts:{type:Boolean,required:!1,default:!1},isPreview:{type:Boolean,required:!1},id:{type:Number,required:!0,default:0},timestamp:{type:Number,required:!0,default:0},author:{type:String,required:!0,default:""},title:{type:String,required:!0,default:""},text:{type:String,required:!0,default:""},likeCount:{type:Number,required:!0,default:0},dislikeCount:{type:Number,required:!0,default:0},commentCount:{type:Number,required:!0,default:0},viewCount:{type:Number,required:!0,default:0},tags:{type:Array,required:!1}},data:function(){return{likes:0,liked:0,dislikes:0,disliked:0,moderateStatus:"notModerated"}},computed:{htmlText:function(){return Object(c["c"])(this.text)},moderateStatusClass:function(){return"Article-moderation-".concat(this.moderateStatus)}},filters:{formatText:function(t){var e=/&lt;.*?&gt;/gi;return t.replace(e,"")}},methods:{onModerated:function(t){var e=this;this.moderateStatus=t,u["default"].nextTick((function(){e.$emit("moderated",{id:e.id,status:t})}))},onLike:function(){var t=this;0===this.liked&&o.a.post("".concat(s["a"],"/api/post/like"),{post_id:this.id}).then((function(e){e.data.result&&(t.likes++,t.liked++,1===t.disliked&&(t.dislikes--,t.disliked=0))})).catch((function(e){return t.$store.dispatch("setHttpError",e)}))},onDislike:function(){var t=this;0===this.disliked&&o.a.post("".concat(s["a"],"/api/post/dislike"),{post_id:this.id}).then((function(e){e.data.result&&(t.dislikes++,t.disliked++,1===t.liked&&(t.likes--,t.liked=0))})).catch((function(e){return t.$store.dispatch("setHttpError",e)}))},onSelectTag:function(t){this.$router.push("/tag/".concat(t))}},mounted:function(){this.likes=this.likeCount,this.dislikes=this.dislikeCount}},v=f,h=(i("8256"),i("2877")),p=Object(h["a"])(v,r,n,!1,null,null,null);e["default"]=p.exports},7156:function(t,e,i){var r=i("861d"),n=i("d2bb");t.exports=function(t,e,i){var a,o;return n&&"function"==typeof(a=e.constructor)&&a!==i&&r(o=a.prototype)&&o!==i.prototype&&n(t,o),t}},8256:function(t,e,i){"use strict";var r=i("3e73"),n=i.n(r);n.a},"8aa5":function(t,e,i){"use strict";var r=i("6547").charAt;t.exports=function(t,e,i){return e+(i?r(t,e).length:1)}},"9a0c":function(t,e,i){var r=i("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},a9e3:function(t,e,i){"use strict";var r=i("83ab"),n=i("da84"),a=i("94ca"),o=i("6eeb"),s=i("5135"),c=i("c6b6"),u=i("7156"),l=i("c04e"),d=i("d039"),f=i("7c73"),v=i("241c").f,h=i("06cf").f,p=i("9bf2").f,m=i("58a8").trim,g="Number",E=n[g],I=E.prototype,S=c(f(I))==g,b=function(t){var e,i,r,n,a,o,s,c,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=m(u),e=u.charCodeAt(0),43===e||45===e){if(i=u.charCodeAt(2),88===i||120===i)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+u}for(a=u.slice(2),o=a.length,s=0;s<o;s++)if(c=a.charCodeAt(s),c<48||c>n)return NaN;return parseInt(a,r)}return+u};if(a(g,!E(" 0o1")||!E("0b1")||E("+0x1"))){for(var T,k=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof k&&(S?d((function(){I.valueOf.call(i)})):c(i)!=g)?u(new E(b(e)),i,k):b(e)},A=r?v(E):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;A.length>w;w++)s(E,T=A[w])&&!s(k,T)&&p(k,T,h(E,T));k.prototype=I,I.constructor=k,o(n,g,k)}},ed08:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return s}));i("99af"),i("d3b7"),i("ac1f"),i("25f0"),i("4d90"),i("5319");var r=i("8c89"),n=function(t){var e=t.getMonth()+1;return"".concat(t.getFullYear(),"-").concat(e.toString().padStart(2,"0"),"-").concat(t.getDate().toString().padStart(2,"0"),"T").concat(t.getHours().toString().padStart(2,"0"),":").concat(t.getMinutes().toString().padStart(2,"0"))},a=function(t,e,i){return"".concat(t,"-").concat(e.toString().padStart(2,"0"),"-").concat(i.toString().padStart(2,"0"))},o=function(t){var e=/(&lt;)(.*?)(&gt;)/gi;return t.replace(e,"<$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