@sudobility/email-components 1.0.11 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,17 +1,17 @@
1
- import { jsx as g, jsxs as E } from "react/jsx-runtime";
2
- import { cn as C, ChainBadge as Te, Label as Ie } from "@sudobility/components";
1
+ import { jsx as v, jsxs as R } from "react/jsx-runtime";
2
+ import { cn as k, ChainBadge as Te, Label as Ie } from "@sudobility/components";
3
3
  import * as u from "react";
4
- import { useRef as De, useState as Ue, useEffect as Be } from "react";
5
- import { ChevronRightIcon as Me, ChevronUpIcon as Oe, ChevronDownIcon as We } from "@heroicons/react/24/outline";
4
+ import { useRef as De, useState as Ue, useEffect as Me } from "react";
5
+ import { ChevronRightIcon as Be, ChevronUpIcon as Oe, ChevronDownIcon as We } from "@heroicons/react/24/outline";
6
6
  import { textVariants as he } from "@sudobility/design";
7
- const br = ({
7
+ const pr = ({
8
8
  className: e,
9
9
  children: r,
10
10
  disabled: t
11
- }) => /* @__PURE__ */ g(
11
+ }) => /* @__PURE__ */ v(
12
12
  "div",
13
13
  {
14
- className: C(
14
+ className: k(
15
15
  "p-4 rounded-lg border transition-colors",
16
16
  "bg-white dark:bg-gray-900",
17
17
  "border-gray-200 dark:border-gray-700",
@@ -20,39 +20,36 @@ const br = ({
20
20
  e
21
21
  ),
22
22
  role: "region",
23
- "aria-label": "AbTestEmail",
24
- children: r || "AbTestEmail Component"
23
+ "aria-label": "SubscriberList",
24
+ children: r || "SubscriberList Component"
25
25
  }
26
- ), Ve = {
27
- evm: "bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300",
28
- solana: "bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-300",
29
- bitcoin: "bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-300",
30
- other: "bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-300"
31
- }, _e = {
32
- sm: "text-xs px-2 py-0.5",
33
- md: "text-sm px-2.5 py-0.5",
34
- lg: "text-base px-3 py-1"
35
- }, yr = ({
36
- chainType: e,
37
- size: r = "md"
38
- }) => /* @__PURE__ */ g(
39
- "span",
26
+ ), gr = ({
27
+ className: e,
28
+ children: r,
29
+ disabled: t
30
+ }) => /* @__PURE__ */ v(
31
+ "div",
40
32
  {
41
- className: C(
42
- "inline-flex items-center rounded-full font-medium",
43
- Ve[e],
44
- _e[r]
33
+ className: k(
34
+ "p-4 rounded-lg border transition-colors",
35
+ "bg-white dark:bg-gray-900",
36
+ "border-gray-200 dark:border-gray-700",
37
+ "text-gray-900 dark:text-white",
38
+ t && "opacity-50 cursor-not-allowed",
39
+ e
45
40
  ),
46
- children: e.toUpperCase()
41
+ role: "region",
42
+ "aria-label": "AbTestEmail",
43
+ children: r || "AbTestEmail Component"
47
44
  }
48
- ), vr = ({
45
+ ), yr = ({
49
46
  className: e,
50
47
  children: r,
51
48
  disabled: t
52
- }) => /* @__PURE__ */ g(
49
+ }) => /* @__PURE__ */ v(
53
50
  "div",
54
51
  {
55
- className: C(
52
+ className: k(
56
53
  "p-4 rounded-lg border transition-colors",
57
54
  "bg-white dark:bg-gray-900",
58
55
  "border-gray-200 dark:border-gray-700",
@@ -64,9 +61,9 @@ const br = ({
64
61
  "aria-label": "ContactCard",
65
62
  children: r || "ContactCard Component"
66
63
  }
67
- ), je = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", pe = ({ type: e, addressType: r }) => {
64
+ ), Ve = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", pe = ({ type: e, addressType: r }) => {
68
65
  if (e === "primary")
69
- return /* @__PURE__ */ g(
66
+ return /* @__PURE__ */ v(
70
67
  Te,
71
68
  {
72
69
  chainType: r === "solana" ? "solana" : "evm",
@@ -74,10 +71,10 @@ const br = ({
74
71
  }
75
72
  );
76
73
  const t = () => e.toUpperCase();
77
- return /* @__PURE__ */ g(
74
+ return /* @__PURE__ */ v(
78
75
  "span",
79
76
  {
80
- className: C(
77
+ className: k(
81
78
  "inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium border",
82
79
  (() => {
83
80
  switch (e) {
@@ -93,65 +90,65 @@ const br = ({
93
90
  children: t()
94
91
  }
95
92
  );
96
- }, He = ({
93
+ }, _e = ({
97
94
  domainEmails: e,
98
95
  isExpanded: r,
99
96
  selectedAccount: t,
100
97
  onAccountSelect: n,
101
98
  onAccountSettings: a
102
99
  }) => {
103
- const l = De(null), [o, s] = Ue(void 0);
104
- return Be(() => {
105
- if (l.current) {
106
- const i = l.current.scrollHeight;
100
+ const o = De(null), [l, s] = Ue(void 0);
101
+ return Me(() => {
102
+ if (o.current) {
103
+ const i = o.current.scrollHeight;
107
104
  s(r ? i + 8 : 0);
108
105
  }
109
- }, [r, e]), /* @__PURE__ */ g(
106
+ }, [r, e]), /* @__PURE__ */ v(
110
107
  "div",
111
108
  {
112
109
  className: "overflow-hidden transition-all duration-300 ease-in-out",
113
- style: { height: o !== void 0 ? `${o}px` : "auto" },
114
- children: /* @__PURE__ */ g("div", { ref: l, className: "ml-6 mt-2 space-y-1", children: e.map((i) => /* @__PURE__ */ E(
110
+ style: { height: l !== void 0 ? `${l}px` : "auto" },
111
+ children: /* @__PURE__ */ v("div", { ref: o, className: "ml-6 mt-2 space-y-1", children: e.map((i) => /* @__PURE__ */ R(
115
112
  "button",
116
113
  {
117
114
  onClick: () => n(i.address),
118
- className: C(
115
+ className: k(
119
116
  "w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
120
117
  he.body.sm(),
121
118
  t === i.address ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
122
119
  ),
123
120
  children: [
124
- /* @__PURE__ */ g("span", { className: "truncate flex-1", children: i.name }),
125
- /* @__PURE__ */ g(pe, { type: i.type, addressType: i.addressType })
121
+ /* @__PURE__ */ v("span", { className: "truncate flex-1", children: i.name }),
122
+ /* @__PURE__ */ v(pe, { type: i.type, addressType: i.addressType })
126
123
  ]
127
124
  },
128
125
  i.address
129
126
  )) })
130
127
  }
131
128
  );
132
- }, xr = ({
129
+ }, br = ({
133
130
  walletGroups: e,
134
131
  selectedAccount: r,
135
132
  expandedWallets: t,
136
133
  onAccountSelect: n,
137
134
  onToggleWallet: a,
138
- onAccountSettings: l,
139
- className: o = ""
140
- }) => /* @__PURE__ */ g("nav", { className: C("space-y-1", o), children: e.map((s) => /* @__PURE__ */ E("div", { children: [
141
- /* @__PURE__ */ E(
135
+ onAccountSettings: o,
136
+ className: l = ""
137
+ }) => /* @__PURE__ */ v("nav", { className: k("space-y-1", l), children: e.map((s) => /* @__PURE__ */ R("div", { children: [
138
+ /* @__PURE__ */ R(
142
139
  "button",
143
140
  {
144
141
  onClick: () => n(s.primaryEmail.address),
145
- className: C(
142
+ className: k(
146
143
  "w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
147
144
  he.body.sm(),
148
145
  r === s.primaryEmail.address && s.domainEmails.length === 0 ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
149
146
  ),
150
147
  style: s.customColor ? { backgroundColor: s.customColor } : void 0,
151
148
  children: [
152
- /* @__PURE__ */ E("div", { className: "flex items-center flex-1 min-w-0", children: [
153
- /* @__PURE__ */ g("span", { className: "truncate flex-1", children: je(s.walletAddress) }),
154
- /* @__PURE__ */ g(
149
+ /* @__PURE__ */ R("div", { className: "flex items-center flex-1 min-w-0", children: [
150
+ /* @__PURE__ */ v("span", { className: "truncate flex-1", children: Ve(s.walletAddress) }),
151
+ /* @__PURE__ */ v(
155
152
  pe,
156
153
  {
157
154
  type: s.primaryEmail.type,
@@ -159,7 +156,7 @@ const br = ({
159
156
  }
160
157
  )
161
158
  ] }),
162
- s.domainEmails.length > 0 && /* @__PURE__ */ g(
159
+ s.domainEmails.length > 0 && /* @__PURE__ */ v(
163
160
  "div",
164
161
  {
165
162
  onClick: (i) => {
@@ -171,10 +168,10 @@ const br = ({
171
168
  onKeyDown: (i) => {
172
169
  (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), a(s.walletAddress));
173
170
  },
174
- children: /* @__PURE__ */ g(
175
- Me,
171
+ children: /* @__PURE__ */ v(
172
+ Be,
176
173
  {
177
- className: C(
174
+ className: k(
178
175
  "h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",
179
176
  t.includes(s.walletAddress) ? "rotate-90" : "rotate-0"
180
177
  )
@@ -185,24 +182,24 @@ const br = ({
185
182
  ]
186
183
  }
187
184
  ),
188
- s.domainEmails.length > 0 && /* @__PURE__ */ g(
189
- He,
185
+ s.domainEmails.length > 0 && /* @__PURE__ */ v(
186
+ _e,
190
187
  {
191
188
  domainEmails: s.domainEmails,
192
189
  isExpanded: t.includes(s.walletAddress),
193
190
  selectedAccount: r,
194
191
  onAccountSelect: n,
195
- onAccountSettings: l
192
+ onAccountSettings: o
196
193
  }
197
194
  )
198
- ] }, s.walletAddress)) }), wr = ({
195
+ ] }, s.walletAddress)) }), vr = ({
199
196
  className: e,
200
197
  children: r,
201
198
  disabled: t
202
- }) => /* @__PURE__ */ g(
199
+ }) => /* @__PURE__ */ v(
203
200
  "div",
204
201
  {
205
- className: C(
202
+ className: k(
206
203
  "p-4 rounded-lg border transition-colors",
207
204
  "bg-white dark:bg-gray-900",
208
205
  "border-gray-200 dark:border-gray-700",
@@ -214,14 +211,14 @@ const br = ({
214
211
  "aria-label": "EmailAnalytics",
215
212
  children: r || "EmailAnalytics Component"
216
213
  }
217
- ), Cr = ({
214
+ ), xr = ({
218
215
  className: e,
219
216
  children: r,
220
217
  disabled: t
221
- }) => /* @__PURE__ */ g(
218
+ }) => /* @__PURE__ */ v(
222
219
  "div",
223
220
  {
224
- className: C(
221
+ className: k(
225
222
  "p-4 rounded-lg border transition-colors",
226
223
  "bg-white dark:bg-gray-900",
227
224
  "border-gray-200 dark:border-gray-700",
@@ -239,10 +236,10 @@ const br = ({
239
236
  onChange: t,
240
237
  placeholder: n,
241
238
  required: a = !1,
242
- error: l,
243
- className: o = ""
244
- }) => /* @__PURE__ */ E("div", { className: o, children: [
245
- /* @__PURE__ */ E(
239
+ error: o,
240
+ className: l = ""
241
+ }) => /* @__PURE__ */ R("div", { className: l, children: [
242
+ /* @__PURE__ */ R(
246
243
  Ie,
247
244
  {
248
245
  htmlFor: e.toLowerCase(),
@@ -250,11 +247,11 @@ const br = ({
250
247
  children: [
251
248
  e,
252
249
  " ",
253
- a && /* @__PURE__ */ g("span", { className: "text-red-500", children: "*" })
250
+ a && /* @__PURE__ */ v("span", { className: "text-red-500", children: "*" })
254
251
  ]
255
252
  }
256
253
  ),
257
- /* @__PURE__ */ g(
254
+ /* @__PURE__ */ v(
258
255
  "input",
259
256
  {
260
257
  id: e.toLowerCase(),
@@ -266,48 +263,48 @@ const br = ({
266
263
  mt-1 block w-full px-3 py-2 border rounded-md shadow-sm
267
264
  focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
268
265
  dark:bg-gray-800 dark:border-gray-600 dark:text-white
269
- ${l ? "border-red-300 focus:ring-red-500 focus:border-red-500" : "border-gray-300 dark:border-gray-600"}
266
+ ${o ? "border-red-300 focus:ring-red-500 focus:border-red-500" : "border-gray-300 dark:border-gray-600"}
270
267
  `
271
268
  }
272
269
  ),
273
- l && /* @__PURE__ */ g("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: l })
270
+ o && /* @__PURE__ */ v("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: o })
274
271
  ] }), ie = ({
275
272
  isVisible: e,
276
273
  onToggle: r,
277
274
  showLabel: t,
278
275
  hideLabel: n,
279
276
  ...a
280
- }) => /* @__PURE__ */ E("div", { children: [
281
- /* @__PURE__ */ E(
277
+ }) => /* @__PURE__ */ R("div", { children: [
278
+ /* @__PURE__ */ R(
282
279
  "button",
283
280
  {
284
281
  type: "button",
285
282
  onClick: r,
286
283
  className: "flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 mb-2",
287
284
  children: [
288
- e ? /* @__PURE__ */ g(Oe, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ g(We, { className: "h-4 w-4 mr-1" }),
285
+ e ? /* @__PURE__ */ v(Oe, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ v(We, { className: "h-4 w-4 mr-1" }),
289
286
  e ? n : t
290
287
  ]
291
288
  }
292
289
  ),
293
- e && /* @__PURE__ */ g(ge, { ...a })
294
- ] }), kr = ({
290
+ e && /* @__PURE__ */ v(ge, { ...a })
291
+ ] }), wr = ({
295
292
  to: e,
296
293
  onToChange: r,
297
294
  cc: t = "",
298
295
  onCcChange: n,
299
296
  bcc: a = "",
300
- onBccChange: l,
301
- showCc: o = !1,
297
+ onBccChange: o,
298
+ showCc: l = !1,
302
299
  showBcc: s = !1,
303
300
  onToggleCc: i,
304
301
  onToggleBcc: c,
305
302
  errors: d = {},
306
- className: m = "",
307
- labels: f = {},
303
+ className: f = "",
304
+ labels: m = {},
308
305
  placeholders: p = {}
309
306
  }) => {
310
- const b = {
307
+ const g = {
311
308
  to: "To",
312
309
  cc: "CC",
313
310
  bcc: "BCC",
@@ -319,9 +316,9 @@ const br = ({
319
316
  to: "recipient@example.com",
320
317
  cc: "cc@example.com",
321
318
  bcc: "bcc@example.com"
322
- }, h = { ...b, ...f }, y = { ...x, ...p };
323
- return /* @__PURE__ */ E("div", { className: `space-y-4 ${m}`, children: [
324
- /* @__PURE__ */ g(
319
+ }, h = { ...g, ...m }, y = { ...x, ...p };
320
+ return /* @__PURE__ */ R("div", { className: `space-y-4 ${f}`, children: [
321
+ /* @__PURE__ */ v(
325
322
  ge,
326
323
  {
327
324
  label: h.to,
@@ -332,7 +329,7 @@ const br = ({
332
329
  error: d.to
333
330
  }
334
331
  ),
335
- i && n && /* @__PURE__ */ g(
332
+ i && n && /* @__PURE__ */ v(
336
333
  ie,
337
334
  {
338
335
  label: h.cc,
@@ -340,18 +337,18 @@ const br = ({
340
337
  onChange: n,
341
338
  placeholder: y.cc,
342
339
  error: d.cc,
343
- isVisible: o,
340
+ isVisible: l,
344
341
  onToggle: i,
345
342
  showLabel: h.addCc,
346
343
  hideLabel: h.removeCc
347
344
  }
348
345
  ),
349
- c && l && /* @__PURE__ */ g(
346
+ c && o && /* @__PURE__ */ v(
350
347
  ie,
351
348
  {
352
349
  label: h.bcc,
353
350
  value: a,
354
- onChange: l,
351
+ onChange: o,
355
352
  placeholder: y.bcc,
356
353
  error: d.bcc,
357
354
  isVisible: s,
@@ -361,15 +358,15 @@ const br = ({
361
358
  }
362
359
  )
363
360
  ] });
364
- }, Er = ({
361
+ }, Cr = ({
365
362
  className: e,
366
363
  children: r,
367
364
  disabled: t = !1,
368
365
  onClick: n
369
- }) => /* @__PURE__ */ g(
366
+ }) => /* @__PURE__ */ v(
370
367
  "div",
371
368
  {
372
- className: C(
369
+ className: k(
373
370
  "p-4 rounded-lg border transition-colors",
374
371
  "bg-white dark:bg-gray-900",
375
372
  "border-gray-200 dark:border-gray-700",
@@ -384,7 +381,7 @@ const br = ({
384
381
  children: r || "UemailUtemplate Component"
385
382
  }
386
383
  );
387
- function k(e, r) {
384
+ function C(e, r) {
388
385
  if (e === !1 || e === null || typeof e > "u")
389
386
  throw new Error(r);
390
387
  }
@@ -414,100 +411,100 @@ function X(e) {
414
411
  }
415
412
  return r;
416
413
  }
417
- function be(e, r, t = "/") {
418
- return ze(e, r, t, !1);
414
+ function ye(e, r, t = "/") {
415
+ return je(e, r, t, !1);
419
416
  }
420
- function ze(e, r, t, n) {
421
- let a = typeof r == "string" ? X(r) : r, l = $(a.pathname || "/", t);
422
- if (l == null)
417
+ function je(e, r, t, n) {
418
+ let a = typeof r == "string" ? X(r) : r, o = $(a.pathname || "/", t);
419
+ if (o == null)
423
420
  return null;
424
- let o = ye(e);
425
- Ke(o);
421
+ let l = be(e);
422
+ He(l);
426
423
  let s = null;
427
- for (let i = 0; s == null && i < o.length; ++i) {
428
- let c = nt(l);
429
- s = tt(
430
- o[i],
424
+ for (let i = 0; s == null && i < l.length; ++i) {
425
+ let c = tt(o);
426
+ s = Ze(
427
+ l[i],
431
428
  c,
432
429
  n
433
430
  );
434
431
  }
435
432
  return s;
436
433
  }
437
- function ye(e, r = [], t = [], n = "", a = !1) {
438
- let l = (o, s, i = a, c) => {
434
+ function be(e, r = [], t = [], n = "", a = !1) {
435
+ let o = (l, s, i = a, c) => {
439
436
  let d = {
440
- relativePath: c === void 0 ? o.path || "" : c,
441
- caseSensitive: o.caseSensitive === !0,
437
+ relativePath: c === void 0 ? l.path || "" : c,
438
+ caseSensitive: l.caseSensitive === !0,
442
439
  childrenIndex: s,
443
- route: o
440
+ route: l
444
441
  };
445
442
  if (d.relativePath.startsWith("/")) {
446
443
  if (!d.relativePath.startsWith(n) && i)
447
444
  return;
448
- k(
445
+ C(
449
446
  d.relativePath.startsWith(n),
450
447
  `Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
451
448
  ), d.relativePath = d.relativePath.slice(n.length);
452
449
  }
453
- let m = P([n, d.relativePath]), f = t.concat(d);
454
- o.children && o.children.length > 0 && (k(
450
+ let f = P([n, d.relativePath]), m = t.concat(d);
451
+ l.children && l.children.length > 0 && (C(
455
452
  // Our types know better, but runtime JS may not!
456
453
  // @ts-expect-error
457
- o.index !== !0,
458
- `Index routes must not have child routes. Please remove all child routes from route path "${m}".`
459
- ), ye(
460
- o.children,
454
+ l.index !== !0,
455
+ `Index routes must not have child routes. Please remove all child routes from route path "${f}".`
456
+ ), be(
457
+ l.children,
461
458
  r,
462
- f,
463
459
  m,
460
+ f,
464
461
  i
465
- )), !(o.path == null && !o.index) && r.push({
466
- path: m,
467
- score: Ze(m, o.index),
468
- routesMeta: f
462
+ )), !(l.path == null && !l.index) && r.push({
463
+ path: f,
464
+ score: Xe(f, l.index),
465
+ routesMeta: m
469
466
  });
470
467
  };
471
- return e.forEach((o, s) => {
472
- if (o.path === "" || !o.path?.includes("?"))
473
- l(o, s);
468
+ return e.forEach((l, s) => {
469
+ if (l.path === "" || !l.path?.includes("?"))
470
+ o(l, s);
474
471
  else
475
- for (let i of ve(o.path))
476
- l(o, s, !0, i);
472
+ for (let i of ve(l.path))
473
+ o(l, s, !0, i);
477
474
  }), r;
478
475
  }
479
476
  function ve(e) {
480
477
  let r = e.split("/");
481
478
  if (r.length === 0) return [];
482
- let [t, ...n] = r, a = t.endsWith("?"), l = t.replace(/\?$/, "");
479
+ let [t, ...n] = r, a = t.endsWith("?"), o = t.replace(/\?$/, "");
483
480
  if (n.length === 0)
484
- return a ? [l, ""] : [l];
485
- let o = ve(n.join("/")), s = [];
481
+ return a ? [o, ""] : [o];
482
+ let l = ve(n.join("/")), s = [];
486
483
  return s.push(
487
- ...o.map(
488
- (i) => i === "" ? l : [l, i].join("/")
484
+ ...l.map(
485
+ (i) => i === "" ? o : [o, i].join("/")
489
486
  )
490
- ), a && s.push(...o), s.map(
487
+ ), a && s.push(...l), s.map(
491
488
  (i) => e.startsWith("/") && i === "" ? "/" : i
492
489
  );
493
490
  }
494
- function Ke(e) {
491
+ function He(e) {
495
492
  e.sort(
496
- (r, t) => r.score !== t.score ? t.score - r.score : et(
493
+ (r, t) => r.score !== t.score ? t.score - r.score : Qe(
497
494
  r.routesMeta.map((n) => n.childrenIndex),
498
495
  t.routesMeta.map((n) => n.childrenIndex)
499
496
  )
500
497
  );
501
498
  }
502
- var Je = /^:[\w-]+$/, Ge = 3, Ye = 2, qe = 1, Xe = 10, Qe = -2, se = (e) => e === "*";
503
- function Ze(e, r) {
499
+ var ze = /^:[\w-]+$/, Ke = 3, Je = 2, Ge = 1, Ye = 10, qe = -2, se = (e) => e === "*";
500
+ function Xe(e, r) {
504
501
  let t = e.split("/"), n = t.length;
505
- return t.some(se) && (n += Qe), r && (n += Ye), t.filter((a) => !se(a)).reduce(
506
- (a, l) => a + (Je.test(l) ? Ge : l === "" ? qe : Xe),
502
+ return t.some(se) && (n += qe), r && (n += Je), t.filter((a) => !se(a)).reduce(
503
+ (a, o) => a + (ze.test(o) ? Ke : o === "" ? Ge : Ye),
507
504
  n
508
505
  );
509
506
  }
510
- function et(e, r) {
507
+ function Qe(e, r) {
511
508
  return e.length === r.length && e.slice(0, -1).every((n, a) => n === r[a]) ? (
512
509
  // If two routes are siblings, we should try to match the earlier sibling
513
510
  // first. This allows people to have fine-grained control over the matching
@@ -520,72 +517,72 @@ function et(e, r) {
520
517
  0
521
518
  );
522
519
  }
523
- function tt(e, r, t = !1) {
524
- let { routesMeta: n } = e, a = {}, l = "/", o = [];
520
+ function Ze(e, r, t = !1) {
521
+ let { routesMeta: n } = e, a = {}, o = "/", l = [];
525
522
  for (let s = 0; s < n.length; ++s) {
526
- let i = n[s], c = s === n.length - 1, d = l === "/" ? r : r.slice(l.length) || "/", m = H(
523
+ let i = n[s], c = s === n.length - 1, d = o === "/" ? r : r.slice(o.length) || "/", f = H(
527
524
  { path: i.relativePath, caseSensitive: i.caseSensitive, end: c },
528
525
  d
529
- ), f = i.route;
530
- if (!m && c && t && !n[n.length - 1].route.index && (m = H(
526
+ ), m = i.route;
527
+ if (!f && c && t && !n[n.length - 1].route.index && (f = H(
531
528
  {
532
529
  path: i.relativePath,
533
530
  caseSensitive: i.caseSensitive,
534
531
  end: !1
535
532
  },
536
533
  d
537
- )), !m)
534
+ )), !f)
538
535
  return null;
539
- Object.assign(a, m.params), o.push({
536
+ Object.assign(a, f.params), l.push({
540
537
  // TODO: Can this as be avoided?
541
538
  params: a,
542
- pathname: P([l, m.pathname]),
543
- pathnameBase: st(
544
- P([l, m.pathnameBase])
539
+ pathname: P([o, f.pathname]),
540
+ pathnameBase: lt(
541
+ P([o, f.pathnameBase])
545
542
  ),
546
- route: f
547
- }), m.pathnameBase !== "/" && (l = P([l, m.pathnameBase]));
543
+ route: m
544
+ }), f.pathnameBase !== "/" && (o = P([o, f.pathnameBase]));
548
545
  }
549
- return o;
546
+ return l;
550
547
  }
551
548
  function H(e, r) {
552
549
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
553
- let [t, n] = rt(
550
+ let [t, n] = et(
554
551
  e.path,
555
552
  e.caseSensitive,
556
553
  e.end
557
554
  ), a = r.match(t);
558
555
  if (!a) return null;
559
- let l = a[0], o = l.replace(/(.)\/+$/, "$1"), s = a.slice(1);
556
+ let o = a[0], l = o.replace(/(.)\/+$/, "$1"), s = a.slice(1);
560
557
  return {
561
558
  params: n.reduce(
562
- (c, { paramName: d, isOptional: m }, f) => {
559
+ (c, { paramName: d, isOptional: f }, m) => {
563
560
  if (d === "*") {
564
- let b = s[f] || "";
565
- o = l.slice(0, l.length - b.length).replace(/(.)\/+$/, "$1");
561
+ let g = s[m] || "";
562
+ l = o.slice(0, o.length - g.length).replace(/(.)\/+$/, "$1");
566
563
  }
567
- const p = s[f];
568
- return m && !p ? c[d] = void 0 : c[d] = (p || "").replace(/%2F/g, "/"), c;
564
+ const p = s[m];
565
+ return f && !p ? c[d] = void 0 : c[d] = (p || "").replace(/%2F/g, "/"), c;
569
566
  },
570
567
  {}
571
568
  ),
572
- pathname: l,
573
- pathnameBase: o,
569
+ pathname: o,
570
+ pathnameBase: l,
574
571
  pattern: e
575
572
  };
576
573
  }
577
- function rt(e, r = !1, t = !0) {
574
+ function et(e, r = !1, t = !0) {
578
575
  L(
579
576
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
580
577
  `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
581
578
  );
582
579
  let n = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
583
580
  /\/:([\w-]+)(\?)?/g,
584
- (o, s, i) => (n.push({ paramName: s, isOptional: i != null }), i ? "/?([^\\/]+)?" : "/([^\\/]+)")
581
+ (l, s, i) => (n.push({ paramName: s, isOptional: i != null }), i ? "/?([^\\/]+)?" : "/([^\\/]+)")
585
582
  ).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
586
583
  return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, r ? void 0 : "i"), n];
587
584
  }
588
- function nt(e) {
585
+ function tt(e) {
589
586
  try {
590
587
  return e.split("/").map((r) => decodeURIComponent(r).replace(/\//g, "%2F")).join("/");
591
588
  } catch (r) {
@@ -602,32 +599,32 @@ function $(e, r) {
602
599
  let t = r.endsWith("/") ? r.length - 1 : r.length, n = e.charAt(t);
603
600
  return n && n !== "/" ? null : e.slice(t) || "/";
604
601
  }
605
- var at = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, lt = (e) => at.test(e);
606
- function ot(e, r = "/") {
602
+ var rt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, nt = (e) => rt.test(e);
603
+ function at(e, r = "/") {
607
604
  let {
608
605
  pathname: t,
609
606
  search: n = "",
610
607
  hash: a = ""
611
- } = typeof e == "string" ? X(e) : e, l;
608
+ } = typeof e == "string" ? X(e) : e, o;
612
609
  if (t)
613
- if (lt(t))
614
- l = t;
610
+ if (nt(t))
611
+ o = t;
615
612
  else {
616
613
  if (t.includes("//")) {
617
- let o = t;
614
+ let l = t;
618
615
  t = t.replace(/\/\/+/g, "/"), L(
619
616
  !1,
620
- `Pathnames cannot have embedded double slashes - normalizing ${o} -> ${t}`
617
+ `Pathnames cannot have embedded double slashes - normalizing ${l} -> ${t}`
621
618
  );
622
619
  }
623
- t.startsWith("/") ? l = ue(t.substring(1), "/") : l = ue(t, r);
620
+ t.startsWith("/") ? o = ue(t.substring(1), "/") : o = ue(t, r);
624
621
  }
625
622
  else
626
- l = r;
623
+ o = r;
627
624
  return {
628
- pathname: l,
629
- search: ut(n),
630
- hash: ct(a)
625
+ pathname: o,
626
+ search: it(n),
627
+ hash: st(a)
631
628
  };
632
629
  }
633
630
  function ue(e, r) {
@@ -641,47 +638,47 @@ function G(e, r, t, n) {
641
638
  n
642
639
  )}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
643
640
  }
644
- function it(e) {
641
+ function ot(e) {
645
642
  return e.filter(
646
643
  (r, t) => t === 0 || r.route.path && r.route.path.length > 0
647
644
  );
648
645
  }
649
646
  function xe(e) {
650
- let r = it(e);
647
+ let r = ot(e);
651
648
  return r.map(
652
649
  (t, n) => n === r.length - 1 ? t.pathname : t.pathnameBase
653
650
  );
654
651
  }
655
652
  function we(e, r, t, n = !1) {
656
653
  let a;
657
- typeof e == "string" ? a = X(e) : (a = { ...e }, k(
654
+ typeof e == "string" ? a = X(e) : (a = { ...e }, C(
658
655
  !a.pathname || !a.pathname.includes("?"),
659
656
  G("?", "pathname", "search", a)
660
- ), k(
657
+ ), C(
661
658
  !a.pathname || !a.pathname.includes("#"),
662
659
  G("#", "pathname", "hash", a)
663
- ), k(
660
+ ), C(
664
661
  !a.search || !a.search.includes("#"),
665
662
  G("#", "search", "hash", a)
666
663
  ));
667
- let l = e === "" || a.pathname === "", o = l ? "/" : a.pathname, s;
668
- if (o == null)
664
+ let o = e === "" || a.pathname === "", l = o ? "/" : a.pathname, s;
665
+ if (l == null)
669
666
  s = t;
670
667
  else {
671
- let m = r.length - 1;
672
- if (!n && o.startsWith("..")) {
673
- let f = o.split("/");
674
- for (; f[0] === ".."; )
675
- f.shift(), m -= 1;
676
- a.pathname = f.join("/");
668
+ let f = r.length - 1;
669
+ if (!n && l.startsWith("..")) {
670
+ let m = l.split("/");
671
+ for (; m[0] === ".."; )
672
+ m.shift(), f -= 1;
673
+ a.pathname = m.join("/");
677
674
  }
678
- s = m >= 0 ? r[m] : "/";
675
+ s = f >= 0 ? r[f] : "/";
679
676
  }
680
- let i = ot(a, s), c = o && o !== "/" && o.endsWith("/"), d = (l || o === ".") && t.endsWith("/");
677
+ let i = at(a, s), c = l && l !== "/" && l.endsWith("/"), d = (o || l === ".") && t.endsWith("/");
681
678
  return !i.pathname.endsWith("/") && (c || d) && (i.pathname += "/"), i;
682
679
  }
683
- var P = (e) => e.join("/").replace(/\/\/+/g, "/"), st = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), ut = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ct = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
684
- function dt(e) {
680
+ var P = (e) => e.join("/").replace(/\/\/+/g, "/"), lt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), it = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, st = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
681
+ function ut(e) {
685
682
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
686
683
  }
687
684
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
@@ -694,11 +691,11 @@ var Ce = [
694
691
  new Set(
695
692
  Ce
696
693
  );
697
- var mt = [
694
+ var ct = [
698
695
  "GET",
699
696
  ...Ce
700
697
  ];
701
- new Set(mt);
698
+ new Set(ct);
702
699
  var D = u.createContext(null);
703
700
  D.displayName = "DataRouter";
704
701
  var z = u.createContext(null);
@@ -708,12 +705,12 @@ var ke = u.createContext({
708
705
  isTransitioning: !1
709
706
  });
710
707
  ke.displayName = "ViewTransition";
711
- var ft = u.createContext(
708
+ var dt = u.createContext(
712
709
  /* @__PURE__ */ new Map()
713
710
  );
714
- ft.displayName = "Fetchers";
715
- var ht = u.createContext(null);
716
- ht.displayName = "Await";
711
+ dt.displayName = "Fetchers";
712
+ var ft = u.createContext(null);
713
+ ft.displayName = "Await";
717
714
  var N = u.createContext(
718
715
  null
719
716
  );
@@ -730,21 +727,21 @@ var S = u.createContext({
730
727
  S.displayName = "Route";
731
728
  var Z = u.createContext(null);
732
729
  Z.displayName = "RouteError";
733
- function pt(e, { relative: r } = {}) {
734
- k(
730
+ function mt(e, { relative: r } = {}) {
731
+ C(
735
732
  K(),
736
733
  // TODO: This error is probably because they somehow have 2 versions of the
737
734
  // router loaded. We can help them understand how to avoid that.
738
735
  "useHref() may be used only in the context of a <Router> component."
739
736
  );
740
- let { basename: t, navigator: n } = u.useContext(N), { hash: a, pathname: l, search: o } = M(e, { relative: r }), s = l;
741
- return t !== "/" && (s = l === "/" ? t : P([t, l])), n.createHref({ pathname: s, search: o, hash: a });
737
+ let { basename: t, navigator: n } = u.useContext(N), { hash: a, pathname: o, search: l } = B(e, { relative: r }), s = o;
738
+ return t !== "/" && (s = o === "/" ? t : P([t, o])), n.createHref({ pathname: s, search: l, hash: a });
742
739
  }
743
740
  function K() {
744
741
  return u.useContext(Q) != null;
745
742
  }
746
743
  function F() {
747
- return k(
744
+ return C(
748
745
  K(),
749
746
  // TODO: This error is probably because they somehow have 2 versions of the
750
747
  // router loaded. We can help them understand how to avoid that.
@@ -755,30 +752,30 @@ var Ee = "You should call navigate() in a React.useEffect(), not when your compo
755
752
  function Re(e) {
756
753
  u.useContext(N).static || u.useLayoutEffect(e);
757
754
  }
758
- function gt() {
755
+ function ht() {
759
756
  let { isDataRoute: e } = u.useContext(S);
760
- return e ? St() : bt();
757
+ return e ? Pt() : pt();
761
758
  }
762
- function bt() {
763
- k(
759
+ function pt() {
760
+ C(
764
761
  K(),
765
762
  // TODO: This error is probably because they somehow have 2 versions of the
766
763
  // router loaded. We can help them understand how to avoid that.
767
764
  "useNavigate() may be used only in the context of a <Router> component."
768
765
  );
769
- let e = u.useContext(D), { basename: r, navigator: t } = u.useContext(N), { matches: n } = u.useContext(S), { pathname: a } = F(), l = JSON.stringify(xe(n)), o = u.useRef(!1);
766
+ let e = u.useContext(D), { basename: r, navigator: t } = u.useContext(N), { matches: n } = u.useContext(S), { pathname: a } = F(), o = JSON.stringify(xe(n)), l = u.useRef(!1);
770
767
  return Re(() => {
771
- o.current = !0;
768
+ l.current = !0;
772
769
  }), u.useCallback(
773
770
  (i, c = {}) => {
774
- if (L(o.current, Ee), !o.current) return;
771
+ if (L(l.current, Ee), !l.current) return;
775
772
  if (typeof i == "number") {
776
773
  t.go(i);
777
774
  return;
778
775
  }
779
776
  let d = we(
780
777
  i,
781
- JSON.parse(l),
778
+ JSON.parse(o),
782
779
  a,
783
780
  c.relative === "path"
784
781
  );
@@ -791,14 +788,14 @@ function bt() {
791
788
  [
792
789
  r,
793
790
  t,
794
- l,
791
+ o,
795
792
  a,
796
793
  e
797
794
  ]
798
795
  );
799
796
  }
800
797
  u.createContext(null);
801
- function M(e, { relative: r } = {}) {
798
+ function B(e, { relative: r } = {}) {
802
799
  let { matches: t } = u.useContext(S), { pathname: n } = F(), a = JSON.stringify(xe(t));
803
800
  return u.useMemo(
804
801
  () => we(
@@ -810,78 +807,78 @@ function M(e, { relative: r } = {}) {
810
807
  [e, a, n, r]
811
808
  );
812
809
  }
813
- function yt(e, r, t, n, a) {
814
- k(
810
+ function gt(e, r, t, n, a) {
811
+ C(
815
812
  K(),
816
813
  // TODO: This error is probably because they somehow have 2 versions of the
817
814
  // router loaded. We can help them understand how to avoid that.
818
815
  "useRoutes() may be used only in the context of a <Router> component."
819
816
  );
820
- let { navigator: l } = u.useContext(N), { matches: o } = u.useContext(S), s = o[o.length - 1], i = s ? s.params : {}, c = s ? s.pathname : "/", d = s ? s.pathnameBase : "/", m = s && s.route;
817
+ let { navigator: o } = u.useContext(N), { matches: l } = u.useContext(S), s = l[l.length - 1], i = s ? s.params : {}, c = s ? s.pathname : "/", d = s ? s.pathnameBase : "/", f = s && s.route;
821
818
  {
822
- let v = m && m.path || "";
819
+ let b = f && f.path || "";
823
820
  Le(
824
821
  c,
825
- !m || v.endsWith("*") || v.endsWith("*?"),
826
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
822
+ !f || b.endsWith("*") || b.endsWith("*?"),
823
+ `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
827
824
 
828
- Please change the parent <Route path="${v}"> to <Route path="${v === "/" ? "*" : `${v}/*`}">.`
825
+ Please change the parent <Route path="${b}"> to <Route path="${b === "/" ? "*" : `${b}/*`}">.`
829
826
  );
830
827
  }
831
- let f = F(), p;
832
- p = f;
833
- let b = p.pathname || "/", x = b;
828
+ let m = F(), p;
829
+ p = m;
830
+ let g = p.pathname || "/", x = g;
834
831
  if (d !== "/") {
835
- let v = d.replace(/^\//, "").split("/");
836
- x = "/" + b.replace(/^\//, "").split("/").slice(v.length).join("/");
832
+ let b = d.replace(/^\//, "").split("/");
833
+ x = "/" + g.replace(/^\//, "").split("/").slice(b.length).join("/");
837
834
  }
838
- let h = be(e, { pathname: x });
835
+ let h = ye(e, { pathname: x });
839
836
  return L(
840
- m || h != null,
837
+ f || h != null,
841
838
  `No routes matched location "${p.pathname}${p.search}${p.hash}" `
842
839
  ), L(
843
840
  h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0,
844
841
  `Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
845
- ), kt(
842
+ ), wt(
846
843
  h && h.map(
847
- (v) => Object.assign({}, v, {
848
- params: Object.assign({}, i, v.params),
844
+ (b) => Object.assign({}, b, {
845
+ params: Object.assign({}, i, b.params),
849
846
  pathname: P([
850
847
  d,
851
848
  // Re-encode pathnames that were decoded inside matchRoutes.
852
849
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
853
850
  // `new URL()` internally and we need to prevent it from treating
854
851
  // them as separators
855
- l.encodeLocation ? l.encodeLocation(
856
- v.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
857
- ).pathname : v.pathname
852
+ o.encodeLocation ? o.encodeLocation(
853
+ b.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
854
+ ).pathname : b.pathname
858
855
  ]),
859
- pathnameBase: v.pathnameBase === "/" ? d : P([
856
+ pathnameBase: b.pathnameBase === "/" ? d : P([
860
857
  d,
861
858
  // Re-encode pathnames that were decoded inside matchRoutes
862
859
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
863
860
  // `new URL()` internally and we need to prevent it from treating
864
861
  // them as separators
865
- l.encodeLocation ? l.encodeLocation(
866
- v.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
867
- ).pathname : v.pathnameBase
862
+ o.encodeLocation ? o.encodeLocation(
863
+ b.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
864
+ ).pathname : b.pathnameBase
868
865
  ])
869
866
  })
870
867
  ),
871
- o,
868
+ l,
872
869
  t,
873
870
  n,
874
871
  a
875
872
  );
876
873
  }
877
- function vt() {
878
- let e = Nt(), r = dt(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: n }, l = { padding: "2px 4px", backgroundColor: n }, o = null;
874
+ function yt() {
875
+ let e = Lt(), r = ut(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: n }, o = { padding: "2px 4px", backgroundColor: n }, l = null;
879
876
  return console.error(
880
877
  "Error handled by React Router default ErrorBoundary:",
881
878
  e
882
- ), o = /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ u.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ u.createElement("code", { style: l }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ u.createElement("code", { style: l }, "errorElement"), " prop on your route.")), /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ u.createElement("h3", { style: { fontStyle: "italic" } }, r), t ? /* @__PURE__ */ u.createElement("pre", { style: a }, t) : null, o);
879
+ ), l = /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ u.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ u.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ u.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ u.createElement("h3", { style: { fontStyle: "italic" } }, r), t ? /* @__PURE__ */ u.createElement("pre", { style: a }, t) : null, l);
883
880
  }
884
- var xt = /* @__PURE__ */ u.createElement(vt, null), wt = class extends u.Component {
881
+ var bt = /* @__PURE__ */ u.createElement(yt, null), vt = class extends u.Component {
885
882
  constructor(e) {
886
883
  super(e), this.state = {
887
884
  location: e.location,
@@ -919,11 +916,11 @@ var xt = /* @__PURE__ */ u.createElement(vt, null), wt = class extends u.Compone
919
916
  )) : this.props.children;
920
917
  }
921
918
  };
922
- function Ct({ routeContext: e, match: r, children: t }) {
919
+ function xt({ routeContext: e, match: r, children: t }) {
923
920
  let n = u.useContext(D);
924
921
  return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ u.createElement(S.Provider, { value: e }, t);
925
922
  }
926
- function kt(e, r = [], t = null, n = null, a = null) {
923
+ function wt(e, r = [], t = null, n = null, a = null) {
927
924
  if (e == null) {
928
925
  if (!t)
929
926
  return null;
@@ -934,54 +931,54 @@ function kt(e, r = [], t = null, n = null, a = null) {
934
931
  else
935
932
  return null;
936
933
  }
937
- let l = e, o = t?.errors;
938
- if (o != null) {
939
- let d = l.findIndex(
940
- (m) => m.route.id && o?.[m.route.id] !== void 0
934
+ let o = e, l = t?.errors;
935
+ if (l != null) {
936
+ let d = o.findIndex(
937
+ (f) => f.route.id && l?.[f.route.id] !== void 0
941
938
  );
942
- k(
939
+ C(
943
940
  d >= 0,
944
941
  `Could not find a matching route for errors on route IDs: ${Object.keys(
945
- o
942
+ l
946
943
  ).join(",")}`
947
- ), l = l.slice(
944
+ ), o = o.slice(
948
945
  0,
949
- Math.min(l.length, d + 1)
946
+ Math.min(o.length, d + 1)
950
947
  );
951
948
  }
952
949
  let s = !1, i = -1;
953
950
  if (t)
954
- for (let d = 0; d < l.length; d++) {
955
- let m = l[d];
956
- if ((m.route.HydrateFallback || m.route.hydrateFallbackElement) && (i = d), m.route.id) {
957
- let { loaderData: f, errors: p } = t, b = m.route.loader && !f.hasOwnProperty(m.route.id) && (!p || p[m.route.id] === void 0);
958
- if (m.route.lazy || b) {
959
- s = !0, i >= 0 ? l = l.slice(0, i + 1) : l = [l[0]];
951
+ for (let d = 0; d < o.length; d++) {
952
+ let f = o[d];
953
+ if ((f.route.HydrateFallback || f.route.hydrateFallbackElement) && (i = d), f.route.id) {
954
+ let { loaderData: m, errors: p } = t, g = f.route.loader && !m.hasOwnProperty(f.route.id) && (!p || p[f.route.id] === void 0);
955
+ if (f.route.lazy || g) {
956
+ s = !0, i >= 0 ? o = o.slice(0, i + 1) : o = [o[0]];
960
957
  break;
961
958
  }
962
959
  }
963
960
  }
964
- let c = t && n ? (d, m) => {
961
+ let c = t && n ? (d, f) => {
965
962
  n(d, {
966
963
  location: t.location,
967
964
  params: t.matches?.[0]?.params ?? {},
968
- errorInfo: m
965
+ errorInfo: f
969
966
  });
970
967
  } : void 0;
971
- return l.reduceRight(
972
- (d, m, f) => {
973
- let p, b = !1, x = null, h = null;
974
- t && (p = o && m.route.id ? o[m.route.id] : void 0, x = m.route.errorElement || xt, s && (i < 0 && f === 0 ? (Le(
968
+ return o.reduceRight(
969
+ (d, f, m) => {
970
+ let p, g = !1, x = null, h = null;
971
+ t && (p = l && f.route.id ? l[f.route.id] : void 0, x = f.route.errorElement || bt, s && (i < 0 && m === 0 ? (Le(
975
972
  "route-fallback",
976
973
  !1,
977
974
  "No `HydrateFallback` element provided to render during initial hydration"
978
- ), b = !0, h = null) : i === f && (b = !0, h = m.route.hydrateFallbackElement || null)));
979
- let y = r.concat(l.slice(0, f + 1)), v = () => {
975
+ ), g = !0, h = null) : i === m && (g = !0, h = f.route.hydrateFallbackElement || null)));
976
+ let y = r.concat(o.slice(0, m + 1)), b = () => {
980
977
  let w;
981
- return p ? w = x : b ? w = h : m.route.Component ? w = /* @__PURE__ */ u.createElement(m.route.Component, null) : m.route.element ? w = m.route.element : w = d, /* @__PURE__ */ u.createElement(
982
- Ct,
978
+ return p ? w = x : g ? w = h : f.route.Component ? w = /* @__PURE__ */ u.createElement(f.route.Component, null) : f.route.element ? w = f.route.element : w = d, /* @__PURE__ */ u.createElement(
979
+ xt,
983
980
  {
984
- match: m,
981
+ match: f,
985
982
  routeContext: {
986
983
  outlet: d,
987
984
  matches: y,
@@ -991,18 +988,18 @@ function kt(e, r = [], t = null, n = null, a = null) {
991
988
  }
992
989
  );
993
990
  };
994
- return t && (m.route.ErrorBoundary || m.route.errorElement || f === 0) ? /* @__PURE__ */ u.createElement(
995
- wt,
991
+ return t && (f.route.ErrorBoundary || f.route.errorElement || m === 0) ? /* @__PURE__ */ u.createElement(
992
+ vt,
996
993
  {
997
994
  location: t.location,
998
995
  revalidation: t.revalidation,
999
996
  component: x,
1000
997
  error: p,
1001
- children: v(),
998
+ children: b(),
1002
999
  routeContext: { outlet: null, matches: y, isDataRoute: !0 },
1003
1000
  onError: c
1004
1001
  }
1005
- ) : v();
1002
+ ) : b();
1006
1003
  },
1007
1004
  null
1008
1005
  );
@@ -1010,33 +1007,33 @@ function kt(e, r = [], t = null, n = null, a = null) {
1010
1007
  function ee(e) {
1011
1008
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1012
1009
  }
1013
- function Et(e) {
1010
+ function Ct(e) {
1014
1011
  let r = u.useContext(D);
1015
- return k(r, ee(e)), r;
1012
+ return C(r, ee(e)), r;
1016
1013
  }
1017
- function Rt(e) {
1014
+ function kt(e) {
1018
1015
  let r = u.useContext(z);
1019
- return k(r, ee(e)), r;
1016
+ return C(r, ee(e)), r;
1020
1017
  }
1021
- function Lt(e) {
1018
+ function Et(e) {
1022
1019
  let r = u.useContext(S);
1023
- return k(r, ee(e)), r;
1020
+ return C(r, ee(e)), r;
1024
1021
  }
1025
1022
  function te(e) {
1026
- let r = Lt(e), t = r.matches[r.matches.length - 1];
1027
- return k(
1023
+ let r = Et(e), t = r.matches[r.matches.length - 1];
1024
+ return C(
1028
1025
  t.route.id,
1029
1026
  `${e} can only be used on routes that contain a unique "id"`
1030
1027
  ), t.route.id;
1031
1028
  }
1032
- function Pt() {
1029
+ function Rt() {
1033
1030
  return te(
1034
1031
  "useRouteId"
1035
1032
  /* UseRouteId */
1036
1033
  );
1037
1034
  }
1038
- function Nt() {
1039
- let e = u.useContext(Z), r = Rt(
1035
+ function Lt() {
1036
+ let e = u.useContext(Z), r = kt(
1040
1037
  "useRouteError"
1041
1038
  /* UseRouteError */
1042
1039
  ), t = te(
@@ -1045,8 +1042,8 @@ function Nt() {
1045
1042
  );
1046
1043
  return e !== void 0 ? e : r.errors?.[t];
1047
1044
  }
1048
- function St() {
1049
- let { router: e } = Et(
1045
+ function Pt() {
1046
+ let { router: e } = Ct(
1050
1047
  "useNavigate"
1051
1048
  /* UseNavigateStable */
1052
1049
  ), r = te(
@@ -1056,8 +1053,8 @@ function St() {
1056
1053
  return Re(() => {
1057
1054
  t.current = !0;
1058
1055
  }), u.useCallback(
1059
- async (a, l = {}) => {
1060
- L(t.current, Ee), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...l }));
1056
+ async (a, o = {}) => {
1057
+ L(t.current, Ee), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1061
1058
  },
1062
1059
  [e, r]
1063
1060
  );
@@ -1066,38 +1063,38 @@ var ce = {};
1066
1063
  function Le(e, r, t) {
1067
1064
  !r && !ce[e] && (ce[e] = !0, L(!1, t));
1068
1065
  }
1069
- u.memo($t);
1070
- function $t({
1066
+ u.memo(Nt);
1067
+ function Nt({
1071
1068
  routes: e,
1072
1069
  future: r,
1073
1070
  state: t,
1074
1071
  unstable_onError: n
1075
1072
  }) {
1076
- return yt(e, void 0, t, n, r);
1073
+ return gt(e, void 0, t, n, r);
1077
1074
  }
1078
1075
  var _ = "get", j = "application/x-www-form-urlencoded";
1079
1076
  function J(e) {
1080
1077
  return e != null && typeof e.tagName == "string";
1081
1078
  }
1082
- function At(e) {
1079
+ function St(e) {
1083
1080
  return J(e) && e.tagName.toLowerCase() === "button";
1084
1081
  }
1085
- function Ft(e) {
1082
+ function $t(e) {
1086
1083
  return J(e) && e.tagName.toLowerCase() === "form";
1087
1084
  }
1088
- function Tt(e) {
1085
+ function At(e) {
1089
1086
  return J(e) && e.tagName.toLowerCase() === "input";
1090
1087
  }
1091
- function It(e) {
1088
+ function Ft(e) {
1092
1089
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1093
1090
  }
1094
- function Dt(e, r) {
1091
+ function Tt(e, r) {
1095
1092
  return e.button === 0 && // Ignore everything but left clicks
1096
1093
  (!r || r === "_self") && // Let browser handle "target=_blank" etc.
1097
- !It(e);
1094
+ !Ft(e);
1098
1095
  }
1099
1096
  var V = null;
1100
- function Ut() {
1097
+ function It() {
1101
1098
  if (V === null)
1102
1099
  try {
1103
1100
  new FormData(
@@ -1110,51 +1107,51 @@ function Ut() {
1110
1107
  }
1111
1108
  return V;
1112
1109
  }
1113
- var Bt = /* @__PURE__ */ new Set([
1110
+ var Dt = /* @__PURE__ */ new Set([
1114
1111
  "application/x-www-form-urlencoded",
1115
1112
  "multipart/form-data",
1116
1113
  "text/plain"
1117
1114
  ]);
1118
1115
  function Y(e) {
1119
- return e != null && !Bt.has(e) ? (L(
1116
+ return e != null && !Dt.has(e) ? (L(
1120
1117
  !1,
1121
1118
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`
1122
1119
  ), null) : e;
1123
1120
  }
1124
- function Mt(e, r) {
1125
- let t, n, a, l, o;
1126
- if (Ft(e)) {
1121
+ function Ut(e, r) {
1122
+ let t, n, a, o, l;
1123
+ if ($t(e)) {
1127
1124
  let s = e.getAttribute("action");
1128
- n = s ? $(s, r) : null, t = e.getAttribute("method") || _, a = Y(e.getAttribute("enctype")) || j, l = new FormData(e);
1129
- } else if (At(e) || Tt(e) && (e.type === "submit" || e.type === "image")) {
1125
+ n = s ? $(s, r) : null, t = e.getAttribute("method") || _, a = Y(e.getAttribute("enctype")) || j, o = new FormData(e);
1126
+ } else if (St(e) || At(e) && (e.type === "submit" || e.type === "image")) {
1130
1127
  let s = e.form;
1131
1128
  if (s == null)
1132
1129
  throw new Error(
1133
1130
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1134
1131
  );
1135
1132
  let i = e.getAttribute("formaction") || s.getAttribute("action");
1136
- if (n = i ? $(i, r) : null, t = e.getAttribute("formmethod") || s.getAttribute("method") || _, a = Y(e.getAttribute("formenctype")) || Y(s.getAttribute("enctype")) || j, l = new FormData(s, e), !Ut()) {
1137
- let { name: c, type: d, value: m } = e;
1133
+ if (n = i ? $(i, r) : null, t = e.getAttribute("formmethod") || s.getAttribute("method") || _, a = Y(e.getAttribute("formenctype")) || Y(s.getAttribute("enctype")) || j, o = new FormData(s, e), !It()) {
1134
+ let { name: c, type: d, value: f } = e;
1138
1135
  if (d === "image") {
1139
- let f = c ? `${c}.` : "";
1140
- l.append(`${f}x`, "0"), l.append(`${f}y`, "0");
1141
- } else c && l.append(c, m);
1136
+ let m = c ? `${c}.` : "";
1137
+ o.append(`${m}x`, "0"), o.append(`${m}y`, "0");
1138
+ } else c && o.append(c, f);
1142
1139
  }
1143
1140
  } else {
1144
1141
  if (J(e))
1145
1142
  throw new Error(
1146
1143
  'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
1147
1144
  );
1148
- t = _, n = null, a = j, o = e;
1145
+ t = _, n = null, a = j, l = e;
1149
1146
  }
1150
- return l && a === "text/plain" && (o = l, l = void 0), { action: n, method: t.toLowerCase(), encType: a, formData: l, body: o };
1147
+ return o && a === "text/plain" && (l = o, o = void 0), { action: n, method: t.toLowerCase(), encType: a, formData: o, body: l };
1151
1148
  }
1152
1149
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
1153
1150
  function re(e, r) {
1154
1151
  if (e === !1 || e === null || typeof e > "u")
1155
1152
  throw new Error(r);
1156
1153
  }
1157
- function Ot(e, r, t) {
1154
+ function Mt(e, r, t) {
1158
1155
  let n = typeof e == "string" ? new URL(
1159
1156
  e,
1160
1157
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -1163,7 +1160,7 @@ function Ot(e, r, t) {
1163
1160
  ) : e;
1164
1161
  return n.pathname === "/" ? n.pathname = `_root.${t}` : r && $(n.pathname, r) === "/" ? n.pathname = `${r.replace(/\/$/, "")}/_root.${t}` : n.pathname = `${n.pathname.replace(/\/$/, "")}.${t}`, n;
1165
1162
  }
1166
- async function Wt(e, r) {
1163
+ async function Bt(e, r) {
1167
1164
  if (e.id in r)
1168
1165
  return r[e.id];
1169
1166
  try {
@@ -1180,43 +1177,43 @@ async function Wt(e, r) {
1180
1177
  });
1181
1178
  }
1182
1179
  }
1183
- function Vt(e) {
1180
+ function Ot(e) {
1184
1181
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1185
1182
  }
1186
- async function _t(e, r, t) {
1183
+ async function Wt(e, r, t) {
1187
1184
  let n = await Promise.all(
1188
1185
  e.map(async (a) => {
1189
- let l = r.routes[a.route.id];
1190
- if (l) {
1191
- let o = await Wt(l, t);
1192
- return o.links ? o.links() : [];
1186
+ let o = r.routes[a.route.id];
1187
+ if (o) {
1188
+ let l = await Bt(o, t);
1189
+ return l.links ? l.links() : [];
1193
1190
  }
1194
1191
  return [];
1195
1192
  })
1196
1193
  );
1197
- return Kt(
1198
- n.flat(1).filter(Vt).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1194
+ return Ht(
1195
+ n.flat(1).filter(Ot).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1199
1196
  (a) => a.rel === "stylesheet" ? { ...a, rel: "prefetch", as: "style" } : { ...a, rel: "prefetch" }
1200
1197
  )
1201
1198
  );
1202
1199
  }
1203
- function de(e, r, t, n, a, l) {
1204
- let o = (i, c) => t[c] ? i.route.id !== t[c].route.id : !0, s = (i, c) => (
1200
+ function de(e, r, t, n, a, o) {
1201
+ let l = (i, c) => t[c] ? i.route.id !== t[c].route.id : !0, s = (i, c) => (
1205
1202
  // param change, /users/123 -> /users/456
1206
1203
  t[c].pathname !== i.pathname || // splat param changed, which is not present in match.path
1207
1204
  // e.g. /files/images/avatar.jpg -> files/finances.xls
1208
1205
  t[c].route.path?.endsWith("*") && t[c].params["*"] !== i.params["*"]
1209
1206
  );
1210
- return l === "assets" ? r.filter(
1211
- (i, c) => o(i, c) || s(i, c)
1212
- ) : l === "data" ? r.filter((i, c) => {
1207
+ return o === "assets" ? r.filter(
1208
+ (i, c) => l(i, c) || s(i, c)
1209
+ ) : o === "data" ? r.filter((i, c) => {
1213
1210
  let d = n.routes[i.route.id];
1214
1211
  if (!d || !d.hasLoader)
1215
1212
  return !1;
1216
- if (o(i, c) || s(i, c))
1213
+ if (l(i, c) || s(i, c))
1217
1214
  return !0;
1218
1215
  if (i.route.shouldRevalidate) {
1219
- let m = i.route.shouldRevalidate({
1216
+ let f = i.route.shouldRevalidate({
1220
1217
  currentUrl: new URL(
1221
1218
  a.pathname + a.search + a.hash,
1222
1219
  window.origin
@@ -1226,36 +1223,36 @@ function de(e, r, t, n, a, l) {
1226
1223
  nextParams: i.params,
1227
1224
  defaultShouldRevalidate: !0
1228
1225
  });
1229
- if (typeof m == "boolean")
1230
- return m;
1226
+ if (typeof f == "boolean")
1227
+ return f;
1231
1228
  }
1232
1229
  return !0;
1233
1230
  }) : [];
1234
1231
  }
1235
- function jt(e, r, { includeHydrateFallback: t } = {}) {
1236
- return Ht(
1232
+ function Vt(e, r, { includeHydrateFallback: t } = {}) {
1233
+ return _t(
1237
1234
  e.map((n) => {
1238
1235
  let a = r.routes[n.route.id];
1239
1236
  if (!a) return [];
1240
- let l = [a.module];
1241
- return a.clientActionModule && (l = l.concat(a.clientActionModule)), a.clientLoaderModule && (l = l.concat(a.clientLoaderModule)), t && a.hydrateFallbackModule && (l = l.concat(a.hydrateFallbackModule)), a.imports && (l = l.concat(a.imports)), l;
1237
+ let o = [a.module];
1238
+ return a.clientActionModule && (o = o.concat(a.clientActionModule)), a.clientLoaderModule && (o = o.concat(a.clientLoaderModule)), t && a.hydrateFallbackModule && (o = o.concat(a.hydrateFallbackModule)), a.imports && (o = o.concat(a.imports)), o;
1242
1239
  }).flat(1)
1243
1240
  );
1244
1241
  }
1245
- function Ht(e) {
1242
+ function _t(e) {
1246
1243
  return [...new Set(e)];
1247
1244
  }
1248
- function zt(e) {
1245
+ function jt(e) {
1249
1246
  let r = {}, t = Object.keys(e).sort();
1250
1247
  for (let n of t)
1251
1248
  r[n] = e[n];
1252
1249
  return r;
1253
1250
  }
1254
- function Kt(e, r) {
1251
+ function Ht(e, r) {
1255
1252
  let t = /* @__PURE__ */ new Set();
1256
1253
  return new Set(r), e.reduce((n, a) => {
1257
- let l = JSON.stringify(zt(a));
1258
- return t.has(l) || (t.add(l), n.push({ key: l, link: a })), n;
1254
+ let o = JSON.stringify(jt(a));
1255
+ return t.has(o) || (t.add(o), n.push({ key: o, link: a })), n;
1259
1256
  }, []);
1260
1257
  }
1261
1258
  function Pe() {
@@ -1265,7 +1262,7 @@ function Pe() {
1265
1262
  "You must render this element inside a <DataRouterContext.Provider> element"
1266
1263
  ), e;
1267
1264
  }
1268
- function Jt() {
1265
+ function zt() {
1269
1266
  let e = u.useContext(z);
1270
1267
  return re(
1271
1268
  e,
@@ -1281,23 +1278,23 @@ function Ne() {
1281
1278
  "You must render this element inside a <HydratedRouter> element"
1282
1279
  ), e;
1283
1280
  }
1284
- function Gt(e, r) {
1285
- let t = u.useContext(ne), [n, a] = u.useState(!1), [l, o] = u.useState(!1), { onFocus: s, onBlur: i, onMouseEnter: c, onMouseLeave: d, onTouchStart: m } = r, f = u.useRef(null);
1281
+ function Kt(e, r) {
1282
+ let t = u.useContext(ne), [n, a] = u.useState(!1), [o, l] = u.useState(!1), { onFocus: s, onBlur: i, onMouseEnter: c, onMouseLeave: d, onTouchStart: f } = r, m = u.useRef(null);
1286
1283
  u.useEffect(() => {
1287
- if (e === "render" && o(!0), e === "viewport") {
1284
+ if (e === "render" && l(!0), e === "viewport") {
1288
1285
  let x = (y) => {
1289
- y.forEach((v) => {
1290
- o(v.isIntersecting);
1286
+ y.forEach((b) => {
1287
+ l(b.isIntersecting);
1291
1288
  });
1292
1289
  }, h = new IntersectionObserver(x, { threshold: 0.5 });
1293
- return f.current && h.observe(f.current), () => {
1290
+ return m.current && h.observe(m.current), () => {
1294
1291
  h.disconnect();
1295
1292
  };
1296
1293
  }
1297
1294
  }, [e]), u.useEffect(() => {
1298
1295
  if (n) {
1299
1296
  let x = setTimeout(() => {
1300
- o(!0);
1297
+ l(!0);
1301
1298
  }, 100);
1302
1299
  return () => {
1303
1300
  clearTimeout(x);
@@ -1306,52 +1303,52 @@ function Gt(e, r) {
1306
1303
  }, [n]);
1307
1304
  let p = () => {
1308
1305
  a(!0);
1309
- }, b = () => {
1310
- a(!1), o(!1);
1306
+ }, g = () => {
1307
+ a(!1), l(!1);
1311
1308
  };
1312
- return t ? e !== "intent" ? [l, f, {}] : [
1313
- l,
1314
- f,
1309
+ return t ? e !== "intent" ? [o, m, {}] : [
1310
+ o,
1311
+ m,
1315
1312
  {
1316
- onFocus: B(s, p),
1317
- onBlur: B(i, b),
1318
- onMouseEnter: B(c, p),
1319
- onMouseLeave: B(d, b),
1320
- onTouchStart: B(m, p)
1313
+ onFocus: M(s, p),
1314
+ onBlur: M(i, g),
1315
+ onMouseEnter: M(c, p),
1316
+ onMouseLeave: M(d, g),
1317
+ onTouchStart: M(f, p)
1321
1318
  }
1322
- ] : [!1, f, {}];
1319
+ ] : [!1, m, {}];
1323
1320
  }
1324
- function B(e, r) {
1321
+ function M(e, r) {
1325
1322
  return (t) => {
1326
1323
  e && e(t), t.defaultPrevented || r(t);
1327
1324
  };
1328
1325
  }
1329
- function Yt({ page: e, ...r }) {
1326
+ function Jt({ page: e, ...r }) {
1330
1327
  let { router: t } = Pe(), n = u.useMemo(
1331
- () => be(t.routes, e, t.basename),
1328
+ () => ye(t.routes, e, t.basename),
1332
1329
  [t.routes, e, t.basename]
1333
1330
  );
1334
- return n ? /* @__PURE__ */ u.createElement(Xt, { page: e, matches: n, ...r }) : null;
1331
+ return n ? /* @__PURE__ */ u.createElement(Yt, { page: e, matches: n, ...r }) : null;
1335
1332
  }
1336
- function qt(e) {
1333
+ function Gt(e) {
1337
1334
  let { manifest: r, routeModules: t } = Ne(), [n, a] = u.useState([]);
1338
1335
  return u.useEffect(() => {
1339
- let l = !1;
1340
- return _t(e, r, t).then(
1341
- (o) => {
1342
- l || a(o);
1336
+ let o = !1;
1337
+ return Wt(e, r, t).then(
1338
+ (l) => {
1339
+ o || a(l);
1343
1340
  }
1344
1341
  ), () => {
1345
- l = !0;
1342
+ o = !0;
1346
1343
  };
1347
1344
  }, [e, r, t]), n;
1348
1345
  }
1349
- function Xt({
1346
+ function Yt({
1350
1347
  page: e,
1351
1348
  matches: r,
1352
1349
  ...t
1353
1350
  }) {
1354
- let n = F(), { manifest: a, routeModules: l } = Ne(), { basename: o } = Pe(), { loaderData: s, matches: i } = Jt(), c = u.useMemo(
1351
+ let n = F(), { manifest: a, routeModules: o } = Ne(), { basename: l } = Pe(), { loaderData: s, matches: i } = zt(), c = u.useMemo(
1355
1352
  () => de(
1356
1353
  e,
1357
1354
  r,
@@ -1371,40 +1368,40 @@ function Xt({
1371
1368
  "assets"
1372
1369
  ),
1373
1370
  [e, r, i, a, n]
1374
- ), m = u.useMemo(() => {
1371
+ ), f = u.useMemo(() => {
1375
1372
  if (e === n.pathname + n.search + n.hash)
1376
1373
  return [];
1377
- let b = /* @__PURE__ */ new Set(), x = !1;
1374
+ let g = /* @__PURE__ */ new Set(), x = !1;
1378
1375
  if (r.forEach((y) => {
1379
- let v = a.routes[y.route.id];
1380
- !v || !v.hasLoader || (!c.some((w) => w.route.id === y.route.id) && y.route.id in s && l[y.route.id]?.shouldRevalidate || v.hasClientLoader ? x = !0 : b.add(y.route.id));
1381
- }), b.size === 0)
1376
+ let b = a.routes[y.route.id];
1377
+ !b || !b.hasLoader || (!c.some((w) => w.route.id === y.route.id) && y.route.id in s && o[y.route.id]?.shouldRevalidate || b.hasClientLoader ? x = !0 : g.add(y.route.id));
1378
+ }), g.size === 0)
1382
1379
  return [];
1383
- let h = Ot(e, o, "data");
1384
- return x && b.size > 0 && h.searchParams.set(
1380
+ let h = Mt(e, l, "data");
1381
+ return x && g.size > 0 && h.searchParams.set(
1385
1382
  "_routes",
1386
- r.filter((y) => b.has(y.route.id)).map((y) => y.route.id).join(",")
1383
+ r.filter((y) => g.has(y.route.id)).map((y) => y.route.id).join(",")
1387
1384
  ), [h.pathname + h.search];
1388
1385
  }, [
1389
- o,
1386
+ l,
1390
1387
  s,
1391
1388
  n,
1392
1389
  a,
1393
1390
  c,
1394
1391
  r,
1395
1392
  e,
1396
- l
1397
- ]), f = u.useMemo(
1398
- () => jt(d, a),
1393
+ o
1394
+ ]), m = u.useMemo(
1395
+ () => Vt(d, a),
1399
1396
  [d, a]
1400
- ), p = qt(d);
1401
- return /* @__PURE__ */ u.createElement(u.Fragment, null, m.map((b) => /* @__PURE__ */ u.createElement("link", { key: b, rel: "prefetch", as: "fetch", href: b, ...t })), f.map((b) => /* @__PURE__ */ u.createElement("link", { key: b, rel: "modulepreload", href: b, ...t })), p.map(({ key: b, link: x }) => (
1397
+ ), p = Gt(d);
1398
+ return /* @__PURE__ */ u.createElement(u.Fragment, null, f.map((g) => /* @__PURE__ */ u.createElement("link", { key: g, rel: "prefetch", as: "fetch", href: g, ...t })), m.map((g) => /* @__PURE__ */ u.createElement("link", { key: g, rel: "modulepreload", href: g, ...t })), p.map(({ key: g, link: x }) => (
1402
1399
  // these don't spread `linkProps` because they are full link descriptors
1403
1400
  // already with their own props
1404
- /* @__PURE__ */ u.createElement("link", { key: b, nonce: t.nonce, ...x })
1401
+ /* @__PURE__ */ u.createElement("link", { key: g, nonce: t.nonce, ...x })
1405
1402
  )));
1406
1403
  }
1407
- function Qt(...e) {
1404
+ function qt(...e) {
1408
1405
  return (r) => {
1409
1406
  e.forEach((t) => {
1410
1407
  typeof t == "function" ? t(r) : t != null && (t.current = r);
@@ -1423,133 +1420,133 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ae = u.forwardRef(
1423
1420
  discover: t = "render",
1424
1421
  prefetch: n = "none",
1425
1422
  relative: a,
1426
- reloadDocument: l,
1427
- replace: o,
1423
+ reloadDocument: o,
1424
+ replace: l,
1428
1425
  state: s,
1429
1426
  target: i,
1430
1427
  to: c,
1431
1428
  preventScrollReset: d,
1432
- viewTransition: m,
1433
- ...f
1429
+ viewTransition: f,
1430
+ ...m
1434
1431
  }, p) {
1435
- let { basename: b } = u.useContext(N), x = typeof c == "string" && $e.test(c), h, y = !1;
1432
+ let { basename: g } = u.useContext(N), x = typeof c == "string" && $e.test(c), h, y = !1;
1436
1433
  if (typeof c == "string" && x && (h = c, Se))
1437
1434
  try {
1438
- let R = new URL(window.location.href), I = c.startsWith("//") ? new URL(R.protocol + c) : new URL(c), oe = $(I.pathname, b);
1439
- I.origin === R.origin && oe != null ? c = oe + I.search + I.hash : y = !0;
1435
+ let E = new URL(window.location.href), I = c.startsWith("//") ? new URL(E.protocol + c) : new URL(c), le = $(I.pathname, g);
1436
+ I.origin === E.origin && le != null ? c = le + I.search + I.hash : y = !0;
1440
1437
  } catch {
1441
1438
  L(
1442
1439
  !1,
1443
1440
  `<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1444
1441
  );
1445
1442
  }
1446
- let v = pt(c, { relative: a }), [w, T, A] = Gt(
1443
+ let b = mt(c, { relative: a }), [w, T, A] = Kt(
1447
1444
  n,
1448
- f
1449
- ), O = rr(c, {
1450
- replace: o,
1445
+ m
1446
+ ), O = er(c, {
1447
+ replace: l,
1451
1448
  state: s,
1452
1449
  target: i,
1453
1450
  preventScrollReset: d,
1454
1451
  relative: a,
1455
- viewTransition: m
1452
+ viewTransition: f
1456
1453
  });
1457
- function U(R) {
1458
- r && r(R), R.defaultPrevented || O(R);
1454
+ function U(E) {
1455
+ r && r(E), E.defaultPrevented || O(E);
1459
1456
  }
1460
1457
  let W = (
1461
1458
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1462
1459
  /* @__PURE__ */ u.createElement(
1463
1460
  "a",
1464
1461
  {
1465
- ...f,
1462
+ ...m,
1466
1463
  ...A,
1467
- href: h || v,
1468
- onClick: y || l ? r : U,
1469
- ref: Qt(p, T),
1464
+ href: h || b,
1465
+ onClick: y || o ? r : U,
1466
+ ref: qt(p, T),
1470
1467
  target: i,
1471
1468
  "data-discover": !x && t === "render" ? "true" : void 0
1472
1469
  }
1473
1470
  )
1474
1471
  );
1475
- return w && !x ? /* @__PURE__ */ u.createElement(u.Fragment, null, W, /* @__PURE__ */ u.createElement(Yt, { page: v })) : W;
1472
+ return w && !x ? /* @__PURE__ */ u.createElement(u.Fragment, null, W, /* @__PURE__ */ u.createElement(Jt, { page: b })) : W;
1476
1473
  }
1477
1474
  );
1478
1475
  ae.displayName = "Link";
1479
- var Zt = u.forwardRef(
1476
+ var Xt = u.forwardRef(
1480
1477
  function({
1481
1478
  "aria-current": r = "page",
1482
1479
  caseSensitive: t = !1,
1483
1480
  className: n = "",
1484
1481
  end: a = !1,
1485
- style: l,
1486
- to: o,
1482
+ style: o,
1483
+ to: l,
1487
1484
  viewTransition: s,
1488
1485
  children: i,
1489
1486
  ...c
1490
1487
  }, d) {
1491
- let m = M(o, { relative: c.relative }), f = F(), p = u.useContext(z), { navigator: b, basename: x } = u.useContext(N), h = p != null && // Conditional usage is OK here because the usage of a data router is static
1488
+ let f = B(l, { relative: c.relative }), m = F(), p = u.useContext(z), { navigator: g, basename: x } = u.useContext(N), h = p != null && // Conditional usage is OK here because the usage of a data router is static
1492
1489
  // eslint-disable-next-line react-hooks/rules-of-hooks
1493
- ir(m) && s === !0, y = b.encodeLocation ? b.encodeLocation(m).pathname : m.pathname, v = f.pathname, w = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1494
- t || (v = v.toLowerCase(), w = w ? w.toLowerCase() : null, y = y.toLowerCase()), w && x && (w = $(w, x) || w);
1490
+ or(f) && s === !0, y = g.encodeLocation ? g.encodeLocation(f).pathname : f.pathname, b = m.pathname, w = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1491
+ t || (b = b.toLowerCase(), w = w ? w.toLowerCase() : null, y = y.toLowerCase()), w && x && (w = $(w, x) || w);
1495
1492
  const T = y !== "/" && y.endsWith("/") ? y.length - 1 : y.length;
1496
- let A = v === y || !a && v.startsWith(y) && v.charAt(T) === "/", O = w != null && (w === y || !a && w.startsWith(y) && w.charAt(y.length) === "/"), U = {
1493
+ let A = b === y || !a && b.startsWith(y) && b.charAt(T) === "/", O = w != null && (w === y || !a && w.startsWith(y) && w.charAt(y.length) === "/"), U = {
1497
1494
  isActive: A,
1498
1495
  isPending: O,
1499
1496
  isTransitioning: h
1500
- }, W = A ? r : void 0, R;
1501
- typeof n == "function" ? R = n(U) : R = [
1497
+ }, W = A ? r : void 0, E;
1498
+ typeof n == "function" ? E = n(U) : E = [
1502
1499
  n,
1503
1500
  A ? "active" : null,
1504
1501
  O ? "pending" : null,
1505
1502
  h ? "transitioning" : null
1506
1503
  ].filter(Boolean).join(" ");
1507
- let I = typeof l == "function" ? l(U) : l;
1504
+ let I = typeof o == "function" ? o(U) : o;
1508
1505
  return /* @__PURE__ */ u.createElement(
1509
1506
  ae,
1510
1507
  {
1511
1508
  ...c,
1512
1509
  "aria-current": W,
1513
- className: R,
1510
+ className: E,
1514
1511
  ref: d,
1515
1512
  style: I,
1516
- to: o,
1513
+ to: l,
1517
1514
  viewTransition: s
1518
1515
  },
1519
1516
  typeof i == "function" ? i(U) : i
1520
1517
  );
1521
1518
  }
1522
1519
  );
1523
- Zt.displayName = "NavLink";
1524
- var er = u.forwardRef(
1520
+ Xt.displayName = "NavLink";
1521
+ var Qt = u.forwardRef(
1525
1522
  ({
1526
1523
  discover: e = "render",
1527
1524
  fetcherKey: r,
1528
1525
  navigate: t,
1529
1526
  reloadDocument: n,
1530
1527
  replace: a,
1531
- state: l,
1532
- method: o = _,
1528
+ state: o,
1529
+ method: l = _,
1533
1530
  action: s,
1534
1531
  onSubmit: i,
1535
1532
  relative: c,
1536
1533
  preventScrollReset: d,
1537
- viewTransition: m,
1538
- ...f
1534
+ viewTransition: f,
1535
+ ...m
1539
1536
  }, p) => {
1540
- let b = lr(), x = or(s, { relative: c }), h = o.toLowerCase() === "get" ? "get" : "post", y = typeof s == "string" && $e.test(s), v = (w) => {
1537
+ let g = nr(), x = ar(s, { relative: c }), h = l.toLowerCase() === "get" ? "get" : "post", y = typeof s == "string" && $e.test(s), b = (w) => {
1541
1538
  if (i && i(w), w.defaultPrevented) return;
1542
1539
  w.preventDefault();
1543
- let T = w.nativeEvent.submitter, A = T?.getAttribute("formmethod") || o;
1544
- b(T || w.currentTarget, {
1540
+ let T = w.nativeEvent.submitter, A = T?.getAttribute("formmethod") || l;
1541
+ g(T || w.currentTarget, {
1545
1542
  fetcherKey: r,
1546
1543
  method: A,
1547
1544
  navigate: t,
1548
1545
  replace: a,
1549
- state: l,
1546
+ state: o,
1550
1547
  relative: c,
1551
1548
  preventScrollReset: d,
1552
- viewTransition: m
1549
+ viewTransition: f
1553
1550
  });
1554
1551
  };
1555
1552
  return /* @__PURE__ */ u.createElement(
@@ -1558,41 +1555,41 @@ var er = u.forwardRef(
1558
1555
  ref: p,
1559
1556
  method: h,
1560
1557
  action: x,
1561
- onSubmit: n ? i : v,
1562
- ...f,
1558
+ onSubmit: n ? i : b,
1559
+ ...m,
1563
1560
  "data-discover": !y && e === "render" ? "true" : void 0
1564
1561
  }
1565
1562
  );
1566
1563
  }
1567
1564
  );
1568
- er.displayName = "Form";
1569
- function tr(e) {
1565
+ Qt.displayName = "Form";
1566
+ function Zt(e) {
1570
1567
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1571
1568
  }
1572
1569
  function Ae(e) {
1573
1570
  let r = u.useContext(D);
1574
- return k(r, tr(e)), r;
1571
+ return C(r, Zt(e)), r;
1575
1572
  }
1576
- function rr(e, {
1573
+ function er(e, {
1577
1574
  target: r,
1578
1575
  replace: t,
1579
1576
  state: n,
1580
1577
  preventScrollReset: a,
1581
- relative: l,
1582
- viewTransition: o
1578
+ relative: o,
1579
+ viewTransition: l
1583
1580
  } = {}) {
1584
- let s = gt(), i = F(), c = M(e, { relative: l });
1581
+ let s = ht(), i = F(), c = B(e, { relative: o });
1585
1582
  return u.useCallback(
1586
1583
  (d) => {
1587
- if (Dt(d, r)) {
1584
+ if (Tt(d, r)) {
1588
1585
  d.preventDefault();
1589
- let m = t !== void 0 ? t : q(i) === q(c);
1586
+ let f = t !== void 0 ? t : q(i) === q(c);
1590
1587
  s(e, {
1591
- replace: m,
1588
+ replace: f,
1592
1589
  state: n,
1593
1590
  preventScrollReset: a,
1594
- relative: l,
1595
- viewTransition: o
1591
+ relative: o,
1592
+ viewTransition: l
1596
1593
  });
1597
1594
  }
1598
1595
  },
@@ -1605,39 +1602,39 @@ function rr(e, {
1605
1602
  r,
1606
1603
  e,
1607
1604
  a,
1608
- l,
1609
- o
1605
+ o,
1606
+ l
1610
1607
  ]
1611
1608
  );
1612
1609
  }
1613
- var nr = 0, ar = () => `__${String(++nr)}__`;
1614
- function lr() {
1610
+ var tr = 0, rr = () => `__${String(++tr)}__`;
1611
+ function nr() {
1615
1612
  let { router: e } = Ae(
1616
1613
  "useSubmit"
1617
1614
  /* UseSubmit */
1618
- ), { basename: r } = u.useContext(N), t = Pt();
1615
+ ), { basename: r } = u.useContext(N), t = Rt();
1619
1616
  return u.useCallback(
1620
1617
  async (n, a = {}) => {
1621
- let { action: l, method: o, encType: s, formData: i, body: c } = Mt(
1618
+ let { action: o, method: l, encType: s, formData: i, body: c } = Ut(
1622
1619
  n,
1623
1620
  r
1624
1621
  );
1625
1622
  if (a.navigate === !1) {
1626
- let d = a.fetcherKey || ar();
1627
- await e.fetch(d, t, a.action || l, {
1623
+ let d = a.fetcherKey || rr();
1624
+ await e.fetch(d, t, a.action || o, {
1628
1625
  preventScrollReset: a.preventScrollReset,
1629
1626
  formData: i,
1630
1627
  body: c,
1631
- formMethod: a.method || o,
1628
+ formMethod: a.method || l,
1632
1629
  formEncType: a.encType || s,
1633
1630
  flushSync: a.flushSync
1634
1631
  });
1635
1632
  } else
1636
- await e.navigate(a.action || l, {
1633
+ await e.navigate(a.action || o, {
1637
1634
  preventScrollReset: a.preventScrollReset,
1638
1635
  formData: i,
1639
1636
  body: c,
1640
- formMethod: a.method || o,
1637
+ formMethod: a.method || l,
1641
1638
  formEncType: a.encType || s,
1642
1639
  replace: a.replace,
1643
1640
  state: a.state,
@@ -1649,35 +1646,35 @@ function lr() {
1649
1646
  [e, r, t]
1650
1647
  );
1651
1648
  }
1652
- function or(e, { relative: r } = {}) {
1649
+ function ar(e, { relative: r } = {}) {
1653
1650
  let { basename: t } = u.useContext(N), n = u.useContext(S);
1654
- k(n, "useFormAction must be used inside a RouteContext");
1655
- let [a] = n.matches.slice(-1), l = { ...M(e || ".", { relative: r }) }, o = F();
1651
+ C(n, "useFormAction must be used inside a RouteContext");
1652
+ let [a] = n.matches.slice(-1), o = { ...B(e || ".", { relative: r }) }, l = F();
1656
1653
  if (e == null) {
1657
- l.search = o.search;
1658
- let s = new URLSearchParams(l.search), i = s.getAll("index");
1654
+ o.search = l.search;
1655
+ let s = new URLSearchParams(o.search), i = s.getAll("index");
1659
1656
  if (i.some((d) => d === "")) {
1660
- s.delete("index"), i.filter((m) => m).forEach((m) => s.append("index", m));
1657
+ s.delete("index"), i.filter((f) => f).forEach((f) => s.append("index", f));
1661
1658
  let d = s.toString();
1662
- l.search = d ? `?${d}` : "";
1659
+ o.search = d ? `?${d}` : "";
1663
1660
  }
1664
1661
  }
1665
- return (!e || e === ".") && a.route.index && (l.search = l.search ? l.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (l.pathname = l.pathname === "/" ? t : P([t, l.pathname])), q(l);
1662
+ return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (o.pathname = o.pathname === "/" ? t : P([t, o.pathname])), q(o);
1666
1663
  }
1667
- function ir(e, { relative: r } = {}) {
1664
+ function or(e, { relative: r } = {}) {
1668
1665
  let t = u.useContext(ke);
1669
- k(
1666
+ C(
1670
1667
  t != null,
1671
1668
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1672
1669
  );
1673
1670
  let { basename: n } = Ae(
1674
1671
  "useViewTransitionState"
1675
1672
  /* useViewTransitionState */
1676
- ), a = M(e, { relative: r });
1673
+ ), a = B(e, { relative: r });
1677
1674
  if (!t.isTransitioning)
1678
1675
  return !1;
1679
- let l = $(t.currentLocation.pathname, n) || t.currentLocation.pathname, o = $(t.nextLocation.pathname, n) || t.nextLocation.pathname;
1680
- return H(a.pathname, o) != null || H(a.pathname, l) != null;
1676
+ let o = $(t.currentLocation.pathname, n) || t.currentLocation.pathname, l = $(t.nextLocation.pathname, n) || t.nextLocation.pathname;
1677
+ return H(a.pathname, l) != null || H(a.pathname, o) != null;
1681
1678
  }
1682
1679
  function Fe(e) {
1683
1680
  var r, t, n = "";
@@ -1688,40 +1685,40 @@ function Fe(e) {
1688
1685
  } else for (t in e) e[t] && (n && (n += " "), n += t);
1689
1686
  return n;
1690
1687
  }
1691
- function sr() {
1688
+ function lr() {
1692
1689
  for (var e, r, t = 0, n = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = Fe(e)) && (n && (n += " "), n += r);
1693
1690
  return n;
1694
1691
  }
1695
- const me = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, fe = sr, le = (e, r) => (t) => {
1692
+ const fe = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, me = lr, oe = (e, r) => (t) => {
1696
1693
  var n;
1697
- if (r?.variants == null) return fe(e, t?.class, t?.className);
1698
- const { variants: a, defaultVariants: l } = r, o = Object.keys(a).map((c) => {
1699
- const d = t?.[c], m = l?.[c];
1694
+ if (r?.variants == null) return me(e, t?.class, t?.className);
1695
+ const { variants: a, defaultVariants: o } = r, l = Object.keys(a).map((c) => {
1696
+ const d = t?.[c], f = o?.[c];
1700
1697
  if (d === null) return null;
1701
- const f = me(d) || me(m);
1702
- return a[c][f];
1698
+ const m = fe(d) || fe(f);
1699
+ return a[c][m];
1703
1700
  }), s = t && Object.entries(t).reduce((c, d) => {
1704
- let [m, f] = d;
1705
- return f === void 0 || (c[m] = f), c;
1701
+ let [f, m] = d;
1702
+ return m === void 0 || (c[f] = m), c;
1706
1703
  }, {}), i = r == null || (n = r.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((c, d) => {
1707
- let { class: m, className: f, ...p } = d;
1708
- return Object.entries(p).every((b) => {
1709
- let [x, h] = b;
1704
+ let { class: f, className: m, ...p } = d;
1705
+ return Object.entries(p).every((g) => {
1706
+ let [x, h] = g;
1710
1707
  return Array.isArray(h) ? h.includes({
1711
- ...l,
1708
+ ...o,
1712
1709
  ...s
1713
1710
  }[x]) : {
1714
- ...l,
1711
+ ...o,
1715
1712
  ...s
1716
1713
  }[x] === h;
1717
1714
  }) ? [
1718
1715
  ...c,
1719
- m,
1720
- f
1716
+ f,
1717
+ m
1721
1718
  ] : c;
1722
1719
  }, []);
1723
- return fe(e, o, i, t?.class, t?.className);
1724
- }, ur = le("border-b transition-all duration-200", {
1720
+ return me(e, l, i, t?.class, t?.className);
1721
+ }, ir = oe("border-b transition-all duration-200", {
1725
1722
  variants: {
1726
1723
  variant: {
1727
1724
  default: "bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 border-green-200 dark:border-green-700",
@@ -1739,7 +1736,7 @@ const me = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, fe = sr, l
1739
1736
  variant: "default",
1740
1737
  size: "default"
1741
1738
  }
1742
- }), cr = le("font-semibold", {
1739
+ }), sr = oe("font-semibold", {
1743
1740
  variants: {
1744
1741
  variant: {
1745
1742
  default: "text-green-800 dark:text-green-200",
@@ -1751,7 +1748,7 @@ const me = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, fe = sr, l
1751
1748
  defaultVariants: {
1752
1749
  variant: "default"
1753
1750
  }
1754
- }), dr = le(
1751
+ }), ur = oe(
1755
1752
  "inline-flex items-center justify-center px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2",
1756
1753
  {
1757
1754
  variants: {
@@ -1766,33 +1763,33 @@ const me = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, fe = sr, l
1766
1763
  variant: "default"
1767
1764
  }
1768
1765
  }
1769
- ), Rr = ({
1766
+ ), kr = ({
1770
1767
  className: e,
1771
1768
  variant: r = "default",
1772
1769
  size: t = "default",
1773
1770
  message: n = "Get Your Free Email Address - Start Using Web3 Email Today",
1774
1771
  ctaText: a = "Get Free Email",
1775
- ctaLink: l = "/connect",
1776
- showBadge: o = !0,
1772
+ ctaLink: o = "/connect",
1773
+ showBadge: l = !0,
1777
1774
  badgeText: s = "FREE",
1778
1775
  onDismiss: i,
1779
1776
  isDismissible: c = !1,
1780
1777
  dismissAriaLabel: d = "Dismiss banner"
1781
- }) => /* @__PURE__ */ g("div", { className: C(ur({ variant: r, size: t }), e), children: /* @__PURE__ */ g("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ E("div", { className: "flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative", children: [
1782
- c && i && /* @__PURE__ */ g(
1778
+ }) => /* @__PURE__ */ v("div", { className: k(ir({ variant: r, size: t }), e), children: /* @__PURE__ */ v("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ R("div", { className: "flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative", children: [
1779
+ c && i && /* @__PURE__ */ v(
1783
1780
  "button",
1784
1781
  {
1785
1782
  onClick: i,
1786
1783
  className: "absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors",
1787
1784
  "aria-label": d,
1788
- children: /* @__PURE__ */ g(
1785
+ children: /* @__PURE__ */ v(
1789
1786
  "svg",
1790
1787
  {
1791
1788
  className: "w-4 h-4 text-current opacity-60",
1792
1789
  fill: "none",
1793
1790
  stroke: "currentColor",
1794
1791
  viewBox: "0 0 24 24",
1795
- children: /* @__PURE__ */ g(
1792
+ children: /* @__PURE__ */ v(
1796
1793
  "path",
1797
1794
  {
1798
1795
  strokeLinecap: "round",
@@ -1805,66 +1802,29 @@ const me = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, fe = sr, l
1805
1802
  )
1806
1803
  }
1807
1804
  ),
1808
- /* @__PURE__ */ E("div", { className: "flex items-center", children: [
1809
- o && /* @__PURE__ */ g(
1805
+ /* @__PURE__ */ R("div", { className: "flex items-center", children: [
1806
+ l && /* @__PURE__ */ v(
1810
1807
  "div",
1811
1808
  {
1812
- className: C(
1809
+ className: k(
1813
1810
  "text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",
1814
1811
  r === "vibrant" ? "bg-white text-blue-600" : "bg-green-500 text-white"
1815
1812
  ),
1816
1813
  children: s
1817
1814
  }
1818
1815
  ),
1819
- /* @__PURE__ */ g("span", { className: C(cr({ variant: r })), children: n })
1816
+ /* @__PURE__ */ v("span", { className: k(sr({ variant: r })), children: n })
1820
1817
  ] }),
1821
- /* @__PURE__ */ g(ae, { to: l, className: C(dr({ variant: r })), children: a })
1822
- ] }) }) }), Lr = ({
1823
- children: e,
1824
- required: r,
1825
- className: t,
1826
- ...n
1827
- }) => /* @__PURE__ */ E(
1828
- "label",
1829
- {
1830
- className: C(
1831
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
1832
- t
1833
- ),
1834
- ...n,
1835
- children: [
1836
- e,
1837
- r && /* @__PURE__ */ g("span", { className: "text-red-500 ml-1", children: "*" })
1838
- ]
1839
- }
1840
- ), Pr = ({
1841
- className: e,
1842
- children: r,
1843
- disabled: t
1844
- }) => /* @__PURE__ */ g(
1845
- "div",
1846
- {
1847
- className: C(
1848
- "p-4 rounded-lg border transition-colors",
1849
- "bg-white dark:bg-gray-900",
1850
- "border-gray-200 dark:border-gray-700",
1851
- "text-gray-900 dark:text-white",
1852
- t && "opacity-50 cursor-not-allowed",
1853
- e
1854
- ),
1855
- role: "region",
1856
- "aria-label": "SubscriberList",
1857
- children: r || "SubscriberList Component"
1858
- }
1859
- ), Nr = ({
1818
+ /* @__PURE__ */ v(ae, { to: o, className: k(ur({ variant: r })), children: a })
1819
+ ] }) }) }), Er = ({
1860
1820
  className: e,
1861
1821
  children: r,
1862
1822
  disabled: t = !1,
1863
1823
  onClick: n
1864
- }) => /* @__PURE__ */ g(
1824
+ }) => /* @__PURE__ */ v(
1865
1825
  "div",
1866
1826
  {
1867
- className: C(
1827
+ className: k(
1868
1828
  "p-4 rounded-lg border transition-colors",
1869
1829
  "bg-white dark:bg-gray-900",
1870
1830
  "border-gray-200 dark:border-gray-700",
@@ -1880,18 +1840,16 @@ const me = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, fe = sr, l
1880
1840
  }
1881
1841
  );
1882
1842
  export {
1883
- br as AbTestEmail,
1884
- yr as ChainBadge,
1843
+ gr as AbTestEmail,
1885
1844
  ie as CollapsibleEmailField,
1886
- vr as ContactCard,
1887
- xr as EmailAccountsList,
1888
- wr as EmailAnalytics,
1889
- Cr as EmailCampaign,
1845
+ yr as ContactCard,
1846
+ br as EmailAccountsList,
1847
+ vr as EmailAnalytics,
1848
+ xr as EmailCampaign,
1890
1849
  ge as EmailInputField,
1891
- kr as EmailInputGroup,
1892
- Rr as FreeEmailBanner,
1893
- Lr as Label,
1894
- Pr as SubscriberList,
1895
- Er as UemailUtemplate,
1896
- Nr as UsubscriptionUplan
1850
+ wr as EmailInputGroup,
1851
+ kr as FreeEmailBanner,
1852
+ pr as SubscriberList,
1853
+ Cr as UemailUtemplate,
1854
+ Er as UsubscriptionUplan
1897
1855
  };