{
  "version": 3,
  "sources": ["../../../src/js/accordion.js", "../../../src/js/accordionItem.js", "../../../src/js/alert.js", "../../../src/js/avatar.js", "../../../src/js/banner.js", "../../../src/node_modules/date-fns/toDate.mjs", "../../../src/node_modules/date-fns/constructFrom.mjs", "../../../src/node_modules/date-fns/constants.mjs", "../../../src/node_modules/date-fns/_lib/defaultOptions.mjs", "../../../src/node_modules/date-fns/startOfWeek.mjs", "../../../src/node_modules/date-fns/startOfISOWeek.mjs", "../../../src/node_modules/date-fns/getISOWeekYear.mjs", "../../../src/node_modules/date-fns/startOfDay.mjs", "../../../src/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs", "../../../src/node_modules/date-fns/differenceInCalendarDays.mjs", "../../../src/node_modules/date-fns/startOfISOWeekYear.mjs", "../../../src/node_modules/date-fns/isDate.mjs", "../../../src/node_modules/date-fns/isValid.mjs", "../../../src/node_modules/date-fns/startOfYear.mjs", "../../../src/node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs", "../../../src/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs", "../../../src/node_modules/date-fns/locale/en-US/_lib/formatLong.mjs", "../../../src/node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs", "../../../src/node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs", "../../../src/node_modules/date-fns/locale/en-US/_lib/localize.mjs", "../../../src/node_modules/date-fns/locale/_lib/buildMatchFn.mjs", "../../../src/node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs", "../../../src/node_modules/date-fns/locale/en-US/_lib/match.mjs", "../../../src/node_modules/date-fns/locale/en-US.mjs", "../../../src/node_modules/date-fns/getDayOfYear.mjs", "../../../src/node_modules/date-fns/getISOWeek.mjs", "../../../src/node_modules/date-fns/getWeekYear.mjs", "../../../src/node_modules/date-fns/startOfWeekYear.mjs", "../../../src/node_modules/date-fns/getWeek.mjs", "../../../src/node_modules/date-fns/_lib/addLeadingZeros.mjs", "../../../src/node_modules/date-fns/_lib/format/lightFormatters.mjs", "../../../src/node_modules/date-fns/_lib/format/formatters.mjs", "../../../src/node_modules/date-fns/_lib/format/longFormatters.mjs", "../../../src/node_modules/date-fns/_lib/protectedTokens.mjs", "../../../src/node_modules/date-fns/format.mjs", "../../../src/js/Calendar/Matcher.js", "../../../src/js/Calendar/ModeHandlers/MultipleModeHandler.js", "../../../src/js/Calendar/ModeHandlers/RangeModeHandler.js", "../../../src/js/Calendar/ModeHandlers/SingleModeHandler.js", "../../../src/js/calendar.js", "../../../src/js/checkbox.js", "../../../src/js/positioning.js", "../../../src/js/combobox.js", "../../../src/js/command.js", "../../../src/js/datePicker.js", "../../../src/js/dialog.js", "../../../src/js/dropdownMenu.js", "../../../src/js/dropdownMenuSub.js", "../../../src/js/popover.js", "../../../src/js/radio.js", "../../../src/js/select.js", "../../../src/js/sheet.js", "../../../src/js/switchInput.js", "../../../src/js/cotton-ui.js"],
  "sourcesContent": ["export default (type, collapsible, disabled) => ({\n    value: type === 'single' ? '' : [],\n    type: type,\n    disabled: disabled,\n    collapsible: collapsible,\n})\n", "export default (expanded, disabled = false) => ({\n    expanded: expanded,\n    disabled: disabled,\n    root: {\n        ['x-id']() {\n            return ['accordion-item'];\n        },\n    },\n    trigger: {\n        ['@click']() {\n            if (!this.disabled) {\n                return this.toggle();\n            }\n        },\n        [':aria-expanded']() {\n            return this.$data.value.includes(this.$id('accordion-item'));\n        },\n        [':aria-controls']() {\n            return this.$id('accordion-item') + '-content';\n        },\n        [':id']() {\n            return this.$id('accordion-item') + '-trigger';\n        },\n        [':disabled']() {\n            return this.disabled;\n        },\n    },\n    icon: {\n        [':class']() {\n            return { '[&>*]:-rotate-180': this.$data.value.includes(this.$id('accordion-item')) }\n        }\n    },\n    content: {\n        [':id']() {\n            return this.$id('accordion-item') + '-content';\n        },\n        [':aria-labelledby']() {\n            return this.$id('accordion-item') + '-trigger';\n        },\n        ['x-show']() {\n            return this.$data.value.includes(this.$id('accordion-item'));\n        },\n        ['x-collapse.duration.300ms']() {\n            return true;\n        },\n    },\n    init() {\n        if (this.expanded) {\n            this.$nextTick(() => { this.expand() })\n        }\n    },\n    expand() {\n        if (this.type == 'single') {\n            this.$data.value = this.$id('accordion-item')\n        } else {\n            let index = this.$data.value.indexOf(this.$id('accordion-item'))\n            if (index < 0) {\n                this.$data.value.push(this.$id('accordion-item'))\n            }\n        }\n        this.$nextTick(() => { this.$dispatch('valueChange', { value: this.$data.value }) })\n    },\n    collapse() {\n        if (this.type == 'single' && this.collapsible) {\n            this.$data.value = ''\n        } else {\n            let index = this.$data.value.indexOf(this.$id('accordion-item'))\n            if (index >= 0) {\n                this.$data.value.splice(index, 1)\n            }\n        }\n        this.$nextTick(() => { this.$dispatch('valueChange', { value: this.$data.value }) })\n    },\n    toggle() {\n        this.$data.value.includes(this.$id('accordion-item')) ? this.collapse() : this.expand()\n    }\n})\n", "export default (dismissOnTimeout, timeout, startTimeoutOnIntersect) => ({\n    'visible': true,\n    'dismissOnTimeout': dismissOnTimeout,\n    'startTimeoutOnIntersect': startTimeoutOnIntersect,\n    'timeout': timeout,\n    root: {\n        ['x-show']() {\n            return this.visible;\n        },\n        ['x-cloak']() {\n            return true;\n        },\n        ['x-transition']() {\n            return true;\n        },\n        ['x-intersect']() {\n            if (this.dismissOnTimeout && this.startTimeoutOnIntersect) {\n                return setTimeout(() => { this.dismiss() }, this.timeout);\n            }\n        },\n    },\n    dismissTrigger: {\n        ['@click']() {\n            return this.dismiss();\n        },\n    },\n    init() {\n        if (this.dismissOnTimeout && !this.startTimeoutOnIntersect) {\n            setTimeout(() => { this.dismiss() }, this.timeout);\n        }\n    },\n    dismiss() {\n        this.visible = false;\n    }\n})\n", "export default () => ({\n    loadSuccess: false,\n    image: {\n        ['x-show']() {\n            return this.loadSuccess;\n        },\n        ['x-cloak']() {\n            return true;\n        },\n        ['x-on:load']() {\n            return this.loadSuccess = true;\n        },\n    },\n    fallback: {\n        ['x-show']() {\n            return !this.loadSuccess;\n        },\n        ['x-cloak']() {\n            return true;\n        },\n    }\n})\n", "export default (displayAfter, transitionEnterStart, transitionEnterEnd, transitionLeaveStart, transitionLeaveEnd) => ({\n    visible: false,\n    displayAfter: displayAfter,\n    transitionEnterStart: transitionEnterStart,\n    transitionEnterEnd: transitionEnterEnd,\n    transitionLeaveStart: transitionLeaveStart,\n    transitionLeaveEnd: transitionLeaveEnd,\n    root: {\n        ['x-show']() {\n            return this.visible;\n        },\n        ['x-cloak']() {\n            return true;\n        },\n        ['x-transition:enter']() {\n            return \"transition ease-out duration-500\";\n        },\n        ['x-transition:enter-start']() {\n            return this.transitionEnterStart;\n        },\n        ['x-transition:enter-end']() {\n            return this.transitionEnterEnd;\n        },\n        ['x-transition:leave']() {\n            return \"transition ease-in duration-300\";\n        },\n        ['x-transition:leave-start']() {\n            return this.transitionLeaveStart;\n        },\n        ['x-transition:leave-end']() {\n            return this.transitionLeaveEnd;\n        },\n    },\n    dismissTrigger: {\n        ['@click']() {\n            return this.dismiss();\n        },\n    },\n    init() {\n        setTimeout(() => { this.display() }, this.displayAfter);\n    },\n    display() {\n        this.visible = true;\n    },\n    dismiss() {\n        this.visible = false;\n    }\n})\n", "/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument) {\n  const argStr = Object.prototype.toString.call(argument);\n\n  // Clone the date\n  if (\n    argument instanceof Date ||\n    (typeof argument === \"object\" && argStr === \"[object Date]\")\n  ) {\n    // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n    return new argument.constructor(+argument);\n  } else if (\n    typeof argument === \"number\" ||\n    argStr === \"[object Number]\" ||\n    typeof argument === \"string\" ||\n    argStr === \"[object String]\"\n  ) {\n    // TODO: Can we get rid of as?\n    return new Date(argument);\n  } else {\n    // TODO: Can we get rid of as?\n    return new Date(NaN);\n  }\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n", "/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from 'date-fns'\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date(date: DateType): DateType {\n *   return constructFrom(\n *     date, // Use contrustor from the given date\n *     date.getTime() // Use the date value to create a new date\n *   )\n * }\n */\nexport function constructFrom(date, value) {\n  if (date instanceof Date) {\n    return new date.constructor(value);\n  } else {\n    return new Date(value);\n  }\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n", "/**\n * @module constants\n * @summary Useful constants\n * @description\n * Collection of useful date constants.\n *\n * The constants could be imported from `date-fns/constants`:\n *\n * ```ts\n * import { maxTime, minTime } from \"./constants/date-fns/constants\";\n *\n * function isAllowedTime(time) {\n *   return time <= maxTime && time >= minTime;\n * }\n * ```\n */\n\n/**\n * @constant\n * @name daysInWeek\n * @summary Days in 1 week.\n */\nexport const daysInWeek = 7;\n\n/**\n * @constant\n * @name daysInYear\n * @summary Days in 1 year.\n *\n * @description\n * How many days in a year.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n */\nexport const daysInYear = 365.2425;\n\n/**\n * @constant\n * @name maxTime\n * @summary Maximum allowed time.\n *\n * @example\n * import { maxTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = 8640000000000001 <= maxTime;\n * //=> false\n *\n * new Date(8640000000000001);\n * //=> Invalid Date\n */\nexport const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * @constant\n * @name minTime\n * @summary Minimum allowed time.\n *\n * @example\n * import { minTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = -8640000000000001 >= minTime;\n * //=> false\n *\n * new Date(-8640000000000001)\n * //=> Invalid Date\n */\nexport const minTime = -maxTime;\n\n/**\n * @constant\n * @name millisecondsInWeek\n * @summary Milliseconds in 1 week.\n */\nexport const millisecondsInWeek = 604800000;\n\n/**\n * @constant\n * @name millisecondsInDay\n * @summary Milliseconds in 1 day.\n */\nexport const millisecondsInDay = 86400000;\n\n/**\n * @constant\n * @name millisecondsInMinute\n * @summary Milliseconds in 1 minute\n */\nexport const millisecondsInMinute = 60000;\n\n/**\n * @constant\n * @name millisecondsInHour\n * @summary Milliseconds in 1 hour\n */\nexport const millisecondsInHour = 3600000;\n\n/**\n * @constant\n * @name millisecondsInSecond\n * @summary Milliseconds in 1 second\n */\nexport const millisecondsInSecond = 1000;\n\n/**\n * @constant\n * @name minutesInYear\n * @summary Minutes in 1 year.\n */\nexport const minutesInYear = 525600;\n\n/**\n * @constant\n * @name minutesInMonth\n * @summary Minutes in 1 month.\n */\nexport const minutesInMonth = 43200;\n\n/**\n * @constant\n * @name minutesInDay\n * @summary Minutes in 1 day.\n */\nexport const minutesInDay = 1440;\n\n/**\n * @constant\n * @name minutesInHour\n * @summary Minutes in 1 hour.\n */\nexport const minutesInHour = 60;\n\n/**\n * @constant\n * @name monthsInQuarter\n * @summary Months in 1 quarter.\n */\nexport const monthsInQuarter = 3;\n\n/**\n * @constant\n * @name monthsInYear\n * @summary Months in 1 year.\n */\nexport const monthsInYear = 12;\n\n/**\n * @constant\n * @name quartersInYear\n * @summary Quarters in 1 year\n */\nexport const quartersInYear = 4;\n\n/**\n * @constant\n * @name secondsInHour\n * @summary Seconds in 1 hour.\n */\nexport const secondsInHour = 3600;\n\n/**\n * @constant\n * @name secondsInMinute\n * @summary Seconds in 1 minute.\n */\nexport const secondsInMinute = 60;\n\n/**\n * @constant\n * @name secondsInDay\n * @summary Seconds in 1 day.\n */\nexport const secondsInDay = secondsInHour * 24;\n\n/**\n * @constant\n * @name secondsInWeek\n * @summary Seconds in 1 week.\n */\nexport const secondsInWeek = secondsInDay * 7;\n\n/**\n * @constant\n * @name secondsInYear\n * @summary Seconds in 1 year.\n */\nexport const secondsInYear = secondsInDay * daysInYear;\n\n/**\n * @constant\n * @name secondsInMonth\n * @summary Seconds in 1 month\n */\nexport const secondsInMonth = secondsInYear / 12;\n\n/**\n * @constant\n * @name secondsInQuarter\n * @summary Seconds in 1 quarter.\n */\nexport const secondsInQuarter = secondsInMonth * 3;\n", "let defaultOptions = {};\n\nexport function getDefaultOptions() {\n  return defaultOptions;\n}\n\nexport function setDefaultOptions(newOptions) {\n  defaultOptions = newOptions;\n}\n", "import { toDate } from \"./toDate.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n  const defaultOptions = getDefaultOptions();\n  const weekStartsOn =\n    options?.weekStartsOn ??\n    options?.locale?.options?.weekStartsOn ??\n    defaultOptions.weekStartsOn ??\n    defaultOptions.locale?.options?.weekStartsOn ??\n    0;\n\n  const _date = toDate(date);\n  const day = _date.getDay();\n  const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n  _date.setDate(_date.getDate() - diff);\n  _date.setHours(0, 0, 0, 0);\n  return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n", "import { startOfWeek } from \"./startOfWeek.mjs\";\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date) {\n  return startOfWeek(date, { weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n", "import { constructFrom } from \"./constructFrom.mjs\";\nimport { startOfISOWeek } from \"./startOfISOWeek.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date) {\n  const _date = toDate(date);\n  const year = _date.getFullYear();\n\n  const fourthOfJanuaryOfNextYear = constructFrom(date, 0);\n  fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n  fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n  const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n  const fourthOfJanuaryOfThisYear = constructFrom(date, 0);\n  fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n  fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n  const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n  if (_date.getTime() >= startOfNextYear.getTime()) {\n    return year + 1;\n  } else if (_date.getTime() >= startOfThisYear.getTime()) {\n    return year;\n  } else {\n    return year - 1;\n  }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n", "import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date) {\n  const _date = toDate(date);\n  _date.setHours(0, 0, 0, 0);\n  return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n", "import { toDate } from \"../toDate.mjs\";\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport function getTimezoneOffsetInMilliseconds(date) {\n  const _date = toDate(date);\n  const utcDate = new Date(\n    Date.UTC(\n      _date.getFullYear(),\n      _date.getMonth(),\n      _date.getDate(),\n      _date.getHours(),\n      _date.getMinutes(),\n      _date.getSeconds(),\n      _date.getMilliseconds(),\n    ),\n  );\n  utcDate.setUTCFullYear(_date.getFullYear());\n  return +date - +utcDate;\n}\n", "import { millisecondsInDay } from \"./constants.mjs\";\nimport { startOfDay } from \"./startOfDay.mjs\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.mjs\";\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n *   new Date(2012, 6, 2, 0, 0),\n *   new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n *   new Date(2011, 6, 3, 0, 1),\n *   new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(dateLeft, dateRight) {\n  const startOfDayLeft = startOfDay(dateLeft);\n  const startOfDayRight = startOfDay(dateRight);\n\n  const timestampLeft =\n    +startOfDayLeft - getTimezoneOffsetInMilliseconds(startOfDayLeft);\n  const timestampRight =\n    +startOfDayRight - getTimezoneOffsetInMilliseconds(startOfDayRight);\n\n  // Round the number of days to the nearest integer because the number of\n  // milliseconds in a day is not constant (e.g. it's different in the week of\n  // the daylight saving time clock shift).\n  return Math.round((timestampLeft - timestampRight) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n", "import { getISOWeekYear } from \"./getISOWeekYear.mjs\";\nimport { startOfISOWeek } from \"./startOfISOWeek.mjs\";\nimport { constructFrom } from \"./constructFrom.mjs\";\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of an ISO week-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date) {\n  const year = getISOWeekYear(date);\n  const fourthOfJanuary = constructFrom(date, 0);\n  fourthOfJanuary.setFullYear(year, 0, 4);\n  fourthOfJanuary.setHours(0, 0, 0, 0);\n  return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n", "/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param value - The value to check\n *\n * @returns True if the given value is a date\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport function isDate(value) {\n  return (\n    value instanceof Date ||\n    (typeof value === \"object\" &&\n      Object.prototype.toString.call(value) === \"[object Date]\")\n  );\n}\n\n// Fallback for modularized imports:\nexport default isDate;\n", "import { isDate } from \"./isDate.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertable into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n  if (!isDate(date) && typeof date !== \"number\") {\n    return false;\n  }\n  const _date = toDate(date);\n  return !isNaN(Number(_date));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n", "import { toDate } from \"./toDate.mjs\";\nimport { constructFrom } from \"./constructFrom.mjs\";\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date) {\n  const cleanDate = toDate(date);\n  const _date = constructFrom(date, 0);\n  _date.setFullYear(cleanDate.getFullYear(), 0, 1);\n  _date.setHours(0, 0, 0, 0);\n  return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n", "const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"less than a second\",\n    other: \"less than {{count}} seconds\",\n  },\n\n  xSeconds: {\n    one: \"1 second\",\n    other: \"{{count}} seconds\",\n  },\n\n  halfAMinute: \"half a minute\",\n\n  lessThanXMinutes: {\n    one: \"less than a minute\",\n    other: \"less than {{count}} minutes\",\n  },\n\n  xMinutes: {\n    one: \"1 minute\",\n    other: \"{{count}} minutes\",\n  },\n\n  aboutXHours: {\n    one: \"about 1 hour\",\n    other: \"about {{count}} hours\",\n  },\n\n  xHours: {\n    one: \"1 hour\",\n    other: \"{{count}} hours\",\n  },\n\n  xDays: {\n    one: \"1 day\",\n    other: \"{{count}} days\",\n  },\n\n  aboutXWeeks: {\n    one: \"about 1 week\",\n    other: \"about {{count}} weeks\",\n  },\n\n  xWeeks: {\n    one: \"1 week\",\n    other: \"{{count}} weeks\",\n  },\n\n  aboutXMonths: {\n    one: \"about 1 month\",\n    other: \"about {{count}} months\",\n  },\n\n  xMonths: {\n    one: \"1 month\",\n    other: \"{{count}} months\",\n  },\n\n  aboutXYears: {\n    one: \"about 1 year\",\n    other: \"about {{count}} years\",\n  },\n\n  xYears: {\n    one: \"1 year\",\n    other: \"{{count}} years\",\n  },\n\n  overXYears: {\n    one: \"over 1 year\",\n    other: \"over {{count}} years\",\n  },\n\n  almostXYears: {\n    one: \"almost 1 year\",\n    other: \"almost {{count}} years\",\n  },\n};\n\nexport const formatDistance = (token, count, options) => {\n  let result;\n\n  const tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === \"string\") {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace(\"{{count}}\", count.toString());\n  }\n\n  if (options?.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return \"in \" + result;\n    } else {\n      return result + \" ago\";\n    }\n  }\n\n  return result;\n};\n", "export function buildFormatLongFn(args) {\n  return (options = {}) => {\n    // TODO: Remove String()\n    const width = options.width ? String(options.width) : args.defaultWidth;\n    const format = args.formats[width] || args.formats[args.defaultWidth];\n    return format;\n  };\n}\n", "import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.mjs\";\n\nconst dateFormats = {\n  full: \"EEEE, MMMM do, y\",\n  long: \"MMMM do, y\",\n  medium: \"MMM d, y\",\n  short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n  full: \"h:mm:ss a zzzz\",\n  long: \"h:mm:ss a z\",\n  medium: \"h:mm:ss a\",\n  short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n  full: \"{{date}} 'at' {{time}}\",\n  long: \"{{date}} 'at' {{time}}\",\n  medium: \"{{date}}, {{time}}\",\n  short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: \"full\",\n  }),\n\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: \"full\",\n  }),\n\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: \"full\",\n  }),\n};\n", "const formatRelativeLocale = {\n  lastWeek: \"'last' eeee 'at' p\",\n  yesterday: \"'yesterday at' p\",\n  today: \"'today at' p\",\n  tomorrow: \"'tomorrow at' p\",\n  nextWeek: \"eeee 'at' p\",\n  other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n  formatRelativeLocale[token];\n", "/* eslint-disable no-unused-vars */\n\n/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n  return (value, options) => {\n    const context = options?.context ? String(options.context) : \"standalone\";\n\n    let valuesArray;\n    if (context === \"formatting\" && args.formattingValues) {\n      const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n      const width = options?.width ? String(options.width) : defaultWidth;\n\n      valuesArray =\n        args.formattingValues[width] || args.formattingValues[defaultWidth];\n    } else {\n      const defaultWidth = args.defaultWidth;\n      const width = options?.width ? String(options.width) : args.defaultWidth;\n\n      valuesArray = args.values[width] || args.values[defaultWidth];\n    }\n    const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n    // @ts-expect-error - 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!\n    return valuesArray[index];\n  };\n}\n", "import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.mjs\";\n\nconst eraValues = {\n  narrow: [\"B\", \"A\"],\n  abbreviated: [\"BC\", \"AD\"],\n  wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n  narrow: [\"1\", \"2\", \"3\", \"4\"],\n  abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n  wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\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.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n  narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n  abbreviated: [\n    \"Jan\",\n    \"Feb\",\n    \"Mar\",\n    \"Apr\",\n    \"May\",\n    \"Jun\",\n    \"Jul\",\n    \"Aug\",\n    \"Sep\",\n    \"Oct\",\n    \"Nov\",\n    \"Dec\",\n  ],\n\n  wide: [\n    \"January\",\n    \"February\",\n    \"March\",\n    \"April\",\n    \"May\",\n    \"June\",\n    \"July\",\n    \"August\",\n    \"September\",\n    \"October\",\n    \"November\",\n    \"December\",\n  ],\n};\n\nconst dayValues = {\n  narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n  short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n  abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n  wide: [\n    \"Sunday\",\n    \"Monday\",\n    \"Tuesday\",\n    \"Wednesday\",\n    \"Thursday\",\n    \"Friday\",\n    \"Saturday\",\n  ],\n};\n\nconst dayPeriodValues = {\n  narrow: {\n    am: \"a\",\n    pm: \"p\",\n    midnight: \"mi\",\n    noon: \"n\",\n    morning: \"morning\",\n    afternoon: \"afternoon\",\n    evening: \"evening\",\n    night: \"night\",\n  },\n  abbreviated: {\n    am: \"AM\",\n    pm: \"PM\",\n    midnight: \"midnight\",\n    noon: \"noon\",\n    morning: \"morning\",\n    afternoon: \"afternoon\",\n    evening: \"evening\",\n    night: \"night\",\n  },\n  wide: {\n    am: \"a.m.\",\n    pm: \"p.m.\",\n    midnight: \"midnight\",\n    noon: \"noon\",\n    morning: \"morning\",\n    afternoon: \"afternoon\",\n    evening: \"evening\",\n    night: \"night\",\n  },\n};\n\nconst formattingDayPeriodValues = {\n  narrow: {\n    am: \"a\",\n    pm: \"p\",\n    midnight: \"mi\",\n    noon: \"n\",\n    morning: \"in the morning\",\n    afternoon: \"in the afternoon\",\n    evening: \"in the evening\",\n    night: \"at night\",\n  },\n  abbreviated: {\n    am: \"AM\",\n    pm: \"PM\",\n    midnight: \"midnight\",\n    noon: \"noon\",\n    morning: \"in the morning\",\n    afternoon: \"in the afternoon\",\n    evening: \"in the evening\",\n    night: \"at night\",\n  },\n  wide: {\n    am: \"a.m.\",\n    pm: \"p.m.\",\n    midnight: \"midnight\",\n    noon: \"noon\",\n    morning: \"in the morning\",\n    afternoon: \"in the afternoon\",\n    evening: \"in the evening\",\n    night: \"at night\",\n  },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n  const number = Number(dirtyNumber);\n\n  // If ordinal numbers depend on context, for example,\n  // if they are different for different grammatical genders,\n  // use `options.unit`.\n  //\n  // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n  // 'day', 'hour', 'minute', 'second'.\n\n  const rem100 = number % 100;\n  if (rem100 > 20 || rem100 < 10) {\n    switch (rem100 % 10) {\n      case 1:\n        return number + \"st\";\n      case 2:\n        return number + \"nd\";\n      case 3:\n        return number + \"rd\";\n    }\n  }\n  return number + \"th\";\n};\n\nexport const localize = {\n  ordinalNumber,\n\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: \"wide\",\n  }),\n\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: \"wide\",\n    argumentCallback: (quarter) => quarter - 1,\n  }),\n\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: \"wide\",\n  }),\n\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: \"wide\",\n  }),\n\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: \"wide\",\n    formattingValues: formattingDayPeriodValues,\n    defaultFormattingWidth: \"wide\",\n  }),\n};\n", "export function buildMatchFn(args) {\n  return (string, options = {}) => {\n    const width = options.width;\n\n    const matchPattern =\n      (width && args.matchPatterns[width]) ||\n      args.matchPatterns[args.defaultMatchWidth];\n    const matchResult = string.match(matchPattern);\n\n    if (!matchResult) {\n      return null;\n    }\n    const matchedString = matchResult[0];\n\n    const parsePatterns =\n      (width && args.parsePatterns[width]) ||\n      args.parsePatterns[args.defaultParseWidth];\n\n    const key = Array.isArray(parsePatterns)\n      ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n      : // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n        findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n    let value;\n\n    value = args.valueCallback ? args.valueCallback(key) : key;\n    value = options.valueCallback\n      ? // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n        options.valueCallback(value)\n      : value;\n\n    const rest = string.slice(matchedString.length);\n\n    return { value, rest };\n  };\n}\n\nfunction findKey(object, predicate) {\n  for (const key in object) {\n    if (\n      Object.prototype.hasOwnProperty.call(object, key) &&\n      predicate(object[key])\n    ) {\n      return key;\n    }\n  }\n  return undefined;\n}\n\nfunction findIndex(array, predicate) {\n  for (let key = 0; key < array.length; key++) {\n    if (predicate(array[key])) {\n      return key;\n    }\n  }\n  return undefined;\n}\n", "export function buildMatchPatternFn(args) {\n  return (string, options = {}) => {\n    const matchResult = string.match(args.matchPattern);\n    if (!matchResult) return null;\n    const matchedString = matchResult[0];\n\n    const parseResult = string.match(args.parsePattern);\n    if (!parseResult) return null;\n    let value = args.valueCallback\n      ? args.valueCallback(parseResult[0])\n      : parseResult[0];\n\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type\n    value = options.valueCallback ? options.valueCallback(value) : value;\n\n    const rest = string.slice(matchedString.length);\n\n    return { value, rest };\n  };\n}\n", "import { buildMatchFn } from \"../../_lib/buildMatchFn.mjs\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.mjs\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n  narrow: /^(b|a)/i,\n  abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n  wide: /^(before christ|before common era|anno domini|common era)/i,\n};\nconst parseEraPatterns = {\n  any: [/^b/i, /^(a|c)/i],\n};\n\nconst matchQuarterPatterns = {\n  narrow: /^[1234]/i,\n  abbreviated: /^q[1234]/i,\n  wide: /^[1234](th|st|nd|rd)? quarter/i,\n};\nconst parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n  narrow: /^[jfmasond]/i,\n  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n};\nconst parseMonthPatterns = {\n  narrow: [\n    /^j/i,\n    /^f/i,\n    /^m/i,\n    /^a/i,\n    /^m/i,\n    /^j/i,\n    /^j/i,\n    /^a/i,\n    /^s/i,\n    /^o/i,\n    /^n/i,\n    /^d/i,\n  ],\n\n  any: [\n    /^ja/i,\n    /^f/i,\n    /^mar/i,\n    /^ap/i,\n    /^may/i,\n    /^jun/i,\n    /^jul/i,\n    /^au/i,\n    /^s/i,\n    /^o/i,\n    /^n/i,\n    /^d/i,\n  ],\n};\n\nconst matchDayPatterns = {\n  narrow: /^[smtwf]/i,\n  short: /^(su|mo|tu|we|th|fr|sa)/i,\n  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n};\nconst parseDayPatterns = {\n  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n  any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n};\nconst parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^mi/i,\n    noon: /^no/i,\n    morning: /morning/i,\n    afternoon: /afternoon/i,\n    evening: /evening/i,\n    night: /night/i,\n  },\n};\n\nexport const match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: (value) => parseInt(value, 10),\n  }),\n\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: \"wide\",\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: \"any\",\n  }),\n\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: \"wide\",\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: \"any\",\n    valueCallback: (index) => index + 1,\n  }),\n\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: \"wide\",\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: \"any\",\n  }),\n\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: \"wide\",\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: \"any\",\n  }),\n\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: \"any\",\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: \"any\",\n  }),\n};\n", "import { formatDistance } from \"./en-US/_lib/formatDistance.mjs\";\nimport { formatLong } from \"./en-US/_lib/formatLong.mjs\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.mjs\";\nimport { localize } from \"./en-US/_lib/localize.mjs\";\nimport { match } from \"./en-US/_lib/match.mjs\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n  code: \"en-US\",\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 0 /* Sunday */,\n    firstWeekContainsDate: 1,\n  },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n", "import { differenceInCalendarDays } from \"./differenceInCalendarDays.mjs\";\nimport { startOfYear } from \"./startOfYear.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nexport function getDayOfYear(date) {\n  const _date = toDate(date);\n  const diff = differenceInCalendarDays(_date, startOfYear(_date));\n  const dayOfYear = diff + 1;\n  return dayOfYear;\n}\n\n// Fallback for modularized imports:\nexport default getDayOfYear;\n", "import { millisecondsInWeek } from \"./constants.mjs\";\nimport { startOfISOWeek } from \"./startOfISOWeek.mjs\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date) {\n  const _date = toDate(date);\n  const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n  // Round the number of weeks to the nearest integer because the number of\n  // milliseconds in a week is not constant (e.g. it's different in the week of\n  // the daylight saving time clock shift).\n  return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n", "import { constructFrom } from \"./constructFrom.mjs\";\nimport { startOfWeek } from \"./startOfWeek.mjs\";\nimport { toDate } from \"./toDate.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n  const _date = toDate(date);\n  const year = _date.getFullYear();\n\n  const defaultOptions = getDefaultOptions();\n  const firstWeekContainsDate =\n    options?.firstWeekContainsDate ??\n    options?.locale?.options?.firstWeekContainsDate ??\n    defaultOptions.firstWeekContainsDate ??\n    defaultOptions.locale?.options?.firstWeekContainsDate ??\n    1;\n\n  const firstWeekOfNextYear = constructFrom(date, 0);\n  firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n  firstWeekOfNextYear.setHours(0, 0, 0, 0);\n  const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n  const firstWeekOfThisYear = constructFrom(date, 0);\n  firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n  firstWeekOfThisYear.setHours(0, 0, 0, 0);\n  const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n  if (_date.getTime() >= startOfNextYear.getTime()) {\n    return year + 1;\n  } else if (_date.getTime() >= startOfThisYear.getTime()) {\n    return year;\n  } else {\n    return year - 1;\n  }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n", "import { constructFrom } from \"./constructFrom.mjs\";\nimport { getWeekYear } from \"./getWeekYear.mjs\";\nimport { startOfWeek } from \"./startOfWeek.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link startOfWeekYear} function options.\n */\n\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week-numbering year\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n *   weekStartsOn: 1,\n *   firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfWeekYear(date, options) {\n  const defaultOptions = getDefaultOptions();\n  const firstWeekContainsDate =\n    options?.firstWeekContainsDate ??\n    options?.locale?.options?.firstWeekContainsDate ??\n    defaultOptions.firstWeekContainsDate ??\n    defaultOptions.locale?.options?.firstWeekContainsDate ??\n    1;\n\n  const year = getWeekYear(date, options);\n  const firstWeek = constructFrom(date, 0);\n  firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n  firstWeek.setHours(0, 0, 0, 0);\n  const _date = startOfWeek(firstWeek, options);\n  return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeekYear;\n", "import { millisecondsInWeek } from \"./constants.mjs\";\nimport { startOfWeek } from \"./startOfWeek.mjs\";\nimport { startOfWeekYear } from \"./startOfWeekYear.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n *   weekStartsOn: 1,\n *   firstWeekContainsDate: 4\n * })\n * //=> 53\n */\n\nexport function getWeek(date, options) {\n  const _date = toDate(date);\n  const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n  // Round the number of weeks to the nearest integer because the number of\n  // milliseconds in a week is not constant (e.g. it's different in the week of\n  // the daylight saving time clock shift).\n  return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n", "export function addLeadingZeros(number, targetLength) {\n  const sign = number < 0 ? \"-\" : \"\";\n  const output = Math.abs(number).toString().padStart(targetLength, \"0\");\n  return sign + output;\n}\n", "import { addLeadingZeros } from \"../addLeadingZeros.mjs\";\n\n/*\n * |     | Unit                           |     | Unit                           |\n * |-----|--------------------------------|-----|--------------------------------|\n * |  a  | AM, PM                         |  A* |                                |\n * |  d  | Day of month                   |  D  |                                |\n * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |\n * |  m  | Minute                         |  M  | Month                          |\n * |  s  | Second                         |  S  | Fraction of second             |\n * |  y  | Year (abs)                     |  Y  |                                |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nexport const lightFormatters = {\n  // Year\n  y(date, token) {\n    // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n    // | Year     |     y | yy |   yyy |  yyyy | yyyyy |\n    // |----------|-------|----|-------|-------|-------|\n    // | AD 1     |     1 | 01 |   001 |  0001 | 00001 |\n    // | AD 12    |    12 | 12 |   012 |  0012 | 00012 |\n    // | AD 123   |   123 | 23 |   123 |  0123 | 00123 |\n    // | AD 1234  |  1234 | 34 |  1234 |  1234 | 01234 |\n    // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n    const signedYear = date.getFullYear();\n    // Returns 1 for 1 BC (which is year 0 in JavaScript)\n    const year = signedYear > 0 ? signedYear : 1 - signedYear;\n    return addLeadingZeros(token === \"yy\" ? year % 100 : year, token.length);\n  },\n\n  // Month\n  M(date, token) {\n    const month = date.getMonth();\n    return token === \"M\" ? String(month + 1) : addLeadingZeros(month + 1, 2);\n  },\n\n  // Day of the month\n  d(date, token) {\n    return addLeadingZeros(date.getDate(), token.length);\n  },\n\n  // AM or PM\n  a(date, token) {\n    const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? \"pm\" : \"am\";\n\n    switch (token) {\n      case \"a\":\n      case \"aa\":\n        return dayPeriodEnumValue.toUpperCase();\n      case \"aaa\":\n        return dayPeriodEnumValue;\n      case \"aaaaa\":\n        return dayPeriodEnumValue[0];\n      case \"aaaa\":\n      default:\n        return dayPeriodEnumValue === \"am\" ? \"a.m.\" : \"p.m.\";\n    }\n  },\n\n  // Hour [1-12]\n  h(date, token) {\n    return addLeadingZeros(date.getHours() % 12 || 12, token.length);\n  },\n\n  // Hour [0-23]\n  H(date, token) {\n    return addLeadingZeros(date.getHours(), token.length);\n  },\n\n  // Minute\n  m(date, token) {\n    return addLeadingZeros(date.getMinutes(), token.length);\n  },\n\n  // Second\n  s(date, token) {\n    return addLeadingZeros(date.getSeconds(), token.length);\n  },\n\n  // Fraction of second\n  S(date, token) {\n    const numberOfDigits = token.length;\n    const milliseconds = date.getMilliseconds();\n    const fractionalSeconds = Math.trunc(\n      milliseconds * Math.pow(10, numberOfDigits - 3),\n    );\n    return addLeadingZeros(fractionalSeconds, token.length);\n  },\n};\n", "import { getDayOfYear } from \"../../getDayOfYear.mjs\";\nimport { getISOWeek } from \"../../getISOWeek.mjs\";\nimport { getISOWeekYear } from \"../../getISOWeekYear.mjs\";\nimport { getWeek } from \"../../getWeek.mjs\";\nimport { getWeekYear } from \"../../getWeekYear.mjs\";\nimport { addLeadingZeros } from \"../addLeadingZeros.mjs\";\nimport { lightFormatters } from \"./lightFormatters.mjs\";\n\nconst dayPeriodEnum = {\n  am: \"am\",\n  pm: \"pm\",\n  midnight: \"midnight\",\n  noon: \"noon\",\n  morning: \"morning\",\n  afternoon: \"afternoon\",\n  evening: \"evening\",\n  night: \"night\",\n};\n\n/*\n * |     | Unit                           |     | Unit                           |\n * |-----|--------------------------------|-----|--------------------------------|\n * |  a  | AM, PM                         |  A* | Milliseconds in day            |\n * |  b  | AM, PM, noon, midnight         |  B  | Flexible day period            |\n * |  c  | Stand-alone local day of week  |  C* | Localized hour w/ day period   |\n * |  d  | Day of month                   |  D  | Day of year                    |\n * |  e  | Local day of week              |  E  | Day of week                    |\n * |  f  |                                |  F* | Day of week in month           |\n * |  g* | Modified Julian day            |  G  | Era                            |\n * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |\n * |  i! | ISO day of week                |  I! | ISO week of year               |\n * |  j* | Localized hour w/ day period   |  J* | Localized hour w/o day period  |\n * |  k  | Hour [1-24]                    |  K  | Hour [0-11]                    |\n * |  l* | (deprecated)                   |  L  | Stand-alone month              |\n * |  m  | Minute                         |  M  | Month                          |\n * |  n  |                                |  N  |                                |\n * |  o! | Ordinal number modifier        |  O  | Timezone (GMT)                 |\n * |  p! | Long localized time            |  P! | Long localized date            |\n * |  q  | Stand-alone quarter            |  Q  | Quarter                        |\n * |  r* | Related Gregorian year         |  R! | ISO week-numbering year        |\n * |  s  | Second                         |  S  | Fraction of second             |\n * |  t! | Seconds timestamp              |  T! | Milliseconds timestamp         |\n * |  u  | Extended year                  |  U* | Cyclic year                    |\n * |  v* | Timezone (generic non-locat.)  |  V* | Timezone (location)            |\n * |  w  | Local week of year             |  W* | Week of month                  |\n * |  x  | Timezone (ISO-8601 w/o Z)      |  X  | Timezone (ISO-8601)            |\n * |  y  | Year (abs)                     |  Y  | Local week-numbering year      |\n * |  z  | Timezone (specific non-locat.) |  Z* | Timezone (aliases)             |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n *   i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n *   `R` is supposed to be used in conjunction with `I` and `i`\n *   for universal ISO week-numbering date, whereas\n *   `Y` is supposed to be used in conjunction with `w` and `e`\n *   for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nexport const formatters = {\n  // Era\n  G: function (date, token, localize) {\n    const era = date.getFullYear() > 0 ? 1 : 0;\n    switch (token) {\n      // AD, BC\n      case \"G\":\n      case \"GG\":\n      case \"GGG\":\n        return localize.era(era, { width: \"abbreviated\" });\n      // A, B\n      case \"GGGGG\":\n        return localize.era(era, { width: \"narrow\" });\n      // Anno Domini, Before Christ\n      case \"GGGG\":\n      default:\n        return localize.era(era, { width: \"wide\" });\n    }\n  },\n\n  // Year\n  y: function (date, token, localize) {\n    // Ordinal number\n    if (token === \"yo\") {\n      const signedYear = date.getFullYear();\n      // Returns 1 for 1 BC (which is year 0 in JavaScript)\n      const year = signedYear > 0 ? signedYear : 1 - signedYear;\n      return localize.ordinalNumber(year, { unit: \"year\" });\n    }\n\n    return lightFormatters.y(date, token);\n  },\n\n  // Local week-numbering year\n  Y: function (date, token, localize, options) {\n    const signedWeekYear = getWeekYear(date, options);\n    // Returns 1 for 1 BC (which is year 0 in JavaScript)\n    const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n    // Two digit year\n    if (token === \"YY\") {\n      const twoDigitYear = weekYear % 100;\n      return addLeadingZeros(twoDigitYear, 2);\n    }\n\n    // Ordinal number\n    if (token === \"Yo\") {\n      return localize.ordinalNumber(weekYear, { unit: \"year\" });\n    }\n\n    // Padding\n    return addLeadingZeros(weekYear, token.length);\n  },\n\n  // ISO week-numbering year\n  R: function (date, token) {\n    const isoWeekYear = getISOWeekYear(date);\n\n    // Padding\n    return addLeadingZeros(isoWeekYear, token.length);\n  },\n\n  // Extended year. This is a single number designating the year of this calendar system.\n  // The main difference between `y` and `u` localizers are B.C. years:\n  // | Year | `y` | `u` |\n  // |------|-----|-----|\n  // | AC 1 |   1 |   1 |\n  // | BC 1 |   1 |   0 |\n  // | BC 2 |   2 |  -1 |\n  // Also `yy` always returns the last two digits of a year,\n  // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n  u: function (date, token) {\n    const year = date.getFullYear();\n    return addLeadingZeros(year, token.length);\n  },\n\n  // Quarter\n  Q: function (date, token, localize) {\n    const quarter = Math.ceil((date.getMonth() + 1) / 3);\n    switch (token) {\n      // 1, 2, 3, 4\n      case \"Q\":\n        return String(quarter);\n      // 01, 02, 03, 04\n      case \"QQ\":\n        return addLeadingZeros(quarter, 2);\n      // 1st, 2nd, 3rd, 4th\n      case \"Qo\":\n        return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n      // Q1, Q2, Q3, Q4\n      case \"QQQ\":\n        return localize.quarter(quarter, {\n          width: \"abbreviated\",\n          context: \"formatting\",\n        });\n      // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n      case \"QQQQQ\":\n        return localize.quarter(quarter, {\n          width: \"narrow\",\n          context: \"formatting\",\n        });\n      // 1st quarter, 2nd quarter, ...\n      case \"QQQQ\":\n      default:\n        return localize.quarter(quarter, {\n          width: \"wide\",\n          context: \"formatting\",\n        });\n    }\n  },\n\n  // Stand-alone quarter\n  q: function (date, token, localize) {\n    const quarter = Math.ceil((date.getMonth() + 1) / 3);\n    switch (token) {\n      // 1, 2, 3, 4\n      case \"q\":\n        return String(quarter);\n      // 01, 02, 03, 04\n      case \"qq\":\n        return addLeadingZeros(quarter, 2);\n      // 1st, 2nd, 3rd, 4th\n      case \"qo\":\n        return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n      // Q1, Q2, Q3, Q4\n      case \"qqq\":\n        return localize.quarter(quarter, {\n          width: \"abbreviated\",\n          context: \"standalone\",\n        });\n      // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n      case \"qqqqq\":\n        return localize.quarter(quarter, {\n          width: \"narrow\",\n          context: \"standalone\",\n        });\n      // 1st quarter, 2nd quarter, ...\n      case \"qqqq\":\n      default:\n        return localize.quarter(quarter, {\n          width: \"wide\",\n          context: \"standalone\",\n        });\n    }\n  },\n\n  // Month\n  M: function (date, token, localize) {\n    const month = date.getMonth();\n    switch (token) {\n      case \"M\":\n      case \"MM\":\n        return lightFormatters.M(date, token);\n      // 1st, 2nd, ..., 12th\n      case \"Mo\":\n        return localize.ordinalNumber(month + 1, { unit: \"month\" });\n      // Jan, Feb, ..., Dec\n      case \"MMM\":\n        return localize.month(month, {\n          width: \"abbreviated\",\n          context: \"formatting\",\n        });\n      // J, F, ..., D\n      case \"MMMMM\":\n        return localize.month(month, {\n          width: \"narrow\",\n          context: \"formatting\",\n        });\n      // January, February, ..., December\n      case \"MMMM\":\n      default:\n        return localize.month(month, { width: \"wide\", context: \"formatting\" });\n    }\n  },\n\n  // Stand-alone month\n  L: function (date, token, localize) {\n    const month = date.getMonth();\n    switch (token) {\n      // 1, 2, ..., 12\n      case \"L\":\n        return String(month + 1);\n      // 01, 02, ..., 12\n      case \"LL\":\n        return addLeadingZeros(month + 1, 2);\n      // 1st, 2nd, ..., 12th\n      case \"Lo\":\n        return localize.ordinalNumber(month + 1, { unit: \"month\" });\n      // Jan, Feb, ..., Dec\n      case \"LLL\":\n        return localize.month(month, {\n          width: \"abbreviated\",\n          context: \"standalone\",\n        });\n      // J, F, ..., D\n      case \"LLLLL\":\n        return localize.month(month, {\n          width: \"narrow\",\n          context: \"standalone\",\n        });\n      // January, February, ..., December\n      case \"LLLL\":\n      default:\n        return localize.month(month, { width: \"wide\", context: \"standalone\" });\n    }\n  },\n\n  // Local week of year\n  w: function (date, token, localize, options) {\n    const week = getWeek(date, options);\n\n    if (token === \"wo\") {\n      return localize.ordinalNumber(week, { unit: \"week\" });\n    }\n\n    return addLeadingZeros(week, token.length);\n  },\n\n  // ISO week of year\n  I: function (date, token, localize) {\n    const isoWeek = getISOWeek(date);\n\n    if (token === \"Io\") {\n      return localize.ordinalNumber(isoWeek, { unit: \"week\" });\n    }\n\n    return addLeadingZeros(isoWeek, token.length);\n  },\n\n  // Day of the month\n  d: function (date, token, localize) {\n    if (token === \"do\") {\n      return localize.ordinalNumber(date.getDate(), { unit: \"date\" });\n    }\n\n    return lightFormatters.d(date, token);\n  },\n\n  // Day of year\n  D: function (date, token, localize) {\n    const dayOfYear = getDayOfYear(date);\n\n    if (token === \"Do\") {\n      return localize.ordinalNumber(dayOfYear, { unit: \"dayOfYear\" });\n    }\n\n    return addLeadingZeros(dayOfYear, token.length);\n  },\n\n  // Day of week\n  E: function (date, token, localize) {\n    const dayOfWeek = date.getDay();\n    switch (token) {\n      // Tue\n      case \"E\":\n      case \"EE\":\n      case \"EEE\":\n        return localize.day(dayOfWeek, {\n          width: \"abbreviated\",\n          context: \"formatting\",\n        });\n      // T\n      case \"EEEEE\":\n        return localize.day(dayOfWeek, {\n          width: \"narrow\",\n          context: \"formatting\",\n        });\n      // Tu\n      case \"EEEEEE\":\n        return localize.day(dayOfWeek, {\n          width: \"short\",\n          context: \"formatting\",\n        });\n      // Tuesday\n      case \"EEEE\":\n      default:\n        return localize.day(dayOfWeek, {\n          width: \"wide\",\n          context: \"formatting\",\n        });\n    }\n  },\n\n  // Local day of week\n  e: function (date, token, localize, options) {\n    const dayOfWeek = date.getDay();\n    const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n    switch (token) {\n      // Numerical value (Nth day of week with current locale or weekStartsOn)\n      case \"e\":\n        return String(localDayOfWeek);\n      // Padded numerical value\n      case \"ee\":\n        return addLeadingZeros(localDayOfWeek, 2);\n      // 1st, 2nd, ..., 7th\n      case \"eo\":\n        return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n      case \"eee\":\n        return localize.day(dayOfWeek, {\n          width: \"abbreviated\",\n          context: \"formatting\",\n        });\n      // T\n      case \"eeeee\":\n        return localize.day(dayOfWeek, {\n          width: \"narrow\",\n          context: \"formatting\",\n        });\n      // Tu\n      case \"eeeeee\":\n        return localize.day(dayOfWeek, {\n          width: \"short\",\n          context: \"formatting\",\n        });\n      // Tuesday\n      case \"eeee\":\n      default:\n        return localize.day(dayOfWeek, {\n          width: \"wide\",\n          context: \"formatting\",\n        });\n    }\n  },\n\n  // Stand-alone local day of week\n  c: function (date, token, localize, options) {\n    const dayOfWeek = date.getDay();\n    const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n    switch (token) {\n      // Numerical value (same as in `e`)\n      case \"c\":\n        return String(localDayOfWeek);\n      // Padded numerical value\n      case \"cc\":\n        return addLeadingZeros(localDayOfWeek, token.length);\n      // 1st, 2nd, ..., 7th\n      case \"co\":\n        return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n      case \"ccc\":\n        return localize.day(dayOfWeek, {\n          width: \"abbreviated\",\n          context: \"standalone\",\n        });\n      // T\n      case \"ccccc\":\n        return localize.day(dayOfWeek, {\n          width: \"narrow\",\n          context: \"standalone\",\n        });\n      // Tu\n      case \"cccccc\":\n        return localize.day(dayOfWeek, {\n          width: \"short\",\n          context: \"standalone\",\n        });\n      // Tuesday\n      case \"cccc\":\n      default:\n        return localize.day(dayOfWeek, {\n          width: \"wide\",\n          context: \"standalone\",\n        });\n    }\n  },\n\n  // ISO day of week\n  i: function (date, token, localize) {\n    const dayOfWeek = date.getDay();\n    const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n    switch (token) {\n      // 2\n      case \"i\":\n        return String(isoDayOfWeek);\n      // 02\n      case \"ii\":\n        return addLeadingZeros(isoDayOfWeek, token.length);\n      // 2nd\n      case \"io\":\n        return localize.ordinalNumber(isoDayOfWeek, { unit: \"day\" });\n      // Tue\n      case \"iii\":\n        return localize.day(dayOfWeek, {\n          width: \"abbreviated\",\n          context: \"formatting\",\n        });\n      // T\n      case \"iiiii\":\n        return localize.day(dayOfWeek, {\n          width: \"narrow\",\n          context: \"formatting\",\n        });\n      // Tu\n      case \"iiiiii\":\n        return localize.day(dayOfWeek, {\n          width: \"short\",\n          context: \"formatting\",\n        });\n      // Tuesday\n      case \"iiii\":\n      default:\n        return localize.day(dayOfWeek, {\n          width: \"wide\",\n          context: \"formatting\",\n        });\n    }\n  },\n\n  // AM or PM\n  a: function (date, token, localize) {\n    const hours = date.getHours();\n    const dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n\n    switch (token) {\n      case \"a\":\n      case \"aa\":\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"abbreviated\",\n          context: \"formatting\",\n        });\n      case \"aaa\":\n        return localize\n          .dayPeriod(dayPeriodEnumValue, {\n            width: \"abbreviated\",\n            context: \"formatting\",\n          })\n          .toLowerCase();\n      case \"aaaaa\":\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"narrow\",\n          context: \"formatting\",\n        });\n      case \"aaaa\":\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"wide\",\n          context: \"formatting\",\n        });\n    }\n  },\n\n  // AM, PM, midnight, noon\n  b: function (date, token, localize) {\n    const hours = date.getHours();\n    let dayPeriodEnumValue;\n    if (hours === 12) {\n      dayPeriodEnumValue = dayPeriodEnum.noon;\n    } else if (hours === 0) {\n      dayPeriodEnumValue = dayPeriodEnum.midnight;\n    } else {\n      dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n    }\n\n    switch (token) {\n      case \"b\":\n      case \"bb\":\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"abbreviated\",\n          context: \"formatting\",\n        });\n      case \"bbb\":\n        return localize\n          .dayPeriod(dayPeriodEnumValue, {\n            width: \"abbreviated\",\n            context: \"formatting\",\n          })\n          .toLowerCase();\n      case \"bbbbb\":\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"narrow\",\n          context: \"formatting\",\n        });\n      case \"bbbb\":\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"wide\",\n          context: \"formatting\",\n        });\n    }\n  },\n\n  // in the morning, in the afternoon, in the evening, at night\n  B: function (date, token, localize) {\n    const hours = date.getHours();\n    let dayPeriodEnumValue;\n    if (hours >= 17) {\n      dayPeriodEnumValue = dayPeriodEnum.evening;\n    } else if (hours >= 12) {\n      dayPeriodEnumValue = dayPeriodEnum.afternoon;\n    } else if (hours >= 4) {\n      dayPeriodEnumValue = dayPeriodEnum.morning;\n    } else {\n      dayPeriodEnumValue = dayPeriodEnum.night;\n    }\n\n    switch (token) {\n      case \"B\":\n      case \"BB\":\n      case \"BBB\":\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"abbreviated\",\n          context: \"formatting\",\n        });\n      case \"BBBBB\":\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"narrow\",\n          context: \"formatting\",\n        });\n      case \"BBBB\":\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: \"wide\",\n          context: \"formatting\",\n        });\n    }\n  },\n\n  // Hour [1-12]\n  h: function (date, token, localize) {\n    if (token === \"ho\") {\n      let hours = date.getHours() % 12;\n      if (hours === 0) hours = 12;\n      return localize.ordinalNumber(hours, { unit: \"hour\" });\n    }\n\n    return lightFormatters.h(date, token);\n  },\n\n  // Hour [0-23]\n  H: function (date, token, localize) {\n    if (token === \"Ho\") {\n      return localize.ordinalNumber(date.getHours(), { unit: \"hour\" });\n    }\n\n    return lightFormatters.H(date, token);\n  },\n\n  // Hour [0-11]\n  K: function (date, token, localize) {\n    const hours = date.getHours() % 12;\n\n    if (token === \"Ko\") {\n      return localize.ordinalNumber(hours, { unit: \"hour\" });\n    }\n\n    return addLeadingZeros(hours, token.length);\n  },\n\n  // Hour [1-24]\n  k: function (date, token, localize) {\n    let hours = date.getHours();\n    if (hours === 0) hours = 24;\n\n    if (token === \"ko\") {\n      return localize.ordinalNumber(hours, { unit: \"hour\" });\n    }\n\n    return addLeadingZeros(hours, token.length);\n  },\n\n  // Minute\n  m: function (date, token, localize) {\n    if (token === \"mo\") {\n      return localize.ordinalNumber(date.getMinutes(), { unit: \"minute\" });\n    }\n\n    return lightFormatters.m(date, token);\n  },\n\n  // Second\n  s: function (date, token, localize) {\n    if (token === \"so\") {\n      return localize.ordinalNumber(date.getSeconds(), { unit: \"second\" });\n    }\n\n    return lightFormatters.s(date, token);\n  },\n\n  // Fraction of second\n  S: function (date, token) {\n    return lightFormatters.S(date, token);\n  },\n\n  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n  X: function (date, token, _localize) {\n    const timezoneOffset = date.getTimezoneOffset();\n\n    if (timezoneOffset === 0) {\n      return \"Z\";\n    }\n\n    switch (token) {\n      // Hours and optional minutes\n      case \"X\":\n        return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n      // Hours, minutes and optional seconds without `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `XX`\n      case \"XXXX\":\n      case \"XX\": // Hours and minutes without `:` delimiter\n        return formatTimezone(timezoneOffset);\n\n      // Hours, minutes and optional seconds with `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `XXX`\n      case \"XXXXX\":\n      case \"XXX\": // Hours and minutes with `:` delimiter\n      default:\n        return formatTimezone(timezoneOffset, \":\");\n    }\n  },\n\n  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n  x: function (date, token, _localize) {\n    const timezoneOffset = date.getTimezoneOffset();\n\n    switch (token) {\n      // Hours and optional minutes\n      case \"x\":\n        return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n      // Hours, minutes and optional seconds without `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `xx`\n      case \"xxxx\":\n      case \"xx\": // Hours and minutes without `:` delimiter\n        return formatTimezone(timezoneOffset);\n\n      // Hours, minutes and optional seconds with `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `xxx`\n      case \"xxxxx\":\n      case \"xxx\": // Hours and minutes with `:` delimiter\n      default:\n        return formatTimezone(timezoneOffset, \":\");\n    }\n  },\n\n  // Timezone (GMT)\n  O: function (date, token, _localize) {\n    const timezoneOffset = date.getTimezoneOffset();\n\n    switch (token) {\n      // Short\n      case \"O\":\n      case \"OO\":\n      case \"OOO\":\n        return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n      // Long\n      case \"OOOO\":\n      default:\n        return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n    }\n  },\n\n  // Timezone (specific non-location)\n  z: function (date, token, _localize) {\n    const timezoneOffset = date.getTimezoneOffset();\n\n    switch (token) {\n      // Short\n      case \"z\":\n      case \"zz\":\n      case \"zzz\":\n        return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n      // Long\n      case \"zzzz\":\n      default:\n        return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n    }\n  },\n\n  // Seconds timestamp\n  t: function (date, token, _localize) {\n    const timestamp = Math.trunc(date.getTime() / 1000);\n    return addLeadingZeros(timestamp, token.length);\n  },\n\n  // Milliseconds timestamp\n  T: function (date, token, _localize) {\n    const timestamp = date.getTime();\n    return addLeadingZeros(timestamp, token.length);\n  },\n};\n\nfunction formatTimezoneShort(offset, delimiter = \"\") {\n  const sign = offset > 0 ? \"-\" : \"+\";\n  const absOffset = Math.abs(offset);\n  const hours = Math.trunc(absOffset / 60);\n  const minutes = absOffset % 60;\n  if (minutes === 0) {\n    return sign + String(hours);\n  }\n  return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\n\nfunction formatTimezoneWithOptionalMinutes(offset, delimiter) {\n  if (offset % 60 === 0) {\n    const sign = offset > 0 ? \"-\" : \"+\";\n    return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n  }\n  return formatTimezone(offset, delimiter);\n}\n\nfunction formatTimezone(offset, delimiter = \"\") {\n  const sign = offset > 0 ? \"-\" : \"+\";\n  const absOffset = Math.abs(offset);\n  const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);\n  const minutes = addLeadingZeros(absOffset % 60, 2);\n  return sign + hours + delimiter + minutes;\n}\n", "const dateLongFormatter = (pattern, formatLong) => {\n  switch (pattern) {\n    case \"P\":\n      return formatLong.date({ width: \"short\" });\n    case \"PP\":\n      return formatLong.date({ width: \"medium\" });\n    case \"PPP\":\n      return formatLong.date({ width: \"long\" });\n    case \"PPPP\":\n    default:\n      return formatLong.date({ width: \"full\" });\n  }\n};\n\nconst timeLongFormatter = (pattern, formatLong) => {\n  switch (pattern) {\n    case \"p\":\n      return formatLong.time({ width: \"short\" });\n    case \"pp\":\n      return formatLong.time({ width: \"medium\" });\n    case \"ppp\":\n      return formatLong.time({ width: \"long\" });\n    case \"pppp\":\n    default:\n      return formatLong.time({ width: \"full\" });\n  }\n};\n\nconst dateTimeLongFormatter = (pattern, formatLong) => {\n  const matchResult = pattern.match(/(P+)(p+)?/) || [];\n  const datePattern = matchResult[1];\n  const timePattern = matchResult[2];\n\n  if (!timePattern) {\n    return dateLongFormatter(pattern, formatLong);\n  }\n\n  let dateTimeFormat;\n\n  switch (datePattern) {\n    case \"P\":\n      dateTimeFormat = formatLong.dateTime({ width: \"short\" });\n      break;\n    case \"PP\":\n      dateTimeFormat = formatLong.dateTime({ width: \"medium\" });\n      break;\n    case \"PPP\":\n      dateTimeFormat = formatLong.dateTime({ width: \"long\" });\n      break;\n    case \"PPPP\":\n    default:\n      dateTimeFormat = formatLong.dateTime({ width: \"full\" });\n      break;\n  }\n\n  return dateTimeFormat\n    .replace(\"{{date}}\", dateLongFormatter(datePattern, formatLong))\n    .replace(\"{{time}}\", timeLongFormatter(timePattern, formatLong));\n};\n\nexport const longFormatters = {\n  p: timeLongFormatter,\n  P: dateTimeLongFormatter,\n};\n", "const dayOfYearTokenRE = /^D+$/;\nconst weekYearTokenRE = /^Y+$/;\n\nconst throwTokens = [\"D\", \"DD\", \"YY\", \"YYYY\"];\n\nexport function isProtectedDayOfYearToken(token) {\n  return dayOfYearTokenRE.test(token);\n}\n\nexport function isProtectedWeekYearToken(token) {\n  return weekYearTokenRE.test(token);\n}\n\nexport function warnOrThrowProtectedError(token, format, input) {\n  const _message = message(token, format, input);\n  console.warn(_message);\n  if (throwTokens.includes(token)) throw new RangeError(_message);\n}\n\nfunction message(token, format, input) {\n  const subject = token[0] === \"Y\" ? \"years\" : \"days of the month\";\n  return `Use \\`${token.toLowerCase()}\\` instead of \\`${token}\\` (in \\`${format}\\`) for formatting ${subject} to the input \\`${input}\\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;\n}\n", "import { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\nimport { formatters } from \"./_lib/format/formatters.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n  isProtectedDayOfYearToken,\n  isProtectedWeekYearToken,\n  warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { isValid } from \"./isValid.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n//   (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n//   except a single quote symbol, which ends the sequence.\n//   Two quote characters do not end the sequence.\n//   If there is no matching single quote\n//   then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n  /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > \u26A0\uFE0F Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit                            | Pattern | Result examples                   | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era                             | G..GGG  | AD, BC                            |       |\n * |                                 | GGGG    | Anno Domini, Before Christ        | 2     |\n * |                                 | GGGGG   | A, B                              |       |\n * | Calendar year                   | y       | 44, 1, 1900, 2017                 | 5     |\n * |                                 | yo      | 44th, 1st, 0th, 17th              | 5,7   |\n * |                                 | yy      | 44, 01, 00, 17                    | 5     |\n * |                                 | yyy     | 044, 001, 1900, 2017              | 5     |\n * |                                 | yyyy    | 0044, 0001, 1900, 2017            | 5     |\n * |                                 | yyyyy   | ...                               | 3,5   |\n * | Local week-numbering year       | Y       | 44, 1, 1900, 2017                 | 5     |\n * |                                 | Yo      | 44th, 1st, 1900th, 2017th         | 5,7   |\n * |                                 | YY      | 44, 01, 00, 17                    | 5,8   |\n * |                                 | YYY     | 044, 001, 1900, 2017              | 5     |\n * |                                 | YYYY    | 0044, 0001, 1900, 2017            | 5,8   |\n * |                                 | YYYYY   | ...                               | 3,5   |\n * | ISO week-numbering year         | R       | -43, 0, 1, 1900, 2017             | 5,7   |\n * |                                 | RR      | -43, 00, 01, 1900, 2017           | 5,7   |\n * |                                 | RRR     | -043, 000, 001, 1900, 2017        | 5,7   |\n * |                                 | RRRR    | -0043, 0000, 0001, 1900, 2017     | 5,7   |\n * |                                 | RRRRR   | ...                               | 3,5,7 |\n * | Extended year                   | u       | -43, 0, 1, 1900, 2017             | 5     |\n * |                                 | uu      | -43, 01, 1900, 2017               | 5     |\n * |                                 | uuu     | -043, 001, 1900, 2017             | 5     |\n * |                                 | uuuu    | -0043, 0001, 1900, 2017           | 5     |\n * |                                 | uuuuu   | ...                               | 3,5   |\n * | Quarter (formatting)            | Q       | 1, 2, 3, 4                        |       |\n * |                                 | Qo      | 1st, 2nd, 3rd, 4th                | 7     |\n * |                                 | QQ      | 01, 02, 03, 04                    |       |\n * |                                 | QQQ     | Q1, Q2, Q3, Q4                    |       |\n * |                                 | QQQQ    | 1st quarter, 2nd quarter, ...     | 2     |\n * |                                 | QQQQQ   | 1, 2, 3, 4                        | 4     |\n * | Quarter (stand-alone)           | q       | 1, 2, 3, 4                        |       |\n * |                                 | qo      | 1st, 2nd, 3rd, 4th                | 7     |\n * |                                 | qq      | 01, 02, 03, 04                    |       |\n * |                                 | qqq     | Q1, Q2, Q3, Q4                    |       |\n * |                                 | qqqq    | 1st quarter, 2nd quarter, ...     | 2     |\n * |                                 | qqqqq   | 1, 2, 3, 4                        | 4     |\n * | Month (formatting)              | M       | 1, 2, ..., 12                     |       |\n * |                                 | Mo      | 1st, 2nd, ..., 12th               | 7     |\n * |                                 | MM      | 01, 02, ..., 12                   |       |\n * |                                 | MMM     | Jan, Feb, ..., Dec                |       |\n * |                                 | MMMM    | January, February, ..., December  | 2     |\n * |                                 | MMMMM   | J, F, ..., D                      |       |\n * | Month (stand-alone)             | L       | 1, 2, ..., 12                     |       |\n * |                                 | Lo      | 1st, 2nd, ..., 12th               | 7     |\n * |                                 | LL      | 01, 02, ..., 12                   |       |\n * |                                 | LLL     | Jan, Feb, ..., Dec                |       |\n * |                                 | LLLL    | January, February, ..., December  | 2     |\n * |                                 | LLLLL   | J, F, ..., D                      |       |\n * | Local week of year              | w       | 1, 2, ..., 53                     |       |\n * |                                 | wo      | 1st, 2nd, ..., 53th               | 7     |\n * |                                 | ww      | 01, 02, ..., 53                   |       |\n * | ISO week of year                | I       | 1, 2, ..., 53                     | 7     |\n * |                                 | Io      | 1st, 2nd, ..., 53th               | 7     |\n * |                                 | II      | 01, 02, ..., 53                   | 7     |\n * | Day of month                    | d       | 1, 2, ..., 31                     |       |\n * |                                 | do      | 1st, 2nd, ..., 31st               | 7     |\n * |                                 | dd      | 01, 02, ..., 31                   |       |\n * | Day of year                     | D       | 1, 2, ..., 365, 366               | 9     |\n * |                                 | Do      | 1st, 2nd, ..., 365th, 366th       | 7     |\n * |                                 | DD      | 01, 02, ..., 365, 366             | 9     |\n * |                                 | DDD     | 001, 002, ..., 365, 366           |       |\n * |                                 | DDDD    | ...                               | 3     |\n * | Day of week (formatting)        | E..EEE  | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | EEEE    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | EEEEE   | M, T, W, T, F, S, S               |       |\n * |                                 | EEEEEE  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | ISO day of week (formatting)    | i       | 1, 2, 3, ..., 7                   | 7     |\n * |                                 | io      | 1st, 2nd, ..., 7th                | 7     |\n * |                                 | ii      | 01, 02, ..., 07                   | 7     |\n * |                                 | iii     | Mon, Tue, Wed, ..., Sun           | 7     |\n * |                                 | iiii    | Monday, Tuesday, ..., Sunday      | 2,7   |\n * |                                 | iiiii   | M, T, W, T, F, S, S               | 7     |\n * |                                 | iiiiii  | Mo, Tu, We, Th, Fr, Sa, Su        | 7     |\n * | Local day of week (formatting)  | e       | 2, 3, 4, ..., 1                   |       |\n * |                                 | eo      | 2nd, 3rd, ..., 1st                | 7     |\n * |                                 | ee      | 02, 03, ..., 01                   |       |\n * |                                 | eee     | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | eeee    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | eeeee   | M, T, W, T, F, S, S               |       |\n * |                                 | eeeeee  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | Local day of week (stand-alone) | c       | 2, 3, 4, ..., 1                   |       |\n * |                                 | co      | 2nd, 3rd, ..., 1st                | 7     |\n * |                                 | cc      | 02, 03, ..., 01                   |       |\n * |                                 | ccc     | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | cccc    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | ccccc   | M, T, W, T, F, S, S               |       |\n * |                                 | cccccc  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | AM, PM                          | a..aa   | AM, PM                            |       |\n * |                                 | aaa     | am, pm                            |       |\n * |                                 | aaaa    | a.m., p.m.                        | 2     |\n * |                                 | aaaaa   | a, p                              |       |\n * | AM, PM, noon, midnight          | b..bb   | AM, PM, noon, midnight            |       |\n * |                                 | bbb     | am, pm, noon, midnight            |       |\n * |                                 | bbbb    | a.m., p.m., noon, midnight        | 2     |\n * |                                 | bbbbb   | a, p, n, mi                       |       |\n * | Flexible day period             | B..BBB  | at night, in the morning, ...     |       |\n * |                                 | BBBB    | at night, in the morning, ...     | 2     |\n * |                                 | BBBBB   | at night, in the morning, ...     |       |\n * | Hour [1-12]                     | h       | 1, 2, ..., 11, 12                 |       |\n * |                                 | ho      | 1st, 2nd, ..., 11th, 12th         | 7     |\n * |                                 | hh      | 01, 02, ..., 11, 12               |       |\n * | Hour [0-23]                     | H       | 0, 1, 2, ..., 23                  |       |\n * |                                 | Ho      | 0th, 1st, 2nd, ..., 23rd          | 7     |\n * |                                 | HH      | 00, 01, 02, ..., 23               |       |\n * | Hour [0-11]                     | K       | 1, 2, ..., 11, 0                  |       |\n * |                                 | Ko      | 1st, 2nd, ..., 11th, 0th          | 7     |\n * |                                 | KK      | 01, 02, ..., 11, 00               |       |\n * | Hour [1-24]                     | k       | 24, 1, 2, ..., 23                 |       |\n * |                                 | ko      | 24th, 1st, 2nd, ..., 23rd         | 7     |\n * |                                 | kk      | 24, 01, 02, ..., 23               |       |\n * | Minute                          | m       | 0, 1, ..., 59                     |       |\n * |                                 | mo      | 0th, 1st, ..., 59th               | 7     |\n * |                                 | mm      | 00, 01, ..., 59                   |       |\n * | Second                          | s       | 0, 1, ..., 59                     |       |\n * |                                 | so      | 0th, 1st, ..., 59th               | 7     |\n * |                                 | ss      | 00, 01, ..., 59                   |       |\n * | Fraction of second              | S       | 0, 1, ..., 9                      |       |\n * |                                 | SS      | 00, 01, ..., 99                   |       |\n * |                                 | SSS     | 000, 001, ..., 999                |       |\n * |                                 | SSSS    | ...                               | 3     |\n * | Timezone (ISO-8601 w/ Z)        | X       | -08, +0530, Z                     |       |\n * |                                 | XX      | -0800, +0530, Z                   |       |\n * |                                 | XXX     | -08:00, +05:30, Z                 |       |\n * |                                 | XXXX    | -0800, +0530, Z, +123456          | 2     |\n * |                                 | XXXXX   | -08:00, +05:30, Z, +12:34:56      |       |\n * | Timezone (ISO-8601 w/o Z)       | x       | -08, +0530, +00                   |       |\n * |                                 | xx      | -0800, +0530, +0000               |       |\n * |                                 | xxx     | -08:00, +05:30, +00:00            | 2     |\n * |                                 | xxxx    | -0800, +0530, +0000, +123456      |       |\n * |                                 | xxxxx   | -08:00, +05:30, +00:00, +12:34:56 |       |\n * | Timezone (GMT)                  | O...OOO | GMT-8, GMT+5:30, GMT+0            |       |\n * |                                 | OOOO    | GMT-08:00, GMT+05:30, GMT+00:00   | 2     |\n * | Timezone (specific non-locat.)  | z...zzz | GMT-8, GMT+5:30, GMT+0            | 6     |\n * |                                 | zzzz    | GMT-08:00, GMT+05:30, GMT+00:00   | 2,6   |\n * | Seconds timestamp               | t       | 512969520                         | 7     |\n * |                                 | tt      | ...                               | 3,7   |\n * | Milliseconds timestamp          | T       | 512969520900                      | 7     |\n * |                                 | TT      | ...                               | 3,7   |\n * | Long localized date             | P       | 04/29/1453                        | 7     |\n * |                                 | PP      | Apr 29, 1453                      | 7     |\n * |                                 | PPP     | April 29th, 1453                  | 7     |\n * |                                 | PPPP    | Friday, April 29th, 1453          | 2,7   |\n * | Long localized time             | p       | 12:00 AM                          | 7     |\n * |                                 | pp      | 12:00:00 AM                       | 7     |\n * |                                 | ppp     | 12:00:00 AM GMT+2                 | 7     |\n * |                                 | pppp    | 12:00:00 AM GMT+02:00             | 2,7   |\n * | Combination of date and time    | Pp      | 04/29/1453, 12:00 AM              | 7     |\n * |                                 | PPpp    | Apr 29, 1453, 12:00:00 AM         | 7     |\n * |                                 | PPPppp  | April 29th, 1453 at ...           | 7     |\n * |                                 | PPPPpppp| Friday, April 29th, 1453 at ...   | 2,7   |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n *    are the same as \"stand-alone\" units, but are different in some languages.\n *    \"Formatting\" units are declined according to the rules of the language\n *    in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n *    `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n *    `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n *    the single quote characters (see below).\n *    If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n *    the output will be the same as default pattern for this unit, usually\n *    the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n *    are marked with \"2\" in the last column of the table.\n *\n *    `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n *    The output will be padded with zeros to match the length of the pattern.\n *\n *    `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n *    These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n *    | Year | `y` | `u` |\n *    |------|-----|-----|\n *    | AC 1 |   1 |   1 |\n *    | BC 1 |   1 |   0 |\n *    | BC 2 |   2 |  -1 |\n *\n *    Also `yy` always returns the last two digits of a year,\n *    while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n *    | Year | `yy` | `uu` |\n *    |------|------|------|\n *    | 1    |   01 |   01 |\n *    | 14   |   14 |   14 |\n *    | 376  |   76 |  376 |\n *    | 1453 |   53 | 1453 |\n *\n *    The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n *    except local week-numbering years are dependent on `options.weekStartsOn`\n *    and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n *    and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n *    so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n *    - `i`: ISO day of week\n *    - `I`: ISO week of year\n *    - `R`: ISO week-numbering year\n *    - `t`: seconds timestamp\n *    - `T`: milliseconds timestamp\n *    - `o`: ordinal number modifier\n *    - `P`: long localized date\n *    - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n *    You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n *    You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws 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\n * @throws 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\n * @throws 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\n * @throws 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\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n *   locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n  const defaultOptions = getDefaultOptions();\n  const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n  const firstWeekContainsDate =\n    options?.firstWeekContainsDate ??\n    options?.locale?.options?.firstWeekContainsDate ??\n    defaultOptions.firstWeekContainsDate ??\n    defaultOptions.locale?.options?.firstWeekContainsDate ??\n    1;\n\n  const weekStartsOn =\n    options?.weekStartsOn ??\n    options?.locale?.options?.weekStartsOn ??\n    defaultOptions.weekStartsOn ??\n    defaultOptions.locale?.options?.weekStartsOn ??\n    0;\n\n  const originalDate = toDate(date);\n\n  if (!isValid(originalDate)) {\n    throw new RangeError(\"Invalid time value\");\n  }\n\n  let parts = formatStr\n    .match(longFormattingTokensRegExp)\n    .map((substring) => {\n      const firstCharacter = substring[0];\n      if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n        const longFormatter = longFormatters[firstCharacter];\n        return longFormatter(substring, locale.formatLong);\n      }\n      return substring;\n    })\n    .join(\"\")\n    .match(formattingTokensRegExp)\n    .map((substring) => {\n      // Replace two single quote characters with one single quote character\n      if (substring === \"''\") {\n        return { isToken: false, value: \"'\" };\n      }\n\n      const firstCharacter = substring[0];\n      if (firstCharacter === \"'\") {\n        return { isToken: false, value: cleanEscapedString(substring) };\n      }\n\n      if (formatters[firstCharacter]) {\n        return { isToken: true, value: substring };\n      }\n\n      if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n        throw new RangeError(\n          \"Format string contains an unescaped latin alphabet character `\" +\n            firstCharacter +\n            \"`\",\n        );\n      }\n\n      return { isToken: false, value: substring };\n    });\n\n  // invoke localize preprocessor (only for french locales at the moment)\n  if (locale.localize.preprocessor) {\n    parts = locale.localize.preprocessor(originalDate, parts);\n  }\n\n  const formatterOptions = {\n    firstWeekContainsDate,\n    weekStartsOn,\n    locale,\n  };\n\n  return parts\n    .map((part) => {\n      if (!part.isToken) return part.value;\n\n      const token = part.value;\n\n      if (\n        (!options?.useAdditionalWeekYearTokens &&\n          isProtectedWeekYearToken(token)) ||\n        (!options?.useAdditionalDayOfYearTokens &&\n          isProtectedDayOfYearToken(token))\n      ) {\n        warnOrThrowProtectedError(token, formatStr, String(date));\n      }\n\n      const formatter = formatters[token[0]];\n      return formatter(originalDate, token, locale.localize, formatterOptions);\n    })\n    .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n  const matched = input.match(escapedStringRegExp);\n\n  if (!matched) {\n    return input;\n  }\n\n  return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n", "export default class Matcher {\n    constructor(rule) {\n        this.type = this.determineMatcherType(rule)\n        this.rule = rule;\n    }\n\n    passes(date) {\n        date = this.createDateWithoutTime(date)\n        if (this.type == 'dates') {\n            return this.rule.dates.some(element =>  date.getTime() == this.createDateWithoutTime(element).getTime());\n        } else if (this.type == 'range') {\n            if (this.rule.before != null && date.getTime() < this.createDateWithoutTime(this.rule.before).getTime()) {\n                return true\n            }\n            if (this.rule.after != null && date.getTime() > this.createDateWithoutTime(this.rule.after).getTime()) {\n                return true\n            }\n\n            return false\n        } else if (this.type == 'dayOfWeek') {\n            if (typeof this.rule.dayOfWeek == 'number') {\n               return date.getDay() == this.rule.dayOfWeek\n            }else{\n                return this.rule.dayOfWeek.some(rule => rule == date.getDay())\n            }\n        }\n\n        return false\n    }\n\n    determineMatcherType(rule) {\n        if (rule.dates != undefined && Array.isArray(rule.dates)) {\n            return \"dates\"\n        } else if (rule.before != undefined || rule.after != undefined) {\n            return \"range\"\n        } else if (rule.dayOfWeek != undefined) {\n            return \"dayOfWeek\"\n        }\n    }\n\n    createDateWithoutTime(value) {\n        let date = new Date(value)\n        date.setHours(0,0,0,0);\n\n        return date;\n    }\n}\n", "export default class MultipleModeHandler {\n    constructor(required, min, max) {\n        this.min = min\n        this.max = max\n        this._value = [];\n        this.required = !!required;\n    }\n\n    get value() {\n        return this._value\n    }\n\n    set value(value) {\n        if (!Array.isArray(value)) {\n            console.warn('Selected type supplied to calendar in multiple mode is not an array')\n            return\n        }\n        value.forEach(item => {\n            const processDate = (input) => {\n                if (input == null) return null;\n                if (typeof input === \"string\") return this.createDateWithoutTime(input);\n                if (input instanceof Date) return input;\n                console.warn(\"Item is not a date or date string, skipping\");\n                return null;\n            };\n            item = processDate(item)\n            if (this.isSelectedDay(item)) {\n                return;\n            }\n\n            this._value.push(item)\n        });\n    }\n\n    isDisabled(date) {\n        if (this.max && this.max <= this._value.length) {\n            return !this.isSelectedDay(date)\n        }\n    }\n\n    indexOfDateInValue(array, value) {\n        for (let index = 0; index < array.length; index++) {\n            const date = array[index];\n\n            if (date.getTime() === value.getTime()) {\n                return index;\n            }\n        }\n\n        return -1;\n    }\n\n    dayClicked(date) {\n        let index = this.indexOfDateInValue(this._value, date)\n        if (index >= 0) {\n            this._value.splice(index, 1);\n        } else {\n            this._value.push(date)\n        }\n\n        return true;\n    }\n\n    isSelectedDay(date) {\n        return this.indexOfDateInValue(this._value, date) >= 0;\n    }\n\n    createDateWithoutTime(value) {\n        let date = new Date(value)\n        date.setHours(0, 0, 0, 0);\n\n        return date;\n    }\n}\n", "export default class RangeModeHandler {\n    constructor(required, min, max) {\n        this.min = min\n        this.max = max\n        this.required = !!required;\n    }\n\n    dayClicked(date) {\n        if (this._value.from == null || (this._value.to != null && this._value.to.getTime() == date.getTime())) {\n            this._value.from = date\n            this._value.to = null\n            return true;\n        }\n\n        if (this._value.from.getTime() == date.getTime()) {\n            this._value.from = this.required ? this._value.from : null\n            this._value.to = null\n            return true;\n        }\n\n        if (this._value.from.getTime() >= date.getTime()) {\n            this._value.from = date\n            return true;\n        }\n\n        this._value.to = date\n        return true;\n    }\n\n    isSelectedDay(date) {\n        if (this._value.from == null) {\n            return false;\n        }\n\n        if (this._value.to == null) {\n            return this._value.from.getTime() == date.getTime()\n        }\n\n        return date.getTime() == this._value.from.getTime() || date.getTime() == this._value.to.getTime()\n    }\n\n    get value() {\n        return this._value\n    }\n\n    set value(value) {\n        if (this._value == null) {\n            this._value = { from: null, to: null };\n        }\n\n        if (value == null) {\n            return;\n        }\n\n        const processDate = (input) => {\n            if (input == null) return null;\n            if (typeof input === \"string\") return this.createDateWithoutTime(input);\n            if (input instanceof Date) return input;\n            console.warn(\"Item is not a date or date string, skipping\");\n            return null;\n        };\n\n        this._value.from = processDate(value.from);\n        this._value.to = processDate(value.to);\n    }\n\n    isDisabled(date) {\n        if (this._value.from) {\n            let daysBetween = Math.abs(this.getNumberOfDaysBetweenDates(this._value.from, date))\n            return (((this.min && daysBetween < this.min) || (this.max && daysBetween > this.max)) && daysBetween != 0)\n        }\n    }\n\n    isRangeMiddle(date) {\n        if (this._value.from && this._value.to && date.getTime() >= this._value.from.getTime() && date.getTime() <= this._value.to.getTime()) {\n            return true\n        }\n\n        return false\n    }\n\n    // True while a start is chosen but the end is not yet (selecting the 2nd endpoint).\n    get hasOpenRange() {\n        return !!(this._value && this._value.from && this._value.to == null);\n    }\n\n    // Days between the chosen start and the currently hovered date (live preview).\n    isInPreviewRange(date, hoverDate) {\n        if (!this.hasOpenRange || !hoverDate) return false;\n        const from = this._value.from.getTime();\n        const hover = hoverDate.getTime();\n        const t = date.getTime();\n        return t >= Math.min(from, hover) && t <= Math.max(from, hover);\n    }\n\n    createDateWithoutTime(value) {\n        let date = new Date(value)\n        date.setHours(0, 0, 0, 0);\n\n        return date;\n    }\n\n    getNumberOfDaysBetweenDates(date1, date2) {\n        return Math.round((date1.getTime() - date2.getTime()) / (1000 * 3600 * 24));\n    }\n}\n", "export default class SingleModeHandler {\n    constructor(required) {\n        this.required = !!required;\n    }\n\n    get value() {\n        return this._value\n    }\n\n    set value(value) {\n        const processDate = (input) => {\n            if (input == null) return null;\n            if (typeof input === \"string\") return this.createDateWithoutTime(input);\n            if (input instanceof Date) return input;\n            console.warn(\"Item is not a date or date string, skipping\");\n            return null;\n        };\n        this._value = processDate(value)\n    }\n\n    dayClicked(date) {\n        if (this._value != null && this._value.getTime() == date.getTime() && !this.required) {\n            this._value = null\n        } else {\n            this._value = date\n        }\n        return true\n    }\n\n    isSelectedDay(date) {\n        return this._value?.getTime() === date.getTime();\n    }\n\n    isDisabled(date) {\n        return false;\n    }\n\n    createDateWithoutTime(value) {\n        let date = new Date(value)\n        date.setHours(0, 0, 0, 0);\n\n        return date;\n    }\n}\n", "import { format as dateFormat } from \"date-fns\"\nimport Matcher from \"./Calendar/Matcher\"\nimport MultipleModeHandler from \"./Calendar/ModeHandlers/MultipleModeHandler\"\nimport RangeModeHandler from \"./Calendar/ModeHandlers/RangeModeHandler\"\nimport SingleModeHandler from \"./Calendar/ModeHandlers/SingleModeHandler\"\n\nexport default (selected, mode, disabled, min, max, required, min_date, max_date, disabled_days, disabled_dates, value_format) => ({\n    focusedDay: '',\n    mode: mode,\n    value_format: value_format || 'yyyy-MM-dd',\n    max: max,\n    min: min,\n    month: '',\n    year: '',\n    daysInMonth: [],\n    preBlankDaysInMonth: [],\n    postBlankDaysInMonth: [],\n    hoveredDate: null,\n    view: 'days',\n    yearRangeStart: '',\n    modeHandler: null,\n    disabled: [],\n    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n    days: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n    root: {\n        ['@keydown.left.prevent']() {\n            this.focusAdd(-1)\n        },\n        ['@keydown.right.prevent']() {\n            this.focusAdd(1)\n        },\n        ['@keydown.up.prevent']() {\n            this.focusAdd(-this.days.length)\n        },\n        ['@keydown.down.prevent']() {\n            this.focusAdd(this.days.length)\n        },\n        ['x-transition']() {\n            return true;\n        },\n    },\n    previousMonthTrigger: {\n        ['@click']() {\n            this.previousMonth()\n        },\n    },\n    nextMonthTrigger: {\n        ['@click']() {\n            this.nextMonth()\n        }\n    },\n    yearLabel: {\n        ['x-text']() {\n            return this.year\n        }\n    },\n    monthLabel: {\n        ['x-text']() {\n            return this.monthNames[this.month]\n        }\n    },\n    init() {\n        if (this.mode == \"single\") {\n            this.modeHandler = new SingleModeHandler(required)\n        } else if (this.mode == \"multiple\") {\n            this.modeHandler = new MultipleModeHandler(required, min, max)\n        } else if (this.mode == \"range\") {\n            this.modeHandler = new RangeModeHandler(required, min, max)\n        } else {\n            console.error(\"Mode is invalid, defaulting to single mode\")\n            this.modeHandler = new SingleModeHandler(required)\n        }\n\n        // add items to the disabled rules array\n        if (Array.isArray(disabled)) {\n            disabled.forEach((element) => {\n                this.disabled.push(new Matcher(element))\n            });\n        } else if (typeof disabled == 'object' && disabled != null) {\n            this.disabled = [new Matcher(disabled)]\n        }\n\n        // Convenience limit props -> Matcher rules\n        if (min_date) this.disabled.push(new Matcher({ before: min_date }));\n        if (max_date) this.disabled.push(new Matcher({ after: max_date }));\n        if (disabled_days != null) this.disabled.push(new Matcher({ dayOfWeek: disabled_days }));\n        if (Array.isArray(disabled_dates) && disabled_dates.length) this.disabled.push(new Matcher({ dates: disabled_dates }));\n\n        let now = new Date();\n        this.month = now.getMonth();\n        this.year = now.getFullYear();\n        this.focusedDay = now.getDay();\n        this.calculateDays();\n\n        if (!!selected) {\n            this.dispatchChange()\n        }\n    },\n    dispatchChange() {\n        this.$nextTick(() => { this.$dispatch('change', { value: this.modeHandler.value }) })\n    },\n    // Format a single date for form submission (local, no UTC round-trip).\n    serialize(date) {\n        return date == null ? '' : dateFormat(new Date(date), this.value_format)\n    },\n    dayClicked(date) {\n        let selectedDate = new Date(this.year, this.month, date);\n        if (this.isDisabled(selectedDate)) {\n            return;\n        }\n        this.focusedDay = date;\n        let dispatchEvent = this.modeHandler.dayClicked(selectedDate)\n        if (dispatchEvent) {\n            this.dispatchChange()\n        }\n    },\n    focusAdd(value) {\n        if (!Number.isInteger(this.focusedDay)) {\n            this.focusedDay = (new Date(this.year, this.month, day)).getDate();\n        }\n        this.focusedDay = this.focusedDay + value;\n        if (this.focusedDay > this.daysInMonth.length) {\n            this.focusedDay = this.focusedDay - this.daysInMonth.length;\n            this.nextMonth();\n        }\n        else if (this.focusedDay <= 0) {\n            this.previousMonth();\n            this.focusedDay = this.daysInMonth.length + this.focusedDay\n        }\n    },\n    previousMonth() {\n        if (this.month == 0) {\n            this.year--;\n            this.month = 12;\n        }\n        this.month--;\n        this.calculateDays();\n    },\n    nextMonth() {\n        if (this.month == 11) {\n            this.month = 0;\n            this.year++;\n        } else {\n            this.month++;\n        }\n        this.calculateDays();\n    },\n    isSelectedDay(day) {\n        let date = new Date(this.year, this.month, day)\n        return this.modeHandler.isSelectedDay(date)\n    },\n    isFocusedDate(day) {\n        return this.focusedDay === day ? true : false;\n    },\n    isToday(day) {\n        const today = new Date();\n        const d = new Date(this.year, this.month, day);\n        return today.toDateString() === d.toDateString() ? true : false;\n    },\n    calculateDays() {\n        let daysInMonth = new Date(this.year, this.month + 1, 0).getDate();\n        let daysInPreviousMonth = new Date(this.year, this.month, 0).getDate();\n        // find where to start day of week\n        let dayOfWeek = new Date(this.year, this.month).getDay();\n        let preBlankdaysArray = [];\n        for (var i = 1; i <= dayOfWeek; i++) {\n            preBlankdaysArray.push(daysInPreviousMonth - i + 1);\n        }\n\n        //if the length of the preblank arrays is a multiple of the week, it is considered an entire week\n        preBlankdaysArray = preBlankdaysArray.reverse();\n        let postBlankdaysArray = [];\n        // Pad only to complete the final week (no trailing empty rows).\n        let usedCells = preBlankdaysArray.length + daysInMonth;\n        let totalCells = Math.ceil(usedCells / this.days.length) * this.days.length;\n        for (var i = 1; i <= (totalCells - usedCells); i++) {\n            postBlankdaysArray.push(i);\n        }\n        let daysArray = [];\n        for (var i = 1; i <= daysInMonth; i++) {\n            daysArray.push(i);\n        }\n        this.preBlankDaysInMonth = preBlankdaysArray;\n        this.postBlankDaysInMonth = postBlankdaysArray;\n        this.daysInMonth = daysArray;\n    },\n    isDisabled(date) {\n        return this.disabled.some(rule => rule.passes(date)) || this.modeHandler.isDisabled(date);\n    },\n    isRangeMiddle(date) {\n        if (mode == 'range') {\n            return this.modeHandler.isRangeMiddle(date)\n        }\n\n        return false\n    },\n    dayHovered(day) {\n        if (mode == 'range') {\n            this.hoveredDate = new Date(this.year, this.month, day);\n        }\n    },\n    clearHover() {\n        this.hoveredDate = null;\n    },\n    isInPreviewRange(day) {\n        if (mode != 'range' || typeof this.modeHandler.isInPreviewRange !== 'function') {\n            return false;\n        }\n        return this.modeHandler.isInPreviewRange(new Date(this.year, this.month, day), this.hoveredDate);\n    },\n    showMonths() {\n        this.view = 'months';\n    },\n    showYears() {\n        this.yearRangeStart = this.year - 6;\n        this.view = 'years';\n    },\n    selectMonth(m) {\n        this.month = m;\n        this.view = 'days';\n        this.calculateDays();\n    },\n    selectYear(y) {\n        this.year = y;\n        this.view = 'months';\n    },\n    headerPrev() {\n        if (this.view === 'months') { this.year--; }\n        else if (this.view === 'years') { this.yearRangeStart -= 12; }\n        else { this.previousMonth(); }\n    },\n    headerNext() {\n        if (this.view === 'months') { this.year++; }\n        else if (this.view === 'years') { this.yearRangeStart += 12; }\n        else { this.nextMonth(); }\n    },\n    get yearRange() {\n        let start = this.yearRangeStart || (this.year - 6);\n        return Array.from({ length: 12 }, (_, i) => start + i);\n    }\n})\n", "export default (name, initialValues = []) => ({\n    values: Array.isArray(initialValues) ? initialValues : [],\n    name: name,\n\n    init() {\n        // Initialize values from checked checkboxes if not provided\n        if (this.values.length === 0) {\n            const checkedInputs = this.$el.querySelectorAll('input[type=\"checkbox\"]:checked');\n            this.values = Array.from(checkedInputs).map(input => input.value);\n        }\n    },\n\n    toggle(optionValue) {\n        if (this.isChecked(optionValue)) {\n            this.values = this.values.filter(v => v !== optionValue);\n        } else {\n            this.values.push(optionValue);\n        }\n        this.$dispatch('change', { values: this.values });\n    },\n\n    isChecked(optionValue) {\n        return this.values.includes(optionValue);\n    }\n})\n", "// Shared, collision-aware popover positioning.\n//\n// Extracted from the dropdown's positionDropdown so combobox, select, datepicker\n// (and any future popover) reposition consistently: the content flips its\n// position (top/bottom) and alignment (start/end) to stay within the viewport.\n//\n// The content element must be absolutely positioned inside a `position: relative`\n// parent that also contains the trigger. `align: 'stretch'` keeps the content\n// full-width (left:0; right:0) and only flips vertically (combobox / select).\n\nexport function positionPopover(trigger, content, opts = {}) {\n    if (!trigger || !content) return;\n\n    const {\n        position = 'bottom',\n        align = 'start',\n        offset = 4,\n        responsive = true,\n    } = opts;\n\n    const t = trigger.getBoundingClientRect();\n    const off = parseInt(offset, 10) || 0;\n\n    let finalPosition = position;\n    let finalAlign = align;\n\n    if (responsive) {\n        const c = content.getBoundingClientRect();\n        const vw = window.innerWidth;\n        const vh = window.innerHeight;\n\n        // Vertical flip (top <-> bottom)\n        if (position === 'bottom') {\n            const below = vh - t.bottom - off;\n            const above = t.top - off;\n            if (c.height > below && above > below) finalPosition = 'top';\n        } else if (position === 'top') {\n            const above = t.top - off;\n            const below = vh - t.bottom - off;\n            if (c.height > above && below > above) finalPosition = 'bottom';\n        } else if (position === 'right') {\n            const right = vw - t.right - off;\n            const left = t.left - off;\n            if (c.width > right && left > right) finalPosition = 'left';\n        } else if (position === 'left') {\n            const left = t.left - off;\n            const right = vw - t.right - off;\n            if (c.width > left && right > left) finalPosition = 'right';\n        }\n\n        // Horizontal flip (start <-> end), only for top/bottom popovers and\n        // never for stretched (full-width) content.\n        if ((finalPosition === 'bottom' || finalPosition === 'top') && align !== 'stretch') {\n            if (align === 'start') {\n                const spaceRight = vw - t.left;\n                if (c.width > spaceRight && t.right > c.width) finalAlign = 'end';\n            } else if (align === 'end') {\n                const spaceLeft = t.right;\n                if (c.width > spaceLeft && (vw - t.left) > c.width) finalAlign = 'start';\n            }\n        }\n    }\n\n    // Reset\n    content.style.top = '';\n    content.style.bottom = '';\n    content.style.left = '';\n    content.style.right = '';\n    content.style.transform = '';\n\n    // Place\n    if (finalPosition === 'bottom') content.style.top = `calc(100% + ${off}px)`;\n    else if (finalPosition === 'top') content.style.bottom = `calc(100% + ${off}px)`;\n    else if (finalPosition === 'left') content.style.right = `calc(100% + ${off}px)`;\n    else if (finalPosition === 'right') content.style.left = `calc(100% + ${off}px)`;\n\n    // Align\n    if (finalPosition === 'top' || finalPosition === 'bottom') {\n        if (finalAlign === 'stretch') { content.style.left = '0'; content.style.right = '0'; }\n        else if (finalAlign === 'start') content.style.left = '0';\n        else if (finalAlign === 'end') content.style.right = '0';\n        else if (finalAlign === 'center') { content.style.left = '50%'; content.style.transform = 'translateX(-50%)'; }\n    } else {\n        if (finalAlign === 'stretch') { content.style.top = '0'; content.style.bottom = '0'; }\n        else if (finalAlign === 'start') content.style.top = '0';\n        else if (finalAlign === 'end') content.style.bottom = '0';\n        else if (finalAlign === 'center') { content.style.top = '50%'; content.style.transform = 'translateY(-50%)'; }\n    }\n\n    return { position: finalPosition, align: finalAlign };\n}\n\n// Run `callback` on viewport resize / scroll (rAF-throttled). Returns a cleanup.\nexport function watchReposition(callback) {\n    let ticking = false;\n    const handler = () => {\n        if (ticking) return;\n        ticking = true;\n        requestAnimationFrame(() => { callback(); ticking = false; });\n    };\n    window.addEventListener('resize', handler);\n    window.addEventListener('scroll', handler, true);\n    return () => {\n        window.removeEventListener('resize', handler);\n        window.removeEventListener('scroll', handler, true);\n    };\n}\n", "import { positionPopover, watchReposition } from './positioning.js';\n\nexport default (config) => ({\n    isOpen: false,\n    highlightedIndex: 0,\n    searchTerm: '',\n    tags: [],\n    options: [],\n\n    // Config\n    name: config.name,\n    maxTags: config.maxTags,\n    writable: config.writable,\n    searchable: config.searchable,\n    closeAfterSelecting: config.closeAfterSelecting,\n    autoclose: config.autoclose,\n    disabled: config.disabled,\n    placeholder: config.placeholder,\n\n    init() {\n        // Keep the open dropdown placed within the viewport as it changes.\n        this._cleanupReposition = watchReposition(() => {\n            if (this.isOpen) this.positionDropdown();\n        });\n    },\n\n    destroy() {\n        this._cleanupReposition && this._cleanupReposition();\n    },\n\n    positionDropdown() {\n        positionPopover(this.$refs.trigger, this.$refs.content, {\n            position: 'bottom', align: 'stretch', offset: 4, responsive: true,\n        });\n    },\n\n    initSelected(selected_encoded) {\n        let selected = JSON.parse(decodeURIComponent(selected_encoded));\n        this.tags = Array.isArray(selected) ? selected : (selected ? [selected] : []);\n        this.updateHiddenSelect();\n    },\n\n    initOptions(options_encoded) {\n        let options = JSON.parse(decodeURIComponent(options_encoded));\n        this.options = Array.isArray(options) ? options : [];\n    },\n\n    get filteredOptions() {\n        if (!this.searchTerm) return this.options;\n        return this.options.filter(option =>\n            option.toLowerCase().includes(this.searchTerm.toLowerCase())\n        );\n    },\n\n    get showCreateOption() {\n        return this.writable && this.searchTerm && !this.filteredOptions.includes(this.searchTerm) && !this.tags.includes(this.searchTerm);\n    },\n\n    get hasTagsRemaining() {\n        return this.maxTags > 0 ? this.maxTags > this.tags.length : true\n    },\n\n    get getPlaceholder() {\n        if (this.isOpen && !this.hasTagsRemaining) return 'Maximum reached';\n        if (this.tags.length === 0) {\n            if (this.placeholder) return this.placeholder;\n            return this.writable ? 'Search or type new...' : 'Select options...';\n        }\n        return '';\n    },\n\n    openDropdown() {\n        if (this.disabled) return;\n        this.isOpen = true;\n        this.$nextTick(() => {\n            this.positionDropdown();\n            if (this.searchable || this.writable) {\n                this.$refs.searchInput.focus();\n            }\n            this.highlightedIndex = 0;\n        });\n    },\n\n    closeDropdown() {\n        this.isOpen = false;\n        this.searchTerm = '';\n        this.$el.querySelector('[tabindex=\"0\"]').focus();\n    },\n\n    selectOption(option) {\n        if (this.tags.includes(option)) {\n            // Option already selected - toggle OFF\n            this.removeTag(option);\n        } else {\n            // Option not selected - prepare to add\n\n            // Single-select mode: auto-replace existing selection\n            if (this.maxTags === 1 && this.tags.length > 0) {\n                this.removeTag(this.tags[0]);\n            }\n\n            this.addTag(option);\n        }\n    },\n\n    addTag(tag) {\n        if (this.disabled) return;\n        if (this.maxTags !== -1 && this.tags.length >= this.maxTags) return;\n\n        if (!this.tags.includes(tag)) {\n            this.tags.push(tag);\n            this.updateHiddenSelect();\n\n            // Check if we should close the dropdown\n            const shouldAutoclose = this.autoclose && this.maxTags !== -1 && this.tags.length >= this.maxTags;\n\n            if (this.closeAfterSelecting || shouldAutoclose) {\n                this.closeDropdown();\n            } else {\n                this.searchTerm = '';\n                if (this.searchable || this.writable) {\n                    this.$refs.searchInput.focus();\n                }\n            }\n        }\n    },\n\n    removeTag(tag) {\n        if (this.disabled) return;\n        this.tags = this.tags.filter(t => t !== tag);\n        this.updateHiddenSelect();\n    },\n\n    removeLastTag() {\n        if (this.tags.length > 0 && !this.searchTerm) {\n            this.removeTag(this.tags[this.tags.length - 1]);\n        }\n    },\n\n    handleEnter() {\n        // If create option is highlighted (index === filteredOptions.length)\n        if (this.showCreateOption && this.highlightedIndex === this.filteredOptions.length) {\n            this.addTag(this.searchTerm);\n        } else if (this.filteredOptions.length > 0 && this.highlightedIndex < this.filteredOptions.length) {\n            this.selectOption(this.filteredOptions[this.highlightedIndex]);\n        } else if (this.writable && this.searchTerm) {\n            this.addTag(this.searchTerm);\n        }\n    },\n\n    highlightNext() {\n        const maxIndex = this.showCreateOption ? this.filteredOptions.length : this.filteredOptions.length - 1;\n        if (this.highlightedIndex < maxIndex) {\n            this.highlightedIndex++;\n            this.scrollToHighlighted();\n        }\n    },\n\n    highlightPrev() {\n        if (this.highlightedIndex > 0) {\n            this.highlightedIndex--;\n            this.scrollToHighlighted();\n        }\n    },\n\n    scrollToHighlighted() {\n        this.$nextTick(() => {\n            const list = this.$refs.optionsList;\n            if (!list) return;\n            const items = list.querySelectorAll('[data-combobox-option]');\n            const el = items[this.highlightedIndex];\n            if (el) el.scrollIntoView({ block: 'nearest' });\n        });\n    },\n\n    updateHiddenSelect() {\n        // Handled by Alpine's x-model on hidden select?\n        // No, we are manually building options.\n        // Actually, x-ref=\"hiddenSelect\" content is rebuilt by x-for.\n        // But we need to trigger change event for forms?\n        this.$nextTick(() => {\n            this.$dispatch('change', this.tags);\n        });\n    }\n})\n", "export default (value) => ({\n    keyword: value,\n    focusedItem: null,\n    root: {\n        ['@keydown']($event) {\n            if ($event.key == 'Home') {\n                this.selectOption(1, false)\n            }\n            if ($event.key == 'End') {\n                this.selectOption(-1, false)\n            }\n        },\n        ['@keydown.capture.down.prevent']() {\n            this.selectOption(1)\n        },\n        ['@keydown.capture.up.prevent']() {\n            this.selectOption(-1)\n        },\n        ['@keydown.capture.enter.prevent']() {\n            if (this.focusedItem != null) {\n                this.focusedItem.click()\n            }\n        },\n    },\n    init() {\n        this.$nextTick(() => {\n            this.selectOption(0, false)\n        })\n    },\n    commandInput: {\n        ['@input']() {\n            this.keyword = this.$el.value;\n            this.$nextTick(() => {\n                this.selectOption(0, false)\n            })\n            this.$dispatch(\"valueChange\", { value: this.keyword });\n        },\n        [':id']() {\n            return this.$id('command') + '-input';\n        },\n        [':aria-controls']() {\n            return this.$id('command') + '-list';\n        },\n    },\n    commandList: {\n        [':id']() {\n            return this.$id('command') + '-list';\n        },\n    },\n    commandItem: {\n        [':data-cmd-item']() {\n            return true;\n        },\n        [':data-selected']() {\n            return this.$el.contains(this.focusedItem);\n        },\n        [':aria-selected']() {\n            return this.$el.contains(this.focusedItem);\n        },\n        [':tabindex']() {\n            return this.$el.contains(this.focusedItem) ? 0 : -1;\n        },\n        ['x-effect']() {\n            if (this.keyword == '' || this.fuzzySearch(this.keyword, this.$el.innerText)) {\n                this.$el.dataset.active = true\n                this.$el.style.display = \"flex\"\n            } else {\n                this.$el.dataset.active = false\n                this.$el.style.display = \"none\"\n            }\n        },\n        ['@mouseenter']() {\n            return this.focusedItem = this.$el;\n        },\n    },\n    commandGroupHeading: {\n        [':id']() {\n            return this.$id('command') + '-group-heading';\n        },\n    },\n    commandGroup: {\n        [':id']() {\n            return this.$id('command') + '-group';\n        },\n        [':aria-labelledby']() {\n            return this.$id('command') + '-group-heading';\n        },\n    },\n    commandGroupContainer: {\n        ['x-effect']() {\n            this.keyword; // referenced so Alpine re-runs this effect when the keyword changes\n            this.$nextTick(() => {\n                this.$el.style.display = this.$el.querySelectorAll('[data-active=true]').length > 0 ? 'block' : 'none'\n            })\n        },\n    },\n    commandEmpty: {\n        ['x-effect']() {\n            this.keyword; // referenced so Alpine re-runs this effect when the keyword changes\n            this.$nextTick(() => {\n                this.$el.style.display = this.$refs.list.querySelectorAll('[data-active=true]').length > 0 ? 'none' : 'block'\n            })\n        },\n    },\n    selectOption(index, relative = true) {\n        let nodeList = this.$refs.list.querySelectorAll(\"[data-active=true]\");\n        let nodeListArray = Array.from(nodeList);\n        let initialIndex = index\n        if (nodeList.length == 0 || !nodeListArray.some(node => JSON.parse(node.dataset.disabled) == false)) {\n            return;\n        }\n        if (relative) {\n            let previousIndex = Array.from(nodeList).findIndex(node => node.isEqualNode(this.focusedItem)) ?? 0;\n            index += previousIndex;\n        }\n        index += index < 0 ? nodeList.length : 0; //make indexing work for negative numbers\n        index = index % nodeList.length\n        while (JSON.parse(nodeList[index].dataset.disabled)) {\n            index += initialIndex < 0 ? -1 : 1 //scrolling up or down\n            index = index % nodeList.length\n        }\n        this.focusedItem = nodeList[index];\n        this.focusedItem.scrollIntoView(initialIndex < 0); //scrolling up or down\n    },\n    fuzzySearch(keyword, text) {\n        const keywordLower = keyword.toLowerCase();\n        const textLower = text.toLowerCase();\n\n        let keywordIndex = 0;\n\n        for (let i = 0; i < textLower.length; i++) {\n            if (textLower[i] === keywordLower[keywordIndex]) {\n                keywordIndex++;\n            }\n            if (keywordIndex === keywordLower.length) {\n                return true;\n            }\n        }\n\n        return false;\n    }\n})\n", "import { format as dateFormat } from \"date-fns\";\nimport { positionPopover, watchReposition } from \"./positioning.js\";\n\nexport default (open, value, mode, format, value_format, locale, close_on_complete, trap = true) => ({\n    open: open,\n    value: null,\n    mode: mode,\n    format: format,\n    value_format: value_format || 'yyyy-MM-dd',\n    locale: locale || '',\n    close_on_complete: close_on_complete,\n    trap: trap,\n    root: {\n        ['@keydown.esc']() {\n            return this.closePicker();\n        },\n        ['x-cloak']() {\n            return true;\n        },\n    },\n    trigger: {\n        ['@click']() {\n            return this.togglePicker();\n        },\n        ['@keyup.esc']() {\n            return this.closePicker();\n        },\n        ['@keydown.space']() {\n            return this.togglePicker();\n        },\n        [':class']() {\n            return !this.value && \"text-muted-foreground\";\n        },\n    },\n    calendar: {\n        ['x-show']() {\n            return this.open;\n        },\n        ['x-cloak']() {\n            return true;\n        },\n        ['x-transition']() {\n            return true;\n        },\n        ['@click.away']() {\n            return this.closePicker();\n        },\n        ['x-trap.noscroll']() {\n            return this.open && this.trap;\n        },\n    },\n    init() {\n        this.value = value\n        // Keep the open calendar within the viewport (flip on both axes).\n        this._cleanupReposition = watchReposition(() => {\n            if (this.open) this.position();\n        });\n    },\n    destroy() {\n        this._cleanupReposition && this._cleanupReposition();\n    },\n    position() {\n        positionPopover(this.$refs.datePickerInput, this.$refs.content, {\n            position: 'bottom', align: 'start', offset: 8, responsive: true,\n        });\n    },\n    openPicker() {\n        this.open = true\n        this.$nextTick(() => this.position())\n    },\n    closePicker() {\n        this.open = false\n    },\n    togglePicker() {\n        this.open ? this.closePicker() : this.openPicker()\n    },\n    // Close once the selection is complete: single -> a date is picked,\n    // range -> both ends set, multiple -> never auto-closes.\n    onCalendarChange(detail) {\n        if (!this.close_on_complete || !this.open) return;\n        const v = detail && detail.value;\n        if (this.mode === 'range') {\n            if (v && v.from && v.to) this.closePicker();\n        } else if (this.mode === 'multiple') {\n            // no defined completion point\n        } else if (v) {\n            this.closePicker();\n        }\n    },\n    formatDate(date) {\n        if (date == null) {\n            return null;\n        }\n        const d = new Date(date);\n        // 'auto' (and the dateStyle keywords) format per the user's locale via Intl;\n        // any other value is treated as a date-fns format string. Display only \u2014\n        // the submitted value is governed by value_format and stays machine-readable.\n        const styleKeywords = ['auto', 'short', 'medium', 'long', 'full'];\n        if (styleKeywords.includes(this.format)) {\n            const dateStyle = this.format === 'auto' ? 'short' : this.format;\n            return new Intl.DateTimeFormat(this.locale || undefined, { dateStyle }).format(d);\n        }\n        return dateFormat(d, this.format)\n    },\n    // Serialised (submitted) value. Formatted locally so a date never shifts a\n    // day via a UTC round-trip (toISOString). Default 'yyyy-MM-dd'.\n    formatValue(date) {\n        if (date == null) {\n            return '';\n        }\n        return dateFormat(new Date(date), this.value_format)\n    }\n})\n", "export default (show, dismissable) => ({\n    show: show,\n    dismissable: dismissable,\n    close() {\n        this.show = false;\n    },\n    open() {\n        this.show = true;\n    },\n    root: {\n        ['x-id']() {\n            return ['dialog'];\n        },\n        ['x-on:keydown.esc.window.stop']() {\n            if (this.dismissable) {\n                return this.close();\n            }\n        },\n    },\n    trigger: {\n        ['@click']() {\n            return this.open();\n        },\n        [':id']() {\n            return this.$id('dialog') + '-trigger';\n        },\n    },\n    overlay: {\n        ['@click']() {\n            if (this.dismissable) {\n                return this.close();\n            }\n        },\n        ['x-show']() {\n            return this.show;\n        },\n        ['x-cloak']() {\n            return true;\n        },\n        ['x-trap.noscroll.inert']() {\n            return this.show;\n        },\n        ['x-transition.opacity.duration.150ms']() {\n            return true;\n        },\n    },\n    dialog: {\n        ['@click.stop']() {\n            return true;\n        },\n        [':aria-labelledby']() {\n            return this.$id('dialog') + '-title';\n        },\n        [':aria-describedby']() {\n            return this.$id('dialog') + '-description';\n        },\n        [':aria-modal']() {\n            return this.show;\n        },\n    },\n    title: {\n        [':id']() {\n            return this.$id('dialog') + '-title';\n        },\n    },\n    description: {\n        [':id']() {\n            return this.$id('dialog') + '-description';\n        },\n    },\n    closeButton: {\n        ['@click']() {\n            if (this.dismissable) {\n                return this.close();\n            }\n        },\n    }\n})\n", "export default () => ({\n    dropdownMenu: false,\n    position: 'bottom',\n    align: 'start',\n    offset: 4,\n    responsive: false,\n    collapsible: false,\n\n    init() {\n        // Keep the open menu correctly placed when the viewport changes\n        // (resize, or scrolling within a scroll container).\n        let ticking = false;\n        this._reposition = () => {\n            if (!this.dropdownMenu || ticking) return;\n            ticking = true;\n            requestAnimationFrame(() => {\n                this.positionDropdown();\n                ticking = false;\n            });\n        };\n        window.addEventListener('resize', this._reposition);\n        window.addEventListener('scroll', this._reposition, true);\n    },\n\n    destroy() {\n        if (!this._reposition) return;\n        window.removeEventListener('resize', this._reposition);\n        window.removeEventListener('scroll', this._reposition, true);\n    },\n\n    positionDropdown() {\n        if (!this.$refs.content || !this.$refs.trigger) return;\n\n        // Collapsible mode on small screens: the panel renders in-flow (CSS) as an inline\n        // disclosure, so clear any floating offsets and skip positioning entirely.\n        if (this.collapsible && window.innerWidth < 768) {\n            const c = this.$refs.content;\n            c.style.top = c.style.bottom = c.style.left = c.style.right = c.style.transform = '';\n            return;\n        }\n\n        const trigger = this.$refs.trigger.getBoundingClientRect();\n        const content = this.$refs.content;\n        const offset = parseInt(this.offset);\n\n        let finalPosition = this.position;\n        let finalAlign = this.align;\n\n        // Responsive positioning: detect viewport boundaries and flip if needed\n        if (this.responsive) {\n            const contentRect = content.getBoundingClientRect();\n            const viewportWidth = window.innerWidth;\n            const viewportHeight = window.innerHeight;\n\n            // Check vertical overflow\n            if (this.position === 'bottom') {\n                const spaceBelow = viewportHeight - trigger.bottom - offset;\n                const spaceAbove = trigger.top - offset;\n                if (contentRect.height > spaceBelow && spaceAbove > spaceBelow) {\n                    finalPosition = 'top';\n                }\n            } else if (this.position === 'top') {\n                const spaceAbove = trigger.top - offset;\n                const spaceBelow = viewportHeight - trigger.bottom - offset;\n                if (contentRect.height > spaceAbove && spaceBelow > spaceAbove) {\n                    finalPosition = 'bottom';\n                }\n            }\n\n            // Check horizontal overflow\n            if (this.position === 'bottom' || this.position === 'top') {\n                if (this.align === 'start') {\n                    const spaceRight = viewportWidth - trigger.left;\n                    if (contentRect.width > spaceRight && trigger.right > contentRect.width) {\n                        finalAlign = 'end';\n                    }\n                } else if (this.align === 'end') {\n                    const spaceLeft = trigger.right;\n                    if (contentRect.width > spaceLeft && (viewportWidth - trigger.left) > contentRect.width) {\n                        finalAlign = 'start';\n                    }\n                }\n            }\n        }\n\n        // Reset positioning\n        content.style.top = '';\n        content.style.bottom = '';\n        content.style.left = '';\n        content.style.right = '';\n        content.style.transform = '';\n\n        // Position based on settings (using final calculated position)\n        if (finalPosition === 'bottom') {\n            content.style.top = `calc(100% + ${offset}px)`;\n        } else if (finalPosition === 'top') {\n            content.style.bottom = `calc(100% + ${offset}px)`;\n        } else if (finalPosition === 'left') {\n            content.style.right = `calc(100% + ${offset}px)`;\n        } else if (finalPosition === 'right') {\n            content.style.left = `calc(100% + ${offset}px)`;\n        }\n\n        // Align based on settings (using final calculated alignment)\n        if (finalPosition === 'top' || finalPosition === 'bottom') {\n            if (finalAlign === 'start') {\n                content.style.left = '0';\n            } else if (finalAlign === 'end') {\n                content.style.right = '0';\n            } else if (finalAlign === 'center') {\n                content.style.left = '50%';\n                content.style.transform = 'translateX(-50%)';\n            }\n        } else {\n            if (finalAlign === 'start') {\n                content.style.top = '0';\n            } else if (finalAlign === 'end') {\n                content.style.bottom = '0';\n            } else if (finalAlign === 'center') {\n                content.style.top = '50%';\n                content.style.transform = 'translateY(-50%)';\n            }\n        }\n    },\n\n    root: {\n        ['x-id']() {\n            return ['dropdown-menu'];\n        },\n        ['@click.outside.capture']() {\n            // Keep open when the click originates from the content or trigger (e.g. teleported content)\n            if (!this.$refs.content.contains(this.$event.target) && !this.$refs.trigger.contains(this.$event.target)) {\n                return this.close();\n            }\n        },\n    },\n    trigger: {\n        ['@click']() {\n            return this.toggle();\n        },\n        ['@keydown.down.prevent']() {\n            if (!this.$refs.content.contains(document.activeElement)) {\n                return this.$focus.focus(this.$refs.content.querySelector('button, a[role=\"menuitem\"]') ?? null)\n            }\n            return this.$focus.within(this.$refs.content).wrap().next();\n        },\n        ['@keydown.up.prevent']() {\n            if (!this.$refs.content.contains(document.activeElement)) {\n                return this.$focus.focus([...this.$refs.content.querySelectorAll('button, a[role=\"menuitem\"]')].pop() || null)\n            }\n            return this.$focus.within(this.$refs.content).wrap().previous();\n        },\n        ['@keydown']($event) {\n            if ($event.key == 'Home') {\n                if (!this.$refs.content.contains(document.activeElement)) {\n                    return this.$focus.focus(this.$refs.content.querySelector('button, a[role=\"menuitem\"]') ?? null)\n                }\n                return this.$focus.within(this.$refs.content).wrap().first();\n            }\n            if ($event.key == 'End') {\n                if (!this.$refs.content.contains(document.activeElement)) {\n                    return this.$focus.focus([...this.$refs.content.querySelectorAll('button, a[role=\"menuitem\"]')].pop() || null)\n                }\n                return this.$focus.within(this.$refs.content).wrap().last();\n            }\n        },\n        [':id']() {\n            return this.$id('dropdown-menu') + '-trigger';\n        },\n        [':aria-controls']() {\n            return this.$id('dropdown-menu') + '-content';\n        },\n        ['@keydown.esc.window']() {\n            return this.close();\n        },\n    },\n    content: {\n        ['@keydown.down.prevent']() {\n            if (!this.$refs.content.contains(document.activeElement)) {\n                return this.$focus.focus(this.$refs.content.querySelector('button, a[role=\"menuitem\"]') ?? null)\n            }\n            return this.$focus.within(this.$refs.content).wrap().next();\n        },\n        ['@keydown.up.prevent']() {\n            if (!this.$refs.content.contains(document.activeElement)) {\n                return this.$focus.focus([...this.$refs.content.querySelectorAll('button, a[role=\"menuitem\"]')].pop() || null)\n            }\n            return this.$focus.within(this.$refs.content).wrap().previous();\n        },\n        ['@keydown']($event) {\n            if ($event.key == 'Home') {\n                if (!this.$refs.content.contains(document.activeElement)) {\n                    return this.$focus.focus(this.$refs.content.querySelector('button, a[role=\"menuitem\"]') ?? null)\n                }\n                return this.$focus.within(this.$refs.content).wrap().first();\n            }\n            if ($event.key == 'End') {\n                if (!this.$refs.content.contains(document.activeElement)) {\n                    return this.$focus.focus([...this.$refs.content.querySelectorAll('button, a[role=\"menuitem\"]')].pop() || null)\n                }\n                return this.$focus.within(this.$refs.content).wrap().last();\n            }\n        },\n        [':id']() {\n            return this.$id('dropdown-menu') + '-content';\n        },\n        [':aria-labelledby']() {\n            return this.$id('dropdown-menu') + '-trigger';\n        },\n        ['x-show']() {\n            return this.dropdownMenu;\n        },\n        ['x-transition']() {\n            return true;\n        },\n    },\n    menuItem: {\n        ['@click']() {\n            return this.close();\n        },\n        ['@mouseover']() {\n            return this.$focus.focus(this.$el);\n        },\n        ['@focus']() {\n            this.$el.setAttribute('tabindex', 0)\n        },\n        ['@focusout']() {\n            this.$el.setAttribute('tabindex', -1)\n        },\n        ['@keydown.tab']() {\n            this.close()\n        },\n    },\n    close() {\n        this.dropdownMenu = false;\n    },\n    open() {\n        this.dropdownMenu = true;\n        this.$nextTick(() => this.positionDropdown());\n    },\n    toggle() {\n        this.dropdownMenu ? this.close() : this.open()\n    }\n\n})\n", "export default () => ({\n    subOpen: false,\n    subPreview: false,\n    root: {\n        ['@keydown.escape']() {\n            return this.closeSub();\n        },\n        ['@click.outside']() {\n            return this.closeSub();\n        },\n        ['@keydown.right']() {\n            return this.open();\n        },\n        [':aria-expanded']() {\n            return this.subOpen;\n        },\n        ['@mouseleave']() {\n            this.closePreview();\n        },\n    },\n    trigger: {\n        ['@click.capture.stop']() {\n            return this.open();\n        },\n        ['@mouseenter']() {\n            this.openPreview();\n            this.$focus.focus(this.$el);\n        },\n        ['@focus']() {\n            this.$el.setAttribute('tabindex', 0)\n        },\n        ['@focusout']() {\n            this.$el.setAttribute('tabindex', -1)\n        },\n    },\n    template: {\n        ['x-if']() {\n            return this.subOpen || this.subPreview;\n        },\n    },\n    content: {\n        ['x-anchor.right-start.no-style']() {\n            return this.$refs.subTrigger;\n        },\n        [':style']() {\n            let correction = 0\n            if (this.$anchor.x + this.$refs.content.scrollWidth > window.innerWidth) {\n                correction = this.$refs.content.getBoundingClientRect().width / 2\n            }\n            else if (this.$anchor.x - this.$refs.subTrigger.getBoundingClientRect().width <= 0) {\n                correction = -this.$refs.content.getBoundingClientRect().width\n            }\n            return { position: 'absolute', top: this.$anchor.y + 'px', left: this.$anchor.x - correction + 'px' };\n        },\n        ['x-trap']() {\n            return this.subOpen;\n        },\n        ['x-show']() {\n            return this.subOpen || this.subPreview;\n        },\n        ['x-transition']() {\n            return true;\n        },\n        ['x-cloak']() {\n            return true;\n        },\n        ['@keydown.down.prevent']() {\n            return this.$focus.wrap().next();\n        },\n        ['@keydown.up.prevent']() {\n            return this.$focus.wrap().previous();\n        },\n        ['@keydown']($event) {\n            if ($event.key == 'Home') {\n                return this.$focus.wrap().first();\n            }\n            if ($event.key == 'End') {\n                return this.$focus.wrap().last();\n            }\n        },\n        ['@keydown.left.stop']() {\n            return this.closeSub();\n        },\n    },\n    menuItem: {\n        ['@click']() {\n            this.closeSub();\n            this.$data.close()\n        },\n        ['@mouseover']() {\n            return this.$focus.focus(this.$el);\n        },\n        [':tabindex']() {\n            (this.subOpen || this.subPreview) && this.$el.isEqualNode(this.$root.querySelectorAll('button')[2]) ? 0 : -1\n        },\n        ['@focus']() {\n            this.$el.setAttribute('tabindex', 0)\n        },\n        ['@focusout']() {\n            this.$el.setAttribute('tabindex', -1)\n        },\n        ['@keydown.tab']() {\n            this.closeSub()\n        },\n    },\n    open() {\n        this.subOpen = true\n    },\n    closeSub() {\n        this.subOpen = false\n    },\n    toggle() {\n        this.subOpen == true ? this.closeSub() : this.open()\n    },\n    openPreview() {\n        if (window.innerWidth <= 640) {  // no previews on mobile boohoo\n            return\n        }\n        this.subPreview = true;\n    },\n    closePreview() {\n        this.subPreview = false;\n    }\n})\n", "export default () => ({\n    popover: false,\n    root: {\n        ['x-id']() {\n            return ['popover'];\n        },\n    },\n    trigger: {\n        ['@click']() {\n            return this.toggle();\n        },\n        [':id']() {\n            return this.$id('popover') + '-trigger';\n        },\n        [':aria-controls']() {\n            return this.$id('popover') + '-content';\n        },\n        ['@keydown.esc.window']() {\n            return this.close();\n        },\n    },\n    content: {\n        ['@click.outside.capture']() {\n            if (!this.$refs.trigger.contains(this.$event.target)) {\n                return this.close();\n            }\n        },\n        ['x-anchor.offset.4']() {\n            return this.$refs.trigger;\n        },\n        ['x-trap']() {\n            return this.popover;\n        },\n        ['x-show']() {\n            return this.popover;\n        },\n        ['x-transition']() {\n            return true;\n        },\n        [':id']() {\n            return this.$id('popover') + '-content';\n        },\n        [':aria-labelledby']() {\n            return this.$id('popover-menu') + '-trigger';\n        },\n    },\n    close() {\n        this.popover = false;\n    },\n    open() {\n        this.popover = true;\n    },\n    toggle() {\n        this.popover == true ? this.close() : this.open()\n    }\n})\n", "export default (name, initialValue = null) => ({\n    value: initialValue,\n    name: name,\n\n    init() {\n        // Initialize value from checked option if not provided\n        if (this.value === null) {\n            const checkedInput = this.$el.querySelector('input[type=\"radio\"]:checked');\n            if (checkedInput) {\n                this.value = checkedInput.value;\n            }\n        }\n    },\n\n    select(optionValue) {\n        this.value = optionValue;\n        this.$dispatch('change', { value: optionValue });\n    },\n\n    isSelected(optionValue) {\n        return this.value === optionValue;\n    },\n\n    selectNext() {\n        const radios = Array.from(this.$el.querySelectorAll('[role=\"radio\"]:not([aria-disabled=\"true\"])'));\n        const currentIndex = radios.findIndex(r => r === document.activeElement);\n\n        if (currentIndex === -1) return;\n\n        const nextIndex = (currentIndex + 1) % radios.length;\n        radios[nextIndex].focus();\n        this.select(radios[nextIndex].dataset.value);\n    },\n\n    selectPrevious() {\n        const radios = Array.from(this.$el.querySelectorAll('[role=\"radio\"]:not([aria-disabled=\"true\"])'));\n        const currentIndex = radios.findIndex(r => r === document.activeElement);\n\n        if (currentIndex === -1) return;\n\n        const prevIndex = currentIndex === 0 ? radios.length - 1 : currentIndex - 1;\n        radios[prevIndex].focus();\n        this.select(radios[prevIndex].dataset.value);\n    },\n\n    hasRovingTabindex(optionValue) {\n        // Roving tabindex pattern: selected option or first option gets tabindex=\"0\"\n        if (this.value === optionValue) return true;\n\n        // If nothing selected, first option gets focus\n        const radios = Array.from(this.$el.querySelectorAll('[role=\"radio\"]:not([aria-disabled=\"true\"])'));\n        if (!this.value && radios[0] && radios[0].dataset.value === optionValue) return true;\n\n        return false;\n    },\n\n    // Per-item variant classes. The variant lives on the group ([data-variant]) and is\n    // read here client-side; `accent` is the item's server-side prop. The class tokens\n    // live in this file and are picked up by the release build's @source of src/js, so\n    // they ship in the precompiled cotton-ui.css (the `default` variant adds none).\n    itemClasses(el, value, accent) {\n        const variant = el.closest('[data-variant]')?.dataset.variant || 'default';\n        const selected = this.isSelected(value);\n        const classes = [];\n\n        if (variant === 'segmented') {\n            classes.push('px-4', 'py-2', 'font-medium', 'transition-[background-color,color]', 'border-r', 'border-zinc-200', 'dark:border-zinc-700', 'last:border-r-0', 'first:rounded-l-[var(--radius-control)]', 'last:rounded-r-[var(--radius-control)]');\n            if (selected) {\n                classes.push(...(accent ? ['bg-accent', 'text-accent-foreground'] : ['bg-zinc-100', 'dark:bg-zinc-700']));\n            } else {\n                classes.push('hover:bg-zinc-50', 'dark:hover:bg-zinc-700/50');\n            }\n        } else if (variant === 'pill') {\n            classes.push('px-4', 'py-1.5', 'font-medium', 'transition-[background-color,color]', 'rounded-[calc(var(--radius-control)*0.66)]');\n            if (selected) {\n                classes.push('bg-accent', 'text-accent-foreground');\n            } else {\n                classes.push('text-zinc-600', 'dark:text-zinc-400', 'hover:bg-zinc-100', 'dark:hover:bg-zinc-700/50');\n            }\n        } else if (variant === 'cards') {\n            classes.push('flex', 'flex-1', 'gap-4', 'rounded-box', 'border-2', 'p-4', 'transition-[background-color]');\n            if (selected) {\n                classes.push(...(accent ? ['border-accent', 'bg-accent/5'] : ['border-[var(--color-accent-muted,currentColor)]', 'bg-[color-mix(in_oklab,var(--color-accent-muted,currentColor)_5%,transparent)]']));\n            } else {\n                classes.push('border-zinc-200', 'dark:border-zinc-700');\n            }\n        }\n\n        return classes;\n    }\n})\n", "export default (multiple, disabled) => ({\n    options: [],\n    selected: [],\n    selectedValues: [],\n    multiple: multiple,\n    disabled: disabled,\n    show: false,\n    root: {\n        ['x-on:keydown.tab']() {\n            return this.close();\n        },\n        ['@click.outside.capture']() {\n            return this.close();\n        },\n        ['x-on:keydown.escape']() {\n            return this.close();\n        },\n    },\n    trigger: {\n        ['@click']() {\n            return this.toggle();\n        },\n        ['@keypress.enter']() {\n            return this.open();\n        },\n        [':disabled']() {\n            return this.disabled;\n        },\n    },\n    optionList: {\n        ['x-show.transition.scale.origin.top']() {\n            return this.show;\n        },\n        ['x-trap.noscroll']() {\n            return this.show;\n        },\n        ['x-anchor']() {\n            return this.$refs.select;\n        },\n        ['x-on:keydown.up.prevent']() {\n            return this.$focus.wrap().previous();\n        },\n        ['x-on:keydown.down.prevent']() {\n            return this.$focus.wrap().next();\n        },\n    },\n    init() {\n        this.loadOptions();\n    },\n    open() {\n        if (!this.disabled) {\n            this.show = true\n        }\n    },\n    isOpen() {\n        return this.show\n    },\n    close() {\n        this.show = false\n    },\n    toggle() {\n        this.show ? this.close() : this.open()\n    },\n    select(index) {\n        if(!!this.options[index].disabled){\n            return;\n        }\n        if (!this.options[index].selected || !this.multiple) {\n            if (!this.multiple) {\n                for (let i = 0; i < this.selected.length; i++) {\n                    this.options[this.selected[i]].selected = false;\n                }\n                this.selected.length = 0;\n            }\n            this.options[index].selected = true;\n            this.selected.push(index);\n        } else {\n            this.selected.splice(this.selected.lastIndexOf(index), 1);\n            this.options[index].selected = false\n        }\n\n        this.setSelectedValues()\n        this.dispatchChange()\n        if (!this.multiple) {\n            this.close()\n        }\n    },\n    dispatchChange() {\n        this.$nextTick(() => { this.$dispatch('change', { value: (this.multiple ? this.selected.map((el) => this.options[el].value) : this.options[this.selected[0]].value) }) })\n    },\n    remove(index) {\n        const idx = this.selected.indexOf(index);\n\n        if (idx !== -1) {\n            this.selected.splice(idx, 1);\n            this.options[index].selected = false;\n        } else {\n            console.warn(`Option not found.`);\n        }\n\n        this.setSelectedValues()\n        this.dispatchChange()\n    },\n    loadOptions() {\n        const options = this.$root.childNodes[1].options;\n        let lastSelected = 0;\n        for (let i = 0; i < options.length; i++) {\n            this.options.push({\n                value: options[i].value,\n                text: options[i].innerText,\n                disabled: options[i].disabled,\n                selected: options[i].getAttribute('selected') != null || (i == 0 && !this.multiple) ? true && this.selected.push(i) : false,\n            });\n            if (!this.multiple && options[i].getAttribute('selected') != null) {\n                this.options[lastSelected].selected = false;\n                lastSelected = i;\n            }\n        }\n    },\n    setSelectedValues() {\n        this.selectedValues = this.multiple ? this.selected.map((option) => {\n            return this.options[option].value;\n        }) : this.options[this.selected[0]].value;\n    }\n})\n", "export default (side, transitionEnterStart, transitionEnterEnd, transitionLeaveStart, transitionLeaveEnd) => ({\n    side: side,\n    transitionEnterStart: transitionEnterStart,\n    transitionEnterEnd: transitionEnterEnd,\n    transitionLeaveStart: transitionLeaveStart,\n    transitionLeaveEnd: transitionLeaveEnd,\n    root: {\n        ['x-show']() {\n            return this.$data['show'];\n        },\n        ['@click.stop']() {\n            return true;\n        },\n        ['x-cloak']() {\n            return true;\n        },\n        ['x-transition:enter']() {\n            return \"transition ease-linear duration-150\";\n        },\n        ['x-transition:enter-start']() {\n            return this.transitionEnterStart;\n        },\n        ['x-transition:enter-end']() {\n            return this.transitionEnterEnd;\n        },\n        ['x-transition:leave']() {\n            return \"transition ease-linear duration-150\";\n        },\n        ['x-transition:leave-start']() {\n            return this.transitionLeaveStart;\n        },\n        ['x-transition:leave-end']() {\n            return this.transitionLeaveEnd;\n        },\n    },\n})\n", "export default (disabled = false, checked = false) => ({\n    switchOn: checked,\n    disabled: disabled,\n    // Transitions are enabled only after the first frame so the thumb/track render\n    // at their initial position instantly instead of animating into place on load.\n    ready: false,\n    init() {\n        this.$nextTick(() => {\n            // The hidden checkbox is the source of truth: an x-model / wire:model on it\n            // may have set its state during init, so adopt that before enabling transitions.\n            this.switchOn = this.$refs.input.checked;\n            this.ready = true;\n        });\n    },\n    trigger: {\n        ['@click']() {\n            this.toggle()\n        },\n        [':aria-checked']() {\n            return this.switchOn;\n        },\n        [':aria-labelledby']() {\n            if (this.$refs.input?.labels[0]?.id ?? false) {\n                return this.$refs.input.labels[0].id;\n            }\n        },\n        [':aria-label']() {\n            if (this.$refs.input?.labels[0]?.innerText ?? false) {\n                return this.$refs.input.labels[0].innerText;\n            }\n        },\n    },\n    // `x-ref=\"input\"` lives on the checkbox in the template: Alpine does not register\n    // an x-ref supplied through an x-bind object, so it can't go in here.\n    input: {\n        [':disabled']() {\n            return this.disabled;\n        },\n        // The checkbox toggled directly (e.g. its <label> was clicked): follow it.\n        ['@change']() {\n            this.switchOn = this.$refs.input.checked;\n        },\n    },\n    setSwitchState(value) {\n        if (this.disabled || value === this.switchOn) {\n            return;\n        }\n\n        this.switchOn = value;\n        // Drive the real checkbox so it submits with the form, and fire `change` so any\n        // binding on it (x-model, wire:model, listeners) sees the new state.\n        const input = this.$refs.input;\n        input.checked = value;\n        input.dispatchEvent(new Event('change', { bubbles: true }));\n        this.$dispatch('checkedChange');\n    },\n    toggle() {\n        this.setSwitchState(!this.switchOn);\n    }\n})\n", "import accordion from './accordion.js'\nimport accordionItem from './accordionItem.js';\nimport alert from './alert.js';\nimport avatar from './avatar.js';\nimport banner from './banner.js';\nimport calendar from './calendar.js';\nimport checkbox from './checkbox.js';\nimport combobox from './combobox.js';\nimport command from './command.js';\nimport datePicker from './datePicker.js';\nimport dialog from './dialog.js';\nimport dropdownMenu from './dropdownMenu.js';\nimport dropdownMenuSub from './dropdownMenuSub.js';\nimport popover from './popover.js';\nimport radio from './radio.js';\nimport select from './select.js';\nimport sheet from './sheet.js';\nimport switchInput from './switchInput.js';\nimport { positionPopover, watchReposition } from './positioning.js';\n\n// Expose the shared positioning helpers so components defined inline in templates\n// (menu, tooltip) can reuse the same collision-aware logic as the JS factories.\nwindow.CottonUI = window.CottonUI || {};\nwindow.CottonUI.positionPopover = positionPopover;\nwindow.CottonUI.watchReposition = watchReposition;\n\ndocument.addEventListener('alpine:init', () => {\n    Alpine.data('accordion', accordion)\n    Alpine.data('accordionItem', accordionItem)\n    Alpine.data('alert', alert)\n    Alpine.data('avatar', avatar)\n    Alpine.data('banner', banner)\n    Alpine.data('calendar', calendar)\n    Alpine.data('checkbox', checkbox)\n    Alpine.data('combobox', combobox)\n    Alpine.data('command', command)\n    Alpine.data('datePicker', datePicker)\n    Alpine.data('dialog', dialog)\n    Alpine.data('dropdownMenu', dropdownMenu)\n    Alpine.data('dropdownMenuSub', dropdownMenuSub)\n    Alpine.data('popover', popover)\n    Alpine.data('radio', radio)\n    Alpine.data('select', select)\n    Alpine.data('sheet', sheet)\n    Alpine.data('switchInput', switchInput)\n})\n"],
  "mappings": "MAAA,IAAOA,EAAQ,CAACC,EAAMC,EAAaC,KAAc,CAC7C,MAAOF,IAAS,SAAW,GAAK,CAAC,EACjC,KAAMA,EACN,SAAUE,EACV,YAAaD,CACjB,GCLA,IAAOE,EAAQ,CAACC,EAAUC,EAAW,MAAW,CAC5C,SAAUD,EACV,SAAUC,EACV,KAAM,CACF,CAA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,EAAO,EAC9B,OAAO,KAAK,QAASC,EAAK,EAC1B,OAAO,KAAK,SAAUC,EAAM,EAC5B,OAAO,KAAK,QAASC,EAAK,EAC1B,OAAO,KAAK,cAAeC,EAAW,CAC1C,CAAC",
  "names": ["accordion_default", "type", "collapsible", "disabled", "accordionItem_default", "expanded", "disabled", "index", "alert_default", "dismissOnTimeout", "timeout", "startTimeoutOnIntersect", "avatar_default", "banner_default", "displayAfter", "transitionEnterStart", "transitionEnterEnd", "transitionLeaveStart", "transitionLeaveEnd", "toDate", "argument", "argStr", "constructFrom", "date", "value", "maxTime", "minTime", "millisecondsInWeek", "millisecondsInDay", "secondsInHour", "secondsInDay", "secondsInHour", "secondsInWeek", "secondsInYear", "secondsInMonth", "secondsInQuarter", "defaultOptions", "getDefaultOptions", "startOfWeek", "date", "options", "defaultOptions", "getDefaultOptions", "weekStartsOn", "_date", "toDate", "day", "diff", "startOfISOWeek", "date", "startOfWeek", "getISOWeekYear", "date", "_date", "toDate", "year", "fourthOfJanuaryOfNextYear", "constructFrom", "startOfNextYear", "startOfISOWeek", "fourthOfJanuaryOfThisYear", "startOfThisYear", "startOfDay", "date", "_date", "toDate", "getTimezoneOffsetInMilliseconds", "date", "_date", "toDate", "utcDate", "differenceInCalendarDays", "dateLeft", "dateRight", "startOfDayLeft", "startOfDay", "startOfDayRight", "timestampLeft", "getTimezoneOffsetInMilliseconds", "timestampRight", "millisecondsInDay", "startOfISOWeekYear", "date", "year", "getISOWeekYear", "fourthOfJanuary", "constructFrom", "startOfISOWeek", "isDate", "value", "isValid", "date", "isDate", "_date", "toDate", "startOfYear", "date", "cleanDate", "toDate", "_date", "constructFrom", "formatDistanceLocale", "formatDistance", "token", "count", "options", "result", "tokenValue", "buildFormatLongFn", "args", "options", "width", "dateFormats", "timeFormats", "dateTimeFormats", "formatLong", "buildFormatLongFn", "formatRelativeLocale", "formatRelative", "token", "_date", "_baseDate", "_options", "buildLocalizeFn", "args", "value", "options", "context", "valuesArray", "defaultWidth", "width", "index", "eraValues", "quarterValues", "monthValues", "dayValues", "dayPeriodValues", "formattingDayPeriodValues", "ordinalNumber", "dirtyNumber", "_options", "number", "rem100", "localize", "buildLocalizeFn", "quarter", "buildMatchFn", "args", "string", "options", "width", "matchPattern", "matchResult", "matchedString", "parsePatterns", "key", "findIndex", "pattern", "findKey", "value", "rest", "object", "predicate", "array", "buildMatchPatternFn", "args", "string", "options", "matchResult", "matchedString", "parseResult", "value", "rest", "matchOrdinalNumberPattern", "parseOrdinalNumberPattern", "matchEraPatterns", "parseEraPatterns", "matchQuarterPatterns", "parseQuarterPatterns", "matchMonthPatterns", "parseMonthPatterns", "matchDayPatterns", "parseDayPatterns", "matchDayPeriodPatterns", "parseDayPeriodPatterns", "match", "buildMatchPatternFn", "value", "buildMatchFn", "index", "enUS", "formatDistance", "formatLong", "formatRelative", "localize", "match", "getDayOfYear", "date", "_date", "toDate", "differenceInCalendarDays", "startOfYear", "getISOWeek", "date", "_date", "toDate", "diff", "startOfISOWeek", "startOfISOWeekYear", "millisecondsInWeek", "getWeekYear", "date", "options", "_date", "toDate", "year", "defaultOptions", "getDefaultOptions", "firstWeekContainsDate", "firstWeekOfNextYear", "constructFrom", "startOfNextYear", "startOfWeek", "firstWeekOfThisYear", "startOfThisYear", "startOfWeekYear", "date", "options", "defaultOptions", "getDefaultOptions", "firstWeekContainsDate", "year", "getWeekYear", "firstWeek", "constructFrom", "startOfWeek", "getWeek", "date", "options", "_date", "toDate", "diff", "startOfWeek", "startOfWeekYear", "millisecondsInWeek", "addLeadingZeros", "number", "targetLength", "sign", "output", "lightFormatters", "date", "token", "signedYear", "year", "addLeadingZeros", "month", "dayPeriodEnumValue", "numberOfDigits", "milliseconds", "fractionalSeconds", "dayPeriodEnum", "formatters", "date", "token", "localize", "era", "signedYear", "year", "lightFormatters", "options", "signedWeekYear", "getWeekYear", "weekYear", "twoDigitYear", "addLeadingZeros", "isoWeekYear", "getISOWeekYear", "quarter", "month", "week", "getWeek", "isoWeek", "getISOWeek", "dayOfYear", "getDayOfYear", "dayOfWeek", "localDayOfWeek", "isoDayOfWeek", "dayPeriodEnumValue", "hours", "_localize", "timezoneOffset", "formatTimezoneWithOptionalMinutes", "formatTimezone", "formatTimezoneShort", "timestamp", "offset", "delimiter", "sign", "absOffset", "minutes", "dateLongFormatter", "pattern", "formatLong", "timeLongFormatter", "dateTimeLongFormatter", "matchResult", "datePattern", "timePattern", "dateTimeFormat", "longFormatters", "dayOfYearTokenRE", "weekYearTokenRE", "throwTokens", "isProtectedDayOfYearToken", "token", "isProtectedWeekYearToken", "warnOrThrowProtectedError", "format", "input", "_message", "message", "subject", "formattingTokensRegExp", "longFormattingTokensRegExp", "escapedStringRegExp", "doubleQuoteRegExp", "unescapedLatinCharacterRegExp", "format", "date", "formatStr", "options", "defaultOptions", "getDefaultOptions", "locale", "enUS", "firstWeekContainsDate", "weekStartsOn", "originalDate", "toDate", "isValid", "parts", "longFormattingTokensRegExp", "substring", "firstCharacter", "longFormatter", "longFormatters", "formattingTokensRegExp", "cleanEscapedString", "formatters", "unescapedLatinCharacterRegExp", "formatterOptions", "part", "token", "isProtectedWeekYearToken", "isProtectedDayOfYearToken", "warnOrThrowProtectedError", "formatter", "input", "matched", "escapedStringRegExp", "doubleQuoteRegExp", "Matcher", "rule", "date", "element", "value", "MultipleModeHandler", "required", "min", "max", "value", "item", "input", "date", "array", "index", "RangeModeHandler", "required", "min", "max", "date", "value", "processDate", "input", "daysBetween", "hoverDate", "from", "hover", "t", "date1", "date2", "SingleModeHandler", "required", "value", "processDate", "input", "date", "calendar_default", "selected", "mode", "disabled", "min", "max", "required", "min_date", "max_date", "disabled_days", "disabled_dates", "value_format", "SingleModeHandler", "MultipleModeHandler", "RangeModeHandler", "element", "Matcher", "now", "date", "format", "selectedDate", "value", "day", "today", "d", "daysInMonth", "daysInPreviousMonth", "dayOfWeek", "preBlankdaysArray", "i", "postBlankdaysArray", "usedCells", "totalCells", "daysArray", "rule", "m", "y", "start", "_", "checkbox_default", "name", "initialValues", "checkedInputs", "input", "optionValue", "v", "positionPopover", "trigger", "content", "opts", "position", "align", "offset", "responsive", "t", "off", "finalPosition", "finalAlign", "c", "vw", "vh", "below", "above", "right", "left", "spaceRight", "spaceLeft", "watchReposition", "callback", "ticking", "handler", "combobox_default", "config", "watchReposition", "positionPopover", "selected_encoded", "selected", "options_encoded", "options", "option", "tag", "shouldAutoclose", "t", "maxIndex", "list", "el", "command_default", "value", "$event", "index", "relative", "nodeList", "nodeListArray", "initialIndex", "node", "keyword", "text", "keywordLower", "textLower", "keywordIndex", "i", "datePicker_default", "open", "value", "mode", "format", "value_format", "locale", "close_on_complete", "trap", "watchReposition", "positionPopover", "detail", "v", "date", "d", "dateStyle", "dialog_default", "show", "dismissable", "dropdownMenu_default", "ticking", "c", "trigger", "content", "offset", "finalPosition", "finalAlign", "contentRect", "viewportWidth", "viewportHeight", "spaceBelow", "spaceAbove", "spaceRight", "spaceLeft", "$event", "dropdownMenuSub_default", "correction", "$event", "popover_default", "radio_default", "name", "initialValue", "checkedInput", "optionValue", "radios", "currentIndex", "r", "nextIndex", "prevIndex", "el", "value", "accent", "variant", "selected", "classes", "select_default", "multiple", "disabled", "index", "el", "idx", "options", "lastSelected", "i", "option", "sheet_default", "side", "transitionEnterStart", "transitionEnterEnd", "transitionLeaveStart", "transitionLeaveEnd", "switchInput_default", "disabled", "checked", "value", "input", "positionPopover", "watchReposition", "accordion_default", "accordionItem_default", "alert_default", "avatar_default", "banner_default", "calendar_default", "checkbox_default", "combobox_default", "command_default", "datePicker_default", "dialog_default", "dropdownMenu_default", "dropdownMenuSub_default", "popover_default", "radio_default", "select_default", "sheet_default", "switchInput_default"]
}
