@sudobility/marketing-components 1.1.0 → 1.2.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,12 +1,12 @@
1
- import * as c from "react";
2
- import me from "react";
3
- import { cn as E } from "@sudobility/components";
4
- import { textVariants as z, ui as nt } from "@sudobility/design";
5
- var X = { exports: {} }, Y = {};
6
- var Se;
7
- function at() {
8
- if (Se) return Y;
9
- Se = 1;
1
+ import * as u from "react";
2
+ import fe from "react";
3
+ import { cn as R } from "@sudobility/components";
4
+ import { textVariants as Y, ui as Ze } from "@sudobility/design";
5
+ var K = { exports: {} }, V = {};
6
+ var Ne;
7
+ function Qe() {
8
+ if (Ne) return V;
9
+ Ne = 1;
10
10
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
11
11
  function t(n, a, o) {
12
12
  var l = null;
@@ -23,253 +23,253 @@ function at() {
23
23
  props: o
24
24
  };
25
25
  }
26
- return Y.Fragment = r, Y.jsx = t, Y.jsxs = t, Y;
26
+ return V.Fragment = r, V.jsx = t, V.jsxs = t, V;
27
27
  }
28
- var H = {};
28
+ var B = {};
29
29
  var Pe;
30
- function ot() {
30
+ function et() {
31
31
  return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && (function() {
32
- function e(u) {
33
- if (u == null) return null;
34
- if (typeof u == "function")
35
- return u.$$typeof === q ? null : u.displayName || u.name || null;
36
- if (typeof u == "string") return u;
37
- switch (u) {
38
- case v:
32
+ function e(s) {
33
+ if (s == null) return null;
34
+ if (typeof s == "function")
35
+ return s.$$typeof === q ? null : s.displayName || s.name || null;
36
+ if (typeof s == "string") return s;
37
+ switch (s) {
38
+ case w:
39
39
  return "Fragment";
40
- case g:
40
+ case b:
41
41
  return "Profiler";
42
- case k:
42
+ case v:
43
43
  return "StrictMode";
44
44
  case M:
45
45
  return "Suspense";
46
- case D:
46
+ case I:
47
47
  return "SuspenseList";
48
48
  case O:
49
49
  return "Activity";
50
50
  }
51
- if (typeof u == "object")
52
- switch (typeof u.tag == "number" && console.error(
51
+ if (typeof s == "object")
52
+ switch (typeof s.tag == "number" && console.error(
53
53
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
54
- ), u.$$typeof) {
55
- case C:
54
+ ), s.$$typeof) {
55
+ case E:
56
56
  return "Portal";
57
- case _:
58
- return u.displayName || "Context";
59
- case w:
60
- return (u._context.displayName || "Context") + ".Consumer";
61
- case L:
62
- var y = u.render;
63
- return u = u.displayName, u || (u = y.displayName || y.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
57
+ case A:
58
+ return s.displayName || "Context";
59
+ case k:
60
+ return (s._context.displayName || "Context") + ".Consumer";
61
+ case T:
62
+ var x = s.render;
63
+ return s = s.displayName, s || (s = x.displayName || x.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
64
64
  case W:
65
- return y = u.displayName || null, y !== null ? y : e(u.type) || "Memo";
66
- case P:
67
- y = u._payload, u = u._init;
65
+ return x = s.displayName || null, x !== null ? x : e(s.type) || "Memo";
66
+ case j:
67
+ x = s._payload, s = s._init;
68
68
  try {
69
- return e(u(y));
69
+ return e(s(x));
70
70
  } catch {
71
71
  }
72
72
  }
73
73
  return null;
74
74
  }
75
- function r(u) {
76
- return "" + u;
75
+ function r(s) {
76
+ return "" + s;
77
77
  }
78
- function t(u) {
78
+ function t(s) {
79
79
  try {
80
- r(u);
81
- var y = !1;
80
+ r(s);
81
+ var x = !1;
82
82
  } catch {
83
- y = !0;
83
+ x = !0;
84
84
  }
85
- if (y) {
86
- y = console;
87
- var R = y.error, N = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
88
- return R.call(
89
- y,
85
+ if (x) {
86
+ x = console;
87
+ var C = x.error, S = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
88
+ return C.call(
89
+ x,
90
90
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
91
- N
92
- ), r(u);
91
+ S
92
+ ), r(s);
93
93
  }
94
94
  }
95
- function n(u) {
96
- if (u === v) return "<>";
97
- if (typeof u == "object" && u !== null && u.$$typeof === P)
95
+ function n(s) {
96
+ if (s === w) return "<>";
97
+ if (typeof s == "object" && s !== null && s.$$typeof === j)
98
98
  return "<...>";
99
99
  try {
100
- var y = e(u);
101
- return y ? "<" + y + ">" : "<...>";
100
+ var x = e(s);
101
+ return x ? "<" + x + ">" : "<...>";
102
102
  } catch {
103
103
  return "<...>";
104
104
  }
105
105
  }
106
106
  function a() {
107
- var u = oe.A;
108
- return u === null ? null : u.getOwner();
107
+ var s = oe.A;
108
+ return s === null ? null : s.getOwner();
109
109
  }
110
110
  function o() {
111
111
  return Error("react-stack-top-frame");
112
112
  }
113
- function l(u) {
114
- if (we.call(u, "key")) {
115
- var y = Object.getOwnPropertyDescriptor(u, "key").get;
116
- if (y && y.isReactWarning) return !1;
113
+ function l(s) {
114
+ if (we.call(s, "key")) {
115
+ var x = Object.getOwnPropertyDescriptor(s, "key").get;
116
+ if (x && x.isReactWarning) return !1;
117
117
  }
118
- return u.key !== void 0;
118
+ return s.key !== void 0;
119
119
  }
120
- function i(u, y) {
121
- function R() {
122
- Ee || (Ee = !0, console.error(
120
+ function i(s, x) {
121
+ function C() {
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)",
124
- y
124
+ x
125
125
  ));
126
126
  }
127
- R.isReactWarning = !0, Object.defineProperty(u, "key", {
128
- get: R,
127
+ C.isReactWarning = !0, Object.defineProperty(s, "key", {
128
+ get: C,
129
129
  configurable: !0
130
130
  });
131
131
  }
132
- function s() {
133
- var u = e(this.type);
134
- return Ce[u] || (Ce[u] = !0, console.error(
132
+ function c() {
133
+ var s = e(this.type);
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."
136
- )), u = this.props.ref, u !== void 0 ? u : null;
136
+ )), s = this.props.ref, s !== void 0 ? s : null;
137
137
  }
138
- function d(u, y, R, N, K, ie) {
139
- var j = R.ref;
140
- return u = {
141
- $$typeof: x,
142
- type: u,
143
- key: y,
144
- props: R,
145
- _owner: N
146
- }, (j !== void 0 ? j : null) !== null ? Object.defineProperty(u, "ref", {
138
+ function f(s, x, C, S, X, ie) {
139
+ var N = C.ref;
140
+ return s = {
141
+ $$typeof: y,
142
+ type: s,
143
+ key: x,
144
+ props: C,
145
+ _owner: S
146
+ }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(s, "ref", {
147
147
  enumerable: !1,
148
- get: s
149
- }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
148
+ get: c
149
+ }) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
150
150
  configurable: !1,
151
151
  enumerable: !1,
152
152
  writable: !0,
153
153
  value: 0
154
- }), Object.defineProperty(u, "_debugInfo", {
154
+ }), Object.defineProperty(s, "_debugInfo", {
155
155
  configurable: !1,
156
156
  enumerable: !1,
157
157
  writable: !0,
158
158
  value: null
159
- }), Object.defineProperty(u, "_debugStack", {
159
+ }), Object.defineProperty(s, "_debugStack", {
160
160
  configurable: !1,
161
161
  enumerable: !1,
162
162
  writable: !0,
163
- value: K
164
- }), Object.defineProperty(u, "_debugTask", {
163
+ value: X
164
+ }), Object.defineProperty(s, "_debugTask", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
167
167
  writable: !0,
168
168
  value: ie
169
- }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
169
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
170
170
  }
171
- function f(u, y, R, N, K, ie) {
172
- var j = y.children;
173
- if (j !== void 0)
174
- if (N)
175
- if (tt(j)) {
176
- for (N = 0; N < j.length; N++)
177
- m(j[N]);
178
- Object.freeze && Object.freeze(j);
171
+ function m(s, x, C, S, X, ie) {
172
+ var N = x.children;
173
+ if (N !== void 0)
174
+ if (S)
175
+ if (Xe(N)) {
176
+ for (S = 0; S < N.length; S++)
177
+ d(N[S]);
178
+ Object.freeze && Object.freeze(N);
179
179
  } else
180
180
  console.error(
181
181
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
182
182
  );
183
- else m(j);
184
- if (we.call(y, "key")) {
185
- j = e(u);
186
- var V = Object.keys(y).filter(function(rt) {
187
- return rt !== "key";
183
+ else d(N);
184
+ if (we.call(x, "key")) {
185
+ N = e(s);
186
+ var z = Object.keys(x).filter(function(Ke) {
187
+ return Ke !== "key";
188
188
  });
189
- N = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", je[j + N] || (V = 0 < V.length ? "{" + V.join(": ..., ") + ": ...}" : "{}", console.error(
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:
191
191
  let props = %s;
192
192
  <%s {...props} />
193
193
  React keys must be passed directly to JSX without using spread:
194
194
  let props = %s;
195
195
  <%s key={someKey} {...props} />`,
196
+ S,
196
197
  N,
197
- j,
198
- V,
199
- j
200
- ), je[j + N] = !0);
198
+ z,
199
+ N
200
+ ), Se[N + S] = !0);
201
201
  }
202
- if (j = null, R !== void 0 && (t(R), j = "" + R), l(y) && (t(y.key), j = "" + y.key), "key" in y) {
203
- R = {};
204
- for (var se in y)
205
- se !== "key" && (R[se] = y[se]);
206
- } else R = y;
207
- return j && i(
208
- R,
209
- typeof u == "function" ? u.displayName || u.name || "Unknown" : u
210
- ), d(
211
- u,
212
- j,
213
- R,
202
+ if (N = null, C !== void 0 && (t(C), N = "" + C), l(x) && (t(x.key), N = "" + x.key), "key" in x) {
203
+ C = {};
204
+ for (var se in x)
205
+ se !== "key" && (C[se] = x[se]);
206
+ } else C = x;
207
+ return N && i(
208
+ C,
209
+ typeof s == "function" ? s.displayName || s.name || "Unknown" : s
210
+ ), f(
211
+ s,
212
+ N,
213
+ C,
214
214
  a(),
215
- K,
215
+ X,
216
216
  ie
217
217
  );
218
218
  }
219
- function m(u) {
220
- p(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === P && (u._payload.status === "fulfilled" ? p(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
219
+ function d(s) {
220
+ p(s) ? s._store && (s._store.validated = 1) : typeof s == "object" && s !== null && s.$$typeof === j && (s._payload.status === "fulfilled" ? p(s._payload.value) && s._payload.value._store && (s._payload.value._store.validated = 1) : s._store && (s._store.validated = 1));
221
221
  }
222
- function p(u) {
223
- return typeof u == "object" && u !== null && u.$$typeof === x;
222
+ function p(s) {
223
+ return typeof s == "object" && s !== null && s.$$typeof === y;
224
224
  }
225
- var b = me, x = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), oe = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, we = Object.prototype.hasOwnProperty, tt = 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"), A = 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"), O = 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() {
226
226
  return null;
227
227
  };
228
- b = {
229
- react_stack_bottom_frame: function(u) {
230
- return u();
228
+ g = {
229
+ react_stack_bottom_frame: function(s) {
230
+ return s();
231
231
  }
232
232
  };
233
- var Ee, Ce = {}, Re = b.react_stack_bottom_frame.bind(
234
- b,
233
+ var ke, Ee = {}, Re = g.react_stack_bottom_frame.bind(
234
+ g,
235
235
  o
236
- )(), Ne = le(n(o)), je = {};
237
- H.Fragment = v, H.jsx = function(u, y, R) {
238
- var N = 1e4 > oe.recentlyCreatedOwnerStacks++;
239
- return f(
240
- u,
241
- y,
242
- R,
236
+ )(), Ce = le(n(o)), Se = {};
237
+ B.Fragment = w, B.jsx = function(s, x, C) {
238
+ var S = 1e4 > oe.recentlyCreatedOwnerStacks++;
239
+ return m(
240
+ s,
241
+ x,
242
+ C,
243
243
  !1,
244
- N ? Error("react-stack-top-frame") : Re,
245
- N ? le(n(u)) : Ne
244
+ S ? Error("react-stack-top-frame") : Re,
245
+ S ? le(n(s)) : Ce
246
246
  );
247
- }, H.jsxs = function(u, y, R) {
248
- var N = 1e4 > oe.recentlyCreatedOwnerStacks++;
249
- return f(
250
- u,
251
- y,
252
- R,
247
+ }, B.jsxs = function(s, x, C) {
248
+ var S = 1e4 > oe.recentlyCreatedOwnerStacks++;
249
+ return m(
250
+ s,
251
+ x,
252
+ C,
253
253
  !0,
254
- N ? Error("react-stack-top-frame") : Re,
255
- N ? le(n(u)) : Ne
254
+ S ? Error("react-stack-top-frame") : Re,
255
+ S ? le(n(s)) : Ce
256
256
  );
257
257
  };
258
- })()), H;
258
+ })()), B;
259
259
  }
260
- var _e;
261
- function lt() {
262
- return _e || (_e = 1, process.env.NODE_ENV === "production" ? X.exports = at() : X.exports = ot()), X.exports;
260
+ var je;
261
+ function tt() {
262
+ return je || (je = 1, process.env.NODE_ENV === "production" ? K.exports = Qe() : K.exports = et()), K.exports;
263
263
  }
264
- var h = lt();
265
- const Or = ({
264
+ var h = tt();
265
+ const Sr = ({
266
266
  className: e,
267
267
  children: r,
268
268
  disabled: t
269
269
  }) => /* @__PURE__ */ h.jsx(
270
270
  "div",
271
271
  {
272
- className: E(
272
+ className: R(
273
273
  "p-4 rounded-lg border transition-colors",
274
274
  "bg-white dark:bg-gray-900",
275
275
  "border-gray-200 dark:border-gray-700",
@@ -281,7 +281,7 @@ const Or = ({
281
281
  "aria-label": "CrmDashboard",
282
282
  children: r || "CrmDashboard Component"
283
283
  }
284
- ), Fr = ({
284
+ ), Nr = ({
285
285
  className: e,
286
286
  children: r,
287
287
  disabled: t = !1,
@@ -289,7 +289,7 @@ const Or = ({
289
289
  }) => /* @__PURE__ */ h.jsx(
290
290
  "div",
291
291
  {
292
- className: E(
292
+ className: R(
293
293
  "p-4 rounded-lg border transition-colors",
294
294
  "bg-white dark:bg-gray-900",
295
295
  "border-gray-200 dark:border-gray-700",
@@ -304,314 +304,12 @@ const Or = ({
304
304
  children: r || "UctaUbanner Component"
305
305
  }
306
306
  );
307
- function De(e) {
308
- var r, t, n = "";
309
- if (typeof e == "string" || typeof e == "number") n += e;
310
- else if (typeof e == "object") if (Array.isArray(e)) {
311
- var a = e.length;
312
- for (r = 0; r < a; r++) e[r] && (t = De(e[r])) && (n && (n += " "), n += t);
313
- } else for (t in e) e[t] && (n && (n += " "), n += t);
314
- return n;
315
- }
316
- function it() {
317
- for (var e, r, t = 0, n = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = De(e)) && (n && (n += " "), n += r);
318
- return n;
319
- }
320
- const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Te = it, fe = (e, r) => (t) => {
321
- var n;
322
- if (r?.variants == null) return Te(e, t?.class, t?.className);
323
- const { variants: a, defaultVariants: o } = r, l = Object.keys(a).map((d) => {
324
- const f = t?.[d], m = o?.[d];
325
- if (f === null) return null;
326
- const p = Le(f) || Le(m);
327
- return a[d][p];
328
- }), i = t && Object.entries(t).reduce((d, f) => {
329
- let [m, p] = f;
330
- return p === void 0 || (d[m] = p), d;
331
- }, {}), s = r == null || (n = r.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((d, f) => {
332
- let { class: m, className: p, ...b } = f;
333
- return Object.entries(b).every((x) => {
334
- let [C, v] = x;
335
- return Array.isArray(v) ? v.includes({
336
- ...o,
337
- ...i
338
- }[C]) : {
339
- ...o,
340
- ...i
341
- }[C] === v;
342
- }) ? [
343
- ...d,
344
- m,
345
- p
346
- ] : d;
347
- }, []);
348
- return Te(e, l, s, t?.class, t?.className);
349
- }, st = fe("grid gap-8", {
350
- variants: {
351
- columns: {
352
- 1: "grid-cols-1",
353
- 2: "grid-cols-1 md:grid-cols-2",
354
- 3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
355
- 4: "grid-cols-1 md:grid-cols-2 lg:grid-cols-4"
356
- },
357
- spacing: {
358
- sm: "gap-4",
359
- md: "gap-8",
360
- lg: "gap-12"
361
- }
362
- },
363
- defaultVariants: {
364
- columns: 3,
365
- spacing: "md"
366
- }
367
- }), ut = fe("group transition-all duration-300", {
368
- variants: {
369
- variant: {
370
- default: "text-center",
371
- left: "text-left",
372
- hoverable: "text-center hover:transform hover:scale-105 cursor-pointer",
373
- card: "bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-lg hover:shadow-xl text-center",
374
- minimal: "text-center space-y-4"
375
- },
376
- animation: {
377
- none: "",
378
- hover: "hover:transform hover:scale-105",
379
- float: "hover:-translate-y-2"
380
- }
381
- },
382
- defaultVariants: {
383
- variant: "default",
384
- animation: "hover"
385
- }
386
- }), ct = fe(
387
- "flex items-center justify-center rounded-2xl mb-6 transition-all duration-300",
388
- {
389
- variants: {
390
- size: {
391
- sm: "w-16 h-16",
392
- md: "w-20 h-20",
393
- lg: "w-24 h-24"
394
- },
395
- style: {
396
- gradient: "bg-gradient-to-br from-blue-100 to-blue-200 dark:from-blue-900/30 dark:to-blue-800/30 group-hover:from-blue-200 group-hover:to-blue-300 dark:group-hover:from-blue-800/40 dark:group-hover:to-blue-700/40",
397
- solid: "bg-blue-100 dark:bg-blue-900/30 group-hover:bg-blue-200 dark:group-hover:bg-blue-800/40",
398
- outline: "border-2 border-blue-200 dark:border-blue-800 group-hover:border-blue-300 dark:group-hover:border-blue-700",
399
- colorful: "group-hover:scale-110"
400
- },
401
- position: {
402
- center: "mx-auto",
403
- left: "",
404
- right: "ml-auto"
405
- }
406
- },
407
- defaultVariants: {
408
- size: "md",
409
- style: "gradient",
410
- position: "center"
411
- }
412
- }
413
- ), dt = {
414
- success: "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",
415
- info: "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",
416
- warning: "bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",
417
- default: "bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
418
- }, Dr = ({
419
- className: e,
420
- features: r,
421
- columns: t = 3,
422
- spacing: n = "md",
423
- cardVariant: a = "default",
424
- cardAnimation: o = "hover",
425
- iconSize: l = "md",
426
- iconStyle: i = "gradient",
427
- iconPosition: s = "center",
428
- titleClass: d,
429
- descriptionClass: f,
430
- animate: m = !0,
431
- animationDelay: p = 0,
432
- staggerDelay: b = 100,
433
- onFeatureClick: x,
434
- defaultLinkText: C = "Learn more"
435
- }) => {
436
- const v = (g, w) => {
437
- if (i === "colorful" && g.gradient)
438
- return {
439
- background: `linear-gradient(135deg, ${g.gradient.from}, ${g.gradient.to})`
440
- };
441
- if (i === "colorful") {
442
- const _ = [
443
- { from: "#3B82F6", to: "#1D4ED8" },
444
- // blue
445
- { from: "#10B981", to: "#059669" },
446
- // emerald
447
- { from: "#8B5CF6", to: "#7C3AED" },
448
- // violet
449
- { from: "#F59E0B", to: "#D97706" },
450
- // amber
451
- { from: "#EF4444", to: "#DC2626" },
452
- // red
453
- { from: "#06B6D4", to: "#0891B2" }
454
- // cyan
455
- ], L = _[w % _.length];
456
- return {
457
- background: `linear-gradient(135deg, ${L.from}, ${L.to})`
458
- };
459
- }
460
- }, k = (g, w) => {
461
- const _ = /* @__PURE__ */ h.jsxs(
462
- "div",
463
- {
464
- className: E(
465
- ut({ variant: a, animation: o })
466
- ),
467
- onClick: () => x?.(g),
468
- role: x ? "button" : void 0,
469
- tabIndex: x ? 0 : void 0,
470
- children: [
471
- g.badge && /* @__PURE__ */ h.jsx("div", { className: "mb-4", children: /* @__PURE__ */ h.jsx(
472
- "span",
473
- {
474
- className: E(
475
- "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
476
- dt[g.badge.variant || "default"]
477
- ),
478
- children: g.badge.text
479
- }
480
- ) }),
481
- /* @__PURE__ */ h.jsx(
482
- "div",
483
- {
484
- className: E(
485
- ct({
486
- size: l,
487
- style: i,
488
- position: s
489
- })
490
- ),
491
- style: v(g, w),
492
- children: /* @__PURE__ */ h.jsx(
493
- "div",
494
- {
495
- className: E(
496
- "flex items-center justify-center",
497
- i === "colorful" ? "text-white" : "text-blue-600 dark:text-blue-400"
498
- ),
499
- children: g.icon
500
- }
501
- )
502
- }
503
- ),
504
- /* @__PURE__ */ h.jsx(
505
- "h3",
506
- {
507
- className: E(
508
- "text-xl font-bold text-gray-900 dark:text-white mb-4",
509
- d
510
- ),
511
- children: g.title
512
- }
513
- ),
514
- /* @__PURE__ */ h.jsx(
515
- "div",
516
- {
517
- className: E(
518
- "text-gray-600 dark:text-gray-300 leading-relaxed",
519
- f
520
- ),
521
- children: g.description
522
- }
523
- ),
524
- g.link && /* @__PURE__ */ h.jsx("div", { className: "mt-6", children: /* @__PURE__ */ h.jsxs(
525
- "a",
526
- {
527
- href: g.link.href,
528
- className: "inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors duration-200",
529
- children: [
530
- g.link.text || C,
531
- /* @__PURE__ */ h.jsx(
532
- "svg",
533
- {
534
- className: "w-4 h-4 ml-1",
535
- fill: "none",
536
- stroke: "currentColor",
537
- viewBox: "0 0 24 24",
538
- children: /* @__PURE__ */ h.jsx(
539
- "path",
540
- {
541
- strokeLinecap: "round",
542
- strokeLinejoin: "round",
543
- strokeWidth: 2,
544
- d: "M9 5l7 7-7 7"
545
- }
546
- )
547
- }
548
- )
549
- ]
550
- }
551
- ) })
552
- ]
553
- }
554
- );
555
- return /* @__PURE__ */ h.jsx("div", { children: _ }, g.id || w);
556
- };
557
- return /* @__PURE__ */ h.jsx("div", { className: E(st({ columns: t, spacing: n }), e), children: r.map(k) });
558
- }, Ue = (e, r, t, n) => ({
559
- icon: e,
560
- title: r,
561
- description: t,
562
- ...n
563
- }), Ir = (e) => [
564
- Ue(
565
- /* @__PURE__ */ h.jsx(
566
- "svg",
567
- {
568
- className: "w-8 h-8",
569
- fill: "none",
570
- stroke: "currentColor",
571
- viewBox: "0 0 24 24",
572
- children: /* @__PURE__ */ h.jsx(
573
- "path",
574
- {
575
- strokeLinecap: "round",
576
- strokeLinejoin: "round",
577
- strokeWidth: 2,
578
- d: "M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
579
- }
580
- )
581
- }
582
- ),
583
- e?.passwordlessTitle || "Passwordless Security",
584
- e?.passwordlessDescription || "Authenticate using your Web3 wallet - no passwords to remember or lose."
585
- ),
586
- Ue(
587
- /* @__PURE__ */ h.jsx(
588
- "svg",
589
- {
590
- className: "w-8 h-8",
591
- fill: "none",
592
- stroke: "currentColor",
593
- viewBox: "0 0 24 24",
594
- children: /* @__PURE__ */ h.jsx(
595
- "path",
596
- {
597
- strokeLinecap: "round",
598
- strokeLinejoin: "round",
599
- strokeWidth: 2,
600
- d: "M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.40A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"
601
- }
602
- )
603
- }
604
- ),
605
- e?.encryptionTitle || "End-to-End Encryption",
606
- e?.encryptionDescription || "Your emails are encrypted and only you can read them."
607
- )
608
- ];
609
- function mt({
307
+ function rt({
610
308
  title: e,
611
309
  titleId: r,
612
310
  ...t
613
311
  }, n) {
614
- return /* @__PURE__ */ c.createElement("svg", Object.assign({
312
+ return /* @__PURE__ */ u.createElement("svg", Object.assign({
615
313
  xmlns: "http://www.w3.org/2000/svg",
616
314
  fill: "none",
617
315
  viewBox: "0 0 24 24",
@@ -621,18 +319,18 @@ function mt({
621
319
  "data-slot": "icon",
622
320
  ref: n,
623
321
  "aria-labelledby": r
624
- }, t), e ? /* @__PURE__ */ c.createElement("title", {
322
+ }, t), e ? /* @__PURE__ */ u.createElement("title", {
625
323
  id: r
626
- }, e) : null, /* @__PURE__ */ c.createElement("path", {
324
+ }, e) : null, /* @__PURE__ */ u.createElement("path", {
627
325
  strokeLinecap: "round",
628
326
  strokeLinejoin: "round",
629
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"
630
328
  }));
631
329
  }
632
- const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
330
+ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
633
331
  title: e,
634
332
  description: r,
635
- icon: t = ft,
333
+ icon: t = nt,
636
334
  iconVariant: n = "success",
637
335
  size: a = "md",
638
336
  className: o
@@ -643,48 +341,48 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
643
341
  warning: "bg-yellow-400 text-yellow-900",
644
342
  info: "bg-cyan-400 text-cyan-900",
645
343
  gradient: "bg-gradient-to-br from-blue-400 to-purple-500 text-white"
646
- }, s = {
344
+ }, c = {
647
345
  sm: {
648
346
  container: "gap-2",
649
347
  icon: "p-1.5",
650
348
  iconSize: "h-4 w-4",
651
- title: z.body.md(),
652
- description: z.body.sm()
349
+ title: Y.body.md(),
350
+ description: Y.body.sm()
653
351
  },
654
352
  md: {
655
353
  container: "gap-3",
656
354
  icon: "p-2",
657
355
  iconSize: "h-5 w-5",
658
- title: z.body.strong.md(),
659
- description: z.body.md()
356
+ title: Y.body.strong.md(),
357
+ description: Y.body.md()
660
358
  },
661
359
  lg: {
662
360
  container: "gap-4",
663
361
  icon: "p-3",
664
362
  iconSize: "h-6 w-6",
665
- title: z.heading.h4(),
666
- description: z.body.md()
363
+ title: Y.heading.h4(),
364
+ description: Y.body.md()
667
365
  }
668
366
  }[a];
669
- return /* @__PURE__ */ h.jsxs("div", { className: E("flex items-start", s.container, o), children: [
367
+ return /* @__PURE__ */ h.jsxs("div", { className: R("flex items-start", c.container, o), children: [
670
368
  /* @__PURE__ */ h.jsx(
671
369
  "div",
672
370
  {
673
- className: E(
371
+ className: R(
674
372
  "rounded-full flex-shrink-0",
675
- s.icon,
373
+ c.icon,
676
374
  l[n]
677
375
  ),
678
- children: /* @__PURE__ */ h.jsx(t, { className: s.iconSize })
376
+ children: /* @__PURE__ */ h.jsx(t, { className: c.iconSize })
679
377
  }
680
378
  ),
681
379
  /* @__PURE__ */ h.jsxs("div", { className: "flex-1 min-w-0", children: [
682
- /* @__PURE__ */ h.jsx("h4", { className: s.title, children: e }),
380
+ /* @__PURE__ */ h.jsx("h4", { className: c.title, children: e }),
683
381
  r && /* @__PURE__ */ h.jsx(
684
382
  "p",
685
383
  {
686
- className: E(
687
- s.description,
384
+ className: R(
385
+ c.description,
688
386
  "mt-1 text-gray-600 dark:text-gray-300"
689
387
  ),
690
388
  children: r
@@ -692,7 +390,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
692
390
  )
693
391
  ] })
694
392
  ] });
695
- }, Wr = ({
393
+ }, jr = ({
696
394
  className: e,
697
395
  children: r,
698
396
  disabled: t = !1,
@@ -700,7 +398,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
700
398
  }) => /* @__PURE__ */ h.jsx(
701
399
  "div",
702
400
  {
703
- className: E(
401
+ className: R(
704
402
  "p-4 rounded-lg border transition-colors",
705
403
  "bg-white dark:bg-gray-900",
706
404
  "border-gray-200 dark:border-gray-700",
@@ -714,7 +412,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
714
412
  "aria-label": "UfeatureUspotlight",
715
413
  children: r || "UfeatureUspotlight Component"
716
414
  }
717
- ), Vr = ({
415
+ ), _r = ({
718
416
  className: e,
719
417
  children: r,
720
418
  disabled: t = !1,
@@ -722,7 +420,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
722
420
  }) => /* @__PURE__ */ h.jsx(
723
421
  "div",
724
422
  {
725
- className: E(
423
+ className: R(
726
424
  "p-4 rounded-lg border transition-colors",
727
425
  "bg-white dark:bg-gray-900",
728
426
  "border-gray-200 dark:border-gray-700",
@@ -736,7 +434,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
736
434
  "aria-label": "UfunnelUchart",
737
435
  children: r || "UfunnelUchart Component"
738
436
  }
739
- ), zr = ({
437
+ ), Tr = ({
740
438
  badgeIcon: e,
741
439
  badgeText: r,
742
440
  badgeColor: t = "blue",
@@ -745,10 +443,10 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
745
443
  description: o,
746
444
  primaryButton: l,
747
445
  secondaryButton: i,
748
- className: s,
749
- children: d
446
+ className: c,
447
+ children: f
750
448
  }) => {
751
- const m = {
449
+ const d = {
752
450
  blue: "bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",
753
451
  green: "bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",
754
452
  purple: "bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",
@@ -756,13 +454,13 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
756
454
  pink: "bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",
757
455
  gray: "bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"
758
456
  }[t];
759
- return /* @__PURE__ */ h.jsx("section", { className: E("py-20", s), children: /* @__PURE__ */ h.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center", children: [
457
+ 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: [
760
458
  /* @__PURE__ */ h.jsxs(
761
459
  "div",
762
460
  {
763
- className: E(
461
+ className: R(
764
462
  "inline-flex items-center border px-6 py-3 rounded-full mb-6",
765
- m
463
+ d
766
464
  ),
767
465
  children: [
768
466
  e && /* @__PURE__ */ h.jsx("span", { className: "mr-3", children: e }),
@@ -780,7 +478,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
780
478
  "a",
781
479
  {
782
480
  href: l.href,
783
- className: E(
481
+ className: R(
784
482
  "px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors inline-block",
785
483
  l.className
786
484
  ),
@@ -790,7 +488,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
790
488
  "button",
791
489
  {
792
490
  onClick: l.onClick,
793
- className: E(
491
+ className: R(
794
492
  "px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors",
795
493
  l.className
796
494
  ),
@@ -801,7 +499,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
801
499
  "a",
802
500
  {
803
501
  href: i.href,
804
- className: E(
502
+ className: R(
805
503
  "px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors inline-block",
806
504
  i.className
807
505
  ),
@@ -811,7 +509,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
811
509
  "button",
812
510
  {
813
511
  onClick: i.onClick,
814
- className: E(
512
+ className: R(
815
513
  "px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors",
816
514
  i.className
817
515
  ),
@@ -819,14 +517,14 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
819
517
  }
820
518
  ))
821
519
  ] }),
822
- d
520
+ f
823
521
  ] }) });
824
522
  };
825
- function S(e, r) {
523
+ function P(e, r) {
826
524
  if (e === !1 || e === null || typeof e > "u")
827
525
  throw new Error(r);
828
526
  }
829
- function T(e, r) {
527
+ function _(e, r) {
830
528
  if (!e) {
831
529
  typeof console < "u" && console.warn(r);
832
530
  try {
@@ -842,7 +540,7 @@ function de({
842
540
  }) {
843
541
  return r && r !== "?" && (e += r.charAt(0) === "?" ? r : "?" + r), t && t !== "#" && (e += t.charAt(0) === "#" ? t : "#" + t), e;
844
542
  }
845
- function he(e) {
543
+ function me(e) {
846
544
  let r = {};
847
545
  if (e) {
848
546
  let t = e.indexOf("#");
@@ -852,57 +550,57 @@ function he(e) {
852
550
  }
853
551
  return r;
854
552
  }
855
- function Ie(e, r, t = "/") {
856
- return ht(e, r, t, !1);
553
+ function $e(e, r, t = "/") {
554
+ return at(e, r, t, !1);
857
555
  }
858
- function ht(e, r, t, n) {
859
- let a = typeof r == "string" ? he(r) : r, o = F(a.pathname || "/", t);
556
+ function at(e, r, t, n) {
557
+ let a = typeof r == "string" ? me(r) : r, o = F(a.pathname || "/", t);
860
558
  if (o == null)
861
559
  return null;
862
- let l = Me(e);
863
- gt(l);
560
+ let l = Ae(e);
561
+ ot(l);
864
562
  let i = null;
865
- for (let s = 0; i == null && s < l.length; ++s) {
866
- let d = Nt(o);
867
- i = Ct(
868
- l[s],
869
- d,
563
+ for (let c = 0; i == null && c < l.length; ++c) {
564
+ let f = gt(o);
565
+ i = ht(
566
+ l[c],
567
+ f,
870
568
  n
871
569
  );
872
570
  }
873
571
  return i;
874
572
  }
875
- function Me(e, r = [], t = [], n = "", a = !1) {
876
- let o = (l, i, s = a, d) => {
877
- let f = {
878
- relativePath: d === void 0 ? l.path || "" : d,
573
+ function Ae(e, r = [], t = [], n = "", a = !1) {
574
+ let o = (l, i, c = a, f) => {
575
+ let m = {
576
+ relativePath: f === void 0 ? l.path || "" : f,
879
577
  caseSensitive: l.caseSensitive === !0,
880
578
  childrenIndex: i,
881
579
  route: l
882
580
  };
883
- if (f.relativePath.startsWith("/")) {
884
- if (!f.relativePath.startsWith(n) && s)
581
+ if (m.relativePath.startsWith("/")) {
582
+ if (!m.relativePath.startsWith(n) && c)
885
583
  return;
886
- S(
887
- f.relativePath.startsWith(n),
888
- `Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
889
- ), f.relativePath = f.relativePath.slice(n.length);
584
+ P(
585
+ m.relativePath.startsWith(n),
586
+ `Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
587
+ ), m.relativePath = m.relativePath.slice(n.length);
890
588
  }
891
- let m = U([n, f.relativePath]), p = t.concat(f);
892
- l.children && l.children.length > 0 && (S(
589
+ let d = L([n, m.relativePath]), p = t.concat(m);
590
+ l.children && l.children.length > 0 && (P(
893
591
  // Our types know better, but runtime JS may not!
894
592
  // @ts-expect-error
895
593
  l.index !== !0,
896
- `Index routes must not have child routes. Please remove all child routes from route path "${m}".`
897
- ), Me(
594
+ `Index routes must not have child routes. Please remove all child routes from route path "${d}".`
595
+ ), Ae(
898
596
  l.children,
899
597
  r,
900
598
  p,
901
- m,
902
- s
599
+ d,
600
+ c
903
601
  )), !(l.path == null && !l.index) && r.push({
904
- path: m,
905
- score: wt(m, l.index),
602
+ path: d,
603
+ score: ft(d, l.index),
906
604
  routesMeta: p
907
605
  });
908
606
  };
@@ -910,42 +608,42 @@ function Me(e, r = [], t = [], n = "", a = !1) {
910
608
  if (l.path === "" || !l.path?.includes("?"))
911
609
  o(l, i);
912
610
  else
913
- for (let s of We(l.path))
914
- o(l, i, !0, s);
611
+ for (let c of Oe(l.path))
612
+ o(l, i, !0, c);
915
613
  }), r;
916
614
  }
917
- function We(e) {
615
+ function Oe(e) {
918
616
  let r = e.split("/");
919
617
  if (r.length === 0) return [];
920
618
  let [t, ...n] = r, a = t.endsWith("?"), o = t.replace(/\?$/, "");
921
619
  if (n.length === 0)
922
620
  return a ? [o, ""] : [o];
923
- let l = We(n.join("/")), i = [];
621
+ let l = Oe(n.join("/")), i = [];
924
622
  return i.push(
925
623
  ...l.map(
926
- (s) => s === "" ? o : [o, s].join("/")
624
+ (c) => c === "" ? o : [o, c].join("/")
927
625
  )
928
626
  ), a && i.push(...l), i.map(
929
- (s) => e.startsWith("/") && s === "" ? "/" : s
627
+ (c) => e.startsWith("/") && c === "" ? "/" : c
930
628
  );
931
629
  }
932
- function gt(e) {
630
+ function ot(e) {
933
631
  e.sort(
934
- (r, t) => r.score !== t.score ? t.score - r.score : Et(
632
+ (r, t) => r.score !== t.score ? t.score - r.score : mt(
935
633
  r.routesMeta.map((n) => n.childrenIndex),
936
634
  t.routesMeta.map((n) => n.childrenIndex)
937
635
  )
938
636
  );
939
637
  }
940
- var pt = /^:[\w-]+$/, bt = 3, xt = 2, vt = 1, yt = 10, kt = -2, $e = (e) => e === "*";
941
- function wt(e, r) {
638
+ var lt = /^:[\w-]+$/, it = 3, st = 2, ut = 1, ct = 10, dt = -2, _e = (e) => e === "*";
639
+ function ft(e, r) {
942
640
  let t = e.split("/"), n = t.length;
943
- return t.some($e) && (n += kt), r && (n += xt), t.filter((a) => !$e(a)).reduce(
944
- (a, o) => a + (pt.test(o) ? bt : o === "" ? vt : yt),
641
+ return t.some(_e) && (n += dt), r && (n += st), t.filter((a) => !_e(a)).reduce(
642
+ (a, o) => a + (lt.test(o) ? it : o === "" ? ut : ct),
945
643
  n
946
644
  );
947
645
  }
948
- function Et(e, r) {
646
+ function mt(e, r) {
949
647
  return e.length === r.length && e.slice(0, -1).every((n, a) => n === r[a]) ? (
950
648
  // If two routes are siblings, we should try to match the earlier sibling
951
649
  // first. This allows people to have fine-grained control over the matching
@@ -958,37 +656,37 @@ function Et(e, r) {
958
656
  0
959
657
  );
960
658
  }
961
- function Ct(e, r, t = !1) {
659
+ function ht(e, r, t = !1) {
962
660
  let { routesMeta: n } = e, a = {}, o = "/", l = [];
963
661
  for (let i = 0; i < n.length; ++i) {
964
- let s = n[i], d = i === n.length - 1, f = o === "/" ? r : r.slice(o.length) || "/", m = te(
965
- { path: s.relativePath, caseSensitive: s.caseSensitive, end: d },
966
- f
967
- ), p = s.route;
968
- if (!m && d && t && !n[n.length - 1].route.index && (m = te(
662
+ let c = n[i], f = i === n.length - 1, m = o === "/" ? r : r.slice(o.length) || "/", d = te(
663
+ { path: c.relativePath, caseSensitive: c.caseSensitive, end: f },
664
+ m
665
+ ), p = c.route;
666
+ if (!d && f && t && !n[n.length - 1].route.index && (d = te(
969
667
  {
970
- path: s.relativePath,
971
- caseSensitive: s.caseSensitive,
668
+ path: c.relativePath,
669
+ caseSensitive: c.caseSensitive,
972
670
  end: !1
973
671
  },
974
- f
975
- )), !m)
672
+ m
673
+ )), !d)
976
674
  return null;
977
- Object.assign(a, m.params), l.push({
675
+ Object.assign(a, d.params), l.push({
978
676
  // TODO: Can this as be avoided?
979
677
  params: a,
980
- pathname: U([o, m.pathname]),
981
- pathnameBase: Lt(
982
- U([o, m.pathnameBase])
678
+ pathname: L([o, d.pathname]),
679
+ pathnameBase: wt(
680
+ L([o, d.pathnameBase])
983
681
  ),
984
682
  route: p
985
- }), m.pathnameBase !== "/" && (o = U([o, m.pathnameBase]));
683
+ }), d.pathnameBase !== "/" && (o = L([o, d.pathnameBase]));
986
684
  }
987
685
  return l;
988
686
  }
989
687
  function te(e, r) {
990
688
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
991
- let [t, n] = Rt(
689
+ let [t, n] = pt(
992
690
  e.path,
993
691
  e.caseSensitive,
994
692
  e.end
@@ -997,13 +695,13 @@ function te(e, r) {
997
695
  let o = a[0], l = o.replace(/(.)\/+$/, "$1"), i = a.slice(1);
998
696
  return {
999
697
  params: n.reduce(
1000
- (d, { paramName: f, isOptional: m }, p) => {
1001
- if (f === "*") {
1002
- let x = i[p] || "";
1003
- l = o.slice(0, o.length - x.length).replace(/(.)\/+$/, "$1");
698
+ (f, { paramName: m, isOptional: d }, p) => {
699
+ if (m === "*") {
700
+ let y = i[p] || "";
701
+ l = o.slice(0, o.length - y.length).replace(/(.)\/+$/, "$1");
1004
702
  }
1005
- const b = i[p];
1006
- return m && !b ? d[f] = void 0 : d[f] = (b || "").replace(/%2F/g, "/"), d;
703
+ const g = i[p];
704
+ return d && !g ? f[m] = void 0 : f[m] = (g || "").replace(/%2F/g, "/"), f;
1007
705
  },
1008
706
  {}
1009
707
  ),
@@ -1012,22 +710,22 @@ function te(e, r) {
1012
710
  pattern: e
1013
711
  };
1014
712
  }
1015
- function Rt(e, r = !1, t = !0) {
1016
- T(
713
+ function pt(e, r = !1, t = !0) {
714
+ _(
1017
715
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
1018
716
  `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(/\*$/, "/*")}".`
1019
717
  );
1020
718
  let n = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
1021
719
  /\/:([\w-]+)(\?)?/g,
1022
- (l, i, s) => (n.push({ paramName: i, isOptional: s != null }), s ? "/?([^\\/]+)?" : "/([^\\/]+)")
720
+ (l, i, c) => (n.push({ paramName: i, isOptional: c != null }), c ? "/?([^\\/]+)?" : "/([^\\/]+)")
1023
721
  ).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
1024
722
  return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, r ? void 0 : "i"), n];
1025
723
  }
1026
- function Nt(e) {
724
+ function gt(e) {
1027
725
  try {
1028
726
  return e.split("/").map((r) => decodeURIComponent(r).replace(/\//g, "%2F")).join("/");
1029
727
  } catch (r) {
1030
- return T(
728
+ return _(
1031
729
  !1,
1032
730
  `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`
1033
731
  ), e;
@@ -1040,35 +738,35 @@ function F(e, r) {
1040
738
  let t = r.endsWith("/") ? r.length - 1 : r.length, n = e.charAt(t);
1041
739
  return n && n !== "/" ? null : e.slice(t) || "/";
1042
740
  }
1043
- var jt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, St = (e) => jt.test(e);
1044
- function Pt(e, r = "/") {
741
+ var bt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, xt = (e) => bt.test(e);
742
+ function yt(e, r = "/") {
1045
743
  let {
1046
744
  pathname: t,
1047
745
  search: n = "",
1048
746
  hash: a = ""
1049
- } = typeof e == "string" ? he(e) : e, o;
747
+ } = typeof e == "string" ? me(e) : e, o;
1050
748
  if (t)
1051
- if (St(t))
749
+ if (xt(t))
1052
750
  o = t;
1053
751
  else {
1054
752
  if (t.includes("//")) {
1055
753
  let l = t;
1056
- t = t.replace(/\/\/+/g, "/"), T(
754
+ t = t.replace(/\/\/+/g, "/"), _(
1057
755
  !1,
1058
756
  `Pathnames cannot have embedded double slashes - normalizing ${l} -> ${t}`
1059
757
  );
1060
758
  }
1061
- t.startsWith("/") ? o = Ae(t.substring(1), "/") : o = Ae(t, r);
759
+ t.startsWith("/") ? o = Te(t.substring(1), "/") : o = Te(t, r);
1062
760
  }
1063
761
  else
1064
762
  o = r;
1065
763
  return {
1066
764
  pathname: o,
1067
- search: Tt(n),
1068
- hash: Ut(a)
765
+ search: kt(n),
766
+ hash: Et(a)
1069
767
  };
1070
768
  }
1071
- function Ae(e, r) {
769
+ function Te(e, r) {
1072
770
  let t = r.replace(/\/+$/, "").split("/");
1073
771
  return e.split("/").forEach((a) => {
1074
772
  a === ".." ? t.length > 1 && t.pop() : a !== "." && t.push(a);
@@ -1079,26 +777,26 @@ function ue(e, r, t, n) {
1079
777
  n
1080
778
  )}]. 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.`;
1081
779
  }
1082
- function _t(e) {
780
+ function vt(e) {
1083
781
  return e.filter(
1084
782
  (r, t) => t === 0 || r.route.path && r.route.path.length > 0
1085
783
  );
1086
784
  }
1087
- function Ve(e) {
1088
- let r = _t(e);
785
+ function Fe(e) {
786
+ let r = vt(e);
1089
787
  return r.map(
1090
788
  (t, n) => n === r.length - 1 ? t.pathname : t.pathnameBase
1091
789
  );
1092
790
  }
1093
- function ze(e, r, t, n = !1) {
791
+ function Ie(e, r, t, n = !1) {
1094
792
  let a;
1095
- typeof e == "string" ? a = he(e) : (a = { ...e }, S(
793
+ typeof e == "string" ? a = me(e) : (a = { ...e }, P(
1096
794
  !a.pathname || !a.pathname.includes("?"),
1097
795
  ue("?", "pathname", "search", a)
1098
- ), S(
796
+ ), P(
1099
797
  !a.pathname || !a.pathname.includes("#"),
1100
798
  ue("#", "pathname", "hash", a)
1101
- ), S(
799
+ ), P(
1102
800
  !a.search || !a.search.includes("#"),
1103
801
  ue("#", "search", "hash", a)
1104
802
  ));
@@ -1106,124 +804,124 @@ function ze(e, r, t, n = !1) {
1106
804
  if (l == null)
1107
805
  i = t;
1108
806
  else {
1109
- let m = r.length - 1;
807
+ let d = r.length - 1;
1110
808
  if (!n && l.startsWith("..")) {
1111
809
  let p = l.split("/");
1112
810
  for (; p[0] === ".."; )
1113
- p.shift(), m -= 1;
811
+ p.shift(), d -= 1;
1114
812
  a.pathname = p.join("/");
1115
813
  }
1116
- i = m >= 0 ? r[m] : "/";
814
+ i = d >= 0 ? r[d] : "/";
1117
815
  }
1118
- let s = Pt(a, i), d = l && l !== "/" && l.endsWith("/"), f = (o || l === ".") && t.endsWith("/");
1119
- return !s.pathname.endsWith("/") && (d || f) && (s.pathname += "/"), s;
816
+ let c = yt(a, i), f = l && l !== "/" && l.endsWith("/"), m = (o || l === ".") && t.endsWith("/");
817
+ return !c.pathname.endsWith("/") && (f || m) && (c.pathname += "/"), c;
1120
818
  }
1121
- var U = (e) => e.join("/").replace(/\/\/+/g, "/"), Lt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Tt = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ut = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
1122
- function $t(e) {
819
+ 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;
820
+ function Rt(e) {
1123
821
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
1124
822
  }
1125
823
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
1126
- var Be = [
824
+ var De = [
1127
825
  "POST",
1128
826
  "PUT",
1129
827
  "PATCH",
1130
828
  "DELETE"
1131
829
  ];
1132
830
  new Set(
1133
- Be
831
+ De
1134
832
  );
1135
- var At = [
833
+ var Ct = [
1136
834
  "GET",
1137
- ...Be
835
+ ...De
1138
836
  ];
1139
- new Set(At);
1140
- var B = c.createContext(null);
1141
- B.displayName = "DataRouter";
1142
- var re = c.createContext(null);
837
+ new Set(Ct);
838
+ var H = u.createContext(null);
839
+ H.displayName = "DataRouter";
840
+ var re = u.createContext(null);
1143
841
  re.displayName = "DataRouterState";
1144
- c.createContext(!1);
1145
- var Ye = c.createContext({
842
+ u.createContext(!1);
843
+ var Me = u.createContext({
1146
844
  isTransitioning: !1
1147
845
  });
1148
- Ye.displayName = "ViewTransition";
1149
- var Ot = c.createContext(
846
+ Me.displayName = "ViewTransition";
847
+ var St = u.createContext(
1150
848
  /* @__PURE__ */ new Map()
1151
849
  );
1152
- Ot.displayName = "Fetchers";
1153
- var Ft = c.createContext(null);
1154
- Ft.displayName = "Await";
1155
- var $ = c.createContext(
850
+ St.displayName = "Fetchers";
851
+ var Nt = u.createContext(null);
852
+ Nt.displayName = "Await";
853
+ var U = u.createContext(
1156
854
  null
1157
855
  );
1158
- $.displayName = "Navigation";
1159
- var ge = c.createContext(
856
+ U.displayName = "Navigation";
857
+ var he = u.createContext(
1160
858
  null
1161
859
  );
1162
- ge.displayName = "Location";
1163
- var A = c.createContext({
860
+ he.displayName = "Location";
861
+ var $ = u.createContext({
1164
862
  outlet: null,
1165
863
  matches: [],
1166
864
  isDataRoute: !1
1167
865
  });
1168
- A.displayName = "Route";
1169
- var pe = c.createContext(null);
866
+ $.displayName = "Route";
867
+ var pe = u.createContext(null);
1170
868
  pe.displayName = "RouteError";
1171
- function Dt(e, { relative: r } = {}) {
1172
- S(
869
+ function Pt(e, { relative: r } = {}) {
870
+ P(
1173
871
  ne(),
1174
872
  // TODO: This error is probably because they somehow have 2 versions of the
1175
873
  // router loaded. We can help them understand how to avoid that.
1176
874
  "useHref() may be used only in the context of a <Router> component."
1177
875
  );
1178
- let { basename: t, navigator: n } = c.useContext($), { hash: a, pathname: o, search: l } = G(e, { relative: r }), i = o;
1179
- return t !== "/" && (i = o === "/" ? t : U([t, o])), n.createHref({ pathname: i, search: l, hash: a });
876
+ let { basename: t, navigator: n } = u.useContext(U), { hash: a, pathname: o, search: l } = G(e, { relative: r }), i = o;
877
+ return t !== "/" && (i = o === "/" ? t : L([t, o])), n.createHref({ pathname: i, search: l, hash: a });
1180
878
  }
1181
879
  function ne() {
1182
- return c.useContext(ge) != null;
880
+ return u.useContext(he) != null;
1183
881
  }
1184
- function I() {
1185
- return S(
882
+ function D() {
883
+ return P(
1186
884
  ne(),
1187
885
  // TODO: This error is probably because they somehow have 2 versions of the
1188
886
  // router loaded. We can help them understand how to avoid that.
1189
887
  "useLocation() may be used only in the context of a <Router> component."
1190
- ), c.useContext(ge).location;
888
+ ), u.useContext(he).location;
1191
889
  }
1192
- var He = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
1193
- function Je(e) {
1194
- c.useContext($).static || c.useLayoutEffect(e);
890
+ var We = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
891
+ function ze(e) {
892
+ u.useContext(U).static || u.useLayoutEffect(e);
1195
893
  }
1196
- function It() {
1197
- let { isDataRoute: e } = c.useContext(A);
1198
- return e ? Zt() : Mt();
894
+ function jt() {
895
+ let { isDataRoute: e } = u.useContext($);
896
+ return e ? zt() : _t();
1199
897
  }
1200
- function Mt() {
1201
- S(
898
+ function _t() {
899
+ P(
1202
900
  ne(),
1203
901
  // TODO: This error is probably because they somehow have 2 versions of the
1204
902
  // router loaded. We can help them understand how to avoid that.
1205
903
  "useNavigate() may be used only in the context of a <Router> component."
1206
904
  );
1207
- let e = c.useContext(B), { basename: r, navigator: t } = c.useContext($), { matches: n } = c.useContext(A), { pathname: a } = I(), o = JSON.stringify(Ve(n)), l = c.useRef(!1);
1208
- return Je(() => {
905
+ let e = u.useContext(H), { basename: r, navigator: t } = u.useContext(U), { matches: n } = u.useContext($), { pathname: a } = D(), o = JSON.stringify(Fe(n)), l = u.useRef(!1);
906
+ return ze(() => {
1209
907
  l.current = !0;
1210
- }), c.useCallback(
1211
- (s, d = {}) => {
1212
- if (T(l.current, He), !l.current) return;
1213
- if (typeof s == "number") {
1214
- t.go(s);
908
+ }), u.useCallback(
909
+ (c, f = {}) => {
910
+ if (_(l.current, We), !l.current) return;
911
+ if (typeof c == "number") {
912
+ t.go(c);
1215
913
  return;
1216
914
  }
1217
- let f = ze(
1218
- s,
915
+ let m = Ie(
916
+ c,
1219
917
  JSON.parse(o),
1220
918
  a,
1221
- d.relative === "path"
919
+ f.relative === "path"
1222
920
  );
1223
- e == null && r !== "/" && (f.pathname = f.pathname === "/" ? r : U([r, f.pathname])), (d.replace ? t.replace : t.push)(
1224
- f,
1225
- d.state,
1226
- d
921
+ e == null && r !== "/" && (m.pathname = m.pathname === "/" ? r : L([r, m.pathname])), (f.replace ? t.replace : t.push)(
922
+ m,
923
+ f.state,
924
+ f
1227
925
  );
1228
926
  },
1229
927
  [
@@ -1235,11 +933,11 @@ function Mt() {
1235
933
  ]
1236
934
  );
1237
935
  }
1238
- c.createContext(null);
936
+ u.createContext(null);
1239
937
  function G(e, { relative: r } = {}) {
1240
- let { matches: t } = c.useContext(A), { pathname: n } = I(), a = JSON.stringify(Ve(t));
1241
- return c.useMemo(
1242
- () => ze(
938
+ let { matches: t } = u.useContext($), { pathname: n } = D(), a = JSON.stringify(Fe(t));
939
+ return u.useMemo(
940
+ () => Ie(
1243
941
  e,
1244
942
  JSON.parse(a),
1245
943
  n,
@@ -1248,61 +946,61 @@ function G(e, { relative: r } = {}) {
1248
946
  [e, a, n, r]
1249
947
  );
1250
948
  }
1251
- function Wt(e, r, t, n, a) {
1252
- S(
949
+ function Tt(e, r, t, n, a) {
950
+ P(
1253
951
  ne(),
1254
952
  // TODO: This error is probably because they somehow have 2 versions of the
1255
953
  // router loaded. We can help them understand how to avoid that.
1256
954
  "useRoutes() may be used only in the context of a <Router> component."
1257
955
  );
1258
- let { navigator: o } = c.useContext($), { matches: l } = c.useContext(A), i = l[l.length - 1], s = i ? i.params : {}, d = i ? i.pathname : "/", f = i ? i.pathnameBase : "/", m = i && i.route;
956
+ let { navigator: o } = u.useContext(U), { matches: l } = u.useContext($), i = l[l.length - 1], c = i ? i.params : {}, f = i ? i.pathname : "/", m = i ? i.pathnameBase : "/", d = i && i.route;
1259
957
  {
1260
- let g = m && m.path || "";
1261
- Ge(
1262
- d,
1263
- !m || g.endsWith("*") || g.endsWith("*?"),
1264
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${g}">) 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.
958
+ let b = d && d.path || "";
959
+ Ye(
960
+ f,
961
+ !d || b.endsWith("*") || b.endsWith("*?"),
962
+ `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.
1265
963
 
1266
- Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" : `${g}/*`}">.`
964
+ Please change the parent <Route path="${b}"> to <Route path="${b === "/" ? "*" : `${b}/*`}">.`
1267
965
  );
1268
966
  }
1269
- let p = I(), b;
1270
- b = p;
1271
- let x = b.pathname || "/", C = x;
1272
- if (f !== "/") {
1273
- let g = f.replace(/^\//, "").split("/");
1274
- C = "/" + x.replace(/^\//, "").split("/").slice(g.length).join("/");
967
+ let p = D(), g;
968
+ g = p;
969
+ let y = g.pathname || "/", E = y;
970
+ if (m !== "/") {
971
+ let b = m.replace(/^\//, "").split("/");
972
+ E = "/" + y.replace(/^\//, "").split("/").slice(b.length).join("/");
1275
973
  }
1276
- let v = Ie(e, { pathname: C });
1277
- return T(
1278
- m || v != null,
1279
- `No routes matched location "${b.pathname}${b.search}${b.hash}" `
1280
- ), T(
1281
- v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0,
1282
- `Matched leaf route at location "${b.pathname}${b.search}${b.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.`
1283
- ), Ht(
1284
- v && v.map(
1285
- (g) => Object.assign({}, g, {
1286
- params: Object.assign({}, s, g.params),
1287
- pathname: U([
1288
- f,
974
+ let w = $e(e, { pathname: E });
975
+ return _(
976
+ d || w != null,
977
+ `No routes matched location "${g.pathname}${g.search}${g.hash}" `
978
+ ), _(
979
+ 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,
980
+ `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.`
981
+ ), Ot(
982
+ w && w.map(
983
+ (b) => Object.assign({}, b, {
984
+ params: Object.assign({}, c, b.params),
985
+ pathname: L([
986
+ m,
1289
987
  // Re-encode pathnames that were decoded inside matchRoutes.
1290
988
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
1291
989
  // `new URL()` internally and we need to prevent it from treating
1292
990
  // them as separators
1293
991
  o.encodeLocation ? o.encodeLocation(
1294
- g.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
1295
- ).pathname : g.pathname
992
+ b.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
993
+ ).pathname : b.pathname
1296
994
  ]),
1297
- pathnameBase: g.pathnameBase === "/" ? f : U([
1298
- f,
995
+ pathnameBase: b.pathnameBase === "/" ? m : L([
996
+ m,
1299
997
  // Re-encode pathnames that were decoded inside matchRoutes
1300
998
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
1301
999
  // `new URL()` internally and we need to prevent it from treating
1302
1000
  // them as separators
1303
1001
  o.encodeLocation ? o.encodeLocation(
1304
- g.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
1305
- ).pathname : g.pathnameBase
1002
+ b.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
1003
+ ).pathname : b.pathnameBase
1306
1004
  ])
1307
1005
  })
1308
1006
  ),
@@ -1312,14 +1010,14 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
1312
1010
  a
1313
1011
  );
1314
1012
  }
1315
- function Vt() {
1316
- let e = Xt(), r = $t(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;
1013
+ function Lt() {
1014
+ 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;
1317
1015
  return console.error(
1318
1016
  "Error handled by React Router default ErrorBoundary:",
1319
1017
  e
1320
- ), 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);
1018
+ ), 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);
1321
1019
  }
1322
- var zt = /* @__PURE__ */ c.createElement(Vt, null), Bt = class extends c.Component {
1020
+ var Ut = /* @__PURE__ */ u.createElement(Lt, null), $t = class extends u.Component {
1323
1021
  constructor(e) {
1324
1022
  super(e), this.state = {
1325
1023
  location: e.location,
@@ -1348,7 +1046,7 @@ var zt = /* @__PURE__ */ c.createElement(Vt, null), Bt = class extends c.Compone
1348
1046
  );
1349
1047
  }
1350
1048
  render() {
1351
- return this.state.error !== void 0 ? /* @__PURE__ */ c.createElement(A.Provider, { value: this.props.routeContext }, /* @__PURE__ */ c.createElement(
1049
+ return this.state.error !== void 0 ? /* @__PURE__ */ u.createElement($.Provider, { value: this.props.routeContext }, /* @__PURE__ */ u.createElement(
1352
1050
  pe.Provider,
1353
1051
  {
1354
1052
  value: this.state.error,
@@ -1357,11 +1055,11 @@ var zt = /* @__PURE__ */ c.createElement(Vt, null), Bt = class extends c.Compone
1357
1055
  )) : this.props.children;
1358
1056
  }
1359
1057
  };
1360
- function Yt({ routeContext: e, match: r, children: t }) {
1361
- let n = c.useContext(B);
1362
- 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);
1058
+ function At({ routeContext: e, match: r, children: t }) {
1059
+ let n = u.useContext(H);
1060
+ return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ u.createElement($.Provider, { value: e }, t);
1363
1061
  }
1364
- function Ht(e, r = [], t = null, n = null, a = null) {
1062
+ function Ot(e, r = [], t = null, n = null, a = null) {
1365
1063
  if (e == null) {
1366
1064
  if (!t)
1367
1065
  return null;
@@ -1374,168 +1072,168 @@ function Ht(e, r = [], t = null, n = null, a = null) {
1374
1072
  }
1375
1073
  let o = e, l = t?.errors;
1376
1074
  if (l != null) {
1377
- let f = o.findIndex(
1378
- (m) => m.route.id && l?.[m.route.id] !== void 0
1075
+ let m = o.findIndex(
1076
+ (d) => d.route.id && l?.[d.route.id] !== void 0
1379
1077
  );
1380
- S(
1381
- f >= 0,
1078
+ P(
1079
+ m >= 0,
1382
1080
  `Could not find a matching route for errors on route IDs: ${Object.keys(
1383
1081
  l
1384
1082
  ).join(",")}`
1385
1083
  ), o = o.slice(
1386
1084
  0,
1387
- Math.min(o.length, f + 1)
1085
+ Math.min(o.length, m + 1)
1388
1086
  );
1389
1087
  }
1390
- let i = !1, s = -1;
1088
+ let i = !1, c = -1;
1391
1089
  if (t)
1392
- for (let f = 0; f < o.length; f++) {
1393
- let m = o[f];
1394
- if ((m.route.HydrateFallback || m.route.hydrateFallbackElement) && (s = f), m.route.id) {
1395
- let { loaderData: p, errors: b } = t, x = m.route.loader && !p.hasOwnProperty(m.route.id) && (!b || b[m.route.id] === void 0);
1396
- if (m.route.lazy || x) {
1397
- i = !0, s >= 0 ? o = o.slice(0, s + 1) : o = [o[0]];
1090
+ for (let m = 0; m < o.length; m++) {
1091
+ let d = o[m];
1092
+ if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (c = m), d.route.id) {
1093
+ let { loaderData: p, errors: g } = t, y = d.route.loader && !p.hasOwnProperty(d.route.id) && (!g || g[d.route.id] === void 0);
1094
+ if (d.route.lazy || y) {
1095
+ i = !0, c >= 0 ? o = o.slice(0, c + 1) : o = [o[0]];
1398
1096
  break;
1399
1097
  }
1400
1098
  }
1401
1099
  }
1402
- let d = t && n ? (f, m) => {
1403
- n(f, {
1100
+ let f = t && n ? (m, d) => {
1101
+ n(m, {
1404
1102
  location: t.location,
1405
1103
  params: t.matches?.[0]?.params ?? {},
1406
- errorInfo: m
1104
+ errorInfo: d
1407
1105
  });
1408
1106
  } : void 0;
1409
1107
  return o.reduceRight(
1410
- (f, m, p) => {
1411
- let b, x = !1, C = null, v = null;
1412
- t && (b = l && m.route.id ? l[m.route.id] : void 0, C = m.route.errorElement || zt, i && (s < 0 && p === 0 ? (Ge(
1108
+ (m, d, p) => {
1109
+ let g, y = !1, E = null, w = null;
1110
+ t && (g = l && d.route.id ? l[d.route.id] : void 0, E = d.route.errorElement || Ut, i && (c < 0 && p === 0 ? (Ye(
1413
1111
  "route-fallback",
1414
1112
  !1,
1415
1113
  "No `HydrateFallback` element provided to render during initial hydration"
1416
- ), x = !0, v = null) : s === p && (x = !0, v = m.route.hydrateFallbackElement || null)));
1417
- let k = r.concat(o.slice(0, p + 1)), g = () => {
1418
- let w;
1419
- return b ? w = C : x ? w = v : m.route.Component ? w = /* @__PURE__ */ c.createElement(m.route.Component, null) : m.route.element ? w = m.route.element : w = f, /* @__PURE__ */ c.createElement(
1420
- Yt,
1114
+ ), y = !0, w = null) : c === p && (y = !0, w = d.route.hydrateFallbackElement || null)));
1115
+ let v = r.concat(o.slice(0, p + 1)), b = () => {
1116
+ let k;
1117
+ 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(
1118
+ At,
1421
1119
  {
1422
- match: m,
1120
+ match: d,
1423
1121
  routeContext: {
1424
- outlet: f,
1425
- matches: k,
1122
+ outlet: m,
1123
+ matches: v,
1426
1124
  isDataRoute: t != null
1427
1125
  },
1428
- children: w
1126
+ children: k
1429
1127
  }
1430
1128
  );
1431
1129
  };
1432
- return t && (m.route.ErrorBoundary || m.route.errorElement || p === 0) ? /* @__PURE__ */ c.createElement(
1433
- Bt,
1130
+ return t && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ u.createElement(
1131
+ $t,
1434
1132
  {
1435
1133
  location: t.location,
1436
1134
  revalidation: t.revalidation,
1437
- component: C,
1438
- error: b,
1439
- children: g(),
1440
- routeContext: { outlet: null, matches: k, isDataRoute: !0 },
1441
- onError: d
1135
+ component: E,
1136
+ error: g,
1137
+ children: b(),
1138
+ routeContext: { outlet: null, matches: v, isDataRoute: !0 },
1139
+ onError: f
1442
1140
  }
1443
- ) : g();
1141
+ ) : b();
1444
1142
  },
1445
1143
  null
1446
1144
  );
1447
1145
  }
1448
- function be(e) {
1146
+ function ge(e) {
1449
1147
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1450
1148
  }
1451
- function Jt(e) {
1452
- let r = c.useContext(B);
1453
- return S(r, be(e)), r;
1149
+ function Ft(e) {
1150
+ let r = u.useContext(H);
1151
+ return P(r, ge(e)), r;
1454
1152
  }
1455
- function Gt(e) {
1456
- let r = c.useContext(re);
1457
- return S(r, be(e)), r;
1153
+ function It(e) {
1154
+ let r = u.useContext(re);
1155
+ return P(r, ge(e)), r;
1458
1156
  }
1459
- function qt(e) {
1460
- let r = c.useContext(A);
1461
- return S(r, be(e)), r;
1157
+ function Dt(e) {
1158
+ let r = u.useContext($);
1159
+ return P(r, ge(e)), r;
1462
1160
  }
1463
- function xe(e) {
1464
- let r = qt(e), t = r.matches[r.matches.length - 1];
1465
- return S(
1161
+ function be(e) {
1162
+ let r = Dt(e), t = r.matches[r.matches.length - 1];
1163
+ return P(
1466
1164
  t.route.id,
1467
1165
  `${e} can only be used on routes that contain a unique "id"`
1468
1166
  ), t.route.id;
1469
1167
  }
1470
- function Kt() {
1471
- return xe(
1168
+ function Mt() {
1169
+ return be(
1472
1170
  "useRouteId"
1473
1171
  /* UseRouteId */
1474
1172
  );
1475
1173
  }
1476
- function Xt() {
1477
- let e = c.useContext(pe), r = Gt(
1174
+ function Wt() {
1175
+ let e = u.useContext(pe), r = It(
1478
1176
  "useRouteError"
1479
1177
  /* UseRouteError */
1480
- ), t = xe(
1178
+ ), t = be(
1481
1179
  "useRouteError"
1482
1180
  /* UseRouteError */
1483
1181
  );
1484
1182
  return e !== void 0 ? e : r.errors?.[t];
1485
1183
  }
1486
- function Zt() {
1487
- let { router: e } = Jt(
1184
+ function zt() {
1185
+ let { router: e } = Ft(
1488
1186
  "useNavigate"
1489
1187
  /* UseNavigateStable */
1490
- ), r = xe(
1188
+ ), r = be(
1491
1189
  "useNavigate"
1492
1190
  /* UseNavigateStable */
1493
- ), t = c.useRef(!1);
1494
- return Je(() => {
1191
+ ), t = u.useRef(!1);
1192
+ return ze(() => {
1495
1193
  t.current = !0;
1496
- }), c.useCallback(
1194
+ }), u.useCallback(
1497
1195
  async (a, o = {}) => {
1498
- T(t.current, He), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1196
+ _(t.current, We), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1499
1197
  },
1500
1198
  [e, r]
1501
1199
  );
1502
1200
  }
1503
- var Oe = {};
1504
- function Ge(e, r, t) {
1505
- !r && !Oe[e] && (Oe[e] = !0, T(!1, t));
1201
+ var Le = {};
1202
+ function Ye(e, r, t) {
1203
+ !r && !Le[e] && (Le[e] = !0, _(!1, t));
1506
1204
  }
1507
- c.memo(Qt);
1508
- function Qt({
1205
+ u.memo(Yt);
1206
+ function Yt({
1509
1207
  routes: e,
1510
1208
  future: r,
1511
1209
  state: t,
1512
1210
  unstable_onError: n
1513
1211
  }) {
1514
- return Wt(e, void 0, t, n, r);
1212
+ return Tt(e, void 0, t, n, r);
1515
1213
  }
1516
1214
  var Q = "get", ee = "application/x-www-form-urlencoded";
1517
1215
  function ae(e) {
1518
1216
  return e != null && typeof e.tagName == "string";
1519
1217
  }
1520
- function er(e) {
1218
+ function Ht(e) {
1521
1219
  return ae(e) && e.tagName.toLowerCase() === "button";
1522
1220
  }
1523
- function tr(e) {
1221
+ function Vt(e) {
1524
1222
  return ae(e) && e.tagName.toLowerCase() === "form";
1525
1223
  }
1526
- function rr(e) {
1224
+ function Bt(e) {
1527
1225
  return ae(e) && e.tagName.toLowerCase() === "input";
1528
1226
  }
1529
- function nr(e) {
1227
+ function Jt(e) {
1530
1228
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1531
1229
  }
1532
- function ar(e, r) {
1230
+ function Gt(e, r) {
1533
1231
  return e.button === 0 && // Ignore everything but left clicks
1534
1232
  (!r || r === "_self") && // Let browser handle "target=_blank" etc.
1535
- !nr(e);
1233
+ !Jt(e);
1536
1234
  }
1537
1235
  var Z = null;
1538
- function or() {
1236
+ function qt() {
1539
1237
  if (Z === null)
1540
1238
  try {
1541
1239
  new FormData(
@@ -1548,35 +1246,35 @@ function or() {
1548
1246
  }
1549
1247
  return Z;
1550
1248
  }
1551
- var lr = /* @__PURE__ */ new Set([
1249
+ var Xt = /* @__PURE__ */ new Set([
1552
1250
  "application/x-www-form-urlencoded",
1553
1251
  "multipart/form-data",
1554
1252
  "text/plain"
1555
1253
  ]);
1556
1254
  function ce(e) {
1557
- return e != null && !lr.has(e) ? (T(
1255
+ return e != null && !Xt.has(e) ? (_(
1558
1256
  !1,
1559
1257
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ee}"`
1560
1258
  ), null) : e;
1561
1259
  }
1562
- function ir(e, r) {
1260
+ function Kt(e, r) {
1563
1261
  let t, n, a, o, l;
1564
- if (tr(e)) {
1262
+ if (Vt(e)) {
1565
1263
  let i = e.getAttribute("action");
1566
1264
  n = i ? F(i, r) : null, t = e.getAttribute("method") || Q, a = ce(e.getAttribute("enctype")) || ee, o = new FormData(e);
1567
- } else if (er(e) || rr(e) && (e.type === "submit" || e.type === "image")) {
1265
+ } else if (Ht(e) || Bt(e) && (e.type === "submit" || e.type === "image")) {
1568
1266
  let i = e.form;
1569
1267
  if (i == null)
1570
1268
  throw new Error(
1571
1269
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1572
1270
  );
1573
- let s = e.getAttribute("formaction") || i.getAttribute("action");
1574
- if (n = s ? F(s, 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), !or()) {
1575
- let { name: d, type: f, value: m } = e;
1576
- if (f === "image") {
1577
- let p = d ? `${d}.` : "";
1271
+ let c = e.getAttribute("formaction") || i.getAttribute("action");
1272
+ 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()) {
1273
+ let { name: f, type: m, value: d } = e;
1274
+ if (m === "image") {
1275
+ let p = f ? `${f}.` : "";
1578
1276
  o.append(`${p}x`, "0"), o.append(`${p}y`, "0");
1579
- } else d && o.append(d, m);
1277
+ } else f && o.append(f, d);
1580
1278
  }
1581
1279
  } else {
1582
1280
  if (ae(e))
@@ -1588,11 +1286,11 @@ function ir(e, r) {
1588
1286
  return o && a === "text/plain" && (l = o, o = void 0), { action: n, method: t.toLowerCase(), encType: a, formData: o, body: l };
1589
1287
  }
1590
1288
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
1591
- function ve(e, r) {
1289
+ function xe(e, r) {
1592
1290
  if (e === !1 || e === null || typeof e > "u")
1593
1291
  throw new Error(r);
1594
1292
  }
1595
- function sr(e, r, t) {
1293
+ function Zt(e, r, t) {
1596
1294
  let n = typeof e == "string" ? new URL(
1597
1295
  e,
1598
1296
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -1601,7 +1299,7 @@ function sr(e, r, t) {
1601
1299
  ) : e;
1602
1300
  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;
1603
1301
  }
1604
- async function ur(e, r) {
1302
+ async function Qt(e, r) {
1605
1303
  if (e.id in r)
1606
1304
  return r[e.id];
1607
1305
  try {
@@ -1618,60 +1316,60 @@ async function ur(e, r) {
1618
1316
  });
1619
1317
  }
1620
1318
  }
1621
- function cr(e) {
1319
+ function er(e) {
1622
1320
  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";
1623
1321
  }
1624
- async function dr(e, r, t) {
1322
+ async function tr(e, r, t) {
1625
1323
  let n = await Promise.all(
1626
1324
  e.map(async (a) => {
1627
1325
  let o = r.routes[a.route.id];
1628
1326
  if (o) {
1629
- let l = await ur(o, t);
1327
+ let l = await Qt(o, t);
1630
1328
  return l.links ? l.links() : [];
1631
1329
  }
1632
1330
  return [];
1633
1331
  })
1634
1332
  );
1635
- return gr(
1636
- n.flat(1).filter(cr).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1333
+ return or(
1334
+ n.flat(1).filter(er).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1637
1335
  (a) => a.rel === "stylesheet" ? { ...a, rel: "prefetch", as: "style" } : { ...a, rel: "prefetch" }
1638
1336
  )
1639
1337
  );
1640
1338
  }
1641
- function Fe(e, r, t, n, a, o) {
1642
- let l = (s, d) => t[d] ? s.route.id !== t[d].route.id : !0, i = (s, d) => (
1339
+ function Ue(e, r, t, n, a, o) {
1340
+ let l = (c, f) => t[f] ? c.route.id !== t[f].route.id : !0, i = (c, f) => (
1643
1341
  // param change, /users/123 -> /users/456
1644
- t[d].pathname !== s.pathname || // splat param changed, which is not present in match.path
1342
+ t[f].pathname !== c.pathname || // splat param changed, which is not present in match.path
1645
1343
  // e.g. /files/images/avatar.jpg -> files/finances.xls
1646
- t[d].route.path?.endsWith("*") && t[d].params["*"] !== s.params["*"]
1344
+ t[f].route.path?.endsWith("*") && t[f].params["*"] !== c.params["*"]
1647
1345
  );
1648
1346
  return o === "assets" ? r.filter(
1649
- (s, d) => l(s, d) || i(s, d)
1650
- ) : o === "data" ? r.filter((s, d) => {
1651
- let f = n.routes[s.route.id];
1652
- if (!f || !f.hasLoader)
1347
+ (c, f) => l(c, f) || i(c, f)
1348
+ ) : o === "data" ? r.filter((c, f) => {
1349
+ let m = n.routes[c.route.id];
1350
+ if (!m || !m.hasLoader)
1653
1351
  return !1;
1654
- if (l(s, d) || i(s, d))
1352
+ if (l(c, f) || i(c, f))
1655
1353
  return !0;
1656
- if (s.route.shouldRevalidate) {
1657
- let m = s.route.shouldRevalidate({
1354
+ if (c.route.shouldRevalidate) {
1355
+ let d = c.route.shouldRevalidate({
1658
1356
  currentUrl: new URL(
1659
1357
  a.pathname + a.search + a.hash,
1660
1358
  window.origin
1661
1359
  ),
1662
1360
  currentParams: t[0]?.params || {},
1663
1361
  nextUrl: new URL(e, window.origin),
1664
- nextParams: s.params,
1362
+ nextParams: c.params,
1665
1363
  defaultShouldRevalidate: !0
1666
1364
  });
1667
- if (typeof m == "boolean")
1668
- return m;
1365
+ if (typeof d == "boolean")
1366
+ return d;
1669
1367
  }
1670
1368
  return !0;
1671
1369
  }) : [];
1672
1370
  }
1673
- function mr(e, r, { includeHydrateFallback: t } = {}) {
1674
- return fr(
1371
+ function rr(e, r, { includeHydrateFallback: t } = {}) {
1372
+ return nr(
1675
1373
  e.map((n) => {
1676
1374
  let a = r.routes[n.route.id];
1677
1375
  if (!a) return [];
@@ -1680,82 +1378,82 @@ function mr(e, r, { includeHydrateFallback: t } = {}) {
1680
1378
  }).flat(1)
1681
1379
  );
1682
1380
  }
1683
- function fr(e) {
1381
+ function nr(e) {
1684
1382
  return [...new Set(e)];
1685
1383
  }
1686
- function hr(e) {
1384
+ function ar(e) {
1687
1385
  let r = {}, t = Object.keys(e).sort();
1688
1386
  for (let n of t)
1689
1387
  r[n] = e[n];
1690
1388
  return r;
1691
1389
  }
1692
- function gr(e, r) {
1390
+ function or(e, r) {
1693
1391
  let t = /* @__PURE__ */ new Set();
1694
1392
  return new Set(r), e.reduce((n, a) => {
1695
- let o = JSON.stringify(hr(a));
1393
+ let o = JSON.stringify(ar(a));
1696
1394
  return t.has(o) || (t.add(o), n.push({ key: o, link: a })), n;
1697
1395
  }, []);
1698
1396
  }
1699
- function qe() {
1700
- let e = c.useContext(B);
1701
- return ve(
1397
+ function He() {
1398
+ let e = u.useContext(H);
1399
+ return xe(
1702
1400
  e,
1703
1401
  "You must render this element inside a <DataRouterContext.Provider> element"
1704
1402
  ), e;
1705
1403
  }
1706
- function pr() {
1707
- let e = c.useContext(re);
1708
- return ve(
1404
+ function lr() {
1405
+ let e = u.useContext(re);
1406
+ return xe(
1709
1407
  e,
1710
1408
  "You must render this element inside a <DataRouterStateContext.Provider> element"
1711
1409
  ), e;
1712
1410
  }
1713
- var ye = c.createContext(void 0);
1411
+ var ye = u.createContext(void 0);
1714
1412
  ye.displayName = "FrameworkContext";
1715
- function Ke() {
1716
- let e = c.useContext(ye);
1717
- return ve(
1413
+ function Ve() {
1414
+ let e = u.useContext(ye);
1415
+ return xe(
1718
1416
  e,
1719
1417
  "You must render this element inside a <HydratedRouter> element"
1720
1418
  ), e;
1721
1419
  }
1722
- function br(e, r) {
1723
- let t = c.useContext(ye), [n, a] = c.useState(!1), [o, l] = c.useState(!1), { onFocus: i, onBlur: s, onMouseEnter: d, onMouseLeave: f, onTouchStart: m } = r, p = c.useRef(null);
1724
- c.useEffect(() => {
1420
+ function ir(e, r) {
1421
+ 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);
1422
+ u.useEffect(() => {
1725
1423
  if (e === "render" && l(!0), e === "viewport") {
1726
- let C = (k) => {
1727
- k.forEach((g) => {
1728
- l(g.isIntersecting);
1424
+ let E = (v) => {
1425
+ v.forEach((b) => {
1426
+ l(b.isIntersecting);
1729
1427
  });
1730
- }, v = new IntersectionObserver(C, { threshold: 0.5 });
1731
- return p.current && v.observe(p.current), () => {
1732
- v.disconnect();
1428
+ }, w = new IntersectionObserver(E, { threshold: 0.5 });
1429
+ return p.current && w.observe(p.current), () => {
1430
+ w.disconnect();
1733
1431
  };
1734
1432
  }
1735
- }, [e]), c.useEffect(() => {
1433
+ }, [e]), u.useEffect(() => {
1736
1434
  if (n) {
1737
- let C = setTimeout(() => {
1435
+ let E = setTimeout(() => {
1738
1436
  l(!0);
1739
1437
  }, 100);
1740
1438
  return () => {
1741
- clearTimeout(C);
1439
+ clearTimeout(E);
1742
1440
  };
1743
1441
  }
1744
1442
  }, [n]);
1745
- let b = () => {
1443
+ let g = () => {
1746
1444
  a(!0);
1747
- }, x = () => {
1445
+ }, y = () => {
1748
1446
  a(!1), l(!1);
1749
1447
  };
1750
1448
  return t ? e !== "intent" ? [o, p, {}] : [
1751
1449
  o,
1752
1450
  p,
1753
1451
  {
1754
- onFocus: J(i, b),
1755
- onBlur: J(s, x),
1756
- onMouseEnter: J(d, b),
1757
- onMouseLeave: J(f, x),
1758
- onTouchStart: J(m, b)
1452
+ onFocus: J(i, g),
1453
+ onBlur: J(c, y),
1454
+ onMouseEnter: J(f, g),
1455
+ onMouseLeave: J(m, y),
1456
+ onTouchStart: J(d, g)
1759
1457
  }
1760
1458
  ] : [!1, p, {}];
1761
1459
  }
@@ -1764,18 +1462,18 @@ function J(e, r) {
1764
1462
  e && e(t), t.defaultPrevented || r(t);
1765
1463
  };
1766
1464
  }
1767
- function xr({ page: e, ...r }) {
1768
- let { router: t } = qe(), n = c.useMemo(
1769
- () => Ie(t.routes, e, t.basename),
1465
+ function sr({ page: e, ...r }) {
1466
+ let { router: t } = He(), n = u.useMemo(
1467
+ () => $e(t.routes, e, t.basename),
1770
1468
  [t.routes, e, t.basename]
1771
1469
  );
1772
- return n ? /* @__PURE__ */ c.createElement(yr, { page: e, matches: n, ...r }) : null;
1470
+ return n ? /* @__PURE__ */ u.createElement(cr, { page: e, matches: n, ...r }) : null;
1773
1471
  }
1774
- function vr(e) {
1775
- let { manifest: r, routeModules: t } = Ke(), [n, a] = c.useState([]);
1776
- return c.useEffect(() => {
1472
+ function ur(e) {
1473
+ let { manifest: r, routeModules: t } = Ve(), [n, a] = u.useState([]);
1474
+ return u.useEffect(() => {
1777
1475
  let o = !1;
1778
- return dr(e, r, t).then(
1476
+ return tr(e, r, t).then(
1779
1477
  (l) => {
1780
1478
  o || a(l);
1781
1479
  }
@@ -1784,78 +1482,78 @@ function vr(e) {
1784
1482
  };
1785
1483
  }, [e, r, t]), n;
1786
1484
  }
1787
- function yr({
1485
+ function cr({
1788
1486
  page: e,
1789
1487
  matches: r,
1790
1488
  ...t
1791
1489
  }) {
1792
- let n = I(), { manifest: a, routeModules: o } = Ke(), { basename: l } = qe(), { loaderData: i, matches: s } = pr(), d = c.useMemo(
1793
- () => Fe(
1490
+ let n = D(), { manifest: a, routeModules: o } = Ve(), { basename: l } = He(), { loaderData: i, matches: c } = lr(), f = u.useMemo(
1491
+ () => Ue(
1794
1492
  e,
1795
1493
  r,
1796
- s,
1494
+ c,
1797
1495
  a,
1798
1496
  n,
1799
1497
  "data"
1800
1498
  ),
1801
- [e, r, s, a, n]
1802
- ), f = c.useMemo(
1803
- () => Fe(
1499
+ [e, r, c, a, n]
1500
+ ), m = u.useMemo(
1501
+ () => Ue(
1804
1502
  e,
1805
1503
  r,
1806
- s,
1504
+ c,
1807
1505
  a,
1808
1506
  n,
1809
1507
  "assets"
1810
1508
  ),
1811
- [e, r, s, a, n]
1812
- ), m = c.useMemo(() => {
1509
+ [e, r, c, a, n]
1510
+ ), d = u.useMemo(() => {
1813
1511
  if (e === n.pathname + n.search + n.hash)
1814
1512
  return [];
1815
- let x = /* @__PURE__ */ new Set(), C = !1;
1816
- if (r.forEach((k) => {
1817
- let g = a.routes[k.route.id];
1818
- !g || !g.hasLoader || (!d.some((w) => w.route.id === k.route.id) && k.route.id in i && o[k.route.id]?.shouldRevalidate || g.hasClientLoader ? C = !0 : x.add(k.route.id));
1819
- }), x.size === 0)
1513
+ let y = /* @__PURE__ */ new Set(), E = !1;
1514
+ if (r.forEach((v) => {
1515
+ let b = a.routes[v.route.id];
1516
+ !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));
1517
+ }), y.size === 0)
1820
1518
  return [];
1821
- let v = sr(e, l, "data");
1822
- return C && x.size > 0 && v.searchParams.set(
1519
+ let w = Zt(e, l, "data");
1520
+ return E && y.size > 0 && w.searchParams.set(
1823
1521
  "_routes",
1824
- r.filter((k) => x.has(k.route.id)).map((k) => k.route.id).join(",")
1825
- ), [v.pathname + v.search];
1522
+ r.filter((v) => y.has(v.route.id)).map((v) => v.route.id).join(",")
1523
+ ), [w.pathname + w.search];
1826
1524
  }, [
1827
1525
  l,
1828
1526
  i,
1829
1527
  n,
1830
1528
  a,
1831
- d,
1529
+ f,
1832
1530
  r,
1833
1531
  e,
1834
1532
  o
1835
- ]), p = c.useMemo(
1836
- () => mr(f, a),
1837
- [f, a]
1838
- ), b = vr(f);
1839
- return /* @__PURE__ */ c.createElement(c.Fragment, null, m.map((x) => /* @__PURE__ */ c.createElement("link", { key: x, rel: "prefetch", as: "fetch", href: x, ...t })), p.map((x) => /* @__PURE__ */ c.createElement("link", { key: x, rel: "modulepreload", href: x, ...t })), b.map(({ key: x, link: C }) => (
1533
+ ]), p = u.useMemo(
1534
+ () => rr(m, a),
1535
+ [m, a]
1536
+ ), g = ur(m);
1537
+ 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 }) => (
1840
1538
  // these don't spread `linkProps` because they are full link descriptors
1841
1539
  // already with their own props
1842
- /* @__PURE__ */ c.createElement("link", { key: x, nonce: t.nonce, ...C })
1540
+ /* @__PURE__ */ u.createElement("link", { key: y, nonce: t.nonce, ...E })
1843
1541
  )));
1844
1542
  }
1845
- function kr(...e) {
1543
+ function dr(...e) {
1846
1544
  return (r) => {
1847
1545
  e.forEach((t) => {
1848
1546
  typeof t == "function" ? t(r) : t != null && (t.current = r);
1849
1547
  });
1850
1548
  };
1851
1549
  }
1852
- var Xe = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1550
+ var Be = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1853
1551
  try {
1854
- Xe && (window.__reactRouterVersion = // @ts-expect-error
1552
+ Be && (window.__reactRouterVersion = // @ts-expect-error
1855
1553
  "7.9.6");
1856
1554
  } catch {
1857
1555
  }
1858
- var Ze = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ke = c.forwardRef(
1556
+ var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = u.forwardRef(
1859
1557
  function({
1860
1558
  onClick: r,
1861
1559
  discover: t = "render",
@@ -1864,57 +1562,57 @@ var Ze = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ke = c.forwardRef(
1864
1562
  reloadDocument: o,
1865
1563
  replace: l,
1866
1564
  state: i,
1867
- target: s,
1868
- to: d,
1869
- preventScrollReset: f,
1870
- viewTransition: m,
1565
+ target: c,
1566
+ to: f,
1567
+ preventScrollReset: m,
1568
+ viewTransition: d,
1871
1569
  ...p
1872
- }, b) {
1873
- let { basename: x } = c.useContext($), C = typeof d == "string" && Ze.test(d), v, k = !1;
1874
- if (typeof d == "string" && C && (v = d, Xe))
1570
+ }, g) {
1571
+ let { basename: y } = u.useContext(U), E = typeof f == "string" && Je.test(f), w, v = !1;
1572
+ if (typeof f == "string" && E && (w = f, Be))
1875
1573
  try {
1876
- let P = new URL(window.location.href), O = d.startsWith("//") ? new URL(P.protocol + d) : new URL(d), q = F(O.pathname, x);
1877
- O.origin === P.origin && q != null ? d = q + O.search + O.hash : k = !0;
1574
+ let j = new URL(window.location.href), O = f.startsWith("//") ? new URL(j.protocol + f) : new URL(f), q = F(O.pathname, y);
1575
+ O.origin === j.origin && q != null ? f = q + O.search + O.hash : v = !0;
1878
1576
  } catch {
1879
- T(
1577
+ _(
1880
1578
  !1,
1881
- `<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1579
+ `<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1882
1580
  );
1883
1581
  }
1884
- let g = Dt(d, { relative: a }), [w, _, L] = br(
1582
+ let b = Pt(f, { relative: a }), [k, A, T] = ir(
1885
1583
  n,
1886
1584
  p
1887
- ), M = Rr(d, {
1585
+ ), M = pr(f, {
1888
1586
  replace: l,
1889
1587
  state: i,
1890
- target: s,
1891
- preventScrollReset: f,
1588
+ target: c,
1589
+ preventScrollReset: m,
1892
1590
  relative: a,
1893
- viewTransition: m
1591
+ viewTransition: d
1894
1592
  });
1895
- function D(P) {
1896
- r && r(P), P.defaultPrevented || M(P);
1593
+ function I(j) {
1594
+ r && r(j), j.defaultPrevented || M(j);
1897
1595
  }
1898
1596
  let W = (
1899
1597
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1900
- /* @__PURE__ */ c.createElement(
1598
+ /* @__PURE__ */ u.createElement(
1901
1599
  "a",
1902
1600
  {
1903
1601
  ...p,
1904
- ...L,
1905
- href: v || g,
1906
- onClick: k || o ? r : D,
1907
- ref: kr(b, _),
1908
- target: s,
1909
- "data-discover": !C && t === "render" ? "true" : void 0
1602
+ ...T,
1603
+ href: w || b,
1604
+ onClick: v || o ? r : I,
1605
+ ref: dr(g, A),
1606
+ target: c,
1607
+ "data-discover": !E && t === "render" ? "true" : void 0
1910
1608
  }
1911
1609
  )
1912
1610
  );
1913
- return w && !C ? /* @__PURE__ */ c.createElement(c.Fragment, null, W, /* @__PURE__ */ c.createElement(xr, { page: g })) : W;
1611
+ return k && !E ? /* @__PURE__ */ u.createElement(u.Fragment, null, W, /* @__PURE__ */ u.createElement(sr, { page: b })) : W;
1914
1612
  }
1915
1613
  );
1916
- ke.displayName = "Link";
1917
- var wr = c.forwardRef(
1614
+ ve.displayName = "Link";
1615
+ var fr = u.forwardRef(
1918
1616
  function({
1919
1617
  "aria-current": r = "page",
1920
1618
  caseSensitive: t = !1,
@@ -1923,43 +1621,43 @@ var wr = c.forwardRef(
1923
1621
  style: o,
1924
1622
  to: l,
1925
1623
  viewTransition: i,
1926
- children: s,
1927
- ...d
1928
- }, f) {
1929
- let m = G(l, { relative: d.relative }), p = I(), b = c.useContext(re), { navigator: x, basename: C } = c.useContext($), v = b != null && // Conditional usage is OK here because the usage of a data router is static
1624
+ children: c,
1625
+ ...f
1626
+ }, m) {
1627
+ let d = G(l, { relative: f.relative }), p = D(), g = u.useContext(re), { navigator: y, basename: E } = u.useContext(U), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1930
1628
  // eslint-disable-next-line react-hooks/rules-of-hooks
1931
- _r(m) && i === !0, k = x.encodeLocation ? x.encodeLocation(m).pathname : m.pathname, g = p.pathname, w = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
1932
- t || (g = g.toLowerCase(), w = w ? w.toLowerCase() : null, k = k.toLowerCase()), w && C && (w = F(w, C) || w);
1933
- const _ = k !== "/" && k.endsWith("/") ? k.length - 1 : k.length;
1934
- let L = g === k || !a && g.startsWith(k) && g.charAt(_) === "/", M = w != null && (w === k || !a && w.startsWith(k) && w.charAt(k.length) === "/"), D = {
1935
- isActive: L,
1629
+ 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;
1630
+ t || (b = b.toLowerCase(), k = k ? k.toLowerCase() : null, v = v.toLowerCase()), k && E && (k = F(k, E) || k);
1631
+ const A = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
1632
+ let T = b === v || !a && b.startsWith(v) && b.charAt(A) === "/", M = k != null && (k === v || !a && k.startsWith(v) && k.charAt(v.length) === "/"), I = {
1633
+ isActive: T,
1936
1634
  isPending: M,
1937
- isTransitioning: v
1938
- }, W = L ? r : void 0, P;
1939
- typeof n == "function" ? P = n(D) : P = [
1635
+ isTransitioning: w
1636
+ }, W = T ? r : void 0, j;
1637
+ typeof n == "function" ? j = n(I) : j = [
1940
1638
  n,
1941
- L ? "active" : null,
1639
+ T ? "active" : null,
1942
1640
  M ? "pending" : null,
1943
- v ? "transitioning" : null
1641
+ w ? "transitioning" : null
1944
1642
  ].filter(Boolean).join(" ");
1945
- let O = typeof o == "function" ? o(D) : o;
1946
- return /* @__PURE__ */ c.createElement(
1947
- ke,
1643
+ let O = typeof o == "function" ? o(I) : o;
1644
+ return /* @__PURE__ */ u.createElement(
1645
+ ve,
1948
1646
  {
1949
- ...d,
1647
+ ...f,
1950
1648
  "aria-current": W,
1951
- className: P,
1952
- ref: f,
1649
+ className: j,
1650
+ ref: m,
1953
1651
  style: O,
1954
1652
  to: l,
1955
1653
  viewTransition: i
1956
1654
  },
1957
- typeof s == "function" ? s(D) : s
1655
+ typeof c == "function" ? c(I) : c
1958
1656
  );
1959
1657
  }
1960
1658
  );
1961
- wr.displayName = "NavLink";
1962
- var Er = c.forwardRef(
1659
+ fr.displayName = "NavLink";
1660
+ var mr = u.forwardRef(
1963
1661
  ({
1964
1662
  discover: e = "render",
1965
1663
  fetcherKey: r,
@@ -1969,49 +1667,49 @@ var Er = c.forwardRef(
1969
1667
  state: o,
1970
1668
  method: l = Q,
1971
1669
  action: i,
1972
- onSubmit: s,
1973
- relative: d,
1974
- preventScrollReset: f,
1975
- viewTransition: m,
1670
+ onSubmit: c,
1671
+ relative: f,
1672
+ preventScrollReset: m,
1673
+ viewTransition: d,
1976
1674
  ...p
1977
- }, b) => {
1978
- let x = Sr(), C = Pr(i, { relative: d }), v = l.toLowerCase() === "get" ? "get" : "post", k = typeof i == "string" && Ze.test(i), g = (w) => {
1979
- if (s && s(w), w.defaultPrevented) return;
1980
- w.preventDefault();
1981
- let _ = w.nativeEvent.submitter, L = _?.getAttribute("formmethod") || l;
1982
- x(_ || w.currentTarget, {
1675
+ }, g) => {
1676
+ let y = xr(), E = yr(i, { relative: f }), w = l.toLowerCase() === "get" ? "get" : "post", v = typeof i == "string" && Je.test(i), b = (k) => {
1677
+ if (c && c(k), k.defaultPrevented) return;
1678
+ k.preventDefault();
1679
+ let A = k.nativeEvent.submitter, T = A?.getAttribute("formmethod") || l;
1680
+ y(A || k.currentTarget, {
1983
1681
  fetcherKey: r,
1984
- method: L,
1682
+ method: T,
1985
1683
  navigate: t,
1986
1684
  replace: a,
1987
1685
  state: o,
1988
- relative: d,
1989
- preventScrollReset: f,
1990
- viewTransition: m
1686
+ relative: f,
1687
+ preventScrollReset: m,
1688
+ viewTransition: d
1991
1689
  });
1992
1690
  };
1993
- return /* @__PURE__ */ c.createElement(
1691
+ return /* @__PURE__ */ u.createElement(
1994
1692
  "form",
1995
1693
  {
1996
- ref: b,
1997
- method: v,
1998
- action: C,
1999
- onSubmit: n ? s : g,
1694
+ ref: g,
1695
+ method: w,
1696
+ action: E,
1697
+ onSubmit: n ? c : b,
2000
1698
  ...p,
2001
- "data-discover": !k && e === "render" ? "true" : void 0
1699
+ "data-discover": !v && e === "render" ? "true" : void 0
2002
1700
  }
2003
1701
  );
2004
1702
  }
2005
1703
  );
2006
- Er.displayName = "Form";
2007
- function Cr(e) {
1704
+ mr.displayName = "Form";
1705
+ function hr(e) {
2008
1706
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
2009
1707
  }
2010
- function Qe(e) {
2011
- let r = c.useContext(B);
2012
- return S(r, Cr(e)), r;
1708
+ function Ge(e) {
1709
+ let r = u.useContext(H);
1710
+ return P(r, hr(e)), r;
2013
1711
  }
2014
- function Rr(e, {
1712
+ function pr(e, {
2015
1713
  target: r,
2016
1714
  replace: t,
2017
1715
  state: n,
@@ -2019,14 +1717,14 @@ function Rr(e, {
2019
1717
  relative: o,
2020
1718
  viewTransition: l
2021
1719
  } = {}) {
2022
- let i = It(), s = I(), d = G(e, { relative: o });
2023
- return c.useCallback(
2024
- (f) => {
2025
- if (ar(f, r)) {
2026
- f.preventDefault();
2027
- let m = t !== void 0 ? t : de(s) === de(d);
1720
+ let i = jt(), c = D(), f = G(e, { relative: o });
1721
+ return u.useCallback(
1722
+ (m) => {
1723
+ if (Gt(m, r)) {
1724
+ m.preventDefault();
1725
+ let d = t !== void 0 ? t : de(c) === de(f);
2028
1726
  i(e, {
2029
- replace: m,
1727
+ replace: d,
2030
1728
  state: n,
2031
1729
  preventScrollReset: a,
2032
1730
  relative: o,
@@ -2035,9 +1733,9 @@ function Rr(e, {
2035
1733
  }
2036
1734
  },
2037
1735
  [
2038
- s,
1736
+ c,
2039
1737
  i,
2040
- d,
1738
+ f,
2041
1739
  t,
2042
1740
  n,
2043
1741
  r,
@@ -2048,24 +1746,24 @@ function Rr(e, {
2048
1746
  ]
2049
1747
  );
2050
1748
  }
2051
- var Nr = 0, jr = () => `__${String(++Nr)}__`;
2052
- function Sr() {
2053
- let { router: e } = Qe(
1749
+ var gr = 0, br = () => `__${String(++gr)}__`;
1750
+ function xr() {
1751
+ let { router: e } = Ge(
2054
1752
  "useSubmit"
2055
1753
  /* UseSubmit */
2056
- ), { basename: r } = c.useContext($), t = Kt();
2057
- return c.useCallback(
1754
+ ), { basename: r } = u.useContext(U), t = Mt();
1755
+ return u.useCallback(
2058
1756
  async (n, a = {}) => {
2059
- let { action: o, method: l, encType: i, formData: s, body: d } = ir(
1757
+ let { action: o, method: l, encType: i, formData: c, body: f } = Kt(
2060
1758
  n,
2061
1759
  r
2062
1760
  );
2063
1761
  if (a.navigate === !1) {
2064
- let f = a.fetcherKey || jr();
2065
- await e.fetch(f, t, a.action || o, {
1762
+ let m = a.fetcherKey || br();
1763
+ await e.fetch(m, t, a.action || o, {
2066
1764
  preventScrollReset: a.preventScrollReset,
2067
- formData: s,
2068
- body: d,
1765
+ formData: c,
1766
+ body: f,
2069
1767
  formMethod: a.method || l,
2070
1768
  formEncType: a.encType || i,
2071
1769
  flushSync: a.flushSync
@@ -2073,8 +1771,8 @@ function Sr() {
2073
1771
  } else
2074
1772
  await e.navigate(a.action || o, {
2075
1773
  preventScrollReset: a.preventScrollReset,
2076
- formData: s,
2077
- body: d,
1774
+ formData: c,
1775
+ body: f,
2078
1776
  formMethod: a.method || l,
2079
1777
  formEncType: a.encType || i,
2080
1778
  replace: a.replace,
@@ -2087,28 +1785,28 @@ function Sr() {
2087
1785
  [e, r, t]
2088
1786
  );
2089
1787
  }
2090
- function Pr(e, { relative: r } = {}) {
2091
- let { basename: t } = c.useContext($), n = c.useContext(A);
2092
- S(n, "useFormAction must be used inside a RouteContext");
2093
- let [a] = n.matches.slice(-1), o = { ...G(e || ".", { relative: r }) }, l = I();
1788
+ function yr(e, { relative: r } = {}) {
1789
+ let { basename: t } = u.useContext(U), n = u.useContext($);
1790
+ P(n, "useFormAction must be used inside a RouteContext");
1791
+ let [a] = n.matches.slice(-1), o = { ...G(e || ".", { relative: r }) }, l = D();
2094
1792
  if (e == null) {
2095
1793
  o.search = l.search;
2096
- let i = new URLSearchParams(o.search), s = i.getAll("index");
2097
- if (s.some((f) => f === "")) {
2098
- i.delete("index"), s.filter((m) => m).forEach((m) => i.append("index", m));
2099
- let f = i.toString();
2100
- o.search = f ? `?${f}` : "";
1794
+ let i = new URLSearchParams(o.search), c = i.getAll("index");
1795
+ if (c.some((m) => m === "")) {
1796
+ i.delete("index"), c.filter((d) => d).forEach((d) => i.append("index", d));
1797
+ let m = i.toString();
1798
+ o.search = m ? `?${m}` : "";
2101
1799
  }
2102
1800
  }
2103
- return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (o.pathname = o.pathname === "/" ? t : U([t, o.pathname])), de(o);
1801
+ 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);
2104
1802
  }
2105
- function _r(e, { relative: r } = {}) {
2106
- let t = c.useContext(Ye);
2107
- S(
1803
+ function vr(e, { relative: r } = {}) {
1804
+ let t = u.useContext(Me);
1805
+ P(
2108
1806
  t != null,
2109
1807
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
2110
1808
  );
2111
- let { basename: n } = Qe(
1809
+ let { basename: n } = Ge(
2112
1810
  "useViewTransitionState"
2113
1811
  /* useViewTransitionState */
2114
1812
  ), a = G(e, { relative: r });
@@ -2117,24 +1815,24 @@ function _r(e, { relative: r } = {}) {
2117
1815
  let o = F(t.currentLocation.pathname, n) || t.currentLocation.pathname, l = F(t.nextLocation.pathname, n) || t.nextLocation.pathname;
2118
1816
  return te(a.pathname, l) != null || te(a.pathname, o) != null;
2119
1817
  }
2120
- const Lr = {
1818
+ const wr = {
2121
1819
  primary: "text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",
2122
1820
  secondary: "text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",
2123
1821
  subtle: "text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"
2124
- }, et = ({
1822
+ }, qe = ({
2125
1823
  to: e,
2126
1824
  children: r,
2127
1825
  className: t,
2128
1826
  variant: n = "primary"
2129
1827
  }) => /* @__PURE__ */ h.jsx(
2130
- ke,
1828
+ ve,
2131
1829
  {
2132
1830
  to: e,
2133
- className: E(Lr[n], t),
1831
+ className: R(wr[n], t),
2134
1832
  "aria-label": typeof r == "string" ? `Navigate to ${r}` : void 0,
2135
1833
  children: r
2136
1834
  }
2137
- ), Tr = {
1835
+ ), kr = {
2138
1836
  // Getting Started cluster
2139
1837
  gettingStarted: {
2140
1838
  documentation: "/document#getting-started",
@@ -2162,12 +1860,12 @@ const Lr = {
2162
1860
  nameService: "/document#name-service-subscription",
2163
1861
  troubleshooting: "/document#troubleshooting"
2164
1862
  }
2165
- }, Br = ({
1863
+ }, Lr = ({
2166
1864
  cluster: e,
2167
1865
  context: r = "",
2168
1866
  className: t
2169
1867
  }) => {
2170
- const n = Tr[e], a = {
1868
+ const n = kr[e], a = {
2171
1869
  gettingStarted: {
2172
1870
  documentation: "Learn how it works",
2173
1871
  connect: "Get started now",
@@ -2192,30 +1890,30 @@ const Lr = {
2192
1890
  troubleshooting: "Troubleshooting guide"
2193
1891
  }
2194
1892
  };
2195
- return /* @__PURE__ */ h.jsx("span", { className: E("text-sm text-gray-600 dark:text-gray-400", t), children: Object.entries(n).map(([o, l], i) => /* @__PURE__ */ h.jsxs(me.Fragment, { children: [
2196
- /* @__PURE__ */ h.jsx(et, { to: l, variant: "primary", children: a[e][o] }),
1893
+ 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: [
1894
+ /* @__PURE__ */ h.jsx(qe, { to: l, variant: "primary", children: a[e][o] }),
2197
1895
  i < Object.keys(n).length - 1 && " • "
2198
1896
  ] }, o)) });
2199
- }, Yr = ({
1897
+ }, Ur = ({
2200
1898
  title: e = "Related:",
2201
1899
  links: r,
2202
1900
  className: t
2203
1901
  }) => /* @__PURE__ */ h.jsxs(
2204
1902
  "div",
2205
1903
  {
2206
- className: E(
1904
+ className: R(
2207
1905
  "mt-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800",
2208
1906
  t
2209
1907
  ),
2210
1908
  children: [
2211
1909
  /* @__PURE__ */ h.jsx("span", { className: "text-sm font-medium text-blue-900 dark:text-blue-200 mr-2", children: e }),
2212
- r.map((n, a) => /* @__PURE__ */ h.jsxs(me.Fragment, { children: [
2213
- /* @__PURE__ */ h.jsx(et, { to: n.url, variant: n.variant || "primary", children: n.text }),
1910
+ r.map((n, a) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
1911
+ /* @__PURE__ */ h.jsx(qe, { to: n.url, variant: n.variant || "primary", children: n.text }),
2214
1912
  a < r.length - 1 && " • "
2215
1913
  ] }, a))
2216
1914
  ]
2217
1915
  }
2218
- ), Hr = (e, r) => ({
1916
+ ), $r = (e, r) => ({
2219
1917
  homepage: [
2220
1918
  { text: "How it works", url: "/document#getting-started" },
2221
1919
  { text: "User benefits", url: "/web3-users" },
@@ -2236,7 +1934,7 @@ const Lr = {
2236
1934
  { text: "Smart contracts", url: "/document#smart-contracts" },
2237
1935
  { text: "User benefits", url: "/web3-users" }
2238
1936
  ]
2239
- })[e] || [], Jr = ({
1937
+ })[e] || [], Ar = ({
2240
1938
  className: e,
2241
1939
  children: r,
2242
1940
  disabled: t = !1,
@@ -2244,7 +1942,7 @@ const Lr = {
2244
1942
  }) => /* @__PURE__ */ h.jsx(
2245
1943
  "div",
2246
1944
  {
2247
- className: E(
1945
+ className: R(
2248
1946
  "p-4 rounded-lg border transition-colors",
2249
1947
  "bg-white dark:bg-gray-900",
2250
1948
  "border-gray-200 dark:border-gray-700",
@@ -2258,7 +1956,7 @@ const Lr = {
2258
1956
  "aria-label": "UlandingUbuilder",
2259
1957
  children: r || "UlandingUbuilder Component"
2260
1958
  }
2261
- ), Gr = ({
1959
+ ), Or = ({
2262
1960
  className: e,
2263
1961
  children: r,
2264
1962
  disabled: t = !1,
@@ -2266,7 +1964,7 @@ const Lr = {
2266
1964
  }) => /* @__PURE__ */ h.jsx(
2267
1965
  "div",
2268
1966
  {
2269
- className: E(
1967
+ className: R(
2270
1968
  "p-4 rounded-lg border transition-colors",
2271
1969
  "bg-white dark:bg-gray-900",
2272
1970
  "border-gray-200 dark:border-gray-700",
@@ -2280,14 +1978,14 @@ const Lr = {
2280
1978
  "aria-label": "UnpsUsurvey",
2281
1979
  children: r || "UnpsUsurvey Component"
2282
1980
  }
2283
- ), qr = ({
1981
+ ), Fr = ({
2284
1982
  className: e,
2285
1983
  children: r,
2286
1984
  disabled: t
2287
1985
  }) => /* @__PURE__ */ h.jsx(
2288
1986
  "div",
2289
1987
  {
2290
- className: E(
1988
+ className: R(
2291
1989
  "p-4 rounded-lg border transition-colors",
2292
1990
  "bg-white dark:bg-gray-900",
2293
1991
  "border-gray-200 dark:border-gray-700",
@@ -2299,14 +1997,14 @@ const Lr = {
2299
1997
  "aria-label": "SalesReport",
2300
1998
  children: r || "SalesReport Component"
2301
1999
  }
2302
- ), Kr = ({
2000
+ ), Ir = ({
2303
2001
  className: e,
2304
2002
  children: r,
2305
2003
  disabled: t
2306
2004
  }) => /* @__PURE__ */ h.jsx(
2307
2005
  "div",
2308
2006
  {
2309
- className: E(
2007
+ className: R(
2310
2008
  "p-4 rounded-lg border transition-colors",
2311
2009
  "bg-white dark:bg-gray-900",
2312
2010
  "border-gray-200 dark:border-gray-700",
@@ -2318,7 +2016,7 @@ const Lr = {
2318
2016
  "aria-label": "SubscriberList",
2319
2017
  children: r || "SubscriberList Component"
2320
2018
  }
2321
- ), Xr = ({
2019
+ ), Dr = ({
2322
2020
  className: e,
2323
2021
  children: r,
2324
2022
  disabled: t = !1,
@@ -2326,7 +2024,7 @@ const Lr = {
2326
2024
  }) => /* @__PURE__ */ h.jsx(
2327
2025
  "div",
2328
2026
  {
2329
- className: E(
2027
+ className: R(
2330
2028
  "p-4 rounded-lg border transition-colors",
2331
2029
  "bg-white dark:bg-gray-900",
2332
2030
  "border-gray-200 dark:border-gray-700",
@@ -2340,7 +2038,7 @@ const Lr = {
2340
2038
  "aria-label": "UsurveyUbuilder",
2341
2039
  children: r || "UsurveyUbuilder Component"
2342
2040
  }
2343
- ), Zr = ({
2041
+ ), Mr = ({
2344
2042
  className: e,
2345
2043
  children: r,
2346
2044
  disabled: t = !1,
@@ -2348,7 +2046,7 @@ const Lr = {
2348
2046
  }) => /* @__PURE__ */ h.jsx(
2349
2047
  "div",
2350
2048
  {
2351
- className: E(
2049
+ className: R(
2352
2050
  "p-4 rounded-lg border transition-colors",
2353
2051
  "bg-white dark:bg-gray-900",
2354
2052
  "border-gray-200 dark:border-gray-700",
@@ -2362,7 +2060,7 @@ const Lr = {
2362
2060
  "aria-label": "UtestimonialUslider",
2363
2061
  children: r || "UtestimonialUslider Component"
2364
2062
  }
2365
- ), Qr = ({
2063
+ ), Wr = ({
2366
2064
  title: e,
2367
2065
  description: r,
2368
2066
  useCases: t,
@@ -2381,43 +2079,43 @@ const Lr = {
2381
2079
  3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
2382
2080
  4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
2383
2081
  };
2384
- return /* @__PURE__ */ h.jsx("section", { className: E(nt.section.gradient, a), children: /* @__PURE__ */ h.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [
2082
+ 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: [
2385
2083
  (e || r) && /* @__PURE__ */ h.jsxs("div", { className: "text-center mb-12", children: [
2386
2084
  e && /* @__PURE__ */ h.jsx("h2", { className: "text-3xl font-bold text-gray-900 dark:text-white mb-4", children: e }),
2387
2085
  r && /* @__PURE__ */ h.jsx("p", { className: "text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto", children: r })
2388
2086
  ] }),
2389
- /* @__PURE__ */ h.jsx("div", { className: E("grid gap-8", l[n]), children: t.map((i, s) => {
2390
- const d = i.color ? o[i.color] : o.blue;
2087
+ /* @__PURE__ */ h.jsx("div", { className: R("grid gap-8", l[n]), children: t.map((i, c) => {
2088
+ const f = i.color ? o[i.color] : o.blue;
2391
2089
  return /* @__PURE__ */ h.jsxs(
2392
2090
  "div",
2393
2091
  {
2394
2092
  className: "bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",
2395
2093
  children: [
2396
- /* @__PURE__ */ h.jsx("div", { className: E("flex-shrink-0 mb-4", d), children: i.icon }),
2094
+ /* @__PURE__ */ h.jsx("div", { className: R("flex-shrink-0 mb-4", f), children: i.icon }),
2397
2095
  /* @__PURE__ */ h.jsx("h3", { className: "text-xl font-semibold text-gray-900 dark:text-white mb-3", children: i.title }),
2398
2096
  /* @__PURE__ */ h.jsx("p", { className: "text-gray-600 dark:text-gray-300 mb-4", children: i.description }),
2399
2097
  i.examples && i.examples.length > 0 && /* @__PURE__ */ h.jsxs("div", { children: [
2400
2098
  /* @__PURE__ */ h.jsx("h4", { className: "text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2", children: "Examples:" }),
2401
- /* @__PURE__ */ h.jsx("ul", { className: "space-y-1", children: i.examples.map((f, m) => /* @__PURE__ */ h.jsxs("li", { className: "flex items-start", children: [
2099
+ /* @__PURE__ */ h.jsx("ul", { className: "space-y-1", children: i.examples.map((m, d) => /* @__PURE__ */ h.jsxs("li", { className: "flex items-start", children: [
2402
2100
  /* @__PURE__ */ h.jsx(
2403
2101
  "div",
2404
2102
  {
2405
- className: E(
2103
+ className: R(
2406
2104
  "w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",
2407
2105
  i.color ? `bg-${i.color}-500` : "bg-blue-500"
2408
2106
  )
2409
2107
  }
2410
2108
  ),
2411
- /* @__PURE__ */ h.jsx("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: f })
2412
- ] }, m)) })
2109
+ /* @__PURE__ */ h.jsx("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: m })
2110
+ ] }, d)) })
2413
2111
  ] })
2414
2112
  ]
2415
2113
  },
2416
- s
2114
+ c
2417
2115
  );
2418
2116
  }) })
2419
2117
  ] }) });
2420
- }, en = ({
2118
+ }, zr = ({
2421
2119
  className: e,
2422
2120
  children: r,
2423
2121
  disabled: t = !1,
@@ -2425,7 +2123,7 @@ const Lr = {
2425
2123
  }) => /* @__PURE__ */ h.jsx(
2426
2124
  "div",
2427
2125
  {
2428
- className: E(
2126
+ className: R(
2429
2127
  "p-4 rounded-lg border transition-colors",
2430
2128
  "bg-white dark:bg-gray-900",
2431
2129
  "border-gray-200 dark:border-gray-700",
@@ -2441,25 +2139,22 @@ const Lr = {
2441
2139
  }
2442
2140
  );
2443
2141
  export {
2444
- Or as CrmDashboard,
2445
- Dr as FeatureGrid,
2446
- Mr as FeatureListItem,
2447
- zr as HeroBannerWithBadge,
2448
- et as InternalLink,
2449
- Yr as RelatedLinks,
2450
- qr as SalesReport,
2451
- Kr as SubscriberList,
2452
- Br as TopicClusterLinks,
2453
- Fr as UctaUbanner,
2454
- Wr as UfeatureUspotlight,
2455
- Vr as UfunnelUchart,
2456
- Jr as UlandingUbuilder,
2457
- Gr as UnpsUsurvey,
2458
- Qr as UseCaseGrid,
2459
- Xr as UsurveyUbuilder,
2460
- Zr as UtestimonialUslider,
2461
- en as UwelcomeUscreen,
2462
- Ue as createFeature,
2463
- Ir as createSecurityFeatures,
2464
- Hr as generateContextualLinks
2142
+ Sr as CrmDashboard,
2143
+ Pr as FeatureListItem,
2144
+ Tr as HeroBannerWithBadge,
2145
+ qe as InternalLink,
2146
+ Ur as RelatedLinks,
2147
+ Fr as SalesReport,
2148
+ Ir as SubscriberList,
2149
+ Lr as TopicClusterLinks,
2150
+ Nr as UctaUbanner,
2151
+ jr as UfeatureUspotlight,
2152
+ _r as UfunnelUchart,
2153
+ Ar as UlandingUbuilder,
2154
+ Or as UnpsUsurvey,
2155
+ Wr as UseCaseGrid,
2156
+ Dr as UsurveyUbuilder,
2157
+ Mr as UtestimonialUslider,
2158
+ zr as UwelcomeUscreen,
2159
+ $r as generateContextualLinks
2465
2160
  };