ull==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=It(wt(r.from),wt(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),s=new kt(r),Dt(e)&&l(e,"_locale")&&(s._locale=e._locale),s}function At(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Et(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function It(e,t){var n;return e.isValid()&&