@sigtes/ui 0.2.9 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/components/avatar/Avatar.d.ts +4 -1
  2. package/dist/components/checkbox/Checkbox.d.ts +1 -1
  3. package/dist/components/dialog/Dialog.d.ts +1 -1
  4. package/dist/components/dropdown-menu/Dropdown-Menu.d.ts +1 -1
  5. package/dist/components/form/Form.d.ts +1 -1
  6. package/dist/components/label/Label.d.ts +1 -1
  7. package/dist/components/select/Select.d.ts +1 -1
  8. package/dist/components/separator/Separator.d.ts +1 -1
  9. package/dist/components/table/index.d.ts +2 -2
  10. package/dist/components/tabs/Tabs.d.ts +1 -1
  11. package/dist/components.cjs.js +4 -4397
  12. package/dist/components.es.js +2685 -112392
  13. package/dist/pages.cjs.js +1 -1
  14. package/dist/pages.es.js +7 -8
  15. package/dist/providers.es-DW20XFKL.cjs +43 -0
  16. package/dist/providers.es-DkWBRd2l.js +2362 -0
  17. package/dist/utils/index.d.ts +1 -0
  18. package/package.json +6 -17
  19. package/dist/Button-BOLYI9iw.js +0 -69
  20. package/dist/Button-ObM8zTKC.cjs +0 -1
  21. package/dist/UserProvider-Sov75KqP.cjs +0 -22
  22. package/dist/UserProvider-ultyW1kJ.js +0 -395
  23. package/dist/hooks/index.d.ts +0 -6
  24. package/dist/hooks/useAuthorization/index.d.ts +0 -1
  25. package/dist/hooks/useAuthorization/useAuthorization.d.ts +0 -2
  26. package/dist/hooks/useErrors/index.d.ts +0 -1
  27. package/dist/hooks/useErrors/useErrors.d.ts +0 -13
  28. package/dist/hooks/useFormState/index.d.ts +0 -1
  29. package/dist/hooks/useFormState/useFormState.d.ts +0 -18
  30. package/dist/hooks/useQuery/index.d.ts +0 -1
  31. package/dist/hooks/useQuery/useQuery.d.ts +0 -9
  32. package/dist/hooks.cjs.js +0 -1
  33. package/dist/hooks.es.js +0 -73
  34. package/dist/locale-provider-TirFJhph.cjs +0 -1
  35. package/dist/locale-provider-XVCCI6ZB.js +0 -831
  36. package/dist/models/date/date.d.ts +0 -26
  37. package/dist/models/date/index.d.ts +0 -1
  38. package/dist/models/index.d.ts +0 -1
  39. package/dist/models.cjs.js +0 -1
  40. package/dist/models.es.js +0 -170
  41. package/dist/providers/index.d.ts +0 -3
  42. package/dist/providers/locale-provider/index.d.ts +0 -1
  43. package/dist/providers/locale-provider/locale-provider.d.ts +0 -11
  44. package/dist/providers/theme-provider/ThemeProvider.d.ts +0 -3
  45. package/dist/providers/theme-provider/index.d.ts +0 -2
  46. package/dist/providers/user-provider/UserProvider.d.ts +0 -25
  47. package/dist/providers/user-provider/index.d.ts +0 -1
  48. package/dist/providers.cjs.js +0 -1
  49. package/dist/providers.es.js +0 -21
@@ -0,0 +1,2362 @@
1
+ "use client";
2
+ import Ft, { createContext as At, useContext as Lt } from "react";
3
+ import { Slot as re } from "@radix-ui/react-slot";
4
+ import { cva as ne } from "class-variance-authority";
5
+ import { twMerge as ae } from "tailwind-merge";
6
+ import "next-themes";
7
+ var ct = { exports: {} }, V = {};
8
+ /**
9
+ * @license React
10
+ * react-jsx-runtime.production.js
11
+ *
12
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+ var St;
18
+ function oe() {
19
+ if (St) return V;
20
+ St = 1;
21
+ var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
22
+ function n(t, a, i) {
23
+ var s = null;
24
+ if (i !== void 0 && (s = "" + i), a.key !== void 0 && (s = "" + a.key), "key" in a) {
25
+ i = {};
26
+ for (var c in a)
27
+ c !== "key" && (i[c] = a[c]);
28
+ } else i = a;
29
+ return a = i.ref, {
30
+ $$typeof: e,
31
+ type: t,
32
+ key: s,
33
+ ref: a !== void 0 ? a : null,
34
+ props: i
35
+ };
36
+ }
37
+ return V.Fragment = r, V.jsx = n, V.jsxs = n, V;
38
+ }
39
+ var K = {};
40
+ /**
41
+ * @license React
42
+ * react-jsx-runtime.development.js
43
+ *
44
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */
49
+ var Mt;
50
+ function ie() {
51
+ return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && (function() {
52
+ function e(o) {
53
+ if (o == null) return null;
54
+ if (typeof o == "function")
55
+ return o.$$typeof === pt ? null : o.displayName || o.name || null;
56
+ if (typeof o == "string") return o;
57
+ switch (o) {
58
+ case D:
59
+ return "Fragment";
60
+ case P:
61
+ return "Profiler";
62
+ case A:
63
+ return "StrictMode";
64
+ case ft:
65
+ return "Suspense";
66
+ case ht:
67
+ return "SuspenseList";
68
+ case gt:
69
+ return "Activity";
70
+ }
71
+ if (typeof o == "object")
72
+ switch (typeof o.tag == "number" && console.error(
73
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
74
+ ), o.$$typeof) {
75
+ case I:
76
+ return "Portal";
77
+ case E:
78
+ return (o.displayName || "Context") + ".Provider";
79
+ case H:
80
+ return (o._context.displayName || "Context") + ".Consumer";
81
+ case dt:
82
+ var u = o.render;
83
+ return o = o.displayName, o || (o = u.displayName || u.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
84
+ case mt:
85
+ return u = o.displayName || null, u !== null ? u : e(o.type) || "Memo";
86
+ case q:
87
+ u = o._payload, o = o._init;
88
+ try {
89
+ return e(o(u));
90
+ } catch {
91
+ }
92
+ }
93
+ return null;
94
+ }
95
+ function r(o) {
96
+ return "" + o;
97
+ }
98
+ function n(o) {
99
+ try {
100
+ r(o);
101
+ var u = !1;
102
+ } catch {
103
+ u = !0;
104
+ }
105
+ if (u) {
106
+ u = console;
107
+ var l = u.error, d = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
108
+ return l.call(
109
+ u,
110
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
+ d
112
+ ), r(o);
113
+ }
114
+ }
115
+ function t(o) {
116
+ if (o === D) return "<>";
117
+ if (typeof o == "object" && o !== null && o.$$typeof === q)
118
+ return "<...>";
119
+ try {
120
+ var u = e(o);
121
+ return u ? "<" + u + ">" : "<...>";
122
+ } catch {
123
+ return "<...>";
124
+ }
125
+ }
126
+ function a() {
127
+ var o = N.A;
128
+ return o === null ? null : o.getOwner();
129
+ }
130
+ function i() {
131
+ return Error("react-stack-top-frame");
132
+ }
133
+ function s(o) {
134
+ if (Z.call(o, "key")) {
135
+ var u = Object.getOwnPropertyDescriptor(o, "key").get;
136
+ if (u && u.isReactWarning) return !1;
137
+ }
138
+ return o.key !== void 0;
139
+ }
140
+ function c(o, u) {
141
+ function l() {
142
+ B || (B = !0, console.error(
143
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
144
+ u
145
+ ));
146
+ }
147
+ l.isReactWarning = !0, Object.defineProperty(o, "key", {
148
+ get: l,
149
+ configurable: !0
150
+ });
151
+ }
152
+ function m() {
153
+ var o = e(this.type);
154
+ return G[o] || (G[o] = !0, console.error(
155
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
156
+ )), o = this.props.ref, o !== void 0 ? o : null;
157
+ }
158
+ function w(o, u, l, d, S, b, Y, _) {
159
+ return l = b.ref, o = {
160
+ $$typeof: O,
161
+ type: o,
162
+ key: u,
163
+ props: b,
164
+ _owner: S
165
+ }, (l !== void 0 ? l : null) !== null ? Object.defineProperty(o, "ref", {
166
+ enumerable: !1,
167
+ get: m
168
+ }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
169
+ configurable: !1,
170
+ enumerable: !1,
171
+ writable: !0,
172
+ value: 0
173
+ }), Object.defineProperty(o, "_debugInfo", {
174
+ configurable: !1,
175
+ enumerable: !1,
176
+ writable: !0,
177
+ value: null
178
+ }), Object.defineProperty(o, "_debugStack", {
179
+ configurable: !1,
180
+ enumerable: !1,
181
+ writable: !0,
182
+ value: Y
183
+ }), Object.defineProperty(o, "_debugTask", {
184
+ configurable: !1,
185
+ enumerable: !1,
186
+ writable: !0,
187
+ value: _
188
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
189
+ }
190
+ function y(o, u, l, d, S, b, Y, _) {
191
+ var f = u.children;
192
+ if (f !== void 0)
193
+ if (d)
194
+ if (yt(f)) {
195
+ for (d = 0; d < f.length; d++)
196
+ g(f[d]);
197
+ Object.freeze && Object.freeze(f);
198
+ } else
199
+ console.error(
200
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
201
+ );
202
+ else g(f);
203
+ if (Z.call(u, "key")) {
204
+ f = e(o);
205
+ var M = Object.keys(u).filter(function(bt) {
206
+ return bt !== "key";
207
+ });
208
+ d = 0 < M.length ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}", J[f + d] || (M = 0 < M.length ? "{" + M.join(": ..., ") + ": ...}" : "{}", console.error(
209
+ `A props object containing a "key" prop is being spread into JSX:
210
+ let props = %s;
211
+ <%s {...props} />
212
+ React keys must be passed directly to JSX without using spread:
213
+ let props = %s;
214
+ <%s key={someKey} {...props} />`,
215
+ d,
216
+ f,
217
+ M,
218
+ f
219
+ ), J[f + d] = !0);
220
+ }
221
+ if (f = null, l !== void 0 && (n(l), f = "" + l), s(u) && (n(u.key), f = "" + u.key), "key" in u) {
222
+ l = {};
223
+ for (var j in u)
224
+ j !== "key" && (l[j] = u[j]);
225
+ } else l = u;
226
+ return f && c(
227
+ l,
228
+ typeof o == "function" ? o.displayName || o.name || "Unknown" : o
229
+ ), w(
230
+ o,
231
+ f,
232
+ b,
233
+ S,
234
+ a(),
235
+ l,
236
+ Y,
237
+ _
238
+ );
239
+ }
240
+ function g(o) {
241
+ typeof o == "object" && o !== null && o.$$typeof === O && o._store && (o._store.validated = 1);
242
+ }
243
+ var k = Ft, O = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), H = Symbol.for("react.consumer"), E = Symbol.for("react.context"), dt = Symbol.for("react.forward_ref"), ft = Symbol.for("react.suspense"), ht = Symbol.for("react.suspense_list"), mt = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), gt = Symbol.for("react.activity"), pt = Symbol.for("react.client.reference"), N = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, yt = Array.isArray, C = console.createTask ? console.createTask : function() {
244
+ return null;
245
+ };
246
+ k = {
247
+ react_stack_bottom_frame: function(o) {
248
+ return o();
249
+ }
250
+ };
251
+ var B, G = {}, X = k.react_stack_bottom_frame.bind(
252
+ k,
253
+ i
254
+ )(), Q = C(t(i)), J = {};
255
+ K.Fragment = D, K.jsx = function(o, u, l, d, S) {
256
+ var b = 1e4 > N.recentlyCreatedOwnerStacks++;
257
+ return y(
258
+ o,
259
+ u,
260
+ l,
261
+ !1,
262
+ d,
263
+ S,
264
+ b ? Error("react-stack-top-frame") : X,
265
+ b ? C(t(o)) : Q
266
+ );
267
+ }, K.jsxs = function(o, u, l, d, S) {
268
+ var b = 1e4 > N.recentlyCreatedOwnerStacks++;
269
+ return y(
270
+ o,
271
+ u,
272
+ l,
273
+ !0,
274
+ d,
275
+ S,
276
+ b ? Error("react-stack-top-frame") : X,
277
+ b ? C(t(o)) : Q
278
+ );
279
+ };
280
+ })()), K;
281
+ }
282
+ var Tt;
283
+ function se() {
284
+ return Tt || (Tt = 1, process.env.NODE_ENV === "production" ? ct.exports = oe() : ct.exports = ie()), ct.exports;
285
+ }
286
+ var ue = se();
287
+ const ce = ne(
288
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
289
+ {
290
+ variants: {
291
+ variant: {
292
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
293
+ destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
294
+ outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
295
+ secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
296
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
297
+ link: "text-primary underline-offset-4 hover:underline"
298
+ },
299
+ size: {
300
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
301
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
302
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
303
+ icon: "size-9"
304
+ }
305
+ },
306
+ defaultVariants: {
307
+ variant: "default",
308
+ size: "default"
309
+ }
310
+ }
311
+ );
312
+ function $t(e) {
313
+ var r, n, t = "";
314
+ if (typeof e == "string" || typeof e == "number") t += e;
315
+ else if (typeof e == "object") if (Array.isArray(e)) {
316
+ var a = e.length;
317
+ for (r = 0; r < a; r++) e[r] && (n = $t(e[r])) && (t && (t += " "), t += n);
318
+ } else for (n in e) e[n] && (t && (t += " "), t += n);
319
+ return t;
320
+ }
321
+ function le() {
322
+ for (var e, r, n = 0, t = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (r = $t(e)) && (t && (t += " "), t += r);
323
+ return t;
324
+ }
325
+ function de(...e) {
326
+ return ae(le(e));
327
+ }
328
+ function Jr({
329
+ className: e,
330
+ variant: r,
331
+ size: n,
332
+ asChild: t = !1,
333
+ ...a
334
+ }) {
335
+ const i = t ? re : "button";
336
+ return /* @__PURE__ */ ue.jsx(
337
+ i,
338
+ {
339
+ "data-slot": "button",
340
+ className: de(ce({ variant: r, size: n, className: e })),
341
+ ...a
342
+ }
343
+ );
344
+ }
345
+ var vt = { exports: {} }, tt = {};
346
+ /**
347
+ * @license React
348
+ * react-jsx-runtime.production.js
349
+ *
350
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
351
+ *
352
+ * This source code is licensed under the MIT license found in the
353
+ * LICENSE file in the root directory of this source tree.
354
+ */
355
+ var Ot;
356
+ function fe() {
357
+ if (Ot) return tt;
358
+ Ot = 1;
359
+ var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
360
+ function n(t, a, i) {
361
+ var s = null;
362
+ if (i !== void 0 && (s = "" + i), a.key !== void 0 && (s = "" + a.key), "key" in a) {
363
+ i = {};
364
+ for (var c in a)
365
+ c !== "key" && (i[c] = a[c]);
366
+ } else i = a;
367
+ return a = i.ref, {
368
+ $$typeof: e,
369
+ type: t,
370
+ key: s,
371
+ ref: a !== void 0 ? a : null,
372
+ props: i
373
+ };
374
+ }
375
+ return tt.Fragment = r, tt.jsx = n, tt.jsxs = n, tt;
376
+ }
377
+ var lt = {};
378
+ /**
379
+ * @license React
380
+ * react-jsx-runtime.development.js
381
+ *
382
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
383
+ *
384
+ * This source code is licensed under the MIT license found in the
385
+ * LICENSE file in the root directory of this source tree.
386
+ */
387
+ var Dt;
388
+ function he() {
389
+ return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && (function() {
390
+ function e(o) {
391
+ if (o == null) return null;
392
+ if (typeof o == "function")
393
+ return o.$$typeof === pt ? null : o.displayName || o.name || null;
394
+ if (typeof o == "string") return o;
395
+ switch (o) {
396
+ case D:
397
+ return "Fragment";
398
+ case P:
399
+ return "Profiler";
400
+ case A:
401
+ return "StrictMode";
402
+ case ft:
403
+ return "Suspense";
404
+ case ht:
405
+ return "SuspenseList";
406
+ case gt:
407
+ return "Activity";
408
+ }
409
+ if (typeof o == "object")
410
+ switch (typeof o.tag == "number" && console.error(
411
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
412
+ ), o.$$typeof) {
413
+ case I:
414
+ return "Portal";
415
+ case E:
416
+ return (o.displayName || "Context") + ".Provider";
417
+ case H:
418
+ return (o._context.displayName || "Context") + ".Consumer";
419
+ case dt:
420
+ var u = o.render;
421
+ return o = o.displayName, o || (o = u.displayName || u.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
422
+ case mt:
423
+ return u = o.displayName || null, u !== null ? u : e(o.type) || "Memo";
424
+ case q:
425
+ u = o._payload, o = o._init;
426
+ try {
427
+ return e(o(u));
428
+ } catch {
429
+ }
430
+ }
431
+ return null;
432
+ }
433
+ function r(o) {
434
+ return "" + o;
435
+ }
436
+ function n(o) {
437
+ try {
438
+ r(o);
439
+ var u = !1;
440
+ } catch {
441
+ u = !0;
442
+ }
443
+ if (u) {
444
+ u = console;
445
+ var l = u.error, d = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
446
+ return l.call(
447
+ u,
448
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
449
+ d
450
+ ), r(o);
451
+ }
452
+ }
453
+ function t(o) {
454
+ if (o === D) return "<>";
455
+ if (typeof o == "object" && o !== null && o.$$typeof === q)
456
+ return "<...>";
457
+ try {
458
+ var u = e(o);
459
+ return u ? "<" + u + ">" : "<...>";
460
+ } catch {
461
+ return "<...>";
462
+ }
463
+ }
464
+ function a() {
465
+ var o = N.A;
466
+ return o === null ? null : o.getOwner();
467
+ }
468
+ function i() {
469
+ return Error("react-stack-top-frame");
470
+ }
471
+ function s(o) {
472
+ if (Z.call(o, "key")) {
473
+ var u = Object.getOwnPropertyDescriptor(o, "key").get;
474
+ if (u && u.isReactWarning) return !1;
475
+ }
476
+ return o.key !== void 0;
477
+ }
478
+ function c(o, u) {
479
+ function l() {
480
+ B || (B = !0, console.error(
481
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
482
+ u
483
+ ));
484
+ }
485
+ l.isReactWarning = !0, Object.defineProperty(o, "key", {
486
+ get: l,
487
+ configurable: !0
488
+ });
489
+ }
490
+ function m() {
491
+ var o = e(this.type);
492
+ return G[o] || (G[o] = !0, console.error(
493
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
494
+ )), o = this.props.ref, o !== void 0 ? o : null;
495
+ }
496
+ function w(o, u, l, d, S, b, Y, _) {
497
+ return l = b.ref, o = {
498
+ $$typeof: O,
499
+ type: o,
500
+ key: u,
501
+ props: b,
502
+ _owner: S
503
+ }, (l !== void 0 ? l : null) !== null ? Object.defineProperty(o, "ref", {
504
+ enumerable: !1,
505
+ get: m
506
+ }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
507
+ configurable: !1,
508
+ enumerable: !1,
509
+ writable: !0,
510
+ value: 0
511
+ }), Object.defineProperty(o, "_debugInfo", {
512
+ configurable: !1,
513
+ enumerable: !1,
514
+ writable: !0,
515
+ value: null
516
+ }), Object.defineProperty(o, "_debugStack", {
517
+ configurable: !1,
518
+ enumerable: !1,
519
+ writable: !0,
520
+ value: Y
521
+ }), Object.defineProperty(o, "_debugTask", {
522
+ configurable: !1,
523
+ enumerable: !1,
524
+ writable: !0,
525
+ value: _
526
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
527
+ }
528
+ function y(o, u, l, d, S, b, Y, _) {
529
+ var f = u.children;
530
+ if (f !== void 0)
531
+ if (d)
532
+ if (yt(f)) {
533
+ for (d = 0; d < f.length; d++)
534
+ g(f[d]);
535
+ Object.freeze && Object.freeze(f);
536
+ } else
537
+ console.error(
538
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
539
+ );
540
+ else g(f);
541
+ if (Z.call(u, "key")) {
542
+ f = e(o);
543
+ var M = Object.keys(u).filter(function(bt) {
544
+ return bt !== "key";
545
+ });
546
+ d = 0 < M.length ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}", J[f + d] || (M = 0 < M.length ? "{" + M.join(": ..., ") + ": ...}" : "{}", console.error(
547
+ `A props object containing a "key" prop is being spread into JSX:
548
+ let props = %s;
549
+ <%s {...props} />
550
+ React keys must be passed directly to JSX without using spread:
551
+ let props = %s;
552
+ <%s key={someKey} {...props} />`,
553
+ d,
554
+ f,
555
+ M,
556
+ f
557
+ ), J[f + d] = !0);
558
+ }
559
+ if (f = null, l !== void 0 && (n(l), f = "" + l), s(u) && (n(u.key), f = "" + u.key), "key" in u) {
560
+ l = {};
561
+ for (var j in u)
562
+ j !== "key" && (l[j] = u[j]);
563
+ } else l = u;
564
+ return f && c(
565
+ l,
566
+ typeof o == "function" ? o.displayName || o.name || "Unknown" : o
567
+ ), w(
568
+ o,
569
+ f,
570
+ b,
571
+ S,
572
+ a(),
573
+ l,
574
+ Y,
575
+ _
576
+ );
577
+ }
578
+ function g(o) {
579
+ typeof o == "object" && o !== null && o.$$typeof === O && o._store && (o._store.validated = 1);
580
+ }
581
+ var k = Ft, O = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), H = Symbol.for("react.consumer"), E = Symbol.for("react.context"), dt = Symbol.for("react.forward_ref"), ft = Symbol.for("react.suspense"), ht = Symbol.for("react.suspense_list"), mt = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), gt = Symbol.for("react.activity"), pt = Symbol.for("react.client.reference"), N = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, yt = Array.isArray, C = console.createTask ? console.createTask : function() {
582
+ return null;
583
+ };
584
+ k = {
585
+ react_stack_bottom_frame: function(o) {
586
+ return o();
587
+ }
588
+ };
589
+ var B, G = {}, X = k.react_stack_bottom_frame.bind(
590
+ k,
591
+ i
592
+ )(), Q = C(t(i)), J = {};
593
+ lt.Fragment = D, lt.jsx = function(o, u, l, d, S) {
594
+ var b = 1e4 > N.recentlyCreatedOwnerStacks++;
595
+ return y(
596
+ o,
597
+ u,
598
+ l,
599
+ !1,
600
+ d,
601
+ S,
602
+ b ? Error("react-stack-top-frame") : X,
603
+ b ? C(t(o)) : Q
604
+ );
605
+ }, lt.jsxs = function(o, u, l, d, S) {
606
+ var b = 1e4 > N.recentlyCreatedOwnerStacks++;
607
+ return y(
608
+ o,
609
+ u,
610
+ l,
611
+ !0,
612
+ d,
613
+ S,
614
+ b ? Error("react-stack-top-frame") : X,
615
+ b ? C(t(o)) : Q
616
+ );
617
+ };
618
+ })()), lt;
619
+ }
620
+ var xt;
621
+ function me() {
622
+ return xt || (xt = 1, process.env.NODE_ENV === "production" ? vt.exports = fe() : vt.exports = he()), vt.exports;
623
+ }
624
+ me();
625
+ const ge = {
626
+ id: "",
627
+ username: "",
628
+ email: "",
629
+ created_at: null,
630
+ updated_at: null,
631
+ features: []
632
+ }, pe = At({
633
+ user: ge,
634
+ isLoading: !0,
635
+ fetchUser: async () => {
636
+ },
637
+ logout: async () => {
638
+ },
639
+ login: async () => !1
640
+ });
641
+ function Vr() {
642
+ return Lt(pe);
643
+ }
644
+ function wt(e) {
645
+ return (r = {}) => {
646
+ const n = r.width ? String(r.width) : e.defaultWidth;
647
+ return e.formats[n] || e.formats[e.defaultWidth];
648
+ };
649
+ }
650
+ function et(e) {
651
+ return (r, n) => {
652
+ const t = n?.context ? String(n.context) : "standalone";
653
+ let a;
654
+ if (t === "formatting" && e.formattingValues) {
655
+ const s = e.defaultFormattingWidth || e.defaultWidth, c = n?.width ? String(n.width) : s;
656
+ a = e.formattingValues[c] || e.formattingValues[s];
657
+ } else {
658
+ const s = e.defaultWidth, c = n?.width ? String(n.width) : e.defaultWidth;
659
+ a = e.values[c] || e.values[s];
660
+ }
661
+ const i = e.argumentCallback ? e.argumentCallback(r) : r;
662
+ return a[i];
663
+ };
664
+ }
665
+ function rt(e) {
666
+ return (r, n = {}) => {
667
+ const t = n.width, a = t && e.matchPatterns[t] || e.matchPatterns[e.defaultMatchWidth], i = r.match(a);
668
+ if (!i)
669
+ return null;
670
+ const s = i[0], c = t && e.parsePatterns[t] || e.parsePatterns[e.defaultParseWidth], m = Array.isArray(c) ? be(c, (g) => g.test(s)) : (
671
+ // [TODO] -- I challenge you to fix the type
672
+ ye(c, (g) => g.test(s))
673
+ );
674
+ let w;
675
+ w = e.valueCallback ? e.valueCallback(m) : m, w = n.valueCallback ? (
676
+ // [TODO] -- I challenge you to fix the type
677
+ n.valueCallback(w)
678
+ ) : w;
679
+ const y = r.slice(s.length);
680
+ return { value: w, rest: y };
681
+ };
682
+ }
683
+ function ye(e, r) {
684
+ for (const n in e)
685
+ if (Object.prototype.hasOwnProperty.call(e, n) && r(e[n]))
686
+ return n;
687
+ }
688
+ function be(e, r) {
689
+ for (let n = 0; n < e.length; n++)
690
+ if (r(e[n]))
691
+ return n;
692
+ }
693
+ function ve(e) {
694
+ return (r, n = {}) => {
695
+ const t = r.match(e.matchPattern);
696
+ if (!t) return null;
697
+ const a = t[0], i = r.match(e.parsePattern);
698
+ if (!i) return null;
699
+ let s = e.valueCallback ? e.valueCallback(i[0]) : i[0];
700
+ s = n.valueCallback ? n.valueCallback(s) : s;
701
+ const c = r.slice(a.length);
702
+ return { value: s, rest: c };
703
+ };
704
+ }
705
+ const zt = 6048e5, we = 864e5, Pt = Symbol.for("constructDateFrom");
706
+ function v(e, r) {
707
+ return typeof e == "function" ? e(r) : e && typeof e == "object" && Pt in e ? e[Pt](r) : e instanceof Date ? new e.constructor(r) : new Date(r);
708
+ }
709
+ function U(e, ...r) {
710
+ const n = v.bind(
711
+ null,
712
+ r.find((t) => typeof t == "object")
713
+ );
714
+ return r.map(n);
715
+ }
716
+ let ke = {};
717
+ function ut() {
718
+ return ke;
719
+ }
720
+ function p(e, r) {
721
+ return v(r || e, e);
722
+ }
723
+ function z(e, r) {
724
+ const n = ut(), t = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = p(e, r?.in), i = a.getDay(), s = (i < t ? 7 : 0) + i - t;
725
+ return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
726
+ }
727
+ const Se = {
728
+ lessThanXSeconds: {
729
+ one: "less than a second",
730
+ other: "less than {{count}} seconds"
731
+ },
732
+ xSeconds: {
733
+ one: "1 second",
734
+ other: "{{count}} seconds"
735
+ },
736
+ halfAMinute: "half a minute",
737
+ lessThanXMinutes: {
738
+ one: "less than a minute",
739
+ other: "less than {{count}} minutes"
740
+ },
741
+ xMinutes: {
742
+ one: "1 minute",
743
+ other: "{{count}} minutes"
744
+ },
745
+ aboutXHours: {
746
+ one: "about 1 hour",
747
+ other: "about {{count}} hours"
748
+ },
749
+ xHours: {
750
+ one: "1 hour",
751
+ other: "{{count}} hours"
752
+ },
753
+ xDays: {
754
+ one: "1 day",
755
+ other: "{{count}} days"
756
+ },
757
+ aboutXWeeks: {
758
+ one: "about 1 week",
759
+ other: "about {{count}} weeks"
760
+ },
761
+ xWeeks: {
762
+ one: "1 week",
763
+ other: "{{count}} weeks"
764
+ },
765
+ aboutXMonths: {
766
+ one: "about 1 month",
767
+ other: "about {{count}} months"
768
+ },
769
+ xMonths: {
770
+ one: "1 month",
771
+ other: "{{count}} months"
772
+ },
773
+ aboutXYears: {
774
+ one: "about 1 year",
775
+ other: "about {{count}} years"
776
+ },
777
+ xYears: {
778
+ one: "1 year",
779
+ other: "{{count}} years"
780
+ },
781
+ overXYears: {
782
+ one: "over 1 year",
783
+ other: "over {{count}} years"
784
+ },
785
+ almostXYears: {
786
+ one: "almost 1 year",
787
+ other: "almost {{count}} years"
788
+ }
789
+ }, Me = (e, r, n) => {
790
+ let t;
791
+ const a = Se[e];
792
+ return typeof a == "string" ? t = a : r === 1 ? t = a.one : t = a.other.replace("{{count}}", r.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + t : t + " ago" : t;
793
+ }, Te = {
794
+ lastWeek: "'last' eeee 'at' p",
795
+ yesterday: "'yesterday at' p",
796
+ today: "'today at' p",
797
+ tomorrow: "'tomorrow at' p",
798
+ nextWeek: "eeee 'at' p",
799
+ other: "P"
800
+ }, Oe = (e, r, n, t) => Te[e], De = {
801
+ narrow: ["B", "A"],
802
+ abbreviated: ["BC", "AD"],
803
+ wide: ["Before Christ", "Anno Domini"]
804
+ }, xe = {
805
+ narrow: ["1", "2", "3", "4"],
806
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
807
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
808
+ }, Pe = {
809
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
810
+ abbreviated: [
811
+ "Jan",
812
+ "Feb",
813
+ "Mar",
814
+ "Apr",
815
+ "May",
816
+ "Jun",
817
+ "Jul",
818
+ "Aug",
819
+ "Sep",
820
+ "Oct",
821
+ "Nov",
822
+ "Dec"
823
+ ],
824
+ wide: [
825
+ "January",
826
+ "February",
827
+ "March",
828
+ "April",
829
+ "May",
830
+ "June",
831
+ "July",
832
+ "August",
833
+ "September",
834
+ "October",
835
+ "November",
836
+ "December"
837
+ ]
838
+ }, Ee = {
839
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
840
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
841
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
842
+ wide: [
843
+ "Sunday",
844
+ "Monday",
845
+ "Tuesday",
846
+ "Wednesday",
847
+ "Thursday",
848
+ "Friday",
849
+ "Saturday"
850
+ ]
851
+ }, Ne = {
852
+ narrow: {
853
+ am: "a",
854
+ pm: "p",
855
+ midnight: "mi",
856
+ noon: "n",
857
+ morning: "morning",
858
+ afternoon: "afternoon",
859
+ evening: "evening",
860
+ night: "night"
861
+ },
862
+ abbreviated: {
863
+ am: "AM",
864
+ pm: "PM",
865
+ midnight: "midnight",
866
+ noon: "noon",
867
+ morning: "morning",
868
+ afternoon: "afternoon",
869
+ evening: "evening",
870
+ night: "night"
871
+ },
872
+ wide: {
873
+ am: "a.m.",
874
+ pm: "p.m.",
875
+ midnight: "midnight",
876
+ noon: "noon",
877
+ morning: "morning",
878
+ afternoon: "afternoon",
879
+ evening: "evening",
880
+ night: "night"
881
+ }
882
+ }, Ce = {
883
+ narrow: {
884
+ am: "a",
885
+ pm: "p",
886
+ midnight: "mi",
887
+ noon: "n",
888
+ morning: "in the morning",
889
+ afternoon: "in the afternoon",
890
+ evening: "in the evening",
891
+ night: "at night"
892
+ },
893
+ abbreviated: {
894
+ am: "AM",
895
+ pm: "PM",
896
+ midnight: "midnight",
897
+ noon: "noon",
898
+ morning: "in the morning",
899
+ afternoon: "in the afternoon",
900
+ evening: "in the evening",
901
+ night: "at night"
902
+ },
903
+ wide: {
904
+ am: "a.m.",
905
+ pm: "p.m.",
906
+ midnight: "midnight",
907
+ noon: "noon",
908
+ morning: "in the morning",
909
+ afternoon: "in the afternoon",
910
+ evening: "in the evening",
911
+ night: "at night"
912
+ }
913
+ }, Ye = (e, r) => {
914
+ const n = Number(e), t = n % 100;
915
+ if (t > 20 || t < 10)
916
+ switch (t % 10) {
917
+ case 1:
918
+ return n + "st";
919
+ case 2:
920
+ return n + "nd";
921
+ case 3:
922
+ return n + "rd";
923
+ }
924
+ return n + "th";
925
+ }, _e = {
926
+ ordinalNumber: Ye,
927
+ era: et({
928
+ values: De,
929
+ defaultWidth: "wide"
930
+ }),
931
+ quarter: et({
932
+ values: xe,
933
+ defaultWidth: "wide",
934
+ argumentCallback: (e) => e - 1
935
+ }),
936
+ month: et({
937
+ values: Pe,
938
+ defaultWidth: "wide"
939
+ }),
940
+ day: et({
941
+ values: Ee,
942
+ defaultWidth: "wide"
943
+ }),
944
+ dayPeriod: et({
945
+ values: Ne,
946
+ defaultWidth: "wide",
947
+ formattingValues: Ce,
948
+ defaultFormattingWidth: "wide"
949
+ })
950
+ }, je = /^(\d+)(th|st|nd|rd)?/i, We = /\d+/i, Re = {
951
+ narrow: /^(b|a)/i,
952
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
953
+ wide: /^(before christ|before common era|anno domini|common era)/i
954
+ }, Fe = {
955
+ any: [/^b/i, /^(a|c)/i]
956
+ }, Ae = {
957
+ narrow: /^[1234]/i,
958
+ abbreviated: /^q[1234]/i,
959
+ wide: /^[1234](th|st|nd|rd)? quarter/i
960
+ }, Le = {
961
+ any: [/1/i, /2/i, /3/i, /4/i]
962
+ }, $e = {
963
+ narrow: /^[jfmasond]/i,
964
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
965
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
966
+ }, ze = {
967
+ narrow: [
968
+ /^j/i,
969
+ /^f/i,
970
+ /^m/i,
971
+ /^a/i,
972
+ /^m/i,
973
+ /^j/i,
974
+ /^j/i,
975
+ /^a/i,
976
+ /^s/i,
977
+ /^o/i,
978
+ /^n/i,
979
+ /^d/i
980
+ ],
981
+ any: [
982
+ /^ja/i,
983
+ /^f/i,
984
+ /^mar/i,
985
+ /^ap/i,
986
+ /^may/i,
987
+ /^jun/i,
988
+ /^jul/i,
989
+ /^au/i,
990
+ /^s/i,
991
+ /^o/i,
992
+ /^n/i,
993
+ /^d/i
994
+ ]
995
+ }, Ue = {
996
+ narrow: /^[smtwf]/i,
997
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
998
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
999
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1000
+ }, Ie = {
1001
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1002
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1003
+ }, He = {
1004
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1005
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1006
+ }, qe = {
1007
+ any: {
1008
+ am: /^a/i,
1009
+ pm: /^p/i,
1010
+ midnight: /^mi/i,
1011
+ noon: /^no/i,
1012
+ morning: /morning/i,
1013
+ afternoon: /afternoon/i,
1014
+ evening: /evening/i,
1015
+ night: /night/i
1016
+ }
1017
+ }, Ze = {
1018
+ ordinalNumber: ve({
1019
+ matchPattern: je,
1020
+ parsePattern: We,
1021
+ valueCallback: (e) => parseInt(e, 10)
1022
+ }),
1023
+ era: rt({
1024
+ matchPatterns: Re,
1025
+ defaultMatchWidth: "wide",
1026
+ parsePatterns: Fe,
1027
+ defaultParseWidth: "any"
1028
+ }),
1029
+ quarter: rt({
1030
+ matchPatterns: Ae,
1031
+ defaultMatchWidth: "wide",
1032
+ parsePatterns: Le,
1033
+ defaultParseWidth: "any",
1034
+ valueCallback: (e) => e + 1
1035
+ }),
1036
+ month: rt({
1037
+ matchPatterns: $e,
1038
+ defaultMatchWidth: "wide",
1039
+ parsePatterns: ze,
1040
+ defaultParseWidth: "any"
1041
+ }),
1042
+ day: rt({
1043
+ matchPatterns: Ue,
1044
+ defaultMatchWidth: "wide",
1045
+ parsePatterns: Ie,
1046
+ defaultParseWidth: "any"
1047
+ }),
1048
+ dayPeriod: rt({
1049
+ matchPatterns: He,
1050
+ defaultMatchWidth: "any",
1051
+ parsePatterns: qe,
1052
+ defaultParseWidth: "any"
1053
+ })
1054
+ }, Be = {
1055
+ full: "EEEE, MMMM do, y",
1056
+ long: "MMMM do, y",
1057
+ medium: "MMM d, y",
1058
+ short: "MM/dd/yyyy"
1059
+ }, Ge = {
1060
+ full: "h:mm:ss a zzzz",
1061
+ long: "h:mm:ss a z",
1062
+ medium: "h:mm:ss a",
1063
+ short: "h:mm a"
1064
+ }, Xe = {
1065
+ full: "{{date}} 'at' {{time}}",
1066
+ long: "{{date}} 'at' {{time}}",
1067
+ medium: "{{date}}, {{time}}",
1068
+ short: "{{date}}, {{time}}"
1069
+ }, Qe = {
1070
+ date: wt({
1071
+ formats: Be,
1072
+ defaultWidth: "full"
1073
+ }),
1074
+ time: wt({
1075
+ formats: Ge,
1076
+ defaultWidth: "full"
1077
+ }),
1078
+ dateTime: wt({
1079
+ formats: Xe,
1080
+ defaultWidth: "full"
1081
+ })
1082
+ }, $ = {
1083
+ code: "en-US",
1084
+ formatDistance: Me,
1085
+ formatLong: Qe,
1086
+ formatRelative: Oe,
1087
+ localize: _e,
1088
+ match: Ze,
1089
+ options: {
1090
+ weekStartsOn: 0,
1091
+ firstWeekContainsDate: 1
1092
+ }
1093
+ };
1094
+ function Je(e, r, n = "long") {
1095
+ return new Intl.DateTimeFormat("en-US", {
1096
+ // Enforces engine to render the time. Without the option JavaScriptCore omits it.
1097
+ hour: "numeric",
1098
+ timeZone: e,
1099
+ timeZoneName: n
1100
+ }).format(r).split(/\s/g).slice(2).join(" ");
1101
+ }
1102
+ const Ve = {}, nt = {};
1103
+ function R(e, r) {
1104
+ try {
1105
+ const n = (Ve[e] ||= new Intl.DateTimeFormat("en-US", {
1106
+ timeZone: e,
1107
+ timeZoneName: "longOffset"
1108
+ }).format)(r).split("GMT")[1];
1109
+ return n in nt ? nt[n] : Et(n, n.split(":"));
1110
+ } catch {
1111
+ if (e in nt) return nt[e];
1112
+ const n = e?.match(Ke);
1113
+ return n ? Et(e, n.slice(1)) : NaN;
1114
+ }
1115
+ }
1116
+ const Ke = /([+-]\d\d):?(\d\d)?/;
1117
+ function Et(e, r) {
1118
+ const n = +(r[0] || 0), t = +(r[1] || 0), a = +(r[2] || 0) / 60;
1119
+ return nt[e] = n * 60 + t > 0 ? n * 60 + t + a : n * 60 - t - a;
1120
+ }
1121
+ class T extends Date {
1122
+ //#region static
1123
+ constructor(...r) {
1124
+ super(), r.length > 1 && typeof r[r.length - 1] == "string" && (this.timeZone = r.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(R(this.timeZone, this)) ? this.setTime(NaN) : r.length ? typeof r[0] == "number" && (r.length === 1 || r.length === 2 && typeof r[1] != "number") ? this.setTime(r[0]) : typeof r[0] == "string" ? this.setTime(+new Date(r[0])) : r[0] instanceof Date ? this.setTime(+r[0]) : (this.setTime(+new Date(...r)), Ut(this), kt(this)) : this.setTime(Date.now());
1125
+ }
1126
+ static tz(r, ...n) {
1127
+ return n.length ? new T(...n, r) : new T(Date.now(), r);
1128
+ }
1129
+ //#endregion
1130
+ //#region time zone
1131
+ withTimeZone(r) {
1132
+ return new T(+this, r);
1133
+ }
1134
+ getTimezoneOffset() {
1135
+ const r = -R(this.timeZone, this);
1136
+ return r > 0 ? Math.floor(r) : Math.ceil(r);
1137
+ }
1138
+ //#endregion
1139
+ //#region time
1140
+ setTime(r) {
1141
+ return Date.prototype.setTime.apply(this, arguments), kt(this), +this;
1142
+ }
1143
+ //#endregion
1144
+ //#region date-fns integration
1145
+ [Symbol.for("constructDateFrom")](r) {
1146
+ return new T(+new Date(r), this.timeZone);
1147
+ }
1148
+ //#endregion
1149
+ }
1150
+ const Nt = /^(get|set)(?!UTC)/;
1151
+ Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
1152
+ if (!Nt.test(e)) return;
1153
+ const r = e.replace(Nt, "$1UTC");
1154
+ T.prototype[r] && (e.startsWith("get") ? T.prototype[e] = function() {
1155
+ return this.internal[r]();
1156
+ } : (T.prototype[e] = function() {
1157
+ return Date.prototype[r].apply(this.internal, arguments), tr(this), +this;
1158
+ }, T.prototype[r] = function() {
1159
+ return Date.prototype[r].apply(this, arguments), kt(this), +this;
1160
+ }));
1161
+ });
1162
+ function kt(e) {
1163
+ e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-R(e.timeZone, e) * 60));
1164
+ }
1165
+ function tr(e) {
1166
+ Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), Ut(e);
1167
+ }
1168
+ function Ut(e) {
1169
+ const r = R(e.timeZone, e), n = r > 0 ? Math.floor(r) : Math.ceil(r), t = /* @__PURE__ */ new Date(+e);
1170
+ t.setUTCHours(t.getUTCHours() - 1);
1171
+ const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), i = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), s = a - i, c = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
1172
+ s && c && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + s);
1173
+ const m = a - n;
1174
+ m && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + m);
1175
+ const w = /* @__PURE__ */ new Date(+e);
1176
+ w.setUTCSeconds(0);
1177
+ const y = a > 0 ? w.getSeconds() : (w.getSeconds() - 60) % 60, g = Math.round(-(R(e.timeZone, e) * 60)) % 60;
1178
+ (g || y) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + g), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + g + y));
1179
+ const k = R(e.timeZone, e), O = k > 0 ? Math.floor(k) : Math.ceil(k), I = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - O, D = O !== n, A = I - m;
1180
+ if (D && A) {
1181
+ Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + A);
1182
+ const P = R(e.timeZone, e), H = P > 0 ? Math.floor(P) : Math.ceil(P), E = O - H;
1183
+ E && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + E), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + E));
1184
+ }
1185
+ }
1186
+ class F extends T {
1187
+ //#region static
1188
+ static tz(r, ...n) {
1189
+ return n.length ? new F(...n, r) : new F(Date.now(), r);
1190
+ }
1191
+ //#endregion
1192
+ //#region representation
1193
+ toISOString() {
1194
+ const [r, n, t] = this.tzComponents(), a = `${r}${n}:${t}`;
1195
+ return this.internal.toISOString().slice(0, -1) + a;
1196
+ }
1197
+ toString() {
1198
+ return `${this.toDateString()} ${this.toTimeString()}`;
1199
+ }
1200
+ toDateString() {
1201
+ const [r, n, t, a] = this.internal.toUTCString().split(" ");
1202
+ return `${r?.slice(0, -1)} ${t} ${n} ${a}`;
1203
+ }
1204
+ toTimeString() {
1205
+ const r = this.internal.toUTCString().split(" ")[4], [n, t, a] = this.tzComponents();
1206
+ return `${r} GMT${n}${t}${a} (${Je(this.timeZone, this)})`;
1207
+ }
1208
+ toLocaleString(r, n) {
1209
+ return Date.prototype.toLocaleString.call(this, r, {
1210
+ ...n,
1211
+ timeZone: n?.timeZone || this.timeZone
1212
+ });
1213
+ }
1214
+ toLocaleDateString(r, n) {
1215
+ return Date.prototype.toLocaleDateString.call(this, r, {
1216
+ ...n,
1217
+ timeZone: n?.timeZone || this.timeZone
1218
+ });
1219
+ }
1220
+ toLocaleTimeString(r, n) {
1221
+ return Date.prototype.toLocaleTimeString.call(this, r, {
1222
+ ...n,
1223
+ timeZone: n?.timeZone || this.timeZone
1224
+ });
1225
+ }
1226
+ //#endregion
1227
+ //#region private
1228
+ tzComponents() {
1229
+ const r = this.getTimezoneOffset(), n = r > 0 ? "-" : "+", t = String(Math.floor(Math.abs(r) / 60)).padStart(2, "0"), a = String(Math.abs(r) % 60).padStart(2, "0");
1230
+ return [n, t, a];
1231
+ }
1232
+ //#endregion
1233
+ withTimeZone(r) {
1234
+ return new F(+this, r);
1235
+ }
1236
+ //#region date-fns integration
1237
+ [Symbol.for("constructDateFrom")](r) {
1238
+ return new F(+new Date(r), this.timeZone);
1239
+ }
1240
+ //#endregion
1241
+ }
1242
+ function It(e, r, n) {
1243
+ const t = p(e, n?.in);
1244
+ return isNaN(r) ? v(e, NaN) : (r && t.setDate(t.getDate() + r), t);
1245
+ }
1246
+ function Ht(e, r, n) {
1247
+ const t = p(e, n?.in);
1248
+ if (isNaN(r)) return v(e, NaN);
1249
+ if (!r)
1250
+ return t;
1251
+ const a = t.getDate(), i = v(e, t.getTime());
1252
+ i.setMonth(t.getMonth() + r + 1, 0);
1253
+ const s = i.getDate();
1254
+ return a >= s ? i : (t.setFullYear(
1255
+ i.getFullYear(),
1256
+ i.getMonth(),
1257
+ a
1258
+ ), t);
1259
+ }
1260
+ function ot(e, r) {
1261
+ return z(e, { ...r, weekStartsOn: 1 });
1262
+ }
1263
+ function qt(e, r) {
1264
+ const n = p(e, r?.in), t = n.getFullYear(), a = v(n, 0);
1265
+ a.setFullYear(t + 1, 0, 4), a.setHours(0, 0, 0, 0);
1266
+ const i = ot(a), s = v(n, 0);
1267
+ s.setFullYear(t, 0, 4), s.setHours(0, 0, 0, 0);
1268
+ const c = ot(s);
1269
+ return n.getTime() >= i.getTime() ? t + 1 : n.getTime() >= c.getTime() ? t : t - 1;
1270
+ }
1271
+ function Ct(e) {
1272
+ const r = p(e), n = new Date(
1273
+ Date.UTC(
1274
+ r.getFullYear(),
1275
+ r.getMonth(),
1276
+ r.getDate(),
1277
+ r.getHours(),
1278
+ r.getMinutes(),
1279
+ r.getSeconds(),
1280
+ r.getMilliseconds()
1281
+ )
1282
+ );
1283
+ return n.setUTCFullYear(r.getFullYear()), +e - +n;
1284
+ }
1285
+ function it(e, r) {
1286
+ const n = p(e, r?.in);
1287
+ return n.setHours(0, 0, 0, 0), n;
1288
+ }
1289
+ function Zt(e, r, n) {
1290
+ const [t, a] = U(
1291
+ n?.in,
1292
+ e,
1293
+ r
1294
+ ), i = it(t), s = it(a), c = +i - Ct(i), m = +s - Ct(s);
1295
+ return Math.round((c - m) / we);
1296
+ }
1297
+ function er(e, r) {
1298
+ const n = qt(e, r), t = v(e, 0);
1299
+ return t.setFullYear(n, 0, 4), t.setHours(0, 0, 0, 0), ot(t);
1300
+ }
1301
+ function rr(e, r, n) {
1302
+ return It(e, r * 7, n);
1303
+ }
1304
+ function nr(e, r, n) {
1305
+ return Ht(e, r * 12, n);
1306
+ }
1307
+ function ar(e, r) {
1308
+ let n, t = r?.in;
1309
+ return e.forEach((a) => {
1310
+ !t && typeof a == "object" && (t = v.bind(null, a));
1311
+ const i = p(a, t);
1312
+ (!n || n < i || isNaN(+i)) && (n = i);
1313
+ }), v(t, n || NaN);
1314
+ }
1315
+ function or(e, r) {
1316
+ let n, t = r?.in;
1317
+ return e.forEach((a) => {
1318
+ !t && typeof a == "object" && (t = v.bind(null, a));
1319
+ const i = p(a, t);
1320
+ (!n || n > i || isNaN(+i)) && (n = i);
1321
+ }), v(t, n || NaN);
1322
+ }
1323
+ function ir(e, r, n) {
1324
+ const [t, a] = U(
1325
+ n?.in,
1326
+ e,
1327
+ r
1328
+ );
1329
+ return +it(t) == +it(a);
1330
+ }
1331
+ function Bt(e) {
1332
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1333
+ }
1334
+ function sr(e) {
1335
+ return !(!Bt(e) && typeof e != "number" || isNaN(+p(e)));
1336
+ }
1337
+ function ur(e, r, n) {
1338
+ const [t, a] = U(
1339
+ n?.in,
1340
+ e,
1341
+ r
1342
+ ), i = t.getFullYear() - a.getFullYear(), s = t.getMonth() - a.getMonth();
1343
+ return i * 12 + s;
1344
+ }
1345
+ function cr(e, r) {
1346
+ const n = p(e, r?.in), t = n.getMonth();
1347
+ return n.setFullYear(n.getFullYear(), t + 1, 0), n.setHours(23, 59, 59, 999), n;
1348
+ }
1349
+ function Gt(e, r) {
1350
+ const [n, t] = U(e, r.start, r.end);
1351
+ return { start: n, end: t };
1352
+ }
1353
+ function lr(e, r) {
1354
+ const { start: n, end: t } = Gt(r?.in, e);
1355
+ let a = +n > +t;
1356
+ const i = a ? +n : +t, s = a ? t : n;
1357
+ s.setHours(0, 0, 0, 0), s.setDate(1);
1358
+ let c = 1;
1359
+ const m = [];
1360
+ for (; +s <= i; )
1361
+ m.push(v(n, s)), s.setMonth(s.getMonth() + c);
1362
+ return a ? m.reverse() : m;
1363
+ }
1364
+ function dr(e, r) {
1365
+ const n = p(e, r?.in);
1366
+ return n.setDate(1), n.setHours(0, 0, 0, 0), n;
1367
+ }
1368
+ function fr(e, r) {
1369
+ const n = p(e, r?.in), t = n.getFullYear();
1370
+ return n.setFullYear(t + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
1371
+ }
1372
+ function Xt(e, r) {
1373
+ const n = p(e, r?.in);
1374
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
1375
+ }
1376
+ function hr(e, r) {
1377
+ const { start: n, end: t } = Gt(r?.in, e);
1378
+ let a = +n > +t;
1379
+ const i = a ? +n : +t, s = a ? t : n;
1380
+ s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
1381
+ let c = 1;
1382
+ const m = [];
1383
+ for (; +s <= i; )
1384
+ m.push(v(n, s)), s.setFullYear(s.getFullYear() + c);
1385
+ return a ? m.reverse() : m;
1386
+ }
1387
+ function Qt(e, r) {
1388
+ const n = ut(), t = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = p(e, r?.in), i = a.getDay(), s = (i < t ? -7 : 0) + 6 - (i - t);
1389
+ return a.setDate(a.getDate() + s), a.setHours(23, 59, 59, 999), a;
1390
+ }
1391
+ function mr(e, r) {
1392
+ return Qt(e, { ...r, weekStartsOn: 1 });
1393
+ }
1394
+ function gr(e, r) {
1395
+ const n = p(e, r?.in);
1396
+ return Zt(n, Xt(n)) + 1;
1397
+ }
1398
+ function Jt(e, r) {
1399
+ const n = p(e, r?.in), t = +ot(n) - +er(n);
1400
+ return Math.round(t / zt) + 1;
1401
+ }
1402
+ function Vt(e, r) {
1403
+ const n = p(e, r?.in), t = n.getFullYear(), a = ut(), i = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = v(r?.in || e, 0);
1404
+ s.setFullYear(t + 1, 0, i), s.setHours(0, 0, 0, 0);
1405
+ const c = z(s, r), m = v(r?.in || e, 0);
1406
+ m.setFullYear(t, 0, i), m.setHours(0, 0, 0, 0);
1407
+ const w = z(m, r);
1408
+ return +n >= +c ? t + 1 : +n >= +w ? t : t - 1;
1409
+ }
1410
+ function pr(e, r) {
1411
+ const n = ut(), t = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = Vt(e, r), i = v(r?.in || e, 0);
1412
+ return i.setFullYear(a, 0, t), i.setHours(0, 0, 0, 0), z(i, r);
1413
+ }
1414
+ function Kt(e, r) {
1415
+ const n = p(e, r?.in), t = +z(n, r) - +pr(n, r);
1416
+ return Math.round(t / zt) + 1;
1417
+ }
1418
+ function h(e, r) {
1419
+ const n = e < 0 ? "-" : "", t = Math.abs(e).toString().padStart(r, "0");
1420
+ return n + t;
1421
+ }
1422
+ const x = {
1423
+ // Year
1424
+ y(e, r) {
1425
+ const n = e.getFullYear(), t = n > 0 ? n : 1 - n;
1426
+ return h(r === "yy" ? t % 100 : t, r.length);
1427
+ },
1428
+ // Month
1429
+ M(e, r) {
1430
+ const n = e.getMonth();
1431
+ return r === "M" ? String(n + 1) : h(n + 1, 2);
1432
+ },
1433
+ // Day of the month
1434
+ d(e, r) {
1435
+ return h(e.getDate(), r.length);
1436
+ },
1437
+ // AM or PM
1438
+ a(e, r) {
1439
+ const n = e.getHours() / 12 >= 1 ? "pm" : "am";
1440
+ switch (r) {
1441
+ case "a":
1442
+ case "aa":
1443
+ return n.toUpperCase();
1444
+ case "aaa":
1445
+ return n;
1446
+ case "aaaaa":
1447
+ return n[0];
1448
+ case "aaaa":
1449
+ default:
1450
+ return n === "am" ? "a.m." : "p.m.";
1451
+ }
1452
+ },
1453
+ // Hour [1-12]
1454
+ h(e, r) {
1455
+ return h(e.getHours() % 12 || 12, r.length);
1456
+ },
1457
+ // Hour [0-23]
1458
+ H(e, r) {
1459
+ return h(e.getHours(), r.length);
1460
+ },
1461
+ // Minute
1462
+ m(e, r) {
1463
+ return h(e.getMinutes(), r.length);
1464
+ },
1465
+ // Second
1466
+ s(e, r) {
1467
+ return h(e.getSeconds(), r.length);
1468
+ },
1469
+ // Fraction of second
1470
+ S(e, r) {
1471
+ const n = r.length, t = e.getMilliseconds(), a = Math.trunc(
1472
+ t * Math.pow(10, n - 3)
1473
+ );
1474
+ return h(a, r.length);
1475
+ }
1476
+ }, L = {
1477
+ midnight: "midnight",
1478
+ noon: "noon",
1479
+ morning: "morning",
1480
+ afternoon: "afternoon",
1481
+ evening: "evening",
1482
+ night: "night"
1483
+ }, Yt = {
1484
+ // Era
1485
+ G: function(e, r, n) {
1486
+ const t = e.getFullYear() > 0 ? 1 : 0;
1487
+ switch (r) {
1488
+ // AD, BC
1489
+ case "G":
1490
+ case "GG":
1491
+ case "GGG":
1492
+ return n.era(t, { width: "abbreviated" });
1493
+ // A, B
1494
+ case "GGGGG":
1495
+ return n.era(t, { width: "narrow" });
1496
+ // Anno Domini, Before Christ
1497
+ case "GGGG":
1498
+ default:
1499
+ return n.era(t, { width: "wide" });
1500
+ }
1501
+ },
1502
+ // Year
1503
+ y: function(e, r, n) {
1504
+ if (r === "yo") {
1505
+ const t = e.getFullYear(), a = t > 0 ? t : 1 - t;
1506
+ return n.ordinalNumber(a, { unit: "year" });
1507
+ }
1508
+ return x.y(e, r);
1509
+ },
1510
+ // Local week-numbering year
1511
+ Y: function(e, r, n, t) {
1512
+ const a = Vt(e, t), i = a > 0 ? a : 1 - a;
1513
+ if (r === "YY") {
1514
+ const s = i % 100;
1515
+ return h(s, 2);
1516
+ }
1517
+ return r === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : h(i, r.length);
1518
+ },
1519
+ // ISO week-numbering year
1520
+ R: function(e, r) {
1521
+ const n = qt(e);
1522
+ return h(n, r.length);
1523
+ },
1524
+ // Extended year. This is a single number designating the year of this calendar system.
1525
+ // The main difference between `y` and `u` localizers are B.C. years:
1526
+ // | Year | `y` | `u` |
1527
+ // |------|-----|-----|
1528
+ // | AC 1 | 1 | 1 |
1529
+ // | BC 1 | 1 | 0 |
1530
+ // | BC 2 | 2 | -1 |
1531
+ // Also `yy` always returns the last two digits of a year,
1532
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
1533
+ u: function(e, r) {
1534
+ const n = e.getFullYear();
1535
+ return h(n, r.length);
1536
+ },
1537
+ // Quarter
1538
+ Q: function(e, r, n) {
1539
+ const t = Math.ceil((e.getMonth() + 1) / 3);
1540
+ switch (r) {
1541
+ // 1, 2, 3, 4
1542
+ case "Q":
1543
+ return String(t);
1544
+ // 01, 02, 03, 04
1545
+ case "QQ":
1546
+ return h(t, 2);
1547
+ // 1st, 2nd, 3rd, 4th
1548
+ case "Qo":
1549
+ return n.ordinalNumber(t, { unit: "quarter" });
1550
+ // Q1, Q2, Q3, Q4
1551
+ case "QQQ":
1552
+ return n.quarter(t, {
1553
+ width: "abbreviated",
1554
+ context: "formatting"
1555
+ });
1556
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
1557
+ case "QQQQQ":
1558
+ return n.quarter(t, {
1559
+ width: "narrow",
1560
+ context: "formatting"
1561
+ });
1562
+ // 1st quarter, 2nd quarter, ...
1563
+ case "QQQQ":
1564
+ default:
1565
+ return n.quarter(t, {
1566
+ width: "wide",
1567
+ context: "formatting"
1568
+ });
1569
+ }
1570
+ },
1571
+ // Stand-alone quarter
1572
+ q: function(e, r, n) {
1573
+ const t = Math.ceil((e.getMonth() + 1) / 3);
1574
+ switch (r) {
1575
+ // 1, 2, 3, 4
1576
+ case "q":
1577
+ return String(t);
1578
+ // 01, 02, 03, 04
1579
+ case "qq":
1580
+ return h(t, 2);
1581
+ // 1st, 2nd, 3rd, 4th
1582
+ case "qo":
1583
+ return n.ordinalNumber(t, { unit: "quarter" });
1584
+ // Q1, Q2, Q3, Q4
1585
+ case "qqq":
1586
+ return n.quarter(t, {
1587
+ width: "abbreviated",
1588
+ context: "standalone"
1589
+ });
1590
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
1591
+ case "qqqqq":
1592
+ return n.quarter(t, {
1593
+ width: "narrow",
1594
+ context: "standalone"
1595
+ });
1596
+ // 1st quarter, 2nd quarter, ...
1597
+ case "qqqq":
1598
+ default:
1599
+ return n.quarter(t, {
1600
+ width: "wide",
1601
+ context: "standalone"
1602
+ });
1603
+ }
1604
+ },
1605
+ // Month
1606
+ M: function(e, r, n) {
1607
+ const t = e.getMonth();
1608
+ switch (r) {
1609
+ case "M":
1610
+ case "MM":
1611
+ return x.M(e, r);
1612
+ // 1st, 2nd, ..., 12th
1613
+ case "Mo":
1614
+ return n.ordinalNumber(t + 1, { unit: "month" });
1615
+ // Jan, Feb, ..., Dec
1616
+ case "MMM":
1617
+ return n.month(t, {
1618
+ width: "abbreviated",
1619
+ context: "formatting"
1620
+ });
1621
+ // J, F, ..., D
1622
+ case "MMMMM":
1623
+ return n.month(t, {
1624
+ width: "narrow",
1625
+ context: "formatting"
1626
+ });
1627
+ // January, February, ..., December
1628
+ case "MMMM":
1629
+ default:
1630
+ return n.month(t, { width: "wide", context: "formatting" });
1631
+ }
1632
+ },
1633
+ // Stand-alone month
1634
+ L: function(e, r, n) {
1635
+ const t = e.getMonth();
1636
+ switch (r) {
1637
+ // 1, 2, ..., 12
1638
+ case "L":
1639
+ return String(t + 1);
1640
+ // 01, 02, ..., 12
1641
+ case "LL":
1642
+ return h(t + 1, 2);
1643
+ // 1st, 2nd, ..., 12th
1644
+ case "Lo":
1645
+ return n.ordinalNumber(t + 1, { unit: "month" });
1646
+ // Jan, Feb, ..., Dec
1647
+ case "LLL":
1648
+ return n.month(t, {
1649
+ width: "abbreviated",
1650
+ context: "standalone"
1651
+ });
1652
+ // J, F, ..., D
1653
+ case "LLLLL":
1654
+ return n.month(t, {
1655
+ width: "narrow",
1656
+ context: "standalone"
1657
+ });
1658
+ // January, February, ..., December
1659
+ case "LLLL":
1660
+ default:
1661
+ return n.month(t, { width: "wide", context: "standalone" });
1662
+ }
1663
+ },
1664
+ // Local week of year
1665
+ w: function(e, r, n, t) {
1666
+ const a = Kt(e, t);
1667
+ return r === "wo" ? n.ordinalNumber(a, { unit: "week" }) : h(a, r.length);
1668
+ },
1669
+ // ISO week of year
1670
+ I: function(e, r, n) {
1671
+ const t = Jt(e);
1672
+ return r === "Io" ? n.ordinalNumber(t, { unit: "week" }) : h(t, r.length);
1673
+ },
1674
+ // Day of the month
1675
+ d: function(e, r, n) {
1676
+ return r === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : x.d(e, r);
1677
+ },
1678
+ // Day of year
1679
+ D: function(e, r, n) {
1680
+ const t = gr(e);
1681
+ return r === "Do" ? n.ordinalNumber(t, { unit: "dayOfYear" }) : h(t, r.length);
1682
+ },
1683
+ // Day of week
1684
+ E: function(e, r, n) {
1685
+ const t = e.getDay();
1686
+ switch (r) {
1687
+ // Tue
1688
+ case "E":
1689
+ case "EE":
1690
+ case "EEE":
1691
+ return n.day(t, {
1692
+ width: "abbreviated",
1693
+ context: "formatting"
1694
+ });
1695
+ // T
1696
+ case "EEEEE":
1697
+ return n.day(t, {
1698
+ width: "narrow",
1699
+ context: "formatting"
1700
+ });
1701
+ // Tu
1702
+ case "EEEEEE":
1703
+ return n.day(t, {
1704
+ width: "short",
1705
+ context: "formatting"
1706
+ });
1707
+ // Tuesday
1708
+ case "EEEE":
1709
+ default:
1710
+ return n.day(t, {
1711
+ width: "wide",
1712
+ context: "formatting"
1713
+ });
1714
+ }
1715
+ },
1716
+ // Local day of week
1717
+ e: function(e, r, n, t) {
1718
+ const a = e.getDay(), i = (a - t.weekStartsOn + 8) % 7 || 7;
1719
+ switch (r) {
1720
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
1721
+ case "e":
1722
+ return String(i);
1723
+ // Padded numerical value
1724
+ case "ee":
1725
+ return h(i, 2);
1726
+ // 1st, 2nd, ..., 7th
1727
+ case "eo":
1728
+ return n.ordinalNumber(i, { unit: "day" });
1729
+ case "eee":
1730
+ return n.day(a, {
1731
+ width: "abbreviated",
1732
+ context: "formatting"
1733
+ });
1734
+ // T
1735
+ case "eeeee":
1736
+ return n.day(a, {
1737
+ width: "narrow",
1738
+ context: "formatting"
1739
+ });
1740
+ // Tu
1741
+ case "eeeeee":
1742
+ return n.day(a, {
1743
+ width: "short",
1744
+ context: "formatting"
1745
+ });
1746
+ // Tuesday
1747
+ case "eeee":
1748
+ default:
1749
+ return n.day(a, {
1750
+ width: "wide",
1751
+ context: "formatting"
1752
+ });
1753
+ }
1754
+ },
1755
+ // Stand-alone local day of week
1756
+ c: function(e, r, n, t) {
1757
+ const a = e.getDay(), i = (a - t.weekStartsOn + 8) % 7 || 7;
1758
+ switch (r) {
1759
+ // Numerical value (same as in `e`)
1760
+ case "c":
1761
+ return String(i);
1762
+ // Padded numerical value
1763
+ case "cc":
1764
+ return h(i, r.length);
1765
+ // 1st, 2nd, ..., 7th
1766
+ case "co":
1767
+ return n.ordinalNumber(i, { unit: "day" });
1768
+ case "ccc":
1769
+ return n.day(a, {
1770
+ width: "abbreviated",
1771
+ context: "standalone"
1772
+ });
1773
+ // T
1774
+ case "ccccc":
1775
+ return n.day(a, {
1776
+ width: "narrow",
1777
+ context: "standalone"
1778
+ });
1779
+ // Tu
1780
+ case "cccccc":
1781
+ return n.day(a, {
1782
+ width: "short",
1783
+ context: "standalone"
1784
+ });
1785
+ // Tuesday
1786
+ case "cccc":
1787
+ default:
1788
+ return n.day(a, {
1789
+ width: "wide",
1790
+ context: "standalone"
1791
+ });
1792
+ }
1793
+ },
1794
+ // ISO day of week
1795
+ i: function(e, r, n) {
1796
+ const t = e.getDay(), a = t === 0 ? 7 : t;
1797
+ switch (r) {
1798
+ // 2
1799
+ case "i":
1800
+ return String(a);
1801
+ // 02
1802
+ case "ii":
1803
+ return h(a, r.length);
1804
+ // 2nd
1805
+ case "io":
1806
+ return n.ordinalNumber(a, { unit: "day" });
1807
+ // Tue
1808
+ case "iii":
1809
+ return n.day(t, {
1810
+ width: "abbreviated",
1811
+ context: "formatting"
1812
+ });
1813
+ // T
1814
+ case "iiiii":
1815
+ return n.day(t, {
1816
+ width: "narrow",
1817
+ context: "formatting"
1818
+ });
1819
+ // Tu
1820
+ case "iiiiii":
1821
+ return n.day(t, {
1822
+ width: "short",
1823
+ context: "formatting"
1824
+ });
1825
+ // Tuesday
1826
+ case "iiii":
1827
+ default:
1828
+ return n.day(t, {
1829
+ width: "wide",
1830
+ context: "formatting"
1831
+ });
1832
+ }
1833
+ },
1834
+ // AM or PM
1835
+ a: function(e, r, n) {
1836
+ const t = e.getHours() / 12 >= 1 ? "pm" : "am";
1837
+ switch (r) {
1838
+ case "a":
1839
+ case "aa":
1840
+ return n.dayPeriod(t, {
1841
+ width: "abbreviated",
1842
+ context: "formatting"
1843
+ });
1844
+ case "aaa":
1845
+ return n.dayPeriod(t, {
1846
+ width: "abbreviated",
1847
+ context: "formatting"
1848
+ }).toLowerCase();
1849
+ case "aaaaa":
1850
+ return n.dayPeriod(t, {
1851
+ width: "narrow",
1852
+ context: "formatting"
1853
+ });
1854
+ case "aaaa":
1855
+ default:
1856
+ return n.dayPeriod(t, {
1857
+ width: "wide",
1858
+ context: "formatting"
1859
+ });
1860
+ }
1861
+ },
1862
+ // AM, PM, midnight, noon
1863
+ b: function(e, r, n) {
1864
+ const t = e.getHours();
1865
+ let a;
1866
+ switch (t === 12 ? a = L.noon : t === 0 ? a = L.midnight : a = t / 12 >= 1 ? "pm" : "am", r) {
1867
+ case "b":
1868
+ case "bb":
1869
+ return n.dayPeriod(a, {
1870
+ width: "abbreviated",
1871
+ context: "formatting"
1872
+ });
1873
+ case "bbb":
1874
+ return n.dayPeriod(a, {
1875
+ width: "abbreviated",
1876
+ context: "formatting"
1877
+ }).toLowerCase();
1878
+ case "bbbbb":
1879
+ return n.dayPeriod(a, {
1880
+ width: "narrow",
1881
+ context: "formatting"
1882
+ });
1883
+ case "bbbb":
1884
+ default:
1885
+ return n.dayPeriod(a, {
1886
+ width: "wide",
1887
+ context: "formatting"
1888
+ });
1889
+ }
1890
+ },
1891
+ // in the morning, in the afternoon, in the evening, at night
1892
+ B: function(e, r, n) {
1893
+ const t = e.getHours();
1894
+ let a;
1895
+ switch (t >= 17 ? a = L.evening : t >= 12 ? a = L.afternoon : t >= 4 ? a = L.morning : a = L.night, r) {
1896
+ case "B":
1897
+ case "BB":
1898
+ case "BBB":
1899
+ return n.dayPeriod(a, {
1900
+ width: "abbreviated",
1901
+ context: "formatting"
1902
+ });
1903
+ case "BBBBB":
1904
+ return n.dayPeriod(a, {
1905
+ width: "narrow",
1906
+ context: "formatting"
1907
+ });
1908
+ case "BBBB":
1909
+ default:
1910
+ return n.dayPeriod(a, {
1911
+ width: "wide",
1912
+ context: "formatting"
1913
+ });
1914
+ }
1915
+ },
1916
+ // Hour [1-12]
1917
+ h: function(e, r, n) {
1918
+ if (r === "ho") {
1919
+ let t = e.getHours() % 12;
1920
+ return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
1921
+ }
1922
+ return x.h(e, r);
1923
+ },
1924
+ // Hour [0-23]
1925
+ H: function(e, r, n) {
1926
+ return r === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : x.H(e, r);
1927
+ },
1928
+ // Hour [0-11]
1929
+ K: function(e, r, n) {
1930
+ const t = e.getHours() % 12;
1931
+ return r === "Ko" ? n.ordinalNumber(t, { unit: "hour" }) : h(t, r.length);
1932
+ },
1933
+ // Hour [1-24]
1934
+ k: function(e, r, n) {
1935
+ let t = e.getHours();
1936
+ return t === 0 && (t = 24), r === "ko" ? n.ordinalNumber(t, { unit: "hour" }) : h(t, r.length);
1937
+ },
1938
+ // Minute
1939
+ m: function(e, r, n) {
1940
+ return r === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : x.m(e, r);
1941
+ },
1942
+ // Second
1943
+ s: function(e, r, n) {
1944
+ return r === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : x.s(e, r);
1945
+ },
1946
+ // Fraction of second
1947
+ S: function(e, r) {
1948
+ return x.S(e, r);
1949
+ },
1950
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1951
+ X: function(e, r, n) {
1952
+ const t = e.getTimezoneOffset();
1953
+ if (t === 0)
1954
+ return "Z";
1955
+ switch (r) {
1956
+ // Hours and optional minutes
1957
+ case "X":
1958
+ return jt(t);
1959
+ // Hours, minutes and optional seconds without `:` delimiter
1960
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1961
+ // so this token always has the same output as `XX`
1962
+ case "XXXX":
1963
+ case "XX":
1964
+ return W(t);
1965
+ // Hours, minutes and optional seconds with `:` delimiter
1966
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1967
+ // so this token always has the same output as `XXX`
1968
+ case "XXXXX":
1969
+ case "XXX":
1970
+ // Hours and minutes with `:` delimiter
1971
+ default:
1972
+ return W(t, ":");
1973
+ }
1974
+ },
1975
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1976
+ x: function(e, r, n) {
1977
+ const t = e.getTimezoneOffset();
1978
+ switch (r) {
1979
+ // Hours and optional minutes
1980
+ case "x":
1981
+ return jt(t);
1982
+ // Hours, minutes and optional seconds without `:` delimiter
1983
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1984
+ // so this token always has the same output as `xx`
1985
+ case "xxxx":
1986
+ case "xx":
1987
+ return W(t);
1988
+ // Hours, minutes and optional seconds with `:` delimiter
1989
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1990
+ // so this token always has the same output as `xxx`
1991
+ case "xxxxx":
1992
+ case "xxx":
1993
+ // Hours and minutes with `:` delimiter
1994
+ default:
1995
+ return W(t, ":");
1996
+ }
1997
+ },
1998
+ // Timezone (GMT)
1999
+ O: function(e, r, n) {
2000
+ const t = e.getTimezoneOffset();
2001
+ switch (r) {
2002
+ // Short
2003
+ case "O":
2004
+ case "OO":
2005
+ case "OOO":
2006
+ return "GMT" + _t(t, ":");
2007
+ // Long
2008
+ case "OOOO":
2009
+ default:
2010
+ return "GMT" + W(t, ":");
2011
+ }
2012
+ },
2013
+ // Timezone (specific non-location)
2014
+ z: function(e, r, n) {
2015
+ const t = e.getTimezoneOffset();
2016
+ switch (r) {
2017
+ // Short
2018
+ case "z":
2019
+ case "zz":
2020
+ case "zzz":
2021
+ return "GMT" + _t(t, ":");
2022
+ // Long
2023
+ case "zzzz":
2024
+ default:
2025
+ return "GMT" + W(t, ":");
2026
+ }
2027
+ },
2028
+ // Seconds timestamp
2029
+ t: function(e, r, n) {
2030
+ const t = Math.trunc(+e / 1e3);
2031
+ return h(t, r.length);
2032
+ },
2033
+ // Milliseconds timestamp
2034
+ T: function(e, r, n) {
2035
+ return h(+e, r.length);
2036
+ }
2037
+ };
2038
+ function _t(e, r = "") {
2039
+ const n = e > 0 ? "-" : "+", t = Math.abs(e), a = Math.trunc(t / 60), i = t % 60;
2040
+ return i === 0 ? n + String(a) : n + String(a) + r + h(i, 2);
2041
+ }
2042
+ function jt(e, r) {
2043
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + h(Math.abs(e) / 60, 2) : W(e, r);
2044
+ }
2045
+ function W(e, r = "") {
2046
+ const n = e > 0 ? "-" : "+", t = Math.abs(e), a = h(Math.trunc(t / 60), 2), i = h(t % 60, 2);
2047
+ return n + a + r + i;
2048
+ }
2049
+ const Wt = (e, r) => {
2050
+ switch (e) {
2051
+ case "P":
2052
+ return r.date({ width: "short" });
2053
+ case "PP":
2054
+ return r.date({ width: "medium" });
2055
+ case "PPP":
2056
+ return r.date({ width: "long" });
2057
+ case "PPPP":
2058
+ default:
2059
+ return r.date({ width: "full" });
2060
+ }
2061
+ }, te = (e, r) => {
2062
+ switch (e) {
2063
+ case "p":
2064
+ return r.time({ width: "short" });
2065
+ case "pp":
2066
+ return r.time({ width: "medium" });
2067
+ case "ppp":
2068
+ return r.time({ width: "long" });
2069
+ case "pppp":
2070
+ default:
2071
+ return r.time({ width: "full" });
2072
+ }
2073
+ }, yr = (e, r) => {
2074
+ const n = e.match(/(P+)(p+)?/) || [], t = n[1], a = n[2];
2075
+ if (!a)
2076
+ return Wt(e, r);
2077
+ let i;
2078
+ switch (t) {
2079
+ case "P":
2080
+ i = r.dateTime({ width: "short" });
2081
+ break;
2082
+ case "PP":
2083
+ i = r.dateTime({ width: "medium" });
2084
+ break;
2085
+ case "PPP":
2086
+ i = r.dateTime({ width: "long" });
2087
+ break;
2088
+ case "PPPP":
2089
+ default:
2090
+ i = r.dateTime({ width: "full" });
2091
+ break;
2092
+ }
2093
+ return i.replace("{{date}}", Wt(t, r)).replace("{{time}}", te(a, r));
2094
+ }, br = {
2095
+ p: te,
2096
+ P: yr
2097
+ }, vr = /^D+$/, wr = /^Y+$/, kr = ["D", "DD", "YY", "YYYY"];
2098
+ function Sr(e) {
2099
+ return vr.test(e);
2100
+ }
2101
+ function Mr(e) {
2102
+ return wr.test(e);
2103
+ }
2104
+ function Tr(e, r, n) {
2105
+ const t = Or(e, r, n);
2106
+ if (console.warn(t), kr.includes(e)) throw new RangeError(t);
2107
+ }
2108
+ function Or(e, r, n) {
2109
+ const t = e[0] === "Y" ? "years" : "days of the month";
2110
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2111
+ }
2112
+ const Dr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, xr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Pr = /^'([^]*?)'?$/, Er = /''/g, Nr = /[a-zA-Z]/;
2113
+ function at(e, r, n) {
2114
+ const t = ut(), a = n?.locale ?? t.locale ?? $, i = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? t.firstWeekContainsDate ?? t.locale?.options?.firstWeekContainsDate ?? 1, s = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, c = p(e, n?.in);
2115
+ if (!sr(c))
2116
+ throw new RangeError("Invalid time value");
2117
+ let m = r.match(xr).map((y) => {
2118
+ const g = y[0];
2119
+ if (g === "p" || g === "P") {
2120
+ const k = br[g];
2121
+ return k(y, a.formatLong);
2122
+ }
2123
+ return y;
2124
+ }).join("").match(Dr).map((y) => {
2125
+ if (y === "''")
2126
+ return { isToken: !1, value: "'" };
2127
+ const g = y[0];
2128
+ if (g === "'")
2129
+ return { isToken: !1, value: Cr(y) };
2130
+ if (Yt[g])
2131
+ return { isToken: !0, value: y };
2132
+ if (g.match(Nr))
2133
+ throw new RangeError(
2134
+ "Format string contains an unescaped latin alphabet character `" + g + "`"
2135
+ );
2136
+ return { isToken: !1, value: y };
2137
+ });
2138
+ a.localize.preprocessor && (m = a.localize.preprocessor(c, m));
2139
+ const w = {
2140
+ firstWeekContainsDate: i,
2141
+ weekStartsOn: s,
2142
+ locale: a
2143
+ };
2144
+ return m.map((y) => {
2145
+ if (!y.isToken) return y.value;
2146
+ const g = y.value;
2147
+ (!n?.useAdditionalWeekYearTokens && Mr(g) || !n?.useAdditionalDayOfYearTokens && Sr(g)) && Tr(g, r, String(e));
2148
+ const k = Yt[g[0]];
2149
+ return k(c, g, a.localize, w);
2150
+ }).join("");
2151
+ }
2152
+ function Cr(e) {
2153
+ const r = e.match(Pr);
2154
+ return r ? r[1].replace(Er, "'") : e;
2155
+ }
2156
+ function Yr(e, r) {
2157
+ const n = p(e, r?.in), t = n.getFullYear(), a = n.getMonth(), i = v(n, 0);
2158
+ return i.setFullYear(t, a + 1, 0), i.setHours(0, 0, 0, 0), i.getDate();
2159
+ }
2160
+ function _r(e, r) {
2161
+ return p(e, r?.in).getMonth();
2162
+ }
2163
+ function jr(e, r) {
2164
+ return p(e, r?.in).getFullYear();
2165
+ }
2166
+ function Wr(e, r) {
2167
+ return +p(e) > +p(r);
2168
+ }
2169
+ function Rr(e, r) {
2170
+ return +p(e) < +p(r);
2171
+ }
2172
+ function Fr(e, r, n) {
2173
+ const [t, a] = U(
2174
+ n?.in,
2175
+ e,
2176
+ r
2177
+ );
2178
+ return t.getFullYear() === a.getFullYear() && t.getMonth() === a.getMonth();
2179
+ }
2180
+ function Ar(e, r, n) {
2181
+ const [t, a] = U(
2182
+ n?.in,
2183
+ e,
2184
+ r
2185
+ );
2186
+ return t.getFullYear() === a.getFullYear();
2187
+ }
2188
+ function Lr(e, r, n) {
2189
+ const t = p(e, n?.in), a = t.getFullYear(), i = t.getDate(), s = v(e, 0);
2190
+ s.setFullYear(a, r, 15), s.setHours(0, 0, 0, 0);
2191
+ const c = Yr(s);
2192
+ return t.setMonth(r, Math.min(i, c)), t;
2193
+ }
2194
+ function $r(e, r, n) {
2195
+ const t = p(e, n?.in);
2196
+ return isNaN(+t) ? v(e, NaN) : (t.setFullYear(r), t);
2197
+ }
2198
+ const Rt = 5, zr = 4;
2199
+ function Ur(e, r) {
2200
+ const n = r.startOfMonth(e), t = n.getDay() > 0 ? n.getDay() : 7, a = r.addDays(e, -t + 1), i = r.addDays(a, Rt * 7 - 1);
2201
+ return r.getMonth(e) === r.getMonth(i) ? Rt : zr;
2202
+ }
2203
+ function ee(e, r) {
2204
+ const n = r.startOfMonth(e), t = n.getDay();
2205
+ return t === 1 ? n : t === 0 ? r.addDays(n, -6) : r.addDays(n, -1 * (t - 1));
2206
+ }
2207
+ function Ir(e, r) {
2208
+ const n = ee(e, r), t = Ur(e, r);
2209
+ return r.addDays(n, t * 7 - 1);
2210
+ }
2211
+ const Hr = {
2212
+ ...$,
2213
+ labels: {
2214
+ labelDayButton: (e, r, n, t) => {
2215
+ let a;
2216
+ t && typeof t.format == "function" ? a = t.format.bind(t) : a = (s, c) => at(s, c, { locale: $, ...n });
2217
+ let i = a(e, "PPPP");
2218
+ return r.today && (i = `Today, ${i}`), r.selected && (i = `${i}, selected`), i;
2219
+ },
2220
+ labelMonthDropdown: "Choose the Month",
2221
+ labelNext: "Go to the Next Month",
2222
+ labelPrevious: "Go to the Previous Month",
2223
+ labelWeekNumber: (e) => `Week ${e}`,
2224
+ labelYearDropdown: "Choose the Year",
2225
+ labelGrid: (e, r, n) => {
2226
+ let t;
2227
+ return n && typeof n.format == "function" ? t = n.format.bind(n) : t = (a, i) => at(a, i, { locale: $, ...r }), t(e, "LLLL yyyy");
2228
+ },
2229
+ labelGridcell: (e, r, n, t) => {
2230
+ let a;
2231
+ t && typeof t.format == "function" ? a = t.format.bind(t) : a = (s, c) => at(s, c, { locale: $, ...n });
2232
+ let i = a(e, "PPPP");
2233
+ return r?.today && (i = `Today, ${i}`), i;
2234
+ },
2235
+ labelNav: "Navigation bar",
2236
+ labelWeekNumberHeader: "Week Number",
2237
+ labelWeekday: (e, r, n) => {
2238
+ let t;
2239
+ return n && typeof n.format == "function" ? t = n.format.bind(n) : t = (a, i) => at(a, i, { locale: $, ...r }), t(e, "cccc");
2240
+ }
2241
+ }
2242
+ };
2243
+ class st {
2244
+ /**
2245
+ * Creates an instance of `DateLib`.
2246
+ *
2247
+ * @param options Configuration options for the date library.
2248
+ * @param overrides Custom overrides for the date library functions.
2249
+ */
2250
+ constructor(r, n) {
2251
+ this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? F.tz(this.options.timeZone) : new this.Date(), this.newDate = (t, a, i) => this.overrides?.newDate ? this.overrides.newDate(t, a, i) : this.options.timeZone ? new F(t, a, i, this.options.timeZone) : new Date(t, a, i), this.addDays = (t, a) => this.overrides?.addDays ? this.overrides.addDays(t, a) : It(t, a), this.addMonths = (t, a) => this.overrides?.addMonths ? this.overrides.addMonths(t, a) : Ht(t, a), this.addWeeks = (t, a) => this.overrides?.addWeeks ? this.overrides.addWeeks(t, a) : rr(t, a), this.addYears = (t, a) => this.overrides?.addYears ? this.overrides.addYears(t, a) : nr(t, a), this.differenceInCalendarDays = (t, a) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(t, a) : Zt(t, a), this.differenceInCalendarMonths = (t, a) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(t, a) : ur(t, a), this.eachMonthOfInterval = (t) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(t) : lr(t), this.eachYearOfInterval = (t) => {
2252
+ const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(t) : hr(t), i = new Set(a.map((c) => this.getYear(c)));
2253
+ if (i.size === a.length)
2254
+ return a;
2255
+ const s = [];
2256
+ return i.forEach((c) => {
2257
+ s.push(new Date(c, 0, 1));
2258
+ }), s;
2259
+ }, this.endOfBroadcastWeek = (t) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(t) : Ir(t, this), this.endOfISOWeek = (t) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(t) : mr(t), this.endOfMonth = (t) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(t) : cr(t), this.endOfWeek = (t, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(t, a) : Qt(t, this.options), this.endOfYear = (t) => this.overrides?.endOfYear ? this.overrides.endOfYear(t) : fr(t), this.format = (t, a, i) => {
2260
+ const s = this.overrides?.format ? this.overrides.format(t, a, this.options) : at(t, a, this.options);
2261
+ return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(s) : s;
2262
+ }, this.getISOWeek = (t) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(t) : Jt(t), this.getMonth = (t, a) => this.overrides?.getMonth ? this.overrides.getMonth(t, this.options) : _r(t, this.options), this.getYear = (t, a) => this.overrides?.getYear ? this.overrides.getYear(t, this.options) : jr(t, this.options), this.getWeek = (t, a) => this.overrides?.getWeek ? this.overrides.getWeek(t, this.options) : Kt(t, this.options), this.isAfter = (t, a) => this.overrides?.isAfter ? this.overrides.isAfter(t, a) : Wr(t, a), this.isBefore = (t, a) => this.overrides?.isBefore ? this.overrides.isBefore(t, a) : Rr(t, a), this.isDate = (t) => this.overrides?.isDate ? this.overrides.isDate(t) : Bt(t), this.isSameDay = (t, a) => this.overrides?.isSameDay ? this.overrides.isSameDay(t, a) : ir(t, a), this.isSameMonth = (t, a) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(t, a) : Fr(t, a), this.isSameYear = (t, a) => this.overrides?.isSameYear ? this.overrides.isSameYear(t, a) : Ar(t, a), this.max = (t) => this.overrides?.max ? this.overrides.max(t) : ar(t), this.min = (t) => this.overrides?.min ? this.overrides.min(t) : or(t), this.setMonth = (t, a) => this.overrides?.setMonth ? this.overrides.setMonth(t, a) : Lr(t, a), this.setYear = (t, a) => this.overrides?.setYear ? this.overrides.setYear(t, a) : $r(t, a), this.startOfBroadcastWeek = (t, a) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(t, this) : ee(t, this), this.startOfDay = (t) => this.overrides?.startOfDay ? this.overrides.startOfDay(t) : it(t), this.startOfISOWeek = (t) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(t) : ot(t), this.startOfMonth = (t) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(t) : dr(t), this.startOfWeek = (t, a) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(t, this.options) : z(t, this.options), this.startOfYear = (t) => this.overrides?.startOfYear ? this.overrides.startOfYear(t) : Xt(t), this.options = { locale: Hr, ...r }, this.overrides = n;
2263
+ }
2264
+ /**
2265
+ * Generates a mapping of Arabic digits (0-9) to the target numbering system
2266
+ * digits.
2267
+ *
2268
+ * @since 9.5.0
2269
+ * @returns A record mapping Arabic digits to the target numerals.
2270
+ */
2271
+ getDigitMap() {
2272
+ const { numerals: r = "latn" } = this.options, n = new Intl.NumberFormat("en-US", {
2273
+ numberingSystem: r
2274
+ }), t = {};
2275
+ for (let a = 0; a < 10; a++)
2276
+ t[a.toString()] = n.format(a);
2277
+ return t;
2278
+ }
2279
+ /**
2280
+ * Replaces Arabic digits in a string with the target numbering system digits.
2281
+ *
2282
+ * @since 9.5.0
2283
+ * @param input The string containing Arabic digits.
2284
+ * @returns The string with digits replaced.
2285
+ */
2286
+ replaceDigits(r) {
2287
+ const n = this.getDigitMap();
2288
+ return r.replace(/\d/g, (t) => n[t] || t);
2289
+ }
2290
+ /**
2291
+ * Formats a number using the configured numbering system.
2292
+ *
2293
+ * @since 9.5.0
2294
+ * @param value The number to format.
2295
+ * @returns The formatted number as a string.
2296
+ */
2297
+ formatNumber(r) {
2298
+ return this.replaceDigits(r.toString());
2299
+ }
2300
+ /**
2301
+ * Returns the preferred ordering for month and year labels for the current
2302
+ * locale.
2303
+ */
2304
+ getMonthYearOrder() {
2305
+ const r = this.options.locale?.code;
2306
+ return r && st.yearFirstLocales.has(r) ? "year-first" : "month-first";
2307
+ }
2308
+ /**
2309
+ * Formats the month/year pair respecting locale conventions.
2310
+ *
2311
+ * @since 9.11.0
2312
+ */
2313
+ formatMonthYear(r) {
2314
+ const { locale: n, timeZone: t, numerals: a } = this.options, i = n?.code;
2315
+ if (i && st.yearFirstLocales.has(i))
2316
+ try {
2317
+ return new Intl.DateTimeFormat(i, {
2318
+ month: "long",
2319
+ year: "numeric",
2320
+ timeZone: t,
2321
+ numberingSystem: a
2322
+ }).format(r);
2323
+ } catch {
2324
+ }
2325
+ const s = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
2326
+ return this.format(r, s);
2327
+ }
2328
+ }
2329
+ st.yearFirstLocales = /* @__PURE__ */ new Set([
2330
+ "eu",
2331
+ "hu",
2332
+ "ja",
2333
+ "ja-Hira",
2334
+ "ja-JP",
2335
+ "ko",
2336
+ "ko-KR",
2337
+ "lt",
2338
+ "lt-LT",
2339
+ "lv",
2340
+ "lv-LV",
2341
+ "mn",
2342
+ "mn-MN",
2343
+ "zh",
2344
+ "zh-CN",
2345
+ "zh-HK",
2346
+ "zh-TW"
2347
+ ]);
2348
+ new st();
2349
+ const qr = At({
2350
+ locale: void 0
2351
+ });
2352
+ function Kr() {
2353
+ return Lt(qr);
2354
+ }
2355
+ export {
2356
+ Jr as B,
2357
+ Vr as _,
2358
+ ce as b,
2359
+ de as c,
2360
+ ue as j,
2361
+ Kr as x
2362
+ };