UNPKG

date-fns

Version:

Modern JavaScript date utility library

1 lines 116 kB
(()=>{function jX(G,K){var X=typeof Symbol!=="undefined"&&G[Symbol.iterator]||G["@@iterator"];if(!X){if(Array.isArray(G)||(X=dG(G))||K&&G&&typeof G.length==="number"){if(X)G=X;var B=0,U=function H(){};return{s:U,n:function H(){if(B>=G.length)return{done:!0};return{done:!1,value:G[B++]}},e:function H(q){throw q},f:U}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Z=!0,j=!1,J;return{s:function H(){X=X.call(G)},n:function H(){var q=X.next();return Z=q.done,q},e:function H(q){j=!0,J=q},f:function H(){try{if(!Z&&X.return!=null)X.return()}finally{if(j)throw J}}}}function z(G,K,X){return K=lG(K),_B(G,JX()?Reflect.construct(K,X||[],lG(G).constructor):K.apply(G,X))}function _B(G,K){if(K&&(a(K)==="object"||typeof K==="function"))return K;else if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(G)}function x(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function JX(){try{var G=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(K){}return(JX=function K(){return!!G})()}function lG(G){return lG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function K(X){return X.__proto__||Object.getPrototypeOf(X)},lG(G)}function $(G,K){if(typeof K!=="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");if(G.prototype=Object.create(K&&K.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),K)EK(G,K)}function EK(G,K){return EK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function X(B,U){return B.__proto__=U,B},EK(G,K)}function T(G,K){if(!(G instanceof K))throw new TypeError("Cannot call a class as a function")}function HX(G,K){for(var X=0;X<K.length;X++){var B=K[X];if(B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B)B.writable=!0;Object.defineProperty(G,FX(B.key),B)}}function W(G,K,X){if(K)HX(G.prototype,K);if(X)HX(G,X);return Object.defineProperty(G,"prototype",{writable:!1}),G}function lB(G){return NX(G)||AX(G)||dG(G)||qX()}function P(G,K){return NX(G)||pB(G,K)||dG(G,K)||qX()}function qX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pB(G,K){var X=G==null?null:typeof Symbol!="undefined"&&G[Symbol.iterator]||G["@@iterator"];if(X!=null){var B,U,Z,j,J=[],H=!0,q=!1;try{if(Z=(X=X.call(G)).next,K===0){if(Object(X)!==X)return;H=!1}else for(;!(H=(B=Z.call(X)).done)&&(J.push(B.value),J.length!==K);H=!0);}catch(N){q=!0,U=N}finally{try{if(!H&&X.return!=null&&(j=X.return(),Object(j)!==j))return}finally{if(q)throw U}}return J}}function NX(G){if(Array.isArray(G))return G}function VX(G,K){var X=Object.keys(G);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(G);K&&(B=B.filter(function(U){return Object.getOwnPropertyDescriptor(G,U).enumerable})),X.push.apply(X,B)}return X}function n(G){for(var K=1;K<arguments.length;K++){var X=arguments[K]!=null?arguments[K]:{};K%2?VX(Object(X),!0).forEach(function(B){E(G,B,X[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(X)):VX(Object(X)).forEach(function(B){Object.defineProperty(G,B,Object.getOwnPropertyDescriptor(X,B))})}return G}function E(G,K,X){if(K=FX(K),K in G)Object.defineProperty(G,K,{value:X,enumerable:!0,configurable:!0,writable:!0});else G[K]=X;return G}function FX(G){var K=dB(G,"string");return a(K)=="symbol"?K:String(K)}function dB(G,K){if(a(G)!="object"||!G)return G;var X=G[Symbol.toPrimitive];if(X!==void 0){var B=X.call(G,K||"default");if(a(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(K==="string"?String:Number)(G)}function pG(G){return sB(G)||AX(G)||dG(G)||rB()}function rB(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dG(G,K){if(!G)return;if(typeof G==="string")return xK(G,K);var X=Object.prototype.toString.call(G).slice(8,-1);if(X==="Object"&&G.constructor)X=G.constructor.name;if(X==="Map"||X==="Set")return Array.from(G);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return xK(G,K)}function AX(G){if(typeof Symbol!=="undefined"&&G[Symbol.iterator]!=null||G["@@iterator"]!=null)return Array.from(G)}function sB(G){if(Array.isArray(G))return xK(G)}function xK(G,K){if(K==null||K>G.length)K=G.length;for(var X=0,B=new Array(K);X<K;X++)B[X]=G[X];return B}function a(G){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},a(G)}var iB=Object.defineProperty,nB=function G(K,X){for(var B in X)iB(K,B,{get:X[B],enumerable:!0,configurable:!0,set:function U(Z){return X[B]=function(){return Z}}})},EX={};nB(EX,{yearsToQuarters:function G(){return ZA},yearsToMonths:function G(){return BA},yearsToDays:function G(){return KA},weeksToDays:function G(){return tF},transpose:function G(){return oF},toDate:function G(){return aF},subYearsWithOptions:function G(){return nF},subYears:function G(){return iF},subWithOptions:function G(){return sF},subWeeksWithOptions:function G(){return rF},subWeeks:function G(){return dF},subSecondsWithOptions:function G(){return pF},subSeconds:function G(){return lF},subQuartersWithOptions:function G(){return _F},subQuarters:function G(){return uF},subMonthsWithOptions:function G(){return cF},subMonths:function G(){return fF},subMinutesWithOptions:function G(){return mF},subMinutes:function G(){return gF},subMillisecondsWithOptions:function G(){return kF},subMilliseconds:function G(){return hF},subISOWeekYearsWithOptions:function G(){return yF},subISOWeekYears:function G(){return SF},subHoursWithOptions:function G(){return DF},subHours:function G(){return vF},subDaysWithOptions:function G(){return OF},subDays:function G(){return PF},subBusinessDaysWithOptions:function G(){return $F},subBusinessDays:function G(){return zF},sub:function G(){return bF},startOfYearWithOptions:function G(){return WF},startOfYear:function G(){return TF},startOfWeekYearWithOptions:function G(){return CF},startOfWeekYear:function G(){return MF},startOfWeekWithOptions:function G(){return YF},startOfWeek:function G(){return wF},startOfSecondWithOptions:function G(){return LF},startOfSecond:function G(){return IF},startOfQuarterWithOptions:function G(){return RF},startOfQuarter:function G(){return xF},startOfMonthWithOptions:function G(){return EF},startOfMonth:function G(){return AF},startOfMinuteWithOptions:function G(){return FF},startOfMinute:function G(){return VF},startOfISOWeekYearWithOptions:function G(){return NF},startOfISOWeekYear:function G(){return qF},startOfISOWeekWithOptions:function G(){return HF},startOfISOWeek:function G(){return JF},startOfHourWithOptions:function G(){return jF},startOfHour:function G(){return QF},startOfDecadeWithOptions:function G(){return ZF},startOfDecade:function G(){return UF},startOfDayWithOptions:function G(){return BF},startOfDay:function G(){return XF},setYearWithOptions:function G(){return KF},setYear:function G(){return GF},setWithOptions:function G(){return tV},setWeekYearWithOptions:function G(){return eV},setWeekYear:function G(){return oV},setWeekWithOptions:function G(){return aV},setWeek:function G(){return nV},setSecondsWithOptions:function G(){return iV},setSeconds:function G(){return sV},setQuarterWithOptions:function G(){return rV},setQuarter:function G(){return dV},setMonthWithOptions:function G(){return pV},setMonth:function G(){return lV},setMinutesWithOptions:function G(){return _V},setMinutes:function G(){return uV},setMillisecondsWithOptions:function G(){return cV},setMilliseconds:function G(){return fV},setISOWeekYearWithOptions:function G(){return mV},setISOWeekYear:function G(){return gV},setISOWeekWithOptions:function G(){return kV},setISOWeek:function G(){return hV},setISODayWithOptions:function G(){return yV},setISODay:function G(){return SV},setHoursWithOptions:function G(){return DV},setHours:function G(){return vV},setDayWithOptions:function G(){return OV},setDayOfYearWithOptions:function G(){return PV},setDayOfYear:function G(){return $V},setDay:function G(){return zV},setDateWithOptions:function G(){return bV},setDate:function G(){return WV},set:function G(){return TV},secondsToMinutes:function G(){return CV},secondsToMilliseconds:function G(){return YV},secondsToHours:function G(){return LV},roundToNearestMinutesWithOptions:function G(){return RV},roundToNearestMinutes:function G(){return xV},roundToNearestHoursWithOptions:function G(){return EV},roundToNearestHours:function G(){return AV},quartersToYears:function G(){return FV},quartersToMonths:function G(){return NV},previousWednesdayWithOptions:function G(){return HV},previousWednesday:function G(){return JV},previousTuesdayWithOptions:function G(){return jV},previousTuesday:function G(){return QV},previousThursdayWithOptions:function G(){return ZV},previousThursday:function G(){return UV},previousSundayWithOptions:function G(){return BV},previousSunday:function G(){return XV},previousSaturdayWithOptions:function G(){return KV},previousSaturday:function G(){return GV},previousMondayWithOptions:function G(){return tN},previousMonday:function G(){return eN},previousFridayWithOptions:function G(){return oN},previousFriday:function G(){return aN},previousDayWithOptions:function G(){return nN},previousDay:function G(){return iN},parseWithOptions:function G(){return sN},parseJSONWithOptions:function G(){return rN},parseJSON:function G(){return dN},parseISOWithOptions:function G(){return pN},parseISO:function G(){return lN},parse:function G(){return zN},nextWednesdayWithOptions:function G(){return bN},nextWednesday:function G(){return WN},nextTuesdayWithOptions:function G(){return TN},nextTuesday:function G(){return CN},nextThursdayWithOptions:function G(){return MN},nextThursday:function G(){return YN},nextSundayWithOptions:function G(){return wN},nextSunday:function G(){return LN},nextSaturdayWithOptions:function G(){return IN},nextSaturday:function G(){return RN},nextMondayWithOptions:function G(){return xN},nextMonday:function G(){return EN},nextFridayWithOptions:function G(){return AN},nextFriday:function G(){return FN},nextDayWithOptions:function G(){return VN},nextDay:function G(){return NN},monthsToYears:function G(){return qN},monthsToQuarters:function G(){return JN},minutesToSeconds:function G(){return QN},minutesToMilliseconds:function G(){return UN},minutesToHours:function G(){return XN},minWithOptions:function G(){return GN},min:function G(){return tq},millisecondsToSeconds:function G(){return eq},millisecondsToMinutes:function G(){return aq},millisecondsToHours:function G(){return iq},milliseconds:function G(){return rq},maxWithOptions:function G(){return pq},max:function G(){return lq},lightFormat:function G(){return _q},lastDayOfYearWithOptions:function G(){return hq},lastDayOfYear:function G(){return yq},lastDayOfWeekWithOptions:function G(){return Sq},lastDayOfWeek:function G(){return Dq},lastDayOfQuarterWithOptions:function G(){return vq},lastDayOfQuarter:function G(){return Oq},lastDayOfMonthWithOptions:function G(){return Pq},lastDayOfMonth:function G(){return $q},lastDayOfISOWeekYearWithOptions:function G(){return zq},lastDayOfISOWeekYear:function G(){return bq},lastDayOfISOWeekWithOptions:function G(){return Wq},lastDayOfISOWeek:function G(){return Tq},lastDayOfDecadeWithOptions:function G(){return Cq},lastDayOfDecade:function G(){return Mq},isWithinIntervalWithOptions:function G(){return Yq},isWithinInterval:function G(){return wq},isWeekendWithOptions:function G(){return Lq},isWeekend:function G(){return Iq},isWednesdayWithOptions:function G(){return Rq},isWednesday:function G(){return xq},isValid:function G(){return Eq},isTuesdayWithOptions:function G(){return Aq},isTuesday:function G(){return Fq},isThursdayWithOptions:function G(){return Vq},isThursday:function G(){return Nq},isSundayWithOptions:function G(){return qq},isSunday:function G(){return Hq},isSaturdayWithOptions:function G(){return Jq},isSaturday:function G(){return jq},isSameYearWithOptions:function G(){return Qq},isSameYear:function G(){return Zq},isSameWeekWithOptions:function G(){return Uq},isSameWeek:function G(){return Bq},isSameSecond:function G(){return Xq},isSameQuarterWithOptions:function G(){return Gq},isSameQuarter:function G(){return tH},isSameMonthWithOptions:function G(){return eH},isSameMonth:function G(){return oH},isSameMinute:function G(){return aH},isSameISOWeekYearWithOptions:function G(){return iH},isSameISOWeekYear:function G(){return sH},isSameISOWeekWithOptions:function G(){return rH},isSameISOWeek:function G(){return dH},isSameHourWithOptions:function G(){return pH},isSameHour:function G(){return lH},isSameDayWithOptions:function G(){return _H},isSameDay:function G(){return uH},isMondayWithOptions:function G(){return cH},isMonday:function G(){return fH},isMatchWithOptions:function G(){return mH},isMatch:function G(){return gH},isLeapYearWithOptions:function G(){return pJ},isLeapYear:function G(){return lJ},isLastDayOfMonthWithOptions:function G(){return _J},isLastDayOfMonth:function G(){return uJ},isFridayWithOptions:function G(){return cJ},isFriday:function G(){return fJ},isFirstDayOfMonthWithOptions:function G(){return mJ},isFirstDayOfMonth:function G(){return gJ},isExists:function G(){return kJ},isEqual:function G(){return yJ},isDate:function G(){return DJ},isBefore:function G(){return vJ},isAfter:function G(){return PJ},intlFormatDistanceWithOptions:function G(){return zJ},intlFormatDistance:function G(){return bJ},intlFormat:function G(){return WJ},intervalWithOptions:function G(){return MJ},intervalToDurationWithOptions:function G(){return YJ},intervalToDuration:function G(){return wJ},interval:function G(){return LJ},hoursToSeconds:function G(){return IJ},hoursToMinutes:function G(){return xJ},hoursToMilliseconds:function G(){return AJ},getYearWithOptions:function G(){return VJ},getYear:function G(){return NJ},getWeeksInMonthWithOptions:function G(){return qJ},getWeeksInMonth:function G(){return HJ},getWeekYearWithOptions:function G(){return JJ},getWeekYear:function G(){return jJ},getWeekWithOptions:function G(){return QJ},getWeekOfMonthWithOptions:function G(){return ZJ},getWeekOfMonth:function G(){return UJ},getWeek:function G(){return BJ},getUnixTime:function G(){return XJ},getTime:function G(){return GJ},getSeconds:function G(){return ej},getQuarterWithOptions:function G(){return aj},getQuarter:function G(){return nj},getOverlappingDaysInIntervals:function G(){return ij},getMonthWithOptions:function G(){return rj},getMonth:function G(){return dj},getMinutesWithOptions:function G(){return pj},getMinutes:function G(){return lj},getMilliseconds:function G(){return _j},getISOWeeksInYearWithOptions:function G(){return cj},getISOWeeksInYear:function G(){return fj},getISOWeekYearWithOptions:function G(){return mj},getISOWeekYear:function G(){return gj},getISOWeekWithOptions:function G(){return kj},getISOWeek:function G(){return hj},getISODayWithOptions:function G(){return yj},getISODay:function G(){return Sj},getHoursWithOptions:function G(){return Dj},getHours:function G(){return vj},getDecadeWithOptions:function G(){return Oj},getDecade:function G(){return Pj},getDaysInYearWithOptions:function G(){return $j},getDaysInYear:function G(){return zj},getDaysInMonthWithOptions:function G(){return bj},getDaysInMonth:function G(){return Wj},getDayWithOptions:function G(){return Tj},getDayOfYearWithOptions:function G(){return Cj},getDayOfYear:function G(){return Mj},getDay:function G(){return Yj},getDateWithOptions:function G(){return wj},getDate:function G(){return Lj},fromUnixTimeWithOptions:function G(){return Ij},fromUnixTime:function G(){return Rj},formatWithOptions:function G(){return xj},formatRelativeWithOptions:function G(){return Ej},formatRelative:function G(){return Aj},formatRFC7231:function G(){return Fj},formatRFC3339WithOptions:function G(){return Hj},formatRFC3339:function G(){return Jj},formatISOWithOptions:function G(){return jj},formatISODuration:function G(){return Qj},formatISO9075WithOptions:function G(){return Uj},formatISO9075:function G(){return Bj},formatISO:function G(){return Xj},formatDurationWithOptions:function G(){return Kj},formatDuration:function G(){return Gj},formatDistanceWithOptions:function G(){return eQ},formatDistanceStrictWithOptions:function G(){return oQ},formatDistanceStrict:function G(){return aQ},formatDistance:function G(){return nQ},format:function G(){return iQ},endOfYearWithOptions:function G(){return UQ},endOfYear:function G(){return BQ},endOfWeekWithOptions:function G(){return XQ},endOfWeek:function G(){return KQ},endOfSecondWithOptions:function G(){return GQ},endOfSecond:function G(){return tZ},endOfQuarterWithOptions:function G(){return eZ},endOfQuarter:function G(){return oZ},endOfMonthWithOptions:function G(){return aZ},endOfMonth:function G(){return nZ},endOfMinuteWithOptions:function G(){return iZ},endOfMinute:function G(){return sZ},endOfISOWeekYearWithOptions:function G(){return rZ},endOfISOWeekYear:function G(){return dZ},endOfISOWeekWithOptions:function G(){return pZ},endOfISOWeek:function G(){return lZ},endOfHourWithOptions:function G(){return _Z},endOfHour:function G(){return uZ},endOfDecadeWithOptions:function G(){return cZ},endOfDecade:function G(){return fZ},endOfDayWithOptions:function G(){return mZ},endOfDay:function G(){return gZ},eachYearOfIntervalWithOptions:function G(){return kZ},eachYearOfInterval:function G(){return hZ},eachWeekendOfYearWithOptions:function G(){return yZ},eachWeekendOfYear:function G(){return SZ},eachWeekendOfMonthWithOptions:function G(){return DZ},eachWeekendOfMonth:function G(){return vZ},eachWeekendOfIntervalWithOptions:function G(){return OZ},eachWeekendOfInterval:function G(){return PZ},eachWeekOfIntervalWithOptions:function G(){return $Z},eachWeekOfInterval:function G(){return zZ},eachQuarterOfIntervalWithOptions:function G(){return bZ},eachQuarterOfInterval:function G(){return WZ},eachMonthOfIntervalWithOptions:function G(){return TZ},eachMonthOfInterval:function G(){return CZ},eachMinuteOfIntervalWithOptions:function G(){return MZ},eachMinuteOfInterval:function G(){return YZ},eachHourOfIntervalWithOptions:function G(){return wZ},eachHourOfInterval:function G(){return LZ},eachDayOfIntervalWithOptions:function G(){return IZ},eachDayOfInterval:function G(){return RZ},differenceInYearsWithOptions:function G(){return xZ},differenceInYears:function G(){return EZ},differenceInWeeksWithOptions:function G(){return AZ},differenceInWeeks:function G(){return FZ},differenceInSecondsWithOptions:function G(){return VZ},differenceInSeconds:function G(){return NZ},differenceInQuartersWithOptions:function G(){return qZ},differenceInQuarters:function G(){return HZ},differenceInMonthsWithOptions:function G(){return JZ},differenceInMonths:function G(){return jZ},differenceInMinutesWithOptions:function G(){return QZ},differenceInMinutes:function G(){return ZZ},differenceInMilliseconds:function G(){return UZ},differenceInISOWeekYearsWithOptions:function G(){return BZ},differenceInISOWeekYears:function G(){return XZ},differenceInHoursWithOptions:function G(){return KZ},differenceInHours:function G(){return GZ},differenceInDaysWithOptions:function G(){return tU},differenceInDays:function G(){return eU},differenceInCalendarYearsWithOptions:function G(){return oU},differenceInCalendarYears:function G(){return aU},differenceInCalendarWeeksWithOptions:function G(){return nU},differenceInCalendarWeeks:function G(){return iU},differenceInCalendarQuartersWithOptions:function G(){return sU},differenceInCalendarQuarters:function G(){return rU},differenceInCalendarMonthsWithOptions:function G(){return dU},differenceInCalendarMonths:function G(){return pU},differenceInCalendarISOWeeksWithOptions:function G(){return lU},differenceInCalendarISOWeeks:function G(){return _U},differenceInCalendarISOWeekYearsWithOptions:function G(){return uU},differenceInCalendarISOWeekYears:function G(){return cU},differenceInCalendarDaysWithOptions:function G(){return fU},differenceInCalendarDays:function G(){return mU},differenceInBusinessDaysWithOptions:function G(){return gU},differenceInBusinessDays:function G(){return kU},daysToWeeks:function G(){return hU},constructFrom:function G(){return SU},compareDesc:function G(){return DU},compareAsc:function G(){return OU},closestToWithOptions:function G(){return PU},closestTo:function G(){return $U},closestIndexTo:function G(){return zU},clampWithOptions:function G(){return bU},clamp:function G(){return WU},areIntervalsOverlappingWithOptions:function G(){return TU},areIntervalsOverlapping:function G(){return CU},addYearsWithOptions:function G(){return MU},addYears:function G(){return YU},addWithOptions:function G(){return wU},addWeeksWithOptions:function G(){return LU},addWeeks:function G(){return IU},addSecondsWithOptions:function G(){return RU},addSeconds:function G(){return xU},addQuartersWithOptions:function G(){return EU},addQuarters:function G(){return AU},addMonthsWithOptions:function G(){return FU},addMonths:function G(){return VU},addMinutesWithOptions:function G(){return NU},addMinutes:function G(){return qU},addMillisecondsWithOptions:function G(){return HU},addMilliseconds:function G(){return JU},addISOWeekYearsWithOptions:function G(){return jU},addISOWeekYears:function G(){return QU},addHoursWithOptions:function G(){return ZU},addHours:function G(){return UU},addDaysWithOptions:function G(){return BU},addDays:function G(){return XU},addBusinessDaysWithOptions:function G(){return KU},addBusinessDays:function G(){return GU},add:function G(){return tB}});var xX=7,rG=365.2425,aB=Math.pow(10,8)*24*60*60*1000,JA=-aB,bG=604800000,RX=86400000,XG=60000,AG=3600000,RK=1000,IX=525600,LG=43200,sG=1440,LX=60,wX=3,YX=12,MX=4,iG=3600,IK=60,LK=iG*24,oB=LK*7,CX=LK*rG,TX=CX/12,eB=TX*3,WX=Symbol.for("constructDateFrom");function Y(G,K){if(typeof G==="function")return G(K);if(G&&a(G)==="object"&&WX in G)return G[WX](K);if(G instanceof Date)return new G.constructor(K);return new Date(K)}function V(G,K){return Y(K||G,G)}function e(G,K,X){var B=V(G,X===null||X===void 0?void 0:X.in);if(isNaN(K))return Y((X===null||X===void 0?void 0:X.in)||G,NaN);if(!K)return B;return B.setDate(B.getDate()+K),B}function wG(G,K,X){var B=V(G,X===null||X===void 0?void 0:X.in);if(isNaN(K))return Y((X===null||X===void 0?void 0:X.in)||G,NaN);if(!K)return B;var U=B.getDate(),Z=Y((X===null||X===void 0?void 0:X.in)||G,B.getTime());Z.setMonth(B.getMonth()+K+1,0);var j=Z.getDate();if(U>=j)return Z;else return B.setFullYear(Z.getFullYear(),Z.getMonth(),U),B}function EG(G,K,X){var B=K.years,U=B===void 0?0:B,Z=K.months,j=Z===void 0?0:Z,J=K.weeks,H=J===void 0?0:J,q=K.days,N=q===void 0?0:q,F=K.hours,A=F===void 0?0:F,w=K.minutes,L=w===void 0?0:w,M=K.seconds,R=M===void 0?0:M,b=V(G,X===null||X===void 0?void 0:X.in),C=j||U?wG(b,j+U*12):b,v=N||H?e(C,N+H*7):C,S=L+A*60,l=R+S*60,p=l*1000;return Y((X===null||X===void 0?void 0:X.in)||G,+v+p)}function Q(G,K){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return X.length>=K?G.apply(void 0,pG(X.slice(0,K).reverse())):function(){for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return Q(G,K,X.concat(U))}}var tB=Q(EG,2);function wK(G,K){return V(G,K===null||K===void 0?void 0:K.in).getDay()===6}function YK(G,K){return V(G,K===null||K===void 0?void 0:K.in).getDay()===0}function xG(G,K){var X=V(G,K===null||K===void 0?void 0:K.in).getDay();return X===0||X===6}function MK(G,K,X){var B=V(G,X===null||X===void 0?void 0:X.in),U=xG(B,X);if(isNaN(K))return Y(X===null||X===void 0?void 0:X.in,NaN);var Z=B.getHours(),j=K<0?-1:1,J=Math.trunc(K/5);B.setDate(B.getDate()+J*7);var H=Math.abs(K%5);while(H>0)if(B.setDate(B.getDate()+j),!xG(B,X))H-=1;if(U&&xG(B,X)&&K!==0){if(wK(B,X))B.setDate(B.getDate()+(j<0?2:-1));if(YK(B,X))B.setDate(B.getDate()+(j<0?1:-2))}return B.setHours(Z),B}var GU=Q(MK,2),KU=Q(MK,3),XU=Q(e,2),BU=Q(e,3);function zG(G,K,X){return Y((X===null||X===void 0?void 0:X.in)||G,+V(G)+K)}function CK(G,K,X){return zG(G,K*AG,X)}var UU=Q(CK,2),ZU=Q(CK,3);function d(){return bX}function HA(G){bX=G}var bX={};function _(G,K){var X,B,U,Z,j,J,H=d(),q=(X=(B=(U=(Z=K===null||K===void 0?void 0:K.weekStartsOn)!==null&&Z!==void 0?Z:K===null||K===void 0||(j=K.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&U!==void 0?U:H.weekStartsOn)!==null&&B!==void 0?B:(J=H.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&X!==void 0?X:0,N=V(G,K===null||K===void 0?void 0:K.in),F=N.getDay(),A=(F<q?7:0)+F-q;return N.setDate(N.getDate()-A),N.setHours(0,0,0,0),N}function s(G,K){return _(G,n(n({},K),{},{weekStartsOn:1}))}function BG(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=X.getFullYear(),U=Y(X,0);U.setFullYear(B+1,0,4),U.setHours(0,0,0,0);var Z=s(U),j=Y(X,0);j.setFullYear(B,0,4),j.setHours(0,0,0,0);var J=s(j);if(X.getTime()>=Z.getTime())return B+1;else if(X.getTime()>=J.getTime())return B;else return B-1}function r(G){var K=V(G),X=new Date(Date.UTC(K.getFullYear(),K.getMonth(),K.getDate(),K.getHours(),K.getMinutes(),K.getSeconds(),K.getMilliseconds()));return X.setUTCFullYear(K.getFullYear()),+G-+X}function D(G){for(var K=arguments.length,X=new Array(K>1?K-1:0),B=1;B<K;B++)X[B-1]=arguments[B];var U=Y.bind(null,G||X.find(function(Z){return a(Z)==="object"}));return X.map(U)}function YG(G,K){var X=V(G,K===null||K===void 0?void 0:K.in);return X.setHours(0,0,0,0),X}function o(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=YG(Z),H=YG(j),q=+J-r(J),N=+H-r(H);return Math.round((q-N)/RX)}function UG(G,K){var X=BG(G,K),B=Y((K===null||K===void 0?void 0:K.in)||G,0);return B.setFullYear(X,0,4),B.setHours(0,0,0,0),s(B)}function TK(G,K,X){var B=V(G,X===null||X===void 0?void 0:X.in),U=o(B,UG(B,X)),Z=Y((X===null||X===void 0?void 0:X.in)||G,0);return Z.setFullYear(K,0,4),Z.setHours(0,0,0,0),B=UG(Z),B.setDate(B.getDate()+U),B}function WK(G,K,X){return TK(G,BG(G,X)+K,X)}var QU=Q(WK,2),jU=Q(WK,3),JU=Q(zG,2),HU=Q(zG,3);function nG(G,K,X){var B=V(G,X===null||X===void 0?void 0:X.in);return B.setTime(B.getTime()+K*XG),B}var qU=Q(nG,2),NU=Q(nG,3),VU=Q(wG,2),FU=Q(wG,3);function aG(G,K,X){return wG(G,K*3,X)}var AU=Q(aG,2),EU=Q(aG,3);function bK(G,K,X){return zG(G,K*1000,X)}var xU=Q(bK,2),RU=Q(bK,3);function $G(G,K,X){return e(G,K*7,X)}var IU=Q($G,2),LU=Q($G,3),wU=Q(EG,3);function zK(G,K,X){return wG(G,K*12,X)}var YU=Q(zK,2),MU=Q(zK,3);function zX(G,K,X){var B=[+V(G.start,X===null||X===void 0?void 0:X.in),+V(G.end,X===null||X===void 0?void 0:X.in)].sort(function(F,A){return F-A}),U=P(B,2),Z=U[0],j=U[1],J=[+V(K.start,X===null||X===void 0?void 0:X.in),+V(K.end,X===null||X===void 0?void 0:X.in)].sort(function(F,A){return F-A}),H=P(J,2),q=H[0],N=H[1];if(X!==null&&X!==void 0&&X.inclusive)return Z<=N&&q<=j;return Z<N&&q<j}var CU=Q(zX,2),TU=Q(zX,3);function $K(G,K){var X,B=K===null||K===void 0?void 0:K.in;return G.forEach(function(U){if(!B&&a(U)==="object")B=Y.bind(null,U);var Z=V(U,B);if(!X||X<Z||isNaN(+Z))X=Z}),Y(B,X||NaN)}function PK(G,K){var X,B=K===null||K===void 0?void 0:K.in;return G.forEach(function(U){if(!B&&a(U)==="object")B=Y.bind(null,U);var Z=V(U,B);if(!X||X>Z||isNaN(+Z))X=Z}),Y(B,X||NaN)}function $X(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K.start,K.end),U=P(B,3),Z=U[0],j=U[1],J=U[2];return PK([$K([Z,j],X),J],X)}var WU=Q($X,2),bU=Q($X,3);function PX(G,K){var X=+V(G);if(isNaN(X))return NaN;var B,U;return K.forEach(function(Z,j){var J=V(Z);if(isNaN(+J)){B=NaN,U=NaN;return}var H=Math.abs(X-+J);if(B==null||H<U)B=j,U=H}),B}var zU=Q(PX,2);function OX(G,K,X){var B=D.apply(void 0,[X===null||X===void 0?void 0:X.in,G].concat(pG(K))),U=lB(B),Z=U[0],j=U.slice(1),J=PX(Z,j);if(typeof J==="number"&&isNaN(J))return Y(Z,NaN);if(J!==void 0)return j[J]}var $U=Q(OX,2),PU=Q(OX,3);function t(G,K){var X=+V(G)-+V(K);if(X<0)return-1;else if(X>0)return 1;return X}var OU=Q(t,2);function vU(G,K){var X=+V(G)-+V(K);if(X>0)return-1;else if(X<0)return 1;return X}var DU=Q(vU,2),SU=Q(Y,2);function yU(G){var K=Math.trunc(G/xX);return K===0?0:K}var hU=Q(yU,1);function OK(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1];return+YG(Z)===+YG(j)}function vX(G){return G instanceof Date||a(G)==="object"&&Object.prototype.toString.call(G)==="[object Date]"}function ZG(G){return!(!vX(G)&&typeof G!=="number"||isNaN(+V(G)))}function DX(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1];if(!ZG(Z)||!ZG(j))return NaN;var J=o(Z,j),H=J<0?-1:1,q=Math.trunc(J/7),N=q*5,F=e(j,q*7);while(!OK(Z,F))N+=xG(F,X)?0:H,F=e(F,H);return N===0?0:N}var kU=Q(DX,2),gU=Q(DX,3),mU=Q(o,2),fU=Q(o,3);function vK(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1];return BG(Z,X)-BG(j,X)}var cU=Q(vK,2),uU=Q(vK,3);function SX(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=s(Z),H=s(j),q=+J-r(J),N=+H-r(H);return Math.round((q-N)/bG)}var _U=Q(SX,2),lU=Q(SX,3);function PG(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=Z.getFullYear()-j.getFullYear(),H=Z.getMonth()-j.getMonth();return J*12+H}var pU=Q(PG,2),dU=Q(PG,3);function oG(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=Math.trunc(X.getMonth()/3)+1;return B}function OG(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=Z.getFullYear()-j.getFullYear(),H=oG(Z)-oG(j);return J*4+H}var rU=Q(OG,2),sU=Q(OG,3);function vG(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=_(Z,X),H=_(j,X),q=+J-r(J),N=+H-r(H);return Math.round((q-N)/bG)}var iU=Q(vG,2),nU=Q(vG,3);function MG(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1];return Z.getFullYear()-j.getFullYear()}var aU=Q(MG,2),oU=Q(MG,3);function eG(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=yX(Z,j),H=Math.abs(o(Z,j));Z.setDate(Z.getDate()-J*H);var q=Number(yX(Z,j)===-J),N=J*(H-q);return N===0?0:N}function yX(G,K){var X=G.getFullYear()-K.getFullYear()||G.getMonth()-K.getMonth()||G.getDate()-K.getDate()||G.getHours()-K.getHours()||G.getMinutes()-K.getMinutes()||G.getSeconds()-K.getSeconds()||G.getMilliseconds()-K.getMilliseconds();if(X<0)return-1;if(X>0)return 1;return X}var eU=Q(eG,2),tU=Q(eG,3);function VG(G){return function(K){var X=G?Math[G]:Math.trunc,B=X(K);return B===0?0:B}}function DG(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=(+Z-+j)/AG;return VG(X===null||X===void 0?void 0:X.roundingMethod)(J)}var GZ=Q(DG,2),KZ=Q(DG,3);function DK(G,K,X){return WK(G,-K,X)}function hX(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=t(Z,j),H=Math.abs(vK(Z,j,X)),q=DK(Z,J*H,X),N=Number(t(q,j)===-J),F=J*(H-N);return F===0?0:F}var XZ=Q(hX,2),BZ=Q(hX,3);function SK(G,K){return+V(G)-+V(K)}var UZ=Q(SK,2);function SG(G,K,X){var B=SK(G,K)/XG;return VG(X===null||X===void 0?void 0:X.roundingMethod)(B)}var ZZ=Q(SG,2),QZ=Q(SG,3);function yK(G,K){var X=V(G,K===null||K===void 0?void 0:K.in);return X.setHours(23,59,59,999),X}function tG(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=X.getMonth();return X.setFullYear(X.getFullYear(),B+1,0),X.setHours(23,59,59,999),X}function hK(G,K){var X=V(G,K===null||K===void 0?void 0:K.in);return+yK(X,K)===+tG(X,K)}function yG(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,G,K),U=P(B,3),Z=U[0],j=U[1],J=U[2],H=t(j,J),q=Math.abs(PG(j,J));if(q<1)return 0;if(j.getMonth()===1&&j.getDate()>27)j.setDate(30);j.setMonth(j.getMonth()-H*q);var N=t(j,J)===-H;if(hK(Z)&&q===1&&t(Z,J)===1)N=!1;var F=H*(q-+N);return F===0?0:F}var jZ=Q(yG,2),JZ=Q(yG,3);function kX(G,K,X){var B=yG(G,K,X)/3;return VG(X===null||X===void 0?void 0:X.roundingMethod)(B)}var HZ=Q(kX,2),qZ=Q(kX,3);function RG(G,K,X){var B=SK(G,K)/1000;return VG(X===null||X===void 0?void 0:X.roundingMethod)(B)}var NZ=Q(RG,2),VZ=Q(RG,3);function gX(G,K,X){var B=eG(G,K,X)/7;return VG(X===null||X===void 0?void 0:X.roundingMethod)(B)}var FZ=Q(gX,2),AZ=Q(gX,3);function kK(G,K,X){var B=D(X===null||X===void 0?void 0:X.in,G,K),U=P(B,2),Z=U[0],j=U[1],J=t(Z,j),H=Math.abs(MG(Z,j));Z.setFullYear(1584),j.setFullYear(1584);var q=t(Z,j)===-J,N=J*(H-+q);return N===0?0:N}var EZ=Q(kK,2),xZ=Q(kK,3);function QG(G,K){var X=D(G,K.start,K.end),B=P(X,2),U=B[0],Z=B[1];return{start:U,end:Z}}function gK(G,K){var X,B=QG(K===null||K===void 0?void 0:K.in,G),U=B.start,Z=B.end,j=+U>+Z,J=j?+U:+Z,H=j?Z:U;H.setHours(0,0,0,0);var q=(X=K===null||K===void 0?void 0:K.step)!==null&&X!==void 0?X:1;if(!q)return[];if(q<0)q=-q,j=!j;var N=[];while(+H<=J)N.push(Y(U,H)),H.setDate(H.getDate()+q),H.setHours(0,0,0,0);return j?N.reverse():N}var RZ=Q(gK,1),IZ=Q(gK,2);function mX(G,K){var X,B=QG(K===null||K===void 0?void 0:K.in,G),U=B.start,Z=B.end,j=+U>+Z,J=j?+U:+Z,H=j?Z:U;H.setMinutes(0,0,0);var q=(X=K===null||K===void 0?void 0:K.step)!==null&&X!==void 0?X:1;if(!q)return[];if(q<0)q=-q,j=!j;var N=[];while(+H<=J)N.push(Y(U,H)),H.setHours(H.getHours()+q);return j?N.reverse():N}var LZ=Q(mX,1),wZ=Q(mX,2);function fX(G,K){var X,B=QG(K===null||K===void 0?void 0:K.in,G),U=B.start,Z=B.end;U.setSeconds(0,0);var j=+U>+Z,J=j?+U:+Z,H=j?Z:U,q=(X=K===null||K===void 0?void 0:K.step)!==null&&X!==void 0?X:1;if(!q)return[];if(q<0)q=-q,j=!j;var N=[];while(+H<=J)N.push(Y(U,H)),H=nG(H,q);return j?N.reverse():N}var YZ=Q(fX,1),MZ=Q(fX,2);function cX(G,K){var X,B=QG(K===null||K===void 0?void 0:K.in,G),U=B.start,Z=B.end,j=+U>+Z,J=j?+U:+Z,H=j?Z:U;H.setHours(0,0,0,0),H.setDate(1);var q=(X=K===null||K===void 0?void 0:K.step)!==null&&X!==void 0?X:1;if(!q)return[];if(q<0)q=-q,j=!j;var N=[];while(+H<=J)N.push(Y(U,H)),H.setMonth(H.getMonth()+q);return j?N.reverse():N}var CZ=Q(cX,1),TZ=Q(cX,2);function FG(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=X.getMonth(),U=B-B%3;return X.setMonth(U,1),X.setHours(0,0,0,0),X}function uX(G,K){var X,B=QG(K===null||K===void 0?void 0:K.in,G),U=B.start,Z=B.end,j=+U>+Z,J=j?+FG(U):+FG(Z),H=j?FG(Z):FG(U),q=(X=K===null||K===void 0?void 0:K.step)!==null&&X!==void 0?X:1;if(!q)return[];if(q<0)q=-q,j=!j;var N=[];while(+H<=J)N.push(Y(U,H)),H=aG(H,q);return j?N.reverse():N}var WZ=Q(uX,1),bZ=Q(uX,2);function _X(G,K){var X,B=QG(K===null||K===void 0?void 0:K.in,G),U=B.start,Z=B.end,j=+U>+Z,J=j?_(Z,K):_(U,K),H=j?_(U,K):_(Z,K);J.setHours(15),H.setHours(15);var q=+H.getTime(),N=J,F=(X=K===null||K===void 0?void 0:K.step)!==null&&X!==void 0?X:1;if(!F)return[];if(F<0)F=-F,j=!j;var A=[];while(+N<=q)N.setHours(0),A.push(Y(U,N)),N=$G(N,F),N.setHours(15);return j?A.reverse():A}var zZ=Q(_X,1),$Z=Q(_X,2);function GK(G,K){var X=QG(K===null||K===void 0?void 0:K.in,G),B=X.start,U=X.end,Z=gK({start:B,end:U},K),j=[],J=0;while(J<Z.length){var H=Z[J++];if(xG(H))j.push(Y(B,H))}return j}var PZ=Q(GK,1),OZ=Q(GK,2);function hG(G,K){var X=V(G,K===null||K===void 0?void 0:K.in);return X.setDate(1),X.setHours(0,0,0,0),X}function lX(G,K){var X=hG(G,K),B=tG(G,K);return GK({start:X,end:B},K)}var vZ=Q(lX,1),DZ=Q(lX,2);function mK(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=X.getFullYear();return X.setFullYear(B+1,0,0),X.setHours(23,59,59,999),X}function KK(G,K){var X=V(G,K===null||K===void 0?void 0:K.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}function pX(G,K){var X=KK(G,K),B=mK(G,K);return GK({start:X,end:B},K)}var SZ=Q(pX,1),yZ=Q(pX,2);function dX(G,K){var X,B=QG(K===null||K===void 0?void 0:K.in,G),U=B.start,Z=B.end,j=+U>+Z,J=j?+U:+Z,H=j?Z:U;H.setHours(0,0,0,0),H.setMonth(0,1);var q=(X=K===null||K===void 0?void 0:K.step)!==null&&X!==void 0?X:1;if(!q)return[];if(q<0)q=-q,j=!j;var N=[];while(+H<=J)N.push(Y(U,H)),H.setFullYear(H.getFullYear()+q);return j?N.reverse():N}var hZ=Q(dX,1),kZ=Q(dX,2),gZ=Q(yK,1),mZ=Q(yK,2);function rX(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=X.getFullYear(),U=9+Math.floor(B/10)*10;return X.setFullYear(U,11,31),X.setHours(23,59,59,999),X}var fZ=Q(rX,1),cZ=Q(rX,2);function sX(G,K){var X=V(G,K===null||K===void 0?void 0:K.in);return X.setMinutes(59,59,999),X}var uZ=Q(sX,1),_Z=Q(sX,2);function fK(G,K){var X,B,U,Z,j,J,H=d(),q=(X=(B=(U=(Z=K===null||K===void 0?void 0:K.weekStartsOn)!==null&&Z!==void 0?Z:K===null||K===void 0||(j=K.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&U!==void 0?U:H.weekStartsOn)!==null&&B!==void 0?B:(J=H.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&X!==void 0?X:0,N=V(G,K===null||K===void 0?void 0:K.in),F=N.getDay(),A=(F<q?-7:0)+6-(F-q);return N.setDate(N.getDate()+A),N.setHours(23,59,59,999),N}function iX(G,K){return fK(G,n(n({},K),{},{weekStartsOn:1}))}var lZ=Q(iX,1),pZ=Q(iX,2);function nX(G,K){var X=BG(G,K),B=Y((K===null||K===void 0?void 0:K.in)||G,0);B.setFullYear(X+1,0,4),B.setHours(0,0,0,0);var U=s(B,K);return U.setMilliseconds(U.getMilliseconds()-1),U}var dZ=Q(nX,1),rZ=Q(nX,2);function aX(G,K){var X=V(G,K===null||K===void 0?void 0:K.in);return X.setSeconds(59,999),X}var sZ=Q(aX,1),iZ=Q(aX,2),nZ=Q(tG,1),aZ=Q(tG,2);function oX(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=X.getMonth(),U=B-B%3+3;return X.setMonth(U,0),X.setHours(23,59,59,999),X}var oZ=Q(oX,1),eZ=Q(oX,2);function eX(G,K){var X=V(G,K===null||K===void 0?void 0:K.in);return X.setMilliseconds(999),X}var tZ=Q(eX,1),GQ=Q(eX,2),KQ=Q(fK,1),XQ=Q(fK,2),BQ=Q(mK,1),UQ=Q(mK,2),ZQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},QQ=function G(K,X,B){var U,Z=ZQ[K];if(typeof Z==="string")U=Z;else if(X===1)U=Z.one;else U=Z.other.replace("{{count}}",X.toString());if(B!==null&&B!==void 0&&B.addSuffix)if(B.comparison&&B.comparison>0)return"in "+U;else return U+" ago";return U};function cK(G){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},X=K.width?String(K.width):G.defaultWidth,B=G.formats[X]||G.formats[G.defaultWidth];return B}}var jQ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},JQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},HQ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qQ={date:cK({formats:jQ,defaultWidth:"full"}),time:cK({formats:JQ,defaultWidth:"full"}),dateTime:cK({formats:HQ,defaultWidth:"full"})},NQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},VQ=function G(K,X,B,U){return NQ[K]};function kG(G){return function(K,X){var B=X!==null&&X!==void 0&&X.context?String(X.context):"standalone",U;if(B==="formatting"&&G.formattingValues){var Z=G.defaultFormattingWidth||G.defaultWidth,j=X!==null&&X!==void 0&&X.width?String(X.width):Z;U=G.formattingValues[j]||G.formattingValues[Z]}else{var J=G.defaultWidth,H=X!==null&&X!==void 0&&X.width?String(X.width):G.defaultWidth;U=G.values[H]||G.values[J]}var q=G.argumentCallback?G.argumentCallback(K):K;return U[q]}}var FQ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},AQ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},EQ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xQ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},RQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},IQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},LQ=function G(K,X){var B=Number(K),U=B%100;if(U>20||U<10)switch(U%10){case 1:return B+"st";case 2:return B+"nd";case 3:return B+"rd"}return B+"th"},wQ={ordinalNumber:LQ,era:kG({values:FQ,defaultWidth:"wide"}),quarter:kG({values:AQ,defaultWidth:"wide",argumentCallback:function G(K){return K-1}}),month:kG({values:EQ,defaultWidth:"wide"}),day:kG({values:xQ,defaultWidth:"wide"}),dayPeriod:kG({values:RQ,defaultWidth:"wide",formattingValues:IQ,defaultFormattingWidth:"wide"})};function gG(G){return function(K){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=X.width,U=B&&G.matchPatterns[B]||G.matchPatterns[G.defaultMatchWidth],Z=K.match(U);if(!Z)return null;var j=Z[0],J=B&&G.parsePatterns[B]||G.parsePatterns[G.defaultParseWidth],H=Array.isArray(J)?MQ(J,function(F){return F.test(j)}):YQ(J,function(F){return F.test(j)}),q;q=G.valueCallback?G.valueCallback(H):H,q=X.valueCallback?X.valueCallback(q):q;var N=K.slice(j.length);return{value:q,rest:N}}}function YQ(G,K){for(var X in G)if(Object.prototype.hasOwnProperty.call(G,X)&&K(G[X]))return X;return}function MQ(G,K){for(var X=0;X<G.length;X++)if(K(G[X]))return X;return}function CQ(G){return function(K){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=K.match(G.matchPattern);if(!B)return null;var U=B[0],Z=K.match(G.parsePattern);if(!Z)return null;var j=G.valueCallback?G.valueCallback(Z[0]):Z[0];j=X.valueCallback?X.valueCallback(j):j;var J=K.slice(U.length);return{value:j,rest:J}}}var TQ=/^(\d+)(th|st|nd|rd)?/i,WQ=/\d+/i,bQ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},zQ={any:[/^b/i,/^(a|c)/i]},$Q={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PQ={any:[/1/i,/2/i,/3/i,/4/i]},OQ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vQ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},DQ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},SQ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},yQ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hQ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kQ={ordinalNumber:CQ({matchPattern:TQ,parsePattern:WQ,valueCallback:function G(K){return parseInt(K,10)}}),era:gG({matchPatterns:bQ,defaultMatchWidth:"wide",parsePatterns:zQ,defaultParseWidth:"any"}),quarter:gG({matchPatterns:$Q,defaultMatchWidth:"wide",parsePatterns:PQ,defaultParseWidth:"any",valueCallback:function G(K){return K+1}}),month:gG({matchPatterns:OQ,defaultMatchWidth:"wide",parsePatterns:vQ,defaultParseWidth:"any"}),day:gG({matchPatterns:DQ,defaultMatchWidth:"wide",parsePatterns:SQ,defaultParseWidth:"any"}),dayPeriod:gG({matchPatterns:yQ,defaultMatchWidth:"any",parsePatterns:hQ,defaultParseWidth:"any"})},CG={code:"en-US",formatDistance:QQ,formatLong:qQ,formatRelative:VQ,localize:wQ,match:kQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function uK(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=o(X,KK(X)),U=B+1;return U}function XK(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=+s(X)-+UG(X);return Math.round(B/bG)+1}function mG(G,K){var X,B,U,Z,j,J,H=V(G,K===null||K===void 0?void 0:K.in),q=H.getFullYear(),N=d(),F=(X=(B=(U=(Z=K===null||K===void 0?void 0:K.firstWeekContainsDate)!==null&&Z!==void 0?Z:K===null||K===void 0||(j=K.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&U!==void 0?U:N.firstWeekContainsDate)!==null&&B!==void 0?B:(J=N.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.firstWeekContainsDate)!==null&&X!==void 0?X:1,A=Y((K===null||K===void 0?void 0:K.in)||G,0);A.setFullYear(q+1,0,F),A.setHours(0,0,0,0);var w=_(A,K),L=Y((K===null||K===void 0?void 0:K.in)||G,0);L.setFullYear(q,0,F),L.setHours(0,0,0,0);var M=_(L,K);if(+H>=+w)return q+1;else if(+H>=+M)return q;else return q-1}function fG(G,K){var X,B,U,Z,j,J,H=d(),q=(X=(B=(U=(Z=K===null||K===void 0?void 0:K.firstWeekContainsDate)!==null&&Z!==void 0?Z:K===null||K===void 0||(j=K.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&U!==void 0?U:H.firstWeekContainsDate)!==null&&B!==void 0?B:(J=H.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.firstWeekContainsDate)!==null&&X!==void 0?X:1,N=mG(G,K),F=Y((K===null||K===void 0?void 0:K.in)||G,0);F.setFullYear(N,0,q),F.setHours(0,0,0,0);var A=_(F,K);return A}function BK(G,K){var X=V(G,K===null||K===void 0?void 0:K.in),B=+_(X,K)-+fG(X,K);return Math.round(B/bG)+1}function I(G,K){var X=G<0?"-":"",B=Math.abs(G).toString().padStart(K,"0");return X+B}var jG={y:function G(K,X){var B=K.getFullYear(),U=B>0?B:1-B;return I(X==="yy"?U%100:U,X.length)},M:function G(K,X){var B=K.getMonth();return X==="M"?String(B+1):I(B+1,2)},d:function G(K,X){return I(K.getDate(),X.length)},a:function G(K,X){var B=K.getHours()/12>=1?"pm":"am";switch(X){case"a":case"aa":return B.toUpperCase();case"aaa":return B;case"aaaaa":return B[0];case"aaaa":default:return B==="am"?"a.m.":"p.m."}},h:function G(K,X){return I(K.getHours()%12||12,X.length)},H:function G(K,X){return I(K.getHours(),X.length)},m:function G(K,X){return I(K.getMinutes(),X.length)},s:function G(K,X){return I(K.getSeconds(),X.length)},S:function G(K,X){var B=X.length,U=K.getMilliseconds(),Z=Math.trunc(U*Math.pow(10,B-3));return I(Z,X.length)}};function tX(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=G>0?"-":"+",B=Math.abs(G),U=Math.trunc(B/60),Z=B%60;if(Z===0)return X+String(U);return X+String(U)+K+I(Z,2)}function G0(G,K){if(G%60===0){var X=G>0?"-":"+";return X+I(Math.abs(G)/60,2)}return IG(G,K)}function IG(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=G>0?"-":"+",B=Math.abs(G),U=I(Math.trunc(B/60),2),Z=I(B%60,2);return X+U+K+Z}var TG={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},K0={G:function G(K,X,B){var U=K.getFullYear()>0?1:0;switch(X){case"G":case"GG":case"GGG":return B.era(U,{width:"abbreviated"});case"GGGGG":return B.era(U,{width:"narrow"});case"GGGG":default:return B.era(U,{width:"wide"})}},y:function G(K,X,B){if(X==="yo"){var U=K.getFullYear(),Z=U>0?U:1-U;return B.ordinalNumber(Z,{unit:"year"})}return jG.y(K,X)},Y:function G(K,X,B,U){var Z=mG(K,U),j=Z>0?Z:1-Z;if(X==="YY"){var J=j%100;return I(J,2)}if(X==="Yo")return B.ordinalNumber(j,{unit:"year"});return I(j,X.length)},R:function G(K,X){var B=BG(K);return I(B,X.length)},u:function G(K,X){var B=K.getFullYear();return I(B,X.length)},Q:function G(K,X,B){var U=Math.ceil((K.getMonth()+1)/3);switch(X){case"Q":return String(U);case"QQ":return I(U,2);case"Qo":return B.ordinalNumber(U,{unit:"quarter"});case"QQQ":return B.quarter(U,{width:"abbreviated",context:"formatting"});case"QQQQQ":return B.quarter(U,{width:"narrow",context:"formatting"});case"QQQQ":default:return B.quarter(U,{width:"wide",context:"formatting"})}},q:function G(K,X,B){var U=Math.ceil((K.getMonth()+1)/3);switch(X){case"q":return String(U);case"qq":return I(U,2);case"qo":return B.ordinalNumber(U,{unit:"quarter"});case"qqq":return B.quarter(U,{width:"abbreviated",context:"standalone"});case"qqqqq":return B.quarter(U,{width:"narrow",context:"standalone"});case"qqqq":default:return B.quarter(U,{width:"wide",context:"standalone"})}},M:function G(K,X,B){var U=K.getMonth();switch(X){case"M":case"MM":return jG.M(K,X);case"Mo":return B.ordinalNumber(U+1,{unit:"month"});case"MMM":return B.month(U,{width:"abbreviated",context:"formatting"});case"MMMMM":return B.month(U,{width:"narrow",context:"formatting"});case"MMMM":default:return B.month(U,{width:"wide",context:"formatting"})}},L:function G(K,X,B){var U=K.getMonth();switch(X){case"L":return String(U+1);case"LL":return I(U+1,2);case"