@nysds/nys-datepicker 1.14.0 → 1.15.1

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.
@@ -1,7 +1,17 @@
1
- import { LitElement as ze, unsafeCSS as je, html as N } from "lit";
2
- import { property as v, state as He } from "lit/decorators.js";
1
+ import { LitElement as se, unsafeCSS as je, html as N } from "lit";
2
+ import { property as k, state as He } from "lit/decorators.js";
3
3
  import { ifDefined as q } from "lit/directives/if-defined.js";
4
- const Ke = ':host{--_nys-datepicker-width: fit-content;--_nys-datepicker-input-width: var(--nys-form-width-md, 200px);--_nys-datepicker-gap: var(--nys-space-100, 8px);--_nys-datepicker-height: var(--nys-size-600, 48px);--_nys-datepicker-radius: var(--nys-radius-xl, 12px);--_nys-datepicker-color: var( --nys-color-text, var(--nys-color-neutral-900, #1b1b1b) );--_nys-datepicker-color-disabled: var(--nys-color-neutral-200, #bec0c1);--_nys-datepicker--row-gap: var(--nys-space-2-px, 2px);--_nys-datepicker-space-sm: var(--nys-space-50, 4px);--_nys-datepicker-space-md: var(--nys-space-100, 8px);--_nys-datepicker-space-lg: var(--nys-space-150, 12px);--_nys-datepicker-border-width: var(--nys-border-width-sm, 1px);--_nys-datepicker-border-color: var(--nys-color-neutral-400, #909395);--_nys-datepicker-border-radius: var(--nys-radius-md, 4px);--_nys-datepicker-outline-color--hover: var(--nys-color-neutral-900, #1b1b1b);--_nys-datepicker-outline-color--focus: var(--nys-color-focus, #004dd1);--_nys-datepicker-font-size: var(--nys-font-size-ui-md, 16px);--_nys-datepicker-font-weight: var(--nys-font-weight-regular, 400);--_nys-datepicker-line-height: var(--nys-font-lineheight-ui-md, 24px);--_nys-datepicker-letterspacing: var(--nys-font-letterspacing-ui-md, .044px);--_nys-datepicker-font-family: var( --nys-font-family-ui, var( --nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif ) );--_nys-datepicker-text-color: var(--nys-color-text, #1b1b1b);--_nys-datepicker-text-disabled: var(--nys-color-text-disabled, #bec0c1);--_nys-datepicker-bg: var(--nys-color-ink-reverse, #ffffff);--_nys-datepicker--button-active-bg: var(--nys-color-gray-100, #d0d0ce);--_nys-datepicker--wc-padding: var(--nys-space-200, 16px);--_nys-datepicker--wc-weaker-color: var(--nys-color-text-weaker, #797c7f);--_nys-datepicker--date-font-size: var(--nys-type-size-ui-sm, 14px);--_nys-datepicker--date-hover-bg: var(--nys-color-neutral-50, #ededed);--_nys-datepicker--date-active-bg: var(--nys-color-neutral-100, #d0d0ce);--_nys-datepicker--date-selected-bg: var(--nys-color-info-weak, #e5effa);--_nys-datepicker--date-focus-ring: var(--nys-color-link, #004dd1);--_nys-datepicker--date-hover-color: var(--nys-color-text, #1b1b1b);--_nys-datepicker--date-default-color: var(--nys-color-text, #1b1b1b);--_nys-datepicker--date-selected-color: var(--nys-color-info, #004dd1);--_nys-datepicker--date-disabled-color: var( --nys-color-text-disabled, #bec0c1 );--_nys-datepicker--date-border-disabled: var( --nys-color-neutral-200, #bec0c1 );--_nys-datepicker--navigation-hover-background: var( --nys-color-neutral-10, #f6f6f6 );--_nys-datepicker--navigation-pressed-background: var( --nys-color-neutral-50, #ededed );--_nys-datepicker--navigation-disabled-background: var( --nys-color-neutral-10, #f6f6f6 );--_nys-datepicker--navigation-border: var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-border-color);--_nys-datepicker--navigation-hover-border: var( --_nys-datepicker-border-width ) solid var(--nys-color-neutral-900, #1b1b1b);--_nys-datepicker--navigation-pressed-border: var( --_nys-datepicker-border-width ) solid var(--nys-color-neutral-900, #1b1b1b);--_nys-datepicker--navigation-disabled-border: var( --_nys-datepicker-border-width ) solid var(--nys-color-neutral-200, #bec0c1);--_nys-datepicker--navigation-box-shadow-border: inset 0 0 0 1px var(--nys-color-neutral-900, #1b1b1b)}:host([width=lg]){--_nys-datepicker-input-width: var(--nys-form-width-lg, 384px)}:host([width=full]){--_nys-datepicker-input-width: 100%}:host([showError]){--_nys-datepicker-border-color: var(--nys-color-danger, #b52c2c)}.nys-datepicker--container{display:flex;flex-direction:column;gap:var(--_nys-datepicker-space-sm);font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size);font-weight:var(--_nys-datepicker-font-weight);line-height:var(--_nys-datepicker-line-height);width:100%}.nys-datepicker--container .nys-datepicker--input-container{position:relative;width:var(--_nys-datepicker-input-width);display:flex;cursor:pointer}.nys-datepicker--container .nys-datepicker--input-container.disabled #calendar-button{cursor:not-allowed;color:var(--_nys-datepicker--date-disabled-color)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input{cursor:text;text-align:start;font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size);flex:1;height:24px;outline:transparent solid 1px;border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-border-color);background:var(--_nys-datepicker-bg);padding:var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-lg);color:var(--_nys-datepicker-color)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:hover{outline-color:var(--_nys-datepicker-outline-color--hover);border-color:var(--_nys-datepicker-outline-color--hover)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:focus{outline-color:var(--_nys-datepicker-outline-color--focus);border-color:var(--_nys-datepicker-outline-color--focus)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:disabled{border:var(--_nys-datepicker--navigation-disabled-border);cursor:not-allowed;color:var(--_nys-datepicker--wc-weaker-color)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input::-webkit-date-and-time-value{text-align:start}.nys-datepicker--container .nys-datepicker--input-container input[type=date]::-webkit-inner-spin-button,.nys-datepicker--container .nys-datepicker--input-container input[type=date]::-webkit-calendar-picker-indicator{display:none;appearance:none}.nys-datepicker--container .nys-datepicker--input-container #calendar-button{display:flex;align-items:center;justify-content:center;padding:var(--_nys-datepicker-space-sm);border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-bg);outline:transparent solid 1px;background-color:var(--_nys-datepicker-bg);position:absolute;top:50%;right:var(--_nys-datepicker-space-sm);transform:translateY(-50%);cursor:pointer}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:hover{outline-color:var(--_nys-datepicker--date-hover-bg);border-color:var(--_nys-datepicker--date-hover-bg);background:var(--_nys-datepicker--date-hover-bg)}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:active{outline-color:var(--_nys-datepicker--button-active-bg);border-color:var(--_nys-datepicker--button-active-bg);background:var(--_nys-datepicker--button-active-bg)}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:focus:not(:active):not(:disabled){outline-color:var(--_nys-datepicker-outline-color--focus);border-color:var(--_nys-datepicker-outline-color--focus)}.nys-datepicker--container .wc-datepicker--container{display:flex;width:fit-content}.nys-datepicker--container .wc-datepicker--container *{flex:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}wc-datepicker{display:none;padding:var(--_nys-datepicker--wc-padding);border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--nys-color-neutral-100, #d0d0ce);background:var(--_nys-datepicker-bg);box-shadow:0 4px 6px -1px var(--nys-color-black-transparent-100, rgba(27, 27, 27, .1)),0 4px 6px -1px var(--nys-color-black-transparent-50, rgba(27, 27, 27, .01));color:var(--_nys-datepicker-text-color);margin-bottom:3px}wc-datepicker.active{display:flex;flex-direction:column-reverse;position:absolute;z-index:1}wc-datepicker *,wc-datepicker *:before,wc-datepicker *:after{margin:0;box-sizing:border-box}.wc-datepicker{display:block;width:min-content;font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker--date-font-size);font-weight:400;line-height:var(--_nys-datepicker-line-height);letter-spacing:var(--_nys-datepicker-letterspacing)}.wc-datepicker--disabled *:disabled{opacity:.5;cursor:not-allowed}.wc-datepicker--disabled .wc-datepicker__date{cursor:not-allowed;opacity:.5}.wc-datepicker--disabled .wc-datepicker__date:focus{outline:none;border-color:var(--_nys-datepicker--date-border-disabled);box-shadow:none}.wc-datepicker--disabled .wc-datepicker__date:hover:not(.wc-datepicker__date--selected){background-color:transparent}.wc-datepicker--disabled .wc-datepicker__date--selected:hover{color:var(--_nys-datepicker-bg);background-color:var(--_nys-datepicker--date-selected-bg)}.wc-datepicker--disabled #wc-month-dropdown-icon{color:var(--_nys-datepicker--date-disabled-color)}.wc-datepicker__header{display:flex;align-items:center;gap:var(--_nys-datepicker-space-sm)}.wc-datepicker__current-month{display:flex;flex-grow:1;gap:var(--_nys-datepicker-space-sm)}.wc-datepicker__month-select,.wc-datepicker__year-select{display:flex;align-items:center;font-size:var(--_nys-datepicker-font-size);font-family:var(--_nys-datepicker-font-family);padding:var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-lg);border:var(--_nys-datepicker--navigation-border);border-radius:.25rem;color:var(--_nys-datepicker-color);background-color:var(--_nys-datepicker-bg);line-height:var(--_nys-datepicker-line-height)}.wc-datepicker__month-select:hover:not(:disabled),.wc-datepicker__year-select:hover:not(:disabled){border:var(--_nys-datepicker--navigation-hover-border);background-color:var(--_nys-datepicker--navigation-hover-background);box-shadow:var(--_nys-datepicker--navigation-box-shadow-border)}.wc-datepicker__month-select:active:not(:disabled),.wc-datepicker__month-select[aria-pressed=true],.wc-datepicker__year-select:active:not(:disabled),.wc-datepicker__year-select[aria-pressed=true]{border:var(--_nys-datepicker--navigation-pressed-border);background-color:var(--_nys-datepicker--navigation-pressed-background);box-shadow:var(--_nys-datepicker--navigation-box-shadow-border)}.wc-datepicker__month-select:disabled,.wc-datepicker__month-select[aria-disabled=true],.wc-datepicker__year-select:disabled,.wc-datepicker__year-select[aria-disabled=true]{border:var(--_nys-datepicker--navigation-disabled-border);background-color:var(--_nys-datepicker--navigation-disabled-background);color:var(--_nys-datepicker-color-disabled)}.wc-datepicker .month-wrapper{position:relative;width:135px;display:flex;align-items:center;align-self:stretch}.wc-datepicker .month-wrapper #wc-month-dropdown-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none}.wc-datepicker__month-select{width:100%;max-width:100%;flex-grow:1;cursor:pointer;appearance:none;text-overflow:ellipsis;padding-right:var(--nys-space-400, 32px)}.wc-datepicker__month-select>*{width:91px;height:24px}.wc-datepicker__year-select{border:var(--_nys-datepicker--navigation-border);border-radius:.25rem;padding-right:var(--_nys-datepicker-space-sm);max-width:5rem}.wc-datepicker__previous-month-button,.wc-datepicker__next-month-button,.wc-datepicker__previous-year-button,.wc-datepicker__next-year-button{display:inline-flex;width:40px;max-width:40px;max-height:42px;padding:var(--_nys-datepicker-space-lg);justify-content:center;align-items:center;border:var(--_nys-datepicker--navigation-border);border-radius:.25rem;color:var(--_nys-datepicker--date-default-color);background-color:var(--_nys-datepicker-bg);cursor:pointer}.wc-datepicker__previous-month-button:hover:not(:disabled),.wc-datepicker__next-month-button:hover:not(:disabled),.wc-datepicker__previous-year-button:hover:not(:disabled),.wc-datepicker__next-year-button:hover:not(:disabled){background-color:var(--_nys-datepicker--navigation-hover-background);box-shadow:var(--_nys-datepicker--navigation-box-shadow-border);border:var(--_nys-datepicker--navigation-hover-border)}.wc-datepicker__previous-month-button:active:not(:disabled),.wc-datepicker__previous-month-button[aria-pressed=true],.wc-datepicker__next-month-button:active:not(:disabled),.wc-datepicker__next-month-button[aria-pressed=true],.wc-datepicker__previous-year-button:active:not(:disabled),.wc-datepicker__previous-year-button[aria-pressed=true],.wc-datepicker__next-year-button:active:not(:disabled),.wc-datepicker__next-year-button[aria-pressed=true]{background-color:var(--_nys-datepicker--navigation-pressed-background);box-shadow:var(--_nys-datepicker--navigation-box-shadow-border);border:var(--_nys-datepicker--navigation-pressed-border)}.wc-datepicker__previous-month-button:disabled,.wc-datepicker__previous-month-button[aria-disabled=true],.wc-datepicker__next-month-button:disabled,.wc-datepicker__next-month-button[aria-disabled=true],.wc-datepicker__previous-year-button:disabled,.wc-datepicker__previous-year-button[aria-disabled=true],.wc-datepicker__next-year-button:disabled,.wc-datepicker__next-year-button[aria-disabled=true]{background-color:var(--_nys-datepicker--navigation-disabled-background);border:var(--_nys-datepicker--navigation-disabled-border);color:var(--_nys-datepicker-color-disabled)}.wc-datepicker__calendar{width:100%;table-layout:fixed;border-collapse:collapse}.wc-datepicker__weekday{padding:var(--_nys-datepicker--wc-padding) 0 var(--_nys-datepicker-space-sm) 0;min-width:var(--nys-size-500, 40px);font-weight:600;aspect-ratio:1}.wc-datepicker__weekday>span{width:42.3px;height:24px;display:flex;justify-content:center;align-items:center}.wc-datepicker__weekday[aria-label=Saturday],.wc-datepicker__weekday[aria-label=Sunday]{color:var(--_nys-datepicker--wc-weaker-color)}.wc-datepicker__date{padding:var(--_nys-datepicker-space-md);text-align:center;cursor:pointer;border-radius:var(--nys-radius-lg)}.wc-datepicker__date:focus,.wc-datepicker__date:focus-visible{outline:none}.wc-datepicker__date:focus{box-shadow:inset 0 0 0 2px var(--_nys-datepicker--date-focus-ring)}.wc-datepicker__date:hover:not(.wc-datepicker__date--selected):not(:active){color:var(--_nys-datepicker--date-hover-color);background-color:var(--_nys-datepicker--date-hover-bg)}.wc-datepicker__date:active{color:var(--_nys-datepicker--date-hover-color);background-color:var(--_nys-datepicker--date-active-bg)}.wc-datepicker__date>*{display:flex;justify-content:center;align-items:center;aspect-ratio:1;width:24.3px;height:24px}.wc-datepicker__date--today{font-weight:600;color:var(--_nys-datepicker--date-selected-color)}.wc-datepicker__date--today>*{font-style:normal;text-decoration-line:underline}.wc-datepicker__date--selected{text-decoration-line:none;background-color:var(--_nys-datepicker--date-selected-bg);color:var(--_nys-datepicker--date-selected-color)}.wc-datepicker__date--selected>*{font-weight:600}.wc-datepicker__date--disabled{color:var(--_nys-datepicker--date-disabled-color);cursor:default}.wc-datepicker__date--disabled:not(.wc-datepicker__date--disabled--selected,.wc-datepicker__date--disabled--in-range):hover{background-color:transparent}.wc-datepicker__date.wc-datepicker__date--overflowing{color:var(--_nys-datepicker-text-disabled)}.wc-datepicker__date.wc-datepicker__date--overflowing:hover,.wc-datepicker__date.wc-datepicker__date--overflowing:active{color:var(--_nys-datepicker-color)}.wc-datepicker--button-container{display:flex;padding-top:var(--_nys-datepicker-space-lg);align-items:flex-end;gap:var(--_nys-datepicker--wc-padding);align-self:stretch}.wc-datepicker tr.wc-datepicker__calendar-row.sc-wc-datepicker{display:flex;align-items:center;gap:var(--_nys-datepicker--row-gap);align-self:stretch}', E = {
4
+ /*!
5
+ * █▄ █ █ █ █▀▀▀█ █▀▀▄ █▀▀▀█
6
+ * █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
7
+ * █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
8
+ *
9
+ * Datepicker Component v1.15.1
10
+ * Part of the New York State Design System
11
+ * Repository: https://github.com/its-hcd/nysds
12
+ * License: MIT
13
+ */
14
+ const Ke = ':host{--_nys-datepicker-width: fit-content;--_nys-datepicker-width--input: var(--nys-form-width-md, 200px);--_nys-datepicker-gap: var(--nys-space-100, 8px);--_nys-datepicker-height: var(--nys-size-600, 48px);--_nys-datepicker-radius: var(--nys-radius-xl, 12px);--_nys-datepicker-color: var( --nys-color-text, var(--nys-color-neutral-900, #1b1b1b) );--_nys-datepicker-color--disabled: var(--nys-color-text-disabled, #bec0c1);--_nys-datepicker-space-sm: var(--nys-space-50, 4px);--_nys-datepicker-space-md: var(--nys-space-100, 8px);--_nys-datepicker-space-lg: var(--nys-space-150, 12px);--_nys-datepicker-border-width: var(--nys-border-width-sm, 1px);--_nys-datepicker-border-color: var(--nys-color-neutral-400, #909395);--_nys-datepicker-border-radius: var(--nys-radius-md, 4px);--_nys-datepicker-outline-color--hover: var(--nys-color-neutral-900, #1b1b1b);--_nys-datepicker-outline-color--focus: var(--nys-color-focus, #004dd1);--_nys-datepicker-font-size: var(--nys-font-size-ui-md, 16px);--_nys-datepicker-font-weight: var(--nys-font-weight-regular, 400);--_nys-datepicker-line-height: var(--nys-font-lineheight-ui-md, 24px);--_nys-datepicker-letterspacing: var(--nys-font-letterspacing-ui-md, .044px);--_nys-datepicker-font-family: var( --nys-font-family-ui, var( --nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif ) );--_nys-datepicker-text-color: var(--nys-color-text, #1b1b1b);--_nys-datepicker-text-disabled: var(--nys-color-text-disabled, #bec0c1);--_nys-datepicker-background-color: var(--nys-color-ink-reverse, #ffffff);--_nys-datepicker-background-color--button--active: var( --nys-color-gray-100, #d0d0ce );--_nys-datepicker-padding--calendar: var(--nys-space-200, 16px);--_nys-datepicker-color--calendar--weekends: var( --nys-color-text-weaker, #797c7f );--_nys-datepicker-gap--calendar-row: var(--nys-space-2-px, 2px);--_nys-datepicker-font-size--date: var(--nys-type-size-ui-sm, 14px);--_nys-datepicker-background-color--date--hover: var( --nys-color-neutral-50, #ededed );--_nys-datepicker-background-color--date--active: var( --nys-color-neutral-100, #d0d0ce );--_nys-datepicker-background-color--date--selected: var( --nys-color-info-weak, #e5effa );--_nys-datepicker-focus-ring--date: var(--nys-color-link, #004dd1);--_nys-datepicker-color--date: var(--nys-color-text, #1b1b1b);--_nys-datepicker-color--date--hover: var(--nys-color-text, #1b1b1b);--_nys-datepicker-color--date--selected: var(--nys-color-info, #004dd1);--_nys-datepicker-color--date--disabled: var( --nys-color-text-disabled, #bec0c1 );--_nys-datepicker-border-color--date--disabled: var( --nys-color-neutral-200, #bec0c1 );--_nys-datepicker-background-color--navigation--hover: var( --nys-color-neutral-10, #f6f6f6 );--_nys-datepicker-background-color--navigation--pressed: var( --nys-color-neutral-50, #ededed );--_nys-datepicker-background-color--navigation--disabled: var( --nys-color-neutral-10, #f6f6f6 );--_nys-datepicker-color--navigation--hover: var( --nys-color-neutral-900, #1b1b1b );--_nys-datepicker-color--navigation--pressed: var( --nys-color-neutral-900, #1b1b1b );--_nys-datepicker-color--navigation--disabled: var( --nys-color-neutral-200, #bec0c1 );--_nys-datepicker-box-shadow-border--navigation: inset 0 0 0 1px var(--nys-color-neutral-900, #1b1b1b)}:host([width=lg]){--_nys-datepicker-width--input: var(--nys-form-width-lg, 384px)}:host([width=full]){--_nys-datepicker-width--input: 100%}:host([showError]){--_nys-datepicker-border-color: var(--nys-color-danger, #b52c2c)}.nys-datepicker--container{display:flex;flex-direction:column;gap:var(--_nys-datepicker-space-sm);font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size);font-weight:var(--_nys-datepicker-font-weight);line-height:var(--_nys-datepicker-line-height);width:100%}.nys-datepicker--container .nys-datepicker--input-container{position:relative;width:var(--_nys-datepicker-width--input);display:flex;cursor:pointer}.nys-datepicker--container .nys-datepicker--input-container.disabled #calendar-button{cursor:not-allowed;color:var(--_nys-datepicker-color--date--disabled)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input{cursor:text;text-align:start;font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size);flex:1;height:24px;outline:transparent solid 1px;border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-border-color);background-color:var(--_nys-datepicker-background-color);padding:var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-lg);color:var(--_nys-datepicker-color)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:hover{outline-color:var(--_nys-datepicker-outline-color--hover);border-color:var(--_nys-datepicker-outline-color--hover)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:focus{outline-color:var(--_nys-datepicker-outline-color--focus);border-color:var(--_nys-datepicker-outline-color--focus)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:disabled{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);cursor:not-allowed;color:var(--_nys-datepicker-color--disabled)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input::-webkit-date-and-time-value{text-align:start}.nys-datepicker--container .nys-datepicker--input-container input[type=date]::-webkit-inner-spin-button,.nys-datepicker--container .nys-datepicker--input-container input[type=date]::-webkit-calendar-picker-indicator{display:none;appearance:none}.nys-datepicker--container .nys-datepicker--input-container #calendar-button{display:flex;align-items:center;justify-content:center;padding:var(--_nys-datepicker-space-sm);border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-background-color);outline:transparent solid 1px;background-color:var(--_nys-datepicker-background-color);position:absolute;top:50%;right:var(--_nys-datepicker-space-sm);transform:translateY(-50%);cursor:pointer}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:hover{outline-color:var(--_nys-datepicker-background-color--date--hover);border-color:var(--_nys-datepicker-background-color--date--hover);background:var(--_nys-datepicker-background-color--date--hover)}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:active{outline-color:var(--_nys-datepicker-background-color--button--active);border-color:var(--_nys-datepicker-background-color--button--active);background:var(--_nys-datepicker-background-color--button--active)}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:focus:not(:active):not(:disabled){outline-color:var(--_nys-datepicker-outline-color--focus);border-color:var(--_nys-datepicker-outline-color--focus)}.nys-datepicker--container .wc-datepicker--container{display:flex;width:fit-content}.nys-datepicker--container .wc-datepicker--container *{flex:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}wc-datepicker{display:none;padding:var(--_nys-datepicker-padding--calendar);border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--nys-color-neutral-100, #d0d0ce);background-color:var(--_nys-datepicker-background-color);box-shadow:0 4px 6px -1px var(--nys-color-black-transparent-100, rgba(27, 27, 27, .1)),0 4px 6px -1px var(--nys-color-black-transparent-50, rgba(27, 27, 27, .01));color:var(--_nys-datepicker-text-color);margin-bottom:3px}wc-datepicker.active{display:flex;flex-direction:column-reverse;position:absolute;z-index:1}wc-datepicker *,wc-datepicker *:before,wc-datepicker *:after{margin:0;box-sizing:border-box}.wc-datepicker{display:block;width:min-content;font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size--date);font-weight:400;line-height:var(--_nys-datepicker-line-height);letter-spacing:var(--_nys-datepicker-letterspacing)}.wc-datepicker--disabled *:disabled{opacity:.5;cursor:not-allowed}.wc-datepicker--disabled .wc-datepicker__date{cursor:not-allowed;opacity:.5}.wc-datepicker--disabled .wc-datepicker__date:focus{outline:none;border-color:var(--_nys-datepicker-border-color--date--disabled);box-shadow:none}.wc-datepicker--disabled .wc-datepicker__date:hover:not(.wc-datepicker__date--selected){background-color:transparent}.wc-datepicker--disabled .wc-datepicker__date--selected:hover{color:var(--_nys-datepicker-background-color);background-color:var(--_nys-datepicker-background-color--date--selected)}.wc-datepicker--disabled #wc-month-dropdown-icon{color:var(--_nys-datepicker-color--date--disabled)}.wc-datepicker__header{display:flex;align-items:center;gap:var(--_nys-datepicker-space-sm)}.wc-datepicker__current-month{display:flex;flex-grow:1;gap:var(--_nys-datepicker-space-sm)}.wc-datepicker__month-select,.wc-datepicker__year-select{display:flex;align-items:center;font-size:var(--_nys-datepicker-font-size);font-family:var(--_nys-datepicker-font-family);padding:var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-lg);border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;color:var(--_nys-datepicker-color);background-color:var(--_nys-datepicker-background-color);line-height:var(--_nys-datepicker-line-height)}.wc-datepicker__month-select:hover:not(:disabled),.wc-datepicker__year-select:hover:not(:disabled){border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--hover);background-color:var(--_nys-datepicker-background-color--navigation--hover);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation)}.wc-datepicker__month-select:active:not(:disabled),.wc-datepicker__month-select[aria-pressed=true],.wc-datepicker__year-select:active:not(:disabled),.wc-datepicker__year-select[aria-pressed=true]{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--pressed);background-color:var(--_nys-datepicker-background-color--navigation--pressed);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation)}.wc-datepicker__month-select:disabled,.wc-datepicker__month-select[aria-disabled=true],.wc-datepicker__year-select:disabled,.wc-datepicker__year-select[aria-disabled=true]{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);background-color:var(--_nys-datepicker-background-color--navigation--disabled);color:var(--_nys-datepicker-color--disabled)}.wc-datepicker .month-wrapper{position:relative;width:135px;display:flex;align-items:center;align-self:stretch}.wc-datepicker .month-wrapper #wc-month-dropdown-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none}.wc-datepicker__month-select{width:100%;max-width:100%;flex-grow:1;cursor:pointer;appearance:none;text-overflow:ellipsis;padding-right:var(--nys-space-400, 32px)}.wc-datepicker__month-select>*{width:91px;height:24px}.wc-datepicker__year-select{border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;padding-right:var(--_nys-datepicker-space-sm);max-width:5rem}.wc-datepicker__previous-month-button,.wc-datepicker__next-month-button,.wc-datepicker__previous-year-button,.wc-datepicker__next-year-button{display:inline-flex;width:40px;max-width:40px;max-height:42px;padding:var(--_nys-datepicker-space-lg);justify-content:center;align-items:center;border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;color:var(--_nys-datepicker-color--date);background-color:var(--_nys-datepicker-background-color);cursor:pointer}.wc-datepicker__previous-month-button:hover:not(:disabled),.wc-datepicker__next-month-button:hover:not(:disabled),.wc-datepicker__previous-year-button:hover:not(:disabled),.wc-datepicker__next-year-button:hover:not(:disabled){background-color:var(--_nys-datepicker-background-color--navigation--hover);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--hover)}.wc-datepicker__previous-month-button:active:not(:disabled),.wc-datepicker__previous-month-button[aria-pressed=true],.wc-datepicker__next-month-button:active:not(:disabled),.wc-datepicker__next-month-button[aria-pressed=true],.wc-datepicker__previous-year-button:active:not(:disabled),.wc-datepicker__previous-year-button[aria-pressed=true],.wc-datepicker__next-year-button:active:not(:disabled),.wc-datepicker__next-year-button[aria-pressed=true]{background-color:var(--_nys-datepicker-background-color--navigation--pressed);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--pressed)}.wc-datepicker__previous-month-button:disabled,.wc-datepicker__previous-month-button[aria-disabled=true],.wc-datepicker__next-month-button:disabled,.wc-datepicker__next-month-button[aria-disabled=true],.wc-datepicker__previous-year-button:disabled,.wc-datepicker__previous-year-button[aria-disabled=true],.wc-datepicker__next-year-button:disabled,.wc-datepicker__next-year-button[aria-disabled=true]{background-color:var(--_nys-datepicker-background-color--navigation--disabled);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);color:var(--_nys-datepicker-color--disabled)}.wc-datepicker__calendar{width:100%;table-layout:fixed;border-collapse:collapse}.wc-datepicker__weekday{padding:var(--_nys-datepicker-padding--calendar) 0 var(--_nys-datepicker-space-sm) 0;min-width:var(--nys-size-500, 40px);font-weight:600;aspect-ratio:1}.wc-datepicker__weekday>span{width:42.3px;height:24px;display:flex;justify-content:center;align-items:center}.wc-datepicker__weekday[aria-label=Saturday],.wc-datepicker__weekday[aria-label=Sunday]{color:var(--_nys-datepicker-color--calendar--weekends)}.wc-datepicker__date{padding:var(--_nys-datepicker-space-md);text-align:center;cursor:pointer;border-radius:var(--nys-radius-lg)}.wc-datepicker__date:focus,.wc-datepicker__date:focus-visible{outline:none}.wc-datepicker__date:focus{box-shadow:inset 0 0 0 2px var(--_nys-datepicker-focus-ring--date)}.wc-datepicker__date:hover:not(.wc-datepicker__date--selected):not(:active){color:var(--_nys-datepicker-color--date--hover);background-color:var(--_nys-datepicker-background-color--date--hover)}.wc-datepicker__date:active{color:var(--_nys-datepicker-color--date--hover);background-color:var(--_nys-datepicker-background-color--date--active)}.wc-datepicker__date>*{display:flex;justify-content:center;align-items:center;aspect-ratio:1;width:24.3px;height:24px}.wc-datepicker__date--today{font-weight:600;color:var(--_nys-datepicker-color--date--selected)}.wc-datepicker__date--today>*{font-style:normal;text-decoration-line:underline}.wc-datepicker__date--selected{text-decoration-line:none;background-color:var(--_nys-datepicker-background-color--date--selected);color:var(--_nys-datepicker-color--date--selected)}.wc-datepicker__date--selected>*{font-weight:600}.wc-datepicker__date--disabled{color:var(--_nys-datepicker-color--date--disabled);cursor:default}.wc-datepicker__date--disabled:not(.wc-datepicker__date--disabled--selected,.wc-datepicker__date--disabled--in-range):hover{background-color:transparent}.wc-datepicker__date.wc-datepicker__date--overflowing{color:var(--_nys-datepicker-text-disabled)}.wc-datepicker__date.wc-datepicker__date--overflowing:hover,.wc-datepicker__date.wc-datepicker__date--overflowing:active{color:var(--_nys-datepicker-color)}.wc-datepicker--button-container{display:flex;padding-top:var(--_nys-datepicker-space-lg);align-items:flex-end;gap:var(--_nys-datepicker-padding--calendar);align-self:stretch}.wc-datepicker tr.wc-datepicker__calendar-row.sc-wc-datepicker{display:flex;align-items:center;gap:var(--_nys-datepicker-gap--calendar-row);align-self:stretch}', E = {
5
15
  allRenderFn: !1,
6
16
  cmpDidLoad: !0,
7
17
  cmpDidUnload: !1,
@@ -85,21 +95,21 @@ const Ke = ':host{--_nys-datepicker-width: fit-content;--_nys-datepicker-input-w
85
95
  transformTagName: !1,
86
96
  attachStyles: !0
87
97
  };
88
- let B, me, G, we = !1, z = !1, ee = !1, b = !1, re = null, Z = !1;
98
+ let B, we, G, De = !1, z = !1, ee = !1, b = !1, ne = null, Z = !1;
89
99
  const M = (t, e = "") => () => {
90
- }, ne = "http://www.w3.org/1999/xlink", ie = {}, Qe = "http://www.w3.org/2000/svg", Ge = "http://www.w3.org/1999/xhtml", Xe = (t) => t != null, te = (t) => (t = typeof t, t === "object" || t === "function");
100
+ }, ie = "http://www.w3.org/1999/xlink", oe = {}, Qe = "http://www.w3.org/2000/svg", Ge = "http://www.w3.org/1999/xhtml", Xe = (t) => t != null, te = (t) => (t = typeof t, t === "object" || t === "function");
91
101
  function Je(t) {
92
- var e, a, s;
93
- return (s = (a = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || a === void 0 ? void 0 : a.getAttribute("content")) !== null && s !== void 0 ? s : void 0;
102
+ var e, a, r;
103
+ return (r = (a = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || a === void 0 ? void 0 : a.getAttribute("content")) !== null && r !== void 0 ? r : void 0;
94
104
  }
95
105
  const h = (t, e, ...a) => {
96
- let s = null, r = null, n = null, i = !1, o = !1;
106
+ let r = null, s = null, n = null, i = !1, o = !1;
97
107
  const c = [], l = (d) => {
98
108
  for (let p = 0; p < d.length; p++)
99
- s = d[p], Array.isArray(s) ? l(s) : s != null && typeof s != "boolean" && ((i = typeof t != "function" && !te(s)) && (s = String(s)), i && o ? c[c.length - 1].$text$ += s : c.push(i ? j(null, s) : s), o = i);
109
+ r = d[p], Array.isArray(r) ? l(r) : r != null && typeof r != "boolean" && ((i = typeof t != "function" && !te(r)) && (r = String(r)), i && o ? c[c.length - 1].$text$ += r : c.push(i ? j(null, r) : r), o = i);
100
110
  };
101
111
  if (l(a), e) {
102
- e.key && (r = e.key), e.name && (n = e.name);
112
+ e.key && (s = e.key), e.name && (n = e.name);
103
113
  {
104
114
  const d = e.className || e.class;
105
115
  d && (e.class = typeof d != "object" ? d : Object.keys(d).filter((p) => d[p]).join(" "));
@@ -108,7 +118,7 @@ const h = (t, e, ...a) => {
108
118
  if (typeof t == "function")
109
119
  return t(e === null ? {} : e, c, Ve);
110
120
  const u = j(t, null);
111
- return u.$attrs$ = e, c.length > 0 && (u.$children$ = c), u.$key$ = r, u.$name$ = n, u;
121
+ return u.$attrs$ = e, c.length > 0 && (u.$children$ = c), u.$key$ = s, u.$name$ = n, u;
112
122
  }, j = (t, e) => {
113
123
  const a = {
114
124
  $flags$: 0,
@@ -118,10 +128,10 @@ const h = (t, e, ...a) => {
118
128
  $children$: null
119
129
  };
120
130
  return a.$attrs$ = null, a.$key$ = null, a.$name$ = null, a;
121
- }, De = {}, Ze = (t) => t && t.$tag$ === De, Ve = {
122
- forEach: (t, e) => t.map(oe).forEach(e),
123
- map: (t, e) => t.map(oe).map(e).map(et)
124
- }, oe = (t) => ({
131
+ }, xe = {}, Ze = (t) => t && t.$tag$ === xe, Ve = {
132
+ forEach: (t, e) => t.map(ce).forEach(e),
133
+ map: (t, e) => t.map(ce).map(e).map(et)
134
+ }, ce = (t) => ({
125
135
  vattrs: t.$attrs$,
126
136
  vchildren: t.$children$,
127
137
  vkey: t.$key$,
@@ -135,34 +145,34 @@ const h = (t, e, ...a) => {
135
145
  }
136
146
  const e = j(t.vtag, t.vtext);
137
147
  return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
138
- }, tt = (t) => Tt.map((e) => e(t)).find((e) => !!e), at = (t, e) => t != null && !te(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, st = (t) => t, ce = (t, e, a) => {
139
- const s = st(t);
148
+ }, tt = (t) => Tt.map((e) => e(t)).find((e) => !!e), at = (t, e) => t != null && !te(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, rt = (t) => t, le = (t, e, a) => {
149
+ const r = rt(t);
140
150
  return {
141
- emit: (r) => rt(s, e, {
151
+ emit: (s) => st(r, e, {
142
152
  bubbles: !0,
143
153
  composed: !0,
144
154
  cancelable: !0,
145
- detail: r
155
+ detail: s
146
156
  })
147
157
  };
148
- }, rt = (t, e, a) => {
149
- const s = k.ce(e, a);
150
- return t.dispatchEvent(s), s;
151
- }, le = /* @__PURE__ */ new WeakMap(), nt = (t, e, a) => {
152
- let s = K.get(t);
153
- Rt && a ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = e : s.replaceSync(e)) : s = e, K.set(t, s);
154
- }, it = (t, e, a, s) => {
155
- var r;
156
- let n = xe(e, a);
158
+ }, st = (t, e, a) => {
159
+ const r = v.ce(e, a);
160
+ return t.dispatchEvent(r), r;
161
+ }, de = /* @__PURE__ */ new WeakMap(), nt = (t, e, a) => {
162
+ let r = K.get(t);
163
+ Rt && a ? (r = r || new CSSStyleSheet(), typeof r == "string" ? r = e : r.replaceSync(e)) : r = e, K.set(t, r);
164
+ }, it = (t, e, a, r) => {
165
+ var s;
166
+ let n = Se(e, a);
157
167
  const i = K.get(n);
158
168
  if (t = t.nodeType === 11 ? t : m, i)
159
169
  if (typeof i == "string") {
160
170
  t = t.head || t;
161
- let o = le.get(t), c;
162
- if (o || le.set(t, o = /* @__PURE__ */ new Set()), !o.has(n)) {
171
+ let o = de.get(t), c;
172
+ if (o || de.set(t, o = /* @__PURE__ */ new Set()), !o.has(n)) {
163
173
  {
164
174
  c = m.createElement("style"), c.innerHTML = i;
165
- const l = (r = k.$nonce$) !== null && r !== void 0 ? r : Je(m);
175
+ const l = (s = v.$nonce$) !== null && s !== void 0 ? s : Je(m);
166
176
  l != null && c.setAttribute("nonce", l), t.insertBefore(c, t.querySelector("link"));
167
177
  }
168
178
  o && o.add(n);
@@ -170,120 +180,120 @@ const h = (t, e, ...a) => {
170
180
  } else t.adoptedStyleSheets.includes(i) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, i]);
171
181
  return n;
172
182
  }, ot = (t) => {
173
- const e = t.$cmpMeta$, a = t.$hostElement$, s = e.$flags$, r = M("attachStyles", e.$tagName$), n = it(a.shadowRoot ? a.shadowRoot : a.getRootNode(), e, t.$modeName$);
174
- s & 10 && (a["s-sc"] = n, a.classList.add(n + "-h"), s & 2 && a.classList.add(n + "-s")), r();
175
- }, xe = (t, e) => "sc-" + (e && t.$flags$ & 32 ? t.$tagName$ + "-" + e : t.$tagName$), de = (t, e, a, s, r, n) => {
176
- if (a !== s) {
177
- let i = fe(t, e), o = e.toLowerCase();
183
+ const e = t.$cmpMeta$, a = t.$hostElement$, r = e.$flags$, s = M("attachStyles", e.$tagName$), n = it(a.shadowRoot ? a.shadowRoot : a.getRootNode(), e, t.$modeName$);
184
+ r & 10 && (a["s-sc"] = n, a.classList.add(n + "-h"), r & 2 && a.classList.add(n + "-s")), s();
185
+ }, Se = (t, e) => "sc-" + (e && t.$flags$ & 32 ? t.$tagName$ + "-" + e : t.$tagName$), ue = (t, e, a, r, s, n) => {
186
+ if (a !== r) {
187
+ let i = ye(t, e), o = e.toLowerCase();
178
188
  if (e === "class") {
179
- const c = t.classList, l = ue(a), u = ue(s);
189
+ const c = t.classList, l = he(a), u = he(r);
180
190
  c.remove(...l.filter((d) => d && !u.includes(d))), c.add(...u.filter((d) => d && !l.includes(d)));
181
191
  } else if (e === "style") {
182
192
  for (const c in a)
183
- (!s || s[c] == null) && (c.includes("-") ? t.style.removeProperty(c) : t.style[c] = "");
184
- for (const c in s)
185
- (!a || s[c] !== a[c]) && (c.includes("-") ? t.style.setProperty(c, s[c]) : t.style[c] = s[c]);
193
+ (!r || r[c] == null) && (c.includes("-") ? t.style.removeProperty(c) : t.style[c] = "");
194
+ for (const c in r)
195
+ (!a || r[c] !== a[c]) && (c.includes("-") ? t.style.setProperty(c, r[c]) : t.style[c] = r[c]);
186
196
  } else if (e !== "key")
187
197
  if (e === "ref")
188
- s && s(t);
198
+ r && r(t);
189
199
  else if (!t.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
190
- e[2] === "-" ? e = e.slice(3) : fe(J, o) ? e = o.slice(2) : e = o[2] + e.slice(3), a && k.rel(t, e, a, !1), s && k.ael(t, e, s, !1);
200
+ e[2] === "-" ? e = e.slice(3) : ye(J, o) ? e = o.slice(2) : e = o[2] + e.slice(3), a && v.rel(t, e, a, !1), r && v.ael(t, e, r, !1);
191
201
  else {
192
- const c = te(s);
193
- if ((i || c && s !== null) && !r)
202
+ const c = te(r);
203
+ if ((i || c && r !== null) && !s)
194
204
  try {
195
205
  if (t.tagName.includes("-"))
196
- t[e] = s;
206
+ t[e] = r;
197
207
  else {
198
- const u = s ?? "";
208
+ const u = r ?? "";
199
209
  e === "list" ? i = !1 : (a == null || t[e] != u) && (t[e] = u);
200
210
  }
201
211
  } catch {
202
212
  }
203
213
  let l = !1;
204
- o !== (o = o.replace(/^xlink\:?/, "")) && (e = o, l = !0), s == null || s === !1 ? (s !== !1 || t.getAttribute(e) === "") && (l ? t.removeAttributeNS(ne, e) : t.removeAttribute(e)) : (!i || n & 4 || r) && !c && (s = s === !0 ? "" : s, l ? t.setAttributeNS(ne, e, s) : t.setAttribute(e, s));
214
+ o !== (o = o.replace(/^xlink\:?/, "")) && (e = o, l = !0), r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === "") && (l ? t.removeAttributeNS(ie, e) : t.removeAttribute(e)) : (!i || n & 4 || s) && !c && (r = r === !0 ? "" : r, l ? t.setAttributeNS(ie, e, r) : t.setAttribute(e, r));
205
215
  }
206
216
  }
207
- }, ct = /\s/, ue = (t) => t ? t.split(ct) : [], Se = (t, e, a, s) => {
208
- const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, n = t && t.$attrs$ || ie, i = e.$attrs$ || ie;
209
- for (s in n)
210
- s in i || de(r, s, n[s], void 0, a, e.$flags$);
211
- for (s in i)
212
- de(r, s, n[s], i[s], a, e.$flags$);
213
- }, H = (t, e, a, s) => {
214
- const r = e.$children$[a];
217
+ }, ct = /\s/, he = (t) => t ? t.split(ct) : [], Ce = (t, e, a, r) => {
218
+ const s = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, n = t && t.$attrs$ || oe, i = e.$attrs$ || oe;
219
+ for (r in n)
220
+ r in i || ue(s, r, n[r], void 0, a, e.$flags$);
221
+ for (r in i)
222
+ ue(s, r, n[r], i[r], a, e.$flags$);
223
+ }, H = (t, e, a, r) => {
224
+ const s = e.$children$[a];
215
225
  let n = 0, i, o, c;
216
- if (we || (ee = !0, r.$tag$ === "slot" && (B && s.classList.add(B + "-s"), r.$flags$ |= r.$children$ ? (
226
+ if (De || (ee = !0, s.$tag$ === "slot" && (B && r.classList.add(B + "-s"), s.$flags$ |= s.$children$ ? (
217
227
  // slot element has fallback content
218
228
  2
219
229
  ) : (
220
230
  // slot element does not have fallback content
221
231
  1
222
- ))), r.$text$ !== null)
223
- i = r.$elm$ = m.createTextNode(r.$text$);
224
- else if (r.$flags$ & 1)
225
- i = r.$elm$ = m.createTextNode("");
232
+ ))), s.$text$ !== null)
233
+ i = s.$elm$ = m.createTextNode(s.$text$);
234
+ else if (s.$flags$ & 1)
235
+ i = s.$elm$ = m.createTextNode("");
226
236
  else {
227
- if (b || (b = r.$tag$ === "svg"), i = r.$elm$ = m.createElementNS(b ? Qe : Ge, r.$flags$ & 2 ? "slot-fb" : r.$tag$), b && r.$tag$ === "foreignObject" && (b = !1), Se(null, r, b), Xe(B) && i["s-si"] !== B && i.classList.add(i["s-si"] = B), r.$children$)
228
- for (n = 0; n < r.$children$.length; ++n)
229
- o = H(t, r, n, i), o && i.appendChild(o);
230
- r.$tag$ === "svg" ? b = !1 : i.tagName === "foreignObject" && (b = !0);
231
- }
232
- return i["s-hn"] = G, r.$flags$ & 3 && (i["s-sr"] = !0, i["s-cr"] = me, i["s-sn"] = r.$name$ || "", c = t && t.$children$ && t.$children$[a], c && c.$tag$ === r.$tag$ && t.$elm$ && A(t.$elm$, !1)), i;
233
- }, A = (t, e) => {
234
- k.$flags$ |= 1;
237
+ if (b || (b = s.$tag$ === "svg"), i = s.$elm$ = m.createElementNS(b ? Qe : Ge, s.$flags$ & 2 ? "slot-fb" : s.$tag$), b && s.$tag$ === "foreignObject" && (b = !1), Ce(null, s, b), Xe(B) && i["s-si"] !== B && i.classList.add(i["s-si"] = B), s.$children$)
238
+ for (n = 0; n < s.$children$.length; ++n)
239
+ o = H(t, s, n, i), o && i.appendChild(o);
240
+ s.$tag$ === "svg" ? b = !1 : i.tagName === "foreignObject" && (b = !0);
241
+ }
242
+ return i["s-hn"] = G, s.$flags$ & 3 && (i["s-sr"] = !0, i["s-cr"] = we, i["s-sn"] = s.$name$ || "", c = t && t.$children$ && t.$children$[a], c && c.$tag$ === s.$tag$ && t.$elm$ && F(t.$elm$, !1)), i;
243
+ }, F = (t, e) => {
244
+ v.$flags$ |= 1;
235
245
  const a = t.childNodes;
236
- for (let s = a.length - 1; s >= 0; s--) {
237
- const r = a[s];
238
- r["s-hn"] !== G && r["s-ol"] && (Te(r).insertBefore(r, ae(r)), r["s-ol"].remove(), r["s-ol"] = void 0, ee = !0), e && A(r, e);
246
+ for (let r = a.length - 1; r >= 0; r--) {
247
+ const s = a[r];
248
+ s["s-hn"] !== G && s["s-ol"] && (Le(s).insertBefore(s, ae(s)), s["s-ol"].remove(), s["s-ol"] = void 0, ee = !0), e && F(s, e);
239
249
  }
240
- k.$flags$ &= -2;
241
- }, Ce = (t, e, a, s, r, n) => {
250
+ v.$flags$ &= -2;
251
+ }, Me = (t, e, a, r, s, n) => {
242
252
  let i = t["s-cr"] && t["s-cr"].parentNode || t, o;
243
- for (i.shadowRoot && i.tagName === G && (i = i.shadowRoot); r <= n; ++r)
244
- s[r] && (o = H(null, a, r, t), o && (s[r].$elm$ = o, i.insertBefore(o, ae(e))));
245
- }, Me = (t, e, a, s, r) => {
253
+ for (i.shadowRoot && i.tagName === G && (i = i.shadowRoot); s <= n; ++s)
254
+ r[s] && (o = H(null, a, s, t), o && (r[s].$elm$ = o, i.insertBefore(o, ae(e))));
255
+ }, Te = (t, e, a, r, s) => {
246
256
  for (; e <= a; ++e)
247
- (s = t[e]) && (r = s.$elm$, Be(s), z = !0, r["s-ol"] ? r["s-ol"].remove() : A(r, !0), r.remove());
248
- }, lt = (t, e, a, s) => {
249
- let r = 0, n = 0, i = 0, o = 0, c = e.length - 1, l = e[0], u = e[c], d = s.length - 1, p = s[0], g = s[d], $, D;
250
- for (; r <= c && n <= d; )
257
+ (r = t[e]) && (s = r.$elm$, Re(r), z = !0, s["s-ol"] ? s["s-ol"].remove() : F(s, !0), s.remove());
258
+ }, lt = (t, e, a, r) => {
259
+ let s = 0, n = 0, i = 0, o = 0, c = e.length - 1, l = e[0], u = e[c], d = r.length - 1, p = r[0], g = r[d], $, x;
260
+ for (; s <= c && n <= d; )
251
261
  if (l == null)
252
- l = e[++r];
262
+ l = e[++s];
253
263
  else if (u == null)
254
264
  u = e[--c];
255
265
  else if (p == null)
256
- p = s[++n];
266
+ p = r[++n];
257
267
  else if (g == null)
258
- g = s[--d];
268
+ g = r[--d];
259
269
  else if (Y(l, p))
260
- R(l, p), l = e[++r], p = s[++n];
270
+ R(l, p), l = e[++s], p = r[++n];
261
271
  else if (Y(u, g))
262
- R(u, g), u = e[--c], g = s[--d];
272
+ R(u, g), u = e[--c], g = r[--d];
263
273
  else if (Y(l, g))
264
- (l.$tag$ === "slot" || g.$tag$ === "slot") && A(l.$elm$.parentNode, !1), R(l, g), t.insertBefore(l.$elm$, u.$elm$.nextSibling), l = e[++r], g = s[--d];
274
+ (l.$tag$ === "slot" || g.$tag$ === "slot") && F(l.$elm$.parentNode, !1), R(l, g), t.insertBefore(l.$elm$, u.$elm$.nextSibling), l = e[++s], g = r[--d];
265
275
  else if (Y(u, p))
266
- (l.$tag$ === "slot" || g.$tag$ === "slot") && A(u.$elm$.parentNode, !1), R(u, p), t.insertBefore(u.$elm$, l.$elm$), u = e[--c], p = s[++n];
276
+ (l.$tag$ === "slot" || g.$tag$ === "slot") && F(u.$elm$.parentNode, !1), R(u, p), t.insertBefore(u.$elm$, l.$elm$), u = e[--c], p = r[++n];
267
277
  else {
268
- for (i = -1, o = r; o <= c; ++o)
278
+ for (i = -1, o = s; o <= c; ++o)
269
279
  if (e[o] && e[o].$key$ !== null && e[o].$key$ === p.$key$) {
270
280
  i = o;
271
281
  break;
272
282
  }
273
- i >= 0 ? (D = e[i], D.$tag$ !== p.$tag$ ? $ = H(e && e[n], a, i, t) : (R(D, p), e[i] = void 0, $ = D.$elm$), p = s[++n]) : ($ = H(e && e[n], a, n, t), p = s[++n]), $ && Te(l.$elm$).insertBefore($, ae(l.$elm$));
283
+ i >= 0 ? (x = e[i], x.$tag$ !== p.$tag$ ? $ = H(e && e[n], a, i, t) : (R(x, p), e[i] = void 0, $ = x.$elm$), p = r[++n]) : ($ = H(e && e[n], a, n, t), p = r[++n]), $ && Le(l.$elm$).insertBefore($, ae(l.$elm$));
274
284
  }
275
- r > c ? Ce(t, s[d + 1] == null ? null : s[d + 1].$elm$, a, s, n, d) : n > d && Me(e, r, c);
276
- }, Y = (t, e) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : t.$key$ === e.$key$ : !1, ae = (t) => t && t["s-ol"] || t, Te = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, R = (t, e) => {
277
- const a = e.$elm$ = t.$elm$, s = t.$children$, r = e.$children$, n = e.$tag$, i = e.$text$;
285
+ s > c ? Me(t, r[d + 1] == null ? null : r[d + 1].$elm$, a, r, n, d) : n > d && Te(e, s, c);
286
+ }, Y = (t, e) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : t.$key$ === e.$key$ : !1, ae = (t) => t && t["s-ol"] || t, Le = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, R = (t, e) => {
287
+ const a = e.$elm$ = t.$elm$, r = t.$children$, s = e.$children$, n = e.$tag$, i = e.$text$;
278
288
  let o;
279
- i === null ? (b = n === "svg" ? !0 : n === "foreignObject" ? !1 : b, n === "slot" || Se(t, e, b), s !== null && r !== null ? lt(a, s, e, r) : r !== null ? (t.$text$ !== null && (a.textContent = ""), Ce(a, null, e, r, 0, r.length - 1)) : s !== null && Me(s, 0, s.length - 1), b && n === "svg" && (b = !1)) : (o = a["s-cr"]) ? o.parentNode.textContent = i : t.$text$ !== i && (a.data = i);
280
- }, Le = (t) => {
289
+ i === null ? (b = n === "svg" ? !0 : n === "foreignObject" ? !1 : b, n === "slot" || Ce(t, e, b), r !== null && s !== null ? lt(a, r, e, s) : s !== null ? (t.$text$ !== null && (a.textContent = ""), Me(a, null, e, s, 0, s.length - 1)) : r !== null && Te(r, 0, r.length - 1), b && n === "svg" && (b = !1)) : (o = a["s-cr"]) ? o.parentNode.textContent = i : t.$text$ !== i && (a.data = i);
290
+ }, Ee = (t) => {
281
291
  const e = t.childNodes;
282
- let a, s, r, n, i, o;
283
- for (s = 0, r = e.length; s < r; s++)
284
- if (a = e[s], a.nodeType === 1) {
292
+ let a, r, s, n, i, o;
293
+ for (r = 0, s = e.length; r < s; r++)
294
+ if (a = e[r], a.nodeType === 1) {
285
295
  if (a["s-sr"]) {
286
- for (i = a["s-sn"], a.hidden = !1, n = 0; n < r; n++)
296
+ for (i = a["s-sn"], a.hidden = !1, n = 0; n < s; n++)
287
297
  if (o = e[n].nodeType, e[n]["s-hn"] !== a["s-hn"] || i !== "") {
288
298
  if (o === 1 && i === e[n].getAttribute("slot")) {
289
299
  a.hidden = !0;
@@ -294,32 +304,32 @@ const h = (t, e, ...a) => {
294
304
  break;
295
305
  }
296
306
  }
297
- Le(a);
307
+ Ee(a);
298
308
  }
299
- }, _ = [], Ee = (t) => {
300
- let e, a, s, r, n, i, o = 0;
309
+ }, _ = [], Be = (t) => {
310
+ let e, a, r, s, n, i, o = 0;
301
311
  const c = t.childNodes, l = c.length;
302
312
  for (; o < l; o++) {
303
313
  if (e = c[o], e["s-sr"] && (a = e["s-cr"]) && a.parentNode)
304
- for (s = a.parentNode.childNodes, r = e["s-sn"], i = s.length - 1; i >= 0; i--)
305
- a = s[i], !a["s-cn"] && !a["s-nr"] && a["s-hn"] !== e["s-hn"] && (he(a, r) ? (n = _.find((u) => u.$nodeToRelocate$ === a), z = !0, a["s-sn"] = a["s-sn"] || r, n ? n.$slotRefNode$ = e : _.push({
314
+ for (r = a.parentNode.childNodes, s = e["s-sn"], i = r.length - 1; i >= 0; i--)
315
+ a = r[i], !a["s-cn"] && !a["s-nr"] && a["s-hn"] !== e["s-hn"] && (pe(a, s) ? (n = _.find((u) => u.$nodeToRelocate$ === a), z = !0, a["s-sn"] = a["s-sn"] || s, n ? n.$slotRefNode$ = e : _.push({
306
316
  $slotRefNode$: e,
307
317
  $nodeToRelocate$: a
308
318
  }), a["s-sr"] && _.map((u) => {
309
- he(u.$nodeToRelocate$, a["s-sn"]) && (n = _.find((d) => d.$nodeToRelocate$ === a), n && !u.$slotRefNode$ && (u.$slotRefNode$ = n.$slotRefNode$));
319
+ pe(u.$nodeToRelocate$, a["s-sn"]) && (n = _.find((d) => d.$nodeToRelocate$ === a), n && !u.$slotRefNode$ && (u.$slotRefNode$ = n.$slotRefNode$));
310
320
  })) : _.some((u) => u.$nodeToRelocate$ === a) || _.push({
311
321
  $nodeToRelocate$: a
312
322
  }));
313
- e.nodeType === 1 && Ee(e);
323
+ e.nodeType === 1 && Be(e);
314
324
  }
315
- }, he = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", Be = (t) => {
316
- t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(Be);
325
+ }, pe = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", Re = (t) => {
326
+ t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(Re);
317
327
  }, dt = (t, e) => {
318
- const a = t.$hostElement$, s = t.$cmpMeta$, r = t.$vnode$ || j(null, null), n = Ze(e) ? e : h(null, null, e);
319
- G = a.tagName, s.$attrsToReflect$ && (n.$attrs$ = n.$attrs$ || {}, s.$attrsToReflect$.map(([i, o]) => n.$attrs$[o] = a[i])), n.$tag$ = null, n.$flags$ |= 4, t.$vnode$ = n, n.$elm$ = r.$elm$ = a.shadowRoot || a, B = a["s-sc"], me = a["s-cr"], we = (s.$flags$ & 1) !== 0, z = !1, R(r, n);
328
+ const a = t.$hostElement$, r = t.$cmpMeta$, s = t.$vnode$ || j(null, null), n = Ze(e) ? e : h(null, null, e);
329
+ G = a.tagName, r.$attrsToReflect$ && (n.$attrs$ = n.$attrs$ || {}, r.$attrsToReflect$.map(([i, o]) => n.$attrs$[o] = a[i])), n.$tag$ = null, n.$flags$ |= 4, t.$vnode$ = n, n.$elm$ = s.$elm$ = a.shadowRoot || a, B = a["s-sc"], we = a["s-cr"], De = (r.$flags$ & 1) !== 0, z = !1, R(s, n);
320
330
  {
321
- if (k.$flags$ |= 1, ee) {
322
- Ee(n.$elm$);
331
+ if (v.$flags$ |= 1, ee) {
332
+ Be(n.$elm$);
323
333
  let i, o, c, l, u, d, p = 0;
324
334
  for (; p < _.length; p++)
325
335
  i = _[p], o = i.$nodeToRelocate$, o["s-ol"] || (c = m.createTextNode(""), c["s-nr"] = o, o.parentNode.insertBefore(o["s-ol"] = c, o));
@@ -334,70 +344,70 @@ const h = (t, e, ...a) => {
334
344
  } else
335
345
  o.nodeType === 1 && (o.hidden = !0);
336
346
  }
337
- z && Le(n.$elm$), k.$flags$ &= -2, _.length = 0;
347
+ z && Ee(n.$elm$), v.$flags$ &= -2, _.length = 0;
338
348
  }
339
349
  }, ut = (t, e) => {
340
- }, Re = (t, e) => (t.$flags$ |= 16, ut(t, t.$ancestorComponent$), It(() => ht(t, e))), ht = (t, e) => {
341
- const a = t.$hostElement$, s = M("scheduleUpdate", t.$cmpMeta$.$tagName$), r = a;
350
+ }, Oe = (t, e) => (t.$flags$ |= 16, ut(t, t.$ancestorComponent$), It(() => ht(t, e))), ht = (t, e) => {
351
+ const a = t.$hostElement$, r = M("scheduleUpdate", t.$cmpMeta$.$tagName$), s = a;
342
352
  let n;
343
- return e ? n = O(r, "componentWillLoad") : n = O(r, "componentWillUpdate"), n = pe(n, () => O(r, "componentWillRender")), s(), pe(n, () => pt(t, r, e));
353
+ return e ? n = O(s, "componentWillLoad") : n = O(s, "componentWillUpdate"), n = fe(n, () => O(s, "componentWillRender")), r(), fe(n, () => pt(t, s, e));
344
354
  }, pt = async (t, e, a) => {
345
- const s = t.$hostElement$, r = M("update", t.$cmpMeta$.$tagName$);
346
- s["s-rc"], a && ot(t);
355
+ const r = t.$hostElement$, s = M("update", t.$cmpMeta$.$tagName$);
356
+ r["s-rc"], a && ot(t);
347
357
  const n = M("render", t.$cmpMeta$.$tagName$);
348
- ft(t, e, s), n(), r(), yt(t);
358
+ ft(t, e, r), n(), s(), yt(t);
349
359
  }, ft = (t, e, a) => {
350
360
  try {
351
- re = e, e = e.render && e.render(), t.$flags$ &= -17, t.$flags$ |= 2, (E.hasRenderFn || E.reflect) && (E.vdomRender || E.reflect) && (E.hydrateServerSide || dt(t, e));
361
+ ne = e, e = e.render && e.render(), t.$flags$ &= -17, t.$flags$ |= 2, (E.hasRenderFn || E.reflect) && (E.vdomRender || E.reflect) && (E.hydrateServerSide || dt(t, e));
352
362
  } catch (o) {
353
- F(o, t.$hostElement$);
363
+ A(o, t.$hostElement$);
354
364
  }
355
- return re = null, null;
365
+ return ne = null, null;
356
366
  }, yt = (t) => {
357
- const e = t.$cmpMeta$.$tagName$, a = t.$hostElement$, s = M("postUpdate", e), r = a;
358
- t.$ancestorComponent$, O(r, "componentDidRender"), t.$flags$ & 64 ? (O(r, "componentDidUpdate"), s()) : (t.$flags$ |= 64, O(r, "componentDidLoad"), s());
367
+ const e = t.$cmpMeta$.$tagName$, a = t.$hostElement$, r = M("postUpdate", e), s = a;
368
+ t.$ancestorComponent$, O(s, "componentDidRender"), t.$flags$ & 64 ? (O(s, "componentDidUpdate"), r()) : (t.$flags$ |= 64, O(s, "componentDidLoad"), r());
359
369
  }, O = (t, e, a) => {
360
370
  if (t && t[e])
361
371
  try {
362
372
  return t[e](a);
363
- } catch (s) {
364
- F(s);
373
+ } catch (r) {
374
+ A(r);
365
375
  }
366
- }, pe = (t, e) => t && t.then ? t.then(e) : e(), gt = (t, e) => X(t).$instanceValues$.get(e), vt = (t, e, a, s) => {
367
- const r = X(t), n = t, i = r.$instanceValues$.get(e), o = r.$flags$, c = n;
368
- a = at(a, s.$members$[e][0]);
376
+ }, fe = (t, e) => t && t.then ? t.then(e) : e(), gt = (t, e) => X(t).$instanceValues$.get(e), kt = (t, e, a, r) => {
377
+ const s = X(t), n = t, i = s.$instanceValues$.get(e), o = s.$flags$, c = n;
378
+ a = at(a, r.$members$[e][0]);
369
379
  const l = Number.isNaN(i) && Number.isNaN(a);
370
380
  if (a !== i && !l) {
371
- r.$instanceValues$.set(e, a);
381
+ s.$instanceValues$.set(e, a);
372
382
  {
373
- if (s.$watchers$ && o & 128) {
374
- const d = s.$watchers$[e];
383
+ if (r.$watchers$ && o & 128) {
384
+ const d = r.$watchers$[e];
375
385
  d && d.map((p) => {
376
386
  try {
377
387
  c[p](a, i, e);
378
388
  } catch (g) {
379
- F(g, n);
389
+ A(g, n);
380
390
  }
381
391
  });
382
392
  }
383
393
  if ((o & 18) === 2) {
384
394
  if (c.componentShouldUpdate && c.componentShouldUpdate(a, i, e) === !1)
385
395
  return;
386
- Re(r, !1);
396
+ Oe(s, !1);
387
397
  }
388
398
  }
389
399
  }
390
- }, kt = (t, e, a) => {
400
+ }, vt = (t, e, a) => {
391
401
  if (e.$members$) {
392
402
  t.watchers && (e.$watchers$ = t.watchers);
393
- const s = Object.entries(e.$members$), r = t.prototype;
394
- s.map(([n, [i]]) => {
395
- (i & 31 || i & 32) && Object.defineProperty(r, n, {
403
+ const r = Object.entries(e.$members$), s = t.prototype;
404
+ r.map(([n, [i]]) => {
405
+ (i & 31 || i & 32) && Object.defineProperty(s, n, {
396
406
  get() {
397
407
  return gt(this, n);
398
408
  },
399
409
  set(o) {
400
- vt(this, n, o, e);
410
+ kt(this, n, o, e);
401
411
  },
402
412
  configurable: !0,
403
413
  enumerable: !0
@@ -405,16 +415,16 @@ const h = (t, e, ...a) => {
405
415
  });
406
416
  {
407
417
  const n = /* @__PURE__ */ new Map();
408
- r.attributeChangedCallback = function(i, o, c) {
409
- k.jmp(() => {
418
+ s.attributeChangedCallback = function(i, o, c) {
419
+ v.jmp(() => {
410
420
  const l = n.get(i);
411
421
  if (this.hasOwnProperty(l))
412
422
  c = this[l], delete this[l];
413
- else if (r.hasOwnProperty(l) && typeof this[l] == "number" && this[l] == c)
423
+ else if (s.hasOwnProperty(l) && typeof this[l] == "number" && this[l] == c)
414
424
  return;
415
425
  this[l] = c === null && typeof this[l] == "boolean" ? !1 : c;
416
426
  });
417
- }, t.observedAttributes = s.filter(
427
+ }, t.observedAttributes = r.filter(
418
428
  ([i, o]) => o[0] & 15
419
429
  /* MEMBER_FLAGS.HasAttribute */
420
430
  ).map(([i, o]) => {
@@ -424,33 +434,33 @@ const h = (t, e, ...a) => {
424
434
  }
425
435
  }
426
436
  return t;
427
- }, bt = async (t, e, a, s, r) => {
428
- if ((e.$flags$ & 32) === 0 && (r = t.constructor, e.$flags$ |= 32, customElements.whenDefined(a.$tagName$).then(() => e.$flags$ |= 128), r.style)) {
429
- let i = r.style;
437
+ }, bt = async (t, e, a, r, s) => {
438
+ if ((e.$flags$ & 32) === 0 && (s = t.constructor, e.$flags$ |= 32, customElements.whenDefined(a.$tagName$).then(() => e.$flags$ |= 128), s.style)) {
439
+ let i = s.style;
430
440
  typeof i != "string" && (i = i[e.$modeName$ = tt(t)]);
431
- const o = xe(a, e.$modeName$);
441
+ const o = Se(a, e.$modeName$);
432
442
  if (!K.has(o)) {
433
443
  const c = M("registerStyles", a.$tagName$);
434
444
  nt(o, i, !!(a.$flags$ & 1)), c();
435
445
  }
436
446
  }
437
- e.$ancestorComponent$, Re(e, !0);
447
+ e.$ancestorComponent$, Oe(e, !0);
438
448
  }, $t = (t) => {
439
449
  }, _t = (t) => {
440
- if ((k.$flags$ & 1) === 0) {
441
- const e = X(t), a = e.$cmpMeta$, s = M("connectedCallback", a.$tagName$);
442
- e.$flags$ & 1 ? (Oe(t, e, a.$listeners$), $t(e.$lazyInstance$)) : (e.$flags$ |= 1, a.$flags$ & 12 && mt(t), a.$members$ && Object.entries(a.$members$).map(([r, [n]]) => {
443
- if (n & 31 && t.hasOwnProperty(r)) {
444
- const i = t[r];
445
- delete t[r], t[r] = i;
450
+ if ((v.$flags$ & 1) === 0) {
451
+ const e = X(t), a = e.$cmpMeta$, r = M("connectedCallback", a.$tagName$);
452
+ e.$flags$ & 1 ? (Ne(t, e, a.$listeners$), $t(e.$lazyInstance$)) : (e.$flags$ |= 1, a.$flags$ & 12 && mt(t), a.$members$ && Object.entries(a.$members$).map(([s, [n]]) => {
453
+ if (n & 31 && t.hasOwnProperty(s)) {
454
+ const i = t[s];
455
+ delete t[s], t[s] = i;
446
456
  }
447
- }), bt(t, e, a)), s();
457
+ }), bt(t, e, a)), r();
448
458
  }
449
459
  }, mt = (t) => {
450
460
  const e = t["s-cr"] = m.createComment("");
451
461
  e["s-cn"] = !0, t.insertBefore(e, t.firstChild);
452
462
  }, wt = (t) => {
453
- if ((k.$flags$ & 1) === 0) {
463
+ if ((v.$flags$ & 1) === 0) {
454
464
  const e = X(t);
455
465
  e.$rmListeners$ && (e.$rmListeners$.map((a) => a()), e.$rmListeners$ = void 0);
456
466
  }
@@ -460,16 +470,16 @@ const h = (t, e, ...a) => {
460
470
  $tagName$: e[1]
461
471
  };
462
472
  a.$members$ = e[2], a.$listeners$ = e[3], a.$watchers$ = t.$watchers$, a.$attrsToReflect$ = [];
463
- const s = t.prototype.connectedCallback, r = t.prototype.disconnectedCallback;
473
+ const r = t.prototype.connectedCallback, s = t.prototype.disconnectedCallback;
464
474
  return Object.assign(t.prototype, {
465
475
  __registerHost() {
466
476
  Mt(this, a);
467
477
  },
468
478
  connectedCallback() {
469
- _t(this), s && s.call(this);
479
+ _t(this), r && r.call(this);
470
480
  },
471
481
  disconnectedCallback() {
472
- wt(this), r && r.call(this);
482
+ wt(this), s && s.call(this);
473
483
  },
474
484
  __attachShadow() {
475
485
  this.attachShadow({
@@ -477,37 +487,37 @@ const h = (t, e, ...a) => {
477
487
  delegatesFocus: !!(a.$flags$ & 16)
478
488
  });
479
489
  }
480
- }), t.is = a.$tagName$, kt(t, a);
481
- }, Oe = (t, e, a, s) => {
482
- a && a.map(([r, n, i]) => {
483
- const o = St(t, r), c = xt(e, i), l = Ct(r);
484
- k.ael(o, n, c, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => k.rel(o, n, c, l));
490
+ }), t.is = a.$tagName$, vt(t, a);
491
+ }, Ne = (t, e, a, r) => {
492
+ a && a.map(([s, n, i]) => {
493
+ const o = St(t, s), c = xt(e, i), l = Ct(s);
494
+ v.ael(o, n, c, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => v.rel(o, n, c, l));
485
495
  });
486
496
  }, xt = (t, e) => (a) => {
487
497
  try {
488
498
  E.lazyLoad || t.$hostElement$[e](a);
489
- } catch (s) {
490
- F(s);
499
+ } catch (r) {
500
+ A(r);
491
501
  }
492
502
  }, St = (t, e) => e & 4 ? m : e & 8 ? J : e & 16 ? m.body : t, Ct = (t) => Et ? {
493
503
  passive: (t & 1) !== 0,
494
504
  capture: (t & 2) !== 0
495
- } : (t & 2) !== 0, Ne = /* @__PURE__ */ new WeakMap(), X = (t) => Ne.get(t), Mt = (t, e) => {
505
+ } : (t & 2) !== 0, Ie = /* @__PURE__ */ new WeakMap(), X = (t) => Ie.get(t), Mt = (t, e) => {
496
506
  const a = {
497
507
  $flags$: 0,
498
508
  $hostElement$: t,
499
509
  $cmpMeta$: e,
500
510
  $instanceValues$: /* @__PURE__ */ new Map()
501
511
  };
502
- return Oe(t, a, e.$listeners$), Ne.set(t, a);
503
- }, fe = (t, e) => e in t, F = (t, e) => (0, console.error)(t, e), K = /* @__PURE__ */ new Map(), Tt = [], J = typeof window < "u" ? window : {}, m = J.document || { head: {} }, Lt = J.HTMLElement || class {
504
- }, k = {
512
+ return Ne(t, a, e.$listeners$), Ie.set(t, a);
513
+ }, ye = (t, e) => e in t, A = (t, e) => (0, console.error)(t, e), K = /* @__PURE__ */ new Map(), Tt = [], J = typeof window < "u" ? window : {}, m = J.document || { head: {} }, Lt = J.HTMLElement || class {
514
+ }, v = {
505
515
  $flags$: 0,
506
516
  $resourcesUrl$: "",
507
517
  jmp: (t) => t(),
508
518
  raf: (t) => requestAnimationFrame(t),
509
- ael: (t, e, a, s) => t.addEventListener(e, a, s),
510
- rel: (t, e, a, s) => t.removeEventListener(e, a, s),
519
+ ael: (t, e, a, r) => t.addEventListener(e, a, r),
520
+ rel: (t, e, a, r) => t.removeEventListener(e, a, r),
511
521
  ce: (t, e) => new CustomEvent(t, e)
512
522
  }, Et = /* @__PURE__ */ (() => {
513
523
  let t = !1;
@@ -526,27 +536,27 @@ const h = (t, e, ...a) => {
526
536
  } catch {
527
537
  }
528
538
  return !1;
529
- })(), ye = [], Ie = [], Ot = (t, e) => (a) => {
530
- t.push(a), Z || (Z = !0, e && k.$flags$ & 4 ? Nt(V) : k.raf(V));
531
- }, ge = (t) => {
539
+ })(), ge = [], Fe = [], Ot = (t, e) => (a) => {
540
+ t.push(a), Z || (Z = !0, e && v.$flags$ & 4 ? Nt(V) : v.raf(V));
541
+ }, ke = (t) => {
532
542
  for (let e = 0; e < t.length; e++)
533
543
  try {
534
544
  t[e](performance.now());
535
545
  } catch (a) {
536
- F(a);
546
+ A(a);
537
547
  }
538
548
  t.length = 0;
539
549
  }, V = () => {
540
- ge(ye), ge(Ie), (Z = ye.length > 0) && k.raf(V);
541
- }, Nt = (t) => Bt().then(t), It = /* @__PURE__ */ Ot(Ie, !0);
550
+ ke(ge), ke(Fe), (Z = ge.length > 0) && v.raf(V);
551
+ }, Nt = (t) => Bt().then(t), It = /* @__PURE__ */ Ot(Fe, !0);
542
552
  function P(t, e) {
543
553
  const a = new Date(t);
544
554
  return a.setDate(a.getDate() + e), a;
545
555
  }
546
- function At(t, e, a) {
547
- const s = [], r = se(t), n = r.getDay() === 0 ? 7 : r.getDay(), i = U(t), o = i.getDay() === 0 ? 7 : i.getDay(), c = a === 1 ? 7 : a - 1, l = [], u = [];
556
+ function Ft(t, e, a) {
557
+ const r = [], s = re(t), n = s.getDay() === 0 ? 7 : s.getDay(), i = U(t), o = i.getDay() === 0 ? 7 : i.getDay(), c = a === 1 ? 7 : a - 1, l = [], u = [];
548
558
  {
549
- let g = (7 - a + n) % 7, $ = Q(r);
559
+ let g = (7 - a + n) % 7, $ = Q(s);
550
560
  for (; g > 0; )
551
561
  l.push($), $ = Q($), g -= 1;
552
562
  l.reverse();
@@ -554,31 +564,31 @@ function At(t, e, a) {
554
564
  for (; T > 0; )
555
565
  u.push(L), L = I(L), T -= 1;
556
566
  }
557
- let d = r;
567
+ let d = s;
558
568
  for (; d.getMonth() === t.getMonth(); )
559
- s.push(d), d = I(d);
560
- return [...l, ...s, ...u];
569
+ r.push(d), d = I(d);
570
+ return [...l, ...r, ...u];
561
571
  }
562
- function se(t) {
563
- return S(/* @__PURE__ */ new Date(`${String(Fe(t)).padStart(4, "0")}-${String(Ae(t)).padStart(2, "0")}-01`));
572
+ function re(t) {
573
+ return C(/* @__PURE__ */ new Date(`${String(qe(t)).padStart(4, "0")}-${String(Ae(t)).padStart(2, "0")}-01`));
564
574
  }
565
- function x(t) {
575
+ function S(t) {
566
576
  if (t instanceof Date)
567
577
  return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`;
568
578
  }
569
579
  function U(t) {
570
- const e = se(t);
580
+ const e = re(t);
571
581
  return e.setMonth(e.getMonth() + 1), e.setDate(e.getDate() - 1), e;
572
582
  }
573
583
  function Ae(t) {
574
584
  return t.getMonth() + 1;
575
585
  }
576
- function Ft(t) {
586
+ function At(t) {
577
587
  return new Array(12).fill(void 0).map((e, a) => {
578
- const s = S(/* @__PURE__ */ new Date(`2006-${String(a + 1).padStart(2, "0")}-01`));
588
+ const r = C(/* @__PURE__ */ new Date(`2006-${String(a + 1).padStart(2, "0")}-01`));
579
589
  return Intl.DateTimeFormat(t, {
580
590
  month: "long"
581
- }).format(s);
591
+ }).format(r);
582
592
  });
583
593
  }
584
594
  function I(t) {
@@ -588,47 +598,47 @@ function ve(t) {
588
598
  const e = new Date(t);
589
599
  return e.setDate(1), e.setMonth(e.getMonth() + 1), e;
590
600
  }
591
- function ke(t) {
601
+ function be(t) {
592
602
  const e = new Date(t);
593
603
  return e.setFullYear(e.getFullYear() + 1), e;
594
604
  }
595
605
  function Q(t) {
596
606
  return W(t, 1);
597
607
  }
598
- function be(t) {
608
+ function $e(t) {
599
609
  const e = new Date(t);
600
610
  return e.setDate(1), e.setMonth(e.getMonth() - 1), e;
601
611
  }
602
- function $e(t) {
612
+ function _e(t) {
603
613
  const e = new Date(t);
604
614
  return e.setFullYear(e.getFullYear() - 1), e;
605
615
  }
606
616
  function qt(t, e) {
607
- return new Array(7).fill(void 0).map((a, s) => (t + s) % 7 + 1).map((a) => {
608
- const s = S(/* @__PURE__ */ new Date(`2006-01-0${a}`));
617
+ return new Array(7).fill(void 0).map((a, r) => (t + r) % 7 + 1).map((a) => {
618
+ const r = C(/* @__PURE__ */ new Date(`2006-01-0${a}`));
609
619
  return [
610
620
  Intl.DateTimeFormat(e, {
611
621
  weekday: "short"
612
- }).format(s).slice(0, 3),
622
+ }).format(r).slice(0, 3),
613
623
  Intl.DateTimeFormat(e, {
614
624
  weekday: "long"
615
- }).format(s)
625
+ }).format(r)
616
626
  ];
617
627
  });
618
628
  }
619
- function Fe(t) {
629
+ function qe(t) {
620
630
  return t.getFullYear();
621
631
  }
622
- function _e(t, e) {
632
+ function me(t, e) {
623
633
  if (!t || !e || !e.from || !e.to)
624
634
  return !1;
625
- const a = e.from < e.to ? e.from : e.to, s = e.from < e.to ? e.to : e.from;
626
- return t >= a && t <= s;
635
+ const a = e.from < e.to ? e.from : e.to, r = e.from < e.to ? e.to : e.from;
636
+ return t >= a && t <= r;
627
637
  }
628
638
  function w(t, e) {
629
639
  return !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
630
640
  }
631
- function S(t) {
641
+ function C(t) {
632
642
  const e = new Date(t);
633
643
  return e.setMinutes(e.getMinutes() + e.getTimezoneOffset()), e;
634
644
  }
@@ -648,10 +658,10 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
648
658
  yearSelect: "Select year"
649
659
  }, Ut = /* @__PURE__ */ Dt(class extends Lt {
650
660
  constructor() {
651
- super(), this.__registerHost(), this.selectDate = ce(this, "selectDate"), this.changeMonth = ce(this, "changeMonth"), this.disabled = !1, this.disableDate = () => !1, this.elementClassName = "wc-datepicker", this.firstDayOfWeek = 0, this.labels = Pt, this.locale = navigator?.language || "en-US", this.showClearButton = !1, this.showMonthStepper = !0, this.showTodayButton = !1, this.showYearStepper = !1, this.startDate = x(/* @__PURE__ */ new Date()), this.maxSearchDays = 365, this.goToRangeStartOnSelect = !0, this.init = () => {
652
- this.currentDate = this.startDate ? S(new Date(this.startDate)) : /* @__PURE__ */ new Date(), this.updateWeekdays();
661
+ super(), this.__registerHost(), this.selectDate = le(this, "selectDate"), this.changeMonth = le(this, "changeMonth"), this.disabled = !1, this.disableDate = () => !1, this.elementClassName = "wc-datepicker", this.firstDayOfWeek = 0, this.labels = Pt, this.locale = navigator?.language || "en-US", this.showClearButton = !1, this.showMonthStepper = !0, this.showTodayButton = !1, this.showYearStepper = !1, this.startDate = S(/* @__PURE__ */ new Date()), this.maxSearchDays = 365, this.goToRangeStartOnSelect = !0, this.init = () => {
662
+ this.currentDate = this.startDate ? C(new Date(this.startDate)) : /* @__PURE__ */ new Date(), this.updateWeekdays();
653
663
  }, this.getAvailableDate = (t, e) => {
654
- let a, s = !1;
664
+ let a, r = !1;
655
665
  switch (e) {
656
666
  case "previousDay":
657
667
  a = Q(t);
@@ -666,25 +676,25 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
666
676
  a = P(t, 7);
667
677
  break;
668
678
  case "firstOfMonth":
669
- a = se(t);
679
+ a = re(t);
670
680
  break;
671
681
  case "lastOfMonth":
672
682
  a = U(t);
673
683
  break;
674
684
  case "previousMonth":
675
- a = be(t);
685
+ a = $e(t);
676
686
  break;
677
687
  case "nextMonth":
678
688
  a = ve(t);
679
689
  break;
680
690
  case "previousYear":
681
- a = $e(t);
691
+ a = _e(t);
682
692
  break;
683
693
  case "nextYear":
684
- a = ke(t);
694
+ a = be(t);
685
695
  break;
686
696
  }
687
- for (; this.disableDate(a) && !s; ) {
697
+ for (; this.disableDate(a) && !r; ) {
688
698
  switch (e) {
689
699
  case "previousDay":
690
700
  case "lastOfMonth":
@@ -710,31 +720,31 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
710
720
  case "lastOfMonth":
711
721
  case "previousYear":
712
722
  case "nextYear":
713
- s = a.getMonth() !== t.getMonth();
723
+ r = a.getMonth() !== t.getMonth();
714
724
  break;
715
725
  case "previousMonth":
716
- s = a.getMonth() !== t.getMonth() - 1;
726
+ r = a.getMonth() !== t.getMonth() - 1;
717
727
  break;
718
728
  case "nextMonth":
719
- s = a.getMonth() !== t.getMonth() + 1;
729
+ r = a.getMonth() !== t.getMonth() + 1;
720
730
  break;
721
731
  default:
722
- s = !_e(a, {
732
+ r = !me(a, {
723
733
  from: W(t, this.maxSearchDays),
724
734
  to: P(t, this.maxSearchDays)
725
735
  });
726
736
  break;
727
737
  }
728
738
  }
729
- return s ? t : a;
739
+ return r ? t : a;
730
740
  }, this.nextMonth = () => {
731
741
  this.updateCurrentDate(ve(this.currentDate));
732
742
  }, this.nextYear = () => {
733
- this.updateCurrentDate(ke(this.currentDate));
734
- }, this.previousMonth = () => {
735
743
  this.updateCurrentDate(be(this.currentDate));
736
- }, this.previousYear = () => {
744
+ }, this.previousMonth = () => {
737
745
  this.updateCurrentDate($e(this.currentDate));
746
+ }, this.previousYear = () => {
747
+ this.updateCurrentDate(_e(this.currentDate));
738
748
  }, this.showToday = () => {
739
749
  this.updateCurrentDate(/* @__PURE__ */ new Date());
740
750
  }, this.clear = () => {
@@ -745,25 +755,25 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
745
755
  const e = t.target.closest("[data-date]");
746
756
  if (!e)
747
757
  return;
748
- const a = S(new Date(e.dataset.date));
758
+ const a = C(new Date(e.dataset.date));
749
759
  this.updateCurrentDate(a), this.onSelectDate(a);
750
760
  }, this.onMonthSelect = (t) => {
751
- const e = +t.target.value - 1, a = this.currentDate.getDate(), s = new Date(this.currentDate.getFullYear(), e, 1), r = U(s).getDate(), n = Math.min(a, r), i = new Date(this.currentDate.getFullYear(), e, n);
761
+ const e = +t.target.value - 1, a = this.currentDate.getDate(), r = new Date(this.currentDate.getFullYear(), e, 1), s = U(r).getDate(), n = Math.min(a, s), i = new Date(this.currentDate.getFullYear(), e, n);
752
762
  this.updateCurrentDate(i);
753
763
  }, this.onYearSelect = (t) => {
754
764
  let e = +t.target.value;
755
765
  const a = t.target;
756
766
  isNaN(e) ? (e = (/* @__PURE__ */ new Date()).getFullYear(), a.value = String(e)) : e < 0 ? (e = 0, a.value = String(e)) : e > 9999 && (e = 9999, a.value = String(e));
757
- const s = this.currentDate.getDate(), r = this.currentDate.getMonth(), n = /* @__PURE__ */ new Date();
758
- n.setFullYear(e, r, 1);
759
- const i = U(n).getDate(), o = Math.min(s, i), c = /* @__PURE__ */ new Date();
760
- c.setFullYear(e, r, o), this.updateCurrentDate(c);
767
+ const r = this.currentDate.getDate(), s = this.currentDate.getMonth(), n = /* @__PURE__ */ new Date();
768
+ n.setFullYear(e, s, 1);
769
+ const i = U(n).getDate(), o = Math.min(r, i), c = /* @__PURE__ */ new Date();
770
+ c.setFullYear(e, s, o), this.updateCurrentDate(c);
761
771
  }, this.onKeyDown = (t) => {
762
772
  this.disabled || (t.code === "ArrowLeft" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousDay"), !0)) : t.code === "ArrowRight" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextDay"), !0)) : t.code === "ArrowUp" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousSameWeekDay"), !0)) : t.code === "ArrowDown" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextSameWeekDay"), !0)) : t.code === "PageUp" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousYear"), !0) : this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousMonth"), !0)) : t.code === "PageDown" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextYear"), !0) : this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextMonth"), !0)) : t.code === "Home" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "firstOfMonth"), !0)) : t.code === "End" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "lastOfMonth"), !0)) : (t.code === "Space" || t.code === "Enter") && (t.preventDefault(), this.onSelectDate(this.currentDate)));
763
773
  }, this.onMouseEnter = (t) => {
764
774
  if (this.disabled)
765
775
  return;
766
- const e = S(new Date(t.target.closest("td").dataset.date));
776
+ const e = C(new Date(t.target.closest("td").dataset.date));
767
777
  this.hoveredDate = e;
768
778
  }, this.onMouseLeave = () => {
769
779
  this.hoveredDate = void 0;
@@ -785,7 +795,7 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
785
795
  this.value = void 0, this.selectDate.emit(void 0);
786
796
  }
787
797
  watchStartDate() {
788
- this.currentDate = this.startDate ? S(new Date(this.startDate)) : /* @__PURE__ */ new Date();
798
+ this.currentDate = this.startDate ? C(new Date(this.startDate)) : /* @__PURE__ */ new Date();
789
799
  }
790
800
  watchValue() {
791
801
  this.value && (Array.isArray(this.value) ? this.currentDate = this.value.length > 1 && !this.goToRangeStartOnSelect ? this.value[1] : this.value[0] : this.value instanceof Date && (this.currentDate = this.value));
@@ -800,10 +810,10 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
800
810
  return t ? `${this.elementClassName}__${t}` : this.elementClassName;
801
811
  }
802
812
  getCalendarRows() {
803
- const t = At(this.currentDate, !0, this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek), e = [];
813
+ const t = Ft(this.currentDate, !0, this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek), e = [];
804
814
  for (let a = 0; a < t.length; a += 7) {
805
- const s = t.slice(a, a + 7);
806
- e.push(s);
815
+ const r = t.slice(a, a + 7);
816
+ e.push(r);
807
817
  }
808
818
  return e;
809
819
  }
@@ -829,15 +839,15 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
829
839
  }
830
840
  focusDate(t) {
831
841
  var e;
832
- (e = this.el.querySelector(`[data-date="${x(t)}"]`)) === null || e === void 0 || e.focus();
842
+ (e = this.el.querySelector(`[data-date="${S(t)}"]`)) === null || e === void 0 || e.focus();
833
843
  }
834
844
  updateCurrentDate(t, e) {
835
- const a = t.getMonth(), s = t.getFullYear();
836
- if (s > 9999 || s < 0)
845
+ const a = t.getMonth(), r = t.getFullYear();
846
+ if (r > 9999 || r < 0)
837
847
  return;
838
- (a !== this.currentDate.getMonth() || s !== this.currentDate.getFullYear()) && (this.changeMonth.emit({
848
+ (a !== this.currentDate.getMonth() || r !== this.currentDate.getFullYear()) && (this.changeMonth.emit({
839
849
  month: Ae(t),
840
- year: Fe(t),
850
+ year: qe(t),
841
851
  day: t.getDate()
842
852
  }), e && (this.moveFocusAfterMonthChanged = !0)), this.currentDate = t, e && this.focusDate(this.currentDate);
843
853
  }
@@ -845,14 +855,14 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
845
855
  var e, a;
846
856
  if (!this.disableDate(t))
847
857
  if (this.isRangeValue(this.value)) {
848
- const s = ((e = this.value) === null || e === void 0 ? void 0 : e[0]) === void 0 || this.value.length === 2 ? [t] : [this.value[0], t];
849
- s.length === 2 && s[0] > s[1] && s.reverse();
850
- const r = s[1] === void 0 ? [x(s[0])] : [x(s[0]), x(s[1])];
851
- this.value = s, this.selectDate.emit(r);
858
+ const r = ((e = this.value) === null || e === void 0 ? void 0 : e[0]) === void 0 || this.value.length === 2 ? [t] : [this.value[0], t];
859
+ r.length === 2 && r[0] > r[1] && r.reverse();
860
+ const s = r[1] === void 0 ? [S(r[0])] : [S(r[0]), S(r[1])];
861
+ this.value = r, this.selectDate.emit(s);
852
862
  } else {
853
863
  if (((a = this.value) === null || a === void 0 ? void 0 : a.getTime()) === t.getTime())
854
864
  return;
855
- this.value = t, this.selectDate.emit(x(t));
865
+ this.value = t, this.selectDate.emit(S(t));
856
866
  }
857
867
  }
858
868
  // @ts-ignore
@@ -861,20 +871,20 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
861
871
  }
862
872
  render() {
863
873
  const t = this.showTodayButton || this.showClearButton;
864
- return h(De, null, h("div", { "aria-disabled": String(this.disabled), "aria-label": this.labels.picker, class: {
874
+ return h(xe, null, h("div", { "aria-disabled": String(this.disabled), "aria-label": this.labels.picker, class: {
865
875
  [this.getClassName()]: !0,
866
876
  [`${this.getClassName()}--disabled`]: this.disabled
867
- }, role: "group" }, h("div", { class: this.getClassName("header") }, h("span", { "aria-atomic": "true", "aria-live": "polite", class: "visually-hidden" }, this.getTitle()), this.showYearStepper && h("button", { "aria-label": this.labels.previousYearButton, class: this.getClassName("previous-year-button"), disabled: this.disabled, innerHTML: this.previousYearButtonContent || void 0, onClick: this.previousYear, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "11 17 6 12 11 7" }), h("polyline", { points: "18 17 13 12 18 7" }))), this.showMonthStepper && h("button", { "aria-label": this.labels.previousMonthButton, class: this.getClassName("previous-month-button"), disabled: this.disabled, innerHTML: this.previousMonthButtonContent || void 0, onClick: this.previousMonth, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "15 18 9 12 15 6" }))), h("span", { class: this.getClassName("current-month") }, h("select", { title: this.labels.monthSelect, "aria-label": this.labels.monthSelect, class: this.getClassName("month-select"), disabled: this.disabled, name: "month", onChange: this.onMonthSelect }, Ft(this.locale).map((e, a) => h("option", { key: e, selected: this.currentDate.getMonth() === a, value: a + 1 }, e))), h("input", { title: this.labels.yearSelect, "aria-label": this.labels.yearSelect, class: this.getClassName("year-select"), disabled: this.disabled, max: 9999, maxLength: 4, min: 1, name: "year", onChange: this.onYearSelect, type: "number", value: this.currentDate.getFullYear() })), this.showMonthStepper && h("button", { "aria-label": this.labels.nextMonthButton, class: this.getClassName("next-month-button"), disabled: this.disabled, innerHTML: this.nextMonthButtonContent || void 0, onClick: this.nextMonth, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "9 18 15 12 9 6" }))), this.showYearStepper && h("button", { "aria-label": this.labels.nextYearButton, class: this.getClassName("next-year-button"), disabled: this.disabled, innerHTML: this.nextYearButtonContent || void 0, onClick: this.nextYear, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "13 17 18 12 13 7" }), h("polyline", { points: "6 17 11 12 6 7" })))), h("div", { class: this.getClassName("body") }, h("table", { class: this.getClassName("calendar"), onKeyDown: this.onKeyDown, role: "grid" }, h("thead", { class: this.getClassName("calendar-header") }, h("tr", { class: this.getClassName("weekday-row") }, this.weekdays.map((e) => h("th", { "aria-label": e[1], abbr: e[1], class: this.getClassName("weekday"), key: e[0], scope: "col" }, h("span", null, e[0]))))), h("tbody", null, this.getCalendarRows().map((e) => {
877
+ }, role: "group" }, h("div", { class: this.getClassName("header") }, h("span", { "aria-atomic": "true", "aria-live": "polite", class: "visually-hidden" }, this.getTitle()), this.showYearStepper && h("button", { "aria-label": this.labels.previousYearButton, class: this.getClassName("previous-year-button"), disabled: this.disabled, innerHTML: this.previousYearButtonContent || void 0, onClick: this.previousYear, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "11 17 6 12 11 7" }), h("polyline", { points: "18 17 13 12 18 7" }))), this.showMonthStepper && h("button", { "aria-label": this.labels.previousMonthButton, class: this.getClassName("previous-month-button"), disabled: this.disabled, innerHTML: this.previousMonthButtonContent || void 0, onClick: this.previousMonth, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "15 18 9 12 15 6" }))), h("span", { class: this.getClassName("current-month") }, h("select", { title: this.labels.monthSelect, "aria-label": this.labels.monthSelect, class: this.getClassName("month-select"), disabled: this.disabled, name: "month", onChange: this.onMonthSelect }, At(this.locale).map((e, a) => h("option", { key: e, selected: this.currentDate.getMonth() === a, value: a + 1 }, e))), h("input", { title: this.labels.yearSelect, "aria-label": this.labels.yearSelect, class: this.getClassName("year-select"), disabled: this.disabled, max: 9999, maxLength: 4, min: 1, name: "year", onChange: this.onYearSelect, type: "number", value: this.currentDate.getFullYear() })), this.showMonthStepper && h("button", { "aria-label": this.labels.nextMonthButton, class: this.getClassName("next-month-button"), disabled: this.disabled, innerHTML: this.nextMonthButtonContent || void 0, onClick: this.nextMonth, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "9 18 15 12 9 6" }))), this.showYearStepper && h("button", { "aria-label": this.labels.nextYearButton, class: this.getClassName("next-year-button"), disabled: this.disabled, innerHTML: this.nextYearButtonContent || void 0, onClick: this.nextYear, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "13 17 18 12 13 7" }), h("polyline", { points: "6 17 11 12 6 7" })))), h("div", { class: this.getClassName("body") }, h("table", { class: this.getClassName("calendar"), onKeyDown: this.onKeyDown, role: "grid" }, h("thead", { class: this.getClassName("calendar-header") }, h("tr", { class: this.getClassName("weekday-row") }, this.weekdays.map((e) => h("th", { "aria-label": e[1], abbr: e[1], class: this.getClassName("weekday"), key: e[0], scope: "col" }, h("span", null, e[0]))))), h("tbody", null, this.getCalendarRows().map((e) => {
868
878
  const a = `row-${e[0].getMonth()}-${e[0].getDate()}`;
869
- return h("tr", { class: this.getClassName("calendar-row"), key: a }, e.map((s) => {
870
- var r, n, i, o, c;
871
- const l = w(s, this.currentDate), u = s.getMonth() !== this.currentDate.getMonth(), d = Array.isArray(this.value) ? w(s, this.value[0]) || w(s, this.value[1]) : w(s, this.value), p = this.isRangeValue ? _e(s, {
872
- from: (r = this.value) === null || r === void 0 ? void 0 : r[0],
879
+ return h("tr", { class: this.getClassName("calendar-row"), key: a }, e.map((r) => {
880
+ var s, n, i, o, c;
881
+ const l = w(r, this.currentDate), u = r.getMonth() !== this.currentDate.getMonth(), d = Array.isArray(this.value) ? w(r, this.value[0]) || w(r, this.value[1]) : w(r, this.value), p = this.isRangeValue ? me(r, {
882
+ from: (s = this.value) === null || s === void 0 ? void 0 : s[0],
873
883
  to: ((n = this.value) === null || n === void 0 ? void 0 : n[1]) || this.hoveredDate || this.currentDate
874
884
  }) : !1, g = !((i = this.value) === null || i === void 0) && i[0] ? [
875
885
  (o = this.value) === null || o === void 0 ? void 0 : o[0],
876
886
  ((c = this.value) === null || c === void 0 ? void 0 : c[1]) || this.hoveredDate
877
- ].sort((Ue, We) => Ue - We) : [], $ = this.range && w(g[0], s), D = this.range && w(g[1], s), T = w(s, /* @__PURE__ */ new Date()), L = this.disableDate(s), qe = `cell-${s.getMonth()}-${s.getDate()}`, Ye = {
887
+ ].sort((We, ze) => We - ze) : [], $ = this.range && w(g[0], r), x = this.range && w(g[1], r), T = w(r, /* @__PURE__ */ new Date()), L = this.disableDate(r), Ye = `cell-${r.getMonth()}-${r.getDate()}`, Pe = {
878
888
  [this.getClassName("date")]: !0,
879
889
  [this.getClassName("date--current")]: l,
880
890
  [this.getClassName("date--disabled")]: L,
@@ -883,13 +893,13 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
883
893
  [this.getClassName("date--selected")]: d,
884
894
  [this.getClassName("date--in-range")]: p,
885
895
  [this.getClassName("date--start")]: $,
886
- [this.getClassName("date--end")]: D
887
- }, Pe = d ? "strong" : T ? "em" : "span";
888
- return h("td", { "aria-disabled": String(L), "aria-selected": d ? "true" : void 0, "aria-current": T ? "date" : d ? "true" : void 0, class: Ye, "data-date": x(s), key: qe, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onFocus: this.onFocus, role: "gridcell", tabIndex: w(s, this.currentDate) && !this.disabled ? 0 : -1 }, h(Pe, { "aria-hidden": "true" }, s.getDate()), h("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
896
+ [this.getClassName("date--end")]: x
897
+ }, Ue = d ? "strong" : T ? "em" : "span";
898
+ return h("td", { "aria-disabled": String(L), "aria-selected": d ? "true" : void 0, "aria-current": T ? "date" : d ? "true" : void 0, class: Pe, "data-date": S(r), key: Ye, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onFocus: this.onFocus, role: "gridcell", tabIndex: w(r, this.currentDate) && !this.disabled ? 0 : -1 }, h(Ue, { "aria-hidden": "true" }, r.getDate()), h("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
889
899
  day: "numeric",
890
900
  month: "long",
891
901
  year: "numeric"
892
- }).format(s)));
902
+ }).format(r)));
893
903
  }));
894
904
  })))), t && h("div", { class: this.getClassName("footer") }, this.showTodayButton && h("button", { class: this.getClassName("today-button"), disabled: this.disabled, innerHTML: this.todayButtonContent || void 0, onClick: this.showToday, type: "button" }, this.labels.todayButton), this.showClearButton && h("button", { class: this.getClassName("clear-button"), disabled: this.disabled, innerHTML: this.clearButtonContent || void 0, onClick: this.clear, type: "button" }, this.labels.clearButton))));
895
905
  }
@@ -934,15 +944,15 @@ const Yt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
934
944
  hoveredDate: [32],
935
945
  weekdays: [32]
936
946
  }]), Wt = Ut;
937
- var zt = Object.defineProperty, y = (t, e, a, s) => {
938
- for (var r = void 0, n = t.length - 1, i; n >= 0; n--)
939
- (i = t[n]) && (r = i(e, a, r) || r);
940
- return r && zt(e, a, r), r;
947
+ var zt = Object.defineProperty, y = (t, e, a, r) => {
948
+ for (var s = void 0, n = t.length - 1, i; n >= 0; n--)
949
+ (i = t[n]) && (s = i(e, a, s) || s);
950
+ return s && zt(e, a, s), s;
941
951
  };
942
952
  customElements.get("wc-datepicker") || customElements.define("wc-datepicker", Wt);
943
953
  let jt = 0;
944
- var C;
945
- const f = (C = class extends ze {
954
+ var D;
955
+ const f = (D = class extends se {
946
956
  // allows use of elementInternals' API
947
957
  constructor() {
948
958
  super(), this.id = "", this.name = "", this.width = "md", this.hideTodayButton = !1, this.hideClearButton = !1, this.disabled = !1, this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.form = null, this.tooltip = "", this.type = "date", this.label = "", this.description = "", this.startDate = "", this.inverted = !1, this.value = void 0, this.datepickerIsOpen = !1, this._hasUserInteracted = !1, this._onKeydownEsc = (e) => {
@@ -985,14 +995,14 @@ const f = (C = class extends ze {
985
995
  this.value = void 0, this._internals.setFormValue(""), this._manageRequire();
986
996
  return;
987
997
  }
988
- const a = e instanceof Date ? e : this._parseLocalDate(e), s = [
998
+ const a = e instanceof Date ? e : this._parseLocalDate(e), r = [
989
999
  a.getFullYear(),
990
1000
  String(a.getMonth() + 1).padStart(2, "0"),
991
1001
  String(a.getDate()).padStart(2, "0")
992
1002
  ].join("-");
993
- this.value = a, this._internals.setFormValue(s);
994
- const r = this.shadowRoot?.querySelector("input");
995
- r && (r.value = s);
1003
+ this.value = a, this._internals.setFormValue(r);
1004
+ const s = this.shadowRoot?.querySelector("input");
1005
+ s && (s.value = r);
996
1006
  const n = this.shadowRoot?.querySelector("wc-datepicker");
997
1007
  n && (n.value = a), this._manageRequire();
998
1008
  }
@@ -1041,8 +1051,8 @@ const f = (C = class extends ze {
1041
1051
  e.preventDefault(), this._hasUserInteracted = !0, this._validate();
1042
1052
  const a = this.shadowRoot?.querySelector("input");
1043
1053
  if (a) {
1044
- const s = this._internals.form;
1045
- s ? Array.from(s.elements).find(
1054
+ const r = this._internals.form;
1055
+ r ? Array.from(r.elements).find(
1046
1056
  (i) => typeof i.checkValidity == "function" && !i.checkValidity()
1047
1057
  ) === this && a.focus() : a.focus();
1048
1058
  }
@@ -1060,10 +1070,10 @@ const f = (C = class extends ze {
1060
1070
  if (!e) return;
1061
1071
  const a = e.querySelector(
1062
1072
  ".wc-datepicker__next-month-button"
1063
- ), s = e.querySelector(
1073
+ ), r = e.querySelector(
1064
1074
  ".wc-datepicker__previous-month-button"
1065
1075
  );
1066
- !a || !s || (s.innerHTML = `
1076
+ !a || !r || (r.innerHTML = `
1067
1077
  <nys-icon name="arrow_back" size="18"></nys-icon>
1068
1078
  `, a.innerHTML = `
1069
1079
  <nys-icon name="arrow_forward" size="18"></nys-icon>
@@ -1076,36 +1086,44 @@ const f = (C = class extends ze {
1076
1086
  ".wc-datepicker__month-select"
1077
1087
  );
1078
1088
  if (a && !a.parentElement?.classList.contains("month-wrapper")) {
1079
- const s = document.createElement("span");
1080
- s.className = "month-wrapper", a.parentNode?.insertBefore(s, a), s.appendChild(a);
1081
- const r = document.createElement("nys-icon");
1082
- r.setAttribute("name", "chevron_down"), r.setAttribute("id", "wc-month-dropdown-icon"), r.setAttribute("size", "20"), s.appendChild(r);
1089
+ const r = document.createElement("span");
1090
+ r.className = "month-wrapper", a.parentNode?.insertBefore(r, a), r.appendChild(a);
1091
+ const s = document.createElement("nys-icon");
1092
+ s.setAttribute("name", "chevron_down"), s.setAttribute("id", "wc-month-dropdown-icon"), s.setAttribute("size", "20"), r.appendChild(s);
1083
1093
  }
1084
1094
  }
1085
1095
  // Creates a Date at local midnight to avoid UTC timezone shifting
1086
1096
  _parseLocalDate(e) {
1087
- const [a, s, r] = e.split("-").map(Number);
1088
- return new Date(a, s - 1, r);
1097
+ const [a, r, s] = e.split("-").map(Number);
1098
+ return new Date(a, r - 1, s);
1089
1099
  }
1090
1100
  _setTodayDate() {
1091
1101
  const e = /* @__PURE__ */ new Date();
1092
- e.setHours(0, 0, 0, 0), this._setValue(e);
1102
+ e.setHours(0, 0, 0, 0), this._setValue(e), this._setFocusOnTodayDate();
1093
1103
  }
1094
1104
  async _setFocusOnTodayDate(e = !1) {
1095
1105
  const a = /* @__PURE__ */ new Date();
1096
1106
  a.setHours(0, 0, 0, 0);
1097
- const s = [
1107
+ const r = [
1098
1108
  a.getFullYear(),
1099
1109
  String(a.getMonth() + 1).padStart(2, "0"),
1100
1110
  String(a.getDate()).padStart(2, "0")
1101
- ].join("-"), r = this.shadowRoot?.querySelector("wc-datepicker");
1102
- if (!r) return;
1103
- r.value = a;
1104
- const n = r.querySelector(
1105
- `td[data-date="${s}"]`
1111
+ ].join("-"), s = this.shadowRoot?.querySelector("wc-datepicker");
1112
+ if (!s) return;
1113
+ const n = s.querySelector(
1114
+ `td[data-date="${r}"]`
1106
1115
  );
1107
1116
  n && (e || n.focus());
1108
1117
  }
1118
+ _dispatchInputEvent() {
1119
+ this.dispatchEvent(
1120
+ new CustomEvent("nys-input", {
1121
+ detail: { id: this.id, value: this.value },
1122
+ bubbles: !0,
1123
+ composed: !0
1124
+ })
1125
+ );
1126
+ }
1109
1127
  /**
1110
1128
  * Event Handlers
1111
1129
  * --------------------------------------------------------------------------
@@ -1116,28 +1134,30 @@ const f = (C = class extends ze {
1116
1134
  _handleBlur(e) {
1117
1135
  const a = e.relatedTarget;
1118
1136
  if (a && (this.contains(a) || this.shadowRoot?.contains(a))) return;
1119
- this._hasUserInteracted || (this._hasUserInteracted = !0), this.shadowRoot?.querySelector("wc-datepicker")?.classList.remove("active"), this.datepickerIsOpen = !1, this._validate(), this.dispatchEvent(new Event("nys-blur")), this.removeEventListener("keydown", this._handleFocusTrap);
1137
+ this._hasUserInteracted || (this._hasUserInteracted = !0), this.shadowRoot?.querySelector("wc-datepicker")?.classList.remove("active"), this.datepickerIsOpen = !1, this._validate(), this.dispatchEvent(
1138
+ new Event("nys-blur", { bubbles: !0, composed: !0 })
1139
+ ), this.removeEventListener("keydown", this._handleFocusTrap);
1120
1140
  }
1121
1141
  // For when users click outside of the datepicker, we remove the calendar popup
1122
1142
  _onDocumentClick() {
1123
1143
  if (this._shouldUseNativeDatepicker()) return;
1124
1144
  const e = (a) => {
1125
- const s = a.composedPath(), r = this.shadowRoot?.querySelector(
1145
+ const r = a.composedPath(), s = this.shadowRoot?.querySelector(
1126
1146
  ".nys-datepicker--input-container"
1127
1147
  ), n = this.shadowRoot?.querySelector(
1128
1148
  ".wc-datepicker--container"
1129
1149
  ), i = this.shadowRoot?.querySelector("wc-datepicker");
1130
- r && s.includes(r) || n && s.includes(n) || i && s.includes(i) || i?.classList.remove("active");
1150
+ s && r.includes(s) || n && r.includes(n) || i && r.includes(i) || i?.classList.remove("active");
1131
1151
  };
1132
1152
  document.addEventListener("click", e);
1133
1153
  }
1134
1154
  _toggleDatepicker() {
1135
1155
  if (this.disabled) return;
1136
1156
  if (this._shouldUseNativeDatepicker()) {
1137
- const s = this.shadowRoot?.querySelector(
1157
+ const r = this.shadowRoot?.querySelector(
1138
1158
  "input"
1139
1159
  );
1140
- s && s.focus();
1160
+ r && r.focus();
1141
1161
  return;
1142
1162
  }
1143
1163
  const a = this.shadowRoot?.querySelector("wc-datepicker")?.classList.toggle("active");
@@ -1151,8 +1171,8 @@ const f = (C = class extends ze {
1151
1171
  _handleDateChange() {
1152
1172
  const e = this.shadowRoot?.querySelector("wc-datepicker");
1153
1173
  e && e.addEventListener("selectDate", (a) => {
1154
- const s = a.detail, r = this._parseLocalDate(s);
1155
- this._setValue(r), this._validate(), e.classList.remove("active"), this.datepickerIsOpen = !1, this.removeEventListener("keydown", this._handleFocusTrap);
1174
+ const r = a.detail, s = this._parseLocalDate(r);
1175
+ this._setValue(s), this._validate(), this._dispatchInputEvent(), e.classList.remove("active"), this.datepickerIsOpen = !1, this.removeEventListener("keydown", this._handleFocusTrap);
1156
1176
  });
1157
1177
  }
1158
1178
  _handleTodayClick() {
@@ -1167,22 +1187,16 @@ const f = (C = class extends ze {
1167
1187
  _handleInputChange(e) {
1168
1188
  const a = e.target;
1169
1189
  if (!a) return;
1170
- const s = this._getValidDateFromInput(a.value);
1171
- if (!s) {
1190
+ const r = this._getValidDateFromInput(a.value);
1191
+ if (!r) {
1172
1192
  a.value || (this.value = void 0, this._internals.setFormValue(""), this._hasUserInteracted && this._validate());
1173
1193
  return;
1174
1194
  }
1175
- this._setValue(s), this._hasUserInteracted && this._validate(), this.dispatchEvent(
1176
- new CustomEvent("nys-input", {
1177
- detail: { id: this.id, value: this.value },
1178
- bubbles: !0,
1179
- composed: !0
1180
- })
1181
- );
1195
+ this._setValue(r), this._hasUserInteracted && this._validate(), this._dispatchInputEvent();
1182
1196
  }
1183
1197
  _getValidDateFromInput(e) {
1184
- const s = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
1185
- return !s || Number(s[1]) < 1e3 ? null : this._parseLocalDate(e);
1198
+ const r = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
1199
+ return !r || Number(r[1]) < 1e3 ? null : this._parseLocalDate(e);
1186
1200
  }
1187
1201
  _handleFocusTrap(e) {
1188
1202
  if (!this.datepickerIsOpen || e.key !== "Tab") return;
@@ -1190,20 +1204,20 @@ const f = (C = class extends ze {
1190
1204
  ".wc-datepicker--container"
1191
1205
  );
1192
1206
  if (!a) return;
1193
- const s = [
1207
+ const r = [
1194
1208
  "button:not([disabled])",
1195
1209
  "input:not([disabled])",
1196
1210
  "select:not([disabled])",
1197
1211
  "[tabindex]:not([tabindex='-1'])"
1198
- ], r = [];
1212
+ ], s = [];
1199
1213
  if (a.querySelectorAll("nys-button").forEach((c) => {
1200
- r.push(c);
1201
- }), r.push(
1214
+ s.push(c);
1215
+ }), s.push(
1202
1216
  ...Array.from(
1203
- a.querySelectorAll(s.join(","))
1217
+ a.querySelectorAll(r.join(","))
1204
1218
  ).filter((c) => c.offsetParent !== null)
1205
- ), r.length === 0) return;
1206
- const n = r[0], i = r[r.length - 1], o = this.shadowRoot?.activeElement;
1219
+ ), s.length === 0) return;
1220
+ const n = s[0], i = s[s.length - 1], o = this.shadowRoot?.activeElement;
1207
1221
  e.shiftKey ? o === n && (e.preventDefault(), i.focus()) : o === i && (e.preventDefault(), n.focus());
1208
1222
  }
1209
1223
  _isSafari() {
@@ -1314,60 +1328,63 @@ const f = (C = class extends ze {
1314
1328
  errorMessage=${this._internals.validationMessage || this.errorMessage}
1315
1329
  ></nys-errormessage>`;
1316
1330
  }
1317
- }, C.styles = je(Ke), C.formAssociated = !0, C);
1331
+ }, D.styles = je(Ke), D.shadowRootOptions = {
1332
+ ...se.shadowRootOptions,
1333
+ delegatesFocus: !0
1334
+ }, D.formAssociated = !0, D);
1318
1335
  y([
1319
- v({ type: String, reflect: !0 })
1336
+ k({ type: String, reflect: !0 })
1320
1337
  ], f.prototype, "id");
1321
1338
  y([
1322
- v({ type: String, reflect: !0 })
1339
+ k({ type: String, reflect: !0 })
1323
1340
  ], f.prototype, "name");
1324
1341
  y([
1325
- v({ type: String, reflect: !0 })
1342
+ k({ type: String, reflect: !0 })
1326
1343
  ], f.prototype, "width");
1327
1344
  y([
1328
- v({ type: Boolean })
1345
+ k({ type: Boolean })
1329
1346
  ], f.prototype, "hideTodayButton");
1330
1347
  y([
1331
- v({ type: Boolean })
1348
+ k({ type: Boolean })
1332
1349
  ], f.prototype, "hideClearButton");
1333
1350
  y([
1334
- v({ type: Boolean, reflect: !0 })
1351
+ k({ type: Boolean, reflect: !0 })
1335
1352
  ], f.prototype, "disabled");
1336
1353
  y([
1337
- v({ type: Boolean, reflect: !0 })
1354
+ k({ type: Boolean, reflect: !0 })
1338
1355
  ], f.prototype, "required");
1339
1356
  y([
1340
- v({ type: Boolean, reflect: !0 })
1357
+ k({ type: Boolean, reflect: !0 })
1341
1358
  ], f.prototype, "optional");
1342
1359
  y([
1343
- v({ type: Boolean, reflect: !0 })
1360
+ k({ type: Boolean, reflect: !0 })
1344
1361
  ], f.prototype, "showError");
1345
1362
  y([
1346
- v({ type: String })
1363
+ k({ type: String })
1347
1364
  ], f.prototype, "errorMessage");
1348
1365
  y([
1349
- v({ type: String, reflect: !0 })
1366
+ k({ type: String, reflect: !0 })
1350
1367
  ], f.prototype, "form");
1351
1368
  y([
1352
- v({ type: String })
1369
+ k({ type: String })
1353
1370
  ], f.prototype, "tooltip");
1354
1371
  y([
1355
- v({ type: String })
1372
+ k({ type: String })
1356
1373
  ], f.prototype, "type");
1357
1374
  y([
1358
- v({ type: String })
1375
+ k({ type: String })
1359
1376
  ], f.prototype, "label");
1360
1377
  y([
1361
- v({ type: String })
1378
+ k({ type: String })
1362
1379
  ], f.prototype, "description");
1363
1380
  y([
1364
- v({ type: String })
1381
+ k({ type: String })
1365
1382
  ], f.prototype, "startDate");
1366
1383
  y([
1367
- v({ type: Boolean, reflect: !0 })
1384
+ k({ type: Boolean, reflect: !0 })
1368
1385
  ], f.prototype, "inverted");
1369
1386
  y([
1370
- v({
1387
+ k({
1371
1388
  type: Object,
1372
1389
  converter: {
1373
1390
  fromAttribute: (t) => t ? f.prototype._parseLocalDate(t) : void 0,