@nylas/web-elements 1.1.0-canary.3 → 1.1.0-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/add-circle-icon.cjs.entry.js +1 -1
- package/dist/cjs/add-circle-icon_22.cjs.entry.js +20 -20
- package/dist/cjs/archive-icon.cjs.entry.js +1 -1
- package/dist/cjs/archive-icon_7.cjs.entry.js +7 -7
- package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
- package/dist/cjs/bold-icon.cjs.entry.js +1 -1
- package/dist/cjs/bold-icon_3.cjs.entry.js +3 -3
- package/dist/cjs/button-component.cjs.entry.js +1 -1
- package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-check-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-info-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-patterns-icon.cjs.entry.js +1 -1
- package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
- package/dist/cjs/chevron-icon.cjs.entry.js +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js +4 -4
- package/dist/cjs/close-icon.cjs.entry.js +1 -1
- package/dist/cjs/document-refresh-icon.cjs.entry.js +1 -1
- package/dist/cjs/flow-icon.cjs.entry.js +1 -1
- package/dist/cjs/folder-icon.cjs.entry.js +1 -1
- package/dist/cjs/forward-icon.cjs.entry.js +1 -1
- package/dist/cjs/forward-icon_6.cjs.entry.js +9 -9
- package/dist/cjs/globe-icon.cjs.entry.js +1 -1
- package/dist/cjs/google-logo-icon.cjs.entry.js +1 -1
- package/dist/cjs/{google-logo-icon_3.cjs.entry.js → google-logo-icon_4.cjs.entry.js} +137 -16
- package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -0
- package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
- package/dist/cjs/index-7af03e3f.js +6 -6
- package/dist/cjs/index-c14ea8f5.js +12 -8
- package/dist/cjs/index.cjs.js +3 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/{index.es-68425511.js → index.es-0a0f2d87.js} +9 -4
- package/dist/cjs/index.es-0a0f2d87.js.map +1 -0
- package/dist/cjs/{index.es-447c5aca.js → index.es-b12b7df1.js} +9 -4
- package/dist/cjs/index.es-b12b7df1.js.map +1 -0
- package/dist/cjs/info-icon.cjs.entry.js +1 -1
- package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/italic-icon.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-icon.cjs.entry.js +1 -1
- package/dist/cjs/location-icon.cjs.entry.js +1 -1
- package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
- package/dist/cjs/{mailbox-store-556bc7b6.js → mailbox-store-05fa3bec.js} +3 -3
- package/dist/cjs/{mailbox-store-556bc7b6.js.map → mailbox-store-05fa3bec.js.map} +1 -1
- package/dist/cjs/{mailbox-store-aacd75ff.js → mailbox-store-14531fd4.js} +3 -3
- package/dist/cjs/{mailbox-store-aacd75ff.js.map → mailbox-store-14531fd4.js.map} +1 -1
- package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
- package/dist/cjs/multi-select-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/nylas-additional-participants.cjs.entry.js +3 -3
- package/dist/cjs/{nylas-api-request-8ec3a89c.js → nylas-api-request-2a0e7022.js} +17 -7
- package/dist/cjs/nylas-api-request-2a0e7022.js.map +1 -0
- package/dist/cjs/{nylas-api-request-ab24150d.js → nylas-api-request-55923233.js} +17 -7
- package/dist/cjs/nylas-api-request-55923233.js.map +1 -0
- package/dist/cjs/nylas-availability-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-booked-event-card.cjs.entry.js +2 -2
- package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +6 -6
- package/dist/cjs/nylas-booking-calendar-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-booking-form.cjs.entry.js +2 -2
- package/dist/cjs/nylas-buffer-time.cjs.entry.js +2 -2
- package/dist/cjs/nylas-calendar-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +3 -3
- package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +3 -3
- package/dist/cjs/nylas-composer.cjs.entry.js +2 -2
- package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +3 -3
- package/dist/cjs/nylas-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js +25 -8
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-event-description.cjs.entry.js +2 -2
- package/dist/cjs/nylas-event-duration.cjs.entry.js +2 -2
- package/dist/cjs/nylas-event-info.cjs.entry.js +3 -3
- package/dist/cjs/nylas-event-limits.cjs.entry.js +3 -3
- package/dist/cjs/nylas-event-title.cjs.entry.js +2 -2
- package/dist/cjs/nylas-form-card.cjs.entry.js +3 -3
- package/dist/cjs/nylas-if-state.cjs.entry.js +2 -2
- package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +3 -3
- package/dist/cjs/nylas-list-configurations.cjs.entry.js +114 -0
- package/dist/cjs/nylas-list-configurations.cjs.entry.js.map +1 -0
- package/dist/cjs/nylas-list-folders.cjs.entry.js +3 -3
- package/dist/cjs/nylas-list-threads.cjs.entry.js +3 -3
- package/dist/cjs/nylas-locale-switch.cjs.entry.js +2 -2
- package/dist/cjs/nylas-location-component.cjs.entry.js +5 -5
- package/dist/cjs/nylas-login.cjs.entry.js +3 -3
- package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
- package/dist/cjs/nylas-mailbox-pagination.cjs.entry.js +2 -2
- package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +3 -3
- package/dist/cjs/nylas-mailbox.cjs.entry.js +4 -4
- package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +3 -3
- package/dist/cjs/nylas-notification.cjs.entry.js +2 -2
- package/dist/cjs/nylas-provider.cjs.entry.js +6 -6
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +207 -66
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +6 -6
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-selected-event-card.cjs.entry.js +2 -2
- package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +4 -4
- package/dist/cjs/nylas-threads-refresh.cjs.entry.js +4 -4
- package/dist/cjs/nylas-threads-search.cjs.entry.js +3 -3
- package/dist/cjs/nylas-time-window-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-timeslot-picker.cjs.entry.js +2 -2
- package/dist/cjs/nylas-view-email.cjs.entry.js +2 -2
- package/dist/cjs/nylas-view-thread.cjs.entry.js +3 -3
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/cjs/people-icon.cjs.entry.js +1 -1
- package/dist/cjs/play-icon.cjs.entry.js +1 -1
- package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
- package/dist/cjs/{register-component-d729f3f7.js → register-component-09ebdf31.js} +8 -2
- package/dist/cjs/register-component-09ebdf31.js.map +1 -0
- package/dist/cjs/{register-component-f1ebc65d.js → register-component-c8b6e907.js} +8 -2
- package/dist/cjs/register-component-c8b6e907.js.map +1 -0
- package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
- package/dist/cjs/reply-icon.cjs.entry.js +1 -1
- package/dist/cjs/{scheduler-config-store-9c2cc421.js → scheduler-config-store-4d93a9b7.js} +8 -1
- package/dist/cjs/scheduler-config-store-4d93a9b7.js.map +1 -0
- package/dist/cjs/{scheduler-config-store-31b83ad3.js → scheduler-config-store-a0e08cab.js} +8 -1
- package/dist/cjs/scheduler-config-store-a0e08cab.js.map +1 -0
- package/dist/cjs/{scheduler-store-7320f5d0.js → scheduler-store-a492526c.js} +2 -2
- package/dist/cjs/{scheduler-store-7320f5d0.js.map → scheduler-store-a492526c.js.map} +1 -1
- package/dist/cjs/{scheduler-store-4cb46b3c.js → scheduler-store-e148a4cc.js} +2 -2
- package/dist/cjs/{scheduler-store-4cb46b3c.js.map → scheduler-store-e148a4cc.js.map} +1 -1
- package/dist/cjs/search-icon.cjs.entry.js +1 -1
- package/dist/cjs/select-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/sent-icon.cjs.entry.js +1 -1
- package/dist/cjs/spam-icon.cjs.entry.js +1 -1
- package/dist/cjs/star-icon.cjs.entry.js +1 -1
- package/dist/cjs/stop-icon.cjs.entry.js +1 -1
- package/dist/cjs/time-period-selector.cjs.entry.js +2 -2
- package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
- package/dist/cjs/translate-icon.cjs.entry.js +1 -1
- package/dist/cjs/trash-icon.cjs.entry.js +1 -1
- package/dist/cjs/underline-icon.cjs.entry.js +1 -1
- package/dist/cjs/{utils-53dd7574.js → utils-20663d54.js} +19 -1
- package/dist/cjs/utils-20663d54.js.map +1 -0
- package/dist/cjs/{utils-53298b01.js → utils-2c7f0895.js} +19 -1
- package/dist/cjs/{utils-53298b01.js.map → utils-2c7f0895.js.map} +1 -1
- package/dist/cjs/warning-icon.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/common/abstract-provider.js +7 -2
- package/dist/collection/common/abstract-provider.js.map +1 -1
- package/dist/collection/common/component-types.js.map +1 -1
- package/dist/collection/common/icons/add-circle.js +1 -1
- package/dist/collection/common/icons/archive.js +1 -1
- package/dist/collection/common/icons/arrow.js +1 -1
- package/dist/collection/common/icons/bold.js +1 -1
- package/dist/collection/common/icons/calendar-cancel.js +1 -1
- package/dist/collection/common/icons/calendar-check.js +1 -1
- package/dist/collection/common/icons/calendar-info.js +1 -1
- package/dist/collection/common/icons/calendar-patterns.js +1 -1
- package/dist/collection/common/icons/calendar.js +1 -1
- package/dist/collection/common/icons/checkmark-circle.js +1 -1
- package/dist/collection/common/icons/chevron.js +1 -1
- package/dist/collection/common/icons/close.js +1 -1
- package/dist/collection/common/icons/document-refresh.js +1 -1
- package/dist/collection/common/icons/flow.js +1 -1
- package/dist/collection/common/icons/folder.js +1 -1
- package/dist/collection/common/icons/forward.js +1 -1
- package/dist/collection/common/icons/globe.js +1 -1
- package/dist/collection/common/icons/google-logo.js +1 -1
- package/dist/collection/common/icons/inbox.js +1 -1
- package/dist/collection/common/icons/info.js +1 -1
- package/dist/collection/common/icons/italic.js +1 -1
- package/dist/collection/common/icons/loading.js +1 -1
- package/dist/collection/common/icons/location-off.js +1 -1
- package/dist/collection/common/icons/location.js +1 -1
- package/dist/collection/common/icons/microsoft-logo.js +1 -1
- package/dist/collection/common/icons/nylas-logo.js +1 -1
- package/dist/collection/common/icons/people.js +1 -1
- package/dist/collection/common/icons/play.js +1 -1
- package/dist/collection/common/icons/refresh.js +1 -1
- package/dist/collection/common/icons/reply-all.js +1 -1
- package/dist/collection/common/icons/reply.js +1 -1
- package/dist/collection/common/icons/search.js +1 -1
- package/dist/collection/common/icons/sent.js +1 -1
- package/dist/collection/common/icons/spam.js +1 -1
- package/dist/collection/common/icons/star.js +1 -1
- package/dist/collection/common/icons/stop.js +1 -1
- package/dist/collection/common/icons/translate.js +1 -1
- package/dist/collection/common/icons/trash.js +1 -1
- package/dist/collection/common/icons/underline.js +1 -1
- package/dist/collection/common/icons/warning.js +1 -1
- package/dist/collection/common/nylas-api-request.js +15 -6
- package/dist/collection/common/nylas-api-request.js.map +1 -1
- package/dist/collection/common/register-component.js +6 -0
- package/dist/collection/common/register-component.js.map +1 -1
- package/dist/collection/common/types.js.map +1 -1
- package/dist/collection/components/design-system/button-component/button-component.js +1 -1
- package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +2 -2
- package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
- package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
- package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
- package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
- package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
- package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
- package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
- package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
- package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
- package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
- package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
- package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
- package/dist/collection/components/nylas-login/nylas-login.js +1 -1
- package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
- package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
- package/dist/collection/components/scheduler/nylas-scheduler/nylas-scheduling.js +5 -5
- package/dist/collection/components/scheduler/nylas-scheduler/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.css +15 -8
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +75 -7
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.css +105 -0
- package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js +293 -0
- package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js.map +1 -0
- package/dist/collection/components/scheduler-editor/nylas-location-component/nylas-location-component.js +3 -3
- package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.js +30 -0
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.js.map +1 -0
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.css +17 -2
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +90 -40
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
- package/dist/collection/connector/nylas-scheduler-config-connector/index.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler-config.js +114 -26
- package/dist/collection/connector/shared/api/scheduler-config.js.map +1 -1
- package/dist/collection/stores/scheduler-config-store.js +7 -0
- package/dist/collection/stores/scheduler-config-store.js.map +1 -1
- package/dist/collection/utils/utils.js +16 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/collection/utils/utils.spec.js +8 -1
- package/dist/collection/utils/utils.spec.js.map +1 -1
- package/dist/components/add-circle.js +1 -2
- package/dist/components/add-circle.js.map +1 -1
- package/dist/components/archive.js +1 -2
- package/dist/components/archive.js.map +1 -1
- package/dist/components/arrow.js +1 -2
- package/dist/components/arrow.js.map +1 -1
- package/dist/components/bold.js +1 -2
- package/dist/components/bold.js.map +1 -1
- package/dist/components/button-component2.js +1 -2
- package/dist/components/button-component2.js.map +1 -1
- package/dist/components/calendar-cancel.js +1 -2
- package/dist/components/calendar-cancel.js.map +1 -1
- package/dist/components/calendar-check.js +1 -2
- package/dist/components/calendar-check.js.map +1 -1
- package/dist/components/calendar-info.js +1 -2
- package/dist/components/calendar-info.js.map +1 -1
- package/dist/components/calendar-patterns.js +1 -2
- package/dist/components/calendar-patterns.js.map +1 -1
- package/dist/components/calendar.js +1 -2
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/checkmark-circle.js +1 -2
- package/dist/components/checkmark-circle.js.map +1 -1
- package/dist/components/chevron.js +1 -2
- package/dist/components/chevron.js.map +1 -1
- package/dist/components/close.js +1 -2
- package/dist/components/close.js.map +1 -1
- package/dist/components/constants.js +1 -1
- package/dist/components/document-refresh-icon.js +1 -2
- package/dist/components/document-refresh-icon.js.map +1 -1
- package/dist/components/flow.js +1 -2
- package/dist/components/flow.js.map +1 -1
- package/dist/components/focus-visible.js +1 -1
- package/dist/components/folder.js +1 -2
- package/dist/components/folder.js.map +1 -1
- package/dist/components/forward.js +1 -2
- package/dist/components/forward.js.map +1 -1
- package/dist/components/globe.js +1 -2
- package/dist/components/globe.js.map +1 -1
- package/dist/components/google-logo.js +1 -2
- package/dist/components/google-logo.js.map +1 -1
- package/dist/components/inbox.js +1 -2
- package/dist/components/inbox.js.map +1 -1
- package/dist/components/index.d.ts +179 -0
- package/dist/components/index.es.js +201 -4
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index.js +89 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/info.js +1 -2
- package/dist/components/info.js.map +1 -1
- package/dist/components/italic.js +1 -2
- package/dist/components/italic.js.map +1 -1
- package/dist/components/loading.js +1 -2
- package/dist/components/loading.js.map +1 -1
- package/dist/components/location-off.js +1 -2
- package/dist/components/location-off.js.map +1 -1
- package/dist/components/location.js +1 -2
- package/dist/components/location.js.map +1 -1
- package/dist/components/mailbox-store.js +1 -2
- package/dist/components/mailbox-store.js.map +1 -1
- package/dist/components/microsoft-logo.js +1 -2
- package/dist/components/microsoft-logo.js.map +1 -1
- package/dist/components/multi-select-dropdown2.js +2 -3
- package/dist/components/multi-select-dropdown2.js.map +1 -1
- package/dist/components/nylas-additional-participants.js +1 -2
- package/dist/components/nylas-additional-participants.js.map +1 -1
- package/dist/components/nylas-availability-picker2.js +1 -2
- package/dist/components/nylas-availability-picker2.js.map +1 -1
- package/dist/components/nylas-booked-event-card2.js +0 -1
- package/dist/components/nylas-booked-event-card2.js.map +1 -1
- package/dist/components/nylas-booking-calendar-picker2.js +0 -1
- package/dist/components/nylas-booking-calendar-picker2.js.map +1 -1
- package/dist/components/nylas-booking-form2.js +0 -1
- package/dist/components/nylas-booking-form2.js.map +1 -1
- package/dist/components/nylas-buffer-time2.js +0 -1
- package/dist/components/nylas-buffer-time2.js.map +1 -1
- package/dist/components/nylas-calendar-picker2.js +0 -1
- package/dist/components/nylas-calendar-picker2.js.map +1 -1
- package/dist/components/nylas-cancel-booking-form2.js +1 -2
- package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
- package/dist/components/nylas-cancelled-event-card2.js +1 -2
- package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
- package/dist/components/nylas-composer2.js +1 -2
- package/dist/components/nylas-composer2.js.map +1 -1
- package/dist/components/nylas-custom-booking-flow2.js +1 -2
- package/dist/components/nylas-custom-booking-flow2.js.map +1 -1
- package/dist/components/nylas-date-picker2.js +1 -2
- package/dist/components/nylas-date-picker2.js.map +1 -1
- package/dist/components/nylas-editor-tabs2.js +25 -8
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-event-description2.js +0 -1
- package/dist/components/nylas-event-description2.js.map +1 -1
- package/dist/components/nylas-event-duration2.js +0 -1
- package/dist/components/nylas-event-duration2.js.map +1 -1
- package/dist/components/nylas-event-info2.js +1 -2
- package/dist/components/nylas-event-info2.js.map +1 -1
- package/dist/components/nylas-event-limits2.js +1 -2
- package/dist/components/nylas-event-limits2.js.map +1 -1
- package/dist/components/nylas-event-title2.js +1 -2
- package/dist/components/nylas-event-title2.js.map +1 -1
- package/dist/components/nylas-form-card2.js +1 -2
- package/dist/components/nylas-form-card2.js.map +1 -1
- package/dist/components/nylas-if-state.js +0 -1
- package/dist/components/nylas-if-state.js.map +1 -1
- package/dist/components/nylas-limit-future-bookings2.js +1 -2
- package/dist/components/nylas-limit-future-bookings2.js.map +1 -1
- package/dist/components/nylas-list-configurations.d.ts +11 -0
- package/dist/components/nylas-list-configurations.js +8 -0
- package/dist/components/nylas-list-configurations.js.map +1 -0
- package/dist/components/nylas-list-configurations2.js +142 -0
- package/dist/components/nylas-list-configurations2.js.map +1 -0
- package/dist/components/nylas-list-folders.js +2 -3
- package/dist/components/nylas-list-folders.js.map +1 -1
- package/dist/components/nylas-list-threads.js +2 -3
- package/dist/components/nylas-list-threads.js.map +1 -1
- package/dist/components/nylas-locale-switch2.js +0 -1
- package/dist/components/nylas-locale-switch2.js.map +1 -1
- package/dist/components/nylas-location-component2.js +3 -4
- package/dist/components/nylas-location-component2.js.map +1 -1
- package/dist/components/nylas-login.js +1 -2
- package/dist/components/nylas-login.js.map +1 -1
- package/dist/components/nylas-logo2.js +1 -2
- package/dist/components/nylas-logo2.js.map +1 -1
- package/dist/components/nylas-mailbox-pagination.js +0 -1
- package/dist/components/nylas-mailbox-pagination.js.map +1 -1
- package/dist/components/nylas-mailbox-toolbar-button.js +1 -2
- package/dist/components/nylas-mailbox-toolbar-button.js.map +1 -1
- package/dist/components/nylas-mailbox.js +1 -2
- package/dist/components/nylas-mailbox.js.map +1 -1
- package/dist/components/nylas-min-cancellation-notice2.js +1 -2
- package/dist/components/nylas-min-cancellation-notice2.js.map +1 -1
- package/dist/components/nylas-notification2.js +1 -2
- package/dist/components/nylas-notification2.js.map +1 -1
- package/dist/components/nylas-provider.js +1 -2
- package/dist/components/nylas-provider.js.map +1 -1
- package/dist/components/nylas-scheduler-editor.js +317 -128
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-scheduling.js +4 -5
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/nylas-selected-event-card2.js +0 -1
- package/dist/components/nylas-selected-event-card2.js.map +1 -1
- package/dist/components/nylas-summarize-message-button2.js +3 -4
- package/dist/components/nylas-summarize-message-button2.js.map +1 -1
- package/dist/components/nylas-threads-refresh.js +2 -3
- package/dist/components/nylas-threads-refresh.js.map +1 -1
- package/dist/components/nylas-threads-search.js +1 -2
- package/dist/components/nylas-threads-search.js.map +1 -1
- package/dist/components/nylas-time-window-picker2.js +2 -4
- package/dist/components/nylas-time-window-picker2.js.map +1 -1
- package/dist/components/nylas-timeslot-picker2.js +1 -2
- package/dist/components/nylas-timeslot-picker2.js.map +1 -1
- package/dist/components/nylas-view-email2.js +2 -4
- package/dist/components/nylas-view-email2.js.map +1 -1
- package/dist/components/nylas-view-thread.js +2 -3
- package/dist/components/nylas-view-thread.js.map +1 -1
- package/dist/components/people-icon.js +1 -2
- package/dist/components/people-icon.js.map +1 -1
- package/dist/components/play.js +1 -2
- package/dist/components/play.js.map +1 -1
- package/dist/components/refresh.js +1 -2
- package/dist/components/refresh.js.map +1 -1
- package/dist/components/register-component.js +7 -1
- package/dist/components/register-component.js.map +1 -1
- package/dist/components/reply-all.js +1 -2
- package/dist/components/reply-all.js.map +1 -1
- package/dist/components/reply.js +1 -2
- package/dist/components/reply.js.map +1 -1
- package/dist/components/scheduler-config-store.js +8 -1
- package/dist/components/scheduler-config-store.js.map +1 -1
- package/dist/components/scheduler-store.js +1 -1
- package/dist/components/search.js +1 -2
- package/dist/components/search.js.map +1 -1
- package/dist/components/select-dropdown2.js +2 -3
- package/dist/components/select-dropdown2.js.map +1 -1
- package/dist/components/sent.js +1 -2
- package/dist/components/sent.js.map +1 -1
- package/dist/components/spam.js +1 -2
- package/dist/components/spam.js.map +1 -1
- package/dist/components/star.js +1 -2
- package/dist/components/star.js.map +1 -1
- package/dist/components/stop.js +1 -2
- package/dist/components/stop.js.map +1 -1
- package/dist/components/time-period-selector2.js +1 -2
- package/dist/components/time-period-selector2.js.map +1 -1
- package/dist/components/toolitp-component.js +1 -2
- package/dist/components/toolitp-component.js.map +1 -1
- package/dist/components/translate.js +1 -2
- package/dist/components/translate.js.map +1 -1
- package/dist/components/trash.js +1 -2
- package/dist/components/trash.js.map +1 -1
- package/dist/components/underline.js +1 -2
- package/dist/components/underline.js.map +1 -1
- package/dist/components/utils.js +49 -2
- package/dist/components/utils.js.map +1 -1
- package/dist/components/warning.js +1 -2
- package/dist/components/warning.js.map +1 -1
- package/dist/esm/add-circle-icon.entry.js +1 -1
- package/dist/esm/add-circle-icon_22.entry.js +20 -20
- package/dist/esm/archive-icon.entry.js +1 -1
- package/dist/esm/archive-icon_7.entry.js +7 -7
- package/dist/esm/arrow-icon.entry.js +1 -1
- package/dist/esm/bold-icon.entry.js +1 -1
- package/dist/esm/bold-icon_3.entry.js +3 -3
- package/dist/esm/button-component.entry.js +1 -1
- package/dist/esm/calendar-cancel-icon.entry.js +1 -1
- package/dist/esm/calendar-check-icon.entry.js +1 -1
- package/dist/esm/calendar-check-icon_2.entry.js +2 -2
- package/dist/esm/calendar-icon.entry.js +1 -1
- package/dist/esm/calendar-info-icon.entry.js +1 -1
- package/dist/esm/calendar-patterns-icon.entry.js +1 -1
- package/dist/esm/checkmark-circle-icon.entry.js +1 -1
- package/dist/esm/chevron-icon.entry.js +1 -1
- package/dist/esm/chevron-icon_3.entry.js +4 -4
- package/dist/esm/close-icon.entry.js +1 -1
- package/dist/esm/document-refresh-icon.entry.js +1 -1
- package/dist/esm/flow-icon.entry.js +1 -1
- package/dist/esm/folder-icon.entry.js +1 -1
- package/dist/esm/forward-icon.entry.js +1 -1
- package/dist/esm/forward-icon_6.entry.js +9 -9
- package/dist/esm/globe-icon.entry.js +1 -1
- package/dist/esm/google-logo-icon.entry.js +1 -1
- package/dist/esm/{google-logo-icon_3.entry.js → google-logo-icon_4.entry.js} +138 -18
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -0
- package/dist/esm/inbox-icon.entry.js +1 -1
- package/dist/esm/index-7cb0dd3d.js +6 -6
- package/dist/esm/index-8362ce5c.js +12 -8
- package/dist/{nylas-web-elements/index.es-bd511719.js → esm/index.es-2842f8c8.js} +9 -4
- package/dist/esm/index.es-2842f8c8.js.map +1 -0
- package/dist/esm/{index.es-2578c6a5.js → index.es-f57e612a.js} +9 -4
- package/dist/esm/index.es-f57e612a.js.map +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/info-icon.entry.js +1 -1
- package/dist/esm/info-icon_2.entry.js +2 -2
- package/dist/esm/italic-icon.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-icon.entry.js +1 -1
- package/dist/esm/location-icon.entry.js +1 -1
- package/dist/esm/location-off-icon.entry.js +1 -1
- package/dist/esm/{mailbox-store-bb21512c.js → mailbox-store-47fc8a1a.js} +3 -3
- package/dist/{nylas-web-elements/mailbox-store-150cc456.js.map → esm/mailbox-store-47fc8a1a.js.map} +1 -1
- package/dist/esm/{mailbox-store-150cc456.js → mailbox-store-d48269de.js} +3 -3
- package/dist/esm/{mailbox-store-150cc456.js.map → mailbox-store-d48269de.js.map} +1 -1
- package/dist/esm/microsoft-logo-icon.entry.js +1 -1
- package/dist/esm/multi-select-dropdown.entry.js +3 -3
- package/dist/esm/nylas-additional-participants.entry.js +3 -3
- package/dist/esm/{nylas-api-request-c97a0153.js → nylas-api-request-3120d9ac.js} +17 -7
- package/dist/esm/nylas-api-request-3120d9ac.js.map +1 -0
- package/dist/{nylas-web-elements/nylas-api-request-55446aba.js → esm/nylas-api-request-4f3dbb72.js} +17 -7
- package/dist/esm/nylas-api-request-4f3dbb72.js.map +1 -0
- package/dist/esm/nylas-availability-picker.entry.js +2 -2
- package/dist/esm/nylas-booked-event-card.entry.js +2 -2
- package/dist/esm/nylas-booked-event-card_10.entry.js +6 -6
- package/dist/esm/nylas-booking-calendar-picker.entry.js +2 -2
- package/dist/esm/nylas-booking-form.entry.js +2 -2
- package/dist/esm/nylas-buffer-time.entry.js +2 -2
- package/dist/esm/nylas-calendar-picker.entry.js +2 -2
- package/dist/esm/nylas-cancel-booking-form.entry.js +3 -3
- package/dist/esm/nylas-cancelled-event-card.entry.js +3 -3
- package/dist/esm/nylas-composer.entry.js +2 -2
- package/dist/esm/nylas-custom-booking-flow.entry.js +3 -3
- package/dist/esm/nylas-date-picker.entry.js +2 -2
- package/dist/esm/nylas-editor-tabs.entry.js +26 -9
- package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/esm/nylas-event-description.entry.js +2 -2
- package/dist/esm/nylas-event-duration.entry.js +2 -2
- package/dist/esm/nylas-event-info.entry.js +3 -3
- package/dist/esm/nylas-event-limits.entry.js +3 -3
- package/dist/esm/nylas-event-title.entry.js +2 -2
- package/dist/esm/nylas-form-card.entry.js +3 -3
- package/dist/esm/nylas-if-state.entry.js +2 -2
- package/dist/esm/nylas-limit-future-bookings.entry.js +3 -3
- package/dist/esm/nylas-list-configurations.entry.js +110 -0
- package/dist/esm/nylas-list-configurations.entry.js.map +1 -0
- package/dist/esm/nylas-list-folders.entry.js +3 -3
- package/dist/esm/nylas-list-threads.entry.js +3 -3
- package/dist/esm/nylas-locale-switch.entry.js +2 -2
- package/dist/esm/nylas-location-component.entry.js +5 -5
- package/dist/esm/nylas-login.entry.js +3 -3
- package/dist/esm/nylas-logo.entry.js +1 -1
- package/dist/esm/nylas-mailbox-pagination.entry.js +2 -2
- package/dist/esm/nylas-mailbox-toolbar-button.entry.js +3 -3
- package/dist/esm/nylas-mailbox.entry.js +4 -4
- package/dist/esm/nylas-min-cancellation-notice.entry.js +3 -3
- package/dist/esm/nylas-notification.entry.js +2 -2
- package/dist/esm/nylas-provider.entry.js +6 -6
- package/dist/esm/nylas-scheduler-editor.entry.js +208 -67
- package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +6 -6
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-selected-event-card.entry.js +2 -2
- package/dist/esm/nylas-summarize-message-button.entry.js +4 -4
- package/dist/esm/nylas-threads-refresh.entry.js +4 -4
- package/dist/esm/nylas-threads-search.entry.js +3 -3
- package/dist/esm/nylas-time-window-picker.entry.js +2 -2
- package/dist/esm/nylas-timeslot-picker.entry.js +2 -2
- package/dist/esm/nylas-view-email.entry.js +2 -2
- package/dist/esm/nylas-view-thread.entry.js +3 -3
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/esm/people-icon.entry.js +1 -1
- package/dist/esm/play-icon.entry.js +1 -1
- package/dist/esm/play-icon_2.entry.js +2 -2
- package/dist/esm/refresh-icon.entry.js +1 -1
- package/dist/esm/{register-component-dc659dc3.js → register-component-cf5c8420.js} +8 -2
- package/dist/esm/register-component-cf5c8420.js.map +1 -0
- package/dist/{nylas-web-elements/register-component-0645dce0.js → esm/register-component-e5afe237.js} +8 -2
- package/dist/esm/register-component-e5afe237.js.map +1 -0
- package/dist/esm/reply-all-icon.entry.js +1 -1
- package/dist/esm/reply-icon.entry.js +1 -1
- package/dist/esm/{scheduler-config-store-bc59545b.js → scheduler-config-store-0efc3519.js} +8 -1
- package/dist/esm/scheduler-config-store-0efc3519.js.map +1 -0
- package/dist/esm/{scheduler-config-store-51ee4f42.js → scheduler-config-store-6222c0ed.js} +8 -1
- package/dist/esm/scheduler-config-store-6222c0ed.js.map +1 -0
- package/dist/esm/{scheduler-store-72116723.js → scheduler-store-39d37291.js} +2 -2
- package/dist/esm/{scheduler-store-4d0a4f8a.js.map → scheduler-store-39d37291.js.map} +1 -1
- package/dist/{nylas-web-elements/scheduler-store-4d0a4f8a.js → esm/scheduler-store-8ddcc496.js} +2 -2
- package/dist/esm/{scheduler-store-72116723.js.map → scheduler-store-8ddcc496.js.map} +1 -1
- package/dist/esm/search-icon.entry.js +1 -1
- package/dist/esm/select-dropdown.entry.js +2 -2
- package/dist/esm/sent-icon.entry.js +1 -1
- package/dist/esm/spam-icon.entry.js +1 -1
- package/dist/esm/star-icon.entry.js +1 -1
- package/dist/esm/stop-icon.entry.js +1 -1
- package/dist/esm/time-period-selector.entry.js +2 -2
- package/dist/esm/tooltip-component.entry.js +1 -1
- package/dist/esm/translate-icon.entry.js +1 -1
- package/dist/esm/trash-icon.entry.js +1 -1
- package/dist/esm/underline-icon.entry.js +1 -1
- package/dist/{nylas-web-elements/utils-3a8d433a.js → esm/utils-73d8a928.js} +18 -2
- package/dist/{nylas-web-elements/utils-3a8d433a.js.map → esm/utils-73d8a928.js.map} +1 -1
- package/dist/esm/{utils-c00bdc3c.js → utils-d6204242.js} +18 -2
- package/dist/esm/utils-d6204242.js.map +1 -0
- package/dist/esm/warning-icon.entry.js +1 -1
- package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
- package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
- package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
- package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
- package/dist/nylas-web-elements/button-component.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
- package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
- package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
- package/dist/nylas-web-elements/close-icon.entry.js +1 -1
- package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
- package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
- package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
- package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
- package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
- package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
- package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
- package/dist/{esm/index.es-bd511719.js → nylas-web-elements/index.es-2842f8c8.js} +9 -4
- package/dist/nylas-web-elements/index.es-2842f8c8.js.map +1 -0
- package/dist/nylas-web-elements/index.esm.js +3 -1
- package/dist/nylas-web-elements/index.esm.js.map +1 -1
- package/dist/nylas-web-elements/info-icon.entry.js +1 -1
- package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
- package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
- package/dist/nylas-web-elements/location-icon.entry.js +1 -1
- package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{mailbox-store-150cc456.js → mailbox-store-d48269de.js} +3 -3
- package/dist/{esm/mailbox-store-bb21512c.js.map → nylas-web-elements/mailbox-store-d48269de.js.map} +1 -1
- package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
- package/dist/nylas-web-elements/multi-select-dropdown.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-additional-participants.entry.js +3 -3
- package/dist/{esm/nylas-api-request-55446aba.js → nylas-web-elements/nylas-api-request-4f3dbb72.js} +17 -7
- package/dist/nylas-web-elements/nylas-api-request-4f3dbb72.js.map +1 -0
- package/dist/nylas-web-elements/nylas-availability-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-booking-form.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-buffer-time.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-composer.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-date-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +26 -9
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-event-description.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-event-duration.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-event-info.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-event-limits.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-event-title.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-if-state.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-list-configurations.entry.js +110 -0
- package/dist/nylas-web-elements/nylas-list-configurations.entry.js.map +1 -0
- package/dist/nylas-web-elements/nylas-list-folders.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-list-threads.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-locale-switch.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-location-component.entry.js +5 -5
- package/dist/nylas-web-elements/nylas-login.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
- package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-mailbox.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-notification.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-provider.entry.js +6 -6
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +208 -67
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduling.entry.js +6 -6
- package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-threads-search.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-view-email.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-view-thread.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-f48d0571.entry.js → p-04e3a98e.entry.js} +2 -2
- package/dist/nylas-web-elements/p-0edb3b69.entry.js +2 -0
- package/dist/nylas-web-elements/{p-40ed7eab.entry.js → p-1260ac06.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-af22da60.entry.js → p-1655dec3.entry.js} +4 -4
- package/dist/nylas-web-elements/p-1655dec3.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-64364434.entry.js → p-18a936a3.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-df5e9aaf.js → p-1aa7b357.js} +2 -2
- package/dist/nylas-web-elements/{p-b2208193.entry.js → p-1ab25f04.entry.js} +2 -2
- package/dist/nylas-web-elements/p-1c94940d.entry.js +2 -0
- package/dist/nylas-web-elements/{p-d85eecf4.entry.js.map → p-1c94940d.entry.js.map} +1 -1
- package/dist/nylas-web-elements/p-1f843391.js +2 -0
- package/dist/nylas-web-elements/p-1f843391.js.map +1 -0
- package/dist/nylas-web-elements/{p-42a4c2fd.entry.js → p-266f9995.entry.js} +2 -2
- package/dist/nylas-web-elements/p-3116f5cc.js +2 -0
- package/dist/nylas-web-elements/p-3116f5cc.js.map +1 -0
- package/dist/nylas-web-elements/{p-ad9c3cab.entry.js → p-370cdcca.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-2c5d5953.entry.js → p-3f6155de.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-901f9612.js → p-41dc0d93.js} +2 -2
- package/dist/nylas-web-elements/p-41dc0d93.js.map +1 -0
- package/dist/nylas-web-elements/{p-006ab406.entry.js → p-424f4d9a.entry.js} +2 -2
- package/dist/nylas-web-elements/p-47180df9.entry.js +2 -0
- package/dist/nylas-web-elements/{p-5a3809a7.entry.js → p-55368bc0.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-374527e6.entry.js → p-572bf8c2.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-2523c292.entry.js → p-57b753c6.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-a0c2ce03.entry.js → p-605142a9.entry.js} +2 -2
- package/dist/nylas-web-elements/p-618b94cd.entry.js +2 -0
- package/dist/nylas-web-elements/p-618b94cd.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-4d9fceeb.entry.js → p-674b6d5d.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-39b280e2.entry.js → p-6dcc9411.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-395f49eb.entry.js → p-7692056f.entry.js} +2 -2
- package/dist/nylas-web-elements/p-7c55dfa0.entry.js +2 -0
- package/dist/nylas-web-elements/{p-ba3d383f.entry.js.map → p-7c55dfa0.entry.js.map} +1 -1
- package/dist/nylas-web-elements/{p-9dac153b.entry.js → p-81ea7310.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-a1e27dc5.entry.js → p-858f0aad.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-baa620b4.entry.js → p-8b1a6e27.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-deafc6bc.entry.js → p-945caf14.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-ae01e1cb.entry.js → p-9b195811.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-409d4410.entry.js → p-9c399019.entry.js} +2 -2
- package/dist/nylas-web-elements/p-9d0c0340.entry.js +2 -0
- package/dist/nylas-web-elements/{p-fbbca7a6.entry.js → p-9d4bffbb.entry.js} +2 -2
- package/dist/nylas-web-elements/p-9d75bcb2.entry.js +2 -0
- package/dist/nylas-web-elements/p-9d75bcb2.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-9ea458c3.js +2 -0
- package/dist/nylas-web-elements/p-9ea458c3.js.map +1 -0
- package/dist/nylas-web-elements/{p-7b1bb792.entry.js → p-ae893050.entry.js} +3 -3
- package/dist/nylas-web-elements/{p-d92a0405.entry.js → p-be7124f0.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-3da66838.entry.js → p-c199d203.entry.js} +2 -2
- package/dist/nylas-web-elements/p-c451c9e1.entry.js +2 -0
- package/dist/nylas-web-elements/{p-41c1654e.entry.js.map → p-c451c9e1.entry.js.map} +1 -1
- package/dist/nylas-web-elements/p-c45ac7c6.entry.js +2 -0
- package/dist/nylas-web-elements/{p-d224c7af.entry.js → p-e03b2592.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-9f168ff0.js → p-e22aa0b0.js} +2 -2
- package/dist/nylas-web-elements/{p-408dda49.js → p-eaa9151b.js} +2 -2
- package/dist/nylas-web-elements/p-eaa9151b.js.map +1 -0
- package/dist/nylas-web-elements/{p-3631e6e5.entry.js → p-fe3b8e66.entry.js} +2 -2
- package/dist/nylas-web-elements/people-icon.entry.js +1 -1
- package/dist/nylas-web-elements/play-icon.entry.js +1 -1
- package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
- package/dist/{esm/register-component-0645dce0.js → nylas-web-elements/register-component-e5afe237.js} +8 -2
- package/dist/nylas-web-elements/register-component-e5afe237.js.map +1 -0
- package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
- package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{scheduler-config-store-bc59545b.js → scheduler-config-store-0efc3519.js} +8 -1
- package/dist/nylas-web-elements/scheduler-config-store-0efc3519.js.map +1 -0
- package/dist/{esm/scheduler-store-4d0a4f8a.js → nylas-web-elements/scheduler-store-8ddcc496.js} +2 -2
- package/dist/nylas-web-elements/{scheduler-store-4d0a4f8a.js.map → scheduler-store-8ddcc496.js.map} +1 -1
- package/dist/nylas-web-elements/search-icon.entry.js +1 -1
- package/dist/nylas-web-elements/select-dropdown.entry.js +2 -2
- package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
- package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
- package/dist/nylas-web-elements/star-icon.entry.js +1 -1
- package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
- package/dist/nylas-web-elements/time-period-selector.entry.js +2 -2
- package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
- package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
- package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
- package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
- package/dist/{esm/utils-3a8d433a.js → nylas-web-elements/utils-73d8a928.js} +18 -2
- package/dist/{esm/utils-3a8d433a.js.map → nylas-web-elements/utils-73d8a928.js.map} +1 -1
- package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
- package/dist/types/common/component-types.d.ts +3 -1
- package/dist/types/common/nylas-api-request.d.ts +3 -2
- package/dist/types/common/register-component.d.ts +1 -0
- package/dist/types/common/types.d.ts +3 -1
- package/dist/types/components/scheduler/nylas-scheduler/nylas-scheduling.d.ts +1 -1
- package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +6 -2
- package/dist/types/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.d.ts +25 -0
- package/dist/types/components/scheduler-editor/nylas-scheduler-editor/LoginRequired.d.ts +4 -0
- package/dist/types/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.d.ts +7 -2
- package/dist/types/components.d.ts +125 -2
- package/dist/types/connector/nylas-scheduler-config-connector/index.d.ts +2 -2
- package/dist/types/connector/shared/api/scheduler-config.d.ts +45 -8
- package/dist/types/stores/scheduler-config-store.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +4 -1
- package/package.json +1 -2
- package/dist/cjs/google-logo-icon_3.cjs.entry.js.map +0 -1
- package/dist/cjs/index.es-447c5aca.js.map +0 -1
- package/dist/cjs/index.es-68425511.js.map +0 -1
- package/dist/cjs/nylas-api-request-8ec3a89c.js.map +0 -1
- package/dist/cjs/nylas-api-request-ab24150d.js.map +0 -1
- package/dist/cjs/register-component-d729f3f7.js.map +0 -1
- package/dist/cjs/register-component-f1ebc65d.js.map +0 -1
- package/dist/cjs/scheduler-config-store-31b83ad3.js.map +0 -1
- package/dist/cjs/scheduler-config-store-9c2cc421.js.map +0 -1
- package/dist/cjs/utils-53dd7574.js.map +0 -1
- package/dist/components/_commonjsHelpers.js +0 -36
- package/dist/components/_commonjsHelpers.js.map +0 -1
- package/dist/components/index2.js +0 -196
- package/dist/components/index2.js.map +0 -1
- package/dist/components/nylas-api-request.js +0 -37
- package/dist/components/nylas-api-request.js.map +0 -1
- package/dist/esm/google-logo-icon_3.entry.js.map +0 -1
- package/dist/esm/index.es-2578c6a5.js.map +0 -1
- package/dist/esm/index.es-bd511719.js.map +0 -1
- package/dist/esm/nylas-api-request-55446aba.js.map +0 -1
- package/dist/esm/nylas-api-request-c97a0153.js.map +0 -1
- package/dist/esm/register-component-0645dce0.js.map +0 -1
- package/dist/esm/register-component-dc659dc3.js.map +0 -1
- package/dist/esm/scheduler-config-store-51ee4f42.js.map +0 -1
- package/dist/esm/scheduler-config-store-bc59545b.js.map +0 -1
- package/dist/esm/utils-c00bdc3c.js.map +0 -1
- package/dist/nylas-web-elements/index.es-bd511719.js.map +0 -1
- package/dist/nylas-web-elements/nylas-api-request-55446aba.js.map +0 -1
- package/dist/nylas-web-elements/p-01bf65c2.entry.js +0 -2
- package/dist/nylas-web-elements/p-408dda49.js.map +0 -1
- package/dist/nylas-web-elements/p-41c1654e.entry.js +0 -2
- package/dist/nylas-web-elements/p-59b6ae90.entry.js +0 -2
- package/dist/nylas-web-elements/p-59b6ae90.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-65fdfb60.js +0 -2
- package/dist/nylas-web-elements/p-65fdfb60.js.map +0 -1
- package/dist/nylas-web-elements/p-901f9612.js.map +0 -1
- package/dist/nylas-web-elements/p-a3d5a1dd.entry.js +0 -2
- package/dist/nylas-web-elements/p-af22da60.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-ba3d383f.entry.js +0 -2
- package/dist/nylas-web-elements/p-bfdc148c.entry.js +0 -2
- package/dist/nylas-web-elements/p-cadc9052.js +0 -2
- package/dist/nylas-web-elements/p-cadc9052.js.map +0 -1
- package/dist/nylas-web-elements/p-d67d1c72.js +0 -2
- package/dist/nylas-web-elements/p-d67d1c72.js.map +0 -1
- package/dist/nylas-web-elements/p-d85eecf4.entry.js +0 -2
- package/dist/nylas-web-elements/p-dc1cee56.entry.js +0 -2
- package/dist/nylas-web-elements/p-dc1cee56.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-de63bc35.entry.js +0 -2
- package/dist/nylas-web-elements/register-component-0645dce0.js.map +0 -1
- package/dist/nylas-web-elements/scheduler-config-store-bc59545b.js.map +0 -1
- /package/dist/nylas-web-elements/{p-f48d0571.entry.js.map → p-04e3a98e.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a3d5a1dd.entry.js.map → p-0edb3b69.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-40ed7eab.entry.js.map → p-1260ac06.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-64364434.entry.js.map → p-18a936a3.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-df5e9aaf.js.map → p-1aa7b357.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-b2208193.entry.js.map → p-1ab25f04.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-42a4c2fd.entry.js.map → p-266f9995.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-ad9c3cab.entry.js.map → p-370cdcca.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-2c5d5953.entry.js.map → p-3f6155de.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-006ab406.entry.js.map → p-424f4d9a.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-bfdc148c.entry.js.map → p-47180df9.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-5a3809a7.entry.js.map → p-55368bc0.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-374527e6.entry.js.map → p-572bf8c2.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-2523c292.entry.js.map → p-57b753c6.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a0c2ce03.entry.js.map → p-605142a9.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-4d9fceeb.entry.js.map → p-674b6d5d.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-39b280e2.entry.js.map → p-6dcc9411.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-395f49eb.entry.js.map → p-7692056f.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-9dac153b.entry.js.map → p-81ea7310.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a1e27dc5.entry.js.map → p-858f0aad.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-baa620b4.entry.js.map → p-8b1a6e27.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-deafc6bc.entry.js.map → p-945caf14.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-ae01e1cb.entry.js.map → p-9b195811.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-409d4410.entry.js.map → p-9c399019.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-01bf65c2.entry.js.map → p-9d0c0340.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-fbbca7a6.entry.js.map → p-9d4bffbb.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-7b1bb792.entry.js.map → p-ae893050.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d92a0405.entry.js.map → p-be7124f0.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-3da66838.entry.js.map → p-c199d203.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-de63bc35.entry.js.map → p-c45ac7c6.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d224c7af.entry.js.map → p-e03b2592.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-9f168ff0.js.map → p-e22aa0b0.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-3631e6e5.entry.js.map → p-fe3b8e66.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as t}from"./p-41dc0d93.js";class e{constructor(t){this.session=t}setActiveGrantId(t){this.activeGrantId=t}async request({method:e,path:s,body:r,headers:n}){try{const a=await this.session.fetch(`grants/me/${s}`,{method:e,headers:n?new Headers(n):undefined,body:r,...this.session.isMultiAccount()&&this.activeGrantId?{grant_id:this.activeGrantId}:{}});return t(a)}catch(e){return t(null,{message:String(e)})}}async currentUser(){const t=this.session.isMultiAccount()?this.activeGrantId:undefined;const e=await this.session.getProfile(t);if(!e){return null}return{id:e.sub,email:e.email,name:e.name}}async authenticationUrl(t){return this.session.auth(t||{})}}export{e as N};
|
|
2
|
+
//# sourceMappingURL=p-1f843391.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NylasIdentityRequestWrapper","constructor","session","this","setActiveGrantId","grantId","activeGrantId","request","method","path","body","headers","response","fetch","Headers","undefined","isMultiAccount","grant_id","dataResponse","error","message","String","currentUser","idToken","getProfile","id","sub","email","name","authenticationUrl","authArgs","auth"],"sources":["src/common/nylas-api-request.ts"],"sourcesContent":["import { dataResponse } from '@/utils/utils';\nimport type { NylasSessions } from '@nylas/identity';\nimport { DataResponseReturnType } from './types';\n\n/**\n * Arguments for making a request to the Nylas API.\n */\nexport type NylasRequestArgs = {\n method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';\n path: string;\n body?: any;\n headers?: Record<string, string>;\n};\n\n/**\n * A model representing a user in the Nylas Identity system.\n */\nexport type User = {\n id: string;\n email: string;\n name?: string;\n};\n\n/**\n * Arguments for authenticating a user with the Nylas Identity system.\n */\nexport type AuthArgs = {\n provider?: string;\n scope?: Array<string>;\n loginHint?: string;\n includeGrantScopes?: boolean;\n prompt?: string;\n metadata?: string;\n state?: string;\n};\n\n/**\n * Interface for making requests to the Nylas API.\n *\n * This is an abstract class that is meant to be implemented by customers to provide their own\n * implementation of making requests to the Nylas API. This allows customers to use their own\n * authentication mechanism, or to use a different HTTP client library.\n */\nexport abstract class NylasApiRequest {\n /**\n * This method should make an authenticated request to the Nylas API.\n * Note: It should not throw an error if the request fails, but should return an object with the error\n * information as part of the tuple returned.\n * @param args NylasRequestArgs\n */\n abstract request<T = any>(args: NylasRequestArgs): Promise<DataResponseReturnType<T>>;\n\n /**\n * This method should return the current user's information.\n */\n abstract currentUser(): Promise<User | null>;\n /**\n * This method should return the URL to redirect the user to for authentication.\n */\n abstract authenticationUrl(authArgs?: AuthArgs): Promise<string | undefined>;\n}\n\n/**\n * A wrapper around the Nylas Identity session that implements the NylasApiRequest interface.\n * This class is used by the Nylas Web Elements to make requests to the Nylas API if no custom\n * implementation of NylasApiRequest is provided.\n */\nexport class NylasIdentityRequestWrapper implements NylasApiRequest {\n /**\n * The Nylas Identity session instance.\n */\n private session: NylasSessions;\n\n /**\n * The grant_id to use for requests, if there is multi-account support\n * enabled in the Nylas Identity settings.\n */\n private activeGrantId?: string;\n\n constructor(session: NylasSessions) {\n this.session = session;\n }\n\n /**\n * This method sets the grant_id to use for requests.\n * This is used when there is multi-account support enabled in the Nylas Identity settings.\n *\n * @param grantId\n */\n setActiveGrantId(grantId: string) {\n this.activeGrantId = grantId;\n }\n\n /**\n * This method makes a request to the Nylas API, using the Nylas Identity's fetch method.\n *\n * The `grants/me/` prefix is added because all requests made from the browser to the Nylas API\n * must be made on behalf of the currently logged in user with a valid access token.\n *\n * @param NylasRequestArgs\n * @returns Promise<[T | null, NylasErrorResponse['error'] | null]>\n */\n async request<T>({ method, path, body, headers }: NylasRequestArgs): Promise<DataResponseReturnType<T>> {\n try {\n const response = await this.session.fetch(`grants/me/${path}`, {\n method,\n headers: headers ? new Headers(headers) : undefined,\n body,\n ...(this.session.isMultiAccount() && this.activeGrantId ? { grant_id: this.activeGrantId } : {}),\n });\n return dataResponse(response as T);\n } catch (error) {\n return dataResponse(null as T, {\n message: String(error),\n });\n }\n }\n\n /**\n * This method returns the current (logged in) user's information.\n * If the user is not logged in, it returns null.\n * @returns Promise<User | null>\n */\n async currentUser(): Promise<User | null> {\n const grantId = this.session.isMultiAccount() ? this.activeGrantId : undefined;\n const idToken = await this.session.getProfile(grantId);\n if (!idToken) {\n return null;\n }\n\n return {\n id: idToken.sub,\n email: idToken.email,\n name: idToken.name,\n };\n }\n\n /**\n * This method returns the URL to redirect the user to for authentication.\n * @param authConfig authArgs\n * @returns Promise<string | undefined>\n */\n async authenticationUrl(authArgs?: AuthArgs): Promise<string | undefined> {\n return this.session.auth(authArgs || {});\n }\n}\n"],"mappings":"0CAmEaA,EAYX,WAAAC,CAAYC,GACVC,KAAKD,QAAUA,C,CASjB,gBAAAE,CAAiBC,GACfF,KAAKG,cAAgBD,C,CAYvB,aAAME,EAAWC,OAAEA,EAAMC,KAAEA,EAAIC,KAAEA,EAAIC,QAAEA,IACrC,IACE,MAAMC,QAAiBT,KAAKD,QAAQW,MAAM,aAAaJ,IAAQ,CAC7DD,SACAG,QAASA,EAAU,IAAIG,QAAQH,GAAWI,UAC1CL,UACIP,KAAKD,QAAQc,kBAAoBb,KAAKG,cAAgB,CAAEW,SAAUd,KAAKG,eAAkB,KAE/F,OAAOY,EAAaN,E,CACpB,MAAOO,GACP,OAAOD,EAAa,KAAW,CAC7BE,QAASC,OAAOF,I,EAUtB,iBAAMG,GACJ,MAAMjB,EAAUF,KAAKD,QAAQc,iBAAmBb,KAAKG,cAAgBS,UACrE,MAAMQ,QAAgBpB,KAAKD,QAAQsB,WAAWnB,GAC9C,IAAKkB,EAAS,CACZ,OAAO,I,CAGT,MAAO,CACLE,GAAIF,EAAQG,IACZC,MAAOJ,EAAQI,MACfC,KAAML,EAAQK,K,CASlB,uBAAMC,CAAkBC,GACtB,OAAO3B,KAAKD,QAAQ6B,KAAKD,GAAY,G"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as c,h as e}from"./p-68c2fadf.js";const s=".sc-calendar-check-icon-h{display:flex}";const t=s;const r=class{constructor(e){c(this,e);this.width="20";this.height="20"}render(){return e("svg",{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as c,h as e}from"./p-68c2fadf.js";const s=".sc-calendar-check-icon-h{display:flex}";const t=s;const r=class{constructor(e){c(this,e);this.width="20";this.height="20"}render(){return e("svg",{key:"38443394b07088e29b246c590994774d60bb192e",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"7ab6ea9098ce5585c193f1bf4e668e04a442991a",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};r.style=t;const a=".sc-checkmark-circle-icon-h{display:flex}";const i=a;const h=class{constructor(e){c(this,e);this.width="20";this.height="20"}render(){return e("svg",{key:"fe15f01206b6a97170014eccd61a87db4e73e324",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e("path",{key:"1742bbcd93b66151ec4394083b2e6e0441f5c808",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};h.style=i;export{r as calendar_check_icon,h as checkmark_circle_icon};
|
|
2
|
+
//# sourceMappingURL=p-266f9995.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as n}from"./p-cabb2e68.js";function c(c={}){const o={config:{},configurations:[],calendars:[],currentUser:null,action:null,defaultRequiresSessionAuth:true,...c};const t=n(o);t.onChange("action",(async n=>{if(!n){t.set("config",{})}}));return t}export{c as C};
|
|
2
|
+
//# sourceMappingURL=p-3116f5cc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CreateNylasSchedulerConfigStore","defaultState","defaultNylasSchedulerConfigStoreState","config","configurations","calendars","currentUser","action","defaultRequiresSessionAuth","store","createStore","onChange","async","set"],"sources":["src/stores/scheduler-config-store.ts"],"sourcesContent":["import { Calendar, Configuration } from '@nylas/core';\nimport { createStore } from '@stencil/store';\nimport { User } from '@/common/nylas-api-request';\n\nexport interface NylasSchedulerConfigStoreState {\n config: Partial<Configuration>;\n configurations: Configuration[];\n calendars: Calendar[];\n currentUser: User | null;\n action: 'create' | 'edit' | null;\n defaultRequiresSessionAuth: boolean;\n}\n\nexport type NylasSchedulerConfigStoreType = ReturnType<typeof CreateNylasSchedulerConfigStore>;\n\nexport function CreateNylasSchedulerConfigStore(defaultState: Partial<NylasSchedulerConfigStoreState> = {}) {\n const defaultNylasSchedulerConfigStoreState: NylasSchedulerConfigStoreState = {\n config: {},\n configurations: [],\n calendars: [],\n currentUser: null,\n action: null,\n defaultRequiresSessionAuth: true,\n ...defaultState,\n };\n const store = createStore<NylasSchedulerConfigStoreState>(defaultNylasSchedulerConfigStoreState);\n\n store.onChange('action', async action => {\n if (!action) {\n store.set('config', {});\n }\n });\n\n return store;\n}\n"],"mappings":"6CAegBA,EAAgCC,EAAwD,IACtG,MAAMC,EAAwE,CAC5EC,OAAQ,GACRC,eAAgB,GAChBC,UAAW,GACXC,YAAa,KACbC,OAAQ,KACRC,2BAA4B,QACzBP,GAEL,MAAMQ,EAAQC,EAA4CR,GAE1DO,EAAME,SAAS,UAAUC,MAAML,IAC7B,IAAKA,EAAQ,CACXE,EAAMI,IAAI,SAAU,G,KAIxB,OAAOJ,CACT,Q"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i,a as h}from"./p-68c2fadf.js";import{N as r,e as n}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as e,H as i,a as h}from"./p-68c2fadf.js";import{N as r,e as n}from"./p-9ea458c3.js";import{a as o}from"./p-41dc0d93.js";import{N as a,a as c,b as u,c as l,C as d,d as f,H as p}from"./p-e22aa0b0.js";import{N as g,C as m}from"./p-1aa7b357.js";import{C as y}from"./p-3116f5cc.js";import"./p-cb65c223.js";import"./p-cabb2e68.js";class b{constructor(t,s,e,i,h,r,n="https://api.us.nylas.com"){this.router=t;this.schedulerAPIURL=n;this.nylasAuth=s;this.nylasAuthStore=e;this.nylasMailboxStore=i;this.nylasSchedulerStore=h;this.nylasSchedulerConfigStore=r}init(){o("NylasConnector init")}get authStore(){return this.nylasAuthStore}get mailboxStore(){return this.nylasMailboxStore}get schedulerStore(){return this.nylasSchedulerStore}get schedulerConfigStore(){return this.nylasSchedulerConfigStore}get auth(){if(this._authConnector){return this._authConnector}this._authConnector=new a(this.nylasAuth,this.nylasAuthStore);return this._authConnector}get threads(){if(this._threadConnector){return this._threadConnector}this._threadConnector=new c(this.nylasAuth,this.nylasAuthStore,this.nylasMailboxStore,this.router);return this._threadConnector}get messages(){if(this._messageConnector){return this._messageConnector}this._messageConnector=new u(this.nylasAuth,this.nylasAuthStore,this.nylasMailboxStore);return this._messageConnector}get folders(){if(this._foldersConnector){return this._foldersConnector}this._foldersConnector=new l(this.nylasAuth,this.nylasAuthStore,this.nylasMailboxStore);return this._foldersConnector}get scheduler(){if(this._schedulerAPIConnector){return this._schedulerAPIConnector}this._schedulerAPIConnector=new g({schedulerAPIURL:this.schedulerAPIURL,schedulerStore:this.schedulerStore});return this._schedulerAPIConnector}getAuth(){return this.nylasAuth}resetStores(){this.nylasAuthStore.reset();this.nylasMailboxStore.reset()}async logout(){await this.nylasAuth.logout();this.resetStores()}}const w=":host{display:contents}";const C=w;const S=class{constructor(e){t(this,e);this.init=s(this,"init",7);this.loggedIn=s(this,"loggedIn",7);this.loggedOut=s(this,"loggedOut",7);this.handleAuthChange=async t=>{if(t){this.loggedIn.emit(this.host)}else{this.loggedOut.emit(this.host)}};this.authConfig=undefined;this.eventOverrides={};this.automaticComponentRegistration=true}connectedCallback(){o("[nylas-provider] connectedCallback")}async componentWillLoad(){o("[nylas-provider] componentWillLoad");this.stores={auth:d(),mailbox:f(),scheduler:m(),schedulerConfig:y()};this.baseProvider=new r(this.host,this.stores,this.automaticComponentRegistration,this.eventOverrides);const t=new p;this.nylasAuth=n({apiUri:"https://api.us.nylas.com",elementsApiUri:"https://elements.us.nylas.com",storageType:"indexeddb",clientId:"YOUR_CLIENT_ID",defaultScopes:[],redirectURI:"/",...this.authConfig});const s=this.baseProvider?.getStore("mailbox");if(!s){throw new Error("The mailbox store is not set")}const e=this.baseProvider?.getStore("auth");if(!e){throw new Error("The auth store is not set")}const i=this.baseProvider?.getStore("scheduler");if(!i){throw new Error("The scheduler store is not set")}const h=this.baseProvider?.getStore("schedulerConfig");if(!h){throw new Error("The scheduler config store is not set")}this.nylasConnector=new b(t,this.nylasAuth,e,s,i,h);const a=this.init.emit(this.host);if(!a.defaultPrevented){await(this.nylasConnector?.auth.validateSession())}this.handleAuthChange(e.state.isAuthenticated);this.baseProvider?.componentWillLoad(this.nylasConnector)}componentDidLoad(){const t=this.baseProvider?.getStore("auth");t?.onChange("isAuthenticated",this.handleAuthChange);this.baseProvider?.componentDidLoad()}componentDisconnected(){this.baseProvider?.componentDisconnected()}async registerComponentHandler(t){this.baseProvider?.registerComponent(t.detail)}async unregisterComponentHandler(t){this.baseProvider?.unregisterComponent(t.detail)}async getNylasAuth(){return this.nylasAuth}async getNylasConnector(){return this.nylasConnector}async getMailboxStore(){return this.baseProvider?.getStore("mailbox")}async getAuthStore(){return this.baseProvider?.getStore("auth")}async getNylasSchedulerStore(){return this.baseProvider?.getStore("scheduler")}async getNylasSchedulerConfigStore(){return this.baseProvider?.getStore("schedulerConfig")}render(){return e(i,{key:"1eb5d566a5f7c425be7b30939b06a2dfbd34c7cc"},e("slot",{key:"f3a6afab3af5893af6602f971dfe67a795f9bd4f"}))}get host(){return h(this)}};S.style=C;export{S as nylas_provider};
|
|
2
|
+
//# sourceMappingURL=p-370cdcca.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as a,H as s}from"./p-68c2fadf.js";import{R as n}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as a,H as s}from"./p-68c2fadf.js";import{R as n}from"./p-eaa9151b.js";import{a as r}from"./p-41dc0d93.js";import"./p-cb65c223.js";const c=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-form-card{width:100%;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-form-card__header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}';const d=c;var t=undefined&&undefined.__decorate||function(e,a,s,n){var r=arguments.length,c=r<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,s):n,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")c=Reflect.decorate(e,a,s,n);else for(var t=e.length-1;t>=0;t--)if(d=e[t])c=(r<3?d(c):r>3?d(a,s,c):d(a,s))||c;return r>3&&c&&Object.defineProperty(a,s,c),c};var f=undefined&&undefined.__metadata||function(e,a){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,a)};const l=class{constructor(a){e(this,a);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}}connectedCallback(){r("nylas-event-card","connectedCallback")}componentWillLoad(){r("nylas-event-card","componentWillLoad")}componentDidLoad(){r("nylas-event-card","componentDidLoad")}disconnectedCallback(){r("nylas-event-card","disconnectedCallback")}render(){return a(s,{key:"81fa6a1951100e90fcf60cf4efaa8b8a3dc92729"},a("div",{key:"9f813106becb938ea7ef27207c1e1f83e0743b53",class:"nylas-form-card"},a("div",{key:"157e236b69a61cb4512a8a7affb5d552e0167623",class:"nylas-form-card__header"},a("slot",{key:"9dd035b05c0e6d6b591b8077dde95586ff0361e8",name:"header-title"}),a("slot",{key:"4e6e6422388ddf05a2ad41f47a5547315ea21507",name:"header-subtitle"})),a("div",{key:"52b8baced8af16d5c2eb96ee038e798a8f7643a2",class:"nylas-form-card__content"},a("slot",{key:"af22784e0343f4bcb4dc3689e719162077890c91",name:"content"}))))}static get formAssociated(){return true}};t([n({name:"nylas-form-card",eventToProps:{},fireRegisterEvent:true}),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],l.prototype,"render",null);l.style=d;export{l as nylas_form_card};
|
|
2
|
+
//# sourceMappingURL=p-3f6155de.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as t}from"./p-cb65c223.js";var r={exports:{}};(function(r,n){!function(t,n){r.exports=n()}(t,(function(){var t=1e3,r=6e4,n=36e5,e="millisecond",i="second",s="minute",u="hour",a="day",f="week",o="month",h="quarter",c="year",v="date",l="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],n=t%100;return"["+t+(r[(n-20)%10]||r[n]||r[0])+"]"}},y=function(t,r,n){var e=String(t);return!e||e.length>=r?t:""+Array(r+1-e.length).join(n)+t},b={s:y,z:function(t){var r=-t.utcOffset(),n=Math.abs(r),e=Math.floor(n/60),i=n%60;return(r<=0?"+":"-")+y(e,2,"0")+":"+y(i,2,"0")},m:function t(r,n){if(r.date()<n.date())return-t(n,r);var e=12*(n.year()-r.year())+(n.month()-r.month()),i=r.clone().add(e,o),s=n-i<0,u=r.clone().add(e+(s?-1:1),o);return+(-(e+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:o,y:c,w:f,d:a,D:v,h:u,m:s,s:i,ms:e,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},p="en",E={};E[p]=m;var D=function(t){return t instanceof M},k=function t(r,n,e){var i;if(!r)return p;if("string"==typeof r){var s=r.toLowerCase();E[s]&&(i=s),n&&(E[s]=n,i=s);var u=r.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=r.name;E[a]=r,i=a}return!e&&i&&(p=i),i||!e&&p},T=function(t,r){if(D(t))return t.clone();var n="object"==typeof r?r:{};return n.date=t,n.args=arguments,new M(n)},g=b;g.l=k,g.i=D,g.w=function(t,r){return T(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var M=function(){function m(t){this.$L=k(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var r=t.date,n=t.utc;if(null===r)return new Date(NaN);if(g.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var e=r.match(d);if(e){var i=e[2]-1||0,s=(e[7]||"0").substring(0,3);return n?new Date(Date.UTC(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)):new Date(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)}}return new Date(r)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return g},y.isValid=function(){return!(this.$d.toString()===l)},y.isSame=function(t,r){var n=T(t);return this.startOf(r)<=n&&n<=this.endOf(r)},y.isAfter=function(t,r){return T(t)<this.startOf(r)},y.isBefore=function(t,r){return this.endOf(r)<T(t)},y.$g=function(t,r,n){return g.u(t)?this[r]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,r){var n=this,e=!!g.u(r)||r,h=g.p(t),l=function(t,r){var i=g.w(n.$u?Date.UTC(n.$y,r,t):new Date(n.$y,r,t),n);return e?i:i.endOf(a)},d=function(t,r){return g.w(n.toDate()[t].apply(n.toDate("s"),(e?[0,0,0,0]:[23,59,59,999]).slice(r)),n)},w=this.$W,m=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case c:return e?l(1,0):l(31,11);case o:return e?l(1,m):l(0,m+1);case f:var p=this.$locale().weekStart||0,E=(w<p?w+7:w)-p;return l(e?y-E:y+(6-E),m);case a:case v:return d(b+"Hours",0);case u:return d(b+"Minutes",1);case s:return d(b+"Seconds",2);case i:return d(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,r){var n,f=g.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[v]=h+"Date",n[o]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[e]=h+"Milliseconds",n)[f],d=f===a?this.$D+(r-this.$W):r;if(f===o||f===c){var w=this.clone().set(v,1);w.$d[l](d),w.init(),this.$d=w.set(v,Math.min(this.$D,w.daysInMonth())).$d}else l&&this.$d[l](d);return this.init(),this},y.set=function(t,r){return this.clone().$set(t,r)},y.get=function(t){return this[g.p(t)]()},y.add=function(e,h){var v,l=this;e=Number(e);var d=g.p(h),w=function(t){var r=T(l);return g.w(r.date(r.date()+Math.round(t*e)),l)};if(d===o)return this.set(o,this.$M+e);if(d===c)return this.set(c,this.$y+e);if(d===a)return w(1);if(d===f)return w(7);var m=(v={},v[s]=r,v[u]=n,v[i]=t,v)[d]||1,y=this.$d.getTime()+e*m;return g.w(y,this)},y.subtract=function(t,r){return this.add(-1*t,r)},y.format=function(t){var r=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var e=t||"YYYY-MM-DDTHH:mm:ssZ",i=g.z(this),s=this.$H,u=this.$m,a=this.$M,f=n.weekdays,o=n.months,h=function(t,n,i,s){return t&&(t[n]||t(r,e))||i[n].slice(0,s)},c=function(t){return g.s(s%12||12,t,"0")},v=n.meridiem||function(t,r,n){var e=t<12?"AM":"PM";return n?e.toLowerCase():e},d={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:g.s(a+1,2,"0"),MMM:h(n.monthsShort,a,o,3),MMMM:h(o,a),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,f,2),ddd:h(n.weekdaysShort,this.$W,f,3),dddd:f[this.$W],H:String(s),HH:g.s(s,2,"0"),h:c(1),hh:c(2),a:v(s,u,!0),A:v(s,u,!1),m:String(u),mm:g.s(u,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:i};return e.replace(w,(function(t,r){return r||d[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(e,v,l){var d,w=g.p(v),m=T(e),y=(m.utcOffset()-this.utcOffset())*r,b=this-m,p=g.m(this,m);return p=(d={},d[c]=p/12,d[o]=p,d[h]=p/3,d[f]=(b-y)/6048e5,d[a]=(b-y)/864e5,d[u]=b/n,d[s]=b/r,d[i]=b/t,d)[w]||b,l?p:g.a(p)},y.daysInMonth=function(){return this.endOf(o).$D},y.$locale=function(){return E[this.$L]},y.locale=function(t,r){if(!t)return this.$L;var n=this.clone(),e=k(t,r,!0);return e&&(n.$L=e),n},y.clone=function(){return g.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),S=M.prototype;return T.prototype=S,[["$ms",e],["$s",i],["$m",s],["$H",u],["$W",a],["$M",o],["$y",c],["$D",v]].forEach((function(t){S[t[1]]=function(r){return this.$g(r,t[0],t[1])}})),T.extend=function(t,r){return t.$i||(t(r,M,T),t.$i=!0),T},T.locale=k,T.isDayjs=D,T.unix=function(t){return T(1e3*t)},T.en=E[p],T.Ls=E,T.p={},T}))})(r);const n=r.exports;var e=["MO","TU","WE","TH","FR","SA","SU"];var i=function(){function t(t,r){if(r===0)throw new Error("Can't create weekday with n == 0");this.weekday=t;this.n=r}t.fromStr=function(r){return new t(e.indexOf(r))};t.prototype.nth=function(r){return this.n===r?this:new t(this.weekday,r)};t.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n};t.prototype.toString=function(){var t=e[this.weekday];if(this.n)t=(this.n>0?"+":"")+String(this.n)+t;return t};t.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1};return t}();var s=function(t){return t!==null&&t!==undefined};var u=function(t){return typeof t==="number"};var a=function(t){return typeof t==="string"&&e.includes(t)};var f=Array.isArray;var o=function(t,r){if(r===void 0){r=t}if(arguments.length===1){r=t;t=0}var n=[];for(var e=t;e<r;e++)n.push(e);return n};var h=function(t,r){var n=0;var e=[];if(f(t)){for(;n<r;n++)e[n]=[].concat(t)}else{for(;n<r;n++)e[n]=t}return e};var c=function(t){if(f(t)){return t}return[t]};function v(t,r,n){if(n===void 0){n=" "}var e=String(t);r=r>>0;if(e.length>r){return String(e)}r=r-e.length;if(r>n.length){n+=h(n,r/n.length)}return n.slice(0,r)+String(e)}var l=function(t,r,n){var e=t.split(r);return n?e.slice(0,n).concat([e.slice(n).join(r)]):e};var d=function(t,r){var n=t%r;return n*r<0?n+r:n};var w=function(t,r){return{div:Math.floor(t/r),mod:d(t,r)}};var m=function(t){return!s(t)||t.length===0};var y=function(t){return!m(t)};var b=function(t,r){return y(t)&&t.indexOf(r)!==-1};var p=function(t,r,n,e,i,s){if(e===void 0){e=0}if(i===void 0){i=0}if(s===void 0){s=0}return new Date(Date.UTC(t,r-1,n,e,i,s))};var E=[31,28,31,30,31,30,31,31,30,31,30,31];var D=1e3*60*60*24;var k=9999;var T=p(1970,1,1);var g=[6,0,1,2,3,4,5];var M=function(t){return t%4===0&&t%100!==0||t%400===0};var S=function(t){return t instanceof Date};var R=function(t){return S(t)&&!isNaN(t.getTime())};var I=function(t){return t.getTimezoneOffset()*60*1e3};var U=function(t,r){var n=t.getTime()-I(t);var e=r.getTime()-I(r);var i=n-e;return Math.round(i/D)};var A=function(t){return U(t,T)};var Y=function(t){return new Date(T.getTime()+t*D)};var O=function(t){var r=t.getUTCMonth();return r===1&&M(t.getUTCFullYear())?29:E[r]};var j=function(t){return g[t.getUTCDay()]};var N=function(t,r){var n=p(t,r+1,1);return[j(n),O(n)]};var $=function(t,r){r=r||t;return new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))};var x=function(t){var r=new Date(t.getTime());return r};var L=function(t){var r=[];for(var n=0;n<t.length;n++){r.push(x(t[n]))}return r};var _=function(t){t.sort((function(t,r){return t.getTime()-r.getTime()}))};var C=function(t,r){if(r===void 0){r=true}var n=new Date(t);return[v(n.getUTCFullYear().toString(),4,"0"),v(n.getUTCMonth()+1,2,"0"),v(n.getUTCDate(),2,"0"),"T",v(n.getUTCHours(),2,"0"),v(n.getUTCMinutes(),2,"0"),v(n.getUTCSeconds(),2,"0"),r?"Z":""].join("")};var H=function(t){var r=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/;var n=r.exec(t);if(!n)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[5],10)||0,parseInt(n[6],10)||0,parseInt(n[7],10)||0))};var W=function(t,r){var n=t.toLocaleString("sv-SE",{timeZone:r});return n.replace(" ","T")+"Z"};var B=function(t,r){var n=Intl.DateTimeFormat().resolvedOptions().timeZone;var e=new Date(W(t,n));var i=new Date(W(t,r!==null&&r!==void 0?r:"UTC"));var s=i.getTime()-e.getTime();return new Date(t.getTime()-s)};var Z=function(){function t(t,r){this.minDate=null;this.maxDate=null;this._result=[];this.total=0;this.method=t;this.args=r;if(t==="between"){this.maxDate=r.inc?r.before:new Date(r.before.getTime()-1);this.minDate=r.inc?r.after:new Date(r.after.getTime()+1)}else if(t==="before"){this.maxDate=r.inc?r.dt:new Date(r.dt.getTime()-1)}else if(t==="after"){this.minDate=r.inc?r.dt:new Date(r.dt.getTime()+1)}}t.prototype.accept=function(t){++this.total;var r=this.minDate&&t<this.minDate;var n=this.maxDate&&t>this.maxDate;if(this.method==="between"){if(r)return true;if(n)return false}else if(this.method==="before"){if(n)return false}else if(this.method==="after"){if(r)return true;this.add(t);return false}return this.add(t)};t.prototype.add=function(t){this._result.push(t);return true};t.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;case"before":case"after":default:return t.length?t[t.length-1]:null}};t.prototype.clone=function(){return new t(this.method,this.args)};return t}();var F=function(t,r){F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))t[n]=r[n]};return F(t,r)};function K(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");F(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var z=function(){z=Object.assign||function t(r){for(var n,e=1,i=arguments.length;e<i;e++){n=arguments[e];for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s))r[s]=n[s]}return r};return z.apply(this,arguments)};function X(t,r,n){if(n||arguments.length===2)for(var e=0,i=r.length,s;e<i;e++){if(s||!(e in r)){if(!s)s=Array.prototype.slice.call(r,0,e);s[e]=r[e]}}return t.concat(s||Array.prototype.slice.call(r))}typeof SuppressedError==="function"?SuppressedError:function(t,r,n){var e=new Error(n);return e.name="SuppressedError",e.error=t,e.suppressed=r,e};var J=function(t){K(r,t);function r(r,n,e){var i=t.call(this,r,n)||this;i.iterator=e;return i}r.prototype.add=function(t){if(this.iterator(t,this._result.length)){this._result.push(t);return true}return false};return r}(Z);var q={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var P=function(t,r){return t.indexOf(r)!==-1};var Q=function(t){return t.toString()};var G=function(t,r,n){return"".concat(r," ").concat(n,", ").concat(t)};var V=function(){function t(t,r,n,e){if(r===void 0){r=Q}if(n===void 0){n=q}if(e===void 0){e=G}this.text=[];this.language=n||q;this.gettext=r;this.dateFormatter=e;this.rrule=t;this.options=t.options;this.origOptions=t.origOptions;if(this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday);var u=[].concat(this.options.bynmonthday);i.sort((function(t,r){return t-r}));u.sort((function(t,r){return r-t}));this.bymonthday=i.concat(u);if(!this.bymonthday.length)this.bymonthday=null}if(s(this.origOptions.byweekday)){var a=!f(this.origOptions.byweekday)?[this.origOptions.byweekday]:this.origOptions.byweekday;var o=String(a);this.byweekday={allWeeks:a.filter((function(t){return!t.n})),someWeeks:a.filter((function(t){return Boolean(t.n)})),isWeekdays:o.indexOf("MO")!==-1&&o.indexOf("TU")!==-1&&o.indexOf("WE")!==-1&&o.indexOf("TH")!==-1&&o.indexOf("FR")!==-1&&o.indexOf("SA")===-1&&o.indexOf("SU")===-1,isEveryDay:o.indexOf("MO")!==-1&&o.indexOf("TU")!==-1&&o.indexOf("WE")!==-1&&o.indexOf("TH")!==-1&&o.indexOf("FR")!==-1&&o.indexOf("SA")!==-1&&o.indexOf("SU")!==-1};var h=function(t,r){return t.weekday-r.weekday};this.byweekday.allWeeks.sort(h);this.byweekday.someWeeks.sort(h);if(!this.byweekday.allWeeks.length)this.byweekday.allWeeks=null;if(!this.byweekday.someWeeks.length)this.byweekday.someWeeks=null}else{this.byweekday=null}}t.isFullyConvertible=function(r){var n=true;if(!(r.options.freq in t.IMPLEMENTED))return false;if(r.origOptions.until&&r.origOptions.count)return false;for(var e in r.origOptions){if(P(["dtstart","wkst","freq"],e))return true;if(!P(t.IMPLEMENTED[r.options.freq],e))return false}return n};t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)};t.prototype.toString=function(){var r=this.gettext;if(!(this.options.freq in t.IMPLEMENTED)){return r("RRule error: Unable to fully convert this rrule to text")}this.text=[r("every")];this[er.FREQUENCIES[this.options.freq]]();if(this.options.until){this.add(r("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else if(this.options.count){this.add(r("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?r("times"):r("time"))}if(!this.isFullyConvertible())this.add(r("(~ approximate)"));return this.text.join("")};t.prototype.HOURLY=function(){var t=this.gettext;if(this.options.interval!==1)this.add(this.options.interval.toString());this.add(this.plural(this.options.interval)?t("hours"):t("hour"))};t.prototype.MINUTELY=function(){var t=this.gettext;if(this.options.interval!==1)this.add(this.options.interval.toString());this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))};t.prototype.DAILY=function(){var t=this.gettext;if(this.options.interval!==1)this.add(this.options.interval.toString());if(this.byweekday&&this.byweekday.isWeekdays){this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday"))}else{this.add(this.plural(this.options.interval)?t("days"):t("day"))}if(this.origOptions.bymonth){this.add(t("in"));this._bymonth()}if(this.bymonthday){this._bymonthday()}else if(this.byweekday){this._byweekday()}else if(this.origOptions.byhour){this._byhour()}};t.prototype.WEEKLY=function(){var t=this.gettext;if(this.options.interval!==1){this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week"))}if(this.byweekday&&this.byweekday.isWeekdays){if(this.options.interval===1){this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday"))}else{this.add(t("on")).add(t("weekdays"))}}else if(this.byweekday&&this.byweekday.isEveryDay){this.add(this.plural(this.options.interval)?t("days"):t("day"))}else{if(this.options.interval===1)this.add(t("week"));if(this.origOptions.bymonth){this.add(t("in"));this._bymonth()}if(this.bymonthday){this._bymonthday()}else if(this.byweekday){this._byweekday()}}};t.prototype.MONTHLY=function(){var t=this.gettext;if(this.origOptions.bymonth){if(this.options.interval!==1){this.add(this.options.interval.toString()).add(t("months"));if(this.plural(this.options.interval))this.add(t("in"))}this._bymonth()}else{if(this.options.interval!==1){this.add(this.options.interval.toString())}this.add(this.plural(this.options.interval)?t("months"):t("month"))}if(this.bymonthday){this._bymonthday()}else if(this.byweekday&&this.byweekday.isWeekdays){this.add(t("on")).add(t("weekdays"))}else if(this.byweekday){this._byweekday()}};t.prototype.YEARLY=function(){var t=this.gettext;if(this.origOptions.bymonth){if(this.options.interval!==1){this.add(this.options.interval.toString());this.add(t("years"))}this._bymonth()}else{if(this.options.interval!==1){this.add(this.options.interval.toString())}this.add(this.plural(this.options.interval)?t("years"):t("year"))}if(this.bymonthday){this._bymonthday()}else if(this.byweekday){this._byweekday()}if(this.options.byyearday){this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day"))}if(this.options.byweekno){this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,undefined,t("and")))}};t.prototype._bymonthday=function(){var t=this.gettext;if(this.byweekday&&this.byweekday.allWeeks){this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or")))}else{this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))}};t.prototype._byweekday=function(){var t=this.gettext;if(this.byweekday.allWeeks&&!this.byweekday.isWeekdays){this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext))}if(this.byweekday.someWeeks){if(this.byweekday.allWeeks)this.add(t("and"));this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and")))}};t.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,undefined,t("and")))};t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))};t.prototype.nth=function(t){t=parseInt(t.toString(),10);var r;var n=this.gettext;if(t===-1)return n("last");var e=Math.abs(t);switch(e){case 1:case 21:case 31:r=e+n("st");break;case 2:case 22:r=e+n("nd");break;case 3:case 23:r=e+n("rd");break;default:r=e+n("th")}return t<0?r+" "+n("last"):r};t.prototype.monthtext=function(t){return this.language.monthNames[t-1]};t.prototype.weekdaytext=function(t){var r=u(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[r]};t.prototype.plural=function(t){return t%100!==1};t.prototype.add=function(t){this.text.push(" ");this.text.push(t);return this};t.prototype.list=function(t,r,n,e){var i=this;if(e===void 0){e=","}if(!f(t)){t=[t]}var s=function(t,r,n){var e="";for(var i=0;i<t.length;i++){if(i!==0){if(i===t.length-1){e+=" "+n+" "}else{e+=r+" "}}e+=t[i]}return e};r=r||function(t){return t.toString()};var u=function(t){return r&&r.call(i,t)};if(n){return s(t.map(u),e,n)}else{return t.map(u).join(e+" ")}};return t}();var tt=function(){function t(t){this.done=true;this.rules=t}t.prototype.start=function(t){this.text=t;this.done=false;return this.nextSymbol()};t.prototype.isDone=function(){return this.done&&this.symbol===null};t.prototype.nextSymbol=function(){var t;var r;this.symbol=null;this.value=null;do{if(this.done)return false;var n=void 0;t=null;for(var e in this.rules){n=this.rules[e];var i=n.exec(this.text);if(i){if(t===null||i[0].length>t[0].length){t=i;r=e}}}if(t!=null){this.text=this.text.substr(t[0].length);if(this.text==="")this.done=true}if(t==null){this.done=true;this.symbol=null;this.value=null;return}}while(r==="SKIP");this.symbol=r;this.value=t;return true};t.prototype.accept=function(t){if(this.symbol===t){if(this.value){var r=this.value;this.nextSymbol();return r}this.nextSymbol();return true}return false};t.prototype.acceptNumber=function(){return this.accept("number")};t.prototype.expect=function(t){if(this.accept(t))return true;throw new Error("expected "+t+" but found "+this.symbol)};return t}();function rt(t,r){if(r===void 0){r=q}var n={};var e=new tt(r.tokens);if(!e.start(t))return null;i();return n;function i(){e.expect("every");var t=e.acceptNumber();if(t)n.interval=parseInt(t[0],10);if(e.isDone())throw new Error("Unexpected end");switch(e.symbol){case"day(s)":n.freq=er.DAILY;if(e.nextSymbol()){u();c()}break;case"weekday(s)":n.freq=er.WEEKLY;n.byweekday=[er.MO,er.TU,er.WE,er.TH,er.FR];e.nextSymbol();c();break;case"week(s)":n.freq=er.WEEKLY;if(e.nextSymbol()){s();c()}break;case"hour(s)":n.freq=er.HOURLY;if(e.nextSymbol()){s();c()}break;case"minute(s)":n.freq=er.MINUTELY;if(e.nextSymbol()){s();c()}break;case"month(s)":n.freq=er.MONTHLY;if(e.nextSymbol()){s();c()}break;case"year(s)":n.freq=er.YEARLY;if(e.nextSymbol()){s();c()}break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=er.WEEKLY;var r=e.symbol.substr(0,2).toUpperCase();n.byweekday=[er[r]];if(!e.nextSymbol())return;while(e.accept("comma")){if(e.isDone())throw new Error("Unexpected end");var i=f();if(!i){throw new Error("Unexpected symbol "+e.symbol+", expected weekday")}n.byweekday.push(er[i]);e.nextSymbol()}h();c();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":n.freq=er.YEARLY;n.bymonth=[a()];if(!e.nextSymbol())return;while(e.accept("comma")){if(e.isDone())throw new Error("Unexpected end");var o=a();if(!o){throw new Error("Unexpected symbol "+e.symbol+", expected month")}n.bymonth.push(o);e.nextSymbol()}s();c();break;default:throw new Error("Unknown symbol")}}function s(){var t=e.accept("on");var r=e.accept("the");if(!(t||r))return;do{var i=o();var s=f();var u=a();if(i){if(s){e.nextSymbol();if(!n.byweekday)n.byweekday=[];n.byweekday.push(er[s].nth(i))}else{if(!n.bymonthday)n.bymonthday=[];n.bymonthday.push(i);e.accept("day(s)")}}else if(s){e.nextSymbol();if(!n.byweekday)n.byweekday=[];n.byweekday.push(er[s])}else if(e.symbol==="weekday(s)"){e.nextSymbol();if(!n.byweekday){n.byweekday=[er.MO,er.TU,er.WE,er.TH,er.FR]}}else if(e.symbol==="week(s)"){e.nextSymbol();var h=e.acceptNumber();if(!h){throw new Error("Unexpected symbol "+e.symbol+", expected week number")}n.byweekno=[parseInt(h[0],10)];while(e.accept("comma")){h=e.acceptNumber();if(!h){throw new Error("Unexpected symbol "+e.symbol+"; expected monthday")}n.byweekno.push(parseInt(h[0],10))}}else if(u){e.nextSymbol();if(!n.bymonth)n.bymonth=[];n.bymonth.push(u)}else{return}}while(e.accept("comma")||e.accept("the")||e.accept("on"))}function u(){var t=e.accept("at");if(!t)return;do{var r=e.acceptNumber();if(!r){throw new Error("Unexpected symbol "+e.symbol+", expected hour")}n.byhour=[parseInt(r[0],10)];while(e.accept("comma")){r=e.acceptNumber();if(!r){throw new Error("Unexpected symbol "+e.symbol+"; expected hour")}n.byhour.push(parseInt(r[0],10))}}while(e.accept("comma")||e.accept("at"))}function a(){switch(e.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return false}}function f(){switch(e.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return e.symbol.substr(0,2).toUpperCase();default:return false}}function o(){switch(e.symbol){case"last":e.nextSymbol();return-1;case"first":e.nextSymbol();return 1;case"second":e.nextSymbol();return e.accept("last")?-2:2;case"third":e.nextSymbol();return e.accept("last")?-3:3;case"nth":var t=parseInt(e.value[1],10);if(t<-366||t>366)throw new Error("Nth out of range: "+t);e.nextSymbol();return e.accept("last")?-t:t;default:return false}}function h(){e.accept("on");e.accept("the");var t=o();if(!t)return;n.bymonthday=[t];e.nextSymbol();while(e.accept("comma")){t=o();if(!t){throw new Error("Unexpected symbol "+e.symbol+"; expected monthday")}n.bymonthday.push(t);e.nextSymbol()}}function c(){if(e.symbol==="until"){var t=Date.parse(e.text);if(!t)throw new Error("Cannot parse until date:"+e.text);n.until=new Date(t)}else if(e.accept("for")){n.count=parseInt(e.value[0],10);e.expect("number")}}}var nt;(function(t){t[t["YEARLY"]=0]="YEARLY";t[t["MONTHLY"]=1]="MONTHLY";t[t["WEEKLY"]=2]="WEEKLY";t[t["DAILY"]=3]="DAILY";t[t["HOURLY"]=4]="HOURLY";t[t["MINUTELY"]=5]="MINUTELY";t[t["SECONDLY"]=6]="SECONDLY"})(nt||(nt={}));function et(t){return t<nt.HOURLY}var it=function(t,r){if(r===void 0){r=q}return new er(rt(t,r)||undefined)};var st=["count","until","interval","byweekday","bymonthday","bymonth"];V.IMPLEMENTED=[];V.IMPLEMENTED[nt.HOURLY]=st;V.IMPLEMENTED[nt.MINUTELY]=st;V.IMPLEMENTED[nt.DAILY]=["byhour"].concat(st);V.IMPLEMENTED[nt.WEEKLY]=st;V.IMPLEMENTED[nt.MONTHLY]=st;V.IMPLEMENTED[nt.YEARLY]=["byweekno","byyearday"].concat(st);var ut=function(t,r,n,e){return new V(t,r,n,e).toString()};var at=V.isFullyConvertible;var ft=function(){function t(t,r,n,e){this.hour=t;this.minute=r;this.second=n;this.millisecond=e||0}t.prototype.getHours=function(){return this.hour};t.prototype.getMinutes=function(){return this.minute};t.prototype.getSeconds=function(){return this.second};t.prototype.getMilliseconds=function(){return this.millisecond};t.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond};return t}();var ot=function(t){K(r,t);function r(r,n,e,i,s,u,a){var f=t.call(this,i,s,u,a)||this;f.year=r;f.month=n;f.day=e;return f}r.fromDate=function(t){return new this(t.getUTCFullYear(),t.getUTCMonth()+1,t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.valueOf()%1e3)};r.prototype.getWeekday=function(){return j(new Date(this.getTime()))};r.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()};r.prototype.getDay=function(){return this.day};r.prototype.getMonth=function(){return this.month};r.prototype.getYear=function(){return this.year};r.prototype.addYears=function(t){this.year+=t};r.prototype.addMonths=function(t){this.month+=t;if(this.month>12){var r=Math.floor(this.month/12);var n=d(this.month,12);this.month=n;this.year+=r;if(this.month===0){this.month=12;--this.year}}};r.prototype.addWeekly=function(t,r){if(r>this.getWeekday()){this.day+=-(this.getWeekday()+1+(6-r))+t*7}else{this.day+=-(this.getWeekday()-r)+t*7}this.fixDay()};r.prototype.addDaily=function(t){this.day+=t;this.fixDay()};r.prototype.addHours=function(t,r,n){if(r){this.hour+=Math.floor((23-this.hour)/t)*t}for(;;){this.hour+=t;var e=w(this.hour,24),i=e.div,s=e.mod;if(i){this.hour=s;this.addDaily(i)}if(m(n)||b(n,this.hour))break}};r.prototype.addMinutes=function(t,r,n,e){if(r){this.minute+=Math.floor((1439-(this.hour*60+this.minute))/t)*t}for(;;){this.minute+=t;var i=w(this.minute,60),s=i.div,u=i.mod;if(s){this.minute=u;this.addHours(s,false,n)}if((m(n)||b(n,this.hour))&&(m(e)||b(e,this.minute))){break}}};r.prototype.addSeconds=function(t,r,n,e,i){if(r){this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/t)*t}for(;;){this.second+=t;var s=w(this.second,60),u=s.div,a=s.mod;if(u){this.second=a;this.addMinutes(u,false,n,e)}if((m(n)||b(n,this.hour))&&(m(e)||b(e,this.minute))&&(m(i)||b(i,this.second))){break}}};r.prototype.fixDay=function(){if(this.day<=28){return}var t=N(this.year,this.month-1)[1];if(this.day<=t){return}while(this.day>t){this.day-=t;++this.month;if(this.month===13){this.month=1;++this.year;if(this.year>k){return}}t=N(this.year,this.month-1)[1]}};r.prototype.add=function(t,r){var n=t.freq,e=t.interval,i=t.wkst,s=t.byhour,u=t.byminute,a=t.bysecond;switch(n){case nt.YEARLY:return this.addYears(e);case nt.MONTHLY:return this.addMonths(e);case nt.WEEKLY:return this.addWeekly(e,i);case nt.DAILY:return this.addDaily(e);case nt.HOURLY:return this.addHours(e,r,s);case nt.MINUTELY:return this.addMinutes(e,r,s,u);case nt.SECONDLY:return this.addSeconds(e,r,s,u,a)}};return r}(ft);function ht(t){var r=[];var n=Object.keys(t);for(var e=0,i=n;e<i.length;e++){var s=i[e];if(!b(nr,s))r.push(s);if(S(t[s])&&!R(t[s])){r.push(s)}}if(r.length){throw new Error("Invalid options: "+r.join(", "))}return z({},t)}function ct(t){var r=z(z({},rr),ht(t));if(s(r.byeaster))r.freq=er.YEARLY;if(!(s(r.freq)&&er.FREQUENCIES[r.freq])){throw new Error("Invalid frequency: ".concat(r.freq," ").concat(t.freq))}if(!r.dtstart)r.dtstart=new Date((new Date).setMilliseconds(0));if(!s(r.wkst)){r.wkst=er.MO.weekday}else if(u(r.wkst));else{r.wkst=r.wkst.weekday}if(s(r.bysetpos)){if(u(r.bysetpos))r.bysetpos=[r.bysetpos];for(var n=0;n<r.bysetpos.length;n++){var e=r.bysetpos[n];if(e===0||!(e>=-366&&e<=366)){throw new Error("bysetpos must be between 1 and 366,"+" or between -366 and -1")}}}if(!(Boolean(r.byweekno)||y(r.byweekno)||y(r.byyearday)||Boolean(r.bymonthday)||y(r.bymonthday)||s(r.byweekday)||s(r.byeaster))){switch(r.freq){case er.YEARLY:if(!r.bymonth)r.bymonth=r.dtstart.getUTCMonth()+1;r.bymonthday=r.dtstart.getUTCDate();break;case er.MONTHLY:r.bymonthday=r.dtstart.getUTCDate();break;case er.WEEKLY:r.byweekday=[j(r.dtstart)];break}}if(s(r.bymonth)&&!f(r.bymonth)){r.bymonth=[r.bymonth]}if(s(r.byyearday)&&!f(r.byyearday)&&u(r.byyearday)){r.byyearday=[r.byyearday]}if(!s(r.bymonthday)){r.bymonthday=[];r.bynmonthday=[]}else if(f(r.bymonthday)){var o=[];var h=[];for(var n=0;n<r.bymonthday.length;n++){var e=r.bymonthday[n];if(e>0){o.push(e)}else if(e<0){h.push(e)}}r.bymonthday=o;r.bynmonthday=h}else if(r.bymonthday<0){r.bynmonthday=[r.bymonthday];r.bymonthday=[]}else{r.bynmonthday=[];r.bymonthday=[r.bymonthday]}if(s(r.byweekno)&&!f(r.byweekno)){r.byweekno=[r.byweekno]}if(!s(r.byweekday)){r.bynweekday=null}else if(u(r.byweekday)){r.byweekday=[r.byweekday];r.bynweekday=null}else if(a(r.byweekday)){r.byweekday=[i.fromStr(r.byweekday).weekday];r.bynweekday=null}else if(r.byweekday instanceof i){if(!r.byweekday.n||r.freq>er.MONTHLY){r.byweekday=[r.byweekday.weekday];r.bynweekday=null}else{r.bynweekday=[[r.byweekday.weekday,r.byweekday.n]];r.byweekday=null}}else{var c=[];var v=[];for(var n=0;n<r.byweekday.length;n++){var l=r.byweekday[n];if(u(l)){c.push(l);continue}else if(a(l)){c.push(i.fromStr(l).weekday);continue}if(!l.n||r.freq>er.MONTHLY){c.push(l.weekday)}else{v.push([l.weekday,l.n])}}r.byweekday=y(c)?c:null;r.bynweekday=y(v)?v:null}if(!s(r.byhour)){r.byhour=r.freq<er.HOURLY?[r.dtstart.getUTCHours()]:null}else if(u(r.byhour)){r.byhour=[r.byhour]}if(!s(r.byminute)){r.byminute=r.freq<er.MINUTELY?[r.dtstart.getUTCMinutes()]:null}else if(u(r.byminute)){r.byminute=[r.byminute]}if(!s(r.bysecond)){r.bysecond=r.freq<er.SECONDLY?[r.dtstart.getUTCSeconds()]:null}else if(u(r.bysecond)){r.bysecond=[r.bysecond]}return{parsedOptions:r}}function vt(t){var r=t.dtstart.getTime()%1e3;if(!et(t.freq)){return[]}var n=[];t.byhour.forEach((function(e){t.byminute.forEach((function(i){t.bysecond.forEach((function(t){n.push(new ft(e,i,t,r))}))}))}));return n}function lt(t){var r=t.split("\n").map(wt).filter((function(t){return t!==null}));return z(z({},r[0]),r[1])}function dt(t){var r={};var n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!n){return r}var e=n[1],i=n[2];if(e){r.tzid=e}r.dtstart=H(i);return r}function wt(t){t=t.replace(/^\s+|\s+$/,"");if(!t.length)return null;var r=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!r){return mt(t)}var n=r[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return mt(t);case"DTSTART":return dt(t);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(t))}}function mt(t){var r=t.replace(/^RRULE:/i,"");var n=dt(r);var e=t.replace(/^(?:RRULE|EXRULE):/i,"").split(";");e.forEach((function(r){var e=r.split("="),i=e[0],s=e[1];switch(i.toUpperCase()){case"FREQ":n.freq=nt[s.toUpperCase()];break;case"WKST":n.wkst=tr[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=yt(s);var a=i.toLowerCase();n[a]=u;break;case"BYWEEKDAY":case"BYDAY":n.byweekday=pt(s);break;case"DTSTART":case"TZID":var f=dt(t);n.tzid=f.tzid;n.dtstart=f.dtstart;break;case"UNTIL":n.until=H(s);break;case"BYEASTER":n.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+i+"'")}}));return n}function yt(t){if(t.indexOf(",")!==-1){var r=t.split(",");return r.map(bt)}return bt(t)}function bt(t){if(/^[+-]?\d+$/.test(t)){return Number(t)}return t}function pt(t){var r=t.split(",");return r.map((function(t){if(t.length===2){return tr[t]}var r=t.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!r||r.length<3){throw new SyntaxError("Invalid weekday string: ".concat(t))}var n=Number(r[1]);var e=r[2];var s=tr[e].weekday;return new i(s,n)}))}var Et=function(){function t(t,r){if(isNaN(t.getTime())){throw new RangeError("Invalid date passed to DateWithZone")}this.date=t;this.tzid=r}Object.defineProperty(t.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:false,configurable:true});t.prototype.toString=function(){var t=C(this.date.getTime(),this.isUTC);if(!this.isUTC){return";TZID=".concat(this.tzid,":").concat(t)}return":".concat(t)};t.prototype.getTime=function(){return this.date.getTime()};t.prototype.rezonedDate=function(){if(this.isUTC){return this.date}return B(this.date,this.tzid)};return t}();function Dt(t){var r=[];var n="";var e=Object.keys(t);var a=Object.keys(rr);for(var o=0;o<e.length;o++){if(e[o]==="tzid")continue;if(!b(a,e[o]))continue;var h=e[o].toUpperCase();var v=t[e[o]];var l="";if(!s(v)||f(v)&&!v.length)continue;switch(h){case"FREQ":l=er.FREQUENCIES[t.freq];break;case"WKST":if(u(v)){l=new i(v).toString()}else{l=v.toString()}break;case"BYWEEKDAY":h="BYDAY";l=c(v).map((function(t){if(t instanceof i){return t}if(f(t)){return new i(t[0],t[1])}return new i(t)})).toString();break;case"DTSTART":n=kt(v,t.tzid);break;case"UNTIL":l=C(v,!t.tzid);break;default:if(f(v)){var d=[];for(var w=0;w<v.length;w++){d[w]=String(v[w])}l=d.toString()}else{l=String(v)}}if(l){r.push([h,l])}}var m=r.map((function(t){var r=t[0],n=t[1];return"".concat(r,"=").concat(n.toString())})).join(";");var y="";if(m!==""){y="RRULE:".concat(m)}return[n,y].filter((function(t){return!!t})).join("\n")}function kt(t,r){if(!t){return""}return"DTSTART"+new Et(new Date(t),r).toString()}function Tt(t,r){if(Array.isArray(t)){if(!Array.isArray(r))return false;if(t.length!==r.length)return false;return t.every((function(t,n){return t.getTime()===r[n].getTime()}))}if(t instanceof Date){return r instanceof Date&&t.getTime()===r.getTime()}return t===r}var gt=function(){function t(){this.all=false;this.before=[];this.after=[];this.between=[]}t.prototype._cacheAdd=function(t,r,n){if(r){r=r instanceof Date?x(r):L(r)}if(t==="all"){this.all=r}else{n._value=r;this[t].push(n)}};t.prototype._cacheGet=function(t,r){var n=false;var e=r?Object.keys(r):[];var i=function(t){for(var n=0;n<e.length;n++){var i=e[n];if(!Tt(r[i],t[i])){return true}}return false};var s=this[t];if(t==="all"){n=this.all}else if(f(s)){for(var u=0;u<s.length;u++){var a=s[u];if(e.length&&i(a))continue;n=a._value;break}}if(!n&&this.all){var o=new Z(t,r);for(var u=0;u<this.all.length;u++){if(!o.accept(this.all[u]))break}n=o.getValue();this._cacheAdd(t,n,r)}return f(n)?L(n):n instanceof Date?x(n):n};return t}();var Mt=X(X(X(X(X(X(X(X(X(X(X(X(X([],h(1,31),true),h(2,28),true),h(3,31),true),h(4,30),true),h(5,31),true),h(6,30),true),h(7,31),true),h(8,31),true),h(9,30),true),h(10,31),true),h(11,30),true),h(12,31),true),h(1,7),true);var St=X(X(X(X(X(X(X(X(X(X(X(X(X([],h(1,31),true),h(2,29),true),h(3,31),true),h(4,30),true),h(5,31),true),h(6,30),true),h(7,31),true),h(8,31),true),h(9,30),true),h(10,31),true),h(11,30),true),h(12,31),true),h(1,7),true);var Rt=o(1,29);var It=o(1,30);var Ut=o(1,31);var At=o(1,32);var Yt=X(X(X(X(X(X(X(X(X(X(X(X(X([],At,true),It,true),At,true),Ut,true),At,true),Ut,true),At,true),At,true),Ut,true),At,true),Ut,true),At,true),At.slice(0,7),true);var Ot=X(X(X(X(X(X(X(X(X(X(X(X(X([],At,true),Rt,true),At,true),Ut,true),At,true),Ut,true),At,true),At,true),Ut,true),At,true),Ut,true),At,true),At.slice(0,7),true);var jt=o(-28,0);var Nt=o(-29,0);var $t=o(-30,0);var xt=o(-31,0);var Lt=X(X(X(X(X(X(X(X(X(X(X(X(X([],xt,true),Nt,true),xt,true),$t,true),xt,true),$t,true),xt,true),xt,true),$t,true),xt,true),$t,true),xt,true),xt.slice(0,7),true);var _t=X(X(X(X(X(X(X(X(X(X(X(X(X([],xt,true),jt,true),xt,true),$t,true),xt,true),$t,true),xt,true),xt,true),$t,true),xt,true),$t,true),xt,true),xt.slice(0,7),true);var Ct=[0,31,60,91,121,152,182,213,244,274,305,335,366];var Ht=[0,31,59,90,120,151,181,212,243,273,304,334,365];var Wt=function(){var t=[];for(var r=0;r<55;r++)t=t.concat(o(7));return t}();function Bt(t,r){var n=p(t,1,1);var e=M(t)?366:365;var i=M(t+1)?366:365;var s=A(n);var u=j(n);var a=z(z({yearlen:e,nextyearlen:i,yearordinal:s,yearweekday:u},Zt(t)),{wnomask:null});if(m(r.byweekno)){return a}a.wnomask=h(0,e+7);var f;var o;var c=f=d(7-u+r.wkst,7);if(c>=4){c=0;o=a.yearlen+d(u-r.wkst,7)}else{o=e-c}var v=Math.floor(o/7);var l=d(o,7);var w=Math.floor(v+l/4);for(var y=0;y<r.byweekno.length;y++){var E=r.byweekno[y];if(E<0){E+=w+1}if(!(E>0&&E<=w)){continue}var D=void 0;if(E>1){D=c+(E-1)*7;if(c!==f){D-=7-f}}else{D=c}for(var k=0;k<7;k++){a.wnomask[D]=1;D++;if(a.wdaymask[D]===r.wkst)break}}if(b(r.byweekno,1)){var D=c+w*7;if(c!==f)D-=7-f;if(D<e){for(var y=0;y<7;y++){a.wnomask[D]=1;D+=1;if(a.wdaymask[D]===r.wkst)break}}}if(c){var T=void 0;if(!b(r.byweekno,-1)){var g=j(p(t-1,1,1));var S=d(7-g.valueOf()+r.wkst,7);var R=M(t-1)?366:365;var I=void 0;if(S>=4){S=0;I=R+d(g-r.wkst,7)}else{I=e-c}T=Math.floor(52+d(I,7)/4)}else{T=-1}if(b(r.byweekno,T)){for(var D=0;D<c;D++)a.wnomask[D]=1}}return a}function Zt(t){var r=M(t)?366:365;var n=p(t,1,1);var e=j(n);if(r===365){return{mmask:Mt,mdaymask:Ot,nmdaymask:_t,wdaymask:Wt.slice(e),mrange:Ht}}return{mmask:St,mdaymask:Yt,nmdaymask:Lt,wdaymask:Wt.slice(e),mrange:Ct}}function Ft(t,r,n,e,i,s){var u={lastyear:t,lastmonth:r,nwdaymask:[]};var a=[];if(s.freq===er.YEARLY){if(m(s.bymonth)){a=[[0,n]]}else{for(var f=0;f<s.bymonth.length;f++){r=s.bymonth[f];a.push(e.slice(r-1,r+1))}}}else if(s.freq===er.MONTHLY){a=[e.slice(r-1,r+1)]}if(m(a)){return u}u.nwdaymask=h(0,n);for(var f=0;f<a.length;f++){var o=a[f];var c=o[0];var v=o[1]-1;for(var l=0;l<s.bynweekday.length;l++){var w=void 0;var y=s.bynweekday[l],b=y[0],p=y[1];if(p<0){w=v+(p+1)*7;w-=d(i[w]-b,7)}else{w=c+(p-1)*7;w+=d(7-i[w]+b,7)}if(c<=w&&w<=v)u.nwdaymask[w]=1}}return u}function Kt(t,r){if(r===void 0){r=0}var n=t%19;var e=Math.floor(t/100);var i=t%100;var s=Math.floor(e/4);var u=e%4;var a=Math.floor((e+8)/25);var f=Math.floor((e-a+1)/3);var o=Math.floor(19*n+e-s-f+15)%30;var h=Math.floor(i/4);var c=i%4;var v=Math.floor(32+2*u+2*h-o-c)%7;var l=Math.floor((n+11*o+22*v)/451);var d=Math.floor((o+v-7*l+114)/31);var w=(o+v-7*l+114)%31+1;var m=Date.UTC(t,d-1,w+r);var y=Date.UTC(t,0,1);return[Math.ceil((m-y)/(1e3*60*60*24))]}var zt=function(){function t(t){this.options=t}t.prototype.rebuild=function(t,r){var n=this.options;if(t!==this.lastyear){this.yearinfo=Bt(t,n)}if(y(n.bynweekday)&&(r!==this.lastmonth||t!==this.lastyear)){var e=this.yearinfo,i=e.yearlen,u=e.mrange,a=e.wdaymask;this.monthinfo=Ft(t,r,i,u,a,n)}if(s(n.byeaster)){this.eastermask=Kt(t,n.byeaster)}};Object.defineProperty(t.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:false,configurable:true});t.prototype.ydayset=function(){return[o(this.yearlen),0,this.yearlen]};t.prototype.mdayset=function(t,r){var n=this.mrange[r-1];var e=this.mrange[r];var i=h(null,this.yearlen);for(var s=n;s<e;s++)i[s]=s;return[i,n,e]};t.prototype.wdayset=function(t,r,n){var e=h(null,this.yearlen+7);var i=A(p(t,r,n))-this.yearordinal;var s=i;for(var u=0;u<7;u++){e[i]=i;++i;if(this.wdaymask[i]===this.options.wkst)break}return[e,s,i]};t.prototype.ddayset=function(t,r,n){var e=h(null,this.yearlen);var i=A(p(t,r,n))-this.yearordinal;e[i]=i;return[e,i,i+1]};t.prototype.htimeset=function(t,r,n,e){var i=this;var s=[];this.options.byminute.forEach((function(r){s=s.concat(i.mtimeset(t,r,n,e))}));_(s);return s};t.prototype.mtimeset=function(t,r,n,e){var i=this.options.bysecond.map((function(n){return new ft(t,r,n,e)}));_(i);return i};t.prototype.stimeset=function(t,r,n,e){return[new ft(t,r,n,e)]};t.prototype.getdayset=function(t){switch(t){case nt.YEARLY:return this.ydayset.bind(this);case nt.MONTHLY:return this.mdayset.bind(this);case nt.WEEKLY:return this.wdayset.bind(this);case nt.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}};t.prototype.gettimeset=function(t){switch(t){case nt.HOURLY:return this.htimeset.bind(this);case nt.MINUTELY:return this.mtimeset.bind(this);case nt.SECONDLY:return this.stimeset.bind(this)}};return t}();function Xt(t,r,n,e,i,u){var a=[];for(var f=0;f<t.length;f++){var o=void 0;var h=void 0;var c=t[f];if(c<0){o=Math.floor(c/r.length);h=d(c,r.length)}else{o=Math.floor((c-1)/r.length);h=d(c-1,r.length)}var v=[];for(var l=n;l<e;l++){var w=u[l];if(!s(w))continue;v.push(w)}var m=void 0;if(o<0){m=v.slice(o)[0]}else{m=v[o]}var y=r[h];var p=Y(i.yearordinal+m);var E=$(p,y);if(!b(a,E))a.push(E)}_(a);return a}function Jt(t,r){var n=r.dtstart,e=r.freq,i=r.interval,u=r.until,a=r.bysetpos;var f=r.count;if(f===0||i===0){return Qt(t)}var o=ot.fromDate(n);var h=new zt(r);h.rebuild(o.year,o.month);var c=Vt(h,o,r);for(;;){var v=h.getdayset(e)(o.year,o.month,o.day),l=v[0],d=v[1],w=v[2];var m=Gt(l,d,w,h,r);if(y(a)){var b=Xt(a,c,d,w,h,l);for(var p=0;p<b.length;p++){var E=b[p];if(u&&E>u){return Qt(t)}if(E>=n){var D=Pt(E,r);if(!t.accept(D)){return Qt(t)}if(f){--f;if(!f){return Qt(t)}}}}}else{for(var p=d;p<w;p++){var T=l[p];if(!s(T)){continue}var g=Y(h.yearordinal+T);for(var M=0;M<c.length;M++){var S=c[M];var E=$(g,S);if(u&&E>u){return Qt(t)}if(E>=n){var D=Pt(E,r);if(!t.accept(D)){return Qt(t)}if(f){--f;if(!f){return Qt(t)}}}}}}if(r.interval===0){return Qt(t)}o.add(r,m);if(o.year>k){return Qt(t)}if(!et(e)){c=h.gettimeset(e)(o.hour,o.minute,o.second,0)}h.rebuild(o.year,o.month)}}function qt(t,r,n){var e=n.bymonth,i=n.byweekno,s=n.byweekday,u=n.byeaster,a=n.bymonthday,f=n.bynmonthday,o=n.byyearday;return y(e)&&!b(e,t.mmask[r])||y(i)&&!t.wnomask[r]||y(s)&&!b(s,t.wdaymask[r])||y(t.nwdaymask)&&!t.nwdaymask[r]||u!==null&&!b(t.eastermask,r)||(y(a)||y(f))&&!b(a,t.mdaymask[r])&&!b(f,t.nmdaymask[r])||y(o)&&(r<t.yearlen&&!b(o,r+1)&&!b(o,-t.yearlen+r)||r>=t.yearlen&&!b(o,r+1-t.yearlen)&&!b(o,-t.nextyearlen+r-t.yearlen))}function Pt(t,r){return new Et(t,r.tzid).rezonedDate()}function Qt(t){return t.getValue()}function Gt(t,r,n,e,i){var s=false;for(var u=r;u<n;u++){var a=t[u];s=qt(e,a,i);if(s)t[a]=null}return s}function Vt(t,r,n){var e=n.freq,i=n.byhour,s=n.byminute,u=n.bysecond;if(et(e)){return vt(n)}if(e>=er.HOURLY&&y(i)&&!b(i,r.hour)||e>=er.MINUTELY&&y(s)&&!b(s,r.minute)||e>=er.SECONDLY&&y(u)&&!b(u,r.second)){return[]}return t.gettimeset(e)(r.hour,r.minute,r.second,r.millisecond)}var tr={MO:new i(0),TU:new i(1),WE:new i(2),TH:new i(3),FR:new i(4),SA:new i(5),SU:new i(6)};var rr={freq:nt.YEARLY,dtstart:null,interval:1,wkst:tr.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null};var nr=Object.keys(rr);var er=function(){function t(t,r){if(t===void 0){t={}}if(r===void 0){r=false}this._cache=r?null:new gt;this.origOptions=ht(t);var n=ct(t).parsedOptions;this.options=n}t.parseText=function(t,r){return rt(t,r)};t.fromText=function(t,r){return it(t,r)};t.fromString=function(r){return new t(t.parseString(r)||undefined)};t.prototype._iter=function(t){return Jt(t,this.options)};t.prototype._cacheGet=function(t,r){if(!this._cache)return false;return this._cache._cacheGet(t,r)};t.prototype._cacheAdd=function(t,r,n){if(!this._cache)return;return this._cache._cacheAdd(t,r,n)};t.prototype.all=function(t){if(t){return this._iter(new J("all",{},t))}var r=this._cacheGet("all");if(r===false){r=this._iter(new Z("all",{}));this._cacheAdd("all",r)}return r};t.prototype.between=function(t,r,n,e){if(n===void 0){n=false}if(!R(t)||!R(r)){throw new Error("Invalid date passed in to RRule.between")}var i={before:r,after:t,inc:n};if(e){return this._iter(new J("between",i,e))}var s=this._cacheGet("between",i);if(s===false){s=this._iter(new Z("between",i));this._cacheAdd("between",s,i)}return s};t.prototype.before=function(t,r){if(r===void 0){r=false}if(!R(t)){throw new Error("Invalid date passed in to RRule.before")}var n={dt:t,inc:r};var e=this._cacheGet("before",n);if(e===false){e=this._iter(new Z("before",n));this._cacheAdd("before",e,n)}return e};t.prototype.after=function(t,r){if(r===void 0){r=false}if(!R(t)){throw new Error("Invalid date passed in to RRule.after")}var n={dt:t,inc:r};var e=this._cacheGet("after",n);if(e===false){e=this._iter(new Z("after",n));this._cacheAdd("after",e,n)}return e};t.prototype.count=function(){return this.all().length};t.prototype.toString=function(){return Dt(this.origOptions)};t.prototype.toText=function(t,r,n){return ut(this,t,r,n)};t.prototype.isFullyConvertibleToText=function(){return at(this)};t.prototype.clone=function(){return new t(this.origOptions)};t.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"];t.YEARLY=nt.YEARLY;t.MONTHLY=nt.MONTHLY;t.WEEKLY=nt.WEEKLY;t.DAILY=nt.DAILY;t.HOURLY=nt.HOURLY;t.MINUTELY=nt.MINUTELY;t.SECONDLY=nt.SECONDLY;t.MO=tr.MO;t.TU=tr.TU;t.WE=tr.WE;t.TH=tr.TH;t.FR=tr.FR;t.SA=tr.SA;t.SU=tr.SU;t.parseString=lt;t.optionsToString=Dt;return t}();function ir(t,r,n,e,i,s){var u={};var a=t.accept;function f(t,r){n.forEach((function(n){n.between(t,r,true).forEach((function(t){u[Number(t)]=true}))}))}i.forEach((function(t){var r=new Et(t,s).rezonedDate();u[Number(r)]=true}));t.accept=function(t){var r=Number(t);if(isNaN(r))return a.call(this,t);if(!u[r]){f(new Date(r-1),new Date(r+1));if(!u[r]){u[r]=true;return a.call(this,t)}}return true};if(t.method==="between"){f(t.args.after,t.args.before);t.accept=function(t){var r=Number(t);if(!u[r]){u[r]=true;return a.call(this,t)}return true}}for(var o=0;o<e.length;o++){var h=new Et(e[o],s).rezonedDate();if(!t.accept(new Date(h.getTime())))break}r.forEach((function(r){Jt(t,r.options)}));var c=t._result;_(c);switch(t.method){case"all":case"between":return c;case"before":return c.length&&c[c.length-1]||null;case"after":default:return c.length&&c[0]||null}}var sr={dtstart:null,cache:false,unfold:false,forceset:false,compatible:false,tzid:null};function ur(t,r){var n=[];var e=[];var i=[];var s=[];var u=dt(t);var a=u.dtstart;var f=u.tzid;var o=lr(t,r.unfold);o.forEach((function(t){var r;if(!t)return;var u=vr(t),a=u.name,o=u.parms,h=u.value;switch(a.toUpperCase()){case"RRULE":if(o.length){throw new Error("unsupported RRULE parm: ".concat(o.join(",")))}n.push(lt(t));break;case"RDATE":var c=(r=/RDATE(?:;TZID=([^:=]+))?/i.exec(t))!==null&&r!==void 0?r:[],v=c[1];if(v&&!f){f=v}e=e.concat(wr(h,o));break;case"EXRULE":if(o.length){throw new Error("unsupported EXRULE parm: ".concat(o.join(",")))}i.push(lt(h));break;case"EXDATE":s=s.concat(wr(h,o));break;case"DTSTART":break;default:throw new Error("unsupported property: "+a)}}));return{dtstart:a,tzid:f,rrulevals:n,rdatevals:e,exrulevals:i,exdatevals:s}}function ar(t,r){var n=ur(t,r),e=n.rrulevals,i=n.rdatevals,s=n.exrulevals,u=n.exdatevals,a=n.dtstart,f=n.tzid;var o=r.cache===false;if(r.compatible){r.forceset=true;r.unfold=true}if(r.forceset||e.length>1||i.length||s.length||u.length){var h=new yr(o);h.dtstart(a);h.tzid(f||undefined);e.forEach((function(t){h.rrule(new er(or(t,a,f),o))}));i.forEach((function(t){h.rdate(t)}));s.forEach((function(t){h.exrule(new er(or(t,a,f),o))}));u.forEach((function(t){h.exdate(t)}));if(r.compatible&&r.dtstart)h.rdate(a);return h}var c=e[0]||{};return new er(or(c,c.dtstart||r.dtstart||a,c.tzid||r.tzid||f),o)}function fr(t,r){if(r===void 0){r={}}return ar(t,hr(r))}function or(t,r,n){return z(z({},t),{dtstart:r,tzid:n})}function hr(t){var r=[];var n=Object.keys(t);var e=Object.keys(sr);n.forEach((function(t){if(!b(e,t))r.push(t)}));if(r.length){throw new Error("Invalid options: "+r.join(", "))}return z(z({},sr),t)}function cr(t){if(t.indexOf(":")===-1){return{name:"RRULE",value:t}}var r=l(t,":",1),n=r[0],e=r[1];return{name:n,value:e}}function vr(t){var r=cr(t),n=r.name,e=r.value;var i=n.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:e}}function lr(t,r){if(r===void 0){r=false}t=t&&t.trim();if(!t)throw new Error("Invalid empty string");if(!r){return t.split(/\s/)}var n=t.split("\n");var e=0;while(e<n.length){var i=n[e]=n[e].replace(/\s+$/g,"");if(!i){n.splice(e,1)}else if(e>0&&i[0]===" "){n[e-1]+=i.slice(1);n.splice(e,1)}else{e+=1}}return n}function dr(t){t.forEach((function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t)){throw new Error("unsupported RDATE/EXDATE parm: "+t)}}))}function wr(t,r){dr(r);return t.split(",").map((function(t){return H(t)}))}function mr(t){var r=this;return function(n){if(n!==undefined){r["_".concat(t)]=n}if(r["_".concat(t)]!==undefined){return r["_".concat(t)]}for(var e=0;e<r._rrule.length;e++){var i=r._rrule[e].origOptions[t];if(i){return i}}}}var yr=function(t){K(r,t);function r(r){if(r===void 0){r=false}var n=t.call(this,{},r)||this;n.dtstart=mr.apply(n,["dtstart"]);n.tzid=mr.apply(n,["tzid"]);n._rrule=[];n._rdate=[];n._exrule=[];n._exdate=[];return n}r.prototype._iter=function(t){return ir(t,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())};r.prototype.rrule=function(t){br(t,this._rrule)};r.prototype.exrule=function(t){br(t,this._exrule)};r.prototype.rdate=function(t){pr(t,this._rdate)};r.prototype.exdate=function(t){pr(t,this._exdate)};r.prototype.rrules=function(){return this._rrule.map((function(t){return fr(t.toString())}))};r.prototype.exrules=function(){return this._exrule.map((function(t){return fr(t.toString())}))};r.prototype.rdates=function(){return this._rdate.map((function(t){return new Date(t.getTime())}))};r.prototype.exdates=function(){return this._exdate.map((function(t){return new Date(t.getTime())}))};r.prototype.valueOf=function(){var t=[];if(!this._rrule.length&&this._dtstart){t=t.concat(Dt({dtstart:this._dtstart}))}this._rrule.forEach((function(r){t=t.concat(r.toString().split("\n"))}));this._exrule.forEach((function(r){t=t.concat(r.toString().split("\n").map((function(t){return t.replace(/^RRULE:/,"EXRULE:")})).filter((function(t){return!/^DTSTART/.test(t)})))}));if(this._rdate.length){t.push(Er("RDATE",this._rdate,this.tzid()))}if(this._exdate.length){t.push(Er("EXDATE",this._exdate,this.tzid()))}return t};r.prototype.toString=function(){return this.valueOf().join("\n")};r.prototype.clone=function(){var t=new r(!!this._cache);this._rrule.forEach((function(r){return t.rrule(r.clone())}));this._exrule.forEach((function(r){return t.exrule(r.clone())}));this._rdate.forEach((function(r){return t.rdate(new Date(r.getTime()))}));this._exdate.forEach((function(r){return t.exdate(new Date(r.getTime()))}));return t};return r}(er);function br(t,r){if(!(t instanceof er)){throw new TypeError(String(t)+" is not RRule instance")}if(!b(r.map(String),String(t))){r.push(t)}}function pr(t,r){if(!(t instanceof Date)){throw new TypeError(String(t)+" is not Date instance")}if(!b(r.map(Number),Number(t))){r.push(t);_(r)}}function Er(t,r,n){var e=!n||n.toUpperCase()==="UTC";var i=e?"".concat(t,":"):"".concat(t,";TZID=").concat(n,":");var s=r.map((function(t){return C(t.valueOf(),e)})).join(",");return"".concat(i).concat(s)}function Dr(...t){if(window&&window.localStorage&&window.localStorage.getItem("debug")){console.debug(...t)}}function kr(...t){console.error(...t)}function Tr(){return Math.random().toString(36).substr(2,9)}function gr(t){return t.toString().replace(/^on/,"")}function Mr(t){const r=new Date(t*1e3);const n=new Date;const e=new Date(n.getFullYear(),n.getMonth(),n.getDate());if(r>=e){const t=new Intl.DateTimeFormat("default",{hour:"numeric",minute:"numeric",hour12:true});return t.format(r)}else{const t=new Intl.DateTimeFormat("default",{month:"short",day:"numeric"});return t.format(r)}}function Sr(t){return t.name?`${t.name} - ${t.email}`:t.email}function Rr(t,r="",n=1,e=3){const i=t.find((t=>t.email?.toLowerCase()===r.toLowerCase()));const s=t.filter((t=>t.email?.toLowerCase()!==r.toLowerCase()));const u=s.length;const a=s.slice(0,e).map((t=>t.name||t.email)).join(", ");if(u===0){return i?"me":""}else if(u===1){return i&&n>1?`me, ${a}`:a}else if(u===2){return i?`me, ${a}`:`${a}`}else{return i?`me, ${a}, +${u-e}`:`${a}, +${u-e}`}}const Ir=[{amount:60,name:"seconds"},{amount:60,name:"minutes"},{amount:24,name:"hours"},{amount:7,name:"days"},{amount:4.34524,name:"weeks"},{amount:12,name:"months"},{amount:Number.POSITIVE_INFINITY,name:"years"}];const Ur=t=>{const r=new Intl.RelativeTimeFormat(undefined,{numeric:"auto"});const n=new Date;let e=(t.getTime()-n.getTime())/1e3;for(let t=0;t<=Ir.length;t++){const n=Ir[t];if(Math.abs(e)<n.amount){return r.format(Math.round(e),n.name)}e/=n.amount}};function Ar(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function Yr(t){return new Date(t.getFullYear(),t.getMonth(),1)}function Or(t,r){return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function jr(t,r){return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()}function Nr(t){return t.replace(/\w\S*/g,(t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()))}function $r(t){return t.replace("CATEGORY_","").replace(/_/g," ")}function xr(t){const r=/<[^>]*>/g;return r.test(t)?"html":"plain"}function Lr(t){const r=t.headers;const n=r&&r.find((t=>t.name==="Content-Type"))?.value||"";const e=r&&r.find((t=>t.name==="Content-Disposition"))?.value||"";if(n.includes("text/html")){return true}if(e.includes("inline")){return true}if(t.body&&xr(t.body)==="html"){return true}return false}function _r(t){const r=t.split("\n").filter((t=>t.trim().length>0));const n=r.map((t=>`<p>${t}</p>`));let e=n.join("");const i=/((?:https?|ftp):\/\/[^\s]+)/g;e=e.replace(i,'<a href="$1">$1</a>');return e}function Cr(t){const r=(new DOMParser).parseFromString(t,"text/html");return r.body.textContent||""}const Hr=t=>{if(t===""){return true}const r=/^(0[0-9]|1[0-2]|^[0-9])(:[0-5][0-9][ap]m?|:[0-5][0-9]|:[0-5]|:)?$/i;return r.test(t)};const Wr=t=>{const r=/^(0[1-9]|1[0-2]):([0-5][0-9])(am|pm)$/i;return r.test(t)};function Br(t=null){let r=n();if(t){r=t}const e=r.minute()%15;let i;if(e!==0){i=r.add(15-e,"minute")}else{i=r}return i}function Zr(t){const r=n();let e="";const[i,s]=t.split(":");if(i.length===1){e+="0"+i}else if(i.length===2){e+=i}e+=":";if(s===undefined||s==""){e+="00"}else{if(s.length===1){e+=s+"0"}else{e+=s}}const u=e.slice(-1);if(u==="a"){e+="m"}if(u==="p"){e+="m"}if(e.slice(-1)!=="m"){if(e.split(":")[0]=="00"){e+="am"}else{e+=r.format("a")}}return e}function Fr(t){const[r,n]=t.split(":").map((t=>parseInt(t,10)));let e=r;const i=e>=12?"pm":"am";e=e%12;e=e?e:12;const s=e.toString().padStart(2,"0");const u=n.toString().padStart(2,"0");return`${s}:${u}${i}`}function Kr(t){const[r,n]=t.split(/(am|pm)/i);const[e,i]=r.split(":").map((t=>parseInt(t,10)));let s=e;if(n.toLowerCase()==="pm"&&s<12){s+=12}else if(n.toLowerCase()==="am"&&s===12){s=0}return`${s.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function zr(t){const[r,n]=t.match(/(\d+):(\d+)(am|pm)/).slice(1);let e=parseInt(r,10)*60+parseInt(n,10);if(t.includes("pm")&&parseInt(r,10)<12)e+=12*60;if(t.includes("am")&&parseInt(r,10)===12)e-=12*60;return e}function Xr(t){const r=Math.floor(t/60);const n=t%60;return`${r}:${n<10?"0":""}${n}`}function Jr(){const t=navigator.userAgent;const r=/Chrome/.test(t)&&/Google Inc/.test(navigator.vendor);const n=/Safari/.test(t)&&/Apple Computer/.test(navigator.vendor);const e=/Firefox/.test(t);const i=/Trident/.test(t);const s=/Edge/.test(t);const u=r&&/Edg/.test(t);if(u)return"Edge (Chromium)";if(r)return"Chrome";if(n)return"Safari";if(e)return"Firefox";if(i)return"Internet Explorer";if(s)return"Edge (Legacy)";return"Unknown"}export{Br as A,Wr as B,Rr as a,Mr as b,gr as c,Dr as d,kr as e,$r as f,Ur as g,Sr as h,Cr as i,Lr as j,xr as k,Ar as l,Yr as m,Or as n,jr as o,_r as p,zr as q,Fr as r,Kr as s,Nr as t,Tr as u,Xr as v,Jr as w,n as x,Zr as y,Hr as z};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{c as t}from"./p-cb65c223.js";var r={exports:{}};(function(r,n){!function(t,n){r.exports=n()}(t,(function(){var t=1e3,r=6e4,n=36e5,e="millisecond",i="second",s="minute",u="hour",a="day",f="week",o="month",h="quarter",c="year",v="date",l="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],n=t%100;return"["+t+(r[(n-20)%10]||r[n]||r[0])+"]"}},y=function(t,r,n){var e=String(t);return!e||e.length>=r?t:""+Array(r+1-e.length).join(n)+t},b={s:y,z:function(t){var r=-t.utcOffset(),n=Math.abs(r),e=Math.floor(n/60),i=n%60;return(r<=0?"+":"-")+y(e,2,"0")+":"+y(i,2,"0")},m:function t(r,n){if(r.date()<n.date())return-t(n,r);var e=12*(n.year()-r.year())+(n.month()-r.month()),i=r.clone().add(e,o),s=n-i<0,u=r.clone().add(e+(s?-1:1),o);return+(-(e+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:o,y:c,w:f,d:a,D:v,h:u,m:s,s:i,ms:e,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},p="en",E={};E[p]=m;var D=function(t){return t instanceof M},k=function t(r,n,e){var i;if(!r)return p;if("string"==typeof r){var s=r.toLowerCase();E[s]&&(i=s),n&&(E[s]=n,i=s);var u=r.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=r.name;E[a]=r,i=a}return!e&&i&&(p=i),i||!e&&p},T=function(t,r){if(D(t))return t.clone();var n="object"==typeof r?r:{};return n.date=t,n.args=arguments,new M(n)},g=b;g.l=k,g.i=D,g.w=function(t,r){return T(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var M=function(){function m(t){this.$L=k(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var r=t.date,n=t.utc;if(null===r)return new Date(NaN);if(g.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var e=r.match(d);if(e){var i=e[2]-1||0,s=(e[7]||"0").substring(0,3);return n?new Date(Date.UTC(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)):new Date(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)}}return new Date(r)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return g},y.isValid=function(){return!(this.$d.toString()===l)},y.isSame=function(t,r){var n=T(t);return this.startOf(r)<=n&&n<=this.endOf(r)},y.isAfter=function(t,r){return T(t)<this.startOf(r)},y.isBefore=function(t,r){return this.endOf(r)<T(t)},y.$g=function(t,r,n){return g.u(t)?this[r]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,r){var n=this,e=!!g.u(r)||r,h=g.p(t),l=function(t,r){var i=g.w(n.$u?Date.UTC(n.$y,r,t):new Date(n.$y,r,t),n);return e?i:i.endOf(a)},d=function(t,r){return g.w(n.toDate()[t].apply(n.toDate("s"),(e?[0,0,0,0]:[23,59,59,999]).slice(r)),n)},w=this.$W,m=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case c:return e?l(1,0):l(31,11);case o:return e?l(1,m):l(0,m+1);case f:var p=this.$locale().weekStart||0,E=(w<p?w+7:w)-p;return l(e?y-E:y+(6-E),m);case a:case v:return d(b+"Hours",0);case u:return d(b+"Minutes",1);case s:return d(b+"Seconds",2);case i:return d(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,r){var n,f=g.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[v]=h+"Date",n[o]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[e]=h+"Milliseconds",n)[f],d=f===a?this.$D+(r-this.$W):r;if(f===o||f===c){var w=this.clone().set(v,1);w.$d[l](d),w.init(),this.$d=w.set(v,Math.min(this.$D,w.daysInMonth())).$d}else l&&this.$d[l](d);return this.init(),this},y.set=function(t,r){return this.clone().$set(t,r)},y.get=function(t){return this[g.p(t)]()},y.add=function(e,h){var v,l=this;e=Number(e);var d=g.p(h),w=function(t){var r=T(l);return g.w(r.date(r.date()+Math.round(t*e)),l)};if(d===o)return this.set(o,this.$M+e);if(d===c)return this.set(c,this.$y+e);if(d===a)return w(1);if(d===f)return w(7);var m=(v={},v[s]=r,v[u]=n,v[i]=t,v)[d]||1,y=this.$d.getTime()+e*m;return g.w(y,this)},y.subtract=function(t,r){return this.add(-1*t,r)},y.format=function(t){var r=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var e=t||"YYYY-MM-DDTHH:mm:ssZ",i=g.z(this),s=this.$H,u=this.$m,a=this.$M,f=n.weekdays,o=n.months,h=function(t,n,i,s){return t&&(t[n]||t(r,e))||i[n].slice(0,s)},c=function(t){return g.s(s%12||12,t,"0")},v=n.meridiem||function(t,r,n){var e=t<12?"AM":"PM";return n?e.toLowerCase():e},d={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:g.s(a+1,2,"0"),MMM:h(n.monthsShort,a,o,3),MMMM:h(o,a),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,f,2),ddd:h(n.weekdaysShort,this.$W,f,3),dddd:f[this.$W],H:String(s),HH:g.s(s,2,"0"),h:c(1),hh:c(2),a:v(s,u,!0),A:v(s,u,!1),m:String(u),mm:g.s(u,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:i};return e.replace(w,(function(t,r){return r||d[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(e,v,l){var d,w=g.p(v),m=T(e),y=(m.utcOffset()-this.utcOffset())*r,b=this-m,p=g.m(this,m);return p=(d={},d[c]=p/12,d[o]=p,d[h]=p/3,d[f]=(b-y)/6048e5,d[a]=(b-y)/864e5,d[u]=b/n,d[s]=b/r,d[i]=b/t,d)[w]||b,l?p:g.a(p)},y.daysInMonth=function(){return this.endOf(o).$D},y.$locale=function(){return E[this.$L]},y.locale=function(t,r){if(!t)return this.$L;var n=this.clone(),e=k(t,r,!0);return e&&(n.$L=e),n},y.clone=function(){return g.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),S=M.prototype;return T.prototype=S,[["$ms",e],["$s",i],["$m",s],["$H",u],["$W",a],["$M",o],["$y",c],["$D",v]].forEach((function(t){S[t[1]]=function(r){return this.$g(r,t[0],t[1])}})),T.extend=function(t,r){return t.$i||(t(r,M,T),t.$i=!0),T},T.locale=k,T.isDayjs=D,T.unix=function(t){return T(1e3*t)},T.en=E[p],T.Ls=E,T.p={},T}))})(r);const n=r.exports;var e=["MO","TU","WE","TH","FR","SA","SU"];var i=function(){function t(t,r){if(r===0)throw new Error("Can't create weekday with n == 0");this.weekday=t;this.n=r}t.fromStr=function(r){return new t(e.indexOf(r))};t.prototype.nth=function(r){return this.n===r?this:new t(this.weekday,r)};t.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n};t.prototype.toString=function(){var t=e[this.weekday];if(this.n)t=(this.n>0?"+":"")+String(this.n)+t;return t};t.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1};return t}();var s=function(t){return t!==null&&t!==undefined};var u=function(t){return typeof t==="number"};var a=function(t){return typeof t==="string"&&e.includes(t)};var f=Array.isArray;var o=function(t,r){if(r===void 0){r=t}if(arguments.length===1){r=t;t=0}var n=[];for(var e=t;e<r;e++)n.push(e);return n};var h=function(t,r){var n=0;var e=[];if(f(t)){for(;n<r;n++)e[n]=[].concat(t)}else{for(;n<r;n++)e[n]=t}return e};var c=function(t){if(f(t)){return t}return[t]};function v(t,r,n){if(n===void 0){n=" "}var e=String(t);r=r>>0;if(e.length>r){return String(e)}r=r-e.length;if(r>n.length){n+=h(n,r/n.length)}return n.slice(0,r)+String(e)}var l=function(t,r,n){var e=t.split(r);return n?e.slice(0,n).concat([e.slice(n).join(r)]):e};var d=function(t,r){var n=t%r;return n*r<0?n+r:n};var w=function(t,r){return{div:Math.floor(t/r),mod:d(t,r)}};var m=function(t){return!s(t)||t.length===0};var y=function(t){return!m(t)};var b=function(t,r){return y(t)&&t.indexOf(r)!==-1};var p=function(t,r,n,e,i,s){if(e===void 0){e=0}if(i===void 0){i=0}if(s===void 0){s=0}return new Date(Date.UTC(t,r-1,n,e,i,s))};var E=[31,28,31,30,31,30,31,31,30,31,30,31];var D=1e3*60*60*24;var k=9999;var T=p(1970,1,1);var g=[6,0,1,2,3,4,5];var M=function(t){return t%4===0&&t%100!==0||t%400===0};var S=function(t){return t instanceof Date};var R=function(t){return S(t)&&!isNaN(t.getTime())};var I=function(t){return t.getTimezoneOffset()*60*1e3};var U=function(t,r){var n=t.getTime()-I(t);var e=r.getTime()-I(r);var i=n-e;return Math.round(i/D)};var A=function(t){return U(t,T)};var Y=function(t){return new Date(T.getTime()+t*D)};var O=function(t){var r=t.getUTCMonth();return r===1&&M(t.getUTCFullYear())?29:E[r]};var j=function(t){return g[t.getUTCDay()]};var $=function(t,r){var n=p(t,r+1,1);return[j(n),O(n)]};var N=function(t,r){r=r||t;return new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))};var x=function(t){var r=new Date(t.getTime());return r};var L=function(t){var r=[];for(var n=0;n<t.length;n++){r.push(x(t[n]))}return r};var _=function(t){t.sort((function(t,r){return t.getTime()-r.getTime()}))};var C=function(t,r){if(r===void 0){r=true}var n=new Date(t);return[v(n.getUTCFullYear().toString(),4,"0"),v(n.getUTCMonth()+1,2,"0"),v(n.getUTCDate(),2,"0"),"T",v(n.getUTCHours(),2,"0"),v(n.getUTCMinutes(),2,"0"),v(n.getUTCSeconds(),2,"0"),r?"Z":""].join("")};var H=function(t){var r=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/;var n=r.exec(t);if(!n)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[5],10)||0,parseInt(n[6],10)||0,parseInt(n[7],10)||0))};var W=function(t,r){var n=t.toLocaleString("sv-SE",{timeZone:r});return n.replace(" ","T")+"Z"};var B=function(t,r){var n=Intl.DateTimeFormat().resolvedOptions().timeZone;var e=new Date(W(t,n));var i=new Date(W(t,r!==null&&r!==void 0?r:"UTC"));var s=i.getTime()-e.getTime();return new Date(t.getTime()-s)};var Z=function(){function t(t,r){this.minDate=null;this.maxDate=null;this._result=[];this.total=0;this.method=t;this.args=r;if(t==="between"){this.maxDate=r.inc?r.before:new Date(r.before.getTime()-1);this.minDate=r.inc?r.after:new Date(r.after.getTime()+1)}else if(t==="before"){this.maxDate=r.inc?r.dt:new Date(r.dt.getTime()-1)}else if(t==="after"){this.minDate=r.inc?r.dt:new Date(r.dt.getTime()+1)}}t.prototype.accept=function(t){++this.total;var r=this.minDate&&t<this.minDate;var n=this.maxDate&&t>this.maxDate;if(this.method==="between"){if(r)return true;if(n)return false}else if(this.method==="before"){if(n)return false}else if(this.method==="after"){if(r)return true;this.add(t);return false}return this.add(t)};t.prototype.add=function(t){this._result.push(t);return true};t.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;case"before":case"after":default:return t.length?t[t.length-1]:null}};t.prototype.clone=function(){return new t(this.method,this.args)};return t}();var F=function(t,r){F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))t[n]=r[n]};return F(t,r)};function K(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");F(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var z=function(){z=Object.assign||function t(r){for(var n,e=1,i=arguments.length;e<i;e++){n=arguments[e];for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s))r[s]=n[s]}return r};return z.apply(this,arguments)};function X(t,r,n){if(n||arguments.length===2)for(var e=0,i=r.length,s;e<i;e++){if(s||!(e in r)){if(!s)s=Array.prototype.slice.call(r,0,e);s[e]=r[e]}}return t.concat(s||Array.prototype.slice.call(r))}typeof SuppressedError==="function"?SuppressedError:function(t,r,n){var e=new Error(n);return e.name="SuppressedError",e.error=t,e.suppressed=r,e};var J=function(t){K(r,t);function r(r,n,e){var i=t.call(this,r,n)||this;i.iterator=e;return i}r.prototype.add=function(t){if(this.iterator(t,this._result.length)){this._result.push(t);return true}return false};return r}(Z);var q={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var P=function(t,r){return t.indexOf(r)!==-1};var Q=function(t){return t.toString()};var G=function(t,r,n){return"".concat(r," ").concat(n,", ").concat(t)};var V=function(){function t(t,r,n,e){if(r===void 0){r=Q}if(n===void 0){n=q}if(e===void 0){e=G}this.text=[];this.language=n||q;this.gettext=r;this.dateFormatter=e;this.rrule=t;this.options=t.options;this.origOptions=t.origOptions;if(this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday);var u=[].concat(this.options.bynmonthday);i.sort((function(t,r){return t-r}));u.sort((function(t,r){return r-t}));this.bymonthday=i.concat(u);if(!this.bymonthday.length)this.bymonthday=null}if(s(this.origOptions.byweekday)){var a=!f(this.origOptions.byweekday)?[this.origOptions.byweekday]:this.origOptions.byweekday;var o=String(a);this.byweekday={allWeeks:a.filter((function(t){return!t.n})),someWeeks:a.filter((function(t){return Boolean(t.n)})),isWeekdays:o.indexOf("MO")!==-1&&o.indexOf("TU")!==-1&&o.indexOf("WE")!==-1&&o.indexOf("TH")!==-1&&o.indexOf("FR")!==-1&&o.indexOf("SA")===-1&&o.indexOf("SU")===-1,isEveryDay:o.indexOf("MO")!==-1&&o.indexOf("TU")!==-1&&o.indexOf("WE")!==-1&&o.indexOf("TH")!==-1&&o.indexOf("FR")!==-1&&o.indexOf("SA")!==-1&&o.indexOf("SU")!==-1};var h=function(t,r){return t.weekday-r.weekday};this.byweekday.allWeeks.sort(h);this.byweekday.someWeeks.sort(h);if(!this.byweekday.allWeeks.length)this.byweekday.allWeeks=null;if(!this.byweekday.someWeeks.length)this.byweekday.someWeeks=null}else{this.byweekday=null}}t.isFullyConvertible=function(r){var n=true;if(!(r.options.freq in t.IMPLEMENTED))return false;if(r.origOptions.until&&r.origOptions.count)return false;for(var e in r.origOptions){if(P(["dtstart","wkst","freq"],e))return true;if(!P(t.IMPLEMENTED[r.options.freq],e))return false}return n};t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)};t.prototype.toString=function(){var r=this.gettext;if(!(this.options.freq in t.IMPLEMENTED)){return r("RRule error: Unable to fully convert this rrule to text")}this.text=[r("every")];this[er.FREQUENCIES[this.options.freq]]();if(this.options.until){this.add(r("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else if(this.options.count){this.add(r("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?r("times"):r("time"))}if(!this.isFullyConvertible())this.add(r("(~ approximate)"));return this.text.join("")};t.prototype.HOURLY=function(){var t=this.gettext;if(this.options.interval!==1)this.add(this.options.interval.toString());this.add(this.plural(this.options.interval)?t("hours"):t("hour"))};t.prototype.MINUTELY=function(){var t=this.gettext;if(this.options.interval!==1)this.add(this.options.interval.toString());this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))};t.prototype.DAILY=function(){var t=this.gettext;if(this.options.interval!==1)this.add(this.options.interval.toString());if(this.byweekday&&this.byweekday.isWeekdays){this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday"))}else{this.add(this.plural(this.options.interval)?t("days"):t("day"))}if(this.origOptions.bymonth){this.add(t("in"));this._bymonth()}if(this.bymonthday){this._bymonthday()}else if(this.byweekday){this._byweekday()}else if(this.origOptions.byhour){this._byhour()}};t.prototype.WEEKLY=function(){var t=this.gettext;if(this.options.interval!==1){this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week"))}if(this.byweekday&&this.byweekday.isWeekdays){if(this.options.interval===1){this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday"))}else{this.add(t("on")).add(t("weekdays"))}}else if(this.byweekday&&this.byweekday.isEveryDay){this.add(this.plural(this.options.interval)?t("days"):t("day"))}else{if(this.options.interval===1)this.add(t("week"));if(this.origOptions.bymonth){this.add(t("in"));this._bymonth()}if(this.bymonthday){this._bymonthday()}else if(this.byweekday){this._byweekday()}}};t.prototype.MONTHLY=function(){var t=this.gettext;if(this.origOptions.bymonth){if(this.options.interval!==1){this.add(this.options.interval.toString()).add(t("months"));if(this.plural(this.options.interval))this.add(t("in"))}this._bymonth()}else{if(this.options.interval!==1){this.add(this.options.interval.toString())}this.add(this.plural(this.options.interval)?t("months"):t("month"))}if(this.bymonthday){this._bymonthday()}else if(this.byweekday&&this.byweekday.isWeekdays){this.add(t("on")).add(t("weekdays"))}else if(this.byweekday){this._byweekday()}};t.prototype.YEARLY=function(){var t=this.gettext;if(this.origOptions.bymonth){if(this.options.interval!==1){this.add(this.options.interval.toString());this.add(t("years"))}this._bymonth()}else{if(this.options.interval!==1){this.add(this.options.interval.toString())}this.add(this.plural(this.options.interval)?t("years"):t("year"))}if(this.bymonthday){this._bymonthday()}else if(this.byweekday){this._byweekday()}if(this.options.byyearday){this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day"))}if(this.options.byweekno){this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,undefined,t("and")))}};t.prototype._bymonthday=function(){var t=this.gettext;if(this.byweekday&&this.byweekday.allWeeks){this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or")))}else{this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))}};t.prototype._byweekday=function(){var t=this.gettext;if(this.byweekday.allWeeks&&!this.byweekday.isWeekdays){this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext))}if(this.byweekday.someWeeks){if(this.byweekday.allWeeks)this.add(t("and"));this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and")))}};t.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,undefined,t("and")))};t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))};t.prototype.nth=function(t){t=parseInt(t.toString(),10);var r;var n=this.gettext;if(t===-1)return n("last");var e=Math.abs(t);switch(e){case 1:case 21:case 31:r=e+n("st");break;case 2:case 22:r=e+n("nd");break;case 3:case 23:r=e+n("rd");break;default:r=e+n("th")}return t<0?r+" "+n("last"):r};t.prototype.monthtext=function(t){return this.language.monthNames[t-1]};t.prototype.weekdaytext=function(t){var r=u(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[r]};t.prototype.plural=function(t){return t%100!==1};t.prototype.add=function(t){this.text.push(" ");this.text.push(t);return this};t.prototype.list=function(t,r,n,e){var i=this;if(e===void 0){e=","}if(!f(t)){t=[t]}var s=function(t,r,n){var e="";for(var i=0;i<t.length;i++){if(i!==0){if(i===t.length-1){e+=" "+n+" "}else{e+=r+" "}}e+=t[i]}return e};r=r||function(t){return t.toString()};var u=function(t){return r&&r.call(i,t)};if(n){return s(t.map(u),e,n)}else{return t.map(u).join(e+" ")}};return t}();var tt=function(){function t(t){this.done=true;this.rules=t}t.prototype.start=function(t){this.text=t;this.done=false;return this.nextSymbol()};t.prototype.isDone=function(){return this.done&&this.symbol===null};t.prototype.nextSymbol=function(){var t;var r;this.symbol=null;this.value=null;do{if(this.done)return false;var n=void 0;t=null;for(var e in this.rules){n=this.rules[e];var i=n.exec(this.text);if(i){if(t===null||i[0].length>t[0].length){t=i;r=e}}}if(t!=null){this.text=this.text.substr(t[0].length);if(this.text==="")this.done=true}if(t==null){this.done=true;this.symbol=null;this.value=null;return}}while(r==="SKIP");this.symbol=r;this.value=t;return true};t.prototype.accept=function(t){if(this.symbol===t){if(this.value){var r=this.value;this.nextSymbol();return r}this.nextSymbol();return true}return false};t.prototype.acceptNumber=function(){return this.accept("number")};t.prototype.expect=function(t){if(this.accept(t))return true;throw new Error("expected "+t+" but found "+this.symbol)};return t}();function rt(t,r){if(r===void 0){r=q}var n={};var e=new tt(r.tokens);if(!e.start(t))return null;i();return n;function i(){e.expect("every");var t=e.acceptNumber();if(t)n.interval=parseInt(t[0],10);if(e.isDone())throw new Error("Unexpected end");switch(e.symbol){case"day(s)":n.freq=er.DAILY;if(e.nextSymbol()){u();c()}break;case"weekday(s)":n.freq=er.WEEKLY;n.byweekday=[er.MO,er.TU,er.WE,er.TH,er.FR];e.nextSymbol();c();break;case"week(s)":n.freq=er.WEEKLY;if(e.nextSymbol()){s();c()}break;case"hour(s)":n.freq=er.HOURLY;if(e.nextSymbol()){s();c()}break;case"minute(s)":n.freq=er.MINUTELY;if(e.nextSymbol()){s();c()}break;case"month(s)":n.freq=er.MONTHLY;if(e.nextSymbol()){s();c()}break;case"year(s)":n.freq=er.YEARLY;if(e.nextSymbol()){s();c()}break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=er.WEEKLY;var r=e.symbol.substr(0,2).toUpperCase();n.byweekday=[er[r]];if(!e.nextSymbol())return;while(e.accept("comma")){if(e.isDone())throw new Error("Unexpected end");var i=f();if(!i){throw new Error("Unexpected symbol "+e.symbol+", expected weekday")}n.byweekday.push(er[i]);e.nextSymbol()}h();c();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":n.freq=er.YEARLY;n.bymonth=[a()];if(!e.nextSymbol())return;while(e.accept("comma")){if(e.isDone())throw new Error("Unexpected end");var o=a();if(!o){throw new Error("Unexpected symbol "+e.symbol+", expected month")}n.bymonth.push(o);e.nextSymbol()}s();c();break;default:throw new Error("Unknown symbol")}}function s(){var t=e.accept("on");var r=e.accept("the");if(!(t||r))return;do{var i=o();var s=f();var u=a();if(i){if(s){e.nextSymbol();if(!n.byweekday)n.byweekday=[];n.byweekday.push(er[s].nth(i))}else{if(!n.bymonthday)n.bymonthday=[];n.bymonthday.push(i);e.accept("day(s)")}}else if(s){e.nextSymbol();if(!n.byweekday)n.byweekday=[];n.byweekday.push(er[s])}else if(e.symbol==="weekday(s)"){e.nextSymbol();if(!n.byweekday){n.byweekday=[er.MO,er.TU,er.WE,er.TH,er.FR]}}else if(e.symbol==="week(s)"){e.nextSymbol();var h=e.acceptNumber();if(!h){throw new Error("Unexpected symbol "+e.symbol+", expected week number")}n.byweekno=[parseInt(h[0],10)];while(e.accept("comma")){h=e.acceptNumber();if(!h){throw new Error("Unexpected symbol "+e.symbol+"; expected monthday")}n.byweekno.push(parseInt(h[0],10))}}else if(u){e.nextSymbol();if(!n.bymonth)n.bymonth=[];n.bymonth.push(u)}else{return}}while(e.accept("comma")||e.accept("the")||e.accept("on"))}function u(){var t=e.accept("at");if(!t)return;do{var r=e.acceptNumber();if(!r){throw new Error("Unexpected symbol "+e.symbol+", expected hour")}n.byhour=[parseInt(r[0],10)];while(e.accept("comma")){r=e.acceptNumber();if(!r){throw new Error("Unexpected symbol "+e.symbol+"; expected hour")}n.byhour.push(parseInt(r[0],10))}}while(e.accept("comma")||e.accept("at"))}function a(){switch(e.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return false}}function f(){switch(e.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return e.symbol.substr(0,2).toUpperCase();default:return false}}function o(){switch(e.symbol){case"last":e.nextSymbol();return-1;case"first":e.nextSymbol();return 1;case"second":e.nextSymbol();return e.accept("last")?-2:2;case"third":e.nextSymbol();return e.accept("last")?-3:3;case"nth":var t=parseInt(e.value[1],10);if(t<-366||t>366)throw new Error("Nth out of range: "+t);e.nextSymbol();return e.accept("last")?-t:t;default:return false}}function h(){e.accept("on");e.accept("the");var t=o();if(!t)return;n.bymonthday=[t];e.nextSymbol();while(e.accept("comma")){t=o();if(!t){throw new Error("Unexpected symbol "+e.symbol+"; expected monthday")}n.bymonthday.push(t);e.nextSymbol()}}function c(){if(e.symbol==="until"){var t=Date.parse(e.text);if(!t)throw new Error("Cannot parse until date:"+e.text);n.until=new Date(t)}else if(e.accept("for")){n.count=parseInt(e.value[0],10);e.expect("number")}}}var nt;(function(t){t[t["YEARLY"]=0]="YEARLY";t[t["MONTHLY"]=1]="MONTHLY";t[t["WEEKLY"]=2]="WEEKLY";t[t["DAILY"]=3]="DAILY";t[t["HOURLY"]=4]="HOURLY";t[t["MINUTELY"]=5]="MINUTELY";t[t["SECONDLY"]=6]="SECONDLY"})(nt||(nt={}));function et(t){return t<nt.HOURLY}var it=function(t,r){if(r===void 0){r=q}return new er(rt(t,r)||undefined)};var st=["count","until","interval","byweekday","bymonthday","bymonth"];V.IMPLEMENTED=[];V.IMPLEMENTED[nt.HOURLY]=st;V.IMPLEMENTED[nt.MINUTELY]=st;V.IMPLEMENTED[nt.DAILY]=["byhour"].concat(st);V.IMPLEMENTED[nt.WEEKLY]=st;V.IMPLEMENTED[nt.MONTHLY]=st;V.IMPLEMENTED[nt.YEARLY]=["byweekno","byyearday"].concat(st);var ut=function(t,r,n,e){return new V(t,r,n,e).toString()};var at=V.isFullyConvertible;var ft=function(){function t(t,r,n,e){this.hour=t;this.minute=r;this.second=n;this.millisecond=e||0}t.prototype.getHours=function(){return this.hour};t.prototype.getMinutes=function(){return this.minute};t.prototype.getSeconds=function(){return this.second};t.prototype.getMilliseconds=function(){return this.millisecond};t.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond};return t}();var ot=function(t){K(r,t);function r(r,n,e,i,s,u,a){var f=t.call(this,i,s,u,a)||this;f.year=r;f.month=n;f.day=e;return f}r.fromDate=function(t){return new this(t.getUTCFullYear(),t.getUTCMonth()+1,t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.valueOf()%1e3)};r.prototype.getWeekday=function(){return j(new Date(this.getTime()))};r.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()};r.prototype.getDay=function(){return this.day};r.prototype.getMonth=function(){return this.month};r.prototype.getYear=function(){return this.year};r.prototype.addYears=function(t){this.year+=t};r.prototype.addMonths=function(t){this.month+=t;if(this.month>12){var r=Math.floor(this.month/12);var n=d(this.month,12);this.month=n;this.year+=r;if(this.month===0){this.month=12;--this.year}}};r.prototype.addWeekly=function(t,r){if(r>this.getWeekday()){this.day+=-(this.getWeekday()+1+(6-r))+t*7}else{this.day+=-(this.getWeekday()-r)+t*7}this.fixDay()};r.prototype.addDaily=function(t){this.day+=t;this.fixDay()};r.prototype.addHours=function(t,r,n){if(r){this.hour+=Math.floor((23-this.hour)/t)*t}for(;;){this.hour+=t;var e=w(this.hour,24),i=e.div,s=e.mod;if(i){this.hour=s;this.addDaily(i)}if(m(n)||b(n,this.hour))break}};r.prototype.addMinutes=function(t,r,n,e){if(r){this.minute+=Math.floor((1439-(this.hour*60+this.minute))/t)*t}for(;;){this.minute+=t;var i=w(this.minute,60),s=i.div,u=i.mod;if(s){this.minute=u;this.addHours(s,false,n)}if((m(n)||b(n,this.hour))&&(m(e)||b(e,this.minute))){break}}};r.prototype.addSeconds=function(t,r,n,e,i){if(r){this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/t)*t}for(;;){this.second+=t;var s=w(this.second,60),u=s.div,a=s.mod;if(u){this.second=a;this.addMinutes(u,false,n,e)}if((m(n)||b(n,this.hour))&&(m(e)||b(e,this.minute))&&(m(i)||b(i,this.second))){break}}};r.prototype.fixDay=function(){if(this.day<=28){return}var t=$(this.year,this.month-1)[1];if(this.day<=t){return}while(this.day>t){this.day-=t;++this.month;if(this.month===13){this.month=1;++this.year;if(this.year>k){return}}t=$(this.year,this.month-1)[1]}};r.prototype.add=function(t,r){var n=t.freq,e=t.interval,i=t.wkst,s=t.byhour,u=t.byminute,a=t.bysecond;switch(n){case nt.YEARLY:return this.addYears(e);case nt.MONTHLY:return this.addMonths(e);case nt.WEEKLY:return this.addWeekly(e,i);case nt.DAILY:return this.addDaily(e);case nt.HOURLY:return this.addHours(e,r,s);case nt.MINUTELY:return this.addMinutes(e,r,s,u);case nt.SECONDLY:return this.addSeconds(e,r,s,u,a)}};return r}(ft);function ht(t){var r=[];var n=Object.keys(t);for(var e=0,i=n;e<i.length;e++){var s=i[e];if(!b(nr,s))r.push(s);if(S(t[s])&&!R(t[s])){r.push(s)}}if(r.length){throw new Error("Invalid options: "+r.join(", "))}return z({},t)}function ct(t){var r=z(z({},rr),ht(t));if(s(r.byeaster))r.freq=er.YEARLY;if(!(s(r.freq)&&er.FREQUENCIES[r.freq])){throw new Error("Invalid frequency: ".concat(r.freq," ").concat(t.freq))}if(!r.dtstart)r.dtstart=new Date((new Date).setMilliseconds(0));if(!s(r.wkst)){r.wkst=er.MO.weekday}else if(u(r.wkst));else{r.wkst=r.wkst.weekday}if(s(r.bysetpos)){if(u(r.bysetpos))r.bysetpos=[r.bysetpos];for(var n=0;n<r.bysetpos.length;n++){var e=r.bysetpos[n];if(e===0||!(e>=-366&&e<=366)){throw new Error("bysetpos must be between 1 and 366,"+" or between -366 and -1")}}}if(!(Boolean(r.byweekno)||y(r.byweekno)||y(r.byyearday)||Boolean(r.bymonthday)||y(r.bymonthday)||s(r.byweekday)||s(r.byeaster))){switch(r.freq){case er.YEARLY:if(!r.bymonth)r.bymonth=r.dtstart.getUTCMonth()+1;r.bymonthday=r.dtstart.getUTCDate();break;case er.MONTHLY:r.bymonthday=r.dtstart.getUTCDate();break;case er.WEEKLY:r.byweekday=[j(r.dtstart)];break}}if(s(r.bymonth)&&!f(r.bymonth)){r.bymonth=[r.bymonth]}if(s(r.byyearday)&&!f(r.byyearday)&&u(r.byyearday)){r.byyearday=[r.byyearday]}if(!s(r.bymonthday)){r.bymonthday=[];r.bynmonthday=[]}else if(f(r.bymonthday)){var o=[];var h=[];for(var n=0;n<r.bymonthday.length;n++){var e=r.bymonthday[n];if(e>0){o.push(e)}else if(e<0){h.push(e)}}r.bymonthday=o;r.bynmonthday=h}else if(r.bymonthday<0){r.bynmonthday=[r.bymonthday];r.bymonthday=[]}else{r.bynmonthday=[];r.bymonthday=[r.bymonthday]}if(s(r.byweekno)&&!f(r.byweekno)){r.byweekno=[r.byweekno]}if(!s(r.byweekday)){r.bynweekday=null}else if(u(r.byweekday)){r.byweekday=[r.byweekday];r.bynweekday=null}else if(a(r.byweekday)){r.byweekday=[i.fromStr(r.byweekday).weekday];r.bynweekday=null}else if(r.byweekday instanceof i){if(!r.byweekday.n||r.freq>er.MONTHLY){r.byweekday=[r.byweekday.weekday];r.bynweekday=null}else{r.bynweekday=[[r.byweekday.weekday,r.byweekday.n]];r.byweekday=null}}else{var c=[];var v=[];for(var n=0;n<r.byweekday.length;n++){var l=r.byweekday[n];if(u(l)){c.push(l);continue}else if(a(l)){c.push(i.fromStr(l).weekday);continue}if(!l.n||r.freq>er.MONTHLY){c.push(l.weekday)}else{v.push([l.weekday,l.n])}}r.byweekday=y(c)?c:null;r.bynweekday=y(v)?v:null}if(!s(r.byhour)){r.byhour=r.freq<er.HOURLY?[r.dtstart.getUTCHours()]:null}else if(u(r.byhour)){r.byhour=[r.byhour]}if(!s(r.byminute)){r.byminute=r.freq<er.MINUTELY?[r.dtstart.getUTCMinutes()]:null}else if(u(r.byminute)){r.byminute=[r.byminute]}if(!s(r.bysecond)){r.bysecond=r.freq<er.SECONDLY?[r.dtstart.getUTCSeconds()]:null}else if(u(r.bysecond)){r.bysecond=[r.bysecond]}return{parsedOptions:r}}function vt(t){var r=t.dtstart.getTime()%1e3;if(!et(t.freq)){return[]}var n=[];t.byhour.forEach((function(e){t.byminute.forEach((function(i){t.bysecond.forEach((function(t){n.push(new ft(e,i,t,r))}))}))}));return n}function lt(t){var r=t.split("\n").map(wt).filter((function(t){return t!==null}));return z(z({},r[0]),r[1])}function dt(t){var r={};var n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!n){return r}var e=n[1],i=n[2];if(e){r.tzid=e}r.dtstart=H(i);return r}function wt(t){t=t.replace(/^\s+|\s+$/,"");if(!t.length)return null;var r=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!r){return mt(t)}var n=r[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return mt(t);case"DTSTART":return dt(t);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(t))}}function mt(t){var r=t.replace(/^RRULE:/i,"");var n=dt(r);var e=t.replace(/^(?:RRULE|EXRULE):/i,"").split(";");e.forEach((function(r){var e=r.split("="),i=e[0],s=e[1];switch(i.toUpperCase()){case"FREQ":n.freq=nt[s.toUpperCase()];break;case"WKST":n.wkst=tr[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=yt(s);var a=i.toLowerCase();n[a]=u;break;case"BYWEEKDAY":case"BYDAY":n.byweekday=pt(s);break;case"DTSTART":case"TZID":var f=dt(t);n.tzid=f.tzid;n.dtstart=f.dtstart;break;case"UNTIL":n.until=H(s);break;case"BYEASTER":n.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+i+"'")}}));return n}function yt(t){if(t.indexOf(",")!==-1){var r=t.split(",");return r.map(bt)}return bt(t)}function bt(t){if(/^[+-]?\d+$/.test(t)){return Number(t)}return t}function pt(t){var r=t.split(",");return r.map((function(t){if(t.length===2){return tr[t]}var r=t.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!r||r.length<3){throw new SyntaxError("Invalid weekday string: ".concat(t))}var n=Number(r[1]);var e=r[2];var s=tr[e].weekday;return new i(s,n)}))}var Et=function(){function t(t,r){if(isNaN(t.getTime())){throw new RangeError("Invalid date passed to DateWithZone")}this.date=t;this.tzid=r}Object.defineProperty(t.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:false,configurable:true});t.prototype.toString=function(){var t=C(this.date.getTime(),this.isUTC);if(!this.isUTC){return";TZID=".concat(this.tzid,":").concat(t)}return":".concat(t)};t.prototype.getTime=function(){return this.date.getTime()};t.prototype.rezonedDate=function(){if(this.isUTC){return this.date}return B(this.date,this.tzid)};return t}();function Dt(t){var r=[];var n="";var e=Object.keys(t);var a=Object.keys(rr);for(var o=0;o<e.length;o++){if(e[o]==="tzid")continue;if(!b(a,e[o]))continue;var h=e[o].toUpperCase();var v=t[e[o]];var l="";if(!s(v)||f(v)&&!v.length)continue;switch(h){case"FREQ":l=er.FREQUENCIES[t.freq];break;case"WKST":if(u(v)){l=new i(v).toString()}else{l=v.toString()}break;case"BYWEEKDAY":h="BYDAY";l=c(v).map((function(t){if(t instanceof i){return t}if(f(t)){return new i(t[0],t[1])}return new i(t)})).toString();break;case"DTSTART":n=kt(v,t.tzid);break;case"UNTIL":l=C(v,!t.tzid);break;default:if(f(v)){var d=[];for(var w=0;w<v.length;w++){d[w]=String(v[w])}l=d.toString()}else{l=String(v)}}if(l){r.push([h,l])}}var m=r.map((function(t){var r=t[0],n=t[1];return"".concat(r,"=").concat(n.toString())})).join(";");var y="";if(m!==""){y="RRULE:".concat(m)}return[n,y].filter((function(t){return!!t})).join("\n")}function kt(t,r){if(!t){return""}return"DTSTART"+new Et(new Date(t),r).toString()}function Tt(t,r){if(Array.isArray(t)){if(!Array.isArray(r))return false;if(t.length!==r.length)return false;return t.every((function(t,n){return t.getTime()===r[n].getTime()}))}if(t instanceof Date){return r instanceof Date&&t.getTime()===r.getTime()}return t===r}var gt=function(){function t(){this.all=false;this.before=[];this.after=[];this.between=[]}t.prototype._cacheAdd=function(t,r,n){if(r){r=r instanceof Date?x(r):L(r)}if(t==="all"){this.all=r}else{n._value=r;this[t].push(n)}};t.prototype._cacheGet=function(t,r){var n=false;var e=r?Object.keys(r):[];var i=function(t){for(var n=0;n<e.length;n++){var i=e[n];if(!Tt(r[i],t[i])){return true}}return false};var s=this[t];if(t==="all"){n=this.all}else if(f(s)){for(var u=0;u<s.length;u++){var a=s[u];if(e.length&&i(a))continue;n=a._value;break}}if(!n&&this.all){var o=new Z(t,r);for(var u=0;u<this.all.length;u++){if(!o.accept(this.all[u]))break}n=o.getValue();this._cacheAdd(t,n,r)}return f(n)?L(n):n instanceof Date?x(n):n};return t}();var Mt=X(X(X(X(X(X(X(X(X(X(X(X(X([],h(1,31),true),h(2,28),true),h(3,31),true),h(4,30),true),h(5,31),true),h(6,30),true),h(7,31),true),h(8,31),true),h(9,30),true),h(10,31),true),h(11,30),true),h(12,31),true),h(1,7),true);var St=X(X(X(X(X(X(X(X(X(X(X(X(X([],h(1,31),true),h(2,29),true),h(3,31),true),h(4,30),true),h(5,31),true),h(6,30),true),h(7,31),true),h(8,31),true),h(9,30),true),h(10,31),true),h(11,30),true),h(12,31),true),h(1,7),true);var Rt=o(1,29);var It=o(1,30);var Ut=o(1,31);var At=o(1,32);var Yt=X(X(X(X(X(X(X(X(X(X(X(X(X([],At,true),It,true),At,true),Ut,true),At,true),Ut,true),At,true),At,true),Ut,true),At,true),Ut,true),At,true),At.slice(0,7),true);var Ot=X(X(X(X(X(X(X(X(X(X(X(X(X([],At,true),Rt,true),At,true),Ut,true),At,true),Ut,true),At,true),At,true),Ut,true),At,true),Ut,true),At,true),At.slice(0,7),true);var jt=o(-28,0);var $t=o(-29,0);var Nt=o(-30,0);var xt=o(-31,0);var Lt=X(X(X(X(X(X(X(X(X(X(X(X(X([],xt,true),$t,true),xt,true),Nt,true),xt,true),Nt,true),xt,true),xt,true),Nt,true),xt,true),Nt,true),xt,true),xt.slice(0,7),true);var _t=X(X(X(X(X(X(X(X(X(X(X(X(X([],xt,true),jt,true),xt,true),Nt,true),xt,true),Nt,true),xt,true),xt,true),Nt,true),xt,true),Nt,true),xt,true),xt.slice(0,7),true);var Ct=[0,31,60,91,121,152,182,213,244,274,305,335,366];var Ht=[0,31,59,90,120,151,181,212,243,273,304,334,365];var Wt=function(){var t=[];for(var r=0;r<55;r++)t=t.concat(o(7));return t}();function Bt(t,r){var n=p(t,1,1);var e=M(t)?366:365;var i=M(t+1)?366:365;var s=A(n);var u=j(n);var a=z(z({yearlen:e,nextyearlen:i,yearordinal:s,yearweekday:u},Zt(t)),{wnomask:null});if(m(r.byweekno)){return a}a.wnomask=h(0,e+7);var f;var o;var c=f=d(7-u+r.wkst,7);if(c>=4){c=0;o=a.yearlen+d(u-r.wkst,7)}else{o=e-c}var v=Math.floor(o/7);var l=d(o,7);var w=Math.floor(v+l/4);for(var y=0;y<r.byweekno.length;y++){var E=r.byweekno[y];if(E<0){E+=w+1}if(!(E>0&&E<=w)){continue}var D=void 0;if(E>1){D=c+(E-1)*7;if(c!==f){D-=7-f}}else{D=c}for(var k=0;k<7;k++){a.wnomask[D]=1;D++;if(a.wdaymask[D]===r.wkst)break}}if(b(r.byweekno,1)){var D=c+w*7;if(c!==f)D-=7-f;if(D<e){for(var y=0;y<7;y++){a.wnomask[D]=1;D+=1;if(a.wdaymask[D]===r.wkst)break}}}if(c){var T=void 0;if(!b(r.byweekno,-1)){var g=j(p(t-1,1,1));var S=d(7-g.valueOf()+r.wkst,7);var R=M(t-1)?366:365;var I=void 0;if(S>=4){S=0;I=R+d(g-r.wkst,7)}else{I=e-c}T=Math.floor(52+d(I,7)/4)}else{T=-1}if(b(r.byweekno,T)){for(var D=0;D<c;D++)a.wnomask[D]=1}}return a}function Zt(t){var r=M(t)?366:365;var n=p(t,1,1);var e=j(n);if(r===365){return{mmask:Mt,mdaymask:Ot,nmdaymask:_t,wdaymask:Wt.slice(e),mrange:Ht}}return{mmask:St,mdaymask:Yt,nmdaymask:Lt,wdaymask:Wt.slice(e),mrange:Ct}}function Ft(t,r,n,e,i,s){var u={lastyear:t,lastmonth:r,nwdaymask:[]};var a=[];if(s.freq===er.YEARLY){if(m(s.bymonth)){a=[[0,n]]}else{for(var f=0;f<s.bymonth.length;f++){r=s.bymonth[f];a.push(e.slice(r-1,r+1))}}}else if(s.freq===er.MONTHLY){a=[e.slice(r-1,r+1)]}if(m(a)){return u}u.nwdaymask=h(0,n);for(var f=0;f<a.length;f++){var o=a[f];var c=o[0];var v=o[1]-1;for(var l=0;l<s.bynweekday.length;l++){var w=void 0;var y=s.bynweekday[l],b=y[0],p=y[1];if(p<0){w=v+(p+1)*7;w-=d(i[w]-b,7)}else{w=c+(p-1)*7;w+=d(7-i[w]+b,7)}if(c<=w&&w<=v)u.nwdaymask[w]=1}}return u}function Kt(t,r){if(r===void 0){r=0}var n=t%19;var e=Math.floor(t/100);var i=t%100;var s=Math.floor(e/4);var u=e%4;var a=Math.floor((e+8)/25);var f=Math.floor((e-a+1)/3);var o=Math.floor(19*n+e-s-f+15)%30;var h=Math.floor(i/4);var c=i%4;var v=Math.floor(32+2*u+2*h-o-c)%7;var l=Math.floor((n+11*o+22*v)/451);var d=Math.floor((o+v-7*l+114)/31);var w=(o+v-7*l+114)%31+1;var m=Date.UTC(t,d-1,w+r);var y=Date.UTC(t,0,1);return[Math.ceil((m-y)/(1e3*60*60*24))]}var zt=function(){function t(t){this.options=t}t.prototype.rebuild=function(t,r){var n=this.options;if(t!==this.lastyear){this.yearinfo=Bt(t,n)}if(y(n.bynweekday)&&(r!==this.lastmonth||t!==this.lastyear)){var e=this.yearinfo,i=e.yearlen,u=e.mrange,a=e.wdaymask;this.monthinfo=Ft(t,r,i,u,a,n)}if(s(n.byeaster)){this.eastermask=Kt(t,n.byeaster)}};Object.defineProperty(t.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:false,configurable:true});t.prototype.ydayset=function(){return[o(this.yearlen),0,this.yearlen]};t.prototype.mdayset=function(t,r){var n=this.mrange[r-1];var e=this.mrange[r];var i=h(null,this.yearlen);for(var s=n;s<e;s++)i[s]=s;return[i,n,e]};t.prototype.wdayset=function(t,r,n){var e=h(null,this.yearlen+7);var i=A(p(t,r,n))-this.yearordinal;var s=i;for(var u=0;u<7;u++){e[i]=i;++i;if(this.wdaymask[i]===this.options.wkst)break}return[e,s,i]};t.prototype.ddayset=function(t,r,n){var e=h(null,this.yearlen);var i=A(p(t,r,n))-this.yearordinal;e[i]=i;return[e,i,i+1]};t.prototype.htimeset=function(t,r,n,e){var i=this;var s=[];this.options.byminute.forEach((function(r){s=s.concat(i.mtimeset(t,r,n,e))}));_(s);return s};t.prototype.mtimeset=function(t,r,n,e){var i=this.options.bysecond.map((function(n){return new ft(t,r,n,e)}));_(i);return i};t.prototype.stimeset=function(t,r,n,e){return[new ft(t,r,n,e)]};t.prototype.getdayset=function(t){switch(t){case nt.YEARLY:return this.ydayset.bind(this);case nt.MONTHLY:return this.mdayset.bind(this);case nt.WEEKLY:return this.wdayset.bind(this);case nt.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}};t.prototype.gettimeset=function(t){switch(t){case nt.HOURLY:return this.htimeset.bind(this);case nt.MINUTELY:return this.mtimeset.bind(this);case nt.SECONDLY:return this.stimeset.bind(this)}};return t}();function Xt(t,r,n,e,i,u){var a=[];for(var f=0;f<t.length;f++){var o=void 0;var h=void 0;var c=t[f];if(c<0){o=Math.floor(c/r.length);h=d(c,r.length)}else{o=Math.floor((c-1)/r.length);h=d(c-1,r.length)}var v=[];for(var l=n;l<e;l++){var w=u[l];if(!s(w))continue;v.push(w)}var m=void 0;if(o<0){m=v.slice(o)[0]}else{m=v[o]}var y=r[h];var p=Y(i.yearordinal+m);var E=N(p,y);if(!b(a,E))a.push(E)}_(a);return a}function Jt(t,r){var n=r.dtstart,e=r.freq,i=r.interval,u=r.until,a=r.bysetpos;var f=r.count;if(f===0||i===0){return Qt(t)}var o=ot.fromDate(n);var h=new zt(r);h.rebuild(o.year,o.month);var c=Vt(h,o,r);for(;;){var v=h.getdayset(e)(o.year,o.month,o.day),l=v[0],d=v[1],w=v[2];var m=Gt(l,d,w,h,r);if(y(a)){var b=Xt(a,c,d,w,h,l);for(var p=0;p<b.length;p++){var E=b[p];if(u&&E>u){return Qt(t)}if(E>=n){var D=Pt(E,r);if(!t.accept(D)){return Qt(t)}if(f){--f;if(!f){return Qt(t)}}}}}else{for(var p=d;p<w;p++){var T=l[p];if(!s(T)){continue}var g=Y(h.yearordinal+T);for(var M=0;M<c.length;M++){var S=c[M];var E=N(g,S);if(u&&E>u){return Qt(t)}if(E>=n){var D=Pt(E,r);if(!t.accept(D)){return Qt(t)}if(f){--f;if(!f){return Qt(t)}}}}}}if(r.interval===0){return Qt(t)}o.add(r,m);if(o.year>k){return Qt(t)}if(!et(e)){c=h.gettimeset(e)(o.hour,o.minute,o.second,0)}h.rebuild(o.year,o.month)}}function qt(t,r,n){var e=n.bymonth,i=n.byweekno,s=n.byweekday,u=n.byeaster,a=n.bymonthday,f=n.bynmonthday,o=n.byyearday;return y(e)&&!b(e,t.mmask[r])||y(i)&&!t.wnomask[r]||y(s)&&!b(s,t.wdaymask[r])||y(t.nwdaymask)&&!t.nwdaymask[r]||u!==null&&!b(t.eastermask,r)||(y(a)||y(f))&&!b(a,t.mdaymask[r])&&!b(f,t.nmdaymask[r])||y(o)&&(r<t.yearlen&&!b(o,r+1)&&!b(o,-t.yearlen+r)||r>=t.yearlen&&!b(o,r+1-t.yearlen)&&!b(o,-t.nextyearlen+r-t.yearlen))}function Pt(t,r){return new Et(t,r.tzid).rezonedDate()}function Qt(t){return t.getValue()}function Gt(t,r,n,e,i){var s=false;for(var u=r;u<n;u++){var a=t[u];s=qt(e,a,i);if(s)t[a]=null}return s}function Vt(t,r,n){var e=n.freq,i=n.byhour,s=n.byminute,u=n.bysecond;if(et(e)){return vt(n)}if(e>=er.HOURLY&&y(i)&&!b(i,r.hour)||e>=er.MINUTELY&&y(s)&&!b(s,r.minute)||e>=er.SECONDLY&&y(u)&&!b(u,r.second)){return[]}return t.gettimeset(e)(r.hour,r.minute,r.second,r.millisecond)}var tr={MO:new i(0),TU:new i(1),WE:new i(2),TH:new i(3),FR:new i(4),SA:new i(5),SU:new i(6)};var rr={freq:nt.YEARLY,dtstart:null,interval:1,wkst:tr.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null};var nr=Object.keys(rr);var er=function(){function t(t,r){if(t===void 0){t={}}if(r===void 0){r=false}this._cache=r?null:new gt;this.origOptions=ht(t);var n=ct(t).parsedOptions;this.options=n}t.parseText=function(t,r){return rt(t,r)};t.fromText=function(t,r){return it(t,r)};t.fromString=function(r){return new t(t.parseString(r)||undefined)};t.prototype._iter=function(t){return Jt(t,this.options)};t.prototype._cacheGet=function(t,r){if(!this._cache)return false;return this._cache._cacheGet(t,r)};t.prototype._cacheAdd=function(t,r,n){if(!this._cache)return;return this._cache._cacheAdd(t,r,n)};t.prototype.all=function(t){if(t){return this._iter(new J("all",{},t))}var r=this._cacheGet("all");if(r===false){r=this._iter(new Z("all",{}));this._cacheAdd("all",r)}return r};t.prototype.between=function(t,r,n,e){if(n===void 0){n=false}if(!R(t)||!R(r)){throw new Error("Invalid date passed in to RRule.between")}var i={before:r,after:t,inc:n};if(e){return this._iter(new J("between",i,e))}var s=this._cacheGet("between",i);if(s===false){s=this._iter(new Z("between",i));this._cacheAdd("between",s,i)}return s};t.prototype.before=function(t,r){if(r===void 0){r=false}if(!R(t)){throw new Error("Invalid date passed in to RRule.before")}var n={dt:t,inc:r};var e=this._cacheGet("before",n);if(e===false){e=this._iter(new Z("before",n));this._cacheAdd("before",e,n)}return e};t.prototype.after=function(t,r){if(r===void 0){r=false}if(!R(t)){throw new Error("Invalid date passed in to RRule.after")}var n={dt:t,inc:r};var e=this._cacheGet("after",n);if(e===false){e=this._iter(new Z("after",n));this._cacheAdd("after",e,n)}return e};t.prototype.count=function(){return this.all().length};t.prototype.toString=function(){return Dt(this.origOptions)};t.prototype.toText=function(t,r,n){return ut(this,t,r,n)};t.prototype.isFullyConvertibleToText=function(){return at(this)};t.prototype.clone=function(){return new t(this.origOptions)};t.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"];t.YEARLY=nt.YEARLY;t.MONTHLY=nt.MONTHLY;t.WEEKLY=nt.WEEKLY;t.DAILY=nt.DAILY;t.HOURLY=nt.HOURLY;t.MINUTELY=nt.MINUTELY;t.SECONDLY=nt.SECONDLY;t.MO=tr.MO;t.TU=tr.TU;t.WE=tr.WE;t.TH=tr.TH;t.FR=tr.FR;t.SA=tr.SA;t.SU=tr.SU;t.parseString=lt;t.optionsToString=Dt;return t}();function ir(t,r,n,e,i,s){var u={};var a=t.accept;function f(t,r){n.forEach((function(n){n.between(t,r,true).forEach((function(t){u[Number(t)]=true}))}))}i.forEach((function(t){var r=new Et(t,s).rezonedDate();u[Number(r)]=true}));t.accept=function(t){var r=Number(t);if(isNaN(r))return a.call(this,t);if(!u[r]){f(new Date(r-1),new Date(r+1));if(!u[r]){u[r]=true;return a.call(this,t)}}return true};if(t.method==="between"){f(t.args.after,t.args.before);t.accept=function(t){var r=Number(t);if(!u[r]){u[r]=true;return a.call(this,t)}return true}}for(var o=0;o<e.length;o++){var h=new Et(e[o],s).rezonedDate();if(!t.accept(new Date(h.getTime())))break}r.forEach((function(r){Jt(t,r.options)}));var c=t._result;_(c);switch(t.method){case"all":case"between":return c;case"before":return c.length&&c[c.length-1]||null;case"after":default:return c.length&&c[0]||null}}var sr={dtstart:null,cache:false,unfold:false,forceset:false,compatible:false,tzid:null};function ur(t,r){var n=[];var e=[];var i=[];var s=[];var u=dt(t);var a=u.dtstart;var f=u.tzid;var o=lr(t,r.unfold);o.forEach((function(t){var r;if(!t)return;var u=vr(t),a=u.name,o=u.parms,h=u.value;switch(a.toUpperCase()){case"RRULE":if(o.length){throw new Error("unsupported RRULE parm: ".concat(o.join(",")))}n.push(lt(t));break;case"RDATE":var c=(r=/RDATE(?:;TZID=([^:=]+))?/i.exec(t))!==null&&r!==void 0?r:[],v=c[1];if(v&&!f){f=v}e=e.concat(wr(h,o));break;case"EXRULE":if(o.length){throw new Error("unsupported EXRULE parm: ".concat(o.join(",")))}i.push(lt(h));break;case"EXDATE":s=s.concat(wr(h,o));break;case"DTSTART":break;default:throw new Error("unsupported property: "+a)}}));return{dtstart:a,tzid:f,rrulevals:n,rdatevals:e,exrulevals:i,exdatevals:s}}function ar(t,r){var n=ur(t,r),e=n.rrulevals,i=n.rdatevals,s=n.exrulevals,u=n.exdatevals,a=n.dtstart,f=n.tzid;var o=r.cache===false;if(r.compatible){r.forceset=true;r.unfold=true}if(r.forceset||e.length>1||i.length||s.length||u.length){var h=new yr(o);h.dtstart(a);h.tzid(f||undefined);e.forEach((function(t){h.rrule(new er(or(t,a,f),o))}));i.forEach((function(t){h.rdate(t)}));s.forEach((function(t){h.exrule(new er(or(t,a,f),o))}));u.forEach((function(t){h.exdate(t)}));if(r.compatible&&r.dtstart)h.rdate(a);return h}var c=e[0]||{};return new er(or(c,c.dtstart||r.dtstart||a,c.tzid||r.tzid||f),o)}function fr(t,r){if(r===void 0){r={}}return ar(t,hr(r))}function or(t,r,n){return z(z({},t),{dtstart:r,tzid:n})}function hr(t){var r=[];var n=Object.keys(t);var e=Object.keys(sr);n.forEach((function(t){if(!b(e,t))r.push(t)}));if(r.length){throw new Error("Invalid options: "+r.join(", "))}return z(z({},sr),t)}function cr(t){if(t.indexOf(":")===-1){return{name:"RRULE",value:t}}var r=l(t,":",1),n=r[0],e=r[1];return{name:n,value:e}}function vr(t){var r=cr(t),n=r.name,e=r.value;var i=n.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:e}}function lr(t,r){if(r===void 0){r=false}t=t&&t.trim();if(!t)throw new Error("Invalid empty string");if(!r){return t.split(/\s/)}var n=t.split("\n");var e=0;while(e<n.length){var i=n[e]=n[e].replace(/\s+$/g,"");if(!i){n.splice(e,1)}else if(e>0&&i[0]===" "){n[e-1]+=i.slice(1);n.splice(e,1)}else{e+=1}}return n}function dr(t){t.forEach((function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t)){throw new Error("unsupported RDATE/EXDATE parm: "+t)}}))}function wr(t,r){dr(r);return t.split(",").map((function(t){return H(t)}))}function mr(t){var r=this;return function(n){if(n!==undefined){r["_".concat(t)]=n}if(r["_".concat(t)]!==undefined){return r["_".concat(t)]}for(var e=0;e<r._rrule.length;e++){var i=r._rrule[e].origOptions[t];if(i){return i}}}}var yr=function(t){K(r,t);function r(r){if(r===void 0){r=false}var n=t.call(this,{},r)||this;n.dtstart=mr.apply(n,["dtstart"]);n.tzid=mr.apply(n,["tzid"]);n._rrule=[];n._rdate=[];n._exrule=[];n._exdate=[];return n}r.prototype._iter=function(t){return ir(t,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())};r.prototype.rrule=function(t){br(t,this._rrule)};r.prototype.exrule=function(t){br(t,this._exrule)};r.prototype.rdate=function(t){pr(t,this._rdate)};r.prototype.exdate=function(t){pr(t,this._exdate)};r.prototype.rrules=function(){return this._rrule.map((function(t){return fr(t.toString())}))};r.prototype.exrules=function(){return this._exrule.map((function(t){return fr(t.toString())}))};r.prototype.rdates=function(){return this._rdate.map((function(t){return new Date(t.getTime())}))};r.prototype.exdates=function(){return this._exdate.map((function(t){return new Date(t.getTime())}))};r.prototype.valueOf=function(){var t=[];if(!this._rrule.length&&this._dtstart){t=t.concat(Dt({dtstart:this._dtstart}))}this._rrule.forEach((function(r){t=t.concat(r.toString().split("\n"))}));this._exrule.forEach((function(r){t=t.concat(r.toString().split("\n").map((function(t){return t.replace(/^RRULE:/,"EXRULE:")})).filter((function(t){return!/^DTSTART/.test(t)})))}));if(this._rdate.length){t.push(Er("RDATE",this._rdate,this.tzid()))}if(this._exdate.length){t.push(Er("EXDATE",this._exdate,this.tzid()))}return t};r.prototype.toString=function(){return this.valueOf().join("\n")};r.prototype.clone=function(){var t=new r(!!this._cache);this._rrule.forEach((function(r){return t.rrule(r.clone())}));this._exrule.forEach((function(r){return t.exrule(r.clone())}));this._rdate.forEach((function(r){return t.rdate(new Date(r.getTime()))}));this._exdate.forEach((function(r){return t.exdate(new Date(r.getTime()))}));return t};return r}(er);function br(t,r){if(!(t instanceof er)){throw new TypeError(String(t)+" is not RRule instance")}if(!b(r.map(String),String(t))){r.push(t)}}function pr(t,r){if(!(t instanceof Date)){throw new TypeError(String(t)+" is not Date instance")}if(!b(r.map(Number),Number(t))){r.push(t);_(r)}}function Er(t,r,n){var e=!n||n.toUpperCase()==="UTC";var i=e?"".concat(t,":"):"".concat(t,";TZID=").concat(n,":");var s=r.map((function(t){return C(t.valueOf(),e)})).join(",");return"".concat(i).concat(s)}function Dr(...t){if(window&&window.localStorage&&window.localStorage.getItem("debug")){console.debug(...t)}}function kr(...t){console.error(...t)}function Tr(){return Math.random().toString(36).substr(2,9)}function gr(t){return t.toString().replace(/^on/,"")}function Mr(t){const r=new Date(t*1e3);const n=new Date;const e=new Date(n.getFullYear(),n.getMonth(),n.getDate());if(r>=e){const t=new Intl.DateTimeFormat("default",{hour:"numeric",minute:"numeric",hour12:true});return t.format(r)}else{const t=new Intl.DateTimeFormat("default",{month:"short",day:"numeric"});return t.format(r)}}function Sr(t){return t.name?`${t.name} - ${t.email}`:t.email}function Rr(t,r="",n=1,e=3){const i=t.find((t=>t.email?.toLowerCase()===r.toLowerCase()));const s=t.filter((t=>t.email?.toLowerCase()!==r.toLowerCase()));const u=s.length;const a=s.slice(0,e).map((t=>t.name||t.email)).join(", ");if(u===0){return i?"me":""}else if(u===1){return i&&n>1?`me, ${a}`:a}else if(u===2){return i?`me, ${a}`:`${a}`}else{return i?`me, ${a}, +${u-e}`:`${a}, +${u-e}`}}const Ir=[{amount:60,name:"seconds"},{amount:60,name:"minutes"},{amount:24,name:"hours"},{amount:7,name:"days"},{amount:4.34524,name:"weeks"},{amount:12,name:"months"},{amount:Number.POSITIVE_INFINITY,name:"years"}];const Ur=t=>{const r=new Intl.RelativeTimeFormat(undefined,{numeric:"auto"});const n=new Date;let e=(t.getTime()-n.getTime())/1e3;for(let t=0;t<=Ir.length;t++){const n=Ir[t];if(Math.abs(e)<n.amount){return r.format(Math.round(e),n.name)}e/=n.amount}};function Ar(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function Yr(t){return new Date(t.getFullYear(),t.getMonth(),1)}function Or(t,r){return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function jr(t,r){return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()}function $r(t){return t.replace(/\w\S*/g,(t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()))}function Nr(t){return t.replace("CATEGORY_","").replace(/_/g," ")}function xr(t){const r=/<[^>]*>/g;return r.test(t)?"html":"plain"}function Lr(t){const r=t.headers;const n=r&&r.find((t=>t.name==="Content-Type"))?.value||"";const e=r&&r.find((t=>t.name==="Content-Disposition"))?.value||"";if(n.includes("text/html")){return true}if(e.includes("inline")){return true}if(t.body&&xr(t.body)==="html"){return true}return false}function _r(t){const r=t.split("\n").filter((t=>t.trim().length>0));const n=r.map((t=>`<p>${t}</p>`));let e=n.join("");const i=/((?:https?|ftp):\/\/[^\s]+)/g;e=e.replace(i,'<a href="$1">$1</a>');return e}function Cr(t){const r=(new DOMParser).parseFromString(t,"text/html");return r.body.textContent||""}const Hr=t=>{if(t===""){return true}const r=/^(0[0-9]|1[0-2]|^[0-9])(:[0-5][0-9][ap]m?|:[0-5][0-9]|:[0-5]|:)?$/i;return r.test(t)};const Wr=t=>{const r=/^(0[1-9]|1[0-2]):([0-5][0-9])(am|pm)$/i;return r.test(t)};function Br(t=null){let r=n();if(t){r=t}const e=r.minute()%15;let i;if(e!==0){i=r.add(15-e,"minute")}else{i=r}return i}function Zr(t){const r=n();let e="";const[i,s]=t.split(":");if(i.length===1){e+="0"+i}else if(i.length===2){e+=i}e+=":";if(s===undefined||s==""){e+="00"}else{if(s.length===1){e+=s+"0"}else{e+=s}}const u=e.slice(-1);if(u==="a"){e+="m"}if(u==="p"){e+="m"}if(e.slice(-1)!=="m"){if(e.split(":")[0]=="00"){e+="am"}else{e+=r.format("a")}}return e}function Fr(t){const[r,n]=t.split(":").map((t=>parseInt(t,10)));let e=r;const i=e>=12?"pm":"am";e=e%12;e=e?e:12;const s=e.toString().padStart(2,"0");const u=n.toString().padStart(2,"0");return`${s}:${u}${i}`}function Kr(t){const[r,n]=t.split(/(am|pm)/i);const[e,i]=r.split(":").map((t=>parseInt(t,10)));let s=e;if(n.toLowerCase()==="pm"&&s<12){s+=12}else if(n.toLowerCase()==="am"&&s===12){s=0}return`${s.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function zr(t){const[r,n]=t.match(/(\d+):(\d+)(am|pm)/).slice(1);let e=parseInt(r,10)*60+parseInt(n,10);if(t.includes("pm")&&parseInt(r,10)<12)e+=12*60;if(t.includes("am")&&parseInt(r,10)===12)e-=12*60;return e}function Xr(t){const r=Math.floor(t/60);const n=t%60;return`${r}:${n<10?"0":""}${n}`}function Jr(){const t=navigator.userAgent;const r=/Chrome/.test(t)&&/Google Inc/.test(navigator.vendor);const n=/Safari/.test(t)&&/Apple Computer/.test(navigator.vendor);const e=/Firefox/.test(t);const i=/Trident/.test(t);const s=/Edge/.test(t);const u=r&&/Edg/.test(t);if(u)return"Edge (Chromium)";if(r)return"Chrome";if(n)return"Safari";if(e)return"Firefox";if(i)return"Internet Explorer";if(s)return"Edge (Legacy)";return"Unknown"}function qr(t,r=null){if(r){return[null,r]}return[t,null]}function Pr(t,r){const n={"config.id":r?.id,id:r?.id};Object.keys(n).forEach((r=>{t=t.replace(`{${r}}`,n[r])}));return t}export{Zr as A,Hr as B,Br as C,Wr as D,Dr as a,Rr as b,Mr as c,qr as d,kr as e,Nr as f,gr as g,Ur as h,Sr as i,Cr as j,Lr as k,xr as l,Pr as m,Ar as n,Yr as o,_r as p,Or as q,jr as r,zr as s,$r as t,Tr as u,Fr as v,Kr as w,Xr as x,Jr as y,n as z};
|
|
2
|
+
//# sourceMappingURL=p-41dc0d93.js.map
|