UNPKG

@lanaco/lnc-react-ui

Version:

React component library

295 lines (283 loc) 211 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const At=require("react/jsx-runtime"),v=require("react"),K=require("./index-BPVoEhTF.cjs"),Wa=require("./Icon.cjs"),Ua=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),I=require("./utils-NZLCh-J5.cjs"),ie=require("./index-gY9e_8LL.cjs"),h=require("./defineProperty-CqVRDJI8.cjs"),T=require("./setPrototypeOf-4aSEnBDm.cjs"),Ir=require("./index-EeoArxOx.cjs"),Qn=require("./_commonjsHelpers-DKOUU3wS.cjs"),Ha=require("./TextInput.cjs"),$a=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function Ba(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>a[r]})}}return n.default=a,Object.freeze(n)}const q=Ba(v),ja=Ua.newStyled.div` ${a=>I.getComponentTypographyCss(a.theme,"DateInput",a.size,"enabled")} & .react-datepicker__header__dropdown { position: absolute !important; z-index: 30; top: 1.3rem; font-size: 1rem; width: 100%; @media (max-width: 725px) { width: ${a=>a.monthsShown>1?"200%":"100%"}; } @media (max-width: 550px) { width: 100%; } } & input { border: none; outline: none; ${a=>I.getComponentTypographyCss(a.theme,"DateInput",a.size,"enabled")} } & .react-datepicker { position: relative; background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"enabled","background")}; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"enabled","text")}; border: none; box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06); border-radius: 16px; } & .react-datepicker__day { min-width: 2rem; width: ${a=>a.withPortal===!0?"2.75rem":"2.25rem"}; height: ${a=>a.withPortal===!0?"2.75rem":"2.25rem"}; } & .react-datepicker__month-read-view--down-arrow, .react-datepicker__year-read-view--down-arrow { display: none; } & .react-datepicker__day--today { border: 1px solid ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"enabled","today")}; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"enabled","today")} !important; border-radius: 8px; } & .react-datepicker__current-month, & .react-datepicker-time__header, & .react-datepicker-year-header { padding: 0.875rem 0 0 0; font-size: 1rem; font-weight: 400; } & .react-datepicker__day--outside-month { color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"enabled","textWeekDays")} !important; background-color: transparent !important; } & .react-datepicker__header { border-radius: 8px 8px 0 0; background-color: transparent; border-bottom: 1px solid transparent; font-size: 1rem; } & .react-datepicker__day-names { margin-top: 3.5rem; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"enabled","textWeekDays")} !important; } & .react-datepicker__day-name, & .react-datepicker__day, & .react-datepicker__time-name { color: var(--primary); font-size: 1rem; min-width: 2rem; padding: ${a=>a.withPortal===!0?"0":"0.3rem"}; } & .react-datepicker__day-name { line-height: 0; } & .react-datepicker__day--keyboard-selected:hover, & .react-datepicker__month-text--keyboard-selected:hover, & .react-datepicker__quarter-text--keyboard-selected:hover, & .react-datepicker__year-text--keyboard-selected:hover, & .react-datepicker__day:hover { background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"hover","background","backgroundOpacity")}; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"hover","text")}; } & .react-datepicker__year-dropdown, & .react-datepicker__month-dropdown, & .react-datepicker__month-year-dropdown { font-size: 1rem; background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"enabled","background")}; } & .react-datepicker__year-dropdown, & .react-datepicker__month-dropdown, & .react-datepicker__month-year-dropdown { width: 100%; left: 0%; display: flex; flex-wrap: wrap; border: 1px solid transparent; box-shadow: 0px 0px 20px rgba(65, 43, 118, 0.1); border-radius: 8px; padding: 4px; } & .react-datepicker__year-option, & .react-datepicker__month-year-option { width: 33.33%; margin-left: 0; padding: 0.45rem; margin-right: 0; } & .react-datepicker__month-option { width: 50%; margin-left: 0; padding: 0.45rem; margin-right: 0; } & .react-datepicker__year-option:hover, & .react-datepicker__month-option:hover, & .react-datepicker__month-year-option:hover { border-radius: 8px; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"hover","text")}; border-radius: 8px; background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"hover","background","backgroundOpacity")}; } & .react-datepicker__year-option:nth-of-type(1), & .react-datepicker__month-year-option:nth-of-type(1), & .react-datepicker__year-option:last-of-type, & .react-datepicker__month-year-option:last-of-type { width: 100%; } & .react-datepicker__year-option--selected, & .react-datepicker__month-option--selected, & .react-datepicker__month-year-option--selected { position: unset; } & .react-datepicker__year-option--selected_year { color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"active","text")}; border-radius: 8px; background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"active","background")}; } & .react-datepicker__year-option--selected, & .react-datepicker__month-option--selected { display: none; } & .react-datepicker__navigation--years.react-datepicker__navigation--years-upcoming { top: -4px; border-bottom-color: #ccc; } & .react-datepicker__year-read-view, & .react-datepicker__month-read-view, & .react-datepicker__month-year-read-view { color: transparent; } & .react-datepicker__navigation--years.react-datepicker__navigation--years-previous { top: 4px; border-top-color: #ccc; } & .react-datepicker__navigation--years { background: none; line-height: 1.7rem; text-align: center; cursor: pointer; padding: 0; border: 0.45rem solid transparent; z-index: 1; height: 10px; width: 10px; text-indent: -999em; overflow: hidden; position: relative; display: block; margin-left: auto; margin-right: auto; } & .react-datepicker__year-read-view--down-arrow, & .react-datepicker__month-read-view--down-arrow, & .react-datepicker__month-year-read-view--down-arrow, & .react-datepicker__navigation-icon::before { border-width: 1px 1px 0 0; } & .react-datepicker__navigation { top: 1rem; z-index: 40; } & .react-datepicker__year-read-view--down-arrow, & .react-datepicker__month-read-view--down-arrow, & .react-datepicker__month-year-read-view--down-arrow { top: 4px; border-color: transparent; padding: 4px; } & .react-datepicker__year-read-view--down-arrow, & .react-datepicker__month-read-view--down-arrow, & .react-datepicker__month-year-read-view--down-arrow, & .react-datepicker__navigation-icon::before { border-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"enabled","textWeekDays")}; } & .react-datepicker__header--time { border-bottom: none; } & .react-datepicker__time { ${a=>I.getComponentTypographyCss(a.theme,"DateInput",a.size,"enabled")} background-color: var(--primary-100) !important; font-size: 0.9rem; } & .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover { color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"hover","text")}; border-radius: 8px; background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"hover","background","backgroundOpacity")}; } & .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected { color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"active","text")}; border-radius: 8px; background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"active","background")}; } & .react-datepicker__navigation--years.react-datepicker__navigation--years-upcoming { border-bottom-color: var(--primary); } & .react-datepicker__navigation--years.react-datepicker__navigation--years-previous { border-top-color: var(--primary); } & .react-datepicker-popper[data-placement^="bottom"] { padding-top: 0; } & .react-datepicker__day--selected, & .react-datepicker__day--in-selecting-range, & .react-datepicker__day--in-range, & .react-datepicker__month-text--selected, & .react-datepicker__month-text--in-selecting-range, & .react-datepicker__month-text--in-range, & .react-datepicker__quarter-text--selected, & .react-datepicker__quarter-text--in-selecting-range, & .react-datepicker__quarter-text--in-range, & .react-datepicker__year-text--selected, & .react-datepicker__year-text--in-selecting-range, & .react-datepicker__year-text--in-range { background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"active","background")}; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"active","text")}; border: none; } & .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range, .react-datepicker__day--selecting-range-start, .react-datepicker__day--selecting-range-end, .react-datepicker__month-text--in-range, .react-datepicker__quarter-text--in-range, .react-datepicker__year-text--in-range), & .react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range, .react-datepicker__month-text--in-range, .react-datepicker__quarter-text--in-range, .react-datepicker__year-text--in-range), & .react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range, .react-datepicker__month-text--in-range, .react-datepicker__quarter-text--in-range, .react-datepicker__year-text--in-range), & .react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range, .react-datepicker__month-text--in-range, .react-datepicker__quarter-text--in-range, .react-datepicker__year-text--in-range) { border-radius: 8px; background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"hover","background","backgroundOpacity")}; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"hover","text")}; } & .react-datepicker__day--selecting-range-start, & .react-datepicker__day--selecting-range-end { background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"active","background")}; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"active","text")}; } & .react-datepicker__day--disabled { background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"disabled","background")}; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"disabled","text")}; &:hover { background-color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"disabled","background")}; color: ${a=>I.getColorRgbaValue(a.theme,"DateInput",a.color,"disabled","text")}; } } & .react-datepicker__week { display: flex; } `;function _(a,n){if(n.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+n.length+" present")}function ar(a){return _(1,arguments),a instanceof Date||h._typeof(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function x(a){_(1,arguments);var n=Object.prototype.toString.call(a);return a instanceof Date||h._typeof(a)==="object"&&n==="[object Date]"?new Date(a.getTime()):typeof a=="number"||n==="[object Number]"?new Date(a):((typeof a=="string"||n==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function xt(a){if(_(1,arguments),!ar(a)&&typeof a!="number")return!1;var n=x(a);return!isNaN(Number(n))}function E(a){if(a===null||a===!0||a===!1)return NaN;var n=Number(a);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function Yr(a,n){_(2,arguments);var r=x(a).getTime(),t=E(n);return new Date(r+t)}function zn(a,n){_(2,arguments);var r=E(n);return Yr(a,-r)}var qa=864e5;function Qa(a){_(1,arguments);var n=x(a),r=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var t=n.getTime(),e=r-t;return Math.floor(e/qa)+1}function st(a){_(1,arguments);var n=1,r=x(a),t=r.getUTCDay(),e=(t<n?7:0)+t-n;return r.setUTCDate(r.getUTCDate()-e),r.setUTCHours(0,0,0,0),r}function Vn(a){_(1,arguments);var n=x(a),r=n.getUTCFullYear(),t=new Date(0);t.setUTCFullYear(r+1,0,4),t.setUTCHours(0,0,0,0);var e=st(t),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var i=st(o);return n.getTime()>=e.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function za(a){_(1,arguments);var n=Vn(a),r=new Date(0);r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0);var t=st(r);return t}var Va=6048e5;function Kn(a){_(1,arguments);var n=x(a),r=st(n).getTime()-za(n).getTime();return Math.round(r/Va)+1}var Ka={};function et(){return Ka}function Ze(a,n){var r,t,e,o,i,s,c,u;_(1,arguments);var l=et(),f=E((r=(t=(e=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(i=n.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&e!==void 0?e:l.weekStartsOn)!==null&&t!==void 0?t:(c=l.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=x(a),g=m.getUTCDay(),y=(g<f?7:0)+g-f;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function Rr(a,n){var r,t,e,o,i,s,c,u;_(1,arguments);var l=x(a),f=l.getUTCFullYear(),m=et(),g=E((r=(t=(e=(o=n==null?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:n==null||(i=n.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&e!==void 0?e:m.firstWeekContainsDate)!==null&&t!==void 0?t:(c=m.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,g),y.setUTCHours(0,0,0,0);var w=Ze(y,n),b=new Date(0);b.setUTCFullYear(f,0,g),b.setUTCHours(0,0,0,0);var C=Ze(b,n);return l.getTime()>=w.getTime()?f+1:l.getTime()>=C.getTime()?f:f-1}function Xa(a,n){var r,t,e,o,i,s,c,u;_(1,arguments);var l=et(),f=E((r=(t=(e=(o=n==null?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:n==null||(i=n.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&e!==void 0?e:l.firstWeekContainsDate)!==null&&t!==void 0?t:(c=l.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),m=Rr(a,n),g=new Date(0);g.setUTCFullYear(m,0,f),g.setUTCHours(0,0,0,0);var y=Ze(g,n);return y}var Ga=6048e5;function Xn(a,n){_(1,arguments);var r=x(a),t=Ze(r,n).getTime()-Xa(r,n).getTime();return Math.round(t/Ga)+1}function A(a,n){for(var r=a<0?"-":"",t=Math.abs(a).toString();t.length<n;)t="0"+t;return r+t}var Ae={y:function(n,r){var t=n.getUTCFullYear(),e=t>0?t:1-t;return A(r==="yy"?e%100:e,r.length)},M:function(n,r){var t=n.getUTCMonth();return r==="M"?String(t+1):A(t+1,2)},d:function(n,r){return A(n.getUTCDate(),r.length)},a:function(n,r){var t=n.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(n,r){return A(n.getUTCHours()%12||12,r.length)},H:function(n,r){return A(n.getUTCHours(),r.length)},m:function(n,r){return A(n.getUTCMinutes(),r.length)},s:function(n,r){return A(n.getUTCSeconds(),r.length)},S:function(n,r){var t=r.length,e=n.getUTCMilliseconds(),o=Math.floor(e*Math.pow(10,t-3));return A(o,r.length)}},nt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Za={G:function(n,r,t){var e=n.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"});case"GGGGG":return t.era(e,{width:"narrow"});case"GGGG":default:return t.era(e,{width:"wide"})}},y:function(n,r,t){if(r==="yo"){var e=n.getUTCFullYear(),o=e>0?e:1-e;return t.ordinalNumber(o,{unit:"year"})}return Ae.y(n,r)},Y:function(n,r,t,e){var o=Rr(n,e),i=o>0?o:1-o;if(r==="YY"){var s=i%100;return A(s,2)}return r==="Yo"?t.ordinalNumber(i,{unit:"year"}):A(i,r.length)},R:function(n,r){var t=Vn(n);return A(t,r.length)},u:function(n,r){var t=n.getUTCFullYear();return A(t,r.length)},Q:function(n,r,t){var e=Math.ceil((n.getUTCMonth()+1)/3);switch(r){case"Q":return String(e);case"QQ":return A(e,2);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(e,{width:"wide",context:"formatting"})}},q:function(n,r,t){var e=Math.ceil((n.getUTCMonth()+1)/3);switch(r){case"q":return String(e);case"qq":return A(e,2);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(e,{width:"wide",context:"standalone"})}},M:function(n,r,t){var e=n.getUTCMonth();switch(r){case"M":case"MM":return Ae.M(n,r);case"Mo":return t.ordinalNumber(e+1,{unit:"month"});case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(e,{width:"wide",context:"formatting"})}},L:function(n,r,t){var e=n.getUTCMonth();switch(r){case"L":return String(e+1);case"LL":return A(e+1,2);case"Lo":return t.ordinalNumber(e+1,{unit:"month"});case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(e,{width:"wide",context:"standalone"})}},w:function(n,r,t,e){var o=Xn(n,e);return r==="wo"?t.ordinalNumber(o,{unit:"week"}):A(o,r.length)},I:function(n,r,t){var e=Kn(n);return r==="Io"?t.ordinalNumber(e,{unit:"week"}):A(e,r.length)},d:function(n,r,t){return r==="do"?t.ordinalNumber(n.getUTCDate(),{unit:"date"}):Ae.d(n,r)},D:function(n,r,t){var e=Qa(n);return r==="Do"?t.ordinalNumber(e,{unit:"dayOfYear"}):A(e,r.length)},E:function(n,r,t){var e=n.getUTCDay();switch(r){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"});case"EEEE":default:return t.day(e,{width:"wide",context:"formatting"})}},e:function(n,r,t,e){var o=n.getUTCDay(),i=(o-e.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return A(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(n,r,t,e){var o=n.getUTCDay(),i=(o-e.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return A(i,r.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(n,r,t){var e=n.getUTCDay(),o=e===0?7:e;switch(r){case"i":return String(o);case"ii":return A(o,r.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(e,{width:"short",context:"formatting"});case"iiii":default:return t.day(e,{width:"wide",context:"formatting"})}},a:function(n,r,t){var e=n.getUTCHours(),o=e/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(n,r,t){var e=n.getUTCHours(),o;switch(e===12?o=nt.noon:e===0?o=nt.midnight:o=e/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(n,r,t){var e=n.getUTCHours(),o;switch(e>=17?o=nt.evening:e>=12?o=nt.afternoon:e>=4?o=nt.morning:o=nt.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(n,r,t){if(r==="ho"){var e=n.getUTCHours()%12;return e===0&&(e=12),t.ordinalNumber(e,{unit:"hour"})}return Ae.h(n,r)},H:function(n,r,t){return r==="Ho"?t.ordinalNumber(n.getUTCHours(),{unit:"hour"}):Ae.H(n,r)},K:function(n,r,t){var e=n.getUTCHours()%12;return r==="Ko"?t.ordinalNumber(e,{unit:"hour"}):A(e,r.length)},k:function(n,r,t){var e=n.getUTCHours();return e===0&&(e=24),r==="ko"?t.ordinalNumber(e,{unit:"hour"}):A(e,r.length)},m:function(n,r,t){return r==="mo"?t.ordinalNumber(n.getUTCMinutes(),{unit:"minute"}):Ae.m(n,r)},s:function(n,r,t){return r==="so"?t.ordinalNumber(n.getUTCSeconds(),{unit:"second"}):Ae.s(n,r)},S:function(n,r){return Ae.S(n,r)},X:function(n,r,t,e){var o=e._originalDate||n,i=o.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return an(i);case"XXXX":case"XX":return ze(i);case"XXXXX":case"XXX":default:return ze(i,":")}},x:function(n,r,t,e){var o=e._originalDate||n,i=o.getTimezoneOffset();switch(r){case"x":return an(i);case"xxxx":case"xx":return ze(i);case"xxxxx":case"xxx":default:return ze(i,":")}},O:function(n,r,t,e){var o=e._originalDate||n,i=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+nn(i,":");case"OOOO":default:return"GMT"+ze(i,":")}},z:function(n,r,t,e){var o=e._originalDate||n,i=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+nn(i,":");case"zzzz":default:return"GMT"+ze(i,":")}},t:function(n,r,t,e){var o=e._originalDate||n,i=Math.floor(o.getTime()/1e3);return A(i,r.length)},T:function(n,r,t,e){var o=e._originalDate||n,i=o.getTime();return A(i,r.length)}};function nn(a,n){var r=a>0?"-":"+",t=Math.abs(a),e=Math.floor(t/60),o=t%60;if(o===0)return r+String(e);var i=n;return r+String(e)+i+A(o,2)}function an(a,n){if(a%60===0){var r=a>0?"-":"+";return r+A(Math.abs(a)/60,2)}return ze(a,n)}function ze(a,n){var r=n||"",t=a>0?"-":"+",e=Math.abs(a),o=A(Math.floor(e/60),2),i=A(e%60,2);return t+o+r+i}var on=function(n,r){switch(n){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Gn=function(n,r){switch(n){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Ja=function(n,r){var t=n.match(/(P+)(p+)?/)||[],e=t[1],o=t[2];if(!o)return on(n,r);var i;switch(e){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",on(e,r)).replace("{{time}}",Gn(o,r))},Dr={p:Gn,P:Ja};function Qt(a){var n=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return n.setUTCFullYear(a.getFullYear()),a.getTime()-n.getTime()}var eo=["D","DD"],to=["YY","YYYY"];function Zn(a){return eo.indexOf(a)!==-1}function Jn(a){return to.indexOf(a)!==-1}function zt(a,n,r){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ro={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"}},no=function(n,r,t){var e,o=ro[n];return typeof o=="string"?e=o:r===1?e=o.one:e=o.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+e:e+" ago":e};function lr(a){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.width?String(n.width):a.defaultWidth,t=a.formats[r]||a.formats[a.defaultWidth];return t}}var ao={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oo={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},io={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},so={date:lr({formats:ao,defaultWidth:"full"}),time:lr({formats:oo,defaultWidth:"full"}),dateTime:lr({formats:io,defaultWidth:"full"})},co={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uo=function(n,r,t,e){return co[n]};function yt(a){return function(n,r){var t=r!=null&&r.context?String(r.context):"standalone",e;if(t==="formatting"&&a.formattingValues){var o=a.defaultFormattingWidth||a.defaultWidth,i=r!=null&&r.width?String(r.width):o;e=a.formattingValues[i]||a.formattingValues[o]}else{var s=a.defaultWidth,c=r!=null&&r.width?String(r.width):a.defaultWidth;e=a.values[c]||a.values[s]}var u=a.argumentCallback?a.argumentCallback(n):n;return e[u]}}var lo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},po={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fo={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"]},ho={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"]},mo={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"}},vo={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"}},go=function(n,r){var t=Number(n),e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},yo={ordinalNumber:go,era:yt({values:lo,defaultWidth:"wide"}),quarter:yt({values:po,defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:yt({values:fo,defaultWidth:"wide"}),day:yt({values:ho,defaultWidth:"wide"}),dayPeriod:yt({values:mo,defaultWidth:"wide",formattingValues:vo,defaultFormattingWidth:"wide"})};function wt(a){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.width,e=t&&a.matchPatterns[t]||a.matchPatterns[a.defaultMatchWidth],o=n.match(e);if(!o)return null;var i=o[0],s=t&&a.parsePatterns[t]||a.parsePatterns[a.defaultParseWidth],c=Array.isArray(s)?bo(s,function(f){return f.test(i)}):wo(s,function(f){return f.test(i)}),u;u=a.valueCallback?a.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;var l=n.slice(i.length);return{value:u,rest:l}}}function wo(a,n){for(var r in a)if(a.hasOwnProperty(r)&&n(a[r]))return r}function bo(a,n){for(var r=0;r<a.length;r++)if(n(a[r]))return r}function Do(a){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=n.match(a.matchPattern);if(!t)return null;var e=t[0],o=n.match(a.parsePattern);if(!o)return null;var i=a.valueCallback?a.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;var s=n.slice(e.length);return{value:i,rest:s}}}var ko=/^(\d+)(th|st|nd|rd)?/i,_o=/\d+/i,Co={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},To={any:[/^b/i,/^(a|c)/i]},xo={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Po={any:[/1/i,/2/i,/3/i,/4/i]},So={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},Mo={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]},Oo={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},Eo={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]},No={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},Io={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}},Yo={ordinalNumber:Do({matchPattern:ko,parsePattern:_o,valueCallback:function(n){return parseInt(n,10)}}),era:wt({matchPatterns:Co,defaultMatchWidth:"wide",parsePatterns:To,defaultParseWidth:"any"}),quarter:wt({matchPatterns:xo,defaultMatchWidth:"wide",parsePatterns:Po,defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:wt({matchPatterns:So,defaultMatchWidth:"wide",parsePatterns:Mo,defaultParseWidth:"any"}),day:wt({matchPatterns:Oo,defaultMatchWidth:"wide",parsePatterns:Eo,defaultParseWidth:"any"}),dayPeriod:wt({matchPatterns:No,defaultMatchWidth:"any",parsePatterns:Io,defaultParseWidth:"any"})},ea={code:"en-US",formatDistance:no,formatLong:so,formatRelative:uo,localize:yo,match:Yo,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ro=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ao=/^'([^]*?)'?$/,Fo=/''/g,Wo=/[a-zA-Z]/;function sn(a,n,r){var t,e,o,i,s,c,u,l,f,m,g,y,w,b,C,P,D,k;_(2,arguments);var S=String(n),M=et(),O=(t=(e=r==null?void 0:r.locale)!==null&&e!==void 0?e:M.locale)!==null&&t!==void 0?t:ea,L=E((o=(i=(s=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(u=r.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&s!==void 0?s:M.firstWeekContainsDate)!==null&&i!==void 0?i:(f=M.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=E((g=(y=(w=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b:r==null||(C=r.locale)===null||C===void 0||(P=C.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&w!==void 0?w:M.weekStartsOn)!==null&&y!==void 0?y:(D=M.locale)===null||D===void 0||(k=D.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&g!==void 0?g:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var F=x(a);if(!xt(F))throw new RangeError("Invalid time value");var V=Qt(F),oe=zn(F,V),G={firstWeekContainsDate:L,weekStartsOn:W,locale:O,_originalDate:F},ve=S.match(Lo).map(function(j){var U=j[0];if(U==="p"||U==="P"){var ee=Dr[U];return ee(j,O.formatLong)}return j}).join("").match(Ro).map(function(j){if(j==="''")return"'";var U=j[0];if(U==="'")return Uo(j);var ee=Za[U];if(ee)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Jn(j)&&zt(j,n,String(a)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Zn(j)&&zt(j,n,String(a)),ee(oe,j,O.localize,G);if(U.match(Wo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return j}).join("");return ve}function Uo(a){var n=a.match(Ao);return n?n[1].replace(Fo,"'"):a}var Ho=6e4;function kr(a,n){_(2,arguments);var r=E(n);return Yr(a,r*Ho)}var $o=36e5;function Bo(a,n){_(2,arguments);var r=E(n);return Yr(a,r*$o)}function mt(a,n){_(2,arguments);var r=x(a),t=E(n);return isNaN(t)?new Date(NaN):(t&&r.setDate(r.getDate()+t),r)}function Vt(a,n){_(2,arguments);var r=E(n),t=r*7;return mt(a,t)}function De(a,n){_(2,arguments);var r=x(a),t=E(n);if(isNaN(t))return new Date(NaN);if(!t)return r;var e=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+t+1,0);var i=o.getDate();return e>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),e),r)}function ta(a,n){_(2,arguments);var r=E(n),t=r*3;return De(a,t)}function ct(a,n){_(2,arguments);var r=E(n);return De(a,r*12)}function jo(a,n){_(2,arguments);var r=E(n);return mt(a,-r)}function cn(a,n){_(2,arguments);var r=E(n);return Vt(a,-r)}function ut(a,n){_(2,arguments);var r=E(n);return De(a,-r)}function qo(a,n){_(2,arguments);var r=E(n);return ta(a,-r)}function Pt(a,n){_(2,arguments);var r=E(n);return ct(a,-r)}function un(a){_(1,arguments);var n=x(a),r=n.getSeconds();return r}function xe(a){_(1,arguments);var n=x(a),r=n.getMinutes();return r}function Pe(a){_(1,arguments);var n=x(a),r=n.getHours();return r}function Qo(a){_(1,arguments);var n=x(a),r=n.getDay();return r}function ln(a){_(1,arguments);var n=x(a),r=n.getDate();return r}function ra(a,n){var r,t,e,o,i,s,c,u;_(1,arguments);var l=et(),f=E((r=(t=(e=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(i=n.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&e!==void 0?e:l.weekStartsOn)!==null&&t!==void 0?t:(c=l.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=x(a),g=m.getDay(),y=(g<f?7:0)+g-f;return m.setDate(m.getDate()-y),m.setHours(0,0,0,0),m}function Kt(a){return _(1,arguments),ra(a,{weekStartsOn:1})}function zo(a){_(1,arguments);var n=x(a),r=n.getFullYear(),t=new Date(0);t.setFullYear(r+1,0,4),t.setHours(0,0,0,0);var e=Kt(t),o=new Date(0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);var i=Kt(o);return n.getTime()>=e.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Vo(a){_(1,arguments);var n=zo(a),r=new Date(0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);var t=Kt(r);return t}var Ko=6048e5;function Xo(a){_(1,arguments);var n=x(a),r=Kt(n).getTime()-Vo(n).getTime();return Math.round(r/Ko)+1}function se(a){_(1,arguments);var n=x(a),r=n.getMonth();return r}function ot(a){_(1,arguments);var n=x(a),r=Math.floor(n.getMonth()/3)+1;return r}function N(a){return _(1,arguments),x(a).getFullYear()}function _r(a){_(1,arguments);var n=x(a),r=n.getTime();return r}function Go(a,n){_(2,arguments);var r=x(a),t=E(n);return r.setSeconds(t),r}function Ht(a,n){_(2,arguments);var r=x(a),t=E(n);return r.setMinutes(t),r}function $t(a,n){_(2,arguments);var r=x(a),t=E(n);return r.setHours(t),r}function Zo(a){_(1,arguments);var n=x(a),r=n.getFullYear(),t=n.getMonth(),e=new Date(0);return e.setFullYear(r,t+1,0),e.setHours(0,0,0,0),e.getDate()}function ce(a,n){_(2,arguments);var r=x(a),t=E(n),e=r.getFullYear(),o=r.getDate(),i=new Date(0);i.setFullYear(e,t,15),i.setHours(0,0,0,0);var s=Zo(i);return r.setMonth(t,Math.min(o,s)),r}function at(a,n){_(2,arguments);var r=x(a),t=E(n),e=Math.floor(r.getMonth()/3)+1,o=t-e;return ce(r,r.getMonth()+o*3)}function Ie(a,n){_(2,arguments);var r=x(a),t=E(n);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(t),r)}function pn(a){_(1,arguments);var n;if(a&&typeof a.forEach=="function")n=a;else if(h._typeof(a)==="object"&&a!==null)n=Array.prototype.slice.call(a);else return new Date(NaN);var r;return n.forEach(function(t){var e=x(t);(r===void 0||r>e||isNaN(e.getDate()))&&(r=e)}),r||new Date(NaN)}function dn(a){_(1,arguments);var n;if(a&&typeof a.forEach=="function")n=a;else if(h._typeof(a)==="object"&&a!==null)n=Array.prototype.slice.call(a);else return new Date(NaN);var r;return n.forEach(function(t){var e=x(t);(r===void 0||r<e||isNaN(Number(e)))&&(r=e)}),r||new Date(NaN)}function Se(a){_(1,arguments);var n=x(a);return n.setHours(0,0,0,0),n}var Jo=864e5;function Xt(a,n){_(2,arguments);var r=Se(a),t=Se(n),e=r.getTime()-Qt(r),o=t.getTime()-Qt(t);return Math.round((e-o)/Jo)}function Gt(a,n){_(2,arguments);var r=x(a),t=x(n),e=r.getFullYear()-t.getFullYear(),o=r.getMonth()-t.getMonth();return e*12+o}function Zt(a,n){_(2,arguments);var r=x(a),t=x(n);return r.getFullYear()-t.getFullYear()}function na(a){_(1,arguments);var n=x(a);return n.setDate(1),n.setHours(0,0,0,0),n}function Cr(a){_(1,arguments);var n=x(a),r=n.getMonth(),t=r-r%3;return n.setMonth(t,1),n.setHours(0,0,0,0),n}function aa(a){_(1,arguments);var n=x(a),r=new Date(0);return r.setFullYear(n.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Tr(a){_(1,arguments);var n=x(a);return n.setHours(23,59,59,999),n}function ei(a){_(1,arguments);var n=x(a),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function ti(a){_(1,arguments);var n=x(a),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function ri(a,n){_(2,arguments);var r=x(a),t=x(n);return r.getTime()===t.getTime()}function ni(a,n){_(2,arguments);var r=Se(a),t=Se(n);return r.getTime()===t.getTime()}function ai(a,n){_(2,arguments);var r=x(a),t=x(n);return r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()}function oi(a,n){_(2,arguments);var r=x(a),t=x(n);return r.getFullYear()===t.getFullYear()}function ii(a,n){_(2,arguments);var r=Cr(a),t=Cr(n);return r.getTime()===t.getTime()}function $e(a,n){_(2,arguments);var r=x(a),t=x(n);return r.getTime()>t.getTime()}function We(a,n){_(2,arguments);var r=x(a),t=x(n);return r.getTime()<t.getTime()}function St(a,n){_(2,arguments);var r=x(a).getTime(),t=x(n.start).getTime(),e=x(n.end).getTime();if(!(t<=e))throw new RangeError("Invalid interval");return r>=t&&r<=e}function fn(a,n){var r=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!r){if(Array.isArray(a)||(r=h._unsupportedIterableToArray(a))||n){r&&(a=r);var t=0,e=function(){};return{s:e,n:function(){return t>=a.length?{done:!0}:{done:!1,value:a[t++]}},e:function(u){throw u},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,s=!1;return{s:function(){r=r.call(a)},n:function(){var u=r.next();return i=u.done,u},e:function(u){s=!0,o=u},f:function(){try{i||r.return==null||r.return()}finally{if(s)throw o}}}}function si(a,n){if(a==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(a[r]=n[r]);return a}var ci=10,oa=function(){function a(){h._classCallCheck(this,a),h._defineProperty(this,"priority",void 0),h._defineProperty(this,"subPriority",0)}return h._createClass(a,[{key:"validate",value:function(r,t){return!0}}]),a}(),ui=function(a){h._inherits(r,a);var n=h._createSuper(r);function r(t,e,o,i,s){var c;return h._classCallCheck(this,r),c=n.call(this),c.value=t,c.validateValue=e,c.setValue=o,c.priority=i,s&&(c.subPriority=s),c}return h._createClass(r,[{key:"validate",value:function(e,o){return this.validateValue(e,this.value,o)}},{key:"set",value:function(e,o,i){return this.setValue(e,o,this.value,i)}}]),r}(oa),li=function(a){h._inherits(r,a);var n=h._createSuper(r);function r(){var t;h._classCallCheck(this,r);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return t=n.call.apply(n,[this].concat(o)),h._defineProperty(T._assertThisInitialized(t),"priority",ci),h._defineProperty(T._assertThisInitialized(t),"subPriority",-1),t}return h._createClass(r,[{key:"set",value:function(e,o){if(o.timestampIsSet)return e;var i=new Date(0);return i.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),i.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),i}}]),r}(oa),Y=function(){function a(){h._classCallCheck(this,a),h._defineProperty(this,"incompatibleTokens",void 0),h._defineProperty(this,"priority",void 0),h._defineProperty(this,"subPriority",void 0)}return h._createClass(a,[{key:"run",value:function(r,t,e,o){var i=this.parse(r,t,e,o);return i?{setter:new ui(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(r,t,e){return!0}}]),a}(),pi=function(a){h._inherits(r,a);var n=h._createSuper(r);function r(){var t;h._classCallCheck(this,r);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return t=n.call.apply(n,[this].concat(o)),h._defineProperty(T._assertThisInitialized(t),"priority",140),h._defineProperty(T._assertThisInitialized(t),"incompatibleTokens",["R","u","t","T"]),t}return h._createClass(r,[{key:"parse",value:function(e,o,i){switch(o){case"G":case"GG":case"GGG":return i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"});case"GGGGG":return i.era(e,{width:"narrow"});case"GGGG":default:return i.era(e,{width:"wide"})||i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"})}}},{key:"set",value:function(e,o,i){return o.era=i,e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(Y),Lr=6e4,Ar=36e5,di=1e3,Z={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ce={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function J(a,n){return a&&{value:n(a.value),rest:a.rest}}function z(a,n){var r=n.match(a);return r?{value:parseInt(r[0],10),rest:n.slice(r[0].length)}:null}function Te(a,n){var r=n.match(a);if(!r)return null;if(r[0]==="Z")return{value:0,rest:n.slice(1)};var t=r[1]==="+"?1:-1,e=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:t*(e*Ar+o*Lr+i*di),rest:n.slice(r[0].length)}}function ia(a){return z(Z.anyDigitsSigned,a)}function X(a,n){switch(a){case 1:return z(Z.singleDigit,n);case 2:return z(Z.twoDigits,n);case 3:return z(Z.threeDigits,n);case 4:return z(Z.fourDigits,n);default:return z(new RegExp("^\\d{1,"+a+"}"),n)}}function Jt(a,n){switch(a){case 1:return z(Z.singleDigitSigned,n);case 2:return z(Z.twoDigitsSigned,n);case 3:return z(Z.threeDigitsSigned,n);case 4:return z(Z.fourDigitsSigned,n);default:return z(new RegExp("^-?\\d{1,"+a+"}"),n)}}function Fr(a){switch(a){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function sa(a,n){var r=n>0,t=r?n:1-n,e;if(t<=50)e=a||100;else{var o=t+50,i=Math.floor(o/100)*100,s=a>=o%100;e=a+i-(s?100:0)}return r?e:1-e}function ca(a){return a%400===0||a%4===0&&a%100!==0}var fi=function(a){h._inherits(r,a);var n=h._createSuper(r);function r(){var t;h._classCallCheck(this,r);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return t=n.call.apply(n,[this].concat(o)),h._defineProperty(T._assertThisInitialized(t),"priority",130),h._defineProperty(T._assertThisInitialized(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return h._createClass(r,[{key:"parse",value:function(e,o,i){var s=function(u){return{year:u,isTwoDigitYear:o==="yy"}};switch(o){case"y":return J(X(4,e),s);case"yo":return J(i.ordinalNumber(e,{unit:"year"}),s);default:return J(X(o.length,e),s)}}},{key:"validate",value:function(e,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(e,o,i){var s=e.getUTCFullYear();if(i.isTwoDigitYear){var c=sa(i.year,s);return e.setUTCFullYear(c,0,1),e.setUTCHours(0,0,0,0),e}var u=!("era"in o)||o.era===1?i.year:1-i.year;return e.setUTCFullYear(u,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(Y),hi=function(a){h._inherits(r,a);var n=h._createSuper(r);function r(){var t;h._classCallCheck(this,r);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return t=n.call.apply(n,[this].concat(o)),h._defineProperty(T._assertThisInitialized(t),"priority",130),h._defineProperty(T._assertThisInitialized(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return h._createClass(r,[{key:"parse",value:function(e,o,i){var s=function(u){return{year:u,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return J(X(4,e),s);case"Yo":return J(i.ordinalNumber(e,{unit:"year"}),s);default:return J(X(o.length,e),s)}}},{key:"validate",value:function(e,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(e,o,i,s){var c=Rr(e,s);if(i.isTwoDigitYear){var u=sa(i.year,c);return e.setUTCFullYear(u,0,s.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ze(e,s)}var l=!("era"in o)||o.era===1?i.year:1-i.year;return e.setUTCFullYear(l,0,s.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ze(e,s)}}]),r}(Y),mi=function(a){h._inherits(r,a);var n=h._createSuper(r);function r(){var t;h._classCallCheck(this,r);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return t=n.call.apply(n,[this].concat(o)),h._defineProperty(T._assertThisInitialized(t),"priority",130),h._defineProperty(T._assertThisInitialized(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return h._createClass(r,[{key:"parse",value:function(e,o){return Jt(o==="R"?4:o.length,e)}},{key:"set",value:function(e,o,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),st(s)}}]),r}(Y),vi=function(a){h._inherits(r,a);var n=h._createSuper(r);function r(){var t;h._classCallCheck(this,r);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return t=n.call.apply(n,[this].concat(o)),h._defineProperty(T._assertThisInitialized(t),"priority",130),h._defineProperty(T._assertThisInitialized(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return h._createClass(r,[{key:"parse",value:function(e,o){return Jt(o==="u"?4:o.length,e)}},{key:"set",value:function(e,o,i){return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(Y),gi=function(a){h._inherits(r,a);var n=h._createSuper(r);function r(){var t;h._classCallCheck(this,r);for(var e=arguments