@sudobility/marketing-components 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import * as u from "react";
1
+ import * as c from "react";
2
2
  import fe from "react";
3
- import { cn as R } from "@sudobility/components";
4
- import { textVariants as Y, ui as Ze } from "@sudobility/design";
3
+ import { cn as R, useLayout as Ae } from "@sudobility/components";
4
+ import { textVariants as Y, ui as Qe } from "@sudobility/design";
5
5
  var K = { exports: {} }, V = {};
6
6
  var Ne;
7
- function Qe() {
7
+ function et() {
8
8
  if (Ne) return V;
9
9
  Ne = 1;
10
10
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
@@ -12,8 +12,8 @@ function Qe() {
12
12
  var l = null;
13
13
  if (o !== void 0 && (l = "" + o), a.key !== void 0 && (l = "" + a.key), "key" in a) {
14
14
  o = {};
15
- for (var i in a)
16
- i !== "key" && (o[i] = a[i]);
15
+ for (var u in a)
16
+ u !== "key" && (o[u] = a[u]);
17
17
  } else o = a;
18
18
  return a = o.ref, {
19
19
  $$typeof: e,
@@ -27,7 +27,7 @@ function Qe() {
27
27
  }
28
28
  var B = {};
29
29
  var Pe;
30
- function et() {
30
+ function tt() {
31
31
  return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && (function() {
32
32
  function e(s) {
33
33
  if (s == null) return null;
@@ -117,7 +117,7 @@ function et() {
117
117
  }
118
118
  return s.key !== void 0;
119
119
  }
120
- function i(s, x) {
120
+ function u(s, x) {
121
121
  function C() {
122
122
  ke || (ke = !0, console.error(
123
123
  "%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)",
@@ -129,7 +129,7 @@ function et() {
129
129
  configurable: !0
130
130
  });
131
131
  }
132
- function c() {
132
+ function i() {
133
133
  var s = e(this.type);
134
134
  return Ee[s] || (Ee[s] = !0, console.error(
135
135
  "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."
@@ -145,7 +145,7 @@ function et() {
145
145
  _owner: S
146
146
  }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(s, "ref", {
147
147
  enumerable: !1,
148
- get: c
148
+ get: i
149
149
  }) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
150
150
  configurable: !1,
151
151
  enumerable: !1,
@@ -172,7 +172,7 @@ function et() {
172
172
  var N = x.children;
173
173
  if (N !== void 0)
174
174
  if (S)
175
- if (Xe(N)) {
175
+ if (Ke(N)) {
176
176
  for (S = 0; S < N.length; S++)
177
177
  d(N[S]);
178
178
  Object.freeze && Object.freeze(N);
@@ -183,8 +183,8 @@ function et() {
183
183
  else d(N);
184
184
  if (we.call(x, "key")) {
185
185
  N = e(s);
186
- var z = Object.keys(x).filter(function(Ke) {
187
- return Ke !== "key";
186
+ var z = Object.keys(x).filter(function(Ze) {
187
+ return Ze !== "key";
188
188
  });
189
189
  S = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", Se[N + S] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
190
190
  `A props object containing a "key" prop is being spread into JSX:
@@ -204,7 +204,7 @@ React keys must be passed directly to JSX without using spread:
204
204
  for (var se in x)
205
205
  se !== "key" && (C[se] = x[se]);
206
206
  } else C = x;
207
- return N && i(
207
+ return N && u(
208
208
  C,
209
209
  typeof s == "function" ? s.displayName || s.name || "Unknown" : s
210
210
  ), f(
@@ -222,7 +222,7 @@ React keys must be passed directly to JSX without using spread:
222
222
  function p(s) {
223
223
  return typeof s == "object" && s !== null && s.$$typeof === y;
224
224
  }
225
- var g = fe, y = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), O = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), oe = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, we = Object.prototype.hasOwnProperty, Xe = Array.isArray, le = console.createTask ? console.createTask : function() {
225
+ var g = fe, y = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), O = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), oe = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, we = Object.prototype.hasOwnProperty, Ke = Array.isArray, le = console.createTask ? console.createTask : function() {
226
226
  return null;
227
227
  };
228
228
  g = {
@@ -258,11 +258,11 @@ React keys must be passed directly to JSX without using spread:
258
258
  })()), B;
259
259
  }
260
260
  var je;
261
- function tt() {
262
- return je || (je = 1, process.env.NODE_ENV === "production" ? K.exports = Qe() : K.exports = et()), K.exports;
261
+ function rt() {
262
+ return je || (je = 1, process.env.NODE_ENV === "production" ? K.exports = et() : K.exports = tt()), K.exports;
263
263
  }
264
- var h = tt();
265
- const Sr = ({
264
+ var h = rt();
265
+ const Nr = ({
266
266
  className: e,
267
267
  children: r,
268
268
  disabled: t
@@ -281,7 +281,7 @@ const Sr = ({
281
281
  "aria-label": "CrmDashboard",
282
282
  children: r || "CrmDashboard Component"
283
283
  }
284
- ), Nr = ({
284
+ ), Pr = ({
285
285
  className: e,
286
286
  children: r,
287
287
  disabled: t = !1,
@@ -304,12 +304,12 @@ const Sr = ({
304
304
  children: r || "UctaUbanner Component"
305
305
  }
306
306
  );
307
- function rt({
307
+ function nt({
308
308
  title: e,
309
309
  titleId: r,
310
310
  ...t
311
311
  }, n) {
312
- return /* @__PURE__ */ u.createElement("svg", Object.assign({
312
+ return /* @__PURE__ */ c.createElement("svg", Object.assign({
313
313
  xmlns: "http://www.w3.org/2000/svg",
314
314
  fill: "none",
315
315
  viewBox: "0 0 24 24",
@@ -319,18 +319,18 @@ function rt({
319
319
  "data-slot": "icon",
320
320
  ref: n,
321
321
  "aria-labelledby": r
322
- }, t), e ? /* @__PURE__ */ u.createElement("title", {
322
+ }, t), e ? /* @__PURE__ */ c.createElement("title", {
323
323
  id: r
324
- }, e) : null, /* @__PURE__ */ u.createElement("path", {
324
+ }, e) : null, /* @__PURE__ */ c.createElement("path", {
325
325
  strokeLinecap: "round",
326
326
  strokeLinejoin: "round",
327
327
  d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
328
328
  }));
329
329
  }
330
- const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
330
+ const at = /* @__PURE__ */ c.forwardRef(nt), jr = ({
331
331
  title: e,
332
332
  description: r,
333
- icon: t = nt,
333
+ icon: t = at,
334
334
  iconVariant: n = "success",
335
335
  size: a = "md",
336
336
  className: o
@@ -341,7 +341,7 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
341
341
  warning: "bg-yellow-400 text-yellow-900",
342
342
  info: "bg-cyan-400 text-cyan-900",
343
343
  gradient: "bg-gradient-to-br from-blue-400 to-purple-500 text-white"
344
- }, c = {
344
+ }, i = {
345
345
  sm: {
346
346
  container: "gap-2",
347
347
  icon: "p-1.5",
@@ -364,25 +364,25 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
364
364
  description: Y.body.md()
365
365
  }
366
366
  }[a];
367
- return /* @__PURE__ */ h.jsxs("div", { className: R("flex items-start", c.container, o), children: [
367
+ return /* @__PURE__ */ h.jsxs("div", { className: R("flex items-start", i.container, o), children: [
368
368
  /* @__PURE__ */ h.jsx(
369
369
  "div",
370
370
  {
371
371
  className: R(
372
372
  "rounded-full flex-shrink-0",
373
- c.icon,
373
+ i.icon,
374
374
  l[n]
375
375
  ),
376
- children: /* @__PURE__ */ h.jsx(t, { className: c.iconSize })
376
+ children: /* @__PURE__ */ h.jsx(t, { className: i.iconSize })
377
377
  }
378
378
  ),
379
379
  /* @__PURE__ */ h.jsxs("div", { className: "flex-1 min-w-0", children: [
380
- /* @__PURE__ */ h.jsx("h4", { className: c.title, children: e }),
380
+ /* @__PURE__ */ h.jsx("h4", { className: i.title, children: e }),
381
381
  r && /* @__PURE__ */ h.jsx(
382
382
  "p",
383
383
  {
384
384
  className: R(
385
- c.description,
385
+ i.description,
386
386
  "mt-1 text-gray-600 dark:text-gray-300"
387
387
  ),
388
388
  children: r
@@ -390,7 +390,7 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
390
390
  )
391
391
  ] })
392
392
  ] });
393
- }, jr = ({
393
+ }, _r = ({
394
394
  className: e,
395
395
  children: r,
396
396
  disabled: t = !1,
@@ -412,7 +412,7 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
412
412
  "aria-label": "UfeatureUspotlight",
413
413
  children: r || "UfeatureUspotlight Component"
414
414
  }
415
- ), _r = ({
415
+ ), Tr = ({
416
416
  badgeIcon: e,
417
417
  badgeText: r,
418
418
  badgeColor: t = "blue",
@@ -420,11 +420,11 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
420
420
  subtitle: a,
421
421
  description: o,
422
422
  primaryButton: l,
423
- secondaryButton: i,
424
- className: c,
423
+ secondaryButton: u,
424
+ className: i,
425
425
  children: f
426
426
  }) => {
427
- const d = {
427
+ const { containerClass: m } = Ae(), p = {
428
428
  blue: "bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",
429
429
  green: "bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",
430
430
  purple: "bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",
@@ -432,13 +432,13 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
432
432
  pink: "bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",
433
433
  gray: "bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"
434
434
  }[t];
435
- return /* @__PURE__ */ h.jsx("section", { className: R("py-20", c), children: /* @__PURE__ */ h.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center", children: [
435
+ return /* @__PURE__ */ h.jsx("section", { className: R("py-20", i), children: /* @__PURE__ */ h.jsxs("div", { className: `${m} text-center`, children: [
436
436
  /* @__PURE__ */ h.jsxs(
437
437
  "div",
438
438
  {
439
439
  className: R(
440
440
  "inline-flex items-center border px-6 py-3 rounded-full mb-6",
441
- d
441
+ p
442
442
  ),
443
443
  children: [
444
444
  e && /* @__PURE__ */ h.jsx("span", { className: "mr-3", children: e }),
@@ -451,7 +451,7 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
451
451
  a && /* @__PURE__ */ h.jsx("span", { className: "text-blue-600 dark:text-blue-400 block", children: a })
452
452
  ] }),
453
453
  /* @__PURE__ */ h.jsx("p", { className: "text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed", children: o }),
454
- (l || i) && /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col sm:flex-row gap-4 justify-center mb-8", children: [
454
+ (l || u) && /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col sm:flex-row gap-4 justify-center mb-8", children: [
455
455
  l && (l.href ? /* @__PURE__ */ h.jsx(
456
456
  "a",
457
457
  {
@@ -473,25 +473,25 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
473
473
  children: l.text
474
474
  }
475
475
  )),
476
- i && (i.href ? /* @__PURE__ */ h.jsx(
476
+ u && (u.href ? /* @__PURE__ */ h.jsx(
477
477
  "a",
478
478
  {
479
- href: i.href,
479
+ href: u.href,
480
480
  className: R(
481
481
  "px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors inline-block",
482
- i.className
482
+ u.className
483
483
  ),
484
- children: i.text
484
+ children: u.text
485
485
  }
486
486
  ) : /* @__PURE__ */ h.jsx(
487
487
  "button",
488
488
  {
489
- onClick: i.onClick,
489
+ onClick: u.onClick,
490
490
  className: R(
491
491
  "px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors",
492
- i.className
492
+ u.className
493
493
  ),
494
- children: i.text
494
+ children: u.text
495
495
  }
496
496
  ))
497
497
  ] }),
@@ -528,36 +528,36 @@ function me(e) {
528
528
  }
529
529
  return r;
530
530
  }
531
- function Ae(e, r, t = "/") {
532
- return at(e, r, t, !1);
531
+ function Oe(e, r, t = "/") {
532
+ return ot(e, r, t, !1);
533
533
  }
534
- function at(e, r, t, n) {
534
+ function ot(e, r, t, n) {
535
535
  let a = typeof r == "string" ? me(r) : r, o = F(a.pathname || "/", t);
536
536
  if (o == null)
537
537
  return null;
538
- let l = Oe(e);
539
- ot(l);
540
- let i = null;
541
- for (let c = 0; i == null && c < l.length; ++c) {
542
- let f = gt(o);
543
- i = ht(
544
- l[c],
538
+ let l = Ue(e);
539
+ lt(l);
540
+ let u = null;
541
+ for (let i = 0; u == null && i < l.length; ++i) {
542
+ let f = bt(o);
543
+ u = pt(
544
+ l[i],
545
545
  f,
546
546
  n
547
547
  );
548
548
  }
549
- return i;
549
+ return u;
550
550
  }
551
- function Oe(e, r = [], t = [], n = "", a = !1) {
552
- let o = (l, i, c = a, f) => {
551
+ function Ue(e, r = [], t = [], n = "", a = !1) {
552
+ let o = (l, u, i = a, f) => {
553
553
  let m = {
554
554
  relativePath: f === void 0 ? l.path || "" : f,
555
555
  caseSensitive: l.caseSensitive === !0,
556
- childrenIndex: i,
556
+ childrenIndex: u,
557
557
  route: l
558
558
  };
559
559
  if (m.relativePath.startsWith("/")) {
560
- if (!m.relativePath.startsWith(n) && c)
560
+ if (!m.relativePath.startsWith(n) && i)
561
561
  return;
562
562
  P(
563
563
  m.relativePath.startsWith(n),
@@ -570,58 +570,58 @@ function Oe(e, r = [], t = [], n = "", a = !1) {
570
570
  // @ts-expect-error
571
571
  l.index !== !0,
572
572
  `Index routes must not have child routes. Please remove all child routes from route path "${d}".`
573
- ), Oe(
573
+ ), Ue(
574
574
  l.children,
575
575
  r,
576
576
  p,
577
577
  d,
578
- c
578
+ i
579
579
  )), !(l.path == null && !l.index) && r.push({
580
580
  path: d,
581
- score: ft(d, l.index),
581
+ score: mt(d, l.index),
582
582
  routesMeta: p
583
583
  });
584
584
  };
585
- return e.forEach((l, i) => {
585
+ return e.forEach((l, u) => {
586
586
  if (l.path === "" || !l.path?.includes("?"))
587
- o(l, i);
587
+ o(l, u);
588
588
  else
589
- for (let c of Ue(l.path))
590
- o(l, i, !0, c);
589
+ for (let i of Fe(l.path))
590
+ o(l, u, !0, i);
591
591
  }), r;
592
592
  }
593
- function Ue(e) {
593
+ function Fe(e) {
594
594
  let r = e.split("/");
595
595
  if (r.length === 0) return [];
596
596
  let [t, ...n] = r, a = t.endsWith("?"), o = t.replace(/\?$/, "");
597
597
  if (n.length === 0)
598
598
  return a ? [o, ""] : [o];
599
- let l = Ue(n.join("/")), i = [];
600
- return i.push(
599
+ let l = Fe(n.join("/")), u = [];
600
+ return u.push(
601
601
  ...l.map(
602
- (c) => c === "" ? o : [o, c].join("/")
602
+ (i) => i === "" ? o : [o, i].join("/")
603
603
  )
604
- ), a && i.push(...l), i.map(
605
- (c) => e.startsWith("/") && c === "" ? "/" : c
604
+ ), a && u.push(...l), u.map(
605
+ (i) => e.startsWith("/") && i === "" ? "/" : i
606
606
  );
607
607
  }
608
- function ot(e) {
608
+ function lt(e) {
609
609
  e.sort(
610
- (r, t) => r.score !== t.score ? t.score - r.score : mt(
610
+ (r, t) => r.score !== t.score ? t.score - r.score : ht(
611
611
  r.routesMeta.map((n) => n.childrenIndex),
612
612
  t.routesMeta.map((n) => n.childrenIndex)
613
613
  )
614
614
  );
615
615
  }
616
- var lt = /^:[\w-]+$/, it = 3, st = 2, ut = 1, ct = 10, dt = -2, _e = (e) => e === "*";
617
- function ft(e, r) {
616
+ var it = /^:[\w-]+$/, st = 3, ut = 2, ct = 1, dt = 10, ft = -2, _e = (e) => e === "*";
617
+ function mt(e, r) {
618
618
  let t = e.split("/"), n = t.length;
619
- return t.some(_e) && (n += dt), r && (n += st), t.filter((a) => !_e(a)).reduce(
620
- (a, o) => a + (lt.test(o) ? it : o === "" ? ut : ct),
619
+ return t.some(_e) && (n += ft), r && (n += ut), t.filter((a) => !_e(a)).reduce(
620
+ (a, o) => a + (it.test(o) ? st : o === "" ? ct : dt),
621
621
  n
622
622
  );
623
623
  }
624
- function mt(e, r) {
624
+ function ht(e, r) {
625
625
  return e.length === r.length && e.slice(0, -1).every((n, a) => n === r[a]) ? (
626
626
  // If two routes are siblings, we should try to match the earlier sibling
627
627
  // first. This allows people to have fine-grained control over the matching
@@ -634,17 +634,17 @@ function mt(e, r) {
634
634
  0
635
635
  );
636
636
  }
637
- function ht(e, r, t = !1) {
637
+ function pt(e, r, t = !1) {
638
638
  let { routesMeta: n } = e, a = {}, o = "/", l = [];
639
- for (let i = 0; i < n.length; ++i) {
640
- let c = n[i], f = i === n.length - 1, m = o === "/" ? r : r.slice(o.length) || "/", d = te(
641
- { path: c.relativePath, caseSensitive: c.caseSensitive, end: f },
639
+ for (let u = 0; u < n.length; ++u) {
640
+ let i = n[u], f = u === n.length - 1, m = o === "/" ? r : r.slice(o.length) || "/", d = te(
641
+ { path: i.relativePath, caseSensitive: i.caseSensitive, end: f },
642
642
  m
643
- ), p = c.route;
643
+ ), p = i.route;
644
644
  if (!d && f && t && !n[n.length - 1].route.index && (d = te(
645
645
  {
646
- path: c.relativePath,
647
- caseSensitive: c.caseSensitive,
646
+ path: i.relativePath,
647
+ caseSensitive: i.caseSensitive,
648
648
  end: !1
649
649
  },
650
650
  m
@@ -654,7 +654,7 @@ function ht(e, r, t = !1) {
654
654
  // TODO: Can this as be avoided?
655
655
  params: a,
656
656
  pathname: L([o, d.pathname]),
657
- pathnameBase: wt(
657
+ pathnameBase: kt(
658
658
  L([o, d.pathnameBase])
659
659
  ),
660
660
  route: p
@@ -664,21 +664,21 @@ function ht(e, r, t = !1) {
664
664
  }
665
665
  function te(e, r) {
666
666
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
667
- let [t, n] = pt(
667
+ let [t, n] = gt(
668
668
  e.path,
669
669
  e.caseSensitive,
670
670
  e.end
671
671
  ), a = r.match(t);
672
672
  if (!a) return null;
673
- let o = a[0], l = o.replace(/(.)\/+$/, "$1"), i = a.slice(1);
673
+ let o = a[0], l = o.replace(/(.)\/+$/, "$1"), u = a.slice(1);
674
674
  return {
675
675
  params: n.reduce(
676
676
  (f, { paramName: m, isOptional: d }, p) => {
677
677
  if (m === "*") {
678
- let y = i[p] || "";
678
+ let y = u[p] || "";
679
679
  l = o.slice(0, o.length - y.length).replace(/(.)\/+$/, "$1");
680
680
  }
681
- const g = i[p];
681
+ const g = u[p];
682
682
  return d && !g ? f[m] = void 0 : f[m] = (g || "").replace(/%2F/g, "/"), f;
683
683
  },
684
684
  {}
@@ -688,18 +688,18 @@ function te(e, r) {
688
688
  pattern: e
689
689
  };
690
690
  }
691
- function pt(e, r = !1, t = !0) {
691
+ function gt(e, r = !1, t = !0) {
692
692
  _(
693
693
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
694
694
  `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(/\*$/, "/*")}".`
695
695
  );
696
696
  let n = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
697
697
  /\/:([\w-]+)(\?)?/g,
698
- (l, i, c) => (n.push({ paramName: i, isOptional: c != null }), c ? "/?([^\\/]+)?" : "/([^\\/]+)")
698
+ (l, u, i) => (n.push({ paramName: u, isOptional: i != null }), i ? "/?([^\\/]+)?" : "/([^\\/]+)")
699
699
  ).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
700
700
  return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, r ? void 0 : "i"), n];
701
701
  }
702
- function gt(e) {
702
+ function bt(e) {
703
703
  try {
704
704
  return e.split("/").map((r) => decodeURIComponent(r).replace(/\//g, "%2F")).join("/");
705
705
  } catch (r) {
@@ -716,15 +716,15 @@ function F(e, r) {
716
716
  let t = r.endsWith("/") ? r.length - 1 : r.length, n = e.charAt(t);
717
717
  return n && n !== "/" ? null : e.slice(t) || "/";
718
718
  }
719
- var bt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, xt = (e) => bt.test(e);
720
- function yt(e, r = "/") {
719
+ var xt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, yt = (e) => xt.test(e);
720
+ function vt(e, r = "/") {
721
721
  let {
722
722
  pathname: t,
723
723
  search: n = "",
724
724
  hash: a = ""
725
725
  } = typeof e == "string" ? me(e) : e, o;
726
726
  if (t)
727
- if (xt(t))
727
+ if (yt(t))
728
728
  o = t;
729
729
  else {
730
730
  if (t.includes("//")) {
@@ -740,8 +740,8 @@ function yt(e, r = "/") {
740
740
  o = r;
741
741
  return {
742
742
  pathname: o,
743
- search: kt(n),
744
- hash: Et(a)
743
+ search: Et(n),
744
+ hash: Rt(a)
745
745
  };
746
746
  }
747
747
  function Te(e, r) {
@@ -755,18 +755,18 @@ function ue(e, r, t, n) {
755
755
  n
756
756
  )}]. 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.`;
757
757
  }
758
- function vt(e) {
758
+ function wt(e) {
759
759
  return e.filter(
760
760
  (r, t) => t === 0 || r.route.path && r.route.path.length > 0
761
761
  );
762
762
  }
763
- function Fe(e) {
764
- let r = vt(e);
763
+ function Ie(e) {
764
+ let r = wt(e);
765
765
  return r.map(
766
766
  (t, n) => n === r.length - 1 ? t.pathname : t.pathnameBase
767
767
  );
768
768
  }
769
- function Ie(e, r, t, n = !1) {
769
+ function De(e, r, t, n = !1) {
770
770
  let a;
771
771
  typeof e == "string" ? a = me(e) : (a = { ...e }, P(
772
772
  !a.pathname || !a.pathname.includes("?"),
@@ -778,9 +778,9 @@ function Ie(e, r, t, n = !1) {
778
778
  !a.search || !a.search.includes("#"),
779
779
  ue("#", "search", "hash", a)
780
780
  ));
781
- let o = e === "" || a.pathname === "", l = o ? "/" : a.pathname, i;
781
+ let o = e === "" || a.pathname === "", l = o ? "/" : a.pathname, u;
782
782
  if (l == null)
783
- i = t;
783
+ u = t;
784
784
  else {
785
785
  let d = r.length - 1;
786
786
  if (!n && l.startsWith("..")) {
@@ -789,73 +789,73 @@ function Ie(e, r, t, n = !1) {
789
789
  p.shift(), d -= 1;
790
790
  a.pathname = p.join("/");
791
791
  }
792
- i = d >= 0 ? r[d] : "/";
792
+ u = d >= 0 ? r[d] : "/";
793
793
  }
794
- let c = yt(a, i), f = l && l !== "/" && l.endsWith("/"), m = (o || l === ".") && t.endsWith("/");
795
- return !c.pathname.endsWith("/") && (f || m) && (c.pathname += "/"), c;
794
+ let i = vt(a, u), f = l && l !== "/" && l.endsWith("/"), m = (o || l === ".") && t.endsWith("/");
795
+ return !i.pathname.endsWith("/") && (f || m) && (i.pathname += "/"), i;
796
796
  }
797
- var L = (e) => e.join("/").replace(/\/\/+/g, "/"), wt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), kt = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Et = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
798
- function Rt(e) {
797
+ var L = (e) => e.join("/").replace(/\/\/+/g, "/"), kt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Et = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Rt = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
798
+ function Ct(e) {
799
799
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
800
800
  }
801
801
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
802
- var De = [
802
+ var Me = [
803
803
  "POST",
804
804
  "PUT",
805
805
  "PATCH",
806
806
  "DELETE"
807
807
  ];
808
808
  new Set(
809
- De
809
+ Me
810
810
  );
811
- var Ct = [
811
+ var St = [
812
812
  "GET",
813
- ...De
813
+ ...Me
814
814
  ];
815
- new Set(Ct);
816
- var H = u.createContext(null);
815
+ new Set(St);
816
+ var H = c.createContext(null);
817
817
  H.displayName = "DataRouter";
818
- var re = u.createContext(null);
818
+ var re = c.createContext(null);
819
819
  re.displayName = "DataRouterState";
820
- u.createContext(!1);
821
- var Me = u.createContext({
820
+ c.createContext(!1);
821
+ var We = c.createContext({
822
822
  isTransitioning: !1
823
823
  });
824
- Me.displayName = "ViewTransition";
825
- var St = u.createContext(
824
+ We.displayName = "ViewTransition";
825
+ var Nt = c.createContext(
826
826
  /* @__PURE__ */ new Map()
827
827
  );
828
- St.displayName = "Fetchers";
829
- var Nt = u.createContext(null);
830
- Nt.displayName = "Await";
831
- var $ = u.createContext(
828
+ Nt.displayName = "Fetchers";
829
+ var Pt = c.createContext(null);
830
+ Pt.displayName = "Await";
831
+ var $ = c.createContext(
832
832
  null
833
833
  );
834
834
  $.displayName = "Navigation";
835
- var he = u.createContext(
835
+ var he = c.createContext(
836
836
  null
837
837
  );
838
838
  he.displayName = "Location";
839
- var A = u.createContext({
839
+ var A = c.createContext({
840
840
  outlet: null,
841
841
  matches: [],
842
842
  isDataRoute: !1
843
843
  });
844
844
  A.displayName = "Route";
845
- var pe = u.createContext(null);
845
+ var pe = c.createContext(null);
846
846
  pe.displayName = "RouteError";
847
- function Pt(e, { relative: r } = {}) {
847
+ function jt(e, { relative: r } = {}) {
848
848
  P(
849
849
  ne(),
850
850
  // TODO: This error is probably because they somehow have 2 versions of the
851
851
  // router loaded. We can help them understand how to avoid that.
852
852
  "useHref() may be used only in the context of a <Router> component."
853
853
  );
854
- let { basename: t, navigator: n } = u.useContext($), { hash: a, pathname: o, search: l } = G(e, { relative: r }), i = o;
855
- return t !== "/" && (i = o === "/" ? t : L([t, o])), n.createHref({ pathname: i, search: l, hash: a });
854
+ let { basename: t, navigator: n } = c.useContext($), { hash: a, pathname: o, search: l } = G(e, { relative: r }), u = o;
855
+ return t !== "/" && (u = o === "/" ? t : L([t, o])), n.createHref({ pathname: u, search: l, hash: a });
856
856
  }
857
857
  function ne() {
858
- return u.useContext(he) != null;
858
+ return c.useContext(he) != null;
859
859
  }
860
860
  function D() {
861
861
  return P(
@@ -863,35 +863,35 @@ function D() {
863
863
  // TODO: This error is probably because they somehow have 2 versions of the
864
864
  // router loaded. We can help them understand how to avoid that.
865
865
  "useLocation() may be used only in the context of a <Router> component."
866
- ), u.useContext(he).location;
867
- }
868
- var We = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
869
- function ze(e) {
870
- u.useContext($).static || u.useLayoutEffect(e);
866
+ ), c.useContext(he).location;
871
867
  }
872
- function jt() {
873
- let { isDataRoute: e } = u.useContext(A);
874
- return e ? zt() : _t();
868
+ var ze = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
869
+ function Ye(e) {
870
+ c.useContext($).static || c.useLayoutEffect(e);
875
871
  }
876
872
  function _t() {
873
+ let { isDataRoute: e } = c.useContext(A);
874
+ return e ? Yt() : Tt();
875
+ }
876
+ function Tt() {
877
877
  P(
878
878
  ne(),
879
879
  // TODO: This error is probably because they somehow have 2 versions of the
880
880
  // router loaded. We can help them understand how to avoid that.
881
881
  "useNavigate() may be used only in the context of a <Router> component."
882
882
  );
883
- let e = u.useContext(H), { basename: r, navigator: t } = u.useContext($), { matches: n } = u.useContext(A), { pathname: a } = D(), o = JSON.stringify(Fe(n)), l = u.useRef(!1);
884
- return ze(() => {
883
+ let e = c.useContext(H), { basename: r, navigator: t } = c.useContext($), { matches: n } = c.useContext(A), { pathname: a } = D(), o = JSON.stringify(Ie(n)), l = c.useRef(!1);
884
+ return Ye(() => {
885
885
  l.current = !0;
886
- }), u.useCallback(
887
- (c, f = {}) => {
888
- if (_(l.current, We), !l.current) return;
889
- if (typeof c == "number") {
890
- t.go(c);
886
+ }), c.useCallback(
887
+ (i, f = {}) => {
888
+ if (_(l.current, ze), !l.current) return;
889
+ if (typeof i == "number") {
890
+ t.go(i);
891
891
  return;
892
892
  }
893
- let m = Ie(
894
- c,
893
+ let m = De(
894
+ i,
895
895
  JSON.parse(o),
896
896
  a,
897
897
  f.relative === "path"
@@ -911,11 +911,11 @@ function _t() {
911
911
  ]
912
912
  );
913
913
  }
914
- u.createContext(null);
914
+ c.createContext(null);
915
915
  function G(e, { relative: r } = {}) {
916
- let { matches: t } = u.useContext(A), { pathname: n } = D(), a = JSON.stringify(Fe(t));
917
- return u.useMemo(
918
- () => Ie(
916
+ let { matches: t } = c.useContext(A), { pathname: n } = D(), a = JSON.stringify(Ie(t));
917
+ return c.useMemo(
918
+ () => De(
919
919
  e,
920
920
  JSON.parse(a),
921
921
  n,
@@ -924,17 +924,17 @@ function G(e, { relative: r } = {}) {
924
924
  [e, a, n, r]
925
925
  );
926
926
  }
927
- function Tt(e, r, t, n, a) {
927
+ function Lt(e, r, t, n, a) {
928
928
  P(
929
929
  ne(),
930
930
  // TODO: This error is probably because they somehow have 2 versions of the
931
931
  // router loaded. We can help them understand how to avoid that.
932
932
  "useRoutes() may be used only in the context of a <Router> component."
933
933
  );
934
- let { navigator: o } = u.useContext($), { matches: l } = u.useContext(A), i = l[l.length - 1], c = i ? i.params : {}, f = i ? i.pathname : "/", m = i ? i.pathnameBase : "/", d = i && i.route;
934
+ let { navigator: o } = c.useContext($), { matches: l } = c.useContext(A), u = l[l.length - 1], i = u ? u.params : {}, f = u ? u.pathname : "/", m = u ? u.pathnameBase : "/", d = u && u.route;
935
935
  {
936
936
  let b = d && d.path || "";
937
- Ye(
937
+ He(
938
938
  f,
939
939
  !d || b.endsWith("*") || b.endsWith("*?"),
940
940
  `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (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.
@@ -949,17 +949,17 @@ Please change the parent <Route path="${b}"> to <Route path="${b === "/" ? "*" :
949
949
  let b = m.replace(/^\//, "").split("/");
950
950
  E = "/" + y.replace(/^\//, "").split("/").slice(b.length).join("/");
951
951
  }
952
- let w = Ae(e, { pathname: E });
952
+ let w = Oe(e, { pathname: E });
953
953
  return _(
954
954
  d || w != null,
955
955
  `No routes matched location "${g.pathname}${g.search}${g.hash}" `
956
956
  ), _(
957
957
  w == null || w[w.length - 1].route.element !== void 0 || w[w.length - 1].route.Component !== void 0 || w[w.length - 1].route.lazy !== void 0,
958
958
  `Matched leaf route at location "${g.pathname}${g.search}${g.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.`
959
- ), Ut(
959
+ ), Ft(
960
960
  w && w.map(
961
961
  (b) => Object.assign({}, b, {
962
- params: Object.assign({}, c, b.params),
962
+ params: Object.assign({}, i, b.params),
963
963
  pathname: L([
964
964
  m,
965
965
  // Re-encode pathnames that were decoded inside matchRoutes.
@@ -988,14 +988,14 @@ Please change the parent <Route path="${b}"> to <Route path="${b === "/" ? "*" :
988
988
  a
989
989
  );
990
990
  }
991
- function Lt() {
992
- let e = Wt(), r = Rt(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;
991
+ function $t() {
992
+ let e = zt(), r = Ct(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;
993
993
  return console.error(
994
994
  "Error handled by React Router default ErrorBoundary:",
995
995
  e
996
- ), 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);
996
+ ), l = /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ c.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ c.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ c.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ c.createElement("h3", { style: { fontStyle: "italic" } }, r), t ? /* @__PURE__ */ c.createElement("pre", { style: a }, t) : null, l);
997
997
  }
998
- var $t = /* @__PURE__ */ u.createElement(Lt, null), At = class extends u.Component {
998
+ var At = /* @__PURE__ */ c.createElement($t, null), Ot = class extends c.Component {
999
999
  constructor(e) {
1000
1000
  super(e), this.state = {
1001
1001
  location: e.location,
@@ -1024,7 +1024,7 @@ var $t = /* @__PURE__ */ u.createElement(Lt, null), At = class extends u.Compone
1024
1024
  );
1025
1025
  }
1026
1026
  render() {
1027
- return this.state.error !== void 0 ? /* @__PURE__ */ u.createElement(A.Provider, { value: this.props.routeContext }, /* @__PURE__ */ u.createElement(
1027
+ return this.state.error !== void 0 ? /* @__PURE__ */ c.createElement(A.Provider, { value: this.props.routeContext }, /* @__PURE__ */ c.createElement(
1028
1028
  pe.Provider,
1029
1029
  {
1030
1030
  value: this.state.error,
@@ -1033,11 +1033,11 @@ var $t = /* @__PURE__ */ u.createElement(Lt, null), At = class extends u.Compone
1033
1033
  )) : this.props.children;
1034
1034
  }
1035
1035
  };
1036
- function Ot({ routeContext: e, match: r, children: t }) {
1037
- let n = u.useContext(H);
1038
- return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ u.createElement(A.Provider, { value: e }, t);
1036
+ function Ut({ routeContext: e, match: r, children: t }) {
1037
+ let n = c.useContext(H);
1038
+ return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ c.createElement(A.Provider, { value: e }, t);
1039
1039
  }
1040
- function Ut(e, r = [], t = null, n = null, a = null) {
1040
+ function Ft(e, r = [], t = null, n = null, a = null) {
1041
1041
  if (e == null) {
1042
1042
  if (!t)
1043
1043
  return null;
@@ -1063,14 +1063,14 @@ function Ut(e, r = [], t = null, n = null, a = null) {
1063
1063
  Math.min(o.length, m + 1)
1064
1064
  );
1065
1065
  }
1066
- let i = !1, c = -1;
1066
+ let u = !1, i = -1;
1067
1067
  if (t)
1068
1068
  for (let m = 0; m < o.length; m++) {
1069
1069
  let d = o[m];
1070
- if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (c = m), d.route.id) {
1070
+ if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (i = m), d.route.id) {
1071
1071
  let { loaderData: p, errors: g } = t, y = d.route.loader && !p.hasOwnProperty(d.route.id) && (!g || g[d.route.id] === void 0);
1072
1072
  if (d.route.lazy || y) {
1073
- i = !0, c >= 0 ? o = o.slice(0, c + 1) : o = [o[0]];
1073
+ u = !0, i >= 0 ? o = o.slice(0, i + 1) : o = [o[0]];
1074
1074
  break;
1075
1075
  }
1076
1076
  }
@@ -1085,15 +1085,15 @@ function Ut(e, r = [], t = null, n = null, a = null) {
1085
1085
  return o.reduceRight(
1086
1086
  (m, d, p) => {
1087
1087
  let g, y = !1, E = null, w = null;
1088
- t && (g = l && d.route.id ? l[d.route.id] : void 0, E = d.route.errorElement || $t, i && (c < 0 && p === 0 ? (Ye(
1088
+ t && (g = l && d.route.id ? l[d.route.id] : void 0, E = d.route.errorElement || At, u && (i < 0 && p === 0 ? (He(
1089
1089
  "route-fallback",
1090
1090
  !1,
1091
1091
  "No `HydrateFallback` element provided to render during initial hydration"
1092
- ), y = !0, w = null) : c === p && (y = !0, w = d.route.hydrateFallbackElement || null)));
1092
+ ), y = !0, w = null) : i === p && (y = !0, w = d.route.hydrateFallbackElement || null)));
1093
1093
  let v = r.concat(o.slice(0, p + 1)), b = () => {
1094
1094
  let k;
1095
- return g ? k = E : y ? k = w : d.route.Component ? k = /* @__PURE__ */ u.createElement(d.route.Component, null) : d.route.element ? k = d.route.element : k = m, /* @__PURE__ */ u.createElement(
1096
- Ot,
1095
+ return g ? k = E : y ? k = w : d.route.Component ? k = /* @__PURE__ */ c.createElement(d.route.Component, null) : d.route.element ? k = d.route.element : k = m, /* @__PURE__ */ c.createElement(
1096
+ Ut,
1097
1097
  {
1098
1098
  match: d,
1099
1099
  routeContext: {
@@ -1105,8 +1105,8 @@ function Ut(e, r = [], t = null, n = null, a = null) {
1105
1105
  }
1106
1106
  );
1107
1107
  };
1108
- return t && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ u.createElement(
1109
- At,
1108
+ return t && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ c.createElement(
1109
+ Ot,
1110
1110
  {
1111
1111
  location: t.location,
1112
1112
  revalidation: t.revalidation,
@@ -1124,33 +1124,33 @@ function Ut(e, r = [], t = null, n = null, a = null) {
1124
1124
  function ge(e) {
1125
1125
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1126
1126
  }
1127
- function Ft(e) {
1128
- let r = u.useContext(H);
1129
- return P(r, ge(e)), r;
1130
- }
1131
1127
  function It(e) {
1132
- let r = u.useContext(re);
1128
+ let r = c.useContext(H);
1133
1129
  return P(r, ge(e)), r;
1134
1130
  }
1135
1131
  function Dt(e) {
1136
- let r = u.useContext(A);
1132
+ let r = c.useContext(re);
1133
+ return P(r, ge(e)), r;
1134
+ }
1135
+ function Mt(e) {
1136
+ let r = c.useContext(A);
1137
1137
  return P(r, ge(e)), r;
1138
1138
  }
1139
1139
  function be(e) {
1140
- let r = Dt(e), t = r.matches[r.matches.length - 1];
1140
+ let r = Mt(e), t = r.matches[r.matches.length - 1];
1141
1141
  return P(
1142
1142
  t.route.id,
1143
1143
  `${e} can only be used on routes that contain a unique "id"`
1144
1144
  ), t.route.id;
1145
1145
  }
1146
- function Mt() {
1146
+ function Wt() {
1147
1147
  return be(
1148
1148
  "useRouteId"
1149
1149
  /* UseRouteId */
1150
1150
  );
1151
1151
  }
1152
- function Wt() {
1153
- let e = u.useContext(pe), r = It(
1152
+ function zt() {
1153
+ let e = c.useContext(pe), r = Dt(
1154
1154
  "useRouteError"
1155
1155
  /* UseRouteError */
1156
1156
  ), t = be(
@@ -1159,59 +1159,59 @@ function Wt() {
1159
1159
  );
1160
1160
  return e !== void 0 ? e : r.errors?.[t];
1161
1161
  }
1162
- function zt() {
1163
- let { router: e } = Ft(
1162
+ function Yt() {
1163
+ let { router: e } = It(
1164
1164
  "useNavigate"
1165
1165
  /* UseNavigateStable */
1166
1166
  ), r = be(
1167
1167
  "useNavigate"
1168
1168
  /* UseNavigateStable */
1169
- ), t = u.useRef(!1);
1170
- return ze(() => {
1169
+ ), t = c.useRef(!1);
1170
+ return Ye(() => {
1171
1171
  t.current = !0;
1172
- }), u.useCallback(
1172
+ }), c.useCallback(
1173
1173
  async (a, o = {}) => {
1174
- _(t.current, We), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1174
+ _(t.current, ze), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1175
1175
  },
1176
1176
  [e, r]
1177
1177
  );
1178
1178
  }
1179
1179
  var Le = {};
1180
- function Ye(e, r, t) {
1180
+ function He(e, r, t) {
1181
1181
  !r && !Le[e] && (Le[e] = !0, _(!1, t));
1182
1182
  }
1183
- u.memo(Yt);
1184
- function Yt({
1183
+ c.memo(Ht);
1184
+ function Ht({
1185
1185
  routes: e,
1186
1186
  future: r,
1187
1187
  state: t,
1188
1188
  unstable_onError: n
1189
1189
  }) {
1190
- return Tt(e, void 0, t, n, r);
1190
+ return Lt(e, void 0, t, n, r);
1191
1191
  }
1192
1192
  var Q = "get", ee = "application/x-www-form-urlencoded";
1193
1193
  function ae(e) {
1194
1194
  return e != null && typeof e.tagName == "string";
1195
1195
  }
1196
- function Ht(e) {
1196
+ function Vt(e) {
1197
1197
  return ae(e) && e.tagName.toLowerCase() === "button";
1198
1198
  }
1199
- function Vt(e) {
1199
+ function Bt(e) {
1200
1200
  return ae(e) && e.tagName.toLowerCase() === "form";
1201
1201
  }
1202
- function Bt(e) {
1202
+ function Jt(e) {
1203
1203
  return ae(e) && e.tagName.toLowerCase() === "input";
1204
1204
  }
1205
- function Jt(e) {
1205
+ function Gt(e) {
1206
1206
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1207
1207
  }
1208
- function Gt(e, r) {
1208
+ function qt(e, r) {
1209
1209
  return e.button === 0 && // Ignore everything but left clicks
1210
1210
  (!r || r === "_self") && // Let browser handle "target=_blank" etc.
1211
- !Jt(e);
1211
+ !Gt(e);
1212
1212
  }
1213
1213
  var Z = null;
1214
- function qt() {
1214
+ function Xt() {
1215
1215
  if (Z === null)
1216
1216
  try {
1217
1217
  new FormData(
@@ -1224,30 +1224,30 @@ function qt() {
1224
1224
  }
1225
1225
  return Z;
1226
1226
  }
1227
- var Xt = /* @__PURE__ */ new Set([
1227
+ var Kt = /* @__PURE__ */ new Set([
1228
1228
  "application/x-www-form-urlencoded",
1229
1229
  "multipart/form-data",
1230
1230
  "text/plain"
1231
1231
  ]);
1232
1232
  function ce(e) {
1233
- return e != null && !Xt.has(e) ? (_(
1233
+ return e != null && !Kt.has(e) ? (_(
1234
1234
  !1,
1235
1235
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ee}"`
1236
1236
  ), null) : e;
1237
1237
  }
1238
- function Kt(e, r) {
1238
+ function Zt(e, r) {
1239
1239
  let t, n, a, o, l;
1240
- if (Vt(e)) {
1241
- let i = e.getAttribute("action");
1242
- n = i ? F(i, r) : null, t = e.getAttribute("method") || Q, a = ce(e.getAttribute("enctype")) || ee, o = new FormData(e);
1243
- } else if (Ht(e) || Bt(e) && (e.type === "submit" || e.type === "image")) {
1244
- let i = e.form;
1245
- if (i == null)
1240
+ if (Bt(e)) {
1241
+ let u = e.getAttribute("action");
1242
+ n = u ? F(u, r) : null, t = e.getAttribute("method") || Q, a = ce(e.getAttribute("enctype")) || ee, o = new FormData(e);
1243
+ } else if (Vt(e) || Jt(e) && (e.type === "submit" || e.type === "image")) {
1244
+ let u = e.form;
1245
+ if (u == null)
1246
1246
  throw new Error(
1247
1247
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1248
1248
  );
1249
- let c = e.getAttribute("formaction") || i.getAttribute("action");
1250
- if (n = c ? F(c, r) : null, t = e.getAttribute("formmethod") || i.getAttribute("method") || Q, a = ce(e.getAttribute("formenctype")) || ce(i.getAttribute("enctype")) || ee, o = new FormData(i, e), !qt()) {
1249
+ let i = e.getAttribute("formaction") || u.getAttribute("action");
1250
+ if (n = i ? F(i, r) : null, t = e.getAttribute("formmethod") || u.getAttribute("method") || Q, a = ce(e.getAttribute("formenctype")) || ce(u.getAttribute("enctype")) || ee, o = new FormData(u, e), !Xt()) {
1251
1251
  let { name: f, type: m, value: d } = e;
1252
1252
  if (m === "image") {
1253
1253
  let p = f ? `${f}.` : "";
@@ -1268,7 +1268,7 @@ function xe(e, r) {
1268
1268
  if (e === !1 || e === null || typeof e > "u")
1269
1269
  throw new Error(r);
1270
1270
  }
1271
- function Zt(e, r, t) {
1271
+ function Qt(e, r, t) {
1272
1272
  let n = typeof e == "string" ? new URL(
1273
1273
  e,
1274
1274
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -1277,7 +1277,7 @@ function Zt(e, r, t) {
1277
1277
  ) : e;
1278
1278
  return n.pathname === "/" ? n.pathname = `_root.${t}` : r && F(n.pathname, r) === "/" ? n.pathname = `${r.replace(/\/$/, "")}/_root.${t}` : n.pathname = `${n.pathname.replace(/\/$/, "")}.${t}`, n;
1279
1279
  }
1280
- async function Qt(e, r) {
1280
+ async function er(e, r) {
1281
1281
  if (e.id in r)
1282
1282
  return r[e.id];
1283
1283
  try {
@@ -1294,50 +1294,50 @@ async function Qt(e, r) {
1294
1294
  });
1295
1295
  }
1296
1296
  }
1297
- function er(e) {
1297
+ function tr(e) {
1298
1298
  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";
1299
1299
  }
1300
- async function tr(e, r, t) {
1300
+ async function rr(e, r, t) {
1301
1301
  let n = await Promise.all(
1302
1302
  e.map(async (a) => {
1303
1303
  let o = r.routes[a.route.id];
1304
1304
  if (o) {
1305
- let l = await Qt(o, t);
1305
+ let l = await er(o, t);
1306
1306
  return l.links ? l.links() : [];
1307
1307
  }
1308
1308
  return [];
1309
1309
  })
1310
1310
  );
1311
- return or(
1312
- n.flat(1).filter(er).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1311
+ return lr(
1312
+ n.flat(1).filter(tr).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1313
1313
  (a) => a.rel === "stylesheet" ? { ...a, rel: "prefetch", as: "style" } : { ...a, rel: "prefetch" }
1314
1314
  )
1315
1315
  );
1316
1316
  }
1317
1317
  function $e(e, r, t, n, a, o) {
1318
- let l = (c, f) => t[f] ? c.route.id !== t[f].route.id : !0, i = (c, f) => (
1318
+ let l = (i, f) => t[f] ? i.route.id !== t[f].route.id : !0, u = (i, f) => (
1319
1319
  // param change, /users/123 -> /users/456
1320
- t[f].pathname !== c.pathname || // splat param changed, which is not present in match.path
1320
+ t[f].pathname !== i.pathname || // splat param changed, which is not present in match.path
1321
1321
  // e.g. /files/images/avatar.jpg -> files/finances.xls
1322
- t[f].route.path?.endsWith("*") && t[f].params["*"] !== c.params["*"]
1322
+ t[f].route.path?.endsWith("*") && t[f].params["*"] !== i.params["*"]
1323
1323
  );
1324
1324
  return o === "assets" ? r.filter(
1325
- (c, f) => l(c, f) || i(c, f)
1326
- ) : o === "data" ? r.filter((c, f) => {
1327
- let m = n.routes[c.route.id];
1325
+ (i, f) => l(i, f) || u(i, f)
1326
+ ) : o === "data" ? r.filter((i, f) => {
1327
+ let m = n.routes[i.route.id];
1328
1328
  if (!m || !m.hasLoader)
1329
1329
  return !1;
1330
- if (l(c, f) || i(c, f))
1330
+ if (l(i, f) || u(i, f))
1331
1331
  return !0;
1332
- if (c.route.shouldRevalidate) {
1333
- let d = c.route.shouldRevalidate({
1332
+ if (i.route.shouldRevalidate) {
1333
+ let d = i.route.shouldRevalidate({
1334
1334
  currentUrl: new URL(
1335
1335
  a.pathname + a.search + a.hash,
1336
1336
  window.origin
1337
1337
  ),
1338
1338
  currentParams: t[0]?.params || {},
1339
1339
  nextUrl: new URL(e, window.origin),
1340
- nextParams: c.params,
1340
+ nextParams: i.params,
1341
1341
  defaultShouldRevalidate: !0
1342
1342
  });
1343
1343
  if (typeof d == "boolean")
@@ -1346,8 +1346,8 @@ function $e(e, r, t, n, a, o) {
1346
1346
  return !0;
1347
1347
  }) : [];
1348
1348
  }
1349
- function rr(e, r, { includeHydrateFallback: t } = {}) {
1350
- return nr(
1349
+ function nr(e, r, { includeHydrateFallback: t } = {}) {
1350
+ return ar(
1351
1351
  e.map((n) => {
1352
1352
  let a = r.routes[n.route.id];
1353
1353
  if (!a) return [];
@@ -1356,48 +1356,48 @@ function rr(e, r, { includeHydrateFallback: t } = {}) {
1356
1356
  }).flat(1)
1357
1357
  );
1358
1358
  }
1359
- function nr(e) {
1359
+ function ar(e) {
1360
1360
  return [...new Set(e)];
1361
1361
  }
1362
- function ar(e) {
1362
+ function or(e) {
1363
1363
  let r = {}, t = Object.keys(e).sort();
1364
1364
  for (let n of t)
1365
1365
  r[n] = e[n];
1366
1366
  return r;
1367
1367
  }
1368
- function or(e, r) {
1368
+ function lr(e, r) {
1369
1369
  let t = /* @__PURE__ */ new Set();
1370
1370
  return new Set(r), e.reduce((n, a) => {
1371
- let o = JSON.stringify(ar(a));
1371
+ let o = JSON.stringify(or(a));
1372
1372
  return t.has(o) || (t.add(o), n.push({ key: o, link: a })), n;
1373
1373
  }, []);
1374
1374
  }
1375
- function He() {
1376
- let e = u.useContext(H);
1375
+ function Ve() {
1376
+ let e = c.useContext(H);
1377
1377
  return xe(
1378
1378
  e,
1379
1379
  "You must render this element inside a <DataRouterContext.Provider> element"
1380
1380
  ), e;
1381
1381
  }
1382
- function lr() {
1383
- let e = u.useContext(re);
1382
+ function ir() {
1383
+ let e = c.useContext(re);
1384
1384
  return xe(
1385
1385
  e,
1386
1386
  "You must render this element inside a <DataRouterStateContext.Provider> element"
1387
1387
  ), e;
1388
1388
  }
1389
- var ye = u.createContext(void 0);
1389
+ var ye = c.createContext(void 0);
1390
1390
  ye.displayName = "FrameworkContext";
1391
- function Ve() {
1392
- let e = u.useContext(ye);
1391
+ function Be() {
1392
+ let e = c.useContext(ye);
1393
1393
  return xe(
1394
1394
  e,
1395
1395
  "You must render this element inside a <HydratedRouter> element"
1396
1396
  ), e;
1397
1397
  }
1398
- function ir(e, r) {
1399
- let t = u.useContext(ye), [n, a] = u.useState(!1), [o, l] = u.useState(!1), { onFocus: i, onBlur: c, onMouseEnter: f, onMouseLeave: m, onTouchStart: d } = r, p = u.useRef(null);
1400
- u.useEffect(() => {
1398
+ function sr(e, r) {
1399
+ let t = c.useContext(ye), [n, a] = c.useState(!1), [o, l] = c.useState(!1), { onFocus: u, onBlur: i, onMouseEnter: f, onMouseLeave: m, onTouchStart: d } = r, p = c.useRef(null);
1400
+ c.useEffect(() => {
1401
1401
  if (e === "render" && l(!0), e === "viewport") {
1402
1402
  let E = (v) => {
1403
1403
  v.forEach((b) => {
@@ -1408,7 +1408,7 @@ function ir(e, r) {
1408
1408
  w.disconnect();
1409
1409
  };
1410
1410
  }
1411
- }, [e]), u.useEffect(() => {
1411
+ }, [e]), c.useEffect(() => {
1412
1412
  if (n) {
1413
1413
  let E = setTimeout(() => {
1414
1414
  l(!0);
@@ -1427,8 +1427,8 @@ function ir(e, r) {
1427
1427
  o,
1428
1428
  p,
1429
1429
  {
1430
- onFocus: J(i, g),
1431
- onBlur: J(c, y),
1430
+ onFocus: J(u, g),
1431
+ onBlur: J(i, y),
1432
1432
  onMouseEnter: J(f, g),
1433
1433
  onMouseLeave: J(m, y),
1434
1434
  onTouchStart: J(d, g)
@@ -1440,18 +1440,18 @@ function J(e, r) {
1440
1440
  e && e(t), t.defaultPrevented || r(t);
1441
1441
  };
1442
1442
  }
1443
- function sr({ page: e, ...r }) {
1444
- let { router: t } = He(), n = u.useMemo(
1445
- () => Ae(t.routes, e, t.basename),
1443
+ function ur({ page: e, ...r }) {
1444
+ let { router: t } = Ve(), n = c.useMemo(
1445
+ () => Oe(t.routes, e, t.basename),
1446
1446
  [t.routes, e, t.basename]
1447
1447
  );
1448
- return n ? /* @__PURE__ */ u.createElement(cr, { page: e, matches: n, ...r }) : null;
1448
+ return n ? /* @__PURE__ */ c.createElement(dr, { page: e, matches: n, ...r }) : null;
1449
1449
  }
1450
- function ur(e) {
1451
- let { manifest: r, routeModules: t } = Ve(), [n, a] = u.useState([]);
1452
- return u.useEffect(() => {
1450
+ function cr(e) {
1451
+ let { manifest: r, routeModules: t } = Be(), [n, a] = c.useState([]);
1452
+ return c.useEffect(() => {
1453
1453
  let o = !1;
1454
- return tr(e, r, t).then(
1454
+ return rr(e, r, t).then(
1455
1455
  (l) => {
1456
1456
  o || a(l);
1457
1457
  }
@@ -1460,78 +1460,78 @@ function ur(e) {
1460
1460
  };
1461
1461
  }, [e, r, t]), n;
1462
1462
  }
1463
- function cr({
1463
+ function dr({
1464
1464
  page: e,
1465
1465
  matches: r,
1466
1466
  ...t
1467
1467
  }) {
1468
- let n = D(), { manifest: a, routeModules: o } = Ve(), { basename: l } = He(), { loaderData: i, matches: c } = lr(), f = u.useMemo(
1468
+ let n = D(), { manifest: a, routeModules: o } = Be(), { basename: l } = Ve(), { loaderData: u, matches: i } = ir(), f = c.useMemo(
1469
1469
  () => $e(
1470
1470
  e,
1471
1471
  r,
1472
- c,
1472
+ i,
1473
1473
  a,
1474
1474
  n,
1475
1475
  "data"
1476
1476
  ),
1477
- [e, r, c, a, n]
1478
- ), m = u.useMemo(
1477
+ [e, r, i, a, n]
1478
+ ), m = c.useMemo(
1479
1479
  () => $e(
1480
1480
  e,
1481
1481
  r,
1482
- c,
1482
+ i,
1483
1483
  a,
1484
1484
  n,
1485
1485
  "assets"
1486
1486
  ),
1487
- [e, r, c, a, n]
1488
- ), d = u.useMemo(() => {
1487
+ [e, r, i, a, n]
1488
+ ), d = c.useMemo(() => {
1489
1489
  if (e === n.pathname + n.search + n.hash)
1490
1490
  return [];
1491
1491
  let y = /* @__PURE__ */ new Set(), E = !1;
1492
1492
  if (r.forEach((v) => {
1493
1493
  let b = a.routes[v.route.id];
1494
- !b || !b.hasLoader || (!f.some((k) => k.route.id === v.route.id) && v.route.id in i && o[v.route.id]?.shouldRevalidate || b.hasClientLoader ? E = !0 : y.add(v.route.id));
1494
+ !b || !b.hasLoader || (!f.some((k) => k.route.id === v.route.id) && v.route.id in u && o[v.route.id]?.shouldRevalidate || b.hasClientLoader ? E = !0 : y.add(v.route.id));
1495
1495
  }), y.size === 0)
1496
1496
  return [];
1497
- let w = Zt(e, l, "data");
1497
+ let w = Qt(e, l, "data");
1498
1498
  return E && y.size > 0 && w.searchParams.set(
1499
1499
  "_routes",
1500
1500
  r.filter((v) => y.has(v.route.id)).map((v) => v.route.id).join(",")
1501
1501
  ), [w.pathname + w.search];
1502
1502
  }, [
1503
1503
  l,
1504
- i,
1504
+ u,
1505
1505
  n,
1506
1506
  a,
1507
1507
  f,
1508
1508
  r,
1509
1509
  e,
1510
1510
  o
1511
- ]), p = u.useMemo(
1512
- () => rr(m, a),
1511
+ ]), p = c.useMemo(
1512
+ () => nr(m, a),
1513
1513
  [m, a]
1514
- ), g = ur(m);
1515
- return /* @__PURE__ */ u.createElement(u.Fragment, null, d.map((y) => /* @__PURE__ */ u.createElement("link", { key: y, rel: "prefetch", as: "fetch", href: y, ...t })), p.map((y) => /* @__PURE__ */ u.createElement("link", { key: y, rel: "modulepreload", href: y, ...t })), g.map(({ key: y, link: E }) => (
1514
+ ), g = cr(m);
1515
+ return /* @__PURE__ */ c.createElement(c.Fragment, null, d.map((y) => /* @__PURE__ */ c.createElement("link", { key: y, rel: "prefetch", as: "fetch", href: y, ...t })), p.map((y) => /* @__PURE__ */ c.createElement("link", { key: y, rel: "modulepreload", href: y, ...t })), g.map(({ key: y, link: E }) => (
1516
1516
  // these don't spread `linkProps` because they are full link descriptors
1517
1517
  // already with their own props
1518
- /* @__PURE__ */ u.createElement("link", { key: y, nonce: t.nonce, ...E })
1518
+ /* @__PURE__ */ c.createElement("link", { key: y, nonce: t.nonce, ...E })
1519
1519
  )));
1520
1520
  }
1521
- function dr(...e) {
1521
+ function fr(...e) {
1522
1522
  return (r) => {
1523
1523
  e.forEach((t) => {
1524
1524
  typeof t == "function" ? t(r) : t != null && (t.current = r);
1525
1525
  });
1526
1526
  };
1527
1527
  }
1528
- var Be = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1528
+ var Je = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1529
1529
  try {
1530
- Be && (window.__reactRouterVersion = // @ts-expect-error
1530
+ Je && (window.__reactRouterVersion = // @ts-expect-error
1531
1531
  "7.9.6");
1532
1532
  } catch {
1533
1533
  }
1534
- var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = u.forwardRef(
1534
+ var Ge = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = c.forwardRef(
1535
1535
  function({
1536
1536
  onClick: r,
1537
1537
  discover: t = "render",
@@ -1539,15 +1539,15 @@ var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = u.forwardRef(
1539
1539
  relative: a,
1540
1540
  reloadDocument: o,
1541
1541
  replace: l,
1542
- state: i,
1543
- target: c,
1542
+ state: u,
1543
+ target: i,
1544
1544
  to: f,
1545
1545
  preventScrollReset: m,
1546
1546
  viewTransition: d,
1547
1547
  ...p
1548
1548
  }, g) {
1549
- let { basename: y } = u.useContext($), E = typeof f == "string" && Je.test(f), w, v = !1;
1550
- if (typeof f == "string" && E && (w = f, Be))
1549
+ let { basename: y } = c.useContext($), E = typeof f == "string" && Ge.test(f), w, v = !1;
1550
+ if (typeof f == "string" && E && (w = f, Je))
1551
1551
  try {
1552
1552
  let j = new URL(window.location.href), U = f.startsWith("//") ? new URL(j.protocol + f) : new URL(f), q = F(U.pathname, y);
1553
1553
  U.origin === j.origin && q != null ? f = q + U.search + U.hash : v = !0;
@@ -1557,13 +1557,13 @@ var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = u.forwardRef(
1557
1557
  `<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1558
1558
  );
1559
1559
  }
1560
- let b = Pt(f, { relative: a }), [k, O, T] = ir(
1560
+ let b = jt(f, { relative: a }), [k, O, T] = sr(
1561
1561
  n,
1562
1562
  p
1563
- ), M = pr(f, {
1563
+ ), M = gr(f, {
1564
1564
  replace: l,
1565
- state: i,
1566
- target: c,
1565
+ state: u,
1566
+ target: i,
1567
1567
  preventScrollReset: m,
1568
1568
  relative: a,
1569
1569
  viewTransition: d
@@ -1573,24 +1573,24 @@ var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = u.forwardRef(
1573
1573
  }
1574
1574
  let W = (
1575
1575
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1576
- /* @__PURE__ */ u.createElement(
1576
+ /* @__PURE__ */ c.createElement(
1577
1577
  "a",
1578
1578
  {
1579
1579
  ...p,
1580
1580
  ...T,
1581
1581
  href: w || b,
1582
1582
  onClick: v || o ? r : I,
1583
- ref: dr(g, O),
1584
- target: c,
1583
+ ref: fr(g, O),
1584
+ target: i,
1585
1585
  "data-discover": !E && t === "render" ? "true" : void 0
1586
1586
  }
1587
1587
  )
1588
1588
  );
1589
- return k && !E ? /* @__PURE__ */ u.createElement(u.Fragment, null, W, /* @__PURE__ */ u.createElement(sr, { page: b })) : W;
1589
+ return k && !E ? /* @__PURE__ */ c.createElement(c.Fragment, null, W, /* @__PURE__ */ c.createElement(ur, { page: b })) : W;
1590
1590
  }
1591
1591
  );
1592
1592
  ve.displayName = "Link";
1593
- var fr = u.forwardRef(
1593
+ var mr = c.forwardRef(
1594
1594
  function({
1595
1595
  "aria-current": r = "page",
1596
1596
  caseSensitive: t = !1,
@@ -1598,13 +1598,13 @@ var fr = u.forwardRef(
1598
1598
  end: a = !1,
1599
1599
  style: o,
1600
1600
  to: l,
1601
- viewTransition: i,
1602
- children: c,
1601
+ viewTransition: u,
1602
+ children: i,
1603
1603
  ...f
1604
1604
  }, m) {
1605
- let d = G(l, { relative: f.relative }), p = D(), g = u.useContext(re), { navigator: y, basename: E } = u.useContext($), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1605
+ let d = G(l, { relative: f.relative }), p = D(), g = c.useContext(re), { navigator: y, basename: E } = c.useContext($), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1606
1606
  // eslint-disable-next-line react-hooks/rules-of-hooks
1607
- vr(d) && i === !0, v = y.encodeLocation ? y.encodeLocation(d).pathname : d.pathname, b = p.pathname, k = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1607
+ wr(d) && u === !0, v = y.encodeLocation ? y.encodeLocation(d).pathname : d.pathname, b = p.pathname, k = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1608
1608
  t || (b = b.toLowerCase(), k = k ? k.toLowerCase() : null, v = v.toLowerCase()), k && E && (k = F(k, E) || k);
1609
1609
  const O = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
1610
1610
  let T = b === v || !a && b.startsWith(v) && b.charAt(O) === "/", M = k != null && (k === v || !a && k.startsWith(v) && k.charAt(v.length) === "/"), I = {
@@ -1619,7 +1619,7 @@ var fr = u.forwardRef(
1619
1619
  w ? "transitioning" : null
1620
1620
  ].filter(Boolean).join(" ");
1621
1621
  let U = typeof o == "function" ? o(I) : o;
1622
- return /* @__PURE__ */ u.createElement(
1622
+ return /* @__PURE__ */ c.createElement(
1623
1623
  ve,
1624
1624
  {
1625
1625
  ...f,
@@ -1628,14 +1628,14 @@ var fr = u.forwardRef(
1628
1628
  ref: m,
1629
1629
  style: U,
1630
1630
  to: l,
1631
- viewTransition: i
1631
+ viewTransition: u
1632
1632
  },
1633
- typeof c == "function" ? c(I) : c
1633
+ typeof i == "function" ? i(I) : i
1634
1634
  );
1635
1635
  }
1636
1636
  );
1637
- fr.displayName = "NavLink";
1638
- var mr = u.forwardRef(
1637
+ mr.displayName = "NavLink";
1638
+ var hr = c.forwardRef(
1639
1639
  ({
1640
1640
  discover: e = "render",
1641
1641
  fetcherKey: r,
@@ -1644,15 +1644,15 @@ var mr = u.forwardRef(
1644
1644
  replace: a,
1645
1645
  state: o,
1646
1646
  method: l = Q,
1647
- action: i,
1648
- onSubmit: c,
1647
+ action: u,
1648
+ onSubmit: i,
1649
1649
  relative: f,
1650
1650
  preventScrollReset: m,
1651
1651
  viewTransition: d,
1652
1652
  ...p
1653
1653
  }, g) => {
1654
- let y = xr(), E = yr(i, { relative: f }), w = l.toLowerCase() === "get" ? "get" : "post", v = typeof i == "string" && Je.test(i), b = (k) => {
1655
- if (c && c(k), k.defaultPrevented) return;
1654
+ let y = yr(), E = vr(u, { relative: f }), w = l.toLowerCase() === "get" ? "get" : "post", v = typeof u == "string" && Ge.test(u), b = (k) => {
1655
+ if (i && i(k), k.defaultPrevented) return;
1656
1656
  k.preventDefault();
1657
1657
  let O = k.nativeEvent.submitter, T = O?.getAttribute("formmethod") || l;
1658
1658
  y(O || k.currentTarget, {
@@ -1666,28 +1666,28 @@ var mr = u.forwardRef(
1666
1666
  viewTransition: d
1667
1667
  });
1668
1668
  };
1669
- return /* @__PURE__ */ u.createElement(
1669
+ return /* @__PURE__ */ c.createElement(
1670
1670
  "form",
1671
1671
  {
1672
1672
  ref: g,
1673
1673
  method: w,
1674
1674
  action: E,
1675
- onSubmit: n ? c : b,
1675
+ onSubmit: n ? i : b,
1676
1676
  ...p,
1677
1677
  "data-discover": !v && e === "render" ? "true" : void 0
1678
1678
  }
1679
1679
  );
1680
1680
  }
1681
1681
  );
1682
- mr.displayName = "Form";
1683
- function hr(e) {
1682
+ hr.displayName = "Form";
1683
+ function pr(e) {
1684
1684
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1685
1685
  }
1686
- function Ge(e) {
1687
- let r = u.useContext(H);
1688
- return P(r, hr(e)), r;
1686
+ function qe(e) {
1687
+ let r = c.useContext(H);
1688
+ return P(r, pr(e)), r;
1689
1689
  }
1690
- function pr(e, {
1690
+ function gr(e, {
1691
1691
  target: r,
1692
1692
  replace: t,
1693
1693
  state: n,
@@ -1695,13 +1695,13 @@ function pr(e, {
1695
1695
  relative: o,
1696
1696
  viewTransition: l
1697
1697
  } = {}) {
1698
- let i = jt(), c = D(), f = G(e, { relative: o });
1699
- return u.useCallback(
1698
+ let u = _t(), i = D(), f = G(e, { relative: o });
1699
+ return c.useCallback(
1700
1700
  (m) => {
1701
- if (Gt(m, r)) {
1701
+ if (qt(m, r)) {
1702
1702
  m.preventDefault();
1703
- let d = t !== void 0 ? t : de(c) === de(f);
1704
- i(e, {
1703
+ let d = t !== void 0 ? t : de(i) === de(f);
1704
+ u(e, {
1705
1705
  replace: d,
1706
1706
  state: n,
1707
1707
  preventScrollReset: a,
@@ -1711,8 +1711,8 @@ function pr(e, {
1711
1711
  }
1712
1712
  },
1713
1713
  [
1714
- c,
1715
1714
  i,
1715
+ u,
1716
1716
  f,
1717
1717
  t,
1718
1718
  n,
@@ -1724,35 +1724,35 @@ function pr(e, {
1724
1724
  ]
1725
1725
  );
1726
1726
  }
1727
- var gr = 0, br = () => `__${String(++gr)}__`;
1728
- function xr() {
1729
- let { router: e } = Ge(
1727
+ var br = 0, xr = () => `__${String(++br)}__`;
1728
+ function yr() {
1729
+ let { router: e } = qe(
1730
1730
  "useSubmit"
1731
1731
  /* UseSubmit */
1732
- ), { basename: r } = u.useContext($), t = Mt();
1733
- return u.useCallback(
1732
+ ), { basename: r } = c.useContext($), t = Wt();
1733
+ return c.useCallback(
1734
1734
  async (n, a = {}) => {
1735
- let { action: o, method: l, encType: i, formData: c, body: f } = Kt(
1735
+ let { action: o, method: l, encType: u, formData: i, body: f } = Zt(
1736
1736
  n,
1737
1737
  r
1738
1738
  );
1739
1739
  if (a.navigate === !1) {
1740
- let m = a.fetcherKey || br();
1740
+ let m = a.fetcherKey || xr();
1741
1741
  await e.fetch(m, t, a.action || o, {
1742
1742
  preventScrollReset: a.preventScrollReset,
1743
- formData: c,
1743
+ formData: i,
1744
1744
  body: f,
1745
1745
  formMethod: a.method || l,
1746
- formEncType: a.encType || i,
1746
+ formEncType: a.encType || u,
1747
1747
  flushSync: a.flushSync
1748
1748
  });
1749
1749
  } else
1750
1750
  await e.navigate(a.action || o, {
1751
1751
  preventScrollReset: a.preventScrollReset,
1752
- formData: c,
1752
+ formData: i,
1753
1753
  body: f,
1754
1754
  formMethod: a.method || l,
1755
- formEncType: a.encType || i,
1755
+ formEncType: a.encType || u,
1756
1756
  replace: a.replace,
1757
1757
  state: a.state,
1758
1758
  fromRouteId: t,
@@ -1763,28 +1763,28 @@ function xr() {
1763
1763
  [e, r, t]
1764
1764
  );
1765
1765
  }
1766
- function yr(e, { relative: r } = {}) {
1767
- let { basename: t } = u.useContext($), n = u.useContext(A);
1766
+ function vr(e, { relative: r } = {}) {
1767
+ let { basename: t } = c.useContext($), n = c.useContext(A);
1768
1768
  P(n, "useFormAction must be used inside a RouteContext");
1769
1769
  let [a] = n.matches.slice(-1), o = { ...G(e || ".", { relative: r }) }, l = D();
1770
1770
  if (e == null) {
1771
1771
  o.search = l.search;
1772
- let i = new URLSearchParams(o.search), c = i.getAll("index");
1773
- if (c.some((m) => m === "")) {
1774
- i.delete("index"), c.filter((d) => d).forEach((d) => i.append("index", d));
1775
- let m = i.toString();
1772
+ let u = new URLSearchParams(o.search), i = u.getAll("index");
1773
+ if (i.some((m) => m === "")) {
1774
+ u.delete("index"), i.filter((d) => d).forEach((d) => u.append("index", d));
1775
+ let m = u.toString();
1776
1776
  o.search = m ? `?${m}` : "";
1777
1777
  }
1778
1778
  }
1779
1779
  return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (o.pathname = o.pathname === "/" ? t : L([t, o.pathname])), de(o);
1780
1780
  }
1781
- function vr(e, { relative: r } = {}) {
1782
- let t = u.useContext(Me);
1781
+ function wr(e, { relative: r } = {}) {
1782
+ let t = c.useContext(We);
1783
1783
  P(
1784
1784
  t != null,
1785
1785
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1786
1786
  );
1787
- let { basename: n } = Ge(
1787
+ let { basename: n } = qe(
1788
1788
  "useViewTransitionState"
1789
1789
  /* useViewTransitionState */
1790
1790
  ), a = G(e, { relative: r });
@@ -1793,11 +1793,11 @@ function vr(e, { relative: r } = {}) {
1793
1793
  let o = F(t.currentLocation.pathname, n) || t.currentLocation.pathname, l = F(t.nextLocation.pathname, n) || t.nextLocation.pathname;
1794
1794
  return te(a.pathname, l) != null || te(a.pathname, o) != null;
1795
1795
  }
1796
- const wr = {
1796
+ const kr = {
1797
1797
  primary: "text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",
1798
1798
  secondary: "text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",
1799
1799
  subtle: "text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"
1800
- }, qe = ({
1800
+ }, Xe = ({
1801
1801
  to: e,
1802
1802
  children: r,
1803
1803
  className: t,
@@ -1806,11 +1806,11 @@ const wr = {
1806
1806
  ve,
1807
1807
  {
1808
1808
  to: e,
1809
- className: R(wr[n], t),
1809
+ className: R(kr[n], t),
1810
1810
  "aria-label": typeof r == "string" ? `Navigate to ${r}` : void 0,
1811
1811
  children: r
1812
1812
  }
1813
- ), kr = {
1813
+ ), Er = {
1814
1814
  // Getting Started cluster
1815
1815
  gettingStarted: {
1816
1816
  documentation: "/document#getting-started",
@@ -1838,12 +1838,12 @@ const wr = {
1838
1838
  nameService: "/document#name-service-subscription",
1839
1839
  troubleshooting: "/document#troubleshooting"
1840
1840
  }
1841
- }, Tr = ({
1841
+ }, Lr = ({
1842
1842
  cluster: e,
1843
1843
  context: r = "",
1844
1844
  className: t
1845
1845
  }) => {
1846
- const n = kr[e], a = {
1846
+ const n = Er[e], a = {
1847
1847
  gettingStarted: {
1848
1848
  documentation: "Learn how it works",
1849
1849
  connect: "Get started now",
@@ -1868,11 +1868,11 @@ const wr = {
1868
1868
  troubleshooting: "Troubleshooting guide"
1869
1869
  }
1870
1870
  };
1871
- return /* @__PURE__ */ h.jsx("span", { className: R("text-sm text-gray-600 dark:text-gray-400", t), children: Object.entries(n).map(([o, l], i) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
1872
- /* @__PURE__ */ h.jsx(qe, { to: l, variant: "primary", children: a[e][o] }),
1873
- i < Object.keys(n).length - 1 && " • "
1871
+ return /* @__PURE__ */ h.jsx("span", { className: R("text-sm text-gray-600 dark:text-gray-400", t), children: Object.entries(n).map(([o, l], u) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
1872
+ /* @__PURE__ */ h.jsx(Xe, { to: l, variant: "primary", children: a[e][o] }),
1873
+ u < Object.keys(n).length - 1 && " • "
1874
1874
  ] }, o)) });
1875
- }, Lr = ({
1875
+ }, $r = ({
1876
1876
  title: e = "Related:",
1877
1877
  links: r,
1878
1878
  className: t
@@ -1886,12 +1886,12 @@ const wr = {
1886
1886
  children: [
1887
1887
  /* @__PURE__ */ h.jsx("span", { className: "text-sm font-medium text-blue-900 dark:text-blue-200 mr-2", children: e }),
1888
1888
  r.map((n, a) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
1889
- /* @__PURE__ */ h.jsx(qe, { to: n.url, variant: n.variant || "primary", children: n.text }),
1889
+ /* @__PURE__ */ h.jsx(Xe, { to: n.url, variant: n.variant || "primary", children: n.text }),
1890
1890
  a < r.length - 1 && " • "
1891
1891
  ] }, a))
1892
1892
  ]
1893
1893
  }
1894
- ), $r = (e, r) => ({
1894
+ ), Ar = (e, r) => ({
1895
1895
  homepage: [
1896
1896
  { text: "How it works", url: "/document#getting-started" },
1897
1897
  { text: "User benefits", url: "/web3-users" },
@@ -1912,7 +1912,7 @@ const wr = {
1912
1912
  { text: "Smart contracts", url: "/document#smart-contracts" },
1913
1913
  { text: "User benefits", url: "/web3-users" }
1914
1914
  ]
1915
- })[e] || [], Ar = ({
1915
+ })[e] || [], Or = ({
1916
1916
  className: e,
1917
1917
  children: r,
1918
1918
  disabled: t = !1,
@@ -1934,7 +1934,7 @@ const wr = {
1934
1934
  "aria-label": "UlandingUbuilder",
1935
1935
  children: r || "UlandingUbuilder Component"
1936
1936
  }
1937
- ), Or = ({
1937
+ ), Ur = ({
1938
1938
  className: e,
1939
1939
  children: r,
1940
1940
  disabled: t = !1,
@@ -1956,7 +1956,7 @@ const wr = {
1956
1956
  "aria-label": "UnpsUsurvey",
1957
1957
  children: r || "UnpsUsurvey Component"
1958
1958
  }
1959
- ), Ur = ({
1959
+ ), Fr = ({
1960
1960
  className: e,
1961
1961
  children: r,
1962
1962
  disabled: t
@@ -1975,7 +1975,7 @@ const wr = {
1975
1975
  "aria-label": "SalesReport",
1976
1976
  children: r || "SalesReport Component"
1977
1977
  }
1978
- ), Fr = ({
1978
+ ), Ir = ({
1979
1979
  className: e,
1980
1980
  children: r,
1981
1981
  disabled: t
@@ -1994,7 +1994,7 @@ const wr = {
1994
1994
  "aria-label": "SubscriberList",
1995
1995
  children: r || "SubscriberList Component"
1996
1996
  }
1997
- ), Ir = ({
1997
+ ), Dr = ({
1998
1998
  className: e,
1999
1999
  children: r,
2000
2000
  disabled: t = !1,
@@ -2016,43 +2016,43 @@ const wr = {
2016
2016
  "aria-label": "UtestimonialUslider",
2017
2017
  children: r || "UtestimonialUslider Component"
2018
2018
  }
2019
- ), Dr = ({
2019
+ ), Mr = ({
2020
2020
  title: e,
2021
2021
  description: r,
2022
2022
  useCases: t,
2023
2023
  columns: n = 3,
2024
2024
  className: a
2025
2025
  }) => {
2026
- const o = {
2026
+ const { containerClass: o } = Ae(), l = {
2027
2027
  blue: "text-blue-600 dark:text-blue-400",
2028
2028
  green: "text-green-600 dark:text-green-400",
2029
2029
  purple: "text-purple-600 dark:text-purple-400",
2030
2030
  orange: "text-orange-600 dark:text-orange-400",
2031
2031
  pink: "text-pink-600 dark:text-pink-400",
2032
2032
  gray: "text-gray-600 dark:text-gray-400"
2033
- }, l = {
2033
+ }, u = {
2034
2034
  2: "grid-cols-1 md:grid-cols-2",
2035
2035
  3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
2036
2036
  4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
2037
2037
  };
2038
- return /* @__PURE__ */ h.jsx("section", { className: R(Ze.section.gradient, a), children: /* @__PURE__ */ h.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [
2038
+ return /* @__PURE__ */ h.jsx("section", { className: R(Qe.section.gradient, a), children: /* @__PURE__ */ h.jsxs("div", { className: o, children: [
2039
2039
  (e || r) && /* @__PURE__ */ h.jsxs("div", { className: "text-center mb-12", children: [
2040
2040
  e && /* @__PURE__ */ h.jsx("h2", { className: "text-3xl font-bold text-gray-900 dark:text-white mb-4", children: e }),
2041
2041
  r && /* @__PURE__ */ h.jsx("p", { className: "text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto", children: r })
2042
2042
  ] }),
2043
- /* @__PURE__ */ h.jsx("div", { className: R("grid gap-8", l[n]), children: t.map((i, c) => {
2044
- const f = i.color ? o[i.color] : o.blue;
2043
+ /* @__PURE__ */ h.jsx("div", { className: R("grid gap-8", u[n]), children: t.map((i, f) => {
2044
+ const m = i.color ? l[i.color] : l.blue;
2045
2045
  return /* @__PURE__ */ h.jsxs(
2046
2046
  "div",
2047
2047
  {
2048
2048
  className: "bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",
2049
2049
  children: [
2050
- /* @__PURE__ */ h.jsx("div", { className: R("flex-shrink-0 mb-4", f), children: i.icon }),
2050
+ /* @__PURE__ */ h.jsx("div", { className: R("flex-shrink-0 mb-4", m), children: i.icon }),
2051
2051
  /* @__PURE__ */ h.jsx("h3", { className: "text-xl font-semibold text-gray-900 dark:text-white mb-3", children: i.title }),
2052
2052
  /* @__PURE__ */ h.jsx("p", { className: "text-gray-600 dark:text-gray-300 mb-4", children: i.description }),
2053
2053
  i.examples && i.examples.length > 0 && /* @__PURE__ */ h.jsxs("div", { children: [
2054
2054
  /* @__PURE__ */ h.jsx("h4", { className: "text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2", children: "Examples:" }),
2055
- /* @__PURE__ */ h.jsx("ul", { className: "space-y-1", children: i.examples.map((m, d) => /* @__PURE__ */ h.jsxs("li", { className: "flex items-start", children: [
2055
+ /* @__PURE__ */ h.jsx("ul", { className: "space-y-1", children: i.examples.map((d, p) => /* @__PURE__ */ h.jsxs("li", { className: "flex items-start", children: [
2056
2056
  /* @__PURE__ */ h.jsx(
2057
2057
  "div",
2058
2058
  {
@@ -2062,16 +2062,16 @@ const wr = {
2062
2062
  )
2063
2063
  }
2064
2064
  ),
2065
- /* @__PURE__ */ h.jsx("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: m })
2066
- ] }, d)) })
2065
+ /* @__PURE__ */ h.jsx("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: d })
2066
+ ] }, p)) })
2067
2067
  ] })
2068
2068
  ]
2069
2069
  },
2070
- c
2070
+ f
2071
2071
  );
2072
2072
  }) })
2073
2073
  ] }) });
2074
- }, Mr = ({
2074
+ }, Wr = ({
2075
2075
  className: e,
2076
2076
  children: r,
2077
2077
  disabled: t = !1,
@@ -2095,20 +2095,20 @@ const wr = {
2095
2095
  }
2096
2096
  );
2097
2097
  export {
2098
- Sr as CrmDashboard,
2099
- Pr as FeatureListItem,
2100
- _r as HeroBannerWithBadge,
2101
- qe as InternalLink,
2102
- Lr as RelatedLinks,
2103
- Ur as SalesReport,
2104
- Fr as SubscriberList,
2105
- Tr as TopicClusterLinks,
2106
- Nr as UctaUbanner,
2107
- jr as UfeatureUspotlight,
2108
- Ar as UlandingUbuilder,
2109
- Or as UnpsUsurvey,
2110
- Dr as UseCaseGrid,
2111
- Ir as UtestimonialUslider,
2112
- Mr as UwelcomeUscreen,
2113
- $r as generateContextualLinks
2098
+ Nr as CrmDashboard,
2099
+ jr as FeatureListItem,
2100
+ Tr as HeroBannerWithBadge,
2101
+ Xe as InternalLink,
2102
+ $r as RelatedLinks,
2103
+ Fr as SalesReport,
2104
+ Ir as SubscriberList,
2105
+ Lr as TopicClusterLinks,
2106
+ Pr as UctaUbanner,
2107
+ _r as UfeatureUspotlight,
2108
+ Or as UlandingUbuilder,
2109
+ Ur as UnpsUsurvey,
2110
+ Mr as UseCaseGrid,
2111
+ Dr as UtestimonialUslider,
2112
+ Wr as UwelcomeUscreen,
2113
+ Ar as generateContextualLinks
2114
2114
  };