(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3638],{75368:function(e,t,r){"use strict";r.d(t,{d:function(){return deleteCookie},g:function(){return getCookie},s:function(){return setCookie}});let getCookie=e=>{if("undefined"==typeof window)return;let t=`; ${document.cookie}`,r=t.split(`; ${e}=`);if(2===r.length)return r.pop().split(";").shift()},setCookie=(e,t,r)=>{if("undefined"==typeof window)return;let o="",{days:n,minutes:a,domain:l,path:s}=r||{};if(n||a){let e=new Date;n?e.setTime(e.getTime()+864e5*n):e.setTime(e.getTime()+6e4*a),o="; expires="+e.toUTCString()}document.cookie=e+"="+(t||"")+o+"; path="+(s||"/")+(l?"; domain="+l:"")},deleteCookie=e=>{"undefined"!=typeof window&&(document.cookie=e+"=; Max-Age=-99999999; path=/")}},96536:function(e,t,r){"use strict";r.d(t,{T:function(){return n}});var o=r(67294);let n=(0,o.createContext)(null)},40650:function(e,t,r){"use strict";r.d(t,{A:function(){return O},B:function(){return L},C:function(){return g},E:function(){return Eye},F:function(){return k},G:function(){return v},H:function(){return w},L:function(){return P},M:function(){return D},P:function(){return m},R:function(){return G},S:function(){return Share},T:function(){return b},W:function(){return WhatsApp},Z:function(){return y},a:function(){return TogetherComponentGlobalContextProvider},b:function(){return C},d:function(){return callApiWithAuth},e:function(){return getPremiumApiPath},f:function(){return getWebsiteUrlApi},g:function(){return getApiPath},h:function(){return getSsoApiPath},i:function(){return callApi},j:function(){return getCarePath},k:function(){return Spinner},l:function(){return N},m:function(){return getUrlToSignUp},n:function(){return I},o:function(){return getCurrentBaseUrl},p:function(){return U},q:function(){return getCareHospitalUrl},r:function(){return getCareDoctorUrl},s:function(){return setDefaultClass},t:function(){return getDiscoverApiPath},u:function(){return f},v:function(){return callApiWithAdminAuth},w:function(){return S},x:function(){return getMarryBabyApiPath},y:function(){return callApiWithOptionalAuth},z:function(){return h}});var o=r(67294),n=r(57264),a=r(15184),l=r(75368),s=r(31304),u=r.n(s),c=r(47856),_=r.n(c),p=r(86623);function setDefaultClass(e,t){let r=(0,o.forwardRef)((r,n)=>o.createElement(e,Object.assign({},r,{className:`${t} ${r.className||""}`,ref:n})));return r.classSelector=`.${t}`,r}let Eye=e=>{var{size:t,color:r,useCurrentColor:a,isActive:l,activeColor:s}=e,u=(0,n._)(e,["size","color","useCurrentColor","isActive","activeColor"]);let c=Object.assign({width:t,height:t},u);return o.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 18 18",fill:"none"},c),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00183 11.6827C9.85164 11.6827 10.5734 11.3852 11.1672 10.7903C11.7609 10.1955 12.0578 9.4731 12.0578 8.62328C12.0578 7.77346 11.7604 7.05168 11.1655 6.45793C10.5706 5.86418 9.84824 5.56731 8.99841 5.56731C8.1486 5.56731 7.42682 5.86474 6.83307 6.45962C6.23932 7.05451 5.94245 7.77686 5.94245 8.62669C5.94245 9.4765 6.23988 10.1983 6.83476 10.792C7.42965 11.3858 8.152 11.6827 9.00183 11.6827ZM9.00012 10.65C8.43762 10.65 7.9595 10.4531 7.56575 10.0594C7.172 9.66561 6.97512 9.18748 6.97512 8.62498C6.97512 8.06248 7.172 7.58436 7.56575 7.19061C7.9595 6.79686 8.43762 6.59998 9.00012 6.59998C9.56262 6.59998 10.0407 6.79686 10.4345 7.19061C10.8282 7.58436 11.0251 8.06248 11.0251 8.62498C11.0251 9.18748 10.8282 9.66561 10.4345 10.0594C10.0407 10.4531 9.56262 10.65 9.00012 10.65ZM9.00012 13.875C7.42128 13.875 5.9773 13.4538 4.66818 12.6115C3.35904 11.7692 2.31409 10.661 1.53333 9.28699C1.47083 9.1793 1.42515 9.07077 1.3963 8.96139C1.36745 8.85201 1.35303 8.73974 1.35303 8.62461C1.35303 8.50947 1.36745 8.39734 1.3963 8.28821C1.42515 8.17908 1.47083 8.07066 1.53333 7.96298C2.31409 6.58894 3.35904 5.48077 4.66818 4.63847C5.9773 3.79616 7.42128 3.375 9.00012 3.375C10.579 3.375 12.0229 3.79616 13.3321 4.63847C14.6412 5.48077 15.6862 6.58894 16.4669 7.96298C16.5294 8.07066 16.5751 8.17919 16.6039 8.28857C16.6328 8.39796 16.6472 8.51022 16.6472 8.62536C16.6472 8.74049 16.6328 8.85263 16.6039 8.96175C16.5751 9.07089 16.5294 9.1793 16.4669 9.28699C15.6862 10.661 14.6412 11.7692 13.3321 12.6115C12.0229 13.4538 10.579 13.875 9.00012 13.875ZM9.00012 12.75C10.4126 12.75 11.7095 12.3781 12.8907 11.6344C14.072 10.8906 14.9751 9.88748 15.6001 8.62498C14.9751 7.36248 14.072 6.35936 12.8907 5.61561C11.7095 4.87186 10.4126 4.49998 9.00012 4.49998C7.58762 4.49998 6.29075 4.87186 5.1095 5.61561C3.92825 6.35936 3.02512 7.36248 2.40012 8.62498C3.02512 9.88748 3.92825 10.8906 5.1095 11.6344C6.29075 12.3781 7.58762 12.75 9.00012 12.75Z",fill:a?"currentColor":l?s:r}))};Eye.defaultProps={size:24,color:a.t.colors.gray600,activeColor:a.t.colors.primaryBase};let Share=e=>{var{size:t,color:r,activeColor:a,isActive:l,isMarryBaby:s}=e,u=(0,n._)(e,["size","color","activeColor","isActive","isMarryBaby"]);return s?o.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},u),o.createElement("path",{d:"M18 8L19 8C20.1046 8 21 8.89543 21 10L21 15.155C21 17.3585 19.4253 19.2551 17.2391 19.6848C15.1006 20.1051 8.89937 20.1051 6.76089 19.6848C4.57467 19.2551 3 17.3585 3 15.155L3 10C3 8.89543 3.89543 8 5 8L6 8",stroke:l?a:r,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12 13L12 3M12 3L9.5 5.5M12 3L14.5 5.5",stroke:l?a:r,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})):o.createElement("svg",Object.assign({width:t,height:t,fill:"none",viewBox:"0 0 24 24"},u),o.createElement("path",{fill:l?a:r,d:"M19 3c-1.652 0-3 1.348-3 3 0 .46.113.895.3 1.285L12.587 11h-4.77A2.999 2.999 0 005 9c-1.652 0-3 1.348-3 3s1.348 3 3 3c1.3 0 2.402-.84 2.816-2h4.77l3.715 3.715c-.188.39-.301.824-.301 1.285 0 1.652 1.348 3 3 3s3-1.348 3-3-1.348-3-3-3c-.46 0-.895.113-1.285.3l-3.3-3.3 3.3-3.3c.39.187.824.3 1.285.3 1.652 0 3-1.348 3-3s-1.348-3-3-3z"}))};Share.defaultProps={size:24,color:a.t.colors.gray600,activeColor:a.t.colors.primaryBase,isActive:!1};let Spinner=e=>{var{size:t=24,color:r,isMarryBaby:a}=e,l=(0,n._)(e,["size","color","isMarryBaby"]);return o.createElement("svg",Object.assign({style:{display:"block",shapeRendering:"auto"},width:t,height:t,viewBox:"30 30 40 40",preserveAspectRatio:"xMidYMid"},l),o.createElement("circle",{cx:"50",cy:"50",fill:"none",stroke:r||(a?"#e85388":"#91caff"),strokeWidth:"7",r:"16",strokeDasharray:"75.39822368615503 27.132741228718345"},o.createElement("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.2s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};Spinner.defaultProps={size:24};let WhatsApp=e=>{var{size:t,color:r,useCurrentColor:a,isActive:l,activeColor:s}=e,u=(0,n._)(e,["size","color","useCurrentColor","isActive","activeColor"]);let c=a?"currentColor":l?s:r,_=Object.assign({width:t,height:t},u);return o.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none"},_),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00132 0.125C3.65869 0.125 0.12632 3.65737 0.12632 8C0.12632 9.52948 0.558762 10.9952 1.38268 12.2698L0.185496 14.9054C0.0762474 15.1467 0.117216 15.4335 0.290192 15.6337C0.422201 15.7885 0.613386 15.875 0.813675 15.875C0.872851 15.875 0.93658 15.8659 0.995756 15.8522L4.29142 14.9464C5.42943 15.5564 6.70399 15.875 8.00132 15.875C12.344 15.875 15.8763 12.3426 15.8763 8C15.8763 3.65737 12.344 0.125 8.00132 0.125ZM8.00132 14.5003C6.84966 14.5003 5.72076 14.1953 4.72842 13.6172C4.62372 13.5535 4.50081 13.5216 4.38246 13.5216C4.32329 13.5216 4.25956 13.5307 4.20038 13.5444L2.04727 14.1361L2.79836 12.4837C2.8985 12.2607 2.87574 11.9967 2.73008 11.7964C1.92892 10.6857 1.50558 9.37016 1.50558 8C1.50558 4.41756 4.41888 1.49971 8.00587 1.49971C11.5883 1.49971 14.5062 4.41301 14.5062 8C14.5016 11.5824 11.5838 14.5003 8.00132 14.5003Z",fill:c}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0279 9.17924C10.7002 8.9835 10.2677 8.76045 9.88083 8.91978C9.58494 9.04268 9.39376 9.50699 9.19802 9.74824C9.09788 9.87115 8.97952 9.88936 8.82931 9.83018C7.70951 9.38408 6.85373 8.63755 6.23465 7.60879C6.12996 7.44947 6.14817 7.32202 6.27562 7.17635C6.46226 6.95785 6.69441 6.70749 6.74448 6.41161C6.79455 6.11573 6.65799 5.76978 6.53509 5.50576C6.38032 5.16891 6.20279 4.69095 5.86594 4.49976C5.5564 4.32678 5.14672 4.42238 4.86905 4.64543C4.39108 5.03235 4.16348 5.64232 4.16804 6.24319C4.16804 6.41616 4.1908 6.58459 4.23176 6.75301C4.32736 7.14904 4.51399 7.5223 4.71883 7.87736C4.8736 8.14138 5.04658 8.40084 5.22866 8.65121C5.82497 9.46602 6.5715 10.1716 7.43184 10.6996C7.86428 10.9636 8.32858 11.1958 8.80655 11.3551C9.34369 11.5326 9.8262 11.7193 10.4089 11.61C11.0188 11.4962 11.6197 11.1184 11.861 10.5312C11.9338 10.3582 11.9702 10.1625 11.9292 9.9804C11.8473 9.58892 11.3329 9.36132 11.0279 9.17924Z",fill:c}))};WhatsApp.defaultProps={size:24,color:a.t.colors.gray600,activeColor:a.t.colors.primaryBase};var E=Object.prototype.toString,T=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function decode(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function encode(e){return encodeURIComponent(e)}var h={parse:function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},o=(t||{}).decode||decode,n=0;ne,sanitizeFunction:e=>e},formatMessage:()=>null}),v=A,TogetherComponentGlobalContextProvider=({locale:e="vi-VN",children:t,userInfo:r,router:n,env:a={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:l=e=>e,pushNotifications:s=()=>!1,formatMessage:u})=>{let[c,_]=(0,o.useState)();return v={userInfo:r,locale:e,togetherUserId:c,router:n,env:a},(0,o.useEffect)(()=>{(null==r?void 0:r.id)&&callApiWithAuth(getApiPath(m.PROFILE,{_locale:e}),"GET").then(e=>{var t;_(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)})},[null==r?void 0:r.id]),o.createElement(b.Provider,{value:{data:{userInfo:r,locale:e,togetherUserId:c,router:n,env:a},action:{pushNotifications:s,sanitizeFunction:l},formatMessage:u}},t)},C="DD/MM/YYYY",S="/images/avatar.jpg",I="/images/default-image.jpg",w={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"};w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.BMI,w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.BMI,w.BMR,w.DUE_DATE,w.OVULATION,w.PWG,w.THR,w.PWG,w.THR;let L="hhg_user_token",R="together_admin_token",y={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},P="hhg-id",G={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},D=20,M={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}},U={"vi-VN":"hellobacsi.blog","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},N={"vi-VN":"marrybaby.vn"},k="vi-VN",getWebsiteUrlApi=e=>{let{env:{isMarryBaby:t}}=v;return`https://${t?N[e]:U[e]}`},cleanFormatString=e=>{let t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},getCurrentBaseUrl=e=>{let{env:{isMarryBaby:t}}=v;return"undefined"!=typeof window?window.location.origin:`https://${t?"www.":""}${U[e]}`},getApiPath=(e,t,r,o)=>{let n="";r&&(n=Object.keys(r).map(e=>e+"="+r[e]).join("&"));let{togetherBaseApiUrl:a=""}=(null==v?void 0:v.env)||{},l=_()(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:getWebsiteUrlApi(String(t._locale))}:{}),t));return(o||a)+"api/v1/"+cleanFormatString(l+=`${l.includes("?")?"&":"?"}${n}`)},getDiscoverApiPath=(e,t,r)=>{let{discoverBaseApiUrl:o="",discoverBaseProdApiUrl:n=""}=(null==v?void 0:v.env)||{},a=!p.i&&r?n:o;return a+"wp-json/api/"+cleanFormatString(_()(e,Object.assign({},t)))},getMarryBabyApiPath=(e,t,r)=>{let{marryBabyApiUrl:o="",marryBabyProdApiUrl:n=""}=(null==v?void 0:v.env)||{},a=r&&!p.i?n:o;return a+"wp-json/api/"+cleanFormatString(_()(e,Object.assign({},t)))},getCarePath=(e,t)=>{let{careBaseApiUrl:r=""}=(null==v?void 0:v.env)||{};return(r||"https://service-health-care.hellohealthgroup.com/")+cleanFormatString(_()(e,Object.assign({},t)))},getPremiumApiPath=(e,t)=>{let{premiumBaseApiUrl:r=""}=(null==v?void 0:v.env)||{};return(r||"https://premium-content-stag.hellohealthgroup.com/")+cleanFormatString(_()(e,Object.assign({},t)))},getSsoApiPath=(e,t)=>{let{publicSSO:r=""}=(null==v?void 0:v.env)||{};return(r||"https://staging-id.hellobacsi.blog/")+"api/"+cleanFormatString(_()(e,Object.assign({},t)))},fixedEncodeURI=e=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),convertApiOptionsToRequestInit=e=>((null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e),callApi=(e,t,r,o=!1)=>(0,n.a)(void 0,void 0,void 0,function*(){var n,a,l;try{let n=yield fetch(o?e:fixedEncodeURI(e),Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(r)),{headers:Object.assign({},null==r?void 0:r.headers)})).then(e=>e.json());if(n)return n}catch(t){return console.log(t),console.log({url:e,status:null===(n=null==t?void 0:t.response)||void 0===n?void 0:n.status,statusText:null===(a=null==t?void 0:t.response)||void 0===a?void 0:a.statusText}),(null===(l=null==t?void 0:t.response)||void 0===l?void 0:l.data)||null}return null}),callApiWithOptionalAuth=(e,t="GET",r,o)=>(0,n.a)(void 0,void 0,void 0,function*(){var n,a,s,u,c,_;try{let u="string"==typeof e?e:e.url,c="string"==typeof e?e:e.backupUrl,_=h.parse(o||""),p=_[L],E=p||(0,l.g)(L);if(!E||!E.length)return callApi(c||u,t,r);try{let e=yield fetch(u,Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(r)),{headers:Object.assign({Authorization:"Bearer "+E},null==r?void 0:r.headers)})).then(e=>e.json());if(null===(n=null==e?void 0:e.messages)||void 0===n?void 0:n.find(e=>(null==e?void 0:e.toLowerCase())==="Unauthenticated"))return callApi(c||u,t,r);if(e)return e}catch(e){return console.log({status:null===(a=null==e?void 0:e.response)||void 0===a?void 0:a.status,statusText:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.statusText}),callApi(c||u,t,r)}}catch(e){return console.log({status:null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.status,statusText:null===(c=null==e?void 0:e.response)||void 0===c?void 0:c.statusText}),(null===(_=null==e?void 0:e.response)||void 0===_?void 0:_.data)||null}return null}),callApiWithAuth=(e,t,r,o)=>(0,n.a)(void 0,void 0,void 0,function*(){try{let n=h.parse(o||""),a=n[L],s=a||(0,l.g)(L);if(s&&s.length){let o=yield fetch(e,Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(r)),{headers:Object.assign({Authorization:"Bearer "+s},null==r?void 0:r.headers)})).then(e=>e.json());if(o)return o}}catch(e){}return null}),callApiWithAdminAuth=(e,t,r,o)=>(0,n.a)(void 0,void 0,void 0,function*(){try{let n=h.parse(o||""),a=n[R],s=a||(0,l.g)(R);if(s&&s.length){let o=yield fetch(e,Object.assign(Object.assign({method:t},convertApiOptionsToRequestInit(r)),{headers:Object.assign({Authorization:"Bearer "+s},null==r?void 0:r.headers)})).then(e=>e.json());if(o)return o}}catch(e){}return null});function updateQueryStringParameter(e,t,r){let o=RegExp("([?&])"+t+"=.*?(&|$)","i"),n=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+r+"$2"):e+n+t+"="+r}let getUrlToSSOWithReturnUrl=(e,t)=>{let{publicSSO:r}=v.env,o=e||window.location.href;return t&&Object.keys(t).map(e=>{updateQueryStringParameter(o,e,t[e])}),updateQueryStringParameter(o,"source","communities"),r?`${r}?returnUrl=${encodeURIComponent(o.toString())}`:o},getUrlToSignUp=(e,t,r="/community")=>{let o=e||("undefined"!=typeof window?window.location.href:"/"),n="undefined"!=typeof window?window.location.origin:"";!n&&e&&(e.startsWith("http://")||e.startsWith("https://"))&&(n=e.split("/").slice(0,3).join("/"));let a=`${n}${r}/on-boarding?return=${encodeURIComponent(o)}`;return getUrlToSSOWithReturnUrl(a,t)},slugifiedNameWithId=(e,t,r,o)=>r&&t?`${r}-${t}`:`${u()(e||"",{lower:!0,locale:o||k})}-${t}`,getCareDoctorUrl=({name:e,id:t,locale:r})=>{var o;return`/care/${null===(o=M[r||"vi-VN"])||void 0===o?void 0:o.DOCTOR}/${slugifiedNameWithId(e,t)}`},getCareHospitalUrl=({name:e,id:t,slug:r,locale:o})=>{var n;return`/care/${null===(n=M[o||"vi-VN"])||void 0===n?void 0:n.HOSPITAL}/${slugifiedNameWithId(e,t,r)}`}},84110:function(e){e.exports=function(e,t,r){e=e||{};var o=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,r,n){return o.fromToBase(e,t,r,n)}r.en.relativeTime=n,o.fromToBase=function(t,o,a,l,s){for(var u,c,_,p=a.$locale().relativeTime||n,E=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],T=E.length,h=0;h0,g<=m.r||!m.r){g<=1&&h>0&&(m=E[h-1]);var f=p[m.l];s&&(g=s(""+g)),c="string"==typeof f?f.replace("%d",g):f(g,o,m.l,_);break}}if(o)return c;var O=_?p.future:p.past;return"function"==typeof O?O(c):O.replace("%s",c)},o.to=function(e,t){return i(e,t,this,!0)},o.from=function(e,t){return i(e,t,this)};var d=function(e){return e.$u?r.utc():r()};o.toNow=function(e){return this.to(d(this),e)},o.fromNow=function(e){return this.from(d(this),e)}}}}]);