@sigtes/ui 0.0.8 → 0.0.10

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 (37) hide show
  1. package/dist/Button-BztPLDJi.js +69 -0
  2. package/dist/Button-C3Twt_rk.cjs +1 -0
  3. package/dist/UserProvider-BfG9Ccu3.js +395 -0
  4. package/dist/UserProvider-CQZEZTc7.cjs +22 -0
  5. package/dist/components/avatar/Avatar.d.ts +1 -0
  6. package/dist/components/avatar/index.d.ts +1 -0
  7. package/dist/components.cjs.js +469 -165
  8. package/dist/components.es.js +16490 -9280
  9. package/dist/globals.css +1 -1
  10. package/dist/hooks/index.d.ts +1 -0
  11. package/dist/hooks/useAuthorization/index.d.ts +1 -0
  12. package/dist/hooks/useAuthorization/useAuthorization.d.ts +5 -0
  13. package/dist/hooks.cjs.js +1 -1
  14. package/dist/hooks.es.js +40 -28
  15. package/dist/index.d.ts +1 -0
  16. package/dist/locale-provider-BMa5HMi7-CUCoSBuJ.js +308 -0
  17. package/dist/locale-provider-BMa5HMi7-jcDwp-6T.cjs +22 -0
  18. package/dist/locale-provider-BMa5HMi7.js +831 -0
  19. package/dist/locale-provider-DfKreh8K.cjs +1 -0
  20. package/dist/navigation-CbiZy04t.js +1857 -0
  21. package/dist/navigation-Czjt6ygu.cjs +6 -0
  22. package/dist/pages/error/error.d.ts +6 -0
  23. package/dist/pages/error/index.d.ts +1 -0
  24. package/dist/pages/forbidden/forbidden.d.ts +1 -0
  25. package/dist/pages/forbidden/index.d.ts +1 -0
  26. package/dist/pages/index.d.ts +3 -0
  27. package/dist/pages/not-found/index.d.ts +1 -0
  28. package/dist/pages/not-found/not-found.d.ts +1 -0
  29. package/dist/pages.cjs.js +1 -0
  30. package/dist/pages.es.js +64 -0
  31. package/dist/providers/index.d.ts +1 -1
  32. package/dist/providers/user-provider/UserProvider.d.ts +1 -1
  33. package/dist/providers.cjs.js +1 -1
  34. package/dist/providers.es.js +16 -123
  35. package/package.json +12 -6
  36. package/dist/locale-provider-CMJmJPPz.js +0 -1111
  37. package/dist/locale-provider-muU_nRQs.cjs +0 -22
@@ -1,1111 +0,0 @@
1
- "use client";
2
- import ie, { createContext as se, useState as ue, useEffect as de, useContext as ce } from "react";
3
- var R = { exports: {} }, P = {};
4
- /**
5
- * @license React
6
- * react-jsx-runtime.production.js
7
- *
8
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
- var z;
14
- function me() {
15
- if (z) return P;
16
- z = 1;
17
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
18
- function a(r, i, u) {
19
- var d = null;
20
- if (u !== void 0 && (d = "" + u), i.key !== void 0 && (d = "" + i.key), "key" in i) {
21
- u = {};
22
- for (var l in i)
23
- l !== "key" && (u[l] = i[l]);
24
- } else u = i;
25
- return i = u.ref, {
26
- $$typeof: t,
27
- type: r,
28
- key: d,
29
- ref: i !== void 0 ? i : null,
30
- props: u
31
- };
32
- }
33
- return P.Fragment = n, P.jsx = a, P.jsxs = a, P;
34
- }
35
- var E = {};
36
- /**
37
- * @license React
38
- * react-jsx-runtime.development.js
39
- *
40
- * Copyright (c) Meta Platforms, Inc. and affiliates.
41
- *
42
- * This source code is licensed under the MIT license found in the
43
- * LICENSE file in the root directory of this source tree.
44
- */
45
- var L;
46
- function le() {
47
- return L || (L = 1, process.env.NODE_ENV !== "production" && (function() {
48
- function t(e) {
49
- if (e == null) return null;
50
- if (typeof e == "function")
51
- return e.$$typeof === ne ? null : e.displayName || e.name || null;
52
- if (typeof e == "string") return e;
53
- switch (e) {
54
- case _:
55
- return "Fragment";
56
- case Q:
57
- return "Profiler";
58
- case U:
59
- return "StrictMode";
60
- case K:
61
- return "Suspense";
62
- case ee:
63
- return "SuspenseList";
64
- case ae:
65
- return "Activity";
66
- }
67
- if (typeof e == "object")
68
- switch (typeof e.tag == "number" && console.error(
69
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
- ), e.$$typeof) {
71
- case H:
72
- return "Portal";
73
- case G:
74
- return (e.displayName || "Context") + ".Provider";
75
- case B:
76
- return (e._context.displayName || "Context") + ".Consumer";
77
- case Z:
78
- var o = e.render;
79
- return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
80
- case te:
81
- return o = e.displayName || null, o !== null ? o : t(e.type) || "Memo";
82
- case C:
83
- o = e._payload, e = e._init;
84
- try {
85
- return t(e(o));
86
- } catch {
87
- }
88
- }
89
- return null;
90
- }
91
- function n(e) {
92
- return "" + e;
93
- }
94
- function a(e) {
95
- try {
96
- n(e);
97
- var o = !1;
98
- } catch {
99
- o = !0;
100
- }
101
- if (o) {
102
- o = console;
103
- var s = o.error, c = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
104
- return s.call(
105
- o,
106
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- c
108
- ), n(e);
109
- }
110
- }
111
- function r(e) {
112
- if (e === _) return "<>";
113
- if (typeof e == "object" && e !== null && e.$$typeof === C)
114
- return "<...>";
115
- try {
116
- var o = t(e);
117
- return o ? "<" + o + ">" : "<...>";
118
- } catch {
119
- return "<...>";
120
- }
121
- }
122
- function i() {
123
- var e = j.A;
124
- return e === null ? null : e.getOwner();
125
- }
126
- function u() {
127
- return Error("react-stack-top-frame");
128
- }
129
- function d(e) {
130
- if (D.call(e, "key")) {
131
- var o = Object.getOwnPropertyDescriptor(e, "key").get;
132
- if (o && o.isReactWarning) return !1;
133
- }
134
- return e.key !== void 0;
135
- }
136
- function l(e, o) {
137
- function s() {
138
- N || (N = !0, console.error(
139
- "%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)",
140
- o
141
- ));
142
- }
143
- s.isReactWarning = !0, Object.defineProperty(e, "key", {
144
- get: s,
145
- configurable: !0
146
- });
147
- }
148
- function k() {
149
- var e = t(this.type);
150
- return $[e] || ($[e] = !0, console.error(
151
- "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."
152
- )), e = this.props.ref, e !== void 0 ? e : null;
153
- }
154
- function v(e, o, s, c, g, h, S, x) {
155
- return s = h.ref, e = {
156
- $$typeof: O,
157
- type: e,
158
- key: o,
159
- props: h,
160
- _owner: g
161
- }, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
162
- enumerable: !1,
163
- get: k
164
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
165
- configurable: !1,
166
- enumerable: !1,
167
- writable: !0,
168
- value: 0
169
- }), Object.defineProperty(e, "_debugInfo", {
170
- configurable: !1,
171
- enumerable: !1,
172
- writable: !0,
173
- value: null
174
- }), Object.defineProperty(e, "_debugStack", {
175
- configurable: !1,
176
- enumerable: !1,
177
- writable: !0,
178
- value: S
179
- }), Object.defineProperty(e, "_debugTask", {
180
- configurable: !1,
181
- enumerable: !1,
182
- writable: !0,
183
- value: x
184
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
185
- }
186
- function M(e, o, s, c, g, h, S, x) {
187
- var m = o.children;
188
- if (m !== void 0)
189
- if (c)
190
- if (re(m)) {
191
- for (c = 0; c < m.length; c++)
192
- y(m[c]);
193
- Object.freeze && Object.freeze(m);
194
- } else
195
- console.error(
196
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
- );
198
- else y(m);
199
- if (D.call(o, "key")) {
200
- m = t(e);
201
- var p = Object.keys(o).filter(function(oe) {
202
- return oe !== "key";
203
- });
204
- c = 0 < p.length ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}", Y[m + c] || (p = 0 < p.length ? "{" + p.join(": ..., ") + ": ...}" : "{}", console.error(
205
- `A props object containing a "key" prop is being spread into JSX:
206
- let props = %s;
207
- <%s {...props} />
208
- React keys must be passed directly to JSX without using spread:
209
- let props = %s;
210
- <%s key={someKey} {...props} />`,
211
- c,
212
- m,
213
- p,
214
- m
215
- ), Y[m + c] = !0);
216
- }
217
- if (m = null, s !== void 0 && (a(s), m = "" + s), d(o) && (a(o.key), m = "" + o.key), "key" in o) {
218
- s = {};
219
- for (var A in o)
220
- A !== "key" && (s[A] = o[A]);
221
- } else s = o;
222
- return m && l(
223
- s,
224
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
225
- ), v(
226
- e,
227
- m,
228
- h,
229
- g,
230
- i(),
231
- s,
232
- S,
233
- x
234
- );
235
- }
236
- function y(e) {
237
- typeof e == "object" && e !== null && e.$$typeof === O && e._store && (e._store.validated = 1);
238
- }
239
- var T = ie, O = Symbol.for("react.transitional.element"), H = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), G = Symbol.for("react.context"), Z = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), j = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, re = Array.isArray, W = console.createTask ? console.createTask : function() {
240
- return null;
241
- };
242
- T = {
243
- react_stack_bottom_frame: function(e) {
244
- return e();
245
- }
246
- };
247
- var N, $ = {}, F = T.react_stack_bottom_frame.bind(
248
- T,
249
- u
250
- )(), q = W(r(u)), Y = {};
251
- E.Fragment = _, E.jsx = function(e, o, s, c, g) {
252
- var h = 1e4 > j.recentlyCreatedOwnerStacks++;
253
- return M(
254
- e,
255
- o,
256
- s,
257
- !1,
258
- c,
259
- g,
260
- h ? Error("react-stack-top-frame") : F,
261
- h ? W(r(e)) : q
262
- );
263
- }, E.jsxs = function(e, o, s, c, g) {
264
- var h = 1e4 > j.recentlyCreatedOwnerStacks++;
265
- return M(
266
- e,
267
- o,
268
- s,
269
- !0,
270
- c,
271
- g,
272
- h ? Error("react-stack-top-frame") : F,
273
- h ? W(r(e)) : q
274
- );
275
- };
276
- })()), E;
277
- }
278
- var V;
279
- function he() {
280
- return V || (V = 1, process.env.NODE_ENV === "production" ? R.exports = me() : R.exports = le()), R.exports;
281
- }
282
- var fe = he();
283
- const be = {
284
- lessThanXSeconds: {
285
- one: "less than a second",
286
- other: "less than {{count}} seconds"
287
- },
288
- xSeconds: {
289
- one: "1 second",
290
- other: "{{count}} seconds"
291
- },
292
- halfAMinute: "half a minute",
293
- lessThanXMinutes: {
294
- one: "less than a minute",
295
- other: "less than {{count}} minutes"
296
- },
297
- xMinutes: {
298
- one: "1 minute",
299
- other: "{{count}} minutes"
300
- },
301
- aboutXHours: {
302
- one: "about 1 hour",
303
- other: "about {{count}} hours"
304
- },
305
- xHours: {
306
- one: "1 hour",
307
- other: "{{count}} hours"
308
- },
309
- xDays: {
310
- one: "1 day",
311
- other: "{{count}} days"
312
- },
313
- aboutXWeeks: {
314
- one: "about 1 week",
315
- other: "about {{count}} weeks"
316
- },
317
- xWeeks: {
318
- one: "1 week",
319
- other: "{{count}} weeks"
320
- },
321
- aboutXMonths: {
322
- one: "about 1 month",
323
- other: "about {{count}} months"
324
- },
325
- xMonths: {
326
- one: "1 month",
327
- other: "{{count}} months"
328
- },
329
- aboutXYears: {
330
- one: "about 1 year",
331
- other: "about {{count}} years"
332
- },
333
- xYears: {
334
- one: "1 year",
335
- other: "{{count}} years"
336
- },
337
- overXYears: {
338
- one: "over 1 year",
339
- other: "over {{count}} years"
340
- },
341
- almostXYears: {
342
- one: "almost 1 year",
343
- other: "almost {{count}} years"
344
- }
345
- }, ge = (t, n, a) => {
346
- let r;
347
- const i = be[t];
348
- return typeof i == "string" ? r = i : n === 1 ? r = i.one : r = i.other.replace("{{count}}", n.toString()), a?.addSuffix ? a.comparison && a.comparison > 0 ? "in " + r : r + " ago" : r;
349
- };
350
- function w(t) {
351
- return (n = {}) => {
352
- const a = n.width ? String(n.width) : t.defaultWidth;
353
- return t.formats[a] || t.formats[t.defaultWidth];
354
- };
355
- }
356
- const ve = {
357
- full: "EEEE, MMMM do, y",
358
- long: "MMMM do, y",
359
- medium: "MMM d, y",
360
- short: "MM/dd/yyyy"
361
- }, ye = {
362
- full: "h:mm:ss a zzzz",
363
- long: "h:mm:ss a z",
364
- medium: "h:mm:ss a",
365
- short: "h:mm a"
366
- }, pe = {
367
- full: "{{date}} 'at' {{time}}",
368
- long: "{{date}} 'at' {{time}}",
369
- medium: "{{date}}, {{time}}",
370
- short: "{{date}}, {{time}}"
371
- }, we = {
372
- date: w({
373
- formats: ve,
374
- defaultWidth: "full"
375
- }),
376
- time: w({
377
- formats: ye,
378
- defaultWidth: "full"
379
- }),
380
- dateTime: w({
381
- formats: pe,
382
- defaultWidth: "full"
383
- })
384
- }, Pe = {
385
- lastWeek: "'last' eeee 'at' p",
386
- yesterday: "'yesterday at' p",
387
- today: "'today at' p",
388
- tomorrow: "'tomorrow at' p",
389
- nextWeek: "eeee 'at' p",
390
- other: "P"
391
- }, Ee = (t, n, a, r) => Pe[t];
392
- function f(t) {
393
- return (n, a) => {
394
- const r = a?.context ? String(a.context) : "standalone";
395
- let i;
396
- if (r === "formatting" && t.formattingValues) {
397
- const d = t.defaultFormattingWidth || t.defaultWidth, l = a?.width ? String(a.width) : d;
398
- i = t.formattingValues[l] || t.formattingValues[d];
399
- } else {
400
- const d = t.defaultWidth, l = a?.width ? String(a.width) : t.defaultWidth;
401
- i = t.values[l] || t.values[d];
402
- }
403
- const u = t.argumentCallback ? t.argumentCallback(n) : n;
404
- return i[u];
405
- };
406
- }
407
- const ke = {
408
- narrow: ["B", "A"],
409
- abbreviated: ["BC", "AD"],
410
- wide: ["Before Christ", "Anno Domini"]
411
- }, Me = {
412
- narrow: ["1", "2", "3", "4"],
413
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
414
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
415
- }, Te = {
416
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
417
- abbreviated: [
418
- "Jan",
419
- "Feb",
420
- "Mar",
421
- "Apr",
422
- "May",
423
- "Jun",
424
- "Jul",
425
- "Aug",
426
- "Sep",
427
- "Oct",
428
- "Nov",
429
- "Dec"
430
- ],
431
- wide: [
432
- "January",
433
- "February",
434
- "March",
435
- "April",
436
- "May",
437
- "June",
438
- "July",
439
- "August",
440
- "September",
441
- "October",
442
- "November",
443
- "December"
444
- ]
445
- }, Re = {
446
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
447
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
448
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
449
- wide: [
450
- "Sunday",
451
- "Monday",
452
- "Tuesday",
453
- "Wednesday",
454
- "Thursday",
455
- "Friday",
456
- "Saturday"
457
- ]
458
- }, _e = {
459
- narrow: {
460
- am: "a",
461
- pm: "p",
462
- midnight: "mi",
463
- noon: "n",
464
- morning: "morning",
465
- afternoon: "afternoon",
466
- evening: "evening",
467
- night: "night"
468
- },
469
- abbreviated: {
470
- am: "AM",
471
- pm: "PM",
472
- midnight: "midnight",
473
- noon: "noon",
474
- morning: "morning",
475
- afternoon: "afternoon",
476
- evening: "evening",
477
- night: "night"
478
- },
479
- wide: {
480
- am: "a.m.",
481
- pm: "p.m.",
482
- midnight: "midnight",
483
- noon: "noon",
484
- morning: "morning",
485
- afternoon: "afternoon",
486
- evening: "evening",
487
- night: "night"
488
- }
489
- }, je = {
490
- narrow: {
491
- am: "a",
492
- pm: "p",
493
- midnight: "mi",
494
- noon: "n",
495
- morning: "in the morning",
496
- afternoon: "in the afternoon",
497
- evening: "in the evening",
498
- night: "at night"
499
- },
500
- abbreviated: {
501
- am: "AM",
502
- pm: "PM",
503
- midnight: "midnight",
504
- noon: "noon",
505
- morning: "in the morning",
506
- afternoon: "in the afternoon",
507
- evening: "in the evening",
508
- night: "at night"
509
- },
510
- wide: {
511
- am: "a.m.",
512
- pm: "p.m.",
513
- midnight: "midnight",
514
- noon: "noon",
515
- morning: "in the morning",
516
- afternoon: "in the afternoon",
517
- evening: "in the evening",
518
- night: "at night"
519
- }
520
- }, We = (t, n) => {
521
- const a = Number(t), r = a % 100;
522
- if (r > 20 || r < 10)
523
- switch (r % 10) {
524
- case 1:
525
- return a + "st";
526
- case 2:
527
- return a + "nd";
528
- case 3:
529
- return a + "rd";
530
- }
531
- return a + "th";
532
- }, Se = {
533
- ordinalNumber: We,
534
- era: f({
535
- values: ke,
536
- defaultWidth: "wide"
537
- }),
538
- quarter: f({
539
- values: Me,
540
- defaultWidth: "wide",
541
- argumentCallback: (t) => t - 1
542
- }),
543
- month: f({
544
- values: Te,
545
- defaultWidth: "wide"
546
- }),
547
- day: f({
548
- values: Re,
549
- defaultWidth: "wide"
550
- }),
551
- dayPeriod: f({
552
- values: _e,
553
- defaultWidth: "wide",
554
- formattingValues: je,
555
- defaultFormattingWidth: "wide"
556
- })
557
- };
558
- function b(t) {
559
- return (n, a = {}) => {
560
- const r = a.width, i = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], u = n.match(i);
561
- if (!u)
562
- return null;
563
- const d = u[0], l = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], k = Array.isArray(l) ? Ae(l, (y) => y.test(d)) : (
564
- // [TODO] -- I challenge you to fix the type
565
- xe(l, (y) => y.test(d))
566
- );
567
- let v;
568
- v = t.valueCallback ? t.valueCallback(k) : k, v = a.valueCallback ? (
569
- // [TODO] -- I challenge you to fix the type
570
- a.valueCallback(v)
571
- ) : v;
572
- const M = n.slice(d.length);
573
- return { value: v, rest: M };
574
- };
575
- }
576
- function xe(t, n) {
577
- for (const a in t)
578
- if (Object.prototype.hasOwnProperty.call(t, a) && n(t[a]))
579
- return a;
580
- }
581
- function Ae(t, n) {
582
- for (let a = 0; a < t.length; a++)
583
- if (n(t[a]))
584
- return a;
585
- }
586
- function I(t) {
587
- return (n, a = {}) => {
588
- const r = n.match(t.matchPattern);
589
- if (!r) return null;
590
- const i = r[0], u = n.match(t.parsePattern);
591
- if (!u) return null;
592
- let d = t.valueCallback ? t.valueCallback(u[0]) : u[0];
593
- d = a.valueCallback ? a.valueCallback(d) : d;
594
- const l = n.slice(i.length);
595
- return { value: d, rest: l };
596
- };
597
- }
598
- const Oe = /^(\d+)(th|st|nd|rd)?/i, Ce = /\d+/i, De = {
599
- narrow: /^(b|a)/i,
600
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
601
- wide: /^(before christ|before common era|anno domini|common era)/i
602
- }, Ne = {
603
- any: [/^b/i, /^(a|c)/i]
604
- }, $e = {
605
- narrow: /^[1234]/i,
606
- abbreviated: /^q[1234]/i,
607
- wide: /^[1234](th|st|nd|rd)? quarter/i
608
- }, Fe = {
609
- any: [/1/i, /2/i, /3/i, /4/i]
610
- }, qe = {
611
- narrow: /^[jfmasond]/i,
612
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
613
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
614
- }, Ye = {
615
- narrow: [
616
- /^j/i,
617
- /^f/i,
618
- /^m/i,
619
- /^a/i,
620
- /^m/i,
621
- /^j/i,
622
- /^j/i,
623
- /^a/i,
624
- /^s/i,
625
- /^o/i,
626
- /^n/i,
627
- /^d/i
628
- ],
629
- any: [
630
- /^ja/i,
631
- /^f/i,
632
- /^mar/i,
633
- /^ap/i,
634
- /^may/i,
635
- /^jun/i,
636
- /^jul/i,
637
- /^au/i,
638
- /^s/i,
639
- /^o/i,
640
- /^n/i,
641
- /^d/i
642
- ]
643
- }, ze = {
644
- narrow: /^[smtwf]/i,
645
- short: /^(su|mo|tu|we|th|fr|sa)/i,
646
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
647
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
648
- }, Le = {
649
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
650
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
651
- }, Ve = {
652
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
653
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
654
- }, Xe = {
655
- any: {
656
- am: /^a/i,
657
- pm: /^p/i,
658
- midnight: /^mi/i,
659
- noon: /^no/i,
660
- morning: /morning/i,
661
- afternoon: /afternoon/i,
662
- evening: /evening/i,
663
- night: /night/i
664
- }
665
- }, Ie = {
666
- ordinalNumber: I({
667
- matchPattern: Oe,
668
- parsePattern: Ce,
669
- valueCallback: (t) => parseInt(t, 10)
670
- }),
671
- era: b({
672
- matchPatterns: De,
673
- defaultMatchWidth: "wide",
674
- parsePatterns: Ne,
675
- defaultParseWidth: "any"
676
- }),
677
- quarter: b({
678
- matchPatterns: $e,
679
- defaultMatchWidth: "wide",
680
- parsePatterns: Fe,
681
- defaultParseWidth: "any",
682
- valueCallback: (t) => t + 1
683
- }),
684
- month: b({
685
- matchPatterns: qe,
686
- defaultMatchWidth: "wide",
687
- parsePatterns: Ye,
688
- defaultParseWidth: "any"
689
- }),
690
- day: b({
691
- matchPatterns: ze,
692
- defaultMatchWidth: "wide",
693
- parsePatterns: Le,
694
- defaultParseWidth: "any"
695
- }),
696
- dayPeriod: b({
697
- matchPatterns: Ve,
698
- defaultMatchWidth: "any",
699
- parsePatterns: Xe,
700
- defaultParseWidth: "any"
701
- })
702
- }, Je = {
703
- code: "en-US",
704
- formatDistance: ge,
705
- formatLong: we,
706
- formatRelative: Ee,
707
- localize: Se,
708
- match: Ie,
709
- options: {
710
- weekStartsOn: 0,
711
- firstWeekContainsDate: 1
712
- }
713
- }, He = {
714
- lessThanXSeconds: {
715
- one: "menos de um segundo",
716
- other: "menos de {{count}} segundos"
717
- },
718
- xSeconds: {
719
- one: "1 segundo",
720
- other: "{{count}} segundos"
721
- },
722
- halfAMinute: "meio minuto",
723
- lessThanXMinutes: {
724
- one: "menos de um minuto",
725
- other: "menos de {{count}} minutos"
726
- },
727
- xMinutes: {
728
- one: "1 minuto",
729
- other: "{{count}} minutos"
730
- },
731
- aboutXHours: {
732
- one: "cerca de 1 hora",
733
- other: "cerca de {{count}} horas"
734
- },
735
- xHours: {
736
- one: "1 hora",
737
- other: "{{count}} horas"
738
- },
739
- xDays: {
740
- one: "1 dia",
741
- other: "{{count}} dias"
742
- },
743
- aboutXWeeks: {
744
- one: "cerca de 1 semana",
745
- other: "cerca de {{count}} semanas"
746
- },
747
- xWeeks: {
748
- one: "1 semana",
749
- other: "{{count}} semanas"
750
- },
751
- aboutXMonths: {
752
- one: "cerca de 1 mês",
753
- other: "cerca de {{count}} meses"
754
- },
755
- xMonths: {
756
- one: "1 mês",
757
- other: "{{count}} meses"
758
- },
759
- aboutXYears: {
760
- one: "cerca de 1 ano",
761
- other: "cerca de {{count}} anos"
762
- },
763
- xYears: {
764
- one: "1 ano",
765
- other: "{{count}} anos"
766
- },
767
- overXYears: {
768
- one: "mais de 1 ano",
769
- other: "mais de {{count}} anos"
770
- },
771
- almostXYears: {
772
- one: "quase 1 ano",
773
- other: "quase {{count}} anos"
774
- }
775
- }, Ue = (t, n, a) => {
776
- let r;
777
- const i = He[t];
778
- return typeof i == "string" ? r = i : n === 1 ? r = i.one : r = i.other.replace("{{count}}", String(n)), a?.addSuffix ? a.comparison && a.comparison > 0 ? "em " + r : "há " + r : r;
779
- }, Qe = {
780
- full: "EEEE, d 'de' MMMM 'de' y",
781
- long: "d 'de' MMMM 'de' y",
782
- medium: "d MMM y",
783
- short: "dd/MM/yyyy"
784
- }, Be = {
785
- full: "HH:mm:ss zzzz",
786
- long: "HH:mm:ss z",
787
- medium: "HH:mm:ss",
788
- short: "HH:mm"
789
- }, Ge = {
790
- full: "{{date}} 'às' {{time}}",
791
- long: "{{date}} 'às' {{time}}",
792
- medium: "{{date}}, {{time}}",
793
- short: "{{date}}, {{time}}"
794
- }, Ze = {
795
- date: w({
796
- formats: Qe,
797
- defaultWidth: "full"
798
- }),
799
- time: w({
800
- formats: Be,
801
- defaultWidth: "full"
802
- }),
803
- dateTime: w({
804
- formats: Ge,
805
- defaultWidth: "full"
806
- })
807
- }, Ke = {
808
- lastWeek: (t) => {
809
- const n = t.getDay();
810
- return "'" + (n === 0 || n === 6 ? "último" : "última") + "' eeee 'às' p";
811
- },
812
- yesterday: "'ontem às' p",
813
- today: "'hoje às' p",
814
- tomorrow: "'amanhã às' p",
815
- nextWeek: "eeee 'às' p",
816
- other: "P"
817
- }, et = (t, n, a, r) => {
818
- const i = Ke[t];
819
- return typeof i == "function" ? i(n) : i;
820
- }, tt = {
821
- narrow: ["AC", "DC"],
822
- abbreviated: ["AC", "DC"],
823
- wide: ["antes de cristo", "depois de cristo"]
824
- }, at = {
825
- narrow: ["1", "2", "3", "4"],
826
- abbreviated: ["T1", "T2", "T3", "T4"],
827
- wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
828
- }, nt = {
829
- narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
830
- abbreviated: [
831
- "jan",
832
- "fev",
833
- "mar",
834
- "abr",
835
- "mai",
836
- "jun",
837
- "jul",
838
- "ago",
839
- "set",
840
- "out",
841
- "nov",
842
- "dez"
843
- ],
844
- wide: [
845
- "janeiro",
846
- "fevereiro",
847
- "março",
848
- "abril",
849
- "maio",
850
- "junho",
851
- "julho",
852
- "agosto",
853
- "setembro",
854
- "outubro",
855
- "novembro",
856
- "dezembro"
857
- ]
858
- }, rt = {
859
- narrow: ["D", "S", "T", "Q", "Q", "S", "S"],
860
- short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"],
861
- abbreviated: [
862
- "domingo",
863
- "segunda",
864
- "terça",
865
- "quarta",
866
- "quinta",
867
- "sexta",
868
- "sábado"
869
- ],
870
- wide: [
871
- "domingo",
872
- "segunda-feira",
873
- "terça-feira",
874
- "quarta-feira",
875
- "quinta-feira",
876
- "sexta-feira",
877
- "sábado"
878
- ]
879
- }, ot = {
880
- narrow: {
881
- am: "a",
882
- pm: "p",
883
- midnight: "mn",
884
- noon: "md",
885
- morning: "manhã",
886
- afternoon: "tarde",
887
- evening: "tarde",
888
- night: "noite"
889
- },
890
- abbreviated: {
891
- am: "AM",
892
- pm: "PM",
893
- midnight: "meia-noite",
894
- noon: "meio-dia",
895
- morning: "manhã",
896
- afternoon: "tarde",
897
- evening: "tarde",
898
- night: "noite"
899
- },
900
- wide: {
901
- am: "a.m.",
902
- pm: "p.m.",
903
- midnight: "meia-noite",
904
- noon: "meio-dia",
905
- morning: "manhã",
906
- afternoon: "tarde",
907
- evening: "tarde",
908
- night: "noite"
909
- }
910
- }, it = {
911
- narrow: {
912
- am: "a",
913
- pm: "p",
914
- midnight: "mn",
915
- noon: "md",
916
- morning: "da manhã",
917
- afternoon: "da tarde",
918
- evening: "da tarde",
919
- night: "da noite"
920
- },
921
- abbreviated: {
922
- am: "AM",
923
- pm: "PM",
924
- midnight: "meia-noite",
925
- noon: "meio-dia",
926
- morning: "da manhã",
927
- afternoon: "da tarde",
928
- evening: "da tarde",
929
- night: "da noite"
930
- },
931
- wide: {
932
- am: "a.m.",
933
- pm: "p.m.",
934
- midnight: "meia-noite",
935
- noon: "meio-dia",
936
- morning: "da manhã",
937
- afternoon: "da tarde",
938
- evening: "da tarde",
939
- night: "da noite"
940
- }
941
- }, st = (t, n) => {
942
- const a = Number(t);
943
- return n?.unit === "week" ? a + "ª" : a + "º";
944
- }, ut = {
945
- ordinalNumber: st,
946
- era: f({
947
- values: tt,
948
- defaultWidth: "wide"
949
- }),
950
- quarter: f({
951
- values: at,
952
- defaultWidth: "wide",
953
- argumentCallback: (t) => t - 1
954
- }),
955
- month: f({
956
- values: nt,
957
- defaultWidth: "wide"
958
- }),
959
- day: f({
960
- values: rt,
961
- defaultWidth: "wide"
962
- }),
963
- dayPeriod: f({
964
- values: ot,
965
- defaultWidth: "wide",
966
- formattingValues: it,
967
- defaultFormattingWidth: "wide"
968
- })
969
- }, dt = /^(\d+)[ºªo]?/i, ct = /\d+/i, mt = {
970
- narrow: /^(ac|dc|a|d)/i,
971
- abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
972
- wide: /^(antes de cristo|depois de cristo)/i
973
- }, lt = {
974
- any: [/^ac/i, /^dc/i],
975
- wide: [/^antes de cristo/i, /^depois de cristo/i]
976
- }, ht = {
977
- narrow: /^[1234]/i,
978
- abbreviated: /^T[1234]/i,
979
- wide: /^[1234](º)? trimestre/i
980
- }, ft = {
981
- any: [/1/i, /2/i, /3/i, /4/i]
982
- }, bt = {
983
- narrow: /^[jfmajsond]/i,
984
- abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
985
- wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
986
- }, gt = {
987
- narrow: [
988
- /^j/i,
989
- /^f/i,
990
- /^m/i,
991
- /^a/i,
992
- /^m/i,
993
- /^j/i,
994
- /^j/i,
995
- /^a/i,
996
- /^s/i,
997
- /^o/i,
998
- /^n/i,
999
- /^d/i
1000
- ],
1001
- any: [
1002
- /^ja/i,
1003
- /^fev/i,
1004
- /^mar/i,
1005
- /^abr/i,
1006
- /^mai/i,
1007
- /^jun/i,
1008
- /^jul/i,
1009
- /^ago/i,
1010
- /^set/i,
1011
- /^out/i,
1012
- /^nov/i,
1013
- /^dez/i
1014
- ]
1015
- }, vt = {
1016
- narrow: /^(dom|[23456]ª?|s[aá]b)/i,
1017
- short: /^(dom|[23456]ª?|s[aá]b)/i,
1018
- abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,
1019
- wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i
1020
- }, yt = {
1021
- short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
1022
- narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
1023
- any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i]
1024
- }, pt = {
1025
- narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
1026
- any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
1027
- }, wt = {
1028
- any: {
1029
- am: /^a/i,
1030
- pm: /^p/i,
1031
- midnight: /^mn|^meia[-\s]noite/i,
1032
- noon: /^md|^meio[-\s]dia/i,
1033
- morning: /manhã/i,
1034
- afternoon: /tarde/i,
1035
- evening: /tarde/i,
1036
- night: /noite/i
1037
- }
1038
- }, Pt = {
1039
- ordinalNumber: I({
1040
- matchPattern: dt,
1041
- parsePattern: ct,
1042
- valueCallback: (t) => parseInt(t, 10)
1043
- }),
1044
- era: b({
1045
- matchPatterns: mt,
1046
- defaultMatchWidth: "wide",
1047
- parsePatterns: lt,
1048
- defaultParseWidth: "any"
1049
- }),
1050
- quarter: b({
1051
- matchPatterns: ht,
1052
- defaultMatchWidth: "wide",
1053
- parsePatterns: ft,
1054
- defaultParseWidth: "any",
1055
- valueCallback: (t) => t + 1
1056
- }),
1057
- month: b({
1058
- matchPatterns: bt,
1059
- defaultMatchWidth: "wide",
1060
- parsePatterns: gt,
1061
- defaultParseWidth: "any"
1062
- }),
1063
- day: b({
1064
- matchPatterns: vt,
1065
- defaultMatchWidth: "wide",
1066
- parsePatterns: yt,
1067
- defaultParseWidth: "any"
1068
- }),
1069
- dayPeriod: b({
1070
- matchPatterns: pt,
1071
- defaultMatchWidth: "any",
1072
- parsePatterns: wt,
1073
- defaultParseWidth: "any"
1074
- })
1075
- }, Et = {
1076
- code: "pt-BR",
1077
- formatDistance: Ue,
1078
- formatLong: Ze,
1079
- formatRelative: et,
1080
- localize: ut,
1081
- match: Pt,
1082
- options: {
1083
- weekStartsOn: 0,
1084
- firstWeekContainsDate: 1
1085
- }
1086
- }, X = {
1087
- ptBR: Et,
1088
- enUS: Je
1089
- }, J = se({
1090
- locale: void 0
1091
- });
1092
- function Mt() {
1093
- return ce(J);
1094
- }
1095
- function Tt({
1096
- locale: t,
1097
- children: n
1098
- }) {
1099
- const [a, r] = ue(X[t]);
1100
- de(() => {
1101
- r(X[t]);
1102
- }, [t]);
1103
- const i = { locale: a };
1104
- return /* @__PURE__ */ fe.jsx(J.Provider, { value: i, children: n });
1105
- }
1106
- export {
1107
- Tt as L,
1108
- Je as e,
1109
- fe as j,
1110
- Mt as u
1111
- };