@nylas/react 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.
Files changed (135) hide show
  1. package/dist/{add-circle-icon_22.entry-da31fa71.js → add-circle-icon_22.entry-9f634efd.js} +90 -92
  2. package/dist/add-circle-icon_22.entry-e7ec6c34.cjs +1 -0
  3. package/dist/{archive-icon_7.entry-bc2418f7.js → archive-icon_7.entry-24bac466.js} +21 -21
  4. package/dist/{archive-icon_7.entry-7aad8104.cjs → archive-icon_7.entry-6649ed76.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-6eba68a9.cjs → arrow-icon.entry-1fffd526.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-9a932082.js → arrow-icon.entry-82e59ce4.js} +4 -4
  7. package/dist/{bold-icon_3.entry-db17d481.cjs → bold-icon_3.entry-5a01fecf.cjs} +1 -1
  8. package/dist/{bold-icon_3.entry-5f7e3755.js → bold-icon_3.entry-72e585da.js} +4 -4
  9. package/dist/{calendar-cancel-icon.entry-a5141f82.cjs → calendar-cancel-icon.entry-0b52bdc9.cjs} +1 -1
  10. package/dist/{calendar-cancel-icon.entry-1ff7845a.js → calendar-cancel-icon.entry-247b530c.js} +5 -5
  11. package/dist/{calendar-check-icon_2.entry-c3add652.cjs → calendar-check-icon_2.entry-d7bb76c7.cjs} +1 -1
  12. package/dist/{calendar-check-icon_2.entry-d7421059.js → calendar-check-icon_2.entry-dbb2df49.js} +7 -7
  13. package/dist/{calendar-icon.entry-445d624a.cjs → calendar-icon.entry-911773c4.cjs} +1 -1
  14. package/dist/{calendar-icon.entry-4458997f.js → calendar-icon.entry-d64cb3d3.js} +2 -2
  15. package/dist/{chevron-icon_3.entry-8961e6bb.cjs → chevron-icon_3.entry-b72f4cdb.cjs} +1 -1
  16. package/dist/{chevron-icon_3.entry-f7f3d487.js → chevron-icon_3.entry-db9f8217.js} +11 -11
  17. package/dist/close-icon.entry-9d141bb4.js +15 -0
  18. package/dist/close-icon.entry-da590fa2.cjs +1 -0
  19. package/dist/{constants-6ee60d6d-6c0540db.cjs → constants-6ee60d6d-09ee73d9.cjs} +1 -1
  20. package/dist/{constants-6ee60d6d-4cd16450.js → constants-6ee60d6d-d5928e79.js} +1 -1
  21. package/dist/document-refresh-icon.entry-5e8cc2f0.cjs +1 -0
  22. package/dist/{document-refresh-icon.entry-bdc323b5.js → document-refresh-icon.entry-ee9632d7.js} +5 -5
  23. package/dist/elements/index.d.ts +1 -0
  24. package/dist/{elements-dc5b338e-81a0319c.cjs → elements-dc5b338e-29ef67ec.cjs} +1 -1
  25. package/dist/{elements-dc5b338e-fb5dbfb5.js → elements-dc5b338e-e87f79b6.js} +1 -1
  26. package/dist/focus-visible-e8093c16-61d506d2.cjs +1 -0
  27. package/dist/{focus-visible-e8093c16-28fc08a0.js → focus-visible-e8093c16-e7357f74.js} +5 -3
  28. package/dist/forward-icon_6.entry-cac8473a.cjs +3 -0
  29. package/dist/{forward-icon_6.entry-62759373.js → forward-icon_6.entry-f054ad9d.js} +65 -67
  30. package/dist/{globe-icon.entry-9e082178.js → globe-icon.entry-2fde6ac4.js} +4 -4
  31. package/dist/{globe-icon.entry-c8302bf5.cjs → globe-icon.entry-bc484551.cjs} +1 -1
  32. package/dist/google-logo-icon_4.entry-a9848399.cjs +1 -0
  33. package/dist/google-logo-icon_4.entry-dca87e45.js +349 -0
  34. package/dist/index-22f7e49c.cjs +37 -0
  35. package/dist/index-f9ba9aa8.js +3971 -0
  36. package/dist/{index.es-2578c6a5-71441142.js → index.es-f57e612a-1d17c676.js} +516 -512
  37. package/dist/{index.es-2578c6a5-098d48d0.cjs → index.es-f57e612a-95ca3e17.cjs} +5 -5
  38. package/dist/{info-icon_2.entry-73106882.js → info-icon_2.entry-dbf3931a.js} +7 -7
  39. package/dist/{info-icon_2.entry-ca224a3b.cjs → info-icon_2.entry-e67844eb.cjs} +1 -1
  40. package/dist/loading-icon.entry-4566cba8.cjs +1 -0
  41. package/dist/loading-icon.entry-ae4c2d7e.js +15 -0
  42. package/dist/{mailbox-store-bb21512c-615660ef.js → mailbox-store-47fc8a1a-2365f20f.js} +16 -17
  43. package/dist/mailbox-store-47fc8a1a-cd3516a7.cjs +1 -0
  44. package/dist/nylas-additional-participants.entry-7c568149.cjs +1 -0
  45. package/dist/{nylas-additional-participants.entry-db85836a.js → nylas-additional-participants.entry-e8426256.js} +12 -14
  46. package/dist/nylas-booked-event-card_10.entry-6a664889.cjs +1 -0
  47. package/dist/{nylas-booked-event-card_10.entry-b49b2369.js → nylas-booked-event-card_10.entry-ef767733.js} +8 -10
  48. package/dist/{nylas-form-card.entry-090a4d3b.js → nylas-form-card.entry-d8506b1f.js} +4 -6
  49. package/dist/nylas-form-card.entry-e44169b6.cjs +1 -0
  50. package/dist/nylas-if-state.entry-044c49d2.cjs +1 -0
  51. package/dist/{nylas-if-state.entry-7924dde0.js → nylas-if-state.entry-98a336df.js} +2 -4
  52. package/dist/nylas-list-folders.entry-509f9be4.cjs +1 -0
  53. package/dist/{nylas-list-folders.entry-9dd96530.js → nylas-list-folders.entry-55ce3403.js} +6 -8
  54. package/dist/{nylas-list-threads.entry-b435eaae.js → nylas-list-threads.entry-1f57382a.js} +5 -7
  55. package/dist/nylas-list-threads.entry-c36e2cf3.cjs +1 -0
  56. package/dist/nylas-login.entry-66f542b8.cjs +1 -0
  57. package/dist/{nylas-login.entry-97350c76.js → nylas-login.entry-76358c2f.js} +3 -5
  58. package/dist/{nylas-mailbox-pagination.entry-ceef8be2.js → nylas-mailbox-pagination.entry-5562257a.js} +7 -9
  59. package/dist/nylas-mailbox-pagination.entry-89b0dd99.cjs +1 -0
  60. package/dist/nylas-mailbox-toolbar-button.entry-573e0429.cjs +1 -0
  61. package/dist/{nylas-mailbox-toolbar-button.entry-e6b3d3a4.js → nylas-mailbox-toolbar-button.entry-6b1b5b15.js} +16 -18
  62. package/dist/{nylas-mailbox.entry-06d8014a.js → nylas-mailbox.entry-97c503f2.js} +7 -9
  63. package/dist/nylas-mailbox.entry-e21a2f50.cjs +1 -0
  64. package/dist/{nylas-provider.entry-8b9c2b69.js → nylas-provider.entry-07e1e26a.js} +10 -12
  65. package/dist/nylas-provider.entry-61899957.cjs +1 -0
  66. package/dist/nylas-scheduler-editor.entry-60fe38ce.cjs +7 -0
  67. package/dist/{nylas-scheduler-editor.entry-c3791787.js → nylas-scheduler-editor.entry-e326c9de.js} +333 -239
  68. package/dist/{nylas-scheduling.entry-6380509a.js → nylas-scheduling.entry-be0cc090.js} +6 -8
  69. package/dist/nylas-scheduling.entry-d88289db.cjs +1 -0
  70. package/dist/{nylas-threads-refresh.entry-eaee86fb.js → nylas-threads-refresh.entry-8201f8dd.js} +11 -13
  71. package/dist/nylas-threads-refresh.entry-c71ee775.cjs +1 -0
  72. package/dist/nylas-threads-search.entry-912a90a4.cjs +1 -0
  73. package/dist/{nylas-threads-search.entry-7e12758e.js → nylas-threads-search.entry-fc477e01.js} +18 -20
  74. package/dist/nylas-view-thread.entry-af418ddb.cjs +1 -0
  75. package/dist/{nylas-view-thread.entry-b936e76a.js → nylas-view-thread.entry-d2953ea8.js} +7 -9
  76. package/dist/{people-icon.entry-5c8ee696.js → people-icon.entry-4b598fde.js} +7 -7
  77. package/dist/{people-icon.entry-bcf848c0.cjs → people-icon.entry-73cfa6f5.cjs} +1 -1
  78. package/dist/play-icon_2.entry-1a487abb.cjs +1 -0
  79. package/dist/{play-icon_2.entry-356e63cc.js → play-icon_2.entry-d1c2f823.js} +5 -5
  80. package/dist/react.cjs +1 -1
  81. package/dist/react.js +68 -67
  82. package/dist/{refresh-icon.entry-bec053b6.cjs → refresh-icon.entry-42d543d0.cjs} +1 -1
  83. package/dist/{refresh-icon.entry-77f0c377.js → refresh-icon.entry-6aedfce6.js} +4 -4
  84. package/dist/register-component-cf5c8420-d3fb6bf9.cjs +1 -0
  85. package/dist/{register-component-dc659dc3-0fdb18dc.js → register-component-cf5c8420-dc1bc0a4.js} +37 -33
  86. package/dist/scheduler-config-store-6222c0ed-000f1a4f.js +18 -0
  87. package/dist/scheduler-config-store-6222c0ed-758621fb.cjs +1 -0
  88. package/dist/{scheduler-store-72116723-3ba2480c.js → scheduler-store-39d37291-4e8e9ff9.js} +5 -6
  89. package/dist/scheduler-store-39d37291-b66c052c.cjs +1 -0
  90. package/dist/{time-period-selector.entry-decd251b.js → time-period-selector.entry-f1e27a00.js} +6 -8
  91. package/dist/time-period-selector.entry-fb3d0178.cjs +1 -0
  92. package/dist/{translate-icon.entry-dd5b707c.cjs → translate-icon.entry-0d44b6cb.cjs} +1 -1
  93. package/dist/{translate-icon.entry-cac02c46.js → translate-icon.entry-3db947f5.js} +5 -5
  94. package/dist/{warning-icon.entry-8af8a742.cjs → warning-icon.entry-a20657e4.cjs} +1 -1
  95. package/dist/{warning-icon.entry-370b9cf0.js → warning-icon.entry-a8ea0fe0.js} +5 -5
  96. package/package.json +2 -2
  97. package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +0 -1
  98. package/dist/_commonjsHelpers-57e89916-af061c86.js +0 -19
  99. package/dist/add-circle-icon_22.entry-8d0ac489.cjs +0 -1
  100. package/dist/close-icon.entry-6dd5ff0a.js +0 -15
  101. package/dist/close-icon.entry-ebc527c5.cjs +0 -1
  102. package/dist/document-refresh-icon.entry-298b2133.cjs +0 -1
  103. package/dist/focus-visible-e8093c16-f380b705.cjs +0 -1
  104. package/dist/forward-icon_6.entry-15208ea9.cjs +0 -3
  105. package/dist/google-logo-icon_3.entry-0c095209.js +0 -258
  106. package/dist/google-logo-icon_3.entry-f8433ff9.cjs +0 -1
  107. package/dist/index-0f3bd8df.js +0 -1824
  108. package/dist/index-7a55dc33.cjs +0 -30
  109. package/dist/loading-icon.entry-012644b7.js +0 -15
  110. package/dist/loading-icon.entry-f9f5e66f.cjs +0 -1
  111. package/dist/mailbox-store-bb21512c-045c3ea0.cjs +0 -1
  112. package/dist/nylas-additional-participants.entry-a50ef8e2.cjs +0 -1
  113. package/dist/nylas-booked-event-card_10.entry-fccb783c.cjs +0 -1
  114. package/dist/nylas-form-card.entry-f5230005.cjs +0 -1
  115. package/dist/nylas-if-state.entry-ff9c9a85.cjs +0 -1
  116. package/dist/nylas-list-folders.entry-dbfc2cf8.cjs +0 -1
  117. package/dist/nylas-list-threads.entry-6bcc0328.cjs +0 -1
  118. package/dist/nylas-login.entry-1623d309.cjs +0 -1
  119. package/dist/nylas-mailbox-pagination.entry-1776eb16.cjs +0 -1
  120. package/dist/nylas-mailbox-toolbar-button.entry-7d3f79b9.cjs +0 -1
  121. package/dist/nylas-mailbox.entry-ae8da6ff.cjs +0 -1
  122. package/dist/nylas-provider.entry-97c9e272.cjs +0 -1
  123. package/dist/nylas-scheduler-editor.entry-f6cf1cd9.cjs +0 -7
  124. package/dist/nylas-scheduling.entry-08ae840a.cjs +0 -1
  125. package/dist/nylas-threads-refresh.entry-246e6d77.cjs +0 -1
  126. package/dist/nylas-threads-search.entry-42a2acb1.cjs +0 -1
  127. package/dist/nylas-view-thread.entry-78e6927a.cjs +0 -1
  128. package/dist/play-icon_2.entry-92e78f1b.cjs +0 -1
  129. package/dist/register-component-dc659dc3-f58bf25b.cjs +0 -1
  130. package/dist/scheduler-config-store-51ee4f42-ce3a9b0e.cjs +0 -1
  131. package/dist/scheduler-config-store-51ee4f42-e02895da.js +0 -14
  132. package/dist/scheduler-store-72116723-db9d91f6.cjs +0 -1
  133. package/dist/time-period-selector.entry-f25fad77.cjs +0 -1
  134. package/dist/utils-c00bdc3c-89ab163d.js +0 -2111
  135. package/dist/utils-c00bdc3c-94b9c3b6.cjs +0 -8
@@ -0,0 +1,3971 @@
1
+ var Gr = Object.defineProperty;
2
+ var Zr = (t, e, n) => e in t ? Gr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var wt = (t, e, n) => (Zr(t, typeof e != "symbol" ? e + "" : e, n), n);
4
+ import ht, { createElement as Jr, useReducer as Xr, useRef as Et, useEffect as Qr } from "react";
5
+ import "react-dom";
6
+ const Vr = "nylas-web-elements", qn = (
7
+ /* nylas-web-elements */
8
+ { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !0, cmpDidUnload: !1, cmpDidUpdate: !0, cmpShouldUpdate: !1, cmpWillLoad: !0, cmpWillRender: !0, cmpWillUpdate: !0, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !0, hasRenderFn: !0, hostListener: !0, hostListenerTarget: !0, hostListenerTargetBody: !0, hostListenerTargetDocument: !0, hostListenerTargetParent: !1, hostListenerTargetWindow: !0, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !0, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !0, propNumber: !0, propString: !0, reflect: !1, scoped: !0, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !0, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !0, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
9
+ );
10
+ let He, Ot, yt, Kn = !1, st = !1, Ht = !1, le = !1, _t = null, Dt = !1;
11
+ const Oe = (t, e = "") => () => {
12
+ }, ea = (t, e) => () => {
13
+ }, ta = "{visibility:hidden}.hydrated{visibility:inherit}", Gn = "slot-fb{display:contents}slot-fb[hidden]{display:none}", na = [
14
+ "formAssociatedCallback",
15
+ "formResetCallback",
16
+ "formDisabledCallback",
17
+ "formStateRestoreCallback"
18
+ ], un = {}, ra = "http://www.w3.org/2000/svg", aa = "http://www.w3.org/1999/xhtml", sa = (t) => t != null, jt = (t) => (t = typeof t, t === "object" || t === "function");
19
+ function Zn(t) {
20
+ var e, n, r;
21
+ return (r = (n = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || n === void 0 ? void 0 : n.getAttribute("content")) !== null && r !== void 0 ? r : void 0;
22
+ }
23
+ const Jn = (t, e, ...n) => {
24
+ let r = null, a = null, i = null, s = !1, l = !1;
25
+ const o = [], u = (f) => {
26
+ for (let h = 0; h < f.length; h++)
27
+ r = f[h], Array.isArray(r) ? u(r) : r != null && typeof r != "boolean" && ((s = typeof t != "function" && !jt(r)) && (r = String(r)), s && l ? o[o.length - 1].$text$ += r : o.push(s ? it(null, r) : r), l = s);
28
+ };
29
+ if (u(n), e) {
30
+ e.key && (a = e.key), e.name && (i = e.name);
31
+ {
32
+ const f = e.className || e.class;
33
+ f && (e.class = typeof f != "object" ? f : Object.keys(f).filter((h) => f[h]).join(" "));
34
+ }
35
+ }
36
+ if (typeof t == "function")
37
+ return t(e === null ? {} : e, o, la);
38
+ const d = it(t, null);
39
+ return d.$attrs$ = e, o.length > 0 && (d.$children$ = o), d.$key$ = a, d.$name$ = i, d;
40
+ }, it = (t, e) => {
41
+ const n = {
42
+ $flags$: 0,
43
+ $tag$: t,
44
+ $text$: e,
45
+ $elm$: null,
46
+ $children$: null
47
+ };
48
+ return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;
49
+ }, ia = {}, oa = (t) => t && t.$tag$ === ia, la = {
50
+ forEach: (t, e) => t.map(dn).forEach(e),
51
+ map: (t, e) => t.map(dn).map(e).map(ca)
52
+ }, dn = (t) => ({
53
+ vattrs: t.$attrs$,
54
+ vchildren: t.$children$,
55
+ vkey: t.$key$,
56
+ vname: t.$name$,
57
+ vtag: t.$tag$,
58
+ vtext: t.$text$
59
+ }), ca = (t) => {
60
+ if (typeof t.vtag == "function") {
61
+ const n = Object.assign({}, t.vattrs);
62
+ return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Jn(t.vtag, n, ...t.vchildren || []);
63
+ }
64
+ const e = it(t.vtag, t.vtext);
65
+ return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
66
+ }, ua = (t, e) => t != null && !jt(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, da = (t) => $e(t).$hostElement$, fi = (t, e, n) => {
67
+ const r = da(t);
68
+ return {
69
+ emit: (a) => Xn(r, e, {
70
+ bubbles: !!(n & 4),
71
+ composed: !!(n & 2),
72
+ cancelable: !!(n & 1),
73
+ detail: a
74
+ })
75
+ };
76
+ }, Xn = (t, e, n) => {
77
+ const r = B.ce(e, n);
78
+ return t.dispatchEvent(r), r;
79
+ }, fn = /* @__PURE__ */ new WeakMap(), fa = (t, e, n) => {
80
+ let r = lt.get(t);
81
+ Pa && n ? (r = r || new CSSStyleSheet(), typeof r == "string" ? r = e : r.replaceSync(e)) : r = e, lt.set(t, r);
82
+ }, ha = (t, e, n) => {
83
+ var r;
84
+ const a = Qn(e), i = lt.get(a);
85
+ if (t = t.nodeType === 11 ? t : re, i)
86
+ if (typeof i == "string") {
87
+ t = t.head || t;
88
+ let s = fn.get(t), l;
89
+ if (s || fn.set(t, s = /* @__PURE__ */ new Set()), !s.has(a)) {
90
+ {
91
+ l = re.createElement("style"), l.innerHTML = i;
92
+ const o = (r = B.$nonce$) !== null && r !== void 0 ? r : Zn(re);
93
+ o != null && l.setAttribute("nonce", o), t.insertBefore(l, t.querySelector("link"));
94
+ }
95
+ e.$flags$ & 4 && (l.innerHTML += Gn), s && s.add(a);
96
+ }
97
+ } else
98
+ t.adoptedStyleSheets.includes(i) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, i]);
99
+ return a;
100
+ }, ya = (t) => {
101
+ const e = t.$cmpMeta$, n = t.$hostElement$, r = e.$flags$, a = Oe("attachStyles", e.$tagName$), i = ha(n.shadowRoot ? n.shadowRoot : n.getRootNode(), e);
102
+ r & 10 && (n["s-sc"] = i, n.classList.add(i + "-h"), r & 2 && n.classList.add(i + "-s")), a();
103
+ }, Qn = (t, e) => "sc-" + t.$tagName$, hn = (t, e, n, r, a, i) => {
104
+ if (n !== r) {
105
+ let s = $n(t, e), l = e.toLowerCase();
106
+ if (e === "class") {
107
+ const o = t.classList, u = yn(n), d = yn(r);
108
+ o.remove(...u.filter((f) => f && !d.includes(f))), o.add(...d.filter((f) => f && !u.includes(f)));
109
+ } else if (e === "style") {
110
+ for (const o in n)
111
+ (!r || r[o] == null) && (o.includes("-") ? t.style.removeProperty(o) : t.style[o] = "");
112
+ for (const o in r)
113
+ (!n || r[o] !== n[o]) && (o.includes("-") ? t.style.setProperty(o, r[o]) : t.style[o] = r[o]);
114
+ } else if (e !== "key")
115
+ if (e === "ref")
116
+ r && r(t);
117
+ else if (!s && e[0] === "o" && e[1] === "n") {
118
+ if (e[2] === "-" ? e = e.slice(3) : $n(et, l) ? e = l.slice(2) : e = l[2] + e.slice(3), n || r) {
119
+ const o = e.endsWith(Vn);
120
+ e = e.replace(ma, ""), n && B.rel(t, e, n, o), r && B.ael(t, e, r, o);
121
+ }
122
+ } else {
123
+ const o = jt(r);
124
+ if ((s || o && r !== null) && !a)
125
+ try {
126
+ if (t.tagName.includes("-"))
127
+ t[e] = r;
128
+ else {
129
+ const u = r ?? "";
130
+ e === "list" ? s = !1 : (n == null || t[e] != u) && (t[e] = u);
131
+ }
132
+ } catch {
133
+ }
134
+ r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === "") && t.removeAttribute(e) : (!s || i & 4 || a) && !o && (r = r === !0 ? "" : r, t.setAttribute(e, r));
135
+ }
136
+ }
137
+ }, pa = /\s/, yn = (t) => t ? t.split(pa) : [], Vn = "Capture", ma = new RegExp(Vn + "$"), er = (t, e, n, r) => {
138
+ const a = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, i = t && t.$attrs$ || un, s = e.$attrs$ || un;
139
+ for (r in i)
140
+ r in s || hn(a, r, i[r], void 0, n, e.$flags$);
141
+ for (r in s)
142
+ hn(a, r, i[r], s[r], n, e.$flags$);
143
+ }, ot = (t, e, n, r) => {
144
+ const a = e.$children$[n];
145
+ let i = 0, s, l, o;
146
+ if (Kn || (Ht = !0, a.$tag$ === "slot" && (He && r.classList.add(He + "-s"), a.$flags$ |= a.$children$ ? (
147
+ // slot element has fallback content
148
+ 2
149
+ ) : (
150
+ // slot element does not have fallback content
151
+ 1
152
+ ))), a.$text$ !== null)
153
+ s = a.$elm$ = re.createTextNode(a.$text$);
154
+ else if (a.$flags$ & 1)
155
+ s = a.$elm$ = re.createTextNode("");
156
+ else {
157
+ if (le || (le = a.$tag$ === "svg"), s = a.$elm$ = re.createElementNS(le ? ra : aa, a.$flags$ & 2 ? "slot-fb" : a.$tag$), le && a.$tag$ === "foreignObject" && (le = !1), er(null, a, le), sa(He) && s["s-si"] !== He && s.classList.add(s["s-si"] = He), a.$children$)
158
+ for (i = 0; i < a.$children$.length; ++i)
159
+ l = ot(t, a, i, s), l && s.appendChild(l);
160
+ a.$tag$ === "svg" ? le = !1 : s.tagName === "foreignObject" && (le = !0);
161
+ }
162
+ return s["s-hn"] = yt, a.$flags$ & 3 && (s["s-sr"] = !0, s["s-cr"] = Ot, s["s-sn"] = a.$name$ || "", o = t && t.$children$ && t.$children$[n], o && o.$tag$ === a.$tag$ && t.$elm$ && Qe(t.$elm$, !1)), s;
163
+ }, Qe = (t, e) => {
164
+ B.$flags$ |= 1;
165
+ const n = t.childNodes;
166
+ for (let r = n.length - 1; r >= 0; r--) {
167
+ const a = n[r];
168
+ a["s-hn"] !== yt && a["s-ol"] && (rr(a).insertBefore(a, Ft(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, Ht = !0), e && Qe(a, e);
169
+ }
170
+ B.$flags$ &= -2;
171
+ }, tr = (t, e, n, r, a, i) => {
172
+ let s = t["s-cr"] && t["s-cr"].parentNode || t, l;
173
+ for (s.shadowRoot && s.tagName === yt && (s = s.shadowRoot); a <= i; ++a)
174
+ r[a] && (l = ot(null, n, a, t), l && (r[a].$elm$ = l, s.insertBefore(l, Ft(e))));
175
+ }, nr = (t, e, n) => {
176
+ for (let r = e; r <= n; ++r) {
177
+ const a = t[r];
178
+ if (a) {
179
+ const i = a.$elm$;
180
+ ir(a), i && (st = !0, i["s-ol"] ? i["s-ol"].remove() : Qe(i, !0), i.remove());
181
+ }
182
+ }
183
+ }, va = (t, e, n, r, a = !1) => {
184
+ let i = 0, s = 0, l = 0, o = 0, u = e.length - 1, d = e[0], f = e[u], h = r.length - 1, y = r[0], p = r[h], v, b;
185
+ for (; i <= u && s <= h; )
186
+ if (d == null)
187
+ d = e[++i];
188
+ else if (f == null)
189
+ f = e[--u];
190
+ else if (y == null)
191
+ y = r[++s];
192
+ else if (p == null)
193
+ p = r[--h];
194
+ else if (at(d, y, a))
195
+ je(d, y, a), d = e[++i], y = r[++s];
196
+ else if (at(f, p, a))
197
+ je(f, p, a), f = e[--u], p = r[--h];
198
+ else if (at(d, p, a))
199
+ (d.$tag$ === "slot" || p.$tag$ === "slot") && Qe(d.$elm$.parentNode, !1), je(d, p, a), t.insertBefore(d.$elm$, f.$elm$.nextSibling), d = e[++i], p = r[--h];
200
+ else if (at(f, y, a))
201
+ (d.$tag$ === "slot" || p.$tag$ === "slot") && Qe(f.$elm$.parentNode, !1), je(f, y, a), t.insertBefore(f.$elm$, d.$elm$), f = e[--u], y = r[++s];
202
+ else {
203
+ for (l = -1, o = i; o <= u; ++o)
204
+ if (e[o] && e[o].$key$ !== null && e[o].$key$ === y.$key$) {
205
+ l = o;
206
+ break;
207
+ }
208
+ l >= 0 ? (b = e[l], b.$tag$ !== y.$tag$ ? v = ot(e && e[s], n, l, t) : (je(b, y, a), e[l] = void 0, v = b.$elm$), y = r[++s]) : (v = ot(e && e[s], n, s, t), y = r[++s]), v && rr(d.$elm$).insertBefore(v, Ft(d.$elm$));
209
+ }
210
+ i > u ? tr(t, r[h + 1] == null ? null : r[h + 1].$elm$, n, r, s, h) : s > h && nr(e, i, u);
211
+ }, at = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, Ft = (t) => t && t["s-ol"] || t, rr = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, je = (t, e, n = !1) => {
212
+ const r = e.$elm$ = t.$elm$, a = t.$children$, i = e.$children$, s = e.$tag$, l = e.$text$;
213
+ let o;
214
+ l === null ? (le = s === "svg" ? !0 : s === "foreignObject" ? !1 : le, s === "slot" || er(t, e, le), a !== null && i !== null ? va(r, a, e, i, n) : i !== null ? (t.$text$ !== null && (r.textContent = ""), tr(r, null, e, i, 0, i.length - 1)) : a !== null && nr(a, 0, a.length - 1), le && s === "svg" && (le = !1)) : (o = r["s-cr"]) ? o.parentNode.textContent = l : t.$text$ !== l && (r.data = l);
215
+ }, ar = (t) => {
216
+ const e = t.childNodes;
217
+ for (const n of e)
218
+ if (n.nodeType === 1) {
219
+ if (n["s-sr"]) {
220
+ const r = n["s-sn"];
221
+ n.hidden = !1;
222
+ for (const a of e)
223
+ if (a !== n) {
224
+ if (a["s-hn"] !== n["s-hn"] || r !== "") {
225
+ if (a.nodeType === 1 && (r === a.getAttribute("slot") || r === a["s-sn"])) {
226
+ n.hidden = !0;
227
+ break;
228
+ }
229
+ } else if (a.nodeType === 1 || a.nodeType === 3 && a.textContent.trim() !== "") {
230
+ n.hidden = !0;
231
+ break;
232
+ }
233
+ }
234
+ }
235
+ ar(n);
236
+ }
237
+ }, Ce = [], sr = (t) => {
238
+ let e, n, r;
239
+ for (const a of t.childNodes) {
240
+ if (a["s-sr"] && (e = a["s-cr"]) && e.parentNode) {
241
+ n = e.parentNode.childNodes;
242
+ const i = a["s-sn"];
243
+ for (r = n.length - 1; r >= 0; r--)
244
+ if (e = n[r], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== a["s-hn"] && !qn.experimentalSlotFixes)
245
+ if (pn(e, i)) {
246
+ let s = Ce.find((l) => l.$nodeToRelocate$ === e);
247
+ st = !0, e["s-sn"] = e["s-sn"] || i, s ? (s.$nodeToRelocate$["s-sh"] = a["s-hn"], s.$slotRefNode$ = a) : (e["s-sh"] = a["s-hn"], Ce.push({
248
+ $slotRefNode$: a,
249
+ $nodeToRelocate$: e
250
+ })), e["s-sr"] && Ce.map((l) => {
251
+ pn(l.$nodeToRelocate$, e["s-sn"]) && (s = Ce.find((o) => o.$nodeToRelocate$ === e), s && !l.$slotRefNode$ && (l.$slotRefNode$ = s.$slotRefNode$));
252
+ });
253
+ } else
254
+ Ce.some((s) => s.$nodeToRelocate$ === e) || Ce.push({
255
+ $nodeToRelocate$: e
256
+ });
257
+ }
258
+ a.nodeType === 1 && sr(a);
259
+ }
260
+ }, pn = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", ir = (t) => {
261
+ t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(ir);
262
+ }, ga = (t, e, n = !1) => {
263
+ var r, a, i, s;
264
+ const l = t.$hostElement$, o = t.$cmpMeta$, u = t.$vnode$ || it(null, null), d = oa(e) ? e : Jn(null, null, e);
265
+ if (yt = l.tagName, n && d.$attrs$)
266
+ for (const f of Object.keys(d.$attrs$))
267
+ l.hasAttribute(f) && !["key", "ref", "style", "class"].includes(f) && (d.$attrs$[f] = l[f]);
268
+ d.$tag$ = null, d.$flags$ |= 4, t.$vnode$ = d, d.$elm$ = u.$elm$ = l.shadowRoot || l, He = l["s-sc"], Ot = l["s-cr"], Kn = (o.$flags$ & 1) !== 0, st = !1, je(u, d, n);
269
+ {
270
+ if (B.$flags$ |= 1, Ht) {
271
+ sr(d.$elm$);
272
+ for (const f of Ce) {
273
+ const h = f.$nodeToRelocate$;
274
+ if (!h["s-ol"]) {
275
+ const y = re.createTextNode("");
276
+ y["s-nr"] = h, h.parentNode.insertBefore(h["s-ol"] = y, h);
277
+ }
278
+ }
279
+ for (const f of Ce) {
280
+ const h = f.$nodeToRelocate$, y = f.$slotRefNode$;
281
+ if (y) {
282
+ const p = y.parentNode;
283
+ let v = y.nextSibling;
284
+ {
285
+ let b = (r = h["s-ol"]) === null || r === void 0 ? void 0 : r.previousSibling;
286
+ for (; b; ) {
287
+ let T = (a = b["s-nr"]) !== null && a !== void 0 ? a : null;
288
+ if (T && T["s-sn"] === h["s-sn"] && p === T.parentNode && (T = T.nextSibling, !T || !T["s-nr"])) {
289
+ v = T;
290
+ break;
291
+ }
292
+ b = b.previousSibling;
293
+ }
294
+ }
295
+ (!v && p !== h.parentNode || h.nextSibling !== v) && h !== v && (!h["s-hn"] && h["s-ol"] && (h["s-hn"] = h["s-ol"].parentNode.nodeName), p.insertBefore(h, v), h.nodeType === 1 && (h.hidden = (i = h["s-ih"]) !== null && i !== void 0 ? i : !1));
296
+ } else
297
+ h.nodeType === 1 && (n && (h["s-ih"] = (s = h.hidden) !== null && s !== void 0 ? s : !1), h.hidden = !0);
298
+ }
299
+ }
300
+ st && ar(d.$elm$), B.$flags$ &= -2, Ce.length = 0;
301
+ }
302
+ Ot = void 0;
303
+ }, or = (t, e) => {
304
+ e && !t.$onRenderResolve$ && e["s-p"] && e["s-p"].push(new Promise((n) => t.$onRenderResolve$ = n));
305
+ }, pt = (t, e) => {
306
+ if (t.$flags$ |= 16, t.$flags$ & 4) {
307
+ t.$flags$ |= 512;
308
+ return;
309
+ }
310
+ return or(t, t.$ancestorComponent$), Ha(() => ba(t, e));
311
+ }, ba = (t, e) => {
312
+ const n = Oe("scheduleUpdate", t.$cmpMeta$.$tagName$), r = t.$lazyInstance$;
313
+ let a;
314
+ return e ? (t.$flags$ |= 256, t.$queuedListeners$ && (t.$queuedListeners$.map(([i, s]) => xe(r, i, s)), t.$queuedListeners$ = void 0), a = xe(r, "componentWillLoad")) : a = xe(r, "componentWillUpdate"), a = mn(a, () => xe(r, "componentWillRender")), n(), mn(a, () => wa(t, r, e));
315
+ }, mn = (t, e) => $a(t) ? t.then(e) : e(), $a = (t) => t instanceof Promise || t && t.then && typeof t.then == "function", wa = async (t, e, n) => {
316
+ var r;
317
+ const a = t.$hostElement$, i = Oe("update", t.$cmpMeta$.$tagName$), s = a["s-rc"];
318
+ n && ya(t);
319
+ const l = Oe("render", t.$cmpMeta$.$tagName$);
320
+ Ea(t, e, a, n), s && (s.map((o) => o()), a["s-rc"] = void 0), l(), i();
321
+ {
322
+ const o = (r = a["s-p"]) !== null && r !== void 0 ? r : [], u = () => ka(t);
323
+ o.length === 0 ? u() : (Promise.all(o).then(u), t.$flags$ |= 4, o.length = 0);
324
+ }
325
+ }, Ea = (t, e, n, r) => {
326
+ try {
327
+ _t = e, e = e.render(), t.$flags$ &= -17, t.$flags$ |= 2, ga(t, e, r);
328
+ } catch (a) {
329
+ M(a, t.$hostElement$);
330
+ }
331
+ return _t = null, null;
332
+ }, vn = () => _t, ka = (t) => {
333
+ const e = t.$cmpMeta$.$tagName$, n = t.$hostElement$, r = Oe("postUpdate", e), a = t.$lazyInstance$, i = t.$ancestorComponent$;
334
+ xe(a, "componentDidRender"), t.$flags$ & 64 ? (xe(a, "componentDidUpdate"), r()) : (t.$flags$ |= 64, cr(n), xe(a, "componentDidLoad"), r(), t.$onReadyResolve$(n), i || lr()), t.$onInstanceResolve$(n), t.$onRenderResolve$ && (t.$onRenderResolve$(), t.$onRenderResolve$ = void 0), t.$flags$ & 512 && zt(() => pt(t, !1)), t.$flags$ &= -517;
335
+ }, gn = (t) => {
336
+ {
337
+ const e = $e(t), n = e.$hostElement$.isConnected;
338
+ return n && (e.$flags$ & 18) === 2 && pt(e, !1), n;
339
+ }
340
+ }, lr = (t) => {
341
+ cr(re.documentElement), zt(() => Xn(et, "appload", { detail: { namespace: Vr } }));
342
+ }, xe = (t, e, n) => {
343
+ if (t && t[e])
344
+ try {
345
+ return t[e](n);
346
+ } catch (r) {
347
+ M(r);
348
+ }
349
+ }, cr = (t) => t.classList.add("hydrated"), Ta = (t, e) => $e(t).$instanceValues$.get(e), Sa = (t, e, n, r) => {
350
+ const a = $e(t), i = a.$hostElement$, s = a.$instanceValues$.get(e), l = a.$flags$, o = a.$lazyInstance$;
351
+ n = ua(n, r.$members$[e][0]);
352
+ const u = Number.isNaN(s) && Number.isNaN(n), d = n !== s && !u;
353
+ if ((!(l & 8) || s === void 0) && d && (a.$instanceValues$.set(e, n), o)) {
354
+ if (r.$watchers$ && l & 128) {
355
+ const f = r.$watchers$[e];
356
+ f && f.map((h) => {
357
+ try {
358
+ o[h](n, s, e);
359
+ } catch (y) {
360
+ M(y, i);
361
+ }
362
+ });
363
+ }
364
+ (l & 18) === 2 && pt(a, !1);
365
+ }
366
+ }, ur = (t, e, n) => {
367
+ var r;
368
+ const a = t.prototype;
369
+ if (e.$flags$ & 64 && n & 1 && na.forEach((i) => Object.defineProperty(a, i, {
370
+ value(...s) {
371
+ const l = $e(this), o = l.$lazyInstance$;
372
+ if (!o)
373
+ l.$onReadyPromise$.then((u) => {
374
+ const d = u[i];
375
+ typeof d == "function" && d.call(u, ...s);
376
+ });
377
+ else {
378
+ const u = o[i];
379
+ typeof u == "function" && u.call(o, ...s);
380
+ }
381
+ }
382
+ })), e.$members$) {
383
+ t.watchers && (e.$watchers$ = t.watchers);
384
+ const i = Object.entries(e.$members$);
385
+ if (i.map(([s, [l]]) => {
386
+ l & 31 || n & 2 && l & 32 ? Object.defineProperty(a, s, {
387
+ get() {
388
+ return Ta(this, s);
389
+ },
390
+ set(o) {
391
+ Sa(this, s, o, e);
392
+ },
393
+ configurable: !0,
394
+ enumerable: !0
395
+ }) : n & 1 && l & 64 && Object.defineProperty(a, s, {
396
+ value(...o) {
397
+ var u;
398
+ const d = $e(this);
399
+ return (u = d == null ? void 0 : d.$onInstancePromise$) === null || u === void 0 ? void 0 : u.then(() => {
400
+ var f;
401
+ return (f = d.$lazyInstance$) === null || f === void 0 ? void 0 : f[s](...o);
402
+ });
403
+ }
404
+ });
405
+ }), n & 1) {
406
+ const s = /* @__PURE__ */ new Map();
407
+ a.attributeChangedCallback = function(l, o, u) {
408
+ B.jmp(() => {
409
+ var d;
410
+ const f = s.get(l);
411
+ if (this.hasOwnProperty(f))
412
+ u = this[f], delete this[f];
413
+ else {
414
+ if (a.hasOwnProperty(f) && typeof this[f] == "number" && this[f] == u)
415
+ return;
416
+ if (f == null) {
417
+ const h = $e(this), y = h == null ? void 0 : h.$flags$;
418
+ if (y && !(y & 8) && y & 128 && u !== o) {
419
+ const p = h.$lazyInstance$, v = (d = e.$watchers$) === null || d === void 0 ? void 0 : d[l];
420
+ v == null || v.forEach((b) => {
421
+ p[b] != null && p[b].call(p, u, o, l);
422
+ });
423
+ }
424
+ return;
425
+ }
426
+ }
427
+ this[f] = u === null && typeof this[f] == "boolean" ? !1 : u;
428
+ });
429
+ }, t.observedAttributes = Array.from(/* @__PURE__ */ new Set([
430
+ ...Object.keys((r = e.$watchers$) !== null && r !== void 0 ? r : {}),
431
+ ...i.filter(
432
+ ([l, o]) => o[0] & 15
433
+ /* MEMBER_FLAGS.HasAttribute */
434
+ ).map(([l, o]) => {
435
+ const u = o[1] || l;
436
+ return s.set(u, l), u;
437
+ })
438
+ ]));
439
+ }
440
+ }
441
+ return t;
442
+ }, Ca = async (t, e, n, r) => {
443
+ let a;
444
+ if (!(e.$flags$ & 32)) {
445
+ e.$flags$ |= 32;
446
+ {
447
+ if (a = Aa(n), a.then) {
448
+ const o = ea();
449
+ a = await a, o();
450
+ }
451
+ a.isProxied || (n.$watchers$ = a.watchers, ur(
452
+ a,
453
+ n,
454
+ 2
455
+ /* PROXY_FLAGS.proxyState */
456
+ ), a.isProxied = !0);
457
+ const l = Oe("createInstance", n.$tagName$);
458
+ e.$flags$ |= 8;
459
+ try {
460
+ new a(e);
461
+ } catch (o) {
462
+ M(o);
463
+ }
464
+ e.$flags$ &= -9, e.$flags$ |= 128, l(), Mt(e.$lazyInstance$);
465
+ }
466
+ if (a.style) {
467
+ let l = a.style;
468
+ const o = Qn(n);
469
+ if (!lt.has(o)) {
470
+ const u = Oe("registerStyles", n.$tagName$);
471
+ fa(o, l, !!(n.$flags$ & 1)), u();
472
+ }
473
+ }
474
+ }
475
+ const i = e.$ancestorComponent$, s = () => pt(e, !0);
476
+ i && i["s-rc"] ? i["s-rc"].push(s) : s();
477
+ }, Mt = (t) => {
478
+ xe(t, "connectedCallback");
479
+ }, xa = (t) => {
480
+ if (!(B.$flags$ & 1)) {
481
+ const e = $e(t), n = e.$cmpMeta$, r = Oe("connectedCallback", n.$tagName$);
482
+ if (e.$flags$ & 1)
483
+ dr(t, e, n.$listeners$), e != null && e.$lazyInstance$ ? Mt(e.$lazyInstance$) : e != null && e.$onReadyPromise$ && e.$onReadyPromise$.then(() => Mt(e.$lazyInstance$));
484
+ else {
485
+ e.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
486
+ n.$flags$ & 12 && Oa(t);
487
+ {
488
+ let a = t;
489
+ for (; a = a.parentNode || a.host; )
490
+ if (a["s-p"]) {
491
+ or(e, e.$ancestorComponent$ = a);
492
+ break;
493
+ }
494
+ }
495
+ n.$members$ && Object.entries(n.$members$).map(([a, [i]]) => {
496
+ if (i & 31 && t.hasOwnProperty(a)) {
497
+ const s = t[a];
498
+ delete t[a], t[a] = s;
499
+ }
500
+ }), Ca(t, e, n);
501
+ }
502
+ r();
503
+ }
504
+ }, Oa = (t) => {
505
+ const e = t["s-cr"] = re.createComment("");
506
+ e["s-cn"] = !0, t.insertBefore(e, t.firstChild);
507
+ }, bn = (t) => {
508
+ xe(t, "disconnectedCallback");
509
+ }, _a = async (t) => {
510
+ if (!(B.$flags$ & 1)) {
511
+ const e = $e(t);
512
+ e.$rmListeners$ && (e.$rmListeners$.map((n) => n()), e.$rmListeners$ = void 0), e != null && e.$lazyInstance$ ? bn(e.$lazyInstance$) : e != null && e.$onReadyPromise$ && e.$onReadyPromise$.then(() => bn(e.$lazyInstance$));
513
+ }
514
+ }, Da = (t, e = {}) => {
515
+ var n;
516
+ const r = Oe(), a = [], i = e.exclude || [], s = et.customElements, l = re.head, o = /* @__PURE__ */ l.querySelector("meta[charset]"), u = /* @__PURE__ */ re.createElement("style"), d = [];
517
+ let f, h = !0;
518
+ Object.assign(B, e), B.$resourcesUrl$ = new URL(e.resourcesUrl || "./", re.baseURI).href;
519
+ let y = !1;
520
+ if (t.map((p) => {
521
+ p[1].map((v) => {
522
+ var b;
523
+ const T = {
524
+ $flags$: v[0],
525
+ $tagName$: v[1],
526
+ $members$: v[2],
527
+ $listeners$: v[3]
528
+ };
529
+ T.$flags$ & 4 && (y = !0), T.$members$ = v[2], T.$listeners$ = v[3], T.$watchers$ = (b = v[4]) !== null && b !== void 0 ? b : {};
530
+ const L = T.$tagName$, V = class extends HTMLElement {
531
+ // StencilLazyHost
532
+ constructor(ie) {
533
+ super(ie), ie = this, Ia(ie, T), T.$flags$ & 1 && ie.attachShadow({ mode: "open" });
534
+ }
535
+ connectedCallback() {
536
+ f && (clearTimeout(f), f = null), h ? d.push(this) : B.jmp(() => xa(this));
537
+ }
538
+ disconnectedCallback() {
539
+ B.jmp(() => _a(this));
540
+ }
541
+ componentOnReady() {
542
+ return $e(this).$onReadyPromise$;
543
+ }
544
+ };
545
+ T.$flags$ & 64 && (V.formAssociated = !0), T.$lazyBundleId$ = p[0], !i.includes(L) && !s.get(L) && (a.push(L), s.define(L, ur(
546
+ V,
547
+ T,
548
+ 1
549
+ /* PROXY_FLAGS.isElementConstructor */
550
+ )));
551
+ });
552
+ }), y && (u.innerHTML += Gn), u.innerHTML += a + ta, u.innerHTML.length) {
553
+ u.setAttribute("data-styles", "");
554
+ const p = (n = B.$nonce$) !== null && n !== void 0 ? n : Zn(re);
555
+ p != null && u.setAttribute("nonce", p), l.insertBefore(u, o ? o.nextSibling : l.firstChild);
556
+ }
557
+ h = !1, d.length ? d.map((p) => p.connectedCallback()) : B.jmp(() => f = setTimeout(lr, 30)), r();
558
+ }, hi = (t, e) => e, dr = (t, e, n, r) => {
559
+ n && n.map(([a, i, s]) => {
560
+ const l = Ra(t, a), o = Ma(e, s), u = La(a);
561
+ B.ael(l, i, o, u), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => B.rel(l, i, o, u));
562
+ });
563
+ }, Ma = (t, e) => (n) => {
564
+ try {
565
+ t.$flags$ & 256 ? t.$lazyInstance$[e](n) : (t.$queuedListeners$ = t.$queuedListeners$ || []).push([e, n]);
566
+ } catch (r) {
567
+ M(r);
568
+ }
569
+ }, Ra = (t, e) => e & 4 ? re : e & 8 ? et : e & 16 ? re.body : t, La = (t) => Na ? {
570
+ passive: (t & 1) !== 0,
571
+ capture: (t & 2) !== 0
572
+ } : (t & 2) !== 0, yi = (t) => B.$nonce$ = t, Wt = /* @__PURE__ */ new WeakMap(), $e = (t) => Wt.get(t), pi = (t, e) => Wt.set(e.$lazyInstance$ = t, e), Ia = (t, e) => {
573
+ const n = {
574
+ $flags$: 0,
575
+ $hostElement$: t,
576
+ $cmpMeta$: e,
577
+ $instanceValues$: /* @__PURE__ */ new Map()
578
+ };
579
+ return n.$onInstancePromise$ = new Promise((r) => n.$onInstanceResolve$ = r), n.$onReadyPromise$ = new Promise((r) => n.$onReadyResolve$ = r), t["s-p"] = [], t["s-rc"] = [], dr(t, n, e.$listeners$), Wt.set(t, n);
580
+ }, $n = (t, e) => e in t, M = (t, e) => (0, console.error)(t, e), kt = /* @__PURE__ */ new Map(), Aa = (t, e, n) => {
581
+ const r = t.$tagName$.replace(/-/g, "_"), a = t.$lazyBundleId$, i = kt.get(a);
582
+ if (i)
583
+ return i[r];
584
+ if (!n || !qn.hotModuleReplacement) {
585
+ const s = (l) => (kt.set(a, l), l[r]);
586
+ switch (a) {
587
+ case "document-refresh-icon":
588
+ return import(
589
+ /* webpackMode: "lazy" */
590
+ "./document-refresh-icon.entry-ee9632d7.js"
591
+ ).then(s, M);
592
+ case "nylas-additional-participants":
593
+ return import(
594
+ /* webpackMode: "lazy" */
595
+ "./nylas-additional-participants.entry-e8426256.js"
596
+ ).then(s, M);
597
+ case "nylas-if-state":
598
+ return import(
599
+ /* webpackMode: "lazy" */
600
+ "./nylas-if-state.entry-98a336df.js"
601
+ ).then(s, M);
602
+ case "nylas-list-folders":
603
+ return import(
604
+ /* webpackMode: "lazy" */
605
+ "./nylas-list-folders.entry-55ce3403.js"
606
+ ).then(s, M);
607
+ case "nylas-list-threads":
608
+ return import(
609
+ /* webpackMode: "lazy" */
610
+ "./nylas-list-threads.entry-1f57382a.js"
611
+ ).then(s, M);
612
+ case "nylas-login":
613
+ return import(
614
+ /* webpackMode: "lazy" */
615
+ "./nylas-login.entry-76358c2f.js"
616
+ ).then(s, M);
617
+ case "nylas-mailbox":
618
+ return import(
619
+ /* webpackMode: "lazy" */
620
+ "./nylas-mailbox.entry-97c503f2.js"
621
+ ).then(s, M);
622
+ case "nylas-mailbox-pagination":
623
+ return import(
624
+ /* webpackMode: "lazy" */
625
+ "./nylas-mailbox-pagination.entry-5562257a.js"
626
+ ).then(s, M);
627
+ case "nylas-mailbox-toolbar-button":
628
+ return import(
629
+ /* webpackMode: "lazy" */
630
+ "./nylas-mailbox-toolbar-button.entry-6b1b5b15.js"
631
+ ).then(s, M);
632
+ case "nylas-provider":
633
+ return import(
634
+ /* webpackMode: "lazy" */
635
+ "./nylas-provider.entry-07e1e26a.js"
636
+ ).then(s, M);
637
+ case "nylas-scheduler-editor":
638
+ return import(
639
+ /* webpackMode: "lazy" */
640
+ "./nylas-scheduler-editor.entry-e326c9de.js"
641
+ ).then(s, M);
642
+ case "nylas-scheduling":
643
+ return import(
644
+ /* webpackMode: "lazy" */
645
+ "./nylas-scheduling.entry-be0cc090.js"
646
+ ).then(s, M);
647
+ case "nylas-threads-refresh":
648
+ return import(
649
+ /* webpackMode: "lazy" */
650
+ "./nylas-threads-refresh.entry-8201f8dd.js"
651
+ ).then(s, M);
652
+ case "nylas-threads-search":
653
+ return import(
654
+ /* webpackMode: "lazy" */
655
+ "./nylas-threads-search.entry-fc477e01.js"
656
+ ).then(s, M);
657
+ case "nylas-view-thread":
658
+ return import(
659
+ /* webpackMode: "lazy" */
660
+ "./nylas-view-thread.entry-d2953ea8.js"
661
+ ).then(s, M);
662
+ case "people-icon":
663
+ return import(
664
+ /* webpackMode: "lazy" */
665
+ "./people-icon.entry-4b598fde.js"
666
+ ).then(s, M);
667
+ case "archive-icon_7":
668
+ return import(
669
+ /* webpackMode: "lazy" */
670
+ "./archive-icon_7.entry-24bac466.js"
671
+ ).then(s, M);
672
+ case "arrow-icon":
673
+ return import(
674
+ /* webpackMode: "lazy" */
675
+ "./arrow-icon.entry-82e59ce4.js"
676
+ ).then(s, M);
677
+ case "forward-icon_6":
678
+ return import(
679
+ /* webpackMode: "lazy" */
680
+ "./forward-icon_6.entry-f054ad9d.js"
681
+ ).then(s, M);
682
+ case "google-logo-icon_4":
683
+ return import(
684
+ /* webpackMode: "lazy" */
685
+ "./google-logo-icon_4.entry-dca87e45.js"
686
+ ).then(s, M);
687
+ case "nylas-booked-event-card_10":
688
+ return import(
689
+ /* webpackMode: "lazy" */
690
+ "./nylas-booked-event-card_10.entry-ef767733.js"
691
+ ).then(s, M);
692
+ case "bold-icon_3":
693
+ return import(
694
+ /* webpackMode: "lazy" */
695
+ "./bold-icon_3.entry-72e585da.js"
696
+ ).then(s, M);
697
+ case "calendar-check-icon_2":
698
+ return import(
699
+ /* webpackMode: "lazy" */
700
+ "./calendar-check-icon_2.entry-dbb2df49.js"
701
+ ).then(s, M);
702
+ case "add-circle-icon_22":
703
+ return import(
704
+ /* webpackMode: "lazy" */
705
+ "./add-circle-icon_22.entry-9f634efd.js"
706
+ ).then(s, M);
707
+ case "play-icon_2":
708
+ return import(
709
+ /* webpackMode: "lazy" */
710
+ "./play-icon_2.entry-d1c2f823.js"
711
+ ).then(s, M);
712
+ case "refresh-icon":
713
+ return import(
714
+ /* webpackMode: "lazy" */
715
+ "./refresh-icon.entry-6aedfce6.js"
716
+ ).then(s, M);
717
+ case "translate-icon":
718
+ return import(
719
+ /* webpackMode: "lazy" */
720
+ "./translate-icon.entry-3db947f5.js"
721
+ ).then(s, M);
722
+ case "warning-icon":
723
+ return import(
724
+ /* webpackMode: "lazy" */
725
+ "./warning-icon.entry-a8ea0fe0.js"
726
+ ).then(s, M);
727
+ case "calendar-cancel-icon":
728
+ return import(
729
+ /* webpackMode: "lazy" */
730
+ "./calendar-cancel-icon.entry-247b530c.js"
731
+ ).then(s, M);
732
+ case "calendar-icon":
733
+ return import(
734
+ /* webpackMode: "lazy" */
735
+ "./calendar-icon.entry-d64cb3d3.js"
736
+ ).then(s, M);
737
+ case "time-period-selector":
738
+ return import(
739
+ /* webpackMode: "lazy" */
740
+ "./time-period-selector.entry-f1e27a00.js"
741
+ ).then(s, M);
742
+ case "nylas-form-card":
743
+ return import(
744
+ /* webpackMode: "lazy" */
745
+ "./nylas-form-card.entry-d8506b1f.js"
746
+ ).then(s, M);
747
+ case "loading-icon":
748
+ return import(
749
+ /* webpackMode: "lazy" */
750
+ "./loading-icon.entry-ae4c2d7e.js"
751
+ ).then(s, M);
752
+ case "globe-icon":
753
+ return import(
754
+ /* webpackMode: "lazy" */
755
+ "./globe-icon.entry-2fde6ac4.js"
756
+ ).then(s, M);
757
+ case "close-icon":
758
+ return import(
759
+ /* webpackMode: "lazy" */
760
+ "./close-icon.entry-9d141bb4.js"
761
+ ).then(s, M);
762
+ case "info-icon_2":
763
+ return import(
764
+ /* webpackMode: "lazy" */
765
+ "./info-icon_2.entry-dbf3931a.js"
766
+ ).then(s, M);
767
+ case "chevron-icon_3":
768
+ return import(
769
+ /* webpackMode: "lazy" */
770
+ "./chevron-icon_3.entry-db9f8217.js"
771
+ ).then(s, M);
772
+ }
773
+ }
774
+ return import(
775
+ /* @vite-ignore */
776
+ /* webpackInclude: /\.entry\.js$/ */
777
+ /* webpackExclude: /\.system\.entry\.js$/ */
778
+ /* webpackMode: "lazy" */
779
+ `./${a}.entry.js`
780
+ ).then((s) => (kt.set(a, s), s[r]), M);
781
+ }, lt = /* @__PURE__ */ new Map(), et = typeof window < "u" ? window : {}, re = et.document || { head: {} }, B = {
782
+ $flags$: 0,
783
+ $resourcesUrl$: "",
784
+ jmp: (t) => t(),
785
+ raf: (t) => requestAnimationFrame(t),
786
+ ael: (t, e, n, r) => t.addEventListener(e, n, r),
787
+ rel: (t, e, n, r) => t.removeEventListener(e, n, r),
788
+ ce: (t, e) => new CustomEvent(t, e)
789
+ }, Na = /* @__PURE__ */ (() => {
790
+ let t = !1;
791
+ try {
792
+ re.addEventListener("e", null, Object.defineProperty({}, "passive", {
793
+ get() {
794
+ t = !0;
795
+ }
796
+ }));
797
+ } catch {
798
+ }
799
+ return t;
800
+ })(), Ua = (t) => Promise.resolve(t), Pa = /* @__PURE__ */ (() => {
801
+ try {
802
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
803
+ } catch {
804
+ }
805
+ return !1;
806
+ })(), wn = [], fr = [], Ya = (t, e) => (n) => {
807
+ t.push(n), Dt || (Dt = !0, e && B.$flags$ & 4 ? zt(Rt) : B.raf(Rt));
808
+ }, En = (t) => {
809
+ for (let e = 0; e < t.length; e++)
810
+ try {
811
+ t[e](performance.now());
812
+ } catch (n) {
813
+ M(n);
814
+ }
815
+ t.length = 0;
816
+ }, Rt = () => {
817
+ En(wn), En(fr), (Dt = wn.length > 0) && B.raf(Rt);
818
+ }, zt = (t) => Ua().then(t), Ha = /* @__PURE__ */ Ya(fr, !0), ja = (t, e, n) => {
819
+ const r = t.get(e);
820
+ r ? r.includes(n) || r.push(n) : t.set(e, [n]);
821
+ }, Fa = (t, e) => {
822
+ let n;
823
+ return (...r) => {
824
+ n && clearTimeout(n), n = setTimeout(() => {
825
+ n = 0, t(...r);
826
+ }, e);
827
+ };
828
+ }, Wa = (t) => !("isConnected" in t) || t.isConnected, kn = Fa((t) => {
829
+ for (let e of t.keys())
830
+ t.set(e, t.get(e).filter(Wa));
831
+ }, 2e3), za = () => {
832
+ if (typeof vn != "function")
833
+ return {};
834
+ const t = /* @__PURE__ */ new Map();
835
+ return {
836
+ dispose: () => t.clear(),
837
+ get: (e) => {
838
+ const n = vn();
839
+ n && ja(t, e, n);
840
+ },
841
+ set: (e) => {
842
+ const n = t.get(e);
843
+ n && t.set(e, n.filter(gn)), kn(t);
844
+ },
845
+ reset: () => {
846
+ t.forEach((e) => e.forEach(gn)), kn(t);
847
+ }
848
+ };
849
+ }, Tt = (t) => typeof t == "function" ? t() : t, Ba = (t, e = (n, r) => n !== r) => {
850
+ const n = Tt(t);
851
+ let r = new Map(Object.entries(n ?? {}));
852
+ const a = {
853
+ dispose: [],
854
+ get: [],
855
+ set: [],
856
+ reset: []
857
+ }, i = () => {
858
+ var p;
859
+ r = new Map(Object.entries((p = Tt(t)) !== null && p !== void 0 ? p : {})), a.reset.forEach((v) => v());
860
+ }, s = () => {
861
+ a.dispose.forEach((p) => p()), i();
862
+ }, l = (p) => (a.get.forEach((v) => v(p)), r.get(p)), o = (p, v) => {
863
+ const b = r.get(p);
864
+ e(v, b, p) && (r.set(p, v), a.set.forEach((T) => T(p, v, b)));
865
+ }, u = typeof Proxy > "u" ? {} : new Proxy(n, {
866
+ get(p, v) {
867
+ return l(v);
868
+ },
869
+ ownKeys(p) {
870
+ return Array.from(r.keys());
871
+ },
872
+ getOwnPropertyDescriptor() {
873
+ return {
874
+ enumerable: !0,
875
+ configurable: !0
876
+ };
877
+ },
878
+ has(p, v) {
879
+ return r.has(v);
880
+ },
881
+ set(p, v, b) {
882
+ return o(v, b), !0;
883
+ }
884
+ }), d = (p, v) => (a[p].push(v), () => {
885
+ qa(a[p], v);
886
+ });
887
+ return {
888
+ state: u,
889
+ get: l,
890
+ set: o,
891
+ on: d,
892
+ onChange: (p, v) => {
893
+ const b = d("set", (L, V) => {
894
+ L === p && v(V);
895
+ }), T = d("reset", () => v(Tt(t)[p]));
896
+ return () => {
897
+ b(), T();
898
+ };
899
+ },
900
+ use: (...p) => {
901
+ const v = p.reduce((b, T) => (T.set && b.push(d("set", T.set)), T.get && b.push(d("get", T.get)), T.reset && b.push(d("reset", T.reset)), T.dispose && b.push(d("dispose", T.dispose)), b), []);
902
+ return () => v.forEach((b) => b());
903
+ },
904
+ dispose: s,
905
+ reset: i,
906
+ forceUpdate: (p) => {
907
+ const v = r.get(p);
908
+ a.set.forEach((b) => b(p, v, v));
909
+ }
910
+ };
911
+ }, qa = (t, e) => {
912
+ const n = t.indexOf(e);
913
+ n >= 0 && (t[n] = t[t.length - 1], t.length--);
914
+ }, Ka = (t, e) => {
915
+ const n = Ba(t, e);
916
+ return n.use(za()), n;
917
+ };
918
+ var Ga = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
919
+ function mi(t) {
920
+ if (t.__esModule)
921
+ return t;
922
+ var e = Object.defineProperty({}, "__esModule", { value: !0 });
923
+ return Object.keys(t).forEach(function(n) {
924
+ var r = Object.getOwnPropertyDescriptor(t, n);
925
+ Object.defineProperty(e, n, r.get ? r : {
926
+ enumerable: !0,
927
+ get: function() {
928
+ return t[n];
929
+ }
930
+ });
931
+ }), e;
932
+ }
933
+ var hr = { exports: {} };
934
+ (function(t, e) {
935
+ (function(n, r) {
936
+ t.exports = r();
937
+ })(Ga, function() {
938
+ var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", l = "minute", o = "hour", u = "day", d = "week", f = "month", h = "quarter", y = "year", p = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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, L = { 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(C) {
939
+ var k = ["th", "st", "nd", "rd"], w = C % 100;
940
+ return "[" + C + (k[(w - 20) % 10] || k[w] || k[0]) + "]";
941
+ } }, V = function(C, k, w) {
942
+ var _ = String(C);
943
+ return !_ || _.length >= k ? C : "" + Array(k + 1 - _.length).join(w) + C;
944
+ }, ie = { s: V, z: function(C) {
945
+ var k = -C.utcOffset(), w = Math.abs(k), _ = Math.floor(w / 60), S = w % 60;
946
+ return (k <= 0 ? "+" : "-") + V(_, 2, "0") + ":" + V(S, 2, "0");
947
+ }, m: function C(k, w) {
948
+ if (k.date() < w.date())
949
+ return -C(w, k);
950
+ var _ = 12 * (w.year() - k.year()) + (w.month() - k.month()), S = k.clone().add(_, f), R = w - S < 0, D = k.clone().add(_ + (R ? -1 : 1), f);
951
+ return +(-(_ + (w - S) / (R ? S - D : D - S)) || 0);
952
+ }, a: function(C) {
953
+ return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
954
+ }, p: function(C) {
955
+ return { M: f, y, w: d, d: u, D: p, h: o, m: l, s, ms: i, Q: h }[C] || String(C || "").toLowerCase().replace(/s$/, "");
956
+ }, u: function(C) {
957
+ return C === void 0;
958
+ } }, he = "en", ee = {};
959
+ ee[he] = L;
960
+ var Re = function(C) {
961
+ return C instanceof Ne;
962
+ }, Ae = function C(k, w, _) {
963
+ var S;
964
+ if (!k)
965
+ return he;
966
+ if (typeof k == "string") {
967
+ var R = k.toLowerCase();
968
+ ee[R] && (S = R), w && (ee[R] = w, S = R);
969
+ var D = k.split("-");
970
+ if (!S && D.length > 1)
971
+ return C(D[0]);
972
+ } else {
973
+ var P = k.name;
974
+ ee[P] = k, S = P;
975
+ }
976
+ return !_ && S && (he = S), S || !_ && he;
977
+ }, q = function(C, k) {
978
+ if (Re(C))
979
+ return C.clone();
980
+ var w = typeof k == "object" ? k : {};
981
+ return w.date = C, w.args = arguments, new Ne(w);
982
+ }, H = ie;
983
+ H.l = Ae, H.i = Re, H.w = function(C, k) {
984
+ return q(C, { locale: k.$L, utc: k.$u, x: k.$x, $offset: k.$offset });
985
+ };
986
+ var Ne = function() {
987
+ function C(w) {
988
+ this.$L = Ae(w.locale, null, !0), this.parse(w);
989
+ }
990
+ var k = C.prototype;
991
+ return k.parse = function(w) {
992
+ this.$d = function(_) {
993
+ var S = _.date, R = _.utc;
994
+ if (S === null)
995
+ return /* @__PURE__ */ new Date(NaN);
996
+ if (H.u(S))
997
+ return /* @__PURE__ */ new Date();
998
+ if (S instanceof Date)
999
+ return new Date(S);
1000
+ if (typeof S == "string" && !/Z$/i.test(S)) {
1001
+ var D = S.match(b);
1002
+ if (D) {
1003
+ var P = D[2] - 1 || 0, z = (D[7] || "0").substring(0, 3);
1004
+ return R ? new Date(Date.UTC(D[1], P, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, z)) : new Date(D[1], P, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, z);
1005
+ }
1006
+ }
1007
+ return new Date(S);
1008
+ }(w), this.$x = w.x || {}, this.init();
1009
+ }, k.init = function() {
1010
+ var w = this.$d;
1011
+ this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
1012
+ }, k.$utils = function() {
1013
+ return H;
1014
+ }, k.isValid = function() {
1015
+ return this.$d.toString() !== v;
1016
+ }, k.isSame = function(w, _) {
1017
+ var S = q(w);
1018
+ return this.startOf(_) <= S && S <= this.endOf(_);
1019
+ }, k.isAfter = function(w, _) {
1020
+ return q(w) < this.startOf(_);
1021
+ }, k.isBefore = function(w, _) {
1022
+ return this.endOf(_) < q(w);
1023
+ }, k.$g = function(w, _, S) {
1024
+ return H.u(w) ? this[_] : this.set(S, w);
1025
+ }, k.unix = function() {
1026
+ return Math.floor(this.valueOf() / 1e3);
1027
+ }, k.valueOf = function() {
1028
+ return this.$d.getTime();
1029
+ }, k.startOf = function(w, _) {
1030
+ var S = this, R = !!H.u(_) || _, D = H.p(w), P = function(pe, X) {
1031
+ var oe = H.w(S.$u ? Date.UTC(S.$y, X, pe) : new Date(S.$y, X, pe), S);
1032
+ return R ? oe : oe.endOf(u);
1033
+ }, z = function(pe, X) {
1034
+ return H.w(S.toDate()[pe].apply(S.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), S);
1035
+ }, W = this.$W, J = this.$M, ve = this.$D, ye = "set" + (this.$u ? "UTC" : "");
1036
+ switch (D) {
1037
+ case y:
1038
+ return R ? P(1, 0) : P(31, 11);
1039
+ case f:
1040
+ return R ? P(1, J) : P(0, J + 1);
1041
+ case d:
1042
+ var Ee = this.$locale().weekStart || 0, ke = (W < Ee ? W + 7 : W) - Ee;
1043
+ return P(R ? ve - ke : ve + (6 - ke), J);
1044
+ case u:
1045
+ case p:
1046
+ return z(ye + "Hours", 0);
1047
+ case o:
1048
+ return z(ye + "Minutes", 1);
1049
+ case l:
1050
+ return z(ye + "Seconds", 2);
1051
+ case s:
1052
+ return z(ye + "Milliseconds", 3);
1053
+ default:
1054
+ return this.clone();
1055
+ }
1056
+ }, k.endOf = function(w) {
1057
+ return this.startOf(w, !1);
1058
+ }, k.$set = function(w, _) {
1059
+ var S, R = H.p(w), D = "set" + (this.$u ? "UTC" : ""), P = (S = {}, S[u] = D + "Date", S[p] = D + "Date", S[f] = D + "Month", S[y] = D + "FullYear", S[o] = D + "Hours", S[l] = D + "Minutes", S[s] = D + "Seconds", S[i] = D + "Milliseconds", S)[R], z = R === u ? this.$D + (_ - this.$W) : _;
1060
+ if (R === f || R === y) {
1061
+ var W = this.clone().set(p, 1);
1062
+ W.$d[P](z), W.init(), this.$d = W.set(p, Math.min(this.$D, W.daysInMonth())).$d;
1063
+ } else
1064
+ P && this.$d[P](z);
1065
+ return this.init(), this;
1066
+ }, k.set = function(w, _) {
1067
+ return this.clone().$set(w, _);
1068
+ }, k.get = function(w) {
1069
+ return this[H.p(w)]();
1070
+ }, k.add = function(w, _) {
1071
+ var S, R = this;
1072
+ w = Number(w);
1073
+ var D = H.p(_), P = function(J) {
1074
+ var ve = q(R);
1075
+ return H.w(ve.date(ve.date() + Math.round(J * w)), R);
1076
+ };
1077
+ if (D === f)
1078
+ return this.set(f, this.$M + w);
1079
+ if (D === y)
1080
+ return this.set(y, this.$y + w);
1081
+ if (D === u)
1082
+ return P(1);
1083
+ if (D === d)
1084
+ return P(7);
1085
+ var z = (S = {}, S[l] = r, S[o] = a, S[s] = n, S)[D] || 1, W = this.$d.getTime() + w * z;
1086
+ return H.w(W, this);
1087
+ }, k.subtract = function(w, _) {
1088
+ return this.add(-1 * w, _);
1089
+ }, k.format = function(w) {
1090
+ var _ = this, S = this.$locale();
1091
+ if (!this.isValid())
1092
+ return S.invalidDate || v;
1093
+ var R = w || "YYYY-MM-DDTHH:mm:ssZ", D = H.z(this), P = this.$H, z = this.$m, W = this.$M, J = S.weekdays, ve = S.months, ye = function(X, oe, qe, Le) {
1094
+ return X && (X[oe] || X(_, R)) || qe[oe].slice(0, Le);
1095
+ }, Ee = function(X) {
1096
+ return H.s(P % 12 || 12, X, "0");
1097
+ }, ke = S.meridiem || function(X, oe, qe) {
1098
+ var Le = X < 12 ? "AM" : "PM";
1099
+ return qe ? Le.toLowerCase() : Le;
1100
+ }, pe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: W + 1, MM: H.s(W + 1, 2, "0"), MMM: ye(S.monthsShort, W, ve, 3), MMMM: ye(ve, W), D: this.$D, DD: H.s(this.$D, 2, "0"), d: String(this.$W), dd: ye(S.weekdaysMin, this.$W, J, 2), ddd: ye(S.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(P), HH: H.s(P, 2, "0"), h: Ee(1), hh: Ee(2), a: ke(P, z, !0), A: ke(P, z, !1), m: String(z), mm: H.s(z, 2, "0"), s: String(this.$s), ss: H.s(this.$s, 2, "0"), SSS: H.s(this.$ms, 3, "0"), Z: D };
1101
+ return R.replace(T, function(X, oe) {
1102
+ return oe || pe[X] || D.replace(":", "");
1103
+ });
1104
+ }, k.utcOffset = function() {
1105
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1106
+ }, k.diff = function(w, _, S) {
1107
+ var R, D = H.p(_), P = q(w), z = (P.utcOffset() - this.utcOffset()) * r, W = this - P, J = H.m(this, P);
1108
+ return J = (R = {}, R[y] = J / 12, R[f] = J, R[h] = J / 3, R[d] = (W - z) / 6048e5, R[u] = (W - z) / 864e5, R[o] = W / a, R[l] = W / r, R[s] = W / n, R)[D] || W, S ? J : H.a(J);
1109
+ }, k.daysInMonth = function() {
1110
+ return this.endOf(f).$D;
1111
+ }, k.$locale = function() {
1112
+ return ee[this.$L];
1113
+ }, k.locale = function(w, _) {
1114
+ if (!w)
1115
+ return this.$L;
1116
+ var S = this.clone(), R = Ae(w, _, !0);
1117
+ return R && (S.$L = R), S;
1118
+ }, k.clone = function() {
1119
+ return H.w(this.$d, this);
1120
+ }, k.toDate = function() {
1121
+ return new Date(this.valueOf());
1122
+ }, k.toJSON = function() {
1123
+ return this.isValid() ? this.toISOString() : null;
1124
+ }, k.toISOString = function() {
1125
+ return this.$d.toISOString();
1126
+ }, k.toString = function() {
1127
+ return this.$d.toUTCString();
1128
+ }, C;
1129
+ }(), Be = Ne.prototype;
1130
+ return q.prototype = Be, [["$ms", i], ["$s", s], ["$m", l], ["$H", o], ["$W", u], ["$M", f], ["$y", y], ["$D", p]].forEach(function(C) {
1131
+ Be[C[1]] = function(k) {
1132
+ return this.$g(k, C[0], C[1]);
1133
+ };
1134
+ }), q.extend = function(C, k) {
1135
+ return C.$i || (C(k, Ne, q), C.$i = !0), q;
1136
+ }, q.locale = Ae, q.isDayjs = Re, q.unix = function(C) {
1137
+ return q(1e3 * C);
1138
+ }, q.en = ee[he], q.Ls = ee, q.p = {}, q;
1139
+ });
1140
+ })(hr);
1141
+ const yr = hr.exports;
1142
+ var Lt = [
1143
+ "MO",
1144
+ "TU",
1145
+ "WE",
1146
+ "TH",
1147
+ "FR",
1148
+ "SA",
1149
+ "SU"
1150
+ ], se = (
1151
+ /** @class */
1152
+ function() {
1153
+ function t(e, n) {
1154
+ if (n === 0)
1155
+ throw new Error("Can't create weekday with n == 0");
1156
+ this.weekday = e, this.n = n;
1157
+ }
1158
+ return t.fromStr = function(e) {
1159
+ return new t(Lt.indexOf(e));
1160
+ }, t.prototype.nth = function(e) {
1161
+ return this.n === e ? this : new t(this.weekday, e);
1162
+ }, t.prototype.equals = function(e) {
1163
+ return this.weekday === e.weekday && this.n === e.n;
1164
+ }, t.prototype.toString = function() {
1165
+ var e = Lt[this.weekday];
1166
+ return this.n && (e = (this.n > 0 ? "+" : "") + String(this.n) + e), e;
1167
+ }, t.prototype.getJsWeekday = function() {
1168
+ return this.weekday === 6 ? 0 : this.weekday + 1;
1169
+ }, t;
1170
+ }()
1171
+ ), Z = function(t) {
1172
+ return t != null;
1173
+ }, ge = function(t) {
1174
+ return typeof t == "number";
1175
+ }, Tn = function(t) {
1176
+ return typeof t == "string" && Lt.includes(t);
1177
+ }, ce = Array.isArray, we = function(t, e) {
1178
+ e === void 0 && (e = t), arguments.length === 1 && (e = t, t = 0);
1179
+ for (var n = [], r = t; r < e; r++)
1180
+ n.push(r);
1181
+ return n;
1182
+ }, N = function(t, e) {
1183
+ var n = 0, r = [];
1184
+ if (ce(t))
1185
+ for (; n < e; n++)
1186
+ r[n] = [].concat(t);
1187
+ else
1188
+ for (; n < e; n++)
1189
+ r[n] = t;
1190
+ return r;
1191
+ }, Za = function(t) {
1192
+ return ce(t) ? t : [t];
1193
+ };
1194
+ function Ye(t, e, n) {
1195
+ n === void 0 && (n = " ");
1196
+ var r = String(t);
1197
+ return e = e >> 0, r.length > e ? String(r) : (e = e - r.length, e > n.length && (n += N(n, e / n.length)), n.slice(0, e) + String(r));
1198
+ }
1199
+ var Ja = function(t, e, n) {
1200
+ var r = t.split(e);
1201
+ return n ? r.slice(0, n).concat([r.slice(n).join(e)]) : r;
1202
+ }, fe = function(t, e) {
1203
+ var n = t % e;
1204
+ return n * e < 0 ? n + e : n;
1205
+ }, St = function(t, e) {
1206
+ return { div: Math.floor(t / e), mod: fe(t, e) };
1207
+ }, be = function(t) {
1208
+ return !Z(t) || t.length === 0;
1209
+ }, Q = function(t) {
1210
+ return !be(t);
1211
+ }, F = function(t, e) {
1212
+ return Q(t) && t.indexOf(e) !== -1;
1213
+ }, Ie = function(t, e, n, r, a, i) {
1214
+ return r === void 0 && (r = 0), a === void 0 && (a = 0), i === void 0 && (i = 0), new Date(Date.UTC(t, e - 1, n, r, a, i));
1215
+ }, Xa = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], pr = 1e3 * 60 * 60 * 24, mr = 9999, vr = Ie(1970, 1, 1), Qa = [6, 0, 1, 2, 3, 4, 5], Xe = function(t) {
1216
+ return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
1217
+ }, gr = function(t) {
1218
+ return t instanceof Date;
1219
+ }, Je = function(t) {
1220
+ return gr(t) && !isNaN(t.getTime());
1221
+ }, Sn = function(t) {
1222
+ return t.getTimezoneOffset() * 60 * 1e3;
1223
+ }, Va = function(t, e) {
1224
+ var n = t.getTime() - Sn(t), r = e.getTime() - Sn(e), a = n - r;
1225
+ return Math.round(a / pr);
1226
+ }, It = function(t) {
1227
+ return Va(t, vr);
1228
+ }, br = function(t) {
1229
+ return new Date(vr.getTime() + t * pr);
1230
+ }, es = function(t) {
1231
+ var e = t.getUTCMonth();
1232
+ return e === 1 && Xe(t.getUTCFullYear()) ? 29 : Xa[e];
1233
+ }, We = function(t) {
1234
+ return Qa[t.getUTCDay()];
1235
+ }, Cn = function(t, e) {
1236
+ var n = Ie(t, e + 1, 1);
1237
+ return [We(n), es(n)];
1238
+ }, $r = function(t, e) {
1239
+ return e = e || t, new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
1240
+ }, At = function(t) {
1241
+ var e = new Date(t.getTime());
1242
+ return e;
1243
+ }, xn = function(t) {
1244
+ for (var e = [], n = 0; n < t.length; n++)
1245
+ e.push(At(t[n]));
1246
+ return e;
1247
+ }, Ve = function(t) {
1248
+ t.sort(function(e, n) {
1249
+ return e.getTime() - n.getTime();
1250
+ });
1251
+ }, Bt = function(t, e) {
1252
+ e === void 0 && (e = !0);
1253
+ var n = new Date(t);
1254
+ return [
1255
+ Ye(n.getUTCFullYear().toString(), 4, "0"),
1256
+ Ye(n.getUTCMonth() + 1, 2, "0"),
1257
+ Ye(n.getUTCDate(), 2, "0"),
1258
+ "T",
1259
+ Ye(n.getUTCHours(), 2, "0"),
1260
+ Ye(n.getUTCMinutes(), 2, "0"),
1261
+ Ye(n.getUTCSeconds(), 2, "0"),
1262
+ e ? "Z" : ""
1263
+ ].join("");
1264
+ }, qt = function(t) {
1265
+ var e = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/, n = e.exec(t);
1266
+ if (!n)
1267
+ throw new Error("Invalid UNTIL value: ".concat(t));
1268
+ 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));
1269
+ }, On = function(t, e) {
1270
+ var n = t.toLocaleString("sv-SE", { timeZone: e });
1271
+ return n.replace(" ", "T") + "Z";
1272
+ }, ts = function(t, e) {
1273
+ var n = Intl.DateTimeFormat().resolvedOptions().timeZone, r = new Date(On(t, n)), a = new Date(On(t, e ?? "UTC")), i = a.getTime() - r.getTime();
1274
+ return new Date(t.getTime() - i);
1275
+ }, Fe = (
1276
+ /** @class */
1277
+ function() {
1278
+ function t(e, n) {
1279
+ this.minDate = null, this.maxDate = null, this._result = [], this.total = 0, this.method = e, this.args = n, e === "between" ? (this.maxDate = n.inc ? n.before : new Date(n.before.getTime() - 1), this.minDate = n.inc ? n.after : new Date(n.after.getTime() + 1)) : e === "before" ? this.maxDate = n.inc ? n.dt : new Date(n.dt.getTime() - 1) : e === "after" && (this.minDate = n.inc ? n.dt : new Date(n.dt.getTime() + 1));
1280
+ }
1281
+ return t.prototype.accept = function(e) {
1282
+ ++this.total;
1283
+ var n = this.minDate && e < this.minDate, r = this.maxDate && e > this.maxDate;
1284
+ if (this.method === "between") {
1285
+ if (n)
1286
+ return !0;
1287
+ if (r)
1288
+ return !1;
1289
+ } else if (this.method === "before") {
1290
+ if (r)
1291
+ return !1;
1292
+ } else if (this.method === "after")
1293
+ return n ? !0 : (this.add(e), !1);
1294
+ return this.add(e);
1295
+ }, t.prototype.add = function(e) {
1296
+ return this._result.push(e), !0;
1297
+ }, t.prototype.getValue = function() {
1298
+ var e = this._result;
1299
+ switch (this.method) {
1300
+ case "all":
1301
+ case "between":
1302
+ return e;
1303
+ case "before":
1304
+ case "after":
1305
+ default:
1306
+ return e.length ? e[e.length - 1] : null;
1307
+ }
1308
+ }, t.prototype.clone = function() {
1309
+ return new t(this.method, this.args);
1310
+ }, t;
1311
+ }()
1312
+ ), Nt = function(t, e) {
1313
+ return Nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
1314
+ n.__proto__ = r;
1315
+ } || function(n, r) {
1316
+ for (var a in r)
1317
+ Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
1318
+ }, Nt(t, e);
1319
+ };
1320
+ function Kt(t, e) {
1321
+ if (typeof e != "function" && e !== null)
1322
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1323
+ Nt(t, e);
1324
+ function n() {
1325
+ this.constructor = t;
1326
+ }
1327
+ t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
1328
+ }
1329
+ var ue = function() {
1330
+ return ue = Object.assign || function(e) {
1331
+ for (var n, r = 1, a = arguments.length; r < a; r++) {
1332
+ n = arguments[r];
1333
+ for (var i in n)
1334
+ Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
1335
+ }
1336
+ return e;
1337
+ }, ue.apply(this, arguments);
1338
+ };
1339
+ function $(t, e, n) {
1340
+ if (n || arguments.length === 2)
1341
+ for (var r = 0, a = e.length, i; r < a; r++)
1342
+ (i || !(r in e)) && (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
1343
+ return t.concat(i || Array.prototype.slice.call(e));
1344
+ }
1345
+ var _n = (
1346
+ /** @class */
1347
+ function(t) {
1348
+ Kt(e, t);
1349
+ function e(n, r, a) {
1350
+ var i = t.call(this, n, r) || this;
1351
+ return i.iterator = a, i;
1352
+ }
1353
+ return e.prototype.add = function(n) {
1354
+ return this.iterator(n, this._result.length) ? (this._result.push(n), !0) : !1;
1355
+ }, e;
1356
+ }(Fe)
1357
+ ), ct = {
1358
+ dayNames: [
1359
+ "Sunday",
1360
+ "Monday",
1361
+ "Tuesday",
1362
+ "Wednesday",
1363
+ "Thursday",
1364
+ "Friday",
1365
+ "Saturday"
1366
+ ],
1367
+ monthNames: [
1368
+ "January",
1369
+ "February",
1370
+ "March",
1371
+ "April",
1372
+ "May",
1373
+ "June",
1374
+ "July",
1375
+ "August",
1376
+ "September",
1377
+ "October",
1378
+ "November",
1379
+ "December"
1380
+ ],
1381
+ tokens: {
1382
+ SKIP: /^[ \r\n\t]+|^\.$/,
1383
+ number: /^[1-9][0-9]*/,
1384
+ numberAsText: /^(one|two|three)/i,
1385
+ every: /^every/i,
1386
+ "day(s)": /^days?/i,
1387
+ "weekday(s)": /^weekdays?/i,
1388
+ "week(s)": /^weeks?/i,
1389
+ "hour(s)": /^hours?/i,
1390
+ "minute(s)": /^minutes?/i,
1391
+ "month(s)": /^months?/i,
1392
+ "year(s)": /^years?/i,
1393
+ on: /^(on|in)/i,
1394
+ at: /^(at)/i,
1395
+ the: /^the/i,
1396
+ first: /^first/i,
1397
+ second: /^second/i,
1398
+ third: /^third/i,
1399
+ nth: /^([1-9][0-9]*)(\.|th|nd|rd|st)/i,
1400
+ last: /^last/i,
1401
+ for: /^for/i,
1402
+ "time(s)": /^times?/i,
1403
+ until: /^(un)?til/i,
1404
+ monday: /^mo(n(day)?)?/i,
1405
+ tuesday: /^tu(e(s(day)?)?)?/i,
1406
+ wednesday: /^we(d(n(esday)?)?)?/i,
1407
+ thursday: /^th(u(r(sday)?)?)?/i,
1408
+ friday: /^fr(i(day)?)?/i,
1409
+ saturday: /^sa(t(urday)?)?/i,
1410
+ sunday: /^su(n(day)?)?/i,
1411
+ january: /^jan(uary)?/i,
1412
+ february: /^feb(ruary)?/i,
1413
+ march: /^mar(ch)?/i,
1414
+ april: /^apr(il)?/i,
1415
+ may: /^may/i,
1416
+ june: /^june?/i,
1417
+ july: /^july?/i,
1418
+ august: /^aug(ust)?/i,
1419
+ september: /^sep(t(ember)?)?/i,
1420
+ october: /^oct(ober)?/i,
1421
+ november: /^nov(ember)?/i,
1422
+ december: /^dec(ember)?/i,
1423
+ comma: /^(,\s*|(and|or)\s*)+/i
1424
+ }
1425
+ }, Dn = function(t, e) {
1426
+ return t.indexOf(e) !== -1;
1427
+ }, ns = function(t) {
1428
+ return t.toString();
1429
+ }, rs = function(t, e, n) {
1430
+ return "".concat(e, " ").concat(n, ", ").concat(t);
1431
+ }, _e = (
1432
+ /** @class */
1433
+ function() {
1434
+ function t(e, n, r, a) {
1435
+ if (n === void 0 && (n = ns), r === void 0 && (r = ct), a === void 0 && (a = rs), this.text = [], this.language = r || ct, this.gettext = n, this.dateFormatter = a, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
1436
+ var i = [].concat(this.options.bymonthday), s = [].concat(this.options.bynmonthday);
1437
+ i.sort(function(d, f) {
1438
+ return d - f;
1439
+ }), s.sort(function(d, f) {
1440
+ return f - d;
1441
+ }), this.bymonthday = i.concat(s), this.bymonthday.length || (this.bymonthday = null);
1442
+ }
1443
+ if (Z(this.origOptions.byweekday)) {
1444
+ var l = ce(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], o = String(l);
1445
+ this.byweekday = {
1446
+ allWeeks: l.filter(function(d) {
1447
+ return !d.n;
1448
+ }),
1449
+ someWeeks: l.filter(function(d) {
1450
+ return !!d.n;
1451
+ }),
1452
+ 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,
1453
+ 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
1454
+ };
1455
+ var u = function(d, f) {
1456
+ return d.weekday - f.weekday;
1457
+ };
1458
+ this.byweekday.allWeeks.sort(u), this.byweekday.someWeeks.sort(u), this.byweekday.allWeeks.length || (this.byweekday.allWeeks = null), this.byweekday.someWeeks.length || (this.byweekday.someWeeks = null);
1459
+ } else
1460
+ this.byweekday = null;
1461
+ }
1462
+ return t.isFullyConvertible = function(e) {
1463
+ var n = !0;
1464
+ if (!(e.options.freq in t.IMPLEMENTED) || e.origOptions.until && e.origOptions.count)
1465
+ return !1;
1466
+ for (var r in e.origOptions) {
1467
+ if (Dn(["dtstart", "wkst", "freq"], r))
1468
+ return !0;
1469
+ if (!Dn(t.IMPLEMENTED[e.options.freq], r))
1470
+ return !1;
1471
+ }
1472
+ return n;
1473
+ }, t.prototype.isFullyConvertible = function() {
1474
+ return t.isFullyConvertible(this.rrule);
1475
+ }, t.prototype.toString = function() {
1476
+ var e = this.gettext;
1477
+ if (!(this.options.freq in t.IMPLEMENTED))
1478
+ return e("RRule error: Unable to fully convert this rrule to text");
1479
+ if (this.text = [e("every")], this[x.FREQUENCIES[this.options.freq]](), this.options.until) {
1480
+ this.add(e("until"));
1481
+ var n = this.options.until;
1482
+ this.add(this.dateFormatter(n.getUTCFullYear(), this.language.monthNames[n.getUTCMonth()], n.getUTCDate()));
1483
+ } else
1484
+ this.options.count && this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count) ? e("times") : e("time"));
1485
+ return this.isFullyConvertible() || this.add(e("(~ approximate)")), this.text.join("");
1486
+ }, t.prototype.HOURLY = function() {
1487
+ var e = this.gettext;
1488
+ this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("hours") : e("hour"));
1489
+ }, t.prototype.MINUTELY = function() {
1490
+ var e = this.gettext;
1491
+ this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("minutes") : e("minute"));
1492
+ }, t.prototype.DAILY = function() {
1493
+ var e = this.gettext;
1494
+ this.options.interval !== 1 && this.add(this.options.interval.toString()), this.byweekday && this.byweekday.isWeekdays ? this.add(this.plural(this.options.interval) ? e("weekdays") : e("weekday")) : this.add(this.plural(this.options.interval) ? e("days") : e("day")), this.origOptions.bymonth && (this.add(e("in")), this._bymonth()), this.bymonthday ? this._bymonthday() : this.byweekday ? this._byweekday() : this.origOptions.byhour && this._byhour();
1495
+ }, t.prototype.WEEKLY = function() {
1496
+ var e = this.gettext;
1497
+ this.options.interval !== 1 && this.add(this.options.interval.toString()).add(this.plural(this.options.interval) ? e("weeks") : e("week")), this.byweekday && this.byweekday.isWeekdays ? this.options.interval === 1 ? this.add(this.plural(this.options.interval) ? e("weekdays") : e("weekday")) : this.add(e("on")).add(e("weekdays")) : this.byweekday && this.byweekday.isEveryDay ? this.add(this.plural(this.options.interval) ? e("days") : e("day")) : (this.options.interval === 1 && this.add(e("week")), this.origOptions.bymonth && (this.add(e("in")), this._bymonth()), this.bymonthday ? this._bymonthday() : this.byweekday && this._byweekday());
1498
+ }, t.prototype.MONTHLY = function() {
1499
+ var e = this.gettext;
1500
+ this.origOptions.bymonth ? (this.options.interval !== 1 && (this.add(this.options.interval.toString()).add(e("months")), this.plural(this.options.interval) && this.add(e("in"))), this._bymonth()) : (this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("months") : e("month"))), this.bymonthday ? this._bymonthday() : this.byweekday && this.byweekday.isWeekdays ? this.add(e("on")).add(e("weekdays")) : this.byweekday && this._byweekday();
1501
+ }, t.prototype.YEARLY = function() {
1502
+ var e = this.gettext;
1503
+ this.origOptions.bymonth ? (this.options.interval !== 1 && (this.add(this.options.interval.toString()), this.add(e("years"))), this._bymonth()) : (this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("years") : e("year"))), this.bymonthday ? this._bymonthday() : this.byweekday && this._byweekday(), this.options.byyearday && this.add(e("on the")).add(this.list(this.options.byyearday, this.nth, e("and"))).add(e("day")), this.options.byweekno && this.add(e("in")).add(this.plural(this.options.byweekno.length) ? e("weeks") : e("week")).add(this.list(this.options.byweekno, void 0, e("and")));
1504
+ }, t.prototype._bymonthday = function() {
1505
+ var e = this.gettext;
1506
+ this.byweekday && this.byweekday.allWeeks ? this.add(e("on")).add(this.list(this.byweekday.allWeeks, this.weekdaytext, e("or"))).add(e("the")).add(this.list(this.bymonthday, this.nth, e("or"))) : this.add(e("on the")).add(this.list(this.bymonthday, this.nth, e("and")));
1507
+ }, t.prototype._byweekday = function() {
1508
+ var e = this.gettext;
1509
+ this.byweekday.allWeeks && !this.byweekday.isWeekdays && this.add(e("on")).add(this.list(this.byweekday.allWeeks, this.weekdaytext)), this.byweekday.someWeeks && (this.byweekday.allWeeks && this.add(e("and")), this.add(e("on the")).add(this.list(this.byweekday.someWeeks, this.weekdaytext, e("and"))));
1510
+ }, t.prototype._byhour = function() {
1511
+ var e = this.gettext;
1512
+ this.add(e("at")).add(this.list(this.origOptions.byhour, void 0, e("and")));
1513
+ }, t.prototype._bymonth = function() {
1514
+ this.add(this.list(this.options.bymonth, this.monthtext, this.gettext("and")));
1515
+ }, t.prototype.nth = function(e) {
1516
+ e = parseInt(e.toString(), 10);
1517
+ var n, r = this.gettext;
1518
+ if (e === -1)
1519
+ return r("last");
1520
+ var a = Math.abs(e);
1521
+ switch (a) {
1522
+ case 1:
1523
+ case 21:
1524
+ case 31:
1525
+ n = a + r("st");
1526
+ break;
1527
+ case 2:
1528
+ case 22:
1529
+ n = a + r("nd");
1530
+ break;
1531
+ case 3:
1532
+ case 23:
1533
+ n = a + r("rd");
1534
+ break;
1535
+ default:
1536
+ n = a + r("th");
1537
+ }
1538
+ return e < 0 ? n + " " + r("last") : n;
1539
+ }, t.prototype.monthtext = function(e) {
1540
+ return this.language.monthNames[e - 1];
1541
+ }, t.prototype.weekdaytext = function(e) {
1542
+ var n = ge(e) ? (e + 1) % 7 : e.getJsWeekday();
1543
+ return (e.n ? this.nth(e.n) + " " : "") + this.language.dayNames[n];
1544
+ }, t.prototype.plural = function(e) {
1545
+ return e % 100 !== 1;
1546
+ }, t.prototype.add = function(e) {
1547
+ return this.text.push(" "), this.text.push(e), this;
1548
+ }, t.prototype.list = function(e, n, r, a) {
1549
+ var i = this;
1550
+ a === void 0 && (a = ","), ce(e) || (e = [e]);
1551
+ var s = function(o, u, d) {
1552
+ for (var f = "", h = 0; h < o.length; h++)
1553
+ h !== 0 && (h === o.length - 1 ? f += " " + d + " " : f += u + " "), f += o[h];
1554
+ return f;
1555
+ };
1556
+ n = n || function(o) {
1557
+ return o.toString();
1558
+ };
1559
+ var l = function(o) {
1560
+ return n && n.call(i, o);
1561
+ };
1562
+ return r ? s(e.map(l), a, r) : e.map(l).join(a + " ");
1563
+ }, t;
1564
+ }()
1565
+ ), as = (
1566
+ /** @class */
1567
+ function() {
1568
+ function t(e) {
1569
+ this.done = !0, this.rules = e;
1570
+ }
1571
+ return t.prototype.start = function(e) {
1572
+ return this.text = e, this.done = !1, this.nextSymbol();
1573
+ }, t.prototype.isDone = function() {
1574
+ return this.done && this.symbol === null;
1575
+ }, t.prototype.nextSymbol = function() {
1576
+ var e, n;
1577
+ this.symbol = null, this.value = null;
1578
+ do {
1579
+ if (this.done)
1580
+ return !1;
1581
+ var r = void 0;
1582
+ e = null;
1583
+ for (var a in this.rules) {
1584
+ r = this.rules[a];
1585
+ var i = r.exec(this.text);
1586
+ i && (e === null || i[0].length > e[0].length) && (e = i, n = a);
1587
+ }
1588
+ if (e != null && (this.text = this.text.substr(e[0].length), this.text === "" && (this.done = !0)), e == null) {
1589
+ this.done = !0, this.symbol = null, this.value = null;
1590
+ return;
1591
+ }
1592
+ } while (n === "SKIP");
1593
+ return this.symbol = n, this.value = e, !0;
1594
+ }, t.prototype.accept = function(e) {
1595
+ if (this.symbol === e) {
1596
+ if (this.value) {
1597
+ var n = this.value;
1598
+ return this.nextSymbol(), n;
1599
+ }
1600
+ return this.nextSymbol(), !0;
1601
+ }
1602
+ return !1;
1603
+ }, t.prototype.acceptNumber = function() {
1604
+ return this.accept("number");
1605
+ }, t.prototype.expect = function(e) {
1606
+ if (this.accept(e))
1607
+ return !0;
1608
+ throw new Error("expected " + e + " but found " + this.symbol);
1609
+ }, t;
1610
+ }()
1611
+ );
1612
+ function wr(t, e) {
1613
+ e === void 0 && (e = ct);
1614
+ var n = {}, r = new as(e.tokens);
1615
+ if (!r.start(t))
1616
+ return null;
1617
+ return a(), n;
1618
+ function a() {
1619
+ r.expect("every");
1620
+ var h = r.acceptNumber();
1621
+ if (h && (n.interval = parseInt(h[0], 10)), r.isDone())
1622
+ throw new Error("Unexpected end");
1623
+ switch (r.symbol) {
1624
+ case "day(s)":
1625
+ n.freq = x.DAILY, r.nextSymbol() && (s(), f());
1626
+ break;
1627
+ case "weekday(s)":
1628
+ n.freq = x.WEEKLY, n.byweekday = [x.MO, x.TU, x.WE, x.TH, x.FR], r.nextSymbol(), f();
1629
+ break;
1630
+ case "week(s)":
1631
+ n.freq = x.WEEKLY, r.nextSymbol() && (i(), f());
1632
+ break;
1633
+ case "hour(s)":
1634
+ n.freq = x.HOURLY, r.nextSymbol() && (i(), f());
1635
+ break;
1636
+ case "minute(s)":
1637
+ n.freq = x.MINUTELY, r.nextSymbol() && (i(), f());
1638
+ break;
1639
+ case "month(s)":
1640
+ n.freq = x.MONTHLY, r.nextSymbol() && (i(), f());
1641
+ break;
1642
+ case "year(s)":
1643
+ n.freq = x.YEARLY, r.nextSymbol() && (i(), f());
1644
+ break;
1645
+ case "monday":
1646
+ case "tuesday":
1647
+ case "wednesday":
1648
+ case "thursday":
1649
+ case "friday":
1650
+ case "saturday":
1651
+ case "sunday":
1652
+ n.freq = x.WEEKLY;
1653
+ var y = r.symbol.substr(0, 2).toUpperCase();
1654
+ if (n.byweekday = [x[y]], !r.nextSymbol())
1655
+ return;
1656
+ for (; r.accept("comma"); ) {
1657
+ if (r.isDone())
1658
+ throw new Error("Unexpected end");
1659
+ var p = o();
1660
+ if (!p)
1661
+ throw new Error("Unexpected symbol " + r.symbol + ", expected weekday");
1662
+ n.byweekday.push(x[p]), r.nextSymbol();
1663
+ }
1664
+ d(), f();
1665
+ break;
1666
+ case "january":
1667
+ case "february":
1668
+ case "march":
1669
+ case "april":
1670
+ case "may":
1671
+ case "june":
1672
+ case "july":
1673
+ case "august":
1674
+ case "september":
1675
+ case "october":
1676
+ case "november":
1677
+ case "december":
1678
+ if (n.freq = x.YEARLY, n.bymonth = [l()], !r.nextSymbol())
1679
+ return;
1680
+ for (; r.accept("comma"); ) {
1681
+ if (r.isDone())
1682
+ throw new Error("Unexpected end");
1683
+ var v = l();
1684
+ if (!v)
1685
+ throw new Error("Unexpected symbol " + r.symbol + ", expected month");
1686
+ n.bymonth.push(v), r.nextSymbol();
1687
+ }
1688
+ i(), f();
1689
+ break;
1690
+ default:
1691
+ throw new Error("Unknown symbol");
1692
+ }
1693
+ }
1694
+ function i() {
1695
+ var h = r.accept("on"), y = r.accept("the");
1696
+ if (h || y)
1697
+ do {
1698
+ var p = u(), v = o(), b = l();
1699
+ if (p)
1700
+ v ? (r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(x[v].nth(p))) : (n.bymonthday || (n.bymonthday = []), n.bymonthday.push(p), r.accept("day(s)"));
1701
+ else if (v)
1702
+ r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(x[v]);
1703
+ else if (r.symbol === "weekday(s)")
1704
+ r.nextSymbol(), n.byweekday || (n.byweekday = [x.MO, x.TU, x.WE, x.TH, x.FR]);
1705
+ else if (r.symbol === "week(s)") {
1706
+ r.nextSymbol();
1707
+ var T = r.acceptNumber();
1708
+ if (!T)
1709
+ throw new Error("Unexpected symbol " + r.symbol + ", expected week number");
1710
+ for (n.byweekno = [parseInt(T[0], 10)]; r.accept("comma"); ) {
1711
+ if (T = r.acceptNumber(), !T)
1712
+ throw new Error("Unexpected symbol " + r.symbol + "; expected monthday");
1713
+ n.byweekno.push(parseInt(T[0], 10));
1714
+ }
1715
+ } else if (b)
1716
+ r.nextSymbol(), n.bymonth || (n.bymonth = []), n.bymonth.push(b);
1717
+ else
1718
+ return;
1719
+ } while (r.accept("comma") || r.accept("the") || r.accept("on"));
1720
+ }
1721
+ function s() {
1722
+ var h = r.accept("at");
1723
+ if (h)
1724
+ do {
1725
+ var y = r.acceptNumber();
1726
+ if (!y)
1727
+ throw new Error("Unexpected symbol " + r.symbol + ", expected hour");
1728
+ for (n.byhour = [parseInt(y[0], 10)]; r.accept("comma"); ) {
1729
+ if (y = r.acceptNumber(), !y)
1730
+ throw new Error("Unexpected symbol " + r.symbol + "; expected hour");
1731
+ n.byhour.push(parseInt(y[0], 10));
1732
+ }
1733
+ } while (r.accept("comma") || r.accept("at"));
1734
+ }
1735
+ function l() {
1736
+ switch (r.symbol) {
1737
+ case "january":
1738
+ return 1;
1739
+ case "february":
1740
+ return 2;
1741
+ case "march":
1742
+ return 3;
1743
+ case "april":
1744
+ return 4;
1745
+ case "may":
1746
+ return 5;
1747
+ case "june":
1748
+ return 6;
1749
+ case "july":
1750
+ return 7;
1751
+ case "august":
1752
+ return 8;
1753
+ case "september":
1754
+ return 9;
1755
+ case "october":
1756
+ return 10;
1757
+ case "november":
1758
+ return 11;
1759
+ case "december":
1760
+ return 12;
1761
+ default:
1762
+ return !1;
1763
+ }
1764
+ }
1765
+ function o() {
1766
+ switch (r.symbol) {
1767
+ case "monday":
1768
+ case "tuesday":
1769
+ case "wednesday":
1770
+ case "thursday":
1771
+ case "friday":
1772
+ case "saturday":
1773
+ case "sunday":
1774
+ return r.symbol.substr(0, 2).toUpperCase();
1775
+ default:
1776
+ return !1;
1777
+ }
1778
+ }
1779
+ function u() {
1780
+ switch (r.symbol) {
1781
+ case "last":
1782
+ return r.nextSymbol(), -1;
1783
+ case "first":
1784
+ return r.nextSymbol(), 1;
1785
+ case "second":
1786
+ return r.nextSymbol(), r.accept("last") ? -2 : 2;
1787
+ case "third":
1788
+ return r.nextSymbol(), r.accept("last") ? -3 : 3;
1789
+ case "nth":
1790
+ var h = parseInt(r.value[1], 10);
1791
+ if (h < -366 || h > 366)
1792
+ throw new Error("Nth out of range: " + h);
1793
+ return r.nextSymbol(), r.accept("last") ? -h : h;
1794
+ default:
1795
+ return !1;
1796
+ }
1797
+ }
1798
+ function d() {
1799
+ r.accept("on"), r.accept("the");
1800
+ var h = u();
1801
+ if (h)
1802
+ for (n.bymonthday = [h], r.nextSymbol(); r.accept("comma"); ) {
1803
+ if (h = u(), !h)
1804
+ throw new Error("Unexpected symbol " + r.symbol + "; expected monthday");
1805
+ n.bymonthday.push(h), r.nextSymbol();
1806
+ }
1807
+ }
1808
+ function f() {
1809
+ if (r.symbol === "until") {
1810
+ var h = Date.parse(r.text);
1811
+ if (!h)
1812
+ throw new Error("Cannot parse until date:" + r.text);
1813
+ n.until = new Date(h);
1814
+ } else
1815
+ r.accept("for") && (n.count = parseInt(r.value[0], 10), r.expect("number"));
1816
+ }
1817
+ }
1818
+ var U;
1819
+ (function(t) {
1820
+ 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";
1821
+ })(U || (U = {}));
1822
+ function Gt(t) {
1823
+ return t < U.HOURLY;
1824
+ }
1825
+ var ss = function(t, e) {
1826
+ return e === void 0 && (e = ct), new x(wr(t, e) || void 0);
1827
+ }, ze = [
1828
+ "count",
1829
+ "until",
1830
+ "interval",
1831
+ "byweekday",
1832
+ "bymonthday",
1833
+ "bymonth"
1834
+ ];
1835
+ _e.IMPLEMENTED = [];
1836
+ _e.IMPLEMENTED[U.HOURLY] = ze;
1837
+ _e.IMPLEMENTED[U.MINUTELY] = ze;
1838
+ _e.IMPLEMENTED[U.DAILY] = ["byhour"].concat(ze);
1839
+ _e.IMPLEMENTED[U.WEEKLY] = ze;
1840
+ _e.IMPLEMENTED[U.MONTHLY] = ze;
1841
+ _e.IMPLEMENTED[U.YEARLY] = ["byweekno", "byyearday"].concat(ze);
1842
+ var is = function(t, e, n, r) {
1843
+ return new _e(t, e, n, r).toString();
1844
+ }, os = _e.isFullyConvertible, ut = (
1845
+ /** @class */
1846
+ function() {
1847
+ function t(e, n, r, a) {
1848
+ this.hour = e, this.minute = n, this.second = r, this.millisecond = a || 0;
1849
+ }
1850
+ return t.prototype.getHours = function() {
1851
+ return this.hour;
1852
+ }, t.prototype.getMinutes = function() {
1853
+ return this.minute;
1854
+ }, t.prototype.getSeconds = function() {
1855
+ return this.second;
1856
+ }, t.prototype.getMilliseconds = function() {
1857
+ return this.millisecond;
1858
+ }, t.prototype.getTime = function() {
1859
+ return (this.hour * 60 * 60 + this.minute * 60 + this.second) * 1e3 + this.millisecond;
1860
+ }, t;
1861
+ }()
1862
+ ), ls = (
1863
+ /** @class */
1864
+ function(t) {
1865
+ Kt(e, t);
1866
+ function e(n, r, a, i, s, l, o) {
1867
+ var u = t.call(this, i, s, l, o) || this;
1868
+ return u.year = n, u.month = r, u.day = a, u;
1869
+ }
1870
+ return e.fromDate = function(n) {
1871
+ return new this(n.getUTCFullYear(), n.getUTCMonth() + 1, n.getUTCDate(), n.getUTCHours(), n.getUTCMinutes(), n.getUTCSeconds(), n.valueOf() % 1e3);
1872
+ }, e.prototype.getWeekday = function() {
1873
+ return We(new Date(this.getTime()));
1874
+ }, e.prototype.getTime = function() {
1875
+ return new Date(Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second, this.millisecond)).getTime();
1876
+ }, e.prototype.getDay = function() {
1877
+ return this.day;
1878
+ }, e.prototype.getMonth = function() {
1879
+ return this.month;
1880
+ }, e.prototype.getYear = function() {
1881
+ return this.year;
1882
+ }, e.prototype.addYears = function(n) {
1883
+ this.year += n;
1884
+ }, e.prototype.addMonths = function(n) {
1885
+ if (this.month += n, this.month > 12) {
1886
+ var r = Math.floor(this.month / 12), a = fe(this.month, 12);
1887
+ this.month = a, this.year += r, this.month === 0 && (this.month = 12, --this.year);
1888
+ }
1889
+ }, e.prototype.addWeekly = function(n, r) {
1890
+ r > this.getWeekday() ? this.day += -(this.getWeekday() + 1 + (6 - r)) + n * 7 : this.day += -(this.getWeekday() - r) + n * 7, this.fixDay();
1891
+ }, e.prototype.addDaily = function(n) {
1892
+ this.day += n, this.fixDay();
1893
+ }, e.prototype.addHours = function(n, r, a) {
1894
+ for (r && (this.hour += Math.floor((23 - this.hour) / n) * n); ; ) {
1895
+ this.hour += n;
1896
+ var i = St(this.hour, 24), s = i.div, l = i.mod;
1897
+ if (s && (this.hour = l, this.addDaily(s)), be(a) || F(a, this.hour))
1898
+ break;
1899
+ }
1900
+ }, e.prototype.addMinutes = function(n, r, a, i) {
1901
+ for (r && (this.minute += Math.floor((1439 - (this.hour * 60 + this.minute)) / n) * n); ; ) {
1902
+ this.minute += n;
1903
+ var s = St(this.minute, 60), l = s.div, o = s.mod;
1904
+ if (l && (this.minute = o, this.addHours(l, !1, a)), (be(a) || F(a, this.hour)) && (be(i) || F(i, this.minute)))
1905
+ break;
1906
+ }
1907
+ }, e.prototype.addSeconds = function(n, r, a, i, s) {
1908
+ for (r && (this.second += Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / n) * n); ; ) {
1909
+ this.second += n;
1910
+ var l = St(this.second, 60), o = l.div, u = l.mod;
1911
+ if (o && (this.second = u, this.addMinutes(o, !1, a, i)), (be(a) || F(a, this.hour)) && (be(i) || F(i, this.minute)) && (be(s) || F(s, this.second)))
1912
+ break;
1913
+ }
1914
+ }, e.prototype.fixDay = function() {
1915
+ if (!(this.day <= 28)) {
1916
+ var n = Cn(this.year, this.month - 1)[1];
1917
+ if (!(this.day <= n))
1918
+ for (; this.day > n; ) {
1919
+ if (this.day -= n, ++this.month, this.month === 13 && (this.month = 1, ++this.year, this.year > mr))
1920
+ return;
1921
+ n = Cn(this.year, this.month - 1)[1];
1922
+ }
1923
+ }
1924
+ }, e.prototype.add = function(n, r) {
1925
+ var a = n.freq, i = n.interval, s = n.wkst, l = n.byhour, o = n.byminute, u = n.bysecond;
1926
+ switch (a) {
1927
+ case U.YEARLY:
1928
+ return this.addYears(i);
1929
+ case U.MONTHLY:
1930
+ return this.addMonths(i);
1931
+ case U.WEEKLY:
1932
+ return this.addWeekly(i, s);
1933
+ case U.DAILY:
1934
+ return this.addDaily(i);
1935
+ case U.HOURLY:
1936
+ return this.addHours(i, r, l);
1937
+ case U.MINUTELY:
1938
+ return this.addMinutes(i, r, l, o);
1939
+ case U.SECONDLY:
1940
+ return this.addSeconds(i, r, l, o, u);
1941
+ }
1942
+ }, e;
1943
+ }(ut)
1944
+ );
1945
+ function Er(t) {
1946
+ for (var e = [], n = Object.keys(t), r = 0, a = n; r < a.length; r++) {
1947
+ var i = a[r];
1948
+ F(Ps, i) || e.push(i), gr(t[i]) && !Je(t[i]) && e.push(i);
1949
+ }
1950
+ if (e.length)
1951
+ throw new Error("Invalid options: " + e.join(", "));
1952
+ return ue({}, t);
1953
+ }
1954
+ function cs(t) {
1955
+ var e = ue(ue({}, Zt), Er(t));
1956
+ if (Z(e.byeaster) && (e.freq = x.YEARLY), !(Z(e.freq) && x.FREQUENCIES[e.freq]))
1957
+ throw new Error("Invalid frequency: ".concat(e.freq, " ").concat(t.freq));
1958
+ if (e.dtstart || (e.dtstart = new Date((/* @__PURE__ */ new Date()).setMilliseconds(0))), Z(e.wkst) ? ge(e.wkst) || (e.wkst = e.wkst.weekday) : e.wkst = x.MO.weekday, Z(e.bysetpos)) {
1959
+ ge(e.bysetpos) && (e.bysetpos = [e.bysetpos]);
1960
+ for (var n = 0; n < e.bysetpos.length; n++) {
1961
+ var r = e.bysetpos[n];
1962
+ if (r === 0 || !(r >= -366 && r <= 366))
1963
+ throw new Error("bysetpos must be between 1 and 366, or between -366 and -1");
1964
+ }
1965
+ }
1966
+ if (!(e.byweekno || Q(e.byweekno) || Q(e.byyearday) || e.bymonthday || Q(e.bymonthday) || Z(e.byweekday) || Z(e.byeaster)))
1967
+ switch (e.freq) {
1968
+ case x.YEARLY:
1969
+ e.bymonth || (e.bymonth = e.dtstart.getUTCMonth() + 1), e.bymonthday = e.dtstart.getUTCDate();
1970
+ break;
1971
+ case x.MONTHLY:
1972
+ e.bymonthday = e.dtstart.getUTCDate();
1973
+ break;
1974
+ case x.WEEKLY:
1975
+ e.byweekday = [We(e.dtstart)];
1976
+ break;
1977
+ }
1978
+ if (Z(e.bymonth) && !ce(e.bymonth) && (e.bymonth = [e.bymonth]), Z(e.byyearday) && !ce(e.byyearday) && ge(e.byyearday) && (e.byyearday = [e.byyearday]), !Z(e.bymonthday))
1979
+ e.bymonthday = [], e.bynmonthday = [];
1980
+ else if (ce(e.bymonthday)) {
1981
+ for (var a = [], i = [], n = 0; n < e.bymonthday.length; n++) {
1982
+ var r = e.bymonthday[n];
1983
+ r > 0 ? a.push(r) : r < 0 && i.push(r);
1984
+ }
1985
+ e.bymonthday = a, e.bynmonthday = i;
1986
+ } else
1987
+ e.bymonthday < 0 ? (e.bynmonthday = [e.bymonthday], e.bymonthday = []) : (e.bynmonthday = [], e.bymonthday = [e.bymonthday]);
1988
+ if (Z(e.byweekno) && !ce(e.byweekno) && (e.byweekno = [e.byweekno]), !Z(e.byweekday))
1989
+ e.bynweekday = null;
1990
+ else if (ge(e.byweekday))
1991
+ e.byweekday = [e.byweekday], e.bynweekday = null;
1992
+ else if (Tn(e.byweekday))
1993
+ e.byweekday = [se.fromStr(e.byweekday).weekday], e.bynweekday = null;
1994
+ else if (e.byweekday instanceof se)
1995
+ !e.byweekday.n || e.freq > x.MONTHLY ? (e.byweekday = [e.byweekday.weekday], e.bynweekday = null) : (e.bynweekday = [[e.byweekday.weekday, e.byweekday.n]], e.byweekday = null);
1996
+ else {
1997
+ for (var s = [], l = [], n = 0; n < e.byweekday.length; n++) {
1998
+ var o = e.byweekday[n];
1999
+ if (ge(o)) {
2000
+ s.push(o);
2001
+ continue;
2002
+ } else if (Tn(o)) {
2003
+ s.push(se.fromStr(o).weekday);
2004
+ continue;
2005
+ }
2006
+ !o.n || e.freq > x.MONTHLY ? s.push(o.weekday) : l.push([o.weekday, o.n]);
2007
+ }
2008
+ e.byweekday = Q(s) ? s : null, e.bynweekday = Q(l) ? l : null;
2009
+ }
2010
+ return Z(e.byhour) ? ge(e.byhour) && (e.byhour = [e.byhour]) : e.byhour = e.freq < x.HOURLY ? [e.dtstart.getUTCHours()] : null, Z(e.byminute) ? ge(e.byminute) && (e.byminute = [e.byminute]) : e.byminute = e.freq < x.MINUTELY ? [e.dtstart.getUTCMinutes()] : null, Z(e.bysecond) ? ge(e.bysecond) && (e.bysecond = [e.bysecond]) : e.bysecond = e.freq < x.SECONDLY ? [e.dtstart.getUTCSeconds()] : null, { parsedOptions: e };
2011
+ }
2012
+ function us(t) {
2013
+ var e = t.dtstart.getTime() % 1e3;
2014
+ if (!Gt(t.freq))
2015
+ return [];
2016
+ var n = [];
2017
+ return t.byhour.forEach(function(r) {
2018
+ t.byminute.forEach(function(a) {
2019
+ t.bysecond.forEach(function(i) {
2020
+ n.push(new ut(r, a, i, e));
2021
+ });
2022
+ });
2023
+ }), n;
2024
+ }
2025
+ function Ut(t) {
2026
+ var e = t.split(`
2027
+ `).map(ds).filter(function(n) {
2028
+ return n !== null;
2029
+ });
2030
+ return ue(ue({}, e[0]), e[1]);
2031
+ }
2032
+ function dt(t) {
2033
+ var e = {}, n = /DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);
2034
+ if (!n)
2035
+ return e;
2036
+ var r = n[1], a = n[2];
2037
+ return r && (e.tzid = r), e.dtstart = qt(a), e;
2038
+ }
2039
+ function ds(t) {
2040
+ if (t = t.replace(/^\s+|\s+$/, ""), !t.length)
2041
+ return null;
2042
+ var e = /^([A-Z]+?)[:;]/.exec(t.toUpperCase());
2043
+ if (!e)
2044
+ return Mn(t);
2045
+ var n = e[1];
2046
+ switch (n.toUpperCase()) {
2047
+ case "RRULE":
2048
+ case "EXRULE":
2049
+ return Mn(t);
2050
+ case "DTSTART":
2051
+ return dt(t);
2052
+ default:
2053
+ throw new Error("Unsupported RFC prop ".concat(n, " in ").concat(t));
2054
+ }
2055
+ }
2056
+ function Mn(t) {
2057
+ var e = t.replace(/^RRULE:/i, ""), n = dt(e), r = t.replace(/^(?:RRULE|EXRULE):/i, "").split(";");
2058
+ return r.forEach(function(a) {
2059
+ var i = a.split("="), s = i[0], l = i[1];
2060
+ switch (s.toUpperCase()) {
2061
+ case "FREQ":
2062
+ n.freq = U[l.toUpperCase()];
2063
+ break;
2064
+ case "WKST":
2065
+ n.wkst = me[l.toUpperCase()];
2066
+ break;
2067
+ case "COUNT":
2068
+ case "INTERVAL":
2069
+ case "BYSETPOS":
2070
+ case "BYMONTH":
2071
+ case "BYMONTHDAY":
2072
+ case "BYYEARDAY":
2073
+ case "BYWEEKNO":
2074
+ case "BYHOUR":
2075
+ case "BYMINUTE":
2076
+ case "BYSECOND":
2077
+ var o = fs(l), u = s.toLowerCase();
2078
+ n[u] = o;
2079
+ break;
2080
+ case "BYWEEKDAY":
2081
+ case "BYDAY":
2082
+ n.byweekday = hs(l);
2083
+ break;
2084
+ case "DTSTART":
2085
+ case "TZID":
2086
+ var d = dt(t);
2087
+ n.tzid = d.tzid, n.dtstart = d.dtstart;
2088
+ break;
2089
+ case "UNTIL":
2090
+ n.until = qt(l);
2091
+ break;
2092
+ case "BYEASTER":
2093
+ n.byeaster = Number(l);
2094
+ break;
2095
+ default:
2096
+ throw new Error("Unknown RRULE property '" + s + "'");
2097
+ }
2098
+ }), n;
2099
+ }
2100
+ function fs(t) {
2101
+ if (t.indexOf(",") !== -1) {
2102
+ var e = t.split(",");
2103
+ return e.map(Rn);
2104
+ }
2105
+ return Rn(t);
2106
+ }
2107
+ function Rn(t) {
2108
+ return /^[+-]?\d+$/.test(t) ? Number(t) : t;
2109
+ }
2110
+ function hs(t) {
2111
+ var e = t.split(",");
2112
+ return e.map(function(n) {
2113
+ if (n.length === 2)
2114
+ return me[n];
2115
+ var r = n.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
2116
+ if (!r || r.length < 3)
2117
+ throw new SyntaxError("Invalid weekday string: ".concat(n));
2118
+ var a = Number(r[1]), i = r[2], s = me[i].weekday;
2119
+ return new se(s, a);
2120
+ });
2121
+ }
2122
+ var ft = (
2123
+ /** @class */
2124
+ function() {
2125
+ function t(e, n) {
2126
+ if (isNaN(e.getTime()))
2127
+ throw new RangeError("Invalid date passed to DateWithZone");
2128
+ this.date = e, this.tzid = n;
2129
+ }
2130
+ return Object.defineProperty(t.prototype, "isUTC", {
2131
+ get: function() {
2132
+ return !this.tzid || this.tzid.toUpperCase() === "UTC";
2133
+ },
2134
+ enumerable: !1,
2135
+ configurable: !0
2136
+ }), t.prototype.toString = function() {
2137
+ var e = Bt(this.date.getTime(), this.isUTC);
2138
+ return this.isUTC ? ":".concat(e) : ";TZID=".concat(this.tzid, ":").concat(e);
2139
+ }, t.prototype.getTime = function() {
2140
+ return this.date.getTime();
2141
+ }, t.prototype.rezonedDate = function() {
2142
+ return this.isUTC ? this.date : ts(this.date, this.tzid);
2143
+ }, t;
2144
+ }()
2145
+ );
2146
+ function Pt(t) {
2147
+ for (var e = [], n = "", r = Object.keys(t), a = Object.keys(Zt), i = 0; i < r.length; i++)
2148
+ if (r[i] !== "tzid" && F(a, r[i])) {
2149
+ var s = r[i].toUpperCase(), l = t[r[i]], o = "";
2150
+ if (!(!Z(l) || ce(l) && !l.length)) {
2151
+ switch (s) {
2152
+ case "FREQ":
2153
+ o = x.FREQUENCIES[t.freq];
2154
+ break;
2155
+ case "WKST":
2156
+ ge(l) ? o = new se(l).toString() : o = l.toString();
2157
+ break;
2158
+ case "BYWEEKDAY":
2159
+ s = "BYDAY", o = Za(l).map(function(y) {
2160
+ return y instanceof se ? y : ce(y) ? new se(y[0], y[1]) : new se(y);
2161
+ }).toString();
2162
+ break;
2163
+ case "DTSTART":
2164
+ n = ys(l, t.tzid);
2165
+ break;
2166
+ case "UNTIL":
2167
+ o = Bt(l, !t.tzid);
2168
+ break;
2169
+ default:
2170
+ if (ce(l)) {
2171
+ for (var u = [], d = 0; d < l.length; d++)
2172
+ u[d] = String(l[d]);
2173
+ o = u.toString();
2174
+ } else
2175
+ o = String(l);
2176
+ }
2177
+ o && e.push([s, o]);
2178
+ }
2179
+ }
2180
+ var f = e.map(function(y) {
2181
+ var p = y[0], v = y[1];
2182
+ return "".concat(p, "=").concat(v.toString());
2183
+ }).join(";"), h = "";
2184
+ return f !== "" && (h = "RRULE:".concat(f)), [n, h].filter(function(y) {
2185
+ return !!y;
2186
+ }).join(`
2187
+ `);
2188
+ }
2189
+ function ys(t, e) {
2190
+ return t ? "DTSTART" + new ft(new Date(t), e).toString() : "";
2191
+ }
2192
+ function ps(t, e) {
2193
+ return Array.isArray(t) ? !Array.isArray(e) || t.length !== e.length ? !1 : t.every(function(n, r) {
2194
+ return n.getTime() === e[r].getTime();
2195
+ }) : t instanceof Date ? e instanceof Date && t.getTime() === e.getTime() : t === e;
2196
+ }
2197
+ var ms = (
2198
+ /** @class */
2199
+ function() {
2200
+ function t() {
2201
+ this.all = !1, this.before = [], this.after = [], this.between = [];
2202
+ }
2203
+ return t.prototype._cacheAdd = function(e, n, r) {
2204
+ n && (n = n instanceof Date ? At(n) : xn(n)), e === "all" ? this.all = n : (r._value = n, this[e].push(r));
2205
+ }, t.prototype._cacheGet = function(e, n) {
2206
+ var r = !1, a = n ? Object.keys(n) : [], i = function(d) {
2207
+ for (var f = 0; f < a.length; f++) {
2208
+ var h = a[f];
2209
+ if (!ps(n[h], d[h]))
2210
+ return !0;
2211
+ }
2212
+ return !1;
2213
+ }, s = this[e];
2214
+ if (e === "all")
2215
+ r = this.all;
2216
+ else if (ce(s))
2217
+ for (var l = 0; l < s.length; l++) {
2218
+ var o = s[l];
2219
+ if (!(a.length && i(o))) {
2220
+ r = o._value;
2221
+ break;
2222
+ }
2223
+ }
2224
+ if (!r && this.all) {
2225
+ for (var u = new Fe(e, n), l = 0; l < this.all.length && u.accept(this.all[l]); l++)
2226
+ ;
2227
+ r = u.getValue(), this._cacheAdd(e, r, n);
2228
+ }
2229
+ return ce(r) ? xn(r) : r instanceof Date ? At(r) : r;
2230
+ }, t;
2231
+ }()
2232
+ ), vs = $($($($($($($($($($($($($([], N(1, 31), !0), N(2, 28), !0), N(3, 31), !0), N(4, 30), !0), N(5, 31), !0), N(6, 30), !0), N(7, 31), !0), N(8, 31), !0), N(9, 30), !0), N(10, 31), !0), N(11, 30), !0), N(12, 31), !0), N(1, 7), !0), gs = $($($($($($($($($($($($($([], N(1, 31), !0), N(2, 29), !0), N(3, 31), !0), N(4, 30), !0), N(5, 31), !0), N(6, 30), !0), N(7, 31), !0), N(8, 31), !0), N(9, 30), !0), N(10, 31), !0), N(11, 30), !0), N(12, 31), !0), N(1, 7), !0), bs = we(1, 29), $s = we(1, 30), De = we(1, 31), te = we(1, 32), ws = $($($($($($($($($($($($($([], te, !0), $s, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te.slice(0, 7), !0), Es = $($($($($($($($($($($($($([], te, !0), bs, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te.slice(0, 7), !0), ks = we(-28, 0), Ts = we(-29, 0), Me = we(-30, 0), ne = we(-31, 0), Ss = $($($($($($($($($($($($($([], ne, !0), Ts, !0), ne, !0), Me, !0), ne, !0), Me, !0), ne, !0), ne, !0), Me, !0), ne, !0), Me, !0), ne, !0), ne.slice(0, 7), !0), Cs = $($($($($($($($($($($($($([], ne, !0), ks, !0), ne, !0), Me, !0), ne, !0), Me, !0), ne, !0), ne, !0), Me, !0), ne, !0), Me, !0), ne, !0), ne.slice(0, 7), !0), xs = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366], Os = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], Ln = function() {
2233
+ for (var t = [], e = 0; e < 55; e++)
2234
+ t = t.concat(we(7));
2235
+ return t;
2236
+ }();
2237
+ function _s(t, e) {
2238
+ var n = Ie(t, 1, 1), r = Xe(t) ? 366 : 365, a = Xe(t + 1) ? 366 : 365, i = It(n), s = We(n), l = ue(ue({ yearlen: r, nextyearlen: a, yearordinal: i, yearweekday: s }, Ds(t)), { wnomask: null });
2239
+ if (be(e.byweekno))
2240
+ return l;
2241
+ l.wnomask = N(0, r + 7);
2242
+ var o, u, d = o = fe(7 - s + e.wkst, 7);
2243
+ d >= 4 ? (d = 0, u = l.yearlen + fe(s - e.wkst, 7)) : u = r - d;
2244
+ for (var f = Math.floor(u / 7), h = fe(u, 7), y = Math.floor(f + h / 4), p = 0; p < e.byweekno.length; p++) {
2245
+ var v = e.byweekno[p];
2246
+ if (v < 0 && (v += y + 1), v > 0 && v <= y) {
2247
+ var b = void 0;
2248
+ v > 1 ? (b = d + (v - 1) * 7, d !== o && (b -= 7 - o)) : b = d;
2249
+ for (var T = 0; T < 7 && (l.wnomask[b] = 1, b++, l.wdaymask[b] !== e.wkst); T++)
2250
+ ;
2251
+ }
2252
+ }
2253
+ if (F(e.byweekno, 1)) {
2254
+ var b = d + y * 7;
2255
+ if (d !== o && (b -= 7 - o), b < r)
2256
+ for (var p = 0; p < 7 && (l.wnomask[b] = 1, b += 1, l.wdaymask[b] !== e.wkst); p++)
2257
+ ;
2258
+ }
2259
+ if (d) {
2260
+ var L = void 0;
2261
+ if (F(e.byweekno, -1))
2262
+ L = -1;
2263
+ else {
2264
+ var V = We(Ie(t - 1, 1, 1)), ie = fe(7 - V.valueOf() + e.wkst, 7), he = Xe(t - 1) ? 366 : 365, ee = void 0;
2265
+ ie >= 4 ? (ie = 0, ee = he + fe(V - e.wkst, 7)) : ee = r - d, L = Math.floor(52 + fe(ee, 7) / 4);
2266
+ }
2267
+ if (F(e.byweekno, L))
2268
+ for (var b = 0; b < d; b++)
2269
+ l.wnomask[b] = 1;
2270
+ }
2271
+ return l;
2272
+ }
2273
+ function Ds(t) {
2274
+ var e = Xe(t) ? 366 : 365, n = Ie(t, 1, 1), r = We(n);
2275
+ return e === 365 ? {
2276
+ mmask: vs,
2277
+ mdaymask: Es,
2278
+ nmdaymask: Cs,
2279
+ wdaymask: Ln.slice(r),
2280
+ mrange: Os
2281
+ } : {
2282
+ mmask: gs,
2283
+ mdaymask: ws,
2284
+ nmdaymask: Ss,
2285
+ wdaymask: Ln.slice(r),
2286
+ mrange: xs
2287
+ };
2288
+ }
2289
+ function Ms(t, e, n, r, a, i) {
2290
+ var s = {
2291
+ lastyear: t,
2292
+ lastmonth: e,
2293
+ nwdaymask: []
2294
+ }, l = [];
2295
+ if (i.freq === x.YEARLY)
2296
+ if (be(i.bymonth))
2297
+ l = [[0, n]];
2298
+ else
2299
+ for (var o = 0; o < i.bymonth.length; o++)
2300
+ e = i.bymonth[o], l.push(r.slice(e - 1, e + 1));
2301
+ else
2302
+ i.freq === x.MONTHLY && (l = [r.slice(e - 1, e + 1)]);
2303
+ if (be(l))
2304
+ return s;
2305
+ s.nwdaymask = N(0, n);
2306
+ for (var o = 0; o < l.length; o++)
2307
+ for (var u = l[o], d = u[0], f = u[1] - 1, h = 0; h < i.bynweekday.length; h++) {
2308
+ var y = void 0, p = i.bynweekday[h], v = p[0], b = p[1];
2309
+ b < 0 ? (y = f + (b + 1) * 7, y -= fe(a[y] - v, 7)) : (y = d + (b - 1) * 7, y += fe(7 - a[y] + v, 7)), d <= y && y <= f && (s.nwdaymask[y] = 1);
2310
+ }
2311
+ return s;
2312
+ }
2313
+ function Rs(t, e) {
2314
+ e === void 0 && (e = 0);
2315
+ var n = t % 19, r = Math.floor(t / 100), a = t % 100, i = Math.floor(r / 4), s = r % 4, l = Math.floor((r + 8) / 25), o = Math.floor((r - l + 1) / 3), u = Math.floor(19 * n + r - i - o + 15) % 30, d = Math.floor(a / 4), f = a % 4, h = Math.floor(32 + 2 * s + 2 * d - u - f) % 7, y = Math.floor((n + 11 * u + 22 * h) / 451), p = Math.floor((u + h - 7 * y + 114) / 31), v = (u + h - 7 * y + 114) % 31 + 1, b = Date.UTC(t, p - 1, v + e), T = Date.UTC(t, 0, 1);
2316
+ return [Math.ceil((b - T) / (1e3 * 60 * 60 * 24))];
2317
+ }
2318
+ var Ls = (
2319
+ /** @class */
2320
+ function() {
2321
+ function t(e) {
2322
+ this.options = e;
2323
+ }
2324
+ return t.prototype.rebuild = function(e, n) {
2325
+ var r = this.options;
2326
+ if (e !== this.lastyear && (this.yearinfo = _s(e, r)), Q(r.bynweekday) && (n !== this.lastmonth || e !== this.lastyear)) {
2327
+ var a = this.yearinfo, i = a.yearlen, s = a.mrange, l = a.wdaymask;
2328
+ this.monthinfo = Ms(e, n, i, s, l, r);
2329
+ }
2330
+ Z(r.byeaster) && (this.eastermask = Rs(e, r.byeaster));
2331
+ }, Object.defineProperty(t.prototype, "lastyear", {
2332
+ get: function() {
2333
+ return this.monthinfo ? this.monthinfo.lastyear : null;
2334
+ },
2335
+ enumerable: !1,
2336
+ configurable: !0
2337
+ }), Object.defineProperty(t.prototype, "lastmonth", {
2338
+ get: function() {
2339
+ return this.monthinfo ? this.monthinfo.lastmonth : null;
2340
+ },
2341
+ enumerable: !1,
2342
+ configurable: !0
2343
+ }), Object.defineProperty(t.prototype, "yearlen", {
2344
+ get: function() {
2345
+ return this.yearinfo.yearlen;
2346
+ },
2347
+ enumerable: !1,
2348
+ configurable: !0
2349
+ }), Object.defineProperty(t.prototype, "yearordinal", {
2350
+ get: function() {
2351
+ return this.yearinfo.yearordinal;
2352
+ },
2353
+ enumerable: !1,
2354
+ configurable: !0
2355
+ }), Object.defineProperty(t.prototype, "mrange", {
2356
+ get: function() {
2357
+ return this.yearinfo.mrange;
2358
+ },
2359
+ enumerable: !1,
2360
+ configurable: !0
2361
+ }), Object.defineProperty(t.prototype, "wdaymask", {
2362
+ get: function() {
2363
+ return this.yearinfo.wdaymask;
2364
+ },
2365
+ enumerable: !1,
2366
+ configurable: !0
2367
+ }), Object.defineProperty(t.prototype, "mmask", {
2368
+ get: function() {
2369
+ return this.yearinfo.mmask;
2370
+ },
2371
+ enumerable: !1,
2372
+ configurable: !0
2373
+ }), Object.defineProperty(t.prototype, "wnomask", {
2374
+ get: function() {
2375
+ return this.yearinfo.wnomask;
2376
+ },
2377
+ enumerable: !1,
2378
+ configurable: !0
2379
+ }), Object.defineProperty(t.prototype, "nwdaymask", {
2380
+ get: function() {
2381
+ return this.monthinfo ? this.monthinfo.nwdaymask : [];
2382
+ },
2383
+ enumerable: !1,
2384
+ configurable: !0
2385
+ }), Object.defineProperty(t.prototype, "nextyearlen", {
2386
+ get: function() {
2387
+ return this.yearinfo.nextyearlen;
2388
+ },
2389
+ enumerable: !1,
2390
+ configurable: !0
2391
+ }), Object.defineProperty(t.prototype, "mdaymask", {
2392
+ get: function() {
2393
+ return this.yearinfo.mdaymask;
2394
+ },
2395
+ enumerable: !1,
2396
+ configurable: !0
2397
+ }), Object.defineProperty(t.prototype, "nmdaymask", {
2398
+ get: function() {
2399
+ return this.yearinfo.nmdaymask;
2400
+ },
2401
+ enumerable: !1,
2402
+ configurable: !0
2403
+ }), t.prototype.ydayset = function() {
2404
+ return [we(this.yearlen), 0, this.yearlen];
2405
+ }, t.prototype.mdayset = function(e, n) {
2406
+ for (var r = this.mrange[n - 1], a = this.mrange[n], i = N(null, this.yearlen), s = r; s < a; s++)
2407
+ i[s] = s;
2408
+ return [i, r, a];
2409
+ }, t.prototype.wdayset = function(e, n, r) {
2410
+ for (var a = N(null, this.yearlen + 7), i = It(Ie(e, n, r)) - this.yearordinal, s = i, l = 0; l < 7 && (a[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); l++)
2411
+ ;
2412
+ return [a, s, i];
2413
+ }, t.prototype.ddayset = function(e, n, r) {
2414
+ var a = N(null, this.yearlen), i = It(Ie(e, n, r)) - this.yearordinal;
2415
+ return a[i] = i, [a, i, i + 1];
2416
+ }, t.prototype.htimeset = function(e, n, r, a) {
2417
+ var i = this, s = [];
2418
+ return this.options.byminute.forEach(function(l) {
2419
+ s = s.concat(i.mtimeset(e, l, r, a));
2420
+ }), Ve(s), s;
2421
+ }, t.prototype.mtimeset = function(e, n, r, a) {
2422
+ var i = this.options.bysecond.map(function(s) {
2423
+ return new ut(e, n, s, a);
2424
+ });
2425
+ return Ve(i), i;
2426
+ }, t.prototype.stimeset = function(e, n, r, a) {
2427
+ return [new ut(e, n, r, a)];
2428
+ }, t.prototype.getdayset = function(e) {
2429
+ switch (e) {
2430
+ case U.YEARLY:
2431
+ return this.ydayset.bind(this);
2432
+ case U.MONTHLY:
2433
+ return this.mdayset.bind(this);
2434
+ case U.WEEKLY:
2435
+ return this.wdayset.bind(this);
2436
+ case U.DAILY:
2437
+ return this.ddayset.bind(this);
2438
+ default:
2439
+ return this.ddayset.bind(this);
2440
+ }
2441
+ }, t.prototype.gettimeset = function(e) {
2442
+ switch (e) {
2443
+ case U.HOURLY:
2444
+ return this.htimeset.bind(this);
2445
+ case U.MINUTELY:
2446
+ return this.mtimeset.bind(this);
2447
+ case U.SECONDLY:
2448
+ return this.stimeset.bind(this);
2449
+ }
2450
+ }, t;
2451
+ }()
2452
+ );
2453
+ function Is(t, e, n, r, a, i) {
2454
+ for (var s = [], l = 0; l < t.length; l++) {
2455
+ var o = void 0, u = void 0, d = t[l];
2456
+ d < 0 ? (o = Math.floor(d / e.length), u = fe(d, e.length)) : (o = Math.floor((d - 1) / e.length), u = fe(d - 1, e.length));
2457
+ for (var f = [], h = n; h < r; h++) {
2458
+ var y = i[h];
2459
+ Z(y) && f.push(y);
2460
+ }
2461
+ var p = void 0;
2462
+ o < 0 ? p = f.slice(o)[0] : p = f[o];
2463
+ var v = e[u], b = br(a.yearordinal + p), T = $r(b, v);
2464
+ F(s, T) || s.push(T);
2465
+ }
2466
+ return Ve(s), s;
2467
+ }
2468
+ function kr(t, e) {
2469
+ var n = e.dtstart, r = e.freq, a = e.interval, i = e.until, s = e.bysetpos, l = e.count;
2470
+ if (l === 0 || a === 0)
2471
+ return Se(t);
2472
+ var o = ls.fromDate(n), u = new Ls(e);
2473
+ u.rebuild(o.year, o.month);
2474
+ for (var d = Us(u, o, e); ; ) {
2475
+ var f = u.getdayset(r)(o.year, o.month, o.day), h = f[0], y = f[1], p = f[2], v = Ns(h, y, p, u, e);
2476
+ if (Q(s))
2477
+ for (var b = Is(s, d, y, p, u, h), T = 0; T < b.length; T++) {
2478
+ var L = b[T];
2479
+ if (i && L > i)
2480
+ return Se(t);
2481
+ if (L >= n) {
2482
+ var V = In(L, e);
2483
+ if (!t.accept(V) || l && (--l, !l))
2484
+ return Se(t);
2485
+ }
2486
+ }
2487
+ else
2488
+ for (var T = y; T < p; T++) {
2489
+ var ie = h[T];
2490
+ if (Z(ie))
2491
+ for (var he = br(u.yearordinal + ie), ee = 0; ee < d.length; ee++) {
2492
+ var Re = d[ee], L = $r(he, Re);
2493
+ if (i && L > i)
2494
+ return Se(t);
2495
+ if (L >= n) {
2496
+ var V = In(L, e);
2497
+ if (!t.accept(V) || l && (--l, !l))
2498
+ return Se(t);
2499
+ }
2500
+ }
2501
+ }
2502
+ if (e.interval === 0 || (o.add(e, v), o.year > mr))
2503
+ return Se(t);
2504
+ Gt(r) || (d = u.gettimeset(r)(o.hour, o.minute, o.second, 0)), u.rebuild(o.year, o.month);
2505
+ }
2506
+ }
2507
+ function As(t, e, n) {
2508
+ var r = n.bymonth, a = n.byweekno, i = n.byweekday, s = n.byeaster, l = n.bymonthday, o = n.bynmonthday, u = n.byyearday;
2509
+ return Q(r) && !F(r, t.mmask[e]) || Q(a) && !t.wnomask[e] || Q(i) && !F(i, t.wdaymask[e]) || Q(t.nwdaymask) && !t.nwdaymask[e] || s !== null && !F(t.eastermask, e) || (Q(l) || Q(o)) && !F(l, t.mdaymask[e]) && !F(o, t.nmdaymask[e]) || Q(u) && (e < t.yearlen && !F(u, e + 1) && !F(u, -t.yearlen + e) || e >= t.yearlen && !F(u, e + 1 - t.yearlen) && !F(u, -t.nextyearlen + e - t.yearlen));
2510
+ }
2511
+ function In(t, e) {
2512
+ return new ft(t, e.tzid).rezonedDate();
2513
+ }
2514
+ function Se(t) {
2515
+ return t.getValue();
2516
+ }
2517
+ function Ns(t, e, n, r, a) {
2518
+ for (var i = !1, s = e; s < n; s++) {
2519
+ var l = t[s];
2520
+ i = As(r, l, a), i && (t[l] = null);
2521
+ }
2522
+ return i;
2523
+ }
2524
+ function Us(t, e, n) {
2525
+ var r = n.freq, a = n.byhour, i = n.byminute, s = n.bysecond;
2526
+ return Gt(r) ? us(n) : r >= x.HOURLY && Q(a) && !F(a, e.hour) || r >= x.MINUTELY && Q(i) && !F(i, e.minute) || r >= x.SECONDLY && Q(s) && !F(s, e.second) ? [] : t.gettimeset(r)(e.hour, e.minute, e.second, e.millisecond);
2527
+ }
2528
+ var me = {
2529
+ MO: new se(0),
2530
+ TU: new se(1),
2531
+ WE: new se(2),
2532
+ TH: new se(3),
2533
+ FR: new se(4),
2534
+ SA: new se(5),
2535
+ SU: new se(6)
2536
+ }, Zt = {
2537
+ freq: U.YEARLY,
2538
+ dtstart: null,
2539
+ interval: 1,
2540
+ wkst: me.MO,
2541
+ count: null,
2542
+ until: null,
2543
+ tzid: null,
2544
+ bysetpos: null,
2545
+ bymonth: null,
2546
+ bymonthday: null,
2547
+ bynmonthday: null,
2548
+ byyearday: null,
2549
+ byweekno: null,
2550
+ byweekday: null,
2551
+ bynweekday: null,
2552
+ byhour: null,
2553
+ byminute: null,
2554
+ bysecond: null,
2555
+ byeaster: null
2556
+ }, Ps = Object.keys(Zt), x = (
2557
+ /** @class */
2558
+ function() {
2559
+ function t(e, n) {
2560
+ e === void 0 && (e = {}), n === void 0 && (n = !1), this._cache = n ? null : new ms(), this.origOptions = Er(e);
2561
+ var r = cs(e).parsedOptions;
2562
+ this.options = r;
2563
+ }
2564
+ return t.parseText = function(e, n) {
2565
+ return wr(e, n);
2566
+ }, t.fromText = function(e, n) {
2567
+ return ss(e, n);
2568
+ }, t.fromString = function(e) {
2569
+ return new t(t.parseString(e) || void 0);
2570
+ }, t.prototype._iter = function(e) {
2571
+ return kr(e, this.options);
2572
+ }, t.prototype._cacheGet = function(e, n) {
2573
+ return this._cache ? this._cache._cacheGet(e, n) : !1;
2574
+ }, t.prototype._cacheAdd = function(e, n, r) {
2575
+ if (this._cache)
2576
+ return this._cache._cacheAdd(e, n, r);
2577
+ }, t.prototype.all = function(e) {
2578
+ if (e)
2579
+ return this._iter(new _n("all", {}, e));
2580
+ var n = this._cacheGet("all");
2581
+ return n === !1 && (n = this._iter(new Fe("all", {})), this._cacheAdd("all", n)), n;
2582
+ }, t.prototype.between = function(e, n, r, a) {
2583
+ if (r === void 0 && (r = !1), !Je(e) || !Je(n))
2584
+ throw new Error("Invalid date passed in to RRule.between");
2585
+ var i = {
2586
+ before: n,
2587
+ after: e,
2588
+ inc: r
2589
+ };
2590
+ if (a)
2591
+ return this._iter(new _n("between", i, a));
2592
+ var s = this._cacheGet("between", i);
2593
+ return s === !1 && (s = this._iter(new Fe("between", i)), this._cacheAdd("between", s, i)), s;
2594
+ }, t.prototype.before = function(e, n) {
2595
+ if (n === void 0 && (n = !1), !Je(e))
2596
+ throw new Error("Invalid date passed in to RRule.before");
2597
+ var r = { dt: e, inc: n }, a = this._cacheGet("before", r);
2598
+ return a === !1 && (a = this._iter(new Fe("before", r)), this._cacheAdd("before", a, r)), a;
2599
+ }, t.prototype.after = function(e, n) {
2600
+ if (n === void 0 && (n = !1), !Je(e))
2601
+ throw new Error("Invalid date passed in to RRule.after");
2602
+ var r = { dt: e, inc: n }, a = this._cacheGet("after", r);
2603
+ return a === !1 && (a = this._iter(new Fe("after", r)), this._cacheAdd("after", a, r)), a;
2604
+ }, t.prototype.count = function() {
2605
+ return this.all().length;
2606
+ }, t.prototype.toString = function() {
2607
+ return Pt(this.origOptions);
2608
+ }, t.prototype.toText = function(e, n, r) {
2609
+ return is(this, e, n, r);
2610
+ }, t.prototype.isFullyConvertibleToText = function() {
2611
+ return os(this);
2612
+ }, t.prototype.clone = function() {
2613
+ return new t(this.origOptions);
2614
+ }, t.FREQUENCIES = [
2615
+ "YEARLY",
2616
+ "MONTHLY",
2617
+ "WEEKLY",
2618
+ "DAILY",
2619
+ "HOURLY",
2620
+ "MINUTELY",
2621
+ "SECONDLY"
2622
+ ], t.YEARLY = U.YEARLY, t.MONTHLY = U.MONTHLY, t.WEEKLY = U.WEEKLY, t.DAILY = U.DAILY, t.HOURLY = U.HOURLY, t.MINUTELY = U.MINUTELY, t.SECONDLY = U.SECONDLY, t.MO = me.MO, t.TU = me.TU, t.WE = me.WE, t.TH = me.TH, t.FR = me.FR, t.SA = me.SA, t.SU = me.SU, t.parseString = Ut, t.optionsToString = Pt, t;
2623
+ }()
2624
+ );
2625
+ function Ys(t, e, n, r, a, i) {
2626
+ var s = {}, l = t.accept;
2627
+ function o(h, y) {
2628
+ n.forEach(function(p) {
2629
+ p.between(h, y, !0).forEach(function(v) {
2630
+ s[Number(v)] = !0;
2631
+ });
2632
+ });
2633
+ }
2634
+ a.forEach(function(h) {
2635
+ var y = new ft(h, i).rezonedDate();
2636
+ s[Number(y)] = !0;
2637
+ }), t.accept = function(h) {
2638
+ var y = Number(h);
2639
+ return isNaN(y) ? l.call(this, h) : !s[y] && (o(new Date(y - 1), new Date(y + 1)), !s[y]) ? (s[y] = !0, l.call(this, h)) : !0;
2640
+ }, t.method === "between" && (o(t.args.after, t.args.before), t.accept = function(h) {
2641
+ var y = Number(h);
2642
+ return s[y] ? !0 : (s[y] = !0, l.call(this, h));
2643
+ });
2644
+ for (var u = 0; u < r.length; u++) {
2645
+ var d = new ft(r[u], i).rezonedDate();
2646
+ if (!t.accept(new Date(d.getTime())))
2647
+ break;
2648
+ }
2649
+ e.forEach(function(h) {
2650
+ kr(t, h.options);
2651
+ });
2652
+ var f = t._result;
2653
+ switch (Ve(f), t.method) {
2654
+ case "all":
2655
+ case "between":
2656
+ return f;
2657
+ case "before":
2658
+ return f.length && f[f.length - 1] || null;
2659
+ case "after":
2660
+ default:
2661
+ return f.length && f[0] || null;
2662
+ }
2663
+ }
2664
+ var An = {
2665
+ dtstart: null,
2666
+ cache: !1,
2667
+ unfold: !1,
2668
+ forceset: !1,
2669
+ compatible: !1,
2670
+ tzid: null
2671
+ };
2672
+ function Hs(t, e) {
2673
+ var n = [], r = [], a = [], i = [], s = dt(t), l = s.dtstart, o = s.tzid, u = Bs(t, e.unfold);
2674
+ return u.forEach(function(d) {
2675
+ var f;
2676
+ if (d) {
2677
+ var h = zs(d), y = h.name, p = h.parms, v = h.value;
2678
+ switch (y.toUpperCase()) {
2679
+ case "RRULE":
2680
+ if (p.length)
2681
+ throw new Error("unsupported RRULE parm: ".concat(p.join(",")));
2682
+ n.push(Ut(d));
2683
+ break;
2684
+ case "RDATE":
2685
+ var b = (f = /RDATE(?:;TZID=([^:=]+))?/i.exec(d)) !== null && f !== void 0 ? f : [], T = b[1];
2686
+ T && !o && (o = T), r = r.concat(Un(v, p));
2687
+ break;
2688
+ case "EXRULE":
2689
+ if (p.length)
2690
+ throw new Error("unsupported EXRULE parm: ".concat(p.join(",")));
2691
+ a.push(Ut(v));
2692
+ break;
2693
+ case "EXDATE":
2694
+ i = i.concat(Un(v, p));
2695
+ break;
2696
+ case "DTSTART":
2697
+ break;
2698
+ default:
2699
+ throw new Error("unsupported property: " + y);
2700
+ }
2701
+ }
2702
+ }), {
2703
+ dtstart: l,
2704
+ tzid: o,
2705
+ rrulevals: n,
2706
+ rdatevals: r,
2707
+ exrulevals: a,
2708
+ exdatevals: i
2709
+ };
2710
+ }
2711
+ function js(t, e) {
2712
+ var n = Hs(t, e), r = n.rrulevals, a = n.rdatevals, i = n.exrulevals, s = n.exdatevals, l = n.dtstart, o = n.tzid, u = e.cache === !1;
2713
+ if (e.compatible && (e.forceset = !0, e.unfold = !0), e.forceset || r.length > 1 || a.length || i.length || s.length) {
2714
+ var d = new Ks(u);
2715
+ return d.dtstart(l), d.tzid(o || void 0), r.forEach(function(h) {
2716
+ d.rrule(new x(Ct(h, l, o), u));
2717
+ }), a.forEach(function(h) {
2718
+ d.rdate(h);
2719
+ }), i.forEach(function(h) {
2720
+ d.exrule(new x(Ct(h, l, o), u));
2721
+ }), s.forEach(function(h) {
2722
+ d.exdate(h);
2723
+ }), e.compatible && e.dtstart && d.rdate(l), d;
2724
+ }
2725
+ var f = r[0] || {};
2726
+ return new x(Ct(f, f.dtstart || e.dtstart || l, f.tzid || e.tzid || o), u);
2727
+ }
2728
+ function Nn(t, e) {
2729
+ return e === void 0 && (e = {}), js(t, Fs(e));
2730
+ }
2731
+ function Ct(t, e, n) {
2732
+ return ue(ue({}, t), { dtstart: e, tzid: n });
2733
+ }
2734
+ function Fs(t) {
2735
+ var e = [], n = Object.keys(t), r = Object.keys(An);
2736
+ if (n.forEach(function(a) {
2737
+ F(r, a) || e.push(a);
2738
+ }), e.length)
2739
+ throw new Error("Invalid options: " + e.join(", "));
2740
+ return ue(ue({}, An), t);
2741
+ }
2742
+ function Ws(t) {
2743
+ if (t.indexOf(":") === -1)
2744
+ return {
2745
+ name: "RRULE",
2746
+ value: t
2747
+ };
2748
+ var e = Ja(t, ":", 1), n = e[0], r = e[1];
2749
+ return {
2750
+ name: n,
2751
+ value: r
2752
+ };
2753
+ }
2754
+ function zs(t) {
2755
+ var e = Ws(t), n = e.name, r = e.value, a = n.split(";");
2756
+ if (!a)
2757
+ throw new Error("empty property name");
2758
+ return {
2759
+ name: a[0].toUpperCase(),
2760
+ parms: a.slice(1),
2761
+ value: r
2762
+ };
2763
+ }
2764
+ function Bs(t, e) {
2765
+ if (e === void 0 && (e = !1), t = t && t.trim(), !t)
2766
+ throw new Error("Invalid empty string");
2767
+ if (!e)
2768
+ return t.split(/\s/);
2769
+ for (var n = t.split(`
2770
+ `), r = 0; r < n.length; ) {
2771
+ var a = n[r] = n[r].replace(/\s+$/g, "");
2772
+ a ? r > 0 && a[0] === " " ? (n[r - 1] += a.slice(1), n.splice(r, 1)) : r += 1 : n.splice(r, 1);
2773
+ }
2774
+ return n;
2775
+ }
2776
+ function qs(t) {
2777
+ t.forEach(function(e) {
2778
+ if (!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))
2779
+ throw new Error("unsupported RDATE/EXDATE parm: " + e);
2780
+ });
2781
+ }
2782
+ function Un(t, e) {
2783
+ return qs(e), t.split(",").map(function(n) {
2784
+ return qt(n);
2785
+ });
2786
+ }
2787
+ function Pn(t) {
2788
+ var e = this;
2789
+ return function(n) {
2790
+ if (n !== void 0 && (e["_".concat(t)] = n), e["_".concat(t)] !== void 0)
2791
+ return e["_".concat(t)];
2792
+ for (var r = 0; r < e._rrule.length; r++) {
2793
+ var a = e._rrule[r].origOptions[t];
2794
+ if (a)
2795
+ return a;
2796
+ }
2797
+ };
2798
+ }
2799
+ var Ks = (
2800
+ /** @class */
2801
+ function(t) {
2802
+ Kt(e, t);
2803
+ function e(n) {
2804
+ n === void 0 && (n = !1);
2805
+ var r = t.call(this, {}, n) || this;
2806
+ return r.dtstart = Pn.apply(r, ["dtstart"]), r.tzid = Pn.apply(r, ["tzid"]), r._rrule = [], r._rdate = [], r._exrule = [], r._exdate = [], r;
2807
+ }
2808
+ return e.prototype._iter = function(n) {
2809
+ return Ys(n, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
2810
+ }, e.prototype.rrule = function(n) {
2811
+ Yn(n, this._rrule);
2812
+ }, e.prototype.exrule = function(n) {
2813
+ Yn(n, this._exrule);
2814
+ }, e.prototype.rdate = function(n) {
2815
+ Hn(n, this._rdate);
2816
+ }, e.prototype.exdate = function(n) {
2817
+ Hn(n, this._exdate);
2818
+ }, e.prototype.rrules = function() {
2819
+ return this._rrule.map(function(n) {
2820
+ return Nn(n.toString());
2821
+ });
2822
+ }, e.prototype.exrules = function() {
2823
+ return this._exrule.map(function(n) {
2824
+ return Nn(n.toString());
2825
+ });
2826
+ }, e.prototype.rdates = function() {
2827
+ return this._rdate.map(function(n) {
2828
+ return new Date(n.getTime());
2829
+ });
2830
+ }, e.prototype.exdates = function() {
2831
+ return this._exdate.map(function(n) {
2832
+ return new Date(n.getTime());
2833
+ });
2834
+ }, e.prototype.valueOf = function() {
2835
+ var n = [];
2836
+ return !this._rrule.length && this._dtstart && (n = n.concat(Pt({ dtstart: this._dtstart }))), this._rrule.forEach(function(r) {
2837
+ n = n.concat(r.toString().split(`
2838
+ `));
2839
+ }), this._exrule.forEach(function(r) {
2840
+ n = n.concat(r.toString().split(`
2841
+ `).map(function(a) {
2842
+ return a.replace(/^RRULE:/, "EXRULE:");
2843
+ }).filter(function(a) {
2844
+ return !/^DTSTART/.test(a);
2845
+ }));
2846
+ }), this._rdate.length && n.push(jn("RDATE", this._rdate, this.tzid())), this._exdate.length && n.push(jn("EXDATE", this._exdate, this.tzid())), n;
2847
+ }, e.prototype.toString = function() {
2848
+ return this.valueOf().join(`
2849
+ `);
2850
+ }, e.prototype.clone = function() {
2851
+ var n = new e(!!this._cache);
2852
+ return this._rrule.forEach(function(r) {
2853
+ return n.rrule(r.clone());
2854
+ }), this._exrule.forEach(function(r) {
2855
+ return n.exrule(r.clone());
2856
+ }), this._rdate.forEach(function(r) {
2857
+ return n.rdate(new Date(r.getTime()));
2858
+ }), this._exdate.forEach(function(r) {
2859
+ return n.exdate(new Date(r.getTime()));
2860
+ }), n;
2861
+ }, e;
2862
+ }(x)
2863
+ );
2864
+ function Yn(t, e) {
2865
+ if (!(t instanceof x))
2866
+ throw new TypeError(String(t) + " is not RRule instance");
2867
+ F(e.map(String), String(t)) || e.push(t);
2868
+ }
2869
+ function Hn(t, e) {
2870
+ if (!(t instanceof Date))
2871
+ throw new TypeError(String(t) + " is not Date instance");
2872
+ F(e.map(Number), Number(t)) || (e.push(t), Ve(e));
2873
+ }
2874
+ function jn(t, e, n) {
2875
+ var r = !n || n.toUpperCase() === "UTC", a = r ? "".concat(t, ":") : "".concat(t, ";TZID=").concat(n, ":"), i = e.map(function(s) {
2876
+ return Bt(s.valueOf(), r);
2877
+ }).join(",");
2878
+ return "".concat(a).concat(i);
2879
+ }
2880
+ function vi(...t) {
2881
+ window && window.localStorage && window.localStorage.getItem("debug") && console.debug(...t);
2882
+ }
2883
+ function gi(...t) {
2884
+ console.error(...t);
2885
+ }
2886
+ function bi() {
2887
+ return Math.random().toString(36).substr(2, 9);
2888
+ }
2889
+ function $i(t) {
2890
+ return t.toString().replace(/^on/, "");
2891
+ }
2892
+ function wi(t) {
2893
+ const e = new Date(t * 1e3), n = /* @__PURE__ */ new Date(), r = new Date(n.getFullYear(), n.getMonth(), n.getDate());
2894
+ return e >= r ? new Intl.DateTimeFormat("default", {
2895
+ hour: "numeric",
2896
+ minute: "numeric",
2897
+ hour12: !0
2898
+ }).format(e) : new Intl.DateTimeFormat("default", {
2899
+ month: "short",
2900
+ day: "numeric"
2901
+ }).format(e);
2902
+ }
2903
+ function Ei(t) {
2904
+ return t.name ? `${t.name} - ${t.email}` : t.email;
2905
+ }
2906
+ function ki(t, e = "", n = 1, r = 3) {
2907
+ const a = t.find((o) => {
2908
+ var u;
2909
+ return ((u = o.email) == null ? void 0 : u.toLowerCase()) === e.toLowerCase();
2910
+ }), i = t.filter((o) => {
2911
+ var u;
2912
+ return ((u = o.email) == null ? void 0 : u.toLowerCase()) !== e.toLowerCase();
2913
+ }), s = i.length, l = i.slice(0, r).map((o) => o.name || o.email).join(", ");
2914
+ return s === 0 ? a ? "me" : "" : s === 1 ? a && n > 1 ? `me, ${l}` : l : s === 2 ? a ? `me, ${l}` : `${l}` : a ? `me, ${l}, +${s - r}` : `${l}, +${s - r}`;
2915
+ }
2916
+ const Fn = [
2917
+ { amount: 60, name: "seconds" },
2918
+ { amount: 60, name: "minutes" },
2919
+ { amount: 24, name: "hours" },
2920
+ { amount: 7, name: "days" },
2921
+ { amount: 4.34524, name: "weeks" },
2922
+ { amount: 12, name: "months" },
2923
+ { amount: Number.POSITIVE_INFINITY, name: "years" }
2924
+ ], Ti = (t) => {
2925
+ const e = new Intl.RelativeTimeFormat(void 0, {
2926
+ numeric: "auto"
2927
+ }), n = /* @__PURE__ */ new Date();
2928
+ let r = (t.getTime() - n.getTime()) / 1e3;
2929
+ for (let a = 0; a <= Fn.length; a++) {
2930
+ const i = Fn[a];
2931
+ if (Math.abs(r) < i.amount)
2932
+ return e.format(Math.round(r), i.name);
2933
+ r /= i.amount;
2934
+ }
2935
+ };
2936
+ function Si(t) {
2937
+ return new Date(t.getFullYear(), t.getMonth() + 1, 0);
2938
+ }
2939
+ function Ci(t) {
2940
+ return new Date(t.getFullYear(), t.getMonth(), 1);
2941
+ }
2942
+ function xi(t, e) {
2943
+ return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
2944
+ }
2945
+ function Oi(t, e) {
2946
+ return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
2947
+ }
2948
+ function _i(t) {
2949
+ return t.replace(/\w\S*/g, (e) => e.charAt(0).toUpperCase() + e.substr(1).toLowerCase());
2950
+ }
2951
+ function Di(t) {
2952
+ return t.replace("CATEGORY_", "").replace(/_/g, " ");
2953
+ }
2954
+ function Gs(t) {
2955
+ return /<[^>]*>/g.test(t) ? "html" : "plain";
2956
+ }
2957
+ function Mi(t) {
2958
+ var a, i;
2959
+ const e = t.headers, n = e && ((a = e.find((s) => s.name === "Content-Type")) == null ? void 0 : a.value) || "", r = e && ((i = e.find((s) => s.name === "Content-Disposition")) == null ? void 0 : i.value) || "";
2960
+ return !!(n.includes("text/html") || r.includes("inline") || t.body && Gs(t.body) === "html");
2961
+ }
2962
+ function Ri(t) {
2963
+ let r = t.split(`
2964
+ `).filter((i) => i.trim().length > 0).map((i) => `<p>${i}</p>`).join("");
2965
+ const a = /((?:https?|ftp):\/\/[^\s]+)/g;
2966
+ return r = r.replace(a, '<a href="$1">$1</a>'), r;
2967
+ }
2968
+ function Li(t) {
2969
+ return new DOMParser().parseFromString(t, "text/html").body.textContent || "";
2970
+ }
2971
+ const Ii = (t) => t === "" ? !0 : /^(0[0-9]|1[0-2]|^[0-9])(:[0-5][0-9][ap]m?|:[0-5][0-9]|:[0-5]|:)?$/i.test(t), Ai = (t) => /^(0[1-9]|1[0-2]):([0-5][0-9])(am|pm)$/i.test(t);
2972
+ function Ni(t = null) {
2973
+ let e = yr();
2974
+ t && (e = t);
2975
+ const n = e.minute() % 15;
2976
+ let r;
2977
+ return n !== 0 ? r = e.add(15 - n, "minute") : r = e, r;
2978
+ }
2979
+ function Ui(t) {
2980
+ const e = yr();
2981
+ let n = "";
2982
+ const [r, a] = t.split(":");
2983
+ r.length === 1 ? n += "0" + r : r.length === 2 && (n += r), n += ":", a === void 0 || a == "" ? n += "00" : a.length === 1 ? n += a + "0" : n += a;
2984
+ const i = n.slice(-1);
2985
+ return i === "a" && (n += "m"), i === "p" && (n += "m"), n.slice(-1) !== "m" && (n.split(":")[0] == "00" ? n += "am" : n += e.format("a")), n;
2986
+ }
2987
+ function Pi(t) {
2988
+ const [e, n] = t.split(":").map((l) => parseInt(l, 10));
2989
+ let r = e;
2990
+ const a = r >= 12 ? "pm" : "am";
2991
+ r = r % 12, r = r || 12;
2992
+ const i = r.toString().padStart(2, "0"), s = n.toString().padStart(2, "0");
2993
+ return `${i}:${s}${a}`;
2994
+ }
2995
+ function Yi(t) {
2996
+ const [e, n] = t.split(/(am|pm)/i), [r, a] = e.split(":").map((s) => parseInt(s, 10));
2997
+ let i = r;
2998
+ return n.toLowerCase() === "pm" && i < 12 ? i += 12 : n.toLowerCase() === "am" && i === 12 && (i = 0), `${i.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
2999
+ }
3000
+ function Hi(t) {
3001
+ const [e, n] = t.match(/(\d+):(\d+)(am|pm)/).slice(1);
3002
+ let r = parseInt(e, 10) * 60 + parseInt(n, 10);
3003
+ return t.includes("pm") && parseInt(e, 10) < 12 && (r += 12 * 60), t.includes("am") && parseInt(e, 10) === 12 && (r -= 12 * 60), r;
3004
+ }
3005
+ function ji(t) {
3006
+ const e = Math.floor(t / 60), n = t % 60;
3007
+ return `${e}:${n < 10 ? "0" : ""}${n}`;
3008
+ }
3009
+ function Fi() {
3010
+ const t = navigator.userAgent, e = /Chrome/.test(t) && /Google Inc/.test(navigator.vendor), n = /Safari/.test(t) && /Apple Computer/.test(navigator.vendor), r = /Firefox/.test(t), a = /Trident/.test(t), i = /Edge/.test(t);
3011
+ return e && /Edg/.test(t) ? "Edge (Chromium)" : e ? "Chrome" : n ? "Safari" : r ? "Firefox" : a ? "Internet Explorer" : i ? "Edge (Legacy)" : "Unknown";
3012
+ }
3013
+ function Wn(t, e = null) {
3014
+ return e ? [null, e] : [t, null];
3015
+ }
3016
+ function Wi(t, e) {
3017
+ const n = {
3018
+ "config.id": e == null ? void 0 : e.id,
3019
+ id: e == null ? void 0 : e.id
3020
+ };
3021
+ return Object.keys(n).forEach((r) => {
3022
+ t = t.replace(`{${r}}`, n[r]);
3023
+ }), t;
3024
+ }
3025
+ class zi {
3026
+ constructor(e) {
3027
+ this.session = e;
3028
+ }
3029
+ setActiveGrantId(e) {
3030
+ this.activeGrantId = e;
3031
+ }
3032
+ async request({ method: e, path: n, body: r, headers: a }) {
3033
+ try {
3034
+ const i = await this.session.fetch(`grants/me/${n}`, {
3035
+ method: e,
3036
+ headers: a ? new Headers(a) : void 0,
3037
+ body: r,
3038
+ ...this.session.isMultiAccount() && this.activeGrantId ? { grant_id: this.activeGrantId } : {}
3039
+ });
3040
+ return Wn(i);
3041
+ } catch (i) {
3042
+ return Wn(null, {
3043
+ message: String(i)
3044
+ });
3045
+ }
3046
+ }
3047
+ async currentUser() {
3048
+ const e = this.session.isMultiAccount() ? this.activeGrantId : void 0, n = await this.session.getProfile(e);
3049
+ return n ? {
3050
+ id: n.sub,
3051
+ email: n.email,
3052
+ name: n.name
3053
+ } : null;
3054
+ }
3055
+ async authenticationUrl(e) {
3056
+ return this.session.auth(e || {});
3057
+ }
3058
+ }
3059
+ Ka({});
3060
+ function Bi() {
3061
+ var t = [];
3062
+ if (typeof window < "u") {
3063
+ var e = window;
3064
+ (!e.customElements || e.Element && (!e.Element.prototype.closest || !e.Element.prototype.matches || !e.Element.prototype.remove || !e.Element.prototype.getRootNode)) && t.push(import(
3065
+ /* webpackChunkName: "polyfills-dom" */
3066
+ "./dom-86e17616.js"
3067
+ ));
3068
+ var n = function() {
3069
+ try {
3070
+ var r = new URL("b", "http://a");
3071
+ return r.pathname = "c%20d", r.href === "http://a/c%20d" && r.searchParams;
3072
+ } catch {
3073
+ return !1;
3074
+ }
3075
+ };
3076
+ (typeof Object.assign != "function" || !Object.entries || !Array.prototype.find || !Array.prototype.includes || !String.prototype.startsWith || !String.prototype.endsWith || e.NodeList && !e.NodeList.prototype.forEach || !e.fetch || !n() || typeof WeakMap > "u") && t.push(import(
3077
+ /* webpackChunkName: "polyfills-core-js" */
3078
+ "./core-js-a9d3b6e1.js"
3079
+ ));
3080
+ }
3081
+ return Promise.all(t);
3082
+ }
3083
+ async function Zs() {
3084
+ await import("./elements-dc5b338e-e87f79b6.js");
3085
+ }
3086
+ const Js = Zs, Xs = (t, e) => {
3087
+ if (!(typeof window > "u"))
3088
+ return Js(), Da(JSON.parse('[["nylas-scheduler-editor",[[1,"nylas-scheduler-editor",{"defaultRequiresSessionAuth":[1028,"default-requires-session-auth"],"configurationId":[1025,"configuration-id"],"nylasApiRequest":[1040],"nylasSessionsConfig":[16],"eventOverrides":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"defaultSchedulerConfigStoreState":[16],"mode":[1],"automaticComponentRegistration":[32],"store":[64],"schedulerConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]],{"defaultRequiresSessionAuth":["defaultRequiresSessionAuthChanged"],"configurationId":["configurationIdChanged"]}]]],["nylas-scheduling",[[1,"nylas-scheduling",{"mode":[1],"defaultSchedulerState":[16],"sessionId":[1,"session-id"],"schedulerApiUrl":[1,"scheduler-api-url"],"bookingInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"cancelBookingId":[1,"cancel-booking-id"],"configurationId":[1,"configuration-id"],"nylasBranding":[4,"nylas-branding"],"eventOverrides":[16],"isLoading":[4,"is-loading"],"themeConfig":[16],"showNotification":[4,"show-notification"],"automaticComponentRegistration":[32],"selectedDateLabel":[32],"getNylasSchedulerStore":[64],"getNylasSchedulerConnector":[64],"getRef":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"monthChanged","monthChangedHandler"],[0,"detailsConfirmed","bookButtonClickedHandler"],[0,"dateSelected","dateSelectedHandler"],[0,"cancelBookedEventError","cancelBookedEventErrorHandler"],[0,"rescheduleBookedEventError","rescheduleBookedEventErrorHandler"]],{"bookingInfo":["bookingInfoChanged"]}]]],["nylas-view-thread",[[1,"nylas-view-thread",{"draft":[16],"thread":[16],"messages":[16],"attachments":[16],"state":[32],"internalMessages":[32],"showAllEmails":[32],"showComposer":[32]},null,{"thread":["threadChanged"],"messages":["updateInternalMessages"]}]]],["nylas-list-folders",[[1,"nylas-list-folders",{"folders":[16],"selectedFolder":[1,"selected-folder"],"defaultFolders":[32],"otherFolders":[32]},null,{"folders":["watchFolders"]}]]],["nylas-additional-participants",[[65,"nylas-additional-participants",{"name":[1],"eventParticipants":[16],"participants":[32],"participantsValid":[32]},null,{"name":["elementNameChangedHandler"]}]]],["nylas-mailbox-pagination",[[1,"nylas-mailbox-pagination",{"state":[1],"hasNextPage":[4,"has-next-page"],"hasPreviousPage":[4,"has-previous-page"],"scrollTarget":[1,"scroll-target"],"mobileOnlyInfiniteScroll":[4,"mobile-only-infinite-scroll"],"mobileViewPortWidth":[2,"mobile-view-port-width"],"nextPage":[64],"previousPage":[64]},[[9,"scroll","handlePageScroll"]]]]],["nylas-threads-refresh",[[1,"nylas-threads-refresh",{"start":[32],"state":[32],"pulling":[32],"updateState":[64]}]]],["document-refresh-icon",[[2,"document-refresh-icon",{"width":[1],"height":[1]}]]],["nylas-if-state",[[1,"nylas-if-state",{"state":[1],"isStateSet":[4,"is-state-set"],"isBoolean":[4,"is-boolean"],"getStore":[16],"transition":[1],"show":[32],"classes":[32]},null,{"getStore":["onGetStoreChange"]}]]],["nylas-list-threads",[[1,"nylas-list-threads",{"threads":[16],"isAuthenticated":[4,"is-authenticated"],"tokenInfo":[16],"state":[1],"showCheckbox":[4,"show-checkbox"]}]]],["nylas-login",[[1,"nylas-login",{"isAuthenticated":[4,"is-authenticated"],"nylasConnector":[16],"scopes":[16],"loginMethod":[1,"login-method"],"companyName":[1,"company-name"],"logoUrl":[1,"logo-url"],"logoWidth":[1,"logo-width"],"providers":[1],"buttonText":[1,"button-text"],"email":[32]}]]],["nylas-mailbox",[[1,"nylas-mailbox",{"automaticComponentRegistration":[4,"automatic-component-registration"],"eventOverrides":[16],"authConfig":[16],"defaultAuthStoreState":[16],"defaultMailboxStoreState":[16],"getMailboxStore":[64],"getAuthStore":[64],"getNylasAuth":[64],"getNylasMailboxConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-mailbox-toolbar-button",[[1,"nylas-mailbox-toolbar-button",{"method":[1],"dataState":[1,"data-state"],"iconOnly":[4,"icon-only"],"mailboxConnector":[16]}]]],["nylas-provider",[[1,"nylas-provider",{"authConfig":[16],"eventOverrides":[16],"automaticComponentRegistration":[4,"automatic-component-registration"],"getNylasAuth":[64],"getNylasConnector":[64],"getMailboxStore":[64],"getAuthStore":[64],"getNylasSchedulerStore":[64],"getNylasSchedulerConfigStore":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-threads-search",[[1,"nylas-threads-search",{"query":[1],"internalQuery":[32]},null,{"query":["onQueryChange"]}]]],["people-icon",[[2,"people-icon",{"width":[1],"height":[1]}]]],["arrow-icon",[[2,"arrow-icon",{"width":[1],"height":[1]}]]],["refresh-icon",[[2,"refresh-icon",{"width":[1],"height":[1]}]]],["translate-icon",[[2,"translate-icon",{"width":[1],"height":[1]}]]],["warning-icon",[[2,"warning-icon",{"width":[1],"height":[1]}]]],["calendar-cancel-icon",[[2,"calendar-cancel-icon",{"width":[1],"height":[1]}]]],["time-period-selector",[[2,"time-period-selector",{"timePeriods":[16],"defaultSelectedPeriod":[1,"default-selected-period"],"defaultSelectedNumber":[2,"default-selected-number"],"selectedPeriod":[32],"selectedNumber":[32],"numberOptions":[32],"timePeriodOptions":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"defaultSelectedPeriod":["defaultSelectedPeriodChangedHandler"],"defaultSelectedNumber":["defaultSelectedNumberChangedHandler"],"timePeriods":["timePeriodsChangedHandler"]}]]],["calendar-icon",[[2,"calendar-icon",{"width":[1],"height":[1]}]]],["nylas-form-card",[[65,"nylas-form-card"]]],["loading-icon",[[1,"loading-icon",{"width":[1],"height":[1]}]]],["globe-icon",[[2,"globe-icon",{"width":[1],"height":[1]}]]],["close-icon",[[2,"close-icon",{"width":[1],"height":[1]}]]],["chevron-icon_3",[[1,"select-dropdown",{"name":[1],"options":[16],"defaultSelectedOption":[16],"withSearch":[4,"with-search"],"pluralizedLabel":[1,"pluralized-label"],"selectedOption":[32],"isOpen":[32],"searchValue":[32],"filteredOptions":[32],"ariaActivedescendant":[32]},[[6,"click","handleOutsideClick"]],{"options":["optionsChangedHandler"],"defaultSelectedOption":["defaultSelectedOptionChangedHandler"]}],[2,"search-icon",{"width":[1],"height":[1]}],[2,"chevron-icon",{"width":[1],"height":[1]}]]],["add-circle-icon_22",[[65,"nylas-availability-picker",{"openHours":[16],"name":[1],"defaultTimezone":[1,"default-timezone"],"schedule":[32],"timezone":[32],"overlapDays":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"schedule":["scheduleChanged"]}],[65,"nylas-location-component",{"eventLocation":[1,"event-location"],"name":[1],"location":[32],"selectedLocationOption":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"eventLocation":["eventLocationChangedHandler"]}],[65,"nylas-limit-future-bookings",{"availableDaysInFuture":[2,"available-days-in-future"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-min-cancellation-notice",{"minCancellationNotice":[2,"min-cancellation-notice"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-booking-calendar-picker",{"calendars":[16],"name":[1],"defaultBookingCalendar":[1,"default-booking-calendar"],"selectedCalendar":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-calendar-picker",{"calendars":[16],"organizerEmail":[1,"organizer-email"],"name":[1],"defaultSelectedCalendars":[16],"selectedCalendars":[32]},[[0,"selectedOptionsChanged","selectedOptionsChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-custom-booking-flow",{"name":[1],"bookingType":[1,"booking-type"],"selectedBookingType":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-event-duration",{"name":[1],"eventDurationMinutes":[2,"event-duration-minutes"],"duration":[32],"durationMinutes":[32],"durationIncrement":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"durationMinutes":["durationMinutesChangedHandler"]}],[65,"nylas-buffer-time",{"name":[1],"buffer":[16],"selectedBeforeBufferTime":[32],"selectedAfterBufferTime":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-event-description",{"eventDescription":[1,"event-description"],"name":[1],"description":[32]},null,{"name":["elementNameChangedHandler"]}],[65,"nylas-event-title",{"eventTitle":[1,"event-title"],"name":[1],"showTokens":[32],"availableTokens":[32],"filteredTokens":[32],"ariaActivedescendant":[32],"currentWord":[32]},null,{"name":["elementNameChangedHandler"],"ariaActivedescendant":["ariaActivedescendantChangedHandler"]}],[65,"nylas-event-info"],[65,"nylas-event-limits"],[2,"calendar-info-icon",{"width":[1],"height":[1]}],[2,"calendar-patterns-icon",{"width":[1],"height":[1]}],[2,"flow-icon",{"width":[1],"height":[1]}],[1,"multi-select-dropdown",{"name":[1],"label":[1],"options":[16],"availableOptions":[32],"isOpen":[32],"ariaActivedescendant":[32],"shouldFocusFirstOption":[32]},[[6,"click","handleOutsideClick"]]],[2,"add-circle-icon",{"width":[1],"height":[1]}],[6,"button-component",{"variant":[1],"disabled":[4],"type":[1],"clickHandler":[16],"mouseOverHandler":[16],"mouseOutHandler":[16],"focusHandler":[16],"blurHandler":[16]}],[2,"location-icon",{"width":[1],"height":[1]}],[2,"location-off-icon",{"width":[1],"height":[1]}],[1,"nylas-time-window-picker",{"time":[1],"minimumStartTime":[1,"minimum-start-time"],"placeholder":[1],"setTime":[16],"name":[1],"hasError":[4,"has-error"],"setFormError":[16],"err":[32],"showTimes":[32],"ariaActivedescendant":[32],"times":[32],"shouldAutoScroll":[32]},[[4,"click","handleOutsideClick"]],{"minimumStartTime":["minimumStartTimeChangedHandler"]}]]],["google-logo-icon_4",[[2,"nylas-editor-tabs",{"calendars":[16],"config":[16],"currentUser":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"action":[32],"activeTab":[32],"isLoading":[32],"hasUnsavedChanges":[32],"changesSaved":[32],"formState":[32]},[[0,"valueChanged","handleValueChanged"]],{"config":["configChangedHandler"]}],[1,"nylas-list-configurations",{"configurations":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"state":[32],"getState":[64],"setState":[64]}],[2,"google-logo-icon",{"width":[1],"height":[1]}],[2,"microsoft-logo-icon",{"width":[1],"height":[1]}]]],["calendar-check-icon_2",[[2,"calendar-check-icon",{"width":[1],"height":[1]}],[2,"checkmark-circle-icon",{"width":[1],"height":[1]}]]],["play-icon_2",[[2,"play-icon",{"width":[1],"height":[1]}],[2,"stop-icon",{"width":[1],"height":[1]}]]],["bold-icon_3",[[2,"bold-icon",{"width":[1],"height":[1]}],[2,"italic-icon",{"width":[1],"height":[1]}],[2,"underline-icon",{"width":[1],"height":[1]}]]],["forward-icon_6",[[1,"nylas-composer",{"message":[16],"viewEmailElement":[16]},null,{"message":["watchBody"]}],[1,"nylas-summarize-message-button",{"message":[16],"state":[32],"updateState":[64],"playAudio":[64]}],[2,"forward-icon",{"width":[1],"height":[1]}],[1,"nylas-view-email",{"message":[16],"parent":[16],"attachments":[16],"detectDarkMode":[4,"detect-dark-mode"],"state":[32],"sanitizedBody":[32],"styles":[32],"viewEmailElement":[32],"hoistedFontURLs":[32]},[[9,"resize","handleScroll"]],{"message":["messageChanged"],"viewEmailElement":["viewEmailElementChanged"]}],[2,"reply-all-icon",{"width":[1],"height":[1]}],[2,"reply-icon",{"width":[1],"height":[1]}]]],["archive-icon_7",[[2,"archive-icon",{"width":[1],"height":[1]}],[2,"folder-icon",{"width":[1],"height":[1]}],[2,"inbox-icon",{"width":[1],"height":[1]}],[2,"sent-icon",{"width":[1],"height":[1]}],[2,"spam-icon",{"width":[1],"height":[1]}],[2,"star-icon",{"width":[1],"height":[1]}],[2,"trash-icon",{"width":[1],"height":[1]}]]],["nylas-booked-event-card_10",[[1,"nylas-locale-switch",{"selectedTimezone":[1025,"selected-timezone"],"selectedLanguage":[1025,"selected-language"]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]]],[1,"nylas-booked-event-card",{"eventInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"bookingInfo":[8,"booking-info"],"selectedTimezone":[1,"selected-timezone"],"selectedTimeslot":[16]}],[1,"nylas-notification",{"ttl":[8],"allowedCategories":[16],"notifications":[32]},[[16,"nylasSchedulerError","onError"],[16,"nylasSchedulerWarning","onWarning"],[16,"nylasSchedulerInfo","onInfo"],[16,"nylasSchedulerSuccess","onSuccess"]]],[1,"nylas-selected-event-card",{"selectedDate":[16],"selectedTimeslot":[16],"selectedTimezone":[1,"selected-timezone"],"startTime":[32],"endTime":[32]},null,{"selectedTimeslot":["handleSelectedTimeslotChange"]}],[1,"nylas-booking-form",{"isLoading":[4,"is-loading"],"bookingInfo":[8,"booking-info"],"eventInfo":[16],"name":[32],"email":[32],"guestEmails":[32],"guestEmailErrors":[32],"isNameValid":[32],"isEmailValid":[32],"validationError":[32]},null,{"bookingInfo":["bookingInfoChangedHandler"]}],[1,"nylas-cancel-booking-form",{"cancelBookingId":[1,"cancel-booking-id"],"cancellationReason":[32],"cancellationError":[32]}],[1,"nylas-cancelled-event-card",{"cancelledEventInfo":[16]}],[1,"nylas-date-picker",{"selectableDates":[16],"selectedDate":[16],"isLoading":[4,"is-loading"],"month":[32],"dates":[32]}],[2,"nylas-logo",{"width":[1],"height":[1]}],[1,"nylas-timeslot-picker",{"selectedDate":[16],"availability":[16],"selectedTimeslot":[16],"isLoading":[4,"loading-state"],"selectedTimezone":[1,"selected-timezone"],"times":[32],"hoveredTimeslotIndex":[32],"selectedTimeslotIndex":[32]},null,{"selectedDate":["selectedDateChanged"],"availability":["availabilityChanged"]}]]],["info-icon_2",[[2,"info-icon",{"width":[1],"height":[1]}],[1,"tooltip-component",{"position":[1]}]]]]'), e);
3089
+ };
3090
+ (function() {
3091
+ if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
3092
+ var t = HTMLElement;
3093
+ window.HTMLElement = function() {
3094
+ return Reflect.construct(t, [], this.constructor);
3095
+ }, HTMLElement.prototype = t.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, t);
3096
+ }
3097
+ })();
3098
+ var Yt = { exports: {} }, Ge = {};
3099
+ /**
3100
+ * @license React
3101
+ * react-jsx-runtime.production.min.js
3102
+ *
3103
+ * Copyright (c) Facebook, Inc. and its affiliates.
3104
+ *
3105
+ * This source code is licensed under the MIT license found in the
3106
+ * LICENSE file in the root directory of this source tree.
3107
+ */
3108
+ var zn;
3109
+ function Qs() {
3110
+ if (zn)
3111
+ return Ge;
3112
+ zn = 1;
3113
+ var t = ht, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
3114
+ function s(l, o, u) {
3115
+ var d, f = {}, h = null, y = null;
3116
+ u !== void 0 && (h = "" + u), o.key !== void 0 && (h = "" + o.key), o.ref !== void 0 && (y = o.ref);
3117
+ for (d in o)
3118
+ r.call(o, d) && !i.hasOwnProperty(d) && (f[d] = o[d]);
3119
+ if (l && l.defaultProps)
3120
+ for (d in o = l.defaultProps, o)
3121
+ f[d] === void 0 && (f[d] = o[d]);
3122
+ return { $$typeof: e, type: l, key: h, ref: y, props: f, _owner: a.current };
3123
+ }
3124
+ return Ge.Fragment = n, Ge.jsx = s, Ge.jsxs = s, Ge;
3125
+ }
3126
+ var Ze = {};
3127
+ /**
3128
+ * @license React
3129
+ * react-jsx-runtime.development.js
3130
+ *
3131
+ * Copyright (c) Facebook, Inc. and its affiliates.
3132
+ *
3133
+ * This source code is licensed under the MIT license found in the
3134
+ * LICENSE file in the root directory of this source tree.
3135
+ */
3136
+ var Bn;
3137
+ function Vs() {
3138
+ return Bn || (Bn = 1, process.env.NODE_ENV !== "production" && function() {
3139
+ var t = ht, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), p = Symbol.iterator, v = "@@iterator";
3140
+ function b(c) {
3141
+ if (c === null || typeof c != "object")
3142
+ return null;
3143
+ var m = p && c[p] || c[v];
3144
+ return typeof m == "function" ? m : null;
3145
+ }
3146
+ var T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3147
+ function L(c) {
3148
+ {
3149
+ for (var m = arguments.length, E = new Array(m > 1 ? m - 1 : 0), O = 1; O < m; O++)
3150
+ E[O - 1] = arguments[O];
3151
+ V("error", c, E);
3152
+ }
3153
+ }
3154
+ function V(c, m, E) {
3155
+ {
3156
+ var O = T.ReactDebugCurrentFrame, Y = O.getStackAddendum();
3157
+ Y !== "" && (m += "%s", E = E.concat([Y]));
3158
+ var j = E.map(function(A) {
3159
+ return String(A);
3160
+ });
3161
+ j.unshift("Warning: " + m), Function.prototype.apply.call(console[c], console, j);
3162
+ }
3163
+ }
3164
+ var ie = !1, he = !1, ee = !1, Re = !1, Ae = !1, q;
3165
+ q = Symbol.for("react.module.reference");
3166
+ function H(c) {
3167
+ return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || Ae || c === a || c === u || c === d || Re || c === y || ie || he || ee || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === f || c.$$typeof === s || c.$$typeof === l || c.$$typeof === o || // This needs to include all possible module reference object
3168
+ // types supported by any Flight configuration anywhere since
3169
+ // we don't know which Flight build this will end up being used
3170
+ // with.
3171
+ c.$$typeof === q || c.getModuleId !== void 0));
3172
+ }
3173
+ function Ne(c, m, E) {
3174
+ var O = c.displayName;
3175
+ if (O)
3176
+ return O;
3177
+ var Y = m.displayName || m.name || "";
3178
+ return Y !== "" ? E + "(" + Y + ")" : E;
3179
+ }
3180
+ function Be(c) {
3181
+ return c.displayName || "Context";
3182
+ }
3183
+ function C(c) {
3184
+ if (c == null)
3185
+ return null;
3186
+ if (typeof c.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
3187
+ return c.displayName || c.name || null;
3188
+ if (typeof c == "string")
3189
+ return c;
3190
+ switch (c) {
3191
+ case r:
3192
+ return "Fragment";
3193
+ case n:
3194
+ return "Portal";
3195
+ case i:
3196
+ return "Profiler";
3197
+ case a:
3198
+ return "StrictMode";
3199
+ case u:
3200
+ return "Suspense";
3201
+ case d:
3202
+ return "SuspenseList";
3203
+ }
3204
+ if (typeof c == "object")
3205
+ switch (c.$$typeof) {
3206
+ case l:
3207
+ var m = c;
3208
+ return Be(m) + ".Consumer";
3209
+ case s:
3210
+ var E = c;
3211
+ return Be(E._context) + ".Provider";
3212
+ case o:
3213
+ return Ne(c, c.render, "ForwardRef");
3214
+ case f:
3215
+ var O = c.displayName || null;
3216
+ return O !== null ? O : C(c.type) || "Memo";
3217
+ case h: {
3218
+ var Y = c, j = Y._payload, A = Y._init;
3219
+ try {
3220
+ return C(A(j));
3221
+ } catch {
3222
+ return null;
3223
+ }
3224
+ }
3225
+ }
3226
+ return null;
3227
+ }
3228
+ var k = Object.assign, w = 0, _, S, R, D, P, z, W;
3229
+ function J() {
3230
+ }
3231
+ J.__reactDisabledLog = !0;
3232
+ function ve() {
3233
+ {
3234
+ if (w === 0) {
3235
+ _ = console.log, S = console.info, R = console.warn, D = console.error, P = console.group, z = console.groupCollapsed, W = console.groupEnd;
3236
+ var c = {
3237
+ configurable: !0,
3238
+ enumerable: !0,
3239
+ value: J,
3240
+ writable: !0
3241
+ };
3242
+ Object.defineProperties(console, {
3243
+ info: c,
3244
+ log: c,
3245
+ warn: c,
3246
+ error: c,
3247
+ group: c,
3248
+ groupCollapsed: c,
3249
+ groupEnd: c
3250
+ });
3251
+ }
3252
+ w++;
3253
+ }
3254
+ }
3255
+ function ye() {
3256
+ {
3257
+ if (w--, w === 0) {
3258
+ var c = {
3259
+ configurable: !0,
3260
+ enumerable: !0,
3261
+ writable: !0
3262
+ };
3263
+ Object.defineProperties(console, {
3264
+ log: k({}, c, {
3265
+ value: _
3266
+ }),
3267
+ info: k({}, c, {
3268
+ value: S
3269
+ }),
3270
+ warn: k({}, c, {
3271
+ value: R
3272
+ }),
3273
+ error: k({}, c, {
3274
+ value: D
3275
+ }),
3276
+ group: k({}, c, {
3277
+ value: P
3278
+ }),
3279
+ groupCollapsed: k({}, c, {
3280
+ value: z
3281
+ }),
3282
+ groupEnd: k({}, c, {
3283
+ value: W
3284
+ })
3285
+ });
3286
+ }
3287
+ w < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
3288
+ }
3289
+ }
3290
+ var Ee = T.ReactCurrentDispatcher, ke;
3291
+ function pe(c, m, E) {
3292
+ {
3293
+ if (ke === void 0)
3294
+ try {
3295
+ throw Error();
3296
+ } catch (Y) {
3297
+ var O = Y.stack.trim().match(/\n( *(at )?)/);
3298
+ ke = O && O[1] || "";
3299
+ }
3300
+ return `
3301
+ ` + ke + c;
3302
+ }
3303
+ }
3304
+ var X = !1, oe;
3305
+ {
3306
+ var qe = typeof WeakMap == "function" ? WeakMap : Map;
3307
+ oe = new qe();
3308
+ }
3309
+ function Le(c, m) {
3310
+ if (!c || X)
3311
+ return "";
3312
+ {
3313
+ var E = oe.get(c);
3314
+ if (E !== void 0)
3315
+ return E;
3316
+ }
3317
+ var O;
3318
+ X = !0;
3319
+ var Y = Error.prepareStackTrace;
3320
+ Error.prepareStackTrace = void 0;
3321
+ var j;
3322
+ j = Ee.current, Ee.current = null, ve();
3323
+ try {
3324
+ if (m) {
3325
+ var A = function() {
3326
+ throw Error();
3327
+ };
3328
+ if (Object.defineProperty(A.prototype, "props", {
3329
+ set: function() {
3330
+ throw Error();
3331
+ }
3332
+ }), typeof Reflect == "object" && Reflect.construct) {
3333
+ try {
3334
+ Reflect.construct(A, []);
3335
+ } catch (Te) {
3336
+ O = Te;
3337
+ }
3338
+ Reflect.construct(c, [], A);
3339
+ } else {
3340
+ try {
3341
+ A.call();
3342
+ } catch (Te) {
3343
+ O = Te;
3344
+ }
3345
+ c.call(A.prototype);
3346
+ }
3347
+ } else {
3348
+ try {
3349
+ throw Error();
3350
+ } catch (Te) {
3351
+ O = Te;
3352
+ }
3353
+ c();
3354
+ }
3355
+ } catch (Te) {
3356
+ if (Te && O && typeof Te.stack == "string") {
3357
+ for (var I = Te.stack.split(`
3358
+ `), ae = O.stack.split(`
3359
+ `), K = I.length - 1, G = ae.length - 1; K >= 1 && G >= 0 && I[K] !== ae[G]; )
3360
+ G--;
3361
+ for (; K >= 1 && G >= 0; K--, G--)
3362
+ if (I[K] !== ae[G]) {
3363
+ if (K !== 1 || G !== 1)
3364
+ do
3365
+ if (K--, G--, G < 0 || I[K] !== ae[G]) {
3366
+ var de = `
3367
+ ` + I[K].replace(" at new ", " at ");
3368
+ return c.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", c.displayName)), typeof c == "function" && oe.set(c, de), de;
3369
+ }
3370
+ while (K >= 1 && G >= 0);
3371
+ break;
3372
+ }
3373
+ }
3374
+ } finally {
3375
+ X = !1, Ee.current = j, ye(), Error.prepareStackTrace = Y;
3376
+ }
3377
+ var Pe = c ? c.displayName || c.name : "", cn = Pe ? pe(Pe) : "";
3378
+ return typeof c == "function" && oe.set(c, cn), cn;
3379
+ }
3380
+ function Cr(c, m, E) {
3381
+ return Le(c, !1);
3382
+ }
3383
+ function xr(c) {
3384
+ var m = c.prototype;
3385
+ return !!(m && m.isReactComponent);
3386
+ }
3387
+ function tt(c, m, E) {
3388
+ if (c == null)
3389
+ return "";
3390
+ if (typeof c == "function")
3391
+ return Le(c, xr(c));
3392
+ if (typeof c == "string")
3393
+ return pe(c);
3394
+ switch (c) {
3395
+ case u:
3396
+ return pe("Suspense");
3397
+ case d:
3398
+ return pe("SuspenseList");
3399
+ }
3400
+ if (typeof c == "object")
3401
+ switch (c.$$typeof) {
3402
+ case o:
3403
+ return Cr(c.render);
3404
+ case f:
3405
+ return tt(c.type, m, E);
3406
+ case h: {
3407
+ var O = c, Y = O._payload, j = O._init;
3408
+ try {
3409
+ return tt(j(Y), m, E);
3410
+ } catch {
3411
+ }
3412
+ }
3413
+ }
3414
+ return "";
3415
+ }
3416
+ var nt = Object.prototype.hasOwnProperty, Jt = {}, Xt = T.ReactDebugCurrentFrame;
3417
+ function rt(c) {
3418
+ if (c) {
3419
+ var m = c._owner, E = tt(c.type, c._source, m ? m.type : null);
3420
+ Xt.setExtraStackFrame(E);
3421
+ } else
3422
+ Xt.setExtraStackFrame(null);
3423
+ }
3424
+ function Or(c, m, E, O, Y) {
3425
+ {
3426
+ var j = Function.call.bind(nt);
3427
+ for (var A in c)
3428
+ if (j(c, A)) {
3429
+ var I = void 0;
3430
+ try {
3431
+ if (typeof c[A] != "function") {
3432
+ var ae = Error((O || "React class") + ": " + E + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
3433
+ throw ae.name = "Invariant Violation", ae;
3434
+ }
3435
+ I = c[A](m, A, O, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
3436
+ } catch (K) {
3437
+ I = K;
3438
+ }
3439
+ I && !(I instanceof Error) && (rt(Y), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", E, A, typeof I), rt(null)), I instanceof Error && !(I.message in Jt) && (Jt[I.message] = !0, rt(Y), L("Failed %s type: %s", E, I.message), rt(null));
3440
+ }
3441
+ }
3442
+ }
3443
+ var _r = Array.isArray;
3444
+ function mt(c) {
3445
+ return _r(c);
3446
+ }
3447
+ function Dr(c) {
3448
+ {
3449
+ var m = typeof Symbol == "function" && Symbol.toStringTag, E = m && c[Symbol.toStringTag] || c.constructor.name || "Object";
3450
+ return E;
3451
+ }
3452
+ }
3453
+ function Mr(c) {
3454
+ try {
3455
+ return Qt(c), !1;
3456
+ } catch {
3457
+ return !0;
3458
+ }
3459
+ }
3460
+ function Qt(c) {
3461
+ return "" + c;
3462
+ }
3463
+ function Vt(c) {
3464
+ if (Mr(c))
3465
+ return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Dr(c)), Qt(c);
3466
+ }
3467
+ var Ke = T.ReactCurrentOwner, Rr = {
3468
+ key: !0,
3469
+ ref: !0,
3470
+ __self: !0,
3471
+ __source: !0
3472
+ }, en, tn, vt;
3473
+ vt = {};
3474
+ function Lr(c) {
3475
+ if (nt.call(c, "ref")) {
3476
+ var m = Object.getOwnPropertyDescriptor(c, "ref").get;
3477
+ if (m && m.isReactWarning)
3478
+ return !1;
3479
+ }
3480
+ return c.ref !== void 0;
3481
+ }
3482
+ function Ir(c) {
3483
+ if (nt.call(c, "key")) {
3484
+ var m = Object.getOwnPropertyDescriptor(c, "key").get;
3485
+ if (m && m.isReactWarning)
3486
+ return !1;
3487
+ }
3488
+ return c.key !== void 0;
3489
+ }
3490
+ function Ar(c, m) {
3491
+ if (typeof c.ref == "string" && Ke.current && m && Ke.current.stateNode !== m) {
3492
+ var E = C(Ke.current.type);
3493
+ vt[E] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(Ke.current.type), c.ref), vt[E] = !0);
3494
+ }
3495
+ }
3496
+ function Nr(c, m) {
3497
+ {
3498
+ var E = function() {
3499
+ en || (en = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
3500
+ };
3501
+ E.isReactWarning = !0, Object.defineProperty(c, "key", {
3502
+ get: E,
3503
+ configurable: !0
3504
+ });
3505
+ }
3506
+ }
3507
+ function Ur(c, m) {
3508
+ {
3509
+ var E = function() {
3510
+ tn || (tn = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
3511
+ };
3512
+ E.isReactWarning = !0, Object.defineProperty(c, "ref", {
3513
+ get: E,
3514
+ configurable: !0
3515
+ });
3516
+ }
3517
+ }
3518
+ var Pr = function(c, m, E, O, Y, j, A) {
3519
+ var I = {
3520
+ // This tag allows us to uniquely identify this as a React Element
3521
+ $$typeof: e,
3522
+ // Built-in properties that belong on the element
3523
+ type: c,
3524
+ key: m,
3525
+ ref: E,
3526
+ props: A,
3527
+ // Record the component responsible for creating this element.
3528
+ _owner: j
3529
+ };
3530
+ return I._store = {}, Object.defineProperty(I._store, "validated", {
3531
+ configurable: !1,
3532
+ enumerable: !1,
3533
+ writable: !0,
3534
+ value: !1
3535
+ }), Object.defineProperty(I, "_self", {
3536
+ configurable: !1,
3537
+ enumerable: !1,
3538
+ writable: !1,
3539
+ value: O
3540
+ }), Object.defineProperty(I, "_source", {
3541
+ configurable: !1,
3542
+ enumerable: !1,
3543
+ writable: !1,
3544
+ value: Y
3545
+ }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
3546
+ };
3547
+ function Yr(c, m, E, O, Y) {
3548
+ {
3549
+ var j, A = {}, I = null, ae = null;
3550
+ E !== void 0 && (Vt(E), I = "" + E), Ir(m) && (Vt(m.key), I = "" + m.key), Lr(m) && (ae = m.ref, Ar(m, Y));
3551
+ for (j in m)
3552
+ nt.call(m, j) && !Rr.hasOwnProperty(j) && (A[j] = m[j]);
3553
+ if (c && c.defaultProps) {
3554
+ var K = c.defaultProps;
3555
+ for (j in K)
3556
+ A[j] === void 0 && (A[j] = K[j]);
3557
+ }
3558
+ if (I || ae) {
3559
+ var G = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
3560
+ I && Nr(A, G), ae && Ur(A, G);
3561
+ }
3562
+ return Pr(c, I, ae, Y, O, Ke.current, A);
3563
+ }
3564
+ }
3565
+ var gt = T.ReactCurrentOwner, nn = T.ReactDebugCurrentFrame;
3566
+ function Ue(c) {
3567
+ if (c) {
3568
+ var m = c._owner, E = tt(c.type, c._source, m ? m.type : null);
3569
+ nn.setExtraStackFrame(E);
3570
+ } else
3571
+ nn.setExtraStackFrame(null);
3572
+ }
3573
+ var bt;
3574
+ bt = !1;
3575
+ function $t(c) {
3576
+ return typeof c == "object" && c !== null && c.$$typeof === e;
3577
+ }
3578
+ function rn() {
3579
+ {
3580
+ if (gt.current) {
3581
+ var c = C(gt.current.type);
3582
+ if (c)
3583
+ return `
3584
+
3585
+ Check the render method of \`` + c + "`.";
3586
+ }
3587
+ return "";
3588
+ }
3589
+ }
3590
+ function Hr(c) {
3591
+ {
3592
+ if (c !== void 0) {
3593
+ var m = c.fileName.replace(/^.*[\\\/]/, ""), E = c.lineNumber;
3594
+ return `
3595
+
3596
+ Check your code at ` + m + ":" + E + ".";
3597
+ }
3598
+ return "";
3599
+ }
3600
+ }
3601
+ var an = {};
3602
+ function jr(c) {
3603
+ {
3604
+ var m = rn();
3605
+ if (!m) {
3606
+ var E = typeof c == "string" ? c : c.displayName || c.name;
3607
+ E && (m = `
3608
+
3609
+ Check the top-level render call using <` + E + ">.");
3610
+ }
3611
+ return m;
3612
+ }
3613
+ }
3614
+ function sn(c, m) {
3615
+ {
3616
+ if (!c._store || c._store.validated || c.key != null)
3617
+ return;
3618
+ c._store.validated = !0;
3619
+ var E = jr(m);
3620
+ if (an[E])
3621
+ return;
3622
+ an[E] = !0;
3623
+ var O = "";
3624
+ c && c._owner && c._owner !== gt.current && (O = " It was passed a child from " + C(c._owner.type) + "."), Ue(c), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, O), Ue(null);
3625
+ }
3626
+ }
3627
+ function on(c, m) {
3628
+ {
3629
+ if (typeof c != "object")
3630
+ return;
3631
+ if (mt(c))
3632
+ for (var E = 0; E < c.length; E++) {
3633
+ var O = c[E];
3634
+ $t(O) && sn(O, m);
3635
+ }
3636
+ else if ($t(c))
3637
+ c._store && (c._store.validated = !0);
3638
+ else if (c) {
3639
+ var Y = b(c);
3640
+ if (typeof Y == "function" && Y !== c.entries)
3641
+ for (var j = Y.call(c), A; !(A = j.next()).done; )
3642
+ $t(A.value) && sn(A.value, m);
3643
+ }
3644
+ }
3645
+ }
3646
+ function Fr(c) {
3647
+ {
3648
+ var m = c.type;
3649
+ if (m == null || typeof m == "string")
3650
+ return;
3651
+ var E;
3652
+ if (typeof m == "function")
3653
+ E = m.propTypes;
3654
+ else if (typeof m == "object" && (m.$$typeof === o || // Note: Memo only checks outer props here.
3655
+ // Inner props are checked in the reconciler.
3656
+ m.$$typeof === f))
3657
+ E = m.propTypes;
3658
+ else
3659
+ return;
3660
+ if (E) {
3661
+ var O = C(m);
3662
+ Or(E, c.props, "prop", O, c);
3663
+ } else if (m.PropTypes !== void 0 && !bt) {
3664
+ bt = !0;
3665
+ var Y = C(m);
3666
+ L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
3667
+ }
3668
+ typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3669
+ }
3670
+ }
3671
+ function Wr(c) {
3672
+ {
3673
+ for (var m = Object.keys(c.props), E = 0; E < m.length; E++) {
3674
+ var O = m[E];
3675
+ if (O !== "children" && O !== "key") {
3676
+ Ue(c), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), Ue(null);
3677
+ break;
3678
+ }
3679
+ }
3680
+ c.ref !== null && (Ue(c), L("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
3681
+ }
3682
+ }
3683
+ function ln(c, m, E, O, Y, j) {
3684
+ {
3685
+ var A = H(c);
3686
+ if (!A) {
3687
+ var I = "";
3688
+ (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
3689
+ var ae = Hr(Y);
3690
+ ae ? I += ae : I += rn();
3691
+ var K;
3692
+ c === null ? K = "null" : mt(c) ? K = "array" : c !== void 0 && c.$$typeof === e ? (K = "<" + (C(c.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : K = typeof c, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, I);
3693
+ }
3694
+ var G = Yr(c, m, E, Y, j);
3695
+ if (G == null)
3696
+ return G;
3697
+ if (A) {
3698
+ var de = m.children;
3699
+ if (de !== void 0)
3700
+ if (O)
3701
+ if (mt(de)) {
3702
+ for (var Pe = 0; Pe < de.length; Pe++)
3703
+ on(de[Pe], c);
3704
+ Object.freeze && Object.freeze(de);
3705
+ } else
3706
+ L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3707
+ else
3708
+ on(de, c);
3709
+ }
3710
+ return c === r ? Wr(G) : Fr(G), G;
3711
+ }
3712
+ }
3713
+ function zr(c, m, E) {
3714
+ return ln(c, m, E, !0);
3715
+ }
3716
+ function Br(c, m, E) {
3717
+ return ln(c, m, E, !1);
3718
+ }
3719
+ var qr = Br, Kr = zr;
3720
+ Ze.Fragment = r, Ze.jsx = qr, Ze.jsxs = Kr;
3721
+ }()), Ze;
3722
+ }
3723
+ process.env.NODE_ENV === "production" ? Yt.exports = Qs() : Yt.exports = Vs();
3724
+ var ei = Yt.exports;
3725
+ const ti = (t) => t.toLowerCase().split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(""), Tr = (t) => t.replace(/([A-Z])/g, (e) => `-${e[0].toLowerCase()}`), ni = (t, e, n = {}) => {
3726
+ if (t instanceof Element) {
3727
+ const r = ri(t.classList, e, n);
3728
+ r !== "" && (t.className = r), Object.keys(e).forEach((a) => {
3729
+ if (!(a === "children" || a === "style" || a === "ref" || a === "class" || a === "className" || a === "forwardedRef"))
3730
+ if (a.indexOf("on") === 0 && a[2] === a[2].toUpperCase()) {
3731
+ const i = a.substring(2), s = i[0].toLowerCase() + i.substring(1);
3732
+ Sr(s) || si(t, s, e[a]);
3733
+ } else
3734
+ t[a] = e[a], typeof e[a] === "string" && t.setAttribute(Tr(a), e[a]);
3735
+ });
3736
+ }
3737
+ }, ri = (t, e, n) => {
3738
+ const r = e.className || e.class, a = n.className || n.class, i = xt(t), s = xt(r ? r.split(" ") : []), l = xt(a ? a.split(" ") : []), o = [];
3739
+ return i.forEach((u) => {
3740
+ s.has(u) ? (o.push(u), s.delete(u)) : l.has(u) || o.push(u);
3741
+ }), s.forEach((u) => o.push(u)), o.join(" ");
3742
+ }, ai = (t) => {
3743
+ switch (t) {
3744
+ case "doubleclick":
3745
+ return "dblclick";
3746
+ }
3747
+ return t;
3748
+ };
3749
+ /**
3750
+ * Checks if an event is supported in the current execution environment.
3751
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
3752
+ */
3753
+ const Sr = (t) => {
3754
+ if (typeof document > "u")
3755
+ return !0;
3756
+ {
3757
+ const e = "on" + ai(t);
3758
+ let n = e in document;
3759
+ if (!n) {
3760
+ const r = document.createElement("div");
3761
+ r.setAttribute(e, "return;"), n = typeof r[e] == "function";
3762
+ }
3763
+ return n;
3764
+ }
3765
+ }, si = (t, e, n) => {
3766
+ const r = t.__events || (t.__events = {}), a = r[e];
3767
+ a && t.removeEventListener(e, a), t.addEventListener(
3768
+ e,
3769
+ r[e] = function(s) {
3770
+ n && n.call(this, s);
3771
+ }
3772
+ );
3773
+ }, xt = (t) => {
3774
+ const e = /* @__PURE__ */ new Map();
3775
+ return t.forEach((n) => e.set(n, n)), e;
3776
+ }, ii = (t, e) => {
3777
+ typeof t == "function" ? t(e) : t != null && (t.current = e);
3778
+ }, oi = (...t) => (e) => {
3779
+ t.forEach((n) => {
3780
+ ii(n, e);
3781
+ });
3782
+ }, li = (t, e) => {
3783
+ const n = (r, a) => /* @__PURE__ */ ei.jsx(t, { ...r, forwardedRef: a });
3784
+ return n.displayName = e, ht.forwardRef(n);
3785
+ }, g = (t, e, n, r) => {
3786
+ r !== void 0 && r();
3787
+ const a = ti(t), i = class extends ht.Component {
3788
+ constructor(l) {
3789
+ super(l);
3790
+ wt(this, "componentEl");
3791
+ wt(this, "setComponentElRef", (l) => {
3792
+ this.componentEl = l;
3793
+ });
3794
+ }
3795
+ componentDidMount() {
3796
+ this.componentDidUpdate(this.props);
3797
+ }
3798
+ componentDidUpdate(l) {
3799
+ ni(this.componentEl, this.props, l);
3800
+ }
3801
+ render() {
3802
+ const { children: l, forwardedRef: o, style: u, className: d, ref: f, ...h } = this.props;
3803
+ let y = Object.keys(h).reduce((v, b) => {
3804
+ const T = h[b];
3805
+ if (b.indexOf("on") === 0 && b[2] === b[2].toUpperCase()) {
3806
+ const L = b.substring(2).toLowerCase();
3807
+ typeof document < "u" && Sr(L) && (v[b] = T);
3808
+ } else {
3809
+ const L = typeof T;
3810
+ (L === "string" || L === "boolean" || L === "number") && (v[Tr(b)] = T);
3811
+ }
3812
+ return v;
3813
+ }, {});
3814
+ n && (y = n(this.props, y));
3815
+ const p = {
3816
+ ...y,
3817
+ ref: oi(o, this.setComponentElRef),
3818
+ style: u
3819
+ };
3820
+ return Jr(t, p, l);
3821
+ }
3822
+ static get displayName() {
3823
+ return a;
3824
+ }
3825
+ };
3826
+ return e && (i.contextType = e), li(i, a);
3827
+ };
3828
+ Xs();
3829
+ const qi = /* @__PURE__ */ g("add-circle-icon"), Ki = /* @__PURE__ */ g("archive-icon"), Gi = /* @__PURE__ */ g("arrow-icon"), Zi = /* @__PURE__ */ g("bold-icon"), Ji = /* @__PURE__ */ g("button-component"), Xi = /* @__PURE__ */ g("calendar-cancel-icon"), Qi = /* @__PURE__ */ g("calendar-check-icon"), Vi = /* @__PURE__ */ g("calendar-icon"), eo = /* @__PURE__ */ g("calendar-info-icon"), to = /* @__PURE__ */ g("calendar-patterns-icon"), no = /* @__PURE__ */ g("checkmark-circle-icon"), ro = /* @__PURE__ */ g("chevron-icon"), ao = /* @__PURE__ */ g("close-icon"), so = /* @__PURE__ */ g("document-refresh-icon"), io = /* @__PURE__ */ g("flow-icon"), oo = /* @__PURE__ */ g("folder-icon"), lo = /* @__PURE__ */ g("forward-icon"), co = /* @__PURE__ */ g("globe-icon"), uo = /* @__PURE__ */ g("google-logo-icon"), fo = /* @__PURE__ */ g("inbox-icon"), ho = /* @__PURE__ */ g("info-icon"), yo = /* @__PURE__ */ g("italic-icon"), po = /* @__PURE__ */ g("loading-icon"), mo = /* @__PURE__ */ g("location-icon"), vo = /* @__PURE__ */ g("location-off-icon"), go = /* @__PURE__ */ g("microsoft-logo-icon"), bo = /* @__PURE__ */ g("multi-select-dropdown"), $o = /* @__PURE__ */ g("nylas-additional-participants"), wo = /* @__PURE__ */ g("nylas-availability-picker"), Eo = /* @__PURE__ */ g("nylas-booked-event-card"), ko = /* @__PURE__ */ g("nylas-booking-calendar-picker"), To = /* @__PURE__ */ g("nylas-booking-form"), So = /* @__PURE__ */ g("nylas-buffer-time"), Co = /* @__PURE__ */ g("nylas-calendar-picker"), xo = /* @__PURE__ */ g("nylas-cancel-booking-form"), Oo = /* @__PURE__ */ g("nylas-cancelled-event-card"), _o = /* @__PURE__ */ g("nylas-composer"), Do = /* @__PURE__ */ g("nylas-custom-booking-flow"), Mo = /* @__PURE__ */ g("nylas-date-picker"), Ro = /* @__PURE__ */ g("nylas-editor-tabs"), Lo = /* @__PURE__ */ g("nylas-event-description"), Io = /* @__PURE__ */ g("nylas-event-duration"), Ao = /* @__PURE__ */ g("nylas-event-info"), No = /* @__PURE__ */ g("nylas-event-limits"), Uo = /* @__PURE__ */ g("nylas-event-title"), Po = /* @__PURE__ */ g("nylas-form-card"), Yo = /* @__PURE__ */ g("nylas-if-state"), Ho = /* @__PURE__ */ g("nylas-limit-future-bookings"), jo = /* @__PURE__ */ g("nylas-list-configurations"), Fo = /* @__PURE__ */ g("nylas-list-folders"), Wo = /* @__PURE__ */ g("nylas-list-threads"), zo = /* @__PURE__ */ g("nylas-locale-switch"), Bo = /* @__PURE__ */ g("nylas-location-component"), qo = /* @__PURE__ */ g("nylas-login"), Ko = /* @__PURE__ */ g("nylas-logo"), Go = /* @__PURE__ */ g("nylas-mailbox"), Zo = /* @__PURE__ */ g("nylas-mailbox-pagination"), Jo = /* @__PURE__ */ g("nylas-mailbox-toolbar-button"), Xo = /* @__PURE__ */ g("nylas-min-cancellation-notice"), Qo = /* @__PURE__ */ g("nylas-notification"), Vo = /* @__PURE__ */ g("nylas-provider"), el = /* @__PURE__ */ g("nylas-scheduler-editor"), tl = /* @__PURE__ */ g("nylas-scheduling"), nl = /* @__PURE__ */ g("nylas-selected-event-card"), rl = /* @__PURE__ */ g("nylas-summarize-message-button"), al = /* @__PURE__ */ g("nylas-threads-refresh"), sl = /* @__PURE__ */ g("nylas-threads-search"), il = /* @__PURE__ */ g("nylas-time-window-picker"), ol = /* @__PURE__ */ g("nylas-timeslot-picker"), ll = /* @__PURE__ */ g("nylas-view-email"), cl = /* @__PURE__ */ g("nylas-view-thread"), ul = /* @__PURE__ */ g("people-icon"), dl = /* @__PURE__ */ g("play-icon"), fl = /* @__PURE__ */ g("refresh-icon"), hl = /* @__PURE__ */ g("reply-all-icon"), yl = /* @__PURE__ */ g("reply-icon"), pl = /* @__PURE__ */ g("search-icon"), ml = /* @__PURE__ */ g("select-dropdown"), vl = /* @__PURE__ */ g("sent-icon"), gl = /* @__PURE__ */ g("spam-icon"), bl = /* @__PURE__ */ g("star-icon"), $l = /* @__PURE__ */ g("stop-icon"), wl = /* @__PURE__ */ g("time-period-selector"), El = /* @__PURE__ */ g("tooltip-component"), kl = /* @__PURE__ */ g("translate-icon"), Tl = /* @__PURE__ */ g("trash-icon"), Sl = /* @__PURE__ */ g("underline-icon"), Cl = /* @__PURE__ */ g("warning-icon");
3830
+ function xl() {
3831
+ const [, t] = Xr((a) => a + 1, 0), e = Et(), n = Et(null), r = Et(null);
3832
+ return Qr(() => {
3833
+ e.current && (n.current || e.current.getNylasMailboxConnector().then((a) => {
3834
+ a && (n.current = a, r.current = n.current.nylasAuthStore, a.nylasAuthStore.on("set", t), t());
3835
+ }));
3836
+ }, []), [e, r.current];
3837
+ }
3838
+ export {
3839
+ to as $,
3840
+ Pi as A,
3841
+ Yi as B,
3842
+ yr as C,
3843
+ Ui as D,
3844
+ Ii as E,
3845
+ hi as F,
3846
+ Ni as G,
3847
+ ia as H,
3848
+ Ai as I,
3849
+ ji as J,
3850
+ Fi as K,
3851
+ mi as L,
3852
+ gi as M,
3853
+ zi as N,
3854
+ xl as O,
3855
+ Bi as P,
3856
+ Xs as Q,
3857
+ yi as R,
3858
+ qi as S,
3859
+ Ki as T,
3860
+ Gi as U,
3861
+ Zi as V,
3862
+ Ji as W,
3863
+ Xi as X,
3864
+ Qi as Y,
3865
+ Vi as Z,
3866
+ eo as _,
3867
+ ki as a,
3868
+ fl as a$,
3869
+ no as a0,
3870
+ ro as a1,
3871
+ ao as a2,
3872
+ so as a3,
3873
+ io as a4,
3874
+ oo as a5,
3875
+ lo as a6,
3876
+ co as a7,
3877
+ uo as a8,
3878
+ fo as a9,
3879
+ Yo as aA,
3880
+ Ho as aB,
3881
+ jo as aC,
3882
+ Fo as aD,
3883
+ Wo as aE,
3884
+ zo as aF,
3885
+ Bo as aG,
3886
+ qo as aH,
3887
+ Ko as aI,
3888
+ Go as aJ,
3889
+ Zo as aK,
3890
+ Jo as aL,
3891
+ Xo as aM,
3892
+ Qo as aN,
3893
+ Vo as aO,
3894
+ el as aP,
3895
+ tl as aQ,
3896
+ nl as aR,
3897
+ rl as aS,
3898
+ al as aT,
3899
+ sl as aU,
3900
+ il as aV,
3901
+ ol as aW,
3902
+ ll as aX,
3903
+ cl as aY,
3904
+ ul as aZ,
3905
+ dl as a_,
3906
+ ho as aa,
3907
+ yo as ab,
3908
+ po as ac,
3909
+ mo as ad,
3910
+ vo as ae,
3911
+ go as af,
3912
+ bo as ag,
3913
+ $o as ah,
3914
+ wo as ai,
3915
+ Eo as aj,
3916
+ ko as ak,
3917
+ To as al,
3918
+ So as am,
3919
+ Co as an,
3920
+ xo as ao,
3921
+ Oo as ap,
3922
+ _o as aq,
3923
+ Do as ar,
3924
+ Mo as as,
3925
+ Ro as at,
3926
+ Lo as au,
3927
+ Io as av,
3928
+ Ao as aw,
3929
+ No as ax,
3930
+ Uo as ay,
3931
+ Po as az,
3932
+ wi as b,
3933
+ hl as b0,
3934
+ yl as b1,
3935
+ pl as b2,
3936
+ ml as b3,
3937
+ vl as b4,
3938
+ gl as b5,
3939
+ bl as b6,
3940
+ $l as b7,
3941
+ wl as b8,
3942
+ El as b9,
3943
+ kl as ba,
3944
+ Tl as bb,
3945
+ Sl as bc,
3946
+ Cl as bd,
3947
+ fi as c,
3948
+ vi as d,
3949
+ Ka as e,
3950
+ Di as f,
3951
+ da as g,
3952
+ Jn as h,
3953
+ Ga as i,
3954
+ Wn as j,
3955
+ $i as k,
3956
+ Ti as l,
3957
+ Ei as m,
3958
+ Mi as n,
3959
+ Gs as o,
3960
+ Ri as p,
3961
+ Li as q,
3962
+ pi as r,
3963
+ Wi as s,
3964
+ _i as t,
3965
+ bi as u,
3966
+ Si as v,
3967
+ Ci as w,
3968
+ xi as x,
3969
+ Oi as y,
3970
+ Hi as z
3971
+ };