System.register([],(function(e){"use strict";return{execute:function(){var n=["second","minute","hour","day","week","month","year"],t=["秒","分钟","小时","天","周","个月","年"],r={},a=function(e,n){r[e]=n},u=[60,60,24,7,365/7/12,12];function o(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}e("f",(function(e,n,t){var a=function(e,n){return(+(n?o(n):new Date)-+o(e))/1e3}(e,t&&t.relativeDate);return function(e,n){for(var t=e<0?1:0,r=e=Math.abs(e),a=0;e>=u[a]&&a<u.length;a++)e/=u[a];return(e=Math.floor(e))>(0==(a*=2)?9:1)&&(a+=1),n(e,a,r)[t].replace("%s",e.toString())}(a,function(e){return r[e]||r.en_US}(n))})),a("en_US",(function(e,t){if(0===t)return["just now","right now"];var r=n[Math.floor(t/2)];return e>1&&(r+="s"),[e+" "+r+" ago","in "+e+" "+r]})),a("zh_CN",(function(e,n){if(0===n)return["刚刚","片刻后"];var r=t[~~(n/2)];return[e+" "+r+"前",e+" "+r+"后"]}))}}}));
