spell-ui 0.8.9 → 0.8.10
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/README-components.md +9 -3
- package/README-frameworks.md +5 -5
- package/README-migrating.md +2 -2
- package/README.md +5 -5
- package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
- package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
- package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
- package/dist/Dragging-B93hbRxF.js.map +1 -0
- package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
- package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
- package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
- package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
- package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
- package/dist/PrefStore-Di83C0bY.js.map +1 -0
- package/dist/ScrollingRow-DkOtx2QK.js +89 -0
- package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
- package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
- package/dist/SitePages-B3zd5Zgu.js.map +1 -0
- package/dist/SlottedItems-DWfAZYqM.js +88 -0
- package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
- package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
- package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
- package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
- package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
- package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
- package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
- package/dist/UIButton-BmIiXYDC.js +5 -0
- package/dist/UIButton-BmIiXYDC.js.map +1 -0
- package/dist/UIGrid-2ZUA1YEc.js +200 -0
- package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
- package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
- package/dist/UIInput-B3K0w4ow.js.map +1 -0
- package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
- package/dist/UIKeys-DmXvyJuU.js.map +1 -0
- package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
- package/dist/UILabel-pCjKxQlQ.js.map +1 -0
- package/dist/UIMenu-CqURPocK.js +42 -0
- package/dist/UIMenu-CqURPocK.js.map +1 -0
- package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
- package/dist/UIRuntime-BXutHphM.js.map +1 -0
- package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
- package/dist/UISegment-BF4Tgy2D.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +8 -0
- package/dist/_spell-element/vocabulary.types.d.ts +20 -2
- package/dist/_util/Dragging.d.ts +14 -2
- package/dist/_util/dom.d.ts +12 -8
- package/dist/_util/measures/Dimension.d.ts +1 -1
- package/dist/_util/persist/PrefStore.d.ts +7 -2
- package/dist/_util/persist/persist.types.d.ts +6 -0
- package/dist/_util/platform.d.ts +54 -0
- package/dist/_util/string.d.ts +25 -0
- package/dist/api.js +2 -3
- package/dist/api.js.map +1 -1
- package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
- package/dist/apple.palette-YLjENwUt.js.map +1 -0
- package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
- package/dist/classic-BHyJFvQa.js.map +1 -0
- package/dist/components/ComponentDefinitions.d.ts +55 -8
- package/dist/components/components.es.d.ts +2 -1
- package/dist/components/components.planned.d.ts +1 -1
- package/dist/components/components.types.d.ts +22 -0
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.d.ts +38 -1
- package/dist/components/ui-action/UIAction.en.d.ts +17 -8
- package/dist/components/ui-action/UIAction.es.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-app-menu/UIAppMenu.d.ts +41 -0
- package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
- package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
- package/dist/components/ui-app-menu/index.d.ts +2 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +5 -4
- package/dist/components/ui-button/UIButton.en.d.ts +4 -3
- package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
- package/dist/components/ui-button/UIButton.types.d.ts +1 -1
- package/dist/components/ui-button/UIButtons.d.ts +7 -5
- package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
- package/dist/components/ui-button/UIButtons.es.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
- package/dist/components/ui-card/UICard.d.ts +1 -0
- package/dist/components/ui-card/UICard.en.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +1 -0
- package/dist/components/ui-card/UICards.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
- package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
- package/dist/components/ui-code/UICode.d.ts +12 -1
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-code/UICode.types.d.ts +9 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +54 -1
- package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-device/UIDevice.d.ts +234 -0
- package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
- package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
- package/dist/components/ui-device/index.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
- package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
- package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/UIField.d.ts +11 -4
- package/dist/components/ui-form/UIField.en.d.ts +3 -2
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +1 -0
- package/dist/components/ui-form/UIForm.en.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.d.ts +4 -3
- package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +5 -1
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
- package/dist/components/ui-image/UIImage.d.ts +1 -0
- package/dist/components/ui-image/UIImage.en.d.ts +1 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.d.ts +1 -0
- package/dist/components/ui-input/UIInput.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
- package/dist/components/ui-item/UIItem.d.ts +19 -8
- package/dist/components/ui-item/UIItem.en.d.ts +2 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/UIJson.d.ts +1 -0
- package/dist/components/ui-json/UIJson.en.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +3 -2
- package/dist/components/ui-label/UILabel.en.d.ts +3 -2
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +1 -0
- package/dist/components/ui-list/UIList.en.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +7 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
- package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
- package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
- package/dist/components/ui-menu/TitleFit.d.ts +16 -1
- package/dist/components/ui-menu/UIMenu.d.ts +112 -9
- package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
- package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
- package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
- package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
- package/dist/components/ui-menu/index.d.ts +3 -1
- package/dist/components/ui-message/UIMessage.d.ts +3 -2
- package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
- package/dist/components/ui-modal/ModalDialogs.d.ts +36 -2
- package/dist/components/ui-modal/UIModal.d.ts +1 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +1 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +1 -0
- package/dist/components/ui-page/UIPage.en.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
- package/dist/components/ui-page-layout/index.d.ts +1 -0
- package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
- package/dist/components/ui-panel/UIPanel.d.ts +21 -2
- package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +11 -2
- package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +4 -3
- package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +18 -5
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +21 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +3 -2
- package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
- package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +4 -3
- package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
- package/dist/components/ui-rating/UIRating.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +1 -0
- package/dist/components/ui-search/UISearch.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
- package/dist/components/ui-section/UISection.d.ts +3 -2
- package/dist/components/ui-section/UISection.en.d.ts +3 -2
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +9 -10
- package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +1 -0
- package/dist/components/ui-select/UISelect.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +1 -0
- package/dist/components/ui-shape/UISide.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +1 -0
- package/dist/components/ui-sides/UISides.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
- package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
- package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
- package/dist/components/ui-site-nav-button/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +43 -7
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
- package/dist/components/ui-stack/UIStack.d.ts +1 -0
- package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +3 -2
- package/dist/components/ui-step/UISteps.en.d.ts +3 -2
- package/dist/components/ui-sticky/UISticky.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +3 -2
- package/dist/components/ui-tab/UITab.en.d.ts +4 -3
- package/dist/components/ui-tab/UITabs.d.ts +5 -4
- package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
- package/dist/components/ui-table/TableGrammar.d.ts +2 -2
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +7 -6
- package/dist/components/ui-table/UITable.en.d.ts +7 -6
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +1 -0
- package/dist/components/ui-text/UILink.en.d.ts +1 -0
- package/dist/components/ui-text/UIText.d.ts +2 -1
- package/dist/components/ui-text/UIText.en.d.ts +2 -1
- package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +37 -15
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +102 -2
- package/dist/components/ui-tree/UITree.en.d.ts +14 -1
- package/dist/components/ui-tree/UITree.es.d.ts +3 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
- package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
- package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
- package/dist/components.es-DEa8Ep42.js.map +1 -0
- package/dist/core.js +884 -806
- package/dist/core.js.map +1 -1
- package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
- package/dist/crisp-DIpY320U.js.map +1 -0
- package/dist/crisp.theme-Ir9p4BDC.js +5 -0
- package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
- package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
- package/dist/dark-B5s4QbmU.js.map +1 -0
- package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
- package/dist/dist-BQT4KajA.js.map +1 -0
- package/dist/docs-components/docs-components.types.d.ts +6 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
- package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
- package/dist/elements/PartComponent.d.ts +5 -0
- package/dist/elements/PopoverPanel.d.ts +12 -1
- package/dist/elements/Validator.d.ts +1 -1
- package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
- package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
- package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
- package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
- package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
- package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
- package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
- package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
- package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
- package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
- package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
- package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
- package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
- package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
- package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
- package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
- package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
- package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
- package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
- package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
- package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
- package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
- package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
- package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
- package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
- package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
- package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
- package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
- package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
- package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
- package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
- package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
- package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
- package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
- package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
- package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
- package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
- package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
- package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
- package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
- package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
- package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
- package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
- package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
- package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
- package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
- package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
- package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
- package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
- package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
- package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
- package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
- package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
- package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
- package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
- package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
- package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
- package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
- package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
- package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
- package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
- package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
- package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
- package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
- package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
- package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
- package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
- package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
- package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
- package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
- package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
- package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
- package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
- package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
- package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
- package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
- package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
- package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
- package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
- package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
- package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
- package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
- package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
- package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
- package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
- package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
- package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
- package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
- package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
- package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
- package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
- package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
- package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
- package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
- package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
- package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
- package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
- package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
- package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
- package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
- package/dist/forms.js +65 -75
- package/dist/forms.js.map +1 -1
- package/dist/fruity-CsfZNeXb.js +5 -0
- package/dist/fruity-CsfZNeXb.js.map +1 -0
- package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
- package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
- package/dist/glass-BCK30hpe.js +5 -0
- package/dist/glass-BCK30hpe.js.map +1 -0
- package/dist/glass.theme-C7QSRB7b.js +5 -0
- package/dist/glass.theme-C7QSRB7b.js.map +1 -0
- package/dist/hot.js +18 -32
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +95 -90
- package/dist/jsx.d.ts +3865 -711
- package/dist/matrix-DEnqBfwC.js +5 -0
- package/dist/matrix-DEnqBfwC.js.map +1 -0
- package/dist/matrix.theme-YV6_nvXv.js +5 -0
- package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
- package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
- package/dist/merlot-DFa6kDbA.js.map +1 -0
- package/dist/merlot.theme-B1K8nn2u.js +5 -0
- package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
- package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
- package/dist/midnight-q0-3-V6U.js.map +1 -0
- package/dist/midnight.theme-C7M02wTD.js +5 -0
- package/dist/midnight.theme-C7M02wTD.js.map +1 -0
- package/dist/mockup-D0vovNO7.js +5 -0
- package/dist/mockup-D0vovNO7.js.map +1 -0
- package/dist/mockup.theme-C92r9NI0.js +5 -0
- package/dist/mockup.theme-C92r9NI0.js.map +1 -0
- package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
- package/dist/paper-DPxolmdy.js.map +1 -0
- package/dist/paper.theme-BAKk3DY1.js +5 -0
- package/dist/paper.theme-BAKk3DY1.js.map +1 -0
- package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
- package/dist/persist.types-D7N7GewC.js.map +1 -0
- package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
- package/dist/pop-Dw_6k177.js.map +1 -0
- package/dist/pop.theme-Cw-yD0MO.js +5 -0
- package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
- package/dist/property/PropertyEditorPages.d.ts +1 -1
- package/dist/property/PropertyLayouts.d.ts +119 -0
- package/dist/property/PropertySchemas.d.ts +5 -1
- package/dist/property/index.d.ts +2 -0
- package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
- package/dist/runtime/Browser.d.ts +7 -0
- package/dist/runtime/DataTooltips.d.ts +2 -0
- package/dist/runtime/Keyboard.d.ts +4 -1
- package/dist/runtime/Toasts.d.ts +10 -0
- package/dist/runtime/runtime.types.d.ts +47 -0
- package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
- package/dist/search-C2Rq9HF1.js.map +1 -0
- package/dist/spell-CB-MivSX.js +5 -0
- package/dist/spell-CB-MivSX.js.map +1 -0
- package/dist/spell.theme-CUoc5rTq.js +5 -0
- package/dist/spell.theme-CUoc5rTq.js.map +1 -0
- package/dist/styles/StyleGenerator.d.ts +7 -0
- package/dist/styles/styles.en.d.ts +27 -18
- package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
- package/dist/styles.en-DZlSJiOR.js.map +1 -0
- package/dist/styles.js +9 -10
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
- package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
- package/dist/ui-accordion.js +59 -60
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
- package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
- package/dist/ui-action.js +73 -45
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
- package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
- package/dist/ui-ad.editor-BHTDuSii.js +5 -0
- package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
- package/dist/ui-ad.js +8 -9
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
- package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
- package/dist/ui-app-menu.js +89 -0
- package/dist/ui-app-menu.js.map +1 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
- package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
- package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
- package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
- package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
- package/dist/ui-breadcrumbs.js +18 -17
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
- package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
- package/dist/ui-button.js +157 -156
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
- package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
- package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
- package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
- package/dist/ui-calendar.js +148 -157
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.editor-BBZj9e03.js +5 -0
- package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
- package/dist/ui-card.js +70 -70
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
- package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
- package/dist/ui-checkbox.js +49 -48
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.editor-Drr_FVB6.js +5 -0
- package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
- package/dist/ui-code.js +116 -79
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
- package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
- package/dist/ui-column.editor-hdUb-qwT.js +5 -0
- package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
- package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
- package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
- package/dist/ui-comment.js +15 -14
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
- package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
- package/dist/ui-components.editor-BKFXnARt.js +5 -0
- package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
- package/dist/ui-components.js +12 -13
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.editor-CBNhNkRm.js +5 -0
- package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
- package/dist/ui-container.js +106 -21
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-content.editor-B78lxK3P.js +5 -0
- package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
- package/dist/ui-date.editor-PHEnU7QX.js +5 -0
- package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
- package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
- package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
- package/dist/ui-detail.editor-wliuVbx3.js +5 -0
- package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
- package/dist/ui-device.editor-kl48NVma.js +5 -0
- package/dist/ui-device.editor-kl48NVma.js.map +1 -0
- package/dist/ui-device.js +436 -0
- package/dist/ui-device.js.map +1 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
- package/dist/ui-diagram.js +128 -129
- package/dist/ui-diagram.js.map +1 -1
- package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
- package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
- package/dist/ui-dimension.js +111 -12
- package/dist/ui-dimension.js.map +1 -1
- package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
- package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
- package/dist/ui-dimmer.js +29 -30
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
- package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
- package/dist/ui-divider.js +9 -10
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
- package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
- package/dist/ui-dropdown.js +155 -156
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
- package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
- package/dist/ui-embed.js +23 -24
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
- package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
- package/dist/ui-emoji.js +63 -64
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-event.editor-Bk17y7wW.js +5 -0
- package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
- package/dist/ui-example.editor-D46Vnctp.js +5 -0
- package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
- package/dist/ui-example.js +67 -74
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
- package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
- package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
- package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
- package/dist/ui-feed.js +26 -25
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
- package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
- package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
- package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
- package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
- package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
- package/dist/ui-flag.js +13 -14
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
- package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
- package/dist/ui-flyout.js +10 -11
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.editor-BJC3WhNf.js +5 -0
- package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
- package/dist/ui-form.js +199 -195
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
- package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
- package/dist/ui-grid.js +43 -234
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-header.editor-meOjCASK.js +5 -0
- package/dist/ui-header.editor-meOjCASK.js.map +1 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
- package/dist/ui-icon-picker.js +64 -69
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.editor-DoKK49PD.js +5 -0
- package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
- package/dist/ui-icon.js +15 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
- package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
- package/dist/ui-image.js +26 -26
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
- package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
- package/dist/ui-include.editor-CZcsVJbH.js +5 -0
- package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
- package/dist/ui-include.js +21 -22
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.editor-budoNoB0.js +5 -0
- package/dist/ui-input.editor-budoNoB0.js.map +1 -0
- package/dist/ui-input.js +131 -130
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.editor-BlWp1HXu.js +5 -0
- package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
- package/dist/ui-item.js +127 -113
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.editor-GOul3Xss.js +5 -0
- package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
- package/dist/ui-items.js +11 -12
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.editor-BgZbrB_W.js +5 -0
- package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
- package/dist/ui-json.js +18 -19
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
- package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
- package/dist/ui-keys.js +2 -3
- package/dist/ui-label.editor-BVUYLSUs.js +5 -0
- package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
- package/dist/ui-label.js +22 -22
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-labels.editor-BWJth86p.js +5 -0
- package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
- package/dist/ui-link.editor-CpI53scP.js +5 -0
- package/dist/ui-link.editor-CpI53scP.js.map +1 -0
- package/dist/ui-list.editor-DhBZIkAa.js +5 -0
- package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
- package/dist/ui-list.js +9 -10
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
- package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
- package/dist/ui-loader.js +10 -11
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
- package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
- package/dist/ui-markdown.js +208 -154
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
- package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
- package/dist/ui-menu.js +815 -223
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.editor-vfT0pyu5.js +5 -0
- package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
- package/dist/ui-message.js +32 -33
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
- package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
- package/dist/ui-modal.editor-CkkJRgab.js +5 -0
- package/dist/ui-modal.editor-CkkJRgab.js.map +1 -0
- package/dist/ui-modal.js +132 -96
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
- package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
- package/dist/ui-nag.js +23 -24
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-or.editor-BfBLNVgm.js +5 -0
- package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
- package/dist/ui-page-layout.js +363 -0
- package/dist/ui-page-layout.js.map +1 -0
- package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
- package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
- package/dist/ui-page.js +11 -12
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
- package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
- package/dist/ui-panel.js +105 -27
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +83 -68
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
- package/dist/ui-placeholder.js +23 -19
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
- package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
- package/dist/ui-popup.js +107 -100
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
- package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
- package/dist/ui-progress.js +23 -24
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
- package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
- package/dist/ui-property-editor.js +649 -277
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
- package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
- package/dist/ui-property.editor-BC-jtjjt.js +5 -0
- package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
- package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
- package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
- package/dist/ui-quote.js +8 -9
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-radio.editor-DPzActfO.js +5 -0
- package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
- package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
- package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
- package/dist/ui-rail.js +11 -12
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.editor-C19syymj.js +5 -0
- package/dist/ui-rating.editor-C19syymj.js.map +1 -0
- package/dist/ui-rating.js +40 -49
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
- package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
- package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
- package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
- package/dist/ui-reveal.js +10 -11
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.editor-CAokPDVa.js +5 -0
- package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
- package/dist/ui-root.js +205 -102
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
- package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
- package/dist/ui-search.editor-CtzfYgNu.js +5 -0
- package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
- package/dist/ui-search.js +143 -146
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.editor-DmNICxCs.js +5 -0
- package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
- package/dist/ui-section.js +74 -73
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-sections.editor-BxXECGv9.js +5 -0
- package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
- package/dist/ui-segment.editor-CebyLPFn.js +5 -0
- package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
- package/dist/ui-segment.js +43 -43
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-segments.editor-CSumzMa5.js +5 -0
- package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
- package/dist/ui-select.editor-wAcZzvU7.js +5 -0
- package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
- package/dist/ui-select.js +86 -87
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.editor-By9-8aD2.js +5 -0
- package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
- package/dist/ui-shape.js +39 -38
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-side.editor-CFSqGHGH.js +5 -0
- package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
- package/dist/ui-sidebar.js +79 -77
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
- package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
- package/dist/ui-sides.js +25 -26
- package/dist/ui-sides.js.map +1 -1
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
- package/dist/ui-site-breadcrumbs.js +143 -0
- package/dist/ui-site-breadcrumbs.js.map +1 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
- package/dist/ui-site-nav-button.js +113 -0
- package/dist/ui-site-nav-button.js.map +1 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
- package/dist/ui-site-nav.js +133 -97
- package/dist/ui-site-nav.js.map +1 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
- package/dist/ui-site-tabs.js +53 -48
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
- package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
- package/dist/ui-slider.js +37 -38
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.editor-s-XVWFBN.js +5 -0
- package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
- package/dist/ui-space.js +9 -10
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
- package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
- package/dist/ui-split-panel.js +107 -68
- package/dist/ui-split-panel.js.map +1 -1
- package/dist/ui-stack.editor-D69Fky6H.js +5 -0
- package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
- package/dist/ui-stack.js +12 -13
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
- package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
- package/dist/ui-statistic.js +28 -27
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
- package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
- package/dist/ui-step.editor-CYmNXrk_.js +5 -0
- package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
- package/dist/ui-step.js +62 -61
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
- package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
- package/dist/ui-sticky.js +10 -11
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
- package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
- package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
- package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
- package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
- package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
- package/dist/ui-tab.js +115 -117
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.editor-DJvfg9oG.js +5 -0
- package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
- package/dist/ui-table.js +272 -272
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
- package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
- package/dist/ui-term.editor-BMCF3jBM.js +5 -0
- package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
- package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
- package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
- package/dist/ui-terms.js +13 -12
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.editor-B6AENK13.js +5 -0
- package/dist/ui-text.editor-B6AENK13.js.map +1 -0
- package/dist/ui-text.js +37 -36
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
- package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
- package/dist/ui-theme-editor.js +448 -461
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
- package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
- package/dist/ui-title.editor-40PZSOpn.js +5 -0
- package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
- package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
- package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
- package/dist/ui-toast.js +125 -128
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
- package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
- package/dist/ui-toc.js +52 -53
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
- package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
- package/dist/ui-toolbar.js +254 -50
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
- package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
- package/dist/ui-transition.js +13 -14
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
- package/dist/ui-tree-diagram.js +128 -127
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
- package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
- package/dist/ui-tree.editor-BoQztwdz.js +5 -0
- package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
- package/dist/ui-tree.js +393 -134
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-value.editor-CYak24cr.js +5 -0
- package/dist/ui-value.editor-CYak24cr.js.map +1 -0
- package/dist/ui-video.editor-CuWtFVjR.js +5 -0
- package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
- package/dist/ui-video.js +15 -14
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
- package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
- package/dist/ui-visibility.js +25 -26
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
- package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
- package/dist/ui-zoom.js +82 -83
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +11 -2
- package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
- package/dist/vocabulary/help.generated.d.ts +11 -0
- package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
- package/package.json +3 -3
- package/dist/Dragging-CMZoLEWQ.js.map +0 -1
- package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
- package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
- package/dist/PrefStore-Qv0e5y04.js.map +0 -1
- package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
- package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
- package/dist/SitePages-CciwREek.js.map +0 -1
- package/dist/SlottedItems-Du3aJwG1.js +0 -80
- package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
- package/dist/UIButton-DFEds67r.js +0 -6
- package/dist/UIButton-DFEds67r.js.map +0 -1
- package/dist/UIInput-BodVbUoQ.js.map +0 -1
- package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
- package/dist/UILabel-DgJUBzB_.js.map +0 -1
- package/dist/UIMenu-zdcAtwTa.js +0 -42
- package/dist/UIMenu-zdcAtwTa.js.map +0 -1
- package/dist/UIRuntime-KH309p5B.js.map +0 -1
- package/dist/UISegment-CMMIW7cZ.js.map +0 -1
- package/dist/apple.palette-B4ivrNlM.js.map +0 -1
- package/dist/classic-DCTQrteU.js.map +0 -1
- package/dist/components.es-BOa_7gFF.js.map +0 -1
- package/dist/crisp-VfYZlTph.js.map +0 -1
- package/dist/crisp.theme-DRiePRdf.js +0 -6
- package/dist/crisp.theme-DRiePRdf.js.map +0 -1
- package/dist/dark-CbUdPe0a.js.map +0 -1
- package/dist/dist-BLYIGZVK.js.map +0 -1
- package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
- package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
- package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
- package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
- package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
- package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
- package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
- package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
- package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
- package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
- package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
- package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
- package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
- package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
- package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
- package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
- package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
- package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
- package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
- package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
- package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
- package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
- package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
- package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
- package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
- package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
- package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
- package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
- package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
- package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
- package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
- package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
- package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
- package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
- package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
- package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
- package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
- package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
- package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
- package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
- package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
- package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
- package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
- package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
- package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
- package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
- package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
- package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
- package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
- package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
- package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
- package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
- package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
- package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
- package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
- package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
- package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
- package/dist/fruity-BRVlgJZd.js +0 -6
- package/dist/fruity-BRVlgJZd.js.map +0 -1
- package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
- package/dist/glass-x9tbbwVq.js +0 -6
- package/dist/glass-x9tbbwVq.js.map +0 -1
- package/dist/glass.theme-24wY2wH9.js +0 -6
- package/dist/glass.theme-24wY2wH9.js.map +0 -1
- package/dist/matrix-QY2gWbJ0.js +0 -6
- package/dist/matrix-QY2gWbJ0.js.map +0 -1
- package/dist/matrix.theme-_8xtwhDq.js +0 -6
- package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
- package/dist/merlot-DOXLuUaU.js.map +0 -1
- package/dist/merlot.theme-S-QnNGsw.js +0 -6
- package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
- package/dist/midnight-BxlTQSfw.js.map +0 -1
- package/dist/midnight.theme-wXbqRYLy.js +0 -6
- package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
- package/dist/mockup-83ELBuVr.js +0 -6
- package/dist/mockup-83ELBuVr.js.map +0 -1
- package/dist/mockup.theme-DmpBgGBl.js +0 -6
- package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
- package/dist/paper-M61nUilz.js.map +0 -1
- package/dist/paper.theme-B8R5Jn5H.js +0 -6
- package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
- package/dist/persist.types-D2m6wD-S.js.map +0 -1
- package/dist/pop-CxXfytjk.js.map +0 -1
- package/dist/pop.theme-CXzv8B9x.js +0 -6
- package/dist/pop.theme-CXzv8B9x.js.map +0 -1
- package/dist/search-CzSzx7bX.js.map +0 -1
- package/dist/spell-By5Y3jKP.js +0 -6
- package/dist/spell-By5Y3jKP.js.map +0 -1
- package/dist/spell.theme-DxGj7qHx.js +0 -6
- package/dist/spell.theme-DxGj7qHx.js.map +0 -1
- package/dist/styles.en-CUUxNwHo.js.map +0 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalPolyfill-D9mr7_wA.js","names":["invalidEntity","nanoInMicro","nanoInMilli","nanoInSec","nanoInMinute","nanoInHour","errorMessages.forbiddenBigIntToNumber","errorMessages.expectedFinite","errorMessages.expectedPositive","constrainToRange","isObjectLike","errorMessages.invalidObject","baseErrorMessages.invalidEntity","forbiddenValueOf","TemporalUtils.constrainToRange","TemporalUtils.isObjectLike","baseErrorMessages.numberOutOfRange","TemporalUtils.nanoInMicro","TemporalUtils.nanoInMilli","TemporalUtils.nanoInSec","TemporalUtils.nanoInMinute","TemporalUtils.nanoInHour","dateFieldGetters","toTemporalInstant","monthDayFieldGetters","yearMonthFieldGetters","Temporal","__name","NativeTemporal","entityName","num","invalidObject","invalidEntity$1","val","min","max","fieldName","nanoInMicro$1","nanoInMilli$1","nanoInSec$1","nanoInMinute$1","nanoInHour$1","options","arg","res","optionName","optionVal","smallestUnitStr","overflowMap","epochDisambigMap","offsetDisambigMap","calendarDisplayMap","timeZoneDisplayMap","offsetDisplayMap","roundingModeMap","roundingModeFuncs","directionMap","roundingInc","subsecDigits","invalidEntity","unitStr","ensureDefined","minUnit","unit","unitNameMap","durationFieldNamesAsc","enumArg","defaultChoice","enumStr","enumNum","enumNameMap","coerceSmallestUnit","coerceLargestUnit","coerceTotalUnit","coerceOverflow","coerceEpochDisambig","coerceOffsetDisambig","coerceCalendarDisplay","coerceTimeZoneDisplay","coerceOffsetDisplay","coerceRoundingMode","coerceDirection","upUnitNano","solarMode","nanoInUtcDay","unitNanoMap","smallestUnit","unitNano","allowManyLargeUnits","maxUnit","unitNamesAsc","largestUnit","roundingMode","defaultRoundingMode","defaultLargestUnit","roundingModeInvert","relativeToInternals","refineRelativeTo","totalUnit","epochDisambig","offsetDisambig","defaultOffsetDisambig","maxSmallestUnit","calendarDisplay","offsetDisplay","validFields","choiceMap","forbiddenValueOf$1","invalidCallingContext","allowEra","invalidLeapMonth","calendarId","remedy","s","substring","constrainToRange","isObjectLike","message","propName","propVal","props","overflow","clamped","choices","map","MapClass","otherArgs","key","generator","readonly","propVals","transformer","propNames","getters","slots","dest","props0","props1","copy","i","clearUntilI","boundArgs","dynamicArgs","f","strss","meat","fracStr","digits","padNumber2","a","b","whole","denom","quotient","divisor","sign","halfCompare","isoCalendarId","gregoryEraOrigins","\"bce\"","\"ce\"","normalized","era","calendar","monthCodeRegExp","m","monthCode","monthCodeNumber","isLeapMonth","leapMonth","nanoInMicro","nanoInMilli","nanoInSec","nanoInMinute","nanoInHour","bigNanoInMicro","bigNanoInMilli","bigNanoInSec","bigNanoInMinute","bigNanoInHour","bigNanoInUtcDay","days","bigNano","timeNano","divisorNano","timeFieldNamesAsc","timeGetters","yearFieldNamesAsc","dayFieldNamesAsc","calendarDateFieldNamesAsc","offsetFieldNames","timeZoneFieldNames","eraYearFieldNames","allYearFieldNames","monthFieldNames","monthDayFieldNames","timeFieldNamesAlpha","yearFieldNamesWithEraAlpha","yearMonthFieldNamesAlpha","yearMonthFieldNamesWithEraAlpha","yearMonthCodeFieldNamesAlpha","yearMonthCodeFieldNamesWithEraAlpha","monthCodeDayFieldNamesAlpha","dateFieldNamesAlpha","dateFieldNamesWithEraAlpha","dateTimeFieldNamesAlpha","dateTimeFieldNamesWithEraAlpha","dateTimeAndOffsetFieldNamesAlpha","dateTimeAndOffsetFieldNamesWithEraAlpha","dateTimeAndZoneFieldNamesAlpha","dateTimeAndZoneFieldNamesWithEraAlpha","yearMonthCodeDayFieldNamesAlpha","yearMonthCodeDayFieldNamesWithEraAlpha","timeFieldDefaults","timeFields","maxValues","constrainedFields","dayDelta","nano","timeMilli","nanoAfterMilli","microsecond","nanosecond","hour","milliAfterHour","minute","milliAfterMinute","second","millisecond","epochSec","epochNano","isoDateTime","isoDate","monthIndex","isoMonth","isoYear","isoDay","epochDays","nanoAfterDay","legacyDate","month","year","monthDelta","year1","year0","month1","month0","yearOfWeek","weekOfYear","weeksInYear","y0DayOfWeek","isoInternals","day","yearStartIsoDate","unitName","durationGetters","durationFieldNamesAlpha","durationTimeFieldNamesAsc","durationDateFieldNamesAsc","durationCalendarFieldNamesAsc","durationFieldDefaults","durationTimeFieldDefaults","clearDurationFields","requireString","typeName","exoticToPrimitive","primitive","bi","time","epochNanoMax","epochNanoMin","plainDateEpochNanoMin","isoYearMonthIndexMin","isoYearMonthIndex","allowPlainDateLowerEdge","offsetNano","unitWindow","wholeValue","moveValueToEpochNano","endEpochNano","startValue","valueDelta","epochNano0","epochNanoProgress","epochNano1","endValue","fraction","denomBig","numeratorBig","absNumerator","absDenom","fracSign","durationFields","timeZone","zonedEpochSlotsToIso","roundedDurationFields","roundedEpochNano","grewBigUnit","isZoned","relativeOps","currentUnit","baseDurationFields","thresholdCompare","nanoInc","roundedTimeFields","roundedIsoDateTime","smallestUnitFieldName","truncedVal","nudgeWindow","value","roundedVal","roundedTimeNano","dateDurationFields","dayWindow","dayEpochNano0","dayEpochNano1","beyondDayNano","durationTimeFields","roundedBigNano","nanoDiff","expandedBigUnit","roundedDayTimeFields","isoDateTime0","isoDateTime1","bigNanoInc","dayOriginNano","remainder","roundedTail","quotientTail","offsetNanoseconds","epochNanoseconds","hasZ","possibleEpochNanos","matchingEpochNano","zonedEpochNano","possibleEpochNano","possibleOffsetNano","fuzzy","epochFuzzy","disambig","gapNano","startOffsetNano","shiftedIsoDateTime","zonedEpochNanoDayBefore","durationSlots","timeOnlyNano","movedEpochNano","movedTimeFields","fields","movedIsoDate","years","months","weeks","yearMonthParts","leapMonthMeta","targetLeapMonth","durDays","durationBigNano","durTimeNano","newTimeFields","overflowDays","deltaNano","startZoned","endZoned","startIsoDateTime","endIsoDateTime","origin","duration","firstOfMonth0","startIsoDate","firstOfMonth1","endIsoDate","smallestPrecision","timeDiffNano","plainTimeSlots1","plainTimeSlots0","startEpochNano","remainderNano","start","end","diffEndDate","dayCorrection","maxDayCorrection","midIsoDate","midEpochNano","asWeeks","yearMonthDayStart","yearMonthDayEnd","day0","day1","anchorIsoDate","yearDiff","monthDiff","dayDiff","daysInMonth1","dayCorrect","origDaysInMonth1","monthCodeNumber0","isLeapMonth0","monthCodeNumber1","isLeapMonth1","monthCorrect","month0Projected","isoDate0","isoDate1","relativeToSlots","endSlots","dateDuration","fieldNames","maxDurationSeconds","otherSlots","combined","doSubtract","durationLargestUnit","balancedDuration","fieldSign","calendarUnit","n","largestUnitVal","dayTimeFields","zonedEpochSlots0","zonedEpochSlots1","durationSlots0","durationSlots1","timeFields0","timeFields1","instantSlots0","instantSlots1","zonedDateTimeSlots0","zonedDateTimeSlots1","plainDateTimeSlots0","plainDateTimeSlots1","plainDateSlots0","plainDateSlots1","plainYearMonthSlots0","plainYearMonthSlots1","plainMonthDaySlots0","plainMonthDaySlots1","fieldNamesWithEra","exoticCalendar","eraOrigins","eraYear","normalizedEra","eraOrigin","yearByEra","monthByCode","wantsLeapMonth","monthCodeParts","offsetRegExp","parts","fractionIndex","main","part","firstSubMinutePart","onlyHourMinute","dateFieldRefiners","timeFieldRefiners","durationFieldRefiners","dateTimeFieldRefiners","zonedDateTimeFieldRefiners","offsetString","requiredFieldNames","anyMatching","validFieldNames","fieldVal","bag","refiner","fieldRefiners","disallowEmpty","allowMissingDay","isIso","yearMaybe","referenceYear","constrainedDay","isLeapMonthArg","requestedDay","finalYear","finalMonth","RawDateTimeFormat","intlFormat","epochMilli","hash","timeZonePeriodDaysByName","\"El_Aaiun\"","\"Tucuman\"","\"Tirane\"","\"Riga\"","\"Simferopol\"","\"Vienna\"","\"Tunis\"","\"Boa_Vista\"","\"Fortaleza\"","\"Maceio\"","\"Noronha\"","\"Recife\"","\"Gaza\"","\"Hebron\"","\"DeNoronha\"","minPossibleTransitionSec","timeZoneArg","providedTimeZone","refineTimeZoneString","instantSlots","displayOptions","timeZoneId","timeZoneDisplay","plainDateSlots","plainYearMonthSlots","plainMonthDaySlots","formatSimple","abs","wholeSec","subsecNano","subsecNanoString","forceSec","\"Y\"","\"M\"","\"W\"","\"D\"","hours","minutes","\"H\"","\"S\"","fragName","fragObj","fragVal","force","nanoRemainder0","nanoRemainder1","nanoRemainder2","isCritical","trailingZerosRE","totalNano","icuRegExp","badCharactersRegExp","rawId","upperRawId","offsetRecord","queryNamedTimeZoneRecord","partI","normId","format","queryTimeZoneIntlFormat","upperNormId","record","rawTimeZoneId","queryTimeZoneRecord","normTimeZoneId","id","compareKey","getSample","computeOffsetSec","getSplit","periodSec","periodDays","startEpochSec","endEpochSec","clampedStartEpochSec","clampedEndEpochSec","startOffsetSec","endOffsetSec","offsetSec","splitDurSec","forEpochSec","split","middleEpochSec","wideOffsetSec0","zonedEpochSec","wideOffsetSec1","wideUtcEpochSec0","wideUtcEpochSec1","narrowOffsetSec0","direction","lookaheadEpochSec","inc","searchLimit","transitionEpochSec","intlParts","relatedYear","resEpochSec","requireFields","organized","resolveCalendar","dateSlots","origYear","origMonth","yearMonthFields","dateTime","altParsed","durationRegExp","hasAny","hasAnyFrac","leftoverNano","leftoverUnits","wholeUnits","timeUnit","wholeStr","timeParts","parsed","isoDateProjector","offset","separatorIndex","dateTimeRegExpStr","yearMonthRegExp","monthDayRegExp","dateTimeRegExp","timeRegExp","annotationRegExp","zOrOffset","hourIndex","yearSign","calendarIsCritical","calendarIds","criticalStr","name","mainStr","merged","baseFields","additionalFields","nonMatchingPropNames","allPropNames","additional","deletablePropName","deletablePropNames","zonedSlots","zonedDateTimeSlots","origFields","partialFields","modFields","mergedCalendarFields","plainDateTimeSlots","calendarFields","mergedAllFields","initialFields","maxDurationUnit","input","extraFieldNames","refinedFields","mergedFieldNames","mergedFields","inputFields","extraFields","resolvedCalendarId","strictCalendarCheck","shapeFieldNameSet","shapeFieldNames","invalidShapeFieldNameSet","invalidShapeFieldNames","ignoredFieldNameSet","ignoredFieldNames","dateStyle","timeStyle","granularShapeFields","modifierFields","otherFields","hasInvalidGranularShapeFields","hasInvalidStyleFields","hasDateStyle","hasTimeStyle","hasAnyStyle","hasGranularShapeFields","hasInvalids","hasShapeFields","hasModifierFields","allowPartialOverlap","transformedOptions","defaultShapeFields","dateStyleReplacementFields","dateDefaultShapeFields","timeDefaultShapeFields","dateTimeDefaultShapeFields","dateShapeFieldNames","timeShapeFieldNames","dateTimeShapeFieldNames","yearMonthIgnoredFieldNames","monthDayIgnoredFieldNames","transformInstantOptions","transformZonedOptions","transformDateTimeOptions","transformDateOptions","transformTimeOptions","transformYearMonthOptions","transformMonthDayOptions","plainTimeFields","PlainYearMonthBranding","PlainMonthDayBranding","PlainDateBranding","PlainDateTimeBranding","PlainTimeBranding","ZonedDateTimeBranding","InstantBranding","DurationBranding","getterMaps","cls","branding","getter","getSlots","attachDebugString","instance","yearMonthFieldGetters$1","dateFieldGetters$1","monthDayFieldGetters$1","yearMonthDerivedGetters","dateDerivedGetters","invert","slots0","slots1","lowerRawCalendarId","rawCalendarId","zonedDateTimeSlotsMap","ZonedDateTime","calendarImpl","arg0","arg1","mod","calendarArg","plainTimeArg","durationArg","otherArg","locales","newEpochNano","obj","ownSlots","instantSlotsMap","Instant","toTemporalInstant$1","plainMonthDaySlotsMap","PlainMonthDay","isoMonthInt","isoDayInt","referenceIsoYear","calendarMaybe","plainYearMonthSlotsMap","PlainYearMonth","isoYearInt","referenceIsoDay","plainTimeSlotsMap","PlainTime","other","dateTimeSlots","timeSlots","timeArg","plainDateTimeSlotsMap","PlainDateTime","plainDateSlotsMap","PlainDate","optionsObj","durationSlotsMap","Duration","durationArg0","durationArg1","roundTo","totalOf","relativeTo","Now","Temporal$1","Temporal"],"sources":["../../node_modules/temporal-polyfill/chunks/root.js","../../node_modules/temporal-utils/dist/errorMessages.js","../../node_modules/temporal-utils/dist/utils.js","../../node_modules/temporal-polyfill/chunks/options.js","../../node_modules/temporal-polyfill/chunks/internal.js","../../node_modules/temporal-polyfill/chunks/apiHelpers.js","../../node_modules/temporal-polyfill/chunks/classApi-basic.js","../../node_modules/temporal-polyfill/index.js"],"sourcesContent":["const NativeTemporal = globalThis.Temporal;\n\nexport { NativeTemporal };\n","// Low-Level\nexport const expectedPositive = (entityName, num) => `Non-positive ${entityName}: ${num}`;\nexport const expectedFinite = (entityName, num) => `Non-finite ${entityName}: ${num}`;\nexport const forbiddenBigIntToNumber = (entityName) => `Cannot convert bigint to ${entityName}`;\nexport const invalidObject = 'Invalid object';\nexport const numberOutOfRange = (entityName, val, min, max) => invalidEntity(entityName, val) + `; must be between ${min}-${max}`;\n// Entity/Fields/Bags\nexport const invalidEntity = (fieldName, val) => `Invalid ${fieldName}: ${val}`;\n// Calendar\nexport const unsupportedWeekNumbers = 'Calendar week operations forbidden';\n// Rounding\nexport const nonOneRoundingIncrement = 'Non-1 roundingIncrement not allowed';\n// Options\nexport const invalidOverflowOption = 'Invalid overflow option';\n","import * as errorMessages from './errorMessages.js';\nexport const nanoInMicro = 1_000;\nexport const nanoInMilli = 1_000_000;\nexport const nanoInSec = 1_000_000_000;\nexport const nanoInMinute = 60_000_000_000;\nexport const nanoInHour = 3_600_000_000_000;\nexport function normalizeOptions(options) {\n if (options === undefined) {\n return Object.create(null);\n }\n return requireObjectLike(options);\n}\nexport function toFiniteNumber(arg, entityName = 'number') {\n if (typeof arg === 'bigint') {\n throw new TypeError(errorMessages.forbiddenBigIntToNumber(entityName));\n }\n arg = Number(arg);\n if (!Number.isFinite(arg)) {\n throw new RangeError(errorMessages.expectedFinite(entityName, arg));\n }\n return arg;\n}\nexport function toIntegerWithTrunc(arg, entityName) {\n return Math.trunc(toFiniteNumber(arg, entityName)) || 0; // ensure no -0\n}\nexport function toPositiveIntegerWithTruncation(arg, entityName) {\n return requireNumberIsPositive(toIntegerWithTrunc(arg, entityName), entityName);\n}\n/*\nAlready known to be number.\n*/\nexport function requireNumberIsPositive(num, entityName = 'number') {\n if (num <= 0) {\n throw new RangeError(errorMessages.expectedPositive(entityName, num));\n }\n return num;\n}\n/*\nmin/max are inclusive\n*/\nexport function constrainToRange(num, min, max) {\n return Math.min(Math.max(num, min), max);\n}\nexport function isObjectLike(arg) {\n return arg !== null && (typeof arg === 'object' || typeof arg === 'function');\n}\nexport function requireObjectLike(arg) {\n if (!isObjectLike(arg)) {\n throw new TypeError(errorMessages.invalidObject);\n }\n return arg;\n}\n// Options-bag-parsing-adjacent\n// ----------------------------\n/*\nAlready known to be number\n*/\nexport function normalizeNumberInRange(num, min, max, // inclusive\noptions) {\n const clamped = constrainToRange(num, min, max);\n if (normalizeOverflow(options) === 'reject' && num !== clamped) {\n throw new RangeError(errorMessages.numberOutOfRange('number', num, min, max));\n }\n return clamped;\n}\n/*\nMatch Temporal's field overflow shape without depending on the polyfill's\ninternal option readers. Undefined defaults to constrain; explicit reject asks\nfor exact in-range input.\n*/\nfunction normalizeOverflow(options) {\n options = normalizeOptions(options);\n const overflow = options.overflow;\n if (overflow === undefined) {\n return 'constrain';\n }\n if (overflow === 'constrain' || overflow === 'reject') {\n return overflow;\n }\n throw new RangeError(errorMessages.invalidOverflowOption);\n}\n","import { roundHalfFloor, roundHalfCeil, roundHalfTrunc, roundExpand, roundHalfExpand, roundHalfEven, bindArgs, toString, throwRangeError, invalidEntity, clampEntity, unitNameMap, durationFieldNamesAsc, invalidChoice, nanoInUtcDay, unitNanoMap, unitNamesAsc, flippedSmallestLargestUnit, requirePropDefined, missingSmallestLargestUnit } from \"./internal.js\";\n\nimport { requireObjectLike, toIntegerWithTrunc, normalizeOptions } from \"temporal-utils/protected\";\n\nimport \"temporal-utils/protected-error-messages\";\n\nfunction normalizeOptionsOrString(options, optionName) {\n return \"string\" == typeof options ? ((optionName, optionVal) => {\n const res = Object.create(null);\n return res[optionName] = optionVal, res;\n })(optionName, options) : requireObjectLike(options);\n}\n\nconst smallestUnitStr = \"smallestUnit\";\n\nconst overflowMap = {\n constrain: 0,\n reject: 1\n};\n\nconst epochDisambigMap = {\n compatible: 0,\n reject: 1,\n earlier: 2,\n later: 3\n};\n\nconst offsetDisambigMap = {\n reject: 0,\n use: 1,\n prefer: 2,\n ignore: 3\n};\n\nconst calendarDisplayMap = {\n auto: 0,\n never: 1,\n critical: 2,\n always: 3\n};\n\nconst timeZoneDisplayMap = {\n auto: 0,\n never: 1,\n critical: 2\n};\n\nconst offsetDisplayMap = {\n auto: 0,\n never: 1\n};\n\nconst roundingModeMap = {\n floor: 0,\n halfFloor: 1,\n ceil: 2,\n halfCeil: 3,\n trunc: 4,\n halfTrunc: 5,\n expand: 6,\n halfExpand: 7,\n halfEven: 8\n};\n\nconst roundingModeFuncs = [ Math.floor, roundHalfFloor, Math.ceil, roundHalfCeil, Math.trunc, roundHalfTrunc, roundExpand, roundHalfExpand, roundHalfEven ];\n\nconst directionMap = {\n previous: -1,\n next: 1\n};\n\nfunction coerceRoundingIncInteger(options) {\n const roundingInc = options.roundingIncrement;\n return void 0 === roundingInc ? 1 : toIntegerWithTrunc(roundingInc, \"roundingIncrement\");\n}\n\nfunction coerceFractionalSecondDigits(options) {\n let subsecDigits = options.fractionalSecondDigits;\n if (void 0 !== subsecDigits) {\n if (\"number\" != typeof subsecDigits) {\n if (\"auto\" === toString(subsecDigits)) {\n return;\n }\n throwRangeError(invalidEntity(\"fractionalSecondDigits\", subsecDigits));\n }\n subsecDigits = clampEntity(\"fractionalSecondDigits\", Math.floor(subsecDigits), 0, 9, 1);\n }\n return subsecDigits;\n}\n\nfunction coerceUnitOption(optionName, options, minUnit = 0, ensureDefined) {\n let unitStr = options[optionName];\n if (void 0 === unitStr) {\n return ensureDefined ? minUnit : void 0;\n }\n if (unitStr = toString(unitStr), \"auto\" === unitStr) {\n return ensureDefined ? minUnit : null;\n }\n let unit = unitNameMap[unitStr];\n return void 0 === unit && (unit = durationFieldNamesAsc.indexOf(unitStr)), unit < 0 && throwRangeError(invalidChoice(optionName, unitStr, unitNameMap)), \n unit;\n}\n\nfunction coerceChoiceOption(optionName, enumNameMap, options, defaultChoice = 0) {\n const enumArg = options[optionName];\n if (void 0 === enumArg) {\n return defaultChoice;\n }\n const enumStr = toString(enumArg);\n const enumNum = enumNameMap[enumStr];\n return void 0 === enumNum && throwRangeError(invalidChoice(optionName, enumStr, enumNameMap)), \n enumNum;\n}\n\nconst coerceSmallestUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, smallestUnitStr);\n\nconst coerceLargestUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, \"largestUnit\");\n\nconst coerceTotalUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, \"unit\");\n\nconst coerceOverflow = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"overflow\", overflowMap);\n\nconst coerceEpochDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"disambiguation\", epochDisambigMap);\n\nconst coerceOffsetDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"offset\", offsetDisambigMap);\n\nconst coerceCalendarDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"calendarName\", calendarDisplayMap);\n\nconst coerceTimeZoneDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"timeZoneName\", timeZoneDisplayMap);\n\nconst coerceOffsetDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"offset\", offsetDisplayMap);\n\nconst coerceRoundingMode = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"roundingMode\", roundingModeMap);\n\nconst coerceDirection = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"direction\", directionMap);\n\nfunction validateRoundingInc(roundingInc, smallestUnit, allowManyLargeUnits, solarMode) {\n const upUnitNano = solarMode ? nanoInUtcDay : unitNanoMap[smallestUnit + 1];\n if (upUnitNano) {\n const unitNano = unitNanoMap[smallestUnit];\n upUnitNano % ((roundingInc = clampEntity(\"roundingIncrement\", roundingInc, 1, upUnitNano / unitNano - (solarMode ? 0 : 1), 1)) * unitNano) && throwRangeError(invalidEntity(\"roundingIncrement\", roundingInc));\n } else {\n roundingInc = clampEntity(\"roundingIncrement\", roundingInc, 1, allowManyLargeUnits ? 10 ** 9 : 1, 1);\n }\n return roundingInc;\n}\n\nfunction validateUnitRange(optionName, unit, minUnit, maxUnit) {\n return null != unit && clampEntity(optionName, unit, minUnit, maxUnit, 1, unitNamesAsc), \n unit;\n}\n\nfunction checkLargestSmallestUnit(largestUnit, smallestUnit) {\n smallestUnit > largestUnit && throwRangeError(flippedSmallestLargestUnit);\n}\n\nfunction refineDiffOptions(roundingModeInvert, options, defaultLargestUnit, maxUnit = 9, minUnit = 0, defaultRoundingMode = 4) {\n options = normalizeOptions(options);\n let largestUnit = coerceLargestUnit(options, minUnit);\n let roundingInc = coerceRoundingIncInteger(options);\n let roundingMode = coerceRoundingMode(options, defaultRoundingMode);\n let smallestUnit = coerceSmallestUnit(options, minUnit, 1);\n return largestUnit = validateUnitRange(\"largestUnit\", largestUnit, minUnit, maxUnit), \n smallestUnit = validateUnitRange(smallestUnitStr, smallestUnit, minUnit, maxUnit), \n null == largestUnit ? largestUnit = Math.max(defaultLargestUnit, smallestUnit) : checkLargestSmallestUnit(largestUnit, smallestUnit), \n roundingInc = validateRoundingInc(roundingInc, smallestUnit, 1), roundingModeInvert && (roundingMode = (roundingMode => roundingMode < 4 ? (roundingMode + 2) % 4 : roundingMode)(roundingMode)), \n [ largestUnit, smallestUnit, roundingInc, roundingMode ];\n}\n\nfunction refineDurationRoundOptions(options, defaultLargestUnit, refineRelativeTo) {\n options = normalizeOptionsOrString(options, smallestUnitStr);\n let largestUnit = coerceLargestUnit(options);\n const relativeToInternals = refineRelativeTo(options.relativeTo);\n let roundingInc = coerceRoundingIncInteger(options);\n const roundingMode = coerceRoundingMode(options, 7);\n let smallestUnit = coerceSmallestUnit(options);\n return void 0 === largestUnit && void 0 === smallestUnit && throwRangeError(missingSmallestLargestUnit), \n null == smallestUnit && (smallestUnit = 0), null == largestUnit && (largestUnit = Math.max(smallestUnit, defaultLargestUnit)), \n checkLargestSmallestUnit(largestUnit, smallestUnit), roundingInc = validateRoundingInc(roundingInc, smallestUnit, 1), \n roundingInc > 1 && smallestUnit > 5 && largestUnit !== smallestUnit && throwRangeError(\"For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit\"), \n [ largestUnit, smallestUnit, roundingInc, roundingMode, relativeToInternals ];\n}\n\nfunction refineRoundingOptions(options, maxUnit = 6, solarMode) {\n let roundingInc = coerceRoundingIncInteger(options = normalizeOptionsOrString(options, smallestUnitStr));\n const roundingMode = coerceRoundingMode(options, 7);\n let smallestUnit = coerceSmallestUnit(options);\n return smallestUnit = requirePropDefined(smallestUnitStr, smallestUnit), smallestUnit = validateUnitRange(smallestUnitStr, smallestUnit, 0, maxUnit), \n roundingInc = validateRoundingInc(roundingInc, smallestUnit, void 0, solarMode), \n [ smallestUnit, roundingInc, roundingMode ];\n}\n\nfunction refineUnitDiffOptions(unit, options) {\n return \"string\" == typeof options || Boolean(options && (options.roundingMode || void 0 !== options.roundingIncrement)) ? ((smallestUnit, options, allowManyLargeUnits, defaultRoundingMode = 7) => {\n let roundingInc = coerceRoundingIncInteger(options = normalizeOptionsOrString(options, \"roundingMode\"));\n const roundingMode = coerceRoundingMode(options, defaultRoundingMode);\n return roundingInc = validateRoundingInc(roundingInc, smallestUnit, allowManyLargeUnits), \n [ roundingInc, roundingMode ];\n })(unit, options, 1, 4) : [ 1, void 0 ];\n}\n\nfunction refineUnitRoundOptions(smallestUnit, options, solarMode) {\n let roundingInc = coerceRoundingIncInteger(options = normalizeUnitRoundOptions(options));\n const roundingMode = coerceRoundingMode(options, 7);\n return roundingInc = validateRoundingInc(roundingInc, smallestUnit, void 0, solarMode), \n [ roundingInc, roundingMode ];\n}\n\nfunction normalizeUnitRoundOptions(options) {\n return void 0 === options ? Object.create(null) : normalizeOptionsOrString(options, \"roundingMode\");\n}\n\nfunction refineTotalOptions(options, refineRelativeTo) {\n const relativeToInternals = refineRelativeTo((options = normalizeOptionsOrString(options, \"unit\")).relativeTo);\n let totalUnit = coerceTotalUnit(options);\n return totalUnit = requirePropDefined(\"unit\", totalUnit), [ totalUnit, relativeToInternals ];\n}\n\nfunction refineOverflowOptions(options) {\n return void 0 === options ? 0 : coerceOverflow(requireObjectLike(options));\n}\n\nfunction refineZonedFieldOptions(options, defaultOffsetDisambig = 0) {\n options = normalizeOptions(options);\n const epochDisambig = coerceEpochDisambig(options);\n const offsetDisambig = coerceOffsetDisambig(options, defaultOffsetDisambig);\n return [ coerceOverflow(options), offsetDisambig, epochDisambig ];\n}\n\nfunction refineEpochDisambigOptions(options) {\n return coerceEpochDisambig(normalizeOptions(options));\n}\n\nfunction refineTimeDisplayTuple(options, maxSmallestUnit = 4) {\n const subsecDigits = coerceFractionalSecondDigits(options);\n const roundingMode = coerceRoundingMode(options, 4);\n const smallestUnit = coerceSmallestUnit(options);\n return [ roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, maxSmallestUnit), subsecDigits) ];\n}\n\nfunction refineDateTimeDisplayOptions(options) {\n return options = normalizeOptions(options), [ coerceCalendarDisplay(options), ...refineTimeDisplayTuple(options) ];\n}\n\nfunction refineDateDisplayOptions(options) {\n return coerceCalendarDisplay(normalizeOptions(options));\n}\n\nfunction refineTimeDisplayOptions(options, maxSmallestUnit) {\n return refineTimeDisplayTuple(normalizeOptions(options), maxSmallestUnit);\n}\n\nfunction refineZonedDateTimeDisplayOptions(options) {\n options = normalizeOptions(options);\n const calendarDisplay = coerceCalendarDisplay(options);\n const subsecDigits = coerceFractionalSecondDigits(options);\n const offsetDisplay = coerceOffsetDisplay(options);\n const roundingMode = coerceRoundingMode(options, 4);\n const smallestUnit = coerceSmallestUnit(options);\n return [ calendarDisplay, coerceTimeZoneDisplay(options), offsetDisplay, roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, 4), subsecDigits) ];\n}\n\nfunction refineInstantDisplayOptions(options) {\n const subsecDigits = coerceFractionalSecondDigits(options = normalizeOptions(options));\n const roundingMode = coerceRoundingMode(options, 4);\n const smallestUnit = coerceSmallestUnit(options);\n return [ options.timeZone, roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, 4), subsecDigits) ];\n}\n\nfunction resolveSmallestUnitAndSubsecDigits(smallestUnit, subsecDigits) {\n return null != smallestUnit ? [ unitNanoMap[smallestUnit], smallestUnit < 4 ? 9 - 3 * smallestUnit : -1 ] : [ void 0 === subsecDigits ? 1 : 10 ** (9 - subsecDigits), subsecDigits ];\n}\n\nfunction refineDirectionOptions(options) {\n const normalizedOptions = normalizeOptionsOrString(options, \"direction\");\n const res = coerceDirection(normalizedOptions, 0);\n return res || throwRangeError(invalidEntity(\"direction\", res)), res;\n}\n\nexport { normalizeUnitRoundOptions, refineDateDisplayOptions, refineDateTimeDisplayOptions, refineDiffOptions, refineDirectionOptions, refineDurationRoundOptions, refineEpochDisambigOptions, refineInstantDisplayOptions, refineOverflowOptions, refineRoundingOptions, refineTimeDisplayOptions, refineTotalOptions, refineUnitDiffOptions, refineUnitRoundOptions, refineZonedDateTimeDisplayOptions, refineZonedFieldOptions, roundingModeFuncs };\n","import * as TemporalUtils from \"temporal-utils/protected\";\n\nimport { toFiniteNumber, isObjectLike as isObjectLike$1, normalizeOptions, toIntegerWithTrunc, toPositiveIntegerWithTruncation, requireObjectLike } from \"temporal-utils/protected\";\n\nimport { roundingModeFuncs, refineDurationRoundOptions, refineInstantDisplayOptions, refineZonedDateTimeDisplayOptions, refineDateTimeDisplayOptions, refineDateDisplayOptions, refineTimeDisplayOptions, refineZonedFieldOptions, refineOverflowOptions, refineTotalOptions } from \"./options.js\";\n\nimport * as baseErrorMessages from \"temporal-utils/protected-error-messages\";\n\nconst invalidEntity = baseErrorMessages.invalidEntity;\n\nconst unsupportedWeekNumbers = baseErrorMessages.unsupportedWeekNumbers;\n\nconst missingField = fieldName => `Missing ${fieldName}`;\n\nconst noValidFields = validFields => \"No valid fields: \" + validFields.join();\n\nconst invalidBag = \"Invalid bag\";\n\nconst invalidChoice = (fieldName, val, choiceMap) => baseErrorMessages.invalidEntity(fieldName, val) + \"; must be \" + Object.keys(choiceMap).join();\n\nconst forbiddenValueOf = \"Cannot use valueOf\";\n\nconst invalidCallingContext = \"Invalid calling context\";\n\nconst missingYear = allowEra => \"Missing year\" + (allowEra ? \"/era/eraYear\" : \"\");\n\nconst invalidLeapMonth = \"Invalid leap month\";\n\nconst invalidCalendar = calendarId => baseErrorMessages.invalidEntity(\"Calendar\", calendarId);\n\nconst exoticCalendarRequired = (calendarId, remedy) => `Unknown calendar ${calendarId}; might need ${remedy}`;\n\nconst invalidTimeZone = calendarId => baseErrorMessages.invalidEntity(\"TimeZone\", calendarId);\n\nconst outOfBoundsDate = \"Out-of-bounds date\";\n\nconst invalidRelativeTo = arg => invalidEntity(\"relativeTo\", arg);\n\nconst missingSmallestLargestUnit = \"Required smallestUnit or largestUnit\";\n\nconst flippedSmallestLargestUnit = \"smallestUnit > largestUnit\";\n\nconst failedParse = s => `Cannot parse: ${s}`;\n\nconst invalidSubstring = substring => `Invalid substring: ${substring}`;\n\nconst invalidFormatType = branding => `Cannot format ${branding}`;\n\nconst mismatchingFormatTypes = \"Mismatching types for formatting\";\n\nconst constrainToRange = TemporalUtils.constrainToRange;\n\nconst isObjectLike = TemporalUtils.isObjectLike;\n\nfunction throwRangeError(message) {\n throw new RangeError(message);\n}\n\nfunction throwTypeError(message) {\n throw new TypeError(message);\n}\n\nfunction clampProp(props, propName, min, max, overflow) {\n return clampEntity(propName, ((props, propName) => {\n const propVal = props[propName];\n return void 0 === propVal && throwTypeError(missingField(propName)), propVal;\n })(props, propName), min, max, overflow);\n}\n\nfunction clampEntity(entityName, num, min, max, overflow, choices) {\n const clamped = constrainToRange(num, min, max);\n return overflow && num !== clamped && throwRangeError(((entityName, val, min, max, choices) => choices ? baseErrorMessages.numberOutOfRange(entityName, choices[val], choices[min], choices[max]) : baseErrorMessages.numberOutOfRange(entityName, val, min, max))(entityName, num, min, max, choices)), \n clamped;\n}\n\nfunction memoize(generator, MapClass = Map) {\n const map = new MapClass;\n return (key, ...otherArgs) => {\n if (map.has(key)) {\n return map.get(key);\n }\n const val = generator(key, ...otherArgs);\n return map.set(key, val), val;\n };\n}\n\nconst createNameDescriptors = name => createPropDescriptors({\n name: name\n}, 1);\n\nconst createPropDescriptors = (propVals, readonly) => mapProps(value => ({\n value: value,\n configurable: 1,\n writable: !readonly\n}), propVals);\n\nconst createStringTagDescriptors = value => ({\n [Symbol.toStringTag]: {\n value: value,\n configurable: 1\n }\n});\n\nfunction mapProps(transformer, props) {\n const res = {};\n for (const propName in props) {\n res[propName] = transformer(props[propName], propName);\n }\n return res;\n}\n\nfunction zipPropsConst(propNames, propVal) {\n const res = {};\n for (const propName of propNames) {\n res[propName] = propVal;\n }\n return res;\n}\n\nfunction createPropGetters(propNames) {\n const getters = {};\n for (const propName of propNames) {\n getters[propName] = slots => slots[propName];\n }\n return getters;\n}\n\nfunction pluckProps(propNames, props, dest = Object.create(null)) {\n for (const propName of propNames) {\n dest[propName] = props[propName];\n }\n return dest;\n}\n\nfunction allPropsEqual(propNames, props0, props1) {\n for (const propName of propNames) {\n if (props0[propName] !== props1[propName]) {\n return 0;\n }\n }\n return 1;\n}\n\nfunction zeroOutProps(propNames, clearUntilI, props) {\n const copy = {\n ...props\n };\n for (let i = 0; i < clearUntilI; i++) {\n copy[propNames[i]] = 0;\n }\n return copy;\n}\n\nfunction bindArgs(f, ...boundArgs) {\n return (...dynamicArgs) => f(...boundArgs, ...dynamicArgs);\n}\n\nfunction identity(arg) {\n return arg;\n}\n\nfunction noop() {}\n\nfunction capitalize(s) {\n return s[0].toUpperCase() + s.substring(1);\n}\n\nfunction sortStrings(...strss) {\n return [].concat(...strss).sort();\n}\n\nfunction createRegExp(meat) {\n return new RegExp(`^${meat}$`, \"i\");\n}\n\nfunction parseSubsecNano(fracStr) {\n return parseInt(fracStr.padEnd(9, \"0\"));\n}\n\nfunction parseSign(s) {\n return s && \"+\" !== s ? -1 : 1;\n}\n\nfunction parseInt0(s) {\n return void 0 === s ? 0 : parseInt(s);\n}\n\nfunction padNumber(digits, num) {\n return String(num).padStart(digits, \"0\");\n}\n\nconst padNumber2 = /*@__PURE__*/ bindArgs(padNumber, 2);\n\nfunction compareNumbers(a, b) {\n return Math.sign(a - b);\n}\n\nfunction compareBigInts(a, b) {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nfunction divFloorBigInt(num, denom) {\n const whole = num / denom;\n return num % denom < 0n ? whole - 1n : whole;\n}\n\nfunction divModFloorBigInt(num, divisor) {\n const quotient = divFloorBigInt(num, divisor);\n return [ quotient, num - quotient * divisor ];\n}\n\nfunction divModFloor(num, divisor) {\n return [ Math.floor(num / divisor), modFloor(num, divisor) ];\n}\n\nfunction modFloor(num, divisor) {\n return (num % divisor + divisor) % divisor;\n}\n\nfunction divTrunc(num, divisor) {\n return Math.trunc(num / divisor) || 0;\n}\n\nfunction modTrunc(num, divisor) {\n return num % divisor || 0;\n}\n\nfunction roundExpand(num) {\n return num < 0 ? Math.floor(num) : Math.ceil(num);\n}\n\nfunction fabricateNearHalfFraction(halfCompare, sign = 1) {\n return sign * (.5 + halfCompare / 5);\n}\n\nfunction roundHalfExpand(num) {\n return Math.sign(num) * Math.round(Math.abs(num)) || 0;\n}\n\nfunction roundHalfFloor(num) {\n return hasHalf(num) ? Math.floor(num) : Math.round(num);\n}\n\nfunction roundHalfCeil(num) {\n return hasHalf(num) ? Math.ceil(num) : Math.round(num);\n}\n\nfunction roundHalfTrunc(num) {\n return hasHalf(num) ? Math.trunc(num) || 0 : Math.round(num);\n}\n\nfunction roundHalfEven(num) {\n return hasHalf(num) ? (num = Math.trunc(num) || 0) + num % 2 : Math.round(num);\n}\n\nfunction hasHalf(num) {\n return .5 === Math.abs(num % 1);\n}\n\nconst isoCalendarId = \"iso8601\";\n\nconst gregoryCalendarId = \"gregory\";\n\nconst gregoryEraOrigins = {\n \"bce\": -1,\n \"ce\": 0\n};\n\nfunction normalizeEraName(era) {\n const normalized = era.normalize(\"NFD\").toLowerCase().replace(/[^a-z0-9]/g, \"\");\n return \"bc\" === normalized || \"b\" === normalized ? \"bce\" : \"ad\" === normalized || \"a\" === normalized ? \"ce\" : normalized;\n}\n\nconst isoCalendarImpl = void 0;\n\nconst gregoryCalendarImpl = 0;\n\nfunction getCalendarSlotId(calendar) {\n return calendar === isoCalendarImpl ? \"iso8601\" : 0 === calendar ? \"gregory\" : calendar.id;\n}\n\nconst monthCodeRegExp = /^M(\\d{2})(L?)$/;\n\nfunction parseMonthCode(monthCode) {\n const m = monthCodeRegExp.exec(monthCode);\n return m || throwRangeError((monthCode => `Invalid monthCode: ${monthCode}`)(monthCode)), \n [ parseInt(m[1]), Boolean(m[2]) ];\n}\n\nfunction formatMonthCode(monthCodeNumber, isLeapMonth) {\n return \"M\" + padNumber2(monthCodeNumber) + (isLeapMonth ? \"L\" : \"\");\n}\n\nfunction monthCodeNumberToMonth(monthCodeNumber, isLeapMonth, leapMonth) {\n return monthCodeNumber + (isLeapMonth || leapMonth && monthCodeNumber >= leapMonth ? 1 : 0);\n}\n\nfunction monthToMonthCodeNumber(month, leapMonth) {\n return month - (leapMonth && month >= leapMonth ? 1 : 0);\n}\n\nconst unitNameMap = {\n nanosecond: 0,\n microsecond: 1,\n millisecond: 2,\n second: 3,\n minute: 4,\n hour: 5,\n day: 6,\n week: 7,\n month: 8,\n year: 9\n};\n\nconst unitNamesAsc = /*@__PURE__*/ Object.keys(unitNameMap);\n\nconst milliInUtcDay = 864e5;\n\nconst nanoInMicro = TemporalUtils.nanoInMicro;\n\nconst nanoInMilli = TemporalUtils.nanoInMilli;\n\nconst nanoInSec = TemporalUtils.nanoInSec;\n\nconst nanoInMinute = TemporalUtils.nanoInMinute;\n\nconst nanoInHour = TemporalUtils.nanoInHour;\n\nconst nanoInUtcDay = 864e11;\n\nconst unitNanoMap = [ 1, nanoInMicro, nanoInMilli, nanoInSec, nanoInMinute, nanoInHour, nanoInUtcDay ];\n\nconst bigNanoInMicro = /*@__PURE__*/ BigInt(nanoInMicro);\n\nconst bigNanoInMilli = /*@__PURE__*/ BigInt(nanoInMilli);\n\nconst bigNanoInSec = /*@__PURE__*/ BigInt(nanoInSec);\n\nconst bigNanoInMinute = /*@__PURE__*/ BigInt(nanoInMinute);\n\nconst bigNanoInHour = /*@__PURE__*/ BigInt(nanoInHour);\n\nconst bigNanoInUtcDay = /*@__PURE__*/ BigInt(nanoInUtcDay);\n\nfunction divideBigNanoToExactNumber(bigNano, divisorNano) {\n const days = Number(bigNano / bigNanoInUtcDay);\n const timeNano = Number(bigNano % bigNanoInUtcDay);\n return days * (nanoInUtcDay / divisorNano) + (Math.trunc(timeNano / divisorNano) + timeNano % divisorNano / divisorNano);\n}\n\nconst timeFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.slice(0, 6);\n\nconst timeGetters = /*@__PURE__*/ createPropGetters(timeFieldNamesAsc);\n\nconst yearFieldNamesAsc = [ \"year\" ];\n\nconst dayFieldNamesAsc = [ \"day\" ];\n\nconst calendarDateFieldNamesAsc = [ \"day\", \"month\", \"year\" ];\n\nconst offsetFieldNames = [ \"offset\" ];\n\nconst timeZoneFieldNames = [ \"timeZone\" ];\n\nconst eraYearFieldNames = [ \"era\", \"eraYear\" ];\n\nconst allYearFieldNames = [ \"era\", \"eraYear\", \"year\" ];\n\nconst monthFieldNames = [ \"month\", \"monthCode\" ];\n\nconst monthDayFieldNames = [ \"day\", \"month\", \"monthCode\" ];\n\nconst timeFieldNamesAlpha = /*@__PURE__*/ sortStrings(timeFieldNamesAsc);\n\nconst yearFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearFieldNamesAsc);\n\nconst yearMonthFieldNamesAlpha = /*@__PURE__*/ sortStrings(monthFieldNames, yearFieldNamesAsc);\n\nconst yearMonthFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearMonthFieldNamesAlpha);\n\nconst yearMonthCodeFieldNamesAlpha = /*@__PURE__*/ sortStrings([ \"monthCode\" ], yearFieldNamesAsc);\n\nconst yearMonthCodeFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearMonthCodeFieldNamesAlpha);\n\nconst monthCodeDayFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, [ \"monthCode\" ]);\n\nconst dateFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, yearMonthFieldNamesAlpha);\n\nconst dateFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthFieldNamesAlpha);\n\nconst dateTimeFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc);\n\nconst dateTimeFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc);\n\nconst dateTimeAndOffsetFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames);\n\nconst dateTimeAndOffsetFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames);\n\nconst dateTimeAndZoneFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);\n\nconst dateTimeAndZoneFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);\n\nconst yearMonthCodeDayFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, yearMonthCodeFieldNamesAlpha);\n\nconst yearMonthCodeDayFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthCodeFieldNamesAlpha);\n\nconst timeFieldDefaults = /*@__PURE__*/ zipPropsConst(timeFieldNamesAsc, 0);\n\nfunction validateTimeFields(timeFields) {\n return constrainTimeFields(timeFields, 1), timeFields;\n}\n\nconst maxValues = {\n hour: 23,\n minute: 59,\n second: 59\n};\n\nfunction constrainTimeFields(timeFields, overflow) {\n const constrainedFields = {};\n for (const fieldName of timeFieldNamesAsc) {\n constrainedFields[fieldName] = clampEntity(fieldName, timeFields[fieldName], 0, maxValues[fieldName] || 999, overflow);\n }\n return constrainedFields;\n}\n\nfunction timeFieldsToNano(timeFields) {\n return timeFieldsToSec(timeFields) * nanoInSec + timeFieldsToSubsecNano(timeFields);\n}\n\nfunction timeFieldsToMilli(timeFields) {\n return 1e3 * timeFieldsToSec(timeFields) + timeFields.millisecond;\n}\n\nfunction timeFieldsToSec(timeFields) {\n return 3600 * timeFields.hour + 60 * timeFields.minute + timeFields.second;\n}\n\nfunction timeFieldsToSubsecNano(timeFields) {\n return timeFields.millisecond * nanoInMilli + timeFields.microsecond * nanoInMicro + timeFields.nanosecond;\n}\n\nfunction nanoToTimeAndDay(nano) {\n const [dayDelta, timeNano] = divModFloor(nano, nanoInUtcDay);\n return [ nanoToTimeFields(timeNano), dayDelta ];\n}\n\nfunction nanoToTimeFields(timeNano) {\n const [timeMilli, nanoAfterMilli] = divModFloor(timeNano, nanoInMilli);\n const [microsecond, nanosecond] = divModFloor(nanoAfterMilli, nanoInMicro);\n return milliToTimeFields(timeMilli, microsecond, nanosecond);\n}\n\nfunction milliToTimeFields(timeMilli, microsecond = 0, nanosecond = 0) {\n const [hour, milliAfterHour] = divModFloor(timeMilli, 36e5);\n const [minute, milliAfterMinute] = divModFloor(milliAfterHour, 6e4);\n const [second, millisecond] = divModFloor(milliAfterMinute, 1e3);\n return {\n hour: hour,\n minute: minute,\n second: second,\n millisecond: millisecond,\n microsecond: microsecond,\n nanosecond: nanosecond\n };\n}\n\nfunction epochNanoToSecMod(epochNano) {\n const [epochSec, nano] = divModFloorBigInt(epochNano, bigNanoInSec);\n return [ Number(epochSec), Number(nano) ];\n}\n\nfunction epochNanoToMilli(epochNano) {\n return Number(divFloorBigInt(epochNano, bigNanoInMilli));\n}\n\nfunction isoDateTimeToEpochNano(isoDateTime) {\n return isoDateToEpochNano(isoDateTime) + BigInt(timeFieldsToNano(isoDateTime));\n}\n\nfunction isoDateTimeToEpochMilli(isoDateTime) {\n return isoDateToEpochMilli(isoDateTime) + timeFieldsToMilli(isoDateTime);\n}\n\nfunction isoDateToEpochNano(isoDate) {\n return BigInt(isoDateToEpochDays(isoDate)) * bigNanoInUtcDay;\n}\n\nfunction isoDateToEpochMilli(isoDate) {\n return 864e5 * isoDateToEpochDays(isoDate);\n}\n\nfunction isoDateToEpochDays(isoDate) {\n return isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day);\n}\n\nfunction isoPartsToEpochDays(isoYear, isoMonth = 1, isoDay = 1) {\n const monthIndex = isoMonth - 1;\n return isoYear += Math.floor(monthIndex / 12), isoMonth = modFloor(monthIndex, 12), \n Date.UTC(isoYear % 400 - 400, isoMonth, 0) / 864e5 + 146097 * (divTrunc(isoYear, 400) + 1) + isoDay;\n}\n\nfunction epochNanoToIsoDateTime(epochNano) {\n const [epochDays, nanoAfterDay] = divModFloorBigInt(epochNano, bigNanoInUtcDay);\n return {\n ...epochDaysToIsoDate(Number(epochDays)),\n ...nanoToTimeFields(Number(nanoAfterDay))\n };\n}\n\nfunction epochMilliToIsoDateTime(epochMilli, microsecond = 0, nanosecond = 0) {\n const [epochDays, milliAfterDay] = divModFloor(epochMilli, 864e5);\n return {\n ...epochDaysToIsoDate(epochDays),\n ...milliToTimeFields(milliAfterDay, microsecond, nanosecond)\n };\n}\n\nfunction epochDaysToIsoDate(epochDays) {\n const legacyDate = new Date(864e5 * modFloor(epochDays, 146097));\n return {\n year: legacyDate.getUTCFullYear() + 400 * Math.floor(epochDays / 146097),\n month: legacyDate.getUTCMonth() + 1,\n day: legacyDate.getUTCDate()\n };\n}\n\nfunction diffEpochMilliDays(epochMilli0, epochMilli1) {\n return Math.trunc((epochMilli1 - epochMilli0) / 864e5);\n}\n\nconst isoEpochOriginYear = 1970;\n\nconst isoEpochFirstLeapYear = 1972;\n\nconst isoMonthsInYear = 12;\n\nfunction computeIsoMonthCodeParts(month) {\n return [ month, 0 ];\n}\n\nfunction computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, isLeapMonth) {\n if (!isLeapMonth) {\n return {\n year: 1972,\n month: monthCodeNumber\n };\n }\n}\n\nfunction computeIsoFieldsFromParts(year, month, day) {\n return {\n year: year,\n month: month,\n day: day\n };\n}\n\nfunction computeIsoDaysInMonth(year, month) {\n switch (month) {\n case 2:\n return computeIsoInLeapYear(year) ? 29 : 28;\n\n case 4:\n case 6:\n case 9:\n case 11:\n return 30;\n }\n return 31;\n}\n\nfunction computeIsoDaysInYear(year) {\n return computeIsoInLeapYear(year) ? 366 : 365;\n}\n\nfunction computeIsoInLeapYear(year) {\n return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);\n}\n\nfunction addIsoMonths(year, month, monthDelta) {\n return year += divTrunc(monthDelta, 12), (month += modTrunc(monthDelta, 12)) < 1 ? (year--, \n month += 12) : month > 12 && (year++, month -= 12), {\n year: year,\n month: month\n };\n}\n\nfunction diffIsoMonthSlots(year0, month0, year1, month1) {\n return 12 * (year1 - year0) + month1 - month0;\n}\n\nfunction computeIsoDayOfWeek(isoDate) {\n return modFloor(isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day) + 4, 7) || 7;\n}\n\nfunction computeIsoDayOfYear(isoDate) {\n return isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day) - isoPartsToEpochDays(isoDate.year) + 1;\n}\n\nfunction computeIsoWeekFields(isoDate) {\n let yearOfWeek = isoDate.year;\n let weekOfYear = Math.floor((computeIsoDayOfYear(isoDate) - computeIsoDayOfWeek(isoDate) + 10) / 7);\n let weeksInYear = computeIsoWeeksInYear(yearOfWeek);\n return weekOfYear < 1 ? weekOfYear = weeksInYear = computeIsoWeeksInYear(--yearOfWeek) : weekOfYear > weeksInYear && (weekOfYear = 1, \n weeksInYear = computeIsoWeeksInYear(++yearOfWeek)), {\n weekOfYear: weekOfYear,\n yearOfWeek: yearOfWeek,\n De: weeksInYear\n };\n}\n\nfunction computeIsoWeeksInYear(year) {\n const y0DayOfWeek = computeIsoDayOfWeek({\n year: year,\n month: 1,\n day: 1\n });\n return 4 === y0DayOfWeek || 3 === y0DayOfWeek && computeIsoInLeapYear(year) ? 53 : 52;\n}\n\nfunction computeGregoryEraFields({year: year}) {\n return year < 1 ? {\n era: \"bce\",\n eraYear: 1 - year\n } : {\n era: \"ce\",\n eraYear: year\n };\n}\n\nfunction validateIsoDateTimeFields(isoDateTime) {\n return validateIsoDateFields(isoDateTime), validateTimeFields(isoDateTime);\n}\n\nfunction validateIsoDateFields(isoInternals) {\n return constrainIsoDateFields(isoInternals, 1), isoInternals;\n}\n\nfunction isIsoDateFieldsValid(isoDate) {\n return allPropsEqual(calendarDateFieldNamesAsc, isoDate, constrainIsoDateFields(isoDate));\n}\n\nfunction constrainIsoDateFields(isoDate, overflow) {\n const {year: year} = isoDate;\n const month = clampProp(isoDate, \"month\", 1, 12, overflow);\n return {\n year: year,\n month: month,\n day: clampProp(isoDate, \"day\", 1, computeIsoDaysInMonth(year, month), overflow)\n };\n}\n\nfunction computeCalendarDateFields(calendar, isoDate) {\n return calendar ? calendar.de(isoDate) : isoDate;\n}\n\nfunction computeCalendarMonthCodeParts(calendar, year, month) {\n return calendar ? calendar.N(year, month) : computeIsoMonthCodeParts(month);\n}\n\nfunction computeCalendarEraFields(calendar, isoDate) {\n return 0 === calendar ? computeGregoryEraFields(isoDate) : calendar && calendar.h?.(isoDate) || {};\n}\n\nfunction computeCalendarIsoFieldsFromParts(calendar, year, month, day) {\n return calendar ? calendar.fe(year, month, day) : computeIsoFieldsFromParts(year, month, day);\n}\n\nfunction computeCalendarMonthsInYearForYear(calendar, year) {\n return calendar ? calendar.j(year) : 12;\n}\n\nfunction computeCalendarDaysInMonthForYearMonth(calendar, year, month) {\n return calendar ? calendar.o(year, month) : computeIsoDaysInMonth(year, month);\n}\n\nfunction computeCalendarMonthCode(calendar, isoDate) {\n const {year: year, month: month} = computeCalendarDateFields(calendar, isoDate);\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);\n return formatMonthCode(monthCodeNumber, isLeapMonth);\n}\n\nfunction computeCalendarInLeapYear(calendar, isoDate) {\n const {year: year} = computeCalendarDateFields(calendar, isoDate);\n return calendar ? calendar.q(year) : computeIsoInLeapYear(year);\n}\n\nfunction computeCalendarMonthsInYear(calendar, isoDate) {\n const {year: year} = computeCalendarDateFields(calendar, isoDate);\n return computeCalendarMonthsInYearForYear(calendar, year);\n}\n\nfunction computeCalendarDaysInMonth(calendar, isoDate) {\n const {year: year, month: month} = computeCalendarDateFields(calendar, isoDate);\n return computeCalendarDaysInMonthForYearMonth(calendar, year, month);\n}\n\nfunction computeCalendarDaysInYear(calendar, isoDate) {\n const {year: year} = computeCalendarDateFields(calendar, isoDate);\n return calendar ? calendar.i(year) : computeIsoDaysInYear(year);\n}\n\nfunction computeCalendarDayOfYear(calendar, isoDate) {\n if (!calendar) {\n return computeIsoDayOfYear(isoDate);\n }\n const {year: year} = computeCalendarDateFields(calendar, isoDate);\n const yearStartIsoDate = computeCalendarIsoFieldsFromParts(calendar, year, 1, 1);\n return isoDateToEpochDays(isoDate) - isoDateToEpochDays(yearStartIsoDate) + 1;\n}\n\nfunction computeCalendarWeekOfYear(calendar, isoDate) {\n return calendar === isoCalendarImpl ? computeIsoWeekFields(isoDate).weekOfYear : void 0;\n}\n\nfunction computeCalendarYearOfWeek(calendar, isoDate) {\n return calendar === isoCalendarImpl ? computeIsoWeekFields(isoDate).yearOfWeek : void 0;\n}\n\nconst durationFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.map(unitName => unitName + \"s\");\n\nconst durationGetters = /*@__PURE__*/ createPropGetters(durationFieldNamesAsc);\n\nconst durationFieldNamesAlpha = /*@__PURE__*/ sortStrings(durationFieldNamesAsc);\n\nconst durationTimeFieldNamesAsc = /*@__PURE__*/ durationFieldNamesAsc.slice(0, 6);\n\nconst durationDateFieldNamesAsc = /*@__PURE__*/ durationFieldNamesAsc.slice(6);\n\nconst durationCalendarFieldNamesAsc = /*@__PURE__*/ durationDateFieldNamesAsc.slice(1);\n\nconst durationFieldDefaults = /*@__PURE__*/ zipPropsConst(durationFieldNamesAsc, 0);\n\nconst durationTimeFieldDefaults = /*@__PURE__*/ zipPropsConst(durationTimeFieldNamesAsc, 0);\n\nconst clearDurationFields = /*@__PURE__*/ bindArgs(zeroOutProps, durationFieldNamesAsc);\n\nfunction requirePropDefined(optionName, optionVal) {\n return null == optionVal && throwRangeError(missingField(optionName)), optionVal;\n}\n\nconst requireString = /*@__PURE__*/ bindArgs(requireType, \"string\");\n\nfunction requireType(typeName, arg, entityName = typeName) {\n return typeof arg !== typeName && throwTypeError(invalidEntity(entityName, arg)), \n arg;\n}\n\nfunction requireNumberIsInteger(num, entityName = \"number\") {\n return Number.isInteger(num) || throwRangeError(((entityName, num) => `Non-integer ${entityName}: ${num}`)(entityName, num)), \n num || 0;\n}\n\nfunction toString(arg) {\n return \"symbol\" == typeof arg && throwTypeError(\"Cannot convert Symbol to string\"), \n String(arg);\n}\n\nfunction toPrimitiveWithStringHint(arg) {\n if (!isObjectLike$1(arg)) {\n return arg;\n }\n const exoticToPrimitive = arg[Symbol.toPrimitive];\n if (null != exoticToPrimitive) {\n \"function\" != typeof exoticToPrimitive && throwTypeError();\n const primitive = Reflect.apply(exoticToPrimitive, arg, [ \"string\" ]);\n return isObjectLike$1(primitive) && throwTypeError(), primitive;\n }\n return Date.prototype[Symbol.toPrimitive].call(arg, \"string\");\n}\n\nfunction toBigInt(bi) {\n return \"boolean\" == typeof bi ? BigInt(bi ? 1 : 0) : \"string\" == typeof bi ? BigInt(bi) : (\"bigint\" != typeof bi && throwTypeError(`Invalid bigint: ${bi}`), \n bi);\n}\n\nfunction toStrictInteger(arg, entityName) {\n return requireNumberIsInteger(toFiniteNumber(arg, entityName), entityName);\n}\n\nfunction combineDateAndTime(isoDate, time) {\n return pluckProps(calendarDateFieldNamesAsc, isoDate, pluckProps(timeFieldNamesAsc, time));\n}\n\nconst maxMilli = 864e13;\n\nconst epochNanoMax = /*@__PURE__*/ BigInt(1e8) * bigNanoInUtcDay;\n\nconst epochNanoMin = /*@__PURE__*/ BigInt(-1e8) * bigNanoInUtcDay;\n\nconst plainDateEpochNanoMin = epochNanoMin - bigNanoInUtcDay;\n\nconst isoYearMonthIndexMin = -3261848;\n\nfunction checkIsoYearMonthInBounds(isoDate) {\n const isoYearMonthIndex = 12 * isoDate.year + isoDate.month;\n return (isoYearMonthIndex < isoYearMonthIndexMin || isoYearMonthIndex > 3309129) && throwRangeError(outOfBoundsDate), \n isoDate;\n}\n\nfunction checkIsoDateInBounds(isoDate, allowPlainDateLowerEdge = 1) {\n const epochNano = isoDateToEpochNano(isoDate);\n return (epochNano < (allowPlainDateLowerEdge ? plainDateEpochNanoMin : epochNanoMin) || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate), \n isoDate;\n}\n\nfunction checkIsoDateTimeInBounds(isoDateTime) {\n return checkIsoDateTimeEpochNanoInBounds(isoDateTimeToEpochNano(isoDateTime)), isoDateTime;\n}\n\nfunction checkIsoDateTimeEpochNanoInBounds(epochNano) {\n return (epochNano <= plainDateEpochNanoMin || epochNano >= epochNanoMax + bigNanoInUtcDay) && throwRangeError(outOfBoundsDate), \n epochNano;\n}\n\nfunction checkEpochNanoInBounds(epochNano) {\n return (epochNano < epochNanoMin || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate), \n epochNano;\n}\n\nfunction isoDateTimeAndOffsetToEpochNano(isoDateTime, offsetNano) {\n return checkEpochNanoInBounds(isoDateToEpochNano(isoDateTime) + BigInt(timeFieldsToNano(isoDateTime) - offsetNano));\n}\n\nfunction roundNumberToInc(num, roundingInc, roundingMode) {\n return roundWithMode(num / roundingInc, roundingMode) * roundingInc;\n}\n\nfunction roundWithMode(num, roundingMode) {\n return roundingModeFuncs[roundingMode](num);\n}\n\nfunction totalRelativeUnit(wholeValue, sign, endEpochNano, moveValueToEpochNano) {\n const unitWindow = clampRelativeUnitValue(wholeValue, sign, moveValueToEpochNano, endEpochNano);\n return interpolateRelativeUnitWindow(unitWindow, Number(endEpochNano - unitWindow.I) / Number(unitWindow.O - unitWindow.I));\n}\n\nfunction roundRelativeUnit(wholeValue, sign, endEpochNano, moveValueToEpochNano, roundingInc, roundingMode) {\n return roundRelativeUnitWindow(clampRelativeUnitValue(divTrunc(wholeValue, roundingInc) * roundingInc, roundingInc * sign, moveValueToEpochNano, endEpochNano), endEpochNano, roundingInc, roundingMode);\n}\n\nfunction roundRelativeUnitWindow(unitWindow, endEpochNano, roundingInc, roundingMode) {\n return roundNumberToInc(interpolateRelativeUnitWindow(unitWindow, computeEpochNanoFrac(endEpochNano, unitWindow.I, unitWindow.O)), roundingInc, roundingMode);\n}\n\nfunction clampRelativeUnitValue(startValue, valueDelta, moveValueToEpochNano, epochNanoProgress) {\n let unitWindow = computeRelativeUnitWindow(startValue, valueDelta, moveValueToEpochNano);\n return ((epochNanoProgress, epochNano0, epochNano1, sign) => sign > 0 ? epochNano0 <= epochNanoProgress && epochNanoProgress <= epochNano1 : epochNano1 <= epochNanoProgress && epochNanoProgress <= epochNano0)(epochNanoProgress, unitWindow.I, unitWindow.O, Math.sign(valueDelta)) || (unitWindow = computeRelativeUnitWindow(startValue + valueDelta, valueDelta, moveValueToEpochNano)), \n unitWindow;\n}\n\nfunction computeRelativeUnitWindow(startValue, valueDelta, moveValueToEpochNano) {\n const endValue = startValue + valueDelta;\n return {\n ve: startValue,\n qe: endValue,\n I: moveValueToEpochNano(startValue),\n O: moveValueToEpochNano(endValue)\n };\n}\n\nfunction interpolateRelativeUnitWindow(unitWindow, fraction) {\n return unitWindow.ve + fraction * (unitWindow.qe - unitWindow.ve);\n}\n\nfunction computeEpochNanoFrac(epochNanoProgress, epochNano0, epochNano1) {\n const denomBig = epochNano1 - epochNano0;\n const numeratorBig = epochNanoProgress - epochNano0;\n if (!numeratorBig) {\n return 0;\n }\n const absNumerator = numeratorBig < 0n ? -numeratorBig : numeratorBig;\n const absDenom = denomBig < 0n ? -denomBig : denomBig;\n const fracSign = compareBigInts(numeratorBig, 0n) === compareBigInts(denomBig, 0n) ? 1 : -1;\n return compareBigInts(absNumerator, absDenom) <= 0 ? absNumerator === absDenom ? fracSign : fabricateNearHalfFraction(compareBigInts(2n * absNumerator, absDenom), fracSign) : Number(numeratorBig) / Number(denomBig);\n}\n\nfunction createEpochNanoSlots(epochNano) {\n return {\n epochNanoseconds: epochNano\n };\n}\n\nfunction createZonedEpochNanoSlots(epochNano, timeZone, calendar) {\n return {\n calendar: calendar,\n timeZone: timeZone,\n epochNanoseconds: epochNano\n };\n}\n\nfunction createDateTimeSlots(isoDateTime, calendar) {\n return pluckProps(timeFieldNamesAsc, isoDateTime, createDateSlots(isoDateTime, calendar));\n}\n\nfunction createDateSlots(isoDate, calendar) {\n return pluckProps(calendarDateFieldNamesAsc, isoDate, {\n calendar: calendar\n });\n}\n\nfunction createTimeSlots(time) {\n return pluckProps(timeFieldNamesAsc, time);\n}\n\nfunction createDurationSlots(durationFields) {\n return pluckProps(durationFieldNamesAsc, durationFields, {\n sign: computeDurationSign(durationFields)\n });\n}\n\nfunction roundZonedEpochSlotsToUnit(slots, smallestUnit, roundingInc, roundingMode) {\n return createZonedEpochNanoSlots(6 === smallestUnit ? roundZonedEpochToDay(slots, roundingMode) : roundZonedEpochToTime(slots, smallestUnit, roundingInc, roundingMode), slots.timeZone, slots.calendar);\n}\n\nfunction computeZonedHoursInDay(slots) {\n const [epochNano0, epochNano1] = computeZonedDayEpochInterval(slots);\n return divideBigNanoToExactNumber(epochNano1 - epochNano0, nanoInHour);\n}\n\nfunction computeZonedStartOfDay(slots) {\n const {timeZone: timeZone, calendar: calendar} = slots;\n return createZonedEpochNanoSlots(getStartOfDayInstantFor(timeZone, combineDateAndTime(zonedEpochSlotsToIso(slots), timeFieldDefaults)), timeZone, calendar);\n}\n\nfunction alignZonedEpoch(computeAlignment, slots) {\n const {calendar: calendar, timeZone: timeZone} = slots;\n return getStartOfDayInstantFor(timeZone, computeAlignment(calendar, zonedEpochSlotsToIso(slots)));\n}\n\nfunction roundZonedEpochToInterval(computeInterval, slots, roundingMode) {\n const {calendar: calendar, timeZone: timeZone} = slots;\n const isoSlots = zonedEpochSlotsToIso(slots);\n const [isoDateTime0, isoDateTime1] = computeInterval(calendar, isoSlots);\n return roundZonedEpochToBounds(slots.epochNanoseconds, getStartOfDayInstantFor(timeZone, isoDateTime0), getStartOfDayInstantFor(timeZone, isoDateTime1), roundingMode);\n}\n\nfunction roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps, isZoned) {\n if (0 === smallestUnit && 1 === roundingInc) {\n return durationFields;\n }\n const sign = computeDurationSign(durationFields) || 1;\n const nudgeFunc = isUniformUnit(smallestUnit, isZoned) ? isZoned && smallestUnit < 6 && largestUnit >= 6 ? nudgeZonedTimeDuration : nudgeDayTimeDuration : nudgeRelativeDuration;\n let [roundedDurationFields, roundedEpochNano, grewBigUnit] = nudgeFunc(sign, durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps);\n return grewBigUnit && 7 !== smallestUnit && (roundedDurationFields = ((durationFields, endEpochNano, largestUnit, smallestUnit, sign, relativeOps) => {\n for (let currentUnit = smallestUnit + 1; currentUnit <= largestUnit; currentUnit++) {\n if (7 === currentUnit && 7 !== largestUnit) {\n continue;\n }\n const baseDurationFields = clearDurationFields(currentUnit, durationFields);\n baseDurationFields[durationFieldNamesAsc[currentUnit]] += sign;\n const thresholdCompare = compareBigInts(endEpochNano, moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields));\n if (thresholdCompare && thresholdCompare !== sign) {\n break;\n }\n durationFields = baseDurationFields;\n }\n return durationFields;\n })(roundedDurationFields, roundedEpochNano, largestUnit, Math.max(6, smallestUnit), sign, relativeOps)), \n roundedDurationFields;\n}\n\nfunction roundDayTimeDurationByInc(durationFields, nanoInc, roundingMode) {\n const maxUnit = Math.min(getMaxDurationUnit(durationFields), 6);\n return nanoToDurationDayTimeFields(roundBigNanoToInc(durationDayTimeToBigNano(durationFields), BigInt(nanoInc), roundingMode), maxUnit);\n}\n\nfunction roundZonedEpochToDay(slots, roundingMode) {\n const [epochNano0, epochNano1] = computeZonedDayEpochInterval(slots);\n return roundZonedEpochToBounds(slots.epochNanoseconds, epochNano0, epochNano1, roundingMode);\n}\n\nfunction roundZonedEpochToTime(slots, smallestUnit, roundingInc, roundingMode) {\n if (0 === smallestUnit && 1 === roundingInc) {\n return slots.epochNanoseconds;\n }\n const isoDateTime = zonedEpochSlotsToIso(slots);\n return getMatchingInstantFor(slots.timeZone, roundDateTimeToInc(isoDateTime, computeNanoInc(smallestUnit, roundingInc), roundingMode), isoDateTime.offsetNanoseconds, 2, 0, 1);\n}\n\nfunction roundDateTimeToInc(isoDateTime, nanoInc, roundingMode) {\n const [roundedTimeFields, dayDelta] = roundTimeToInc(isoDateTime, nanoInc, roundingMode);\n const roundedIsoDateTime = combineDateAndTime(moveDateByDays(isoDateTime, dayDelta), roundedTimeFields);\n return checkIsoDateTimeInBounds(roundedIsoDateTime), roundedIsoDateTime;\n}\n\nfunction roundTimeToInc(timeFields, nanoInc, roundingMode) {\n return nanoToTimeAndDay(roundNumberToInc(timeFieldsToNano(timeFields), nanoInc, roundingMode));\n}\n\nfunction nudgeRelativeDuration(sign, durationFields, endEpochNano, _largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps) {\n const smallestUnitFieldName = durationFieldNamesAsc[smallestUnit];\n const baseDurationFields = clearDurationFields(smallestUnit, durationFields);\n 7 === smallestUnit && (durationFields = {\n ...durationFields,\n weeks: durationFields.weeks + Math.trunc(durationFields.days / 7)\n });\n const truncedVal = divTrunc(durationFields[smallestUnitFieldName], roundingInc) * roundingInc;\n const nudgeWindow = clampRelativeUnitValue(truncedVal, roundingInc * sign, value => (baseDurationFields[smallestUnitFieldName] = value, \n moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields)), endEpochNano);\n const roundedVal = roundRelativeUnitWindow(nudgeWindow, endEpochNano, roundingInc, roundingMode);\n return baseDurationFields[smallestUnitFieldName] = roundedVal, [ baseDurationFields, roundedVal === nudgeWindow.qe ? nudgeWindow.O : nudgeWindow.I, roundedVal !== truncedVal ];\n}\n\nfunction nudgeZonedTimeDuration(sign, durationFields, endEpochNano, _largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps) {\n const timeNano = Number(durationTimeToBigNano(durationFields));\n const nanoInc = computeNanoInc(smallestUnit, roundingInc);\n let roundedTimeNano = roundNumberToInc(timeNano, nanoInc, roundingMode);\n const dateDurationFields = {\n ...durationFields,\n ...durationTimeFieldDefaults\n };\n const dayWindow = clampRelativeUnitValue(dateDurationFields.days, sign, days => (dateDurationFields.days = days, \n moveRelativeMarkerToEpochNano(relativeOps, dateDurationFields)), endEpochNano);\n const dayEpochNano0 = dayWindow.I;\n const dayEpochNano1 = dayWindow.O;\n const beyondDayNano = roundedTimeNano - Number(dayEpochNano1 - dayEpochNano0);\n let dayDelta = 0;\n beyondDayNano && Math.sign(beyondDayNano) !== sign ? endEpochNano = dayEpochNano0 + BigInt(roundedTimeNano) : (dayDelta += sign, \n roundedTimeNano = roundNumberToInc(beyondDayNano, nanoInc, roundingMode), endEpochNano = dayEpochNano1 + BigInt(roundedTimeNano));\n const durationTimeFields = nanoToDurationTimeFields(roundedTimeNano);\n return [ {\n ...durationFields,\n ...durationTimeFields,\n days: durationFields.days + dayDelta\n }, endEpochNano, Boolean(dayDelta) ];\n}\n\nfunction nudgeDayTimeDuration(sign, durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode) {\n const bigNano = durationDayTimeToBigNano(durationFields);\n const roundedBigNano = roundBigNanoToInc(bigNano, computeBigNanoInc(smallestUnit, roundingInc), roundingMode);\n const nanoDiff = roundedBigNano - bigNano;\n const expandedBigUnit = Math.sign(Number(roundedBigNano / bigNanoInUtcDay) - Number(bigNano / bigNanoInUtcDay)) === sign;\n const roundedDayTimeFields = nanoToDurationDayTimeFields(roundedBigNano, Math.min(largestUnit, 6));\n return [ {\n ...durationFields,\n ...roundedDayTimeFields\n }, endEpochNano + nanoDiff, expandedBigUnit ];\n}\n\nfunction computeZonedDayEpochInterval(slots) {\n const {timeZone: timeZone} = slots;\n const isoDateTime0 = combineDateAndTime(zonedEpochSlotsToIso(slots), timeFieldDefaults);\n const isoDateTime1 = combineDateAndTime(moveDateByDays(isoDateTime0, 1), timeFieldDefaults);\n return [ getStartOfDayInstantFor(timeZone, isoDateTime0), getStartOfDayInstantFor(timeZone, isoDateTime1) ];\n}\n\nfunction roundZonedEpochToBounds(epochNano, epochNano0, epochNano1, roundingMode) {\n return roundWithMode(computeEpochNanoFrac(epochNano < epochNano1 ? epochNano : epochNano1 - 1n, epochNano0, epochNano1), roundingMode) ? epochNano1 : epochNano0;\n}\n\nfunction roundToMinute(offsetNano) {\n return roundNumberToInc(offsetNano, nanoInMinute, 7);\n}\n\nfunction roundBigNanoToInc(bigNano, bigNanoInc, roundingMode) {\n return roundBigNanoToIncWithTail(bigNano, bigNanoInc, roundingMode, bigNano / bigNanoInc % 2n);\n}\n\nfunction roundBigNanoToDayOriginInc(bigNano, bigNanoInc, roundingMode) {\n const [day, timeNano] = divModFloorBigInt(bigNano, bigNanoInUtcDay);\n const dayOriginNano = day * bigNanoInUtcDay;\n return dayOriginNano + roundBigNanoToIncWithTail(timeNano, bigNanoInc, roundingMode, (dayOriginNano / bigNanoInc + timeNano / bigNanoInc) % 2n);\n}\n\nfunction roundBigNanoToIncWithTail(bigNano, bigNanoInc, roundingMode, quotientTail) {\n const quotient = bigNano / bigNanoInc;\n const remainder = bigNano % bigNanoInc;\n let fraction = 0;\n remainder && (fraction = fabricateNearHalfFraction(compareBigInts(2n * (remainder < 0n ? -remainder : remainder), bigNanoInc), Math.sign(Number(remainder))));\n const roundedTail = roundWithMode(Number(quotientTail) + fraction, roundingMode);\n return (quotient - quotientTail + BigInt(roundedTail)) * bigNanoInc;\n}\n\nfunction computeNanoInc(smallestUnit, roundingInc) {\n return unitNanoMap[smallestUnit] * roundingInc;\n}\n\nfunction computeBigNanoInc(smallestUnit, roundingInc) {\n return BigInt(unitNanoMap[smallestUnit]) * BigInt(roundingInc);\n}\n\nconst zonedEpochSlotsToIso = /*@__PURE__*/ memoize(_zonedEpochSlotsToIso, WeakMap);\n\nfunction _zonedEpochSlotsToIso(slots) {\n const {epochNanoseconds: epochNanoseconds, timeZone: timeZone} = slots;\n const offsetNanoseconds = timeZone.B(epochNanoseconds);\n return {\n ...epochNanoToIsoDateTime(epochNanoseconds + BigInt(offsetNanoseconds)),\n offsetNanoseconds: offsetNanoseconds\n };\n}\n\nfunction getMatchingInstantFor(timeZone, isoDateTime, offsetNano, offsetDisambig = 0, epochDisambig = 0, epochFuzzy, hasZ) {\n if (void 0 !== offsetNano && 1 === offsetDisambig && (1 === offsetDisambig || hasZ)) {\n return isoDateTimeAndOffsetToEpochNano(isoDateTime, offsetNano);\n }\n 2 !== offsetDisambig && 0 !== offsetDisambig || checkIsoDateInBounds(isoDateTime, 0);\n const possibleEpochNanos = timeZone.R(isoDateTime);\n if (void 0 !== offsetNano && 3 !== offsetDisambig) {\n const matchingEpochNano = ((possibleEpochNanos, isoDateTime, offsetNano, fuzzy) => {\n const zonedEpochNano = isoDateTimeToEpochNano(isoDateTime);\n fuzzy && (offsetNano = roundToMinute(offsetNano));\n for (const possibleEpochNano of possibleEpochNanos) {\n let possibleOffsetNano = Number(zonedEpochNano - possibleEpochNano);\n if (fuzzy && (possibleOffsetNano = roundToMinute(possibleOffsetNano)), possibleOffsetNano === offsetNano) {\n return possibleEpochNano;\n }\n }\n })(possibleEpochNanos, isoDateTime, offsetNano, epochFuzzy);\n if (void 0 !== matchingEpochNano) {\n return matchingEpochNano;\n }\n 0 === offsetDisambig && throwRangeError(\"Invalid TimeZone offset\");\n }\n return hasZ ? isoDateTimeToEpochNano(isoDateTime) : getSingleInstantFor(timeZone, isoDateTime, epochDisambig, possibleEpochNanos);\n}\n\nfunction getSingleInstantFor(timeZone, isoDateTime, disambig = 0, possibleEpochNanos = timeZone.R(isoDateTime)) {\n if (1 === possibleEpochNanos.length) {\n return possibleEpochNanos[0];\n }\n if (1 === disambig && throwRangeError(\"Ambiguous offset\"), possibleEpochNanos.length) {\n return possibleEpochNanos[3 === disambig ? 1 : 0];\n }\n const zonedEpochNano = isoDateTimeToEpochNano(isoDateTime);\n const gapNano = ((timeZone, zonedEpochNano) => {\n const startOffsetNano = timeZone.B(zonedEpochNano - bigNanoInUtcDay);\n return (gapNano => (gapNano > nanoInUtcDay && throwRangeError(\"Out-of-bounds TimeZone gap\"), \n gapNano))(timeZone.B(zonedEpochNano + bigNanoInUtcDay) - startOffsetNano);\n })(timeZone, zonedEpochNano);\n const shiftedIsoDateTime = epochNanoToIsoDateTime(zonedEpochNano + BigInt(gapNano * (2 === disambig ? -1 : 1)));\n return (possibleEpochNanos = timeZone.R(shiftedIsoDateTime))[2 === disambig ? 0 : possibleEpochNanos.length - 1];\n}\n\nfunction getStartOfDayInstantFor(timeZone, isoDateTime) {\n const possibleEpochNanos = timeZone.R(isoDateTime);\n if (possibleEpochNanos.length) {\n return possibleEpochNanos[0];\n }\n const zonedEpochNanoDayBefore = isoDateTimeToEpochNano(isoDateTime) - bigNanoInUtcDay;\n return timeZone.C(zonedEpochNanoDayBefore, 1);\n}\n\nfunction moveYearMonth(calendar, isoDate, durationSlots, overflow = 0) {\n computeDurationSign(durationSlots) && getMaxDurationUnit(durationSlots) < 8 && throwRangeError(\"Cannot use small units\");\n const first = checkIsoDateInBounds(moveToStartOfMonth(calendar, isoDate));\n return moveToStartOfMonth(calendar, moveDate(calendar, first, durationSlots, overflow));\n}\n\nfunction moveYearMonthByUnits(calendar, isoDate, years, months, overflow) {\n const first = checkIsoDateInBounds(moveToStartOfMonth(calendar, isoDate));\n return moveToStartOfMonth(calendar, years || months ? checkIsoDateInBounds(moveDateByCalendarUnits(calendar, first, years, months, overflow)) : first);\n}\n\nfunction moveZonedEpochSlots(slots, durationFields, overflow = 0) {\n const {calendar: calendar, epochNanoseconds: epochNano, timeZone: timeZone} = slots;\n const timeOnlyNano = durationTimeToBigNano(durationFields);\n let movedEpochNano = epochNano;\n if (durationHasDateParts(durationFields)) {\n const isoDateTime = zonedEpochSlotsToIso(slots);\n movedEpochNano = getSingleInstantFor(timeZone, combineDateAndTime(moveDate(calendar, isoDateTime, {\n ...durationFields,\n ...durationTimeFieldDefaults\n }, overflow), isoDateTime)) + timeOnlyNano;\n } else {\n movedEpochNano += timeOnlyNano;\n }\n return {\n ...slots,\n epochNanoseconds: checkEpochNanoInBounds(movedEpochNano)\n };\n}\n\nfunction moveDateTime(calendar, isoDateTime, durationFields, overflow = 0) {\n const [movedTimeFields, dayDelta] = moveTime(isoDateTime, durationFields);\n return checkIsoDateTimeInBounds(combineDateAndTime(moveDate(calendar, isoDateTime, {\n ...durationFields,\n ...durationTimeFieldDefaults,\n days: durationFields.days + dayDelta\n }, overflow), movedTimeFields));\n}\n\nfunction moveDateTimeByNano(fields, delta) {\n const [time, days] = moveTimeByNano(fields, delta);\n return checkIsoDateTimeInBounds(combineDateAndTime(moveDateByDays(fields, days), time));\n}\n\nfunction moveTime(timeFields, durationFields) {\n return moveTimeByNano(timeFields, durationTimeToBigNano(durationFields));\n}\n\nfunction moveEpochNano(epochNano, durationFields) {\n return moveEpochNanoByNano(epochNano, (durationHasDateParts(fields = durationFields) && throwRangeError(\"Cannot use large units\"), \n durationTimeToBigNano(fields)));\n var fields;\n}\n\nfunction moveDate(calendar, isoDate, durationFields, overflow = 0) {\n let {years: years, months: months, weeks: weeks, days: days} = durationFields;\n let movedIsoDate;\n if (days += Number(durationTimeToBigNano(durationFields) / bigNanoInUtcDay), years || months) {\n movedIsoDate = moveDateByCalendarUnits(calendar, isoDate, years, months, overflow);\n } else {\n if (!weeks && !days) {\n return isoDate;\n }\n movedIsoDate = isoDate;\n }\n return (weeks || days) && (movedIsoDate = moveDateByDays(movedIsoDate, 7 * weeks + days)), \n checkIsoDateInBounds(movedIsoDate);\n}\n\nfunction moveToStartOfMonth(calendar, isoDate) {\n return moveDateByDays(isoDate, 1 - computeCalendarDateFields(calendar, isoDate).day);\n}\n\nfunction moveDateByCalendarUnits(calendar, isoDate, years, months, overflow) {\n const dateParts = computeCalendarDateFields(calendar, isoDate);\n let {year: year, month: month, day: day} = dateParts;\n if (years) {\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);\n year += years, month = resolveMonthInMovedYear(calendar, monthCodeNumber, isLeapMonth, calendar ? calendar.p(year) : void 0, overflow), \n month = clampEntity(\"month\", month, 1, computeCalendarMonthsInYearForYear(calendar, year), overflow);\n }\n if (months) {\n const yearMonthParts = addCalendarMonths(calendar, year, month, months);\n ({year: year, month: month} = yearMonthParts);\n }\n return day = clampEntity(\"day\", day, 1, computeCalendarDaysInMonthForYearMonth(calendar, year, month), overflow), \n computeCalendarIsoFieldsFromParts(calendar, year, month, day);\n}\n\nfunction addCalendarMonths(calendar, year, month, monthDelta) {\n return calendar ? calendar.ae(year, month, monthDelta) : addIsoMonths(year, month, monthDelta);\n}\n\nfunction resolveMonthInMovedYear(calendar, monthCodeNumber, isLeapMonth, targetLeapMonth, overflow) {\n if (isLeapMonth) {\n const leapMonthMeta = calendar ? calendar.l : void 0;\n return void 0 !== targetLeapMonth && (leapMonthMeta < 0 || targetLeapMonth === monthCodeNumber + 1) ? targetLeapMonth : (1 === overflow && throwRangeError(invalidLeapMonth), \n leapMonthMeta < 0 ? -leapMonthMeta : monthCodeNumber);\n }\n return monthCodeNumberToMonth(monthCodeNumber, 0, targetLeapMonth);\n}\n\nfunction moveTimeByNano(timeFields, durationBigNano) {\n const durDays = Number(durationBigNano / bigNanoInUtcDay);\n const durTimeNano = Number(durationBigNano % bigNanoInUtcDay);\n const [newTimeFields, overflowDays] = nanoToTimeAndDay(timeFieldsToNano(timeFields) + durTimeNano);\n return [ newTimeFields, durDays + overflowDays ];\n}\n\nfunction moveEpochNanoByNano(epochNano, deltaNano) {\n return checkEpochNanoInBounds(epochNano + deltaNano);\n}\n\nfunction moveDateByDays(isoDate, days) {\n return days ? epochDaysToIsoDate(isoDateToEpochDays(isoDate) + days) : isoDate;\n}\n\nfunction getCommonCalendar(a, b) {\n return getCalendarSlotId(a) !== getCalendarSlotId(b) && throwRangeError(\"Mismatching Calendars\"), \n a;\n}\n\nfunction getCommonTimeZone(a, b) {\n return a.m !== b.m && throwRangeError(\"Mismatching TimeZones\"), \n a;\n}\n\nfunction getZonedTimeZoneId(slots) {\n return slots.timeZone.id;\n}\n\nfunction diffZonedDateTimesRounded(calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode) {\n return largestUnit < 6 ? diffEpochNanosRounded(startZoned.epochNanoseconds, endZoned.epochNanoseconds, largestUnit, smallestUnit, roundingInc, roundingMode) : ((calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode) => {\n const endEpochNano = endZoned.epochNanoseconds;\n if (endEpochNano === startZoned.epochNanoseconds) {\n return durationFieldDefaults;\n }\n let durationFields;\n const timeZone = getCommonTimeZone(startZoned.timeZone, endZoned.timeZone);\n return durationFields = diffZonedEpochsExact(timeZone, calendar, startZoned, endZoned, largestUnit), \n durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, createZonedRelativeOps(calendar, timeZone, startZoned), 1), \n durationFields;\n })(calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode);\n}\n\nfunction diffDateTimesRounded(calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode) {\n return largestUnit <= 6 ? diffEpochNanosRounded(isoDateTimeToEpochNano(startIsoDateTime), isoDateTimeToEpochNano(endIsoDateTime), largestUnit, smallestUnit, roundingInc, roundingMode) : ((calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode) => {\n const endEpochNano = isoDateTimeToEpochNano(endIsoDateTime);\n const sign = compareBigInts(endEpochNano, isoDateTimeToEpochNano(startIsoDateTime));\n if (!sign) {\n return durationFieldDefaults;\n }\n let durationFields;\n return durationFields = diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit), \n durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, ((calendar, origin) => ({\n ne: isoDateTimeToEpochNano(origin),\n ke: duration => isoDateTimeToEpochNano(combineDateAndTime(moveDate(calendar, origin, duration), origin))\n }))(calendar, startIsoDateTime)), durationFields;\n })(calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode);\n}\n\nfunction diffYearMonthsRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode) {\n const firstOfMonth0 = moveToStartOfMonth(calendar, startIsoDate);\n const firstOfMonth1 = moveToStartOfMonth(calendar, endIsoDate);\n return compareIsoDates(firstOfMonth0, firstOfMonth1) ? diffDateCalendarUnitsRounded(calendar, checkIsoDateInBounds(firstOfMonth0), checkIsoDateInBounds(firstOfMonth1), largestUnit, smallestUnit, roundingInc, roundingMode, 8) : durationFieldDefaults;\n}\n\nfunction diffDatesRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision = 6) {\n return 6 === largestUnit ? diffEpochNanosRounded(isoDateToEpochNano(startIsoDate), isoDateToEpochNano(endIsoDate), largestUnit, smallestUnit, roundingInc, roundingMode) : diffDateCalendarUnitsRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision);\n}\n\nfunction diffTimesRounded(plainTimeSlots0, plainTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode) {\n const timeDiffNano = roundNumberToInc(timeFieldsToNano(plainTimeSlots1) - timeFieldsToNano(plainTimeSlots0), computeNanoInc(smallestUnit, roundingInc), roundingMode);\n return {\n ...durationFieldDefaults,\n ...nanoToDurationTimeFields(timeDiffNano, largestUnit)\n };\n}\n\nfunction diffDateCalendarUnitsRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision = 6) {\n const endEpochNano = isoDateToEpochNano(endIsoDate);\n if (!compareIsoDates(startIsoDate, endIsoDate)) {\n return durationFieldDefaults;\n }\n let durationFields;\n return durationFields = diffCalendarDates(calendar, startIsoDate, endIsoDate, largestUnit), \n smallestUnit === smallestPrecision && 1 === roundingInc || (durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, createDateRelativeOps(calendar, startIsoDate))), \n durationFields;\n}\n\nfunction diffEpochNanosRounded(startEpochNano, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode) {\n return {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(roundBigNanoToInc(endEpochNano - startEpochNano, computeBigNanoInc(smallestUnit, roundingInc), roundingMode), largestUnit)\n };\n}\n\nfunction diffZonedEpochsExact(timeZone, calendar, startZoned, endZoned, largestUnit) {\n return largestUnit < 6 ? {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(endZoned.epochNanoseconds - startZoned.epochNanoseconds, largestUnit)\n } : ((timeZone, startZoned, endZoned) => {\n const sign = compareBigInts(endZoned.epochNanoseconds, startZoned.epochNanoseconds);\n if (!sign) {\n return durationFieldDefaults;\n }\n if (!compareIsoDates(zonedEpochSlotsToIso(startZoned), zonedEpochSlotsToIso(endZoned))) {\n return {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(endZoned.epochNanoseconds - startZoned.epochNanoseconds, 5)\n };\n }\n const [startIsoDateTime, endIsoDate, remainderNano] = prepareZonedEpochDiff(timeZone, startZoned, endZoned, sign);\n return {\n ...(start = startIsoDateTime, end = endIsoDate, diffCalendarDates(calendar, start, end, largestUnit)),\n ...nanoToDurationTimeFields(remainderNano)\n };\n var start, end;\n })(timeZone, startZoned, endZoned);\n}\n\nfunction diffDateTimesExact(calendar, startIsoDateTime, endIsoDateTime, largestUnit) {\n const startEpochNano = isoDateTimeToEpochNano(startIsoDateTime);\n const endEpochNano = isoDateTimeToEpochNano(endIsoDateTime);\n const sign = compareBigInts(endEpochNano, startEpochNano);\n return sign ? largestUnit <= 6 ? {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(endEpochNano - startEpochNano, largestUnit)\n } : diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit) : durationFieldDefaults;\n}\n\nfunction diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit) {\n let diffEndDate = endIsoDateTime;\n let timeNano = timeFieldsToNano(endIsoDateTime) - timeFieldsToNano(startIsoDateTime);\n return Math.sign(timeNano) === -sign && (diffEndDate = moveDateByDays(endIsoDateTime, -sign), \n timeNano += nanoInUtcDay * sign), {\n ...diffCalendarDates(calendar, startIsoDateTime, diffEndDate, largestUnit),\n ...nanoToDurationTimeFields(timeNano)\n };\n}\n\nfunction prepareZonedEpochDiff(timeZone, startZoned, endZoned, sign) {\n const startIsoDate = zonedEpochSlotsToIso(startZoned);\n const endIsoDate = zonedEpochSlotsToIso(endZoned);\n const endEpochNano = endZoned.epochNanoseconds;\n let dayCorrection = 0;\n const timeDiffNano = timeFieldsToNano(endIsoDate) - timeFieldsToNano(startIsoDate);\n Math.sign(timeDiffNano) === -sign && dayCorrection++;\n const maxDayCorrection = dayCorrection + (sign > 0 ? 1 : 0);\n for (;;dayCorrection++) {\n const midIsoDate = moveDateByDays(endIsoDate, dayCorrection * -sign);\n const midEpochNano = getSingleInstantFor(timeZone, combineDateAndTime(midIsoDate, startIsoDate));\n if (dayCorrection === maxDayCorrection || compareBigInts(endEpochNano, midEpochNano) !== -sign) {\n return [ startIsoDate, midIsoDate, Number(endEpochNano - midEpochNano) ];\n }\n }\n}\n\nfunction diffCalendarDates(calendar, startIsoDate, endIsoDate, largestUnit) {\n if (largestUnit <= 7) {\n return ((asWeeks, start, end) => {\n const days = countIsoDays(start, end);\n return asWeeks ? {\n ...durationFieldDefaults,\n weeks: divTrunc(days, 7),\n days: modTrunc(days, 7)\n } : {\n ...durationFieldDefaults,\n days: days\n };\n })(7 === largestUnit, startIsoDate, endIsoDate);\n }\n const yearMonthDayStart = computeCalendarDateFields(calendar, startIsoDate);\n const yearMonthDayEnd = computeCalendarDateFields(calendar, endIsoDate);\n if (8 === largestUnit) {\n const {year: year0, month: month0, day: day0} = yearMonthDayStart;\n const {year: year1, month: month1, day: day1} = yearMonthDayEnd;\n const sign = Math.sign(compareNumbers(year1, year0) || compareNumbers(month1, month0) || countIsoDays(startIsoDate, endIsoDate));\n let months = 0;\n let days = 0;\n if (sign) {\n months = calendar ? calendar.ee(year0, month0, year1, month1) : diffIsoMonthSlots(year0, month0, year1, month1);\n let anchorIsoDate = moveDateByCalendarUnits(calendar, startIsoDate, 0, months, 0);\n sign * compareNumbers(day0, day1) > 0 && (months -= sign, anchorIsoDate = moveDateByCalendarUnits(calendar, startIsoDate, 0, months, 0)), \n days = countIsoDays(anchorIsoDate, endIsoDate);\n }\n return {\n ...durationFieldDefaults,\n months: months,\n days: days\n };\n }\n const {year: year0, month: month0, day: day0} = yearMonthDayStart;\n let {year: year1, month: month1, day: day1} = yearMonthDayEnd;\n let yearDiff = year1 - year0;\n let monthDiff = month1 - month0;\n let dayDiff = day1 - day0;\n if (yearDiff || monthDiff) {\n const sign = Math.sign(yearDiff || monthDiff);\n let daysInMonth1 = computeCalendarDaysInMonthForYearMonth(calendar, year1, month1);\n let dayCorrect = 0;\n if (Math.sign(day1 - day0) === -sign) {\n const origDaysInMonth1 = daysInMonth1;\n const yearMonthParts = addCalendarMonths(calendar, year1, month1, -sign);\n ({year: year1, month: month1} = yearMonthParts), yearDiff = year1 - year0, monthDiff = month1 - month0, \n daysInMonth1 = computeCalendarDaysInMonthForYearMonth(calendar, year1, month1), \n dayCorrect = sign < 0 ? -origDaysInMonth1 : daysInMonth1;\n }\n if (dayDiff = day1 - Math.min(day0, daysInMonth1) + dayCorrect, yearDiff) {\n const [monthCodeNumber0, isLeapMonth0] = computeCalendarMonthCodeParts(calendar, year0, month0);\n const [monthCodeNumber1, isLeapMonth1] = computeCalendarMonthCodeParts(calendar, year1, month1);\n const leapMonthMeta = calendar ? calendar.l : void 0;\n if (monthDiff = void 0 !== leapMonthMeta && isLeapMonth0 && !isLeapMonth1 && (leapMonthMeta < 0 ? sign > 0 && monthCodeNumber1 === -leapMonthMeta : sign < 0 && monthCodeNumber1 === monthCodeNumber0) ? 0 : monthCodeNumber1 - monthCodeNumber0 || Number(isLeapMonth1) - Number(isLeapMonth0), \n Math.sign(monthDiff) === -sign) {\n const monthCorrect = sign < 0 && -computeCalendarMonthsInYearForYear(calendar, year1);\n year1 -= sign, yearDiff = year1 - year0, monthDiff = month1 - resolveMonthInMovedYear(calendar, monthCodeNumber0, isLeapMonth0, calendar ? calendar.p(year1) : void 0, 0) + (monthCorrect || computeCalendarMonthsInYearForYear(calendar, year1));\n } else if (calendar) {\n const month0Projected = resolveMonthInMovedYear(calendar, monthCodeNumber0, isLeapMonth0, calendar.p(year1), 0);\n monthDiff = calendar.ee(year1, month0Projected, year1, month1);\n }\n }\n }\n return {\n ...durationFieldDefaults,\n years: yearDiff,\n months: monthDiff,\n days: dayDiff\n };\n}\n\nfunction compareIsoDates(isoDate0, isoDate1) {\n return compareNumbers(isoDate0.year, isoDate1.year) || compareNumbers(isoDate0.month, isoDate1.month) || compareNumbers(isoDate0.day, isoDate1.day);\n}\n\nfunction countIsoDays(startIsoDate, endIsoDate) {\n return isoDateToEpochDays(endIsoDate) - isoDateToEpochDays(startIsoDate);\n}\n\nfunction spanRelativeDuration(relativeToSlots, durationFields, largestUnit) {\n return isZonedEpochSlots(relativeToSlots) ? ((relativeToSlots, durationFields, largestUnit) => {\n const {calendar: calendar, timeZone: timeZone} = relativeToSlots;\n const endSlots = moveZonedEpochSlots(relativeToSlots, durationFields);\n return [ diffZonedEpochsExact(timeZone, calendar, relativeToSlots, endSlots, largestUnit), endSlots.epochNanoseconds, createZonedRelativeOps(calendar, timeZone, relativeToSlots) ];\n })(relativeToSlots, durationFields, largestUnit) : ((relativeToSlots, durationFields, largestUnit) => {\n const {calendar: calendar} = relativeToSlots;\n const origin = checkIsoDateTimeInBounds(combineDateAndTime(relativeToSlots, timeFieldDefaults));\n const end = moveDateTime(calendar, origin, durationFields);\n return [ diffDateTimesExact(calendar, origin, end, largestUnit), isoDateTimeToEpochNano(end), createDateRelativeOps(calendar, relativeToSlots) ];\n })(relativeToSlots, durationFields, largestUnit);\n}\n\nfunction moveRelativeEndpointToEpochNano(relativeToSlots, durationFields) {\n return isZonedEpochSlots(relativeToSlots) ? moveZonedEpochSlots(relativeToSlots, durationFields).epochNanoseconds : isoDateTimeToEpochNano(moveDateTime(relativeToSlots.calendar, combineDateAndTime(relativeToSlots, timeFieldDefaults), durationFields));\n}\n\nfunction moveRelativeMarkerToEpochNano(relativeOps, dateDuration) {\n return durationHasDateParts(dateDuration) ? relativeOps.ke(dateDuration) : relativeOps.ne;\n}\n\nfunction createZonedRelativeOps(calendar, timeZone, slots) {\n const origin = zonedEpochSlotsToIso(slots);\n return {\n ne: slots.epochNanoseconds,\n ke: duration => getSingleInstantFor(timeZone, combineDateAndTime(moveDate(calendar, origin, duration), origin))\n };\n}\n\nfunction createDateRelativeOps(calendar, origin) {\n return {\n ne: isoDateToEpochNano(origin),\n ke: duration => isoDateToEpochNano(moveDate(calendar, origin, duration))\n };\n}\n\nfunction isZonedEpochSlots(slots) {\n return \"timeZone\" in slots;\n}\n\nfunction isUniformUnit(unit, isZoned) {\n return unit <= 6 - (isZoned ? 1 : 0);\n}\n\nfunction nanoToGivenFields(nano, largestUnit, fieldNames) {\n const fields = {};\n for (let unit = largestUnit; unit >= 0; unit--) {\n const divisor = unitNanoMap[unit];\n fields[fieldNames[unit]] = divTrunc(nano, divisor), nano = modTrunc(nano, divisor);\n }\n return fields;\n}\n\nconst maxDurationSeconds = 2 ** 53;\n\nfunction addDurationsWithoutRelativeTo(doSubtract, slots, otherSlots) {\n const maxUnit = Math.max(getMaxDurationUnit(slots), getMaxDurationUnit(otherSlots));\n return maxUnit > 6 && throwRangeError(\"Cannot use large units\"), ((doSubtract, slots, otherSlots, maxUnit) => createDurationSlots(validateDurationFields(((a, b, largestUnit, doSubtract) => {\n const combined = durationDayTimeToBigNano(a) + durationDayTimeToBigNano(b) * BigInt(doSubtract ? -1 : 1);\n return Number.isFinite(Number(combined / bigNanoInUtcDay)) || throwRangeError(outOfBoundsDate), \n {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(combined, largestUnit)\n };\n })(slots, otherSlots, maxUnit, doSubtract))))(doSubtract, slots, otherSlots, maxUnit);\n}\n\nfunction roundDuration(refineRelativeTo, slots, options) {\n const durationLargestUnit = getMaxDurationUnit(slots);\n const [largestUnit, smallestUnit, roundingInc, roundingMode, relativeToSlots] = refineDurationRoundOptions(options, durationLargestUnit, refineRelativeTo);\n if (!relativeToSlots && Math.max(durationLargestUnit, largestUnit) <= 6) {\n return createDurationSlots(validateDurationFields(((durationFields, largestUnit, smallestUnit, roundingInc, roundingMode) => {\n const roundedBigNano = roundBigNanoToInc(durationDayTimeToBigNano(durationFields), computeBigNanoInc(smallestUnit, roundingInc), roundingMode);\n return {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(roundedBigNano, largestUnit)\n };\n })(slots, largestUnit, smallestUnit, roundingInc, roundingMode)));\n }\n relativeToSlots || throwRangeError(\"Missing relativeTo\");\n const isZoned = isZonedEpochSlots(relativeToSlots);\n if (!slots.sign && (!isZoned || largestUnit < 6)) {\n return slots;\n }\n const [balancedDuration, endEpochNano, relativeOps] = spanRelativeDuration(relativeToSlots, slots, largestUnit);\n return createDurationSlots(roundRelativeDuration(balancedDuration, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps, isZoned));\n}\n\nfunction absDuration(slots) {\n return -1 === slots.sign ? negateDuration(slots) : slots;\n}\n\nfunction negateDuration(slots) {\n return createDurationSlots(negateDurationFields(slots));\n}\n\nfunction negateDurationFields(fields) {\n const res = {};\n for (const fieldName of durationFieldNamesAsc) {\n res[fieldName] = -1 * fields[fieldName] || 0;\n }\n return res;\n}\n\nfunction computeDurationSign(fields, fieldNames = durationFieldNamesAsc) {\n let sign = 0;\n for (const fieldName of fieldNames) {\n const fieldSign = Math.sign(fields[fieldName]);\n fieldSign && (sign && sign !== fieldSign && throwRangeError(\"Cannot mix duration signs\"), \n sign = fieldSign);\n }\n return sign;\n}\n\nfunction validateDurationFields(fields) {\n for (const calendarUnit of durationCalendarFieldNamesAsc) {\n validateDurationCalendarUnit(calendarUnit, fields[calendarUnit]);\n }\n const bigNano = durationDayTimeToBigNano(fields);\n return validateDurationTimeUnit(Number(bigNano / bigNanoInSec)), fields;\n}\n\nfunction validateDurationCalendarUnit(unit, value) {\n return clampEntity(unit, value, -4294967295, 4294967295, 1);\n}\n\nfunction validateDurationTimeUnit(n) {\n Number.isSafeInteger(n) || throwRangeError(\"Out-of-bounds duration\");\n}\n\nfunction durationDayTimeToBigNano(fields) {\n return BigInt(fields.days) * bigNanoInUtcDay + durationTimeToBigNano(fields);\n}\n\nfunction durationTimeToBigNano(fields) {\n return BigInt(fields.hours) * bigNanoInHour + BigInt(fields.minutes) * bigNanoInMinute + durationSubMinuteToBigNano(fields);\n}\n\nfunction durationSubMinuteToBigNano(fields) {\n return BigInt(fields.seconds) * bigNanoInSec + BigInt(fields.milliseconds) * bigNanoInMilli + BigInt(fields.microseconds) * bigNanoInMicro + BigInt(fields.nanoseconds);\n}\n\nfunction nanoToDurationDayTimeFields(bigNano, largestUnit = 6) {\n const days = Number(bigNano / bigNanoInUtcDay);\n const timeNano = Number(bigNano % bigNanoInUtcDay);\n const unitNano = unitNanoMap[largestUnit];\n const largestUnitVal = largestUnit <= 3 ? Number(bigNano / BigInt(unitNano)) : days * (nanoInUtcDay / unitNano) + divTrunc(timeNano, unitNano);\n Number.isFinite(largestUnitVal) || throwRangeError(outOfBoundsDate), largestUnit <= 3 && Math.abs(largestUnitVal) / (nanoInSec / unitNanoMap[largestUnit]) >= maxDurationSeconds && throwRangeError(outOfBoundsDate);\n const dayTimeFields = nanoToGivenFields(timeNano, largestUnit, durationFieldNamesAsc);\n return dayTimeFields[durationFieldNamesAsc[largestUnit]] = largestUnitVal, dayTimeFields;\n}\n\nfunction nanoToDurationTimeFields(nano, largestUnit = 5) {\n return nanoToGivenFields(nano, largestUnit, durationFieldNamesAsc);\n}\n\nfunction durationHasDateParts(fields) {\n return Boolean(computeDurationSign(fields, durationDateFieldNamesAsc));\n}\n\nfunction getMaxDurationUnit(fields) {\n let unit = 9;\n for (;unit > 0 && !fields[durationFieldNamesAsc[unit]]; unit--) {}\n return unit;\n}\n\nfunction compareZonedEpochSlots(zonedEpochSlots0, zonedEpochSlots1) {\n return compareBigInts(zonedEpochSlots0.epochNanoseconds, zonedEpochSlots1.epochNanoseconds);\n}\n\nfunction compareDurations(refineRelativeTo, durationSlots0, durationSlots1, options) {\n const relativeToSlots = refineRelativeTo(normalizeOptions(options).relativeTo);\n const maxUnit = Math.max(getMaxDurationUnit(durationSlots0), getMaxDurationUnit(durationSlots1));\n return allPropsEqual(durationFieldNamesAsc, durationSlots0, durationSlots1) ? 0 : isUniformUnit(maxUnit, relativeToSlots && isZonedEpochSlots(relativeToSlots)) ? compareBigInts(durationDayTimeToBigNano(durationSlots0), durationDayTimeToBigNano(durationSlots1)) : (relativeToSlots || throwRangeError(\"Missing relativeTo\"), \n compareBigInts(moveRelativeEndpointToEpochNano(relativeToSlots, durationSlots0), moveRelativeEndpointToEpochNano(relativeToSlots, durationSlots1)));\n}\n\nfunction compareIsoDateTimeFields(isoDateTime0, isoDateTime1) {\n return compareIsoDateFields(isoDateTime0, isoDateTime1) || compareTimeFields(isoDateTime0, isoDateTime1);\n}\n\nfunction compareIsoDateFields(isoDate0, isoDate1) {\n return compareNumbers(isoDateToEpochDays(isoDate0), isoDateToEpochDays(isoDate1));\n}\n\nfunction compareTimeFields(timeFields0, timeFields1) {\n return compareNumbers(timeFieldsToNano(timeFields0), timeFieldsToNano(timeFields1));\n}\n\nfunction instantsEqual(instantSlots0, instantSlots1) {\n return !compareZonedEpochSlots(instantSlots0, instantSlots1);\n}\n\nfunction zonedDateTimesEqual(zonedDateTimeSlots0, zonedDateTimeSlots1) {\n return !compareZonedEpochSlots(zonedDateTimeSlots0, zonedDateTimeSlots1) && zonedDateTimeSlots0.timeZone.m === zonedDateTimeSlots1.timeZone.m && zonedDateTimeSlots0.calendar === zonedDateTimeSlots1.calendar;\n}\n\nfunction plainDateTimesEqual(plainDateTimeSlots0, plainDateTimeSlots1) {\n return !compareIsoDateTimeFields(plainDateTimeSlots0, plainDateTimeSlots1) && plainDateTimeSlots0.calendar === plainDateTimeSlots1.calendar;\n}\n\nfunction plainDatesEqual(plainDateSlots0, plainDateSlots1) {\n return !compareIsoDateFields(plainDateSlots0, plainDateSlots1) && plainDateSlots0.calendar === plainDateSlots1.calendar;\n}\n\nfunction plainYearMonthsEqual(plainYearMonthSlots0, plainYearMonthSlots1) {\n return !compareIsoDateFields(plainYearMonthSlots0, plainYearMonthSlots1) && plainYearMonthSlots0.calendar === plainYearMonthSlots1.calendar;\n}\n\nfunction plainMonthDaysEqual(plainMonthDaySlots0, plainMonthDaySlots1) {\n return !compareIsoDateFields(plainMonthDaySlots0, plainMonthDaySlots1) && plainMonthDaySlots0.calendar === plainMonthDaySlots1.calendar;\n}\n\nfunction plainTimesEqual(plainTimeSlots0, plainTimeSlots1) {\n return !compareTimeFields(plainTimeSlots0, plainTimeSlots1);\n}\n\nfunction getCalendarEraOrigins(calendar) {\n return 0 === calendar ? gregoryEraOrigins : calendar ? calendar.k : void 0;\n}\n\nfunction getCalendarFieldNames(calendar, fieldNames, fieldNamesWithEra = fieldNames) {\n return getCalendarEraOrigins(calendar) ? fieldNamesWithEra : fieldNames;\n}\n\nfunction resolveCalendarYear(fields, calendar) {\n const exoticCalendar = calendar || void 0;\n const eraOrigins = getCalendarEraOrigins(calendar);\n let {era: era, eraYear: eraYear, year: year} = fields;\n if (void 0 !== year && (year = toIntegerWithTrunc(year, \"year\")), void 0 !== eraYear && (eraYear = toIntegerWithTrunc(eraYear, \"eraYear\")), \n void 0 !== era || void 0 !== eraYear) {\n void 0 !== era && void 0 !== eraYear || throwTypeError(\"Mismatching era/eraYear\"), \n eraOrigins || throwRangeError(\"Forbidden era/eraYear\");\n const normalizedEra = normalizeEraName(era);\n const eraOrigin = eraOrigins[normalizedEra];\n void 0 === eraOrigin && throwRangeError((era => `Invalid era: ${era}`)(era));\n const yearByEra = exoticCalendar?._ ? exoticCalendar._(eraYear, normalizedEra, eraOrigin) : eraYearToYear(eraYear, eraOrigin);\n void 0 !== year && year !== yearByEra && throwRangeError(\"Mismatching year/eraYear\"), \n year = yearByEra;\n } else {\n void 0 === year && throwTypeError(missingYear(eraOrigins));\n }\n return year;\n}\n\nfunction resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow) {\n let {month: month, monthCode: monthCode} = fields;\n if (void 0 !== monthCode) {\n const monthByCode = ((calendar, monthCode, year, overflow, monthCodeParts = parseMonthCode(monthCode)) => {\n const leapMonth = calendar ? calendar.p(year) : void 0;\n const [monthCodeNumber, wantsLeapMonth] = monthCodeParts;\n let month = monthCodeNumberToMonth(monthCodeNumber, wantsLeapMonth, leapMonth);\n if (wantsLeapMonth) {\n const leapMonthMeta = calendar ? calendar.l : void 0;\n void 0 === leapMonthMeta && throwRangeError(invalidLeapMonth), leapMonthMeta > 0 ? (month > leapMonthMeta && throwRangeError(invalidLeapMonth), \n leapMonth !== month && (1 === overflow && throwRangeError(invalidLeapMonth), month = monthCodeNumberToMonth(monthCodeNumber, 0, leapMonth))) : (month !== -leapMonthMeta && throwRangeError(invalidLeapMonth), \n void 0 === leapMonth && 1 === overflow && throwRangeError(invalidLeapMonth));\n }\n return month;\n })(calendar, monthCode, year, overflow, monthCodeParts);\n void 0 !== month && month !== monthByCode && throwRangeError(\"Mismatching month/monthCode\"), \n month = monthByCode, overflow = 1;\n } else {\n void 0 === month && throwTypeError(\"Missing month/monthCode\");\n }\n return clampEntity(\"month\", month, 1, computeCalendarMonthsInYearForYear(calendar, year), overflow);\n}\n\nfunction resolveCalendarDay(fields, calendar, year, month, overflow) {\n return clampProp(fields, \"day\", 1, computeCalendarDaysInMonthForYearMonth(calendar, year, month), overflow);\n}\n\nfunction eraYearToYear(eraYear, eraOrigin) {\n return (eraOrigin + eraYear) * (Math.sign(eraOrigin) || 1) || 0;\n}\n\nfunction resolveTimeFields(fields, overflow) {\n return constrainTimeFields(pluckProps(timeFieldNamesAsc, {\n ...timeFieldDefaults,\n ...fields\n }), overflow);\n}\n\nconst offsetRegExp = /*@__PURE__*/ createRegExp(\"([+-])(\\\\d{2})(?::?(\\\\d{2})(?::?(\\\\d{2})(?:[.,](\\\\d{1,9}))?)?)?\");\n\nfunction parseOffsetNano(s) {\n const offsetNano = parseOffsetNanoMaybe(s);\n return void 0 === offsetNano && throwRangeError(failedParse(s)), offsetNano;\n}\n\nfunction parseOffsetNanoMaybe(s, onlyHourMinute) {\n const parts = offsetRegExp.exec(s);\n if (parts && (s => (s => {\n \"T\" !== s[0] && \"t\" !== s[0] || (s = s.slice(1));\n const fractionIndex = s.search(/[.,]/);\n const main = fractionIndex < 0 ? s : s.slice(0, fractionIndex);\n const parts = main.split(\":\");\n return 1 === parts.length ? /^(?:\\d{2}|\\d{4}|\\d{6})$/i.test(main) : (2 === parts.length || 3 === parts.length) && parts.every(part => 2 === part.length && /^\\d{2}$/i.test(part));\n })(s.slice(1)))(parts[0])) {\n return ((parts, onlyHourMinute) => {\n const firstSubMinutePart = parts[4] || parts[5];\n onlyHourMinute && firstSubMinutePart && throwRangeError(invalidSubstring(firstSubMinutePart));\n const offsetNanoPos = parseInt0(parts[2]) * nanoInHour + parseInt0(parts[3]) * nanoInMinute + parseInt0(parts[4]) * nanoInSec + parseSubsecNano(parts[5] || \"\");\n return offsetNano = offsetNanoPos * parseSign(parts[1]), Math.abs(offsetNano) >= nanoInUtcDay && throwRangeError(\"Out-of-bounds offset\"), \n offsetNano;\n var offsetNano;\n })(parts, onlyHourMinute);\n }\n}\n\nconst dateFieldRefiners = {\n era: toString,\n month: toPositiveIntegerWithTruncation,\n monthCode(monthCode, fieldName) {\n return requireString(toPrimitiveWithStringHint(monthCode), fieldName);\n },\n day: toPositiveIntegerWithTruncation\n};\n\nconst timeFieldRefiners = /*@__PURE__*/ zipPropsConst(timeFieldNamesAsc, toIntegerWithTrunc);\n\nconst durationFieldRefiners = /*@__PURE__*/ zipPropsConst(durationFieldNamesAsc, toStrictInteger);\n\nconst dateTimeFieldRefiners = /*@__PURE__*/ Object.assign({}, dateFieldRefiners, timeFieldRefiners);\n\nconst zonedDateTimeFieldRefiners = {\n offset(offsetString) {\n return parseOffsetNano(requireString(toPrimitiveWithStringHint(offsetString)));\n },\n ...dateTimeFieldRefiners\n};\n\nfunction readAndRefineBagFields(bag, validFieldNames, fieldRefiners, requiredFieldNames, disallowEmpty = !requiredFieldNames) {\n const res = {};\n let anyMatching = 0;\n for (const fieldName of validFieldNames) {\n let fieldVal = bag[fieldName];\n if (void 0 !== fieldVal) {\n anyMatching = 1;\n const refiner = fieldRefiners[fieldName];\n refiner && (fieldVal = refiner(fieldVal, fieldName)), res[fieldName] = fieldVal;\n } else {\n requiredFieldNames && requiredFieldNames.includes(fieldName) && throwTypeError(missingField(fieldName));\n }\n }\n return disallowEmpty && !anyMatching && throwTypeError(noValidFields(validFieldNames)), \n res;\n}\n\nfunction refineCalendarDateFields(fields, calendar, allowMissingDay) {\n const eraOrigins = getCalendarEraOrigins(calendar);\n void 0 !== fields.year || void 0 !== fields.era && void 0 !== fields.eraYear || throwTypeError(missingYear(eraOrigins)), \n void 0 === fields.monthCode && void 0 === fields.month && throwTypeError(\"Missing month/monthCode\"), \n allowMissingDay || void 0 !== fields.day || throwTypeError(missingField(\"day\"));\n const monthCodeParts = parseMonthCodeField(fields);\n return [ resolveCalendarYear(fields, calendar), monthCodeParts ];\n}\n\nfunction refineMonthDayFields(fields, calendar) {\n const isIso = calendar === isoCalendarImpl;\n const eraOrigins = getCalendarEraOrigins(calendar);\n void 0 === fields.day && throwTypeError(missingField(\"day\")), isIso || void 0 === fields.month || void 0 !== fields.year || void 0 !== fields.era && void 0 !== fields.eraYear || throwTypeError(missingYear(eraOrigins));\n const monthCodeParts = parseMonthCodeField(fields);\n return [ void 0 !== fields.eraYear || void 0 !== fields.year ? resolveCalendarYear(fields, calendar) : void 0, monthCodeParts ];\n}\n\nfunction createDateTimeFromRefinedFields(isoDate, timeFields = timeFieldDefaults, calendar) {\n const isoDateTime = combineDateAndTime(isoDate, timeFields);\n return checkIsoDateTimeInBounds(isoDateTime), createDateTimeSlots(isoDateTime, calendar);\n}\n\nfunction createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {\n const month = resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow);\n return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, resolveCalendarDay(fields, calendar, year, month, overflow))), calendar);\n}\n\nfunction createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {\n return createYearMonthFromCalendarParts(calendar, year, resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow));\n}\n\nfunction createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {\n const isIso = calendar === isoCalendarImpl;\n let yearMaybe = year;\n let day;\n let monthCodeNumber;\n let isLeapMonth;\n if (void 0 === yearMaybe && isIso && (yearMaybe = 1972), void 0 !== yearMaybe) {\n isIso || checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, yearMaybe, 1, 1));\n const month = resolveCalendarMonth(fields, calendar, yearMaybe, monthCodeParts, overflow);\n day = resolveCalendarDay(fields, calendar, yearMaybe, month, overflow), [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, yearMaybe, month);\n } else {\n void 0 === fields.monthCode && throwTypeError(\"Missing month/monthCode\"), [monthCodeNumber, isLeapMonth] = monthCodeParts;\n const referenceYear = calendar ? calendar.re : 1972;\n if (void 0 !== referenceYear) {\n day = resolveCalendarDay(fields, calendar, referenceYear, resolveCalendarMonth(fields, calendar, referenceYear, monthCodeParts, overflow), overflow);\n } else {\n const constrainedDay = 0 === overflow && calendar ? calendar.ge?.(monthCodeNumber, isLeapMonth, fields.day) : void 0;\n day = void 0 !== constrainedDay ? constrainedDay : fields.day;\n }\n }\n return createMonthDayFromMonthCodeParts(calendar, monthCodeNumber, isLeapMonth, day, fields.day, overflow);\n}\n\nfunction createYearMonthFromCalendarParts(calendar, year, month) {\n return createDateSlots(checkIsoYearMonthInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, 1)), calendar);\n}\n\nfunction createMonthDayFromCalendarParts(calendar, year, month, day) {\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);\n return createMonthDayFromMonthCodeParts(calendar, monthCodeNumber, isLeapMonth, day, day, 0);\n}\n\nfunction createMonthDayFromMonthCodeParts(calendar, monthCodeNumber, isLeapMonthArg, day, requestedDay, overflow) {\n let isLeapMonth = isLeapMonthArg;\n isLeapMonth && ((calendar && calendar.V?.[monthCodeNumber]) ?? 1 / 0) < requestedDay && (1 === overflow && throwRangeError(invalidLeapMonth), \n isLeapMonth = 0, day = constrainToRange(requestedDay, 1, (calendar && calendar.U) ?? 1 / 0));\n let res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth), day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, Boolean(isLeapMonth));\n for (;!res && 0 === overflow && day > 1; ) {\n day--, res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth), day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, Boolean(isLeapMonth));\n }\n res || throwRangeError(\"Cannot guess year\");\n const {year: finalYear, month: finalMonth} = res;\n return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, finalYear, finalMonth, day)), calendar);\n}\n\nfunction parseMonthCodeField(fields) {\n if (void 0 !== fields.monthCode) {\n return parseMonthCode(fields.monthCode);\n }\n}\n\nconst RawDateTimeFormat = Intl.DateTimeFormat;\n\nfunction formatEpochMilliToPartsRecord(intlFormat, epochMilli) {\n epochMilli < -864e13 && throwRangeError(outOfBoundsDate);\n const parts = intlFormat.formatToParts(epochMilli);\n const hash = {};\n for (const part of parts) {\n hash[part.type] = part.value;\n }\n return hash;\n}\n\nconst utcTimeZoneId = \"UTC\";\n\nconst timeZonePeriodDaysByName = {\n \"El_Aaiun\": 17,\n \"Tucuman\": 12,\n \"Tirane\": 11,\n \"Riga\": 10,\n \"Simferopol\": 9,\n \"Vienna\": 9,\n \"Tunis\": 8,\n \"Boa_Vista\": 6,\n \"Fortaleza\": 6,\n \"Maceio\": 6,\n \"Noronha\": 6,\n \"Recife\": 6,\n \"Gaza\": 6,\n \"Hebron\": 6,\n \"DeNoronha\": 6\n};\n\nconst minPossibleTransitionSec = -388152e4;\n\nfunction formatInstantIso(refineTimeZoneString, instantSlots, options) {\n const [timeZoneArg, roundingMode, nanoInc, subsecDigits] = refineInstantDisplayOptions(options);\n const providedTimeZone = void 0 !== timeZoneArg;\n return ((providedTimeZone, timeZone, epochNano, roundingMode, nanoInc, subsecDigits) => {\n epochNano = roundBigNanoToDayOriginInc(epochNano, BigInt(nanoInc), roundingMode);\n const offsetNano = timeZone.B(epochNano);\n return formatIsoDateTimeFields(epochNanoToIsoDateTime(epochNano + BigInt(offsetNano)), subsecDigits) + (providedTimeZone ? formatOffsetNano(roundToMinute(offsetNano)) : \"Z\");\n })(providedTimeZone, queryTimeZone(providedTimeZone ? refineTimeZoneString(timeZoneArg) : \"UTC\"), instantSlots.epochNanoseconds, roundingMode, nanoInc, subsecDigits);\n}\n\nfunction formatInstantIsoAuto(instantSlots) {\n return formatIsoDateTimeFields(epochNanoToIsoDateTime(instantSlots.epochNanoseconds), void 0) + \"Z\";\n}\n\nfunction formatZonedDateTimeIso(zonedDateTimeSlots0, options) {\n const displayOptions = refineZonedDateTimeDisplayOptions(options);\n return ((calendar, timeZoneId, timeZone, epochNano, calendarDisplay, timeZoneDisplay, offsetDisplay, roundingMode, nanoInc, subsecDigits) => {\n epochNano = roundBigNanoToDayOriginInc(epochNano, BigInt(nanoInc), roundingMode);\n const offsetNano = timeZone.B(epochNano);\n return formatIsoDateTimeFields(epochNanoToIsoDateTime(epochNano + BigInt(offsetNano)), subsecDigits) + formatOffsetNano(roundToMinute(offsetNano), offsetDisplay) + formatTimeZone(timeZoneId, timeZoneDisplay) + formatCalendar(calendar, calendarDisplay);\n })(zonedDateTimeSlots0.calendar, zonedDateTimeSlots0.timeZone.id, zonedDateTimeSlots0.timeZone, zonedDateTimeSlots0.epochNanoseconds, ...displayOptions);\n}\n\nfunction formatZonedDateTimeIsoAuto(zonedDateTimeSlots) {\n const calendar = zonedDateTimeSlots.calendar;\n const timeZone = zonedDateTimeSlots.timeZone;\n const offsetNano = timeZone.B(zonedDateTimeSlots.epochNanoseconds);\n return formatIsoDateTimeFields(epochNanoToIsoDateTime(zonedDateTimeSlots.epochNanoseconds + BigInt(offsetNano)), void 0) + formatOffsetNano(roundToMinute(offsetNano)) + formatTimeZone(timeZone.id, 0) + (calendar === isoCalendarImpl ? \"\" : formatCalendarId(getCalendarSlotId(calendar), 0));\n}\n\nfunction formatPlainDateTimeIso(plainDateTimeSlots0, options) {\n const displayOptions = refineDateTimeDisplayOptions(options);\n return ((calendar, isoDateTime, calendarDisplay, roundingMode, nanoInc, subsecDigits) => formatIsoDateTimeFields(roundDateTimeToInc(isoDateTime, nanoInc, roundingMode), subsecDigits) + formatCalendar(calendar, calendarDisplay))(plainDateTimeSlots0.calendar, plainDateTimeSlots0, ...displayOptions);\n}\n\nfunction formatDateTimeIsoAuto(isoDateTimeSlots) {\n const calendar = isoDateTimeSlots.calendar;\n return formatIsoDateTimeFields(isoDateTimeSlots, void 0) + (calendar === isoCalendarImpl ? \"\" : formatCalendarId(getCalendarSlotId(calendar), 0));\n}\n\nfunction formatPlainDateIso(plainDateSlots, options) {\n return calendar = plainDateSlots.calendar, isoDate = plainDateSlots, calendarDisplay = refineDateDisplayOptions(options), \n formatIsoDateFields(isoDate) + formatCalendar(calendar, calendarDisplay);\n var calendar, isoDate, calendarDisplay;\n}\n\nfunction formatDateIsoAuto(plainDateSlots) {\n return formatIsoDateFields(plainDateSlots) + (plainDateSlots.calendar === isoCalendarImpl ? \"\" : formatCalendarId(getCalendarSlotId(plainDateSlots.calendar), 0));\n}\n\nfunction formatPlainYearMonthIso(plainYearMonthSlots, options) {\n return formatDateLikeIso(plainYearMonthSlots.calendar, formatIsoYearMonthFields, plainYearMonthSlots, refineDateDisplayOptions(options));\n}\n\nfunction formatYearMonthIsoAuto(plainYearMonthSlots) {\n const calendar = plainYearMonthSlots.calendar;\n return calendar !== isoCalendarImpl ? formatIsoDateFields(plainYearMonthSlots) + formatCalendarId(getCalendarSlotId(calendar), 0) : formatIsoYearMonthFields(plainYearMonthSlots);\n}\n\nfunction formatPlainMonthDayIso(plainMonthDaySlots, options) {\n return formatDateLikeIso(plainMonthDaySlots.calendar, formatIsoMonthDayFields, plainMonthDaySlots, refineDateDisplayOptions(options));\n}\n\nfunction formatMonthDayIsoAuto(plainMonthDaySlots) {\n const calendar = plainMonthDaySlots.calendar;\n return calendar !== isoCalendarImpl ? formatIsoDateFields(plainMonthDaySlots) + formatCalendarId(getCalendarSlotId(calendar), 0) : formatIsoMonthDayFields(plainMonthDaySlots);\n}\n\nfunction formatDateLikeIso(calendar, formatSimple, isoDate, calendarDisplay) {\n const showCalendar = calendarDisplay > 1 || 0 === calendarDisplay && calendar !== isoCalendarImpl;\n return 1 === calendarDisplay ? calendar === isoCalendarImpl ? formatSimple(isoDate) : formatIsoDateFields(isoDate) : showCalendar ? formatIsoDateFields(isoDate) + formatCalendarId(getCalendarSlotId(calendar), 2 === calendarDisplay) : formatSimple(isoDate);\n}\n\nfunction formatPlainTimeIso(slots, options) {\n return ((fields, roundingMode, nanoInc, subsecDigits) => formatTimeFields(roundTimeToInc(fields, nanoInc, roundingMode)[0], subsecDigits))(slots, ...refineTimeDisplayOptions(options));\n}\n\nfunction formatTimeIsoAuto(slots) {\n return formatTimeFields(slots, void 0);\n}\n\nfunction formatDurationIso(slots, options) {\n const [roundingMode, nanoInc, subsecDigits] = refineTimeDisplayOptions(options, 3);\n return nanoInc > 1 && validateDurationFields(slots = {\n ...slots,\n ...roundDayTimeDurationByInc(slots, nanoInc, roundingMode)\n }), formatDurationSlots(slots, subsecDigits);\n}\n\nfunction formatDurationIsoAuto(slots) {\n return formatDurationSlots(slots, void 0);\n}\n\nfunction formatDurationSlots(durationSlots, subsecDigits) {\n const {sign: sign} = durationSlots;\n const abs = -1 === sign ? negateDurationFields(durationSlots) : durationSlots;\n const {hours: hours, minutes: minutes} = abs;\n const bigNano = durationSubMinuteToBigNano(abs);\n const wholeSec = Number(bigNano / bigNanoInSec);\n const subsecNano = Number(bigNano % bigNanoInSec);\n validateDurationTimeUnit(wholeSec);\n const subsecNanoString = formatSubsecNano(subsecNano, subsecDigits);\n const forceSec = subsecDigits >= 0 || !sign || subsecNanoString;\n return (sign < 0 ? \"-\" : \"\") + \"P\" + formatDurationFragments({\n \"Y\": formatDurationNumber(abs.years),\n \"M\": formatDurationNumber(abs.months),\n \"W\": formatDurationNumber(abs.weeks),\n \"D\": formatDurationNumber(abs.days)\n }) + (hours || minutes || wholeSec || forceSec ? \"T\" + formatDurationFragments({\n \"H\": formatDurationNumber(hours),\n \"M\": formatDurationNumber(minutes),\n \"S\": formatDurationNumber(wholeSec, forceSec) + subsecNanoString\n }) : \"\");\n}\n\nfunction formatDurationFragments(fragObj) {\n const parts = [];\n for (const fragName in fragObj) {\n const fragVal = fragObj[fragName];\n fragVal && parts.push(fragVal, fragName);\n }\n return parts.join(\"\");\n}\n\nfunction formatDurationNumber(n, force) {\n if (!n && !force) {\n return \"\";\n }\n const options = Object.create(null);\n return options.useGrouping = 0, n.toLocaleString(\"fullwide\", options);\n}\n\nfunction formatIsoDateTimeFields(isoDateTime, subsecDigits) {\n return formatIsoDateFields(isoDateTime) + \"T\" + formatTimeFields(isoDateTime, subsecDigits);\n}\n\nfunction formatIsoDateFields(isoDate) {\n return formatIsoYearMonthFields(isoDate) + \"-\" + padNumber2(isoDate.day);\n}\n\nfunction formatIsoYearMonthFields(isoDate) {\n const {year: year} = isoDate;\n return (year < 0 || year > 9999 ? getSignStr(year) + padNumber(6, Math.abs(year)) : padNumber(4, year)) + \"-\" + padNumber2(isoDate.month);\n}\n\nfunction formatIsoMonthDayFields(isoDate) {\n return padNumber2(isoDate.month) + \"-\" + padNumber2(isoDate.day);\n}\n\nfunction formatTimeFields(timeFields, subsecDigits) {\n const parts = [ padNumber2(timeFields.hour), padNumber2(timeFields.minute) ];\n return -1 !== subsecDigits && parts.push(padNumber2(timeFields.second) + ((millisecond, microsecond, nanosecond, subsecDigits) => formatSubsecNano(millisecond * nanoInMilli + microsecond * nanoInMicro + nanosecond, subsecDigits))(timeFields.millisecond, timeFields.microsecond, timeFields.nanosecond, subsecDigits)), \n parts.join(\":\");\n}\n\nfunction formatOffsetNano(offsetNano, offsetDisplay = 0) {\n if (1 === offsetDisplay) {\n return \"\";\n }\n const [hour, nanoRemainder0] = divModFloor(Math.abs(offsetNano), nanoInHour);\n const [minute, nanoRemainder1] = divModFloor(nanoRemainder0, nanoInMinute);\n const [second, nanoRemainder2] = divModFloor(nanoRemainder1, nanoInSec);\n return getSignStr(offsetNano) + padNumber2(hour) + \":\" + padNumber2(minute) + (second || nanoRemainder2 ? \":\" + padNumber2(second) + formatSubsecNano(nanoRemainder2) : \"\");\n}\n\nfunction formatTimeZone(timeZoneId, timeZoneDisplay) {\n return 1 !== timeZoneDisplay ? \"[\" + (2 === timeZoneDisplay ? \"!\" : \"\") + timeZoneId + \"]\" : \"\";\n}\n\nfunction formatCalendar(calendar, calendarDisplay) {\n return calendarDisplay > 1 || 0 === calendarDisplay && calendar !== isoCalendarImpl ? formatCalendarId(getCalendarSlotId(calendar), 2 === calendarDisplay) : \"\";\n}\n\nfunction formatCalendarId(calendarId, isCritical) {\n return \"[\" + (isCritical ? \"!\" : \"\") + \"u-ca=\" + calendarId + \"]\";\n}\n\nconst trailingZerosRE = /0+$/;\n\nfunction formatSubsecNano(totalNano, subsecDigits) {\n let s = padNumber(9, totalNano);\n return s = void 0 === subsecDigits ? s.replace(trailingZerosRE, \"\") : s.slice(0, subsecDigits), \n s ? \".\" + s : \"\";\n}\n\nfunction getSignStr(num) {\n return num < 0 ? \"-\" : \"+\";\n}\n\nconst icuRegExp = /^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/;\n\nconst badCharactersRegExp = /[^\\w\\/:+-]+/;\n\nfunction refineTimeZoneId(rawId) {\n return resolveTimeZoneId(requireString(rawId));\n}\n\nfunction resolveTimeZoneId(rawId) {\n return resolveTimeZoneRecord(rawId).id;\n}\n\nfunction resolveTimeZoneRecord(rawId) {\n const upperRawId = rawId.toUpperCase();\n const offsetRecord = (upperRawId => {\n const offsetNano = parseOffsetNanoMaybe(upperRawId, 1);\n if (void 0 !== offsetNano) {\n return {\n id: formatOffsetNano(offsetNano),\n Z: offsetNano,\n m: offsetNano\n };\n }\n })(upperRawId);\n if (offsetRecord) {\n return {\n kind: \"fixed\",\n ...offsetRecord\n };\n }\n const normId = \"UTC\" === upperRawId ? \"UTC\" : (rawId => (badCharactersRegExp.test(rawId) && throwRangeError(invalidTimeZone(rawId)), \n icuRegExp.test(rawId) && throwRangeError(\"Forbidden ICU TimeZone\"), rawId.toLowerCase().split(\"/\").map((part, partI) => (part.length <= 3 || /\\d/.test(part)) && !/etc|yap/.test(part) ? part.toUpperCase() : part.replace(/baja|dumont|[a-z]+/g, (a, i) => a.length <= 2 && !partI || \"in\" === a || \"chat\" === a ? a.toUpperCase() : a.length > 2 || !i ? capitalize(a).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : a)).join(\"/\")))(rawId);\n return queryNamedTimeZoneRecord(normId);\n}\n\nconst queryNamedTimeZoneRecord = /*@__PURE__*/ memoize(normId => {\n if (\"UTC\" === normId) {\n return {\n kind: \"utc\",\n id: normId,\n m: normId\n };\n }\n const upperNormId = normId.toUpperCase();\n const format = queryTimeZoneIntlFormat(upperNormId);\n return {\n kind: \"named\",\n id: normId,\n format: format,\n m: format.resolvedOptions().timeZone\n };\n});\n\nconst queryTimeZoneIntlFormat = /*@__PURE__*/ memoize(upperNormId => new RawDateTimeFormat(\"en-u-hc-h23\", {\n calendar: \"iso8601\",\n timeZone: upperNormId,\n era: \"short\",\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\"\n}));\n\nfunction queryTimeZone(rawTimeZoneId) {\n const record = resolveTimeZoneRecord(rawTimeZoneId);\n return queryTimeZoneRecord(record.id, record);\n}\n\nconst queryTimeZoneRecord = /*@__PURE__*/ memoize((normTimeZoneId, record) => \"named\" === record.kind ? new IntlTimeZone(normTimeZoneId, record.m, record.format) : new FixedTimeZone(normTimeZoneId, record.m, \"fixed\" === record.kind ? record.Z : 0));\n\nclass FixedTimeZone {\n constructor(id, compareKey, offsetNano) {\n this.id = id, this.m = compareKey, this.Z = offsetNano;\n }\n B() {\n return this.Z;\n }\n R(isoDateTime) {\n return [ isoDateTimeAndOffsetToEpochNano(isoDateTime, this.Z) ];\n }\n C() {}\n}\n\nclass IntlTimeZone {\n constructor(id, compareKey, format) {\n this.id = id, this.m = compareKey, this.oe = ((computeOffsetSec, periodDays) => {\n const getSample = memoize(computeOffsetSec);\n const getSplit = memoize(createSplitTuple);\n const periodSec = 86400 * periodDays;\n function getOffsetSec(epochSec) {\n const [startEpochSec, endEpochSec] = computePeriod(epochSec, periodSec);\n const clampedStartEpochSec = clampIntlSampleEpochSec(startEpochSec);\n const clampedEndEpochSec = clampIntlSampleEpochSec(endEpochSec);\n const startOffsetSec = getSample(clampedStartEpochSec);\n const endOffsetSec = getSample(clampedEndEpochSec);\n return startOffsetSec === endOffsetSec ? startOffsetSec : pinch(getSplit(clampedStartEpochSec, clampedEndEpochSec), startOffsetSec, endOffsetSec, epochSec);\n }\n function pinch(split, startOffsetSec, endOffsetSec, forEpochSec) {\n let offsetSec;\n let splitDurSec;\n for (;(void 0 === forEpochSec || void 0 === (offsetSec = forEpochSec < split[0] ? startOffsetSec : forEpochSec >= split[1] ? endOffsetSec : void 0)) && (splitDurSec = split[1] - split[0]); ) {\n const middleEpochSec = split[0] + Math.floor(splitDurSec / 2);\n computeOffsetSec(middleEpochSec) === endOffsetSec ? split[1] = middleEpochSec : split[0] = middleEpochSec + 1;\n }\n return offsetSec;\n }\n return {\n Ae(zonedEpochSec) {\n const wideOffsetSec0 = getOffsetSec(zonedEpochSec - 86400);\n const wideOffsetSec1 = getOffsetSec(zonedEpochSec + 86400);\n const wideUtcEpochSec0 = zonedEpochSec - wideOffsetSec0;\n const wideUtcEpochSec1 = zonedEpochSec - wideOffsetSec1;\n if (wideOffsetSec0 === wideOffsetSec1) {\n return [ wideUtcEpochSec0 ];\n }\n const narrowOffsetSec0 = getOffsetSec(wideUtcEpochSec0);\n return narrowOffsetSec0 === getOffsetSec(wideUtcEpochSec1) ? [ zonedEpochSec - narrowOffsetSec0 ] : wideOffsetSec0 > wideOffsetSec1 ? [ wideUtcEpochSec0, wideUtcEpochSec1 ] : [];\n },\n ze: getOffsetSec,\n C: function getTransition(epochSec, direction) {\n if (direction > 0 && epochSec >= 864e10) {\n return;\n }\n if (direction < 0) {\n if (epochSec <= minPossibleTransitionSec) {\n return;\n }\n const lookaheadEpochSec = getCurrentEpochSec() + 94867200;\n if (epochSec > lookaheadEpochSec) {\n return getTransition(lookaheadEpochSec, -1);\n }\n }\n const searchEpochSec = direction > 0 ? Math.max(epochSec, minPossibleTransitionSec) : epochSec;\n let [startEpochSec, endEpochSec] = computePeriod(searchEpochSec, periodSec);\n const inc = periodSec * direction;\n const searchLimit = direction > 0 ? Math.max(epochSec, getCurrentEpochSec()) + 94867200 : minPossibleTransitionSec;\n const inBounds = () => direction < 0 ? endEpochSec > searchLimit : startEpochSec < searchLimit;\n for (;inBounds(); ) {\n const clampedStartEpochSec = clampIntlSampleEpochSec(startEpochSec);\n const clampedEndEpochSec = clampIntlSampleEpochSec(endEpochSec);\n const startOffsetSec = getSample(clampedStartEpochSec);\n const endOffsetSec = getSample(clampedEndEpochSec);\n if (startOffsetSec !== endOffsetSec) {\n const split = getSplit(clampedStartEpochSec, clampedEndEpochSec);\n pinch(split, startOffsetSec, endOffsetSec);\n const transitionEpochSec = split[0];\n if ((compareNumbers(transitionEpochSec, epochSec) || 1) === direction) {\n return transitionEpochSec;\n }\n }\n startEpochSec += inc, endEpochSec += inc;\n }\n }\n };\n })((format => epochSec => {\n const intlParts = formatEpochMilliToPartsRecord(format, 1e3 * epochSec);\n return 86400 * isoPartsToEpochDays((intlParts => {\n const relatedYear = intlParts.relatedYear;\n if (void 0 !== relatedYear) {\n return parseInt(relatedYear);\n }\n const year = parseInt(intlParts.year);\n return void 0 !== intlParts.era && \"bce\" === normalizeEraName(intlParts.era) ? 1 - year : year;\n })(intlParts), parseInt(intlParts.month), parseInt(intlParts.day)) + 3600 * parseInt(intlParts.hour) + 60 * parseInt(intlParts.minute) + parseInt(intlParts.second) - epochSec;\n })(format), (timeZoneId => {\n const timeZoneName = timeZoneId.split(\"/\").pop();\n return timeZonePeriodDaysByName[timeZoneName] || 60;\n })(id));\n }\n B(epochNano) {\n return this.oe.ze((epochNano => epochNanoToSecMod(epochNano)[0])(epochNano)) * nanoInSec;\n }\n R(isoDateTime) {\n const zonedEpochSec = 86400 * isoDateToEpochDays(isoDateTime) + timeFieldsToSec(isoDateTime);\n const subsecNano = timeFieldsToSubsecNano(isoDateTime);\n return this.oe.Ae(zonedEpochSec).map(epochSec => checkEpochNanoInBounds(BigInt(epochSec) * bigNanoInSec + BigInt(subsecNano)));\n }\n C(epochNano, direction) {\n const [epochSec, subsecNano] = epochNanoToSecMod(epochNano);\n const resEpochSec = this.oe.C(epochSec + (direction > 0 || subsecNano ? 1 : 0), direction);\n if (void 0 !== resEpochSec) {\n return BigInt(resEpochSec) * bigNanoInSec;\n }\n }\n}\n\nfunction getCurrentEpochSec() {\n return Math.floor(Date.now() / 1e3);\n}\n\nfunction createSplitTuple(startEpochSec, endEpochSec) {\n return [ startEpochSec, endEpochSec ];\n}\n\nfunction computePeriod(epochSec, periodSec) {\n const startEpochSec = Math.floor(epochSec / periodSec) * periodSec;\n return [ startEpochSec, startEpochSec + periodSec ];\n}\n\nfunction clampIntlSampleEpochSec(epochSec) {\n return constrainToRange(epochSec, -1e10, 864e10);\n}\n\nfunction refineMaybeZonedDateTimeObjectLike(refineTimeZoneString, calendar, bag) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeAndZoneFieldNamesAlpha, dateTimeAndZoneFieldNamesWithEraAlpha), zonedDateTimeFieldRefiners, [], 0);\n const isZoned = void 0 !== fields.timeZone;\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n const isoDate = createDateFromRefinedFields(fields, calendar, year, monthCodeParts, 0);\n if (isZoned) {\n const timeFields = resolveTimeFields(fields);\n const timeZone = queryTimeZone(refineTimeZoneString(fields.timeZone));\n return {\n epochNanoseconds: getMatchingInstantFor(timeZone, combineDateAndTime(isoDate, timeFields), fields.offset),\n timeZone: timeZone,\n calendar: calendar\n };\n }\n return isoDate;\n}\n\nfunction refineZonedDateTimeObjectLike(refineTimeZoneString, calendar, bag, options) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeAndZoneFieldNamesAlpha, dateTimeAndZoneFieldNamesWithEraAlpha), zonedDateTimeFieldRefiners, timeZoneFieldNames, 0);\n const timeZoneId = refineTimeZoneString(fields.timeZone);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n const [overflow, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options);\n const isoDate = createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);\n const timeFields = resolveTimeFields(fields, overflow);\n const timeZone = queryTimeZone(timeZoneId);\n return createZonedEpochNanoSlots(getMatchingInstantFor(timeZone, combineDateAndTime(isoDate, timeFields), fields.offset, offsetDisambig, epochDisambig), timeZone, calendar);\n}\n\nfunction refinePlainDateTimeObjectLike(calendar, bag, options) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeFieldNamesAlpha, dateTimeFieldNamesWithEraAlpha), dateTimeFieldRefiners, [], 0);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n const overflow = refineOverflowOptions(options);\n return createDateTimeFromRefinedFields(createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow), resolveTimeFields(fields, overflow), calendar);\n}\n\nfunction refinePlainDateObjectLike(calendar, bag, options, requireFields = []) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha), dateFieldRefiners, requireFields);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n return createDateFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));\n}\n\nfunction refinePlainYearMonthObjectLike(calendar, bag, options, requireFields) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, yearMonthFieldNamesAlpha, yearMonthFieldNamesWithEraAlpha), dateFieldRefiners, requireFields);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar, 1);\n return createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));\n}\n\nfunction refinePlainMonthDayObjectLike(calendar, calendarAbsent, bag, options) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha), dateFieldRefiners, dayFieldNamesAsc, 0);\n calendarAbsent && void 0 !== fields.month && void 0 === fields.monthCode && void 0 === fields.year && (fields.year = 1972);\n const [year, monthCodeParts] = refineMonthDayFields(fields, calendar);\n return createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));\n}\n\nfunction refinePlainTimeObjectLike(bag, options) {\n return resolveTimeFields(readAndRefineBagFields(bag, timeFieldNamesAlpha, timeFieldRefiners, [], 1), refineOverflowOptions(options));\n}\n\nfunction refineDurationObjectLike(bag) {\n const durationFields = readAndRefineBagFields(bag, durationFieldNamesAlpha, durationFieldRefiners);\n return createDurationSlots(validateDurationFields({\n ...durationFieldDefaults,\n ...durationFields\n }));\n}\n\nfunction throwFailedParse(s) {\n throwRangeError(failedParse(s));\n}\n\nfunction parseInstant(s) {\n const organized = parseDateTimeLike(s = requireString(toPrimitiveWithStringHint(s)));\n let offsetNano;\n return organized || throwFailedParse(s), organized.F ? offsetNano = 0 : organized.offset ? offsetNano = parseOffsetNano(organized.offset) : throwFailedParse(s), \n organized.timeZoneId && parseOffsetNanoMaybe(organized.timeZoneId, 1), validateIsoDateTimeFields(organized), \n createEpochNanoSlots(isoDateTimeAndOffsetToEpochNano(organized, offsetNano));\n}\n\nfunction parseRelativeToSlots(s, resolveCalendar) {\n const organized = parseDateTimeLike(requireString(s));\n return organized || throwFailedParse(s), organized.timeZoneId ? finalizeZonedDateTime(organized, resolveCalendar, void 0) : (organized.F && throwFailedParse(s), \n finalizeDate(organized, resolveCalendar));\n}\n\nfunction parseZonedDateTime(s, resolveCalendar, options) {\n const organized = parseDateTimeLike(requireString(s));\n return organized && organized.timeZoneId || throwFailedParse(s), finalizeZonedDateTime(organized, resolveCalendar, options);\n}\n\nfunction parsePlainDateTime(s, resolveCalendar) {\n const organized = parseDateTimeLike(requireString(s));\n return organized && !organized.F || throwFailedParse(s), finalizeDateTime(organized, resolveCalendar);\n}\n\nfunction parsePlainDate(s, resolveCalendar) {\n const slots = finalizeDateLike(parsePlainDateLike(requireString(s)), void 0, resolveCalendar);\n return createDateSlots(slots, slots.calendar);\n}\n\nfunction parsePlainYearMonth(s, resolveCalendar) {\n const organized = parseYearMonthOnly(requireString(s));\n if (organized) {\n return requireIsoCalendar(organized), createDateSlots(checkIsoYearMonthInBounds(validateIsoDateFields(organized)), resolveCalendar(organized.calendarId));\n }\n const dateSlots = finalizeDateLike(parsePlainDateLike(s), projectIsoYearMonthDate, resolveCalendar);\n const {calendar: calendar} = dateSlots;\n return createDateSlots(moveToStartOfMonth(calendar, dateSlots), calendar);\n}\n\nfunction requireIsoCalendar(organized) {\n \"iso8601\" !== organized.calendarId && throwRangeError(invalidSubstring(organized.calendarId));\n}\n\nfunction parsePlainMonthDay(s, resolveCalendar) {\n const organized = parseMonthDayOnly(requireString(s));\n if (organized) {\n return requireIsoCalendar(organized), createDateSlots(validateIsoDateFields(organized), resolveCalendar(organized.calendarId));\n }\n const dateSlots = finalizeDateLike(parsePlainDateLike(s), projectIsoMonthDayDate, resolveCalendar);\n const {calendar: calendar} = dateSlots;\n const {year: origYear, month: origMonth, day: day} = computeCalendarDateFields(calendar, dateSlots);\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, origYear, origMonth);\n const {year: year, month: month} = ((calendar, monthCodeNumber, isLeapMonth, day) => {\n const yearMonthFields = calendar ? calendar.u(monthCodeNumber, isLeapMonth, day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, isLeapMonth);\n return yearMonthFields || throwRangeError(\"Cannot guess year\"), yearMonthFields;\n })(calendar, monthCodeNumber, isLeapMonth, day);\n return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, day)), calendar);\n}\n\nfunction parsePlainTime(s) {\n let organized = (s => {\n const parts = parseTimeOnlyParts(s);\n return parts ? (organizeAnnotationParts(parts[13]), organizeTimeParts(parts, 1)) : void 0;\n })(s = requireString(s));\n if (!organized) {\n const dateTime = parseDateTimeLike(s);\n dateTime && dateTime.te || throwFailedParse(s), dateTime.F && throwRangeError(invalidSubstring(\"Z\")), \n requireIsoCalendar(dateTime), organized = dateTime;\n }\n let altParsed;\n return (altParsed = parseYearMonthOnly(s)) && isIsoDateFieldsValid(altParsed) && throwFailedParse(s), \n (altParsed = parseMonthDayOnly(s)) && isIsoDateFieldsValid(altParsed) && throwFailedParse(s), \n createTimeSlots(validateTimeFields(organized));\n}\n\nfunction parseDuration(s) {\n const parts = durationRegExp.exec(requireString(s));\n return parts || throwFailedParse(s), createDurationSlots(validateDurationFields((parts => {\n let hasAny = 0;\n let hasAnyFrac = 0;\n let leftoverNano = 0;\n let durationFields = {\n years: parseUnit(parts[2]),\n months: parseUnit(parts[3]),\n weeks: parseUnit(parts[4]),\n days: parseUnit(parts[5]),\n hours: parseUnit(parts[6], parts[7], 5),\n minutes: parseUnit(parts[8], parts[9], 4),\n seconds: parseUnit(parts[10], parts[11], 3),\n ...nanoToGivenFields(leftoverNano, 2, durationFieldNamesAsc)\n };\n return hasAny || throwRangeError(noValidFields(durationFieldNamesAsc)), parseSign(parts[1]) < 0 && (durationFields = negateDurationFields(durationFields)), \n durationFields;\n function parseUnit(wholeStr, fracStr, timeUnit) {\n let leftoverUnits = 0;\n let wholeUnits = 0;\n return timeUnit && ([leftoverUnits, leftoverNano] = divModFloor(leftoverNano, unitNanoMap[timeUnit])), \n void 0 !== wholeStr && (hasAnyFrac && throwRangeError(invalidSubstring(wholeStr)), \n wholeUnits = (s => {\n const n = parseInt(s);\n return Number.isFinite(n) || throwRangeError(invalidSubstring(s)), n;\n })(wholeStr), hasAny = 1, fracStr && (leftoverNano = parseSubsecNano(fracStr) * (unitNanoMap[timeUnit] / nanoInSec), \n hasAnyFrac = 1)), leftoverUnits + wholeUnits;\n }\n })(parts)));\n}\n\nfunction parseCalendarId(s) {\n const res = parseDateTimeLike(s) || parseYearMonthOnly(s) || parseMonthDayOnly(s);\n if (res) {\n return res.calendarId;\n }\n const timeParts = parseTimeOnlyParts(s);\n return timeParts ? organizeAnnotationParts(timeParts[13]).calendarId : s;\n}\n\nfunction parseTimeZoneId(s) {\n const parsed = parseDateTimeLike(s);\n return parsed && (parsed.timeZoneId || parsed.F && \"UTC\" || parsed.offset) || s;\n}\n\nfunction parsePlainDateLike(s) {\n const organized = parseDateTimeLike(s);\n return organized && !organized.F || throwFailedParse(s), organized;\n}\n\nfunction finalizeDateLike(organized, isoDateProjector, resolveCalendar) {\n return isoDateProjector && \"iso8601\" === organized.calendarId ? (validateIsoDateFields(organized), \n organized.te && validateTimeFields(organized), finalizeDate(isoDateProjector(organized), resolveCalendar)) : organized.te ? finalizeDateTime(organized, resolveCalendar) : finalizeDate(organized, resolveCalendar);\n}\n\nfunction projectIsoYearMonthDate(organized) {\n const day = 12 * organized.year + organized.month === isoYearMonthIndexMin ? 20 : 1;\n return {\n ...organized,\n day: day\n };\n}\n\nfunction projectIsoMonthDayDate(organized) {\n return {\n ...organized,\n year: 1972\n };\n}\n\nfunction finalizeZonedDateTime(organized, resolveCalendar, options) {\n const timeZone = queryTimeZone(resolveTimeZoneId(organized.timeZoneId));\n let epochNano;\n if (validateIsoDateTimeFields(organized), organized.te) {\n const offsetNano = organized.offset ? parseOffsetNano(organized.offset) : void 0;\n const [, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options);\n epochNano = getMatchingInstantFor(timeZone, organized, offsetNano, offsetDisambig, epochDisambig, !(timeZone.Z || void 0 === organized.offset || (offset = organized.offset, \n offset.replace(/\\D/g, \"\").length > 4)), organized.F);\n } else {\n refineZonedFieldOptions(options), epochNano = getStartOfDayInstantFor(timeZone, organized);\n }\n var offset;\n return checkEpochNanoInBounds(epochNano), createZonedEpochNanoSlots(epochNano, timeZone, resolveCalendar(organized.calendarId));\n}\n\nfunction finalizeDateTime(organized, resolveCalendar) {\n return validateIsoDateTimeFields(organized), checkIsoDateTimeInBounds(organized), \n {\n ...combineDateAndTime(organized, organized),\n calendar: resolveCalendar(organized.calendarId)\n };\n}\n\nfunction finalizeDate(organized, resolveCalendar) {\n return validateIsoDateFields(organized), checkIsoDateInBounds(organized), {\n calendar: resolveCalendar(organized.calendarId),\n year: organized.year,\n month: organized.month,\n day: organized.day\n };\n}\n\nfunction timeRegExpStr(separatorIndex) {\n return `(\\\\d{2})(?:(:?)(\\\\d{2})(?:\\\\${separatorIndex}(\\\\d{2})(?:[.,](\\\\d{1,9}))?)?)?`;\n}\n\nconst dateTimeRegExpStr = \"(?:(?:([+-])(\\\\d{6}))|(\\\\d{4}))(-?)(\\\\d{2})\\\\4(\\\\d{2})(?:[T ]\" + timeRegExpStr(8) + \"(Z|([+-])\" + timeRegExpStr(15) + \")?)?\";\n\nconst yearMonthRegExp = /*@__PURE__*/ createRegExp(\"(?:(?:([+-])(\\\\d{6}))|(\\\\d{4}))-?(\\\\d{2})((?:\\\\[(!?)([^\\\\]]*)\\\\]){0,9})\");\n\nconst monthDayRegExp = /*@__PURE__*/ createRegExp(\"(?:--)?(\\\\d{2})-?(\\\\d{2})((?:\\\\[(!?)([^\\\\]]*)\\\\]){0,9})\");\n\nconst dateTimeRegExp = /*@__PURE__*/ createRegExp(dateTimeRegExpStr + \"((?:\\\\[(!?)([^\\\\]]*)\\\\]){0,9})\");\n\nconst timeRegExp = /*@__PURE__*/ createRegExp(\"T?\" + timeRegExpStr(2) + `(([+-])${timeRegExpStr(9)})?((?:\\\\[(!?)([^\\\\]]*)\\\\]){0,9})`);\n\nconst annotationRegExp = /*@__PURE__*/ new RegExp(\"\\\\[(!?)([^\\\\]]*)\\\\]\", \"g\");\n\nconst durationRegExp = /*@__PURE__*/ createRegExp(\"([+-])?P(\\\\d+Y)?(\\\\d+M)?(\\\\d+W)?(\\\\d+D)?(?:T(?!$)(?:(\\\\d+)(?:[.,](\\\\d{1,9}))?H)?(?:(\\\\d+)(?:[.,](\\\\d{1,9}))?M)?(?:(\\\\d+)(?:[.,](\\\\d{1,9}))?S)?)?\");\n\nfunction parseDateTimeLike(s) {\n const parts = dateTimeRegExp.exec(s);\n return parts ? (parts => {\n const zOrOffset = parts[12];\n const hasZ = \"Z\" === (zOrOffset || \"\").toUpperCase();\n return {\n year: organizeIsoYearParts(parts),\n month: parseInt(parts[5]),\n day: parseInt(parts[6]),\n ...organizeTimeParts(parts, 7),\n ...organizeAnnotationParts(parts[19]),\n te: Boolean(parts[7]),\n F: hasZ,\n offset: hasZ ? void 0 : zOrOffset\n };\n })(parts) : void 0;\n}\n\nfunction parseYearMonthOnly(s) {\n const parts = yearMonthRegExp.exec(s);\n if (parts) {\n return (parts => ({\n year: organizeIsoYearParts(parts),\n month: parseInt(parts[4]),\n day: 1,\n ...organizeAnnotationParts(parts[5])\n }))(parts);\n }\n}\n\nfunction parseMonthDayOnly(s) {\n const parts = monthDayRegExp.exec(s);\n return parts ? (parts => ({\n year: 1972,\n month: parseInt(parts[1]),\n day: parseInt(parts[2]),\n ...organizeAnnotationParts(parts[3])\n }))(parts) : void 0;\n}\n\nfunction parseTimeOnlyParts(s) {\n const parts = timeRegExp.exec(s);\n if (parts) {\n return parts[6] && parseOffsetNano(parts[6]), parts;\n }\n}\n\nfunction organizeTimeParts(parts, hourIndex) {\n const second = parseInt0(parts[hourIndex + 3]);\n return {\n ...nanoToTimeAndDay(parseSubsecNano(parts[hourIndex + 4] || \"\"))[0],\n hour: parseInt0(parts[hourIndex]),\n minute: parseInt0(parts[hourIndex + 2]),\n second: 60 === second ? 59 : second\n };\n}\n\nfunction organizeIsoYearParts(parts) {\n const yearSign = parseSign(parts[1]);\n const year = parseInt(parts[2] || parts[3]);\n return yearSign < 0 && !year && throwRangeError(invalidSubstring(-0)), yearSign * year;\n}\n\nfunction organizeAnnotationParts(s) {\n let calendarIsCritical;\n let timeZoneId;\n const calendarIds = [];\n return s.replace(annotationRegExp, (whole, criticalStr, mainStr) => {\n const isCritical = Boolean(criticalStr);\n const [val, name] = mainStr.split(\"=\").reverse();\n return name ? \"u-ca\" === name ? (calendarIds.push(val.toLowerCase()), calendarIsCritical || (calendarIsCritical = isCritical)) : (isCritical || /[A-Z]/.test(name)) && throwRangeError(invalidSubstring(whole)) : (timeZoneId && throwRangeError(invalidSubstring(whole)), \n timeZoneId = val), \"\";\n }), calendarIds.length > 1 && calendarIsCritical && throwRangeError(invalidSubstring(s)), \n {\n timeZoneId: timeZoneId,\n calendarId: calendarIds[0] || \"iso8601\"\n };\n}\n\nfunction mergeCalendarFields(calendar, baseFields, additionalFields) {\n const merged = Object.assign(Object.create(null), baseFields);\n return spliceFields(merged, additionalFields, monthFieldNames), getCalendarEraOrigins(calendar) && (spliceFields(merged, additionalFields, allYearFieldNames), \n calendar && calendar.je && spliceFields(merged, additionalFields, monthDayFieldNames, eraYearFieldNames)), \n merged;\n}\n\nfunction spliceFields(dest, additional, allPropNames, deletablePropNames) {\n let anyMatching = 0;\n const nonMatchingPropNames = [];\n for (const propName of allPropNames) {\n void 0 !== additional[propName] ? anyMatching = 1 : nonMatchingPropNames.push(propName);\n }\n if (Object.assign(dest, additional), anyMatching) {\n for (const deletablePropName of deletablePropNames || nonMatchingPropNames) {\n delete dest[deletablePropName];\n }\n }\n}\n\nfunction mergeZonedDateTimeFields(calendar, zonedDateTimeSlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, dateTimeAndOffsetFieldNamesAlpha, dateTimeAndOffsetFieldNamesWithEraAlpha);\n const zonedSlots = zonedEpochSlotsToIso(zonedDateTimeSlots);\n const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, zonedSlots);\n const origFields = {\n year: year,\n monthCode: computeMonthCode(calendar, year, month),\n day: day,\n hour: zonedSlots.hour,\n minute: zonedSlots.minute,\n second: zonedSlots.second,\n millisecond: zonedSlots.millisecond,\n microsecond: zonedSlots.microsecond,\n nanosecond: zonedSlots.nanosecond,\n offset: zonedSlots.offsetNanoseconds\n };\n const partialFields = readAndRefineBagFields(modFields, validFieldNames, zonedDateTimeFieldRefiners);\n const mergedCalendarFields = mergeCalendarFields(calendar, origFields, partialFields);\n return [ {\n ...origFields,\n ...partialFields\n }, mergedCalendarFields ];\n}\n\nfunction mergeDateTimeFields(calendar, plainDateTimeSlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, dateTimeFieldNamesAlpha, dateTimeFieldNamesWithEraAlpha);\n const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainDateTimeSlots);\n const origFields = {\n year: year,\n monthCode: computeMonthCode(calendar, year, month),\n day: day,\n hour: plainDateTimeSlots.hour,\n minute: plainDateTimeSlots.minute,\n second: plainDateTimeSlots.second,\n millisecond: plainDateTimeSlots.millisecond,\n microsecond: plainDateTimeSlots.microsecond,\n nanosecond: plainDateTimeSlots.nanosecond\n };\n const partialFields = readAndRefineBagFields(modFields, validFieldNames, dateTimeFieldRefiners);\n const mergedCalendarFields = mergeCalendarFields(calendar, origFields, partialFields);\n return [ {\n ...origFields,\n ...partialFields\n }, mergedCalendarFields ];\n}\n\nfunction mergeDateFields(calendar, plainDateSlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha);\n const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainDateSlots);\n return mergeCalendarFields(calendar, {\n year: year,\n monthCode: computeMonthCode(calendar, year, month),\n day: day\n }, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));\n}\n\nfunction mergeYearMonthFields(calendar, plainYearMonthSlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, yearMonthFieldNamesAlpha, yearMonthFieldNamesWithEraAlpha);\n const {year: year, month: month} = computeCalendarDateFields(calendar, plainYearMonthSlots);\n return mergeCalendarFields(calendar, {\n year: year,\n monthCode: computeMonthCode(calendar, year, month)\n }, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));\n}\n\nfunction mergeMonthDayFields(calendar, plainMonthDaySlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha);\n const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainMonthDaySlots);\n return mergeCalendarFields(calendar, {\n monthCode: computeMonthCode(calendar, year, month),\n day: day\n }, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));\n}\n\nfunction createZonedDateTimeFromMergedFields(zonedDateTimeSlots, mergedAllFields, calendarFields, year, monthCodeParts, overflow, offsetDisambig, epochDisambig) {\n const {calendar: calendar, timeZone: timeZone} = zonedDateTimeSlots;\n return createZonedEpochNanoSlots(getMatchingInstantFor(timeZone, combineDateAndTime(createDateFromRefinedFields(calendarFields, calendar, year, monthCodeParts, overflow), constrainTimeFields(mergedAllFields, overflow)), mergedAllFields.offset, offsetDisambig, epochDisambig), timeZone, calendar);\n}\n\nfunction createDateTimeFromMergedFields(mergedAllFields, calendarFields, calendar, year, monthCodeParts, overflow) {\n return createDateTimeFromRefinedFields(createDateFromRefinedFields(calendarFields, calendar, year, monthCodeParts, overflow), constrainTimeFields(mergedAllFields, overflow), calendar);\n}\n\nfunction mergeTimeFields(initialFields, modFields) {\n return {\n ...pluckProps(timeFieldNamesAlpha, initialFields),\n ...readAndRefineBagFields(modFields, timeFieldNamesAlpha, timeFieldRefiners)\n };\n}\n\nfunction mergeDurationFields(slots, fields) {\n return createDurationSlots((initialFields = slots, modFields = fields, validateDurationFields({\n ...initialFields,\n ...readAndRefineBagFields(modFields, durationFieldNamesAlpha, durationFieldRefiners)\n })));\n var initialFields, modFields;\n}\n\nfunction computeMonthCode(calendar, year, month) {\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);\n return formatMonthCode(monthCodeNumber, isLeapMonth);\n}\n\nfunction totalDuration(refineRelativeTo, slots, options) {\n const [totalUnit, relativeToSlots] = refineTotalOptions(options, refineRelativeTo);\n const maxDurationUnit = getMaxDurationUnit(slots);\n const maxUnit = Math.max(totalUnit, maxDurationUnit);\n const isZoned = relativeToSlots && isZonedEpochSlots(relativeToSlots);\n if (!relativeToSlots && isUniformUnit(maxUnit, isZoned)) {\n return totalDayTimeDuration(slots, totalUnit);\n }\n if (relativeToSlots || throwRangeError(\"Missing relativeTo\"), !slots.sign && (!isZoned || totalUnit < 6)) {\n return 0;\n }\n const [balancedDuration, endEpochNano, relativeOps] = spanRelativeDuration(relativeToSlots, slots, totalUnit);\n return isUniformUnit(totalUnit, isZoned) ? totalDayTimeDuration(balancedDuration, totalUnit) : ((durationFields, endEpochNano, totalUnit, relativeOps) => {\n const fieldName = durationFieldNamesAsc[totalUnit];\n const baseDurationFields = clearDurationFields(totalUnit, durationFields);\n return totalRelativeUnit(durationFields[fieldName], computeDurationSign(durationFields) || 1, endEpochNano, value => (baseDurationFields[fieldName] = value, \n moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields)));\n })(balancedDuration, endEpochNano, totalUnit, relativeOps);\n}\n\nfunction totalDayTimeDuration(durationFields, totalUnit) {\n return divideBigNanoToExactNumber(durationDayTimeToBigNano(durationFields), unitNanoMap[totalUnit]);\n}\n\nfunction instantToZonedDateTime(instantSlots, timeZone, calendar) {\n return createZonedEpochNanoSlots(instantSlots.epochNanoseconds, timeZone, calendar);\n}\n\nfunction zonedDateTimeToInstant(zonedDateTimeSlots0) {\n return createEpochNanoSlots(zonedDateTimeSlots0.epochNanoseconds);\n}\n\nfunction zonedDateTimeToDateTime(zonedDateTimeSlots0) {\n return createDateTimeSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0), zonedDateTimeSlots0.calendar);\n}\n\nfunction zonedDateTimeToDate(zonedDateTimeSlots0) {\n return createDateSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0), zonedDateTimeSlots0.calendar);\n}\n\nfunction zonedDateTimeToTime(zonedDateTimeSlots0) {\n return createTimeSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0));\n}\n\nfunction dateTimeToZonedDateTime(plainDateTimeSlots, timeZone, epochDisambig) {\n return createZonedEpochNanoSlots(checkEpochNanoInBounds(getSingleInstantFor(timeZone, plainDateTimeSlots, epochDisambig)), timeZone, plainDateTimeSlots.calendar);\n}\n\nfunction dateToZonedDateTime(plainDateSlots, timeZone, timeFields) {\n let epochNano;\n return epochNano = timeFields ? getSingleInstantFor(timeZone, combineDateAndTime(plainDateSlots, timeFields)) : getStartOfDayInstantFor(timeZone, combineDateAndTime(plainDateSlots, timeFieldDefaults)), \n createZonedEpochNanoSlots(epochNano, timeZone, plainDateSlots.calendar);\n}\n\nfunction yearMonthToDate(calendar, input, bag) {\n return mergeFieldsIntoDate(calendar, pluckProps(getCalendarFieldNames(calendar, yearMonthCodeFieldNamesAlpha, yearMonthCodeFieldNamesWithEraAlpha), input), readAndRefineBagFields(requireObjectLike(bag), dayFieldNamesAsc, dateFieldRefiners, []));\n}\n\nfunction monthDayToDate(calendar, input, bag) {\n const extraFieldNames = getCalendarFieldNames(calendar, yearFieldNamesAsc, yearFieldNamesWithEraAlpha);\n return mergeFieldsIntoDate(calendar, pluckProps(monthCodeDayFieldNamesAlpha, input), readAndRefineBagFields(requireObjectLike(bag), extraFieldNames, dateFieldRefiners, []));\n}\n\nfunction fieldsToMonthDay(calendar, input) {\n const refinedFields = readAndRefineBagFields(input, monthCodeDayFieldNamesAlpha, dateFieldRefiners);\n const [year, monthCodeParts] = refineMonthDayFields(refinedFields, calendar);\n return createMonthDayFromRefinedFields(refinedFields, calendar, year, monthCodeParts, 0);\n}\n\nfunction fieldsToYearMonth(calendar, input) {\n const refinedFields = readAndRefineBagFields(input, getCalendarFieldNames(calendar, yearMonthCodeFieldNamesAlpha, yearMonthCodeFieldNamesWithEraAlpha), dateFieldRefiners);\n const [year, monthCodeParts] = refineCalendarDateFields(refinedFields, calendar, 1);\n return createYearMonthFromRefinedFields(refinedFields, calendar, year, monthCodeParts, 0);\n}\n\nfunction mergeFieldsIntoDate(calendar, inputFields, extraFields) {\n const mergedFieldNames = getCalendarFieldNames(calendar, yearMonthCodeDayFieldNamesAlpha, yearMonthCodeDayFieldNamesWithEraAlpha);\n let mergedFields = mergeCalendarFields(calendar, inputFields, extraFields);\n mergedFields = readAndRefineBagFields(mergedFields, mergedFieldNames, dateFieldRefiners, []);\n const [year, monthCodeParts] = refineCalendarDateFields(mergedFields, calendar);\n return createDateFromRefinedFields(mergedFields, calendar, year, monthCodeParts, 0);\n}\n\nfunction epochMilliToInstant(epochMilli) {\n return createEpochNanoSlots(checkEpochNanoInBounds(BigInt(toStrictInteger(epochMilli)) * bigNanoInMilli));\n}\n\nfunction epochNanoToInstant(epochNano) {\n return createEpochNanoSlots(checkEpochNanoInBounds(toBigInt(epochNano)));\n}\n\nfunction applyPlainFormatTimeZone(options) {\n return options.timeZone = \"UTC\", [ \"full\", \"long\" ].includes(options.timeStyle) && (options.timeStyle = \"medium\"), \n options;\n}\n\nfunction applyZonedFormatTimeZone(options, timeZoneId) {\n return void 0 !== options.timeZone && throwTypeError(\"Cannot specify TimeZone\"), \n options.timeZone = timeZoneId, options;\n}\n\nfunction checkResolvedCalendarCompatible(format, slots, strictCalendarCheck) {\n const resolvedCalendarId = format.resolvedOptions().calendar;\n !strictCalendarCheck && slots.calendar === isoCalendarImpl || getCalendarSlotId(slots.calendar) === resolvedCalendarId || throwRangeError(\"Mismatching Calendars\");\n}\n\nfunction createOptionsTransformer(shapeFieldNames, invalidShapeFieldNames, ignoredFieldNames, defaultShapeFields, dateStyleReplacementFields) {\n const shapeFieldNameSet = new Set(shapeFieldNames);\n const invalidShapeFieldNameSet = new Set(invalidShapeFieldNames);\n const ignoredFieldNameSet = new Set(ignoredFieldNames);\n return (options, allowPartialOverlap) => {\n let dateStyle;\n let timeStyle;\n const granularShapeFields = {};\n const modifierFields = {};\n const otherFields = {};\n let hasInvalidGranularShapeFields = 0;\n let hasInvalidStyleFields = 0;\n for (const name of Object.keys(options)) {\n const value = options[name];\n void 0 === value || ignoredFieldNameSet.has(name) || (shapeFieldNameSet.has(name) ? \"dateStyle\" === name ? dateStyle = value : \"timeStyle\" === name ? timeStyle = value : granularShapeFields[name] = value : \"era\" === name ? modifierFields[name] = value : invalidShapeFieldNameSet.has(name) ? \"dateStyle\" === name || \"timeStyle\" === name ? hasInvalidStyleFields = 1 : hasInvalidGranularShapeFields = 1 : otherFields[name] = value);\n }\n const hasDateStyle = void 0 !== dateStyle;\n const hasTimeStyle = void 0 !== timeStyle;\n const hasAnyStyle = hasDateStyle || hasTimeStyle;\n const hasGranularShapeFields = Object.keys(granularShapeFields).length > 0;\n const hasInvalids = hasInvalidGranularShapeFields || hasInvalidStyleFields;\n const hasShapeFields = hasGranularShapeFields || hasDateStyle || hasTimeStyle;\n const hasModifierFields = Object.keys(modifierFields).length > 0;\n (!allowPartialOverlap && hasInvalids || allowPartialOverlap && hasInvalids && !hasShapeFields || hasAnyStyle && (hasGranularShapeFields || hasModifierFields || hasInvalidGranularShapeFields)) && throwTypeError(\"Invalid formatting options\");\n const transformedOptions = {};\n return hasAnyStyle || hasShapeFields || Object.assign(transformedOptions, defaultShapeFields), \n Object.assign(transformedOptions, granularShapeFields, modifierFields, otherFields), \n hasDateStyle && (dateStyleReplacementFields ? Object.assign(transformedOptions, dateStyleReplacementFields[dateStyle]) : transformedOptions.dateStyle = dateStyle), \n hasTimeStyle && (transformedOptions.timeStyle = timeStyle), transformedOptions;\n };\n}\n\nconst dateDefaultShapeFields = {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\"\n};\n\nconst timeDefaultShapeFields = {\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\"\n};\n\nconst dateTimeDefaultShapeFields = /*@__PURE__*/ Object.assign({}, dateDefaultShapeFields, timeDefaultShapeFields);\n\nconst dateShapeFieldNames = [ \"weekday\", \"year\", \"month\", \"day\", \"dateStyle\" ];\n\nconst timeShapeFieldNames = [ \"dayPeriod\", \"hour\", \"minute\", \"second\", \"fractionalSecondDigits\", \"timeStyle\" ];\n\nconst dateTimeShapeFieldNames = /*@__PURE__*/ dateShapeFieldNames.concat(timeShapeFieldNames);\n\nconst yearMonthIgnoredFieldNames = /*@__PURE__*/ [ \"weekday\", \"day\" ].concat(timeShapeFieldNames);\n\nconst monthDayIgnoredFieldNames = /*@__PURE__*/ [ \"weekday\", \"year\" ].concat(timeShapeFieldNames);\n\nconst transformInstantOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [], dateTimeDefaultShapeFields);\n\nconst transformZonedOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [], {\n ...dateTimeDefaultShapeFields,\n timeZoneName: \"short\"\n});\n\nconst transformDateTimeOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [ \"timeZoneName\" ], dateTimeDefaultShapeFields);\n\nconst transformDateOptions = /*@__PURE__*/ createOptionsTransformer(dateShapeFieldNames, timeShapeFieldNames, [ \"timeZoneName\" ], dateDefaultShapeFields);\n\nconst transformTimeOptions = /*@__PURE__*/ createOptionsTransformer(timeShapeFieldNames, dateShapeFieldNames, [ \"timeZoneName\", \"era\" ], timeDefaultShapeFields);\n\nconst transformYearMonthOptions = /*@__PURE__*/ createOptionsTransformer([ \"year\", \"month\", \"dateStyle\" ], yearMonthIgnoredFieldNames, [ \"timeZoneName\" ], {\n year: \"numeric\",\n month: \"numeric\"\n}, {\n full: {\n year: \"numeric\",\n month: \"long\"\n },\n long: {\n year: \"numeric\",\n month: \"long\"\n },\n medium: {\n year: \"numeric\",\n month: \"short\"\n },\n short: {\n year: \"2-digit\",\n month: \"numeric\"\n }\n});\n\nconst transformMonthDayOptions = /*@__PURE__*/ createOptionsTransformer([ \"month\", \"day\", \"dateStyle\" ], monthDayIgnoredFieldNames, [ \"timeZoneName\", \"era\" ], {\n month: \"numeric\",\n day: \"numeric\"\n}, {\n full: {\n month: \"long\",\n day: \"numeric\"\n },\n long: {\n month: \"long\",\n day: \"numeric\"\n },\n medium: {\n month: \"short\",\n day: \"numeric\"\n },\n short: {\n month: \"numeric\",\n day: \"numeric\"\n }\n});\n\nfunction zonedDateTimeWithPlainTime(zonedDateTimeSlots, plainTimeFields) {\n const {timeZone: timeZone} = zonedDateTimeSlots;\n const isoDateTime = zonedEpochSlotsToIso(zonedDateTimeSlots);\n const {offsetNanoseconds: offsetNanoseconds} = isoDateTime;\n const time = plainTimeFields || timeFieldDefaults;\n let epochNano;\n return epochNano = plainTimeFields ? getMatchingInstantFor(timeZone, combineDateAndTime(isoDateTime, time), offsetNanoseconds, 2) : getStartOfDayInstantFor(timeZone, combineDateAndTime(isoDateTime, time)), \n createZonedEpochNanoSlots(epochNano, timeZone, zonedDateTimeSlots.calendar);\n}\n\nfunction getCurrentIsoDateTime(timeZone) {\n const epochNano = getCurrentEpochNano();\n const offsetNano = timeZone.B(epochNano);\n return epochNanoToIsoDateTime(epochNano + BigInt(offsetNano));\n}\n\nfunction getCurrentEpochNano() {\n return BigInt(Date.now()) * bigNanoInMilli;\n}\n\nfunction getCurrentTimeZoneId() {\n return (new RawDateTimeFormat).resolvedOptions().timeZone;\n}\n\nfunction createDateTimeFormatShell(createArgsProvider, transformOptions = identity) {\n const internalsMap = new WeakMap;\n function getInternals(format) {\n const internals = internalsMap.get(format);\n return internals || throwTypeError(\"Invalid calling context\"), internals;\n }\n class ShimDateTimeFormat {\n constructor(locales, options = Object.create(null)) {\n const transformedOptions = transformOptions(options);\n const observedOptionNames = [];\n const trackedOptions = new Proxy(Object.create(null), {\n get(_target, name) {\n const value = transformedOptions[name];\n return void 0 !== value && observedOptionNames.push(name), value;\n }\n });\n const baseFormat = new RawDateTimeFormat(locales, trackedOptions);\n const resolvedOptions = baseFormat.resolvedOptions();\n const copiedOptions = pluckProps(observedOptionNames, resolvedOptions);\n internalsMap.set(this, {\n $: createArgsProvider({\n t: baseFormat,\n Ce: resolvedOptions.locale,\n G: copiedOptions,\n Ee: transformedOptions\n }),\n t: baseFormat\n });\n }\n get format() {\n const internals = getInternals(this);\n return internals.we || (internals.we = record => {\n const [format, ...rest] = internals.$.A(record);\n return format.format(...rest);\n });\n }\n formatToParts(record) {\n const {$: argsProvider} = getInternals(this);\n const [format, ...rest] = argsProvider.A(record);\n return format.formatToParts(...rest);\n }\n resolvedOptions() {\n return getInternals(this).t.resolvedOptions();\n }\n }\n const {prototype: prototype} = ShimDateTimeFormat;\n function DateTimeFormat(locales, options) {\n return new ShimDateTimeFormat(locales, options);\n }\n RawDateTimeFormat.prototype.formatRange && Object.defineProperties(prototype, createPropDescriptors({\n formatRange(record0, record1) {\n const {$: argsProvider} = getInternals(this);\n const [format, epochMilli0, epochMilli1] = argsProvider.v(record0, record1);\n return format.formatRange(epochMilli0, epochMilli1);\n },\n formatRangeToParts(record0, record1) {\n const {$: argsProvider} = getInternals(this);\n const [format, epochMilli0, epochMilli1] = argsProvider.v(record0, record1);\n return format.formatRangeToParts(epochMilli0, epochMilli1);\n }\n }));\n const rawStaticDescriptors = Object.getOwnPropertyDescriptors(RawDateTimeFormat);\n return rawStaticDescriptors.prototype.value = prototype, Object.defineProperties(DateTimeFormat, rawStaticDescriptors), \n prototype.constructor = DateTimeFormat, Object.defineProperties(prototype, createStringTagDescriptors(\"Intl.DateTimeFormat\")), \n DateTimeFormat;\n}\n\nfunction countEpochNanoUnit(start, end, unit, [roundingInc, roundingMode]) {\n let diffNano = end - start;\n return void 0 !== roundingMode && (diffNano = roundBigNanoToInc(diffNano, computeBigNanoInc(unit, roundingInc), roundingMode)), \n divideBigNanoToExactNumber(diffNano, unitNanoMap[unit]);\n}\n\nfunction countDateTimeUnit(start, end, unit, rounding) {\n return countEpochNanoUnit(isoDateTimeToEpochNano(start), isoDateTimeToEpochNano(end), unit, rounding);\n}\n\nfunction countTimeUnit(start, end, unit, [roundingInc, roundingMode]) {\n let diffNano = timeFieldsToNano(end) - timeFieldsToNano(start);\n return void 0 !== roundingMode && (diffNano = roundNumberToInc(diffNano, computeNanoInc(unit, roundingInc), roundingMode)), \n divideBigNanoToExactNumber(BigInt(diffNano), unitNanoMap[unit]);\n}\n\nfunction countEpochNanoDays(startEpochNano, endEpochNano, originTimeNano, [roundingInc, roundingMode]) {\n let diffNano = endEpochNano - startEpochNano;\n if (void 0 !== roundingMode) {\n diffNano = roundBigNanoToInc(diffNano, computeBigNanoInc(6, roundingInc), roundingMode);\n } else if (diffNano) {\n const originTimeBigNano = BigInt(originTimeNano);\n checkIsoDateTimeEpochNanoInBounds(startEpochNano - originTimeBigNano), checkIsoDateTimeEpochNanoInBounds(endEpochNano - originTimeBigNano);\n }\n return divideBigNanoToExactNumber(diffNano, unitNanoMap[6]);\n}\n\nfunction countYearMonthUnit(calendar, isoDate0, isoDate1, unit, rounding) {\n const start = moveToStartOfMonth(calendar, isoDate0);\n const end = moveToStartOfMonth(calendar, isoDate1);\n return compareIsoDates(start, end) ? (checkIsoDateInBounds(start), checkIsoDateInBounds(end), \n countRelativeUnit(unit, {\n he: () => diffCalendarDates(calendar, start, end, unit),\n me: createDateRelativeOps(calendar, start),\n ie: isoDateToEpochNano(end)\n }, rounding, 0, 8 === unit)) : 0;\n}\n\nfunction countRelativeUnit(unit, relativeUnitDiff, [roundingInc, roundingMode], isZoned, isPrecisionUnit) {\n const {he: diffExact, me: relativeOps} = relativeUnitDiff;\n const durationFields = diffExact();\n let {ie: endEpochNano} = relativeUnitDiff;\n return computeDurationSign(durationFields) ? void 0 !== roundingMode ? isPrecisionUnit && 1 === roundingInc ? durationFields[durationFieldNamesAsc[unit]] : resolveDurationUnit(unit, durationFields, endEpochNano, relativeOps, roundingInc, roundingMode) : (isZoned ? endEpochNano = checkEpochNanoInBounds(moveRelativeMarkerToEpochNano(relativeOps, {\n ...durationFields,\n ...durationTimeFieldDefaults\n }) + durationTimeToBigNano(durationFields)) : (checkIsoDateTimeEpochNanoInBounds(relativeOps.ne), \n checkIsoDateTimeEpochNanoInBounds(endEpochNano)), resolveDurationUnit(unit, durationFields, endEpochNano, relativeOps, 1, void 0)) : 0;\n}\n\nfunction countDateWeeks(originIsoDate, endEpochNano, [roundingInc, roundingMode]) {\n const originEpochNano = isoDateToEpochNano(originIsoDate);\n const diffNano = endEpochNano - originEpochNano;\n if (!diffNano) {\n return 0;\n }\n void 0 === roundingMode && (checkIsoDateTimeEpochNanoInBounds(originEpochNano), \n checkIsoDateTimeEpochNanoInBounds(endEpochNano));\n const wholeWeeks = Number(diffNano / (7n * bigNanoInUtcDay));\n const sign = diffNano < 0n ? -1 : 1;\n const moveWeeksToEpochNano = weeks => {\n return weeks ? (((epochNano = originEpochNano + BigInt(weeks) * bigNanoInUtcDay * 7n) < plainDateEpochNanoMin || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate), \n epochNano) : originEpochNano;\n var epochNano;\n };\n return void 0 === roundingMode ? totalRelativeUnit(wholeWeeks, sign, endEpochNano, moveWeeksToEpochNano) : roundRelativeUnit(wholeWeeks, sign, endEpochNano, moveWeeksToEpochNano, roundingInc, roundingMode);\n}\n\nfunction countZonedDayWeekUnit(unit, timeZone, startZoned, endZoned, [roundingInc, roundingMode]) {\n const daysInUnit = 7 === unit ? 7 : 1;\n const startEpochNano = startZoned.epochNanoseconds;\n const sign = endZoned.epochNanoseconds > startEpochNano ? 1 : -1;\n const originIsoDateTime = zonedEpochSlotsToIso(startZoned);\n let deltaDays = 0;\n let remainderNano;\n if (compareIsoDates(originIsoDateTime, zonedEpochSlotsToIso(endZoned))) {\n const [startIsoDateTime, endIsoDate, timeNano] = prepareZonedEpochDiff(timeZone, startZoned, endZoned, sign);\n deltaDays = isoDateToEpochDays(endIsoDate) - isoDateToEpochDays(startIsoDateTime), \n remainderNano = timeNano;\n } else {\n remainderNano = Number(endZoned.epochNanoseconds - startEpochNano);\n }\n const moveByDays = days => days ? getSingleInstantFor(timeZone, combineDateAndTime(checkIsoDateInBounds(moveDateByDays(originIsoDateTime, days)), originIsoDateTime)) : startEpochNano;\n const endEpochNano = void 0 === roundingMode ? checkEpochNanoInBounds(moveByDays(deltaDays) + BigInt(remainderNano)) : endZoned.epochNanoseconds;\n const wholeValue = Math.trunc(deltaDays / daysInUnit);\n const moveValueToEpochNano = value => moveByDays(value * daysInUnit);\n return void 0 === roundingMode ? totalRelativeUnit(wholeValue, sign, endEpochNano, moveValueToEpochNano) : roundRelativeUnit(wholeValue, sign, endEpochNano, moveValueToEpochNano, roundingInc, roundingMode);\n}\n\nfunction resolveDurationUnit(unit, durationFields, endEpochNano, relativeOps, unitWindowInc, roundingMode) {\n const sign = computeDurationSign(durationFields);\n const fieldName = durationFieldNamesAsc[unit];\n const moveValueToEpochNano = value => moveRelativeMarkerToEpochNano(relativeOps, {\n ...durationFieldDefaults,\n [fieldName]: value\n });\n return void 0 === roundingMode ? totalRelativeUnit(durationFields[fieldName], sign, endEpochNano, moveValueToEpochNano) : roundRelativeUnit(durationFields[fieldName], sign, endEpochNano, moveValueToEpochNano, unitWindowInc, roundingMode);\n}\n\nfunction moveToRefinedDayOfYear(calendar, isoDate, dayOfYear, overflow) {\n return moveDateByDays(isoDate, clampEntity(\"dayOfMonth\", dayOfYear, 1, computeCalendarDaysInYear(calendar, isoDate), overflow) - computeCalendarDayOfYear(calendar, isoDate));\n}\n\nfunction moveToRefinedDayOfMonth(calendar, isoDate, day, overflow) {\n return moveDateByDays(isoDate, clampEntity(\"day\", day, 1, computeCalendarDaysInMonth(calendar, isoDate), overflow) - computeCalendarDateFields(calendar, isoDate).day);\n}\n\nfunction moveToRefinedDayOfWeek(isoDate, dayOfWeek, overflow) {\n return moveDateByDays(isoDate, clampEntity(\"dayOfWeek\", dayOfWeek, 1, 7, overflow) - computeIsoDayOfWeek(isoDate));\n}\n\nfunction moveToRefinedWeekOfYear(calendar, isoDate, weekOfYear, overflow) {\n calendar !== isoCalendarImpl && throwRangeError(unsupportedWeekNumbers);\n const {weekOfYear: currentWeekOfYear, De: weeksInYear} = computeIsoWeekFields(isoDate);\n return moveDateByDays(isoDate, 7 * (clampEntity(\"weekOfYear\", weekOfYear, 1, weeksInYear, overflow) - currentWeekOfYear));\n}\n\nfunction computeDayFloor(slots) {\n return combineDateAndTime(slots, timeFieldDefaults);\n}\n\nfunction computeYearFloor(calendar, slots) {\n const {year: year0} = computeCalendarDateFields(calendar, slots);\n return computeCalendarDateTimeFromParts(calendar, year0);\n}\n\nfunction computeMonthFloor(calendar, slots) {\n const {year: year0, month: month0} = computeCalendarDateFields(calendar, slots);\n return computeCalendarDateTimeFromParts(calendar, year0, month0);\n}\n\nfunction computeIsoWeekFloor(_calendar, slots) {\n return combineDateAndTime(moveDateByDays(slots, 1 - computeIsoDayOfWeek(slots)), timeFieldDefaults);\n}\n\nfunction computeYearCeil(calendar, slots) {\n return computeYearInterval(calendar, slots)[1];\n}\n\nfunction computeMonthCeil(calendar, slots) {\n return computeMonthInterval(calendar, slots)[1];\n}\n\nfunction computeIsoWeekCeil(calendar, slots) {\n return combineDateAndTime(moveDateByDays(computeIsoWeekFloor(0, slots), 7), timeFieldDefaults);\n}\n\nfunction computeDayCeil(_calendar, slots) {\n return combineDateAndTime(moveDateByDays(slots, 1), timeFieldDefaults);\n}\n\nfunction computeYearInterval(calendar, slots) {\n return [ computeYearFloor(calendar, slots), computeCalendarDateTimeFromParts(calendar, computeCalendarDateFields(calendar, slots).year + 1) ];\n}\n\nfunction computeMonthInterval(calendar, slots) {\n const isoDateTime0 = computeMonthFloor(calendar, slots);\n const {year: year, month: month} = computeCalendarDateFields(calendar, slots);\n const {year: year1, month: month1} = addCalendarMonths(calendar, year, month, 1);\n return [ isoDateTime0, computeCalendarDateTimeFromParts(calendar, year1, month1) ];\n}\n\nfunction computeIsoWeekInterval(calendar, slots) {\n const isoDateTime0 = computeIsoWeekFloor(0, slots);\n return [ isoDateTime0, combineDateAndTime(moveDateByDays(isoDateTime0, 7), timeFieldDefaults) ];\n}\n\nfunction roundDateToInterval(computeInterval, calendar, slots, roundingMode) {\n return roundEpochNanoToInterval(computeInterval, calendar, slots, isoDateToEpochNano(slots), roundingMode);\n}\n\nfunction computeCalendarDateTimeFromParts(calendar, year, month = 1) {\n return combineDateAndTime(computeCalendarIsoFieldsFromParts(calendar, year, month, 1), timeFieldDefaults);\n}\n\nfunction roundDateTimeToInterval(computeInterval, calendar, slots, roundingMode) {\n return roundEpochNanoToInterval(computeInterval, calendar, slots, isoDateTimeToEpochNano(slots), roundingMode);\n}\n\nfunction roundEpochNanoToInterval(computeInterval, calendar, slots, epochNano, roundingMode) {\n const [isoDateTime0, isoDateTime1] = computeInterval(calendar, slots);\n return roundWithMode(computeEpochNanoFrac(epochNano, isoDateTimeToEpochNano(isoDateTime0), isoDateTimeToEpochNano(isoDateTime1)), roundingMode) ? isoDateTime1 : isoDateTime0;\n}\n\nexport { RawDateTimeFormat, absDuration, addDurationsWithoutRelativeTo, addIsoMonths, alignZonedEpoch, applyPlainFormatTimeZone, applyZonedFormatTimeZone, bigNanoInHour, bigNanoInMicro, bigNanoInMilli, bigNanoInMinute, bigNanoInSec, bindArgs, checkEpochNanoInBounds, checkIsoDateInBounds, checkIsoDateTimeInBounds, checkIsoYearMonthInBounds, checkResolvedCalendarCompatible, clampEntity, combineDateAndTime, compareDurations, compareIsoDateFields, compareIsoDateTimeFields, compareNumbers, compareTimeFields, compareZonedEpochSlots, computeBigNanoInc, computeCalendarDateFields, computeCalendarDayOfYear, computeCalendarDaysInMonth, computeCalendarDaysInYear, computeCalendarEraFields, computeCalendarInLeapYear, computeCalendarMonthCode, computeCalendarMonthsInYear, computeCalendarWeekOfYear, computeCalendarYearOfWeek, computeDayCeil, computeDayFloor, computeGregoryEraFields, computeIsoDayOfWeek, computeIsoDaysInMonth, computeIsoDaysInYear, computeIsoFieldsFromParts, computeIsoInLeapYear, computeIsoMonthCodeParts, computeIsoWeekCeil, computeIsoWeekFloor, computeIsoWeekInterval, computeIsoYearMonthFieldsForMonthDay, computeMonthCeil, computeMonthFloor, computeMonthInterval, computeNanoInc, computeYearCeil, computeYearFloor, computeYearInterval, computeZonedHoursInDay, computeZonedStartOfDay, constrainToRange, countDateTimeUnit, countDateWeeks, countEpochNanoDays, countEpochNanoUnit, countRelativeUnit, countTimeUnit, countYearMonthUnit, countZonedDayWeekUnit, createDateFromRefinedFields, createDateRelativeOps, createDateSlots, createDateTimeFormatShell, createDateTimeFromMergedFields, createDateTimeFromRefinedFields, createDateTimeSlots, createDurationSlots, createEpochNanoSlots, createMonthDayFromCalendarParts, createMonthDayFromRefinedFields, createNameDescriptors, createPropDescriptors, createPropGetters, createStringTagDescriptors, createTimeSlots, createYearMonthFromCalendarParts, createYearMonthFromRefinedFields, createZonedDateTimeFromMergedFields, createZonedEpochNanoSlots, createZonedRelativeOps, dateTimeToZonedDateTime, dateToZonedDateTime, diffCalendarDates, diffDateTimesExact, diffDateTimesRounded, diffDatesRounded, diffEpochMilliDays, diffEpochNanosRounded, diffIsoMonthSlots, diffTimesRounded, diffYearMonthsRounded, diffZonedDateTimesRounded, diffZonedEpochsExact, durationFieldNamesAsc, durationGetters, epochDaysToIsoDate, epochMilliToInstant, epochMilliToIsoDateTime, epochNanoToInstant, epochNanoToIsoDateTime, epochNanoToMilli, eraYearToYear, exoticCalendarRequired, fieldsToMonthDay, fieldsToYearMonth, flippedSmallestLargestUnit, forbiddenValueOf, formatDateIsoAuto, formatDateTimeIsoAuto, formatDurationIso, formatDurationIsoAuto, formatEpochMilliToPartsRecord, formatInstantIso, formatInstantIsoAuto, formatMonthDayIsoAuto, formatOffsetNano, formatPlainDateIso, formatPlainDateTimeIso, formatPlainMonthDayIso, formatPlainTimeIso, formatPlainYearMonthIso, formatTimeIsoAuto, formatYearMonthIsoAuto, formatZonedDateTimeIso, formatZonedDateTimeIsoAuto, getCalendarSlotId, getCommonCalendar, getCommonTimeZone, getCurrentEpochNano, getCurrentIsoDateTime, getCurrentTimeZoneId, getMatchingInstantFor, getSingleInstantFor, getZonedTimeZoneId, gregoryCalendarId, gregoryCalendarImpl, gregoryEraOrigins, instantToZonedDateTime, instantsEqual, invalidBag, invalidCalendar, invalidCallingContext, invalidChoice, invalidEntity, invalidFormatType, invalidRelativeTo, invalidTimeZone, isObjectLike, isoCalendarId, isoCalendarImpl, isoDateTimeToEpochMilli, isoDateTimeToEpochNano, isoDateToEpochDays, isoDateToEpochMilli, isoDateToEpochNano, isoEpochFirstLeapYear, isoEpochOriginYear, isoMonthsInYear, isoPartsToEpochDays, mapProps, maxMilli, memoize, mergeDateFields, mergeDateTimeFields, mergeDurationFields, mergeMonthDayFields, mergeTimeFields, mergeYearMonthFields, mergeZonedDateTimeFields, milliInUtcDay, mismatchingFormatTypes, missingSmallestLargestUnit, modFloor, monthCodeNumberToMonth, monthDayToDate, monthToMonthCodeNumber, moveDate, moveDateByCalendarUnits, moveDateByDays, moveDateTime, moveDateTimeByNano, moveEpochNano, moveEpochNanoByNano, moveTime, moveTimeByNano, moveToRefinedDayOfMonth, moveToRefinedDayOfWeek, moveToRefinedDayOfYear, moveToRefinedWeekOfYear, moveYearMonth, moveYearMonthByUnits, moveZonedEpochSlots, nanoInHour, nanoInMicro, nanoInMilli, nanoInMinute, nanoInSec, nanoInUtcDay, negateDuration, negateDurationFields, noop, outOfBoundsDate, parseCalendarId, parseDuration, parseInstant, parsePlainDate, parsePlainDateTime, parsePlainMonthDay, parsePlainTime, parsePlainYearMonth, parseRelativeToSlots, parseTimeZoneId, parseZonedDateTime, plainDateTimesEqual, plainDatesEqual, plainMonthDaysEqual, plainTimesEqual, plainYearMonthsEqual, queryTimeZone, refineCalendarDateFields, refineDurationObjectLike, refineMaybeZonedDateTimeObjectLike, refineMonthDayFields, refinePlainDateObjectLike, refinePlainDateTimeObjectLike, refinePlainMonthDayObjectLike, refinePlainTimeObjectLike, refinePlainYearMonthObjectLike, refineTimeZoneId, refineZonedDateTimeObjectLike, requireNumberIsInteger, requirePropDefined, requireString, resolveTimeFields, resolveTimeZoneId, roundBigNanoToDayOriginInc, roundDateTimeToInc, roundDateTimeToInterval, roundDateToInterval, roundDuration, roundExpand, roundHalfCeil, roundHalfEven, roundHalfExpand, roundHalfFloor, roundHalfTrunc, roundTimeToInc, roundZonedEpochSlotsToUnit, roundZonedEpochToDay, roundZonedEpochToInterval, roundZonedEpochToTime, throwRangeError, throwTypeError, timeFieldDefaults, timeFieldsToMilli, timeFieldsToNano, timeGetters, toBigInt, toStrictInteger, toString, totalDuration, transformDateOptions, transformDateTimeOptions, transformInstantOptions, transformMonthDayOptions, transformTimeOptions, transformYearMonthOptions, transformZonedOptions, unitNameMap, unitNamesAsc, unitNanoMap, utcTimeZoneId, validateDurationCalendarUnit, validateDurationFields, validateIsoDateFields, validateIsoDateTimeFields, validateTimeFields, yearMonthToDate, zonedDateTimeToDate, zonedDateTimeToDateTime, zonedDateTimeToInstant, zonedDateTimeToTime, zonedDateTimeWithPlainTime, zonedDateTimesEqual, zonedEpochSlotsToIso };\n","import { createNameDescriptors, createStringTagDescriptors, mapProps, noop, throwTypeError, invalidCallingContext, forbiddenValueOf as forbiddenValueOf$1, computeCalendarEraFields, computeCalendarDateFields, computeCalendarMonthCode, computeCalendarDaysInMonth, computeCalendarDaysInYear, computeCalendarMonthsInYear, computeCalendarInLeapYear, computeIsoDayOfWeek, computeCalendarDayOfYear, computeCalendarWeekOfYear, computeCalendarYearOfWeek, diffEpochNanosRounded, getCommonCalendar, diffZonedDateTimesRounded, diffDateTimesRounded, diffDatesRounded, diffYearMonthsRounded, diffTimesRounded, createDurationSlots, negateDurationFields, mergeDateFields, refineCalendarDateFields, createDateFromRefinedFields, mergeDateTimeFields, createDateTimeFromMergedFields, mergeYearMonthFields, createYearMonthFromRefinedFields, mergeMonthDayFields, refineMonthDayFields, createMonthDayFromRefinedFields, mergeTimeFields, resolveTimeFields, mergeZonedDateTimeFields, createZonedDateTimeFromMergedFields, createPropGetters, durationGetters as durationGetters$1, timeGetters as timeGetters$1, bindArgs, getCommonTimeZone, countRelativeUnit, diffZonedEpochsExact, createZonedRelativeOps, countZonedDayWeekUnit, createDateRelativeOps, diffDateTimesExact, countDateWeeks, countEpochNanoDays, timeFieldsToNano, isoDateTimeToEpochNano, isoDateToEpochNano, diffCalendarDates, countYearMonthUnit, countDateTimeUnit, countTimeUnit, countEpochNanoUnit, moveDateByCalendarUnits, toStrictInteger, moveToRefinedDayOfYear, moveToRefinedDayOfMonth, moveToRefinedDayOfWeek, moveToRefinedWeekOfYear } from \"./internal.js\";\n\nimport { refineDiffOptions, refineOverflowOptions, refineZonedFieldOptions, refineUnitDiffOptions } from \"./options.js\";\n\nimport { toIntegerWithTrunc } from \"temporal-utils/protected\";\n\nimport \"temporal-utils/protected-error-messages\";\n\nconst PlainYearMonthBranding = \"PlainYearMonth\";\n\nconst PlainMonthDayBranding = \"PlainMonthDay\";\n\nconst PlainDateBranding = \"PlainDate\";\n\nconst PlainDateTimeBranding = \"PlainDateTime\";\n\nconst PlainTimeBranding = \"PlainTime\";\n\nconst ZonedDateTimeBranding = \"ZonedDateTime\";\n\nconst InstantBranding = \"Instant\";\n\nconst DurationBranding = \"Duration\";\n\nconst CalendarBranding = \"Calendar\";\n\nfunction defineTemporalClass(branding, cls, getSlots, ...getterMaps) {\n return Object.defineProperties(cls, createNameDescriptors(branding)), Object.defineProperties(cls.prototype, createStringTagDescriptors(\"Temporal.\" + branding)), \n Object.defineProperties(cls.prototype, mapProps(getter => ({\n get() {\n return getter(getSlots(this));\n },\n configurable: 1\n }), Object.assign({}, ...getterMaps))), cls;\n}\n\nconst attachDebugString = \"noop\" === noop.name ? instance => {\n Object.defineProperty(instance, \"_str_\", {\n value: instance.toJSON()\n });\n} : noop;\n\nfunction invalidRecordType() {\n throwTypeError(invalidCallingContext);\n}\n\nfunction forbiddenValueOf() {\n throwTypeError(forbiddenValueOf$1);\n}\n\nconst yearMonthFieldGetters$1 = {\n era(slots) {\n return computeCalendarEraFields(slots.calendar, slots).era;\n },\n eraYear(slots) {\n return computeCalendarEraFields(slots.calendar, slots).eraYear;\n },\n year(slots) {\n return computeCalendarDateFields(slots.calendar, slots).year;\n },\n month(slots) {\n return computeCalendarDateFields(slots.calendar, slots).month;\n },\n monthCode(slots) {\n return computeCalendarMonthCode(slots.calendar, slots);\n }\n};\n\nconst dateFieldGetters$1 = {\n era(slots) {\n return computeCalendarEraFields(slots.calendar, slots).era;\n },\n eraYear(slots) {\n return computeCalendarEraFields(slots.calendar, slots).eraYear;\n },\n year(slots) {\n return computeCalendarDateFields(slots.calendar, slots).year;\n },\n month(slots) {\n return computeCalendarDateFields(slots.calendar, slots).month;\n },\n monthCode(slots) {\n return computeCalendarMonthCode(slots.calendar, slots);\n },\n day(slots) {\n return computeCalendarDateFields(slots.calendar, slots).day;\n }\n};\n\nconst monthDayFieldGetters$1 = {\n monthCode(slots) {\n return computeCalendarMonthCode(slots.calendar, slots);\n },\n day(slots) {\n return computeCalendarDateFields(slots.calendar, slots).day;\n }\n};\n\nconst yearMonthDerivedGetters = {\n daysInMonth(slots) {\n return computeCalendarDaysInMonth(slots.calendar, slots);\n },\n daysInYear(slots) {\n return computeCalendarDaysInYear(slots.calendar, slots);\n },\n monthsInYear(slots) {\n return computeCalendarMonthsInYear(slots.calendar, slots);\n },\n inLeapYear(slots) {\n return computeCalendarInLeapYear(slots.calendar, slots);\n }\n};\n\nconst dateDerivedGetters = {\n dayOfWeek(slots) {\n return computeIsoDayOfWeek(slots);\n },\n dayOfYear(slots) {\n return computeCalendarDayOfYear(slots.calendar, slots);\n },\n weekOfYear(slots) {\n return computeCalendarWeekOfYear(slots.calendar, slots);\n },\n yearOfWeek(slots) {\n return computeCalendarYearOfWeek(slots.calendar, slots);\n },\n daysInWeek() {\n return 7;\n },\n daysInMonth(slots) {\n return computeCalendarDaysInMonth(slots.calendar, slots);\n },\n daysInYear(slots) {\n return computeCalendarDaysInYear(slots.calendar, slots);\n },\n monthsInYear(slots) {\n return computeCalendarMonthsInYear(slots.calendar, slots);\n },\n inLeapYear(slots) {\n return computeCalendarInLeapYear(slots.calendar, slots);\n }\n};\n\nfunction diffInstants(invert, instantSlots0, instantSlots1, options) {\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 3, 5);\n return createDiffDurationSlots(invert, diffEpochNanosRounded(instantSlots0.epochNanoseconds, instantSlots1.epochNanoseconds, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffZonedDateTimes(invert, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 5);\n return createDiffDurationSlots(invert, diffZonedDateTimesRounded(calendar, slots0, slots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffDateTimes(invert, plainDateTimeSlots0, plainDateTimeSlots1, options) {\n const calendar = getCommonCalendar(plainDateTimeSlots0.calendar, plainDateTimeSlots1.calendar);\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 6);\n return createDiffDurationSlots(invert, diffDateTimesRounded(calendar, plainDateTimeSlots0, plainDateTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffDates(invert, plainDateSlots0, plainDateSlots1, options) {\n const calendar = getCommonCalendar(plainDateSlots0.calendar, plainDateSlots1.calendar);\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 6, 9, 6);\n return createDiffDurationSlots(invert, diffDatesRounded(calendar, plainDateSlots0, plainDateSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffYearMonths(invert, plainYearMonthSlots0, plainYearMonthSlots1, options) {\n const calendar = getCommonCalendar(plainYearMonthSlots0.calendar, plainYearMonthSlots1.calendar);\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 9, 9, 8);\n return createDiffDurationSlots(invert, diffYearMonthsRounded(calendar, plainYearMonthSlots0, plainYearMonthSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffTimes(invert, plainTimeSlots0, plainTimeSlots1, options) {\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 5, 5);\n return createDiffDurationSlots(invert, diffTimesRounded(plainTimeSlots0, plainTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction createDiffDurationSlots(invert, durationFields) {\n return createDurationSlots(invert ? negateDurationFields(durationFields) : durationFields);\n}\n\nfunction withDateFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const fields = mergeDateFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n const overflow = refineOverflowOptions(options);\n return createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);\n}\n\nfunction withDateTimeFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const [mergedFields, calendarFields] = mergeDateTimeFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineCalendarDateFields(calendarFields, calendar);\n const overflow = refineOverflowOptions(options);\n return createDateTimeFromMergedFields(mergedFields, calendarFields, calendar, year, monthCodeParts, overflow);\n}\n\nfunction withYearMonthFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const fields = mergeYearMonthFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar, 1);\n const overflow = refineOverflowOptions(options);\n return createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);\n}\n\nfunction withMonthDayFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const fields = mergeMonthDayFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineMonthDayFields(fields, calendar);\n const overflow = refineOverflowOptions(options);\n return createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);\n}\n\nfunction withTimeFields(slots, modFields, options) {\n const refinedFields = mergeTimeFields(slots, modFields);\n const overflow = refineOverflowOptions(options);\n return resolveTimeFields(refinedFields, overflow);\n}\n\nfunction withZonedDateTimeFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const [mergedFields, calendarFields] = mergeZonedDateTimeFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineCalendarDateFields(calendarFields, calendar);\n const [overflow, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options, 2);\n return createZonedDateTimeFromMergedFields(slots, mergedFields, calendarFields, year, monthCodeParts, overflow, offsetDisambig, epochDisambig);\n}\n\nfunction createNativeGetters(shimGetters) {\n return createPropGetters(Object.keys(shimGetters));\n}\n\nconst durationGetters = /*@__PURE__*/ createNativeGetters(durationGetters$1);\n\nconst timeGetters = /*@__PURE__*/ createNativeGetters(timeGetters$1);\n\nconst yearMonthFieldGetters = /*@__PURE__*/ createNativeGetters(yearMonthFieldGetters$1);\n\nconst dateFieldGetters = /*@__PURE__*/ createNativeGetters(dateFieldGetters$1);\n\nconst monthDayFieldGetters = /*@__PURE__*/ createNativeGetters(monthDayFieldGetters$1);\n\nconst diffZonedYears = /*@__PURE__*/ bindArgs(diffZonedCalendarUnit, 9);\n\nconst diffZonedMonths = /*@__PURE__*/ bindArgs(diffZonedCalendarUnit, 8);\n\nconst diffZonedWeeks = /*@__PURE__*/ bindArgs(diffZonedDayWeekUnit, 7);\n\nconst diffZonedDays = /*@__PURE__*/ bindArgs(diffZonedDayWeekUnit, 6);\n\nconst diffInstantEpochNanoTimeUnit = diffInstantTimeUnit;\n\nconst diffDateYears = /*@__PURE__*/ bindArgs(diffDateCalendarUnit, 9);\n\nconst diffDateMonths = /*@__PURE__*/ bindArgs(diffDateCalendarUnit, 8);\n\nconst diffDateTimeYears = /*@__PURE__*/ bindArgs(diffDateTimeCalendarUnit, 9);\n\nconst diffDateTimeMonths = /*@__PURE__*/ bindArgs(diffDateTimeCalendarUnit, 8);\n\nconst diffYearMonthYears = /*@__PURE__*/ bindArgs(diffYearMonthUnit, 9);\n\nconst diffYearMonthMonths = /*@__PURE__*/ bindArgs(diffYearMonthUnit, 8);\n\nfunction diffZonedEpochNanoTimeUnit(unit, slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), diffInstantTimeUnit(unit, slots0, slots1, options);\n}\n\nfunction diffDateTimeEpochNanoTimeUnit(unit, slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countDateTimeUnit(slots0, slots1, unit, refineUnitDiffOptions(unit, options));\n}\n\nfunction diffTimeNanoOfDayTimeUnit(unit, slots0, slots1, options) {\n return countTimeUnit(slots0, slots1, unit, refineUnitDiffOptions(unit, options));\n}\n\nfunction adaptRecordTimeUnitDiff(diffSlots, getSlots) {\n return (unit, record0, record1, options) => diffSlots(unit, getSlots(record0), getSlots(record1), options);\n}\n\nfunction diffInstantTimeUnit(unit, slots0, slots1, options) {\n return countEpochNanoUnit(slots0.epochNanoseconds, slots1.epochNanoseconds, unit, refineUnitDiffOptions(unit, options));\n}\n\nfunction diffZonedCalendarUnit(unit, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n const rounding = refineUnitDiffOptions(unit, options);\n if (slots0.epochNanoseconds === slots1.epochNanoseconds) {\n return 0;\n }\n const timeZone = getCommonTimeZone(slots0.timeZone, slots1.timeZone);\n return countRelativeUnit(unit, {\n he: () => diffZonedEpochsExact(timeZone, calendar, slots0, slots1, unit),\n me: createZonedRelativeOps(calendar, timeZone, slots0),\n ie: slots1.epochNanoseconds\n }, rounding, 1);\n}\n\nfunction diffZonedDayWeekUnit(unit, slots0, slots1, options) {\n getCommonCalendar(slots0.calendar, slots1.calendar);\n const rounding = refineUnitDiffOptions(unit, options);\n return slots0.epochNanoseconds === slots1.epochNanoseconds ? 0 : countZonedDayWeekUnit(unit, getCommonTimeZone(slots0.timeZone, slots1.timeZone), slots0, slots1, rounding);\n}\n\nfunction diffDateTimeCalendarUnit(unit, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n return diffPlainRelativeUnit(unit, options, () => diffDateTimesExact(calendar, slots0, slots1, unit), createDateRelativeOps(calendar, slots0), computeEndEpochNanoFromMidnight(slots0, slots1));\n}\n\nfunction diffDateTimeWeeks(slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countDateWeeks(slots0, computeEndEpochNanoFromMidnight(slots0, slots1), refineUnitDiffOptions(7, options));\n}\n\nfunction diffDateTimeDays(slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countEpochNanoDays(isoDateTimeToEpochNano(slots0), isoDateTimeToEpochNano(slots1), timeFieldsToNano(slots0), refineUnitDiffOptions(6, options));\n}\n\nfunction computeEndEpochNanoFromMidnight(isoDateTime0, isoDateTime1) {\n return isoDateTimeToEpochNano(isoDateTime1) - BigInt(timeFieldsToNano(isoDateTime0));\n}\n\nfunction diffDateCalendarUnit(unit, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n return diffPlainRelativeUnit(unit, options, () => diffCalendarDates(calendar, slots0, slots1, unit), createDateRelativeOps(calendar, slots0), isoDateToEpochNano(slots1));\n}\n\nfunction diffDateWeeks(slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countDateWeeks(slots0, isoDateToEpochNano(slots1), refineUnitDiffOptions(7, options));\n}\n\nfunction diffDateDays(slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countEpochNanoDays(isoDateToEpochNano(slots0), isoDateToEpochNano(slots1), 0, refineUnitDiffOptions(6, options));\n}\n\nfunction diffYearMonthUnit(unit, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n return countYearMonthUnit(calendar, slots0, slots1, unit, refineUnitDiffOptions(unit, options));\n}\n\nfunction diffPlainRelativeUnit(unit, options, diffExact, relativeOps, endEpochNano) {\n return countRelativeUnit(unit, {\n he: diffExact,\n me: relativeOps,\n ie: endEpochNano\n }, refineUnitDiffOptions(unit, options));\n}\n\nfunction reversedMove(f) {\n return (slots, units, options) => f(slots, -units, options);\n}\n\nfunction moveDateByYears(calendar, isoDate, years, options) {\n const overflow = refineOverflowOptions(options);\n return years ? moveDateByCalendarUnits(calendar, isoDate, toStrictInteger(years), 0, overflow) : isoDate;\n}\n\nfunction moveDateByMonths(calendar, isoDate, months, options) {\n const overflow = refineOverflowOptions(options);\n return months ? moveDateByCalendarUnits(calendar, isoDate, 0, toStrictInteger(months), overflow) : isoDate;\n}\n\nfunction moveToDayOfYear(calendar, isoDate, dayOfYear, options) {\n const overflow = refineOverflowOptions(options);\n return moveToRefinedDayOfYear(calendar, isoDate, toIntegerWithTrunc(dayOfYear), overflow);\n}\n\nfunction moveToDayOfMonth(calendar, isoDate, day, options) {\n const overflow = refineOverflowOptions(options);\n return moveToRefinedDayOfMonth(calendar, isoDate, toIntegerWithTrunc(day), overflow);\n}\n\nfunction moveToDayOfWeek(_calendar, isoDate, dayOfWeek, options) {\n const overflow = refineOverflowOptions(options);\n return moveToRefinedDayOfWeek(isoDate, toIntegerWithTrunc(dayOfWeek), overflow);\n}\n\nfunction moveToWeekOfYear(calendar, isoDate, weekOfYear, options) {\n const overflow = refineOverflowOptions(options);\n return moveToRefinedWeekOfYear(calendar, isoDate, toIntegerWithTrunc(weekOfYear), overflow);\n}\n\nexport { CalendarBranding, DurationBranding, InstantBranding, PlainDateBranding, PlainDateTimeBranding, PlainMonthDayBranding, PlainTimeBranding, PlainYearMonthBranding, ZonedDateTimeBranding, adaptRecordTimeUnitDiff, attachDebugString, dateDerivedGetters, dateFieldGetters$1 as dateFieldGetters, dateFieldGetters as dateFieldGetters$1, defineTemporalClass, diffDateDays, diffDateMonths, diffDateTimeDays, diffDateTimeEpochNanoTimeUnit, diffDateTimeMonths, diffDateTimeWeeks, diffDateTimeYears, diffDateTimes, diffDateWeeks, diffDateYears, diffDates, diffInstantEpochNanoTimeUnit, diffInstants, diffTimeNanoOfDayTimeUnit, diffTimes, diffYearMonthMonths, diffYearMonthYears, diffYearMonths, diffZonedDateTimes, diffZonedDays, diffZonedEpochNanoTimeUnit, diffZonedMonths, diffZonedWeeks, diffZonedYears, durationGetters, forbiddenValueOf, invalidRecordType, monthDayFieldGetters$1 as monthDayFieldGetters, monthDayFieldGetters as monthDayFieldGetters$1, moveDateByMonths, moveDateByYears, moveToDayOfMonth, moveToDayOfWeek, moveToDayOfYear, moveToWeekOfYear, reversedMove, timeGetters, withDateFields, withDateTimeFields, withMonthDayFields, withTimeFields, withYearMonthFields, withZonedDateTimeFields, yearMonthDerivedGetters, yearMonthFieldGetters$1 as yearMonthFieldGetters, yearMonthFieldGetters as yearMonthFieldGetters$1 };\n","import { requireString, isoCalendarId, isoCalendarImpl, gregoryCalendarId, gregoryCalendarImpl, throwRangeError, exoticCalendarRequired, timeGetters, checkEpochNanoInBounds, toBigInt, queryTimeZone, refineTimeZoneId, compareZonedEpochSlots, getCalendarSlotId, epochNanoToMilli, formatOffsetNano, zonedEpochSlotsToIso, computeZonedHoursInDay, zonedDateTimeWithPlainTime, moveZonedEpochSlots, negateDurationFields, roundZonedEpochSlotsToUnit, computeZonedStartOfDay, zonedDateTimesEqual, zonedDateTimeToInstant, zonedDateTimeToDateTime, zonedDateTimeToDate, zonedDateTimeToTime, RawDateTimeFormat, applyZonedFormatTimeZone, getZonedTimeZoneId, transformZonedOptions, checkResolvedCalendarCompatible, formatZonedDateTimeIso, isObjectLike, refineZonedDateTimeObjectLike, parseZonedDateTime, createZonedEpochNanoSlots, throwTypeError, invalidTimeZone, resolveTimeZoneId, parseTimeZoneId, epochMilliToInstant, epochNanoToInstant, createEpochNanoSlots, moveEpochNano, roundBigNanoToDayOriginInc, computeBigNanoInc, instantsEqual, instantToZonedDateTime, transformInstantOptions, formatInstantIso, parseInstant, requireNumberIsInteger, bigNanoInMilli, isoEpochFirstLeapYear, checkIsoDateInBounds, validateIsoDateFields, createDateSlots, plainMonthDaysEqual, monthDayToDate, applyPlainFormatTimeZone, transformMonthDayOptions, isoDateToEpochMilli, formatPlainMonthDayIso, refinePlainMonthDayObjectLike, parsePlainMonthDay, checkIsoYearMonthInBounds, compareIsoDateFields, moveYearMonth, plainYearMonthsEqual, yearMonthToDate, transformYearMonthOptions, formatPlainYearMonthIso, refinePlainYearMonthObjectLike, parsePlainYearMonth, invalidBag, validateTimeFields, mapProps, createTimeSlots, compareTimeFields, moveTime, roundTimeToInc, plainTimesEqual, transformTimeOptions, timeFieldsToMilli, formatPlainTimeIso, refinePlainTimeObjectLike, parsePlainTime, computeNanoInc, checkIsoDateTimeInBounds, validateIsoDateTimeFields, createDateTimeSlots, compareIsoDateTimeFields, createDateTimeFromRefinedFields, moveDateTime, roundDateTimeToInc, plainDateTimesEqual, dateTimeToZonedDateTime, transformDateTimeOptions, isoDateTimeToEpochMilli, formatPlainDateTimeIso, combineDateAndTime, refinePlainDateTimeObjectLike, parsePlainDateTime, timeFieldDefaults, moveDate, plainDatesEqual, dateToZonedDateTime, fieldsToYearMonth, fieldsToMonthDay, transformDateOptions, formatPlainDateIso, refinePlainDateObjectLike, parsePlainDate, invalidCalendar, parseCalendarId, durationGetters, validateDurationFields, toStrictInteger, createDurationSlots, compareDurations, mergeDurationFields, negateDuration, absDuration, addDurationsWithoutRelativeTo, roundDuration, totalDuration, formatDurationIso, refineDurationObjectLike, parseDuration, refineMaybeZonedDateTimeObjectLike, parseRelativeToSlots, createStringTagDescriptors, createPropDescriptors, getCurrentTimeZoneId, getCurrentEpochNano, getCurrentIsoDateTime } from \"./internal.js\";\n\nimport { createDateTimeFormatClass, createIntlExtended } from \"./classApi.js\";\n\nimport { defineTemporalClass, dateDerivedGetters, dateFieldGetters, withZonedDateTimeFields, diffZonedDateTimes, forbiddenValueOf, ZonedDateTimeBranding, invalidRecordType, attachDebugString, diffInstants, InstantBranding, monthDayFieldGetters, withMonthDayFields, PlainMonthDayBranding, yearMonthDerivedGetters, yearMonthFieldGetters, withYearMonthFields, diffYearMonths, PlainYearMonthBranding, PlainDateTimeBranding, PlainDateBranding, PlainTimeBranding, DurationBranding, withTimeFields, diffTimes, withDateTimeFields, diffDateTimes, withDateFields, diffDates } from \"./apiHelpers.js\";\n\nimport \"temporal-utils/protected-error-messages\";\n\nimport { toIntegerWithTrunc } from \"temporal-utils/protected\";\n\nimport { refineOverflowOptions, refineRoundingOptions, refineDirectionOptions, refineZonedFieldOptions, refineEpochDisambigOptions } from \"./options.js\";\n\nfunction resolveBasicCalendarId(rawCalendarId) {\n const lowerRawCalendarId = requireString(rawCalendarId).toLowerCase();\n return lowerRawCalendarId === isoCalendarId ? isoCalendarImpl : lowerRawCalendarId === gregoryCalendarId ? gregoryCalendarImpl : void throwRangeError(exoticCalendarRequired(rawCalendarId, \"temporal-polyfill/full\"));\n}\n\nfunction resolveBasicCalendarArg(rawCalendarId = isoCalendarId) {\n return resolveBasicCalendarId(rawCalendarId);\n}\n\nconst zonedDateTimeSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst ZonedDateTime = /*@__PURE__*/ defineTemporalClass(ZonedDateTimeBranding, class {\n constructor(epochNanoseconds, timeZoneId, calendar = void 0) {\n const epochNano = checkEpochNanoInBounds(toBigInt(epochNanoseconds));\n const timeZone = queryTimeZone(refineTimeZoneId(timeZoneId));\n const calendarImpl = resolveBasicCalendarArg(calendar);\n initZonedDateTime(this, createZonedEpochNanoSlots(epochNano, timeZone, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createZonedDateTime(toZonedDateTimeSlots(arg, options));\n }\n static compare(arg0, arg1) {\n return compareZonedEpochSlots(toZonedDateTimeSlots(arg0), toZonedDateTimeSlots(arg1));\n }\n get calendarId() {\n return getCalendarSlotId(getZonedDateTimeSlots(this).calendar);\n }\n get timeZoneId() {\n return getZonedDateTimeSlots(this).timeZone.id;\n }\n get epochMilliseconds() {\n return epochNanoToMilli(getZonedDateTimeSlots(this).epochNanoseconds);\n }\n get epochNanoseconds() {\n return getZonedDateTimeSlots(this).epochNanoseconds;\n }\n get offset() {\n return formatOffsetNano(zonedEpochSlotsToIso(getZonedDateTimeSlots(this)).offsetNanoseconds);\n }\n get offsetNanoseconds() {\n return zonedEpochSlotsToIso(getZonedDateTimeSlots(this)).offsetNanoseconds;\n }\n get hoursInDay() {\n return computeZonedHoursInDay(getZonedDateTimeSlots(this));\n }\n with(mod, options = void 0) {\n return createZonedDateTime(withZonedDateTimeFields(getZonedDateTimeSlots(this), validateBag(mod), options));\n }\n withCalendar(calendarArg) {\n return createZonedDateTime({\n ...getZonedDateTimeSlots(this),\n calendar: refineCalendarArg(calendarArg)\n });\n }\n withTimeZone(timeZoneArg) {\n return createZonedDateTime({\n ...getZonedDateTimeSlots(this),\n timeZone: queryTimeZone(refineTimeZoneArg(timeZoneArg))\n });\n }\n withPlainTime(plainTimeArg = void 0) {\n return createZonedDateTime(zonedDateTimeWithPlainTime(getZonedDateTimeSlots(this), optionalToPlainTimeFields(plainTimeArg)));\n }\n add(durationArg, options = void 0) {\n const slots = getZonedDateTimeSlots(this);\n return createZonedDateTime(moveZonedEpochSlots(slots, toDurationSlots(durationArg), refineOverflowOptions(options)));\n }\n subtract(durationArg, options = void 0) {\n const slots = getZonedDateTimeSlots(this);\n return createZonedDateTime(moveZonedEpochSlots(slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)));\n }\n until(otherArg, options = void 0) {\n const slots = getZonedDateTimeSlots(this);\n const other = toZonedDateTimeSlots(otherArg);\n return createDuration(diffZonedDateTimes(0, slots, other, options));\n }\n since(otherArg, options = void 0) {\n const slots = getZonedDateTimeSlots(this);\n const other = toZonedDateTimeSlots(otherArg);\n return createDuration(diffZonedDateTimes(1, slots, other, options));\n }\n round(options) {\n const slots = getZonedDateTimeSlots(this);\n const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options);\n return createZonedDateTime(roundZonedEpochSlotsToUnit(slots, smallestUnit, roundingInc, roundingMode));\n }\n startOfDay() {\n return createZonedDateTime(computeZonedStartOfDay(getZonedDateTimeSlots(this)));\n }\n equals(otherArg) {\n return zonedDateTimesEqual(getZonedDateTimeSlots(this), toZonedDateTimeSlots(otherArg));\n }\n toInstant() {\n return createInstant(zonedDateTimeToInstant(getZonedDateTimeSlots(this)));\n }\n toPlainDateTime() {\n return createPlainDateTime(zonedDateTimeToDateTime(getZonedDateTimeSlots(this)));\n }\n toPlainDate() {\n return createPlainDate(zonedDateTimeToDate(getZonedDateTimeSlots(this)));\n }\n toPlainTime() {\n return createPlainTime(zonedDateTimeToTime(getZonedDateTimeSlots(this)));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getZonedDateTimeSlots(this);\n const format = new RawDateTimeFormat(locales, applyZonedFormatTimeZone(transformZonedOptions(options), getZonedTimeZoneId(slots)));\n return checkResolvedCalendarCompatible(format, slots), format.format(epochNanoToMilli(slots.epochNanoseconds));\n }\n toString(options = void 0) {\n return formatZonedDateTimeIso(getZonedDateTimeSlots(this), options);\n }\n toJSON() {\n return formatZonedDateTimeIso(getZonedDateTimeSlots(this));\n }\n getTimeZoneTransition(options) {\n const slots = getZonedDateTimeSlots(this);\n const newEpochNano = slots.timeZone.C(slots.epochNanoseconds, refineDirectionOptions(options));\n return void 0 !== newEpochNano ? createZonedDateTime({\n ...slots,\n epochNanoseconds: newEpochNano\n }) : null;\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getZonedDateTimeIsoSlots, dateFieldGetters, dateDerivedGetters, timeGetters);\n\nfunction createZonedDateTime(slots) {\n return initZonedDateTime(Object.create(ZonedDateTime.prototype), slots);\n}\n\nfunction getZonedDateTimeSlots(obj) {\n return getZonedDateTimeSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getZonedDateTimeIsoSlots(obj) {\n const slots = getZonedDateTimeSlots(obj);\n return {\n ...zonedEpochSlotsToIso(slots),\n calendar: slots.calendar\n };\n}\n\nfunction getZonedDateTimeSlotsIfPresent(obj) {\n return zonedDateTimeSlotsMap.get(obj);\n}\n\nfunction toZonedDateTimeSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getZonedDateTimeSlotsIfPresent(arg);\n if (ownSlots) {\n return refineZonedFieldOptions(options), ownSlots;\n }\n const calendar = getCalendarFromBag(arg);\n return refineZonedDateTimeObjectLike(refineTimeZoneArg, calendar, arg, options);\n }\n return parseZonedDateTime(arg, resolveBasicCalendarId, options);\n}\n\nfunction initZonedDateTime(instance, slots) {\n return zonedDateTimeSlotsMap.set(instance, slots), attachDebugString(instance), \n instance;\n}\n\nfunction refineTimeZoneArg(arg) {\n if (isObjectLike(arg)) {\n const slots = getZonedDateTimeSlotsIfPresent(arg);\n return slots || throwTypeError(invalidTimeZone(arg)), slots.timeZone.id;\n }\n return (arg => resolveTimeZoneId(parseTimeZoneId(requireString(arg))))(arg);\n}\n\nconst instantSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst Instant = /*@__PURE__*/ defineTemporalClass(InstantBranding, class {\n constructor(epochNanoseconds) {\n const epochNano = checkEpochNanoInBounds(toBigInt(epochNanoseconds));\n initInstant(this, createEpochNanoSlots(epochNano));\n }\n static from(arg) {\n return createInstant(toInstantSlots(arg));\n }\n static fromEpochMilliseconds(epochMilli) {\n return createInstant(epochMilliToInstant(epochMilli));\n }\n static fromEpochNanoseconds(epochNano) {\n return createInstant(epochNanoToInstant(epochNano));\n }\n static compare(a, b) {\n return compareZonedEpochSlots(toInstantSlots(a), toInstantSlots(b));\n }\n get epochMilliseconds() {\n return epochNanoToMilli(getInstantSlots(this).epochNanoseconds);\n }\n get epochNanoseconds() {\n return getInstantSlots(this).epochNanoseconds;\n }\n add(durationArg) {\n const slots = getInstantSlots(this);\n return createInstant(createEpochNanoSlots(moveEpochNano(slots.epochNanoseconds, toDurationSlots(durationArg))));\n }\n subtract(durationArg) {\n const slots = getInstantSlots(this);\n return createInstant(createEpochNanoSlots(moveEpochNano(slots.epochNanoseconds, negateDurationFields(toDurationSlots(durationArg)))));\n }\n until(otherArg, options = void 0) {\n return createDuration(diffInstants(0, getInstantSlots(this), toInstantSlots(otherArg), options));\n }\n since(otherArg, options = void 0) {\n return createDuration(diffInstants(1, getInstantSlots(this), toInstantSlots(otherArg), options));\n }\n round(options) {\n const slots = getInstantSlots(this);\n const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options, 5, 1);\n return createInstant(createEpochNanoSlots(roundBigNanoToDayOriginInc(slots.epochNanoseconds, computeBigNanoInc(smallestUnit, roundingInc), roundingMode)));\n }\n equals(otherArg) {\n return instantsEqual(getInstantSlots(this), toInstantSlots(otherArg));\n }\n toZonedDateTimeISO(timeZoneArg) {\n return createZonedDateTime(instantToZonedDateTime(getInstantSlots(this), queryTimeZone(refineTimeZoneArg(timeZoneArg))));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getInstantSlots(this);\n return new RawDateTimeFormat(locales, transformInstantOptions(options)).format(epochNanoToMilli(slots.epochNanoseconds));\n }\n toString(options = void 0) {\n return formatInstantIso(refineTimeZoneArg, getInstantSlots(this), options);\n }\n toJSON() {\n return formatInstantIso(refineTimeZoneArg, getInstantSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n});\n\nfunction createInstant(slots) {\n return initInstant(Object.create(Instant.prototype), slots);\n}\n\nfunction getInstantSlots(obj) {\n return getInstantSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getInstantSlotsIfPresent(obj) {\n return instantSlotsMap.get(obj);\n}\n\nfunction toInstantSlots(arg) {\n if (isObjectLike(arg)) {\n const ownSlots = getInstantSlotsIfPresent(arg);\n if (ownSlots) {\n return ownSlots;\n }\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);\n if (zonedDateTimeSlots) {\n return createEpochNanoSlots(zonedDateTimeSlots.epochNanoseconds);\n }\n }\n return parseInstant(arg);\n}\n\nconst {toTemporalInstant: toTemporalInstant} = {\n toTemporalInstant() {\n const epochMilli = Date.prototype.valueOf.call(this);\n return createInstant(createEpochNanoSlots(BigInt(requireNumberIsInteger(epochMilli)) * bigNanoInMilli));\n }\n};\n\nfunction initInstant(instance, slots) {\n return instantSlotsMap.set(instance, slots), attachDebugString(instance), instance;\n}\n\nconst plainMonthDaySlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainMonthDay = /*@__PURE__*/ defineTemporalClass(PlainMonthDayBranding, class {\n constructor(isoMonth, isoDay, calendar = void 0, referenceIsoYear) {\n const isoMonthInt = toIntegerWithTrunc(isoMonth);\n const isoDayInt = toIntegerWithTrunc(isoDay);\n const calendarImpl = resolveBasicCalendarArg(calendar);\n const isoYearInt = toIntegerWithTrunc(referenceIsoYear ?? isoEpochFirstLeapYear);\n const fields = checkIsoDateInBounds(validateIsoDateFields({\n year: isoYearInt,\n month: isoMonthInt,\n day: isoDayInt\n }));\n initPlainMonthDay(this, createDateSlots(fields, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createPlainMonthDay(toPlainMonthDaySlots(arg, options));\n }\n get calendarId() {\n return getCalendarSlotId(getPlainMonthDaySlots(this).calendar);\n }\n with(mod, options = void 0) {\n return createPlainMonthDay(withMonthDayFields(getPlainMonthDaySlots(this), validateBag(mod), options));\n }\n equals(otherArg) {\n return plainMonthDaysEqual(getPlainMonthDaySlots(this), toPlainMonthDaySlots(otherArg));\n }\n toPlainDate(bag) {\n const slots = getPlainMonthDaySlots(this);\n return createPlainDate(monthDayToDate(slots.calendar, this, bag));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainMonthDaySlots(this);\n const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformMonthDayOptions(options)));\n return checkResolvedCalendarCompatible(format, slots, 1), format.format(isoDateToEpochMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainMonthDayIso(getPlainMonthDaySlots(this), options);\n }\n toJSON() {\n return formatPlainMonthDayIso(getPlainMonthDaySlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainMonthDaySlots, monthDayFieldGetters);\n\nfunction createPlainMonthDay(slots) {\n return initPlainMonthDay(Object.create(PlainMonthDay.prototype), slots);\n}\n\nfunction getPlainMonthDaySlots(obj) {\n return getPlainMonthDaySlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainMonthDaySlotsIfPresent(obj) {\n return plainMonthDaySlotsMap.get(obj);\n}\n\nfunction toPlainMonthDaySlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainMonthDaySlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const calendarMaybe = extractCalendarFromBag(arg);\n return refinePlainMonthDayObjectLike(void 0 === calendarMaybe ? isoCalendarImpl : calendarMaybe, void 0 === calendarMaybe, arg, options);\n }\n const res = parsePlainMonthDay(arg, resolveBasicCalendarId);\n return refineOverflowOptions(options), res;\n}\n\nfunction initPlainMonthDay(instance, slots) {\n return plainMonthDaySlotsMap.set(instance, slots), attachDebugString(instance), \n instance;\n}\n\nconst plainYearMonthSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainYearMonth = /*@__PURE__*/ defineTemporalClass(PlainYearMonthBranding, class {\n constructor(isoYear, isoMonth, calendar = void 0, referenceIsoDay) {\n const isoYearInt = toIntegerWithTrunc(isoYear);\n const isoMonthInt = toIntegerWithTrunc(isoMonth);\n const calendarImpl = resolveBasicCalendarArg(calendar);\n const isoDayInt = toIntegerWithTrunc(referenceIsoDay ?? 1);\n const fields = checkIsoYearMonthInBounds(validateIsoDateFields({\n year: isoYearInt,\n month: isoMonthInt,\n day: isoDayInt\n }));\n initPlainYearMonth(this, createDateSlots(fields, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createPlainYearMonth(toPlainYearMonthSlots(arg, options));\n }\n static compare(arg0, arg1) {\n return compareIsoDateFields(toPlainYearMonthSlots(arg0), toPlainYearMonthSlots(arg1));\n }\n get calendarId() {\n return getCalendarSlotId(getPlainYearMonthSlots(this).calendar);\n }\n with(mod, options = void 0) {\n return createPlainYearMonth(withYearMonthFields(getPlainYearMonthSlots(this), validateBag(mod), options));\n }\n add(durationArg, options = void 0) {\n const slots = getPlainYearMonthSlots(this);\n return createPlainYearMonth(createDateSlots(moveYearMonth(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));\n }\n subtract(durationArg, options = void 0) {\n const slots = getPlainYearMonthSlots(this);\n return createPlainYearMonth(createDateSlots(moveYearMonth(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));\n }\n until(otherArg, options = void 0) {\n const slots = getPlainYearMonthSlots(this);\n const other = toPlainYearMonthSlots(otherArg);\n return createDuration(diffYearMonths(0, slots, other, options));\n }\n since(otherArg, options = void 0) {\n const slots = getPlainYearMonthSlots(this);\n const other = toPlainYearMonthSlots(otherArg);\n return createDuration(diffYearMonths(1, slots, other, options));\n }\n equals(otherArg) {\n return plainYearMonthsEqual(getPlainYearMonthSlots(this), toPlainYearMonthSlots(otherArg));\n }\n toPlainDate(bag) {\n const slots = getPlainYearMonthSlots(this);\n return createPlainDate(yearMonthToDate(slots.calendar, this, bag));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainYearMonthSlots(this);\n const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformYearMonthOptions(options)));\n return checkResolvedCalendarCompatible(format, slots, 1), format.format(isoDateToEpochMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainYearMonthIso(getPlainYearMonthSlots(this), options);\n }\n toJSON() {\n return formatPlainYearMonthIso(getPlainYearMonthSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainYearMonthSlots, yearMonthFieldGetters, yearMonthDerivedGetters);\n\nfunction createPlainYearMonth(slots) {\n return initPlainYearMonth(Object.create(PlainYearMonth.prototype), slots);\n}\n\nfunction getPlainYearMonthSlots(obj) {\n return getPlainYearMonthSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainYearMonthSlotsIfPresent(obj) {\n return plainYearMonthSlotsMap.get(obj);\n}\n\nfunction toPlainYearMonthSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainYearMonthSlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const calendar = getCalendarFromBag(arg);\n return refinePlainYearMonthObjectLike(calendar, arg, options);\n }\n const res = parsePlainYearMonth(arg, resolveBasicCalendarId);\n return refineOverflowOptions(options), res;\n}\n\nfunction initPlainYearMonth(instance, slots) {\n return plainYearMonthSlotsMap.set(instance, slots), attachDebugString(instance), \n instance;\n}\n\nfunction getTemporalBrandingAndSlots(obj) {\n if (!isObjectLike(obj)) {\n return;\n }\n let slots = getInstantSlotsIfPresent(obj);\n return slots ? [ InstantBranding, slots ] : (slots = getZonedDateTimeSlotsIfPresent(obj), \n slots ? [ ZonedDateTimeBranding, slots ] : (slots = getPlainDateTimeSlotsIfPresent(obj), \n slots ? [ PlainDateTimeBranding, slots ] : (slots = getPlainDateSlotsIfPresent(obj), \n slots ? [ PlainDateBranding, slots ] : (slots = getPlainTimeSlotsIfPresent(obj), \n slots ? [ PlainTimeBranding, slots ] : (slots = getPlainYearMonthSlotsIfPresent(obj), \n slots ? [ PlainYearMonthBranding, slots ] : (slots = getPlainMonthDaySlotsIfPresent(obj), \n slots ? [ PlainMonthDayBranding, slots ] : (slots = getDurationSlotsIfPresent(obj), \n slots ? [ DurationBranding, slots ] : void 0)))))));\n}\n\nfunction validateBag(bag) {\n return (getTemporalBrandingAndSlots(bag) || void 0 !== bag.calendar || void 0 !== bag.timeZone) && throwTypeError(invalidBag), \n bag;\n}\n\nconst plainTimeSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainTime = /*@__PURE__*/ defineTemporalClass(PlainTimeBranding, class {\n constructor(hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0) {\n const fields = validateTimeFields(mapProps(toIntegerWithTrunc, {\n hour: hour,\n minute: minute,\n second: second,\n millisecond: millisecond,\n microsecond: microsecond,\n nanosecond: nanosecond\n }));\n initPlainTime(this, createTimeSlots(fields));\n }\n static from(arg, options = void 0) {\n return createPlainTime(toPlainTimeSlots(arg, options));\n }\n static compare(arg0, arg1) {\n return compareTimeFields(toPlainTimeSlots(arg0), toPlainTimeSlots(arg1));\n }\n with(mod, options = void 0) {\n return createPlainTime(withTimeFields(getPlainTimeSlots(this), validateBag(mod), options));\n }\n add(durationArg) {\n const slots = getPlainTimeSlots(this);\n return createPlainTime(moveTime(slots, toDurationSlots(durationArg))[0]);\n }\n subtract(durationArg) {\n const slots = getPlainTimeSlots(this);\n return createPlainTime(moveTime(slots, negateDurationFields(toDurationSlots(durationArg)))[0]);\n }\n until(otherArg, options = void 0) {\n return createDuration(diffTimes(0, getPlainTimeSlots(this), toPlainTimeSlots(otherArg), options));\n }\n since(otherArg, options = void 0) {\n return createDuration(diffTimes(1, getPlainTimeSlots(this), toPlainTimeSlots(otherArg), options));\n }\n round(options) {\n const slots = getPlainTimeSlots(this);\n const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options, 5);\n return createPlainTime(roundTimeToInc(slots, computeNanoInc(smallestUnit, roundingInc), roundingMode)[0]);\n }\n equals(other) {\n return plainTimesEqual(getPlainTimeSlots(this), toPlainTimeSlots(other));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainTimeSlots(this);\n return new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformTimeOptions(options))).format(timeFieldsToMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainTimeIso(getPlainTimeSlots(this), options);\n }\n toJSON() {\n return formatPlainTimeIso(getPlainTimeSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainTimeSlots, timeGetters);\n\nfunction createPlainTime(slots) {\n return initPlainTime(Object.create(PlainTime.prototype), slots);\n}\n\nfunction getPlainTimeSlots(obj) {\n return getPlainTimeSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainTimeSlotsIfPresent(obj) {\n return plainTimeSlotsMap.get(obj);\n}\n\nfunction toPlainTimeSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainTimeSlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const dateTimeSlots = getPlainDateTimeSlotsIfPresent(arg);\n if (dateTimeSlots) {\n return refineOverflowOptions(options), createTimeSlots(dateTimeSlots);\n }\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);\n return zonedDateTimeSlots ? (refineOverflowOptions(options), zonedDateTimeToTime(zonedDateTimeSlots)) : refinePlainTimeObjectLike(arg, options);\n }\n const timeSlots = parsePlainTime(arg);\n return refineOverflowOptions(options), timeSlots;\n}\n\nfunction optionalToPlainTimeFields(timeArg) {\n return void 0 === timeArg ? void 0 : toPlainTimeSlots(timeArg);\n}\n\nfunction initPlainTime(instance, slots) {\n return plainTimeSlotsMap.set(instance, slots), attachDebugString(instance), instance;\n}\n\nconst plainDateTimeSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainDateTime = /*@__PURE__*/ defineTemporalClass(PlainDateTimeBranding, class {\n constructor(isoYear, isoMonth, isoDay, hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0, calendar = void 0) {\n const fields = checkIsoDateTimeInBounds(validateIsoDateTimeFields(mapProps(toIntegerWithTrunc, {\n year: isoYear,\n month: isoMonth,\n day: isoDay,\n hour: hour,\n minute: minute,\n second: second,\n millisecond: millisecond,\n microsecond: microsecond,\n nanosecond: nanosecond\n })));\n const calendarImpl = resolveBasicCalendarArg(calendar);\n initPlainDateTime(this, createDateTimeSlots(fields, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createPlainDateTime(toPlainDateTimeSlots(arg, options));\n }\n static compare(arg0, arg1) {\n const slots0 = toPlainDateTimeSlots(arg0);\n const slots1 = toPlainDateTimeSlots(arg1);\n return compareIsoDateTimeFields(slots0, slots1);\n }\n get calendarId() {\n return getCalendarSlotId(getPlainDateTimeSlots(this).calendar);\n }\n with(mod, options = void 0) {\n return createPlainDateTime(withDateTimeFields(getPlainDateTimeSlots(this), validateBag(mod), options));\n }\n withCalendar(calendarArg) {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDateTime(createDateTimeSlots(slots, refineCalendarArg(calendarArg)));\n }\n withPlainTime(plainTimeArg = void 0) {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDateTime(createDateTimeFromRefinedFields(slots, optionalToPlainTimeFields(plainTimeArg), slots.calendar));\n }\n add(durationArg, options = void 0) {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDateTime(createDateTimeSlots(moveDateTime(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));\n }\n subtract(durationArg, options = void 0) {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDateTime(createDateTimeSlots(moveDateTime(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));\n }\n until(otherArg, options = void 0) {\n const slots = getPlainDateTimeSlots(this);\n const other = toPlainDateTimeSlots(otherArg);\n return createDuration(diffDateTimes(0, slots, other, options));\n }\n since(otherArg, options = void 0) {\n const slots = getPlainDateTimeSlots(this);\n const other = toPlainDateTimeSlots(otherArg);\n return createDuration(diffDateTimes(1, slots, other, options));\n }\n round(options) {\n const slots = getPlainDateTimeSlots(this);\n const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options);\n return createPlainDateTime(createDateTimeSlots(roundDateTimeToInc(slots, computeNanoInc(smallestUnit, roundingInc), roundingMode), slots.calendar));\n }\n equals(otherArg) {\n return plainDateTimesEqual(getPlainDateTimeSlots(this), toPlainDateTimeSlots(otherArg));\n }\n toZonedDateTime(timeZoneArg, options = void 0) {\n return createZonedDateTime(dateTimeToZonedDateTime(getPlainDateTimeSlots(this), queryTimeZone(refineTimeZoneArg(timeZoneArg)), refineEpochDisambigOptions(options)));\n }\n toPlainDate() {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDate(createDateSlots(slots, slots.calendar));\n }\n toPlainTime() {\n return createPlainTime(createTimeSlots(getPlainDateTimeSlots(this)));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainDateTimeSlots(this);\n const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformDateTimeOptions(options)));\n return checkResolvedCalendarCompatible(format, slots), format.format(isoDateTimeToEpochMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainDateTimeIso(getPlainDateTimeSlots(this), options);\n }\n toJSON() {\n return formatPlainDateTimeIso(getPlainDateTimeSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainDateTimeSlots, dateFieldGetters, dateDerivedGetters, timeGetters);\n\nfunction createPlainDateTime(slots) {\n return initPlainDateTime(Object.create(PlainDateTime.prototype), slots);\n}\n\nfunction getPlainDateTimeSlots(obj) {\n return getPlainDateTimeSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainDateTimeSlotsIfPresent(obj) {\n return plainDateTimeSlotsMap.get(obj);\n}\n\nfunction toPlainDateTimeSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainDateTimeSlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const dateSlots = getPlainDateSlotsIfPresent(arg);\n if (dateSlots) {\n return refineOverflowOptions(options), createDateTimeSlots(combineDateAndTime(dateSlots, timeFieldDefaults), dateSlots.calendar);\n }\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);\n if (zonedDateTimeSlots) {\n return refineOverflowOptions(options), zonedDateTimeToDateTime(zonedDateTimeSlots);\n }\n const calendar = getCalendarFromBag(arg);\n return refinePlainDateTimeObjectLike(calendar, arg, options);\n }\n const res = parsePlainDateTime(arg, resolveBasicCalendarId);\n return refineOverflowOptions(options), res;\n}\n\nfunction initPlainDateTime(instance, slots) {\n return plainDateTimeSlotsMap.set(instance, slots), attachDebugString(instance), \n instance;\n}\n\nconst plainDateSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainDate = /*@__PURE__*/ defineTemporalClass(PlainDateBranding, class {\n constructor(isoYear, isoMonth, isoDay, calendar = void 0) {\n const fields = checkIsoDateInBounds(validateIsoDateFields(mapProps(toIntegerWithTrunc, {\n year: isoYear,\n month: isoMonth,\n day: isoDay\n })));\n const calendarImpl = resolveBasicCalendarArg(calendar);\n initPlainDate(this, createDateSlots(fields, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createPlainDate(toPlainDateSlots(arg, options));\n }\n static compare(arg0, arg1) {\n return compareIsoDateFields(toPlainDateSlots(arg0), toPlainDateSlots(arg1));\n }\n get calendarId() {\n return getCalendarSlotId(getPlainDateSlots(this).calendar);\n }\n with(mod, options = void 0) {\n return createPlainDate(withDateFields(getPlainDateSlots(this), validateBag(mod), options));\n }\n withCalendar(calendarArg) {\n const slots = getPlainDateSlots(this);\n return createPlainDate(createDateSlots(slots, refineCalendarArg(calendarArg)));\n }\n add(durationArg, options = void 0) {\n const slots = getPlainDateSlots(this);\n return createPlainDate(createDateSlots(moveDate(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));\n }\n subtract(durationArg, options = void 0) {\n const slots = getPlainDateSlots(this);\n return createPlainDate(createDateSlots(moveDate(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));\n }\n until(otherArg, options = void 0) {\n const slots = getPlainDateSlots(this);\n const other = toPlainDateSlots(otherArg);\n return createDuration(diffDates(0, slots, other, options));\n }\n since(otherArg, options = void 0) {\n const slots = getPlainDateSlots(this);\n const other = toPlainDateSlots(otherArg);\n return createDuration(diffDates(1, slots, other, options));\n }\n equals(otherArg) {\n return plainDatesEqual(getPlainDateSlots(this), toPlainDateSlots(otherArg));\n }\n toZonedDateTime(options) {\n const optionsObj = isObjectLike(options) ? {\n timeZone: options.timeZone,\n plainTime: options.plainTime\n } : {\n timeZone: options\n };\n const slots = getPlainDateSlots(this);\n const timeZoneId = refineTimeZoneArg(optionsObj.timeZone);\n const plainTimeArg = optionsObj.plainTime;\n const timeFields = void 0 !== plainTimeArg ? toPlainTimeSlots(plainTimeArg) : void 0;\n return createZonedDateTime(dateToZonedDateTime(slots, queryTimeZone(timeZoneId), timeFields));\n }\n toPlainDateTime(plainTimeArg = void 0) {\n const slots = getPlainDateSlots(this);\n return createPlainDateTime(createDateTimeFromRefinedFields(slots, optionalToPlainTimeFields(plainTimeArg), slots.calendar));\n }\n toPlainYearMonth() {\n const slots = getPlainDateSlots(this);\n return createPlainYearMonth(fieldsToYearMonth(slots.calendar, this));\n }\n toPlainMonthDay() {\n const slots = getPlainDateSlots(this);\n return createPlainMonthDay(fieldsToMonthDay(slots.calendar, this));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainDateSlots(this);\n const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformDateOptions(options)));\n return checkResolvedCalendarCompatible(format, slots), format.format(isoDateToEpochMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainDateIso(getPlainDateSlots(this), options);\n }\n toJSON() {\n return formatPlainDateIso(getPlainDateSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainDateSlots, dateFieldGetters, dateDerivedGetters);\n\nfunction createPlainDate(slots) {\n return initPlainDate(Object.create(PlainDate.prototype), slots);\n}\n\nfunction getPlainDateSlots(obj) {\n return getPlainDateSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainDateSlotsIfPresent(obj) {\n return plainDateSlotsMap.get(obj);\n}\n\nfunction toPlainDateSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainDateSlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const dateTimeSlots = getPlainDateTimeSlotsIfPresent(arg);\n if (dateTimeSlots) {\n return refineOverflowOptions(options), createDateSlots(dateTimeSlots, dateTimeSlots.calendar);\n }\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);\n if (zonedDateTimeSlots) {\n return refineOverflowOptions(options), zonedDateTimeToDate(zonedDateTimeSlots);\n }\n const calendar = getCalendarFromBag(arg);\n return refinePlainDateObjectLike(calendar, arg, options);\n }\n const res = parsePlainDate(arg, resolveBasicCalendarId);\n return refineOverflowOptions(options), res;\n}\n\nfunction initPlainDate(instance, slots) {\n return plainDateSlotsMap.set(instance, slots), attachDebugString(instance), instance;\n}\n\nfunction getCalendarFromBag(bag) {\n const calendar = extractCalendarFromBag(bag);\n return void 0 === calendar ? isoCalendarImpl : calendar;\n}\n\nfunction extractCalendarFromBag(bag) {\n const {calendar: calendarArg} = bag;\n if (void 0 !== calendarArg) {\n return refineCalendarArg(calendarArg);\n }\n}\n\nfunction refineCalendarArg(arg) {\n if (isObjectLike(arg)) {\n const slots = getPlainDateSlotsIfPresent(arg) || getPlainDateTimeSlotsIfPresent(arg) || getZonedDateTimeSlotsIfPresent(arg) || getPlainMonthDaySlotsIfPresent(arg) || getPlainYearMonthSlotsIfPresent(arg);\n return slots || throwTypeError(invalidCalendar(arg)), slots.calendar;\n }\n return (arg => resolveBasicCalendarId(parseCalendarId(requireString(arg))))(arg);\n}\n\nconst durationSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst Duration = /*@__PURE__*/ defineTemporalClass(DurationBranding, class {\n constructor(years = 0, months = 0, weeks = 0, days = 0, hours = 0, minutes = 0, seconds = 0, milliseconds = 0, microseconds = 0, nanoseconds = 0) {\n const fields = validateDurationFields(mapProps(toStrictInteger, {\n years: years,\n months: months,\n weeks: weeks,\n days: days,\n hours: hours,\n minutes: minutes,\n seconds: seconds,\n milliseconds: milliseconds,\n microseconds: microseconds,\n nanoseconds: nanoseconds\n }));\n initDuration(this, createDurationSlots(fields));\n }\n static from(arg) {\n return createDuration(toDurationSlots(arg));\n }\n static compare(durationArg0, durationArg1, options = void 0) {\n return compareDurations(refinePublicRelativeTo, toDurationSlots(durationArg0), toDurationSlots(durationArg1), options);\n }\n get sign() {\n return getDurationSlots(this).sign;\n }\n get blank() {\n return !getDurationSlots(this).sign;\n }\n with(mod) {\n return createDuration(mergeDurationFields(getDurationSlots(this), mod));\n }\n negated() {\n return createDuration(negateDuration(getDurationSlots(this)));\n }\n abs() {\n return createDuration(absDuration(getDurationSlots(this)));\n }\n add(otherArg) {\n return createDuration(addDurationsWithoutRelativeTo(0, getDurationSlots(this), toDurationSlots(otherArg)));\n }\n subtract(otherArg) {\n return createDuration(addDurationsWithoutRelativeTo(1, getDurationSlots(this), toDurationSlots(otherArg)));\n }\n round(roundTo) {\n return createDuration(roundDuration(refinePublicRelativeTo, getDurationSlots(this), roundTo));\n }\n total(totalOf) {\n return totalDuration(refinePublicRelativeTo, getDurationSlots(this), totalOf);\n }\n toLocaleString(locales = void 0, options) {\n const slots = getDurationSlots(this);\n return Intl.DurationFormat ? new Intl.DurationFormat(locales, options).format(slots) : formatDurationIso(slots, options);\n }\n toString(options = void 0) {\n return formatDurationIso(getDurationSlots(this), options);\n }\n toJSON() {\n return formatDurationIso(getDurationSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getDurationSlots, durationGetters);\n\nfunction createDuration(slots) {\n return initDuration(Object.create(Duration.prototype), slots);\n}\n\nfunction getDurationSlots(obj) {\n return getDurationSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getDurationSlotsIfPresent(obj) {\n return durationSlotsMap.get(obj);\n}\n\nfunction toDurationSlots(arg) {\n if (isObjectLike(arg)) {\n return getDurationSlotsIfPresent(arg) || refineDurationObjectLike(arg);\n }\n return parseDuration(arg);\n}\n\nfunction refinePublicRelativeTo(relativeTo) {\n if (void 0 !== relativeTo) {\n if (isObjectLike(relativeTo)) {\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(relativeTo);\n if (zonedDateTimeSlots) {\n return zonedDateTimeSlots;\n }\n const dateSlots = getPlainDateSlotsIfPresent(relativeTo);\n if (dateSlots) {\n return dateSlots;\n }\n const dateTimeSlots = getPlainDateTimeSlotsIfPresent(relativeTo);\n if (dateTimeSlots) {\n return createDateSlots(dateTimeSlots, dateTimeSlots.calendar);\n }\n const calendar = getCalendarFromBag(relativeTo);\n return refineMaybeZonedDateTimeObjectLike(refineTimeZoneArg, calendar, relativeTo);\n }\n return parseRelativeToSlots(relativeTo, resolveBasicCalendarId);\n }\n}\n\nfunction initDuration(instance, slots) {\n return durationSlotsMap.set(instance, slots), attachDebugString(instance), instance;\n}\n\nconst Now = /*@__PURE__*/ Object.defineProperties({}, {\n ...createStringTagDescriptors(\"Temporal.Now\"),\n ...createPropDescriptors({\n timeZoneId() {\n return getCurrentTimeZoneId();\n },\n instant() {\n return createInstant(createEpochNanoSlots(getCurrentEpochNano()));\n },\n zonedDateTimeISO(timeZoneArg = getCurrentTimeZoneId()) {\n const timeZone = queryTimeZone(refineTimeZoneArg(timeZoneArg));\n return createZonedDateTime(createZonedEpochNanoSlots(getCurrentEpochNano(), timeZone));\n },\n plainDateTimeISO(timeZoneArg = getCurrentTimeZoneId()) {\n const isoDateTime = getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)));\n return createPlainDateTime(createDateTimeSlots(isoDateTime));\n },\n plainDateISO(timeZoneArg = getCurrentTimeZoneId()) {\n const isoDateTime = getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)));\n return createPlainDate(createDateSlots(isoDateTime));\n },\n plainTimeISO(timeZoneArg = getCurrentTimeZoneId()) {\n const isoDateTime = getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)));\n return createPlainTime(createTimeSlots(isoDateTime));\n }\n })\n});\n\nconst Temporal = /*@__PURE__*/ Object.defineProperties({}, {\n ...createStringTagDescriptors(\"Temporal\"),\n ...createPropDescriptors({\n PlainYearMonth: PlainYearMonth,\n PlainMonthDay: PlainMonthDay,\n PlainDate: PlainDate,\n PlainTime: PlainTime,\n PlainDateTime: PlainDateTime,\n ZonedDateTime: ZonedDateTime,\n Instant: Instant,\n Duration: Duration,\n Now: Now\n })\n});\n\nconst DateTimeFormat = /*@__PURE__*/ createDateTimeFormatClass(getTemporalBrandingAndSlots);\n\nconst IntlExtended = /*@__PURE__*/ createIntlExtended(DateTimeFormat);\n\nexport { DateTimeFormat, IntlExtended, Temporal, toTemporalInstant };\n","import { NativeTemporal } from \"./chunks/root.js\";\n\nimport { Temporal as Temporal$1, IntlExtended, toTemporalInstant as toTemporalInstant$1 } from \"./chunks/classApi-basic.js\";\n\nconst Temporal = NativeTemporal || Temporal$1;\n\nconst IntlExport = NativeTemporal ? Intl : IntlExtended;\n\nconst toTemporalInstant = NativeTemporal ? Date.prototype.toTemporalInstant : toTemporalInstant$1;\n\nexport { IntlExport as Intl, Temporal, toTemporalInstant };\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7],"mappings":";;AAAA,IAAM4B,IAAiB,WAAW,UCCrB,oBAAoB,GAAY,MAAQ,gBAAgBC,EAAW,IAAIC,KACvE,kBAAkB,GAAY,MAAQ,cAAcD,EAAW,IAAIC,KACnE,2BAA2B,MAAe,4BAA4BD,KACtEE,IAAgB,kBAChB,oBAAoB,GAAY,GAAK,GAAK,MAAQ/B,EAAc6B,GAAYI,CAAG,IAAI,qBAAqBC,EAAI,GAAGC,KAE/GnC,IAAAA,mBAAiB,GAAW,MAAQ,WAAWoC,EAAU,IAAIH,KAAA,eAAA,GCN7DhC,IAAc,KACdC,IAAc,KACdC,IAAY,KACZC,IAAe,MACfC,IAAa;AAC1B,SAAgB,iBAAiB,GAAS;CAItC,OAHIqC,MAAY,KAAA,IACL,OAAO,OAAO,IAAI,IAEtB,kBAAkBA,CAAO;AACpC;AACA,SAAgB,eAAe,GAAK,IAAa,UAAU;CACvD,IAAI,OAAOC,KAAQ,UACf,MAAU,UAAUrC,wBAAsCuB,CAAU,CAAC;CAGzE,IADA,IAAM,OAAOc,CAAG,GACZ,CAAC,OAAO,SAASA,CAAG,GACpB,MAAU,WAAWpC,eAA6BsB,GAAYc,CAAG,CAAC;CAEtE,OAAOA;AACX;AACA,SAAgB,mBAAmB,GAAK,GAAY;CAChD,OAAO,KAAK,MAAM,eAAeA,GAAKd,CAAU,CAAC,KAAK;AAC1D;AACA,SAAgB,gCAAgC,GAAK,GAAY;CAC7D,OAAO,wBAAwB,mBAAmBc,GAAKd,CAAU,GAAGA,CAAU;AAClF;AAIA,SAAgB,wBAAwB,GAAK,IAAa,UAAU;CAChE,IAAIC,KAAO,GACP,MAAU,WAAWtB,iBAA+BqB,GAAYC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CAAC,CACvC,CAAW,CAAC;EAC7D;EACA,aAAa,IAAc,qBAAqB,GAAG;GAEjD,OAAO,gBAAgB,gBADH,sBAAsB,cAAc,kBAAkBA,CAAW,CAAC,CAC/C,CAAW,CAAC;EACrD;EACA,aAAa,IAAc,qBAAqB,GAAG;GAEjD,OAAO,gBAAgB,gBADH,sBAAsB,cAAc,kBAAkBA,CAAW,CAAC,CAC/C,CAAW,CAAC;EACrD;CACF,CAAC;AACH,CAAC,GAEKzd,KAAyB,qBAAO,iBAAiB,CAAC,GAAG;CACzD,GAAG,2BAA2B,UAAU;CACxC,GAAG,sBAAsB;EACP;EACD;EACJ;EACA;EACI;EACA;EACN;EACC;EACL;CACP,CAAC;AACH,CAAC,GC5+BK0tB,KAAWxtB,KAAkButB;AAITvtB,KAAiB,KAAK,UAAU"}
|
|
1
|
+
{"version":3,"file":"TemporalPolyfill-Bv_c_xa0.js","names":["invalidEntity","nanoInMicro","nanoInMilli","nanoInSec","nanoInMinute","nanoInHour","errorMessages.forbiddenBigIntToNumber","errorMessages.expectedFinite","errorMessages.expectedPositive","constrainToRange","isObjectLike","errorMessages.invalidObject","baseErrorMessages.invalidEntity","forbiddenValueOf","TemporalUtils.constrainToRange","TemporalUtils.isObjectLike","baseErrorMessages.numberOutOfRange","TemporalUtils.nanoInMicro","TemporalUtils.nanoInMilli","TemporalUtils.nanoInSec","TemporalUtils.nanoInMinute","TemporalUtils.nanoInHour","dateFieldGetters","toTemporalInstant","monthDayFieldGetters","yearMonthFieldGetters","Temporal","__name","NativeTemporal","entityName","num","invalidObject","invalidEntity$1","val","min","max","fieldName","nanoInMicro$1","nanoInMilli$1","nanoInSec$1","nanoInMinute$1","nanoInHour$1","options","arg","res","optionName","optionVal","smallestUnitStr","overflowMap","epochDisambigMap","offsetDisambigMap","calendarDisplayMap","timeZoneDisplayMap","offsetDisplayMap","roundingModeMap","roundingModeFuncs","directionMap","roundingInc","subsecDigits","invalidEntity","unitStr","ensureDefined","minUnit","unit","unitNameMap","durationFieldNamesAsc","enumArg","defaultChoice","enumStr","enumNum","enumNameMap","coerceSmallestUnit","coerceLargestUnit","coerceTotalUnit","coerceOverflow","coerceEpochDisambig","coerceOffsetDisambig","coerceCalendarDisplay","coerceTimeZoneDisplay","coerceOffsetDisplay","coerceRoundingMode","coerceDirection","upUnitNano","solarMode","nanoInUtcDay","unitNanoMap","smallestUnit","unitNano","allowManyLargeUnits","maxUnit","unitNamesAsc","largestUnit","roundingMode","defaultRoundingMode","defaultLargestUnit","roundingModeInvert","relativeToInternals","refineRelativeTo","totalUnit","epochDisambig","offsetDisambig","defaultOffsetDisambig","maxSmallestUnit","calendarDisplay","offsetDisplay","validFields","choiceMap","forbiddenValueOf$1","invalidCallingContext","allowEra","invalidLeapMonth","calendarId","remedy","s","substring","constrainToRange","isObjectLike","message","propName","propVal","props","overflow","clamped","choices","map","MapClass","otherArgs","key","generator","readonly","propVals","transformer","propNames","getters","slots","dest","props0","props1","copy","i","clearUntilI","boundArgs","dynamicArgs","f","strss","meat","fracStr","digits","padNumber2","a","b","whole","denom","quotient","divisor","sign","halfCompare","isoCalendarId","gregoryEraOrigins","\"bce\"","\"ce\"","normalized","era","calendar","monthCodeRegExp","m","monthCode","monthCodeNumber","isLeapMonth","leapMonth","nanoInMicro","nanoInMilli","nanoInSec","nanoInMinute","nanoInHour","bigNanoInMicro","bigNanoInMilli","bigNanoInSec","bigNanoInMinute","bigNanoInHour","bigNanoInUtcDay","days","bigNano","timeNano","divisorNano","timeFieldNamesAsc","timeGetters","yearFieldNamesAsc","dayFieldNamesAsc","calendarDateFieldNamesAsc","offsetFieldNames","timeZoneFieldNames","eraYearFieldNames","allYearFieldNames","monthFieldNames","monthDayFieldNames","timeFieldNamesAlpha","yearFieldNamesWithEraAlpha","yearMonthFieldNamesAlpha","yearMonthFieldNamesWithEraAlpha","yearMonthCodeFieldNamesAlpha","yearMonthCodeFieldNamesWithEraAlpha","monthCodeDayFieldNamesAlpha","dateFieldNamesAlpha","dateFieldNamesWithEraAlpha","dateTimeFieldNamesAlpha","dateTimeFieldNamesWithEraAlpha","dateTimeAndOffsetFieldNamesAlpha","dateTimeAndOffsetFieldNamesWithEraAlpha","dateTimeAndZoneFieldNamesAlpha","dateTimeAndZoneFieldNamesWithEraAlpha","yearMonthCodeDayFieldNamesAlpha","yearMonthCodeDayFieldNamesWithEraAlpha","timeFieldDefaults","timeFields","maxValues","constrainedFields","dayDelta","nano","timeMilli","nanoAfterMilli","microsecond","nanosecond","hour","milliAfterHour","minute","milliAfterMinute","second","millisecond","epochSec","epochNano","isoDateTime","isoDate","monthIndex","isoMonth","isoYear","isoDay","epochDays","nanoAfterDay","legacyDate","month","year","monthDelta","year1","year0","month1","month0","yearOfWeek","weekOfYear","weeksInYear","y0DayOfWeek","isoInternals","day","yearStartIsoDate","unitName","durationGetters","durationFieldNamesAlpha","durationTimeFieldNamesAsc","durationDateFieldNamesAsc","durationCalendarFieldNamesAsc","durationFieldDefaults","durationTimeFieldDefaults","clearDurationFields","requireString","typeName","exoticToPrimitive","primitive","bi","time","epochNanoMax","epochNanoMin","plainDateEpochNanoMin","isoYearMonthIndexMin","isoYearMonthIndex","allowPlainDateLowerEdge","offsetNano","unitWindow","wholeValue","moveValueToEpochNano","endEpochNano","startValue","valueDelta","epochNano0","epochNanoProgress","epochNano1","endValue","fraction","denomBig","numeratorBig","absNumerator","absDenom","fracSign","durationFields","timeZone","zonedEpochSlotsToIso","roundedDurationFields","roundedEpochNano","grewBigUnit","isZoned","relativeOps","currentUnit","baseDurationFields","thresholdCompare","nanoInc","roundedTimeFields","roundedIsoDateTime","smallestUnitFieldName","truncedVal","nudgeWindow","value","roundedVal","roundedTimeNano","dateDurationFields","dayWindow","dayEpochNano0","dayEpochNano1","beyondDayNano","durationTimeFields","roundedBigNano","nanoDiff","expandedBigUnit","roundedDayTimeFields","isoDateTime0","isoDateTime1","bigNanoInc","dayOriginNano","remainder","roundedTail","quotientTail","offsetNanoseconds","epochNanoseconds","hasZ","possibleEpochNanos","matchingEpochNano","zonedEpochNano","possibleEpochNano","possibleOffsetNano","fuzzy","epochFuzzy","disambig","gapNano","startOffsetNano","shiftedIsoDateTime","zonedEpochNanoDayBefore","durationSlots","timeOnlyNano","movedEpochNano","movedTimeFields","fields","movedIsoDate","years","months","weeks","yearMonthParts","leapMonthMeta","targetLeapMonth","durDays","durationBigNano","durTimeNano","newTimeFields","overflowDays","deltaNano","startZoned","endZoned","startIsoDateTime","endIsoDateTime","origin","duration","firstOfMonth0","startIsoDate","firstOfMonth1","endIsoDate","smallestPrecision","timeDiffNano","plainTimeSlots1","plainTimeSlots0","startEpochNano","remainderNano","start","end","diffEndDate","dayCorrection","maxDayCorrection","midIsoDate","midEpochNano","asWeeks","yearMonthDayStart","yearMonthDayEnd","day0","day1","anchorIsoDate","yearDiff","monthDiff","dayDiff","daysInMonth1","dayCorrect","origDaysInMonth1","monthCodeNumber0","isLeapMonth0","monthCodeNumber1","isLeapMonth1","monthCorrect","month0Projected","isoDate0","isoDate1","relativeToSlots","endSlots","dateDuration","fieldNames","maxDurationSeconds","otherSlots","combined","doSubtract","durationLargestUnit","balancedDuration","fieldSign","calendarUnit","n","largestUnitVal","dayTimeFields","zonedEpochSlots0","zonedEpochSlots1","durationSlots0","durationSlots1","timeFields0","timeFields1","instantSlots0","instantSlots1","zonedDateTimeSlots0","zonedDateTimeSlots1","plainDateTimeSlots0","plainDateTimeSlots1","plainDateSlots0","plainDateSlots1","plainYearMonthSlots0","plainYearMonthSlots1","plainMonthDaySlots0","plainMonthDaySlots1","fieldNamesWithEra","exoticCalendar","eraOrigins","eraYear","normalizedEra","eraOrigin","yearByEra","monthByCode","wantsLeapMonth","monthCodeParts","offsetRegExp","parts","fractionIndex","main","part","firstSubMinutePart","onlyHourMinute","dateFieldRefiners","timeFieldRefiners","durationFieldRefiners","dateTimeFieldRefiners","zonedDateTimeFieldRefiners","offsetString","requiredFieldNames","anyMatching","validFieldNames","fieldVal","bag","refiner","fieldRefiners","disallowEmpty","allowMissingDay","isIso","yearMaybe","referenceYear","constrainedDay","isLeapMonthArg","requestedDay","finalYear","finalMonth","RawDateTimeFormat","intlFormat","epochMilli","hash","timeZonePeriodDaysByName","\"El_Aaiun\"","\"Tucuman\"","\"Tirane\"","\"Riga\"","\"Simferopol\"","\"Vienna\"","\"Tunis\"","\"Boa_Vista\"","\"Fortaleza\"","\"Maceio\"","\"Noronha\"","\"Recife\"","\"Gaza\"","\"Hebron\"","\"DeNoronha\"","minPossibleTransitionSec","timeZoneArg","providedTimeZone","refineTimeZoneString","instantSlots","displayOptions","timeZoneId","timeZoneDisplay","plainDateSlots","plainYearMonthSlots","plainMonthDaySlots","formatSimple","abs","wholeSec","subsecNano","subsecNanoString","forceSec","\"Y\"","\"M\"","\"W\"","\"D\"","hours","minutes","\"H\"","\"S\"","fragName","fragObj","fragVal","force","nanoRemainder0","nanoRemainder1","nanoRemainder2","isCritical","trailingZerosRE","totalNano","icuRegExp","badCharactersRegExp","rawId","upperRawId","offsetRecord","queryNamedTimeZoneRecord","partI","normId","format","queryTimeZoneIntlFormat","upperNormId","record","rawTimeZoneId","queryTimeZoneRecord","normTimeZoneId","id","compareKey","getSample","computeOffsetSec","getSplit","periodSec","periodDays","startEpochSec","endEpochSec","clampedStartEpochSec","clampedEndEpochSec","startOffsetSec","endOffsetSec","offsetSec","splitDurSec","forEpochSec","split","middleEpochSec","wideOffsetSec0","zonedEpochSec","wideOffsetSec1","wideUtcEpochSec0","wideUtcEpochSec1","narrowOffsetSec0","direction","lookaheadEpochSec","inc","searchLimit","transitionEpochSec","intlParts","relatedYear","resEpochSec","requireFields","organized","resolveCalendar","dateSlots","origYear","origMonth","yearMonthFields","dateTime","altParsed","durationRegExp","hasAny","hasAnyFrac","leftoverNano","leftoverUnits","wholeUnits","timeUnit","wholeStr","timeParts","parsed","isoDateProjector","offset","separatorIndex","dateTimeRegExpStr","yearMonthRegExp","monthDayRegExp","dateTimeRegExp","timeRegExp","annotationRegExp","zOrOffset","hourIndex","yearSign","calendarIsCritical","calendarIds","criticalStr","name","mainStr","merged","baseFields","additionalFields","nonMatchingPropNames","allPropNames","additional","deletablePropName","deletablePropNames","zonedSlots","zonedDateTimeSlots","origFields","partialFields","modFields","mergedCalendarFields","plainDateTimeSlots","calendarFields","mergedAllFields","initialFields","maxDurationUnit","input","extraFieldNames","refinedFields","mergedFieldNames","mergedFields","inputFields","extraFields","resolvedCalendarId","strictCalendarCheck","shapeFieldNameSet","shapeFieldNames","invalidShapeFieldNameSet","invalidShapeFieldNames","ignoredFieldNameSet","ignoredFieldNames","dateStyle","timeStyle","granularShapeFields","modifierFields","otherFields","hasInvalidGranularShapeFields","hasInvalidStyleFields","hasDateStyle","hasTimeStyle","hasAnyStyle","hasGranularShapeFields","hasInvalids","hasShapeFields","hasModifierFields","allowPartialOverlap","transformedOptions","defaultShapeFields","dateStyleReplacementFields","dateDefaultShapeFields","timeDefaultShapeFields","dateTimeDefaultShapeFields","dateShapeFieldNames","timeShapeFieldNames","dateTimeShapeFieldNames","yearMonthIgnoredFieldNames","monthDayIgnoredFieldNames","transformInstantOptions","transformZonedOptions","transformDateTimeOptions","transformDateOptions","transformTimeOptions","transformYearMonthOptions","transformMonthDayOptions","plainTimeFields","PlainYearMonthBranding","PlainMonthDayBranding","PlainDateBranding","PlainDateTimeBranding","PlainTimeBranding","ZonedDateTimeBranding","InstantBranding","DurationBranding","getterMaps","cls","branding","getter","getSlots","attachDebugString","instance","yearMonthFieldGetters$1","dateFieldGetters$1","monthDayFieldGetters$1","yearMonthDerivedGetters","dateDerivedGetters","invert","slots0","slots1","lowerRawCalendarId","rawCalendarId","zonedDateTimeSlotsMap","ZonedDateTime","calendarImpl","arg0","arg1","mod","calendarArg","plainTimeArg","durationArg","otherArg","locales","newEpochNano","obj","ownSlots","instantSlotsMap","Instant","toTemporalInstant$1","plainMonthDaySlotsMap","PlainMonthDay","isoMonthInt","isoDayInt","referenceIsoYear","calendarMaybe","plainYearMonthSlotsMap","PlainYearMonth","isoYearInt","referenceIsoDay","plainTimeSlotsMap","PlainTime","other","dateTimeSlots","timeSlots","timeArg","plainDateTimeSlotsMap","PlainDateTime","plainDateSlotsMap","PlainDate","optionsObj","durationSlotsMap","Duration","durationArg0","durationArg1","roundTo","totalOf","relativeTo","Now","Temporal$1","Temporal"],"sources":["../../node_modules/temporal-polyfill/chunks/root.js","../../node_modules/temporal-utils/dist/errorMessages.js","../../node_modules/temporal-utils/dist/utils.js","../../node_modules/temporal-polyfill/chunks/options.js","../../node_modules/temporal-polyfill/chunks/internal.js","../../node_modules/temporal-polyfill/chunks/apiHelpers.js","../../node_modules/temporal-polyfill/chunks/classApi-basic.js","../../node_modules/temporal-polyfill/index.js"],"sourcesContent":["const NativeTemporal = globalThis.Temporal;\n\nexport { NativeTemporal };\n","// Low-Level\nexport const expectedPositive = (entityName, num) => `Non-positive ${entityName}: ${num}`;\nexport const expectedFinite = (entityName, num) => `Non-finite ${entityName}: ${num}`;\nexport const forbiddenBigIntToNumber = (entityName) => `Cannot convert bigint to ${entityName}`;\nexport const invalidObject = 'Invalid object';\nexport const numberOutOfRange = (entityName, val, min, max) => invalidEntity(entityName, val) + `; must be between ${min}-${max}`;\n// Entity/Fields/Bags\nexport const invalidEntity = (fieldName, val) => `Invalid ${fieldName}: ${val}`;\n// Calendar\nexport const unsupportedWeekNumbers = 'Calendar week operations forbidden';\n// Rounding\nexport const nonOneRoundingIncrement = 'Non-1 roundingIncrement not allowed';\n// Options\nexport const invalidOverflowOption = 'Invalid overflow option';\n","import * as errorMessages from './errorMessages.js';\nexport const nanoInMicro = 1_000;\nexport const nanoInMilli = 1_000_000;\nexport const nanoInSec = 1_000_000_000;\nexport const nanoInMinute = 60_000_000_000;\nexport const nanoInHour = 3_600_000_000_000;\nexport function normalizeOptions(options) {\n if (options === undefined) {\n return Object.create(null);\n }\n return requireObjectLike(options);\n}\nexport function toFiniteNumber(arg, entityName = 'number') {\n if (typeof arg === 'bigint') {\n throw new TypeError(errorMessages.forbiddenBigIntToNumber(entityName));\n }\n arg = Number(arg);\n if (!Number.isFinite(arg)) {\n throw new RangeError(errorMessages.expectedFinite(entityName, arg));\n }\n return arg;\n}\nexport function toIntegerWithTrunc(arg, entityName) {\n return Math.trunc(toFiniteNumber(arg, entityName)) || 0; // ensure no -0\n}\nexport function toPositiveIntegerWithTruncation(arg, entityName) {\n return requireNumberIsPositive(toIntegerWithTrunc(arg, entityName), entityName);\n}\n/*\nAlready known to be number.\n*/\nexport function requireNumberIsPositive(num, entityName = 'number') {\n if (num <= 0) {\n throw new RangeError(errorMessages.expectedPositive(entityName, num));\n }\n return num;\n}\n/*\nmin/max are inclusive\n*/\nexport function constrainToRange(num, min, max) {\n return Math.min(Math.max(num, min), max);\n}\nexport function isObjectLike(arg) {\n return arg !== null && (typeof arg === 'object' || typeof arg === 'function');\n}\nexport function requireObjectLike(arg) {\n if (!isObjectLike(arg)) {\n throw new TypeError(errorMessages.invalidObject);\n }\n return arg;\n}\n// Options-bag-parsing-adjacent\n// ----------------------------\n/*\nAlready known to be number\n*/\nexport function normalizeNumberInRange(num, min, max, // inclusive\noptions) {\n const clamped = constrainToRange(num, min, max);\n if (normalizeOverflow(options) === 'reject' && num !== clamped) {\n throw new RangeError(errorMessages.numberOutOfRange('number', num, min, max));\n }\n return clamped;\n}\n/*\nMatch Temporal's field overflow shape without depending on the polyfill's\ninternal option readers. Undefined defaults to constrain; explicit reject asks\nfor exact in-range input.\n*/\nfunction normalizeOverflow(options) {\n options = normalizeOptions(options);\n const overflow = options.overflow;\n if (overflow === undefined) {\n return 'constrain';\n }\n if (overflow === 'constrain' || overflow === 'reject') {\n return overflow;\n }\n throw new RangeError(errorMessages.invalidOverflowOption);\n}\n","import { roundHalfFloor, roundHalfCeil, roundHalfTrunc, roundExpand, roundHalfExpand, roundHalfEven, bindArgs, toString, throwRangeError, invalidEntity, clampEntity, unitNameMap, durationFieldNamesAsc, invalidChoice, nanoInUtcDay, unitNanoMap, unitNamesAsc, flippedSmallestLargestUnit, requirePropDefined, missingSmallestLargestUnit } from \"./internal.js\";\n\nimport { requireObjectLike, toIntegerWithTrunc, normalizeOptions } from \"temporal-utils/protected\";\n\nimport \"temporal-utils/protected-error-messages\";\n\nfunction normalizeOptionsOrString(options, optionName) {\n return \"string\" == typeof options ? ((optionName, optionVal) => {\n const res = Object.create(null);\n return res[optionName] = optionVal, res;\n })(optionName, options) : requireObjectLike(options);\n}\n\nconst smallestUnitStr = \"smallestUnit\";\n\nconst overflowMap = {\n constrain: 0,\n reject: 1\n};\n\nconst epochDisambigMap = {\n compatible: 0,\n reject: 1,\n earlier: 2,\n later: 3\n};\n\nconst offsetDisambigMap = {\n reject: 0,\n use: 1,\n prefer: 2,\n ignore: 3\n};\n\nconst calendarDisplayMap = {\n auto: 0,\n never: 1,\n critical: 2,\n always: 3\n};\n\nconst timeZoneDisplayMap = {\n auto: 0,\n never: 1,\n critical: 2\n};\n\nconst offsetDisplayMap = {\n auto: 0,\n never: 1\n};\n\nconst roundingModeMap = {\n floor: 0,\n halfFloor: 1,\n ceil: 2,\n halfCeil: 3,\n trunc: 4,\n halfTrunc: 5,\n expand: 6,\n halfExpand: 7,\n halfEven: 8\n};\n\nconst roundingModeFuncs = [ Math.floor, roundHalfFloor, Math.ceil, roundHalfCeil, Math.trunc, roundHalfTrunc, roundExpand, roundHalfExpand, roundHalfEven ];\n\nconst directionMap = {\n previous: -1,\n next: 1\n};\n\nfunction coerceRoundingIncInteger(options) {\n const roundingInc = options.roundingIncrement;\n return void 0 === roundingInc ? 1 : toIntegerWithTrunc(roundingInc, \"roundingIncrement\");\n}\n\nfunction coerceFractionalSecondDigits(options) {\n let subsecDigits = options.fractionalSecondDigits;\n if (void 0 !== subsecDigits) {\n if (\"number\" != typeof subsecDigits) {\n if (\"auto\" === toString(subsecDigits)) {\n return;\n }\n throwRangeError(invalidEntity(\"fractionalSecondDigits\", subsecDigits));\n }\n subsecDigits = clampEntity(\"fractionalSecondDigits\", Math.floor(subsecDigits), 0, 9, 1);\n }\n return subsecDigits;\n}\n\nfunction coerceUnitOption(optionName, options, minUnit = 0, ensureDefined) {\n let unitStr = options[optionName];\n if (void 0 === unitStr) {\n return ensureDefined ? minUnit : void 0;\n }\n if (unitStr = toString(unitStr), \"auto\" === unitStr) {\n return ensureDefined ? minUnit : null;\n }\n let unit = unitNameMap[unitStr];\n return void 0 === unit && (unit = durationFieldNamesAsc.indexOf(unitStr)), unit < 0 && throwRangeError(invalidChoice(optionName, unitStr, unitNameMap)), \n unit;\n}\n\nfunction coerceChoiceOption(optionName, enumNameMap, options, defaultChoice = 0) {\n const enumArg = options[optionName];\n if (void 0 === enumArg) {\n return defaultChoice;\n }\n const enumStr = toString(enumArg);\n const enumNum = enumNameMap[enumStr];\n return void 0 === enumNum && throwRangeError(invalidChoice(optionName, enumStr, enumNameMap)), \n enumNum;\n}\n\nconst coerceSmallestUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, smallestUnitStr);\n\nconst coerceLargestUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, \"largestUnit\");\n\nconst coerceTotalUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, \"unit\");\n\nconst coerceOverflow = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"overflow\", overflowMap);\n\nconst coerceEpochDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"disambiguation\", epochDisambigMap);\n\nconst coerceOffsetDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"offset\", offsetDisambigMap);\n\nconst coerceCalendarDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"calendarName\", calendarDisplayMap);\n\nconst coerceTimeZoneDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"timeZoneName\", timeZoneDisplayMap);\n\nconst coerceOffsetDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"offset\", offsetDisplayMap);\n\nconst coerceRoundingMode = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"roundingMode\", roundingModeMap);\n\nconst coerceDirection = /*@__PURE__*/ bindArgs(coerceChoiceOption, \"direction\", directionMap);\n\nfunction validateRoundingInc(roundingInc, smallestUnit, allowManyLargeUnits, solarMode) {\n const upUnitNano = solarMode ? nanoInUtcDay : unitNanoMap[smallestUnit + 1];\n if (upUnitNano) {\n const unitNano = unitNanoMap[smallestUnit];\n upUnitNano % ((roundingInc = clampEntity(\"roundingIncrement\", roundingInc, 1, upUnitNano / unitNano - (solarMode ? 0 : 1), 1)) * unitNano) && throwRangeError(invalidEntity(\"roundingIncrement\", roundingInc));\n } else {\n roundingInc = clampEntity(\"roundingIncrement\", roundingInc, 1, allowManyLargeUnits ? 10 ** 9 : 1, 1);\n }\n return roundingInc;\n}\n\nfunction validateUnitRange(optionName, unit, minUnit, maxUnit) {\n return null != unit && clampEntity(optionName, unit, minUnit, maxUnit, 1, unitNamesAsc), \n unit;\n}\n\nfunction checkLargestSmallestUnit(largestUnit, smallestUnit) {\n smallestUnit > largestUnit && throwRangeError(flippedSmallestLargestUnit);\n}\n\nfunction refineDiffOptions(roundingModeInvert, options, defaultLargestUnit, maxUnit = 9, minUnit = 0, defaultRoundingMode = 4) {\n options = normalizeOptions(options);\n let largestUnit = coerceLargestUnit(options, minUnit);\n let roundingInc = coerceRoundingIncInteger(options);\n let roundingMode = coerceRoundingMode(options, defaultRoundingMode);\n let smallestUnit = coerceSmallestUnit(options, minUnit, 1);\n return largestUnit = validateUnitRange(\"largestUnit\", largestUnit, minUnit, maxUnit), \n smallestUnit = validateUnitRange(smallestUnitStr, smallestUnit, minUnit, maxUnit), \n null == largestUnit ? largestUnit = Math.max(defaultLargestUnit, smallestUnit) : checkLargestSmallestUnit(largestUnit, smallestUnit), \n roundingInc = validateRoundingInc(roundingInc, smallestUnit, 1), roundingModeInvert && (roundingMode = (roundingMode => roundingMode < 4 ? (roundingMode + 2) % 4 : roundingMode)(roundingMode)), \n [ largestUnit, smallestUnit, roundingInc, roundingMode ];\n}\n\nfunction refineDurationRoundOptions(options, defaultLargestUnit, refineRelativeTo) {\n options = normalizeOptionsOrString(options, smallestUnitStr);\n let largestUnit = coerceLargestUnit(options);\n const relativeToInternals = refineRelativeTo(options.relativeTo);\n let roundingInc = coerceRoundingIncInteger(options);\n const roundingMode = coerceRoundingMode(options, 7);\n let smallestUnit = coerceSmallestUnit(options);\n return void 0 === largestUnit && void 0 === smallestUnit && throwRangeError(missingSmallestLargestUnit), \n null == smallestUnit && (smallestUnit = 0), null == largestUnit && (largestUnit = Math.max(smallestUnit, defaultLargestUnit)), \n checkLargestSmallestUnit(largestUnit, smallestUnit), roundingInc = validateRoundingInc(roundingInc, smallestUnit, 1), \n roundingInc > 1 && smallestUnit > 5 && largestUnit !== smallestUnit && throwRangeError(\"For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit\"), \n [ largestUnit, smallestUnit, roundingInc, roundingMode, relativeToInternals ];\n}\n\nfunction refineRoundingOptions(options, maxUnit = 6, solarMode) {\n let roundingInc = coerceRoundingIncInteger(options = normalizeOptionsOrString(options, smallestUnitStr));\n const roundingMode = coerceRoundingMode(options, 7);\n let smallestUnit = coerceSmallestUnit(options);\n return smallestUnit = requirePropDefined(smallestUnitStr, smallestUnit), smallestUnit = validateUnitRange(smallestUnitStr, smallestUnit, 0, maxUnit), \n roundingInc = validateRoundingInc(roundingInc, smallestUnit, void 0, solarMode), \n [ smallestUnit, roundingInc, roundingMode ];\n}\n\nfunction refineUnitDiffOptions(unit, options) {\n return \"string\" == typeof options || Boolean(options && (options.roundingMode || void 0 !== options.roundingIncrement)) ? ((smallestUnit, options, allowManyLargeUnits, defaultRoundingMode = 7) => {\n let roundingInc = coerceRoundingIncInteger(options = normalizeOptionsOrString(options, \"roundingMode\"));\n const roundingMode = coerceRoundingMode(options, defaultRoundingMode);\n return roundingInc = validateRoundingInc(roundingInc, smallestUnit, allowManyLargeUnits), \n [ roundingInc, roundingMode ];\n })(unit, options, 1, 4) : [ 1, void 0 ];\n}\n\nfunction refineUnitRoundOptions(smallestUnit, options, solarMode) {\n let roundingInc = coerceRoundingIncInteger(options = normalizeUnitRoundOptions(options));\n const roundingMode = coerceRoundingMode(options, 7);\n return roundingInc = validateRoundingInc(roundingInc, smallestUnit, void 0, solarMode), \n [ roundingInc, roundingMode ];\n}\n\nfunction normalizeUnitRoundOptions(options) {\n return void 0 === options ? Object.create(null) : normalizeOptionsOrString(options, \"roundingMode\");\n}\n\nfunction refineTotalOptions(options, refineRelativeTo) {\n const relativeToInternals = refineRelativeTo((options = normalizeOptionsOrString(options, \"unit\")).relativeTo);\n let totalUnit = coerceTotalUnit(options);\n return totalUnit = requirePropDefined(\"unit\", totalUnit), [ totalUnit, relativeToInternals ];\n}\n\nfunction refineOverflowOptions(options) {\n return void 0 === options ? 0 : coerceOverflow(requireObjectLike(options));\n}\n\nfunction refineZonedFieldOptions(options, defaultOffsetDisambig = 0) {\n options = normalizeOptions(options);\n const epochDisambig = coerceEpochDisambig(options);\n const offsetDisambig = coerceOffsetDisambig(options, defaultOffsetDisambig);\n return [ coerceOverflow(options), offsetDisambig, epochDisambig ];\n}\n\nfunction refineEpochDisambigOptions(options) {\n return coerceEpochDisambig(normalizeOptions(options));\n}\n\nfunction refineTimeDisplayTuple(options, maxSmallestUnit = 4) {\n const subsecDigits = coerceFractionalSecondDigits(options);\n const roundingMode = coerceRoundingMode(options, 4);\n const smallestUnit = coerceSmallestUnit(options);\n return [ roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, maxSmallestUnit), subsecDigits) ];\n}\n\nfunction refineDateTimeDisplayOptions(options) {\n return options = normalizeOptions(options), [ coerceCalendarDisplay(options), ...refineTimeDisplayTuple(options) ];\n}\n\nfunction refineDateDisplayOptions(options) {\n return coerceCalendarDisplay(normalizeOptions(options));\n}\n\nfunction refineTimeDisplayOptions(options, maxSmallestUnit) {\n return refineTimeDisplayTuple(normalizeOptions(options), maxSmallestUnit);\n}\n\nfunction refineZonedDateTimeDisplayOptions(options) {\n options = normalizeOptions(options);\n const calendarDisplay = coerceCalendarDisplay(options);\n const subsecDigits = coerceFractionalSecondDigits(options);\n const offsetDisplay = coerceOffsetDisplay(options);\n const roundingMode = coerceRoundingMode(options, 4);\n const smallestUnit = coerceSmallestUnit(options);\n return [ calendarDisplay, coerceTimeZoneDisplay(options), offsetDisplay, roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, 4), subsecDigits) ];\n}\n\nfunction refineInstantDisplayOptions(options) {\n const subsecDigits = coerceFractionalSecondDigits(options = normalizeOptions(options));\n const roundingMode = coerceRoundingMode(options, 4);\n const smallestUnit = coerceSmallestUnit(options);\n return [ options.timeZone, roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, 4), subsecDigits) ];\n}\n\nfunction resolveSmallestUnitAndSubsecDigits(smallestUnit, subsecDigits) {\n return null != smallestUnit ? [ unitNanoMap[smallestUnit], smallestUnit < 4 ? 9 - 3 * smallestUnit : -1 ] : [ void 0 === subsecDigits ? 1 : 10 ** (9 - subsecDigits), subsecDigits ];\n}\n\nfunction refineDirectionOptions(options) {\n const normalizedOptions = normalizeOptionsOrString(options, \"direction\");\n const res = coerceDirection(normalizedOptions, 0);\n return res || throwRangeError(invalidEntity(\"direction\", res)), res;\n}\n\nexport { normalizeUnitRoundOptions, refineDateDisplayOptions, refineDateTimeDisplayOptions, refineDiffOptions, refineDirectionOptions, refineDurationRoundOptions, refineEpochDisambigOptions, refineInstantDisplayOptions, refineOverflowOptions, refineRoundingOptions, refineTimeDisplayOptions, refineTotalOptions, refineUnitDiffOptions, refineUnitRoundOptions, refineZonedDateTimeDisplayOptions, refineZonedFieldOptions, roundingModeFuncs };\n","import * as TemporalUtils from \"temporal-utils/protected\";\n\nimport { toFiniteNumber, isObjectLike as isObjectLike$1, normalizeOptions, toIntegerWithTrunc, toPositiveIntegerWithTruncation, requireObjectLike } from \"temporal-utils/protected\";\n\nimport { roundingModeFuncs, refineDurationRoundOptions, refineInstantDisplayOptions, refineZonedDateTimeDisplayOptions, refineDateTimeDisplayOptions, refineDateDisplayOptions, refineTimeDisplayOptions, refineZonedFieldOptions, refineOverflowOptions, refineTotalOptions } from \"./options.js\";\n\nimport * as baseErrorMessages from \"temporal-utils/protected-error-messages\";\n\nconst invalidEntity = baseErrorMessages.invalidEntity;\n\nconst unsupportedWeekNumbers = baseErrorMessages.unsupportedWeekNumbers;\n\nconst missingField = fieldName => `Missing ${fieldName}`;\n\nconst noValidFields = validFields => \"No valid fields: \" + validFields.join();\n\nconst invalidBag = \"Invalid bag\";\n\nconst invalidChoice = (fieldName, val, choiceMap) => baseErrorMessages.invalidEntity(fieldName, val) + \"; must be \" + Object.keys(choiceMap).join();\n\nconst forbiddenValueOf = \"Cannot use valueOf\";\n\nconst invalidCallingContext = \"Invalid calling context\";\n\nconst missingYear = allowEra => \"Missing year\" + (allowEra ? \"/era/eraYear\" : \"\");\n\nconst invalidLeapMonth = \"Invalid leap month\";\n\nconst invalidCalendar = calendarId => baseErrorMessages.invalidEntity(\"Calendar\", calendarId);\n\nconst exoticCalendarRequired = (calendarId, remedy) => `Unknown calendar ${calendarId}; might need ${remedy}`;\n\nconst invalidTimeZone = calendarId => baseErrorMessages.invalidEntity(\"TimeZone\", calendarId);\n\nconst outOfBoundsDate = \"Out-of-bounds date\";\n\nconst invalidRelativeTo = arg => invalidEntity(\"relativeTo\", arg);\n\nconst missingSmallestLargestUnit = \"Required smallestUnit or largestUnit\";\n\nconst flippedSmallestLargestUnit = \"smallestUnit > largestUnit\";\n\nconst failedParse = s => `Cannot parse: ${s}`;\n\nconst invalidSubstring = substring => `Invalid substring: ${substring}`;\n\nconst invalidFormatType = branding => `Cannot format ${branding}`;\n\nconst mismatchingFormatTypes = \"Mismatching types for formatting\";\n\nconst constrainToRange = TemporalUtils.constrainToRange;\n\nconst isObjectLike = TemporalUtils.isObjectLike;\n\nfunction throwRangeError(message) {\n throw new RangeError(message);\n}\n\nfunction throwTypeError(message) {\n throw new TypeError(message);\n}\n\nfunction clampProp(props, propName, min, max, overflow) {\n return clampEntity(propName, ((props, propName) => {\n const propVal = props[propName];\n return void 0 === propVal && throwTypeError(missingField(propName)), propVal;\n })(props, propName), min, max, overflow);\n}\n\nfunction clampEntity(entityName, num, min, max, overflow, choices) {\n const clamped = constrainToRange(num, min, max);\n return overflow && num !== clamped && throwRangeError(((entityName, val, min, max, choices) => choices ? baseErrorMessages.numberOutOfRange(entityName, choices[val], choices[min], choices[max]) : baseErrorMessages.numberOutOfRange(entityName, val, min, max))(entityName, num, min, max, choices)), \n clamped;\n}\n\nfunction memoize(generator, MapClass = Map) {\n const map = new MapClass;\n return (key, ...otherArgs) => {\n if (map.has(key)) {\n return map.get(key);\n }\n const val = generator(key, ...otherArgs);\n return map.set(key, val), val;\n };\n}\n\nconst createNameDescriptors = name => createPropDescriptors({\n name: name\n}, 1);\n\nconst createPropDescriptors = (propVals, readonly) => mapProps(value => ({\n value: value,\n configurable: 1,\n writable: !readonly\n}), propVals);\n\nconst createStringTagDescriptors = value => ({\n [Symbol.toStringTag]: {\n value: value,\n configurable: 1\n }\n});\n\nfunction mapProps(transformer, props) {\n const res = {};\n for (const propName in props) {\n res[propName] = transformer(props[propName], propName);\n }\n return res;\n}\n\nfunction zipPropsConst(propNames, propVal) {\n const res = {};\n for (const propName of propNames) {\n res[propName] = propVal;\n }\n return res;\n}\n\nfunction createPropGetters(propNames) {\n const getters = {};\n for (const propName of propNames) {\n getters[propName] = slots => slots[propName];\n }\n return getters;\n}\n\nfunction pluckProps(propNames, props, dest = Object.create(null)) {\n for (const propName of propNames) {\n dest[propName] = props[propName];\n }\n return dest;\n}\n\nfunction allPropsEqual(propNames, props0, props1) {\n for (const propName of propNames) {\n if (props0[propName] !== props1[propName]) {\n return 0;\n }\n }\n return 1;\n}\n\nfunction zeroOutProps(propNames, clearUntilI, props) {\n const copy = {\n ...props\n };\n for (let i = 0; i < clearUntilI; i++) {\n copy[propNames[i]] = 0;\n }\n return copy;\n}\n\nfunction bindArgs(f, ...boundArgs) {\n return (...dynamicArgs) => f(...boundArgs, ...dynamicArgs);\n}\n\nfunction identity(arg) {\n return arg;\n}\n\nfunction noop() {}\n\nfunction capitalize(s) {\n return s[0].toUpperCase() + s.substring(1);\n}\n\nfunction sortStrings(...strss) {\n return [].concat(...strss).sort();\n}\n\nfunction createRegExp(meat) {\n return new RegExp(`^${meat}$`, \"i\");\n}\n\nfunction parseSubsecNano(fracStr) {\n return parseInt(fracStr.padEnd(9, \"0\"));\n}\n\nfunction parseSign(s) {\n return s && \"+\" !== s ? -1 : 1;\n}\n\nfunction parseInt0(s) {\n return void 0 === s ? 0 : parseInt(s);\n}\n\nfunction padNumber(digits, num) {\n return String(num).padStart(digits, \"0\");\n}\n\nconst padNumber2 = /*@__PURE__*/ bindArgs(padNumber, 2);\n\nfunction compareNumbers(a, b) {\n return Math.sign(a - b);\n}\n\nfunction compareBigInts(a, b) {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nfunction divFloorBigInt(num, denom) {\n const whole = num / denom;\n return num % denom < 0n ? whole - 1n : whole;\n}\n\nfunction divModFloorBigInt(num, divisor) {\n const quotient = divFloorBigInt(num, divisor);\n return [ quotient, num - quotient * divisor ];\n}\n\nfunction divModFloor(num, divisor) {\n return [ Math.floor(num / divisor), modFloor(num, divisor) ];\n}\n\nfunction modFloor(num, divisor) {\n return (num % divisor + divisor) % divisor;\n}\n\nfunction divTrunc(num, divisor) {\n return Math.trunc(num / divisor) || 0;\n}\n\nfunction modTrunc(num, divisor) {\n return num % divisor || 0;\n}\n\nfunction roundExpand(num) {\n return num < 0 ? Math.floor(num) : Math.ceil(num);\n}\n\nfunction fabricateNearHalfFraction(halfCompare, sign = 1) {\n return sign * (.5 + halfCompare / 5);\n}\n\nfunction roundHalfExpand(num) {\n return Math.sign(num) * Math.round(Math.abs(num)) || 0;\n}\n\nfunction roundHalfFloor(num) {\n return hasHalf(num) ? Math.floor(num) : Math.round(num);\n}\n\nfunction roundHalfCeil(num) {\n return hasHalf(num) ? Math.ceil(num) : Math.round(num);\n}\n\nfunction roundHalfTrunc(num) {\n return hasHalf(num) ? Math.trunc(num) || 0 : Math.round(num);\n}\n\nfunction roundHalfEven(num) {\n return hasHalf(num) ? (num = Math.trunc(num) || 0) + num % 2 : Math.round(num);\n}\n\nfunction hasHalf(num) {\n return .5 === Math.abs(num % 1);\n}\n\nconst isoCalendarId = \"iso8601\";\n\nconst gregoryCalendarId = \"gregory\";\n\nconst gregoryEraOrigins = {\n \"bce\": -1,\n \"ce\": 0\n};\n\nfunction normalizeEraName(era) {\n const normalized = era.normalize(\"NFD\").toLowerCase().replace(/[^a-z0-9]/g, \"\");\n return \"bc\" === normalized || \"b\" === normalized ? \"bce\" : \"ad\" === normalized || \"a\" === normalized ? \"ce\" : normalized;\n}\n\nconst isoCalendarImpl = void 0;\n\nconst gregoryCalendarImpl = 0;\n\nfunction getCalendarSlotId(calendar) {\n return calendar === isoCalendarImpl ? \"iso8601\" : 0 === calendar ? \"gregory\" : calendar.id;\n}\n\nconst monthCodeRegExp = /^M(\\d{2})(L?)$/;\n\nfunction parseMonthCode(monthCode) {\n const m = monthCodeRegExp.exec(monthCode);\n return m || throwRangeError((monthCode => `Invalid monthCode: ${monthCode}`)(monthCode)), \n [ parseInt(m[1]), Boolean(m[2]) ];\n}\n\nfunction formatMonthCode(monthCodeNumber, isLeapMonth) {\n return \"M\" + padNumber2(monthCodeNumber) + (isLeapMonth ? \"L\" : \"\");\n}\n\nfunction monthCodeNumberToMonth(monthCodeNumber, isLeapMonth, leapMonth) {\n return monthCodeNumber + (isLeapMonth || leapMonth && monthCodeNumber >= leapMonth ? 1 : 0);\n}\n\nfunction monthToMonthCodeNumber(month, leapMonth) {\n return month - (leapMonth && month >= leapMonth ? 1 : 0);\n}\n\nconst unitNameMap = {\n nanosecond: 0,\n microsecond: 1,\n millisecond: 2,\n second: 3,\n minute: 4,\n hour: 5,\n day: 6,\n week: 7,\n month: 8,\n year: 9\n};\n\nconst unitNamesAsc = /*@__PURE__*/ Object.keys(unitNameMap);\n\nconst milliInUtcDay = 864e5;\n\nconst nanoInMicro = TemporalUtils.nanoInMicro;\n\nconst nanoInMilli = TemporalUtils.nanoInMilli;\n\nconst nanoInSec = TemporalUtils.nanoInSec;\n\nconst nanoInMinute = TemporalUtils.nanoInMinute;\n\nconst nanoInHour = TemporalUtils.nanoInHour;\n\nconst nanoInUtcDay = 864e11;\n\nconst unitNanoMap = [ 1, nanoInMicro, nanoInMilli, nanoInSec, nanoInMinute, nanoInHour, nanoInUtcDay ];\n\nconst bigNanoInMicro = /*@__PURE__*/ BigInt(nanoInMicro);\n\nconst bigNanoInMilli = /*@__PURE__*/ BigInt(nanoInMilli);\n\nconst bigNanoInSec = /*@__PURE__*/ BigInt(nanoInSec);\n\nconst bigNanoInMinute = /*@__PURE__*/ BigInt(nanoInMinute);\n\nconst bigNanoInHour = /*@__PURE__*/ BigInt(nanoInHour);\n\nconst bigNanoInUtcDay = /*@__PURE__*/ BigInt(nanoInUtcDay);\n\nfunction divideBigNanoToExactNumber(bigNano, divisorNano) {\n const days = Number(bigNano / bigNanoInUtcDay);\n const timeNano = Number(bigNano % bigNanoInUtcDay);\n return days * (nanoInUtcDay / divisorNano) + (Math.trunc(timeNano / divisorNano) + timeNano % divisorNano / divisorNano);\n}\n\nconst timeFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.slice(0, 6);\n\nconst timeGetters = /*@__PURE__*/ createPropGetters(timeFieldNamesAsc);\n\nconst yearFieldNamesAsc = [ \"year\" ];\n\nconst dayFieldNamesAsc = [ \"day\" ];\n\nconst calendarDateFieldNamesAsc = [ \"day\", \"month\", \"year\" ];\n\nconst offsetFieldNames = [ \"offset\" ];\n\nconst timeZoneFieldNames = [ \"timeZone\" ];\n\nconst eraYearFieldNames = [ \"era\", \"eraYear\" ];\n\nconst allYearFieldNames = [ \"era\", \"eraYear\", \"year\" ];\n\nconst monthFieldNames = [ \"month\", \"monthCode\" ];\n\nconst monthDayFieldNames = [ \"day\", \"month\", \"monthCode\" ];\n\nconst timeFieldNamesAlpha = /*@__PURE__*/ sortStrings(timeFieldNamesAsc);\n\nconst yearFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearFieldNamesAsc);\n\nconst yearMonthFieldNamesAlpha = /*@__PURE__*/ sortStrings(monthFieldNames, yearFieldNamesAsc);\n\nconst yearMonthFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearMonthFieldNamesAlpha);\n\nconst yearMonthCodeFieldNamesAlpha = /*@__PURE__*/ sortStrings([ \"monthCode\" ], yearFieldNamesAsc);\n\nconst yearMonthCodeFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearMonthCodeFieldNamesAlpha);\n\nconst monthCodeDayFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, [ \"monthCode\" ]);\n\nconst dateFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, yearMonthFieldNamesAlpha);\n\nconst dateFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthFieldNamesAlpha);\n\nconst dateTimeFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc);\n\nconst dateTimeFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc);\n\nconst dateTimeAndOffsetFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames);\n\nconst dateTimeAndOffsetFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames);\n\nconst dateTimeAndZoneFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);\n\nconst dateTimeAndZoneFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);\n\nconst yearMonthCodeDayFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, yearMonthCodeFieldNamesAlpha);\n\nconst yearMonthCodeDayFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthCodeFieldNamesAlpha);\n\nconst timeFieldDefaults = /*@__PURE__*/ zipPropsConst(timeFieldNamesAsc, 0);\n\nfunction validateTimeFields(timeFields) {\n return constrainTimeFields(timeFields, 1), timeFields;\n}\n\nconst maxValues = {\n hour: 23,\n minute: 59,\n second: 59\n};\n\nfunction constrainTimeFields(timeFields, overflow) {\n const constrainedFields = {};\n for (const fieldName of timeFieldNamesAsc) {\n constrainedFields[fieldName] = clampEntity(fieldName, timeFields[fieldName], 0, maxValues[fieldName] || 999, overflow);\n }\n return constrainedFields;\n}\n\nfunction timeFieldsToNano(timeFields) {\n return timeFieldsToSec(timeFields) * nanoInSec + timeFieldsToSubsecNano(timeFields);\n}\n\nfunction timeFieldsToMilli(timeFields) {\n return 1e3 * timeFieldsToSec(timeFields) + timeFields.millisecond;\n}\n\nfunction timeFieldsToSec(timeFields) {\n return 3600 * timeFields.hour + 60 * timeFields.minute + timeFields.second;\n}\n\nfunction timeFieldsToSubsecNano(timeFields) {\n return timeFields.millisecond * nanoInMilli + timeFields.microsecond * nanoInMicro + timeFields.nanosecond;\n}\n\nfunction nanoToTimeAndDay(nano) {\n const [dayDelta, timeNano] = divModFloor(nano, nanoInUtcDay);\n return [ nanoToTimeFields(timeNano), dayDelta ];\n}\n\nfunction nanoToTimeFields(timeNano) {\n const [timeMilli, nanoAfterMilli] = divModFloor(timeNano, nanoInMilli);\n const [microsecond, nanosecond] = divModFloor(nanoAfterMilli, nanoInMicro);\n return milliToTimeFields(timeMilli, microsecond, nanosecond);\n}\n\nfunction milliToTimeFields(timeMilli, microsecond = 0, nanosecond = 0) {\n const [hour, milliAfterHour] = divModFloor(timeMilli, 36e5);\n const [minute, milliAfterMinute] = divModFloor(milliAfterHour, 6e4);\n const [second, millisecond] = divModFloor(milliAfterMinute, 1e3);\n return {\n hour: hour,\n minute: minute,\n second: second,\n millisecond: millisecond,\n microsecond: microsecond,\n nanosecond: nanosecond\n };\n}\n\nfunction epochNanoToSecMod(epochNano) {\n const [epochSec, nano] = divModFloorBigInt(epochNano, bigNanoInSec);\n return [ Number(epochSec), Number(nano) ];\n}\n\nfunction epochNanoToMilli(epochNano) {\n return Number(divFloorBigInt(epochNano, bigNanoInMilli));\n}\n\nfunction isoDateTimeToEpochNano(isoDateTime) {\n return isoDateToEpochNano(isoDateTime) + BigInt(timeFieldsToNano(isoDateTime));\n}\n\nfunction isoDateTimeToEpochMilli(isoDateTime) {\n return isoDateToEpochMilli(isoDateTime) + timeFieldsToMilli(isoDateTime);\n}\n\nfunction isoDateToEpochNano(isoDate) {\n return BigInt(isoDateToEpochDays(isoDate)) * bigNanoInUtcDay;\n}\n\nfunction isoDateToEpochMilli(isoDate) {\n return 864e5 * isoDateToEpochDays(isoDate);\n}\n\nfunction isoDateToEpochDays(isoDate) {\n return isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day);\n}\n\nfunction isoPartsToEpochDays(isoYear, isoMonth = 1, isoDay = 1) {\n const monthIndex = isoMonth - 1;\n return isoYear += Math.floor(monthIndex / 12), isoMonth = modFloor(monthIndex, 12), \n Date.UTC(isoYear % 400 - 400, isoMonth, 0) / 864e5 + 146097 * (divTrunc(isoYear, 400) + 1) + isoDay;\n}\n\nfunction epochNanoToIsoDateTime(epochNano) {\n const [epochDays, nanoAfterDay] = divModFloorBigInt(epochNano, bigNanoInUtcDay);\n return {\n ...epochDaysToIsoDate(Number(epochDays)),\n ...nanoToTimeFields(Number(nanoAfterDay))\n };\n}\n\nfunction epochMilliToIsoDateTime(epochMilli, microsecond = 0, nanosecond = 0) {\n const [epochDays, milliAfterDay] = divModFloor(epochMilli, 864e5);\n return {\n ...epochDaysToIsoDate(epochDays),\n ...milliToTimeFields(milliAfterDay, microsecond, nanosecond)\n };\n}\n\nfunction epochDaysToIsoDate(epochDays) {\n const legacyDate = new Date(864e5 * modFloor(epochDays, 146097));\n return {\n year: legacyDate.getUTCFullYear() + 400 * Math.floor(epochDays / 146097),\n month: legacyDate.getUTCMonth() + 1,\n day: legacyDate.getUTCDate()\n };\n}\n\nfunction diffEpochMilliDays(epochMilli0, epochMilli1) {\n return Math.trunc((epochMilli1 - epochMilli0) / 864e5);\n}\n\nconst isoEpochOriginYear = 1970;\n\nconst isoEpochFirstLeapYear = 1972;\n\nconst isoMonthsInYear = 12;\n\nfunction computeIsoMonthCodeParts(month) {\n return [ month, 0 ];\n}\n\nfunction computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, isLeapMonth) {\n if (!isLeapMonth) {\n return {\n year: 1972,\n month: monthCodeNumber\n };\n }\n}\n\nfunction computeIsoFieldsFromParts(year, month, day) {\n return {\n year: year,\n month: month,\n day: day\n };\n}\n\nfunction computeIsoDaysInMonth(year, month) {\n switch (month) {\n case 2:\n return computeIsoInLeapYear(year) ? 29 : 28;\n\n case 4:\n case 6:\n case 9:\n case 11:\n return 30;\n }\n return 31;\n}\n\nfunction computeIsoDaysInYear(year) {\n return computeIsoInLeapYear(year) ? 366 : 365;\n}\n\nfunction computeIsoInLeapYear(year) {\n return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);\n}\n\nfunction addIsoMonths(year, month, monthDelta) {\n return year += divTrunc(monthDelta, 12), (month += modTrunc(monthDelta, 12)) < 1 ? (year--, \n month += 12) : month > 12 && (year++, month -= 12), {\n year: year,\n month: month\n };\n}\n\nfunction diffIsoMonthSlots(year0, month0, year1, month1) {\n return 12 * (year1 - year0) + month1 - month0;\n}\n\nfunction computeIsoDayOfWeek(isoDate) {\n return modFloor(isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day) + 4, 7) || 7;\n}\n\nfunction computeIsoDayOfYear(isoDate) {\n return isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day) - isoPartsToEpochDays(isoDate.year) + 1;\n}\n\nfunction computeIsoWeekFields(isoDate) {\n let yearOfWeek = isoDate.year;\n let weekOfYear = Math.floor((computeIsoDayOfYear(isoDate) - computeIsoDayOfWeek(isoDate) + 10) / 7);\n let weeksInYear = computeIsoWeeksInYear(yearOfWeek);\n return weekOfYear < 1 ? weekOfYear = weeksInYear = computeIsoWeeksInYear(--yearOfWeek) : weekOfYear > weeksInYear && (weekOfYear = 1, \n weeksInYear = computeIsoWeeksInYear(++yearOfWeek)), {\n weekOfYear: weekOfYear,\n yearOfWeek: yearOfWeek,\n De: weeksInYear\n };\n}\n\nfunction computeIsoWeeksInYear(year) {\n const y0DayOfWeek = computeIsoDayOfWeek({\n year: year,\n month: 1,\n day: 1\n });\n return 4 === y0DayOfWeek || 3 === y0DayOfWeek && computeIsoInLeapYear(year) ? 53 : 52;\n}\n\nfunction computeGregoryEraFields({year: year}) {\n return year < 1 ? {\n era: \"bce\",\n eraYear: 1 - year\n } : {\n era: \"ce\",\n eraYear: year\n };\n}\n\nfunction validateIsoDateTimeFields(isoDateTime) {\n return validateIsoDateFields(isoDateTime), validateTimeFields(isoDateTime);\n}\n\nfunction validateIsoDateFields(isoInternals) {\n return constrainIsoDateFields(isoInternals, 1), isoInternals;\n}\n\nfunction isIsoDateFieldsValid(isoDate) {\n return allPropsEqual(calendarDateFieldNamesAsc, isoDate, constrainIsoDateFields(isoDate));\n}\n\nfunction constrainIsoDateFields(isoDate, overflow) {\n const {year: year} = isoDate;\n const month = clampProp(isoDate, \"month\", 1, 12, overflow);\n return {\n year: year,\n month: month,\n day: clampProp(isoDate, \"day\", 1, computeIsoDaysInMonth(year, month), overflow)\n };\n}\n\nfunction computeCalendarDateFields(calendar, isoDate) {\n return calendar ? calendar.de(isoDate) : isoDate;\n}\n\nfunction computeCalendarMonthCodeParts(calendar, year, month) {\n return calendar ? calendar.N(year, month) : computeIsoMonthCodeParts(month);\n}\n\nfunction computeCalendarEraFields(calendar, isoDate) {\n return 0 === calendar ? computeGregoryEraFields(isoDate) : calendar && calendar.h?.(isoDate) || {};\n}\n\nfunction computeCalendarIsoFieldsFromParts(calendar, year, month, day) {\n return calendar ? calendar.fe(year, month, day) : computeIsoFieldsFromParts(year, month, day);\n}\n\nfunction computeCalendarMonthsInYearForYear(calendar, year) {\n return calendar ? calendar.j(year) : 12;\n}\n\nfunction computeCalendarDaysInMonthForYearMonth(calendar, year, month) {\n return calendar ? calendar.o(year, month) : computeIsoDaysInMonth(year, month);\n}\n\nfunction computeCalendarMonthCode(calendar, isoDate) {\n const {year: year, month: month} = computeCalendarDateFields(calendar, isoDate);\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);\n return formatMonthCode(monthCodeNumber, isLeapMonth);\n}\n\nfunction computeCalendarInLeapYear(calendar, isoDate) {\n const {year: year} = computeCalendarDateFields(calendar, isoDate);\n return calendar ? calendar.q(year) : computeIsoInLeapYear(year);\n}\n\nfunction computeCalendarMonthsInYear(calendar, isoDate) {\n const {year: year} = computeCalendarDateFields(calendar, isoDate);\n return computeCalendarMonthsInYearForYear(calendar, year);\n}\n\nfunction computeCalendarDaysInMonth(calendar, isoDate) {\n const {year: year, month: month} = computeCalendarDateFields(calendar, isoDate);\n return computeCalendarDaysInMonthForYearMonth(calendar, year, month);\n}\n\nfunction computeCalendarDaysInYear(calendar, isoDate) {\n const {year: year} = computeCalendarDateFields(calendar, isoDate);\n return calendar ? calendar.i(year) : computeIsoDaysInYear(year);\n}\n\nfunction computeCalendarDayOfYear(calendar, isoDate) {\n if (!calendar) {\n return computeIsoDayOfYear(isoDate);\n }\n const {year: year} = computeCalendarDateFields(calendar, isoDate);\n const yearStartIsoDate = computeCalendarIsoFieldsFromParts(calendar, year, 1, 1);\n return isoDateToEpochDays(isoDate) - isoDateToEpochDays(yearStartIsoDate) + 1;\n}\n\nfunction computeCalendarWeekOfYear(calendar, isoDate) {\n return calendar === isoCalendarImpl ? computeIsoWeekFields(isoDate).weekOfYear : void 0;\n}\n\nfunction computeCalendarYearOfWeek(calendar, isoDate) {\n return calendar === isoCalendarImpl ? computeIsoWeekFields(isoDate).yearOfWeek : void 0;\n}\n\nconst durationFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.map(unitName => unitName + \"s\");\n\nconst durationGetters = /*@__PURE__*/ createPropGetters(durationFieldNamesAsc);\n\nconst durationFieldNamesAlpha = /*@__PURE__*/ sortStrings(durationFieldNamesAsc);\n\nconst durationTimeFieldNamesAsc = /*@__PURE__*/ durationFieldNamesAsc.slice(0, 6);\n\nconst durationDateFieldNamesAsc = /*@__PURE__*/ durationFieldNamesAsc.slice(6);\n\nconst durationCalendarFieldNamesAsc = /*@__PURE__*/ durationDateFieldNamesAsc.slice(1);\n\nconst durationFieldDefaults = /*@__PURE__*/ zipPropsConst(durationFieldNamesAsc, 0);\n\nconst durationTimeFieldDefaults = /*@__PURE__*/ zipPropsConst(durationTimeFieldNamesAsc, 0);\n\nconst clearDurationFields = /*@__PURE__*/ bindArgs(zeroOutProps, durationFieldNamesAsc);\n\nfunction requirePropDefined(optionName, optionVal) {\n return null == optionVal && throwRangeError(missingField(optionName)), optionVal;\n}\n\nconst requireString = /*@__PURE__*/ bindArgs(requireType, \"string\");\n\nfunction requireType(typeName, arg, entityName = typeName) {\n return typeof arg !== typeName && throwTypeError(invalidEntity(entityName, arg)), \n arg;\n}\n\nfunction requireNumberIsInteger(num, entityName = \"number\") {\n return Number.isInteger(num) || throwRangeError(((entityName, num) => `Non-integer ${entityName}: ${num}`)(entityName, num)), \n num || 0;\n}\n\nfunction toString(arg) {\n return \"symbol\" == typeof arg && throwTypeError(\"Cannot convert Symbol to string\"), \n String(arg);\n}\n\nfunction toPrimitiveWithStringHint(arg) {\n if (!isObjectLike$1(arg)) {\n return arg;\n }\n const exoticToPrimitive = arg[Symbol.toPrimitive];\n if (null != exoticToPrimitive) {\n \"function\" != typeof exoticToPrimitive && throwTypeError();\n const primitive = Reflect.apply(exoticToPrimitive, arg, [ \"string\" ]);\n return isObjectLike$1(primitive) && throwTypeError(), primitive;\n }\n return Date.prototype[Symbol.toPrimitive].call(arg, \"string\");\n}\n\nfunction toBigInt(bi) {\n return \"boolean\" == typeof bi ? BigInt(bi ? 1 : 0) : \"string\" == typeof bi ? BigInt(bi) : (\"bigint\" != typeof bi && throwTypeError(`Invalid bigint: ${bi}`), \n bi);\n}\n\nfunction toStrictInteger(arg, entityName) {\n return requireNumberIsInteger(toFiniteNumber(arg, entityName), entityName);\n}\n\nfunction combineDateAndTime(isoDate, time) {\n return pluckProps(calendarDateFieldNamesAsc, isoDate, pluckProps(timeFieldNamesAsc, time));\n}\n\nconst maxMilli = 864e13;\n\nconst epochNanoMax = /*@__PURE__*/ BigInt(1e8) * bigNanoInUtcDay;\n\nconst epochNanoMin = /*@__PURE__*/ BigInt(-1e8) * bigNanoInUtcDay;\n\nconst plainDateEpochNanoMin = epochNanoMin - bigNanoInUtcDay;\n\nconst isoYearMonthIndexMin = -3261848;\n\nfunction checkIsoYearMonthInBounds(isoDate) {\n const isoYearMonthIndex = 12 * isoDate.year + isoDate.month;\n return (isoYearMonthIndex < isoYearMonthIndexMin || isoYearMonthIndex > 3309129) && throwRangeError(outOfBoundsDate), \n isoDate;\n}\n\nfunction checkIsoDateInBounds(isoDate, allowPlainDateLowerEdge = 1) {\n const epochNano = isoDateToEpochNano(isoDate);\n return (epochNano < (allowPlainDateLowerEdge ? plainDateEpochNanoMin : epochNanoMin) || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate), \n isoDate;\n}\n\nfunction checkIsoDateTimeInBounds(isoDateTime) {\n return checkIsoDateTimeEpochNanoInBounds(isoDateTimeToEpochNano(isoDateTime)), isoDateTime;\n}\n\nfunction checkIsoDateTimeEpochNanoInBounds(epochNano) {\n return (epochNano <= plainDateEpochNanoMin || epochNano >= epochNanoMax + bigNanoInUtcDay) && throwRangeError(outOfBoundsDate), \n epochNano;\n}\n\nfunction checkEpochNanoInBounds(epochNano) {\n return (epochNano < epochNanoMin || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate), \n epochNano;\n}\n\nfunction isoDateTimeAndOffsetToEpochNano(isoDateTime, offsetNano) {\n return checkEpochNanoInBounds(isoDateToEpochNano(isoDateTime) + BigInt(timeFieldsToNano(isoDateTime) - offsetNano));\n}\n\nfunction roundNumberToInc(num, roundingInc, roundingMode) {\n return roundWithMode(num / roundingInc, roundingMode) * roundingInc;\n}\n\nfunction roundWithMode(num, roundingMode) {\n return roundingModeFuncs[roundingMode](num);\n}\n\nfunction totalRelativeUnit(wholeValue, sign, endEpochNano, moveValueToEpochNano) {\n const unitWindow = clampRelativeUnitValue(wholeValue, sign, moveValueToEpochNano, endEpochNano);\n return interpolateRelativeUnitWindow(unitWindow, Number(endEpochNano - unitWindow.I) / Number(unitWindow.O - unitWindow.I));\n}\n\nfunction roundRelativeUnit(wholeValue, sign, endEpochNano, moveValueToEpochNano, roundingInc, roundingMode) {\n return roundRelativeUnitWindow(clampRelativeUnitValue(divTrunc(wholeValue, roundingInc) * roundingInc, roundingInc * sign, moveValueToEpochNano, endEpochNano), endEpochNano, roundingInc, roundingMode);\n}\n\nfunction roundRelativeUnitWindow(unitWindow, endEpochNano, roundingInc, roundingMode) {\n return roundNumberToInc(interpolateRelativeUnitWindow(unitWindow, computeEpochNanoFrac(endEpochNano, unitWindow.I, unitWindow.O)), roundingInc, roundingMode);\n}\n\nfunction clampRelativeUnitValue(startValue, valueDelta, moveValueToEpochNano, epochNanoProgress) {\n let unitWindow = computeRelativeUnitWindow(startValue, valueDelta, moveValueToEpochNano);\n return ((epochNanoProgress, epochNano0, epochNano1, sign) => sign > 0 ? epochNano0 <= epochNanoProgress && epochNanoProgress <= epochNano1 : epochNano1 <= epochNanoProgress && epochNanoProgress <= epochNano0)(epochNanoProgress, unitWindow.I, unitWindow.O, Math.sign(valueDelta)) || (unitWindow = computeRelativeUnitWindow(startValue + valueDelta, valueDelta, moveValueToEpochNano)), \n unitWindow;\n}\n\nfunction computeRelativeUnitWindow(startValue, valueDelta, moveValueToEpochNano) {\n const endValue = startValue + valueDelta;\n return {\n ve: startValue,\n qe: endValue,\n I: moveValueToEpochNano(startValue),\n O: moveValueToEpochNano(endValue)\n };\n}\n\nfunction interpolateRelativeUnitWindow(unitWindow, fraction) {\n return unitWindow.ve + fraction * (unitWindow.qe - unitWindow.ve);\n}\n\nfunction computeEpochNanoFrac(epochNanoProgress, epochNano0, epochNano1) {\n const denomBig = epochNano1 - epochNano0;\n const numeratorBig = epochNanoProgress - epochNano0;\n if (!numeratorBig) {\n return 0;\n }\n const absNumerator = numeratorBig < 0n ? -numeratorBig : numeratorBig;\n const absDenom = denomBig < 0n ? -denomBig : denomBig;\n const fracSign = compareBigInts(numeratorBig, 0n) === compareBigInts(denomBig, 0n) ? 1 : -1;\n return compareBigInts(absNumerator, absDenom) <= 0 ? absNumerator === absDenom ? fracSign : fabricateNearHalfFraction(compareBigInts(2n * absNumerator, absDenom), fracSign) : Number(numeratorBig) / Number(denomBig);\n}\n\nfunction createEpochNanoSlots(epochNano) {\n return {\n epochNanoseconds: epochNano\n };\n}\n\nfunction createZonedEpochNanoSlots(epochNano, timeZone, calendar) {\n return {\n calendar: calendar,\n timeZone: timeZone,\n epochNanoseconds: epochNano\n };\n}\n\nfunction createDateTimeSlots(isoDateTime, calendar) {\n return pluckProps(timeFieldNamesAsc, isoDateTime, createDateSlots(isoDateTime, calendar));\n}\n\nfunction createDateSlots(isoDate, calendar) {\n return pluckProps(calendarDateFieldNamesAsc, isoDate, {\n calendar: calendar\n });\n}\n\nfunction createTimeSlots(time) {\n return pluckProps(timeFieldNamesAsc, time);\n}\n\nfunction createDurationSlots(durationFields) {\n return pluckProps(durationFieldNamesAsc, durationFields, {\n sign: computeDurationSign(durationFields)\n });\n}\n\nfunction roundZonedEpochSlotsToUnit(slots, smallestUnit, roundingInc, roundingMode) {\n return createZonedEpochNanoSlots(6 === smallestUnit ? roundZonedEpochToDay(slots, roundingMode) : roundZonedEpochToTime(slots, smallestUnit, roundingInc, roundingMode), slots.timeZone, slots.calendar);\n}\n\nfunction computeZonedHoursInDay(slots) {\n const [epochNano0, epochNano1] = computeZonedDayEpochInterval(slots);\n return divideBigNanoToExactNumber(epochNano1 - epochNano0, nanoInHour);\n}\n\nfunction computeZonedStartOfDay(slots) {\n const {timeZone: timeZone, calendar: calendar} = slots;\n return createZonedEpochNanoSlots(getStartOfDayInstantFor(timeZone, combineDateAndTime(zonedEpochSlotsToIso(slots), timeFieldDefaults)), timeZone, calendar);\n}\n\nfunction alignZonedEpoch(computeAlignment, slots) {\n const {calendar: calendar, timeZone: timeZone} = slots;\n return getStartOfDayInstantFor(timeZone, computeAlignment(calendar, zonedEpochSlotsToIso(slots)));\n}\n\nfunction roundZonedEpochToInterval(computeInterval, slots, roundingMode) {\n const {calendar: calendar, timeZone: timeZone} = slots;\n const isoSlots = zonedEpochSlotsToIso(slots);\n const [isoDateTime0, isoDateTime1] = computeInterval(calendar, isoSlots);\n return roundZonedEpochToBounds(slots.epochNanoseconds, getStartOfDayInstantFor(timeZone, isoDateTime0), getStartOfDayInstantFor(timeZone, isoDateTime1), roundingMode);\n}\n\nfunction roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps, isZoned) {\n if (0 === smallestUnit && 1 === roundingInc) {\n return durationFields;\n }\n const sign = computeDurationSign(durationFields) || 1;\n const nudgeFunc = isUniformUnit(smallestUnit, isZoned) ? isZoned && smallestUnit < 6 && largestUnit >= 6 ? nudgeZonedTimeDuration : nudgeDayTimeDuration : nudgeRelativeDuration;\n let [roundedDurationFields, roundedEpochNano, grewBigUnit] = nudgeFunc(sign, durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps);\n return grewBigUnit && 7 !== smallestUnit && (roundedDurationFields = ((durationFields, endEpochNano, largestUnit, smallestUnit, sign, relativeOps) => {\n for (let currentUnit = smallestUnit + 1; currentUnit <= largestUnit; currentUnit++) {\n if (7 === currentUnit && 7 !== largestUnit) {\n continue;\n }\n const baseDurationFields = clearDurationFields(currentUnit, durationFields);\n baseDurationFields[durationFieldNamesAsc[currentUnit]] += sign;\n const thresholdCompare = compareBigInts(endEpochNano, moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields));\n if (thresholdCompare && thresholdCompare !== sign) {\n break;\n }\n durationFields = baseDurationFields;\n }\n return durationFields;\n })(roundedDurationFields, roundedEpochNano, largestUnit, Math.max(6, smallestUnit), sign, relativeOps)), \n roundedDurationFields;\n}\n\nfunction roundDayTimeDurationByInc(durationFields, nanoInc, roundingMode) {\n const maxUnit = Math.min(getMaxDurationUnit(durationFields), 6);\n return nanoToDurationDayTimeFields(roundBigNanoToInc(durationDayTimeToBigNano(durationFields), BigInt(nanoInc), roundingMode), maxUnit);\n}\n\nfunction roundZonedEpochToDay(slots, roundingMode) {\n const [epochNano0, epochNano1] = computeZonedDayEpochInterval(slots);\n return roundZonedEpochToBounds(slots.epochNanoseconds, epochNano0, epochNano1, roundingMode);\n}\n\nfunction roundZonedEpochToTime(slots, smallestUnit, roundingInc, roundingMode) {\n if (0 === smallestUnit && 1 === roundingInc) {\n return slots.epochNanoseconds;\n }\n const isoDateTime = zonedEpochSlotsToIso(slots);\n return getMatchingInstantFor(slots.timeZone, roundDateTimeToInc(isoDateTime, computeNanoInc(smallestUnit, roundingInc), roundingMode), isoDateTime.offsetNanoseconds, 2, 0, 1);\n}\n\nfunction roundDateTimeToInc(isoDateTime, nanoInc, roundingMode) {\n const [roundedTimeFields, dayDelta] = roundTimeToInc(isoDateTime, nanoInc, roundingMode);\n const roundedIsoDateTime = combineDateAndTime(moveDateByDays(isoDateTime, dayDelta), roundedTimeFields);\n return checkIsoDateTimeInBounds(roundedIsoDateTime), roundedIsoDateTime;\n}\n\nfunction roundTimeToInc(timeFields, nanoInc, roundingMode) {\n return nanoToTimeAndDay(roundNumberToInc(timeFieldsToNano(timeFields), nanoInc, roundingMode));\n}\n\nfunction nudgeRelativeDuration(sign, durationFields, endEpochNano, _largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps) {\n const smallestUnitFieldName = durationFieldNamesAsc[smallestUnit];\n const baseDurationFields = clearDurationFields(smallestUnit, durationFields);\n 7 === smallestUnit && (durationFields = {\n ...durationFields,\n weeks: durationFields.weeks + Math.trunc(durationFields.days / 7)\n });\n const truncedVal = divTrunc(durationFields[smallestUnitFieldName], roundingInc) * roundingInc;\n const nudgeWindow = clampRelativeUnitValue(truncedVal, roundingInc * sign, value => (baseDurationFields[smallestUnitFieldName] = value, \n moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields)), endEpochNano);\n const roundedVal = roundRelativeUnitWindow(nudgeWindow, endEpochNano, roundingInc, roundingMode);\n return baseDurationFields[smallestUnitFieldName] = roundedVal, [ baseDurationFields, roundedVal === nudgeWindow.qe ? nudgeWindow.O : nudgeWindow.I, roundedVal !== truncedVal ];\n}\n\nfunction nudgeZonedTimeDuration(sign, durationFields, endEpochNano, _largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps) {\n const timeNano = Number(durationTimeToBigNano(durationFields));\n const nanoInc = computeNanoInc(smallestUnit, roundingInc);\n let roundedTimeNano = roundNumberToInc(timeNano, nanoInc, roundingMode);\n const dateDurationFields = {\n ...durationFields,\n ...durationTimeFieldDefaults\n };\n const dayWindow = clampRelativeUnitValue(dateDurationFields.days, sign, days => (dateDurationFields.days = days, \n moveRelativeMarkerToEpochNano(relativeOps, dateDurationFields)), endEpochNano);\n const dayEpochNano0 = dayWindow.I;\n const dayEpochNano1 = dayWindow.O;\n const beyondDayNano = roundedTimeNano - Number(dayEpochNano1 - dayEpochNano0);\n let dayDelta = 0;\n beyondDayNano && Math.sign(beyondDayNano) !== sign ? endEpochNano = dayEpochNano0 + BigInt(roundedTimeNano) : (dayDelta += sign, \n roundedTimeNano = roundNumberToInc(beyondDayNano, nanoInc, roundingMode), endEpochNano = dayEpochNano1 + BigInt(roundedTimeNano));\n const durationTimeFields = nanoToDurationTimeFields(roundedTimeNano);\n return [ {\n ...durationFields,\n ...durationTimeFields,\n days: durationFields.days + dayDelta\n }, endEpochNano, Boolean(dayDelta) ];\n}\n\nfunction nudgeDayTimeDuration(sign, durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode) {\n const bigNano = durationDayTimeToBigNano(durationFields);\n const roundedBigNano = roundBigNanoToInc(bigNano, computeBigNanoInc(smallestUnit, roundingInc), roundingMode);\n const nanoDiff = roundedBigNano - bigNano;\n const expandedBigUnit = Math.sign(Number(roundedBigNano / bigNanoInUtcDay) - Number(bigNano / bigNanoInUtcDay)) === sign;\n const roundedDayTimeFields = nanoToDurationDayTimeFields(roundedBigNano, Math.min(largestUnit, 6));\n return [ {\n ...durationFields,\n ...roundedDayTimeFields\n }, endEpochNano + nanoDiff, expandedBigUnit ];\n}\n\nfunction computeZonedDayEpochInterval(slots) {\n const {timeZone: timeZone} = slots;\n const isoDateTime0 = combineDateAndTime(zonedEpochSlotsToIso(slots), timeFieldDefaults);\n const isoDateTime1 = combineDateAndTime(moveDateByDays(isoDateTime0, 1), timeFieldDefaults);\n return [ getStartOfDayInstantFor(timeZone, isoDateTime0), getStartOfDayInstantFor(timeZone, isoDateTime1) ];\n}\n\nfunction roundZonedEpochToBounds(epochNano, epochNano0, epochNano1, roundingMode) {\n return roundWithMode(computeEpochNanoFrac(epochNano < epochNano1 ? epochNano : epochNano1 - 1n, epochNano0, epochNano1), roundingMode) ? epochNano1 : epochNano0;\n}\n\nfunction roundToMinute(offsetNano) {\n return roundNumberToInc(offsetNano, nanoInMinute, 7);\n}\n\nfunction roundBigNanoToInc(bigNano, bigNanoInc, roundingMode) {\n return roundBigNanoToIncWithTail(bigNano, bigNanoInc, roundingMode, bigNano / bigNanoInc % 2n);\n}\n\nfunction roundBigNanoToDayOriginInc(bigNano, bigNanoInc, roundingMode) {\n const [day, timeNano] = divModFloorBigInt(bigNano, bigNanoInUtcDay);\n const dayOriginNano = day * bigNanoInUtcDay;\n return dayOriginNano + roundBigNanoToIncWithTail(timeNano, bigNanoInc, roundingMode, (dayOriginNano / bigNanoInc + timeNano / bigNanoInc) % 2n);\n}\n\nfunction roundBigNanoToIncWithTail(bigNano, bigNanoInc, roundingMode, quotientTail) {\n const quotient = bigNano / bigNanoInc;\n const remainder = bigNano % bigNanoInc;\n let fraction = 0;\n remainder && (fraction = fabricateNearHalfFraction(compareBigInts(2n * (remainder < 0n ? -remainder : remainder), bigNanoInc), Math.sign(Number(remainder))));\n const roundedTail = roundWithMode(Number(quotientTail) + fraction, roundingMode);\n return (quotient - quotientTail + BigInt(roundedTail)) * bigNanoInc;\n}\n\nfunction computeNanoInc(smallestUnit, roundingInc) {\n return unitNanoMap[smallestUnit] * roundingInc;\n}\n\nfunction computeBigNanoInc(smallestUnit, roundingInc) {\n return BigInt(unitNanoMap[smallestUnit]) * BigInt(roundingInc);\n}\n\nconst zonedEpochSlotsToIso = /*@__PURE__*/ memoize(_zonedEpochSlotsToIso, WeakMap);\n\nfunction _zonedEpochSlotsToIso(slots) {\n const {epochNanoseconds: epochNanoseconds, timeZone: timeZone} = slots;\n const offsetNanoseconds = timeZone.B(epochNanoseconds);\n return {\n ...epochNanoToIsoDateTime(epochNanoseconds + BigInt(offsetNanoseconds)),\n offsetNanoseconds: offsetNanoseconds\n };\n}\n\nfunction getMatchingInstantFor(timeZone, isoDateTime, offsetNano, offsetDisambig = 0, epochDisambig = 0, epochFuzzy, hasZ) {\n if (void 0 !== offsetNano && 1 === offsetDisambig && (1 === offsetDisambig || hasZ)) {\n return isoDateTimeAndOffsetToEpochNano(isoDateTime, offsetNano);\n }\n 2 !== offsetDisambig && 0 !== offsetDisambig || checkIsoDateInBounds(isoDateTime, 0);\n const possibleEpochNanos = timeZone.R(isoDateTime);\n if (void 0 !== offsetNano && 3 !== offsetDisambig) {\n const matchingEpochNano = ((possibleEpochNanos, isoDateTime, offsetNano, fuzzy) => {\n const zonedEpochNano = isoDateTimeToEpochNano(isoDateTime);\n fuzzy && (offsetNano = roundToMinute(offsetNano));\n for (const possibleEpochNano of possibleEpochNanos) {\n let possibleOffsetNano = Number(zonedEpochNano - possibleEpochNano);\n if (fuzzy && (possibleOffsetNano = roundToMinute(possibleOffsetNano)), possibleOffsetNano === offsetNano) {\n return possibleEpochNano;\n }\n }\n })(possibleEpochNanos, isoDateTime, offsetNano, epochFuzzy);\n if (void 0 !== matchingEpochNano) {\n return matchingEpochNano;\n }\n 0 === offsetDisambig && throwRangeError(\"Invalid TimeZone offset\");\n }\n return hasZ ? isoDateTimeToEpochNano(isoDateTime) : getSingleInstantFor(timeZone, isoDateTime, epochDisambig, possibleEpochNanos);\n}\n\nfunction getSingleInstantFor(timeZone, isoDateTime, disambig = 0, possibleEpochNanos = timeZone.R(isoDateTime)) {\n if (1 === possibleEpochNanos.length) {\n return possibleEpochNanos[0];\n }\n if (1 === disambig && throwRangeError(\"Ambiguous offset\"), possibleEpochNanos.length) {\n return possibleEpochNanos[3 === disambig ? 1 : 0];\n }\n const zonedEpochNano = isoDateTimeToEpochNano(isoDateTime);\n const gapNano = ((timeZone, zonedEpochNano) => {\n const startOffsetNano = timeZone.B(zonedEpochNano - bigNanoInUtcDay);\n return (gapNano => (gapNano > nanoInUtcDay && throwRangeError(\"Out-of-bounds TimeZone gap\"), \n gapNano))(timeZone.B(zonedEpochNano + bigNanoInUtcDay) - startOffsetNano);\n })(timeZone, zonedEpochNano);\n const shiftedIsoDateTime = epochNanoToIsoDateTime(zonedEpochNano + BigInt(gapNano * (2 === disambig ? -1 : 1)));\n return (possibleEpochNanos = timeZone.R(shiftedIsoDateTime))[2 === disambig ? 0 : possibleEpochNanos.length - 1];\n}\n\nfunction getStartOfDayInstantFor(timeZone, isoDateTime) {\n const possibleEpochNanos = timeZone.R(isoDateTime);\n if (possibleEpochNanos.length) {\n return possibleEpochNanos[0];\n }\n const zonedEpochNanoDayBefore = isoDateTimeToEpochNano(isoDateTime) - bigNanoInUtcDay;\n return timeZone.C(zonedEpochNanoDayBefore, 1);\n}\n\nfunction moveYearMonth(calendar, isoDate, durationSlots, overflow = 0) {\n computeDurationSign(durationSlots) && getMaxDurationUnit(durationSlots) < 8 && throwRangeError(\"Cannot use small units\");\n const first = checkIsoDateInBounds(moveToStartOfMonth(calendar, isoDate));\n return moveToStartOfMonth(calendar, moveDate(calendar, first, durationSlots, overflow));\n}\n\nfunction moveYearMonthByUnits(calendar, isoDate, years, months, overflow) {\n const first = checkIsoDateInBounds(moveToStartOfMonth(calendar, isoDate));\n return moveToStartOfMonth(calendar, years || months ? checkIsoDateInBounds(moveDateByCalendarUnits(calendar, first, years, months, overflow)) : first);\n}\n\nfunction moveZonedEpochSlots(slots, durationFields, overflow = 0) {\n const {calendar: calendar, epochNanoseconds: epochNano, timeZone: timeZone} = slots;\n const timeOnlyNano = durationTimeToBigNano(durationFields);\n let movedEpochNano = epochNano;\n if (durationHasDateParts(durationFields)) {\n const isoDateTime = zonedEpochSlotsToIso(slots);\n movedEpochNano = getSingleInstantFor(timeZone, combineDateAndTime(moveDate(calendar, isoDateTime, {\n ...durationFields,\n ...durationTimeFieldDefaults\n }, overflow), isoDateTime)) + timeOnlyNano;\n } else {\n movedEpochNano += timeOnlyNano;\n }\n return {\n ...slots,\n epochNanoseconds: checkEpochNanoInBounds(movedEpochNano)\n };\n}\n\nfunction moveDateTime(calendar, isoDateTime, durationFields, overflow = 0) {\n const [movedTimeFields, dayDelta] = moveTime(isoDateTime, durationFields);\n return checkIsoDateTimeInBounds(combineDateAndTime(moveDate(calendar, isoDateTime, {\n ...durationFields,\n ...durationTimeFieldDefaults,\n days: durationFields.days + dayDelta\n }, overflow), movedTimeFields));\n}\n\nfunction moveDateTimeByNano(fields, delta) {\n const [time, days] = moveTimeByNano(fields, delta);\n return checkIsoDateTimeInBounds(combineDateAndTime(moveDateByDays(fields, days), time));\n}\n\nfunction moveTime(timeFields, durationFields) {\n return moveTimeByNano(timeFields, durationTimeToBigNano(durationFields));\n}\n\nfunction moveEpochNano(epochNano, durationFields) {\n return moveEpochNanoByNano(epochNano, (durationHasDateParts(fields = durationFields) && throwRangeError(\"Cannot use large units\"), \n durationTimeToBigNano(fields)));\n var fields;\n}\n\nfunction moveDate(calendar, isoDate, durationFields, overflow = 0) {\n let {years: years, months: months, weeks: weeks, days: days} = durationFields;\n let movedIsoDate;\n if (days += Number(durationTimeToBigNano(durationFields) / bigNanoInUtcDay), years || months) {\n movedIsoDate = moveDateByCalendarUnits(calendar, isoDate, years, months, overflow);\n } else {\n if (!weeks && !days) {\n return isoDate;\n }\n movedIsoDate = isoDate;\n }\n return (weeks || days) && (movedIsoDate = moveDateByDays(movedIsoDate, 7 * weeks + days)), \n checkIsoDateInBounds(movedIsoDate);\n}\n\nfunction moveToStartOfMonth(calendar, isoDate) {\n return moveDateByDays(isoDate, 1 - computeCalendarDateFields(calendar, isoDate).day);\n}\n\nfunction moveDateByCalendarUnits(calendar, isoDate, years, months, overflow) {\n const dateParts = computeCalendarDateFields(calendar, isoDate);\n let {year: year, month: month, day: day} = dateParts;\n if (years) {\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);\n year += years, month = resolveMonthInMovedYear(calendar, monthCodeNumber, isLeapMonth, calendar ? calendar.p(year) : void 0, overflow), \n month = clampEntity(\"month\", month, 1, computeCalendarMonthsInYearForYear(calendar, year), overflow);\n }\n if (months) {\n const yearMonthParts = addCalendarMonths(calendar, year, month, months);\n ({year: year, month: month} = yearMonthParts);\n }\n return day = clampEntity(\"day\", day, 1, computeCalendarDaysInMonthForYearMonth(calendar, year, month), overflow), \n computeCalendarIsoFieldsFromParts(calendar, year, month, day);\n}\n\nfunction addCalendarMonths(calendar, year, month, monthDelta) {\n return calendar ? calendar.ae(year, month, monthDelta) : addIsoMonths(year, month, monthDelta);\n}\n\nfunction resolveMonthInMovedYear(calendar, monthCodeNumber, isLeapMonth, targetLeapMonth, overflow) {\n if (isLeapMonth) {\n const leapMonthMeta = calendar ? calendar.l : void 0;\n return void 0 !== targetLeapMonth && (leapMonthMeta < 0 || targetLeapMonth === monthCodeNumber + 1) ? targetLeapMonth : (1 === overflow && throwRangeError(invalidLeapMonth), \n leapMonthMeta < 0 ? -leapMonthMeta : monthCodeNumber);\n }\n return monthCodeNumberToMonth(monthCodeNumber, 0, targetLeapMonth);\n}\n\nfunction moveTimeByNano(timeFields, durationBigNano) {\n const durDays = Number(durationBigNano / bigNanoInUtcDay);\n const durTimeNano = Number(durationBigNano % bigNanoInUtcDay);\n const [newTimeFields, overflowDays] = nanoToTimeAndDay(timeFieldsToNano(timeFields) + durTimeNano);\n return [ newTimeFields, durDays + overflowDays ];\n}\n\nfunction moveEpochNanoByNano(epochNano, deltaNano) {\n return checkEpochNanoInBounds(epochNano + deltaNano);\n}\n\nfunction moveDateByDays(isoDate, days) {\n return days ? epochDaysToIsoDate(isoDateToEpochDays(isoDate) + days) : isoDate;\n}\n\nfunction getCommonCalendar(a, b) {\n return getCalendarSlotId(a) !== getCalendarSlotId(b) && throwRangeError(\"Mismatching Calendars\"), \n a;\n}\n\nfunction getCommonTimeZone(a, b) {\n return a.m !== b.m && throwRangeError(\"Mismatching TimeZones\"), \n a;\n}\n\nfunction getZonedTimeZoneId(slots) {\n return slots.timeZone.id;\n}\n\nfunction diffZonedDateTimesRounded(calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode) {\n return largestUnit < 6 ? diffEpochNanosRounded(startZoned.epochNanoseconds, endZoned.epochNanoseconds, largestUnit, smallestUnit, roundingInc, roundingMode) : ((calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode) => {\n const endEpochNano = endZoned.epochNanoseconds;\n if (endEpochNano === startZoned.epochNanoseconds) {\n return durationFieldDefaults;\n }\n let durationFields;\n const timeZone = getCommonTimeZone(startZoned.timeZone, endZoned.timeZone);\n return durationFields = diffZonedEpochsExact(timeZone, calendar, startZoned, endZoned, largestUnit), \n durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, createZonedRelativeOps(calendar, timeZone, startZoned), 1), \n durationFields;\n })(calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode);\n}\n\nfunction diffDateTimesRounded(calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode) {\n return largestUnit <= 6 ? diffEpochNanosRounded(isoDateTimeToEpochNano(startIsoDateTime), isoDateTimeToEpochNano(endIsoDateTime), largestUnit, smallestUnit, roundingInc, roundingMode) : ((calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode) => {\n const endEpochNano = isoDateTimeToEpochNano(endIsoDateTime);\n const sign = compareBigInts(endEpochNano, isoDateTimeToEpochNano(startIsoDateTime));\n if (!sign) {\n return durationFieldDefaults;\n }\n let durationFields;\n return durationFields = diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit), \n durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, ((calendar, origin) => ({\n ne: isoDateTimeToEpochNano(origin),\n ke: duration => isoDateTimeToEpochNano(combineDateAndTime(moveDate(calendar, origin, duration), origin))\n }))(calendar, startIsoDateTime)), durationFields;\n })(calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode);\n}\n\nfunction diffYearMonthsRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode) {\n const firstOfMonth0 = moveToStartOfMonth(calendar, startIsoDate);\n const firstOfMonth1 = moveToStartOfMonth(calendar, endIsoDate);\n return compareIsoDates(firstOfMonth0, firstOfMonth1) ? diffDateCalendarUnitsRounded(calendar, checkIsoDateInBounds(firstOfMonth0), checkIsoDateInBounds(firstOfMonth1), largestUnit, smallestUnit, roundingInc, roundingMode, 8) : durationFieldDefaults;\n}\n\nfunction diffDatesRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision = 6) {\n return 6 === largestUnit ? diffEpochNanosRounded(isoDateToEpochNano(startIsoDate), isoDateToEpochNano(endIsoDate), largestUnit, smallestUnit, roundingInc, roundingMode) : diffDateCalendarUnitsRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision);\n}\n\nfunction diffTimesRounded(plainTimeSlots0, plainTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode) {\n const timeDiffNano = roundNumberToInc(timeFieldsToNano(plainTimeSlots1) - timeFieldsToNano(plainTimeSlots0), computeNanoInc(smallestUnit, roundingInc), roundingMode);\n return {\n ...durationFieldDefaults,\n ...nanoToDurationTimeFields(timeDiffNano, largestUnit)\n };\n}\n\nfunction diffDateCalendarUnitsRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision = 6) {\n const endEpochNano = isoDateToEpochNano(endIsoDate);\n if (!compareIsoDates(startIsoDate, endIsoDate)) {\n return durationFieldDefaults;\n }\n let durationFields;\n return durationFields = diffCalendarDates(calendar, startIsoDate, endIsoDate, largestUnit), \n smallestUnit === smallestPrecision && 1 === roundingInc || (durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, createDateRelativeOps(calendar, startIsoDate))), \n durationFields;\n}\n\nfunction diffEpochNanosRounded(startEpochNano, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode) {\n return {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(roundBigNanoToInc(endEpochNano - startEpochNano, computeBigNanoInc(smallestUnit, roundingInc), roundingMode), largestUnit)\n };\n}\n\nfunction diffZonedEpochsExact(timeZone, calendar, startZoned, endZoned, largestUnit) {\n return largestUnit < 6 ? {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(endZoned.epochNanoseconds - startZoned.epochNanoseconds, largestUnit)\n } : ((timeZone, startZoned, endZoned) => {\n const sign = compareBigInts(endZoned.epochNanoseconds, startZoned.epochNanoseconds);\n if (!sign) {\n return durationFieldDefaults;\n }\n if (!compareIsoDates(zonedEpochSlotsToIso(startZoned), zonedEpochSlotsToIso(endZoned))) {\n return {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(endZoned.epochNanoseconds - startZoned.epochNanoseconds, 5)\n };\n }\n const [startIsoDateTime, endIsoDate, remainderNano] = prepareZonedEpochDiff(timeZone, startZoned, endZoned, sign);\n return {\n ...(start = startIsoDateTime, end = endIsoDate, diffCalendarDates(calendar, start, end, largestUnit)),\n ...nanoToDurationTimeFields(remainderNano)\n };\n var start, end;\n })(timeZone, startZoned, endZoned);\n}\n\nfunction diffDateTimesExact(calendar, startIsoDateTime, endIsoDateTime, largestUnit) {\n const startEpochNano = isoDateTimeToEpochNano(startIsoDateTime);\n const endEpochNano = isoDateTimeToEpochNano(endIsoDateTime);\n const sign = compareBigInts(endEpochNano, startEpochNano);\n return sign ? largestUnit <= 6 ? {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(endEpochNano - startEpochNano, largestUnit)\n } : diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit) : durationFieldDefaults;\n}\n\nfunction diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit) {\n let diffEndDate = endIsoDateTime;\n let timeNano = timeFieldsToNano(endIsoDateTime) - timeFieldsToNano(startIsoDateTime);\n return Math.sign(timeNano) === -sign && (diffEndDate = moveDateByDays(endIsoDateTime, -sign), \n timeNano += nanoInUtcDay * sign), {\n ...diffCalendarDates(calendar, startIsoDateTime, diffEndDate, largestUnit),\n ...nanoToDurationTimeFields(timeNano)\n };\n}\n\nfunction prepareZonedEpochDiff(timeZone, startZoned, endZoned, sign) {\n const startIsoDate = zonedEpochSlotsToIso(startZoned);\n const endIsoDate = zonedEpochSlotsToIso(endZoned);\n const endEpochNano = endZoned.epochNanoseconds;\n let dayCorrection = 0;\n const timeDiffNano = timeFieldsToNano(endIsoDate) - timeFieldsToNano(startIsoDate);\n Math.sign(timeDiffNano) === -sign && dayCorrection++;\n const maxDayCorrection = dayCorrection + (sign > 0 ? 1 : 0);\n for (;;dayCorrection++) {\n const midIsoDate = moveDateByDays(endIsoDate, dayCorrection * -sign);\n const midEpochNano = getSingleInstantFor(timeZone, combineDateAndTime(midIsoDate, startIsoDate));\n if (dayCorrection === maxDayCorrection || compareBigInts(endEpochNano, midEpochNano) !== -sign) {\n return [ startIsoDate, midIsoDate, Number(endEpochNano - midEpochNano) ];\n }\n }\n}\n\nfunction diffCalendarDates(calendar, startIsoDate, endIsoDate, largestUnit) {\n if (largestUnit <= 7) {\n return ((asWeeks, start, end) => {\n const days = countIsoDays(start, end);\n return asWeeks ? {\n ...durationFieldDefaults,\n weeks: divTrunc(days, 7),\n days: modTrunc(days, 7)\n } : {\n ...durationFieldDefaults,\n days: days\n };\n })(7 === largestUnit, startIsoDate, endIsoDate);\n }\n const yearMonthDayStart = computeCalendarDateFields(calendar, startIsoDate);\n const yearMonthDayEnd = computeCalendarDateFields(calendar, endIsoDate);\n if (8 === largestUnit) {\n const {year: year0, month: month0, day: day0} = yearMonthDayStart;\n const {year: year1, month: month1, day: day1} = yearMonthDayEnd;\n const sign = Math.sign(compareNumbers(year1, year0) || compareNumbers(month1, month0) || countIsoDays(startIsoDate, endIsoDate));\n let months = 0;\n let days = 0;\n if (sign) {\n months = calendar ? calendar.ee(year0, month0, year1, month1) : diffIsoMonthSlots(year0, month0, year1, month1);\n let anchorIsoDate = moveDateByCalendarUnits(calendar, startIsoDate, 0, months, 0);\n sign * compareNumbers(day0, day1) > 0 && (months -= sign, anchorIsoDate = moveDateByCalendarUnits(calendar, startIsoDate, 0, months, 0)), \n days = countIsoDays(anchorIsoDate, endIsoDate);\n }\n return {\n ...durationFieldDefaults,\n months: months,\n days: days\n };\n }\n const {year: year0, month: month0, day: day0} = yearMonthDayStart;\n let {year: year1, month: month1, day: day1} = yearMonthDayEnd;\n let yearDiff = year1 - year0;\n let monthDiff = month1 - month0;\n let dayDiff = day1 - day0;\n if (yearDiff || monthDiff) {\n const sign = Math.sign(yearDiff || monthDiff);\n let daysInMonth1 = computeCalendarDaysInMonthForYearMonth(calendar, year1, month1);\n let dayCorrect = 0;\n if (Math.sign(day1 - day0) === -sign) {\n const origDaysInMonth1 = daysInMonth1;\n const yearMonthParts = addCalendarMonths(calendar, year1, month1, -sign);\n ({year: year1, month: month1} = yearMonthParts), yearDiff = year1 - year0, monthDiff = month1 - month0, \n daysInMonth1 = computeCalendarDaysInMonthForYearMonth(calendar, year1, month1), \n dayCorrect = sign < 0 ? -origDaysInMonth1 : daysInMonth1;\n }\n if (dayDiff = day1 - Math.min(day0, daysInMonth1) + dayCorrect, yearDiff) {\n const [monthCodeNumber0, isLeapMonth0] = computeCalendarMonthCodeParts(calendar, year0, month0);\n const [monthCodeNumber1, isLeapMonth1] = computeCalendarMonthCodeParts(calendar, year1, month1);\n const leapMonthMeta = calendar ? calendar.l : void 0;\n if (monthDiff = void 0 !== leapMonthMeta && isLeapMonth0 && !isLeapMonth1 && (leapMonthMeta < 0 ? sign > 0 && monthCodeNumber1 === -leapMonthMeta : sign < 0 && monthCodeNumber1 === monthCodeNumber0) ? 0 : monthCodeNumber1 - monthCodeNumber0 || Number(isLeapMonth1) - Number(isLeapMonth0), \n Math.sign(monthDiff) === -sign) {\n const monthCorrect = sign < 0 && -computeCalendarMonthsInYearForYear(calendar, year1);\n year1 -= sign, yearDiff = year1 - year0, monthDiff = month1 - resolveMonthInMovedYear(calendar, monthCodeNumber0, isLeapMonth0, calendar ? calendar.p(year1) : void 0, 0) + (monthCorrect || computeCalendarMonthsInYearForYear(calendar, year1));\n } else if (calendar) {\n const month0Projected = resolveMonthInMovedYear(calendar, monthCodeNumber0, isLeapMonth0, calendar.p(year1), 0);\n monthDiff = calendar.ee(year1, month0Projected, year1, month1);\n }\n }\n }\n return {\n ...durationFieldDefaults,\n years: yearDiff,\n months: monthDiff,\n days: dayDiff\n };\n}\n\nfunction compareIsoDates(isoDate0, isoDate1) {\n return compareNumbers(isoDate0.year, isoDate1.year) || compareNumbers(isoDate0.month, isoDate1.month) || compareNumbers(isoDate0.day, isoDate1.day);\n}\n\nfunction countIsoDays(startIsoDate, endIsoDate) {\n return isoDateToEpochDays(endIsoDate) - isoDateToEpochDays(startIsoDate);\n}\n\nfunction spanRelativeDuration(relativeToSlots, durationFields, largestUnit) {\n return isZonedEpochSlots(relativeToSlots) ? ((relativeToSlots, durationFields, largestUnit) => {\n const {calendar: calendar, timeZone: timeZone} = relativeToSlots;\n const endSlots = moveZonedEpochSlots(relativeToSlots, durationFields);\n return [ diffZonedEpochsExact(timeZone, calendar, relativeToSlots, endSlots, largestUnit), endSlots.epochNanoseconds, createZonedRelativeOps(calendar, timeZone, relativeToSlots) ];\n })(relativeToSlots, durationFields, largestUnit) : ((relativeToSlots, durationFields, largestUnit) => {\n const {calendar: calendar} = relativeToSlots;\n const origin = checkIsoDateTimeInBounds(combineDateAndTime(relativeToSlots, timeFieldDefaults));\n const end = moveDateTime(calendar, origin, durationFields);\n return [ diffDateTimesExact(calendar, origin, end, largestUnit), isoDateTimeToEpochNano(end), createDateRelativeOps(calendar, relativeToSlots) ];\n })(relativeToSlots, durationFields, largestUnit);\n}\n\nfunction moveRelativeEndpointToEpochNano(relativeToSlots, durationFields) {\n return isZonedEpochSlots(relativeToSlots) ? moveZonedEpochSlots(relativeToSlots, durationFields).epochNanoseconds : isoDateTimeToEpochNano(moveDateTime(relativeToSlots.calendar, combineDateAndTime(relativeToSlots, timeFieldDefaults), durationFields));\n}\n\nfunction moveRelativeMarkerToEpochNano(relativeOps, dateDuration) {\n return durationHasDateParts(dateDuration) ? relativeOps.ke(dateDuration) : relativeOps.ne;\n}\n\nfunction createZonedRelativeOps(calendar, timeZone, slots) {\n const origin = zonedEpochSlotsToIso(slots);\n return {\n ne: slots.epochNanoseconds,\n ke: duration => getSingleInstantFor(timeZone, combineDateAndTime(moveDate(calendar, origin, duration), origin))\n };\n}\n\nfunction createDateRelativeOps(calendar, origin) {\n return {\n ne: isoDateToEpochNano(origin),\n ke: duration => isoDateToEpochNano(moveDate(calendar, origin, duration))\n };\n}\n\nfunction isZonedEpochSlots(slots) {\n return \"timeZone\" in slots;\n}\n\nfunction isUniformUnit(unit, isZoned) {\n return unit <= 6 - (isZoned ? 1 : 0);\n}\n\nfunction nanoToGivenFields(nano, largestUnit, fieldNames) {\n const fields = {};\n for (let unit = largestUnit; unit >= 0; unit--) {\n const divisor = unitNanoMap[unit];\n fields[fieldNames[unit]] = divTrunc(nano, divisor), nano = modTrunc(nano, divisor);\n }\n return fields;\n}\n\nconst maxDurationSeconds = 2 ** 53;\n\nfunction addDurationsWithoutRelativeTo(doSubtract, slots, otherSlots) {\n const maxUnit = Math.max(getMaxDurationUnit(slots), getMaxDurationUnit(otherSlots));\n return maxUnit > 6 && throwRangeError(\"Cannot use large units\"), ((doSubtract, slots, otherSlots, maxUnit) => createDurationSlots(validateDurationFields(((a, b, largestUnit, doSubtract) => {\n const combined = durationDayTimeToBigNano(a) + durationDayTimeToBigNano(b) * BigInt(doSubtract ? -1 : 1);\n return Number.isFinite(Number(combined / bigNanoInUtcDay)) || throwRangeError(outOfBoundsDate), \n {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(combined, largestUnit)\n };\n })(slots, otherSlots, maxUnit, doSubtract))))(doSubtract, slots, otherSlots, maxUnit);\n}\n\nfunction roundDuration(refineRelativeTo, slots, options) {\n const durationLargestUnit = getMaxDurationUnit(slots);\n const [largestUnit, smallestUnit, roundingInc, roundingMode, relativeToSlots] = refineDurationRoundOptions(options, durationLargestUnit, refineRelativeTo);\n if (!relativeToSlots && Math.max(durationLargestUnit, largestUnit) <= 6) {\n return createDurationSlots(validateDurationFields(((durationFields, largestUnit, smallestUnit, roundingInc, roundingMode) => {\n const roundedBigNano = roundBigNanoToInc(durationDayTimeToBigNano(durationFields), computeBigNanoInc(smallestUnit, roundingInc), roundingMode);\n return {\n ...durationFieldDefaults,\n ...nanoToDurationDayTimeFields(roundedBigNano, largestUnit)\n };\n })(slots, largestUnit, smallestUnit, roundingInc, roundingMode)));\n }\n relativeToSlots || throwRangeError(\"Missing relativeTo\");\n const isZoned = isZonedEpochSlots(relativeToSlots);\n if (!slots.sign && (!isZoned || largestUnit < 6)) {\n return slots;\n }\n const [balancedDuration, endEpochNano, relativeOps] = spanRelativeDuration(relativeToSlots, slots, largestUnit);\n return createDurationSlots(roundRelativeDuration(balancedDuration, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps, isZoned));\n}\n\nfunction absDuration(slots) {\n return -1 === slots.sign ? negateDuration(slots) : slots;\n}\n\nfunction negateDuration(slots) {\n return createDurationSlots(negateDurationFields(slots));\n}\n\nfunction negateDurationFields(fields) {\n const res = {};\n for (const fieldName of durationFieldNamesAsc) {\n res[fieldName] = -1 * fields[fieldName] || 0;\n }\n return res;\n}\n\nfunction computeDurationSign(fields, fieldNames = durationFieldNamesAsc) {\n let sign = 0;\n for (const fieldName of fieldNames) {\n const fieldSign = Math.sign(fields[fieldName]);\n fieldSign && (sign && sign !== fieldSign && throwRangeError(\"Cannot mix duration signs\"), \n sign = fieldSign);\n }\n return sign;\n}\n\nfunction validateDurationFields(fields) {\n for (const calendarUnit of durationCalendarFieldNamesAsc) {\n validateDurationCalendarUnit(calendarUnit, fields[calendarUnit]);\n }\n const bigNano = durationDayTimeToBigNano(fields);\n return validateDurationTimeUnit(Number(bigNano / bigNanoInSec)), fields;\n}\n\nfunction validateDurationCalendarUnit(unit, value) {\n return clampEntity(unit, value, -4294967295, 4294967295, 1);\n}\n\nfunction validateDurationTimeUnit(n) {\n Number.isSafeInteger(n) || throwRangeError(\"Out-of-bounds duration\");\n}\n\nfunction durationDayTimeToBigNano(fields) {\n return BigInt(fields.days) * bigNanoInUtcDay + durationTimeToBigNano(fields);\n}\n\nfunction durationTimeToBigNano(fields) {\n return BigInt(fields.hours) * bigNanoInHour + BigInt(fields.minutes) * bigNanoInMinute + durationSubMinuteToBigNano(fields);\n}\n\nfunction durationSubMinuteToBigNano(fields) {\n return BigInt(fields.seconds) * bigNanoInSec + BigInt(fields.milliseconds) * bigNanoInMilli + BigInt(fields.microseconds) * bigNanoInMicro + BigInt(fields.nanoseconds);\n}\n\nfunction nanoToDurationDayTimeFields(bigNano, largestUnit = 6) {\n const days = Number(bigNano / bigNanoInUtcDay);\n const timeNano = Number(bigNano % bigNanoInUtcDay);\n const unitNano = unitNanoMap[largestUnit];\n const largestUnitVal = largestUnit <= 3 ? Number(bigNano / BigInt(unitNano)) : days * (nanoInUtcDay / unitNano) + divTrunc(timeNano, unitNano);\n Number.isFinite(largestUnitVal) || throwRangeError(outOfBoundsDate), largestUnit <= 3 && Math.abs(largestUnitVal) / (nanoInSec / unitNanoMap[largestUnit]) >= maxDurationSeconds && throwRangeError(outOfBoundsDate);\n const dayTimeFields = nanoToGivenFields(timeNano, largestUnit, durationFieldNamesAsc);\n return dayTimeFields[durationFieldNamesAsc[largestUnit]] = largestUnitVal, dayTimeFields;\n}\n\nfunction nanoToDurationTimeFields(nano, largestUnit = 5) {\n return nanoToGivenFields(nano, largestUnit, durationFieldNamesAsc);\n}\n\nfunction durationHasDateParts(fields) {\n return Boolean(computeDurationSign(fields, durationDateFieldNamesAsc));\n}\n\nfunction getMaxDurationUnit(fields) {\n let unit = 9;\n for (;unit > 0 && !fields[durationFieldNamesAsc[unit]]; unit--) {}\n return unit;\n}\n\nfunction compareZonedEpochSlots(zonedEpochSlots0, zonedEpochSlots1) {\n return compareBigInts(zonedEpochSlots0.epochNanoseconds, zonedEpochSlots1.epochNanoseconds);\n}\n\nfunction compareDurations(refineRelativeTo, durationSlots0, durationSlots1, options) {\n const relativeToSlots = refineRelativeTo(normalizeOptions(options).relativeTo);\n const maxUnit = Math.max(getMaxDurationUnit(durationSlots0), getMaxDurationUnit(durationSlots1));\n return allPropsEqual(durationFieldNamesAsc, durationSlots0, durationSlots1) ? 0 : isUniformUnit(maxUnit, relativeToSlots && isZonedEpochSlots(relativeToSlots)) ? compareBigInts(durationDayTimeToBigNano(durationSlots0), durationDayTimeToBigNano(durationSlots1)) : (relativeToSlots || throwRangeError(\"Missing relativeTo\"), \n compareBigInts(moveRelativeEndpointToEpochNano(relativeToSlots, durationSlots0), moveRelativeEndpointToEpochNano(relativeToSlots, durationSlots1)));\n}\n\nfunction compareIsoDateTimeFields(isoDateTime0, isoDateTime1) {\n return compareIsoDateFields(isoDateTime0, isoDateTime1) || compareTimeFields(isoDateTime0, isoDateTime1);\n}\n\nfunction compareIsoDateFields(isoDate0, isoDate1) {\n return compareNumbers(isoDateToEpochDays(isoDate0), isoDateToEpochDays(isoDate1));\n}\n\nfunction compareTimeFields(timeFields0, timeFields1) {\n return compareNumbers(timeFieldsToNano(timeFields0), timeFieldsToNano(timeFields1));\n}\n\nfunction instantsEqual(instantSlots0, instantSlots1) {\n return !compareZonedEpochSlots(instantSlots0, instantSlots1);\n}\n\nfunction zonedDateTimesEqual(zonedDateTimeSlots0, zonedDateTimeSlots1) {\n return !compareZonedEpochSlots(zonedDateTimeSlots0, zonedDateTimeSlots1) && zonedDateTimeSlots0.timeZone.m === zonedDateTimeSlots1.timeZone.m && zonedDateTimeSlots0.calendar === zonedDateTimeSlots1.calendar;\n}\n\nfunction plainDateTimesEqual(plainDateTimeSlots0, plainDateTimeSlots1) {\n return !compareIsoDateTimeFields(plainDateTimeSlots0, plainDateTimeSlots1) && plainDateTimeSlots0.calendar === plainDateTimeSlots1.calendar;\n}\n\nfunction plainDatesEqual(plainDateSlots0, plainDateSlots1) {\n return !compareIsoDateFields(plainDateSlots0, plainDateSlots1) && plainDateSlots0.calendar === plainDateSlots1.calendar;\n}\n\nfunction plainYearMonthsEqual(plainYearMonthSlots0, plainYearMonthSlots1) {\n return !compareIsoDateFields(plainYearMonthSlots0, plainYearMonthSlots1) && plainYearMonthSlots0.calendar === plainYearMonthSlots1.calendar;\n}\n\nfunction plainMonthDaysEqual(plainMonthDaySlots0, plainMonthDaySlots1) {\n return !compareIsoDateFields(plainMonthDaySlots0, plainMonthDaySlots1) && plainMonthDaySlots0.calendar === plainMonthDaySlots1.calendar;\n}\n\nfunction plainTimesEqual(plainTimeSlots0, plainTimeSlots1) {\n return !compareTimeFields(plainTimeSlots0, plainTimeSlots1);\n}\n\nfunction getCalendarEraOrigins(calendar) {\n return 0 === calendar ? gregoryEraOrigins : calendar ? calendar.k : void 0;\n}\n\nfunction getCalendarFieldNames(calendar, fieldNames, fieldNamesWithEra = fieldNames) {\n return getCalendarEraOrigins(calendar) ? fieldNamesWithEra : fieldNames;\n}\n\nfunction resolveCalendarYear(fields, calendar) {\n const exoticCalendar = calendar || void 0;\n const eraOrigins = getCalendarEraOrigins(calendar);\n let {era: era, eraYear: eraYear, year: year} = fields;\n if (void 0 !== year && (year = toIntegerWithTrunc(year, \"year\")), void 0 !== eraYear && (eraYear = toIntegerWithTrunc(eraYear, \"eraYear\")), \n void 0 !== era || void 0 !== eraYear) {\n void 0 !== era && void 0 !== eraYear || throwTypeError(\"Mismatching era/eraYear\"), \n eraOrigins || throwRangeError(\"Forbidden era/eraYear\");\n const normalizedEra = normalizeEraName(era);\n const eraOrigin = eraOrigins[normalizedEra];\n void 0 === eraOrigin && throwRangeError((era => `Invalid era: ${era}`)(era));\n const yearByEra = exoticCalendar?._ ? exoticCalendar._(eraYear, normalizedEra, eraOrigin) : eraYearToYear(eraYear, eraOrigin);\n void 0 !== year && year !== yearByEra && throwRangeError(\"Mismatching year/eraYear\"), \n year = yearByEra;\n } else {\n void 0 === year && throwTypeError(missingYear(eraOrigins));\n }\n return year;\n}\n\nfunction resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow) {\n let {month: month, monthCode: monthCode} = fields;\n if (void 0 !== monthCode) {\n const monthByCode = ((calendar, monthCode, year, overflow, monthCodeParts = parseMonthCode(monthCode)) => {\n const leapMonth = calendar ? calendar.p(year) : void 0;\n const [monthCodeNumber, wantsLeapMonth] = monthCodeParts;\n let month = monthCodeNumberToMonth(monthCodeNumber, wantsLeapMonth, leapMonth);\n if (wantsLeapMonth) {\n const leapMonthMeta = calendar ? calendar.l : void 0;\n void 0 === leapMonthMeta && throwRangeError(invalidLeapMonth), leapMonthMeta > 0 ? (month > leapMonthMeta && throwRangeError(invalidLeapMonth), \n leapMonth !== month && (1 === overflow && throwRangeError(invalidLeapMonth), month = monthCodeNumberToMonth(monthCodeNumber, 0, leapMonth))) : (month !== -leapMonthMeta && throwRangeError(invalidLeapMonth), \n void 0 === leapMonth && 1 === overflow && throwRangeError(invalidLeapMonth));\n }\n return month;\n })(calendar, monthCode, year, overflow, monthCodeParts);\n void 0 !== month && month !== monthByCode && throwRangeError(\"Mismatching month/monthCode\"), \n month = monthByCode, overflow = 1;\n } else {\n void 0 === month && throwTypeError(\"Missing month/monthCode\");\n }\n return clampEntity(\"month\", month, 1, computeCalendarMonthsInYearForYear(calendar, year), overflow);\n}\n\nfunction resolveCalendarDay(fields, calendar, year, month, overflow) {\n return clampProp(fields, \"day\", 1, computeCalendarDaysInMonthForYearMonth(calendar, year, month), overflow);\n}\n\nfunction eraYearToYear(eraYear, eraOrigin) {\n return (eraOrigin + eraYear) * (Math.sign(eraOrigin) || 1) || 0;\n}\n\nfunction resolveTimeFields(fields, overflow) {\n return constrainTimeFields(pluckProps(timeFieldNamesAsc, {\n ...timeFieldDefaults,\n ...fields\n }), overflow);\n}\n\nconst offsetRegExp = /*@__PURE__*/ createRegExp(\"([+-])(\\\\d{2})(?::?(\\\\d{2})(?::?(\\\\d{2})(?:[.,](\\\\d{1,9}))?)?)?\");\n\nfunction parseOffsetNano(s) {\n const offsetNano = parseOffsetNanoMaybe(s);\n return void 0 === offsetNano && throwRangeError(failedParse(s)), offsetNano;\n}\n\nfunction parseOffsetNanoMaybe(s, onlyHourMinute) {\n const parts = offsetRegExp.exec(s);\n if (parts && (s => (s => {\n \"T\" !== s[0] && \"t\" !== s[0] || (s = s.slice(1));\n const fractionIndex = s.search(/[.,]/);\n const main = fractionIndex < 0 ? s : s.slice(0, fractionIndex);\n const parts = main.split(\":\");\n return 1 === parts.length ? /^(?:\\d{2}|\\d{4}|\\d{6})$/i.test(main) : (2 === parts.length || 3 === parts.length) && parts.every(part => 2 === part.length && /^\\d{2}$/i.test(part));\n })(s.slice(1)))(parts[0])) {\n return ((parts, onlyHourMinute) => {\n const firstSubMinutePart = parts[4] || parts[5];\n onlyHourMinute && firstSubMinutePart && throwRangeError(invalidSubstring(firstSubMinutePart));\n const offsetNanoPos = parseInt0(parts[2]) * nanoInHour + parseInt0(parts[3]) * nanoInMinute + parseInt0(parts[4]) * nanoInSec + parseSubsecNano(parts[5] || \"\");\n return offsetNano = offsetNanoPos * parseSign(parts[1]), Math.abs(offsetNano) >= nanoInUtcDay && throwRangeError(\"Out-of-bounds offset\"), \n offsetNano;\n var offsetNano;\n })(parts, onlyHourMinute);\n }\n}\n\nconst dateFieldRefiners = {\n era: toString,\n month: toPositiveIntegerWithTruncation,\n monthCode(monthCode, fieldName) {\n return requireString(toPrimitiveWithStringHint(monthCode), fieldName);\n },\n day: toPositiveIntegerWithTruncation\n};\n\nconst timeFieldRefiners = /*@__PURE__*/ zipPropsConst(timeFieldNamesAsc, toIntegerWithTrunc);\n\nconst durationFieldRefiners = /*@__PURE__*/ zipPropsConst(durationFieldNamesAsc, toStrictInteger);\n\nconst dateTimeFieldRefiners = /*@__PURE__*/ Object.assign({}, dateFieldRefiners, timeFieldRefiners);\n\nconst zonedDateTimeFieldRefiners = {\n offset(offsetString) {\n return parseOffsetNano(requireString(toPrimitiveWithStringHint(offsetString)));\n },\n ...dateTimeFieldRefiners\n};\n\nfunction readAndRefineBagFields(bag, validFieldNames, fieldRefiners, requiredFieldNames, disallowEmpty = !requiredFieldNames) {\n const res = {};\n let anyMatching = 0;\n for (const fieldName of validFieldNames) {\n let fieldVal = bag[fieldName];\n if (void 0 !== fieldVal) {\n anyMatching = 1;\n const refiner = fieldRefiners[fieldName];\n refiner && (fieldVal = refiner(fieldVal, fieldName)), res[fieldName] = fieldVal;\n } else {\n requiredFieldNames && requiredFieldNames.includes(fieldName) && throwTypeError(missingField(fieldName));\n }\n }\n return disallowEmpty && !anyMatching && throwTypeError(noValidFields(validFieldNames)), \n res;\n}\n\nfunction refineCalendarDateFields(fields, calendar, allowMissingDay) {\n const eraOrigins = getCalendarEraOrigins(calendar);\n void 0 !== fields.year || void 0 !== fields.era && void 0 !== fields.eraYear || throwTypeError(missingYear(eraOrigins)), \n void 0 === fields.monthCode && void 0 === fields.month && throwTypeError(\"Missing month/monthCode\"), \n allowMissingDay || void 0 !== fields.day || throwTypeError(missingField(\"day\"));\n const monthCodeParts = parseMonthCodeField(fields);\n return [ resolveCalendarYear(fields, calendar), monthCodeParts ];\n}\n\nfunction refineMonthDayFields(fields, calendar) {\n const isIso = calendar === isoCalendarImpl;\n const eraOrigins = getCalendarEraOrigins(calendar);\n void 0 === fields.day && throwTypeError(missingField(\"day\")), isIso || void 0 === fields.month || void 0 !== fields.year || void 0 !== fields.era && void 0 !== fields.eraYear || throwTypeError(missingYear(eraOrigins));\n const monthCodeParts = parseMonthCodeField(fields);\n return [ void 0 !== fields.eraYear || void 0 !== fields.year ? resolveCalendarYear(fields, calendar) : void 0, monthCodeParts ];\n}\n\nfunction createDateTimeFromRefinedFields(isoDate, timeFields = timeFieldDefaults, calendar) {\n const isoDateTime = combineDateAndTime(isoDate, timeFields);\n return checkIsoDateTimeInBounds(isoDateTime), createDateTimeSlots(isoDateTime, calendar);\n}\n\nfunction createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {\n const month = resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow);\n return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, resolveCalendarDay(fields, calendar, year, month, overflow))), calendar);\n}\n\nfunction createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {\n return createYearMonthFromCalendarParts(calendar, year, resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow));\n}\n\nfunction createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {\n const isIso = calendar === isoCalendarImpl;\n let yearMaybe = year;\n let day;\n let monthCodeNumber;\n let isLeapMonth;\n if (void 0 === yearMaybe && isIso && (yearMaybe = 1972), void 0 !== yearMaybe) {\n isIso || checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, yearMaybe, 1, 1));\n const month = resolveCalendarMonth(fields, calendar, yearMaybe, monthCodeParts, overflow);\n day = resolveCalendarDay(fields, calendar, yearMaybe, month, overflow), [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, yearMaybe, month);\n } else {\n void 0 === fields.monthCode && throwTypeError(\"Missing month/monthCode\"), [monthCodeNumber, isLeapMonth] = monthCodeParts;\n const referenceYear = calendar ? calendar.re : 1972;\n if (void 0 !== referenceYear) {\n day = resolveCalendarDay(fields, calendar, referenceYear, resolveCalendarMonth(fields, calendar, referenceYear, monthCodeParts, overflow), overflow);\n } else {\n const constrainedDay = 0 === overflow && calendar ? calendar.ge?.(monthCodeNumber, isLeapMonth, fields.day) : void 0;\n day = void 0 !== constrainedDay ? constrainedDay : fields.day;\n }\n }\n return createMonthDayFromMonthCodeParts(calendar, monthCodeNumber, isLeapMonth, day, fields.day, overflow);\n}\n\nfunction createYearMonthFromCalendarParts(calendar, year, month) {\n return createDateSlots(checkIsoYearMonthInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, 1)), calendar);\n}\n\nfunction createMonthDayFromCalendarParts(calendar, year, month, day) {\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);\n return createMonthDayFromMonthCodeParts(calendar, monthCodeNumber, isLeapMonth, day, day, 0);\n}\n\nfunction createMonthDayFromMonthCodeParts(calendar, monthCodeNumber, isLeapMonthArg, day, requestedDay, overflow) {\n let isLeapMonth = isLeapMonthArg;\n isLeapMonth && ((calendar && calendar.V?.[monthCodeNumber]) ?? 1 / 0) < requestedDay && (1 === overflow && throwRangeError(invalidLeapMonth), \n isLeapMonth = 0, day = constrainToRange(requestedDay, 1, (calendar && calendar.U) ?? 1 / 0));\n let res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth), day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, Boolean(isLeapMonth));\n for (;!res && 0 === overflow && day > 1; ) {\n day--, res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth), day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, Boolean(isLeapMonth));\n }\n res || throwRangeError(\"Cannot guess year\");\n const {year: finalYear, month: finalMonth} = res;\n return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, finalYear, finalMonth, day)), calendar);\n}\n\nfunction parseMonthCodeField(fields) {\n if (void 0 !== fields.monthCode) {\n return parseMonthCode(fields.monthCode);\n }\n}\n\nconst RawDateTimeFormat = Intl.DateTimeFormat;\n\nfunction formatEpochMilliToPartsRecord(intlFormat, epochMilli) {\n epochMilli < -864e13 && throwRangeError(outOfBoundsDate);\n const parts = intlFormat.formatToParts(epochMilli);\n const hash = {};\n for (const part of parts) {\n hash[part.type] = part.value;\n }\n return hash;\n}\n\nconst utcTimeZoneId = \"UTC\";\n\nconst timeZonePeriodDaysByName = {\n \"El_Aaiun\": 17,\n \"Tucuman\": 12,\n \"Tirane\": 11,\n \"Riga\": 10,\n \"Simferopol\": 9,\n \"Vienna\": 9,\n \"Tunis\": 8,\n \"Boa_Vista\": 6,\n \"Fortaleza\": 6,\n \"Maceio\": 6,\n \"Noronha\": 6,\n \"Recife\": 6,\n \"Gaza\": 6,\n \"Hebron\": 6,\n \"DeNoronha\": 6\n};\n\nconst minPossibleTransitionSec = -388152e4;\n\nfunction formatInstantIso(refineTimeZoneString, instantSlots, options) {\n const [timeZoneArg, roundingMode, nanoInc, subsecDigits] = refineInstantDisplayOptions(options);\n const providedTimeZone = void 0 !== timeZoneArg;\n return ((providedTimeZone, timeZone, epochNano, roundingMode, nanoInc, subsecDigits) => {\n epochNano = roundBigNanoToDayOriginInc(epochNano, BigInt(nanoInc), roundingMode);\n const offsetNano = timeZone.B(epochNano);\n return formatIsoDateTimeFields(epochNanoToIsoDateTime(epochNano + BigInt(offsetNano)), subsecDigits) + (providedTimeZone ? formatOffsetNano(roundToMinute(offsetNano)) : \"Z\");\n })(providedTimeZone, queryTimeZone(providedTimeZone ? refineTimeZoneString(timeZoneArg) : \"UTC\"), instantSlots.epochNanoseconds, roundingMode, nanoInc, subsecDigits);\n}\n\nfunction formatInstantIsoAuto(instantSlots) {\n return formatIsoDateTimeFields(epochNanoToIsoDateTime(instantSlots.epochNanoseconds), void 0) + \"Z\";\n}\n\nfunction formatZonedDateTimeIso(zonedDateTimeSlots0, options) {\n const displayOptions = refineZonedDateTimeDisplayOptions(options);\n return ((calendar, timeZoneId, timeZone, epochNano, calendarDisplay, timeZoneDisplay, offsetDisplay, roundingMode, nanoInc, subsecDigits) => {\n epochNano = roundBigNanoToDayOriginInc(epochNano, BigInt(nanoInc), roundingMode);\n const offsetNano = timeZone.B(epochNano);\n return formatIsoDateTimeFields(epochNanoToIsoDateTime(epochNano + BigInt(offsetNano)), subsecDigits) + formatOffsetNano(roundToMinute(offsetNano), offsetDisplay) + formatTimeZone(timeZoneId, timeZoneDisplay) + formatCalendar(calendar, calendarDisplay);\n })(zonedDateTimeSlots0.calendar, zonedDateTimeSlots0.timeZone.id, zonedDateTimeSlots0.timeZone, zonedDateTimeSlots0.epochNanoseconds, ...displayOptions);\n}\n\nfunction formatZonedDateTimeIsoAuto(zonedDateTimeSlots) {\n const calendar = zonedDateTimeSlots.calendar;\n const timeZone = zonedDateTimeSlots.timeZone;\n const offsetNano = timeZone.B(zonedDateTimeSlots.epochNanoseconds);\n return formatIsoDateTimeFields(epochNanoToIsoDateTime(zonedDateTimeSlots.epochNanoseconds + BigInt(offsetNano)), void 0) + formatOffsetNano(roundToMinute(offsetNano)) + formatTimeZone(timeZone.id, 0) + (calendar === isoCalendarImpl ? \"\" : formatCalendarId(getCalendarSlotId(calendar), 0));\n}\n\nfunction formatPlainDateTimeIso(plainDateTimeSlots0, options) {\n const displayOptions = refineDateTimeDisplayOptions(options);\n return ((calendar, isoDateTime, calendarDisplay, roundingMode, nanoInc, subsecDigits) => formatIsoDateTimeFields(roundDateTimeToInc(isoDateTime, nanoInc, roundingMode), subsecDigits) + formatCalendar(calendar, calendarDisplay))(plainDateTimeSlots0.calendar, plainDateTimeSlots0, ...displayOptions);\n}\n\nfunction formatDateTimeIsoAuto(isoDateTimeSlots) {\n const calendar = isoDateTimeSlots.calendar;\n return formatIsoDateTimeFields(isoDateTimeSlots, void 0) + (calendar === isoCalendarImpl ? \"\" : formatCalendarId(getCalendarSlotId(calendar), 0));\n}\n\nfunction formatPlainDateIso(plainDateSlots, options) {\n return calendar = plainDateSlots.calendar, isoDate = plainDateSlots, calendarDisplay = refineDateDisplayOptions(options), \n formatIsoDateFields(isoDate) + formatCalendar(calendar, calendarDisplay);\n var calendar, isoDate, calendarDisplay;\n}\n\nfunction formatDateIsoAuto(plainDateSlots) {\n return formatIsoDateFields(plainDateSlots) + (plainDateSlots.calendar === isoCalendarImpl ? \"\" : formatCalendarId(getCalendarSlotId(plainDateSlots.calendar), 0));\n}\n\nfunction formatPlainYearMonthIso(plainYearMonthSlots, options) {\n return formatDateLikeIso(plainYearMonthSlots.calendar, formatIsoYearMonthFields, plainYearMonthSlots, refineDateDisplayOptions(options));\n}\n\nfunction formatYearMonthIsoAuto(plainYearMonthSlots) {\n const calendar = plainYearMonthSlots.calendar;\n return calendar !== isoCalendarImpl ? formatIsoDateFields(plainYearMonthSlots) + formatCalendarId(getCalendarSlotId(calendar), 0) : formatIsoYearMonthFields(plainYearMonthSlots);\n}\n\nfunction formatPlainMonthDayIso(plainMonthDaySlots, options) {\n return formatDateLikeIso(plainMonthDaySlots.calendar, formatIsoMonthDayFields, plainMonthDaySlots, refineDateDisplayOptions(options));\n}\n\nfunction formatMonthDayIsoAuto(plainMonthDaySlots) {\n const calendar = plainMonthDaySlots.calendar;\n return calendar !== isoCalendarImpl ? formatIsoDateFields(plainMonthDaySlots) + formatCalendarId(getCalendarSlotId(calendar), 0) : formatIsoMonthDayFields(plainMonthDaySlots);\n}\n\nfunction formatDateLikeIso(calendar, formatSimple, isoDate, calendarDisplay) {\n const showCalendar = calendarDisplay > 1 || 0 === calendarDisplay && calendar !== isoCalendarImpl;\n return 1 === calendarDisplay ? calendar === isoCalendarImpl ? formatSimple(isoDate) : formatIsoDateFields(isoDate) : showCalendar ? formatIsoDateFields(isoDate) + formatCalendarId(getCalendarSlotId(calendar), 2 === calendarDisplay) : formatSimple(isoDate);\n}\n\nfunction formatPlainTimeIso(slots, options) {\n return ((fields, roundingMode, nanoInc, subsecDigits) => formatTimeFields(roundTimeToInc(fields, nanoInc, roundingMode)[0], subsecDigits))(slots, ...refineTimeDisplayOptions(options));\n}\n\nfunction formatTimeIsoAuto(slots) {\n return formatTimeFields(slots, void 0);\n}\n\nfunction formatDurationIso(slots, options) {\n const [roundingMode, nanoInc, subsecDigits] = refineTimeDisplayOptions(options, 3);\n return nanoInc > 1 && validateDurationFields(slots = {\n ...slots,\n ...roundDayTimeDurationByInc(slots, nanoInc, roundingMode)\n }), formatDurationSlots(slots, subsecDigits);\n}\n\nfunction formatDurationIsoAuto(slots) {\n return formatDurationSlots(slots, void 0);\n}\n\nfunction formatDurationSlots(durationSlots, subsecDigits) {\n const {sign: sign} = durationSlots;\n const abs = -1 === sign ? negateDurationFields(durationSlots) : durationSlots;\n const {hours: hours, minutes: minutes} = abs;\n const bigNano = durationSubMinuteToBigNano(abs);\n const wholeSec = Number(bigNano / bigNanoInSec);\n const subsecNano = Number(bigNano % bigNanoInSec);\n validateDurationTimeUnit(wholeSec);\n const subsecNanoString = formatSubsecNano(subsecNano, subsecDigits);\n const forceSec = subsecDigits >= 0 || !sign || subsecNanoString;\n return (sign < 0 ? \"-\" : \"\") + \"P\" + formatDurationFragments({\n \"Y\": formatDurationNumber(abs.years),\n \"M\": formatDurationNumber(abs.months),\n \"W\": formatDurationNumber(abs.weeks),\n \"D\": formatDurationNumber(abs.days)\n }) + (hours || minutes || wholeSec || forceSec ? \"T\" + formatDurationFragments({\n \"H\": formatDurationNumber(hours),\n \"M\": formatDurationNumber(minutes),\n \"S\": formatDurationNumber(wholeSec, forceSec) + subsecNanoString\n }) : \"\");\n}\n\nfunction formatDurationFragments(fragObj) {\n const parts = [];\n for (const fragName in fragObj) {\n const fragVal = fragObj[fragName];\n fragVal && parts.push(fragVal, fragName);\n }\n return parts.join(\"\");\n}\n\nfunction formatDurationNumber(n, force) {\n if (!n && !force) {\n return \"\";\n }\n const options = Object.create(null);\n return options.useGrouping = 0, n.toLocaleString(\"fullwide\", options);\n}\n\nfunction formatIsoDateTimeFields(isoDateTime, subsecDigits) {\n return formatIsoDateFields(isoDateTime) + \"T\" + formatTimeFields(isoDateTime, subsecDigits);\n}\n\nfunction formatIsoDateFields(isoDate) {\n return formatIsoYearMonthFields(isoDate) + \"-\" + padNumber2(isoDate.day);\n}\n\nfunction formatIsoYearMonthFields(isoDate) {\n const {year: year} = isoDate;\n return (year < 0 || year > 9999 ? getSignStr(year) + padNumber(6, Math.abs(year)) : padNumber(4, year)) + \"-\" + padNumber2(isoDate.month);\n}\n\nfunction formatIsoMonthDayFields(isoDate) {\n return padNumber2(isoDate.month) + \"-\" + padNumber2(isoDate.day);\n}\n\nfunction formatTimeFields(timeFields, subsecDigits) {\n const parts = [ padNumber2(timeFields.hour), padNumber2(timeFields.minute) ];\n return -1 !== subsecDigits && parts.push(padNumber2(timeFields.second) + ((millisecond, microsecond, nanosecond, subsecDigits) => formatSubsecNano(millisecond * nanoInMilli + microsecond * nanoInMicro + nanosecond, subsecDigits))(timeFields.millisecond, timeFields.microsecond, timeFields.nanosecond, subsecDigits)), \n parts.join(\":\");\n}\n\nfunction formatOffsetNano(offsetNano, offsetDisplay = 0) {\n if (1 === offsetDisplay) {\n return \"\";\n }\n const [hour, nanoRemainder0] = divModFloor(Math.abs(offsetNano), nanoInHour);\n const [minute, nanoRemainder1] = divModFloor(nanoRemainder0, nanoInMinute);\n const [second, nanoRemainder2] = divModFloor(nanoRemainder1, nanoInSec);\n return getSignStr(offsetNano) + padNumber2(hour) + \":\" + padNumber2(minute) + (second || nanoRemainder2 ? \":\" + padNumber2(second) + formatSubsecNano(nanoRemainder2) : \"\");\n}\n\nfunction formatTimeZone(timeZoneId, timeZoneDisplay) {\n return 1 !== timeZoneDisplay ? \"[\" + (2 === timeZoneDisplay ? \"!\" : \"\") + timeZoneId + \"]\" : \"\";\n}\n\nfunction formatCalendar(calendar, calendarDisplay) {\n return calendarDisplay > 1 || 0 === calendarDisplay && calendar !== isoCalendarImpl ? formatCalendarId(getCalendarSlotId(calendar), 2 === calendarDisplay) : \"\";\n}\n\nfunction formatCalendarId(calendarId, isCritical) {\n return \"[\" + (isCritical ? \"!\" : \"\") + \"u-ca=\" + calendarId + \"]\";\n}\n\nconst trailingZerosRE = /0+$/;\n\nfunction formatSubsecNano(totalNano, subsecDigits) {\n let s = padNumber(9, totalNano);\n return s = void 0 === subsecDigits ? s.replace(trailingZerosRE, \"\") : s.slice(0, subsecDigits), \n s ? \".\" + s : \"\";\n}\n\nfunction getSignStr(num) {\n return num < 0 ? \"-\" : \"+\";\n}\n\nconst icuRegExp = /^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/;\n\nconst badCharactersRegExp = /[^\\w\\/:+-]+/;\n\nfunction refineTimeZoneId(rawId) {\n return resolveTimeZoneId(requireString(rawId));\n}\n\nfunction resolveTimeZoneId(rawId) {\n return resolveTimeZoneRecord(rawId).id;\n}\n\nfunction resolveTimeZoneRecord(rawId) {\n const upperRawId = rawId.toUpperCase();\n const offsetRecord = (upperRawId => {\n const offsetNano = parseOffsetNanoMaybe(upperRawId, 1);\n if (void 0 !== offsetNano) {\n return {\n id: formatOffsetNano(offsetNano),\n Z: offsetNano,\n m: offsetNano\n };\n }\n })(upperRawId);\n if (offsetRecord) {\n return {\n kind: \"fixed\",\n ...offsetRecord\n };\n }\n const normId = \"UTC\" === upperRawId ? \"UTC\" : (rawId => (badCharactersRegExp.test(rawId) && throwRangeError(invalidTimeZone(rawId)), \n icuRegExp.test(rawId) && throwRangeError(\"Forbidden ICU TimeZone\"), rawId.toLowerCase().split(\"/\").map((part, partI) => (part.length <= 3 || /\\d/.test(part)) && !/etc|yap/.test(part) ? part.toUpperCase() : part.replace(/baja|dumont|[a-z]+/g, (a, i) => a.length <= 2 && !partI || \"in\" === a || \"chat\" === a ? a.toUpperCase() : a.length > 2 || !i ? capitalize(a).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : a)).join(\"/\")))(rawId);\n return queryNamedTimeZoneRecord(normId);\n}\n\nconst queryNamedTimeZoneRecord = /*@__PURE__*/ memoize(normId => {\n if (\"UTC\" === normId) {\n return {\n kind: \"utc\",\n id: normId,\n m: normId\n };\n }\n const upperNormId = normId.toUpperCase();\n const format = queryTimeZoneIntlFormat(upperNormId);\n return {\n kind: \"named\",\n id: normId,\n format: format,\n m: format.resolvedOptions().timeZone\n };\n});\n\nconst queryTimeZoneIntlFormat = /*@__PURE__*/ memoize(upperNormId => new RawDateTimeFormat(\"en-u-hc-h23\", {\n calendar: \"iso8601\",\n timeZone: upperNormId,\n era: \"short\",\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\"\n}));\n\nfunction queryTimeZone(rawTimeZoneId) {\n const record = resolveTimeZoneRecord(rawTimeZoneId);\n return queryTimeZoneRecord(record.id, record);\n}\n\nconst queryTimeZoneRecord = /*@__PURE__*/ memoize((normTimeZoneId, record) => \"named\" === record.kind ? new IntlTimeZone(normTimeZoneId, record.m, record.format) : new FixedTimeZone(normTimeZoneId, record.m, \"fixed\" === record.kind ? record.Z : 0));\n\nclass FixedTimeZone {\n constructor(id, compareKey, offsetNano) {\n this.id = id, this.m = compareKey, this.Z = offsetNano;\n }\n B() {\n return this.Z;\n }\n R(isoDateTime) {\n return [ isoDateTimeAndOffsetToEpochNano(isoDateTime, this.Z) ];\n }\n C() {}\n}\n\nclass IntlTimeZone {\n constructor(id, compareKey, format) {\n this.id = id, this.m = compareKey, this.oe = ((computeOffsetSec, periodDays) => {\n const getSample = memoize(computeOffsetSec);\n const getSplit = memoize(createSplitTuple);\n const periodSec = 86400 * periodDays;\n function getOffsetSec(epochSec) {\n const [startEpochSec, endEpochSec] = computePeriod(epochSec, periodSec);\n const clampedStartEpochSec = clampIntlSampleEpochSec(startEpochSec);\n const clampedEndEpochSec = clampIntlSampleEpochSec(endEpochSec);\n const startOffsetSec = getSample(clampedStartEpochSec);\n const endOffsetSec = getSample(clampedEndEpochSec);\n return startOffsetSec === endOffsetSec ? startOffsetSec : pinch(getSplit(clampedStartEpochSec, clampedEndEpochSec), startOffsetSec, endOffsetSec, epochSec);\n }\n function pinch(split, startOffsetSec, endOffsetSec, forEpochSec) {\n let offsetSec;\n let splitDurSec;\n for (;(void 0 === forEpochSec || void 0 === (offsetSec = forEpochSec < split[0] ? startOffsetSec : forEpochSec >= split[1] ? endOffsetSec : void 0)) && (splitDurSec = split[1] - split[0]); ) {\n const middleEpochSec = split[0] + Math.floor(splitDurSec / 2);\n computeOffsetSec(middleEpochSec) === endOffsetSec ? split[1] = middleEpochSec : split[0] = middleEpochSec + 1;\n }\n return offsetSec;\n }\n return {\n Ae(zonedEpochSec) {\n const wideOffsetSec0 = getOffsetSec(zonedEpochSec - 86400);\n const wideOffsetSec1 = getOffsetSec(zonedEpochSec + 86400);\n const wideUtcEpochSec0 = zonedEpochSec - wideOffsetSec0;\n const wideUtcEpochSec1 = zonedEpochSec - wideOffsetSec1;\n if (wideOffsetSec0 === wideOffsetSec1) {\n return [ wideUtcEpochSec0 ];\n }\n const narrowOffsetSec0 = getOffsetSec(wideUtcEpochSec0);\n return narrowOffsetSec0 === getOffsetSec(wideUtcEpochSec1) ? [ zonedEpochSec - narrowOffsetSec0 ] : wideOffsetSec0 > wideOffsetSec1 ? [ wideUtcEpochSec0, wideUtcEpochSec1 ] : [];\n },\n ze: getOffsetSec,\n C: function getTransition(epochSec, direction) {\n if (direction > 0 && epochSec >= 864e10) {\n return;\n }\n if (direction < 0) {\n if (epochSec <= minPossibleTransitionSec) {\n return;\n }\n const lookaheadEpochSec = getCurrentEpochSec() + 94867200;\n if (epochSec > lookaheadEpochSec) {\n return getTransition(lookaheadEpochSec, -1);\n }\n }\n const searchEpochSec = direction > 0 ? Math.max(epochSec, minPossibleTransitionSec) : epochSec;\n let [startEpochSec, endEpochSec] = computePeriod(searchEpochSec, periodSec);\n const inc = periodSec * direction;\n const searchLimit = direction > 0 ? Math.max(epochSec, getCurrentEpochSec()) + 94867200 : minPossibleTransitionSec;\n const inBounds = () => direction < 0 ? endEpochSec > searchLimit : startEpochSec < searchLimit;\n for (;inBounds(); ) {\n const clampedStartEpochSec = clampIntlSampleEpochSec(startEpochSec);\n const clampedEndEpochSec = clampIntlSampleEpochSec(endEpochSec);\n const startOffsetSec = getSample(clampedStartEpochSec);\n const endOffsetSec = getSample(clampedEndEpochSec);\n if (startOffsetSec !== endOffsetSec) {\n const split = getSplit(clampedStartEpochSec, clampedEndEpochSec);\n pinch(split, startOffsetSec, endOffsetSec);\n const transitionEpochSec = split[0];\n if ((compareNumbers(transitionEpochSec, epochSec) || 1) === direction) {\n return transitionEpochSec;\n }\n }\n startEpochSec += inc, endEpochSec += inc;\n }\n }\n };\n })((format => epochSec => {\n const intlParts = formatEpochMilliToPartsRecord(format, 1e3 * epochSec);\n return 86400 * isoPartsToEpochDays((intlParts => {\n const relatedYear = intlParts.relatedYear;\n if (void 0 !== relatedYear) {\n return parseInt(relatedYear);\n }\n const year = parseInt(intlParts.year);\n return void 0 !== intlParts.era && \"bce\" === normalizeEraName(intlParts.era) ? 1 - year : year;\n })(intlParts), parseInt(intlParts.month), parseInt(intlParts.day)) + 3600 * parseInt(intlParts.hour) + 60 * parseInt(intlParts.minute) + parseInt(intlParts.second) - epochSec;\n })(format), (timeZoneId => {\n const timeZoneName = timeZoneId.split(\"/\").pop();\n return timeZonePeriodDaysByName[timeZoneName] || 60;\n })(id));\n }\n B(epochNano) {\n return this.oe.ze((epochNano => epochNanoToSecMod(epochNano)[0])(epochNano)) * nanoInSec;\n }\n R(isoDateTime) {\n const zonedEpochSec = 86400 * isoDateToEpochDays(isoDateTime) + timeFieldsToSec(isoDateTime);\n const subsecNano = timeFieldsToSubsecNano(isoDateTime);\n return this.oe.Ae(zonedEpochSec).map(epochSec => checkEpochNanoInBounds(BigInt(epochSec) * bigNanoInSec + BigInt(subsecNano)));\n }\n C(epochNano, direction) {\n const [epochSec, subsecNano] = epochNanoToSecMod(epochNano);\n const resEpochSec = this.oe.C(epochSec + (direction > 0 || subsecNano ? 1 : 0), direction);\n if (void 0 !== resEpochSec) {\n return BigInt(resEpochSec) * bigNanoInSec;\n }\n }\n}\n\nfunction getCurrentEpochSec() {\n return Math.floor(Date.now() / 1e3);\n}\n\nfunction createSplitTuple(startEpochSec, endEpochSec) {\n return [ startEpochSec, endEpochSec ];\n}\n\nfunction computePeriod(epochSec, periodSec) {\n const startEpochSec = Math.floor(epochSec / periodSec) * periodSec;\n return [ startEpochSec, startEpochSec + periodSec ];\n}\n\nfunction clampIntlSampleEpochSec(epochSec) {\n return constrainToRange(epochSec, -1e10, 864e10);\n}\n\nfunction refineMaybeZonedDateTimeObjectLike(refineTimeZoneString, calendar, bag) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeAndZoneFieldNamesAlpha, dateTimeAndZoneFieldNamesWithEraAlpha), zonedDateTimeFieldRefiners, [], 0);\n const isZoned = void 0 !== fields.timeZone;\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n const isoDate = createDateFromRefinedFields(fields, calendar, year, monthCodeParts, 0);\n if (isZoned) {\n const timeFields = resolveTimeFields(fields);\n const timeZone = queryTimeZone(refineTimeZoneString(fields.timeZone));\n return {\n epochNanoseconds: getMatchingInstantFor(timeZone, combineDateAndTime(isoDate, timeFields), fields.offset),\n timeZone: timeZone,\n calendar: calendar\n };\n }\n return isoDate;\n}\n\nfunction refineZonedDateTimeObjectLike(refineTimeZoneString, calendar, bag, options) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeAndZoneFieldNamesAlpha, dateTimeAndZoneFieldNamesWithEraAlpha), zonedDateTimeFieldRefiners, timeZoneFieldNames, 0);\n const timeZoneId = refineTimeZoneString(fields.timeZone);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n const [overflow, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options);\n const isoDate = createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);\n const timeFields = resolveTimeFields(fields, overflow);\n const timeZone = queryTimeZone(timeZoneId);\n return createZonedEpochNanoSlots(getMatchingInstantFor(timeZone, combineDateAndTime(isoDate, timeFields), fields.offset, offsetDisambig, epochDisambig), timeZone, calendar);\n}\n\nfunction refinePlainDateTimeObjectLike(calendar, bag, options) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeFieldNamesAlpha, dateTimeFieldNamesWithEraAlpha), dateTimeFieldRefiners, [], 0);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n const overflow = refineOverflowOptions(options);\n return createDateTimeFromRefinedFields(createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow), resolveTimeFields(fields, overflow), calendar);\n}\n\nfunction refinePlainDateObjectLike(calendar, bag, options, requireFields = []) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha), dateFieldRefiners, requireFields);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n return createDateFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));\n}\n\nfunction refinePlainYearMonthObjectLike(calendar, bag, options, requireFields) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, yearMonthFieldNamesAlpha, yearMonthFieldNamesWithEraAlpha), dateFieldRefiners, requireFields);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar, 1);\n return createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));\n}\n\nfunction refinePlainMonthDayObjectLike(calendar, calendarAbsent, bag, options) {\n const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha), dateFieldRefiners, dayFieldNamesAsc, 0);\n calendarAbsent && void 0 !== fields.month && void 0 === fields.monthCode && void 0 === fields.year && (fields.year = 1972);\n const [year, monthCodeParts] = refineMonthDayFields(fields, calendar);\n return createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));\n}\n\nfunction refinePlainTimeObjectLike(bag, options) {\n return resolveTimeFields(readAndRefineBagFields(bag, timeFieldNamesAlpha, timeFieldRefiners, [], 1), refineOverflowOptions(options));\n}\n\nfunction refineDurationObjectLike(bag) {\n const durationFields = readAndRefineBagFields(bag, durationFieldNamesAlpha, durationFieldRefiners);\n return createDurationSlots(validateDurationFields({\n ...durationFieldDefaults,\n ...durationFields\n }));\n}\n\nfunction throwFailedParse(s) {\n throwRangeError(failedParse(s));\n}\n\nfunction parseInstant(s) {\n const organized = parseDateTimeLike(s = requireString(toPrimitiveWithStringHint(s)));\n let offsetNano;\n return organized || throwFailedParse(s), organized.F ? offsetNano = 0 : organized.offset ? offsetNano = parseOffsetNano(organized.offset) : throwFailedParse(s), \n organized.timeZoneId && parseOffsetNanoMaybe(organized.timeZoneId, 1), validateIsoDateTimeFields(organized), \n createEpochNanoSlots(isoDateTimeAndOffsetToEpochNano(organized, offsetNano));\n}\n\nfunction parseRelativeToSlots(s, resolveCalendar) {\n const organized = parseDateTimeLike(requireString(s));\n return organized || throwFailedParse(s), organized.timeZoneId ? finalizeZonedDateTime(organized, resolveCalendar, void 0) : (organized.F && throwFailedParse(s), \n finalizeDate(organized, resolveCalendar));\n}\n\nfunction parseZonedDateTime(s, resolveCalendar, options) {\n const organized = parseDateTimeLike(requireString(s));\n return organized && organized.timeZoneId || throwFailedParse(s), finalizeZonedDateTime(organized, resolveCalendar, options);\n}\n\nfunction parsePlainDateTime(s, resolveCalendar) {\n const organized = parseDateTimeLike(requireString(s));\n return organized && !organized.F || throwFailedParse(s), finalizeDateTime(organized, resolveCalendar);\n}\n\nfunction parsePlainDate(s, resolveCalendar) {\n const slots = finalizeDateLike(parsePlainDateLike(requireString(s)), void 0, resolveCalendar);\n return createDateSlots(slots, slots.calendar);\n}\n\nfunction parsePlainYearMonth(s, resolveCalendar) {\n const organized = parseYearMonthOnly(requireString(s));\n if (organized) {\n return requireIsoCalendar(organized), createDateSlots(checkIsoYearMonthInBounds(validateIsoDateFields(organized)), resolveCalendar(organized.calendarId));\n }\n const dateSlots = finalizeDateLike(parsePlainDateLike(s), projectIsoYearMonthDate, resolveCalendar);\n const {calendar: calendar} = dateSlots;\n return createDateSlots(moveToStartOfMonth(calendar, dateSlots), calendar);\n}\n\nfunction requireIsoCalendar(organized) {\n \"iso8601\" !== organized.calendarId && throwRangeError(invalidSubstring(organized.calendarId));\n}\n\nfunction parsePlainMonthDay(s, resolveCalendar) {\n const organized = parseMonthDayOnly(requireString(s));\n if (organized) {\n return requireIsoCalendar(organized), createDateSlots(validateIsoDateFields(organized), resolveCalendar(organized.calendarId));\n }\n const dateSlots = finalizeDateLike(parsePlainDateLike(s), projectIsoMonthDayDate, resolveCalendar);\n const {calendar: calendar} = dateSlots;\n const {year: origYear, month: origMonth, day: day} = computeCalendarDateFields(calendar, dateSlots);\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, origYear, origMonth);\n const {year: year, month: month} = ((calendar, monthCodeNumber, isLeapMonth, day) => {\n const yearMonthFields = calendar ? calendar.u(monthCodeNumber, isLeapMonth, day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, isLeapMonth);\n return yearMonthFields || throwRangeError(\"Cannot guess year\"), yearMonthFields;\n })(calendar, monthCodeNumber, isLeapMonth, day);\n return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, day)), calendar);\n}\n\nfunction parsePlainTime(s) {\n let organized = (s => {\n const parts = parseTimeOnlyParts(s);\n return parts ? (organizeAnnotationParts(parts[13]), organizeTimeParts(parts, 1)) : void 0;\n })(s = requireString(s));\n if (!organized) {\n const dateTime = parseDateTimeLike(s);\n dateTime && dateTime.te || throwFailedParse(s), dateTime.F && throwRangeError(invalidSubstring(\"Z\")), \n requireIsoCalendar(dateTime), organized = dateTime;\n }\n let altParsed;\n return (altParsed = parseYearMonthOnly(s)) && isIsoDateFieldsValid(altParsed) && throwFailedParse(s), \n (altParsed = parseMonthDayOnly(s)) && isIsoDateFieldsValid(altParsed) && throwFailedParse(s), \n createTimeSlots(validateTimeFields(organized));\n}\n\nfunction parseDuration(s) {\n const parts = durationRegExp.exec(requireString(s));\n return parts || throwFailedParse(s), createDurationSlots(validateDurationFields((parts => {\n let hasAny = 0;\n let hasAnyFrac = 0;\n let leftoverNano = 0;\n let durationFields = {\n years: parseUnit(parts[2]),\n months: parseUnit(parts[3]),\n weeks: parseUnit(parts[4]),\n days: parseUnit(parts[5]),\n hours: parseUnit(parts[6], parts[7], 5),\n minutes: parseUnit(parts[8], parts[9], 4),\n seconds: parseUnit(parts[10], parts[11], 3),\n ...nanoToGivenFields(leftoverNano, 2, durationFieldNamesAsc)\n };\n return hasAny || throwRangeError(noValidFields(durationFieldNamesAsc)), parseSign(parts[1]) < 0 && (durationFields = negateDurationFields(durationFields)), \n durationFields;\n function parseUnit(wholeStr, fracStr, timeUnit) {\n let leftoverUnits = 0;\n let wholeUnits = 0;\n return timeUnit && ([leftoverUnits, leftoverNano] = divModFloor(leftoverNano, unitNanoMap[timeUnit])), \n void 0 !== wholeStr && (hasAnyFrac && throwRangeError(invalidSubstring(wholeStr)), \n wholeUnits = (s => {\n const n = parseInt(s);\n return Number.isFinite(n) || throwRangeError(invalidSubstring(s)), n;\n })(wholeStr), hasAny = 1, fracStr && (leftoverNano = parseSubsecNano(fracStr) * (unitNanoMap[timeUnit] / nanoInSec), \n hasAnyFrac = 1)), leftoverUnits + wholeUnits;\n }\n })(parts)));\n}\n\nfunction parseCalendarId(s) {\n const res = parseDateTimeLike(s) || parseYearMonthOnly(s) || parseMonthDayOnly(s);\n if (res) {\n return res.calendarId;\n }\n const timeParts = parseTimeOnlyParts(s);\n return timeParts ? organizeAnnotationParts(timeParts[13]).calendarId : s;\n}\n\nfunction parseTimeZoneId(s) {\n const parsed = parseDateTimeLike(s);\n return parsed && (parsed.timeZoneId || parsed.F && \"UTC\" || parsed.offset) || s;\n}\n\nfunction parsePlainDateLike(s) {\n const organized = parseDateTimeLike(s);\n return organized && !organized.F || throwFailedParse(s), organized;\n}\n\nfunction finalizeDateLike(organized, isoDateProjector, resolveCalendar) {\n return isoDateProjector && \"iso8601\" === organized.calendarId ? (validateIsoDateFields(organized), \n organized.te && validateTimeFields(organized), finalizeDate(isoDateProjector(organized), resolveCalendar)) : organized.te ? finalizeDateTime(organized, resolveCalendar) : finalizeDate(organized, resolveCalendar);\n}\n\nfunction projectIsoYearMonthDate(organized) {\n const day = 12 * organized.year + organized.month === isoYearMonthIndexMin ? 20 : 1;\n return {\n ...organized,\n day: day\n };\n}\n\nfunction projectIsoMonthDayDate(organized) {\n return {\n ...organized,\n year: 1972\n };\n}\n\nfunction finalizeZonedDateTime(organized, resolveCalendar, options) {\n const timeZone = queryTimeZone(resolveTimeZoneId(organized.timeZoneId));\n let epochNano;\n if (validateIsoDateTimeFields(organized), organized.te) {\n const offsetNano = organized.offset ? parseOffsetNano(organized.offset) : void 0;\n const [, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options);\n epochNano = getMatchingInstantFor(timeZone, organized, offsetNano, offsetDisambig, epochDisambig, !(timeZone.Z || void 0 === organized.offset || (offset = organized.offset, \n offset.replace(/\\D/g, \"\").length > 4)), organized.F);\n } else {\n refineZonedFieldOptions(options), epochNano = getStartOfDayInstantFor(timeZone, organized);\n }\n var offset;\n return checkEpochNanoInBounds(epochNano), createZonedEpochNanoSlots(epochNano, timeZone, resolveCalendar(organized.calendarId));\n}\n\nfunction finalizeDateTime(organized, resolveCalendar) {\n return validateIsoDateTimeFields(organized), checkIsoDateTimeInBounds(organized), \n {\n ...combineDateAndTime(organized, organized),\n calendar: resolveCalendar(organized.calendarId)\n };\n}\n\nfunction finalizeDate(organized, resolveCalendar) {\n return validateIsoDateFields(organized), checkIsoDateInBounds(organized), {\n calendar: resolveCalendar(organized.calendarId),\n year: organized.year,\n month: organized.month,\n day: organized.day\n };\n}\n\nfunction timeRegExpStr(separatorIndex) {\n return `(\\\\d{2})(?:(:?)(\\\\d{2})(?:\\\\${separatorIndex}(\\\\d{2})(?:[.,](\\\\d{1,9}))?)?)?`;\n}\n\nconst dateTimeRegExpStr = \"(?:(?:([+-])(\\\\d{6}))|(\\\\d{4}))(-?)(\\\\d{2})\\\\4(\\\\d{2})(?:[T ]\" + timeRegExpStr(8) + \"(Z|([+-])\" + timeRegExpStr(15) + \")?)?\";\n\nconst yearMonthRegExp = /*@__PURE__*/ createRegExp(\"(?:(?:([+-])(\\\\d{6}))|(\\\\d{4}))-?(\\\\d{2})((?:\\\\[(!?)([^\\\\]]*)\\\\]){0,9})\");\n\nconst monthDayRegExp = /*@__PURE__*/ createRegExp(\"(?:--)?(\\\\d{2})-?(\\\\d{2})((?:\\\\[(!?)([^\\\\]]*)\\\\]){0,9})\");\n\nconst dateTimeRegExp = /*@__PURE__*/ createRegExp(dateTimeRegExpStr + \"((?:\\\\[(!?)([^\\\\]]*)\\\\]){0,9})\");\n\nconst timeRegExp = /*@__PURE__*/ createRegExp(\"T?\" + timeRegExpStr(2) + `(([+-])${timeRegExpStr(9)})?((?:\\\\[(!?)([^\\\\]]*)\\\\]){0,9})`);\n\nconst annotationRegExp = /*@__PURE__*/ new RegExp(\"\\\\[(!?)([^\\\\]]*)\\\\]\", \"g\");\n\nconst durationRegExp = /*@__PURE__*/ createRegExp(\"([+-])?P(\\\\d+Y)?(\\\\d+M)?(\\\\d+W)?(\\\\d+D)?(?:T(?!$)(?:(\\\\d+)(?:[.,](\\\\d{1,9}))?H)?(?:(\\\\d+)(?:[.,](\\\\d{1,9}))?M)?(?:(\\\\d+)(?:[.,](\\\\d{1,9}))?S)?)?\");\n\nfunction parseDateTimeLike(s) {\n const parts = dateTimeRegExp.exec(s);\n return parts ? (parts => {\n const zOrOffset = parts[12];\n const hasZ = \"Z\" === (zOrOffset || \"\").toUpperCase();\n return {\n year: organizeIsoYearParts(parts),\n month: parseInt(parts[5]),\n day: parseInt(parts[6]),\n ...organizeTimeParts(parts, 7),\n ...organizeAnnotationParts(parts[19]),\n te: Boolean(parts[7]),\n F: hasZ,\n offset: hasZ ? void 0 : zOrOffset\n };\n })(parts) : void 0;\n}\n\nfunction parseYearMonthOnly(s) {\n const parts = yearMonthRegExp.exec(s);\n if (parts) {\n return (parts => ({\n year: organizeIsoYearParts(parts),\n month: parseInt(parts[4]),\n day: 1,\n ...organizeAnnotationParts(parts[5])\n }))(parts);\n }\n}\n\nfunction parseMonthDayOnly(s) {\n const parts = monthDayRegExp.exec(s);\n return parts ? (parts => ({\n year: 1972,\n month: parseInt(parts[1]),\n day: parseInt(parts[2]),\n ...organizeAnnotationParts(parts[3])\n }))(parts) : void 0;\n}\n\nfunction parseTimeOnlyParts(s) {\n const parts = timeRegExp.exec(s);\n if (parts) {\n return parts[6] && parseOffsetNano(parts[6]), parts;\n }\n}\n\nfunction organizeTimeParts(parts, hourIndex) {\n const second = parseInt0(parts[hourIndex + 3]);\n return {\n ...nanoToTimeAndDay(parseSubsecNano(parts[hourIndex + 4] || \"\"))[0],\n hour: parseInt0(parts[hourIndex]),\n minute: parseInt0(parts[hourIndex + 2]),\n second: 60 === second ? 59 : second\n };\n}\n\nfunction organizeIsoYearParts(parts) {\n const yearSign = parseSign(parts[1]);\n const year = parseInt(parts[2] || parts[3]);\n return yearSign < 0 && !year && throwRangeError(invalidSubstring(-0)), yearSign * year;\n}\n\nfunction organizeAnnotationParts(s) {\n let calendarIsCritical;\n let timeZoneId;\n const calendarIds = [];\n return s.replace(annotationRegExp, (whole, criticalStr, mainStr) => {\n const isCritical = Boolean(criticalStr);\n const [val, name] = mainStr.split(\"=\").reverse();\n return name ? \"u-ca\" === name ? (calendarIds.push(val.toLowerCase()), calendarIsCritical || (calendarIsCritical = isCritical)) : (isCritical || /[A-Z]/.test(name)) && throwRangeError(invalidSubstring(whole)) : (timeZoneId && throwRangeError(invalidSubstring(whole)), \n timeZoneId = val), \"\";\n }), calendarIds.length > 1 && calendarIsCritical && throwRangeError(invalidSubstring(s)), \n {\n timeZoneId: timeZoneId,\n calendarId: calendarIds[0] || \"iso8601\"\n };\n}\n\nfunction mergeCalendarFields(calendar, baseFields, additionalFields) {\n const merged = Object.assign(Object.create(null), baseFields);\n return spliceFields(merged, additionalFields, monthFieldNames), getCalendarEraOrigins(calendar) && (spliceFields(merged, additionalFields, allYearFieldNames), \n calendar && calendar.je && spliceFields(merged, additionalFields, monthDayFieldNames, eraYearFieldNames)), \n merged;\n}\n\nfunction spliceFields(dest, additional, allPropNames, deletablePropNames) {\n let anyMatching = 0;\n const nonMatchingPropNames = [];\n for (const propName of allPropNames) {\n void 0 !== additional[propName] ? anyMatching = 1 : nonMatchingPropNames.push(propName);\n }\n if (Object.assign(dest, additional), anyMatching) {\n for (const deletablePropName of deletablePropNames || nonMatchingPropNames) {\n delete dest[deletablePropName];\n }\n }\n}\n\nfunction mergeZonedDateTimeFields(calendar, zonedDateTimeSlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, dateTimeAndOffsetFieldNamesAlpha, dateTimeAndOffsetFieldNamesWithEraAlpha);\n const zonedSlots = zonedEpochSlotsToIso(zonedDateTimeSlots);\n const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, zonedSlots);\n const origFields = {\n year: year,\n monthCode: computeMonthCode(calendar, year, month),\n day: day,\n hour: zonedSlots.hour,\n minute: zonedSlots.minute,\n second: zonedSlots.second,\n millisecond: zonedSlots.millisecond,\n microsecond: zonedSlots.microsecond,\n nanosecond: zonedSlots.nanosecond,\n offset: zonedSlots.offsetNanoseconds\n };\n const partialFields = readAndRefineBagFields(modFields, validFieldNames, zonedDateTimeFieldRefiners);\n const mergedCalendarFields = mergeCalendarFields(calendar, origFields, partialFields);\n return [ {\n ...origFields,\n ...partialFields\n }, mergedCalendarFields ];\n}\n\nfunction mergeDateTimeFields(calendar, plainDateTimeSlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, dateTimeFieldNamesAlpha, dateTimeFieldNamesWithEraAlpha);\n const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainDateTimeSlots);\n const origFields = {\n year: year,\n monthCode: computeMonthCode(calendar, year, month),\n day: day,\n hour: plainDateTimeSlots.hour,\n minute: plainDateTimeSlots.minute,\n second: plainDateTimeSlots.second,\n millisecond: plainDateTimeSlots.millisecond,\n microsecond: plainDateTimeSlots.microsecond,\n nanosecond: plainDateTimeSlots.nanosecond\n };\n const partialFields = readAndRefineBagFields(modFields, validFieldNames, dateTimeFieldRefiners);\n const mergedCalendarFields = mergeCalendarFields(calendar, origFields, partialFields);\n return [ {\n ...origFields,\n ...partialFields\n }, mergedCalendarFields ];\n}\n\nfunction mergeDateFields(calendar, plainDateSlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha);\n const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainDateSlots);\n return mergeCalendarFields(calendar, {\n year: year,\n monthCode: computeMonthCode(calendar, year, month),\n day: day\n }, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));\n}\n\nfunction mergeYearMonthFields(calendar, plainYearMonthSlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, yearMonthFieldNamesAlpha, yearMonthFieldNamesWithEraAlpha);\n const {year: year, month: month} = computeCalendarDateFields(calendar, plainYearMonthSlots);\n return mergeCalendarFields(calendar, {\n year: year,\n monthCode: computeMonthCode(calendar, year, month)\n }, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));\n}\n\nfunction mergeMonthDayFields(calendar, plainMonthDaySlots, modFields) {\n const validFieldNames = getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha);\n const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainMonthDaySlots);\n return mergeCalendarFields(calendar, {\n monthCode: computeMonthCode(calendar, year, month),\n day: day\n }, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));\n}\n\nfunction createZonedDateTimeFromMergedFields(zonedDateTimeSlots, mergedAllFields, calendarFields, year, monthCodeParts, overflow, offsetDisambig, epochDisambig) {\n const {calendar: calendar, timeZone: timeZone} = zonedDateTimeSlots;\n return createZonedEpochNanoSlots(getMatchingInstantFor(timeZone, combineDateAndTime(createDateFromRefinedFields(calendarFields, calendar, year, monthCodeParts, overflow), constrainTimeFields(mergedAllFields, overflow)), mergedAllFields.offset, offsetDisambig, epochDisambig), timeZone, calendar);\n}\n\nfunction createDateTimeFromMergedFields(mergedAllFields, calendarFields, calendar, year, monthCodeParts, overflow) {\n return createDateTimeFromRefinedFields(createDateFromRefinedFields(calendarFields, calendar, year, monthCodeParts, overflow), constrainTimeFields(mergedAllFields, overflow), calendar);\n}\n\nfunction mergeTimeFields(initialFields, modFields) {\n return {\n ...pluckProps(timeFieldNamesAlpha, initialFields),\n ...readAndRefineBagFields(modFields, timeFieldNamesAlpha, timeFieldRefiners)\n };\n}\n\nfunction mergeDurationFields(slots, fields) {\n return createDurationSlots((initialFields = slots, modFields = fields, validateDurationFields({\n ...initialFields,\n ...readAndRefineBagFields(modFields, durationFieldNamesAlpha, durationFieldRefiners)\n })));\n var initialFields, modFields;\n}\n\nfunction computeMonthCode(calendar, year, month) {\n const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);\n return formatMonthCode(monthCodeNumber, isLeapMonth);\n}\n\nfunction totalDuration(refineRelativeTo, slots, options) {\n const [totalUnit, relativeToSlots] = refineTotalOptions(options, refineRelativeTo);\n const maxDurationUnit = getMaxDurationUnit(slots);\n const maxUnit = Math.max(totalUnit, maxDurationUnit);\n const isZoned = relativeToSlots && isZonedEpochSlots(relativeToSlots);\n if (!relativeToSlots && isUniformUnit(maxUnit, isZoned)) {\n return totalDayTimeDuration(slots, totalUnit);\n }\n if (relativeToSlots || throwRangeError(\"Missing relativeTo\"), !slots.sign && (!isZoned || totalUnit < 6)) {\n return 0;\n }\n const [balancedDuration, endEpochNano, relativeOps] = spanRelativeDuration(relativeToSlots, slots, totalUnit);\n return isUniformUnit(totalUnit, isZoned) ? totalDayTimeDuration(balancedDuration, totalUnit) : ((durationFields, endEpochNano, totalUnit, relativeOps) => {\n const fieldName = durationFieldNamesAsc[totalUnit];\n const baseDurationFields = clearDurationFields(totalUnit, durationFields);\n return totalRelativeUnit(durationFields[fieldName], computeDurationSign(durationFields) || 1, endEpochNano, value => (baseDurationFields[fieldName] = value, \n moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields)));\n })(balancedDuration, endEpochNano, totalUnit, relativeOps);\n}\n\nfunction totalDayTimeDuration(durationFields, totalUnit) {\n return divideBigNanoToExactNumber(durationDayTimeToBigNano(durationFields), unitNanoMap[totalUnit]);\n}\n\nfunction instantToZonedDateTime(instantSlots, timeZone, calendar) {\n return createZonedEpochNanoSlots(instantSlots.epochNanoseconds, timeZone, calendar);\n}\n\nfunction zonedDateTimeToInstant(zonedDateTimeSlots0) {\n return createEpochNanoSlots(zonedDateTimeSlots0.epochNanoseconds);\n}\n\nfunction zonedDateTimeToDateTime(zonedDateTimeSlots0) {\n return createDateTimeSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0), zonedDateTimeSlots0.calendar);\n}\n\nfunction zonedDateTimeToDate(zonedDateTimeSlots0) {\n return createDateSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0), zonedDateTimeSlots0.calendar);\n}\n\nfunction zonedDateTimeToTime(zonedDateTimeSlots0) {\n return createTimeSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0));\n}\n\nfunction dateTimeToZonedDateTime(plainDateTimeSlots, timeZone, epochDisambig) {\n return createZonedEpochNanoSlots(checkEpochNanoInBounds(getSingleInstantFor(timeZone, plainDateTimeSlots, epochDisambig)), timeZone, plainDateTimeSlots.calendar);\n}\n\nfunction dateToZonedDateTime(plainDateSlots, timeZone, timeFields) {\n let epochNano;\n return epochNano = timeFields ? getSingleInstantFor(timeZone, combineDateAndTime(plainDateSlots, timeFields)) : getStartOfDayInstantFor(timeZone, combineDateAndTime(plainDateSlots, timeFieldDefaults)), \n createZonedEpochNanoSlots(epochNano, timeZone, plainDateSlots.calendar);\n}\n\nfunction yearMonthToDate(calendar, input, bag) {\n return mergeFieldsIntoDate(calendar, pluckProps(getCalendarFieldNames(calendar, yearMonthCodeFieldNamesAlpha, yearMonthCodeFieldNamesWithEraAlpha), input), readAndRefineBagFields(requireObjectLike(bag), dayFieldNamesAsc, dateFieldRefiners, []));\n}\n\nfunction monthDayToDate(calendar, input, bag) {\n const extraFieldNames = getCalendarFieldNames(calendar, yearFieldNamesAsc, yearFieldNamesWithEraAlpha);\n return mergeFieldsIntoDate(calendar, pluckProps(monthCodeDayFieldNamesAlpha, input), readAndRefineBagFields(requireObjectLike(bag), extraFieldNames, dateFieldRefiners, []));\n}\n\nfunction fieldsToMonthDay(calendar, input) {\n const refinedFields = readAndRefineBagFields(input, monthCodeDayFieldNamesAlpha, dateFieldRefiners);\n const [year, monthCodeParts] = refineMonthDayFields(refinedFields, calendar);\n return createMonthDayFromRefinedFields(refinedFields, calendar, year, monthCodeParts, 0);\n}\n\nfunction fieldsToYearMonth(calendar, input) {\n const refinedFields = readAndRefineBagFields(input, getCalendarFieldNames(calendar, yearMonthCodeFieldNamesAlpha, yearMonthCodeFieldNamesWithEraAlpha), dateFieldRefiners);\n const [year, monthCodeParts] = refineCalendarDateFields(refinedFields, calendar, 1);\n return createYearMonthFromRefinedFields(refinedFields, calendar, year, monthCodeParts, 0);\n}\n\nfunction mergeFieldsIntoDate(calendar, inputFields, extraFields) {\n const mergedFieldNames = getCalendarFieldNames(calendar, yearMonthCodeDayFieldNamesAlpha, yearMonthCodeDayFieldNamesWithEraAlpha);\n let mergedFields = mergeCalendarFields(calendar, inputFields, extraFields);\n mergedFields = readAndRefineBagFields(mergedFields, mergedFieldNames, dateFieldRefiners, []);\n const [year, monthCodeParts] = refineCalendarDateFields(mergedFields, calendar);\n return createDateFromRefinedFields(mergedFields, calendar, year, monthCodeParts, 0);\n}\n\nfunction epochMilliToInstant(epochMilli) {\n return createEpochNanoSlots(checkEpochNanoInBounds(BigInt(toStrictInteger(epochMilli)) * bigNanoInMilli));\n}\n\nfunction epochNanoToInstant(epochNano) {\n return createEpochNanoSlots(checkEpochNanoInBounds(toBigInt(epochNano)));\n}\n\nfunction applyPlainFormatTimeZone(options) {\n return options.timeZone = \"UTC\", [ \"full\", \"long\" ].includes(options.timeStyle) && (options.timeStyle = \"medium\"), \n options;\n}\n\nfunction applyZonedFormatTimeZone(options, timeZoneId) {\n return void 0 !== options.timeZone && throwTypeError(\"Cannot specify TimeZone\"), \n options.timeZone = timeZoneId, options;\n}\n\nfunction checkResolvedCalendarCompatible(format, slots, strictCalendarCheck) {\n const resolvedCalendarId = format.resolvedOptions().calendar;\n !strictCalendarCheck && slots.calendar === isoCalendarImpl || getCalendarSlotId(slots.calendar) === resolvedCalendarId || throwRangeError(\"Mismatching Calendars\");\n}\n\nfunction createOptionsTransformer(shapeFieldNames, invalidShapeFieldNames, ignoredFieldNames, defaultShapeFields, dateStyleReplacementFields) {\n const shapeFieldNameSet = new Set(shapeFieldNames);\n const invalidShapeFieldNameSet = new Set(invalidShapeFieldNames);\n const ignoredFieldNameSet = new Set(ignoredFieldNames);\n return (options, allowPartialOverlap) => {\n let dateStyle;\n let timeStyle;\n const granularShapeFields = {};\n const modifierFields = {};\n const otherFields = {};\n let hasInvalidGranularShapeFields = 0;\n let hasInvalidStyleFields = 0;\n for (const name of Object.keys(options)) {\n const value = options[name];\n void 0 === value || ignoredFieldNameSet.has(name) || (shapeFieldNameSet.has(name) ? \"dateStyle\" === name ? dateStyle = value : \"timeStyle\" === name ? timeStyle = value : granularShapeFields[name] = value : \"era\" === name ? modifierFields[name] = value : invalidShapeFieldNameSet.has(name) ? \"dateStyle\" === name || \"timeStyle\" === name ? hasInvalidStyleFields = 1 : hasInvalidGranularShapeFields = 1 : otherFields[name] = value);\n }\n const hasDateStyle = void 0 !== dateStyle;\n const hasTimeStyle = void 0 !== timeStyle;\n const hasAnyStyle = hasDateStyle || hasTimeStyle;\n const hasGranularShapeFields = Object.keys(granularShapeFields).length > 0;\n const hasInvalids = hasInvalidGranularShapeFields || hasInvalidStyleFields;\n const hasShapeFields = hasGranularShapeFields || hasDateStyle || hasTimeStyle;\n const hasModifierFields = Object.keys(modifierFields).length > 0;\n (!allowPartialOverlap && hasInvalids || allowPartialOverlap && hasInvalids && !hasShapeFields || hasAnyStyle && (hasGranularShapeFields || hasModifierFields || hasInvalidGranularShapeFields)) && throwTypeError(\"Invalid formatting options\");\n const transformedOptions = {};\n return hasAnyStyle || hasShapeFields || Object.assign(transformedOptions, defaultShapeFields), \n Object.assign(transformedOptions, granularShapeFields, modifierFields, otherFields), \n hasDateStyle && (dateStyleReplacementFields ? Object.assign(transformedOptions, dateStyleReplacementFields[dateStyle]) : transformedOptions.dateStyle = dateStyle), \n hasTimeStyle && (transformedOptions.timeStyle = timeStyle), transformedOptions;\n };\n}\n\nconst dateDefaultShapeFields = {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\"\n};\n\nconst timeDefaultShapeFields = {\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\"\n};\n\nconst dateTimeDefaultShapeFields = /*@__PURE__*/ Object.assign({}, dateDefaultShapeFields, timeDefaultShapeFields);\n\nconst dateShapeFieldNames = [ \"weekday\", \"year\", \"month\", \"day\", \"dateStyle\" ];\n\nconst timeShapeFieldNames = [ \"dayPeriod\", \"hour\", \"minute\", \"second\", \"fractionalSecondDigits\", \"timeStyle\" ];\n\nconst dateTimeShapeFieldNames = /*@__PURE__*/ dateShapeFieldNames.concat(timeShapeFieldNames);\n\nconst yearMonthIgnoredFieldNames = /*@__PURE__*/ [ \"weekday\", \"day\" ].concat(timeShapeFieldNames);\n\nconst monthDayIgnoredFieldNames = /*@__PURE__*/ [ \"weekday\", \"year\" ].concat(timeShapeFieldNames);\n\nconst transformInstantOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [], dateTimeDefaultShapeFields);\n\nconst transformZonedOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [], {\n ...dateTimeDefaultShapeFields,\n timeZoneName: \"short\"\n});\n\nconst transformDateTimeOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [ \"timeZoneName\" ], dateTimeDefaultShapeFields);\n\nconst transformDateOptions = /*@__PURE__*/ createOptionsTransformer(dateShapeFieldNames, timeShapeFieldNames, [ \"timeZoneName\" ], dateDefaultShapeFields);\n\nconst transformTimeOptions = /*@__PURE__*/ createOptionsTransformer(timeShapeFieldNames, dateShapeFieldNames, [ \"timeZoneName\", \"era\" ], timeDefaultShapeFields);\n\nconst transformYearMonthOptions = /*@__PURE__*/ createOptionsTransformer([ \"year\", \"month\", \"dateStyle\" ], yearMonthIgnoredFieldNames, [ \"timeZoneName\" ], {\n year: \"numeric\",\n month: \"numeric\"\n}, {\n full: {\n year: \"numeric\",\n month: \"long\"\n },\n long: {\n year: \"numeric\",\n month: \"long\"\n },\n medium: {\n year: \"numeric\",\n month: \"short\"\n },\n short: {\n year: \"2-digit\",\n month: \"numeric\"\n }\n});\n\nconst transformMonthDayOptions = /*@__PURE__*/ createOptionsTransformer([ \"month\", \"day\", \"dateStyle\" ], monthDayIgnoredFieldNames, [ \"timeZoneName\", \"era\" ], {\n month: \"numeric\",\n day: \"numeric\"\n}, {\n full: {\n month: \"long\",\n day: \"numeric\"\n },\n long: {\n month: \"long\",\n day: \"numeric\"\n },\n medium: {\n month: \"short\",\n day: \"numeric\"\n },\n short: {\n month: \"numeric\",\n day: \"numeric\"\n }\n});\n\nfunction zonedDateTimeWithPlainTime(zonedDateTimeSlots, plainTimeFields) {\n const {timeZone: timeZone} = zonedDateTimeSlots;\n const isoDateTime = zonedEpochSlotsToIso(zonedDateTimeSlots);\n const {offsetNanoseconds: offsetNanoseconds} = isoDateTime;\n const time = plainTimeFields || timeFieldDefaults;\n let epochNano;\n return epochNano = plainTimeFields ? getMatchingInstantFor(timeZone, combineDateAndTime(isoDateTime, time), offsetNanoseconds, 2) : getStartOfDayInstantFor(timeZone, combineDateAndTime(isoDateTime, time)), \n createZonedEpochNanoSlots(epochNano, timeZone, zonedDateTimeSlots.calendar);\n}\n\nfunction getCurrentIsoDateTime(timeZone) {\n const epochNano = getCurrentEpochNano();\n const offsetNano = timeZone.B(epochNano);\n return epochNanoToIsoDateTime(epochNano + BigInt(offsetNano));\n}\n\nfunction getCurrentEpochNano() {\n return BigInt(Date.now()) * bigNanoInMilli;\n}\n\nfunction getCurrentTimeZoneId() {\n return (new RawDateTimeFormat).resolvedOptions().timeZone;\n}\n\nfunction createDateTimeFormatShell(createArgsProvider, transformOptions = identity) {\n const internalsMap = new WeakMap;\n function getInternals(format) {\n const internals = internalsMap.get(format);\n return internals || throwTypeError(\"Invalid calling context\"), internals;\n }\n class ShimDateTimeFormat {\n constructor(locales, options = Object.create(null)) {\n const transformedOptions = transformOptions(options);\n const observedOptionNames = [];\n const trackedOptions = new Proxy(Object.create(null), {\n get(_target, name) {\n const value = transformedOptions[name];\n return void 0 !== value && observedOptionNames.push(name), value;\n }\n });\n const baseFormat = new RawDateTimeFormat(locales, trackedOptions);\n const resolvedOptions = baseFormat.resolvedOptions();\n const copiedOptions = pluckProps(observedOptionNames, resolvedOptions);\n internalsMap.set(this, {\n $: createArgsProvider({\n t: baseFormat,\n Ce: resolvedOptions.locale,\n G: copiedOptions,\n Ee: transformedOptions\n }),\n t: baseFormat\n });\n }\n get format() {\n const internals = getInternals(this);\n return internals.we || (internals.we = record => {\n const [format, ...rest] = internals.$.A(record);\n return format.format(...rest);\n });\n }\n formatToParts(record) {\n const {$: argsProvider} = getInternals(this);\n const [format, ...rest] = argsProvider.A(record);\n return format.formatToParts(...rest);\n }\n resolvedOptions() {\n return getInternals(this).t.resolvedOptions();\n }\n }\n const {prototype: prototype} = ShimDateTimeFormat;\n function DateTimeFormat(locales, options) {\n return new ShimDateTimeFormat(locales, options);\n }\n RawDateTimeFormat.prototype.formatRange && Object.defineProperties(prototype, createPropDescriptors({\n formatRange(record0, record1) {\n const {$: argsProvider} = getInternals(this);\n const [format, epochMilli0, epochMilli1] = argsProvider.v(record0, record1);\n return format.formatRange(epochMilli0, epochMilli1);\n },\n formatRangeToParts(record0, record1) {\n const {$: argsProvider} = getInternals(this);\n const [format, epochMilli0, epochMilli1] = argsProvider.v(record0, record1);\n return format.formatRangeToParts(epochMilli0, epochMilli1);\n }\n }));\n const rawStaticDescriptors = Object.getOwnPropertyDescriptors(RawDateTimeFormat);\n return rawStaticDescriptors.prototype.value = prototype, Object.defineProperties(DateTimeFormat, rawStaticDescriptors), \n prototype.constructor = DateTimeFormat, Object.defineProperties(prototype, createStringTagDescriptors(\"Intl.DateTimeFormat\")), \n DateTimeFormat;\n}\n\nfunction countEpochNanoUnit(start, end, unit, [roundingInc, roundingMode]) {\n let diffNano = end - start;\n return void 0 !== roundingMode && (diffNano = roundBigNanoToInc(diffNano, computeBigNanoInc(unit, roundingInc), roundingMode)), \n divideBigNanoToExactNumber(diffNano, unitNanoMap[unit]);\n}\n\nfunction countDateTimeUnit(start, end, unit, rounding) {\n return countEpochNanoUnit(isoDateTimeToEpochNano(start), isoDateTimeToEpochNano(end), unit, rounding);\n}\n\nfunction countTimeUnit(start, end, unit, [roundingInc, roundingMode]) {\n let diffNano = timeFieldsToNano(end) - timeFieldsToNano(start);\n return void 0 !== roundingMode && (diffNano = roundNumberToInc(diffNano, computeNanoInc(unit, roundingInc), roundingMode)), \n divideBigNanoToExactNumber(BigInt(diffNano), unitNanoMap[unit]);\n}\n\nfunction countEpochNanoDays(startEpochNano, endEpochNano, originTimeNano, [roundingInc, roundingMode]) {\n let diffNano = endEpochNano - startEpochNano;\n if (void 0 !== roundingMode) {\n diffNano = roundBigNanoToInc(diffNano, computeBigNanoInc(6, roundingInc), roundingMode);\n } else if (diffNano) {\n const originTimeBigNano = BigInt(originTimeNano);\n checkIsoDateTimeEpochNanoInBounds(startEpochNano - originTimeBigNano), checkIsoDateTimeEpochNanoInBounds(endEpochNano - originTimeBigNano);\n }\n return divideBigNanoToExactNumber(diffNano, unitNanoMap[6]);\n}\n\nfunction countYearMonthUnit(calendar, isoDate0, isoDate1, unit, rounding) {\n const start = moveToStartOfMonth(calendar, isoDate0);\n const end = moveToStartOfMonth(calendar, isoDate1);\n return compareIsoDates(start, end) ? (checkIsoDateInBounds(start), checkIsoDateInBounds(end), \n countRelativeUnit(unit, {\n he: () => diffCalendarDates(calendar, start, end, unit),\n me: createDateRelativeOps(calendar, start),\n ie: isoDateToEpochNano(end)\n }, rounding, 0, 8 === unit)) : 0;\n}\n\nfunction countRelativeUnit(unit, relativeUnitDiff, [roundingInc, roundingMode], isZoned, isPrecisionUnit) {\n const {he: diffExact, me: relativeOps} = relativeUnitDiff;\n const durationFields = diffExact();\n let {ie: endEpochNano} = relativeUnitDiff;\n return computeDurationSign(durationFields) ? void 0 !== roundingMode ? isPrecisionUnit && 1 === roundingInc ? durationFields[durationFieldNamesAsc[unit]] : resolveDurationUnit(unit, durationFields, endEpochNano, relativeOps, roundingInc, roundingMode) : (isZoned ? endEpochNano = checkEpochNanoInBounds(moveRelativeMarkerToEpochNano(relativeOps, {\n ...durationFields,\n ...durationTimeFieldDefaults\n }) + durationTimeToBigNano(durationFields)) : (checkIsoDateTimeEpochNanoInBounds(relativeOps.ne), \n checkIsoDateTimeEpochNanoInBounds(endEpochNano)), resolveDurationUnit(unit, durationFields, endEpochNano, relativeOps, 1, void 0)) : 0;\n}\n\nfunction countDateWeeks(originIsoDate, endEpochNano, [roundingInc, roundingMode]) {\n const originEpochNano = isoDateToEpochNano(originIsoDate);\n const diffNano = endEpochNano - originEpochNano;\n if (!diffNano) {\n return 0;\n }\n void 0 === roundingMode && (checkIsoDateTimeEpochNanoInBounds(originEpochNano), \n checkIsoDateTimeEpochNanoInBounds(endEpochNano));\n const wholeWeeks = Number(diffNano / (7n * bigNanoInUtcDay));\n const sign = diffNano < 0n ? -1 : 1;\n const moveWeeksToEpochNano = weeks => {\n return weeks ? (((epochNano = originEpochNano + BigInt(weeks) * bigNanoInUtcDay * 7n) < plainDateEpochNanoMin || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate), \n epochNano) : originEpochNano;\n var epochNano;\n };\n return void 0 === roundingMode ? totalRelativeUnit(wholeWeeks, sign, endEpochNano, moveWeeksToEpochNano) : roundRelativeUnit(wholeWeeks, sign, endEpochNano, moveWeeksToEpochNano, roundingInc, roundingMode);\n}\n\nfunction countZonedDayWeekUnit(unit, timeZone, startZoned, endZoned, [roundingInc, roundingMode]) {\n const daysInUnit = 7 === unit ? 7 : 1;\n const startEpochNano = startZoned.epochNanoseconds;\n const sign = endZoned.epochNanoseconds > startEpochNano ? 1 : -1;\n const originIsoDateTime = zonedEpochSlotsToIso(startZoned);\n let deltaDays = 0;\n let remainderNano;\n if (compareIsoDates(originIsoDateTime, zonedEpochSlotsToIso(endZoned))) {\n const [startIsoDateTime, endIsoDate, timeNano] = prepareZonedEpochDiff(timeZone, startZoned, endZoned, sign);\n deltaDays = isoDateToEpochDays(endIsoDate) - isoDateToEpochDays(startIsoDateTime), \n remainderNano = timeNano;\n } else {\n remainderNano = Number(endZoned.epochNanoseconds - startEpochNano);\n }\n const moveByDays = days => days ? getSingleInstantFor(timeZone, combineDateAndTime(checkIsoDateInBounds(moveDateByDays(originIsoDateTime, days)), originIsoDateTime)) : startEpochNano;\n const endEpochNano = void 0 === roundingMode ? checkEpochNanoInBounds(moveByDays(deltaDays) + BigInt(remainderNano)) : endZoned.epochNanoseconds;\n const wholeValue = Math.trunc(deltaDays / daysInUnit);\n const moveValueToEpochNano = value => moveByDays(value * daysInUnit);\n return void 0 === roundingMode ? totalRelativeUnit(wholeValue, sign, endEpochNano, moveValueToEpochNano) : roundRelativeUnit(wholeValue, sign, endEpochNano, moveValueToEpochNano, roundingInc, roundingMode);\n}\n\nfunction resolveDurationUnit(unit, durationFields, endEpochNano, relativeOps, unitWindowInc, roundingMode) {\n const sign = computeDurationSign(durationFields);\n const fieldName = durationFieldNamesAsc[unit];\n const moveValueToEpochNano = value => moveRelativeMarkerToEpochNano(relativeOps, {\n ...durationFieldDefaults,\n [fieldName]: value\n });\n return void 0 === roundingMode ? totalRelativeUnit(durationFields[fieldName], sign, endEpochNano, moveValueToEpochNano) : roundRelativeUnit(durationFields[fieldName], sign, endEpochNano, moveValueToEpochNano, unitWindowInc, roundingMode);\n}\n\nfunction moveToRefinedDayOfYear(calendar, isoDate, dayOfYear, overflow) {\n return moveDateByDays(isoDate, clampEntity(\"dayOfMonth\", dayOfYear, 1, computeCalendarDaysInYear(calendar, isoDate), overflow) - computeCalendarDayOfYear(calendar, isoDate));\n}\n\nfunction moveToRefinedDayOfMonth(calendar, isoDate, day, overflow) {\n return moveDateByDays(isoDate, clampEntity(\"day\", day, 1, computeCalendarDaysInMonth(calendar, isoDate), overflow) - computeCalendarDateFields(calendar, isoDate).day);\n}\n\nfunction moveToRefinedDayOfWeek(isoDate, dayOfWeek, overflow) {\n return moveDateByDays(isoDate, clampEntity(\"dayOfWeek\", dayOfWeek, 1, 7, overflow) - computeIsoDayOfWeek(isoDate));\n}\n\nfunction moveToRefinedWeekOfYear(calendar, isoDate, weekOfYear, overflow) {\n calendar !== isoCalendarImpl && throwRangeError(unsupportedWeekNumbers);\n const {weekOfYear: currentWeekOfYear, De: weeksInYear} = computeIsoWeekFields(isoDate);\n return moveDateByDays(isoDate, 7 * (clampEntity(\"weekOfYear\", weekOfYear, 1, weeksInYear, overflow) - currentWeekOfYear));\n}\n\nfunction computeDayFloor(slots) {\n return combineDateAndTime(slots, timeFieldDefaults);\n}\n\nfunction computeYearFloor(calendar, slots) {\n const {year: year0} = computeCalendarDateFields(calendar, slots);\n return computeCalendarDateTimeFromParts(calendar, year0);\n}\n\nfunction computeMonthFloor(calendar, slots) {\n const {year: year0, month: month0} = computeCalendarDateFields(calendar, slots);\n return computeCalendarDateTimeFromParts(calendar, year0, month0);\n}\n\nfunction computeIsoWeekFloor(_calendar, slots) {\n return combineDateAndTime(moveDateByDays(slots, 1 - computeIsoDayOfWeek(slots)), timeFieldDefaults);\n}\n\nfunction computeYearCeil(calendar, slots) {\n return computeYearInterval(calendar, slots)[1];\n}\n\nfunction computeMonthCeil(calendar, slots) {\n return computeMonthInterval(calendar, slots)[1];\n}\n\nfunction computeIsoWeekCeil(calendar, slots) {\n return combineDateAndTime(moveDateByDays(computeIsoWeekFloor(0, slots), 7), timeFieldDefaults);\n}\n\nfunction computeDayCeil(_calendar, slots) {\n return combineDateAndTime(moveDateByDays(slots, 1), timeFieldDefaults);\n}\n\nfunction computeYearInterval(calendar, slots) {\n return [ computeYearFloor(calendar, slots), computeCalendarDateTimeFromParts(calendar, computeCalendarDateFields(calendar, slots).year + 1) ];\n}\n\nfunction computeMonthInterval(calendar, slots) {\n const isoDateTime0 = computeMonthFloor(calendar, slots);\n const {year: year, month: month} = computeCalendarDateFields(calendar, slots);\n const {year: year1, month: month1} = addCalendarMonths(calendar, year, month, 1);\n return [ isoDateTime0, computeCalendarDateTimeFromParts(calendar, year1, month1) ];\n}\n\nfunction computeIsoWeekInterval(calendar, slots) {\n const isoDateTime0 = computeIsoWeekFloor(0, slots);\n return [ isoDateTime0, combineDateAndTime(moveDateByDays(isoDateTime0, 7), timeFieldDefaults) ];\n}\n\nfunction roundDateToInterval(computeInterval, calendar, slots, roundingMode) {\n return roundEpochNanoToInterval(computeInterval, calendar, slots, isoDateToEpochNano(slots), roundingMode);\n}\n\nfunction computeCalendarDateTimeFromParts(calendar, year, month = 1) {\n return combineDateAndTime(computeCalendarIsoFieldsFromParts(calendar, year, month, 1), timeFieldDefaults);\n}\n\nfunction roundDateTimeToInterval(computeInterval, calendar, slots, roundingMode) {\n return roundEpochNanoToInterval(computeInterval, calendar, slots, isoDateTimeToEpochNano(slots), roundingMode);\n}\n\nfunction roundEpochNanoToInterval(computeInterval, calendar, slots, epochNano, roundingMode) {\n const [isoDateTime0, isoDateTime1] = computeInterval(calendar, slots);\n return roundWithMode(computeEpochNanoFrac(epochNano, isoDateTimeToEpochNano(isoDateTime0), isoDateTimeToEpochNano(isoDateTime1)), roundingMode) ? isoDateTime1 : isoDateTime0;\n}\n\nexport { RawDateTimeFormat, absDuration, addDurationsWithoutRelativeTo, addIsoMonths, alignZonedEpoch, applyPlainFormatTimeZone, applyZonedFormatTimeZone, bigNanoInHour, bigNanoInMicro, bigNanoInMilli, bigNanoInMinute, bigNanoInSec, bindArgs, checkEpochNanoInBounds, checkIsoDateInBounds, checkIsoDateTimeInBounds, checkIsoYearMonthInBounds, checkResolvedCalendarCompatible, clampEntity, combineDateAndTime, compareDurations, compareIsoDateFields, compareIsoDateTimeFields, compareNumbers, compareTimeFields, compareZonedEpochSlots, computeBigNanoInc, computeCalendarDateFields, computeCalendarDayOfYear, computeCalendarDaysInMonth, computeCalendarDaysInYear, computeCalendarEraFields, computeCalendarInLeapYear, computeCalendarMonthCode, computeCalendarMonthsInYear, computeCalendarWeekOfYear, computeCalendarYearOfWeek, computeDayCeil, computeDayFloor, computeGregoryEraFields, computeIsoDayOfWeek, computeIsoDaysInMonth, computeIsoDaysInYear, computeIsoFieldsFromParts, computeIsoInLeapYear, computeIsoMonthCodeParts, computeIsoWeekCeil, computeIsoWeekFloor, computeIsoWeekInterval, computeIsoYearMonthFieldsForMonthDay, computeMonthCeil, computeMonthFloor, computeMonthInterval, computeNanoInc, computeYearCeil, computeYearFloor, computeYearInterval, computeZonedHoursInDay, computeZonedStartOfDay, constrainToRange, countDateTimeUnit, countDateWeeks, countEpochNanoDays, countEpochNanoUnit, countRelativeUnit, countTimeUnit, countYearMonthUnit, countZonedDayWeekUnit, createDateFromRefinedFields, createDateRelativeOps, createDateSlots, createDateTimeFormatShell, createDateTimeFromMergedFields, createDateTimeFromRefinedFields, createDateTimeSlots, createDurationSlots, createEpochNanoSlots, createMonthDayFromCalendarParts, createMonthDayFromRefinedFields, createNameDescriptors, createPropDescriptors, createPropGetters, createStringTagDescriptors, createTimeSlots, createYearMonthFromCalendarParts, createYearMonthFromRefinedFields, createZonedDateTimeFromMergedFields, createZonedEpochNanoSlots, createZonedRelativeOps, dateTimeToZonedDateTime, dateToZonedDateTime, diffCalendarDates, diffDateTimesExact, diffDateTimesRounded, diffDatesRounded, diffEpochMilliDays, diffEpochNanosRounded, diffIsoMonthSlots, diffTimesRounded, diffYearMonthsRounded, diffZonedDateTimesRounded, diffZonedEpochsExact, durationFieldNamesAsc, durationGetters, epochDaysToIsoDate, epochMilliToInstant, epochMilliToIsoDateTime, epochNanoToInstant, epochNanoToIsoDateTime, epochNanoToMilli, eraYearToYear, exoticCalendarRequired, fieldsToMonthDay, fieldsToYearMonth, flippedSmallestLargestUnit, forbiddenValueOf, formatDateIsoAuto, formatDateTimeIsoAuto, formatDurationIso, formatDurationIsoAuto, formatEpochMilliToPartsRecord, formatInstantIso, formatInstantIsoAuto, formatMonthDayIsoAuto, formatOffsetNano, formatPlainDateIso, formatPlainDateTimeIso, formatPlainMonthDayIso, formatPlainTimeIso, formatPlainYearMonthIso, formatTimeIsoAuto, formatYearMonthIsoAuto, formatZonedDateTimeIso, formatZonedDateTimeIsoAuto, getCalendarSlotId, getCommonCalendar, getCommonTimeZone, getCurrentEpochNano, getCurrentIsoDateTime, getCurrentTimeZoneId, getMatchingInstantFor, getSingleInstantFor, getZonedTimeZoneId, gregoryCalendarId, gregoryCalendarImpl, gregoryEraOrigins, instantToZonedDateTime, instantsEqual, invalidBag, invalidCalendar, invalidCallingContext, invalidChoice, invalidEntity, invalidFormatType, invalidRelativeTo, invalidTimeZone, isObjectLike, isoCalendarId, isoCalendarImpl, isoDateTimeToEpochMilli, isoDateTimeToEpochNano, isoDateToEpochDays, isoDateToEpochMilli, isoDateToEpochNano, isoEpochFirstLeapYear, isoEpochOriginYear, isoMonthsInYear, isoPartsToEpochDays, mapProps, maxMilli, memoize, mergeDateFields, mergeDateTimeFields, mergeDurationFields, mergeMonthDayFields, mergeTimeFields, mergeYearMonthFields, mergeZonedDateTimeFields, milliInUtcDay, mismatchingFormatTypes, missingSmallestLargestUnit, modFloor, monthCodeNumberToMonth, monthDayToDate, monthToMonthCodeNumber, moveDate, moveDateByCalendarUnits, moveDateByDays, moveDateTime, moveDateTimeByNano, moveEpochNano, moveEpochNanoByNano, moveTime, moveTimeByNano, moveToRefinedDayOfMonth, moveToRefinedDayOfWeek, moveToRefinedDayOfYear, moveToRefinedWeekOfYear, moveYearMonth, moveYearMonthByUnits, moveZonedEpochSlots, nanoInHour, nanoInMicro, nanoInMilli, nanoInMinute, nanoInSec, nanoInUtcDay, negateDuration, negateDurationFields, noop, outOfBoundsDate, parseCalendarId, parseDuration, parseInstant, parsePlainDate, parsePlainDateTime, parsePlainMonthDay, parsePlainTime, parsePlainYearMonth, parseRelativeToSlots, parseTimeZoneId, parseZonedDateTime, plainDateTimesEqual, plainDatesEqual, plainMonthDaysEqual, plainTimesEqual, plainYearMonthsEqual, queryTimeZone, refineCalendarDateFields, refineDurationObjectLike, refineMaybeZonedDateTimeObjectLike, refineMonthDayFields, refinePlainDateObjectLike, refinePlainDateTimeObjectLike, refinePlainMonthDayObjectLike, refinePlainTimeObjectLike, refinePlainYearMonthObjectLike, refineTimeZoneId, refineZonedDateTimeObjectLike, requireNumberIsInteger, requirePropDefined, requireString, resolveTimeFields, resolveTimeZoneId, roundBigNanoToDayOriginInc, roundDateTimeToInc, roundDateTimeToInterval, roundDateToInterval, roundDuration, roundExpand, roundHalfCeil, roundHalfEven, roundHalfExpand, roundHalfFloor, roundHalfTrunc, roundTimeToInc, roundZonedEpochSlotsToUnit, roundZonedEpochToDay, roundZonedEpochToInterval, roundZonedEpochToTime, throwRangeError, throwTypeError, timeFieldDefaults, timeFieldsToMilli, timeFieldsToNano, timeGetters, toBigInt, toStrictInteger, toString, totalDuration, transformDateOptions, transformDateTimeOptions, transformInstantOptions, transformMonthDayOptions, transformTimeOptions, transformYearMonthOptions, transformZonedOptions, unitNameMap, unitNamesAsc, unitNanoMap, utcTimeZoneId, validateDurationCalendarUnit, validateDurationFields, validateIsoDateFields, validateIsoDateTimeFields, validateTimeFields, yearMonthToDate, zonedDateTimeToDate, zonedDateTimeToDateTime, zonedDateTimeToInstant, zonedDateTimeToTime, zonedDateTimeWithPlainTime, zonedDateTimesEqual, zonedEpochSlotsToIso };\n","import { createNameDescriptors, createStringTagDescriptors, mapProps, noop, throwTypeError, invalidCallingContext, forbiddenValueOf as forbiddenValueOf$1, computeCalendarEraFields, computeCalendarDateFields, computeCalendarMonthCode, computeCalendarDaysInMonth, computeCalendarDaysInYear, computeCalendarMonthsInYear, computeCalendarInLeapYear, computeIsoDayOfWeek, computeCalendarDayOfYear, computeCalendarWeekOfYear, computeCalendarYearOfWeek, diffEpochNanosRounded, getCommonCalendar, diffZonedDateTimesRounded, diffDateTimesRounded, diffDatesRounded, diffYearMonthsRounded, diffTimesRounded, createDurationSlots, negateDurationFields, mergeDateFields, refineCalendarDateFields, createDateFromRefinedFields, mergeDateTimeFields, createDateTimeFromMergedFields, mergeYearMonthFields, createYearMonthFromRefinedFields, mergeMonthDayFields, refineMonthDayFields, createMonthDayFromRefinedFields, mergeTimeFields, resolveTimeFields, mergeZonedDateTimeFields, createZonedDateTimeFromMergedFields, createPropGetters, durationGetters as durationGetters$1, timeGetters as timeGetters$1, bindArgs, getCommonTimeZone, countRelativeUnit, diffZonedEpochsExact, createZonedRelativeOps, countZonedDayWeekUnit, createDateRelativeOps, diffDateTimesExact, countDateWeeks, countEpochNanoDays, timeFieldsToNano, isoDateTimeToEpochNano, isoDateToEpochNano, diffCalendarDates, countYearMonthUnit, countDateTimeUnit, countTimeUnit, countEpochNanoUnit, moveDateByCalendarUnits, toStrictInteger, moveToRefinedDayOfYear, moveToRefinedDayOfMonth, moveToRefinedDayOfWeek, moveToRefinedWeekOfYear } from \"./internal.js\";\n\nimport { refineDiffOptions, refineOverflowOptions, refineZonedFieldOptions, refineUnitDiffOptions } from \"./options.js\";\n\nimport { toIntegerWithTrunc } from \"temporal-utils/protected\";\n\nimport \"temporal-utils/protected-error-messages\";\n\nconst PlainYearMonthBranding = \"PlainYearMonth\";\n\nconst PlainMonthDayBranding = \"PlainMonthDay\";\n\nconst PlainDateBranding = \"PlainDate\";\n\nconst PlainDateTimeBranding = \"PlainDateTime\";\n\nconst PlainTimeBranding = \"PlainTime\";\n\nconst ZonedDateTimeBranding = \"ZonedDateTime\";\n\nconst InstantBranding = \"Instant\";\n\nconst DurationBranding = \"Duration\";\n\nconst CalendarBranding = \"Calendar\";\n\nfunction defineTemporalClass(branding, cls, getSlots, ...getterMaps) {\n return Object.defineProperties(cls, createNameDescriptors(branding)), Object.defineProperties(cls.prototype, createStringTagDescriptors(\"Temporal.\" + branding)), \n Object.defineProperties(cls.prototype, mapProps(getter => ({\n get() {\n return getter(getSlots(this));\n },\n configurable: 1\n }), Object.assign({}, ...getterMaps))), cls;\n}\n\nconst attachDebugString = \"noop\" === noop.name ? instance => {\n Object.defineProperty(instance, \"_str_\", {\n value: instance.toJSON()\n });\n} : noop;\n\nfunction invalidRecordType() {\n throwTypeError(invalidCallingContext);\n}\n\nfunction forbiddenValueOf() {\n throwTypeError(forbiddenValueOf$1);\n}\n\nconst yearMonthFieldGetters$1 = {\n era(slots) {\n return computeCalendarEraFields(slots.calendar, slots).era;\n },\n eraYear(slots) {\n return computeCalendarEraFields(slots.calendar, slots).eraYear;\n },\n year(slots) {\n return computeCalendarDateFields(slots.calendar, slots).year;\n },\n month(slots) {\n return computeCalendarDateFields(slots.calendar, slots).month;\n },\n monthCode(slots) {\n return computeCalendarMonthCode(slots.calendar, slots);\n }\n};\n\nconst dateFieldGetters$1 = {\n era(slots) {\n return computeCalendarEraFields(slots.calendar, slots).era;\n },\n eraYear(slots) {\n return computeCalendarEraFields(slots.calendar, slots).eraYear;\n },\n year(slots) {\n return computeCalendarDateFields(slots.calendar, slots).year;\n },\n month(slots) {\n return computeCalendarDateFields(slots.calendar, slots).month;\n },\n monthCode(slots) {\n return computeCalendarMonthCode(slots.calendar, slots);\n },\n day(slots) {\n return computeCalendarDateFields(slots.calendar, slots).day;\n }\n};\n\nconst monthDayFieldGetters$1 = {\n monthCode(slots) {\n return computeCalendarMonthCode(slots.calendar, slots);\n },\n day(slots) {\n return computeCalendarDateFields(slots.calendar, slots).day;\n }\n};\n\nconst yearMonthDerivedGetters = {\n daysInMonth(slots) {\n return computeCalendarDaysInMonth(slots.calendar, slots);\n },\n daysInYear(slots) {\n return computeCalendarDaysInYear(slots.calendar, slots);\n },\n monthsInYear(slots) {\n return computeCalendarMonthsInYear(slots.calendar, slots);\n },\n inLeapYear(slots) {\n return computeCalendarInLeapYear(slots.calendar, slots);\n }\n};\n\nconst dateDerivedGetters = {\n dayOfWeek(slots) {\n return computeIsoDayOfWeek(slots);\n },\n dayOfYear(slots) {\n return computeCalendarDayOfYear(slots.calendar, slots);\n },\n weekOfYear(slots) {\n return computeCalendarWeekOfYear(slots.calendar, slots);\n },\n yearOfWeek(slots) {\n return computeCalendarYearOfWeek(slots.calendar, slots);\n },\n daysInWeek() {\n return 7;\n },\n daysInMonth(slots) {\n return computeCalendarDaysInMonth(slots.calendar, slots);\n },\n daysInYear(slots) {\n return computeCalendarDaysInYear(slots.calendar, slots);\n },\n monthsInYear(slots) {\n return computeCalendarMonthsInYear(slots.calendar, slots);\n },\n inLeapYear(slots) {\n return computeCalendarInLeapYear(slots.calendar, slots);\n }\n};\n\nfunction diffInstants(invert, instantSlots0, instantSlots1, options) {\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 3, 5);\n return createDiffDurationSlots(invert, diffEpochNanosRounded(instantSlots0.epochNanoseconds, instantSlots1.epochNanoseconds, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffZonedDateTimes(invert, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 5);\n return createDiffDurationSlots(invert, diffZonedDateTimesRounded(calendar, slots0, slots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffDateTimes(invert, plainDateTimeSlots0, plainDateTimeSlots1, options) {\n const calendar = getCommonCalendar(plainDateTimeSlots0.calendar, plainDateTimeSlots1.calendar);\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 6);\n return createDiffDurationSlots(invert, diffDateTimesRounded(calendar, plainDateTimeSlots0, plainDateTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffDates(invert, plainDateSlots0, plainDateSlots1, options) {\n const calendar = getCommonCalendar(plainDateSlots0.calendar, plainDateSlots1.calendar);\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 6, 9, 6);\n return createDiffDurationSlots(invert, diffDatesRounded(calendar, plainDateSlots0, plainDateSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffYearMonths(invert, plainYearMonthSlots0, plainYearMonthSlots1, options) {\n const calendar = getCommonCalendar(plainYearMonthSlots0.calendar, plainYearMonthSlots1.calendar);\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 9, 9, 8);\n return createDiffDurationSlots(invert, diffYearMonthsRounded(calendar, plainYearMonthSlots0, plainYearMonthSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction diffTimes(invert, plainTimeSlots0, plainTimeSlots1, options) {\n const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 5, 5);\n return createDiffDurationSlots(invert, diffTimesRounded(plainTimeSlots0, plainTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));\n}\n\nfunction createDiffDurationSlots(invert, durationFields) {\n return createDurationSlots(invert ? negateDurationFields(durationFields) : durationFields);\n}\n\nfunction withDateFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const fields = mergeDateFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);\n const overflow = refineOverflowOptions(options);\n return createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);\n}\n\nfunction withDateTimeFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const [mergedFields, calendarFields] = mergeDateTimeFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineCalendarDateFields(calendarFields, calendar);\n const overflow = refineOverflowOptions(options);\n return createDateTimeFromMergedFields(mergedFields, calendarFields, calendar, year, monthCodeParts, overflow);\n}\n\nfunction withYearMonthFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const fields = mergeYearMonthFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar, 1);\n const overflow = refineOverflowOptions(options);\n return createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);\n}\n\nfunction withMonthDayFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const fields = mergeMonthDayFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineMonthDayFields(fields, calendar);\n const overflow = refineOverflowOptions(options);\n return createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);\n}\n\nfunction withTimeFields(slots, modFields, options) {\n const refinedFields = mergeTimeFields(slots, modFields);\n const overflow = refineOverflowOptions(options);\n return resolveTimeFields(refinedFields, overflow);\n}\n\nfunction withZonedDateTimeFields(slots, modFields, options) {\n const {calendar: calendar} = slots;\n const [mergedFields, calendarFields] = mergeZonedDateTimeFields(calendar, slots, modFields);\n const [year, monthCodeParts] = refineCalendarDateFields(calendarFields, calendar);\n const [overflow, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options, 2);\n return createZonedDateTimeFromMergedFields(slots, mergedFields, calendarFields, year, monthCodeParts, overflow, offsetDisambig, epochDisambig);\n}\n\nfunction createNativeGetters(shimGetters) {\n return createPropGetters(Object.keys(shimGetters));\n}\n\nconst durationGetters = /*@__PURE__*/ createNativeGetters(durationGetters$1);\n\nconst timeGetters = /*@__PURE__*/ createNativeGetters(timeGetters$1);\n\nconst yearMonthFieldGetters = /*@__PURE__*/ createNativeGetters(yearMonthFieldGetters$1);\n\nconst dateFieldGetters = /*@__PURE__*/ createNativeGetters(dateFieldGetters$1);\n\nconst monthDayFieldGetters = /*@__PURE__*/ createNativeGetters(monthDayFieldGetters$1);\n\nconst diffZonedYears = /*@__PURE__*/ bindArgs(diffZonedCalendarUnit, 9);\n\nconst diffZonedMonths = /*@__PURE__*/ bindArgs(diffZonedCalendarUnit, 8);\n\nconst diffZonedWeeks = /*@__PURE__*/ bindArgs(diffZonedDayWeekUnit, 7);\n\nconst diffZonedDays = /*@__PURE__*/ bindArgs(diffZonedDayWeekUnit, 6);\n\nconst diffInstantEpochNanoTimeUnit = diffInstantTimeUnit;\n\nconst diffDateYears = /*@__PURE__*/ bindArgs(diffDateCalendarUnit, 9);\n\nconst diffDateMonths = /*@__PURE__*/ bindArgs(diffDateCalendarUnit, 8);\n\nconst diffDateTimeYears = /*@__PURE__*/ bindArgs(diffDateTimeCalendarUnit, 9);\n\nconst diffDateTimeMonths = /*@__PURE__*/ bindArgs(diffDateTimeCalendarUnit, 8);\n\nconst diffYearMonthYears = /*@__PURE__*/ bindArgs(diffYearMonthUnit, 9);\n\nconst diffYearMonthMonths = /*@__PURE__*/ bindArgs(diffYearMonthUnit, 8);\n\nfunction diffZonedEpochNanoTimeUnit(unit, slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), diffInstantTimeUnit(unit, slots0, slots1, options);\n}\n\nfunction diffDateTimeEpochNanoTimeUnit(unit, slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countDateTimeUnit(slots0, slots1, unit, refineUnitDiffOptions(unit, options));\n}\n\nfunction diffTimeNanoOfDayTimeUnit(unit, slots0, slots1, options) {\n return countTimeUnit(slots0, slots1, unit, refineUnitDiffOptions(unit, options));\n}\n\nfunction adaptRecordTimeUnitDiff(diffSlots, getSlots) {\n return (unit, record0, record1, options) => diffSlots(unit, getSlots(record0), getSlots(record1), options);\n}\n\nfunction diffInstantTimeUnit(unit, slots0, slots1, options) {\n return countEpochNanoUnit(slots0.epochNanoseconds, slots1.epochNanoseconds, unit, refineUnitDiffOptions(unit, options));\n}\n\nfunction diffZonedCalendarUnit(unit, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n const rounding = refineUnitDiffOptions(unit, options);\n if (slots0.epochNanoseconds === slots1.epochNanoseconds) {\n return 0;\n }\n const timeZone = getCommonTimeZone(slots0.timeZone, slots1.timeZone);\n return countRelativeUnit(unit, {\n he: () => diffZonedEpochsExact(timeZone, calendar, slots0, slots1, unit),\n me: createZonedRelativeOps(calendar, timeZone, slots0),\n ie: slots1.epochNanoseconds\n }, rounding, 1);\n}\n\nfunction diffZonedDayWeekUnit(unit, slots0, slots1, options) {\n getCommonCalendar(slots0.calendar, slots1.calendar);\n const rounding = refineUnitDiffOptions(unit, options);\n return slots0.epochNanoseconds === slots1.epochNanoseconds ? 0 : countZonedDayWeekUnit(unit, getCommonTimeZone(slots0.timeZone, slots1.timeZone), slots0, slots1, rounding);\n}\n\nfunction diffDateTimeCalendarUnit(unit, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n return diffPlainRelativeUnit(unit, options, () => diffDateTimesExact(calendar, slots0, slots1, unit), createDateRelativeOps(calendar, slots0), computeEndEpochNanoFromMidnight(slots0, slots1));\n}\n\nfunction diffDateTimeWeeks(slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countDateWeeks(slots0, computeEndEpochNanoFromMidnight(slots0, slots1), refineUnitDiffOptions(7, options));\n}\n\nfunction diffDateTimeDays(slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countEpochNanoDays(isoDateTimeToEpochNano(slots0), isoDateTimeToEpochNano(slots1), timeFieldsToNano(slots0), refineUnitDiffOptions(6, options));\n}\n\nfunction computeEndEpochNanoFromMidnight(isoDateTime0, isoDateTime1) {\n return isoDateTimeToEpochNano(isoDateTime1) - BigInt(timeFieldsToNano(isoDateTime0));\n}\n\nfunction diffDateCalendarUnit(unit, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n return diffPlainRelativeUnit(unit, options, () => diffCalendarDates(calendar, slots0, slots1, unit), createDateRelativeOps(calendar, slots0), isoDateToEpochNano(slots1));\n}\n\nfunction diffDateWeeks(slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countDateWeeks(slots0, isoDateToEpochNano(slots1), refineUnitDiffOptions(7, options));\n}\n\nfunction diffDateDays(slots0, slots1, options) {\n return getCommonCalendar(slots0.calendar, slots1.calendar), countEpochNanoDays(isoDateToEpochNano(slots0), isoDateToEpochNano(slots1), 0, refineUnitDiffOptions(6, options));\n}\n\nfunction diffYearMonthUnit(unit, slots0, slots1, options) {\n const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);\n return countYearMonthUnit(calendar, slots0, slots1, unit, refineUnitDiffOptions(unit, options));\n}\n\nfunction diffPlainRelativeUnit(unit, options, diffExact, relativeOps, endEpochNano) {\n return countRelativeUnit(unit, {\n he: diffExact,\n me: relativeOps,\n ie: endEpochNano\n }, refineUnitDiffOptions(unit, options));\n}\n\nfunction reversedMove(f) {\n return (slots, units, options) => f(slots, -units, options);\n}\n\nfunction moveDateByYears(calendar, isoDate, years, options) {\n const overflow = refineOverflowOptions(options);\n return years ? moveDateByCalendarUnits(calendar, isoDate, toStrictInteger(years), 0, overflow) : isoDate;\n}\n\nfunction moveDateByMonths(calendar, isoDate, months, options) {\n const overflow = refineOverflowOptions(options);\n return months ? moveDateByCalendarUnits(calendar, isoDate, 0, toStrictInteger(months), overflow) : isoDate;\n}\n\nfunction moveToDayOfYear(calendar, isoDate, dayOfYear, options) {\n const overflow = refineOverflowOptions(options);\n return moveToRefinedDayOfYear(calendar, isoDate, toIntegerWithTrunc(dayOfYear), overflow);\n}\n\nfunction moveToDayOfMonth(calendar, isoDate, day, options) {\n const overflow = refineOverflowOptions(options);\n return moveToRefinedDayOfMonth(calendar, isoDate, toIntegerWithTrunc(day), overflow);\n}\n\nfunction moveToDayOfWeek(_calendar, isoDate, dayOfWeek, options) {\n const overflow = refineOverflowOptions(options);\n return moveToRefinedDayOfWeek(isoDate, toIntegerWithTrunc(dayOfWeek), overflow);\n}\n\nfunction moveToWeekOfYear(calendar, isoDate, weekOfYear, options) {\n const overflow = refineOverflowOptions(options);\n return moveToRefinedWeekOfYear(calendar, isoDate, toIntegerWithTrunc(weekOfYear), overflow);\n}\n\nexport { CalendarBranding, DurationBranding, InstantBranding, PlainDateBranding, PlainDateTimeBranding, PlainMonthDayBranding, PlainTimeBranding, PlainYearMonthBranding, ZonedDateTimeBranding, adaptRecordTimeUnitDiff, attachDebugString, dateDerivedGetters, dateFieldGetters$1 as dateFieldGetters, dateFieldGetters as dateFieldGetters$1, defineTemporalClass, diffDateDays, diffDateMonths, diffDateTimeDays, diffDateTimeEpochNanoTimeUnit, diffDateTimeMonths, diffDateTimeWeeks, diffDateTimeYears, diffDateTimes, diffDateWeeks, diffDateYears, diffDates, diffInstantEpochNanoTimeUnit, diffInstants, diffTimeNanoOfDayTimeUnit, diffTimes, diffYearMonthMonths, diffYearMonthYears, diffYearMonths, diffZonedDateTimes, diffZonedDays, diffZonedEpochNanoTimeUnit, diffZonedMonths, diffZonedWeeks, diffZonedYears, durationGetters, forbiddenValueOf, invalidRecordType, monthDayFieldGetters$1 as monthDayFieldGetters, monthDayFieldGetters as monthDayFieldGetters$1, moveDateByMonths, moveDateByYears, moveToDayOfMonth, moveToDayOfWeek, moveToDayOfYear, moveToWeekOfYear, reversedMove, timeGetters, withDateFields, withDateTimeFields, withMonthDayFields, withTimeFields, withYearMonthFields, withZonedDateTimeFields, yearMonthDerivedGetters, yearMonthFieldGetters$1 as yearMonthFieldGetters, yearMonthFieldGetters as yearMonthFieldGetters$1 };\n","import { requireString, isoCalendarId, isoCalendarImpl, gregoryCalendarId, gregoryCalendarImpl, throwRangeError, exoticCalendarRequired, timeGetters, checkEpochNanoInBounds, toBigInt, queryTimeZone, refineTimeZoneId, compareZonedEpochSlots, getCalendarSlotId, epochNanoToMilli, formatOffsetNano, zonedEpochSlotsToIso, computeZonedHoursInDay, zonedDateTimeWithPlainTime, moveZonedEpochSlots, negateDurationFields, roundZonedEpochSlotsToUnit, computeZonedStartOfDay, zonedDateTimesEqual, zonedDateTimeToInstant, zonedDateTimeToDateTime, zonedDateTimeToDate, zonedDateTimeToTime, RawDateTimeFormat, applyZonedFormatTimeZone, getZonedTimeZoneId, transformZonedOptions, checkResolvedCalendarCompatible, formatZonedDateTimeIso, isObjectLike, refineZonedDateTimeObjectLike, parseZonedDateTime, createZonedEpochNanoSlots, throwTypeError, invalidTimeZone, resolveTimeZoneId, parseTimeZoneId, epochMilliToInstant, epochNanoToInstant, createEpochNanoSlots, moveEpochNano, roundBigNanoToDayOriginInc, computeBigNanoInc, instantsEqual, instantToZonedDateTime, transformInstantOptions, formatInstantIso, parseInstant, requireNumberIsInteger, bigNanoInMilli, isoEpochFirstLeapYear, checkIsoDateInBounds, validateIsoDateFields, createDateSlots, plainMonthDaysEqual, monthDayToDate, applyPlainFormatTimeZone, transformMonthDayOptions, isoDateToEpochMilli, formatPlainMonthDayIso, refinePlainMonthDayObjectLike, parsePlainMonthDay, checkIsoYearMonthInBounds, compareIsoDateFields, moveYearMonth, plainYearMonthsEqual, yearMonthToDate, transformYearMonthOptions, formatPlainYearMonthIso, refinePlainYearMonthObjectLike, parsePlainYearMonth, invalidBag, validateTimeFields, mapProps, createTimeSlots, compareTimeFields, moveTime, roundTimeToInc, plainTimesEqual, transformTimeOptions, timeFieldsToMilli, formatPlainTimeIso, refinePlainTimeObjectLike, parsePlainTime, computeNanoInc, checkIsoDateTimeInBounds, validateIsoDateTimeFields, createDateTimeSlots, compareIsoDateTimeFields, createDateTimeFromRefinedFields, moveDateTime, roundDateTimeToInc, plainDateTimesEqual, dateTimeToZonedDateTime, transformDateTimeOptions, isoDateTimeToEpochMilli, formatPlainDateTimeIso, combineDateAndTime, refinePlainDateTimeObjectLike, parsePlainDateTime, timeFieldDefaults, moveDate, plainDatesEqual, dateToZonedDateTime, fieldsToYearMonth, fieldsToMonthDay, transformDateOptions, formatPlainDateIso, refinePlainDateObjectLike, parsePlainDate, invalidCalendar, parseCalendarId, durationGetters, validateDurationFields, toStrictInteger, createDurationSlots, compareDurations, mergeDurationFields, negateDuration, absDuration, addDurationsWithoutRelativeTo, roundDuration, totalDuration, formatDurationIso, refineDurationObjectLike, parseDuration, refineMaybeZonedDateTimeObjectLike, parseRelativeToSlots, createStringTagDescriptors, createPropDescriptors, getCurrentTimeZoneId, getCurrentEpochNano, getCurrentIsoDateTime } from \"./internal.js\";\n\nimport { createDateTimeFormatClass, createIntlExtended } from \"./classApi.js\";\n\nimport { defineTemporalClass, dateDerivedGetters, dateFieldGetters, withZonedDateTimeFields, diffZonedDateTimes, forbiddenValueOf, ZonedDateTimeBranding, invalidRecordType, attachDebugString, diffInstants, InstantBranding, monthDayFieldGetters, withMonthDayFields, PlainMonthDayBranding, yearMonthDerivedGetters, yearMonthFieldGetters, withYearMonthFields, diffYearMonths, PlainYearMonthBranding, PlainDateTimeBranding, PlainDateBranding, PlainTimeBranding, DurationBranding, withTimeFields, diffTimes, withDateTimeFields, diffDateTimes, withDateFields, diffDates } from \"./apiHelpers.js\";\n\nimport \"temporal-utils/protected-error-messages\";\n\nimport { toIntegerWithTrunc } from \"temporal-utils/protected\";\n\nimport { refineOverflowOptions, refineRoundingOptions, refineDirectionOptions, refineZonedFieldOptions, refineEpochDisambigOptions } from \"./options.js\";\n\nfunction resolveBasicCalendarId(rawCalendarId) {\n const lowerRawCalendarId = requireString(rawCalendarId).toLowerCase();\n return lowerRawCalendarId === isoCalendarId ? isoCalendarImpl : lowerRawCalendarId === gregoryCalendarId ? gregoryCalendarImpl : void throwRangeError(exoticCalendarRequired(rawCalendarId, \"temporal-polyfill/full\"));\n}\n\nfunction resolveBasicCalendarArg(rawCalendarId = isoCalendarId) {\n return resolveBasicCalendarId(rawCalendarId);\n}\n\nconst zonedDateTimeSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst ZonedDateTime = /*@__PURE__*/ defineTemporalClass(ZonedDateTimeBranding, class {\n constructor(epochNanoseconds, timeZoneId, calendar = void 0) {\n const epochNano = checkEpochNanoInBounds(toBigInt(epochNanoseconds));\n const timeZone = queryTimeZone(refineTimeZoneId(timeZoneId));\n const calendarImpl = resolveBasicCalendarArg(calendar);\n initZonedDateTime(this, createZonedEpochNanoSlots(epochNano, timeZone, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createZonedDateTime(toZonedDateTimeSlots(arg, options));\n }\n static compare(arg0, arg1) {\n return compareZonedEpochSlots(toZonedDateTimeSlots(arg0), toZonedDateTimeSlots(arg1));\n }\n get calendarId() {\n return getCalendarSlotId(getZonedDateTimeSlots(this).calendar);\n }\n get timeZoneId() {\n return getZonedDateTimeSlots(this).timeZone.id;\n }\n get epochMilliseconds() {\n return epochNanoToMilli(getZonedDateTimeSlots(this).epochNanoseconds);\n }\n get epochNanoseconds() {\n return getZonedDateTimeSlots(this).epochNanoseconds;\n }\n get offset() {\n return formatOffsetNano(zonedEpochSlotsToIso(getZonedDateTimeSlots(this)).offsetNanoseconds);\n }\n get offsetNanoseconds() {\n return zonedEpochSlotsToIso(getZonedDateTimeSlots(this)).offsetNanoseconds;\n }\n get hoursInDay() {\n return computeZonedHoursInDay(getZonedDateTimeSlots(this));\n }\n with(mod, options = void 0) {\n return createZonedDateTime(withZonedDateTimeFields(getZonedDateTimeSlots(this), validateBag(mod), options));\n }\n withCalendar(calendarArg) {\n return createZonedDateTime({\n ...getZonedDateTimeSlots(this),\n calendar: refineCalendarArg(calendarArg)\n });\n }\n withTimeZone(timeZoneArg) {\n return createZonedDateTime({\n ...getZonedDateTimeSlots(this),\n timeZone: queryTimeZone(refineTimeZoneArg(timeZoneArg))\n });\n }\n withPlainTime(plainTimeArg = void 0) {\n return createZonedDateTime(zonedDateTimeWithPlainTime(getZonedDateTimeSlots(this), optionalToPlainTimeFields(plainTimeArg)));\n }\n add(durationArg, options = void 0) {\n const slots = getZonedDateTimeSlots(this);\n return createZonedDateTime(moveZonedEpochSlots(slots, toDurationSlots(durationArg), refineOverflowOptions(options)));\n }\n subtract(durationArg, options = void 0) {\n const slots = getZonedDateTimeSlots(this);\n return createZonedDateTime(moveZonedEpochSlots(slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)));\n }\n until(otherArg, options = void 0) {\n const slots = getZonedDateTimeSlots(this);\n const other = toZonedDateTimeSlots(otherArg);\n return createDuration(diffZonedDateTimes(0, slots, other, options));\n }\n since(otherArg, options = void 0) {\n const slots = getZonedDateTimeSlots(this);\n const other = toZonedDateTimeSlots(otherArg);\n return createDuration(diffZonedDateTimes(1, slots, other, options));\n }\n round(options) {\n const slots = getZonedDateTimeSlots(this);\n const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options);\n return createZonedDateTime(roundZonedEpochSlotsToUnit(slots, smallestUnit, roundingInc, roundingMode));\n }\n startOfDay() {\n return createZonedDateTime(computeZonedStartOfDay(getZonedDateTimeSlots(this)));\n }\n equals(otherArg) {\n return zonedDateTimesEqual(getZonedDateTimeSlots(this), toZonedDateTimeSlots(otherArg));\n }\n toInstant() {\n return createInstant(zonedDateTimeToInstant(getZonedDateTimeSlots(this)));\n }\n toPlainDateTime() {\n return createPlainDateTime(zonedDateTimeToDateTime(getZonedDateTimeSlots(this)));\n }\n toPlainDate() {\n return createPlainDate(zonedDateTimeToDate(getZonedDateTimeSlots(this)));\n }\n toPlainTime() {\n return createPlainTime(zonedDateTimeToTime(getZonedDateTimeSlots(this)));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getZonedDateTimeSlots(this);\n const format = new RawDateTimeFormat(locales, applyZonedFormatTimeZone(transformZonedOptions(options), getZonedTimeZoneId(slots)));\n return checkResolvedCalendarCompatible(format, slots), format.format(epochNanoToMilli(slots.epochNanoseconds));\n }\n toString(options = void 0) {\n return formatZonedDateTimeIso(getZonedDateTimeSlots(this), options);\n }\n toJSON() {\n return formatZonedDateTimeIso(getZonedDateTimeSlots(this));\n }\n getTimeZoneTransition(options) {\n const slots = getZonedDateTimeSlots(this);\n const newEpochNano = slots.timeZone.C(slots.epochNanoseconds, refineDirectionOptions(options));\n return void 0 !== newEpochNano ? createZonedDateTime({\n ...slots,\n epochNanoseconds: newEpochNano\n }) : null;\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getZonedDateTimeIsoSlots, dateFieldGetters, dateDerivedGetters, timeGetters);\n\nfunction createZonedDateTime(slots) {\n return initZonedDateTime(Object.create(ZonedDateTime.prototype), slots);\n}\n\nfunction getZonedDateTimeSlots(obj) {\n return getZonedDateTimeSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getZonedDateTimeIsoSlots(obj) {\n const slots = getZonedDateTimeSlots(obj);\n return {\n ...zonedEpochSlotsToIso(slots),\n calendar: slots.calendar\n };\n}\n\nfunction getZonedDateTimeSlotsIfPresent(obj) {\n return zonedDateTimeSlotsMap.get(obj);\n}\n\nfunction toZonedDateTimeSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getZonedDateTimeSlotsIfPresent(arg);\n if (ownSlots) {\n return refineZonedFieldOptions(options), ownSlots;\n }\n const calendar = getCalendarFromBag(arg);\n return refineZonedDateTimeObjectLike(refineTimeZoneArg, calendar, arg, options);\n }\n return parseZonedDateTime(arg, resolveBasicCalendarId, options);\n}\n\nfunction initZonedDateTime(instance, slots) {\n return zonedDateTimeSlotsMap.set(instance, slots), attachDebugString(instance), \n instance;\n}\n\nfunction refineTimeZoneArg(arg) {\n if (isObjectLike(arg)) {\n const slots = getZonedDateTimeSlotsIfPresent(arg);\n return slots || throwTypeError(invalidTimeZone(arg)), slots.timeZone.id;\n }\n return (arg => resolveTimeZoneId(parseTimeZoneId(requireString(arg))))(arg);\n}\n\nconst instantSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst Instant = /*@__PURE__*/ defineTemporalClass(InstantBranding, class {\n constructor(epochNanoseconds) {\n const epochNano = checkEpochNanoInBounds(toBigInt(epochNanoseconds));\n initInstant(this, createEpochNanoSlots(epochNano));\n }\n static from(arg) {\n return createInstant(toInstantSlots(arg));\n }\n static fromEpochMilliseconds(epochMilli) {\n return createInstant(epochMilliToInstant(epochMilli));\n }\n static fromEpochNanoseconds(epochNano) {\n return createInstant(epochNanoToInstant(epochNano));\n }\n static compare(a, b) {\n return compareZonedEpochSlots(toInstantSlots(a), toInstantSlots(b));\n }\n get epochMilliseconds() {\n return epochNanoToMilli(getInstantSlots(this).epochNanoseconds);\n }\n get epochNanoseconds() {\n return getInstantSlots(this).epochNanoseconds;\n }\n add(durationArg) {\n const slots = getInstantSlots(this);\n return createInstant(createEpochNanoSlots(moveEpochNano(slots.epochNanoseconds, toDurationSlots(durationArg))));\n }\n subtract(durationArg) {\n const slots = getInstantSlots(this);\n return createInstant(createEpochNanoSlots(moveEpochNano(slots.epochNanoseconds, negateDurationFields(toDurationSlots(durationArg)))));\n }\n until(otherArg, options = void 0) {\n return createDuration(diffInstants(0, getInstantSlots(this), toInstantSlots(otherArg), options));\n }\n since(otherArg, options = void 0) {\n return createDuration(diffInstants(1, getInstantSlots(this), toInstantSlots(otherArg), options));\n }\n round(options) {\n const slots = getInstantSlots(this);\n const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options, 5, 1);\n return createInstant(createEpochNanoSlots(roundBigNanoToDayOriginInc(slots.epochNanoseconds, computeBigNanoInc(smallestUnit, roundingInc), roundingMode)));\n }\n equals(otherArg) {\n return instantsEqual(getInstantSlots(this), toInstantSlots(otherArg));\n }\n toZonedDateTimeISO(timeZoneArg) {\n return createZonedDateTime(instantToZonedDateTime(getInstantSlots(this), queryTimeZone(refineTimeZoneArg(timeZoneArg))));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getInstantSlots(this);\n return new RawDateTimeFormat(locales, transformInstantOptions(options)).format(epochNanoToMilli(slots.epochNanoseconds));\n }\n toString(options = void 0) {\n return formatInstantIso(refineTimeZoneArg, getInstantSlots(this), options);\n }\n toJSON() {\n return formatInstantIso(refineTimeZoneArg, getInstantSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n});\n\nfunction createInstant(slots) {\n return initInstant(Object.create(Instant.prototype), slots);\n}\n\nfunction getInstantSlots(obj) {\n return getInstantSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getInstantSlotsIfPresent(obj) {\n return instantSlotsMap.get(obj);\n}\n\nfunction toInstantSlots(arg) {\n if (isObjectLike(arg)) {\n const ownSlots = getInstantSlotsIfPresent(arg);\n if (ownSlots) {\n return ownSlots;\n }\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);\n if (zonedDateTimeSlots) {\n return createEpochNanoSlots(zonedDateTimeSlots.epochNanoseconds);\n }\n }\n return parseInstant(arg);\n}\n\nconst {toTemporalInstant: toTemporalInstant} = {\n toTemporalInstant() {\n const epochMilli = Date.prototype.valueOf.call(this);\n return createInstant(createEpochNanoSlots(BigInt(requireNumberIsInteger(epochMilli)) * bigNanoInMilli));\n }\n};\n\nfunction initInstant(instance, slots) {\n return instantSlotsMap.set(instance, slots), attachDebugString(instance), instance;\n}\n\nconst plainMonthDaySlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainMonthDay = /*@__PURE__*/ defineTemporalClass(PlainMonthDayBranding, class {\n constructor(isoMonth, isoDay, calendar = void 0, referenceIsoYear) {\n const isoMonthInt = toIntegerWithTrunc(isoMonth);\n const isoDayInt = toIntegerWithTrunc(isoDay);\n const calendarImpl = resolveBasicCalendarArg(calendar);\n const isoYearInt = toIntegerWithTrunc(referenceIsoYear ?? isoEpochFirstLeapYear);\n const fields = checkIsoDateInBounds(validateIsoDateFields({\n year: isoYearInt,\n month: isoMonthInt,\n day: isoDayInt\n }));\n initPlainMonthDay(this, createDateSlots(fields, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createPlainMonthDay(toPlainMonthDaySlots(arg, options));\n }\n get calendarId() {\n return getCalendarSlotId(getPlainMonthDaySlots(this).calendar);\n }\n with(mod, options = void 0) {\n return createPlainMonthDay(withMonthDayFields(getPlainMonthDaySlots(this), validateBag(mod), options));\n }\n equals(otherArg) {\n return plainMonthDaysEqual(getPlainMonthDaySlots(this), toPlainMonthDaySlots(otherArg));\n }\n toPlainDate(bag) {\n const slots = getPlainMonthDaySlots(this);\n return createPlainDate(monthDayToDate(slots.calendar, this, bag));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainMonthDaySlots(this);\n const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformMonthDayOptions(options)));\n return checkResolvedCalendarCompatible(format, slots, 1), format.format(isoDateToEpochMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainMonthDayIso(getPlainMonthDaySlots(this), options);\n }\n toJSON() {\n return formatPlainMonthDayIso(getPlainMonthDaySlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainMonthDaySlots, monthDayFieldGetters);\n\nfunction createPlainMonthDay(slots) {\n return initPlainMonthDay(Object.create(PlainMonthDay.prototype), slots);\n}\n\nfunction getPlainMonthDaySlots(obj) {\n return getPlainMonthDaySlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainMonthDaySlotsIfPresent(obj) {\n return plainMonthDaySlotsMap.get(obj);\n}\n\nfunction toPlainMonthDaySlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainMonthDaySlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const calendarMaybe = extractCalendarFromBag(arg);\n return refinePlainMonthDayObjectLike(void 0 === calendarMaybe ? isoCalendarImpl : calendarMaybe, void 0 === calendarMaybe, arg, options);\n }\n const res = parsePlainMonthDay(arg, resolveBasicCalendarId);\n return refineOverflowOptions(options), res;\n}\n\nfunction initPlainMonthDay(instance, slots) {\n return plainMonthDaySlotsMap.set(instance, slots), attachDebugString(instance), \n instance;\n}\n\nconst plainYearMonthSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainYearMonth = /*@__PURE__*/ defineTemporalClass(PlainYearMonthBranding, class {\n constructor(isoYear, isoMonth, calendar = void 0, referenceIsoDay) {\n const isoYearInt = toIntegerWithTrunc(isoYear);\n const isoMonthInt = toIntegerWithTrunc(isoMonth);\n const calendarImpl = resolveBasicCalendarArg(calendar);\n const isoDayInt = toIntegerWithTrunc(referenceIsoDay ?? 1);\n const fields = checkIsoYearMonthInBounds(validateIsoDateFields({\n year: isoYearInt,\n month: isoMonthInt,\n day: isoDayInt\n }));\n initPlainYearMonth(this, createDateSlots(fields, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createPlainYearMonth(toPlainYearMonthSlots(arg, options));\n }\n static compare(arg0, arg1) {\n return compareIsoDateFields(toPlainYearMonthSlots(arg0), toPlainYearMonthSlots(arg1));\n }\n get calendarId() {\n return getCalendarSlotId(getPlainYearMonthSlots(this).calendar);\n }\n with(mod, options = void 0) {\n return createPlainYearMonth(withYearMonthFields(getPlainYearMonthSlots(this), validateBag(mod), options));\n }\n add(durationArg, options = void 0) {\n const slots = getPlainYearMonthSlots(this);\n return createPlainYearMonth(createDateSlots(moveYearMonth(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));\n }\n subtract(durationArg, options = void 0) {\n const slots = getPlainYearMonthSlots(this);\n return createPlainYearMonth(createDateSlots(moveYearMonth(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));\n }\n until(otherArg, options = void 0) {\n const slots = getPlainYearMonthSlots(this);\n const other = toPlainYearMonthSlots(otherArg);\n return createDuration(diffYearMonths(0, slots, other, options));\n }\n since(otherArg, options = void 0) {\n const slots = getPlainYearMonthSlots(this);\n const other = toPlainYearMonthSlots(otherArg);\n return createDuration(diffYearMonths(1, slots, other, options));\n }\n equals(otherArg) {\n return plainYearMonthsEqual(getPlainYearMonthSlots(this), toPlainYearMonthSlots(otherArg));\n }\n toPlainDate(bag) {\n const slots = getPlainYearMonthSlots(this);\n return createPlainDate(yearMonthToDate(slots.calendar, this, bag));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainYearMonthSlots(this);\n const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformYearMonthOptions(options)));\n return checkResolvedCalendarCompatible(format, slots, 1), format.format(isoDateToEpochMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainYearMonthIso(getPlainYearMonthSlots(this), options);\n }\n toJSON() {\n return formatPlainYearMonthIso(getPlainYearMonthSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainYearMonthSlots, yearMonthFieldGetters, yearMonthDerivedGetters);\n\nfunction createPlainYearMonth(slots) {\n return initPlainYearMonth(Object.create(PlainYearMonth.prototype), slots);\n}\n\nfunction getPlainYearMonthSlots(obj) {\n return getPlainYearMonthSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainYearMonthSlotsIfPresent(obj) {\n return plainYearMonthSlotsMap.get(obj);\n}\n\nfunction toPlainYearMonthSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainYearMonthSlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const calendar = getCalendarFromBag(arg);\n return refinePlainYearMonthObjectLike(calendar, arg, options);\n }\n const res = parsePlainYearMonth(arg, resolveBasicCalendarId);\n return refineOverflowOptions(options), res;\n}\n\nfunction initPlainYearMonth(instance, slots) {\n return plainYearMonthSlotsMap.set(instance, slots), attachDebugString(instance), \n instance;\n}\n\nfunction getTemporalBrandingAndSlots(obj) {\n if (!isObjectLike(obj)) {\n return;\n }\n let slots = getInstantSlotsIfPresent(obj);\n return slots ? [ InstantBranding, slots ] : (slots = getZonedDateTimeSlotsIfPresent(obj), \n slots ? [ ZonedDateTimeBranding, slots ] : (slots = getPlainDateTimeSlotsIfPresent(obj), \n slots ? [ PlainDateTimeBranding, slots ] : (slots = getPlainDateSlotsIfPresent(obj), \n slots ? [ PlainDateBranding, slots ] : (slots = getPlainTimeSlotsIfPresent(obj), \n slots ? [ PlainTimeBranding, slots ] : (slots = getPlainYearMonthSlotsIfPresent(obj), \n slots ? [ PlainYearMonthBranding, slots ] : (slots = getPlainMonthDaySlotsIfPresent(obj), \n slots ? [ PlainMonthDayBranding, slots ] : (slots = getDurationSlotsIfPresent(obj), \n slots ? [ DurationBranding, slots ] : void 0)))))));\n}\n\nfunction validateBag(bag) {\n return (getTemporalBrandingAndSlots(bag) || void 0 !== bag.calendar || void 0 !== bag.timeZone) && throwTypeError(invalidBag), \n bag;\n}\n\nconst plainTimeSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainTime = /*@__PURE__*/ defineTemporalClass(PlainTimeBranding, class {\n constructor(hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0) {\n const fields = validateTimeFields(mapProps(toIntegerWithTrunc, {\n hour: hour,\n minute: minute,\n second: second,\n millisecond: millisecond,\n microsecond: microsecond,\n nanosecond: nanosecond\n }));\n initPlainTime(this, createTimeSlots(fields));\n }\n static from(arg, options = void 0) {\n return createPlainTime(toPlainTimeSlots(arg, options));\n }\n static compare(arg0, arg1) {\n return compareTimeFields(toPlainTimeSlots(arg0), toPlainTimeSlots(arg1));\n }\n with(mod, options = void 0) {\n return createPlainTime(withTimeFields(getPlainTimeSlots(this), validateBag(mod), options));\n }\n add(durationArg) {\n const slots = getPlainTimeSlots(this);\n return createPlainTime(moveTime(slots, toDurationSlots(durationArg))[0]);\n }\n subtract(durationArg) {\n const slots = getPlainTimeSlots(this);\n return createPlainTime(moveTime(slots, negateDurationFields(toDurationSlots(durationArg)))[0]);\n }\n until(otherArg, options = void 0) {\n return createDuration(diffTimes(0, getPlainTimeSlots(this), toPlainTimeSlots(otherArg), options));\n }\n since(otherArg, options = void 0) {\n return createDuration(diffTimes(1, getPlainTimeSlots(this), toPlainTimeSlots(otherArg), options));\n }\n round(options) {\n const slots = getPlainTimeSlots(this);\n const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options, 5);\n return createPlainTime(roundTimeToInc(slots, computeNanoInc(smallestUnit, roundingInc), roundingMode)[0]);\n }\n equals(other) {\n return plainTimesEqual(getPlainTimeSlots(this), toPlainTimeSlots(other));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainTimeSlots(this);\n return new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformTimeOptions(options))).format(timeFieldsToMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainTimeIso(getPlainTimeSlots(this), options);\n }\n toJSON() {\n return formatPlainTimeIso(getPlainTimeSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainTimeSlots, timeGetters);\n\nfunction createPlainTime(slots) {\n return initPlainTime(Object.create(PlainTime.prototype), slots);\n}\n\nfunction getPlainTimeSlots(obj) {\n return getPlainTimeSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainTimeSlotsIfPresent(obj) {\n return plainTimeSlotsMap.get(obj);\n}\n\nfunction toPlainTimeSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainTimeSlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const dateTimeSlots = getPlainDateTimeSlotsIfPresent(arg);\n if (dateTimeSlots) {\n return refineOverflowOptions(options), createTimeSlots(dateTimeSlots);\n }\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);\n return zonedDateTimeSlots ? (refineOverflowOptions(options), zonedDateTimeToTime(zonedDateTimeSlots)) : refinePlainTimeObjectLike(arg, options);\n }\n const timeSlots = parsePlainTime(arg);\n return refineOverflowOptions(options), timeSlots;\n}\n\nfunction optionalToPlainTimeFields(timeArg) {\n return void 0 === timeArg ? void 0 : toPlainTimeSlots(timeArg);\n}\n\nfunction initPlainTime(instance, slots) {\n return plainTimeSlotsMap.set(instance, slots), attachDebugString(instance), instance;\n}\n\nconst plainDateTimeSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainDateTime = /*@__PURE__*/ defineTemporalClass(PlainDateTimeBranding, class {\n constructor(isoYear, isoMonth, isoDay, hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0, calendar = void 0) {\n const fields = checkIsoDateTimeInBounds(validateIsoDateTimeFields(mapProps(toIntegerWithTrunc, {\n year: isoYear,\n month: isoMonth,\n day: isoDay,\n hour: hour,\n minute: minute,\n second: second,\n millisecond: millisecond,\n microsecond: microsecond,\n nanosecond: nanosecond\n })));\n const calendarImpl = resolveBasicCalendarArg(calendar);\n initPlainDateTime(this, createDateTimeSlots(fields, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createPlainDateTime(toPlainDateTimeSlots(arg, options));\n }\n static compare(arg0, arg1) {\n const slots0 = toPlainDateTimeSlots(arg0);\n const slots1 = toPlainDateTimeSlots(arg1);\n return compareIsoDateTimeFields(slots0, slots1);\n }\n get calendarId() {\n return getCalendarSlotId(getPlainDateTimeSlots(this).calendar);\n }\n with(mod, options = void 0) {\n return createPlainDateTime(withDateTimeFields(getPlainDateTimeSlots(this), validateBag(mod), options));\n }\n withCalendar(calendarArg) {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDateTime(createDateTimeSlots(slots, refineCalendarArg(calendarArg)));\n }\n withPlainTime(plainTimeArg = void 0) {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDateTime(createDateTimeFromRefinedFields(slots, optionalToPlainTimeFields(plainTimeArg), slots.calendar));\n }\n add(durationArg, options = void 0) {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDateTime(createDateTimeSlots(moveDateTime(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));\n }\n subtract(durationArg, options = void 0) {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDateTime(createDateTimeSlots(moveDateTime(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));\n }\n until(otherArg, options = void 0) {\n const slots = getPlainDateTimeSlots(this);\n const other = toPlainDateTimeSlots(otherArg);\n return createDuration(diffDateTimes(0, slots, other, options));\n }\n since(otherArg, options = void 0) {\n const slots = getPlainDateTimeSlots(this);\n const other = toPlainDateTimeSlots(otherArg);\n return createDuration(diffDateTimes(1, slots, other, options));\n }\n round(options) {\n const slots = getPlainDateTimeSlots(this);\n const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options);\n return createPlainDateTime(createDateTimeSlots(roundDateTimeToInc(slots, computeNanoInc(smallestUnit, roundingInc), roundingMode), slots.calendar));\n }\n equals(otherArg) {\n return plainDateTimesEqual(getPlainDateTimeSlots(this), toPlainDateTimeSlots(otherArg));\n }\n toZonedDateTime(timeZoneArg, options = void 0) {\n return createZonedDateTime(dateTimeToZonedDateTime(getPlainDateTimeSlots(this), queryTimeZone(refineTimeZoneArg(timeZoneArg)), refineEpochDisambigOptions(options)));\n }\n toPlainDate() {\n const slots = getPlainDateTimeSlots(this);\n return createPlainDate(createDateSlots(slots, slots.calendar));\n }\n toPlainTime() {\n return createPlainTime(createTimeSlots(getPlainDateTimeSlots(this)));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainDateTimeSlots(this);\n const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformDateTimeOptions(options)));\n return checkResolvedCalendarCompatible(format, slots), format.format(isoDateTimeToEpochMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainDateTimeIso(getPlainDateTimeSlots(this), options);\n }\n toJSON() {\n return formatPlainDateTimeIso(getPlainDateTimeSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainDateTimeSlots, dateFieldGetters, dateDerivedGetters, timeGetters);\n\nfunction createPlainDateTime(slots) {\n return initPlainDateTime(Object.create(PlainDateTime.prototype), slots);\n}\n\nfunction getPlainDateTimeSlots(obj) {\n return getPlainDateTimeSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainDateTimeSlotsIfPresent(obj) {\n return plainDateTimeSlotsMap.get(obj);\n}\n\nfunction toPlainDateTimeSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainDateTimeSlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const dateSlots = getPlainDateSlotsIfPresent(arg);\n if (dateSlots) {\n return refineOverflowOptions(options), createDateTimeSlots(combineDateAndTime(dateSlots, timeFieldDefaults), dateSlots.calendar);\n }\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);\n if (zonedDateTimeSlots) {\n return refineOverflowOptions(options), zonedDateTimeToDateTime(zonedDateTimeSlots);\n }\n const calendar = getCalendarFromBag(arg);\n return refinePlainDateTimeObjectLike(calendar, arg, options);\n }\n const res = parsePlainDateTime(arg, resolveBasicCalendarId);\n return refineOverflowOptions(options), res;\n}\n\nfunction initPlainDateTime(instance, slots) {\n return plainDateTimeSlotsMap.set(instance, slots), attachDebugString(instance), \n instance;\n}\n\nconst plainDateSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst PlainDate = /*@__PURE__*/ defineTemporalClass(PlainDateBranding, class {\n constructor(isoYear, isoMonth, isoDay, calendar = void 0) {\n const fields = checkIsoDateInBounds(validateIsoDateFields(mapProps(toIntegerWithTrunc, {\n year: isoYear,\n month: isoMonth,\n day: isoDay\n })));\n const calendarImpl = resolveBasicCalendarArg(calendar);\n initPlainDate(this, createDateSlots(fields, calendarImpl));\n }\n static from(arg, options = void 0) {\n return createPlainDate(toPlainDateSlots(arg, options));\n }\n static compare(arg0, arg1) {\n return compareIsoDateFields(toPlainDateSlots(arg0), toPlainDateSlots(arg1));\n }\n get calendarId() {\n return getCalendarSlotId(getPlainDateSlots(this).calendar);\n }\n with(mod, options = void 0) {\n return createPlainDate(withDateFields(getPlainDateSlots(this), validateBag(mod), options));\n }\n withCalendar(calendarArg) {\n const slots = getPlainDateSlots(this);\n return createPlainDate(createDateSlots(slots, refineCalendarArg(calendarArg)));\n }\n add(durationArg, options = void 0) {\n const slots = getPlainDateSlots(this);\n return createPlainDate(createDateSlots(moveDate(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));\n }\n subtract(durationArg, options = void 0) {\n const slots = getPlainDateSlots(this);\n return createPlainDate(createDateSlots(moveDate(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));\n }\n until(otherArg, options = void 0) {\n const slots = getPlainDateSlots(this);\n const other = toPlainDateSlots(otherArg);\n return createDuration(diffDates(0, slots, other, options));\n }\n since(otherArg, options = void 0) {\n const slots = getPlainDateSlots(this);\n const other = toPlainDateSlots(otherArg);\n return createDuration(diffDates(1, slots, other, options));\n }\n equals(otherArg) {\n return plainDatesEqual(getPlainDateSlots(this), toPlainDateSlots(otherArg));\n }\n toZonedDateTime(options) {\n const optionsObj = isObjectLike(options) ? {\n timeZone: options.timeZone,\n plainTime: options.plainTime\n } : {\n timeZone: options\n };\n const slots = getPlainDateSlots(this);\n const timeZoneId = refineTimeZoneArg(optionsObj.timeZone);\n const plainTimeArg = optionsObj.plainTime;\n const timeFields = void 0 !== plainTimeArg ? toPlainTimeSlots(plainTimeArg) : void 0;\n return createZonedDateTime(dateToZonedDateTime(slots, queryTimeZone(timeZoneId), timeFields));\n }\n toPlainDateTime(plainTimeArg = void 0) {\n const slots = getPlainDateSlots(this);\n return createPlainDateTime(createDateTimeFromRefinedFields(slots, optionalToPlainTimeFields(plainTimeArg), slots.calendar));\n }\n toPlainYearMonth() {\n const slots = getPlainDateSlots(this);\n return createPlainYearMonth(fieldsToYearMonth(slots.calendar, this));\n }\n toPlainMonthDay() {\n const slots = getPlainDateSlots(this);\n return createPlainMonthDay(fieldsToMonthDay(slots.calendar, this));\n }\n toLocaleString(locales = void 0, options = {}) {\n const slots = getPlainDateSlots(this);\n const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformDateOptions(options)));\n return checkResolvedCalendarCompatible(format, slots), format.format(isoDateToEpochMilli(slots));\n }\n toString(options = void 0) {\n return formatPlainDateIso(getPlainDateSlots(this), options);\n }\n toJSON() {\n return formatPlainDateIso(getPlainDateSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getPlainDateSlots, dateFieldGetters, dateDerivedGetters);\n\nfunction createPlainDate(slots) {\n return initPlainDate(Object.create(PlainDate.prototype), slots);\n}\n\nfunction getPlainDateSlots(obj) {\n return getPlainDateSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getPlainDateSlotsIfPresent(obj) {\n return plainDateSlotsMap.get(obj);\n}\n\nfunction toPlainDateSlots(arg, options) {\n if (isObjectLike(arg)) {\n const ownSlots = getPlainDateSlotsIfPresent(arg);\n if (ownSlots) {\n return refineOverflowOptions(options), ownSlots;\n }\n const dateTimeSlots = getPlainDateTimeSlotsIfPresent(arg);\n if (dateTimeSlots) {\n return refineOverflowOptions(options), createDateSlots(dateTimeSlots, dateTimeSlots.calendar);\n }\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);\n if (zonedDateTimeSlots) {\n return refineOverflowOptions(options), zonedDateTimeToDate(zonedDateTimeSlots);\n }\n const calendar = getCalendarFromBag(arg);\n return refinePlainDateObjectLike(calendar, arg, options);\n }\n const res = parsePlainDate(arg, resolveBasicCalendarId);\n return refineOverflowOptions(options), res;\n}\n\nfunction initPlainDate(instance, slots) {\n return plainDateSlotsMap.set(instance, slots), attachDebugString(instance), instance;\n}\n\nfunction getCalendarFromBag(bag) {\n const calendar = extractCalendarFromBag(bag);\n return void 0 === calendar ? isoCalendarImpl : calendar;\n}\n\nfunction extractCalendarFromBag(bag) {\n const {calendar: calendarArg} = bag;\n if (void 0 !== calendarArg) {\n return refineCalendarArg(calendarArg);\n }\n}\n\nfunction refineCalendarArg(arg) {\n if (isObjectLike(arg)) {\n const slots = getPlainDateSlotsIfPresent(arg) || getPlainDateTimeSlotsIfPresent(arg) || getZonedDateTimeSlotsIfPresent(arg) || getPlainMonthDaySlotsIfPresent(arg) || getPlainYearMonthSlotsIfPresent(arg);\n return slots || throwTypeError(invalidCalendar(arg)), slots.calendar;\n }\n return (arg => resolveBasicCalendarId(parseCalendarId(requireString(arg))))(arg);\n}\n\nconst durationSlotsMap = /*@__PURE__*/ new WeakMap;\n\nconst Duration = /*@__PURE__*/ defineTemporalClass(DurationBranding, class {\n constructor(years = 0, months = 0, weeks = 0, days = 0, hours = 0, minutes = 0, seconds = 0, milliseconds = 0, microseconds = 0, nanoseconds = 0) {\n const fields = validateDurationFields(mapProps(toStrictInteger, {\n years: years,\n months: months,\n weeks: weeks,\n days: days,\n hours: hours,\n minutes: minutes,\n seconds: seconds,\n milliseconds: milliseconds,\n microseconds: microseconds,\n nanoseconds: nanoseconds\n }));\n initDuration(this, createDurationSlots(fields));\n }\n static from(arg) {\n return createDuration(toDurationSlots(arg));\n }\n static compare(durationArg0, durationArg1, options = void 0) {\n return compareDurations(refinePublicRelativeTo, toDurationSlots(durationArg0), toDurationSlots(durationArg1), options);\n }\n get sign() {\n return getDurationSlots(this).sign;\n }\n get blank() {\n return !getDurationSlots(this).sign;\n }\n with(mod) {\n return createDuration(mergeDurationFields(getDurationSlots(this), mod));\n }\n negated() {\n return createDuration(negateDuration(getDurationSlots(this)));\n }\n abs() {\n return createDuration(absDuration(getDurationSlots(this)));\n }\n add(otherArg) {\n return createDuration(addDurationsWithoutRelativeTo(0, getDurationSlots(this), toDurationSlots(otherArg)));\n }\n subtract(otherArg) {\n return createDuration(addDurationsWithoutRelativeTo(1, getDurationSlots(this), toDurationSlots(otherArg)));\n }\n round(roundTo) {\n return createDuration(roundDuration(refinePublicRelativeTo, getDurationSlots(this), roundTo));\n }\n total(totalOf) {\n return totalDuration(refinePublicRelativeTo, getDurationSlots(this), totalOf);\n }\n toLocaleString(locales = void 0, options) {\n const slots = getDurationSlots(this);\n return Intl.DurationFormat ? new Intl.DurationFormat(locales, options).format(slots) : formatDurationIso(slots, options);\n }\n toString(options = void 0) {\n return formatDurationIso(getDurationSlots(this), options);\n }\n toJSON() {\n return formatDurationIso(getDurationSlots(this));\n }\n valueOf() {\n return forbiddenValueOf();\n }\n}, getDurationSlots, durationGetters);\n\nfunction createDuration(slots) {\n return initDuration(Object.create(Duration.prototype), slots);\n}\n\nfunction getDurationSlots(obj) {\n return getDurationSlotsIfPresent(obj) || invalidRecordType();\n}\n\nfunction getDurationSlotsIfPresent(obj) {\n return durationSlotsMap.get(obj);\n}\n\nfunction toDurationSlots(arg) {\n if (isObjectLike(arg)) {\n return getDurationSlotsIfPresent(arg) || refineDurationObjectLike(arg);\n }\n return parseDuration(arg);\n}\n\nfunction refinePublicRelativeTo(relativeTo) {\n if (void 0 !== relativeTo) {\n if (isObjectLike(relativeTo)) {\n const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(relativeTo);\n if (zonedDateTimeSlots) {\n return zonedDateTimeSlots;\n }\n const dateSlots = getPlainDateSlotsIfPresent(relativeTo);\n if (dateSlots) {\n return dateSlots;\n }\n const dateTimeSlots = getPlainDateTimeSlotsIfPresent(relativeTo);\n if (dateTimeSlots) {\n return createDateSlots(dateTimeSlots, dateTimeSlots.calendar);\n }\n const calendar = getCalendarFromBag(relativeTo);\n return refineMaybeZonedDateTimeObjectLike(refineTimeZoneArg, calendar, relativeTo);\n }\n return parseRelativeToSlots(relativeTo, resolveBasicCalendarId);\n }\n}\n\nfunction initDuration(instance, slots) {\n return durationSlotsMap.set(instance, slots), attachDebugString(instance), instance;\n}\n\nconst Now = /*@__PURE__*/ Object.defineProperties({}, {\n ...createStringTagDescriptors(\"Temporal.Now\"),\n ...createPropDescriptors({\n timeZoneId() {\n return getCurrentTimeZoneId();\n },\n instant() {\n return createInstant(createEpochNanoSlots(getCurrentEpochNano()));\n },\n zonedDateTimeISO(timeZoneArg = getCurrentTimeZoneId()) {\n const timeZone = queryTimeZone(refineTimeZoneArg(timeZoneArg));\n return createZonedDateTime(createZonedEpochNanoSlots(getCurrentEpochNano(), timeZone));\n },\n plainDateTimeISO(timeZoneArg = getCurrentTimeZoneId()) {\n const isoDateTime = getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)));\n return createPlainDateTime(createDateTimeSlots(isoDateTime));\n },\n plainDateISO(timeZoneArg = getCurrentTimeZoneId()) {\n const isoDateTime = getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)));\n return createPlainDate(createDateSlots(isoDateTime));\n },\n plainTimeISO(timeZoneArg = getCurrentTimeZoneId()) {\n const isoDateTime = getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)));\n return createPlainTime(createTimeSlots(isoDateTime));\n }\n })\n});\n\nconst Temporal = /*@__PURE__*/ Object.defineProperties({}, {\n ...createStringTagDescriptors(\"Temporal\"),\n ...createPropDescriptors({\n PlainYearMonth: PlainYearMonth,\n PlainMonthDay: PlainMonthDay,\n PlainDate: PlainDate,\n PlainTime: PlainTime,\n PlainDateTime: PlainDateTime,\n ZonedDateTime: ZonedDateTime,\n Instant: Instant,\n Duration: Duration,\n Now: Now\n })\n});\n\nconst DateTimeFormat = /*@__PURE__*/ createDateTimeFormatClass(getTemporalBrandingAndSlots);\n\nconst IntlExtended = /*@__PURE__*/ createIntlExtended(DateTimeFormat);\n\nexport { DateTimeFormat, IntlExtended, Temporal, toTemporalInstant };\n","import { NativeTemporal } from \"./chunks/root.js\";\n\nimport { Temporal as Temporal$1, IntlExtended, toTemporalInstant as toTemporalInstant$1 } from \"./chunks/classApi-basic.js\";\n\nconst Temporal = NativeTemporal || Temporal$1;\n\nconst IntlExport = NativeTemporal ? Intl : IntlExtended;\n\nconst toTemporalInstant = NativeTemporal ? Date.prototype.toTemporalInstant : toTemporalInstant$1;\n\nexport { IntlExport as Intl, Temporal, toTemporalInstant };\n"],"ignoreList":[0,1,2,3,4,5,6,7],"mappings":";;AAAA,IAAM4B,IAAiB,WAAW,UCCrB,oBAAoB,GAAY,MAAQ,gBAAgBC,EAAW,IAAIC,KACvE,kBAAkB,GAAY,MAAQ,cAAcD,EAAW,IAAIC,KACnE,2BAA2B,MAAe,4BAA4BD,KACtEE,IAAgB,kBAChB,oBAAoB,GAAY,GAAK,GAAK,MAAQ/B,EAAc6B,GAAYI,CAAG,IAAI,qBAAqBC,EAAI,GAAGC,KAE/GnC,IAAAA,mBAAiB,GAAW,MAAQ,WAAWoC,EAAU,IAAIH,KAAA,eAAA,GCN7DhC,IAAc,KACdC,IAAc,KACdC,IAAY,KACZC,IAAe,MACfC,IAAa;AAC1B,SAAgB,iBAAiB,GAAS;CAItC,OAHIqC,MAAY,KAAA,IACL,OAAO,OAAO,IAAI,IAEtB,kBAAkBA,CAAO;AACpC;AACA,SAAgB,eAAe,GAAK,IAAa,UAAU;CACvD,IAAI,OAAOC,KAAQ,UACf,MAAU,UAAUrC,wBAAsCuB,CAAU,CAAC;CAGzE,IADA,IAAM,OAAOc,CAAG,GACZ,CAAC,OAAO,SAASA,CAAG,GACpB,MAAU,WAAWpC,eAA6BsB,GAAYc,CAAG,CAAC;CAEtE,OAAOA;AACX;AACA,SAAgB,mBAAmB,GAAK,GAAY;CAChD,OAAO,KAAK,MAAM,eA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