@sudobility/components 2.0.14 → 2.0.16
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 +23 -11
- package/dist/index.umd.js +2 -2
- package/dist/ui/address-link.d.ts.map +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1940,7 +1940,17 @@ const Ya = (e) => {
|
|
|
1940
1940
|
n,
|
|
1941
1941
|
":"
|
|
1942
1942
|
] }),
|
|
1943
|
-
/* @__PURE__ */ i(
|
|
1943
|
+
/* @__PURE__ */ i(
|
|
1944
|
+
"span",
|
|
1945
|
+
{
|
|
1946
|
+
className: v(
|
|
1947
|
+
"font-mono text-sm",
|
|
1948
|
+
a === "full" && "break-all",
|
|
1949
|
+
c
|
|
1950
|
+
),
|
|
1951
|
+
children: m
|
|
1952
|
+
}
|
|
1953
|
+
),
|
|
1944
1954
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-1", children: [
|
|
1945
1955
|
o && /* @__PURE__ */ i(
|
|
1946
1956
|
"button",
|
|
@@ -2028,7 +2038,7 @@ const Ya = (e) => {
|
|
|
2028
2038
|
success: Tr,
|
|
2029
2039
|
warning: Pr,
|
|
2030
2040
|
error: Ar
|
|
2031
|
-
}, Fd = ({ children: e, className: t }) => /* @__PURE__ */ i("div", { className: v("font-medium mb-1", t), children: e }), _d = ({ children: e, className: t }) => /* @__PURE__ */ i("div", { className: v("text-sm", t), children: e }), Vd = ({
|
|
2041
|
+
}, Fd = ({ children: e, className: t }) => /* @__PURE__ */ i("div", { className: v("font-medium mb-1", t), children: e }), _d = ({ children: e, className: t }) => /* @__PURE__ */ i("div", { className: v("text-sm break-words", t), children: e }), Vd = ({
|
|
2032
2042
|
variant: e = "info",
|
|
2033
2043
|
title: t,
|
|
2034
2044
|
description: r,
|
|
@@ -2039,9 +2049,9 @@ const Ya = (e) => {
|
|
|
2039
2049
|
const s = ro[e], l = n || /* @__PURE__ */ i(s, { className: "h-5 w-5" }), c = typeof T.alert[e] == "function" ? T.alert[e]() : "";
|
|
2040
2050
|
return /* @__PURE__ */ h("div", { role: "alert", className: v(c, o), children: [
|
|
2041
2051
|
l && /* @__PURE__ */ i("div", { className: "flex-shrink-0", children: l }),
|
|
2042
|
-
/* @__PURE__ */ h("div", { className: "flex-1", children: [
|
|
2043
|
-
t && /* @__PURE__ */ i("div", { className: "font-medium mb-1", children: t }),
|
|
2044
|
-
r && /* @__PURE__ */ i("div", { className: "text-sm", children: r }),
|
|
2052
|
+
/* @__PURE__ */ h("div", { className: "flex-1 min-w-0", children: [
|
|
2053
|
+
t && /* @__PURE__ */ i("div", { className: "font-medium mb-1 break-words", children: t }),
|
|
2054
|
+
r && /* @__PURE__ */ i("div", { className: "text-sm break-words", children: r }),
|
|
2045
2055
|
a
|
|
2046
2056
|
] })
|
|
2047
2057
|
] });
|
|
@@ -8359,13 +8369,14 @@ ${e.description}`
|
|
|
8359
8369
|
{
|
|
8360
8370
|
className: "overflow-hidden transition-all duration-300 ease-in-out",
|
|
8361
8371
|
style: { height: s !== void 0 ? `${s}px` : "auto" },
|
|
8362
|
-
children: /* @__PURE__ */ i("div", { ref: o, className: "ml-6 mt-
|
|
8363
|
-
r === c.id && /* @__PURE__ */ i("div", { className: "absolute top-0 bottom-0 left-
|
|
8372
|
+
children: /* @__PURE__ */ i("div", { ref: o, className: "ml-6 mt-1 mb-1 space-y-1", children: e.map((c) => /* @__PURE__ */ h("div", { className: "relative group", children: [
|
|
8373
|
+
r === c.id && /* @__PURE__ */ i("div", { className: "absolute top-0.5 bottom-0.5 left-1 right-12 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none" }),
|
|
8374
|
+
r !== c.id && /* @__PURE__ */ i("div", { className: "absolute top-0.5 bottom-0.5 left-1 right-12 bg-blue-500/0 group-hover:bg-blue-500/10 dark:group-hover:bg-blue-400/10 rounded-lg pointer-events-none transition-colors duration-200" }),
|
|
8364
8375
|
/* @__PURE__ */ i(
|
|
8365
8376
|
"button",
|
|
8366
8377
|
{
|
|
8367
8378
|
onClick: () => a?.(c.id, n),
|
|
8368
|
-
className: `relative z-10 block w-full text-left
|
|
8379
|
+
className: `relative z-10 block w-full text-left pl-4 pr-3 py-2 rounded-md text-sm transition-all duration-200 ${r === c.id ? "text-blue-700 dark:text-blue-300" : "text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200"}`,
|
|
8369
8380
|
children: c.title
|
|
8370
8381
|
}
|
|
8371
8382
|
)
|
|
@@ -8389,13 +8400,14 @@ ${e.description}`
|
|
|
8389
8400
|
s?.(e);
|
|
8390
8401
|
}, g = n && n.length > 0;
|
|
8391
8402
|
return /* @__PURE__ */ h("div", { className: c, children: [
|
|
8392
|
-
/* @__PURE__ */ h("div", { className: "relative flex items-center", children: [
|
|
8393
|
-
a && !o && /* @__PURE__ */ i("div", { className: "absolute top-
|
|
8403
|
+
/* @__PURE__ */ h("div", { className: "relative flex items-center group", children: [
|
|
8404
|
+
a && !o && /* @__PURE__ */ i("div", { className: "absolute top-2 bottom-2 left-2 right-12 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none" }),
|
|
8405
|
+
!(a && !o) && /* @__PURE__ */ i("div", { className: "absolute top-2 bottom-2 left-2 right-12 bg-blue-500/0 group-hover:bg-blue-500/10 dark:group-hover:bg-blue-400/10 rounded-lg pointer-events-none transition-colors duration-200" }),
|
|
8394
8406
|
/* @__PURE__ */ i(
|
|
8395
8407
|
"button",
|
|
8396
8408
|
{
|
|
8397
8409
|
onClick: p,
|
|
8398
|
-
className: `relative z-10 flex-1 text-left
|
|
8410
|
+
className: `relative z-10 flex-1 text-left pl-5 pr-3 py-4 text-base font-medium transition-all duration-200 ${a && !o ? "text-blue-700 dark:text-blue-300" : "text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100"}`,
|
|
8399
8411
|
children: t
|
|
8400
8412
|
}
|
|
8401
8413
|
),
|
package/dist/index.umd.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
`,children:[o&&n.jsx("div",{className:"absolute top-4 right-4",children:n.jsx("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800",children:"✓ Verified"})}),n.jsx("h3",{className:"text-xl font-bold mb-2",children:l.title}),n.jsx("p",{className:"text-gray-600 mb-4",children:l.description}),n.jsxs("p",{className:"text-3xl font-bold mb-4",children:[t,n.jsx("span",{className:"text-sm font-normal text-gray-600",children:"/year"})]}),n.jsx("ul",{className:"space-y-2 mb-6",children:r.map((c,u)=>n.jsxs("li",{className:"flex items-start gap-2",children:[n.jsx("span",{className:"text-green-500 mt-0.5",children:"✓"}),n.jsx("span",{className:"text-sm",children:c})]},u))}),s&&n.jsx("button",{onClick:s,disabled:o,className:`
|
|
15
15
|
w-full py-2 px-4 rounded font-medium transition-colors
|
|
16
16
|
${o?"bg-gray-200 text-gray-500 cursor-not-allowed":a?"bg-blue-600 text-white hover:bg-blue-700":"bg-gray-200 text-gray-700 hover:bg-gray-300"}
|
|
17
|
-
`,children:o?"Verified":a?"Current Plan":"Select Plan"})]})},y={typography:{family:{sans:"font-sans",display:"font-sans",body:"font-sans"},semantic:{caption:"text-xs",small:"text-sm",body:"text-base",bodyLarge:"text-lg",h6:"text-base",h5:"text-lg",h4:"text-xl",h3:"text-2xl",h2:"text-3xl",h1:"text-4xl",hero:"text-8xl"},weight:{semibold:"font-semibold",bold:"font-bold",body:"font-normal",emphasis:"font-medium",strong:"font-semibold",heading:"font-bold",display:"font-extrabold"},decoration:{none:"no-underline",underline:"underline"},underlineOffset:{medium:"underline-offset-2"},leading:{tight:"leading-tight",heading:"leading-tight",body:"leading-relaxed",display:"leading-none"},tracking:{heading:"tracking-tight",body:"tracking-normal"}}},$={heading:{display:{hero:()=>`${y.typography.family.display} ${y.typography.semantic.hero} ${y.typography.weight.display} ${y.typography.leading.display} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,xl:()=>`${y.typography.family.display} text-7xl ${y.typography.weight.display} ${y.typography.leading.display} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,lg:()=>`${y.typography.family.display} text-6xl ${y.typography.weight.bold} ${y.typography.leading.display} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,md:()=>`${y.typography.family.display} text-5xl ${y.typography.weight.bold} ${y.typography.leading.tight} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,sm:()=>`${y.typography.family.display} text-4xl ${y.typography.weight.bold} ${y.typography.leading.tight} ${y.typography.tracking.heading} text-gray-900 dark:text-white`},h1:()=>`${y.typography.family.sans} ${y.typography.semantic.h1} ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${y.typography.family.sans} ${y.typography.semantic.h2} ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${y.typography.family.sans} ${y.typography.semantic.h3} ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h4:()=>`${y.typography.family.sans} ${y.typography.semantic.h4} ${y.typography.weight.semibold} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h5:()=>`${y.typography.family.sans} ${y.typography.semantic.h5} ${y.typography.weight.semibold} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h6:()=>`${y.typography.family.sans} ${y.typography.semantic.h6} ${y.typography.weight.semibold} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,responsive:{h1:()=>`${y.typography.family.sans} text-2xl sm:text-3xl md:text-4xl lg:text-5xl ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${y.typography.family.sans} text-xl sm:text-2xl md:text-3xl lg:text-4xl ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${y.typography.family.sans} text-lg sm:text-xl md:text-2xl lg:text-3xl ${y.typography.weight.semibold} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,display:()=>`${y.typography.family.display} text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl ${y.typography.weight.display} ${y.typography.leading.display} ${y.typography.tracking.heading} text-gray-900 dark:text-white`}},body:{xl:()=>`${y.typography.family.body} ${y.typography.semantic.bodyLarge} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-700 dark:text-gray-300`,lg:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${y.typography.family.body} ${y.typography.semantic.small} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,xs:()=>`${y.typography.family.body} ${y.typography.semantic.caption} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,strong:{xl:()=>`${y.typography.family.body} ${y.typography.semantic.bodyLarge} ${y.typography.weight.strong} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.strong} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.strong} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${y.typography.family.body} ${y.typography.semantic.small} ${y.typography.weight.strong} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`},emphasis:{xl:()=>`${y.typography.family.body} ${y.typography.semantic.bodyLarge} ${y.typography.weight.emphasis} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.emphasis} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.emphasis} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${y.typography.family.body} ${y.typography.semantic.small} ${y.typography.weight.emphasis} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`},muted:{xl:()=>`${y.typography.family.body} ${y.typography.semantic.bodyLarge} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,lg:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,md:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,sm:()=>`${y.typography.family.body} ${y.typography.semantic.small} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`}},link:{default:()=>`${y.typography.decoration.underline} ${y.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150`,subtle:()=>`${y.typography.decoration.none} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:${y.typography.decoration.underline} hover:${y.typography.underlineOffset.medium} transition-all duration-150`,muted:()=>`${y.typography.decoration.underline} ${y.typography.underlineOffset.medium} text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors duration-150`,external:()=>`${y.typography.decoration.underline} ${y.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150 inline-flex items-center gap-1`},label:{default:()=>`${y.typography.family.body} text-sm ${y.typography.weight.emphasis} text-gray-900 dark:text-white`,required:()=>`${y.typography.family.body} text-sm ${y.typography.weight.emphasis} text-gray-900 dark:text-white after:content-['*'] after:ml-0.5 after:text-red-500`,optional:()=>`${y.typography.family.body} text-sm ${y.typography.weight.body} text-gray-600 dark:text-gray-400`,helper:()=>`${y.typography.family.body} text-sm ${y.typography.weight.body} text-gray-500 dark:text-gray-500`,error:()=>`${y.typography.family.body} text-sm ${y.typography.weight.body} text-red-600 dark:text-red-400`,success:()=>`${y.typography.family.body} text-sm ${y.typography.weight.body} text-green-600 dark:text-green-400`}},I={button:{primary:{default:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",fullWidth:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 flex items-center justify-center w-full rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},secondary:{default:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},outline:{default:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},destructive:{default:()=>"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 border-transparent focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",outline:()=>"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border border-red-300 focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-red-900/20 dark:text-red-400 dark:border-red-800 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 border-transparent focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8"},ghost:{default:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-medium transition-colors duration-200 h-8",icon:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md p-2 transition-colors duration-200 h-10 w-10"},link:{default:()=>"bg-transparent hover:bg-transparent active:bg-transparent text-blue-600 border-transparent underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline dark:text-blue-400 inline-flex items-center justify-center rounded-md px-0 py-0 text-sm font-medium transition-colors duration-200",muted:()=>"bg-transparent hover:bg-transparent active:bg-transparent text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 border-transparent underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline inline-flex items-center justify-center rounded-md px-0 py-0 text-sm font-medium transition-colors duration-200"},gradient:{primary:()=>"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",secondary:()=>"bg-gradient-to-r from-gray-100 to-gray-200 hover:from-gray-200 hover:to-gray-300 text-gray-900 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",success:()=>"bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-green-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200"},web3:{wallet:()=>"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",connect:()=>"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",disconnect:()=>"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border border-red-300 focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-red-900/20 dark:text-red-400 dark:border-red-800 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"}},badge:{default:()=>"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",primary:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",success:()=>"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",warning:()=>"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",error:()=>"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",ethereum:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",solana:()=>"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",small:(e="default")=>{const t={default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",error:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};return`${t[e]||t.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`},large:(e="default")=>{const t={default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",error:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};return`${t[e]||t.default} inline-flex items-center px-3 py-1 rounded-full text-sm font-medium`}},input:{default:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",search:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",error:()=>"bg-gray-50 dark:bg-gray-800 border-red-300 dark:border-red-700 text-gray-900 dark:text-gray-100 focus:border-red-500 focus:ring-red-500 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",small:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-2 py-1.5 text-xs placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",large:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-4 py-3 text-base placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",withIcon:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md pl-10 pr-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2"},alert:{info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded-md border p-4 flex items-start gap-3",success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded-md border p-4 flex items-start gap-3",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded-md border p-4 flex items-start gap-3",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded-md border p-4 flex items-start gap-3",compact:{info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded border px-3 py-2 text-sm",success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded border px-3 py-2 text-sm",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded border px-3 py-2 text-sm",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded border px-3 py-2 text-sm"}},navigation:{tabs:{root:()=>"",list:()=>"inline-flex h-10 items-center justify-center rounded-md bg-gray-100 dark:bg-gray-800 p-1 text-gray-500 dark:text-gray-400",listUnderlined:()=>"flex border-b border-gray-200 dark:border-gray-700",listPills:()=>"flex space-x-1 bg-gray-100 dark:bg-gray-800 rounded-lg p-1",trigger:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-950 data-[state=active]:shadow-sm dark:ring-offset-gray-950 dark:focus-visible:ring-blue-400 dark:data-[state=active]:bg-gray-950 dark:data-[state=active]:text-gray-50",triggerUnderlined:()=>"inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium text-gray-500 dark:text-gray-400 border-b-2 border-transparent hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-600 focus:outline-none focus:text-blue-600 focus:border-blue-600 dark:focus:text-blue-400 dark:focus:border-blue-400 data-[state=active]:text-blue-600 data-[state=active]:border-blue-600 dark:data-[state=active]:text-blue-400 dark:data-[state=active]:border-blue-400 transition-colors",triggerPills:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 hover:bg-white dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 data-[state=active]:bg-white data-[state=active]:text-gray-900 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-100 transition-all",content:()=>"mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 dark:ring-offset-gray-950 dark:focus-visible:ring-blue-400"}},icon:{variant:{default:{xs:()=>"h-3 w-3 text-gray-500 dark:text-gray-400",sm:()=>"h-4 w-4 text-gray-500 dark:text-gray-400",md:()=>"h-5 w-5 text-gray-500 dark:text-gray-400",lg:()=>"h-6 w-6 text-gray-500 dark:text-gray-400",xl:()=>"h-8 w-8 text-gray-500 dark:text-gray-400"},success:{xs:()=>"h-3 w-3 text-green-600 dark:text-green-400",sm:()=>"h-4 w-4 text-green-600 dark:text-green-400",md:()=>"h-5 w-5 text-green-600 dark:text-green-400",lg:()=>"h-6 w-6 text-green-600 dark:text-green-400",xl:()=>"h-8 w-8 text-green-600 dark:text-green-400"},warning:{xs:()=>"h-3 w-3 text-amber-600 dark:text-amber-400",sm:()=>"h-4 w-4 text-amber-600 dark:text-amber-400",md:()=>"h-5 w-5 text-amber-600 dark:text-amber-400",lg:()=>"h-6 w-6 text-amber-600 dark:text-amber-400",xl:()=>"h-8 w-8 text-amber-600 dark:text-amber-400"},error:{xs:()=>"h-3 w-3 text-red-600 dark:text-red-400",sm:()=>"h-4 w-4 text-red-600 dark:text-red-400",md:()=>"h-5 w-5 text-red-600 dark:text-red-400",lg:()=>"h-6 w-6 text-red-600 dark:text-red-400",xl:()=>"h-8 w-8 text-red-600 dark:text-red-400"},muted:{xs:()=>"h-3 w-3 text-gray-400 dark:text-gray-500",sm:()=>"h-4 w-4 text-gray-400 dark:text-gray-500",md:()=>"h-5 w-5 text-gray-400 dark:text-gray-500",lg:()=>"h-6 w-6 text-gray-400 dark:text-gray-500",xl:()=>"h-8 w-8 text-gray-400 dark:text-gray-500"}}},overlays:{modal:{backdrop:()=>"fixed inset-0 z-40 bg-black/50 dark:bg-black/70 backdrop-blur-sm transition-all duration-300 ease-out",backdropEntering:()=>"opacity-0",backdropEntered:()=>"opacity-100",backdropExiting:()=>"opacity-0",container:()=>"fixed inset-0 z-50 flex items-center justify-center p-4 transition-all duration-300 ease-out",containerEntering:()=>"opacity-0 scale-95",containerEntered:()=>"opacity-100 scale-100",containerExiting:()=>"opacity-0 scale-95",content:()=>"relative w-full max-w-lg bg-white dark:bg-gray-900 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[80vh] overflow-hidden",small:()=>"max-w-sm",medium:()=>"max-w-lg",large:()=>"max-w-2xl",extraLarge:()=>"max-w-4xl",fullWidth:()=>"max-w-[95vw]",header:()=>"flex items-center justify-between p-4 sm:p-6 border-b border-gray-200 dark:border-gray-700",title:()=>"text-lg font-semibold text-gray-900 dark:text-gray-100",closeButton:()=>"p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",body:()=>"p-4 sm:p-6 overflow-y-auto",footer:()=>"flex items-center justify-end space-x-3 p-4 sm:p-6 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50"},dropdown:{container:()=>"relative inline-block",trigger:()=>"inline-flex justify-center items-center bg-transparent border-0 text-gray-900 dark:text-gray-100 focus:outline-none transition-colors",triggerBordered:()=>"inline-flex justify-center items-center bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:ring-offset-gray-950 transition-colors",menu:()=>"absolute z-50 w-56 bg-white dark:bg-gray-800 rounded-md shadow-lg focus:outline-none transition-all duration-200",menuSmall:()=>"w-40",menuLarge:()=>"w-72",menuAuto:()=>"w-auto min-w-40",menuTop:()=>"bottom-full mb-1",menuBottom:()=>"top-full mt-1",menuLeft:()=>"right-0",menuRight:()=>"left-0",menuEntering:()=>"opacity-0 scale-95 transform origin-top",menuEntered:()=>"opacity-100 scale-100 transform origin-top",menuExiting:()=>"opacity-0 scale-95 transform origin-top",itemContainer:()=>"py-1 px-1",item:()=>"flex items-center w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-blue-50 dark:hover:bg-blue-900/20 hover:text-blue-700 dark:hover:text-blue-300 transition-all duration-200 cursor-pointer hover:shadow-sm rounded-sm",itemActive:()=>"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 shadow-sm",itemDisabled:()=>"text-gray-400 dark:text-gray-600 cursor-not-allowed hover:bg-transparent hover:text-gray-400 dark:hover:text-gray-600",divider:()=>"my-1 border-t border-gray-200 dark:border-gray-700",header:()=>"px-4 py-2 text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide",itemIcon:()=>"mr-3 h-4 w-4 flex-shrink-0",itemIconRight:()=>"ml-auto h-4 w-4 flex-shrink-0"}}},$o={section:{gradient:"py-20 bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900 dark:to-blue-900"}},Oo=(e,t,r)=>{if(r)return`${r}/address/${e}`;if(!t)return null;if(t<0)return`https://explorer.solana.com/address/${e}${t===-101?"":t===-102?"?cluster=devnet":"?cluster=testnet"}`;const o={1:"https://etherscan.io",11155111:"https://sepolia.etherscan.io",5:"https://goerli.etherscan.io",137:"https://polygonscan.com",80002:"https://amoy.polygonscan.com",42161:"https://arbiscan.io",421614:"https://sepolia.arbiscan.io",10:"https://optimistic.etherscan.io",11155420:"https://sepolia-optimism.etherscan.io",8453:"https://basescan.org",84532:"https://sepolia.basescan.org"}[t];return o?`${o}/address/${e}`:null},Mo=(e,t)=>t==="full"?e:t==="medium"?`${e.substring(0,10)}...${e.substring(e.length-8)}`:`${e.substring(0,6)}...${e.substring(e.length-4)}`,Do=({address:e,chainId:t,explorerUrl:r,label:a,format:o="short",showCopy:s=!0,showExplorer:i=!0,className:l="",textClassName:c=""})=>{const[u,g]=b.useState(!1),m=Mo(e,o),h=Oo(e,t,r),f=async()=>{try{await navigator.clipboard.writeText(e),g(!0),setTimeout(()=>g(!1),2e3)}catch{}};return n.jsxs("div",{className:w("flex items-center gap-2",l),children:[a&&n.jsxs("span",{className:$.label.default(),children:[a,":"]}),n.jsx("span",{className:w("font-mono text-sm",c),children:m}),n.jsxs("div",{className:"flex items-center gap-1",children:[s&&n.jsx("button",{onClick:f,className:w("p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"),title:u?"Copied!":"Copy address","aria-label":"Copy address",children:u?n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),i&&h&&n.jsx("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:w("p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","text-gray-500 hover:text-blue-600 dark:text-gray-400 dark:hover:text-blue-400"),title:"View on block explorer","aria-label":"View on block explorer",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})})]})]})},zo={info:A.InformationCircleIcon,success:A.CheckCircleIcon,warning:A.ExclamationTriangleIcon,error:A.XCircleIcon},Wo=({children:e,className:t})=>n.jsx("div",{className:w("font-medium mb-1",t),children:e}),Bo=({children:e,className:t})=>n.jsx("div",{className:w("text-sm",t),children:e}),jo=({variant:e="info",title:t,description:r,icon:a,children:o,className:s})=>{const i=zo[e],l=a||n.jsx(i,{className:"h-5 w-5"}),c=typeof I.alert[e]=="function"?I.alert[e]():"";return n.jsxs("div",{role:"alert",className:w(c,s),children:[l&&n.jsx("div",{className:"flex-shrink-0",children:l}),n.jsxs("div",{className:"flex-1",children:[t&&n.jsx("div",{className:"font-medium mb-1",children:t}),r&&n.jsx("div",{className:"text-sm",children:r}),o]})]})},Tr=()=>typeof document<"u"&&typeof document.createElement=="function"&&typeof document.getElementById=="function",Fo=e=>{if(typeof document<"u"&&document.getElementById)try{return document.getElementById(e)}catch{}return null},_o=e=>{if(typeof document<"u"&&document.createElement)try{return document.createElement(e)}catch{}return null},Ho=e=>{const t=typeof document<"u"?document.head:null;if(t&&e)try{return t.appendChild(e),!0}catch{}return!1},ye=({animation:e="fade-in-up",delay:t=0,duration:r=600,once:a=!0,children:o,className:s="",threshold:i=.1})=>{const[l,c]=b.useState(!1),[u,g]=b.useState(!1),m=b.useRef(null);b.useEffect(()=>{if(!Tr()||typeof IntersectionObserver>"u"){c(!0),a&&g(!0);return}const f=new IntersectionObserver(([x])=>{x.isIntersecting&&(!u||!a)?(c(!0),a&&g(!0)):a||c(!1)},{threshold:i}),p=m.current;return p&&f.observe(p),()=>{p&&f.unobserve(p)}},[i,a,u]);const h=()=>{if(e==="none")return"";const f=`transition-all duration-${r} ease-out`,p=t>0?`delay-${t}`:"",x={"fade-in-up":l?`opacity-100 translate-y-0 ${f} ${p}`:`opacity-0 translate-y-8 ${f} ${p}`,"fade-in-scale":l?`opacity-100 scale-100 ${f} ${p}`:`opacity-0 scale-95 ${f} ${p}`,"fade-in-left":l?`opacity-100 translate-x-0 ${f} ${p}`:`opacity-0 -translate-x-8 ${f} ${p}`,"fade-in-right":l?`opacity-100 translate-x-0 ${f} ${p}`:`opacity-0 translate-x-8 ${f} ${p}`,"slide-in-bottom":l?`translate-y-0 ${f} ${p}`:`translate-y-full ${f} ${p}`,"zoom-in":l?`opacity-100 scale-100 ${f} ${p}`:`opacity-0 scale-50 ${f} ${p}`,float:"animate-float","bounce-slow":"animate-bounce-slow"};return x[e]||x["fade-in-up"]};return b.useEffect(()=>{if(Tr()&&(e==="float"||e==="bounce-slow")){const f="animated-section-keyframes";if(!Fo(f)){const p=_o("style");p&&(p.id=f,p.textContent=`
|
|
17
|
+
`,children:o?"Verified":a?"Current Plan":"Select Plan"})]})},y={typography:{family:{sans:"font-sans",display:"font-sans",body:"font-sans"},semantic:{caption:"text-xs",small:"text-sm",body:"text-base",bodyLarge:"text-lg",h6:"text-base",h5:"text-lg",h4:"text-xl",h3:"text-2xl",h2:"text-3xl",h1:"text-4xl",hero:"text-8xl"},weight:{semibold:"font-semibold",bold:"font-bold",body:"font-normal",emphasis:"font-medium",strong:"font-semibold",heading:"font-bold",display:"font-extrabold"},decoration:{none:"no-underline",underline:"underline"},underlineOffset:{medium:"underline-offset-2"},leading:{tight:"leading-tight",heading:"leading-tight",body:"leading-relaxed",display:"leading-none"},tracking:{heading:"tracking-tight",body:"tracking-normal"}}},$={heading:{display:{hero:()=>`${y.typography.family.display} ${y.typography.semantic.hero} ${y.typography.weight.display} ${y.typography.leading.display} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,xl:()=>`${y.typography.family.display} text-7xl ${y.typography.weight.display} ${y.typography.leading.display} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,lg:()=>`${y.typography.family.display} text-6xl ${y.typography.weight.bold} ${y.typography.leading.display} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,md:()=>`${y.typography.family.display} text-5xl ${y.typography.weight.bold} ${y.typography.leading.tight} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,sm:()=>`${y.typography.family.display} text-4xl ${y.typography.weight.bold} ${y.typography.leading.tight} ${y.typography.tracking.heading} text-gray-900 dark:text-white`},h1:()=>`${y.typography.family.sans} ${y.typography.semantic.h1} ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${y.typography.family.sans} ${y.typography.semantic.h2} ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${y.typography.family.sans} ${y.typography.semantic.h3} ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h4:()=>`${y.typography.family.sans} ${y.typography.semantic.h4} ${y.typography.weight.semibold} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h5:()=>`${y.typography.family.sans} ${y.typography.semantic.h5} ${y.typography.weight.semibold} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h6:()=>`${y.typography.family.sans} ${y.typography.semantic.h6} ${y.typography.weight.semibold} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,responsive:{h1:()=>`${y.typography.family.sans} text-2xl sm:text-3xl md:text-4xl lg:text-5xl ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${y.typography.family.sans} text-xl sm:text-2xl md:text-3xl lg:text-4xl ${y.typography.weight.heading} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${y.typography.family.sans} text-lg sm:text-xl md:text-2xl lg:text-3xl ${y.typography.weight.semibold} ${y.typography.leading.heading} ${y.typography.tracking.heading} text-gray-900 dark:text-white`,display:()=>`${y.typography.family.display} text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl ${y.typography.weight.display} ${y.typography.leading.display} ${y.typography.tracking.heading} text-gray-900 dark:text-white`}},body:{xl:()=>`${y.typography.family.body} ${y.typography.semantic.bodyLarge} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-700 dark:text-gray-300`,lg:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${y.typography.family.body} ${y.typography.semantic.small} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,xs:()=>`${y.typography.family.body} ${y.typography.semantic.caption} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,strong:{xl:()=>`${y.typography.family.body} ${y.typography.semantic.bodyLarge} ${y.typography.weight.strong} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.strong} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.strong} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${y.typography.family.body} ${y.typography.semantic.small} ${y.typography.weight.strong} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`},emphasis:{xl:()=>`${y.typography.family.body} ${y.typography.semantic.bodyLarge} ${y.typography.weight.emphasis} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.emphasis} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.emphasis} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${y.typography.family.body} ${y.typography.semantic.small} ${y.typography.weight.emphasis} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-900 dark:text-white`},muted:{xl:()=>`${y.typography.family.body} ${y.typography.semantic.bodyLarge} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,lg:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,md:()=>`${y.typography.family.body} ${y.typography.semantic.body} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`,sm:()=>`${y.typography.family.body} ${y.typography.semantic.small} ${y.typography.weight.body} ${y.typography.leading.body} ${y.typography.tracking.body} text-gray-600 dark:text-gray-400`}},link:{default:()=>`${y.typography.decoration.underline} ${y.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150`,subtle:()=>`${y.typography.decoration.none} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:${y.typography.decoration.underline} hover:${y.typography.underlineOffset.medium} transition-all duration-150`,muted:()=>`${y.typography.decoration.underline} ${y.typography.underlineOffset.medium} text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors duration-150`,external:()=>`${y.typography.decoration.underline} ${y.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150 inline-flex items-center gap-1`},label:{default:()=>`${y.typography.family.body} text-sm ${y.typography.weight.emphasis} text-gray-900 dark:text-white`,required:()=>`${y.typography.family.body} text-sm ${y.typography.weight.emphasis} text-gray-900 dark:text-white after:content-['*'] after:ml-0.5 after:text-red-500`,optional:()=>`${y.typography.family.body} text-sm ${y.typography.weight.body} text-gray-600 dark:text-gray-400`,helper:()=>`${y.typography.family.body} text-sm ${y.typography.weight.body} text-gray-500 dark:text-gray-500`,error:()=>`${y.typography.family.body} text-sm ${y.typography.weight.body} text-red-600 dark:text-red-400`,success:()=>`${y.typography.family.body} text-sm ${y.typography.weight.body} text-green-600 dark:text-green-400`}},I={button:{primary:{default:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",fullWidth:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 flex items-center justify-center w-full rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},secondary:{default:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},outline:{default:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},destructive:{default:()=>"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 border-transparent focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",outline:()=>"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border border-red-300 focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-red-900/20 dark:text-red-400 dark:border-red-800 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 border-transparent focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8"},ghost:{default:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-medium transition-colors duration-200 h-8",icon:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md p-2 transition-colors duration-200 h-10 w-10"},link:{default:()=>"bg-transparent hover:bg-transparent active:bg-transparent text-blue-600 border-transparent underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline dark:text-blue-400 inline-flex items-center justify-center rounded-md px-0 py-0 text-sm font-medium transition-colors duration-200",muted:()=>"bg-transparent hover:bg-transparent active:bg-transparent text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 border-transparent underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline inline-flex items-center justify-center rounded-md px-0 py-0 text-sm font-medium transition-colors duration-200"},gradient:{primary:()=>"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",secondary:()=>"bg-gradient-to-r from-gray-100 to-gray-200 hover:from-gray-200 hover:to-gray-300 text-gray-900 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",success:()=>"bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-green-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200"},web3:{wallet:()=>"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",connect:()=>"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",disconnect:()=>"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border border-red-300 focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-red-900/20 dark:text-red-400 dark:border-red-800 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"}},badge:{default:()=>"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",primary:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",success:()=>"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",warning:()=>"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",error:()=>"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",ethereum:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",solana:()=>"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",small:(e="default")=>{const t={default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",error:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};return`${t[e]||t.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`},large:(e="default")=>{const t={default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",error:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};return`${t[e]||t.default} inline-flex items-center px-3 py-1 rounded-full text-sm font-medium`}},input:{default:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",search:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",error:()=>"bg-gray-50 dark:bg-gray-800 border-red-300 dark:border-red-700 text-gray-900 dark:text-gray-100 focus:border-red-500 focus:ring-red-500 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",small:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-2 py-1.5 text-xs placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",large:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-4 py-3 text-base placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",withIcon:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md pl-10 pr-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2"},alert:{info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded-md border p-4 flex items-start gap-3",success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded-md border p-4 flex items-start gap-3",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded-md border p-4 flex items-start gap-3",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded-md border p-4 flex items-start gap-3",compact:{info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded border px-3 py-2 text-sm",success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded border px-3 py-2 text-sm",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded border px-3 py-2 text-sm",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded border px-3 py-2 text-sm"}},navigation:{tabs:{root:()=>"",list:()=>"inline-flex h-10 items-center justify-center rounded-md bg-gray-100 dark:bg-gray-800 p-1 text-gray-500 dark:text-gray-400",listUnderlined:()=>"flex border-b border-gray-200 dark:border-gray-700",listPills:()=>"flex space-x-1 bg-gray-100 dark:bg-gray-800 rounded-lg p-1",trigger:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-950 data-[state=active]:shadow-sm dark:ring-offset-gray-950 dark:focus-visible:ring-blue-400 dark:data-[state=active]:bg-gray-950 dark:data-[state=active]:text-gray-50",triggerUnderlined:()=>"inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium text-gray-500 dark:text-gray-400 border-b-2 border-transparent hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-600 focus:outline-none focus:text-blue-600 focus:border-blue-600 dark:focus:text-blue-400 dark:focus:border-blue-400 data-[state=active]:text-blue-600 data-[state=active]:border-blue-600 dark:data-[state=active]:text-blue-400 dark:data-[state=active]:border-blue-400 transition-colors",triggerPills:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 hover:bg-white dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 data-[state=active]:bg-white data-[state=active]:text-gray-900 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-100 transition-all",content:()=>"mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 dark:ring-offset-gray-950 dark:focus-visible:ring-blue-400"}},icon:{variant:{default:{xs:()=>"h-3 w-3 text-gray-500 dark:text-gray-400",sm:()=>"h-4 w-4 text-gray-500 dark:text-gray-400",md:()=>"h-5 w-5 text-gray-500 dark:text-gray-400",lg:()=>"h-6 w-6 text-gray-500 dark:text-gray-400",xl:()=>"h-8 w-8 text-gray-500 dark:text-gray-400"},success:{xs:()=>"h-3 w-3 text-green-600 dark:text-green-400",sm:()=>"h-4 w-4 text-green-600 dark:text-green-400",md:()=>"h-5 w-5 text-green-600 dark:text-green-400",lg:()=>"h-6 w-6 text-green-600 dark:text-green-400",xl:()=>"h-8 w-8 text-green-600 dark:text-green-400"},warning:{xs:()=>"h-3 w-3 text-amber-600 dark:text-amber-400",sm:()=>"h-4 w-4 text-amber-600 dark:text-amber-400",md:()=>"h-5 w-5 text-amber-600 dark:text-amber-400",lg:()=>"h-6 w-6 text-amber-600 dark:text-amber-400",xl:()=>"h-8 w-8 text-amber-600 dark:text-amber-400"},error:{xs:()=>"h-3 w-3 text-red-600 dark:text-red-400",sm:()=>"h-4 w-4 text-red-600 dark:text-red-400",md:()=>"h-5 w-5 text-red-600 dark:text-red-400",lg:()=>"h-6 w-6 text-red-600 dark:text-red-400",xl:()=>"h-8 w-8 text-red-600 dark:text-red-400"},muted:{xs:()=>"h-3 w-3 text-gray-400 dark:text-gray-500",sm:()=>"h-4 w-4 text-gray-400 dark:text-gray-500",md:()=>"h-5 w-5 text-gray-400 dark:text-gray-500",lg:()=>"h-6 w-6 text-gray-400 dark:text-gray-500",xl:()=>"h-8 w-8 text-gray-400 dark:text-gray-500"}}},overlays:{modal:{backdrop:()=>"fixed inset-0 z-40 bg-black/50 dark:bg-black/70 backdrop-blur-sm transition-all duration-300 ease-out",backdropEntering:()=>"opacity-0",backdropEntered:()=>"opacity-100",backdropExiting:()=>"opacity-0",container:()=>"fixed inset-0 z-50 flex items-center justify-center p-4 transition-all duration-300 ease-out",containerEntering:()=>"opacity-0 scale-95",containerEntered:()=>"opacity-100 scale-100",containerExiting:()=>"opacity-0 scale-95",content:()=>"relative w-full max-w-lg bg-white dark:bg-gray-900 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[80vh] overflow-hidden",small:()=>"max-w-sm",medium:()=>"max-w-lg",large:()=>"max-w-2xl",extraLarge:()=>"max-w-4xl",fullWidth:()=>"max-w-[95vw]",header:()=>"flex items-center justify-between p-4 sm:p-6 border-b border-gray-200 dark:border-gray-700",title:()=>"text-lg font-semibold text-gray-900 dark:text-gray-100",closeButton:()=>"p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",body:()=>"p-4 sm:p-6 overflow-y-auto",footer:()=>"flex items-center justify-end space-x-3 p-4 sm:p-6 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50"},dropdown:{container:()=>"relative inline-block",trigger:()=>"inline-flex justify-center items-center bg-transparent border-0 text-gray-900 dark:text-gray-100 focus:outline-none transition-colors",triggerBordered:()=>"inline-flex justify-center items-center bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:ring-offset-gray-950 transition-colors",menu:()=>"absolute z-50 w-56 bg-white dark:bg-gray-800 rounded-md shadow-lg focus:outline-none transition-all duration-200",menuSmall:()=>"w-40",menuLarge:()=>"w-72",menuAuto:()=>"w-auto min-w-40",menuTop:()=>"bottom-full mb-1",menuBottom:()=>"top-full mt-1",menuLeft:()=>"right-0",menuRight:()=>"left-0",menuEntering:()=>"opacity-0 scale-95 transform origin-top",menuEntered:()=>"opacity-100 scale-100 transform origin-top",menuExiting:()=>"opacity-0 scale-95 transform origin-top",itemContainer:()=>"py-1 px-1",item:()=>"flex items-center w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-blue-50 dark:hover:bg-blue-900/20 hover:text-blue-700 dark:hover:text-blue-300 transition-all duration-200 cursor-pointer hover:shadow-sm rounded-sm",itemActive:()=>"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 shadow-sm",itemDisabled:()=>"text-gray-400 dark:text-gray-600 cursor-not-allowed hover:bg-transparent hover:text-gray-400 dark:hover:text-gray-600",divider:()=>"my-1 border-t border-gray-200 dark:border-gray-700",header:()=>"px-4 py-2 text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide",itemIcon:()=>"mr-3 h-4 w-4 flex-shrink-0",itemIconRight:()=>"ml-auto h-4 w-4 flex-shrink-0"}}},$o={section:{gradient:"py-20 bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900 dark:to-blue-900"}},Oo=(e,t,r)=>{if(r)return`${r}/address/${e}`;if(!t)return null;if(t<0)return`https://explorer.solana.com/address/${e}${t===-101?"":t===-102?"?cluster=devnet":"?cluster=testnet"}`;const o={1:"https://etherscan.io",11155111:"https://sepolia.etherscan.io",5:"https://goerli.etherscan.io",137:"https://polygonscan.com",80002:"https://amoy.polygonscan.com",42161:"https://arbiscan.io",421614:"https://sepolia.arbiscan.io",10:"https://optimistic.etherscan.io",11155420:"https://sepolia-optimism.etherscan.io",8453:"https://basescan.org",84532:"https://sepolia.basescan.org"}[t];return o?`${o}/address/${e}`:null},Mo=(e,t)=>t==="full"?e:t==="medium"?`${e.substring(0,10)}...${e.substring(e.length-8)}`:`${e.substring(0,6)}...${e.substring(e.length-4)}`,Do=({address:e,chainId:t,explorerUrl:r,label:a,format:o="short",showCopy:s=!0,showExplorer:i=!0,className:l="",textClassName:c=""})=>{const[u,g]=b.useState(!1),m=Mo(e,o),h=Oo(e,t,r),f=async()=>{try{await navigator.clipboard.writeText(e),g(!0),setTimeout(()=>g(!1),2e3)}catch{}};return n.jsxs("div",{className:w("flex items-center gap-2",l),children:[a&&n.jsxs("span",{className:$.label.default(),children:[a,":"]}),n.jsx("span",{className:w("font-mono text-sm",o==="full"&&"break-all",c),children:m}),n.jsxs("div",{className:"flex items-center gap-1",children:[s&&n.jsx("button",{onClick:f,className:w("p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"),title:u?"Copied!":"Copy address","aria-label":"Copy address",children:u?n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),i&&h&&n.jsx("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:w("p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","text-gray-500 hover:text-blue-600 dark:text-gray-400 dark:hover:text-blue-400"),title:"View on block explorer","aria-label":"View on block explorer",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})})]})]})},zo={info:A.InformationCircleIcon,success:A.CheckCircleIcon,warning:A.ExclamationTriangleIcon,error:A.XCircleIcon},Wo=({children:e,className:t})=>n.jsx("div",{className:w("font-medium mb-1",t),children:e}),Bo=({children:e,className:t})=>n.jsx("div",{className:w("text-sm break-words",t),children:e}),jo=({variant:e="info",title:t,description:r,icon:a,children:o,className:s})=>{const i=zo[e],l=a||n.jsx(i,{className:"h-5 w-5"}),c=typeof I.alert[e]=="function"?I.alert[e]():"";return n.jsxs("div",{role:"alert",className:w(c,s),children:[l&&n.jsx("div",{className:"flex-shrink-0",children:l}),n.jsxs("div",{className:"flex-1 min-w-0",children:[t&&n.jsx("div",{className:"font-medium mb-1 break-words",children:t}),r&&n.jsx("div",{className:"text-sm break-words",children:r}),o]})]})},Tr=()=>typeof document<"u"&&typeof document.createElement=="function"&&typeof document.getElementById=="function",Fo=e=>{if(typeof document<"u"&&document.getElementById)try{return document.getElementById(e)}catch{}return null},_o=e=>{if(typeof document<"u"&&document.createElement)try{return document.createElement(e)}catch{}return null},Ho=e=>{const t=typeof document<"u"?document.head:null;if(t&&e)try{return t.appendChild(e),!0}catch{}return!1},ye=({animation:e="fade-in-up",delay:t=0,duration:r=600,once:a=!0,children:o,className:s="",threshold:i=.1})=>{const[l,c]=b.useState(!1),[u,g]=b.useState(!1),m=b.useRef(null);b.useEffect(()=>{if(!Tr()||typeof IntersectionObserver>"u"){c(!0),a&&g(!0);return}const f=new IntersectionObserver(([x])=>{x.isIntersecting&&(!u||!a)?(c(!0),a&&g(!0)):a||c(!1)},{threshold:i}),p=m.current;return p&&f.observe(p),()=>{p&&f.unobserve(p)}},[i,a,u]);const h=()=>{if(e==="none")return"";const f=`transition-all duration-${r} ease-out`,p=t>0?`delay-${t}`:"",x={"fade-in-up":l?`opacity-100 translate-y-0 ${f} ${p}`:`opacity-0 translate-y-8 ${f} ${p}`,"fade-in-scale":l?`opacity-100 scale-100 ${f} ${p}`:`opacity-0 scale-95 ${f} ${p}`,"fade-in-left":l?`opacity-100 translate-x-0 ${f} ${p}`:`opacity-0 -translate-x-8 ${f} ${p}`,"fade-in-right":l?`opacity-100 translate-x-0 ${f} ${p}`:`opacity-0 translate-x-8 ${f} ${p}`,"slide-in-bottom":l?`translate-y-0 ${f} ${p}`:`translate-y-full ${f} ${p}`,"zoom-in":l?`opacity-100 scale-100 ${f} ${p}`:`opacity-0 scale-50 ${f} ${p}`,float:"animate-float","bounce-slow":"animate-bounce-slow"};return x[e]||x["fade-in-up"]};return b.useEffect(()=>{if(Tr()&&(e==="float"||e==="bounce-slow")){const f="animated-section-keyframes";if(!Fo(f)){const p=_o("style");p&&(p.id=f,p.textContent=`
|
|
18
18
|
@keyframes float {
|
|
19
19
|
0%, 100% { transform: translateY(0px); }
|
|
20
20
|
50% { transform: translateY(-20px); }
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
${e.description}`},label:"Facebook"},{component:Q.LinkedinShareButton,icon:Q.LinkedinIcon,props:{url:l,title:e.title,summary:e.description},label:"LinkedIn"},{component:Q.RedditShareButton,icon:Q.RedditIcon,props:{url:l,title:e.title},label:"Reddit"},{component:Q.TelegramShareButton,icon:Q.TelegramIcon,props:{url:l,title:e.title},label:"Telegram"},{component:Q.WhatsappShareButton,icon:Q.WhatsappIcon,props:{url:l,title:e.title,separator:`
|
|
58
58
|
|
|
59
|
-
`},label:"WhatsApp"}],u=async()=>{try{await navigator.clipboard.writeText(l),r(!1)}catch{}};return n.jsxs("div",{className:"relative",children:[n.jsx("button",{onClick:()=>r(!t),className:"flex items-center justify-center w-8 h-8 bg-blue-50 hover:bg-blue-100 dark:bg-blue-900/30 dark:hover:bg-blue-900/50 text-blue-600 dark:text-blue-400 rounded-lg transition-colors",title:"Share this page",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.367 2.684 3 3 0 00-5.367-2.684z"})})}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"fixed inset-0 z-[999998]",onClick:()=>r(!1)}),n.jsx("div",{className:"absolute right-0 top-10 z-[999999] w-32 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 py-1",children:s?n.jsx("div",{className:"flex items-center justify-center px-3 py-2",children:n.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):n.jsxs(n.Fragment,{children:[c.map((g,m)=>{const h=g.component,f=g.icon;return n.jsx(h,{...g.props,className:"w-full",children:n.jsxs("div",{className:"flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[n.jsx(f,{size:16,round:!0,className:"mr-2"}),n.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:g.label})]})},m)}),n.jsxs("button",{onClick:u,className:"w-full flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[n.jsx("svg",{className:"w-4 h-4 mr-2 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})}),n.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Copy Link"})]})]})})]})]})},Ha=({items:e,shareConfig:t,className:r,showHome:a})=>n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("nav",{"aria-label":"Breadcrumb",children:n.jsx("ol",{className:"flex items-center text-sm space-x-2",children:e.map((o,s)=>n.jsxs(b.Fragment,{children:[n.jsx("li",{children:o.current?n.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:o.label}):n.jsx(Ke.Link,{to:o.href||"#",className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 transition-colors",children:o.label})}),s<e.length-1&&n.jsx("li",{children:n.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"/"})})]},s))})}),t&&n.jsx(nd,{shareConfig:t})]}),od=({items:e,shareConfig:t})=>n.jsx("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 relative z-50",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 relative",children:n.jsx(Ha,{items:e,shareConfig:t})})}),sd=({filename:e,code:t,language:r,title:a,className:o="",showCopy:s=!0,showHeader:i=!0})=>{const{t:l}=fr.useTranslation("codeBlock"),{code:c,loading:u,error:g}=Pr(e||""),[m,h]=b.useState(!1),f=t||c,x=r||(e?(C=>{switch(C.split(".").pop()?.toLowerCase()){case"sol":return"solidity";case"js":case"mjs":return"javascript";case"ts":return"typescript";case"sh":return"bash";case"graphql":return"graphql";case"json":return"json";case"css":return"css";case"html":return"html";case"jsx":return"jsx";case"tsx":return"tsx";case"py":return"python";case"java":return"java";case"cpp":case"c":return"cpp";case"go":return"go";case"rs":return"rust";case"php":return"php";case"rb":return"ruby";default:return"text"}})(e):"text"),k=async()=>{if(f)try{await navigator.clipboard.writeText(f),h(!0),setTimeout(()=>h(!1),2e3)}catch{}};return e&&u?n.jsx("div",{className:`bg-gray-900 text-green-400 rounded-lg p-4 font-mono text-sm ${o}`,children:n.jsx("div",{className:"animate-pulse text-gray-500",children:l("loadingCode","Loading code...")})}):e&&g?n.jsxs("div",{className:`bg-gray-900 text-red-400 rounded-lg p-4 font-mono text-sm ${o}`,children:[l("error","Error"),": ",g]}):f?n.jsxs("div",{className:`bg-gray-900 rounded-lg border border-green-500/20 shadow-lg shadow-green-500/10 ${o}`,children:[i&&n.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-green-500/20 bg-gray-800/50",children:[n.jsx("span",{className:"text-sm text-green-400 font-mono",children:a||e||`${x} code`}),s&&n.jsx("button",{onClick:k,className:"p-2 text-gray-400 hover:text-green-400 hover:bg-gray-800 rounded-lg transition-all duration-200 group",title:l("copyCode","Copy code"),children:m?n.jsx(A.CheckIcon,{className:"h-4 w-4 text-green-400"}):n.jsx(A.ClipboardDocumentIcon,{className:"h-4 w-4 group-hover:scale-110 transition-transform"})})]}),n.jsx("div",{className:"p-4 overflow-x-auto text-left",children:n.jsx("pre",{className:`text-sm language-${x}`,children:n.jsx("code",{className:"text-gray-100",children:f})})})]}):n.jsx("div",{className:`bg-gray-900 text-gray-400 rounded-lg p-4 font-mono text-sm ${o}`,children:l("noCode","No code to display")})},id=({title:e,description:t,code:r,preview:a,language:o="tsx",showBrowserChrome:s=!0,copyKey:i})=>{const[l,c]=b.useState({}),u=(h,f)=>{navigator.clipboard.writeText(h).then(()=>{c(p=>({...p,[f]:!0})),setTimeout(()=>{c(p=>({...p,[f]:!1}))},2e3)})},g=i||`${e}-code`,m=l[g];return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:e}),t&&n.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm",children:t})]}),a&&n.jsxs("div",{className:"relative",children:[s&&n.jsxs("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-t-lg px-4 py-3 flex items-center space-x-2",children:[n.jsxs("div",{className:"flex space-x-2",children:[n.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),n.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),n.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),n.jsx("div",{className:"flex-1 text-center",children:n.jsx("div",{className:"bg-white dark:bg-gray-600 rounded px-3 py-1 text-xs text-gray-600 dark:text-gray-300 inline-block",children:"Preview"})})]}),n.jsx("div",{className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 p-6 ${s?"rounded-b-lg":"rounded-lg"}`,children:a})]}),n.jsx("div",{className:"relative",children:n.jsxs("div",{className:"bg-gray-900 rounded-lg overflow-hidden",children:[n.jsxs("div",{className:"bg-gray-800 px-4 py-2 flex justify-between items-center",children:[n.jsx("span",{className:"text-gray-300 text-sm font-mono",children:o}),n.jsx("button",{onClick:()=>u(r,g),className:"flex items-center space-x-1 text-gray-300 hover:text-white transition-colors text-sm","aria-label":m?"Copied!":"Copy code",children:m?n.jsxs(n.Fragment,{children:[n.jsx(A.CheckIcon,{className:"h-4 w-4"}),n.jsx("span",{children:"Copied!"})]}):n.jsxs(n.Fragment,{children:[n.jsx(A.ClipboardIcon,{className:"h-4 w-4"}),n.jsx("span",{children:"Copy"})]})})]}),n.jsx("div",{className:"p-4 overflow-x-auto",children:n.jsx("pre",{className:"text-gray-100 text-sm leading-relaxed",children:n.jsx("code",{children:r})})})]})})]})},ld=({subsections:e,isExpanded:t,selectedSubsection:r,parentSectionId:a,onSubsectionSelect:o})=>{const s=b.useRef(null),[i,l]=b.useState(void 0);return b.useLayoutEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(t?c+16:0)}},[t,e]),n.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:i!==void 0?`${i}px`:"auto"},children:n.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:e.map(c=>n.jsxs("div",{className:"relative",children:[r===c.id&&n.jsx("div",{className:"absolute top-0 bottom-0 left-0 right-4 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none border-2 border-blue-500/30 dark:border-blue-400/30"}),n.jsx("button",{onClick:()=>o?.(c.id,a),className:`relative z-10 block w-full text-left px-3 py-2 rounded-md text-sm transition-all duration-200 hover:scale-[1.02] ${r===c.id?"text-blue-700 dark:text-blue-300":"text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200"}`,children:c.title})]},c.id))})})},cd=({id:e,title:t,content:r,subsections:a,isSelected:o=!1,selectedSubsection:s=null,onSectionSelect:i,onSubsectionSelect:l,className:c=""})=>{const[u,g]=b.useState(!1),m=()=>{g(!u)},h=()=>{i?.(e)},f=a&&a.length>0;return n.jsxs("div",{className:c,children:[n.jsxs("div",{className:"relative flex items-center",children:[o&&!s&&n.jsx("div",{className:"absolute top-1 bottom-1 left-3 right-4 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none border-2 border-blue-500/30 dark:border-blue-400/30"}),n.jsx("button",{onClick:h,className:`relative z-10 flex-1 text-left px-3 py-4 text-base font-medium transition-all duration-200 ${o&&!s?"text-blue-700 dark:text-blue-300":"text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100"}`,children:t}),f&&n.jsx("button",{onClick:m,className:"p-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200","aria-label":u?"Collapse section":"Expand section",children:n.jsx(A.ChevronRightIcon,{className:`h-5 w-5 text-gray-500 transition-transform duration-300 ease-in-out ${u?"rotate-90":"rotate-0"}`})})]}),f&&n.jsx(ld,{subsections:a,isExpanded:u,selectedSubsection:s,parentSectionId:e,onSubsectionSelect:l})]})},dd=({title:e,subtitle:t,buttonText:r,buttonIcon:a="envelope",variant:o="default",badgeText:s="FREE",prominentBadgeText:i="100% Free",onButtonClick:l,className:c=""})=>{const u=()=>a==="envelope"||a==="both"?n.jsx(A.EnvelopeIcon,{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1"}):a==="none"?null:n.jsx("svg",{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})}),g=()=>a==="arrow"||a==="both"?n.jsx(A.ArrowRightIcon,{className:"h-4 w-4 ml-2"}):null,m=()=>o==="prominent"?"border-b-2 border-green-200 dark:border-green-700":"border-b border-green-200 dark:border-green-700",h=()=>{const x="bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white rounded-lg font-bold transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-green-500/25 inline-flex items-center whitespace-nowrap cursor-pointer";return o==="prominent"?`${x} px-8 py-3 text-base`:`${x} px-6 py-2 text-sm`},f=()=>o==="prominent"?"text-green-800 dark:text-green-200 font-semibold text-lg":"text-green-800 dark:text-green-200 font-semibold",p=o==="prominent"?i:s;return n.jsx("div",{className:`bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 ${m()} ${c}`,children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:n.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[n.jsxs("div",{className:`flex items-center ${o==="prominent"?"text-center sm:text-left":""}`,children:[n.jsx("div",{className:"bg-green-500 text-white text-xs font-bold px-3 py-1 rounded-full mr-3 animate-pulse",children:p}),n.jsxs("div",{children:[n.jsx("span",{className:f(),children:e}),t&&n.jsx("span",{className:"text-green-700 dark:text-green-300 text-sm block",children:t})]})]}),n.jsxs("button",{onClick:l,className:h(),children:[u(),r,g()]})]})})})},ud=({children:e,onClick:t,variant:r,size:a,disabled:o,className:s,type:i,trackingLabel:l,actionType:c,componentName:u,onTrack:g,trackingParams:m={},...h})=>{const f=p=>{if(g){const x=l||(typeof e=="string"?e:"")||"Unknown Button",C=r&&["default","primary","secondary","outline","ghost","destructive","link"].includes(r)?r:"default";g({button_text:x,button_type:C,component_name:u,action_type:c,...m})}t&&t(p)};return n.jsx(de,{...h,variant:r,size:a,disabled:o,className:s,type:i,onClick:f,children:e})},gd=({children:e,onClick:t,to:r,href:a,trackingLabel:o,componentName:s,onTrack:i,trackingParams:l={},LinkComponent:c,linkProps:u={},...g})=>{const m=f=>{if(i){const p=o||(typeof e=="string"?e:"")||"Unknown Link",x=r?typeof r=="string"?r:r.pathname||"":a||"";i({link_text:p,link_url:x,to_page:x,navigation_type:c?"router_link":"anchor_link",component_name:s,...l})}t&&t(f)};if(c&&r!==void 0)return n.jsx(c,{...u,to:r,onClick:m,...g,children:e});const h=r?typeof r=="string"?r:r.pathname||"#":a;return n.jsx("a",{...g,href:h,onClick:m,children:e})},Va={en:{name:"English",flag:"🇺🇸"},ar:{name:"العربية",flag:"🇸🇦"},de:{name:"Deutsch",flag:"🇩🇪"},es:{name:"Español",flag:"🇪🇸"},fr:{name:"Français",flag:"🇫🇷"},it:{name:"Italiano",flag:"🇮🇹"},ja:{name:"日本語",flag:"🇯🇵"},ko:{name:"한국어",flag:"🇰🇷"},pt:{name:"Português",flag:"🇵🇹"},ru:{name:"Русский",flag:"🇷🇺"},sv:{name:"Svenska",flag:"🇸🇪"},th:{name:"ไทย",flag:"🇹🇭"},uk:{name:"Українська",flag:"🇺🇦"},vi:{name:"Tiếng Việt",flag:"🇻🇳"},zh:{name:"简体中文",flag:"🇨🇳"}},md=({variant:e="compact",className:t=""})=>{const{i18n:r,t:a}=fr.useTranslation("languageSelector"),[o,s]=b.useState(r.language),i=b.useMemo(()=>r.options.supportedLngs?r.options.supportedLngs.filter(u=>u!=="cimode").map(u=>({code:u,name:Va[u]?.name||u.toUpperCase(),flag:Va[u]?.flag||"🌐"})).sort((u,g)=>u.name.localeCompare(g.name)):[],[r.options.supportedLngs]),l=i.find(u=>u.code===o||u.code.toLowerCase()===o.toLowerCase());b.useEffect(()=>{s(r.language)},[r.language]);const c=u=>{localStorage.setItem("language",u),r.changeLanguage(u).then(()=>{s(r.language),setTimeout(()=>{window.dispatchEvent(new Event("languagechange"))},100)}).catch(()=>{})};return e==="compact"?n.jsx("div",{className:`relative ${t}`,children:n.jsxs(Lt,{value:o,onValueChange:c,children:[n.jsx(Ze,{className:"h-10 w-auto px-3 border-0 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-0 focus:ring-offset-0",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:l?.flag}),n.jsx("span",{className:"hidden sm:block text-sm font-medium text-gray-700 dark:text-gray-300",children:l?.name})]})}),n.jsx(Je,{children:i.map(u=>n.jsx(Re,{value:u.code,className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:u.flag}),n.jsx("span",{className:"text-sm",children:u.name})]})},u.code))})]})}):n.jsxs("div",{className:`space-y-2 ${t}`,children:[n.jsxs("label",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 flex items-center space-x-2",children:[n.jsx(A.LanguageIcon,{className:"h-4 w-4 text-gray-500 dark:text-gray-400"}),n.jsx("span",{children:a("language","Language")})]}),n.jsxs(Lt,{value:o,onValueChange:c,children:[n.jsx(Ze,{children:n.jsx($r,{placeholder:a("selectLanguage","Select language")})}),n.jsx(Je,{children:i.map(u=>n.jsx(Re,{value:u.code,className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:u.flag}),n.jsx("span",{children:u.name})]})},u.code))})]}),n.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:a("selectPreferredLanguage","Select your preferred language")})]})},fd=({items:e,type:t="ordered",variant:r="default",className:a,itemClassName:o})=>{const s=()=>{const u="space-y-2",g={ordered:t==="ordered"?"list-decimal":"",unordered:t==="unordered"?"list-disc":""},m={default:"list-inside",enhanced:"list-inside space-y-3",minimal:"list-none space-y-1"};return w(u,g[t],m[r])},i=u=>{const g="text-gray-600 dark:text-gray-400";return r==="enhanced"?w(g,"relative pl-8 pb-2 border-l-2 border-gray-200 dark:border-gray-700",u===e.length-1&&"border-l-transparent"):r==="minimal"?w(g,"flex items-start"):g},l=u=>r==="enhanced"&&t==="ordered"?n.jsx("div",{className:"absolute -left-4 -top-1 w-6 h-6 bg-blue-600 text-white rounded-full flex items-center justify-center text-sm font-medium",children:u+1}):null,c=(u,g)=>{const m=typeof u=="object",h=m?u.content:u,f=m?u.subItems:void 0;return n.jsxs("li",{className:w(i(g),o),children:[l(g),r==="minimal"&&t==="ordered"&&n.jsx("span",{className:"inline-block w-6 h-6 bg-blue-100 dark:bg-blue-900/20 text-blue-600 dark:text-blue-400 rounded-full text-sm font-medium text-center leading-6 mr-3 flex-shrink-0",children:g+1}),r==="minimal"&&t==="unordered"&&n.jsx("span",{className:"inline-block w-2 h-2 bg-blue-600 rounded-full mt-2 mr-3 flex-shrink-0"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{children:h}),f&&f.length>0&&n.jsx("ul",{className:"mt-2 ml-4 space-y-1 list-disc list-inside text-sm text-gray-500 dark:text-gray-500",children:f.map((p,x)=>n.jsx("li",{children:p},x))})]})]},g)};return n.jsx("ul",{className:w(s(),a),children:e.map(c)})};class hd extends b.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught an error:",t,r),this.props.onError?.(t,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:n.jsxs("div",{style:{padding:"20px",border:"1px solid red",margin:"10px"},children:[n.jsx("h2",{children:"Something went wrong"}),n.jsxs("p",{children:["Error: ",this.state.error?.message||"Unknown error"]}),n.jsx("button",{onClick:()=>this.setState({hasError:!1}),children:"Try again"})]}):this.props.children}}class pd extends b.Component{constructor(t){super(t),this.retryTimer=null,this.sendErrorToMonitoring=(r,a)=>{try{typeof window<"u"&&window.Sentry&&window.Sentry?.captureException(r,{contexts:{react:{componentStack:a.componentStack}},tags:{errorBoundary:!0,componentName:this.props.componentName||"unknown",lazyLoading:!0}}),typeof window<"u"&&window.gtag&&window.gtag?.("event","exception",{description:r.message,fatal:!1,custom_map:{component:this.props.componentName||"unknown"}})}catch{}},this.handleRetry=()=>{const{maxRetries:r=3,retryDelay:a=1e3}=this.props,{retryCount:o}=this.state;if(o>=r)return;this.setState({isRetrying:!0}),this.retryTimer&&clearTimeout(this.retryTimer);const s=a*Math.pow(2,o);this.retryTimer=setTimeout(()=>{this.setState({hasError:!1,error:null,errorInfo:null,retryCount:o+1,isRetrying:!1})},s)},this.handleReload=()=>{window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null,retryCount:0,isRetrying:!1,lastErrorTime:0}}static getDerivedStateFromError(t){return{hasError:!0,error:t,lastErrorTime:Date.now()}}componentDidCatch(t,r){const{onError:a,componentName:o}=this.props;this.setState({error:t,errorInfo:r}),console.error(`LazyErrorBoundary caught an error in ${o||"Unknown Component"}:`,t,r),a?.(t,r),this.sendErrorToMonitoring(t,r)}componentWillUnmount(){this.retryTimer&&clearTimeout(this.retryTimer)}render(){const{children:t,fallback:r,componentName:a,showRetryButton:o=!0,maxRetries:s=3}=this.props,{hasError:i,error:l,isRetrying:c,retryCount:u}=this.state;return i&&l?r||n.jsx("div",{className:"lazy-error-boundary error-boundary-container",children:n.jsxs("div",{className:"error-content",children:[n.jsx("div",{className:"error-icon",children:"⚠️"}),n.jsxs("h3",{className:"error-title",children:["Something went wrong loading ",a||"this component"]}),n.jsxs("div",{className:"error-details",children:[n.jsx("p",{className:"error-message",children:l.message}),process.env.NODE_ENV==="development"&&n.jsxs("details",{className:"error-stack",children:[n.jsx("summary",{children:"Error Details (Development)"}),n.jsx("pre",{children:l.stack})]})]}),n.jsxs("div",{className:"error-actions",children:[o&&u<s&&n.jsx("button",{onClick:this.handleRetry,disabled:c,className:"retry-button",children:c?"Retrying...":`Retry (${u}/${s})`}),u>=s&&n.jsx("button",{onClick:this.handleReload,className:"reload-button",children:"Reload Page"})]}),n.jsxs("div",{className:"error-help",children:[n.jsx("p",{children:"This might be a temporary issue. Try refreshing the page."}),navigator.onLine===!1&&n.jsx("p",{className:"offline-notice",children:"You appear to be offline. Check your connection and try again."})]})]})}):t}}const yd=({children:e})=>n.jsx(n.Fragment,{children:e}),bd=({children:e})=>n.jsx(n.Fragment,{children:e}),xd=(e,t,r)=>{const a=b.memo(e,t);return r&&(a.displayName=`Memo(${r})`),process.env.NODE_ENV==="development"?o=>(b.useMemo(()=>{let i=0;return()=>++i},[])(),n.jsx(a,{...o})):a},vd=(e,t)=>b.memo(e,(r,a)=>t.every(o=>r[o]===a[o])),wd=b.memo(({children:e,compute:t,deps:r})=>{const a=b.useRef(r),o=b.useRef(t),s=b.useRef(void 0),i=b.useMemo(()=>{const l=r.length!==a.current.length||r.some((u,g)=>u!==a.current[g]),c=t!==o.current;if(l||c||s.current===void 0){let u;return process.env.NODE_ENV==="development"?(performance.now(),u=t(),performance.now()):u=t(),a.current=r,o.current=t,s.current=u,u}return s.current},[t,r]);return n.jsx(n.Fragment,{children:e(i)})}),kd=b.memo(({item:e,index:t,style:r,renderItem:a})=>n.jsx("div",{style:r,children:a(e,t)}),(e,t)=>e.index===t.index&&e.item===t.item&&e.style.height===t.style.height&&e.style.top===t.style.top),Cd=b.memo(({condition:e,children:t,fallback:r=null})=>e?n.jsx(n.Fragment,{children:t}):n.jsx(n.Fragment,{children:r})),Sd=({children:e,threshold:t=.1,rootMargin:r="50px",fallback:a=null})=>{const[o,s]=b.useState(!1),i=b.useRef(null);return b.useEffect(()=>{const l=new IntersectionObserver(([c])=>{c.isIntersecting&&(s(!0),l.disconnect())},{threshold:t,rootMargin:r});return i.current&&l.observe(i.current),()=>l.disconnect()},[t,r]),n.jsx("div",{ref:i,children:o?e:a})},Nd=({children:e,maxRenderTime:t=16,onSlowRender:r})=>{const a=b.useRef(0);return b.useLayoutEffect(()=>{a.current=performance.now()}),b.useEffect(()=>{const o=performance.now()-a.current;o>t&&r?.(o)}),n.jsx(n.Fragment,{children:e})},Ed=({children:e,batchSize:t=5,delay:r=0})=>{const[a,o]=b.useState(t);return b.useEffect(()=>{if(a<e.length){const s=setTimeout(()=>{o(i=>Math.min(i+t,e.length))},r);return()=>clearTimeout(s)}},[a,e.length,t,r]),n.jsx(n.Fragment,{children:e.slice(0,a)})},Ad=({src:e,alt:t,placeholder:r,lowQualitySrc:a,aspectRatio:o="16/9",eager:s=!1,className:i="",...l})=>{const[c,u]=b.useState(!1),[g,m]=b.useState(s),[h,f]=b.useState(!1),p=b.useRef(null),x=b.useRef(null);b.useEffect(()=>{if(s){m(!0);return}return x.current=new IntersectionObserver(S=>{S.forEach(N=>{N.isIntersecting&&(m(!0),x.current&&p.current&&x.current.unobserve(p.current))})},{rootMargin:"50px",threshold:.01}),p.current&&x.current.observe(p.current),()=>{x.current&&x.current.disconnect()}},[s]);const k=()=>{u(!0)},C=()=>{f(!0)};return n.jsxs("div",{className:`relative overflow-hidden ${i}`,style:{aspectRatio:o},children:[a&&!c&&n.jsx("img",{src:a,alt:"",className:"absolute inset-0 w-full h-full object-cover blur-sm","aria-hidden":"true"}),!a&&!c&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 dark:bg-gray-700 animate-pulse","aria-hidden":"true"}),g&&!h&&n.jsx("img",{ref:p,src:e,alt:t,onLoad:k,onError:C,className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-500 ${c?"opacity-100":"opacity-0"}`,loading:s?"eager":"lazy",...l}),h&&n.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-100 dark:bg-gray-800",children:n.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400",children:[n.jsx("svg",{className:"mx-auto h-12 w-12 mb-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),n.jsx("p",{className:"text-sm",children:"Failed to load image"})]})})]})},Pd=({title:e,description:t,primaryButton:r,secondaryButton:a,gradient:o={from:"blue-600",to:"purple-600"},textColor:s="light",className:i="",size:l="lg"})=>{const u=(()=>{const x=o.via?`${o.from}-${o.via}-${o.to}`:`${o.from}-${o.to}`;return{"blue-600-purple-600":"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700","orange-900-red-900":"bg-gradient-to-r from-orange-600 to-red-600 dark:from-orange-700 dark:to-red-700","green-600-blue-600":"bg-gradient-to-r from-green-600 to-blue-600 dark:from-green-700 dark:to-blue-700","purple-600-pink-600":"bg-gradient-to-r from-purple-600 to-pink-600 dark:from-purple-700 dark:to-pink-700"}[x]||"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700"})(),g=s==="light"?"text-white":"text-gray-900 dark:text-gray-100",m={sm:"py-12",md:"py-16",lg:"py-20"},h={sm:"text-2xl md:text-3xl",md:"text-3xl md:text-4xl",lg:"text-4xl md:text-5xl"},f={sm:"text-base md:text-lg",md:"text-lg md:text-xl",lg:"text-xl md:text-2xl"},p=(x,k=!1)=>{const C=()=>x.variant==="primary"||k?"gradient":(x.variant==="secondary","outline"),S=n.jsx(de,{variant:C(),size:"lg",className:k?"":"bg-white/10 hover:bg-white/20 backdrop-blur-sm border-white/30",children:x.label});return x.external?n.jsx("a",{href:x.href,target:"_blank",rel:"noopener noreferrer",children:S}):n.jsx(Ke.Link,{to:x.href,children:S})};return n.jsxs("section",{className:`${u} ${m[l]} relative overflow-hidden ${i}`,children:[n.jsx("div",{className:"absolute inset-0 bg-black/20"}),n.jsxs("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 w-full h-full",children:[n.jsx("div",{className:"absolute top-10 left-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"}),n.jsx("div",{className:"absolute bottom-10 right-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"})]}),n.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h2",{className:`${h[l]} font-bold ${g} mb-6`,children:e}),n.jsx("p",{className:`${f[l]} ${g}/90 mb-8 max-w-2xl mx-auto`,children:t}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[p(r,!0),a&&p(a,!1)]})]})]})},Td=({children:e,backgroundClassName:t="",contentClassName:r=""})=>n.jsx("div",{className:t,children:n.jsx("div",{className:r,children:e})}),Id=({title:e,description:t})=>n.jsxs("div",{className:"mb-8",children:[n.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:e}),t&&n.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:t})]}),Ld=({isSelected:e,onClick:t,icon:r,label:a,description:o,className:s=""})=>n.jsxs("div",{onClick:t,className:`relative flex items-start p-4 cursor-pointer transition-all border-b border-gray-200 dark:border-gray-700 last:border-b-0 group ${s}`,children:[e&&n.jsx("div",{className:"absolute inset-1 bg-blue-500/10 dark:bg-blue-400/10 rounded-lg pointer-events-none"}),n.jsxs("div",{className:"relative z-10 flex items-start w-full",children:[r&&n.jsx(r,{className:`h-5 w-5 mt-0.5 mr-3 flex-shrink-0 transition-colors ${e?"text-blue-600 dark:text-blue-400":"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-300"}`}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:`font-medium transition-colors ${e?"text-blue-600 dark:text-blue-400":"text-gray-900 dark:text-gray-100 group-hover:text-gray-700 dark:group-hover:text-gray-300"}`,children:a}),o&&n.jsx("div",{className:`text-xs mt-0.5 transition-colors ${e?"text-blue-500 dark:text-blue-300":"text-gray-500 dark:text-gray-400"}`,children:o})]})]})]}),$d=({masterTitle:e,masterSubtitle:t,backButtonText:r,masterContent:a,detailContent:o,detailTitle:s,mobileView:i="navigation",onBackToNavigation:l,masterClassName:c="",detailClassName:u="",detailTitleClassName:g="",masterWidth:m=320,stickyMaster:h=!0,stickyTopOffset:f=96,desktopGap:p=32,showMasterBackground:x=!0,enableAnimations:k=!0,animationDuration:C=300,animationRef:S})=>{const N=`gap-${Math.round(p/4)}`||"gap-8",P=U=>U?U.split("-")[0].trim():"Back",E=r?P(r):e?P(e):"Back",[L,T]=b.useState(!1),[D,z]=b.useState("auto"),M=b.useRef(null),W=b.useRef(null);b.useEffect(()=>(S&&(S.current={triggerTransition:U=>{if(!k){U();return}if(M.current){const _=M.current.scrollHeight;z(_)}T(!0),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{U(),setTimeout(()=>{if(M.current){const _=M.current.scrollHeight;z(_),setTimeout(()=>{z("auto"),T(!1)},C)}},50)},C/2)}}),()=>{W.current&&clearTimeout(W.current)}),[k,C,S]);const V=k?{height:D==="auto"?"auto":`${D}px`,transition:`height ${C}ms cubic-bezier(0.4, 0, 0.2, 1)`,width:"100%",maxWidth:"100%"}:{width:"100%",maxWidth:"100%"},B=k?`${L?"opacity-0 transform translate-y-2":"opacity-100 transform translate-y-0"}`:"",j=k?{transition:`opacity ${C}ms ease-in-out, transform ${C}ms ease-in-out`}:{};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`md:hidden ${i==="navigation"?"block":"hidden"} flex-1`,children:n.jsxs("div",{className:x?"bg-white dark:bg-gray-800 p-6":"p-6",children:[e&&n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:t})]}),n.jsx("div",{className:c,children:a})]})}),n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[n.jsxs("div",{className:`md:hidden ${i==="content"?"block":"hidden"}`,children:[i==="content"&&l&&n.jsxs("button",{onClick:l,className:"mb-4 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md text-sm font-medium text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",children:["← ",E]}),n.jsx("div",{ref:M,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${u}`,style:V,children:n.jsxs("div",{className:B,style:j,children:[s&&n.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${g}`,children:s}),o]})})]}),n.jsxs("div",{className:`hidden md:flex min-h-full ${N}`,style:{width:"100%"},children:[n.jsx("aside",{className:"flex-shrink-0",style:{width:`${m}px`,minWidth:`${m}px`},children:n.jsxs("div",{className:h?"sticky":"",style:h?{top:`${f}px`}:void 0,children:[e&&n.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:t}),n.jsx("div",{className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 ${h?"max-h-[calc(100vh-200px)] overflow-y-auto":""} ${c}`,children:a})]})}),n.jsx("div",{className:"flex-1 min-w-0",style:{width:`calc(100% - ${m+p}px)`},children:n.jsx("div",{ref:M,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${u}`,style:V,children:n.jsxs("div",{className:B,style:j,children:[s&&n.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${g}`,children:s}),o]})})})]})]})]})},Od=({children:e})=>(b.useEffect(()=>{const t=()=>{[].forEach(m=>{const h=document.createElement("link");h.rel="preload",h.href=m.href,h.as=m.as,m.type&&(h.type=m.type),m.crossorigin&&(h.crossOrigin=""),document.head.appendChild(h)})},r=()=>{document.querySelectorAll('img[data-priority="high"]').forEach(h=>{h.fetchPriority="high"});const m=document.querySelector("[data-hero]");if(m){const h=m.getAttribute("data-bg-image");if(h){const f=document.createElement("link");f.rel="preload",f.href=h,f.as="image",document.head.appendChild(f)}}},a=()=>{document.querySelectorAll("img:not([width]):not([height])").forEach(h=>{const f=h;f.naturalWidth&&f.naturalHeight&&(f.width=f.naturalWidth,f.height=f.naturalHeight)}),document.querySelectorAll("[data-dynamic]").forEach(h=>{h.getAttribute("style")?.includes("min-height")||(h.style.minHeight="200px")})},o=()=>{const g=()=>{document.querySelectorAll("script[data-defer]").forEach(f=>{f.setAttribute("defer","")})};"requestIdleCallback"in window?requestIdleCallback(()=>{g()}):setTimeout(g,1),(()=>{["scroll","touchstart","touchmove","wheel"].forEach(f=>{document.addEventListener(f,()=>{},{passive:!0})})})()},s=()=>{},i=()=>{[{rel:"dns-prefetch",href:"//fonts.googleapis.com"},{rel:"dns-prefetch",href:"//api.0xmail.box"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:!0},{rel:"preconnect",href:"https://api.0xmail.box"}].forEach(m=>{const h=document.createElement("link");h.rel=m.rel,h.href=m.href,m.crossorigin&&(h.crossOrigin=""),document.head.appendChild(h)})},l=()=>{if(document.querySelectorAll("img[data-lazy]").forEach(m=>{m.loading="lazy"}),"IntersectionObserver"in window){const m=new IntersectionObserver(f=>{f.forEach(p=>{if(p.isIntersecting){const x=p.target;x.dataset.src&&(x.src=x.dataset.src,x.removeAttribute("data-src")),m.unobserve(x)}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(f=>m.observe(f))}},c=()=>{[{name:"ai-content-type",content:"web3-email-platform"},{name:"ai-primary-function",content:"wallet-based-email"},{name:"ai-supported-chains",content:"ethereum,solana,polygon,arbitrum,optimism"},{name:"ai-complexity-level",content:"beginner-to-advanced"},{name:"ai-target-users",content:"web3-users,crypto-enthusiasts,developers"},{name:"machine-readable",content:"true"},{name:"structured-data",content:"json-ld"},{name:"content-category",content:"technology,blockchain,communication"},{name:"interaction-model",content:"wallet-authentication"}].forEach(({name:f,content:p})=>{if(!document.querySelector(`meta[name="${f}"]`)){const x=document.createElement("meta");x.name=f,x.content=p,document.head.appendChild(x)}});const m={"@context":"https://schema.org","@type":"WebApplication",name:"0xmail.box",description:"Web3 email platform using blockchain wallet authentication",url:"https://0xmail.box",applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["Wallet-based authentication","ENS domain email support","SNS domain email support","Multi-chain compatibility","Smart contract integration","Web2/Web3 bridge"],audience:{"@type":"Audience",audienceType:"Web3 Users"}},h=document.createElement("script");h.type="application/ld+json",h.textContent=JSON.stringify(m),document.head.appendChild(h)},u=()=>{document.querySelectorAll('link[rel="stylesheet"][data-non-critical]').forEach(m=>{const h=m.cloneNode(!0);h.rel="preload",h.as="style",h.onload=()=>{h.onload=null,h.rel="stylesheet"},document.head.appendChild(h),m.remove()})};return t(),r(),a(),o(),i(),l(),c(),u(),setTimeout(s,2e3),()=>{}},[]),n.jsx(n.Fragment,{children:e})),Md=()=>(b.useEffect(()=>{if(typeof window>"u"||typeof document>"u"||!document.documentElement)return;const e=()=>{if("IntersectionObserver"in window){const l=new IntersectionObserver(c=>{c.forEach(u=>{if(u.isIntersecting){const g=u.target;g.dataset.src&&(g.src=g.dataset.src,g.removeAttribute("data-src"),l.unobserve(g))}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(c=>{l.observe(c)})}const o=()=>{["/connect","/mail","/settings"].forEach(c=>{const u=document.createElement("link");u.rel="prefetch",u.href=c,document.head.appendChild(u)})},s=()=>{if(!document.querySelector("script[data-wallet-detection]")){const l=document.createElement("script");l.dataset.walletDetection="true",l.innerHTML='(function() { window.walletPreload = { hasMetaMask: typeof window.ethereum !== "undefined", hasPhantom: typeof window.solana !== "undefined", hasWalletConnect: true }; })();',document.head.appendChild(l)}},i=()=>{document.querySelectorAll("img[data-hero]").forEach(l=>{const c=l;c.loading="eager","fetchPriority"in c&&(c.fetchPriority="high")}),document.querySelectorAll('img[data-priority="low"]').forEach(l=>{const c=l;c.loading="lazy","fetchPriority"in c&&(c.fetchPriority="low")})};requestIdleCallback(()=>{o(),s(),i()},{timeout:2e3})},t=()=>{if("PerformanceObserver"in window){const o=new PerformanceObserver(i=>{const l=i.getEntries(),c=l[l.length-1];c&&c.startTime>2500&&(document.documentElement.style.setProperty("--animation-duration","0s"),localStorage.setItem("reduce-image-quality","true"))});try{o.observe({entryTypes:["largest-contentful-paint"]})}catch{}const s=new PerformanceObserver(i=>{let l=0;for(const c of i.getEntries())c.hadRecentInput||(l+=c.value);l>.1&&document.querySelectorAll("img:not([width]):not([height])").forEach(c=>{const u=c;u.style.aspectRatio="16/9"})});try{s.observe({entryTypes:["layout-shift"]})}catch{}}},r=()=>{if("connection"in navigator&&typeof document<"u"&&document.documentElement){const o=navigator.connection;if(o){const s=o.effectiveType;s==="slow-2g"||s==="2g"?(document.documentElement.classList.add("slow-connection"),document.querySelectorAll('link[rel="prefetch"]').forEach(i=>{i.getAttribute("data-critical")||i.remove()}),localStorage.setItem("use-low-quality-images","true")):s==="3g"?document.documentElement.classList.add("moderate-connection"):document.documentElement.classList.add("fast-connection")}}};return(()=>{e(),t(),r()})(),()=>{if("PerformanceObserver"in window)try{PerformanceObserver.supportedEntryTypes.forEach(()=>{})}catch{}}},[]),null),Dd=({children:e})=>n.jsx(n.Fragment,{children:e}),zd={user:{duration:300*1e3,maxSize:100,staleWhileRevalidate:!0},mailboxes:{duration:120*1e3,maxSize:50,staleWhileRevalidate:!0},addresses:{duration:600*1e3,maxSize:50,staleWhileRevalidate:!0},messages:{duration:30*1e3,maxSize:200,staleWhileRevalidate:!0},messageDetails:{duration:120*1e3,maxSize:100,staleWhileRevalidate:!1},messageCount:{duration:10*1e3,maxSize:20,staleWhileRevalidate:!0}};class Wd{constructor(){this.cache=new Map}set(t,r,a){if(this.cache.size>=a.maxSize){const o=this.cache.keys().next().value;o&&this.cache.delete(o)}this.cache.set(t,{data:r,timestamp:Date.now(),isStale:!1})}get(t,r){const a=this.cache.get(t);if(!a)return null;const s=Date.now()-a.timestamp>r.duration;return s&&!r.staleWhileRevalidate?(this.cache.delete(t),null):{data:a.data,isStale:s}}invalidate(t){for(const r of this.cache.keys())r.includes(t)&&this.cache.delete(r)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,keys:Array.from(this.cache.keys()),memory:this.estimateMemoryUsage()}}estimateMemoryUsage(){return Array.from(this.cache.values()).reduce((t,r)=>t+JSON.stringify(r).length*2,0)}}const Pe=new Wd,ve=new Map,Ua=async(e,t,r="messages")=>{const a=zd[r],o=Pe.get(e,a);if(o&&!o.isStale)return o.data;const s=ve.get(e);if(s)return s;if(o&&o.isStale&&a.staleWhileRevalidate){const l=t().then(c=>(Pe.set(e,c,a),ve.delete(e),c)).catch(c=>{throw ve.delete(e),c});return ve.set(e,l),o.data}const i=t().then(l=>(Pe.set(e,l,a),ve.delete(e),l)).catch(l=>{throw ve.delete(e),l});return ve.set(e,i),i};class Bd{constructor(){this.queue=[],this.timer=null,this.batchDelay=10}add(t,r){return new Promise((a,o)=>{this.queue.push({key:t,fetcher:r,resolve:a,reject:o}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.processBatch()},this.batchDelay)})}async processBatch(){const t=[...this.queue];this.queue.length=0,this.timer=null;const r=this.groupRequests(t);for(const a of r)await Promise.allSettled(a.map(async o=>{try{const s=await o.fetcher();o.resolve(s)}catch(s){o.reject(s)}}))}groupRequests(t){const r=[];for(let o=0;o<t.length;o+=5)r.push(t.slice(o,o+5));return r}}const jd=new Bd;class Fd{constructor(t,r={}){this.requestInterceptors=[],this.responseInterceptors=[],this.baseURL=t,this.defaultHeaders=r}addRequestInterceptor(t){this.requestInterceptors.push(t)}addResponseInterceptor(t){this.responseInterceptors.push(t)}async request(t,r={},a,o="messages"){const s=`${this.baseURL}${t}`,i=a||`${r.method||"GET"}:${s}`,l=async()=>{let c={...r,headers:{...this.defaultHeaders,...r.headers}};for(const g of this.requestInterceptors)c=g(c);let u=await fetch(s,c);for(const g of this.responseInterceptors)u=await g(u);if(!u.ok)throw new Error(`API Error: ${u.status} ${u.statusText}`);return u.json()};return r.method==="GET"&&this.shouldBatch(t)?jd.add(i,l):Ua(i,l,o)}shouldBatch(t){return t.includes("/messages/")&&!t.includes("/messages?")}async get(t,r){return this.request(t,{method:"GET"},void 0,r)}async post(t,r){return this.request(t,{method:"POST",body:JSON.stringify(r)})}async put(t,r){return this.request(t,{method:"PUT",body:JSON.stringify(r)})}async delete(t){return this.request(t,{method:"DELETE"})}}const _d=async(e,t=3,r=1e3)=>{let a;for(let o=0;o<=t;o++)try{return await e()}catch(s){if(a=s,o===t)throw a;const i=r*Math.pow(2,o)+Math.random()*1e3;await new Promise(l=>setTimeout(l,i))}throw a};class Hd{constructor(){this.abortController=new AbortController}async request(t,r={}){const a=await fetch(t,{...r,signal:this.abortController.signal});if(!a.ok)throw new Error(`HTTP ${a.status}: ${a.statusText}`);return a.json()}cancel(){this.abortController.abort()}}const Vd={invalidate:e=>Pe.invalidate(e),clear:()=>Pe.clear(),getStats:()=>Pe.getStats(),warmUp:async e=>{await Promise.allSettled(e.map(t=>t()))},prefetch:async e=>{"requestIdleCallback"in window?window.requestIdleCallback(async()=>{await Promise.allSettled(e.map(t=>t()))}):setTimeout(async()=>{await Promise.allSettled(e.map(t=>t()))},100)}};function qa(){if(typeof window>"u")return!1;const e=window.navigator.userAgent.toLowerCase();return["metamask","trustwallet","coinbase","rainbow","phantom","solflare","exodus","ledger","binance","okx"].some(r=>e.includes(r))}function Ga(){return typeof window>"u"?!1:window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"}function Ka(){if(typeof window>"u")return!1;const e=window.location.hostname;return/^\d+\.\d+\.\d+\.\d+$/.test(e)}function Ya(){return Ga()?"localhost":qa()?"wallet-browser":Ka()?"network":"production"}function Ud(){const e=Ya();return e==="localhost"||e==="wallet-browser"}function qd(e){}function Qa(){return typeof window<"u"}function Gd(){return typeof window<"u"}function Kd(e,t){if(Qa())e();else return t}const Xa={"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'","'unsafe-eval'","https://fonts.googleapis.com","https://www.googletagmanager.com","https://www.google-analytics.com"],"style-src":["'self'","'unsafe-inline'","https://fonts.googleapis.com","https://fonts.gstatic.com"],"font-src":["'self'","https://fonts.gstatic.com","data:"],"img-src":["'self'","data:","https:","blob:"],"connect-src":["'self'","https://api.0xmail.box","https://0xmail.box","https://*.walletconnect.com","https://*.walletconnect.org","https://registry.walletconnect.com","https://relay.walletconnect.com","wss://*.walletconnect.com","wss://*.walletconnect.org","https://keys.coinbase.com","https://api.coinbase.com","https://www.walletlink.org","https://mainnet.infura.io","https://polygon-rpc.com","https://rpc.ankr.com","https://cloudflare-eth.com","https://eth-mainnet.alchemyapi.io","https://api.phantom.app","https://solana-api.projectserum.com","https://api.mainnet-beta.solana.com","https://api.devnet.solana.com","wss://api.phantom.app","wss://api.devnet.solana.com","wss://api.mainnet-beta.solana.com","https://bridge.arbitrum.io","https://polygon-mainnet.infura.io","https://optimism-mainnet.infura.io"],"frame-src":["'self'","https://verify.walletconnect.com","https://verify.walletconnect.org"],"worker-src":["'self'","blob:"],"child-src":["'self'","https://verify.walletconnect.com"],"object-src":["'none'"],"base-uri":["'self'"],"form-action":["'self'"]},Za=()=>Object.entries(Xa).map(([e,t])=>`${e} ${t.join(" ")}`).join("; "),Yd={"X-Frame-Options":"DENY","X-Content-Type-Options":"nosniff","X-XSS-Protection":"1; mode=block","Referrer-Policy":"strict-origin-when-cross-origin","Permissions-Policy":"camera=(), microphone=(), geolocation=(), interest-cohort=()","Strict-Transport-Security":"max-age=31536000; includeSubDomains; preload","Cross-Origin-Embedder-Policy":"credentialless","Cross-Origin-Opener-Policy":"same-origin-allow-popups","Cross-Origin-Resource-Policy":"cross-origin","Content-Security-Policy":Za()},Qd={fonts:"public, max-age=31536000, immutable",images:"public, max-age=31536000, immutable",js:"public, max-age=31536000, immutable",css:"public, max-age=31536000, immutable",serviceWorker:"public, max-age=0, must-revalidate",manifest:"public, max-age=86400",api:"no-cache, no-store, must-revalidate"},Xd=()=>{typeof window<"u"&&document.addEventListener("securitypolicyviolation",()=>{})},Zd={walletConnections:"Always verify wallet signatures and never trust client-side data",rpcEndpoints:"Use reputable RPC providers and consider rate limiting",contractInteractions:"Validate all smart contract interactions on the backend",userInput:"Sanitize all user inputs, especially wallet addresses and transaction data",privateKeys:"Never log, store, or transmit private keys - they should remain in wallets only",phishing:"Implement strict CSP to prevent injection of malicious scripts that could steal wallet access"},le=new Map,We=new Map,pt=new Set;let Be="medium",ar=!1;function Jd(){if("connection"in navigator){const r=navigator.connection;r&&(Be=r.effectiveType==="4g"?"fast":r.effectiveType==="3g"?"medium":"slow")}const e=navigator.deviceMemory,t=navigator.hardwareConcurrency;ar=e&&e<4||t&&t<4}Jd();function Rd(e,t,r={}){const{retries:a=3,timeout:o=1e4,fallback:s,preloadCondition:i,cacheStrategy:l="memory",priority:c="medium",onLoad:u,onError:g}=r;if(le.has(t))return le.get(t).component;const m=b.lazy(async()=>{const f=performance.now();if(We.has(t))return We.get(t).then(x=>({default:x}));const p=eu(e,a,o);We.set(t,p.then(x=>x.default));try{const x=await p,k=performance.now()-f;if(l!=="none"){const C={component:x.default,timestamp:Date.now(),loadTime:k};if(le.set(t,C),l==="session")try{sessionStorage.setItem(`lazy_${t}`,JSON.stringify({timestamp:C.timestamp,loadTime:k}))}catch{}}return We.delete(t),u?.(x.default),x}catch(x){throw We.delete(t),g?.(x),x}}),h=f=>{const[p,x]=b.useState(!0);b.useEffect(()=>{if(i&&!le.has(t)&&i()&&!pt.has(t)){pt.add(t);const S=tu(c,Be);setTimeout(()=>{e().catch(()=>{})},S)}},[]);const k=s||n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsxs("span",{className:"ml-2 text-sm text-gray-600",children:["Loading ",t.replace(/([A-Z])/g," $1").trim(),"..."]})]});return!p&&ar&&Be==="slow"?n.jsx("div",{className:"lazy-placeholder",children:n.jsxs("button",{onClick:()=>x(!0),className:"load-component-btn",children:["Load ",t]})}):n.jsx(b.Suspense,{fallback:k,children:n.jsx(m,{...f})})};return h.displayName=`AdvancedLazy(${t})`,h}async function eu(e,t,r){let a;for(let o=0;o<t;o++)try{const s=new Promise((l,c)=>{setTimeout(()=>c(new Error("Load timeout")),r)});return await Promise.race([e(),s])}catch(s){if(a=s,o<t-1){const i=Math.pow(2,o)*1e3,l=Math.random()*1e3;await new Promise(c=>setTimeout(c,i+l))}}throw a}function tu(e,t){const r={critical:0,high:500,medium:2e3,low:5e3},a={fast:.5,medium:1,slow:2},o=r[e]||2e3,s=a[t]||1;return o*s}const Ve=class Ve{static registerRoute(t,r){this.routeMap.set(t,r),this.routeUsageStats.set(t,0)}static setCurrentRoute(t){this.currentRoute=t;const r=this.routeUsageStats.get(t)||0;this.routeUsageStats.set(t,r+1),this.preloadLikelyRoutes(t)}static preloadLikelyRoutes(t){this.getRouteTransitionProbability(t).forEach(({route:a,probability:o})=>{o>.3&&!le.has(a)&&setTimeout(()=>{this.routeMap.get(a)},Be==="fast"?1e3:3e3)})}static getRouteTransitionProbability(t){const r=[];switch(t){case"/":r.push({route:"/connect",probability:.7},{route:"/about",probability:.2},{route:"/document",probability:.1});break;case"/connect":r.push({route:"/mail",probability:.8},{route:"/settings",probability:.1});break;case"/mail":r.push({route:"/compose",probability:.4},{route:"/settings",probability:.2});break;default:r.push({route:"/",probability:.1})}return r}static getStats(){return{routeCount:this.routeMap.size,cacheSize:le.size,currentRoute:this.currentRoute,usageStats:Object.fromEntries(this.routeUsageStats)}}};Ve.routeMap=new Map,Ve.routeUsageStats=new Map,Ve.currentRoute="";let nr=Ve;const ru=({src:e,alt:t,className:r,placeholder:a,priority:o="medium"})=>{const[s,i]=b.useState(!1),[l,c]=b.useState(!1),u=b.useRef(null);b.useEffect(()=>{if(!u.current)return;if(o==="high"){c(!0);return}const m=new IntersectionObserver(([h])=>{h.isIntersecting&&(c(!0),m.unobserve(h.target))},{rootMargin:o==="low"?"100px":"200px",threshold:.1});return m.observe(u.current),()=>m.disconnect()},[o]);const g=()=>{i(!0)};return n.jsxs("div",{className:`lazy-image-container ${r}`,children:[n.jsx("img",{ref:u,src:l?e:a||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB2aWV3Qm94PSIwIDAgMSAxIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNGM0Y0RjYiLz48L3N2Zz4=",alt:t,className:`transition-opacity duration-300 ${s?"opacity-100":"opacity-0"}`,onLoad:g,loading:o==="high"?"eager":"lazy",fetchPriority:o==="high"?"high":"low"}),!s&&l&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse rounded"})]})};function au(){le.clear(),pt.clear()}function nu(){return{cachedComponents:le.size,preloadQueue:pt.size,networkSpeed:Be,isLowEndDevice:ar,cacheEntries:Array.from(le.entries()).map(([e,t])=>({name:e,loadTime:t.loadTime,age:Date.now()-t.timestamp}))}}const ou=({message:e})=>n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),su=e=>{if(typeof e=="function"||typeof e=="object")return e;switch(e){case"minimal":return()=>n.jsx("div",{className:"flex justify-center items-center p-4",children:"Loading..."});case"skeleton":return()=>n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]});case"default":default:return()=>n.jsx(ou,{message:"Loading component..."})}},Ja=(e,t="default",r=3)=>{const a=b.lazy(async()=>{let s=null;for(let i=0;i<r;i++)try{return await e()}catch(l){s=l,i<r-1&&await new Promise(c=>setTimeout(c,Math.pow(2,i)*1e3))}throw s}),o=su(t);return s=>n.jsx(b.Suspense,{fallback:n.jsx(o,{}),children:n.jsx(a,{...s})})},iu=async e=>{try{await e()}catch{}},lu=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[r]=Ja(a,"skeleton")}),t},cu=e=>e,Ra={critical:["/","/connect","/mail"],secondary:["/settings","/compose","/points"],optional:["/document","/about","/terms","/privacy"]},Ue=class Ue{static add(t,r){this.preloadedComponents.has(t)||(this.preloadQueue.push({name:t,loader:r}),this.processQueue())}static async processQueue(){this.isPreloading||this.preloadQueue.length===0||(this.isPreloading=!0,"requestIdleCallback"in window?window.requestIdleCallback(async()=>{const t=this.preloadQueue.shift();if(t)try{await t.loader(),this.preloadedComponents.add(t.name)}catch{}this.isPreloading=!1,this.processQueue()}):setTimeout(async()=>{const t=this.preloadQueue.shift();if(t)try{await t.loader(),this.preloadedComponents.add(t.name)}catch{}this.isPreloading=!1,this.processQueue()},100))}static isPreloaded(t){return this.preloadedComponents.has(t)}static clear(){this.preloadedComponents.clear(),this.preloadQueue=[],this.isPreloading=!1}};Ue.preloadedComponents=new Set,Ue.preloadQueue=[],Ue.isPreloading=!1;let or=Ue;const du=()=>{"requestIdleCallback"in window&&window.requestIdleCallback(()=>{Ra.secondary.forEach(e=>{})})},en=({message:e})=>n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),je=new Map;function uu(e,t){const{condition:r,fallback:a,retries:o=3,timeout:s=1e4,priority:i="medium",cacheKey:l=`conditional-${Math.random()}`}=t,c=u=>{const[g,m]=b.useState(!1),[h,f]=b.useState(null);return b.useEffect(()=>{const k=setTimeout(async()=>{const C=je.get(l);if(C&&C.isValid&&Date.now()-C.lastCheck<3e5)try{if(await C.condition()){f(()=>C.component),m(!0);return}}catch{}try{if(await r()){const N=await fu(e,o,s);je.set(l,{component:N.default,condition:r,lastCheck:Date.now(),isValid:!0}),f(()=>N.default),m(!0)}}catch{}},i==="high"?0:i==="medium"?100:500);return()=>clearTimeout(k)},[]),g?h?n.jsx(b.Suspense,{fallback:a||n.jsx(en,{message:"Loading component..."}),children:n.jsx(h,{...u})}):null:a||n.jsx(en,{message:"Checking conditions..."})};return c.displayName=`ConditionalLazy(${l})`,c}const gu={},mu={};async function fu(e,t,r){let a;for(let o=0;o<t;o++)try{const s=new Promise((i,l)=>{setTimeout(()=>l(new Error("Import timeout")),r)});return await Promise.race([e(),s])}catch(s){if(a=s,o<t-1){const i=Math.pow(2,o)*1e3;await new Promise(l=>setTimeout(l,i))}}throw a}function hu(){je.clear()}function pu(){return{cachedComponents:je.size,cacheEntries:Array.from(je.entries()).map(([e,t])=>({key:e,lastCheck:t.lastCheck,isValid:t.isValid,age:Date.now()-t.lastCheck}))}}const tn=[{name:"react-router",path:"/assets/react-router-*.js",size:12,config:{priority:"critical",condition:()=>!0}},{name:"app-core",path:"/assets/app-core-*.js",size:25,config:{priority:"high",condition:()=>window.location.pathname==="/",delay:1e3,onIdle:!0}},{name:"wagmi",path:"/assets/wagmi-*.js",size:15,config:{priority:"high",condition:()=>!!(window.ethereum||localStorage.getItem("walletconnect")),onIdle:!0}},{name:"wc-ethereum",path:"/assets/wc-ethereum-*.js",size:273,config:{priority:"medium",condition:()=>!!window.ethereum,delay:2e3,onHover:!0}},{name:"solana-core",path:"/assets/solana-core-*.js",size:29,config:{priority:"medium",condition:()=>!!(window.solana||window.phantom),delay:1500}},{name:"mail-features",path:"/assets/mail-features-*.js",size:10,config:{priority:"medium",condition:()=>window.location.pathname.includes("/connect")||localStorage.getItem("wallet-connected")==="true",onScroll:20}},{name:"coinbase",path:"/assets/coinbase-*.js",size:75,config:{priority:"low",condition:()=>!!window.ethereum,delay:5e3,onIdle:!0}},{name:"design-system",path:"/assets/design-system-*.js",size:112,config:{priority:"low",condition:()=>window.location.pathname.includes("/internal"),delay:3e3}}];class yu{constructor(){this.preloaded=new Set,this.networkSpeedEstimate="medium",this.isLowEndDevice=!1,this.userActivityScore=0,this.detectNetworkSpeed(),this.detectDeviceCapability(),this.startUserActivityTracking()}detectNetworkSpeed(){if("connection"in navigator){const r=navigator.connection;if(r){const a=r.effectiveType;a==="4g"?this.networkSpeedEstimate="fast":a==="3g"?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}}const t=performance.now();fetch("/favicon.ico",{method:"HEAD"}).then(()=>{const r=performance.now()-t;r<100?this.networkSpeedEstimate="fast":r<300?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}).catch(()=>{this.networkSpeedEstimate="slow"})}detectDeviceCapability(){const t=navigator.deviceMemory,r=navigator.hardwareConcurrency;t&&t<4&&(this.isLowEndDevice=!0),r&&r<4&&(this.isLowEndDevice=!0),"getBattery"in navigator&&navigator.getBattery?.().then(a=>{a.level&&a.level<.2&&(this.isLowEndDevice=!0)})}startUserActivityTracking(){let t;const r=()=>{this.userActivityScore=Math.min(this.userActivityScore+1,100),clearTimeout(t),t=setTimeout(()=>{this.userActivityScore=Math.max(this.userActivityScore-1,0)},5e3)};["click","scroll","keydown","mousemove"].forEach(a=>{document.addEventListener(a,r,{passive:!0})})}shouldPreload(t){return this.networkSpeedEstimate==="slow"&&t.size>50||this.isLowEndDevice&&t.size>30?!1:t.config.condition()}async preloadChunk(t){if(!this.preloaded.has(t.name))try{if(document.querySelectorAll('script[src*="'+t.name+'"]').length===0&&document.querySelectorAll('link[href*="'+t.name+'"]').length>0)return;const a=document.createElement("link");a.rel="modulepreload",a.href=t.path.replace("*",this.getChunkHash(t.name)),a.crossOrigin="","fetchPriority"in a&&(a.fetchPriority=t.config.priority==="critical"?"high":"low"),document.head.appendChild(a),this.preloaded.add(t.name)}catch{}}getChunkHash(t){const r=Array.from(document.querySelectorAll("script[src]"));for(const a of r){const o=a.src;if(o.includes(t)){const s=o.match(new RegExp(`${t}-([A-Za-z0-9_-]+)\\.js`));if(s)return s[1]}}return"unknown"}async schedulePreload(t){const r=t.config;return r.delay&&await new Promise(a=>setTimeout(a,r.delay)),r.onIdle&&"requestIdleCallback"in window?new Promise(a=>{window.requestIdleCallback(()=>{this.preloadChunk(t).then(a)})}):this.preloadChunk(t)}initializePreloading(){tn.sort((r,a)=>{const o={critical:0,high:1,medium:2,low:3};return o[r.config.priority]-o[a.config.priority]}).forEach(r=>{this.shouldPreload(r)&&(r.config.priority==="critical"?this.preloadChunk(r):this.schedulePreload(r),r.config.onHover&&this.setupHoverPreloading(r),r.config.onScroll&&this.setupScrollPreloading(r,r.config.onScroll))}),this.startIntelligentPreloading()}setupHoverPreloading(t){document.querySelectorAll("[data-preload-on-hover]").forEach(a=>{let o=!1;a.addEventListener("mouseenter",()=>{!o&&this.userActivityScore>30&&(this.preloadChunk(t),o=!0)},{passive:!0})})}setupScrollPreloading(t,r){let a=!1;const o=()=>{if(a)return;window.scrollY/(document.body.scrollHeight-window.innerHeight)*100>=r&&(this.preloadChunk(t),a=!0,window.removeEventListener("scroll",o))};window.addEventListener("scroll",o,{passive:!0})}startIntelligentPreloading(){setTimeout(()=>{this.userActivityScore>50&&this.networkSpeedEstimate!=="slow"&&tn.filter(r=>r.config.priority==="medium"&&this.shouldPreload(r)).forEach(r=>{Math.random()>.5&&this.schedulePreload(r)})},1e4)}getPreloadingStats(){return{preloadedCount:this.preloaded.size,networkSpeed:this.networkSpeedEstimate,isLowEndDevice:this.isLowEndDevice,userActivity:this.userActivityScore}}}let Fe=null;function bu(){Fe||(Fe=new yu,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Fe?.initializePreloading()}):Fe.initializePreloading())}function xu(){return Fe?.getPreloadingStats()}function vu(e){const t={"ai-content-type":e.contentType,"ai-primary-topic":e.primaryTopic,"ai-complexity-level":e.complexityLevel,"ai-content-purpose":e.contentPurpose,"ai-industry-vertical":e.industryVertical,"ai-semantic-keywords":e.semanticKeywords.join(","),"ai-target-audience":e.targetAudience.join(","),"ai-technical-tags":e.technicalTags.join(","),"ai-user-intent":e.userIntent.join(","),"ai-conversion-goals":e.conversionGoals.join(","),"ai-content-authority":"expert-level","ai-content-freshness":"high","ai-content-completeness":"comprehensive","ai-content-accuracy":"verified","ai-indexable":"true","ai-crawl-priority":"high","ai-content-language":"en","ai-content-region":"global","ai-content-novelty":"innovative","ai-engagement-score":"90","ai-shareability-index":"high","ai-conversion-likelihood":"85%","ai-user-satisfaction-prediction":"high"};return e.contentType==="governance-page"&&(t["ai-governance-features"]="voting-notifications,multi-sig-coordination,proposal-tracking",t["ai-dao-platforms"]="snapshot,tally,aragon,safe,decentdao",t["ai-participation-boost"]="85%",t["ai-treasury-management"]="enabled"),t}function rn(e){const t={"@context":"https://schema.org","@type":Cu(e.contentType),name:e.primaryTopic,description:`Comprehensive ${e.primaryTopic} resource for ${e.targetAudience.join(", ")}`,about:e.semanticKeywords.map(r=>({"@type":"Thing",name:r})),audience:{"@type":"Audience",audienceType:e.targetAudience.join(", ")},educationalLevel:e.complexityLevel,inLanguage:"en",isAccessibleForFree:!0};return e.contentType==="governance-page"?{...t,"@type":"SoftwareApplication",applicationCategory:"GovernanceApplication",operatingSystem:"Web Browser",featureList:["Smart voting notifications","Multi-signature wallet coordination","Automated proposal tracking","Cross-platform DAO integration","Treasury management tools"],isRelatedTo:[{"@type":"SoftwareApplication",name:"Snapshot"},{"@type":"SoftwareApplication",name:"Tally"},{"@type":"SoftwareApplication",name:"Aragon"},{"@type":"SoftwareApplication",name:"Safe"}]}:t}function wu(e,t){return t.map(r=>({type:"related-content",target:r.url,strength:r.relevance}))}function an(e){const t=["0xmail.box","Web3","blockchain","email","wallet","cryptocurrency"],r=["DAO","governance","voting","multi-sig","Snapshot","Tally","Aragon","Safe","proposal","community"];return e.contentType==="governance-page"?[...t,...r]:t}function nn(e){const t=["web3-infrastructure","email-technology","blockchain-applications"],r=["dao-governance-tools","voting-notification-systems","community-management-platforms","multi-signature-coordination","treasury-management-solutions"];return e.contentType==="governance-page"?[...t,...r]:t}function ku(e,t){return{contentClassification:{type:e.contentType,topic:e.primaryTopic,audience:e.targetAudience.join(","),complexity:e.complexityLevel,purpose:e.contentPurpose,vertical:e.industryVertical},semanticMarkup:rn(e),entityRecognition:an(e),topicClustering:nn(e),contentRelationships:t?.contentRelationships||[],...t}}function Cu(e){return{article:"Article","landing-page":"WebPage","product-page":"Product","governance-page":"SoftwareApplication",documentation:"TechArticle"}[e]||"WebPage"}function Su(e){return{"@context":"https://schema.org","@type":"MonitorAction",name:`AI Performance Tracking - ${e}`,instrument:{"@type":"SoftwareApplication",name:"AI Analytics Platform"},measurementTechnique:["User Engagement Metrics","AI Content Understanding Score","Semantic Relevance Analysis","Conversion Optimization Tracking"],result:{"@type":"Dataset",name:`${e} Performance Data`,description:"AI-optimized performance metrics and user interaction data"}}}const Nu={governancePage:{contentType:"governance-page",primaryTopic:"DAO Governance Communication Platform",semanticKeywords:["DAO governance","voting notifications","multi-sig coordination","proposal tracking","community engagement","treasury management"],targetAudience:["DAO members","governance participants","multi-sig signers","protocol teams","community managers"],complexityLevel:"intermediate",contentPurpose:"commercial",industryVertical:"blockchain-governance",technicalTags:["snapshot","tally","aragon","safe","multi-sig","voting","proposals","treasury"],userIntent:["improve-governance","increase-participation","coordinate-multi-sig","track-proposals","engage-community"],conversionGoals:["dao-integration","governance-setup","multi-sig-connection","notification-activation"]},landingPage:{contentType:"landing-page",primaryTopic:"Web3 Email Platform",semanticKeywords:["Web3 email","wallet authentication","ENS email","SNS email","blockchain email","decentralized communication"],targetAudience:["Web3 users","crypto enthusiasts","blockchain developers","DeFi users"],complexityLevel:"beginner",contentPurpose:"commercial",industryVertical:"web3-communication",technicalTags:["ethereum","solana","ens","sns","wallet-connect","metamask","phantom"],userIntent:["create-web3-email","connect-wallet","secure-communication","eliminate-passwords"],conversionGoals:["wallet-connection","email-creation","first-email-sent","premium-upgrade"]}},Eu=({message:e,className:t})=>n.jsxs("div",{className:`flex items-center justify-center p-4 ${t||""}`,children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),sr=new Map,_e=new Set;function ir(){const e=[];return!!window.ethereum?.isMetaMask&&(_e.add("metamask"),e.push({name:"MetaMask",detected:!0,priority:1})),!!window.ethereum?.isCoinbaseWallet&&(_e.add("coinbase"),e.push({name:"Coinbase Wallet",detected:!0,priority:2})),!!window.solana?.isPhantom&&(_e.add("phantom"),e.push({name:"Phantom",detected:!0,priority:3})),e.push({name:"WalletConnect",detected:!0,priority:4}),e.sort((o,s)=>o.priority-s.priority)}function lr(e){const t=`wallet-${e.toLowerCase()}`;if(sr.has(t))return sr.get(t);const r=()=>Promise.resolve({default:()=>b.createElement("div",{},`${e} Provider Placeholder`)}),a=b.lazy(r),o=s=>n.jsx(b.Suspense,{fallback:n.jsx(Eu,{message:`Loading ${e} wallet...`,className:"wallet-loading"}),children:n.jsx(a,{...s})});return o.displayName=`Lazy${e}Provider`,sr.set(t,o),o}function Au({children:e}){const t=ir();return t.filter(r=>r.priority<=2&&r.detected).forEach(r=>{setTimeout(()=>{},1e3)}),n.jsxs(n.Fragment,{children:[t.map(r=>{const a=lr(r.name);return n.jsx(a,{},r.name)}),e]})}const gr=class gr{static preloadWallet(t){const r=t.toLowerCase();this.preloadedWallets.has(r)||(this.preloadedWallets.add(r),setTimeout(()=>{lr(t)},500))}static preloadCommonWallets(){["metamask","walletconnect","coinbase"].forEach((r,a)=>{setTimeout(()=>{this.preloadWallet(r)},a*1e3)})}static getPreloadedWallets(){return Array.from(this.preloadedWallets)}};gr.preloadedWallets=new Set;let He=gr;function Pu(){return{availableWallets:ir(),preloadWallet:a=>{He.preloadWallet(a)},getDetectedWallets:()=>Array.from(_e),hasWallet:a=>_e.has(a.toLowerCase())}}function Tu({walletName:e,onConnect:t,disabled:r=!1}){const a=()=>{He.preloadWallet(e),setTimeout(t,100)};return n.jsxs("button",{onClick:a,disabled:r,className:"wallet-connect-btn","data-wallet":e.toLowerCase(),children:["Connect ",e]})}class Iu{constructor(){this.criticalResources=[],this.observedMetrics={fcp:0,lcp:0,fid:0,cls:0,ttfb:0},this.defineCriticalResources(),this.startPerformanceObservation()}defineCriticalResources(){this.criticalResources=[{url:"/assets/index-*.css",type:"style",priority:"critical",preload:!0},{url:"/assets/index-*.js",type:"script",priority:"critical"},{url:"/assets/react-core-*.js",type:"script",priority:"high",preload:!0},{url:"https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2",type:"font",priority:"critical",preload:!0},{url:"/logo.png",type:"image",priority:"high",preload:!0}]}startPerformanceObservation(){if("PerformanceObserver"in window)try{new PerformanceObserver(s=>{for(const i of s.getEntries())i.name==="first-contentful-paint"&&(this.observedMetrics.fcp=i.startTime,this.optimizeBasedOnFCP(i.startTime))}).observe({entryTypes:["paint"]}),new PerformanceObserver(s=>{for(const i of s.getEntries())this.observedMetrics.lcp=i.startTime,this.optimizeBasedOnLCP(i.startTime)}).observe({entryTypes:["largest-contentful-paint"]});let a=0;new PerformanceObserver(s=>{for(const i of s.getEntries())i.hadRecentInput||(a+=i.value);this.observedMetrics.cls=a}).observe({entryTypes:["layout-shift"]})}catch{}window.addEventListener("load",()=>{setTimeout(()=>{const t=performance.getEntriesByType("navigation")[0];t&&(this.observedMetrics.ttfb=t.responseStart-t.requestStart,this.optimizeBasedOnTTFB(this.observedMetrics.ttfb))},0)})}optimizeBasedOnFCP(t){t>2e3?this.applyEmergencyOptimizations():t>1500&&this.applyMediumOptimizations()}optimizeBasedOnLCP(t){t>2500&&this.optimizeLCPElements()}optimizeBasedOnTTFB(t){t>600&&this.enableAggressiveCaching()}applyEmergencyOptimizations(){document.querySelectorAll('img[data-priority="low"]').forEach(a=>{a.loading="lazy",a.style.display="none",setTimeout(()=>{a.style.display=""},3e3)}),document.querySelectorAll('script[data-priority="low"]').forEach(a=>{a.setAttribute("defer","")})}applyMediumOptimizations(){["/assets/app-core-*.js","/assets/react-router-*.js"].forEach(r=>{this.preloadResource(r,"script")})}optimizeLCPElements(){document.querySelectorAll("img[data-hero], [data-lcp-element]").forEach(a=>{a instanceof HTMLImageElement&&(a.fetchPriority="high",a.loading="eager")});const r=document.querySelector("img[data-hero]")?.getAttribute("src");r&&this.preloadResource(r,"image")}enableAggressiveCaching(){const t=document.createElement("meta");t.httpEquiv="Cache-Control",t.content="public, max-age=31536000, immutable",document.head.appendChild(t)}preloadResource(t,r){if(document.querySelector(`link[href*="${t}"]`))return;const o=document.createElement("link");switch(o.rel="preload",o.href=t,r){case"script":o.as="script";break;case"style":o.as="style";break;case"font":o.as="font",o.type="font/woff2",o.crossOrigin="";break;case"image":o.as="image";break}document.head.appendChild(o)}optimizeCriticalPath(){this.criticalResources.filter(t=>t.priority==="critical"&&t.preload).forEach(t=>{this.preloadResource(t.url,t.type)}),this.inlineCriticalCSS(),this.optimizeFontLoading(),this.removeRenderBlocking(),this.setupProgressiveLoading()}inlineCriticalCSS(){const t=document.querySelector('link[rel="stylesheet"][data-critical]');t&&this.isSmallResource(t.getAttribute("href")||"")&&fetch(t.getAttribute("href")||"").then(r=>r.text()).then(r=>{if(r.length<1e4){const a=document.createElement("style");a.textContent=r,document.head.appendChild(a),t.remove()}}).catch(()=>{})}optimizeFontLoading(){document.querySelectorAll('link[href*="fonts.googleapis.com"]').forEach(r=>{const a=r.getAttribute("href")||"";if(!a.includes("display=swap")){const o=a.includes("?")?"&":"?";r.setAttribute("href",`${a}${o}display=swap`)}})}removeRenderBlocking(){document.querySelectorAll('link[rel="stylesheet"]:not([data-critical])').forEach(r=>{const a=r.cloneNode(!0);a.rel="preload",a.as="style",a.onload=()=>{a.onload=null,a.rel="stylesheet"};const o=document.createElement("noscript"),s=r.cloneNode(!0);o.appendChild(s),document.head.appendChild(a),document.head.appendChild(o),r.remove()})}setupProgressiveLoading(){const t=document.querySelectorAll("img[data-src]");if("IntersectionObserver"in window){const r=new IntersectionObserver(a=>{a.forEach(o=>{if(o.isIntersecting){const s=o.target;s.src=s.dataset.src||"",s.removeAttribute("data-src"),r.unobserve(s)}})},{rootMargin:"50px 0px",threshold:.01});t.forEach(a=>r.observe(a))}else t.forEach(r=>{const a=r;a.src=a.dataset.src||""})}isSmallResource(t){return t.includes("critical")||t.includes("inline")}getPerformanceMetrics(){return{...this.observedMetrics,score:this.calculatePerformanceScore()}}calculatePerformanceScore(){let t=100;return this.observedMetrics.fcp>2e3?t-=20:this.observedMetrics.fcp>1500&&(t-=10),this.observedMetrics.lcp>2500?t-=25:this.observedMetrics.lcp>2e3&&(t-=15),this.observedMetrics.cls>.1?t-=15:this.observedMetrics.cls>.05&&(t-=8),this.observedMetrics.ttfb>600?t-=10:this.observedMetrics.ttfb>400&&(t-=5),Math.max(t,0)}}const yt={mark:e=>{typeof performance<"u"&&performance.mark&&performance.mark(e)},measure:(e,t,r)=>{if(typeof performance<"u"&&performance.measure)try{performance.measure(e,t,r);const a=performance.getEntriesByName(e);return a[a.length-1]?.duration||0}catch{return 0}return 0},getEntries:e=>typeof performance<"u"&&performance.getEntriesByName?e?performance.getEntriesByName(e):performance.getEntries():[],clearEntries:e=>{typeof performance<"u"&&(e?(performance.clearMeasures?.(e),performance.clearMarks?.(e)):(performance.clearMeasures?.(),performance.clearMarks?.()))}},Lu=(e,t=[])=>{b.useEffect(()=>(yt.mark(`${e}-start`),()=>{yt.mark(`${e}-end`),yt.measure(e,`${e}-start`,`${e}-end`)}),[e,t])},$u=e=>{const t=b.useRef(e);return t.current=e,b.useCallback((...r)=>t.current(...r),[])},Ou=(e,t,r)=>{const a=b.useRef(t),o=b.useRef(void 0);return b.useMemo(()=>(r&&process.env.NODE_ENV==="development"&&t.some((s,i)=>s!==a.current[i]),a.current=t,o.current=e(),o.current),[e,r,t])},bt=new Map,Mu=e=>{const t=bt.get(e)||0;bt.set(e,t+1),b.useEffect(()=>{process.env.NODE_ENV})},Du=()=>Object.fromEntries(bt),zu=()=>bt.clear(),Wu=e=>b.lazy(e),Bu=(e=.1)=>{const[t,r]=b.useState(new Set),a=b.useRef(null);b.useEffect(()=>(a.current=new IntersectionObserver(s=>{s.forEach(i=>{if(i.isIntersecting){const l=i.target,c=l.dataset.src;c&&(l.src=c,l.onload=()=>{r(u=>new Set(u).add(c))},a.current?.unobserve(l))}})},{threshold:e}),()=>a.current?.disconnect()),[e]);const o=b.useCallback(s=>{s&&a.current&&a.current.observe(s)},[]);return{loadedImages:t,observeImage:o}},ju=e=>{typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(()=>{e().catch(()=>{})}):setTimeout(()=>{e().catch(()=>{})},100)},on={},Fu=e=>{on[e.name]=e.value,process.env.NODE_ENV},_u=()=>on,Hu=(e,t="script")=>{if(typeof document<"u"){const r=document.createElement("link");r.rel="prefetch",r.href=e,r.as=t,document.head.appendChild(r)}},Vu=(e,t="script",r)=>{if(typeof document<"u"){const a=document.createElement("link");a.rel="preload",a.href=e,a.as=t,r&&(a.crossOrigin="anonymous"),document.head.appendChild(a)}},Uu=e=>{const t=b.useRef(new Set),r=b.useRef(new Set),a=b.useCallback((s,i)=>{const l=setTimeout(()=>{t.current.delete(l),s()},i);return t.current.add(l),l},[]),o=b.useCallback((s,i)=>{const l=setInterval(s,i);return r.current.add(l),l},[]);return b.useEffect(()=>{const s=t.current,i=r.current;return()=>{s.forEach(l=>clearTimeout(l)),i.forEach(l=>clearInterval(l)),process.env.NODE_ENV}},[e]),{createTimer:a,createInterval:o}},ce={maxBundleSize:500,maxChunkSize:200,maxImageSize:100,maxFCP:1800,maxLCP:2500,maxFID:100,maxCLS:.1,check:e=>{const t=[];return e.FCP&&e.FCP>ce.maxFCP&&t.push(`FCP (${e.FCP}ms) exceeds budget (${ce.maxFCP}ms)`),e.LCP&&e.LCP>ce.maxLCP&&t.push(`LCP (${e.LCP}ms) exceeds budget (${ce.maxLCP}ms)`),e.FID&&e.FID>ce.maxFID&&t.push(`FID (${e.FID}ms) exceeds budget (${ce.maxFID}ms)`),e.CLS&&e.CLS>ce.maxCLS&&t.push(`CLS (${e.CLS}) exceeds budget (${ce.maxCLS})`),t}},qu=({contentType:e,aiSummary:t,technicalComplexity:r="intermediate"})=>n.jsxs(fn.Helmet,{children:[n.jsx("meta",{name:"ai:content-type",content:e}),n.jsx("meta",{name:"ai:summary",content:t}),n.jsx("meta",{name:"ai:complexity",content:r})]}),Gu=({children:e,className:t,...r})=>n.jsx("main",{className:t,...r,role:"main",children:e}),Ku=({children:e})=>n.jsx(n.Fragment,{children:e}),Te=e=>Array.isArray(e)?e:typeof e=="string"?e.split(",").map(t=>t.trim()).filter(Boolean):[],cr=e=>{const t=Te(e.audience);return{"@context":"https://schema.org","@type":"SoftwareApplication",name:"0xmail.box",applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",description:e.description,url:"https://0xmail.box",downloadUrl:"https://0xmail.box/connect",installUrl:"https://0xmail.box/connect",screenshot:"https://0xmail.box/screenshots/app-preview.jpg",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"2500",bestRating:"5",worstRating:"1"},offers:[{"@type":"Offer",name:"Free Web3 Email",description:"Basic wallet-based email with unlimited sending",price:"0",priceCurrency:"USD",availability:"https://schema.org/InStock"},{"@type":"Offer",name:"Premium Web3 Email",description:"Advanced features with ENS/SNS domains and priority support",price:"2.00",priceCurrency:"USD",billingIncrement:"month",availability:"https://schema.org/InStock"}],featureList:["Passwordless wallet authentication","ENS domain email support (.eth)","Solana Name Service support (.sol)","Smart contract email integration","Multi-chain wallet compatibility","Cross-chain email addresses","DAO email delegation","Encrypted communication","Web2/Web3 bridge functionality","Point-based reward system"],applicationSubCategory:"Web3 Email Platform",audience:{"@type":"Audience",audienceType:t.join(", "),geographicArea:"Worldwide"},creator:{"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box"},datePublished:"2024-01-01",dateModified:e.lastUpdated?.toISOString()||new Date().toISOString(),version:"1.0",softwareRequirements:"Web3 Wallet (MetaMask, Phantom, etc.)",storageRequirements:"5MB",memoryRequirements:"512MB RAM",supportingData:{blockchainNetworks:["Ethereum","Solana","Polygon","Arbitrum","Optimism"],supportedWallets:["MetaMask","Phantom","WalletConnect","Coinbase Wallet"],smartContractSupport:!0,ensCompatible:!0,snsCompatible:!0}}},dr=e=>{const t=Te(e.keywords),r=Te(e.audience);return{"@context":"https://schema.org","@type":"TechnicalArticle",headline:e.title,description:e.description,author:{"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box",logo:{"@type":"ImageObject",url:"https://0xmail.box/logo.png"}},publisher:{"@type":"Organization",name:"0xmail.box",logo:{"@type":"ImageObject",url:"https://0xmail.box/logo.png",width:600,height:600}},datePublished:"2024-01-01T00:00:00Z",dateModified:e.lastUpdated?.toISOString()||new Date().toISOString(),mainEntityOfPage:{"@type":"WebPage","@id":`https://0xmail.box${location.pathname}`},image:{"@type":"ImageObject",url:"https://0xmail.box/og-images/technical-guide.jpg",width:1200,height:630},keywords:t.join(", "),about:[{"@type":"Thing",name:"Web3 Email Platform"},{"@type":"Thing",name:"Blockchain Technology"},{"@type":"Thing",name:"Decentralized Communication"}],audience:{"@type":"Audience",audienceType:r.join(", "),educationalLevel:e.complexity},educationalLevel:e.complexity,proficiencyLevel:e.complexity,learningResourceType:e.contentType,timeRequired:e.readingTime?`PT${e.readingTime}M`:"PT5M",inLanguage:"en",isAccessibleForFree:!0,license:"https://creativecommons.org/licenses/by/4.0/",teaches:e.relatedTopics||["Web3 email setup","Wallet connection process","Blockchain authentication","Smart contract integration"]}},Yu=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer,dateCreated:new Date().toISOString(),upvoteCount:Math.floor(Math.random()*50)+10,author:{"@type":"Organization",name:"0xmail.box"}},answerCount:1,upvoteCount:Math.floor(Math.random()*100)+20,dateCreated:"2024-01-01T00:00:00Z",category:t.category||"Web3 Email"}))}),ur=e=>({"@context":"https://schema.org","@type":"WebPage",name:e.title,description:e.description,url:`https://0xmail.box${location.pathname}`,primaryImageOfPage:{"@type":"ImageObject",url:"https://0xmail.box/og-images/ai-optimized.jpg"},significantLink:["https://0xmail.box/document","https://0xmail.box/web3-users","https://0xmail.box/web3-projects","https://0xmail.box/connect"],relatedLink:e.relatedTopics?.map(t=>`https://0xmail.box/search?q=${encodeURIComponent(t)}`)||[],about:{"@type":"Thing",name:"Web3 Email Communication",description:"Blockchain-based email platform using wallet authentication",sameAs:["https://en.wikipedia.org/wiki/Web3","https://en.wikipedia.org/wiki/Blockchain","https://en.wikipedia.org/wiki/Cryptocurrency_wallet"]},mentions:[{"@type":"SoftwareApplication",name:"MetaMask"},{"@type":"SoftwareApplication",name:"Phantom Wallet"},{"@type":"Thing",name:"Ethereum Name Service"},{"@type":"Thing",name:"Solana Name Service"}],isPartOf:{"@type":"WebSite","@id":"https://0xmail.box",name:"0xmail.box"},potentialAction:{"@type":"InteractAction",target:{"@type":"EntryPoint",urlTemplate:"https://0xmail.box/connect",actionPlatform:["https://schema.org/DesktopWebPlatform","https://schema.org/MobileWebPlatform"]},name:"Connect Web3 Wallet"}}),sn=e=>{const t=Te(e.keywords);return{"og:title":e.title,"og:description":e.description,"og:type":"website","og:url":`https://0xmail.box${location.pathname}`,"og:image":`https://0xmail.box/og-images/${e.category}.jpg`,"og:image:width":"1200","og:image:height":"630","og:image:alt":`${e.title} - Web3 Email Platform`,"og:site_name":"0xmail.box","og:locale":"en_US","article:author":"https://0xmail.box/about","article:section":e.category,"article:tag":t.join(","),"article:published_time":"2024-01-01T00:00:00Z","article:modified_time":e.lastUpdated?.toISOString()||new Date().toISOString()}},ln=e=>({"twitter:card":"summary_large_image","twitter:site":"@0xmailbox","twitter:creator":"@0xmailbox","twitter:title":e.title,"twitter:description":e.description,"twitter:image":`https://0xmail.box/twitter-cards/${e.category}.jpg`,"twitter:image:alt":`${e.title} - Web3 Email Platform`,"twitter:label1":"Category","twitter:data1":e.category,"twitter:label2":"Reading Time","twitter:data2":e.readingTime?`${e.readingTime} min`:"5 min"}),cn=e=>{const t=Te(e.keywords),r=Te(e.audience);return{"ai:content-type":e.contentType,"ai:complexity":e.complexity,"ai:category":e.category,"ai:audience":r.join(","),"ai:keywords":t.join(","),"ai:reading-time":e.readingTime?.toString()||"5","web3:platform":"Email","web3:networks":"ethereum,solana,polygon","web3:wallets":"metamask,phantom,walletconnect","web3:features":"ens,sns,smart-contracts,multi-chain","llm:context":"Web3 email platform documentation and user guides","llm:domain":"blockchain,cryptocurrency,decentralized-communication","llm:use-case":"email,authentication,wallet-integration,smart-contracts","semantic:topic":e.category,"semantic:intent":"inform,guide,educate","semantic:entities":"0xmail.box,Web3,blockchain,email,wallet","content:freshness":e.lastUpdated?.toISOString()||new Date().toISOString(),"content:authority":"high","content:expertise":"technical","content:trustworthiness":"verified"}},Qu=e=>({structuredData:{product:cr(e),article:dr(e),aiOptimized:ur(e)},openGraph:sn(e),twitterCard:ln(e),aiMetaTags:cn(e),jsonLD:[cr(e),dr(e),ur(e)]}),Xu={homepage:{title:"0xmail.box - Revolutionary Web3 Email Platform | Wallet-Based Authentication",description:"Transform your email experience with 0xmail.box - the first Web3 email platform using wallet authentication. No passwords, enhanced security, ENS/SNS domain support, and smart contract integration.",keywords:["Web3 email","blockchain email","wallet authentication","ENS email","SNS email","decentralized email","smart contract integration"],category:"Web3 Platform",audience:["Crypto Users","Web3 Developers","DeFi Users","DAO Members"],complexity:"beginner",contentType:"overview",readingTime:3,relatedTopics:["Web3 authentication","Blockchain communication","Decentralized identity"]},documentation:{title:"0xmail.box Documentation - Complete Web3 Email Setup Guide",description:"Comprehensive documentation for 0xmail.box Web3 email platform. Learn wallet connection, ENS/SNS setup, smart contract integration, and advanced features.",keywords:["Web3 email guide","wallet connection","ENS setup","SNS configuration","smart contract email","blockchain documentation"],category:"Technical Documentation",audience:["Developers","Technical Users","Web3 Enthusiasts"],complexity:"intermediate",contentType:"guide",readingTime:15,relatedTopics:["Wallet integration","Blockchain protocols","Email security"]},earnPoints:{title:"How to Earn Points on 0xmail.box - Web3 Email Rewards Guide",description:"Master the 0xmail.box points system. Earn rewards through email activities, referrals, smart contract interactions, and prepare for future token distribution.",keywords:["Web3 rewards","email points","blockchain rewards","referral program","token preparation","crypto incentives"],category:"Rewards Guide",audience:["Token Farmers","Crypto Users","Web3 Users"],complexity:"beginner",contentType:"tutorial",readingTime:8,relatedTopics:["Token economics","Reward systems","Referral marketing"]}},Zu=e=>{const{level:t,text:r,className:a="",id:o,semanticContext:s="section"}=e,i=`h${t}`,l={1:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",2:"text-3xl md:text-4xl font-bold leading-tight",3:"text-2xl md:text-3xl font-bold leading-tight",4:"text-xl md:text-2xl font-semibold leading-tight",5:"text-lg md:text-xl font-semibold leading-tight",6:"text-base md:text-lg font-medium leading-tight"},c={"page-title":"text-gray-900 dark:text-white mb-6",section:"text-gray-900 dark:text-white mb-4",subsection:"text-gray-900 dark:text-white mb-3",feature:"text-gray-900 dark:text-white mb-2",benefit:"text-blue-600 dark:text-blue-400 mb-2",step:"text-green-600 dark:text-green-400 mb-2"},u=[l[t],c[s],a].filter(Boolean).join(" "),g=o||r.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return b.createElement(i,{id:g,className:u,"aria-level":t},r)},ae={pageTitle:(e,t)=>({level:1,text:e,className:t,semanticContext:"page-title"}),majorSection:(e,t)=>({level:2,text:e,className:t,semanticContext:"section"}),feature:(e,t)=>({level:3,text:e,className:t,semanticContext:"feature"}),benefit:(e,t)=>({level:3,text:e,className:t,semanticContext:"benefit"}),step:(e,t,r)=>({level:3,text:t?`Step ${t}: ${e}`:e,className:r,semanticContext:"step"}),subFeature:(e,t)=>({level:4,text:e,className:t,semanticContext:"feature"})},Ju=e=>{const t=[],r=[],a=e.filter(o=>o.level===1).length;a===0?t.push("Missing H1 tag - every page should have exactly one H1"):a>1&&t.push(`Multiple H1 tags found (${a}) - use only one H1 per page`);for(let o=1;o<e.length;o++){const s=e[o],i=e[o-1];s.level>i.level+1&&t.push(`Heading level jump from H${i.level} to H${s.level} - avoid skipping levels`)}return e.forEach((o,s)=>{o.text.length<3&&t.push(`Heading ${s+1} is too short - use descriptive text`),o.text.length>70&&r.push(`Heading "${o.text.substring(0,30)}..." is long - consider shortening for better SEO`)}),{isValid:t.length===0,errors:t,suggestions:r}},Ru={walletConnection:ae.pageTitle("Connect Your Web3 Wallet"),emailBenefits:ae.majorSection("Why Choose Web3 Email?"),securityFeature:ae.feature("Secure & Private"),ensIntegration:ae.feature("ENS Domain Support"),multiChain:ae.feature("Multi-Chain Compatibility"),passwordless:ae.benefit("No Passwords Required"),setupStep1:ae.step("Connect Your Wallet",1),setupStep2:ae.step("Verify Your Identity",2),setupStep3:ae.step("Access Your Emails",3)},eg=[{term:"Web3 Email",definition:"Email system that uses blockchain wallet addresses as authentication instead of traditional passwords",category:"Web3 Communication",synonyms:["blockchain email","decentralized email","crypto email"],relatedTerms:["wallet authentication","ENS email","SNS email"],examples:["vitalik.eth@0xmail.box","alice.sol@0xmail.box"],context:"Web3 email revolutionizes digital communication by eliminating passwords and using cryptographic signatures for authentication"},{term:"Wallet Authentication",definition:"Authentication method using cryptographic signatures from blockchain wallets instead of passwords",category:"Security",synonyms:["wallet-based auth","signature authentication","passwordless authentication"],relatedTerms:["EIP-712","SIWE","message signing"],examples:["MetaMask signature","Phantom wallet auth","WalletConnect login"],context:"Wallet authentication provides superior security through cryptographic proofs that cannot be phished or stolen like passwords"},{term:"ENS Email",definition:"Email addresses using Ethereum Name Service domains (.eth) as identifiers",category:"Naming Systems",synonyms:["Ethereum name email",".eth email"],relatedTerms:["ENS","Ethereum domains","blockchain domains"],examples:["vitalik.eth","ethereum.eth"],context:"ENS emails provide human-readable addresses that resolve to Ethereum wallet addresses"},{term:"SNS Email",definition:"Email addresses using Solana Name Service domains (.sol) as identifiers",category:"Naming Systems",synonyms:["Solana name email",".sol email"],relatedTerms:["SNS","Solana domains","SPL domains"],examples:["anatoly.sol","solana.sol"],context:"SNS emails provide human-readable addresses for Solana ecosystem users"},{term:"Smart Contract Integration",definition:"Ability to send and receive emails triggered by blockchain smart contract events",category:"Blockchain Integration",synonyms:["contract notifications","on-chain email triggers"],relatedTerms:["event listeners","webhooks","contract automation"],examples:["DAO proposal notifications","DeFi alert emails","NFT sale confirmations"],context:"Smart contract integration enables automated communication based on blockchain events"},{term:"Multi-Chain Support",definition:"Compatibility with multiple blockchain networks for wallet authentication and email services",category:"Interoperability",synonyms:["cross-chain support","blockchain agnostic"],relatedTerms:["EVM chains","Solana","Layer 2"],examples:["Ethereum, Polygon, Arbitrum, Solana support"],context:"Multi-chain support ensures users from any blockchain ecosystem can use the email service"},{term:"DAO Email Delegation",definition:"System allowing DAOs to manage email communications through delegated authorities",category:"Governance",synonyms:["governance email","multi-sig email"],relatedTerms:["DAO governance","multi-signature","delegation"],examples:["Treasury notifications","Proposal alerts","Voting reminders"],context:"DAO email delegation enables decentralized organizations to manage communications efficiently"},{term:"Web2/Web3 Bridge",definition:"Technology enabling communication between traditional email systems and blockchain-based email",category:"Interoperability",synonyms:["email bridge","legacy integration"],relatedTerms:["SMTP gateway","email forwarding","protocol bridge"],examples:["Gmail to Web3 email","Outlook integration"],context:"Web2/Web3 bridge ensures compatibility with existing email infrastructure"}],tg=e=>({"@context":"https://schema.org","@type":"LearningResource",educationalLevel:e.difficulty,learningResourceType:"Technical Documentation",timeRequired:e.estimatedTime?`PT${e.estimatedTime}M`:void 0,teaches:e.learningObjectives,requires:e.prerequisites,about:{"@type":"Thing",name:e.domain,category:e.category,subcategory:e.subcategory},keywords:e.concepts,applicationExample:e.practicalApplications,isRelatedTo:e.relatedConcepts}),rg=e=>{const t={nodes:e.map(r=>({id:r.term,label:r.term,category:r.category,definition:r.definition})),edges:[]};return e.forEach(r=>{r.relatedTerms?.forEach(a=>{e.find(s=>s.term===a)&&t.edges.push({source:r.term,target:a,relationship:"related_to"})}),r.synonyms?.forEach(a=>{t.edges.push({source:r.term,target:a,relationship:"synonym_of"})})}),t},ag=e=>{const t=[];return e.examples?.forEach(r=>{t.push({text:r,label:e.term,type:"positive",confidence:1})}),e.context&&t.push({text:e.context,label:e.term,type:"contextual",confidence:.8}),t.push({text:`${e.term} is ${e.definition}`,label:e.term,type:"definition",confidence:1}),t},ng=e=>{const t=[];return e.forEach(r=>{t.push({question:`What is ${r.term}?`,answer:r.definition,category:r.category,difficulty:"basic"}),r.context&&t.push({question:`How does ${r.term} work?`,answer:r.context,category:r.category,difficulty:"intermediate"}),r.examples&&r.examples.length>0&&t.push({question:`What are examples of ${r.term}?`,answer:r.examples.join(", "),category:r.category,difficulty:"basic"}),r.relatedTerms&&r.relatedTerms.length>0&&t.push({question:`What is ${r.term} related to?`,answer:`${r.term} is related to ${r.relatedTerms.join(", ")}`,category:r.category,difficulty:"intermediate"})}),t},og={homepage:{domain:"Web3 Email Platform",category:"Web3 Communication",concepts:["Web3 email","wallet authentication","passwordless login","blockchain messaging"],prerequisites:["Basic blockchain knowledge","Understanding of crypto wallets"],learningObjectives:["Understand Web3 email concepts","Learn wallet authentication","Explore blockchain communication"],difficulty:"beginner",estimatedTime:5,practicalApplications:["Secure email communication","DAO governance","DeFi notifications"]},documentation:{domain:"Web3 Email Technical Documentation",category:"Technical Guide",concepts:["API integration","smart contracts","wallet connection","email protocols"],prerequisites:["JavaScript/TypeScript","Web3 development basics","REST APIs"],learningObjectives:["Implement Web3 email","Integrate wallet authentication","Build on email API"],difficulty:"intermediate",estimatedTime:30,practicalApplications:["dApp integration","Email automation","Smart contract notifications"]},governance:{domain:"DAO Governance Communication",category:"Governance Tools",concepts:["DAO email","voting notifications","proposal tracking","multi-sig coordination"],prerequisites:["DAO basics","Governance understanding","Multi-signature wallets"],learningObjectives:["Setup DAO email","Configure voting alerts","Manage team communication"],difficulty:"advanced",estimatedTime:20,practicalApplications:["DAO operations","Treasury management","Governance participation"]}};/**
|
|
59
|
+
`},label:"WhatsApp"}],u=async()=>{try{await navigator.clipboard.writeText(l),r(!1)}catch{}};return n.jsxs("div",{className:"relative",children:[n.jsx("button",{onClick:()=>r(!t),className:"flex items-center justify-center w-8 h-8 bg-blue-50 hover:bg-blue-100 dark:bg-blue-900/30 dark:hover:bg-blue-900/50 text-blue-600 dark:text-blue-400 rounded-lg transition-colors",title:"Share this page",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.367 2.684 3 3 0 00-5.367-2.684z"})})}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"fixed inset-0 z-[999998]",onClick:()=>r(!1)}),n.jsx("div",{className:"absolute right-0 top-10 z-[999999] w-32 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 py-1",children:s?n.jsx("div",{className:"flex items-center justify-center px-3 py-2",children:n.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):n.jsxs(n.Fragment,{children:[c.map((g,m)=>{const h=g.component,f=g.icon;return n.jsx(h,{...g.props,className:"w-full",children:n.jsxs("div",{className:"flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[n.jsx(f,{size:16,round:!0,className:"mr-2"}),n.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:g.label})]})},m)}),n.jsxs("button",{onClick:u,className:"w-full flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[n.jsx("svg",{className:"w-4 h-4 mr-2 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})}),n.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Copy Link"})]})]})})]})]})},Ha=({items:e,shareConfig:t,className:r,showHome:a})=>n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("nav",{"aria-label":"Breadcrumb",children:n.jsx("ol",{className:"flex items-center text-sm space-x-2",children:e.map((o,s)=>n.jsxs(b.Fragment,{children:[n.jsx("li",{children:o.current?n.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:o.label}):n.jsx(Ke.Link,{to:o.href||"#",className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 transition-colors",children:o.label})}),s<e.length-1&&n.jsx("li",{children:n.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"/"})})]},s))})}),t&&n.jsx(nd,{shareConfig:t})]}),od=({items:e,shareConfig:t})=>n.jsx("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 relative z-50",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 relative",children:n.jsx(Ha,{items:e,shareConfig:t})})}),sd=({filename:e,code:t,language:r,title:a,className:o="",showCopy:s=!0,showHeader:i=!0})=>{const{t:l}=fr.useTranslation("codeBlock"),{code:c,loading:u,error:g}=Pr(e||""),[m,h]=b.useState(!1),f=t||c,x=r||(e?(C=>{switch(C.split(".").pop()?.toLowerCase()){case"sol":return"solidity";case"js":case"mjs":return"javascript";case"ts":return"typescript";case"sh":return"bash";case"graphql":return"graphql";case"json":return"json";case"css":return"css";case"html":return"html";case"jsx":return"jsx";case"tsx":return"tsx";case"py":return"python";case"java":return"java";case"cpp":case"c":return"cpp";case"go":return"go";case"rs":return"rust";case"php":return"php";case"rb":return"ruby";default:return"text"}})(e):"text"),k=async()=>{if(f)try{await navigator.clipboard.writeText(f),h(!0),setTimeout(()=>h(!1),2e3)}catch{}};return e&&u?n.jsx("div",{className:`bg-gray-900 text-green-400 rounded-lg p-4 font-mono text-sm ${o}`,children:n.jsx("div",{className:"animate-pulse text-gray-500",children:l("loadingCode","Loading code...")})}):e&&g?n.jsxs("div",{className:`bg-gray-900 text-red-400 rounded-lg p-4 font-mono text-sm ${o}`,children:[l("error","Error"),": ",g]}):f?n.jsxs("div",{className:`bg-gray-900 rounded-lg border border-green-500/20 shadow-lg shadow-green-500/10 ${o}`,children:[i&&n.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-green-500/20 bg-gray-800/50",children:[n.jsx("span",{className:"text-sm text-green-400 font-mono",children:a||e||`${x} code`}),s&&n.jsx("button",{onClick:k,className:"p-2 text-gray-400 hover:text-green-400 hover:bg-gray-800 rounded-lg transition-all duration-200 group",title:l("copyCode","Copy code"),children:m?n.jsx(A.CheckIcon,{className:"h-4 w-4 text-green-400"}):n.jsx(A.ClipboardDocumentIcon,{className:"h-4 w-4 group-hover:scale-110 transition-transform"})})]}),n.jsx("div",{className:"p-4 overflow-x-auto text-left",children:n.jsx("pre",{className:`text-sm language-${x}`,children:n.jsx("code",{className:"text-gray-100",children:f})})})]}):n.jsx("div",{className:`bg-gray-900 text-gray-400 rounded-lg p-4 font-mono text-sm ${o}`,children:l("noCode","No code to display")})},id=({title:e,description:t,code:r,preview:a,language:o="tsx",showBrowserChrome:s=!0,copyKey:i})=>{const[l,c]=b.useState({}),u=(h,f)=>{navigator.clipboard.writeText(h).then(()=>{c(p=>({...p,[f]:!0})),setTimeout(()=>{c(p=>({...p,[f]:!1}))},2e3)})},g=i||`${e}-code`,m=l[g];return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:e}),t&&n.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm",children:t})]}),a&&n.jsxs("div",{className:"relative",children:[s&&n.jsxs("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-t-lg px-4 py-3 flex items-center space-x-2",children:[n.jsxs("div",{className:"flex space-x-2",children:[n.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),n.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),n.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),n.jsx("div",{className:"flex-1 text-center",children:n.jsx("div",{className:"bg-white dark:bg-gray-600 rounded px-3 py-1 text-xs text-gray-600 dark:text-gray-300 inline-block",children:"Preview"})})]}),n.jsx("div",{className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 p-6 ${s?"rounded-b-lg":"rounded-lg"}`,children:a})]}),n.jsx("div",{className:"relative",children:n.jsxs("div",{className:"bg-gray-900 rounded-lg overflow-hidden",children:[n.jsxs("div",{className:"bg-gray-800 px-4 py-2 flex justify-between items-center",children:[n.jsx("span",{className:"text-gray-300 text-sm font-mono",children:o}),n.jsx("button",{onClick:()=>u(r,g),className:"flex items-center space-x-1 text-gray-300 hover:text-white transition-colors text-sm","aria-label":m?"Copied!":"Copy code",children:m?n.jsxs(n.Fragment,{children:[n.jsx(A.CheckIcon,{className:"h-4 w-4"}),n.jsx("span",{children:"Copied!"})]}):n.jsxs(n.Fragment,{children:[n.jsx(A.ClipboardIcon,{className:"h-4 w-4"}),n.jsx("span",{children:"Copy"})]})})]}),n.jsx("div",{className:"p-4 overflow-x-auto",children:n.jsx("pre",{className:"text-gray-100 text-sm leading-relaxed",children:n.jsx("code",{children:r})})})]})})]})},ld=({subsections:e,isExpanded:t,selectedSubsection:r,parentSectionId:a,onSubsectionSelect:o})=>{const s=b.useRef(null),[i,l]=b.useState(void 0);return b.useLayoutEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(t?c+16:0)}},[t,e]),n.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:i!==void 0?`${i}px`:"auto"},children:n.jsx("div",{ref:s,className:"ml-6 mt-1 mb-1 space-y-1",children:e.map(c=>n.jsxs("div",{className:"relative group",children:[r===c.id&&n.jsx("div",{className:"absolute top-0.5 bottom-0.5 left-1 right-12 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none"}),r!==c.id&&n.jsx("div",{className:"absolute top-0.5 bottom-0.5 left-1 right-12 bg-blue-500/0 group-hover:bg-blue-500/10 dark:group-hover:bg-blue-400/10 rounded-lg pointer-events-none transition-colors duration-200"}),n.jsx("button",{onClick:()=>o?.(c.id,a),className:`relative z-10 block w-full text-left pl-4 pr-3 py-2 rounded-md text-sm transition-all duration-200 ${r===c.id?"text-blue-700 dark:text-blue-300":"text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200"}`,children:c.title})]},c.id))})})},cd=({id:e,title:t,content:r,subsections:a,isSelected:o=!1,selectedSubsection:s=null,onSectionSelect:i,onSubsectionSelect:l,className:c=""})=>{const[u,g]=b.useState(!1),m=()=>{g(!u)},h=()=>{i?.(e)},f=a&&a.length>0;return n.jsxs("div",{className:c,children:[n.jsxs("div",{className:"relative flex items-center group",children:[o&&!s&&n.jsx("div",{className:"absolute top-2 bottom-2 left-2 right-12 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none"}),!(o&&!s)&&n.jsx("div",{className:"absolute top-2 bottom-2 left-2 right-12 bg-blue-500/0 group-hover:bg-blue-500/10 dark:group-hover:bg-blue-400/10 rounded-lg pointer-events-none transition-colors duration-200"}),n.jsx("button",{onClick:h,className:`relative z-10 flex-1 text-left pl-5 pr-3 py-4 text-base font-medium transition-all duration-200 ${o&&!s?"text-blue-700 dark:text-blue-300":"text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100"}`,children:t}),f&&n.jsx("button",{onClick:m,className:"p-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200","aria-label":u?"Collapse section":"Expand section",children:n.jsx(A.ChevronRightIcon,{className:`h-5 w-5 text-gray-500 transition-transform duration-300 ease-in-out ${u?"rotate-90":"rotate-0"}`})})]}),f&&n.jsx(ld,{subsections:a,isExpanded:u,selectedSubsection:s,parentSectionId:e,onSubsectionSelect:l})]})},dd=({title:e,subtitle:t,buttonText:r,buttonIcon:a="envelope",variant:o="default",badgeText:s="FREE",prominentBadgeText:i="100% Free",onButtonClick:l,className:c=""})=>{const u=()=>a==="envelope"||a==="both"?n.jsx(A.EnvelopeIcon,{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1"}):a==="none"?null:n.jsx("svg",{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})}),g=()=>a==="arrow"||a==="both"?n.jsx(A.ArrowRightIcon,{className:"h-4 w-4 ml-2"}):null,m=()=>o==="prominent"?"border-b-2 border-green-200 dark:border-green-700":"border-b border-green-200 dark:border-green-700",h=()=>{const x="bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white rounded-lg font-bold transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-green-500/25 inline-flex items-center whitespace-nowrap cursor-pointer";return o==="prominent"?`${x} px-8 py-3 text-base`:`${x} px-6 py-2 text-sm`},f=()=>o==="prominent"?"text-green-800 dark:text-green-200 font-semibold text-lg":"text-green-800 dark:text-green-200 font-semibold",p=o==="prominent"?i:s;return n.jsx("div",{className:`bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 ${m()} ${c}`,children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:n.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[n.jsxs("div",{className:`flex items-center ${o==="prominent"?"text-center sm:text-left":""}`,children:[n.jsx("div",{className:"bg-green-500 text-white text-xs font-bold px-3 py-1 rounded-full mr-3 animate-pulse",children:p}),n.jsxs("div",{children:[n.jsx("span",{className:f(),children:e}),t&&n.jsx("span",{className:"text-green-700 dark:text-green-300 text-sm block",children:t})]})]}),n.jsxs("button",{onClick:l,className:h(),children:[u(),r,g()]})]})})})},ud=({children:e,onClick:t,variant:r,size:a,disabled:o,className:s,type:i,trackingLabel:l,actionType:c,componentName:u,onTrack:g,trackingParams:m={},...h})=>{const f=p=>{if(g){const x=l||(typeof e=="string"?e:"")||"Unknown Button",C=r&&["default","primary","secondary","outline","ghost","destructive","link"].includes(r)?r:"default";g({button_text:x,button_type:C,component_name:u,action_type:c,...m})}t&&t(p)};return n.jsx(de,{...h,variant:r,size:a,disabled:o,className:s,type:i,onClick:f,children:e})},gd=({children:e,onClick:t,to:r,href:a,trackingLabel:o,componentName:s,onTrack:i,trackingParams:l={},LinkComponent:c,linkProps:u={},...g})=>{const m=f=>{if(i){const p=o||(typeof e=="string"?e:"")||"Unknown Link",x=r?typeof r=="string"?r:r.pathname||"":a||"";i({link_text:p,link_url:x,to_page:x,navigation_type:c?"router_link":"anchor_link",component_name:s,...l})}t&&t(f)};if(c&&r!==void 0)return n.jsx(c,{...u,to:r,onClick:m,...g,children:e});const h=r?typeof r=="string"?r:r.pathname||"#":a;return n.jsx("a",{...g,href:h,onClick:m,children:e})},Va={en:{name:"English",flag:"🇺🇸"},ar:{name:"العربية",flag:"🇸🇦"},de:{name:"Deutsch",flag:"🇩🇪"},es:{name:"Español",flag:"🇪🇸"},fr:{name:"Français",flag:"🇫🇷"},it:{name:"Italiano",flag:"🇮🇹"},ja:{name:"日本語",flag:"🇯🇵"},ko:{name:"한국어",flag:"🇰🇷"},pt:{name:"Português",flag:"🇵🇹"},ru:{name:"Русский",flag:"🇷🇺"},sv:{name:"Svenska",flag:"🇸🇪"},th:{name:"ไทย",flag:"🇹🇭"},uk:{name:"Українська",flag:"🇺🇦"},vi:{name:"Tiếng Việt",flag:"🇻🇳"},zh:{name:"简体中文",flag:"🇨🇳"}},md=({variant:e="compact",className:t=""})=>{const{i18n:r,t:a}=fr.useTranslation("languageSelector"),[o,s]=b.useState(r.language),i=b.useMemo(()=>r.options.supportedLngs?r.options.supportedLngs.filter(u=>u!=="cimode").map(u=>({code:u,name:Va[u]?.name||u.toUpperCase(),flag:Va[u]?.flag||"🌐"})).sort((u,g)=>u.name.localeCompare(g.name)):[],[r.options.supportedLngs]),l=i.find(u=>u.code===o||u.code.toLowerCase()===o.toLowerCase());b.useEffect(()=>{s(r.language)},[r.language]);const c=u=>{localStorage.setItem("language",u),r.changeLanguage(u).then(()=>{s(r.language),setTimeout(()=>{window.dispatchEvent(new Event("languagechange"))},100)}).catch(()=>{})};return e==="compact"?n.jsx("div",{className:`relative ${t}`,children:n.jsxs(Lt,{value:o,onValueChange:c,children:[n.jsx(Ze,{className:"h-10 w-auto px-3 border-0 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-0 focus:ring-offset-0",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:l?.flag}),n.jsx("span",{className:"hidden sm:block text-sm font-medium text-gray-700 dark:text-gray-300",children:l?.name})]})}),n.jsx(Je,{children:i.map(u=>n.jsx(Re,{value:u.code,className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:u.flag}),n.jsx("span",{className:"text-sm",children:u.name})]})},u.code))})]})}):n.jsxs("div",{className:`space-y-2 ${t}`,children:[n.jsxs("label",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 flex items-center space-x-2",children:[n.jsx(A.LanguageIcon,{className:"h-4 w-4 text-gray-500 dark:text-gray-400"}),n.jsx("span",{children:a("language","Language")})]}),n.jsxs(Lt,{value:o,onValueChange:c,children:[n.jsx(Ze,{children:n.jsx($r,{placeholder:a("selectLanguage","Select language")})}),n.jsx(Je,{children:i.map(u=>n.jsx(Re,{value:u.code,className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:u.flag}),n.jsx("span",{children:u.name})]})},u.code))})]}),n.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:a("selectPreferredLanguage","Select your preferred language")})]})},fd=({items:e,type:t="ordered",variant:r="default",className:a,itemClassName:o})=>{const s=()=>{const u="space-y-2",g={ordered:t==="ordered"?"list-decimal":"",unordered:t==="unordered"?"list-disc":""},m={default:"list-inside",enhanced:"list-inside space-y-3",minimal:"list-none space-y-1"};return w(u,g[t],m[r])},i=u=>{const g="text-gray-600 dark:text-gray-400";return r==="enhanced"?w(g,"relative pl-8 pb-2 border-l-2 border-gray-200 dark:border-gray-700",u===e.length-1&&"border-l-transparent"):r==="minimal"?w(g,"flex items-start"):g},l=u=>r==="enhanced"&&t==="ordered"?n.jsx("div",{className:"absolute -left-4 -top-1 w-6 h-6 bg-blue-600 text-white rounded-full flex items-center justify-center text-sm font-medium",children:u+1}):null,c=(u,g)=>{const m=typeof u=="object",h=m?u.content:u,f=m?u.subItems:void 0;return n.jsxs("li",{className:w(i(g),o),children:[l(g),r==="minimal"&&t==="ordered"&&n.jsx("span",{className:"inline-block w-6 h-6 bg-blue-100 dark:bg-blue-900/20 text-blue-600 dark:text-blue-400 rounded-full text-sm font-medium text-center leading-6 mr-3 flex-shrink-0",children:g+1}),r==="minimal"&&t==="unordered"&&n.jsx("span",{className:"inline-block w-2 h-2 bg-blue-600 rounded-full mt-2 mr-3 flex-shrink-0"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{children:h}),f&&f.length>0&&n.jsx("ul",{className:"mt-2 ml-4 space-y-1 list-disc list-inside text-sm text-gray-500 dark:text-gray-500",children:f.map((p,x)=>n.jsx("li",{children:p},x))})]})]},g)};return n.jsx("ul",{className:w(s(),a),children:e.map(c)})};class hd extends b.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught an error:",t,r),this.props.onError?.(t,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:n.jsxs("div",{style:{padding:"20px",border:"1px solid red",margin:"10px"},children:[n.jsx("h2",{children:"Something went wrong"}),n.jsxs("p",{children:["Error: ",this.state.error?.message||"Unknown error"]}),n.jsx("button",{onClick:()=>this.setState({hasError:!1}),children:"Try again"})]}):this.props.children}}class pd extends b.Component{constructor(t){super(t),this.retryTimer=null,this.sendErrorToMonitoring=(r,a)=>{try{typeof window<"u"&&window.Sentry&&window.Sentry?.captureException(r,{contexts:{react:{componentStack:a.componentStack}},tags:{errorBoundary:!0,componentName:this.props.componentName||"unknown",lazyLoading:!0}}),typeof window<"u"&&window.gtag&&window.gtag?.("event","exception",{description:r.message,fatal:!1,custom_map:{component:this.props.componentName||"unknown"}})}catch{}},this.handleRetry=()=>{const{maxRetries:r=3,retryDelay:a=1e3}=this.props,{retryCount:o}=this.state;if(o>=r)return;this.setState({isRetrying:!0}),this.retryTimer&&clearTimeout(this.retryTimer);const s=a*Math.pow(2,o);this.retryTimer=setTimeout(()=>{this.setState({hasError:!1,error:null,errorInfo:null,retryCount:o+1,isRetrying:!1})},s)},this.handleReload=()=>{window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null,retryCount:0,isRetrying:!1,lastErrorTime:0}}static getDerivedStateFromError(t){return{hasError:!0,error:t,lastErrorTime:Date.now()}}componentDidCatch(t,r){const{onError:a,componentName:o}=this.props;this.setState({error:t,errorInfo:r}),console.error(`LazyErrorBoundary caught an error in ${o||"Unknown Component"}:`,t,r),a?.(t,r),this.sendErrorToMonitoring(t,r)}componentWillUnmount(){this.retryTimer&&clearTimeout(this.retryTimer)}render(){const{children:t,fallback:r,componentName:a,showRetryButton:o=!0,maxRetries:s=3}=this.props,{hasError:i,error:l,isRetrying:c,retryCount:u}=this.state;return i&&l?r||n.jsx("div",{className:"lazy-error-boundary error-boundary-container",children:n.jsxs("div",{className:"error-content",children:[n.jsx("div",{className:"error-icon",children:"⚠️"}),n.jsxs("h3",{className:"error-title",children:["Something went wrong loading ",a||"this component"]}),n.jsxs("div",{className:"error-details",children:[n.jsx("p",{className:"error-message",children:l.message}),process.env.NODE_ENV==="development"&&n.jsxs("details",{className:"error-stack",children:[n.jsx("summary",{children:"Error Details (Development)"}),n.jsx("pre",{children:l.stack})]})]}),n.jsxs("div",{className:"error-actions",children:[o&&u<s&&n.jsx("button",{onClick:this.handleRetry,disabled:c,className:"retry-button",children:c?"Retrying...":`Retry (${u}/${s})`}),u>=s&&n.jsx("button",{onClick:this.handleReload,className:"reload-button",children:"Reload Page"})]}),n.jsxs("div",{className:"error-help",children:[n.jsx("p",{children:"This might be a temporary issue. Try refreshing the page."}),navigator.onLine===!1&&n.jsx("p",{className:"offline-notice",children:"You appear to be offline. Check your connection and try again."})]})]})}):t}}const yd=({children:e})=>n.jsx(n.Fragment,{children:e}),bd=({children:e})=>n.jsx(n.Fragment,{children:e}),xd=(e,t,r)=>{const a=b.memo(e,t);return r&&(a.displayName=`Memo(${r})`),process.env.NODE_ENV==="development"?o=>(b.useMemo(()=>{let i=0;return()=>++i},[])(),n.jsx(a,{...o})):a},vd=(e,t)=>b.memo(e,(r,a)=>t.every(o=>r[o]===a[o])),wd=b.memo(({children:e,compute:t,deps:r})=>{const a=b.useRef(r),o=b.useRef(t),s=b.useRef(void 0),i=b.useMemo(()=>{const l=r.length!==a.current.length||r.some((u,g)=>u!==a.current[g]),c=t!==o.current;if(l||c||s.current===void 0){let u;return process.env.NODE_ENV==="development"?(performance.now(),u=t(),performance.now()):u=t(),a.current=r,o.current=t,s.current=u,u}return s.current},[t,r]);return n.jsx(n.Fragment,{children:e(i)})}),kd=b.memo(({item:e,index:t,style:r,renderItem:a})=>n.jsx("div",{style:r,children:a(e,t)}),(e,t)=>e.index===t.index&&e.item===t.item&&e.style.height===t.style.height&&e.style.top===t.style.top),Cd=b.memo(({condition:e,children:t,fallback:r=null})=>e?n.jsx(n.Fragment,{children:t}):n.jsx(n.Fragment,{children:r})),Sd=({children:e,threshold:t=.1,rootMargin:r="50px",fallback:a=null})=>{const[o,s]=b.useState(!1),i=b.useRef(null);return b.useEffect(()=>{const l=new IntersectionObserver(([c])=>{c.isIntersecting&&(s(!0),l.disconnect())},{threshold:t,rootMargin:r});return i.current&&l.observe(i.current),()=>l.disconnect()},[t,r]),n.jsx("div",{ref:i,children:o?e:a})},Nd=({children:e,maxRenderTime:t=16,onSlowRender:r})=>{const a=b.useRef(0);return b.useLayoutEffect(()=>{a.current=performance.now()}),b.useEffect(()=>{const o=performance.now()-a.current;o>t&&r?.(o)}),n.jsx(n.Fragment,{children:e})},Ed=({children:e,batchSize:t=5,delay:r=0})=>{const[a,o]=b.useState(t);return b.useEffect(()=>{if(a<e.length){const s=setTimeout(()=>{o(i=>Math.min(i+t,e.length))},r);return()=>clearTimeout(s)}},[a,e.length,t,r]),n.jsx(n.Fragment,{children:e.slice(0,a)})},Ad=({src:e,alt:t,placeholder:r,lowQualitySrc:a,aspectRatio:o="16/9",eager:s=!1,className:i="",...l})=>{const[c,u]=b.useState(!1),[g,m]=b.useState(s),[h,f]=b.useState(!1),p=b.useRef(null),x=b.useRef(null);b.useEffect(()=>{if(s){m(!0);return}return x.current=new IntersectionObserver(S=>{S.forEach(N=>{N.isIntersecting&&(m(!0),x.current&&p.current&&x.current.unobserve(p.current))})},{rootMargin:"50px",threshold:.01}),p.current&&x.current.observe(p.current),()=>{x.current&&x.current.disconnect()}},[s]);const k=()=>{u(!0)},C=()=>{f(!0)};return n.jsxs("div",{className:`relative overflow-hidden ${i}`,style:{aspectRatio:o},children:[a&&!c&&n.jsx("img",{src:a,alt:"",className:"absolute inset-0 w-full h-full object-cover blur-sm","aria-hidden":"true"}),!a&&!c&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 dark:bg-gray-700 animate-pulse","aria-hidden":"true"}),g&&!h&&n.jsx("img",{ref:p,src:e,alt:t,onLoad:k,onError:C,className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-500 ${c?"opacity-100":"opacity-0"}`,loading:s?"eager":"lazy",...l}),h&&n.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-100 dark:bg-gray-800",children:n.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400",children:[n.jsx("svg",{className:"mx-auto h-12 w-12 mb-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),n.jsx("p",{className:"text-sm",children:"Failed to load image"})]})})]})},Pd=({title:e,description:t,primaryButton:r,secondaryButton:a,gradient:o={from:"blue-600",to:"purple-600"},textColor:s="light",className:i="",size:l="lg"})=>{const u=(()=>{const x=o.via?`${o.from}-${o.via}-${o.to}`:`${o.from}-${o.to}`;return{"blue-600-purple-600":"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700","orange-900-red-900":"bg-gradient-to-r from-orange-600 to-red-600 dark:from-orange-700 dark:to-red-700","green-600-blue-600":"bg-gradient-to-r from-green-600 to-blue-600 dark:from-green-700 dark:to-blue-700","purple-600-pink-600":"bg-gradient-to-r from-purple-600 to-pink-600 dark:from-purple-700 dark:to-pink-700"}[x]||"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700"})(),g=s==="light"?"text-white":"text-gray-900 dark:text-gray-100",m={sm:"py-12",md:"py-16",lg:"py-20"},h={sm:"text-2xl md:text-3xl",md:"text-3xl md:text-4xl",lg:"text-4xl md:text-5xl"},f={sm:"text-base md:text-lg",md:"text-lg md:text-xl",lg:"text-xl md:text-2xl"},p=(x,k=!1)=>{const C=()=>x.variant==="primary"||k?"gradient":(x.variant==="secondary","outline"),S=n.jsx(de,{variant:C(),size:"lg",className:k?"":"bg-white/10 hover:bg-white/20 backdrop-blur-sm border-white/30",children:x.label});return x.external?n.jsx("a",{href:x.href,target:"_blank",rel:"noopener noreferrer",children:S}):n.jsx(Ke.Link,{to:x.href,children:S})};return n.jsxs("section",{className:`${u} ${m[l]} relative overflow-hidden ${i}`,children:[n.jsx("div",{className:"absolute inset-0 bg-black/20"}),n.jsxs("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 w-full h-full",children:[n.jsx("div",{className:"absolute top-10 left-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"}),n.jsx("div",{className:"absolute bottom-10 right-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"})]}),n.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h2",{className:`${h[l]} font-bold ${g} mb-6`,children:e}),n.jsx("p",{className:`${f[l]} ${g}/90 mb-8 max-w-2xl mx-auto`,children:t}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[p(r,!0),a&&p(a,!1)]})]})]})},Td=({children:e,backgroundClassName:t="",contentClassName:r=""})=>n.jsx("div",{className:t,children:n.jsx("div",{className:r,children:e})}),Id=({title:e,description:t})=>n.jsxs("div",{className:"mb-8",children:[n.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:e}),t&&n.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:t})]}),Ld=({isSelected:e,onClick:t,icon:r,label:a,description:o,className:s=""})=>n.jsxs("div",{onClick:t,className:`relative flex items-start p-4 cursor-pointer transition-all border-b border-gray-200 dark:border-gray-700 last:border-b-0 group ${s}`,children:[e&&n.jsx("div",{className:"absolute inset-1 bg-blue-500/10 dark:bg-blue-400/10 rounded-lg pointer-events-none"}),n.jsxs("div",{className:"relative z-10 flex items-start w-full",children:[r&&n.jsx(r,{className:`h-5 w-5 mt-0.5 mr-3 flex-shrink-0 transition-colors ${e?"text-blue-600 dark:text-blue-400":"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-300"}`}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:`font-medium transition-colors ${e?"text-blue-600 dark:text-blue-400":"text-gray-900 dark:text-gray-100 group-hover:text-gray-700 dark:group-hover:text-gray-300"}`,children:a}),o&&n.jsx("div",{className:`text-xs mt-0.5 transition-colors ${e?"text-blue-500 dark:text-blue-300":"text-gray-500 dark:text-gray-400"}`,children:o})]})]})]}),$d=({masterTitle:e,masterSubtitle:t,backButtonText:r,masterContent:a,detailContent:o,detailTitle:s,mobileView:i="navigation",onBackToNavigation:l,masterClassName:c="",detailClassName:u="",detailTitleClassName:g="",masterWidth:m=320,stickyMaster:h=!0,stickyTopOffset:f=96,desktopGap:p=32,showMasterBackground:x=!0,enableAnimations:k=!0,animationDuration:C=300,animationRef:S})=>{const N=`gap-${Math.round(p/4)}`||"gap-8",P=U=>U?U.split("-")[0].trim():"Back",E=r?P(r):e?P(e):"Back",[L,T]=b.useState(!1),[D,z]=b.useState("auto"),M=b.useRef(null),W=b.useRef(null);b.useEffect(()=>(S&&(S.current={triggerTransition:U=>{if(!k){U();return}if(M.current){const _=M.current.scrollHeight;z(_)}T(!0),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{U(),setTimeout(()=>{if(M.current){const _=M.current.scrollHeight;z(_),setTimeout(()=>{z("auto"),T(!1)},C)}},50)},C/2)}}),()=>{W.current&&clearTimeout(W.current)}),[k,C,S]);const V=k?{height:D==="auto"?"auto":`${D}px`,transition:`height ${C}ms cubic-bezier(0.4, 0, 0.2, 1)`,width:"100%",maxWidth:"100%"}:{width:"100%",maxWidth:"100%"},B=k?`${L?"opacity-0 transform translate-y-2":"opacity-100 transform translate-y-0"}`:"",j=k?{transition:`opacity ${C}ms ease-in-out, transform ${C}ms ease-in-out`}:{};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`md:hidden ${i==="navigation"?"block":"hidden"} flex-1`,children:n.jsxs("div",{className:x?"bg-white dark:bg-gray-800 p-6":"p-6",children:[e&&n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:t})]}),n.jsx("div",{className:c,children:a})]})}),n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[n.jsxs("div",{className:`md:hidden ${i==="content"?"block":"hidden"}`,children:[i==="content"&&l&&n.jsxs("button",{onClick:l,className:"mb-4 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md text-sm font-medium text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",children:["← ",E]}),n.jsx("div",{ref:M,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${u}`,style:V,children:n.jsxs("div",{className:B,style:j,children:[s&&n.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${g}`,children:s}),o]})})]}),n.jsxs("div",{className:`hidden md:flex min-h-full ${N}`,style:{width:"100%"},children:[n.jsx("aside",{className:"flex-shrink-0",style:{width:`${m}px`,minWidth:`${m}px`},children:n.jsxs("div",{className:h?"sticky":"",style:h?{top:`${f}px`}:void 0,children:[e&&n.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:t}),n.jsx("div",{className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 ${h?"max-h-[calc(100vh-200px)] overflow-y-auto":""} ${c}`,children:a})]})}),n.jsx("div",{className:"flex-1 min-w-0",style:{width:`calc(100% - ${m+p}px)`},children:n.jsx("div",{ref:M,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${u}`,style:V,children:n.jsxs("div",{className:B,style:j,children:[s&&n.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${g}`,children:s}),o]})})})]})]})]})},Od=({children:e})=>(b.useEffect(()=>{const t=()=>{[].forEach(m=>{const h=document.createElement("link");h.rel="preload",h.href=m.href,h.as=m.as,m.type&&(h.type=m.type),m.crossorigin&&(h.crossOrigin=""),document.head.appendChild(h)})},r=()=>{document.querySelectorAll('img[data-priority="high"]').forEach(h=>{h.fetchPriority="high"});const m=document.querySelector("[data-hero]");if(m){const h=m.getAttribute("data-bg-image");if(h){const f=document.createElement("link");f.rel="preload",f.href=h,f.as="image",document.head.appendChild(f)}}},a=()=>{document.querySelectorAll("img:not([width]):not([height])").forEach(h=>{const f=h;f.naturalWidth&&f.naturalHeight&&(f.width=f.naturalWidth,f.height=f.naturalHeight)}),document.querySelectorAll("[data-dynamic]").forEach(h=>{h.getAttribute("style")?.includes("min-height")||(h.style.minHeight="200px")})},o=()=>{const g=()=>{document.querySelectorAll("script[data-defer]").forEach(f=>{f.setAttribute("defer","")})};"requestIdleCallback"in window?requestIdleCallback(()=>{g()}):setTimeout(g,1),(()=>{["scroll","touchstart","touchmove","wheel"].forEach(f=>{document.addEventListener(f,()=>{},{passive:!0})})})()},s=()=>{},i=()=>{[{rel:"dns-prefetch",href:"//fonts.googleapis.com"},{rel:"dns-prefetch",href:"//api.0xmail.box"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:!0},{rel:"preconnect",href:"https://api.0xmail.box"}].forEach(m=>{const h=document.createElement("link");h.rel=m.rel,h.href=m.href,m.crossorigin&&(h.crossOrigin=""),document.head.appendChild(h)})},l=()=>{if(document.querySelectorAll("img[data-lazy]").forEach(m=>{m.loading="lazy"}),"IntersectionObserver"in window){const m=new IntersectionObserver(f=>{f.forEach(p=>{if(p.isIntersecting){const x=p.target;x.dataset.src&&(x.src=x.dataset.src,x.removeAttribute("data-src")),m.unobserve(x)}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(f=>m.observe(f))}},c=()=>{[{name:"ai-content-type",content:"web3-email-platform"},{name:"ai-primary-function",content:"wallet-based-email"},{name:"ai-supported-chains",content:"ethereum,solana,polygon,arbitrum,optimism"},{name:"ai-complexity-level",content:"beginner-to-advanced"},{name:"ai-target-users",content:"web3-users,crypto-enthusiasts,developers"},{name:"machine-readable",content:"true"},{name:"structured-data",content:"json-ld"},{name:"content-category",content:"technology,blockchain,communication"},{name:"interaction-model",content:"wallet-authentication"}].forEach(({name:f,content:p})=>{if(!document.querySelector(`meta[name="${f}"]`)){const x=document.createElement("meta");x.name=f,x.content=p,document.head.appendChild(x)}});const m={"@context":"https://schema.org","@type":"WebApplication",name:"0xmail.box",description:"Web3 email platform using blockchain wallet authentication",url:"https://0xmail.box",applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["Wallet-based authentication","ENS domain email support","SNS domain email support","Multi-chain compatibility","Smart contract integration","Web2/Web3 bridge"],audience:{"@type":"Audience",audienceType:"Web3 Users"}},h=document.createElement("script");h.type="application/ld+json",h.textContent=JSON.stringify(m),document.head.appendChild(h)},u=()=>{document.querySelectorAll('link[rel="stylesheet"][data-non-critical]').forEach(m=>{const h=m.cloneNode(!0);h.rel="preload",h.as="style",h.onload=()=>{h.onload=null,h.rel="stylesheet"},document.head.appendChild(h),m.remove()})};return t(),r(),a(),o(),i(),l(),c(),u(),setTimeout(s,2e3),()=>{}},[]),n.jsx(n.Fragment,{children:e})),Md=()=>(b.useEffect(()=>{if(typeof window>"u"||typeof document>"u"||!document.documentElement)return;const e=()=>{if("IntersectionObserver"in window){const l=new IntersectionObserver(c=>{c.forEach(u=>{if(u.isIntersecting){const g=u.target;g.dataset.src&&(g.src=g.dataset.src,g.removeAttribute("data-src"),l.unobserve(g))}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(c=>{l.observe(c)})}const o=()=>{["/connect","/mail","/settings"].forEach(c=>{const u=document.createElement("link");u.rel="prefetch",u.href=c,document.head.appendChild(u)})},s=()=>{if(!document.querySelector("script[data-wallet-detection]")){const l=document.createElement("script");l.dataset.walletDetection="true",l.innerHTML='(function() { window.walletPreload = { hasMetaMask: typeof window.ethereum !== "undefined", hasPhantom: typeof window.solana !== "undefined", hasWalletConnect: true }; })();',document.head.appendChild(l)}},i=()=>{document.querySelectorAll("img[data-hero]").forEach(l=>{const c=l;c.loading="eager","fetchPriority"in c&&(c.fetchPriority="high")}),document.querySelectorAll('img[data-priority="low"]').forEach(l=>{const c=l;c.loading="lazy","fetchPriority"in c&&(c.fetchPriority="low")})};requestIdleCallback(()=>{o(),s(),i()},{timeout:2e3})},t=()=>{if("PerformanceObserver"in window){const o=new PerformanceObserver(i=>{const l=i.getEntries(),c=l[l.length-1];c&&c.startTime>2500&&(document.documentElement.style.setProperty("--animation-duration","0s"),localStorage.setItem("reduce-image-quality","true"))});try{o.observe({entryTypes:["largest-contentful-paint"]})}catch{}const s=new PerformanceObserver(i=>{let l=0;for(const c of i.getEntries())c.hadRecentInput||(l+=c.value);l>.1&&document.querySelectorAll("img:not([width]):not([height])").forEach(c=>{const u=c;u.style.aspectRatio="16/9"})});try{s.observe({entryTypes:["layout-shift"]})}catch{}}},r=()=>{if("connection"in navigator&&typeof document<"u"&&document.documentElement){const o=navigator.connection;if(o){const s=o.effectiveType;s==="slow-2g"||s==="2g"?(document.documentElement.classList.add("slow-connection"),document.querySelectorAll('link[rel="prefetch"]').forEach(i=>{i.getAttribute("data-critical")||i.remove()}),localStorage.setItem("use-low-quality-images","true")):s==="3g"?document.documentElement.classList.add("moderate-connection"):document.documentElement.classList.add("fast-connection")}}};return(()=>{e(),t(),r()})(),()=>{if("PerformanceObserver"in window)try{PerformanceObserver.supportedEntryTypes.forEach(()=>{})}catch{}}},[]),null),Dd=({children:e})=>n.jsx(n.Fragment,{children:e}),zd={user:{duration:300*1e3,maxSize:100,staleWhileRevalidate:!0},mailboxes:{duration:120*1e3,maxSize:50,staleWhileRevalidate:!0},addresses:{duration:600*1e3,maxSize:50,staleWhileRevalidate:!0},messages:{duration:30*1e3,maxSize:200,staleWhileRevalidate:!0},messageDetails:{duration:120*1e3,maxSize:100,staleWhileRevalidate:!1},messageCount:{duration:10*1e3,maxSize:20,staleWhileRevalidate:!0}};class Wd{constructor(){this.cache=new Map}set(t,r,a){if(this.cache.size>=a.maxSize){const o=this.cache.keys().next().value;o&&this.cache.delete(o)}this.cache.set(t,{data:r,timestamp:Date.now(),isStale:!1})}get(t,r){const a=this.cache.get(t);if(!a)return null;const s=Date.now()-a.timestamp>r.duration;return s&&!r.staleWhileRevalidate?(this.cache.delete(t),null):{data:a.data,isStale:s}}invalidate(t){for(const r of this.cache.keys())r.includes(t)&&this.cache.delete(r)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,keys:Array.from(this.cache.keys()),memory:this.estimateMemoryUsage()}}estimateMemoryUsage(){return Array.from(this.cache.values()).reduce((t,r)=>t+JSON.stringify(r).length*2,0)}}const Pe=new Wd,ve=new Map,Ua=async(e,t,r="messages")=>{const a=zd[r],o=Pe.get(e,a);if(o&&!o.isStale)return o.data;const s=ve.get(e);if(s)return s;if(o&&o.isStale&&a.staleWhileRevalidate){const l=t().then(c=>(Pe.set(e,c,a),ve.delete(e),c)).catch(c=>{throw ve.delete(e),c});return ve.set(e,l),o.data}const i=t().then(l=>(Pe.set(e,l,a),ve.delete(e),l)).catch(l=>{throw ve.delete(e),l});return ve.set(e,i),i};class Bd{constructor(){this.queue=[],this.timer=null,this.batchDelay=10}add(t,r){return new Promise((a,o)=>{this.queue.push({key:t,fetcher:r,resolve:a,reject:o}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.processBatch()},this.batchDelay)})}async processBatch(){const t=[...this.queue];this.queue.length=0,this.timer=null;const r=this.groupRequests(t);for(const a of r)await Promise.allSettled(a.map(async o=>{try{const s=await o.fetcher();o.resolve(s)}catch(s){o.reject(s)}}))}groupRequests(t){const r=[];for(let o=0;o<t.length;o+=5)r.push(t.slice(o,o+5));return r}}const jd=new Bd;class Fd{constructor(t,r={}){this.requestInterceptors=[],this.responseInterceptors=[],this.baseURL=t,this.defaultHeaders=r}addRequestInterceptor(t){this.requestInterceptors.push(t)}addResponseInterceptor(t){this.responseInterceptors.push(t)}async request(t,r={},a,o="messages"){const s=`${this.baseURL}${t}`,i=a||`${r.method||"GET"}:${s}`,l=async()=>{let c={...r,headers:{...this.defaultHeaders,...r.headers}};for(const g of this.requestInterceptors)c=g(c);let u=await fetch(s,c);for(const g of this.responseInterceptors)u=await g(u);if(!u.ok)throw new Error(`API Error: ${u.status} ${u.statusText}`);return u.json()};return r.method==="GET"&&this.shouldBatch(t)?jd.add(i,l):Ua(i,l,o)}shouldBatch(t){return t.includes("/messages/")&&!t.includes("/messages?")}async get(t,r){return this.request(t,{method:"GET"},void 0,r)}async post(t,r){return this.request(t,{method:"POST",body:JSON.stringify(r)})}async put(t,r){return this.request(t,{method:"PUT",body:JSON.stringify(r)})}async delete(t){return this.request(t,{method:"DELETE"})}}const _d=async(e,t=3,r=1e3)=>{let a;for(let o=0;o<=t;o++)try{return await e()}catch(s){if(a=s,o===t)throw a;const i=r*Math.pow(2,o)+Math.random()*1e3;await new Promise(l=>setTimeout(l,i))}throw a};class Hd{constructor(){this.abortController=new AbortController}async request(t,r={}){const a=await fetch(t,{...r,signal:this.abortController.signal});if(!a.ok)throw new Error(`HTTP ${a.status}: ${a.statusText}`);return a.json()}cancel(){this.abortController.abort()}}const Vd={invalidate:e=>Pe.invalidate(e),clear:()=>Pe.clear(),getStats:()=>Pe.getStats(),warmUp:async e=>{await Promise.allSettled(e.map(t=>t()))},prefetch:async e=>{"requestIdleCallback"in window?window.requestIdleCallback(async()=>{await Promise.allSettled(e.map(t=>t()))}):setTimeout(async()=>{await Promise.allSettled(e.map(t=>t()))},100)}};function qa(){if(typeof window>"u")return!1;const e=window.navigator.userAgent.toLowerCase();return["metamask","trustwallet","coinbase","rainbow","phantom","solflare","exodus","ledger","binance","okx"].some(r=>e.includes(r))}function Ga(){return typeof window>"u"?!1:window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"}function Ka(){if(typeof window>"u")return!1;const e=window.location.hostname;return/^\d+\.\d+\.\d+\.\d+$/.test(e)}function Ya(){return Ga()?"localhost":qa()?"wallet-browser":Ka()?"network":"production"}function Ud(){const e=Ya();return e==="localhost"||e==="wallet-browser"}function qd(e){}function Qa(){return typeof window<"u"}function Gd(){return typeof window<"u"}function Kd(e,t){if(Qa())e();else return t}const Xa={"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'","'unsafe-eval'","https://fonts.googleapis.com","https://www.googletagmanager.com","https://www.google-analytics.com"],"style-src":["'self'","'unsafe-inline'","https://fonts.googleapis.com","https://fonts.gstatic.com"],"font-src":["'self'","https://fonts.gstatic.com","data:"],"img-src":["'self'","data:","https:","blob:"],"connect-src":["'self'","https://api.0xmail.box","https://0xmail.box","https://*.walletconnect.com","https://*.walletconnect.org","https://registry.walletconnect.com","https://relay.walletconnect.com","wss://*.walletconnect.com","wss://*.walletconnect.org","https://keys.coinbase.com","https://api.coinbase.com","https://www.walletlink.org","https://mainnet.infura.io","https://polygon-rpc.com","https://rpc.ankr.com","https://cloudflare-eth.com","https://eth-mainnet.alchemyapi.io","https://api.phantom.app","https://solana-api.projectserum.com","https://api.mainnet-beta.solana.com","https://api.devnet.solana.com","wss://api.phantom.app","wss://api.devnet.solana.com","wss://api.mainnet-beta.solana.com","https://bridge.arbitrum.io","https://polygon-mainnet.infura.io","https://optimism-mainnet.infura.io"],"frame-src":["'self'","https://verify.walletconnect.com","https://verify.walletconnect.org"],"worker-src":["'self'","blob:"],"child-src":["'self'","https://verify.walletconnect.com"],"object-src":["'none'"],"base-uri":["'self'"],"form-action":["'self'"]},Za=()=>Object.entries(Xa).map(([e,t])=>`${e} ${t.join(" ")}`).join("; "),Yd={"X-Frame-Options":"DENY","X-Content-Type-Options":"nosniff","X-XSS-Protection":"1; mode=block","Referrer-Policy":"strict-origin-when-cross-origin","Permissions-Policy":"camera=(), microphone=(), geolocation=(), interest-cohort=()","Strict-Transport-Security":"max-age=31536000; includeSubDomains; preload","Cross-Origin-Embedder-Policy":"credentialless","Cross-Origin-Opener-Policy":"same-origin-allow-popups","Cross-Origin-Resource-Policy":"cross-origin","Content-Security-Policy":Za()},Qd={fonts:"public, max-age=31536000, immutable",images:"public, max-age=31536000, immutable",js:"public, max-age=31536000, immutable",css:"public, max-age=31536000, immutable",serviceWorker:"public, max-age=0, must-revalidate",manifest:"public, max-age=86400",api:"no-cache, no-store, must-revalidate"},Xd=()=>{typeof window<"u"&&document.addEventListener("securitypolicyviolation",()=>{})},Zd={walletConnections:"Always verify wallet signatures and never trust client-side data",rpcEndpoints:"Use reputable RPC providers and consider rate limiting",contractInteractions:"Validate all smart contract interactions on the backend",userInput:"Sanitize all user inputs, especially wallet addresses and transaction data",privateKeys:"Never log, store, or transmit private keys - they should remain in wallets only",phishing:"Implement strict CSP to prevent injection of malicious scripts that could steal wallet access"},le=new Map,We=new Map,pt=new Set;let Be="medium",ar=!1;function Jd(){if("connection"in navigator){const r=navigator.connection;r&&(Be=r.effectiveType==="4g"?"fast":r.effectiveType==="3g"?"medium":"slow")}const e=navigator.deviceMemory,t=navigator.hardwareConcurrency;ar=e&&e<4||t&&t<4}Jd();function Rd(e,t,r={}){const{retries:a=3,timeout:o=1e4,fallback:s,preloadCondition:i,cacheStrategy:l="memory",priority:c="medium",onLoad:u,onError:g}=r;if(le.has(t))return le.get(t).component;const m=b.lazy(async()=>{const f=performance.now();if(We.has(t))return We.get(t).then(x=>({default:x}));const p=eu(e,a,o);We.set(t,p.then(x=>x.default));try{const x=await p,k=performance.now()-f;if(l!=="none"){const C={component:x.default,timestamp:Date.now(),loadTime:k};if(le.set(t,C),l==="session")try{sessionStorage.setItem(`lazy_${t}`,JSON.stringify({timestamp:C.timestamp,loadTime:k}))}catch{}}return We.delete(t),u?.(x.default),x}catch(x){throw We.delete(t),g?.(x),x}}),h=f=>{const[p,x]=b.useState(!0);b.useEffect(()=>{if(i&&!le.has(t)&&i()&&!pt.has(t)){pt.add(t);const S=tu(c,Be);setTimeout(()=>{e().catch(()=>{})},S)}},[]);const k=s||n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsxs("span",{className:"ml-2 text-sm text-gray-600",children:["Loading ",t.replace(/([A-Z])/g," $1").trim(),"..."]})]});return!p&&ar&&Be==="slow"?n.jsx("div",{className:"lazy-placeholder",children:n.jsxs("button",{onClick:()=>x(!0),className:"load-component-btn",children:["Load ",t]})}):n.jsx(b.Suspense,{fallback:k,children:n.jsx(m,{...f})})};return h.displayName=`AdvancedLazy(${t})`,h}async function eu(e,t,r){let a;for(let o=0;o<t;o++)try{const s=new Promise((l,c)=>{setTimeout(()=>c(new Error("Load timeout")),r)});return await Promise.race([e(),s])}catch(s){if(a=s,o<t-1){const i=Math.pow(2,o)*1e3,l=Math.random()*1e3;await new Promise(c=>setTimeout(c,i+l))}}throw a}function tu(e,t){const r={critical:0,high:500,medium:2e3,low:5e3},a={fast:.5,medium:1,slow:2},o=r[e]||2e3,s=a[t]||1;return o*s}const Ve=class Ve{static registerRoute(t,r){this.routeMap.set(t,r),this.routeUsageStats.set(t,0)}static setCurrentRoute(t){this.currentRoute=t;const r=this.routeUsageStats.get(t)||0;this.routeUsageStats.set(t,r+1),this.preloadLikelyRoutes(t)}static preloadLikelyRoutes(t){this.getRouteTransitionProbability(t).forEach(({route:a,probability:o})=>{o>.3&&!le.has(a)&&setTimeout(()=>{this.routeMap.get(a)},Be==="fast"?1e3:3e3)})}static getRouteTransitionProbability(t){const r=[];switch(t){case"/":r.push({route:"/connect",probability:.7},{route:"/about",probability:.2},{route:"/document",probability:.1});break;case"/connect":r.push({route:"/mail",probability:.8},{route:"/settings",probability:.1});break;case"/mail":r.push({route:"/compose",probability:.4},{route:"/settings",probability:.2});break;default:r.push({route:"/",probability:.1})}return r}static getStats(){return{routeCount:this.routeMap.size,cacheSize:le.size,currentRoute:this.currentRoute,usageStats:Object.fromEntries(this.routeUsageStats)}}};Ve.routeMap=new Map,Ve.routeUsageStats=new Map,Ve.currentRoute="";let nr=Ve;const ru=({src:e,alt:t,className:r,placeholder:a,priority:o="medium"})=>{const[s,i]=b.useState(!1),[l,c]=b.useState(!1),u=b.useRef(null);b.useEffect(()=>{if(!u.current)return;if(o==="high"){c(!0);return}const m=new IntersectionObserver(([h])=>{h.isIntersecting&&(c(!0),m.unobserve(h.target))},{rootMargin:o==="low"?"100px":"200px",threshold:.1});return m.observe(u.current),()=>m.disconnect()},[o]);const g=()=>{i(!0)};return n.jsxs("div",{className:`lazy-image-container ${r}`,children:[n.jsx("img",{ref:u,src:l?e:a||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB2aWV3Qm94PSIwIDAgMSAxIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNGM0Y0RjYiLz48L3N2Zz4=",alt:t,className:`transition-opacity duration-300 ${s?"opacity-100":"opacity-0"}`,onLoad:g,loading:o==="high"?"eager":"lazy",fetchPriority:o==="high"?"high":"low"}),!s&&l&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse rounded"})]})};function au(){le.clear(),pt.clear()}function nu(){return{cachedComponents:le.size,preloadQueue:pt.size,networkSpeed:Be,isLowEndDevice:ar,cacheEntries:Array.from(le.entries()).map(([e,t])=>({name:e,loadTime:t.loadTime,age:Date.now()-t.timestamp}))}}const ou=({message:e})=>n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),su=e=>{if(typeof e=="function"||typeof e=="object")return e;switch(e){case"minimal":return()=>n.jsx("div",{className:"flex justify-center items-center p-4",children:"Loading..."});case"skeleton":return()=>n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]});case"default":default:return()=>n.jsx(ou,{message:"Loading component..."})}},Ja=(e,t="default",r=3)=>{const a=b.lazy(async()=>{let s=null;for(let i=0;i<r;i++)try{return await e()}catch(l){s=l,i<r-1&&await new Promise(c=>setTimeout(c,Math.pow(2,i)*1e3))}throw s}),o=su(t);return s=>n.jsx(b.Suspense,{fallback:n.jsx(o,{}),children:n.jsx(a,{...s})})},iu=async e=>{try{await e()}catch{}},lu=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[r]=Ja(a,"skeleton")}),t},cu=e=>e,Ra={critical:["/","/connect","/mail"],secondary:["/settings","/compose","/points"],optional:["/document","/about","/terms","/privacy"]},Ue=class Ue{static add(t,r){this.preloadedComponents.has(t)||(this.preloadQueue.push({name:t,loader:r}),this.processQueue())}static async processQueue(){this.isPreloading||this.preloadQueue.length===0||(this.isPreloading=!0,"requestIdleCallback"in window?window.requestIdleCallback(async()=>{const t=this.preloadQueue.shift();if(t)try{await t.loader(),this.preloadedComponents.add(t.name)}catch{}this.isPreloading=!1,this.processQueue()}):setTimeout(async()=>{const t=this.preloadQueue.shift();if(t)try{await t.loader(),this.preloadedComponents.add(t.name)}catch{}this.isPreloading=!1,this.processQueue()},100))}static isPreloaded(t){return this.preloadedComponents.has(t)}static clear(){this.preloadedComponents.clear(),this.preloadQueue=[],this.isPreloading=!1}};Ue.preloadedComponents=new Set,Ue.preloadQueue=[],Ue.isPreloading=!1;let or=Ue;const du=()=>{"requestIdleCallback"in window&&window.requestIdleCallback(()=>{Ra.secondary.forEach(e=>{})})},en=({message:e})=>n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),je=new Map;function uu(e,t){const{condition:r,fallback:a,retries:o=3,timeout:s=1e4,priority:i="medium",cacheKey:l=`conditional-${Math.random()}`}=t,c=u=>{const[g,m]=b.useState(!1),[h,f]=b.useState(null);return b.useEffect(()=>{const k=setTimeout(async()=>{const C=je.get(l);if(C&&C.isValid&&Date.now()-C.lastCheck<3e5)try{if(await C.condition()){f(()=>C.component),m(!0);return}}catch{}try{if(await r()){const N=await fu(e,o,s);je.set(l,{component:N.default,condition:r,lastCheck:Date.now(),isValid:!0}),f(()=>N.default),m(!0)}}catch{}},i==="high"?0:i==="medium"?100:500);return()=>clearTimeout(k)},[]),g?h?n.jsx(b.Suspense,{fallback:a||n.jsx(en,{message:"Loading component..."}),children:n.jsx(h,{...u})}):null:a||n.jsx(en,{message:"Checking conditions..."})};return c.displayName=`ConditionalLazy(${l})`,c}const gu={},mu={};async function fu(e,t,r){let a;for(let o=0;o<t;o++)try{const s=new Promise((i,l)=>{setTimeout(()=>l(new Error("Import timeout")),r)});return await Promise.race([e(),s])}catch(s){if(a=s,o<t-1){const i=Math.pow(2,o)*1e3;await new Promise(l=>setTimeout(l,i))}}throw a}function hu(){je.clear()}function pu(){return{cachedComponents:je.size,cacheEntries:Array.from(je.entries()).map(([e,t])=>({key:e,lastCheck:t.lastCheck,isValid:t.isValid,age:Date.now()-t.lastCheck}))}}const tn=[{name:"react-router",path:"/assets/react-router-*.js",size:12,config:{priority:"critical",condition:()=>!0}},{name:"app-core",path:"/assets/app-core-*.js",size:25,config:{priority:"high",condition:()=>window.location.pathname==="/",delay:1e3,onIdle:!0}},{name:"wagmi",path:"/assets/wagmi-*.js",size:15,config:{priority:"high",condition:()=>!!(window.ethereum||localStorage.getItem("walletconnect")),onIdle:!0}},{name:"wc-ethereum",path:"/assets/wc-ethereum-*.js",size:273,config:{priority:"medium",condition:()=>!!window.ethereum,delay:2e3,onHover:!0}},{name:"solana-core",path:"/assets/solana-core-*.js",size:29,config:{priority:"medium",condition:()=>!!(window.solana||window.phantom),delay:1500}},{name:"mail-features",path:"/assets/mail-features-*.js",size:10,config:{priority:"medium",condition:()=>window.location.pathname.includes("/connect")||localStorage.getItem("wallet-connected")==="true",onScroll:20}},{name:"coinbase",path:"/assets/coinbase-*.js",size:75,config:{priority:"low",condition:()=>!!window.ethereum,delay:5e3,onIdle:!0}},{name:"design-system",path:"/assets/design-system-*.js",size:112,config:{priority:"low",condition:()=>window.location.pathname.includes("/internal"),delay:3e3}}];class yu{constructor(){this.preloaded=new Set,this.networkSpeedEstimate="medium",this.isLowEndDevice=!1,this.userActivityScore=0,this.detectNetworkSpeed(),this.detectDeviceCapability(),this.startUserActivityTracking()}detectNetworkSpeed(){if("connection"in navigator){const r=navigator.connection;if(r){const a=r.effectiveType;a==="4g"?this.networkSpeedEstimate="fast":a==="3g"?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}}const t=performance.now();fetch("/favicon.ico",{method:"HEAD"}).then(()=>{const r=performance.now()-t;r<100?this.networkSpeedEstimate="fast":r<300?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}).catch(()=>{this.networkSpeedEstimate="slow"})}detectDeviceCapability(){const t=navigator.deviceMemory,r=navigator.hardwareConcurrency;t&&t<4&&(this.isLowEndDevice=!0),r&&r<4&&(this.isLowEndDevice=!0),"getBattery"in navigator&&navigator.getBattery?.().then(a=>{a.level&&a.level<.2&&(this.isLowEndDevice=!0)})}startUserActivityTracking(){let t;const r=()=>{this.userActivityScore=Math.min(this.userActivityScore+1,100),clearTimeout(t),t=setTimeout(()=>{this.userActivityScore=Math.max(this.userActivityScore-1,0)},5e3)};["click","scroll","keydown","mousemove"].forEach(a=>{document.addEventListener(a,r,{passive:!0})})}shouldPreload(t){return this.networkSpeedEstimate==="slow"&&t.size>50||this.isLowEndDevice&&t.size>30?!1:t.config.condition()}async preloadChunk(t){if(!this.preloaded.has(t.name))try{if(document.querySelectorAll('script[src*="'+t.name+'"]').length===0&&document.querySelectorAll('link[href*="'+t.name+'"]').length>0)return;const a=document.createElement("link");a.rel="modulepreload",a.href=t.path.replace("*",this.getChunkHash(t.name)),a.crossOrigin="","fetchPriority"in a&&(a.fetchPriority=t.config.priority==="critical"?"high":"low"),document.head.appendChild(a),this.preloaded.add(t.name)}catch{}}getChunkHash(t){const r=Array.from(document.querySelectorAll("script[src]"));for(const a of r){const o=a.src;if(o.includes(t)){const s=o.match(new RegExp(`${t}-([A-Za-z0-9_-]+)\\.js`));if(s)return s[1]}}return"unknown"}async schedulePreload(t){const r=t.config;return r.delay&&await new Promise(a=>setTimeout(a,r.delay)),r.onIdle&&"requestIdleCallback"in window?new Promise(a=>{window.requestIdleCallback(()=>{this.preloadChunk(t).then(a)})}):this.preloadChunk(t)}initializePreloading(){tn.sort((r,a)=>{const o={critical:0,high:1,medium:2,low:3};return o[r.config.priority]-o[a.config.priority]}).forEach(r=>{this.shouldPreload(r)&&(r.config.priority==="critical"?this.preloadChunk(r):this.schedulePreload(r),r.config.onHover&&this.setupHoverPreloading(r),r.config.onScroll&&this.setupScrollPreloading(r,r.config.onScroll))}),this.startIntelligentPreloading()}setupHoverPreloading(t){document.querySelectorAll("[data-preload-on-hover]").forEach(a=>{let o=!1;a.addEventListener("mouseenter",()=>{!o&&this.userActivityScore>30&&(this.preloadChunk(t),o=!0)},{passive:!0})})}setupScrollPreloading(t,r){let a=!1;const o=()=>{if(a)return;window.scrollY/(document.body.scrollHeight-window.innerHeight)*100>=r&&(this.preloadChunk(t),a=!0,window.removeEventListener("scroll",o))};window.addEventListener("scroll",o,{passive:!0})}startIntelligentPreloading(){setTimeout(()=>{this.userActivityScore>50&&this.networkSpeedEstimate!=="slow"&&tn.filter(r=>r.config.priority==="medium"&&this.shouldPreload(r)).forEach(r=>{Math.random()>.5&&this.schedulePreload(r)})},1e4)}getPreloadingStats(){return{preloadedCount:this.preloaded.size,networkSpeed:this.networkSpeedEstimate,isLowEndDevice:this.isLowEndDevice,userActivity:this.userActivityScore}}}let Fe=null;function bu(){Fe||(Fe=new yu,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Fe?.initializePreloading()}):Fe.initializePreloading())}function xu(){return Fe?.getPreloadingStats()}function vu(e){const t={"ai-content-type":e.contentType,"ai-primary-topic":e.primaryTopic,"ai-complexity-level":e.complexityLevel,"ai-content-purpose":e.contentPurpose,"ai-industry-vertical":e.industryVertical,"ai-semantic-keywords":e.semanticKeywords.join(","),"ai-target-audience":e.targetAudience.join(","),"ai-technical-tags":e.technicalTags.join(","),"ai-user-intent":e.userIntent.join(","),"ai-conversion-goals":e.conversionGoals.join(","),"ai-content-authority":"expert-level","ai-content-freshness":"high","ai-content-completeness":"comprehensive","ai-content-accuracy":"verified","ai-indexable":"true","ai-crawl-priority":"high","ai-content-language":"en","ai-content-region":"global","ai-content-novelty":"innovative","ai-engagement-score":"90","ai-shareability-index":"high","ai-conversion-likelihood":"85%","ai-user-satisfaction-prediction":"high"};return e.contentType==="governance-page"&&(t["ai-governance-features"]="voting-notifications,multi-sig-coordination,proposal-tracking",t["ai-dao-platforms"]="snapshot,tally,aragon,safe,decentdao",t["ai-participation-boost"]="85%",t["ai-treasury-management"]="enabled"),t}function rn(e){const t={"@context":"https://schema.org","@type":Cu(e.contentType),name:e.primaryTopic,description:`Comprehensive ${e.primaryTopic} resource for ${e.targetAudience.join(", ")}`,about:e.semanticKeywords.map(r=>({"@type":"Thing",name:r})),audience:{"@type":"Audience",audienceType:e.targetAudience.join(", ")},educationalLevel:e.complexityLevel,inLanguage:"en",isAccessibleForFree:!0};return e.contentType==="governance-page"?{...t,"@type":"SoftwareApplication",applicationCategory:"GovernanceApplication",operatingSystem:"Web Browser",featureList:["Smart voting notifications","Multi-signature wallet coordination","Automated proposal tracking","Cross-platform DAO integration","Treasury management tools"],isRelatedTo:[{"@type":"SoftwareApplication",name:"Snapshot"},{"@type":"SoftwareApplication",name:"Tally"},{"@type":"SoftwareApplication",name:"Aragon"},{"@type":"SoftwareApplication",name:"Safe"}]}:t}function wu(e,t){return t.map(r=>({type:"related-content",target:r.url,strength:r.relevance}))}function an(e){const t=["0xmail.box","Web3","blockchain","email","wallet","cryptocurrency"],r=["DAO","governance","voting","multi-sig","Snapshot","Tally","Aragon","Safe","proposal","community"];return e.contentType==="governance-page"?[...t,...r]:t}function nn(e){const t=["web3-infrastructure","email-technology","blockchain-applications"],r=["dao-governance-tools","voting-notification-systems","community-management-platforms","multi-signature-coordination","treasury-management-solutions"];return e.contentType==="governance-page"?[...t,...r]:t}function ku(e,t){return{contentClassification:{type:e.contentType,topic:e.primaryTopic,audience:e.targetAudience.join(","),complexity:e.complexityLevel,purpose:e.contentPurpose,vertical:e.industryVertical},semanticMarkup:rn(e),entityRecognition:an(e),topicClustering:nn(e),contentRelationships:t?.contentRelationships||[],...t}}function Cu(e){return{article:"Article","landing-page":"WebPage","product-page":"Product","governance-page":"SoftwareApplication",documentation:"TechArticle"}[e]||"WebPage"}function Su(e){return{"@context":"https://schema.org","@type":"MonitorAction",name:`AI Performance Tracking - ${e}`,instrument:{"@type":"SoftwareApplication",name:"AI Analytics Platform"},measurementTechnique:["User Engagement Metrics","AI Content Understanding Score","Semantic Relevance Analysis","Conversion Optimization Tracking"],result:{"@type":"Dataset",name:`${e} Performance Data`,description:"AI-optimized performance metrics and user interaction data"}}}const Nu={governancePage:{contentType:"governance-page",primaryTopic:"DAO Governance Communication Platform",semanticKeywords:["DAO governance","voting notifications","multi-sig coordination","proposal tracking","community engagement","treasury management"],targetAudience:["DAO members","governance participants","multi-sig signers","protocol teams","community managers"],complexityLevel:"intermediate",contentPurpose:"commercial",industryVertical:"blockchain-governance",technicalTags:["snapshot","tally","aragon","safe","multi-sig","voting","proposals","treasury"],userIntent:["improve-governance","increase-participation","coordinate-multi-sig","track-proposals","engage-community"],conversionGoals:["dao-integration","governance-setup","multi-sig-connection","notification-activation"]},landingPage:{contentType:"landing-page",primaryTopic:"Web3 Email Platform",semanticKeywords:["Web3 email","wallet authentication","ENS email","SNS email","blockchain email","decentralized communication"],targetAudience:["Web3 users","crypto enthusiasts","blockchain developers","DeFi users"],complexityLevel:"beginner",contentPurpose:"commercial",industryVertical:"web3-communication",technicalTags:["ethereum","solana","ens","sns","wallet-connect","metamask","phantom"],userIntent:["create-web3-email","connect-wallet","secure-communication","eliminate-passwords"],conversionGoals:["wallet-connection","email-creation","first-email-sent","premium-upgrade"]}},Eu=({message:e,className:t})=>n.jsxs("div",{className:`flex items-center justify-center p-4 ${t||""}`,children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),sr=new Map,_e=new Set;function ir(){const e=[];return!!window.ethereum?.isMetaMask&&(_e.add("metamask"),e.push({name:"MetaMask",detected:!0,priority:1})),!!window.ethereum?.isCoinbaseWallet&&(_e.add("coinbase"),e.push({name:"Coinbase Wallet",detected:!0,priority:2})),!!window.solana?.isPhantom&&(_e.add("phantom"),e.push({name:"Phantom",detected:!0,priority:3})),e.push({name:"WalletConnect",detected:!0,priority:4}),e.sort((o,s)=>o.priority-s.priority)}function lr(e){const t=`wallet-${e.toLowerCase()}`;if(sr.has(t))return sr.get(t);const r=()=>Promise.resolve({default:()=>b.createElement("div",{},`${e} Provider Placeholder`)}),a=b.lazy(r),o=s=>n.jsx(b.Suspense,{fallback:n.jsx(Eu,{message:`Loading ${e} wallet...`,className:"wallet-loading"}),children:n.jsx(a,{...s})});return o.displayName=`Lazy${e}Provider`,sr.set(t,o),o}function Au({children:e}){const t=ir();return t.filter(r=>r.priority<=2&&r.detected).forEach(r=>{setTimeout(()=>{},1e3)}),n.jsxs(n.Fragment,{children:[t.map(r=>{const a=lr(r.name);return n.jsx(a,{},r.name)}),e]})}const gr=class gr{static preloadWallet(t){const r=t.toLowerCase();this.preloadedWallets.has(r)||(this.preloadedWallets.add(r),setTimeout(()=>{lr(t)},500))}static preloadCommonWallets(){["metamask","walletconnect","coinbase"].forEach((r,a)=>{setTimeout(()=>{this.preloadWallet(r)},a*1e3)})}static getPreloadedWallets(){return Array.from(this.preloadedWallets)}};gr.preloadedWallets=new Set;let He=gr;function Pu(){return{availableWallets:ir(),preloadWallet:a=>{He.preloadWallet(a)},getDetectedWallets:()=>Array.from(_e),hasWallet:a=>_e.has(a.toLowerCase())}}function Tu({walletName:e,onConnect:t,disabled:r=!1}){const a=()=>{He.preloadWallet(e),setTimeout(t,100)};return n.jsxs("button",{onClick:a,disabled:r,className:"wallet-connect-btn","data-wallet":e.toLowerCase(),children:["Connect ",e]})}class Iu{constructor(){this.criticalResources=[],this.observedMetrics={fcp:0,lcp:0,fid:0,cls:0,ttfb:0},this.defineCriticalResources(),this.startPerformanceObservation()}defineCriticalResources(){this.criticalResources=[{url:"/assets/index-*.css",type:"style",priority:"critical",preload:!0},{url:"/assets/index-*.js",type:"script",priority:"critical"},{url:"/assets/react-core-*.js",type:"script",priority:"high",preload:!0},{url:"https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2",type:"font",priority:"critical",preload:!0},{url:"/logo.png",type:"image",priority:"high",preload:!0}]}startPerformanceObservation(){if("PerformanceObserver"in window)try{new PerformanceObserver(s=>{for(const i of s.getEntries())i.name==="first-contentful-paint"&&(this.observedMetrics.fcp=i.startTime,this.optimizeBasedOnFCP(i.startTime))}).observe({entryTypes:["paint"]}),new PerformanceObserver(s=>{for(const i of s.getEntries())this.observedMetrics.lcp=i.startTime,this.optimizeBasedOnLCP(i.startTime)}).observe({entryTypes:["largest-contentful-paint"]});let a=0;new PerformanceObserver(s=>{for(const i of s.getEntries())i.hadRecentInput||(a+=i.value);this.observedMetrics.cls=a}).observe({entryTypes:["layout-shift"]})}catch{}window.addEventListener("load",()=>{setTimeout(()=>{const t=performance.getEntriesByType("navigation")[0];t&&(this.observedMetrics.ttfb=t.responseStart-t.requestStart,this.optimizeBasedOnTTFB(this.observedMetrics.ttfb))},0)})}optimizeBasedOnFCP(t){t>2e3?this.applyEmergencyOptimizations():t>1500&&this.applyMediumOptimizations()}optimizeBasedOnLCP(t){t>2500&&this.optimizeLCPElements()}optimizeBasedOnTTFB(t){t>600&&this.enableAggressiveCaching()}applyEmergencyOptimizations(){document.querySelectorAll('img[data-priority="low"]').forEach(a=>{a.loading="lazy",a.style.display="none",setTimeout(()=>{a.style.display=""},3e3)}),document.querySelectorAll('script[data-priority="low"]').forEach(a=>{a.setAttribute("defer","")})}applyMediumOptimizations(){["/assets/app-core-*.js","/assets/react-router-*.js"].forEach(r=>{this.preloadResource(r,"script")})}optimizeLCPElements(){document.querySelectorAll("img[data-hero], [data-lcp-element]").forEach(a=>{a instanceof HTMLImageElement&&(a.fetchPriority="high",a.loading="eager")});const r=document.querySelector("img[data-hero]")?.getAttribute("src");r&&this.preloadResource(r,"image")}enableAggressiveCaching(){const t=document.createElement("meta");t.httpEquiv="Cache-Control",t.content="public, max-age=31536000, immutable",document.head.appendChild(t)}preloadResource(t,r){if(document.querySelector(`link[href*="${t}"]`))return;const o=document.createElement("link");switch(o.rel="preload",o.href=t,r){case"script":o.as="script";break;case"style":o.as="style";break;case"font":o.as="font",o.type="font/woff2",o.crossOrigin="";break;case"image":o.as="image";break}document.head.appendChild(o)}optimizeCriticalPath(){this.criticalResources.filter(t=>t.priority==="critical"&&t.preload).forEach(t=>{this.preloadResource(t.url,t.type)}),this.inlineCriticalCSS(),this.optimizeFontLoading(),this.removeRenderBlocking(),this.setupProgressiveLoading()}inlineCriticalCSS(){const t=document.querySelector('link[rel="stylesheet"][data-critical]');t&&this.isSmallResource(t.getAttribute("href")||"")&&fetch(t.getAttribute("href")||"").then(r=>r.text()).then(r=>{if(r.length<1e4){const a=document.createElement("style");a.textContent=r,document.head.appendChild(a),t.remove()}}).catch(()=>{})}optimizeFontLoading(){document.querySelectorAll('link[href*="fonts.googleapis.com"]').forEach(r=>{const a=r.getAttribute("href")||"";if(!a.includes("display=swap")){const o=a.includes("?")?"&":"?";r.setAttribute("href",`${a}${o}display=swap`)}})}removeRenderBlocking(){document.querySelectorAll('link[rel="stylesheet"]:not([data-critical])').forEach(r=>{const a=r.cloneNode(!0);a.rel="preload",a.as="style",a.onload=()=>{a.onload=null,a.rel="stylesheet"};const o=document.createElement("noscript"),s=r.cloneNode(!0);o.appendChild(s),document.head.appendChild(a),document.head.appendChild(o),r.remove()})}setupProgressiveLoading(){const t=document.querySelectorAll("img[data-src]");if("IntersectionObserver"in window){const r=new IntersectionObserver(a=>{a.forEach(o=>{if(o.isIntersecting){const s=o.target;s.src=s.dataset.src||"",s.removeAttribute("data-src"),r.unobserve(s)}})},{rootMargin:"50px 0px",threshold:.01});t.forEach(a=>r.observe(a))}else t.forEach(r=>{const a=r;a.src=a.dataset.src||""})}isSmallResource(t){return t.includes("critical")||t.includes("inline")}getPerformanceMetrics(){return{...this.observedMetrics,score:this.calculatePerformanceScore()}}calculatePerformanceScore(){let t=100;return this.observedMetrics.fcp>2e3?t-=20:this.observedMetrics.fcp>1500&&(t-=10),this.observedMetrics.lcp>2500?t-=25:this.observedMetrics.lcp>2e3&&(t-=15),this.observedMetrics.cls>.1?t-=15:this.observedMetrics.cls>.05&&(t-=8),this.observedMetrics.ttfb>600?t-=10:this.observedMetrics.ttfb>400&&(t-=5),Math.max(t,0)}}const yt={mark:e=>{typeof performance<"u"&&performance.mark&&performance.mark(e)},measure:(e,t,r)=>{if(typeof performance<"u"&&performance.measure)try{performance.measure(e,t,r);const a=performance.getEntriesByName(e);return a[a.length-1]?.duration||0}catch{return 0}return 0},getEntries:e=>typeof performance<"u"&&performance.getEntriesByName?e?performance.getEntriesByName(e):performance.getEntries():[],clearEntries:e=>{typeof performance<"u"&&(e?(performance.clearMeasures?.(e),performance.clearMarks?.(e)):(performance.clearMeasures?.(),performance.clearMarks?.()))}},Lu=(e,t=[])=>{b.useEffect(()=>(yt.mark(`${e}-start`),()=>{yt.mark(`${e}-end`),yt.measure(e,`${e}-start`,`${e}-end`)}),[e,t])},$u=e=>{const t=b.useRef(e);return t.current=e,b.useCallback((...r)=>t.current(...r),[])},Ou=(e,t,r)=>{const a=b.useRef(t),o=b.useRef(void 0);return b.useMemo(()=>(r&&process.env.NODE_ENV==="development"&&t.some((s,i)=>s!==a.current[i]),a.current=t,o.current=e(),o.current),[e,r,t])},bt=new Map,Mu=e=>{const t=bt.get(e)||0;bt.set(e,t+1),b.useEffect(()=>{process.env.NODE_ENV})},Du=()=>Object.fromEntries(bt),zu=()=>bt.clear(),Wu=e=>b.lazy(e),Bu=(e=.1)=>{const[t,r]=b.useState(new Set),a=b.useRef(null);b.useEffect(()=>(a.current=new IntersectionObserver(s=>{s.forEach(i=>{if(i.isIntersecting){const l=i.target,c=l.dataset.src;c&&(l.src=c,l.onload=()=>{r(u=>new Set(u).add(c))},a.current?.unobserve(l))}})},{threshold:e}),()=>a.current?.disconnect()),[e]);const o=b.useCallback(s=>{s&&a.current&&a.current.observe(s)},[]);return{loadedImages:t,observeImage:o}},ju=e=>{typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(()=>{e().catch(()=>{})}):setTimeout(()=>{e().catch(()=>{})},100)},on={},Fu=e=>{on[e.name]=e.value,process.env.NODE_ENV},_u=()=>on,Hu=(e,t="script")=>{if(typeof document<"u"){const r=document.createElement("link");r.rel="prefetch",r.href=e,r.as=t,document.head.appendChild(r)}},Vu=(e,t="script",r)=>{if(typeof document<"u"){const a=document.createElement("link");a.rel="preload",a.href=e,a.as=t,r&&(a.crossOrigin="anonymous"),document.head.appendChild(a)}},Uu=e=>{const t=b.useRef(new Set),r=b.useRef(new Set),a=b.useCallback((s,i)=>{const l=setTimeout(()=>{t.current.delete(l),s()},i);return t.current.add(l),l},[]),o=b.useCallback((s,i)=>{const l=setInterval(s,i);return r.current.add(l),l},[]);return b.useEffect(()=>{const s=t.current,i=r.current;return()=>{s.forEach(l=>clearTimeout(l)),i.forEach(l=>clearInterval(l)),process.env.NODE_ENV}},[e]),{createTimer:a,createInterval:o}},ce={maxBundleSize:500,maxChunkSize:200,maxImageSize:100,maxFCP:1800,maxLCP:2500,maxFID:100,maxCLS:.1,check:e=>{const t=[];return e.FCP&&e.FCP>ce.maxFCP&&t.push(`FCP (${e.FCP}ms) exceeds budget (${ce.maxFCP}ms)`),e.LCP&&e.LCP>ce.maxLCP&&t.push(`LCP (${e.LCP}ms) exceeds budget (${ce.maxLCP}ms)`),e.FID&&e.FID>ce.maxFID&&t.push(`FID (${e.FID}ms) exceeds budget (${ce.maxFID}ms)`),e.CLS&&e.CLS>ce.maxCLS&&t.push(`CLS (${e.CLS}) exceeds budget (${ce.maxCLS})`),t}},qu=({contentType:e,aiSummary:t,technicalComplexity:r="intermediate"})=>n.jsxs(fn.Helmet,{children:[n.jsx("meta",{name:"ai:content-type",content:e}),n.jsx("meta",{name:"ai:summary",content:t}),n.jsx("meta",{name:"ai:complexity",content:r})]}),Gu=({children:e,className:t,...r})=>n.jsx("main",{className:t,...r,role:"main",children:e}),Ku=({children:e})=>n.jsx(n.Fragment,{children:e}),Te=e=>Array.isArray(e)?e:typeof e=="string"?e.split(",").map(t=>t.trim()).filter(Boolean):[],cr=e=>{const t=Te(e.audience);return{"@context":"https://schema.org","@type":"SoftwareApplication",name:"0xmail.box",applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",description:e.description,url:"https://0xmail.box",downloadUrl:"https://0xmail.box/connect",installUrl:"https://0xmail.box/connect",screenshot:"https://0xmail.box/screenshots/app-preview.jpg",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"2500",bestRating:"5",worstRating:"1"},offers:[{"@type":"Offer",name:"Free Web3 Email",description:"Basic wallet-based email with unlimited sending",price:"0",priceCurrency:"USD",availability:"https://schema.org/InStock"},{"@type":"Offer",name:"Premium Web3 Email",description:"Advanced features with ENS/SNS domains and priority support",price:"2.00",priceCurrency:"USD",billingIncrement:"month",availability:"https://schema.org/InStock"}],featureList:["Passwordless wallet authentication","ENS domain email support (.eth)","Solana Name Service support (.sol)","Smart contract email integration","Multi-chain wallet compatibility","Cross-chain email addresses","DAO email delegation","Encrypted communication","Web2/Web3 bridge functionality","Point-based reward system"],applicationSubCategory:"Web3 Email Platform",audience:{"@type":"Audience",audienceType:t.join(", "),geographicArea:"Worldwide"},creator:{"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box"},datePublished:"2024-01-01",dateModified:e.lastUpdated?.toISOString()||new Date().toISOString(),version:"1.0",softwareRequirements:"Web3 Wallet (MetaMask, Phantom, etc.)",storageRequirements:"5MB",memoryRequirements:"512MB RAM",supportingData:{blockchainNetworks:["Ethereum","Solana","Polygon","Arbitrum","Optimism"],supportedWallets:["MetaMask","Phantom","WalletConnect","Coinbase Wallet"],smartContractSupport:!0,ensCompatible:!0,snsCompatible:!0}}},dr=e=>{const t=Te(e.keywords),r=Te(e.audience);return{"@context":"https://schema.org","@type":"TechnicalArticle",headline:e.title,description:e.description,author:{"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box",logo:{"@type":"ImageObject",url:"https://0xmail.box/logo.png"}},publisher:{"@type":"Organization",name:"0xmail.box",logo:{"@type":"ImageObject",url:"https://0xmail.box/logo.png",width:600,height:600}},datePublished:"2024-01-01T00:00:00Z",dateModified:e.lastUpdated?.toISOString()||new Date().toISOString(),mainEntityOfPage:{"@type":"WebPage","@id":`https://0xmail.box${location.pathname}`},image:{"@type":"ImageObject",url:"https://0xmail.box/og-images/technical-guide.jpg",width:1200,height:630},keywords:t.join(", "),about:[{"@type":"Thing",name:"Web3 Email Platform"},{"@type":"Thing",name:"Blockchain Technology"},{"@type":"Thing",name:"Decentralized Communication"}],audience:{"@type":"Audience",audienceType:r.join(", "),educationalLevel:e.complexity},educationalLevel:e.complexity,proficiencyLevel:e.complexity,learningResourceType:e.contentType,timeRequired:e.readingTime?`PT${e.readingTime}M`:"PT5M",inLanguage:"en",isAccessibleForFree:!0,license:"https://creativecommons.org/licenses/by/4.0/",teaches:e.relatedTopics||["Web3 email setup","Wallet connection process","Blockchain authentication","Smart contract integration"]}},Yu=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer,dateCreated:new Date().toISOString(),upvoteCount:Math.floor(Math.random()*50)+10,author:{"@type":"Organization",name:"0xmail.box"}},answerCount:1,upvoteCount:Math.floor(Math.random()*100)+20,dateCreated:"2024-01-01T00:00:00Z",category:t.category||"Web3 Email"}))}),ur=e=>({"@context":"https://schema.org","@type":"WebPage",name:e.title,description:e.description,url:`https://0xmail.box${location.pathname}`,primaryImageOfPage:{"@type":"ImageObject",url:"https://0xmail.box/og-images/ai-optimized.jpg"},significantLink:["https://0xmail.box/document","https://0xmail.box/web3-users","https://0xmail.box/web3-projects","https://0xmail.box/connect"],relatedLink:e.relatedTopics?.map(t=>`https://0xmail.box/search?q=${encodeURIComponent(t)}`)||[],about:{"@type":"Thing",name:"Web3 Email Communication",description:"Blockchain-based email platform using wallet authentication",sameAs:["https://en.wikipedia.org/wiki/Web3","https://en.wikipedia.org/wiki/Blockchain","https://en.wikipedia.org/wiki/Cryptocurrency_wallet"]},mentions:[{"@type":"SoftwareApplication",name:"MetaMask"},{"@type":"SoftwareApplication",name:"Phantom Wallet"},{"@type":"Thing",name:"Ethereum Name Service"},{"@type":"Thing",name:"Solana Name Service"}],isPartOf:{"@type":"WebSite","@id":"https://0xmail.box",name:"0xmail.box"},potentialAction:{"@type":"InteractAction",target:{"@type":"EntryPoint",urlTemplate:"https://0xmail.box/connect",actionPlatform:["https://schema.org/DesktopWebPlatform","https://schema.org/MobileWebPlatform"]},name:"Connect Web3 Wallet"}}),sn=e=>{const t=Te(e.keywords);return{"og:title":e.title,"og:description":e.description,"og:type":"website","og:url":`https://0xmail.box${location.pathname}`,"og:image":`https://0xmail.box/og-images/${e.category}.jpg`,"og:image:width":"1200","og:image:height":"630","og:image:alt":`${e.title} - Web3 Email Platform`,"og:site_name":"0xmail.box","og:locale":"en_US","article:author":"https://0xmail.box/about","article:section":e.category,"article:tag":t.join(","),"article:published_time":"2024-01-01T00:00:00Z","article:modified_time":e.lastUpdated?.toISOString()||new Date().toISOString()}},ln=e=>({"twitter:card":"summary_large_image","twitter:site":"@0xmailbox","twitter:creator":"@0xmailbox","twitter:title":e.title,"twitter:description":e.description,"twitter:image":`https://0xmail.box/twitter-cards/${e.category}.jpg`,"twitter:image:alt":`${e.title} - Web3 Email Platform`,"twitter:label1":"Category","twitter:data1":e.category,"twitter:label2":"Reading Time","twitter:data2":e.readingTime?`${e.readingTime} min`:"5 min"}),cn=e=>{const t=Te(e.keywords),r=Te(e.audience);return{"ai:content-type":e.contentType,"ai:complexity":e.complexity,"ai:category":e.category,"ai:audience":r.join(","),"ai:keywords":t.join(","),"ai:reading-time":e.readingTime?.toString()||"5","web3:platform":"Email","web3:networks":"ethereum,solana,polygon","web3:wallets":"metamask,phantom,walletconnect","web3:features":"ens,sns,smart-contracts,multi-chain","llm:context":"Web3 email platform documentation and user guides","llm:domain":"blockchain,cryptocurrency,decentralized-communication","llm:use-case":"email,authentication,wallet-integration,smart-contracts","semantic:topic":e.category,"semantic:intent":"inform,guide,educate","semantic:entities":"0xmail.box,Web3,blockchain,email,wallet","content:freshness":e.lastUpdated?.toISOString()||new Date().toISOString(),"content:authority":"high","content:expertise":"technical","content:trustworthiness":"verified"}},Qu=e=>({structuredData:{product:cr(e),article:dr(e),aiOptimized:ur(e)},openGraph:sn(e),twitterCard:ln(e),aiMetaTags:cn(e),jsonLD:[cr(e),dr(e),ur(e)]}),Xu={homepage:{title:"0xmail.box - Revolutionary Web3 Email Platform | Wallet-Based Authentication",description:"Transform your email experience with 0xmail.box - the first Web3 email platform using wallet authentication. No passwords, enhanced security, ENS/SNS domain support, and smart contract integration.",keywords:["Web3 email","blockchain email","wallet authentication","ENS email","SNS email","decentralized email","smart contract integration"],category:"Web3 Platform",audience:["Crypto Users","Web3 Developers","DeFi Users","DAO Members"],complexity:"beginner",contentType:"overview",readingTime:3,relatedTopics:["Web3 authentication","Blockchain communication","Decentralized identity"]},documentation:{title:"0xmail.box Documentation - Complete Web3 Email Setup Guide",description:"Comprehensive documentation for 0xmail.box Web3 email platform. Learn wallet connection, ENS/SNS setup, smart contract integration, and advanced features.",keywords:["Web3 email guide","wallet connection","ENS setup","SNS configuration","smart contract email","blockchain documentation"],category:"Technical Documentation",audience:["Developers","Technical Users","Web3 Enthusiasts"],complexity:"intermediate",contentType:"guide",readingTime:15,relatedTopics:["Wallet integration","Blockchain protocols","Email security"]},earnPoints:{title:"How to Earn Points on 0xmail.box - Web3 Email Rewards Guide",description:"Master the 0xmail.box points system. Earn rewards through email activities, referrals, smart contract interactions, and prepare for future token distribution.",keywords:["Web3 rewards","email points","blockchain rewards","referral program","token preparation","crypto incentives"],category:"Rewards Guide",audience:["Token Farmers","Crypto Users","Web3 Users"],complexity:"beginner",contentType:"tutorial",readingTime:8,relatedTopics:["Token economics","Reward systems","Referral marketing"]}},Zu=e=>{const{level:t,text:r,className:a="",id:o,semanticContext:s="section"}=e,i=`h${t}`,l={1:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",2:"text-3xl md:text-4xl font-bold leading-tight",3:"text-2xl md:text-3xl font-bold leading-tight",4:"text-xl md:text-2xl font-semibold leading-tight",5:"text-lg md:text-xl font-semibold leading-tight",6:"text-base md:text-lg font-medium leading-tight"},c={"page-title":"text-gray-900 dark:text-white mb-6",section:"text-gray-900 dark:text-white mb-4",subsection:"text-gray-900 dark:text-white mb-3",feature:"text-gray-900 dark:text-white mb-2",benefit:"text-blue-600 dark:text-blue-400 mb-2",step:"text-green-600 dark:text-green-400 mb-2"},u=[l[t],c[s],a].filter(Boolean).join(" "),g=o||r.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return b.createElement(i,{id:g,className:u,"aria-level":t},r)},ae={pageTitle:(e,t)=>({level:1,text:e,className:t,semanticContext:"page-title"}),majorSection:(e,t)=>({level:2,text:e,className:t,semanticContext:"section"}),feature:(e,t)=>({level:3,text:e,className:t,semanticContext:"feature"}),benefit:(e,t)=>({level:3,text:e,className:t,semanticContext:"benefit"}),step:(e,t,r)=>({level:3,text:t?`Step ${t}: ${e}`:e,className:r,semanticContext:"step"}),subFeature:(e,t)=>({level:4,text:e,className:t,semanticContext:"feature"})},Ju=e=>{const t=[],r=[],a=e.filter(o=>o.level===1).length;a===0?t.push("Missing H1 tag - every page should have exactly one H1"):a>1&&t.push(`Multiple H1 tags found (${a}) - use only one H1 per page`);for(let o=1;o<e.length;o++){const s=e[o],i=e[o-1];s.level>i.level+1&&t.push(`Heading level jump from H${i.level} to H${s.level} - avoid skipping levels`)}return e.forEach((o,s)=>{o.text.length<3&&t.push(`Heading ${s+1} is too short - use descriptive text`),o.text.length>70&&r.push(`Heading "${o.text.substring(0,30)}..." is long - consider shortening for better SEO`)}),{isValid:t.length===0,errors:t,suggestions:r}},Ru={walletConnection:ae.pageTitle("Connect Your Web3 Wallet"),emailBenefits:ae.majorSection("Why Choose Web3 Email?"),securityFeature:ae.feature("Secure & Private"),ensIntegration:ae.feature("ENS Domain Support"),multiChain:ae.feature("Multi-Chain Compatibility"),passwordless:ae.benefit("No Passwords Required"),setupStep1:ae.step("Connect Your Wallet",1),setupStep2:ae.step("Verify Your Identity",2),setupStep3:ae.step("Access Your Emails",3)},eg=[{term:"Web3 Email",definition:"Email system that uses blockchain wallet addresses as authentication instead of traditional passwords",category:"Web3 Communication",synonyms:["blockchain email","decentralized email","crypto email"],relatedTerms:["wallet authentication","ENS email","SNS email"],examples:["vitalik.eth@0xmail.box","alice.sol@0xmail.box"],context:"Web3 email revolutionizes digital communication by eliminating passwords and using cryptographic signatures for authentication"},{term:"Wallet Authentication",definition:"Authentication method using cryptographic signatures from blockchain wallets instead of passwords",category:"Security",synonyms:["wallet-based auth","signature authentication","passwordless authentication"],relatedTerms:["EIP-712","SIWE","message signing"],examples:["MetaMask signature","Phantom wallet auth","WalletConnect login"],context:"Wallet authentication provides superior security through cryptographic proofs that cannot be phished or stolen like passwords"},{term:"ENS Email",definition:"Email addresses using Ethereum Name Service domains (.eth) as identifiers",category:"Naming Systems",synonyms:["Ethereum name email",".eth email"],relatedTerms:["ENS","Ethereum domains","blockchain domains"],examples:["vitalik.eth","ethereum.eth"],context:"ENS emails provide human-readable addresses that resolve to Ethereum wallet addresses"},{term:"SNS Email",definition:"Email addresses using Solana Name Service domains (.sol) as identifiers",category:"Naming Systems",synonyms:["Solana name email",".sol email"],relatedTerms:["SNS","Solana domains","SPL domains"],examples:["anatoly.sol","solana.sol"],context:"SNS emails provide human-readable addresses for Solana ecosystem users"},{term:"Smart Contract Integration",definition:"Ability to send and receive emails triggered by blockchain smart contract events",category:"Blockchain Integration",synonyms:["contract notifications","on-chain email triggers"],relatedTerms:["event listeners","webhooks","contract automation"],examples:["DAO proposal notifications","DeFi alert emails","NFT sale confirmations"],context:"Smart contract integration enables automated communication based on blockchain events"},{term:"Multi-Chain Support",definition:"Compatibility with multiple blockchain networks for wallet authentication and email services",category:"Interoperability",synonyms:["cross-chain support","blockchain agnostic"],relatedTerms:["EVM chains","Solana","Layer 2"],examples:["Ethereum, Polygon, Arbitrum, Solana support"],context:"Multi-chain support ensures users from any blockchain ecosystem can use the email service"},{term:"DAO Email Delegation",definition:"System allowing DAOs to manage email communications through delegated authorities",category:"Governance",synonyms:["governance email","multi-sig email"],relatedTerms:["DAO governance","multi-signature","delegation"],examples:["Treasury notifications","Proposal alerts","Voting reminders"],context:"DAO email delegation enables decentralized organizations to manage communications efficiently"},{term:"Web2/Web3 Bridge",definition:"Technology enabling communication between traditional email systems and blockchain-based email",category:"Interoperability",synonyms:["email bridge","legacy integration"],relatedTerms:["SMTP gateway","email forwarding","protocol bridge"],examples:["Gmail to Web3 email","Outlook integration"],context:"Web2/Web3 bridge ensures compatibility with existing email infrastructure"}],tg=e=>({"@context":"https://schema.org","@type":"LearningResource",educationalLevel:e.difficulty,learningResourceType:"Technical Documentation",timeRequired:e.estimatedTime?`PT${e.estimatedTime}M`:void 0,teaches:e.learningObjectives,requires:e.prerequisites,about:{"@type":"Thing",name:e.domain,category:e.category,subcategory:e.subcategory},keywords:e.concepts,applicationExample:e.practicalApplications,isRelatedTo:e.relatedConcepts}),rg=e=>{const t={nodes:e.map(r=>({id:r.term,label:r.term,category:r.category,definition:r.definition})),edges:[]};return e.forEach(r=>{r.relatedTerms?.forEach(a=>{e.find(s=>s.term===a)&&t.edges.push({source:r.term,target:a,relationship:"related_to"})}),r.synonyms?.forEach(a=>{t.edges.push({source:r.term,target:a,relationship:"synonym_of"})})}),t},ag=e=>{const t=[];return e.examples?.forEach(r=>{t.push({text:r,label:e.term,type:"positive",confidence:1})}),e.context&&t.push({text:e.context,label:e.term,type:"contextual",confidence:.8}),t.push({text:`${e.term} is ${e.definition}`,label:e.term,type:"definition",confidence:1}),t},ng=e=>{const t=[];return e.forEach(r=>{t.push({question:`What is ${r.term}?`,answer:r.definition,category:r.category,difficulty:"basic"}),r.context&&t.push({question:`How does ${r.term} work?`,answer:r.context,category:r.category,difficulty:"intermediate"}),r.examples&&r.examples.length>0&&t.push({question:`What are examples of ${r.term}?`,answer:r.examples.join(", "),category:r.category,difficulty:"basic"}),r.relatedTerms&&r.relatedTerms.length>0&&t.push({question:`What is ${r.term} related to?`,answer:`${r.term} is related to ${r.relatedTerms.join(", ")}`,category:r.category,difficulty:"intermediate"})}),t},og={homepage:{domain:"Web3 Email Platform",category:"Web3 Communication",concepts:["Web3 email","wallet authentication","passwordless login","blockchain messaging"],prerequisites:["Basic blockchain knowledge","Understanding of crypto wallets"],learningObjectives:["Understand Web3 email concepts","Learn wallet authentication","Explore blockchain communication"],difficulty:"beginner",estimatedTime:5,practicalApplications:["Secure email communication","DAO governance","DeFi notifications"]},documentation:{domain:"Web3 Email Technical Documentation",category:"Technical Guide",concepts:["API integration","smart contracts","wallet connection","email protocols"],prerequisites:["JavaScript/TypeScript","Web3 development basics","REST APIs"],learningObjectives:["Implement Web3 email","Integrate wallet authentication","Build on email API"],difficulty:"intermediate",estimatedTime:30,practicalApplications:["dApp integration","Email automation","Smart contract notifications"]},governance:{domain:"DAO Governance Communication",category:"Governance Tools",concepts:["DAO email","voting notifications","proposal tracking","multi-sig coordination"],prerequisites:["DAO basics","Governance understanding","Multi-signature wallets"],learningObjectives:["Setup DAO email","Configure voting alerts","Manage team communication"],difficulty:"advanced",estimatedTime:20,practicalApplications:["DAO operations","Treasury management","Governance participation"]}};/**
|
|
60
60
|
* @johnqh/mail-box-components
|
|
61
61
|
*
|
|
62
62
|
* A comprehensive React component library and design system.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-link.d.ts","sourceRoot":"","sources":["../../src/ui/address-link.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IACrC,uBAAuB;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gCAAgC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AA0ED;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"address-link.d.ts","sourceRoot":"","sources":["../../src/ui/address-link.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IACrC,uBAAuB;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gCAAgC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AA0ED;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiHlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/ui/alert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,UAAU,UAAU;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAEA,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAEA,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,UAAU,UAAU;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAEA,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAEA,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2BtC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "Reusable UI components and design system for mail box applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@radix-ui/react-switch": "^1.2.6",
|
|
49
49
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
50
50
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
51
|
-
"@sudobility/design": "^1.0.
|
|
51
|
+
"@sudobility/design": "^1.0.31",
|
|
52
52
|
"class-variance-authority": "^0.7.1",
|
|
53
53
|
"clsx": "^2.1.1",
|
|
54
54
|
"i18next": "^25.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@radix-ui/react-switch": "^1.2.6",
|
|
74
74
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
75
75
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
76
|
-
"@sudobility/design": "^1.0.
|
|
76
|
+
"@sudobility/design": "^1.0.31",
|
|
77
77
|
"@testing-library/dom": "^10.4.1",
|
|
78
78
|
"@testing-library/jest-dom": "^6.9.1",
|
|
79
79
|
"@testing-library/react": "^16.3.0",
|