{"version":3,"file":"useDateField-PQjSLAVI.mjs","names":["$aksy1$_","getLocalTimeZone","CalendarDateTime","ZonedDateTime","getDayOfWeek","createCalendar","DateFormatter","toCalendar","CalendarDate","Time","DateFormatter","today","getLocalTimeZone","DateFormatter"],"sources":["../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/clamp.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/createContext.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/nullish.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/renderSlotFragments.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js","../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/utils.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/GregorianCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/weekStartData.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/queries.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/conversion.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/manipulation.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/string.mjs","../../../node_modules/.pnpm/@swc+helpers@0.5.19/node_modules/@swc/helpers/esm/_check_private_redeclaration.js","../../../node_modules/.pnpm/@swc+helpers@0.5.19/node_modules/@swc/helpers/esm/_class_private_field_init.js","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/CalendarDate.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/JapaneseCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/BuddhistCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/TaiwanCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/PersianCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/IndianCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/IslamicCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/HebrewCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/EthiopicCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/createCalendar.mjs","../../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/DateFormatter.mjs","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/comparators.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/utils.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useDateFormatter.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useDirection.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useKbd.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useLocale.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Primitive/Slot.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Primitive/Primitive.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/Primitive/usePrimitiveElement.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHidden.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/parts.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/placeholders.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/parser.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/segment.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/useDateField.js"],"sourcesContent":["//#region src/shared/clamp.ts\n/**\n* The `clamp` function restricts a number within a specified range by returning the value itself if it\n* falls within the range, or the closest boundary value if it exceeds the range.\n* @param {number} value - The `value` parameter represents the number that you want to clamp within\n* the specified range defined by `min` and `max` values.\n* @param {number} min - If the `value` parameter is less than the `min` value, the\n* function will return the `min` value.\n* @param {number} max - If the `value` parameter is greater than the `max` value,\n* the function will return `max`.\n* @returns The `clamp` function returns the value of `value` constrained within the range defined by\n* `min` and `max`.\n*/\nfunction clamp(value, min = Number.NEGATIVE_INFINITY, max = Number.POSITIVE_INFINITY) {\n\treturn Math.min(max, Math.max(min, value));\n}\n/**\n* The function `roundToStepPrecision` rounds a number to a specified precision step.\n* @param {number} value - The `value` parameter is the number that you want to round to a specific\n* precision based on the `step` parameter.\n* @param {number} step - The `step` parameter in the `roundToStepPrecision` function represents the\n* interval at which you want to round the `value`. For example, if `step` is 0.5, the `value` will be\n* rounded to the nearest half.\n* @returns the `roundedValue` after rounding it to the precision specified by the `step`.\n*/\nfunction roundToStepPrecision(value, step) {\n\tlet roundedValue = value;\n\tconst stepString = step.toString();\n\tconst pointIndex = stepString.indexOf(\".\");\n\tconst precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;\n\tif (precision > 0) {\n\t\tconst pow = 10 ** precision;\n\t\troundedValue = Math.round(roundedValue * pow) / pow;\n\t}\n\treturn roundedValue;\n}\n/**\n* The function `snapValueToStep` snaps a given value to the nearest step within a specified range.\n* @param {number} value - The `value` parameter represents the number that you want to snap to the\n* nearest step value.\n* @param {number | undefined} min - The `min` parameter represents the minimum value that the `value`\n* should be snapped to. If `value` is less than `min`, it will be snapped to `min`. If `min` is not\n* provided (undefined), then the snapping will not consider a minimum value.\n* @param {number | undefined} max - The `max` parameter represents the maximum value that the `value`\n* should be snapped to. It ensures that the snapped value does not exceed this maximum value.\n* @param {number} step - The `step` parameter in the `snapValueToStep` function represents the\n* interval at which the `value` should be snapped to. It determines the granularity of the snapping\n* operation. For example, if `step` is 5, the `value` will be snapped to the nearest multiple of\n* @returns a number that has been snapped to the nearest step value within the specified range of minimum and maximum values.\n*/\nfunction snapValueToStep(value, min, max, step) {\n\tmin = Number(min);\n\tmax = Number(max);\n\tconst remainder = (value - (Number.isNaN(min) ? 0 : min)) % step;\n\tlet snappedValue = roundToStepPrecision(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);\n\tif (!Number.isNaN(min)) {\n\t\tif (snappedValue < min) snappedValue = min;\n\t\telse if (!Number.isNaN(max) && snappedValue > max) snappedValue = min + Math.floor(roundToStepPrecision((max - min) / step, step)) * step;\n\t} else if (!Number.isNaN(max) && snappedValue > max) snappedValue = Math.floor(roundToStepPrecision(max / step, step)) * step;\n\tsnappedValue = roundToStepPrecision(snappedValue, step);\n\treturn snappedValue;\n}\n\n//#endregion\nexport { clamp, snapValueToStep };\n//# sourceMappingURL=clamp.js.map","import { inject, provide } from \"vue\";\n\n//#region src/shared/createContext.ts\n/**\n* @param providerComponentName - The name(s) of the component(s) providing the context.\n*\n* There are situations where context can come from multiple components. In such cases, you might need to give an array of component names to provide your context, instead of just a single string.\n*\n* @param contextName The description for injection key symbol.\n*/\nfunction createContext(providerComponentName, contextName) {\n\tconst symbolDescription = typeof providerComponentName === \"string\" && !contextName ? `${providerComponentName}Context` : contextName;\n\tconst injectionKey = Symbol(symbolDescription);\n\t/**\n\t* @param fallback The context value to return if the injection fails.\n\t*\n\t* @throws When context injection failed and no fallback is specified.\n\t* This happens when the component injecting the context is not a child of the root component providing the context.\n\t*/\n\tconst injectContext = (fallback) => {\n\t\tconst context = inject(injectionKey, fallback);\n\t\tif (context) return context;\n\t\tif (context === null) return context;\n\t\tthrow new Error(`Injection \\`${injectionKey.toString()}\\` not found. Component must be used within ${Array.isArray(providerComponentName) ? `one of the following components: ${providerComponentName.join(\", \")}` : `\\`${providerComponentName}\\``}`);\n\t};\n\tconst provideContext = (contextValue) => {\n\t\tprovide(injectionKey, contextValue);\n\t\treturn contextValue;\n\t};\n\treturn [injectContext, provideContext];\n}\n\n//#endregion\nexport { createContext };\n//# sourceMappingURL=createContext.js.map","//#region src/shared/nullish.ts\nfunction isNullish(value) {\n\treturn value === null || value === void 0;\n}\n\n//#endregion\nexport { isNullish };\n//# sourceMappingURL=nullish.js.map","import { Fragment } from \"vue\";\n\n//#region src/shared/renderSlotFragments.ts\nfunction renderSlotFragments(children) {\n\tif (!children) return [];\n\treturn children.flatMap((child) => {\n\t\tif (child.type === Fragment) return renderSlotFragments(child.children);\n\t\treturn [child];\n\t});\n}\n\n//#endregion\nexport { renderSlotFragments };\n//# sourceMappingURL=renderSlotFragments.js.map","import { createContext } from \"../shared/createContext.js\";\nimport { defineComponent, renderSlot, toRefs } from \"vue\";\n\n//#region src/ConfigProvider/ConfigProvider.vue?vue&type=script&setup=true&lang.ts\nconst [injectConfigProviderContext, provideConfigProviderContext] = createContext(\"ConfigProvider\");\nvar ConfigProvider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\tinheritAttrs: false,\n\t__name: \"ConfigProvider\",\n\tprops: {\n\t\tdir: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: \"ltr\"\n\t\t},\n\t\tlocale: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: \"en\"\n\t\t},\n\t\tscrollBody: {\n\t\t\ttype: [Boolean, Object],\n\t\t\trequired: false,\n\t\t\tdefault: true\n\t\t},\n\t\tnonce: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: void 0\n\t\t},\n\t\tuseId: {\n\t\t\ttype: Function,\n\t\t\trequired: false,\n\t\t\tdefault: void 0\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\tconst { dir, locale, scrollBody, nonce } = toRefs(props);\n\t\tprovideConfigProviderContext({\n\t\t\tdir,\n\t\t\tlocale,\n\t\t\tscrollBody,\n\t\t\tnonce,\n\t\t\tuseId: props.useId\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn renderSlot(_ctx.$slots, \"default\");\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/ConfigProvider/ConfigProvider.vue\nvar ConfigProvider_default = ConfigProvider_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { ConfigProvider_default, injectConfigProviderContext };\n//# sourceMappingURL=ConfigProvider.js.map","function isPlainObject(value) {\n  if (value === null || typeof value !== \"object\") {\n    return false;\n  }\n  const prototype = Object.getPrototypeOf(value);\n  if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {\n    return false;\n  }\n  if (Symbol.iterator in value) {\n    return false;\n  }\n  if (Symbol.toStringTag in value) {\n    return Object.prototype.toString.call(value) === \"[object Module]\";\n  }\n  return true;\n}\n\nfunction _defu(baseObject, defaults, namespace = \".\", merger) {\n  if (!isPlainObject(defaults)) {\n    return _defu(baseObject, {}, namespace, merger);\n  }\n  const object = Object.assign({}, defaults);\n  for (const key in baseObject) {\n    if (key === \"__proto__\" || key === \"constructor\") {\n      continue;\n    }\n    const value = baseObject[key];\n    if (value === null || value === void 0) {\n      continue;\n    }\n    if (merger && merger(object, key, value, namespace)) {\n      continue;\n    }\n    if (Array.isArray(value) && Array.isArray(object[key])) {\n      object[key] = [...value, ...object[key]];\n    } else if (isPlainObject(value) && isPlainObject(object[key])) {\n      object[key] = _defu(\n        value,\n        object[key],\n        (namespace ? `${namespace}.` : \"\") + key.toString(),\n        merger\n      );\n    } else {\n      object[key] = value;\n    }\n  }\n  return object;\n}\nfunction createDefu(merger) {\n  return (...arguments_) => (\n    // eslint-disable-next-line unicorn/no-array-reduce\n    arguments_.reduce((p, c) => _defu(p, c, \"\", merger), {})\n  );\n}\nconst defu = createDefu();\nconst defuFn = createDefu((object, key, currentValue) => {\n  if (object[key] !== void 0 && typeof currentValue === \"function\") {\n    object[key] = currentValue(object[key]);\n    return true;\n  }\n});\nconst defuArrayFn = createDefu((object, key, currentValue) => {\n  if (Array.isArray(object[key]) && typeof currentValue === \"function\") {\n    object[key] = currentValue(object[key]);\n    return true;\n  }\n});\n\nexport { createDefu, defu as default, defu, defuArrayFn, defuFn };\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {\n    return amount - numerator * Math.floor(amount / numerator);\n}\n\n\nexport {$2b4dce13dd5a17fa$export$842a2cf37af977e1 as mod};\n//# sourceMappingURL=utils.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {mod as $2b4dce13dd5a17fa$export$842a2cf37af977e1} from \"./utils.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $3b62074eb05584b2$var$EPOCH = 1721426; // 001/01/03 Julian C.E.\nfunction $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {\n    year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);\n    let y1 = year - 1;\n    let monthOffset = -2;\n    if (month <= 2) monthOffset = 0;\n    else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;\n    return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);\n}\nfunction $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {\n    return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\nfunction $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {\n    return era === 'BC' ? 1 - year : year;\n}\nfunction $3b62074eb05584b2$export$4475b7e617eb123c(year) {\n    let era = 'AD';\n    if (year <= 0) {\n        era = 'BC';\n        year = 1 - year;\n    }\n    return [\n        era,\n        year\n    ];\n}\nconst $3b62074eb05584b2$var$daysInMonth = {\n    standard: [\n        31,\n        28,\n        31,\n        30,\n        31,\n        30,\n        31,\n        31,\n        30,\n        31,\n        30,\n        31\n    ],\n    leapyear: [\n        31,\n        29,\n        31,\n        30,\n        31,\n        30,\n        31,\n        31,\n        30,\n        31,\n        30,\n        31\n    ]\n};\nclass $3b62074eb05584b2$export$80ee6245ec4f29ec {\n    fromJulianDay(jd) {\n        let jd0 = jd;\n        let depoch = jd0 - $3b62074eb05584b2$var$EPOCH;\n        let quadricent = Math.floor(depoch / 146097);\n        let dqc = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(depoch, 146097);\n        let cent = Math.floor(dqc / 36524);\n        let dcent = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(dqc, 36524);\n        let quad = Math.floor(dcent / 1461);\n        let dquad = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(dcent, 1461);\n        let yindex = Math.floor(dquad / 365);\n        let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);\n        let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);\n        let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);\n        let leapAdj = 2;\n        if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;\n        else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;\n        let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);\n        let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(era, year, month, day);\n    }\n    toJulianDay(date) {\n        return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);\n    }\n    getDaysInMonth(date) {\n        return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];\n    }\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    getMonthsInYear(date) {\n        return 12;\n    }\n    getDaysInYear(date) {\n        return $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 366 : 365;\n    }\n    getMaximumMonthsInYear() {\n        return 12;\n    }\n    getMaximumDaysInMonth() {\n        return 31;\n    }\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    getYearsInEra(date) {\n        return 9999;\n    }\n    getEras() {\n        return [\n            'BC',\n            'AD'\n        ];\n    }\n    isInverseEra(date) {\n        return date.era === 'BC';\n    }\n    balanceDate(date) {\n        if (date.year <= 0) {\n            date.era = date.era === 'BC' ? 'AD' : 'BC';\n            date.year = 1 - date.year;\n        }\n    }\n    constructor(){\n        this.identifier = 'gregory';\n    }\n}\n\n\nexport {$3b62074eb05584b2$export$f297eb839006d339 as gregorianToJulianDay, $3b62074eb05584b2$export$c36e0ecb2d4fa69d as getExtendedYear, $3b62074eb05584b2$export$553d7fa8e3805fc0 as isLeapYear, $3b62074eb05584b2$export$4475b7e617eb123c as fromExtendedYear, $3b62074eb05584b2$export$80ee6245ec4f29ec as GregorianCalendar};\n//# sourceMappingURL=GregorianCalendar.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Data from https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/weekData.json\n// Locales starting on Sunday have been removed for compression.\nconst $2fe286d2fb449abb$export$7a5acbd77d414bd9 = {\n    '001': 1,\n    AD: 1,\n    AE: 6,\n    AF: 6,\n    AI: 1,\n    AL: 1,\n    AM: 1,\n    AN: 1,\n    AR: 1,\n    AT: 1,\n    AU: 1,\n    AX: 1,\n    AZ: 1,\n    BA: 1,\n    BE: 1,\n    BG: 1,\n    BH: 6,\n    BM: 1,\n    BN: 1,\n    BY: 1,\n    CH: 1,\n    CL: 1,\n    CM: 1,\n    CN: 1,\n    CR: 1,\n    CY: 1,\n    CZ: 1,\n    DE: 1,\n    DJ: 6,\n    DK: 1,\n    DZ: 6,\n    EC: 1,\n    EE: 1,\n    EG: 6,\n    ES: 1,\n    FI: 1,\n    FJ: 1,\n    FO: 1,\n    FR: 1,\n    GB: 1,\n    GE: 1,\n    GF: 1,\n    GP: 1,\n    GR: 1,\n    HR: 1,\n    HU: 1,\n    IE: 1,\n    IQ: 6,\n    IR: 6,\n    IS: 1,\n    IT: 1,\n    JO: 6,\n    KG: 1,\n    KW: 6,\n    KZ: 1,\n    LB: 1,\n    LI: 1,\n    LK: 1,\n    LT: 1,\n    LU: 1,\n    LV: 1,\n    LY: 6,\n    MC: 1,\n    MD: 1,\n    ME: 1,\n    MK: 1,\n    MN: 1,\n    MQ: 1,\n    MV: 5,\n    MY: 1,\n    NL: 1,\n    NO: 1,\n    NZ: 1,\n    OM: 6,\n    PL: 1,\n    QA: 6,\n    RE: 1,\n    RO: 1,\n    RS: 1,\n    RU: 1,\n    SD: 6,\n    SE: 1,\n    SI: 1,\n    SK: 1,\n    SM: 1,\n    SY: 6,\n    TJ: 1,\n    TM: 1,\n    TR: 1,\n    UA: 1,\n    UY: 1,\n    UZ: 1,\n    VA: 1,\n    VN: 1,\n    XK: 1\n};\n\n\nexport {$2fe286d2fb449abb$export$7a5acbd77d414bd9 as weekStartData};\n//# sourceMappingURL=weekStartData.module.js.map\n","import {fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDate as $11d87f3f76e88657$export$93522d1a439f3617} from \"./conversion.mjs\";\nimport {weekStartData as $2fe286d2fb449abb$export$7a5acbd77d414bd9} from \"./weekStartData.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b) {\n    b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n    return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;\n}\nfunction $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b) {\n    b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n    // In the Japanese calendar, months can span multiple eras/years, so only compare the first of the month.\n    a = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(a);\n    b = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(b);\n    return a.era === b.era && a.year === b.year && a.month === b.month;\n}\nfunction $14e0f24ef4ac5c92$export$5841f9eb9773f25f(a, b) {\n    b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n    a = $14e0f24ef4ac5c92$export$f91e89d3d0406102(a);\n    b = $14e0f24ef4ac5c92$export$f91e89d3d0406102(b);\n    return a.era === b.era && a.year === b.year;\n}\nfunction $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(a, b) {\n    return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(a, b) {\n    return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$ea840f5a6dda8147(a, b) {\n    return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$5841f9eb9773f25f(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a, b) {\n    var _a_isEqual, _b_isEqual;\n    var _a_isEqual1, _ref;\n    return (_ref = (_a_isEqual1 = (_a_isEqual = a.isEqual) === null || _a_isEqual === void 0 ? void 0 : _a_isEqual.call(a, b)) !== null && _a_isEqual1 !== void 0 ? _a_isEqual1 : (_b_isEqual = b.isEqual) === null || _b_isEqual === void 0 ? void 0 : _b_isEqual.call(b, a)) !== null && _ref !== void 0 ? _ref : a.identifier === b.identifier;\n}\nfunction $14e0f24ef4ac5c92$export$629b0a497aa65267(date, timeZone) {\n    return $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone));\n}\nconst $14e0f24ef4ac5c92$var$DAY_MAP = {\n    sun: 0,\n    mon: 1,\n    tue: 2,\n    wed: 3,\n    thu: 4,\n    fri: 5,\n    sat: 6\n};\nfunction $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek) {\n    let julian = date.calendar.toJulianDay(date);\n    // If julian is negative, then julian % 7 will be negative, so we adjust\n    // accordingly.  Julian day 0 is Monday.\n    let weekStart = firstDayOfWeek ? $14e0f24ef4ac5c92$var$DAY_MAP[firstDayOfWeek] : $14e0f24ef4ac5c92$var$getWeekStart(locale);\n    let dayOfWeek = Math.ceil(julian + 1 - weekStart) % 7;\n    if (dayOfWeek < 0) dayOfWeek += 7;\n    return dayOfWeek;\n}\nfunction $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {\n    return (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(Date.now(), timeZone);\n}\nfunction $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {\n    return (0, $11d87f3f76e88657$export$93522d1a439f3617)($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));\n}\nfunction $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {\n    return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);\n}\nfunction $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {\n    return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);\n}\nfunction $14e0f24ef4ac5c92$var$timeToMs(a) {\n    return a.hour * 3600000 + a.minute * 60000 + a.second * 1000 + a.millisecond;\n}\nfunction $14e0f24ef4ac5c92$export$126c91c941de7e(a, timeZone) {\n    let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(a, timeZone);\n    let tomorrow = a.add({\n        days: 1\n    });\n    let tomorrowMs = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(tomorrow, timeZone);\n    return (tomorrowMs - ms) / 3600000;\n}\nlet $14e0f24ef4ac5c92$var$localTimeZone = null;\nlet $14e0f24ef4ac5c92$var$localTimeZoneOverride = false;\nfunction $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {\n    if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;\n    return $14e0f24ef4ac5c92$var$localTimeZone;\n}\nfunction $14e0f24ef4ac5c92$export$61a9d83ceb59a3dd(timeZone) {\n    $14e0f24ef4ac5c92$var$localTimeZoneOverride = true;\n    $14e0f24ef4ac5c92$var$localTimeZone = timeZone;\n}\nfunction $14e0f24ef4ac5c92$export$55753838ffe79333() {\n    $14e0f24ef4ac5c92$var$localTimeZoneOverride = false;\n    $14e0f24ef4ac5c92$var$localTimeZone = null;\n}\nfunction $14e0f24ef4ac5c92$export$6ab69b273755230b() {\n    return $14e0f24ef4ac5c92$var$localTimeZoneOverride;\n}\nfunction $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date) {\n    // Use `subtract` instead of `set` so we don't get constrained in an era.\n    return date.subtract({\n        days: date.day - 1\n    });\n}\nfunction $14e0f24ef4ac5c92$export$a2258d9c4118825c(date) {\n    return date.add({\n        days: date.calendar.getDaysInMonth(date) - date.day\n    });\n}\nfunction $14e0f24ef4ac5c92$export$f91e89d3d0406102(date) {\n    return $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date.subtract({\n        months: date.month - 1\n    }));\n}\nfunction $14e0f24ef4ac5c92$export$8b7aa55c66d5569e(date) {\n    return $14e0f24ef4ac5c92$export$a2258d9c4118825c(date.add({\n        months: date.calendar.getMonthsInYear(date) - date.month\n    }));\n}\nfunction $14e0f24ef4ac5c92$export$5412ac11713b72ad(date) {\n    if (date.calendar.getMinimumMonthInYear) return date.calendar.getMinimumMonthInYear(date);\n    return 1;\n}\nfunction $14e0f24ef4ac5c92$export$b2f4953d301981d5(date) {\n    if (date.calendar.getMinimumDayInMonth) return date.calendar.getMinimumDayInMonth(date);\n    return 1;\n}\nfunction $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale, firstDayOfWeek) {\n    let dayOfWeek = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek);\n    return date.subtract({\n        days: dayOfWeek\n    });\n}\nfunction $14e0f24ef4ac5c92$export$ef8b6d9133084f4e(date, locale, firstDayOfWeek) {\n    return $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale, firstDayOfWeek).add({\n        days: 6\n    });\n}\nconst $14e0f24ef4ac5c92$var$cachedRegions = new Map();\nconst $14e0f24ef4ac5c92$var$cachedWeekInfo = new Map();\nfunction $14e0f24ef4ac5c92$var$getRegion(locale) {\n    // If the Intl.Locale API is available, use it to get the region for the locale.\n    // @ts-ignore\n    if (Intl.Locale) {\n        // Constructing an Intl.Locale is expensive, so cache the result.\n        let region = $14e0f24ef4ac5c92$var$cachedRegions.get(locale);\n        if (!region) {\n            // @ts-ignore\n            region = new Intl.Locale(locale).maximize().region;\n            if (region) $14e0f24ef4ac5c92$var$cachedRegions.set(locale, region);\n        }\n        return region;\n    }\n    // If not, just try splitting the string.\n    // If the second part of the locale string is 'u',\n    // then this is a unicode extension, so ignore it.\n    // Otherwise, it should be the region.\n    let part = locale.split('-')[1];\n    return part === 'u' ? undefined : part;\n}\nfunction $14e0f24ef4ac5c92$var$getWeekStart(locale) {\n    // TODO: use Intl.Locale for this once browsers support the weekInfo property\n    // https://github.com/tc39/proposal-intl-locale-info\n    let weekInfo = $14e0f24ef4ac5c92$var$cachedWeekInfo.get(locale);\n    if (!weekInfo) {\n        if (Intl.Locale) {\n            // @ts-ignore\n            let localeInst = new Intl.Locale(locale);\n            if ('getWeekInfo' in localeInst) {\n                // @ts-expect-error\n                weekInfo = localeInst.getWeekInfo();\n                if (weekInfo) {\n                    $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);\n                    return weekInfo.firstDay;\n                }\n            }\n        }\n        let region = $14e0f24ef4ac5c92$var$getRegion(locale);\n        if (locale.includes('-fw-')) {\n            // pull the value for the attribute fw from strings such as en-US-u-ca-iso8601-fw-tue or en-US-u-ca-iso8601-fw-mon-nu-thai\n            // where the fw attribute could be followed by another unicode locale extension or not\n            let day = locale.split('-fw-')[1].split('-')[0];\n            if (day === 'mon') weekInfo = {\n                firstDay: 1\n            };\n            else if (day === 'tue') weekInfo = {\n                firstDay: 2\n            };\n            else if (day === 'wed') weekInfo = {\n                firstDay: 3\n            };\n            else if (day === 'thu') weekInfo = {\n                firstDay: 4\n            };\n            else if (day === 'fri') weekInfo = {\n                firstDay: 5\n            };\n            else if (day === 'sat') weekInfo = {\n                firstDay: 6\n            };\n            else weekInfo = {\n                firstDay: 0\n            };\n        } else if (locale.includes('-ca-iso8601')) weekInfo = {\n            firstDay: 1\n        };\n        else weekInfo = {\n            firstDay: region ? (0, $2fe286d2fb449abb$export$7a5acbd77d414bd9)[region] || 0 : 0\n        };\n        $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);\n    }\n    return weekInfo.firstDay;\n}\nfunction $14e0f24ef4ac5c92$export$ccc1b2479e7dd654(date, locale, firstDayOfWeek) {\n    let days = date.calendar.getDaysInMonth(date);\n    return Math.ceil(($14e0f24ef4ac5c92$export$2061056d06d7cdf7($14e0f24ef4ac5c92$export$a5a3b454ada2268e(date), locale, firstDayOfWeek) + days) / 7);\n}\nfunction $14e0f24ef4ac5c92$export$5c333a116e949cdd(a, b) {\n    if (a && b) return a.compare(b) <= 0 ? a : b;\n    return a || b;\n}\nfunction $14e0f24ef4ac5c92$export$a75f2bff57811055(a, b) {\n    if (a && b) return a.compare(b) >= 0 ? a : b;\n    return a || b;\n}\nconst $14e0f24ef4ac5c92$var$WEEKEND_DATA = {\n    AF: [\n        4,\n        5\n    ],\n    AE: [\n        5,\n        6\n    ],\n    BH: [\n        5,\n        6\n    ],\n    DZ: [\n        5,\n        6\n    ],\n    EG: [\n        5,\n        6\n    ],\n    IL: [\n        5,\n        6\n    ],\n    IQ: [\n        5,\n        6\n    ],\n    IR: [\n        5,\n        5\n    ],\n    JO: [\n        5,\n        6\n    ],\n    KW: [\n        5,\n        6\n    ],\n    LY: [\n        5,\n        6\n    ],\n    OM: [\n        5,\n        6\n    ],\n    QA: [\n        5,\n        6\n    ],\n    SA: [\n        5,\n        6\n    ],\n    SD: [\n        5,\n        6\n    ],\n    SY: [\n        5,\n        6\n    ],\n    YE: [\n        5,\n        6\n    ]\n};\nfunction $14e0f24ef4ac5c92$export$618d60ea299da42(date, locale) {\n    let julian = date.calendar.toJulianDay(date);\n    // If julian is negative, then julian % 7 will be negative, so we adjust\n    // accordingly.  Julian day 0 is Monday.\n    let dayOfWeek = Math.ceil(julian + 1) % 7;\n    if (dayOfWeek < 0) dayOfWeek += 7;\n    let region = $14e0f24ef4ac5c92$var$getRegion(locale);\n    // Use Intl.Locale for this once weekInfo is supported.\n    // https://github.com/tc39/proposal-intl-locale-info\n    let [start, end] = $14e0f24ef4ac5c92$var$WEEKEND_DATA[region] || [\n        6,\n        0\n    ];\n    return dayOfWeek === start || dayOfWeek === end;\n}\nfunction $14e0f24ef4ac5c92$export$ee9d87258e1d19ed(date, locale) {\n    return !$14e0f24ef4ac5c92$export$618d60ea299da42(date, locale);\n}\n\n\nexport {$14e0f24ef4ac5c92$export$ea39ec197993aef0 as isSameDay, $14e0f24ef4ac5c92$export$a18c89cbd24170ff as isSameMonth, $14e0f24ef4ac5c92$export$a5a3b454ada2268e as startOfMonth, $14e0f24ef4ac5c92$export$5841f9eb9773f25f as isSameYear, $14e0f24ef4ac5c92$export$f91e89d3d0406102 as startOfYear, $14e0f24ef4ac5c92$export$91b62ebf2ba703ee as isEqualDay, $14e0f24ef4ac5c92$export$dbc69fd56b53d5e as isEqualCalendar, $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2 as isEqualMonth, $14e0f24ef4ac5c92$export$ea840f5a6dda8147 as isEqualYear, $14e0f24ef4ac5c92$export$629b0a497aa65267 as isToday, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3 as today, $14e0f24ef4ac5c92$export$2061056d06d7cdf7 as getDayOfWeek, $14e0f24ef4ac5c92$export$461939dd4422153 as now, $14e0f24ef4ac5c92$export$68781ddf31c0090f as compareDate, $14e0f24ef4ac5c92$export$c19a80a9721b80f6 as compareTime, $14e0f24ef4ac5c92$export$126c91c941de7e as getHoursInDay, $14e0f24ef4ac5c92$export$aa8b41735afcabd2 as getLocalTimeZone, $14e0f24ef4ac5c92$export$61a9d83ceb59a3dd as setLocalTimeZone, $14e0f24ef4ac5c92$export$55753838ffe79333 as resetLocalTimeZone, $14e0f24ef4ac5c92$export$6ab69b273755230b as isLocalTimeZoneOverridden, $14e0f24ef4ac5c92$export$a2258d9c4118825c as endOfMonth, $14e0f24ef4ac5c92$export$8b7aa55c66d5569e as endOfYear, $14e0f24ef4ac5c92$export$5412ac11713b72ad as getMinimumMonthInYear, $14e0f24ef4ac5c92$export$b2f4953d301981d5 as getMinimumDayInMonth, $14e0f24ef4ac5c92$export$42c81a444fbfb5d4 as startOfWeek, $14e0f24ef4ac5c92$export$ef8b6d9133084f4e as endOfWeek, $14e0f24ef4ac5c92$export$ccc1b2479e7dd654 as getWeeksInMonth, $14e0f24ef4ac5c92$export$5c333a116e949cdd as minDate, $14e0f24ef4ac5c92$export$a75f2bff57811055 as maxDate, $14e0f24ef4ac5c92$export$618d60ea299da42 as isWeekend, $14e0f24ef4ac5c92$export$ee9d87258e1d19ed as isWeekday};\n//# sourceMappingURL=queries.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from \"./CalendarDate.mjs\";\nimport {constrain as $735220c2d4774dd3$export$c4e2ecac49351ef2} from \"./manipulation.mjs\";\nimport {getExtendedYear as $3b62074eb05584b2$export$c36e0ecb2d4fa69d, GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\nimport {getLocalTimeZone as $14e0f24ef4ac5c92$export$aa8b41735afcabd2, isEqualCalendar as $14e0f24ef4ac5c92$export$dbc69fd56b53d5e, isLocalTimeZoneOverridden as $14e0f24ef4ac5c92$export$6ab69b273755230b} from \"./queries.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from the TC39 Temporal proposal.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\n\n\nfunction $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {\n    date = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n    let year = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(date.era, date.year);\n    return $11d87f3f76e88657$var$epochFromParts(year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);\n}\nfunction $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {\n    // Note: Date.UTC() interprets one and two-digit years as being in the\n    // 20th century, so don't use it\n    let date = new Date();\n    date.setUTCHours(hour, minute, second, millisecond);\n    date.setUTCFullYear(year, month - 1, day);\n    return date.getTime();\n}\nfunction $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {\n    // Fast path for UTC.\n    if (timeZone === 'UTC') return 0;\n    // Fast path: for local timezone after 1970, use native Date.\n    // Skip this fast path if the local timezone was explicitly overridden via setLocalTimeZone,\n    // since native Date always uses the browser's timezone, not the overridden one.\n    if (ms > 0 && timeZone === (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)() && !(0, $14e0f24ef4ac5c92$export$6ab69b273755230b)()) return new Date(ms).getTimezoneOffset() * -60000;\n    let { year: year, month: month, day: day, hour: hour, minute: minute, second: second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);\n    let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);\n    return utc - Math.floor(ms / 1000) * 1000;\n}\nconst $11d87f3f76e88657$var$formattersByTimeZone = new Map();\nfunction $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {\n    let formatter = $11d87f3f76e88657$var$formattersByTimeZone.get(timeZone);\n    if (!formatter) {\n        formatter = new Intl.DateTimeFormat('en-US', {\n            timeZone: timeZone,\n            hour12: false,\n            era: 'short',\n            year: 'numeric',\n            month: 'numeric',\n            day: 'numeric',\n            hour: 'numeric',\n            minute: 'numeric',\n            second: 'numeric'\n        });\n        $11d87f3f76e88657$var$formattersByTimeZone.set(timeZone, formatter);\n    }\n    let parts = formatter.formatToParts(new Date(ms));\n    let namedParts = {};\n    for (let part of parts)if (part.type !== 'literal') namedParts[part.type] = part.value;\n    return {\n        // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253\n        year: namedParts.era === 'BC' || namedParts.era === 'B' ? -namedParts.year + 1 : +namedParts.year,\n        month: +namedParts.month,\n        day: +namedParts.day,\n        hour: namedParts.hour === '24' ? 0 : +namedParts.hour,\n        minute: +namedParts.minute,\n        second: +namedParts.second\n    };\n}\nconst $11d87f3f76e88657$var$DAYMILLIS = 86400000;\nfunction $11d87f3f76e88657$export$136f38efe7caf549(date, timeZone) {\n    let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date);\n    let earlier = ms - $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n    let later = ms - $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n    return $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later);\n}\nfunction $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later) {\n    let found = earlier === later ? [\n        earlier\n    ] : [\n        earlier,\n        later\n    ];\n    return found.filter((absolute)=>$11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute));\n}\nfunction $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {\n    let parts = $11d87f3f76e88657$var$getTimeZoneParts(absolute, timeZone);\n    return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;\n}\nfunction $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = 'compatible') {\n    let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);\n    // Fast path: if the time zone is UTC, use native Date.\n    if (timeZone === 'UTC') return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);\n    // Fast path: if the time zone is the local timezone and disambiguation is compatible, use native Date.\n    // Skip this fast path if the local timezone was explicitly overridden via setLocalTimeZone,\n    // since native Date always uses the browser's timezone, not the overridden one.\n    if (timeZone === (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)() && disambiguation === 'compatible' && !(0, $14e0f24ef4ac5c92$export$6ab69b273755230b)()) {\n        dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n        // Don't use Date constructor here because two-digit years are interpreted in the 20th century.\n        let date = new Date();\n        let year = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(dateTime.era, dateTime.year);\n        date.setFullYear(year, dateTime.month - 1, dateTime.day);\n        date.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);\n        return date.getTime();\n    }\n    let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);\n    let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n    let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n    let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);\n    if (valid.length === 1) return valid[0];\n    if (valid.length > 1) switch(disambiguation){\n        // 'compatible' means 'earlier' for \"fall back\" transitions\n        case 'compatible':\n        case 'earlier':\n            return valid[0];\n        case 'later':\n            return valid[valid.length - 1];\n        case 'reject':\n            throw new RangeError('Multiple possible absolute times found');\n    }\n    switch(disambiguation){\n        case 'earlier':\n            return Math.min(ms - offsetBefore, ms - offsetAfter);\n        // 'compatible' means 'later' for \"spring forward\" transitions\n        case 'compatible':\n        case 'later':\n            return Math.max(ms - offsetBefore, ms - offsetAfter);\n        case 'reject':\n            throw new RangeError('No such absolute time found');\n    }\n}\nfunction $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = 'compatible') {\n    return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));\n}\nfunction $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {\n    let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);\n    let date = new Date(ms + offset);\n    let year = date.getUTCFullYear();\n    let month = date.getUTCMonth() + 1;\n    let day = date.getUTCDate();\n    let hour = date.getUTCHours();\n    let minute = date.getUTCMinutes();\n    let second = date.getUTCSeconds();\n    let millisecond = date.getUTCMilliseconds();\n    return new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(year < 1 ? 'BC' : 'AD', year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);\n}\nfunction $11d87f3f76e88657$export$e57ff100d91bd4b9(date, timeZone) {\n    return $11d87f3f76e88657$export$1b96692a1ba042ac(date.getTime(), timeZone);\n}\nfunction $11d87f3f76e88657$export$d7f92bcd3596b086(date) {\n    return $11d87f3f76e88657$export$e57ff100d91bd4b9(date, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\nfunction $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {\n    return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);\n}\nfunction $11d87f3f76e88657$export$6f4d78149f3f53ac(date) {\n    return {\n        era: date.era,\n        year: date.year,\n        month: date.month,\n        day: date.day\n    };\n}\nfunction $11d87f3f76e88657$export$4d0393e732857be5(date) {\n    return {\n        hour: date.hour,\n        minute: date.minute,\n        second: date.second,\n        millisecond: date.millisecond\n    };\n}\nfunction $11d87f3f76e88657$export$b21e0b124e224484(date, time) {\n    let hour = 0, minute = 0, second = 0, millisecond = 0;\n    if ('timeZone' in date) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = date);\n    else if ('hour' in date && !time) return date;\n    if (time) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = time);\n    return new (0, $35ea8db9cb2ccb90$export$ca871e8dbb80966f)(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);\n}\nfunction $11d87f3f76e88657$export$d33f79e3ffc3dc83(dateTime) {\n    return new (0, $35ea8db9cb2ccb90$export$680ea196effce5f)(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);\n}\nfunction $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {\n    if ((0, $14e0f24ef4ac5c92$export$dbc69fd56b53d5e)(date.calendar, calendar)) return date;\n    let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));\n    let copy = date.copy();\n    copy.calendar = calendar;\n    copy.era = calendarDate.era;\n    copy.year = calendarDate.year;\n    copy.month = calendarDate.month;\n    copy.day = calendarDate.day;\n    (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(copy);\n    return copy;\n}\nfunction $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {\n    if (date instanceof (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)) {\n        if (date.timeZone === timeZone) return date;\n        return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);\n    }\n    let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);\n    return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);\n}\nfunction $11d87f3f76e88657$export$83aac07b4c37b25(date) {\n    let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;\n    return new Date(ms);\n}\nfunction $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {\n    let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;\n    return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);\n}\nfunction $11d87f3f76e88657$export$d9b67bc93c097491(date) {\n    return $11d87f3f76e88657$export$538b00033cc11c75(date, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\n\n\nexport {$11d87f3f76e88657$export$bd4fb2bc8bb06fb as epochFromDate, $11d87f3f76e88657$export$b4a036af3fc0b032 as toCalendar, $11d87f3f76e88657$export$59c99f3515d3493f as getTimeZoneOffset, $11d87f3f76e88657$export$136f38efe7caf549 as possibleAbsolutes, $11d87f3f76e88657$export$5107c82f94518f5c as toAbsolute, $11d87f3f76e88657$export$b21e0b124e224484 as toCalendarDateTime, $11d87f3f76e88657$export$e67a095c620b86fe as toDate, $11d87f3f76e88657$export$1b96692a1ba042ac as fromAbsolute, $11d87f3f76e88657$export$e57ff100d91bd4b9 as fromDate, $11d87f3f76e88657$export$d7f92bcd3596b086 as fromDateToLocal, $11d87f3f76e88657$export$93522d1a439f3617 as toCalendarDate, $11d87f3f76e88657$export$6f4d78149f3f53ac as toDateFields, $11d87f3f76e88657$export$4d0393e732857be5 as toTimeFields, $11d87f3f76e88657$export$d33f79e3ffc3dc83 as toTime, $11d87f3f76e88657$export$84c95a83c799e074 as toZoned, $11d87f3f76e88657$export$538b00033cc11c75 as toTimeZone, $11d87f3f76e88657$export$83aac07b4c37b25 as zonedToDate, $11d87f3f76e88657$export$d9b67bc93c097491 as toLocalTimeZone};\n//# sourceMappingURL=conversion.module.js.map\n","import {epochFromDate as $11d87f3f76e88657$export$bd4fb2bc8bb06fb, fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484} from \"./conversion.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nconst $735220c2d4774dd3$var$ONE_HOUR = 3600000;\nfunction $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {\n    let mutableDate = date.copy();\n    let days = 'hour' in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;\n    $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);\n    if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);\n    mutableDate.month += duration.months || 0;\n    $735220c2d4774dd3$var$balanceYearMonth(mutableDate);\n    $735220c2d4774dd3$var$constrainMonthDay(mutableDate);\n    mutableDate.day += (duration.weeks || 0) * 7;\n    mutableDate.day += duration.days || 0;\n    mutableDate.day += days;\n    $735220c2d4774dd3$var$balanceDay(mutableDate);\n    if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);\n    // Constrain in case adding ended up with a date outside the valid range for the calendar system.\n    // The behavior here is slightly different than when constraining in the `set` function in that\n    // we adjust smaller fields to their minimum/maximum values rather than constraining each field\n    // individually. This matches the general behavior of `add` vs `set` regarding how fields are balanced.\n    if (mutableDate.year < 1) {\n        mutableDate.year = 1;\n        mutableDate.month = 1;\n        mutableDate.day = 1;\n    }\n    let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);\n    if (mutableDate.year > maxYear) {\n        var _mutableDate_calendar_isInverseEra, _mutableDate_calendar;\n        let isInverseEra = (_mutableDate_calendar_isInverseEra = (_mutableDate_calendar = mutableDate.calendar).isInverseEra) === null || _mutableDate_calendar_isInverseEra === void 0 ? void 0 : _mutableDate_calendar_isInverseEra.call(_mutableDate_calendar, mutableDate);\n        mutableDate.year = maxYear;\n        mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);\n        mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);\n    }\n    if (mutableDate.month < 1) {\n        mutableDate.month = 1;\n        mutableDate.day = 1;\n    }\n    let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);\n    if (mutableDate.month > maxMonth) {\n        mutableDate.month = maxMonth;\n        mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);\n    }\n    mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));\n    return mutableDate;\n}\nfunction $735220c2d4774dd3$var$addYears(date, years) {\n    var _date_calendar_isInverseEra, _date_calendar;\n    if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;\n    date.year += years;\n}\nfunction $735220c2d4774dd3$var$balanceYearMonth(date) {\n    while(date.month < 1){\n        $735220c2d4774dd3$var$addYears(date, -1);\n        date.month += date.calendar.getMonthsInYear(date);\n    }\n    let monthsInYear = 0;\n    while(date.month > (monthsInYear = date.calendar.getMonthsInYear(date))){\n        date.month -= monthsInYear;\n        $735220c2d4774dd3$var$addYears(date, 1);\n    }\n}\nfunction $735220c2d4774dd3$var$balanceDay(date) {\n    while(date.day < 1){\n        date.month--;\n        $735220c2d4774dd3$var$balanceYearMonth(date);\n        date.day += date.calendar.getDaysInMonth(date);\n    }\n    while(date.day > date.calendar.getDaysInMonth(date)){\n        date.day -= date.calendar.getDaysInMonth(date);\n        date.month++;\n        $735220c2d4774dd3$var$balanceYearMonth(date);\n    }\n}\nfunction $735220c2d4774dd3$var$constrainMonthDay(date) {\n    date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));\n    date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));\n}\nfunction $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {\n    if (date.calendar.constrainDate) date.calendar.constrainDate(date);\n    date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));\n    $735220c2d4774dd3$var$constrainMonthDay(date);\n}\nfunction $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {\n    let inverseDuration = {};\n    for(let key in duration)if (typeof duration[key] === 'number') inverseDuration[key] = -duration[key];\n    return inverseDuration;\n}\nfunction $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {\n    return $735220c2d4774dd3$export$e16d8520af44a096(date, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {\n    let mutableDate = date.copy();\n    if (fields.era != null) mutableDate.era = fields.era;\n    if (fields.year != null) mutableDate.year = fields.year;\n    if (fields.month != null) mutableDate.month = fields.month;\n    if (fields.day != null) mutableDate.day = fields.day;\n    $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);\n    return mutableDate;\n}\nfunction $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {\n    let mutableValue = value.copy();\n    if (fields.hour != null) mutableValue.hour = fields.hour;\n    if (fields.minute != null) mutableValue.minute = fields.minute;\n    if (fields.second != null) mutableValue.second = fields.second;\n    if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;\n    $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);\n    return mutableValue;\n}\nfunction $735220c2d4774dd3$var$balanceTime(time) {\n    time.second += Math.floor(time.millisecond / 1000);\n    time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1000);\n    time.minute += Math.floor(time.second / 60);\n    time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);\n    time.hour += Math.floor(time.minute / 60);\n    time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);\n    let days = Math.floor(time.hour / 24);\n    time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);\n    return days;\n}\nfunction $735220c2d4774dd3$export$7555de1e070510cb(time) {\n    time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));\n    time.second = Math.max(0, Math.min(time.second, 59));\n    time.minute = Math.max(0, Math.min(time.minute, 59));\n    time.hour = Math.max(0, Math.min(time.hour, 23));\n}\nfunction $735220c2d4774dd3$var$nonNegativeMod(a, b) {\n    let result = a % b;\n    if (result < 0) result += b;\n    return result;\n}\nfunction $735220c2d4774dd3$var$addTimeFields(time, duration) {\n    time.hour += duration.hours || 0;\n    time.minute += duration.minutes || 0;\n    time.second += duration.seconds || 0;\n    time.millisecond += duration.milliseconds || 0;\n    return $735220c2d4774dd3$var$balanceTime(time);\n}\nfunction $735220c2d4774dd3$export$7ed87b6bc2506470(time, duration) {\n    let res = time.copy();\n    $735220c2d4774dd3$var$addTimeFields(res, duration);\n    return res;\n}\nfunction $735220c2d4774dd3$export$fe34d3a381cd7501(time, duration) {\n    return $735220c2d4774dd3$export$7ed87b6bc2506470(time, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options) {\n    let mutable = value.copy();\n    switch(field){\n        case 'era':\n            {\n                let eras = value.calendar.getEras();\n                let eraIndex = eras.indexOf(value.era);\n                if (eraIndex < 0) throw new Error('Invalid era: ' + value.era);\n                eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);\n                mutable.era = eras[eraIndex];\n                // Constrain the year and other fields within the era, so the era doesn't change when we balance below.\n                $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);\n                break;\n            }\n        case 'year':\n            var _mutable_calendar_isInverseEra, _mutable_calendar;\n            if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;\n            // The year field should not cycle within the era as that can cause weird behavior affecting other fields.\n            // We need to also allow values < 1 so that decrementing goes to the previous era. If we get -Infinity back\n            // we know we wrapped around after reaching 9999 (the maximum), so set the year back to 1.\n            mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);\n            if (mutable.year === -Infinity) mutable.year = 1;\n            if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);\n            break;\n        case 'month':\n            mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);\n            break;\n        case 'day':\n            mutable.day = $735220c2d4774dd3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);\n            break;\n        default:\n            throw new Error('Unsupported field ' + field);\n    }\n    if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);\n    $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);\n    return mutable;\n}\nfunction $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {\n    let mutable = value.copy();\n    switch(field){\n        case 'hour':\n            {\n                let hours = value.hour;\n                let min = 0;\n                let max = 23;\n                if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {\n                    let isPM = hours >= 12;\n                    min = isPM ? 12 : 0;\n                    max = isPM ? 23 : 11;\n                }\n                mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);\n                break;\n            }\n        case 'minute':\n            mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);\n            break;\n        case 'second':\n            mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);\n            break;\n        case 'millisecond':\n            mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);\n            break;\n        default:\n            throw new Error('Unsupported field ' + field);\n    }\n    return mutable;\n}\nfunction $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {\n    if (round) {\n        value += Math.sign(amount);\n        if (value < min) value = max;\n        let div = Math.abs(amount);\n        if (amount > 0) value = Math.ceil(value / div) * div;\n        else value = Math.floor(value / div) * div;\n        if (value > max) value = min;\n    } else {\n        value += amount;\n        if (value < min) value = max - (min - value - 1);\n        else if (value > max) value = min + (value - max - 1);\n    }\n    return value;\n}\nfunction $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {\n    let ms;\n    if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {\n        let res = $735220c2d4774dd3$export$e16d8520af44a096((0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime), {\n            years: duration.years,\n            months: duration.months,\n            weeks: duration.weeks,\n            days: duration.days\n        });\n        // Changing the date may change the timezone offset, so we need to recompute\n        // using the 'compatible' disambiguation.\n        ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);\n    } else // Otherwise, preserve the offset of the original date.\n    ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;\n    // Perform time manipulation in milliseconds rather than on the original time fields to account for DST.\n    // For example, adding one hour during a DST transition may result in the hour field staying the same or\n    // skipping an hour. This results in the offset field changing value instead of the specified field.\n    ms += duration.milliseconds || 0;\n    ms += (duration.seconds || 0) * 1000;\n    ms += (duration.minutes || 0) * 60000;\n    ms += (duration.hours || 0) * 3600000;\n    let res = (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone);\n    return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(res, dateTime.calendar);\n}\nfunction $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {\n    return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {\n    // For date fields, we want the time to remain consistent and the UTC offset to potentially change to account for DST changes.\n    // For time fields, we want the time to change by the amount given. This may result in the hour field staying the same, but the UTC\n    // offset changing in the case of a backward DST transition, or skipping an hour in the case of a forward DST transition.\n    switch(field){\n        case 'hour':\n            {\n                let min = 0;\n                let max = 23;\n                if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {\n                    let isPM = dateTime.hour >= 12;\n                    min = isPM ? 12 : 0;\n                    max = isPM ? 23 : 11;\n                }\n                // The minimum and maximum hour may be affected by daylight saving time.\n                // For example, it might jump forward at midnight, and skip 1am.\n                // Or it might end at midnight and repeat the 11pm hour. To handle this, we get\n                // the possible absolute times for the min and max, and find the maximum range\n                // that is within the current day.\n                let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime);\n                let minDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {\n                    hour: min\n                }), new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n                let minAbsolute = [\n                    (0, $11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'earlier'),\n                    (0, $11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'later')\n                ].filter((ms)=>(0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === minDate.day)[0];\n                let maxDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {\n                    hour: max\n                }), new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n                let maxAbsolute = [\n                    (0, $11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'earlier'),\n                    (0, $11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'later')\n                ].filter((ms)=>(0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === maxDate.day).pop();\n                // Since hours may repeat, we need to operate on the absolute time in milliseconds.\n                // This is done in hours from the Unix epoch so that cycleValue works correctly,\n                // and then converted back to milliseconds.\n                let ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;\n                let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);\n                let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;\n                ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;\n                // Now compute the new timezone offset, and convert the absolute time back to local time.\n                return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n            }\n        case 'minute':\n        case 'second':\n        case 'millisecond':\n            // @ts-ignore\n            return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);\n        case 'era':\n        case 'year':\n        case 'month':\n        case 'day':\n            {\n                let res = $735220c2d4774dd3$export$d52ced6badfb9a4c((0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime), field, amount, options);\n                let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);\n                return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n            }\n        default:\n            throw new Error('Unsupported field ' + field);\n    }\n}\nfunction $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {\n    // Set the date/time fields, and recompute the UTC offset to account for DST changes.\n    // We also need to validate by converting back to a local time in case hours are skipped during forward DST transitions.\n    let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime);\n    let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);\n    // If the resulting plain date time values are equal, return the original time.\n    // We don't want to change the offset when setting the time to the same value.\n    if (res.compare(plainDateTime) === 0) return dateTime;\n    let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone, disambiguation);\n    return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n}\n\n\nexport {$735220c2d4774dd3$export$e16d8520af44a096 as add, $735220c2d4774dd3$export$c4e2ecac49351ef2 as constrain, $735220c2d4774dd3$export$3e2544e88a25bff8 as invertDuration, $735220c2d4774dd3$export$4e2d2ead65e5f7e3 as subtract, $735220c2d4774dd3$export$adaa4cf7ef1b65be as set, $735220c2d4774dd3$export$e5d5e1c1822b6e56 as setTime, $735220c2d4774dd3$export$7555de1e070510cb as constrainTime, $735220c2d4774dd3$export$7ed87b6bc2506470 as addTime, $735220c2d4774dd3$export$fe34d3a381cd7501 as subtractTime, $735220c2d4774dd3$export$d52ced6badfb9a4c as cycleDate, $735220c2d4774dd3$export$dd02b3e0007dfe28 as cycleTime, $735220c2d4774dd3$export$96b1d28349274637 as addZoned, $735220c2d4774dd3$export$6814caac34ca03c7 as subtractZoned, $735220c2d4774dd3$export$9a297d111fc86b79 as cycleZoned, $735220c2d4774dd3$export$31b5430eb18be4f8 as setZoned};\n//# sourceMappingURL=manipulation.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from \"./CalendarDate.mjs\";\nimport {epochFromDate as $11d87f3f76e88657$export$bd4fb2bc8bb06fb, fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, possibleAbsolutes as $11d87f3f76e88657$export$136f38efe7caf549, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484, toTimeZone as $11d87f3f76e88657$export$538b00033cc11c75} from \"./conversion.mjs\";\nimport {getLocalTimeZone as $14e0f24ef4ac5c92$export$aa8b41735afcabd2} from \"./queries.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nconst $fae977aafc393c5c$var$TIME_RE = /^(\\d{2})(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?$/;\nconst $fae977aafc393c5c$var$DATE_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})$/;\nconst $fae977aafc393c5c$var$DATE_TIME_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?$/;\nconst $fae977aafc393c5c$var$ZONED_DATE_TIME_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?(?:([+-]\\d{2})(?::?(\\d{2}))?(?::?(\\d{2}))?)?\\[(.*?)\\]$/;\nconst $fae977aafc393c5c$var$ABSOLUTE_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?(?:(?:([+-]\\d{2})(?::?(\\d{2}))?)|Z)$/;\nconst $fae977aafc393c5c$var$DATE_TIME_DURATION_RE = /^((?<negative>-)|\\+)?P((?<years>\\d*)Y)?((?<months>\\d*)M)?((?<weeks>\\d*)W)?((?<days>\\d*)D)?((?<time>T)((?<hours>\\d*[.,]?\\d{1,9})H)?((?<minutes>\\d*[.,]?\\d{1,9})M)?((?<seconds>\\d*[.,]?\\d{1,9})S)?)?$/;\nconst $fae977aafc393c5c$var$requiredDurationTimeGroups = [\n    'hours',\n    'minutes',\n    'seconds'\n];\nconst $fae977aafc393c5c$var$requiredDurationGroups = [\n    'years',\n    'months',\n    'weeks',\n    'days',\n    ...$fae977aafc393c5c$var$requiredDurationTimeGroups\n];\nfunction $fae977aafc393c5c$export$c9698ec7f05a07e1(value) {\n    let m = value.match($fae977aafc393c5c$var$TIME_RE);\n    if (!m) throw new Error('Invalid ISO 8601 time string: ' + value);\n    return new (0, $35ea8db9cb2ccb90$export$680ea196effce5f)($fae977aafc393c5c$var$parseNumber(m[1], 0, 23), m[2] ? $fae977aafc393c5c$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $fae977aafc393c5c$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);\n}\nfunction $fae977aafc393c5c$export$6b862160d295c8e(value) {\n    let m = value.match($fae977aafc393c5c$var$DATE_RE);\n    if (!m) {\n        if ($fae977aafc393c5c$var$ABSOLUTE_RE.test(value)) throw new Error(`Invalid ISO 8601 date string: ${value}. Use parseAbsolute() instead.`);\n        throw new Error('Invalid ISO 8601 date string: ' + value);\n    }\n    let date = new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)($fae977aafc393c5c$var$parseNumber(m[1], 0, 9999), $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1);\n    date.day = $fae977aafc393c5c$var$parseNumber(m[3], 1, date.calendar.getDaysInMonth(date));\n    return date;\n}\nfunction $fae977aafc393c5c$export$588937bcd60ade55(value) {\n    let m = value.match($fae977aafc393c5c$var$DATE_TIME_RE);\n    if (!m) {\n        if ($fae977aafc393c5c$var$ABSOLUTE_RE.test(value)) throw new Error(`Invalid ISO 8601 date time string: ${value}. Use parseAbsolute() instead.`);\n        throw new Error('Invalid ISO 8601 date time string: ' + value);\n    }\n    let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n    let era = year < 1 ? 'BC' : 'AD';\n    let date = new (0, $35ea8db9cb2ccb90$export$ca871e8dbb80966f)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n    date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n    return date;\n}\nfunction $fae977aafc393c5c$export$fd7893f06e92a6a4(value, disambiguation) {\n    let m = value.match($fae977aafc393c5c$var$ZONED_DATE_TIME_RE);\n    if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);\n    let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n    let era = year < 1 ? 'BC' : 'AD';\n    let date = new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, m[11], 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n    date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n    let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(date);\n    let ms;\n    if (m[8]) {\n        let hourOffset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23);\n        var _m_, _m_1;\n        date.offset = Math.sign(hourOffset) * (Math.abs(hourOffset) * 3600000 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : '0', 0, 59) * 60000 + $fae977aafc393c5c$var$parseNumber((_m_1 = m[10]) !== null && _m_1 !== void 0 ? _m_1 : '0', 0, 59) * 1000);\n        ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(date) - date.offset;\n        // Validate offset against parsed date.\n        let absolutes = (0, $11d87f3f76e88657$export$136f38efe7caf549)(plainDateTime, date.timeZone);\n        if (!absolutes.includes(ms)) throw new Error(`Offset ${$fae977aafc393c5c$var$offsetToString(date.offset)} is invalid for ${$fae977aafc393c5c$export$4223de14708adc63(date)} in ${date.timeZone}`);\n    } else // Convert to absolute and back to fix invalid times due to DST.\n    ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)((0, $11d87f3f76e88657$export$b21e0b124e224484)(plainDateTime), date.timeZone, disambiguation);\n    return (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, date.timeZone);\n}\nfunction $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {\n    let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);\n    if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);\n    let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n    let era = year < 1 ? 'BC' : 'AD';\n    let date = new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n    date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n    var _m_;\n    if (m[8]) date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 3600000 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : '0', 0, 59) * 60000;\n    return (0, $11d87f3f76e88657$export$538b00033cc11c75)(date, timeZone);\n}\nfunction $fae977aafc393c5c$export$8e384432362ed0f0(value) {\n    return $fae977aafc393c5c$export$5adfdab05168c219(value, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\nfunction $fae977aafc393c5c$var$parseNumber(value, min, max) {\n    let val = Number(value);\n    if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);\n    return val;\n}\nfunction $fae977aafc393c5c$export$f59dee82248f5ad4(time) {\n    return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:${String(time.second).padStart(2, '0')}${time.millisecond ? String(time.millisecond / 1000).slice(1) : ''}`;\n}\nfunction $fae977aafc393c5c$export$60dfd74aa96791bd(date) {\n    let gregorianDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(date, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n    let year;\n    if (gregorianDate.era === 'BC') year = gregorianDate.year === 1 ? '0000' : '-' + String(Math.abs(1 - gregorianDate.year)).padStart(6, '00');\n    else year = String(gregorianDate.year).padStart(4, '0');\n    return `${year}-${String(gregorianDate.month).padStart(2, '0')}-${String(gregorianDate.day).padStart(2, '0')}`;\n}\nfunction $fae977aafc393c5c$export$4223de14708adc63(date) {\n    // @ts-ignore\n    return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;\n}\nfunction $fae977aafc393c5c$var$offsetToString(offset) {\n    let sign = Math.sign(offset) < 0 ? '-' : '+';\n    offset = Math.abs(offset);\n    let offsetHours = Math.floor(offset / 3600000);\n    let offsetMinutes = Math.floor(offset % 3600000 / 60000);\n    let offsetSeconds = Math.floor(offset % 3600000 % 60000 / 1000);\n    let stringOffset = `${sign}${String(offsetHours).padStart(2, '0')}:${String(offsetMinutes).padStart(2, '0')}`;\n    if (offsetSeconds !== 0) stringOffset += `:${String(offsetSeconds).padStart(2, '0')}`;\n    return stringOffset;\n}\nfunction $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {\n    return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;\n}\nfunction $fae977aafc393c5c$export$ecae829bb3747ea6(value) {\n    var _match_groups, _match_groups1, _match_groups2, _match_groups3, _match_groups4, _match_groups5, _match_groups6, _match_groups7, _match_groups8;\n    const match = value.match($fae977aafc393c5c$var$DATE_TIME_DURATION_RE);\n    if (!match) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n    const parseDurationGroup = (group, isNegative)=>{\n        if (!group) return 0;\n        try {\n            const sign = isNegative ? -1 : 1;\n            return sign * Number(group.replace(',', '.'));\n        } catch  {\n            throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n        }\n    };\n    const isNegative = !!((_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups.negative);\n    const hasRequiredGroups = $fae977aafc393c5c$var$requiredDurationGroups.some((group)=>{\n        var _match_groups;\n        return (_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[group];\n    });\n    if (!hasRequiredGroups) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n    const durationStringIncludesTime = (_match_groups1 = match.groups) === null || _match_groups1 === void 0 ? void 0 : _match_groups1.time;\n    if (durationStringIncludesTime) {\n        const hasRequiredDurationTimeGroups = $fae977aafc393c5c$var$requiredDurationTimeGroups.some((group)=>{\n            var _match_groups;\n            return (_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[group];\n        });\n        if (!hasRequiredDurationTimeGroups) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n    }\n    const duration = {\n        years: parseDurationGroup((_match_groups2 = match.groups) === null || _match_groups2 === void 0 ? void 0 : _match_groups2.years, isNegative),\n        months: parseDurationGroup((_match_groups3 = match.groups) === null || _match_groups3 === void 0 ? void 0 : _match_groups3.months, isNegative),\n        weeks: parseDurationGroup((_match_groups4 = match.groups) === null || _match_groups4 === void 0 ? void 0 : _match_groups4.weeks, isNegative),\n        days: parseDurationGroup((_match_groups5 = match.groups) === null || _match_groups5 === void 0 ? void 0 : _match_groups5.days, isNegative),\n        hours: parseDurationGroup((_match_groups6 = match.groups) === null || _match_groups6 === void 0 ? void 0 : _match_groups6.hours, isNegative),\n        minutes: parseDurationGroup((_match_groups7 = match.groups) === null || _match_groups7 === void 0 ? void 0 : _match_groups7.minutes, isNegative),\n        seconds: parseDurationGroup((_match_groups8 = match.groups) === null || _match_groups8 === void 0 ? void 0 : _match_groups8.seconds, isNegative)\n    };\n    if (duration.hours !== undefined && duration.hours % 1 !== 0 && (duration.minutes || duration.seconds)) throw new Error(`Invalid ISO 8601 Duration string: ${value} - only the smallest unit can be fractional`);\n    if (duration.minutes !== undefined && duration.minutes % 1 !== 0 && duration.seconds) throw new Error(`Invalid ISO 8601 Duration string: ${value} - only the smallest unit can be fractional`);\n    return duration;\n}\n\n\nexport {$fae977aafc393c5c$export$c9698ec7f05a07e1 as parseTime, $fae977aafc393c5c$export$6b862160d295c8e as parseDate, $fae977aafc393c5c$export$588937bcd60ade55 as parseDateTime, $fae977aafc393c5c$export$fd7893f06e92a6a4 as parseZonedDateTime, $fae977aafc393c5c$export$4223de14708adc63 as dateTimeToString, $fae977aafc393c5c$export$5adfdab05168c219 as parseAbsolute, $fae977aafc393c5c$export$8e384432362ed0f0 as parseAbsoluteToLocal, $fae977aafc393c5c$export$f59dee82248f5ad4 as timeToString, $fae977aafc393c5c$export$60dfd74aa96791bd as dateToString, $fae977aafc393c5c$export$bf79f1ebf4b18792 as zonedDateTimeToString, $fae977aafc393c5c$export$ecae829bb3747ea6 as parseDuration};\n//# sourceMappingURL=string.module.js.map\n","function _check_private_redeclaration(obj, privateCollection) {\n    if (privateCollection.has(obj)) {\n        throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n    }\n}\nexport { _check_private_redeclaration as _ };\n","import { _ as _check_private_redeclaration } from \"./_check_private_redeclaration.js\";\n\nfunction _class_private_field_init(obj, privateMap, value) {\n    _check_private_redeclaration(obj, privateMap);\n    privateMap.set(obj, value);\n}\nexport { _class_private_field_init as _ };\n","import {add as $735220c2d4774dd3$export$e16d8520af44a096, addTime as $735220c2d4774dd3$export$7ed87b6bc2506470, addZoned as $735220c2d4774dd3$export$96b1d28349274637, constrain as $735220c2d4774dd3$export$c4e2ecac49351ef2, constrainTime as $735220c2d4774dd3$export$7555de1e070510cb, cycleDate as $735220c2d4774dd3$export$d52ced6badfb9a4c, cycleTime as $735220c2d4774dd3$export$dd02b3e0007dfe28, cycleZoned as $735220c2d4774dd3$export$9a297d111fc86b79, set as $735220c2d4774dd3$export$adaa4cf7ef1b65be, setTime as $735220c2d4774dd3$export$e5d5e1c1822b6e56, setZoned as $735220c2d4774dd3$export$31b5430eb18be4f8, subtract as $735220c2d4774dd3$export$4e2d2ead65e5f7e3, subtractTime as $735220c2d4774dd3$export$fe34d3a381cd7501, subtractZoned as $735220c2d4774dd3$export$6814caac34ca03c7} from \"./manipulation.mjs\";\nimport {compareDate as $14e0f24ef4ac5c92$export$68781ddf31c0090f, compareTime as $14e0f24ef4ac5c92$export$c19a80a9721b80f6} from \"./queries.mjs\";\nimport {dateTimeToString as $fae977aafc393c5c$export$4223de14708adc63, dateToString as $fae977aafc393c5c$export$60dfd74aa96791bd, timeToString as $fae977aafc393c5c$export$f59dee82248f5ad4, zonedDateTimeToString as $fae977aafc393c5c$export$bf79f1ebf4b18792} from \"./string.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\nimport {toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484, toDate as $11d87f3f76e88657$export$e67a095c620b86fe, toZoned as $11d87f3f76e88657$export$84c95a83c799e074, zonedToDate as $11d87f3f76e88657$export$83aac07b4c37b25} from \"./conversion.mjs\";\nimport {_ as $aksy1$_} from \"@swc/helpers/_/_class_private_field_init\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $35ea8db9cb2ccb90$var$shiftArgs(args) {\n    let calendar = typeof args[0] === 'object' ? args.shift() : new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)();\n    let era;\n    if (typeof args[0] === 'string') era = args.shift();\n    else {\n        let eras = calendar.getEras();\n        era = eras[eras.length - 1];\n    }\n    let year = args.shift();\n    let month = args.shift();\n    let day = args.shift();\n    return [\n        calendar,\n        era,\n        year,\n        month,\n        day\n    ];\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// i.e. a ZonedDateTime should not be be passable to a parameter that expects CalendarDate.\n// If that behavior is desired, use the AnyCalendarDate interface instead.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$99faa760c7908e4f {\n    /** Returns a copy of this date. */ copy() {\n        if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);\n        else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);\n    }\n    /** Returns a new `CalendarDate` with the given duration added to it. */ add(duration) {\n        return (0, $735220c2d4774dd3$export$e16d8520af44a096)(this, duration);\n    }\n    /** Returns a new `CalendarDate` with the given duration subtracted from it. */ subtract(duration) {\n        return (0, $735220c2d4774dd3$export$4e2d2ead65e5f7e3)(this, duration);\n    }\n    /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n        return (0, $735220c2d4774dd3$export$adaa4cf7ef1b65be)(this, fields);\n    }\n    /**\n   * Returns a new `CalendarDate` with the given field adjusted by a specified amount.\n   * When the resulting value reaches the limits of the field, it wraps around.\n   */ cycle(field, amount, options) {\n        return (0, $735220c2d4774dd3$export$d52ced6badfb9a4c)(this, field, amount, options);\n    }\n    /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */ toDate(timeZone) {\n        return (0, $11d87f3f76e88657$export$e67a095c620b86fe)(this, timeZone);\n    }\n    /** Converts the date to an ISO 8601 formatted string. */ toString() {\n        return (0, $fae977aafc393c5c$export$60dfd74aa96791bd)(this);\n    }\n    /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n        return (0, $14e0f24ef4ac5c92$export$68781ddf31c0090f)(this, b);\n    }\n    constructor(...args){\n        (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type, {\n            writable: true,\n            value: void 0\n        });\n        let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n        this.calendar = calendar;\n        this.era = era;\n        this.year = year;\n        this.month = month;\n        this.day = day;\n        (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n    }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type1 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$680ea196effce5f {\n    /** Returns a copy of this time. */ copy() {\n        return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);\n    }\n    /** Returns a new `Time` with the given duration added to it. */ add(duration) {\n        return (0, $735220c2d4774dd3$export$7ed87b6bc2506470)(this, duration);\n    }\n    /** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {\n        return (0, $735220c2d4774dd3$export$fe34d3a381cd7501)(this, duration);\n    }\n    /** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n        return (0, $735220c2d4774dd3$export$e5d5e1c1822b6e56)(this, fields);\n    }\n    /**\n   * Returns a new `Time` with the given field adjusted by a specified amount.\n   * When the resulting value reaches the limits of the field, it wraps around.\n   */ cycle(field, amount, options) {\n        return (0, $735220c2d4774dd3$export$dd02b3e0007dfe28)(this, field, amount, options);\n    }\n    /** Converts the time to an ISO 8601 formatted string. */ toString() {\n        return (0, $fae977aafc393c5c$export$f59dee82248f5ad4)(this);\n    }\n    /** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {\n        return (0, $14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, b);\n    }\n    constructor(hour = 0, minute = 0, second = 0, millisecond = 0){\n        (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type1, {\n            writable: true,\n            value: void 0\n        });\n        this.hour = hour;\n        this.minute = minute;\n        this.second = second;\n        this.millisecond = millisecond;\n        (0, $735220c2d4774dd3$export$7555de1e070510cb)(this);\n    }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type2 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$ca871e8dbb80966f {\n    /** Returns a copy of this date. */ copy() {\n        if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);\n        else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);\n    }\n    /** Returns a new `CalendarDateTime` with the given duration added to it. */ add(duration) {\n        return (0, $735220c2d4774dd3$export$e16d8520af44a096)(this, duration);\n    }\n    /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */ subtract(duration) {\n        return (0, $735220c2d4774dd3$export$4e2d2ead65e5f7e3)(this, duration);\n    }\n    /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n        return (0, $735220c2d4774dd3$export$adaa4cf7ef1b65be)((0, $735220c2d4774dd3$export$e5d5e1c1822b6e56)(this, fields), fields);\n    }\n    /**\n   * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.\n   * When the resulting value reaches the limits of the field, it wraps around.\n   */ cycle(field, amount, options) {\n        switch(field){\n            case 'era':\n            case 'year':\n            case 'month':\n            case 'day':\n                return (0, $735220c2d4774dd3$export$d52ced6badfb9a4c)(this, field, amount, options);\n            default:\n                return (0, $735220c2d4774dd3$export$dd02b3e0007dfe28)(this, field, amount, options);\n        }\n    }\n    /** Converts the date to a native JavaScript Date object in the given time zone. */ toDate(timeZone, disambiguation) {\n        return (0, $11d87f3f76e88657$export$e67a095c620b86fe)(this, timeZone, disambiguation);\n    }\n    /** Converts the date to an ISO 8601 formatted string. */ toString() {\n        return (0, $fae977aafc393c5c$export$4223de14708adc63)(this);\n    }\n    /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n        let res = (0, $14e0f24ef4ac5c92$export$68781ddf31c0090f)(this, b);\n        if (res === 0) return (0, $14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, (0, $11d87f3f76e88657$export$b21e0b124e224484)(b));\n        return res;\n    }\n    constructor(...args){\n        (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type2, {\n            writable: true,\n            value: void 0\n        });\n        let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n        this.calendar = calendar;\n        this.era = era;\n        this.year = year;\n        this.month = month;\n        this.day = day;\n        this.hour = args.shift() || 0;\n        this.minute = args.shift() || 0;\n        this.second = args.shift() || 0;\n        this.millisecond = args.shift() || 0;\n        (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n    }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type3 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$d3b7288e7994edea {\n    /** Returns a copy of this date. */ copy() {\n        if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);\n        else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);\n    }\n    /** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {\n        return (0, $735220c2d4774dd3$export$96b1d28349274637)(this, duration);\n    }\n    /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {\n        return (0, $735220c2d4774dd3$export$6814caac34ca03c7)(this, duration);\n    }\n    /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {\n        return (0, $735220c2d4774dd3$export$31b5430eb18be4f8)(this, fields, disambiguation);\n    }\n    /**\n   * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.\n   * When the resulting value reaches the limits of the field, it wraps around.\n   */ cycle(field, amount, options) {\n        return (0, $735220c2d4774dd3$export$9a297d111fc86b79)(this, field, amount, options);\n    }\n    /** Converts the date to a native JavaScript Date object. */ toDate() {\n        return (0, $11d87f3f76e88657$export$83aac07b4c37b25)(this);\n    }\n    /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {\n        return (0, $fae977aafc393c5c$export$bf79f1ebf4b18792)(this);\n    }\n    /** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {\n        return this.toDate().toISOString();\n    }\n    /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n        // TODO: Is this a bad idea??\n        return this.toDate().getTime() - (0, $11d87f3f76e88657$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();\n    }\n    constructor(...args){\n        (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type3, {\n            writable: true,\n            value: void 0\n        });\n        let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n        let timeZone = args.shift();\n        let offset = args.shift();\n        this.calendar = calendar;\n        this.era = era;\n        this.year = year;\n        this.month = month;\n        this.day = day;\n        this.timeZone = timeZone;\n        this.offset = offset;\n        this.hour = args.shift() || 0;\n        this.minute = args.shift() || 0;\n        this.second = args.shift() || 0;\n        this.millisecond = args.shift() || 0;\n        (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n    }\n}\n\n\nexport {$35ea8db9cb2ccb90$export$99faa760c7908e4f as CalendarDate, $35ea8db9cb2ccb90$export$680ea196effce5f as Time, $35ea8db9cb2ccb90$export$ca871e8dbb80966f as CalendarDateTime, $35ea8db9cb2ccb90$export$d3b7288e7994edea as ZonedDateTime};\n//# sourceMappingURL=CalendarDate.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from the TC39 Temporal proposal.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $62225008020f0a13$var$ERA_START_DATES = [\n    [\n        1868,\n        9,\n        8\n    ],\n    [\n        1912,\n        7,\n        30\n    ],\n    [\n        1926,\n        12,\n        25\n    ],\n    [\n        1989,\n        1,\n        8\n    ],\n    [\n        2019,\n        5,\n        1\n    ]\n];\nconst $62225008020f0a13$var$ERA_END_DATES = [\n    [\n        1912,\n        7,\n        29\n    ],\n    [\n        1926,\n        12,\n        24\n    ],\n    [\n        1989,\n        1,\n        7\n    ],\n    [\n        2019,\n        4,\n        30\n    ]\n];\nconst $62225008020f0a13$var$ERA_ADDENDS = [\n    1867,\n    1911,\n    1925,\n    1988,\n    2018\n];\nconst $62225008020f0a13$var$ERA_NAMES = [\n    'meiji',\n    'taisho',\n    'showa',\n    'heisei',\n    'reiwa'\n];\nfunction $62225008020f0a13$var$findEraFromGregorianDate(date) {\n    const idx = $62225008020f0a13$var$ERA_START_DATES.findIndex(([year, month, day])=>{\n        if (date.year < year) return true;\n        if (date.year === year && date.month < month) return true;\n        if (date.year === year && date.month === month && date.day < day) return true;\n        return false;\n    });\n    if (idx === -1) return $62225008020f0a13$var$ERA_START_DATES.length - 1;\n    if (idx === 0) return 0;\n    return idx - 1;\n}\nfunction $62225008020f0a13$var$toGregorian(date) {\n    let eraAddend = $62225008020f0a13$var$ERA_ADDENDS[$62225008020f0a13$var$ERA_NAMES.indexOf(date.era)];\n    if (!eraAddend) throw new Error('Unknown era: ' + date.era);\n    return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(date.year + eraAddend, date.month, date.day);\n}\nclass $62225008020f0a13$export$b746ab2b60cdffbf extends (0, $3b62074eb05584b2$export$80ee6245ec4f29ec) {\n    fromJulianDay(jd) {\n        let date = super.fromJulianDay(jd);\n        let era = $62225008020f0a13$var$findEraFromGregorianDate(date);\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, $62225008020f0a13$var$ERA_NAMES[era], date.year - $62225008020f0a13$var$ERA_ADDENDS[era], date.month, date.day);\n    }\n    toJulianDay(date) {\n        return super.toJulianDay($62225008020f0a13$var$toGregorian(date));\n    }\n    balanceDate(date) {\n        let gregorianDate = $62225008020f0a13$var$toGregorian(date);\n        let era = $62225008020f0a13$var$findEraFromGregorianDate(gregorianDate);\n        if ($62225008020f0a13$var$ERA_NAMES[era] !== date.era) {\n            date.era = $62225008020f0a13$var$ERA_NAMES[era];\n            date.year = gregorianDate.year - $62225008020f0a13$var$ERA_ADDENDS[era];\n        }\n        // Constrain in case we went before the first supported era.\n        this.constrainDate(date);\n    }\n    constrainDate(date) {\n        let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);\n        let end = $62225008020f0a13$var$ERA_END_DATES[idx];\n        if (end != null) {\n            let [endYear, endMonth, endDay] = end;\n            // Constrain the year to the maximum possible value in the era.\n            // Then constrain the month and day fields within that.\n            let maxYear = endYear - $62225008020f0a13$var$ERA_ADDENDS[idx];\n            date.year = Math.max(1, Math.min(maxYear, date.year));\n            if (date.year === maxYear) {\n                date.month = Math.min(endMonth, date.month);\n                if (date.month === endMonth) date.day = Math.min(endDay, date.day);\n            }\n        }\n        if (date.year === 1 && idx >= 0) {\n            let [, startMonth, startDay] = $62225008020f0a13$var$ERA_START_DATES[idx];\n            date.month = Math.max(startMonth, date.month);\n            if (date.month === startMonth) date.day = Math.max(startDay, date.day);\n        }\n    }\n    getEras() {\n        return $62225008020f0a13$var$ERA_NAMES;\n    }\n    getYearsInEra(date) {\n        // Get the number of years in the era, taking into account the date's month and day fields.\n        let era = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);\n        let cur = $62225008020f0a13$var$ERA_START_DATES[era];\n        let next = $62225008020f0a13$var$ERA_START_DATES[era + 1];\n        if (next == null) // 9999 gregorian is the maximum year allowed.\n        return 9999 - cur[0] + 1;\n        let years = next[0] - cur[0];\n        if (date.month < next[1] || date.month === next[1] && date.day < next[2]) years++;\n        return years;\n    }\n    getDaysInMonth(date) {\n        return super.getDaysInMonth($62225008020f0a13$var$toGregorian(date));\n    }\n    getMinimumMonthInYear(date) {\n        let start = $62225008020f0a13$var$getMinimums(date);\n        return start ? start[1] : 1;\n    }\n    getMinimumDayInMonth(date) {\n        let start = $62225008020f0a13$var$getMinimums(date);\n        return start && date.month === start[1] ? start[2] : 1;\n    }\n    constructor(...args){\n        super(...args), this.identifier = 'japanese';\n    }\n}\nfunction $62225008020f0a13$var$getMinimums(date) {\n    if (date.year === 1) {\n        let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);\n        return $62225008020f0a13$var$ERA_START_DATES[idx];\n    }\n}\n\n\nexport {$62225008020f0a13$export$b746ab2b60cdffbf as JapaneseCalendar};\n//# sourceMappingURL=JapaneseCalendar.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {fromExtendedYear as $3b62074eb05584b2$export$4475b7e617eb123c, getExtendedYear as $3b62074eb05584b2$export$c36e0ecb2d4fa69d, GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $8d73d47422ca7302$var$BUDDHIST_ERA_START = -543;\nclass $8d73d47422ca7302$export$42d20a78301dee44 extends (0, $3b62074eb05584b2$export$80ee6245ec4f29ec) {\n    fromJulianDay(jd) {\n        let gregorianDate = super.fromJulianDay(jd);\n        let year = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(gregorianDate.era, gregorianDate.year);\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, year - $8d73d47422ca7302$var$BUDDHIST_ERA_START, gregorianDate.month, gregorianDate.day);\n    }\n    toJulianDay(date) {\n        return super.toJulianDay($8d73d47422ca7302$var$toGregorian(date));\n    }\n    getEras() {\n        return [\n            'BE'\n        ];\n    }\n    getDaysInMonth(date) {\n        return super.getDaysInMonth($8d73d47422ca7302$var$toGregorian(date));\n    }\n    balanceDate() {}\n    constructor(...args){\n        super(...args), this.identifier = 'buddhist';\n    }\n}\nfunction $8d73d47422ca7302$var$toGregorian(date) {\n    let [era, year] = (0, $3b62074eb05584b2$export$4475b7e617eb123c)(date.year + $8d73d47422ca7302$var$BUDDHIST_ERA_START);\n    return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(era, year, date.month, date.day);\n}\n\n\nexport {$8d73d47422ca7302$export$42d20a78301dee44 as BuddhistCalendar};\n//# sourceMappingURL=BuddhistCalendar.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {fromExtendedYear as $3b62074eb05584b2$export$4475b7e617eb123c, getExtendedYear as $3b62074eb05584b2$export$c36e0ecb2d4fa69d, GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $5f31bd6f0c8940b2$var$TAIWAN_ERA_START = 1911;\nfunction $5f31bd6f0c8940b2$var$gregorianYear(date) {\n    return date.era === 'minguo' ? date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START : 1 - date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;\n}\nfunction $5f31bd6f0c8940b2$var$gregorianToTaiwan(year) {\n    let y = year - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;\n    if (y > 0) return [\n        'minguo',\n        y\n    ];\n    else return [\n        'before_minguo',\n        1 - y\n    ];\n}\nclass $5f31bd6f0c8940b2$export$65e01080afcb0799 extends (0, $3b62074eb05584b2$export$80ee6245ec4f29ec) {\n    fromJulianDay(jd) {\n        let date = super.fromJulianDay(jd);\n        let extendedYear = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(date.era, date.year);\n        let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan(extendedYear);\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, era, year, date.month, date.day);\n    }\n    toJulianDay(date) {\n        return super.toJulianDay($5f31bd6f0c8940b2$var$toGregorian(date));\n    }\n    getEras() {\n        return [\n            'before_minguo',\n            'minguo'\n        ];\n    }\n    balanceDate(date) {\n        let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan($5f31bd6f0c8940b2$var$gregorianYear(date));\n        date.era = era;\n        date.year = year;\n    }\n    isInverseEra(date) {\n        return date.era === 'before_minguo';\n    }\n    getDaysInMonth(date) {\n        return super.getDaysInMonth($5f31bd6f0c8940b2$var$toGregorian(date));\n    }\n    getYearsInEra(date) {\n        return date.era === 'before_minguo' ? 9999 : 9999 - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;\n    }\n    constructor(...args){\n        super(...args), this.identifier = 'roc' // Republic of China\n        ;\n    }\n}\nfunction $5f31bd6f0c8940b2$var$toGregorian(date) {\n    let [era, year] = (0, $3b62074eb05584b2$export$4475b7e617eb123c)($5f31bd6f0c8940b2$var$gregorianYear(date));\n    return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(era, year, date.month, date.day);\n}\n\n\nexport {$5f31bd6f0c8940b2$export$65e01080afcb0799 as TaiwanCalendar};\n//# sourceMappingURL=TaiwanCalendar.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {mod as $2b4dce13dd5a17fa$export$842a2cf37af977e1} from \"./utils.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $f3ed2e4472ae7e25$var$PERSIAN_EPOCH = 1948320;\n// Number of days from the start of the year to the start of each month.\nconst $f3ed2e4472ae7e25$var$MONTH_START = [\n    0,\n    31,\n    62,\n    93,\n    124,\n    155,\n    186,\n    216,\n    246,\n    276,\n    306,\n    336 // Esfand\n];\nclass $f3ed2e4472ae7e25$export$37fccdbfd14c5939 {\n    fromJulianDay(jd) {\n        let daysSinceEpoch = jd - $f3ed2e4472ae7e25$var$PERSIAN_EPOCH;\n        let year = 1 + Math.floor((33 * daysSinceEpoch + 3) / 12053);\n        let farvardin1 = 365 * (year - 1) + Math.floor((8 * year + 21) / 33);\n        let dayOfYear = daysSinceEpoch - farvardin1;\n        let month = dayOfYear < 216 ? Math.floor(dayOfYear / 31) : Math.floor((dayOfYear - 6) / 30);\n        let day = dayOfYear - $f3ed2e4472ae7e25$var$MONTH_START[month] + 1;\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, year, month + 1, day);\n    }\n    toJulianDay(date) {\n        let jd = $f3ed2e4472ae7e25$var$PERSIAN_EPOCH - 1 + 365 * (date.year - 1) + Math.floor((8 * date.year + 21) / 33);\n        jd += $f3ed2e4472ae7e25$var$MONTH_START[date.month - 1];\n        jd += date.day;\n        return jd;\n    }\n    getMonthsInYear() {\n        return 12;\n    }\n    getDaysInMonth(date) {\n        if (date.month <= 6) return 31;\n        if (date.month <= 11) return 30;\n        let isLeapYear = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(25 * date.year + 11, 33) < 8;\n        return isLeapYear ? 30 : 29;\n    }\n    getMaximumMonthsInYear() {\n        return 12;\n    }\n    getMaximumDaysInMonth() {\n        return 31;\n    }\n    getEras() {\n        return [\n            'AP'\n        ];\n    }\n    getYearsInEra() {\n        // 9378-10-10 persian is 9999-12-31 gregorian.\n        // Round down to 9377 to set the maximum full year.\n        return 9377;\n    }\n    constructor(){\n        this.identifier = 'persian';\n    }\n}\n\n\nexport {$f3ed2e4472ae7e25$export$37fccdbfd14c5939 as PersianCalendar};\n//# sourceMappingURL=PersianCalendar.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {fromExtendedYear as $3b62074eb05584b2$export$4475b7e617eb123c, GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec, gregorianToJulianDay as $3b62074eb05584b2$export$f297eb839006d339, isLeapYear as $3b62074eb05584b2$export$553d7fa8e3805fc0} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\n// Starts in 78 AD,\nconst $82c358003bdda0a8$var$INDIAN_ERA_START = 78;\n// The Indian year starts 80 days later than the Gregorian year.\nconst $82c358003bdda0a8$var$INDIAN_YEAR_START = 80;\nclass $82c358003bdda0a8$export$39f31c639fa15726 extends (0, $3b62074eb05584b2$export$80ee6245ec4f29ec) {\n    fromJulianDay(jd) {\n        // Gregorian date for Julian day\n        let date = super.fromJulianDay(jd);\n        // Year in Saka era\n        let indianYear = date.year - $82c358003bdda0a8$var$INDIAN_ERA_START;\n        // Day number in Gregorian year (starting from 0)\n        let yDay = jd - (0, $3b62074eb05584b2$export$f297eb839006d339)(date.era, date.year, 1, 1);\n        let leapMonth;\n        if (yDay < $82c358003bdda0a8$var$INDIAN_YEAR_START) {\n            //  Day is at the end of the preceding Saka year\n            indianYear--;\n            // Days in leapMonth this year, previous Gregorian year\n            leapMonth = (0, $3b62074eb05584b2$export$553d7fa8e3805fc0)(date.year - 1) ? 31 : 30;\n            yDay += leapMonth + 155 + 90 + 10;\n        } else {\n            // Days in leapMonth this year\n            leapMonth = (0, $3b62074eb05584b2$export$553d7fa8e3805fc0)(date.year) ? 31 : 30;\n            yDay -= $82c358003bdda0a8$var$INDIAN_YEAR_START;\n        }\n        let indianMonth;\n        let indianDay;\n        if (yDay < leapMonth) {\n            indianMonth = 1;\n            indianDay = yDay + 1;\n        } else {\n            let mDay = yDay - leapMonth;\n            if (mDay < 155) {\n                indianMonth = Math.floor(mDay / 31) + 2;\n                indianDay = mDay % 31 + 1;\n            } else {\n                mDay -= 155;\n                indianMonth = Math.floor(mDay / 30) + 7;\n                indianDay = mDay % 30 + 1;\n            }\n        }\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, indianYear, indianMonth, indianDay);\n    }\n    toJulianDay(date) {\n        let extendedYear = date.year + $82c358003bdda0a8$var$INDIAN_ERA_START;\n        let [era, year] = (0, $3b62074eb05584b2$export$4475b7e617eb123c)(extendedYear);\n        let leapMonth;\n        let jd;\n        if ((0, $3b62074eb05584b2$export$553d7fa8e3805fc0)(year)) {\n            leapMonth = 31;\n            jd = (0, $3b62074eb05584b2$export$f297eb839006d339)(era, year, 3, 21);\n        } else {\n            leapMonth = 30;\n            jd = (0, $3b62074eb05584b2$export$f297eb839006d339)(era, year, 3, 22);\n        }\n        if (date.month === 1) return jd + date.day - 1;\n        jd += leapMonth + Math.min(date.month - 2, 5) * 31;\n        if (date.month >= 8) jd += (date.month - 7) * 30;\n        jd += date.day - 1;\n        return jd;\n    }\n    getDaysInMonth(date) {\n        if (date.month === 1 && (0, $3b62074eb05584b2$export$553d7fa8e3805fc0)(date.year + $82c358003bdda0a8$var$INDIAN_ERA_START)) return 31;\n        if (date.month >= 2 && date.month <= 6) return 31;\n        return 30;\n    }\n    getYearsInEra() {\n        // 9999-12-31 gregorian is 9920-10-10 indian.\n        // Round down to 9919 for the last full year.\n        return 9919;\n    }\n    getEras() {\n        return [\n            'saka'\n        ];\n    }\n    balanceDate() {}\n    constructor(...args){\n        super(...args), this.identifier = 'indian';\n    }\n}\n\n\nexport {$82c358003bdda0a8$export$39f31c639fa15726 as IndianCalendar};\n//# sourceMappingURL=IndianCalendar.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\nconst $f2f3e0e3a817edbd$var$CIVIL_EPOC = 1948440; // CE 622 July 16 Friday (Julian calendar) / CE 622 July 19 (Gregorian calendar)\nconst $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC = 1948439; // CE 622 July 15 Thursday (Julian calendar)\nconst $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START = 1300;\nconst $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END = 1600;\nconst $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS = 460322;\nfunction $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, day) {\n    return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 + Math.floor((3 + 11 * year) / 30) + epoch - 1;\n}\nfunction $f2f3e0e3a817edbd$var$julianDayToIslamic(calendar, epoch, jd) {\n    let year = Math.floor((30 * (jd - epoch) + 10646) / 10631);\n    let month = Math.min(12, Math.ceil((jd - (29 + $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, 1, 1))) / 29.5) + 1);\n    let day = jd - $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, 1) + 1;\n    return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(calendar, year, month, day);\n}\nfunction $f2f3e0e3a817edbd$var$isLeapYear(year) {\n    return (14 + 11 * year) % 30 < 11;\n}\nclass $f2f3e0e3a817edbd$export$2066795aadd37bfc {\n    fromJulianDay(jd) {\n        return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$CIVIL_EPOC, jd);\n    }\n    toJulianDay(date) {\n        return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$CIVIL_EPOC, date.year, date.month, date.day);\n    }\n    getDaysInMonth(date) {\n        let length = 29 + date.month % 2;\n        if (date.month === 12 && $f2f3e0e3a817edbd$var$isLeapYear(date.year)) length++;\n        return length;\n    }\n    getMonthsInYear() {\n        return 12;\n    }\n    getDaysInYear(date) {\n        return $f2f3e0e3a817edbd$var$isLeapYear(date.year) ? 355 : 354;\n    }\n    getMaximumMonthsInYear() {\n        return 12;\n    }\n    getMaximumDaysInMonth() {\n        return 30;\n    }\n    getYearsInEra() {\n        // 9999 gregorian\n        return 9665;\n    }\n    getEras() {\n        return [\n            'AH'\n        ];\n    }\n    constructor(){\n        this.identifier = 'islamic-civil';\n    }\n}\nclass $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {\n    fromJulianDay(jd) {\n        return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, jd);\n    }\n    toJulianDay(date) {\n        return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, date.year, date.month, date.day);\n    }\n    constructor(...args){\n        super(...args), this.identifier = 'islamic-tbla';\n    }\n}\n// Generated by scripts/generate-umalqura.js\nconst $f2f3e0e3a817edbd$var$UMALQURA_DATA = 'qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=';\nlet $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH;\nlet $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE;\nfunction $f2f3e0e3a817edbd$var$umalquraYearStart(year) {\n    return $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS + $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];\n}\nfunction $f2f3e0e3a817edbd$var$umalquraMonthLength(year, month) {\n    let idx = year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START;\n    let mask = 0x01 << 11 - (month - 1);\n    if (($f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH[idx] & mask) === 0) return 29;\n    else return 30;\n}\nfunction $f2f3e0e3a817edbd$var$umalquraMonthStart(year, month) {\n    let day = $f2f3e0e3a817edbd$var$umalquraYearStart(year);\n    for(let i = 1; i < month; i++)day += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);\n    return day;\n}\nfunction $f2f3e0e3a817edbd$var$umalquraYearLength(year) {\n    return $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year + 1 - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];\n}\nclass $f2f3e0e3a817edbd$export$5baab4758c231076 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {\n    fromJulianDay(jd) {\n        let days = jd - $f2f3e0e3a817edbd$var$CIVIL_EPOC;\n        let startDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_START);\n        let endDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END);\n        if (days < startDays || days > endDays) return super.fromJulianDay(jd);\n        else {\n            let y = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START - 1;\n            let m = 1;\n            let d = 1;\n            while(d > 0){\n                y++;\n                d = days - $f2f3e0e3a817edbd$var$umalquraYearStart(y) + 1;\n                let yearLength = $f2f3e0e3a817edbd$var$umalquraYearLength(y);\n                if (d === yearLength) {\n                    m = 12;\n                    break;\n                } else if (d < yearLength) {\n                    let monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);\n                    m = 1;\n                    while(d > monthLength){\n                        d -= monthLength;\n                        m++;\n                        monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);\n                    }\n                    break;\n                }\n            }\n            return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, y, m, days - $f2f3e0e3a817edbd$var$umalquraMonthStart(y, m) + 1);\n        }\n    }\n    toJulianDay(date) {\n        if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.toJulianDay(date);\n        return $f2f3e0e3a817edbd$var$CIVIL_EPOC + $f2f3e0e3a817edbd$var$umalquraMonthStart(date.year, date.month) + (date.day - 1);\n    }\n    getDaysInMonth(date) {\n        if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInMonth(date);\n        return $f2f3e0e3a817edbd$var$umalquraMonthLength(date.year, date.month);\n    }\n    getDaysInYear(date) {\n        if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInYear(date);\n        return $f2f3e0e3a817edbd$var$umalquraYearLength(date.year);\n    }\n    constructor(){\n        super(), this.identifier = 'islamic-umalqura';\n        if (!$f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH) $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($f2f3e0e3a817edbd$var$UMALQURA_DATA), (c)=>c.charCodeAt(0)).buffer);\n        if (!$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE) {\n            $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START + 1);\n            let yearStart = 0;\n            for(let year = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START; year <= $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END; year++){\n                $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] = yearStart;\n                for(let i = 1; i <= 12; i++)yearStart += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);\n            }\n        }\n    }\n}\n\n\nexport {$f2f3e0e3a817edbd$export$2066795aadd37bfc as IslamicCivilCalendar, $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 as IslamicTabularCalendar, $f2f3e0e3a817edbd$export$5baab4758c231076 as IslamicUmalquraCalendar};\n//# sourceMappingURL=IslamicCalendar.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {mod as $2b4dce13dd5a17fa$export$842a2cf37af977e1} from \"./utils.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $7c5f6fbf42389787$var$HEBREW_EPOCH = 347997;\n// Hebrew date calculations are performed in terms of days, hours, and\n// \"parts\" (or halakim), which are 1/1080 of an hour, or 3 1/3 seconds.\nconst $7c5f6fbf42389787$var$HOUR_PARTS = 1080;\nconst $7c5f6fbf42389787$var$DAY_PARTS = 24 * $7c5f6fbf42389787$var$HOUR_PARTS;\n// An approximate value for the length of a lunar month.\n// It is used to calculate the approximate year and month of a given\n// absolute date.\nconst $7c5f6fbf42389787$var$MONTH_DAYS = 29;\nconst $7c5f6fbf42389787$var$MONTH_FRACT = 12 * $7c5f6fbf42389787$var$HOUR_PARTS + 793;\nconst $7c5f6fbf42389787$var$MONTH_PARTS = $7c5f6fbf42389787$var$MONTH_DAYS * $7c5f6fbf42389787$var$DAY_PARTS + $7c5f6fbf42389787$var$MONTH_FRACT;\nfunction $7c5f6fbf42389787$var$isLeapYear(year) {\n    return (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(year * 7 + 1, 19) < 7;\n}\n// Test for delay of start of new year and to avoid\n// Sunday, Wednesday, and Friday as start of the new year.\nfunction $7c5f6fbf42389787$var$hebrewDelay1(year) {\n    let months = Math.floor((235 * year - 234) / 19);\n    let parts = 12084 + 13753 * months;\n    let day = months * 29 + Math.floor(parts / 25920);\n    if ((0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(3 * (day + 1), 7) < 3) day += 1;\n    return day;\n}\n// Check for delay in start of new year due to length of adjacent years\nfunction $7c5f6fbf42389787$var$hebrewDelay2(year) {\n    let last = $7c5f6fbf42389787$var$hebrewDelay1(year - 1);\n    let present = $7c5f6fbf42389787$var$hebrewDelay1(year);\n    let next = $7c5f6fbf42389787$var$hebrewDelay1(year + 1);\n    if (next - present === 356) return 2;\n    if (present - last === 382) return 1;\n    return 0;\n}\nfunction $7c5f6fbf42389787$var$startOfYear(year) {\n    return $7c5f6fbf42389787$var$hebrewDelay1(year) + $7c5f6fbf42389787$var$hebrewDelay2(year);\n}\nfunction $7c5f6fbf42389787$var$getDaysInYear(year) {\n    return $7c5f6fbf42389787$var$startOfYear(year + 1) - $7c5f6fbf42389787$var$startOfYear(year);\n}\nfunction $7c5f6fbf42389787$var$getYearType(year) {\n    let yearLength = $7c5f6fbf42389787$var$getDaysInYear(year);\n    if (yearLength > 380) yearLength -= 30; // Subtract length of leap month.\n    switch(yearLength){\n        case 353:\n            return 0; // deficient\n        case 354:\n            return 1; // normal\n        case 355:\n            return 2; // complete\n    }\n}\nfunction $7c5f6fbf42389787$var$getDaysInMonth(year, month) {\n    // Normalize month numbers from 1 - 13, even on non-leap years\n    if (month >= 6 && !$7c5f6fbf42389787$var$isLeapYear(year)) month++;\n    // First of all, dispose of fixed-length 29 day months\n    if (month === 4 || month === 7 || month === 9 || month === 11 || month === 13) return 29;\n    let yearType = $7c5f6fbf42389787$var$getYearType(year);\n    // If it's Heshvan, days depend on length of year\n    if (month === 2) return yearType === 2 ? 30 : 29;\n    // Similarly, Kislev varies with the length of year\n    if (month === 3) return yearType === 0 ? 29 : 30;\n    // Adar I only exists in leap years\n    if (month === 6) return $7c5f6fbf42389787$var$isLeapYear(year) ? 30 : 0;\n    return 30;\n}\nclass $7c5f6fbf42389787$export$ca405048b8fb5af {\n    fromJulianDay(jd) {\n        let d = jd - $7c5f6fbf42389787$var$HEBREW_EPOCH;\n        let m = d * $7c5f6fbf42389787$var$DAY_PARTS / $7c5f6fbf42389787$var$MONTH_PARTS; // Months (approx)\n        let year = Math.floor((19 * m + 234) / 235) + 1; // Years (approx)\n        let ys = $7c5f6fbf42389787$var$startOfYear(year); // 1st day of year\n        let dayOfYear = Math.floor(d - ys);\n        // Because of the postponement rules, it's possible to guess wrong.  Fix it.\n        while(dayOfYear < 1){\n            year--;\n            ys = $7c5f6fbf42389787$var$startOfYear(year);\n            dayOfYear = Math.floor(d - ys);\n        }\n        // Now figure out which month we're in, and the date within that month\n        let month = 1;\n        let monthStart = 0;\n        while(monthStart < dayOfYear){\n            monthStart += $7c5f6fbf42389787$var$getDaysInMonth(year, month);\n            month++;\n        }\n        month--;\n        monthStart -= $7c5f6fbf42389787$var$getDaysInMonth(year, month);\n        let day = dayOfYear - monthStart;\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, year, month, day);\n    }\n    toJulianDay(date) {\n        let jd = $7c5f6fbf42389787$var$startOfYear(date.year);\n        for(let month = 1; month < date.month; month++)jd += $7c5f6fbf42389787$var$getDaysInMonth(date.year, month);\n        return jd + date.day + $7c5f6fbf42389787$var$HEBREW_EPOCH;\n    }\n    getDaysInMonth(date) {\n        return $7c5f6fbf42389787$var$getDaysInMonth(date.year, date.month);\n    }\n    getMonthsInYear(date) {\n        return $7c5f6fbf42389787$var$isLeapYear(date.year) ? 13 : 12;\n    }\n    getDaysInYear(date) {\n        return $7c5f6fbf42389787$var$getDaysInYear(date.year);\n    }\n    getMaximumMonthsInYear() {\n        return 13;\n    }\n    getMaximumDaysInMonth() {\n        return 30;\n    }\n    getYearsInEra() {\n        // 6239 gregorian\n        return 9999;\n    }\n    getEras() {\n        return [\n            'AM'\n        ];\n    }\n    balanceYearMonth(date, previousDate) {\n        // Keep date in the same month when switching between leap years and non leap years\n        if (previousDate.year !== date.year) {\n            if ($7c5f6fbf42389787$var$isLeapYear(previousDate.year) && !$7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month--;\n            else if (!$7c5f6fbf42389787$var$isLeapYear(previousDate.year) && $7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month++;\n        }\n    }\n    constructor(){\n        this.identifier = 'hebrew';\n    }\n}\n\n\nexport {$7c5f6fbf42389787$export$ca405048b8fb5af as HebrewCalendar};\n//# sourceMappingURL=HebrewCalendar.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\nconst $b956b2d7a6cf451f$var$ETHIOPIC_EPOCH = 1723856;\nconst $b956b2d7a6cf451f$var$COPTIC_EPOCH = 1824665;\n// The delta between Amete Alem 1 and Amete Mihret 1\n// AA 5501 = AM 1\nconst $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA = 5500;\nfunction $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, day) {\n    return epoch // difference from Julian epoch to 1,1,1\n     + 365 * year // number of days from years\n     + Math.floor(year / 4) // extra day of leap year\n     + 30 * (month - 1 // number of days from months (1 based)\n    ) + day - 1 // number of days for present month (1 based)\n    ;\n}\nfunction $b956b2d7a6cf451f$var$julianDayToCE(epoch, jd) {\n    let year = Math.floor(4 * (jd - epoch) / 1461);\n    let month = 1 + Math.floor((jd - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, 1, 1)) / 30);\n    let day = jd + 1 - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, 1);\n    return [\n        year,\n        month,\n        day\n    ];\n}\nfunction $b956b2d7a6cf451f$var$getLeapDay(year) {\n    return Math.floor(year % 4 / 3);\n}\nfunction $b956b2d7a6cf451f$var$getDaysInMonth(year, month) {\n    // The Ethiopian and Coptic calendars have 13 months, 12 of 30 days each and\n    // an intercalary month at the end of the year of 5 or 6 days, depending whether\n    // the year is a leap year or not. The Leap Year follows the same rules as the\n    // Julian Calendar so that the extra month always has six days in the year before\n    // a Julian Leap Year.\n    if (month % 13 !== 0) // not intercalary month\n    return 30;\n    else // intercalary month 5 days + possible leap day\n    return $b956b2d7a6cf451f$var$getLeapDay(year) + 5;\n}\nclass $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {\n    fromJulianDay(jd) {\n        let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);\n        let era = 'AM';\n        if (year <= 0) {\n            era = 'AA';\n            year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;\n        }\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, era, year, month, day);\n    }\n    toJulianDay(date) {\n        let year = date.year;\n        if (date.era === 'AA') year -= $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;\n        return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, year, date.month, date.day);\n    }\n    getDaysInMonth(date) {\n        return $b956b2d7a6cf451f$var$getDaysInMonth(date.year, date.month);\n    }\n    getMonthsInYear() {\n        return 13;\n    }\n    getDaysInYear(date) {\n        return 365 + $b956b2d7a6cf451f$var$getLeapDay(date.year);\n    }\n    getMaximumMonthsInYear() {\n        return 13;\n    }\n    getMaximumDaysInMonth() {\n        return 30;\n    }\n    getYearsInEra(date) {\n        // 9999-12-31 gregorian is 9992-20-02 ethiopic.\n        // Round down to 9991 for the last full year.\n        // AA 9999-01-01 ethiopic is 4506-09-30 gregorian.\n        return date.era === 'AA' ? 9999 : 9991;\n    }\n    getEras() {\n        return [\n            'AA',\n            'AM'\n        ];\n    }\n    constructor(){\n        this.identifier = 'ethiopic';\n    }\n}\nclass $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {\n    fromJulianDay(jd) {\n        let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);\n        year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, 'AA', year, month, day);\n    }\n    getEras() {\n        return [\n            'AA'\n        ];\n    }\n    getYearsInEra() {\n        // 9999-13-04 ethioaa is the maximum date, which is equivalent to 4506-09-29 gregorian.\n        return 9999;\n    }\n    constructor(...args){\n        super(...args), this.identifier = 'ethioaa' // also known as 'ethiopic-amete-alem' in ICU\n        ;\n    }\n}\nclass $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {\n    fromJulianDay(jd) {\n        let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$COPTIC_EPOCH, jd);\n        let era = 'CE';\n        if (year <= 0) {\n            era = 'BCE';\n            year = 1 - year;\n        }\n        return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, era, year, month, day);\n    }\n    toJulianDay(date) {\n        let year = date.year;\n        if (date.era === 'BCE') year = 1 - year;\n        return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$COPTIC_EPOCH, year, date.month, date.day);\n    }\n    getDaysInMonth(date) {\n        let year = date.year;\n        if (date.era === 'BCE') year = 1 - year;\n        return $b956b2d7a6cf451f$var$getDaysInMonth(year, date.month);\n    }\n    isInverseEra(date) {\n        return date.era === 'BCE';\n    }\n    balanceDate(date) {\n        if (date.year <= 0) {\n            date.era = date.era === 'BCE' ? 'CE' : 'BCE';\n            date.year = 1 - date.year;\n        }\n    }\n    getEras() {\n        return [\n            'BCE',\n            'CE'\n        ];\n    }\n    getYearsInEra(date) {\n        // 9999-12-30 gregorian is 9716-02-20 coptic.\n        // Round down to 9715 for the last full year.\n        // BCE 9999-01-01 coptic is BC 9716-06-15 gregorian.\n        return date.era === 'BCE' ? 9999 : 9715;\n    }\n    constructor(...args){\n        super(...args), this.identifier = 'coptic';\n    }\n}\n\n\nexport {$b956b2d7a6cf451f$export$26ba6eab5e20cd7d as EthiopicCalendar, $b956b2d7a6cf451f$export$d72e0c37005a4914 as EthiopicAmeteAlemCalendar, $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 as CopticCalendar};\n//# sourceMappingURL=EthiopicCalendar.module.js.map\n","import {BuddhistCalendar as $8d73d47422ca7302$export$42d20a78301dee44} from \"./BuddhistCalendar.mjs\";\nimport {CopticCalendar as $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1, EthiopicAmeteAlemCalendar as $b956b2d7a6cf451f$export$d72e0c37005a4914, EthiopicCalendar as $b956b2d7a6cf451f$export$26ba6eab5e20cd7d} from \"./EthiopicCalendar.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\nimport {HebrewCalendar as $7c5f6fbf42389787$export$ca405048b8fb5af} from \"./HebrewCalendar.mjs\";\nimport {IndianCalendar as $82c358003bdda0a8$export$39f31c639fa15726} from \"./IndianCalendar.mjs\";\nimport {IslamicCivilCalendar as $f2f3e0e3a817edbd$export$2066795aadd37bfc, IslamicTabularCalendar as $f2f3e0e3a817edbd$export$37f0887f2f9d22f7, IslamicUmalquraCalendar as $f2f3e0e3a817edbd$export$5baab4758c231076} from \"./IslamicCalendar.mjs\";\nimport {JapaneseCalendar as $62225008020f0a13$export$b746ab2b60cdffbf} from \"./JapaneseCalendar.mjs\";\nimport {PersianCalendar as $f3ed2e4472ae7e25$export$37fccdbfd14c5939} from \"./PersianCalendar.mjs\";\nimport {TaiwanCalendar as $5f31bd6f0c8940b2$export$65e01080afcb0799} from \"./TaiwanCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\nfunction $64244302c3013299$export$dd0bbc9b26defe37(name) {\n    switch(name){\n        case 'buddhist':\n            return new (0, $8d73d47422ca7302$export$42d20a78301dee44)();\n        case 'ethiopic':\n            return new (0, $b956b2d7a6cf451f$export$26ba6eab5e20cd7d)();\n        case 'ethioaa':\n            return new (0, $b956b2d7a6cf451f$export$d72e0c37005a4914)();\n        case 'coptic':\n            return new (0, $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1)();\n        case 'hebrew':\n            return new (0, $7c5f6fbf42389787$export$ca405048b8fb5af)();\n        case 'indian':\n            return new (0, $82c358003bdda0a8$export$39f31c639fa15726)();\n        case 'islamic-civil':\n            return new (0, $f2f3e0e3a817edbd$export$2066795aadd37bfc)();\n        case 'islamic-tbla':\n            return new (0, $f2f3e0e3a817edbd$export$37f0887f2f9d22f7)();\n        case 'islamic-umalqura':\n            return new (0, $f2f3e0e3a817edbd$export$5baab4758c231076)();\n        case 'japanese':\n            return new (0, $62225008020f0a13$export$b746ab2b60cdffbf)();\n        case 'persian':\n            return new (0, $f3ed2e4472ae7e25$export$37fccdbfd14c5939)();\n        case 'roc':\n            return new (0, $5f31bd6f0c8940b2$export$65e01080afcb0799)();\n        case 'gregory':\n        default:\n            return new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)();\n    }\n}\n\n\nexport {$64244302c3013299$export$dd0bbc9b26defe37 as createCalendar};\n//# sourceMappingURL=createCalendar.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ let $fb18d541ea1ad717$var$formatterCache = new Map();\nclass $fb18d541ea1ad717$export$ad991b66133851cf {\n    /** Formats a date as a string according to the locale and format options passed to the constructor. */ format(value) {\n        return this.formatter.format(value);\n    }\n    /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */ formatToParts(value) {\n        return this.formatter.formatToParts(value);\n    }\n    /** Formats a date range as a string. */ formatRange(start, end) {\n        // @ts-ignore\n        if (typeof this.formatter.formatRange === 'function') // @ts-ignore\n        return this.formatter.formatRange(start, end);\n        if (end < start) throw new RangeError('End date must be >= start date');\n        // Very basic fallback for old browsers.\n        return `${this.formatter.format(start)} \\u{2013} ${this.formatter.format(end)}`;\n    }\n    /** Formats a date range as an array of parts. */ formatRangeToParts(start, end) {\n        // @ts-ignore\n        if (typeof this.formatter.formatRangeToParts === 'function') // @ts-ignore\n        return this.formatter.formatRangeToParts(start, end);\n        if (end < start) throw new RangeError('End date must be >= start date');\n        let startParts = this.formatter.formatToParts(start);\n        let endParts = this.formatter.formatToParts(end);\n        return [\n            ...startParts.map((p)=>({\n                    ...p,\n                    source: 'startRange'\n                })),\n            {\n                type: 'literal',\n                value: \" \\u2013 \",\n                source: 'shared'\n            },\n            ...endParts.map((p)=>({\n                    ...p,\n                    source: 'endRange'\n                }))\n        ];\n    }\n    /** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {\n        let resolvedOptions = this.formatter.resolvedOptions();\n        if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {\n            if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);\n            resolvedOptions.hourCycle = this.resolvedHourCycle;\n            resolvedOptions.hour12 = this.resolvedHourCycle === 'h11' || this.resolvedHourCycle === 'h12';\n        }\n        // Safari uses a different name for the Ethiopic (Amete Alem) calendar.\n        // https://bugs.webkit.org/show_bug.cgi?id=241564\n        if (resolvedOptions.calendar === 'ethiopic-amete-alem') resolvedOptions.calendar = 'ethioaa';\n        return resolvedOptions;\n    }\n    constructor(locale, options = {}){\n        this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);\n        this.options = options;\n    }\n}\n// There are multiple bugs involving the hour12 and hourCycle options in various browser engines.\n//   - Chrome [1] (and the ECMA 402 spec [2]) resolve hour12: false in English and other locales to h24 (24:00 - 23:59)\n//     rather than h23 (00:00 - 23:59). Same can happen with hour12: true in French, which Chrome resolves to h11 (00:00 - 11:59)\n//     rather than h12 (12:00 - 11:59).\n//   - WebKit returns an incorrect hourCycle resolved option in the French locale due to incorrect parsing of 'h' literal\n//     in the resolved pattern. It also formats incorrectly when specifying the hourCycle option for the same reason. [3]\n// [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1045791\n// [2] https://github.com/tc39/ecma402/issues/402\n// [3] https://bugs.webkit.org/show_bug.cgi?id=229313\n// https://github.com/unicode-org/cldr/blob/018b55eff7ceb389c7e3fc44e2f657eae3b10b38/common/supplemental/supplementalData.xml#L4774-L4802\nconst $fb18d541ea1ad717$var$hour12Preferences = {\n    true: {\n        // Only Japanese uses the h11 style for 12 hour time. All others use h12.\n        ja: 'h11'\n    },\n    false: {\n    }\n};\nfunction $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {\n    // Work around buggy hour12 behavior in Chrome / ECMA 402 spec by using hourCycle instead.\n    // Only apply the workaround if the issue is detected, because the hourCycle option is buggy in Safari.\n    if (typeof options.hour12 === 'boolean' && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {\n        options = {\n            ...options\n        };\n        let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split('-')[0]];\n        let defaultHourCycle = options.hour12 ? 'h12' : 'h23';\n        options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;\n        delete options.hour12;\n    }\n    let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : '');\n    if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);\n    let numberFormatter = new Intl.DateTimeFormat(locale, options);\n    $fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);\n    return numberFormatter;\n}\nlet $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;\nfunction $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {\n    if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat('en-US', {\n        hour: 'numeric',\n        hour12: false\n    }).format(new Date(2020, 2, 3, 0)) === '24';\n    return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;\n}\nlet $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;\nfunction $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {\n    if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat('fr', {\n        hour: 'numeric',\n        hour12: false\n    }).resolvedOptions().hourCycle === 'h12';\n    return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;\n}\nfunction $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {\n    if (!options.timeStyle && !options.hour) return undefined;\n    // Work around buggy results in resolved hourCycle and hour12 options in WebKit.\n    // Format the minimum possible hour and maximum possible hour in a day and parse the results.\n    locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, '');\n    locale += (locale.includes('-u-') ? '' : '-u') + '-nu-latn';\n    let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, {\n        ...options,\n        timeZone: undefined // use local timezone\n    });\n    let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p)=>p.type === 'hour').value, 10);\n    let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p)=>p.type === 'hour').value, 10);\n    if (min === 0 && max === 23) return 'h23';\n    if (min === 24 && max === 23) return 'h24';\n    if (min === 0 && max === 11) return 'h11';\n    if (min === 12 && max === 11) return 'h12';\n    throw new Error('Unexpected hour cycle result');\n}\n\n\nexport {$fb18d541ea1ad717$export$ad991b66133851cf as DateFormatter};\n//# sourceMappingURL=DateFormatter.module.js.map\n","import { CalendarDate, CalendarDateTime, DateFormatter, Time, ZonedDateTime, createCalendar, getDayOfWeek, getLocalTimeZone, parseDate, parseDateTime, parseZonedDateTime, toCalendar } from \"@internationalized/date\";\n\n//#region src/date/comparators.ts\n/**\n* Given a date string and a reference `DateValue` object, parse the\n* string to the same type as the reference object.\n*\n* Useful for parsing strings from data attributes, which are always\n* strings, to the same type being used by the date component.\n*/\nfunction parseStringToDateValue(dateStr, referenceVal) {\n\tlet dateValue;\n\tif (isZonedDateTime(referenceVal)) dateValue = parseZonedDateTime(dateStr);\n\telse if (isCalendarDateTime(referenceVal)) dateValue = parseDateTime(dateStr);\n\telse dateValue = parseDate(dateStr);\n\treturn dateValue.calendar !== referenceVal.calendar ? toCalendar(dateValue, referenceVal.calendar) : dateValue;\n}\n/**\n* Given a `DateValue` object, convert it to a native `Date` object.\n* If a timezone is provided, the date will be converted to that timezone.\n* If no timezone is provided, the date will be converted to the local timezone.\n*/\nfunction toDate(dateValue, tz = getLocalTimeZone()) {\n\tif (isZonedDateTime(dateValue)) return dateValue.toDate();\n\telse return dateValue.toDate(tz);\n}\nfunction isCalendarDateTime(dateValue) {\n\treturn dateValue instanceof CalendarDateTime;\n}\nfunction isZonedDateTime(dateValue) {\n\treturn dateValue instanceof ZonedDateTime;\n}\nfunction hasTime(dateValue) {\n\treturn isCalendarDateTime(dateValue) || isZonedDateTime(dateValue);\n}\n/**\n* Given a date, return the number of days in the month.\n*/\nfunction getDaysInMonth(date) {\n\tif (date instanceof Date) {\n\t\tconst year = date.getFullYear();\n\t\tconst month = date.getMonth() + 1;\n\t\t/**\n\t\t* By using zero as the day, we get the\n\t\t* last day of the previous month, which\n\t\t* is the month we originally passed in.\n\t\t*/\n\t\treturn new Date(year, month, 0).getDate();\n\t} else return date.set({ day: 100 }).day;\n}\n/**\n* Determine if a date is before the reference date.\n* @param dateToCompare - is this date before the `referenceDate`\n* @param referenceDate - is the `dateToCompare` before this date\n*\n* @see {@link isBeforeOrSame} for inclusive\n*/\nfunction isBefore(dateToCompare, referenceDate) {\n\treturn dateToCompare.compare(referenceDate) < 0;\n}\n/**\n* Determine if a date is after the reference date.\n* @param dateToCompare - is this date after the `referenceDate`\n* @param referenceDate - is the `dateToCompare` after this date\n*\n* @see {@link isAfterOrSame} for inclusive\n*/\nfunction isAfter(dateToCompare, referenceDate) {\n\treturn dateToCompare.compare(referenceDate) > 0;\n}\n/**\n* Determine if a date is before or the same as the reference date.\n*\n* @param dateToCompare - the date to compare\n* @param referenceDate - the reference date to make the comparison against\n*\n* @see {@link isBefore} for non-inclusive\n*/\nfunction isBeforeOrSame(dateToCompare, referenceDate) {\n\treturn dateToCompare.compare(referenceDate) <= 0;\n}\n/**\n* Determine if a date is after or the same as the reference date.\n*\n* @param dateToCompare - is this date after or the same as the `referenceDate`\n* @param referenceDate - is the `dateToCompare` after or the same as this date\n*\n* @see {@link isAfter} for non-inclusive\n*/\nfunction isAfterOrSame(dateToCompare, referenceDate) {\n\treturn dateToCompare.compare(referenceDate) >= 0;\n}\n/**\n* Determine if a date is inclusively between a start and end reference date.\n*\n* @param date - is this date inclusively between the `start` and `end` dates\n* @param start - the start reference date to make the comparison against\n* @param end - the end reference date to make the comparison against\n*\n* @see {@link isBetween} for non-inclusive\n*/\nfunction isBetweenInclusive(date, start, end) {\n\treturn isAfterOrSame(date, start) && isBeforeOrSame(date, end);\n}\n/**\n* Determine if a date is between a start and end reference date.\n*\n* @param date - is this date between the `start` and `end` dates\n* @param start - the start reference date to make the comparison against\n* @param end - the end reference date to make the comparison against\n*\n* @see {@link isBetweenInclusive} for inclusive\n*/\nfunction isBetween(date, start, end) {\n\treturn isAfter(date, start) && isBefore(date, end);\n}\nfunction getLastFirstDayOfWeek(date, firstDayOfWeek, locale) {\n\t/**\n\t* \"firstDayOfWeek\" is fixed to 0(Sunday) to avoid confusion regarding locales.\n\t* This also aligns with other date libraries, e.g., date-fns.\n\t*\n\t* #see https://github.com/unovue/reka-ui/issues/2157\n\t*/\n\tconst day = getDayOfWeek(date, locale, \"sun\");\n\tif (firstDayOfWeek > day) return date.subtract({ days: day + 7 - firstDayOfWeek });\n\tif (firstDayOfWeek === day) return date;\n\treturn date.subtract({ days: day - firstDayOfWeek });\n}\nfunction getNextLastDayOfWeek(date, firstDayOfWeek, locale) {\n\t/**\n\t* \"firstDayOfWeek\" is fixed to 0(Sunday) to avoid confusion regarding locales.\n\t* This also aligns with other date libraries, e.g., date-fns.\n\t*\n\t* #see https://github.com/unovue/reka-ui/issues/2157\n\t*/\n\tconst day = getDayOfWeek(date, locale, \"sun\");\n\tconst lastDayOfWeek = firstDayOfWeek === 0 ? 6 : firstDayOfWeek - 1;\n\tif (day === lastDayOfWeek) return date;\n\tif (day > lastDayOfWeek) return date.add({ days: 7 - day + lastDayOfWeek });\n\treturn date.add({ days: lastDayOfWeek - day });\n}\n/**\n* Check if two dates are in the same year and month.\n*/\nfunction isSameYearMonth(a, b) {\n\treturn a.year === b.year && a.month === b.month;\n}\n/**\n* Check if two dates are in the same year.\n*/\nfunction isSameYear(a, b) {\n\treturn a.year === b.year;\n}\nfunction areAllDaysBetweenValid(start, end, isUnavailable, isDisabled, isHighlightable) {\n\tif (isUnavailable === void 0 && isDisabled === void 0 && isHighlightable === void 0) return true;\n\tlet dCurrent = start.add({ days: 1 });\n\tif ((isDisabled?.(dCurrent) || isUnavailable?.(dCurrent)) && !isHighlightable?.(dCurrent)) return false;\n\tconst dEnd = end;\n\twhile (dCurrent.compare(dEnd) < 0) {\n\t\tdCurrent = dCurrent.add({ days: 1 });\n\t\tif ((isDisabled?.(dCurrent) || isUnavailable?.(dCurrent)) && !isHighlightable?.(dCurrent)) return false;\n\t}\n\treturn true;\n}\n/**\n* Compare two dates by year and month only (ignoring day).\n*/\nfunction compareYearMonth(a, b) {\n\tif (a.year !== b.year) return a.year - b.year;\n\treturn a.month - b.month;\n}\n/**\n* Check if a date's month is between start and end (inclusive), comparing year+month only.\n*/\nfunction isMonthBetweenInclusive(date, start, end) {\n\treturn compareYearMonth(date, start) >= 0 && compareYearMonth(date, end) <= 0;\n}\n/**\n* Check if a date's year is between start and end (inclusive), comparing year only.\n*/\nfunction isYearBetweenInclusive(date, start, end) {\n\treturn date.year >= start.year && date.year <= end.year;\n}\n/**\n* Get the number of months between two dates (inclusive).\n*/\nfunction getMonthsBetween(start, end) {\n\treturn (end.year - start.year) * 12 + (end.month - start.month) + 1;\n}\n/**\n* Get the number of years between two dates (inclusive).\n*/\nfunction getYearsBetween(start, end) {\n\treturn end.year - start.year + 1;\n}\n/**\n* Check if all months between start and end are valid (not unavailable/disabled).\n*/\nfunction areAllMonthsBetweenValid(start, end, isUnavailable, isDisabled) {\n\tif (isUnavailable === void 0 && isDisabled === void 0) return true;\n\tlet current = start.set({ day: 1 });\n\tconst endMonth = end.set({ day: 1 });\n\twhile (compareYearMonth(current, endMonth) <= 0) {\n\t\tif (isDisabled?.(current) || isUnavailable?.(current)) return false;\n\t\tcurrent = current.add({ months: 1 });\n\t}\n\treturn true;\n}\n/**\n* Check if all years between start and end are valid (not unavailable/disabled).\n*/\nfunction areAllYearsBetweenValid(start, end, isUnavailable, isDisabled) {\n\tif (isUnavailable === void 0 && isDisabled === void 0) return true;\n\tlet current = start.set({\n\t\tday: 1,\n\t\tmonth: 1\n\t});\n\tconst endYear = end.set({\n\t\tday: 1,\n\t\tmonth: 1\n\t});\n\twhile (current.year <= endYear.year) {\n\t\tif (isDisabled?.(current) || isUnavailable?.(current)) return false;\n\t\tcurrent = current.add({ years: 1 });\n\t}\n\treturn true;\n}\n\n//#endregion\n//#region src/shared/date/comparators.ts\n/**\n* A helper function used throughout the various date builders\n* to generate a default `DateValue` using the `defaultValue`,\n* `defaultPlaceholder`, and `granularity` props.\n*\n* It's important to match the `DateValue` type being used\n* elsewhere in the builder, so they behave according to the\n* behavior the user expects based on the props they've provided.\n*\n*/\nfunction getDefaultDate(props) {\n\tconst { defaultValue, defaultPlaceholder, granularity = \"day\", locale = \"en\" } = props;\n\tif (Array.isArray(defaultValue) && defaultValue.length) return defaultValue.at(-1).copy();\n\tif (defaultValue && !Array.isArray(defaultValue)) return defaultValue.copy();\n\tif (defaultPlaceholder) return defaultPlaceholder.copy();\n\tconst date = /* @__PURE__ */ new Date();\n\tconst year = date.getFullYear();\n\tconst month = date.getMonth() + 1;\n\tconst day = date.getDate();\n\tconst calendarDateTimeGranularities = [\n\t\t\"hour\",\n\t\t\"minute\",\n\t\t\"second\"\n\t];\n\tconst defaultFormatter = new DateFormatter(locale);\n\tconst calendar = createCalendar(defaultFormatter.resolvedOptions().calendar);\n\tif (calendarDateTimeGranularities.includes(granularity ?? \"day\")) return toCalendar(new CalendarDateTime(year, month, day, 0, 0, 0), calendar);\n\treturn toCalendar(new CalendarDate(year, month, day), calendar);\n}\nfunction getDefaultTime(props) {\n\tconst { defaultValue, defaultPlaceholder } = props;\n\tif (defaultValue) return defaultValue.copy();\n\tif (defaultPlaceholder) return defaultPlaceholder.copy();\n\treturn new Time(0, 0, 0);\n}\n\n//#endregion\nexport { areAllDaysBetweenValid, areAllMonthsBetweenValid, areAllYearsBetweenValid, compareYearMonth, getDaysInMonth, getDefaultDate, getDefaultTime, getLastFirstDayOfWeek, getMonthsBetween, getNextLastDayOfWeek, getYearsBetween, hasTime, isAfter, isAfterOrSame, isBefore, isBeforeOrSame, isBetween, isBetweenInclusive, isCalendarDateTime, isMonthBetweenInclusive, isSameYear, isSameYearMonth, isYearBetweenInclusive, isZonedDateTime, parseStringToDateValue, toDate };\n//# sourceMappingURL=comparators.js.map","import { defu } from \"defu\";\n\n//#region src/date/utils.ts\n/**\n* Splits an array into chunks of a given size.\n* @param arr The array to split.\n* @param size The size of each chunk.\n* @returns An array of arrays, where each sub-array has `size` elements from the original array.\n* @example ```ts\n* const arr = [1, 2, 3, 4, 5, 6, 7, 8];\n* const chunks = chunk(arr, 3);\n* // chunks = [[1, 2, 3], [4, 5, 6], [7, 8]]\n* ```\n*/\nfunction chunk(arr, size) {\n\tconst result = [];\n\tfor (let i = 0; i < arr.length; i += size) result.push(arr.slice(i, i + size));\n\treturn result;\n}\n\n//#endregion\n//#region src/shared/date/utils.ts\nfunction getOptsByGranularity(granularity, hourCycle, isTimeValue = false) {\n\tconst opts = {\n\t\tyear: \"numeric\",\n\t\tmonth: \"2-digit\",\n\t\tday: \"2-digit\",\n\t\thour: \"2-digit\",\n\t\tminute: \"2-digit\",\n\t\tsecond: \"2-digit\",\n\t\ttimeZoneName: \"short\",\n\t\thourCycle: normalizeHourCycle(hourCycle),\n\t\thour12: normalizeHour12(hourCycle)\n\t};\n\tif (isTimeValue) {\n\t\tdelete opts.year;\n\t\tdelete opts.month;\n\t\tdelete opts.day;\n\t}\n\tif (granularity === \"day\") {\n\t\tdelete opts.second;\n\t\tdelete opts.hour;\n\t\tdelete opts.minute;\n\t\tdelete opts.timeZoneName;\n\t}\n\tif (granularity === \"hour\") {\n\t\tdelete opts.minute;\n\t\tdelete opts.second;\n\t}\n\tif (granularity === \"minute\") delete opts.second;\n\treturn opts;\n}\nfunction normalizeDateStep(props) {\n\treturn defu(props?.step, {\n\t\tyear: 1,\n\t\tmonth: 1,\n\t\tday: 1,\n\t\thour: 1,\n\t\tminute: 1,\n\t\tsecond: 1,\n\t\tmillisecond: 1\n\t});\n}\nfunction handleCalendarInitialFocus(calendar) {\n\tconst selectedDay = calendar.querySelector(\"[data-selected]\");\n\tif (selectedDay) return selectedDay.focus();\n\tconst today = calendar.querySelector(\"[data-today]\");\n\tif (today) return today.focus();\n\tconst firstDay = calendar.querySelector(\"[data-reka-calendar-day]\");\n\tif (firstDay) return firstDay.focus();\n}\nfunction normalizeHourCycle(hourCycle) {\n\tif (hourCycle === 24) return \"h23\";\n\tif (hourCycle === 12) return \"h11\";\n\treturn void 0;\n}\nfunction normalizeHour12(hourCycle) {\n\tif (hourCycle === 24) return false;\n\tif (hourCycle === 12) return true;\n\treturn void 0;\n}\n\n//#endregion\nexport { chunk, getOptsByGranularity, handleCalendarInitialFocus, normalizeDateStep, normalizeHourCycle };\n//# sourceMappingURL=utils.js.map","import { hasTime, isZonedDateTime, toDate } from \"../date/comparators.js\";\nimport { ref } from \"vue\";\nimport { DateFormatter, getLocalTimeZone, today } from \"@internationalized/date\";\n\n//#region src/shared/useDateFormatter.ts\n/**\n* Creates a wrapper around the `DateFormatter`, which is\n* an improved version of the {@link Intl.DateTimeFormat} API,\n* that is used internally by the various date builders to\n* easily format dates in a consistent way.\n*\n* @see [DateFormatter](https://react-spectrum.adobe.com/internationalized/date/DateFormatter.html)\n*/\nfunction useDateFormatter(initialLocale, opts = {}) {\n\tconst locale = ref(initialLocale);\n\tfunction getLocale() {\n\t\treturn locale.value;\n\t}\n\tfunction setLocale(newLocale) {\n\t\tlocale.value = newLocale;\n\t}\n\tfunction custom(date, options) {\n\t\treturn new DateFormatter(locale.value, {\n\t\t\t...opts,\n\t\t\t...options\n\t\t}).format(date);\n\t}\n\tfunction selectedDate(date, includeTime = true) {\n\t\tif (hasTime(date) && includeTime) return custom(toDate(date), {\n\t\t\tdateStyle: \"long\",\n\t\t\ttimeStyle: \"long\"\n\t\t});\n\t\telse return custom(toDate(date), { dateStyle: \"long\" });\n\t}\n\tfunction fullMonthAndYear(date, options = {}) {\n\t\treturn new DateFormatter(locale.value, {\n\t\t\t...opts,\n\t\t\tmonth: \"long\",\n\t\t\tyear: \"numeric\",\n\t\t\t...options\n\t\t}).format(date);\n\t}\n\tfunction fullMonth(date, options = {}) {\n\t\treturn new DateFormatter(locale.value, {\n\t\t\t...opts,\n\t\t\tmonth: \"long\",\n\t\t\t...options\n\t\t}).format(date);\n\t}\n\tfunction getMonths() {\n\t\tconst defaultDate = today(getLocalTimeZone());\n\t\tconst months = [\n\t\t\t1,\n\t\t\t2,\n\t\t\t3,\n\t\t\t4,\n\t\t\t5,\n\t\t\t6,\n\t\t\t7,\n\t\t\t8,\n\t\t\t9,\n\t\t\t10,\n\t\t\t11,\n\t\t\t12\n\t\t];\n\t\treturn months.map((item) => ({\n\t\t\tlabel: fullMonth(toDate(defaultDate.set({ month: item }))),\n\t\t\tvalue: item\n\t\t}));\n\t}\n\tfunction fullYear(date, options = {}) {\n\t\treturn new DateFormatter(locale.value, {\n\t\t\t...opts,\n\t\t\tyear: \"numeric\",\n\t\t\t...options\n\t\t}).format(date);\n\t}\n\tfunction toParts(date, options) {\n\t\tif (isZonedDateTime(date)) return new DateFormatter(locale.value, {\n\t\t\t...opts,\n\t\t\t...options,\n\t\t\ttimeZone: date.timeZone\n\t\t}).formatToParts(toDate(date));\n\t\telse return new DateFormatter(locale.value, {\n\t\t\t...opts,\n\t\t\t...options\n\t\t}).formatToParts(toDate(date));\n\t}\n\tfunction dayOfWeek(date, length = \"narrow\") {\n\t\treturn new DateFormatter(locale.value, {\n\t\t\t...opts,\n\t\t\tweekday: length\n\t\t}).format(date);\n\t}\n\tfunction dayPeriod(date) {\n\t\tconst parts = new DateFormatter(locale.value, {\n\t\t\t...opts,\n\t\t\thour: \"numeric\",\n\t\t\tminute: \"numeric\"\n\t\t}).formatToParts(date);\n\t\tconst value = parts.find((p) => p.type === \"dayPeriod\")?.value;\n\t\tif (value === \"PM\" || value === \"pm\" || value === \"p.m.\") return \"PM\";\n\t\treturn \"AM\";\n\t}\n\tconst defaultPartOptions = {\n\t\tyear: \"numeric\",\n\t\tmonth: \"numeric\",\n\t\tday: \"numeric\",\n\t\thour: \"numeric\",\n\t\tminute: \"numeric\",\n\t\tsecond: \"numeric\"\n\t};\n\tfunction part(dateObj, type, options = {}) {\n\t\tconst opts$1 = {\n\t\t\t...defaultPartOptions,\n\t\t\t...options\n\t\t};\n\t\tconst parts = toParts(dateObj, opts$1);\n\t\tconst part$1 = parts.find((p) => p.type === type);\n\t\treturn part$1 ? part$1.value : \"\";\n\t}\n\treturn {\n\t\tsetLocale,\n\t\tgetLocale,\n\t\tfullMonth,\n\t\tfullYear,\n\t\tfullMonthAndYear,\n\t\ttoParts,\n\t\tcustom,\n\t\tpart,\n\t\tdayPeriod,\n\t\tselectedDate,\n\t\tdayOfWeek,\n\t\tgetMonths\n\t};\n}\n\n//#endregion\nexport { useDateFormatter };\n//# sourceMappingURL=useDateFormatter.js.map","import { injectConfigProviderContext } from \"../ConfigProvider/ConfigProvider.js\";\nimport { computed, ref } from \"vue\";\n\n//#region src/shared/useDirection.ts\n/**\n* The `useDirection` function provides a way to access the current direction in your application.\n* @param {Ref<Direction | undefined>} [dir] - An optional ref containing the direction (ltr or rtl).\n* @returns  computed value that combines with the resolved direction.\n*/\nfunction useDirection(dir) {\n\tconst context = injectConfigProviderContext({ dir: ref(\"ltr\") });\n\treturn computed(() => dir?.value || context.dir?.value || \"ltr\");\n}\n\n//#endregion\nexport { useDirection };\n//# sourceMappingURL=useDirection.js.map","//#region src/shared/useKbd.ts\nfunction useKbd() {\n\treturn {\n\t\tALT: \"Alt\",\n\t\tARROW_DOWN: \"ArrowDown\",\n\t\tARROW_LEFT: \"ArrowLeft\",\n\t\tARROW_RIGHT: \"ArrowRight\",\n\t\tARROW_UP: \"ArrowUp\",\n\t\tBACKSPACE: \"Backspace\",\n\t\tCAPS_LOCK: \"CapsLock\",\n\t\tCONTROL: \"Control\",\n\t\tDELETE: \"Delete\",\n\t\tEND: \"End\",\n\t\tENTER: \"Enter\",\n\t\tESCAPE: \"Escape\",\n\t\tF1: \"F1\",\n\t\tF10: \"F10\",\n\t\tF11: \"F11\",\n\t\tF12: \"F12\",\n\t\tF2: \"F2\",\n\t\tF3: \"F3\",\n\t\tF4: \"F4\",\n\t\tF5: \"F5\",\n\t\tF6: \"F6\",\n\t\tF7: \"F7\",\n\t\tF8: \"F8\",\n\t\tF9: \"F9\",\n\t\tHOME: \"Home\",\n\t\tMETA: \"Meta\",\n\t\tPAGE_DOWN: \"PageDown\",\n\t\tPAGE_UP: \"PageUp\",\n\t\tSHIFT: \"Shift\",\n\t\tSPACE: \" \",\n\t\tTAB: \"Tab\",\n\t\tCTRL: \"Control\",\n\t\tASTERISK: \"*\",\n\t\tSPACE_CODE: \"Space\"\n\t};\n}\n\n//#endregion\nexport { useKbd };\n//# sourceMappingURL=useKbd.js.map","import { injectConfigProviderContext } from \"../ConfigProvider/ConfigProvider.js\";\nimport { computed, ref } from \"vue\";\n\n//#region src/shared/useLocale.ts\n/**\n* The `useLocale` function provides a way to access the current locale in your application.\n* @param {Ref<string | undefined>} [locale] - An optional ref containing the locale.\n* @returns A computed ref holding the resolved locale.\n*/\nfunction useLocale(locale) {\n\tconst context = injectConfigProviderContext({ locale: ref(\"en\") });\n\treturn computed(() => locale?.value || context.locale?.value || \"en\");\n}\n\n//#endregion\nexport { useLocale };\n//# sourceMappingURL=useLocale.js.map","import { renderSlotFragments } from \"../shared/renderSlotFragments.js\";\nimport { Comment, cloneVNode, defineComponent, mergeProps } from \"vue\";\n\n//#region src/Primitive/Slot.ts\nconst Slot = defineComponent({\n\tname: \"PrimitiveSlot\",\n\tinheritAttrs: false,\n\tsetup(_, { attrs, slots }) {\n\t\treturn () => {\n\t\t\tif (!slots.default) return null;\n\t\t\tconst children = renderSlotFragments(slots.default());\n\t\t\tconst firstNonCommentChildrenIndex = children.findIndex((child) => child.type !== Comment);\n\t\t\tif (firstNonCommentChildrenIndex === -1) return children;\n\t\t\tconst firstNonCommentChildren = children[firstNonCommentChildrenIndex];\n\t\t\tdelete firstNonCommentChildren.props?.ref;\n\t\t\tconst mergedProps = firstNonCommentChildren.props ? mergeProps(attrs, firstNonCommentChildren.props) : attrs;\n\t\t\tconst cloned = cloneVNode({\n\t\t\t\t...firstNonCommentChildren,\n\t\t\t\tprops: {}\n\t\t\t}, mergedProps);\n\t\t\tif (children.length === 1) return cloned;\n\t\t\tchildren[firstNonCommentChildrenIndex] = cloned;\n\t\t\treturn children;\n\t\t};\n\t}\n});\n\n//#endregion\nexport { Slot };\n//# sourceMappingURL=Slot.js.map","import { Slot } from \"./Slot.js\";\nimport { defineComponent, h } from \"vue\";\n\n//#region src/Primitive/Primitive.ts\nconst SELF_CLOSING_TAGS = [\n\t\"area\",\n\t\"img\",\n\t\"input\"\n];\nconst Primitive = defineComponent({\n\tname: \"Primitive\",\n\tinheritAttrs: false,\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\tas: {\n\t\t\ttype: [String, Object],\n\t\t\tdefault: \"div\"\n\t\t}\n\t},\n\tsetup(props, { attrs, slots }) {\n\t\tconst asTag = props.asChild ? \"template\" : props.as;\n\t\tif (typeof asTag === \"string\" && SELF_CLOSING_TAGS.includes(asTag)) return () => h(asTag, attrs);\n\t\tif (asTag !== \"template\") return () => h(props.as, attrs, { default: slots.default });\n\t\treturn () => h(Slot, attrs, { default: slots.default });\n\t}\n});\n\n//#endregion\nexport { Primitive };\n//# sourceMappingURL=Primitive.js.map","import { computed, ref } from \"vue\";\nimport { unrefElement } from \"@vueuse/core\";\n\n//#region src/Primitive/usePrimitiveElement.ts\nfunction usePrimitiveElement() {\n\tconst primitiveElement = ref();\n\tconst currentElement = computed(() => [\"#text\", \"#comment\"].includes(primitiveElement.value?.$el.nodeName) ? primitiveElement.value?.$el.nextElementSibling : unrefElement(primitiveElement));\n\treturn {\n\t\tprimitiveElement,\n\t\tcurrentElement\n\t};\n}\n\n//#endregion\nexport { usePrimitiveElement };\n//# sourceMappingURL=usePrimitiveElement.js.map","import { Primitive } from \"../Primitive/Primitive.js\";\nimport { createBlock, defineComponent, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/VisuallyHidden/VisuallyHidden.vue?vue&type=script&setup=true&lang.ts\nvar VisuallyHidden_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"VisuallyHidden\",\n\tprops: {\n\t\tfeature: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: \"focusable\"\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"span\"\n\t\t}\n\t},\n\tsetup(__props) {\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), {\n\t\t\t\tas: _ctx.as,\n\t\t\t\t\"as-child\": _ctx.asChild,\n\t\t\t\t\"aria-hidden\": _ctx.feature === \"focusable\" ? \"true\" : void 0,\n\t\t\t\t\"data-hidden\": _ctx.feature === \"fully-hidden\" ? \"\" : void 0,\n\t\t\t\ttabindex: _ctx.feature === \"fully-hidden\" ? \"-1\" : void 0,\n\t\t\t\tstyle: {\n\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\tborder: 0,\n\t\t\t\t\twidth: \"1px\",\n\t\t\t\t\theight: \"1px\",\n\t\t\t\t\tpadding: 0,\n\t\t\t\t\tmargin: \"-1px\",\n\t\t\t\t\toverflow: \"hidden\",\n\t\t\t\t\tclip: \"rect(0, 0, 0, 0)\",\n\t\t\t\t\tclipPath: \"inset(50%)\",\n\t\t\t\t\twhiteSpace: \"nowrap\",\n\t\t\t\t\twordWrap: \"normal\",\n\t\t\t\t\ttop: \"-1px\",\n\t\t\t\t\tleft: \"-1px\"\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\n\t\t\t\t\"as\",\n\t\t\t\t\"as-child\",\n\t\t\t\t\"aria-hidden\",\n\t\t\t\t\"data-hidden\",\n\t\t\t\t\"tabindex\"\n\t\t\t]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/VisuallyHidden/VisuallyHidden.vue\nvar VisuallyHidden_default = VisuallyHidden_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { VisuallyHidden_default };\n//# sourceMappingURL=VisuallyHidden.js.map","//#region src/shared/date/parts.ts\nconst DATE_SEGMENT_PARTS = [\n\t\"day\",\n\t\"month\",\n\t\"year\"\n];\nconst TIME_SEGMENT_PARTS = [\n\t\"hour\",\n\t\"minute\",\n\t\"second\",\n\t\"dayPeriod\"\n];\nconst NON_EDITABLE_SEGMENT_PARTS = [\"literal\", \"timeZoneName\"];\nconst EDITABLE_SEGMENT_PARTS = [...DATE_SEGMENT_PARTS, ...TIME_SEGMENT_PARTS];\nconst EDITABLE_TIME_SEGMENT_PARTS = [...TIME_SEGMENT_PARTS];\nconst ALL_SEGMENT_PARTS = [...EDITABLE_SEGMENT_PARTS, ...NON_EDITABLE_SEGMENT_PARTS];\nconst ALL_EXCEPT_LITERAL_PARTS = ALL_SEGMENT_PARTS.filter((part) => part !== \"literal\");\nfunction isDateSegmentPart(part) {\n\treturn DATE_SEGMENT_PARTS.includes(part);\n}\nfunction isSegmentPart(part) {\n\treturn EDITABLE_SEGMENT_PARTS.includes(part);\n}\n\n//#endregion\nexport { DATE_SEGMENT_PARTS, EDITABLE_SEGMENT_PARTS, TIME_SEGMENT_PARTS, isDateSegmentPart, isSegmentPart };\n//# sourceMappingURL=parts.js.map","//#region src/shared/date/placeholders.ts\nconst supportedLocales = [\n\t\"ach\",\n\t\"af\",\n\t\"am\",\n\t\"an\",\n\t\"ar\",\n\t\"ast\",\n\t\"az\",\n\t\"be\",\n\t\"bg\",\n\t\"bn\",\n\t\"br\",\n\t\"bs\",\n\t\"ca\",\n\t\"cak\",\n\t\"ckb\",\n\t\"cs\",\n\t\"cy\",\n\t\"da\",\n\t\"de\",\n\t\"dsb\",\n\t\"el\",\n\t\"en\",\n\t\"eo\",\n\t\"es\",\n\t\"et\",\n\t\"eu\",\n\t\"fa\",\n\t\"ff\",\n\t\"fi\",\n\t\"fr\",\n\t\"fy\",\n\t\"ga\",\n\t\"gd\",\n\t\"gl\",\n\t\"he\",\n\t\"hr\",\n\t\"hsb\",\n\t\"hu\",\n\t\"ia\",\n\t\"id\",\n\t\"it\",\n\t\"ja\",\n\t\"ka\",\n\t\"kk\",\n\t\"kn\",\n\t\"ko\",\n\t\"lb\",\n\t\"lo\",\n\t\"lt\",\n\t\"lv\",\n\t\"meh\",\n\t\"ml\",\n\t\"ms\",\n\t\"nl\",\n\t\"nn\",\n\t\"no\",\n\t\"oc\",\n\t\"pl\",\n\t\"pt\",\n\t\"rm\",\n\t\"ro\",\n\t\"ru\",\n\t\"sc\",\n\t\"scn\",\n\t\"sk\",\n\t\"sl\",\n\t\"sr\",\n\t\"sv\",\n\t\"szl\",\n\t\"tg\",\n\t\"th\",\n\t\"tr\",\n\t\"uk\",\n\t\"zh-CN\",\n\t\"zh-TW\"\n];\nconst placeholderFields = [\n\t\"year\",\n\t\"month\",\n\t\"day\"\n];\nconst placeholders = {\n\t\"ach\": {\n\t\tyear: \"mwaka\",\n\t\tmonth: \"dwe\",\n\t\tday: \"nino\"\n\t},\n\t\"af\": {\n\t\tyear: \"jjjj\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"am\": {\n\t\tyear: \"ዓዓዓዓ\",\n\t\tmonth: \"ሚሜ\",\n\t\tday: \"ቀቀ\"\n\t},\n\t\"an\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"ar\": {\n\t\tyear: \"سنة\",\n\t\tmonth: \"شهر\",\n\t\tday: \"يوم\"\n\t},\n\t\"ast\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"az\": {\n\t\tyear: \"iiii\",\n\t\tmonth: \"aa\",\n\t\tday: \"gg\"\n\t},\n\t\"be\": {\n\t\tyear: \"гггг\",\n\t\tmonth: \"мм\",\n\t\tday: \"дд\"\n\t},\n\t\"bg\": {\n\t\tyear: \"гггг\",\n\t\tmonth: \"мм\",\n\t\tday: \"дд\"\n\t},\n\t\"bn\": {\n\t\tyear: \"yyyy\",\n\t\tmonth: \"মিমি\",\n\t\tday: \"dd\"\n\t},\n\t\"br\": {\n\t\tyear: \"bbbb\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"bs\": {\n\t\tyear: \"gggg\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"ca\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"cak\": {\n\t\tyear: \"jjjj\",\n\t\tmonth: \"ii\",\n\t\tday: \"q'q'\"\n\t},\n\t\"ckb\": {\n\t\tyear: \"ساڵ\",\n\t\tmonth: \"مانگ\",\n\t\tday: \"ڕۆژ\"\n\t},\n\t\"cs\": {\n\t\tyear: \"rrrr\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"cy\": {\n\t\tyear: \"bbbb\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"da\": {\n\t\tyear: \"åååå\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"de\": {\n\t\tyear: \"jjjj\",\n\t\tmonth: \"mm\",\n\t\tday: \"tt\"\n\t},\n\t\"dsb\": {\n\t\tyear: \"llll\",\n\t\tmonth: \"mm\",\n\t\tday: \"źź\"\n\t},\n\t\"el\": {\n\t\tyear: \"εεεε\",\n\t\tmonth: \"μμ\",\n\t\tday: \"ηη\"\n\t},\n\t\"en\": {\n\t\tyear: \"yyyy\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"eo\": {\n\t\tyear: \"jjjj\",\n\t\tmonth: \"mm\",\n\t\tday: \"tt\"\n\t},\n\t\"es\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"et\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"kk\",\n\t\tday: \"pp\"\n\t},\n\t\"eu\": {\n\t\tyear: \"uuuu\",\n\t\tmonth: \"hh\",\n\t\tday: \"ee\"\n\t},\n\t\"fa\": {\n\t\tyear: \"سال\",\n\t\tmonth: \"ماه\",\n\t\tday: \"روز\"\n\t},\n\t\"ff\": {\n\t\tyear: \"hhhh\",\n\t\tmonth: \"ll\",\n\t\tday: \"ññ\"\n\t},\n\t\"fi\": {\n\t\tyear: \"vvvv\",\n\t\tmonth: \"kk\",\n\t\tday: \"pp\"\n\t},\n\t\"fr\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"jj\"\n\t},\n\t\"fy\": {\n\t\tyear: \"jjjj\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"ga\": {\n\t\tyear: \"bbbb\",\n\t\tmonth: \"mm\",\n\t\tday: \"ll\"\n\t},\n\t\"gd\": {\n\t\tyear: \"bbbb\",\n\t\tmonth: \"mm\",\n\t\tday: \"ll\"\n\t},\n\t\"gl\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"he\": {\n\t\tyear: \"שנה\",\n\t\tmonth: \"חודש\",\n\t\tday: \"יום\"\n\t},\n\t\"hr\": {\n\t\tyear: \"gggg\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"hsb\": {\n\t\tyear: \"llll\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"hu\": {\n\t\tyear: \"éééé\",\n\t\tmonth: \"hh\",\n\t\tday: \"nn\"\n\t},\n\t\"ia\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"id\": {\n\t\tyear: \"tttt\",\n\t\tmonth: \"bb\",\n\t\tday: \"hh\"\n\t},\n\t\"it\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"gg\"\n\t},\n\t\"ja\": {\n\t\tyear: \" 年 \",\n\t\tmonth: \"月\",\n\t\tday: \"日\"\n\t},\n\t\"ka\": {\n\t\tyear: \"წწწწ\",\n\t\tmonth: \"თთ\",\n\t\tday: \"რრ\"\n\t},\n\t\"kk\": {\n\t\tyear: \"жжжж\",\n\t\tmonth: \"аа\",\n\t\tday: \"кк\"\n\t},\n\t\"kn\": {\n\t\tyear: \"ವವವವ\",\n\t\tmonth: \"ಮಿಮೀ\",\n\t\tday: \"ದಿದಿ\"\n\t},\n\t\"ko\": {\n\t\tyear: \"연도\",\n\t\tmonth: \"월\",\n\t\tday: \"일\"\n\t},\n\t\"lb\": {\n\t\tyear: \"jjjj\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"lo\": {\n\t\tyear: \"ປປປປ\",\n\t\tmonth: \"ດດ\",\n\t\tday: \"ວວ\"\n\t},\n\t\"lt\": {\n\t\tyear: \"mmmm\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"lv\": {\n\t\tyear: \"gggg\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"meh\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"ml\": {\n\t\tyear: \"വർഷം\",\n\t\tmonth: \"മാസം\",\n\t\tday: \"തീയതി\"\n\t},\n\t\"ms\": {\n\t\tyear: \"tttt\",\n\t\tmonth: \"mm\",\n\t\tday: \"hh\"\n\t},\n\t\"nl\": {\n\t\tyear: \"jjjj\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"nn\": {\n\t\tyear: \"åååå\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"no\": {\n\t\tyear: \"åååå\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"oc\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"jj\"\n\t},\n\t\"pl\": {\n\t\tyear: \"rrrr\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"pt\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"rm\": {\n\t\tyear: \"oooo\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"ro\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"ll\",\n\t\tday: \"zz\"\n\t},\n\t\"ru\": {\n\t\tyear: \"гггг\",\n\t\tmonth: \"мм\",\n\t\tday: \"дд\"\n\t},\n\t\"sc\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"scn\": {\n\t\tyear: \"aaaa\",\n\t\tmonth: \"mm\",\n\t\tday: \"jj\"\n\t},\n\t\"sk\": {\n\t\tyear: \"rrrr\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"sl\": {\n\t\tyear: \"llll\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"sr\": {\n\t\tyear: \"гггг\",\n\t\tmonth: \"мм\",\n\t\tday: \"дд\"\n\t},\n\t\"sv\": {\n\t\tyear: \"åååå\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"szl\": {\n\t\tyear: \"rrrr\",\n\t\tmonth: \"mm\",\n\t\tday: \"dd\"\n\t},\n\t\"tg\": {\n\t\tyear: \"сссс\",\n\t\tmonth: \"мм\",\n\t\tday: \"рр\"\n\t},\n\t\"th\": {\n\t\tyear: \"ปปปป\",\n\t\tmonth: \"ดด\",\n\t\tday: \"วว\"\n\t},\n\t\"tr\": {\n\t\tyear: \"yyyy\",\n\t\tmonth: \"aa\",\n\t\tday: \"gg\"\n\t},\n\t\"uk\": {\n\t\tyear: \"рррр\",\n\t\tmonth: \"мм\",\n\t\tday: \"дд\"\n\t},\n\t\"zh-CN\": {\n\t\tyear: \"年\",\n\t\tmonth: \"月\",\n\t\tday: \"日\"\n\t},\n\t\"zh-TW\": {\n\t\tyear: \"年\",\n\t\tmonth: \"月\",\n\t\tday: \"日\"\n\t}\n};\nfunction getPlaceholderObj(locale) {\n\tif (!isSupportedLocale(locale)) {\n\t\tconst localeLanguage = getLocaleLanguage(locale);\n\t\tif (!isSupportedLocale(localeLanguage)) return placeholders.en;\n\t\telse return placeholders[localeLanguage];\n\t} else return placeholders[locale];\n}\nfunction getPlaceholder(field, value, locale) {\n\tif (isPlaceholderField(field)) return getPlaceholderObj(locale)[field];\n\tif (isDefaultField(field)) return value;\n\tif (isTimeField(field)) return \"––\";\n\treturn \"\";\n}\nfunction isSupportedLocale(locale) {\n\treturn supportedLocales.includes(locale);\n}\nfunction isPlaceholderField(field) {\n\treturn placeholderFields.includes(field);\n}\nfunction isTimeField(field) {\n\treturn field === \"hour\" || field === \"minute\" || field === \"second\";\n}\nfunction isDefaultField(field) {\n\treturn field === \"era\" || field === \"dayPeriod\";\n}\nfunction getLocaleLanguage(locale) {\n\tif (Intl.Locale) return new Intl.Locale(locale).language;\n\treturn locale.split(\"-\")[0];\n}\n\n//#endregion\nexport { getPlaceholder };\n//# sourceMappingURL=placeholders.js.map","import { isZonedDateTime, toDate } from \"./comparators.js\";\nimport { getOptsByGranularity, normalizeHourCycle } from \"./utils.js\";\nimport { DATE_SEGMENT_PARTS, EDITABLE_SEGMENT_PARTS, TIME_SEGMENT_PARTS, isDateSegmentPart, isSegmentPart } from \"./parts.js\";\nimport { getPlaceholder } from \"./placeholders.js\";\n\n//#region src/shared/date/parser.ts\nconst calendarDateTimeGranularities = [\n\t\"hour\",\n\t\"minute\",\n\t\"second\"\n];\nfunction syncTimeSegmentValues(props) {\n\treturn Object.fromEntries(TIME_SEGMENT_PARTS.map((part) => {\n\t\tif (part === \"dayPeriod\") return [part, props.formatter.dayPeriod(toDate(props.value))];\n\t\treturn [part, props.value[part]];\n\t}));\n}\nfunction syncSegmentValues(props) {\n\tconst { formatter } = props;\n\tconst dateValues = DATE_SEGMENT_PARTS.map((part) => {\n\t\treturn [part, props.value[part]];\n\t});\n\tif (\"hour\" in props.value) {\n\t\tconst timeValues = syncTimeSegmentValues({\n\t\t\tvalue: props.value,\n\t\t\tformatter\n\t\t});\n\t\treturn {\n\t\t\t...Object.fromEntries(dateValues),\n\t\t\t...timeValues\n\t\t};\n\t}\n\treturn Object.fromEntries(dateValues);\n}\nfunction initializeTimeSegmentValues(granularity) {\n\treturn Object.fromEntries(TIME_SEGMENT_PARTS.map((part) => {\n\t\tif (part === \"dayPeriod\") return [part, \"AM\"];\n\t\treturn [part, null];\n\t}).filter(([key]) => {\n\t\tif (key === \"literal\" || key === null) return false;\n\t\tif (granularity === \"minute\" && key === \"second\") return false;\n\t\tif (granularity === \"hour\" && (key === \"second\" || key === \"minute\")) return false;\n\t\telse return true;\n\t}));\n}\nfunction initializeSegmentValues(granularity) {\n\tconst initialParts = EDITABLE_SEGMENT_PARTS.map((part) => {\n\t\tif (part === \"dayPeriod\") return [part, \"AM\"];\n\t\treturn [part, null];\n\t}).filter(([key]) => {\n\t\tif (key === \"literal\" || key === null) return false;\n\t\tif (granularity === \"minute\" && key === \"second\") return false;\n\t\tif (granularity === \"hour\" && (key === \"second\" || key === \"minute\")) return false;\n\t\tif (granularity === \"day\") return !calendarDateTimeGranularities.includes(key) && key !== \"dayPeriod\";\n\t\telse return true;\n\t});\n\treturn Object.fromEntries(initialParts);\n}\nfunction createContentObj(props) {\n\tconst { segmentValues, formatter, locale } = props;\n\tfunction getPartContent(part) {\n\t\tif (\"hour\" in segmentValues) {\n\t\t\tconst value = segmentValues[part];\n\t\t\tif (value !== null) {\n\t\t\t\tif (part === \"day\") return formatter.part(props.dateRef.set({\n\t\t\t\t\t[part]: value,\n\t\t\t\t\tmonth: segmentValues.month ?? 1\n\t\t\t\t}), part, { hourCycle: normalizeHourCycle(props.hourCycle) });\n\t\t\t\treturn formatter.part(props.dateRef.set({ [part]: value }), part, { hourCycle: normalizeHourCycle(props.hourCycle) });\n\t\t\t} else return getPlaceholder(part, \"\", locale.value);\n\t\t} else {\n\t\t\tif (isDateSegmentPart(part)) {\n\t\t\t\tconst value = segmentValues[part];\n\t\t\t\tif (value !== null) {\n\t\t\t\t\tif (part === \"day\") return formatter.part(props.dateRef.set({\n\t\t\t\t\t\t[part]: value,\n\t\t\t\t\t\tmonth: segmentValues.month ?? 1\n\t\t\t\t\t}), part);\n\t\t\t\t\treturn formatter.part(props.dateRef.set({ [part]: value }), part);\n\t\t\t\t} else return getPlaceholder(part, \"\", locale.value);\n\t\t\t}\n\t\t\treturn \"\";\n\t\t}\n\t}\n\tconst content = Object.keys(segmentValues).reduce((obj, part) => {\n\t\tif (!isSegmentPart(part)) return obj;\n\t\tif (\"hour\" in segmentValues && part === \"dayPeriod\") {\n\t\t\tconst value = segmentValues[part];\n\t\t\tif (value !== null) obj[part] = value;\n\t\t\telse obj[part] = getPlaceholder(part, \"AM\", locale.value);\n\t\t} else obj[part] = getPartContent(part);\n\t\treturn obj;\n\t}, {});\n\treturn content;\n}\nfunction createContentArr(props) {\n\tconst { granularity, formatter, contentObj, hideTimeZone, hourCycle, isTimeValue } = props;\n\tconst parts = formatter.toParts(props.dateRef, getOptsByGranularity(granularity, hourCycle, isTimeValue));\n\tconst segmentContentArr = parts.map((part) => {\n\t\tconst defaultParts = [\n\t\t\t\"literal\",\n\t\t\t\"timeZoneName\",\n\t\t\tnull\n\t\t];\n\t\tif (defaultParts.includes(part.type) || !isSegmentPart(part.type)) return {\n\t\t\tpart: part.type,\n\t\t\tvalue: part.value\n\t\t};\n\t\treturn {\n\t\t\tpart: part.type,\n\t\t\tvalue: contentObj[part.type]\n\t\t};\n\t}).filter((segment) => {\n\t\tif (segment.part === null || segment.value === null) return false;\n\t\tif (segment.part === \"timeZoneName\" && (!isZonedDateTime(props.dateRef) || hideTimeZone)) return false;\n\t\tif ((!isZonedDateTime(props.dateRef) || hideTimeZone) && segment.part === \"literal\" && [\"[\", \"]\"].includes(segment.value.trim())) return false;\n\t\treturn true;\n\t});\n\treturn segmentContentArr;\n}\nfunction createContent(props) {\n\tconst contentObj = createContentObj(props);\n\tconst contentArr = createContentArr({\n\t\tcontentObj,\n\t\t...props\n\t});\n\treturn {\n\t\tobj: contentObj,\n\t\tarr: contentArr\n\t};\n}\n\n//#endregion\nexport { createContent, initializeSegmentValues, initializeTimeSegmentValues, syncSegmentValues, syncTimeSegmentValues };\n//# sourceMappingURL=parser.js.map","import { useKbd } from \"../shared/useKbd.js\";\n\n//#region src/shared/date/segment.ts\nfunction isSegmentNavigationKey(key) {\n\tconst kbd = useKbd();\n\tif (key === kbd.ARROW_RIGHT || key === kbd.ARROW_LEFT) return true;\n\treturn false;\n}\nfunction isNumberString(value) {\n\tif (Number.isNaN(Number.parseInt(value))) return false;\n\treturn true;\n}\nfunction isAcceptableSegmentKey(key) {\n\tconst kbd = useKbd();\n\tconst acceptableSegmentKeys = [\n\t\tkbd.ENTER,\n\t\tkbd.ARROW_UP,\n\t\tkbd.ARROW_DOWN,\n\t\tkbd.ARROW_LEFT,\n\t\tkbd.ARROW_RIGHT,\n\t\tkbd.BACKSPACE,\n\t\tkbd.SPACE,\n\t\t\"a\",\n\t\t\"A\",\n\t\t\"p\",\n\t\t\"P\"\n\t];\n\tif (acceptableSegmentKeys.includes(key)) return true;\n\tif (isNumberString(key)) return true;\n\treturn false;\n}\nfunction getSegmentElements(parentElement) {\n\treturn Array.from(parentElement.querySelectorAll(\"[data-reka-date-field-segment]\")).filter((item) => item.getAttribute(\"data-reka-date-field-segment\") !== \"literal\");\n}\nfunction getTimeFieldSegmentElements(parentElement) {\n\treturn Array.from(parentElement.querySelectorAll(\"[data-reka-time-field-segment]\")).filter((item) => item.getAttribute(\"data-reka-time-field-segment\") !== \"literal\");\n}\n\n//#endregion\nexport { getSegmentElements, getTimeFieldSegmentElements, isAcceptableSegmentKey, isNumberString, isSegmentNavigationKey };\n//# sourceMappingURL=segment.js.map","import { snapValueToStep } from \"../shared/clamp.js\";\nimport { getDaysInMonth, toDate } from \"./comparators.js\";\nimport { useKbd } from \"../shared/useKbd.js\";\nimport { isAcceptableSegmentKey, isNumberString, isSegmentNavigationKey } from \"./segment.js\";\nimport { computed } from \"vue\";\nimport { DateFormatter } from \"@internationalized/date\";\n\n//#region src/shared/date/useDateField.ts\nfunction commonSegmentAttrs(props) {\n\treturn {\n\t\trole: \"spinbutton\",\n\t\tcontenteditable: true,\n\t\ttabindex: props.disabled ? void 0 : 0,\n\t\tspellcheck: false,\n\t\tinputmode: \"numeric\",\n\t\tautocorrect: \"off\",\n\t\tenterkeyhint: \"next\",\n\t\tstyle: \"caret-color: transparent;\"\n\t};\n}\nfunction daySegmentAttrs(props) {\n\tconst { segmentValues, placeholder } = props;\n\tconst isEmpty = segmentValues.day === null;\n\tconst dateFields = {};\n\tif (segmentValues.day) dateFields.day = segmentValues.day;\n\tif (segmentValues.month) dateFields.month = segmentValues.month;\n\tconst date = Object.keys(dateFields).length > 0 ? placeholder.set(dateFields) : placeholder;\n\tconst valueNow = date.day;\n\tconst valueMin = 1;\n\tconst valueMax = getDaysInMonth(date);\n\tconst valueText = isEmpty ? \"Empty\" : `${valueNow}`;\n\treturn {\n\t\t...commonSegmentAttrs(props),\n\t\t\"aria-label\": \"day,\",\n\t\t\"aria-valuemin\": valueMin,\n\t\t\"aria-valuemax\": valueMax,\n\t\t\"aria-valuenow\": valueNow,\n\t\t\"aria-valuetext\": valueText,\n\t\t\"data-placeholder\": isEmpty ? \"\" : void 0\n\t};\n}\nfunction monthSegmentAttrs(props) {\n\tconst { segmentValues, placeholder, formatter } = props;\n\tconst isEmpty = segmentValues.month === null;\n\tconst date = segmentValues.month ? placeholder.set({ month: segmentValues.month }) : placeholder;\n\tconst valueNow = date.month;\n\tconst valueMin = 1;\n\tconst valueMax = 12;\n\tconst valueText = isEmpty ? \"Empty\" : `${valueNow} - ${formatter.fullMonth(toDate(date))}`;\n\treturn {\n\t\t...commonSegmentAttrs(props),\n\t\t\"aria-label\": \"month, \",\n\t\t\"contenteditable\": true,\n\t\t\"aria-valuemin\": valueMin,\n\t\t\"aria-valuemax\": valueMax,\n\t\t\"aria-valuenow\": valueNow,\n\t\t\"aria-valuetext\": valueText,\n\t\t\"data-placeholder\": isEmpty ? \"\" : void 0\n\t};\n}\nfunction yearSegmentAttrs(props) {\n\tconst { segmentValues, placeholder } = props;\n\tconst isEmpty = segmentValues.year === null;\n\tconst date = segmentValues.year ? placeholder.set({ year: segmentValues.year }) : placeholder;\n\tconst valueMin = 1;\n\tconst valueMax = 9999;\n\tconst valueNow = date.year;\n\tconst valueText = isEmpty ? \"Empty\" : `${valueNow}`;\n\treturn {\n\t\t...commonSegmentAttrs(props),\n\t\t\"aria-label\": \"year, \",\n\t\t\"aria-valuemin\": valueMin,\n\t\t\"aria-valuemax\": valueMax,\n\t\t\"aria-valuenow\": valueNow,\n\t\t\"aria-valuetext\": valueText,\n\t\t\"data-placeholder\": isEmpty ? \"\" : void 0\n\t};\n}\nfunction hourSegmentAttrs(props) {\n\tconst { segmentValues, hourCycle, placeholder } = props;\n\tif (!(\"hour\" in segmentValues) || !(\"hour\" in placeholder)) return {};\n\tconst isEmpty = segmentValues.hour === null;\n\tconst date = segmentValues.hour ? placeholder.set({ hour: segmentValues.hour }) : placeholder;\n\tconst valueMin = hourCycle === 12 ? 1 : 0;\n\tconst valueMax = hourCycle === 12 ? 12 : 23;\n\tconst valueNow = date.hour;\n\tconst valueText = isEmpty ? \"Empty\" : `${valueNow} ${segmentValues.dayPeriod ?? \"\"}`;\n\treturn {\n\t\t...commonSegmentAttrs(props),\n\t\t\"aria-label\": \"hour, \",\n\t\t\"aria-valuemin\": valueMin,\n\t\t\"aria-valuemax\": valueMax,\n\t\t\"aria-valuenow\": valueNow,\n\t\t\"aria-valuetext\": valueText,\n\t\t\"data-placeholder\": isEmpty ? \"\" : void 0\n\t};\n}\nfunction minuteSegmentAttrs(props) {\n\tconst { segmentValues, placeholder } = props;\n\tif (!(\"minute\" in segmentValues) || !(\"minute\" in placeholder)) return {};\n\tconst isEmpty = segmentValues.minute === null;\n\tconst date = segmentValues.minute ? placeholder.set({ minute: segmentValues.minute }) : placeholder;\n\tconst valueNow = date.minute;\n\tconst valueMin = 0;\n\tconst valueMax = 59;\n\tconst valueText = isEmpty ? \"Empty\" : `${valueNow}`;\n\treturn {\n\t\t...commonSegmentAttrs(props),\n\t\t\"aria-label\": \"minute, \",\n\t\t\"aria-valuemin\": valueMin,\n\t\t\"aria-valuemax\": valueMax,\n\t\t\"aria-valuenow\": valueNow,\n\t\t\"aria-valuetext\": valueText,\n\t\t\"data-placeholder\": isEmpty ? \"\" : void 0\n\t};\n}\nfunction secondSegmentAttrs(props) {\n\tconst { segmentValues, placeholder } = props;\n\tif (!(\"second\" in segmentValues) || !(\"second\" in placeholder)) return {};\n\tconst isEmpty = segmentValues.second === null;\n\tconst date = segmentValues.second ? placeholder.set({ second: segmentValues.second }) : placeholder;\n\tconst valueNow = date.second;\n\tconst valueMin = 0;\n\tconst valueMax = 59;\n\tconst valueText = isEmpty ? \"Empty\" : `${valueNow}`;\n\treturn {\n\t\t...commonSegmentAttrs(props),\n\t\t\"aria-label\": \"second, \",\n\t\t\"aria-valuemin\": valueMin,\n\t\t\"aria-valuemax\": valueMax,\n\t\t\"aria-valuenow\": valueNow,\n\t\t\"aria-valuetext\": valueText,\n\t\t\"data-placeholder\": isEmpty ? \"\" : void 0\n\t};\n}\nfunction dayPeriodSegmentAttrs(props) {\n\tconst { segmentValues } = props;\n\tif (!(\"dayPeriod\" in segmentValues)) return {};\n\tconst valueMin = 0;\n\tconst valueMax = 12;\n\tconst valueNow = segmentValues.hour ? segmentValues.hour > 12 ? segmentValues.hour - 12 : segmentValues.hour : 0;\n\tconst valueText = segmentValues.dayPeriod ?? \"AM\";\n\treturn {\n\t\t...commonSegmentAttrs(props),\n\t\t\"inputmode\": \"text\",\n\t\t\"aria-label\": \"AM/PM\",\n\t\t\"aria-valuemin\": valueMin,\n\t\t\"aria-valuemax\": valueMax,\n\t\t\"aria-valuenow\": valueNow,\n\t\t\"aria-valuetext\": valueText\n\t};\n}\nfunction literalSegmentAttrs(_props) {\n\treturn {\n\t\t\"aria-hidden\": true,\n\t\t\"data-segment\": \"literal\"\n\t};\n}\nfunction timeZoneSegmentAttrs(props) {\n\treturn {\n\t\t\"role\": \"textbox\",\n\t\t\"aria-label\": \"timezone, \",\n\t\t\"data-readonly\": true,\n\t\t\"data-segment\": \"timeZoneName\",\n\t\t\"tabindex\": props.disabled ? void 0 : 0,\n\t\t\"style\": \"caret-color: transparent;\"\n\t};\n}\nfunction eraSegmentAttrs(props) {\n\tconst { segmentValues, placeholder } = props;\n\tconst valueMin = 0;\n\tconst valueMax = 0;\n\tconst valueNow = 0;\n\tconst valueText = \"era\" in segmentValues ? segmentValues.era : placeholder.era;\n\treturn {\n\t\t...commonSegmentAttrs(props),\n\t\t\"aria-label\": \"era\",\n\t\t\"aria-valuemin\": valueMin,\n\t\t\"aria-valuemax\": valueMax,\n\t\t\"aria-valuenow\": valueNow,\n\t\t\"aria-valuetext\": valueText\n\t};\n}\nconst segmentBuilders = {\n\tday: { attrs: daySegmentAttrs },\n\tmonth: { attrs: monthSegmentAttrs },\n\tyear: { attrs: yearSegmentAttrs },\n\thour: { attrs: hourSegmentAttrs },\n\tminute: { attrs: minuteSegmentAttrs },\n\tsecond: { attrs: secondSegmentAttrs },\n\tdayPeriod: { attrs: dayPeriodSegmentAttrs },\n\tliteral: { attrs: literalSegmentAttrs },\n\ttimeZoneName: { attrs: timeZoneSegmentAttrs },\n\tera: { attrs: eraSegmentAttrs }\n};\nfunction useDateField(props) {\n\tconst kbd = useKbd();\n\tfunction minuteSecondIncrementation({ e, part, dateRef, prevValue }) {\n\t\tconst step = props.step.value[part] ?? 1;\n\t\tconst sign = e.key === kbd.ARROW_UP ? step : -step;\n\t\tconst min = 0;\n\t\tconst max = 59;\n\t\tif (prevValue === null) return sign > 0 ? min : max;\n\t\tconst cycleArgs = [part, sign];\n\t\treturn dateRef.set({ [part]: prevValue }).cycle(...cycleArgs)[part];\n\t}\n\tfunction deleteValue(prevValue) {\n\t\tprops.hasLeftFocus.value = false;\n\t\tif (prevValue === null) return prevValue;\n\t\tconst str = prevValue.toString();\n\t\tif (str.length === 1) {\n\t\t\tprops.modelValue.value = void 0;\n\t\t\treturn null;\n\t\t}\n\t\treturn Number.parseInt(str.slice(0, -1));\n\t}\n\tfunction dateTimeValueIncrementation({ e, part, dateRef, prevValue }) {\n\t\tconst step = props.step.value[part] ?? 1;\n\t\tconst sign = e.key === kbd.ARROW_UP ? step : -step;\n\t\tif (prevValue === null) return dateRef[part];\n\t\tif (part === \"hour\" && \"hour\" in dateRef) {\n\t\t\tconst cycleArgs$1 = [part, sign];\n\t\t\treturn dateRef.set({ [part]: prevValue }).cycle(...cycleArgs$1)[part];\n\t\t}\n\t\tconst cycleArgs = [part, sign];\n\t\tif (part === \"day\") return dateRef.set({\n\t\t\t[part]: prevValue,\n\t\t\tmonth: props.segmentValues.value.month ?? 1\n\t\t}).cycle(...cycleArgs)[part];\n\t\treturn dateRef.set({ [part]: prevValue }).cycle(...cycleArgs)[part];\n\t}\n\tfunction updateDayOrMonth(max, num, prev) {\n\t\tlet moveToNext = false;\n\t\tconst maxStart = Math.floor(max / 10);\n\t\t/**\n\t\t* If the user has left the segment, we want to reset the\n\t\t* `prev` value so that we can start the segment over again\n\t\t* when the user types a number.\n\t\t*/\n\t\tif (props.hasLeftFocus.value) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprev = null;\n\t\t}\n\t\tif (prev === null) {\n\t\t\t/**\n\t\t\t* If the user types a 0 as the first number, we want\n\t\t\t* to keep track of that so that when they type the next\n\t\t\t* number, we can move to the next segment.\n\t\t\t*/\n\t\t\tif (num === 0) {\n\t\t\t\tprops.lastKeyZero.value = true;\n\t\t\t\treturn {\n\t\t\t\t\tvalue: null,\n\t\t\t\t\tmoveToNext\n\t\t\t\t};\n\t\t\t}\n\t\t\t/**\n\t\t\t* If the last key was a 0, or if the first number is\n\t\t\t* greater than the max start digit (0-3 in most cases), then\n\t\t\t* we want to move to the next segment, since it's not possible\n\t\t\t* to continue typing a valid number in this segment.\n\t\t\t*/\n\t\t\tif (props.lastKeyZero.value || num > maxStart) moveToNext = true;\n\t\t\tprops.lastKeyZero.value = false;\n\t\t\t/**\n\t\t\t* If none of the above conditions are met, then we can just\n\t\t\t* return the number as the segment value and continue typing\n\t\t\t* in this segment.\n\t\t\t*/\n\t\t\treturn {\n\t\t\t\tvalue: num,\n\t\t\t\tmoveToNext\n\t\t\t};\n\t\t}\n\t\t/**\n\t\t* If the number of digits is 2, or if the total with the existing digit\n\t\t* and the pressed digit is greater than the maximum value for this\n\t\t* month, then we will reset the segment as if the user had pressed the\n\t\t* backspace key and then typed the number.\n\t\t*/\n\t\tconst digits = prev.toString().length;\n\t\tconst total = Number.parseInt(prev.toString() + num.toString());\n\t\t/**\n\t\t* If the number of digits is 2, or if the total with the existing digit\n\t\t* and the pressed digit is greater than the maximum value for this\n\t\t* month, then we will reset the segment as if the user had pressed the\n\t\t* backspace key and then typed the number.\n\t\t*/\n\t\tif (digits === 2 || total > max) {\n\t\t\t/**\n\t\t\t* As we're doing elsewhere, we're checking if the number is greater\n\t\t\t* than the max start digit (0-3 in most months), and if so, we're\n\t\t\t* going to move to the next segment.\n\t\t\t*/\n\t\t\tif (num > maxStart || total > max) moveToNext = true;\n\t\t\treturn {\n\t\t\t\tvalue: num,\n\t\t\t\tmoveToNext\n\t\t\t};\n\t\t}\n\t\tmoveToNext = true;\n\t\treturn {\n\t\t\tvalue: total,\n\t\t\tmoveToNext\n\t\t};\n\t}\n\tfunction updateMinuteOrSecond(num, prev) {\n\t\tconst max = 59;\n\t\tlet moveToNext = false;\n\t\tconst maxStart = Math.floor(max / 10);\n\t\t/**\n\t\t* If the user has left the segment, we want to reset the\n\t\t* `prev` value so that we can start the segment over again\n\t\t* when the user types a number.\n\t\t*/\n\t\tif (props.hasLeftFocus.value) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprev = null;\n\t\t}\n\t\tif (prev === null) {\n\t\t\t/**\n\t\t\t* If the user types a 0 as the first number, we want\n\t\t\t* to keep track of that so that when they type the next\n\t\t\t* number, we can move to the next segment.\n\t\t\t*/\n\t\t\tif (num === 0) {\n\t\t\t\tprops.lastKeyZero.value = true;\n\t\t\t\treturn {\n\t\t\t\t\tvalue: 0,\n\t\t\t\t\tmoveToNext\n\t\t\t\t};\n\t\t\t}\n\t\t\t/**\n\t\t\t* If the last key was a 0, or if the first number is\n\t\t\t* greater than the max start digit (0-3 in most cases), then\n\t\t\t* we want to move to the next segment, since it's not possible\n\t\t\t* to continue typing a valid number in this segment.\n\t\t\t*/\n\t\t\tif (props.lastKeyZero.value || num > maxStart) moveToNext = true;\n\t\t\tprops.lastKeyZero.value = false;\n\t\t\t/**\n\t\t\t* If none of the above conditions are met, then we can just\n\t\t\t* return the number as the segment value and continue typing\n\t\t\t* in this segment.\n\t\t\t*/\n\t\t\treturn {\n\t\t\t\tvalue: num,\n\t\t\t\tmoveToNext\n\t\t\t};\n\t\t}\n\t\t/**\n\t\t* If the number of digits is 2, or if the total with the existing digit\n\t\t* and the pressed digit is greater than the maximum value for this\n\t\t* month, then we will reset the segment as if the user had pressed the\n\t\t* backspace key and then typed the number.\n\t\t*/\n\t\tconst digits = prev.toString().length;\n\t\tconst total = Number.parseInt(prev.toString() + num.toString());\n\t\t/**\n\t\t* If the number of digits is 2, or if the total with the existing digit\n\t\t* and the pressed digit is greater than the maximum value for this\n\t\t* month, then we will reset the segment as if the user had pressed the\n\t\t* backspace key and then typed the number.\n\t\t*/\n\t\tif (digits === 2 || total > max) {\n\t\t\t/**\n\t\t\t* As we're doing elsewhere, we're checking if the number is greater\n\t\t\t* than the max start digit (0-3 in most months), and if so, we're\n\t\t\t* going to move to the next segment.\n\t\t\t*/\n\t\t\tif (num > maxStart) moveToNext = true;\n\t\t\treturn {\n\t\t\t\tvalue: num,\n\t\t\t\tmoveToNext\n\t\t\t};\n\t\t}\n\t\tmoveToNext = true;\n\t\treturn {\n\t\t\tvalue: total,\n\t\t\tmoveToNext\n\t\t};\n\t}\n\tfunction updateHour(max, num, prev) {\n\t\tlet moveToNext = false;\n\t\tconst maxStart = Math.floor(max / 10);\n\t\t/**\n\t\t* If the user has left the segment, we want to reset the\n\t\t* `prev` value so that we can start the segment over again\n\t\t* when the user types a number.\n\t\t*/\n\t\tif (props.hasLeftFocus.value) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprev = null;\n\t\t}\n\t\tif (prev === null) {\n\t\t\t/**\n\t\t\t* If the user types a 0 as the first number, we want\n\t\t\t* to keep track of that so that when they type the next\n\t\t\t* number, we can move to the next segment.\n\t\t\t*/\n\t\t\tif (num === 0) {\n\t\t\t\tprops.lastKeyZero.value = true;\n\t\t\t\treturn {\n\t\t\t\t\tvalue: 0,\n\t\t\t\t\tmoveToNext\n\t\t\t\t};\n\t\t\t}\n\t\t\t/**\n\t\t\t* If the last key was a 0, or if the first number is\n\t\t\t* greater than the max start digit (0-3 in most cases), then\n\t\t\t* we want to move to the next segment, since it's not possible\n\t\t\t* to continue typing a valid number in this segment.\n\t\t\t*/\n\t\t\tif (props.lastKeyZero.value || num > maxStart) moveToNext = true;\n\t\t\tprops.lastKeyZero.value = false;\n\t\t\t/**\n\t\t\t* If none of the above conditions are met, then we can just\n\t\t\t* return the number as the segment value and continue typing\n\t\t\t* in this segment.\n\t\t\t*/\n\t\t\treturn {\n\t\t\t\tvalue: num,\n\t\t\t\tmoveToNext\n\t\t\t};\n\t\t}\n\t\t/**\n\t\t* If the number of digits is 2, or if the total with the existing digit\n\t\t* and the pressed digit is greater than the maximum value for this\n\t\t* month, then we will reset the segment as if the user had pressed the\n\t\t* backspace key and then typed the number.\n\t\t*/\n\t\tconst digits = prev.toString().length;\n\t\tconst total = Number.parseInt(prev.toString() + num.toString());\n\t\t/**\n\t\t* If the number of digits is 2, or if the total with the existing digit\n\t\t* and the pressed digit is greater than the maximum value for this\n\t\t* month, then we will reset the segment as if the user had pressed the\n\t\t* backspace key and then typed the number.\n\t\t*/\n\t\tif (digits === 2 || total > max) {\n\t\t\t/**\n\t\t\t* As we're doing elsewhere, we're checking if the number is greater\n\t\t\t* than the max start digit (0-3 in most months), and if so, we're\n\t\t\t* going to move to the next segment.\n\t\t\t*/\n\t\t\tif (num > maxStart) moveToNext = true;\n\t\t\treturn {\n\t\t\t\tvalue: num,\n\t\t\t\tmoveToNext\n\t\t\t};\n\t\t}\n\t\tmoveToNext = true;\n\t\treturn {\n\t\t\tvalue: total,\n\t\t\tmoveToNext\n\t\t};\n\t}\n\tfunction updateYear(num, prev) {\n\t\tlet moveToNext = false;\n\t\t/**\n\t\t* If the user has left the segment, we want to reset the\n\t\t* `prev` value so that we can start the segment over again\n\t\t* when the user types a number.\n\t\t*/\n\t\tif (props.hasLeftFocus.value) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprev = null;\n\t\t}\n\t\tif (prev === null) return {\n\t\t\tvalue: num === 0 ? 1 : num,\n\t\t\tmoveToNext\n\t\t};\n\t\tconst str = prev.toString() + num.toString();\n\t\tif (str.length > 4) return {\n\t\t\tvalue: num === 0 ? 1 : num,\n\t\t\tmoveToNext\n\t\t};\n\t\tif (str.length === 4) moveToNext = true;\n\t\tconst int = Number.parseInt(str);\n\t\treturn {\n\t\t\tvalue: int,\n\t\t\tmoveToNext\n\t\t};\n\t}\n\tconst attributes = computed(() => segmentBuilders[props.part]?.attrs({\n\t\tdisabled: props.disabled.value,\n\t\tplaceholder: props.placeholder.value,\n\t\thourCycle: props.hourCycle,\n\t\tsegmentValues: props.segmentValues.value,\n\t\tformatter: props.formatter\n\t}) ?? {});\n\tfunction handleDaySegmentKeydown(e) {\n\t\tif (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;\n\t\tconst prevValue = props.segmentValues.value.day;\n\t\tif (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {\n\t\t\tprops.segmentValues.value.day = dateTimeValueIncrementation({\n\t\t\t\te,\n\t\t\t\tpart: \"day\",\n\t\t\t\tdateRef: props.placeholder.value,\n\t\t\t\tprevValue\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tif (isNumberString(e.key)) {\n\t\t\tconst num = Number.parseInt(e.key);\n\t\t\tconst segmentMonthValue = props.segmentValues.value.month;\n\t\t\tconst daysInMonth = segmentMonthValue ? getDaysInMonth(props.placeholder.value.set({ month: segmentMonthValue })) : 31;\n\t\t\tconst { value, moveToNext } = updateDayOrMonth(daysInMonth, num, prevValue);\n\t\t\tprops.segmentValues.value.day = value;\n\t\t\tif (moveToNext) props.focusNext();\n\t\t}\n\t\tif (e.key === kbd.BACKSPACE) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprops.segmentValues.value.day = deleteValue(prevValue);\n\t\t}\n\t}\n\tfunction handleMonthSegmentKeydown(e) {\n\t\tif (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;\n\t\tconst prevValue = props.segmentValues.value.month;\n\t\tif (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {\n\t\t\tprops.segmentValues.value.month = dateTimeValueIncrementation({\n\t\t\t\te,\n\t\t\t\tpart: \"month\",\n\t\t\t\tdateRef: props.placeholder.value,\n\t\t\t\tprevValue\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tif (isNumberString(e.key)) {\n\t\t\tconst num = Number.parseInt(e.key);\n\t\t\tconst { value, moveToNext } = updateDayOrMonth(12, num, prevValue);\n\t\t\tprops.segmentValues.value.month = value;\n\t\t\tif (moveToNext) props.focusNext();\n\t\t}\n\t\tif (e.key === kbd.BACKSPACE) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprops.segmentValues.value.month = deleteValue(prevValue);\n\t\t}\n\t}\n\tfunction handleYearSegmentKeydown(e) {\n\t\tif (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;\n\t\tconst prevValue = props.segmentValues.value.year;\n\t\tif (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {\n\t\t\tprops.segmentValues.value.year = dateTimeValueIncrementation({\n\t\t\t\te,\n\t\t\t\tpart: \"year\",\n\t\t\t\tdateRef: props.placeholder.value,\n\t\t\t\tprevValue\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tif (isNumberString(e.key)) {\n\t\t\tconst num = Number.parseInt(e.key);\n\t\t\tconst { value, moveToNext } = updateYear(num, prevValue);\n\t\t\tprops.segmentValues.value.year = value;\n\t\t\tif (moveToNext) props.focusNext();\n\t\t}\n\t\tif (e.key === kbd.BACKSPACE) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprops.segmentValues.value.year = deleteValue(prevValue);\n\t\t}\n\t}\n\tfunction uses12HourFormat(locale) {\n\t\tconst hourCycle = new DateFormatter(locale, { hour: \"numeric\" }).resolvedOptions().hourCycle;\n\t\treturn hourCycle === \"h11\" || hourCycle === \"h12\";\n\t}\n\tfunction handleHourSegmentKeydown(e) {\n\t\tconst dateRef = props.placeholder.value;\n\t\tif (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !(\"hour\" in dateRef) || !(\"hour\" in props.segmentValues.value)) return;\n\t\tconst prevValue = props.segmentValues.value.hour;\n\t\tif (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) {\n\t\t\tconst newHour = dateTimeValueIncrementation({\n\t\t\t\te,\n\t\t\t\tpart: \"hour\",\n\t\t\t\tdateRef: props.placeholder.value,\n\t\t\t\tprevValue\n\t\t\t});\n\t\t\tprops.segmentValues.value.hour = newHour;\n\t\t\tif (\"dayPeriod\" in props.segmentValues.value && newHour !== null) props.segmentValues.value.dayPeriod = newHour >= 12 ? \"PM\" : \"AM\";\n\t\t\treturn;\n\t\t}\n\t\tif (isNumberString(e.key)) {\n\t\t\tconst num = Number.parseInt(e.key);\n\t\t\tconst is12Hour = props.hourCycle !== void 0 ? props.hourCycle === 12 : uses12HourFormat(props.formatter.getLocale());\n\t\t\tconst max = is12Hour ? 12 : 24;\n\t\t\tlet displayPrev = prevValue;\n\t\t\tif (is12Hour && prevValue !== null) displayPrev = prevValue === 0 ? 12 : prevValue > 12 ? prevValue - 12 : prevValue;\n\t\t\tconst { value, moveToNext } = updateHour(max, num, displayPrev);\n\t\t\tlet internalValue = value;\n\t\t\tif (is12Hour && value !== null) {\n\t\t\t\tconst period = props.segmentValues.value.dayPeriod || \"AM\";\n\t\t\t\tif (value === 12) internalValue = period === \"AM\" ? 0 : 12;\n\t\t\t\telse internalValue = period === \"PM\" ? value + 12 : value;\n\t\t\t}\n\t\t\tprops.segmentValues.value.hour = internalValue;\n\t\t\tif (moveToNext) props.focusNext();\n\t\t}\n\t\tif (e.key === kbd.BACKSPACE) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprops.segmentValues.value.hour = deleteValue(prevValue);\n\t\t}\n\t}\n\tfunction handleMinuteSegmentKeydown(e) {\n\t\tconst dateRef = props.placeholder.value;\n\t\tif (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !(\"minute\" in dateRef) || !(\"minute\" in props.segmentValues.value)) return;\n\t\tconst prevValue = props.segmentValues.value.minute;\n\t\tif (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) props.segmentValues.value.minute = minuteSecondIncrementation({\n\t\t\te,\n\t\t\tpart: \"minute\",\n\t\t\tdateRef: props.placeholder.value,\n\t\t\tprevValue\n\t\t});\n\t\tif (isNumberString(e.key)) {\n\t\t\tconst num = Number.parseInt(e.key);\n\t\t\tconst { value, moveToNext } = updateMinuteOrSecond(num, prevValue);\n\t\t\tprops.segmentValues.value.minute = value;\n\t\t\tif (moveToNext) props.focusNext();\n\t\t}\n\t\tif (e.key === kbd.BACKSPACE) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprops.segmentValues.value.minute = deleteValue(prevValue);\n\t\t}\n\t}\n\tfunction handleSecondSegmentKeydown(e) {\n\t\tconst dateRef = props.placeholder.value;\n\t\tif (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !(\"second\" in dateRef) || !(\"second\" in props.segmentValues.value)) return;\n\t\tconst prevValue = props.segmentValues.value.second;\n\t\tif (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) props.segmentValues.value.second = minuteSecondIncrementation({\n\t\t\te,\n\t\t\tpart: \"second\",\n\t\t\tdateRef: props.placeholder.value,\n\t\t\tprevValue\n\t\t});\n\t\tif (isNumberString(e.key)) {\n\t\t\tconst num = Number.parseInt(e.key);\n\t\t\tconst { value, moveToNext } = updateMinuteOrSecond(num, prevValue);\n\t\t\tprops.segmentValues.value.second = value;\n\t\t\tif (moveToNext) props.focusNext();\n\t\t}\n\t\tif (e.key === kbd.BACKSPACE) {\n\t\t\tprops.hasLeftFocus.value = false;\n\t\t\tprops.segmentValues.value.second = deleteValue(prevValue);\n\t\t}\n\t}\n\tfunction handleDayPeriodSegmentKeydown(e) {\n\t\tif ((!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) && e.key !== \"a\" && e.key !== \"p\" || !(\"hour\" in props.placeholder.value) || !(\"dayPeriod\" in props.segmentValues.value)) return;\n\t\tif (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) {\n\t\t\tif (props.segmentValues.value.dayPeriod === \"AM\") {\n\t\t\t\tprops.segmentValues.value.dayPeriod = \"PM\";\n\t\t\t\tprops.segmentValues.value.hour = props.segmentValues.value.hour + 12;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprops.segmentValues.value.dayPeriod = \"AM\";\n\t\t\tprops.segmentValues.value.hour = props.segmentValues.value.hour - 12;\n\t\t\treturn;\n\t\t}\n\t\tif ([\"a\", \"A\"].includes(e.key) && props.segmentValues.value.dayPeriod !== \"AM\") {\n\t\t\tprops.segmentValues.value.dayPeriod = \"AM\";\n\t\t\tprops.segmentValues.value.hour = props.segmentValues.value.hour - 12;\n\t\t\treturn;\n\t\t}\n\t\tif ([\"p\", \"P\"].includes(e.key) && props.segmentValues.value.dayPeriod !== \"PM\") {\n\t\t\tprops.segmentValues.value.dayPeriod = \"PM\";\n\t\t\tprops.segmentValues.value.hour = props.segmentValues.value.hour + 12;\n\t\t}\n\t}\n\tfunction handleSegmentClick(e) {\n\t\tconst disabled = props.disabled.value;\n\t\tif (disabled) e.preventDefault();\n\t}\n\tfunction handleSegmentKeydown(e) {\n\t\tconst disabled = props.disabled.value;\n\t\tconst readonly = props.readonly.value;\n\t\tif (disabled || readonly) return;\n\t\tif (e.key !== kbd.TAB) e.preventDefault();\n\t\tconst segmentKeydownHandlers = {\n\t\t\tday: handleDaySegmentKeydown,\n\t\t\tmonth: handleMonthSegmentKeydown,\n\t\t\tyear: handleYearSegmentKeydown,\n\t\t\thour: handleHourSegmentKeydown,\n\t\t\tminute: handleMinuteSegmentKeydown,\n\t\t\tsecond: handleSecondSegmentKeydown,\n\t\t\tdayPeriod: handleDayPeriodSegmentKeydown,\n\t\t\ttimeZoneName: () => {}\n\t\t};\n\t\tsegmentKeydownHandlers[props.part](e);\n\t\tif (![kbd.ARROW_LEFT, kbd.ARROW_RIGHT].includes(e.key) && e.key !== kbd.TAB && e.key !== kbd.SHIFT && isAcceptableSegmentKey(e.key)) {\n\t\t\tif (Object.values(props.segmentValues.value).every((item) => item !== null)) {\n\t\t\t\tconst updateObject = { ...props.segmentValues.value };\n\t\t\t\tconst dateRef = props.placeholder.value.set(updateObject);\n\t\t\t\tprops.modelValue.value = dateRef.copy();\n\t\t\t}\n\t\t}\n\t}\n\tfunction handleSegmentFocusOut() {\n\t\tif (!props.stepSnapping?.value) return;\n\t\tif (props.part === \"hour\" && \"hour\" in props.segmentValues.value && props.segmentValues.value.hour !== null && props.step.value.hour && props.step.value.hour > 1) {\n\t\t\tprops.segmentValues.value.hour = snapValueToStep(props.segmentValues.value.hour, 0, 23, props.step.value.hour);\n\t\t\tif (\"dayPeriod\" in props.segmentValues.value) {\n\t\t\t\tif (props.segmentValues.value.hour < 12) props.segmentValues.value.dayPeriod = \"AM\";\n\t\t\t\telse if (props.segmentValues.value.hour) props.segmentValues.value.dayPeriod = \"PM\";\n\t\t\t}\n\t\t} else if (props.part === \"minute\" && \"minute\" in props.segmentValues.value && props.segmentValues.value.minute !== null && props.step.value.minute && props.step.value.minute > 1) props.segmentValues.value.minute = snapValueToStep(props.segmentValues.value.minute, 0, 59, props.step.value.minute);\n\t\telse if (props.part === \"second\" && \"second\" in props.segmentValues.value && props.segmentValues.value.second !== null && props.step.value.second && props.step.value.second > 1) props.segmentValues.value.second = snapValueToStep(props.segmentValues.value.second, 0, 59, props.step.value.second);\n\t\tif (Object.values(props.segmentValues.value).every((item) => item !== null)) {\n\t\t\tconst dateRef = props.placeholder.value.set({ ...props.segmentValues.value });\n\t\t\tprops.modelValue.value = dateRef.copy();\n\t\t}\n\t}\n\treturn {\n\t\thandleSegmentClick,\n\t\thandleSegmentKeydown,\n\t\thandleSegmentFocusOut,\n\t\tattributes\n\t};\n}\n\n//#endregion\nexport { useDateField };\n//# sourceMappingURL=useDateField.js.map"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"mappings":";;;;;;;;;;;;AAyBA,SAAS,qBAAqB,OAAO,MAAM;CAC1C,IAAI,eAAe;CACnB,MAAM,aAAa,KAAK,UAAU;CAClC,MAAM,aAAa,WAAW,QAAQ,IAAI;CAC1C,MAAM,YAAY,cAAc,IAAI,WAAW,SAAS,aAAa;AACrE,KAAI,YAAY,GAAG;EAClB,MAAM,MAAM,MAAM;AAClB,iBAAe,KAAK,MAAM,eAAe,IAAI,GAAG;;AAEjD,QAAO;;;;;;;;;;;;;;;;AAgBR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eAAe,KAAK,YAAY,cAAc,SAAS,KAAK;IAC5D,eAAe,KAAK,YAAY,iBAAiB,KAAK,KAAK;IAC3D,UAAU,KAAK,YAAY,iBAAiB,OAAO,KAAK;IACxD,OAAO;KACN,UAAU;KACV,QAAQ;KACR,OAAO;KACP,QAAQ;KACR,SAAS;KACT,QAAQ;KACR,UAAU;KACV,MAAM;KACN,UAAU;KACV,YAAY;KACZ,UAAU;KACV,KAAK;KACL,MAAM;KACN;IACD,EAAE;IACF,SAAS,cAAc,CAAC,WAAW,KAAK,QAAQ,UAAU,CAAC,CAAC;IAC5D,GAAG;IACH,EAAE,GAAG;IACL;IACA;IACA;IACA;IACA;IACA,CAAC;;;CAGJ,CAAC;;;ACxDF,IAAM,qBAAqB;CAC1B;CACA;CACA;CACA;AACD,IAAM,qBAAqB;CAC1B;CACA;CACA;CACA;CACA;AACD,IAAM,6BAA6B,CAAC,WAAW,eAAe;AAC9D,IAAM,yBAAyB,CAAC,GAAG,oBAAoB,GAAG,mBAAmB;AACzC,CAAC,GAAG,mBAAmB;AACjC,CAAC,GAAG,wBAAwB,GAAG,2BAA2B,CACjC,QAAQ,SAAS,SAAS,UAAU;AACvF,SAAS,kBAAkB,MAAM;AAChC,QAAO,mBAAmB,SAAS,KAAK;;AAEzC,SAAS,cAAc,MAAM;AAC5B,QAAO,uBAAuB,SAAS,KAAK;;;;ACpB7C,IAAM,mBAAmB;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,IAAM,oBAAoB;CACzB;CACA;CACA;CACA;AACD,IAAM,eAAe;CACpB,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,MAAM;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,SAAS;EACR,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD,SAAS;EACR,MAAM;EACN,OAAO;EACP,KAAK;EACL;CACD;AACD,SAAS,kBAAkB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