@paperless/core 1.51.1 → 1.51.2

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.
@@ -14,7 +14,7 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy(JSON.parse("[[\"p-button_3\",[[4,\"p-button\",{\"variant\":[1],\"underline\":[4],\"href\":[1],\"target\":[1],\"size\":[1],\"type\":[1],\"loading\":[4],\"chevron\":[8],\"chevronPosition\":[1,\"chevron-position\"],\"disabled\":[4],\"icon\":[1],\"iconOnly\":[4,\"icon-only\"],\"iconPosition\":[1,\"icon-position\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"inheritText\":[4,\"inherit-text\"]},[[2,\"click\",\"handleClick\"]]],[1,\"p-loader\",{\"show\":[4],\"variant\":[1],\"color\":[1],\"modalTitle\":[1,\"modal-title\"],\"modalDescription\":[1,\"modal-description\"]}],[0,\"p-icon\",{\"variant\":[1],\"size\":[1],\"rotate\":[2],\"flip\":[1]}]]],[\"p-table\",[[4,\"p-table\",{\"items\":[1],\"loading\":[4],\"headerLoading\":[4,\"header-loading\"],\"footerLoading\":[4,\"footer-loading\"],\"amountOfLoadingRows\":[2,\"amount-of-loading-rows\"],\"enableRowSelection\":[4,\"enable-row-selection\"],\"rowSelectionLimit\":[2,\"row-selection-limit\"],\"enableRowClick\":[4,\"enable-row-click\"],\"selectedRows\":[16],\"enableFloatingMenu\":[4,\"enable-floating-menu\"],\"floatingMenuAmountSelectedTemplate\":[16],\"selectionKey\":[1,\"selection-key\"],\"canSelectKey\":[1,\"can-select-key\"],\"enableHeader\":[4,\"enable-header\"],\"quickFilters\":[16],\"activeQuickFilterIdentifier\":[1,\"active-quick-filter-identifier\"],\"enableSearch\":[4,\"enable-search\"],\"query\":[1025],\"enableFilter\":[4,\"enable-filter\"],\"selectedFiltersAmount\":[2,\"selected-filters-amount\"],\"filterButtonTemplate\":[16],\"enableAction\":[4,\"enable-action\"],\"actionButtonLoading\":[4,\"action-button-loading\"],\"actionButtonEnabled\":[4,\"action-button-enabled\"],\"actionButtonIcon\":[1,\"action-button-icon\"],\"actionButtonText\":[1,\"action-button-text\"],\"actionButtonTemplate\":[16],\"enableFooter\":[4,\"enable-footer\"],\"enablePageSize\":[4,\"enable-page-size\"],\"enablePagination\":[4,\"enable-pagination\"],\"enableExport\":[4,\"enable-export\"],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"emptyStateHeader\":[16],\"emptyStateContent\":[16],\"emptyStateAction\":[16],\"enableEmptyStateAction\":[4,\"enable-empty-state-action\"],\"emptyStateFilteredHeader\":[16],\"emptyStateFilteredContent\":[16],\"shadow\":[4],\"_locales\":[32],\"_columns\":[32],\"_items\":[32],\"_enableRowSelection\":[32],\"_rowSelectionLimit\":[32],\"_rowActionsFloating\":[32],\"_rowActionsRow\":[32]},[[16,\"localeChanged\",\"_setLocales\"],[16,\"tableDefinitionChanged\",\"onTableDefinitionUpdated\"],[4,\"keydown\",\"keyDown\"],[4,\"keyup\",\"keyUp\"],[4,\"visibilitychange\",\"visibilityChange\"],[9,\"resize\",\"_setRowSelectionData\"]],{\"items\":[\"_parseItems\"],\"enableRowSelection\":[\"_setRowSelectionData\"],\"rowSelectionLimit\":[\"_setRowSelectionData\"],\"selectedRows\":[\"_setRowSelectionData\"]}]]],[\"p-select\",[[0,\"p-select\",{\"items\":[1],\"multi\":[516],\"icon\":[1],\"query\":[1],\"placeholder\":[1],\"autocompletePlaceholder\":[1,\"autocomplete-placeholder\"],\"value\":[8],\"displayKey\":[1,\"display-key\"],\"dropdownDisplayKey\":[1,\"dropdown-display-key\"],\"selectionDisplayKey\":[1,\"selection-display-key\"],\"valueKey\":[1,\"value-key\"],\"avatarKey\":[1,\"avatar-key\"],\"avatarLettersKey\":[1,\"avatar-letters-key\"],\"identifierKey\":[1,\"identifier-key\"],\"queryKey\":[1,\"query-key\"],\"autoSelectFirst\":[4,\"auto-select-first\"],\"showChevron\":[4,\"show-chevron\"],\"maxDisplayedItems\":[2,\"max-displayed-items\"],\"enableAutocomplete\":[4,\"enable-autocomplete\"],\"asyncFilter\":[4,\"async-filter\"],\"loading\":[4],\"enableSelectAll\":[4,\"enable-select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"selectAllIcon\":[1,\"select-all-icon\"],\"size\":[1],\"prefix\":[1],\"label\":[1],\"helper\":[1],\"required\":[516],\"error\":[513],\"disabled\":[516],\"showAddItem\":[4,\"show-add-item\"],\"addItemText\":[1,\"add-item-text\"],\"emptyStateText\":[1,\"empty-state-text\"],\"_showDropdown\":[32],\"_selectedItem\":[32],\"_allSelected\":[32],\"_amountHidden\":[32]},[[6,\"click\",\"documentClickHandler\"]],{\"value\":[\"_valueChange\"],\"items\":[\"itemChanges\"],\"_showDropdown\":[\"_showDropdownChanges\"],\"multi\":[\"multiChanges\"]}]]],[\"p-modal\",[[1,\"p-modal\",{\"size\":[1],\"variant\":[1],\"header\":[1],\"show\":[4],\"applyBlur\":[4,\"apply-blur\"],\"showClose\":[4,\"show-close\"],\"showMobileFooter\":[4,\"show-mobile-footer\"],\"backdropClickClose\":[4,\"backdrop-click-close\"],\"scrollLock\":[4,\"scroll-lock\"],\"padding\":[4],\"_closing\":[32]},[[8,\"closeModal\",\"handleCloseModal\"]]]]],[\"p-datepicker\",[[0,\"p-datepicker\",{\"placeholder\":[1],\"value\":[1],\"preselectToday\":[4,\"preselect-today\"],\"disabledDates\":[1,\"disabled-dates\"],\"minDate\":[1,\"min-date\"],\"maxDate\":[1,\"max-date\"],\"disableWeekends\":[4,\"disable-weekends\"],\"mode\":[1],\"format\":[1],\"isIconHiddenWhenFilled\":[4,\"is-icon-hidden-when-filled\"],\"size\":[1],\"prefix\":[1],\"label\":[1],\"helper\":[1],\"required\":[516],\"error\":[513],\"disabled\":[516],\"_showDropdown\":[32],\"_value\":[32],\"_minDate\":[32],\"_maxDate\":[32],\"_disabledDates\":[32]},[[6,\"click\",\"documentClickHandler\"]],{\"value\":[\"parseValue\"],\"minDate\":[\"parseMinDate\"],\"maxDate\":[\"parseMaxDate\"],\"disabledDates\":[\"parseDisabledDates\"]}]]],[\"p-drawer\",[[1,\"p-drawer\",{\"header\":[1],\"show\":[4],\"applyBlur\":[4,\"apply-blur\"],\"showClose\":[4,\"show-close\"],\"backdropClickClose\":[4,\"backdrop-click-close\"],\"canClose\":[4,\"can-close\"],\"scrollLock\":[4,\"scroll-lock\"],\"_closing\":[32]},[[8,\"closeDrawer\",\"handleCloseDrawer\"],[8,\"forceCloseDrawer\",\"handleForceCloseDrawer\"]]]]],[\"p-attachment\",[[1,\"p-attachment\",{\"mode\":[1],\"loading\":[4],\"error\":[1],\"downloading\":[4]}]]],[\"p-navbar\",[[1,\"p-navbar\",{\"closeText\":[1,\"close-text\"],\"menuText\":[1,\"menu-text\"],\"_showMenu\":[32]},[[8,\"closeNavbar\",\"handleCloseNavbar\"],[8,\"openNavbar\",\"handleOpenNavbar\"]]]]],[\"p-profile\",[[1,\"p-profile\",{\"variant\":[1],\"size\":[513],\"_dropdownOpen\":[32]}]]],[\"p-toast\",[[1,\"p-toast\",{\"variant\":[1],\"header\":[1],\"content\":[1],\"enableAction\":[4,\"enable-action\"],\"actionIcon\":[1,\"action-icon\"],\"actionIconFlip\":[1,\"action-icon-flip\"],\"actionIconRotate\":[2,\"action-icon-rotate\"]}]]],[\"p-divider\",[[1,\"p-divider\",{\"variant\":[513]}]]],[\"p-accordion\",[[1,\"p-accordion\",{\"header\":[1],\"open\":[4],\"closeable\":[4],\"openable\":[4]}]]],[\"p-navigation-item\",[[1,\"p-navigation-item\",{\"active\":[4],\"icon\":[1],\"counter\":[8],\"href\":[1],\"target\":[1]}]]],[\"p-card-header\",[[4,\"p-card-header\",{\"header\":[1],\"arrow\":[4]}]]],[\"p-content-slider\",[[1,\"p-content-slider\",{\"hideMobileIndicator\":[4,\"hide-mobile-indicator\"],\"disableDrag\":[4,\"disable-drag\"],\"disableAutoCenter\":[4,\"disable-auto-center\"],\"disableIndicatorClick\":[4,\"disable-indicator-click\"],\"_visibleIndex\":[32],\"_outerHeight\":[32],\"_totalWidth\":[32],\"_dragging\":[32]},[[9,\"mouseup\",\"mouseUpHandler\"],[9,\"touchend\",\"mouseUpHandler\"],[9,\"resize\",\"resizeHandler\"]]]]],[\"p-cropper\",[[1,\"p-cropper\",{\"variant\":[513],\"value\":[8],\"returnType\":[1,\"return-type\"],\"_loaded\":[32],\"_currentScale\":[32]},[[9,\"resize\",\"onResize\"]]]]],[\"p-info-panel\",[[1,\"p-info-panel\",{\"variant\":[1],\"header\":[1],\"content\":[1],\"closeable\":[4]}]]],[\"p-status\",[[4,\"p-status\",{\"variant\":[1],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"]}]]],[\"p-stepper-line\",[[1,\"p-stepper-line\",{\"active\":[516],\"direction\":[513]}]]],[\"p-stepper\",[[1,\"p-stepper\",{\"activeStep\":[2,\"active-step\"],\"direction\":[513],\"contentPosition\":[513,\"content-position\"],\"_rendering\":[32]},null,{\"activeStep\":[\"_onActiveStepChange\"]}]]],[\"p-stepper-item\",[[1,\"p-stepper-item\",{\"align\":[513],\"direction\":[513],\"contentPosition\":[513,\"content-position\"],\"finished\":[516],\"active\":[516]}]]],[\"p-tab-group\",[[1,\"p-tab-group\"]]],[\"p-avatar-group\",[[4,\"p-avatar-group\",{\"extra\":[2]}]]],[\"p-card-body\",[[4,\"p-card-body\",{\"inheritText\":[516,\"inherit-text\"]}]]],[\"p-card-container\",[[1,\"p-card-container\",{\"hoverable\":[516],\"shadow\":[516]}]]],[\"p-layout\",[[1,\"p-layout\",{\"variant\":[1]}]]],[\"p-tab-item\",[[1,\"p-tab-item\",{\"active\":[4]}]]],[\"p-table-column\",[[0,\"p-table-column\",{\"path\":[1537],\"type\":[1537],\"name\":[1537],\"useSlot\":[1540,\"use-slot\"],\"hasCheckbox\":[1540,\"has-checkbox\"],\"align\":[1537],\"isLast\":[1540,\"is-last\"],\"sizes\":[1032]}]]],[\"p-table-row-action\",[[0,\"p-table-row-action\",{\"type\":[1537],\"icon\":[1],\"iconOnly\":[4,\"icon-only\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"label\":[1],\"action\":[16],\"disabled\":[4],\"loading\":[4],\"showFunction\":[16]}]]],[\"p-toast-container\",[[1,\"p-toast-container\",{\"placement\":[1]}]]],[\"p-calendar\",[[1,\"p-calendar\",{\"variant\":[1],\"value\":[1],\"preselectToday\":[4,\"preselect-today\"],\"disabledDates\":[1,\"disabled-dates\"],\"minDate\":[1,\"min-date\"],\"maxDate\":[1,\"max-date\"],\"disableWeekends\":[4,\"disable-weekends\"],\"mode\":[1],\"_view\":[32],\"_viewDate\":[32],\"_value\":[32],\"_minDate\":[32],\"_maxDate\":[32],\"_disabledDates\":[32]},null,{\"value\":[\"_parseValue\"],\"minDate\":[\"_parseMinDate\"],\"maxDate\":[\"_parseMaxDate\"],\"disabledDates\":[\"_parseDisabledDates\"]}]]],[\"p-avatar\",[[0,\"p-avatar\",{\"variant\":[513],\"size\":[513],\"defaultImage\":[1,\"default-image\"],\"src\":[1],\"letters\":[1],\"_src\":[32],\"_failed\":[32]},null,{\"src\":[\"onSrchChange\"]}]]],[\"p-counter\",[[1,\"p-counter\",{\"variant\":[1],\"size\":[1]}]]],[\"p-slider-indicator\",[[1,\"p-slider-indicator\",{\"active\":[4]}]]],[\"p-drawer-body_3\",[[1,\"p-drawer-header\",{\"showClose\":[4,\"show-close\"]}],[1,\"p-drawer-body\",{\"variant\":[1]}],[4,\"p-drawer-container\",{\"closing\":[4]}]]],[\"p-backdrop\",[[1,\"p-backdrop\",{\"variant\":[1],\"applyBlur\":[4,\"apply-blur\"],\"closing\":[4],\"scrollLock\":[4,\"scroll-lock\"]},[[2,\"click\",\"handleClick\"]]]]],[\"p-modal-body_4\",[[1,\"p-modal-header\",{\"showClose\":[4,\"show-close\"]}],[1,\"p-modal-footer\"],[1,\"p-modal-body\",{\"variant\":[1],\"rounded\":[4],\"padding\":[4]}],[4,\"p-modal-container\",{\"size\":[1],\"closing\":[4]}]]],[\"p-label_3\",[[1,\"p-label\",{\"variant\":[513],\"behavior\":[513],\"iconPosition\":[1,\"icon-position\"],\"icon\":[513],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"size\":[513],\"keepMobileContent\":[516,\"keep-mobile-content\"]}],[1,\"p-segment-item\",{\"active\":[4],\"iconOnly\":[4,\"icon-only\"],\"size\":[513],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"]}],[4,\"p-segment-container\"]]],[\"p-dropdown-menu-container\",[[4,\"p-dropdown-menu-container\",{\"maxWidth\":[4,\"max-width\"],\"fullWidth\":[4,\"full-width\"],\"allowOverflow\":[4,\"allow-overflow\"],\"scrollable\":[8]}]]],[\"p-dropdown_2\",[[1,\"p-dropdown-menu-item\",{\"active\":[4],\"variant\":[1],\"enableHover\":[4,\"enable-hover\"],\"icon\":[1]}],[1,\"p-dropdown\",{\"placement\":[513],\"offset\":[2],\"strategy\":[1],\"show\":[4],\"calculateWidth\":[4,\"calculate-width\"],\"applyMaxWidth\":[4,\"apply-max-width\"],\"applyFullWidth\":[4,\"apply-full-width\"],\"allowOverflow\":[4,\"allow-overflow\"],\"scrollable\":[8],\"insideClick\":[4,\"inside-click\"],\"disableTriggerClick\":[4,\"disable-trigger-click\"],\"applyChevron\":[4,\"apply-chevron\"],\"chevronPosition\":[1,\"chevron-position\"],\"chevronDirection\":[1,\"chevron-direction\"]},[[6,\"click\",\"documentClickHandler\"]],{\"show\":[\"onShowChange\"]}]]],[\"p-page-size-select_3\",[[1,\"p-page-size-select\",{\"size\":[1538],\"sizeOptions\":[16],\"chevronPosition\":[1,\"chevron-position\"],\"buttonSize\":[1,\"button-size\"],\"buttonTemplate\":[16],\"itemTemplate\":[16],\"hidden\":[4],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[0,\"p-pagination\",{\"page\":[1538],\"pageSize\":[2,\"page-size\"],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"total\":[2]},null,{\"page\":[\"pageChangeHandler\"],\"pageSize\":[\"pageChangeHandler\"],\"total\":[\"pageChangeHandler\"]}],[1,\"p-pagination-item\",{\"active\":[4]}]]],[\"p-tooltip\",[[1,\"p-tooltip\",{\"variant\":[1],\"content\":[8],\"placement\":[1],\"offset\":[2],\"strategy\":[1],\"enableUserInput\":[4,\"enable-user-input\"],\"show\":[4],\"canManuallyClose\":[4,\"can-manually-close\"]},[[2,\"click\",\"clickHandler\"],[6,\"click\",\"documentClickHandler\"],[1,\"mouseenter\",\"mouseEnterHandler\"],[0,\"focus\",\"mouseEnterHandler\"],[1,\"mouseleave\",\"mouseLeaveHandler\"],[0,\"blur\",\"mouseLeaveHandler\"]],{\"show\":[\"onShowChange\"]}]]],[\"p-helper_3\",[[1,\"p-input-group\",{\"size\":[1],\"prefix\":[1],\"suffix\":[1],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"iconPosition\":[1,\"icon-position\"],\"label\":[1],\"helper\":[1],\"required\":[516],\"error\":[513],\"disabled\":[516],\"focused\":[516],\"forceShowTooltip\":[516,\"force-show-tooltip\"],\"focusMethod\":[1,\"focus-method\"],\"errorVariant\":[1,\"error-variant\"],\"_forceShowTooltip\":[32]},[[0,\"focusin\",\"handleFocusIn\"],[0,\"focusout\",\"handleFocusOut\"]]],[1,\"p-helper\",{\"placement\":[1]}],[1,\"p-input-error\",{\"error\":[1],\"forceShowTooltip\":[4,\"force-show-tooltip\"],\"_showTooltip\":[32]}]]],[\"p-floating-menu-container_8\",[[1,\"p-table-header\",{\"quickFilters\":[16],\"activeQuickFilterIdentifier\":[1,\"active-quick-filter-identifier\"],\"loading\":[4],\"enableSearch\":[4,\"enable-search\"],\"itemsSelectedAmount\":[2,\"items-selected-amount\"],\"query\":[1025],\"enableFilter\":[4,\"enable-filter\"],\"selectedFiltersAmount\":[2,\"selected-filters-amount\"],\"filterButtonTemplate\":[16],\"enableAction\":[4,\"enable-action\"],\"actionLoading\":[4,\"action-loading\"],\"actionIcon\":[1,\"action-icon\"],\"actionText\":[1,\"action-text\"],\"canUseAction\":[1028,\"can-use-action\"],\"actionButtonTemplate\":[16],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[1,\"p-table-footer\",{\"enablePageSize\":[4,\"enable-page-size\"],\"enablePagination\":[4,\"enable-pagination\"],\"enableExport\":[4,\"enable-export\"],\"loading\":[4],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[4,\"p-table-cell\",{\"variant\":[1],\"index\":[2],\"rowIndex\":[2,\"row-index\"],\"definition\":[16],\"item\":[8],\"value\":[8],\"tableHasActions\":[4,\"table-has-actions\"],\"checkbox\":[8],\"template\":[16]}],[1,\"p-table-row\",{\"variant\":[1],\"enableHover\":[4,\"enable-hover\"]}],[1,\"p-floating-menu-container\",{\"usedInTable\":[4,\"used-in-table\"]}],[1,\"p-floating-menu-item\",{\"hover\":[516],\"disabled\":[516]}],[0,\"p-illustration\",{\"variant\":[1]}],[1,\"p-table-container\",{\"shadow\":[4]}]]]]"), options);
17
+ return bootstrapLazy(JSON.parse("[[\"p-button_3\",[[4,\"p-button\",{\"variant\":[1],\"underline\":[4],\"href\":[1],\"target\":[1],\"size\":[1],\"type\":[1],\"loading\":[4],\"chevron\":[8],\"chevronPosition\":[1,\"chevron-position\"],\"disabled\":[4],\"icon\":[1],\"iconOnly\":[4,\"icon-only\"],\"iconPosition\":[1,\"icon-position\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"inheritText\":[4,\"inherit-text\"]},[[2,\"click\",\"handleClick\"]]],[1,\"p-loader\",{\"show\":[4],\"variant\":[1],\"color\":[1],\"modalTitle\":[1,\"modal-title\"],\"modalDescription\":[1,\"modal-description\"]}],[0,\"p-icon\",{\"variant\":[1],\"size\":[1],\"rotate\":[2],\"flip\":[1]}]]],[\"p-table\",[[4,\"p-table\",{\"items\":[1],\"loading\":[4],\"headerLoading\":[4,\"header-loading\"],\"footerLoading\":[4,\"footer-loading\"],\"amountOfLoadingRows\":[2,\"amount-of-loading-rows\"],\"enableRowSelection\":[4,\"enable-row-selection\"],\"rowSelectionLimit\":[2,\"row-selection-limit\"],\"enableRowClick\":[4,\"enable-row-click\"],\"selectedRows\":[16],\"enableFloatingMenu\":[4,\"enable-floating-menu\"],\"floatingMenuAmountSelectedTemplate\":[16],\"selectionKey\":[1,\"selection-key\"],\"canSelectKey\":[1,\"can-select-key\"],\"enableHeader\":[4,\"enable-header\"],\"quickFilters\":[16],\"activeQuickFilterIdentifier\":[1,\"active-quick-filter-identifier\"],\"enableSearch\":[4,\"enable-search\"],\"query\":[1025],\"enableFilter\":[4,\"enable-filter\"],\"selectedFiltersAmount\":[2,\"selected-filters-amount\"],\"filterButtonTemplate\":[16],\"enableAction\":[4,\"enable-action\"],\"actionButtonLoading\":[4,\"action-button-loading\"],\"actionButtonEnabled\":[4,\"action-button-enabled\"],\"actionButtonIcon\":[1,\"action-button-icon\"],\"actionButtonText\":[1,\"action-button-text\"],\"actionButtonTemplate\":[16],\"enableFooter\":[4,\"enable-footer\"],\"enablePageSize\":[4,\"enable-page-size\"],\"enablePagination\":[4,\"enable-pagination\"],\"enableExport\":[4,\"enable-export\"],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"emptyStateHeader\":[16],\"emptyStateContent\":[16],\"emptyStateAction\":[16],\"enableEmptyStateAction\":[4,\"enable-empty-state-action\"],\"emptyStateFilteredHeader\":[16],\"emptyStateFilteredContent\":[16],\"shadow\":[4],\"_locales\":[32],\"_columns\":[32],\"_items\":[32],\"_enableRowSelection\":[32],\"_rowSelectionLimit\":[32],\"_rowActionsFloating\":[32],\"_rowActionsRow\":[32]},[[16,\"localeChanged\",\"_setLocales\"],[16,\"tableDefinitionChanged\",\"onTableDefinitionUpdated\"],[4,\"keydown\",\"keyDown\"],[4,\"keyup\",\"keyUp\"],[4,\"visibilitychange\",\"visibilityChange\"],[9,\"resize\",\"_setRowSelectionData\"]],{\"items\":[\"_parseItems\"],\"enableRowSelection\":[\"_setRowSelectionData\"],\"rowSelectionLimit\":[\"_setRowSelectionData\"],\"selectedRows\":[\"_setRowSelectionData\"]}]]],[\"p-select\",[[0,\"p-select\",{\"items\":[1],\"multi\":[516],\"icon\":[1],\"query\":[1],\"placeholder\":[1],\"autocompletePlaceholder\":[1,\"autocomplete-placeholder\"],\"value\":[8],\"displayKey\":[1,\"display-key\"],\"dropdownDisplayKey\":[1,\"dropdown-display-key\"],\"selectionDisplayKey\":[1,\"selection-display-key\"],\"valueKey\":[1,\"value-key\"],\"avatarKey\":[1,\"avatar-key\"],\"avatarLettersKey\":[1,\"avatar-letters-key\"],\"identifierKey\":[1,\"identifier-key\"],\"queryKey\":[1,\"query-key\"],\"autoSelectFirst\":[4,\"auto-select-first\"],\"showChevron\":[4,\"show-chevron\"],\"maxDisplayedItems\":[2,\"max-displayed-items\"],\"enableAutocomplete\":[4,\"enable-autocomplete\"],\"asyncFilter\":[4,\"async-filter\"],\"loading\":[4],\"enableSelectAll\":[4,\"enable-select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"selectAllIcon\":[1,\"select-all-icon\"],\"size\":[1],\"prefix\":[1],\"label\":[1],\"helper\":[1],\"required\":[516],\"error\":[513],\"disabled\":[516],\"showAddItem\":[4,\"show-add-item\"],\"addItemText\":[1,\"add-item-text\"],\"emptyStateText\":[1,\"empty-state-text\"],\"_showDropdown\":[32],\"_selectedItem\":[32],\"_allSelected\":[32],\"_amountHidden\":[32]},[[6,\"click\",\"documentClickHandler\"]],{\"value\":[\"_valueChange\"],\"items\":[\"itemChanges\"],\"_showDropdown\":[\"_showDropdownChanges\"],\"multi\":[\"multiChanges\"]}]]],[\"p-modal\",[[1,\"p-modal\",{\"size\":[1],\"variant\":[1],\"header\":[1],\"show\":[4],\"applyBlur\":[4,\"apply-blur\"],\"showClose\":[4,\"show-close\"],\"showMobileFooter\":[4,\"show-mobile-footer\"],\"backdropClickClose\":[4,\"backdrop-click-close\"],\"scrollLock\":[4,\"scroll-lock\"],\"padding\":[4],\"_closing\":[32]},[[8,\"closeModal\",\"handleCloseModal\"]]]]],[\"p-datepicker\",[[0,\"p-datepicker\",{\"placeholder\":[1],\"value\":[1],\"preselectToday\":[4,\"preselect-today\"],\"disabledDates\":[1,\"disabled-dates\"],\"minDate\":[1,\"min-date\"],\"maxDate\":[1,\"max-date\"],\"disableWeekends\":[4,\"disable-weekends\"],\"mode\":[1],\"format\":[1],\"hideIconWhenFilled\":[4,\"hide-icon-when-filled\"],\"size\":[1],\"prefix\":[1],\"label\":[1],\"helper\":[1],\"required\":[516],\"error\":[513],\"disabled\":[516],\"_showDropdown\":[32],\"_value\":[32],\"_minDate\":[32],\"_maxDate\":[32],\"_disabledDates\":[32]},[[6,\"click\",\"documentClickHandler\"]],{\"value\":[\"parseValue\"],\"minDate\":[\"parseMinDate\"],\"maxDate\":[\"parseMaxDate\"],\"disabledDates\":[\"parseDisabledDates\"]}]]],[\"p-drawer\",[[1,\"p-drawer\",{\"header\":[1],\"show\":[4],\"applyBlur\":[4,\"apply-blur\"],\"showClose\":[4,\"show-close\"],\"backdropClickClose\":[4,\"backdrop-click-close\"],\"canClose\":[4,\"can-close\"],\"scrollLock\":[4,\"scroll-lock\"],\"_closing\":[32]},[[8,\"closeDrawer\",\"handleCloseDrawer\"],[8,\"forceCloseDrawer\",\"handleForceCloseDrawer\"]]]]],[\"p-attachment\",[[1,\"p-attachment\",{\"mode\":[1],\"loading\":[4],\"error\":[1],\"downloading\":[4]}]]],[\"p-navbar\",[[1,\"p-navbar\",{\"closeText\":[1,\"close-text\"],\"menuText\":[1,\"menu-text\"],\"_showMenu\":[32]},[[8,\"closeNavbar\",\"handleCloseNavbar\"],[8,\"openNavbar\",\"handleOpenNavbar\"]]]]],[\"p-profile\",[[1,\"p-profile\",{\"variant\":[1],\"size\":[513],\"_dropdownOpen\":[32]}]]],[\"p-toast\",[[1,\"p-toast\",{\"variant\":[1],\"header\":[1],\"content\":[1],\"enableAction\":[4,\"enable-action\"],\"actionIcon\":[1,\"action-icon\"],\"actionIconFlip\":[1,\"action-icon-flip\"],\"actionIconRotate\":[2,\"action-icon-rotate\"]}]]],[\"p-divider\",[[1,\"p-divider\",{\"variant\":[513]}]]],[\"p-accordion\",[[1,\"p-accordion\",{\"header\":[1],\"open\":[4],\"closeable\":[4],\"openable\":[4]}]]],[\"p-navigation-item\",[[1,\"p-navigation-item\",{\"active\":[4],\"icon\":[1],\"counter\":[8],\"href\":[1],\"target\":[1]}]]],[\"p-card-header\",[[4,\"p-card-header\",{\"header\":[1],\"arrow\":[4]}]]],[\"p-content-slider\",[[1,\"p-content-slider\",{\"hideMobileIndicator\":[4,\"hide-mobile-indicator\"],\"disableDrag\":[4,\"disable-drag\"],\"disableAutoCenter\":[4,\"disable-auto-center\"],\"disableIndicatorClick\":[4,\"disable-indicator-click\"],\"_visibleIndex\":[32],\"_outerHeight\":[32],\"_totalWidth\":[32],\"_dragging\":[32]},[[9,\"mouseup\",\"mouseUpHandler\"],[9,\"touchend\",\"mouseUpHandler\"],[9,\"resize\",\"resizeHandler\"]]]]],[\"p-cropper\",[[1,\"p-cropper\",{\"variant\":[513],\"value\":[8],\"returnType\":[1,\"return-type\"],\"_loaded\":[32],\"_currentScale\":[32]},[[9,\"resize\",\"onResize\"]]]]],[\"p-info-panel\",[[1,\"p-info-panel\",{\"variant\":[1],\"header\":[1],\"content\":[1],\"closeable\":[4]}]]],[\"p-status\",[[4,\"p-status\",{\"variant\":[1],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"]}]]],[\"p-stepper-line\",[[1,\"p-stepper-line\",{\"active\":[516],\"direction\":[513]}]]],[\"p-stepper\",[[1,\"p-stepper\",{\"activeStep\":[2,\"active-step\"],\"direction\":[513],\"contentPosition\":[513,\"content-position\"],\"_rendering\":[32]},null,{\"activeStep\":[\"_onActiveStepChange\"]}]]],[\"p-stepper-item\",[[1,\"p-stepper-item\",{\"align\":[513],\"direction\":[513],\"contentPosition\":[513,\"content-position\"],\"finished\":[516],\"active\":[516]}]]],[\"p-tab-group\",[[1,\"p-tab-group\"]]],[\"p-avatar-group\",[[4,\"p-avatar-group\",{\"extra\":[2]}]]],[\"p-card-body\",[[4,\"p-card-body\",{\"inheritText\":[516,\"inherit-text\"]}]]],[\"p-card-container\",[[1,\"p-card-container\",{\"hoverable\":[516],\"shadow\":[516]}]]],[\"p-layout\",[[1,\"p-layout\",{\"variant\":[1]}]]],[\"p-tab-item\",[[1,\"p-tab-item\",{\"active\":[4]}]]],[\"p-table-column\",[[0,\"p-table-column\",{\"path\":[1537],\"type\":[1537],\"name\":[1537],\"useSlot\":[1540,\"use-slot\"],\"hasCheckbox\":[1540,\"has-checkbox\"],\"align\":[1537],\"isLast\":[1540,\"is-last\"],\"sizes\":[1032]}]]],[\"p-table-row-action\",[[0,\"p-table-row-action\",{\"type\":[1537],\"icon\":[1],\"iconOnly\":[4,\"icon-only\"],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"label\":[1],\"action\":[16],\"disabled\":[4],\"loading\":[4],\"showFunction\":[16]}]]],[\"p-toast-container\",[[1,\"p-toast-container\",{\"placement\":[1]}]]],[\"p-calendar\",[[1,\"p-calendar\",{\"variant\":[1],\"value\":[1],\"preselectToday\":[4,\"preselect-today\"],\"disabledDates\":[1,\"disabled-dates\"],\"minDate\":[1,\"min-date\"],\"maxDate\":[1,\"max-date\"],\"disableWeekends\":[4,\"disable-weekends\"],\"mode\":[1],\"_view\":[32],\"_viewDate\":[32],\"_value\":[32],\"_minDate\":[32],\"_maxDate\":[32],\"_disabledDates\":[32]},null,{\"value\":[\"_parseValue\"],\"minDate\":[\"_parseMinDate\"],\"maxDate\":[\"_parseMaxDate\"],\"disabledDates\":[\"_parseDisabledDates\"]}]]],[\"p-avatar\",[[0,\"p-avatar\",{\"variant\":[513],\"size\":[513],\"defaultImage\":[1,\"default-image\"],\"src\":[1],\"letters\":[1],\"_src\":[32],\"_failed\":[32]},null,{\"src\":[\"onSrchChange\"]}]]],[\"p-counter\",[[1,\"p-counter\",{\"variant\":[1],\"size\":[1]}]]],[\"p-slider-indicator\",[[1,\"p-slider-indicator\",{\"active\":[4]}]]],[\"p-drawer-body_3\",[[1,\"p-drawer-header\",{\"showClose\":[4,\"show-close\"]}],[1,\"p-drawer-body\",{\"variant\":[1]}],[4,\"p-drawer-container\",{\"closing\":[4]}]]],[\"p-backdrop\",[[1,\"p-backdrop\",{\"variant\":[1],\"applyBlur\":[4,\"apply-blur\"],\"closing\":[4],\"scrollLock\":[4,\"scroll-lock\"]},[[2,\"click\",\"handleClick\"]]]]],[\"p-modal-body_4\",[[1,\"p-modal-header\",{\"showClose\":[4,\"show-close\"]}],[1,\"p-modal-footer\"],[1,\"p-modal-body\",{\"variant\":[1],\"rounded\":[4],\"padding\":[4]}],[4,\"p-modal-container\",{\"size\":[1],\"closing\":[4]}]]],[\"p-label_3\",[[1,\"p-label\",{\"variant\":[513],\"behavior\":[513],\"iconPosition\":[1,\"icon-position\"],\"icon\":[513],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"size\":[513],\"keepMobileContent\":[516,\"keep-mobile-content\"]}],[1,\"p-segment-item\",{\"active\":[4],\"iconOnly\":[4,\"icon-only\"],\"size\":[513],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"]}],[4,\"p-segment-container\"]]],[\"p-dropdown-menu-container\",[[4,\"p-dropdown-menu-container\",{\"maxWidth\":[4,\"max-width\"],\"fullWidth\":[4,\"full-width\"],\"allowOverflow\":[4,\"allow-overflow\"],\"scrollable\":[8]}]]],[\"p-dropdown_2\",[[1,\"p-dropdown-menu-item\",{\"active\":[4],\"variant\":[1],\"enableHover\":[4,\"enable-hover\"],\"icon\":[1]}],[1,\"p-dropdown\",{\"placement\":[513],\"offset\":[2],\"strategy\":[1],\"show\":[4],\"calculateWidth\":[4,\"calculate-width\"],\"applyMaxWidth\":[4,\"apply-max-width\"],\"applyFullWidth\":[4,\"apply-full-width\"],\"allowOverflow\":[4,\"allow-overflow\"],\"scrollable\":[8],\"insideClick\":[4,\"inside-click\"],\"disableTriggerClick\":[4,\"disable-trigger-click\"],\"applyChevron\":[4,\"apply-chevron\"],\"chevronPosition\":[1,\"chevron-position\"],\"chevronDirection\":[1,\"chevron-direction\"]},[[6,\"click\",\"documentClickHandler\"]],{\"show\":[\"onShowChange\"]}]]],[\"p-page-size-select_3\",[[1,\"p-page-size-select\",{\"size\":[1538],\"sizeOptions\":[16],\"chevronPosition\":[1,\"chevron-position\"],\"buttonSize\":[1,\"button-size\"],\"buttonTemplate\":[16],\"itemTemplate\":[16],\"hidden\":[4],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[0,\"p-pagination\",{\"page\":[1538],\"pageSize\":[2,\"page-size\"],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"total\":[2]},null,{\"page\":[\"pageChangeHandler\"],\"pageSize\":[\"pageChangeHandler\"],\"total\":[\"pageChangeHandler\"]}],[1,\"p-pagination-item\",{\"active\":[4]}]]],[\"p-tooltip\",[[1,\"p-tooltip\",{\"variant\":[1],\"content\":[8],\"placement\":[1],\"offset\":[2],\"strategy\":[1],\"enableUserInput\":[4,\"enable-user-input\"],\"show\":[4],\"canManuallyClose\":[4,\"can-manually-close\"]},[[2,\"click\",\"clickHandler\"],[6,\"click\",\"documentClickHandler\"],[1,\"mouseenter\",\"mouseEnterHandler\"],[0,\"focus\",\"mouseEnterHandler\"],[1,\"mouseleave\",\"mouseLeaveHandler\"],[0,\"blur\",\"mouseLeaveHandler\"]],{\"show\":[\"onShowChange\"]}]]],[\"p-helper_3\",[[1,\"p-input-group\",{\"size\":[1],\"prefix\":[1],\"suffix\":[1],\"icon\":[1],\"iconFlip\":[1,\"icon-flip\"],\"iconRotate\":[2,\"icon-rotate\"],\"iconPosition\":[1,\"icon-position\"],\"label\":[1],\"helper\":[1],\"required\":[516],\"error\":[513],\"disabled\":[516],\"focused\":[516],\"forceShowTooltip\":[516,\"force-show-tooltip\"],\"focusMethod\":[1,\"focus-method\"],\"errorVariant\":[1,\"error-variant\"],\"_forceShowTooltip\":[32]},[[0,\"focusin\",\"handleFocusIn\"],[0,\"focusout\",\"handleFocusOut\"]]],[1,\"p-helper\",{\"placement\":[1]}],[1,\"p-input-error\",{\"error\":[1],\"forceShowTooltip\":[4,\"force-show-tooltip\"],\"_showTooltip\":[32]}]]],[\"p-floating-menu-container_8\",[[1,\"p-table-header\",{\"quickFilters\":[16],\"activeQuickFilterIdentifier\":[1,\"active-quick-filter-identifier\"],\"loading\":[4],\"enableSearch\":[4,\"enable-search\"],\"itemsSelectedAmount\":[2,\"items-selected-amount\"],\"query\":[1025],\"enableFilter\":[4,\"enable-filter\"],\"selectedFiltersAmount\":[2,\"selected-filters-amount\"],\"filterButtonTemplate\":[16],\"enableAction\":[4,\"enable-action\"],\"actionLoading\":[4,\"action-loading\"],\"actionIcon\":[1,\"action-icon\"],\"actionText\":[1,\"action-text\"],\"canUseAction\":[1028,\"can-use-action\"],\"actionButtonTemplate\":[16],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[1,\"p-table-footer\",{\"enablePageSize\":[4,\"enable-page-size\"],\"enablePagination\":[4,\"enable-pagination\"],\"enableExport\":[4,\"enable-export\"],\"loading\":[4],\"page\":[1538],\"total\":[2],\"pageSize\":[2,\"page-size\"],\"pageSizeOptions\":[16],\"hideOnSinglePage\":[4,\"hide-on-single-page\"],\"_locales\":[32]},[[16,\"localeChanged\",\"_setLocales\"]]],[4,\"p-table-cell\",{\"variant\":[1],\"index\":[2],\"rowIndex\":[2,\"row-index\"],\"definition\":[16],\"item\":[8],\"value\":[8],\"tableHasActions\":[4,\"table-has-actions\"],\"checkbox\":[8],\"template\":[16]}],[1,\"p-table-row\",{\"variant\":[1],\"enableHover\":[4,\"enable-hover\"]}],[1,\"p-floating-menu-container\",{\"usedInTable\":[4,\"used-in-table\"]}],[1,\"p-floating-menu-item\",{\"hover\":[516],\"disabled\":[516]}],[0,\"p-illustration\",{\"variant\":[1]}],[1,\"p-table-container\",{\"shadow\":[4]}]]]]"), options);
18
18
  });
19
19
 
20
20
  //# sourceMappingURL=paperless.js.map
package/dist/index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Stencil Component Starter</title> <script type="module" src="/build/paperless.esm.js" data-stencil data-resources-url="/build/" data-stencil-namespace="paperless"></script> <script nomodule="" src="/build/paperless.js" data-stencil></script> </head> <body> <p-button>Buttono</p-button> <script data-build="2024-09-11T09:37:46">
1
+ <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Stencil Component Starter</title> <script type="module" src="/build/paperless.esm.js" data-stencil data-resources-url="/build/" data-stencil-namespace="paperless"></script> <script nomodule="" src="/build/paperless.js" data-stencil></script> </head> <body> <p-button>Buttono</p-button> <script data-build="2024-09-11T11:15:40">
2
2
  if ('serviceWorker' in navigator && location.protocol !== 'file:') {
3
3
  window.addEventListener('load', function() {
4
4
  navigator.serviceWorker.register('/sw.js')
@@ -1,2 +1,2 @@
1
- import{r as t,c as r,h as e,H as n,g as i}from"./p-e4d5e7a7.js";import{c as a}from"./p-4d330cfc.js";import{_ as u,g as o,s,a as c,r as f,t as v,b as l,c as d,d as h,e as w,l as y,f as p,h as b,i as m,j as k,k as g,m as x,n as T,o as D,p as M,q as E,u as A,v as q}from"./p-d3d8468b.js";var L=6e4;var Q=36e5;var R=1e3;function I(t,r){if(t==null){throw new TypeError("assign requires that input parameter not be null or undefined")}for(var e in r){if(Object.prototype.hasOwnProperty.call(r,e)){t[e]=r[e]}}return t}function S(t,r){if(r==null||r>t.length)r=t.length;for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function j(t,r){if(!t)return;if(typeof t==="string")return S(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor)e=t.constructor.name;if(e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return S(t,r)}function B(t,r){var e=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=j(t))||r&&t&&typeof t.length==="number"){if(e)t=e;var n=0;var i=function t(){};return{s:i,n:function r(){if(n>=t.length)return{done:true};return{done:false,value:t[n++]}},e:function t(r){throw r},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,u=false,o;return{s:function r(){e=e.call(t)},n:function t(){var r=e.next();a=r.done;return r},e:function t(r){u=true;o=r},f:function t(){try{if(!a&&e["return"]!=null)e["return"]()}finally{if(u)throw o}}}}function O(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function Y(t,r){Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function t(r,e){r.__proto__=e;return r};return Y(t,r)}function G(t,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(r)Y(t,r)}function X(t){X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function t(r){return r.__proto__||Object.getPrototypeOf(r)};return X(t)}function N(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(t){return false}}function H(t,r){if(r&&(u(r)==="object"||typeof r==="function")){return r}else if(r!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return O(t)}function C(t){var r=N();return function e(){var n=X(t),i;if(r){var a=X(this).constructor;i=Reflect.construct(n,arguments,a)}else{i=n.apply(this,arguments)}return H(this,i)}}function P(t,r){if(!(t instanceof r)){throw new TypeError("Cannot call a class as a function")}}function _(t,r){if(u(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==undefined){var n=e.call(t,r||"default");if(u(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function K(t){var r=_(t,"string");return u(r)==="symbol"?r:String(r)}function Z(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,K(n.key),n)}}function W(t,r,e){if(r)Z(t.prototype,r);if(e)Z(t,e);Object.defineProperty(t,"prototype",{writable:false});return t}function F(t,r,e){r=K(r);if(r in t){Object.defineProperty(t,r,{value:e,enumerable:true,configurable:true,writable:true})}else{t[r]=e}return t}var V=10;var $=function(){function t(){P(this,t);F(this,"priority",void 0);F(this,"subPriority",0)}W(t,[{key:"validate",value:function t(r,e){return true}}]);return t}();var z=function(t){G(e,t);var r=C(e);function e(t,n,i,a,u){var o;P(this,e);o=r.call(this);o.value=t;o.validateValue=n;o.setValue=i;o.priority=a;if(u){o.subPriority=u}return o}W(e,[{key:"validate",value:function t(r,e){return this.validateValue(r,this.value,e)}},{key:"set",value:function t(r,e,n){return this.setValue(r,e,this.value,n)}}]);return e}($);var J=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",V);F(O(t),"subPriority",-1);return t}W(e,[{key:"set",value:function t(r,e){if(e.timestampIsSet){return r}var n=new Date(0);n.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate());n.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds());return n}}]);return e}($);var U=function(){function t(){P(this,t);F(this,"incompatibleTokens",void 0);F(this,"priority",void 0);F(this,"subPriority",void 0)}W(t,[{key:"run",value:function t(r,e,n,i){var a=this.parse(r,e,n,i);if(!a){return null}return{setter:new z(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}}},{key:"validate",value:function t(r,e,n){return true}}]);return t}();var tt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",140);F(O(t),"incompatibleTokens",["R","u","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"})||n.era(r,{width:"narrow"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})||n.era(r,{width:"abbreviated"})||n.era(r,{width:"narrow"})}}},{key:"set",value:function t(r,e,n){e.era=n;r.setUTCFullYear(n,0,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var rt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/};var et={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function nt(t,r){if(!t){return t}return{value:r(t.value),rest:t.rest}}function it(t,r){var e=r.match(t);if(!e){return null}return{value:parseInt(e[0],10),rest:r.slice(e[0].length)}}function at(t,r){var e=r.match(t);if(!e){return null}if(e[0]==="Z"){return{value:0,rest:r.slice(1)}}var n=e[1]==="+"?1:-1;var i=e[2]?parseInt(e[2],10):0;var a=e[3]?parseInt(e[3],10):0;var u=e[5]?parseInt(e[5],10):0;return{value:n*(i*Q+a*L+u*R),rest:r.slice(e[0].length)}}function ut(t){return it(rt.anyDigitsSigned,t)}function ot(t,r){switch(t){case 1:return it(rt.singleDigit,r);case 2:return it(rt.twoDigits,r);case 3:return it(rt.threeDigits,r);case 4:return it(rt.fourDigits,r);default:return it(new RegExp("^\\d{1,"+t+"}"),r)}}function st(t,r){switch(t){case 1:return it(rt.singleDigitSigned,r);case 2:return it(rt.twoDigitsSigned,r);case 3:return it(rt.threeDigitsSigned,r);case 4:return it(rt.fourDigitsSigned,r);default:return it(new RegExp("^-?\\d{1,"+t+"}"),r)}}function ct(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ft(t,r){var e=r>0;var n=e?r:1-r;var i;if(n<=50){i=t||100}else{var a=n+50;var u=Math.floor(a/100)*100;var o=t>=a%100;i=t+u-(o?100:0)}return e?i:1-i}function vt(t){return t%400===0||t%4===0&&t%100!==0}var lt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",130);F(O(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){return{year:r,isTwoDigitYear:e==="yy"}};switch(e){case"y":return nt(ot(4,r),i);case"yo":return nt(n.ordinalNumber(r,{unit:"year"}),i);default:return nt(ot(e.length,r),i)}}},{key:"validate",value:function t(r,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function t(r,e,n){var i=r.getUTCFullYear();if(n.isTwoDigitYear){var a=ft(n.year,i);r.setUTCFullYear(a,0,1);r.setUTCHours(0,0,0,0);return r}var u=!("era"in e)||e.era===1?n.year:1-n.year;r.setUTCFullYear(u,0,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var dt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",130);F(O(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){return{year:r,isTwoDigitYear:e==="YY"}};switch(e){case"Y":return nt(ot(4,r),i);case"Yo":return nt(n.ordinalNumber(r,{unit:"year"}),i);default:return nt(ot(e.length,r),i)}}},{key:"validate",value:function t(r,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function t(r,e,n,i){var a=o(r,i);if(n.isTwoDigitYear){var u=ft(n.year,a);r.setUTCFullYear(u,0,i.firstWeekContainsDate);r.setUTCHours(0,0,0,0);return s(r,i)}var c=!("era"in e)||e.era===1?n.year:1-n.year;r.setUTCFullYear(c,0,i.firstWeekContainsDate);r.setUTCHours(0,0,0,0);return s(r,i)}}]);return e}(U);var ht=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",130);F(O(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e){if(e==="R"){return st(4,r)}return st(e.length,r)}},{key:"set",value:function t(r,e,n){var i=new Date(0);i.setUTCFullYear(n,0,4);i.setUTCHours(0,0,0,0);return c(i)}}]);return e}(U);var wt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",130);F(O(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e){if(e==="u"){return st(4,r)}return st(e.length,r)}},{key:"set",value:function t(r,e,n){r.setUTCFullYear(n,0,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var yt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",120);F(O(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"Q":case"QQ":return ot(e.length,r);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"})||n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})||n.quarter(r,{width:"abbreviated",context:"formatting"})||n.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function t(r,e){return e>=1&&e<=4}},{key:"set",value:function t(r,e,n){r.setUTCMonth((n-1)*3,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var pt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",120);F(O(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"q":case"qq":return ot(e.length,r);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"})||n.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})||n.quarter(r,{width:"abbreviated",context:"standalone"})||n.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function t(r,e){return e>=1&&e<=4}},{key:"set",value:function t(r,e,n){r.setUTCMonth((n-1)*3,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var bt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);F(O(t),"priority",110);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){return r-1};switch(e){case"M":return nt(it(rt.month,r),i);case"MM":return nt(ot(2,r),i);case"Mo":return nt(n.ordinalNumber(r,{unit:"month"}),i);case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"})||n.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})||n.month(r,{width:"abbreviated",context:"formatting"})||n.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=11}},{key:"set",value:function t(r,e,n){r.setUTCMonth(n,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var mt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",110);F(O(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){return r-1};switch(e){case"L":return nt(it(rt.month,r),i);case"LL":return nt(ot(2,r),i);case"Lo":return nt(n.ordinalNumber(r,{unit:"month"}),i);case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"})||n.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})||n.month(r,{width:"abbreviated",context:"standalone"})||n.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=11}},{key:"set",value:function t(r,e,n){r.setUTCMonth(n,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);function kt(t,r,e){f(2,arguments);var n=v(t);var i=d(r);var a=l(n,e)-i;n.setUTCDate(n.getUTCDate()-a*7);return n}var gt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",100);F(O(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"w":return it(rt.week,r);case"wo":return n.ordinalNumber(r,{unit:"week"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=53}},{key:"set",value:function t(r,e,n,i){return s(kt(r,n,i),i)}}]);return e}(U);function xt(t,r){f(2,arguments);var e=v(t);var n=d(r);var i=h(e)-n;e.setUTCDate(e.getUTCDate()-i*7);return e}var Tt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",100);F(O(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"I":return it(rt.week,r);case"Io":return n.ordinalNumber(r,{unit:"week"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=53}},{key:"set",value:function t(r,e,n){return c(xt(r,n))}}]);return e}(U);var Dt=[31,28,31,30,31,30,31,31,30,31,30,31];var Mt=[31,29,31,30,31,30,31,31,30,31,30,31];var Et=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"subPriority",1);F(O(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"d":return it(rt.date,r);case"do":return n.ordinalNumber(r,{unit:"date"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){var n=r.getUTCFullYear();var i=vt(n);var a=r.getUTCMonth();if(i){return e>=1&&e<=Mt[a]}else{return e>=1&&e<=Dt[a]}}},{key:"set",value:function t(r,e,n){r.setUTCDate(n);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var At=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"subpriority",1);F(O(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"D":case"DD":return it(rt.dayOfYear,r);case"Do":return n.ordinalNumber(r,{unit:"date"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){var n=r.getUTCFullYear();var i=vt(n);if(i){return e>=1&&e<=366}else{return e>=1&&e<=365}}},{key:"set",value:function t(r,e,n){r.setUTCMonth(0,n);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);function qt(t,r,e){var n,i,a,u,o,s,c,l;f(2,arguments);var h=w();var y=d((n=(i=(a=(u=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&u!==void 0?u:e===null||e===void 0?void 0:(o=e.locale)===null||o===void 0?void 0:(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0?void 0:(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:0);if(!(y>=0&&y<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var p=v(t);var b=d(r);var m=p.getUTCDay();var k=b%7;var g=(k+7)%7;var x=(g<y?7:0)+b-m;p.setUTCDate(p.getUTCDate()+x);return p}var Lt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"incompatibleTokens",["D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=6}},{key:"set",value:function t(r,e,n,i){r=qt(r,n,i);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var Qt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n,i){var a=function t(r){var e=Math.floor((r-1)/7)*7;return(r+i.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return nt(ot(e.length,r),a);case"eo":return nt(n.ordinalNumber(r,{unit:"day"}),a);case"eee":return n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=6}},{key:"set",value:function t(r,e,n,i){r=qt(r,n,i);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var Rt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n,i){var a=function t(r){var e=Math.floor((r-1)/7)*7;return(r+i.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return nt(ot(e.length,r),a);case"co":return nt(n.ordinalNumber(r,{unit:"day"}),a);case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"})||n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})||n.day(r,{width:"abbreviated",context:"standalone"})||n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=6}},{key:"set",value:function t(r,e,n,i){r=qt(r,n,i);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);function It(t,r){f(2,arguments);var e=d(r);if(e%7===0){e=e-7}var n=1;var i=v(t);var a=i.getUTCDay();var u=e%7;var o=(u+7)%7;var s=(o<n?7:0)+e-a;i.setUTCDate(i.getUTCDate()+s);return i}var St=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){if(r===0){return 7}return r};switch(e){case"i":case"ii":return ot(e.length,r);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return nt(n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),i);case"iiiii":return nt(n.day(r,{width:"narrow",context:"formatting"}),i);case"iiiiii":return nt(n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),i);case"iiii":default:return nt(n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),i)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=7}},{key:"set",value:function t(r,e,n){r=It(r,n);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var jt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",80);F(O(t),"incompatibleTokens",["b","B","H","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function t(r,e,n){r.setUTCHours(ct(n),0,0,0);return r}}]);return e}(U);var Bt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",80);F(O(t),"incompatibleTokens",["a","B","H","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function t(r,e,n){r.setUTCHours(ct(n),0,0,0);return r}}]);return e}(U);var Ot=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",80);F(O(t),"incompatibleTokens",["a","b","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function t(r,e,n){r.setUTCHours(ct(n),0,0,0);return r}}]);return e}(U);var Yt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",70);F(O(t),"incompatibleTokens",["H","K","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"h":return it(rt.hour12h,r);case"ho":return n.ordinalNumber(r,{unit:"hour"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=12}},{key:"set",value:function t(r,e,n){var i=r.getUTCHours()>=12;if(i&&n<12){r.setUTCHours(n+12,0,0,0)}else if(!i&&n===12){r.setUTCHours(0,0,0,0)}else{r.setUTCHours(n,0,0,0)}return r}}]);return e}(U);var Gt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",70);F(O(t),"incompatibleTokens",["a","b","h","K","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"H":return it(rt.hour23h,r);case"Ho":return n.ordinalNumber(r,{unit:"hour"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=0&&e<=23}},{key:"set",value:function t(r,e,n){r.setUTCHours(n,0,0,0);return r}}]);return e}(U);var Xt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",70);F(O(t),"incompatibleTokens",["h","H","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"K":return it(rt.hour11h,r);case"Ko":return n.ordinalNumber(r,{unit:"hour"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=0&&e<=11}},{key:"set",value:function t(r,e,n){var i=r.getUTCHours()>=12;if(i&&n<12){r.setUTCHours(n+12,0,0,0)}else{r.setUTCHours(n,0,0,0)}return r}}]);return e}(U);var Nt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",70);F(O(t),"incompatibleTokens",["a","b","h","H","K","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"k":return it(rt.hour24h,r);case"ko":return n.ordinalNumber(r,{unit:"hour"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=24}},{key:"set",value:function t(r,e,n){var i=n<=24?n%24:n;r.setUTCHours(i,0,0,0);return r}}]);return e}(U);var Ht=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",60);F(O(t),"incompatibleTokens",["t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"m":return it(rt.minute,r);case"mo":return n.ordinalNumber(r,{unit:"minute"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=0&&e<=59}},{key:"set",value:function t(r,e,n){r.setUTCMinutes(n,0,0);return r}}]);return e}(U);var Ct=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",50);F(O(t),"incompatibleTokens",["t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"s":return it(rt.second,r);case"so":return n.ordinalNumber(r,{unit:"second"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=0&&e<=59}},{key:"set",value:function t(r,e,n){r.setUTCSeconds(n,0);return r}}]);return e}(U);var Pt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",30);F(O(t),"incompatibleTokens",["t","T"]);return t}W(e,[{key:"parse",value:function t(r,e){var n=function t(r){return Math.floor(r*Math.pow(10,-e.length+3))};return nt(ot(e.length,r),n)}},{key:"set",value:function t(r,e,n){r.setUTCMilliseconds(n);return r}}]);return e}(U);var _t=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",10);F(O(t),"incompatibleTokens",["t","T","x"]);return t}W(e,[{key:"parse",value:function t(r,e){switch(e){case"X":return at(et.basicOptionalMinutes,r);case"XX":return at(et.basic,r);case"XXXX":return at(et.basicOptionalSeconds,r);case"XXXXX":return at(et.extendedOptionalSeconds,r);case"XXX":default:return at(et.extended,r)}}},{key:"set",value:function t(r,e,n){if(e.timestampIsSet){return r}return new Date(r.getTime()-n)}}]);return e}(U);var Kt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",10);F(O(t),"incompatibleTokens",["t","T","X"]);return t}W(e,[{key:"parse",value:function t(r,e){switch(e){case"x":return at(et.basicOptionalMinutes,r);case"xx":return at(et.basic,r);case"xxxx":return at(et.basicOptionalSeconds,r);case"xxxxx":return at(et.extendedOptionalSeconds,r);case"xxx":default:return at(et.extended,r)}}},{key:"set",value:function t(r,e,n){if(e.timestampIsSet){return r}return new Date(r.getTime()-n)}}]);return e}(U);var Zt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",40);F(O(t),"incompatibleTokens","*");return t}W(e,[{key:"parse",value:function t(r){return ut(r)}},{key:"set",value:function t(r,e,n){return[new Date(n*1e3),{timestampIsSet:true}]}}]);return e}(U);var Wt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",20);F(O(t),"incompatibleTokens","*");return t}W(e,[{key:"parse",value:function t(r){return ut(r)}},{key:"set",value:function t(r,e,n){return[new Date(n),{timestampIsSet:true}]}}]);return e}(U);var Ft={G:new tt,y:new lt,Y:new dt,R:new ht,u:new wt,Q:new yt,q:new pt,M:new bt,L:new mt,w:new gt,I:new Tt,d:new Et,D:new At,E:new Lt,e:new Qt,c:new Rt,i:new St,a:new jt,b:new Bt,B:new Ot,h:new Yt,H:new Gt,K:new Xt,k:new Nt,m:new Ht,s:new Ct,S:new Pt,X:new _t,x:new Kt,t:new Zt,T:new Wt};var Vt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var $t=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var zt=/^'([^]*?)'?$/;var Jt=/''/g;var Ut=/\S/;var tr=/[a-zA-Z]/;function rr(t,r,e,n){var i,a,o,s,c,l,h,T,D,M,E,A,q,L,Q,R,S,j;f(3,arguments);var O=String(t);var Y=String(r);var G=w();var X=(i=(a=n===null||n===void 0?void 0:n.locale)!==null&&a!==void 0?a:G.locale)!==null&&i!==void 0?i:m;if(!X.match){throw new RangeError("locale must contain match property")}var N=d((o=(s=(c=(l=n===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n===null||n===void 0?void 0:(h=n.locale)===null||h===void 0?void 0:(T=h.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&c!==void 0?c:G.firstWeekContainsDate)!==null&&s!==void 0?s:(D=G.locale)===null||D===void 0?void 0:(M=D.options)===null||M===void 0?void 0:M.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(N>=1&&N<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var H=d((E=(A=(q=(L=n===null||n===void 0?void 0:n.weekStartsOn)!==null&&L!==void 0?L:n===null||n===void 0?void 0:(Q=n.locale)===null||Q===void 0?void 0:(R=Q.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&q!==void 0?q:G.weekStartsOn)!==null&&A!==void 0?A:(S=G.locale)===null||S===void 0?void 0:(j=S.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&E!==void 0?E:0);if(!(H>=0&&H<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(Y===""){if(O===""){return v(e)}else{return new Date(NaN)}}var C={firstWeekContainsDate:N,weekStartsOn:H,locale:X};var P=[new J];var _=Y.match($t).map((function(t){var r=t[0];if(r in y){var e=y[r];return e(t,X.formatLong)}return t})).join("").match(Vt);var K=[];var Z=B(_),W;try{var F=function r(){var e=W.value;if(!(n!==null&&n!==void 0&&n.useAdditionalWeekYearTokens)&&k(e)){g(e,Y,t)}if(!(n!==null&&n!==void 0&&n.useAdditionalDayOfYearTokens)&&x(e)){g(e,Y,t)}var i=e[0];var a=Ft[i];if(a){var u=a.incompatibleTokens;if(Array.isArray(u)){var o=K.find((function(t){return u.includes(t.token)||t.token===i}));if(o){throw new RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(e,"` at the same time"))}}else if(a.incompatibleTokens==="*"&&K.length>0){throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"))}K.push({token:i,fullToken:e});var s=a.run(O,e,X.match,C);if(!s){return{v:new Date(NaN)}}P.push(s.setter);O=s.rest}else{if(i.match(tr)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`")}if(e==="''"){e="'"}else if(i==="'"){e=er(e)}if(O.indexOf(e)===0){O=O.slice(e.length)}else{return{v:new Date(NaN)}}}};for(Z.s();!(W=Z.n()).done;){var V=F();if(u(V)==="object")return V.v}}catch(t){Z.e(t)}finally{Z.f()}if(O.length>0&&Ut.test(O)){return new Date(NaN)}var $=P.map((function(t){return t.priority})).sort((function(t,r){return r-t})).filter((function(t,r,e){return e.indexOf(t)===r})).map((function(t){return P.filter((function(r){return r.priority===t})).sort((function(t,r){return r.subPriority-t.subPriority}))})).map((function(t){return t[0]}));var z=v(e);if(isNaN(z.getTime())){return new Date(NaN)}var U=p(z,b(z));var tt={};var rt=B($),et;try{for(rt.s();!(et=rt.n()).done;){var nt=et.value;if(!nt.validate(U,C)){return new Date(NaN)}var it=nt.set(U,tt,C);if(Array.isArray(it)){U=it[0];I(tt,it[1])}else{U=it}}}catch(t){rt.e(t)}finally{rt.f()}return U}function er(t){return t.match(zt)[1].replace(Jt,"'")}const nr=".flex{display:flex!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column}:host input.read-only{text-overflow:ellipsis}.static{position:static!important}.cursor-pointer{cursor:pointer!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";const ir=class{constructor(e){t(this,e);this.valueChange=r(this,"valueChange",3);this._defaultFormats={year:"yyyy",month:"LLLL, yyyy",day:"dd-MM-yyyy"};this.placeholder=undefined;this.value=undefined;this.preselectToday=false;this.disabledDates=undefined;this.minDate=undefined;this.maxDate=undefined;this.disableWeekends=false;this.mode="day";this.format="dd-MM-yyyy";this.isIconHiddenWhenFilled=false;this.size="medium";this.prefix=undefined;this.label=undefined;this.helper=undefined;this.required=undefined;this.error=undefined;this.disabled=false;this._showDropdown=false;this._value=undefined;this._minDate=undefined;this._maxDate=undefined;this._disabledDates=[]}parseValue(t){if(!t&&this.preselectToday){t=new Date}if(typeof t==="string"){t=new Date(t)}this._setValue(t)}parseMinDate(t){if(typeof t==="string"){t=new Date(t)}if(!T(t)){return}this._minDate=t;if(D(this._value,this._minDate)){this._setValue(null)}}parseMaxDate(t){if(typeof t==="string"){t=new Date(t)}if(!T(t)){return}this._maxDate=t;if(M(this._value,this._maxDate)){this._setValue(null)}}parseDisabledDates(t){if(typeof t==="string"){t=JSON.parse(t)}if(!t||!Array.isArray(t)){return}this._disabledDates=t.map((t=>{if(typeof t==="string"){return new Date(t)}return t})).filter((t=>T(t)));if(this._isDisabledDay(this._value)){this._setValue(null)}}componentWillLoad(){if(this.disabledDates){this.parseDisabledDates(this.disabledDates)}if(this.minDate){this.parseMinDate(this.minDate)}if(this.maxDate){this.parseMaxDate(this.maxDate)}if(this.mode!=="day"&&this.format===this._defaultFormats["day"]){this.format=this._defaultFormats[this.mode]}this.parseValue(this.value)}render(){return e(n,{class:"p-datepicker"},e("p-dropdown",{disableTriggerClick:true,applyMaxWidth:false,applyFullWidth:false,insideClick:true,show:this._showDropdown},e("p-input-group",{slot:"trigger",icon:this.isIconHiddenWhenFilled&&!!this._value?null:"calendar",iconPosition:"start",size:this.size,prefix:this.prefix,label:this.label,helper:this.helper,required:this.required,error:this.error,disabled:this.disabled,focused:this._showDropdown},e("input",{slot:"input",type:"text",placeholder:this.placeholder,value:this._getFormattedDate(),class:"p-input cursor-pointer",onFocus:()=>this._onFocus(),onBlur:t=>this._onBlur(t),onInput:t=>this._onInput(t)})),e("div",{slot:"items"},e("p-calendar",{variant:"embedded",value:this._value,onValueChange:({detail:t})=>this.value=t,preselectToday:this.preselectToday,disabledDates:this.disabledDates,minDate:this.minDate,maxDate:this.maxDate,disableWeekends:this.disableWeekends,mode:this.mode}))))}documentClickHandler({target:t}){if(!this._showDropdown||a(t,this._el)){return}this._showDropdown=false}_onFocus(){this._showDropdown=true}_onBlur(t){if(t.target.value===null){return}const r=rr(t.target.value,this.format,new Date);if(!T(r)||this._isDisabledDay(r)){t.target.value=this._getFormattedDate();return}}_onInput(t){if(this._onInputTimeout){clearTimeout(this._onInputTimeout);this._onInputTimeout=null}this._onInputTimeout=setTimeout((()=>{const r=rr(t.target.value,this.format,new Date);if(!T(r)){return}this._setValue(r,false)}),250)}_setValue(t,r=true){if(t===null){this._value=null;this.valueChange.emit(null);return}if(!T(t)){return}if(this._isDisabledDay(t)){return}t=E(t);const e=A(t,this._value);if(e){return}if(r){this._showDropdown=false}this._value=t;this.valueChange.emit(t)}_isDisabledDay(t){return D(t,this._minDate)&&!A(t,this._minDate)||M(t,this._maxDate)&&!A(t,this._maxDate)||this._disabledDates.findIndex((r=>A(r,t)))>=0}_getFormattedDate(){if(!this._value){return""}return q(this._value,this.format)}get _el(){return i(this)}static get watchers(){return{value:["parseValue"],minDate:["parseMinDate"],maxDate:["parseMaxDate"],disabledDates:["parseDisabledDates"]}}};ir.style=nr;export{ir as p_datepicker};
2
- //# sourceMappingURL=p-9ed2584c.entry.js.map
1
+ import{r as t,c as r,h as e,H as n,g as i}from"./p-e4d5e7a7.js";import{c as a}from"./p-4d330cfc.js";import{_ as u,g as o,s,a as c,r as f,t as v,b as l,c as d,d as h,e as w,l as y,f as p,h as b,i as m,j as k,k as g,m as x,n as T,o as D,p as M,q as E,u as A,v as q}from"./p-d3d8468b.js";var L=6e4;var Q=36e5;var R=1e3;function I(t,r){if(t==null){throw new TypeError("assign requires that input parameter not be null or undefined")}for(var e in r){if(Object.prototype.hasOwnProperty.call(r,e)){t[e]=r[e]}}return t}function S(t,r){if(r==null||r>t.length)r=t.length;for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function j(t,r){if(!t)return;if(typeof t==="string")return S(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor)e=t.constructor.name;if(e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return S(t,r)}function B(t,r){var e=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=j(t))||r&&t&&typeof t.length==="number"){if(e)t=e;var n=0;var i=function t(){};return{s:i,n:function r(){if(n>=t.length)return{done:true};return{done:false,value:t[n++]}},e:function t(r){throw r},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,u=false,o;return{s:function r(){e=e.call(t)},n:function t(){var r=e.next();a=r.done;return r},e:function t(r){u=true;o=r},f:function t(){try{if(!a&&e["return"]!=null)e["return"]()}finally{if(u)throw o}}}}function O(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function Y(t,r){Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function t(r,e){r.__proto__=e;return r};return Y(t,r)}function G(t,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(r)Y(t,r)}function X(t){X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function t(r){return r.__proto__||Object.getPrototypeOf(r)};return X(t)}function N(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(t){return false}}function H(t,r){if(r&&(u(r)==="object"||typeof r==="function")){return r}else if(r!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return O(t)}function C(t){var r=N();return function e(){var n=X(t),i;if(r){var a=X(this).constructor;i=Reflect.construct(n,arguments,a)}else{i=n.apply(this,arguments)}return H(this,i)}}function P(t,r){if(!(t instanceof r)){throw new TypeError("Cannot call a class as a function")}}function _(t,r){if(u(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==undefined){var n=e.call(t,r||"default");if(u(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function K(t){var r=_(t,"string");return u(r)==="symbol"?r:String(r)}function Z(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,K(n.key),n)}}function W(t,r,e){if(r)Z(t.prototype,r);if(e)Z(t,e);Object.defineProperty(t,"prototype",{writable:false});return t}function F(t,r,e){r=K(r);if(r in t){Object.defineProperty(t,r,{value:e,enumerable:true,configurable:true,writable:true})}else{t[r]=e}return t}var V=10;var $=function(){function t(){P(this,t);F(this,"priority",void 0);F(this,"subPriority",0)}W(t,[{key:"validate",value:function t(r,e){return true}}]);return t}();var z=function(t){G(e,t);var r=C(e);function e(t,n,i,a,u){var o;P(this,e);o=r.call(this);o.value=t;o.validateValue=n;o.setValue=i;o.priority=a;if(u){o.subPriority=u}return o}W(e,[{key:"validate",value:function t(r,e){return this.validateValue(r,this.value,e)}},{key:"set",value:function t(r,e,n){return this.setValue(r,e,this.value,n)}}]);return e}($);var J=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",V);F(O(t),"subPriority",-1);return t}W(e,[{key:"set",value:function t(r,e){if(e.timestampIsSet){return r}var n=new Date(0);n.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate());n.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds());return n}}]);return e}($);var U=function(){function t(){P(this,t);F(this,"incompatibleTokens",void 0);F(this,"priority",void 0);F(this,"subPriority",void 0)}W(t,[{key:"run",value:function t(r,e,n,i){var a=this.parse(r,e,n,i);if(!a){return null}return{setter:new z(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}}},{key:"validate",value:function t(r,e,n){return true}}]);return t}();var tt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",140);F(O(t),"incompatibleTokens",["R","u","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"})||n.era(r,{width:"narrow"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})||n.era(r,{width:"abbreviated"})||n.era(r,{width:"narrow"})}}},{key:"set",value:function t(r,e,n){e.era=n;r.setUTCFullYear(n,0,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var rt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/};var et={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function nt(t,r){if(!t){return t}return{value:r(t.value),rest:t.rest}}function it(t,r){var e=r.match(t);if(!e){return null}return{value:parseInt(e[0],10),rest:r.slice(e[0].length)}}function at(t,r){var e=r.match(t);if(!e){return null}if(e[0]==="Z"){return{value:0,rest:r.slice(1)}}var n=e[1]==="+"?1:-1;var i=e[2]?parseInt(e[2],10):0;var a=e[3]?parseInt(e[3],10):0;var u=e[5]?parseInt(e[5],10):0;return{value:n*(i*Q+a*L+u*R),rest:r.slice(e[0].length)}}function ut(t){return it(rt.anyDigitsSigned,t)}function ot(t,r){switch(t){case 1:return it(rt.singleDigit,r);case 2:return it(rt.twoDigits,r);case 3:return it(rt.threeDigits,r);case 4:return it(rt.fourDigits,r);default:return it(new RegExp("^\\d{1,"+t+"}"),r)}}function st(t,r){switch(t){case 1:return it(rt.singleDigitSigned,r);case 2:return it(rt.twoDigitsSigned,r);case 3:return it(rt.threeDigitsSigned,r);case 4:return it(rt.fourDigitsSigned,r);default:return it(new RegExp("^-?\\d{1,"+t+"}"),r)}}function ct(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ft(t,r){var e=r>0;var n=e?r:1-r;var i;if(n<=50){i=t||100}else{var a=n+50;var u=Math.floor(a/100)*100;var o=t>=a%100;i=t+u-(o?100:0)}return e?i:1-i}function vt(t){return t%400===0||t%4===0&&t%100!==0}var lt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",130);F(O(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){return{year:r,isTwoDigitYear:e==="yy"}};switch(e){case"y":return nt(ot(4,r),i);case"yo":return nt(n.ordinalNumber(r,{unit:"year"}),i);default:return nt(ot(e.length,r),i)}}},{key:"validate",value:function t(r,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function t(r,e,n){var i=r.getUTCFullYear();if(n.isTwoDigitYear){var a=ft(n.year,i);r.setUTCFullYear(a,0,1);r.setUTCHours(0,0,0,0);return r}var u=!("era"in e)||e.era===1?n.year:1-n.year;r.setUTCFullYear(u,0,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var dt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",130);F(O(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){return{year:r,isTwoDigitYear:e==="YY"}};switch(e){case"Y":return nt(ot(4,r),i);case"Yo":return nt(n.ordinalNumber(r,{unit:"year"}),i);default:return nt(ot(e.length,r),i)}}},{key:"validate",value:function t(r,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function t(r,e,n,i){var a=o(r,i);if(n.isTwoDigitYear){var u=ft(n.year,a);r.setUTCFullYear(u,0,i.firstWeekContainsDate);r.setUTCHours(0,0,0,0);return s(r,i)}var c=!("era"in e)||e.era===1?n.year:1-n.year;r.setUTCFullYear(c,0,i.firstWeekContainsDate);r.setUTCHours(0,0,0,0);return s(r,i)}}]);return e}(U);var ht=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",130);F(O(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e){if(e==="R"){return st(4,r)}return st(e.length,r)}},{key:"set",value:function t(r,e,n){var i=new Date(0);i.setUTCFullYear(n,0,4);i.setUTCHours(0,0,0,0);return c(i)}}]);return e}(U);var wt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",130);F(O(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e){if(e==="u"){return st(4,r)}return st(e.length,r)}},{key:"set",value:function t(r,e,n){r.setUTCFullYear(n,0,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var yt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",120);F(O(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"Q":case"QQ":return ot(e.length,r);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"})||n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})||n.quarter(r,{width:"abbreviated",context:"formatting"})||n.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function t(r,e){return e>=1&&e<=4}},{key:"set",value:function t(r,e,n){r.setUTCMonth((n-1)*3,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var pt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",120);F(O(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"q":case"qq":return ot(e.length,r);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"})||n.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})||n.quarter(r,{width:"abbreviated",context:"standalone"})||n.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function t(r,e){return e>=1&&e<=4}},{key:"set",value:function t(r,e,n){r.setUTCMonth((n-1)*3,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var bt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);F(O(t),"priority",110);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){return r-1};switch(e){case"M":return nt(it(rt.month,r),i);case"MM":return nt(ot(2,r),i);case"Mo":return nt(n.ordinalNumber(r,{unit:"month"}),i);case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"})||n.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})||n.month(r,{width:"abbreviated",context:"formatting"})||n.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=11}},{key:"set",value:function t(r,e,n){r.setUTCMonth(n,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var mt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",110);F(O(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){return r-1};switch(e){case"L":return nt(it(rt.month,r),i);case"LL":return nt(ot(2,r),i);case"Lo":return nt(n.ordinalNumber(r,{unit:"month"}),i);case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"})||n.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})||n.month(r,{width:"abbreviated",context:"standalone"})||n.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=11}},{key:"set",value:function t(r,e,n){r.setUTCMonth(n,1);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);function kt(t,r,e){f(2,arguments);var n=v(t);var i=d(r);var a=l(n,e)-i;n.setUTCDate(n.getUTCDate()-a*7);return n}var gt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",100);F(O(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"w":return it(rt.week,r);case"wo":return n.ordinalNumber(r,{unit:"week"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=53}},{key:"set",value:function t(r,e,n,i){return s(kt(r,n,i),i)}}]);return e}(U);function xt(t,r){f(2,arguments);var e=v(t);var n=d(r);var i=h(e)-n;e.setUTCDate(e.getUTCDate()-i*7);return e}var Tt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",100);F(O(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"I":return it(rt.week,r);case"Io":return n.ordinalNumber(r,{unit:"week"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=53}},{key:"set",value:function t(r,e,n){return c(xt(r,n))}}]);return e}(U);var Dt=[31,28,31,30,31,30,31,31,30,31,30,31];var Mt=[31,29,31,30,31,30,31,31,30,31,30,31];var Et=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"subPriority",1);F(O(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"d":return it(rt.date,r);case"do":return n.ordinalNumber(r,{unit:"date"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){var n=r.getUTCFullYear();var i=vt(n);var a=r.getUTCMonth();if(i){return e>=1&&e<=Mt[a]}else{return e>=1&&e<=Dt[a]}}},{key:"set",value:function t(r,e,n){r.setUTCDate(n);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var At=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"subpriority",1);F(O(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"D":case"DD":return it(rt.dayOfYear,r);case"Do":return n.ordinalNumber(r,{unit:"date"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){var n=r.getUTCFullYear();var i=vt(n);if(i){return e>=1&&e<=366}else{return e>=1&&e<=365}}},{key:"set",value:function t(r,e,n){r.setUTCMonth(0,n);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);function qt(t,r,e){var n,i,a,u,o,s,c,l;f(2,arguments);var h=w();var y=d((n=(i=(a=(u=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&u!==void 0?u:e===null||e===void 0?void 0:(o=e.locale)===null||o===void 0?void 0:(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0?void 0:(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:0);if(!(y>=0&&y<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var p=v(t);var b=d(r);var m=p.getUTCDay();var k=b%7;var g=(k+7)%7;var x=(g<y?7:0)+b-m;p.setUTCDate(p.getUTCDate()+x);return p}var Lt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"incompatibleTokens",["D","i","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=6}},{key:"set",value:function t(r,e,n,i){r=qt(r,n,i);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var Qt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n,i){var a=function t(r){var e=Math.floor((r-1)/7)*7;return(r+i.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return nt(ot(e.length,r),a);case"eo":return nt(n.ordinalNumber(r,{unit:"day"}),a);case"eee":return n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=6}},{key:"set",value:function t(r,e,n,i){r=qt(r,n,i);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var Rt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n,i){var a=function t(r){var e=Math.floor((r-1)/7)*7;return(r+i.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return nt(ot(e.length,r),a);case"co":return nt(n.ordinalNumber(r,{unit:"day"}),a);case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"})||n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})||n.day(r,{width:"abbreviated",context:"standalone"})||n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function t(r,e){return e>=0&&e<=6}},{key:"set",value:function t(r,e,n,i){r=qt(r,n,i);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);function It(t,r){f(2,arguments);var e=d(r);if(e%7===0){e=e-7}var n=1;var i=v(t);var a=i.getUTCDay();var u=e%7;var o=(u+7)%7;var s=(o<n?7:0)+e-a;i.setUTCDate(i.getUTCDate()+s);return i}var St=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",90);F(O(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){var i=function t(r){if(r===0){return 7}return r};switch(e){case"i":case"ii":return ot(e.length,r);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return nt(n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),i);case"iiiii":return nt(n.day(r,{width:"narrow",context:"formatting"}),i);case"iiiiii":return nt(n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),i);case"iiii":default:return nt(n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),i)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=7}},{key:"set",value:function t(r,e,n){r=It(r,n);r.setUTCHours(0,0,0,0);return r}}]);return e}(U);var jt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",80);F(O(t),"incompatibleTokens",["b","B","H","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function t(r,e,n){r.setUTCHours(ct(n),0,0,0);return r}}]);return e}(U);var Bt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",80);F(O(t),"incompatibleTokens",["a","B","H","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function t(r,e,n){r.setUTCHours(ct(n),0,0,0);return r}}]);return e}(U);var Ot=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",80);F(O(t),"incompatibleTokens",["a","b","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function t(r,e,n){r.setUTCHours(ct(n),0,0,0);return r}}]);return e}(U);var Yt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",70);F(O(t),"incompatibleTokens",["H","K","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"h":return it(rt.hour12h,r);case"ho":return n.ordinalNumber(r,{unit:"hour"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=12}},{key:"set",value:function t(r,e,n){var i=r.getUTCHours()>=12;if(i&&n<12){r.setUTCHours(n+12,0,0,0)}else if(!i&&n===12){r.setUTCHours(0,0,0,0)}else{r.setUTCHours(n,0,0,0)}return r}}]);return e}(U);var Gt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",70);F(O(t),"incompatibleTokens",["a","b","h","K","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"H":return it(rt.hour23h,r);case"Ho":return n.ordinalNumber(r,{unit:"hour"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=0&&e<=23}},{key:"set",value:function t(r,e,n){r.setUTCHours(n,0,0,0);return r}}]);return e}(U);var Xt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",70);F(O(t),"incompatibleTokens",["h","H","k","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"K":return it(rt.hour11h,r);case"Ko":return n.ordinalNumber(r,{unit:"hour"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=0&&e<=11}},{key:"set",value:function t(r,e,n){var i=r.getUTCHours()>=12;if(i&&n<12){r.setUTCHours(n+12,0,0,0)}else{r.setUTCHours(n,0,0,0)}return r}}]);return e}(U);var Nt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",70);F(O(t),"incompatibleTokens",["a","b","h","H","K","t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"k":return it(rt.hour24h,r);case"ko":return n.ordinalNumber(r,{unit:"hour"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=1&&e<=24}},{key:"set",value:function t(r,e,n){var i=n<=24?n%24:n;r.setUTCHours(i,0,0,0);return r}}]);return e}(U);var Ht=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",60);F(O(t),"incompatibleTokens",["t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"m":return it(rt.minute,r);case"mo":return n.ordinalNumber(r,{unit:"minute"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=0&&e<=59}},{key:"set",value:function t(r,e,n){r.setUTCMinutes(n,0,0);return r}}]);return e}(U);var Ct=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",50);F(O(t),"incompatibleTokens",["t","T"]);return t}W(e,[{key:"parse",value:function t(r,e,n){switch(e){case"s":return it(rt.second,r);case"so":return n.ordinalNumber(r,{unit:"second"});default:return ot(e.length,r)}}},{key:"validate",value:function t(r,e){return e>=0&&e<=59}},{key:"set",value:function t(r,e,n){r.setUTCSeconds(n,0);return r}}]);return e}(U);var Pt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",30);F(O(t),"incompatibleTokens",["t","T"]);return t}W(e,[{key:"parse",value:function t(r,e){var n=function t(r){return Math.floor(r*Math.pow(10,-e.length+3))};return nt(ot(e.length,r),n)}},{key:"set",value:function t(r,e,n){r.setUTCMilliseconds(n);return r}}]);return e}(U);var _t=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",10);F(O(t),"incompatibleTokens",["t","T","x"]);return t}W(e,[{key:"parse",value:function t(r,e){switch(e){case"X":return at(et.basicOptionalMinutes,r);case"XX":return at(et.basic,r);case"XXXX":return at(et.basicOptionalSeconds,r);case"XXXXX":return at(et.extendedOptionalSeconds,r);case"XXX":default:return at(et.extended,r)}}},{key:"set",value:function t(r,e,n){if(e.timestampIsSet){return r}return new Date(r.getTime()-n)}}]);return e}(U);var Kt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",10);F(O(t),"incompatibleTokens",["t","T","X"]);return t}W(e,[{key:"parse",value:function t(r,e){switch(e){case"x":return at(et.basicOptionalMinutes,r);case"xx":return at(et.basic,r);case"xxxx":return at(et.basicOptionalSeconds,r);case"xxxxx":return at(et.extendedOptionalSeconds,r);case"xxx":default:return at(et.extended,r)}}},{key:"set",value:function t(r,e,n){if(e.timestampIsSet){return r}return new Date(r.getTime()-n)}}]);return e}(U);var Zt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",40);F(O(t),"incompatibleTokens","*");return t}W(e,[{key:"parse",value:function t(r){return ut(r)}},{key:"set",value:function t(r,e,n){return[new Date(n*1e3),{timestampIsSet:true}]}}]);return e}(U);var Wt=function(t){G(e,t);var r=C(e);function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++){i[a]=arguments[a]}t=r.call.apply(r,[this].concat(i));F(O(t),"priority",20);F(O(t),"incompatibleTokens","*");return t}W(e,[{key:"parse",value:function t(r){return ut(r)}},{key:"set",value:function t(r,e,n){return[new Date(n),{timestampIsSet:true}]}}]);return e}(U);var Ft={G:new tt,y:new lt,Y:new dt,R:new ht,u:new wt,Q:new yt,q:new pt,M:new bt,L:new mt,w:new gt,I:new Tt,d:new Et,D:new At,E:new Lt,e:new Qt,c:new Rt,i:new St,a:new jt,b:new Bt,B:new Ot,h:new Yt,H:new Gt,K:new Xt,k:new Nt,m:new Ht,s:new Ct,S:new Pt,X:new _t,x:new Kt,t:new Zt,T:new Wt};var Vt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var $t=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var zt=/^'([^]*?)'?$/;var Jt=/''/g;var Ut=/\S/;var tr=/[a-zA-Z]/;function rr(t,r,e,n){var i,a,o,s,c,l,h,T,D,M,E,A,q,L,Q,R,S,j;f(3,arguments);var O=String(t);var Y=String(r);var G=w();var X=(i=(a=n===null||n===void 0?void 0:n.locale)!==null&&a!==void 0?a:G.locale)!==null&&i!==void 0?i:m;if(!X.match){throw new RangeError("locale must contain match property")}var N=d((o=(s=(c=(l=n===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n===null||n===void 0?void 0:(h=n.locale)===null||h===void 0?void 0:(T=h.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&c!==void 0?c:G.firstWeekContainsDate)!==null&&s!==void 0?s:(D=G.locale)===null||D===void 0?void 0:(M=D.options)===null||M===void 0?void 0:M.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(N>=1&&N<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var H=d((E=(A=(q=(L=n===null||n===void 0?void 0:n.weekStartsOn)!==null&&L!==void 0?L:n===null||n===void 0?void 0:(Q=n.locale)===null||Q===void 0?void 0:(R=Q.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&q!==void 0?q:G.weekStartsOn)!==null&&A!==void 0?A:(S=G.locale)===null||S===void 0?void 0:(j=S.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&E!==void 0?E:0);if(!(H>=0&&H<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(Y===""){if(O===""){return v(e)}else{return new Date(NaN)}}var C={firstWeekContainsDate:N,weekStartsOn:H,locale:X};var P=[new J];var _=Y.match($t).map((function(t){var r=t[0];if(r in y){var e=y[r];return e(t,X.formatLong)}return t})).join("").match(Vt);var K=[];var Z=B(_),W;try{var F=function r(){var e=W.value;if(!(n!==null&&n!==void 0&&n.useAdditionalWeekYearTokens)&&k(e)){g(e,Y,t)}if(!(n!==null&&n!==void 0&&n.useAdditionalDayOfYearTokens)&&x(e)){g(e,Y,t)}var i=e[0];var a=Ft[i];if(a){var u=a.incompatibleTokens;if(Array.isArray(u)){var o=K.find((function(t){return u.includes(t.token)||t.token===i}));if(o){throw new RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(e,"` at the same time"))}}else if(a.incompatibleTokens==="*"&&K.length>0){throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"))}K.push({token:i,fullToken:e});var s=a.run(O,e,X.match,C);if(!s){return{v:new Date(NaN)}}P.push(s.setter);O=s.rest}else{if(i.match(tr)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`")}if(e==="''"){e="'"}else if(i==="'"){e=er(e)}if(O.indexOf(e)===0){O=O.slice(e.length)}else{return{v:new Date(NaN)}}}};for(Z.s();!(W=Z.n()).done;){var V=F();if(u(V)==="object")return V.v}}catch(t){Z.e(t)}finally{Z.f()}if(O.length>0&&Ut.test(O)){return new Date(NaN)}var $=P.map((function(t){return t.priority})).sort((function(t,r){return r-t})).filter((function(t,r,e){return e.indexOf(t)===r})).map((function(t){return P.filter((function(r){return r.priority===t})).sort((function(t,r){return r.subPriority-t.subPriority}))})).map((function(t){return t[0]}));var z=v(e);if(isNaN(z.getTime())){return new Date(NaN)}var U=p(z,b(z));var tt={};var rt=B($),et;try{for(rt.s();!(et=rt.n()).done;){var nt=et.value;if(!nt.validate(U,C)){return new Date(NaN)}var it=nt.set(U,tt,C);if(Array.isArray(it)){U=it[0];I(tt,it[1])}else{U=it}}}catch(t){rt.e(t)}finally{rt.f()}return U}function er(t){return t.match(zt)[1].replace(Jt,"'")}const nr=".flex{display:flex!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column}:host input.read-only{text-overflow:ellipsis}.static{position:static!important}.cursor-pointer{cursor:pointer!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";const ir=class{constructor(e){t(this,e);this.valueChange=r(this,"valueChange",3);this._defaultFormats={year:"yyyy",month:"LLLL, yyyy",day:"dd-MM-yyyy"};this.placeholder=undefined;this.value=undefined;this.preselectToday=false;this.disabledDates=undefined;this.minDate=undefined;this.maxDate=undefined;this.disableWeekends=false;this.mode="day";this.format="dd-MM-yyyy";this.hideIconWhenFilled=false;this.size="medium";this.prefix=undefined;this.label=undefined;this.helper=undefined;this.required=undefined;this.error=undefined;this.disabled=false;this._showDropdown=false;this._value=undefined;this._minDate=undefined;this._maxDate=undefined;this._disabledDates=[]}parseValue(t){if(!t&&this.preselectToday){t=new Date}if(typeof t==="string"){t=new Date(t)}this._setValue(t)}parseMinDate(t){if(typeof t==="string"){t=new Date(t)}if(!T(t)){return}this._minDate=t;if(D(this._value,this._minDate)){this._setValue(null)}}parseMaxDate(t){if(typeof t==="string"){t=new Date(t)}if(!T(t)){return}this._maxDate=t;if(M(this._value,this._maxDate)){this._setValue(null)}}parseDisabledDates(t){if(typeof t==="string"){t=JSON.parse(t)}if(!t||!Array.isArray(t)){return}this._disabledDates=t.map((t=>{if(typeof t==="string"){return new Date(t)}return t})).filter((t=>T(t)));if(this._isDisabledDay(this._value)){this._setValue(null)}}componentWillLoad(){if(this.disabledDates){this.parseDisabledDates(this.disabledDates)}if(this.minDate){this.parseMinDate(this.minDate)}if(this.maxDate){this.parseMaxDate(this.maxDate)}if(this.mode!=="day"&&this.format===this._defaultFormats["day"]){this.format=this._defaultFormats[this.mode]}this.parseValue(this.value)}render(){return e(n,{class:"p-datepicker"},e("p-dropdown",{disableTriggerClick:true,applyMaxWidth:false,applyFullWidth:false,insideClick:true,show:this._showDropdown},e("p-input-group",{slot:"trigger",icon:this.hideIconWhenFilled&&!!this._value?null:"calendar",iconPosition:"start",size:this.size,prefix:this.prefix,label:this.label,helper:this.helper,required:this.required,error:this.error,disabled:this.disabled,focused:this._showDropdown},e("input",{slot:"input",type:"text",placeholder:this.placeholder,value:this._getFormattedDate(),class:"p-input cursor-pointer",onFocus:()=>this._onFocus(),onBlur:t=>this._onBlur(t),onInput:t=>this._onInput(t)})),e("div",{slot:"items"},e("p-calendar",{variant:"embedded",value:this._value,onValueChange:({detail:t})=>this.value=t,preselectToday:this.preselectToday,disabledDates:this.disabledDates,minDate:this.minDate,maxDate:this.maxDate,disableWeekends:this.disableWeekends,mode:this.mode}))))}documentClickHandler({target:t}){if(!this._showDropdown||a(t,this._el)){return}this._showDropdown=false}_onFocus(){this._showDropdown=true}_onBlur(t){if(t.target.value===null){return}const r=rr(t.target.value,this.format,new Date);if(!T(r)||this._isDisabledDay(r)){t.target.value=this._getFormattedDate();return}}_onInput(t){if(this._onInputTimeout){clearTimeout(this._onInputTimeout);this._onInputTimeout=null}this._onInputTimeout=setTimeout((()=>{const r=rr(t.target.value,this.format,new Date);if(!T(r)){return}this._setValue(r,false)}),250)}_setValue(t,r=true){if(t===null){this._value=null;this.valueChange.emit(null);return}if(!T(t)){return}if(this._isDisabledDay(t)){return}t=E(t);const e=A(t,this._value);if(e){return}if(r){this._showDropdown=false}this._value=t;this.valueChange.emit(t)}_isDisabledDay(t){return D(t,this._minDate)&&!A(t,this._minDate)||M(t,this._maxDate)&&!A(t,this._maxDate)||this._disabledDates.findIndex((r=>A(r,t)))>=0}_getFormattedDate(){if(!this._value){return""}return q(this._value,this.format)}get _el(){return i(this)}static get watchers(){return{value:["parseValue"],minDate:["parseMinDate"],maxDate:["parseMaxDate"],disabledDates:["parseDisabledDates"]}}};ir.style=nr;export{ir as p_datepicker};
2
+ //# sourceMappingURL=p-52893b09.entry.js.map