{"version":3,"sources":["webpack:///../../../src/components/VTimePicker/SelectingTimes.ts","webpack:///../../../src/components/VTimePicker/VTimePickerTitle.ts","webpack:///../../../src/components/VTimePicker/VTimePickerClock.ts","webpack:///../../../src/components/VTimePicker/VTimePicker.ts","webpack:///./node_modules/vuetify-datetime-picker/src/components/DatetimePicker.vue","webpack:///./node_modules/date-fns/esm/_lib/requiredArgs/index.js","webpack:///./node_modules/date-fns/esm/isDate/index.js","webpack:///./node_modules/date-fns/esm/toDate/index.js","webpack:///./node_modules/date-fns/esm/isValid/index.js","webpack:///./node_modules/date-fns/esm/_lib/toInteger/index.js","webpack:///./node_modules/date-fns/esm/addMilliseconds/index.js","webpack:///./node_modules/date-fns/esm/subMilliseconds/index.js","webpack:///./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js","webpack:///./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js","webpack:///./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js","webpack:///./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js","webpack:///./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js","webpack:///./node_modules/date-fns/esm/_lib/defaultOptions/index.js","webpack:///./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js","webpack:///./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js","webpack:///./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js","webpack:///./node_modules/date-fns/esm/_lib/getUTCWeek/index.js","webpack:///./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","webpack:///./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js","webpack:///./node_modules/date-fns/esm/_lib/format/formatters/index.js","webpack:///./node_modules/date-fns/esm/_lib/format/longFormatters/index.js","webpack:///./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js","webpack:///./node_modules/date-fns/esm/_lib/protectedTokens/index.js","webpack:///./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js","webpack:///./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js","webpack:///./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js","webpack:///./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js","webpack:///./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js","webpack:///./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js","webpack:///./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js","webpack:///./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js","webpack:///./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js","webpack:///./node_modules/date-fns/esm/locale/en-US/index.js","webpack:///./node_modules/date-fns/esm/_lib/defaultLocale/index.js","webpack:///./node_modules/date-fns/esm/format/index.js","webpack:///./node_modules/date-fns/esm/_lib/assign/index.js","webpack:///./node_modules/date-fns/esm/parse/_lib/Setter.js","webpack:///./node_modules/date-fns/esm/parse/_lib/Parser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js","webpack:///./node_modules/date-fns/esm/constants/index.js","webpack:///./node_modules/date-fns/esm/parse/_lib/constants.js","webpack:///./node_modules/date-fns/esm/parse/_lib/utils.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js","webpack:///./node_modules/date-fns/esm/_lib/setUTCWeek/index.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js","webpack:///./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js","webpack:///./node_modules/date-fns/esm/_lib/setUTCDay/index.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js","webpack:///./node_modules/date-fns/esm/_lib/setUTCISODay/index.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/index.js","webpack:///./node_modules/date-fns/esm/parse/index.js","webpack:///node_modules/vuetify-datetime-picker/src/components/DatetimePicker.vue","webpack:///./node_modules/vuetify-datetime-picker/src/components/DatetimePicker.vue?6469","webpack:///./node_modules/vuetify-datetime-picker/src/components/DatetimePicker.vue?0bfb"],"names":["SelectingTimes","mixins","PickerButton","extend","name","props","ampm","Boolean","ampmReadonly","disabled","hour","Number","minute","second","period","type","String","validator","readonly","useSeconds","selecting","methods","genTime","this","displayedHour","pad","displayedMinute","titleContent","genPickerButton","Hour","$createElement","Minute","displayedSecond","push","Second","class","genAmPm","staticClass","$vuetify","lang","t","render","h","children","Colorable","Themeable","allowedValues","Function","double","format","default","val","max","required","min","scrollable","rotate","step","value","data","inputValue","isDragging","valueOnMouseDown","valueOnMouseUp","computed","count","degreesPerUnit","roundCount","degrees","Math","PI","displayedValue","innerRadiusScale","watch","wheel","e","preventDefault","delta","sign","deltaY","isAllowed","update","isInner","handScale","genValues","color","setBackgroundColor","style","getTransform","domProps","innerHTML","genHand","scale","angle","transform","i","x","y","getPosition","left","top","rotateRadians","sin","cos","onMouseDown","onDragMove","onMouseUp","stopPropagation","$emit","$refs","clock","width","getBoundingClientRect","innerWidth","innerClock","clientX","clientY","touches","center","coords","handAngle","round","insideClick","euclidean","checksCount","ceil","angleToValue","setMouseDownValue","p0","p1","dx","dy","sqrt","atan2","abs","themeClasses","on","undefined","mousedown","mouseup","mouseleave","touchstart","touchend","mousemove","touchmove","ref","rangeHours24","createRange","rangeHours12am","rangeHours12pm","map","v","range60","selectingNames","1","2","3","Picker","activePicker","allowedHours","Array","allowedMinutes","allowedSeconds","includes","ampmInTitle","inputHour","inputMinute","inputSecond","lazyInputHour","lazyInputMinute","lazyInputSecond","selectingHour","get","set","selectingMinute","selectingSecond","isAllowedHourCb","cb","minHour","split","maxHour","isAllowedMinuteCb","isHourAllowed","minMinute","maxMinute","minTime","maxTime","time","isAllowedSecondCb","isMinuteAllowed","minSecond","maxSecond","isAmPm","mounted","setInputData","$on","setPeriod","genValue","emitValue","emitPicker","setPicker","picker","newHour","firstAllowed","Date","getHours","getMinutes","getSeconds","trim","toLowerCase","match","convert12to24","parseInt","convert24to12","onInput","onChange","emitChange","allowedFn","range","first","find","length","genClock","VTimePickerClock","dark","light","size","fullWidth","landscape","input","change","genClockAmPm","setTextColor","genPickerBody","key","genPickerTitle","VTimePickerTitle","slot","genPicker","_vm","scopedSlots","display","callback","activeTab","expression","_c","attrs","showTimePicker","model","$$v","timePickerProps","nativeOn","_v","_s","staticRenderFns","requiredArgs","args","TypeError","isDate","arguments","Object","prototype","toString","call","toDate","argument","argStr","getTime","console","warn","Error","stack","NaN","isValid","dirtyDate","date","isNaN","toInteger","dirtyNumber","number","floor","addMilliseconds","dirtyAmount","timestamp","amount","subMilliseconds","MILLISECONDS_IN_DAY","getUTCDayOfYear","setUTCMonth","setUTCHours","startOfYearTimestamp","difference","startOfUTCISOWeek","weekStartsOn","day","getUTCDay","diff","setUTCDate","getUTCDate","getUTCISOWeekYear","year","getUTCFullYear","fourthOfJanuaryOfNextYear","setUTCFullYear","startOfNextYear","fourthOfJanuaryOfThisYear","startOfThisYear","startOfUTCISOWeekYear","fourthOfJanuary","MILLISECONDS_IN_WEEK","getUTCISOWeek","getDefaultOptions","startOfUTCWeek","options","_ref","_ref2","_ref3","_options$weekStartsOn","_options$locale","_options$locale$optio","_defaultOptions$local","_defaultOptions$local2","defaultOptions","locale","RangeError","getUTCWeekYear","_options$firstWeekCon","firstWeekContainsDate","firstWeekOfNextYear","firstWeekOfThisYear","startOfUTCWeekYear","firstWeek","getUTCWeek","addLeadingZeros","targetLength","output","formatters","token","signedYear","M","month","getUTCMonth","d","a","dayPeriodEnumValue","getUTCHours","toUpperCase","H","m","getUTCMinutes","s","getUTCSeconds","S","numberOfDigits","milliseconds","getUTCMilliseconds","fractionalSeconds","pow","dayPeriodEnum","am","pm","midnight","noon","morning","afternoon","evening","night","G","localize","era","ordinalNumber","unit","lightFormatters","Y","signedWeekYear","weekYear","twoDigitYear","R","isoWeekYear","u","Q","quarter","context","q","L","w","week","I","isoWeek","D","dayOfYear","E","dayOfWeek","localDayOfWeek","c","isoDayOfWeek","hours","dayPeriod","b","B","K","k","X","_localize","originalDate","_originalDate","timezoneOffset","getTimezoneOffset","formatTimezoneWithOptionalMinutes","formatTimezone","O","formatTimezoneShort","z","T","offset","dirtyDelimiter","absOffset","minutes","delimiter","dateLongFormatter","pattern","formatLong","timeLongFormatter","dateTimeLongFormatter","dateTimeFormat","matchResult","datePattern","timePattern","dateTime","replace","longFormatters","p","P","getTimezoneOffsetInMilliseconds","utcDate","UTC","getFullYear","getMonth","getDate","getMilliseconds","protectedDayOfYearTokens","protectedWeekYearTokens","isProtectedDayOfYearToken","indexOf","isProtectedWeekYearToken","throwProtectedError","concat","formatDistanceLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","formatDistance","result","tokenValue","addSuffix","comparison","buildFormatLongFn","defaultWidth","formats","dateFormats","full","long","medium","short","timeFormats","dateTimeFormats","formatRelativeLocale","lastWeek","yesterday","today","tomorrow","nextWeek","formatRelative","_date","_baseDate","_options","buildLocalizeFn","dirtyIndex","valuesArray","formattingValues","defaultFormattingWidth","_defaultWidth","_width","values","index","argumentCallback","eraValues","narrow","abbreviated","wide","quarterValues","monthValues","dayValues","dayPeriodValues","formattingDayPeriodValues","rem100","buildMatchFn","string","matchPattern","matchPatterns","defaultMatchWidth","matchedString","parsePatterns","defaultParseWidth","isArray","findIndex","test","findKey","valueCallback","rest","slice","object","predicate","hasOwnProperty","array","buildMatchPatternFn","parseResult","parsePattern","matchOrdinalNumberPattern","parseOrdinalNumberPattern","matchEraPatterns","parseEraPatterns","any","matchQuarterPatterns","parseQuarterPatterns","matchMonthPatterns","parseMonthPatterns","matchDayPatterns","parseDayPatterns","matchDayPeriodPatterns","parseDayPeriodPatterns","code","defaultLocale","formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","dirtyFormatStr","_ref4","_options$locale2","_options$locale2$opti","_ref5","_ref6","_ref7","_options$locale3","_options$locale3$opti","_defaultOptions$local3","_defaultOptions$local4","formatStr","formatterOptions","substring","firstCharacter","longFormatter","join","cleanEscapedString","formatter","useAdditionalWeekYearTokens","useAdditionalDayOfYearTokens","matched","target","property","_defineProperty","obj","defineProperty","enumerable","configurable","writable","TIMEZONE_UNIT_PRIORITY","Setter","_utcDate","ValueSetter","validateValue","setValue","priority","subPriority","super","flags","DateToSystemTimezoneSetter","timestampIsSet","convertedDate","setFullYear","setHours","dateString","parse","setter","validate","_value","millisecondsInMinute","millisecondsInHour","millisecondsInSecond","numericPatterns","hour23h","hour24h","hour11h","hour12h","singleDigit","twoDigits","threeDigits","fourDigits","anyDigitsSigned","singleDigitSigned","twoDigitsSigned","threeDigitsSigned","fourDigitsSigned","timezonePatterns","basicOptionalMinutes","basic","basicOptionalSeconds","extended","extendedOptionalSeconds","mapValue","parseFnResult","mapFn","parseNumericPattern","parseTimezonePattern","seconds","parseAnyDigitsSigned","parseNDigits","n","RegExp","parseNDigitsSigned","dayPeriodEnumToHours","normalizeTwoDigitYear","currentYear","isCommonEra","absCurrentYear","rangeEnd","rangeEndCentury","isPreviousCentury","isLeapYearIndex","isTwoDigitYear","normalizedTwoDigitYear","_flags","firstWeekOfYear","setUTCWeek","dirtyWeek","setUTCISOWeek","dirtyISOWeek","DAYS_IN_MONTH","DAYS_IN_MONTH_LEAP_YEAR","isLeapYear","setUTCDay","dirtyDay","currentDay","remainder","dayIndex","wholeWeekDays","setUTCISODay","isPM","setUTCMinutes","setUTCSeconds","setUTCMilliseconds","parsers","notWhitespaceRegExp","dirtyDateString","dirtyFormatString","dirtyReferenceDate","formatString","subFnOptions","setters","tokens","usedTokens","_loop","_token","parser","incompatibleTokens","incompatibleToken","usedToken","fullToken","run","_ret","uniquePrioritySetters","sort","filter","setterArray","DEFAULT_DATE","DEFAULT_TIME","DEFAULT_DATE_FORMAT","DEFAULT_TIME_FORMAT","DEFAULT_DIALOG_WIDTH","DEFAULT_CLEAR_TEXT","DEFAULT_OK_TEXT","prop","event","datetime","loading","label","dialogWidth","dateFormat","timeFormat","clearText","okText","textFieldProps","datePickerProps","defaultDateTimeFormat","formattedDatetime","selectedDatetime","datetimeString","dateSelected","init","initDateTime","okHandler","clearHandler","resetPicker","component"],"mappings":"oJAAKA,E,iMAAL,SAAKA,GACHA,sBACAA,0BACAA,2BAHF,CAAKA,MAAc,KCYJC,qBACbC,QAEAC,OAAO,CACPC,KAAM,sBAENC,MAAO,CACLC,KAAMC,QACNC,aAAcD,QACdE,SAAUF,QACVG,KAAMC,OACNC,OAAQD,OACRE,OAAQF,OACRG,OAAQ,CACNC,KAAMC,OACNC,UAAWH,GAAqB,OAAXA,GAA8B,OAAXA,GAE1CI,SAAUX,QACVY,WAAYZ,QACZa,UAAWT,QAGbU,QAAS,CACPC,UACE,IAAIZ,EAAOa,KAAKb,KACZa,KAAKjB,OACPI,EAAOA,GAASA,EAAO,GAAK,GAAK,EAAK,IAGxC,MAAMc,EAA6B,MAAbD,KAAKb,KAAe,KAAOa,KAAKjB,KAAOU,OAAON,GAAQe,eAAIf,GAC1EgB,EAAiC,MAAfH,KAAKX,OAAiB,KAAOa,eAAIF,KAAKX,QACxDe,EAAe,CACnBJ,KAAKK,gBAAgB,YAAa5B,EAAe6B,KAAML,EAAeD,KAAKd,UAC3Ec,KAAKO,eAAe,OAAQ,KAC5BP,KAAKK,gBAAgB,YAAa5B,EAAe+B,OAAQL,EAAiBH,KAAKd,WAGjF,GAAIc,KAAKJ,WAAY,CACnB,MAAMa,EAAiC,MAAfT,KAAKV,OAAiB,KAAOY,eAAIF,KAAKV,QAC9Dc,EAAaM,KAAKV,KAAKO,eAAe,OAAQ,MAC9CH,EAAaM,KAAKV,KAAKK,gBAAgB,YAAa5B,EAAekC,OAAQF,EAAiBT,KAAKd,WAEn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IAChBjC,EAAUiC,EAAO,GACjB,GAAO6H,EAAO7H,EAAO,KAErBjC,EAAUiC,EAId,OAAOjC,EAGT,SAAS,GAAmB7M,GAC1B,OAAOA,EAAMnB,MAAM,IAAqB,GAAG2N,QAAQ,GAAmB,KC/bxE,MAAMsQ,GAAe,GACfC,GAAe,WACfC,GAAsB,aACtBC,GAAsB,WACtBC,GAAuB,IACvBC,GAAqB,QACrBC,GAAkB,KAET,QACfrrB,yBACAoP,OACAkc,gBACAC,eAEAtrB,OACAurB,UACA7qB,mBACAmC,cAEAzC,UACAM,cAEA8qB,SACA9qB,cAEA+qB,OACA/qB,YACAmC,YAEA6oB,aACAhrB,YACAmC,YAEA8oB,YACAjrB,YACAmC,YAEA+oB,YACAlrB,YACAmC,iBAEAgpB,WACAnrB,YACAmC,YAEAipB,QACAprB,YACAmC,YAEAkpB,gBACArrB,aAEAsrB,iBACAtrB,aAEA2O,iBACA3O,cAGA4C,OACA,OACAsL,WACAE,YACAgC,QACAxF,UAGAM,UACA,aAEAjI,UACAwW,iBACA,4CAEA8R,wBACA,kBAEAC,oBACA,+EAEAC,mBACA,yBACA,8BAIA,OAHA,uBACAC,UAEA,0CAEA,aAGAC,eACA,mBAGArrB,SACAsrB,OACA,kBACA,OAGA,MACA,8BACAC,iBACA,oEAEAA,kDAGA,mBACA,oBAEAC,YACA,mBACA,2CAEAC,eACA,mBACA,aACA,aACA,0BAEAC,cACA,gBACA,iBACA,mBACA,oCAGAxd,iBACA,mBAGA9K,OACAmnB,oBACA,eCpMsS,M,aCOlSoB,GAAY,gBACd,GACA,EACAld,GACA,EACA,KACA,KACA,MAIa,aAAAkd,G","file":"js/chunk-17fc8d85.6a3e5320.js","sourcesContent":["enum SelectingTimes {\n Hour = 1,\n Minute = 2,\n Second = 3\n}\n\nexport { SelectingTimes }\n","import './VTimePickerTitle.sass'\n\n// Mixins\nimport PickerButton from '../../mixins/picker-button'\n\n// Utils\nimport { pad } from '../VDatePicker/util'\nimport mixins from '../../util/mixins'\n\nimport { SelectingTimes } from './SelectingTimes'\nimport { VNode, PropType } from 'vue'\n\nexport default mixins(\n PickerButton\n/* @vue/component */\n).extend({\n name: 'v-time-picker-title',\n\n props: {\n ampm: Boolean,\n ampmReadonly: Boolean,\n disabled: Boolean,\n hour: Number,\n minute: Number,\n second: Number,\n period: {\n type: String as PropType<'am' | 'pm'>,\n validator: period => period === 'am' || period === 'pm',\n },\n readonly: Boolean,\n useSeconds: Boolean,\n selecting: Number,\n },\n\n methods: {\n genTime () {\n let hour = this.hour\n if (this.ampm) {\n hour = hour ? ((hour - 1) % 12 + 1) : 12\n }\n\n const displayedHour = this.hour == null ? '--' : this.ampm ? String(hour) : pad(hour)\n const displayedMinute = this.minute == null ? '--' : pad(this.minute)\n const titleContent = [\n this.genPickerButton('selecting', SelectingTimes.Hour, displayedHour, this.disabled),\n this.$createElement('span', ':'),\n this.genPickerButton('selecting', SelectingTimes.Minute, displayedMinute, this.disabled),\n ]\n\n if (this.useSeconds) {\n const displayedSecond = this.second == null ? '--' : pad(this.second)\n titleContent.push(this.$createElement('span', ':'))\n titleContent.push(this.genPickerButton('selecting', SelectingTimes.Second, displayedSecond, this.disabled))\n }\n return this.$createElement('div', {\n class: 'v-time-picker-title__time',\n }, titleContent)\n },\n genAmPm () {\n return this.$createElement('div', {\n staticClass: 'v-time-picker-title__ampm',\n class: {\n 'v-time-picker-title__ampm--readonly': this.ampmReadonly,\n },\n }, [\n (!this.ampmReadonly || this.period === 'am') ? this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly) : null,\n (!this.ampmReadonly || this.period === 'pm') ? this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly) : null,\n ])\n },\n },\n\n render (h): VNode {\n const children = [this.genTime()]\n\n this.ampm && children.push(this.genAmPm())\n\n return h('div', {\n staticClass: 'v-time-picker-title',\n }, children)\n },\n})\n","import './VTimePickerClock.sass'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n// Types\nimport mixins, { ExtractVue } from '../../util/mixins'\nimport Vue, { VNode, PropType, VNodeData } from 'vue'\nimport { PropValidator } from 'vue/types/options'\n\ninterface Point {\n x: number\n y: number\n}\n\ninterface options extends Vue {\n $refs: {\n clock: HTMLElement\n innerClock: HTMLElement\n }\n}\n\nexport default mixins\n/* eslint-enable indent */\n>(\n Colorable,\n Themeable\n/* @vue/component */\n).extend({\n name: 'v-time-picker-clock',\n\n props: {\n allowedValues: Function as PropType<(value: number) => boolean>,\n ampm: Boolean,\n disabled: Boolean,\n double: Boolean,\n format: {\n type: Function,\n default: (val: string | number) => val,\n } as PropValidator<(val: string | number) => string | number>,\n max: {\n type: Number,\n required: true,\n },\n min: {\n type: Number,\n required: true,\n },\n scrollable: Boolean,\n readonly: Boolean,\n rotate: {\n type: Number,\n default: 0,\n },\n step: {\n type: Number,\n default: 1,\n },\n value: Number,\n },\n\n data () {\n return {\n inputValue: this.value,\n isDragging: false,\n valueOnMouseDown: null as number | null,\n valueOnMouseUp: null as number | null,\n }\n },\n\n computed: {\n count (): number {\n return this.max - this.min + 1\n },\n degreesPerUnit (): number {\n return 360 / this.roundCount\n },\n degrees (): number {\n return this.degreesPerUnit * Math.PI / 180\n },\n displayedValue (): number {\n return this.value == null ? this.min : this.value\n },\n innerRadiusScale (): number {\n return 0.62\n },\n roundCount (): number {\n return this.double ? (this.count / 2) : this.count\n },\n },\n\n watch: {\n value (value) {\n this.inputValue = value\n },\n },\n\n methods: {\n wheel (e: WheelEvent) {\n e.preventDefault()\n\n const delta = Math.sign(-e.deltaY || 1)\n let value = this.displayedValue\n do {\n value = value + delta\n value = (value - this.min + this.count) % this.count + this.min\n } while (!this.isAllowed(value) && value !== this.displayedValue)\n\n if (value !== this.displayedValue) {\n this.update(value)\n }\n },\n isInner (value: number) {\n return this.double && (value - this.min >= this.roundCount)\n },\n handScale (value: number) {\n return this.isInner(value) ? this.innerRadiusScale : 1\n },\n isAllowed (value: number) {\n return !this.allowedValues || this.allowedValues(value)\n },\n genValues () {\n const children: VNode[] = []\n\n for (let value = this.min; value <= this.max; value = value + this.step) {\n const color = value === this.value && (this.color || 'accent')\n children.push(this.$createElement('span', this.setBackgroundColor(color, {\n staticClass: 'v-time-picker-clock__item',\n class: {\n 'v-time-picker-clock__item--active': value === this.displayedValue,\n 'v-time-picker-clock__item--disabled': this.disabled || !this.isAllowed(value),\n },\n style: this.getTransform(value),\n domProps: { innerHTML: `${this.format(value)}` },\n })))\n }\n\n return children\n },\n genHand () {\n const scale = `scaleY(${this.handScale(this.displayedValue)})`\n const angle = this.rotate + this.degreesPerUnit * (this.displayedValue - this.min)\n const color = (this.value != null) && (this.color || 'accent')\n return this.$createElement('div', this.setBackgroundColor(color, {\n staticClass: 'v-time-picker-clock__hand',\n class: {\n 'v-time-picker-clock__hand--inner': this.isInner(this.value),\n },\n style: {\n transform: `rotate(${angle}deg) ${scale}`,\n },\n }))\n },\n getTransform (i: number) {\n const { x, y } = this.getPosition(i)\n return {\n left: `${50 + x * 50}%`,\n top: `${50 + y * 50}%`,\n }\n },\n getPosition (value: number) {\n const rotateRadians = this.rotate * Math.PI / 180\n return {\n x: Math.sin((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),\n y: -Math.cos((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),\n }\n },\n onMouseDown (e: MouseEvent | TouchEvent) {\n e.preventDefault()\n\n this.valueOnMouseDown = null\n this.valueOnMouseUp = null\n this.isDragging = true\n this.onDragMove(e)\n },\n onMouseUp (e: MouseEvent | TouchEvent) {\n e.stopPropagation()\n\n this.isDragging = false\n if (this.valueOnMouseUp !== null && this.isAllowed(this.valueOnMouseUp)) {\n this.$emit('change', this.valueOnMouseUp)\n }\n },\n onDragMove (e: MouseEvent | TouchEvent) {\n e.preventDefault()\n if ((!this.isDragging && e.type !== 'click') || !this.$refs.clock) return\n\n const { width, top, left } = this.$refs.clock.getBoundingClientRect()\n const { width: innerWidth } = this.$refs.innerClock.getBoundingClientRect()\n const { clientX, clientY } = 'touches' in e ? e.touches[0] : e\n const center = { x: width / 2, y: -width / 2 }\n const coords = { x: clientX - left, y: top - clientY }\n const handAngle = Math.round(this.angle(center, coords) - this.rotate + 360) % 360\n const insideClick = this.double && this.euclidean(center, coords) < (innerWidth + innerWidth * this.innerRadiusScale) / 4\n const checksCount = Math.ceil(15 / this.degreesPerUnit)\n let value\n\n for (let i = 0; i < checksCount; i++) {\n value = this.angleToValue(handAngle + i * this.degreesPerUnit, insideClick)\n if (this.isAllowed(value)) return this.setMouseDownValue(value)\n\n value = this.angleToValue(handAngle - i * this.degreesPerUnit, insideClick)\n if (this.isAllowed(value)) return this.setMouseDownValue(value)\n }\n },\n angleToValue (angle: number, insideClick: boolean): number {\n const value = (\n Math.round(angle / this.degreesPerUnit) +\n (insideClick ? this.roundCount : 0)\n ) % this.count + this.min\n\n // Necessary to fix edge case when selecting left part of the value(s) at 12 o'clock\n if (angle < (360 - this.degreesPerUnit / 2)) return value\n\n return insideClick ? this.max - this.roundCount + 1 : this.min\n },\n setMouseDownValue (value: number) {\n if (this.valueOnMouseDown === null) {\n this.valueOnMouseDown = value\n }\n\n this.valueOnMouseUp = value\n this.update(value)\n },\n update (value: number) {\n if (this.inputValue !== value) {\n this.inputValue = value\n this.$emit('input', value)\n }\n },\n euclidean (p0: Point, p1: Point) {\n const dx = p1.x - p0.x\n const dy = p1.y - p0.y\n\n return Math.sqrt(dx * dx + dy * dy)\n },\n angle (center: Point, p1: Point) {\n const value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x)\n return Math.abs(value * 180 / Math.PI)\n },\n },\n\n render (h): VNode {\n const data: VNodeData = {\n staticClass: 'v-time-picker-clock',\n class: {\n 'v-time-picker-clock--indeterminate': this.value == null,\n ...this.themeClasses,\n },\n on: (this.readonly || this.disabled) ? undefined : {\n mousedown: this.onMouseDown,\n mouseup: this.onMouseUp,\n mouseleave: (e: MouseEvent) => (this.isDragging && this.onMouseUp(e)),\n touchstart: this.onMouseDown,\n touchend: this.onMouseUp,\n mousemove: this.onDragMove,\n touchmove: this.onDragMove,\n },\n ref: 'clock',\n }\n\n if (this.scrollable && data.on) {\n data.on.wheel = this.wheel\n }\n\n return h('div', data, [\n h('div', {\n staticClass: 'v-time-picker-clock__inner',\n ref: 'innerClock',\n }, [\n this.genHand(),\n this.genValues(),\n ]),\n ])\n },\n})\n","// Components\nimport VTimePickerTitle from './VTimePickerTitle'\nimport VTimePickerClock from './VTimePickerClock'\n\n// Mixins\nimport Picker from '../../mixins/picker'\nimport PickerButton from '../../mixins/picker-button'\n\n// Utils\nimport { createRange } from '../../util/helpers'\nimport pad from '../VDatePicker/util/pad'\nimport mixins from '../../util/mixins'\n\n// Types\nimport { VNode, PropType } from 'vue'\nimport { SelectingTimes } from './SelectingTimes'\n\nconst rangeHours24 = createRange(24)\nconst rangeHours12am = createRange(12)\nconst rangeHours12pm = rangeHours12am.map(v => v + 12)\nconst range60 = createRange(60)\nconst selectingNames = { 1: 'hour', 2: 'minute', 3: 'second' }\nexport { SelectingTimes }\n\ntype Period = 'am' | 'pm'\ntype AllowFunction = (val: number) => boolean\ntype ActivePicker = 'HOUR' | 'MINUTE' | 'SECOND'\n\nexport default mixins(\n Picker,\n PickerButton\n/* @vue/component */\n).extend({\n name: 'v-time-picker',\n\n props: {\n activePicker: String as PropType,\n allowedHours: [Function, Array] as PropType,\n allowedMinutes: [Function, Array] as PropType,\n allowedSeconds: [Function, Array] as PropType,\n disabled: Boolean,\n format: {\n type: String as PropType<'ampm' | '24hr'>,\n default: 'ampm',\n validator (val: any) {\n return ['ampm', '24hr'].includes(val)\n },\n },\n min: String,\n max: String,\n readonly: Boolean,\n scrollable: Boolean,\n useSeconds: Boolean,\n value: null as any as PropType,\n ampmInTitle: Boolean,\n },\n\n data () {\n return {\n inputHour: null as number | null,\n inputMinute: null as number | null,\n inputSecond: null as number | null,\n lazyInputHour: null as number | null,\n lazyInputMinute: null as number | null,\n lazyInputSecond: null as number | null,\n period: 'am' as Period,\n selecting: SelectingTimes.Hour,\n }\n },\n\n computed: {\n selectingHour: {\n get (): boolean {\n return this.selecting === SelectingTimes.Hour\n },\n set (v: boolean) {\n this.selecting = SelectingTimes.Hour\n },\n },\n selectingMinute: {\n get (): boolean {\n return this.selecting === SelectingTimes.Minute\n },\n set (v: boolean) {\n this.selecting = SelectingTimes.Minute\n },\n },\n selectingSecond: {\n get (): boolean {\n return this.selecting === SelectingTimes.Second\n },\n set (v: boolean) {\n this.selecting = SelectingTimes.Second\n },\n },\n isAllowedHourCb (): AllowFunction {\n let cb: AllowFunction\n\n if (this.allowedHours instanceof Array) {\n cb = (val: number) => (this.allowedHours as number[]).includes(val)\n } else {\n cb = this.allowedHours\n }\n\n if (!this.min && !this.max) return cb\n\n const minHour = this.min ? Number(this.min.split(':')[0]) : 0\n const maxHour = this.max ? Number(this.max.split(':')[0]) : 23\n\n return (val: number) => {\n return val >= minHour * 1 &&\n val <= maxHour * 1 &&\n (!cb || cb(val))\n }\n },\n isAllowedMinuteCb (): AllowFunction {\n let cb: AllowFunction\n\n const isHourAllowed = !this.isAllowedHourCb || this.inputHour === null || this.isAllowedHourCb(this.inputHour)\n if (this.allowedMinutes instanceof Array) {\n cb = (val: number) => (this.allowedMinutes as number[]).includes(val)\n } else {\n cb = this.allowedMinutes\n }\n\n if (!this.min && !this.max) {\n return isHourAllowed ? cb : () => false\n }\n\n const [minHour, minMinute] = this.min ? this.min.split(':').map(Number) : [0, 0]\n const [maxHour, maxMinute] = this.max ? this.max.split(':').map(Number) : [23, 59]\n const minTime = minHour * 60 + minMinute * 1\n const maxTime = maxHour * 60 + maxMinute * 1\n\n return (val: number) => {\n const time = 60 * this.inputHour! + val\n return time >= minTime &&\n time <= maxTime &&\n isHourAllowed &&\n (!cb || cb(val))\n }\n },\n isAllowedSecondCb (): AllowFunction {\n let cb: AllowFunction\n\n const isHourAllowed = !this.isAllowedHourCb || this.inputHour === null || this.isAllowedHourCb(this.inputHour)\n const isMinuteAllowed = isHourAllowed &&\n (!this.isAllowedMinuteCb ||\n this.inputMinute === null ||\n this.isAllowedMinuteCb(this.inputMinute)\n )\n\n if (this.allowedSeconds instanceof Array) {\n cb = (val: number) => (this.allowedSeconds as number[]).includes(val)\n } else {\n cb = this.allowedSeconds\n }\n\n if (!this.min && !this.max) {\n return isMinuteAllowed ? cb : () => false\n }\n\n const [minHour, minMinute, minSecond] = this.min ? this.min.split(':').map(Number) : [0, 0, 0]\n const [maxHour, maxMinute, maxSecond] = this.max ? this.max.split(':').map(Number) : [23, 59, 59]\n const minTime = minHour * 3600 + minMinute * 60 + (minSecond || 0) * 1\n const maxTime = maxHour * 3600 + maxMinute * 60 + (maxSecond || 0) * 1\n\n return (val: number) => {\n const time = 3600 * this.inputHour! + 60 * this.inputMinute! + val\n return time >= minTime &&\n time <= maxTime &&\n isMinuteAllowed &&\n (!cb || cb(val))\n }\n },\n isAmPm (): boolean {\n return this.format === 'ampm'\n },\n },\n\n watch: {\n activePicker: 'setPicker',\n selecting: 'emitPicker',\n value: 'setInputData',\n },\n\n mounted () {\n this.setInputData(this.value)\n this.$on('update:period', this.setPeriod)\n },\n\n methods: {\n genValue () {\n if (this.inputHour != null && this.inputMinute != null && (!this.useSeconds || this.inputSecond != null)) {\n return `${pad(this.inputHour)}:${pad(this.inputMinute)}` + (this.useSeconds ? `:${pad(this.inputSecond!)}` : '')\n }\n\n return null\n },\n emitValue () {\n const value = this.genValue()\n if (value !== null) this.$emit('input', value)\n },\n emitPicker (value: SelectingTimes) {\n let activePicker = 'HOUR'\n if (value === SelectingTimes.Minute) {\n activePicker = 'MINUTE'\n } else if (value === SelectingTimes.Second) {\n activePicker = 'SECOND'\n }\n this.$emit('update:active-picker', activePicker)\n },\n setPicker (picker: ActivePicker) {\n if (picker === 'HOUR') this.selecting = SelectingTimes.Hour\n else if (picker === 'MINUTE') this.selecting = SelectingTimes.Minute\n else if (picker === 'SECOND' && this.useSeconds) this.selecting = SelectingTimes.Second\n },\n setPeriod (period: Period) {\n this.period = period\n if (this.inputHour != null) {\n const newHour = this.inputHour! + (period === 'am' ? -12 : 12)\n this.inputHour = this.firstAllowed('hour', newHour)\n this.emitValue()\n }\n },\n setInputData (value: string | null | Date) {\n if (value == null || value === '') {\n this.inputHour = null\n this.inputMinute = null\n this.inputSecond = null\n } else if (value instanceof Date) {\n this.inputHour = value.getHours()\n this.inputMinute = value.getMinutes()\n this.inputSecond = value.getSeconds()\n } else {\n const [, hour, minute, , second, period] = value.trim().toLowerCase().match(/^(\\d+):(\\d+)(:(\\d+))?([ap]m)?$/) || new Array(6)\n\n this.inputHour = period ? this.convert12to24(parseInt(hour, 10), period as Period) : parseInt(hour, 10)\n this.inputMinute = parseInt(minute, 10)\n this.inputSecond = parseInt(second || 0, 10)\n }\n\n this.period = (this.inputHour == null || this.inputHour < 12) ? 'am' : 'pm'\n },\n convert24to12 (hour: number) {\n return hour ? ((hour - 1) % 12 + 1) : 12\n },\n convert12to24 (hour: number, period: Period) {\n return hour % 12 + (period === 'pm' ? 12 : 0)\n },\n onInput (value: number) {\n if (this.selecting === SelectingTimes.Hour) {\n this.inputHour = this.isAmPm ? this.convert12to24(value, this.period) : value\n } else if (this.selecting === SelectingTimes.Minute) {\n this.inputMinute = value\n } else {\n this.inputSecond = value\n }\n this.emitValue()\n },\n onChange (value: number) {\n this.$emit(`click:${selectingNames[this.selecting]}`, value)\n\n const emitChange = this.selecting === (this.useSeconds ? SelectingTimes.Second : SelectingTimes.Minute)\n\n if (this.selecting === SelectingTimes.Hour) {\n this.selecting = SelectingTimes.Minute\n } else if (this.useSeconds && this.selecting === SelectingTimes.Minute) {\n this.selecting = SelectingTimes.Second\n }\n\n if (this.inputHour === this.lazyInputHour &&\n this.inputMinute === this.lazyInputMinute &&\n (!this.useSeconds || this.inputSecond === this.lazyInputSecond)\n ) return\n\n const time = this.genValue()\n if (time === null) return\n\n this.lazyInputHour = this.inputHour\n this.lazyInputMinute = this.inputMinute\n this.useSeconds && (this.lazyInputSecond = this.inputSecond)\n\n emitChange && this.$emit('change', time)\n },\n firstAllowed (type: 'hour' | 'minute' | 'second', value: number) {\n const allowedFn = type === 'hour' ? this.isAllowedHourCb : (type === 'minute' ? this.isAllowedMinuteCb : this.isAllowedSecondCb)\n if (!allowedFn) return value\n\n // TODO: clean up\n const range = type === 'minute'\n ? range60\n : (type === 'second'\n ? range60\n : (this.isAmPm\n ? (value < 12\n ? rangeHours12am\n : rangeHours12pm)\n : rangeHours24))\n const first = range.find(v => allowedFn((v + value) % range.length + range[0]))\n return ((first || 0) + value) % range.length + range[0]\n },\n genClock () {\n return this.$createElement(VTimePickerClock, {\n props: {\n allowedValues:\n this.selecting === SelectingTimes.Hour\n ? this.isAllowedHourCb\n : (this.selecting === SelectingTimes.Minute\n ? this.isAllowedMinuteCb\n : this.isAllowedSecondCb),\n color: this.color,\n dark: this.dark,\n disabled: this.disabled,\n double: this.selecting === SelectingTimes.Hour && !this.isAmPm,\n format: this.selecting === SelectingTimes.Hour\n ? (this.isAmPm ? this.convert24to12 : (val: number) => val)\n : (val: number) => pad(val, 2),\n light: this.light,\n max: this.selecting === SelectingTimes.Hour ? (this.isAmPm && this.period === 'am' ? 11 : 23) : 59,\n min: this.selecting === SelectingTimes.Hour && this.isAmPm && this.period === 'pm' ? 12 : 0,\n readonly: this.readonly,\n scrollable: this.scrollable,\n size: Number(this.width) - ((!this.fullWidth && this.landscape) ? 80 : 20),\n step: this.selecting === SelectingTimes.Hour ? 1 : 5,\n value: this.selecting === SelectingTimes.Hour\n ? this.inputHour\n : (this.selecting === SelectingTimes.Minute\n ? this.inputMinute\n : this.inputSecond),\n },\n on: {\n input: this.onInput,\n change: this.onChange,\n },\n ref: 'clock',\n })\n },\n genClockAmPm () {\n return this.$createElement('div', this.setTextColor(this.color || 'primary', {\n staticClass: 'v-time-picker-clock__ampm',\n }), [\n this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly),\n this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly),\n ])\n },\n genPickerBody () {\n return this.$createElement('div', {\n staticClass: 'v-time-picker-clock__container',\n key: this.selecting,\n }, [\n !this.ampmInTitle && this.isAmPm && this.genClockAmPm(),\n this.genClock(),\n ])\n },\n genPickerTitle () {\n return this.$createElement(VTimePickerTitle, {\n props: {\n ampm: this.isAmPm,\n ampmReadonly: this.isAmPm && !this.ampmInTitle,\n disabled: this.disabled,\n hour: this.inputHour,\n minute: this.inputMinute,\n second: this.inputSecond,\n period: this.period,\n readonly: this.readonly,\n useSeconds: this.useSeconds,\n selecting: this.selecting,\n },\n on: {\n 'update:selecting': (value: 1 | 2 | 3) => (this.selecting = value),\n 'update:period': (period: string) => this.$emit('update:period', period),\n },\n ref: 'title',\n slot: 'title',\n })\n },\n },\n\n render (): VNode {\n return this.genPicker('v-picker--time')\n },\n})\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":_vm.dialogWidth},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on }){return [_c('v-text-field',_vm._g(_vm._b({attrs:{\"disabled\":_vm.disabled,\"loading\":_vm.loading,\"label\":_vm.label,\"value\":_vm.formattedDatetime,\"readonly\":\"\"},scopedSlots:_vm._u([{key:\"progress\",fn:function(){return [_vm._t(\"progress\",function(){return [_c('v-progress-linear',{attrs:{\"color\":\"primary\",\"indeterminate\":\"\",\"absolute\":\"\",\"height\":\"2\"}})]})]},proxy:true}],null,true)},'v-text-field',_vm.textFieldProps,false),on))]}}]),model:{value:(_vm.display),callback:function ($$v) {_vm.display=$$v},expression:\"display\"}},[_c('v-card',[_c('v-card-text',{staticClass:\"px-0 py-0\"},[_c('v-tabs',{attrs:{\"fixed-tabs\":\"\"},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('v-tab',{key:\"calendar\"},[_vm._t(\"dateIcon\",function(){return [_c('v-icon',[_vm._v(\"event\")])]})],2),_c('v-tab',{key:\"timer\",attrs:{\"disabled\":_vm.dateSelected}},[_vm._t(\"timeIcon\",function(){return [_c('v-icon',[_vm._v(\"access_time\")])]})],2),_c('v-tab-item',{key:\"calendar\"},[_c('v-date-picker',_vm._b({attrs:{\"full-width\":\"\"},on:{\"input\":_vm.showTimePicker},model:{value:(_vm.date),callback:function ($$v) {_vm.date=$$v},expression:\"date\"}},'v-date-picker',_vm.datePickerProps,false))],1),_c('v-tab-item',{key:\"timer\"},[_c('v-time-picker',_vm._b({ref:\"timer\",staticClass:\"v-time-picker-custom\",attrs:{\"full-width\":\"\"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:\"time\"}},'v-time-picker',_vm.timePickerProps,false))],1)],1)],1),_c('v-card-actions',[_c('v-spacer'),_vm._t(\"actions\",function(){return [_c('v-btn',{attrs:{\"color\":\"grey lighten-1\",\"text\":\"\"},nativeOn:{\"click\":function($event){return _vm.clearHandler.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.clearText))]),_c('v-btn',{attrs:{\"color\":\"green darken-1\",\"text\":\"\"},on:{\"click\":_vm.okHandler}},[_vm._v(_vm._s(_vm.okText))])]},{\"parent\":this})],2)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function requiredArgs(required, args) {\r\n if (args.length < required) {\r\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\r\n }\r\n}","import requiredArgs from \"../_lib/requiredArgs/index.js\";\r\n/**\r\n * @name isDate\r\n * @category Common Helpers\r\n * @summary Is the given value a date?\r\n *\r\n * @description\r\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\r\n *\r\n * @param {*} value - the value to check\r\n * @returns {boolean} true if the given value is a date\r\n * @throws {TypeError} 1 arguments required\r\n *\r\n * @example\r\n * // For a valid date:\r\n * const result = isDate(new Date())\r\n * //=> true\r\n *\r\n * @example\r\n * // For an invalid date:\r\n * const result = isDate(new Date(NaN))\r\n * //=> true\r\n *\r\n * @example\r\n * // For some value:\r\n * const result = isDate('2014-02-31')\r\n * //=> false\r\n *\r\n * @example\r\n * // For an object:\r\n * const result = isDate({})\r\n * //=> false\r\n */\r\n\r\nexport default function isDate(value) {\r\n requiredArgs(1, arguments);\r\n return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';\r\n}","import requiredArgs from \"../_lib/requiredArgs/index.js\";\r\n/**\r\n * @name toDate\r\n * @category Common Helpers\r\n * @summary Convert the given argument to an instance of Date.\r\n *\r\n * @description\r\n * Convert the given argument to an instance of Date.\r\n *\r\n * If the argument is an instance of Date, the function returns its clone.\r\n *\r\n * If the argument is a number, it is treated as a timestamp.\r\n *\r\n * If the argument is none of the above, the function returns Invalid Date.\r\n *\r\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\r\n *\r\n * @param {Date|Number} argument - the value to convert\r\n * @returns {Date} the parsed date in the local time zone\r\n * @throws {TypeError} 1 argument required\r\n *\r\n * @example\r\n * // Clone the date:\r\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\r\n * //=> Tue Feb 11 2014 11:30:30\r\n *\r\n * @example\r\n * // Convert the timestamp to date:\r\n * const result = toDate(1392098430000)\r\n * //=> Tue Feb 11 2014 11:30:30\r\n */\r\n\r\nexport default function toDate(argument) {\r\n requiredArgs(1, arguments);\r\n var argStr = Object.prototype.toString.call(argument); // Clone the date\r\n\r\n if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {\r\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\r\n return new Date(argument.getTime());\r\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\r\n return new Date(argument);\r\n } else {\r\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\r\n // eslint-disable-next-line no-console\r\n 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\"); // eslint-disable-next-line no-console\r\n\r\n console.warn(new Error().stack);\r\n }\r\n\r\n return new Date(NaN);\r\n }\r\n}","import isDate from \"../isDate/index.js\";\r\nimport toDate from \"../toDate/index.js\";\r\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\r\n/**\r\n * @name isValid\r\n * @category Common Helpers\r\n * @summary Is the given date valid?\r\n *\r\n * @description\r\n * Returns false if argument is Invalid Date and true otherwise.\r\n * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\r\n * Invalid Date is a Date, whose time value is NaN.\r\n *\r\n * Time value of Date: http://es5.github.io/#x15.9.1.1\r\n *\r\n * @param {*} date - the date to check\r\n * @returns {Boolean} the date is valid\r\n * @throws {TypeError} 1 argument required\r\n *\r\n * @example\r\n * // For the valid date:\r\n * const result = isValid(new Date(2014, 1, 31))\r\n * //=> true\r\n *\r\n * @example\r\n * // For the value, convertable into a date:\r\n * const result = isValid(1393804800000)\r\n * //=> true\r\n *\r\n * @example\r\n * // For the invalid date:\r\n * const result = isValid(new Date(''))\r\n * //=> false\r\n */\r\n\r\nexport default function isValid(dirtyDate) {\r\n requiredArgs(1, arguments);\r\n\r\n if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {\r\n return false;\r\n }\r\n\r\n var date = toDate(dirtyDate);\r\n return !isNaN(Number(date));\r\n}","export default function toInteger(dirtyNumber) {\r\n if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {\r\n return NaN;\r\n }\r\n\r\n var number = Number(dirtyNumber);\r\n\r\n if (isNaN(number)) {\r\n return number;\r\n }\r\n\r\n return number < 0 ? Math.ceil(number) : Math.floor(number);\r\n}","import toInteger from \"../_lib/toInteger/index.js\";\r\nimport toDate from \"../toDate/index.js\";\r\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\r\n/**\r\n * @name addMilliseconds\r\n * @category Millisecond Helpers\r\n * @summary Add the specified number of milliseconds to the given date.\r\n *\r\n * @description\r\n * Add the specified number of milliseconds to the given date.\r\n *\r\n * @param {Date|Number} date - the date to be changed\r\n * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\r\n * @returns {Date} the new date with the milliseconds added\r\n * @throws {TypeError} 2 arguments required\r\n *\r\n * @example\r\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\r\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\r\n * //=> Thu Jul 10 2014 12:45:30.750\r\n */\r\n\r\nexport default function addMilliseconds(dirtyDate, dirtyAmount) {\r\n requiredArgs(2, arguments);\r\n var timestamp = toDate(dirtyDate).getTime();\r\n var amount = toInteger(dirtyAmount);\r\n return new Date(timestamp + amount);\r\n}","import addMilliseconds from \"../addMilliseconds/index.js\";\r\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\r\nimport toInteger from \"../_lib/toInteger/index.js\";\r\n/**\r\n * @name subMilliseconds\r\n * @category Millisecond Helpers\r\n * @summary Subtract the specified number of milliseconds from the given date.\r\n *\r\n * @description\r\n * Subtract the specified number of milliseconds from the given date.\r\n *\r\n * @param {Date|Number} date - the date to be changed\r\n * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\r\n * @returns {Date} the new date with the milliseconds subtracted\r\n * @throws {TypeError} 2 arguments required\r\n *\r\n * @example\r\n * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:\r\n * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\r\n * //=> Thu Jul 10 2014 12:45:29.250\r\n */\r\n\r\nexport default function subMilliseconds(dirtyDate, dirtyAmount) {\r\n requiredArgs(2, arguments);\r\n var amount = toInteger(dirtyAmount);\r\n return addMilliseconds(dirtyDate, -amount);\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nvar MILLISECONDS_IN_DAY = 86400000;\r\nexport default function getUTCDayOfYear(dirtyDate) {\r\n requiredArgs(1, arguments);\r\n var date = toDate(dirtyDate);\r\n var timestamp = date.getTime();\r\n date.setUTCMonth(0, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n var startOfYearTimestamp = date.getTime();\r\n var difference = timestamp - startOfYearTimestamp;\r\n return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nexport default function startOfUTCISOWeek(dirtyDate) {\r\n requiredArgs(1, arguments);\r\n var weekStartsOn = 1;\r\n var date = toDate(dirtyDate);\r\n var day = date.getUTCDay();\r\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\r\n date.setUTCDate(date.getUTCDate() - diff);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\r\nexport default function getUTCISOWeekYear(dirtyDate) {\r\n requiredArgs(1, arguments);\r\n var date = toDate(dirtyDate);\r\n var year = date.getUTCFullYear();\r\n var fourthOfJanuaryOfNextYear = new Date(0);\r\n fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);\r\n fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);\r\n var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);\r\n var fourthOfJanuaryOfThisYear = new Date(0);\r\n fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);\r\n fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);\r\n var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);\r\n\r\n if (date.getTime() >= startOfNextYear.getTime()) {\r\n return year + 1;\r\n } else if (date.getTime() >= startOfThisYear.getTime()) {\r\n return year;\r\n } else {\r\n return year - 1;\r\n }\r\n}","import getUTCISOWeekYear from \"../getUTCISOWeekYear/index.js\";\r\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nexport default function startOfUTCISOWeekYear(dirtyDate) {\r\n requiredArgs(1, arguments);\r\n var year = getUTCISOWeekYear(dirtyDate);\r\n var fourthOfJanuary = new Date(0);\r\n fourthOfJanuary.setUTCFullYear(year, 0, 4);\r\n fourthOfJanuary.setUTCHours(0, 0, 0, 0);\r\n var date = startOfUTCISOWeek(fourthOfJanuary);\r\n return date;\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\r\nimport startOfUTCISOWeekYear from \"../startOfUTCISOWeekYear/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nvar MILLISECONDS_IN_WEEK = 604800000;\r\nexport default function getUTCISOWeek(dirtyDate) {\r\n requiredArgs(1, arguments);\r\n var date = toDate(dirtyDate);\r\n var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer\r\n // because the number of milliseconds in a week is not constant\r\n // (e.g. it's different in the week of the daylight saving time clock shift)\r\n\r\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\r\n}","var defaultOptions = {};\r\nexport function getDefaultOptions() {\r\n return defaultOptions;\r\n}\r\nexport function setDefaultOptions(newOptions) {\r\n defaultOptions = newOptions;\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nimport toInteger from \"../toInteger/index.js\";\r\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\r\nexport default function startOfUTCWeek(dirtyDate, options) {\r\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\r\n\r\n requiredArgs(1, arguments);\r\n var defaultOptions = getDefaultOptions();\r\n var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\r\n\r\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\r\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\r\n }\r\n\r\n var date = toDate(dirtyDate);\r\n var day = date.getUTCDay();\r\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\r\n date.setUTCDate(date.getUTCDate() - diff);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\r\nimport toInteger from \"../toInteger/index.js\";\r\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\r\nexport default function getUTCWeekYear(dirtyDate, options) {\r\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\r\n\r\n requiredArgs(1, arguments);\r\n var date = toDate(dirtyDate);\r\n var year = date.getUTCFullYear();\r\n var defaultOptions = getDefaultOptions();\r\n var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\r\n\r\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\r\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\r\n }\r\n\r\n var firstWeekOfNextYear = new Date(0);\r\n firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);\r\n firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);\r\n var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);\r\n var firstWeekOfThisYear = new Date(0);\r\n firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);\r\n firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);\r\n var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);\r\n\r\n if (date.getTime() >= startOfNextYear.getTime()) {\r\n return year + 1;\r\n } else if (date.getTime() >= startOfThisYear.getTime()) {\r\n return year;\r\n } else {\r\n return year - 1;\r\n }\r\n}","import getUTCWeekYear from \"../getUTCWeekYear/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\r\nimport toInteger from \"../toInteger/index.js\";\r\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\r\nexport default function startOfUTCWeekYear(dirtyDate, options) {\r\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\r\n\r\n requiredArgs(1, arguments);\r\n var defaultOptions = getDefaultOptions();\r\n var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\r\n var year = getUTCWeekYear(dirtyDate, options);\r\n var firstWeek = new Date(0);\r\n firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);\r\n firstWeek.setUTCHours(0, 0, 0, 0);\r\n var date = startOfUTCWeek(firstWeek, options);\r\n return date;\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\r\nimport startOfUTCWeekYear from \"../startOfUTCWeekYear/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nvar MILLISECONDS_IN_WEEK = 604800000;\r\nexport default function getUTCWeek(dirtyDate, options) {\r\n requiredArgs(1, arguments);\r\n var date = toDate(dirtyDate);\r\n var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer\r\n // because the number of milliseconds in a week is not constant\r\n // (e.g. it's different in the week of the daylight saving time clock shift)\r\n\r\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\r\n}","export default function addLeadingZeros(number, targetLength) {\r\n var sign = number < 0 ? '-' : '';\r\n var output = Math.abs(number).toString();\r\n\r\n while (output.length < targetLength) {\r\n output = '0' + output;\r\n }\r\n\r\n return sign + output;\r\n}","import addLeadingZeros from \"../../addLeadingZeros/index.js\";\r\n/*\r\n * | | Unit | | Unit |\r\n * |-----|--------------------------------|-----|--------------------------------|\r\n * | a | AM, PM | A* | |\r\n * | d | Day of month | D | |\r\n * | h | Hour [1-12] | H | Hour [0-23] |\r\n * | m | Minute | M | Month |\r\n * | s | Second | S | Fraction of second |\r\n * | y | Year (abs) | Y | |\r\n *\r\n * Letters marked by * are not implemented but reserved by Unicode standard.\r\n */\r\n\r\nvar formatters = {\r\n // Year\r\n y: function (date, token) {\r\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\r\n // | Year | y | yy | yyy | yyyy | yyyyy |\r\n // |----------|-------|----|-------|-------|-------|\r\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\r\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\r\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\r\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\r\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\r\n var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)\r\n\r\n var year = signedYear > 0 ? signedYear : 1 - signedYear;\r\n return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);\r\n },\r\n // Month\r\n M: function (date, token) {\r\n var month = date.getUTCMonth();\r\n return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);\r\n },\r\n // Day of the month\r\n d: function (date, token) {\r\n return addLeadingZeros(date.getUTCDate(), token.length);\r\n },\r\n // AM or PM\r\n a: function (date, token) {\r\n var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';\r\n\r\n switch (token) {\r\n case 'a':\r\n case 'aa':\r\n return dayPeriodEnumValue.toUpperCase();\r\n\r\n case 'aaa':\r\n return dayPeriodEnumValue;\r\n\r\n case 'aaaaa':\r\n return dayPeriodEnumValue[0];\r\n\r\n case 'aaaa':\r\n default:\r\n return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';\r\n }\r\n },\r\n // Hour [1-12]\r\n h: function (date, token) {\r\n return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);\r\n },\r\n // Hour [0-23]\r\n H: function (date, token) {\r\n return addLeadingZeros(date.getUTCHours(), token.length);\r\n },\r\n // Minute\r\n m: function (date, token) {\r\n return addLeadingZeros(date.getUTCMinutes(), token.length);\r\n },\r\n // Second\r\n s: function (date, token) {\r\n return addLeadingZeros(date.getUTCSeconds(), token.length);\r\n },\r\n // Fraction of second\r\n S: function (date, token) {\r\n var numberOfDigits = token.length;\r\n var milliseconds = date.getUTCMilliseconds();\r\n var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));\r\n return addLeadingZeros(fractionalSeconds, token.length);\r\n }\r\n};\r\nexport default formatters;","import getUTCDayOfYear from \"../../../_lib/getUTCDayOfYear/index.js\";\r\nimport getUTCISOWeek from \"../../../_lib/getUTCISOWeek/index.js\";\r\nimport getUTCISOWeekYear from \"../../../_lib/getUTCISOWeekYear/index.js\";\r\nimport getUTCWeek from \"../../../_lib/getUTCWeek/index.js\";\r\nimport getUTCWeekYear from \"../../../_lib/getUTCWeekYear/index.js\";\r\nimport addLeadingZeros from \"../../addLeadingZeros/index.js\";\r\nimport lightFormatters from \"../lightFormatters/index.js\";\r\nvar dayPeriodEnum = {\r\n am: 'am',\r\n pm: 'pm',\r\n midnight: 'midnight',\r\n noon: 'noon',\r\n morning: 'morning',\r\n afternoon: 'afternoon',\r\n evening: 'evening',\r\n night: 'night'\r\n};\r\n\r\n/*\r\n * | | Unit | | Unit |\r\n * |-----|--------------------------------|-----|--------------------------------|\r\n * | a | AM, PM | A* | Milliseconds in day |\r\n * | b | AM, PM, noon, midnight | B | Flexible day period |\r\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\r\n * | d | Day of month | D | Day of year |\r\n * | e | Local day of week | E | Day of week |\r\n * | f | | F* | Day of week in month |\r\n * | g* | Modified Julian day | G | Era |\r\n * | h | Hour [1-12] | H | Hour [0-23] |\r\n * | i! | ISO day of week | I! | ISO week of year |\r\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\r\n * | k | Hour [1-24] | K | Hour [0-11] |\r\n * | l* | (deprecated) | L | Stand-alone month |\r\n * | m | Minute | M | Month |\r\n * | n | | N | |\r\n * | o! | Ordinal number modifier | O | Timezone (GMT) |\r\n * | p! | Long localized time | P! | Long localized date |\r\n * | q | Stand-alone quarter | Q | Quarter |\r\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\r\n * | s | Second | S | Fraction of second |\r\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\r\n * | u | Extended year | U* | Cyclic year |\r\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\r\n * | w | Local week of year | W* | Week of month |\r\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\r\n * | y | Year (abs) | Y | Local week-numbering year |\r\n * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\r\n *\r\n * Letters marked by * are not implemented but reserved by Unicode standard.\r\n *\r\n * Letters marked by ! are non-standard, but implemented by date-fns:\r\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\r\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\r\n * i.e. 7 for Sunday, 1 for Monday, etc.\r\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\r\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\r\n * `R` is supposed to be used in conjunction with `I` and `i`\r\n * for universal ISO week-numbering date, whereas\r\n * `Y` is supposed to be used in conjunction with `w` and `e`\r\n * for week-numbering date specific to the locale.\r\n * - `P` is long localized date format\r\n * - `p` is long localized time format\r\n */\r\nvar formatters = {\r\n // Era\r\n G: function (date, token, localize) {\r\n var era = date.getUTCFullYear() > 0 ? 1 : 0;\r\n\r\n switch (token) {\r\n // AD, BC\r\n case 'G':\r\n case 'GG':\r\n case 'GGG':\r\n return localize.era(era, {\r\n width: 'abbreviated'\r\n });\r\n // A, B\r\n\r\n case 'GGGGG':\r\n return localize.era(era, {\r\n width: 'narrow'\r\n });\r\n // Anno Domini, Before Christ\r\n\r\n case 'GGGG':\r\n default:\r\n return localize.era(era, {\r\n width: 'wide'\r\n });\r\n }\r\n },\r\n // Year\r\n y: function (date, token, localize) {\r\n // Ordinal number\r\n if (token === 'yo') {\r\n var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)\r\n\r\n var year = signedYear > 0 ? signedYear : 1 - signedYear;\r\n return localize.ordinalNumber(year, {\r\n unit: 'year'\r\n });\r\n }\r\n\r\n return lightFormatters.y(date, token);\r\n },\r\n // Local week-numbering year\r\n Y: function (date, token, localize, options) {\r\n var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)\r\n\r\n var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year\r\n\r\n if (token === 'YY') {\r\n var twoDigitYear = weekYear % 100;\r\n return addLeadingZeros(twoDigitYear, 2);\r\n } // Ordinal number\r\n\r\n\r\n if (token === 'Yo') {\r\n return localize.ordinalNumber(weekYear, {\r\n unit: 'year'\r\n });\r\n } // Padding\r\n\r\n\r\n return addLeadingZeros(weekYear, token.length);\r\n },\r\n // ISO week-numbering year\r\n R: function (date, token) {\r\n var isoWeekYear = getUTCISOWeekYear(date); // Padding\r\n\r\n return addLeadingZeros(isoWeekYear, token.length);\r\n },\r\n // Extended year. This is a single number designating the year of this calendar system.\r\n // The main difference between `y` and `u` localizers are B.C. years:\r\n // | Year | `y` | `u` |\r\n // |------|-----|-----|\r\n // | AC 1 | 1 | 1 |\r\n // | BC 1 | 1 | 0 |\r\n // | BC 2 | 2 | -1 |\r\n // Also `yy` always returns the last two digits of a year,\r\n // while `uu` pads single digit years to 2 characters and returns other years unchanged.\r\n u: function (date, token) {\r\n var year = date.getUTCFullYear();\r\n return addLeadingZeros(year, token.length);\r\n },\r\n // Quarter\r\n Q: function (date, token, localize) {\r\n var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\r\n\r\n switch (token) {\r\n // 1, 2, 3, 4\r\n case 'Q':\r\n return String(quarter);\r\n // 01, 02, 03, 04\r\n\r\n case 'QQ':\r\n return addLeadingZeros(quarter, 2);\r\n // 1st, 2nd, 3rd, 4th\r\n\r\n case 'Qo':\r\n return localize.ordinalNumber(quarter, {\r\n unit: 'quarter'\r\n });\r\n // Q1, Q2, Q3, Q4\r\n\r\n case 'QQQ':\r\n return localize.quarter(quarter, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n });\r\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\r\n\r\n case 'QQQQQ':\r\n return localize.quarter(quarter, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // 1st quarter, 2nd quarter, ...\r\n\r\n case 'QQQQ':\r\n default:\r\n return localize.quarter(quarter, {\r\n width: 'wide',\r\n context: 'formatting'\r\n });\r\n }\r\n },\r\n // Stand-alone quarter\r\n q: function (date, token, localize) {\r\n var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\r\n\r\n switch (token) {\r\n // 1, 2, 3, 4\r\n case 'q':\r\n return String(quarter);\r\n // 01, 02, 03, 04\r\n\r\n case 'qq':\r\n return addLeadingZeros(quarter, 2);\r\n // 1st, 2nd, 3rd, 4th\r\n\r\n case 'qo':\r\n return localize.ordinalNumber(quarter, {\r\n unit: 'quarter'\r\n });\r\n // Q1, Q2, Q3, Q4\r\n\r\n case 'qqq':\r\n return localize.quarter(quarter, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n });\r\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\r\n\r\n case 'qqqqq':\r\n return localize.quarter(quarter, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // 1st quarter, 2nd quarter, ...\r\n\r\n case 'qqqq':\r\n default:\r\n return localize.quarter(quarter, {\r\n width: 'wide',\r\n context: 'standalone'\r\n });\r\n }\r\n },\r\n // Month\r\n M: function (date, token, localize) {\r\n var month = date.getUTCMonth();\r\n\r\n switch (token) {\r\n case 'M':\r\n case 'MM':\r\n return lightFormatters.M(date, token);\r\n // 1st, 2nd, ..., 12th\r\n\r\n case 'Mo':\r\n return localize.ordinalNumber(month + 1, {\r\n unit: 'month'\r\n });\r\n // Jan, Feb, ..., Dec\r\n\r\n case 'MMM':\r\n return localize.month(month, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n });\r\n // J, F, ..., D\r\n\r\n case 'MMMMM':\r\n return localize.month(month, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // January, February, ..., December\r\n\r\n case 'MMMM':\r\n default:\r\n return localize.month(month, {\r\n width: 'wide',\r\n context: 'formatting'\r\n });\r\n }\r\n },\r\n // Stand-alone month\r\n L: function (date, token, localize) {\r\n var month = date.getUTCMonth();\r\n\r\n switch (token) {\r\n // 1, 2, ..., 12\r\n case 'L':\r\n return String(month + 1);\r\n // 01, 02, ..., 12\r\n\r\n case 'LL':\r\n return addLeadingZeros(month + 1, 2);\r\n // 1st, 2nd, ..., 12th\r\n\r\n case 'Lo':\r\n return localize.ordinalNumber(month + 1, {\r\n unit: 'month'\r\n });\r\n // Jan, Feb, ..., Dec\r\n\r\n case 'LLL':\r\n return localize.month(month, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n });\r\n // J, F, ..., D\r\n\r\n case 'LLLLL':\r\n return localize.month(month, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // January, February, ..., December\r\n\r\n case 'LLLL':\r\n default:\r\n return localize.month(month, {\r\n width: 'wide',\r\n context: 'standalone'\r\n });\r\n }\r\n },\r\n // Local week of year\r\n w: function (date, token, localize, options) {\r\n var week = getUTCWeek(date, options);\r\n\r\n if (token === 'wo') {\r\n return localize.ordinalNumber(week, {\r\n unit: 'week'\r\n });\r\n }\r\n\r\n return addLeadingZeros(week, token.length);\r\n },\r\n // ISO week of year\r\n I: function (date, token, localize) {\r\n var isoWeek = getUTCISOWeek(date);\r\n\r\n if (token === 'Io') {\r\n return localize.ordinalNumber(isoWeek, {\r\n unit: 'week'\r\n });\r\n }\r\n\r\n return addLeadingZeros(isoWeek, token.length);\r\n },\r\n // Day of the month\r\n d: function (date, token, localize) {\r\n if (token === 'do') {\r\n return localize.ordinalNumber(date.getUTCDate(), {\r\n unit: 'date'\r\n });\r\n }\r\n\r\n return lightFormatters.d(date, token);\r\n },\r\n // Day of year\r\n D: function (date, token, localize) {\r\n var dayOfYear = getUTCDayOfYear(date);\r\n\r\n if (token === 'Do') {\r\n return localize.ordinalNumber(dayOfYear, {\r\n unit: 'dayOfYear'\r\n });\r\n }\r\n\r\n return addLeadingZeros(dayOfYear, token.length);\r\n },\r\n // Day of week\r\n E: function (date, token, localize) {\r\n var dayOfWeek = date.getUTCDay();\r\n\r\n switch (token) {\r\n // Tue\r\n case 'E':\r\n case 'EE':\r\n case 'EEE':\r\n return localize.day(dayOfWeek, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n });\r\n // T\r\n\r\n case 'EEEEE':\r\n return localize.day(dayOfWeek, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // Tu\r\n\r\n case 'EEEEEE':\r\n return localize.day(dayOfWeek, {\r\n width: 'short',\r\n context: 'formatting'\r\n });\r\n // Tuesday\r\n\r\n case 'EEEE':\r\n default:\r\n return localize.day(dayOfWeek, {\r\n width: 'wide',\r\n context: 'formatting'\r\n });\r\n }\r\n },\r\n // Local day of week\r\n e: function (date, token, localize, options) {\r\n var dayOfWeek = date.getUTCDay();\r\n var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\r\n\r\n switch (token) {\r\n // Numerical value (Nth day of week with current locale or weekStartsOn)\r\n case 'e':\r\n return String(localDayOfWeek);\r\n // Padded numerical value\r\n\r\n case 'ee':\r\n return addLeadingZeros(localDayOfWeek, 2);\r\n // 1st, 2nd, ..., 7th\r\n\r\n case 'eo':\r\n return localize.ordinalNumber(localDayOfWeek, {\r\n unit: 'day'\r\n });\r\n\r\n case 'eee':\r\n return localize.day(dayOfWeek, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n });\r\n // T\r\n\r\n case 'eeeee':\r\n return localize.day(dayOfWeek, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // Tu\r\n\r\n case 'eeeeee':\r\n return localize.day(dayOfWeek, {\r\n width: 'short',\r\n context: 'formatting'\r\n });\r\n // Tuesday\r\n\r\n case 'eeee':\r\n default:\r\n return localize.day(dayOfWeek, {\r\n width: 'wide',\r\n context: 'formatting'\r\n });\r\n }\r\n },\r\n // Stand-alone local day of week\r\n c: function (date, token, localize, options) {\r\n var dayOfWeek = date.getUTCDay();\r\n var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\r\n\r\n switch (token) {\r\n // Numerical value (same as in `e`)\r\n case 'c':\r\n return String(localDayOfWeek);\r\n // Padded numerical value\r\n\r\n case 'cc':\r\n return addLeadingZeros(localDayOfWeek, token.length);\r\n // 1st, 2nd, ..., 7th\r\n\r\n case 'co':\r\n return localize.ordinalNumber(localDayOfWeek, {\r\n unit: 'day'\r\n });\r\n\r\n case 'ccc':\r\n return localize.day(dayOfWeek, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n });\r\n // T\r\n\r\n case 'ccccc':\r\n return localize.day(dayOfWeek, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // Tu\r\n\r\n case 'cccccc':\r\n return localize.day(dayOfWeek, {\r\n width: 'short',\r\n context: 'standalone'\r\n });\r\n // Tuesday\r\n\r\n case 'cccc':\r\n default:\r\n return localize.day(dayOfWeek, {\r\n width: 'wide',\r\n context: 'standalone'\r\n });\r\n }\r\n },\r\n // ISO day of week\r\n i: function (date, token, localize) {\r\n var dayOfWeek = date.getUTCDay();\r\n var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\r\n\r\n switch (token) {\r\n // 2\r\n case 'i':\r\n return String(isoDayOfWeek);\r\n // 02\r\n\r\n case 'ii':\r\n return addLeadingZeros(isoDayOfWeek, token.length);\r\n // 2nd\r\n\r\n case 'io':\r\n return localize.ordinalNumber(isoDayOfWeek, {\r\n unit: 'day'\r\n });\r\n // Tue\r\n\r\n case 'iii':\r\n return localize.day(dayOfWeek, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n });\r\n // T\r\n\r\n case 'iiiii':\r\n return localize.day(dayOfWeek, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // Tu\r\n\r\n case 'iiiiii':\r\n return localize.day(dayOfWeek, {\r\n width: 'short',\r\n context: 'formatting'\r\n });\r\n // Tuesday\r\n\r\n case 'iiii':\r\n default:\r\n return localize.day(dayOfWeek, {\r\n width: 'wide',\r\n context: 'formatting'\r\n });\r\n }\r\n },\r\n // AM or PM\r\n a: function (date, token, localize) {\r\n var hours = date.getUTCHours();\r\n var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\r\n\r\n switch (token) {\r\n case 'a':\r\n case 'aa':\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n });\r\n\r\n case 'aaa':\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }).toLowerCase();\r\n\r\n case 'aaaaa':\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'aaaa':\r\n default:\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'wide',\r\n context: 'formatting'\r\n });\r\n }\r\n },\r\n // AM, PM, midnight, noon\r\n b: function (date, token, localize) {\r\n var hours = date.getUTCHours();\r\n var dayPeriodEnumValue;\r\n\r\n if (hours === 12) {\r\n dayPeriodEnumValue = dayPeriodEnum.noon;\r\n } else if (hours === 0) {\r\n dayPeriodEnumValue = dayPeriodEnum.midnight;\r\n } else {\r\n dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\r\n }\r\n\r\n switch (token) {\r\n case 'b':\r\n case 'bb':\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n });\r\n\r\n case 'bbb':\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }).toLowerCase();\r\n\r\n case 'bbbbb':\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'bbbb':\r\n default:\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'wide',\r\n context: 'formatting'\r\n });\r\n }\r\n },\r\n // in the morning, in the afternoon, in the evening, at night\r\n B: function (date, token, localize) {\r\n var hours = date.getUTCHours();\r\n var dayPeriodEnumValue;\r\n\r\n if (hours >= 17) {\r\n dayPeriodEnumValue = dayPeriodEnum.evening;\r\n } else if (hours >= 12) {\r\n dayPeriodEnumValue = dayPeriodEnum.afternoon;\r\n } else if (hours >= 4) {\r\n dayPeriodEnumValue = dayPeriodEnum.morning;\r\n } else {\r\n dayPeriodEnumValue = dayPeriodEnum.night;\r\n }\r\n\r\n switch (token) {\r\n case 'B':\r\n case 'BB':\r\n case 'BBB':\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n });\r\n\r\n case 'BBBBB':\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'BBBB':\r\n default:\r\n return localize.dayPeriod(dayPeriodEnumValue, {\r\n width: 'wide',\r\n context: 'formatting'\r\n });\r\n }\r\n },\r\n // Hour [1-12]\r\n h: function (date, token, localize) {\r\n if (token === 'ho') {\r\n var hours = date.getUTCHours() % 12;\r\n if (hours === 0) hours = 12;\r\n return localize.ordinalNumber(hours, {\r\n unit: 'hour'\r\n });\r\n }\r\n\r\n return lightFormatters.h(date, token);\r\n },\r\n // Hour [0-23]\r\n H: function (date, token, localize) {\r\n if (token === 'Ho') {\r\n return localize.ordinalNumber(date.getUTCHours(), {\r\n unit: 'hour'\r\n });\r\n }\r\n\r\n return lightFormatters.H(date, token);\r\n },\r\n // Hour [0-11]\r\n K: function (date, token, localize) {\r\n var hours = date.getUTCHours() % 12;\r\n\r\n if (token === 'Ko') {\r\n return localize.ordinalNumber(hours, {\r\n unit: 'hour'\r\n });\r\n }\r\n\r\n return addLeadingZeros(hours, token.length);\r\n },\r\n // Hour [1-24]\r\n k: function (date, token, localize) {\r\n var hours = date.getUTCHours();\r\n if (hours === 0) hours = 24;\r\n\r\n if (token === 'ko') {\r\n return localize.ordinalNumber(hours, {\r\n unit: 'hour'\r\n });\r\n }\r\n\r\n return addLeadingZeros(hours, token.length);\r\n },\r\n // Minute\r\n m: function (date, token, localize) {\r\n if (token === 'mo') {\r\n return localize.ordinalNumber(date.getUTCMinutes(), {\r\n unit: 'minute'\r\n });\r\n }\r\n\r\n return lightFormatters.m(date, token);\r\n },\r\n // Second\r\n s: function (date, token, localize) {\r\n if (token === 'so') {\r\n return localize.ordinalNumber(date.getUTCSeconds(), {\r\n unit: 'second'\r\n });\r\n }\r\n\r\n return lightFormatters.s(date, token);\r\n },\r\n // Fraction of second\r\n S: function (date, token) {\r\n return lightFormatters.S(date, token);\r\n },\r\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\r\n X: function (date, token, _localize, options) {\r\n var originalDate = options._originalDate || date;\r\n var timezoneOffset = originalDate.getTimezoneOffset();\r\n\r\n if (timezoneOffset === 0) {\r\n return 'Z';\r\n }\r\n\r\n switch (token) {\r\n // Hours and optional minutes\r\n case 'X':\r\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\r\n // Hours, minutes and optional seconds without `:` delimiter\r\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\r\n // so this token always has the same output as `XX`\r\n\r\n case 'XXXX':\r\n case 'XX':\r\n // Hours and minutes without `:` delimiter\r\n return formatTimezone(timezoneOffset);\r\n // Hours, minutes and optional seconds with `:` delimiter\r\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\r\n // so this token always has the same output as `XXX`\r\n\r\n case 'XXXXX':\r\n case 'XXX': // Hours and minutes with `:` delimiter\r\n\r\n default:\r\n return formatTimezone(timezoneOffset, ':');\r\n }\r\n },\r\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\r\n x: function (date, token, _localize, options) {\r\n var originalDate = options._originalDate || date;\r\n var timezoneOffset = originalDate.getTimezoneOffset();\r\n\r\n switch (token) {\r\n // Hours and optional minutes\r\n case 'x':\r\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\r\n // Hours, minutes and optional seconds without `:` delimiter\r\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\r\n // so this token always has the same output as `xx`\r\n\r\n case 'xxxx':\r\n case 'xx':\r\n // Hours and minutes without `:` delimiter\r\n return formatTimezone(timezoneOffset);\r\n // Hours, minutes and optional seconds with `:` delimiter\r\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\r\n // so this token always has the same output as `xxx`\r\n\r\n case 'xxxxx':\r\n case 'xxx': // Hours and minutes with `:` delimiter\r\n\r\n default:\r\n return formatTimezone(timezoneOffset, ':');\r\n }\r\n },\r\n // Timezone (GMT)\r\n O: function (date, token, _localize, options) {\r\n var originalDate = options._originalDate || date;\r\n var timezoneOffset = originalDate.getTimezoneOffset();\r\n\r\n switch (token) {\r\n // Short\r\n case 'O':\r\n case 'OO':\r\n case 'OOO':\r\n return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\r\n // Long\r\n\r\n case 'OOOO':\r\n default:\r\n return 'GMT' + formatTimezone(timezoneOffset, ':');\r\n }\r\n },\r\n // Timezone (specific non-location)\r\n z: function (date, token, _localize, options) {\r\n var originalDate = options._originalDate || date;\r\n var timezoneOffset = originalDate.getTimezoneOffset();\r\n\r\n switch (token) {\r\n // Short\r\n case 'z':\r\n case 'zz':\r\n case 'zzz':\r\n return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\r\n // Long\r\n\r\n case 'zzzz':\r\n default:\r\n return 'GMT' + formatTimezone(timezoneOffset, ':');\r\n }\r\n },\r\n // Seconds timestamp\r\n t: function (date, token, _localize, options) {\r\n var originalDate = options._originalDate || date;\r\n var timestamp = Math.floor(originalDate.getTime() / 1000);\r\n return addLeadingZeros(timestamp, token.length);\r\n },\r\n // Milliseconds timestamp\r\n T: function (date, token, _localize, options) {\r\n var originalDate = options._originalDate || date;\r\n var timestamp = originalDate.getTime();\r\n return addLeadingZeros(timestamp, token.length);\r\n }\r\n};\r\n\r\nfunction formatTimezoneShort(offset, dirtyDelimiter) {\r\n var sign = offset > 0 ? '-' : '+';\r\n var absOffset = Math.abs(offset);\r\n var hours = Math.floor(absOffset / 60);\r\n var minutes = absOffset % 60;\r\n\r\n if (minutes === 0) {\r\n return sign + String(hours);\r\n }\r\n\r\n var delimiter = dirtyDelimiter || '';\r\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\r\n}\r\n\r\nfunction formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {\r\n if (offset % 60 === 0) {\r\n var sign = offset > 0 ? '-' : '+';\r\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\r\n }\r\n\r\n return formatTimezone(offset, dirtyDelimiter);\r\n}\r\n\r\nfunction formatTimezone(offset, dirtyDelimiter) {\r\n var delimiter = dirtyDelimiter || '';\r\n var sign = offset > 0 ? '-' : '+';\r\n var absOffset = Math.abs(offset);\r\n var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);\r\n var minutes = addLeadingZeros(absOffset % 60, 2);\r\n return sign + hours + delimiter + minutes;\r\n}\r\n\r\nexport default formatters;","var dateLongFormatter = function (pattern, formatLong) {\r\n switch (pattern) {\r\n case 'P':\r\n return formatLong.date({\r\n width: 'short'\r\n });\r\n\r\n case 'PP':\r\n return formatLong.date({\r\n width: 'medium'\r\n });\r\n\r\n case 'PPP':\r\n return formatLong.date({\r\n width: 'long'\r\n });\r\n\r\n case 'PPPP':\r\n default:\r\n return formatLong.date({\r\n width: 'full'\r\n });\r\n }\r\n};\r\n\r\nvar timeLongFormatter = function (pattern, formatLong) {\r\n switch (pattern) {\r\n case 'p':\r\n return formatLong.time({\r\n width: 'short'\r\n });\r\n\r\n case 'pp':\r\n return formatLong.time({\r\n width: 'medium'\r\n });\r\n\r\n case 'ppp':\r\n return formatLong.time({\r\n width: 'long'\r\n });\r\n\r\n case 'pppp':\r\n default:\r\n return formatLong.time({\r\n width: 'full'\r\n });\r\n }\r\n};\r\n\r\nvar dateTimeLongFormatter = function (pattern, formatLong) {\r\n var matchResult = pattern.match(/(P+)(p+)?/) || [];\r\n var datePattern = matchResult[1];\r\n var timePattern = matchResult[2];\r\n\r\n if (!timePattern) {\r\n return dateLongFormatter(pattern, formatLong);\r\n }\r\n\r\n var dateTimeFormat;\r\n\r\n switch (datePattern) {\r\n case 'P':\r\n dateTimeFormat = formatLong.dateTime({\r\n width: 'short'\r\n });\r\n break;\r\n\r\n case 'PP':\r\n dateTimeFormat = formatLong.dateTime({\r\n width: 'medium'\r\n });\r\n break;\r\n\r\n case 'PPP':\r\n dateTimeFormat = formatLong.dateTime({\r\n width: 'long'\r\n });\r\n break;\r\n\r\n case 'PPPP':\r\n default:\r\n dateTimeFormat = formatLong.dateTime({\r\n width: 'full'\r\n });\r\n break;\r\n }\r\n\r\n return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));\r\n};\r\n\r\nvar longFormatters = {\r\n p: timeLongFormatter,\r\n P: dateTimeLongFormatter\r\n};\r\nexport default longFormatters;","/**\r\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\r\n * They usually appear for dates that denote time before the timezones were introduced\r\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\r\n * and GMT+01:00:00 after that date)\r\n *\r\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\r\n * which would lead to incorrect calculations.\r\n *\r\n * This function returns the timezone offset in milliseconds that takes seconds in account.\r\n */\r\nexport default function getTimezoneOffsetInMilliseconds(date) {\r\n var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));\r\n utcDate.setUTCFullYear(date.getFullYear());\r\n return date.getTime() - utcDate.getTime();\r\n}","var protectedDayOfYearTokens = ['D', 'DD'];\r\nvar protectedWeekYearTokens = ['YY', 'YYYY'];\r\nexport function isProtectedDayOfYearToken(token) {\r\n return protectedDayOfYearTokens.indexOf(token) !== -1;\r\n}\r\nexport function isProtectedWeekYearToken(token) {\r\n return protectedWeekYearTokens.indexOf(token) !== -1;\r\n}\r\nexport function throwProtectedError(token, format, input) {\r\n if (token === 'YYYY') {\r\n throw new RangeError(\"Use `yyyy` instead of `YYYY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\r\n } else if (token === 'YY') {\r\n throw new RangeError(\"Use `yy` instead of `YY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\r\n } else if (token === 'D') {\r\n throw new RangeError(\"Use `d` instead of `D` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\r\n } else if (token === 'DD') {\r\n throw new RangeError(\"Use `dd` instead of `DD` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\r\n }\r\n}","var formatDistanceLocale = {\r\n lessThanXSeconds: {\r\n one: 'less than a second',\r\n other: 'less than {{count}} seconds'\r\n },\r\n xSeconds: {\r\n one: '1 second',\r\n other: '{{count}} seconds'\r\n },\r\n halfAMinute: 'half a minute',\r\n lessThanXMinutes: {\r\n one: 'less than a minute',\r\n other: 'less than {{count}} minutes'\r\n },\r\n xMinutes: {\r\n one: '1 minute',\r\n other: '{{count}} minutes'\r\n },\r\n aboutXHours: {\r\n one: 'about 1 hour',\r\n other: 'about {{count}} hours'\r\n },\r\n xHours: {\r\n one: '1 hour',\r\n other: '{{count}} hours'\r\n },\r\n xDays: {\r\n one: '1 day',\r\n other: '{{count}} days'\r\n },\r\n aboutXWeeks: {\r\n one: 'about 1 week',\r\n other: 'about {{count}} weeks'\r\n },\r\n xWeeks: {\r\n one: '1 week',\r\n other: '{{count}} weeks'\r\n },\r\n aboutXMonths: {\r\n one: 'about 1 month',\r\n other: 'about {{count}} months'\r\n },\r\n xMonths: {\r\n one: '1 month',\r\n other: '{{count}} months'\r\n },\r\n aboutXYears: {\r\n one: 'about 1 year',\r\n other: 'about {{count}} years'\r\n },\r\n xYears: {\r\n one: '1 year',\r\n other: '{{count}} years'\r\n },\r\n overXYears: {\r\n one: 'over 1 year',\r\n other: 'over {{count}} years'\r\n },\r\n almostXYears: {\r\n one: 'almost 1 year',\r\n other: 'almost {{count}} years'\r\n }\r\n};\r\n\r\nvar formatDistance = function (token, count, options) {\r\n var result;\r\n var tokenValue = formatDistanceLocale[token];\r\n\r\n if (typeof tokenValue === 'string') {\r\n result = tokenValue;\r\n } else if (count === 1) {\r\n result = tokenValue.one;\r\n } else {\r\n result = tokenValue.other.replace('{{count}}', count.toString());\r\n }\r\n\r\n if (options !== null && options !== void 0 && options.addSuffix) {\r\n if (options.comparison && options.comparison > 0) {\r\n return 'in ' + result;\r\n } else {\r\n return result + ' ago';\r\n }\r\n }\r\n\r\n return result;\r\n};\r\n\r\nexport default formatDistance;","export default function buildFormatLongFn(args) {\r\n return function () {\r\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\r\n // TODO: Remove String()\r\n var width = options.width ? String(options.width) : args.defaultWidth;\r\n var format = args.formats[width] || args.formats[args.defaultWidth];\r\n return format;\r\n };\r\n}","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\r\nvar dateFormats = {\r\n full: 'EEEE, MMMM do, y',\r\n long: 'MMMM do, y',\r\n medium: 'MMM d, y',\r\n short: 'MM/dd/yyyy'\r\n};\r\nvar timeFormats = {\r\n full: 'h:mm:ss a zzzz',\r\n long: 'h:mm:ss a z',\r\n medium: 'h:mm:ss a',\r\n short: 'h:mm a'\r\n};\r\nvar dateTimeFormats = {\r\n full: \"{{date}} 'at' {{time}}\",\r\n long: \"{{date}} 'at' {{time}}\",\r\n medium: '{{date}}, {{time}}',\r\n short: '{{date}}, {{time}}'\r\n};\r\nvar formatLong = {\r\n date: buildFormatLongFn({\r\n formats: dateFormats,\r\n defaultWidth: 'full'\r\n }),\r\n time: buildFormatLongFn({\r\n formats: timeFormats,\r\n defaultWidth: 'full'\r\n }),\r\n dateTime: buildFormatLongFn({\r\n formats: dateTimeFormats,\r\n defaultWidth: 'full'\r\n })\r\n};\r\nexport default formatLong;","var formatRelativeLocale = {\r\n lastWeek: \"'last' eeee 'at' p\",\r\n yesterday: \"'yesterday at' p\",\r\n today: \"'today at' p\",\r\n tomorrow: \"'tomorrow at' p\",\r\n nextWeek: \"eeee 'at' p\",\r\n other: 'P'\r\n};\r\n\r\nvar formatRelative = function (token, _date, _baseDate, _options) {\r\n return formatRelativeLocale[token];\r\n};\r\n\r\nexport default formatRelative;","export default function buildLocalizeFn(args) {\r\n return function (dirtyIndex, options) {\r\n var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';\r\n var valuesArray;\r\n\r\n if (context === 'formatting' && args.formattingValues) {\r\n var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\r\n var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;\r\n valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];\r\n } else {\r\n var _defaultWidth = args.defaultWidth;\r\n\r\n var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;\r\n\r\n valuesArray = args.values[_width] || args.values[_defaultWidth];\r\n }\r\n\r\n var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\r\n\r\n return valuesArray[index];\r\n };\r\n}","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\r\nvar eraValues = {\r\n narrow: ['B', 'A'],\r\n abbreviated: ['BC', 'AD'],\r\n wide: ['Before Christ', 'Anno Domini']\r\n};\r\nvar quarterValues = {\r\n narrow: ['1', '2', '3', '4'],\r\n abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\r\n wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']\r\n}; // Note: in English, the names of days of the week and months are capitalized.\r\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\r\n// Generally, formatted dates should look like they are in the middle of a sentence,\r\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\r\n\r\nvar monthValues = {\r\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\r\n abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\r\n wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\r\n};\r\nvar dayValues = {\r\n narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\r\n short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\r\n abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\r\n wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\r\n};\r\nvar dayPeriodValues = {\r\n narrow: {\r\n am: 'a',\r\n pm: 'p',\r\n midnight: 'mi',\r\n noon: 'n',\r\n morning: 'morning',\r\n afternoon: 'afternoon',\r\n evening: 'evening',\r\n night: 'night'\r\n },\r\n abbreviated: {\r\n am: 'AM',\r\n pm: 'PM',\r\n midnight: 'midnight',\r\n noon: 'noon',\r\n morning: 'morning',\r\n afternoon: 'afternoon',\r\n evening: 'evening',\r\n night: 'night'\r\n },\r\n wide: {\r\n am: 'a.m.',\r\n pm: 'p.m.',\r\n midnight: 'midnight',\r\n noon: 'noon',\r\n morning: 'morning',\r\n afternoon: 'afternoon',\r\n evening: 'evening',\r\n night: 'night'\r\n }\r\n};\r\nvar formattingDayPeriodValues = {\r\n narrow: {\r\n am: 'a',\r\n pm: 'p',\r\n midnight: 'mi',\r\n noon: 'n',\r\n morning: 'in the morning',\r\n afternoon: 'in the afternoon',\r\n evening: 'in the evening',\r\n night: 'at night'\r\n },\r\n abbreviated: {\r\n am: 'AM',\r\n pm: 'PM',\r\n midnight: 'midnight',\r\n noon: 'noon',\r\n morning: 'in the morning',\r\n afternoon: 'in the afternoon',\r\n evening: 'in the evening',\r\n night: 'at night'\r\n },\r\n wide: {\r\n am: 'a.m.',\r\n pm: 'p.m.',\r\n midnight: 'midnight',\r\n noon: 'noon',\r\n morning: 'in the morning',\r\n afternoon: 'in the afternoon',\r\n evening: 'in the evening',\r\n night: 'at night'\r\n }\r\n};\r\n\r\nvar ordinalNumber = function (dirtyNumber, _options) {\r\n var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,\r\n // if they are different for different grammatical genders,\r\n // use `options.unit`.\r\n //\r\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\r\n // 'day', 'hour', 'minute', 'second'.\r\n\r\n var rem100 = number % 100;\r\n\r\n if (rem100 > 20 || rem100 < 10) {\r\n switch (rem100 % 10) {\r\n case 1:\r\n return number + 'st';\r\n\r\n case 2:\r\n return number + 'nd';\r\n\r\n case 3:\r\n return number + 'rd';\r\n }\r\n }\r\n\r\n return number + 'th';\r\n};\r\n\r\nvar localize = {\r\n ordinalNumber: ordinalNumber,\r\n era: buildLocalizeFn({\r\n values: eraValues,\r\n defaultWidth: 'wide'\r\n }),\r\n quarter: buildLocalizeFn({\r\n values: quarterValues,\r\n defaultWidth: 'wide',\r\n argumentCallback: function (quarter) {\r\n return quarter - 1;\r\n }\r\n }),\r\n month: buildLocalizeFn({\r\n values: monthValues,\r\n defaultWidth: 'wide'\r\n }),\r\n day: buildLocalizeFn({\r\n values: dayValues,\r\n defaultWidth: 'wide'\r\n }),\r\n dayPeriod: buildLocalizeFn({\r\n values: dayPeriodValues,\r\n defaultWidth: 'wide',\r\n formattingValues: formattingDayPeriodValues,\r\n defaultFormattingWidth: 'wide'\r\n })\r\n};\r\nexport default localize;","export default function buildMatchFn(args) {\r\n return function (string) {\r\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\r\n var width = options.width;\r\n var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];\r\n var matchResult = string.match(matchPattern);\r\n\r\n if (!matchResult) {\r\n return null;\r\n }\r\n\r\n var matchedString = matchResult[0];\r\n var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];\r\n var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {\r\n return pattern.test(matchedString);\r\n }) : findKey(parsePatterns, function (pattern) {\r\n return pattern.test(matchedString);\r\n });\r\n var value;\r\n value = args.valueCallback ? args.valueCallback(key) : key;\r\n value = options.valueCallback ? options.valueCallback(value) : value;\r\n var rest = string.slice(matchedString.length);\r\n return {\r\n value: value,\r\n rest: rest\r\n };\r\n };\r\n}\r\n\r\nfunction findKey(object, predicate) {\r\n for (var key in object) {\r\n if (object.hasOwnProperty(key) && predicate(object[key])) {\r\n return key;\r\n }\r\n }\r\n\r\n return undefined;\r\n}\r\n\r\nfunction findIndex(array, predicate) {\r\n for (var key = 0; key < array.length; key++) {\r\n if (predicate(array[key])) {\r\n return key;\r\n }\r\n }\r\n\r\n return undefined;\r\n}","export default function buildMatchPatternFn(args) {\r\n return function (string) {\r\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\r\n var matchResult = string.match(args.matchPattern);\r\n if (!matchResult) return null;\r\n var matchedString = matchResult[0];\r\n var parseResult = string.match(args.parsePattern);\r\n if (!parseResult) return null;\r\n var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];\r\n value = options.valueCallback ? options.valueCallback(value) : value;\r\n var rest = string.slice(matchedString.length);\r\n return {\r\n value: value,\r\n rest: rest\r\n };\r\n };\r\n}","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\r\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\r\nvar matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\r\nvar parseOrdinalNumberPattern = /\\d+/i;\r\nvar matchEraPatterns = {\r\n narrow: /^(b|a)/i,\r\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\r\n wide: /^(before christ|before common era|anno domini|common era)/i\r\n};\r\nvar parseEraPatterns = {\r\n any: [/^b/i, /^(a|c)/i]\r\n};\r\nvar matchQuarterPatterns = {\r\n narrow: /^[1234]/i,\r\n abbreviated: /^q[1234]/i,\r\n wide: /^[1234](th|st|nd|rd)? quarter/i\r\n};\r\nvar parseQuarterPatterns = {\r\n any: [/1/i, /2/i, /3/i, /4/i]\r\n};\r\nvar matchMonthPatterns = {\r\n narrow: /^[jfmasond]/i,\r\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\r\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i\r\n};\r\nvar parseMonthPatterns = {\r\n 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],\r\n 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]\r\n};\r\nvar matchDayPatterns = {\r\n narrow: /^[smtwf]/i,\r\n short: /^(su|mo|tu|we|th|fr|sa)/i,\r\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\r\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\r\n};\r\nvar parseDayPatterns = {\r\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\r\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\r\n};\r\nvar matchDayPeriodPatterns = {\r\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\r\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i\r\n};\r\nvar parseDayPeriodPatterns = {\r\n any: {\r\n am: /^a/i,\r\n pm: /^p/i,\r\n midnight: /^mi/i,\r\n noon: /^no/i,\r\n morning: /morning/i,\r\n afternoon: /afternoon/i,\r\n evening: /evening/i,\r\n night: /night/i\r\n }\r\n};\r\nvar match = {\r\n ordinalNumber: buildMatchPatternFn({\r\n matchPattern: matchOrdinalNumberPattern,\r\n parsePattern: parseOrdinalNumberPattern,\r\n valueCallback: function (value) {\r\n return parseInt(value, 10);\r\n }\r\n }),\r\n era: buildMatchFn({\r\n matchPatterns: matchEraPatterns,\r\n defaultMatchWidth: 'wide',\r\n parsePatterns: parseEraPatterns,\r\n defaultParseWidth: 'any'\r\n }),\r\n quarter: buildMatchFn({\r\n matchPatterns: matchQuarterPatterns,\r\n defaultMatchWidth: 'wide',\r\n parsePatterns: parseQuarterPatterns,\r\n defaultParseWidth: 'any',\r\n valueCallback: function (index) {\r\n return index + 1;\r\n }\r\n }),\r\n month: buildMatchFn({\r\n matchPatterns: matchMonthPatterns,\r\n defaultMatchWidth: 'wide',\r\n parsePatterns: parseMonthPatterns,\r\n defaultParseWidth: 'any'\r\n }),\r\n day: buildMatchFn({\r\n matchPatterns: matchDayPatterns,\r\n defaultMatchWidth: 'wide',\r\n parsePatterns: parseDayPatterns,\r\n defaultParseWidth: 'any'\r\n }),\r\n dayPeriod: buildMatchFn({\r\n matchPatterns: matchDayPeriodPatterns,\r\n defaultMatchWidth: 'any',\r\n parsePatterns: parseDayPeriodPatterns,\r\n defaultParseWidth: 'any'\r\n })\r\n};\r\nexport default match;","import formatDistance from \"./_lib/formatDistance/index.js\";\r\nimport formatLong from \"./_lib/formatLong/index.js\";\r\nimport formatRelative from \"./_lib/formatRelative/index.js\";\r\nimport localize from \"./_lib/localize/index.js\";\r\nimport match from \"./_lib/match/index.js\";\r\n\r\n/**\r\n * @type {Locale}\r\n * @category Locales\r\n * @summary English locale (United States).\r\n * @language English\r\n * @iso-639-2 eng\r\n * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}\r\n * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}\r\n */\r\nvar locale = {\r\n code: 'en-US',\r\n formatDistance: formatDistance,\r\n formatLong: formatLong,\r\n formatRelative: formatRelative,\r\n localize: localize,\r\n match: match,\r\n options: {\r\n weekStartsOn: 0\r\n /* Sunday */\r\n ,\r\n firstWeekContainsDate: 1\r\n }\r\n};\r\nexport default locale;","import defaultLocale from \"../../locale/en-US/index.js\";\r\nexport default defaultLocale;","import isValid from \"../isValid/index.js\";\r\nimport subMilliseconds from \"../subMilliseconds/index.js\";\r\nimport toDate from \"../toDate/index.js\";\r\nimport formatters from \"../_lib/format/formatters/index.js\";\r\nimport longFormatters from \"../_lib/format/longFormatters/index.js\";\r\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\r\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from \"../_lib/protectedTokens/index.js\";\r\nimport toInteger from \"../_lib/toInteger/index.js\";\r\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\r\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\r\nimport defaultLocale from \"../_lib/defaultLocale/index.js\"; // This RegExp consists of three parts separated by `|`:\r\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\r\n// (one of the certain letters followed by `o`)\r\n// - (\\w)\\1* matches any sequences of the same letter\r\n// - '' matches two quote characters in a row\r\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\r\n// except a single quote symbol, which ends the sequence.\r\n// Two quote characters do not end the sequence.\r\n// If there is no matching single quote\r\n// then the sequence will continue until the end of the string.\r\n// - . matches any single character unmatched by previous parts of the RegExps\r\n\r\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also\r\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\r\n\r\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\r\nvar escapedStringRegExp = /^'([^]*?)'?$/;\r\nvar doubleQuoteRegExp = /''/g;\r\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\r\n/**\r\n * @name format\r\n * @category Common Helpers\r\n * @summary Format the date.\r\n *\r\n * @description\r\n * Return the formatted date string in the given format. The result may vary by locale.\r\n *\r\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\r\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n *\r\n * The characters wrapped between two single quotes characters (') are escaped.\r\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\r\n * (see the last example)\r\n *\r\n * Format of the string is based on Unicode Technical Standard #35:\r\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\r\n * with a few additions (see note 7 below the table).\r\n *\r\n * Accepted patterns:\r\n * | Unit | Pattern | Result examples | Notes |\r\n * |---------------------------------|---------|-----------------------------------|-------|\r\n * | Era | G..GGG | AD, BC | |\r\n * | | GGGG | Anno Domini, Before Christ | 2 |\r\n * | | GGGGG | A, B | |\r\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\r\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\r\n * | | yy | 44, 01, 00, 17 | 5 |\r\n * | | yyy | 044, 001, 1900, 2017 | 5 |\r\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\r\n * | | yyyyy | ... | 3,5 |\r\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\r\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\r\n * | | YY | 44, 01, 00, 17 | 5,8 |\r\n * | | YYY | 044, 001, 1900, 2017 | 5 |\r\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\r\n * | | YYYYY | ... | 3,5 |\r\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\r\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\r\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\r\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\r\n * | | RRRRR | ... | 3,5,7 |\r\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\r\n * | | uu | -43, 01, 1900, 2017 | 5 |\r\n * | | uuu | -043, 001, 1900, 2017 | 5 |\r\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\r\n * | | uuuuu | ... | 3,5 |\r\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\r\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\r\n * | | QQ | 01, 02, 03, 04 | |\r\n * | | QQQ | Q1, Q2, Q3, Q4 | |\r\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\r\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\r\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\r\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\r\n * | | qq | 01, 02, 03, 04 | |\r\n * | | qqq | Q1, Q2, Q3, Q4 | |\r\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\r\n * | | qqqqq | 1, 2, 3, 4 | 4 |\r\n * | Month (formatting) | M | 1, 2, ..., 12 | |\r\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\r\n * | | MM | 01, 02, ..., 12 | |\r\n * | | MMM | Jan, Feb, ..., Dec | |\r\n * | | MMMM | January, February, ..., December | 2 |\r\n * | | MMMMM | J, F, ..., D | |\r\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\r\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\r\n * | | LL | 01, 02, ..., 12 | |\r\n * | | LLL | Jan, Feb, ..., Dec | |\r\n * | | LLLL | January, February, ..., December | 2 |\r\n * | | LLLLL | J, F, ..., D | |\r\n * | Local week of year | w | 1, 2, ..., 53 | |\r\n * | | wo | 1st, 2nd, ..., 53th | 7 |\r\n * | | ww | 01, 02, ..., 53 | |\r\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\r\n * | | Io | 1st, 2nd, ..., 53th | 7 |\r\n * | | II | 01, 02, ..., 53 | 7 |\r\n * | Day of month | d | 1, 2, ..., 31 | |\r\n * | | do | 1st, 2nd, ..., 31st | 7 |\r\n * | | dd | 01, 02, ..., 31 | |\r\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\r\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\r\n * | | DD | 01, 02, ..., 365, 366 | 9 |\r\n * | | DDD | 001, 002, ..., 365, 366 | |\r\n * | | DDDD | ... | 3 |\r\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\r\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\r\n * | | EEEEE | M, T, W, T, F, S, S | |\r\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\r\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\r\n * | | io | 1st, 2nd, ..., 7th | 7 |\r\n * | | ii | 01, 02, ..., 07 | 7 |\r\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\r\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\r\n * | | iiiii | M, T, W, T, F, S, S | 7 |\r\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\r\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\r\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\r\n * | | ee | 02, 03, ..., 01 | |\r\n * | | eee | Mon, Tue, Wed, ..., Sun | |\r\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\r\n * | | eeeee | M, T, W, T, F, S, S | |\r\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\r\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\r\n * | | co | 2nd, 3rd, ..., 1st | 7 |\r\n * | | cc | 02, 03, ..., 01 | |\r\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\r\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\r\n * | | ccccc | M, T, W, T, F, S, S | |\r\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\r\n * | AM, PM | a..aa | AM, PM | |\r\n * | | aaa | am, pm | |\r\n * | | aaaa | a.m., p.m. | 2 |\r\n * | | aaaaa | a, p | |\r\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\r\n * | | bbb | am, pm, noon, midnight | |\r\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\r\n * | | bbbbb | a, p, n, mi | |\r\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\r\n * | | BBBB | at night, in the morning, ... | 2 |\r\n * | | BBBBB | at night, in the morning, ... | |\r\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\r\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\r\n * | | hh | 01, 02, ..., 11, 12 | |\r\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\r\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\r\n * | | HH | 00, 01, 02, ..., 23 | |\r\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\r\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\r\n * | | KK | 01, 02, ..., 11, 00 | |\r\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\r\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\r\n * | | kk | 24, 01, 02, ..., 23 | |\r\n * | Minute | m | 0, 1, ..., 59 | |\r\n * | | mo | 0th, 1st, ..., 59th | 7 |\r\n * | | mm | 00, 01, ..., 59 | |\r\n * | Second | s | 0, 1, ..., 59 | |\r\n * | | so | 0th, 1st, ..., 59th | 7 |\r\n * | | ss | 00, 01, ..., 59 | |\r\n * | Fraction of second | S | 0, 1, ..., 9 | |\r\n * | | SS | 00, 01, ..., 99 | |\r\n * | | SSS | 000, 001, ..., 999 | |\r\n * | | SSSS | ... | 3 |\r\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\r\n * | | XX | -0800, +0530, Z | |\r\n * | | XXX | -08:00, +05:30, Z | |\r\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\r\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\r\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\r\n * | | xx | -0800, +0530, +0000 | |\r\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\r\n * | | xxxx | -0800, +0530, +0000, +123456 | |\r\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\r\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\r\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\r\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\r\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\r\n * | Seconds timestamp | t | 512969520 | 7 |\r\n * | | tt | ... | 3,7 |\r\n * | Milliseconds timestamp | T | 512969520900 | 7 |\r\n * | | TT | ... | 3,7 |\r\n * | Long localized date | P | 04/29/1453 | 7 |\r\n * | | PP | Apr 29, 1453 | 7 |\r\n * | | PPP | April 29th, 1453 | 7 |\r\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\r\n * | Long localized time | p | 12:00 AM | 7 |\r\n * | | pp | 12:00:00 AM | 7 |\r\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\r\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\r\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\r\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\r\n * | | PPPppp | April 29th, 1453 at ... | 7 |\r\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\r\n * Notes:\r\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\r\n * are the same as \"stand-alone\" units, but are different in some languages.\r\n * \"Formatting\" units are declined according to the rules of the language\r\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\r\n *\r\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\r\n *\r\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\r\n *\r\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\r\n * the single quote characters (see below).\r\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\r\n * the output will be the same as default pattern for this unit, usually\r\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\r\n * are marked with \"2\" in the last column of the table.\r\n *\r\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\r\n *\r\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\r\n *\r\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\r\n *\r\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\r\n *\r\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\r\n *\r\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\r\n * The output will be padded with zeros to match the length of the pattern.\r\n *\r\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\r\n *\r\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\r\n * These tokens represent the shortest form of the quarter.\r\n *\r\n * 5. The main difference between `y` and `u` patterns are B.C. years:\r\n *\r\n * | Year | `y` | `u` |\r\n * |------|-----|-----|\r\n * | AC 1 | 1 | 1 |\r\n * | BC 1 | 1 | 0 |\r\n * | BC 2 | 2 | -1 |\r\n *\r\n * Also `yy` always returns the last two digits of a year,\r\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\r\n *\r\n * | Year | `yy` | `uu` |\r\n * |------|------|------|\r\n * | 1 | 01 | 01 |\r\n * | 14 | 14 | 14 |\r\n * | 376 | 76 | 376 |\r\n * | 1453 | 53 | 1453 |\r\n *\r\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\r\n * except local week-numbering years are dependent on `options.weekStartsOn`\r\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}\r\n * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).\r\n *\r\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\r\n * so right now these tokens fall back to GMT timezones.\r\n *\r\n * 7. These patterns are not in the Unicode Technical Standard #35:\r\n * - `i`: ISO day of week\r\n * - `I`: ISO week of year\r\n * - `R`: ISO week-numbering year\r\n * - `t`: seconds timestamp\r\n * - `T`: milliseconds timestamp\r\n * - `o`: ordinal number modifier\r\n * - `P`: long localized date\r\n * - `p`: long localized time\r\n *\r\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\r\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n *\r\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\r\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n *\r\n * @param {Date|Number} date - the original date\r\n * @param {String} format - the string of tokens\r\n * @param {Object} [options] - an object with options.\r\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\r\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\r\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\r\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\r\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\r\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @returns {String} the formatted date string\r\n * @throws {TypeError} 2 arguments required\r\n * @throws {RangeError} `date` must not be Invalid Date\r\n * @throws {RangeError} `options.locale` must contain `localize` property\r\n * @throws {RangeError} `options.locale` must contain `formatLong` property\r\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\r\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\r\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @throws {RangeError} format string contains an unescaped latin alphabet character\r\n *\r\n * @example\r\n * // Represent 11 February 2014 in middle-endian format:\r\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\r\n * //=> '02/11/2014'\r\n *\r\n * @example\r\n * // Represent 2 July 2014 in Esperanto:\r\n * import { eoLocale } from 'date-fns/locale/eo'\r\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\r\n * locale: eoLocale\r\n * })\r\n * //=> '2-a de julio 2014'\r\n *\r\n * @example\r\n * // Escape string by single quote characters:\r\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\r\n * //=> \"3 o'clock\"\r\n */\r\n\r\nexport default function format(dirtyDate, dirtyFormatStr, options) {\r\n var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;\r\n\r\n requiredArgs(2, arguments);\r\n var formatStr = String(dirtyFormatStr);\r\n var defaultOptions = getDefaultOptions();\r\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\r\n var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\r\n\r\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\r\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\r\n }\r\n\r\n var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\r\n\r\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\r\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\r\n }\r\n\r\n if (!locale.localize) {\r\n throw new RangeError('locale must contain localize property');\r\n }\r\n\r\n if (!locale.formatLong) {\r\n throw new RangeError('locale must contain formatLong property');\r\n }\r\n\r\n var originalDate = toDate(dirtyDate);\r\n\r\n if (!isValid(originalDate)) {\r\n throw new RangeError('Invalid time value');\r\n } // Convert the date in system timezone to the same date in UTC+00:00 timezone.\r\n // This ensures that when UTC functions will be implemented, locales will be compatible with them.\r\n // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376\r\n\r\n\r\n var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);\r\n var utcDate = subMilliseconds(originalDate, timezoneOffset);\r\n var formatterOptions = {\r\n firstWeekContainsDate: firstWeekContainsDate,\r\n weekStartsOn: weekStartsOn,\r\n locale: locale,\r\n _originalDate: originalDate\r\n };\r\n var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {\r\n var firstCharacter = substring[0];\r\n\r\n if (firstCharacter === 'p' || firstCharacter === 'P') {\r\n var longFormatter = longFormatters[firstCharacter];\r\n return longFormatter(substring, locale.formatLong);\r\n }\r\n\r\n return substring;\r\n }).join('').match(formattingTokensRegExp).map(function (substring) {\r\n // Replace two single quote characters with one single quote character\r\n if (substring === \"''\") {\r\n return \"'\";\r\n }\r\n\r\n var firstCharacter = substring[0];\r\n\r\n if (firstCharacter === \"'\") {\r\n return cleanEscapedString(substring);\r\n }\r\n\r\n var formatter = formatters[firstCharacter];\r\n\r\n if (formatter) {\r\n if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {\r\n throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));\r\n }\r\n\r\n if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {\r\n throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));\r\n }\r\n\r\n return formatter(utcDate, substring, locale.localize, formatterOptions);\r\n }\r\n\r\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\r\n throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\r\n }\r\n\r\n return substring;\r\n }).join('');\r\n return result;\r\n}\r\n\r\nfunction cleanEscapedString(input) {\r\n var matched = input.match(escapedStringRegExp);\r\n\r\n if (!matched) {\r\n return input;\r\n }\r\n\r\n return matched[1].replace(doubleQuoteRegExp, \"'\");\r\n}","export default function assign(target, object) {\r\n if (target == null) {\r\n throw new TypeError('assign requires that input parameter not be null or undefined');\r\n }\r\n\r\n for (var property in object) {\r\n if (Object.prototype.hasOwnProperty.call(object, property)) {\r\n ;\r\n target[property] = object[property];\r\n }\r\n }\r\n\r\n return target;\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nvar TIMEZONE_UNIT_PRIORITY = 10;\r\nexport class Setter {\r\n constructor() {\r\n _defineProperty(this, \"priority\", void 0);\r\n\r\n _defineProperty(this, \"subPriority\", 0);\r\n }\r\n\r\n validate(_utcDate, _options) {\r\n return true;\r\n }\r\n\r\n}\r\nexport class ValueSetter extends Setter {\r\n constructor(value, validateValue, setValue, priority, subPriority) {\r\n super();\r\n this.value = value;\r\n this.validateValue = validateValue;\r\n this.setValue = setValue;\r\n this.priority = priority;\r\n\r\n if (subPriority) {\r\n this.subPriority = subPriority;\r\n }\r\n }\r\n\r\n validate(utcDate, options) {\r\n return this.validateValue(utcDate, this.value, options);\r\n }\r\n\r\n set(utcDate, flags, options) {\r\n return this.setValue(utcDate, flags, this.value, options);\r\n }\r\n\r\n}\r\nexport class DateToSystemTimezoneSetter extends Setter {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", TIMEZONE_UNIT_PRIORITY);\r\n\r\n _defineProperty(this, \"subPriority\", -1);\r\n }\r\n\r\n set(date, flags) {\r\n if (flags.timestampIsSet) {\r\n return date;\r\n }\r\n\r\n var convertedDate = new Date(0);\r\n convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());\r\n convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());\r\n return convertedDate;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { ValueSetter } from \"./Setter.js\";\r\nexport class Parser {\r\n constructor() {\r\n _defineProperty(this, \"incompatibleTokens\", void 0);\r\n\r\n _defineProperty(this, \"priority\", void 0);\r\n\r\n _defineProperty(this, \"subPriority\", void 0);\r\n }\r\n\r\n run(dateString, token, match, options) {\r\n var result = this.parse(dateString, token, match, options);\r\n\r\n if (!result) {\r\n return null;\r\n }\r\n\r\n return {\r\n setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority),\r\n rest: result.rest\r\n };\r\n }\r\n\r\n validate(_utcDate, _value, _options) {\r\n return true;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nexport class EraParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 140);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['R', 'u', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n // AD, BC\r\n case 'G':\r\n case 'GG':\r\n case 'GGG':\r\n return match.era(dateString, {\r\n width: 'abbreviated'\r\n }) || match.era(dateString, {\r\n width: 'narrow'\r\n });\r\n // A, B\r\n\r\n case 'GGGGG':\r\n return match.era(dateString, {\r\n width: 'narrow'\r\n });\r\n // Anno Domini, Before Christ\r\n\r\n case 'GGGG':\r\n default:\r\n return match.era(dateString, {\r\n width: 'wide'\r\n }) || match.era(dateString, {\r\n width: 'abbreviated'\r\n }) || match.era(dateString, {\r\n width: 'narrow'\r\n });\r\n }\r\n }\r\n\r\n set(date, flags, value) {\r\n flags.era = value;\r\n date.setUTCFullYear(value, 0, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","/**\r\n * Days in 1 week.\r\n *\r\n * @name daysInWeek\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\nexport var daysInWeek = 7;\r\n/**\r\n * Days in 1 year\r\n * One years equals 365.2425 days according to the formula:\r\n *\r\n * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.\r\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\r\n *\r\n * @name daysInYear\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var daysInYear = 365.2425;\r\n/**\r\n * Maximum allowed time.\r\n *\r\n * @name maxTime\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\r\n/**\r\n * Milliseconds in 1 minute\r\n *\r\n * @name millisecondsInMinute\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var millisecondsInMinute = 60000;\r\n/**\r\n * Milliseconds in 1 hour\r\n *\r\n * @name millisecondsInHour\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var millisecondsInHour = 3600000;\r\n/**\r\n * Milliseconds in 1 second\r\n *\r\n * @name millisecondsInSecond\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var millisecondsInSecond = 1000;\r\n/**\r\n * Minimum allowed time.\r\n *\r\n * @name minTime\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var minTime = -maxTime;\r\n/**\r\n * Minutes in 1 hour\r\n *\r\n * @name minutesInHour\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var minutesInHour = 60;\r\n/**\r\n * Months in 1 quarter\r\n *\r\n * @name monthsInQuarter\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var monthsInQuarter = 3;\r\n/**\r\n * Months in 1 year\r\n *\r\n * @name monthsInYear\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var monthsInYear = 12;\r\n/**\r\n * Quarters in 1 year\r\n *\r\n * @name quartersInYear\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var quartersInYear = 4;\r\n/**\r\n * Seconds in 1 hour\r\n *\r\n * @name secondsInHour\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var secondsInHour = 3600;\r\n/**\r\n * Seconds in 1 minute\r\n *\r\n * @name secondsInMinute\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var secondsInMinute = 60;\r\n/**\r\n * Seconds in 1 day\r\n *\r\n * @name secondsInDay\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var secondsInDay = secondsInHour * 24;\r\n/**\r\n * Seconds in 1 week\r\n *\r\n * @name secondsInWeek\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var secondsInWeek = secondsInDay * 7;\r\n/**\r\n * Seconds in 1 year\r\n *\r\n * @name secondsInYear\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var secondsInYear = secondsInDay * daysInYear;\r\n/**\r\n * Seconds in 1 month\r\n *\r\n * @name secondsInMonth\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var secondsInMonth = secondsInYear / 12;\r\n/**\r\n * Seconds in 1 quarter\r\n *\r\n * @name secondsInQuarter\r\n * @constant\r\n * @type {number}\r\n * @default\r\n */\r\n\r\nexport var secondsInQuarter = secondsInMonth * 3;","export var numericPatterns = {\r\n month: /^(1[0-2]|0?\\d)/,\r\n // 0 to 12\r\n date: /^(3[0-1]|[0-2]?\\d)/,\r\n // 0 to 31\r\n dayOfYear: /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/,\r\n // 0 to 366\r\n week: /^(5[0-3]|[0-4]?\\d)/,\r\n // 0 to 53\r\n hour23h: /^(2[0-3]|[0-1]?\\d)/,\r\n // 0 to 23\r\n hour24h: /^(2[0-4]|[0-1]?\\d)/,\r\n // 0 to 24\r\n hour11h: /^(1[0-1]|0?\\d)/,\r\n // 0 to 11\r\n hour12h: /^(1[0-2]|0?\\d)/,\r\n // 0 to 12\r\n minute: /^[0-5]?\\d/,\r\n // 0 to 59\r\n second: /^[0-5]?\\d/,\r\n // 0 to 59\r\n singleDigit: /^\\d/,\r\n // 0 to 9\r\n twoDigits: /^\\d{1,2}/,\r\n // 0 to 99\r\n threeDigits: /^\\d{1,3}/,\r\n // 0 to 999\r\n fourDigits: /^\\d{1,4}/,\r\n // 0 to 9999\r\n anyDigitsSigned: /^-?\\d+/,\r\n singleDigitSigned: /^-?\\d/,\r\n // 0 to 9, -0 to -9\r\n twoDigitsSigned: /^-?\\d{1,2}/,\r\n // 0 to 99, -0 to -99\r\n threeDigitsSigned: /^-?\\d{1,3}/,\r\n // 0 to 999, -0 to -999\r\n fourDigitsSigned: /^-?\\d{1,4}/ // 0 to 9999, -0 to -9999\r\n\r\n};\r\nexport var timezonePatterns = {\r\n basicOptionalMinutes: /^([+-])(\\d{2})(\\d{2})?|Z/,\r\n basic: /^([+-])(\\d{2})(\\d{2})|Z/,\r\n basicOptionalSeconds: /^([+-])(\\d{2})(\\d{2})((\\d{2}))?|Z/,\r\n extended: /^([+-])(\\d{2}):(\\d{2})|Z/,\r\n extendedOptionalSeconds: /^([+-])(\\d{2}):(\\d{2})(:(\\d{2}))?|Z/\r\n};","import { millisecondsInHour, millisecondsInMinute, millisecondsInSecond } from \"../../constants/index.js\";\r\nimport { numericPatterns } from \"./constants.js\";\r\nexport function mapValue(parseFnResult, mapFn) {\r\n if (!parseFnResult) {\r\n return parseFnResult;\r\n }\r\n\r\n return {\r\n value: mapFn(parseFnResult.value),\r\n rest: parseFnResult.rest\r\n };\r\n}\r\nexport function parseNumericPattern(pattern, dateString) {\r\n var matchResult = dateString.match(pattern);\r\n\r\n if (!matchResult) {\r\n return null;\r\n }\r\n\r\n return {\r\n value: parseInt(matchResult[0], 10),\r\n rest: dateString.slice(matchResult[0].length)\r\n };\r\n}\r\nexport function parseTimezonePattern(pattern, dateString) {\r\n var matchResult = dateString.match(pattern);\r\n\r\n if (!matchResult) {\r\n return null;\r\n } // Input is 'Z'\r\n\r\n\r\n if (matchResult[0] === 'Z') {\r\n return {\r\n value: 0,\r\n rest: dateString.slice(1)\r\n };\r\n }\r\n\r\n var sign = matchResult[1] === '+' ? 1 : -1;\r\n var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;\r\n var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;\r\n var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;\r\n return {\r\n value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond),\r\n rest: dateString.slice(matchResult[0].length)\r\n };\r\n}\r\nexport function parseAnyDigitsSigned(dateString) {\r\n return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);\r\n}\r\nexport function parseNDigits(n, dateString) {\r\n switch (n) {\r\n case 1:\r\n return parseNumericPattern(numericPatterns.singleDigit, dateString);\r\n\r\n case 2:\r\n return parseNumericPattern(numericPatterns.twoDigits, dateString);\r\n\r\n case 3:\r\n return parseNumericPattern(numericPatterns.threeDigits, dateString);\r\n\r\n case 4:\r\n return parseNumericPattern(numericPatterns.fourDigits, dateString);\r\n\r\n default:\r\n return parseNumericPattern(new RegExp('^\\\\d{1,' + n + '}'), dateString);\r\n }\r\n}\r\nexport function parseNDigitsSigned(n, dateString) {\r\n switch (n) {\r\n case 1:\r\n return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);\r\n\r\n case 2:\r\n return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);\r\n\r\n case 3:\r\n return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);\r\n\r\n case 4:\r\n return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);\r\n\r\n default:\r\n return parseNumericPattern(new RegExp('^-?\\\\d{1,' + n + '}'), dateString);\r\n }\r\n}\r\nexport function dayPeriodEnumToHours(dayPeriod) {\r\n switch (dayPeriod) {\r\n case 'morning':\r\n return 4;\r\n\r\n case 'evening':\r\n return 17;\r\n\r\n case 'pm':\r\n case 'noon':\r\n case 'afternoon':\r\n return 12;\r\n\r\n case 'am':\r\n case 'midnight':\r\n case 'night':\r\n default:\r\n return 0;\r\n }\r\n}\r\nexport function normalizeTwoDigitYear(twoDigitYear, currentYear) {\r\n var isCommonEra = currentYear > 0; // Absolute number of the current year:\r\n // 1 -> 1 AC\r\n // 0 -> 1 BC\r\n // -1 -> 2 BC\r\n\r\n var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;\r\n var result;\r\n\r\n if (absCurrentYear <= 50) {\r\n result = twoDigitYear || 100;\r\n } else {\r\n var rangeEnd = absCurrentYear + 50;\r\n var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;\r\n var isPreviousCentury = twoDigitYear >= rangeEnd % 100;\r\n result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);\r\n }\r\n\r\n return isCommonEra ? result : 1 - result;\r\n}\r\nexport function isLeapYearIndex(year) {\r\n return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { mapValue, normalizeTwoDigitYear, parseNDigits } from \"../utils.js\";\r\n// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns\r\n// | Year | y | yy | yyy | yyyy | yyyyy |\r\n// |----------|-------|----|-------|-------|-------|\r\n// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\r\n// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\r\n// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\r\n// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\r\n// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\r\nexport class YearParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 130);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n var valueCallback = function (year) {\r\n return {\r\n year: year,\r\n isTwoDigitYear: token === 'yy'\r\n };\r\n };\r\n\r\n switch (token) {\r\n case 'y':\r\n return mapValue(parseNDigits(4, dateString), valueCallback);\r\n\r\n case 'yo':\r\n return mapValue(match.ordinalNumber(dateString, {\r\n unit: 'year'\r\n }), valueCallback);\r\n\r\n default:\r\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value.isTwoDigitYear || value.year > 0;\r\n }\r\n\r\n set(date, flags, value) {\r\n var currentYear = date.getUTCFullYear();\r\n\r\n if (value.isTwoDigitYear) {\r\n var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);\r\n date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;\r\n date.setUTCFullYear(year, 0, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { parseNDigits, normalizeTwoDigitYear, mapValue } from \"../utils.js\";\r\nimport getUTCWeekYear from \"../../../_lib/getUTCWeekYear/index.js\";\r\nimport startOfUTCWeek from \"../../../_lib/startOfUTCWeek/index.js\";\r\n// Local week-numbering year\r\nexport class LocalWeekYearParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 130);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n var valueCallback = function (year) {\r\n return {\r\n year: year,\r\n isTwoDigitYear: token === 'YY'\r\n };\r\n };\r\n\r\n switch (token) {\r\n case 'Y':\r\n return mapValue(parseNDigits(4, dateString), valueCallback);\r\n\r\n case 'Yo':\r\n return mapValue(match.ordinalNumber(dateString, {\r\n unit: 'year'\r\n }), valueCallback);\r\n\r\n default:\r\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value.isTwoDigitYear || value.year > 0;\r\n }\r\n\r\n set(date, flags, value, options) {\r\n var currentYear = getUTCWeekYear(date, options);\r\n\r\n if (value.isTwoDigitYear) {\r\n var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);\r\n date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return startOfUTCWeek(date, options);\r\n }\r\n\r\n var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;\r\n date.setUTCFullYear(year, 0, options.firstWeekContainsDate);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return startOfUTCWeek(date, options);\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { parseNDigitsSigned } from \"../utils.js\";\r\nimport startOfUTCISOWeek from \"../../../_lib/startOfUTCISOWeek/index.js\"; // ISO week-numbering year\r\n\r\nexport class ISOWeekYearParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 130);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token) {\r\n if (token === 'R') {\r\n return parseNDigitsSigned(4, dateString);\r\n }\r\n\r\n return parseNDigitsSigned(token.length, dateString);\r\n }\r\n\r\n set(_date, _flags, value) {\r\n var firstWeekOfYear = new Date(0);\r\n firstWeekOfYear.setUTCFullYear(value, 0, 4);\r\n firstWeekOfYear.setUTCHours(0, 0, 0, 0);\r\n return startOfUTCISOWeek(firstWeekOfYear);\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { parseNDigitsSigned } from \"../utils.js\";\r\nexport class ExtendedYearParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 130);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token) {\r\n if (token === 'u') {\r\n return parseNDigitsSigned(4, dateString);\r\n }\r\n\r\n return parseNDigitsSigned(token.length, dateString);\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCFullYear(value, 0, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { parseNDigits } from \"../utils.js\";\r\nexport class QuarterParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 120);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n // 1, 2, 3, 4\r\n case 'Q':\r\n case 'QQ':\r\n // 01, 02, 03, 04\r\n return parseNDigits(token.length, dateString);\r\n // 1st, 2nd, 3rd, 4th\r\n\r\n case 'Qo':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'quarter'\r\n });\r\n // Q1, Q2, Q3, Q4\r\n\r\n case 'QQQ':\r\n return match.quarter(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.quarter(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\r\n\r\n case 'QQQQQ':\r\n return match.quarter(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // 1st quarter, 2nd quarter, ...\r\n\r\n case 'QQQQ':\r\n default:\r\n return match.quarter(dateString, {\r\n width: 'wide',\r\n context: 'formatting'\r\n }) || match.quarter(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.quarter(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 1 && value <= 4;\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCMonth((value - 1) * 3, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { parseNDigits } from \"../utils.js\";\r\nexport class StandAloneQuarterParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 120);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n // 1, 2, 3, 4\r\n case 'q':\r\n case 'qq':\r\n // 01, 02, 03, 04\r\n return parseNDigits(token.length, dateString);\r\n // 1st, 2nd, 3rd, 4th\r\n\r\n case 'qo':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'quarter'\r\n });\r\n // Q1, Q2, Q3, Q4\r\n\r\n case 'qqq':\r\n return match.quarter(dateString, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n }) || match.quarter(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\r\n\r\n case 'qqqqq':\r\n return match.quarter(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // 1st quarter, 2nd quarter, ...\r\n\r\n case 'qqqq':\r\n default:\r\n return match.quarter(dateString, {\r\n width: 'wide',\r\n context: 'standalone'\r\n }) || match.quarter(dateString, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n }) || match.quarter(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 1 && value <= 4;\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCMonth((value - 1) * 3, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { mapValue, parseNDigits, parseNumericPattern } from \"../utils.js\";\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nexport class MonthParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);\r\n\r\n _defineProperty(this, \"priority\", 110);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n var valueCallback = function (value) {\r\n return value - 1;\r\n };\r\n\r\n switch (token) {\r\n // 1, 2, ..., 12\r\n case 'M':\r\n return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);\r\n // 01, 02, ..., 12\r\n\r\n case 'MM':\r\n return mapValue(parseNDigits(2, dateString), valueCallback);\r\n // 1st, 2nd, ..., 12th\r\n\r\n case 'Mo':\r\n return mapValue(match.ordinalNumber(dateString, {\r\n unit: 'month'\r\n }), valueCallback);\r\n // Jan, Feb, ..., Dec\r\n\r\n case 'MMM':\r\n return match.month(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.month(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // J, F, ..., D\r\n\r\n case 'MMMMM':\r\n return match.month(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // January, February, ..., December\r\n\r\n case 'MMMM':\r\n default:\r\n return match.month(dateString, {\r\n width: 'wide',\r\n context: 'formatting'\r\n }) || match.month(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.month(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 11;\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCMonth(value, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits, mapValue } from \"../utils.js\";\r\nexport class StandAloneMonthParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 110);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n var valueCallback = function (value) {\r\n return value - 1;\r\n };\r\n\r\n switch (token) {\r\n // 1, 2, ..., 12\r\n case 'L':\r\n return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);\r\n // 01, 02, ..., 12\r\n\r\n case 'LL':\r\n return mapValue(parseNDigits(2, dateString), valueCallback);\r\n // 1st, 2nd, ..., 12th\r\n\r\n case 'Lo':\r\n return mapValue(match.ordinalNumber(dateString, {\r\n unit: 'month'\r\n }), valueCallback);\r\n // Jan, Feb, ..., Dec\r\n\r\n case 'LLL':\r\n return match.month(dateString, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n }) || match.month(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // J, F, ..., D\r\n\r\n case 'LLLLL':\r\n return match.month(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // January, February, ..., December\r\n\r\n case 'LLLL':\r\n default:\r\n return match.month(dateString, {\r\n width: 'wide',\r\n context: 'standalone'\r\n }) || match.month(dateString, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n }) || match.month(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 11;\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCMonth(value, 1);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","import toInteger from \"../toInteger/index.js\";\r\nimport toDate from \"../../toDate/index.js\";\r\nimport getUTCWeek from \"../getUTCWeek/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nexport default function setUTCWeek(dirtyDate, dirtyWeek, options) {\r\n requiredArgs(2, arguments);\r\n var date = toDate(dirtyDate);\r\n var week = toInteger(dirtyWeek);\r\n var diff = getUTCWeek(date, options) - week;\r\n date.setUTCDate(date.getUTCDate() - diff * 7);\r\n return date;\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\r\nimport setUTCWeek from \"../../../_lib/setUTCWeek/index.js\";\r\nimport startOfUTCWeek from \"../../../_lib/startOfUTCWeek/index.js\"; // Local week of year\r\n\r\nexport class LocalWeekParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 100);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'w':\r\n return parseNumericPattern(numericPatterns.week, dateString);\r\n\r\n case 'wo':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'week'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 1 && value <= 53;\r\n }\r\n\r\n set(date, _flags, value, options) {\r\n return startOfUTCWeek(setUTCWeek(date, value, options), options);\r\n }\r\n\r\n}","import toInteger from \"../toInteger/index.js\";\r\nimport toDate from \"../../toDate/index.js\";\r\nimport getUTCISOWeek from \"../getUTCISOWeek/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nexport default function setUTCISOWeek(dirtyDate, dirtyISOWeek) {\r\n requiredArgs(2, arguments);\r\n var date = toDate(dirtyDate);\r\n var isoWeek = toInteger(dirtyISOWeek);\r\n var diff = getUTCISOWeek(date) - isoWeek;\r\n date.setUTCDate(date.getUTCDate() - diff * 7);\r\n return date;\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\r\nimport setUTCISOWeek from \"../../../_lib/setUTCISOWeek/index.js\";\r\nimport startOfUTCISOWeek from \"../../../_lib/startOfUTCISOWeek/index.js\"; // ISO week of year\r\n\r\nexport class ISOWeekParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 100);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'I':\r\n return parseNumericPattern(numericPatterns.week, dateString);\r\n\r\n case 'Io':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'week'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 1 && value <= 53;\r\n }\r\n\r\n set(date, _flags, value) {\r\n return startOfUTCISOWeek(setUTCISOWeek(date, value));\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { isLeapYearIndex, parseNDigits, parseNumericPattern } from \"../utils.js\";\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nvar DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\r\nvar DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month\r\n\r\nexport class DateParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 90);\r\n\r\n _defineProperty(this, \"subPriority\", 1);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'd':\r\n return parseNumericPattern(numericPatterns.date, dateString);\r\n\r\n case 'do':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'date'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(date, value) {\r\n var year = date.getUTCFullYear();\r\n var isLeapYear = isLeapYearIndex(year);\r\n var month = date.getUTCMonth();\r\n\r\n if (isLeapYear) {\r\n return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];\r\n } else {\r\n return value >= 1 && value <= DAYS_IN_MONTH[month];\r\n }\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCDate(value);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits, isLeapYearIndex } from \"../utils.js\";\r\nexport class DayOfYearParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 90);\r\n\r\n _defineProperty(this, \"subpriority\", 1);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'D':\r\n case 'DD':\r\n return parseNumericPattern(numericPatterns.dayOfYear, dateString);\r\n\r\n case 'Do':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'date'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(date, value) {\r\n var year = date.getUTCFullYear();\r\n var isLeapYear = isLeapYearIndex(year);\r\n\r\n if (isLeapYear) {\r\n return value >= 1 && value <= 366;\r\n } else {\r\n return value >= 1 && value <= 365;\r\n }\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCMonth(0, value);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nimport toInteger from \"../toInteger/index.js\";\r\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\r\nexport default function setUTCDay(dirtyDate, dirtyDay, options) {\r\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\r\n\r\n requiredArgs(2, arguments);\r\n var defaultOptions = getDefaultOptions();\r\n var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\r\n\r\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\r\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\r\n }\r\n\r\n var date = toDate(dirtyDate);\r\n var day = toInteger(dirtyDay);\r\n var currentDay = date.getUTCDay();\r\n var remainder = day % 7;\r\n var dayIndex = (remainder + 7) % 7;\r\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\r\n date.setUTCDate(date.getUTCDate() + diff);\r\n return date;\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport setUTCDay from \"../../../_lib/setUTCDay/index.js\"; // Day of week\r\n\r\nexport class DayParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 90);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['D', 'i', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n // Tue\r\n case 'E':\r\n case 'EE':\r\n case 'EEE':\r\n return match.day(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // T\r\n\r\n case 'EEEEE':\r\n return match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // Tu\r\n\r\n case 'EEEEEE':\r\n return match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // Tuesday\r\n\r\n case 'EEEE':\r\n default:\r\n return match.day(dateString, {\r\n width: 'wide',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 6;\r\n }\r\n\r\n set(date, _flags, value, options) {\r\n date = setUTCDay(date, value, options);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { mapValue, parseNDigits } from \"../utils.js\";\r\nimport setUTCDay from \"../../../_lib/setUTCDay/index.js\"; // Local day of week\r\n\r\nexport class LocalDayParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 90);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match, options) {\r\n var valueCallback = function (value) {\r\n var wholeWeekDays = Math.floor((value - 1) / 7) * 7;\r\n return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;\r\n };\r\n\r\n switch (token) {\r\n // 3\r\n case 'e':\r\n case 'ee':\r\n // 03\r\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\r\n // 3rd\r\n\r\n case 'eo':\r\n return mapValue(match.ordinalNumber(dateString, {\r\n unit: 'day'\r\n }), valueCallback);\r\n // Tue\r\n\r\n case 'eee':\r\n return match.day(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // T\r\n\r\n case 'eeeee':\r\n return match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // Tu\r\n\r\n case 'eeeeee':\r\n return match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n // Tuesday\r\n\r\n case 'eeee':\r\n default:\r\n return match.day(dateString, {\r\n width: 'wide',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 6;\r\n }\r\n\r\n set(date, _flags, value, options) {\r\n date = setUTCDay(date, value, options);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { mapValue, parseNDigits } from \"../utils.js\";\r\nimport setUTCDay from \"../../../_lib/setUTCDay/index.js\"; // Stand-alone local day of week\r\n\r\nexport class StandAloneLocalDayParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 90);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match, options) {\r\n var valueCallback = function (value) {\r\n var wholeWeekDays = Math.floor((value - 1) / 7) * 7;\r\n return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;\r\n };\r\n\r\n switch (token) {\r\n // 3\r\n case 'c':\r\n case 'cc':\r\n // 03\r\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\r\n // 3rd\r\n\r\n case 'co':\r\n return mapValue(match.ordinalNumber(dateString, {\r\n unit: 'day'\r\n }), valueCallback);\r\n // Tue\r\n\r\n case 'ccc':\r\n return match.day(dateString, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n }) || match.day(dateString, {\r\n width: 'short',\r\n context: 'standalone'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // T\r\n\r\n case 'ccccc':\r\n return match.day(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // Tu\r\n\r\n case 'cccccc':\r\n return match.day(dateString, {\r\n width: 'short',\r\n context: 'standalone'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n // Tuesday\r\n\r\n case 'cccc':\r\n default:\r\n return match.day(dateString, {\r\n width: 'wide',\r\n context: 'standalone'\r\n }) || match.day(dateString, {\r\n width: 'abbreviated',\r\n context: 'standalone'\r\n }) || match.day(dateString, {\r\n width: 'short',\r\n context: 'standalone'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'standalone'\r\n });\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 6;\r\n }\r\n\r\n set(date, _flags, value, options) {\r\n date = setUTCDay(date, value, options);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","import toDate from \"../../toDate/index.js\";\r\nimport requiredArgs from \"../requiredArgs/index.js\";\r\nimport toInteger from \"../toInteger/index.js\";\r\nexport default function setUTCISODay(dirtyDate, dirtyDay) {\r\n requiredArgs(2, arguments);\r\n var day = toInteger(dirtyDay);\r\n\r\n if (day % 7 === 0) {\r\n day = day - 7;\r\n }\r\n\r\n var weekStartsOn = 1;\r\n var date = toDate(dirtyDate);\r\n var currentDay = date.getUTCDay();\r\n var remainder = day % 7;\r\n var dayIndex = (remainder + 7) % 7;\r\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\r\n date.setUTCDate(date.getUTCDate() + diff);\r\n return date;\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { mapValue, parseNDigits } from \"../utils.js\";\r\nimport setUTCISODay from \"../../../_lib/setUTCISODay/index.js\"; // ISO day of week\r\n\r\nexport class ISODayParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 90);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n var valueCallback = function (value) {\r\n if (value === 0) {\r\n return 7;\r\n }\r\n\r\n return value;\r\n };\r\n\r\n switch (token) {\r\n // 2\r\n case 'i':\r\n case 'ii':\r\n // 02\r\n return parseNDigits(token.length, dateString);\r\n // 2nd\r\n\r\n case 'io':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'day'\r\n });\r\n // Tue\r\n\r\n case 'iii':\r\n return mapValue(match.day(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n }), valueCallback);\r\n // T\r\n\r\n case 'iiiii':\r\n return mapValue(match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n }), valueCallback);\r\n // Tu\r\n\r\n case 'iiiiii':\r\n return mapValue(match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n }), valueCallback);\r\n // Tuesday\r\n\r\n case 'iiii':\r\n default:\r\n return mapValue(match.day(dateString, {\r\n width: 'wide',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'short',\r\n context: 'formatting'\r\n }) || match.day(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n }), valueCallback);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 1 && value <= 7;\r\n }\r\n\r\n set(date, _flags, value) {\r\n date = setUTCISODay(date, value);\r\n date.setUTCHours(0, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { dayPeriodEnumToHours } from \"../utils.js\";\r\nexport class AMPMParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 80);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['b', 'B', 'H', 'k', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'a':\r\n case 'aa':\r\n case 'aaa':\r\n return match.dayPeriod(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'aaaaa':\r\n return match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'aaaa':\r\n default:\r\n return match.dayPeriod(dateString, {\r\n width: 'wide',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n }\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { dayPeriodEnumToHours } from \"../utils.js\";\r\nexport class AMPMMidnightParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 80);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['a', 'B', 'H', 'k', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'b':\r\n case 'bb':\r\n case 'bbb':\r\n return match.dayPeriod(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'bbbbb':\r\n return match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'bbbb':\r\n default:\r\n return match.dayPeriod(dateString, {\r\n width: 'wide',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n }\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { dayPeriodEnumToHours } from \"../utils.js\"; // in the morning, in the afternoon, in the evening, at night\r\n\r\nexport class DayPeriodParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 80);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['a', 'b', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'B':\r\n case 'BB':\r\n case 'BBB':\r\n return match.dayPeriod(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'BBBBB':\r\n return match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n\r\n case 'BBBB':\r\n default:\r\n return match.dayPeriod(dateString, {\r\n width: 'wide',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'abbreviated',\r\n context: 'formatting'\r\n }) || match.dayPeriod(dateString, {\r\n width: 'narrow',\r\n context: 'formatting'\r\n });\r\n }\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\r\nexport class Hour1to12Parser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 70);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['H', 'K', 'k', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'h':\r\n return parseNumericPattern(numericPatterns.hour12h, dateString);\r\n\r\n case 'ho':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'hour'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 1 && value <= 12;\r\n }\r\n\r\n set(date, _flags, value) {\r\n var isPM = date.getUTCHours() >= 12;\r\n\r\n if (isPM && value < 12) {\r\n date.setUTCHours(value + 12, 0, 0, 0);\r\n } else if (!isPM && value === 12) {\r\n date.setUTCHours(0, 0, 0, 0);\r\n } else {\r\n date.setUTCHours(value, 0, 0, 0);\r\n }\r\n\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\r\nexport class Hour0to23Parser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 70);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['a', 'b', 'h', 'K', 'k', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'H':\r\n return parseNumericPattern(numericPatterns.hour23h, dateString);\r\n\r\n case 'Ho':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'hour'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 23;\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCHours(value, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\r\nexport class Hour0To11Parser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 70);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['h', 'H', 'k', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'K':\r\n return parseNumericPattern(numericPatterns.hour11h, dateString);\r\n\r\n case 'Ko':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'hour'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 11;\r\n }\r\n\r\n set(date, _flags, value) {\r\n var isPM = date.getUTCHours() >= 12;\r\n\r\n if (isPM && value < 12) {\r\n date.setUTCHours(value + 12, 0, 0, 0);\r\n } else {\r\n date.setUTCHours(value, 0, 0, 0);\r\n }\r\n\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\r\nexport class Hour1To24Parser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 70);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['a', 'b', 'h', 'H', 'K', 't', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'k':\r\n return parseNumericPattern(numericPatterns.hour24h, dateString);\r\n\r\n case 'ko':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'hour'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 1 && value <= 24;\r\n }\r\n\r\n set(date, _flags, value) {\r\n var hours = value <= 24 ? value % 24 : value;\r\n date.setUTCHours(hours, 0, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\r\nexport class MinuteParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 60);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['t', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 'm':\r\n return parseNumericPattern(numericPatterns.minute, dateString);\r\n\r\n case 'mo':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'minute'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 59;\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCMinutes(value, 0, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { numericPatterns } from \"../constants.js\";\r\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\r\nexport class SecondParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 50);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['t', 'T']);\r\n }\r\n\r\n parse(dateString, token, match) {\r\n switch (token) {\r\n case 's':\r\n return parseNumericPattern(numericPatterns.second, dateString);\r\n\r\n case 'so':\r\n return match.ordinalNumber(dateString, {\r\n unit: 'second'\r\n });\r\n\r\n default:\r\n return parseNDigits(token.length, dateString);\r\n }\r\n }\r\n\r\n validate(_date, value) {\r\n return value >= 0 && value <= 59;\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCSeconds(value, 0);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { mapValue, parseNDigits } from \"../utils.js\";\r\nexport class FractionOfSecondParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 30);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['t', 'T']);\r\n }\r\n\r\n parse(dateString, token) {\r\n var valueCallback = function (value) {\r\n return Math.floor(value * Math.pow(10, -token.length + 3));\r\n };\r\n\r\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\r\n }\r\n\r\n set(date, _flags, value) {\r\n date.setUTCMilliseconds(value);\r\n return date;\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { timezonePatterns } from \"../constants.js\";\r\nimport { parseTimezonePattern } from \"../utils.js\"; // Timezone (ISO-8601. +00:00 is `'Z'`)\r\n\r\nexport class ISOTimezoneWithZParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 10);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['t', 'T', 'x']);\r\n }\r\n\r\n parse(dateString, token) {\r\n switch (token) {\r\n case 'X':\r\n return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);\r\n\r\n case 'XX':\r\n return parseTimezonePattern(timezonePatterns.basic, dateString);\r\n\r\n case 'XXXX':\r\n return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);\r\n\r\n case 'XXXXX':\r\n return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);\r\n\r\n case 'XXX':\r\n default:\r\n return parseTimezonePattern(timezonePatterns.extended, dateString);\r\n }\r\n }\r\n\r\n set(date, flags, value) {\r\n if (flags.timestampIsSet) {\r\n return date;\r\n }\r\n\r\n return new Date(date.getTime() - value);\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { timezonePatterns } from \"../constants.js\";\r\nimport { parseTimezonePattern } from \"../utils.js\"; // Timezone (ISO-8601)\r\n\r\nexport class ISOTimezoneParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 10);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", ['t', 'T', 'X']);\r\n }\r\n\r\n parse(dateString, token) {\r\n switch (token) {\r\n case 'x':\r\n return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);\r\n\r\n case 'xx':\r\n return parseTimezonePattern(timezonePatterns.basic, dateString);\r\n\r\n case 'xxxx':\r\n return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);\r\n\r\n case 'xxxxx':\r\n return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);\r\n\r\n case 'xxx':\r\n default:\r\n return parseTimezonePattern(timezonePatterns.extended, dateString);\r\n }\r\n }\r\n\r\n set(date, flags, value) {\r\n if (flags.timestampIsSet) {\r\n return date;\r\n }\r\n\r\n return new Date(date.getTime() - value);\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { parseAnyDigitsSigned } from \"../utils.js\";\r\nexport class TimestampSecondsParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 40);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", '*');\r\n }\r\n\r\n parse(dateString) {\r\n return parseAnyDigitsSigned(dateString);\r\n }\r\n\r\n set(_date, _flags, value) {\r\n return [new Date(value * 1000), {\r\n timestampIsSet: true\r\n }];\r\n }\r\n\r\n}","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nimport { Parser } from \"../Parser.js\";\r\nimport { parseAnyDigitsSigned } from \"../utils.js\";\r\nexport class TimestampMillisecondsParser extends Parser {\r\n constructor() {\r\n super(...arguments);\r\n\r\n _defineProperty(this, \"priority\", 20);\r\n\r\n _defineProperty(this, \"incompatibleTokens\", '*');\r\n }\r\n\r\n parse(dateString) {\r\n return parseAnyDigitsSigned(dateString);\r\n }\r\n\r\n set(_date, _flags, value) {\r\n return [new Date(value), {\r\n timestampIsSet: true\r\n }];\r\n }\r\n\r\n}","import { EraParser } from \"./EraParser.js\";\r\nimport { YearParser } from \"./YearParser.js\";\r\nimport { LocalWeekYearParser } from \"./LocalWeekYearParser.js\";\r\nimport { ISOWeekYearParser } from \"./ISOWeekYearParser.js\";\r\nimport { ExtendedYearParser } from \"./ExtendedYearParser.js\";\r\nimport { QuarterParser } from \"./QuarterParser.js\";\r\nimport { StandAloneQuarterParser } from \"./StandAloneQuarterParser.js\";\r\nimport { MonthParser } from \"./MonthParser.js\";\r\nimport { StandAloneMonthParser } from \"./StandAloneMonthParser.js\";\r\nimport { LocalWeekParser } from \"./LocalWeekParser.js\";\r\nimport { ISOWeekParser } from \"./ISOWeekParser.js\";\r\nimport { DateParser } from \"./DateParser.js\";\r\nimport { DayOfYearParser } from \"./DayOfYearParser.js\";\r\nimport { DayParser } from \"./DayParser.js\";\r\nimport { LocalDayParser } from \"./LocalDayParser.js\";\r\nimport { StandAloneLocalDayParser } from \"./StandAloneLocalDayParser.js\";\r\nimport { ISODayParser } from \"./ISODayParser.js\";\r\nimport { AMPMParser } from \"./AMPMParser.js\";\r\nimport { AMPMMidnightParser } from \"./AMPMMidnightParser.js\";\r\nimport { DayPeriodParser } from \"./DayPeriodParser.js\";\r\nimport { Hour1to12Parser } from \"./Hour1to12Parser.js\";\r\nimport { Hour0to23Parser } from \"./Hour0to23Parser.js\";\r\nimport { Hour0To11Parser } from \"./Hour0To11Parser.js\";\r\nimport { Hour1To24Parser } from \"./Hour1To24Parser.js\";\r\nimport { MinuteParser } from \"./MinuteParser.js\";\r\nimport { SecondParser } from \"./SecondParser.js\";\r\nimport { FractionOfSecondParser } from \"./FractionOfSecondParser.js\";\r\nimport { ISOTimezoneWithZParser } from \"./ISOTimezoneWithZParser.js\";\r\nimport { ISOTimezoneParser } from \"./ISOTimezoneParser.js\";\r\nimport { TimestampSecondsParser } from \"./TimestampSecondsParser.js\";\r\nimport { TimestampMillisecondsParser } from \"./TimestampMillisecondsParser.js\";\r\n/*\r\n * | | Unit | | Unit |\r\n * |-----|--------------------------------|-----|--------------------------------|\r\n * | a | AM, PM | A* | Milliseconds in day |\r\n * | b | AM, PM, noon, midnight | B | Flexible day period |\r\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\r\n * | d | Day of month | D | Day of year |\r\n * | e | Local day of week | E | Day of week |\r\n * | f | | F* | Day of week in month |\r\n * | g* | Modified Julian day | G | Era |\r\n * | h | Hour [1-12] | H | Hour [0-23] |\r\n * | i! | ISO day of week | I! | ISO week of year |\r\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\r\n * | k | Hour [1-24] | K | Hour [0-11] |\r\n * | l* | (deprecated) | L | Stand-alone month |\r\n * | m | Minute | M | Month |\r\n * | n | | N | |\r\n * | o! | Ordinal number modifier | O* | Timezone (GMT) |\r\n * | p | | P | |\r\n * | q | Stand-alone quarter | Q | Quarter |\r\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\r\n * | s | Second | S | Fraction of second |\r\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\r\n * | u | Extended year | U* | Cyclic year |\r\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\r\n * | w | Local week of year | W* | Week of month |\r\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\r\n * | y | Year (abs) | Y | Local week-numbering year |\r\n * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\r\n *\r\n * Letters marked by * are not implemented but reserved by Unicode standard.\r\n *\r\n * Letters marked by ! are non-standard, but implemented by date-fns:\r\n * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)\r\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\r\n * i.e. 7 for Sunday, 1 for Monday, etc.\r\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\r\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\r\n * `R` is supposed to be used in conjunction with `I` and `i`\r\n * for universal ISO week-numbering date, whereas\r\n * `Y` is supposed to be used in conjunction with `w` and `e`\r\n * for week-numbering date specific to the locale.\r\n */\r\n\r\nexport var parsers = {\r\n G: new EraParser(),\r\n y: new YearParser(),\r\n Y: new LocalWeekYearParser(),\r\n R: new ISOWeekYearParser(),\r\n u: new ExtendedYearParser(),\r\n Q: new QuarterParser(),\r\n q: new StandAloneQuarterParser(),\r\n M: new MonthParser(),\r\n L: new StandAloneMonthParser(),\r\n w: new LocalWeekParser(),\r\n I: new ISOWeekParser(),\r\n d: new DateParser(),\r\n D: new DayOfYearParser(),\r\n E: new DayParser(),\r\n e: new LocalDayParser(),\r\n c: new StandAloneLocalDayParser(),\r\n i: new ISODayParser(),\r\n a: new AMPMParser(),\r\n b: new AMPMMidnightParser(),\r\n B: new DayPeriodParser(),\r\n h: new Hour1to12Parser(),\r\n H: new Hour0to23Parser(),\r\n K: new Hour0To11Parser(),\r\n k: new Hour1To24Parser(),\r\n m: new MinuteParser(),\r\n s: new SecondParser(),\r\n S: new FractionOfSecondParser(),\r\n X: new ISOTimezoneWithZParser(),\r\n x: new ISOTimezoneParser(),\r\n t: new TimestampSecondsParser(),\r\n T: new TimestampMillisecondsParser()\r\n};","import defaultLocale from \"../_lib/defaultLocale/index.js\";\r\nimport subMilliseconds from \"../subMilliseconds/index.js\";\r\nimport toDate from \"../toDate/index.js\";\r\nimport assign from \"../_lib/assign/index.js\";\r\nimport longFormatters from \"../_lib/format/longFormatters/index.js\";\r\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\r\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from \"../_lib/protectedTokens/index.js\";\r\nimport toInteger from \"../_lib/toInteger/index.js\";\r\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\r\nimport { DateToSystemTimezoneSetter } from \"./_lib/Setter.js\";\r\nimport { parsers } from \"./_lib/parsers/index.js\";\r\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\"; // This RegExp consists of three parts separated by `|`:\r\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\r\n// (one of the certain letters followed by `o`)\r\n// - (\\w)\\1* matches any sequences of the same letter\r\n// - '' matches two quote characters in a row\r\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\r\n// except a single quote symbol, which ends the sequence.\r\n// Two quote characters do not end the sequence.\r\n// If there is no matching single quote\r\n// then the sequence will continue until the end of the string.\r\n// - . matches any single character unmatched by previous parts of the RegExps\r\n\r\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also\r\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\r\n\r\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\r\nvar escapedStringRegExp = /^'([^]*?)'?$/;\r\nvar doubleQuoteRegExp = /''/g;\r\nvar notWhitespaceRegExp = /\\S/;\r\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\r\n/**\r\n * @name parse\r\n * @category Common Helpers\r\n * @summary Parse the date.\r\n *\r\n * @description\r\n * Return the date parsed from string using the given format string.\r\n *\r\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\r\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n *\r\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\r\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\r\n *\r\n * Format of the format string is based on Unicode Technical Standard #35:\r\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\r\n * with a few additions (see note 5 below the table).\r\n *\r\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\r\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\r\n *\r\n * ```javascript\r\n * parse('23 AM', 'HH a', new Date())\r\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\r\n * ```\r\n *\r\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\r\n *\r\n * Accepted format string patterns:\r\n * | Unit |Prior| Pattern | Result examples | Notes |\r\n * |---------------------------------|-----|---------|-----------------------------------|-------|\r\n * | Era | 140 | G..GGG | AD, BC | |\r\n * | | | GGGG | Anno Domini, Before Christ | 2 |\r\n * | | | GGGGG | A, B | |\r\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\r\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\r\n * | | | yy | 44, 01, 00, 17 | 4 |\r\n * | | | yyy | 044, 001, 123, 999 | 4 |\r\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\r\n * | | | yyyyy | ... | 2,4 |\r\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\r\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\r\n * | | | YY | 44, 01, 00, 17 | 4,6 |\r\n * | | | YYY | 044, 001, 123, 999 | 4 |\r\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\r\n * | | | YYYYY | ... | 2,4 |\r\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\r\n * | | | RR | -43, 01, 00, 17 | 4,5 |\r\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\r\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\r\n * | | | RRRRR | ... | 2,4,5 |\r\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\r\n * | | | uu | -43, 01, 99, -99 | 4 |\r\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\r\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\r\n * | | | uuuuu | ... | 2,4 |\r\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\r\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\r\n * | | | QQ | 01, 02, 03, 04 | |\r\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\r\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\r\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\r\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\r\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\r\n * | | | qq | 01, 02, 03, 04 | |\r\n * | | | qqq | Q1, Q2, Q3, Q4 | |\r\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\r\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\r\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\r\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\r\n * | | | MM | 01, 02, ..., 12 | |\r\n * | | | MMM | Jan, Feb, ..., Dec | |\r\n * | | | MMMM | January, February, ..., December | 2 |\r\n * | | | MMMMM | J, F, ..., D | |\r\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\r\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\r\n * | | | LL | 01, 02, ..., 12 | |\r\n * | | | LLL | Jan, Feb, ..., Dec | |\r\n * | | | LLLL | January, February, ..., December | 2 |\r\n * | | | LLLLL | J, F, ..., D | |\r\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\r\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\r\n * | | | ww | 01, 02, ..., 53 | |\r\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\r\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\r\n * | | | II | 01, 02, ..., 53 | 5 |\r\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\r\n * | | | do | 1st, 2nd, ..., 31st | 5 |\r\n * | | | dd | 01, 02, ..., 31 | |\r\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\r\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\r\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\r\n * | | | DDD | 001, 002, ..., 365, 366 | |\r\n * | | | DDDD | ... | 2 |\r\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\r\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\r\n * | | | EEEEE | M, T, W, T, F, S, S | |\r\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\r\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\r\n * | | | io | 1st, 2nd, ..., 7th | 5 |\r\n * | | | ii | 01, 02, ..., 07 | 5 |\r\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\r\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\r\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\r\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |\r\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\r\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\r\n * | | | ee | 02, 03, ..., 01 | |\r\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\r\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\r\n * | | | eeeee | M, T, W, T, F, S, S | |\r\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\r\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\r\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\r\n * | | | cc | 02, 03, ..., 01 | |\r\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\r\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\r\n * | | | ccccc | M, T, W, T, F, S, S | |\r\n * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\r\n * | AM, PM | 80 | a..aaa | AM, PM | |\r\n * | | | aaaa | a.m., p.m. | 2 |\r\n * | | | aaaaa | a, p | |\r\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\r\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\r\n * | | | bbbbb | a, p, n, mi | |\r\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\r\n * | | | BBBB | at night, in the morning, ... | 2 |\r\n * | | | BBBBB | at night, in the morning, ... | |\r\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\r\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\r\n * | | | hh | 01, 02, ..., 11, 12 | |\r\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\r\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\r\n * | | | HH | 00, 01, 02, ..., 23 | |\r\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\r\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\r\n * | | | KK | 01, 02, ..., 11, 00 | |\r\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\r\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\r\n * | | | kk | 24, 01, 02, ..., 23 | |\r\n * | Minute | 60 | m | 0, 1, ..., 59 | |\r\n * | | | mo | 0th, 1st, ..., 59th | 5 |\r\n * | | | mm | 00, 01, ..., 59 | |\r\n * | Second | 50 | s | 0, 1, ..., 59 | |\r\n * | | | so | 0th, 1st, ..., 59th | 5 |\r\n * | | | ss | 00, 01, ..., 59 | |\r\n * | Seconds timestamp | 40 | t | 512969520 | |\r\n * | | | tt | ... | 2 |\r\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\r\n * | | | SS | 00, 01, ..., 99 | |\r\n * | | | SSS | 000, 001, ..., 999 | |\r\n * | | | SSSS | ... | 2 |\r\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\r\n * | | | TT | ... | 2 |\r\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\r\n * | | | XX | -0800, +0530, Z | |\r\n * | | | XXX | -08:00, +05:30, Z | |\r\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\r\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\r\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\r\n * | | | xx | -0800, +0530, +0000 | |\r\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\r\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\r\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\r\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\r\n * | | | PP | May 29, 1453 | |\r\n * | | | PPP | May 29th, 1453 | |\r\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\r\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\r\n * | | | pp | 12:00:00 AM | |\r\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\r\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\r\n * | | | PPPpp | May 29th, 1453 at ... | |\r\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\r\n * Notes:\r\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\r\n * are the same as \"stand-alone\" units, but are different in some languages.\r\n * \"Formatting\" units are declined according to the rules of the language\r\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\r\n * In `format` function, they will produce different result:\r\n *\r\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\r\n *\r\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\r\n *\r\n * `parse` will try to match both formatting and stand-alone units interchangably.\r\n *\r\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\r\n * the single quote characters (see below).\r\n * If the sequence is longer than listed in table:\r\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\r\n * as wide as the sequence\r\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\r\n * These variations are marked with \"2\" in the last column of the table.\r\n *\r\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\r\n * These tokens represent the shortest form of the quarter.\r\n *\r\n * 4. The main difference between `y` and `u` patterns are B.C. years:\r\n *\r\n * | Year | `y` | `u` |\r\n * |------|-----|-----|\r\n * | AC 1 | 1 | 1 |\r\n * | BC 1 | 1 | 0 |\r\n * | BC 2 | 2 | -1 |\r\n *\r\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\r\n *\r\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\r\n *\r\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\r\n *\r\n * while `uu` will just assign the year as is:\r\n *\r\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\r\n *\r\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\r\n *\r\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\r\n * except local week-numbering years are dependent on `options.weekStartsOn`\r\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}\r\n * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).\r\n *\r\n * 5. These patterns are not in the Unicode Technical Standard #35:\r\n * - `i`: ISO day of week\r\n * - `I`: ISO week of year\r\n * - `R`: ISO week-numbering year\r\n * - `o`: ordinal number modifier\r\n * - `P`: long localized date\r\n * - `p`: long localized time\r\n *\r\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\r\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n *\r\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\r\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n *\r\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\r\n * on the given locale.\r\n *\r\n * using `en-US` locale: `P` => `MM/dd/yyyy`\r\n * using `en-US` locale: `p` => `hh:mm a`\r\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\r\n * using `pt-BR` locale: `p` => `HH:mm`\r\n *\r\n * Values will be assigned to the date in the descending order of its unit's priority.\r\n * Units of an equal priority overwrite each other in the order of appearance.\r\n *\r\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\r\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\r\n *\r\n * `referenceDate` must be passed for correct work of the function.\r\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\r\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\r\n * In this case parsing will be done in the context of the current date.\r\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\r\n * then `Invalid Date` will be returned.\r\n *\r\n * The result may vary by locale.\r\n *\r\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\r\n *\r\n * If parsing failed, `Invalid Date` will be returned.\r\n * Invalid Date is a Date, whose time value is NaN.\r\n * Time value of Date: http://es5.github.io/#x15.9.1.1\r\n *\r\n * @param {String} dateString - the string to parse\r\n * @param {String} formatString - the string of tokens\r\n * @param {Date|Number} referenceDate - defines values missing from the parsed dateString\r\n * @param {Object} [options] - an object with options.\r\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\r\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\r\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\r\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\r\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\r\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @returns {Date} the parsed date\r\n * @throws {TypeError} 3 arguments required\r\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\r\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\r\n * @throws {RangeError} `options.locale` must contain `match` property\r\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\r\n * @throws {RangeError} format string contains an unescaped latin alphabet character\r\n *\r\n * @example\r\n * // Parse 11 February 2014 from middle-endian format:\r\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\r\n * //=> Tue Feb 11 2014 00:00:00\r\n *\r\n * @example\r\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\r\n * import eo from 'date-fns/locale/eo'\r\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\r\n * locale: eo\r\n * })\r\n * //=> Sun Feb 28 2010 00:00:00\r\n */\r\n\r\nexport default function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) {\r\n var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;\r\n\r\n requiredArgs(3, arguments);\r\n var dateString = String(dirtyDateString);\r\n var formatString = String(dirtyFormatString);\r\n var defaultOptions = getDefaultOptions();\r\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\r\n\r\n if (!locale.match) {\r\n throw new RangeError('locale must contain match property');\r\n }\r\n\r\n var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\r\n\r\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\r\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\r\n }\r\n\r\n var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\r\n\r\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\r\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\r\n }\r\n\r\n if (formatString === '') {\r\n if (dateString === '') {\r\n return toDate(dirtyReferenceDate);\r\n } else {\r\n return new Date(NaN);\r\n }\r\n }\r\n\r\n var subFnOptions = {\r\n firstWeekContainsDate: firstWeekContainsDate,\r\n weekStartsOn: weekStartsOn,\r\n locale: locale\r\n }; // If timezone isn't specified, it will be set to the system timezone\r\n\r\n var setters = [new DateToSystemTimezoneSetter()];\r\n var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {\r\n var firstCharacter = substring[0];\r\n\r\n if (firstCharacter in longFormatters) {\r\n var longFormatter = longFormatters[firstCharacter];\r\n return longFormatter(substring, locale.formatLong);\r\n }\r\n\r\n return substring;\r\n }).join('').match(formattingTokensRegExp);\r\n var usedTokens = [];\r\n\r\n var _loop = function (_token) {\r\n if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(_token)) {\r\n throwProtectedError(_token, formatString, dirtyDateString);\r\n }\r\n\r\n if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(_token)) {\r\n throwProtectedError(_token, formatString, dirtyDateString);\r\n }\r\n\r\n var firstCharacter = _token[0];\r\n var parser = parsers[firstCharacter];\r\n\r\n if (parser) {\r\n var incompatibleTokens = parser.incompatibleTokens;\r\n\r\n if (Array.isArray(incompatibleTokens)) {\r\n var incompatibleToken = usedTokens.find(function (usedToken) {\r\n return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter;\r\n });\r\n\r\n if (incompatibleToken) {\r\n throw new RangeError(\"The format string mustn't contain `\".concat(incompatibleToken.fullToken, \"` and `\").concat(_token, \"` at the same time\"));\r\n }\r\n } else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) {\r\n throw new RangeError(\"The format string mustn't contain `\".concat(_token, \"` and any other token at the same time\"));\r\n }\r\n\r\n usedTokens.push({\r\n token: firstCharacter,\r\n fullToken: _token\r\n });\r\n var parseResult = parser.run(dateString, _token, locale.match, subFnOptions);\r\n\r\n if (!parseResult) {\r\n token = _token;\r\n return {\r\n v: new Date(NaN)\r\n };\r\n }\r\n\r\n setters.push(parseResult.setter);\r\n dateString = parseResult.rest;\r\n } else {\r\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\r\n throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\r\n } // Replace two single quote characters with one single quote character\r\n\r\n\r\n if (_token === \"''\") {\r\n _token = \"'\";\r\n } else if (firstCharacter === \"'\") {\r\n _token = cleanEscapedString(_token);\r\n } // Cut token from string, or, if string doesn't match the token, return Invalid Date\r\n\r\n\r\n if (dateString.indexOf(_token) === 0) {\r\n dateString = dateString.slice(_token.length);\r\n } else {\r\n token = _token;\r\n return {\r\n v: new Date(NaN)\r\n };\r\n }\r\n }\r\n\r\n token = _token;\r\n };\r\n\r\n for (var token of tokens) {\r\n var _ret = _loop(token);\r\n\r\n if (typeof _ret === \"object\") return _ret.v;\r\n } // Check if the remaining input contains something other than whitespace\r\n\r\n\r\n if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {\r\n return new Date(NaN);\r\n }\r\n\r\n var uniquePrioritySetters = setters.map(function (setter) {\r\n return setter.priority;\r\n }).sort(function (a, b) {\r\n return b - a;\r\n }).filter(function (priority, index, array) {\r\n return array.indexOf(priority) === index;\r\n }).map(function (priority) {\r\n return setters.filter(function (setter) {\r\n return setter.priority === priority;\r\n }).sort(function (a, b) {\r\n return b.subPriority - a.subPriority;\r\n });\r\n }).map(function (setterArray) {\r\n return setterArray[0];\r\n });\r\n var date = toDate(dirtyReferenceDate);\r\n\r\n if (isNaN(date.getTime())) {\r\n return new Date(NaN);\r\n } // Convert the date in system timezone to the same date in UTC+00:00 timezone.\r\n\r\n\r\n var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));\r\n var flags = {};\r\n\r\n for (var setter of uniquePrioritySetters) {\r\n if (!setter.validate(utcDate, subFnOptions)) {\r\n return new Date(NaN);\r\n }\r\n\r\n var result = setter.set(utcDate, flags, subFnOptions); // Result is tuple (date, flags)\r\n\r\n if (Array.isArray(result)) {\r\n utcDate = result[0];\r\n assign(flags, result[1]); // Result is date\r\n } else {\r\n utcDate = result;\r\n }\r\n }\r\n\r\n return utcDate;\r\n}\r\n\r\nfunction cleanEscapedString(input) {\r\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\r\n}","\r\n\r\n\r\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--13-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./DatetimePicker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--13-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./DatetimePicker.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DatetimePicker.vue?vue&type=template&id=3137a82a&\"\nimport script from \"./DatetimePicker.vue?vue&type=script&lang=js&\"\nexport * from \"./DatetimePicker.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}