@maggioli-design-system/magma 2.11.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -2
- package/CHANGELOG.md +38 -0
- package/README.md +9 -6
- package/agents/color.md +1 -0
- package/agents/mcp.md +5 -5
- package/agents/patterns/actions.md +4 -3
- package/agents/patterns/app-shell.md +70 -22
- package/agents/patterns/density.md +4 -3
- package/agents/patterns/previews/app-shell/back-office.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/back-office.html +2 -2
- package/agents/patterns/previews/app-shell/back-office.light.webp +0 -0
- package/agents/patterns/previews/app-shell/many-sections.html +1 -1
- package/agents/patterns/previews/app-shell/public-service.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/public-service.html +2 -2
- package/agents/patterns/previews/app-shell/public-service.light.webp +0 -0
- package/agents/patterns/previews/app-shell/section-menus.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/section-menus.html +68 -0
- package/agents/patterns/previews/app-shell/section-menus.light.webp +0 -0
- package/agents/patterns/previews/empty-state/not-found.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/not-found.html +2 -2
- package/agents/patterns/previews/empty-state/not-found.light.webp +0 -0
- package/agents/patterns/previews/item-list/queue-of-a-desk.dark.webp +0 -0
- package/agents/patterns/previews/item-list/queue-of-a-desk.light.webp +0 -0
- package/agents/patterns/previews/item-list/requests-of-an-office.dark.webp +0 -0
- package/agents/patterns/previews/item-list/requests-of-an-office.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/act-on-many.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/act-on-many.html +2 -2
- package/agents/patterns/previews/list-with-filters/act-on-many.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/find-and-open.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/find-and-open.html +2 -2
- package/agents/patterns/previews/list-with-filters/find-and-open.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/show-new-items.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/show-new-items.html +2 -2
- package/agents/patterns/previews/list-with-filters/show-new-items.light.webp +0 -0
- package/agents/patterns/previews/loading/first-load.dark.webp +0 -0
- package/agents/patterns/previews/loading/first-load.light.webp +0 -0
- package/agents/patterns/previews/loading/keep-while-reloading.dark.webp +0 -0
- package/agents/patterns/previews/loading/keep-while-reloading.light.webp +0 -0
- package/agents/patterns/previews/loading/long-load-measured.dark.webp +0 -0
- package/agents/patterns/previews/loading/long-load-measured.light.webp +0 -0
- package/agents/patterns/previews/loading/long-load.dark.webp +0 -0
- package/agents/patterns/previews/loading/long-load.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-elsewhere.light.webp +0 -0
- package/agents/patterns/previews/message-placement/app-failed.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/app-failed.html +2 -2
- package/agents/patterns/previews/message-placement/app-failed.light.webp +0 -0
- package/agents/patterns/previews/record-detail/ask-for-words.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/ask-for-words.html +2 -2
- package/agents/patterns/previews/record-detail/ask-for-words.light.webp +0 -0
- package/agents/patterns/previews/record-detail/edit-data.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/edit-data.html +2 -2
- package/agents/patterns/previews/record-detail/edit-data.light.webp +0 -0
- package/agents/patterns/previews/record-detail/read-the-data.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/read-the-data.html +2 -2
- package/agents/patterns/previews/record-detail/read-the-data.light.webp +0 -0
- package/agents/patterns/previews/record-detail/record-changed.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/record-changed.html +2 -2
- package/agents/patterns/previews/record-detail/record-changed.light.webp +0 -0
- package/agents/patterns/previews/record-detail/run-at-once.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/run-at-once.html +2 -2
- package/agents/patterns/previews/record-detail/run-at-once.light.webp +0 -0
- package/agents/patterns/previews/record-detail/work-on-it.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/work-on-it.html +2 -2
- package/agents/patterns/previews/record-detail/work-on-it.light.webp +0 -0
- package/agents/patterns/previews/surfaces/band.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/band.html +2 -2
- package/agents/patterns/previews/surfaces/band.light.webp +0 -0
- package/agents/patterns/previews/surfaces/canvas.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/canvas.html +2 -2
- package/agents/patterns/previews/surfaces/canvas.light.webp +0 -0
- package/agents/patterns/previews/titles/page.dark.webp +0 -0
- package/agents/patterns/previews/widths/page.dark.webp +0 -0
- package/agents/patterns/previews/widths/page.html +2 -2
- package/agents/patterns/previews/widths/page.light.webp +0 -0
- package/agents/patterns/rhythm.md +2 -1
- package/agents/patterns/surfaces.md +4 -3
- package/agents/patterns/titles.md +4 -3
- package/agents/patterns/widths.md +4 -3
- package/agents/patterns.md +8 -7
- package/agents/theming.md +7 -0
- package/dist/cjs/{aria-CzO5Rp1y.js → aria-r1anAHBr.js} +12 -0
- package/dist/cjs/{floating-controller-DaFymQCT.js → floating-controller-B4YhrWm8.js} +1 -1
- package/dist/cjs/{index-Bg68W-da.js → index-Csgx951d.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-CaR39iYg.js → locale-DgMC52AD.js} +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/mds-badge.cjs.entry.js +2 -2
- package/dist/cjs/mds-banner_3.cjs.entry.js +5 -5
- package/dist/cjs/mds-book.cjs.entry.js +2 -2
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +6 -4
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +78 -16
- package/dist/cjs/mds-calendar_2.cjs.entry.js +8 -8
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +2 -2
- package/dist/cjs/mds-details.cjs.entry.js +2 -2
- package/dist/cjs/mds-dropdown.cjs.entry.js +6 -6
- package/dist/cjs/mds-emoji.cjs.entry.js +2 -2
- package/dist/cjs/mds-entity.cjs.entry.js +2 -2
- package/dist/cjs/mds-file-preview.cjs.entry.js +5 -5
- package/dist/cjs/mds-file.cjs.entry.js +5 -5
- package/dist/cjs/mds-filter-item.cjs.entry.js +5 -5
- package/dist/cjs/mds-filter.cjs.entry.js +4 -4
- package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +3 -3
- package/dist/cjs/mds-hr.cjs.entry.js +2 -2
- package/dist/cjs/mds-img.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-date.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-select.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +5 -5
- package/dist/cjs/mds-input-upload.cjs.entry.js +7 -7
- package/dist/cjs/mds-input.cjs.entry.js +8 -8
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +3 -3
- package/dist/cjs/mds-keyboard.cjs.entry.js +4 -4
- package/dist/cjs/mds-kpi-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +3 -3
- package/dist/cjs/mds-link.cjs.entry.js +5 -5
- package/dist/cjs/mds-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +3 -3
- package/dist/cjs/mds-modal.cjs.entry.js +34 -15
- package/dist/cjs/mds-note.cjs.entry.js +4 -4
- package/dist/cjs/mds-notification.cjs.entry.js +3 -3
- package/dist/cjs/mds-paginator-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator.cjs.entry.js +4 -4
- package/dist/cjs/mds-policy-ai.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-animation.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-language.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-mode.cjs.entry.js +22 -13
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-pref-theme.cjs.entry.js +31 -8
- package/dist/cjs/mds-pref.cjs.entry.js +3 -25
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +4 -4
- package/dist/cjs/mds-quote.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +5 -5
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-status-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-tab-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-tab_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-row.cjs.entry.js +4 -4
- package/dist/cjs/mds-table.cjs.entry.js +4 -4
- package/dist/cjs/mds-text.cjs.entry.js +2 -2
- package/dist/cjs/mds-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast.cjs.entry.js +3 -3
- package/dist/cjs/mds-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/mds-tree-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-tree.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +4 -4
- package/dist/cjs/mds-usage.cjs.entry.js +4 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
- package/dist/cjs/mds-zero.cjs.entry.js +3 -3
- package/dist/cjs/{preference-CQQ3eb9W.js → preference-DhNxLZ4R.js} +20 -0
- package/dist/collection/common/aria.js +12 -1
- package/dist/collection/common/preference.js +19 -1
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +1 -1
- package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +2 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +2 -2
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +2 -2
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/documentation.json +1 -1
- package/dist/collection/components/mds-badge/mds-badge.css +15 -10
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +2 -2
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +1 -1
- package/dist/collection/components/mds-book/AGENTS.md +1 -1
- package/dist/collection/components/mds-book/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +2 -2
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +2 -2
- package/dist/collection/components/mds-button/AGENTS.md +9 -4
- package/dist/collection/components/mds-button/documentation.json +100 -7
- package/dist/collection/components/mds-button/examples.md +73 -0
- package/dist/collection/components/mds-button/mds-button.css +122 -14
- package/dist/collection/components/mds-button/mds-button.js +139 -13
- package/dist/collection/components/mds-button/mistakes.md +35 -0
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +7 -2
- package/dist/collection/components/mds-button-dropdown/documentation.json +97 -4
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +69 -3
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +1 -1
- package/dist/collection/components/mds-button-group/mds-button-group.js +1 -1
- package/dist/collection/components/mds-calendar/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar/documentation.json +2 -2
- package/dist/collection/components/mds-calendar/mds-calendar.js +5 -5
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +2 -2
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +1 -1
- package/dist/collection/components/mds-card/mds-card.js +1 -1
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +1 -1
- package/dist/collection/components/mds-card-content/mds-card-content.js +1 -1
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +1 -1
- package/dist/collection/components/mds-card-footer/mds-card-footer.js +1 -1
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +1 -1
- package/dist/collection/components/mds-card-header/mds-card-header.js +1 -1
- package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-media/documentation.json +1 -1
- package/dist/collection/components/mds-card-media/mds-card-media.js +1 -1
- package/dist/collection/components/mds-chip/AGENTS.md +1 -1
- package/dist/collection/components/mds-chip/documentation.json +2 -2
- package/dist/collection/components/mds-chip/mds-chip.css +3 -2
- package/dist/collection/components/mds-chip/mds-chip.js +1 -1
- package/dist/collection/components/mds-details/AGENTS.md +1 -1
- package/dist/collection/components/mds-details/documentation.json +1 -1
- package/dist/collection/components/mds-details/mds-details.js +1 -1
- package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +1 -1
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +12 -14
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +2 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +1 -1
- package/dist/collection/components/mds-emoji/mds-emoji.js +1 -1
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +2 -2
- package/dist/collection/components/mds-entity/mds-entity.js +1 -1
- package/dist/collection/components/mds-file/AGENTS.md +1 -1
- package/dist/collection/components/mds-file/documentation.json +1 -1
- package/dist/collection/components/mds-file/mds-file.css +3 -2
- package/dist/collection/components/mds-file/mds-file.js +1 -1
- package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +2 -2
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +3 -2
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +2 -2
- package/dist/collection/components/mds-filter/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter/documentation.json +1 -1
- package/dist/collection/components/mds-filter/mds-filter.css +3 -2
- package/dist/collection/components/mds-filter/mds-filter.js +1 -1
- package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter-item/documentation.json +1 -1
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +3 -2
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
- package/dist/collection/components/mds-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-header/documentation.json +2 -2
- package/dist/collection/components/mds-header/mds-header.css +3 -2
- package/dist/collection/components/mds-header/mds-header.js +1 -1
- package/dist/collection/components/mds-header-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-header-bar/documentation.json +2 -2
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +1 -1
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +1 -1
- package/dist/collection/components/mds-help/mds-help.js +1 -1
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +2 -2
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +1 -1
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +1 -1
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +1 -1
- package/dist/collection/components/mds-icon/documentation.json +1 -1
- package/dist/collection/components/mds-icon/mds-icon.js +1 -1
- package/dist/collection/components/mds-img/AGENTS.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +2 -2
- package/dist/collection/components/mds-input/AGENTS.md +1 -1
- package/dist/collection/components/mds-input/documentation.json +2 -2
- package/dist/collection/components/mds-input/mds-input.css +16 -8
- package/dist/collection/components/mds-input/mds-input.js +3 -3
- package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date/documentation.json +2 -2
- package/dist/collection/components/mds-input-date/mds-input-date.css +3 -2
- package/dist/collection/components/mds-input-date/mds-input-date.js +2 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +2 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +3 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +2 -2
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +1 -1
- package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-field/documentation.json +1 -1
- package/dist/collection/components/mds-input-field/mds-input-field.js +1 -1
- package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +2 -2
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/mds-input-range.css +3 -2
- package/dist/collection/components/mds-input-range/mds-input-range.js +1 -1
- package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-select/documentation.json +1 -1
- package/dist/collection/components/mds-input-select/mds-input-select.css +15 -11
- package/dist/collection/components/mds-input-select/mds-input-select.js +2 -2
- package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-switch/documentation.json +1 -1
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +3 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +1 -1
- package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +1 -1
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +2 -2
- package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-upload/documentation.json +2 -2
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +5 -5
- package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard/documentation.json +2 -2
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +3 -2
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +1 -1
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +1 -1
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +9 -6
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +1 -1
- package/dist/collection/components/mds-label/AGENTS.md +1 -1
- package/dist/collection/components/mds-label/documentation.json +2 -2
- package/dist/collection/components/mds-label/mds-label.css +3 -2
- package/dist/collection/components/mds-link/AGENTS.md +1 -1
- package/dist/collection/components/mds-link/documentation.json +1 -1
- package/dist/collection/components/mds-link/mds-link.js +3 -3
- package/dist/collection/components/mds-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-list/documentation.json +1 -1
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
- package/dist/collection/components/mds-mention/AGENTS.md +1 -1
- package/dist/collection/components/mds-mention/documentation.json +2 -2
- package/dist/collection/components/mds-mention/mds-mention.js +1 -1
- package/dist/collection/components/mds-modal/AGENTS.md +3 -3
- package/dist/collection/components/mds-modal/documentation.json +4 -4
- package/dist/collection/components/mds-modal/mds-modal.css +3 -2
- package/dist/collection/components/mds-modal/mds-modal.js +32 -13
- package/dist/collection/components/mds-note/AGENTS.md +1 -1
- package/dist/collection/components/mds-note/documentation.json +2 -2
- package/dist/collection/components/mds-note/mds-note.css +3 -2
- package/dist/collection/components/mds-note/mds-note.js +1 -1
- package/dist/collection/components/mds-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-notification/documentation.json +1 -1
- package/dist/collection/components/mds-notification/mds-notification.js +1 -1
- package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator/documentation.json +1 -1
- package/dist/collection/components/mds-paginator/mds-paginator.css +3 -2
- package/dist/collection/components/mds-paginator/mds-paginator.js +1 -1
- package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +1 -1
- package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +2 -2
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -1
- package/dist/collection/components/mds-pref/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref/documentation.json +4 -9
- package/dist/collection/components/mds-pref/examples.md +1 -1
- package/dist/collection/components/mds-pref/mds-pref.js +1 -29
- package/dist/collection/components/mds-pref/mistakes.md +1 -1
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +2 -2
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +1 -1
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +2 -2
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +1 -1
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +2 -2
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +1 -1
- package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language/documentation.json +2 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +1 -1
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +2 -2
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +1 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -2
- package/dist/collection/components/mds-pref-mode/documentation.json +5 -5
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +2 -1
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +20 -11
- package/dist/collection/components/mds-pref-mode/mistakes.md +1 -1
- package/dist/collection/components/mds-pref-theme/AGENTS.md +6 -5
- package/dist/collection/components/mds-pref-theme/documentation.json +7 -7
- package/dist/collection/components/mds-pref-theme/examples.md +1 -1
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +32 -9
- package/dist/collection/components/mds-pref-theme/mistakes.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref-theme-item/documentation.json +3 -3
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +1 -1
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +1 -1
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +3 -2
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +3 -2
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +3 -2
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +3 -2
- package/dist/collection/components/mds-progress/mds-progress.js +1 -1
- package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification/documentation.json +2 -2
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +3 -2
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification-item/documentation.json +2 -2
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +1 -1
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +1 -1
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +1 -1
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
- package/dist/collection/components/mds-spinner/documentation.json +1 -1
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-status-bar/documentation.json +2 -2
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +3 -2
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab/documentation.json +1 -1
- package/dist/collection/components/mds-tab/mds-tab.css +3 -2
- package/dist/collection/components/mds-tab/mds-tab.js +2 -2
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +3 -2
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +3 -2
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-item/documentation.json +2 -2
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +1 -1
- package/dist/collection/components/mds-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-table/documentation.json +1 -1
- package/dist/collection/components/mds-table/mds-table.css +6 -4
- package/dist/collection/components/mds-table/mds-table.js +1 -1
- package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-body/documentation.json +1 -1
- package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
- package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +1 -1
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-footer/documentation.json +1 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
- package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header/documentation.json +2 -2
- package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header-cell/documentation.json +2 -2
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +1 -1
- package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-row/documentation.json +1 -1
- package/dist/collection/components/mds-table-row/mds-table-row.js +2 -2
- package/dist/collection/components/mds-text/AGENTS.md +1 -1
- package/dist/collection/components/mds-text/documentation.json +1 -1
- package/dist/collection/components/mds-text/mds-text.js +1 -1
- package/dist/collection/components/mds-toast/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast/documentation.json +2 -2
- package/dist/collection/components/mds-toast/mds-toast.js +1 -1
- package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast-region/documentation.json +1 -1
- package/dist/collection/components/mds-toast-region/mds-toast-region.js +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
- package/dist/collection/components/mds-tooltip/documentation.json +1 -1
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +4 -2
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +1 -1
- package/dist/collection/components/mds-tree/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree/documentation.json +1 -1
- package/dist/collection/components/mds-tree/mds-tree.js +1 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree-item/documentation.json +2 -2
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
- package/dist/collection/components/mds-url-view/documentation.json +2 -2
- package/dist/collection/components/mds-url-view/mds-url-view.css +3 -2
- package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
- package/dist/collection/components/mds-usage/AGENTS.md +1 -1
- package/dist/collection/components/mds-usage/documentation.json +1 -1
- package/dist/collection/components/mds-usage/mds-usage.css +3 -2
- package/dist/collection/components/mds-usage/mds-usage.js +1 -1
- package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
- package/dist/collection/components/mds-video-wall/documentation.json +1 -1
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +1 -1
- package/dist/collection/components/mds-zero/mds-zero.css +3 -2
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/type/button.js +3 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-book.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +3 -3
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-link.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast-region.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p-3rr6yzu-.js +1 -0
- package/dist/components/{p-DvDB_L_5.js → p-BBZyH3mn.js} +1 -1
- package/dist/components/{p-C7rDjrH4.js → p-BBrPpCNK.js} +1 -1
- package/dist/components/p-BE05D6Pe.js +1 -0
- package/dist/components/{p-ikNX7XDH.js → p-BI1ShBQG.js} +1 -1
- package/dist/components/p-BQSO-HFx.js +1 -0
- package/dist/components/{p-CVRN4LDc.js → p-Bbrei_yQ.js} +1 -1
- package/dist/components/{p-DhpcFZrc.js → p-BpND63Kl.js} +1 -1
- package/dist/components/{p-DqdlT4UG.js → p-BuhoBOYR.js} +1 -1
- package/dist/components/p-Bw-eI2ca.js +1 -0
- package/dist/components/{p-DTtmr_Y9.js → p-BwwiliWt.js} +1 -1
- package/dist/components/{p-COkn4Vtq.js → p-C6LU1s8K.js} +1 -1
- package/dist/components/{p-Br6-kva-.js → p-CWOW2Vna.js} +1 -1
- package/dist/components/{p-B6AFku7a.js → p-CZX6N7ce.js} +1 -1
- package/dist/components/{p-BFDRt7-n.js → p-CZwKeFQT.js} +1 -1
- package/dist/components/{p-CKnbQQUb.js → p-ClvoVgmw.js} +1 -1
- package/dist/{magma-components/p-CLhuNxYQ.js → components/p-CpuUmvdl.js} +1 -1
- package/dist/components/{p-C_Pc94vn.js → p-CrOv4KdL.js} +1 -1
- package/dist/components/{p-CZjwSwe5.js → p-CvbuCEYD.js} +2 -2
- package/dist/components/{p-D8CloC8I.js → p-DN1yF-xO.js} +1 -1
- package/dist/components/{p-4LbHmDXv.js → p-DUgCzZw9.js} +1 -1
- package/dist/components/{p-DJd8f8dz.js → p-DWOg4-dH.js} +1 -1
- package/dist/components/{p-FsctOap9.js → p-DZ4_zLTp.js} +1 -1
- package/dist/components/{p-gLo3t_qO.js → p-Do7IoDLD.js} +2 -2
- package/dist/components/{p-BiW6luA5.js → p-DrtIqOQn.js} +1 -1
- package/dist/components/p-DwKxtKwS.js +1 -0
- package/dist/components/{p-DOdUioZq.js → p-F0qhFsF0.js} +1 -1
- package/dist/components/p-J48g0t65.js +1 -0
- package/dist/components/{p-BaynxVRZ.js → p-NNPsVjnj.js} +1 -1
- package/dist/components/{p-CP5Qw9_T.js → p-UfaGafRS.js} +1 -1
- package/dist/components/{p-DdzJfsw7.js → p-Vgo7t88R.js} +1 -1
- package/dist/components/{p-D_RIY063.js → p-j5Hnbfv9.js} +1 -1
- package/dist/components/{p-DW6ie49j.js → p-k_Ly95Tj.js} +1 -1
- package/dist/components/{p-DlglisEn.js → p-lXKBo6V3.js} +1 -1
- package/dist/components/{p-DGhzWuCS.js → p-oFHbHRLX.js} +1 -1
- package/dist/documentation.json +263 -77
- package/dist/esm/{aria-Cvhn9asj.js → aria-DwKxtKwS.js} +12 -1
- package/dist/esm/{floating-controller-BVlbYYkf.js → floating-controller-xixU_s1w.js} +1 -1
- package/dist/esm/{index-BJVvHlvf.js → index-DEL0bLpb.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-B6cOkl4I.js → locale-DhP1Ge2o.js} +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +1 -1
- package/dist/esm/mds-badge.entry.js +2 -2
- package/dist/esm/mds-banner_3.entry.js +5 -5
- package/dist/esm/mds-book.entry.js +2 -2
- package/dist/esm/mds-breadcrumb.entry.js +2 -2
- package/dist/esm/mds-button-dropdown.entry.js +6 -4
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +78 -16
- package/dist/esm/mds-calendar_2.entry.js +8 -8
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +2 -2
- package/dist/esm/mds-details.entry.js +2 -2
- package/dist/esm/mds-dropdown.entry.js +6 -6
- package/dist/esm/mds-emoji.entry.js +2 -2
- package/dist/esm/mds-entity.entry.js +2 -2
- package/dist/esm/mds-file-preview.entry.js +5 -5
- package/dist/esm/mds-file.entry.js +5 -5
- package/dist/esm/mds-filter-item.entry.js +5 -5
- package/dist/esm/mds-filter.entry.js +4 -4
- package/dist/esm/mds-header-bar.entry.js +3 -3
- package/dist/esm/mds-header.entry.js +3 -3
- package/dist/esm/mds-horizontal-scroll.entry.js +3 -3
- package/dist/esm/mds-hr.entry.js +2 -2
- package/dist/esm/mds-img.entry.js +2 -2
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +4 -4
- package/dist/esm/mds-input-date.entry.js +6 -6
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +3 -3
- package/dist/esm/mds-input-range.entry.js +3 -3
- package/dist/esm/mds-input-select.entry.js +6 -6
- package/dist/esm/mds-input-switch_2.entry.js +6 -6
- package/dist/esm/mds-input-tip_2.entry.js +5 -5
- package/dist/esm/mds-input-upload.entry.js +7 -7
- package/dist/esm/mds-input.entry.js +8 -8
- package/dist/esm/mds-keyboard-key.entry.js +3 -3
- package/dist/esm/mds-keyboard.entry.js +4 -4
- package/dist/esm/mds-kpi-item.entry.js +3 -3
- package/dist/esm/mds-kpi.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +3 -3
- package/dist/esm/mds-link.entry.js +5 -5
- package/dist/esm/mds-list-item.entry.js +1 -1
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +3 -3
- package/dist/esm/mds-modal.entry.js +34 -15
- package/dist/esm/mds-note.entry.js +4 -4
- package/dist/esm/mds-notification.entry.js +3 -3
- package/dist/esm/mds-paginator-item.entry.js +2 -2
- package/dist/esm/mds-paginator.entry.js +4 -4
- package/dist/esm/mds-policy-ai.entry.js +3 -3
- package/dist/esm/mds-pref-animation.entry.js +3 -3
- package/dist/esm/mds-pref-consumption.entry.js +3 -3
- package/dist/esm/mds-pref-contrast.entry.js +3 -3
- package/dist/esm/mds-pref-language-item.entry.js +3 -3
- package/dist/esm/mds-pref-language.entry.js +3 -3
- package/dist/esm/mds-pref-mode.entry.js +22 -13
- package/dist/esm/mds-pref-theme-item.entry.js +1 -1
- package/dist/esm/mds-pref-theme.entry.js +31 -8
- package/dist/esm/mds-pref.entry.js +3 -25
- package/dist/esm/mds-price-table-features-cell.entry.js +3 -3
- package/dist/esm/mds-price-table-features-row.entry.js +3 -3
- package/dist/esm/mds-price-table-features.entry.js +2 -2
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +3 -3
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +4 -4
- package/dist/esm/mds-push-notification-item.entry.js +4 -4
- package/dist/esm/mds-push-notification.entry.js +4 -4
- package/dist/esm/mds-quote.entry.js +2 -2
- package/dist/esm/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +5 -5
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-status-bar.entry.js +3 -3
- package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +4 -4
- package/dist/esm/mds-tab-bar.entry.js +3 -3
- package/dist/esm/mds-tab_2.entry.js +6 -6
- package/dist/esm/mds-table-body.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +2 -2
- package/dist/esm/mds-table-header-cell.entry.js +2 -2
- package/dist/esm/mds-table-header.entry.js +3 -3
- package/dist/esm/mds-table-row.entry.js +4 -4
- package/dist/esm/mds-table.entry.js +4 -4
- package/dist/esm/mds-text.entry.js +2 -2
- package/dist/esm/mds-toast-region.entry.js +1 -1
- package/dist/esm/mds-toast.entry.js +3 -3
- package/dist/esm/mds-tooltip.entry.js +5 -5
- package/dist/esm/mds-tree-item.entry.js +3 -3
- package/dist/esm/mds-tree.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +4 -4
- package/dist/esm/mds-usage.entry.js +4 -4
- package/dist/esm/mds-video-wall.entry.js +2 -2
- package/dist/esm/mds-zero.entry.js +3 -3
- package/dist/esm/{preference-C5XjgGCb.js → preference-C8foBO86.js} +19 -1
- package/dist/esm-es5/aria-DwKxtKwS.js +12 -0
- package/dist/esm-es5/{floating-controller-BVlbYYkf.js → floating-controller-xixU_s1w.js} +1 -1
- package/dist/esm-es5/{index-BJVvHlvf.js → index-DEL0bLpb.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-B6cOkl4I.js → locale-DhP1Ge2o.js} +18 -18
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +2 -2
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +4 -4
- package/dist/esm-es5/mds-book.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +6 -4
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +39 -17
- package/dist/esm-es5/mds-calendar_2.entry.js +4 -4
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +2 -2
- package/dist/esm-es5/mds-details.entry.js +2 -2
- package/dist/esm-es5/mds-dropdown.entry.js +13 -13
- package/dist/esm-es5/mds-emoji.entry.js +2 -2
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +7 -7
- package/dist/esm-es5/mds-file.entry.js +3 -3
- package/dist/esm-es5/mds-filter-item.entry.js +2 -2
- package/dist/esm-es5/mds-filter.entry.js +2 -2
- package/dist/esm-es5/mds-header-bar.entry.js +2 -2
- package/dist/esm-es5/mds-header.entry.js +2 -2
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +2 -2
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +3 -3
- package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +3 -3
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +2 -2
- package/dist/esm-es5/mds-input-range.entry.js +2 -2
- package/dist/esm-es5/mds-input-select.entry.js +10 -10
- package/dist/esm-es5/mds-input-switch_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-tip_2.entry.js +3 -3
- package/dist/esm-es5/mds-input-upload.entry.js +2 -2
- package/dist/esm-es5/mds-input.entry.js +3 -3
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +2 -2
- package/dist/esm-es5/mds-kpi-item.entry.js +3 -3
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-link.entry.js +2 -2
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +2 -2
- package/dist/esm-es5/mds-modal.entry.js +23 -11
- package/dist/esm-es5/mds-note.entry.js +2 -2
- package/dist/esm-es5/mds-notification.entry.js +2 -2
- package/dist/esm-es5/mds-paginator-item.entry.js +2 -2
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
- package/dist/esm-es5/mds-pref-animation.entry.js +2 -2
- package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
- package/dist/esm-es5/mds-pref-contrast.entry.js +3 -3
- package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +2 -2
- package/dist/esm-es5/mds-pref-mode.entry.js +13 -3
- package/dist/esm-es5/mds-pref-theme-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +19 -6
- package/dist/esm-es5/mds-pref.entry.js +4 -12
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +2 -2
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +3 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +6 -6
- package/dist/esm-es5/mds-quote.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +4 -4
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +3 -3
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +2 -2
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm-es5/mds-tab-bar.entry.js +2 -2
- package/dist/esm-es5/mds-tab_2.entry.js +3 -3
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +2 -2
- package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
- package/dist/esm-es5/mds-table-header.entry.js +2 -2
- package/dist/esm-es5/mds-table-row.entry.js +2 -2
- package/dist/esm-es5/mds-table.entry.js +2 -2
- package/dist/esm-es5/mds-text.entry.js +2 -2
- package/dist/esm-es5/mds-toast-region.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +2 -2
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +3 -3
- package/dist/esm-es5/mds-video-wall.entry.js +2 -2
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/{preference-C5XjgGCb.js → preference-C8foBO86.js} +14 -4
- package/dist/hydrate/index.js +343 -216
- package/dist/hydrate/index.mjs +343 -216
- package/dist/lint/core/patterns.d.ts +26 -16
- package/dist/lint/core/patterns.js +55 -38
- package/dist/lint/mcp/tools.json +7 -7
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-0384db44.system.entry.js → p-00d2ef14.system.entry.js} +5 -5
- package/dist/magma-components/{p-ff65fc97.entry.js → p-02aed12a.entry.js} +1 -1
- package/dist/magma-components/{p-7c055074.entry.js → p-08f7a84b.entry.js} +1 -1
- package/dist/magma-components/{p-8239e526.system.entry.js → p-09a7c1de.system.entry.js} +1 -1
- package/dist/magma-components/{p-18244fd7.system.entry.js → p-0da5c696.system.entry.js} +3 -3
- package/dist/magma-components/{p-5575f198.entry.js → p-0df067b4.entry.js} +1 -1
- package/dist/magma-components/{p-b6412ddd.system.entry.js → p-0e1d239b.system.entry.js} +1 -1
- package/dist/magma-components/{p-ac161cb5.entry.js → p-0f4c2de6.entry.js} +1 -1
- package/dist/magma-components/{p-0c8f22dc.system.entry.js → p-11456781.system.entry.js} +2 -2
- package/dist/magma-components/{p-a2e3a545.entry.js → p-14de26d5.entry.js} +1 -1
- package/dist/magma-components/p-163eccbd.entry.js +1 -0
- package/dist/magma-components/{p-844bce77.entry.js → p-167ba07a.entry.js} +1 -1
- package/dist/magma-components/{p-f4fc9f29.system.entry.js → p-16bbff4e.system.entry.js} +1 -1
- package/dist/magma-components/{p-e059aaa9.entry.js → p-17249b74.entry.js} +1 -1
- package/dist/magma-components/{p-95ddc950.system.entry.js → p-188a55ac.system.entry.js} +3 -3
- package/dist/magma-components/{p-c9bd81c5.system.entry.js → p-1a53d9d0.system.entry.js} +7 -7
- package/dist/magma-components/{p-27254fbd.entry.js → p-1cc379d6.entry.js} +1 -1
- package/dist/magma-components/{p-ae9735e4.system.entry.js → p-1dc0d59c.system.entry.js} +2 -2
- package/dist/magma-components/{p-384d93dc.system.entry.js → p-1e24aafa.system.entry.js} +1 -1
- package/dist/magma-components/p-223efc32.entry.js +1 -0
- package/dist/magma-components/{p-1467ded5.system.entry.js → p-2454e4cd.system.entry.js} +2 -2
- package/dist/magma-components/{p-18b27217.entry.js → p-24a69c45.entry.js} +1 -1
- package/dist/magma-components/{p-fae9612b.system.entry.js → p-24fb2c5c.system.entry.js} +2 -2
- package/dist/magma-components/{p-ef1bdd44.entry.js → p-259d9380.entry.js} +1 -1
- package/dist/magma-components/{p-4fc0e294.entry.js → p-26b08e33.entry.js} +1 -1
- package/dist/magma-components/{p-c35ea44d.system.entry.js → p-27a32865.system.entry.js} +2 -2
- package/dist/magma-components/{p-299dab17.entry.js → p-2940499f.entry.js} +1 -1
- package/dist/magma-components/{p-6129954d.system.entry.js → p-2a5167e3.system.entry.js} +1 -1
- package/dist/magma-components/{p-ad13ade5.system.entry.js → p-2e825656.system.entry.js} +3 -3
- package/dist/magma-components/{p-308a4ae5.system.entry.js → p-2f4a7253.system.entry.js} +1 -1
- package/dist/magma-components/{p-29dd6d94.entry.js → p-2ffa4d4a.entry.js} +1 -1
- package/dist/magma-components/{p-d360e4c5.entry.js → p-32b3ad6f.entry.js} +1 -1
- package/dist/magma-components/{p-5686da49.system.entry.js → p-33129e0c.system.entry.js} +3 -3
- package/dist/magma-components/{p-9c2b67fc.system.entry.js → p-372fa5d4.system.entry.js} +3 -3
- package/dist/magma-components/p-380adee8.system.entry.js +5 -0
- package/dist/magma-components/{p-b0749f83.system.entry.js → p-390d0672.system.entry.js} +3 -3
- package/dist/magma-components/p-397c0686.entry.js +1 -0
- package/dist/magma-components/{p-e0049e96.system.entry.js → p-3a836de8.system.entry.js} +1 -1
- package/dist/magma-components/{p-fff26731.system.entry.js → p-3ba14295.system.entry.js} +2 -2
- package/dist/magma-components/{p-741f8f45.system.entry.js → p-3bf4f012.system.entry.js} +2 -2
- package/dist/magma-components/{p-5d56a7cd.system.entry.js → p-3c911608.system.entry.js} +3 -3
- package/dist/magma-components/{p-aac622ef.system.entry.js → p-3cf8ed46.system.entry.js} +1 -1
- package/dist/magma-components/{p-61e11cd0.system.entry.js → p-3ddae677.system.entry.js} +3 -3
- package/dist/magma-components/{p-2d2cdf0d.entry.js → p-3de37b32.entry.js} +1 -1
- package/dist/magma-components/{p-90d50492.system.entry.js → p-3f17a06f.system.entry.js} +2 -2
- package/dist/magma-components/{p-4f0153cd.entry.js → p-40c59c18.entry.js} +1 -1
- package/dist/magma-components/p-411fca2f.system.entry.js +14 -0
- package/dist/magma-components/{p-7f418ae1.entry.js → p-43c307f5.entry.js} +1 -1
- package/dist/magma-components/{p-14122f2d.entry.js → p-440d7942.entry.js} +1 -1
- package/dist/magma-components/{p-6a994dc1.entry.js → p-4541c233.entry.js} +1 -1
- package/dist/magma-components/{p-c915fba5.system.entry.js → p-45c26a24.system.entry.js} +1 -1
- package/dist/magma-components/{p-948ecde4.entry.js → p-4612bc78.entry.js} +2 -2
- package/dist/magma-components/{p-be2ca282.entry.js → p-4718a71d.entry.js} +1 -1
- package/dist/magma-components/{p-8a8cad6c.system.entry.js → p-48a1871f.system.entry.js} +1 -1
- package/dist/magma-components/{p-7ee31f2e.entry.js → p-4a1f7eb5.entry.js} +1 -1
- package/dist/magma-components/{p-adab176e.system.entry.js → p-4a2ed30e.system.entry.js} +2 -2
- package/dist/magma-components/{p-efe27253.system.entry.js → p-4a9ed4f7.system.entry.js} +1 -1
- package/dist/magma-components/{p-2d199db0.system.entry.js → p-4c3b3913.system.entry.js} +2 -2
- package/dist/magma-components/p-4c955367.entry.js +1 -0
- package/dist/magma-components/p-4ebb0a9e.entry.js +1 -0
- package/dist/magma-components/{p-02b106c2.entry.js → p-4f80bf37.entry.js} +1 -1
- package/dist/magma-components/{p-a65ce11a.system.entry.js → p-527569a3.system.entry.js} +2 -2
- package/dist/magma-components/{p-0d42ac4a.entry.js → p-52cc5a93.entry.js} +1 -1
- package/dist/magma-components/{p-3139988c.system.entry.js → p-54abba52.system.entry.js} +1 -1
- package/dist/magma-components/{p-4fd0fdb8.system.entry.js → p-555ba0e0.system.entry.js} +2 -2
- package/dist/magma-components/{p-5c8f408e.entry.js → p-56cf1cab.entry.js} +1 -1
- package/dist/magma-components/{p-bba4f1f0.system.entry.js → p-5794053b.system.entry.js} +10 -10
- package/dist/magma-components/{p-57ee6e32.entry.js → p-5a754d7b.entry.js} +1 -1
- package/dist/magma-components/{p-f09f3fe1.system.entry.js → p-5c6fdabd.system.entry.js} +3 -3
- package/dist/magma-components/{p-c683cd13.entry.js → p-5ca6063a.entry.js} +1 -1
- package/dist/magma-components/{p-ac099ed6.entry.js → p-5cb581df.entry.js} +1 -1
- package/dist/magma-components/{p-445198a1.entry.js → p-5d825728.entry.js} +1 -1
- package/dist/magma-components/{p-60b21db7.entry.js → p-5dfca9f0.entry.js} +1 -1
- package/dist/magma-components/{p-f181c679.system.entry.js → p-5f20592f.system.entry.js} +1 -1
- package/dist/magma-components/p-5f38e95b.entry.js +1 -0
- package/dist/magma-components/p-5f4bec31.entry.js +1 -0
- package/dist/magma-components/p-627f5956.entry.js +1 -0
- package/dist/magma-components/{p-a9caed77.entry.js → p-6336d979.entry.js} +1 -1
- package/dist/magma-components/{p-7837856f.entry.js → p-6352c2ea.entry.js} +1 -1
- package/dist/magma-components/{p-10d52280.entry.js → p-64884d84.entry.js} +1 -1
- package/dist/magma-components/{p-98e167e8.system.entry.js → p-64f86e46.system.entry.js} +2 -2
- package/dist/magma-components/{p-9a0f8eb1.entry.js → p-65ea6fc9.entry.js} +1 -1
- package/dist/magma-components/{p-cf42d6ea.system.entry.js → p-66f7f9b1.system.entry.js} +3 -3
- package/dist/magma-components/{p-13cfc01a.entry.js → p-68b0d45a.entry.js} +1 -1
- package/dist/magma-components/{p-b61546fd.entry.js → p-6a4d44e2.entry.js} +1 -1
- package/dist/magma-components/p-6a90caf5.system.entry.js +1 -0
- package/dist/magma-components/{p-dfab370b.entry.js → p-6c4f2de0.entry.js} +1 -1
- package/dist/magma-components/{p-12be0f43.system.entry.js → p-6f90c2c9.system.entry.js} +2 -2
- package/dist/magma-components/p-70faf379.entry.js +1 -0
- package/dist/magma-components/{p-e7f717ab.entry.js → p-71d03e56.entry.js} +1 -1
- package/dist/magma-components/{p-b30b487c.system.entry.js → p-720e9291.system.entry.js} +3 -3
- package/dist/magma-components/{p-bc054ffa.system.entry.js → p-724b7fff.system.entry.js} +2 -2
- package/dist/magma-components/{p-6896786e.entry.js → p-73dc7c66.entry.js} +1 -1
- package/dist/magma-components/{p-34421ef2.system.entry.js → p-7476cf76.system.entry.js} +3 -3
- package/dist/magma-components/{p-0fc41e34.system.entry.js → p-7701a318.system.entry.js} +1 -1
- package/dist/magma-components/{p-85bf9c93.entry.js → p-77707706.entry.js} +1 -1
- package/dist/magma-components/{p-c9553777.entry.js → p-78d00f88.entry.js} +1 -1
- package/dist/magma-components/{p-4f48c171.system.entry.js → p-79085c46.system.entry.js} +1 -1
- package/dist/magma-components/{p-ccffdf0b.system.entry.js → p-793072e1.system.entry.js} +23 -11
- package/dist/magma-components/{p-b2763352.entry.js → p-79392a0a.entry.js} +1 -1
- package/dist/magma-components/{p-7ff5552f.entry.js → p-7a33ab3c.entry.js} +1 -1
- package/dist/magma-components/{p-625de2e6.system.entry.js → p-7a4e8bc0.system.entry.js} +4 -4
- package/dist/magma-components/p-7a73fd19.system.entry.js +127 -0
- package/dist/magma-components/p-7b552dbe.entry.js +1 -0
- package/dist/magma-components/{p-84aac233.entry.js → p-7c13ccb0.entry.js} +1 -1
- package/dist/magma-components/{p-d81fcbde.system.entry.js → p-7e0a8194.system.entry.js} +5 -5
- package/dist/magma-components/{p-45b19935.system.entry.js → p-7fbdf896.system.entry.js} +3 -3
- package/dist/magma-components/{p-35c170ba.system.entry.js → p-804f4794.system.entry.js} +2 -2
- package/dist/magma-components/{p-6c73689a.system.entry.js → p-840c19ee.system.entry.js} +4 -4
- package/dist/magma-components/p-848d1b42.system.entry.js +30 -0
- package/dist/magma-components/{p-81212e34.entry.js → p-86494ea9.entry.js} +1 -1
- package/dist/magma-components/p-8915347f.entry.js +1 -0
- package/dist/magma-components/{p-f493fdc3.entry.js → p-8c20ac0c.entry.js} +1 -1
- package/dist/magma-components/{p-f22b8091.entry.js → p-90c60c48.entry.js} +1 -1
- package/dist/magma-components/{p-60d6e60f.entry.js → p-90e20ad3.entry.js} +1 -1
- package/dist/magma-components/{p-797c64f4.system.entry.js → p-9228db0b.system.entry.js} +13 -3
- package/dist/magma-components/p-94548d43.entry.js +1 -0
- package/dist/magma-components/{p-9c784173.entry.js → p-95020326.entry.js} +1 -1
- package/dist/magma-components/{p-8feba226.entry.js → p-970f45df.entry.js} +1 -1
- package/dist/magma-components/{p-9303fb16.system.entry.js → p-97a501cd.system.entry.js} +2 -2
- package/dist/magma-components/{p-9e07535e.system.entry.js → p-98cc6473.system.entry.js} +26 -13
- package/dist/magma-components/p-99d2ace2.system.entry.js +5 -0
- package/dist/magma-components/{p-627c2780.entry.js → p-9aba3769.entry.js} +1 -1
- package/dist/magma-components/{p-6d009b42.system.entry.js → p-9b0b65f0.system.entry.js} +2 -2
- package/dist/magma-components/{p-f40e3918.system.entry.js → p-9b0d7f7d.system.entry.js} +2 -2
- package/dist/magma-components/{p-5d1cba9c.system.entry.js → p-9b8d15a8.system.entry.js} +1 -1
- package/dist/magma-components/{p-5931fdfc.system.entry.js → p-9e94f4a3.system.entry.js} +4 -4
- package/dist/magma-components/{p-3b578659.system.entry.js → p-9f0100f2.system.entry.js} +2 -2
- package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
- package/dist/magma-components/{p-CuHZXISO.system.js → p-BHdlb7Fr.system.js} +19 -19
- package/dist/magma-components/p-BXVzhErg.system.js +12 -0
- package/dist/magma-components/{p-OafT80hV.js → p-CATyfc78.js} +2 -2
- package/dist/magma-components/{p-CZuIEo2v.system.js → p-Cbabyppz.system.js} +1 -1
- package/dist/magma-components/{p-Dx_cCOTw.js → p-CxzVgcYv.js} +1 -1
- package/dist/magma-components/{p-CxTugGM9.system.js → p-D3J9KZKy.system.js} +1 -1
- package/dist/magma-components/{p-mGgjNqBm.system.js → p-DOisMne4.system.js} +17 -7
- package/dist/magma-components/p-DwKxtKwS.js +1 -0
- package/dist/{components/p-jasGzfhE.js → magma-components/p-Dx7iOdVP.js} +1 -1
- package/dist/magma-components/{p-iX3kcwYg.js → p-DxR4rGsw.js} +1 -1
- package/dist/magma-components/{p-ecc2893d.system.entry.js → p-a112a0e2.system.entry.js} +1 -1
- package/dist/magma-components/{p-86f11a5a.entry.js → p-a2767235.entry.js} +1 -1
- package/dist/magma-components/{p-c0286dc3.system.entry.js → p-a2c3b294.system.entry.js} +6 -6
- package/dist/magma-components/{p-4669334a.system.entry.js → p-a2d4d849.system.entry.js} +2 -2
- package/dist/magma-components/{p-cfbf3a76.system.entry.js → p-a48c73b1.system.entry.js} +2 -2
- package/dist/magma-components/{p-4e8c5b68.entry.js → p-a4f53c83.entry.js} +1 -1
- package/dist/magma-components/{p-e92327a2.entry.js → p-a58e8a5c.entry.js} +1 -1
- package/dist/magma-components/{p-1a20f239.system.entry.js → p-a5ca10ae.system.entry.js} +1 -1
- package/dist/magma-components/{p-46a928c3.entry.js → p-a9a872e1.entry.js} +1 -1
- package/dist/magma-components/{p-0a0dfdf4.system.entry.js → p-a9ab9eb0.system.entry.js} +2 -2
- package/dist/magma-components/{p-72971cf7.system.entry.js → p-ab1c3fb0.system.entry.js} +1 -1
- package/dist/magma-components/{p-074d7b75.entry.js → p-ab445c2b.entry.js} +1 -1
- package/dist/magma-components/{p-45a3e7eb.entry.js → p-abe32d5b.entry.js} +1 -1
- package/dist/magma-components/{p-2e68180d.system.entry.js → p-af56e3e4.system.entry.js} +2 -2
- package/dist/magma-components/{p-ed4fd7a4.entry.js → p-b1238d48.entry.js} +1 -1
- package/dist/magma-components/{p-4748378e.system.entry.js → p-b129b127.system.entry.js} +14 -14
- package/dist/magma-components/{p-e79eb427.system.entry.js → p-b1cd3acf.system.entry.js} +2 -2
- package/dist/magma-components/{p-5aa8f150.entry.js → p-b705b805.entry.js} +1 -1
- package/dist/magma-components/{p-2111aa67.system.entry.js → p-b7d18d7a.system.entry.js} +1 -1
- package/dist/magma-components/{p-3be9b384.system.entry.js → p-b871ad36.system.entry.js} +10 -10
- package/dist/magma-components/{p-f7426a75.entry.js → p-ba871d9c.entry.js} +1 -1
- package/dist/magma-components/{p-5a8fa2d0.entry.js → p-ba95bf93.entry.js} +1 -1
- package/dist/magma-components/{p-3af8a86a.system.entry.js → p-bc054fa3.system.entry.js} +3 -3
- package/dist/magma-components/{p-05455645.system.entry.js → p-bcc6c358.system.entry.js} +2 -2
- package/dist/magma-components/{p-7c3a7521.entry.js → p-bd489df9.entry.js} +1 -1
- package/dist/magma-components/{p-60acbc5f.system.entry.js → p-c0295a0e.system.entry.js} +2 -2
- package/dist/magma-components/p-c06d8b5a.entry.js +1 -0
- package/dist/magma-components/p-c131d726.entry.js +1 -0
- package/dist/magma-components/{p-198ea5d8.entry.js → p-c49676e6.entry.js} +1 -1
- package/dist/magma-components/{p-2a445b98.system.entry.js → p-c4c1ef48.system.entry.js} +78 -78
- package/dist/magma-components/{p-87831da2.system.entry.js → p-c54f2089.system.entry.js} +1 -1
- package/dist/magma-components/{p-8b8cd213.system.entry.js → p-c691f27e.system.entry.js} +3 -3
- package/dist/magma-components/p-c8414ee6.entry.js +1 -0
- package/dist/magma-components/{p-9ef64212.entry.js → p-c8c918d2.entry.js} +3 -3
- package/dist/magma-components/{p-85376ff5.entry.js → p-c91cb63a.entry.js} +1 -1
- package/dist/magma-components/{p-9f55fa7a.system.entry.js → p-c94e7973.system.entry.js} +2 -2
- package/dist/magma-components/{p-387fa36d.system.entry.js → p-c9baa3fb.system.entry.js} +1 -1
- package/dist/magma-components/{p-b781c932.system.entry.js → p-ca4e8601.system.entry.js} +1 -1
- package/dist/magma-components/{p-445bc62a.system.entry.js → p-ca5427d4.system.entry.js} +1 -1
- package/dist/magma-components/{p-4646cdc0.system.entry.js → p-caca78ff.system.entry.js} +2 -2
- package/dist/magma-components/{p-d85f3e5e.system.entry.js → p-caf478ff.system.entry.js} +2 -2
- package/dist/magma-components/{p-b8f4938a.entry.js → p-cb06839f.entry.js} +1 -1
- package/dist/magma-components/{p-d29c959d.entry.js → p-ce42734f.entry.js} +1 -1
- package/dist/magma-components/{p-8aa4cd10.entry.js → p-d1e4a032.entry.js} +1 -1
- package/dist/magma-components/{p-cd6dd836.entry.js → p-d25a47fa.entry.js} +1 -1
- package/dist/magma-components/{p-0d3da482.system.entry.js → p-d29b32b4.system.entry.js} +1 -1
- package/dist/magma-components/{p-1f746ad1.system.entry.js → p-d2ba5851.system.entry.js} +9 -9
- package/dist/magma-components/{p-d50d4023.entry.js → p-d365c6b6.entry.js} +1 -1
- package/dist/magma-components/{p-7a920b70.entry.js → p-d3b06151.entry.js} +1 -1
- package/dist/magma-components/{p-4cd21f19.entry.js → p-d45f65e0.entry.js} +1 -1
- package/dist/magma-components/{p-fdedc0ba.entry.js → p-d51ec950.entry.js} +1 -1
- package/dist/magma-components/{p-4606d11f.entry.js → p-d760c1fa.entry.js} +1 -1
- package/dist/magma-components/p-d785d7ee.entry.js +1 -0
- package/dist/magma-components/{p-08da465d.entry.js → p-d9092133.entry.js} +1 -1
- package/dist/magma-components/{p-03fb86a6.system.entry.js → p-dd348171.system.entry.js} +2 -2
- package/dist/magma-components/{p-dcb5f965.entry.js → p-de423b11.entry.js} +1 -1
- package/dist/magma-components/{p-97217527.system.entry.js → p-df78b7ac.system.entry.js} +1 -1
- package/dist/magma-components/{p-fba648e0.entry.js → p-e39b5e12.entry.js} +1 -1
- package/dist/magma-components/{p-99bfa07e.system.entry.js → p-eac943e5.system.entry.js} +1 -1
- package/dist/magma-components/{p-9ef0d4e5.system.entry.js → p-eb220deb.system.entry.js} +2 -2
- package/dist/magma-components/{p-fd81c4ef.system.entry.js → p-eca42fe8.system.entry.js} +2 -2
- package/dist/magma-components/{p-56a25ec6.entry.js → p-ecda3e45.entry.js} +1 -1
- package/dist/magma-components/{p-b523fabe.system.entry.js → p-f0909679.system.entry.js} +2 -2
- package/dist/magma-components/{p-8bf8e032.entry.js → p-f2649031.entry.js} +1 -1
- package/dist/magma-components/{p-30f95d10.entry.js → p-f51ed098.entry.js} +1 -1
- package/dist/magma-components/{p-11210b60.system.entry.js → p-f5bd5b64.system.entry.js} +3 -3
- package/dist/magma-components/p-f6358241.system.entry.js +19 -0
- package/dist/magma-components/{p-b0850daa.entry.js → p-f9f3ad86.entry.js} +1 -1
- package/dist/magma-components/{p-a3d09996.entry.js → p-fb4b648a.entry.js} +1 -1
- package/dist/magma-components/{p-81d2582a.entry.js → p-fd4588c5.entry.js} +1 -1
- package/dist/magma-components/{p-3b494de7.entry.js → p-fdd17ee6.entry.js} +1 -1
- package/dist/magma-components/p-fe51c0cb.system.entry.js +10 -0
- package/dist/magma-components/{p-a3156523.system.entry.js → p-ff6cf4f8.system.entry.js} +3 -3
- package/dist/magma-components/{p-4da1c089.entry.js → p-ff76c614.entry.js} +1 -1
- package/dist/{lint/mcp → mcp}/checks.js +4 -4
- package/dist/{lint/mcp → mcp}/components.js +4 -6
- package/dist/{lint/mcp → mcp}/guides.js +11 -9
- package/dist/{lint/mcp → mcp}/icons.js +21 -0
- package/dist/mcp/package.json +3 -0
- package/dist/{lint/mcp → mcp}/patterns.js +8 -9
- package/dist/{lint/mcp → mcp}/protocol.js +1 -1
- package/dist/{lint/mcp → mcp}/render.js +61 -33
- package/dist/{lint/mcp → mcp}/server.js +4 -4
- package/dist/{lint/mcp → mcp}/tokens.js +1 -2
- package/dist/mcp/tools.json +1374 -0
- package/dist/stats.json +2304 -2021
- package/dist/types/common/aria.d.ts +8 -1
- package/dist/types/common/preference.d.ts +13 -1
- package/dist/types/components/mds-button/mds-button.d.ts +50 -4
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +22 -2
- package/dist/types/components/mds-modal/mds-modal.d.ts +8 -1
- package/dist/types/components/mds-pref/mds-pref.d.ts +0 -9
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +16 -5
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +14 -1
- package/dist/types/components.d.ts +67 -13
- package/dist/types/type/button.d.ts +2 -0
- package/package.json +12 -11
- package/dist/components/p-BwT0RJip.js +0 -1
- package/dist/components/p-COUgBzJ4.js +0 -1
- package/dist/components/p-Cvhn9asj.js +0 -1
- package/dist/components/p-G7Udw5H5.js +0 -1
- package/dist/components/p-Ic8cYsgt.js +0 -1
- package/dist/components/p-l0KS6hTQ.js +0 -1
- package/dist/esm-es5/aria-Cvhn9asj.js +0 -6
- package/dist/lint/mcp/checks.d.ts +0 -29
- package/dist/lint/mcp/cli.d.ts +0 -2
- package/dist/lint/mcp/color.d.ts +0 -12
- package/dist/lint/mcp/components.d.ts +0 -5
- package/dist/lint/mcp/context.d.ts +0 -45
- package/dist/lint/mcp/guides.d.ts +0 -3
- package/dist/lint/mcp/icons.d.ts +0 -9
- package/dist/lint/mcp/patterns.d.ts +0 -75
- package/dist/lint/mcp/protocol.d.ts +0 -77
- package/dist/lint/mcp/render-page.d.ts +0 -40
- package/dist/lint/mcp/render.d.ts +0 -130
- package/dist/lint/mcp/server.d.ts +0 -39
- package/dist/lint/mcp/tokens.d.ts +0 -37
- package/dist/magma-components/p-06691ab3.system.entry.js +0 -27
- package/dist/magma-components/p-1d8485de.system.entry.js +0 -28
- package/dist/magma-components/p-21345ecc.entry.js +0 -1
- package/dist/magma-components/p-25dcbf22.entry.js +0 -1
- package/dist/magma-components/p-37881115.system.entry.js +0 -14
- package/dist/magma-components/p-4e5b8618.system.entry.js +0 -1
- package/dist/magma-components/p-69319301.system.entry.js +0 -10
- package/dist/magma-components/p-7b06b2f2.entry.js +0 -1
- package/dist/magma-components/p-7d61f442.entry.js +0 -1
- package/dist/magma-components/p-97c6e10a.entry.js +0 -1
- package/dist/magma-components/p-9e2b1a29.entry.js +0 -1
- package/dist/magma-components/p-9ed54db1.entry.js +0 -1
- package/dist/magma-components/p-Cvhn9asj.js +0 -1
- package/dist/magma-components/p-a8206d9c.entry.js +0 -1
- package/dist/magma-components/p-b464668b.system.entry.js +0 -105
- package/dist/magma-components/p-b85f56d7.entry.js +0 -1
- package/dist/magma-components/p-c7dc17f8.entry.js +0 -1
- package/dist/magma-components/p-d43e2a9a.entry.js +0 -1
- package/dist/magma-components/p-ddfb4da3.entry.js +0 -1
- package/dist/magma-components/p-e428490d.system.entry.js +0 -5
- package/dist/magma-components/p-f045b018.entry.js +0 -1
- package/dist/magma-components/p-f5d9f625.entry.js +0 -1
- package/dist/magma-components/p-fa387b74.system.entry.js +0 -5
- package/dist/magma-components/p-fbf563c8.entry.js +0 -1
- package/dist/magma-components/p-ff82edad.entry.js +0 -1
- package/dist/magma-components/p-sm_-_oFY.system.js +0 -6
- /package/dist/{lint/mcp → mcp}/cli.js +0 -0
- /package/dist/{lint/mcp → mcp}/color.js +0 -0
- /package/dist/{lint/mcp → mcp}/context.js +0 -0
- /package/dist/{lint/mcp → mcp}/icon.svg +0 -0
- /package/dist/{lint/mcp → mcp}/render-page.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,d as n,h as s,c as r,t as i}from"./p-TZJN-ygm.js";import{p as a}from"./p-CVRN4LDc.js";import{s as o}from"./p-CACEYk42.js";import{h as u}from"./p-DWIIDHSa.js";import{c as h}from"./p-ChV9xqsO.js";import{L as l}from"./p-CZjwSwe5.js";import{d as c}from"./p-Ic8cYsgt.js";import{d}from"./p-FsctOap9.js";import{d as m}from"./p-C7rDjrH4.js";import{d as f}from"./p-COkn4Vtq.js";import{d as y}from"./p-D8CloC8I.js";class g extends Error{}class w extends g{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class p extends g{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class v extends g{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class b extends g{}class k extends g{constructor(t){super(`Invalid unit ${t}`)}}class M extends g{}class S extends g{constructor(){super("Zone is an abstract class")}}const D="numeric",N="short",T="long",E={year:D,month:D,day:D},x={year:D,month:N,day:D},O={year:D,month:N,day:D,weekday:N},I={year:D,month:T,day:D},$={year:D,month:T,day:D,weekday:T},F={hour:D,minute:D},C={hour:D,minute:D,second:D},L={hour:D,minute:D,second:D,timeZoneName:N},A={hour:D,minute:D,second:D,timeZoneName:T},Z={hour:D,minute:D,hourCycle:"h23"},W={hour:D,minute:D,second:D,hourCycle:"h23"},q={hour:D,minute:D,second:D,hourCycle:"h23",timeZoneName:N},_={hour:D,minute:D,second:D,hourCycle:"h23",timeZoneName:T},j={year:D,month:D,day:D,hour:D,minute:D},H={year:D,month:D,day:D,hour:D,minute:D,second:D},z={year:D,month:N,day:D,hour:D,minute:D},R={year:D,month:N,day:D,hour:D,minute:D,second:D},Y={year:D,month:N,day:D,weekday:N,hour:D,minute:D},P={year:D,month:T,day:D,hour:D,minute:D,timeZoneName:N},J={year:D,month:T,day:D,hour:D,minute:D,second:D,timeZoneName:N},U={year:D,month:T,day:D,weekday:T,hour:D,minute:D,timeZoneName:T},G={year:D,month:T,day:D,weekday:T,hour:D,minute:D,second:D,timeZoneName:T};class V{get type(){throw new S}get name(){throw new S}get ianaName(){return this.name}get isUniversal(){throw new S}offsetName(t,e){throw new S}formatOffset(t,e){throw new S}offset(t){throw new S}equals(t){throw new S}get isValid(){throw new S}}let B=null;class Q extends V{static get instance(){return null===B&&(B=new Q),B}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return we(t,e,n)}formatOffset(t,e){return ke(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}const K=new Map,X={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},tt=new Map;class et extends V{static create(t){let e=tt.get(t);return void 0===e&&tt.set(t,e=new et(t)),e}static resetCache(){tt.clear(),K.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=et.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return we(t,e,n,this.name)}formatOffset(t,e){return ke(this.offset(t),e)}offset(t){if(!this.valid)return NaN;const e=new Date(t);if(isNaN(e))return NaN;const n=function(t){let e=K.get(t);return void 0===e&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),K.set(t,e)),e}(this.name);let[s,r,i,a,o,u,h]=n.formatToParts?function(t,e){const n=t.formatToParts(e),s=[];for(let t=0;t<n.length;t++){const{type:e,value:r}=n[t],i=X[e];"era"===e?s[i]=r:Bt(i)||(s[i]=parseInt(r,10))}return s}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,a,o,u,h,l]=s;return[a,r,i,o,u,h,l]}(n,e);"BC"===a&&(s=1-Math.abs(s));let l=+e;const c=l%1e3;return l-=c>=0?c:1e3+c,(me({year:s,month:r,day:i,hour:24===o?0:o,minute:u,second:h,millisecond:0})-l)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let nt={};const st=new Map;function rt(t,e={}){const n=JSON.stringify([t,e]);let s=st.get(n);return void 0===s&&(s=new Intl.DateTimeFormat(t,e),st.set(n,s)),s}const it=new Map,at=new Map;let ot=null;const ut=new Map;function ht(t){let e=ut.get(t);return void 0===e&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),ut.set(t,e)),e}const lt=new Map;function ct(t,e,n,s){const r=t.listingMode();return"error"===r?null:"en"===r?n(e):s(e)}class dt{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:r,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let s=it.get(n);return void 0===s&&(s=new Intl.NumberFormat(t,e),it.set(n,s)),s}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return ie(this.floor?Math.floor(t):he(t,3),this.padTo)}}class mt{constructor(t,e,n){let s;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&et.create(n).valid?(s=n,this.dt=t):(s="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,s=t.zone.name):(s="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||s,this.dtf=rt(e,r)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class ft{constructor(t,e,n){this.opts={style:"long",...n},!e&&Xt()&&(this.rtf=function(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=at.get(r);return void 0===i&&(i=new Intl.RelativeTimeFormat(t,e),at.set(r,i)),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${r[t][0]}`;case-1:return n?"yesterday":`last ${r[t][0]}`;case 0:return n?"today":`this ${r[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=1===o,h=r[t],l=s?u?h[1]:h[2]||h[1]:u?r[t][0]:t;return a?`${o} ${l} ago`:`in ${o} ${l}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const yt={firstDay:1,minimalDays:4,weekend:[6,7]};class gt{static fromOpts(t){return gt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,s,r=!1){const i=t||Lt.defaultLocale,a=i||(r?"en-US":ot||(ot=(new Intl.DateTimeFormat).resolvedOptions().locale,ot)),o=e||Lt.defaultNumberingSystem,u=n||Lt.defaultOutputCalendar,h=se(s)||Lt.defaultWeekSettings;return new gt(a,o,u,h,i)}static resetCache(){ot=null,st.clear(),it.clear(),at.clear(),ut.clear(),lt.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:s}={}){return gt.create(t,e,n,s)}constructor(t,e,n,s,r){const[i,a,o]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,s;try{e=rt(t).resolvedOptions(),s=t}catch(r){const i=t.substring(0,n);e=rt(i).resolvedOptions(),s=i}const{numberingSystem:r,calendar:i}=e;return[s,r,i]}}(t);this.locale=i,this.numberingSystem=e||a||null,this.outputCalendar=n||o||null,this.weekSettings=s,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===ht(t.locale).numberingSystem)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?gt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,se(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return ct(this,t,Te,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),s=(e&=!n)?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){const e=[];for(let n=1;n<=12;n++){const s=Os.utc(2009,n,1);e.push(t(s))}return e}(n?t=>this.dtFormatter(t,s).format():t=>this.extract(t,s,"month"))),this.monthsCache[r][t]}))}weekdays(t,e=!1){return ct(this,t,Ie,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},s=e?"format":"standalone";return this.weekdaysCache[s][t]||(this.weekdaysCache[s][t]=function(t){const e=[];for(let n=1;n<=7;n++){const s=Os.utc(2016,11,13+n);e.push(t(s))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[s][t]}))}meridiems(){return ct(this,void 0,(()=>$e),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Os.utc(2016,11,13,9),Os.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return ct(this,t,Ae,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Os.utc(-40,1,1),Os.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const s=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return s?s.value:null}numberFormatter(t={}){return new dt(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new mt(t,this.intl,e)}relFormatter(t={}){return new ft(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let s=nt[n];return s||(s=new Intl.ListFormat(t,e),nt[n]=s),s}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||ht(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:te()?function(t){let e=lt.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...yt,...e}),lt.set(t,e)}return e}(this.locale):yt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let wt=null;class pt extends V{static get utcInstance(){return null===wt&&(wt=new pt(0)),wt}static instance(t){return 0===t?pt.utcInstance:new pt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new pt(pe(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ke(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ke(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return ke(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class vt extends V{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bt(t,e){if(Bt(t)||null===t)return e;if(t instanceof V)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?Q.instance:"utc"===n||"gmt"===n?pt.utcInstance:pt.parseSpecifier(n)||et.create(t)}return Qt(t)?pt.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new vt(t)}const kt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Mt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},St=kt.hanidec.replace(/[\[|\]]/g,"").split(""),Dt=new Map;function Nt({numberingSystem:t},e=""){const n=t||"latn";let s=Dt.get(n);void 0===s&&(s=new Map,Dt.set(n,s));let r=s.get(e);return void 0===r&&(r=new RegExp(`${kt[n]}${e}`),s.set(e,r)),r}let Tt,Et=()=>Date.now(),xt="system",Ot=null,It=null,$t=null,Ft=60,Ct=null;class Lt{static get now(){return Et}static set now(t){Et=t}static set defaultZone(t){xt=t}static get defaultZone(){return bt(xt,Q.instance)}static get defaultLocale(){return Ot}static set defaultLocale(t){Ot=t}static get defaultNumberingSystem(){return It}static set defaultNumberingSystem(t){It=t}static get defaultOutputCalendar(){return $t}static set defaultOutputCalendar(t){$t=t}static get defaultWeekSettings(){return Ct}static set defaultWeekSettings(t){Ct=se(t)}static get twoDigitCutoffYear(){return Ft}static set twoDigitCutoffYear(t){Ft=t%100}static get throwOnInvalid(){return Tt}static set throwOnInvalid(t){Tt=t}static resetCaches(){gt.resetCache(),et.resetCache(),Os.resetCache(),Dt.clear()}}class At{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Zt=[0,31,59,90,120,151,181,212,243,273,304,334],Wt=[0,31,60,91,121,152,182,213,244,274,305,335];function qt(t,e){return new At("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function _t(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return 0===r?7:r}function jt(t,e,n){return n+(le(t)?Wt:Zt)[e-1]}function Ht(t,e){const n=le(t)?Wt:Zt,s=n.findIndex((t=>t<e));return{month:s+1,day:e-n[s]}}function zt(t,e){return(t-e+7)%7+1}function Rt(t,e=4,n=1){const{year:s,month:r,day:i}=t,a=jt(s,r,i),o=zt(_t(s,r,i),n);let u,h=Math.floor((a-o+14-e)/7);return h<1?(u=s-1,h=ye(u,e,n)):h>ye(s,e,n)?(u=s+1,h=1):u=s,{weekYear:u,weekNumber:h,weekday:o,...Me(t)}}function Yt(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,a=zt(_t(s,1,e),n),o=ce(s);let u,h=7*r+i-a-7+e;h<1?(u=s-1,h+=ce(u)):h>o?(u=s+1,h-=ce(s)):u=s;const{month:l,day:c}=Ht(u,h);return{year:u,month:l,day:c,...Me(t)}}function Pt(t){const{year:e,month:n,day:s}=t;return{year:e,ordinal:jt(e,n,s),...Me(t)}}function Jt(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Ht(e,n);return{year:e,month:s,day:r,...Me(t)}}function Ut(t,e){if(!Bt(t.localWeekday)||!Bt(t.localWeekNumber)||!Bt(t.localWeekYear)){if(!Bt(t.weekday)||!Bt(t.weekNumber)||!Bt(t.weekYear))throw new b("Cannot mix locale-based week fields with ISO-based week fields");return Bt(t.localWeekday)||(t.weekday=t.localWeekday),Bt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Bt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Gt(t){const e=Kt(t.year),n=re(t.month,1,12),s=re(t.day,1,de(t.year,t.month));return e?n?!s&&qt("day",t.day):qt("month",t.month):qt("year",t.year)}function Vt(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=re(e,0,23)||24===e&&0===n&&0===s&&0===r,a=re(n,0,59),o=re(s,0,59),u=re(r,0,999);return i?a?o?!u&&qt("millisecond",r):qt("second",s):qt("minute",n):qt("hour",e)}function Bt(t){return void 0===t}function Qt(t){return"number"==typeof t}function Kt(t){return"number"==typeof t&&t%1==0}function Xt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function te(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function ee(t,e,n){if(0!==t.length)return t.reduce(((t,s)=>{const r=[e(s),s];return t&&n(t[0],r[0])===t[0]?t:r}),null)[1]}function ne(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function se(t){if(null==t)return null;if("object"!=typeof t)throw new M("Week settings must be an object");if(!re(t.firstDay,1,7)||!re(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!re(t,1,7))))throw new M("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function re(t,e,n){return Kt(t)&&t>=e&&t<=n}function ie(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function ae(t){return Bt(t)||null===t||""===t?void 0:parseInt(t,10)}function oe(t){return Bt(t)||null===t||""===t?void 0:parseFloat(t)}function ue(t){if(!Bt(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function he(t,e,n="round"){const s=10**e;switch(n){case"expand":return t>0?Math.ceil(t*s)/s:Math.floor(t*s)/s;case"trunc":return Math.trunc(t*s)/s;case"round":return Math.round(t*s)/s;case"floor":return Math.floor(t*s)/s;case"ceil":return Math.ceil(t*s)/s;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function le(t){return t%4==0&&(t%100!=0||t%400==0)}function ce(t){return le(t)?366:365}function de(t,e){const n=(s=e-1)-12*Math.floor(s/12)+1;var s;return 2===n?le(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function me(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function fe(t,e,n){return-zt(_t(t,1,e),n)+e-1}function ye(t,e=4,n=1){const s=fe(t,e,n),r=fe(t+1,e,n);return(ce(t)-s+r)/7}function ge(t){return t>99?t:t>Lt.twoDigitCutoffYear?1900+t:2e3+t}function we(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(r).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function pe(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-s:s)}function ve(t){const e=Number(t);if("boolean"==typeof t||""===t||!Number.isFinite(e))throw new M(`Invalid unit value ${t}`);return e}function be(t,e){const n={};for(const s in t)if(ne(t,s)){const r=t[s];if(null==r)continue;n[e(s)]=ve(r)}return n}function ke(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${ie(n,2)}:${ie(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${ie(n,2)}${ie(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Me(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const Se=["January","February","March","April","May","June","July","August","September","October","November","December"],De=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ne=["J","F","M","A","M","J","J","A","S","O","N","D"];function Te(t){switch(t){case"narrow":return[...Ne];case"short":return[...De];case"long":return[...Se];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ee=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],xe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Oe=["M","T","W","T","F","S","S"];function Ie(t){switch(t){case"narrow":return[...Oe];case"short":return[...xe];case"long":return[...Ee];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const $e=["AM","PM"],Fe=["Before Christ","Anno Domini"],Ce=["BC","AD"],Le=["B","A"];function Ae(t){switch(t){case"narrow":return[...Le];case"short":return[...Ce];case"long":return[...Fe];default:return null}}function Ze(t,e){let n="";for(const s of t)n+=s.literal?s.val:e(s.val);return n}const We={D:E,DD:x,DDD:I,DDDD:$,t:F,tt:C,ttt:L,tttt:A,T:Z,TT:W,TTT:q,TTTT:_,f:j,ff:z,fff:P,ffff:U,F:H,FF:R,FFF:J,FFFF:G};class qe{static create(t,e={}){return new qe(t,e)}static parseFormat(t){let e=null,n="",s=!1;const r=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);"'"===a?((n.length>0||s)&&r.push({literal:s||/^\s+$/.test(n),val:""===n?"'":n}),e=null,n="",s=!s):s||a===e?n+=a:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=a,e=a)}return n.length>0&&r.push({literal:s||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(t){return We[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,n){if(this.opts.forceSimple)return ie(t,e);const s={...this.opts};return e>0&&(s.padTo=e),n&&(s.signDisplay=n),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=(e,s)=>n?function(t,e){return Te(e)[t.month-1]}(t,e):r(s?{month:e}:{month:e,day:"numeric"},"month"),o=(e,s)=>n?function(t,e){return Ie(e)[t.weekday-1]}(t,e):r(s?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const n=qe.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},h=e=>n?function(t,e){return Ae(e)[t.year<0?0:1]}(t,e):r({era:e},"era");return Ze(qe.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return $e[t.hour<12?0:1]}(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return s?r({day:"numeric"},"day"):this.num(t.day);case"dd":return s?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return s?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return s?r({month:"numeric"},"month"):this.num(t.month);case"MM":return s?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return s?r({year:"numeric"},"year"):this.num(t.year);case"yy":return s?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return s?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,e){const n="negativeLargestOnly"===this.opts.signMode?-1:1,s=t=>{switch(t[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},r=qe.parseFormat(e),i=r.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]),a=t.shiftTo(...i.map(s).filter((t=>t)));return Ze(r,((t,e)=>r=>{const i=s(r);if(i){const s=e.isNegativeDuration&&i!==e.largestUnit?n:1;let a;return a="negativeLargestOnly"===this.opts.signMode&&i!==e.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(t.get(i)*s,r.length,a)}return r})(a,{isNegativeDuration:a<0,largestUnit:Object.keys(a.values)[0]}))}}const _e=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function je(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function He(...t){return e=>t.reduce((([t,n,s],r)=>{const[i,a,o]=r(e,s);return[{...t,...i},a||n,o]}),[{},null,1]).slice(0,2)}function ze(t,...e){if(null==t)return[null,null];for(const[n,s]of e){const e=n.exec(t);if(e)return s(e)}return[null,null]}function Re(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=ae(e[n+r]);return[s,null,n+r]}}const Ye=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Pe=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Je=RegExp(`${Pe.source}(?:${Ye.source}?(?:\\[(${_e.source})\\])?)?`),Ue=RegExp(`(?:[Tt]${Je.source})?`),Ge=Re("weekYear","weekNumber","weekDay"),Ve=Re("year","ordinal"),Be=RegExp(`${Pe.source} ?(?:${Ye.source}|(${_e.source}))?`),Qe=RegExp(`(?: ${Be.source})?`);function Ke(t,e,n){const s=t[e];return Bt(s)?n:ae(s)}function Xe(t,e){return[{hours:Ke(t,e,0),minutes:Ke(t,e+1,0),seconds:Ke(t,e+2,0),milliseconds:ue(t[e+3])},null,e+4]}function tn(t,e){const n=!t[e]&&!t[e+1],s=pe(t[e+1],t[e+2]);return[{},n?null:pt.instance(s),e+3]}function en(t,e){return[{},t[e]?et.create(t[e]):null,e+1]}const nn=RegExp(`^T?${Pe.source}$`),sn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function rn(t){const[e,n,s,r,i,a,o,u,h]=t,l="-"===e[0],c=u&&"-"===u[0],d=(t,e=!1)=>void 0!==t&&(e||t&&l)?-t:t;return[{years:d(oe(n)),months:d(oe(s)),weeks:d(oe(r)),days:d(oe(i)),hours:d(oe(a)),minutes:d(oe(o)),seconds:d(oe(u),"-0"===u),milliseconds:d(ue(h),c)}]}const an={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function on(t,e,n,s,r,i,a){const o={year:2===e.length?ge(ae(e)):ae(e),month:De.indexOf(n)+1,day:ae(s),hour:ae(r),minute:ae(i)};return a&&(o.second=ae(a)),t&&(o.weekday=t.length>3?Ee.indexOf(t)+1:xe.indexOf(t)+1),o}const un=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function hn(t){const[,e,n,s,r,i,a,o,u,h,l,c]=t,d=on(e,r,s,n,i,a,o);let m;return m=u?an[u]:h?0:pe(l,c),[d,new pt(m)]}const ln=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,cn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,dn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function mn(t){const[,e,n,s,r,i,a,o]=t;return[on(e,r,s,n,i,a,o),pt.utcInstance]}function fn(t){const[,e,n,s,r,i,a,o]=t;return[on(e,o,n,s,r,i,a),pt.utcInstance]}const yn=je(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ue),gn=je(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ue),wn=je(/(\d{4})-?(\d{3})/,Ue),pn=je(Je),vn=He((function(t,e){return[{year:Ke(t,e),month:Ke(t,e+1,1),day:Ke(t,e+2,1)},null,e+3]}),Xe,tn,en),bn=He(Ge,Xe,tn,en),kn=He(Ve,Xe,tn,en),Mn=He(Xe,tn,en),Sn=He(Xe),Dn=je(/(\d{4})-(\d\d)-(\d\d)/,Qe),Nn=je(Be),Tn=He(Xe,tn,en),En="Invalid Duration",xn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},On={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...xn},In={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...xn},$n=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Fn=$n.slice(0).reverse();function Cn(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Wn(s)}function Ln(t,e){let n=e.milliseconds??0;for(const s of Fn.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function An(t,e){const n=Ln(t,e)<0?-1:1;$n.reduceRight(((s,r)=>{if(Bt(e[r]))return s;if(s){const i=t[r][s],a=Math.floor(e[s]*n/i);e[r]+=a*n,e[s]-=a*i*n}return r}),null),$n.reduce(((n,s)=>{if(Bt(e[s]))return n;if(n){const r=e[n]%1;e[n]-=r,e[s]+=r*t[n][s]}return s}),null)}function Zn(t){const e={};for(const[n,s]of Object.entries(t))0!==s&&(e[n]=s);return e}class Wn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?In:On;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||gt.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Wn.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new M("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Wn({values:be(t,Wn.normalizeUnit),loc:gt.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Qt(t))return Wn.fromMillis(t);if(Wn.isDuration(t))return t;if("object"==typeof t)return Wn.fromObject(t);throw new M(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return ze(t,[sn,rn])}(t);return n?Wn.fromObject(n,e):Wn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return ze(t,[nn,Sn])}(t);return n?Wn.fromObject(n,e):Wn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new M("need to specify a reason the Duration is invalid");const n=t instanceof At?t:new At(t,e);if(Lt.throwOnInvalid)throw new v(n);return new Wn({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new k(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?qe.create(this.loc,n).formatDurationFromString(this,t):En}toHuman(t={}){if(!this.isValid)return En;const e=!1!==t.showZeros,n=$n.map((n=>{const s=this.values[n];return Bt(s)||0===s&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(s)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=he(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Os.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ln(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Wn.fromDurationLike(t),n={};for(const t of $n)(ne(e.values,t)||ne(this.values,t))&&(n[t]=e.get(t)+this.get(t));return Cn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Wn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=ve(t(this.values[n],n));return Cn(this,{values:e},!0)}get(t){return this[Wn.normalizeUnit(t)]}set(t){return this.isValid?Cn(this,{values:{...this.values,...be(t,Wn.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:s}={}){return Cn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:s,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return An(this.matrix,t),Cn(this,{values:t},!0)}rescale(){return this.isValid?Cn(this,{values:Zn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Wn.normalizeUnit(t)));const e={},n={},s=this.toObject();let r;for(const i of $n)if(t.indexOf(i)>=0){r=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;Qt(s[i])&&(t+=s[i]);const a=Math.trunc(t);e[i]=a,n[i]=(1e3*t-1e3*a)/1e3}else Qt(s[i])&&(n[i]=s[i]);for(const t in n)0!==n[t]&&(e[r]+=t===r?n[t]:n[t]/this.matrix[r][t]);return An(this.matrix,e),Cn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Cn(this,{values:t},!0)}removeZeros(){return this.isValid?Cn(this,{values:Zn(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const s of $n)if(n=t.values[s],!(void 0===(e=this.values[s])||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const qn="Invalid Interval";class _n{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new M("need to specify a reason the Interval is invalid");const n=t instanceof At?t:new At(t,e);if(Lt.throwOnInvalid)throw new p(n);return new _n({invalid:n})}static fromDateTimes(t,e){const n=Is(t),s=Is(e),r=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?_n.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:_n.invalid("missing or invalid end"):_n.invalid("missing or invalid start")}(n,s);return null==r?new _n({start:n,end:s}):r}static after(t,e){const n=Wn.fromDurationLike(e),s=Is(t);return _n.fromDateTimes(s,s.plus(n))}static before(t,e){const n=Wn.fromDurationLike(e),s=Is(t);return _n.fromDateTimes(s.minus(n),s)}static fromISO(t,e){const[n,s]=(t||"").split("/",2);if(n&&s){let t,r,i,a;try{t=Os.fromISO(n,e),r=t.isValid}catch(s){r=!1}try{i=Os.fromISO(s,e),a=i.isValid}catch(s){a=!1}if(r&&a)return _n.fromDateTimes(t,i);if(r){const n=Wn.fromISO(s,e);if(n.isValid)return _n.after(t,n)}else if(a){const t=Wn.fromISO(n,e);if(t.isValid)return _n.before(i,t)}}return _n.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let s;return s=e?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,s=s.startOf(t,e),Math.floor(s.diff(n,t).get(t))+(s.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?_n.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(Is).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s}=this,r=0;for(;s<this.e;){const t=e[r]||this.e,i=+t>+this.e?this.e:t;n.push(_n.fromDateTimes(s,i)),s=i,r+=1}return n}splitBy(t){const e=Wn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s}=this,r=1;const i=[];for(;s<this.e;){const t=this.start.plus(e.mapUnits((t=>t*r)));n=+t>+this.e?this.e:t,i.push(_n.fromDateTimes(s,n)),s=n,r+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:_n.fromDateTimes(e,n)}union(t){return this.isValid?_n.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const s=[],r=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...r).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&s.push(_n.fromDateTimes(e,t.time)),e=null);return _n.merge(s)}difference(...t){return _n.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:qn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=E,e={}){return this.isValid?qe.create(this.s.loc.clone(e),t).formatInterval(this):qn}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:qn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:qn}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:qn}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:qn}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Wn.invalid(this.invalidReason)}mapEndpoints(t){return _n.fromDateTimes(t(this.s),t(this.e))}}class jn{static hasDST(t=Lt.defaultZone){const e=Os.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return et.isValidZone(t)}static normalizeZone(t){return bt(t,Lt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||gt.create(e,n,r)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||gt.create(e,n,r)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null}={}){return(s||gt.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null}={}){return(s||gt.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return gt.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return gt.create(e,null,"gregory").eras(t)}static features(){return{relative:Xt(),localeWeek:te()}}}function Hn(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(Wn.fromMillis(s).as("days"))}function zn(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(-1!==t[n].search(kt.hanidec))e+=St.indexOf(t[n]);else for(const t in Mt){const[n,r]=Mt[t];s>=n&&s<=r&&(e+=s-n)}}return parseInt(e,10)}return e}(t))}}const Rn=`[ ${String.fromCharCode(160)}]`,Yn=new RegExp(Rn,"g");function Pn(t){return t.replace(/\./g,"\\.?").replace(Yn,Rn)}function Jn(t){return t.replace(/\./g,"").replace(Yn," ").toLowerCase()}function Un(t,e){return null===t?null:{regex:RegExp(t.map(Pn).join("|")),deser:([n])=>t.findIndex((t=>Jn(n)===Jn(t)))+e}}function Gn(t,e){return{regex:t,deser:([,t,e])=>pe(t,e),groups:e}}function Vn(t){return{regex:t,deser:([t])=>t}}const Bn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Qn=null;function Kn(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=es(qe.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}class Xn{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=Kn(qe.parseFormat(e),t),this.units=this.tokens.map((e=>function(t,e){const n=Nt(e),s=Nt(e,"{2}"),r=Nt(e,"{3}"),i=Nt(e,"{4}"),a=Nt(e,"{6}"),o=Nt(e,"{1,2}"),u=Nt(e,"{1,3}"),h=Nt(e,"{1,6}"),l=Nt(e,"{1,9}"),c=Nt(e,"{2,4}"),d=Nt(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return Un(e.eras("short"),0);case"GG":return Un(e.eras("long"),0);case"y":return zn(h);case"yy":case"kk":return zn(c,ge);case"yyyy":case"kkkk":return zn(i);case"yyyyy":return zn(d);case"yyyyyy":return zn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return zn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return zn(s);case"MMM":return Un(e.months("short",!0),1);case"MMMM":return Un(e.months("long",!0),1);case"LLL":return Un(e.months("short",!1),1);case"LLLL":return Un(e.months("long",!1),1);case"o":case"S":return zn(u);case"ooo":case"SSS":return zn(r);case"u":return Vn(l);case"uu":return Vn(o);case"uuu":case"E":case"c":return zn(n);case"a":return Un(e.meridiems(),0);case"EEE":return Un(e.weekdays("short",!1),1);case"EEEE":return Un(e.weekdays("long",!1),1);case"ccc":return Un(e.weekdays("short",!0),1);case"cccc":return Un(e.weekdays("long",!0),1);case"Z":case"ZZ":return Gn(new RegExp(`([+-]${o.source})(?::(${s.source}))?`),2);case"ZZZ":return Gn(new RegExp(`([+-]${o.source})(${s.source})?`),2);case"z":return Vn(/[a-z_+-/]{1,256}?/i);case" ":return Vn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),this.disqualifyingUnit=this.units.find((t=>t.invalidReason)),!this.disqualifyingUnit){const[t,e]=[`^${(n=this.units).map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,n];this.regex=RegExp(t,"i"),this.handlers=e}var n}explainFromTokens(t){if(this.isValid){const[e,n]=function(t,e,n){const s=t.match(e);if(s){const t={};let e=1;for(const r in n)if(ne(n,r)){const i=n[r],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(s.slice(e,e+a))),e+=a}return[s,t]}return[s,{}]}(t,this.regex,this.handlers),[s,r,i]=n?function(t){let e,n=null;return Bt(t.z)||(n=et.create(t.z)),Bt(t.Z)||(n||(n=new pt(t.Z)),e=t.Z),Bt(t.q)||(t.M=3*(t.q-1)+1),Bt(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Bt(t.u)||(t.S=ue(t.u)),[Object.keys(t).reduce(((e,n)=>{const s=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return s&&(e[s]=t[n]),e}),{}),n,e]}(n):[null,null,void 0];if(ne(n,"a")&&ne(n,"H"))throw new b("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:s,zone:r,specificOffset:i}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ts(t,e,n){return new Xn(t,n).explainFromTokens(e)}function es(t,e){if(!t)return null;const n=qe.create(e,t).dtFormatter((Qn||(Qn=Os.fromMillis(1555555555555)),Qn)),s=n.formatToParts(),r=n.resolvedOptions();return s.map((e=>function(t,e,n){const{type:s,value:r}=t;if("literal"===s){const t=/^\s+$/.test(r);return{literal:!t,val:t?" ":r}}let i=s;"hour"===s&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let a=Bn[i];if("object"==typeof a&&(a=a[e[s]]),a)return{literal:!1,val:a}}(e,t,r)))}const ns="Invalid DateTime",ss=864e13;function rs(t){return new At("unsupported zone",`the zone "${t.name}" is not supported`)}function is(t){return null===t.weekData&&(t.weekData=Rt(t.c)),t.weekData}function as(t){return null===t.localWeekData&&(t.localWeekData=Rt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function os(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Os({...n,...e,old:n})}function us(t,e,n){let s=t-60*e*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=60*(r-e)*1e3;const i=n.offset(s);return r===i?[s,r]:[t-60*Math.min(r,i)*1e3,Math.max(r,i)]}function hs(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function ls(t,e,n){return us(me(t),e,n)}function cs(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:s,month:r,day:Math.min(t.c.day,de(s,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=Wn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=me(i);let[u,h]=us(o,n,t.zone);return 0!==a&&(u+=a,h=t.zone.offset(u)),{ts:u,o:h}}function ds(t,e,n,s,r,i){const{setZone:a,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const s=e||o,r=Os.fromObject(t,{...n,zone:s,specificOffset:i});return a?r:r.setZone(o)}return Os.invalid(new At("unparsable",`the input "${r}" can't be parsed as ${s}`))}function ms(t,e,n=!0){return t.isValid?qe.create(gt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function fs(t,e,n){const s=t.c.year>9999||t.c.year<0;let r="";if(s&&t.c.year>=0&&(r+="+"),r+=ie(t.c.year,s?6:4),"year"===n)return r;if(e){if(r+="-",r+=ie(t.c.month),"month"===n)return r;r+="-"}else if(r+=ie(t.c.month),"month"===n)return r;return r+=ie(t.c.day),r}function ys(t,e,n,s,r,i,a){let o=!n||0!==t.c.millisecond||0!==t.c.second,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=ie(t.c.hour),"hour"===a)break;if(e){if(u+=":",u+=ie(t.c.minute),"minute"===a)break;o&&(u+=":",u+=ie(t.c.second))}else{if(u+=ie(t.c.minute),"minute"===a)break;o&&(u+=ie(t.c.second))}if("second"===a)break;!o||s&&0===t.c.millisecond||(u+=".",u+=ie(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&0===t.offset&&!i?u+="Z":t.o<0?(u+="-",u+=ie(Math.trunc(-t.o/60)),u+=":",u+=ie(Math.trunc(-t.o%60))):(u+="+",u+=ie(Math.trunc(t.o/60)),u+=":",u+=ie(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}const gs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ws={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ps={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vs=["year","month","day","hour","minute","second","millisecond"],bs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ks=["year","ordinal","hour","minute","second","millisecond"];function Ms(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new k(t);return e}function Ss(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ms(t)}}function Ds(t,e){const n=bt(e.zone,Lt.defaultZone);if(!n.isValid)return Os.invalid(rs(n));const s=gt.fromObject(e);let r,i;if(Bt(t.year))r=Lt.now();else{for(const e of vs)Bt(t[e])&&(t[e]=gs[e]);const e=Gt(t)||Vt(t);if(e)return Os.invalid(e);const s=function(t){if(void 0===Es&&(Es=Lt.now()),"iana"!==t.type)return t.offset(Es);const e=t.name;let n=xs.get(e);return void 0===n&&(n=t.offset(Es),xs.set(e,n)),n}(n);[r,i]=ls(t,s,n)}return new Os({ts:r,zone:n,loc:s,o:i})}function Ns(t,e,n){const s=!!Bt(n.round)||n.round,r=Bt(n.rounding)?"trunc":n.rounding,i=(t,i)=>(t=he(t,s||n.calendary?0:2,n.calendary?"round":r),e.loc.clone(n).relFormatter(n).format(t,i)),a=s=>n.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(n.unit)return i(a(n.unit),n.unit);for(const t of n.units){const e=a(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function Ts(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}let Es;const xs=new Map;class Os{constructor(t){const e=t.zone||Lt.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new At("invalid input"):null)||(e.isValid?null:rs(e));this.ts=Bt(t.ts)?Lt.now():t.ts;let s=null,r=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[s,r]=[t.old.c,t.old.o];else{const i=Qt(t.o)&&!t.old?t.o:e.offset(this.ts);s=hs(this.ts,i),n=Number.isNaN(s.year)?new At("invalid input"):null,s=n?null:s,r=n?null:i}this._zone=e,this.loc=t.loc||gt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=r,this.isLuxonDateTime=!0}static now(){return new Os({})}static local(){const[t,e]=Ts(arguments),[n,s,r,i,a,o,u]=e;return Ds({year:n,month:s,day:r,hour:i,minute:a,second:o,millisecond:u},t)}static utc(){const[t,e]=Ts(arguments),[n,s,r,i,a,o,u]=e;return t.zone=pt.utcInstance,Ds({year:n,month:s,day:r,hour:i,minute:a,second:o,millisecond:u},t)}static fromJSDate(t,e={}){const n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return Os.invalid("invalid input");const s=bt(e.zone,Lt.defaultZone);return s.isValid?new Os({ts:n,zone:s,loc:gt.fromObject(e)}):Os.invalid(rs(s))}static fromMillis(t,e={}){if(Qt(t))return t<-ss||t>ss?Os.invalid("Timestamp out of range"):new Os({ts:t,zone:bt(e.zone,Lt.defaultZone),loc:gt.fromObject(e)});throw new M(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Qt(t))return new Os({ts:1e3*t,zone:bt(e.zone,Lt.defaultZone),loc:gt.fromObject(e)});throw new M("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=bt(e.zone,Lt.defaultZone);if(!n.isValid)return Os.invalid(rs(n));const s=gt.fromObject(e),r=be(t,Ss),{minDaysInFirstWeek:i,startOfWeek:a}=Ut(r,s),o=Lt.now(),u=Bt(e.specificOffset)?n.offset(o):e.specificOffset,h=!Bt(r.ordinal),l=!Bt(r.year),c=!Bt(r.month)||!Bt(r.day),d=l||c,m=r.weekYear||r.weekNumber;if((d||h)&&m)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&h)throw new b("Can't mix ordinal dates with month/day");const f=m||r.weekday&&!d;let y,g,w=hs(o,u);f?(y=bs,g=ws,w=Rt(w,i,a)):h?(y=ks,g=ps,w=Pt(w)):(y=vs,g=gs);let p=!1;for(const t of y)Bt(r[t])?r[t]=p?g[t]:w[t]:p=!0;const v=f?function(t,e=4,n=1){const s=Kt(t.weekYear),r=re(t.weekNumber,1,ye(t.weekYear,e,n)),i=re(t.weekday,1,7);return s?r?!i&&qt("weekday",t.weekday):qt("week",t.weekNumber):qt("weekYear",t.weekYear)}(r,i,a):h?function(t){const e=Kt(t.year),n=re(t.ordinal,1,ce(t.year));return e?!n&&qt("ordinal",t.ordinal):qt("year",t.year)}(r):Gt(r),k=v||Vt(r);if(k)return Os.invalid(k);const M=f?Yt(r,i,a):h?Jt(r):r,[S,D]=ls(M,u,n),N=new Os({ts:S,zone:n,o:D,loc:s});return r.weekday&&d&&t.weekday!==N.weekday?Os.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${N.toISO()}`):N.isValid?N:Os.invalid(N.invalid)}static fromISO(t,e={}){const[n,s]=function(t){return ze(t,[yn,vn],[gn,bn],[wn,kn],[pn,Mn])}(t);return ds(n,s,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,s]=function(t){return ze(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[un,hn])}(t);return ds(n,s,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,s]=function(t){return ze(t,[ln,mn],[cn,mn],[dn,fn])}(t);return ds(n,s,e,"HTTP",e)}static fromFormat(t,e,n={}){if(Bt(t)||Bt(e))throw new M("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:r=null}=n,i=gt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),[a,o,u,h]=function(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:a}=ts(t,e,n);return[s,r,i,a]}(i,t,e);return h?Os.invalid(h):ds(a,o,n,`format ${e}`,t,u)}static fromString(t,e,n={}){return Os.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,s]=function(t){return ze(t,[Dn,vn],[Nn,Tn])}(t);return ds(n,s,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new M("need to specify a reason the DateTime is invalid");const n=t instanceof At?t:new At(t,e);if(Lt.throwOnInvalid)throw new w(n);return new Os({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=es(t,gt.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return Kn(qe.parseFormat(t),gt.fromObject(e)).map((t=>t.val)).join("")}static resetCache(){Es=void 0,xs.clear()}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?is(this).weekYear:NaN}get weekNumber(){return this.isValid?is(this).weekNumber:NaN}get weekday(){return this.isValid?is(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?as(this).weekday:NaN}get localWeekNumber(){return this.isValid?as(this).weekNumber:NaN}get localWeekYear(){return this.isValid?as(this).weekYear:NaN}get ordinal(){return this.isValid?Pt(this.c).ordinal:NaN}get monthShort(){return this.isValid?jn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?jn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?jn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?jn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=me(this.c),s=this.zone.offset(n-t),r=this.zone.offset(n+t),i=this.zone.offset(n-s*e),a=this.zone.offset(n-r*e);if(i===a)return[this];const o=n-i*e,u=n-a*e,h=hs(o,i),l=hs(u,a);return h.hour===l.hour&&h.minute===l.minute&&h.second===l.second&&h.millisecond===l.millisecond?[os(this,{ts:o}),os(this,{ts:u})]:[this]}get isInLeapYear(){return le(this.year)}get daysInMonth(){return de(this.year,this.month)}get daysInYear(){return this.isValid?ce(this.year):NaN}get weeksInWeekYear(){return this.isValid?ye(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ye(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:s}=qe.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:s}}toUTC(t=0,e={}){return this.setZone(pt.instance(t),e)}toLocal(){return this.setZone(Lt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=bt(t,Lt.defaultZone)).equals(this.zone))return this;if(t.isValid){let s=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[s]=ls(n,e,t)}return os(this,{ts:s,zone:t})}return Os.invalid(rs(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return os(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=be(t,Ss),{minDaysInFirstWeek:n,startOfWeek:s}=Ut(e,this.loc),r=!Bt(e.weekYear)||!Bt(e.weekNumber)||!Bt(e.weekday),i=!Bt(e.ordinal),a=!Bt(e.year),o=!Bt(e.month)||!Bt(e.day);if((a||o||i)&&(e.weekYear||e.weekNumber))throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new b("Can't mix ordinal dates with month/day");let u;r?u=Yt({...Rt(this.c,n,s),...e},n,s):Bt(e.ordinal)?(u={...this.toObject(),...e},Bt(e.day)&&(u.day=Math.min(de(u.year,u.month),u.day))):u=Jt({...Pt(this.c),...e});const[h,l]=ls(u,this.o,this.zone);return os(this,{ts:h,o:l})}plus(t){return this.isValid?os(this,cs(this,Wn.fromDurationLike(t))):this}minus(t){return this.isValid?os(this,cs(this,Wn.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},s=Wn.normalizeUnit(t);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===s)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e<t&&(n.weekNumber=this.weekNumber-1),n.weekday=t}else n.weekday=1;if("quarters"===s){const t=Math.ceil(this.month/3);n.month=3*(t-1)+1}return this.set(n)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?qe.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):ns}toLocaleString(t=E,e={}){return this.isValid?qe.create(this.loc.clone(e),t).formatDateTime(this):ns}toLocaleParts(t={}){return this.isValid?qe.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:r=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const a="extended"===t;let o=fs(this,a,i=Ms(i));return vs.indexOf(i)>=3&&(o+="T"),o+=ys(this,a,e,n,s,r,i),o}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?fs(this,"extended"===t,Ms(e)):null}toISOWeekDate(){return ms(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:r=!1,format:i="extended",precision:a="milliseconds"}={}){return this.isValid?(a=Ms(a),(s&&vs.indexOf(a)>=3?"T":"")+ys(this,"extended"===i,e,t,n,r,a)):null}toRFC2822(){return ms(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ms(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?fs(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(e||t)&&(n&&(s+=" "),e?s+="z":t&&(s+="ZZ")),ms(this,s,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():ns}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Wn.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...n},r=(o=e,Array.isArray(o)?o:[o]).map(Wn.normalizeUnit),i=t.valueOf()>this.valueOf(),a=function(t,e,n,s){let[r,i,a,o]=function(t,e,n){const s=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=Hn(t,e);return(n-n%7)/7}],["days",Hn]],r={},i=t;let a,o;for(const[u,h]of s)n.indexOf(u)>=0&&(a=u,r[u]=h(t,e),o=i.plus(r),o>e?(r[u]--,(t=i.plus(r))>e&&(o=t,r[u]--,t=i.plus(r))):t=o);return[t,r,o,a]}(t,e,n);const u=e-r,h=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===h.length&&(a<e&&(a=r.plus({[o]:1})),a!==r&&(i[o]=(i[o]||0)+u/(a-r)));const l=Wn.fromObject(i,s);return h.length>0?Wn.fromMillis(u,s).shiftTo(...h).plus(l):l}(i?this:t,i?t:this,r,s);var o;return i?a.negate():a}diffNow(t="milliseconds",e={}){return this.diff(Os.now(),t,e)}until(t){return this.isValid?_n.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const s=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e,n)<=s&&s<=r.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||Os.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let s=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(s=t.unit,r=void 0),Ns(e,this.plus(n),{...t,numeric:"always",units:s,unit:r})}toRelativeCalendar(t={}){return this.isValid?Ns(t.base||Os.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Os.isDateTime))throw new M("min requires all arguments be DateTimes");return ee(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(Os.isDateTime))throw new M("max requires all arguments be DateTimes");return ee(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:s=null,numberingSystem:r=null}=n;return ts(gt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return Os.fromFormatExplain(t,e,n)}static buildFormatParser(t,e={}){const{locale:n=null,numberingSystem:s=null}=e,r=gt.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return new Xn(r,t)}static fromFormatParser(t,e,n={}){if(Bt(t)||Bt(e))throw new M("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:r=null}=n,i=gt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});if(!i.equals(e.locale))throw new M(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${e.locale}`);const{result:a,zone:o,specificOffset:u,invalidReason:h}=e.explainFromTokens(t);return h?Os.invalid(h):ds(a,o,n,`format ${e.format}`,t,u)}static get DATE_SHORT(){return E}static get DATE_MED(){return x}static get DATE_MED_WITH_WEEKDAY(){return O}static get DATE_FULL(){return I}static get DATE_HUGE(){return $}static get TIME_SIMPLE(){return F}static get TIME_WITH_SECONDS(){return C}static get TIME_WITH_SHORT_OFFSET(){return L}static get TIME_WITH_LONG_OFFSET(){return A}static get TIME_24_SIMPLE(){return Z}static get TIME_24_WITH_SECONDS(){return W}static get TIME_24_WITH_SHORT_OFFSET(){return q}static get TIME_24_WITH_LONG_OFFSET(){return _}static get DATETIME_SHORT(){return j}static get DATETIME_SHORT_WITH_SECONDS(){return H}static get DATETIME_MED(){return z}static get DATETIME_MED_WITH_SECONDS(){return R}static get DATETIME_MED_WITH_WEEKDAY(){return Y}static get DATETIME_FULL(){return P}static get DATETIME_FULL_WITH_SECONDS(){return J}static get DATETIME_HUGE(){return U}static get DATETIME_HUGE_WITH_SECONDS(){return G}}function Is(t){if(Os.isDateTime(t))return t;if(t&&t.valueOf&&Qt(t.valueOf()))return Os.fromJSDate(t);if(t&&"object"==typeof t)return Os.fromObject(t);throw new M(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var $s={nextMonth:"Επόμενος μήνας",nextYears:"Επόμενα έτη",previousMonth:"Προηγούμενος μήνας",previousYears:"Προηγούμενα έτη"},Fs={nextMonth:"Next month",nextYears:"Next years",previousMonth:"Previous month",previousYears:"Previous years"},Cs={nextMonth:"Mes siguiente",nextYears:"Años siguientes",previousMonth:"Mes anterior",previousYears:"Años anteriores"},Ls={nextMonth:"Mese successivo",nextYears:"Anni successivi",previousMonth:"Mese precedente",previousYears:"Anni precedenti"};const As=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.datesEmitter=n(this,"mdsCalendarChange",7),this.navigationEmitter=n(this,"mdsCalendarNavigate",7),this.hoverEmitter=n(this,"mdsCalendarHover",7),this.checkPreselectionsEmitter=n(this,"mdsCalendarPreselect",7),this.t=new l({el:$s,en:Fs,es:Cs,it:Ls}),this.hasPreselection=!1,this.currentDate=Os.now(),this.weekDaysinMonth=[],this.weekdays=[],this.startDateIdentifier=null,this.endDateIdentifier=null,this.isFirstClick=!0,this.currentView="calendar",this.selectedYear=this.currentDate.year,this.singlePicker=!1,this.hidePreviousButton=!1,this.hideNextButton=!1,this.disableMonthYearSelection=!1,this.hidePreselection=!1,this.hideToday=!1,this.viewDate=null,this.hoverDate=null,this.startDate=null,this.endDate=null,this.min=null,this.max=null,this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.internalHoverDate=null,this.currentMonth="",this.currentYear="",this.updatePreselection=()=>{this.hasPreselection=u(this.host,"preselection")||null!==this.host.querySelector(".date-preselection--has-preselection")},this.handleMouseOver=t=>{const e=t.target;if(!e.matches("mds-calendar-cell")||this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate)return;const n=e.getAttribute("date");null!==n&&""!==n&&(n!==this.internalHoverDate&&(this.internalHoverDate=n,requestAnimationFrame((()=>this.setDates()))),this.hoverEmitter.emit({hoverDate:n}))},this.handleMouseLeave=()=>{const t=null!==this.internalHoverDate;this.internalHoverDate=null,this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate||(t&&requestAnimationFrame((()=>this.setDates())),null!==this.hoverDate&&""!==this.hoverDate&&this.hoverEmitter.emit({hoverDate:null}))},this.handleMonthActionClick=t=>{t.stopPropagation(),this.disableMonthYearSelection?t.preventDefault():(this.currentView="months"===this.currentView?"calendar":"months",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handleYearActionClick=t=>{t.stopPropagation(),this.disableMonthYearSelection?t.preventDefault():(this.currentView="years"===this.currentView?"calendar":"years",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handlePrev=t=>{"calendar"===this.currentView?(t.stopPropagation(),this.changeMonth(-1)):"years"===this.currentView?(t.stopPropagation(),this.selectedYear-=10):t.stopPropagation()},this.handleNext=t=>{"calendar"===this.currentView?(t.stopPropagation(),this.changeMonth(1)):"years"===this.currentView?(t.stopPropagation(),this.selectedYear+=10):t.stopPropagation()},this.handleCellClick=t=>e=>{e.stopPropagation();const n=e.currentTarget;this.singlePicker?this.handleSingleSelection(n,t):this.handleRange(n,t)},this.handleMonthSelect=t=>e=>{e.stopPropagation(),this.currentDate=this.currentDate.set({month:t}),this.currentMonth=this.currentDate.toFormat("MMMM"),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))},this.handleYearSelect=t=>e=>{e.stopPropagation(),this.currentDate=this.currentDate.set({year:t}),this.currentYear=t.toString(),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}}handleStartDate(t){const e=this.parseDateProp(t,"start-date");null!==e?(this.internalStartDate=e,this.startDateTime=Os.fromISO(e),this.startDateIdentifier=this.startDateTime.toISODate(),null!==this.internalEndDate&&""!==this.internalEndDate?this.orderRange():this.singlePicker||(this.isFirstClick=!1),this.updateDates()):(this.internalStartDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.isFirstClick=!0,this.updateDates())}handleEndDate(t){if(this.singlePicker)return console.warn("singlePicker is enabled, endDate cannot be set"),void(this.internalEndDate=null);const e=this.parseDateProp(t,"end-date");null!==e?(this.internalEndDate=e,this.endDateTime=Os.fromISO(e),this.endDateIdentifier=this.endDateTime.toISODate(),null!==this.internalStartDate&&""!==this.internalStartDate&&this.orderRange(),this.updateDates()):(this.internalEndDate=null,this.endDateIdentifier=null,this.endDateTime=null,this.updateDates())}handleViewDate(t){if(null!==t&&""!==t){const e=Os.fromISO(t.toString());e.isValid&&(this.currentDate=e,this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})))}}handleHoverDate(){requestAnimationFrame((()=>this.setDates()))}orderRange(){if(null===this.internalStartDate||null===this.internalEndDate)return;const t=Os.fromISO(this.internalStartDate),e=Os.fromISO(this.internalEndDate);t<=e||(console.warn("mds-calendar: startDate is after endDate, swapping values"),[this.internalStartDate,this.internalEndDate]=[this.internalEndDate,this.internalStartDate],this.startDateTime=e,this.endDateTime=t,this.startDateIdentifier=e.toISODate(),this.endDateIdentifier=t.toISODate())}parseDateProp(t,e){if(null===t||""===t)return null;const n=o(t.toString());return null!==n&&Os.fromISO(n).isValid?n:(console.warn(`mds-calendar: ignoring the invalid ${e} "${t}"`),null)}componentWillLoad(){if(this.internalStartDate=this.parseDateProp(this.internalStartDate,"start-date"),this.internalEndDate=this.parseDateProp(this.internalEndDate,"end-date"),this.singlePicker&&null!==this.internalEndDate&&(console.warn("singlePicker is enabled, endDate cannot be set"),this.internalEndDate=null),this.orderRange(),null!==this.viewDate&&""!==this.viewDate){const t=Os.fromISO(this.viewDate.toString());t.isValid&&(this.currentDate=t)}else null!==this.internalStartDate&&(this.startDateTime=Os.fromISO(this.internalStartDate),this.currentDate=this.startDateTime);null!==this.internalEndDate&&(this.endDateTime=Os.fromISO(this.internalEndDate)),this.updateCalendar()}componentDidLoad(){var t,e,n;this.updatePreselection(),null===(e=null===(t=this.host)||void 0===t?void 0:t.shadowRoot)||void 0===e||e.addEventListener("mouseover",this.handleMouseOver),null===(n=this.host)||void 0===n||n.addEventListener("mouseleave",this.handleMouseLeave),this.setDates()}disconnectedCallback(){var t,e,n;null===(e=null===(t=this.host)||void 0===t?void 0:t.shadowRoot)||void 0===e||e.removeEventListener("mouseover",this.handleMouseOver),null===(n=this.host)||void 0===n||n.removeEventListener("mouseleave",this.handleMouseLeave)}async updateCurrentDate(t){return this.currentDate=Os.fromISO(t),await this.updateCalendar(),await new Promise((t=>{requestAnimationFrame((()=>{this.setDates(),t()}))})),Promise.resolve()}resolveHoverDate(){return null!==this.hoverDate&&""!==this.hoverDate?this.hoverDate:this.internalHoverDate}updateDates(){this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}async updateCalendar(){try{const t=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map(((e,n)=>t.setLocale(a.state.language).plus({days:n}).toFormat("ccc"))),this.calculateWeekDaysInMonth(),this.currentMonth=this.currentDate.setLocale(a.state.language).toFormat("MMMM"),this.currentMonthNumber=this.currentDate.month,this.currentYear=this.currentDate.toFormat("yyyy")}catch(t){console.error("Error while updating the calendar:",t)}}setDates(){const t=this.host;if(null==t)return;const{shadowRoot:e}=t;if(!e)return;const n=e.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(this.singlePicker)this.setSingleSelection(n,e);else{const t=this.resolveHoverDate();null===t||null!==this.internalEndDate&&""!==this.internalEndDate?this.setRangeSelection(n,e):this.setHoverSelection(n,e,t)}}clearSelectionState(t){t.forEach((t=>{t.removeAttribute("selection"),t.removeAttribute("preview")}))}setRangeSelection(t,e){if(this.clearSelectionState(t),null===this.internalStartDate||""===this.internalStartDate)return;if(this.startDateTime=Os.fromISO(this.internalStartDate.toString()),null===this.internalEndDate||""===this.internalEndDate)return this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1,void e.querySelectorAll("mds-calendar-cell").forEach((t=>{t.getAttribute("date")===this.startDateTime.toFormat("yyyy-MM-dd")&&(t.setAttribute("selection","single"),t.setAttribute("preview","true"))}));this.endDateTime=Os.fromISO(this.internalEndDate.toString()),this.startDateIdentifier=this.startDateTime.toISODate(),this.endDateIdentifier=this.endDateTime.toISODate();const n=e.querySelectorAll("mds-calendar-cell");if(null!=n){let t;for(let e=0;e<n.length;e++){const s=n[e].getAttribute("date");if(null!==s&&""!==s){const r=Os.fromISO(s);r.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&n[e].setAttribute("selection","start"),r.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")&&(this.startDateTime.equals(this.endDateTime)?n[e].setAttribute("selection","single"):n[e].setAttribute("selection","end")),t=r>this.startDateTime&&r<this.endDateTime,t&&n[e].setAttribute("selection","middle")}}}}setHoverSelection(t,e,n){if(this.clearSelectionState(t),null===this.internalStartDate||""===this.internalStartDate)return void this.setRangeSelection(t,e);const s=Os.fromISO(this.internalStartDate),r=Os.fromISO(n);if(!s.isValid||!r.isValid)return void this.setRangeSelection(t,e);const i=s<=r;Array.from(e.querySelectorAll("mds-calendar-cell")).forEach((t=>{const e=t.getAttribute("date");if(null===e||""===e)return;const n=Os.fromISO(e);if(!n.isValid)return;if(!(i?n>=s&&n<=r:n>=r&&n<=s))return;t.setAttribute("preview","true");let a="middle";s.equals(r)&&n.equals(s)?a="single":n.equals(s)?a=i?"start":"end":n.equals(r)&&(a=i?"end":"start"),t.setAttribute("selection",a)}))}setSingleSelection(t,e){if(this.clearSelectionState(t),null===this.internalStartDate||""===this.internalStartDate)return;this.startDateTime=Os.fromISO(this.internalStartDate.toString());const n=e.querySelectorAll("mds-calendar-cell");if(null!=n)for(let t=0;t<n.length;t++){const e=n[t].getAttribute("date");null!==e&&""!==e&&Os.fromISO(e).toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&n[t].setAttribute("selection","single")}}changeMonth(t){this.currentDate=this.currentDate.plus({months:t}),this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})),this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:t})}calculateWeekDaysInMonth(){const t=this.currentDate.startOf("month"),e=this.currentDate.endOf("month"),n=[];for(let e=t.minus({days:t.weekday-1});e<t;e=e.plus({days:1}))n.push({date:e,isCurrentMonth:!1});for(let s=t;s<=e;s=s.plus({days:1}))n.push({date:s,isCurrentMonth:!0});const s=7-e.weekday,r=e.plus({days:1});for(let t=r;t<r.plus({days:s});t=t.plus({days:1}))n.push({date:t,isCurrentMonth:!1});this.weekDaysinMonth=n}handleRange(t,e){if(!this.singlePicker&&(null===this.endDate||""===this.endDate)&&(null===this.internalEndDate||""===this.internalEndDate)&&this.isFirstClick){const t=this.parseDateProp(this.startDate||this.host.getAttribute("start-date"),"start-date");null!==t&&(this.internalStartDate=t,this.startDateTime=Os.fromISO(t),this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1)}if(null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&null!==this.endDateIdentifier&&""!==this.endDateIdentifier&&(()=>{this.internalStartDate=null,this.internalEndDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.endDateIdentifier=null,this.endDateTime=null,this.isFirstClick=!0;const t=this.host;requestAnimationFrame((()=>{var e;null===(e=null==t?void 0:t.shadowRoot)||void 0===e||e.querySelectorAll("mds-calendar-cell[selection]").forEach((t=>{t.removeAttribute("selection"),t.removeAttribute("preview")}))}))})(),this.isFirstClick){this.startDateIdentifier=e.toISODate(),this.startDateTime=e,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1;const n=this.host;return requestAnimationFrame((()=>{var t;null===(t=null==n?void 0:n.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar-cell[selection]").forEach((t=>{t.removeAttribute("selection")}))})),requestAnimationFrame((()=>{t.setAttribute("selection","single"),t.setAttribute("preview","true")})),void this.datesEmitter.emit({startDate:this.internalStartDate})}null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&Os.fromISO(this.startDateIdentifier)<Os.fromISO(t.getAttribute("date"))?(this.endDateIdentifier=t.getAttribute("date"),this.endDateTime=e,this.internalEndDate=this.endDateTime.toISO().split("T")[0]):(this.endDateIdentifier=this.startDateIdentifier,this.endDateTime=this.startDateTime,this.internalEndDate=this.internalStartDate,this.startDateIdentifier=t.getAttribute("date"),this.startDateTime=e,this.internalStartDate=this.startDateTime.toISO().split("T")[0]),requestAnimationFrame((()=>this.setDates())),null!==this.internalStartDate&&""!==this.internalStartDate&&null!==this.internalEndDate&&""!==this.internalEndDate&&(this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.checkPreselectionsEmitter.emit())}handleSingleSelection(t,e){var n;const s=this.host;null===(n=null==s?void 0:s.shadowRoot)||void 0===n||n.querySelectorAll("mds-calendar-cell[selection]").forEach((t=>{t.removeAttribute("selection")})),this.startDateIdentifier=t.getAttribute("date"),this.startDateTime=e,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1,t.setAttribute("selection","single"),null!==this.internalStartDate&&""!==this.internalStartDate&&this.datesEmitter.emit({startDate:this.internalStartDate})}isDateDisabled(t){return null!==this.min&&""!==this.min&&t<Os.fromISO(this.min)||null!==this.max&&""!==this.max&&t>Os.fromISO(this.max)||void 0}render(){return s(r,{key:"5ece6c00dd42e09020407a839a354c3076565a2f"},s("div",{key:"49f671efc9d432d9c4eb4d28f0c6b33b9873422d",class:h("calendar-preselection",this.hasPreselection&&!this.hidePreselection&&"calendar-preselection--has-preselection")},s("slot",{key:"c2a4f2f42dd5e56a5f8f91666d89cae614f56186",name:"preselection",onSlotchange:this.updatePreselection})),s("div",{key:"b6e9ad5d16530969414894ef8b2725d029bc3dff",class:"calendar-view"},s("nav",{key:"d1fb5573c5b47ce8ed9cb47f4ce728b89f87fd5e"},!this.hidePreviousButton&&s("mds-button",{key:"1e65631d9cb3757ee22a6b333828199bcf356d87","aria-label":this.t.get("years"===this.currentView?"previousYears":"previousMonth"),class:"action-back",disabled:"months"===this.currentView,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z"/></svg>',variant:"dark",tone:"text",onClick:this.handlePrev}),s("div",{key:"01a1fc7f777d8dfa4ebac2ef9ed4a46bf7eb67b4",class:"select-month-or-year"},("calendar"===this.currentView||"months"===this.currentView)&&s("mds-button",{key:"c6fe68177bf27cb74a29d687df79a83403d48cb0",class:"action-month",truncate:"none",variant:"dark",tone:"text",label:this.currentMonth,onClick:this.handleMonthActionClick}),("calendar"===this.currentView||"years"===this.currentView)&&s("mds-button",{key:"4370a3e90fa6ecc64f3e6948690627f4271669b2",class:"action-year",truncate:"none",variant:"dark",tone:"text",label:this.currentYear,onClick:this.handleYearActionClick})),!this.hideNextButton&&s("mds-button",{key:"4cea0bf61baf52db367566835856d675a15cbc66","aria-label":this.t.get("years"===this.currentView?"nextYears":"nextMonth"),class:"action-forward",disabled:"months"===this.currentView,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>',variant:"dark",tone:"text",onClick:this.handleNext})),"calendar"===this.currentView&&s("section",{key:"23bd1514cd3390ea62c773f0d93ef21002163827",class:"month-view"},s("header",{key:"4d87c57be1eb6f653889775a037947b4e54100fb",class:"month-view__days-names"},this.weekdays.map((t=>s("mds-button",{class:"week-day-name",variant:"dark",tone:"text",label:t})))),s("div",{key:"dc486f4388d2c4052ee05150e9b5eab4c56d26e9",class:"month-view__cells"},this.weekDaysinMonth.map(((t,e)=>s("mds-calendar-cell",{key:e,today:!this.hideToday&&Os.now().toFormat("yyyy-MM-dd")===t.date.toFormat("yyyy-MM-dd"),date:t.date.toFormat("yyyy-MM-dd"),month:t.isCurrentMonth?"current":"other",disabled:this.isDateDisabled(t.date),onClick:this.handleCellClick(t.date),title:t.date.setLocale(a.state.language).toFormat("cccc d LLLL").replace(/^./,(t=>t.toUpperCase())),label:t.date.toFormat("dd")}))))),"months"===this.currentView&&s("section",{key:"f48bd4d763824ae2becb1f377e51ae9c71454301",class:"month-selection"},s("header",{key:"34cd5dd481b16891bb7987f2b2a5a145636658ea",class:"month-view__month-names"},Array.from({length:12}).map(((t,e)=>{const n=Os.local().set({month:e+1}).setLocale(a.state.language).toFormat("MMMM");return s("mds-button",{class:"action",variant:"dark",tone:"text",label:n,onClick:this.handleMonthSelect(e+1)})})))),"years"===this.currentView&&s("section",{key:"f9df821453277ca1e20fe56bb8533768b68e62b0",class:"year-selection"},s("header",{key:"4aa693be77a139bfd8bedf79b0516b17763937ce",class:"month-view__years"},Array.from({length:12}).map(((t,e)=>{const n=this.selectedYear+e;return s("mds-button",{class:"action",variant:"dark",tone:"text",label:`${n}`,onClick:this.handleYearSelect(n)})}))))))}get host(){return this}static get watchers(){return{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-calendar-day-number-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-calendar-cell-gap:calc(var(--spacing,.0025rem)*50);--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));--mds-calendar-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-calendar-padding:calc(var(--spacing,.0025rem)*400);--mds-calendar-select-month-or-year-height:calc(var(--spacing,.0025rem)*900);--mds-calendar-select-month-or-year-width:calc(var(--spacing,.0025rem)*5600);--mds-calendar-max-width:calc(var(--spacing,.0025rem)*12000);background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));corner-shape:var(--magma-corner-shape,squircle);cursor:auto;display:inline-flex;inline-size:100%;max-width:var(--mds-calendar-max-width,calc(var(--spacing,.0025rem)*12000));min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:inherit;box-sizing:border-box;corner-shape:inherit;display:grid;flex:auto;width:100%}.calendar-preselection,.calendar-view{padding:var(--mds-calendar-padding,calc(var(--spacing,.0025rem)*400))}.calendar-preselection{display:none;gap:calc(var(--spacing,.0025rem)*50);grid-auto-rows:min-content}.calendar-preselection--has-preselection{display:grid}nav{display:flex;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;min-width:0}.action{justify-content:left;min-width:min-content;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-back,.action-forward{flex-shrink:0}.select-month-or-year{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));border-radius:min(var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))),var(--magma-corner-cap,.5) * var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900)));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;flex:0 0 var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));justify-content:flex-start;max-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));min-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));overflow:hidden}.action-month,.action-year{--mds-button-radius:0;align-self:stretch;block-size:100%;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-month{flex:auto;min-width:0}.action-year{flex:0 0 calc(var(--spacing,.0025rem)*1800)}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{align-items:center;block-size:calc(var(--spacing,.0025rem)*1200);inline-size:100%;min-height:auto;padding:0}.month-view__cells,.month-view__days-names{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7,minmax(1px,100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3,minmax(1px,100%));min-width:0}"}},[257,"mds-calendar",{singlePicker:[4,"single-picker"],hidePreviousButton:[4,"hide-previous-button"],hideNextButton:[4,"hide-next-button"],disableMonthYearSelection:[4,"disable-month-year-selection"],hidePreselection:[4,"hide-preselection"],hideToday:[4,"hide-today"],viewDate:[513,"view-date"],hoverDate:[513,"hover-date"],startDate:[513,"start-date"],endDate:[513,"end-date"],min:[513],max:[513],hasPreselection:[32],currentDate:[32],weekDaysinMonth:[32],weekdays:[32],startDateIdentifier:[32],endDateIdentifier:[32],isFirstClick:[32],currentView:[32],selectedYear:[32],internalStartDate:[32],internalEndDate:[32],currentMonth:[32],currentYear:[32],updateCurrentDate:[64]},void 0,{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}]);function Zs(){"undefined"!=typeof customElements&&["mds-calendar","mds-button","mds-calendar-cell","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-calendar":customElements.get(i(t))||customElements.define(i(t),As);break;case"mds-button":customElements.get(i(t))||c();break;case"mds-calendar-cell":customElements.get(i(t))||d();break;case"mds-icon":customElements.get(i(t))||m();break;case"mds-spinner":customElements.get(i(t))||f();break;case"mds-text":customElements.get(i(t))||y()}}))}export{Os as D,As as M,Zs as d}
|
|
1
|
+
import{p as t,H as e,d as n,h as s,c as r,t as i}from"./p-TZJN-ygm.js";import{p as a}from"./p-Bbrei_yQ.js";import{s as o}from"./p-CACEYk42.js";import{h as u}from"./p-DWIIDHSa.js";import{c as h}from"./p-ChV9xqsO.js";import{L as l}from"./p-CvbuCEYD.js";import{d as c}from"./p-BE05D6Pe.js";import{d}from"./p-DZ4_zLTp.js";import{d as m}from"./p-BBrPpCNK.js";import{d as f}from"./p-C6LU1s8K.js";import{d as y}from"./p-DN1yF-xO.js";class g extends Error{}class w extends g{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class p extends g{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class v extends g{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class b extends g{}class k extends g{constructor(t){super(`Invalid unit ${t}`)}}class M extends g{}class S extends g{constructor(){super("Zone is an abstract class")}}const D="numeric",N="short",T="long",E={year:D,month:D,day:D},x={year:D,month:N,day:D},O={year:D,month:N,day:D,weekday:N},$={year:D,month:T,day:D},I={year:D,month:T,day:D,weekday:T},F={hour:D,minute:D},L={hour:D,minute:D,second:D},C={hour:D,minute:D,second:D,timeZoneName:N},A={hour:D,minute:D,second:D,timeZoneName:T},Z={hour:D,minute:D,hourCycle:"h23"},W={hour:D,minute:D,second:D,hourCycle:"h23"},_={hour:D,minute:D,second:D,hourCycle:"h23",timeZoneName:N},q={hour:D,minute:D,second:D,hourCycle:"h23",timeZoneName:T},j={year:D,month:D,day:D,hour:D,minute:D},z={year:D,month:D,day:D,hour:D,minute:D,second:D},H={year:D,month:N,day:D,hour:D,minute:D},P={year:D,month:N,day:D,hour:D,minute:D,second:D},Y={year:D,month:N,day:D,weekday:N,hour:D,minute:D},R={year:D,month:T,day:D,hour:D,minute:D,timeZoneName:N},U={year:D,month:T,day:D,hour:D,minute:D,second:D,timeZoneName:N},J={year:D,month:T,day:D,weekday:T,hour:D,minute:D,timeZoneName:T},G={year:D,month:T,day:D,weekday:T,hour:D,minute:D,second:D,timeZoneName:T};class V{get type(){throw new S}get name(){throw new S}get ianaName(){return this.name}get isUniversal(){throw new S}offsetName(t,e){throw new S}formatOffset(t,e){throw new S}offset(t){throw new S}equals(t){throw new S}get isValid(){throw new S}}let B=null;class Q extends V{static get instance(){return null===B&&(B=new Q),B}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return we(t,e,n)}formatOffset(t,e){return ke(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}const K=new Map,X={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},tt=new Map;class et extends V{static create(t){let e=tt.get(t);return void 0===e&&tt.set(t,e=new et(t)),e}static resetCache(){tt.clear(),K.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=et.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return we(t,e,n,this.name)}formatOffset(t,e){return ke(this.offset(t),e)}offset(t){if(!this.valid)return NaN;const e=new Date(t);if(isNaN(e))return NaN;const n=function(t){let e=K.get(t);return void 0===e&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),K.set(t,e)),e}(this.name);let[s,r,i,a,o,u,h]=n.formatToParts?function(t,e){const n=t.formatToParts(e),s=[];for(let t=0;t<n.length;t++){const{type:e,value:r}=n[t],i=X[e];"era"===e?s[i]=r:Bt(i)||(s[i]=parseInt(r,10))}return s}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,a,o,u,h,l]=s;return[a,r,i,o,u,h,l]}(n,e);"BC"===a&&(s=1-Math.abs(s));let l=+e;const c=l%1e3;return l-=c>=0?c:1e3+c,(me({year:s,month:r,day:i,hour:24===o?0:o,minute:u,second:h,millisecond:0})-l)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let nt={};const st=new Map;function rt(t,e={}){const n=JSON.stringify([t,e]);let s=st.get(n);return void 0===s&&(s=new Intl.DateTimeFormat(t,e),st.set(n,s)),s}const it=new Map,at=new Map;let ot=null;const ut=new Map;function ht(t){let e=ut.get(t);return void 0===e&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),ut.set(t,e)),e}const lt=new Map;function ct(t,e,n,s){const r=t.listingMode();return"error"===r?null:"en"===r?n(e):s(e)}class dt{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:r,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let s=it.get(n);return void 0===s&&(s=new Intl.NumberFormat(t,e),it.set(n,s)),s}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return ie(this.floor?Math.floor(t):he(t,3),this.padTo)}}class mt{constructor(t,e,n){let s;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&et.create(n).valid?(s=n,this.dt=t):(s="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,s=t.zone.name):(s="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||s,this.dtf=rt(e,r)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class ft{constructor(t,e,n){this.opts={style:"long",...n},!e&&Xt()&&(this.rtf=function(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=at.get(r);return void 0===i&&(i=new Intl.RelativeTimeFormat(t,e),at.set(r,i)),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${r[t][0]}`;case-1:return n?"yesterday":`last ${r[t][0]}`;case 0:return n?"today":`this ${r[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=1===o,h=r[t],l=s?u?h[1]:h[2]||h[1]:u?r[t][0]:t;return a?`${o} ${l} ago`:`in ${o} ${l}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const yt={firstDay:1,minimalDays:4,weekend:[6,7]};class gt{static fromOpts(t){return gt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,s,r=!1){const i=t||Ct.defaultLocale,a=i||(r?"en-US":ot||(ot=(new Intl.DateTimeFormat).resolvedOptions().locale,ot)),o=e||Ct.defaultNumberingSystem,u=n||Ct.defaultOutputCalendar,h=se(s)||Ct.defaultWeekSettings;return new gt(a,o,u,h,i)}static resetCache(){ot=null,st.clear(),it.clear(),at.clear(),ut.clear(),lt.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:s}={}){return gt.create(t,e,n,s)}constructor(t,e,n,s,r){const[i,a,o]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,s;try{e=rt(t).resolvedOptions(),s=t}catch(r){const i=t.substring(0,n);e=rt(i).resolvedOptions(),s=i}const{numberingSystem:r,calendar:i}=e;return[s,r,i]}}(t);this.locale=i,this.numberingSystem=e||a||null,this.outputCalendar=n||o||null,this.weekSettings=s,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===ht(t.locale).numberingSystem)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?gt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,se(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return ct(this,t,Te,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),s=(e&=!n)?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){const e=[];for(let n=1;n<=12;n++){const s=Os.utc(2009,n,1);e.push(t(s))}return e}(n?t=>this.dtFormatter(t,s).format():t=>this.extract(t,s,"month"))),this.monthsCache[r][t]}))}weekdays(t,e=!1){return ct(this,t,$e,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},s=e?"format":"standalone";return this.weekdaysCache[s][t]||(this.weekdaysCache[s][t]=function(t){const e=[];for(let n=1;n<=7;n++){const s=Os.utc(2016,11,13+n);e.push(t(s))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[s][t]}))}meridiems(){return ct(this,void 0,(()=>Ie),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Os.utc(2016,11,13,9),Os.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return ct(this,t,Ae,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Os.utc(-40,1,1),Os.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const s=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return s?s.value:null}numberFormatter(t={}){return new dt(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new mt(t,this.intl,e)}relFormatter(t={}){return new ft(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let s=nt[n];return s||(s=new Intl.ListFormat(t,e),nt[n]=s),s}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||ht(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:te()?function(t){let e=lt.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...yt,...e}),lt.set(t,e)}return e}(this.locale):yt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let wt=null;class pt extends V{static get utcInstance(){return null===wt&&(wt=new pt(0)),wt}static instance(t){return 0===t?pt.utcInstance:new pt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new pt(pe(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ke(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ke(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return ke(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class vt extends V{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bt(t,e){if(Bt(t)||null===t)return e;if(t instanceof V)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?Q.instance:"utc"===n||"gmt"===n?pt.utcInstance:pt.parseSpecifier(n)||et.create(t)}return Qt(t)?pt.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new vt(t)}const kt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Mt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},St=kt.hanidec.replace(/[\[|\]]/g,"").split(""),Dt=new Map;function Nt({numberingSystem:t},e=""){const n=t||"latn";let s=Dt.get(n);void 0===s&&(s=new Map,Dt.set(n,s));let r=s.get(e);return void 0===r&&(r=new RegExp(`${kt[n]}${e}`),s.set(e,r)),r}let Tt,Et=()=>Date.now(),xt="system",Ot=null,$t=null,It=null,Ft=60,Lt=null;class Ct{static get now(){return Et}static set now(t){Et=t}static set defaultZone(t){xt=t}static get defaultZone(){return bt(xt,Q.instance)}static get defaultLocale(){return Ot}static set defaultLocale(t){Ot=t}static get defaultNumberingSystem(){return $t}static set defaultNumberingSystem(t){$t=t}static get defaultOutputCalendar(){return It}static set defaultOutputCalendar(t){It=t}static get defaultWeekSettings(){return Lt}static set defaultWeekSettings(t){Lt=se(t)}static get twoDigitCutoffYear(){return Ft}static set twoDigitCutoffYear(t){Ft=t%100}static get throwOnInvalid(){return Tt}static set throwOnInvalid(t){Tt=t}static resetCaches(){gt.resetCache(),et.resetCache(),Os.resetCache(),Dt.clear()}}class At{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Zt=[0,31,59,90,120,151,181,212,243,273,304,334],Wt=[0,31,60,91,121,152,182,213,244,274,305,335];function _t(t,e){return new At("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function qt(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return 0===r?7:r}function jt(t,e,n){return n+(le(t)?Wt:Zt)[e-1]}function zt(t,e){const n=le(t)?Wt:Zt,s=n.findIndex((t=>t<e));return{month:s+1,day:e-n[s]}}function Ht(t,e){return(t-e+7)%7+1}function Pt(t,e=4,n=1){const{year:s,month:r,day:i}=t,a=jt(s,r,i),o=Ht(qt(s,r,i),n);let u,h=Math.floor((a-o+14-e)/7);return h<1?(u=s-1,h=ye(u,e,n)):h>ye(s,e,n)?(u=s+1,h=1):u=s,{weekYear:u,weekNumber:h,weekday:o,...Me(t)}}function Yt(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,a=Ht(qt(s,1,e),n),o=ce(s);let u,h=7*r+i-a-7+e;h<1?(u=s-1,h+=ce(u)):h>o?(u=s+1,h-=ce(s)):u=s;const{month:l,day:c}=zt(u,h);return{year:u,month:l,day:c,...Me(t)}}function Rt(t){const{year:e,month:n,day:s}=t;return{year:e,ordinal:jt(e,n,s),...Me(t)}}function Ut(t){const{year:e,ordinal:n}=t,{month:s,day:r}=zt(e,n);return{year:e,month:s,day:r,...Me(t)}}function Jt(t,e){if(!Bt(t.localWeekday)||!Bt(t.localWeekNumber)||!Bt(t.localWeekYear)){if(!Bt(t.weekday)||!Bt(t.weekNumber)||!Bt(t.weekYear))throw new b("Cannot mix locale-based week fields with ISO-based week fields");return Bt(t.localWeekday)||(t.weekday=t.localWeekday),Bt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Bt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Gt(t){const e=Kt(t.year),n=re(t.month,1,12),s=re(t.day,1,de(t.year,t.month));return e?n?!s&&_t("day",t.day):_t("month",t.month):_t("year",t.year)}function Vt(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=re(e,0,23)||24===e&&0===n&&0===s&&0===r,a=re(n,0,59),o=re(s,0,59),u=re(r,0,999);return i?a?o?!u&&_t("millisecond",r):_t("second",s):_t("minute",n):_t("hour",e)}function Bt(t){return void 0===t}function Qt(t){return"number"==typeof t}function Kt(t){return"number"==typeof t&&t%1==0}function Xt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function te(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function ee(t,e,n){if(0!==t.length)return t.reduce(((t,s)=>{const r=[e(s),s];return t&&n(t[0],r[0])===t[0]?t:r}),null)[1]}function ne(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function se(t){if(null==t)return null;if("object"!=typeof t)throw new M("Week settings must be an object");if(!re(t.firstDay,1,7)||!re(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!re(t,1,7))))throw new M("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function re(t,e,n){return Kt(t)&&t>=e&&t<=n}function ie(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function ae(t){return Bt(t)||null===t||""===t?void 0:parseInt(t,10)}function oe(t){return Bt(t)||null===t||""===t?void 0:parseFloat(t)}function ue(t){if(!Bt(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function he(t,e,n="round"){const s=10**e;switch(n){case"expand":return t>0?Math.ceil(t*s)/s:Math.floor(t*s)/s;case"trunc":return Math.trunc(t*s)/s;case"round":return Math.round(t*s)/s;case"floor":return Math.floor(t*s)/s;case"ceil":return Math.ceil(t*s)/s;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function le(t){return t%4==0&&(t%100!=0||t%400==0)}function ce(t){return le(t)?366:365}function de(t,e){const n=(s=e-1)-12*Math.floor(s/12)+1;var s;return 2===n?le(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function me(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function fe(t,e,n){return-Ht(qt(t,1,e),n)+e-1}function ye(t,e=4,n=1){const s=fe(t,e,n),r=fe(t+1,e,n);return(ce(t)-s+r)/7}function ge(t){return t>99?t:t>Ct.twoDigitCutoffYear?1900+t:2e3+t}function we(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(r).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function pe(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-s:s)}function ve(t){const e=Number(t);if("boolean"==typeof t||""===t||!Number.isFinite(e))throw new M(`Invalid unit value ${t}`);return e}function be(t,e){const n={};for(const s in t)if(ne(t,s)){const r=t[s];if(null==r)continue;n[e(s)]=ve(r)}return n}function ke(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${ie(n,2)}:${ie(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${ie(n,2)}${ie(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Me(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const Se=["January","February","March","April","May","June","July","August","September","October","November","December"],De=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ne=["J","F","M","A","M","J","J","A","S","O","N","D"];function Te(t){switch(t){case"narrow":return[...Ne];case"short":return[...De];case"long":return[...Se];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ee=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],xe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Oe=["M","T","W","T","F","S","S"];function $e(t){switch(t){case"narrow":return[...Oe];case"short":return[...xe];case"long":return[...Ee];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ie=["AM","PM"],Fe=["Before Christ","Anno Domini"],Le=["BC","AD"],Ce=["B","A"];function Ae(t){switch(t){case"narrow":return[...Ce];case"short":return[...Le];case"long":return[...Fe];default:return null}}function Ze(t,e){let n="";for(const s of t)n+=s.literal?s.val:e(s.val);return n}const We={D:E,DD:x,DDD:$,DDDD:I,t:F,tt:L,ttt:C,tttt:A,T:Z,TT:W,TTT:_,TTTT:q,f:j,ff:H,fff:R,ffff:J,F:z,FF:P,FFF:U,FFFF:G};class _e{static create(t,e={}){return new _e(t,e)}static parseFormat(t){let e=null,n="",s=!1;const r=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);"'"===a?((n.length>0||s)&&r.push({literal:s||/^\s+$/.test(n),val:""===n?"'":n}),e=null,n="",s=!s):s||a===e?n+=a:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=a,e=a)}return n.length>0&&r.push({literal:s||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(t){return We[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,n){if(this.opts.forceSimple)return ie(t,e);const s={...this.opts};return e>0&&(s.padTo=e),n&&(s.signDisplay=n),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=(e,s)=>n?function(t,e){return Te(e)[t.month-1]}(t,e):r(s?{month:e}:{month:e,day:"numeric"},"month"),o=(e,s)=>n?function(t,e){return $e(e)[t.weekday-1]}(t,e):r(s?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const n=_e.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},h=e=>n?function(t,e){return Ae(e)[t.year<0?0:1]}(t,e):r({era:e},"era");return Ze(_e.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return Ie[t.hour<12?0:1]}(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return s?r({day:"numeric"},"day"):this.num(t.day);case"dd":return s?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return s?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return s?r({month:"numeric"},"month"):this.num(t.month);case"MM":return s?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return s?r({year:"numeric"},"year"):this.num(t.year);case"yy":return s?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return s?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,e){const n="negativeLargestOnly"===this.opts.signMode?-1:1,s=t=>{switch(t[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},r=_e.parseFormat(e),i=r.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]),a=t.shiftTo(...i.map(s).filter((t=>t)));return Ze(r,((t,e)=>r=>{const i=s(r);if(i){const s=e.isNegativeDuration&&i!==e.largestUnit?n:1;let a;return a="negativeLargestOnly"===this.opts.signMode&&i!==e.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(t.get(i)*s,r.length,a)}return r})(a,{isNegativeDuration:a<0,largestUnit:Object.keys(a.values)[0]}))}}const qe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function je(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function ze(...t){return e=>t.reduce((([t,n,s],r)=>{const[i,a,o]=r(e,s);return[{...t,...i},a||n,o]}),[{},null,1]).slice(0,2)}function He(t,...e){if(null==t)return[null,null];for(const[n,s]of e){const e=n.exec(t);if(e)return s(e)}return[null,null]}function Pe(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=ae(e[n+r]);return[s,null,n+r]}}const Ye=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Re=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ue=RegExp(`${Re.source}(?:${Ye.source}?(?:\\[(${qe.source})\\])?)?`),Je=RegExp(`(?:[Tt]${Ue.source})?`),Ge=Pe("weekYear","weekNumber","weekDay"),Ve=Pe("year","ordinal"),Be=RegExp(`${Re.source} ?(?:${Ye.source}|(${qe.source}))?`),Qe=RegExp(`(?: ${Be.source})?`);function Ke(t,e,n){const s=t[e];return Bt(s)?n:ae(s)}function Xe(t,e){return[{hours:Ke(t,e,0),minutes:Ke(t,e+1,0),seconds:Ke(t,e+2,0),milliseconds:ue(t[e+3])},null,e+4]}function tn(t,e){const n=!t[e]&&!t[e+1],s=pe(t[e+1],t[e+2]);return[{},n?null:pt.instance(s),e+3]}function en(t,e){return[{},t[e]?et.create(t[e]):null,e+1]}const nn=RegExp(`^T?${Re.source}$`),sn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function rn(t){const[e,n,s,r,i,a,o,u,h]=t,l="-"===e[0],c=u&&"-"===u[0],d=(t,e=!1)=>void 0!==t&&(e||t&&l)?-t:t;return[{years:d(oe(n)),months:d(oe(s)),weeks:d(oe(r)),days:d(oe(i)),hours:d(oe(a)),minutes:d(oe(o)),seconds:d(oe(u),"-0"===u),milliseconds:d(ue(h),c)}]}const an={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function on(t,e,n,s,r,i,a){const o={year:2===e.length?ge(ae(e)):ae(e),month:De.indexOf(n)+1,day:ae(s),hour:ae(r),minute:ae(i)};return a&&(o.second=ae(a)),t&&(o.weekday=t.length>3?Ee.indexOf(t)+1:xe.indexOf(t)+1),o}const un=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function hn(t){const[,e,n,s,r,i,a,o,u,h,l,c]=t,d=on(e,r,s,n,i,a,o);let m;return m=u?an[u]:h?0:pe(l,c),[d,new pt(m)]}const ln=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,cn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,dn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function mn(t){const[,e,n,s,r,i,a,o]=t;return[on(e,r,s,n,i,a,o),pt.utcInstance]}function fn(t){const[,e,n,s,r,i,a,o]=t;return[on(e,o,n,s,r,i,a),pt.utcInstance]}const yn=je(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Je),gn=je(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Je),wn=je(/(\d{4})-?(\d{3})/,Je),pn=je(Ue),vn=ze((function(t,e){return[{year:Ke(t,e),month:Ke(t,e+1,1),day:Ke(t,e+2,1)},null,e+3]}),Xe,tn,en),bn=ze(Ge,Xe,tn,en),kn=ze(Ve,Xe,tn,en),Mn=ze(Xe,tn,en),Sn=ze(Xe),Dn=je(/(\d{4})-(\d\d)-(\d\d)/,Qe),Nn=je(Be),Tn=ze(Xe,tn,en),En="Invalid Duration",xn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},On={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...xn},$n={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...xn},In=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Fn=In.slice(0).reverse();function Ln(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Wn(s)}function Cn(t,e){let n=e.milliseconds??0;for(const s of Fn.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function An(t,e){const n=Cn(t,e)<0?-1:1;In.reduceRight(((s,r)=>{if(Bt(e[r]))return s;if(s){const i=t[r][s],a=Math.floor(e[s]*n/i);e[r]+=a*n,e[s]-=a*i*n}return r}),null),In.reduce(((n,s)=>{if(Bt(e[s]))return n;if(n){const r=e[n]%1;e[n]-=r,e[s]+=r*t[n][s]}return s}),null)}function Zn(t){const e={};for(const[n,s]of Object.entries(t))0!==s&&(e[n]=s);return e}class Wn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?$n:On;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||gt.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Wn.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new M("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Wn({values:be(t,Wn.normalizeUnit),loc:gt.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Qt(t))return Wn.fromMillis(t);if(Wn.isDuration(t))return t;if("object"==typeof t)return Wn.fromObject(t);throw new M(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return He(t,[sn,rn])}(t);return n?Wn.fromObject(n,e):Wn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return He(t,[nn,Sn])}(t);return n?Wn.fromObject(n,e):Wn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new M("need to specify a reason the Duration is invalid");const n=t instanceof At?t:new At(t,e);if(Ct.throwOnInvalid)throw new v(n);return new Wn({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new k(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?_e.create(this.loc,n).formatDurationFromString(this,t):En}toHuman(t={}){if(!this.isValid)return En;const e=!1!==t.showZeros,n=In.map((n=>{const s=this.values[n];return Bt(s)||0===s&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(s)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=he(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Os.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Cn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Wn.fromDurationLike(t),n={};for(const t of In)(ne(e.values,t)||ne(this.values,t))&&(n[t]=e.get(t)+this.get(t));return Ln(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Wn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=ve(t(this.values[n],n));return Ln(this,{values:e},!0)}get(t){return this[Wn.normalizeUnit(t)]}set(t){return this.isValid?Ln(this,{values:{...this.values,...be(t,Wn.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:s}={}){return Ln(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:s,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return An(this.matrix,t),Ln(this,{values:t},!0)}rescale(){return this.isValid?Ln(this,{values:Zn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Wn.normalizeUnit(t)));const e={},n={},s=this.toObject();let r;for(const i of In)if(t.indexOf(i)>=0){r=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;Qt(s[i])&&(t+=s[i]);const a=Math.trunc(t);e[i]=a,n[i]=(1e3*t-1e3*a)/1e3}else Qt(s[i])&&(n[i]=s[i]);for(const t in n)0!==n[t]&&(e[r]+=t===r?n[t]:n[t]/this.matrix[r][t]);return An(this.matrix,e),Ln(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Ln(this,{values:t},!0)}removeZeros(){return this.isValid?Ln(this,{values:Zn(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const s of In)if(n=t.values[s],!(void 0===(e=this.values[s])||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const _n="Invalid Interval";class qn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new M("need to specify a reason the Interval is invalid");const n=t instanceof At?t:new At(t,e);if(Ct.throwOnInvalid)throw new p(n);return new qn({invalid:n})}static fromDateTimes(t,e){const n=$s(t),s=$s(e),r=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?qn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:qn.invalid("missing or invalid end"):qn.invalid("missing or invalid start")}(n,s);return null==r?new qn({start:n,end:s}):r}static after(t,e){const n=Wn.fromDurationLike(e),s=$s(t);return qn.fromDateTimes(s,s.plus(n))}static before(t,e){const n=Wn.fromDurationLike(e),s=$s(t);return qn.fromDateTimes(s.minus(n),s)}static fromISO(t,e){const[n,s]=(t||"").split("/",2);if(n&&s){let t,r,i,a;try{t=Os.fromISO(n,e),r=t.isValid}catch(s){r=!1}try{i=Os.fromISO(s,e),a=i.isValid}catch(s){a=!1}if(r&&a)return qn.fromDateTimes(t,i);if(r){const n=Wn.fromISO(s,e);if(n.isValid)return qn.after(t,n)}else if(a){const t=Wn.fromISO(n,e);if(t.isValid)return qn.before(i,t)}}return qn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let s;return s=e?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,s=s.startOf(t,e),Math.floor(s.diff(n,t).get(t))+(s.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?qn.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map($s).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s}=this,r=0;for(;s<this.e;){const t=e[r]||this.e,i=+t>+this.e?this.e:t;n.push(qn.fromDateTimes(s,i)),s=i,r+=1}return n}splitBy(t){const e=Wn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s}=this,r=1;const i=[];for(;s<this.e;){const t=this.start.plus(e.mapUnits((t=>t*r)));n=+t>+this.e?this.e:t,i.push(qn.fromDateTimes(s,n)),s=n,r+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:qn.fromDateTimes(e,n)}union(t){return this.isValid?qn.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const s=[],r=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...r).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&s.push(qn.fromDateTimes(e,t.time)),e=null);return qn.merge(s)}difference(...t){return qn.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:_n}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=E,e={}){return this.isValid?_e.create(this.s.loc.clone(e),t).formatInterval(this):_n}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:_n}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:_n}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:_n}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:_n}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Wn.invalid(this.invalidReason)}mapEndpoints(t){return qn.fromDateTimes(t(this.s),t(this.e))}}class jn{static hasDST(t=Ct.defaultZone){const e=Os.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return et.isValidZone(t)}static normalizeZone(t){return bt(t,Ct.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||gt.create(e,n,r)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||gt.create(e,n,r)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null}={}){return(s||gt.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null}={}){return(s||gt.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return gt.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return gt.create(e,null,"gregory").eras(t)}static features(){return{relative:Xt(),localeWeek:te()}}}function zn(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(Wn.fromMillis(s).as("days"))}function Hn(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(-1!==t[n].search(kt.hanidec))e+=St.indexOf(t[n]);else for(const t in Mt){const[n,r]=Mt[t];s>=n&&s<=r&&(e+=s-n)}}return parseInt(e,10)}return e}(t))}}const Pn=`[ ${String.fromCharCode(160)}]`,Yn=new RegExp(Pn,"g");function Rn(t){return t.replace(/\./g,"\\.?").replace(Yn,Pn)}function Un(t){return t.replace(/\./g,"").replace(Yn," ").toLowerCase()}function Jn(t,e){return null===t?null:{regex:RegExp(t.map(Rn).join("|")),deser:([n])=>t.findIndex((t=>Un(n)===Un(t)))+e}}function Gn(t,e){return{regex:t,deser:([,t,e])=>pe(t,e),groups:e}}function Vn(t){return{regex:t,deser:([t])=>t}}const Bn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Qn=null;function Kn(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=es(_e.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}class Xn{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=Kn(_e.parseFormat(e),t),this.units=this.tokens.map((e=>function(t,e){const n=Nt(e),s=Nt(e,"{2}"),r=Nt(e,"{3}"),i=Nt(e,"{4}"),a=Nt(e,"{6}"),o=Nt(e,"{1,2}"),u=Nt(e,"{1,3}"),h=Nt(e,"{1,6}"),l=Nt(e,"{1,9}"),c=Nt(e,"{2,4}"),d=Nt(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return Jn(e.eras("short"),0);case"GG":return Jn(e.eras("long"),0);case"y":return Hn(h);case"yy":case"kk":return Hn(c,ge);case"yyyy":case"kkkk":return Hn(i);case"yyyyy":return Hn(d);case"yyyyyy":return Hn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Hn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Hn(s);case"MMM":return Jn(e.months("short",!0),1);case"MMMM":return Jn(e.months("long",!0),1);case"LLL":return Jn(e.months("short",!1),1);case"LLLL":return Jn(e.months("long",!1),1);case"o":case"S":return Hn(u);case"ooo":case"SSS":return Hn(r);case"u":return Vn(l);case"uu":return Vn(o);case"uuu":case"E":case"c":return Hn(n);case"a":return Jn(e.meridiems(),0);case"EEE":return Jn(e.weekdays("short",!1),1);case"EEEE":return Jn(e.weekdays("long",!1),1);case"ccc":return Jn(e.weekdays("short",!0),1);case"cccc":return Jn(e.weekdays("long",!0),1);case"Z":case"ZZ":return Gn(new RegExp(`([+-]${o.source})(?::(${s.source}))?`),2);case"ZZZ":return Gn(new RegExp(`([+-]${o.source})(${s.source})?`),2);case"z":return Vn(/[a-z_+-/]{1,256}?/i);case" ":return Vn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),this.disqualifyingUnit=this.units.find((t=>t.invalidReason)),!this.disqualifyingUnit){const[t,e]=[`^${(n=this.units).map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,n];this.regex=RegExp(t,"i"),this.handlers=e}var n}explainFromTokens(t){if(this.isValid){const[e,n]=function(t,e,n){const s=t.match(e);if(s){const t={};let e=1;for(const r in n)if(ne(n,r)){const i=n[r],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(s.slice(e,e+a))),e+=a}return[s,t]}return[s,{}]}(t,this.regex,this.handlers),[s,r,i]=n?function(t){let e,n=null;return Bt(t.z)||(n=et.create(t.z)),Bt(t.Z)||(n||(n=new pt(t.Z)),e=t.Z),Bt(t.q)||(t.M=3*(t.q-1)+1),Bt(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Bt(t.u)||(t.S=ue(t.u)),[Object.keys(t).reduce(((e,n)=>{const s=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return s&&(e[s]=t[n]),e}),{}),n,e]}(n):[null,null,void 0];if(ne(n,"a")&&ne(n,"H"))throw new b("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:s,zone:r,specificOffset:i}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ts(t,e,n){return new Xn(t,n).explainFromTokens(e)}function es(t,e){if(!t)return null;const n=_e.create(e,t).dtFormatter((Qn||(Qn=Os.fromMillis(1555555555555)),Qn)),s=n.formatToParts(),r=n.resolvedOptions();return s.map((e=>function(t,e,n){const{type:s,value:r}=t;if("literal"===s){const t=/^\s+$/.test(r);return{literal:!t,val:t?" ":r}}let i=s;"hour"===s&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let a=Bn[i];if("object"==typeof a&&(a=a[e[s]]),a)return{literal:!1,val:a}}(e,t,r)))}const ns="Invalid DateTime",ss=864e13;function rs(t){return new At("unsupported zone",`the zone "${t.name}" is not supported`)}function is(t){return null===t.weekData&&(t.weekData=Pt(t.c)),t.weekData}function as(t){return null===t.localWeekData&&(t.localWeekData=Pt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function os(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Os({...n,...e,old:n})}function us(t,e,n){let s=t-60*e*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=60*(r-e)*1e3;const i=n.offset(s);return r===i?[s,r]:[t-60*Math.min(r,i)*1e3,Math.max(r,i)]}function hs(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function ls(t,e,n){return us(me(t),e,n)}function cs(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:s,month:r,day:Math.min(t.c.day,de(s,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=Wn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=me(i);let[u,h]=us(o,n,t.zone);return 0!==a&&(u+=a,h=t.zone.offset(u)),{ts:u,o:h}}function ds(t,e,n,s,r,i){const{setZone:a,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const s=e||o,r=Os.fromObject(t,{...n,zone:s,specificOffset:i});return a?r:r.setZone(o)}return Os.invalid(new At("unparsable",`the input "${r}" can't be parsed as ${s}`))}function ms(t,e,n=!0){return t.isValid?_e.create(gt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function fs(t,e,n){const s=t.c.year>9999||t.c.year<0;let r="";if(s&&t.c.year>=0&&(r+="+"),r+=ie(t.c.year,s?6:4),"year"===n)return r;if(e){if(r+="-",r+=ie(t.c.month),"month"===n)return r;r+="-"}else if(r+=ie(t.c.month),"month"===n)return r;return r+=ie(t.c.day),r}function ys(t,e,n,s,r,i,a){let o=!n||0!==t.c.millisecond||0!==t.c.second,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=ie(t.c.hour),"hour"===a)break;if(e){if(u+=":",u+=ie(t.c.minute),"minute"===a)break;o&&(u+=":",u+=ie(t.c.second))}else{if(u+=ie(t.c.minute),"minute"===a)break;o&&(u+=ie(t.c.second))}if("second"===a)break;!o||s&&0===t.c.millisecond||(u+=".",u+=ie(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&0===t.offset&&!i?u+="Z":t.o<0?(u+="-",u+=ie(Math.trunc(-t.o/60)),u+=":",u+=ie(Math.trunc(-t.o%60))):(u+="+",u+=ie(Math.trunc(t.o/60)),u+=":",u+=ie(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}const gs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ws={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ps={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vs=["year","month","day","hour","minute","second","millisecond"],bs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ks=["year","ordinal","hour","minute","second","millisecond"];function Ms(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new k(t);return e}function Ss(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ms(t)}}function Ds(t,e){const n=bt(e.zone,Ct.defaultZone);if(!n.isValid)return Os.invalid(rs(n));const s=gt.fromObject(e);let r,i;if(Bt(t.year))r=Ct.now();else{for(const e of vs)Bt(t[e])&&(t[e]=gs[e]);const e=Gt(t)||Vt(t);if(e)return Os.invalid(e);const s=function(t){if(void 0===Es&&(Es=Ct.now()),"iana"!==t.type)return t.offset(Es);const e=t.name;let n=xs.get(e);return void 0===n&&(n=t.offset(Es),xs.set(e,n)),n}(n);[r,i]=ls(t,s,n)}return new Os({ts:r,zone:n,loc:s,o:i})}function Ns(t,e,n){const s=!!Bt(n.round)||n.round,r=Bt(n.rounding)?"trunc":n.rounding,i=(t,i)=>(t=he(t,s||n.calendary?0:2,n.calendary?"round":r),e.loc.clone(n).relFormatter(n).format(t,i)),a=s=>n.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(n.unit)return i(a(n.unit),n.unit);for(const t of n.units){const e=a(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function Ts(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}let Es;const xs=new Map;class Os{constructor(t){const e=t.zone||Ct.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new At("invalid input"):null)||(e.isValid?null:rs(e));this.ts=Bt(t.ts)?Ct.now():t.ts;let s=null,r=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[s,r]=[t.old.c,t.old.o];else{const i=Qt(t.o)&&!t.old?t.o:e.offset(this.ts);s=hs(this.ts,i),n=Number.isNaN(s.year)?new At("invalid input"):null,s=n?null:s,r=n?null:i}this._zone=e,this.loc=t.loc||gt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=r,this.isLuxonDateTime=!0}static now(){return new Os({})}static local(){const[t,e]=Ts(arguments),[n,s,r,i,a,o,u]=e;return Ds({year:n,month:s,day:r,hour:i,minute:a,second:o,millisecond:u},t)}static utc(){const[t,e]=Ts(arguments),[n,s,r,i,a,o,u]=e;return t.zone=pt.utcInstance,Ds({year:n,month:s,day:r,hour:i,minute:a,second:o,millisecond:u},t)}static fromJSDate(t,e={}){const n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return Os.invalid("invalid input");const s=bt(e.zone,Ct.defaultZone);return s.isValid?new Os({ts:n,zone:s,loc:gt.fromObject(e)}):Os.invalid(rs(s))}static fromMillis(t,e={}){if(Qt(t))return t<-ss||t>ss?Os.invalid("Timestamp out of range"):new Os({ts:t,zone:bt(e.zone,Ct.defaultZone),loc:gt.fromObject(e)});throw new M(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Qt(t))return new Os({ts:1e3*t,zone:bt(e.zone,Ct.defaultZone),loc:gt.fromObject(e)});throw new M("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=bt(e.zone,Ct.defaultZone);if(!n.isValid)return Os.invalid(rs(n));const s=gt.fromObject(e),r=be(t,Ss),{minDaysInFirstWeek:i,startOfWeek:a}=Jt(r,s),o=Ct.now(),u=Bt(e.specificOffset)?n.offset(o):e.specificOffset,h=!Bt(r.ordinal),l=!Bt(r.year),c=!Bt(r.month)||!Bt(r.day),d=l||c,m=r.weekYear||r.weekNumber;if((d||h)&&m)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&h)throw new b("Can't mix ordinal dates with month/day");const f=m||r.weekday&&!d;let y,g,w=hs(o,u);f?(y=bs,g=ws,w=Pt(w,i,a)):h?(y=ks,g=ps,w=Rt(w)):(y=vs,g=gs);let p=!1;for(const t of y)Bt(r[t])?r[t]=p?g[t]:w[t]:p=!0;const v=f?function(t,e=4,n=1){const s=Kt(t.weekYear),r=re(t.weekNumber,1,ye(t.weekYear,e,n)),i=re(t.weekday,1,7);return s?r?!i&&_t("weekday",t.weekday):_t("week",t.weekNumber):_t("weekYear",t.weekYear)}(r,i,a):h?function(t){const e=Kt(t.year),n=re(t.ordinal,1,ce(t.year));return e?!n&&_t("ordinal",t.ordinal):_t("year",t.year)}(r):Gt(r),k=v||Vt(r);if(k)return Os.invalid(k);const M=f?Yt(r,i,a):h?Ut(r):r,[S,D]=ls(M,u,n),N=new Os({ts:S,zone:n,o:D,loc:s});return r.weekday&&d&&t.weekday!==N.weekday?Os.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${N.toISO()}`):N.isValid?N:Os.invalid(N.invalid)}static fromISO(t,e={}){const[n,s]=function(t){return He(t,[yn,vn],[gn,bn],[wn,kn],[pn,Mn])}(t);return ds(n,s,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,s]=function(t){return He(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[un,hn])}(t);return ds(n,s,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,s]=function(t){return He(t,[ln,mn],[cn,mn],[dn,fn])}(t);return ds(n,s,e,"HTTP",e)}static fromFormat(t,e,n={}){if(Bt(t)||Bt(e))throw new M("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:r=null}=n,i=gt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),[a,o,u,h]=function(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:a}=ts(t,e,n);return[s,r,i,a]}(i,t,e);return h?Os.invalid(h):ds(a,o,n,`format ${e}`,t,u)}static fromString(t,e,n={}){return Os.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,s]=function(t){return He(t,[Dn,vn],[Nn,Tn])}(t);return ds(n,s,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new M("need to specify a reason the DateTime is invalid");const n=t instanceof At?t:new At(t,e);if(Ct.throwOnInvalid)throw new w(n);return new Os({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=es(t,gt.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return Kn(_e.parseFormat(t),gt.fromObject(e)).map((t=>t.val)).join("")}static resetCache(){Es=void 0,xs.clear()}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?is(this).weekYear:NaN}get weekNumber(){return this.isValid?is(this).weekNumber:NaN}get weekday(){return this.isValid?is(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?as(this).weekday:NaN}get localWeekNumber(){return this.isValid?as(this).weekNumber:NaN}get localWeekYear(){return this.isValid?as(this).weekYear:NaN}get ordinal(){return this.isValid?Rt(this.c).ordinal:NaN}get monthShort(){return this.isValid?jn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?jn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?jn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?jn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=me(this.c),s=this.zone.offset(n-t),r=this.zone.offset(n+t),i=this.zone.offset(n-s*e),a=this.zone.offset(n-r*e);if(i===a)return[this];const o=n-i*e,u=n-a*e,h=hs(o,i),l=hs(u,a);return h.hour===l.hour&&h.minute===l.minute&&h.second===l.second&&h.millisecond===l.millisecond?[os(this,{ts:o}),os(this,{ts:u})]:[this]}get isInLeapYear(){return le(this.year)}get daysInMonth(){return de(this.year,this.month)}get daysInYear(){return this.isValid?ce(this.year):NaN}get weeksInWeekYear(){return this.isValid?ye(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ye(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:s}=_e.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:s}}toUTC(t=0,e={}){return this.setZone(pt.instance(t),e)}toLocal(){return this.setZone(Ct.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=bt(t,Ct.defaultZone)).equals(this.zone))return this;if(t.isValid){let s=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[s]=ls(n,e,t)}return os(this,{ts:s,zone:t})}return Os.invalid(rs(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return os(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=be(t,Ss),{minDaysInFirstWeek:n,startOfWeek:s}=Jt(e,this.loc),r=!Bt(e.weekYear)||!Bt(e.weekNumber)||!Bt(e.weekday),i=!Bt(e.ordinal),a=!Bt(e.year),o=!Bt(e.month)||!Bt(e.day);if((a||o||i)&&(e.weekYear||e.weekNumber))throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new b("Can't mix ordinal dates with month/day");let u;r?u=Yt({...Pt(this.c,n,s),...e},n,s):Bt(e.ordinal)?(u={...this.toObject(),...e},Bt(e.day)&&(u.day=Math.min(de(u.year,u.month),u.day))):u=Ut({...Rt(this.c),...e});const[h,l]=ls(u,this.o,this.zone);return os(this,{ts:h,o:l})}plus(t){return this.isValid?os(this,cs(this,Wn.fromDurationLike(t))):this}minus(t){return this.isValid?os(this,cs(this,Wn.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},s=Wn.normalizeUnit(t);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===s)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e<t&&(n.weekNumber=this.weekNumber-1),n.weekday=t}else n.weekday=1;if("quarters"===s){const t=Math.ceil(this.month/3);n.month=3*(t-1)+1}return this.set(n)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?_e.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):ns}toLocaleString(t=E,e={}){return this.isValid?_e.create(this.loc.clone(e),t).formatDateTime(this):ns}toLocaleParts(t={}){return this.isValid?_e.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:r=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const a="extended"===t;let o=fs(this,a,i=Ms(i));return vs.indexOf(i)>=3&&(o+="T"),o+=ys(this,a,e,n,s,r,i),o}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?fs(this,"extended"===t,Ms(e)):null}toISOWeekDate(){return ms(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:r=!1,format:i="extended",precision:a="milliseconds"}={}){return this.isValid?(a=Ms(a),(s&&vs.indexOf(a)>=3?"T":"")+ys(this,"extended"===i,e,t,n,r,a)):null}toRFC2822(){return ms(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ms(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?fs(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(e||t)&&(n&&(s+=" "),e?s+="z":t&&(s+="ZZ")),ms(this,s,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():ns}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Wn.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...n},r=(o=e,Array.isArray(o)?o:[o]).map(Wn.normalizeUnit),i=t.valueOf()>this.valueOf(),a=function(t,e,n,s){let[r,i,a,o]=function(t,e,n){const s=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=zn(t,e);return(n-n%7)/7}],["days",zn]],r={},i=t;let a,o;for(const[u,h]of s)n.indexOf(u)>=0&&(a=u,r[u]=h(t,e),o=i.plus(r),o>e?(r[u]--,(t=i.plus(r))>e&&(o=t,r[u]--,t=i.plus(r))):t=o);return[t,r,o,a]}(t,e,n);const u=e-r,h=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===h.length&&(a<e&&(a=r.plus({[o]:1})),a!==r&&(i[o]=(i[o]||0)+u/(a-r)));const l=Wn.fromObject(i,s);return h.length>0?Wn.fromMillis(u,s).shiftTo(...h).plus(l):l}(i?this:t,i?t:this,r,s);var o;return i?a.negate():a}diffNow(t="milliseconds",e={}){return this.diff(Os.now(),t,e)}until(t){return this.isValid?qn.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const s=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e,n)<=s&&s<=r.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||Os.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let s=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(s=t.unit,r=void 0),Ns(e,this.plus(n),{...t,numeric:"always",units:s,unit:r})}toRelativeCalendar(t={}){return this.isValid?Ns(t.base||Os.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Os.isDateTime))throw new M("min requires all arguments be DateTimes");return ee(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(Os.isDateTime))throw new M("max requires all arguments be DateTimes");return ee(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:s=null,numberingSystem:r=null}=n;return ts(gt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return Os.fromFormatExplain(t,e,n)}static buildFormatParser(t,e={}){const{locale:n=null,numberingSystem:s=null}=e,r=gt.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return new Xn(r,t)}static fromFormatParser(t,e,n={}){if(Bt(t)||Bt(e))throw new M("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:r=null}=n,i=gt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});if(!i.equals(e.locale))throw new M(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${e.locale}`);const{result:a,zone:o,specificOffset:u,invalidReason:h}=e.explainFromTokens(t);return h?Os.invalid(h):ds(a,o,n,`format ${e.format}`,t,u)}static get DATE_SHORT(){return E}static get DATE_MED(){return x}static get DATE_MED_WITH_WEEKDAY(){return O}static get DATE_FULL(){return $}static get DATE_HUGE(){return I}static get TIME_SIMPLE(){return F}static get TIME_WITH_SECONDS(){return L}static get TIME_WITH_SHORT_OFFSET(){return C}static get TIME_WITH_LONG_OFFSET(){return A}static get TIME_24_SIMPLE(){return Z}static get TIME_24_WITH_SECONDS(){return W}static get TIME_24_WITH_SHORT_OFFSET(){return _}static get TIME_24_WITH_LONG_OFFSET(){return q}static get DATETIME_SHORT(){return j}static get DATETIME_SHORT_WITH_SECONDS(){return z}static get DATETIME_MED(){return H}static get DATETIME_MED_WITH_SECONDS(){return P}static get DATETIME_MED_WITH_WEEKDAY(){return Y}static get DATETIME_FULL(){return R}static get DATETIME_FULL_WITH_SECONDS(){return U}static get DATETIME_HUGE(){return J}static get DATETIME_HUGE_WITH_SECONDS(){return G}}function $s(t){if(Os.isDateTime(t))return t;if(t&&t.valueOf&&Qt(t.valueOf()))return Os.fromJSDate(t);if(t&&"object"==typeof t)return Os.fromObject(t);throw new M(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Is={nextMonth:"Επόμενος μήνας",nextYears:"Επόμενα έτη",previousMonth:"Προηγούμενος μήνας",previousYears:"Προηγούμενα έτη"},Fs={nextMonth:"Next month",nextYears:"Next years",previousMonth:"Previous month",previousYears:"Previous years"},Ls={nextMonth:"Mes siguiente",nextYears:"Años siguientes",previousMonth:"Mes anterior",previousYears:"Años anteriores"},Cs={nextMonth:"Mese successivo",nextYears:"Anni successivi",previousMonth:"Mese precedente",previousYears:"Anni precedenti"};const As=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.datesEmitter=n(this,"mdsCalendarChange",7),this.navigationEmitter=n(this,"mdsCalendarNavigate",7),this.hoverEmitter=n(this,"mdsCalendarHover",7),this.checkPreselectionsEmitter=n(this,"mdsCalendarPreselect",7),this.t=new l({el:Is,en:Fs,es:Ls,it:Cs}),this.hasPreselection=!1,this.currentDate=Os.now(),this.weekDaysinMonth=[],this.weekdays=[],this.startDateIdentifier=null,this.endDateIdentifier=null,this.isFirstClick=!0,this.currentView="calendar",this.selectedYear=this.currentDate.year,this.singlePicker=!1,this.hidePreviousButton=!1,this.hideNextButton=!1,this.disableMonthYearSelection=!1,this.hidePreselection=!1,this.hideToday=!1,this.viewDate=null,this.hoverDate=null,this.startDate=null,this.endDate=null,this.min=null,this.max=null,this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.internalHoverDate=null,this.currentMonth="",this.currentYear="",this.updatePreselection=()=>{this.hasPreselection=u(this.host,"preselection")||null!==this.host.querySelector(".date-preselection--has-preselection")},this.handleMouseOver=t=>{const e=t.target;if(!e.matches("mds-calendar-cell")||this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate)return;const n=e.getAttribute("date");null!==n&&""!==n&&(n!==this.internalHoverDate&&(this.internalHoverDate=n,requestAnimationFrame((()=>this.setDates()))),this.hoverEmitter.emit({hoverDate:n}))},this.handleMouseLeave=()=>{const t=null!==this.internalHoverDate;this.internalHoverDate=null,this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate||(t&&requestAnimationFrame((()=>this.setDates())),null!==this.hoverDate&&""!==this.hoverDate&&this.hoverEmitter.emit({hoverDate:null}))},this.handleMonthActionClick=t=>{t.stopPropagation(),this.disableMonthYearSelection?t.preventDefault():(this.currentView="months"===this.currentView?"calendar":"months",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handleYearActionClick=t=>{t.stopPropagation(),this.disableMonthYearSelection?t.preventDefault():(this.currentView="years"===this.currentView?"calendar":"years",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handlePrev=t=>{"calendar"===this.currentView?(t.stopPropagation(),this.changeMonth(-1)):"years"===this.currentView?(t.stopPropagation(),this.selectedYear-=10):t.stopPropagation()},this.handleNext=t=>{"calendar"===this.currentView?(t.stopPropagation(),this.changeMonth(1)):"years"===this.currentView?(t.stopPropagation(),this.selectedYear+=10):t.stopPropagation()},this.handleCellClick=t=>e=>{e.stopPropagation();const n=e.currentTarget;this.singlePicker?this.handleSingleSelection(n,t):this.handleRange(n,t)},this.handleMonthSelect=t=>e=>{e.stopPropagation(),this.currentDate=this.currentDate.set({month:t}),this.currentMonth=this.currentDate.toFormat("MMMM"),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))},this.handleYearSelect=t=>e=>{e.stopPropagation(),this.currentDate=this.currentDate.set({year:t}),this.currentYear=t.toString(),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}}handleStartDate(t){const e=this.parseDateProp(t,"start-date");null!==e?(this.internalStartDate=e,this.startDateTime=Os.fromISO(e),this.startDateIdentifier=this.startDateTime.toISODate(),null!==this.internalEndDate&&""!==this.internalEndDate?this.orderRange():this.singlePicker||(this.isFirstClick=!1),this.updateDates()):(this.internalStartDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.isFirstClick=!0,this.updateDates())}handleEndDate(t){if(this.singlePicker)return console.warn("singlePicker is enabled, endDate cannot be set"),void(this.internalEndDate=null);const e=this.parseDateProp(t,"end-date");null!==e?(this.internalEndDate=e,this.endDateTime=Os.fromISO(e),this.endDateIdentifier=this.endDateTime.toISODate(),null!==this.internalStartDate&&""!==this.internalStartDate&&this.orderRange(),this.updateDates()):(this.internalEndDate=null,this.endDateIdentifier=null,this.endDateTime=null,this.updateDates())}handleViewDate(t){if(null!==t&&""!==t){const e=Os.fromISO(t.toString());e.isValid&&(this.currentDate=e,this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})))}}handleHoverDate(){requestAnimationFrame((()=>this.setDates()))}orderRange(){if(null===this.internalStartDate||null===this.internalEndDate)return;const t=Os.fromISO(this.internalStartDate),e=Os.fromISO(this.internalEndDate);t<=e||(console.warn("mds-calendar: startDate is after endDate, swapping values"),[this.internalStartDate,this.internalEndDate]=[this.internalEndDate,this.internalStartDate],this.startDateTime=e,this.endDateTime=t,this.startDateIdentifier=e.toISODate(),this.endDateIdentifier=t.toISODate())}parseDateProp(t,e){if(null===t||""===t)return null;const n=o(t.toString());return null!==n&&Os.fromISO(n).isValid?n:(console.warn(`mds-calendar: ignoring the invalid ${e} "${t}"`),null)}componentWillLoad(){if(this.internalStartDate=this.parseDateProp(this.internalStartDate,"start-date"),this.internalEndDate=this.parseDateProp(this.internalEndDate,"end-date"),this.singlePicker&&null!==this.internalEndDate&&(console.warn("singlePicker is enabled, endDate cannot be set"),this.internalEndDate=null),this.orderRange(),null!==this.viewDate&&""!==this.viewDate){const t=Os.fromISO(this.viewDate.toString());t.isValid&&(this.currentDate=t)}else null!==this.internalStartDate&&(this.startDateTime=Os.fromISO(this.internalStartDate),this.currentDate=this.startDateTime);null!==this.internalEndDate&&(this.endDateTime=Os.fromISO(this.internalEndDate)),this.updateCalendar()}componentDidLoad(){var t,e,n;this.updatePreselection(),null===(e=null===(t=this.host)||void 0===t?void 0:t.shadowRoot)||void 0===e||e.addEventListener("mouseover",this.handleMouseOver),null===(n=this.host)||void 0===n||n.addEventListener("mouseleave",this.handleMouseLeave),this.setDates()}disconnectedCallback(){var t,e,n;null===(e=null===(t=this.host)||void 0===t?void 0:t.shadowRoot)||void 0===e||e.removeEventListener("mouseover",this.handleMouseOver),null===(n=this.host)||void 0===n||n.removeEventListener("mouseleave",this.handleMouseLeave)}async updateCurrentDate(t){return this.currentDate=Os.fromISO(t),await this.updateCalendar(),await new Promise((t=>{requestAnimationFrame((()=>{this.setDates(),t()}))})),Promise.resolve()}resolveHoverDate(){return null!==this.hoverDate&&""!==this.hoverDate?this.hoverDate:this.internalHoverDate}updateDates(){this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}async updateCalendar(){try{const t=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map(((e,n)=>t.setLocale(a.state.language).plus({days:n}).toFormat("ccc"))),this.calculateWeekDaysInMonth(),this.currentMonth=this.currentDate.setLocale(a.state.language).toFormat("MMMM"),this.currentMonthNumber=this.currentDate.month,this.currentYear=this.currentDate.toFormat("yyyy")}catch(t){console.error("Error while updating the calendar:",t)}}setDates(){const t=this.host;if(null==t)return;const{shadowRoot:e}=t;if(!e)return;const n=e.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(this.singlePicker)this.setSingleSelection(n,e);else{const t=this.resolveHoverDate();null===t||null!==this.internalEndDate&&""!==this.internalEndDate?this.setRangeSelection(n,e):this.setHoverSelection(n,e,t)}}clearSelectionState(t){t.forEach((t=>{t.removeAttribute("selection"),t.removeAttribute("preview")}))}setRangeSelection(t,e){if(this.clearSelectionState(t),null===this.internalStartDate||""===this.internalStartDate)return;if(this.startDateTime=Os.fromISO(this.internalStartDate.toString()),null===this.internalEndDate||""===this.internalEndDate)return this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1,void e.querySelectorAll("mds-calendar-cell").forEach((t=>{t.getAttribute("date")===this.startDateTime.toFormat("yyyy-MM-dd")&&(t.setAttribute("selection","single"),t.setAttribute("preview","true"))}));this.endDateTime=Os.fromISO(this.internalEndDate.toString()),this.startDateIdentifier=this.startDateTime.toISODate(),this.endDateIdentifier=this.endDateTime.toISODate();const n=e.querySelectorAll("mds-calendar-cell");if(null!=n){let t;for(let e=0;e<n.length;e++){const s=n[e].getAttribute("date");if(null!==s&&""!==s){const r=Os.fromISO(s);r.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&n[e].setAttribute("selection","start"),r.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")&&(this.startDateTime.equals(this.endDateTime)?n[e].setAttribute("selection","single"):n[e].setAttribute("selection","end")),t=r>this.startDateTime&&r<this.endDateTime,t&&n[e].setAttribute("selection","middle")}}}}setHoverSelection(t,e,n){if(this.clearSelectionState(t),null===this.internalStartDate||""===this.internalStartDate)return void this.setRangeSelection(t,e);const s=Os.fromISO(this.internalStartDate),r=Os.fromISO(n);if(!s.isValid||!r.isValid)return void this.setRangeSelection(t,e);const i=s<=r;Array.from(e.querySelectorAll("mds-calendar-cell")).forEach((t=>{const e=t.getAttribute("date");if(null===e||""===e)return;const n=Os.fromISO(e);if(!n.isValid)return;if(!(i?n>=s&&n<=r:n>=r&&n<=s))return;t.setAttribute("preview","true");let a="middle";s.equals(r)&&n.equals(s)?a="single":n.equals(s)?a=i?"start":"end":n.equals(r)&&(a=i?"end":"start"),t.setAttribute("selection",a)}))}setSingleSelection(t,e){if(this.clearSelectionState(t),null===this.internalStartDate||""===this.internalStartDate)return;this.startDateTime=Os.fromISO(this.internalStartDate.toString());const n=e.querySelectorAll("mds-calendar-cell");if(null!=n)for(let t=0;t<n.length;t++){const e=n[t].getAttribute("date");null!==e&&""!==e&&Os.fromISO(e).toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&n[t].setAttribute("selection","single")}}changeMonth(t){this.currentDate=this.currentDate.plus({months:t}),this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})),this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:t})}calculateWeekDaysInMonth(){const t=this.currentDate.startOf("month"),e=this.currentDate.endOf("month"),n=[];for(let e=t.minus({days:t.weekday-1});e<t;e=e.plus({days:1}))n.push({date:e,isCurrentMonth:!1});for(let s=t;s<=e;s=s.plus({days:1}))n.push({date:s,isCurrentMonth:!0});const s=7-e.weekday,r=e.plus({days:1});for(let t=r;t<r.plus({days:s});t=t.plus({days:1}))n.push({date:t,isCurrentMonth:!1});this.weekDaysinMonth=n}handleRange(t,e){if(!this.singlePicker&&(null===this.endDate||""===this.endDate)&&(null===this.internalEndDate||""===this.internalEndDate)&&this.isFirstClick){const t=this.parseDateProp(this.startDate||this.host.getAttribute("start-date"),"start-date");null!==t&&(this.internalStartDate=t,this.startDateTime=Os.fromISO(t),this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1)}if(null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&null!==this.endDateIdentifier&&""!==this.endDateIdentifier&&(()=>{this.internalStartDate=null,this.internalEndDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.endDateIdentifier=null,this.endDateTime=null,this.isFirstClick=!0;const t=this.host;requestAnimationFrame((()=>{var e;null===(e=null==t?void 0:t.shadowRoot)||void 0===e||e.querySelectorAll("mds-calendar-cell[selection]").forEach((t=>{t.removeAttribute("selection"),t.removeAttribute("preview")}))}))})(),this.isFirstClick){this.startDateIdentifier=e.toISODate(),this.startDateTime=e,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1;const n=this.host;return requestAnimationFrame((()=>{var t;null===(t=null==n?void 0:n.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar-cell[selection]").forEach((t=>{t.removeAttribute("selection")}))})),requestAnimationFrame((()=>{t.setAttribute("selection","single"),t.setAttribute("preview","true")})),void this.datesEmitter.emit({startDate:this.internalStartDate})}null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&Os.fromISO(this.startDateIdentifier)<Os.fromISO(t.getAttribute("date"))?(this.endDateIdentifier=t.getAttribute("date"),this.endDateTime=e,this.internalEndDate=this.endDateTime.toISO().split("T")[0]):(this.endDateIdentifier=this.startDateIdentifier,this.endDateTime=this.startDateTime,this.internalEndDate=this.internalStartDate,this.startDateIdentifier=t.getAttribute("date"),this.startDateTime=e,this.internalStartDate=this.startDateTime.toISO().split("T")[0]),requestAnimationFrame((()=>this.setDates())),null!==this.internalStartDate&&""!==this.internalStartDate&&null!==this.internalEndDate&&""!==this.internalEndDate&&(this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.checkPreselectionsEmitter.emit())}handleSingleSelection(t,e){var n;const s=this.host;null===(n=null==s?void 0:s.shadowRoot)||void 0===n||n.querySelectorAll("mds-calendar-cell[selection]").forEach((t=>{t.removeAttribute("selection")})),this.startDateIdentifier=t.getAttribute("date"),this.startDateTime=e,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1,t.setAttribute("selection","single"),null!==this.internalStartDate&&""!==this.internalStartDate&&this.datesEmitter.emit({startDate:this.internalStartDate})}isDateDisabled(t){return null!==this.min&&""!==this.min&&t<Os.fromISO(this.min)||null!==this.max&&""!==this.max&&t>Os.fromISO(this.max)||void 0}render(){return s(r,{key:"7d364657953704cd8258a82b5e1719e767a083b9"},s("div",{key:"2835c4fce7b3f64b852aab31f5c272edb82f44da",class:h("calendar-preselection",this.hasPreselection&&!this.hidePreselection&&"calendar-preselection--has-preselection")},s("slot",{key:"cc5f37ca21c7da2af7235586d05fb72b0c42abf2",name:"preselection",onSlotchange:this.updatePreselection})),s("div",{key:"8dcaf0e0246f882a0a3ffa0edd95e8e7a3ef3a89",class:"calendar-view"},s("nav",{key:"c67cfa25cbae478fa2e0e2e28edfb941cba53d55"},!this.hidePreviousButton&&s("mds-button",{key:"82c8ae04096b358e3bfc9704d4ad829ef3b8d5ad","aria-label":this.t.get("years"===this.currentView?"previousYears":"previousMonth"),class:"action-back",disabled:"months"===this.currentView,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z"/></svg>',variant:"dark",tone:"text",onClick:this.handlePrev}),s("div",{key:"0409951f53f9e5c028c7e8267f04b2a456df2111",class:"select-month-or-year"},("calendar"===this.currentView||"months"===this.currentView)&&s("mds-button",{key:"2f7afe0273e28d2f4ebfabc71024e37b96ad8e5f",class:"action-month",truncate:"none",variant:"dark",tone:"text",label:this.currentMonth,onClick:this.handleMonthActionClick}),("calendar"===this.currentView||"years"===this.currentView)&&s("mds-button",{key:"3a233fb788358b65b1c59a5ede0b38b9b1ab8fc8",class:"action-year",truncate:"none",variant:"dark",tone:"text",label:this.currentYear,onClick:this.handleYearActionClick})),!this.hideNextButton&&s("mds-button",{key:"a7597ce596f7c6d39faa821895db02c1b9d345ba","aria-label":this.t.get("years"===this.currentView?"nextYears":"nextMonth"),class:"action-forward",disabled:"months"===this.currentView,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>',variant:"dark",tone:"text",onClick:this.handleNext})),"calendar"===this.currentView&&s("section",{key:"94c96f546d3e4f31b16e0fea9dedc583ce99dab3",class:"month-view"},s("header",{key:"1f25122100daaa1b27cf8b458519da726c4ea5a3",class:"month-view__days-names"},this.weekdays.map((t=>s("mds-button",{class:"week-day-name",variant:"dark",tone:"text",label:t})))),s("div",{key:"d8992b68d6219ff53540cc662c6f90f44b0d2520",class:"month-view__cells"},this.weekDaysinMonth.map(((t,e)=>s("mds-calendar-cell",{key:e,today:!this.hideToday&&Os.now().toFormat("yyyy-MM-dd")===t.date.toFormat("yyyy-MM-dd"),date:t.date.toFormat("yyyy-MM-dd"),month:t.isCurrentMonth?"current":"other",disabled:this.isDateDisabled(t.date),onClick:this.handleCellClick(t.date),title:t.date.setLocale(a.state.language).toFormat("cccc d LLLL").replace(/^./,(t=>t.toUpperCase())),label:t.date.toFormat("dd")}))))),"months"===this.currentView&&s("section",{key:"240b9a51a80acf35c531727fe0a964b545f847e7",class:"month-selection"},s("header",{key:"765d49c4f4c27a5cb254625cc598d7a43b22cdde",class:"month-view__month-names"},Array.from({length:12}).map(((t,e)=>{const n=Os.local().set({month:e+1}).setLocale(a.state.language).toFormat("MMMM");return s("mds-button",{class:"action",variant:"dark",tone:"text",label:n,onClick:this.handleMonthSelect(e+1)})})))),"years"===this.currentView&&s("section",{key:"f15302a959313e70f7a956985356b7dbc4db60f5",class:"year-selection"},s("header",{key:"1a090fb50734801ace2815129c436dd9920eea43",class:"month-view__years"},Array.from({length:12}).map(((t,e)=>{const n=this.selectedYear+e;return s("mds-button",{class:"action",variant:"dark",tone:"text",label:`${n}`,onClick:this.handleYearSelect(n)})}))))))}get host(){return this}static get watchers(){return{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-calendar-day-number-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-calendar-cell-gap:calc(var(--spacing,.0025rem)*50);--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));--mds-calendar-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-calendar-padding:calc(var(--spacing,.0025rem)*400);--mds-calendar-select-month-or-year-height:calc(var(--spacing,.0025rem)*900);--mds-calendar-select-month-or-year-width:calc(var(--spacing,.0025rem)*5600);--mds-calendar-max-width:calc(var(--spacing,.0025rem)*12000);background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));corner-shape:var(--magma-corner-shape,squircle);cursor:auto;display:inline-flex;inline-size:100%;max-width:var(--mds-calendar-max-width,calc(var(--spacing,.0025rem)*12000));min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:inherit;box-sizing:border-box;corner-shape:inherit;display:grid;flex:auto;width:100%}.calendar-preselection,.calendar-view{padding:var(--mds-calendar-padding,calc(var(--spacing,.0025rem)*400))}.calendar-preselection{display:none;gap:calc(var(--spacing,.0025rem)*50);grid-auto-rows:min-content}.calendar-preselection--has-preselection{display:grid}nav{display:flex;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;min-width:0}.action{justify-content:left;min-width:min-content;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-back,.action-forward{flex-shrink:0}.select-month-or-year{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));border-radius:min(var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))),var(--magma-corner-cap,.5) * var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900)));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;flex:0 0 var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));justify-content:flex-start;max-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));min-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));overflow:hidden}.action-month,.action-year{--mds-button-radius:0;align-self:stretch;block-size:100%;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-month{flex:auto;min-width:0}.action-year{flex:0 0 calc(var(--spacing,.0025rem)*1800)}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{align-items:center;block-size:calc(var(--spacing,.0025rem)*1200);inline-size:100%;min-height:auto;padding:0}.month-view__cells,.month-view__days-names{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7,minmax(1px,100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3,minmax(1px,100%));min-width:0}"}},[257,"mds-calendar",{singlePicker:[4,"single-picker"],hidePreviousButton:[4,"hide-previous-button"],hideNextButton:[4,"hide-next-button"],disableMonthYearSelection:[4,"disable-month-year-selection"],hidePreselection:[4,"hide-preselection"],hideToday:[4,"hide-today"],viewDate:[513,"view-date"],hoverDate:[513,"hover-date"],startDate:[513,"start-date"],endDate:[513,"end-date"],min:[513],max:[513],hasPreselection:[32],currentDate:[32],weekDaysinMonth:[32],weekdays:[32],startDateIdentifier:[32],endDateIdentifier:[32],isFirstClick:[32],currentView:[32],selectedYear:[32],internalStartDate:[32],internalEndDate:[32],currentMonth:[32],currentYear:[32],updateCurrentDate:[64]},void 0,{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}]);function Zs(){"undefined"!=typeof customElements&&["mds-calendar","mds-button","mds-calendar-cell","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-calendar":customElements.get(i(t))||customElements.define(i(t),As);break;case"mds-button":customElements.get(i(t))||c();break;case"mds-calendar-cell":customElements.get(i(t))||d();break;case"mds-icon":customElements.get(i(t))||m();break;case"mds-spinner":customElements.get(i(t))||f();break;case"mds-text":customElements.get(i(t))||y()}}))}export{Os as D,As as M,Zs as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,H as s,h as a,c as e,t}from"./p-TZJN-ygm.js";import{p as o}from"./p-CVRN4LDc.js";import{d as i}from"./p-C7rDjrH4.js";import{d as n}from"./p-DlglisEn.js";import{d as m}from"./p-D8CloC8I.js";const g=r(class extends s{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.leftOut=!1,this.stepsList=new Array,this.progress=0,this.direction="horizontal",this.variant="primary",this.typography="option",this.size="sm",this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine",this.clampedProgress=()=>{const r=Number(this.progress);return Number.isNaN(r)?0:Math.min(1,Math.max(0,r))},this.resolveValueText=()=>{const r=""!==this.steps?this.stepsList[Math.round(this.clampedProgress()*(this.stepsList.length-1))]:void 0,s=this.element.getAttribute("aria-valuetext");return null!==s&&s!==this.appliedValueText&&s!==r?s:(this.appliedValueText=r,r)}}componentWillLoad(){this.stepsList=this.steps.split(","),this.leftOut="true"===this.element.getAttribute("aria-hidden")}stepsChanged(r){this.stepsList=r.split(",")}ariaHiddenChanged(){this.leftOut="true"===this.element.getAttribute("aria-hidden")}render(){return a(e,{key:"97d2437438ee1965f12b20cc4336e535a22f7c8e","aria-valuemax":this.leftOut?void 0:"100","aria-valuemin":this.leftOut?void 0:"0","aria-valuenow":this.leftOut?void 0:Math.round(100*this.clampedProgress()),"aria-valuetext":this.leftOut?void 0:this.resolveValueText(),role:this.leftOut?void 0:"progressbar","pref-animation":o.state.animation,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},"radial"===this.direction?a("mds-radial-progress",{"aria-hidden":"true",progress:this.clampedProgress(),part:"radial-progress",typography:this.typography,variant:this.variant}):a("div",{class:"progress",part:"progress",style:"horizontal"===this.direction?{flexGrow:`${this.clampedProgress()}`}:{flexGrow:`${this.clampedProgress()}`,width:"100%"}}))}get element(){return this}static get watchers(){return{steps:[{stepsChanged:0}],"aria-hidden":[{ariaHiddenChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-progress-duration:.75s;--private-progress-duration:var(--mds-progress-duration,.75s);--mds-progress-transition-duration:var(--duration-300,.3s);--private-progress-transition-duration:var(--mds-progress-transition-duration);--mds-progress-thickness:calc(var(--spacing,.0025rem)*200);--mds-progress-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--mds-progress-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));min-height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));min-width:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));overflow:hidden;position:relative;transition-duration:var(--private-progress-transition-duration);transition-property:background-color;width:100%}:host([direction=vertical]){flex-direction:column;height:unset;min-height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));width:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200))}:host([direction=radial]){aspect-ratio:1;background-color:#0000;height:auto}:host([direction=radial]) mds-radial-progress{width:inherit}.progress{--tw-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));background-color:var(--mds-progress-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));border-radius:inherit;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));corner-shape:inherit;transition-duration:var(--private-progress-duration);transition-property:background-color,flex-grow}:host([variant=dark]){--mds-progress-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-progress-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([variant=light]){--mds-progress-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-progress-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)))}:host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([variant=ai]){--mds-progress-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-progress-background:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)))}:host([size=sm]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*200)}:host([size=md]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*300)}:host([size=lg]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*400)}:host([size=xl]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*600)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-progress-duration:0s;--private-progress-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([pref-contrast=more]),:host([pref-contrast=more]):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-progress-duration:0s;--private-progress-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]),:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}}'}},[1,"mds-progress",{progress:[2],direction:[513],variant:[513],typography:[1],size:[513],steps:[1],leftOut:[32]},void 0,{steps:[{stepsChanged:0}],"aria-hidden":[{ariaHiddenChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["mds-progress","mds-icon","mds-radial-progress","mds-text"].forEach((r=>{switch(r){case"mds-progress":customElements.get(t(r))||customElements.define(t(r),g);break;case"mds-icon":customElements.get(t(r))||i();break;case"mds-radial-progress":customElements.get(t(r))||n();break;case"mds-text":customElements.get(t(r))||m()}}))}export{g as M,d}
|
|
1
|
+
import{p as r,H as s,h as a,c as e,t}from"./p-TZJN-ygm.js";import{p as o}from"./p-Bbrei_yQ.js";import{d as i}from"./p-BBrPpCNK.js";import{d as n}from"./p-lXKBo6V3.js";import{d as m}from"./p-DN1yF-xO.js";const h=r(class extends s{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.leftOut=!1,this.stepsList=new Array,this.progress=0,this.direction="horizontal",this.variant="primary",this.typography="option",this.size="sm",this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine",this.clampedProgress=()=>{const r=Number(this.progress);return Number.isNaN(r)?0:Math.min(1,Math.max(0,r))},this.resolveValueText=()=>{const r=""!==this.steps?this.stepsList[Math.round(this.clampedProgress()*(this.stepsList.length-1))]:void 0,s=this.element.getAttribute("aria-valuetext");return null!==s&&s!==this.appliedValueText&&s!==r?s:(this.appliedValueText=r,r)}}componentWillLoad(){this.stepsList=this.steps.split(","),this.leftOut="true"===this.element.getAttribute("aria-hidden")}stepsChanged(r){this.stepsList=r.split(",")}ariaHiddenChanged(){this.leftOut="true"===this.element.getAttribute("aria-hidden")}render(){return a(e,{key:"dc4fd897fdfd2743c8099dab70bc55f0ae905e2a","aria-valuemax":this.leftOut?void 0:"100","aria-valuemin":this.leftOut?void 0:"0","aria-valuenow":this.leftOut?void 0:Math.round(100*this.clampedProgress()),"aria-valuetext":this.leftOut?void 0:this.resolveValueText(),role:this.leftOut?void 0:"progressbar","pref-animation":o.state.animation,"pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},"radial"===this.direction?a("mds-radial-progress",{"aria-hidden":"true",progress:this.clampedProgress(),part:"radial-progress",typography:this.typography,variant:this.variant}):a("div",{class:"progress",part:"progress",style:"horizontal"===this.direction?{flexGrow:`${this.clampedProgress()}`}:{flexGrow:`${this.clampedProgress()}`,width:"100%"}}))}get element(){return this}static get watchers(){return{steps:[{stepsChanged:0}],"aria-hidden":[{ariaHiddenChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-progress-duration:.75s;--private-progress-duration:var(--mds-progress-duration,.75s);--mds-progress-transition-duration:var(--duration-300,.3s);--private-progress-transition-duration:var(--mds-progress-transition-duration);--mds-progress-thickness:calc(var(--spacing,.0025rem)*200);--mds-progress-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-progress-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--mds-progress-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);display:flex;height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));min-height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));min-width:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));overflow:hidden;position:relative;transition-duration:var(--private-progress-transition-duration);transition-property:background-color;width:100%}:host([direction=vertical]){flex-direction:column;height:unset;min-height:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200));width:var(--mds-progress-thickness,calc(var(--spacing,.0025rem)*200))}:host([direction=radial]){aspect-ratio:1;background-color:#0000;height:auto}:host([direction=radial]) mds-radial-progress{width:inherit}.progress{--tw-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));background-color:var(--mds-progress-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));border-radius:inherit;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));corner-shape:inherit;transition-duration:var(--private-progress-duration);transition-property:background-color,flex-grow}:host([variant=dark]){--mds-progress-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-progress-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([variant=light]){--mds-progress-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-progress-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)))}:host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-progress-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([variant=ai]){--mds-progress-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-progress-background:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)))}:host([size=sm]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*200)}:host([size=md]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*300)}:host([size=lg]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*400)}:host([size=xl]){--mds-progress-thickness:calc(var(--spacing,.0025rem)*600)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-progress-duration:0s;--private-progress-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]),:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])):host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])):host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])):host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])):host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}:host([pref-contrast=more]),:host([pref-contrast=more]):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-progress-duration:0s;--private-progress-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])),:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))):host([variant=error]){--mds-progress-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-progress-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))):host([variant=warning]){--mds-progress-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-progress-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))):host([variant=success]){--mds-progress-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-progress-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]):not([pref-theme-scheme=light]))):host([variant=info]){--mds-progress-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-progress-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]),:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=primary]){--mds-progress-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)))}}'}},[1,"mds-progress",{progress:[2],direction:[513],variant:[513],typography:[1],size:[513],steps:[1],leftOut:[32]},void 0,{steps:[{stepsChanged:0}],"aria-hidden":[{ariaHiddenChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["mds-progress","mds-icon","mds-radial-progress","mds-text"].forEach((r=>{switch(r){case"mds-progress":customElements.get(t(r))||customElements.define(t(r),h);break;case"mds-icon":customElements.get(t(r))||i();break;case"mds-radial-progress":customElements.get(t(r))||n();break;case"mds-text":customElements.get(t(r))||m()}}))}export{h as M,g as d}
|