@antcde/vue-utils 0.2.33 → 0.2.34-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,26 @@
1
- import { objectOmit as e, objectPick as t, useAsyncState as n, useColorMode as r, useMagicKeys as i, watchDebounced as a, whenever as o } from "@vueuse/core";
2
- import { computed as s, inject as c, onBeforeUnmount as l, onMounted as u, onScopeDispose as d, onUnmounted as f, readonly as p, ref as m, shallowRef as h, watch as g } from "vue";
3
- import { useI18n as _ } from "vue-i18n";
4
- import { clone as v, isAuthorizationRequired as y, newCommsClient as b, newCommsHost as ee } from "@antcde/connect-ts";
5
- import { BehaviorSubject as x, Subject as te, concat as ne, concatMap as re, debounceTime as ie, distinctUntilChanged as ae, filter as S, map as C } from "rxjs";
6
- //#region src/formatDate.ts
7
- var w = "nl", T = {
1
+ import { createSharedComposable as e, objectOmit as t, objectPick as n, useAsyncState as r, useColorMode as i, useMagicKeys as a, useMediaQuery as o, useWindowSize as s, watchDebounced as c, whenever as l } from "@vueuse/core";
2
+ import { computed as u, inject as d, onBeforeUnmount as f, onMounted as p, onScopeDispose as m, onUnmounted as h, readonly as g, ref as _, shallowRef as v, watch as y, watchEffect as b } from "vue";
3
+ import { useI18n as ee } from "vue-i18n";
4
+ import { clone as x, isAuthorizationRequired as te, newCommsClient as ne, newCommsHost as re } from "@antcde/connect-ts";
5
+ import { BehaviorSubject as ie, Subject as ae, concat as S, concatMap as C, debounceTime as oe, distinctUntilChanged as w, filter as se, map as ce } from "rxjs";
6
+ // src/apiErrorMessage.ts
7
+ function le(e, t) {
8
+ let n = e?.response?.data;
9
+ return (n?.errors ? Object.values(n.errors).flat().find((e) => typeof e == "string" && e.length > 0) : void 0) || (typeof n?.message == "string" && n.message.length ? n.message : t);
10
+ }
11
+ // src/deviceType.ts
12
+ var ue = {
13
+ tablet: "mdi-tablet",
14
+ kiosk: "mdi-monitor-dashboard",
15
+ display: "mdi-television",
16
+ handheld: "mdi-barcode-scan",
17
+ other: "mdi-devices"
18
+ };
19
+ function de(e) {
20
+ return ue[e] ?? ue.other;
21
+ }
22
+ // src/formatDate.ts
23
+ var fe = "nl", pe = {
8
24
  short: {
9
25
  day: "2-digit",
10
26
  month: "2-digit",
@@ -40,43 +56,42 @@ var w = "nl", T = {
40
56
  minute: "2-digit",
41
57
  hour12: !1
42
58
  }
43
- }, oe = /* @__PURE__ */ new Set(["short", "shortDateTime"]);
44
- function se(e) {
59
+ }, me = /* @__PURE__ */ new Set(["short", "shortDateTime"]);
60
+ function he(e) {
45
61
  return e instanceof Date ? e : new Date(e);
46
62
  }
47
- function ce(e) {
63
+ function ge(e) {
48
64
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
49
65
  }
50
- function le(e, t = {}) {
51
- let { preset: n = "short", locale: r = w, fallback: i = "" } = t;
66
+ function _e(e, t = {}) {
67
+ let { preset: n = "short", locale: r = fe, fallback: i = "" } = t;
52
68
  if (e == null || e === "") return i;
53
- let a = se(e);
69
+ let a = he(e);
54
70
  if (Number.isNaN(a.getTime())) return i;
55
- if (n === "iso") return ce(a);
56
- let o = oe.has(n) && /^en\b/i.test(r) ? w : r;
57
- return new Intl.DateTimeFormat(o, T[n]).format(a);
71
+ if (n === "iso") return ge(a);
72
+ let o = me.has(n) && /^en\b/i.test(r) ? fe : r;
73
+ return new Intl.DateTimeFormat(o, pe[n]).format(a);
58
74
  }
59
- function ue(e, t, n = {}) {
60
- let { preset: r = "medium", locale: i = w, fallback: a = "" } = n, o = e == null || e === "" ? null : se(e), s = t == null || t === "" ? null : se(t), c = o && !Number.isNaN(o.getTime()) ? o : null, l = s && !Number.isNaN(s.getTime()) ? s : null;
75
+ function ve(e, t, n = {}) {
76
+ let { preset: r = "medium", locale: i = fe, fallback: a = "" } = n, o = e == null || e === "" ? null : he(e), s = t == null || t === "" ? null : he(t), c = o && !Number.isNaN(o.getTime()) ? o : null, l = s && !Number.isNaN(s.getTime()) ? s : null;
61
77
  if (!c && !l) return a;
62
- if (!c || !l || ce(c) === ce(l)) return le(c ?? l, {
78
+ if (!c || !l || ge(c) === ge(l)) return _e(c ?? l, {
63
79
  preset: r === "iso" ? "medium" : r,
64
80
  locale: i,
65
81
  fallback: a
66
82
  });
67
83
  let u = r === "iso" ? "medium" : r;
68
- return new Intl.DateTimeFormat(i, T[u]).formatRange(c, l);
84
+ return new Intl.DateTimeFormat(i, pe[u]).formatRange(c, l);
69
85
  }
70
- //#endregion
71
- //#region src/refreshLabel.ts
72
- var de = {
86
+ // src/refreshLabel.ts
87
+ var ye = {
73
88
  1: "first",
74
89
  2: "second",
75
90
  3: "third",
76
91
  4: "fourth",
77
92
  [-1]: "last"
78
93
  };
79
- function fe(e, t) {
94
+ function be(e, t) {
80
95
  let { t: n, locale: r, prefix: i } = t, a = (e) => `${i}.${e}`;
81
96
  if (e.kind === "interval") return n(a(`interval.${e.preset}`), {});
82
97
  if (e.kind === "custom") {
@@ -122,7 +137,7 @@ function fe(e, t) {
122
137
  } else u = n(a("monthlyNth"), {
123
138
  count: s,
124
139
  time: l,
125
- nth: n(a(`nth.${de[e.nth]}`), {}),
140
+ nth: n(a(`nth.${ye[e.nth]}`), {}),
126
141
  weekday: c(e.weekday)
127
142
  }, s);
128
143
  }
@@ -132,9 +147,8 @@ function fe(e, t) {
132
147
  zone: o.timezone
133
148
  }) : u;
134
149
  }
135
- //#endregion
136
- //#region src/refreshSchedule.ts
137
- var pe = [
150
+ // src/refreshSchedule.ts
151
+ var xe = [
138
152
  "MO",
139
153
  "TU",
140
154
  "WE",
@@ -142,18 +156,18 @@ var pe = [
142
156
  "FR",
143
157
  "SA",
144
158
  "SU"
145
- ], me = [
159
+ ], Se = [
146
160
  "hourly",
147
161
  "daily",
148
162
  "weekly",
149
163
  "monthly"
150
- ], he = [
164
+ ], Ce = [
151
165
  1,
152
166
  2,
153
167
  3,
154
168
  4,
155
169
  -1
156
- ], ge = /* @__PURE__ */ new Set([
170
+ ], we = /* @__PURE__ */ new Set([
157
171
  "FREQ",
158
172
  "INTERVAL",
159
173
  "BYDAY",
@@ -161,10 +175,10 @@ var pe = [
161
175
  "BYSETPOS",
162
176
  "WKST"
163
177
  ]);
164
- function _e() {
178
+ function Te() {
165
179
  return new Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
166
180
  }
167
- function ve(e = /* @__PURE__ */ new Date()) {
181
+ function Ee(e = /* @__PURE__ */ new Date()) {
168
182
  let t = (e) => String(e).padStart(2, "0");
169
183
  return {
170
184
  freq: "weekly",
@@ -173,49 +187,49 @@ function ve(e = /* @__PURE__ */ new Date()) {
173
187
  monthly: null,
174
188
  time: "06:00",
175
189
  startDate: `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`,
176
- timezone: _e()
190
+ timezone: Te()
177
191
  };
178
192
  }
179
- function ye(e) {
193
+ function De(e) {
180
194
  return ((/* @__PURE__ */ new Date(`${e}T00:00:00Z`)).getUTCDay() + 6) % 7;
181
195
  }
182
- function be(e) {
196
+ function Oe(e) {
183
197
  let t = e.freq === "hourly" ? "00:00" : e.time ?? "00:00", n = `DTSTART;TZID=${e.timezone}:${e.startDate.replaceAll("-", "")}T${t.replace(":", "")}00`, r = [`FREQ=${e.freq.toUpperCase()}`, `INTERVAL=${Math.max(1, Math.trunc(e.interval))}`];
184
- return e.freq === "weekly" && e.weekdays.length && r.push(`BYDAY=${[...e.weekdays].sort((e, t) => e - t).map((e) => pe[e]).join(",")}`), e.freq === "monthly" && e.monthly && r.push("day" in e.monthly ? `BYMONTHDAY=${e.monthly.day}` : `BYDAY=${pe[e.monthly.weekday]};BYSETPOS=${e.monthly.nth}`), `${n}\nRRULE:${r.join(";")}`;
198
+ return e.freq === "weekly" && e.weekdays.length && r.push(`BYDAY=${[...e.weekdays].sort((e, t) => e - t).map((e) => xe[e]).join(",")}`), e.freq === "monthly" && e.monthly && r.push("day" in e.monthly ? `BYMONTHDAY=${e.monthly.day}` : `BYDAY=${xe[e.monthly.weekday]};BYSETPOS=${e.monthly.nth}`), `${n}\nRRULE:${r.join(";")}`;
185
199
  }
186
- function xe(e) {
187
- let t = pe.indexOf(e);
200
+ function ke(e) {
201
+ let t = xe.indexOf(e);
188
202
  return t >= 0 ? t : null;
189
203
  }
190
- function Se(e, t) {
204
+ function Ae(e, t) {
191
205
  let n = e.get("BYMONTHDAY"), r = e.get("BYDAY");
192
206
  if (n && !r) {
193
207
  let e = Number(n);
194
208
  return Number.isInteger(e) && e >= 1 && e <= 31 ? { day: e } : null;
195
209
  }
196
210
  if (!r) return n ? null : { day: Number(t.slice(8, 10)) };
197
- let i = /^([+-]?\d)?([A-Z]{2})$/.exec(r), a = i ? xe(i[2]) : null, o = Number(i?.[1] ?? e.get("BYSETPOS"));
198
- return a !== null && he.includes(o) ? {
211
+ let i = /^([+-]?\d)?([A-Z]{2})$/.exec(r), a = i ? ke(i[2]) : null, o = Number(i?.[1] ?? e.get("BYSETPOS"));
212
+ return a !== null && Ce.includes(o) ? {
199
213
  nth: o,
200
214
  weekday: a
201
215
  } : null;
202
216
  }
203
- function Ce(e) {
217
+ function je(e) {
204
218
  let t = (e ?? "").trim().split(/\r?\n/).map((e) => e.trim()), n = /^DTSTART;TZID=([^:]+):(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})00$/.exec(t.find((e) => e.startsWith("DTSTART")) ?? ""), r = t.find((e) => e.startsWith("RRULE:"));
205
219
  if (!n || !r || t.length !== 2) return null;
206
220
  let i = new Map(r.slice(6).split(";").map((e) => e.split("=")));
207
- if ([...i.keys()].some((e) => !ge.has(e))) return null;
221
+ if ([...i.keys()].some((e) => !we.has(e))) return null;
208
222
  let a = (i.get("FREQ") ?? "").toLowerCase(), o = Number(i.get("INTERVAL") ?? 1);
209
- if (!me.includes(a) || !Number.isInteger(o) || o < 1) return null;
223
+ if (!Se.includes(a) || !Number.isInteger(o) || o < 1) return null;
210
224
  let s = `${n[2]}-${n[3]}-${n[4]}`, c = i.get("BYDAY");
211
225
  if ((a === "hourly" || a === "daily") && (c || i.has("BYMONTHDAY") || i.has("BYSETPOS"))) return null;
212
226
  let l = [];
213
227
  if (a === "weekly") {
214
- let e = c ? c.split(",").map(xe) : [ye(s)];
228
+ let e = c ? c.split(",").map(ke) : [De(s)];
215
229
  if (e.includes(null) || i.has("BYMONTHDAY") || i.has("BYSETPOS")) return null;
216
230
  l = e;
217
231
  }
218
- let u = a === "monthly" ? Se(i, s) : null;
232
+ let u = a === "monthly" ? Ae(i, s) : null;
219
233
  return a === "monthly" && !u ? null : {
220
234
  freq: a,
221
235
  interval: o,
@@ -226,13 +240,13 @@ function Ce(e) {
226
240
  timezone: n[1]
227
241
  };
228
242
  }
229
- function we(e, t = _e()) {
243
+ function Me(e, t = Te()) {
230
244
  if (!e) return null;
231
245
  if (e.kind === "interval") return {
232
246
  kind: "interval",
233
247
  preset: e.seconds
234
248
  };
235
- let n = Ce(e.rule);
249
+ let n = je(e.rule);
236
250
  return n ? {
237
251
  kind: "schedule",
238
252
  spec: n,
@@ -242,9 +256,8 @@ function we(e, t = _e()) {
242
256
  nextRefreshAt: e.next_refresh_at ?? null
243
257
  };
244
258
  }
245
- //#endregion
246
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/weekday.js
247
- var Te = [
259
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/weekday.js
260
+ var Ne = [
248
261
  "MO",
249
262
  "TU",
250
263
  "WE",
@@ -252,66 +265,66 @@ var Te = [
252
265
  "FR",
253
266
  "SA",
254
267
  "SU"
255
- ], E = function() {
268
+ ], T = function() {
256
269
  function e(e, t) {
257
270
  if (t === 0) throw Error("Can't create weekday with n == 0");
258
271
  this.weekday = e, this.n = t;
259
272
  }
260
273
  return e.fromStr = function(t) {
261
- return new e(Te.indexOf(t));
274
+ return new e(Ne.indexOf(t));
262
275
  }, e.prototype.nth = function(t) {
263
276
  return this.n === t ? this : new e(this.weekday, t);
264
277
  }, e.prototype.equals = function(e) {
265
278
  return this.weekday === e.weekday && this.n === e.n;
266
279
  }, e.prototype.toString = function() {
267
- var e = Te[this.weekday];
280
+ var e = Ne[this.weekday];
268
281
  return this.n && (e = (this.n > 0 ? "+" : "") + String(this.n) + e), e;
269
282
  }, e.prototype.getJsWeekday = function() {
270
283
  return this.weekday === 6 ? 0 : this.weekday + 1;
271
284
  }, e;
272
- }(), D = function(e) {
285
+ }(), E = function(e) {
273
286
  return e != null;
274
- }, O = function(e) {
287
+ }, D = function(e) {
275
288
  return typeof e == "number";
276
- }, Ee = function(e) {
277
- return typeof e == "string" && Te.includes(e);
278
- }, k = Array.isArray, A = function(e, t) {
289
+ }, Pe = function(e) {
290
+ return typeof e == "string" && Ne.includes(e);
291
+ }, O = Array.isArray, k = function(e, t) {
279
292
  t === void 0 && (t = e), arguments.length === 1 && (t = e, e = 0);
280
293
  for (var n = [], r = e; r < t; r++) n.push(r);
281
294
  return n;
282
- }, j = function(e, t) {
295
+ }, A = function(e, t) {
283
296
  var n = 0, r = [];
284
- if (k(e)) for (; n < t; n++) r[n] = [].concat(e);
297
+ if (O(e)) for (; n < t; n++) r[n] = [].concat(e);
285
298
  else for (; n < t; n++) r[n] = e;
286
299
  return r;
287
- }, De = function(e) {
288
- return k(e) ? e : [e];
300
+ }, Fe = function(e) {
301
+ return O(e) ? e : [e];
289
302
  };
290
- function M(e, t, n) {
303
+ function j(e, t, n) {
291
304
  n === void 0 && (n = " ");
292
305
  var r = String(e);
293
- return t |= 0, r.length > t ? String(r) : (t -= r.length, t > n.length && (n += j(n, t / n.length)), n.slice(0, t) + String(r));
306
+ return t |= 0, r.length > t ? String(r) : (t -= r.length, t > n.length && (n += A(n, t / n.length)), n.slice(0, t) + String(r));
294
307
  }
295
- var Oe = function(e, t, n) {
308
+ var Ie = function(e, t, n) {
296
309
  var r = e.split(t);
297
310
  return n ? r.slice(0, n).concat([r.slice(n).join(t)]) : r;
298
- }, N = function(e, t) {
311
+ }, M = function(e, t) {
299
312
  var n = e % t;
300
313
  return n * t < 0 ? n + t : n;
301
- }, ke = function(e, t) {
314
+ }, Le = function(e, t) {
302
315
  return {
303
316
  div: Math.floor(e / t),
304
- mod: N(e, t)
317
+ mod: M(e, t)
305
318
  };
319
+ }, N = function(e) {
320
+ return !E(e) || e.length === 0;
306
321
  }, P = function(e) {
307
- return !D(e) || e.length === 0;
308
- }, F = function(e) {
309
- return !P(e);
310
- }, I = function(e, t) {
311
- return F(e) && e.indexOf(t) !== -1;
312
- }, L = function(e, t, n, r, i, a) {
322
+ return !N(e);
323
+ }, F = function(e, t) {
324
+ return P(e) && e.indexOf(t) !== -1;
325
+ }, I = function(e, t, n, r, i, a) {
313
326
  return r === void 0 && (r = 0), i === void 0 && (i = 0), a === void 0 && (a = 0), new Date(Date.UTC(e, t - 1, n, r, i, a));
314
- }, Ae = [
327
+ }, Re = [
315
328
  31,
316
329
  28,
317
330
  31,
@@ -324,7 +337,7 @@ var Oe = function(e, t, n) {
324
337
  31,
325
338
  30,
326
339
  31
327
- ], je = 864e5, Me = L(1970, 1, 1), Ne = [
340
+ ], ze = 864e5, Be = I(1970, 1, 1), Ve = [
328
341
  6,
329
342
  0,
330
343
  1,
@@ -332,59 +345,59 @@ var Oe = function(e, t, n) {
332
345
  3,
333
346
  4,
334
347
  5
335
- ], Pe = function(e) {
348
+ ], L = function(e) {
336
349
  return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;
337
- }, Fe = function(e) {
350
+ }, He = function(e) {
338
351
  return e instanceof Date;
339
352
  }, R = function(e) {
340
- return Fe(e) && !isNaN(e.getTime());
341
- }, Ie = function(e, t) {
353
+ return He(e) && !isNaN(e.getTime());
354
+ }, Ue = function(e, t) {
342
355
  var n = e.getTime() - t.getTime();
343
- return Math.round(n / je);
344
- }, Le = function(e) {
345
- return Ie(e, Me);
346
- }, Re = function(e) {
347
- return new Date(Me.getTime() + e * je);
348
- }, ze = function(e) {
356
+ return Math.round(n / ze);
357
+ }, We = function(e) {
358
+ return Ue(e, Be);
359
+ }, Ge = function(e) {
360
+ return new Date(Be.getTime() + e * ze);
361
+ }, Ke = function(e) {
349
362
  var t = e.getUTCMonth();
350
- return t === 1 && Pe(e.getUTCFullYear()) ? 29 : Ae[t];
363
+ return t === 1 && L(e.getUTCFullYear()) ? 29 : Re[t];
351
364
  }, z = function(e) {
352
- return Ne[e.getUTCDay()];
353
- }, Be = function(e, t) {
354
- var n = L(e, t + 1, 1);
355
- return [z(n), ze(n)];
356
- }, Ve = function(e, t) {
365
+ return Ve[e.getUTCDay()];
366
+ }, qe = function(e, t) {
367
+ var n = I(e, t + 1, 1);
368
+ return [z(n), Ke(n)];
369
+ }, Je = function(e, t) {
357
370
  return t ||= e, new Date(Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
358
- }, He = function(e) {
371
+ }, Ye = function(e) {
359
372
  return new Date(e.getTime());
360
- }, Ue = function(e) {
361
- for (var t = [], n = 0; n < e.length; n++) t.push(He(e[n]));
373
+ }, Xe = function(e) {
374
+ for (var t = [], n = 0; n < e.length; n++) t.push(Ye(e[n]));
362
375
  return t;
363
376
  }, B = function(e) {
364
377
  e.sort(function(e, t) {
365
378
  return e.getTime() - t.getTime();
366
379
  });
367
- }, We = function(e, t) {
380
+ }, Ze = function(e, t) {
368
381
  t === void 0 && (t = !0);
369
382
  var n = new Date(e);
370
383
  return [
371
- M(n.getUTCFullYear().toString(), 4, "0"),
372
- M(n.getUTCMonth() + 1, 2, "0"),
373
- M(n.getUTCDate(), 2, "0"),
384
+ j(n.getUTCFullYear().toString(), 4, "0"),
385
+ j(n.getUTCMonth() + 1, 2, "0"),
386
+ j(n.getUTCDate(), 2, "0"),
374
387
  "T",
375
- M(n.getUTCHours(), 2, "0"),
376
- M(n.getUTCMinutes(), 2, "0"),
377
- M(n.getUTCSeconds(), 2, "0"),
388
+ j(n.getUTCHours(), 2, "0"),
389
+ j(n.getUTCMinutes(), 2, "0"),
390
+ j(n.getUTCSeconds(), 2, "0"),
378
391
  t ? "Z" : ""
379
392
  ].join("");
380
- }, Ge = function(e) {
393
+ }, Qe = function(e) {
381
394
  var t = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);
382
395
  if (!t) throw Error(`Invalid UNTIL value: ${e}`);
383
396
  return new Date(Date.UTC(parseInt(t[1], 10), parseInt(t[2], 10) - 1, parseInt(t[3], 10), parseInt(t[5], 10) || 0, parseInt(t[6], 10) || 0, parseInt(t[7], 10) || 0));
384
- }, Ke = function(e, t) {
397
+ }, $e = function(e, t) {
385
398
  return e.toLocaleString("sv-SE", { timeZone: t }).replace(" ", "T") + "Z";
386
- }, qe = function(e, t) {
387
- var n = Intl.DateTimeFormat().resolvedOptions().timeZone, r = new Date(Ke(e, n)), i = new Date(Ke(e, t ?? "UTC")).getTime() - r.getTime();
399
+ }, et = function(e, t) {
400
+ var n = Intl.DateTimeFormat().resolvedOptions().timeZone, r = new Date($e(e, n)), i = new Date($e(e, t ?? "UTC")).getTime() - r.getTime();
388
401
  return new Date(e.getTime() - i);
389
402
  }, V = function() {
390
403
  function e(e, t) {
@@ -412,16 +425,16 @@ var Oe = function(e, t, n) {
412
425
  }, e.prototype.clone = function() {
413
426
  return new e(this.method, this.args);
414
427
  }, e;
415
- }(), Je = function(e, t) {
416
- return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
428
+ }(), tt = function(e, t) {
429
+ return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
417
430
  e.__proto__ = t;
418
431
  } || function(e, t) {
419
432
  for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
420
- }, Je(e, t);
433
+ }, tt(e, t);
421
434
  };
422
- function Ye(e, t) {
435
+ function nt(e, t) {
423
436
  if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
424
- Je(e, t);
437
+ tt(e, t);
425
438
  function n() {
426
439
  this.constructor = e;
427
440
  }
@@ -437,10 +450,9 @@ function U(e, t, n) {
437
450
  if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
438
451
  return e.concat(a || Array.prototype.slice.call(t));
439
452
  }
440
- //#endregion
441
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/callbackiterresult.js
442
- var Xe = function(e) {
443
- Ye(t, e);
453
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/callbackiterresult.js
454
+ var rt = function(e) {
455
+ nt(t, e);
444
456
  function t(t, n, r) {
445
457
  var i = e.call(this, t, n) || this;
446
458
  return i.iterator = r, i;
@@ -448,7 +460,7 @@ var Xe = function(e) {
448
460
  return t.prototype.add = function(e) {
449
461
  return this.iterator(e, this._result.length) ? (this._result.push(e), !0) : !1;
450
462
  }, t;
451
- }(V), Ze = {
463
+ }(V), it = {
452
464
  dayNames: [
453
465
  "Sunday",
454
466
  "Monday",
@@ -516,15 +528,15 @@ var Xe = function(e) {
516
528
  december: /^dec(ember)?/i,
517
529
  comma: /^(,\s*|(and|or)\s*)+/i
518
530
  }
519
- }, Qe = function(e, t) {
531
+ }, at = function(e, t) {
520
532
  return e.indexOf(t) !== -1;
521
- }, $e = function(e) {
533
+ }, ot = function(e) {
522
534
  return e.toString();
523
- }, et = function(e, t, n) {
535
+ }, st = function(e, t, n) {
524
536
  return `${t} ${n}, ${e}`;
525
537
  }, W = function() {
526
538
  function e(e, t, n, r) {
527
- if (t === void 0 && (t = $e), n === void 0 && (n = Ze), r === void 0 && (r = et), this.text = [], this.language = n || Ze, this.gettext = t, this.dateFormatter = r, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
539
+ if (t === void 0 && (t = ot), n === void 0 && (n = it), r === void 0 && (r = st), this.text = [], this.language = n || it, this.gettext = t, this.dateFormatter = r, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
528
540
  var i = [].concat(this.options.bymonthday), a = [].concat(this.options.bynmonthday);
529
541
  i.sort(function(e, t) {
530
542
  return e - t;
@@ -532,8 +544,8 @@ var Xe = function(e) {
532
544
  return t - e;
533
545
  }), this.bymonthday = i.concat(a), this.bymonthday.length || (this.bymonthday = null);
534
546
  }
535
- if (D(this.origOptions.byweekday)) {
536
- var o = k(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], s = String(o);
547
+ if (E(this.origOptions.byweekday)) {
548
+ var o = O(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], s = String(o);
537
549
  this.byweekday = {
538
550
  allWeeks: o.filter(function(e) {
539
551
  return !e.n;
@@ -554,13 +566,13 @@ var Xe = function(e) {
554
566
  var n = !0;
555
567
  if (!(t.options.freq in e.IMPLEMENTED) || t.origOptions.until && t.origOptions.count) return !1;
556
568
  for (var r in t.origOptions) {
557
- if (Qe([
569
+ if (at([
558
570
  "dtstart",
559
571
  "tzid",
560
572
  "wkst",
561
573
  "freq"
562
574
  ], r)) return !0;
563
- if (!Qe(e.IMPLEMENTED[t.options.freq], r)) return !1;
575
+ if (!at(e.IMPLEMENTED[t.options.freq], r)) return !1;
564
576
  }
565
577
  return n;
566
578
  }, e.prototype.isFullyConvertible = function() {
@@ -628,7 +640,7 @@ var Xe = function(e) {
628
640
  }, e.prototype.monthtext = function(e) {
629
641
  return this.language.monthNames[e - 1];
630
642
  }, e.prototype.weekdaytext = function(e) {
631
- var t = O(e) ? (e + 1) % 7 : e.getJsWeekday();
643
+ var t = D(e) ? (e + 1) % 7 : e.getJsWeekday();
632
644
  return (e.n ? this.nth(e.n) + " " : "") + this.language.dayNames[t];
633
645
  }, e.prototype.plural = function(e) {
634
646
  return e % 100 != 1;
@@ -636,7 +648,7 @@ var Xe = function(e) {
636
648
  return this.text.push(" "), this.text.push(e), this;
637
649
  }, e.prototype.list = function(e, t, n, r) {
638
650
  var i = this;
639
- r === void 0 && (r = ","), k(e) || (e = [e]);
651
+ r === void 0 && (r = ","), O(e) || (e = [e]);
640
652
  var a = function(e, t, n) {
641
653
  for (var r = "", i = 0; i < e.length; i++) i !== 0 && (i === e.length - 1 ? r += " " + n + " " : r += t + " "), r += e[i];
642
654
  return r;
@@ -649,7 +661,7 @@ var Xe = function(e) {
649
661
  };
650
662
  return n ? a(e.map(o), r, n) : e.map(o).join(r + " ");
651
663
  }, e;
652
- }(), tt = function() {
664
+ }(), ct = function() {
653
665
  function e(e) {
654
666
  this.done = !0, this.rules = e;
655
667
  }
@@ -690,9 +702,9 @@ var Xe = function(e) {
690
702
  throw Error("expected " + e + " but found " + this.symbol);
691
703
  }, e;
692
704
  }();
693
- function nt(e, t) {
694
- t === void 0 && (t = Ze);
695
- var n = {}, r = new tt(t.tokens);
705
+ function lt(e, t) {
706
+ t === void 0 && (t = it);
707
+ var n = {}, r = new ct(t.tokens);
696
708
  return r.start(e) ? (i(), n) : null;
697
709
  function i() {
698
710
  r.expect("every");
@@ -859,19 +871,17 @@ function nt(e, t) {
859
871
  } else r.accept("for") && (n.count = parseInt(r.value[0], 10), r.expect("number"));
860
872
  }
861
873
  }
862
- //#endregion
863
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/types.js
874
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/types.js
864
875
  var G;
865
876
  (function(e) {
866
877
  e[e.YEARLY = 0] = "YEARLY", e[e.MONTHLY = 1] = "MONTHLY", e[e.WEEKLY = 2] = "WEEKLY", e[e.DAILY = 3] = "DAILY", e[e.HOURLY = 4] = "HOURLY", e[e.MINUTELY = 5] = "MINUTELY", e[e.SECONDLY = 6] = "SECONDLY";
867
878
  })(G ||= {});
868
- function rt(e) {
879
+ function ut(e) {
869
880
  return e < G.HOURLY;
870
881
  }
871
- //#endregion
872
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/nlp/index.js
873
- var it = function(e, t) {
874
- return t === void 0 && (t = Ze), new $(nt(e, t) || void 0);
882
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/nlp/index.js
883
+ var dt = function(e, t) {
884
+ return t === void 0 && (t = it), new $(lt(e, t) || void 0);
875
885
  }, K = [
876
886
  "count",
877
887
  "until",
@@ -881,9 +891,9 @@ var it = function(e, t) {
881
891
  "bymonth"
882
892
  ];
883
893
  W.IMPLEMENTED = [], W.IMPLEMENTED[G.HOURLY] = K, W.IMPLEMENTED[G.MINUTELY] = K, W.IMPLEMENTED[G.DAILY] = ["byhour"].concat(K), W.IMPLEMENTED[G.WEEKLY] = K, W.IMPLEMENTED[G.MONTHLY] = K, W.IMPLEMENTED[G.YEARLY] = ["byweekno", "byyearday"].concat(K);
884
- var at = function(e, t, n, r) {
894
+ var ft = function(e, t, n, r) {
885
895
  return new W(e, t, n, r).toString();
886
- }, ot = W.isFullyConvertible, st = function() {
896
+ }, pt = W.isFullyConvertible, mt = function() {
887
897
  function e(e, t, n, r) {
888
898
  this.hour = e, this.minute = t, this.second = n, this.millisecond = r || 0;
889
899
  }
@@ -898,8 +908,8 @@ var at = function(e, t, n, r) {
898
908
  }, e.prototype.getTime = function() {
899
909
  return (this.hour * 60 * 60 + this.minute * 60 + this.second) * 1e3 + this.millisecond;
900
910
  }, e;
901
- }(), ct = function(e) {
902
- Ye(t, e);
911
+ }(), ht = function(e) {
912
+ nt(t, e);
903
913
  function t(t, n, r, i, a, o, s) {
904
914
  var c = e.call(this, i, a, o, s) || this;
905
915
  return c.year = t, c.month = n, c.day = r, c;
@@ -920,7 +930,7 @@ var at = function(e, t, n, r) {
920
930
  this.year += e;
921
931
  }, t.prototype.addMonths = function(e) {
922
932
  if (this.month += e, this.month > 12) {
923
- var t = Math.floor(this.month / 12), n = N(this.month, 12);
933
+ var t = Math.floor(this.month / 12), n = M(this.month, 12);
924
934
  this.month = n, this.year += t, this.month === 0 && (this.month = 12, --this.year);
925
935
  }
926
936
  }, t.prototype.addWeekly = function(e, t) {
@@ -930,27 +940,27 @@ var at = function(e, t, n, r) {
930
940
  }, t.prototype.addHours = function(e, t, n) {
931
941
  for (t && (this.hour += Math.floor((23 - this.hour) / e) * e);;) {
932
942
  this.hour += e;
933
- var r = ke(this.hour, 24), i = r.div, a = r.mod;
934
- if (i && (this.hour = a, this.addDaily(i)), P(n) || I(n, this.hour)) break;
943
+ var r = Le(this.hour, 24), i = r.div, a = r.mod;
944
+ if (i && (this.hour = a, this.addDaily(i)), N(n) || F(n, this.hour)) break;
935
945
  }
936
946
  }, t.prototype.addMinutes = function(e, t, n, r) {
937
947
  for (t && (this.minute += Math.floor((1439 - (this.hour * 60 + this.minute)) / e) * e);;) {
938
948
  this.minute += e;
939
- var i = ke(this.minute, 60), a = i.div, o = i.mod;
940
- if (a && (this.minute = o, this.addHours(a, !1, n)), (P(n) || I(n, this.hour)) && (P(r) || I(r, this.minute))) break;
949
+ var i = Le(this.minute, 60), a = i.div, o = i.mod;
950
+ if (a && (this.minute = o, this.addHours(a, !1, n)), (N(n) || F(n, this.hour)) && (N(r) || F(r, this.minute))) break;
941
951
  }
942
952
  }, t.prototype.addSeconds = function(e, t, n, r, i) {
943
953
  for (t && (this.second += Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / e) * e);;) {
944
954
  this.second += e;
945
- var a = ke(this.second, 60), o = a.div, s = a.mod;
946
- if (o && (this.second = s, this.addMinutes(o, !1, n, r)), (P(n) || I(n, this.hour)) && (P(r) || I(r, this.minute)) && (P(i) || I(i, this.second))) break;
955
+ var a = Le(this.second, 60), o = a.div, s = a.mod;
956
+ if (o && (this.second = s, this.addMinutes(o, !1, n, r)), (N(n) || F(n, this.hour)) && (N(r) || F(r, this.minute)) && (N(i) || F(i, this.second))) break;
947
957
  }
948
958
  }, t.prototype.fixDay = function() {
949
959
  if (!(this.day <= 28)) {
950
- var e = Be(this.year, this.month - 1)[1];
960
+ var e = qe(this.year, this.month - 1)[1];
951
961
  if (!(this.day <= e)) for (; this.day > e;) {
952
962
  if (this.day -= e, ++this.month, this.month === 13 && (this.month = 1, ++this.year, this.year > 9999)) return;
953
- e = Be(this.year, this.month - 1)[1];
963
+ e = qe(this.year, this.month - 1)[1];
954
964
  }
955
965
  }
956
966
  }, t.prototype.add = function(e, t) {
@@ -965,28 +975,27 @@ var at = function(e, t, n, r) {
965
975
  case G.SECONDLY: return this.addSeconds(r, t, a, o, s);
966
976
  }
967
977
  }, t;
968
- }(st);
969
- //#endregion
970
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/parseoptions.js
971
- function lt(e) {
978
+ }(mt);
979
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/parseoptions.js
980
+ function gt(e) {
972
981
  for (var t = [], n = Object.keys(e), r = 0, i = n; r < i.length; r++) {
973
982
  var a = i[r];
974
- I(Yt, a) || t.push(a), Fe(e[a]) && !R(e[a]) && t.push(a);
983
+ F(nn, a) || t.push(a), He(e[a]) && !R(e[a]) && t.push(a);
975
984
  }
976
985
  if (t.length) throw Error("Invalid options: " + t.join(", "));
977
986
  return H({}, e);
978
987
  }
979
- function ut(e) {
980
- var t = H(H({}, Jt), lt(e));
981
- if (D(t.byeaster) && (t.freq = $.YEARLY), !(D(t.freq) && $.FREQUENCIES[t.freq])) throw Error(`Invalid frequency: ${t.freq} ${e.freq}`);
982
- if (t.dtstart ||= new Date((/* @__PURE__ */ new Date()).setMilliseconds(0)), D(t.wkst) ? O(t.wkst) || (t.wkst = t.wkst.weekday) : t.wkst = $.MO.weekday, D(t.bysetpos)) {
983
- O(t.bysetpos) && (t.bysetpos = [t.bysetpos]);
988
+ function _t(e) {
989
+ var t = H(H({}, tn), gt(e));
990
+ if (E(t.byeaster) && (t.freq = $.YEARLY), !(E(t.freq) && $.FREQUENCIES[t.freq])) throw Error(`Invalid frequency: ${t.freq} ${e.freq}`);
991
+ if (t.dtstart ||= new Date((/* @__PURE__ */ new Date()).setMilliseconds(0)), E(t.wkst) ? D(t.wkst) || (t.wkst = t.wkst.weekday) : t.wkst = $.MO.weekday, E(t.bysetpos)) {
992
+ D(t.bysetpos) && (t.bysetpos = [t.bysetpos]);
984
993
  for (var n = 0; n < t.bysetpos.length; n++) {
985
994
  var r = t.bysetpos[n];
986
995
  if (r === 0 || !(r >= -366 && r <= 366)) throw Error("bysetpos must be between 1 and 366, or between -366 and -1");
987
996
  }
988
997
  }
989
- if (!(t.byweekno || F(t.byweekno) || F(t.byyearday) || t.bymonthday || F(t.bymonthday) || D(t.byweekday) || D(t.byeaster))) switch (t.freq) {
998
+ if (!(t.byweekno || P(t.byweekno) || P(t.byyearday) || t.bymonthday || P(t.bymonthday) || E(t.byweekday) || E(t.byeaster))) switch (t.freq) {
990
999
  case $.YEARLY:
991
1000
  t.bymonth ||= t.dtstart.getUTCMonth() + 1, t.bymonthday = t.dtstart.getUTCDate();
992
1001
  break;
@@ -995,67 +1004,66 @@ function ut(e) {
995
1004
  break;
996
1005
  case $.WEEKLY: t.byweekday = [z(t.dtstart)];
997
1006
  }
998
- if (D(t.bymonth) && !k(t.bymonth) && (t.bymonth = [t.bymonth]), D(t.byyearday) && !k(t.byyearday) && O(t.byyearday) && (t.byyearday = [t.byyearday]), !D(t.bymonthday)) t.bymonthday = [], t.bynmonthday = [];
999
- else if (k(t.bymonthday)) {
1007
+ if (E(t.bymonth) && !O(t.bymonth) && (t.bymonth = [t.bymonth]), E(t.byyearday) && !O(t.byyearday) && D(t.byyearday) && (t.byyearday = [t.byyearday]), !E(t.bymonthday)) t.bymonthday = [], t.bynmonthday = [];
1008
+ else if (O(t.bymonthday)) {
1000
1009
  for (var i = [], a = [], n = 0; n < t.bymonthday.length; n++) {
1001
1010
  var r = t.bymonthday[n];
1002
1011
  r > 0 ? i.push(r) : r < 0 && a.push(r);
1003
1012
  }
1004
1013
  t.bymonthday = i, t.bynmonthday = a;
1005
1014
  } else t.bymonthday < 0 ? (t.bynmonthday = [t.bymonthday], t.bymonthday = []) : (t.bynmonthday = [], t.bymonthday = [t.bymonthday]);
1006
- if (D(t.byweekno) && !k(t.byweekno) && (t.byweekno = [t.byweekno]), !D(t.byweekday)) t.bynweekday = null;
1007
- else if (O(t.byweekday)) t.byweekday = [t.byweekday], t.bynweekday = null;
1008
- else if (Ee(t.byweekday)) t.byweekday = [E.fromStr(t.byweekday).weekday], t.bynweekday = null;
1009
- else if (t.byweekday instanceof E) !t.byweekday.n || t.freq > $.MONTHLY ? (t.byweekday = [t.byweekday.weekday], t.bynweekday = null) : (t.bynweekday = [[t.byweekday.weekday, t.byweekday.n]], t.byweekday = null);
1015
+ if (E(t.byweekno) && !O(t.byweekno) && (t.byweekno = [t.byweekno]), !E(t.byweekday)) t.bynweekday = null;
1016
+ else if (D(t.byweekday)) t.byweekday = [t.byweekday], t.bynweekday = null;
1017
+ else if (Pe(t.byweekday)) t.byweekday = [T.fromStr(t.byweekday).weekday], t.bynweekday = null;
1018
+ else if (t.byweekday instanceof T) !t.byweekday.n || t.freq > $.MONTHLY ? (t.byweekday = [t.byweekday.weekday], t.bynweekday = null) : (t.bynweekday = [[t.byweekday.weekday, t.byweekday.n]], t.byweekday = null);
1010
1019
  else {
1011
1020
  for (var o = [], s = [], n = 0; n < t.byweekday.length; n++) {
1012
1021
  var c = t.byweekday[n];
1013
- O(c) ? o.push(c) : Ee(c) ? o.push(E.fromStr(c).weekday) : !c.n || t.freq > $.MONTHLY ? o.push(c.weekday) : s.push([c.weekday, c.n]);
1022
+ D(c) ? o.push(c) : Pe(c) ? o.push(T.fromStr(c).weekday) : !c.n || t.freq > $.MONTHLY ? o.push(c.weekday) : s.push([c.weekday, c.n]);
1014
1023
  }
1015
- t.byweekday = F(o) ? o : null, t.bynweekday = F(s) ? s : null;
1024
+ t.byweekday = P(o) ? o : null, t.bynweekday = P(s) ? s : null;
1016
1025
  }
1017
- return D(t.byhour) ? O(t.byhour) && (t.byhour = [t.byhour]) : t.byhour = t.freq < $.HOURLY ? [t.dtstart.getUTCHours()] : null, D(t.byminute) ? O(t.byminute) && (t.byminute = [t.byminute]) : t.byminute = t.freq < $.MINUTELY ? [t.dtstart.getUTCMinutes()] : null, D(t.bysecond) ? O(t.bysecond) && (t.bysecond = [t.bysecond]) : t.bysecond = t.freq < $.SECONDLY ? [t.dtstart.getUTCSeconds()] : null, { parsedOptions: t };
1026
+ return E(t.byhour) ? D(t.byhour) && (t.byhour = [t.byhour]) : t.byhour = t.freq < $.HOURLY ? [t.dtstart.getUTCHours()] : null, E(t.byminute) ? D(t.byminute) && (t.byminute = [t.byminute]) : t.byminute = t.freq < $.MINUTELY ? [t.dtstart.getUTCMinutes()] : null, E(t.bysecond) ? D(t.bysecond) && (t.bysecond = [t.bysecond]) : t.bysecond = t.freq < $.SECONDLY ? [t.dtstart.getUTCSeconds()] : null, { parsedOptions: t };
1018
1027
  }
1019
- function dt(e) {
1028
+ function vt(e) {
1020
1029
  var t = e.dtstart.getTime() % 1e3;
1021
- if (!rt(e.freq)) return [];
1030
+ if (!ut(e.freq)) return [];
1022
1031
  var n = [];
1023
1032
  return e.byhour.forEach(function(r) {
1024
1033
  e.byminute.forEach(function(i) {
1025
1034
  e.bysecond.forEach(function(e) {
1026
- n.push(new st(r, i, e, t));
1035
+ n.push(new mt(r, i, e, t));
1027
1036
  });
1028
1037
  });
1029
1038
  }), n;
1030
1039
  }
1031
- //#endregion
1032
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/parsestring.js
1033
- function ft(e) {
1034
- var t = e.split("\n").map(mt).filter(function(e) {
1040
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/parsestring.js
1041
+ function yt(e) {
1042
+ var t = e.split("\n").map(xt).filter(function(e) {
1035
1043
  return e !== null;
1036
1044
  });
1037
1045
  return H(H({}, t[0]), t[1]);
1038
1046
  }
1039
- function pt(e) {
1047
+ function bt(e) {
1040
1048
  var t = {}, n = /DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);
1041
1049
  if (!n) return t;
1042
1050
  var r = n[1], i = n[2];
1043
- return r && (t.tzid = r), t.dtstart = Ge(i), t;
1051
+ return r && (t.tzid = r), t.dtstart = Qe(i), t;
1044
1052
  }
1045
- function mt(e) {
1053
+ function xt(e) {
1046
1054
  if (e = e.replace(/^\s+|\s+$/, ""), !e.length) return null;
1047
1055
  var t = /^([A-Z]+?)[:;]/.exec(e.toUpperCase());
1048
- if (!t) return ht(e);
1056
+ if (!t) return St(e);
1049
1057
  var n = t[1];
1050
1058
  switch (n.toUpperCase()) {
1051
1059
  case "RRULE":
1052
- case "EXRULE": return ht(e);
1053
- case "DTSTART": return pt(e);
1060
+ case "EXRULE": return St(e);
1061
+ case "DTSTART": return bt(e);
1054
1062
  default: throw Error(`Unsupported RFC prop ${n} in ${e}`);
1055
1063
  }
1056
1064
  }
1057
- function ht(e) {
1058
- var t = pt(e.replace(/^RRULE:/i, ""));
1065
+ function St(e) {
1066
+ var t = bt(e.replace(/^RRULE:/i, ""));
1059
1067
  return e.replace(/^(?:RRULE|EXRULE):/i, "").split(";").forEach(function(n) {
1060
1068
  var r = n.split("="), i = r[0], a = r[1];
1061
1069
  switch (i.toUpperCase()) {
@@ -1075,20 +1083,20 @@ function ht(e) {
1075
1083
  case "BYHOUR":
1076
1084
  case "BYMINUTE":
1077
1085
  case "BYSECOND":
1078
- var o = gt(a), s = i.toLowerCase();
1086
+ var o = Ct(a), s = i.toLowerCase();
1079
1087
  t[s] = o;
1080
1088
  break;
1081
1089
  case "BYWEEKDAY":
1082
1090
  case "BYDAY":
1083
- t.byweekday = vt(a);
1091
+ t.byweekday = Tt(a);
1084
1092
  break;
1085
1093
  case "DTSTART":
1086
1094
  case "TZID":
1087
- var c = pt(e);
1095
+ var c = bt(e);
1088
1096
  t.tzid = c.tzid, t.dtstart = c.dtstart;
1089
1097
  break;
1090
1098
  case "UNTIL":
1091
- t.until = Ge(a);
1099
+ t.until = Qe(a);
1092
1100
  break;
1093
1101
  case "BYEASTER":
1094
1102
  t.byeaster = Number(a);
@@ -1097,24 +1105,23 @@ function ht(e) {
1097
1105
  }
1098
1106
  }), t;
1099
1107
  }
1100
- function gt(e) {
1101
- return e.indexOf(",") === -1 ? _t(e) : e.split(",").map(_t);
1108
+ function Ct(e) {
1109
+ return e.indexOf(",") === -1 ? wt(e) : e.split(",").map(wt);
1102
1110
  }
1103
- function _t(e) {
1111
+ function wt(e) {
1104
1112
  return /^[+-]?\d+$/.test(e) ? Number(e) : e;
1105
1113
  }
1106
- function vt(e) {
1114
+ function Tt(e) {
1107
1115
  return e.split(",").map(function(e) {
1108
1116
  if (e.length === 2) return Q[e];
1109
1117
  var t = e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
1110
1118
  if (!t || t.length < 3) throw SyntaxError(`Invalid weekday string: ${e}`);
1111
1119
  var n = Number(t[1]), r = Q[t[2]].weekday;
1112
- return new E(r, n);
1120
+ return new T(r, n);
1113
1121
  });
1114
1122
  }
1115
- //#endregion
1116
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/datewithzone.js
1117
- var yt = function() {
1123
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/datewithzone.js
1124
+ var Et = function() {
1118
1125
  function e(e, t) {
1119
1126
  if (isNaN(e.getTime())) throw RangeError("Invalid date passed to DateWithZone");
1120
1127
  this.date = e, this.tzid = t;
@@ -1126,39 +1133,38 @@ var yt = function() {
1126
1133
  enumerable: !1,
1127
1134
  configurable: !0
1128
1135
  }), e.prototype.toString = function() {
1129
- var e = We(this.date.getTime(), this.isUTC);
1136
+ var e = Ze(this.date.getTime(), this.isUTC);
1130
1137
  return this.isUTC ? `:${e}` : `;TZID=${this.tzid}:${e}`;
1131
1138
  }, e.prototype.getTime = function() {
1132
1139
  return this.date.getTime();
1133
1140
  }, e.prototype.rezonedDate = function() {
1134
- return this.isUTC ? this.date : qe(this.date, this.tzid);
1141
+ return this.isUTC ? this.date : et(this.date, this.tzid);
1135
1142
  }, e;
1136
1143
  }();
1137
- //#endregion
1138
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/optionstostring.js
1139
- function bt(e) {
1140
- for (var t = [], n = "", r = Object.keys(e), i = Object.keys(Jt), a = 0; a < r.length; a++) if (r[a] !== "tzid" && I(i, r[a])) {
1144
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/optionstostring.js
1145
+ function Dt(e) {
1146
+ for (var t = [], n = "", r = Object.keys(e), i = Object.keys(tn), a = 0; a < r.length; a++) if (r[a] !== "tzid" && F(i, r[a])) {
1141
1147
  var o = r[a].toUpperCase(), s = e[r[a]], c = "";
1142
- if (!(!D(s) || k(s) && !s.length)) {
1148
+ if (!(!E(s) || O(s) && !s.length)) {
1143
1149
  switch (o) {
1144
1150
  case "FREQ":
1145
1151
  c = $.FREQUENCIES[e.freq];
1146
1152
  break;
1147
1153
  case "WKST":
1148
- c = O(s) ? new E(s).toString() : s.toString();
1154
+ c = D(s) ? new T(s).toString() : s.toString();
1149
1155
  break;
1150
1156
  case "BYWEEKDAY":
1151
- o = "BYDAY", c = De(s).map(function(e) {
1152
- return e instanceof E ? e : k(e) ? new E(e[0], e[1]) : new E(e);
1157
+ o = "BYDAY", c = Fe(s).map(function(e) {
1158
+ return e instanceof T ? e : O(e) ? new T(e[0], e[1]) : new T(e);
1153
1159
  }).toString();
1154
1160
  break;
1155
1161
  case "DTSTART":
1156
- n = xt(s, e.tzid);
1162
+ n = Ot(s, e.tzid);
1157
1163
  break;
1158
1164
  case "UNTIL":
1159
- c = We(s, !e.tzid);
1165
+ c = Ze(s, !e.tzid);
1160
1166
  break;
1161
- default: if (k(s)) {
1167
+ default: if (O(s)) {
1162
1168
  for (var l = [], u = 0; u < s.length; u++) l[u] = String(s[u]);
1163
1169
  c = l.toString();
1164
1170
  } else c = String(s);
@@ -1173,32 +1179,31 @@ function bt(e) {
1173
1179
  return !!e;
1174
1180
  }).join("\n");
1175
1181
  }
1176
- function xt(e, t) {
1177
- return e ? "DTSTART" + new yt(new Date(e), t).toString() : "";
1182
+ function Ot(e, t) {
1183
+ return e ? "DTSTART" + new Et(new Date(e), t).toString() : "";
1178
1184
  }
1179
- //#endregion
1180
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/cache.js
1181
- function St(e, t) {
1185
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/cache.js
1186
+ function kt(e, t) {
1182
1187
  return Array.isArray(e) ? !Array.isArray(t) || e.length !== t.length ? !1 : e.every(function(e, n) {
1183
1188
  return e.getTime() === t[n].getTime();
1184
1189
  }) : e instanceof Date ? t instanceof Date && e.getTime() === t.getTime() : e === t;
1185
1190
  }
1186
- var Ct = function() {
1191
+ var At = function() {
1187
1192
  function e() {
1188
1193
  this.all = !1, this.before = [], this.after = [], this.between = [];
1189
1194
  }
1190
1195
  return e.prototype._cacheAdd = function(e, t, n) {
1191
- t &&= t instanceof Date ? He(t) : Ue(t), e === "all" ? this.all = t : (n._value = t, this[e].push(n));
1196
+ t &&= t instanceof Date ? Ye(t) : Xe(t), e === "all" ? this.all = t : (n._value = t, this[e].push(n));
1192
1197
  }, e.prototype._cacheGet = function(e, t) {
1193
1198
  var n = !1, r = t ? Object.keys(t) : [], i = function(e) {
1194
1199
  for (var n = 0; n < r.length; n++) {
1195
1200
  var i = r[n];
1196
- if (!St(t[i], e[i])) return !0;
1201
+ if (!kt(t[i], e[i])) return !0;
1197
1202
  }
1198
1203
  return !1;
1199
1204
  }, a = this[e];
1200
1205
  if (e === "all") n = this.all;
1201
- else if (k(a)) for (var o = 0; o < a.length; o++) {
1206
+ else if (O(a)) for (var o = 0; o < a.length; o++) {
1202
1207
  var s = a[o];
1203
1208
  if (!(r.length && i(s))) {
1204
1209
  n = s._value;
@@ -1209,9 +1214,9 @@ var Ct = function() {
1209
1214
  for (var c = new V(e, t), o = 0; o < this.all.length && c.accept(this.all[o]); o++);
1210
1215
  n = c.getValue(), this._cacheAdd(e, n, t);
1211
1216
  }
1212
- return k(n) ? Ue(n) : n instanceof Date ? He(n) : n;
1217
+ return O(n) ? Xe(n) : n instanceof Date ? Ye(n) : n;
1213
1218
  }, e;
1214
- }(), wt = U(U(U(U(U(U(U(U(U(U(U(U(U([], j(1, 31), !0), j(2, 28), !0), j(3, 31), !0), j(4, 30), !0), j(5, 31), !0), j(6, 30), !0), j(7, 31), !0), j(8, 31), !0), j(9, 30), !0), j(10, 31), !0), j(11, 30), !0), j(12, 31), !0), j(1, 7), !0), Tt = U(U(U(U(U(U(U(U(U(U(U(U(U([], j(1, 31), !0), j(2, 29), !0), j(3, 31), !0), j(4, 30), !0), j(5, 31), !0), j(6, 30), !0), j(7, 31), !0), j(8, 31), !0), j(9, 30), !0), j(10, 31), !0), j(11, 30), !0), j(12, 31), !0), j(1, 7), !0), Et = A(1, 29), Dt = A(1, 30), q = A(1, 31), J = A(1, 32), Ot = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Dt, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), kt = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Et, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), At = A(-28, 0), jt = A(-29, 0), Y = A(-30, 0), X = A(-31, 0), Mt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), jt, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Nt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), At, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Pt = [
1219
+ }(), jt = U(U(U(U(U(U(U(U(U(U(U(U(U([], A(1, 31), !0), A(2, 28), !0), A(3, 31), !0), A(4, 30), !0), A(5, 31), !0), A(6, 30), !0), A(7, 31), !0), A(8, 31), !0), A(9, 30), !0), A(10, 31), !0), A(11, 30), !0), A(12, 31), !0), A(1, 7), !0), Mt = U(U(U(U(U(U(U(U(U(U(U(U(U([], A(1, 31), !0), A(2, 29), !0), A(3, 31), !0), A(4, 30), !0), A(5, 31), !0), A(6, 30), !0), A(7, 31), !0), A(8, 31), !0), A(9, 30), !0), A(10, 31), !0), A(11, 30), !0), A(12, 31), !0), A(1, 7), !0), Nt = k(1, 29), Pt = k(1, 30), q = k(1, 31), J = k(1, 32), Ft = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Pt, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), It = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Nt, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), Lt = k(-28, 0), Rt = k(-29, 0), Y = k(-30, 0), X = k(-31, 0), zt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), Rt, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Bt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), Lt, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Vt = [
1215
1220
  0,
1216
1221
  31,
1217
1222
  60,
@@ -1225,7 +1230,7 @@ var Ct = function() {
1225
1230
  305,
1226
1231
  335,
1227
1232
  366
1228
- ], Ft = [
1233
+ ], Ht = [
1229
1234
  0,
1230
1235
  31,
1231
1236
  59,
@@ -1239,24 +1244,23 @@ var Ct = function() {
1239
1244
  304,
1240
1245
  334,
1241
1246
  365
1242
- ], It = (function() {
1243
- for (var e = [], t = 0; t < 55; t++) e = e.concat(A(7));
1247
+ ], Ut = (function() {
1248
+ for (var e = [], t = 0; t < 55; t++) e = e.concat(k(7));
1244
1249
  return e;
1245
1250
  })();
1246
- //#endregion
1247
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/yearinfo.js
1248
- function Lt(e, t) {
1249
- var n = L(e, 1, 1), r = Pe(e) ? 366 : 365, i = Pe(e + 1) ? 366 : 365, a = Le(n), o = z(n), s = H(H({
1251
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/yearinfo.js
1252
+ function Wt(e, t) {
1253
+ var n = I(e, 1, 1), r = L(e) ? 366 : 365, i = L(e + 1) ? 366 : 365, a = We(n), o = z(n), s = H(H({
1250
1254
  yearlen: r,
1251
1255
  nextyearlen: i,
1252
1256
  yearordinal: a,
1253
1257
  yearweekday: o
1254
- }, Rt(e)), { wnomask: null });
1255
- if (P(t.byweekno)) return s;
1256
- s.wnomask = j(0, r + 7);
1257
- var c, l, u = c = N(7 - o + t.wkst, 7);
1258
- u >= 4 ? (u = 0, l = s.yearlen + N(o - t.wkst, 7)) : l = r - u;
1259
- for (var d = Math.floor(l / 7), f = N(l, 7), p = Math.floor(d + f / 4), m = 0; m < t.byweekno.length; m++) {
1258
+ }, Gt(e)), { wnomask: null });
1259
+ if (N(t.byweekno)) return s;
1260
+ s.wnomask = A(0, r + 7);
1261
+ var c, l, u = c = M(7 - o + t.wkst, 7);
1262
+ u >= 4 ? (u = 0, l = s.yearlen + M(o - t.wkst, 7)) : l = r - u;
1263
+ for (var d = Math.floor(l / 7), f = M(l, 7), p = Math.floor(d + f / 4), m = 0; m < t.byweekno.length; m++) {
1260
1264
  var h = t.byweekno[m];
1261
1265
  if (h < 0 && (h += p + 1), h > 0 && h <= p) {
1262
1266
  var g = void 0;
@@ -1264,77 +1268,74 @@ function Lt(e, t) {
1264
1268
  for (var _ = 0; _ < 7 && (s.wnomask[g] = 1, g++, s.wdaymask[g] !== t.wkst); _++);
1265
1269
  }
1266
1270
  }
1267
- if (I(t.byweekno, 1)) {
1271
+ if (F(t.byweekno, 1)) {
1268
1272
  var g = u + p * 7;
1269
1273
  if (u !== c && (g -= 7 - c), g < r) for (var m = 0; m < 7 && (s.wnomask[g] = 1, g += 1, s.wdaymask[g] !== t.wkst); m++);
1270
1274
  }
1271
1275
  if (u) {
1272
1276
  var v = void 0;
1273
- if (I(t.byweekno, -1)) v = -1;
1277
+ if (F(t.byweekno, -1)) v = -1;
1274
1278
  else {
1275
- var y = z(L(e - 1, 1, 1)), b = N(7 - y.valueOf() + t.wkst, 7), ee = Pe(e - 1) ? 366 : 365, x = void 0;
1276
- b >= 4 ? (b = 0, x = ee + N(y - t.wkst, 7)) : x = r - u, v = Math.floor(52 + N(x, 7) / 4);
1279
+ var y = z(I(e - 1, 1, 1)), b = M(7 - y.valueOf() + t.wkst, 7), ee = L(e - 1) ? 366 : 365, x = void 0;
1280
+ b >= 4 ? (b = 0, x = ee + M(y - t.wkst, 7)) : x = r - u, v = Math.floor(52 + M(x, 7) / 4);
1277
1281
  }
1278
- if (I(t.byweekno, v)) for (var g = 0; g < u; g++) s.wnomask[g] = 1;
1282
+ if (F(t.byweekno, v)) for (var g = 0; g < u; g++) s.wnomask[g] = 1;
1279
1283
  }
1280
1284
  return s;
1281
1285
  }
1282
- function Rt(e) {
1283
- var t = Pe(e) ? 366 : 365, n = z(L(e, 1, 1));
1286
+ function Gt(e) {
1287
+ var t = L(e) ? 366 : 365, n = z(I(e, 1, 1));
1284
1288
  return t === 365 ? {
1285
- mmask: wt,
1286
- mdaymask: kt,
1287
- nmdaymask: Nt,
1288
- wdaymask: It.slice(n),
1289
- mrange: Ft
1289
+ mmask: jt,
1290
+ mdaymask: It,
1291
+ nmdaymask: Bt,
1292
+ wdaymask: Ut.slice(n),
1293
+ mrange: Ht
1290
1294
  } : {
1291
- mmask: Tt,
1292
- mdaymask: Ot,
1293
- nmdaymask: Mt,
1294
- wdaymask: It.slice(n),
1295
- mrange: Pt
1295
+ mmask: Mt,
1296
+ mdaymask: Ft,
1297
+ nmdaymask: zt,
1298
+ wdaymask: Ut.slice(n),
1299
+ mrange: Vt
1296
1300
  };
1297
1301
  }
1298
- //#endregion
1299
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/monthinfo.js
1300
- function zt(e, t, n, r, i, a) {
1302
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/monthinfo.js
1303
+ function Kt(e, t, n, r, i, a) {
1301
1304
  var o = {
1302
1305
  lastyear: e,
1303
1306
  lastmonth: t,
1304
1307
  nwdaymask: []
1305
1308
  }, s = [];
1306
1309
  if (a.freq === $.YEARLY) {
1307
- if (P(a.bymonth)) s = [[0, n]];
1310
+ if (N(a.bymonth)) s = [[0, n]];
1308
1311
  else for (var c = 0; c < a.bymonth.length; c++) t = a.bymonth[c], s.push(r.slice(t - 1, t + 1));
1309
1312
  } else a.freq === $.MONTHLY && (s = [r.slice(t - 1, t + 1)]);
1310
- if (P(s)) return o;
1311
- o.nwdaymask = j(0, n);
1313
+ if (N(s)) return o;
1314
+ o.nwdaymask = A(0, n);
1312
1315
  for (var c = 0; c < s.length; c++) for (var l = s[c], u = l[0], d = l[1] - 1, f = 0; f < a.bynweekday.length; f++) {
1313
1316
  var p = void 0, m = a.bynweekday[f], h = m[0], g = m[1];
1314
- g < 0 ? (p = d + (g + 1) * 7, p -= N(i[p] - h, 7)) : (p = u + (g - 1) * 7, p += N(7 - i[p] + h, 7)), u <= p && p <= d && (o.nwdaymask[p] = 1);
1317
+ g < 0 ? (p = d + (g + 1) * 7, p -= M(i[p] - h, 7)) : (p = u + (g - 1) * 7, p += M(7 - i[p] + h, 7)), u <= p && p <= d && (o.nwdaymask[p] = 1);
1315
1318
  }
1316
1319
  return o;
1317
1320
  }
1318
- //#endregion
1319
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/easter.js
1320
- function Bt(e, t) {
1321
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/easter.js
1322
+ function qt(e, t) {
1321
1323
  t === void 0 && (t = 0);
1322
1324
  var n = e % 19, r = Math.floor(e / 100), i = e % 100, a = Math.floor(r / 4), o = r % 4, s = Math.floor((r + 8) / 25), c = Math.floor((r - s + 1) / 3), l = Math.floor(19 * n + r - a - c + 15) % 30, u = Math.floor(i / 4), d = i % 4, f = Math.floor(32 + 2 * o + 2 * u - l - d) % 7, p = Math.floor((n + 11 * l + 22 * f) / 451), m = Math.floor((l + f - 7 * p + 114) / 31), h = (l + f - 7 * p + 114) % 31 + 1, g = Date.UTC(e, m - 1, h + t);
1323
1325
  return [Math.ceil((g - Date.UTC(e, 0, 1)) / 864e5)];
1324
1326
  }
1325
- //#endregion
1326
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/index.js
1327
- var Vt = function() {
1327
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/index.js
1328
+ var Jt = function() {
1328
1329
  function e(e) {
1329
1330
  this.options = e;
1330
1331
  }
1331
1332
  return e.prototype.rebuild = function(e, t) {
1332
1333
  var n = this.options;
1333
- if (e !== this.lastyear && (this.yearinfo = Lt(e, n)), F(n.bynweekday) && (t !== this.lastmonth || e !== this.lastyear)) {
1334
+ if (e !== this.lastyear && (this.yearinfo = Wt(e, n)), P(n.bynweekday) && (t !== this.lastmonth || e !== this.lastyear)) {
1334
1335
  var r = this.yearinfo, i = r.yearlen, a = r.mrange, o = r.wdaymask;
1335
- this.monthinfo = zt(e, t, i, a, o, n);
1336
+ this.monthinfo = Kt(e, t, i, a, o, n);
1336
1337
  }
1337
- D(n.byeaster) && (this.eastermask = Bt(e, n.byeaster));
1338
+ E(n.byeaster) && (this.eastermask = qt(e, n.byeaster));
1338
1339
  }, Object.defineProperty(e.prototype, "lastyear", {
1339
1340
  get: function() {
1340
1341
  return this.monthinfo ? this.monthinfo.lastyear : null;
@@ -1409,26 +1410,26 @@ var Vt = function() {
1409
1410
  configurable: !0
1410
1411
  }), e.prototype.ydayset = function() {
1411
1412
  return [
1412
- A(this.yearlen),
1413
+ k(this.yearlen),
1413
1414
  0,
1414
1415
  this.yearlen
1415
1416
  ];
1416
1417
  }, e.prototype.mdayset = function(e, t) {
1417
- for (var n = this.mrange[t - 1], r = this.mrange[t], i = j(null, this.yearlen), a = n; a < r; a++) i[a] = a;
1418
+ for (var n = this.mrange[t - 1], r = this.mrange[t], i = A(null, this.yearlen), a = n; a < r; a++) i[a] = a;
1418
1419
  return [
1419
1420
  i,
1420
1421
  n,
1421
1422
  r
1422
1423
  ];
1423
1424
  }, e.prototype.wdayset = function(e, t, n) {
1424
- for (var r = j(null, this.yearlen + 7), i = Le(L(e, t, n)) - this.yearordinal, a = i, o = 0; o < 7 && (r[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); o++);
1425
+ for (var r = A(null, this.yearlen + 7), i = We(I(e, t, n)) - this.yearordinal, a = i, o = 0; o < 7 && (r[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); o++);
1425
1426
  return [
1426
1427
  r,
1427
1428
  a,
1428
1429
  i
1429
1430
  ];
1430
1431
  }, e.prototype.ddayset = function(e, t, n) {
1431
- var r = j(null, this.yearlen), i = Le(L(e, t, n)) - this.yearordinal;
1432
+ var r = A(null, this.yearlen), i = We(I(e, t, n)) - this.yearordinal;
1432
1433
  return r[i] = i, [
1433
1434
  r,
1434
1435
  i,
@@ -1441,11 +1442,11 @@ var Vt = function() {
1441
1442
  }), B(a), a;
1442
1443
  }, e.prototype.mtimeset = function(e, t, n, r) {
1443
1444
  var i = this.options.bysecond.map(function(n) {
1444
- return new st(e, t, n, r);
1445
+ return new mt(e, t, n, r);
1445
1446
  });
1446
1447
  return B(i), i;
1447
1448
  }, e.prototype.stimeset = function(e, t, n, r) {
1448
- return [new st(e, t, n, r)];
1449
+ return [new mt(e, t, n, r)];
1449
1450
  }, e.prototype.getdayset = function(e) {
1450
1451
  switch (e) {
1451
1452
  case G.YEARLY: return this.ydayset.bind(this);
@@ -1462,87 +1463,84 @@ var Vt = function() {
1462
1463
  }
1463
1464
  }, e;
1464
1465
  }();
1465
- //#endregion
1466
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iter/poslist.js
1467
- function Ht(e, t, n, r, i, a) {
1466
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iter/poslist.js
1467
+ function Yt(e, t, n, r, i, a) {
1468
1468
  for (var o = [], s = 0; s < e.length; s++) {
1469
1469
  var c = void 0, l = void 0, u = e[s];
1470
- u < 0 ? (c = Math.floor(u / t.length), l = N(u, t.length)) : (c = Math.floor((u - 1) / t.length), l = N(u - 1, t.length));
1470
+ u < 0 ? (c = Math.floor(u / t.length), l = M(u, t.length)) : (c = Math.floor((u - 1) / t.length), l = M(u - 1, t.length));
1471
1471
  for (var d = [], f = n; f < r; f++) {
1472
1472
  var p = a[f];
1473
- D(p) && d.push(p);
1473
+ E(p) && d.push(p);
1474
1474
  }
1475
1475
  var m = void 0;
1476
1476
  m = c < 0 ? d.slice(c)[0] : d[c];
1477
- var h = t[l], g = Ve(Re(i.yearordinal + m), h);
1478
- I(o, g) || o.push(g);
1477
+ var h = t[l], g = Je(Ge(i.yearordinal + m), h);
1478
+ F(o, g) || o.push(g);
1479
1479
  }
1480
1480
  return B(o), o;
1481
1481
  }
1482
- //#endregion
1483
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iter/index.js
1484
- function Ut(e, t) {
1482
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iter/index.js
1483
+ function Xt(e, t) {
1485
1484
  var n = t.dtstart, r = t.freq, i = t.interval, a = t.until, o = t.bysetpos, s = t.count;
1486
1485
  if (s === 0 || i === 0) return Z(e);
1487
- var c = ct.fromDate(n), l = new Vt(t);
1486
+ var c = ht.fromDate(n), l = new Jt(t);
1488
1487
  l.rebuild(c.year, c.month);
1489
- for (var u = qt(l, c, t);;) {
1490
- var d = l.getdayset(r)(c.year, c.month, c.day), f = d[0], p = d[1], m = d[2], h = Kt(f, p, m, l, t);
1491
- if (F(o)) for (var g = Ht(o, u, p, m, l, f), _ = 0; _ < g.length; _++) {
1488
+ for (var u = en(l, c, t);;) {
1489
+ var d = l.getdayset(r)(c.year, c.month, c.day), f = d[0], p = d[1], m = d[2], h = $t(f, p, m, l, t);
1490
+ if (P(o)) for (var g = Yt(o, u, p, m, l, f), _ = 0; _ < g.length; _++) {
1492
1491
  var v = g[_];
1493
1492
  if (a && v > a) return Z(e);
1494
1493
  if (v >= n) {
1495
- var y = Gt(v, t);
1494
+ var y = Qt(v, t);
1496
1495
  if (!e.accept(y) || s && (--s, !s)) return Z(e);
1497
1496
  }
1498
1497
  }
1499
1498
  else for (var _ = p; _ < m; _++) {
1500
1499
  var b = f[_];
1501
- if (D(b)) for (var ee = Re(l.yearordinal + b), x = 0; x < u.length; x++) {
1502
- var te = u[x], v = Ve(ee, te);
1500
+ if (E(b)) for (var ee = Ge(l.yearordinal + b), x = 0; x < u.length; x++) {
1501
+ var te = u[x], v = Je(ee, te);
1503
1502
  if (a && v > a) return Z(e);
1504
1503
  if (v >= n) {
1505
- var y = Gt(v, t);
1504
+ var y = Qt(v, t);
1506
1505
  if (!e.accept(y) || s && (--s, !s)) return Z(e);
1507
1506
  }
1508
1507
  }
1509
1508
  }
1510
1509
  if (t.interval === 0 || (c.add(t, h), c.year > 9999)) return Z(e);
1511
- rt(r) || (u = l.gettimeset(r)(c.hour, c.minute, c.second, 0)), l.rebuild(c.year, c.month);
1510
+ ut(r) || (u = l.gettimeset(r)(c.hour, c.minute, c.second, 0)), l.rebuild(c.year, c.month);
1512
1511
  }
1513
1512
  }
1514
- function Wt(e, t, n) {
1513
+ function Zt(e, t, n) {
1515
1514
  var r = n.bymonth, i = n.byweekno, a = n.byweekday, o = n.byeaster, s = n.bymonthday, c = n.bynmonthday, l = n.byyearday;
1516
- return F(r) && !I(r, e.mmask[t]) || F(i) && !e.wnomask[t] || F(a) && !I(a, e.wdaymask[t]) || F(e.nwdaymask) && !e.nwdaymask[t] || o !== null && !I(e.eastermask, t) || (F(s) || F(c)) && !I(s, e.mdaymask[t]) && !I(c, e.nmdaymask[t]) || F(l) && (t < e.yearlen && !I(l, t + 1) && !I(l, -e.yearlen + t) || t >= e.yearlen && !I(l, t + 1 - e.yearlen) && !I(l, -e.nextyearlen + t - e.yearlen));
1515
+ return P(r) && !F(r, e.mmask[t]) || P(i) && !e.wnomask[t] || P(a) && !F(a, e.wdaymask[t]) || P(e.nwdaymask) && !e.nwdaymask[t] || o !== null && !F(e.eastermask, t) || (P(s) || P(c)) && !F(s, e.mdaymask[t]) && !F(c, e.nmdaymask[t]) || P(l) && (t < e.yearlen && !F(l, t + 1) && !F(l, -e.yearlen + t) || t >= e.yearlen && !F(l, t + 1 - e.yearlen) && !F(l, -e.nextyearlen + t - e.yearlen));
1517
1516
  }
1518
- function Gt(e, t) {
1519
- return new yt(e, t.tzid).rezonedDate();
1517
+ function Qt(e, t) {
1518
+ return new Et(e, t.tzid).rezonedDate();
1520
1519
  }
1521
1520
  function Z(e) {
1522
1521
  return e.getValue();
1523
1522
  }
1524
- function Kt(e, t, n, r, i) {
1523
+ function $t(e, t, n, r, i) {
1525
1524
  for (var a = !1, o = t; o < n; o++) {
1526
1525
  var s = e[o];
1527
- a = Wt(r, s, i), a && (e[s] = null);
1526
+ a = Zt(r, s, i), a && (e[s] = null);
1528
1527
  }
1529
1528
  return a;
1530
1529
  }
1531
- function qt(e, t, n) {
1530
+ function en(e, t, n) {
1532
1531
  var r = n.freq, i = n.byhour, a = n.byminute, o = n.bysecond;
1533
- return rt(r) ? dt(n) : r >= $.HOURLY && F(i) && !I(i, t.hour) || r >= $.MINUTELY && F(a) && !I(a, t.minute) || r >= $.SECONDLY && F(o) && !I(o, t.second) ? [] : e.gettimeset(r)(t.hour, t.minute, t.second, t.millisecond);
1532
+ return ut(r) ? vt(n) : r >= $.HOURLY && P(i) && !F(i, t.hour) || r >= $.MINUTELY && P(a) && !F(a, t.minute) || r >= $.SECONDLY && P(o) && !F(o, t.second) ? [] : e.gettimeset(r)(t.hour, t.minute, t.second, t.millisecond);
1534
1533
  }
1535
- //#endregion
1536
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rrule.js
1534
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rrule.js
1537
1535
  var Q = {
1538
- MO: new E(0),
1539
- TU: new E(1),
1540
- WE: new E(2),
1541
- TH: new E(3),
1542
- FR: new E(4),
1543
- SA: new E(5),
1544
- SU: new E(6)
1545
- }, Jt = {
1536
+ MO: new T(0),
1537
+ TU: new T(1),
1538
+ WE: new T(2),
1539
+ TH: new T(3),
1540
+ FR: new T(4),
1541
+ SA: new T(5),
1542
+ SU: new T(6)
1543
+ }, tn = {
1546
1544
  freq: G.YEARLY,
1547
1545
  dtstart: null,
1548
1546
  interval: 1,
@@ -1562,26 +1560,26 @@ var Q = {
1562
1560
  byminute: null,
1563
1561
  bysecond: null,
1564
1562
  byeaster: null
1565
- }, Yt = Object.keys(Jt), $ = function() {
1563
+ }, nn = Object.keys(tn), $ = function() {
1566
1564
  function e(e, t) {
1567
- e === void 0 && (e = {}), t === void 0 && (t = !1), this._cache = t ? null : new Ct(), this.origOptions = lt(e);
1568
- var n = ut(e).parsedOptions;
1565
+ e === void 0 && (e = {}), t === void 0 && (t = !1), this._cache = t ? null : new At(), this.origOptions = gt(e);
1566
+ var n = _t(e).parsedOptions;
1569
1567
  this.options = n;
1570
1568
  }
1571
1569
  return e.parseText = function(e, t) {
1572
- return nt(e, t);
1570
+ return lt(e, t);
1573
1571
  }, e.fromText = function(e, t) {
1574
- return it(e, t);
1572
+ return dt(e, t);
1575
1573
  }, e.fromString = function(t) {
1576
1574
  return new e(e.parseString(t) || void 0);
1577
1575
  }, e.prototype._iter = function(e) {
1578
- return Ut(e, this.options);
1576
+ return Xt(e, this.options);
1579
1577
  }, e.prototype._cacheGet = function(e, t) {
1580
1578
  return this._cache ? this._cache._cacheGet(e, t) : !1;
1581
1579
  }, e.prototype._cacheAdd = function(e, t, n) {
1582
1580
  if (this._cache) return this._cache._cacheAdd(e, t, n);
1583
1581
  }, e.prototype.all = function(e) {
1584
- if (e) return this._iter(new Xe("all", {}, e));
1582
+ if (e) return this._iter(new rt("all", {}, e));
1585
1583
  var t = this._cacheGet("all");
1586
1584
  return t === !1 && (t = this._iter(new V("all", {})), this._cacheAdd("all", t)), t;
1587
1585
  }, e.prototype.between = function(e, t, n, r) {
@@ -1591,7 +1589,7 @@ var Q = {
1591
1589
  after: e,
1592
1590
  inc: n
1593
1591
  };
1594
- if (r) return this._iter(new Xe("between", i, r));
1592
+ if (r) return this._iter(new rt("between", i, r));
1595
1593
  var a = this._cacheGet("between", i);
1596
1594
  return a === !1 && (a = this._iter(new V("between", i)), this._cacheAdd("between", a, i)), a;
1597
1595
  }, e.prototype.before = function(e, t) {
@@ -1611,11 +1609,11 @@ var Q = {
1611
1609
  }, e.prototype.count = function() {
1612
1610
  return this.all().length;
1613
1611
  }, e.prototype.toString = function() {
1614
- return bt(this.origOptions);
1612
+ return Dt(this.origOptions);
1615
1613
  }, e.prototype.toText = function(e, t, n) {
1616
- return at(this, e, t, n);
1614
+ return ft(this, e, t, n);
1617
1615
  }, e.prototype.isFullyConvertibleToText = function() {
1618
- return ot(this);
1616
+ return pt(this);
1619
1617
  }, e.prototype.clone = function() {
1620
1618
  return new e(this.origOptions);
1621
1619
  }, e.FREQUENCIES = [
@@ -1626,11 +1624,10 @@ var Q = {
1626
1624
  "HOURLY",
1627
1625
  "MINUTELY",
1628
1626
  "SECONDLY"
1629
- ], e.YEARLY = G.YEARLY, e.MONTHLY = G.MONTHLY, e.WEEKLY = G.WEEKLY, e.DAILY = G.DAILY, e.HOURLY = G.HOURLY, e.MINUTELY = G.MINUTELY, e.SECONDLY = G.SECONDLY, e.MO = Q.MO, e.TU = Q.TU, e.WE = Q.WE, e.TH = Q.TH, e.FR = Q.FR, e.SA = Q.SA, e.SU = Q.SU, e.parseString = ft, e.optionsToString = bt, e;
1627
+ ], e.YEARLY = G.YEARLY, e.MONTHLY = G.MONTHLY, e.WEEKLY = G.WEEKLY, e.DAILY = G.DAILY, e.HOURLY = G.HOURLY, e.MINUTELY = G.MINUTELY, e.SECONDLY = G.SECONDLY, e.MO = Q.MO, e.TU = Q.TU, e.WE = Q.WE, e.TH = Q.TH, e.FR = Q.FR, e.SA = Q.SA, e.SU = Q.SU, e.parseString = yt, e.optionsToString = Dt, e;
1630
1628
  }();
1631
- //#endregion
1632
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterset.js
1633
- function Xt(e, t, n, r, i, a) {
1629
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterset.js
1630
+ function rn(e, t, n, r, i, a) {
1634
1631
  var o = {}, s = e.accept;
1635
1632
  function c(e, t) {
1636
1633
  n.forEach(function(n) {
@@ -1640,7 +1637,7 @@ function Xt(e, t, n, r, i, a) {
1640
1637
  });
1641
1638
  }
1642
1639
  i.forEach(function(e) {
1643
- var t = new yt(e, a).rezonedDate();
1640
+ var t = new Et(e, a).rezonedDate();
1644
1641
  o[Number(t)] = !0;
1645
1642
  }), e.accept = function(e) {
1646
1643
  var t = Number(e);
@@ -1650,11 +1647,11 @@ function Xt(e, t, n, r, i, a) {
1650
1647
  return o[t] ? !0 : (o[t] = !0, s.call(this, e));
1651
1648
  });
1652
1649
  for (var l = 0; l < r.length; l++) {
1653
- var u = new yt(r[l], a).rezonedDate();
1650
+ var u = new Et(r[l], a).rezonedDate();
1654
1651
  if (!e.accept(new Date(u.getTime()))) break;
1655
1652
  }
1656
1653
  t.forEach(function(t) {
1657
- Ut(e, t.options);
1654
+ Xt(e, t.options);
1658
1655
  });
1659
1656
  var d = e._result;
1660
1657
  switch (B(d), e.method) {
@@ -1664,9 +1661,8 @@ function Xt(e, t, n, r, i, a) {
1664
1661
  default: return d.length && d[0] || null;
1665
1662
  }
1666
1663
  }
1667
- //#endregion
1668
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rrulestr.js
1669
- var Zt = {
1664
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rrulestr.js
1665
+ var an = {
1670
1666
  dtstart: null,
1671
1667
  cache: !1,
1672
1668
  unfold: !1,
@@ -1674,26 +1670,26 @@ var Zt = {
1674
1670
  compatible: !1,
1675
1671
  tzid: null
1676
1672
  };
1677
- function Qt(e, t) {
1678
- var n = [], r = [], i = [], a = [], o = pt(e), s = o.dtstart, c = o.tzid;
1679
- return on(e, t.unfold).forEach(function(e) {
1673
+ function on(e, t) {
1674
+ var n = [], r = [], i = [], a = [], o = bt(e), s = o.dtstart, c = o.tzid;
1675
+ return pn(e, t.unfold).forEach(function(e) {
1680
1676
  if (e) {
1681
- var t = an(e), o = t.name, s = t.parms, l = t.value;
1677
+ var t = fn(e), o = t.name, s = t.parms, l = t.value;
1682
1678
  switch (o.toUpperCase()) {
1683
1679
  case "RRULE":
1684
1680
  if (s.length) throw Error(`unsupported RRULE parm: ${s.join(",")}`);
1685
- n.push(ft(e));
1681
+ n.push(yt(e));
1686
1682
  break;
1687
1683
  case "RDATE":
1688
1684
  var u = (/RDATE(?:;TZID=([^:=]+))?/i.exec(e) ?? [])[1];
1689
- u && !c && (c = u), r = r.concat(cn(l, s));
1685
+ u && !c && (c = u), r = r.concat(hn(l, s));
1690
1686
  break;
1691
1687
  case "EXRULE":
1692
1688
  if (s.length) throw Error(`unsupported EXRULE parm: ${s.join(",")}`);
1693
- i.push(ft(l));
1689
+ i.push(yt(l));
1694
1690
  break;
1695
1691
  case "EXDATE":
1696
- a = a.concat(cn(l, s));
1692
+ a = a.concat(hn(l, s));
1697
1693
  break;
1698
1694
  case "DTSTART": break;
1699
1695
  default: throw Error("unsupported property: " + o);
@@ -1708,52 +1704,52 @@ function Qt(e, t) {
1708
1704
  exdatevals: a
1709
1705
  };
1710
1706
  }
1711
- function $t(e, t) {
1712
- var n = Qt(e, t), r = n.rrulevals, i = n.rdatevals, a = n.exrulevals, o = n.exdatevals, s = n.dtstart, c = n.tzid, l = t.cache === !1;
1707
+ function sn(e, t) {
1708
+ var n = on(e, t), r = n.rrulevals, i = n.rdatevals, a = n.exrulevals, o = n.exdatevals, s = n.dtstart, c = n.tzid, l = t.cache === !1;
1713
1709
  if (t.compatible && (t.forceset = !0, t.unfold = !0), t.forceset || r.length > 1 || i.length || a.length || o.length) {
1714
- var u = new un(l);
1710
+ var u = new _n(l);
1715
1711
  return u.dtstart(s), u.tzid(c || void 0), r.forEach(function(e) {
1716
- u.rrule(new $(tn(e, s, c), l));
1712
+ u.rrule(new $(ln(e, s, c), l));
1717
1713
  }), i.forEach(function(e) {
1718
1714
  u.rdate(e);
1719
1715
  }), a.forEach(function(e) {
1720
- u.exrule(new $(tn(e, s, c), l));
1716
+ u.exrule(new $(ln(e, s, c), l));
1721
1717
  }), o.forEach(function(e) {
1722
1718
  u.exdate(e);
1723
1719
  }), t.compatible && t.dtstart && u.rdate(s), u;
1724
1720
  }
1725
1721
  var d = r[0] || {};
1726
- return new $(tn(d, d.dtstart || t.dtstart || s, d.tzid || t.tzid || c), l);
1722
+ return new $(ln(d, d.dtstart || t.dtstart || s, d.tzid || t.tzid || c), l);
1727
1723
  }
1728
- function en(e, t) {
1729
- return t === void 0 && (t = {}), $t(e, nn(t));
1724
+ function cn(e, t) {
1725
+ return t === void 0 && (t = {}), sn(e, un(t));
1730
1726
  }
1731
- function tn(e, t, n) {
1727
+ function ln(e, t, n) {
1732
1728
  return H(H({}, e), {
1733
1729
  dtstart: t,
1734
1730
  tzid: n
1735
1731
  });
1736
1732
  }
1737
- function nn(e) {
1738
- var t = [], n = Object.keys(e), r = Object.keys(Zt);
1733
+ function un(e) {
1734
+ var t = [], n = Object.keys(e), r = Object.keys(an);
1739
1735
  if (n.forEach(function(e) {
1740
- I(r, e) || t.push(e);
1736
+ F(r, e) || t.push(e);
1741
1737
  }), t.length) throw Error("Invalid options: " + t.join(", "));
1742
- return H(H({}, Zt), e);
1738
+ return H(H({}, an), e);
1743
1739
  }
1744
- function rn(e) {
1740
+ function dn(e) {
1745
1741
  if (e.indexOf(":") === -1) return {
1746
1742
  name: "RRULE",
1747
1743
  value: e
1748
1744
  };
1749
- var t = Oe(e, ":", 1);
1745
+ var t = Ie(e, ":", 1);
1750
1746
  return {
1751
1747
  name: t[0],
1752
1748
  value: t[1]
1753
1749
  };
1754
1750
  }
1755
- function an(e) {
1756
- var t = rn(e), n = t.name, r = t.value, i = n.split(";");
1751
+ function fn(e) {
1752
+ var t = dn(e), n = t.name, r = t.value, i = n.split(";");
1757
1753
  if (!i) throw Error("empty property name");
1758
1754
  return {
1759
1755
  name: i[0].toUpperCase(),
@@ -1761,7 +1757,7 @@ function an(e) {
1761
1757
  value: r
1762
1758
  };
1763
1759
  }
1764
- function on(e, t) {
1760
+ function pn(e, t) {
1765
1761
  if (t === void 0 && (t = !1), e &&= e.trim(), !e) throw Error("Invalid empty string");
1766
1762
  if (!t) return e.split(/\s/);
1767
1763
  for (var n = e.split("\n"), r = 0; r < n.length;) {
@@ -1770,19 +1766,18 @@ function on(e, t) {
1770
1766
  }
1771
1767
  return n;
1772
1768
  }
1773
- function sn(e) {
1769
+ function mn(e) {
1774
1770
  e.forEach(function(e) {
1775
1771
  if (!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e)) throw Error("unsupported RDATE/EXDATE parm: " + e);
1776
1772
  });
1777
1773
  }
1778
- function cn(e, t) {
1779
- return sn(t), e.split(",").map(function(e) {
1780
- return Ge(e);
1774
+ function hn(e, t) {
1775
+ return mn(t), e.split(",").map(function(e) {
1776
+ return Qe(e);
1781
1777
  });
1782
1778
  }
1783
- //#endregion
1784
- //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rruleset.js
1785
- function ln(e) {
1779
+ // ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rruleset.js
1780
+ function gn(e) {
1786
1781
  var t = this;
1787
1782
  return function(n) {
1788
1783
  if (n !== void 0 && (t[`_${e}`] = n), t[`_${e}`] !== void 0) return t[`_${e}`];
@@ -1792,30 +1787,30 @@ function ln(e) {
1792
1787
  }
1793
1788
  };
1794
1789
  }
1795
- var un = function(e) {
1796
- Ye(t, e);
1790
+ var _n = function(e) {
1791
+ nt(t, e);
1797
1792
  function t(t) {
1798
1793
  t === void 0 && (t = !1);
1799
1794
  var n = e.call(this, {}, t) || this;
1800
- return n.dtstart = ln.apply(n, ["dtstart"]), n.tzid = ln.apply(n, ["tzid"]), n._rrule = [], n._rdate = [], n._exrule = [], n._exdate = [], n;
1795
+ return n.dtstart = gn.apply(n, ["dtstart"]), n.tzid = gn.apply(n, ["tzid"]), n._rrule = [], n._rdate = [], n._exrule = [], n._exdate = [], n;
1801
1796
  }
1802
1797
  return t.prototype._iter = function(e) {
1803
- return Xt(e, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
1798
+ return rn(e, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
1804
1799
  }, t.prototype.rrule = function(e) {
1805
- dn(e, this._rrule);
1800
+ vn(e, this._rrule);
1806
1801
  }, t.prototype.exrule = function(e) {
1807
- dn(e, this._exrule);
1802
+ vn(e, this._exrule);
1808
1803
  }, t.prototype.rdate = function(e) {
1809
- fn(e, this._rdate);
1804
+ yn(e, this._rdate);
1810
1805
  }, t.prototype.exdate = function(e) {
1811
- fn(e, this._exdate);
1806
+ yn(e, this._exdate);
1812
1807
  }, t.prototype.rrules = function() {
1813
1808
  return this._rrule.map(function(e) {
1814
- return en(e.toString());
1809
+ return cn(e.toString());
1815
1810
  });
1816
1811
  }, t.prototype.exrules = function() {
1817
1812
  return this._exrule.map(function(e) {
1818
- return en(e.toString());
1813
+ return cn(e.toString());
1819
1814
  });
1820
1815
  }, t.prototype.rdates = function() {
1821
1816
  return this._rdate.map(function(e) {
@@ -1827,7 +1822,7 @@ var un = function(e) {
1827
1822
  });
1828
1823
  }, t.prototype.valueOf = function() {
1829
1824
  var e = [];
1830
- return !this._rrule.length && this._dtstart && (e = e.concat(bt({ dtstart: this._dtstart }))), this._rrule.forEach(function(t) {
1825
+ return !this._rrule.length && this._dtstart && (e = e.concat(Dt({ dtstart: this._dtstart }))), this._rrule.forEach(function(t) {
1831
1826
  e = e.concat(t.toString().split("\n"));
1832
1827
  }), this._exrule.forEach(function(t) {
1833
1828
  e = e.concat(t.toString().split("\n").map(function(e) {
@@ -1835,7 +1830,7 @@ var un = function(e) {
1835
1830
  }).filter(function(e) {
1836
1831
  return !/^DTSTART/.test(e);
1837
1832
  }));
1838
- }), this._rdate.length && e.push(pn("RDATE", this._rdate, this.tzid())), this._exdate.length && e.push(pn("EXDATE", this._exdate, this.tzid())), e;
1833
+ }), this._rdate.length && e.push(bn("RDATE", this._rdate, this.tzid())), this._exdate.length && e.push(bn("EXDATE", this._exdate, this.tzid())), e;
1839
1834
  }, t.prototype.toString = function() {
1840
1835
  return this.valueOf().join("\n");
1841
1836
  }, t.prototype.clone = function() {
@@ -1851,28 +1846,27 @@ var un = function(e) {
1851
1846
  }), e;
1852
1847
  }, t;
1853
1848
  }($);
1854
- function dn(e, t) {
1849
+ function vn(e, t) {
1855
1850
  if (!(e instanceof $)) throw TypeError(String(e) + " is not RRule instance");
1856
- I(t.map(String), String(e)) || t.push(e);
1851
+ F(t.map(String), String(e)) || t.push(e);
1857
1852
  }
1858
- function fn(e, t) {
1853
+ function yn(e, t) {
1859
1854
  if (!(e instanceof Date)) throw TypeError(String(e) + " is not Date instance");
1860
- I(t.map(Number), Number(e)) || (t.push(e), B(t));
1855
+ F(t.map(Number), Number(e)) || (t.push(e), B(t));
1861
1856
  }
1862
- function pn(e, t, n) {
1857
+ function bn(e, t, n) {
1863
1858
  var r = !n || n.toUpperCase() === "UTC";
1864
1859
  return `${r ? `${e}:` : `${e};TZID=${n}:`}${t.map(function(e) {
1865
- return We(e.valueOf(), r);
1860
+ return Ze(e.valueOf(), r);
1866
1861
  }).join(",")}`;
1867
1862
  }
1868
- //#endregion
1869
- //#region src/refreshScheduleOccurrences.ts
1870
- var mn = {
1863
+ // src/refreshScheduleOccurrences.ts
1864
+ var xn = {
1871
1865
  hourly: $.HOURLY,
1872
1866
  daily: $.DAILY,
1873
1867
  weekly: $.WEEKLY,
1874
1868
  monthly: $.MONTHLY
1875
- }, hn = [
1869
+ }, Sn = [
1876
1870
  $.MO,
1877
1871
  $.TU,
1878
1872
  $.WE,
@@ -1881,7 +1875,7 @@ var mn = {
1881
1875
  $.SA,
1882
1876
  $.SU
1883
1877
  ];
1884
- function gn(e, t) {
1878
+ function Cn(e, t) {
1885
1879
  let n = new Intl.DateTimeFormat("en-US", {
1886
1880
  timeZone: t,
1887
1881
  hourCycle: "h23",
@@ -1894,61 +1888,59 @@ function gn(e, t) {
1894
1888
  }).formatToParts(new Date(e)), r = (e) => Number(n.find((t) => t.type === e)?.value);
1895
1889
  return Date.UTC(r("year"), r("month") - 1, r("day"), r("hour"), r("minute"), r("second")) - e;
1896
1890
  }
1897
- var _n = 864e5;
1898
- function vn(e, t) {
1899
- let n = e.getTime(), r = gn(n - _n, t), i = gn(n + _n, t), a = [n - r, n - i].filter((e) => e + gn(e, t) === n);
1891
+ var wn = 864e5;
1892
+ function Tn(e, t) {
1893
+ let n = e.getTime(), r = Cn(n - wn, t), i = Cn(n + wn, t), a = [n - r, n - i].filter((e) => e + Cn(e, t) === n);
1900
1894
  return new Date(a.length ? Math.min(...a) : n - r);
1901
1895
  }
1902
- function yn(e, t = 3, n = /* @__PURE__ */ new Date()) {
1896
+ function En(e, t = 3, n = /* @__PURE__ */ new Date()) {
1903
1897
  let [r, i] = (e.freq === "hourly" ? "00:00" : e.time ?? "00:00").split(":").map(Number), [a, o, s] = e.startDate.split("-").map(Number), c = e.freq === "weekly", l = e.freq === "monthly" ? e.monthly : null, u = new $({
1904
- freq: mn[e.freq],
1898
+ freq: xn[e.freq],
1905
1899
  interval: Math.max(1, e.interval),
1906
1900
  dtstart: new Date(Date.UTC(a, o - 1, s, r, i)),
1907
- byweekday: c ? (e.weekdays.length ? e.weekdays : [ye(e.startDate)]).map((e) => hn[e]) : l && "nth" in l ? [hn[l.weekday]] : null,
1901
+ byweekday: c ? (e.weekdays.length ? e.weekdays : [De(e.startDate)]).map((e) => Sn[e]) : l && "nth" in l ? [Sn[l.weekday]] : null,
1908
1902
  bysetpos: l && "nth" in l ? l.nth : null,
1909
1903
  bymonthday: l && "day" in l ? l.day : null
1910
- }), d = new Date(n.getTime() + gn(n.getTime(), e.timezone)), f = [], p = u.after(d, !0);
1904
+ }), d = new Date(n.getTime() + Cn(n.getTime(), e.timezone)), f = [], p = u.after(d, !0);
1911
1905
  for (; p && f.length < t;) f.push({
1912
- at: vn(p, e.timezone),
1906
+ at: Tn(p, e.timezone),
1913
1907
  wall: p
1914
1908
  }), p = u.after(p, !1);
1915
1909
  return f;
1916
1910
  }
1917
- //#endregion
1918
- //#region src/taskPriority.ts
1919
- var bn = [
1911
+ // src/taskPriority.ts
1912
+ var Dn = [
1920
1913
  "low",
1921
1914
  "normal",
1922
1915
  "high",
1923
1916
  "urgent"
1924
- ], xn = {
1917
+ ], On = {
1925
1918
  low: "mdi-signal-cellular-1",
1926
1919
  normal: "mdi-signal-cellular-2",
1927
1920
  high: "mdi-signal-cellular-3",
1928
1921
  urgent: "mdi-alert"
1929
- }, Sn = {
1922
+ }, kn = {
1930
1923
  low: "blue-lighten-1",
1931
1924
  normal: "green-lighten-1",
1932
1925
  high: "yellow-lighten-1",
1933
1926
  urgent: "red-lighten-1"
1934
1927
  };
1935
- function Cn(e) {
1936
- return xn[e];
1928
+ function An(e) {
1929
+ return On[e];
1937
1930
  }
1938
- function wn(e) {
1939
- return Sn[e];
1931
+ function jn(e) {
1932
+ return kn[e];
1940
1933
  }
1941
- //#endregion
1942
- //#region src/useAntColorMode.ts
1943
- function Tn(e, n) {
1944
- let i = r(n), a = s(() => e.context.value.darkMode), o = s(() => {
1934
+ // src/useAntColorMode.ts
1935
+ function Mn(e, t) {
1936
+ let r = i(t), a = u(() => e.context.value.darkMode), o = u(() => {
1945
1937
  switch (a.value) {
1946
1938
  case null: return "auto";
1947
1939
  case !0: return "dark";
1948
1940
  case !1: return "light";
1949
- default: return i.value;
1941
+ default: return r.value;
1950
1942
  }
1951
- }), c = s(() => {
1943
+ }), s = u(() => {
1952
1944
  switch (o.value) {
1953
1945
  case "light":
1954
1946
  case "auto": return !1;
@@ -1957,31 +1949,29 @@ function Tn(e, n) {
1957
1949
  });
1958
1950
  return Object.assign(o, {
1959
1951
  host: a,
1960
- isDark: c
1961
- }, t(i, [
1952
+ isDark: s
1953
+ }, n(r, [
1962
1954
  "state",
1963
1955
  "system",
1964
1956
  "store"
1965
1957
  ]));
1966
1958
  }
1967
- //#endregion
1968
- //#region src/useAntI18n.ts
1969
- function En(e, t) {
1970
- let n = _(t);
1971
- return g(() => e.context.value.user?.language, (e) => n.locale.value = e ?? "en", { immediate: !0 }), n;
1959
+ // src/useAntI18n.ts
1960
+ function Nn(e, t) {
1961
+ let n = ee(t);
1962
+ return y(() => e.context.value.user?.language, (e) => n.locale.value = e ?? "en", { immediate: !0 }), n;
1972
1963
  }
1973
- //#endregion
1974
- //#region src/useAppQueryParam.ts
1975
- function Dn(e) {
1964
+ // src/useAppQueryParam.ts
1965
+ function Pn(e) {
1976
1966
  let t = Array.isArray(e) ? e[0] : e;
1977
1967
  return typeof t == "string" && t !== "" ? t : null;
1978
1968
  }
1979
- function On(e, t, n = {}) {
1980
- let r = m(void 0), i = e.signal.receive((e) => {
1981
- e.route?.query && (r.value = Dn(e.route.query[t]));
1969
+ function Fn(e, t, n = {}) {
1970
+ let r = _(void 0), i = e.signal.receive((e) => {
1971
+ e.route?.query && (r.value = Pn(e.route.query[t]));
1982
1972
  });
1983
- return d(i), s({
1984
- get: () => r.value === void 0 ? Dn(e.context.value?.initialRouteQuery?.[t]) : r.value,
1973
+ return m(i), u({
1974
+ get: () => r.value === void 0 ? Pn(e.context.value?.initialRouteQuery?.[t]) : r.value,
1985
1975
  set: (i) => {
1986
1976
  r.value = i, e.signal({ route: {
1987
1977
  query: { [t]: i },
@@ -1990,67 +1980,65 @@ function On(e, t, n = {}) {
1990
1980
  }
1991
1981
  });
1992
1982
  }
1993
- //#endregion
1994
- //#region src/useAppTourMode.ts
1995
- var kn = m(!1), An = m(null);
1996
- function jn() {
1983
+ // src/useAppTourMode.ts
1984
+ var In = _(!1), Ln = _(null);
1985
+ function Rn() {
1997
1986
  function e(e) {
1998
- g(() => e.value.tourMode, (e) => {
1999
- kn.value = !!e, e || (An.value = null);
1987
+ y(() => e.value.tourMode, (e) => {
1988
+ In.value = !!e, e || (Ln.value = null);
2000
1989
  }, { immediate: !0 });
2001
1990
  }
2002
1991
  function t(e) {
2003
- kn.value && (An.value = e);
1992
+ In.value && (Ln.value = e);
2004
1993
  }
2005
1994
  function n() {
2006
- kn.value = !1, An.value = null;
1995
+ In.value = !1, Ln.value = null;
2007
1996
  }
2008
1997
  return {
2009
- isActive: p(kn),
2010
- activeZoneId: p(An),
1998
+ isActive: g(In),
1999
+ activeZoneId: g(Ln),
2011
2000
  connectContext: e,
2012
2001
  setActiveZone: t,
2013
2002
  exit: n
2014
2003
  };
2015
2004
  }
2016
- //#endregion
2017
- //#region src/useCommsClient.ts
2018
- function Mn(t, n, r) {
2019
- let i = m({}), a = b({
2005
+ // src/useCommsClient.ts
2006
+ function zn(e, n, r) {
2007
+ let i = _({}), a = ne({
2020
2008
  parent: window.parent,
2021
- connect: t,
2009
+ connect: e,
2022
2010
  manifest: r
2023
- }), o = m(""), c = s({
2011
+ }), o = _(""), s = u({
2024
2012
  get: () => o.value,
2025
2013
  set: (e) => a.appState.set(e)
2026
2014
  });
2027
- return a.context.subscribe((e) => i.value = e), ne(a.appState.get(), a.appState).subscribe((e) => o.value = e), Pn(a.signal, a, n), l(() => a.unsubscribe()), Object.assign(e(a, [
2015
+ return a.context.subscribe((e) => i.value = e), S(a.appState.get(), a.appState).subscribe((e) => o.value = e), Vn(a.signal, a, n), f(() => a.unsubscribe()), Object.assign(t(a, [
2028
2016
  "context",
2029
2017
  "toolbar",
2030
2018
  "appState"
2031
2019
  ]), {
2032
2020
  context: i,
2033
- toolbar: Nn(a),
2034
- appState: c
2021
+ toolbar: Bn(a),
2022
+ appState: s
2035
2023
  });
2036
2024
  }
2037
- function Nn(e) {
2038
- let t = m(""), n = {
2039
- title: s({
2025
+ function Bn(e) {
2026
+ let t = _(""), n = {
2027
+ title: u({
2040
2028
  get: () => e.toolbar.get().title,
2041
2029
  set: (t) => e.toolbar.set((e) => ({
2042
2030
  ...e,
2043
2031
  title: t
2044
2032
  }))
2045
2033
  }),
2046
- subtitle: s({
2034
+ subtitle: u({
2047
2035
  get: () => e.toolbar.get().subtitle,
2048
2036
  set: (t) => e.toolbar.set((e) => ({
2049
2037
  ...e,
2050
2038
  subtitle: t
2051
2039
  }))
2052
2040
  }),
2053
- searchEnabled: s({
2041
+ searchEnabled: u({
2054
2042
  get: () => e.toolbar.get().search.enabled,
2055
2043
  set: (t) => e.toolbar.set((e) => ({
2056
2044
  ...e,
@@ -2060,7 +2048,7 @@ function Nn(e) {
2060
2048
  }
2061
2049
  }))
2062
2050
  }),
2063
- search: s({
2051
+ search: u({
2064
2052
  get: () => t.value,
2065
2053
  set: (t) => e.toolbar.set((e) => ({
2066
2054
  ...e,
@@ -2070,14 +2058,14 @@ function Nn(e) {
2070
2058
  }
2071
2059
  }))
2072
2060
  }),
2073
- menu: s({
2061
+ menu: u({
2074
2062
  get: () => e.toolbar.get().menu ?? [],
2075
2063
  set: (t) => e.toolbar.set((e) => ({
2076
2064
  ...e,
2077
2065
  menu: t
2078
2066
  }))
2079
2067
  }),
2080
- isLoading: s({
2068
+ isLoading: u({
2081
2069
  get: () => e.toolbar.get().isLoading,
2082
2070
  set: (t) => e.toolbar.set((e) => ({
2083
2071
  ...e,
@@ -2085,69 +2073,100 @@ function Nn(e) {
2085
2073
  }))
2086
2074
  })
2087
2075
  };
2088
- return e.toolbar.pipe(C((e) => e.search.input ?? ""), ae(), ie(300)).forEach((e) => t.value = e), n;
2076
+ return e.toolbar.pipe(ce((e) => e.search.input ?? ""), w(), oe(300)).forEach((e) => t.value = e), n;
2089
2077
  }
2090
- function Pn(e, t, n) {
2091
- let r = i(), a = r.ctrl ?? s(() => !1), c = r.shift ?? s(() => !1), l = new te(), u = l.pipe(re(n ?? ((e) => Promise.resolve(e))), re((t) => e(t))).subscribe();
2092
- return t.add(u), u.add(o(a, () => l.next({ hotkeys: { ctrl: !0 } }))), u.add(o(c, () => l.next({ hotkeys: { shift: !0 } }))), u;
2078
+ function Vn(e, t, n) {
2079
+ let r = a(), i = r.ctrl ?? u(() => !1), o = r.shift ?? u(() => !1), s = new ae(), c = s.pipe(C(n ?? ((e) => Promise.resolve(e))), C((t) => e(t))).subscribe();
2080
+ return t.add(c), c.add(l(i, () => s.next({ hotkeys: { ctrl: !0 } }))), c.add(l(o, () => s.next({ hotkeys: { shift: !0 } }))), c;
2093
2081
  }
2094
- //#endregion
2095
- //#region src/useCommsHost.ts
2096
- function Fn(e) {
2097
- let { context: t } = e, n = new x({}), r = (e) => n.next(e(n.value)), i = m(), o = new x(void 0), c = g(i, (e) => o.next(e), { immediate: !0 }), l = o.asObservable().pipe(C((e) => e?.contentWindow), S((e) => !!e)), u = ee({
2082
+ // src/useCommsHost.ts
2083
+ function Hn(e) {
2084
+ let { context: t } = e, n = new ie({}), r = (e) => n.next(e(n.value)), i = _(), a = new ie(void 0), o = y(i, (e) => a.next(e), { immediate: !0 }), s = a.asObservable().pipe(ce((e) => e?.contentWindow), se((e) => !!e)), l = re({
2098
2085
  ...e,
2099
2086
  contextChanges: n,
2100
- windowChanges: l
2087
+ windowChanges: s
2101
2088
  });
2102
- Object.entries(t).map(([e, t]) => g(t, (t) => r((n) => ({
2089
+ Object.entries(t).map(([e, t]) => y(t, (t) => r((n) => ({
2103
2090
  ...n,
2104
- [e]: v(t)
2105
- })), { immediate: !0 })).forEach((e) => u.scope.add(e)), u.toolbar.subscribe((t) => {
2091
+ [e]: x(t)
2092
+ })), { immediate: !0 })).forEach((e) => l.scope.add(e)), l.toolbar.subscribe((t) => {
2106
2093
  let n = e.toolbar;
2107
2094
  n.title.value = t.title, n.subtitle.value = t.subtitle, n.searchEnabled.value = t.search?.enabled ?? !1, n.search.value = t.search?.input, n.menu.value = t.menu, n.isLoading.value = t?.isLoading ?? !1;
2108
2095
  });
2109
- let d = a(e.toolbar.search, (e) => u.toolbar.set.search(e), {
2096
+ let d = c(e.toolbar.search, (e) => l.toolbar.set.search(e), {
2110
2097
  immediate: !0,
2111
2098
  debounce: 100
2112
2099
  });
2113
- u.scope.add(c), u.scope.add(d);
2114
- let f = m(u.appState.get()), p = s({
2100
+ l.scope.add(o), l.scope.add(d);
2101
+ let f = _(l.appState.get()), p = u({
2115
2102
  get: () => f.value,
2116
- set: (e) => u.appState.set(e)
2103
+ set: (e) => l.appState.set(e)
2117
2104
  });
2118
- u.appState.changes.subscribe((e) => f.value = e);
2119
- let h = m(!1);
2120
- u.isConnectionInitialized.subscribe((e) => h.value = e);
2121
- let _ = m(null);
2122
- u.manifest?.subscribe((e) => _.value = e);
2123
- let { unsubscribe: y, signal: b, closed: te } = u;
2105
+ l.appState.changes.subscribe((e) => f.value = e);
2106
+ let m = _(!1);
2107
+ l.isConnectionInitialized.subscribe((e) => m.value = e);
2108
+ let h = _(null);
2109
+ l.manifest?.subscribe((e) => h.value = e);
2110
+ let { unsubscribe: g, signal: v, closed: b } = l;
2124
2111
  return {
2125
2112
  ...e,
2126
2113
  client: i,
2127
2114
  appState: p,
2128
- isConnectionInitialized: h,
2129
- manifest: _,
2130
- unsubscribe: y,
2131
- signal: b,
2132
- closed: te
2115
+ isConnectionInitialized: m,
2116
+ manifest: h,
2117
+ unsubscribe: g,
2118
+ signal: v,
2119
+ closed: b
2133
2120
  };
2134
2121
  }
2135
- //#endregion
2136
- //#region src/useFeature.ts
2137
- function In(e, t) {
2138
- return s(() => e.value?.features?.[t] === !0);
2122
+ // src/useDeviceClass.ts
2123
+ var Un = {
2124
+ handheld: 768,
2125
+ phone: 1105,
2126
+ tablet: 1280
2127
+ }, Wn = e(() => {
2128
+ let { width: e, height: t } = s(), n = o("(pointer: coarse)"), r = u(() => {
2129
+ let t = e.value;
2130
+ return t < Un.handheld || t < Un.phone && n.value ? "phone" : t < Un.tablet ? "tablet" : "desktop";
2131
+ });
2132
+ return typeof document < "u" && b(() => {
2133
+ document.documentElement.dataset.device = r.value, document.documentElement.dataset.pointer = n.value ? "coarse" : "fine";
2134
+ }), {
2135
+ device: r,
2136
+ isPhone: u(() => r.value === "phone"),
2137
+ isTablet: u(() => r.value === "tablet"),
2138
+ isDesktop: u(() => r.value === "desktop"),
2139
+ isCoarsePointer: n,
2140
+ isPortrait: u(() => t.value >= e.value),
2141
+ width: e,
2142
+ height: t
2143
+ };
2144
+ });
2145
+ // src/useFeature.ts
2146
+ function Gn(e, t) {
2147
+ return u(() => e.value?.features?.[t] === !0);
2148
+ }
2149
+ // src/useHostDevice.ts
2150
+ function Kn(e) {
2151
+ let t = Wn(), n = u(() => e.value?.device?.class ?? t.device.value);
2152
+ return {
2153
+ device: n,
2154
+ isPhone: u(() => n.value === "phone"),
2155
+ isTablet: u(() => n.value === "tablet"),
2156
+ isDesktop: u(() => n.value === "desktop"),
2157
+ isTouch: u(() => e.value?.device?.touch ?? t.isCoarsePointer.value)
2158
+ };
2139
2159
  }
2140
- //#endregion
2141
- //#region src/usePermissions.ts
2142
- function Ln(e) {
2143
- let t = s(() => e.value?.user), n = s(() => e.value?.license), r = s(() => e.value?.project), i = s(() => !!t.value?.is_admin), a = s(() => !!n.value?.user_is_admin), o = s(() => !!r.value?.user_is_admin || a.value);
2144
- function c(e) {
2160
+ // src/usePermissions.ts
2161
+ function qn(e) {
2162
+ let t = u(() => e.value?.user), n = u(() => e.value?.license), r = u(() => e.value?.project), i = u(() => !!t.value?.is_admin), a = u(() => !!n.value?.user_is_admin), o = u(() => !!r.value?.user_is_admin || a.value);
2163
+ function s(e) {
2145
2164
  return !t.value || !n.value ? !1 : i.value || a.value ? !0 : (n.value.user_roles ?? []).some((t) => t.name === e);
2146
2165
  }
2147
- function l(e) {
2166
+ function c(e) {
2148
2167
  return !t.value || !n.value ? !1 : i.value || a.value ? !0 : !!n.value.user_permissions?.[String(e)];
2149
2168
  }
2150
- function u(e) {
2169
+ function l(e) {
2151
2170
  return !t.value || !r.value ? !1 : i.value || a.value || o.value ? !0 : (r.value.user_roles ?? []).some((t) => t.name === e);
2152
2171
  }
2153
2172
  function d(e) {
@@ -2157,58 +2176,57 @@ function Ln(e) {
2157
2176
  isGlobalAdmin: i,
2158
2177
  isLicenseAdmin: a,
2159
2178
  isProjectAdmin: o,
2160
- hasLicenseRole: c,
2161
- hasLicensePermission: l,
2162
- hasProjectRole: u,
2179
+ hasLicenseRole: s,
2180
+ hasLicensePermission: c,
2181
+ hasProjectRole: l,
2163
2182
  hasProjectPermission: d
2164
2183
  };
2165
2184
  }
2166
- //#endregion
2167
- //#region src/useTemplateVersioning.ts
2168
- function Rn(e) {
2169
- let t = h(null), n = h(null), r = h(null), i = h(null), a = h([]), o = h(null), c = m(!1), l = m(!1), u = m(!1), d = m(!1), f = m(!1), p = m(!1), g = s(() => t.value?.has_update ?? !1), _ = s(() => t.value?.current_version ?? null), v = s(() => t.value?.latest_version ?? null), y = s(() => n.value ? n.value.added.length + n.value.removed.length + n.value.modified.length + n.value.relations_added.length + n.value.relations_removed.length : 0);
2185
+ // src/useTemplateVersioning.ts
2186
+ function Jn(e) {
2187
+ let t = v(null), n = v(null), r = v(null), i = v(null), a = v([]), o = v(null), s = _(!1), c = _(!1), l = _(!1), d = _(!1), f = _(!1), p = _(!1), m = u(() => t.value?.has_update ?? !1), h = u(() => t.value?.current_version ?? null), g = u(() => t.value?.latest_version ?? null), y = u(() => n.value ? n.value.added.length + n.value.removed.length + n.value.modified.length + n.value.relations_added.length + n.value.relations_removed.length : 0);
2170
2188
  async function b(n) {
2171
- c.value = !0;
2189
+ s.value = !0;
2172
2190
  try {
2173
2191
  let r = await e.tasks.checkForUpdates(n);
2174
2192
  return t.value = r?.data ?? null, t.value;
2175
2193
  } catch {
2176
2194
  return t.value = null, null;
2177
2195
  } finally {
2178
- c.value = !1;
2196
+ s.value = !1;
2179
2197
  }
2180
2198
  }
2181
2199
  async function ee(t, r) {
2182
- l.value = !0;
2200
+ c.value = !0;
2183
2201
  try {
2184
2202
  let i = await e.tasks.versionDiff(t, r);
2185
2203
  return n.value = i?.data ?? null, n.value;
2186
2204
  } catch {
2187
2205
  return n.value = null, null;
2188
2206
  } finally {
2189
- l.value = !1;
2207
+ c.value = !1;
2190
2208
  }
2191
2209
  }
2192
2210
  async function x(t, r, i) {
2193
- l.value = !0;
2211
+ c.value = !0;
2194
2212
  try {
2195
2213
  let a = await e.tasks.versionCompare(t, r, i);
2196
2214
  return n.value = a?.data ?? null, n.value;
2197
2215
  } catch {
2198
2216
  return n.value = null, null;
2199
2217
  } finally {
2200
- l.value = !1;
2218
+ c.value = !1;
2201
2219
  }
2202
2220
  }
2203
2221
  async function te(t) {
2204
- u.value = !0;
2222
+ l.value = !0;
2205
2223
  try {
2206
2224
  let n = await e.tasks.versionDiffOriginal(t);
2207
2225
  return r.value = n?.data ?? null, r.value;
2208
2226
  } catch {
2209
2227
  return r.value = null, null;
2210
2228
  } finally {
2211
- u.value = !1;
2229
+ l.value = !1;
2212
2230
  }
2213
2231
  }
2214
2232
  async function ne(r, a) {
@@ -2252,8 +2270,8 @@ function Rn(e) {
2252
2270
  return o.value = null, null;
2253
2271
  }
2254
2272
  }
2255
- let S = h([]), C = m(!1), w = m(!1), T = h([]);
2256
- async function oe(t) {
2273
+ let S = v([]), C = _(!1), oe = _(!1), w = v([]);
2274
+ async function se(t) {
2257
2275
  C.value = !0;
2258
2276
  try {
2259
2277
  let n = await e.tasks.getInstances(t);
@@ -2264,19 +2282,19 @@ function Rn(e) {
2264
2282
  C.value = !1;
2265
2283
  }
2266
2284
  }
2267
- async function se(t, n) {
2268
- w.value = !0, T.value = [];
2285
+ async function ce(t, n) {
2286
+ oe.value = !0, w.value = [];
2269
2287
  try {
2270
2288
  let r = await e.tasks.pushSync(t, n);
2271
- return T.value = r?.data ?? [], T.value;
2289
+ return w.value = r?.data ?? [], w.value;
2272
2290
  } catch {
2273
- return T.value = [], [];
2291
+ return w.value = [], [];
2274
2292
  } finally {
2275
- w.value = !1;
2293
+ oe.value = !1;
2276
2294
  }
2277
2295
  }
2278
- function ce() {
2279
- t.value = null, n.value = null, r.value = null, i.value = null, a.value = [], o.value = null, S.value = [], T.value = [];
2296
+ function le() {
2297
+ t.value = null, n.value = null, r.value = null, i.value = null, a.value = [], o.value = null, S.value = [], w.value = [];
2280
2298
  }
2281
2299
  return {
2282
2300
  updateCheck: t,
@@ -2286,18 +2304,18 @@ function Rn(e) {
2286
2304
  versions: a,
2287
2305
  latestVersion: o,
2288
2306
  instances: S,
2289
- pushSyncResults: T,
2290
- isCheckingUpdate: c,
2291
- isFetchingDiff: l,
2292
- isFetchingCustomizations: u,
2307
+ pushSyncResults: w,
2308
+ isCheckingUpdate: s,
2309
+ isFetchingDiff: c,
2310
+ isFetchingCustomizations: l,
2293
2311
  isSyncing: d,
2294
2312
  isPublishing: f,
2295
2313
  isFetchingVersions: p,
2296
2314
  isFetchingInstances: C,
2297
- isPushSyncing: w,
2298
- hasUpdate: g,
2299
- currentVersion: _,
2300
- availableVersion: v,
2315
+ isPushSyncing: oe,
2316
+ hasUpdate: m,
2317
+ currentVersion: h,
2318
+ availableVersion: g,
2301
2319
  totalChanges: y,
2302
2320
  checkForUpdates: b,
2303
2321
  fetchDiff: ee,
@@ -2307,16 +2325,15 @@ function Rn(e) {
2307
2325
  publishVersion: re,
2308
2326
  fetchVersions: ie,
2309
2327
  fetchLatestVersion: ae,
2310
- fetchInstances: oe,
2311
- pushSync: se,
2312
- reset: ce
2328
+ fetchInstances: se,
2329
+ pushSync: ce,
2330
+ reset: le
2313
2331
  };
2314
2332
  }
2315
- //#endregion
2316
- //#region src/useTriggerDispatch.ts
2317
- function zn(e, t = {}) {
2333
+ // src/useTriggerDispatch.ts
2334
+ function Yn(e, t = {}) {
2318
2335
  let n = t.authorizationTimeoutMs ?? 3e5, r = /* @__PURE__ */ new Set();
2319
- d(() => {
2336
+ m(() => {
2320
2337
  for (let e of r) e();
2321
2338
  });
2322
2339
  function i(t) {
@@ -2335,36 +2352,34 @@ function zn(e, t = {}) {
2335
2352
  }
2336
2353
  async function a(e) {
2337
2354
  let t = await e();
2338
- return !y(t) || !await i(t) ? t : e();
2355
+ return !te(t) || !await i(t) ? t : e();
2339
2356
  }
2340
2357
  return { dispatch: a };
2341
2358
  }
2342
- //#endregion
2343
- //#region src/utils.ts
2344
- function Bn(e = "comms") {
2345
- let [t, n] = Vn(e, () => Mn(), (e) => e.unsubscribe());
2359
+ // src/utils.ts
2360
+ function Xn(e = "comms") {
2361
+ let [t, n] = Zn(e, () => zn(), (e) => e.unsubscribe());
2346
2362
  return {
2347
2363
  provideComms: t,
2348
2364
  injectComms: n
2349
2365
  };
2350
2366
  }
2351
- function Vn(e, t, n) {
2367
+ function Zn(e, t, n) {
2352
2368
  let r, i = () => (!r && (r = t()), r);
2353
- return [(t) => (t.onUnmount(() => n && r && n(r)), t.provide(e, i)), () => c(e)()];
2369
+ return [(t) => (t.onUnmount(() => n && r && n(r)), t.provide(e, i)), () => d(e)()];
2354
2370
  }
2355
- function Hn(t, r, i) {
2356
- let a = n(t, r, {
2371
+ function Qn(e, n, i) {
2372
+ let a = r(e, n, {
2357
2373
  immediate: !1,
2358
2374
  ...i
2359
2375
  });
2360
- return Object.assign(e(a, ["execute"]), {
2376
+ return Object.assign(t(a, ["execute"]), {
2361
2377
  execute: (...e) => a.execute(void 0, ...e),
2362
2378
  executeDelayed: a.execute
2363
2379
  });
2364
2380
  }
2365
- function Un(e) {
2366
- let t, n = m(void 0);
2367
- return u(() => t = e.signal.receive((e) => n.value = e)), f(() => t?.()), [p(n), () => t?.()];
2381
+ function $n(e) {
2382
+ let t, n = _(void 0);
2383
+ return p(() => t = e.signal.receive((e) => n.value = e)), h(() => t?.()), [g(n), () => t?.()];
2368
2384
  }
2369
- //#endregion
2370
- export { pe as SCHEDULE_DAYS, bn as TASK_PRIORITIES, _e as browserZone, be as buildScheduleRule, ve as defaultScheduleSpec, we as describeRefresh, le as formatDate, ue as formatDateRange, fe as formatRefreshLabel, yn as nextOccurrences, Ce as parseScheduleRule, wn as taskPriorityColor, Cn as taskPriorityIcon, Tn as useAntColorMode, En as useAntI18n, Hn as useApi, On as useAppQueryParam, jn as useAppTourMode, Mn as useCommsClient, Fn as useCommsHost, Bn as useCommsInjection, In as useFeature, Ln as usePermissions, Un as useSignal, Vn as useSingleton, Rn as useTemplateVersioning, zn as useTriggerDispatch, ye as weekdayOf };
2385
+ export { Un as DEVICE_BREAKPOINTS, xe as SCHEDULE_DAYS, Dn as TASK_PRIORITIES, le as apiErrorMessage, Te as browserZone, Oe as buildScheduleRule, Ee as defaultScheduleSpec, Me as describeRefresh, de as deviceTypeIcon, _e as formatDate, ve as formatDateRange, be as formatRefreshLabel, En as nextOccurrences, je as parseScheduleRule, jn as taskPriorityColor, An as taskPriorityIcon, Mn as useAntColorMode, Nn as useAntI18n, Qn as useApi, Fn as useAppQueryParam, Rn as useAppTourMode, zn as useCommsClient, Hn as useCommsHost, Xn as useCommsInjection, Wn as useDeviceClass, Gn as useFeature, Kn as useHostDevice, qn as usePermissions, $n as useSignal, Zn as useSingleton, Jn as useTemplateVersioning, Yn as useTriggerDispatch, De as weekdayOf };