@sudobility/email-components 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as N, jsxs as H } from "react/jsx-runtime";
2
- import { cn as j, Label as Or, useLayout as Nr } from "@sudobility/components";
3
- import * as h from "react";
4
- import { useRef as _r, useState as Pr, useEffect as Cr } from "react";
5
- import { ChevronRightIcon as wr, ChevronUpIcon as Ir, ChevronDownIcon as Mr } from "@heroicons/react/24/outline";
2
+ import { cn as j, Label as Or } from "@sudobility/components";
3
+ import * as y from "react";
4
+ import { useRef as Nr, useState as _r, useEffect as Pr } from "react";
5
+ import { ChevronRightIcon as Cr, ChevronUpIcon as wr, ChevronDownIcon as Ir } from "@heroicons/react/24/outline";
6
6
  import { textVariants as nr } from "@sudobility/design";
7
- const Ka = ({
7
+ const za = ({
8
8
  className: e,
9
9
  children: t,
10
10
  disabled: r
@@ -23,7 +23,7 @@ const Ka = ({
23
23
  "aria-label": "SubscriberList",
24
24
  children: t || "SubscriberList Component"
25
25
  }
26
- ), Za = ({
26
+ ), Ka = ({
27
27
  className: e,
28
28
  children: t,
29
29
  disabled: r
@@ -42,7 +42,7 @@ const Ka = ({
42
42
  "aria-label": "AbTestEmail",
43
43
  children: t || "AbTestEmail Component"
44
44
  }
45
- ), Ja = ({
45
+ ), Za = ({
46
46
  className: e,
47
47
  children: t,
48
48
  disabled: r
@@ -63,13 +63,13 @@ const Ka = ({
63
63
  }
64
64
  );
65
65
  var Q = {}, x = {}, Oe = {}, rt;
66
- function Lr() {
66
+ function Mr() {
67
67
  return rt || (rt = 1, Object.defineProperty(Oe, "__esModule", { value: !0 })), Oe;
68
68
  }
69
69
  var Ne = {}, P = {}, nt;
70
- function jr() {
70
+ function Lr() {
71
71
  if (nt) return P;
72
- nt = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.isIndexerErrorResponse = e, P.isIndexerSuccessResponse = t, P.isAddressValidationResponse = r, P.isEmailAccountsResponse = a, P.isRewardsResponse = i, P.isDelegatedToResponse = n, P.isDelegatedFromResponse = u, P.isNonceResponse = l, P.isEntitlementResponse = f, P.isSignInMessageResponse = d, P.isPointsResponse = c, P.isLeaderboardResponse = s, P.isSiteStatsResponse = g, P.isTemplateResponse = y, P.isTemplateListResponse = S, P.isTemplateDeleteResponse = R, P.isWebhookResponse = b, P.isWebhookListResponse = p, P.isWebhookDeleteResponse = A, P.isReferralCodeResponse = E, P.isReferralStatsResponse = T, P.isAuthenticationStatusResponse = _, P.isBlockStatusResponse = k, P.isNameServiceResponse = m, P.isNameResolutionResponse = le;
72
+ nt = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.isIndexerErrorResponse = e, P.isIndexerSuccessResponse = t, P.isAddressValidationResponse = r, P.isEmailAccountsResponse = a, P.isRewardsResponse = i, P.isDelegatedToResponse = n, P.isDelegatedFromResponse = u, P.isNonceResponse = l, P.isEntitlementResponse = f, P.isSignInMessageResponse = s, P.isPointsResponse = c, P.isLeaderboardResponse = d, P.isSiteStatsResponse = g, P.isTemplateResponse = E, P.isTemplateListResponse = S, P.isTemplateDeleteResponse = R, P.isWebhookResponse = b, P.isWebhookListResponse = A, P.isWebhookDeleteResponse = p, P.isReferralCodeResponse = h, P.isReferralStatsResponse = T, P.isAuthenticationStatusResponse = _, P.isBlockStatusResponse = k, P.isNameServiceResponse = m, P.isNameResolutionResponse = le;
73
73
  function e(o) {
74
74
  return !!(o && typeof o == "object" && "error" in o && "success" in o && !o.success);
75
75
  }
@@ -97,19 +97,19 @@ function jr() {
97
97
  function f(o) {
98
98
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "entitlement" in o.data && "verified" in o.data);
99
99
  }
100
- function d(o) {
100
+ function s(o) {
101
101
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "message" in o.data && "walletAddress" in o.data);
102
102
  }
103
103
  function c(o) {
104
104
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "pointsEarned" in o.data && "walletAddress" in o.data);
105
105
  }
106
- function s(o) {
106
+ function d(o) {
107
107
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "leaderboard" in o.data);
108
108
  }
109
109
  function g(o) {
110
110
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "totalPoints" in o.data);
111
111
  }
112
- function y(o) {
112
+ function E(o) {
113
113
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "template" in o.data && "verified" in o.data && o.data.template && typeof o.data.template == "object" && "id" in o.data.template && "name" in o.data.template && "subject" in o.data.template && "body" in o.data.template);
114
114
  }
115
115
  function S(o) {
@@ -121,13 +121,13 @@ function jr() {
121
121
  function b(o) {
122
122
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "webhook" in o.data && "verified" in o.data && o.data.webhook && typeof o.data.webhook == "object" && "id" in o.data.webhook && "webhookUrl" in o.data.webhook);
123
123
  }
124
- function p(o) {
124
+ function A(o) {
125
125
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "webhooks" in o.data && "total" in o.data && "hasMore" in o.data && "verified" in o.data && Array.isArray(o.data.webhooks));
126
126
  }
127
- function A(o) {
127
+ function p(o) {
128
128
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "message" in o.data && "verified" in o.data);
129
129
  }
130
- function E(o) {
130
+ function h(o) {
131
131
  return !!(o && typeof o == "object" && "success" in o && "data" in o && o.data && typeof o.data == "object" && "walletAddress" in o.data && "referralCode" in o.data && "createdAt" in o.data);
132
132
  }
133
133
  function T(o) {
@@ -148,10 +148,10 @@ function jr() {
148
148
  return P;
149
149
  }
150
150
  var at;
151
- function Dr() {
151
+ function jr() {
152
152
  return at || (at = 1, (function(e) {
153
153
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isIndexerSuccessResponse = e.isIndexerErrorResponse = e.isWebhookDeleteResponse = e.isWebhookListResponse = e.isWebhookResponse = e.isTemplateDeleteResponse = e.isTemplateListResponse = e.isTemplateResponse = e.isNameResolutionResponse = e.isNameServiceResponse = e.isBlockStatusResponse = e.isAuthenticationStatusResponse = e.isReferralStatsResponse = e.isReferralCodeResponse = e.isSiteStatsResponse = e.isLeaderboardResponse = e.isPointsResponse = e.isSignInMessageResponse = e.isEntitlementResponse = e.isNonceResponse = e.isDelegatedFromResponse = e.isDelegatedToResponse = e.isRewardsResponse = e.isEmailAccountsResponse = e.isAddressValidationResponse = void 0;
154
- var t = jr();
154
+ var t = Lr();
155
155
  Object.defineProperty(e, "isAddressValidationResponse", { enumerable: !0, get: function() {
156
156
  return t.isAddressValidationResponse;
157
157
  } }), Object.defineProperty(e, "isEmailAccountsResponse", { enumerable: !0, get: function() {
@@ -299,26 +299,26 @@ function ue() {
299
299
  (function(m) {
300
300
  m.LEFT = "left", m.RIGHT = "right";
301
301
  })(f || (v.MediumView = f = {}));
302
- var d;
302
+ var s;
303
303
  (function(m) {
304
304
  m.OPEN = "open", m.REPLY = "reply", m.FORWARD = "forward", m.DELETE = "delete", m.STAR = "star", m.UNSTAR = "unstar", m.MARK_READ = "mark_read", m.MARK_UNREAD = "mark_unread";
305
- })(d || (v.EmailAction = d = {}));
305
+ })(s || (v.EmailAction = s = {}));
306
306
  var c;
307
307
  (function(m) {
308
308
  m.VIEW = "view", m.PURCHASE = "purchase", m.CANCEL = "cancel", m.RESTORE = "restore";
309
309
  })(c || (v.SubscriptionAction = c = {}));
310
- var s;
310
+ var d;
311
311
  (function(m) {
312
312
  m.IDLE = "idle", m.LOADING = "loading", m.SUCCESS = "success", m.ERROR = "error";
313
- })(s || (v.RequestStatus = s = {}));
313
+ })(d || (v.RequestStatus = d = {}));
314
314
  var g;
315
315
  (function(m) {
316
316
  m.INFO = "info", m.SUCCESS = "success", m.WARNING = "warning", m.ERROR = "error";
317
317
  })(g || (v.NotificationType = g = {}));
318
- var y;
318
+ var E;
319
319
  (function(m) {
320
320
  m.DIRECT = "direct", m.ENS = "ens", m.SNS = "sns", m.CUSTOM = "custom";
321
- })(y || (v.EmailAddressType = y = {}));
321
+ })(E || (v.EmailAddressType = E = {}));
322
322
  var S;
323
323
  (function(m) {
324
324
  m.ASC = "asc", m.DESC = "desc";
@@ -331,18 +331,18 @@ function ue() {
331
331
  (function(m) {
332
332
  m.UNKNOWN = "unknown", m.NONE = "none", m.WIFI = "wifi", m.CELLULAR_2G = "2g", m.CELLULAR_3G = "3g", m.CELLULAR_4G = "4g", m.CELLULAR_5G = "5g", m.ETHERNET = "ethernet";
333
333
  })(b || (v.ConnectionType = b = {}));
334
- var p;
334
+ var A;
335
335
  (function(m) {
336
336
  m.UNKNOWN = "unknown", m.DISCONNECTED = "disconnected", m.CONNECTING = "connecting", m.CONNECTED = "connected", m.RECONNECTING = "reconnecting", m.VERIFIED = "verified", m.LIMITED = "limited", m.ERROR = "error";
337
- })(p || (v.ConnectionState = p = {}));
338
- var A;
337
+ })(A || (v.ConnectionState = A = {}));
338
+ var p;
339
339
  (function(m) {
340
340
  m.WEB = "web", m.REACT_NATIVE = "react_native", m.DESKTOP = "desktop";
341
- })(A || (v.PlatformType = A = {}));
342
- var E;
341
+ })(p || (v.PlatformType = p = {}));
342
+ var h;
343
343
  (function(m) {
344
344
  m.VALID = "valid", m.INVALID = "invalid", m.PENDING = "pending", m.UNKNOWN = "unknown";
345
- })(E || (v.EmailValidationState = E = {}));
345
+ })(h || (v.EmailValidationState = h = {}));
346
346
  var T;
347
347
  (function(m) {
348
348
  m.AI_SEARCH = "ai_search", m.SMART_COMPOSE = "smart_compose", m.ADVANCED_FILTERS = "advanced_filters", m.DARK_MODE = "dark_mode", m.NOTIFICATIONS = "notifications", m.ANALYTICS = "analytics";
@@ -357,7 +357,7 @@ function ue() {
357
357
  })(k || (v.Currency = k = {})), v;
358
358
  }
359
359
  var Pe = {}, ot;
360
- function kr() {
360
+ function Dr() {
361
361
  return ot || (ot = 1, (function(e) {
362
362
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getWalletConnectionState = e.isWalletVerified = e.isWalletConnected = void 0;
363
363
  const t = ue(), r = (n) => n != null && !!n.walletAddress;
@@ -369,7 +369,7 @@ function kr() {
369
369
  })(Pe)), Pe;
370
370
  }
371
371
  var lt;
372
- function Ur() {
372
+ function kr() {
373
373
  return lt || (lt = 1, (function(e) {
374
374
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isWalletVerified = e.isWalletConnected = e.getWalletConnectionState = e.Theme = e.SubscriptionAction = e.SortOrder = e.RequestStatus = e.PlatformType = e.NotificationType = e.MobileView = e.MediumView = e.FontSize = e.FeatureFlag = e.ErrorType = e.EmailValidationState = e.EmailSortCriteria = e.EmailFolderUtils = e.EmailComposeType = e.EmailAddressType = e.EmailAction = e.Currency = e.ConnectionType = e.ConnectionState = e.ChainType = e.Chain = e.AuthStatus = void 0;
375
375
  var t = ue();
@@ -420,7 +420,7 @@ function Ur() {
420
420
  } }), Object.defineProperty(e, "Theme", { enumerable: !0, get: function() {
421
421
  return t.Theme;
422
422
  } });
423
- var r = kr();
423
+ var r = Dr();
424
424
  Object.defineProperty(e, "getWalletConnectionState", { enumerable: !0, get: function() {
425
425
  return r.getWalletConnectionState;
426
426
  } }), Object.defineProperty(e, "isWalletConnected", { enumerable: !0, get: function() {
@@ -487,27 +487,27 @@ function Ye() {
487
487
  var $ = {}, W = {}, st;
488
488
  function ir() {
489
489
  if (st) return W;
490
- st = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.AddressType = void 0, W.isENSName = a, W.isSNSName = i, W.getAddressType = n, W.isValidWalletAddress = u, W.isValidSignature = l, W.parseEmailAddress = f, W.formatWalletAddress = d, W.getChainDisplayName = c;
490
+ st = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.AddressType = void 0, W.isENSName = a, W.isSNSName = i, W.getAddressType = n, W.isValidWalletAddress = u, W.isValidSignature = l, W.parseEmailAddress = f, W.formatWalletAddress = s, W.getChainDisplayName = c;
491
491
  const e = ue(), t = Ye();
492
492
  var r;
493
- (function(s) {
494
- s.EVMAddress = "EVMAddress", s.SolanaAddress = "SolanaAddress", s.ENSName = "ENSName", s.SNSName = "SNSName";
493
+ (function(d) {
494
+ d.EVMAddress = "EVMAddress", d.SolanaAddress = "SolanaAddress", d.ENSName = "ENSName", d.SNSName = "SNSName";
495
495
  })(r || (W.AddressType = r = {}));
496
- function a(s) {
497
- const g = s.toLowerCase();
496
+ function a(d) {
497
+ const g = d.toLowerCase();
498
498
  if (!g.endsWith(".eth") && !g.endsWith(".box"))
499
499
  return !1;
500
- const y = (g.endsWith(".eth"), g.slice(0, -4));
501
- if (y.length === 0)
500
+ const E = (g.endsWith(".eth"), g.slice(0, -4));
501
+ if (E.length === 0)
502
502
  return !1;
503
- const S = y.split("."), R = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/;
503
+ const S = E.split("."), R = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/;
504
504
  for (const b of S)
505
505
  if (b.length === 0 || !R.test(b) || b.includes("--"))
506
506
  return !1;
507
507
  return !0;
508
508
  }
509
- function i(s) {
510
- const g = s.toLowerCase(), S = [
509
+ function i(d) {
510
+ const g = d.toLowerCase(), S = [
511
511
  ".sol",
512
512
  ".abc",
513
513
  ".bonk",
@@ -516,81 +516,81 @@ function ir() {
516
516
  ".dao",
517
517
  ".defi",
518
518
  ".web3"
519
- ].find((A) => g.endsWith(A));
519
+ ].find((p) => g.endsWith(p));
520
520
  if (!S)
521
521
  return !1;
522
522
  const R = g.slice(0, -S.length);
523
523
  if (R.length === 0)
524
524
  return !1;
525
- const b = R.split("."), p = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/;
526
- for (const A of b)
527
- if (A.length === 0 || !p.test(A) || A.includes("--"))
525
+ const b = R.split("."), A = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/;
526
+ for (const p of b)
527
+ if (p.length === 0 || !A.test(p) || p.includes("--"))
528
528
  return !1;
529
529
  return !0;
530
530
  }
531
- function n(s, g = void 0) {
532
- if ((0, t.isEvmAddress)(s))
531
+ function n(d, g = void 0) {
532
+ if ((0, t.isEvmAddress)(d))
533
533
  return r.EVMAddress;
534
- if ((0, t.isSolanaAddress)(s))
534
+ if ((0, t.isSolanaAddress)(d))
535
535
  return r.SolanaAddress;
536
- if (g && s.includes(".")) {
536
+ if (g && d.includes(".")) {
537
537
  if (g === r.EVMAddress)
538
538
  return r.ENSName;
539
539
  if (g === r.SolanaAddress)
540
540
  return r.SNSName;
541
541
  }
542
542
  }
543
- function u(s, g) {
544
- if (!s || typeof s != "string")
543
+ function u(d, g) {
544
+ if (!d || typeof d != "string")
545
545
  return !1;
546
- const y = n(s);
546
+ const E = n(d);
547
547
  switch (g) {
548
548
  case e.ChainType.EVM:
549
- return y === r.EVMAddress || y === r.ENSName;
549
+ return E === r.EVMAddress || E === r.ENSName;
550
550
  case e.ChainType.SOLANA:
551
- return y === r.SolanaAddress || y === r.SNSName;
551
+ return E === r.SolanaAddress || E === r.SNSName;
552
552
  default:
553
- return !!y;
553
+ return !!E;
554
554
  }
555
555
  }
556
- function l(s, g) {
557
- if (!s || typeof s != "string")
556
+ function l(d, g) {
557
+ if (!d || typeof d != "string")
558
558
  return !1;
559
559
  switch (g) {
560
560
  case e.ChainType.EVM:
561
- return /^0x[a-fA-F0-9]{130}$/.test(s);
561
+ return /^0x[a-fA-F0-9]{130}$/.test(d);
562
562
  case e.ChainType.SOLANA:
563
- return /^[1-9A-HJ-NP-Za-km-z]{87,88}$/.test(s);
563
+ return /^[1-9A-HJ-NP-Za-km-z]{87,88}$/.test(d);
564
564
  default:
565
- return s.length > 50;
565
+ return d.length > 50;
566
566
  }
567
567
  }
568
- function f(s) {
569
- if (!s || typeof s != "string")
568
+ function f(d) {
569
+ if (!d || typeof d != "string")
570
570
  return;
571
- const g = s.split("@");
571
+ const g = d.split("@");
572
572
  if (g.length !== 2)
573
573
  return;
574
- const [y, S] = g;
575
- if (!y || !S)
574
+ const [E, S] = g;
575
+ if (!E || !S)
576
576
  return;
577
- const R = n(y);
577
+ const R = n(E);
578
578
  return {
579
- address: y,
579
+ address: E,
580
580
  domain: S,
581
581
  type: R
582
582
  };
583
583
  }
584
- function d(s) {
585
- if (!s || s.length < 10)
586
- return s;
587
- const g = n(s);
588
- return (g === r.ENSName || g === r.SNSName) && s.length <= 20 ? s : `${s.slice(0, 6)}...${s.slice(-4)}`;
584
+ function s(d) {
585
+ if (!d || d.length < 10)
586
+ return d;
587
+ const g = n(d);
588
+ return (g === r.ENSName || g === r.SNSName) && d.length <= 20 ? d : `${d.slice(0, 6)}...${d.slice(-4)}`;
589
589
  }
590
- function c(s) {
591
- if (!s)
590
+ function c(d) {
591
+ if (!d)
592
592
  return "Unknown Chain";
593
- switch (s) {
593
+ switch (d) {
594
594
  case e.ChainType.EVM:
595
595
  return "EVM Chain";
596
596
  case e.ChainType.SOLANA:
@@ -602,7 +602,7 @@ function ir() {
602
602
  return W;
603
603
  }
604
604
  var dt;
605
- function Wr() {
605
+ function Ur() {
606
606
  if (dt) return $;
607
607
  dt = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.validateDomain = t, $.validateMessage = r, $.validateAddress = a, $.validateAmount = i;
608
608
  const e = ir();
@@ -660,7 +660,7 @@ function Wr() {
660
660
  return $;
661
661
  }
662
662
  var ft;
663
- function Vr() {
663
+ function Wr() {
664
664
  return ft || (ft = 1, (function(e) {
665
665
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateMessage = e.validateDomain = e.validateAmount = e.validateAddress = e.isSolanaRecipient = e.isSolanaAddress = e.isEvmRecipient = e.isEvmAddress = e.TransactionStatus = e.PROTOCOL_CONSTANTS = e.MessageType = void 0;
666
666
  var t = Ye();
@@ -679,7 +679,7 @@ function Vr() {
679
679
  } }), Object.defineProperty(e, "isSolanaRecipient", { enumerable: !0, get: function() {
680
680
  return t.isSolanaRecipient;
681
681
  } });
682
- var r = Wr();
682
+ var r = Ur();
683
683
  Object.defineProperty(e, "validateAddress", { enumerable: !0, get: function() {
684
684
  return r.validateAddress;
685
685
  } }), Object.defineProperty(e, "validateAmount", { enumerable: !0, get: function() {
@@ -692,7 +692,7 @@ function Vr() {
692
692
  })(Ce)), Ce;
693
693
  }
694
694
  var we = {}, de = {}, mt;
695
- function Fr() {
695
+ function Vr() {
696
696
  if (mt) return de;
697
697
  mt = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.StorageType = void 0;
698
698
  var e;
@@ -701,17 +701,17 @@ function Fr() {
701
701
  })(e || (de.StorageType = e = {})), de;
702
702
  }
703
703
  var gt;
704
- function Br() {
704
+ function Fr() {
705
705
  return gt || (gt = 1, (function(e) {
706
706
  Object.defineProperty(e, "__esModule", { value: !0 }), e.StorageType = void 0;
707
- var t = Fr();
707
+ var t = Vr();
708
708
  Object.defineProperty(e, "StorageType", { enumerable: !0, get: function() {
709
709
  return t.StorageType;
710
710
  } });
711
711
  })(we)), we;
712
712
  }
713
713
  var Ie = {}, ee = {}, bt;
714
- function qr() {
714
+ function Br() {
715
715
  if (bt) return ee;
716
716
  bt = 1, Object.defineProperty(ee, "__esModule", { value: !0 }), ee.AnalyticsEventBuilder = ee.AnalyticsEvent = void 0;
717
717
  var e;
@@ -837,7 +837,7 @@ function qr() {
837
837
  return ee.AnalyticsEventBuilder = t, ee;
838
838
  }
839
839
  var Me = {}, ht;
840
- function Hr() {
840
+ function qr() {
841
841
  return ht || (ht = 1, (function(e) {
842
842
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ProcessedEventName = e.ContractType = e.ChainType = void 0;
843
843
  var t = ue();
@@ -855,7 +855,7 @@ function Hr() {
855
855
  })(Me)), Me;
856
856
  }
857
857
  var fe = {}, yt;
858
- function Gr() {
858
+ function Hr() {
859
859
  if (yt) return fe;
860
860
  yt = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.NetworkError = void 0;
861
861
  class e extends Error {
@@ -866,7 +866,7 @@ function Gr() {
866
866
  return fe.NetworkError = e, fe;
867
867
  }
868
868
  var me = {}, Et;
869
- function Yr() {
869
+ function Gr() {
870
870
  if (Et) return me;
871
871
  Et = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.WalletType = void 0;
872
872
  var e;
@@ -875,16 +875,16 @@ function Yr() {
875
875
  })(e || (me.WalletType = e = {})), me;
876
876
  }
877
877
  var St;
878
- function zr() {
878
+ function Yr() {
879
879
  return St || (St = 1, (function(e) {
880
880
  Object.defineProperty(e, "__esModule", { value: !0 }), e.WalletType = e.NetworkError = e.ProcessedEventName = e.ContractType = e.ChainType = e.AnalyticsEventBuilder = e.AnalyticsEvent = void 0;
881
- var t = qr();
881
+ var t = Br();
882
882
  Object.defineProperty(e, "AnalyticsEvent", { enumerable: !0, get: function() {
883
883
  return t.AnalyticsEvent;
884
884
  } }), Object.defineProperty(e, "AnalyticsEventBuilder", { enumerable: !0, get: function() {
885
885
  return t.AnalyticsEventBuilder;
886
886
  } });
887
- var r = Hr();
887
+ var r = qr();
888
888
  Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
889
889
  return r.ChainType;
890
890
  } }), Object.defineProperty(e, "ContractType", { enumerable: !0, get: function() {
@@ -892,18 +892,18 @@ function zr() {
892
892
  } }), Object.defineProperty(e, "ProcessedEventName", { enumerable: !0, get: function() {
893
893
  return r.ProcessedEventName;
894
894
  } });
895
- var a = Gr();
895
+ var a = Hr();
896
896
  Object.defineProperty(e, "NetworkError", { enumerable: !0, get: function() {
897
897
  return a.NetworkError;
898
898
  } });
899
- var i = Yr();
899
+ var i = Gr();
900
900
  Object.defineProperty(e, "WalletType", { enumerable: !0, get: function() {
901
901
  return i.WalletType;
902
902
  } });
903
903
  })(Ie)), Ie;
904
904
  }
905
905
  var te = {}, V = {}, pt;
906
- function Kr() {
906
+ function zr() {
907
907
  if (pt) return V;
908
908
  pt = 1, Object.defineProperty(V, "__esModule", { value: !0 }), V.FeeType = V.ClaimType = V.ConfirmationStatus = void 0, V.isEVMResponse = i, V.isSolanaResponse = n, V.isMailboxErrorResponse = u;
909
909
  const e = ue();
@@ -931,7 +931,7 @@ function Kr() {
931
931
  return V;
932
932
  }
933
933
  var At;
934
- function Zr() {
934
+ function Kr() {
935
935
  return At || (At = 1, (function(e) {
936
936
  var t = te && te.__createBinding || (Object.create ? (function(a, i, n, u) {
937
937
  u === void 0 && (u = n);
@@ -944,11 +944,11 @@ function Zr() {
944
944
  })), r = te && te.__exportStar || function(a, i) {
945
945
  for (var n in a) n !== "default" && !Object.prototype.hasOwnProperty.call(i, n) && t(i, a, n);
946
946
  };
947
- Object.defineProperty(e, "__esModule", { value: !0 }), r(Kr(), e);
947
+ Object.defineProperty(e, "__esModule", { value: !0 }), r(zr(), e);
948
948
  })(te)), te;
949
949
  }
950
950
  var re = {}, D = {}, Rt;
951
- function Jr() {
951
+ function Zr() {
952
952
  if (Rt) return D;
953
953
  Rt = 1, Object.defineProperty(D, "__esModule", { value: !0 }), D.ReviewRejectType = D.ApplicantType = D.SumsubReviewAnswer = D.SumsubReviewStatus = D.KYCApplicationStatus = D.KYCVerificationLevel = void 0;
954
954
  var e;
@@ -977,7 +977,7 @@ function Jr() {
977
977
  })(n || (D.ReviewRejectType = n = {})), D;
978
978
  }
979
979
  var vt;
980
- function Xr() {
980
+ function Jr() {
981
981
  return vt || (vt = 1, (function(e) {
982
982
  var t = re && re.__createBinding || (Object.create ? (function(a, i, n, u) {
983
983
  u === void 0 && (u = n);
@@ -990,13 +990,13 @@ function Xr() {
990
990
  })), r = re && re.__exportStar || function(a, i) {
991
991
  for (var n in a) n !== "default" && !Object.prototype.hasOwnProperty.call(i, n) && t(i, a, n);
992
992
  };
993
- Object.defineProperty(e, "__esModule", { value: !0 }), r(Jr(), e);
993
+ Object.defineProperty(e, "__esModule", { value: !0 }), r(Zr(), e);
994
994
  })(re)), re;
995
995
  }
996
996
  var ne = {}, C = {}, Tt;
997
- function Qr() {
997
+ function Xr() {
998
998
  if (Tt) return C;
999
- Tt = 1, Object.defineProperty(C, "__esModule", { value: !0 }), C.isWildduckWebSocketErrorResponse = C.isWildduckDisconnectMessage = C.isWildduckUpdateMessage = C.isWildduckDataMessage = C.isWildduckFetchRequest = C.isWildduckUnsubscribeRequest = C.isWildduckSubscribeRequest = void 0, C.createWildduckSubscribeRequest = l, C.createWildduckUnsubscribeRequest = f, C.createWildduckFetchMessagesRequest = d;
999
+ Tt = 1, Object.defineProperty(C, "__esModule", { value: !0 }), C.isWildduckWebSocketErrorResponse = C.isWildduckDisconnectMessage = C.isWildduckUpdateMessage = C.isWildduckDataMessage = C.isWildduckFetchRequest = C.isWildduckUnsubscribeRequest = C.isWildduckSubscribeRequest = void 0, C.createWildduckSubscribeRequest = l, C.createWildduckUnsubscribeRequest = f, C.createWildduckFetchMessagesRequest = s;
1000
1000
  const e = (c) => typeof c == "object" && c !== null && "type" in c && c.type === "subscribe" && "channel" in c && "data" in c;
1001
1001
  C.isWildduckSubscribeRequest = e;
1002
1002
  const t = (c) => typeof c == "object" && c !== null && "type" in c && c.type === "unsubscribe" && "channel" in c;
@@ -1011,11 +1011,11 @@ function Qr() {
1011
1011
  C.isWildduckDisconnectMessage = n;
1012
1012
  const u = (c) => typeof c == "object" && c !== null && "success" in c && c.success === !1 && "error" in c && "message" in c;
1013
1013
  C.isWildduckWebSocketErrorResponse = u;
1014
- function l(c, s) {
1014
+ function l(c, d) {
1015
1015
  return {
1016
1016
  type: "subscribe",
1017
1017
  channel: c,
1018
- data: s
1018
+ data: d
1019
1019
  };
1020
1020
  }
1021
1021
  function f(c) {
@@ -1025,20 +1025,20 @@ function Qr() {
1025
1025
  data: {}
1026
1026
  };
1027
1027
  }
1028
- function d(c, s) {
1028
+ function s(c, d) {
1029
1029
  return {
1030
1030
  type: "fetch",
1031
1031
  channel: "messages",
1032
1032
  data: {
1033
1033
  mailboxId: c,
1034
- ...s && { cursor: s }
1034
+ ...d && { cursor: d }
1035
1035
  }
1036
1036
  };
1037
1037
  }
1038
1038
  return C;
1039
1039
  }
1040
1040
  var Ot;
1041
- function xr() {
1041
+ function Qr() {
1042
1042
  return Ot || (Ot = 1, (function(e) {
1043
1043
  var t = ne && ne.__createBinding || (Object.create ? (function(a, i, n, u) {
1044
1044
  u === void 0 && (u = n);
@@ -1051,7 +1051,7 @@ function xr() {
1051
1051
  })), r = ne && ne.__exportStar || function(a, i) {
1052
1052
  for (var n in a) n !== "default" && !Object.prototype.hasOwnProperty.call(i, n) && t(i, a, n);
1053
1053
  };
1054
- Object.defineProperty(e, "__esModule", { value: !0 }), r(ar(), e), r(Qr(), e);
1054
+ Object.defineProperty(e, "__esModule", { value: !0 }), r(ar(), e), r(Xr(), e);
1055
1055
  })(ne)), ne;
1056
1056
  }
1057
1057
  var Nt;
@@ -1068,11 +1068,11 @@ function _t() {
1068
1068
  })), r = x && x.__exportStar || function(a, i) {
1069
1069
  for (var n in a) n !== "default" && !Object.prototype.hasOwnProperty.call(i, n) && t(i, a, n);
1070
1070
  };
1071
- Object.defineProperty(e, "__esModule", { value: !0 }), r(Lr(), e), r(Dr(), e), r(Ur(), e), r(Vr(), e), r(Br(), e), r(zr(), e), r(Zr(), e), r(Xr(), e), r(xr(), e);
1071
+ Object.defineProperty(e, "__esModule", { value: !0 }), r(Mr(), e), r(jr(), e), r(kr(), e), r(Wr(), e), r(Fr(), e), r(Yr(), e), r(Kr(), e), r(Jr(), e), r(Qr(), e);
1072
1072
  })(x)), x;
1073
1073
  }
1074
1074
  var ae = {}, Le = {}, ge = {}, Pt;
1075
- function $r() {
1075
+ function xr() {
1076
1076
  if (Pt) return ge;
1077
1077
  Pt = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.Web3UsernameValidator = void 0;
1078
1078
  const e = ue();
@@ -1167,12 +1167,12 @@ function $r() {
1167
1167
  ], ge;
1168
1168
  }
1169
1169
  var je = {}, Ct;
1170
- function en() {
1170
+ function $r() {
1171
1171
  return Ct || (Ct = 1, (function(e) {
1172
1172
  Object.defineProperty(e, "__esModule", { value: !0 }), e.parseJson = e.createAssertion = e.isUrl = e.isEmail = e.isValidDate = e.isErrorResponse = e.isSuccessResponse = e.isApiResponse = e.optional = e.validateArray = e.hasRequiredProperties = e.isNullish = e.isArray = e.isObject = e.isBoolean = e.isNumber = e.isString = e.createValidator = void 0;
1173
- const t = (E, T) => (_) => {
1173
+ const t = (h, T) => (_) => {
1174
1174
  try {
1175
- return E(_) ? { isValid: !0, data: _ } : { isValid: !1, error: `Invalid ${T}`, data: null };
1175
+ return h(_) ? { isValid: !0, data: _ } : { isValid: !1, error: `Invalid ${T}`, data: null };
1176
1176
  } catch (k) {
1177
1177
  return {
1178
1178
  isValid: !1,
@@ -1182,57 +1182,57 @@ function en() {
1182
1182
  }
1183
1183
  };
1184
1184
  e.createValidator = t;
1185
- const r = (E) => typeof E == "string";
1185
+ const r = (h) => typeof h == "string";
1186
1186
  e.isString = r;
1187
- const a = (E) => typeof E == "number" && !isNaN(E);
1187
+ const a = (h) => typeof h == "number" && !isNaN(h);
1188
1188
  e.isNumber = a;
1189
- const i = (E) => typeof E == "boolean";
1189
+ const i = (h) => typeof h == "boolean";
1190
1190
  e.isBoolean = i;
1191
- const n = (E) => typeof E == "object" && E !== null && !Array.isArray(E);
1191
+ const n = (h) => typeof h == "object" && h !== null && !Array.isArray(h);
1192
1192
  e.isObject = n;
1193
- const u = (E) => Array.isArray(E);
1193
+ const u = (h) => Array.isArray(h);
1194
1194
  e.isArray = u;
1195
- const l = (E) => E == null;
1195
+ const l = (h) => h == null;
1196
1196
  e.isNullish = l;
1197
- const f = (E, T) => (0, e.isObject)(E) ? T.every((_) => _ in E) : !1;
1197
+ const f = (h, T) => (0, e.isObject)(h) ? T.every((_) => _ in h) : !1;
1198
1198
  e.hasRequiredProperties = f;
1199
- const d = (E, T) => (0, e.isArray)(E) ? E.every(T) : !1;
1200
- e.validateArray = d;
1201
- const c = (E) => (T) => T === void 0 || E(T);
1199
+ const s = (h, T) => (0, e.isArray)(h) ? h.every(T) : !1;
1200
+ e.validateArray = s;
1201
+ const c = (h) => (T) => T === void 0 || h(T);
1202
1202
  e.optional = c;
1203
- const s = (E) => (0, e.isObject)(E) && (0, e.isBoolean)(E.success);
1204
- e.isApiResponse = s;
1205
- const g = (E, T) => !(0, e.isApiResponse)(E) || !E.success ? !1 : T && "data" in E ? T(E.data) : !0;
1203
+ const d = (h) => (0, e.isObject)(h) && (0, e.isBoolean)(h.success);
1204
+ e.isApiResponse = d;
1205
+ const g = (h, T) => !(0, e.isApiResponse)(h) || !h.success ? !1 : T && "data" in h ? T(h.data) : !0;
1206
1206
  e.isSuccessResponse = g;
1207
- const y = (E) => (0, e.isApiResponse)(E) && !E.success && "error" in E && (0, e.isString)(E.error);
1208
- e.isErrorResponse = y;
1209
- const S = (E) => {
1210
- if (!(0, e.isString)(E))
1207
+ const E = (h) => (0, e.isApiResponse)(h) && !h.success && "error" in h && (0, e.isString)(h.error);
1208
+ e.isErrorResponse = E;
1209
+ const S = (h) => {
1210
+ if (!(0, e.isString)(h))
1211
1211
  return !1;
1212
- const T = new Date(E);
1212
+ const T = new Date(h);
1213
1213
  return !isNaN(T.getTime());
1214
1214
  };
1215
1215
  e.isValidDate = S;
1216
- const R = (E) => (0, e.isString)(E) ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(E) : !1;
1216
+ const R = (h) => (0, e.isString)(h) ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h) : !1;
1217
1217
  e.isEmail = R;
1218
- const b = (E) => {
1219
- if (!(0, e.isString)(E))
1218
+ const b = (h) => {
1219
+ if (!(0, e.isString)(h))
1220
1220
  return !1;
1221
1221
  try {
1222
- return new URL(E), !0;
1222
+ return new URL(h), !0;
1223
1223
  } catch {
1224
1224
  return !1;
1225
1225
  }
1226
1226
  };
1227
1227
  e.isUrl = b;
1228
- const p = (E, T) => (_, k = T) => {
1229
- if (!E(_))
1228
+ const A = (h, T) => (_, k = T) => {
1229
+ if (!h(_))
1230
1230
  throw new TypeError(`Invalid ${k}: expected ${T}`);
1231
1231
  };
1232
- e.createAssertion = p;
1233
- const A = (E, T) => {
1232
+ e.createAssertion = A;
1233
+ const p = (h, T) => {
1234
1234
  try {
1235
- const _ = JSON.parse(E);
1235
+ const _ = JSON.parse(h);
1236
1236
  return T ? T(_) ? { isValid: !0, data: _ } : {
1237
1237
  isValid: !1,
1238
1238
  error: "Parsed JSON does not match expected type",
@@ -1246,18 +1246,18 @@ function en() {
1246
1246
  };
1247
1247
  }
1248
1248
  };
1249
- e.parseJson = A;
1249
+ e.parseJson = p;
1250
1250
  })(je)), je;
1251
1251
  }
1252
1252
  var wt;
1253
- function tn() {
1253
+ function en() {
1254
1254
  return wt || (wt = 1, (function(e) {
1255
1255
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateArray = e.parseJson = e.optional = e.isValidDate = e.isUrl = e.isSuccessResponse = e.isString = e.isObject = e.isNumber = e.isNullish = e.isErrorResponse = e.isEmail = e.isBoolean = e.isArray = e.isApiResponse = e.hasRequiredProperties = e.createValidator = e.createAssertion = e.Web3UsernameValidator = void 0;
1256
- var t = $r();
1256
+ var t = xr();
1257
1257
  Object.defineProperty(e, "Web3UsernameValidator", { enumerable: !0, get: function() {
1258
1258
  return t.Web3UsernameValidator;
1259
1259
  } });
1260
- var r = en();
1260
+ var r = $r();
1261
1261
  Object.defineProperty(e, "createAssertion", { enumerable: !0, get: function() {
1262
1262
  return r.createAssertion;
1263
1263
  } }), Object.defineProperty(e, "createValidator", { enumerable: !0, get: function() {
@@ -1298,32 +1298,32 @@ function tn() {
1298
1298
  })(Le)), Le;
1299
1299
  }
1300
1300
  var De = {}, F = {}, It;
1301
- function rn() {
1301
+ function tn() {
1302
1302
  if (It) return F;
1303
1303
  It = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.createMultiChainId = e, F.createUserMultiChainId = t, F.createChainStatsId = r, F.createDelegationId = a, F.normalizeAddress = i, F.formatBigInt = n, F.isZeroAddress = u, F.isTestNet = l, F.validateEventArgs = f;
1304
- function e(d, c, s) {
1305
- return `${d}-${c}-${s}`;
1304
+ function e(s, c, d) {
1305
+ return `${s}-${c}-${d}`;
1306
1306
  }
1307
- function t(d, c) {
1308
- return `${d}-${c.toLowerCase()}`;
1307
+ function t(s, c) {
1308
+ return `${s}-${c.toLowerCase()}`;
1309
1309
  }
1310
- function r(d) {
1311
- return `${d}-global`;
1310
+ function r(s) {
1311
+ return `${s}-global`;
1312
1312
  }
1313
- function a(d, c) {
1314
- return `${d.toLowerCase()}-${c}`;
1313
+ function a(s, c) {
1314
+ return `${s.toLowerCase()}-${c}`;
1315
1315
  }
1316
- function i(d) {
1317
- return d.toLowerCase();
1316
+ function i(s) {
1317
+ return s.toLowerCase();
1318
1318
  }
1319
- function n(d, c = 18) {
1320
- const s = BigInt(10 ** c), g = d / s, y = d % s;
1321
- return y === 0n ? g.toString() : `${g}.${y.toString().padStart(c, "0").replace(/0+$/, "")}`;
1319
+ function n(s, c = 18) {
1320
+ const d = BigInt(10 ** c), g = s / d, E = s % d;
1321
+ return E === 0n ? g.toString() : `${g}.${E.toString().padStart(c, "0").replace(/0+$/, "")}`;
1322
1322
  }
1323
- function u(d) {
1324
- return d.toLowerCase() === "0x0000000000000000000000000000000000000000";
1323
+ function u(s) {
1324
+ return s.toLowerCase() === "0x0000000000000000000000000000000000000000";
1325
1325
  }
1326
- function l(d) {
1326
+ function l(s) {
1327
1327
  const c = /* @__PURE__ */ new Set([
1328
1328
  31337,
1329
1329
  // Hardhat (local development)
@@ -1341,7 +1341,7 @@ function rn() {
1341
1341
  // Base Sepolia (if configured)
1342
1342
  43113
1343
1343
  // Avalanche Fuji (if configured)
1344
- ]), s = /* @__PURE__ */ new Set([
1344
+ ]), d = /* @__PURE__ */ new Set([
1345
1345
  -102,
1346
1346
  // Solana Devnet
1347
1347
  -103,
@@ -1349,18 +1349,18 @@ function rn() {
1349
1349
  -104
1350
1350
  // Solana Localnet
1351
1351
  ]);
1352
- return c.has(d) || s.has(d);
1352
+ return c.has(s) || d.has(s);
1353
1353
  }
1354
- function f(d, c) {
1355
- for (const s of c)
1356
- if (d[s] === void 0 || d[s] === null)
1357
- return console.error(`❌ Missing required field: ${String(s)}`), !1;
1354
+ function f(s, c) {
1355
+ for (const d of c)
1356
+ if (s[d] === void 0 || s[d] === null)
1357
+ return console.error(`❌ Missing required field: ${String(d)}`), !1;
1358
1358
  return !0;
1359
1359
  }
1360
1360
  return F;
1361
1361
  }
1362
1362
  var Mt;
1363
- function nn() {
1363
+ function rn() {
1364
1364
  return Mt || (Mt = 1, (function(e) {
1365
1365
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateEventArgs = e.normalizeAddress = e.isZeroAddress = e.isTestNet = e.formatBigInt = e.createUserMultiChainId = e.createMultiChainId = e.createDelegationId = e.createChainStatsId = e.isSolanaAddress = e.isEvmAddress = e.parseEmailAddress = e.isValidWalletAddress = e.isValidSignature = e.isSNSName = e.isENSName = e.getChainDisplayName = e.getAddressType = e.formatWalletAddress = e.AddressType = void 0;
1366
1366
  var t = ir();
@@ -1389,7 +1389,7 @@ function nn() {
1389
1389
  } }), Object.defineProperty(e, "isSolanaAddress", { enumerable: !0, get: function() {
1390
1390
  return r.isSolanaAddress;
1391
1391
  } });
1392
- var a = rn();
1392
+ var a = tn();
1393
1393
  Object.defineProperty(e, "createChainStatsId", { enumerable: !0, get: function() {
1394
1394
  return a.createChainStatsId;
1395
1395
  } }), Object.defineProperty(e, "createDelegationId", { enumerable: !0, get: function() {
@@ -1412,21 +1412,21 @@ function nn() {
1412
1412
  })(De)), De;
1413
1413
  }
1414
1414
  var ke = {}, q = {}, Lt;
1415
- function an() {
1415
+ function nn() {
1416
1416
  if (Lt) return q;
1417
1417
  Lt = 1, Object.defineProperty(q, "__esModule", { value: !0 }), q.generateAuthMessage = t, q.isAuthExpired = r, q.getAuthStatusText = a, q.canAccessProtectedFeatures = i, q.isAuthStatusConnected = n, q.generateNonce = u, q.extractNonceFromMessage = l, q.isValidNonce = f;
1418
1418
  const e = ue();
1419
- function t(d, c) {
1420
- const s = c || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
1421
- return `Authenticate with ${d}
1422
- Nonce: ${s}`;
1419
+ function t(s, c) {
1420
+ const d = c || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
1421
+ return `Authenticate with ${s}
1422
+ Nonce: ${d}`;
1423
1423
  }
1424
- function r(d, c = 24) {
1425
- const s = new Date(d.getTime() + c * 60 * 60 * 1e3);
1426
- return /* @__PURE__ */ new Date() > s;
1424
+ function r(s, c = 24) {
1425
+ const d = new Date(s.getTime() + c * 60 * 60 * 1e3);
1426
+ return /* @__PURE__ */ new Date() > d;
1427
1427
  }
1428
- function a(d) {
1429
- switch (d) {
1428
+ function a(s) {
1429
+ switch (s) {
1430
1430
  case e.AuthStatus.DISCONNECTED:
1431
1431
  return "Not connected";
1432
1432
  case e.AuthStatus.CONNECTED:
@@ -1437,28 +1437,28 @@ Nonce: ${s}`;
1437
1437
  return "Unknown status";
1438
1438
  }
1439
1439
  }
1440
- function i(d) {
1441
- return d === e.AuthStatus.VERIFIED;
1440
+ function i(s) {
1441
+ return s === e.AuthStatus.VERIFIED;
1442
1442
  }
1443
- function n(d) {
1444
- return d === e.AuthStatus.CONNECTED || d === e.AuthStatus.VERIFIED;
1443
+ function n(s) {
1444
+ return s === e.AuthStatus.CONNECTED || s === e.AuthStatus.VERIFIED;
1445
1445
  }
1446
1446
  function u() {
1447
1447
  return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
1448
1448
  }
1449
- function l(d) {
1450
- const c = d.match(/Nonce:\s*(.+)$/m);
1449
+ function l(s) {
1450
+ const c = s.match(/Nonce:\s*(.+)$/m);
1451
1451
  return c ? c[1].trim() : void 0;
1452
1452
  }
1453
- function f(d) {
1454
- if (!d || typeof d != "string" || d.length < 10)
1453
+ function f(s) {
1454
+ if (!s || typeof s != "string" || s.length < 10)
1455
1455
  return !1;
1456
- const c = d.split("-");
1456
+ const c = s.split("-");
1457
1457
  if (c.length >= 2) {
1458
- const s = parseInt(c[0], 10);
1459
- if (!isNaN(s)) {
1458
+ const d = parseInt(c[0], 10);
1459
+ if (!isNaN(d)) {
1460
1460
  const g = Date.now() - 864e5;
1461
- if (s < g)
1461
+ if (d < g)
1462
1462
  return !1;
1463
1463
  }
1464
1464
  }
@@ -1467,10 +1467,10 @@ Nonce: ${s}`;
1467
1467
  return q;
1468
1468
  }
1469
1469
  var jt;
1470
- function un() {
1470
+ function an() {
1471
1471
  return jt || (jt = 1, (function(e) {
1472
1472
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isValidNonce = e.isAuthStatusConnected = e.isAuthExpired = e.getAuthStatusText = e.generateNonce = e.generateAuthMessage = e.extractNonceFromMessage = e.canAccessProtectedFeatures = void 0;
1473
- var t = an();
1473
+ var t = nn();
1474
1474
  Object.defineProperty(e, "canAccessProtectedFeatures", { enumerable: !0, get: function() {
1475
1475
  return t.canAccessProtectedFeatures;
1476
1476
  } }), Object.defineProperty(e, "extractNonceFromMessage", { enumerable: !0, get: function() {
@@ -1491,7 +1491,7 @@ function un() {
1491
1491
  })(ke)), ke;
1492
1492
  }
1493
1493
  var Ue = {}, We = {}, Dt;
1494
- function on() {
1494
+ function un() {
1495
1495
  return Dt || (Dt = 1, (function(e) {
1496
1496
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CLAIM_PERIOD_DAYS = e.USDC_DECIMALS = void 0, e.formatUSDC = t, e.parseUSDC = r, e.USDC_DECIMALS = 6, e.CLAIM_PERIOD_DAYS = 60;
1497
1497
  function t(a) {
@@ -1503,21 +1503,21 @@ function on() {
1503
1503
  })(We)), We;
1504
1504
  }
1505
1505
  var G = {}, kt;
1506
- function ln() {
1506
+ function on() {
1507
1507
  if (kt) return G;
1508
1508
  kt = 1, Object.defineProperty(G, "__esModule", { value: !0 }), G.formatEmailDate = e, G.formatTimestamp = t, G.formatRelativeTime = r, G.parseDate = a, G.isDateInRange = i, G.addDays = n, G.addHours = u;
1509
1509
  function e(l) {
1510
1510
  const f = typeof l == "string" ? new Date(l) : l;
1511
1511
  if (isNaN(f.getTime()))
1512
1512
  return "Invalid date";
1513
- const d = /* @__PURE__ */ new Date(), c = d.getTime() - f.getTime(), s = Math.floor(c / (1e3 * 60 * 60 * 24));
1514
- return s === 0 ? f.toLocaleTimeString("en-US", {
1513
+ const s = /* @__PURE__ */ new Date(), c = s.getTime() - f.getTime(), d = Math.floor(c / (1e3 * 60 * 60 * 24));
1514
+ return d === 0 ? f.toLocaleTimeString("en-US", {
1515
1515
  hour: "numeric",
1516
1516
  minute: "2-digit",
1517
1517
  hour12: !0
1518
- }) : s === 1 ? "Yesterday" : s < 7 ? f.toLocaleDateString("en-US", {
1518
+ }) : d === 1 ? "Yesterday" : d < 7 ? f.toLocaleDateString("en-US", {
1519
1519
  weekday: "long"
1520
- }) : f.getFullYear() === d.getFullYear() ? f.toLocaleDateString("en-US", {
1520
+ }) : f.getFullYear() === s.getFullYear() ? f.toLocaleDateString("en-US", {
1521
1521
  month: "short",
1522
1522
  day: "numeric"
1523
1523
  }) : f.toLocaleDateString("en-US", {
@@ -1533,8 +1533,8 @@ function ln() {
1533
1533
  const f = typeof l == "string" || typeof l == "number" ? new Date(l) : l;
1534
1534
  if (isNaN(f.getTime()))
1535
1535
  return "Invalid date";
1536
- const c = (/* @__PURE__ */ new Date()).getTime() - f.getTime(), s = Math.floor(c / 1e3), g = Math.floor(s / 60), y = Math.floor(g / 60), S = Math.floor(y / 24), R = Math.floor(S / 7), b = Math.floor(S / 30), p = Math.floor(S / 365);
1537
- return s < 60 ? "just now" : g < 60 ? g === 1 ? "1 minute ago" : `${g} minutes ago` : y < 24 ? y === 1 ? "1 hour ago" : `${y} hours ago` : S < 7 ? S === 1 ? "1 day ago" : `${S} days ago` : R < 4 ? R === 1 ? "1 week ago" : `${R} weeks ago` : b < 12 ? b === 1 ? "1 month ago" : `${b} months ago` : p === 1 ? "1 year ago" : `${p} years ago`;
1536
+ const c = (/* @__PURE__ */ new Date()).getTime() - f.getTime(), d = Math.floor(c / 1e3), g = Math.floor(d / 60), E = Math.floor(g / 60), S = Math.floor(E / 24), R = Math.floor(S / 7), b = Math.floor(S / 30), A = Math.floor(S / 365);
1537
+ return d < 60 ? "just now" : g < 60 ? g === 1 ? "1 minute ago" : `${g} minutes ago` : E < 24 ? E === 1 ? "1 hour ago" : `${E} hours ago` : S < 7 ? S === 1 ? "1 day ago" : `${S} days ago` : R < 4 ? R === 1 ? "1 week ago" : `${R} weeks ago` : b < 12 ? b === 1 ? "1 month ago" : `${b} months ago` : A === 1 ? "1 year ago" : `${A} years ago`;
1538
1538
  }
1539
1539
  function a(l) {
1540
1540
  try {
@@ -1544,37 +1544,37 @@ function ln() {
1544
1544
  return null;
1545
1545
  }
1546
1546
  }
1547
- function i(l, f, d) {
1548
- return l >= f && l <= d;
1547
+ function i(l, f, s) {
1548
+ return l >= f && l <= s;
1549
1549
  }
1550
1550
  function n(l, f) {
1551
- const d = new Date(l);
1552
- return d.setDate(d.getDate() + f), d;
1551
+ const s = new Date(l);
1552
+ return s.setDate(s.getDate() + f), s;
1553
1553
  }
1554
1554
  function u(l, f) {
1555
- const d = new Date(l);
1556
- return d.setHours(d.getHours() + f), d;
1555
+ const s = new Date(l);
1556
+ return s.setHours(s.getHours() + f), s;
1557
1557
  }
1558
1558
  return G;
1559
1559
  }
1560
1560
  var w = {}, Ut;
1561
- function cn() {
1561
+ function ln() {
1562
1562
  if (Ut) return w;
1563
- Ut = 1, Object.defineProperty(w, "__esModule", { value: !0 }), w.truncate = e, w.capitalize = t, w.toTitleCase = r, w.toKebabCase = a, w.toCamelCase = i, w.toSnakeCase = n, w.normalizeWhitespace = u, w.isBlank = l, w.isNotBlank = f, w.escapeHtml = d, w.stripHtml = c, w.getInitials = s, w.formatBytes = g, w.randomString = y, w.pluralize = S, w.formatNumber = R;
1564
- function e(b, p, A = "...") {
1565
- return !b || b.length <= p ? b : b.slice(0, p - A.length) + A;
1563
+ Ut = 1, Object.defineProperty(w, "__esModule", { value: !0 }), w.truncate = e, w.capitalize = t, w.toTitleCase = r, w.toKebabCase = a, w.toCamelCase = i, w.toSnakeCase = n, w.normalizeWhitespace = u, w.isBlank = l, w.isNotBlank = f, w.escapeHtml = s, w.stripHtml = c, w.getInitials = d, w.formatBytes = g, w.randomString = E, w.pluralize = S, w.formatNumber = R;
1564
+ function e(b, A, p = "...") {
1565
+ return !b || b.length <= A ? b : b.slice(0, A - p.length) + p;
1566
1566
  }
1567
1567
  function t(b) {
1568
1568
  return b && b.charAt(0).toUpperCase() + b.slice(1);
1569
1569
  }
1570
1570
  function r(b) {
1571
- return b && b.toLowerCase().split(" ").map((p) => t(p)).join(" ");
1571
+ return b && b.toLowerCase().split(" ").map((A) => t(A)).join(" ");
1572
1572
  }
1573
1573
  function a(b) {
1574
1574
  return b && b.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
1575
1575
  }
1576
1576
  function i(b) {
1577
- return b && b.replace(/[-_\s]+(.)?/g, (p, A) => A ? A.toUpperCase() : "").replace(/^./, (p) => p.toLowerCase());
1577
+ return b && b.replace(/[-_\s]+(.)?/g, (A, p) => p ? p.toUpperCase() : "").replace(/^./, (A) => A.toLowerCase());
1578
1578
  }
1579
1579
  function n(b) {
1580
1580
  return b && b.replace(/([a-z])([A-Z])/g, "$1_$2").replace(/[\s-]+/g, "_").toLowerCase();
@@ -1588,55 +1588,55 @@ function cn() {
1588
1588
  function f(b) {
1589
1589
  return !l(b);
1590
1590
  }
1591
- function d(b) {
1591
+ function s(b) {
1592
1592
  if (!b)
1593
1593
  return b;
1594
- const p = {
1594
+ const A = {
1595
1595
  "&": "&amp;",
1596
1596
  "<": "&lt;",
1597
1597
  ">": "&gt;",
1598
1598
  '"': "&quot;",
1599
1599
  "'": "&#39;"
1600
1600
  };
1601
- return b.replace(/[&<>"']/g, (A) => p[A]);
1601
+ return b.replace(/[&<>"']/g, (p) => A[p]);
1602
1602
  }
1603
1603
  function c(b) {
1604
1604
  return b && b.replace(/<[^>]*>/g, "");
1605
1605
  }
1606
- function s(b, p = 2) {
1607
- return b ? b.trim().split(/\s+/).slice(0, p).map((T) => T.charAt(0).toUpperCase()).join("") : "";
1606
+ function d(b, A = 2) {
1607
+ return b ? b.trim().split(/\s+/).slice(0, A).map((T) => T.charAt(0).toUpperCase()).join("") : "";
1608
1608
  }
1609
- function g(b, p = 2) {
1609
+ function g(b, A = 2) {
1610
1610
  if (b === 0)
1611
1611
  return "0 Bytes";
1612
- const A = 1024, E = p < 0 ? 0 : p, T = ["Bytes", "KB", "MB", "GB", "TB", "PB"], _ = Math.floor(Math.log(b) / Math.log(A));
1613
- return parseFloat((b / Math.pow(A, _)).toFixed(E)) + " " + T[_];
1612
+ const p = 1024, h = A < 0 ? 0 : A, T = ["Bytes", "KB", "MB", "GB", "TB", "PB"], _ = Math.floor(Math.log(b) / Math.log(p));
1613
+ return parseFloat((b / Math.pow(p, _)).toFixed(h)) + " " + T[_];
1614
1614
  }
1615
- function y(b, p = "alphanumeric") {
1616
- let A;
1617
- switch (p) {
1615
+ function E(b, A = "alphanumeric") {
1616
+ let p;
1617
+ switch (A) {
1618
1618
  case "alpha":
1619
- A = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
1619
+ p = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
1620
1620
  break;
1621
1621
  case "numeric":
1622
- A = "0123456789";
1622
+ p = "0123456789";
1623
1623
  break;
1624
1624
  case "alphanumeric":
1625
- A = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
1625
+ p = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
1626
1626
  break;
1627
1627
  case "hex":
1628
- A = "0123456789abcdef";
1628
+ p = "0123456789abcdef";
1629
1629
  break;
1630
1630
  default:
1631
- A = p;
1631
+ p = A;
1632
1632
  }
1633
- let E = "";
1633
+ let h = "";
1634
1634
  for (let T = 0; T < b; T++)
1635
- E += A.charAt(Math.floor(Math.random() * A.length));
1636
- return E;
1635
+ h += p.charAt(Math.floor(Math.random() * p.length));
1636
+ return h;
1637
1637
  }
1638
- function S(b, p, A) {
1639
- return b === 1 ? p : A || `${p}s`;
1638
+ function S(b, A, p) {
1639
+ return b === 1 ? A : p || `${A}s`;
1640
1640
  }
1641
1641
  function R(b) {
1642
1642
  return b.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
@@ -1644,10 +1644,10 @@ function cn() {
1644
1644
  return w;
1645
1645
  }
1646
1646
  var Wt;
1647
- function sn() {
1647
+ function cn() {
1648
1648
  return Wt || (Wt = 1, (function(e) {
1649
1649
  Object.defineProperty(e, "__esModule", { value: !0 }), e.truncate = e.toTitleCase = e.toSnakeCase = e.toKebabCase = e.toCamelCase = e.stripHtml = e.randomString = e.pluralize = e.normalizeWhitespace = e.isNotBlank = e.isBlank = e.getInitials = e.formatNumber = e.formatBytes = e.escapeHtml = e.capitalize = e.parseDate = e.isDateInRange = e.formatTimestamp = e.formatRelativeTime = e.formatEmailDate = e.addHours = e.addDays = e.parseUSDC = e.formatUSDC = e.USDC_DECIMALS = e.CLAIM_PERIOD_DAYS = void 0;
1650
- var t = on();
1650
+ var t = un();
1651
1651
  Object.defineProperty(e, "CLAIM_PERIOD_DAYS", { enumerable: !0, get: function() {
1652
1652
  return t.CLAIM_PERIOD_DAYS;
1653
1653
  } }), Object.defineProperty(e, "USDC_DECIMALS", { enumerable: !0, get: function() {
@@ -1657,7 +1657,7 @@ function sn() {
1657
1657
  } }), Object.defineProperty(e, "parseUSDC", { enumerable: !0, get: function() {
1658
1658
  return t.parseUSDC;
1659
1659
  } });
1660
- var r = ln();
1660
+ var r = on();
1661
1661
  Object.defineProperty(e, "addDays", { enumerable: !0, get: function() {
1662
1662
  return r.addDays;
1663
1663
  } }), Object.defineProperty(e, "addHours", { enumerable: !0, get: function() {
@@ -1673,7 +1673,7 @@ function sn() {
1673
1673
  } }), Object.defineProperty(e, "parseDate", { enumerable: !0, get: function() {
1674
1674
  return r.parseDate;
1675
1675
  } });
1676
- var a = cn();
1676
+ var a = ln();
1677
1677
  Object.defineProperty(e, "capitalize", { enumerable: !0, get: function() {
1678
1678
  return a.capitalize;
1679
1679
  } }), Object.defineProperty(e, "escapeHtml", { enumerable: !0, get: function() {
@@ -1710,7 +1710,7 @@ function sn() {
1710
1710
  })(Ue)), Ue;
1711
1711
  }
1712
1712
  var Ve = {}, O = {}, Vt;
1713
- function dn() {
1713
+ function sn() {
1714
1714
  if (Vt) return O;
1715
1715
  Vt = 1, Object.defineProperty(O, "__esModule", { value: !0 }), O.Z_INDEX = O.ANIMATION = O.NETWORK_IDS = O.WALLET_NAMES = O.CONTACT_INFO = O.ROUTES = O.SUCCESS_MESSAGES = O.ERROR_MESSAGES = O.TIME_FORMAT = O.SUBSCRIPTION_TIERS = O.EMAIL_CONFIG = O.STORAGE_KEYS = O.CHAIN_TYPE = O.AUTH_STATUS = O.API_RETRY_DELAY = O.API_RETRY_ATTEMPTS = O.API_TIMEOUT = void 0;
1716
1716
  const e = 3e4;
@@ -1765,7 +1765,7 @@ function dn() {
1765
1765
  RELATIVE: "relative"
1766
1766
  };
1767
1767
  O.TIME_FORMAT = f;
1768
- const d = {
1768
+ const s = {
1769
1769
  WALLET_NOT_CONNECTED: "Please connect your wallet first",
1770
1770
  INVALID_ADDRESS: "Please enter a valid address",
1771
1771
  NETWORK_ERROR: "Network error. Please try again.",
@@ -1776,7 +1776,7 @@ function dn() {
1776
1776
  SESSION_EXPIRED: "Your session has expired. Please sign in again.",
1777
1777
  PERMISSION_DENIED: "You do not have permission to perform this action"
1778
1778
  };
1779
- O.ERROR_MESSAGES = d;
1779
+ O.ERROR_MESSAGES = s;
1780
1780
  const c = {
1781
1781
  EMAIL_SENT: "Email sent successfully",
1782
1782
  EMAIL_DELETED: "Email deleted successfully",
@@ -1787,7 +1787,7 @@ function dn() {
1787
1787
  SUBSCRIPTION_ACTIVATED: "Subscription activated successfully"
1788
1788
  };
1789
1789
  O.SUCCESS_MESSAGES = c;
1790
- const s = {
1790
+ const d = {
1791
1791
  HOME: "/",
1792
1792
  ABOUT: "/about",
1793
1793
  CONNECT: "/connect",
@@ -1800,13 +1800,13 @@ function dn() {
1800
1800
  WEB3_USERS: "/web3-users",
1801
1801
  WEB3_PROJECTS: "/web3-projects"
1802
1802
  };
1803
- O.ROUTES = s;
1803
+ O.ROUTES = d;
1804
1804
  const g = {
1805
1805
  SUPPORT_EMAIL: "support@sudobility.com",
1806
1806
  CONTACT_EMAIL: "info@sudobility.com"
1807
1807
  };
1808
1808
  O.CONTACT_INFO = g;
1809
- const y = {
1809
+ const E = {
1810
1810
  METAMASK: "MetaMask",
1811
1811
  WALLETCONNECT: "WalletConnect",
1812
1812
  COINBASE: "Coinbase Wallet",
@@ -1818,7 +1818,7 @@ function dn() {
1818
1818
  LEDGER: "Ledger",
1819
1819
  TREZOR: "Trezor"
1820
1820
  };
1821
- O.WALLET_NAMES = y;
1821
+ O.WALLET_NAMES = E;
1822
1822
  const S = {
1823
1823
  ETHEREUM_MAINNET: 1,
1824
1824
  POLYGON: 137,
@@ -1847,7 +1847,7 @@ function dn() {
1847
1847
  return O.Z_INDEX = b, O;
1848
1848
  }
1849
1849
  var be = {}, Ft;
1850
- function fn() {
1850
+ function dn() {
1851
1851
  return Ft || (Ft = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.STATUS_VALUES = void 0, be.STATUS_VALUES = {
1852
1852
  SUCCESS: "success",
1853
1853
  PENDING: "pending",
@@ -1856,10 +1856,10 @@ function fn() {
1856
1856
  }), be;
1857
1857
  }
1858
1858
  var Bt;
1859
- function mn() {
1859
+ function fn() {
1860
1860
  return Bt || (Bt = 1, (function(e) {
1861
1861
  Object.defineProperty(e, "__esModule", { value: !0 }), e.STATUS_VALUES = e.Z_INDEX = e.ANIMATION = e.NETWORK_IDS = e.WALLET_NAMES = e.CONTACT_INFO = e.ROUTES = e.SUCCESS_MESSAGES = e.ERROR_MESSAGES = e.TIME_FORMAT = e.SUBSCRIPTION_TIERS = e.EMAIL_CONFIG = e.STORAGE_KEYS = e.CHAIN_TYPE = e.AUTH_STATUS = e.API_RETRY_DELAY = e.API_RETRY_ATTEMPTS = e.API_TIMEOUT = void 0;
1862
- var t = dn();
1862
+ var t = sn();
1863
1863
  Object.defineProperty(e, "API_TIMEOUT", { enumerable: !0, get: function() {
1864
1864
  return t.API_TIMEOUT;
1865
1865
  } }), Object.defineProperty(e, "API_RETRY_ATTEMPTS", { enumerable: !0, get: function() {
@@ -1895,14 +1895,14 @@ function mn() {
1895
1895
  } }), Object.defineProperty(e, "Z_INDEX", { enumerable: !0, get: function() {
1896
1896
  return t.Z_INDEX;
1897
1897
  } });
1898
- var r = fn();
1898
+ var r = dn();
1899
1899
  Object.defineProperty(e, "STATUS_VALUES", { enumerable: !0, get: function() {
1900
1900
  return r.STATUS_VALUES;
1901
1901
  } });
1902
1902
  })(Ve)), Ve;
1903
1903
  }
1904
1904
  var Fe = {}, I = {}, qt;
1905
- function gn() {
1905
+ function mn() {
1906
1906
  if (qt) return I;
1907
1907
  qt = 1, Object.defineProperty(I, "__esModule", { value: !0 }), I.storageLogger = I.ensLogger = I.contractLogger = I.apiLogger = I.authLogger = I.logger = I.LogLevel = void 0;
1908
1908
  var e;
@@ -1916,34 +1916,34 @@ function gn() {
1916
1916
  formatTimestamp() {
1917
1917
  return (/* @__PURE__ */ new Date()).toISOString();
1918
1918
  }
1919
- formatMessage(d, c, s) {
1920
- const g = this.formatTimestamp(), y = s ? ` [${s}]` : "";
1921
- return `[${g}]${y} ${c}`;
1919
+ formatMessage(s, c, d) {
1920
+ const g = this.formatTimestamp(), E = d ? ` [${d}]` : "";
1921
+ return `[${g}]${E} ${c}`;
1922
1922
  }
1923
- shouldLog(d) {
1924
- return this.isDevelopment ? !0 : d === e.ERROR || d === e.WARN;
1923
+ shouldLog(s) {
1924
+ return this.isDevelopment ? !0 : s === e.ERROR || s === e.WARN;
1925
1925
  }
1926
- error(d, c, s) {
1927
- this.shouldLog(e.ERROR) && (console.error(this.formatMessage(e.ERROR, d, c)), s && console.error(s));
1926
+ error(s, c, d) {
1927
+ this.shouldLog(e.ERROR) && (console.error(this.formatMessage(e.ERROR, s, c)), d && console.error(d));
1928
1928
  }
1929
- warn(d, c, s) {
1930
- this.shouldLog(e.WARN) && (console.warn(this.formatMessage(e.WARN, d, c)), s && console.warn(s));
1929
+ warn(s, c, d) {
1930
+ this.shouldLog(e.WARN) && (console.warn(this.formatMessage(e.WARN, s, c)), d && console.warn(d));
1931
1931
  }
1932
- info(d, c, s) {
1933
- this.shouldLog(e.INFO) && (console.log(this.formatMessage(e.INFO, d, c)), s && console.log(s));
1932
+ info(s, c, d) {
1933
+ this.shouldLog(e.INFO) && (console.log(this.formatMessage(e.INFO, s, c)), d && console.log(d));
1934
1934
  }
1935
- debug(d, c, s) {
1936
- this.shouldLog(e.DEBUG) && (console.log(this.formatMessage(e.DEBUG, d, c)), s && console.log(s));
1935
+ debug(s, c, d) {
1936
+ this.shouldLog(e.DEBUG) && (console.log(this.formatMessage(e.DEBUG, s, c)), d && console.log(d));
1937
1937
  }
1938
1938
  /**
1939
1939
  * Create a contextual logger that automatically includes context in all calls
1940
1940
  */
1941
- withContext(d) {
1941
+ withContext(s) {
1942
1942
  return {
1943
- error: (c, s) => this.error(c, d, s),
1944
- warn: (c, s) => this.warn(c, d, s),
1945
- info: (c, s) => this.info(c, d, s),
1946
- debug: (c, s) => this.debug(c, d, s)
1943
+ error: (c, d) => this.error(c, s, d),
1944
+ warn: (c, d) => this.warn(c, s, d),
1945
+ info: (c, d) => this.info(c, s, d),
1946
+ debug: (c, d) => this.debug(c, s, d)
1947
1947
  };
1948
1948
  }
1949
1949
  }
@@ -1964,7 +1964,7 @@ var Ht;
1964
1964
  function ur() {
1965
1965
  return Ht || (Ht = 1, (function(e) {
1966
1966
  Object.defineProperty(e, "__esModule", { value: !0 }), e.storageLogger = e.ensLogger = e.contractLogger = e.apiLogger = e.authLogger = e.logger = e.LogLevel = void 0;
1967
- var t = gn();
1967
+ var t = mn();
1968
1968
  Object.defineProperty(e, "LogLevel", { enumerable: !0, get: function() {
1969
1969
  return t.LogLevel;
1970
1970
  } }), Object.defineProperty(e, "logger", { enumerable: !0, get: function() {
@@ -1983,7 +1983,7 @@ function ur() {
1983
1983
  })(Fe)), Fe;
1984
1984
  }
1985
1985
  var Be = {}, ie = {}, Gt;
1986
- function bn() {
1986
+ function gn() {
1987
1987
  if (Gt) return ie;
1988
1988
  Gt = 1, Object.defineProperty(ie, "__esModule", { value: !0 }), ie.createURLSearchParams = t, ie.createSearchParams = r, ie.searchParamsToString = a, ie.parseSearchParams = i;
1989
1989
  class e {
@@ -2002,8 +2002,8 @@ function bn() {
2002
2002
  const l = u.startsWith("?") ? u.slice(1) : u;
2003
2003
  if (l)
2004
2004
  for (const f of l.split("&")) {
2005
- const [d, c = ""] = f.split("=");
2006
- d && this.append(decodeURIComponent(d), decodeURIComponent(c));
2005
+ const [s, c = ""] = f.split("=");
2006
+ s && this.append(decodeURIComponent(s), decodeURIComponent(c));
2007
2007
  }
2008
2008
  }
2009
2009
  append(u, l) {
@@ -2030,14 +2030,14 @@ function bn() {
2030
2030
  toString() {
2031
2031
  const u = [];
2032
2032
  return this.params.forEach((l, f) => {
2033
- for (const d of l)
2034
- u.push(`${encodeURIComponent(f)}=${encodeURIComponent(d)}`);
2033
+ for (const s of l)
2034
+ u.push(`${encodeURIComponent(f)}=${encodeURIComponent(s)}`);
2035
2035
  }), u.join("&");
2036
2036
  }
2037
2037
  forEach(u) {
2038
2038
  this.params.forEach((l, f) => {
2039
- for (const d of l)
2040
- u(d, f);
2039
+ for (const s of l)
2040
+ u(s, f);
2041
2041
  });
2042
2042
  }
2043
2043
  }
@@ -2055,17 +2055,17 @@ function bn() {
2055
2055
  }
2056
2056
  function i(n) {
2057
2057
  const u = t(n), l = {};
2058
- return u.forEach((f, d) => {
2059
- l[d] = f;
2058
+ return u.forEach((f, s) => {
2059
+ l[s] = f;
2060
2060
  }), l;
2061
2061
  }
2062
2062
  return ie;
2063
2063
  }
2064
2064
  var Yt;
2065
- function hn() {
2065
+ function bn() {
2066
2066
  return Yt || (Yt = 1, (function(e) {
2067
2067
  Object.defineProperty(e, "__esModule", { value: !0 }), e.parseSearchParams = e.searchParamsToString = e.createSearchParams = e.createURLSearchParams = void 0;
2068
- var t = bn();
2068
+ var t = gn();
2069
2069
  Object.defineProperty(e, "createURLSearchParams", { enumerable: !0, get: function() {
2070
2070
  return t.createURLSearchParams;
2071
2071
  } }), Object.defineProperty(e, "createSearchParams", { enumerable: !0, get: function() {
@@ -2078,78 +2078,78 @@ function hn() {
2078
2078
  })(Be)), Be;
2079
2079
  }
2080
2080
  var M = {}, zt;
2081
- function yn() {
2081
+ function hn() {
2082
2082
  if (zt) return M;
2083
2083
  zt = 1, Object.defineProperty(M, "__esModule", { value: !0 }), M.debounceAsync = M.clearExpiredCache = M.withCache = M.withTimeout = M.safeParallel = M.withLoadingState = M.safeAsync = void 0;
2084
- const e = ur(), t = async (c, s) => {
2084
+ const e = ur(), t = async (c, d) => {
2085
2085
  try {
2086
2086
  return { data: await c(), success: !0 };
2087
2087
  } catch (g) {
2088
- const y = g instanceof Error ? g : new Error(String(g));
2089
- return e.logger.error(`Async operation failed: ${y.message}`, s, g), { error: y, success: !1 };
2088
+ const E = g instanceof Error ? g : new Error(String(g));
2089
+ return e.logger.error(`Async operation failed: ${E.message}`, d, g), { error: E, success: !1 };
2090
2090
  }
2091
2091
  };
2092
2092
  M.safeAsync = t;
2093
- const r = async (c, s, g, y) => {
2094
- s(!0), g(null);
2093
+ const r = async (c, d, g, E) => {
2094
+ d(!0), g(null);
2095
2095
  try {
2096
2096
  return await c();
2097
2097
  } catch (S) {
2098
2098
  const R = S instanceof Error ? S.message : String(S);
2099
- g(R), e.logger.error(`Operation failed: ${R}`, y, S);
2099
+ g(R), e.logger.error(`Operation failed: ${R}`, E, S);
2100
2100
  return;
2101
2101
  } finally {
2102
- s(!1);
2102
+ d(!1);
2103
2103
  }
2104
2104
  };
2105
2105
  M.withLoadingState = r;
2106
- const a = async (c, s) => {
2106
+ const a = async (c, d) => {
2107
2107
  try {
2108
- return { data: await Promise.all(c.map((y) => y())), success: !0 };
2108
+ return { data: await Promise.all(c.map((E) => E())), success: !0 };
2109
2109
  } catch (g) {
2110
- const y = g instanceof Error ? g : new Error(String(g));
2111
- return e.logger.error(`Parallel operations failed: ${y.message}`, s, g), { error: y, success: !1 };
2110
+ const E = g instanceof Error ? g : new Error(String(g));
2111
+ return e.logger.error(`Parallel operations failed: ${E.message}`, d, g), { error: E, success: !1 };
2112
2112
  }
2113
2113
  };
2114
2114
  M.safeParallel = a;
2115
- const i = async (c, s, g) => {
2116
- const y = new Promise((S, R) => setTimeout(() => R(new Error(`Operation timed out after ${s}ms`)), s));
2115
+ const i = async (c, d, g) => {
2116
+ const E = new Promise((S, R) => setTimeout(() => R(new Error(`Operation timed out after ${d}ms`)), d));
2117
2117
  try {
2118
- return await Promise.race([c(), y]);
2118
+ return await Promise.race([c(), E]);
2119
2119
  } catch (S) {
2120
2120
  throw e.logger.error("Timeout operation failed", g, S), S;
2121
2121
  }
2122
2122
  };
2123
2123
  M.withTimeout = i;
2124
- const n = /* @__PURE__ */ new Map(), u = async (c, s, g = 300 * 1e3) => {
2125
- const y = n.get(c), S = Date.now();
2126
- if (y && S - y.timestamp < y.ttl)
2127
- return y.data;
2128
- const R = await s();
2124
+ const n = /* @__PURE__ */ new Map(), u = async (c, d, g = 300 * 1e3) => {
2125
+ const E = n.get(c), S = Date.now();
2126
+ if (E && S - E.timestamp < E.ttl)
2127
+ return E.data;
2128
+ const R = await d();
2129
2129
  return n.set(c, { data: R, timestamp: S, ttl: g }), R;
2130
2130
  };
2131
2131
  M.withCache = u;
2132
2132
  const l = () => {
2133
2133
  const c = Date.now();
2134
- for (const [s, g] of n.entries())
2135
- c - g.timestamp >= g.ttl && n.delete(s);
2134
+ for (const [d, g] of n.entries())
2135
+ c - g.timestamp >= g.ttl && n.delete(d);
2136
2136
  };
2137
2137
  M.clearExpiredCache = l;
2138
- const f = /* @__PURE__ */ new Map(), d = (c, s, g) => (...y) => new Promise((S) => {
2138
+ const f = /* @__PURE__ */ new Map(), s = (c, d, g) => (...E) => new Promise((S) => {
2139
2139
  const R = f.get(g);
2140
2140
  R && clearTimeout(R);
2141
2141
  const b = setTimeout(async () => {
2142
2142
  f.delete(g);
2143
2143
  try {
2144
- const p = await c(...y);
2145
- S(p);
2146
- } catch (p) {
2147
- e.logger.error("Debounced operation failed", g, p), S(void 0);
2144
+ const A = await c(...E);
2145
+ S(A);
2146
+ } catch (A) {
2147
+ e.logger.error("Debounced operation failed", g, A), S(void 0);
2148
2148
  }
2149
- }, s);
2149
+ }, d);
2150
2150
  f.set(g, b);
2151
2151
  });
2152
- return M.debounceAsync = d, M;
2152
+ return M.debounceAsync = s, M;
2153
2153
  }
2154
2154
  var Kt;
2155
2155
  function Zt() {
@@ -2165,18 +2165,18 @@ function Zt() {
2165
2165
  })), r = ae && ae.__exportStar || function(a, i) {
2166
2166
  for (var n in a) n !== "default" && !Object.prototype.hasOwnProperty.call(i, n) && t(i, a, n);
2167
2167
  };
2168
- Object.defineProperty(e, "__esModule", { value: !0 }), r(tn(), e), r(nn(), e), r(un(), e), r(sn(), e), r(mn(), e), r(ur(), e), r(hn(), e), r(yn(), e);
2168
+ Object.defineProperty(e, "__esModule", { value: !0 }), r(en(), e), r(rn(), e), r(an(), e), r(cn(), e), r(fn(), e), r(ur(), e), r(bn(), e), r(hn(), e);
2169
2169
  })(ae)), ae;
2170
2170
  }
2171
2171
  var Jt;
2172
- function En() {
2172
+ function yn() {
2173
2173
  return Jt || (Jt = 1, (function(e) {
2174
2174
  var t = Q && Q.__createBinding || (Object.create ? (function(n, u, l, f) {
2175
2175
  f === void 0 && (f = l);
2176
- var d = Object.getOwnPropertyDescriptor(u, l);
2177
- (!d || ("get" in d ? !u.__esModule : d.writable || d.configurable)) && (d = { enumerable: !0, get: function() {
2176
+ var s = Object.getOwnPropertyDescriptor(u, l);
2177
+ (!s || ("get" in s ? !u.__esModule : s.writable || s.configurable)) && (s = { enumerable: !0, get: function() {
2178
2178
  return u[l];
2179
- } }), Object.defineProperty(n, f, d);
2179
+ } }), Object.defineProperty(n, f, s);
2180
2180
  }) : (function(n, u, l, f) {
2181
2181
  f === void 0 && (f = l), n[f] = u[l];
2182
2182
  })), r = Q && Q.__exportStar || function(n, u) {
@@ -2255,8 +2255,8 @@ function En() {
2255
2255
  } });
2256
2256
  })(Q)), Q;
2257
2257
  }
2258
- var J = En();
2259
- const Sn = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", or = ({ addressType: e }) => {
2258
+ var J = yn();
2259
+ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", or = ({ addressType: e }) => {
2260
2260
  const t = () => {
2261
2261
  switch (e) {
2262
2262
  case J.AddressType.EVMAddress:
@@ -2294,84 +2294,90 @@ const Sn = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2294
2294
  children: t()
2295
2295
  }
2296
2296
  );
2297
- }, pn = ({
2297
+ }, Sn = ({
2298
2298
  domainEmails: e,
2299
2299
  isExpanded: t,
2300
2300
  selectedAccount: r,
2301
2301
  onAccountSelect: a,
2302
- onAccountSettings: i
2302
+ onAccountSettings: i,
2303
+ onTrack: n
2303
2304
  }) => {
2304
- const n = _r(null), [u, l] = Pr(void 0);
2305
- return Cr(() => {
2306
- if (n.current) {
2307
- const f = n.current.scrollHeight;
2308
- l(t ? f + 8 : 0);
2305
+ const u = Nr(null), [l, f] = _r(void 0);
2306
+ return Pr(() => {
2307
+ if (u.current) {
2308
+ const s = u.current.scrollHeight;
2309
+ f(t ? s + 8 : 0);
2309
2310
  }
2310
2311
  }, [t, e]), /* @__PURE__ */ N(
2311
2312
  "div",
2312
2313
  {
2313
2314
  className: "overflow-hidden transition-all duration-300 ease-in-out",
2314
- style: { height: u !== void 0 ? `${u}px` : "auto" },
2315
- children: /* @__PURE__ */ N("div", { ref: n, className: "ml-6 mt-2 space-y-1", children: e.map((f) => /* @__PURE__ */ H(
2315
+ style: { height: l !== void 0 ? `${l}px` : "auto" },
2316
+ children: /* @__PURE__ */ N("div", { ref: u, className: "ml-6 mt-2 space-y-1", children: e.map((s) => /* @__PURE__ */ H(
2316
2317
  "button",
2317
2318
  {
2318
- onClick: () => a(f.address),
2319
+ onClick: () => {
2320
+ n?.("account_select"), a(s.address);
2321
+ },
2319
2322
  className: j(
2320
2323
  "w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
2321
2324
  nr.body.sm(),
2322
- r === f.address ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
2325
+ r === s.address ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
2323
2326
  ),
2324
2327
  children: [
2325
- /* @__PURE__ */ N("span", { className: "truncate flex-1", children: f.name }),
2326
- /* @__PURE__ */ N(or, { addressType: f.addressType })
2328
+ /* @__PURE__ */ N("span", { className: "truncate flex-1", children: s.name }),
2329
+ /* @__PURE__ */ N(or, { addressType: s.addressType })
2327
2330
  ]
2328
2331
  },
2329
- f.address
2332
+ s.address
2330
2333
  )) })
2331
2334
  }
2332
2335
  );
2333
- }, Xa = ({
2336
+ }, Ja = ({
2334
2337
  walletGroups: e,
2335
2338
  selectedAccount: t,
2336
2339
  expandedWallets: r,
2337
2340
  onAccountSelect: a,
2338
2341
  onToggleWallet: i,
2339
2342
  onAccountSettings: n,
2340
- className: u = ""
2341
- }) => /* @__PURE__ */ N("nav", { className: j("space-y-1", u), children: e.map((l) => /* @__PURE__ */ H("div", { children: [
2343
+ className: u = "",
2344
+ onTrack: l
2345
+ }) => /* @__PURE__ */ N("nav", { className: j("space-y-1", u), children: e.map((f) => /* @__PURE__ */ H("div", { children: [
2342
2346
  /* @__PURE__ */ H(
2343
2347
  "button",
2344
2348
  {
2345
- onClick: () => a(l.primaryEmail.address),
2349
+ onClick: () => {
2350
+ l?.("primary_account_select"), a(f.primaryEmail.address);
2351
+ },
2346
2352
  className: j(
2347
2353
  "w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
2348
2354
  nr.body.sm(),
2349
- t === l.primaryEmail.address && l.domainEmails.length === 0 ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
2355
+ t === f.primaryEmail.address && f.domainEmails.length === 0 ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
2350
2356
  ),
2351
- style: l.customColor ? { backgroundColor: l.customColor } : void 0,
2357
+ style: f.customColor ? { backgroundColor: f.customColor } : void 0,
2352
2358
  children: [
2353
2359
  /* @__PURE__ */ H("div", { className: "flex items-center flex-1 min-w-0", children: [
2354
- /* @__PURE__ */ N("span", { className: "truncate flex-1", children: Sn(l.walletAddress) }),
2355
- /* @__PURE__ */ N(or, { addressType: l.primaryEmail.addressType })
2360
+ /* @__PURE__ */ N("span", { className: "truncate flex-1", children: En(f.walletAddress) }),
2361
+ /* @__PURE__ */ N(or, { addressType: f.primaryEmail.addressType })
2356
2362
  ] }),
2357
- l.domainEmails.length > 0 && /* @__PURE__ */ N(
2363
+ f.domainEmails.length > 0 && /* @__PURE__ */ N(
2358
2364
  "div",
2359
2365
  {
2360
- onClick: (f) => {
2361
- f.stopPropagation(), i(l.walletAddress);
2366
+ onClick: (s) => {
2367
+ s.stopPropagation(), l?.("toggle_wallet"), i(f.walletAddress);
2362
2368
  },
2363
2369
  className: "p-1 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors cursor-pointer",
2364
2370
  role: "button",
2365
2371
  tabIndex: 0,
2366
- onKeyDown: (f) => {
2367
- (f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), i(l.walletAddress));
2372
+ onKeyDown: (s) => {
2373
+ (s.key === "Enter" || s.key === " ") && (s.preventDefault(), s.stopPropagation(), l?.("toggle_wallet"), i(f.walletAddress));
2368
2374
  },
2369
2375
  children: /* @__PURE__ */ N(
2370
- wr,
2376
+ Cr,
2371
2377
  {
2372
2378
  className: j(
2373
2379
  "h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",
2374
- r.includes(l.walletAddress) ? "rotate-90" : "rotate-0"
2380
+ r.includes(f.walletAddress) ? "rotate-90" : "rotate-0"
2375
2381
  )
2376
2382
  }
2377
2383
  )
@@ -2380,17 +2386,18 @@ const Sn = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2380
2386
  ]
2381
2387
  }
2382
2388
  ),
2383
- l.domainEmails.length > 0 && /* @__PURE__ */ N(
2384
- pn,
2389
+ f.domainEmails.length > 0 && /* @__PURE__ */ N(
2390
+ Sn,
2385
2391
  {
2386
- domainEmails: l.domainEmails,
2387
- isExpanded: r.includes(l.walletAddress),
2392
+ domainEmails: f.domainEmails,
2393
+ isExpanded: r.includes(f.walletAddress),
2388
2394
  selectedAccount: t,
2389
2395
  onAccountSelect: a,
2390
- onAccountSettings: n
2396
+ onAccountSettings: n,
2397
+ onTrack: l
2391
2398
  }
2392
2399
  )
2393
- ] }, l.walletAddress)) }), Qa = ({
2400
+ ] }, f.walletAddress)) }), Xa = ({
2394
2401
  className: e,
2395
2402
  children: t,
2396
2403
  disabled: r
@@ -2409,7 +2416,7 @@ const Sn = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2409
2416
  "aria-label": "EmailAnalytics",
2410
2417
  children: t || "EmailAnalytics Component"
2411
2418
  }
2412
- ), xa = ({
2419
+ ), Qa = ({
2413
2420
  className: e,
2414
2421
  children: t,
2415
2422
  disabled: r
@@ -2471,22 +2478,27 @@ const Sn = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2471
2478
  onToggle: t,
2472
2479
  showLabel: r,
2473
2480
  hideLabel: a,
2474
- ...i
2481
+ onTrack: i,
2482
+ trackingLabel: n,
2483
+ componentName: u = "CollapsibleEmailField",
2484
+ ...l
2475
2485
  }) => /* @__PURE__ */ H("div", { children: [
2476
2486
  /* @__PURE__ */ H(
2477
2487
  "button",
2478
2488
  {
2479
2489
  type: "button",
2480
- onClick: t,
2490
+ onClick: () => {
2491
+ i?.({ action: "toggle", trackingLabel: n, componentName: u }), t();
2492
+ },
2481
2493
  className: "flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 mb-2",
2482
2494
  children: [
2483
- e ? /* @__PURE__ */ N(Ir, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ N(Mr, { className: "h-4 w-4 mr-1" }),
2495
+ e ? /* @__PURE__ */ N(wr, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ N(Ir, { className: "h-4 w-4 mr-1" }),
2484
2496
  e ? a : r
2485
2497
  ]
2486
2498
  }
2487
2499
  ),
2488
- e && /* @__PURE__ */ N(lr, { ...i })
2489
- ] }), $a = ({
2500
+ e && /* @__PURE__ */ N(lr, { ...l })
2501
+ ] }), xa = ({
2490
2502
  to: e,
2491
2503
  onToChange: t,
2492
2504
  cc: r = "",
@@ -2496,13 +2508,16 @@ const Sn = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2496
2508
  showCc: u = !1,
2497
2509
  showBcc: l = !1,
2498
2510
  onToggleCc: f,
2499
- onToggleBcc: d,
2511
+ onToggleBcc: s,
2500
2512
  errors: c = {},
2501
- className: s = "",
2513
+ className: d = "",
2502
2514
  labels: g = {},
2503
- placeholders: y = {}
2515
+ placeholders: E = {},
2516
+ onTrack: S,
2517
+ trackingLabel: R,
2518
+ componentName: b = "EmailInputGroup"
2504
2519
  }) => {
2505
- const S = {
2520
+ const A = {
2506
2521
  to: "To",
2507
2522
  cc: "CC",
2508
2523
  bcc: "BCC",
@@ -2510,19 +2525,19 @@ const Sn = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2510
2525
  removeCc: "Remove CC",
2511
2526
  addBcc: "Add BCC",
2512
2527
  removeBcc: "Remove BCC"
2513
- }, R = {
2528
+ }, p = {
2514
2529
  to: "recipient@example.com",
2515
2530
  cc: "cc@example.com",
2516
2531
  bcc: "bcc@example.com"
2517
- }, b = { ...S, ...g }, p = { ...R, ...y };
2518
- return /* @__PURE__ */ H("div", { className: `space-y-4 ${s}`, children: [
2532
+ }, h = { ...A, ...g }, T = { ...p, ...E };
2533
+ return /* @__PURE__ */ H("div", { className: `space-y-4 ${d}`, children: [
2519
2534
  /* @__PURE__ */ N(
2520
2535
  lr,
2521
2536
  {
2522
- label: b.to,
2537
+ label: h.to,
2523
2538
  value: e,
2524
2539
  onChange: t,
2525
- placeholder: p.to,
2540
+ placeholder: T.to,
2526
2541
  required: !0,
2527
2542
  error: c.to
2528
2543
  }
@@ -2530,55 +2545,65 @@ const Sn = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
2530
2545
  f && a && /* @__PURE__ */ N(
2531
2546
  Xt,
2532
2547
  {
2533
- label: b.cc,
2548
+ label: h.cc,
2534
2549
  value: r,
2535
2550
  onChange: a,
2536
- placeholder: p.cc,
2551
+ placeholder: T.cc,
2537
2552
  error: c.cc,
2538
2553
  isVisible: u,
2539
2554
  onToggle: f,
2540
- showLabel: b.addCc,
2541
- hideLabel: b.removeCc
2555
+ showLabel: h.addCc,
2556
+ hideLabel: h.removeCc,
2557
+ onTrack: S,
2558
+ trackingLabel: R
2542
2559
  }
2543
2560
  ),
2544
- d && n && /* @__PURE__ */ N(
2561
+ s && n && /* @__PURE__ */ N(
2545
2562
  Xt,
2546
2563
  {
2547
- label: b.bcc,
2564
+ label: h.bcc,
2548
2565
  value: i,
2549
2566
  onChange: n,
2550
- placeholder: p.bcc,
2567
+ placeholder: T.bcc,
2551
2568
  error: c.bcc,
2552
2569
  isVisible: l,
2553
- onToggle: d,
2554
- showLabel: b.addBcc,
2555
- hideLabel: b.removeBcc
2570
+ onToggle: s,
2571
+ showLabel: h.addBcc,
2572
+ hideLabel: h.removeBcc,
2573
+ onTrack: S,
2574
+ trackingLabel: R
2556
2575
  }
2557
2576
  )
2558
2577
  ] });
2559
- }, ei = ({
2578
+ }, $a = ({
2560
2579
  className: e,
2561
2580
  children: t,
2562
2581
  disabled: r = !1,
2563
- onClick: a
2564
- }) => /* @__PURE__ */ N(
2565
- "div",
2566
- {
2567
- className: j(
2568
- "p-4 rounded-lg border transition-colors",
2569
- "bg-white dark:bg-gray-900",
2570
- "border-gray-200 dark:border-gray-700",
2571
- "text-gray-900 dark:text-white",
2572
- r && "opacity-50 cursor-not-allowed",
2573
- "hover:bg-gray-50 dark:hover:bg-gray-800",
2574
- e
2575
- ),
2576
- onClick: r ? void 0 : a,
2577
- role: "region",
2578
- "aria-label": "UemailUtemplate",
2579
- children: t || "UemailUtemplate Component"
2580
- }
2581
- );
2582
+ onClick: a,
2583
+ onTrack: i
2584
+ }) => {
2585
+ const n = () => {
2586
+ r || (i?.("click"), a?.());
2587
+ };
2588
+ return /* @__PURE__ */ N(
2589
+ "div",
2590
+ {
2591
+ className: j(
2592
+ "p-4 rounded-lg border transition-colors",
2593
+ "bg-white dark:bg-gray-900",
2594
+ "border-gray-200 dark:border-gray-700",
2595
+ "text-gray-900 dark:text-white",
2596
+ r && "opacity-50 cursor-not-allowed",
2597
+ "hover:bg-gray-50 dark:hover:bg-gray-800",
2598
+ e
2599
+ ),
2600
+ onClick: n,
2601
+ role: "region",
2602
+ "aria-label": "UemailUtemplate",
2603
+ children: t || "UemailUtemplate Component"
2604
+ }
2605
+ );
2606
+ };
2582
2607
  function L(e, t) {
2583
2608
  if (e === !1 || e === null || typeof e > "u")
2584
2609
  throw new Error(t);
@@ -2610,29 +2635,29 @@ function ze(e) {
2610
2635
  return t;
2611
2636
  }
2612
2637
  function cr(e, t, r = "/") {
2613
- return An(e, t, r, !1);
2638
+ return pn(e, t, r, !1);
2614
2639
  }
2615
- function An(e, t, r, a) {
2640
+ function pn(e, t, r, a) {
2616
2641
  let i = typeof t == "string" ? ze(t) : t, n = X(i.pathname || "/", r);
2617
2642
  if (n == null)
2618
2643
  return null;
2619
2644
  let u = sr(e);
2620
- Rn(u);
2645
+ An(u);
2621
2646
  let l = null;
2622
2647
  for (let f = 0; l == null && f < u.length; ++f) {
2623
- let d = Ln(n);
2624
- l = In(
2648
+ let s = Mn(n);
2649
+ l = wn(
2625
2650
  u[f],
2626
- d,
2651
+ s,
2627
2652
  a
2628
2653
  );
2629
2654
  }
2630
2655
  return l;
2631
2656
  }
2632
2657
  function sr(e, t = [], r = [], a = "", i = !1) {
2633
- let n = (u, l, f = i, d) => {
2658
+ let n = (u, l, f = i, s) => {
2634
2659
  let c = {
2635
- relativePath: d === void 0 ? u.path || "" : d,
2660
+ relativePath: s === void 0 ? u.path || "" : s,
2636
2661
  caseSensitive: u.caseSensitive === !0,
2637
2662
  childrenIndex: l,
2638
2663
  route: u
@@ -2645,21 +2670,21 @@ function sr(e, t = [], r = [], a = "", i = !1) {
2645
2670
  `Absolute route path "${c.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
2646
2671
  ), c.relativePath = c.relativePath.slice(a.length);
2647
2672
  }
2648
- let s = z([a, c.relativePath]), g = r.concat(c);
2673
+ let d = z([a, c.relativePath]), g = r.concat(c);
2649
2674
  u.children && u.children.length > 0 && (L(
2650
2675
  // Our types know better, but runtime JS may not!
2651
2676
  // @ts-expect-error
2652
2677
  u.index !== !0,
2653
- `Index routes must not have child routes. Please remove all child routes from route path "${s}".`
2678
+ `Index routes must not have child routes. Please remove all child routes from route path "${d}".`
2654
2679
  ), sr(
2655
2680
  u.children,
2656
2681
  t,
2657
2682
  g,
2658
- s,
2683
+ d,
2659
2684
  f
2660
2685
  )), !(u.path == null && !u.index) && t.push({
2661
- path: s,
2662
- score: Cn(s, u.index),
2686
+ path: d,
2687
+ score: Pn(d, u.index),
2663
2688
  routesMeta: g
2664
2689
  });
2665
2690
  };
@@ -2686,23 +2711,23 @@ function dr(e) {
2686
2711
  (f) => e.startsWith("/") && f === "" ? "/" : f
2687
2712
  );
2688
2713
  }
2689
- function Rn(e) {
2714
+ function An(e) {
2690
2715
  e.sort(
2691
- (t, r) => t.score !== r.score ? r.score - t.score : wn(
2716
+ (t, r) => t.score !== r.score ? r.score - t.score : Cn(
2692
2717
  t.routesMeta.map((a) => a.childrenIndex),
2693
2718
  r.routesMeta.map((a) => a.childrenIndex)
2694
2719
  )
2695
2720
  );
2696
2721
  }
2697
- var vn = /^:[\w-]+$/, Tn = 3, On = 2, Nn = 1, _n = 10, Pn = -2, Qt = (e) => e === "*";
2698
- function Cn(e, t) {
2722
+ var Rn = /^:[\w-]+$/, vn = 3, Tn = 2, On = 1, Nn = 10, _n = -2, Qt = (e) => e === "*";
2723
+ function Pn(e, t) {
2699
2724
  let r = e.split("/"), a = r.length;
2700
- return r.some(Qt) && (a += Pn), t && (a += On), r.filter((i) => !Qt(i)).reduce(
2701
- (i, n) => i + (vn.test(n) ? Tn : n === "" ? Nn : _n),
2725
+ return r.some(Qt) && (a += _n), t && (a += Tn), r.filter((i) => !Qt(i)).reduce(
2726
+ (i, n) => i + (Rn.test(n) ? vn : n === "" ? On : Nn),
2702
2727
  a
2703
2728
  );
2704
2729
  }
2705
- function wn(e, t) {
2730
+ function Cn(e, t) {
2706
2731
  return e.length === t.length && e.slice(0, -1).every((a, i) => a === t[i]) ? (
2707
2732
  // If two routes are siblings, we should try to match the earlier sibling
2708
2733
  // first. This allows people to have fine-grained control over the matching
@@ -2715,37 +2740,37 @@ function wn(e, t) {
2715
2740
  0
2716
2741
  );
2717
2742
  }
2718
- function In(e, t, r = !1) {
2743
+ function wn(e, t, r = !1) {
2719
2744
  let { routesMeta: a } = e, i = {}, n = "/", u = [];
2720
2745
  for (let l = 0; l < a.length; ++l) {
2721
- let f = a[l], d = l === a.length - 1, c = n === "/" ? t : t.slice(n.length) || "/", s = Ae(
2722
- { path: f.relativePath, caseSensitive: f.caseSensitive, end: d },
2746
+ let f = a[l], s = l === a.length - 1, c = n === "/" ? t : t.slice(n.length) || "/", d = Ae(
2747
+ { path: f.relativePath, caseSensitive: f.caseSensitive, end: s },
2723
2748
  c
2724
2749
  ), g = f.route;
2725
- if (!s && d && r && !a[a.length - 1].route.index && (s = Ae(
2750
+ if (!d && s && r && !a[a.length - 1].route.index && (d = Ae(
2726
2751
  {
2727
2752
  path: f.relativePath,
2728
2753
  caseSensitive: f.caseSensitive,
2729
2754
  end: !1
2730
2755
  },
2731
2756
  c
2732
- )), !s)
2757
+ )), !d)
2733
2758
  return null;
2734
- Object.assign(i, s.params), u.push({
2759
+ Object.assign(i, d.params), u.push({
2735
2760
  // TODO: Can this as be avoided?
2736
2761
  params: i,
2737
- pathname: z([n, s.pathname]),
2738
- pathnameBase: Wn(
2739
- z([n, s.pathnameBase])
2762
+ pathname: z([n, d.pathname]),
2763
+ pathnameBase: Un(
2764
+ z([n, d.pathnameBase])
2740
2765
  ),
2741
2766
  route: g
2742
- }), s.pathnameBase !== "/" && (n = z([n, s.pathnameBase]));
2767
+ }), d.pathnameBase !== "/" && (n = z([n, d.pathnameBase]));
2743
2768
  }
2744
2769
  return u;
2745
2770
  }
2746
2771
  function Ae(e, t) {
2747
2772
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
2748
- let [r, a] = Mn(
2773
+ let [r, a] = In(
2749
2774
  e.path,
2750
2775
  e.caseSensitive,
2751
2776
  e.end
@@ -2754,13 +2779,13 @@ function Ae(e, t) {
2754
2779
  let n = i[0], u = n.replace(/(.)\/+$/, "$1"), l = i.slice(1);
2755
2780
  return {
2756
2781
  params: a.reduce(
2757
- (d, { paramName: c, isOptional: s }, g) => {
2782
+ (s, { paramName: c, isOptional: d }, g) => {
2758
2783
  if (c === "*") {
2759
2784
  let S = l[g] || "";
2760
2785
  u = n.slice(0, n.length - S.length).replace(/(.)\/+$/, "$1");
2761
2786
  }
2762
- const y = l[g];
2763
- return s && !y ? d[c] = void 0 : d[c] = (y || "").replace(/%2F/g, "/"), d;
2787
+ const E = l[g];
2788
+ return d && !E ? s[c] = void 0 : s[c] = (E || "").replace(/%2F/g, "/"), s;
2764
2789
  },
2765
2790
  {}
2766
2791
  ),
@@ -2769,7 +2794,7 @@ function Ae(e, t) {
2769
2794
  pattern: e
2770
2795
  };
2771
2796
  }
2772
- function Mn(e, t = !1, r = !0) {
2797
+ function In(e, t = !1, r = !0) {
2773
2798
  Y(
2774
2799
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
2775
2800
  `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(/\*$/, "/*")}".`
@@ -2780,7 +2805,7 @@ function Mn(e, t = !1, r = !0) {
2780
2805
  ).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
2781
2806
  return e.endsWith("*") ? (a.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), a];
2782
2807
  }
2783
- function Ln(e) {
2808
+ function Mn(e) {
2784
2809
  try {
2785
2810
  return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
2786
2811
  } catch (t) {
@@ -2797,15 +2822,15 @@ function X(e, t) {
2797
2822
  let r = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(r);
2798
2823
  return a && a !== "/" ? null : e.slice(r) || "/";
2799
2824
  }
2800
- var jn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Dn = (e) => jn.test(e);
2801
- function kn(e, t = "/") {
2825
+ var Ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, jn = (e) => Ln.test(e);
2826
+ function Dn(e, t = "/") {
2802
2827
  let {
2803
2828
  pathname: r,
2804
2829
  search: a = "",
2805
2830
  hash: i = ""
2806
2831
  } = typeof e == "string" ? ze(e) : e, n;
2807
2832
  if (r)
2808
- if (Dn(r))
2833
+ if (jn(r))
2809
2834
  n = r;
2810
2835
  else {
2811
2836
  if (r.includes("//")) {
@@ -2821,8 +2846,8 @@ function kn(e, t = "/") {
2821
2846
  n = t;
2822
2847
  return {
2823
2848
  pathname: n,
2824
- search: Vn(a),
2825
- hash: Fn(i)
2849
+ search: Wn(a),
2850
+ hash: Vn(i)
2826
2851
  };
2827
2852
  }
2828
2853
  function xt(e, t) {
@@ -2836,13 +2861,13 @@ function qe(e, t, r, a) {
2836
2861
  a
2837
2862
  )}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
2838
2863
  }
2839
- function Un(e) {
2864
+ function kn(e) {
2840
2865
  return e.filter(
2841
2866
  (t, r) => r === 0 || t.route.path && t.route.path.length > 0
2842
2867
  );
2843
2868
  }
2844
2869
  function fr(e) {
2845
- let t = Un(e);
2870
+ let t = kn(e);
2846
2871
  return t.map(
2847
2872
  (r, a) => a === t.length - 1 ? r.pathname : r.pathnameBase
2848
2873
  );
@@ -2863,20 +2888,20 @@ function mr(e, t, r, a = !1) {
2863
2888
  if (u == null)
2864
2889
  l = r;
2865
2890
  else {
2866
- let s = t.length - 1;
2891
+ let d = t.length - 1;
2867
2892
  if (!a && u.startsWith("..")) {
2868
2893
  let g = u.split("/");
2869
2894
  for (; g[0] === ".."; )
2870
- g.shift(), s -= 1;
2895
+ g.shift(), d -= 1;
2871
2896
  i.pathname = g.join("/");
2872
2897
  }
2873
- l = s >= 0 ? t[s] : "/";
2898
+ l = d >= 0 ? t[d] : "/";
2874
2899
  }
2875
- let f = kn(i, l), d = u && u !== "/" && u.endsWith("/"), c = (n || u === ".") && r.endsWith("/");
2876
- return !f.pathname.endsWith("/") && (d || c) && (f.pathname += "/"), f;
2900
+ let f = Dn(i, l), s = u && u !== "/" && u.endsWith("/"), c = (n || u === ".") && r.endsWith("/");
2901
+ return !f.pathname.endsWith("/") && (s || c) && (f.pathname += "/"), f;
2877
2902
  }
2878
- var z = (e) => e.join("/").replace(/\/\/+/g, "/"), Wn = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Vn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Fn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
2879
- function Bn(e) {
2903
+ var z = (e) => e.join("/").replace(/\/\/+/g, "/"), Un = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Wn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Vn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
2904
+ function Fn(e) {
2880
2905
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
2881
2906
  }
2882
2907
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
@@ -2889,54 +2914,54 @@ var gr = [
2889
2914
  new Set(
2890
2915
  gr
2891
2916
  );
2892
- var qn = [
2917
+ var Bn = [
2893
2918
  "GET",
2894
2919
  ...gr
2895
2920
  ];
2896
- new Set(qn);
2897
- var se = h.createContext(null);
2921
+ new Set(Bn);
2922
+ var se = y.createContext(null);
2898
2923
  se.displayName = "DataRouter";
2899
- var Re = h.createContext(null);
2924
+ var Re = y.createContext(null);
2900
2925
  Re.displayName = "DataRouterState";
2901
- h.createContext(!1);
2902
- var br = h.createContext({
2926
+ y.createContext(!1);
2927
+ var br = y.createContext({
2903
2928
  isTransitioning: !1
2904
2929
  });
2905
2930
  br.displayName = "ViewTransition";
2906
- var Hn = h.createContext(
2931
+ var qn = y.createContext(
2907
2932
  /* @__PURE__ */ new Map()
2908
2933
  );
2909
- Hn.displayName = "Fetchers";
2910
- var Gn = h.createContext(null);
2911
- Gn.displayName = "Await";
2912
- var K = h.createContext(
2934
+ qn.displayName = "Fetchers";
2935
+ var Hn = y.createContext(null);
2936
+ Hn.displayName = "Await";
2937
+ var K = y.createContext(
2913
2938
  null
2914
2939
  );
2915
2940
  K.displayName = "Navigation";
2916
- var Ke = h.createContext(
2941
+ var Ke = y.createContext(
2917
2942
  null
2918
2943
  );
2919
2944
  Ke.displayName = "Location";
2920
- var Z = h.createContext({
2945
+ var Z = y.createContext({
2921
2946
  outlet: null,
2922
2947
  matches: [],
2923
2948
  isDataRoute: !1
2924
2949
  });
2925
2950
  Z.displayName = "Route";
2926
- var Ze = h.createContext(null);
2951
+ var Ze = y.createContext(null);
2927
2952
  Ze.displayName = "RouteError";
2928
- function Yn(e, { relative: t } = {}) {
2953
+ function Gn(e, { relative: t } = {}) {
2929
2954
  L(
2930
2955
  ve(),
2931
2956
  // TODO: This error is probably because they somehow have 2 versions of the
2932
2957
  // router loaded. We can help them understand how to avoid that.
2933
2958
  "useHref() may be used only in the context of a <Router> component."
2934
2959
  );
2935
- let { basename: r, navigator: a } = h.useContext(K), { hash: i, pathname: n, search: u } = ye(e, { relative: t }), l = n;
2960
+ let { basename: r, navigator: a } = y.useContext(K), { hash: i, pathname: n, search: u } = ye(e, { relative: t }), l = n;
2936
2961
  return r !== "/" && (l = n === "/" ? r : z([r, n])), a.createHref({ pathname: l, search: u, hash: i });
2937
2962
  }
2938
2963
  function ve() {
2939
- return h.useContext(Ke) != null;
2964
+ return y.useContext(Ke) != null;
2940
2965
  }
2941
2966
  function oe() {
2942
2967
  return L(
@@ -2944,28 +2969,28 @@ function oe() {
2944
2969
  // TODO: This error is probably because they somehow have 2 versions of the
2945
2970
  // router loaded. We can help them understand how to avoid that.
2946
2971
  "useLocation() may be used only in the context of a <Router> component."
2947
- ), h.useContext(Ke).location;
2972
+ ), y.useContext(Ke).location;
2948
2973
  }
2949
2974
  var hr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2950
2975
  function yr(e) {
2951
- h.useContext(K).static || h.useLayoutEffect(e);
2976
+ y.useContext(K).static || y.useLayoutEffect(e);
2952
2977
  }
2953
- function zn() {
2954
- let { isDataRoute: e } = h.useContext(Z);
2955
- return e ? ia() : Kn();
2978
+ function Yn() {
2979
+ let { isDataRoute: e } = y.useContext(Z);
2980
+ return e ? aa() : zn();
2956
2981
  }
2957
- function Kn() {
2982
+ function zn() {
2958
2983
  L(
2959
2984
  ve(),
2960
2985
  // TODO: This error is probably because they somehow have 2 versions of the
2961
2986
  // router loaded. We can help them understand how to avoid that.
2962
2987
  "useNavigate() may be used only in the context of a <Router> component."
2963
2988
  );
2964
- let e = h.useContext(se), { basename: t, navigator: r } = h.useContext(K), { matches: a } = h.useContext(Z), { pathname: i } = oe(), n = JSON.stringify(fr(a)), u = h.useRef(!1);
2989
+ let e = y.useContext(se), { basename: t, navigator: r } = y.useContext(K), { matches: a } = y.useContext(Z), { pathname: i } = oe(), n = JSON.stringify(fr(a)), u = y.useRef(!1);
2965
2990
  return yr(() => {
2966
2991
  u.current = !0;
2967
- }), h.useCallback(
2968
- (f, d = {}) => {
2992
+ }), y.useCallback(
2993
+ (f, s = {}) => {
2969
2994
  if (Y(u.current, hr), !u.current) return;
2970
2995
  if (typeof f == "number") {
2971
2996
  r.go(f);
@@ -2975,12 +3000,12 @@ function Kn() {
2975
3000
  f,
2976
3001
  JSON.parse(n),
2977
3002
  i,
2978
- d.relative === "path"
3003
+ s.relative === "path"
2979
3004
  );
2980
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : z([t, c.pathname])), (d.replace ? r.replace : r.push)(
3005
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : z([t, c.pathname])), (s.replace ? r.replace : r.push)(
2981
3006
  c,
2982
- d.state,
2983
- d
3007
+ s.state,
3008
+ s
2984
3009
  );
2985
3010
  },
2986
3011
  [
@@ -2992,10 +3017,10 @@ function Kn() {
2992
3017
  ]
2993
3018
  );
2994
3019
  }
2995
- h.createContext(null);
3020
+ y.createContext(null);
2996
3021
  function ye(e, { relative: t } = {}) {
2997
- let { matches: r } = h.useContext(Z), { pathname: a } = oe(), i = JSON.stringify(fr(r));
2998
- return h.useMemo(
3022
+ let { matches: r } = y.useContext(Z), { pathname: a } = oe(), i = JSON.stringify(fr(r));
3023
+ return y.useMemo(
2999
3024
  () => mr(
3000
3025
  e,
3001
3026
  JSON.parse(i),
@@ -3005,42 +3030,42 @@ function ye(e, { relative: t } = {}) {
3005
3030
  [e, i, a, t]
3006
3031
  );
3007
3032
  }
3008
- function Zn(e, t, r, a, i) {
3033
+ function Kn(e, t, r, a, i) {
3009
3034
  L(
3010
3035
  ve(),
3011
3036
  // TODO: This error is probably because they somehow have 2 versions of the
3012
3037
  // router loaded. We can help them understand how to avoid that.
3013
3038
  "useRoutes() may be used only in the context of a <Router> component."
3014
3039
  );
3015
- let { navigator: n } = h.useContext(K), { matches: u } = h.useContext(Z), l = u[u.length - 1], f = l ? l.params : {}, d = l ? l.pathname : "/", c = l ? l.pathnameBase : "/", s = l && l.route;
3040
+ let { navigator: n } = y.useContext(K), { matches: u } = y.useContext(Z), l = u[u.length - 1], f = l ? l.params : {}, s = l ? l.pathname : "/", c = l ? l.pathnameBase : "/", d = l && l.route;
3016
3041
  {
3017
- let A = s && s.path || "";
3042
+ let p = d && d.path || "";
3018
3043
  Er(
3019
- d,
3020
- !s || A.endsWith("*") || A.endsWith("*?"),
3021
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${A}">) 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.
3044
+ s,
3045
+ !d || p.endsWith("*") || p.endsWith("*?"),
3046
+ `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${p}">) 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.
3022
3047
 
3023
- Please change the parent <Route path="${A}"> to <Route path="${A === "/" ? "*" : `${A}/*`}">.`
3048
+ Please change the parent <Route path="${p}"> to <Route path="${p === "/" ? "*" : `${p}/*`}">.`
3024
3049
  );
3025
3050
  }
3026
- let g = oe(), y;
3027
- y = g;
3028
- let S = y.pathname || "/", R = S;
3051
+ let g = oe(), E;
3052
+ E = g;
3053
+ let S = E.pathname || "/", R = S;
3029
3054
  if (c !== "/") {
3030
- let A = c.replace(/^\//, "").split("/");
3031
- R = "/" + S.replace(/^\//, "").split("/").slice(A.length).join("/");
3055
+ let p = c.replace(/^\//, "").split("/");
3056
+ R = "/" + S.replace(/^\//, "").split("/").slice(p.length).join("/");
3032
3057
  }
3033
3058
  let b = cr(e, { pathname: R });
3034
3059
  return Y(
3035
- s || b != null,
3036
- `No routes matched location "${y.pathname}${y.search}${y.hash}" `
3060
+ d || b != null,
3061
+ `No routes matched location "${E.pathname}${E.search}${E.hash}" `
3037
3062
  ), Y(
3038
3063
  b == null || b[b.length - 1].route.element !== void 0 || b[b.length - 1].route.Component !== void 0 || b[b.length - 1].route.lazy !== void 0,
3039
- `Matched leaf route at location "${y.pathname}${y.search}${y.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.`
3040
- ), $n(
3064
+ `Matched leaf route at location "${E.pathname}${E.search}${E.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.`
3065
+ ), xn(
3041
3066
  b && b.map(
3042
- (A) => Object.assign({}, A, {
3043
- params: Object.assign({}, f, A.params),
3067
+ (p) => Object.assign({}, p, {
3068
+ params: Object.assign({}, f, p.params),
3044
3069
  pathname: z([
3045
3070
  c,
3046
3071
  // Re-encode pathnames that were decoded inside matchRoutes.
@@ -3048,18 +3073,18 @@ Please change the parent <Route path="${A}"> to <Route path="${A === "/" ? "*" :
3048
3073
  // `new URL()` internally and we need to prevent it from treating
3049
3074
  // them as separators
3050
3075
  n.encodeLocation ? n.encodeLocation(
3051
- A.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
3052
- ).pathname : A.pathname
3076
+ p.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
3077
+ ).pathname : p.pathname
3053
3078
  ]),
3054
- pathnameBase: A.pathnameBase === "/" ? c : z([
3079
+ pathnameBase: p.pathnameBase === "/" ? c : z([
3055
3080
  c,
3056
3081
  // Re-encode pathnames that were decoded inside matchRoutes
3057
3082
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
3058
3083
  // `new URL()` internally and we need to prevent it from treating
3059
3084
  // them as separators
3060
3085
  n.encodeLocation ? n.encodeLocation(
3061
- A.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
3062
- ).pathname : A.pathnameBase
3086
+ p.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
3087
+ ).pathname : p.pathnameBase
3063
3088
  ])
3064
3089
  })
3065
3090
  ),
@@ -3069,14 +3094,14 @@ Please change the parent <Route path="${A}"> to <Route path="${A === "/" ? "*" :
3069
3094
  i
3070
3095
  );
3071
3096
  }
3072
- function Jn() {
3073
- let e = aa(), t = Bn(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: a }, n = { padding: "2px 4px", backgroundColor: a }, u = null;
3097
+ function Zn() {
3098
+ let e = na(), t = Fn(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: a }, n = { padding: "2px 4px", backgroundColor: a }, u = null;
3074
3099
  return console.error(
3075
3100
  "Error handled by React Router default ErrorBoundary:",
3076
3101
  e
3077
- ), u = /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ h.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ h.createElement("code", { style: n }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ h.createElement("code", { style: n }, "errorElement"), " prop on your route.")), /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ h.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ h.createElement("pre", { style: i }, r) : null, u);
3102
+ ), u = /* @__PURE__ */ y.createElement(y.Fragment, null, /* @__PURE__ */ y.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ y.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ y.createElement("code", { style: n }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ y.createElement("code", { style: n }, "errorElement"), " prop on your route.")), /* @__PURE__ */ y.createElement(y.Fragment, null, /* @__PURE__ */ y.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ y.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ y.createElement("pre", { style: i }, r) : null, u);
3078
3103
  }
3079
- var Xn = /* @__PURE__ */ h.createElement(Jn, null), Qn = class extends h.Component {
3104
+ var Jn = /* @__PURE__ */ y.createElement(Zn, null), Xn = class extends y.Component {
3080
3105
  constructor(e) {
3081
3106
  super(e), this.state = {
3082
3107
  location: e.location,
@@ -3105,7 +3130,7 @@ var Xn = /* @__PURE__ */ h.createElement(Jn, null), Qn = class extends h.Compone
3105
3130
  );
3106
3131
  }
3107
3132
  render() {
3108
- return this.state.error !== void 0 ? /* @__PURE__ */ h.createElement(Z.Provider, { value: this.props.routeContext }, /* @__PURE__ */ h.createElement(
3133
+ return this.state.error !== void 0 ? /* @__PURE__ */ y.createElement(Z.Provider, { value: this.props.routeContext }, /* @__PURE__ */ y.createElement(
3109
3134
  Ze.Provider,
3110
3135
  {
3111
3136
  value: this.state.error,
@@ -3114,11 +3139,11 @@ var Xn = /* @__PURE__ */ h.createElement(Jn, null), Qn = class extends h.Compone
3114
3139
  )) : this.props.children;
3115
3140
  }
3116
3141
  };
3117
- function xn({ routeContext: e, match: t, children: r }) {
3118
- let a = h.useContext(se);
3119
- return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ h.createElement(Z.Provider, { value: e }, r);
3142
+ function Qn({ routeContext: e, match: t, children: r }) {
3143
+ let a = y.useContext(se);
3144
+ return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ y.createElement(Z.Provider, { value: e }, r);
3120
3145
  }
3121
- function $n(e, t = [], r = null, a = null, i = null) {
3146
+ function xn(e, t = [], r = null, a = null, i = null) {
3122
3147
  if (e == null) {
3123
3148
  if (!r)
3124
3149
  return null;
@@ -3132,7 +3157,7 @@ function $n(e, t = [], r = null, a = null, i = null) {
3132
3157
  let n = e, u = r?.errors;
3133
3158
  if (u != null) {
3134
3159
  let c = n.findIndex(
3135
- (s) => s.route.id && u?.[s.route.id] !== void 0
3160
+ (d) => d.route.id && u?.[d.route.id] !== void 0
3136
3161
  );
3137
3162
  L(
3138
3163
  c >= 0,
@@ -3147,57 +3172,57 @@ function $n(e, t = [], r = null, a = null, i = null) {
3147
3172
  let l = !1, f = -1;
3148
3173
  if (r)
3149
3174
  for (let c = 0; c < n.length; c++) {
3150
- let s = n[c];
3151
- if ((s.route.HydrateFallback || s.route.hydrateFallbackElement) && (f = c), s.route.id) {
3152
- let { loaderData: g, errors: y } = r, S = s.route.loader && !g.hasOwnProperty(s.route.id) && (!y || y[s.route.id] === void 0);
3153
- if (s.route.lazy || S) {
3175
+ let d = n[c];
3176
+ if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (f = c), d.route.id) {
3177
+ let { loaderData: g, errors: E } = r, S = d.route.loader && !g.hasOwnProperty(d.route.id) && (!E || E[d.route.id] === void 0);
3178
+ if (d.route.lazy || S) {
3154
3179
  l = !0, f >= 0 ? n = n.slice(0, f + 1) : n = [n[0]];
3155
3180
  break;
3156
3181
  }
3157
3182
  }
3158
3183
  }
3159
- let d = r && a ? (c, s) => {
3184
+ let s = r && a ? (c, d) => {
3160
3185
  a(c, {
3161
3186
  location: r.location,
3162
3187
  params: r.matches?.[0]?.params ?? {},
3163
- errorInfo: s
3188
+ errorInfo: d
3164
3189
  });
3165
3190
  } : void 0;
3166
3191
  return n.reduceRight(
3167
- (c, s, g) => {
3168
- let y, S = !1, R = null, b = null;
3169
- r && (y = u && s.route.id ? u[s.route.id] : void 0, R = s.route.errorElement || Xn, l && (f < 0 && g === 0 ? (Er(
3192
+ (c, d, g) => {
3193
+ let E, S = !1, R = null, b = null;
3194
+ r && (E = u && d.route.id ? u[d.route.id] : void 0, R = d.route.errorElement || Jn, l && (f < 0 && g === 0 ? (Er(
3170
3195
  "route-fallback",
3171
3196
  !1,
3172
3197
  "No `HydrateFallback` element provided to render during initial hydration"
3173
- ), S = !0, b = null) : f === g && (S = !0, b = s.route.hydrateFallbackElement || null)));
3174
- let p = t.concat(n.slice(0, g + 1)), A = () => {
3175
- let E;
3176
- return y ? E = R : S ? E = b : s.route.Component ? E = /* @__PURE__ */ h.createElement(s.route.Component, null) : s.route.element ? E = s.route.element : E = c, /* @__PURE__ */ h.createElement(
3177
- xn,
3198
+ ), S = !0, b = null) : f === g && (S = !0, b = d.route.hydrateFallbackElement || null)));
3199
+ let A = t.concat(n.slice(0, g + 1)), p = () => {
3200
+ let h;
3201
+ return E ? h = R : S ? h = b : d.route.Component ? h = /* @__PURE__ */ y.createElement(d.route.Component, null) : d.route.element ? h = d.route.element : h = c, /* @__PURE__ */ y.createElement(
3202
+ Qn,
3178
3203
  {
3179
- match: s,
3204
+ match: d,
3180
3205
  routeContext: {
3181
3206
  outlet: c,
3182
- matches: p,
3207
+ matches: A,
3183
3208
  isDataRoute: r != null
3184
3209
  },
3185
- children: E
3210
+ children: h
3186
3211
  }
3187
3212
  );
3188
3213
  };
3189
- return r && (s.route.ErrorBoundary || s.route.errorElement || g === 0) ? /* @__PURE__ */ h.createElement(
3190
- Qn,
3214
+ return r && (d.route.ErrorBoundary || d.route.errorElement || g === 0) ? /* @__PURE__ */ y.createElement(
3215
+ Xn,
3191
3216
  {
3192
3217
  location: r.location,
3193
3218
  revalidation: r.revalidation,
3194
3219
  component: R,
3195
- error: y,
3196
- children: A(),
3197
- routeContext: { outlet: null, matches: p, isDataRoute: !0 },
3198
- onError: d
3220
+ error: E,
3221
+ children: p(),
3222
+ routeContext: { outlet: null, matches: A, isDataRoute: !0 },
3223
+ onError: s
3199
3224
  }
3200
- ) : A();
3225
+ ) : p();
3201
3226
  },
3202
3227
  null
3203
3228
  );
@@ -3205,33 +3230,33 @@ function $n(e, t = [], r = null, a = null, i = null) {
3205
3230
  function Je(e) {
3206
3231
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
3207
3232
  }
3208
- function ea(e) {
3209
- let t = h.useContext(se);
3233
+ function $n(e) {
3234
+ let t = y.useContext(se);
3210
3235
  return L(t, Je(e)), t;
3211
3236
  }
3212
- function ta(e) {
3213
- let t = h.useContext(Re);
3237
+ function ea(e) {
3238
+ let t = y.useContext(Re);
3214
3239
  return L(t, Je(e)), t;
3215
3240
  }
3216
- function ra(e) {
3217
- let t = h.useContext(Z);
3241
+ function ta(e) {
3242
+ let t = y.useContext(Z);
3218
3243
  return L(t, Je(e)), t;
3219
3244
  }
3220
3245
  function Xe(e) {
3221
- let t = ra(e), r = t.matches[t.matches.length - 1];
3246
+ let t = ta(e), r = t.matches[t.matches.length - 1];
3222
3247
  return L(
3223
3248
  r.route.id,
3224
3249
  `${e} can only be used on routes that contain a unique "id"`
3225
3250
  ), r.route.id;
3226
3251
  }
3227
- function na() {
3252
+ function ra() {
3228
3253
  return Xe(
3229
3254
  "useRouteId"
3230
3255
  /* UseRouteId */
3231
3256
  );
3232
3257
  }
3233
- function aa() {
3234
- let e = h.useContext(Ze), t = ta(
3258
+ function na() {
3259
+ let e = y.useContext(Ze), t = ea(
3235
3260
  "useRouteError"
3236
3261
  /* UseRouteError */
3237
3262
  ), r = Xe(
@@ -3240,17 +3265,17 @@ function aa() {
3240
3265
  );
3241
3266
  return e !== void 0 ? e : t.errors?.[r];
3242
3267
  }
3243
- function ia() {
3244
- let { router: e } = ea(
3268
+ function aa() {
3269
+ let { router: e } = $n(
3245
3270
  "useNavigate"
3246
3271
  /* UseNavigateStable */
3247
3272
  ), t = Xe(
3248
3273
  "useNavigate"
3249
3274
  /* UseNavigateStable */
3250
- ), r = h.useRef(!1);
3275
+ ), r = y.useRef(!1);
3251
3276
  return yr(() => {
3252
3277
  r.current = !0;
3253
- }), h.useCallback(
3278
+ }), y.useCallback(
3254
3279
  async (i, n = {}) => {
3255
3280
  Y(r.current, hr), r.current && (typeof i == "number" ? e.navigate(i) : await e.navigate(i, { fromRouteId: t, ...n }));
3256
3281
  },
@@ -3261,38 +3286,38 @@ var $t = {};
3261
3286
  function Er(e, t, r) {
3262
3287
  !t && !$t[e] && ($t[e] = !0, Y(!1, r));
3263
3288
  }
3264
- h.memo(ua);
3265
- function ua({
3289
+ y.memo(ia);
3290
+ function ia({
3266
3291
  routes: e,
3267
3292
  future: t,
3268
3293
  state: r,
3269
3294
  unstable_onError: a
3270
3295
  }) {
3271
- return Zn(e, void 0, r, a, t);
3296
+ return Kn(e, void 0, r, a, t);
3272
3297
  }
3273
3298
  var Se = "get", pe = "application/x-www-form-urlencoded";
3274
3299
  function Te(e) {
3275
3300
  return e != null && typeof e.tagName == "string";
3276
3301
  }
3277
- function oa(e) {
3302
+ function ua(e) {
3278
3303
  return Te(e) && e.tagName.toLowerCase() === "button";
3279
3304
  }
3280
- function la(e) {
3305
+ function oa(e) {
3281
3306
  return Te(e) && e.tagName.toLowerCase() === "form";
3282
3307
  }
3283
- function ca(e) {
3308
+ function la(e) {
3284
3309
  return Te(e) && e.tagName.toLowerCase() === "input";
3285
3310
  }
3286
- function sa(e) {
3311
+ function ca(e) {
3287
3312
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
3288
3313
  }
3289
- function da(e, t) {
3314
+ function sa(e, t) {
3290
3315
  return e.button === 0 && // Ignore everything but left clicks
3291
3316
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
3292
- !sa(e);
3317
+ !ca(e);
3293
3318
  }
3294
3319
  var Ee = null;
3295
- function fa() {
3320
+ function da() {
3296
3321
  if (Ee === null)
3297
3322
  try {
3298
3323
  new FormData(
@@ -3305,35 +3330,35 @@ function fa() {
3305
3330
  }
3306
3331
  return Ee;
3307
3332
  }
3308
- var ma = /* @__PURE__ */ new Set([
3333
+ var fa = /* @__PURE__ */ new Set([
3309
3334
  "application/x-www-form-urlencoded",
3310
3335
  "multipart/form-data",
3311
3336
  "text/plain"
3312
3337
  ]);
3313
3338
  function He(e) {
3314
- return e != null && !ma.has(e) ? (Y(
3339
+ return e != null && !fa.has(e) ? (Y(
3315
3340
  !1,
3316
3341
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pe}"`
3317
3342
  ), null) : e;
3318
3343
  }
3319
- function ga(e, t) {
3344
+ function ma(e, t) {
3320
3345
  let r, a, i, n, u;
3321
- if (la(e)) {
3346
+ if (oa(e)) {
3322
3347
  let l = e.getAttribute("action");
3323
3348
  a = l ? X(l, t) : null, r = e.getAttribute("method") || Se, i = He(e.getAttribute("enctype")) || pe, n = new FormData(e);
3324
- } else if (oa(e) || ca(e) && (e.type === "submit" || e.type === "image")) {
3349
+ } else if (ua(e) || la(e) && (e.type === "submit" || e.type === "image")) {
3325
3350
  let l = e.form;
3326
3351
  if (l == null)
3327
3352
  throw new Error(
3328
3353
  'Cannot submit a <button> or <input type="submit"> without a <form>'
3329
3354
  );
3330
3355
  let f = e.getAttribute("formaction") || l.getAttribute("action");
3331
- if (a = f ? X(f, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || Se, i = He(e.getAttribute("formenctype")) || He(l.getAttribute("enctype")) || pe, n = new FormData(l, e), !fa()) {
3332
- let { name: d, type: c, value: s } = e;
3356
+ if (a = f ? X(f, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || Se, i = He(e.getAttribute("formenctype")) || He(l.getAttribute("enctype")) || pe, n = new FormData(l, e), !da()) {
3357
+ let { name: s, type: c, value: d } = e;
3333
3358
  if (c === "image") {
3334
- let g = d ? `${d}.` : "";
3359
+ let g = s ? `${s}.` : "";
3335
3360
  n.append(`${g}x`, "0"), n.append(`${g}y`, "0");
3336
- } else d && n.append(d, s);
3361
+ } else s && n.append(s, d);
3337
3362
  }
3338
3363
  } else {
3339
3364
  if (Te(e))
@@ -3349,7 +3374,7 @@ function Qe(e, t) {
3349
3374
  if (e === !1 || e === null || typeof e > "u")
3350
3375
  throw new Error(t);
3351
3376
  }
3352
- function ba(e, t, r) {
3377
+ function ga(e, t, r) {
3353
3378
  let a = typeof e == "string" ? new URL(
3354
3379
  e,
3355
3380
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -3358,7 +3383,7 @@ function ba(e, t, r) {
3358
3383
  ) : e;
3359
3384
  return a.pathname === "/" ? a.pathname = `_root.${r}` : t && X(a.pathname, t) === "/" ? a.pathname = `${t.replace(/\/$/, "")}/_root.${r}` : a.pathname = `${a.pathname.replace(/\/$/, "")}.${r}`, a;
3360
3385
  }
3361
- async function ha(e, t) {
3386
+ async function ba(e, t) {
3362
3387
  if (e.id in t)
3363
3388
  return t[e.id];
3364
3389
  try {
@@ -3375,43 +3400,43 @@ async function ha(e, t) {
3375
3400
  });
3376
3401
  }
3377
3402
  }
3378
- function ya(e) {
3403
+ function ha(e) {
3379
3404
  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";
3380
3405
  }
3381
- async function Ea(e, t, r) {
3406
+ async function ya(e, t, r) {
3382
3407
  let a = await Promise.all(
3383
3408
  e.map(async (i) => {
3384
3409
  let n = t.routes[i.route.id];
3385
3410
  if (n) {
3386
- let u = await ha(n, r);
3411
+ let u = await ba(n, r);
3387
3412
  return u.links ? u.links() : [];
3388
3413
  }
3389
3414
  return [];
3390
3415
  })
3391
3416
  );
3392
- return Ra(
3393
- a.flat(1).filter(ya).filter((i) => i.rel === "stylesheet" || i.rel === "preload").map(
3417
+ return Aa(
3418
+ a.flat(1).filter(ha).filter((i) => i.rel === "stylesheet" || i.rel === "preload").map(
3394
3419
  (i) => i.rel === "stylesheet" ? { ...i, rel: "prefetch", as: "style" } : { ...i, rel: "prefetch" }
3395
3420
  )
3396
3421
  );
3397
3422
  }
3398
3423
  function er(e, t, r, a, i, n) {
3399
- let u = (f, d) => r[d] ? f.route.id !== r[d].route.id : !0, l = (f, d) => (
3424
+ let u = (f, s) => r[s] ? f.route.id !== r[s].route.id : !0, l = (f, s) => (
3400
3425
  // param change, /users/123 -> /users/456
3401
- r[d].pathname !== f.pathname || // splat param changed, which is not present in match.path
3426
+ r[s].pathname !== f.pathname || // splat param changed, which is not present in match.path
3402
3427
  // e.g. /files/images/avatar.jpg -> files/finances.xls
3403
- r[d].route.path?.endsWith("*") && r[d].params["*"] !== f.params["*"]
3428
+ r[s].route.path?.endsWith("*") && r[s].params["*"] !== f.params["*"]
3404
3429
  );
3405
3430
  return n === "assets" ? t.filter(
3406
- (f, d) => u(f, d) || l(f, d)
3407
- ) : n === "data" ? t.filter((f, d) => {
3431
+ (f, s) => u(f, s) || l(f, s)
3432
+ ) : n === "data" ? t.filter((f, s) => {
3408
3433
  let c = a.routes[f.route.id];
3409
3434
  if (!c || !c.hasLoader)
3410
3435
  return !1;
3411
- if (u(f, d) || l(f, d))
3436
+ if (u(f, s) || l(f, s))
3412
3437
  return !0;
3413
3438
  if (f.route.shouldRevalidate) {
3414
- let s = f.route.shouldRevalidate({
3439
+ let d = f.route.shouldRevalidate({
3415
3440
  currentUrl: new URL(
3416
3441
  i.pathname + i.search + i.hash,
3417
3442
  window.origin
@@ -3421,14 +3446,14 @@ function er(e, t, r, a, i, n) {
3421
3446
  nextParams: f.params,
3422
3447
  defaultShouldRevalidate: !0
3423
3448
  });
3424
- if (typeof s == "boolean")
3425
- return s;
3449
+ if (typeof d == "boolean")
3450
+ return d;
3426
3451
  }
3427
3452
  return !0;
3428
3453
  }) : [];
3429
3454
  }
3430
- function Sa(e, t, { includeHydrateFallback: r } = {}) {
3431
- return pa(
3455
+ function Ea(e, t, { includeHydrateFallback: r } = {}) {
3456
+ return Sa(
3432
3457
  e.map((a) => {
3433
3458
  let i = t.routes[a.route.id];
3434
3459
  if (!i) return [];
@@ -3437,59 +3462,59 @@ function Sa(e, t, { includeHydrateFallback: r } = {}) {
3437
3462
  }).flat(1)
3438
3463
  );
3439
3464
  }
3440
- function pa(e) {
3465
+ function Sa(e) {
3441
3466
  return [...new Set(e)];
3442
3467
  }
3443
- function Aa(e) {
3468
+ function pa(e) {
3444
3469
  let t = {}, r = Object.keys(e).sort();
3445
3470
  for (let a of r)
3446
3471
  t[a] = e[a];
3447
3472
  return t;
3448
3473
  }
3449
- function Ra(e, t) {
3474
+ function Aa(e, t) {
3450
3475
  let r = /* @__PURE__ */ new Set();
3451
3476
  return new Set(t), e.reduce((a, i) => {
3452
- let n = JSON.stringify(Aa(i));
3477
+ let n = JSON.stringify(pa(i));
3453
3478
  return r.has(n) || (r.add(n), a.push({ key: n, link: i })), a;
3454
3479
  }, []);
3455
3480
  }
3456
3481
  function Sr() {
3457
- let e = h.useContext(se);
3482
+ let e = y.useContext(se);
3458
3483
  return Qe(
3459
3484
  e,
3460
3485
  "You must render this element inside a <DataRouterContext.Provider> element"
3461
3486
  ), e;
3462
3487
  }
3463
- function va() {
3464
- let e = h.useContext(Re);
3488
+ function Ra() {
3489
+ let e = y.useContext(Re);
3465
3490
  return Qe(
3466
3491
  e,
3467
3492
  "You must render this element inside a <DataRouterStateContext.Provider> element"
3468
3493
  ), e;
3469
3494
  }
3470
- var xe = h.createContext(void 0);
3495
+ var xe = y.createContext(void 0);
3471
3496
  xe.displayName = "FrameworkContext";
3472
3497
  function pr() {
3473
- let e = h.useContext(xe);
3498
+ let e = y.useContext(xe);
3474
3499
  return Qe(
3475
3500
  e,
3476
3501
  "You must render this element inside a <HydratedRouter> element"
3477
3502
  ), e;
3478
3503
  }
3479
- function Ta(e, t) {
3480
- let r = h.useContext(xe), [a, i] = h.useState(!1), [n, u] = h.useState(!1), { onFocus: l, onBlur: f, onMouseEnter: d, onMouseLeave: c, onTouchStart: s } = t, g = h.useRef(null);
3481
- h.useEffect(() => {
3504
+ function va(e, t) {
3505
+ let r = y.useContext(xe), [a, i] = y.useState(!1), [n, u] = y.useState(!1), { onFocus: l, onBlur: f, onMouseEnter: s, onMouseLeave: c, onTouchStart: d } = t, g = y.useRef(null);
3506
+ y.useEffect(() => {
3482
3507
  if (e === "render" && u(!0), e === "viewport") {
3483
- let R = (p) => {
3484
- p.forEach((A) => {
3485
- u(A.isIntersecting);
3508
+ let R = (A) => {
3509
+ A.forEach((p) => {
3510
+ u(p.isIntersecting);
3486
3511
  });
3487
3512
  }, b = new IntersectionObserver(R, { threshold: 0.5 });
3488
3513
  return g.current && b.observe(g.current), () => {
3489
3514
  b.disconnect();
3490
3515
  };
3491
3516
  }
3492
- }, [e]), h.useEffect(() => {
3517
+ }, [e]), y.useEffect(() => {
3493
3518
  if (a) {
3494
3519
  let R = setTimeout(() => {
3495
3520
  u(!0);
@@ -3499,7 +3524,7 @@ function Ta(e, t) {
3499
3524
  };
3500
3525
  }
3501
3526
  }, [a]);
3502
- let y = () => {
3527
+ let E = () => {
3503
3528
  i(!0);
3504
3529
  }, S = () => {
3505
3530
  i(!1), u(!1);
@@ -3508,11 +3533,11 @@ function Ta(e, t) {
3508
3533
  n,
3509
3534
  g,
3510
3535
  {
3511
- onFocus: he(l, y),
3536
+ onFocus: he(l, E),
3512
3537
  onBlur: he(f, S),
3513
- onMouseEnter: he(d, y),
3538
+ onMouseEnter: he(s, E),
3514
3539
  onMouseLeave: he(c, S),
3515
- onTouchStart: he(s, y)
3540
+ onTouchStart: he(d, E)
3516
3541
  }
3517
3542
  ] : [!1, g, {}];
3518
3543
  }
@@ -3521,18 +3546,18 @@ function he(e, t) {
3521
3546
  e && e(r), r.defaultPrevented || t(r);
3522
3547
  };
3523
3548
  }
3524
- function Oa({ page: e, ...t }) {
3525
- let { router: r } = Sr(), a = h.useMemo(
3549
+ function Ta({ page: e, ...t }) {
3550
+ let { router: r } = Sr(), a = y.useMemo(
3526
3551
  () => cr(r.routes, e, r.basename),
3527
3552
  [r.routes, e, r.basename]
3528
3553
  );
3529
- return a ? /* @__PURE__ */ h.createElement(_a, { page: e, matches: a, ...t }) : null;
3554
+ return a ? /* @__PURE__ */ y.createElement(Na, { page: e, matches: a, ...t }) : null;
3530
3555
  }
3531
- function Na(e) {
3532
- let { manifest: t, routeModules: r } = pr(), [a, i] = h.useState([]);
3533
- return h.useEffect(() => {
3556
+ function Oa(e) {
3557
+ let { manifest: t, routeModules: r } = pr(), [a, i] = y.useState([]);
3558
+ return y.useEffect(() => {
3534
3559
  let n = !1;
3535
- return Ea(e, t, r).then(
3560
+ return ya(e, t, r).then(
3536
3561
  (u) => {
3537
3562
  n || i(u);
3538
3563
  }
@@ -3541,12 +3566,12 @@ function Na(e) {
3541
3566
  };
3542
3567
  }, [e, t, r]), a;
3543
3568
  }
3544
- function _a({
3569
+ function Na({
3545
3570
  page: e,
3546
3571
  matches: t,
3547
3572
  ...r
3548
3573
  }) {
3549
- let a = oe(), { manifest: i, routeModules: n } = pr(), { basename: u } = Sr(), { loaderData: l, matches: f } = va(), d = h.useMemo(
3574
+ let a = oe(), { manifest: i, routeModules: n } = pr(), { basename: u } = Sr(), { loaderData: l, matches: f } = Ra(), s = y.useMemo(
3550
3575
  () => er(
3551
3576
  e,
3552
3577
  t,
@@ -3556,7 +3581,7 @@ function _a({
3556
3581
  "data"
3557
3582
  ),
3558
3583
  [e, t, f, i, a]
3559
- ), c = h.useMemo(
3584
+ ), c = y.useMemo(
3560
3585
  () => er(
3561
3586
  e,
3562
3587
  t,
@@ -3566,40 +3591,40 @@ function _a({
3566
3591
  "assets"
3567
3592
  ),
3568
3593
  [e, t, f, i, a]
3569
- ), s = h.useMemo(() => {
3594
+ ), d = y.useMemo(() => {
3570
3595
  if (e === a.pathname + a.search + a.hash)
3571
3596
  return [];
3572
3597
  let S = /* @__PURE__ */ new Set(), R = !1;
3573
- if (t.forEach((p) => {
3574
- let A = i.routes[p.route.id];
3575
- !A || !A.hasLoader || (!d.some((E) => E.route.id === p.route.id) && p.route.id in l && n[p.route.id]?.shouldRevalidate || A.hasClientLoader ? R = !0 : S.add(p.route.id));
3598
+ if (t.forEach((A) => {
3599
+ let p = i.routes[A.route.id];
3600
+ !p || !p.hasLoader || (!s.some((h) => h.route.id === A.route.id) && A.route.id in l && n[A.route.id]?.shouldRevalidate || p.hasClientLoader ? R = !0 : S.add(A.route.id));
3576
3601
  }), S.size === 0)
3577
3602
  return [];
3578
- let b = ba(e, u, "data");
3603
+ let b = ga(e, u, "data");
3579
3604
  return R && S.size > 0 && b.searchParams.set(
3580
3605
  "_routes",
3581
- t.filter((p) => S.has(p.route.id)).map((p) => p.route.id).join(",")
3606
+ t.filter((A) => S.has(A.route.id)).map((A) => A.route.id).join(",")
3582
3607
  ), [b.pathname + b.search];
3583
3608
  }, [
3584
3609
  u,
3585
3610
  l,
3586
3611
  a,
3587
3612
  i,
3588
- d,
3613
+ s,
3589
3614
  t,
3590
3615
  e,
3591
3616
  n
3592
- ]), g = h.useMemo(
3593
- () => Sa(c, i),
3617
+ ]), g = y.useMemo(
3618
+ () => Ea(c, i),
3594
3619
  [c, i]
3595
- ), y = Na(c);
3596
- return /* @__PURE__ */ h.createElement(h.Fragment, null, s.map((S) => /* @__PURE__ */ h.createElement("link", { key: S, rel: "prefetch", as: "fetch", href: S, ...r })), g.map((S) => /* @__PURE__ */ h.createElement("link", { key: S, rel: "modulepreload", href: S, ...r })), y.map(({ key: S, link: R }) => (
3620
+ ), E = Oa(c);
3621
+ return /* @__PURE__ */ y.createElement(y.Fragment, null, d.map((S) => /* @__PURE__ */ y.createElement("link", { key: S, rel: "prefetch", as: "fetch", href: S, ...r })), g.map((S) => /* @__PURE__ */ y.createElement("link", { key: S, rel: "modulepreload", href: S, ...r })), E.map(({ key: S, link: R }) => (
3597
3622
  // these don't spread `linkProps` because they are full link descriptors
3598
3623
  // already with their own props
3599
- /* @__PURE__ */ h.createElement("link", { key: S, nonce: r.nonce, ...R })
3624
+ /* @__PURE__ */ y.createElement("link", { key: S, nonce: r.nonce, ...R })
3600
3625
  )));
3601
3626
  }
3602
- function Pa(...e) {
3627
+ function _a(...e) {
3603
3628
  return (t) => {
3604
3629
  e.forEach((r) => {
3605
3630
  typeof r == "function" ? r(t) : r != null && (r.current = t);
@@ -3612,7 +3637,7 @@ try {
3612
3637
  "7.9.6");
3613
3638
  } catch {
3614
3639
  }
3615
- var Rr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, $e = h.forwardRef(
3640
+ var Rr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, $e = y.forwardRef(
3616
3641
  function({
3617
3642
  onClick: t,
3618
3643
  discover: r = "render",
@@ -3622,56 +3647,56 @@ var Rr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, $e = h.forwardRef(
3622
3647
  replace: u,
3623
3648
  state: l,
3624
3649
  target: f,
3625
- to: d,
3650
+ to: s,
3626
3651
  preventScrollReset: c,
3627
- viewTransition: s,
3652
+ viewTransition: d,
3628
3653
  ...g
3629
- }, y) {
3630
- let { basename: S } = h.useContext(K), R = typeof d == "string" && Rr.test(d), b, p = !1;
3631
- if (typeof d == "string" && R && (b = d, Ar))
3654
+ }, E) {
3655
+ let { basename: S } = y.useContext(K), R = typeof s == "string" && Rr.test(s), b, A = !1;
3656
+ if (typeof s == "string" && R && (b = s, Ar))
3632
3657
  try {
3633
- let o = new URL(window.location.href), ce = d.startsWith("//") ? new URL(o.protocol + d) : new URL(d), tt = X(ce.pathname, S);
3634
- ce.origin === o.origin && tt != null ? d = tt + ce.search + ce.hash : p = !0;
3658
+ let o = new URL(window.location.href), ce = s.startsWith("//") ? new URL(o.protocol + s) : new URL(s), tt = X(ce.pathname, S);
3659
+ ce.origin === o.origin && tt != null ? s = tt + ce.search + ce.hash : A = !0;
3635
3660
  } catch {
3636
3661
  Y(
3637
3662
  !1,
3638
- `<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
3663
+ `<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
3639
3664
  );
3640
3665
  }
3641
- let A = Yn(d, { relative: i }), [E, T, _] = Ta(
3666
+ let p = Gn(s, { relative: i }), [h, T, _] = va(
3642
3667
  a,
3643
3668
  g
3644
- ), k = Ma(d, {
3669
+ ), k = Ia(s, {
3645
3670
  replace: u,
3646
3671
  state: l,
3647
3672
  target: f,
3648
3673
  preventScrollReset: c,
3649
3674
  relative: i,
3650
- viewTransition: s
3675
+ viewTransition: d
3651
3676
  });
3652
3677
  function m(o) {
3653
3678
  t && t(o), o.defaultPrevented || k(o);
3654
3679
  }
3655
3680
  let le = (
3656
3681
  // eslint-disable-next-line jsx-a11y/anchor-has-content
3657
- /* @__PURE__ */ h.createElement(
3682
+ /* @__PURE__ */ y.createElement(
3658
3683
  "a",
3659
3684
  {
3660
3685
  ...g,
3661
3686
  ..._,
3662
- href: b || A,
3663
- onClick: p || n ? t : m,
3664
- ref: Pa(y, T),
3687
+ href: b || p,
3688
+ onClick: A || n ? t : m,
3689
+ ref: _a(E, T),
3665
3690
  target: f,
3666
3691
  "data-discover": !R && r === "render" ? "true" : void 0
3667
3692
  }
3668
3693
  )
3669
3694
  );
3670
- return E && !R ? /* @__PURE__ */ h.createElement(h.Fragment, null, le, /* @__PURE__ */ h.createElement(Oa, { page: A })) : le;
3695
+ return h && !R ? /* @__PURE__ */ y.createElement(y.Fragment, null, le, /* @__PURE__ */ y.createElement(Ta, { page: p })) : le;
3671
3696
  }
3672
3697
  );
3673
3698
  $e.displayName = "Link";
3674
- var Ca = h.forwardRef(
3699
+ var Pa = y.forwardRef(
3675
3700
  function({
3676
3701
  "aria-current": t = "page",
3677
3702
  caseSensitive: r = !1,
@@ -3681,14 +3706,14 @@ var Ca = h.forwardRef(
3681
3706
  to: u,
3682
3707
  viewTransition: l,
3683
3708
  children: f,
3684
- ...d
3709
+ ...s
3685
3710
  }, c) {
3686
- let s = ye(u, { relative: d.relative }), g = oe(), y = h.useContext(Re), { navigator: S, basename: R } = h.useContext(K), b = y != null && // Conditional usage is OK here because the usage of a data router is static
3711
+ let d = ye(u, { relative: s.relative }), g = oe(), E = y.useContext(Re), { navigator: S, basename: R } = y.useContext(K), b = E != null && // Conditional usage is OK here because the usage of a data router is static
3687
3712
  // eslint-disable-next-line react-hooks/rules-of-hooks
3688
- Ua(s) && l === !0, p = S.encodeLocation ? S.encodeLocation(s).pathname : s.pathname, A = g.pathname, E = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
3689
- r || (A = A.toLowerCase(), E = E ? E.toLowerCase() : null, p = p.toLowerCase()), E && R && (E = X(E, R) || E);
3690
- const T = p !== "/" && p.endsWith("/") ? p.length - 1 : p.length;
3691
- let _ = A === p || !i && A.startsWith(p) && A.charAt(T) === "/", k = E != null && (E === p || !i && E.startsWith(p) && E.charAt(p.length) === "/"), m = {
3713
+ ka(d) && l === !0, A = S.encodeLocation ? S.encodeLocation(d).pathname : d.pathname, p = g.pathname, h = E && E.navigation && E.navigation.location ? E.navigation.location.pathname : null;
3714
+ r || (p = p.toLowerCase(), h = h ? h.toLowerCase() : null, A = A.toLowerCase()), h && R && (h = X(h, R) || h);
3715
+ const T = A !== "/" && A.endsWith("/") ? A.length - 1 : A.length;
3716
+ let _ = p === A || !i && p.startsWith(A) && p.charAt(T) === "/", k = h != null && (h === A || !i && h.startsWith(A) && h.charAt(A.length) === "/"), m = {
3692
3717
  isActive: _,
3693
3718
  isPending: k,
3694
3719
  isTransitioning: b
@@ -3700,10 +3725,10 @@ var Ca = h.forwardRef(
3700
3725
  b ? "transitioning" : null
3701
3726
  ].filter(Boolean).join(" ");
3702
3727
  let ce = typeof n == "function" ? n(m) : n;
3703
- return /* @__PURE__ */ h.createElement(
3728
+ return /* @__PURE__ */ y.createElement(
3704
3729
  $e,
3705
3730
  {
3706
- ...d,
3731
+ ...s,
3707
3732
  "aria-current": le,
3708
3733
  className: o,
3709
3734
  ref: c,
@@ -3715,8 +3740,8 @@ var Ca = h.forwardRef(
3715
3740
  );
3716
3741
  }
3717
3742
  );
3718
- Ca.displayName = "NavLink";
3719
- var wa = h.forwardRef(
3743
+ Pa.displayName = "NavLink";
3744
+ var Ca = y.forwardRef(
3720
3745
  ({
3721
3746
  discover: e = "render",
3722
3747
  fetcherKey: t,
@@ -3727,48 +3752,48 @@ var wa = h.forwardRef(
3727
3752
  method: u = Se,
3728
3753
  action: l,
3729
3754
  onSubmit: f,
3730
- relative: d,
3755
+ relative: s,
3731
3756
  preventScrollReset: c,
3732
- viewTransition: s,
3757
+ viewTransition: d,
3733
3758
  ...g
3734
- }, y) => {
3735
- let S = Da(), R = ka(l, { relative: d }), b = u.toLowerCase() === "get" ? "get" : "post", p = typeof l == "string" && Rr.test(l), A = (E) => {
3736
- if (f && f(E), E.defaultPrevented) return;
3737
- E.preventDefault();
3738
- let T = E.nativeEvent.submitter, _ = T?.getAttribute("formmethod") || u;
3739
- S(T || E.currentTarget, {
3759
+ }, E) => {
3760
+ let S = ja(), R = Da(l, { relative: s }), b = u.toLowerCase() === "get" ? "get" : "post", A = typeof l == "string" && Rr.test(l), p = (h) => {
3761
+ if (f && f(h), h.defaultPrevented) return;
3762
+ h.preventDefault();
3763
+ let T = h.nativeEvent.submitter, _ = T?.getAttribute("formmethod") || u;
3764
+ S(T || h.currentTarget, {
3740
3765
  fetcherKey: t,
3741
3766
  method: _,
3742
3767
  navigate: r,
3743
3768
  replace: i,
3744
3769
  state: n,
3745
- relative: d,
3770
+ relative: s,
3746
3771
  preventScrollReset: c,
3747
- viewTransition: s
3772
+ viewTransition: d
3748
3773
  });
3749
3774
  };
3750
- return /* @__PURE__ */ h.createElement(
3775
+ return /* @__PURE__ */ y.createElement(
3751
3776
  "form",
3752
3777
  {
3753
- ref: y,
3778
+ ref: E,
3754
3779
  method: b,
3755
3780
  action: R,
3756
- onSubmit: a ? f : A,
3781
+ onSubmit: a ? f : p,
3757
3782
  ...g,
3758
- "data-discover": !p && e === "render" ? "true" : void 0
3783
+ "data-discover": !A && e === "render" ? "true" : void 0
3759
3784
  }
3760
3785
  );
3761
3786
  }
3762
3787
  );
3763
- wa.displayName = "Form";
3764
- function Ia(e) {
3788
+ Ca.displayName = "Form";
3789
+ function wa(e) {
3765
3790
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
3766
3791
  }
3767
3792
  function vr(e) {
3768
- let t = h.useContext(se);
3769
- return L(t, Ia(e)), t;
3793
+ let t = y.useContext(se);
3794
+ return L(t, wa(e)), t;
3770
3795
  }
3771
- function Ma(e, {
3796
+ function Ia(e, {
3772
3797
  target: t,
3773
3798
  replace: r,
3774
3799
  state: a,
@@ -3776,14 +3801,14 @@ function Ma(e, {
3776
3801
  relative: n,
3777
3802
  viewTransition: u
3778
3803
  } = {}) {
3779
- let l = zn(), f = oe(), d = ye(e, { relative: n });
3780
- return h.useCallback(
3804
+ let l = Yn(), f = oe(), s = ye(e, { relative: n });
3805
+ return y.useCallback(
3781
3806
  (c) => {
3782
- if (da(c, t)) {
3807
+ if (sa(c, t)) {
3783
3808
  c.preventDefault();
3784
- let s = r !== void 0 ? r : Ge(f) === Ge(d);
3809
+ let d = r !== void 0 ? r : Ge(f) === Ge(s);
3785
3810
  l(e, {
3786
- replace: s,
3811
+ replace: d,
3787
3812
  state: a,
3788
3813
  preventScrollReset: i,
3789
3814
  relative: n,
@@ -3794,7 +3819,7 @@ function Ma(e, {
3794
3819
  [
3795
3820
  f,
3796
3821
  l,
3797
- d,
3822
+ s,
3798
3823
  r,
3799
3824
  a,
3800
3825
  t,
@@ -3805,24 +3830,24 @@ function Ma(e, {
3805
3830
  ]
3806
3831
  );
3807
3832
  }
3808
- var La = 0, ja = () => `__${String(++La)}__`;
3809
- function Da() {
3833
+ var Ma = 0, La = () => `__${String(++Ma)}__`;
3834
+ function ja() {
3810
3835
  let { router: e } = vr(
3811
3836
  "useSubmit"
3812
3837
  /* UseSubmit */
3813
- ), { basename: t } = h.useContext(K), r = na();
3814
- return h.useCallback(
3838
+ ), { basename: t } = y.useContext(K), r = ra();
3839
+ return y.useCallback(
3815
3840
  async (a, i = {}) => {
3816
- let { action: n, method: u, encType: l, formData: f, body: d } = ga(
3841
+ let { action: n, method: u, encType: l, formData: f, body: s } = ma(
3817
3842
  a,
3818
3843
  t
3819
3844
  );
3820
3845
  if (i.navigate === !1) {
3821
- let c = i.fetcherKey || ja();
3846
+ let c = i.fetcherKey || La();
3822
3847
  await e.fetch(c, r, i.action || n, {
3823
3848
  preventScrollReset: i.preventScrollReset,
3824
3849
  formData: f,
3825
- body: d,
3850
+ body: s,
3826
3851
  formMethod: i.method || u,
3827
3852
  formEncType: i.encType || l,
3828
3853
  flushSync: i.flushSync
@@ -3831,7 +3856,7 @@ function Da() {
3831
3856
  await e.navigate(i.action || n, {
3832
3857
  preventScrollReset: i.preventScrollReset,
3833
3858
  formData: f,
3834
- body: d,
3859
+ body: s,
3835
3860
  formMethod: i.method || u,
3836
3861
  formEncType: i.encType || l,
3837
3862
  replace: i.replace,
@@ -3844,23 +3869,23 @@ function Da() {
3844
3869
  [e, t, r]
3845
3870
  );
3846
3871
  }
3847
- function ka(e, { relative: t } = {}) {
3848
- let { basename: r } = h.useContext(K), a = h.useContext(Z);
3872
+ function Da(e, { relative: t } = {}) {
3873
+ let { basename: r } = y.useContext(K), a = y.useContext(Z);
3849
3874
  L(a, "useFormAction must be used inside a RouteContext");
3850
3875
  let [i] = a.matches.slice(-1), n = { ...ye(e || ".", { relative: t }) }, u = oe();
3851
3876
  if (e == null) {
3852
3877
  n.search = u.search;
3853
3878
  let l = new URLSearchParams(n.search), f = l.getAll("index");
3854
3879
  if (f.some((c) => c === "")) {
3855
- l.delete("index"), f.filter((s) => s).forEach((s) => l.append("index", s));
3880
+ l.delete("index"), f.filter((d) => d).forEach((d) => l.append("index", d));
3856
3881
  let c = l.toString();
3857
3882
  n.search = c ? `?${c}` : "";
3858
3883
  }
3859
3884
  }
3860
3885
  return (!e || e === ".") && i.route.index && (n.search = n.search ? n.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (n.pathname = n.pathname === "/" ? r : z([r, n.pathname])), Ge(n);
3861
3886
  }
3862
- function Ua(e, { relative: t } = {}) {
3863
- let r = h.useContext(br);
3887
+ function ka(e, { relative: t } = {}) {
3888
+ let r = y.useContext(br);
3864
3889
  L(
3865
3890
  r != null,
3866
3891
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
@@ -3883,24 +3908,24 @@ function Tr(e) {
3883
3908
  } else for (r in e) e[r] && (a && (a += " "), a += r);
3884
3909
  return a;
3885
3910
  }
3886
- function Wa() {
3911
+ function Ua() {
3887
3912
  for (var e, t, r = 0, a = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = Tr(e)) && (a && (a += " "), a += t);
3888
3913
  return a;
3889
3914
  }
3890
- const tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rr = Wa, et = (e, t) => (r) => {
3915
+ const tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rr = Ua, et = (e, t) => (r) => {
3891
3916
  var a;
3892
3917
  if (t?.variants == null) return rr(e, r?.class, r?.className);
3893
- const { variants: i, defaultVariants: n } = t, u = Object.keys(i).map((d) => {
3894
- const c = r?.[d], s = n?.[d];
3918
+ const { variants: i, defaultVariants: n } = t, u = Object.keys(i).map((s) => {
3919
+ const c = r?.[s], d = n?.[s];
3895
3920
  if (c === null) return null;
3896
- const g = tr(c) || tr(s);
3897
- return i[d][g];
3898
- }), l = r && Object.entries(r).reduce((d, c) => {
3899
- let [s, g] = c;
3900
- return g === void 0 || (d[s] = g), d;
3901
- }, {}), f = t == null || (a = t.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((d, c) => {
3902
- let { class: s, className: g, ...y } = c;
3903
- return Object.entries(y).every((S) => {
3921
+ const g = tr(c) || tr(d);
3922
+ return i[s][g];
3923
+ }), l = r && Object.entries(r).reduce((s, c) => {
3924
+ let [d, g] = c;
3925
+ return g === void 0 || (s[d] = g), s;
3926
+ }, {}), f = t == null || (a = t.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((s, c) => {
3927
+ let { class: d, className: g, ...E } = c;
3928
+ return Object.entries(E).every((S) => {
3904
3929
  let [R, b] = S;
3905
3930
  return Array.isArray(b) ? b.includes({
3906
3931
  ...n,
@@ -3910,13 +3935,13 @@ const tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rr = Wa, e
3910
3935
  ...l
3911
3936
  }[R] === b;
3912
3937
  }) ? [
3913
- ...d,
3914
- s,
3938
+ ...s,
3939
+ d,
3915
3940
  g
3916
- ] : d;
3941
+ ] : s;
3917
3942
  }, []);
3918
3943
  return rr(e, u, f, r?.class, r?.className);
3919
- }, Va = et("border-b transition-all duration-200", {
3944
+ }, Wa = et("border-b transition-all duration-200", {
3920
3945
  variants: {
3921
3946
  variant: {
3922
3947
  default: "bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 border-green-200 dark:border-green-700",
@@ -3934,7 +3959,7 @@ const tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rr = Wa, e
3934
3959
  variant: "default",
3935
3960
  size: "default"
3936
3961
  }
3937
- }), Fa = et("font-semibold", {
3962
+ }), Va = et("font-semibold", {
3938
3963
  variants: {
3939
3964
  variant: {
3940
3965
  default: "text-green-800 dark:text-green-200",
@@ -3946,7 +3971,7 @@ const tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rr = Wa, e
3946
3971
  defaultVariants: {
3947
3972
  variant: "default"
3948
3973
  }
3949
- }), Ba = et(
3974
+ }), Fa = et(
3950
3975
  "inline-flex items-center justify-center px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2",
3951
3976
  {
3952
3977
  variants: {
@@ -3961,7 +3986,7 @@ const tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rr = Wa, e
3961
3986
  variant: "default"
3962
3987
  }
3963
3988
  }
3964
- ), ti = ({
3989
+ ), ei = ({
3965
3990
  className: e,
3966
3991
  variant: t = "default",
3967
3992
  size: r = "default",
@@ -3971,86 +3996,100 @@ const tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rr = Wa, e
3971
3996
  showBadge: u = !0,
3972
3997
  badgeText: l = "FREE",
3973
3998
  onDismiss: f,
3974
- isDismissible: d = !1,
3975
- dismissAriaLabel: c = "Dismiss banner"
3976
- }) => {
3977
- const { containerClass: s } = Nr();
3978
- return /* @__PURE__ */ N("div", { className: j(Va({ variant: t, size: r }), e), children: /* @__PURE__ */ N("div", { className: s, children: /* @__PURE__ */ H("div", { className: "flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative", children: [
3979
- d && f && /* @__PURE__ */ N(
3980
- "button",
3999
+ isDismissible: s = !1,
4000
+ dismissAriaLabel: c = "Dismiss banner",
4001
+ onTrack: d
4002
+ }) => /* @__PURE__ */ N("div", { className: j(Wa({ variant: t, size: r }), e), children: /* @__PURE__ */ N("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ H("div", { className: "flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative", children: [
4003
+ s && f && /* @__PURE__ */ N(
4004
+ "button",
4005
+ {
4006
+ onClick: () => {
4007
+ d?.("dismiss"), f();
4008
+ },
4009
+ className: "absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors",
4010
+ "aria-label": c,
4011
+ children: /* @__PURE__ */ N(
4012
+ "svg",
4013
+ {
4014
+ className: "w-4 h-4 text-current opacity-60",
4015
+ fill: "none",
4016
+ stroke: "currentColor",
4017
+ viewBox: "0 0 24 24",
4018
+ children: /* @__PURE__ */ N(
4019
+ "path",
4020
+ {
4021
+ strokeLinecap: "round",
4022
+ strokeLinejoin: "round",
4023
+ strokeWidth: 2,
4024
+ d: "M6 18L18 6M6 6l12 12"
4025
+ }
4026
+ )
4027
+ }
4028
+ )
4029
+ }
4030
+ ),
4031
+ /* @__PURE__ */ H("div", { className: "flex items-center", children: [
4032
+ u && /* @__PURE__ */ N(
4033
+ "div",
3981
4034
  {
3982
- onClick: f,
3983
- className: "absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors",
3984
- "aria-label": c,
3985
- children: /* @__PURE__ */ N(
3986
- "svg",
3987
- {
3988
- className: "w-4 h-4 text-current opacity-60",
3989
- fill: "none",
3990
- stroke: "currentColor",
3991
- viewBox: "0 0 24 24",
3992
- children: /* @__PURE__ */ N(
3993
- "path",
3994
- {
3995
- strokeLinecap: "round",
3996
- strokeLinejoin: "round",
3997
- strokeWidth: 2,
3998
- d: "M6 18L18 6M6 6l12 12"
3999
- }
4000
- )
4001
- }
4002
- )
4035
+ className: j(
4036
+ "text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",
4037
+ t === "vibrant" ? "bg-white text-blue-600" : "bg-green-500 text-white"
4038
+ ),
4039
+ children: l
4003
4040
  }
4004
4041
  ),
4005
- /* @__PURE__ */ H("div", { className: "flex items-center", children: [
4006
- u && /* @__PURE__ */ N(
4007
- "div",
4008
- {
4009
- className: j(
4010
- "text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",
4011
- t === "vibrant" ? "bg-white text-blue-600" : "bg-green-500 text-white"
4012
- ),
4013
- children: l
4014
- }
4015
- ),
4016
- /* @__PURE__ */ N("span", { className: j(Fa({ variant: t })), children: a })
4017
- ] }),
4018
- /* @__PURE__ */ N($e, { to: n, className: j(Ba({ variant: t })), children: i })
4019
- ] }) }) });
4020
- }, ri = ({
4042
+ /* @__PURE__ */ N("span", { className: j(Va({ variant: t })), children: a })
4043
+ ] }),
4044
+ /* @__PURE__ */ N(
4045
+ $e,
4046
+ {
4047
+ to: n,
4048
+ className: j(Fa({ variant: t })),
4049
+ onClick: () => d?.("cta_click"),
4050
+ children: i
4051
+ }
4052
+ )
4053
+ ] }) }) }), ti = ({
4021
4054
  className: e,
4022
4055
  children: t,
4023
4056
  disabled: r = !1,
4024
- onClick: a
4025
- }) => /* @__PURE__ */ N(
4026
- "div",
4027
- {
4028
- className: j(
4029
- "p-4 rounded-lg border transition-colors",
4030
- "bg-white dark:bg-gray-900",
4031
- "border-gray-200 dark:border-gray-700",
4032
- "text-gray-900 dark:text-white",
4033
- r && "opacity-50 cursor-not-allowed",
4034
- "hover:bg-gray-50 dark:hover:bg-gray-800",
4035
- e
4036
- ),
4037
- onClick: r ? void 0 : a,
4038
- role: "region",
4039
- "aria-label": "UsubscriptionUplan",
4040
- children: t || "UsubscriptionUplan Component"
4041
- }
4042
- );
4057
+ onClick: a,
4058
+ onTrack: i
4059
+ }) => {
4060
+ const n = () => {
4061
+ r || (i?.("click"), a?.());
4062
+ };
4063
+ return /* @__PURE__ */ N(
4064
+ "div",
4065
+ {
4066
+ className: j(
4067
+ "p-4 rounded-lg border transition-colors",
4068
+ "bg-white dark:bg-gray-900",
4069
+ "border-gray-200 dark:border-gray-700",
4070
+ "text-gray-900 dark:text-white",
4071
+ r && "opacity-50 cursor-not-allowed",
4072
+ "hover:bg-gray-50 dark:hover:bg-gray-800",
4073
+ e
4074
+ ),
4075
+ onClick: n,
4076
+ role: "region",
4077
+ "aria-label": "UsubscriptionUplan",
4078
+ children: t || "UsubscriptionUplan Component"
4079
+ }
4080
+ );
4081
+ };
4043
4082
  export {
4044
- Za as AbTestEmail,
4083
+ Ka as AbTestEmail,
4045
4084
  Xt as CollapsibleEmailField,
4046
- Ja as ContactCard,
4047
- Xa as EmailAccountsList,
4048
- Qa as EmailAnalytics,
4049
- xa as EmailCampaign,
4085
+ Za as ContactCard,
4086
+ Ja as EmailAccountsList,
4087
+ Xa as EmailAnalytics,
4088
+ Qa as EmailCampaign,
4050
4089
  lr as EmailInputField,
4051
- $a as EmailInputGroup,
4052
- ti as FreeEmailBanner,
4053
- Ka as SubscriberList,
4054
- ei as UemailUtemplate,
4055
- ri as UsubscriptionUplan
4090
+ xa as EmailInputGroup,
4091
+ ei as FreeEmailBanner,
4092
+ za as SubscriberList,
4093
+ $a as UemailUtemplate,
4094
+ ti as UsubscriptionUplan
4056
4095
  };