@sudobility/components 2.0.7 → 2.0.8
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.d.ts +1 -1009
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +3237 -6585
- package/dist/index.umd.js +18 -18
- package/dist/lib/index.d.ts +1 -3
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/ui/callout.d.ts +23 -0
- package/dist/ui/callout.d.ts.map +1 -0
- package/dist/ui/feature-card.d.ts +44 -1
- package/dist/ui/feature-card.d.ts.map +1 -1
- package/dist/ui/flex-container.d.ts +7 -0
- package/dist/ui/flex-container.d.ts.map +1 -1
- package/dist/ui/index.d.ts +1 -3
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/section.d.ts +1 -1
- package/dist/ui/section.d.ts.map +1 -1
- package/dist/ui/use-case-grid.d.ts.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/ui/gradient-button.d.ts +0 -15
- package/dist/ui/gradient-button.d.ts.map +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
(function(i,K){typeof exports=="object"&&typeof module<"u"?K(exports,require("clsx"),require("tailwind-merge"),require("react"),require("react/jsx-runtime"),require("web-vitals"),require("@heroicons/react/24/outline"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("@radix-ui/react-label"),require("@radix-ui/react-select"),require("lucide-react"),require("@radix-ui/react-switch"),require("@radix-ui/react-tabs"),require("react-router-dom"),require("react-dom"),require("react-share"),require("react-i18next"),require("@heroicons/react/24/solid"),require("react-helmet-async")):typeof define=="function"&&define.amd?define(["exports","clsx","tailwind-merge","react","react/jsx-runtime","web-vitals","@heroicons/react/24/outline","@radix-ui/react-slot","class-variance-authority","@radix-ui/react-label","@radix-ui/react-select","lucide-react","@radix-ui/react-switch","@radix-ui/react-tabs","react-router-dom","react-dom","react-share","react-i18next","@heroicons/react/24/solid","react-helmet-async"],K):(i=typeof globalThis<"u"?globalThis:i||self,K(i.MailBoxComponents={},i.clsx,i.tailwindMerge,i.React,i.ReactJSXRuntime,i.WebVitals,i.HeroiconsOutline,i.RadixSlot,i.cva,i.RadixLabel,i.RadixSelect,i.LucideReact,i.RadixSwitch,i.RadixTabs,i.ReactRouterDOM,i.ReactDOM,i.ReactShare,i.ReactI18next,i.HeroiconsSolid,i.ReactHelmetAsync))})(this,(function(i,K,nt,b,a,R,v,Sr,I,it,Nr,ce,Ee,V,ge,Er,z,st,ue,$r){"use strict";function lt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const T=lt(b),P=lt(Nr);function h(...t){return nt.twMerge(K.clsx(t))}const y={blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7c3aed",800:"#6b21a8",900:"#581c87",950:"#3b0764"},neutral:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},web3:{ethereum:{light:"#627eea",DEFAULT:"#627eea",dark:"#4c63d2"},solana:{light:"#9945ff",DEFAULT:"#9945ff",dark:"#7d37d9"},polygon:{light:"#8247e5",DEFAULT:"#8247e5",dark:"#6a3bc0"},bitcoin:{light:"#f7931a",DEFAULT:"#f7931a",dark:"#e07f00"},binance:{light:"#f3ba2f",DEFAULT:"#f3ba2f",dark:"#d4a423"},cardano:{light:"#0033ad",DEFAULT:"#0033ad",dark:"#002488"},avalanche:{light:"#e84142",DEFAULT:"#e84142",dark:"#d1383a"},fantom:{light:"#1969ff",DEFAULT:"#1969ff",dark:"#0052ff"},arbitrum:{light:"#2d374b",DEFAULT:"#2d374b",dark:"#1e2532"},optimism:{light:"#ff0420",DEFAULT:"#ff0420",dark:"#e6031c"},chainlink:{light:"#375bd2",DEFAULT:"#375bd2",dark:"#2d4bb5"},cosmos:{light:"#2e3148",DEFAULT:"#2e3148",dark:"#1f2030"},polkadot:{light:"#e6007a",DEFAULT:"#e6007a",dark:"#cc006e"}}},Ir={text:{primary:{light:y.neutral[900],dark:y.neutral[0]},secondary:{light:y.neutral[600],dark:y.neutral[400]},tertiary:{light:y.neutral[500],dark:y.neutral[500]},disabled:{light:y.neutral[400],dark:y.neutral[600]},inverse:{light:y.neutral[0],dark:y.neutral[900]},link:{light:y.blue[600],dark:y.blue[400]},linkHover:{light:y.blue[700],dark:y.blue[300]}},background:{primary:{light:y.neutral[0],dark:y.neutral[900]},secondary:{light:y.neutral[50],dark:y.neutral[800]},tertiary:{light:y.neutral[100],dark:y.neutral[700]},elevated:{light:y.neutral[0],dark:y.neutral[800]},overlay:{light:"rgba(0, 0, 0, 0.5)",dark:"rgba(0, 0, 0, 0.7)"},page:{light:y.neutral[50],dark:y.neutral[950]}},border:{primary:{light:y.neutral[200],dark:y.neutral[700]},secondary:{light:y.neutral[100],dark:y.neutral[800]},focus:{light:y.blue[500],dark:y.blue[400]},error:{light:y.red[300],dark:y.red[700]}},brand:{primary:{light:y.blue[600],dark:y.blue[500]},primaryHover:{light:y.blue[700],dark:y.blue[400]},secondary:{light:y.purple[600],dark:y.purple[500]},secondaryHover:{light:y.purple[700],dark:y.purple[400]}},state:{success:{light:y.green[600],dark:y.green[500]},successBg:{light:y.green[100],dark:`${y.green[900]}/30`},successText:{light:y.green[700],dark:y.green[300]},warning:{light:y.amber[500],dark:y.amber[400]},warningBg:{light:y.amber[100],dark:`${y.amber[900]}/30`},warningText:{light:y.amber[700],dark:y.amber[300]},error:{light:y.red[600],dark:y.red[500]},errorBg:{light:y.red[100],dark:`${y.red[900]}/30`},errorText:{light:y.red[700],dark:y.red[300]},info:{light:y.blue[600],dark:y.blue[500]},infoBg:{light:y.blue[100],dark:`${y.blue[900]}/30`},infoText:{light:y.blue[700],dark:y.blue[300]},selected:{light:y.blue[100],dark:`${y.blue[900]}/30`}},action:{primary:{light:y.blue[600],dark:y.blue[600]},primaryHover:{light:y.blue[700],dark:y.blue[700]},secondary:{light:y.neutral[100],dark:y.neutral[800]},danger:{light:y.red[600],dark:y.red[600]}},web3:{ethereum:{light:y.web3.ethereum.light,dark:y.web3.ethereum.dark},ethereumBg:{light:`${y.blue[100]}`,dark:`${y.blue[900]}/30`},solana:{light:y.web3.solana.light,dark:y.web3.solana.dark},solanaBg:{light:`${y.purple[100]}`,dark:`${y.purple[900]}/30`},polygon:{light:y.web3.polygon.light,dark:y.web3.polygon.dark},polygonBg:{light:`${y.purple[50]}`,dark:`${y.purple[900]}/20`},bitcoin:{light:y.web3.bitcoin.light,dark:y.web3.bitcoin.dark},bitcoinBg:{light:`${y.orange[100]}`,dark:`${y.orange[900]}/30`},binance:{light:y.web3.binance.light,dark:y.web3.binance.dark},binanceBg:{light:`${y.amber[100]}`,dark:`${y.amber[900]}/30`},cardano:{light:y.web3.cardano.light,dark:y.web3.cardano.dark},cardanoBg:{light:`${y.blue[50]}`,dark:`${y.blue[900]}/20`},avalanche:{light:y.web3.avalanche.light,dark:y.web3.avalanche.dark},avalancheBg:{light:`${y.red[100]}`,dark:`${y.red[900]}/30`},arbitrum:{light:y.web3.arbitrum.light,dark:y.web3.arbitrum.dark},arbitrumBg:{light:`${y.neutral[100]}`,dark:`${y.neutral[800]}/50`},optimism:{light:y.web3.optimism.light,dark:y.web3.optimism.dark},optimismBg:{light:`${y.red[50]}`,dark:`${y.red[900]}/20`}}},dt={button:{primary:{base:"bg-blue-600 hover:bg-blue-700 active:bg-blue-800 text-white border-transparent",dark:"dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white",focus:"focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 dark:focus-visible:ring-blue-400",disabled:"disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-blue-600"},secondary:{base:"bg-gray-100 hover:bg-gray-200 active:bg-gray-300 text-gray-900 border-transparent",dark:"dark:bg-gray-800 dark:hover:bg-gray-700 dark:active:bg-gray-600 dark:text-gray-50",focus:"focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2",disabled:"disabled:opacity-50 disabled:cursor-not-allowed"},outline:{base:"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border-gray-300",dark:"dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600",focus:"focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",disabled:"disabled:opacity-50 disabled:cursor-not-allowed"},ghost:{base:"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent",dark:"dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300",focus:"focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2",disabled:"disabled:opacity-50 disabled:cursor-not-allowed"},destructive:{base:"bg-red-600 hover:bg-red-700 active:bg-red-800 text-white border-transparent",dark:"dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white",focus:"focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2",disabled:"disabled:opacity-50 disabled:cursor-not-allowed"},success:{base:"bg-green-600 hover:bg-green-700 active:bg-green-800 text-white border-transparent",dark:"dark:bg-green-600 dark:hover:bg-green-700 dark:active:bg-green-800 dark:text-white",focus:"focus-visible:ring-2 focus-visible:ring-green-500 focus-visible:ring-offset-2",disabled:"disabled:opacity-50 disabled:cursor-not-allowed"},link:{base:"bg-transparent hover:bg-transparent active:bg-transparent text-blue-600 border-transparent underline-offset-4 hover:underline",dark:"dark:text-blue-400",focus:"focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",disabled:"disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline"},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",secondary:"bg-gradient-to-r from-gray-100 to-gray-200 hover:from-gray-200 hover:to-gray-300 text-gray-900 border-transparent",success:"bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white border-transparent"}},card:{default:{base:"bg-white border-gray-200",dark:"dark:bg-gray-800 dark:border-gray-700",hover:"hover:shadow-md transition-shadow duration-200"},elevated:{base:"bg-white shadow-sm border-gray-200",dark:"dark:bg-gray-800 dark:border-gray-700",hover:"hover:shadow-lg transition-shadow duration-200"},interactive:{base:"bg-white border-gray-200 cursor-pointer",dark:"dark:bg-gray-800 dark:border-gray-700",hover:"hover:bg-gray-50 hover:shadow-md dark:hover:bg-gray-700 transition-all duration-200",focus:"focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"},success:{base:"bg-green-50 border-green-200",dark:"dark:bg-green-900/20 dark:border-green-800",text:"text-green-800 dark:text-green-200"},warning:{base:"bg-amber-50 border-amber-200",dark:"dark:bg-amber-900/20 dark:border-amber-800",text:"text-amber-800 dark:text-amber-200"},error:{base:"bg-red-50 border-red-200",dark:"dark:bg-red-900/20 dark:border-red-800",text:"text-red-800 dark:text-red-200"}},badge:{default:{base:"bg-gray-100 text-gray-800",dark:"dark:bg-gray-800 dark:text-gray-300"},primary:{base:"bg-blue-100 text-blue-800",dark:"dark:bg-blue-900/30 dark:text-blue-300"},success:{base:"bg-green-100 text-green-800",dark:"dark:bg-green-900/30 dark:text-green-300"},warning:{base:"bg-amber-100 text-amber-800",dark:"dark:bg-amber-900/30 dark:text-amber-300"},error:{base:"bg-red-100 text-red-800",dark:"dark:bg-red-900/30 dark:text-red-300"},ethereum:{base:"bg-blue-100 text-blue-800",dark:"dark:bg-blue-900/30 dark:text-blue-300"},solana:{base:"bg-purple-100 text-purple-800",dark:"dark:bg-purple-900/30 dark:text-purple-300"},polygon:{base:"bg-purple-50 text-purple-800",dark:"dark:bg-purple-900/20 dark:text-purple-300"},bitcoin:{base:"bg-orange-100 text-orange-800",dark:"dark:bg-orange-900/30 dark:text-orange-300"},binance:{base:"bg-amber-100 text-amber-800",dark:"dark:bg-amber-900/30 dark:text-amber-300"},cardano:{base:"bg-blue-50 text-blue-900",dark:"dark:bg-blue-900/20 dark:text-blue-200"},avalanche:{base:"bg-red-100 text-red-800",dark:"dark:bg-red-900/30 dark:text-red-300"},arbitrum:{base:"bg-gray-100 text-gray-800",dark:"dark:bg-gray-800/50 dark:text-gray-300"},optimism:{base:"bg-red-50 text-red-900",dark:"dark:bg-red-900/20 dark:text-red-200"}},input:{default:{base:"bg-white border-gray-300 text-gray-900 placeholder:text-gray-500",dark:"dark:bg-gray-900 dark:border-gray-600 dark:text-gray-100 dark:placeholder:text-gray-400",focus:"focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-blue-400 dark:focus:border-blue-400",error:"border-red-300 focus:border-red-500 focus:ring-red-500 dark:border-red-700"},search:{base:"bg-gray-50 border-gray-200 text-gray-900 placeholder:text-gray-500",dark:"dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100 dark:placeholder:text-gray-400",focus:"focus:bg-white focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:focus:bg-gray-900"}},alert:{info:{base:"bg-blue-50 border-blue-200 text-blue-800",dark:"dark:bg-blue-900/20 dark:border-blue-800 dark:text-blue-200",icon:"text-blue-600 dark:text-blue-400"},success:{base:"bg-green-50 border-green-200 text-green-800",dark:"dark:bg-green-900/20 dark:border-green-800 dark:text-green-200",icon:"text-green-600 dark:text-green-400"},warning:{base:"bg-amber-50 border-amber-200 text-amber-800",dark:"dark:bg-amber-900/20 dark:border-amber-800 dark:text-amber-200",icon:"text-amber-600 dark:text-amber-400"},error:{base:"bg-red-50 border-red-200 text-red-800",dark:"dark:bg-red-900/20 dark:border-red-800 dark:text-red-200",icon:"text-red-600 dark:text-red-400"}}},Ar=(t,e,r=["focus"])=>{const o=dt[t][e];return o?[o.base,o.dark,...r.map(n=>o[n]).filter(Boolean)].join(" "):(console.warn(`Color variant '${e}' not found for component '${t}'`),"")},Pr=(t,e,r,o)=>{const n=[`bg-${t}`,`text-${e}`];return r&&n.push(`border-${r}`),o?.hover&&(o.hover.background&&n.push(`hover:bg-${o.hover.background}`),o.hover.text&&n.push(`hover:text-${o.hover.text}`),o.hover.border&&n.push(`hover:border-${o.hover.border}`)),o?.focus?.ring&&n.push(`focus:ring-2 focus:ring-${o.focus.ring}`),o?.dark&&(o.dark.background&&n.push(`dark:bg-${o.dark.background}`),o.dark.text&&n.push(`dark:text-${o.dark.text}`),o.dark.border&&n.push(`dark:border-${o.dark.border}`)),n.join(" ")},$e={raw:y,semantic:Ir,component:dt,utils:{getColorClasses:Ar,buildColorClass:Pr}},g={spacing:{xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8","2xl":"p-12","3xl":"p-16","4xl":"p-20","5xl":"p-24"},margin:{xs:"m-1",sm:"m-2",md:"m-4",lg:"m-6",xl:"m-8","2xl":"m-12","3xl":"m-16","4xl":"m-20","5xl":"m-24"},padding:{xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8","2xl":"p-12","3xl":"p-16"},gap:{xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12","3xl":"gap-16"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},shadow:{none:"shadow-none",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl"},typography:{family:{sans:"font-sans",serif:"font-serif",mono:"font-mono",display:"font-sans",body:"font-sans"},size:{micro:"text-[10px]",xs:"text-xs",sm:"text-sm",base:"text-base",md:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},semantic:{caption:"text-xs",small:"text-sm",body:"text-base",bodyLarge:"text-lg",subheading:"text-xl",h6:"text-base",h5:"text-lg",h4:"text-xl",h3:"text-2xl",h2:"text-3xl",h1:"text-4xl",display:"text-6xl",hero:"text-8xl"},weight:{thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold",black:"font-black",body:"font-normal",emphasis:"font-medium",strong:"font-semibold",heading:"font-bold",display:"font-extrabold"},style:{normal:"not-italic",italic:"italic",oblique:"italic"},decoration:{none:"no-underline",underline:"underline",overline:"overline",lineThrough:"line-through"},decorationStyle:{solid:"decoration-solid",double:"decoration-double",dotted:"decoration-dotted",dashed:"decoration-dashed",wavy:"decoration-wavy"},decorationThickness:{auto:"decoration-auto",fromFont:"decoration-from-font",thin:"decoration-1",medium:"decoration-2",thick:"decoration-4"},underlineOffset:{auto:"underline-offset-auto",small:"underline-offset-1",medium:"underline-offset-2",large:"underline-offset-4",xl:"underline-offset-8"},leading:{none:"leading-none",tight:"leading-tight",snug:"leading-snug",normal:"leading-normal",relaxed:"leading-relaxed",loose:"leading-loose",heading:"leading-tight",body:"leading-relaxed",caption:"leading-normal",display:"leading-none"},tracking:{tighter:"tracking-tighter",tight:"tracking-tight",normal:"tracking-normal",wide:"tracking-wide",wider:"tracking-wider",widest:"tracking-widest",heading:"tracking-tight",body:"tracking-normal",caption:"tracking-normal",button:"tracking-wide",uppercase:"tracking-wider"},transform:{none:"normal-case",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify",start:"text-start",end:"text-end"},verticalAlign:{baseline:"align-baseline",top:"align-top",middle:"align-middle",bottom:"align-bottom",textTop:"align-text-top",textBottom:"align-text-bottom",sub:"align-sub",super:"align-super"},whitespace:{normal:"whitespace-normal",nowrap:"whitespace-nowrap",pre:"whitespace-pre",preLine:"whitespace-pre-line",preWrap:"whitespace-pre-wrap",break:"whitespace-break-spaces"},wordBreak:{normal:"break-normal",words:"break-words",all:"break-all",keep:"break-keep"},overflow:{clip:"text-clip",ellipsis:"text-ellipsis"},indent:{none:"indent-0",sm:"indent-1",md:"indent-4",lg:"indent-8"}},animation:{none:"duration-0",fastest:"duration-75",fast:"duration-150",normal:"duration-200",slow:"duration-300",slower:"duration-500",slowest:"duration-700"},ease:{linear:"ease-linear",in:"ease-in",out:"ease-out",inOut:"ease-in-out"},zIndex:{auto:"z-auto",base:"z-0",docked:"z-10",dropdown:"z-20",sticky:"z-30",banner:"z-40",overlay:"z-50",modal:"z-60",popover:"z-70",skipLink:"z-80",toast:"z-90",tooltip:"z-100"},breakpoints:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},grid:{cols1:"grid-cols-1",cols2:"grid-cols-2",cols3:"grid-cols-3",cols4:"grid-cols-4",cols5:"grid-cols-5",cols6:"grid-cols-6",cols12:"grid-cols-12"},gridResponsive:{responsive2:"grid-cols-1 md:grid-cols-2",responsive3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",responsive4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4",responsive6:"grid-cols-2 md:grid-cols-3 lg:grid-cols-6"},flex:{center:"flex items-center justify-center",between:"flex items-center justify-between",start:"flex items-center justify-start",end:"flex items-center justify-end",col:"flex flex-col",colCenter:"flex flex-col items-center justify-center",wrap:"flex flex-wrap"},width:{full:"w-full",screen:"w-screen",auto:"w-auto",fit:"w-fit",container:"w-full max-w-7xl mx-auto",containerSm:"w-full max-w-3xl mx-auto",containerLg:"w-full max-w-full mx-auto"},height:{full:"h-full",screen:"h-screen",auto:"h-auto",fit:"h-fit",min:"min-h-0",minScreen:"min-h-screen"}},E={heading:{display:{hero:()=>`${g.typography.family.display} ${g.typography.semantic.hero} ${g.typography.weight.display} ${g.typography.leading.display} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,xl:()=>`${g.typography.family.display} text-7xl ${g.typography.weight.display} ${g.typography.leading.display} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,lg:()=>`${g.typography.family.display} text-6xl ${g.typography.weight.bold} ${g.typography.leading.display} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,md:()=>`${g.typography.family.display} text-5xl ${g.typography.weight.bold} ${g.typography.leading.tight} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,sm:()=>`${g.typography.family.display} text-4xl ${g.typography.weight.bold} ${g.typography.leading.tight} ${g.typography.tracking.heading} text-gray-900 dark:text-white`},h1:()=>`${g.typography.family.sans} ${g.typography.semantic.h1} ${g.typography.weight.heading} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${g.typography.family.sans} ${g.typography.semantic.h2} ${g.typography.weight.heading} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${g.typography.family.sans} ${g.typography.semantic.h3} ${g.typography.weight.heading} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,h4:()=>`${g.typography.family.sans} ${g.typography.semantic.h4} ${g.typography.weight.semibold} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,h5:()=>`${g.typography.family.sans} ${g.typography.semantic.h5} ${g.typography.weight.semibold} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,h6:()=>`${g.typography.family.sans} ${g.typography.semantic.h6} ${g.typography.weight.semibold} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,responsive:{h1:()=>`${g.typography.family.sans} text-2xl sm:text-3xl md:text-4xl lg:text-5xl ${g.typography.weight.heading} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${g.typography.family.sans} text-xl sm:text-2xl md:text-3xl lg:text-4xl ${g.typography.weight.heading} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${g.typography.family.sans} text-lg sm:text-xl md:text-2xl lg:text-3xl ${g.typography.weight.semibold} ${g.typography.leading.heading} ${g.typography.tracking.heading} text-gray-900 dark:text-white`,display:()=>`${g.typography.family.display} text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl ${g.typography.weight.display} ${g.typography.leading.display} ${g.typography.tracking.heading} text-gray-900 dark:text-white`}},body:{xl:()=>`${g.typography.family.body} ${g.typography.semantic.bodyLarge} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-700 dark:text-gray-300`,lg:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${g.typography.family.body} ${g.typography.semantic.small} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-600 dark:text-gray-400`,xs:()=>`${g.typography.family.body} ${g.typography.semantic.caption} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-600 dark:text-gray-400`,strong:{xl:()=>`${g.typography.family.body} ${g.typography.semantic.bodyLarge} ${g.typography.weight.strong} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.strong} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.strong} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${g.typography.family.body} ${g.typography.semantic.small} ${g.typography.weight.strong} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-900 dark:text-white`},emphasis:{xl:()=>`${g.typography.family.body} ${g.typography.semantic.bodyLarge} ${g.typography.weight.emphasis} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.emphasis} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.emphasis} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${g.typography.family.body} ${g.typography.semantic.small} ${g.typography.weight.emphasis} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-900 dark:text-white`},muted:{xl:()=>`${g.typography.family.body} ${g.typography.semantic.bodyLarge} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-600 dark:text-gray-400`,lg:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-600 dark:text-gray-400`,md:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-600 dark:text-gray-400`,sm:()=>`${g.typography.family.body} ${g.typography.semantic.small} ${g.typography.weight.body} ${g.typography.leading.body} ${g.typography.tracking.body} text-gray-600 dark:text-gray-400`}},caption:{default:()=>`${g.typography.family.body} ${g.typography.semantic.caption} ${g.typography.weight.body} ${g.typography.leading.caption} ${g.typography.tracking.caption} text-gray-500 dark:text-gray-500`,emphasis:()=>`${g.typography.family.body} ${g.typography.semantic.caption} ${g.typography.weight.emphasis} ${g.typography.leading.caption} ${g.typography.tracking.caption} text-gray-600 dark:text-gray-400`,uppercase:()=>`${g.typography.family.body} ${g.typography.semantic.caption} ${g.typography.weight.emphasis} ${g.typography.leading.caption} ${g.typography.tracking.uppercase} ${g.typography.transform.uppercase} text-gray-500 dark:text-gray-500`},lead:{lg:()=>`${g.typography.family.body} text-xl ${g.typography.weight.body} ${g.typography.leading.relaxed} ${g.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${g.typography.family.body} ${g.typography.semantic.bodyLarge} ${g.typography.weight.body} ${g.typography.leading.relaxed} ${g.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${g.typography.family.body} ${g.typography.semantic.body} ${g.typography.weight.body} ${g.typography.leading.relaxed} ${g.typography.tracking.body} text-gray-700 dark:text-gray-300`},link:{default:()=>`${g.typography.decoration.underline} ${g.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150`,subtle:()=>`${g.typography.decoration.none} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:${g.typography.decoration.underline} hover:${g.typography.underlineOffset.medium} transition-all duration-150`,muted:()=>`${g.typography.decoration.underline} ${g.typography.underlineOffset.medium} text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors duration-150`,external:()=>`${g.typography.decoration.underline} ${g.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`},code:{inline:()=>`${g.typography.family.mono} text-sm ${g.typography.weight.medium} px-1.5 py-0.5 rounded bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-gray-100`,block:()=>`${g.typography.family.mono} text-sm ${g.typography.weight.body} ${g.typography.leading.relaxed} p-4 rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-gray-100 overflow-x-auto`,small:()=>`${g.typography.family.mono} text-xs ${g.typography.weight.medium} px-1 py-0.5 rounded bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-gray-100`},label:{default:()=>`${g.typography.family.body} text-sm ${g.typography.weight.emphasis} text-gray-900 dark:text-white`,required:()=>`${g.typography.family.body} text-sm ${g.typography.weight.emphasis} text-gray-900 dark:text-white after:content-['*'] after:ml-0.5 after:text-red-500`,optional:()=>`${g.typography.family.body} text-sm ${g.typography.weight.body} text-gray-600 dark:text-gray-400`,helper:()=>`${g.typography.family.body} text-sm ${g.typography.weight.body} text-gray-500 dark:text-gray-500`,error:()=>`${g.typography.family.body} text-sm ${g.typography.weight.body} text-red-600 dark:text-red-400`,success:()=>`${g.typography.family.body} text-sm ${g.typography.weight.body} text-green-600 dark:text-green-400`},web3:{address:()=>`${g.typography.family.mono} text-sm ${g.typography.weight.body} text-gray-900 dark:text-white break-all`,addressShort:()=>`${g.typography.family.mono} text-sm ${g.typography.weight.body} text-gray-900 dark:text-white`,hash:()=>`${g.typography.family.mono} text-xs ${g.typography.weight.body} text-gray-500 dark:text-gray-500 break-all`,amount:()=>`${g.typography.family.mono} text-base ${g.typography.weight.emphasis} text-gray-900 dark:text-white`,chain:()=>`${g.typography.family.body} text-sm ${g.typography.weight.emphasis} text-gray-900 dark:text-white`,symbol:()=>`${g.typography.family.body} text-sm ${g.typography.weight.bold} ${g.typography.transform.uppercase} text-gray-900 dark:text-white`},truncate:{line:()=>`${g.typography.overflow.ellipsis} ${g.typography.whitespace.nowrap} overflow-hidden`,lines2:()=>"line-clamp-2",lines3:()=>"line-clamp-3",lines4:()=>"line-clamp-4"},selection:{default:()=>"selection:bg-blue-200 dark:selection:bg-blue-800 selection:text-blue-900 dark:selection:text-blue-100",brand:()=>"selection:bg-purple-200 dark:selection:bg-purple-800 selection:text-purple-900 dark:selection:text-purple-100"}},C={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"}},card:{default:{base:()=>"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg",padded:()=>"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-6",interactive:()=>"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-6 transition-all duration-200 hover:shadow-md cursor-pointer"},elevated:{base:()=>"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-sm",padded:()=>"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-sm p-6",interactive:()=>"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-sm p-6 transition-all duration-200 hover:shadow-lg cursor-pointer"},state:{success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded-lg border p-4",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded-lg border p-4",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded-lg border p-4",info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded-lg border p-4"}},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:(t="default")=>{const e={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`${e[t]||e.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`},large:(t="default")=>{const e={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`${e[t]||e.default} inline-flex items-center px-3 py-1 rounded-full text-sm font-medium`}},input:{default:()=>"bg-white dark:bg-gray-900 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-white dark:bg-gray-900 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-white dark:bg-gray-900 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-white dark:bg-gray-900 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-white dark:bg-gray-900 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-white dark:bg-gray-900 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"}},loading:{spinner:{default:()=>"animate-spin rounded-full border-2 border-gray-200 border-t-blue-600 dark:border-gray-700 dark:border-t-blue-400 w-5 h-5",small:()=>"animate-spin rounded-full border-2 border-gray-200 border-t-blue-600 dark:border-gray-700 dark:border-t-blue-400 w-4 h-4",large:()=>"animate-spin rounded-full border-2 border-gray-200 border-t-blue-600 dark:border-gray-700 dark:border-t-blue-400 w-8 h-8",extraLarge:()=>"animate-spin rounded-full border-4 border-gray-200 border-t-blue-600 dark:border-gray-700 dark:border-t-blue-400 w-16 h-16",white:()=>"animate-spin rounded-full border-2 border-white/30 border-t-white w-5 h-5",success:()=>"animate-spin rounded-full border-2 border-green-200 border-t-green-600 dark:border-green-700 dark:border-t-green-400 w-5 h-5",warning:()=>"animate-spin rounded-full border-2 border-amber-200 border-t-amber-600 dark:border-amber-700 dark:border-t-amber-400 w-5 h-5",error:()=>"animate-spin rounded-full border-2 border-red-200 border-t-red-600 dark:border-red-700 dark:border-t-red-400 w-5 h-5"},state:{default:()=>"flex flex-col items-center justify-center py-8 px-4",fullScreen:()=>"flex flex-col items-center justify-center min-h-screen bg-white dark:bg-gray-900",inline:()=>"inline-flex items-center gap-2",center:()=>"flex items-center justify-center"},button:{default:()=>"inline-flex items-center gap-2 opacity-70 cursor-wait pointer-events-none",primary:()=>"bg-blue-600 text-white hover:bg-blue-700 inline-flex items-center gap-2 opacity-70 cursor-wait pointer-events-none px-4 py-2 rounded-md text-sm font-medium",secondary:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 inline-flex items-center gap-2 opacity-70 cursor-wait pointer-events-none px-4 py-2 rounded-md text-sm font-medium dark:bg-gray-800 dark:text-gray-50"},skeleton:{default:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded",text:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded h-4",title:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded h-6",avatar:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded-full w-10 h-10",card:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded-lg h-32"},progress:{bar:()=>"w-full bg-gray-200 rounded-full h-2 dark:bg-gray-700",fill:()=>"bg-blue-600 h-2 rounded-full transition-all duration-300",indeterminate:()=>"w-full bg-gray-200 rounded-full h-2 dark:bg-gray-700 overflow-hidden relative before:absolute before:inset-0 before:bg-blue-600 before:rounded-full before:animate-pulse"},dots:{default:()=>"flex space-x-1 justify-center items-center",dot:()=>"w-2 h-2 bg-blue-600 dark:bg-blue-400 rounded-full animate-pulse",dotStaggered:(t=0)=>`w-2 h-2 bg-blue-600 dark:bg-blue-400 rounded-full animate-pulse animation-delay-${t}`}},modal:{overlay:{default:()=>"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",dark:()=>"fixed inset-0 bg-black/70 backdrop-blur-sm z-50 flex items-center justify-center p-4",light:()=>"fixed inset-0 bg-black/30 backdrop-blur-sm z-50 flex items-center justify-center p-4"},container:{default:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[90vh] overflow-hidden",small:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[90vh] overflow-hidden w-full max-w-sm",medium:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[90vh] overflow-hidden w-full max-w-md",large:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[90vh] overflow-hidden w-full max-w-2xl",extraLarge:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[90vh] overflow-hidden w-full max-w-4xl",fullScreen:()=>"bg-white dark:bg-gray-800 shadow-xl border border-gray-200 dark:border-gray-700 w-full h-full overflow-hidden"},header:{default:()=>"px-6 py-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between",centered:()=>"px-6 py-4 border-b border-gray-200 dark:border-gray-700 text-center",minimal:()=>"px-6 py-4 flex items-center justify-between"},content:{default:()=>"px-6 py-4 overflow-y-auto flex-1",padded:()=>"px-6 py-6 overflow-y-auto flex-1",compact:()=>"px-4 py-3 overflow-y-auto flex-1",scrollable:()=>"px-6 py-4 overflow-y-auto flex-1 max-h-96"},footer:{default:()=>"px-6 py-4 border-t border-gray-200 dark:border-gray-700 flex items-center justify-end gap-3",centered:()=>"px-6 py-4 border-t border-gray-200 dark:border-gray-700 flex items-center justify-center gap-3",spaceBetween:()=>"px-6 py-4 border-t border-gray-200 dark:border-gray-700 flex items-center justify-between",minimal:()=>"px-6 py-4 flex items-center justify-end gap-3"},close:{default:()=>"text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300 transition-colors duration-200 p-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700",subtle:()=>"text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300 transition-colors duration-200",prominent:()=>"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 transition-colors duration-200 p-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 border border-gray-200 dark:border-gray-600"},web3:{wallet:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[90vh] overflow-hidden w-full max-w-md",transaction:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[90vh] overflow-hidden w-full max-w-lg",confirmation:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[90vh] overflow-hidden w-full max-w-sm"},animation:{fadeIn:()=>"animate-in fade-in-0 duration-200",slideIn:()=>"animate-in fade-in-0 zoom-in-95 duration-200",slideUp:()=>"animate-in fade-in-0 slide-in-from-bottom-4 duration-200",fadeOut:()=>"animate-out fade-out-0 duration-150",slideOut:()=>"animate-out fade-out-0 zoom-out-95 duration-150"}},navigation:{breadcrumb:{container:()=>"flex items-center justify-between text-sm",list:()=>"flex items-center space-x-1",item:()=>"flex items-center",separator:()=>"h-4 w-4 text-gray-400 dark:text-gray-500 mx-2 flex-shrink-0",link:()=>"flex items-center text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:rounded-sm",current:()=>"flex items-center text-gray-900 dark:text-white font-medium",home:()=>"h-4 w-4 mr-1 flex-shrink-0"},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"},menu:{trigger:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-md px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors",content:()=>"z-50 min-w-[12rem] overflow-hidden rounded-md border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 p-1 text-gray-900 dark:text-gray-100 shadow-lg",item:()=>"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 focus:text-gray-900 dark:focus:bg-gray-700 dark:focus:text-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",separator:()=>"-mx-1 my-1 h-px bg-gray-200 dark:bg-gray-700",label:()=>"px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-100",shortcut:()=>"ml-auto text-xs tracking-widest text-gray-500 dark:text-gray-400"},pagination:{container:()=>"flex items-center justify-between border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 py-3 sm:px-6",info:()=>"flex flex-1 justify-between sm:hidden",nav:()=>"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between",results:()=>"text-sm text-gray-700 dark:text-gray-300",buttons:()=>"relative z-0 inline-flex rounded-md shadow-sm -space-x-px",button:()=>"relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 focus:z-10 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 transition-colors",buttonActive:()=>"relative inline-flex items-center px-4 py-2 text-sm font-medium text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/20 border border-blue-300 dark:border-blue-700 z-10",buttonFirst:()=>"rounded-l-md",buttonLast:()=>"rounded-r-md",mobileButton:()=>"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 rounded-md transition-colors"},sidebar:{container:()=>"flex flex-col h-full bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700",nav:()=>"flex-1 px-4 py-6 space-y-1",item:()=>"group flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-gray-100 transition-colors",itemActive:()=>"group flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 border-r-2 border-blue-500",icon:()=>"mr-3 h-5 w-5 flex-shrink-0 text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-400",iconActive:()=>"mr-3 h-5 w-5 flex-shrink-0 text-blue-500 dark:text-blue-400"},steps:{container:()=>"flex items-center justify-center",list:()=>"flex items-center space-x-4",step:()=>"flex items-center space-x-2",circle:()=>"flex items-center justify-center w-8 h-8 rounded-full border-2 border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 text-sm font-medium",circleActive:()=>"flex items-center justify-center w-8 h-8 rounded-full border-2 border-blue-600 dark:border-blue-400 bg-blue-600 dark:bg-blue-400 text-white text-sm font-medium",circleCompleted:()=>"flex items-center justify-center w-8 h-8 rounded-full border-2 border-green-600 dark:border-green-400 bg-green-600 dark:bg-green-400 text-white text-sm font-medium",label:()=>"text-sm font-medium text-gray-900 dark:text-gray-100",labelInactive:()=>"text-sm font-medium text-gray-500 dark:text-gray-400",connector:()=>"w-12 h-px bg-gray-300 dark:bg-gray-600",connectorActive:()=>"w-12 h-px bg-blue-600 dark:bg-blue-400"}},dataDisplay:{table:{container:()=>"w-full overflow-hidden rounded-lg border border-gray-200 dark:border-gray-700",wrapper:()=>"overflow-x-auto",table:()=>"min-w-full divide-y divide-gray-200 dark:divide-gray-700",thead:()=>"bg-gray-50 dark:bg-gray-800",tbody:()=>"bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700",tfoot:()=>"bg-gray-50 dark:bg-gray-800",tr:()=>"hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",trSelected:()=>"bg-blue-50 dark:bg-blue-900/20 hover:bg-blue-100 dark:hover:bg-blue-900/30",th:()=>"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",thSortable:()=>"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider cursor-pointer hover:text-gray-700 dark:hover:text-gray-200 transition-colors",td:()=>"px-6 py-4 whitespace-nowrap text-sm text-gray-900 dark:text-gray-100",tdCompact:()=>"px-3 py-2 whitespace-nowrap text-sm text-gray-900 dark:text-gray-100"},list:{container:()=>"bg-white dark:bg-gray-900 shadow overflow-hidden rounded-lg",ul:()=>"divide-y divide-gray-200 dark:divide-gray-700",li:()=>"px-4 py-4 sm:px-6 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",liActive:()=>"px-4 py-4 sm:px-6 bg-blue-50 dark:bg-blue-900/20 border-l-4 border-blue-500",emailItem:()=>"flex items-center px-4 py-3 hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer transition-colors",emailItemRead:()=>"flex items-center px-4 py-3 hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer transition-colors opacity-60",emailItemSelected:()=>"flex items-center px-4 py-3 bg-blue-50 dark:bg-blue-900/20 hover:bg-blue-100 dark:hover:bg-blue-900/30 cursor-pointer"},grid:{container:()=>"grid gap-4",twoColumn:()=>"grid grid-cols-1 md:grid-cols-2 gap-4",threeColumn:()=>"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",fourColumn:()=>"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",autoFit:()=>"grid grid-cols-[repeat(auto-fit,minmax(250px,1fr))] gap-4"},keyValue:{container:()=>"bg-white dark:bg-gray-900 shadow overflow-hidden rounded-lg",list:()=>"divide-y divide-gray-200 dark:divide-gray-700",row:()=>"px-4 py-4 sm:px-6 sm:grid sm:grid-cols-3 sm:gap-4",key:()=>"text-sm font-medium text-gray-500 dark:text-gray-400",value:()=>"mt-1 text-sm text-gray-900 dark:text-gray-100 sm:mt-0 sm:col-span-2",inline:()=>"flex items-center space-x-2",inlineKey:()=>"text-sm font-medium text-gray-500 dark:text-gray-400",inlineValue:()=>"text-sm text-gray-900 dark:text-gray-100"},code:{inline:()=>"font-mono text-sm text-pink-600 dark:text-pink-400 bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded",block:()=>"font-mono text-sm text-gray-900 dark:text-gray-100 bg-gray-100 dark:bg-gray-800 p-4 rounded-lg overflow-x-auto",address:()=>"font-mono text-sm text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/20 px-2 py-1 rounded select-all",hash:()=>"font-mono text-sm text-purple-600 dark:text-purple-400 bg-purple-50 dark:bg-purple-900/20 px-2 py-1 rounded select-all",keyword:()=>"text-purple-600 dark:text-purple-400",string:()=>"text-green-600 dark:text-green-400",number:()=>"text-blue-600 dark:text-blue-400",comment:()=>"text-gray-500 dark:text-gray-500 italic"},stats:{container:()=>"bg-white dark:bg-gray-900 overflow-hidden shadow rounded-lg",grid:()=>"grid grid-cols-1 md:grid-cols-3 divide-y md:divide-y-0 md:divide-x divide-gray-200 dark:divide-gray-700",item:()=>"px-4 py-5 sm:p-6",label:()=>"text-sm font-medium text-gray-500 dark:text-gray-400 truncate",value:()=>"mt-1 text-3xl font-semibold text-gray-900 dark:text-gray-100",change:()=>"mt-2 flex items-center text-sm",changePositive:()=>"text-green-600 dark:text-green-400",changeNegative:()=>"text-red-600 dark:text-red-400"},empty:{container:()=>"text-center py-12",icon:()=>"mx-auto h-12 w-12 text-gray-400",title:()=>"mt-2 text-sm font-medium text-gray-900 dark:text-gray-100",description:()=>"mt-1 text-sm text-gray-500 dark:text-gray-400",action:()=>"mt-6"},timeline:{container:()=>"flow-root",list:()=>"-mb-8",item:()=>"relative pb-8",itemLast:()=>"relative",connector:()=>"absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200 dark:bg-gray-700",dot:()=>"relative flex h-8 w-8 items-center justify-center rounded-full bg-white dark:bg-gray-800 ring-8 ring-white dark:ring-gray-900",dotActive:()=>"bg-blue-600 dark:bg-blue-400",dotComplete:()=>"bg-green-600 dark:bg-green-400",content:()=>"ml-12 flex flex-col",time:()=>"text-xs text-gray-500 dark:text-gray-400",title:()=>"text-sm font-medium text-gray-900 dark:text-gray-100",description:()=>"mt-1 text-sm text-gray-500 dark:text-gray-400"}},formsAdvanced:{wizard:{container:()=>"w-full",steps:()=>"flex items-center justify-between mb-8",step:()=>"flex flex-col items-center",stepCircle:()=>"w-10 h-10 rounded-full flex items-center justify-center text-sm font-medium border-2 transition-all",stepCompleted:()=>"bg-green-100 border-green-500 text-green-700 dark:bg-green-900/30 dark:border-green-400 dark:text-green-300",stepCurrent:()=>"bg-blue-100 border-blue-500 text-blue-700 dark:bg-blue-900/30 dark:border-blue-400 dark:text-blue-300",stepInactive:()=>"bg-gray-100 border-gray-300 text-gray-500 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-400",stepContent:()=>"mt-2 text-center",stepTitle:()=>"text-sm font-medium",stepDescription:()=>"text-xs text-gray-500 dark:text-gray-400 mt-1",connector:()=>"flex-1 h-px bg-gray-200 dark:bg-gray-700 mt-5",connectorCompleted:()=>"flex-1 h-px bg-green-300 dark:bg-green-600 mt-5"},fileUpload:{dropzone:()=>"border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-lg p-8 text-center transition-colors hover:border-gray-400 dark:hover:border-gray-500 cursor-pointer",dropzoneActive:()=>"border-blue-400 bg-blue-50 dark:bg-blue-900/20 dark:border-blue-500",dropzoneError:()=>"border-red-400 bg-red-50 dark:bg-red-900/20 dark:border-red-500",icon:()=>"h-12 w-12 text-gray-400 mx-auto mb-4",text:()=>"text-lg font-medium text-gray-900 dark:text-gray-100 mb-2",subtext:()=>"text-sm text-gray-500 dark:text-gray-400 mb-4",button:()=>"inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm 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 cursor-pointer transition-colors",input:()=>"sr-only",fileList:()=>"mt-6 space-y-2",fileItem:()=>"flex items-center justify-between p-3 bg-gray-50 dark:bg-gray-800 rounded-lg",fileIcon:()=>"w-8 h-8 bg-blue-100 dark:bg-blue-900 rounded flex items-center justify-center mr-3",fileName:()=>"text-sm font-medium text-gray-900 dark:text-gray-100",fileSize:()=>"text-xs text-gray-500 dark:text-gray-400",removeButton:()=>"p-1 text-gray-400 hover:text-red-500 transition-colors"},web3:{container:()=>"space-y-2",label:()=>"text-sm font-medium text-gray-700 dark:text-gray-300 mb-2 flex items-center",labelIcon:()=>"h-4 w-4 inline mr-1",inputGroup:()=>"flex rounded-md shadow-sm",tokenInput:()=>"rounded-r-none font-mono",tokenSymbol:()=>"inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 text-gray-500 dark:text-gray-400 text-sm font-medium",balance:()=>"text-sm text-gray-500 dark:text-gray-400",balanceActions:()=>"flex space-x-2",maxButton:()=>"text-xs",addressInput:()=>"font-mono text-sm",addressValid:()=>"border-green-300 dark:border-green-600 pr-10",addressInvalid:()=>"border-red-300 dark:border-red-600 pr-10",gasSettings:()=>"grid grid-cols-3 gap-2",gasOption:()=>"p-2 text-center border rounded-md transition-colors cursor-pointer",gasOptionActive:()=>"border-blue-300 bg-blue-50 dark:border-blue-600 dark:bg-blue-900/20",gasOptionInactive:()=>"border-gray-300 dark:border-gray-600 hover:border-gray-400 dark:hover:border-gray-500"},validation:{container:()=>"space-y-1",label:()=>"text-sm font-medium text-gray-700 dark:text-gray-300",input:()=>"block w-full rounded-md border-gray-300 dark:border-gray-600 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:text-gray-100",inputSuccess:()=>"border-green-300 dark:border-green-600 focus:border-green-500 focus:ring-green-500 pr-10",inputError:()=>"border-red-300 dark:border-red-600 focus:border-red-500 focus:ring-red-500 pr-10",inputWarning:()=>"border-yellow-300 dark:border-yellow-600 focus:border-yellow-500 focus:ring-yellow-500 pr-10",successIcon:()=>"absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-green-500",errorIcon:()=>"absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-red-500",warningIcon:()=>"absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-yellow-500",loadingIcon:()=>"absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 animate-spin text-blue-600",successMessage:()=>"text-xs text-green-600 dark:text-green-400",errorMessage:()=>"text-xs text-red-600 dark:text-red-400",warningMessage:()=>"text-xs text-yellow-600 dark:text-yellow-400",helpMessage:()=>"text-xs text-gray-500 dark:text-gray-400",requirements:()=>"space-y-1 mt-2",requirement:()=>"flex items-center text-xs",requirementMet:()=>"text-green-600 dark:text-green-400",requirementUnmet:()=>"text-gray-500 dark:text-gray-400",requirementIcon:()=>"h-3 w-3 mr-1"},layout:{section:()=>"space-y-6",sectionTitle:()=>"text-lg font-medium text-gray-900 dark:text-gray-100",sectionDescription:()=>"text-sm text-gray-500 dark:text-gray-400",fieldGroup:()=>"space-y-4",fieldRow:()=>"grid grid-cols-1 md:grid-cols-2 gap-4",fieldColumn:()=>"space-y-4",actions:()=>"flex justify-between pt-6 border-t border-gray-200 dark:border-gray-700",actionsRight:()=>"flex justify-end space-x-4 pt-6 border-t border-gray-200 dark:border-gray-700",actionsCenter:()=>"flex justify-center space-x-4 pt-6 border-t border-gray-200 dark:border-gray-700"},security:{container:()=>"relative",input:()=>"font-mono",toggleButton:()=>"absolute inset-y-0 right-0 pr-3 flex items-center text-gray-400 hover:text-gray-600 dark:hover:text-gray-200",strengthMeter:()=>"mt-2 h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",strengthBar:()=>"h-full transition-all duration-300",strengthWeak:()=>"bg-red-500 w-1/4",strengthMedium:()=>"bg-yellow-500 w-1/2",strengthStrong:()=>"bg-green-500 w-3/4",strengthVeryStrong:()=>"bg-green-600 w-full"},conditional:{container:()=>"space-y-4",trigger:()=>"flex items-center space-x-2",content:()=>"ml-6 mt-4 pl-4 border-l-2 border-gray-200 dark:border-gray-700 space-y-4",contentVisible:()=>"opacity-100 max-h-none",contentHidden:()=>"opacity-0 max-h-0 overflow-hidden"}},notifications:{toast:{container:()=>"fixed top-4 right-4 z-50 max-w-sm w-full transform transition-all duration-300 ease-out",content:()=>"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg p-4",wrapper:()=>"flex items-start space-x-3",icon:()=>"flex-shrink-0 mt-0.5",successIcon:()=>"h-5 w-5 text-green-500",errorIcon:()=>"h-5 w-5 text-red-500",warningIcon:()=>"h-5 w-5 text-yellow-500",infoIcon:()=>"h-5 w-5 text-blue-500",text:()=>"flex-1 min-w-0",title:()=>"text-sm font-medium text-gray-900 dark:text-gray-100",message:()=>"mt-1 text-sm text-gray-500 dark:text-gray-400",action:()=>"mt-2 text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-200 cursor-pointer",closeButton:()=>"ml-4 flex-shrink-0 text-gray-400 hover:text-gray-500 dark:hover:text-gray-300 cursor-pointer",success:()=>"border-green-200 dark:border-green-800 bg-green-50 dark:bg-green-900/20",error:()=>"border-red-200 dark:border-red-800 bg-red-50 dark:bg-red-900/20",warning:()=>"border-yellow-200 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-900/20",info:()=>"border-blue-200 dark:border-blue-800 bg-blue-50 dark:bg-blue-900/20"},progress:{container:()=>"w-full",content:()=>"flex items-center justify-between mb-2",text:()=>"flex-1 min-w-0 mr-4",title:()=>"text-sm font-medium text-gray-700 dark:text-gray-300",message:()=>"text-xs text-gray-500 dark:text-gray-400 mt-1",bar:()=>"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2 overflow-hidden",fill:()=>"h-full bg-blue-600 rounded-full transition-all duration-300",fillSuccess:()=>"h-full bg-green-600 rounded-full transition-all duration-300",fillError:()=>"h-full bg-red-600 rounded-full transition-all duration-300",fillWarning:()=>"h-full bg-yellow-600 rounded-full transition-all duration-300",percentage:()=>"text-sm text-gray-500 dark:text-gray-400 ml-2 flex-shrink-0",circle:()=>"relative w-8 h-8",circleTrack:()=>"absolute inset-0 rounded-full border-2 border-gray-200 dark:border-gray-700",circleFill:()=>"absolute inset-0 rounded-full border-2 border-transparent transition-all duration-300",spinner:()=>"animate-spin rounded-full border-2 border-transparent",spinnerPrimary:()=>"border-t-blue-600 border-r-blue-600",spinnerSuccess:()=>"border-t-green-600 border-r-green-600",spinnerError:()=>"border-t-red-600 border-r-red-600",spinnerWarning:()=>"border-t-yellow-600 border-r-yellow-600"},transaction:{container:()=>"border border-gray-200 dark:border-gray-700 rounded-lg p-4 bg-white dark:bg-gray-800",wrapper:()=>"flex items-start space-x-3",icon:()=>"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0",iconPending:()=>"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-600 dark:text-yellow-400",iconConfirming:()=>"bg-blue-100 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400",iconConfirmed:()=>"bg-green-100 dark:bg-green-900/30 text-green-600 dark:text-green-400",iconFailed:()=>"bg-red-100 dark:bg-red-900/30 text-red-600 dark:text-red-400",content:()=>"flex-1 min-w-0",header:()=>"flex items-center justify-between mb-1",type:()=>"text-sm font-medium text-gray-900 dark:text-gray-100",status:()=>"px-2 py-1 text-xs rounded-full font-medium",statusPending:()=>"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300",statusConfirming:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",statusConfirmed:()=>"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",statusFailed:()=>"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300",details:()=>"text-xs text-gray-500 dark:text-gray-400 mt-1",hash:()=>"font-mono text-xs text-gray-500 dark:text-gray-400",amount:()=>"text-sm text-gray-600 dark:text-gray-400 ml-2",confirmations:()=>"mt-2 text-xs text-gray-500 dark:text-gray-400",confirmationBar:()=>"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5 mt-1",confirmationProgress:()=>"h-1.5 bg-blue-600 rounded-full transition-all duration-300"},status:{indicator:()=>"flex items-center space-x-2",dot:()=>"w-3 h-3 rounded-full flex-shrink-0",text:()=>"text-sm font-medium",online:()=>"text-green-700 dark:text-green-300",onlineDot:()=>"bg-green-500",degraded:()=>"text-yellow-700 dark:text-yellow-300",degradedDot:()=>"bg-yellow-500",offline:()=>"text-red-700 dark:text-red-300",offlineDot:()=>"bg-red-500",pulse:()=>"animate-pulse",connection:()=>"flex items-center justify-between p-3 bg-gray-50 dark:bg-gray-800 rounded-lg",connectionLabel:()=>"text-sm font-medium text-gray-900 dark:text-gray-100",connectionDescription:()=>"text-xs text-gray-500 dark:text-gray-400",connectionStatus:()=>"px-2 py-1 text-xs rounded-full font-medium"},badge:{container:()=>"relative inline-block",badge:()=>"absolute -top-1 -right-1 text-white text-xs rounded-full flex items-center justify-center font-medium",small:()=>"h-3 w-3 text-xs",medium:()=>"h-4 w-4 text-xs",large:()=>"h-5 w-5 text-xs",primary:()=>"bg-blue-500",success:()=>"bg-green-500",error:()=>"bg-red-500",warning:()=>"bg-yellow-500",dot:()=>"w-2 h-2 rounded-full animate-pulse",count:()=>"min-w-[1rem] px-1",countOverflow:()=>"min-w-[1.25rem] px-1"},feedback:{container:()=>"p-3 rounded-lg border",content:()=>"flex items-start",icon:()=>"flex-shrink-0 mr-2 mt-0.5",text:()=>"flex-1 min-w-0",title:()=>"text-sm font-medium",message:()=>"text-sm mt-1",action:()=>"ml-auto flex-shrink-0",success:()=>"bg-green-50 dark:bg-green-900/20 border-green-200 dark:border-green-800",successIcon:()=>"h-4 w-4 text-green-600 dark:text-green-400",successTitle:()=>"text-green-800 dark:text-green-200",successMessage:()=>"text-green-700 dark:text-green-300",error:()=>"bg-red-50 dark:bg-red-900/20 border-red-200 dark:border-red-800",errorIcon:()=>"h-4 w-4 text-red-600 dark:text-red-400",errorTitle:()=>"text-red-800 dark:text-red-200",errorMessage:()=>"text-red-700 dark:text-red-300",warning:()=>"bg-yellow-50 dark:bg-yellow-900/20 border-yellow-200 dark:border-yellow-800",warningIcon:()=>"h-4 w-4 text-yellow-600 dark:text-yellow-400",warningTitle:()=>"text-yellow-800 dark:text-yellow-200",warningMessage:()=>"text-yellow-700 dark:text-yellow-300",info:()=>"bg-blue-50 dark:bg-blue-900/20 border-blue-200 dark:border-blue-800",infoIcon:()=>"h-4 w-4 text-blue-600 dark:text-blue-400",infoTitle:()=>"text-blue-800 dark:text-blue-200",infoMessage:()=>"text-blue-700 dark:text-blue-300",neutral:()=>"bg-gray-50 dark:bg-gray-800 border-gray-200 dark:border-gray-700",neutralIcon:()=>"h-4 w-4 text-gray-600 dark:text-gray-400",neutralTitle:()=>"text-gray-900 dark:text-gray-100",neutralMessage:()=>"text-gray-600 dark:text-gray-400"},banner:{container:()=>"border-l-4 p-4",content:()=>"flex items-center justify-between",text:()=>"flex items-center",icon:()=>"flex-shrink-0 mr-3",message:()=>"text-sm font-medium",action:()=>"flex-shrink-0 ml-4",closeButton:()=>"text-gray-400 hover:text-gray-500 dark:hover:text-gray-300",success:()=>"bg-green-50 dark:bg-green-900/20 border-green-400",error:()=>"bg-red-50 dark:bg-red-900/20 border-red-400",warning:()=>"bg-yellow-50 dark:bg-yellow-900/20 border-yellow-400",info:()=>"bg-blue-50 dark:bg-blue-900/20 border-blue-400"},loading:{overlay:()=>"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",container:()=>"bg-white dark:bg-gray-800 rounded-lg p-6 max-w-sm mx-4",content:()=>"text-center",spinner:()=>"mx-auto mb-4",title:()=>"text-lg font-medium text-gray-900 dark:text-gray-100 mb-2",message:()=>"text-sm text-gray-500 dark:text-gray-400",inline:()=>"flex items-center space-x-2",inlineSpinner:()=>"flex-shrink-0",inlineText:()=>"text-sm text-gray-600 dark:text-gray-400"}},layout:{container:{narrow:()=>"max-w-2xl mx-auto px-4 sm:px-6",default:()=>"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",wide:()=>"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",full:()=>"w-full px-4 sm:px-6 lg:px-8",fluid:()=>"w-full"},grid:{responsive:{oneToTwo:()=>"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6",oneToThree:()=>"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6",oneToFour:()=>"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6",twoToFour:()=>"grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6",threeToSix:()=>"grid grid-cols-3 md:grid-cols-6 gap-4 md:gap-6"},fixed:{one:()=>"grid grid-cols-1 gap-4 md:gap-6",two:()=>"grid grid-cols-2 gap-4 md:gap-6",three:()=>"grid grid-cols-3 gap-4 md:gap-6",four:()=>"grid grid-cols-4 gap-4 md:gap-6",five:()=>"grid grid-cols-5 gap-4 md:gap-6",six:()=>"grid grid-cols-6 gap-4 md:gap-6"},autoFit:{small:()=>"grid grid-cols-[repeat(auto-fit,minmax(200px,1fr))] gap-4 md:gap-6",medium:()=>"grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-4 md:gap-6",large:()=>"grid grid-cols-[repeat(auto-fit,minmax(400px,1fr))] gap-4 md:gap-6"},dashboard:{sidebar:()=>"grid grid-cols-1 lg:grid-cols-4 gap-6",sidebarContent:()=>"lg:col-span-3",sidebarAside:()=>"lg:col-span-1",twoColumn:()=>"grid grid-cols-1 lg:grid-cols-2 gap-6",threeColumn:()=>"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",masonry:()=>"columns-1 md:columns-2 lg:columns-3 xl:columns-4 gap-6 space-y-6",masonryItem:()=>"break-inside-avoid mb-6"}},flex:{row:()=>"flex flex-row",column:()=>"flex flex-col",rowReverse:()=>"flex flex-row-reverse",columnReverse:()=>"flex flex-col-reverse",center:()=>"flex items-center justify-center",centerVertical:()=>"flex items-center",centerHorizontal:()=>"flex justify-center",spaceBetween:()=>"flex items-center justify-between",spaceAround:()=>"flex items-center justify-around",spaceEvenly:()=>"flex items-center justify-evenly",responsiveColumn:()=>"flex flex-col md:flex-row",responsiveRow:()=>"flex flex-row md:flex-col",header:()=>"flex items-center justify-between w-full",toolbar:()=>"flex items-center space-x-2",buttonGroup:()=>"flex items-center space-x-2",iconText:()=>"flex items-center space-x-2",listItem:()=>"flex items-start space-x-3",listItemCenter:()=>"flex items-center space-x-3",listItemEnd:()=>"flex items-end space-x-3",cardContent:()=>"flex flex-col space-y-4",cardActions:()=>"flex items-center justify-end space-x-2 pt-4",cardHeader:()=>"flex items-start justify-between",formRow:()=>"flex flex-col sm:flex-row sm:items-center sm:space-x-4 space-y-2 sm:space-y-0",formActions:()=>"flex flex-col sm:flex-row-reverse sm:justify-start space-y-2 sm:space-y-0 sm:space-x-2 sm:space-x-reverse",wrap:()=>"flex flex-wrap",nowrap:()=>"flex flex-nowrap",wrapReverse:()=>"flex flex-wrap-reverse",gapSm:()=>"gap-2",gapMd:()=>"gap-4",gapLg:()=>"gap-6",gapXl:()=>"gap-8"},spacing:{margin:{none:()=>"m-0",xs:()=>"m-1",sm:()=>"m-2",md:()=>"m-4",lg:()=>"m-6",xl:()=>"m-8",xxl:()=>"m-12",top:{none:()=>"mt-0",xs:()=>"mt-1",sm:()=>"mt-2",md:()=>"mt-4",lg:()=>"mt-6",xl:()=>"mt-8",xxl:()=>"mt-12"},bottom:{none:()=>"mb-0",xs:()=>"mb-1",sm:()=>"mb-2",md:()=>"mb-4",lg:()=>"mb-6",xl:()=>"mb-8",xxl:()=>"mb-12"},left:{none:()=>"ml-0",xs:()=>"ml-1",sm:()=>"ml-2",md:()=>"ml-4",lg:()=>"ml-6",xl:()=>"ml-8",xxl:()=>"ml-12"},right:{none:()=>"mr-0",xs:()=>"mr-1",sm:()=>"mr-2",md:()=>"mr-4",lg:()=>"mr-6",xl:()=>"mr-8",xxl:()=>"mr-12"},horizontal:{none:()=>"mx-0",xs:()=>"mx-1",sm:()=>"mx-2",md:()=>"mx-4",lg:()=>"mx-6",xl:()=>"mx-8",xxl:()=>"mx-12",auto:()=>"mx-auto"},vertical:{none:()=>"my-0",xs:()=>"my-1",sm:()=>"my-2",md:()=>"my-4",lg:()=>"my-6",xl:()=>"my-8",xxl:()=>"my-12"}},padding:{none:()=>"p-0",xs:()=>"p-1",sm:()=>"p-2",md:()=>"p-4",lg:()=>"p-6",xl:()=>"p-8",xxl:()=>"p-12",top:{none:()=>"pt-0",xs:()=>"pt-1",sm:()=>"pt-2",md:()=>"pt-4",lg:()=>"pt-6",xl:()=>"pt-8",xxl:()=>"pt-12"},bottom:{none:()=>"pb-0",xs:()=>"pb-1",sm:()=>"pb-2",md:()=>"pb-4",lg:()=>"pb-6",xl:()=>"pb-8",xxl:()=>"pb-12"},left:{none:()=>"pl-0",xs:()=>"pl-1",sm:()=>"pl-2",md:()=>"pl-4",lg:()=>"pl-6",xl:()=>"pl-8",xxl:()=>"pl-12"},right:{none:()=>"pr-0",xs:()=>"pr-1",sm:()=>"pr-2",md:()=>"pr-4",lg:()=>"pr-6",xl:()=>"pr-8",xxl:()=>"pr-12"},horizontal:{none:()=>"px-0",xs:()=>"px-1",sm:()=>"px-2",md:()=>"px-4",lg:()=>"px-6",xl:()=>"px-8",xxl:()=>"px-12"},vertical:{none:()=>"py-0",xs:()=>"py-1",sm:()=>"py-2",md:()=>"py-4",lg:()=>"py-6",xl:()=>"py-8",xxl:()=>"py-12"}},section:()=>"py-12 md:py-16 lg:py-20",subsection:()=>"py-8 md:py-12",cardSpacing:()=>"p-6 md:p-8",listSpacing:()=>"space-y-4",buttonSpacing:()=>"space-x-2"},web3:{wallet:{connect:()=>"flex flex-col items-center space-y-4 p-6",connected:()=>"flex items-center justify-between p-4 bg-green-50 dark:bg-green-900/20 rounded-lg",balance:()=>"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",portfolio:()=>"grid grid-cols-1 lg:grid-cols-3 gap-6"},transaction:{form:()=>"space-y-6",preview:()=>"bg-gray-50 dark:bg-gray-800 rounded-lg p-4 space-y-3",history:()=>"space-y-2",historyItem:()=>"flex items-center justify-between p-3 bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700",details:()=>"grid grid-cols-1 md:grid-cols-2 gap-4"},nft:{gallery:()=>"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6",card:()=>"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 overflow-hidden",cardContent:()=>"p-4 space-y-3",cardActions:()=>"flex items-center justify-between pt-3 border-t border-gray-200 dark:border-gray-700",collection:()=>"grid grid-cols-1 lg:grid-cols-4 gap-6",collectionSidebar:()=>"lg:col-span-1 space-y-6",collectionGrid:()=>"lg:col-span-3"},defi:{dashboard:()=>"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",pool:()=>"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-6",poolStats:()=>"grid grid-cols-2 md:grid-cols-4 gap-4",liquidity:()=>"space-y-4",farming:()=>"grid grid-cols-1 lg:grid-cols-2 gap-6"},dao:{governance:()=>"grid grid-cols-1 lg:grid-cols-3 gap-6",proposal:()=>"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-6",proposalHeader:()=>"flex items-start justify-between mb-6",proposalContent:()=>"space-y-6",voting:()=>"grid grid-cols-1 md:grid-cols-2 gap-4"}},position:{relative:()=>"relative",absolute:()=>"absolute",fixed:()=>"fixed",sticky:()=>"sticky",topLeft:()=>"absolute top-0 left-0",topRight:()=>"absolute top-0 right-0",bottomLeft:()=>"absolute bottom-0 left-0",bottomRight:()=>"absolute bottom-0 right-0",center:()=>"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",overlay:()=>"fixed inset-0 z-50",backdrop:()=>"fixed inset-0 bg-black bg-opacity-50 z-40"},overflow:{hidden:()=>"overflow-hidden",auto:()=>"overflow-auto",scroll:()=>"overflow-scroll",xHidden:()=>"overflow-x-hidden",yHidden:()=>"overflow-y-hidden",xAuto:()=>"overflow-x-auto",yAuto:()=>"overflow-y-auto",xScroll:()=>"overflow-x-scroll",yScroll:()=>"overflow-y-scroll"},zIndex:{base:()=>"z-0",dropdown:()=>"z-10",sticky:()=>"z-20",modal:()=>"z-50",popover:()=>"z-60",tooltip:()=>"z-70"},display:{block:()=>"block",inline:()=>"inline",inlineBlock:()=>"inline-block",flex:()=>"flex",inlineFlex:()=>"inline-flex",grid:()=>"grid",inlineGrid:()=>"inline-grid",hidden:()=>"hidden",hiddenMobile:()=>"hidden sm:block",hiddenTablet:()=>"hidden md:block",hiddenDesktop:()=>"block md:hidden",mobileOnly:()=>"block sm:hidden",tabletOnly:()=>"hidden sm:block md:hidden",desktopOnly:()=>"hidden md:block"},patterns:{fullHeight:()=>"min-h-screen flex flex-col",centeredPage:()=>"min-h-screen flex items-center justify-center",header:()=>"sticky top-0 z-40 bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",headerContent:()=>"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between",sidebarLayout:()=>"flex h-screen bg-gray-100 dark:bg-gray-900",sidebar:()=>"w-64 bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700",mainContent:()=>"flex-1 flex flex-col overflow-hidden",modalOverlay:()=>"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",modalContent:()=>"bg-white dark:bg-gray-800 rounded-lg shadow-xl max-w-lg w-full max-h-[90vh] overflow-hidden",cardGrid:()=>"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",cardStack:()=>"space-y-6",dividedList:()=>"divide-y divide-gray-200 dark:divide-gray-700",spacedList:()=>"space-y-4",formStack:()=>"space-y-6",formGrid:()=>"grid grid-cols-1 md:grid-cols-2 gap-6",fieldset:()=>"space-y-4",loadingOverlay:()=>"absolute inset-0 bg-white bg-opacity-75 dark:bg-gray-900 dark:bg-opacity-75 flex items-center justify-center",loadingInline:()=>"flex items-center space-x-2",emptyState:()=>"text-center py-12",emptyStateIcon:()=>"mx-auto h-12 w-12 text-gray-400 mb-4"}},table:{container:()=>"overflow-hidden rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",table:()=>"min-w-full divide-y divide-gray-200 dark:divide-gray-700",header:{row:()=>"bg-gray-50 dark:bg-gray-900/50",cell:()=>"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",sortable:()=>"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800 select-none group"},body:{row:()=>"bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors duration-200",rowSelected:()=>"bg-blue-50 dark:bg-blue-900/20 hover:bg-blue-100 dark:hover:bg-blue-900/30 transition-colors duration-200",rowClickable:()=>"bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors duration-200 cursor-pointer",cell:()=>"px-6 py-4 whitespace-nowrap text-sm text-gray-900 dark:text-gray-100",cellMuted:()=>"px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400",cellAction:()=>"px-6 py-4 whitespace-nowrap text-right text-sm font-medium"},compact:{header:{cell:()=>"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",sortable:()=>"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800 select-none group"},body:{cell:()=>"px-4 py-3 whitespace-nowrap text-sm text-gray-900 dark:text-gray-100",cellMuted:()=>"px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400",cellAction:()=>"px-4 py-3 whitespace-nowrap text-right text-sm font-medium"}},states:{loading:()=>"opacity-50 pointer-events-none",empty:()=>"text-center py-12 text-gray-500 dark:text-gray-400",error:()=>"text-center py-12 text-red-500 dark:text-red-400"},pagination:{container:()=>"bg-white dark:bg-gray-800 px-4 py-3 flex items-center justify-between border-t border-gray-200 dark:border-gray-700 sm:px-6",info:()=>"flex-1 flex justify-between sm:hidden text-sm text-gray-700 dark:text-gray-300",nav:()=>"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between",button:()=>"relative inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 text-sm font-medium rounded-md text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors duration-200",buttonCurrent:()=>"relative inline-flex items-center px-4 py-2 border border-blue-500 dark:border-blue-400 text-sm font-medium rounded-md text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/20 hover:bg-blue-100 dark:hover:bg-blue-900/30 transition-colors duration-200"},grid:{container:()=>"overflow-auto rounded-lg border border-gray-200 dark:border-gray-700",table:()=>"min-w-full table-fixed",resizeHandle:()=>"absolute right-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-blue-500 dark:hover:bg-blue-400 transition-colors duration-200",filterContainer:()=>"border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-900/50 p-3",filterInput:()=>"block w-full rounded-md border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 px-3 py-2 text-sm focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 focus:outline-none focus:ring-2"},sort:{indicator:()=>"ml-2 h-4 w-4 flex-none rounded text-gray-400 group-hover:text-gray-500 dark:group-hover:text-gray-300",ascending:()=>"ml-2 h-4 w-4 flex-none rounded text-gray-400 group-hover:text-gray-500 dark:group-hover:text-gray-300 transform rotate-0",descending:()=>"ml-2 h-4 w-4 flex-none rounded text-gray-400 group-hover:text-gray-500 dark:group-hover:text-gray-300 transform rotate-180"}},icon:{size:{xs:()=>"h-3 w-3",sm:()=>"h-4 w-4",md:()=>"h-5 w-5",lg:()=>"h-6 w-6",xl:()=>"h-8 w-8",xxl:()=>"h-10 w-10",xxxl:()=>"h-12 w-12"},color:{default:()=>"text-gray-500 dark:text-gray-400",muted:()=>"text-gray-400 dark:text-gray-500",subtle:()=>"text-gray-300 dark:text-gray-600",primary:()=>"text-gray-900 dark:text-gray-100",brand:()=>"text-blue-600 dark:text-blue-400",brandMuted:()=>"text-blue-500 dark:text-blue-500",success:()=>"text-green-600 dark:text-green-400",warning:()=>"text-amber-600 dark:text-amber-400",error:()=>"text-red-600 dark:text-red-400",info:()=>"text-blue-600 dark:text-blue-400",interactive:()=>"text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 transition-colors duration-200",interactiveSubtle:()=>"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 transition-colors duration-200",ethereum:()=>"text-blue-600 dark:text-blue-400",solana:()=>"text-purple-600 dark:text-purple-400",bitcoin:()=>"text-orange-600 dark:text-orange-400"},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"},interactive:{xs:()=>"h-3 w-3 text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 transition-colors duration-200 cursor-pointer",sm:()=>"h-4 w-4 text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 transition-colors duration-200 cursor-pointer",md:()=>"h-5 w-5 text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 transition-colors duration-200 cursor-pointer",lg:()=>"h-6 w-6 text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 transition-colors duration-200 cursor-pointer",xl:()=>"h-8 w-8 text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 transition-colors duration-200 cursor-pointer"},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"}},context:{button:{leading:()=>"h-4 w-4 mr-2 flex-shrink-0",trailing:()=>"h-4 w-4 ml-2 flex-shrink-0",only:()=>"h-4 w-4",small:()=>"h-3 w-3",large:()=>"h-5 w-5"},input:{leading:()=>"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400 pointer-events-none",trailing:()=>"absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400",interactive:()=>"absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400 hover:text-gray-600 cursor-pointer transition-colors duration-200"},navigation:{menu:()=>"h-5 w-5 text-gray-600 dark:text-gray-400",menuActive:()=>"h-5 w-5 text-blue-600 dark:text-blue-400",breadcrumb:()=>"h-4 w-4 text-gray-400 mx-2",tab:()=>"h-4 w-4 mr-2"},status:{success:()=>"h-5 w-5 text-green-500 flex-shrink-0",warning:()=>"h-5 w-5 text-amber-500 flex-shrink-0",error:()=>"h-5 w-5 text-red-500 flex-shrink-0",info:()=>"h-5 w-5 text-blue-500 flex-shrink-0",loading:()=>"h-5 w-5 text-gray-400 animate-spin flex-shrink-0"},avatar:{small:()=>"h-6 w-6 text-gray-400",medium:()=>"h-8 w-8 text-gray-400",large:()=>"h-10 w-10 text-gray-400",fallback:()=>"h-full w-full text-gray-300"},web3:{wallet:()=>"h-5 w-5 text-gray-600 dark:text-gray-400",walletConnected:()=>"h-5 w-5 text-green-600 dark:text-green-400",walletDisconnected:()=>"h-5 w-5 text-gray-400 dark:text-gray-500",transaction:()=>"h-4 w-4 text-blue-600 dark:text-blue-400",blockchain:{ethereum:()=>"h-5 w-5 text-blue-600 dark:text-blue-400",solana:()=>"h-5 w-5 text-purple-600 dark:text-purple-400",bitcoin:()=>"h-5 w-5 text-orange-600 dark:text-orange-400"}},card:{header:()=>"h-5 w-5 text-gray-600 dark:text-gray-400 mr-2",action:()=>"h-4 w-4 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 transition-colors duration-200",feature:()=>"h-6 w-6 text-blue-600 dark:text-blue-400",featureLarge:()=>"h-8 w-8 text-blue-600 dark:text-blue-400"},list:{item:()=>"h-4 w-4 text-gray-500 dark:text-gray-400 mr-3 flex-shrink-0",action:()=>"h-4 w-4 text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300 transition-colors duration-200",bullet:()=>"h-1.5 w-1.5 text-gray-400 mt-2 mr-3 flex-shrink-0"}},decorative:{hero:{small:()=>"h-12 w-12 text-blue-600 dark:text-blue-400",medium:()=>"h-16 w-16 text-blue-600 dark:text-blue-400",large:()=>"h-20 w-20 text-blue-600 dark:text-blue-400",xlarge:()=>"h-24 w-24 text-blue-600 dark:text-blue-400"},feature:{small:()=>"h-8 w-8 text-gray-600 dark:text-gray-400",medium:()=>"h-10 w-10 text-gray-600 dark:text-gray-400",large:()=>"h-12 w-12 text-gray-600 dark:text-gray-400"},background:{subtle:()=>"h-32 w-32 text-gray-100 dark:text-gray-800 opacity-50",muted:()=>"h-24 w-24 text-gray-200 dark:text-gray-700 opacity-30"},empty:{small:()=>"h-8 w-8 text-gray-400 dark:text-gray-500 mb-2",medium:()=>"h-12 w-12 text-gray-400 dark:text-gray-500 mb-4",large:()=>"h-16 w-16 text-gray-400 dark:text-gray-500 mb-6"}}},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"},tooltip:{container:()=>"absolute z-50 px-2 py-1 text-xs font-medium text-white bg-gray-900 dark:bg-gray-800 rounded shadow-lg transition-all duration-200 pointer-events-none",arrow:()=>"absolute w-2 h-2 bg-gray-900 dark:bg-gray-800 transform rotate-45",top:()=>"-translate-x-1/2 -translate-y-full left-1/2 bottom-full mb-2",topArrow:()=>"top-full left-1/2 -translate-x-1/2 -translate-y-1/2",bottom:()=>"-translate-x-1/2 translate-y-full left-1/2 top-full mt-2",bottomArrow:()=>"bottom-full left-1/2 -translate-x-1/2 translate-y-1/2",left:()=>"-translate-y-1/2 -translate-x-full top-1/2 right-full mr-2",leftArrow:()=>"left-full top-1/2 -translate-y-1/2 -translate-x-1/2",right:()=>"-translate-y-1/2 translate-x-full top-1/2 left-full ml-2",rightArrow:()=>"right-full top-1/2 -translate-y-1/2 translate-x-1/2",light:()=>"text-gray-900 bg-white border border-gray-200 shadow-md",dark:()=>"text-white bg-gray-900 dark:bg-gray-800",info:()=>"text-blue-50 bg-blue-600",success:()=>"text-green-50 bg-green-600",warning:()=>"text-amber-50 bg-amber-600",error:()=>"text-red-50 bg-red-600"},popover:{backdrop:()=>"fixed inset-0 z-30",container:()=>"absolute z-40 w-64 bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 transition-all duration-200",arrow:()=>"absolute w-3 h-3 bg-white dark:bg-gray-800 border-l border-t border-gray-200 dark:border-gray-700 transform rotate-45",small:()=>"w-48",medium:()=>"w-64",large:()=>"w-80",auto:()=>"w-auto min-w-48 max-w-xs",top:()=>"-translate-x-1/2 -translate-y-full left-1/2 bottom-full mb-3",topArrow:()=>"top-full left-1/2 -translate-x-1/2 -translate-y-1/2",bottom:()=>"-translate-x-1/2 translate-y-full left-1/2 top-full mt-3",bottomArrow:()=>"bottom-full left-1/2 -translate-x-1/2 translate-y-1/2",left:()=>"-translate-y-1/2 -translate-x-full top-1/2 right-full mr-3",leftArrow:()=>"left-full top-1/2 -translate-y-1/2 -translate-x-1/2",right:()=>"-translate-y-1/2 translate-x-full top-1/2 left-full ml-3",rightArrow:()=>"right-full top-1/2 -translate-y-1/2 translate-x-1/2",header:()=>"px-4 py-3 border-b border-gray-200 dark:border-gray-700",title:()=>"text-sm font-medium text-gray-900 dark:text-gray-100",body:()=>"px-4 py-3",footer:()=>"px-4 py-3 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700/50",entering:()=>"opacity-0 scale-95 transform",entered:()=>"opacity-100 scale-100 transform",exiting:()=>"opacity-0 scale-95 transform"},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"},drawer:{backdrop:()=>"fixed inset-0 z-40 bg-black/50 dark:bg-black/70 transition-opacity duration-300",container:()=>"fixed inset-y-0 z-50 flex w-full justify-end transition-transform duration-300 ease-in-out",right:()=>"right-0",left:()=>"left-0 justify-start",narrow:()=>"max-w-xs",default:()=>"max-w-md",wide:()=>"max-w-lg",extraWide:()=>"max-w-2xl",content:()=>"relative flex w-full flex-col bg-white dark:bg-gray-900 border-l border-gray-200 dark:border-gray-700 shadow-xl",contentLeft:()=>"border-r border-l-0 border-gray-200 dark:border-gray-700",header:()=>"flex items-center justify-between px-4 sm:px-6 py-4 border-b border-gray-200 dark:border-gray-700",title:()=>"text-lg font-semibold text-gray-900 dark:text-gray-100",closeButton:()=>"p-2 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",body:()=>"flex-1 px-4 sm:px-6 py-4 overflow-y-auto",footer:()=>"flex items-center justify-end space-x-3 px-4 sm:px-6 py-4 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50",entering:()=>"translate-x-full",enteringLeft:()=>"-translate-x-full",entered:()=>"translate-x-0",exiting:()=>"translate-x-full",exitingLeft:()=>"-translate-x-full"},sheet:{backdrop:()=>"fixed inset-0 z-40 bg-black/50 dark:bg-black/70 transition-opacity duration-300",container:()=>"fixed inset-x-0 bottom-0 z-50 transition-transform duration-300 ease-out",content:()=>"relative bg-white dark:bg-gray-900 rounded-t-lg shadow-xl border-t border-gray-200 dark:border-gray-700 max-h-[85vh] overflow-hidden",handle:()=>"flex justify-center py-2",handleBar:()=>"w-10 h-1 bg-gray-300 dark:bg-gray-600 rounded-full",header:()=>"flex items-center justify-between px-4 sm:px-6 py-4 border-b border-gray-200 dark:border-gray-700",title:()=>"text-lg font-semibold text-gray-900 dark:text-gray-100",closeButton:()=>"p-2 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",body:()=>"px-4 sm:px-6 py-4 overflow-y-auto",footer:()=>"flex items-center justify-center space-x-3 px-4 sm:px-6 py-4 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50",entering:()=>"translate-y-full",entered:()=>"translate-y-0",exiting:()=>"translate-y-full"},contextMenu:{backdrop:()=>"fixed inset-0 z-30",container:()=>"absolute z-50 w-48 bg-white dark:bg-gray-800 rounded-md shadow-lg border border-gray-200 dark:border-gray-700 py-1 focus:outline-none transition-all duration-150",item:()=>"flex items-center px-3 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-gray-100 transition-colors cursor-pointer",itemDisabled:()=>"text-gray-400 dark:text-gray-600 cursor-not-allowed hover:bg-transparent",itemDanger:()=>"text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 hover:text-red-700 dark:hover:text-red-300",divider:()=>"my-1 border-t border-gray-200 dark:border-gray-700",icon:()=>"mr-2 h-4 w-4 flex-shrink-0",shortcut:()=>"ml-auto text-xs text-gray-400 dark:text-gray-500",submenuIndicator:()=>"ml-auto h-4 w-4 text-gray-400 dark:text-gray-500",submenu:()=>"absolute left-full top-0 ml-1"},loading:{backdrop:()=>"fixed inset-0 z-50 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm flex items-center justify-center transition-all duration-300",container:()=>"flex flex-col items-center space-y-4 p-6 bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700",spinner:()=>"w-8 h-8 border-2 border-blue-600 border-t-transparent rounded-full animate-spin",spinnerLarge:()=>"w-12 h-12 border-3 border-blue-600 border-t-transparent rounded-full animate-spin",text:()=>"text-sm font-medium text-gray-900 dark:text-gray-100",subtext:()=>"text-xs text-gray-500 dark:text-gray-400 text-center max-w-xs"},portal:{backdrop:()=>"z-40",dropdown:()=>"z-50",tooltip:()=>"z-50",popover:()=>"z-40",modal:()=>"z-50",drawer:()=>"z-50",sheet:()=>"z-50",contextMenu:()=>"z-50",loading:()=>"z-60",notification:()=>"z-70",focusTrap:()=>"focus:outline-none",focusVisible:()=>"focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",srOnly:()=>"sr-only",ariaLabel:()=>"aria-label"}},animations:{hover:{card:{subtle:()=>"transition-all duration-200 hover:shadow-md hover:-translate-y-0.5",lift:()=>"transition-all duration-300 hover:shadow-lg hover:-translate-y-1",glow:()=>"transition-all duration-200 hover:shadow-lg hover:shadow-blue-500/25 dark:hover:shadow-blue-400/25",scale:()=>"transition-transform duration-200 hover:scale-105",border:()=>"transition-all duration-200 hover:border-blue-300 dark:hover:border-blue-600",nft:()=>"transition-all duration-300 hover:shadow-xl hover:shadow-purple-500/30 hover:scale-[1.02]",wallet:()=>"transition-all duration-200 hover:shadow-md hover:bg-gradient-to-r hover:from-blue-50 hover:to-indigo-50 dark:hover:from-blue-900/20 dark:hover:to-indigo-900/20",transaction:()=>"transition-all duration-200 hover:shadow-md hover:border-green-300 dark:hover:border-green-600"},button:{lift:()=>"transition-all duration-150 hover:-translate-y-0.5 hover:shadow-md",glow:()=>"transition-all duration-200 hover:shadow-lg hover:shadow-current/25",scale:()=>"transition-transform duration-150 hover:scale-105",shimmer:()=>"relative overflow-hidden transition-all duration-200 before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-white/20 before:to-transparent hover:before:translate-x-full",connect:()=>"transition-all duration-200 hover:shadow-lg hover:shadow-blue-500/30 hover:scale-[1.02]",transaction:()=>"transition-all duration-200 hover:shadow-lg hover:shadow-green-500/30",disconnect:()=>"transition-all duration-200 hover:shadow-lg hover:shadow-red-500/30"},icon:{bounce:()=>"transition-transform duration-200 hover:scale-110 hover:-translate-y-0.5",rotate:()=>"transition-transform duration-200 hover:rotate-12",pulse:()=>"transition-all duration-200 hover:scale-110 hover:text-blue-600 dark:hover:text-blue-400",glow:()=>"transition-all duration-200 hover:text-blue-600 dark:hover:text-blue-400 hover:drop-shadow-sm"}},loading:{spinner:{default:()=>"animate-spin",slow:()=>"animate-spin-slow",fast:()=>"animate-spin-fast",bounce:()=>"animate-bounce",pulse:()=>"animate-pulse",ping:()=>"animate-ping"},skeleton:{base:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded",line:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 h-4 rounded",circle:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded-full",card:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded-lg h-32",shimmer:()=>"relative overflow-hidden bg-gray-200 dark:bg-gray-700 before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-gray-200 before:via-white before:to-gray-200 dark:before:from-gray-700 dark:before:via-gray-600 dark:before:to-gray-700",progressive:()=>"bg-gradient-to-r from-gray-200 via-gray-300 to-gray-200 dark:from-gray-700 dark:via-gray-600 dark:to-gray-700 bg-[length:200%_100%] animate-shimmer-bg"},progress:{bar:()=>"transition-all duration-300 ease-out",indeterminate:()=>"animate-progress-indeterminate bg-gradient-to-r from-blue-500 via-purple-500 to-blue-500 bg-[length:200%_100%]",transaction:()=>"animate-progress-glow bg-gradient-to-r from-green-400 to-blue-500",minting:()=>"animate-progress-rainbow bg-gradient-to-r from-pink-500 via-purple-500 to-indigo-500"}},transitions:{slide:{up:()=>"transition-transform duration-300 ease-out",upEnter:()=>"translate-y-full",upEntered:()=>"translate-y-0",upExit:()=>"translate-y-full",down:()=>"transition-transform duration-300 ease-out",downEnter:()=>"-translate-y-full",downEntered:()=>"translate-y-0",downExit:()=>"-translate-y-full",left:()=>"transition-transform duration-300 ease-out",leftEnter:()=>"translate-x-full",leftEntered:()=>"translate-x-0",leftExit:()=>"translate-x-full",right:()=>"transition-transform duration-300 ease-out",rightEnter:()=>"-translate-x-full",rightEntered:()=>"translate-x-0",rightExit:()=>"-translate-x-full"},fade:{default:()=>"transition-opacity duration-300 ease-out",enter:()=>"opacity-0",entered:()=>"opacity-100",exit:()=>"opacity-0",fast:()=>"transition-opacity duration-150 ease-out",slow:()=>"transition-opacity duration-500 ease-out",scale:()=>"transition-all duration-300 ease-out",scaleEnter:()=>"opacity-0 scale-95",scaleEntered:()=>"opacity-100 scale-100",scaleExit:()=>"opacity-0 scale-95"},page:{slideLeft:()=>"transition-transform duration-300 ease-in-out",slideRight:()=>"transition-transform duration-300 ease-in-out",fadeScale:()=>"transition-all duration-300 ease-in-out"}},feedback:{tap:{ripple:()=>"relative overflow-hidden transition-all duration-150 active:scale-95",scale:()=>"transition-transform duration-100 active:scale-95",glow:()=>"transition-all duration-150 active:shadow-lg active:shadow-current/30",materialRipple:()=>"relative overflow-hidden after:absolute after:inset-0 after:rounded-[inherit] after:pointer-events-none after:transition-opacity after:duration-300 after:opacity-0 active:after:opacity-100 active:after:bg-white/20"},focus:{ring:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",glow:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:shadow-lg focus-visible:shadow-blue-500/25",scale:()=>"focus-visible:outline-none focus-visible:scale-105 focus-visible:ring-2 focus-visible:ring-blue-500",wallet:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:bg-blue-50 dark:focus-visible:bg-blue-900/20"},drag:{dragging:()=>"opacity-50 scale-95 rotate-3 shadow-xl z-50",dropzone:()=>"transition-all duration-200 border-2 border-dashed",dropzoneActive:()=>"border-blue-400 bg-blue-50 dark:bg-blue-900/20 scale-105",dropzoneInactive:()=>"border-gray-300 dark:border-gray-600"}},scroll:{reveal:{fadeUp:()=>"opacity-0 translate-y-8 transition-all duration-700 ease-out",fadeUpVisible:()=>"opacity-100 translate-y-0",fadeDown:()=>"opacity-0 -translate-y-8 transition-all duration-700 ease-out",fadeDownVisible:()=>"opacity-100 translate-y-0",fadeLeft:()=>"opacity-0 translate-x-8 transition-all duration-700 ease-out",fadeLeftVisible:()=>"opacity-100 translate-x-0",fadeRight:()=>"opacity-0 -translate-x-8 transition-all duration-700 ease-out",fadeRightVisible:()=>"opacity-100 translate-x-0",scale:()=>"opacity-0 scale-90 transition-all duration-700 ease-out",scaleVisible:()=>"opacity-100 scale-100"},parallax:{slow:()=>"transform transition-transform duration-75",medium:()=>"transform transition-transform duration-100",fast:()=>"transform transition-transform duration-150"},sticky:{shrink:()=>"transition-all duration-300 ease-out",shrinkActive:()=>"py-2 shadow-lg backdrop-blur-md",shrinkInactive:()=>"py-4"}},web3:{wallet:{connecting:()=>"animate-pulse bg-gradient-to-r from-blue-500 via-purple-500 to-blue-500 bg-[length:200%_100%] animate-shimmer-bg",connected:()=>"animate-bounce-gentle bg-gradient-to-r from-green-400 to-blue-500",disconnected:()=>"animate-fade-out opacity-50",error:()=>"animate-shake bg-red-100 dark:bg-red-900/20"},transaction:{pending:()=>"animate-pulse border border-yellow-300 bg-yellow-50 dark:border-yellow-700 dark:bg-yellow-900/20",confirming:()=>"animate-progress-dots bg-gradient-to-r from-blue-500 to-purple-500",confirmed:()=>"animate-success-pulse border border-green-300 bg-green-50 dark:border-green-700 dark:bg-green-900/20",failed:()=>"animate-error-flash border border-red-300 bg-red-50 dark:border-red-700 dark:bg-red-900/20"},blockchain:{mining:()=>"animate-mining-pulse bg-gradient-to-r from-yellow-400 via-orange-500 to-yellow-400 bg-[length:200%_100%]",minting:()=>"animate-rainbow bg-gradient-to-r from-pink-500 via-purple-500 via-blue-500 to-pink-500 bg-[length:300%_100%]",staking:()=>"animate-glow-pulse bg-gradient-to-r from-green-400 to-emerald-500",burning:()=>"animate-fire bg-gradient-to-r from-red-500 via-orange-500 to-yellow-500 bg-[length:200%_100%]"}},utility:{attention:{bounce:()=>"animate-bounce",pulse:()=>"animate-pulse",ping:()=>"animate-ping",shake:()=>"animate-shake",wiggle:()=>"animate-wiggle",heartbeat:()=>"animate-heartbeat"},state:{success:()=>"animate-success-checkmark",error:()=>"animate-error-x",warning:()=>"animate-warning-triangle",info:()=>"animate-info-circle"},reduced:{fadeOnly:()=>"transition-opacity duration-300 ease-out",scaleOnly:()=>"transition-transform duration-200 ease-out",instant:()=>"transition-none",respectPrefers:()=>"motion-safe:transition-all motion-safe:duration-300 motion-reduce:transition-none"}}},accessibility:{screenReader:{only:()=>"sr-only",focusable:()=>"sr-only focus:not-sr-only focus:absolute focus:top-0 focus:left-0 focus:z-50 focus:p-2 focus:bg-white focus:text-black focus:border focus:rounded",skipLink:()=>"sr-only focus:not-sr-only focus:absolute focus:top-0 focus:left-0 focus:z-50 focus:px-4 focus:py-2 focus:bg-blue-600 focus:text-white focus:rounded focus:m-2 focus:no-underline"},focus:{ring:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",ringInset:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500",ringDark:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-400 focus-visible:ring-offset-2 focus-visible:ring-offset-gray-900",highContrast:()=>"focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-yellow-400 focus-visible:ring-offset-2 focus-visible:bg-yellow-50 dark:focus-visible:bg-yellow-900/20",wallet:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:bg-blue-50 dark:focus-visible:bg-blue-900/20",transaction:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-green-500 focus-visible:ring-offset-2",error:()=>"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2"},contrast:{text:{high:()=>"text-gray-900 dark:text-gray-100",medium:()=>"text-gray-700 dark:text-gray-300",low:()=>"text-gray-600 dark:text-gray-400",inverse:()=>"text-white dark:text-gray-900"},background:{primary:()=>"bg-blue-700 text-white dark:bg-blue-300 dark:text-gray-900",secondary:()=>"bg-gray-700 text-white dark:bg-gray-300 dark:text-gray-900",success:()=>"bg-green-700 text-white dark:bg-green-300 dark:text-gray-900",warning:()=>"bg-yellow-700 text-white dark:bg-yellow-300 dark:text-gray-900",error:()=>"bg-red-700 text-white dark:bg-red-300 dark:text-gray-900"},link:{default:()=>"text-blue-700 dark:text-blue-300 underline hover:text-blue-900 dark:hover:text-blue-100",visited:()=>"text-purple-700 dark:text-purple-300 underline hover:text-purple-900 dark:hover:text-purple-100"}},motion:{respectPrefers:()=>"motion-safe:transition-all motion-safe:duration-300 motion-reduce:transition-none",reduceMotion:()=>"motion-reduce:transition-none motion-reduce:animate-none",safe:{fade:()=>"motion-safe:transition-opacity motion-safe:duration-300 motion-reduce:transition-none",scale:()=>"motion-safe:transition-transform motion-safe:duration-200 motion-reduce:transition-none",slide:()=>"motion-safe:transition-transform motion-safe:duration-300 motion-reduce:transition-none"},loading:{spin:()=>"motion-safe:animate-spin motion-reduce:animate-none",pulse:()=>"motion-safe:animate-pulse motion-reduce:animate-none",bounce:()=>"motion-safe:animate-bounce motion-reduce:animate-none"}},semantic:{interactive:{button:()=>'role="button" tabindex="0"',link:()=>'role="link"',menuitem:()=>'role="menuitem"',tab:()=>'role="tab"',tabpanel:()=>'role="tabpanel"',dialog:()=>'role="dialog"'},states:{selected:t=>`aria-selected="${t}"`,checked:t=>`aria-checked="${t}"`,pressed:t=>`aria-pressed="${t}"`,expanded:t=>`aria-expanded="${t}"`,disabled:t=>t?'aria-disabled="true" tabindex="-1"':""},web3:{wallet:()=>'role="button" aria-label="Connect Wallet"',transaction:()=>'role="status" aria-live="polite"',balance:()=>'role="text" aria-label="Account Balance"',address:()=>'role="text" aria-label="Wallet Address"'}},form:{required:{indicator:()=>"text-red-500 dark:text-red-400",text:()=>'aria-required="true" required',visual:()=>'after:content-["*"] after:ml-1 after:text-red-500 dark:after:text-red-400'},validation:{valid:()=>"border-green-500 dark:border-green-400 focus:ring-green-500",invalid:()=>'border-red-500 dark:border-red-400 focus:ring-red-500 aria-invalid="true"',pending:()=>"border-yellow-500 dark:border-yellow-400 focus:ring-yellow-500"}},interactive:{button:{primary:()=>"inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",secondary:()=>"inline-flex items-center justify-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",icon:()=>"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500"},link:{default:()=>"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-200 underline focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",external:()=>'text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-200 underline focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 after:content-["↗"] after:ml-1 after:text-xs'}},content:{text:{minimum:()=>"text-sm min-h-[44px] min-w-[44px]",touch:()=>"min-h-[44px] min-w-[44px] touch-manipulation"}},feedback:{error:{container:()=>"border border-red-300 dark:border-red-700 bg-red-50 dark:bg-red-900/20 rounded-md p-4",title:()=>"text-sm font-medium text-red-800 dark:text-red-200",message:()=>"text-sm text-red-700 dark:text-red-300 mt-2"},success:{container:()=>"border border-green-300 dark:border-green-700 bg-green-50 dark:bg-green-900/20 rounded-md p-4",title:()=>"text-sm font-medium text-green-800 dark:text-green-200",message:()=>"text-sm text-green-700 dark:text-green-300 mt-2"},liveRegion:{polite:()=>'sr-only aria-live="polite"',assertive:()=>'sr-only aria-live="assertive"',status:()=>'sr-only role="status" aria-live="polite"',alert:()=>'sr-only role="alert" aria-live="assertive"'}}},performance:{bundle:{lazy:{component:()=>"opacity-0 transition-opacity duration-300",componentLoaded:()=>"opacity-100",image:()=>"blur-sm transition-all duration-300",imageLoaded:()=>"blur-none",skeleton:()=>"animate-pulse bg-gray-200 dark:bg-gray-700 rounded"},splitting:{loading:()=>"flex items-center justify-center py-8",error:()=>"text-red-600 dark:text-red-400 text-center py-8",fallback:()=>"bg-gray-100 dark:bg-gray-800 animate-pulse rounded"}},rendering:{gpu:{transform:()=>"transform-gpu",layer:()=>"will-change-transform transform translate3d-0",composite:()=>"backface-hidden"},layout:{stable:()=>"aspect-square",containLayout:()=>"contain-layout",containStyle:()=>"contain-style",sticky:()=>"sticky top-0 z-40",fixed:()=>"fixed inset-0 z-50"},memory:{virtualList:()=>"overflow-hidden",virtualItem:()=>"absolute left-0 right-0",responsiveImage:()=>"max-w-full h-auto object-cover",lazyImage:()=>"object-cover transition-opacity duration-300 opacity-0",loadedImage:()=>"opacity-100"}},network:{cache:{cached:()=>"border-l-4 border-green-500 bg-green-50 dark:bg-green-900/20",updating:()=>"border-l-4 border-blue-500 bg-blue-50 dark:bg-blue-900/20",offline:()=>"border-l-4 border-gray-500 bg-gray-50 dark:bg-gray-900/20",error:()=>"border-l-4 border-red-500 bg-red-50 dark:bg-red-900/20",fresh:()=>"text-green-600 dark:text-green-400",stale:()=>"text-yellow-600 dark:text-yellow-400",expired:()=>"text-red-600 dark:text-red-400"},connection:{fast:()=>"border-green-500 bg-green-50 dark:bg-green-900/20",slow:()=>"border-yellow-500 bg-yellow-50 dark:bg-yellow-900/20",offline:()=>"border-red-500 bg-red-50 dark:bg-red-900/20"}},webVitals:{lcp:{optimize:()=>"will-change-contents",hero:()=>"contain-layout will-change-contents",image:()=>"object-cover will-change-auto"},interactivity:{optimize:()=>"touch-manipulation select-none",debounced:()=>"transition-none",throttled:()=>"pointer-events-none transition-opacity duration-100",ready:()=>"pointer-events-auto opacity-100"},layoutStability:{stable:()=>"aspect-square contain-layout",placeholder:()=>"min-h-[200px] bg-gray-100 dark:bg-gray-800",skeleton:()=>"animate-pulse bg-gray-200 dark:bg-gray-700",imageContainer:()=>"overflow-hidden relative",imageStable:()=>"absolute inset-0 object-cover"}},web3:{wallet:{cached:()=>"opacity-100 transition-opacity duration-200",connecting:()=>"opacity-75 cursor-wait",staleData:()=>"opacity-75",freshData:()=>"opacity-100"},transaction:{batched:()=>"border-l-4 border-blue-500 bg-blue-50 dark:bg-blue-900/20",individual:()=>"border-l-4 border-gray-500 bg-gray-50 dark:bg-gray-900/20",gasOptimal:()=>"text-green-600 dark:text-green-400",gasHigh:()=>"text-yellow-600 dark:text-yellow-400",gasVeryHigh:()=>"text-red-600 dark:text-red-400"},blockchain:{realtime:()=>"border-green-500 bg-green-50 dark:bg-green-900/20",cached:()=>"border-blue-500 bg-blue-50 dark:bg-blue-900/20",stale:()=>"border-yellow-500 bg-yellow-50 dark:bg-yellow-900/20",optimistic:()=>"opacity-75 transition-opacity duration-200",confirmed:()=>"opacity-100",refetching:()=>"animate-pulse"}},monitoring:{metrics:{good:()=>"text-green-600 dark:text-green-400 bg-green-100 dark:bg-green-900/20",needsImprovement:()=>"text-yellow-600 dark:text-yellow-400 bg-yellow-100 dark:bg-yellow-900/20",poor:()=>"text-red-600 dark:text-red-400 bg-red-100 dark:bg-red-900/20"},errorBoundary:{container:()=>"border border-red-300 dark:border-red-700 bg-red-50 dark:bg-red-900/20 rounded-lg p-4",title:()=>"text-lg font-semibold text-red-800 dark:text-red-200",message:()=>"text-red-700 dark:text-red-300 mt-2",retry:()=>"mt-4 px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500",fallback:()=>"text-center text-gray-500 dark:text-gray-400 py-8"}},resource:{image:{responsive:()=>"w-full h-auto object-cover",hero:()=>"w-full h-[50vh] object-cover",thumbnail:()=>"w-16 h-16 object-cover rounded",avatar:()=>"w-10 h-10 object-cover rounded-full",placeholder:()=>"bg-gray-200 dark:bg-gray-700 animate-pulse",blurred:()=>"filter blur-sm",sharp:()=>"filter blur-none transition-all duration-300"},critical:{aboveFold:()=>"will-change-contents",belowFold:()=>"will-change-auto"}},data:{query:{cached:()=>"opacity-100",loading:()=>"opacity-75 animate-pulse",error:()=>"opacity-50 text-red-600 dark:text-red-400",fresh:()=>"border-l-2 border-green-500",stale:()=>"border-l-2 border-yellow-500",invalid:()=>"border-l-2 border-red-500",optimistic:()=>"opacity-75",confirmed:()=>"opacity-100",reverted:()=>"opacity-50 line-through"},realtime:{connected:()=>"border-green-500 bg-green-50 dark:bg-green-900/20",connecting:()=>"border-yellow-500 bg-yellow-50 dark:bg-yellow-900/20",disconnected:()=>"border-red-500 bg-red-50 dark:bg-red-900/20",live:()=>"animate-pulse text-green-600 dark:text-green-400",delayed:()=>"text-yellow-600 dark:text-yellow-400",offline:()=>"text-gray-500 dark:text-gray-400"}}}};function Ie(...t){return nt.twMerge(K.clsx(t))}function ct(t,e){if(t.startsWith("hsl("))return t.replace(")",` / ${e})`);if(t.startsWith("#")){const r=t.slice(1),o=parseInt(r.slice(0,2),16),n=parseInt(r.slice(2,4),16),s=parseInt(r.slice(4,6),16);return`rgba(${o}, ${n}, ${s}, ${e})`}return t}function gt(t,e={}){const r=[t];return Object.entries(e).forEach(([o,n])=>{r.push(`${o}:${n}`)}),r.join(" ")}function ut(t,e){return`${t} dark:${e}`}const Tr={button:{xs:"h-7 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-11 px-8 text-base",xl:"h-12 px-10 text-lg"},input:{xs:"h-7 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},icon:{xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8"}};function mt(t,e="md"){return Tr[t][e]}const Lr="focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",zr="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",bt={default:"transition-colors duration-200",colors:"transition-colors duration-200"};function pt(t){return Ie({default:"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800",primary:"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800",secondary:"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-gray-700",destructive:"bg-red-600 text-white hover:bg-red-700 active:bg-red-800",outline:"border border-gray-300 bg-transparent hover:bg-gray-50 active:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-800",ghost:"bg-transparent hover:bg-gray-100 active:bg-gray-200 dark:hover:bg-gray-800"}[t],bt.default,zr)}function ht(t="default"){return Ie("w-full rounded-md border bg-white px-3 py-2 text-sm placeholder:text-gray-500 dark:bg-gray-800 dark:text-gray-100 dark:placeholder:text-gray-400",{default:"border-gray-300 dark:border-gray-600 focus:border-blue-500 dark:focus:border-blue-400",error:"border-red-300 dark:border-red-600 focus:border-red-500 dark:focus:border-red-400",success:"border-green-300 dark:border-green-600 focus:border-green-500 dark:focus:border-green-400"}[t],Lr,bt.colors)}function yt(t="default"){const e="rounded-lg bg-white dark:bg-gray-800";return{default:e,bordered:`${e} border border-gray-200 dark:border-gray-700`,elevated:`${e} shadow-md`}[t]}function ft(t="base",e="normal",r="default"){const o={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"},n={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},s={default:"text-gray-900 dark:text-gray-100",muted:"text-gray-600 dark:text-gray-400",primary:"text-blue-600 dark:text-blue-400"};return Ie(o[t],n[e],s[r])}const M={backgrounds:{main:"bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-100",page:"bg-gradient-to-br from-blue-50 to-indigo-100",pageDark:"bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-gray-900 dark:to-gray-800",section:"bg-gradient-to-r from-purple-50 to-blue-50",overlay:"bg-gradient-to-br from-blue-50/50 to-purple-50/50"},buttons:{primary:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700",primaryBlue:"bg-gradient-to-r from-blue-500 to-blue-700 hover:from-blue-600 hover:to-blue-800",primaryPurple:"bg-gradient-to-r from-purple-500 to-purple-700 hover:from-purple-600 hover:to-purple-800"},text:{primary:"bg-gradient-to-r from-gray-900 via-blue-800 to-purple-800",secondary:"bg-gradient-to-r from-blue-600 via-purple-600 to-pink-600",accent:"bg-gradient-to-r from-blue-600 to-purple-600"},effects:{glow:"bg-gradient-to-r from-blue-600 to-purple-600",shimmer:"bg-gradient-to-r from-transparent via-white/20 to-transparent"}},xt={primaryButton:`${M.buttons.primary} text-white shadow-lg hover:shadow-xl transition-all duration-200`,heroButton:`${M.buttons.primary} text-white px-8 py-4 rounded-xl font-bold text-lg transition-all duration-300 transform hover:scale-105 shadow-2xl hover:shadow-blue-500/25`,headerButton:`${M.buttons.primary} text-white px-4 py-2 rounded-md font-medium transition-all duration-200 transform hover:scale-105 shadow-lg`,pageLayout:`min-h-screen ${M.backgrounds.page}`,pageLayoutDark:`min-h-screen ${M.backgrounds.pageDark}`,gradientText:`${M.text.primary} bg-clip-text text-transparent`,gradientTextSecondary:`${M.text.secondary} bg-clip-text text-transparent`},jr=(t,e)=>M[t][e]||"",Mr=(t,e="")=>`${t} ${e}`.trim(),L={layout:{section:"py-20",sectionSm:"py-16",sectionLg:"py-24",container:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",containerSm:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",containerLg:"max-w-8xl mx-auto px-4 sm:px-6 lg:px-8"},animation:{fast:150,normal:300,slow:500,extraSlow:1e3},spacing:{sectionGap:"space-y-20",cardGap:"space-y-8",listGap:"space-y-4",inlineGap:"space-x-4"},grid:{responsive2:"grid md:grid-cols-2 gap-8",responsive3:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",responsive4:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",autoFit:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-auto-fit gap-8"},typography:{hero:"text-4xl md:text-6xl lg:text-7xl font-bold",heading1:"text-3xl md:text-5xl font-bold",heading2:"text-2xl md:text-4xl font-bold",heading3:"text-xl md:text-2xl font-bold",bodyLarge:"text-xl md:text-2xl",body:"text-lg",caption:"text-sm text-gray-600 dark:text-gray-400"},card:{base:"bg-white dark:bg-gray-800 rounded-lg shadow-lg",interactive:"bg-white dark:bg-gray-800 rounded-lg shadow-lg hover:shadow-xl transition-shadow",border:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg"},button:{sm:"px-3 py-2 text-sm",md:"px-4 py-2",lg:"px-6 py-3 text-lg",xl:"px-8 py-4 text-xl"},icon:{xs:"w-4 h-4",sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-10 h-10",xxl:"w-12 h-12"},transition:{base:"transition-all duration-200",slow:"transition-all duration-300",colors:"transition-colors duration-200",transform:"transition-transform duration-200",shadow:"transition-shadow duration-200"},hover:{scale:"hover:scale-105",scaleSmall:"hover:scale-102",lift:"hover:-translate-y-1",glow:"hover:shadow-lg"},focus:{ring:"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",ringInset:"focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500"}};`${L.layout.section}${L.layout.container}`,`${L.layout.section}${L.layout.container}`,`${L.card.interactive}${L.transition.base}${L.hover.lift}`,`${L.button.md}${L.transition.base}${L.hover.scale}${L.focus.ring}`,`${L.typography.hero}`,`${L.grid.responsive4}`,`${L.icon.lg}`;const B=["Web3 email platform","wallet email","ENS email","SNS email","smart contract integration","decentralized email","blockchain messaging","crypto email","Web3 communication","secure email"],Ae=["Web3 email for users","wallet email address","passwordless email","secure Web3 communication","ENS domain email","SNS domain email","crypto wallet email","Web2 Web3 bridge","decentralized identity","blockchain email"],Pe=["Web3 email API","smart contract email integration","blockchain developer tools","Web3 SDK","decentralized messaging API","smart contract notifications","Web3 developer platform","blockchain email service","crypto developer tools","Web3 infrastructure"],kt=["Web3 email documentation","wallet email guide","ENS email setup","SNS email integration","smart contract email API","Web3 communication docs","blockchain email tutorial","crypto wallet email","decentralized email guide","Web3 developer documentation"],Te=["about 0xmail.box","Web3 email team","blockchain email company","crypto email platform","decentralized email team","wallet email founders","Web3 communication team","blockchain messaging company","ENS email team","crypto startup team"],me=["DeFi email notifications","DAO communication platform","NFT email alerts","crypto airdrop notifications","Web3 social platform","blockchain KYC email","DeFi yield farming alerts","GameFi notification system","Layer 2 email integration","cross-chain messaging protocol","multichain email support","decentralized identity verification","Web3 reputation system","crypto compliance email"],be=["EIP-712 signature authentication","SIWE Sign-In with Ethereum","multi-signature wallet email","hardware wallet email support","Web3 API integration","smart contract event notifications","IPFS email storage","ENS subdomain email routing","Chainlink oracle integration","Web3 SDK documentation","blockchain webhook notifications","crypto API endpoints","decentralized email protocol","Web3 developer tools"],Le=["accessible Web3 email","screen reader crypto wallet","Web3 accessibility features","inclusive blockchain platform","accessible wallet integration","Web3 WCAG compliance","keyboard navigation Web3","voice control crypto email","high contrast Web3 interface","accessible blockchain tools"],D=(...t)=>{const e=new Set;return t.forEach(r=>r.forEach(o=>e.add(o))),Array.from(e)},Or=()=>D(B,Ae,me),Wr=()=>D(B,Te),Br=()=>D(B,kt,be),Dr=()=>D(B,Ae,Le),Fr=()=>D(B,Pe,be),_r=()=>D(B,Pe,me),qr=()=>D(B,me,be),Vr=()=>D(B,Te,Le),wt={"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box",contactPoint:{"@type":"ContactPoint",contactType:"customer service",email:"support@sudobility.com"}},Ur=t=>({"@context":"https://schema.org","@type":"TechArticle",name:"Documentation",headline:"0xmail.box Documentation - Web3 Email Platform Guide",description:"Complete documentation for 0xmail.box Web3 email platform. Learn how to connect wallets, manage ENS/SNS domain emails, integrate smart contracts, and use Web3 communication features.",url:"https://0xmail.box/document",datePublished:"2025-01-12",dateModified:"2025-01-12",author:wt,publisher:wt,...t}),Hr={centeredContainer:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",fullWidthSection:"w-full py-8 sm:py-12 lg:py-16",flexBetween:"flex items-center justify-between",flexCenter:"flex items-center justify-center",gridResponsive:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",clickable:"cursor-pointer transition-colors duration-200 hover:opacity-80",focusable:"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",disabled:"opacity-50 cursor-not-allowed pointer-events-none",cardShadow:"shadow-md hover:shadow-lg transition-shadow duration-200",elevatedCard:"bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700",subtleCard:"bg-gray-50 dark:bg-gray-900 rounded-md border border-gray-200 dark:border-gray-800",sectionSpacing:"py-8 sm:py-12 lg:py-16",componentSpacing:"space-y-4",tightSpacing:"space-y-2",looseSpacing:"space-y-8"},vt={layout:{container:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",containerSmall:"mx-auto max-w-3xl px-4 sm:px-6 lg:px-8",containerLarge:"mx-auto max-w-full px-4 sm:px-6 lg:px-8",section:"py-8 sm:py-12 lg:py-16",sectionSmall:"py-6 sm:py-8 lg:py-10",flex:"flex items-center justify-between",flexCenter:"flex items-center justify-center",flexCol:"flex flex-col",grid:"grid grid-cols-1 gap-6",gridMd:"grid grid-cols-1 md:grid-cols-2 gap-6",gridLg:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},background:{surface:"bg-white dark:bg-gray-800",subtle:"bg-gray-50 dark:bg-gray-900",muted:"bg-gray-100 dark:bg-gray-700",overlay:"bg-black/50 dark:bg-black/70"},border:{default:"border-gray-200 dark:border-gray-700",subtle:"border-gray-100 dark:border-gray-800",radius:"rounded-lg",radiusSm:"rounded-md",radiusLg:"rounded-xl",radiusFull:"rounded-full"},shadow:{sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl"},spacing:{card:{sm:"p-4",md:"p-6",lg:"p-8"},section:{sm:"py-6 px-4",md:"py-8 px-6",lg:"py-12 px-8"}},text:{h1:"text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 dark:text-white leading-tight tracking-tight",h2:"text-2xl sm:text-3xl lg:text-4xl font-bold text-gray-900 dark:text-white leading-tight tracking-tight",h3:"text-xl sm:text-2xl font-semibold text-gray-900 dark:text-white leading-tight tracking-tight",h4:"text-lg sm:text-xl font-semibold text-gray-900 dark:text-white leading-tight tracking-tight",h5:"text-base sm:text-lg font-semibold text-gray-900 dark:text-white leading-tight tracking-tight",h6:"text-base font-semibold text-gray-900 dark:text-white leading-tight tracking-tight",display:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-extrabold text-gray-900 dark:text-white leading-none tracking-tight",hero:"text-6xl sm:text-7xl md:text-8xl lg:text-9xl font-black text-gray-900 dark:text-white leading-none tracking-tight",body:"text-base font-normal text-gray-700 dark:text-gray-300 leading-relaxed",bodyLarge:"text-lg font-normal text-gray-700 dark:text-gray-300 leading-relaxed",bodySmall:"text-sm font-normal text-gray-600 dark:text-gray-400 leading-relaxed",lead:"text-xl font-normal text-gray-700 dark:text-gray-300 leading-relaxed",leadLarge:"text-2xl font-normal text-gray-700 dark:text-gray-300 leading-relaxed",caption:"text-sm font-normal text-gray-500 dark:text-gray-500 leading-normal",label:"text-sm font-medium text-gray-700 dark:text-gray-300",helper:"text-sm font-normal text-gray-500 dark:text-gray-500",link:"text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 underline underline-offset-2 decoration-blue-600 dark:decoration-blue-400 transition-colors duration-150",linkSubtle:"text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 no-underline hover:underline hover:underline-offset-2 transition-all duration-150",linkMuted:"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 underline underline-offset-2 decoration-gray-400 hover:decoration-gray-600 transition-colors duration-150",code:"font-mono text-sm font-medium text-gray-900 dark:text-gray-100 bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded",codeBlock:"font-mono text-sm font-normal text-gray-900 dark:text-gray-100 bg-gray-100 dark:bg-gray-800 p-4 rounded-lg overflow-x-auto leading-relaxed",success:"text-green-700 dark:text-green-300 font-medium",warning:"text-amber-700 dark:text-amber-300 font-medium",error:"text-red-700 dark:text-red-300 font-medium",info:"text-blue-700 dark:text-blue-300 font-medium",emphasis:"font-medium text-gray-900 dark:text-gray-100",strong:"font-semibold text-gray-900 dark:text-gray-100",muted:"text-gray-500 dark:text-gray-500",uppercase:"text-xs font-semibold text-gray-500 dark:text-gray-500 uppercase tracking-wider"},transition:{default:"transition-colors duration-200",all:"transition-all duration-200",fast:"transition-all duration-150",slow:"transition-all duration-300",transform:"transition-transform duration-200"},states:{hover:"hover:opacity-80 transition-opacity duration-200",focus:"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",disabled:"disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none",loading:"animate-pulse"},web3:{walletButton:"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 inline-flex items-center gap-2 px-4 py-2 rounded-lg font-medium",chainBadge:t=>t==="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":"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",addressText:"font-mono text-sm text-gray-600 dark:text-gray-400"}},Gr=t=>t,Kr=t=>{if(typeof document>"u")return;const e=document.createElement("style");e.textContent=t,e.setAttribute("data-critical","true"),document.head.appendChild(e)},Yr=t=>{if(typeof document>"u")return;const e=document.createElement("link");e.rel="preload",e.as="style",e.href=t,e.onload=()=>{e.rel="stylesheet"},document.head.appendChild(e);const r=document.createElement("noscript");r.innerHTML=`<link rel="stylesheet" href="${t}">`,document.head.appendChild(r)},Qr=t=>{const e={};return Object.entries(t).forEach(([r,o])=>{e[`--${r}`]=typeof o=="number"?`${o}px`:o}),e},Zr={xs:475,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Jr=(t,e=Zr)=>{const[r,o]=b.useState("base");return b.useEffect(()=>{const n=()=>{const s=window.innerWidth;s>=e["2xl"]?o("2xl"):s>=e.xl?o("xl"):s>=e.lg?o("lg"):s>=e.md?o("md"):s>=e.sm?o("sm"):s>=e.xs?o("xs"):o("base")};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),t[r]||t.base||{}},Ct=()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches,Xr=()=>{const[t,e]=b.useState(Ct);return b.useEffect(()=>{const r=window.matchMedia("(prefers-reduced-motion: reduce)"),o=()=>{e(r.matches)};return r.addEventListener?r.addEventListener("change",o):r.addListener(o),()=>{r.removeEventListener?r.removeEventListener("change",o):r.removeListener(o)}},[]),t},Rr=(t,e=["layout","paint"])=>{t&&(t.style.contain=e.join(" "))},ea=(t,e)=>t?(t.style.willChange=e.join(", "),()=>{t.style.willChange="auto"}):void 0,ta=t=>{typeof window>"u"||requestAnimationFrame(()=>{t.forEach(e=>e())})},ra=(...t)=>t.filter(Boolean).join(" "),aa=t=>{const e={},r=["display","position","width","height","margin","padding","fontSize","fontFamily","color","backgroundColor"];return Object.entries(t).forEach(([o,n])=>{r.includes(o)&&(e[o]=n)}),e},oa=(t,e=[])=>{const[r,o]=b.useState(null),[n,s]=b.useState(!0);return b.useEffect(()=>{let d=!0;return t().then(l=>{d&&(o(l.default),s(!1))}),()=>{d=!1}},[t,...e]),{styles:r,loading:n}},na=(t,e="1rem")=>({display:"grid",gridTemplateColumns:`repeat(${t}, minmax(0, 1fr))`,gap:e,contain:"layout",willChange:"transform"}),ia=(t="row",e="center",r="flex-start")=>({display:"flex",flexDirection:t,alignItems:e,justifyContent:r,contain:"layout"}),sa=t=>{const[e,r]=b.useState(!1);return b.useEffect(()=>{const o=window.matchMedia(t);r(o.matches);const n=()=>r(o.matches);return o.addEventListener?o.addEventListener("change",n):o.addListener(n),()=>{o.removeEventListener?o.removeEventListener("change",n):o.removeListener(n)}},[t]),e},la=(t,e)=>{const[r,o]=b.useState("light");return b.useEffect(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)");o(n.matches?"dark":"light");const s=()=>{o(n.matches?"dark":"light")};return n.addEventListener?n.addEventListener("change",s):n.addListener(s),()=>{n.removeEventListener?n.removeEventListener("change",s):n.removeListener(s)}},[]),r==="dark"?e:t},da=t=>{const e={src:t.src,alt:t.alt,loading:t.loading||"lazy"};return t.title&&(e.title=t.title),t.width&&(e.width=t.width),t.height&&(e.height=t.height),t.sizes&&(e.sizes=t.sizes),t.srcSet&&(e.srcSet=t.srcSet),e.itemProp="image",e},ca=(t,e=[320,640,768,1024,1280,1920])=>e.map(r=>`${t.replace(/\{width\}/g,r.toString())} ${r}w`).join(", "),ga=t=>t.map(e=>e.maxWidth?`(max-width: ${e.maxWidth}px) ${e.size}`:e.size).join(", "),ua=(t,e="openGraph")=>{const r={};return e==="openGraph"?(r["og:image"]=t.url,t.width&&(r["og:image:width"]=t.width.toString()),t.height&&(r["og:image:height"]=t.height.toString()),t.alt&&(r["og:image:alt"]=t.alt),t.type&&(r["og:image:type"]=t.type)):(r["twitter:image"]=t.url,t.alt&&(r["twitter:image:alt"]=t.alt)),r},ma=(t='img[loading="lazy"]')=>{if(typeof window>"u"||!("IntersectionObserver"in window))return;const e=document.querySelectorAll(t);if("loading"in HTMLImageElement.prototype){e.forEach(o=>{o.dataset.src&&(o.src=o.dataset.src)});return}const r=new IntersectionObserver(o=>{o.forEach(n=>{if(n.isIntersecting){const s=n.target;s.dataset.src&&(s.src=s.dataset.src,s.removeAttribute("data-src")),s.dataset.srcset&&(s.srcset=s.dataset.srcset,s.removeAttribute("data-srcset")),r.unobserve(s)}})},{rootMargin:"50px 0px",threshold:.01});return e.forEach(o=>r.observe(o)),()=>{e.forEach(o=>r.unobserve(o))}},St=()=>typeof window>"u"?Promise.resolve(!1):new Promise(t=>{const e=new Image;e.onload=e.onerror=function(){t(e.height===2)},e.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}),Nt=()=>typeof window>"u"?Promise.resolve(!1):new Promise(t=>{const e=new Image;e.onload=()=>t(!0),e.onerror=()=>t(!1),e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="}),ba=async(t="jpg")=>{const[e,r]=await Promise.all([St(),Nt()]);return r?"avif":e?"webp":t},pa=(t,e,r,o)=>`
|
|
1
|
+
(function(i,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("clsx"),require("tailwind-merge"),require("react"),require("react/jsx-runtime"),require("web-vitals"),require("@heroicons/react/24/outline"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("@radix-ui/react-label"),require("@radix-ui/react-select"),require("lucide-react"),require("@radix-ui/react-switch"),require("@radix-ui/react-tabs"),require("react-router-dom"),require("react-dom"),require("react-share"),require("react-i18next"),require("@heroicons/react/24/solid"),require("react-helmet-async")):typeof define=="function"&&define.amd?define(["exports","clsx","tailwind-merge","react","react/jsx-runtime","web-vitals","@heroicons/react/24/outline","@radix-ui/react-slot","class-variance-authority","@radix-ui/react-label","@radix-ui/react-select","lucide-react","@radix-ui/react-switch","@radix-ui/react-tabs","react-router-dom","react-dom","react-share","react-i18next","@heroicons/react/24/solid","react-helmet-async"],Q):(i=typeof globalThis<"u"?globalThis:i||self,Q(i.MailBoxComponents={},i.clsx,i.tailwindMerge,i.React,i.ReactJSXRuntime,i.WebVitals,i.HeroiconsOutline,i.RadixSlot,i.cva,i.RadixLabel,i.RadixSelect,i.LucideReact,i.RadixSwitch,i.RadixTabs,i.ReactRouterDOM,i.ReactDOM,i.ReactShare,i.ReactI18next,i.HeroiconsSolid,i.ReactHelmetAsync))})(this,(function(i,Q,Jt,h,a,Y,w,Xt,P,Qe,Rt,ie,we,D,le,er,M,Ye,ce,tr){"use strict";function Ze(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const $=Ze(h),A=Ze(Rt);function f(...t){return Jt.twMerge(Q.clsx(t))}const rr=t=>t,ar=t=>{if(typeof document>"u")return;const e=document.createElement("style");e.textContent=t,e.setAttribute("data-critical","true"),document.head.appendChild(e)},nr=t=>{if(typeof document>"u")return;const e=document.createElement("link");e.rel="preload",e.as="style",e.href=t,e.onload=()=>{e.rel="stylesheet"},document.head.appendChild(e);const r=document.createElement("noscript");r.innerHTML=`<link rel="stylesheet" href="${t}">`,document.head.appendChild(r)},or=t=>{const e={};return Object.entries(t).forEach(([r,n])=>{e[`--${r}`]=typeof n=="number"?`${n}px`:n}),e},sr={xs:475,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},ir=(t,e=sr)=>{const[r,n]=h.useState("base");return h.useEffect(()=>{const o=()=>{const s=window.innerWidth;s>=e["2xl"]?n("2xl"):s>=e.xl?n("xl"):s>=e.lg?n("lg"):s>=e.md?n("md"):s>=e.sm?n("sm"):s>=e.xs?n("xs"):n("base")};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t[r]||t.base||{}},Je=()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches,lr=()=>{const[t,e]=h.useState(Je);return h.useEffect(()=>{const r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{e(r.matches)};return r.addEventListener?r.addEventListener("change",n):r.addListener(n),()=>{r.removeEventListener?r.removeEventListener("change",n):r.removeListener(n)}},[]),t},cr=(t,e=["layout","paint"])=>{t&&(t.style.contain=e.join(" "))},dr=(t,e)=>t?(t.style.willChange=e.join(", "),()=>{t.style.willChange="auto"}):void 0,gr=t=>{typeof window>"u"||requestAnimationFrame(()=>{t.forEach(e=>e())})},ur=(...t)=>t.filter(Boolean).join(" "),mr=t=>{const e={},r=["display","position","width","height","margin","padding","fontSize","fontFamily","color","backgroundColor"];return Object.entries(t).forEach(([n,o])=>{r.includes(n)&&(e[n]=o)}),e},hr=(t,e=[])=>{const[r,n]=h.useState(null),[o,s]=h.useState(!0);return h.useEffect(()=>{let c=!0;return t().then(l=>{c&&(n(l.default),s(!1))}),()=>{c=!1}},[t,...e]),{styles:r,loading:o}},pr=(t,e="1rem")=>({display:"grid",gridTemplateColumns:`repeat(${t}, minmax(0, 1fr))`,gap:e,contain:"layout",willChange:"transform"}),fr=(t="row",e="center",r="flex-start")=>({display:"flex",flexDirection:t,alignItems:e,justifyContent:r,contain:"layout"}),br=t=>{const[e,r]=h.useState(!1);return h.useEffect(()=>{const n=window.matchMedia(t);r(n.matches);const o=()=>r(n.matches);return n.addEventListener?n.addEventListener("change",o):n.addListener(o),()=>{n.removeEventListener?n.removeEventListener("change",o):n.removeListener(o)}},[t]),e},yr=(t,e)=>{const[r,n]=h.useState("light");return h.useEffect(()=>{const o=window.matchMedia("(prefers-color-scheme: dark)");n(o.matches?"dark":"light");const s=()=>{n(o.matches?"dark":"light")};return o.addEventListener?o.addEventListener("change",s):o.addListener(s),()=>{o.removeEventListener?o.removeEventListener("change",s):o.removeListener(s)}},[]),r==="dark"?e:t},xr=t=>{const e={src:t.src,alt:t.alt,loading:t.loading||"lazy"};return t.title&&(e.title=t.title),t.width&&(e.width=t.width),t.height&&(e.height=t.height),t.sizes&&(e.sizes=t.sizes),t.srcSet&&(e.srcSet=t.srcSet),e.itemProp="image",e},vr=(t,e=[320,640,768,1024,1280,1920])=>e.map(r=>`${t.replace(/\{width\}/g,r.toString())} ${r}w`).join(", "),wr=t=>t.map(e=>e.maxWidth?`(max-width: ${e.maxWidth}px) ${e.size}`:e.size).join(", "),kr=(t,e="openGraph")=>{const r={};return e==="openGraph"?(r["og:image"]=t.url,t.width&&(r["og:image:width"]=t.width.toString()),t.height&&(r["og:image:height"]=t.height.toString()),t.alt&&(r["og:image:alt"]=t.alt),t.type&&(r["og:image:type"]=t.type)):(r["twitter:image"]=t.url,t.alt&&(r["twitter:image:alt"]=t.alt)),r},Cr=(t='img[loading="lazy"]')=>{if(typeof window>"u"||!("IntersectionObserver"in window))return;const e=document.querySelectorAll(t);if("loading"in HTMLImageElement.prototype){e.forEach(n=>{n.dataset.src&&(n.src=n.dataset.src)});return}const r=new IntersectionObserver(n=>{n.forEach(o=>{if(o.isIntersecting){const s=o.target;s.dataset.src&&(s.src=s.dataset.src,s.removeAttribute("data-src")),s.dataset.srcset&&(s.srcset=s.dataset.srcset,s.removeAttribute("data-srcset")),r.unobserve(s)}})},{rootMargin:"50px 0px",threshold:.01});return e.forEach(n=>r.observe(n)),()=>{e.forEach(n=>r.unobserve(n))}},Xe=()=>typeof window>"u"?Promise.resolve(!1):new Promise(t=>{const e=new Image;e.onload=e.onerror=function(){t(e.height===2)},e.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}),Re=()=>typeof window>"u"?Promise.resolve(!1):new Promise(t=>{const e=new Image;e.onload=()=>t(!0),e.onerror=()=>t(!1),e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="}),Sr=async(t="jpg")=>{const[e,r]=await Promise.all([Xe(),Re()]);return r?"avif":e?"webp":t},Nr=(t,e,r,n)=>`
|
|
2
2
|
<picture>
|
|
3
|
-
${t.map(s=>{const
|
|
3
|
+
${t.map(s=>{const c=[`srcset="${s.srcSet}"`];return s.type&&c.push(`type="${s.type}"`),s.media&&c.push(`media="${s.media}"`),s.sizes&&c.push(`sizes="${s.sizes}"`),`<source ${c.join(" ")}>`}).join(`
|
|
4
4
|
`)}
|
|
5
|
-
<img src="${e}" alt="${r}"${
|
|
6
|
-
</picture>`.trim(),
|
|
5
|
+
<img src="${e}" alt="${r}"${n?` class="${n}"`:""} loading="lazy">
|
|
6
|
+
</picture>`.trim(),Er=(t,e="image")=>{if(typeof document>"u")return;const r=document.createElement("link");r.rel="preload",r.as=e,r.href=t,t.includes(".webp")?r.type="image/webp":t.includes(".avif")&&(r.type="image/avif"),document.head.appendChild(r)},Ir=(t,e,r)=>{if(typeof window>"u")return;const n=new Image;n.src=t,n.classList.add("progressive-image-placeholder"),r.appendChild(n);const o=new Image;o.src=e,o.classList.add("progressive-image-main"),o.style.opacity="0",o.onload=()=>{r.appendChild(o),requestAnimationFrame(()=>{o.style.transition="opacity 0.3s",o.style.opacity="1",setTimeout(()=>{n.remove()},300)})}},Pr=t=>new Promise(e=>{const r=performance.now();t.complete?e({loadTime:0,size:0,format:t.src.split(".").pop()||"unknown",dimensions:{width:t.naturalWidth,height:t.naturalHeight},isLazyLoaded:t.loading==="lazy",isOptimized:t.srcset!==""||t.sizes!==""}):t.addEventListener("load",()=>{const n=performance.now()-r;e({loadTime:n,size:0,format:t.src.split(".").pop()||"unknown",dimensions:{width:t.naturalWidth,height:t.naturalHeight},isLazyLoaded:t.loading==="lazy",isOptimized:t.srcset!==""||t.sizes!==""})})}),Ar=(t,e,r="#e0e0e0")=>{const n=`
|
|
7
7
|
<svg width="${t}" height="${e}" xmlns="http://www.w3.org/2000/svg">
|
|
8
8
|
<rect width="100%" height="100%" fill="${r}"/>
|
|
9
9
|
</svg>
|
|
10
|
-
`;return`data:image/svg+xml;base64,${btoa(o)}`},ka=(t,e)=>{const r=1/e*100;t.style.position="relative",t.style.paddingTop=`${r}%`;const o=t.querySelector("img");o&&(o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.height="100%",o.style.objectFit="cover")},Y={createPureFunction:t=>t,isDevelopment:process.env.NODE_ENV==="development",isProduction:process.env.NODE_ENV==="production",isTest:process.env.NODE_ENV==="test",createFeatureFlags:(t={})=>({enableAnalytics:process.env.VITE_ENABLE_ANALYTICS==="true",enableDebugTools:process.env.NODE_ENV==="development",enablePerformanceMonitoring:process.env.VITE_ENABLE_PERF_MONITORING!=="false",...t})},wa=t=>{const e={};return Object.entries(t).forEach(([r,o])=>{e[r]=()=>{try{return o()}catch(n){return console.warn(`Failed to load ${r}:`,n),Promise.resolve({default:null})}}}),e},Et={createDebounce:t=>e=>{let r;return((...o)=>{clearTimeout(r),r=setTimeout(()=>e(...o),t)})},memoize:t=>{const e=new Map;return((...r)=>{const o=JSON.stringify(r);if(e.has(o))return e.get(o);const n=t(...r);return e.set(o,n),n})},isDeepEqual:(t,e)=>{if(t===e)return!0;if(t==null||e==null||typeof t!="object"||typeof e!="object")return!1;const r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(const n of r)if(!o.includes(n)||!Et.isDeepEqual(t[n],e[n]))return!1;return!0},createThrottle:t=>e=>{let r=0;return((...o)=>{const n=Date.now();if(n-r>=t)return r=n,e(...o)})}},va=t=>{const e={};return Object.entries(t).forEach(([r,o])=>{e[r]={},Object.entries(o).forEach(([n,s])=>{e[r][n]=()=>import(s).then(d=>({[n]:d[n]}))})}),e},Q={getModuleSize:t=>new Promise(e=>{if(typeof window<"u"&&"performance"in window){const o=performance.getEntriesByType("resource").find(n=>n.name.includes(t));e(o?.transferSize||0)}else e(0)}),usageTracker:new Set,trackUsage:t=>{Y.isDevelopment&&Q.usageTracker.add(t)},getUsageReport:()=>Y.isDevelopment?Array.from(Q.usageTracker).sort():[],estimateImpact:t=>{const e=t.map(r=>Q.getModuleSize(r).then(o=>[r,o]));return Promise.all(e).then(r=>{const o={};let n=0;return r.forEach(([s,d])=>{o[s]=d,n+=d}),{total:n,modules:o}})}},$t={inlineCriticalCSS:t=>{if(typeof document<"u"){const e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}},loadAsyncCSS:t=>{if(typeof document<"u"){const e=document.createElement("link");e.rel="stylesheet",e.href=t,e.media="print",e.onload=()=>{e.media="all"},document.head.appendChild(e)}},removeUnusedCSS:t=>{if(typeof document>"u")return;const e=new Set;return t.forEach(r=>{try{document.querySelector(r)&&e.add(r)}catch{}}),{used:Array.from(e),unused:t.filter(r=>!e.has(r))}}},Ca=(t={})=>{const{features:e={},criticalCSS:r="",enableUsageTracking:o=Y.isDevelopment}=t;return{features:Y.createFeatureFlags(e),initialize:()=>{r&&typeof document<"u"&&$t.inlineCriticalCSS(r)},cleanup:()=>{Q.usageTracker.clear()},getReport:()=>({usage:Q.getUsageReport(),features:Y.createFeatureFlags(e)})}};let ze;function Sa(t){throw typeof window<"u"?new Error("Web navigation service not implemented in shared library"):new Error("React Native navigation service not implemented in shared library")}function O(t){return ze||(ze=Sa()),ze}function Na(){const t=O(),e=t.getCurrentState();return{navigate:(r,o)=>{t.navigate(r,o)},goBack:r=>{t.goBack(r)},replace:(r,o)=>{t.replace(r,o)},currentPath:e.currentPath,searchParams:e.searchParams,params:e.params,canGoBack:t.canGoBack(),isSupported:t.isSupported()}}function Ea(){const e=O().getCurrentState(),r=Object.keys(e.searchParams).length>0?"?"+new URLSearchParams(e.searchParams).toString():"";return{pathname:e.currentPath,search:r,searchParams:e.searchParams,hash:"",state:{},key:e.currentPath}}function $a(){const t=O(),e=t.getCurrentState();return[new URLSearchParams(e.searchParams),n=>{const s=n instanceof URLSearchParams?Object.fromEntries(n.entries()):n,d=new URLSearchParams(s).toString(),l=e.currentPath+(d?`?${d}`:"");t.replace(l)}]}const U={navigate:(t,e)=>{O().navigate(t,e)},goBack:t=>{O().goBack(t)},replace:(t,e)=>{O().replace(t,e)},getCurrentPath:()=>O().getCurrentPath(),getSearchParams:()=>O().getSearchParams(),goToMail:()=>{U.navigate("/mail")},goToPreferences:()=>{U.navigate("/preferences")},goToCompose:(t,e)=>{const r=new URLSearchParams;t&&r.set("type",t),e&&Object.entries(e).forEach(([n,s])=>{r.set(n,s)});const o=r.toString();U.navigate(`/mail/compose${o?`?${o}`:""}`)},goToConnect:()=>{U.navigate("/connect")},goToDelegate:()=>{U.navigate("/admin/delegate")},goToHome:()=>{U.navigate("/")},canGoBack:()=>O().canGoBack()},Ia=(t,e)=>e.find(r=>r.href===t)||null,Aa=(t,e,r)=>{const o=t.split("/").filter(Boolean);if(o.length===0)return[{label:"Home",current:!0}];const n=[{label:"Home",href:"/"}],d={...{docs:"Documentation",about:"About",connect:"Connect",settings:"Settings",preferences:"Preferences",profile:"Profile",help:"Help",support:"Support",contact:"Contact",terms:"Terms of Service",privacy:"Privacy Policy"},...r||{}};return o.forEach((l,c)=>{const u=c===o.length-1,m="/"+o.slice(0,c+1).join("/"),p=e&&u?e:d[l]||l;n.push({label:p,href:u?void 0:m,current:u})}),n},Pa={isActivePath:(t,e,r=!0)=>r?t===e:t.startsWith(e),getParentPath:t=>{const e=t.split("/").filter(Boolean);return e.length<=1?"/":"/"+e.slice(0,-1).join("/")},extractParams:(t,e)=>{const r=t.split("/").filter(Boolean),o=e.split("/").filter(Boolean),n={};return r.forEach((s,d)=>{if(s.startsWith(":")&&o[d]){const l=s.substring(1);n[l]=o[d]}}),n},buildUrlWithParams:(t,e)=>{const r=new URL(t,"http://localhost");return Object.entries(e).forEach(([o,n])=>{r.searchParams.set(o,String(n))}),r.pathname+r.search},parseQueryParams:t=>{const e=new URLSearchParams(t.startsWith("?")?t:`?${t}`),r={};return e.forEach((o,n)=>{r[n]=o}),r},normalizePath:t=>{if(!t||t==="/")return"/";let e=t.startsWith("/")?t:`/${t}`;return e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1)),e},isExternalUrl:t=>{try{return new URL(t,window?.location?.origin||"http://localhost").origin!==(window?.location?.origin||"http://localhost")}catch{return!1}}};function Ta(t,e=3,r=1e3){return b.lazy(()=>new Promise((o,n)=>{const s=d=>{t().then(o).catch(l=>{d>0?setTimeout(()=>{s(d-1)},r):n(l)})};s(e)}))}function La(t){let e=null;const r=()=>(e||(e=t()),e.then(()=>{}));return{Component:b.lazy(()=>e||t()),preload:r}}function za(t,e={}){const{fallback:r=a.jsx("div",{children:"Loading..."}),errorFallback:o=a.jsx("div",{children:"Failed to load component"}),loadingDelay:n=200,minimumLoadingTime:s=500}=e,d=b.lazy(async()=>{const c=Date.now();try{const u=await t(),m=Date.now()-c;return m<s&&await new Promise(p=>setTimeout(p,s-m)),u}catch(u){return console.error("Failed to load component:",u),{default:(()=>o)}}}),l=()=>{const[c,u]=b.useState(!1);return b.useEffect(()=>{const m=setTimeout(()=>{u(!0)},n);return()=>clearTimeout(m)},[]),c?a.jsx(a.Fragment,{children:r}):null};return b.forwardRef((c,u)=>a.jsx(b.Suspense,{fallback:a.jsx(l,{}),children:a.jsx(d,{...c,ref:u})}))}function It(t,e={}){const[r,o]=b.useState(!1),[n,s]=b.useState(!1);return b.useEffect(()=>{const d=t.current;if(!d||n)return;const l=new IntersectionObserver(([c])=>{c.isIntersecting&&(o(!0),s(!0),l.disconnect())},{rootMargin:"50px",threshold:.01,...e});return l.observe(d),()=>{l.disconnect()}},[t,e,n]),r}const ja=({children:t,fallback:e=a.jsx("div",{children:"Loading..."}),threshold:r=.01,rootMargin:o="50px",placeholder:n})=>{const s=b.useRef(null),d=It(s,{threshold:r,rootMargin:o});return a.jsx("div",{ref:s,children:d?t:n||e})};function Ma(t){const{importFn:e,preloadOnHover:r=!0,preloadOnFocus:o=!0,prefetchDelay:n=50}=t;let s=null,d=null;const l=()=>(d||(d=e()),d),c=()=>{s&&clearTimeout(s),s=setTimeout(()=>{l()},n)};return{Component:b.lazy(()=>d||e()),preload:l,linkProps:{...r&&{onMouseEnter:c,onMouseLeave:()=>{s&&clearTimeout(s)}},...o&&{onFocus:c}}}}function Oa(t,e=[]){const[r,o]=b.useState(null),[n,s]=b.useState(!0),[d,l]=b.useState(null);return b.useEffect(()=>{let c=!0;return s(!0),l(null),t().then(u=>{c&&(o(u),s(!1))}).catch(u=>{c&&(l(u),s(!1))}),()=>{c=!1}},[t,...e]),{module:r,loading:n,error:d}}class At{constructor(e=3,r=100){this.queue=new Set,this.isProcessing=!1,this.batchSize=e,this.delay=r}add(e){this.queue.add(e),this.process()}async process(){if(this.isProcessing||this.queue.size===0)return;this.isProcessing=!0;const e=Array.from(this.queue).slice(0,this.batchSize);e.forEach(r=>this.queue.delete(r)),await Promise.all(e.map(r=>r().catch(console.error))),this.queue.size>0&&await new Promise(r=>setTimeout(r,this.delay)),this.isProcessing=!1,this.queue.size>0&&this.process()}}function Wa(t,e,r){if(typeof document>"u")return;const o=document.createElement("link");o.rel=e,o.href=t,r&&(e==="preload"||e==="prefetch")&&(o.as=r),document.head.appendChild(o)}var je=(t=>(t[t.HIGH=0]="HIGH",t[t.MEDIUM=1]="MEDIUM",t[t.LOW=2]="LOW",t[t.IDLE=3]="IDLE",t))(je||{});class Pt{constructor(){this.queues=new Map,this.isProcessing=!1,Object.values(je).filter(e=>typeof e=="number").forEach(e=>{this.queues.set(e,[])})}load(e,r=1){const o=this.queues.get(r);o&&o.push(e),this.process()}async process(){if(!this.isProcessing){this.isProcessing=!0;for(const[e,r]of this.queues)for(;r.length>0;){const o=r.shift();if(o)try{await o()}catch(n){console.error(`Failed to load resource with priority ${e}:`,n)}e>=2&&await new Promise(n=>setTimeout(n,50))}this.isProcessing=!1}}}const Ba=new At,Da=new Pt;class Me{constructor(e={}){this.prefix=e.prefix||"mailbox",this.defaultTTL=e.ttl,this.platformStorage=e.platformStorage||this.createFallbackStorage()}createFallbackStorage(){const e=new Map;return{getItem:r=>e.get(r)||null,setItem:(r,o)=>{e.set(r,o)},removeItem:r=>{e.delete(r)},clear:()=>{e.clear()},getAllKeys:()=>Array.from(e.keys())}}getKey(e){return`${this.prefix}-${e}`}isExpired(e){return e.ttl?Date.now()-e.timestamp>e.ttl:!1}set(e,r,o){try{const n={value:r,timestamp:Date.now(),ttl:o||this.defaultTTL};this.platformStorage.setItem(this.getKey(e),JSON.stringify(n))}catch(n){console.error(`Failed to store item ${e}:`,n)}}get(e,r){try{const o=this.platformStorage.getItem(this.getKey(e));if(!o)return r;const n=JSON.parse(o);return this.isExpired(n)?(this.remove(e),r):n.value}catch(o){return console.error(`Failed to retrieve item ${e}:`,o),r}}remove(e){try{this.platformStorage.removeItem(this.getKey(e))}catch(r){console.error(`Failed to remove item ${e}:`,r)}}clear(e){try{if(this.platformStorage.getAllKeys){const r=this.platformStorage.getAllKeys(),o=this.getKey(e||""),n=r.filter(s=>s.startsWith(o));for(const s of n)this.platformStorage.removeItem(s)}else this.platformStorage.clear?.()}catch(r){console.error("Failed to clear storage:",r)}}has(e){try{return this.platformStorage.getItem(this.getKey(e))!==null}catch(r){return console.error(`Failed to check item ${e}:`,r),!1}}getAllKeys(){try{if(this.platformStorage.getAllKeys){const e=this.platformStorage.getAllKeys(),r=`${this.prefix}-`;return e.filter(o=>o.startsWith(r)).map(o=>o.substring(r.length))}return[]}catch(e){return console.error("Failed to get all keys:",e),[]}}}const Fa=new Me,_a=new Me({prefix:"mailbox-theme"}),qa=new Me({prefix:"walletUser",ttl:10080*60*1e3}),Va=t=>{if(!t)throw new Error("PlatformStorage must be provided to createSimpleStorage");return{setItem:(e,r)=>{try{t.setItem(e,r)}catch(o){console.error(`Failed to store ${e}:`,o)}},getItem:e=>{try{return t.getItem(e)}catch(r){return console.error(`Failed to retrieve ${e}:`,r),null}},removeItem:e=>{try{t.removeItem(e)}catch(r){console.error(`Failed to remove ${e}:`,r)}}}};function Tt(){const t={isWalletBrowser:!1,walletType:"unknown",hasEthereum:!1,hasSolana:!1,provider:null};if(typeof window>"u")return t;try{const e=navigator.userAgent.toLowerCase();let r="unknown",o=!1;e.includes("metamask")?(r="metamask",o=!0):e.includes("trustwallet")?(r="trustwallet",o=!0):e.includes("coinbase")?(r="coinbase",o=!0):e.includes("rainbow")?(r="rainbow",o=!0):e.includes("phantom")?(r="phantom",o=!0):e.includes("solflare")?(r="solflare",o=!0):e.includes("exodus")&&(r="exodus",o=!0);const n=!!window.ethereum,s=!!window.solana||!!window.phantom?.solana;(n||s)&&!o&&(o=!0,window.ethereum?.isMetaMask?r="metamask":window.ethereum?.isCoinbaseWallet?r="coinbase":window.ethereum?.isRainbow?r="rainbow":window.phantom?r="phantom":window.solflare&&(r="solflare"));const d=n?window.ethereum:s?window.solana||window.phantom?.solana:null;return{isWalletBrowser:o,walletType:r,hasEthereum:n,hasSolana:s,provider:d}}catch(e){return console.warn("Error detecting wallet browser:",e),t}}async function Ua(){const t=Tt();if(!t.isWalletBrowser)return{success:!1,error:"Not running in a wallet browser"};try{if(t.hasEthereum&&t.provider)try{const e=await t.provider.request({method:"eth_requestAccounts"});if(e&&e.length>0)return{success:!0,address:e[0]}}catch(e){console.warn("Ethereum connection failed:",e)}if(t.hasSolana&&t.provider)try{const e=await t.provider.connect();if(e.publicKey)return{success:!0,address:e.publicKey.toString()}}catch(e){console.warn("Solana connection failed:",e)}return{success:!1,error:"Failed to connect to wallet provider"}}catch(e){return console.error("Auto-connect failed:",e),{success:!1,error:e instanceof Error?e.message:"Unknown connection error"}}}class Ha{constructor(e){this.metrics={timestamp:Date.now()},this.observers=[],this.performanceMarks=new Map,this.reportCallback=e,this.initializeWebVitals(),this.initializeCustomObservers(),this.collectDeviceInfo()}initializeWebVitals(){R.onCLS(e=>{this.metrics.CLS=e.value,this.reportMetric("CLS",e.value)}),R.onINP(e=>{this.metrics.INP=e.value,this.reportMetric("INP",e.value)}),R.onFCP(e=>{this.metrics.FCP=e.value,this.reportMetric("FCP",e.value)}),R.onLCP(e=>{this.metrics.LCP=e.value,this.reportMetric("LCP",e.value)}),R.onTTFB(e=>{this.metrics.TTFB=e.value,this.reportMetric("TTFB",e.value)})}initializeCustomObservers(){if("PerformanceObserver"in window){const e=new PerformanceObserver(o=>{o.getEntries().forEach(s=>{if(s.entryType==="navigation"){const d=s;this.metrics.bundleLoadTime=d.loadEventEnd-d.fetchStart}})});try{e.observe({entryTypes:["navigation"]}),this.observers.push(e)}catch{console.warn("Navigation timing observer not supported")}const r=new PerformanceObserver(o=>{o.getEntries().forEach(s=>{(s.name.includes(".js")||s.name.includes(".css"))&&this.trackResourceLoad(s.name,s.duration)})});try{r.observe({entryTypes:["resource"]}),this.observers.push(r)}catch{console.warn("Resource timing observer not supported")}}}collectDeviceInfo(){if(typeof window<"u"){const e=navigator;e.connection&&(this.metrics.connection=e.connection.effectiveType||e.connection.type),e.deviceMemory&&(this.metrics.deviceMemory=e.deviceMemory),e.hardwareConcurrency&&(this.metrics.hardwareConcurrency=e.hardwareConcurrency),this.metrics.viewport={width:window.innerWidth,height:window.innerHeight}}}reportMetric(e,r){this.reportCallback&&this.reportCallback({...this.metrics,timestamp:Date.now()}),process.env.NODE_ENV}trackResourceLoad(e,r){const o=e.includes(".js"),n=e.includes(".css");if(o||n){const s=o?"JavaScript":"CSS";this.reportMetric(`${s} Load`,r)}}measureComponentRender(e,r){this.metrics.componentRenderTime=r,this.reportMetric(`Component Render (${e})`,r)}measureAPICall(e,r){this.metrics.apiResponseTime=r,this.reportMetric(`API Call (${e})`,r)}measureRouteChange(e,r){this.metrics.routeChangeTime=r,this.reportMetric(`Route Change (${e})`,r)}markStart(e){this.performanceMarks.set(e,performance.now())}markEnd(e){const r=this.performanceMarks.get(e);if(r){const o=performance.now()-r;this.reportMetric(`Mark (${e})`,o),this.performanceMarks.delete(e)}}trackRouteChange(e,r,o){typeof r=="string"?this.measureRouteChange(r,o||performance.now()):this.measureRouteChange(e,r)}getSummary(){return{coreWebVitals:{score:this.calculateScore(),LCP:this.metrics.LCP,INP:this.metrics.INP,CLS:this.metrics.CLS},loadingPerformance:{FCP:this.metrics.FCP,TTFB:this.metrics.TTFB,bundleLoadTime:this.metrics.bundleLoadTime},runtime:{routeChangeTime:this.metrics.routeChangeTime,apiResponseTime:this.metrics.apiResponseTime,componentRenderTime:this.metrics.componentRenderTime},device:{connection:this.metrics.connection,deviceMemory:this.metrics.deviceMemory,hardwareConcurrency:this.metrics.hardwareConcurrency}}}calculateScore(){let e=100;return this.metrics.LCP&&this.metrics.LCP>2500?e-=25:this.metrics.LCP&&this.metrics.LCP>2e3&&(e-=15),this.metrics.INP&&this.metrics.INP>200?e-=20:this.metrics.INP&&this.metrics.INP>100&&(e-=10),this.metrics.CLS&&this.metrics.CLS>.1?e-=15:this.metrics.CLS&&this.metrics.CLS>.05&&(e-=8),Math.max(e,0)}getMetrics(){return{...this.metrics}}cleanup(){this.observers.forEach(e=>e.disconnect()),this.observers=[]}}let pe=null;const Ga=t=>(pe||(pe=new Ha(t)),pe),he=()=>pe,Lt=t=>{const e=b.useRef(performance.now());b.useEffect(()=>{const r=performance.now()-e.current,o=he();o&&o.measureComponentRender(t,r)},[t])},Ka=(t,e)=>b.forwardRef((r,o)=>(Lt(e),b.createElement(t,{...r,ref:o}))),Ya=async(t,e)=>{const r=performance.now();try{const o=await t(),n=performance.now()-r,s=he();return s&&s.measureAPICall(e,n),o}catch(o){const n=performance.now()-r;throw console.error(`[Performance] ${e} failed after ${n.toFixed(2)}ms`),o}},zt={LCP:2500,INP:200,CLS:.1,FCP:1800,TTFB:800,bundleSize:17e4},Qa=(t,e=zt)=>{const r=[];return e.LCP&&t.LCP&&t.LCP>e.LCP&&r.push(`LCP: ${t.LCP.toFixed(0)}ms (budget: ${e.LCP}ms)`),e.INP&&t.INP&&t.INP>e.INP&&r.push(`INP: ${t.INP.toFixed(0)}ms (budget: ${e.INP}ms)`),e.CLS&&t.CLS&&t.CLS>e.CLS&&r.push(`CLS: ${t.CLS.toFixed(3)} (budget: ${e.CLS})`),e.FCP&&t.FCP&&t.FCP>e.FCP&&r.push(`FCP: ${t.FCP.toFixed(0)}ms (budget: ${e.FCP}ms)`),e.TTFB&&t.TTFB&&t.TTFB>e.TTFB&&r.push(`TTFB: ${t.TTFB.toFixed(0)}ms (budget: ${e.TTFB}ms)`),{passed:r.length===0,violations:r}},Za=t=>{const e=t||he()?.getMetrics()||{timestamp:Date.now()},r={timestamp:new Date().toISOString(),metrics:e,environment:{userAgent:typeof window<"u"?window.navigator.userAgent:"unknown",url:typeof window<"u"?window.location.href:"unknown",referrer:typeof document<"u"?document.referrer:"unknown",viewport:e.viewport,connection:e.connection,deviceMemory:e.deviceMemory,hardwareConcurrency:e.hardwareConcurrency}};return JSON.stringify(r,null,2)},Ja=t=>{if(t===0)return"0 Bytes";const e=1024,r=["Bytes","KB","MB","GB","TB"],o=Math.floor(Math.log(t)/Math.log(e)),n=Math.min(o,r.length-1);return parseFloat((t/Math.pow(e,n)).toFixed(2))+" "+r[n]},Xa=(t,e,r)=>{const o={bytes:0,kb:1,mb:2,gb:3,tb:4},n=1024,d=t*Math.pow(n,o[e])/Math.pow(n,o[r]);return Math.round(d*100)/100},Ra=t=>{const e=t.match(/^(\d+(?:\.\d+)?)\s*(bytes?|kb|mb|gb|tb)$/i);if(!e)return null;const r=parseFloat(e[1]),o=e[2].toLowerCase(),s={bytes:1,byte:1,kb:1024,mb:1024*1024,gb:1024*1024*1024,tb:1024*1024*1024*1024}[o];return s?Math.round(r*s):null};function jt(t,e){b.useEffect(()=>{const r=o=>{const n=t?.current;!n||n.contains(o?.target||null)||e(o)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[t,e])}const Mt=t=>{const[e,r]=b.useState(""),[o,n]=b.useState(!0),[s,d]=b.useState(null);return b.useEffect(()=>{t&&(async()=>{try{n(!0),d(null);const c=await fetch(`/code/${t}`);if(!c.ok)throw new Error(`Failed to load code file: ${t}`);const u=await c.text();r(u)}catch(c){console.error("Error loading code:",c),d(c instanceof Error?c.message:"Unknown error"),r("// Error loading code file")}finally{n(!1)}})()},[t]),{code:e,loading:o,error:s}},eo=(t={})=>{const{successDuration:e=2e3,onSuccess:r,onError:o}=t,[n,s]=b.useState(null),d=b.useCallback(async u=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(u);else{const m=document.createElement("textarea");m.value=u,m.style.position="fixed",m.style.left="-999999px",m.style.top="-999999px",document.body.appendChild(m),m.focus(),m.select();const p=document.execCommand("copy");if(document.body.removeChild(m),!p)throw new Error("Copy command was unsuccessful")}return s(u),r?.(u),setTimeout(()=>{s(null)},e),!0}catch(m){const p=m instanceof Error?m:new Error("Copy failed");return o?.(p),!1}},[e,r,o]),l=b.useCallback(u=>n===u,[n]),c=b.useCallback(()=>{s(null)},[]);return{copiedValue:n,copyToClipboard:d,isCopied:l,resetCopiedState:c}},to=(t={})=>{const{successDuration:e=2e3,onSuccess:r,onError:o}=t,[n,s]=b.useState({}),d=b.useCallback(async(u,m)=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(u);else{const p=document.createElement("textarea");p.value=u,p.style.position="fixed",p.style.left="-999999px",p.style.top="-999999px",document.body.appendChild(p),p.focus(),p.select();const f=document.execCommand("copy");if(document.body.removeChild(p),!f)throw new Error("Copy command was unsuccessful")}return s(p=>({...p,[m]:!0})),r?.(u),setTimeout(()=>{s(p=>({...p,[m]:!1}))},e),!0}catch(p){const f=p instanceof Error?p:new Error("Copy failed");return o?.(f),!1}},[e,r,o]),l=b.useCallback(u=>n[u]||!1,[n]),c=b.useCallback(u=>{s(u?m=>({...m,[u]:!1}):{})},[]);return{copiedStates:n,copyToClipboard:d,isCopied:l,resetCopiedState:c}},ro={pending:{label:"Pending",color:"bg-gray-500",textColor:"text-white"},in_progress:{label:"In Progress",color:"bg-blue-500",textColor:"text-white"},verified:{label:"Verified",color:"bg-green-500",textColor:"text-white"},rejected:{label:"Rejected",color:"bg-red-500",textColor:"text-white"}},ao={basic:"Basic KYC",enhanced:"Enhanced KYC",accredited:"Accredited Investor"},oo=({status:t,level:e,className:r=""})=>{const o=ro[t],n=ao[e];return a.jsx("div",{className:`inline-flex items-center gap-2 ${r}`,children:a.jsxs("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${o.color} ${o.textColor}`,children:[n,": ",o.label]})})},no=({accessToken:t,onComplete:e,onError:r,className:o=""})=>{const n=b.useRef(null),s=b.useRef(null);return b.useEffect(()=>{if(!t){console.warn("No access token provided to SumsubWebSDK");return}const d=document.createElement("script");return d.src="https://static.sumsub.com/idensic/static/sns-websdk-builder.js",d.async=!0,d.onload=()=>{if(n.current&&window.snsWebSdk)try{const l=window.snsWebSdk.init(t,()=>t).withConf({lang:"en"}).withOptions({addViewportTag:!1,adaptIframeHeight:!0}).on("idCheck.onStepCompleted",c=>{}).on("idCheck.onApplicantSubmitted",c=>{e?.()}).on("idCheck.onError",c=>{console.error("SumsubWebSDK: Error",c),r?.(c)}).build();s.current=l,l.launch("#sumsub-websdk-container")}catch(l){console.error("Failed to initialize Sumsub SDK:",l),r?.(l)}else console.error("SumsubWebSDK: Missing requirements - containerRef:",!!n.current,"snsWebSdk:",!!window.snsWebSdk)},d.onerror=()=>{const l=new Error("Failed to load Sumsub Web SDK script");console.error(l),r?.(l)},document.body.appendChild(d),()=>{document.body.contains(d)&&document.body.removeChild(d),s.current&&typeof s.current.destroy=="function"&&s.current.destroy()}},[t,e,r]),a.jsx("div",{className:`sumsub-sdk-container ${o}`,children:a.jsx("div",{ref:n,id:"sumsub-websdk-container"})})},io={basic:{title:"Basic KYC",description:"Age & Identity Verification",color:"border-blue-200",activeColor:"border-blue-500 bg-blue-50"},enhanced:{title:"Enhanced KYC",description:"Basic + Country & Compliance",color:"border-purple-200",activeColor:"border-purple-500 bg-purple-50"},accredited:{title:"Accredited Investor",description:"Enhanced + Financial Verification",color:"border-gold-200",activeColor:"border-gold-500 bg-gold-50"}},so=({level:t,price:e,features:r,isActive:o=!1,isVerified:n=!1,onSelect:s,className:d=""})=>{const l=io[t];return a.jsxs("div",{className:`
|
|
10
|
+
`;return`data:image/svg+xml;base64,${btoa(n)}`},$r=(t,e)=>{const r=1/e*100;t.style.position="relative",t.style.paddingTop=`${r}%`;const n=t.querySelector("img");n&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",n.style.height="100%",n.style.objectFit="cover")},H={createPureFunction:t=>t,isDevelopment:process.env.NODE_ENV==="development",isProduction:process.env.NODE_ENV==="production",isTest:process.env.NODE_ENV==="test",createFeatureFlags:(t={})=>({enableAnalytics:process.env.VITE_ENABLE_ANALYTICS==="true",enableDebugTools:process.env.NODE_ENV==="development",enablePerformanceMonitoring:process.env.VITE_ENABLE_PERF_MONITORING!=="false",...t})},Tr=t=>{const e={};return Object.entries(t).forEach(([r,n])=>{e[r]=()=>{try{return n()}catch(o){return console.warn(`Failed to load ${r}:`,o),Promise.resolve({default:null})}}}),e},et={createDebounce:t=>e=>{let r;return((...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)})},memoize:t=>{const e=new Map;return((...r)=>{const n=JSON.stringify(r);if(e.has(n))return e.get(n);const o=t(...r);return e.set(n,o),o})},isDeepEqual:(t,e)=>{if(t===e)return!0;if(t==null||e==null||typeof t!="object"||typeof e!="object")return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(const o of r)if(!n.includes(o)||!et.isDeepEqual(t[o],e[o]))return!1;return!0},createThrottle:t=>e=>{let r=0;return((...n)=>{const o=Date.now();if(o-r>=t)return r=o,e(...n)})}},Lr=t=>{const e={};return Object.entries(t).forEach(([r,n])=>{e[r]={},Object.entries(n).forEach(([o,s])=>{e[r][o]=()=>import(s).then(c=>({[o]:c[o]}))})}),e},V={getModuleSize:t=>new Promise(e=>{if(typeof window<"u"&&"performance"in window){const n=performance.getEntriesByType("resource").find(o=>o.name.includes(t));e(n?.transferSize||0)}else e(0)}),usageTracker:new Set,trackUsage:t=>{H.isDevelopment&&V.usageTracker.add(t)},getUsageReport:()=>H.isDevelopment?Array.from(V.usageTracker).sort():[],estimateImpact:t=>{const e=t.map(r=>V.getModuleSize(r).then(n=>[r,n]));return Promise.all(e).then(r=>{const n={};let o=0;return r.forEach(([s,c])=>{n[s]=c,o+=c}),{total:o,modules:n}})}},tt={inlineCriticalCSS:t=>{if(typeof document<"u"){const e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}},loadAsyncCSS:t=>{if(typeof document<"u"){const e=document.createElement("link");e.rel="stylesheet",e.href=t,e.media="print",e.onload=()=>{e.media="all"},document.head.appendChild(e)}},removeUnusedCSS:t=>{if(typeof document>"u")return;const e=new Set;return t.forEach(r=>{try{document.querySelector(r)&&e.add(r)}catch{}}),{used:Array.from(e),unused:t.filter(r=>!e.has(r))}}},Mr=(t={})=>{const{features:e={},criticalCSS:r="",enableUsageTracking:n=H.isDevelopment}=t;return{features:H.createFeatureFlags(e),initialize:()=>{r&&typeof document<"u"&&tt.inlineCriticalCSS(r)},cleanup:()=>{V.usageTracker.clear()},getReport:()=>({usage:V.getUsageReport(),features:H.createFeatureFlags(e)})}};let ke;function zr(t){throw typeof window<"u"?new Error("Web navigation service not implemented in shared library"):new Error("React Native navigation service not implemented in shared library")}function z(t){return ke||(ke=zr()),ke}function Or(){const t=z(),e=t.getCurrentState();return{navigate:(r,n)=>{t.navigate(r,n)},goBack:r=>{t.goBack(r)},replace:(r,n)=>{t.replace(r,n)},currentPath:e.currentPath,searchParams:e.searchParams,params:e.params,canGoBack:t.canGoBack(),isSupported:t.isSupported()}}function Wr(){const e=z().getCurrentState(),r=Object.keys(e.searchParams).length>0?"?"+new URLSearchParams(e.searchParams).toString():"";return{pathname:e.currentPath,search:r,searchParams:e.searchParams,hash:"",state:{},key:e.currentPath}}function jr(){const t=z(),e=t.getCurrentState();return[new URLSearchParams(e.searchParams),o=>{const s=o instanceof URLSearchParams?Object.fromEntries(o.entries()):o,c=new URLSearchParams(s).toString(),l=e.currentPath+(c?`?${c}`:"");t.replace(l)}]}const F={navigate:(t,e)=>{z().navigate(t,e)},goBack:t=>{z().goBack(t)},replace:(t,e)=>{z().replace(t,e)},getCurrentPath:()=>z().getCurrentPath(),getSearchParams:()=>z().getSearchParams(),goToMail:()=>{F.navigate("/mail")},goToPreferences:()=>{F.navigate("/preferences")},goToCompose:(t,e)=>{const r=new URLSearchParams;t&&r.set("type",t),e&&Object.entries(e).forEach(([o,s])=>{r.set(o,s)});const n=r.toString();F.navigate(`/mail/compose${n?`?${n}`:""}`)},goToConnect:()=>{F.navigate("/connect")},goToDelegate:()=>{F.navigate("/admin/delegate")},goToHome:()=>{F.navigate("/")},canGoBack:()=>z().canGoBack()},Br=(t,e)=>e.find(r=>r.href===t)||null,Dr=(t,e,r)=>{const n=t.split("/").filter(Boolean);if(n.length===0)return[{label:"Home",current:!0}];const o=[{label:"Home",href:"/"}],c={...{docs:"Documentation",about:"About",connect:"Connect",settings:"Settings",preferences:"Preferences",profile:"Profile",help:"Help",support:"Support",contact:"Contact",terms:"Terms of Service",privacy:"Privacy Policy"},...r||{}};return n.forEach((l,d)=>{const g=d===n.length-1,m="/"+n.slice(0,d+1).join("/"),p=e&&g?e:c[l]||l;o.push({label:p,href:g?void 0:m,current:g})}),o},Fr={isActivePath:(t,e,r=!0)=>r?t===e:t.startsWith(e),getParentPath:t=>{const e=t.split("/").filter(Boolean);return e.length<=1?"/":"/"+e.slice(0,-1).join("/")},extractParams:(t,e)=>{const r=t.split("/").filter(Boolean),n=e.split("/").filter(Boolean),o={};return r.forEach((s,c)=>{if(s.startsWith(":")&&n[c]){const l=s.substring(1);o[l]=n[c]}}),o},buildUrlWithParams:(t,e)=>{const r=new URL(t,"http://localhost");return Object.entries(e).forEach(([n,o])=>{r.searchParams.set(n,String(o))}),r.pathname+r.search},parseQueryParams:t=>{const e=new URLSearchParams(t.startsWith("?")?t:`?${t}`),r={};return e.forEach((n,o)=>{r[o]=n}),r},normalizePath:t=>{if(!t||t==="/")return"/";let e=t.startsWith("/")?t:`/${t}`;return e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1)),e},isExternalUrl:t=>{try{return new URL(t,window?.location?.origin||"http://localhost").origin!==(window?.location?.origin||"http://localhost")}catch{return!1}}};function _r(t,e=3,r=1e3){return h.lazy(()=>new Promise((n,o)=>{const s=c=>{t().then(n).catch(l=>{c>0?setTimeout(()=>{s(c-1)},r):o(l)})};s(e)}))}function qr(t){let e=null;const r=()=>(e||(e=t()),e.then(()=>{}));return{Component:h.lazy(()=>e||t()),preload:r}}function Hr(t,e={}){const{fallback:r=a.jsx("div",{children:"Loading..."}),errorFallback:n=a.jsx("div",{children:"Failed to load component"}),loadingDelay:o=200,minimumLoadingTime:s=500}=e,c=h.lazy(async()=>{const d=Date.now();try{const g=await t(),m=Date.now()-d;return m<s&&await new Promise(p=>setTimeout(p,s-m)),g}catch(g){return console.error("Failed to load component:",g),{default:(()=>n)}}}),l=()=>{const[d,g]=h.useState(!1);return h.useEffect(()=>{const m=setTimeout(()=>{g(!0)},o);return()=>clearTimeout(m)},[]),d?a.jsx(a.Fragment,{children:r}):null};return h.forwardRef((d,g)=>a.jsx(h.Suspense,{fallback:a.jsx(l,{}),children:a.jsx(c,{...d,ref:g})}))}function rt(t,e={}){const[r,n]=h.useState(!1),[o,s]=h.useState(!1);return h.useEffect(()=>{const c=t.current;if(!c||o)return;const l=new IntersectionObserver(([d])=>{d.isIntersecting&&(n(!0),s(!0),l.disconnect())},{rootMargin:"50px",threshold:.01,...e});return l.observe(c),()=>{l.disconnect()}},[t,e,o]),r}const Vr=({children:t,fallback:e=a.jsx("div",{children:"Loading..."}),threshold:r=.01,rootMargin:n="50px",placeholder:o})=>{const s=h.useRef(null),c=rt(s,{threshold:r,rootMargin:n});return a.jsx("div",{ref:s,children:c?t:o||e})};function Ur(t){const{importFn:e,preloadOnHover:r=!0,preloadOnFocus:n=!0,prefetchDelay:o=50}=t;let s=null,c=null;const l=()=>(c||(c=e()),c),d=()=>{s&&clearTimeout(s),s=setTimeout(()=>{l()},o)};return{Component:h.lazy(()=>c||e()),preload:l,linkProps:{...r&&{onMouseEnter:d,onMouseLeave:()=>{s&&clearTimeout(s)}},...n&&{onFocus:d}}}}function Gr(t,e=[]){const[r,n]=h.useState(null),[o,s]=h.useState(!0),[c,l]=h.useState(null);return h.useEffect(()=>{let d=!0;return s(!0),l(null),t().then(g=>{d&&(n(g),s(!1))}).catch(g=>{d&&(l(g),s(!1))}),()=>{d=!1}},[t,...e]),{module:r,loading:o,error:c}}class at{constructor(e=3,r=100){this.queue=new Set,this.isProcessing=!1,this.batchSize=e,this.delay=r}add(e){this.queue.add(e),this.process()}async process(){if(this.isProcessing||this.queue.size===0)return;this.isProcessing=!0;const e=Array.from(this.queue).slice(0,this.batchSize);e.forEach(r=>this.queue.delete(r)),await Promise.all(e.map(r=>r().catch(console.error))),this.queue.size>0&&await new Promise(r=>setTimeout(r,this.delay)),this.isProcessing=!1,this.queue.size>0&&this.process()}}function Kr(t,e,r){if(typeof document>"u")return;const n=document.createElement("link");n.rel=e,n.href=t,r&&(e==="preload"||e==="prefetch")&&(n.as=r),document.head.appendChild(n)}var Ce=(t=>(t[t.HIGH=0]="HIGH",t[t.MEDIUM=1]="MEDIUM",t[t.LOW=2]="LOW",t[t.IDLE=3]="IDLE",t))(Ce||{});class nt{constructor(){this.queues=new Map,this.isProcessing=!1,Object.values(Ce).filter(e=>typeof e=="number").forEach(e=>{this.queues.set(e,[])})}load(e,r=1){const n=this.queues.get(r);n&&n.push(e),this.process()}async process(){if(!this.isProcessing){this.isProcessing=!0;for(const[e,r]of this.queues)for(;r.length>0;){const n=r.shift();if(n)try{await n()}catch(o){console.error(`Failed to load resource with priority ${e}:`,o)}e>=2&&await new Promise(o=>setTimeout(o,50))}this.isProcessing=!1}}}const Qr=new at,Yr=new nt;class Se{constructor(e={}){this.prefix=e.prefix||"mailbox",this.defaultTTL=e.ttl,this.platformStorage=e.platformStorage||this.createFallbackStorage()}createFallbackStorage(){const e=new Map;return{getItem:r=>e.get(r)||null,setItem:(r,n)=>{e.set(r,n)},removeItem:r=>{e.delete(r)},clear:()=>{e.clear()},getAllKeys:()=>Array.from(e.keys())}}getKey(e){return`${this.prefix}-${e}`}isExpired(e){return e.ttl?Date.now()-e.timestamp>e.ttl:!1}set(e,r,n){try{const o={value:r,timestamp:Date.now(),ttl:n||this.defaultTTL};this.platformStorage.setItem(this.getKey(e),JSON.stringify(o))}catch(o){console.error(`Failed to store item ${e}:`,o)}}get(e,r){try{const n=this.platformStorage.getItem(this.getKey(e));if(!n)return r;const o=JSON.parse(n);return this.isExpired(o)?(this.remove(e),r):o.value}catch(n){return console.error(`Failed to retrieve item ${e}:`,n),r}}remove(e){try{this.platformStorage.removeItem(this.getKey(e))}catch(r){console.error(`Failed to remove item ${e}:`,r)}}clear(e){try{if(this.platformStorage.getAllKeys){const r=this.platformStorage.getAllKeys(),n=this.getKey(e||""),o=r.filter(s=>s.startsWith(n));for(const s of o)this.platformStorage.removeItem(s)}else this.platformStorage.clear?.()}catch(r){console.error("Failed to clear storage:",r)}}has(e){try{return this.platformStorage.getItem(this.getKey(e))!==null}catch(r){return console.error(`Failed to check item ${e}:`,r),!1}}getAllKeys(){try{if(this.platformStorage.getAllKeys){const e=this.platformStorage.getAllKeys(),r=`${this.prefix}-`;return e.filter(n=>n.startsWith(r)).map(n=>n.substring(r.length))}return[]}catch(e){return console.error("Failed to get all keys:",e),[]}}}const Zr=new Se,Jr=new Se({prefix:"mailbox-theme"}),Xr=new Se({prefix:"walletUser",ttl:10080*60*1e3}),Rr=t=>{if(!t)throw new Error("PlatformStorage must be provided to createSimpleStorage");return{setItem:(e,r)=>{try{t.setItem(e,r)}catch(n){console.error(`Failed to store ${e}:`,n)}},getItem:e=>{try{return t.getItem(e)}catch(r){return console.error(`Failed to retrieve ${e}:`,r),null}},removeItem:e=>{try{t.removeItem(e)}catch(r){console.error(`Failed to remove ${e}:`,r)}}}};function ot(){const t={isWalletBrowser:!1,walletType:"unknown",hasEthereum:!1,hasSolana:!1,provider:null};if(typeof window>"u")return t;try{const e=navigator.userAgent.toLowerCase();let r="unknown",n=!1;e.includes("metamask")?(r="metamask",n=!0):e.includes("trustwallet")?(r="trustwallet",n=!0):e.includes("coinbase")?(r="coinbase",n=!0):e.includes("rainbow")?(r="rainbow",n=!0):e.includes("phantom")?(r="phantom",n=!0):e.includes("solflare")?(r="solflare",n=!0):e.includes("exodus")&&(r="exodus",n=!0);const o=!!window.ethereum,s=!!window.solana||!!window.phantom?.solana;(o||s)&&!n&&(n=!0,window.ethereum?.isMetaMask?r="metamask":window.ethereum?.isCoinbaseWallet?r="coinbase":window.ethereum?.isRainbow?r="rainbow":window.phantom?r="phantom":window.solflare&&(r="solflare"));const c=o?window.ethereum:s?window.solana||window.phantom?.solana:null;return{isWalletBrowser:n,walletType:r,hasEthereum:o,hasSolana:s,provider:c}}catch(e){return console.warn("Error detecting wallet browser:",e),t}}async function ea(){const t=ot();if(!t.isWalletBrowser)return{success:!1,error:"Not running in a wallet browser"};try{if(t.hasEthereum&&t.provider)try{const e=await t.provider.request({method:"eth_requestAccounts"});if(e&&e.length>0)return{success:!0,address:e[0]}}catch(e){console.warn("Ethereum connection failed:",e)}if(t.hasSolana&&t.provider)try{const e=await t.provider.connect();if(e.publicKey)return{success:!0,address:e.publicKey.toString()}}catch(e){console.warn("Solana connection failed:",e)}return{success:!1,error:"Failed to connect to wallet provider"}}catch(e){return console.error("Auto-connect failed:",e),{success:!1,error:e instanceof Error?e.message:"Unknown connection error"}}}class ta{constructor(e){this.metrics={timestamp:Date.now()},this.observers=[],this.performanceMarks=new Map,this.reportCallback=e,this.initializeWebVitals(),this.initializeCustomObservers(),this.collectDeviceInfo()}initializeWebVitals(){Y.onCLS(e=>{this.metrics.CLS=e.value,this.reportMetric("CLS",e.value)}),Y.onINP(e=>{this.metrics.INP=e.value,this.reportMetric("INP",e.value)}),Y.onFCP(e=>{this.metrics.FCP=e.value,this.reportMetric("FCP",e.value)}),Y.onLCP(e=>{this.metrics.LCP=e.value,this.reportMetric("LCP",e.value)}),Y.onTTFB(e=>{this.metrics.TTFB=e.value,this.reportMetric("TTFB",e.value)})}initializeCustomObservers(){if("PerformanceObserver"in window){const e=new PerformanceObserver(n=>{n.getEntries().forEach(s=>{if(s.entryType==="navigation"){const c=s;this.metrics.bundleLoadTime=c.loadEventEnd-c.fetchStart}})});try{e.observe({entryTypes:["navigation"]}),this.observers.push(e)}catch{console.warn("Navigation timing observer not supported")}const r=new PerformanceObserver(n=>{n.getEntries().forEach(s=>{(s.name.includes(".js")||s.name.includes(".css"))&&this.trackResourceLoad(s.name,s.duration)})});try{r.observe({entryTypes:["resource"]}),this.observers.push(r)}catch{console.warn("Resource timing observer not supported")}}}collectDeviceInfo(){if(typeof window<"u"){const e=navigator;e.connection&&(this.metrics.connection=e.connection.effectiveType||e.connection.type),e.deviceMemory&&(this.metrics.deviceMemory=e.deviceMemory),e.hardwareConcurrency&&(this.metrics.hardwareConcurrency=e.hardwareConcurrency),this.metrics.viewport={width:window.innerWidth,height:window.innerHeight}}}reportMetric(e,r){this.reportCallback&&this.reportCallback({...this.metrics,timestamp:Date.now()}),process.env.NODE_ENV}trackResourceLoad(e,r){const n=e.includes(".js"),o=e.includes(".css");if(n||o){const s=n?"JavaScript":"CSS";this.reportMetric(`${s} Load`,r)}}measureComponentRender(e,r){this.metrics.componentRenderTime=r,this.reportMetric(`Component Render (${e})`,r)}measureAPICall(e,r){this.metrics.apiResponseTime=r,this.reportMetric(`API Call (${e})`,r)}measureRouteChange(e,r){this.metrics.routeChangeTime=r,this.reportMetric(`Route Change (${e})`,r)}markStart(e){this.performanceMarks.set(e,performance.now())}markEnd(e){const r=this.performanceMarks.get(e);if(r){const n=performance.now()-r;this.reportMetric(`Mark (${e})`,n),this.performanceMarks.delete(e)}}trackRouteChange(e,r,n){typeof r=="string"?this.measureRouteChange(r,n||performance.now()):this.measureRouteChange(e,r)}getSummary(){return{coreWebVitals:{score:this.calculateScore(),LCP:this.metrics.LCP,INP:this.metrics.INP,CLS:this.metrics.CLS},loadingPerformance:{FCP:this.metrics.FCP,TTFB:this.metrics.TTFB,bundleLoadTime:this.metrics.bundleLoadTime},runtime:{routeChangeTime:this.metrics.routeChangeTime,apiResponseTime:this.metrics.apiResponseTime,componentRenderTime:this.metrics.componentRenderTime},device:{connection:this.metrics.connection,deviceMemory:this.metrics.deviceMemory,hardwareConcurrency:this.metrics.hardwareConcurrency}}}calculateScore(){let e=100;return this.metrics.LCP&&this.metrics.LCP>2500?e-=25:this.metrics.LCP&&this.metrics.LCP>2e3&&(e-=15),this.metrics.INP&&this.metrics.INP>200?e-=20:this.metrics.INP&&this.metrics.INP>100&&(e-=10),this.metrics.CLS&&this.metrics.CLS>.1?e-=15:this.metrics.CLS&&this.metrics.CLS>.05&&(e-=8),Math.max(e,0)}getMetrics(){return{...this.metrics}}cleanup(){this.observers.forEach(e=>e.disconnect()),this.observers=[]}}let de=null;const ra=t=>(de||(de=new ta(t)),de),ge=()=>de,st=t=>{const e=h.useRef(performance.now());h.useEffect(()=>{const r=performance.now()-e.current,n=ge();n&&n.measureComponentRender(t,r)},[t])},aa=(t,e)=>h.forwardRef((r,n)=>(st(e),h.createElement(t,{...r,ref:n}))),na=async(t,e)=>{const r=performance.now();try{const n=await t(),o=performance.now()-r,s=ge();return s&&s.measureAPICall(e,o),n}catch(n){const o=performance.now()-r;throw console.error(`[Performance] ${e} failed after ${o.toFixed(2)}ms`),n}},it={LCP:2500,INP:200,CLS:.1,FCP:1800,TTFB:800,bundleSize:17e4},oa=(t,e=it)=>{const r=[];return e.LCP&&t.LCP&&t.LCP>e.LCP&&r.push(`LCP: ${t.LCP.toFixed(0)}ms (budget: ${e.LCP}ms)`),e.INP&&t.INP&&t.INP>e.INP&&r.push(`INP: ${t.INP.toFixed(0)}ms (budget: ${e.INP}ms)`),e.CLS&&t.CLS&&t.CLS>e.CLS&&r.push(`CLS: ${t.CLS.toFixed(3)} (budget: ${e.CLS})`),e.FCP&&t.FCP&&t.FCP>e.FCP&&r.push(`FCP: ${t.FCP.toFixed(0)}ms (budget: ${e.FCP}ms)`),e.TTFB&&t.TTFB&&t.TTFB>e.TTFB&&r.push(`TTFB: ${t.TTFB.toFixed(0)}ms (budget: ${e.TTFB}ms)`),{passed:r.length===0,violations:r}},sa=t=>{const e=t||ge()?.getMetrics()||{timestamp:Date.now()},r={timestamp:new Date().toISOString(),metrics:e,environment:{userAgent:typeof window<"u"?window.navigator.userAgent:"unknown",url:typeof window<"u"?window.location.href:"unknown",referrer:typeof document<"u"?document.referrer:"unknown",viewport:e.viewport,connection:e.connection,deviceMemory:e.deviceMemory,hardwareConcurrency:e.hardwareConcurrency}};return JSON.stringify(r,null,2)},ia=t=>{if(t===0)return"0 Bytes";const e=1024,r=["Bytes","KB","MB","GB","TB"],n=Math.floor(Math.log(t)/Math.log(e)),o=Math.min(n,r.length-1);return parseFloat((t/Math.pow(e,o)).toFixed(2))+" "+r[o]},la=(t,e,r)=>{const n={bytes:0,kb:1,mb:2,gb:3,tb:4},o=1024,c=t*Math.pow(o,n[e])/Math.pow(o,n[r]);return Math.round(c*100)/100},ca=t=>{const e=t.match(/^(\d+(?:\.\d+)?)\s*(bytes?|kb|mb|gb|tb)$/i);if(!e)return null;const r=parseFloat(e[1]),n=e[2].toLowerCase(),s={bytes:1,byte:1,kb:1024,mb:1024*1024,gb:1024*1024*1024,tb:1024*1024*1024*1024}[n];return s?Math.round(r*s):null};function lt(t,e){h.useEffect(()=>{const r=n=>{const o=t?.current;!o||o.contains(n?.target||null)||e(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[t,e])}const ct=t=>{const[e,r]=h.useState(""),[n,o]=h.useState(!0),[s,c]=h.useState(null);return h.useEffect(()=>{t&&(async()=>{try{o(!0),c(null);const d=await fetch(`/code/${t}`);if(!d.ok)throw new Error(`Failed to load code file: ${t}`);const g=await d.text();r(g)}catch(d){console.error("Error loading code:",d),c(d instanceof Error?d.message:"Unknown error"),r("// Error loading code file")}finally{o(!1)}})()},[t]),{code:e,loading:n,error:s}},da=(t={})=>{const{successDuration:e=2e3,onSuccess:r,onError:n}=t,[o,s]=h.useState(null),c=h.useCallback(async g=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(g);else{const m=document.createElement("textarea");m.value=g,m.style.position="fixed",m.style.left="-999999px",m.style.top="-999999px",document.body.appendChild(m),m.focus(),m.select();const p=document.execCommand("copy");if(document.body.removeChild(m),!p)throw new Error("Copy command was unsuccessful")}return s(g),r?.(g),setTimeout(()=>{s(null)},e),!0}catch(m){const p=m instanceof Error?m:new Error("Copy failed");return n?.(p),!1}},[e,r,n]),l=h.useCallback(g=>o===g,[o]),d=h.useCallback(()=>{s(null)},[]);return{copiedValue:o,copyToClipboard:c,isCopied:l,resetCopiedState:d}},ga=(t={})=>{const{successDuration:e=2e3,onSuccess:r,onError:n}=t,[o,s]=h.useState({}),c=h.useCallback(async(g,m)=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(g);else{const p=document.createElement("textarea");p.value=g,p.style.position="fixed",p.style.left="-999999px",p.style.top="-999999px",document.body.appendChild(p),p.focus(),p.select();const b=document.execCommand("copy");if(document.body.removeChild(p),!b)throw new Error("Copy command was unsuccessful")}return s(p=>({...p,[m]:!0})),r?.(g),setTimeout(()=>{s(p=>({...p,[m]:!1}))},e),!0}catch(p){const b=p instanceof Error?p:new Error("Copy failed");return n?.(b),!1}},[e,r,n]),l=h.useCallback(g=>o[g]||!1,[o]),d=h.useCallback(g=>{s(g?m=>({...m,[g]:!1}):{})},[]);return{copiedStates:o,copyToClipboard:c,isCopied:l,resetCopiedState:d}},ua={pending:{label:"Pending",color:"bg-gray-500",textColor:"text-white"},in_progress:{label:"In Progress",color:"bg-blue-500",textColor:"text-white"},verified:{label:"Verified",color:"bg-green-500",textColor:"text-white"},rejected:{label:"Rejected",color:"bg-red-500",textColor:"text-white"}},ma={basic:"Basic KYC",enhanced:"Enhanced KYC",accredited:"Accredited Investor"},ha=({status:t,level:e,className:r=""})=>{const n=ua[t],o=ma[e];return a.jsx("div",{className:`inline-flex items-center gap-2 ${r}`,children:a.jsxs("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${n.color} ${n.textColor}`,children:[o,": ",n.label]})})},pa=({accessToken:t,onComplete:e,onError:r,className:n=""})=>{const o=h.useRef(null),s=h.useRef(null);return h.useEffect(()=>{if(!t){console.warn("No access token provided to SumsubWebSDK");return}const c=document.createElement("script");return c.src="https://static.sumsub.com/idensic/static/sns-websdk-builder.js",c.async=!0,c.onload=()=>{if(o.current&&window.snsWebSdk)try{const l=window.snsWebSdk.init(t,()=>t).withConf({lang:"en"}).withOptions({addViewportTag:!1,adaptIframeHeight:!0}).on("idCheck.onStepCompleted",d=>{}).on("idCheck.onApplicantSubmitted",d=>{e?.()}).on("idCheck.onError",d=>{console.error("SumsubWebSDK: Error",d),r?.(d)}).build();s.current=l,l.launch("#sumsub-websdk-container")}catch(l){console.error("Failed to initialize Sumsub SDK:",l),r?.(l)}else console.error("SumsubWebSDK: Missing requirements - containerRef:",!!o.current,"snsWebSdk:",!!window.snsWebSdk)},c.onerror=()=>{const l=new Error("Failed to load Sumsub Web SDK script");console.error(l),r?.(l)},document.body.appendChild(c),()=>{document.body.contains(c)&&document.body.removeChild(c),s.current&&typeof s.current.destroy=="function"&&s.current.destroy()}},[t,e,r]),a.jsx("div",{className:`sumsub-sdk-container ${n}`,children:a.jsx("div",{ref:o,id:"sumsub-websdk-container"})})},fa={basic:{title:"Basic KYC",description:"Age & Identity Verification",color:"border-blue-200",activeColor:"border-blue-500 bg-blue-50"},enhanced:{title:"Enhanced KYC",description:"Basic + Country & Compliance",color:"border-purple-200",activeColor:"border-purple-500 bg-purple-50"},accredited:{title:"Accredited Investor",description:"Enhanced + Financial Verification",color:"border-gold-200",activeColor:"border-gold-500 bg-gold-50"}},ba=({level:t,price:e,features:r,isActive:n=!1,isVerified:o=!1,onSelect:s,className:c=""})=>{const l=fa[t];return a.jsxs("div",{className:`
|
|
11
11
|
relative border-2 rounded-lg p-6 transition-all
|
|
12
|
-
${
|
|
13
|
-
${
|
|
14
|
-
`,children:[
|
|
12
|
+
${n?l.activeColor:`${l.color} hover:border-gray-400`}
|
|
13
|
+
${c}
|
|
14
|
+
`,children:[o&&a.jsx("div",{className:"absolute top-4 right-4",children:a.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"})}),a.jsx("h3",{className:"text-xl font-bold mb-2",children:l.title}),a.jsx("p",{className:"text-gray-600 mb-4",children:l.description}),a.jsxs("p",{className:"text-3xl font-bold mb-4",children:[e,a.jsx("span",{className:"text-sm font-normal text-gray-600",children:"/year"})]}),a.jsx("ul",{className:"space-y-2 mb-6",children:r.map((d,g)=>a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx("span",{className:"text-green-500 mt-0.5",children:"✓"}),a.jsx("span",{className:"text-sm",children:d})]},g))}),s&&a.jsx("button",{onClick:s,disabled:o,className:`
|
|
15
15
|
w-full py-2 px-4 rounded font-medium transition-colors
|
|
16
|
-
${
|
|
17
|
-
`,children:n?"Verified":o?"Current Plan":"Select Plan"})]})},lo={info:v.InformationCircleIcon,success:v.CheckCircleIcon,warning:v.ExclamationTriangleIcon,error:v.XCircleIcon},co=({children:t,className:e})=>a.jsx("div",{className:h("font-medium mb-1",e),children:t}),go=({children:t,className:e})=>a.jsx("div",{className:h("text-sm",e),children:t}),uo=({variant:t="info",title:e,description:r,icon:o,children:n,className:s})=>{const d=lo[t],l=o||a.jsx(d,{className:"h-5 w-5"}),c=typeof C.alert[t]=="function"?C.alert[t]():"";return a.jsxs("div",{role:"alert",className:h(c,s),children:[l&&a.jsx("div",{className:"flex-shrink-0",children:l}),a.jsxs("div",{className:"flex-1",children:[e&&a.jsx("div",{className:"font-medium mb-1",children:e}),r&&a.jsx("div",{className:"text-sm",children:r}),n]})]})},Ot=()=>typeof document<"u"&&typeof document.createElement=="function"&&typeof document.getElementById=="function",mo=t=>{if(typeof document<"u"&&document.getElementById)try{return document.getElementById(t)}catch(e){console.warn("Failed to get element by ID:",e)}return null},bo=t=>{if(typeof document<"u"&&document.createElement)try{return document.createElement(t)}catch(e){console.warn("Failed to create element:",e)}return null},po=t=>{const e=typeof document<"u"?document.head:null;if(e&&t)try{return e.appendChild(t),!0}catch(r){console.warn("Failed to append to document head:",r)}return!1},H=({animation:t="fade-in-up",delay:e=0,duration:r=600,once:o=!0,children:n,className:s="",threshold:d=.1})=>{const[l,c]=b.useState(!1),[u,m]=b.useState(!1),p=b.useRef(null);b.useEffect(()=>{if(!Ot()||typeof IntersectionObserver>"u"){c(!0),o&&m(!0);return}const x=new IntersectionObserver(([w])=>{w.isIntersecting&&(!u||!o)?(c(!0),o&&m(!0)):o||c(!1)},{threshold:d}),k=p.current;return k&&x.observe(k),()=>{k&&x.unobserve(k)}},[d,o,u]);const f=()=>{if(t==="none")return"";const x=`transition-all duration-${r} ease-out`,k=e>0?`delay-${e}`:"",w={"fade-in-up":l?`opacity-100 translate-y-0 ${x} ${k}`:`opacity-0 translate-y-8 ${x} ${k}`,"fade-in-scale":l?`opacity-100 scale-100 ${x} ${k}`:`opacity-0 scale-95 ${x} ${k}`,"fade-in-left":l?`opacity-100 translate-x-0 ${x} ${k}`:`opacity-0 -translate-x-8 ${x} ${k}`,"fade-in-right":l?`opacity-100 translate-x-0 ${x} ${k}`:`opacity-0 translate-x-8 ${x} ${k}`,"slide-in-bottom":l?`translate-y-0 ${x} ${k}`:`translate-y-full ${x} ${k}`,"zoom-in":l?`opacity-100 scale-100 ${x} ${k}`:`opacity-0 scale-50 ${x} ${k}`,float:"animate-float","bounce-slow":"animate-bounce-slow"};return w[t]||w["fade-in-up"]};return b.useEffect(()=>{if(Ot()&&(t==="float"||t==="bounce-slow")){const x="animated-section-keyframes";if(!mo(x)){const k=bo("style");k&&(k.id=x,k.textContent=`
|
|
16
|
+
${o?"bg-gray-200 text-gray-500 cursor-not-allowed":n?"bg-blue-600 text-white hover:bg-blue-700":"bg-gray-200 text-gray-700 hover:bg-gray-300"}
|
|
17
|
+
`,children:o?"Verified":n?"Current Plan":"Select Plan"})]})},u={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"}}},E={heading:{display:{hero:()=>`${u.typography.family.display} ${u.typography.semantic.hero} ${u.typography.weight.display} ${u.typography.leading.display} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,xl:()=>`${u.typography.family.display} text-7xl ${u.typography.weight.display} ${u.typography.leading.display} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,lg:()=>`${u.typography.family.display} text-6xl ${u.typography.weight.bold} ${u.typography.leading.display} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,md:()=>`${u.typography.family.display} text-5xl ${u.typography.weight.bold} ${u.typography.leading.tight} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,sm:()=>`${u.typography.family.display} text-4xl ${u.typography.weight.bold} ${u.typography.leading.tight} ${u.typography.tracking.heading} text-gray-900 dark:text-white`},h1:()=>`${u.typography.family.sans} ${u.typography.semantic.h1} ${u.typography.weight.heading} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${u.typography.family.sans} ${u.typography.semantic.h2} ${u.typography.weight.heading} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${u.typography.family.sans} ${u.typography.semantic.h3} ${u.typography.weight.heading} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,h4:()=>`${u.typography.family.sans} ${u.typography.semantic.h4} ${u.typography.weight.semibold} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,h5:()=>`${u.typography.family.sans} ${u.typography.semantic.h5} ${u.typography.weight.semibold} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,h6:()=>`${u.typography.family.sans} ${u.typography.semantic.h6} ${u.typography.weight.semibold} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,responsive:{h1:()=>`${u.typography.family.sans} text-2xl sm:text-3xl md:text-4xl lg:text-5xl ${u.typography.weight.heading} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${u.typography.family.sans} text-xl sm:text-2xl md:text-3xl lg:text-4xl ${u.typography.weight.heading} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${u.typography.family.sans} text-lg sm:text-xl md:text-2xl lg:text-3xl ${u.typography.weight.semibold} ${u.typography.leading.heading} ${u.typography.tracking.heading} text-gray-900 dark:text-white`,display:()=>`${u.typography.family.display} text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl ${u.typography.weight.display} ${u.typography.leading.display} ${u.typography.tracking.heading} text-gray-900 dark:text-white`}},body:{xl:()=>`${u.typography.family.body} ${u.typography.semantic.bodyLarge} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-700 dark:text-gray-300`,lg:()=>`${u.typography.family.body} ${u.typography.semantic.body} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${u.typography.family.body} ${u.typography.semantic.body} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${u.typography.family.body} ${u.typography.semantic.small} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-600 dark:text-gray-400`,xs:()=>`${u.typography.family.body} ${u.typography.semantic.caption} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-600 dark:text-gray-400`,strong:{xl:()=>`${u.typography.family.body} ${u.typography.semantic.bodyLarge} ${u.typography.weight.strong} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${u.typography.family.body} ${u.typography.semantic.body} ${u.typography.weight.strong} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${u.typography.family.body} ${u.typography.semantic.body} ${u.typography.weight.strong} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${u.typography.family.body} ${u.typography.semantic.small} ${u.typography.weight.strong} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-900 dark:text-white`},emphasis:{xl:()=>`${u.typography.family.body} ${u.typography.semantic.bodyLarge} ${u.typography.weight.emphasis} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${u.typography.family.body} ${u.typography.semantic.body} ${u.typography.weight.emphasis} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${u.typography.family.body} ${u.typography.semantic.body} ${u.typography.weight.emphasis} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${u.typography.family.body} ${u.typography.semantic.small} ${u.typography.weight.emphasis} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-900 dark:text-white`},muted:{xl:()=>`${u.typography.family.body} ${u.typography.semantic.bodyLarge} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-600 dark:text-gray-400`,lg:()=>`${u.typography.family.body} ${u.typography.semantic.body} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-600 dark:text-gray-400`,md:()=>`${u.typography.family.body} ${u.typography.semantic.body} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-600 dark:text-gray-400`,sm:()=>`${u.typography.family.body} ${u.typography.semantic.small} ${u.typography.weight.body} ${u.typography.leading.body} ${u.typography.tracking.body} text-gray-600 dark:text-gray-400`}},link:{default:()=>`${u.typography.decoration.underline} ${u.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150`,subtle:()=>`${u.typography.decoration.none} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:${u.typography.decoration.underline} hover:${u.typography.underlineOffset.medium} transition-all duration-150`,muted:()=>`${u.typography.decoration.underline} ${u.typography.underlineOffset.medium} text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors duration-150`,external:()=>`${u.typography.decoration.underline} ${u.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:()=>`${u.typography.family.body} text-sm ${u.typography.weight.emphasis} text-gray-900 dark:text-white`,required:()=>`${u.typography.family.body} text-sm ${u.typography.weight.emphasis} text-gray-900 dark:text-white after:content-['*'] after:ml-0.5 after:text-red-500`,optional:()=>`${u.typography.family.body} text-sm ${u.typography.weight.body} text-gray-600 dark:text-gray-400`,helper:()=>`${u.typography.family.body} text-sm ${u.typography.weight.body} text-gray-500 dark:text-gray-500`,error:()=>`${u.typography.family.body} text-sm ${u.typography.weight.body} text-red-600 dark:text-red-400`,success:()=>`${u.typography.family.body} text-sm ${u.typography.weight.body} text-green-600 dark:text-green-400`}},k={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:(t="default")=>{const e={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`${e[t]||e.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`},large:(t="default")=>{const e={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`${e[t]||e.default} inline-flex items-center px-3 py-1 rounded-full text-sm font-medium`}},input:{default:()=>"bg-white dark:bg-gray-900 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-white dark:bg-gray-900 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-white dark:bg-gray-900 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-white dark:bg-gray-900 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-white dark:bg-gray-900 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-white dark:bg-gray-900 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"}}},ya={section:{gradient:"py-20 bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900 dark:to-blue-900"}},xa={info:w.InformationCircleIcon,success:w.CheckCircleIcon,warning:w.ExclamationTriangleIcon,error:w.XCircleIcon},va=({children:t,className:e})=>a.jsx("div",{className:f("font-medium mb-1",e),children:t}),wa=({children:t,className:e})=>a.jsx("div",{className:f("text-sm",e),children:t}),ka=({variant:t="info",title:e,description:r,icon:n,children:o,className:s})=>{const c=xa[t],l=n||a.jsx(c,{className:"h-5 w-5"}),d=typeof k.alert[t]=="function"?k.alert[t]():"";return a.jsxs("div",{role:"alert",className:f(d,s),children:[l&&a.jsx("div",{className:"flex-shrink-0",children:l}),a.jsxs("div",{className:"flex-1",children:[e&&a.jsx("div",{className:"font-medium mb-1",children:e}),r&&a.jsx("div",{className:"text-sm",children:r}),o]})]})},dt=()=>typeof document<"u"&&typeof document.createElement=="function"&&typeof document.getElementById=="function",Ca=t=>{if(typeof document<"u"&&document.getElementById)try{return document.getElementById(t)}catch(e){console.warn("Failed to get element by ID:",e)}return null},Sa=t=>{if(typeof document<"u"&&document.createElement)try{return document.createElement(t)}catch(e){console.warn("Failed to create element:",e)}return null},Na=t=>{const e=typeof document<"u"?document.head:null;if(e&&t)try{return e.appendChild(t),!0}catch(r){console.warn("Failed to append to document head:",r)}return!1},_=({animation:t="fade-in-up",delay:e=0,duration:r=600,once:n=!0,children:o,className:s="",threshold:c=.1})=>{const[l,d]=h.useState(!1),[g,m]=h.useState(!1),p=h.useRef(null);h.useEffect(()=>{if(!dt()||typeof IntersectionObserver>"u"){d(!0),n&&m(!0);return}const y=new IntersectionObserver(([v])=>{v.isIntersecting&&(!g||!n)?(d(!0),n&&m(!0)):n||d(!1)},{threshold:c}),x=p.current;return x&&y.observe(x),()=>{x&&y.unobserve(x)}},[c,n,g]);const b=()=>{if(t==="none")return"";const y=`transition-all duration-${r} ease-out`,x=e>0?`delay-${e}`:"",v={"fade-in-up":l?`opacity-100 translate-y-0 ${y} ${x}`:`opacity-0 translate-y-8 ${y} ${x}`,"fade-in-scale":l?`opacity-100 scale-100 ${y} ${x}`:`opacity-0 scale-95 ${y} ${x}`,"fade-in-left":l?`opacity-100 translate-x-0 ${y} ${x}`:`opacity-0 -translate-x-8 ${y} ${x}`,"fade-in-right":l?`opacity-100 translate-x-0 ${y} ${x}`:`opacity-0 translate-x-8 ${y} ${x}`,"slide-in-bottom":l?`translate-y-0 ${y} ${x}`:`translate-y-full ${y} ${x}`,"zoom-in":l?`opacity-100 scale-100 ${y} ${x}`:`opacity-0 scale-50 ${y} ${x}`,float:"animate-float","bounce-slow":"animate-bounce-slow"};return v[t]||v["fade-in-up"]};return h.useEffect(()=>{if(dt()&&(t==="float"||t==="bounce-slow")){const y="animated-section-keyframes";if(!Ca(y)){const x=Sa("style");x&&(x.id=y,x.textContent=`
|
|
18
18
|
@keyframes float {
|
|
19
19
|
0%, 100% { transform: translateY(0px); }
|
|
20
20
|
50% { transform: translateY(-20px); }
|
|
@@ -29,34 +29,34 @@
|
|
|
29
29
|
.animate-bounce-slow {
|
|
30
30
|
animation: bounce-slow 4s ease-in-out infinite;
|
|
31
31
|
}
|
|
32
|
-
`,po(k))}}},[t]),a.jsx("div",{ref:p,className:`${f()} ${s}`,children:n})},ho=({children:t,delay:e=0,className:r=""})=>a.jsx(H,{animation:"fade-in-up",delay:e,className:r,children:t}),yo=({children:t,delay:e=0,className:r=""})=>a.jsx(H,{animation:"fade-in-scale",delay:e,className:r,children:t}),fo=({children:t,className:e=""})=>a.jsx(H,{animation:"float",className:e,children:t}),Wt=I.cva("min-h-[44px] touch-manipulation",{variants:{variant:{default:"",primary:"",secondary:"",outline:"",ghost:"",destructive:"","destructive-outline":"",success:"",link:"",gradient:"","gradient-secondary":"","gradient-success":"",wallet:"",connect:"",disconnect:""},size:{default:"",sm:"h-8",lg:"h-12",icon:"h-10 w-10 p-0"},animation:{none:"transition-colors duration-200",hover:"transition-all duration-200 hover:scale-105",lift:"transition-all duration-200 hover:scale-105",scale:"transition-transform duration-200 hover:scale-95",glow:"transition-all duration-200 hover:shadow-lg",shimmer:"transition-all duration-200",tap:"transition-transform duration-100 active:scale-95",connect:"transition-all duration-200 hover:scale-105",transaction:"transition-all duration-200 animate-pulse",disconnect:"transition-all duration-200 hover:opacity-80"}},defaultVariants:{variant:"default",size:"default",animation:"hover"}}),q=T.forwardRef(({className:t,variant:e,size:r,animation:o,asChild:n=!1,...s},d)=>{const l=n?Sr.Slot:"button",c=e||"default",u=r&&r!=="default"&&r!=="icon"?r:void 0,m=x=>x?{sm:"small",lg:"large",default:"default"}[x]||x:"default",f=(()=>{if(c.startsWith("gradient")){const x=c.replace("gradient-","").replace("gradient","primary");return C.button.gradient[x]?.()||C.button.primary.default()}else{if(["wallet","connect","disconnect"].includes(c))return C.button.web3[c]?.()||C.button.primary.default();{const x=m(u);return C.button[c]?.[x]?.()||C.button.primary.default()}}})();return a.jsx(l,{className:h(Wt({size:r,animation:o}),f,t),ref:d,...s})});q.displayName="Button";const xo={default:"bg-white dark:bg-gray-800",bordered:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700",elevated:"bg-white dark:bg-gray-800 shadow-md",info:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 text-blue-900 dark:text-blue-300",success:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 text-green-900 dark:text-green-300",warning:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 text-yellow-900 dark:text-yellow-300",error:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-900 dark:text-red-300",callout:"bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border border-blue-200 dark:border-blue-800"},ko={none:"",sm:"p-3",md:"p-6",lg:"p-8"},Oe=({variant:t="elevated",padding:e="md",icon:r,onClose:o,className:n,children:s,...d})=>{const c=["info","success","warning","error"].includes(t)&&(r||o);return a.jsx("div",{className:h("rounded-lg",xo[t],ko[e],n),...d,children:c?a.jsxs("div",{className:"flex items-start gap-3",children:[r&&a.jsx("div",{className:"flex-shrink-0 text-lg",children:r}),a.jsx("div",{className:"flex-1 min-w-0",children:s}),o&&a.jsx("button",{onClick:o,className:"flex-shrink-0 text-current hover:opacity-70 transition-opacity","aria-label":"Close",children:a.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}):s})},wo=({title:t,description:e,className:r,children:o,...n})=>a.jsxs("div",{className:h("space-y-1.5",r),...n,children:[t&&a.jsx("h3",{className:E.heading.h4(),children:t}),e&&a.jsx("p",{className:E.body.sm(),children:e}),o]}),vo=({className:t,children:e,...r})=>a.jsx("div",{className:h("",t),...r,children:e}),Co=({className:t,children:e,...r})=>a.jsx("div",{className:h("flex items-center pt-4",t),...r,children:e}),So=({title:t,children:e,variant:r="info",size:o="default",className:n})=>{const s={sm:"sm",default:"md",lg:"lg"},d=r==="neutral"?"bordered":r;return a.jsxs(Oe,{variant:d,padding:s[o],className:n,children:[t&&a.jsx("h3",{className:h("font-semibold mb-2",o==="sm"?"text-base":o==="lg"?"text-xl":"text-lg"),children:t}),e]})},No=({title:t,icon:e,children:r,variant:o="gradient",size:n="default",centered:s=!1,className:d})=>{const l={sm:"sm",default:"md",lg:"lg"},c=o==="gradient"||o==="neutral"?"callout":o;return a.jsx(Oe,{variant:c,padding:l[n],className:d,children:a.jsxs("div",{className:h("space-y-4",s&&"text-center"),children:[e&&a.jsx("div",{className:h("font-bold",n==="sm"?"text-2xl":n==="lg"?"text-5xl":"text-4xl",s?"text-center":"text-left"),children:e}),t&&a.jsx("h3",{className:h("font-bold mb-4",n==="sm"?"text-lg":n==="lg"?"text-3xl":"text-2xl"),children:t}),a.jsx("div",{className:h("text-gray-600 dark:text-gray-400",n==="sm"?"text-sm":n==="lg"?"text-lg":"text-base"),children:r})]})})},Eo=I.cva("grid gap-8",{variants:{layout:{grid:"grid-cols-1 md:grid-cols-2",stacked:"grid-cols-1 space-y-8",cards:"grid-cols-1 md:grid-cols-2 gap-6"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{layout:"grid",spacing:"md"}}),$o=I.cva("rounded-xl p-6 transition-all duration-300",{variants:{variant:{traditional:"bg-red-50 dark:bg-red-900/20 border-2 border-red-100 dark:border-red-800/30 hover:border-red-200 dark:hover:border-red-700/50",web3:"bg-green-50 dark:bg-green-900/20 border-2 border-green-100 dark:border-green-800/30 hover:border-green-200 dark:hover:border-green-700/50",neutral:"bg-gray-50 dark:bg-gray-800/50 border-2 border-gray-100 dark:border-gray-700/30 hover:border-gray-200 dark:hover:border-gray-600/50",elevated:"bg-white dark:bg-gray-800 shadow-lg hover:shadow-xl border border-gray-200 dark:border-gray-700"},animation:{none:"",hover:"hover:transform hover:scale-[1.02]",float:"hover:-translate-y-1"}},defaultVariants:{variant:"traditional",animation:"hover"}}),Io=I.cva("text-lg font-bold mb-4 flex items-center gap-3",{variants:{variant:{traditional:"text-red-600 dark:text-red-400",web3:"text-green-600 dark:text-green-400",neutral:"text-gray-900 dark:text-white",elevated:"text-gray-900 dark:text-white"}},defaultVariants:{variant:"traditional"}}),Ao={traditional:"❌",web3:"✅",neutral:"ℹ️",elevated:"⭐"},Po={red:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300",green:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",blue:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",gray:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},To=({className:t,layout:e="grid",spacing:r="md",title:o,subtitle:n,traditional:s,web3:d,cardAnimation:l="hover",animate:c=!0,animationDelay:u=0,traditionalIcon:m,web3Icon:p})=>{const f=(k,w)=>{const $=a.jsxs("div",{className:h($o({variant:k.variant,animation:l})),children:[a.jsxs("div",{className:h(Io({variant:k.variant})),children:[a.jsx("span",{className:"text-2xl",children:k.icon||(w===0?m:p)||Ao[k.variant]}),a.jsx("div",{className:"flex-1",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:k.title}),k.badge&&a.jsx("span",{className:h("text-xs font-medium px-2 py-1 rounded-full",Po[k.badge.color||"gray"]),children:k.badge.text})]})})]}),a.jsx("ul",{className:"space-y-3",children:k.items.map((S,N)=>a.jsxs("li",{className:h("flex items-start gap-3 text-sm leading-relaxed",S.highlight&&"font-medium"),children:[S.icon&&a.jsx("span",{className:"flex-shrink-0 mt-0.5 text-base",children:S.icon}),a.jsxs("div",{className:"flex-1",children:[a.jsx("span",{className:h(k.variant==="traditional"||k.variant==="web3"?"text-gray-700 dark:text-gray-300":"text-gray-600 dark:text-gray-400"),children:S.text}),S.subtext&&a.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:S.subtext})]})]},N))})]});return c?a.jsx(H,{animation:"fade-in-up",delay:u+w*200,children:$},k.title):a.jsx("div",{children:$},k.title)},x=a.jsxs("div",{className:h("space-y-8",t),children:[(o||n)&&a.jsxs("div",{className:"text-center space-y-4",children:[o&&a.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white",children:o}),n&&a.jsx("p",{className:"text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:n})]}),a.jsxs("div",{className:h(Eo({layout:e,spacing:r})),children:[f(s,0),f(d,1)]})]});return c?a.jsx(H,{animation:"fade-in-up",delay:u,children:x}):x},We=(t,e,r,o)=>({title:t,variant:r,items:e.map(n=>typeof n=="string"?{text:n}:n),...o}),Lo=t=>{const e=[{text:"Create account with email/password",icon:"🔑"},{text:"Remember multiple passwords",icon:"🧠"},{text:"Verify email address",icon:"📧"},{text:"Risk of password theft",icon:"⚠️"},{text:"Data stored on company servers",icon:"🏢"},{text:"Account can be locked/suspended",icon:"🔒"}],r=[{text:"Connect your wallet",icon:"🔗"},{text:"No passwords needed",icon:"🚫"},{text:"Instant authentication",icon:"⚡"},{text:"Cryptographically secure",icon:"🔐"},{text:"You own your data",icon:"👑"},{text:"Censorship resistant",icon:"🛡️"}];return{traditional:We(t?.traditionalTitle||"Traditional Email",t?.traditionalItems||e,"traditional",{badge:{text:t?.traditionalBadge||"Old Way",color:"red"}}),web3:We(t?.web3Title||"Web3 Email",t?.web3Items||r,"web3",{badge:{text:t?.web3Badge||"New Way",color:"green"}})}},zo=I.cva("mx-auto px-4 sm:px-6",{variants:{size:{sm:"max-w-2xl",md:"max-w-4xl",lg:"max-w-6xl",xl:"max-w-7xl lg:px-8",full:"max-w-full",prose:"max-w-prose"},spacing:{none:"",xs:"py-2",sm:"py-3",md:"py-4",lg:"py-6",xl:"py-8","2xl":"py-12","3xl":"py-16"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{size:"xl",spacing:"md",align:"left"}}),jo=({children:t,size:e="xl",spacing:r="md",align:o="left",className:n,as:s="div"})=>b.createElement(s,{className:h(zo({size:e,spacing:r,align:o}),n)},t),Mo=({trigger:t,items:e,align:r="right",className:o="",variant:n="default"})=>{const[s,d]=b.useState(!1),l=b.useRef(null);jt(l,()=>d(!1));const c=p=>{p.disabled||(p.onClick(),d(!1))},u=r==="left"?C.overlays.dropdown.menuRight():C.overlays.dropdown.menuLeft(),m=n==="bordered"?C.overlays.dropdown.triggerBordered():C.overlays.dropdown.trigger();return a.jsxs("div",{className:`${C.overlays.dropdown.container()} ${o}`,ref:l,children:[a.jsx("div",{className:m,onClick:()=>d(!s),children:t}),s&&a.jsx("div",{className:`${C.overlays.dropdown.menu()} ${u} ${C.overlays.dropdown.menuBottom()}`,children:a.jsx("div",{className:C.overlays.dropdown.itemContainer(),children:e.map(p=>p.separator?a.jsx("div",{className:"my-1 h-px bg-gray-200 dark:bg-gray-700",role:"separator"},p.id):a.jsxs("button",{onClick:()=>c(p),disabled:p.disabled,className:p.disabled?C.overlays.dropdown.itemDisabled():C.overlays.dropdown.item(),children:[p.icon&&a.jsx(p.icon,{className:C.overlays.dropdown.itemIcon()}),a.jsx("span",{children:p.label})]},p.id))})})]})},Oo=({icon:t,title:e,description:r,benefits:o,metrics:n,color:s="blue",isHighlight:d=!1,learnMoreUrl:l,cta:c,className:u})=>{const m={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},p=m[s]||m.blue,f=()=>a.jsxs(a.Fragment,{children:[a.jsx("div",{className:h("flex-shrink-0 mb-4",p),children:t}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:e}),a.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4 leading-relaxed",children:r}),c&&a.jsx("div",{className:"mt-3 mb-4",children:c}),o&&o.length>0&&a.jsx("ul",{className:"space-y-2 mb-4",children:o.map((x,k)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:h("w-2 h-2 rounded-full mt-2 mr-3 flex-shrink-0",`bg-${s}-500`)}),a.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:x})]},k))}),n&&Object.keys(n).length>0&&a.jsx("div",{className:"grid grid-cols-2 gap-4 mt-4",children:Object.entries(n).map(([x,k],w)=>a.jsxs("div",{className:"text-center p-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:[a.jsx("div",{className:h("text-lg font-bold",p),children:k}),a.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:x})]},w))})]})]});return l?a.jsx("a",{href:l,className:h("block group p-6 rounded-xl border transition-all duration-200 hover:shadow-lg",d?"bg-gradient-to-br from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border-blue-200 dark:border-blue-800":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600",u),children:a.jsx(f,{})}):a.jsx("div",{className:h("p-6 rounded-xl border",d?"bg-gradient-to-br from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border-blue-200 dark:border-blue-800":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700",u),children:a.jsx(f,{})})},Wo=I.cva("grid gap-8",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{columns:3,spacing:"md"}}),Bo=I.cva("group transition-all duration-300",{variants:{variant:{default:"text-center",left:"text-left",hoverable:"text-center hover:transform hover:scale-105 cursor-pointer",card:"bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-lg hover:shadow-xl text-center",minimal:"text-center space-y-4"},animation:{none:"",hover:"hover:transform hover:scale-105",float:"hover:-translate-y-2"}},defaultVariants:{variant:"default",animation:"hover"}}),Do=I.cva("flex items-center justify-center rounded-2xl mb-6 transition-all duration-300",{variants:{size:{sm:"w-16 h-16",md:"w-20 h-20",lg:"w-24 h-24"},style:{gradient:"bg-gradient-to-br from-blue-100 to-blue-200 dark:from-blue-900/30 dark:to-blue-800/30 group-hover:from-blue-200 group-hover:to-blue-300 dark:group-hover:from-blue-800/40 dark:group-hover:to-blue-700/40",solid:"bg-blue-100 dark:bg-blue-900/30 group-hover:bg-blue-200 dark:group-hover:bg-blue-800/40",outline:"border-2 border-blue-200 dark:border-blue-800 group-hover:border-blue-300 dark:group-hover:border-blue-700",colorful:"group-hover:scale-110"},position:{center:"mx-auto",left:"",right:"ml-auto"}},defaultVariants:{size:"md",style:"gradient",position:"center"}}),Fo={success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",info:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},_o=({className:t,features:e,columns:r=3,spacing:o="md",cardVariant:n="default",cardAnimation:s="hover",iconSize:d="md",iconStyle:l="gradient",iconPosition:c="center",titleClass:u,descriptionClass:m,animate:p=!0,animationDelay:f=0,staggerDelay:x=100,onFeatureClick:k,defaultLinkText:w="Learn more"})=>{const $=(N,A)=>{if(l==="colorful"&&N.gradient)return{background:`linear-gradient(135deg, ${N.gradient.from}, ${N.gradient.to})`};if(l==="colorful"){const j=[{from:"#3B82F6",to:"#1D4ED8"},{from:"#10B981",to:"#059669"},{from:"#8B5CF6",to:"#7C3AED"},{from:"#F59E0B",to:"#D97706"},{from:"#EF4444",to:"#DC2626"},{from:"#06B6D4",to:"#0891B2"}],Ne=j[A%j.length];return{background:`linear-gradient(135deg, ${Ne.from}, ${Ne.to})`}}},S=(N,A)=>{const j=a.jsxs("div",{className:h(Bo({variant:n,animation:s})),onClick:()=>k?.(N),role:k?"button":void 0,tabIndex:k?0:void 0,children:[N.badge&&a.jsx("div",{className:"mb-4",children:a.jsx("span",{className:h("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",Fo[N.badge.variant||"default"]),children:N.badge.text})}),a.jsx("div",{className:h(Do({size:d,style:l,position:c})),style:$(N,A),children:a.jsx("div",{className:h("flex items-center justify-center",l==="colorful"?"text-white":"text-blue-600 dark:text-blue-400"),children:N.icon})}),a.jsx("h3",{className:h("text-xl font-bold text-gray-900 dark:text-white mb-4",u),children:N.title}),a.jsx("div",{className:h("text-gray-600 dark:text-gray-300 leading-relaxed",m),children:N.description}),N.link&&a.jsx("div",{className:"mt-6",children:a.jsxs("a",{href:N.link.href,className:"inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors duration-200",children:[N.link.text||w,a.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]});return p?a.jsx(H,{animation:"fade-in-up",delay:f+A*x,children:j},N.id||A):a.jsx("div",{children:j},N.id||A)};return a.jsx("div",{className:h(Wo({columns:r,spacing:o}),t),children:e.map(S)})},Be=(t,e,r,o)=>({icon:t,title:e,description:r,...o}),qo=t=>[Be(a.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),t?.passwordlessTitle||"Passwordless Security",t?.passwordlessDescription||"Authenticate using your Web3 wallet - no passwords to remember or lose."),Be(a.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.40A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),t?.encryptionTitle||"End-to-End Encryption",t?.encryptionDescription||"Your emails are encrypted and only you can read them.")],Vo=t=>({primary:C.button.gradient.primary,secondary:C.button.gradient.secondary,success:C.button.gradient.success,warning:C.button.gradient.primary,error:C.button.gradient.primary})[t](),Uo={sm:"h-8",md:"",lg:"h-12"},Ho=({children:t,variant:e="primary",size:r="md",disabled:o=!1,loading:n=!1,fullWidth:s=!1,onClick:d,type:l="button",className:c})=>a.jsxs("button",{type:l,onClick:d,disabled:o||n,className:h("relative",Vo(e),Uo[r],"hover:scale-105 active:scale-95 transition-transform",s&&"w-full",c),children:[n&&a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"})}),a.jsx("span",{className:h(n&&"opacity-0"),children:t})]}),Go=({badgeIcon:t,badgeText:e,badgeColor:r="blue",title:o,subtitle:n,description:s,primaryButton:d,secondaryButton:l,className:c,children:u})=>{const p={blue:"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",green:"bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",purple:"bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",orange:"bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",pink:"bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",gray:"bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"}[r];return a.jsx("section",{className:h("py-20",c),children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[a.jsxs("div",{className:h("inline-flex items-center border px-6 py-3 rounded-full mb-6",p),children:[t&&a.jsx("span",{className:"mr-3",children:t}),a.jsx("span",{className:"font-semibold",children:e})]}),a.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6",children:[typeof o=="string"?a.jsx("span",{dangerouslySetInnerHTML:{__html:o}}):o,n&&a.jsx("span",{className:"text-blue-600 dark:text-blue-400 block",children:n})]}),a.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed",children:s}),(d||l)&&a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[d&&a.jsx(q,{size:"lg",...d,className:h("px-8 py-3",d.className),children:d.text}),l&&a.jsx(q,{variant:"outline",size:"lg",...l,className:h("px-8 py-3",l.className),children:l.text})]}),u]})})},Bt=T.forwardRef(({className:t,type:e,...r},o)=>a.jsx("input",{type:e,className:h(C.input.default(),t),ref:o,...r}));Bt.displayName="Input";const Ko=I.cva(`${E.label.default()} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),De=T.forwardRef(({className:t,...e},r)=>a.jsx(it.Root,{ref:r,className:h(Ko(),t),...e}));De.displayName=it.Root.displayName;const Yo=({title:t,description:e,metrics:r,columns:o=3,className:n})=>{const s={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},d={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return a.jsx("section",{className:h("py-16",n),children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(t||e)&&a.jsxs("div",{className:"text-center mb-12",children:[t&&a.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:e})]}),a.jsx("div",{className:h("grid gap-8",d[o]),children:r.map((l,c)=>{const u=l.color?s[l.color]:s.blue;return a.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 text-center hover:shadow-lg transition-shadow",children:[l.icon&&a.jsx("div",{className:h("flex justify-center mb-4",u),children:l.icon}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:h("text-3xl font-bold",u),children:l.value}),a.jsx("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:l.label}),l.trend&&a.jsxs("div",{className:h("text-sm font-semibold",l.trend.direction==="up"?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"),children:[l.trend.direction==="up"?"↑":"↓"," ",l.trend.value]})]})]},c)})})]})})},Qo=({title:t,description:e,steps:r,orientation:o="vertical",color:n="blue",className:s})=>{const l={blue:{bg:"bg-blue-600",text:"text-blue-600 dark:text-blue-400",border:"border-blue-200 dark:border-blue-800"},green:{bg:"bg-green-600",text:"text-green-600 dark:text-green-400",border:"border-green-200 dark:border-green-800"},purple:{bg:"bg-purple-600",text:"text-purple-600 dark:text-purple-400",border:"border-purple-200 dark:border-purple-800"},orange:{bg:"bg-orange-600",text:"text-orange-600 dark:text-orange-400",border:"border-orange-200 dark:border-orange-800"},pink:{bg:"bg-pink-600",text:"text-pink-600 dark:text-pink-400",border:"border-pink-200 dark:border-pink-800"},gray:{bg:"bg-gray-600",text:"text-gray-600 dark:text-gray-400",border:"border-gray-200 dark:border-gray-800"}}[n];return a.jsx("section",{className:h("py-16",s),children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(t||e)&&a.jsxs("div",{className:"text-center mb-12",children:[t&&a.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:e})]}),a.jsx("div",{className:h(o==="horizontal"?"flex flex-col lg:flex-row justify-center items-center lg:items-start space-y-8 lg:space-y-0 lg:space-x-8":"space-y-8 max-w-4xl mx-auto"),children:r.map((c,u)=>a.jsxs("div",{className:h("relative",o==="horizontal"?"flex-1 text-center lg:text-left":"flex items-start"),children:[a.jsx("div",{className:h("flex-shrink-0 flex items-center justify-center rounded-full text-white font-bold",l.bg,o==="horizontal"?"w-12 h-12 mx-auto lg:mx-0 mb-4":"w-10 h-10 mr-4 mt-1"),children:c.icon?c.icon:c.step}),u<r.length-1&&o==="vertical"&&a.jsx("div",{className:h("absolute left-5 top-12 w-px h-8 -ml-px",l.bg.replace("bg-","bg-").replace("-600","-200"),"dark:"+l.bg.replace("bg-","bg-").replace("-600","-800"))}),a.jsxs("div",{className:h(o==="horizontal"?"flex-1":"flex-1 min-w-0"),children:[a.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:c.title}),a.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-3",children:c.description}),c.details&&c.details.length>0&&a.jsx("ul",{className:"space-y-1",children:c.details.map((m,p)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:h("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",l.bg)}),a.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:m})]},p))})]})]},u))})]})})},Fe=P.Root,Zo=P.Group,Dt=P.Value,ye=T.forwardRef(({className:t,children:e,...r},o)=>a.jsxs(P.Trigger,{ref:o,className:h("flex h-9 w-full items-center justify-between rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 px-3 py-2 text-sm 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 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[e,a.jsx(P.Icon,{asChild:!0,children:a.jsx(ce.ChevronDown,{className:"h-4 w-4 opacity-50 ml-2 flex-shrink-0"})})]}));ye.displayName=P.Trigger.displayName;const _e=T.forwardRef(({className:t,...e},r)=>a.jsx(P.ScrollUpButton,{ref:r,className:h("flex cursor-default items-center justify-center py-1",t),...e,children:a.jsx(ce.ChevronUp,{className:"h-4 w-4"})}));_e.displayName=P.ScrollUpButton.displayName;const qe=T.forwardRef(({className:t,...e},r)=>a.jsx(P.ScrollDownButton,{ref:r,className:h("flex cursor-default items-center justify-center py-1",t),...e,children:a.jsx(ce.ChevronDown,{className:"h-4 w-4"})}));qe.displayName=P.ScrollDownButton.displayName;const fe=T.forwardRef(({className:t,children:e,position:r="popper",...o},n)=>a.jsx(P.Portal,{children:a.jsxs(P.Content,{ref:n,className:h(C.overlays.dropdown.menu(),"z-[1000000] max-h-96 min-w-[8rem] overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...o,children:[a.jsx(_e,{}),a.jsx(P.Viewport,{className:h(C.overlays.dropdown.itemContainer(),r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),a.jsx(qe,{})]})}));fe.displayName=P.Content.displayName;const Ft=T.forwardRef(({className:t,...e},r)=>a.jsx(P.Label,{ref:r,className:h(C.overlays.dropdown.header(),"py-1.5",t),...e}));Ft.displayName=P.Label.displayName;const xe=T.forwardRef(({className:t,children:e,...r},o)=>a.jsxs(P.Item,{ref:o,className:h(C.overlays.dropdown.item(),"relative select-none justify-between pr-8 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[a.jsx(P.ItemText,{children:e}),a.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(P.ItemIndicator,{children:a.jsx(ce.Check,{className:"h-4 w-4"})})})]}));xe.displayName=P.Item.displayName;const _t=T.forwardRef(({className:t,...e},r)=>a.jsx(P.Separator,{ref:r,className:h("my-1 h-px bg-gray-200 dark:bg-gray-700",t),...e}));_t.displayName=P.Separator.displayName;const Ve=({size:t="default",variant:e="default",className:r,ariaLabel:o="Loading",loadingText:n="Loading..."})=>{const s=()=>{const d={small:"w-4 h-4",default:"w-6 h-6",large:"w-8 h-8",extraLarge:"w-16 h-16 border-4"},l={default:"border-gray-300 border-t-blue-600",white:"border-white/30 border-t-white",success:"border-gray-300 border-t-green-600",warning:"border-gray-300 border-t-orange-600",error:"border-gray-300 border-t-red-600"};return`animate-spin rounded-full border-2 ${d[t]} ${l[e]}`};return a.jsx("div",{className:h(s(),r),role:"status","aria-label":o,children:a.jsx("span",{className:"sr-only",children:n})})},qt=T.forwardRef(({className:t,...e},r)=>a.jsx(Ee.Root,{className:h("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-600 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-gray-700",t),...e,ref:r,children:a.jsx(Ee.Thumb,{className:h("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));qt.displayName=Ee.Root.displayName;const Jo=({title:t,onAdd:e,addButtonTooltip:r,loading:o,className:n=""})=>a.jsx("div",{className:`p-4 border-b border-gray-200 dark:border-gray-700 ${n}`,children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:t}),a.jsxs("div",{className:"flex items-center space-x-2",children:[o&&a.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),e&&a.jsx("button",{onClick:e,className:"p-1 rounded hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",title:r,"aria-label":r||"Add",children:a.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})})]})]})}),Xo=({subsections:t,isExpanded:e,selectedSubsection:r,parentSectionId:o,onSubsectionSelect:n})=>{const s=b.useRef(null),[d,l]=b.useState(void 0);return b.useEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(e?c+8:0)}},[e,t]),a.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:d!==void 0?`${d}px`:"auto"},children:a.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:t.map(c=>a.jsx("button",{onClick:()=>n?.(c.id,o),className:`block w-full text-left px-3 py-2 rounded-md text-sm transition-all duration-200 hover:scale-[1.02] ${r===c.id?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-800 dark:hover:text-gray-200"}`,children:c.title},c.id))})})},Ro=({sections:t,selectedSection:e,selectedSubsection:r,expandedSections:o,onSectionSelect:n,onSubsectionSelect:s,onToggleSection:d,className:l=""})=>a.jsx("nav",{className:`space-y-2 ${l}`,children:t.map(c=>a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("button",{onClick:()=>n(c.id),className:`flex-1 text-left px-3 py-2 rounded-md text-sm font-medium transition-all duration-200 hover:scale-[1.02] ${e===c.id&&!r?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-gray-100"}`,children:c.title}),c.subsections&&c.subsections.length>0&&a.jsx("button",{onClick:()=>d(c.id),className:"p-1 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200",children:a.jsx(v.ChevronRightIcon,{className:`h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out ${o.includes(c.id)?"rotate-90":"rotate-0"}`})})]}),c.subsections&&a.jsx(Xo,{subsections:c.subsections,isExpanded:o.includes(c.id),selectedSubsection:r,parentSectionId:c.id,onSubsectionSelect:s})]},c.id))}),en=t=>{switch(t){case"verified":case"success":return"bg-green-500";case"connected":case"warning":return"bg-amber-500";case"disconnected":case"error":return"bg-red-500";case"pending":return"bg-blue-500";default:return"bg-gray-500"}},tn=t=>{switch(t){case"sm":return"w-1.5 h-1.5";case"lg":return"w-3 h-3";default:return"w-2 h-2"}},rn=({status:t,label:e,showDot:r=!0,size:o="md"})=>{const s=e||{verified:"Verified",connected:"Connected",disconnected:"Disconnected",pending:"Pending",error:"Error",success:"Success",warning:"Warning"}[t],l=((m,p)=>{const f={sm:"small",md:"default",lg:"large"},k={verified:"success",success:"success",connected:"warning",warning:"warning",disconnected:"error",error:"error",pending:"primary"}[m]||"default",w=f[p];return w==="default"?C.badge[k]():C.badge[w](k)})(t,o),c=en(t),u=tn(o);return a.jsxs("span",{className:l,children:[r&&a.jsx("span",{className:`inline-block ${u} rounded-full ${c} mr-1`}),s]})},Vt=({chainType:t,size:e="md"})=>{if(t==="unknown")return null;const r=t==="solana"?"SOL":"ETH",n={sm:"small",md:"default",lg:"large"}[e],s=()=>{const d=t==="solana"?"solana":"ethereum";return n==="default"?C.badge[d]():C.badge[n](d)};return a.jsx("span",{className:s(),children:r})},an=t=>t?t.length<=10?t:`${t.slice(0,6)}...${t.slice(-4)}`:"",Ut=({type:t,addressType:e})=>{if(t==="primary")return a.jsx(Vt,{chainType:e==="solana"?"solana":"evm",size:"sm"});const r=()=>t.toUpperCase(),o=()=>{switch(t){case"ens":return"bg-green-50 text-green-700 border-green-200 dark:bg-green-900/10 dark:text-green-300 dark:border-green-800";case"sns":return"bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-900/10 dark:text-orange-300 dark:border-orange-800";default:return"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900/10 dark:text-gray-300 dark:border-gray-800"}};return a.jsx("span",{className:h("inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium border",o()),children:r()})},on=({domainEmails:t,isExpanded:e,selectedAccount:r,onAccountSelect:o,onAccountSettings:n})=>{const s=b.useRef(null),[d,l]=b.useState(void 0);return b.useEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(e?c+8:0)}},[e,t]),a.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:d!==void 0?`${d}px`:"auto"},children:a.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:t.map(c=>a.jsxs("button",{onClick:()=>o(c.address),className:h("w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",E.body.sm(),r===c.address?"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-gray-700"),children:[a.jsx("span",{className:"truncate flex-1",children:c.name}),a.jsx(Ut,{type:c.type,addressType:c.addressType})]},c.address))})})},nn=({walletGroups:t,selectedAccount:e,expandedWallets:r,onAccountSelect:o,onToggleWallet:n,onAccountSettings:s,className:d=""})=>a.jsx("nav",{className:h("space-y-1",d),children:t.map(l=>a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>o(l.primaryEmail.address),className:h("w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",E.body.sm(),e===l.primaryEmail.address&&l.domainEmails.length===0?"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-gray-700"),style:l.customColor?{backgroundColor:l.customColor}:void 0,children:[a.jsxs("div",{className:"flex items-center flex-1 min-w-0",children:[a.jsx("span",{className:"truncate flex-1",children:an(l.walletAddress)}),a.jsx(Ut,{type:l.primaryEmail.type,addressType:l.addressType})]}),l.domainEmails.length>0&&a.jsx("div",{onClick:c=>{c.stopPropagation(),n(l.walletAddress)},className:"p-1 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors cursor-pointer",role:"button",tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),n(l.walletAddress))},children:a.jsx(v.ChevronRightIcon,{className:h("h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",r.includes(l.walletAddress)?"rotate-90":"rotate-0")})})]}),l.domainEmails.length>0&&a.jsx(on,{domainEmails:l.domainEmails,isExpanded:r.includes(l.walletAddress),selectedAccount:e,onAccountSelect:o,onAccountSettings:s})]},l.walletAddress))}),sn=V.Root,Ht=T.forwardRef(({className:t,...e},r)=>a.jsx(V.List,{ref:r,className:h(C.navigation.tabs.list(),t),...e}));Ht.displayName=V.List.displayName;const Gt=T.forwardRef(({className:t,...e},r)=>a.jsx(V.Trigger,{ref:r,className:h(C.navigation.tabs.trigger(),t),...e}));Gt.displayName=V.Trigger.displayName;const Kt=T.forwardRef(({className:t,...e},r)=>a.jsx(V.Content,{ref:r,className:h(C.navigation.tabs.content(),t),...e}));Kt.displayName=V.Content.displayName;const ln=({title:t,description:e,useCases:r,columns:o=3,className:n})=>{const s={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},d={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return a.jsx("section",{className:h("py-16",n),children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(t||e)&&a.jsxs("div",{className:"text-center mb-12",children:[t&&a.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:e})]}),a.jsx("div",{className:h("grid gap-8",d[o]),children:r.map((l,c)=>{const u=l.color?s[l.color]:s.blue;return a.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",children:[a.jsx("div",{className:h("flex-shrink-0 mb-4",u),children:l.icon}),a.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:l.title}),a.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:l.description}),l.examples&&l.examples.length>0&&a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Examples:"}),a.jsx("ul",{className:"space-y-1",children:l.examples.map((m,p)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:h("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",l.color?`bg-${l.color}-500`:"bg-blue-500")}),a.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:m})]},p))})]})]},c)})})]})})},dn={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},cn={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},gn={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},un={wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},mn={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},bn=({children:t,direction:e="row",align:r="start",justify:o="start",wrap:n="nowrap",gap:s="0",className:d})=>a.jsx("div",{className:h("flex",dn[e],cn[r],gn[o],un[n],mn[s],d),children:t}),pn=I.cva("min-h-screen flex flex-col",{variants:{background:{default:"bg-gray-50 dark:bg-gray-900",surface:"bg-white dark:bg-gray-800",transparent:"bg-transparent",gradient:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 dark:from-gray-900 dark:via-blue-900/20 dark:to-purple-900/20"},overflow:{visible:"overflow-visible",hidden:"overflow-hidden",scroll:"overflow-auto"}},defaultVariants:{background:"default",overflow:"visible"}}),hn=({children:t,background:e="default",overflow:r="visible",className:o})=>a.jsx("div",{className:h(pn({background:e,overflow:r}),o),children:t}),yn=I.cva("",{variants:{variant:{default:"",hero:"relative overflow-hidden",feature:"bg-white dark:bg-gray-800",cta:"relative overflow-hidden",testimonial:"bg-gray-50 dark:bg-gray-900",footer:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700 border-t"},spacing:{none:"",xs:"py-2",sm:"py-3",md:"py-4",lg:"py-6",xl:"py-8","2xl":"py-12","3xl":"py-16","4xl":"py-20","5xl":"py-24"},background:{none:"bg-transparent",default:"bg-gray-50 dark:bg-gray-900",surface:"bg-white dark:bg-gray-800",gradient:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 dark:from-gray-900 dark:via-blue-900/20 dark:to-purple-900/20","gradient-primary":"bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-blue-900/20 dark:to-indigo-900/20","gradient-secondary":"bg-gradient-to-br from-green-50 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20","gradient-vibrant":"bg-gradient-to-br from-blue-600 to-purple-600"}},defaultVariants:{variant:"default",spacing:"3xl",background:"none"}}),fn=({children:t,variant:e="default",spacing:r="3xl",background:o="none",className:n,as:s="section",id:d})=>b.createElement(s,{id:d,className:h(yn({variant:e,spacing:r,background:o}),n)},t),Yt=({icon:t,title:e="No data",description:r,action:o,className:n})=>a.jsxs("div",{className:h("flex flex-col items-center justify-center py-12 px-4 text-center",n),children:[t&&a.jsx("div",{className:"mb-4 text-gray-400 dark:text-gray-600",children:t}),a.jsx("h3",{className:h(E.heading.h3(),"mb-2"),children:e}),r&&a.jsx("p",{className:h(E.body.sm(),"text-gray-600 dark:text-gray-400 max-w-sm mb-6"),children:r}),o&&a.jsx("div",{className:"mt-4",children:o})]}),xn=({message:t="Loading...",size:e="default",fullScreen:r=!1,variant:o="default",className:n})=>{const d={small:{spinner:"small",text:"text-sm"},default:{spinner:"default",text:"text-base"},large:{spinner:"large",text:"text-lg"}}[e],l=r?"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-gray-900/80":"flex flex-col items-center justify-center p-8",c=a.jsxs("div",{className:h(l,n),children:[a.jsx(Ve,{size:d.spinner,variant:o,className:"mb-4"}),t&&a.jsx("p",{className:h(d.text,"text-gray-600 dark:text-gray-400 text-center max-w-sm"),children:t})]});return r?a.jsx("div",{className:"fixed inset-0 z-50 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm",children:a.jsxs("div",{className:"flex items-center justify-center min-h-full p-4",children:[a.jsx(Ve,{size:d.spinner,variant:o,className:"mb-4"}),t&&a.jsx("p",{className:"text-center text-gray-600 dark:text-gray-400 max-w-sm",children:t})]})}):c},kn=({title:t,subtext:e,className:r})=>a.jsx(Yt,{title:t,description:e,className:r}),Ue=({label:t,value:e,onChange:r,placeholder:o,required:n=!1,error:s,className:d=""})=>a.jsxs("div",{className:d,children:[a.jsxs(De,{htmlFor:t.toLowerCase(),className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:[t," ",n&&a.jsx("span",{className:"text-red-500",children:"*"})]}),a.jsx("input",{id:t.toLowerCase(),type:"email",value:e,onChange:l=>r(l.target.value),placeholder:o,className:`
|
|
32
|
+
`,Na(x))}}},[t]),a.jsx("div",{ref:p,className:`${b()} ${s}`,children:o})},Ea=({children:t,delay:e=0,className:r=""})=>a.jsx(_,{animation:"fade-in-up",delay:e,className:r,children:t}),Ia=({children:t,delay:e=0,className:r=""})=>a.jsx(_,{animation:"fade-in-scale",delay:e,className:r,children:t}),Pa=({children:t,className:e=""})=>a.jsx(_,{animation:"float",className:e,children:t}),gt=P.cva("min-h-[44px] touch-manipulation",{variants:{variant:{default:"",primary:"",secondary:"",outline:"",ghost:"",destructive:"","destructive-outline":"",success:"",link:"",gradient:"","gradient-secondary":"","gradient-success":"",wallet:"",connect:"",disconnect:""},size:{default:"",sm:"h-8",lg:"h-12",icon:"h-10 w-10 p-0"},animation:{none:"transition-colors duration-200",hover:"transition-all duration-200 hover:scale-105",lift:"transition-all duration-200 hover:scale-105",scale:"transition-transform duration-200 hover:scale-95",glow:"transition-all duration-200 hover:shadow-lg",shimmer:"transition-all duration-200",tap:"transition-transform duration-100 active:scale-95",connect:"transition-all duration-200 hover:scale-105",transaction:"transition-all duration-200 animate-pulse",disconnect:"transition-all duration-200 hover:opacity-80"}},defaultVariants:{variant:"default",size:"default",animation:"hover"}}),B=$.forwardRef(({className:t,variant:e,size:r,animation:n,asChild:o=!1,...s},c)=>{const l=o?Xt.Slot:"button",d=e||"default",g=r&&r!=="default"&&r!=="icon"?r:void 0,m=y=>y?{sm:"small",lg:"large",default:"default"}[y]||y:"default",b=(()=>{if(d.startsWith("gradient")){const y=d.replace("gradient-","").replace("gradient","primary");return k.button.gradient[y]?.()||k.button.primary.default()}else{if(["wallet","connect","disconnect"].includes(d))return k.button.web3[d]?.()||k.button.primary.default();{const y=m(g);return k.button[d]?.[y]?.()||k.button.primary.default()}}})();return a.jsx(l,{className:f(gt({size:r,animation:n}),b,t),ref:c,...s})});B.displayName="Button";const Aa={default:"bg-white dark:bg-gray-800",bordered:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700",elevated:"bg-white dark:bg-gray-800 shadow-md",info:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 text-blue-900 dark:text-blue-300",success:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 text-green-900 dark:text-green-300",warning:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 text-yellow-900 dark:text-yellow-300",error:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-900 dark:text-red-300",callout:"bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border border-blue-200 dark:border-blue-800"},$a={none:"",sm:"p-3",md:"p-6",lg:"p-8"},Ne=({variant:t="elevated",padding:e="md",icon:r,onClose:n,className:o,children:s,...c})=>{const d=["info","success","warning","error"].includes(t)&&(r||n);return a.jsx("div",{className:f("rounded-lg",Aa[t],$a[e],o),...c,children:d?a.jsxs("div",{className:"flex items-start gap-3",children:[r&&a.jsx("div",{className:"flex-shrink-0 text-lg",children:r}),a.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&a.jsx("button",{onClick:n,className:"flex-shrink-0 text-current hover:opacity-70 transition-opacity","aria-label":"Close",children:a.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}):s})},Ta=({title:t,description:e,className:r,children:n,...o})=>a.jsxs("div",{className:f("space-y-1.5",r),...o,children:[t&&a.jsx("h3",{className:E.heading.h4(),children:t}),e&&a.jsx("p",{className:E.body.sm(),children:e}),n]}),La=({className:t,children:e,...r})=>a.jsx("div",{className:f("",t),...r,children:e}),Ma=({className:t,children:e,...r})=>a.jsx("div",{className:f("flex items-center pt-4",t),...r,children:e}),za=({title:t,children:e,variant:r="info",size:n="default",className:o})=>{const s={sm:"sm",default:"md",lg:"lg"},c=r==="neutral"?"bordered":r;return a.jsxs(Ne,{variant:c,padding:s[n],className:o,children:[t&&a.jsx("h3",{className:f("font-semibold mb-2",n==="sm"?"text-base":n==="lg"?"text-xl":"text-lg"),children:t}),e]})},Oa=({title:t,icon:e,children:r,variant:n="gradient",size:o="default",centered:s=!1,className:c})=>{const l={sm:"sm",default:"md",lg:"lg"},d=n==="gradient"||n==="neutral"?"callout":n;return a.jsx(Ne,{variant:d,padding:l[o],className:c,children:a.jsxs("div",{className:f("space-y-4",s&&"text-center"),children:[e&&a.jsx("div",{className:f("font-bold",o==="sm"?"text-2xl":o==="lg"?"text-5xl":"text-4xl",s?"text-center":"text-left"),children:e}),t&&a.jsx("h3",{className:f("font-bold mb-4",o==="sm"?"text-lg":o==="lg"?"text-3xl":"text-2xl"),children:t}),a.jsx("div",{className:f("text-gray-600 dark:text-gray-400",o==="sm"?"text-sm":o==="lg"?"text-lg":"text-base"),children:r})]})})},Wa=P.cva("grid gap-8",{variants:{layout:{grid:"grid-cols-1 md:grid-cols-2",stacked:"grid-cols-1 space-y-8",cards:"grid-cols-1 md:grid-cols-2 gap-6"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{layout:"grid",spacing:"md"}}),ja=P.cva("rounded-xl p-6 transition-all duration-300",{variants:{variant:{traditional:"bg-red-50 dark:bg-red-900/20 border-2 border-red-100 dark:border-red-800/30 hover:border-red-200 dark:hover:border-red-700/50",web3:"bg-green-50 dark:bg-green-900/20 border-2 border-green-100 dark:border-green-800/30 hover:border-green-200 dark:hover:border-green-700/50",neutral:"bg-gray-50 dark:bg-gray-800/50 border-2 border-gray-100 dark:border-gray-700/30 hover:border-gray-200 dark:hover:border-gray-600/50",elevated:"bg-white dark:bg-gray-800 shadow-lg hover:shadow-xl border border-gray-200 dark:border-gray-700"},animation:{none:"",hover:"hover:transform hover:scale-[1.02]",float:"hover:-translate-y-1"}},defaultVariants:{variant:"traditional",animation:"hover"}}),Ba=P.cva("text-lg font-bold mb-4 flex items-center gap-3",{variants:{variant:{traditional:"text-red-600 dark:text-red-400",web3:"text-green-600 dark:text-green-400",neutral:"text-gray-900 dark:text-white",elevated:"text-gray-900 dark:text-white"}},defaultVariants:{variant:"traditional"}}),Da={traditional:"❌",web3:"✅",neutral:"ℹ️",elevated:"⭐"},Fa={red:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300",green:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",blue:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",gray:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},_a=({className:t,layout:e="grid",spacing:r="md",title:n,subtitle:o,traditional:s,web3:c,cardAnimation:l="hover",animate:d=!0,animationDelay:g=0,traditionalIcon:m,web3Icon:p})=>{const b=(x,v)=>{const N=a.jsxs("div",{className:f(ja({variant:x.variant,animation:l})),children:[a.jsxs("div",{className:f(Ba({variant:x.variant})),children:[a.jsx("span",{className:"text-2xl",children:x.icon||(v===0?m:p)||Da[x.variant]}),a.jsx("div",{className:"flex-1",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:x.title}),x.badge&&a.jsx("span",{className:f("text-xs font-medium px-2 py-1 rounded-full",Fa[x.badge.color||"gray"]),children:x.badge.text})]})})]}),a.jsx("ul",{className:"space-y-3",children:x.items.map((C,S)=>a.jsxs("li",{className:f("flex items-start gap-3 text-sm leading-relaxed",C.highlight&&"font-medium"),children:[C.icon&&a.jsx("span",{className:"flex-shrink-0 mt-0.5 text-base",children:C.icon}),a.jsxs("div",{className:"flex-1",children:[a.jsx("span",{className:f(x.variant==="traditional"||x.variant==="web3"?"text-gray-700 dark:text-gray-300":"text-gray-600 dark:text-gray-400"),children:C.text}),C.subtext&&a.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:C.subtext})]})]},S))})]});return d?a.jsx(_,{animation:"fade-in-up",delay:g+v*200,children:N},x.title):a.jsx("div",{children:N},x.title)},y=a.jsxs("div",{className:f("space-y-8",t),children:[(n||o)&&a.jsxs("div",{className:"text-center space-y-4",children:[n&&a.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white",children:n}),o&&a.jsx("p",{className:"text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:o})]}),a.jsxs("div",{className:f(Wa({layout:e,spacing:r})),children:[b(s,0),b(c,1)]})]});return d?a.jsx(_,{animation:"fade-in-up",delay:g,children:y}):y},Ee=(t,e,r,n)=>({title:t,variant:r,items:e.map(o=>typeof o=="string"?{text:o}:o),...n}),qa=t=>{const e=[{text:"Create account with email/password",icon:"🔑"},{text:"Remember multiple passwords",icon:"🧠"},{text:"Verify email address",icon:"📧"},{text:"Risk of password theft",icon:"⚠️"},{text:"Data stored on company servers",icon:"🏢"},{text:"Account can be locked/suspended",icon:"🔒"}],r=[{text:"Connect your wallet",icon:"🔗"},{text:"No passwords needed",icon:"🚫"},{text:"Instant authentication",icon:"⚡"},{text:"Cryptographically secure",icon:"🔐"},{text:"You own your data",icon:"👑"},{text:"Censorship resistant",icon:"🛡️"}];return{traditional:Ee(t?.traditionalTitle||"Traditional Email",t?.traditionalItems||e,"traditional",{badge:{text:t?.traditionalBadge||"Old Way",color:"red"}}),web3:Ee(t?.web3Title||"Web3 Email",t?.web3Items||r,"web3",{badge:{text:t?.web3Badge||"New Way",color:"green"}})}},Ha=P.cva("mx-auto px-4 sm:px-6",{variants:{size:{sm:"max-w-2xl",md:"max-w-4xl",lg:"max-w-6xl",xl:"max-w-7xl lg:px-8",full:"max-w-full",prose:"max-w-prose"},spacing:{none:"",xs:"py-2",sm:"py-3",md:"py-4",lg:"py-6",xl:"py-8","2xl":"py-12","3xl":"py-16"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{size:"xl",spacing:"md",align:"left"}}),Va=({children:t,size:e="xl",spacing:r="md",align:n="left",className:o,as:s="div"})=>h.createElement(s,{className:f(Ha({size:e,spacing:r,align:n}),o)},t),Ua=({trigger:t,items:e,align:r="right",className:n="",variant:o="default"})=>{const[s,c]=h.useState(!1),l=h.useRef(null);lt(l,()=>c(!1));const d=p=>{p.disabled||(p.onClick(),c(!1))},g=r==="left"?k.overlays.dropdown.menuRight():k.overlays.dropdown.menuLeft(),m=o==="bordered"?k.overlays.dropdown.triggerBordered():k.overlays.dropdown.trigger();return a.jsxs("div",{className:`${k.overlays.dropdown.container()} ${n}`,ref:l,children:[a.jsx("div",{className:m,onClick:()=>c(!s),children:t}),s&&a.jsx("div",{className:`${k.overlays.dropdown.menu()} ${g} ${k.overlays.dropdown.menuBottom()}`,children:a.jsx("div",{className:k.overlays.dropdown.itemContainer(),children:e.map(p=>p.separator?a.jsx("div",{className:"my-1 h-px bg-gray-200 dark:bg-gray-700",role:"separator"},p.id):a.jsxs("button",{onClick:()=>d(p),disabled:p.disabled,className:p.disabled?k.overlays.dropdown.itemDisabled():k.overlays.dropdown.item(),children:[p.icon&&a.jsx(p.icon,{className:k.overlays.dropdown.itemIcon()}),a.jsx("span",{children:p.label})]},p.id))})})]})},Ga=({icon:t,title:e,description:r,benefits:n,metrics:o,color:s="blue",isHighlight:c=!1,learnMoreUrl:l,cta:d,onClick:g,interactive:m=!1,borderColor:p=!1,className:b})=>{const y={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400",red:"text-red-600 dark:text-red-400",indigo:"text-indigo-600 dark:text-indigo-400",cyan:"text-cyan-600 dark:text-cyan-400",emerald:"text-emerald-600 dark:text-emerald-400"},x={green:"border-l-4 border-green-500",blue:"border-l-4 border-blue-500",purple:"border-l-4 border-purple-500",orange:"border-l-4 border-orange-500",red:"border-l-4 border-red-500",indigo:"border-l-4 border-indigo-500",cyan:"border-l-4 border-cyan-500",emerald:"border-l-4 border-emerald-500",pink:"border-l-4 border-pink-500",gray:"border-l-4 border-gray-500"},v={green:"bg-green-100 dark:bg-green-900/20",blue:"bg-blue-100 dark:bg-blue-900/20",purple:"bg-purple-100 dark:bg-purple-900/20",orange:"bg-orange-100 dark:bg-orange-900/20",red:"bg-red-100 dark:bg-red-900/20",indigo:"bg-indigo-100 dark:bg-indigo-900/20",cyan:"bg-cyan-100 dark:bg-cyan-900/20",emerald:"bg-emerald-100 dark:bg-emerald-900/20",pink:"bg-pink-100 dark:bg-pink-900/20",gray:"bg-gray-100 dark:bg-gray-900/20"},N=y[s],C=typeof t=="string",S=()=>a.jsxs(a.Fragment,{children:[C?a.jsx("div",{className:"text-4xl mb-4",children:t}):p?a.jsx("div",{className:f("w-12 h-12","rounded-lg","flex items-center justify-center","mb-4",v[s],N),children:t}):a.jsx("div",{className:f("flex-shrink-0 mb-4",N),children:t}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:e}),a.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4 leading-relaxed",children:r}),d&&a.jsx("div",{className:"mt-3 mb-4",children:d}),n&&n.length>0&&a.jsx("ul",{className:"space-y-2 mb-4",children:n.map((L,ne)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:f("w-2 h-2 rounded-full mt-2 mr-3 flex-shrink-0",`bg-${s}-500`)}),a.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:L})]},ne))}),o&&Object.keys(o).length>0&&a.jsx("div",{className:"grid grid-cols-2 gap-4 mt-4",children:Object.entries(o).map(([L,ne],ve)=>a.jsxs("div",{className:"text-center p-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:[a.jsx("div",{className:f("text-lg font-bold",N),children:ne}),a.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:L})]},ve))})]})]}),I=f("p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-200",p&&x[s],(m||g)&&"cursor-pointer hover:scale-[1.02]",c?"bg-gradient-to-br from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border-blue-200 dark:border-blue-800 border":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700 border",b),T=L=>{g&&("key"in L?(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),g()):g())};return l?a.jsx("a",{href:l,className:f(I,"block group"),onClick:g?L=>{L.preventDefault(),T(L)}:void 0,children:a.jsx(S,{})}):g?a.jsx("div",{className:I,onClick:T,onKeyDown:T,role:"button",tabIndex:0,"aria-label":e,children:a.jsx(S,{})}):a.jsx("div",{className:I,children:a.jsx(S,{})})},Ka=P.cva("grid gap-8",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{columns:3,spacing:"md"}}),Qa=P.cva("group transition-all duration-300",{variants:{variant:{default:"text-center",left:"text-left",hoverable:"text-center hover:transform hover:scale-105 cursor-pointer",card:"bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-lg hover:shadow-xl text-center",minimal:"text-center space-y-4"},animation:{none:"",hover:"hover:transform hover:scale-105",float:"hover:-translate-y-2"}},defaultVariants:{variant:"default",animation:"hover"}}),Ya=P.cva("flex items-center justify-center rounded-2xl mb-6 transition-all duration-300",{variants:{size:{sm:"w-16 h-16",md:"w-20 h-20",lg:"w-24 h-24"},style:{gradient:"bg-gradient-to-br from-blue-100 to-blue-200 dark:from-blue-900/30 dark:to-blue-800/30 group-hover:from-blue-200 group-hover:to-blue-300 dark:group-hover:from-blue-800/40 dark:group-hover:to-blue-700/40",solid:"bg-blue-100 dark:bg-blue-900/30 group-hover:bg-blue-200 dark:group-hover:bg-blue-800/40",outline:"border-2 border-blue-200 dark:border-blue-800 group-hover:border-blue-300 dark:group-hover:border-blue-700",colorful:"group-hover:scale-110"},position:{center:"mx-auto",left:"",right:"ml-auto"}},defaultVariants:{size:"md",style:"gradient",position:"center"}}),Za={success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",info:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},Ja=({className:t,features:e,columns:r=3,spacing:n="md",cardVariant:o="default",cardAnimation:s="hover",iconSize:c="md",iconStyle:l="gradient",iconPosition:d="center",titleClass:g,descriptionClass:m,animate:p=!0,animationDelay:b=0,staggerDelay:y=100,onFeatureClick:x,defaultLinkText:v="Learn more"})=>{const N=(S,I)=>{if(l==="colorful"&&S.gradient)return{background:`linear-gradient(135deg, ${S.gradient.from}, ${S.gradient.to})`};if(l==="colorful"){const T=[{from:"#3B82F6",to:"#1D4ED8"},{from:"#10B981",to:"#059669"},{from:"#8B5CF6",to:"#7C3AED"},{from:"#F59E0B",to:"#D97706"},{from:"#EF4444",to:"#DC2626"},{from:"#06B6D4",to:"#0891B2"}],L=T[I%T.length];return{background:`linear-gradient(135deg, ${L.from}, ${L.to})`}}},C=(S,I)=>{const T=a.jsxs("div",{className:f(Qa({variant:o,animation:s})),onClick:()=>x?.(S),role:x?"button":void 0,tabIndex:x?0:void 0,children:[S.badge&&a.jsx("div",{className:"mb-4",children:a.jsx("span",{className:f("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",Za[S.badge.variant||"default"]),children:S.badge.text})}),a.jsx("div",{className:f(Ya({size:c,style:l,position:d})),style:N(S,I),children:a.jsx("div",{className:f("flex items-center justify-center",l==="colorful"?"text-white":"text-blue-600 dark:text-blue-400"),children:S.icon})}),a.jsx("h3",{className:f("text-xl font-bold text-gray-900 dark:text-white mb-4",g),children:S.title}),a.jsx("div",{className:f("text-gray-600 dark:text-gray-300 leading-relaxed",m),children:S.description}),S.link&&a.jsx("div",{className:"mt-6",children:a.jsxs("a",{href:S.link.href,className:"inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors duration-200",children:[S.link.text||v,a.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]});return p?a.jsx(_,{animation:"fade-in-up",delay:b+I*y,children:T},S.id||I):a.jsx("div",{children:T},S.id||I)};return a.jsx("div",{className:f(Ka({columns:r,spacing:n}),t),children:e.map(C)})},Ie=(t,e,r,n)=>({icon:t,title:e,description:r,...n}),Xa=t=>[Ie(a.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),t?.passwordlessTitle||"Passwordless Security",t?.passwordlessDescription||"Authenticate using your Web3 wallet - no passwords to remember or lose."),Ie(a.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.40A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),t?.encryptionTitle||"End-to-End Encryption",t?.encryptionDescription||"Your emails are encrypted and only you can read them.")],Ra=({badgeIcon:t,badgeText:e,badgeColor:r="blue",title:n,subtitle:o,description:s,primaryButton:c,secondaryButton:l,className:d,children:g})=>{const p={blue:"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",green:"bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",purple:"bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",orange:"bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",pink:"bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",gray:"bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"}[r];return a.jsx("section",{className:f("py-20",d),children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[a.jsxs("div",{className:f("inline-flex items-center border px-6 py-3 rounded-full mb-6",p),children:[t&&a.jsx("span",{className:"mr-3",children:t}),a.jsx("span",{className:"font-semibold",children:e})]}),a.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6",children:[typeof n=="string"?a.jsx("span",{dangerouslySetInnerHTML:{__html:n}}):n,o&&a.jsx("span",{className:"text-blue-600 dark:text-blue-400 block",children:o})]}),a.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed",children:s}),(c||l)&&a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[c&&a.jsx(B,{size:"lg",...c,className:f("px-8 py-3",c.className),children:c.text}),l&&a.jsx(B,{variant:"outline",size:"lg",...l,className:f("px-8 py-3",l.className),children:l.text})]}),g]})})},ut=$.forwardRef(({className:t,type:e,...r},n)=>a.jsx("input",{type:e,className:f(k.input.default(),t),ref:n,...r}));ut.displayName="Input";const en=P.cva(`${E.label.default()} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),Pe=$.forwardRef(({className:t,...e},r)=>a.jsx(Qe.Root,{ref:r,className:f(en(),t),...e}));Pe.displayName=Qe.Root.displayName;const tn=({title:t,description:e,metrics:r,columns:n=3,className:o})=>{const s={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},c={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return a.jsx("section",{className:f("py-16",o),children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(t||e)&&a.jsxs("div",{className:"text-center mb-12",children:[t&&a.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:e})]}),a.jsx("div",{className:f("grid gap-8",c[n]),children:r.map((l,d)=>{const g=l.color?s[l.color]:s.blue;return a.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 text-center hover:shadow-lg transition-shadow",children:[l.icon&&a.jsx("div",{className:f("flex justify-center mb-4",g),children:l.icon}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:f("text-3xl font-bold",g),children:l.value}),a.jsx("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:l.label}),l.trend&&a.jsxs("div",{className:f("text-sm font-semibold",l.trend.direction==="up"?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"),children:[l.trend.direction==="up"?"↑":"↓"," ",l.trend.value]})]})]},d)})})]})})},rn=({title:t,description:e,steps:r,orientation:n="vertical",color:o="blue",className:s})=>{const l={blue:{bg:"bg-blue-600",text:"text-blue-600 dark:text-blue-400",border:"border-blue-200 dark:border-blue-800"},green:{bg:"bg-green-600",text:"text-green-600 dark:text-green-400",border:"border-green-200 dark:border-green-800"},purple:{bg:"bg-purple-600",text:"text-purple-600 dark:text-purple-400",border:"border-purple-200 dark:border-purple-800"},orange:{bg:"bg-orange-600",text:"text-orange-600 dark:text-orange-400",border:"border-orange-200 dark:border-orange-800"},pink:{bg:"bg-pink-600",text:"text-pink-600 dark:text-pink-400",border:"border-pink-200 dark:border-pink-800"},gray:{bg:"bg-gray-600",text:"text-gray-600 dark:text-gray-400",border:"border-gray-200 dark:border-gray-800"}}[o];return a.jsx("section",{className:f("py-16",s),children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(t||e)&&a.jsxs("div",{className:"text-center mb-12",children:[t&&a.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:e})]}),a.jsx("div",{className:f(n==="horizontal"?"flex flex-col lg:flex-row justify-center items-center lg:items-start space-y-8 lg:space-y-0 lg:space-x-8":"space-y-8 max-w-4xl mx-auto"),children:r.map((d,g)=>a.jsxs("div",{className:f("relative",n==="horizontal"?"flex-1 text-center lg:text-left":"flex items-start"),children:[a.jsx("div",{className:f("flex-shrink-0 flex items-center justify-center rounded-full text-white font-bold",l.bg,n==="horizontal"?"w-12 h-12 mx-auto lg:mx-0 mb-4":"w-10 h-10 mr-4 mt-1"),children:d.icon?d.icon:d.step}),g<r.length-1&&n==="vertical"&&a.jsx("div",{className:f("absolute left-5 top-12 w-px h-8 -ml-px",l.bg.replace("bg-","bg-").replace("-600","-200"),"dark:"+l.bg.replace("bg-","bg-").replace("-600","-800"))}),a.jsxs("div",{className:f(n==="horizontal"?"flex-1":"flex-1 min-w-0"),children:[a.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:d.title}),a.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-3",children:d.description}),d.details&&d.details.length>0&&a.jsx("ul",{className:"space-y-1",children:d.details.map((m,p)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:f("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",l.bg)}),a.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:m})]},p))})]})]},g))})]})})},Ae=A.Root,an=A.Group,mt=A.Value,ue=$.forwardRef(({className:t,children:e,...r},n)=>a.jsxs(A.Trigger,{ref:n,className:f("flex h-9 w-full items-center justify-between rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 px-3 py-2 text-sm 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 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[e,a.jsx(A.Icon,{asChild:!0,children:a.jsx(ie.ChevronDown,{className:"h-4 w-4 opacity-50 ml-2 flex-shrink-0"})})]}));ue.displayName=A.Trigger.displayName;const $e=$.forwardRef(({className:t,...e},r)=>a.jsx(A.ScrollUpButton,{ref:r,className:f("flex cursor-default items-center justify-center py-1",t),...e,children:a.jsx(ie.ChevronUp,{className:"h-4 w-4"})}));$e.displayName=A.ScrollUpButton.displayName;const Te=$.forwardRef(({className:t,...e},r)=>a.jsx(A.ScrollDownButton,{ref:r,className:f("flex cursor-default items-center justify-center py-1",t),...e,children:a.jsx(ie.ChevronDown,{className:"h-4 w-4"})}));Te.displayName=A.ScrollDownButton.displayName;const me=$.forwardRef(({className:t,children:e,position:r="popper",...n},o)=>a.jsx(A.Portal,{children:a.jsxs(A.Content,{ref:o,className:f(k.overlays.dropdown.menu(),"z-[1000000] max-h-96 min-w-[8rem] overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[a.jsx($e,{}),a.jsx(A.Viewport,{className:f(k.overlays.dropdown.itemContainer(),r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),a.jsx(Te,{})]})}));me.displayName=A.Content.displayName;const ht=$.forwardRef(({className:t,...e},r)=>a.jsx(A.Label,{ref:r,className:f(k.overlays.dropdown.header(),"py-1.5",t),...e}));ht.displayName=A.Label.displayName;const he=$.forwardRef(({className:t,children:e,...r},n)=>a.jsxs(A.Item,{ref:n,className:f(k.overlays.dropdown.item(),"relative select-none justify-between pr-8 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[a.jsx(A.ItemText,{children:e}),a.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(A.ItemIndicator,{children:a.jsx(ie.Check,{className:"h-4 w-4"})})})]}));he.displayName=A.Item.displayName;const pt=$.forwardRef(({className:t,...e},r)=>a.jsx(A.Separator,{ref:r,className:f("my-1 h-px bg-gray-200 dark:bg-gray-700",t),...e}));pt.displayName=A.Separator.displayName;const Le=({size:t="default",variant:e="default",className:r,ariaLabel:n="Loading",loadingText:o="Loading..."})=>{const s=()=>{const c={small:"w-4 h-4",default:"w-6 h-6",large:"w-8 h-8",extraLarge:"w-16 h-16 border-4"},l={default:"border-gray-300 border-t-blue-600",white:"border-white/30 border-t-white",success:"border-gray-300 border-t-green-600",warning:"border-gray-300 border-t-orange-600",error:"border-gray-300 border-t-red-600"};return`animate-spin rounded-full border-2 ${c[t]} ${l[e]}`};return a.jsx("div",{className:f(s(),r),role:"status","aria-label":n,children:a.jsx("span",{className:"sr-only",children:o})})},ft=$.forwardRef(({className:t,...e},r)=>a.jsx(we.Root,{className:f("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-600 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-gray-700",t),...e,ref:r,children:a.jsx(we.Thumb,{className:f("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ft.displayName=we.Root.displayName;const nn=({title:t,onAdd:e,addButtonTooltip:r,loading:n,className:o=""})=>a.jsx("div",{className:`p-4 border-b border-gray-200 dark:border-gray-700 ${o}`,children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:t}),a.jsxs("div",{className:"flex items-center space-x-2",children:[n&&a.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),e&&a.jsx("button",{onClick:e,className:"p-1 rounded hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",title:r,"aria-label":r||"Add",children:a.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})})]})]})}),on=({subsections:t,isExpanded:e,selectedSubsection:r,parentSectionId:n,onSubsectionSelect:o})=>{const s=h.useRef(null),[c,l]=h.useState(void 0);return h.useEffect(()=>{if(s.current){const d=s.current.scrollHeight;l(e?d+8:0)}},[e,t]),a.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:c!==void 0?`${c}px`:"auto"},children:a.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:t.map(d=>a.jsx("button",{onClick:()=>o?.(d.id,n),className:`block w-full text-left px-3 py-2 rounded-md text-sm transition-all duration-200 hover:scale-[1.02] ${r===d.id?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-800 dark:hover:text-gray-200"}`,children:d.title},d.id))})})},sn=({sections:t,selectedSection:e,selectedSubsection:r,expandedSections:n,onSectionSelect:o,onSubsectionSelect:s,onToggleSection:c,className:l=""})=>a.jsx("nav",{className:`space-y-2 ${l}`,children:t.map(d=>a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("button",{onClick:()=>o(d.id),className:`flex-1 text-left px-3 py-2 rounded-md text-sm font-medium transition-all duration-200 hover:scale-[1.02] ${e===d.id&&!r?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-gray-100"}`,children:d.title}),d.subsections&&d.subsections.length>0&&a.jsx("button",{onClick:()=>c(d.id),className:"p-1 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200",children:a.jsx(w.ChevronRightIcon,{className:`h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out ${n.includes(d.id)?"rotate-90":"rotate-0"}`})})]}),d.subsections&&a.jsx(on,{subsections:d.subsections,isExpanded:n.includes(d.id),selectedSubsection:r,parentSectionId:d.id,onSubsectionSelect:s})]},d.id))}),ln=t=>{switch(t){case"verified":case"success":return"bg-green-500";case"connected":case"warning":return"bg-amber-500";case"disconnected":case"error":return"bg-red-500";case"pending":return"bg-blue-500";default:return"bg-gray-500"}},cn=t=>{switch(t){case"sm":return"w-1.5 h-1.5";case"lg":return"w-3 h-3";default:return"w-2 h-2"}},dn=({status:t,label:e,showDot:r=!0,size:n="md"})=>{const s=e||{verified:"Verified",connected:"Connected",disconnected:"Disconnected",pending:"Pending",error:"Error",success:"Success",warning:"Warning"}[t],l=((m,p)=>{const b={sm:"small",md:"default",lg:"large"},x={verified:"success",success:"success",connected:"warning",warning:"warning",disconnected:"error",error:"error",pending:"primary"}[m]||"default",v=b[p];return v==="default"?k.badge[x]():k.badge[v](x)})(t,n),d=ln(t),g=cn(n);return a.jsxs("span",{className:l,children:[r&&a.jsx("span",{className:`inline-block ${g} rounded-full ${d} mr-1`}),s]})},bt=({chainType:t,size:e="md"})=>{if(t==="unknown")return null;const r=t==="solana"?"SOL":"ETH",o={sm:"small",md:"default",lg:"large"}[e],s=()=>{const c=t==="solana"?"solana":"ethereum";return o==="default"?k.badge[c]():k.badge[o](c)};return a.jsx("span",{className:s(),children:r})},gn=t=>t?t.length<=10?t:`${t.slice(0,6)}...${t.slice(-4)}`:"",yt=({type:t,addressType:e})=>{if(t==="primary")return a.jsx(bt,{chainType:e==="solana"?"solana":"evm",size:"sm"});const r=()=>t.toUpperCase(),n=()=>{switch(t){case"ens":return"bg-green-50 text-green-700 border-green-200 dark:bg-green-900/10 dark:text-green-300 dark:border-green-800";case"sns":return"bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-900/10 dark:text-orange-300 dark:border-orange-800";default:return"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900/10 dark:text-gray-300 dark:border-gray-800"}};return a.jsx("span",{className:f("inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium border",n()),children:r()})},un=({domainEmails:t,isExpanded:e,selectedAccount:r,onAccountSelect:n,onAccountSettings:o})=>{const s=h.useRef(null),[c,l]=h.useState(void 0);return h.useEffect(()=>{if(s.current){const d=s.current.scrollHeight;l(e?d+8:0)}},[e,t]),a.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:c!==void 0?`${c}px`:"auto"},children:a.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:t.map(d=>a.jsxs("button",{onClick:()=>n(d.address),className:f("w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",E.body.sm(),r===d.address?"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-gray-700"),children:[a.jsx("span",{className:"truncate flex-1",children:d.name}),a.jsx(yt,{type:d.type,addressType:d.addressType})]},d.address))})})},mn=({walletGroups:t,selectedAccount:e,expandedWallets:r,onAccountSelect:n,onToggleWallet:o,onAccountSettings:s,className:c=""})=>a.jsx("nav",{className:f("space-y-1",c),children:t.map(l=>a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>n(l.primaryEmail.address),className:f("w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",E.body.sm(),e===l.primaryEmail.address&&l.domainEmails.length===0?"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-gray-700"),style:l.customColor?{backgroundColor:l.customColor}:void 0,children:[a.jsxs("div",{className:"flex items-center flex-1 min-w-0",children:[a.jsx("span",{className:"truncate flex-1",children:gn(l.walletAddress)}),a.jsx(yt,{type:l.primaryEmail.type,addressType:l.addressType})]}),l.domainEmails.length>0&&a.jsx("div",{onClick:d=>{d.stopPropagation(),o(l.walletAddress)},className:"p-1 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors cursor-pointer",role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),d.stopPropagation(),o(l.walletAddress))},children:a.jsx(w.ChevronRightIcon,{className:f("h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",r.includes(l.walletAddress)?"rotate-90":"rotate-0")})})]}),l.domainEmails.length>0&&a.jsx(un,{domainEmails:l.domainEmails,isExpanded:r.includes(l.walletAddress),selectedAccount:e,onAccountSelect:n,onAccountSettings:s})]},l.walletAddress))}),hn=D.Root,xt=$.forwardRef(({className:t,...e},r)=>a.jsx(D.List,{ref:r,className:f(k.navigation.tabs.list(),t),...e}));xt.displayName=D.List.displayName;const vt=$.forwardRef(({className:t,...e},r)=>a.jsx(D.Trigger,{ref:r,className:f(k.navigation.tabs.trigger(),t),...e}));vt.displayName=D.Trigger.displayName;const wt=$.forwardRef(({className:t,...e},r)=>a.jsx(D.Content,{ref:r,className:f(k.navigation.tabs.content(),t),...e}));wt.displayName=D.Content.displayName;const pn=({title:t,description:e,useCases:r,columns:n=3,className:o})=>{const s={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},c={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return a.jsx("section",{className:f(ya.section.gradient,o),children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(t||e)&&a.jsxs("div",{className:"text-center mb-12",children:[t&&a.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:e})]}),a.jsx("div",{className:f("grid gap-8",c[n]),children:r.map((l,d)=>{const g=l.color?s[l.color]:s.blue;return a.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",children:[a.jsx("div",{className:f("flex-shrink-0 mb-4",g),children:l.icon}),a.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:l.title}),a.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:l.description}),l.examples&&l.examples.length>0&&a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Examples:"}),a.jsx("ul",{className:"space-y-1",children:l.examples.map((m,p)=>a.jsxs("li",{className:"flex items-start",children:[a.jsx("div",{className:f("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",l.color?`bg-${l.color}-500`:"bg-blue-500")}),a.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:m})]},p))})]})]},d)})})]})})},fn={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},bn={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},yn={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},xn={wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},vn={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},wn=({children:t,direction:e="row",align:r="start",justify:n="start",wrap:o="nowrap",gap:s="0",className:c})=>a.jsx("div",{className:f("flex",fn[e],bn[r],yn[n],xn[o],vn[s],c),children:t}),kn=P.cva("min-h-screen flex flex-col",{variants:{background:{default:"bg-gray-50 dark:bg-gray-900",surface:"bg-white dark:bg-gray-800",transparent:"bg-transparent",gradient:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 dark:from-gray-900 dark:via-blue-900/20 dark:to-purple-900/20"},overflow:{visible:"overflow-visible",hidden:"overflow-hidden",scroll:"overflow-auto"}},defaultVariants:{background:"default",overflow:"visible"}}),Cn=({children:t,background:e="default",overflow:r="visible",className:n})=>a.jsx("div",{className:f(kn({background:e,overflow:r}),n),children:t}),Sn=P.cva("",{variants:{variant:{default:"",hero:"relative overflow-hidden",feature:"bg-white dark:bg-gray-800",cta:"relative overflow-hidden",testimonial:"bg-gray-50 dark:bg-gray-900",footer:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700 border-t"},spacing:{none:"",xs:"py-2",sm:"py-3",md:"py-4",lg:"py-6",xl:"py-8","2xl":"py-12","3xl":"py-16","4xl":"py-20","5xl":"py-24"},background:{none:"bg-transparent",default:"bg-gray-50 dark:bg-gray-900",surface:"bg-white dark:bg-gray-800",gradient:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 dark:from-gray-900 dark:via-blue-900/50 dark:to-purple-900/50","gradient-primary":"bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-blue-900/50 dark:to-indigo-900/50","gradient-secondary":"bg-gradient-to-br from-green-50 to-blue-100 dark:from-green-900/50 dark:to-blue-900/50","gradient-tertiary":"bg-gradient-to-r from-emerald-50 to-teal-50 dark:from-gray-800 dark:to-gray-900","gradient-vibrant":"bg-gradient-to-br from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700"}},defaultVariants:{variant:"default",spacing:"3xl",background:"none"}}),Nn=({children:t,variant:e="default",spacing:r="3xl",background:n="none",className:o,as:s="section",id:c})=>h.createElement(s,{id:c,className:f(Sn({variant:e,spacing:r,background:n}),o)},t),kt=({icon:t,title:e="No data",description:r,action:n,className:o})=>a.jsxs("div",{className:f("flex flex-col items-center justify-center py-12 px-4 text-center",o),children:[t&&a.jsx("div",{className:"mb-4 text-gray-400 dark:text-gray-600",children:t}),a.jsx("h3",{className:f(E.heading.h3(),"mb-2"),children:e}),r&&a.jsx("p",{className:f(E.body.sm(),"text-gray-600 dark:text-gray-400 max-w-sm mb-6"),children:r}),n&&a.jsx("div",{className:"mt-4",children:n})]}),En=({message:t="Loading...",size:e="default",fullScreen:r=!1,variant:n="default",className:o})=>{const c={small:{spinner:"small",text:"text-sm"},default:{spinner:"default",text:"text-base"},large:{spinner:"large",text:"text-lg"}}[e],l=r?"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-gray-900/80":"flex flex-col items-center justify-center p-8",d=a.jsxs("div",{className:f(l,o),children:[a.jsx(Le,{size:c.spinner,variant:n,className:"mb-4"}),t&&a.jsx("p",{className:f(c.text,"text-gray-600 dark:text-gray-400 text-center max-w-sm"),children:t})]});return r?a.jsx("div",{className:"fixed inset-0 z-50 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm",children:a.jsxs("div",{className:"flex items-center justify-center min-h-full p-4",children:[a.jsx(Le,{size:c.spinner,variant:n,className:"mb-4"}),t&&a.jsx("p",{className:"text-center text-gray-600 dark:text-gray-400 max-w-sm",children:t})]})}):d},In=({title:t,subtext:e,className:r})=>a.jsx(kt,{title:t,description:e,className:r}),Me=({label:t,value:e,onChange:r,placeholder:n,required:o=!1,error:s,className:c=""})=>a.jsxs("div",{className:c,children:[a.jsxs(Pe,{htmlFor:t.toLowerCase(),className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:[t," ",o&&a.jsx("span",{className:"text-red-500",children:"*"})]}),a.jsx("input",{id:t.toLowerCase(),type:"email",value:e,onChange:l=>r(l.target.value),placeholder:n,className:`
|
|
33
33
|
mt-1 block w-full px-3 py-2 border rounded-md shadow-sm
|
|
34
34
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
|
|
35
35
|
dark:bg-gray-800 dark:border-gray-600 dark:text-white
|
|
36
36
|
${s?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 dark:border-gray-600"}
|
|
37
|
-
`}),s&&a.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:s})]}),
|
|
37
|
+
`}),s&&a.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:s})]}),ze=({isVisible:t,onToggle:e,showLabel:r,hideLabel:n,...o})=>{const s=t?n:r;return a.jsxs("div",{children:[a.jsxs("button",{type:"button",onClick:e,className:"flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 mb-2",children:[t?a.jsx(w.ChevronUpIcon,{className:"h-4 w-4 mr-1"}):a.jsx(w.ChevronDownIcon,{className:"h-4 w-4 mr-1"}),s]}),t&&a.jsx(Me,{...o})]})},Pn=({to:t,onToChange:e,cc:r="",onCcChange:n,bcc:o="",onBccChange:s,showCc:c=!1,showBcc:l=!1,onToggleCc:d,onToggleBcc:g,errors:m={},className:p="",labels:b={},placeholders:y={}})=>{const x={to:"To",cc:"CC",bcc:"BCC",addCc:"Add CC",removeCc:"Remove CC",addBcc:"Add BCC",removeBcc:"Remove BCC"},v={to:"recipient@example.com",cc:"cc@example.com",bcc:"bcc@example.com"},N={...x,...b},C={...v,...y};return a.jsxs("div",{className:`space-y-4 ${p}`,children:[a.jsx(Me,{label:N.to,value:t,onChange:e,placeholder:C.to,required:!0,error:m.to}),d&&n&&a.jsx(ze,{label:N.cc,value:r,onChange:n,placeholder:C.cc,error:m.cc,isVisible:c,onToggle:d,showLabel:N.addCc,hideLabel:N.removeCc}),g&&s&&a.jsx(ze,{label:N.bcc,value:o,onChange:s,placeholder:C.bcc,error:m.bcc,isVisible:l,onToggle:g,showLabel:N.addBcc,hideLabel:N.removeBcc})]})},pe=({label:t,required:e=!1,error:r,helpText:n,children:o,layout:s="vertical",className:c="",labelClassName:l="",contentClassName:d=""})=>{const g=s==="horizontal";return a.jsxs("div",{className:`${g?"grid grid-cols-1 md:grid-cols-3 gap-4 items-start":"space-y-2"} ${c}`,children:[a.jsxs("div",{className:g?"md:col-span-1":"",children:[a.jsxs("label",{className:`block text-sm font-medium text-gray-700 dark:text-gray-300 ${l}`,children:[t,e&&a.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),n&&!r&&a.jsxs("div",{className:"mt-1 flex items-start",children:[a.jsx(w.InformationCircleIcon,{className:"h-4 w-4 text-gray-400 mr-1 mt-0.5 flex-shrink-0"}),a.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:n})]})]}),a.jsxs("div",{className:`${g?"md:col-span-2":""} ${d}`,children:[a.jsx("div",{className:r?"relative":"",children:o}),r&&a.jsxs("div",{className:"mt-1 flex items-start",children:[a.jsx(w.ExclamationCircleIcon,{className:"h-4 w-4 text-red-500 mr-1 mt-0.5 flex-shrink-0"}),a.jsx("p",{className:"text-xs text-red-600 dark:text-red-400",children:r})]})]})]})},An=({label:t,value:e,onChange:r,placeholder:n,required:o=!1,error:s,helpText:c,type:l="text",layout:d="vertical",className:g=""})=>a.jsx(pe,{label:t,required:o,error:s,helpText:c,layout:d,className:g,children:a.jsx("input",{type:l,value:e,onChange:m=>r(m.target.value),placeholder:n,className:`
|
|
38
38
|
block w-full px-3 py-2 border rounded-md shadow-sm
|
|
39
39
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
|
|
40
40
|
dark:bg-gray-800 dark:border-gray-600 dark:text-white
|
|
41
41
|
transition-colors duration-200
|
|
42
42
|
${s?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 dark:border-gray-600"}
|
|
43
|
-
`})})
|
|
43
|
+
`})}),$n=({label:t,value:e,onChange:r,placeholder:n,required:o=!1,error:s,helpText:c,rows:l=4,layout:d="vertical",className:g=""})=>a.jsx(pe,{label:t,required:o,error:s,helpText:c,layout:d,className:g,children:a.jsx("textarea",{value:e,onChange:m=>r(m.target.value),placeholder:n,rows:l,className:`
|
|
44
44
|
block w-full px-3 py-2 border rounded-md shadow-sm
|
|
45
45
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
|
|
46
46
|
dark:bg-gray-800 dark:border-gray-600 dark:text-white
|
|
47
47
|
transition-colors duration-200 resize-vertical
|
|
48
48
|
${s?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 dark:border-gray-600"}
|
|
49
|
-
`})}),
|
|
49
|
+
`})}),Tn=({label:t,value:e,onChange:r,options:n,required:o=!1,error:s,helpText:c,placeholder:l="Select an option",layout:d="vertical",className:g=""})=>a.jsx(pe,{label:t,required:o,error:s,helpText:c,layout:d,className:g,children:a.jsxs("select",{value:e,onChange:m=>r(m.target.value),className:`
|
|
50
50
|
block w-full px-3 py-2 border rounded-md shadow-sm
|
|
51
51
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
|
|
52
52
|
dark:bg-gray-800 dark:border-gray-600 dark:text-white
|
|
53
53
|
transition-colors duration-200
|
|
54
54
|
${s?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 dark:border-gray-600"}
|
|
55
|
-
`,children:[l&&a.jsx("option",{value:"",disabled:!0,children:l}),o.map(m=>a.jsx("option",{value:m.value,disabled:m.disabled,children:m.label},m.value))]})}),Nn={success:"bg-green-500",error:"bg-red-500",warning:"bg-yellow-500",info:"bg-blue-500",neutral:"bg-gray-500"},En={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-3 h-3",lg:"w-4 h-4"},$n=({status:t,size:e="sm",pulse:r=!1,className:o})=>a.jsx("div",{className:h("rounded-full flex-shrink-0",Nn[t],En[e],r&&"animate-pulse",o)}),In={default:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},premium:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},primary:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},light:{container:"bg-white/20 border border-white/30 text-white backdrop-blur-sm",icon:"text-white"}},An={sm:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"},md:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"},lg:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"}},Pn=({icon:t,text:e,variant:r="default",size:o="md",className:n})=>{const s=In[r],d=An[o];return a.jsxs("div",{className:h("inline-flex items-center rounded-full mb-6",s.container,d.container,n),children:[a.jsx("div",{className:h("animate-float-icon",s.icon,d.icon),children:t}),a.jsx("span",{className:d.text,children:e})]})},Tn=I.cva("",{variants:{variant:{hero:E.heading.display.hero(),display:E.heading.display.lg(),h1:E.heading.h1(),h2:E.heading.h2(),h3:E.heading.h3()},responsive:{true:"",false:""},align:{left:"text-left",center:"text-center",right:"text-right"},color:{default:"text-gray-900 dark:text-white",muted:"text-gray-600 dark:text-gray-400",vibrant:"text-white",brand:"bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent"}},defaultVariants:{variant:"h1",responsive:!0,align:"left",color:"default"}}),Ln=({children:t,variant:e="h1",responsive:r=!0,align:o="left",color:n="default",className:s,as:d})=>{const l=d||(e==="hero"||e==="display"||e==="h1"?"h1":e==="h2"?"h2":"h3");return a.jsx(l,{className:h(Tn({variant:e,responsive:r,align:o,color:n}),s),children:t})},zn=I.cva("",{variants:{variant:{h2:E.heading.h2(),h3:E.heading.h3(),h4:E.heading.h4(),h5:E.heading.h5(),h6:E.heading.h6()},spacing:{none:"",sm:"mb-2",md:"mb-4",lg:"mb-6",xl:"mb-8"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{variant:"h2",spacing:"md",align:"left"}}),jn=({children:t,variant:e="h2",spacing:r="md",align:o="left",className:n,as:s})=>{const d=s||e;return b.createElement(d,{className:h(zn({variant:e,spacing:r,align:o}),n)},t)},Mn=I.cva("",{variants:{variant:{body:E.body.md(),lead:E.body.lg(),large:E.body.lg(),small:E.body.sm(),caption:E.body.xs()},color:{default:"text-gray-700 dark:text-gray-300",muted:"text-gray-500 dark:text-gray-500",primary:"text-gray-900 dark:text-white"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}},defaultVariants:{variant:"body",color:"default",align:"left"}}),On=({children:t,variant:e="body",color:r="default",align:o="left",className:n,as:s="p"})=>b.createElement(s,{className:h(Mn({variant:e,color:r,align:o}),n)},t),Wn=I.cva(E.link.default(),{variants:{variant:{default:E.link.default(),subtle:E.link.subtle(),muted:E.link.muted(),button:"inline-flex items-center justify-center px-4 py-2 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors"},external:{true:"inline-flex items-center gap-1",false:""}},defaultVariants:{variant:"default",external:!1}}),Bn=({children:t,href:e,variant:r="default",external:o=!1,className:n,target:s,rel:d})=>a.jsxs("a",{href:e,target:s||(o?"_blank":void 0),rel:d||(o?"noopener noreferrer":void 0),className:h(Wn({variant:r,external:o}),n),children:[t,o&&a.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.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"})})]}),we=I.cva("transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 rounded-sm",{variants:{variant:{subtle:E.link.subtle(),default:E.link.default(),muted:E.link.muted(),external:E.link.external(),inherit:"text-inherit hover:text-blue-600 dark:hover:text-blue-400 underline-offset-2 hover:underline transition-colors duration-200"},size:{sm:"text-sm",default:"text-base",lg:"text-lg"}},defaultVariants:{variant:"subtle",size:"default"}}),Ge=T.forwardRef(({className:t,variant:e,size:r,to:o,href:n,external:s,children:d,...l},c)=>{const u=o||n;return u?s||u.startsWith("http")||u.startsWith("mailto:")?a.jsx("a",{className:h(we({variant:e==="subtle"?"external":e,size:r,className:t})),href:u,target:"_blank",rel:"noopener noreferrer",ref:c,...l,children:d}):a.jsx(ge.Link,{className:h(we({variant:e,size:r,className:t})),to:u,ref:c,...l,children:d}):a.jsx("span",{className:h(we({variant:e,size:r,className:t})),...l,children:d})});Ge.displayName="SmartLink";const Dn=(t,e)=>T.useMemo(()=>{let r=t;return Object.entries(e).forEach(([o,n])=>{const s=new RegExp(`\\b${o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");r=r.replace(s,d=>`<SmartLink to="${n}" variant="subtle">${d}</SmartLink>`)}),r},[t,e]),Fn={documentation:"/document",settings:"/settings",about:"/about",contact:"/contact","privacy policy":"/privacy",privacy:"/privacy","terms of service":"/terms",terms:"/terms","cookie policy":"/cookies",cookies:"/cookies",points:"/points","earn points":"/how-to-earn-points","how to earn points":"/how-to-earn-points","connect wallet":"/connect","connect your wallet":"/connect","wallet connection":"/connect",wallet:"/connect",compose:"/compose","compose email":"/compose","send email":"/compose",mail:"/mail",email:"/mail",inbox:"/mail",dashboard:"/mail",delegate:"/delegate",delegation:"/delegate",manage:"/manage","manage preferences":"/preferences",profile:"/settings",account:"/settings",preferences:"/preferences",token:"/token","web3 users":"/web3-users","web3 projects":"/web3-projects","get started":"/connect","start here":"/connect","learn more":"/document","read more":"/document","our features":"/document",support:"/contact",help:"/document","contact us":"/contact"},_n=({children:t,mappings:e=Fn,className:r,variant:o="subtle"})=>{const n=T.useMemo(()=>{if(!t||typeof t!="string")return t||"";let d=t;return Object.entries(e).sort(([c],[u])=>u.length-c.length).forEach(([c,u])=>{if(c&&u){const m=new RegExp(`\\b${c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");d=d.replace(m,p=>`__LINK_START__${u}__LINK_MID__${p}__LINK_END__`)}}),d},[t,e]);if(!n||typeof n!="string")return a.jsx("span",{className:r,children:t});const s=n.split(/(__LINK_START__.*?__LINK_END__)/);return a.jsx("span",{className:r,children:s.map((d,l)=>{const c=d.match(/__LINK_START__(.*?)__LINK_MID__(.*?)__LINK_END__/);if(c){const[,u,m]=c;return a.jsx(Ge,{to:u,variant:o,children:m},l)}return d})})},Qt=({isOpen:t,onClose:e,title:r,size:o="medium",variant:n="default",overlay:s="default",showCloseButton:d=!0,closeOnOverlayClick:l=!0,closeOnEscape:c=!0,children:u,className:m,"aria-labelledby":p,"aria-describedby":f,closeAriaLabel:x="Close modal"})=>{const k=b.useRef(null),w=b.useRef(null);if(b.useEffect(()=>{if(!t||!c)return;const A=j=>{j.key==="Escape"&&e()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[t,c,e]),b.useEffect(()=>{if(t)return w.current=document.activeElement,k.current&&k.current.focus(),document.body.style.overflow="hidden",()=>{document.body.style.overflow="unset",w.current&&w.current.focus()}},[t]),!t)return null;const $=()=>{const A=C.overlays.modal.content(),j=C.overlays.modal[o]();return h(A,j)},S=A=>{l&&A.target===A.currentTarget&&e()},N=a.jsxs(a.Fragment,{children:[a.jsx("div",{className:C.overlays.modal.backdrop(),onClick:S}),a.jsx("div",{className:C.overlays.modal.container(),role:"dialog","aria-modal":"true","aria-labelledby":p,"aria-describedby":f,children:a.jsxs("div",{ref:k,"data-testid":"modal-content",className:h($(),m),tabIndex:-1,onClick:A=>A.stopPropagation(),children:[r&&a.jsxs("div",{className:C.overlays.modal.header(),children:[a.jsx("h2",{id:p,className:C.overlays.modal.title(),children:r}),d&&a.jsx("button",{onClick:e,className:C.overlays.modal.closeButton(),"aria-label":x,children:a.jsx(v.XMarkIcon,{className:C.icon.variant.muted.md()})})]}),u]})})]});return Er.createPortal(N,document.body)},qn=({children:t,variant:e="default",className:r})=>a.jsx("div",{"data-testid":"modal-header",className:h(C.overlays.modal.header(),r),children:t}),Zt=({children:t,variant:e="default",className:r})=>a.jsx("div",{"data-testid":"modal-body",className:h(C.overlays.modal.body(),r),children:t}),Jt=({children:t,variant:e="default",className:r})=>a.jsx("div",{"data-testid":"modal-footer",className:h(C.overlays.modal.footer(),r),children:t}),Vn={default:v.InformationCircleIcon,warning:v.ExclamationTriangleIcon,danger:v.XCircleIcon,success:v.CheckCircleIcon,info:v.InformationCircleIcon},Un={default:()=>C.icon.variant.default.lg(),warning:()=>C.icon.variant.warning.lg(),danger:()=>C.icon.variant.error.lg(),success:()=>C.icon.variant.success.lg(),info:()=>C.icon.variant.default.lg()},Hn={default:"default",warning:"default",danger:"destructive",success:"default",info:"default"},Gn=({isOpen:t,onClose:e,onConfirm:r,title:o,message:n,confirmText:s="Confirm",cancelText:d="Cancel",loadingText:l="Processing...",variant:c="default",isLoading:u=!1})=>{const m=Vn[c],p=Un[c],f=Hn[c];return a.jsxs(Qt,{isOpen:t,onClose:e,size:"small",variant:"web3confirmation","aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[a.jsxs(Zt,{variant:"padded",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx(m,{className:p()}),a.jsx("h3",{id:"confirmation-dialog-title",className:E.heading.h4(),children:o})]}),a.jsx("p",{id:"confirmation-dialog-description",className:E.body.md(),children:n})]}),a.jsxs(Jt,{children:[a.jsx(q,{variant:"outline",onClick:e,disabled:u,children:d}),a.jsx(q,{variant:f,onClick:r,disabled:u,children:u?l:s})]})]})},Kn={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20",xl:"w-24 h-24"},Yn={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},Qn={primary:"bg-gradient-to-br from-blue-100 to-blue-200 text-blue-600 shadow-lg hover:shadow-blue-200",secondary:"bg-gradient-to-br from-purple-100 to-purple-200 text-purple-600 shadow-lg hover:shadow-purple-200",success:"bg-gradient-to-br from-green-100 to-green-200 text-green-600 shadow-lg hover:shadow-green-200",warning:"bg-gradient-to-br from-yellow-100 to-yellow-200 text-yellow-600 shadow-lg hover:shadow-yellow-200",error:"bg-gradient-to-br from-red-100 to-red-200 text-red-600 shadow-lg hover:shadow-red-200",neutral:"bg-gradient-to-br from-gray-100 to-gray-200 text-gray-600 shadow-lg hover:shadow-gray-200"},Zn={square:"rounded-none",rounded:"rounded-2xl",circle:"rounded-full"},Jn={none:"",float:"animate-float",pulse:"animate-pulse",bounce:"animate-bounce-slow"},Xn=({children:t,size:e="lg",variant:r="primary",shape:o="rounded",animation:n="float",className:s})=>a.jsx("div",{className:h("flex items-center justify-center mx-auto mb-6 transition-all duration-300 group-hover:scale-105",Kn[e],Qn[r],Zn[o],Jn[n],s),children:a.jsx("div",{className:h(Yn[e]),children:t})}),Rn=I.cva("border-b transition-all duration-200",{variants:{variant:{default:"bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 border-green-200 dark:border-green-700",compact:"bg-green-50 dark:bg-green-900/10 border-green-200 dark:border-green-800",minimal:"bg-gray-50 dark:bg-gray-900/50 border-gray-200 dark:border-gray-700",vibrant:"bg-gradient-to-r from-blue-600 to-purple-600 border-blue-700"},size:{default:"py-4",compact:"py-3",large:"py-6"}},defaultVariants:{variant:"default",size:"default"}}),ei=I.cva("font-semibold",{variants:{variant:{default:"text-green-800 dark:text-green-200",compact:"text-green-700 dark:text-green-300",minimal:"text-gray-700 dark:text-gray-300",vibrant:"text-white"}},defaultVariants:{variant:"default"}}),ti=I.cva("inline-flex items-center justify-center px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2",{variants:{variant:{default:"bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white focus:ring-green-500",compact:"bg-green-600 hover:bg-green-700 text-white focus:ring-green-500",minimal:"bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",vibrant:"bg-white hover:bg-gray-100 text-blue-600 hover:text-blue-700 focus:ring-white"}},defaultVariants:{variant:"default"}}),ri=({className:t,variant:e="default",size:r="default",message:o="Get Your Free Email Address - Start Using 0xmail.box Today",ctaText:n="Get Free Email",ctaLink:s="/connect",showBadge:d=!0,badgeText:l="FREE",onDismiss:c,isDismissible:u=!1,dismissAriaLabel:m="Dismiss banner"})=>a.jsx("div",{className:h(Rn({variant:e,size:r}),t),children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative",children:[u&&c&&a.jsx("button",{onClick:c,className:"absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors","aria-label":m,children:a.jsx("svg",{className:"w-4 h-4 text-current opacity-60",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),a.jsxs("div",{className:"flex items-center",children:[d&&a.jsx("div",{className:h("text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",e==="vibrant"?"bg-white text-blue-600":"bg-green-500 text-white"),children:l}),a.jsx("span",{className:h(ei({variant:e})),children:o})]}),a.jsx(ge.Link,{to:s,className:h(ti({variant:e})),children:n})]})})}),ai=I.cva("rounded-lg border p-4 flex items-start gap-3",{variants:{variant:{info:"bg-blue-50 border-blue-200 text-blue-800 dark:bg-blue-900/20 dark:border-blue-800/50 dark:text-blue-200",success:"bg-green-50 border-green-200 text-green-800 dark:bg-green-900/20 dark:border-green-800/50 dark:text-green-200",warning:"bg-amber-50 border-amber-200 text-amber-800 dark:bg-amber-900/20 dark:border-amber-800/50 dark:text-amber-200",error:"bg-red-50 border-red-200 text-red-800 dark:bg-red-900/20 dark:border-red-800/50 dark:text-red-200",neutral:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700"},size:{sm:"p-3 text-sm",md:"p-4",lg:"p-6 text-lg"}},defaultVariants:{variant:"info",size:"md"}}),oi=({title:t,icon:e,children:r,variant:o="info",size:n="md",className:s,onClose:d})=>{const l={info:"🛈",success:"✓",warning:"⚠",error:"✗",neutral:"💡"};return a.jsxs("div",{className:h(ai({variant:o,size:n}),s),children:[a.jsx("div",{className:"flex-shrink-0 text-lg",children:e||l[o||"info"]}),a.jsxs("div",{className:"flex-1 min-w-0",children:[t&&a.jsx("h4",{className:"font-semibold mb-2",children:t}),a.jsx("div",{children:r})]}),d&&a.jsx("button",{onClick:d,className:"flex-shrink-0 text-current hover:opacity-70 transition-opacity",children:a.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})},ni=I.cva("bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 transition-all duration-200",{variants:{variant:{default:"border-gray-200 dark:border-gray-700 border hover:shadow-lg",elevated:"shadow-lg hover:shadow-xl",minimal:"bg-transparent shadow-none border-none p-4"},trend:{none:"",up:"border-l-4 border-green-500",down:"border-l-4 border-red-500",neutral:"border-l-4 border-gray-400"}},defaultVariants:{variant:"default",trend:"none"}}),ii=({label:t,value:e,change:r,trend:o="none",icon:n,variant:s="default",className:d})=>{const l={up:"text-green-600 dark:text-green-400",down:"text-red-600 dark:text-red-400",neutral:"text-gray-600 dark:text-gray-400",none:"text-gray-600 dark:text-gray-400"},c={up:"↗",down:"↘",neutral:"→",none:""};return a.jsx("div",{className:h(ni({variant:s,trend:o}),d),children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-1",children:t}),a.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:e}),r&&a.jsxs("p",{className:h("text-sm font-medium flex items-center gap-1 mt-1",l[o||"none"]),children:[a.jsx("span",{children:c[o||"none"]}),r]})]}),n&&a.jsx("div",{className:"text-3xl opacity-80",children:n})]})})},si=I.cva("space-y-6",{variants:{variant:{default:"",card:"bg-white dark:bg-gray-800 rounded-lg border-gray-200 dark:border-gray-700 border p-6",minimal:"space-y-4"},spacing:{tight:"space-y-3",normal:"space-y-4",relaxed:"space-y-6",loose:"space-y-8"}},defaultVariants:{variant:"default",spacing:"normal"}}),li=({title:t,description:e,children:r,variant:o="default",spacing:n="normal",className:s})=>a.jsxs("div",{className:h(si({variant:o,spacing:n}),s),children:[(t||e)&&a.jsxs("div",{className:"space-y-1",children:[t&&a.jsx("h3",{className:"text-lg font-medium text-gray-900 dark:text-white",children:t}),e&&a.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:e})]}),r]}),di=I.cva("flex flex-col items-center text-center space-y-4",{variants:{layout:{vertical:"flex-col items-center text-center",horizontal:"flex-row items-start text-left space-y-0 space-x-4",minimal:"flex-col space-y-2"},spacing:{tight:"space-y-2",normal:"space-y-4",relaxed:"space-y-6"},interactive:{true:"transition-all duration-200 hover:transform hover:scale-105 cursor-pointer",false:""}},defaultVariants:{layout:"vertical",spacing:"normal",interactive:!1}}),ci=({icon:t,title:e,description:r,layout:o="vertical",spacing:n="normal",interactive:s=!1,className:d,onClick:l})=>a.jsxs("div",{className:h(di({layout:o,spacing:n,interactive:s}),d),onClick:l,children:[a.jsx("div",{className:"text-4xl mb-4 flex-shrink-0",children:t}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white",children:e}),a.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed",children:r})]})]}),gi=({wallet:t,connector:e,className:r="w-8 h-8",iconBasePath:o="/wallet-icons"})=>{const n=t.toLowerCase(),s=l=>{const c={metamask:"metamask.svg",walletconnect:"walletconnect.svg",coinbase:"coinbase.svg",phantom:"phantom.svg",solflare:"solflare.svg",keplr:"keplr.svg",browser:"browser-wallet.svg",injected:"browser-wallet.svg"};for(const[u,m]of Object.entries(c))if(l.includes(u))return`${o}/${m}`;return`${o}/default.svg`};if(e?.icon)return a.jsx("img",{src:e.icon,alt:`${t} wallet`,className:`${r} rounded-lg`,onError:l=>{const c=l.target;c.src=s(n)}});const d=s(n);return a.jsx("img",{src:d,alt:`${t} wallet`,className:`${r} rounded-lg`,onError:l=>{const c=l.target;c.src=`${o}/default.svg`}})},ui=({size:t="md",className:e="",showText:r=!0,onClick:o,logoSrc:n="/logo.png",logoAlt:s="Logo",logoText:d="0xmail.box",fontFamily:l="Dancing Script, cursive"})=>{const u=(()=>{switch(t){case"sm":return{container:"space-x-2",image:"h-6 w-6",text:"text-lg"};case"md":return{container:"space-x-2",image:"h-8 w-8",text:"text-2xl"};case"lg":return{container:"space-x-3",image:"h-10 w-10",text:"text-3xl"};case"xl":return{container:"space-x-4",image:"h-12 w-12",text:"text-4xl"};default:return{container:"space-x-2",image:"h-8 w-8",text:"text-2xl"}}})(),m=a.jsxs(a.Fragment,{children:[a.jsx("img",{src:n,alt:s,className:u.image}),r&&a.jsx("div",{className:`${u.text} font-bold text-gray-900 dark:text-gray-100`,style:{fontFamily:l,fontWeight:"700"},children:d})]});return o?a.jsx("button",{onClick:o,className:`flex items-center ${u.container} ${e} hover:opacity-80 transition-opacity`,children:m}):a.jsx("div",{className:`flex items-center ${u.container} ${e}`,children:m})},mi=({shareConfig:t})=>{const[e,r]=b.useState(!1),[o,n]=b.useState(""),[s,d]=b.useState(!1);b.useEffect(()=>{const m=t.onBeforeShare;m&&!o&&(async()=>{d(!0);try{const f=typeof window<"u"?window.location.href:"",x=await m(f);n(x)}catch(f){console.error("[ShareDropdown] Failed to prepare share URL:",f);const x=typeof window<"u"?window.location.href:"";n(x)}finally{d(!1)}})()},[t,o]);const l=o||(typeof window<"u"?window.location.href:""),c=[{component:z.TwitterShareButton,icon:z.TwitterIcon,props:{url:l,title:t.title,hashtags:t.hashtags},label:"Twitter"},{component:z.FacebookShareButton,icon:z.FacebookIcon,props:{url:l,quote:`${t.title}
|
|
55
|
+
`,children:[l&&a.jsx("option",{value:"",disabled:!0,children:l}),n.map(m=>a.jsx("option",{value:m.value,disabled:m.disabled,children:m.label},m.value))]})}),Ln={success:"bg-green-500",error:"bg-red-500",warning:"bg-yellow-500",info:"bg-blue-500",neutral:"bg-gray-500"},Mn={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-3 h-3",lg:"w-4 h-4"},zn=({status:t,size:e="sm",pulse:r=!1,className:n})=>a.jsx("div",{className:f("rounded-full flex-shrink-0",Ln[t],Mn[e],r&&"animate-pulse",n)}),On={default:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},premium:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},primary:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},light:{container:"bg-white/20 border border-white/30 text-white backdrop-blur-sm",icon:"text-white"}},Wn={sm:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"},md:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"},lg:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"}},jn=({icon:t,text:e,variant:r="default",size:n="md",className:o})=>{const s=On[r],c=Wn[n];return a.jsxs("div",{className:f("inline-flex items-center rounded-full mb-6",s.container,c.container,o),children:[a.jsx("div",{className:f("animate-float-icon",s.icon,c.icon),children:t}),a.jsx("span",{className:c.text,children:e})]})},Bn=P.cva("",{variants:{variant:{hero:E.heading.display.hero(),display:E.heading.display.lg(),h1:E.heading.h1(),h2:E.heading.h2(),h3:E.heading.h3()},responsive:{true:"",false:""},align:{left:"text-left",center:"text-center",right:"text-right"},color:{default:"text-gray-900 dark:text-white",muted:"text-gray-600 dark:text-gray-400",vibrant:"text-white",brand:"bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent"}},defaultVariants:{variant:"h1",responsive:!0,align:"left",color:"default"}}),Dn=({children:t,variant:e="h1",responsive:r=!0,align:n="left",color:o="default",className:s,as:c})=>{const l=c||(e==="hero"||e==="display"||e==="h1"?"h1":e==="h2"?"h2":"h3");return a.jsx(l,{className:f(Bn({variant:e,responsive:r,align:n,color:o}),s),children:t})},Fn=P.cva("",{variants:{variant:{h2:E.heading.h2(),h3:E.heading.h3(),h4:E.heading.h4(),h5:E.heading.h5(),h6:E.heading.h6()},spacing:{none:"",sm:"mb-2",md:"mb-4",lg:"mb-6",xl:"mb-8"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{variant:"h2",spacing:"md",align:"left"}}),_n=({children:t,variant:e="h2",spacing:r="md",align:n="left",className:o,as:s})=>{const c=s||e;return h.createElement(c,{className:f(Fn({variant:e,spacing:r,align:n}),o)},t)},qn=P.cva("",{variants:{variant:{body:E.body.md(),lead:E.body.lg(),large:E.body.lg(),small:E.body.sm(),caption:E.body.xs()},color:{default:"text-gray-700 dark:text-gray-300",muted:"text-gray-500 dark:text-gray-500",primary:"text-gray-900 dark:text-white"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}},defaultVariants:{variant:"body",color:"default",align:"left"}}),Hn=({children:t,variant:e="body",color:r="default",align:n="left",className:o,as:s="p"})=>h.createElement(s,{className:f(qn({variant:e,color:r,align:n}),o)},t),Vn=P.cva(E.link.default(),{variants:{variant:{default:E.link.default(),subtle:E.link.subtle(),muted:E.link.muted(),button:"inline-flex items-center justify-center px-4 py-2 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors"},external:{true:"inline-flex items-center gap-1",false:""}},defaultVariants:{variant:"default",external:!1}}),Un=({children:t,href:e,variant:r="default",external:n=!1,className:o,target:s,rel:c})=>a.jsxs("a",{href:e,target:s||(n?"_blank":void 0),rel:c||(n?"noopener noreferrer":void 0),className:f(Vn({variant:r,external:n}),o),children:[t,n&&a.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.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"})})]}),fe=P.cva("transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 rounded-sm",{variants:{variant:{subtle:E.link.subtle(),default:E.link.default(),muted:E.link.muted(),external:E.link.external(),inherit:"text-inherit hover:text-blue-600 dark:hover:text-blue-400 underline-offset-2 hover:underline transition-colors duration-200"},size:{sm:"text-sm",default:"text-base",lg:"text-lg"}},defaultVariants:{variant:"subtle",size:"default"}}),Oe=$.forwardRef(({className:t,variant:e,size:r,to:n,href:o,external:s,children:c,...l},d)=>{const g=n||o;return g?s||g.startsWith("http")||g.startsWith("mailto:")?a.jsx("a",{className:f(fe({variant:e==="subtle"?"external":e,size:r,className:t})),href:g,target:"_blank",rel:"noopener noreferrer",ref:d,...l,children:c}):a.jsx(le.Link,{className:f(fe({variant:e,size:r,className:t})),to:g,ref:d,...l,children:c}):a.jsx("span",{className:f(fe({variant:e,size:r,className:t})),...l,children:c})});Oe.displayName="SmartLink";const Gn=(t,e)=>$.useMemo(()=>{let r=t;return Object.entries(e).forEach(([n,o])=>{const s=new RegExp(`\\b${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");r=r.replace(s,c=>`<SmartLink to="${o}" variant="subtle">${c}</SmartLink>`)}),r},[t,e]),Kn={documentation:"/document",settings:"/settings",about:"/about",contact:"/contact","privacy policy":"/privacy",privacy:"/privacy","terms of service":"/terms",terms:"/terms","cookie policy":"/cookies",cookies:"/cookies",points:"/points","earn points":"/how-to-earn-points","how to earn points":"/how-to-earn-points","connect wallet":"/connect","connect your wallet":"/connect","wallet connection":"/connect",wallet:"/connect",compose:"/compose","compose email":"/compose","send email":"/compose",mail:"/mail",email:"/mail",inbox:"/mail",dashboard:"/mail",delegate:"/delegate",delegation:"/delegate",manage:"/manage","manage preferences":"/preferences",profile:"/settings",account:"/settings",preferences:"/preferences",token:"/token","web3 users":"/web3-users","web3 projects":"/web3-projects","get started":"/connect","start here":"/connect","learn more":"/document","read more":"/document","our features":"/document",support:"/contact",help:"/document","contact us":"/contact"},Qn=({children:t,mappings:e=Kn,className:r,variant:n="subtle"})=>{const o=$.useMemo(()=>{if(!t||typeof t!="string")return t||"";let c=t;return Object.entries(e).sort(([d],[g])=>g.length-d.length).forEach(([d,g])=>{if(d&&g){const m=new RegExp(`\\b${d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");c=c.replace(m,p=>`__LINK_START__${g}__LINK_MID__${p}__LINK_END__`)}}),c},[t,e]);if(!o||typeof o!="string")return a.jsx("span",{className:r,children:t});const s=o.split(/(__LINK_START__.*?__LINK_END__)/);return a.jsx("span",{className:r,children:s.map((c,l)=>{const d=c.match(/__LINK_START__(.*?)__LINK_MID__(.*?)__LINK_END__/);if(d){const[,g,m]=d;return a.jsx(Oe,{to:g,variant:n,children:m},l)}return c})})},Ct=({isOpen:t,onClose:e,title:r,size:n="medium",variant:o="default",overlay:s="default",showCloseButton:c=!0,closeOnOverlayClick:l=!0,closeOnEscape:d=!0,children:g,className:m,"aria-labelledby":p,"aria-describedby":b,closeAriaLabel:y="Close modal"})=>{const x=h.useRef(null),v=h.useRef(null);if(h.useEffect(()=>{if(!t||!d)return;const I=T=>{T.key==="Escape"&&e()};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[t,d,e]),h.useEffect(()=>{if(t)return v.current=document.activeElement,x.current&&x.current.focus(),document.body.style.overflow="hidden",()=>{document.body.style.overflow="unset",v.current&&v.current.focus()}},[t]),!t)return null;const N=()=>{const I=k.overlays.modal.content(),T=k.overlays.modal[n]();return f(I,T)},C=I=>{l&&I.target===I.currentTarget&&e()},S=a.jsxs(a.Fragment,{children:[a.jsx("div",{className:k.overlays.modal.backdrop(),onClick:C}),a.jsx("div",{className:k.overlays.modal.container(),role:"dialog","aria-modal":"true","aria-labelledby":p,"aria-describedby":b,children:a.jsxs("div",{ref:x,"data-testid":"modal-content",className:f(N(),m),tabIndex:-1,onClick:I=>I.stopPropagation(),children:[r&&a.jsxs("div",{className:k.overlays.modal.header(),children:[a.jsx("h2",{id:p,className:k.overlays.modal.title(),children:r}),c&&a.jsx("button",{onClick:e,className:k.overlays.modal.closeButton(),"aria-label":y,children:a.jsx(w.XMarkIcon,{className:k.icon.variant.muted.md()})})]}),g]})})]});return er.createPortal(S,document.body)},Yn=({children:t,variant:e="default",className:r})=>a.jsx("div",{"data-testid":"modal-header",className:f(k.overlays.modal.header(),r),children:t}),St=({children:t,variant:e="default",className:r})=>a.jsx("div",{"data-testid":"modal-body",className:f(k.overlays.modal.body(),r),children:t}),Nt=({children:t,variant:e="default",className:r})=>a.jsx("div",{"data-testid":"modal-footer",className:f(k.overlays.modal.footer(),r),children:t}),Zn={default:w.InformationCircleIcon,warning:w.ExclamationTriangleIcon,danger:w.XCircleIcon,success:w.CheckCircleIcon,info:w.InformationCircleIcon},Jn={default:()=>k.icon.variant.default.lg(),warning:()=>k.icon.variant.warning.lg(),danger:()=>k.icon.variant.error.lg(),success:()=>k.icon.variant.success.lg(),info:()=>k.icon.variant.default.lg()},Xn={default:"default",warning:"default",danger:"destructive",success:"default",info:"default"},Rn=({isOpen:t,onClose:e,onConfirm:r,title:n,message:o,confirmText:s="Confirm",cancelText:c="Cancel",loadingText:l="Processing...",variant:d="default",isLoading:g=!1})=>{const m=Zn[d],p=Jn[d],b=Xn[d];return a.jsxs(Ct,{isOpen:t,onClose:e,size:"small",variant:"web3confirmation","aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[a.jsxs(St,{variant:"padded",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx(m,{className:p()}),a.jsx("h3",{id:"confirmation-dialog-title",className:E.heading.h4(),children:n})]}),a.jsx("p",{id:"confirmation-dialog-description",className:E.body.md(),children:o})]}),a.jsxs(Nt,{children:[a.jsx(B,{variant:"outline",onClick:e,disabled:g,children:c}),a.jsx(B,{variant:b,onClick:r,disabled:g,children:g?l:s})]})]})},eo={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20",xl:"w-24 h-24"},to={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},ro={primary:"bg-gradient-to-br from-blue-100 to-blue-200 text-blue-600 shadow-lg hover:shadow-blue-200",secondary:"bg-gradient-to-br from-purple-100 to-purple-200 text-purple-600 shadow-lg hover:shadow-purple-200",success:"bg-gradient-to-br from-green-100 to-green-200 text-green-600 shadow-lg hover:shadow-green-200",warning:"bg-gradient-to-br from-yellow-100 to-yellow-200 text-yellow-600 shadow-lg hover:shadow-yellow-200",error:"bg-gradient-to-br from-red-100 to-red-200 text-red-600 shadow-lg hover:shadow-red-200",neutral:"bg-gradient-to-br from-gray-100 to-gray-200 text-gray-600 shadow-lg hover:shadow-gray-200"},ao={square:"rounded-none",rounded:"rounded-2xl",circle:"rounded-full"},no={none:"",float:"animate-float",pulse:"animate-pulse",bounce:"animate-bounce-slow"},oo=({children:t,size:e="lg",variant:r="primary",shape:n="rounded",animation:o="float",className:s})=>a.jsx("div",{className:f("flex items-center justify-center mx-auto mb-6 transition-all duration-300 group-hover:scale-105",eo[e],ro[r],ao[n],no[o],s),children:a.jsx("div",{className:f(to[e]),children:t})}),so=P.cva("border-b transition-all duration-200",{variants:{variant:{default:"bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 border-green-200 dark:border-green-700",compact:"bg-green-50 dark:bg-green-900/10 border-green-200 dark:border-green-800",minimal:"bg-gray-50 dark:bg-gray-900/50 border-gray-200 dark:border-gray-700",vibrant:"bg-gradient-to-r from-blue-600 to-purple-600 border-blue-700"},size:{default:"py-4",compact:"py-3",large:"py-6"}},defaultVariants:{variant:"default",size:"default"}}),io=P.cva("font-semibold",{variants:{variant:{default:"text-green-800 dark:text-green-200",compact:"text-green-700 dark:text-green-300",minimal:"text-gray-700 dark:text-gray-300",vibrant:"text-white"}},defaultVariants:{variant:"default"}}),lo=P.cva("inline-flex items-center justify-center px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2",{variants:{variant:{default:"bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white focus:ring-green-500",compact:"bg-green-600 hover:bg-green-700 text-white focus:ring-green-500",minimal:"bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",vibrant:"bg-white hover:bg-gray-100 text-blue-600 hover:text-blue-700 focus:ring-white"}},defaultVariants:{variant:"default"}}),co=({className:t,variant:e="default",size:r="default",message:n="Get Your Free Email Address - Start Using 0xmail.box Today",ctaText:o="Get Free Email",ctaLink:s="/connect",showBadge:c=!0,badgeText:l="FREE",onDismiss:d,isDismissible:g=!1,dismissAriaLabel:m="Dismiss banner"})=>a.jsx("div",{className:f(so({variant:e,size:r}),t),children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative",children:[g&&d&&a.jsx("button",{onClick:d,className:"absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors","aria-label":m,children:a.jsx("svg",{className:"w-4 h-4 text-current opacity-60",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),a.jsxs("div",{className:"flex items-center",children:[c&&a.jsx("div",{className:f("text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",e==="vibrant"?"bg-white text-blue-600":"bg-green-500 text-white"),children:l}),a.jsx("span",{className:f(io({variant:e})),children:n})]}),a.jsx(le.Link,{to:s,className:f(lo({variant:e})),children:o})]})})}),go=P.cva("rounded-lg border p-4 flex items-start gap-3",{variants:{variant:{info:"bg-blue-50 border-blue-200 text-blue-800 dark:bg-blue-900/20 dark:border-blue-800/50 dark:text-blue-200",success:"bg-green-50 border-green-200 text-green-800 dark:bg-green-900/20 dark:border-green-800/50 dark:text-green-200",warning:"bg-amber-50 border-amber-200 text-amber-800 dark:bg-amber-900/20 dark:border-amber-800/50 dark:text-amber-200",error:"bg-red-50 border-red-200 text-red-800 dark:bg-red-900/20 dark:border-red-800/50 dark:text-red-200",neutral:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700"},size:{sm:"p-3 text-sm",md:"p-4",lg:"p-6 text-lg"}},defaultVariants:{variant:"info",size:"md"}}),uo=({title:t,icon:e,children:r,variant:n="info",size:o="md",className:s,onClose:c})=>{const l={info:"🛈",success:"✓",warning:"⚠",error:"✗",neutral:"💡"};return a.jsxs("div",{className:f(go({variant:n,size:o}),s),children:[a.jsx("div",{className:"flex-shrink-0 text-lg",children:e||l[n||"info"]}),a.jsxs("div",{className:"flex-1 min-w-0",children:[t&&a.jsx("h4",{className:"font-semibold mb-2",children:t}),a.jsx("div",{children:r})]}),c&&a.jsx("button",{onClick:c,className:"flex-shrink-0 text-current hover:opacity-70 transition-opacity",children:a.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})},mo=P.cva("bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 transition-all duration-200",{variants:{variant:{default:"border-gray-200 dark:border-gray-700 border hover:shadow-lg",elevated:"shadow-lg hover:shadow-xl",minimal:"bg-transparent shadow-none border-none p-4"},trend:{none:"",up:"border-l-4 border-green-500",down:"border-l-4 border-red-500",neutral:"border-l-4 border-gray-400"}},defaultVariants:{variant:"default",trend:"none"}}),ho=({label:t,value:e,change:r,trend:n="none",icon:o,variant:s="default",className:c})=>{const l={up:"text-green-600 dark:text-green-400",down:"text-red-600 dark:text-red-400",neutral:"text-gray-600 dark:text-gray-400",none:"text-gray-600 dark:text-gray-400"},d={up:"↗",down:"↘",neutral:"→",none:""};return a.jsx("div",{className:f(mo({variant:s,trend:n}),c),children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-1",children:t}),a.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:e}),r&&a.jsxs("p",{className:f("text-sm font-medium flex items-center gap-1 mt-1",l[n||"none"]),children:[a.jsx("span",{children:d[n||"none"]}),r]})]}),o&&a.jsx("div",{className:"text-3xl opacity-80",children:o})]})})},po=P.cva("space-y-6",{variants:{variant:{default:"",card:"bg-white dark:bg-gray-800 rounded-lg border-gray-200 dark:border-gray-700 border p-6",minimal:"space-y-4"},spacing:{tight:"space-y-3",normal:"space-y-4",relaxed:"space-y-6",loose:"space-y-8"}},defaultVariants:{variant:"default",spacing:"normal"}}),fo=({title:t,description:e,children:r,variant:n="default",spacing:o="normal",className:s})=>a.jsxs("div",{className:f(po({variant:n,spacing:o}),s),children:[(t||e)&&a.jsxs("div",{className:"space-y-1",children:[t&&a.jsx("h3",{className:"text-lg font-medium text-gray-900 dark:text-white",children:t}),e&&a.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:e})]}),r]}),bo=P.cva("flex flex-col items-center text-center space-y-4",{variants:{layout:{vertical:"flex-col items-center text-center",horizontal:"flex-row items-start text-left space-y-0 space-x-4",minimal:"flex-col space-y-2"},spacing:{tight:"space-y-2",normal:"space-y-4",relaxed:"space-y-6"},interactive:{true:"transition-all duration-200 hover:transform hover:scale-105 cursor-pointer",false:""}},defaultVariants:{layout:"vertical",spacing:"normal",interactive:!1}}),yo=({icon:t,title:e,description:r,layout:n="vertical",spacing:o="normal",interactive:s=!1,className:c,onClick:l})=>a.jsxs("div",{className:f(bo({layout:n,spacing:o,interactive:s}),c),onClick:l,children:[a.jsx("div",{className:"text-4xl mb-4 flex-shrink-0",children:t}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white",children:e}),a.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed",children:r})]})]}),xo=({wallet:t,connector:e,className:r="w-8 h-8",iconBasePath:n="/wallet-icons"})=>{const o=t.toLowerCase(),s=l=>{const d={metamask:"metamask.svg",walletconnect:"walletconnect.svg",coinbase:"coinbase.svg",phantom:"phantom.svg",solflare:"solflare.svg",keplr:"keplr.svg",browser:"browser-wallet.svg",injected:"browser-wallet.svg"};for(const[g,m]of Object.entries(d))if(l.includes(g))return`${n}/${m}`;return`${n}/default.svg`};if(e?.icon)return a.jsx("img",{src:e.icon,alt:`${t} wallet`,className:`${r} rounded-lg`,onError:l=>{const d=l.target;d.src=s(o)}});const c=s(o);return a.jsx("img",{src:c,alt:`${t} wallet`,className:`${r} rounded-lg`,onError:l=>{const d=l.target;d.src=`${n}/default.svg`}})},vo=({size:t="md",className:e="",showText:r=!0,onClick:n,logoSrc:o="/logo.png",logoAlt:s="Logo",logoText:c="0xmail.box",fontFamily:l="Dancing Script, cursive"})=>{const g=(()=>{switch(t){case"sm":return{container:"space-x-2",image:"h-6 w-6",text:"text-lg"};case"md":return{container:"space-x-2",image:"h-8 w-8",text:"text-2xl"};case"lg":return{container:"space-x-3",image:"h-10 w-10",text:"text-3xl"};case"xl":return{container:"space-x-4",image:"h-12 w-12",text:"text-4xl"};default:return{container:"space-x-2",image:"h-8 w-8",text:"text-2xl"}}})(),m=a.jsxs(a.Fragment,{children:[a.jsx("img",{src:o,alt:s,className:g.image}),r&&a.jsx("div",{className:`${g.text} font-bold text-gray-900 dark:text-gray-100`,style:{fontFamily:l,fontWeight:"700"},children:c})]});return n?a.jsx("button",{onClick:n,className:`flex items-center ${g.container} ${e} hover:opacity-80 transition-opacity`,children:m}):a.jsx("div",{className:`flex items-center ${g.container} ${e}`,children:m})},wo=({shareConfig:t})=>{const[e,r]=h.useState(!1),[n,o]=h.useState(""),[s,c]=h.useState(!1);h.useEffect(()=>{const m=t.onBeforeShare;m&&!n&&(async()=>{c(!0);try{const b=typeof window<"u"?window.location.href:"",y=await m(b);o(y)}catch(b){console.error("[ShareDropdown] Failed to prepare share URL:",b);const y=typeof window<"u"?window.location.href:"";o(y)}finally{c(!1)}})()},[t,n]);const l=n||(typeof window<"u"?window.location.href:""),d=[{component:M.TwitterShareButton,icon:M.TwitterIcon,props:{url:l,title:t.title,hashtags:t.hashtags},label:"Twitter"},{component:M.FacebookShareButton,icon:M.FacebookIcon,props:{url:l,quote:`${t.title}
|
|
56
56
|
|
|
57
|
-
${t.description}`},label:"Facebook"},{component:
|
|
57
|
+
${t.description}`},label:"Facebook"},{component:M.LinkedinShareButton,icon:M.LinkedinIcon,props:{url:l,title:t.title,summary:t.description},label:"LinkedIn"},{component:M.RedditShareButton,icon:M.RedditIcon,props:{url:l,title:t.title},label:"Reddit"},{component:M.TelegramShareButton,icon:M.TelegramIcon,props:{url:l,title:t.title},label:"Telegram"},{component:M.WhatsappShareButton,icon:M.WhatsappIcon,props:{url:l,title:t.title,separator:`
|
|
58
58
|
|
|
59
|
-
`},label:"WhatsApp"}],u=async()=>{try{await navigator.clipboard.writeText(l),r(!1)}catch(m){console.error("Failed to copy:",m)}};return a.jsxs("div",{className:"relative",children:[a.jsx("button",{onClick:()=>r(!e),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:a.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.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"})})}),e&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-[999998]",onClick:()=>r(!1)}),a.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?a.jsx("div",{className:"flex items-center justify-center px-3 py-2",children:a.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.jsxs(a.Fragment,{children:[c.map((m,p)=>{const f=m.component,x=m.icon;return a.jsx(f,{...m.props,className:"w-full",children:a.jsxs("div",{className:"flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[a.jsx(x,{size:16,round:!0,className:"mr-2"}),a.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:m.label})]})},p)}),a.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:[a.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:a.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"})}),a.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Copy Link"})]})]})})]})]})},Xt=({items:t,shareConfig:e,className:r,showHome:o})=>a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("nav",{"aria-label":"Breadcrumb",children:a.jsx("ol",{className:"flex items-center text-sm space-x-2",children:t.map((n,s)=>a.jsxs(b.Fragment,{children:[a.jsx("li",{children:n.current?a.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:n.label}):a.jsx(ge.Link,{to:n.href||"#",className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 transition-colors",children:n.label})}),s<t.length-1&&a.jsx("li",{children:a.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"/"})})]},s))})}),e&&a.jsx(mi,{shareConfig:e})]}),bi=({items:t,shareConfig:e})=>a.jsx("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 relative z-50",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 relative",children:a.jsx(Xt,{items:t,shareConfig:e})})}),pi=({filename:t,code:e,language:r,title:o,className:n="",showCopy:s=!0,showHeader:d=!0})=>{const{t:l}=st.useTranslation("codeBlock"),{code:c,loading:u,error:m}=Mt(t||""),[p,f]=b.useState(!1),x=e||c,w=r||(t?(S=>{switch(S.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"}})(t):"text"),$=async()=>{if(x)try{await navigator.clipboard.writeText(x),f(!0),setTimeout(()=>f(!1),2e3)}catch(S){console.error("Failed to copy code:",S)}};return t&&u?a.jsx("div",{className:`bg-gray-900 text-green-400 rounded-lg p-4 font-mono text-sm ${n}`,children:a.jsx("div",{className:"animate-pulse text-gray-500",children:l("loadingCode","Loading code...")})}):t&&m?a.jsxs("div",{className:`bg-gray-900 text-red-400 rounded-lg p-4 font-mono text-sm ${n}`,children:[l("error","Error"),": ",m]}):x?a.jsxs("div",{className:`bg-gray-900 rounded-lg border border-green-500/20 shadow-lg shadow-green-500/10 ${n}`,children:[d&&a.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-green-500/20 bg-gray-800/50",children:[a.jsx("span",{className:"text-sm text-green-400 font-mono",children:o||t||`${w} code`}),s&&a.jsx("button",{onClick:$,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:p?a.jsx(v.CheckIcon,{className:"h-4 w-4 text-green-400"}):a.jsx(v.ClipboardDocumentIcon,{className:"h-4 w-4 group-hover:scale-110 transition-transform"})})]}),a.jsx("div",{className:"p-4 overflow-x-auto",children:a.jsx("pre",{className:`text-sm language-${w}`,children:a.jsx("code",{className:"text-gray-100",children:x})})})]}):a.jsx("div",{className:`bg-gray-900 text-gray-400 rounded-lg p-4 font-mono text-sm ${n}`,children:l("noCode","No code to display")})},hi=({title:t,description:e,code:r,preview:o,language:n="tsx",showBrowserChrome:s=!0,copyKey:d})=>{const[l,c]=b.useState({}),u=(f,x)=>{navigator.clipboard.writeText(f).then(()=>{c(k=>({...k,[x]:!0})),setTimeout(()=>{c(k=>({...k,[x]:!1}))},2e3)})},m=d||`${t}-code`,p=l[m];return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:t}),e&&a.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm",children:e})]}),o&&a.jsxs("div",{className:"relative",children:[s&&a.jsxs("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-t-lg px-4 py-3 flex items-center space-x-2",children:[a.jsxs("div",{className:"flex space-x-2",children:[a.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),a.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),a.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),a.jsx("div",{className:"flex-1 text-center",children:a.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"})})]}),a.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:o})]}),a.jsx("div",{className:"relative",children:a.jsxs("div",{className:"bg-gray-900 rounded-lg overflow-hidden",children:[a.jsxs("div",{className:"bg-gray-800 px-4 py-2 flex justify-between items-center",children:[a.jsx("span",{className:"text-gray-300 text-sm font-mono",children:n}),a.jsx("button",{onClick:()=>u(r,m),className:"flex items-center space-x-1 text-gray-300 hover:text-white transition-colors text-sm","aria-label":p?"Copied!":"Copy code",children:p?a.jsxs(a.Fragment,{children:[a.jsx(v.CheckIcon,{className:"h-4 w-4"}),a.jsx("span",{children:"Copied!"})]}):a.jsxs(a.Fragment,{children:[a.jsx(v.ClipboardIcon,{className:"h-4 w-4"}),a.jsx("span",{children:"Copy"})]})})]}),a.jsx("div",{className:"p-4 overflow-x-auto",children:a.jsx("pre",{className:"text-gray-100 text-sm leading-relaxed",children:a.jsx("code",{children:r})})})]})})]})},yi=({subsections:t,isExpanded:e,selectedSubsection:r,parentSectionId:o,onSubsectionSelect:n})=>{const s=b.useRef(null),[d,l]=b.useState(void 0);return b.useLayoutEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(e?c+16:0)}},[e,t]),a.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:d!==void 0?`${d}px`:"auto"},children:a.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:t.map(c=>a.jsx("button",{onClick:()=>n?.(c.id,o),className:`block w-full text-left px-3 py-2 rounded-md text-sm transition-all duration-200 hover:scale-[1.02] ${r===c.id?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-800 dark:hover:text-gray-200"}`,children:c.title},c.id))})})},fi=({id:t,title:e,content:r,subsections:o,isSelected:n=!1,selectedSubsection:s=null,onSectionSelect:d,onSubsectionSelect:l,className:c=""})=>{const[u,m]=b.useState(!1),p=()=>{m(!u)},f=()=>{d?.(t)},x=o&&o.length>0;return a.jsxs("div",{className:c,children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("button",{onClick:f,className:`flex-1 text-left px-3 py-4 text-base font-medium transition-all duration-200 hover:bg-gray-50 dark:hover:bg-gray-800 ${n&&!s?"bg-blue-50 dark:bg-blue-900/10 text-blue-700 dark:text-blue-300":"text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100"}`,children:e}),x&&a.jsx("button",{onClick:p,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:a.jsx(v.ChevronRightIcon,{className:`h-5 w-5 text-gray-500 transition-transform duration-300 ease-in-out ${u?"rotate-90":"rotate-0"}`})})]}),x&&a.jsx(yi,{subsections:o,isExpanded:u,selectedSubsection:s,parentSectionId:t,onSubsectionSelect:l})]})},xi=({title:t,subtitle:e,buttonText:r,buttonIcon:o="envelope",variant:n="default",badgeText:s="FREE",prominentBadgeText:d="100% Free",onButtonClick:l,className:c=""})=>{const u=()=>o==="envelope"||o==="both"?a.jsx(v.EnvelopeIcon,{className:n==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1"}):o==="none"?null:a.jsx("svg",{className:n==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.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"})}),m=()=>o==="arrow"||o==="both"?a.jsx(v.ArrowRightIcon,{className:"h-4 w-4 ml-2"}):null,p=()=>n==="prominent"?"border-b-2 border-green-200 dark:border-green-700":"border-b border-green-200 dark:border-green-700",f=()=>{const w="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 n==="prominent"?`${w} px-8 py-3 text-base`:`${w} px-6 py-2 text-sm`},x=()=>n==="prominent"?"text-green-800 dark:text-green-200 font-semibold text-lg":"text-green-800 dark:text-green-200 font-semibold",k=n==="prominent"?d:s;return a.jsx("div",{className:`bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 ${p()} ${c}`,children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[a.jsxs("div",{className:`flex items-center ${n==="prominent"?"text-center sm:text-left":""}`,children:[a.jsx("div",{className:"bg-green-500 text-white text-xs font-bold px-3 py-1 rounded-full mr-3 animate-pulse",children:k}),a.jsxs("div",{children:[a.jsx("span",{className:x(),children:t}),e&&a.jsx("span",{className:"text-green-700 dark:text-green-300 text-sm block",children:e})]})]}),a.jsxs("button",{onClick:l,className:f(),children:[u(),r,m()]})]})})})},ki=({children:t,onClick:e,variant:r,size:o,disabled:n,className:s,type:d,trackingLabel:l,actionType:c,componentName:u,onTrack:m,trackingParams:p={},...f})=>{const x=k=>{if(m){const w=l||(typeof t=="string"?t:"")||"Unknown Button",S=r&&["default","primary","secondary","outline","ghost","destructive","link"].includes(r)?r:"default";m({button_text:w,button_type:S,component_name:u,action_type:c,...p})}e&&e(k)};return a.jsx(q,{...f,variant:r,size:o,disabled:n,className:s,type:d,onClick:x,children:t})},wi=({children:t,onClick:e,to:r,href:o,trackingLabel:n,componentName:s,onTrack:d,trackingParams:l={},LinkComponent:c,linkProps:u={},...m})=>{const p=x=>{if(d){const k=n||(typeof t=="string"?t:"")||"Unknown Link",w=r?typeof r=="string"?r:r.pathname||"":o||"";d({link_text:k,link_url:w,to_page:w,navigation_type:c?"router_link":"anchor_link",component_name:s,...l})}e&&e(x)};if(c&&r!==void 0)return a.jsx(c,{...u,to:r,onClick:p,...m,children:t});const f=r?typeof r=="string"?r:r.pathname||"#":o;return a.jsx("a",{...m,href:f,onClick:p,children:t})},Rt={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:"🇨🇳"}},vi=({variant:t="compact",className:e=""})=>{const{i18n:r,t:o}=st.useTranslation("languageSelector"),[n,s]=b.useState(r.language),d=b.useMemo(()=>r.options.supportedLngs?r.options.supportedLngs.filter(u=>u!=="cimode").map(u=>({code:u,name:Rt[u]?.name||u.toUpperCase(),flag:Rt[u]?.flag||"🌐"})).sort((u,m)=>u.name.localeCompare(m.name)):[],[r.options.supportedLngs]),l=d.find(u=>u.code===n||u.code.toLowerCase()===n.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(m=>{console.error("Failed to change language:",m)})};return t==="compact"?a.jsx("div",{className:`relative ${e}`,children:a.jsxs(Fe,{value:n,onValueChange:c,children:[a.jsx(ye,{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:a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("span",{className:"text-lg leading-none",children:l?.flag}),a.jsx("span",{className:"hidden sm:block text-sm font-medium text-gray-700 dark:text-gray-300",children:l?.name})]})}),a.jsx(fe,{children:d.map(u=>a.jsx(xe,{value:u.code,className:"cursor-pointer",children:a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("span",{className:"text-lg leading-none",children:u.flag}),a.jsx("span",{className:"text-sm",children:u.name})]})},u.code))})]})}):a.jsxs("div",{className:`space-y-2 ${e}`,children:[a.jsxs("label",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 flex items-center space-x-2",children:[a.jsx(v.LanguageIcon,{className:"h-4 w-4 text-gray-500 dark:text-gray-400"}),a.jsx("span",{children:o("language","Language")})]}),a.jsxs(Fe,{value:n,onValueChange:c,children:[a.jsx(ye,{children:a.jsx(Dt,{placeholder:o("selectLanguage","Select language")})}),a.jsx(fe,{children:d.map(u=>a.jsx(xe,{value:u.code,className:"cursor-pointer",children:a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("span",{className:"text-lg leading-none",children:u.flag}),a.jsx("span",{children:u.name})]})},u.code))})]}),a.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:o("selectPreferredLanguage","Select your preferred language")})]})},Ci=({items:t,type:e="ordered",variant:r="default",className:o,itemClassName:n})=>{const s=()=>{const u="space-y-2",m={ordered:e==="ordered"?"list-decimal":"",unordered:e==="unordered"?"list-disc":""},p={default:"list-inside",enhanced:"list-inside space-y-3",minimal:"list-none space-y-1"};return h(u,m[e],p[r])},d=u=>{const m="text-gray-600 dark:text-gray-400";return r==="enhanced"?h(m,"relative pl-8 pb-2 border-l-2 border-gray-200 dark:border-gray-700",u===t.length-1&&"border-l-transparent"):r==="minimal"?h(m,"flex items-start"):m},l=u=>r==="enhanced"&&e==="ordered"?a.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,m)=>{const p=typeof u=="object",f=p?u.content:u,x=p?u.subItems:void 0;return a.jsxs("li",{className:h(d(m),n),children:[l(m),r==="minimal"&&e==="ordered"&&a.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:m+1}),r==="minimal"&&e==="unordered"&&a.jsx("span",{className:"inline-block w-2 h-2 bg-blue-600 rounded-full mt-2 mr-3 flex-shrink-0"}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{children:f}),x&&x.length>0&&a.jsx("ul",{className:"mt-2 ml-4 space-y-1 list-disc list-inside text-sm text-gray-500 dark:text-gray-500",children:x.map((k,w)=>a.jsx("li",{children:k},w))})]})]},m)};return a.jsx("ul",{className:h(s(),o),children:t.map(c)})};class Si extends b.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){console.error("ErrorBoundary caught an error:",e,r),this.props.onError?.(e,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:a.jsxs("div",{style:{padding:"20px",border:"1px solid red",margin:"10px"},children:[a.jsx("h2",{children:"Something went wrong"}),a.jsxs("p",{children:["Error: ",this.state.error?.message||"Unknown error"]}),a.jsx("button",{onClick:()=>this.setState({hasError:!1}),children:"Try again"})]}):this.props.children}}class Ni extends b.Component{constructor(e){super(e),this.retryTimer=null,this.sendErrorToMonitoring=(r,o)=>{try{typeof window<"u"&&window.Sentry&&window.Sentry?.captureException(r,{contexts:{react:{componentStack:o.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(n){console.warn("Failed to send error to monitoring:",n)}},this.handleRetry=()=>{const{maxRetries:r=3,retryDelay:o=1e3}=this.props,{retryCount:n}=this.state;if(n>=r){console.warn(`Max retries (${r}) exceeded for ${this.props.componentName}`);return}this.setState({isRetrying:!0}),this.retryTimer&&clearTimeout(this.retryTimer);const s=o*Math.pow(2,n);this.retryTimer=setTimeout(()=>{this.setState({hasError:!1,error:null,errorInfo:null,retryCount:n+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(e){return{hasError:!0,error:e,lastErrorTime:Date.now()}}componentDidCatch(e,r){const{onError:o,componentName:n}=this.props;this.setState({error:e,errorInfo:r}),console.error(`LazyErrorBoundary caught an error in ${n||"Unknown Component"}:`,e,r),o?.(e,r),this.sendErrorToMonitoring(e,r)}componentWillUnmount(){this.retryTimer&&clearTimeout(this.retryTimer)}render(){const{children:e,fallback:r,componentName:o,showRetryButton:n=!0,maxRetries:s=3}=this.props,{hasError:d,error:l,isRetrying:c,retryCount:u}=this.state;return d&&l?r||a.jsx("div",{className:"lazy-error-boundary error-boundary-container",children:a.jsxs("div",{className:"error-content",children:[a.jsx("div",{className:"error-icon",children:"⚠️"}),a.jsxs("h3",{className:"error-title",children:["Something went wrong loading ",o||"this component"]}),a.jsxs("div",{className:"error-details",children:[a.jsx("p",{className:"error-message",children:l.message}),process.env.NODE_ENV==="development"&&a.jsxs("details",{className:"error-stack",children:[a.jsx("summary",{children:"Error Details (Development)"}),a.jsx("pre",{children:l.stack})]})]}),a.jsxs("div",{className:"error-actions",children:[n&&u<s&&a.jsx("button",{onClick:this.handleRetry,disabled:c,className:"retry-button",children:c?"Retrying...":`Retry (${u}/${s})`}),u>=s&&a.jsx("button",{onClick:this.handleReload,className:"reload-button",children:"Reload Page"})]}),a.jsxs("div",{className:"error-help",children:[a.jsx("p",{children:"This might be a temporary issue. Try refreshing the page."}),navigator.onLine===!1&&a.jsx("p",{className:"offline-notice",children:"You appear to be offline. Check your connection and try again."})]})]})}):e}}const Ei=({children:t})=>a.jsx(a.Fragment,{children:t}),$i=({children:t})=>a.jsx(a.Fragment,{children:t}),Ii=(t,e,r)=>{const o=b.memo(t,e);return r&&(o.displayName=`Memo(${r})`),process.env.NODE_ENV==="development"?n=>(b.useMemo(()=>{let d=0;return()=>++d},[])(),a.jsx(o,{...n})):o},Ai=(t,e)=>b.memo(t,(r,o)=>e.every(n=>r[n]===o[n])),Pi=b.memo(({children:t,compute:e,deps:r})=>{const o=b.useRef(r),n=b.useRef(e),s=b.useRef(void 0),d=b.useMemo(()=>{const l=r.length!==o.current.length||r.some((u,m)=>u!==o.current[m]),c=e!==n.current;if(l||c||s.current===void 0){let u;if(process.env.NODE_ENV==="development"){const m=performance.now();u=e();const p=performance.now();p-m>16&&console.warn(`Expensive computation took ${p-m}ms`)}else u=e();return o.current=r,n.current=e,s.current=u,u}return s.current},[e,r]);return a.jsx(a.Fragment,{children:t(d)})}),Ti=b.memo(({item:t,index:e,style:r,renderItem:o})=>a.jsx("div",{style:r,children:o(t,e)}),(t,e)=>t.index===e.index&&t.item===e.item&&t.style.height===e.style.height&&t.style.top===e.style.top),Li=b.memo(({condition:t,children:e,fallback:r=null})=>t?a.jsx(a.Fragment,{children:e}):a.jsx(a.Fragment,{children:r})),zi=({children:t,threshold:e=.1,rootMargin:r="50px",fallback:o=null})=>{const[n,s]=b.useState(!1),d=b.useRef(null);return b.useEffect(()=>{const l=new IntersectionObserver(([c])=>{c.isIntersecting&&(s(!0),l.disconnect())},{threshold:e,rootMargin:r});return d.current&&l.observe(d.current),()=>l.disconnect()},[e,r]),a.jsx("div",{ref:d,children:n?t:o})},ji=({children:t,maxRenderTime:e=16,onSlowRender:r})=>{const o=b.useRef(0);return b.useLayoutEffect(()=>{o.current=performance.now()}),b.useEffect(()=>{const n=performance.now()-o.current;n>e&&(r?.(n),process.env.NODE_ENV==="development"&&console.warn(`Slow render detected: ${n}ms (threshold: ${e}ms)`))}),a.jsx(a.Fragment,{children:t})},Mi=({children:t,batchSize:e=5,delay:r=0})=>{const[o,n]=b.useState(e);return b.useEffect(()=>{if(o<t.length){const s=setTimeout(()=>{n(d=>Math.min(d+e,t.length))},r);return()=>clearTimeout(s)}},[o,t.length,e,r]),a.jsx(a.Fragment,{children:t.slice(0,o)})},Oi=({src:t,alt:e,placeholder:r,lowQualitySrc:o,aspectRatio:n="16/9",eager:s=!1,className:d="",...l})=>{const[c,u]=b.useState(!1),[m,p]=b.useState(s),[f,x]=b.useState(!1),k=b.useRef(null),w=b.useRef(null);b.useEffect(()=>{if(s){p(!0);return}return w.current=new IntersectionObserver(N=>{N.forEach(A=>{A.isIntersecting&&(p(!0),w.current&&k.current&&w.current.unobserve(k.current))})},{rootMargin:"50px",threshold:.01}),k.current&&w.current.observe(k.current),()=>{w.current&&w.current.disconnect()}},[s]);const $=()=>{u(!0)},S=()=>{x(!0),console.warn(`Failed to load image: ${t}`)};return a.jsxs("div",{className:`relative overflow-hidden ${d}`,style:{aspectRatio:n},children:[o&&!c&&a.jsx("img",{src:o,alt:"",className:"absolute inset-0 w-full h-full object-cover blur-sm","aria-hidden":"true"}),!o&&!c&&a.jsx("div",{className:"absolute inset-0 bg-gray-200 dark:bg-gray-700 animate-pulse","aria-hidden":"true"}),m&&!f&&a.jsx("img",{ref:k,src:t,alt:e,onLoad:$,onError:S,className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-500 ${c?"opacity-100":"opacity-0"}`,loading:s?"eager":"lazy",...l}),f&&a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-100 dark:bg-gray-800",children:a.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400",children:[a.jsx("svg",{className:"mx-auto h-12 w-12 mb-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.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"})}),a.jsx("p",{className:"text-sm",children:"Failed to load image"})]})})]})},Wi=({title:t,description:e,primaryButton:r,secondaryButton:o,gradient:n={from:"blue-600",to:"purple-600"},textColor:s="light",className:d="",size:l="lg"})=>{const c=n.via?`bg-gradient-to-r from-${n.from} via-${n.via} to-${n.to}`:`bg-gradient-to-r from-${n.from} to-${n.to}`,u=s==="light"?"text-white":"text-gray-900",m={sm:"py-12",md:"py-16",lg:"py-20"},p={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"},x=(k,w=!1)=>{const $=()=>k.variant==="primary"||w?"gradient":(k.variant==="secondary","outline"),S=a.jsx(q,{variant:$(),size:"lg",className:w?"":"bg-white/10 hover:bg-white/20 backdrop-blur-sm border-white/30",children:k.label});return k.external?a.jsx("a",{href:k.href,target:"_blank",rel:"noopener noreferrer",children:S}):a.jsx(ge.Link,{to:k.href,children:S})};return a.jsxs("section",{className:`${c} ${m[l]} relative overflow-hidden ${d}`,children:[a.jsx("div",{className:"absolute inset-0 bg-black/20"}),a.jsxs("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 w-full h-full",children:[a.jsx("div",{className:"absolute top-10 left-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-10 right-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"})]}),a.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[a.jsx("h2",{className:`${p[l]} font-bold ${u} mb-6`,children:t}),a.jsx("p",{className:`${f[l]} ${u}/90 mb-8 max-w-2xl mx-auto`,children:e}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[x(r,!0),o&&x(o,!1)]})]})]})},Bi=({children:t,backgroundClassName:e="",contentClassName:r=""})=>a.jsx("div",{className:e,children:a.jsx("div",{className:r,children:t})}),Di=({title:t,description:e})=>a.jsxs("div",{className:"mb-8",children:[a.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:t}),e&&a.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:e})]}),Fi=({masterTitle:t,masterSubtitle:e,backButtonText:r,masterContent:o,detailContent:n,detailTitle:s,mobileView:d="navigation",onBackToNavigation:l,masterClassName:c="",detailClassName:u="",detailTitleClassName:m="",masterWidth:p=320,stickyMaster:f=!0,stickyTopOffset:x=96,desktopGap:k=32,showMasterBackground:w=!0,enableAnimations:$=!0,animationDuration:S=300,animationRef:N})=>{const A=`gap-${Math.round(k/4)}`||"gap-8",j=de=>de?de.split("-")[0].trim():"Back",Ne=r?j(r):t?j(t):"Back",[pl,xr]=b.useState(!1),[kr,at]=b.useState("auto"),X=b.useRef(null),le=b.useRef(null);b.useEffect(()=>(N&&(N.current={triggerTransition:de=>{if(!$){de();return}if(X.current){const ot=X.current.scrollHeight;at(ot)}xr(!0),le.current&&clearTimeout(le.current),le.current=setTimeout(()=>{de(),setTimeout(()=>{if(X.current){const ot=X.current.scrollHeight;at(ot),setTimeout(()=>{at("auto"),xr(!1)},S)}},50)},S/2)}}),()=>{le.current&&clearTimeout(le.current)}),[$,S,N]);const wr=$?{height:kr==="auto"?"auto":`${kr}px`,transition:`height ${S}ms cubic-bezier(0.4, 0, 0.2, 1)`,width:"100%",maxWidth:"100%"}:{width:"100%",maxWidth:"100%"},vr=$?`${pl?"opacity-0 transform translate-y-2":"opacity-100 transform translate-y-0"}`:"",Cr=$?{transition:`opacity ${S}ms ease-in-out, transform ${S}ms ease-in-out`}:{};return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`md:hidden ${d==="navigation"?"block":"hidden"} flex-1`,children:a.jsxs("div",{className:w?"bg-white dark:bg-gray-800 p-6":"p-6",children:[t&&a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:e})]}),a.jsx("div",{className:c,children:o})]})}),a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[a.jsxs("div",{className:`md:hidden ${d==="content"?"block":"hidden"}`,children:[d==="content"&&l&&a.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:["← ",Ne]}),a.jsx("div",{ref:X,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${u}`,style:wr,children:a.jsxs("div",{className:vr,style:Cr,children:[s&&a.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${m}`,children:s}),n]})})]}),a.jsxs("div",{className:`hidden md:flex min-h-full ${A}`,style:{width:"100%"},children:[a.jsx("aside",{className:"flex-shrink-0",style:{width:`${p}px`,minWidth:`${p}px`},children:a.jsxs("div",{className:f?"sticky":"",style:f?{top:`${x}px`}:void 0,children:[t&&a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:e}),a.jsx("div",{className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 ${f?"max-h-[calc(100vh-200px)] overflow-y-auto":""} ${c}`,children:o})]})}),a.jsx("div",{className:"flex-1 min-w-0",style:{width:`calc(100% - ${p+k}px)`},children:a.jsx("div",{ref:X,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${u}`,style:wr,children:a.jsxs("div",{className:vr,style:Cr,children:[s&&a.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${m}`,children:s}),n]})})})]})]})]})},_i=({children:t})=>(b.useEffect(()=>{const e=()=>{[{href:"/fonts/inter-var.woff2",as:"font",type:"font/woff2",crossorigin:!0},{href:"/images/hero-background.webp",as:"image",type:"image/webp"},{href:"/images/logo.svg",as:"image",type:"image/svg+xml"}].forEach(p=>{const f=document.createElement("link");f.rel="preload",f.href=p.href,f.as=p.as,p.type&&(f.type=p.type),p.crossorigin&&(f.crossOrigin=""),document.head.appendChild(f)})},r=()=>{if(document.querySelectorAll('img[data-priority="high"]').forEach(f=>{f.fetchPriority="high"}),document.querySelector("[data-hero]")){const f=document.createElement("link");f.rel="preload",f.href="/images/hero-background.webp",f.as="image",f.type="image/webp",document.head.appendChild(f)}},o=()=>{document.querySelectorAll("img:not([width]):not([height])").forEach(f=>{const x=f;x.naturalWidth&&x.naturalHeight&&(x.width=x.naturalWidth,x.height=x.naturalHeight)}),document.querySelectorAll("[data-dynamic]").forEach(f=>{f.getAttribute("style")?.includes("min-height")||(f.style.minHeight="200px")})},n=()=>{const m=()=>{document.querySelectorAll("script[data-defer]").forEach(x=>{x.setAttribute("defer","")})};"requestIdleCallback"in window?requestIdleCallback(()=>{m()}):setTimeout(m,1),(()=>{["scroll","touchstart","touchmove","wheel"].forEach(x=>{document.addEventListener(x,()=>{},{passive:!0})})})()},s=()=>{},d=()=>{[{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(p=>{const f=document.createElement("link");f.rel=p.rel,f.href=p.href,p.crossorigin&&(f.crossOrigin=""),document.head.appendChild(f)})},l=()=>{if(document.querySelectorAll("img[data-lazy]").forEach(p=>{p.loading="lazy"}),"IntersectionObserver"in window){const p=new IntersectionObserver(x=>{x.forEach(k=>{if(k.isIntersecting){const w=k.target;w.dataset.src&&(w.src=w.dataset.src,w.removeAttribute("data-src")),p.unobserve(w)}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(x=>p.observe(x))}},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:x,content:k})=>{if(!document.querySelector(`meta[name="${x}"]`)){const w=document.createElement("meta");w.name=x,w.content=k,document.head.appendChild(w)}});const p={"@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"}},f=document.createElement("script");f.type="application/ld+json",f.textContent=JSON.stringify(p),document.head.appendChild(f)},u=()=>{document.querySelectorAll('link[rel="stylesheet"][data-non-critical]').forEach(p=>{const f=p.cloneNode(!0);f.rel="preload",f.as="style",f.onload=()=>{f.onload=null,f.rel="stylesheet"},document.head.appendChild(f),p.remove()})};return e(),r(),o(),n(),d(),l(),c(),u(),setTimeout(s,2e3),()=>{}},[]),a.jsx(a.Fragment,{children:t})),qi=()=>(b.useEffect(()=>{if(typeof window>"u"||typeof document>"u"||!document.documentElement)return;const t=()=>{if("IntersectionObserver"in window){const l=new IntersectionObserver(c=>{c.forEach(u=>{if(u.isIntersecting){const m=u.target;m.dataset.src&&(m.src=m.dataset.src,m.removeAttribute("data-src"),l.unobserve(m))}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(c=>{l.observe(c)})}const n=()=>{["/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)}},d=()=>{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(()=>{n(),s(),d()},{timeout:2e3})},e=()=>{if("PerformanceObserver"in window){const n=new PerformanceObserver(d=>{const l=d.getEntries(),c=l[l.length-1];c&&c.startTime>2500&&(console.warn("Poor LCP detected, implementing aggressive optimizations"),document.documentElement.style.setProperty("--animation-duration","0s"),localStorage.setItem("reduce-image-quality","true"))});try{n.observe({entryTypes:["largest-contentful-paint"]})}catch{}const s=new PerformanceObserver(d=>{let l=0;for(const c of d.getEntries())c.hadRecentInput||(l+=c.value);l>.1&&(console.warn("High CLS detected:",l),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 n=navigator.connection;if(n){const s=n.effectiveType;s==="slow-2g"||s==="2g"?(document.documentElement.classList.add("slow-connection"),document.querySelectorAll('link[rel="prefetch"]').forEach(d=>{d.getAttribute("data-critical")||d.remove()}),localStorage.setItem("use-low-quality-images","true")):s==="3g"?document.documentElement.classList.add("moderate-connection"):document.documentElement.classList.add("fast-connection")}}};return(()=>{t(),e(),r()})(),()=>{if("PerformanceObserver"in window)try{PerformanceObserver.supportedEntryTypes.forEach(()=>{})}catch{}}},[]),null),Vi=({children:t})=>a.jsx(a.Fragment,{children:t}),Ui={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 Hi{constructor(){this.cache=new Map}set(e,r,o){if(this.cache.size>=o.maxSize){const n=this.cache.keys().next().value;n&&this.cache.delete(n)}this.cache.set(e,{data:r,timestamp:Date.now(),isStale:!1})}get(e,r){const o=this.cache.get(e);if(!o)return null;const s=Date.now()-o.timestamp>r.duration;return s&&!r.staleWhileRevalidate?(this.cache.delete(e),null):{data:o.data,isStale:s}}invalidate(e){for(const r of this.cache.keys())r.includes(e)&&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((e,r)=>e+JSON.stringify(r).length*2,0)}}const Z=new Hi,G=new Map,er=async(t,e,r="messages")=>{const o=Ui[r],n=Z.get(t,o);if(n&&!n.isStale)return n.data;const s=G.get(t);if(s)return s;if(n&&n.isStale&&o.staleWhileRevalidate){const l=e().then(c=>(Z.set(t,c,o),G.delete(t),c)).catch(c=>{throw G.delete(t),c});return G.set(t,l),n.data}const d=e().then(l=>(Z.set(t,l,o),G.delete(t),l)).catch(l=>{throw G.delete(t),l});return G.set(t,d),d};class Gi{constructor(){this.queue=[],this.timer=null,this.batchDelay=10}add(e,r){return new Promise((o,n)=>{this.queue.push({key:e,fetcher:r,resolve:o,reject:n}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.processBatch()},this.batchDelay)})}async processBatch(){const e=[...this.queue];this.queue.length=0,this.timer=null;const r=this.groupRequests(e);for(const o of r)await Promise.allSettled(o.map(async n=>{try{const s=await n.fetcher();n.resolve(s)}catch(s){n.reject(s)}}))}groupRequests(e){const r=[];for(let n=0;n<e.length;n+=5)r.push(e.slice(n,n+5));return r}}const Ki=new Gi;class Yi{constructor(e,r={}){this.requestInterceptors=[],this.responseInterceptors=[],this.baseURL=e,this.defaultHeaders=r}addRequestInterceptor(e){this.requestInterceptors.push(e)}addResponseInterceptor(e){this.responseInterceptors.push(e)}async request(e,r={},o,n="messages"){const s=`${this.baseURL}${e}`,d=o||`${r.method||"GET"}:${s}`,l=async()=>{let c={...r,headers:{...this.defaultHeaders,...r.headers}};for(const f of this.requestInterceptors)c=f(c);const u=performance.now();let m=await fetch(s,c);for(const f of this.responseInterceptors)m=await f(m);const p=performance.now();if(process.env.NODE_ENV==="development"&&p-u>1e3&&console.warn(`Slow API request: ${s} took ${p-u}ms`),!m.ok)throw new Error(`API Error: ${m.status} ${m.statusText}`);return m.json()};return r.method==="GET"&&this.shouldBatch(e)?Ki.add(d,l):er(d,l,n)}shouldBatch(e){return e.includes("/messages/")&&!e.includes("/messages?")}async get(e,r){return this.request(e,{method:"GET"},void 0,r)}async post(e,r){return this.request(e,{method:"POST",body:JSON.stringify(r)})}async put(e,r){return this.request(e,{method:"PUT",body:JSON.stringify(r)})}async delete(e){return this.request(e,{method:"DELETE"})}}const Qi=async(t,e=3,r=1e3)=>{let o;for(let n=0;n<=e;n++)try{return await t()}catch(s){if(o=s,n===e)throw o;const d=r*Math.pow(2,n)+Math.random()*1e3;await new Promise(l=>setTimeout(l,d))}throw o};class Zi{constructor(){this.abortController=new AbortController}async request(e,r={}){const o=await fetch(e,{...r,signal:this.abortController.signal});if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return o.json()}cancel(){this.abortController.abort()}}const Ji={invalidate:t=>Z.invalidate(t),clear:()=>Z.clear(),getStats:()=>Z.getStats(),warmUp:async t=>{await Promise.allSettled(t.map(e=>e()))},prefetch:async t=>{"requestIdleCallback"in window?window.requestIdleCallback(async()=>{await Promise.allSettled(t.map(e=>e()))}):setTimeout(async()=>{await Promise.allSettled(t.map(e=>e()))},100)}};function tr(){if(typeof window>"u")return!1;const t=window.navigator.userAgent.toLowerCase();return["metamask","trustwallet","coinbase","rainbow","phantom","solflare","exodus","ledger","binance","okx"].some(r=>t.includes(r))}function rr(){return typeof window>"u"?!1:window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"}function ar(){if(typeof window>"u")return!1;const t=window.location.hostname;return/^\d+\.\d+\.\d+\.\d+$/.test(t)}function or(){return rr()?"localhost":tr()?"wallet-browser":ar()?"network":"production"}function Xi(){const t=or();return t==="localhost"||t==="wallet-browser"}function Ri(t){}function nr(){return typeof window<"u"}function es(){return typeof window<"u"}function ts(t,e){if(nr())t();else return e}const ir={"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'"]},sr=()=>Object.entries(ir).map(([t,e])=>`${t} ${e.join(" ")}`).join("; "),rs={"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":sr()},as={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"},os=()=>{typeof window<"u"&&document.addEventListener("securitypolicyviolation",t=>{console.warn("CSP Violation:",{blockedURI:t.blockedURI,violatedDirective:t.violatedDirective,originalPolicy:t.originalPolicy,sourceFile:t.sourceFile,lineNumber:t.lineNumber})})},ns={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"},F=new Map,ee=new Map,ve=new Set;let te="medium",Ke=!1;function is(){if("connection"in navigator){const r=navigator.connection;r&&(te=r.effectiveType==="4g"?"fast":r.effectiveType==="3g"?"medium":"slow")}const t=navigator.deviceMemory,e=navigator.hardwareConcurrency;Ke=t&&t<4||e&&e<4}is();function ss(t,e,r={}){const{retries:o=3,timeout:n=1e4,fallback:s,preloadCondition:d,cacheStrategy:l="memory",priority:c="medium",onLoad:u,onError:m}=r;if(F.has(e))return F.get(e).component;const p=b.lazy(async()=>{const x=performance.now();if(ee.has(e))return ee.get(e).then(w=>({default:w}));const k=ls(t,o,n);ee.set(e,k.then(w=>w.default));try{const w=await k,$=performance.now()-x;if(l!=="none"){const S={component:w.default,timestamp:Date.now(),loadTime:$};if(F.set(e,S),l==="session")try{sessionStorage.setItem(`lazy_${e}`,JSON.stringify({timestamp:S.timestamp,loadTime:$}))}catch{console.warn("Session storage failed for lazy component cache")}}return ee.delete(e),u?.(w.default),w}catch(w){throw ee.delete(e),m?.(w),w}}),f=x=>{const[k,w]=b.useState(!0);b.useEffect(()=>{if(d&&!F.has(e)&&d()&&!ve.has(e)){ve.add(e);const N=ds(c,te);setTimeout(()=>{t().catch(console.warn)},N)}},[]);const $=s||a.jsxs("div",{className:"flex items-center justify-center p-4",children:[a.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),a.jsxs("span",{className:"ml-2 text-sm text-gray-600",children:["Loading ",e.replace(/([A-Z])/g," $1").trim(),"..."]})]});return!k&&Ke&&te==="slow"?a.jsx("div",{className:"lazy-placeholder",children:a.jsxs("button",{onClick:()=>w(!0),className:"load-component-btn",children:["Load ",e]})}):a.jsx(b.Suspense,{fallback:$,children:a.jsx(p,{...x})})};return f.displayName=`AdvancedLazy(${e})`,f}async function ls(t,e,r){let o;for(let n=0;n<e;n++)try{const s=new Promise((l,c)=>{setTimeout(()=>c(new Error("Load timeout")),r)});return await Promise.race([t(),s])}catch(s){if(o=s,n<e-1){const d=Math.pow(2,n)*1e3,l=Math.random()*1e3;await new Promise(c=>setTimeout(c,d+l)),console.warn(`Retry ${n+1}/${e} for component load:`,s)}}throw o}function ds(t,e){const r={critical:0,high:500,medium:2e3,low:5e3},o={fast:.5,medium:1,slow:2},n=r[t]||2e3,s=o[e]||1;return n*s}const ie=class ie{static registerRoute(e,r){this.routeMap.set(e,r),this.routeUsageStats.set(e,0)}static setCurrentRoute(e){this.currentRoute=e;const r=this.routeUsageStats.get(e)||0;this.routeUsageStats.set(e,r+1),this.preloadLikelyRoutes(e)}static preloadLikelyRoutes(e){this.getRouteTransitionProbability(e).forEach(({route:o,probability:n})=>{n>.3&&!F.has(o)&&setTimeout(()=>{this.routeMap.get(o)},te==="fast"?1e3:3e3)})}static getRouteTransitionProbability(e){const r=[];switch(e){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:F.size,currentRoute:this.currentRoute,usageStats:Object.fromEntries(this.routeUsageStats)}}};ie.routeMap=new Map,ie.routeUsageStats=new Map,ie.currentRoute="";let Ye=ie;const cs=({src:t,alt:e,className:r,placeholder:o,priority:n="medium"})=>{const[s,d]=b.useState(!1),[l,c]=b.useState(!1),u=b.useRef(null);b.useEffect(()=>{if(!u.current)return;if(n==="high"){c(!0);return}const p=new IntersectionObserver(([f])=>{f.isIntersecting&&(c(!0),p.unobserve(f.target))},{rootMargin:n==="low"?"100px":"200px",threshold:.1});return p.observe(u.current),()=>p.disconnect()},[n]);const m=()=>{d(!0)};return a.jsxs("div",{className:`lazy-image-container ${r}`,children:[a.jsx("img",{ref:u,src:l?t:o||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB2aWV3Qm94PSIwIDAgMSAxIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNGM0Y0RjYiLz48L3N2Zz4=",alt:e,className:`transition-opacity duration-300 ${s?"opacity-100":"opacity-0"}`,onLoad:m,loading:n==="high"?"eager":"lazy",fetchPriority:n==="high"?"high":"low"}),!s&&l&&a.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse rounded"})]})};function gs(){F.clear(),ve.clear()}function us(){return{cachedComponents:F.size,preloadQueue:ve.size,networkSpeed:te,isLowEndDevice:Ke,cacheEntries:Array.from(F.entries()).map(([t,e])=>({name:t,loadTime:e.loadTime,age:Date.now()-e.timestamp}))}}const ms=({message:t})=>a.jsxs("div",{className:"flex items-center justify-center p-4",children:[a.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),a.jsx("span",{className:"ml-2 text-sm text-gray-600",children:t})]}),bs=t=>{if(typeof t=="function"||typeof t=="object")return t;switch(t){case"minimal":return()=>a.jsx("div",{className:"flex justify-center items-center p-4",children:"Loading..."});case"skeleton":return()=>a.jsxs("div",{className:"animate-pulse",children:[a.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),a.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]});case"default":default:return()=>a.jsx(ms,{message:"Loading component..."})}},lr=(t,e="default",r=3)=>{const o=b.lazy(async()=>{let s=null;for(let d=0;d<r;d++)try{return await t()}catch(l){s=l,console.warn(`Failed to load component (attempt ${d+1}/${r}):`,l),d<r-1&&await new Promise(c=>setTimeout(c,Math.pow(2,d)*1e3))}throw s}),n=bs(e);return s=>a.jsx(b.Suspense,{fallback:a.jsx(n,{}),children:a.jsx(o,{...s})})},ps=async t=>{try{await t()}catch(e){console.warn("Failed to preload component:",e)}},hs=t=>{const e={};return Object.entries(t).forEach(([r,o])=>{e[r]=lr(o,"skeleton")}),e},ys=t=>t,dr={critical:["/","/connect","/mail"],secondary:["/settings","/compose","/points"],optional:["/document","/about","/terms","/privacy"]},se=class se{static add(e,r){this.preloadedComponents.has(e)||(this.preloadQueue.push({name:e,loader:r}),this.processQueue())}static async processQueue(){this.isPreloading||this.preloadQueue.length===0||(this.isPreloading=!0,"requestIdleCallback"in window?window.requestIdleCallback(async()=>{const e=this.preloadQueue.shift();if(e)try{await e.loader(),this.preloadedComponents.add(e.name)}catch(r){console.warn(`Failed to preload ${e.name}:`,r)}this.isPreloading=!1,this.processQueue()}):setTimeout(async()=>{const e=this.preloadQueue.shift();if(e)try{await e.loader(),this.preloadedComponents.add(e.name)}catch(r){console.warn(`Failed to preload ${e.name}:`,r)}this.isPreloading=!1,this.processQueue()},100))}static isPreloaded(e){return this.preloadedComponents.has(e)}static clear(){this.preloadedComponents.clear(),this.preloadQueue=[],this.isPreloading=!1}};se.preloadedComponents=new Set,se.preloadQueue=[],se.isPreloading=!1;let Qe=se;const fs=()=>{"requestIdleCallback"in window&&window.requestIdleCallback(()=>{dr.secondary.forEach(t=>{})})},cr=({message:t})=>a.jsxs("div",{className:"flex items-center justify-center p-4",children:[a.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),a.jsx("span",{className:"ml-2 text-sm text-gray-600",children:t})]}),re=new Map;function xs(t,e){const{condition:r,fallback:o,retries:n=3,timeout:s=1e4,priority:d="medium",cacheKey:l=`conditional-${Math.random()}`}=e,c=u=>{const[m,p]=b.useState(!1),[f,x]=b.useState(null);return b.useEffect(()=>{const $=setTimeout(async()=>{const S=re.get(l);if(S&&S.isValid&&Date.now()-S.lastCheck<3e5)try{if(await S.condition()){x(()=>S.component),p(!0);return}}catch(N){console.warn("Cached condition check failed:",N)}try{if(await r()){const A=await vs(t,n,s);re.set(l,{component:A.default,condition:r,lastCheck:Date.now(),isValid:!0}),x(()=>A.default),p(!0)}}catch(N){console.error("Failed to load conditional component:",N)}},d==="high"?0:d==="medium"?100:500);return()=>clearTimeout($)},[]),m?f?a.jsx(b.Suspense,{fallback:o||a.jsx(cr,{message:"Loading component..."}),children:a.jsx(f,{...u})}):null:o||a.jsx(cr,{message:"Checking conditions..."})};return c.displayName=`ConditionalLazy(${l})`,c}const ks={},ws={};async function vs(t,e,r){let o;for(let n=0;n<e;n++)try{const s=new Promise((d,l)=>{setTimeout(()=>l(new Error("Import timeout")),r)});return await Promise.race([t(),s])}catch(s){if(o=s,n<e-1){const d=Math.pow(2,n)*1e3;await new Promise(l=>setTimeout(l,d))}}throw o}function Cs(){re.clear()}function Ss(){return{cachedComponents:re.size,cacheEntries:Array.from(re.entries()).map(([t,e])=>({key:t,lastCheck:e.lastCheck,isValid:e.isValid,age:Date.now()-e.lastCheck}))}}const gr=[{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 Ns{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 o=r.effectiveType;o==="4g"?this.networkSpeedEstimate="fast":o==="3g"?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}}const e=performance.now();fetch("/favicon.ico",{method:"HEAD"}).then(()=>{const r=performance.now()-e;r<100?this.networkSpeedEstimate="fast":r<300?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}).catch(()=>{this.networkSpeedEstimate="slow"})}detectDeviceCapability(){const e=navigator.deviceMemory,r=navigator.hardwareConcurrency;e&&e<4&&(this.isLowEndDevice=!0),r&&r<4&&(this.isLowEndDevice=!0),"getBattery"in navigator&&navigator.getBattery?.().then(o=>{o.level&&o.level<.2&&(this.isLowEndDevice=!0)})}startUserActivityTracking(){let e;const r=()=>{this.userActivityScore=Math.min(this.userActivityScore+1,100),clearTimeout(e),e=setTimeout(()=>{this.userActivityScore=Math.max(this.userActivityScore-1,0)},5e3)};["click","scroll","keydown","mousemove"].forEach(o=>{document.addEventListener(o,r,{passive:!0})})}shouldPreload(e){return this.networkSpeedEstimate==="slow"&&e.size>50||this.isLowEndDevice&&e.size>30?!1:e.config.condition()}async preloadChunk(e){if(!this.preloaded.has(e.name))try{if(document.querySelectorAll('script[src*="'+e.name+'"]').length===0&&document.querySelectorAll('link[href*="'+e.name+'"]').length>0)return;const o=document.createElement("link");o.rel="modulepreload",o.href=e.path.replace("*",this.getChunkHash(e.name)),o.crossOrigin="","fetchPriority"in o&&(o.fetchPriority=e.config.priority==="critical"?"high":"low"),document.head.appendChild(o),this.preloaded.add(e.name)}catch(r){console.warn(`Failed to preload chunk ${e.name}:`,r)}}getChunkHash(e){const r=Array.from(document.querySelectorAll("script[src]"));for(const o of r){const n=o.src;if(n.includes(e)){const s=n.match(new RegExp(`${e}-([A-Za-z0-9_-]+)\\.js`));if(s)return s[1]}}return"unknown"}async schedulePreload(e){const r=e.config;return r.delay&&await new Promise(o=>setTimeout(o,r.delay)),r.onIdle&&"requestIdleCallback"in window?new Promise(o=>{window.requestIdleCallback(()=>{this.preloadChunk(e).then(o)})}):this.preloadChunk(e)}initializePreloading(){gr.sort((r,o)=>{const n={critical:0,high:1,medium:2,low:3};return n[r.config.priority]-n[o.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(e){document.querySelectorAll("[data-preload-on-hover]").forEach(o=>{let n=!1;o.addEventListener("mouseenter",()=>{!n&&this.userActivityScore>30&&(this.preloadChunk(e),n=!0)},{passive:!0})})}setupScrollPreloading(e,r){let o=!1;const n=()=>{if(o)return;window.scrollY/(document.body.scrollHeight-window.innerHeight)*100>=r&&(this.preloadChunk(e),o=!0,window.removeEventListener("scroll",n))};window.addEventListener("scroll",n,{passive:!0})}startIntelligentPreloading(){setTimeout(()=>{this.userActivityScore>50&&this.networkSpeedEstimate!=="slow"&&gr.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 ae=null;function Es(){ae||(ae=new Ns,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{ae?.initializePreloading()}):ae.initializePreloading())}function $s(){return ae?.getPreloadingStats()}function Is(t){const e={"ai-content-type":t.contentType,"ai-primary-topic":t.primaryTopic,"ai-complexity-level":t.complexityLevel,"ai-content-purpose":t.contentPurpose,"ai-industry-vertical":t.industryVertical,"ai-semantic-keywords":t.semanticKeywords.join(","),"ai-target-audience":t.targetAudience.join(","),"ai-technical-tags":t.technicalTags.join(","),"ai-user-intent":t.userIntent.join(","),"ai-conversion-goals":t.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 t.contentType==="governance-page"&&(e["ai-governance-features"]="voting-notifications,multi-sig-coordination,proposal-tracking",e["ai-dao-platforms"]="snapshot,tally,aragon,safe,decentdao",e["ai-participation-boost"]="85%",e["ai-treasury-management"]="enabled"),e}function ur(t){const e={"@context":"https://schema.org","@type":Ts(t.contentType),name:t.primaryTopic,description:`Comprehensive ${t.primaryTopic} resource for ${t.targetAudience.join(", ")}`,about:t.semanticKeywords.map(r=>({"@type":"Thing",name:r})),audience:{"@type":"Audience",audienceType:t.targetAudience.join(", ")},educationalLevel:t.complexityLevel,inLanguage:"en",isAccessibleForFree:!0};return t.contentType==="governance-page"?{...e,"@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"}]}:e}function As(t,e){return e.map(r=>({type:"related-content",target:r.url,strength:r.relevance}))}function mr(t){const e=["0xmail.box","Web3","blockchain","email","wallet","cryptocurrency"],r=["DAO","governance","voting","multi-sig","Snapshot","Tally","Aragon","Safe","proposal","community"];return t.contentType==="governance-page"?[...e,...r]:e}function br(t){const e=["web3-infrastructure","email-technology","blockchain-applications"],r=["dao-governance-tools","voting-notification-systems","community-management-platforms","multi-signature-coordination","treasury-management-solutions"];return t.contentType==="governance-page"?[...e,...r]:e}function Ps(t,e){return{contentClassification:{type:t.contentType,topic:t.primaryTopic,audience:t.targetAudience.join(","),complexity:t.complexityLevel,purpose:t.contentPurpose,vertical:t.industryVertical},semanticMarkup:ur(t),entityRecognition:mr(t),topicClustering:br(t),contentRelationships:e?.contentRelationships||[],...e}}function Ts(t){return{article:"Article","landing-page":"WebPage","product-page":"Product","governance-page":"SoftwareApplication",documentation:"TechArticle"}[t]||"WebPage"}function Ls(t){return{"@context":"https://schema.org","@type":"MonitorAction",name:`AI Performance Tracking - ${t}`,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:`${t} Performance Data`,description:"AI-optimized performance metrics and user interaction data"}}}const zs={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"]}},js=({message:t,className:e})=>a.jsxs("div",{className:`flex items-center justify-center p-4 ${e||""}`,children:[a.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),a.jsx("span",{className:"ml-2 text-sm text-gray-600",children:t})]}),Ze=new Map,oe=new Set;function Je(){const t=[];return!!window.ethereum?.isMetaMask&&(oe.add("metamask"),t.push({name:"MetaMask",detected:!0,priority:1})),!!window.ethereum?.isCoinbaseWallet&&(oe.add("coinbase"),t.push({name:"Coinbase Wallet",detected:!0,priority:2})),!!window.solana?.isPhantom&&(oe.add("phantom"),t.push({name:"Phantom",detected:!0,priority:3})),t.push({name:"WalletConnect",detected:!0,priority:4}),t.sort((n,s)=>n.priority-s.priority)}function Xe(t){const e=`wallet-${t.toLowerCase()}`;if(Ze.has(e))return Ze.get(e);const r=()=>Promise.resolve({default:()=>b.createElement("div",{},`${t} Provider Placeholder`)}),o=b.lazy(r),n=s=>a.jsx(b.Suspense,{fallback:a.jsx(js,{message:`Loading ${t} wallet...`,className:"wallet-loading"}),children:a.jsx(o,{...s})});return n.displayName=`Lazy${t}Provider`,Ze.set(e,n),n}function Ms({children:t}){const e=Je();return e.filter(r=>r.priority<=2&&r.detected).forEach(r=>{setTimeout(()=>{},1e3)}),a.jsxs(a.Fragment,{children:[e.map(r=>{const o=Xe(r.name);return a.jsx(o,{},r.name)}),t]})}const rt=class rt{static preloadWallet(e){const r=e.toLowerCase();this.preloadedWallets.has(r)||(this.preloadedWallets.add(r),setTimeout(()=>{Xe(e)},500))}static preloadCommonWallets(){["metamask","walletconnect","coinbase"].forEach((r,o)=>{setTimeout(()=>{this.preloadWallet(r)},o*1e3)})}static getPreloadedWallets(){return Array.from(this.preloadedWallets)}};rt.preloadedWallets=new Set;let ne=rt;function Os(){return{availableWallets:Je(),preloadWallet:o=>{ne.preloadWallet(o)},getDetectedWallets:()=>Array.from(oe),hasWallet:o=>oe.has(o.toLowerCase())}}function Ws({walletName:t,onConnect:e,disabled:r=!1}){const o=()=>{ne.preloadWallet(t),setTimeout(e,100)};return a.jsxs("button",{onClick:o,disabled:r,className:"wallet-connect-btn","data-wallet":t.toLowerCase(),children:["Connect ",t]})}class Bs{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 d of s.getEntries())d.name==="first-contentful-paint"&&(this.observedMetrics.fcp=d.startTime,this.optimizeBasedOnFCP(d.startTime))}).observe({entryTypes:["paint"]}),new PerformanceObserver(s=>{for(const d of s.getEntries())this.observedMetrics.lcp=d.startTime,this.optimizeBasedOnLCP(d.startTime)}).observe({entryTypes:["largest-contentful-paint"]});let o=0;new PerformanceObserver(s=>{for(const d of s.getEntries())d.hadRecentInput||(o+=d.value);this.observedMetrics.cls=o}).observe({entryTypes:["layout-shift"]})}catch(e){console.warn("Performance observation setup failed:",e)}window.addEventListener("load",()=>{setTimeout(()=>{const e=performance.getEntriesByType("navigation")[0];e&&(this.observedMetrics.ttfb=e.responseStart-e.requestStart,this.optimizeBasedOnTTFB(this.observedMetrics.ttfb))},0)})}optimizeBasedOnFCP(e){e>2e3?this.applyEmergencyOptimizations():e>1500&&this.applyMediumOptimizations()}optimizeBasedOnLCP(e){e>2500&&this.optimizeLCPElements()}optimizeBasedOnTTFB(e){e>600&&(console.warn("Slow server response, enabling aggressive caching"),this.enableAggressiveCaching())}applyEmergencyOptimizations(){document.querySelectorAll('img[data-priority="low"]').forEach(o=>{o.loading="lazy",o.style.display="none",setTimeout(()=>{o.style.display=""},3e3)}),document.querySelectorAll('script[data-priority="low"]').forEach(o=>{o.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(o=>{o instanceof HTMLImageElement&&(o.fetchPriority="high",o.loading="eager")});const r=document.querySelector("img[data-hero]")?.getAttribute("src");r&&this.preloadResource(r,"image")}enableAggressiveCaching(){const e=document.createElement("meta");e.httpEquiv="Cache-Control",e.content="public, max-age=31536000, immutable",document.head.appendChild(e)}preloadResource(e,r){if(document.querySelector(`link[href*="${e}"]`))return;const n=document.createElement("link");switch(n.rel="preload",n.href=e,r){case"script":n.as="script";break;case"style":n.as="style";break;case"font":n.as="font",n.type="font/woff2",n.crossOrigin="";break;case"image":n.as="image";break}document.head.appendChild(n)}optimizeCriticalPath(){this.criticalResources.filter(e=>e.priority==="critical"&&e.preload).forEach(e=>{this.preloadResource(e.url,e.type)}),this.inlineCriticalCSS(),this.optimizeFontLoading(),this.removeRenderBlocking(),this.setupProgressiveLoading()}inlineCriticalCSS(){const e=document.querySelector('link[rel="stylesheet"][data-critical]');e&&this.isSmallResource(e.getAttribute("href")||"")&&fetch(e.getAttribute("href")||"").then(r=>r.text()).then(r=>{if(r.length<1e4){const o=document.createElement("style");o.textContent=r,document.head.appendChild(o),e.remove()}}).catch(console.warn)}optimizeFontLoading(){document.querySelectorAll('link[href*="fonts.googleapis.com"]').forEach(r=>{const o=r.getAttribute("href")||"";if(!o.includes("display=swap")){const n=o.includes("?")?"&":"?";r.setAttribute("href",`${o}${n}display=swap`)}})}removeRenderBlocking(){document.querySelectorAll('link[rel="stylesheet"]:not([data-critical])').forEach(r=>{const o=r.cloneNode(!0);o.rel="preload",o.as="style",o.onload=()=>{o.onload=null,o.rel="stylesheet"};const n=document.createElement("noscript"),s=r.cloneNode(!0);n.appendChild(s),document.head.appendChild(o),document.head.appendChild(n),r.remove()})}setupProgressiveLoading(){const e=document.querySelectorAll("img[data-src]");if("IntersectionObserver"in window){const r=new IntersectionObserver(o=>{o.forEach(n=>{if(n.isIntersecting){const s=n.target;s.src=s.dataset.src||"",s.removeAttribute("data-src"),r.unobserve(s)}})},{rootMargin:"50px 0px",threshold:.01});e.forEach(o=>r.observe(o))}else e.forEach(r=>{const o=r;o.src=o.dataset.src||""})}isSmallResource(e){return e.includes("critical")||e.includes("inline")}getPerformanceMetrics(){return{...this.observedMetrics,score:this.calculatePerformanceScore()}}calculatePerformanceScore(){let e=100;return this.observedMetrics.fcp>2e3?e-=20:this.observedMetrics.fcp>1500&&(e-=10),this.observedMetrics.lcp>2500?e-=25:this.observedMetrics.lcp>2e3&&(e-=15),this.observedMetrics.cls>.1?e-=15:this.observedMetrics.cls>.05&&(e-=8),this.observedMetrics.ttfb>600?e-=10:this.observedMetrics.ttfb>400&&(e-=5),Math.max(e,0)}}const Ce={mark:t=>{typeof performance<"u"&&performance.mark&&performance.mark(t)},measure:(t,e,r)=>{if(typeof performance<"u"&&performance.measure)try{performance.measure(t,e,r);const o=performance.getEntriesByName(t);return o[o.length-1]?.duration||0}catch(o){return console.warn("Performance measurement failed:",o),0}return 0},getEntries:t=>typeof performance<"u"&&performance.getEntriesByName?t?performance.getEntriesByName(t):performance.getEntries():[],clearEntries:t=>{typeof performance<"u"&&(t?(performance.clearMeasures?.(t),performance.clearMarks?.(t)):(performance.clearMeasures?.(),performance.clearMarks?.()))}},Ds=(t,e=[])=>{b.useEffect(()=>(Ce.mark(`${t}-start`),()=>{Ce.mark(`${t}-end`),Ce.measure(t,`${t}-start`,`${t}-end`)}),[t,e])},Fs=t=>{const e=b.useRef(t);return e.current=t,b.useCallback((...r)=>e.current(...r),[])},_s=(t,e,r)=>{const o=b.useRef(e),n=b.useRef(void 0);return b.useMemo(()=>(r&&process.env.NODE_ENV==="development"&&e.some((s,d)=>s!==o.current[d]),o.current=e,n.current=t(),n.current),[t,r,e])},Se=new Map,qs=t=>{const e=Se.get(t)||0;Se.set(t,e+1),b.useEffect(()=>{process.env.NODE_ENV})},Vs=()=>Object.fromEntries(Se),Us=()=>Se.clear(),Hs=t=>b.lazy(t),Gs=(t=.1)=>{const[e,r]=b.useState(new Set),o=b.useRef(null);b.useEffect(()=>(o.current=new IntersectionObserver(s=>{s.forEach(d=>{if(d.isIntersecting){const l=d.target,c=l.dataset.src;c&&(l.src=c,l.onload=()=>{r(u=>new Set(u).add(c))},o.current?.unobserve(l))}})},{threshold:t}),()=>o.current?.disconnect()),[t]);const n=b.useCallback(s=>{s&&o.current&&o.current.observe(s)},[]);return{loadedImages:e,observeImage:n}},Ks=t=>{typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(()=>{t().catch(()=>{})}):setTimeout(()=>{t().catch(()=>{})},100)},pr={},Ys=t=>{pr[t.name]=t.value,process.env.NODE_ENV},Qs=()=>pr,Zs=(t,e="script")=>{if(typeof document<"u"){const r=document.createElement("link");r.rel="prefetch",r.href=t,r.as=e,document.head.appendChild(r)}},Js=(t,e="script",r)=>{if(typeof document<"u"){const o=document.createElement("link");o.rel="preload",o.href=t,o.as=e,r&&(o.crossOrigin="anonymous"),document.head.appendChild(o)}},Xs=t=>{const e=b.useRef(new Set),r=b.useRef(new Set),o=b.useCallback((s,d)=>{const l=setTimeout(()=>{e.current.delete(l),s()},d);return e.current.add(l),l},[]),n=b.useCallback((s,d)=>{const l=setInterval(s,d);return r.current.add(l),l},[]);return b.useEffect(()=>{const s=e.current,d=r.current;return()=>{s.forEach(l=>clearTimeout(l)),d.forEach(l=>clearInterval(l)),process.env.NODE_ENV}},[t]),{createTimer:o,createInterval:n}},_={maxBundleSize:500,maxChunkSize:200,maxImageSize:100,maxFCP:1800,maxLCP:2500,maxFID:100,maxCLS:.1,check:t=>{const e=[];return t.FCP&&t.FCP>_.maxFCP&&e.push(`FCP (${t.FCP}ms) exceeds budget (${_.maxFCP}ms)`),t.LCP&&t.LCP>_.maxLCP&&e.push(`LCP (${t.LCP}ms) exceeds budget (${_.maxLCP}ms)`),t.FID&&t.FID>_.maxFID&&e.push(`FID (${t.FID}ms) exceeds budget (${_.maxFID}ms)`),t.CLS&&t.CLS>_.maxCLS&&e.push(`CLS (${t.CLS}) exceeds budget (${_.maxCLS})`),e}},Rs=({contentType:t,aiSummary:e,technicalComplexity:r="intermediate"})=>a.jsxs($r.Helmet,{children:[a.jsx("meta",{name:"ai:content-type",content:t}),a.jsx("meta",{name:"ai:summary",content:e}),a.jsx("meta",{name:"ai:complexity",content:r})]}),el=({children:t,className:e,...r})=>a.jsx("main",{className:e,...r,role:"main",children:t}),tl=({children:t})=>a.jsx(a.Fragment,{children:t}),J=t=>Array.isArray(t)?t:typeof t=="string"?t.split(",").map(e=>e.trim()).filter(Boolean):[],Re=t=>{const e=J(t.audience);return{"@context":"https://schema.org","@type":"SoftwareApplication",name:"0xmail.box",applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",description:t.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:e.join(", "),geographicArea:"Worldwide"},creator:{"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box"},datePublished:"2024-01-01",dateModified:t.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}}},et=t=>{const e=J(t.keywords),r=J(t.audience);return{"@context":"https://schema.org","@type":"TechnicalArticle",headline:t.title,description:t.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:t.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:e.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:t.complexity},educationalLevel:t.complexity,proficiencyLevel:t.complexity,learningResourceType:t.contentType,timeRequired:t.readingTime?`PT${t.readingTime}M`:"PT5M",inLanguage:"en",isAccessibleForFree:!0,license:"https://creativecommons.org/licenses/by/4.0/",teaches:t.relatedTopics||["Web3 email setup","Wallet connection process","Blockchain authentication","Smart contract integration"]}},rl=t=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.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:e.category||"Web3 Email"}))}),tt=t=>({"@context":"https://schema.org","@type":"WebPage",name:t.title,description:t.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:t.relatedTopics?.map(e=>`https://0xmail.box/search?q=${encodeURIComponent(e)}`)||[],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"}}),hr=t=>{const e=J(t.keywords);return{"og:title":t.title,"og:description":t.description,"og:type":"website","og:url":`https://0xmail.box${location.pathname}`,"og:image":`https://0xmail.box/og-images/${t.category}.jpg`,"og:image:width":"1200","og:image:height":"630","og:image:alt":`${t.title} - Web3 Email Platform`,"og:site_name":"0xmail.box","og:locale":"en_US","article:author":"https://0xmail.box/about","article:section":t.category,"article:tag":e.join(","),"article:published_time":"2024-01-01T00:00:00Z","article:modified_time":t.lastUpdated?.toISOString()||new Date().toISOString()}},yr=t=>({"twitter:card":"summary_large_image","twitter:site":"@0xmailbox","twitter:creator":"@0xmailbox","twitter:title":t.title,"twitter:description":t.description,"twitter:image":`https://0xmail.box/twitter-cards/${t.category}.jpg`,"twitter:image:alt":`${t.title} - Web3 Email Platform`,"twitter:label1":"Category","twitter:data1":t.category,"twitter:label2":"Reading Time","twitter:data2":t.readingTime?`${t.readingTime} min`:"5 min"}),fr=t=>{const e=J(t.keywords),r=J(t.audience);return{"ai:content-type":t.contentType,"ai:complexity":t.complexity,"ai:category":t.category,"ai:audience":r.join(","),"ai:keywords":e.join(","),"ai:reading-time":t.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":t.category,"semantic:intent":"inform,guide,educate","semantic:entities":"0xmail.box,Web3,blockchain,email,wallet","content:freshness":t.lastUpdated?.toISOString()||new Date().toISOString(),"content:authority":"high","content:expertise":"technical","content:trustworthiness":"verified"}},al=t=>({structuredData:{product:Re(t),article:et(t),aiOptimized:tt(t)},openGraph:hr(t),twitterCard:yr(t),aiMetaTags:fr(t),jsonLD:[Re(t),et(t),tt(t)]}),ol={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"]}},nl=t=>{const{level:e,text:r,className:o="",id:n,semanticContext:s="section"}=t,d=`h${e}`,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[e],c[s],o].filter(Boolean).join(" "),m=n||r.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return b.createElement(d,{id:m,className:u,"aria-level":e},r)},W={pageTitle:(t,e)=>({level:1,text:t,className:e,semanticContext:"page-title"}),majorSection:(t,e)=>({level:2,text:t,className:e,semanticContext:"section"}),feature:(t,e)=>({level:3,text:t,className:e,semanticContext:"feature"}),benefit:(t,e)=>({level:3,text:t,className:e,semanticContext:"benefit"}),step:(t,e,r)=>({level:3,text:e?`Step ${e}: ${t}`:t,className:r,semanticContext:"step"}),subFeature:(t,e)=>({level:4,text:t,className:e,semanticContext:"feature"})},il=t=>{const e=[],r=[],o=t.filter(n=>n.level===1).length;o===0?e.push("Missing H1 tag - every page should have exactly one H1"):o>1&&e.push(`Multiple H1 tags found (${o}) - use only one H1 per page`);for(let n=1;n<t.length;n++){const s=t[n],d=t[n-1];s.level>d.level+1&&e.push(`Heading level jump from H${d.level} to H${s.level} - avoid skipping levels`)}return t.forEach((n,s)=>{n.text.length<3&&e.push(`Heading ${s+1} is too short - use descriptive text`),n.text.length>70&&r.push(`Heading "${n.text.substring(0,30)}..." is long - consider shortening for better SEO`)}),{isValid:e.length===0,errors:e,suggestions:r}},sl={walletConnection:W.pageTitle("Connect Your Web3 Wallet"),emailBenefits:W.majorSection("Why Choose Web3 Email?"),securityFeature:W.feature("Secure & Private"),ensIntegration:W.feature("ENS Domain Support"),multiChain:W.feature("Multi-Chain Compatibility"),passwordless:W.benefit("No Passwords Required"),setupStep1:W.step("Connect Your Wallet",1),setupStep2:W.step("Verify Your Identity",2),setupStep3:W.step("Access Your Emails",3)},ll=[{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"}],dl=t=>({"@context":"https://schema.org","@type":"LearningResource",educationalLevel:t.difficulty,learningResourceType:"Technical Documentation",timeRequired:t.estimatedTime?`PT${t.estimatedTime}M`:void 0,teaches:t.learningObjectives,requires:t.prerequisites,about:{"@type":"Thing",name:t.domain,category:t.category,subcategory:t.subcategory},keywords:t.concepts,applicationExample:t.practicalApplications,isRelatedTo:t.relatedConcepts}),cl=t=>{const e={nodes:t.map(r=>({id:r.term,label:r.term,category:r.category,definition:r.definition})),edges:[]};return t.forEach(r=>{r.relatedTerms?.forEach(o=>{t.find(s=>s.term===o)&&e.edges.push({source:r.term,target:o,relationship:"related_to"})}),r.synonyms?.forEach(o=>{e.edges.push({source:r.term,target:o,relationship:"synonym_of"})})}),e},gl=t=>{const e=[];return t.examples?.forEach(r=>{e.push({text:r,label:t.term,type:"positive",confidence:1})}),t.context&&e.push({text:t.context,label:t.term,type:"contextual",confidence:.8}),e.push({text:`${t.term} is ${t.definition}`,label:t.term,type:"definition",confidence:1}),e},ul=t=>{const e=[];return t.forEach(r=>{e.push({question:`What is ${r.term}?`,answer:r.definition,category:r.category,difficulty:"basic"}),r.context&&e.push({question:`How does ${r.term} work?`,answer:r.context,category:r.category,difficulty:"intermediate"}),r.examples&&r.examples.length>0&&e.push({question:`What are examples of ${r.term}?`,answer:r.examples.join(", "),category:r.category,difficulty:"basic"}),r.relatedTerms&&r.relatedTerms.length>0&&e.push({question:`What is ${r.term} related to?`,answer:`${r.term} is related to ${r.relatedTerms.join(", ")}`,category:r.category,difficulty:"intermediate"})}),e},ml={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"}],g=async()=>{try{await navigator.clipboard.writeText(l),r(!1)}catch(m){console.error("Failed to copy:",m)}};return a.jsxs("div",{className:"relative",children:[a.jsx("button",{onClick:()=>r(!e),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:a.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.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"})})}),e&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"fixed inset-0 z-[999998]",onClick:()=>r(!1)}),a.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?a.jsx("div",{className:"flex items-center justify-center px-3 py-2",children:a.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.jsxs(a.Fragment,{children:[d.map((m,p)=>{const b=m.component,y=m.icon;return a.jsx(b,{...m.props,className:"w-full",children:a.jsxs("div",{className:"flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[a.jsx(y,{size:16,round:!0,className:"mr-2"}),a.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:m.label})]})},p)}),a.jsxs("button",{onClick:g,className:"w-full flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[a.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:a.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"})}),a.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Copy Link"})]})]})})]})]})},Et=({items:t,shareConfig:e,className:r,showHome:n})=>a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("nav",{"aria-label":"Breadcrumb",children:a.jsx("ol",{className:"flex items-center text-sm space-x-2",children:t.map((o,s)=>a.jsxs(h.Fragment,{children:[a.jsx("li",{children:o.current?a.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:o.label}):a.jsx(le.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<t.length-1&&a.jsx("li",{children:a.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"/"})})]},s))})}),e&&a.jsx(wo,{shareConfig:e})]}),ko=({items:t,shareConfig:e})=>a.jsx("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 relative z-50",children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 relative",children:a.jsx(Et,{items:t,shareConfig:e})})}),Co=({filename:t,code:e,language:r,title:n,className:o="",showCopy:s=!0,showHeader:c=!0})=>{const{t:l}=Ye.useTranslation("codeBlock"),{code:d,loading:g,error:m}=ct(t||""),[p,b]=h.useState(!1),y=e||d,v=r||(t?(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"}})(t):"text"),N=async()=>{if(y)try{await navigator.clipboard.writeText(y),b(!0),setTimeout(()=>b(!1),2e3)}catch(C){console.error("Failed to copy code:",C)}};return t&&g?a.jsx("div",{className:`bg-gray-900 text-green-400 rounded-lg p-4 font-mono text-sm ${o}`,children:a.jsx("div",{className:"animate-pulse text-gray-500",children:l("loadingCode","Loading code...")})}):t&&m?a.jsxs("div",{className:`bg-gray-900 text-red-400 rounded-lg p-4 font-mono text-sm ${o}`,children:[l("error","Error"),": ",m]}):y?a.jsxs("div",{className:`bg-gray-900 rounded-lg border border-green-500/20 shadow-lg shadow-green-500/10 ${o}`,children:[c&&a.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-green-500/20 bg-gray-800/50",children:[a.jsx("span",{className:"text-sm text-green-400 font-mono",children:n||t||`${v} code`}),s&&a.jsx("button",{onClick:N,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:p?a.jsx(w.CheckIcon,{className:"h-4 w-4 text-green-400"}):a.jsx(w.ClipboardDocumentIcon,{className:"h-4 w-4 group-hover:scale-110 transition-transform"})})]}),a.jsx("div",{className:"p-4 overflow-x-auto text-left",children:a.jsx("pre",{className:`text-sm language-${v}`,children:a.jsx("code",{className:"text-gray-100",children:y})})})]}):a.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")})},So=({title:t,description:e,code:r,preview:n,language:o="tsx",showBrowserChrome:s=!0,copyKey:c})=>{const[l,d]=h.useState({}),g=(b,y)=>{navigator.clipboard.writeText(b).then(()=>{d(x=>({...x,[y]:!0})),setTimeout(()=>{d(x=>({...x,[y]:!1}))},2e3)})},m=c||`${t}-code`,p=l[m];return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:t}),e&&a.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm",children:e})]}),n&&a.jsxs("div",{className:"relative",children:[s&&a.jsxs("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-t-lg px-4 py-3 flex items-center space-x-2",children:[a.jsxs("div",{className:"flex space-x-2",children:[a.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),a.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),a.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),a.jsx("div",{className:"flex-1 text-center",children:a.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"})})]}),a.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:n})]}),a.jsx("div",{className:"relative",children:a.jsxs("div",{className:"bg-gray-900 rounded-lg overflow-hidden",children:[a.jsxs("div",{className:"bg-gray-800 px-4 py-2 flex justify-between items-center",children:[a.jsx("span",{className:"text-gray-300 text-sm font-mono",children:o}),a.jsx("button",{onClick:()=>g(r,m),className:"flex items-center space-x-1 text-gray-300 hover:text-white transition-colors text-sm","aria-label":p?"Copied!":"Copy code",children:p?a.jsxs(a.Fragment,{children:[a.jsx(w.CheckIcon,{className:"h-4 w-4"}),a.jsx("span",{children:"Copied!"})]}):a.jsxs(a.Fragment,{children:[a.jsx(w.ClipboardIcon,{className:"h-4 w-4"}),a.jsx("span",{children:"Copy"})]})})]}),a.jsx("div",{className:"p-4 overflow-x-auto",children:a.jsx("pre",{className:"text-gray-100 text-sm leading-relaxed",children:a.jsx("code",{children:r})})})]})})]})},No=({subsections:t,isExpanded:e,selectedSubsection:r,parentSectionId:n,onSubsectionSelect:o})=>{const s=h.useRef(null),[c,l]=h.useState(void 0);return h.useLayoutEffect(()=>{if(s.current){const d=s.current.scrollHeight;l(e?d+16:0)}},[e,t]),a.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:c!==void 0?`${c}px`:"auto"},children:a.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:t.map(d=>a.jsx("button",{onClick:()=>o?.(d.id,n),className:`block w-full text-left px-3 py-2 rounded-md text-sm transition-all duration-200 hover:scale-[1.02] ${r===d.id?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-800 dark:hover:text-gray-200"}`,children:d.title},d.id))})})},Eo=({id:t,title:e,content:r,subsections:n,isSelected:o=!1,selectedSubsection:s=null,onSectionSelect:c,onSubsectionSelect:l,className:d=""})=>{const[g,m]=h.useState(!1),p=()=>{m(!g)},b=()=>{c?.(t)},y=n&&n.length>0;return a.jsxs("div",{className:d,children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("button",{onClick:b,className:`flex-1 text-left px-3 py-4 text-base font-medium transition-all duration-200 hover:bg-gray-50 dark:hover:bg-gray-800 ${o&&!s?"bg-blue-50 dark:bg-blue-900/10 text-blue-700 dark:text-blue-300":"text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100"}`,children:e}),y&&a.jsx("button",{onClick:p,className:"p-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200","aria-label":g?"Collapse section":"Expand section",children:a.jsx(w.ChevronRightIcon,{className:`h-5 w-5 text-gray-500 transition-transform duration-300 ease-in-out ${g?"rotate-90":"rotate-0"}`})})]}),y&&a.jsx(No,{subsections:n,isExpanded:g,selectedSubsection:s,parentSectionId:t,onSubsectionSelect:l})]})},Io=({title:t,subtitle:e,buttonText:r,buttonIcon:n="envelope",variant:o="default",badgeText:s="FREE",prominentBadgeText:c="100% Free",onButtonClick:l,className:d=""})=>{const g=()=>n==="envelope"||n==="both"?a.jsx(w.EnvelopeIcon,{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1"}):n==="none"?null:a.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:a.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"})}),m=()=>n==="arrow"||n==="both"?a.jsx(w.ArrowRightIcon,{className:"h-4 w-4 ml-2"}):null,p=()=>o==="prominent"?"border-b-2 border-green-200 dark:border-green-700":"border-b border-green-200 dark:border-green-700",b=()=>{const v="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"?`${v} px-8 py-3 text-base`:`${v} px-6 py-2 text-sm`},y=()=>o==="prominent"?"text-green-800 dark:text-green-200 font-semibold text-lg":"text-green-800 dark:text-green-200 font-semibold",x=o==="prominent"?c:s;return a.jsx("div",{className:`bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 ${p()} ${d}`,children:a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[a.jsxs("div",{className:`flex items-center ${o==="prominent"?"text-center sm:text-left":""}`,children:[a.jsx("div",{className:"bg-green-500 text-white text-xs font-bold px-3 py-1 rounded-full mr-3 animate-pulse",children:x}),a.jsxs("div",{children:[a.jsx("span",{className:y(),children:t}),e&&a.jsx("span",{className:"text-green-700 dark:text-green-300 text-sm block",children:e})]})]}),a.jsxs("button",{onClick:l,className:b(),children:[g(),r,m()]})]})})})},Po=({children:t,onClick:e,variant:r,size:n,disabled:o,className:s,type:c,trackingLabel:l,actionType:d,componentName:g,onTrack:m,trackingParams:p={},...b})=>{const y=x=>{if(m){const v=l||(typeof t=="string"?t:"")||"Unknown Button",C=r&&["default","primary","secondary","outline","ghost","destructive","link"].includes(r)?r:"default";m({button_text:v,button_type:C,component_name:g,action_type:d,...p})}e&&e(x)};return a.jsx(B,{...b,variant:r,size:n,disabled:o,className:s,type:c,onClick:y,children:t})},Ao=({children:t,onClick:e,to:r,href:n,trackingLabel:o,componentName:s,onTrack:c,trackingParams:l={},LinkComponent:d,linkProps:g={},...m})=>{const p=y=>{if(c){const x=o||(typeof t=="string"?t:"")||"Unknown Link",v=r?typeof r=="string"?r:r.pathname||"":n||"";c({link_text:x,link_url:v,to_page:v,navigation_type:d?"router_link":"anchor_link",component_name:s,...l})}e&&e(y)};if(d&&r!==void 0)return a.jsx(d,{...g,to:r,onClick:p,...m,children:t});const b=r?typeof r=="string"?r:r.pathname||"#":n;return a.jsx("a",{...m,href:b,onClick:p,children:t})},It={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:"🇨🇳"}},$o=({variant:t="compact",className:e=""})=>{const{i18n:r,t:n}=Ye.useTranslation("languageSelector"),[o,s]=h.useState(r.language),c=h.useMemo(()=>r.options.supportedLngs?r.options.supportedLngs.filter(g=>g!=="cimode").map(g=>({code:g,name:It[g]?.name||g.toUpperCase(),flag:It[g]?.flag||"🌐"})).sort((g,m)=>g.name.localeCompare(m.name)):[],[r.options.supportedLngs]),l=c.find(g=>g.code===o||g.code.toLowerCase()===o.toLowerCase());h.useEffect(()=>{s(r.language)},[r.language]);const d=g=>{localStorage.setItem("language",g),r.changeLanguage(g).then(()=>{s(r.language),setTimeout(()=>{window.dispatchEvent(new Event("languagechange"))},100)}).catch(m=>{console.error("Failed to change language:",m)})};return t==="compact"?a.jsx("div",{className:`relative ${e}`,children:a.jsxs(Ae,{value:o,onValueChange:d,children:[a.jsx(ue,{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:a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("span",{className:"text-lg leading-none",children:l?.flag}),a.jsx("span",{className:"hidden sm:block text-sm font-medium text-gray-700 dark:text-gray-300",children:l?.name})]})}),a.jsx(me,{children:c.map(g=>a.jsx(he,{value:g.code,className:"cursor-pointer",children:a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("span",{className:"text-lg leading-none",children:g.flag}),a.jsx("span",{className:"text-sm",children:g.name})]})},g.code))})]})}):a.jsxs("div",{className:`space-y-2 ${e}`,children:[a.jsxs("label",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 flex items-center space-x-2",children:[a.jsx(w.LanguageIcon,{className:"h-4 w-4 text-gray-500 dark:text-gray-400"}),a.jsx("span",{children:n("language","Language")})]}),a.jsxs(Ae,{value:o,onValueChange:d,children:[a.jsx(ue,{children:a.jsx(mt,{placeholder:n("selectLanguage","Select language")})}),a.jsx(me,{children:c.map(g=>a.jsx(he,{value:g.code,className:"cursor-pointer",children:a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("span",{className:"text-lg leading-none",children:g.flag}),a.jsx("span",{children:g.name})]})},g.code))})]}),a.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:n("selectPreferredLanguage","Select your preferred language")})]})},To=({items:t,type:e="ordered",variant:r="default",className:n,itemClassName:o})=>{const s=()=>{const g="space-y-2",m={ordered:e==="ordered"?"list-decimal":"",unordered:e==="unordered"?"list-disc":""},p={default:"list-inside",enhanced:"list-inside space-y-3",minimal:"list-none space-y-1"};return f(g,m[e],p[r])},c=g=>{const m="text-gray-600 dark:text-gray-400";return r==="enhanced"?f(m,"relative pl-8 pb-2 border-l-2 border-gray-200 dark:border-gray-700",g===t.length-1&&"border-l-transparent"):r==="minimal"?f(m,"flex items-start"):m},l=g=>r==="enhanced"&&e==="ordered"?a.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:g+1}):null,d=(g,m)=>{const p=typeof g=="object",b=p?g.content:g,y=p?g.subItems:void 0;return a.jsxs("li",{className:f(c(m),o),children:[l(m),r==="minimal"&&e==="ordered"&&a.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:m+1}),r==="minimal"&&e==="unordered"&&a.jsx("span",{className:"inline-block w-2 h-2 bg-blue-600 rounded-full mt-2 mr-3 flex-shrink-0"}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{children:b}),y&&y.length>0&&a.jsx("ul",{className:"mt-2 ml-4 space-y-1 list-disc list-inside text-sm text-gray-500 dark:text-gray-500",children:y.map((x,v)=>a.jsx("li",{children:x},v))})]})]},m)};return a.jsx("ul",{className:f(s(),n),children:t.map(d)})};class Lo extends h.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){console.error("ErrorBoundary caught an error:",e,r),this.props.onError?.(e,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:a.jsxs("div",{style:{padding:"20px",border:"1px solid red",margin:"10px"},children:[a.jsx("h2",{children:"Something went wrong"}),a.jsxs("p",{children:["Error: ",this.state.error?.message||"Unknown error"]}),a.jsx("button",{onClick:()=>this.setState({hasError:!1}),children:"Try again"})]}):this.props.children}}class Mo extends h.Component{constructor(e){super(e),this.retryTimer=null,this.sendErrorToMonitoring=(r,n)=>{try{typeof window<"u"&&window.Sentry&&window.Sentry?.captureException(r,{contexts:{react:{componentStack:n.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(o){console.warn("Failed to send error to monitoring:",o)}},this.handleRetry=()=>{const{maxRetries:r=3,retryDelay:n=1e3}=this.props,{retryCount:o}=this.state;if(o>=r){console.warn(`Max retries (${r}) exceeded for ${this.props.componentName}`);return}this.setState({isRetrying:!0}),this.retryTimer&&clearTimeout(this.retryTimer);const s=n*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(e){return{hasError:!0,error:e,lastErrorTime:Date.now()}}componentDidCatch(e,r){const{onError:n,componentName:o}=this.props;this.setState({error:e,errorInfo:r}),console.error(`LazyErrorBoundary caught an error in ${o||"Unknown Component"}:`,e,r),n?.(e,r),this.sendErrorToMonitoring(e,r)}componentWillUnmount(){this.retryTimer&&clearTimeout(this.retryTimer)}render(){const{children:e,fallback:r,componentName:n,showRetryButton:o=!0,maxRetries:s=3}=this.props,{hasError:c,error:l,isRetrying:d,retryCount:g}=this.state;return c&&l?r||a.jsx("div",{className:"lazy-error-boundary error-boundary-container",children:a.jsxs("div",{className:"error-content",children:[a.jsx("div",{className:"error-icon",children:"⚠️"}),a.jsxs("h3",{className:"error-title",children:["Something went wrong loading ",n||"this component"]}),a.jsxs("div",{className:"error-details",children:[a.jsx("p",{className:"error-message",children:l.message}),process.env.NODE_ENV==="development"&&a.jsxs("details",{className:"error-stack",children:[a.jsx("summary",{children:"Error Details (Development)"}),a.jsx("pre",{children:l.stack})]})]}),a.jsxs("div",{className:"error-actions",children:[o&&g<s&&a.jsx("button",{onClick:this.handleRetry,disabled:d,className:"retry-button",children:d?"Retrying...":`Retry (${g}/${s})`}),g>=s&&a.jsx("button",{onClick:this.handleReload,className:"reload-button",children:"Reload Page"})]}),a.jsxs("div",{className:"error-help",children:[a.jsx("p",{children:"This might be a temporary issue. Try refreshing the page."}),navigator.onLine===!1&&a.jsx("p",{className:"offline-notice",children:"You appear to be offline. Check your connection and try again."})]})]})}):e}}const zo=({children:t})=>a.jsx(a.Fragment,{children:t}),Oo=({children:t})=>a.jsx(a.Fragment,{children:t}),Wo=(t,e,r)=>{const n=h.memo(t,e);return r&&(n.displayName=`Memo(${r})`),process.env.NODE_ENV==="development"?o=>(h.useMemo(()=>{let c=0;return()=>++c},[])(),a.jsx(n,{...o})):n},jo=(t,e)=>h.memo(t,(r,n)=>e.every(o=>r[o]===n[o])),Bo=h.memo(({children:t,compute:e,deps:r})=>{const n=h.useRef(r),o=h.useRef(e),s=h.useRef(void 0),c=h.useMemo(()=>{const l=r.length!==n.current.length||r.some((g,m)=>g!==n.current[m]),d=e!==o.current;if(l||d||s.current===void 0){let g;if(process.env.NODE_ENV==="development"){const m=performance.now();g=e();const p=performance.now();p-m>16&&console.warn(`Expensive computation took ${p-m}ms`)}else g=e();return n.current=r,o.current=e,s.current=g,g}return s.current},[e,r]);return a.jsx(a.Fragment,{children:t(c)})}),Do=h.memo(({item:t,index:e,style:r,renderItem:n})=>a.jsx("div",{style:r,children:n(t,e)}),(t,e)=>t.index===e.index&&t.item===e.item&&t.style.height===e.style.height&&t.style.top===e.style.top),Fo=h.memo(({condition:t,children:e,fallback:r=null})=>t?a.jsx(a.Fragment,{children:e}):a.jsx(a.Fragment,{children:r})),_o=({children:t,threshold:e=.1,rootMargin:r="50px",fallback:n=null})=>{const[o,s]=h.useState(!1),c=h.useRef(null);return h.useEffect(()=>{const l=new IntersectionObserver(([d])=>{d.isIntersecting&&(s(!0),l.disconnect())},{threshold:e,rootMargin:r});return c.current&&l.observe(c.current),()=>l.disconnect()},[e,r]),a.jsx("div",{ref:c,children:o?t:n})},qo=({children:t,maxRenderTime:e=16,onSlowRender:r})=>{const n=h.useRef(0);return h.useLayoutEffect(()=>{n.current=performance.now()}),h.useEffect(()=>{const o=performance.now()-n.current;o>e&&(r?.(o),process.env.NODE_ENV==="development"&&console.warn(`Slow render detected: ${o}ms (threshold: ${e}ms)`))}),a.jsx(a.Fragment,{children:t})},Ho=({children:t,batchSize:e=5,delay:r=0})=>{const[n,o]=h.useState(e);return h.useEffect(()=>{if(n<t.length){const s=setTimeout(()=>{o(c=>Math.min(c+e,t.length))},r);return()=>clearTimeout(s)}},[n,t.length,e,r]),a.jsx(a.Fragment,{children:t.slice(0,n)})},Vo=({src:t,alt:e,placeholder:r,lowQualitySrc:n,aspectRatio:o="16/9",eager:s=!1,className:c="",...l})=>{const[d,g]=h.useState(!1),[m,p]=h.useState(s),[b,y]=h.useState(!1),x=h.useRef(null),v=h.useRef(null);h.useEffect(()=>{if(s){p(!0);return}return v.current=new IntersectionObserver(S=>{S.forEach(I=>{I.isIntersecting&&(p(!0),v.current&&x.current&&v.current.unobserve(x.current))})},{rootMargin:"50px",threshold:.01}),x.current&&v.current.observe(x.current),()=>{v.current&&v.current.disconnect()}},[s]);const N=()=>{g(!0)},C=()=>{y(!0),console.warn(`Failed to load image: ${t}`)};return a.jsxs("div",{className:`relative overflow-hidden ${c}`,style:{aspectRatio:o},children:[n&&!d&&a.jsx("img",{src:n,alt:"",className:"absolute inset-0 w-full h-full object-cover blur-sm","aria-hidden":"true"}),!n&&!d&&a.jsx("div",{className:"absolute inset-0 bg-gray-200 dark:bg-gray-700 animate-pulse","aria-hidden":"true"}),m&&!b&&a.jsx("img",{ref:x,src:t,alt:e,onLoad:N,onError:C,className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-500 ${d?"opacity-100":"opacity-0"}`,loading:s?"eager":"lazy",...l}),b&&a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-100 dark:bg-gray-800",children:a.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400",children:[a.jsx("svg",{className:"mx-auto h-12 w-12 mb-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.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"})}),a.jsx("p",{className:"text-sm",children:"Failed to load image"})]})})]})},Uo=({title:t,description:e,primaryButton:r,secondaryButton:n,gradient:o={from:"blue-600",to:"purple-600"},textColor:s="light",className:c="",size:l="lg"})=>{const g=(()=>{const v=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"}[v]||"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700"})(),m=s==="light"?"text-white":"text-gray-900 dark:text-gray-100",p={sm:"py-12",md:"py-16",lg:"py-20"},b={sm:"text-2xl md:text-3xl",md:"text-3xl md:text-4xl",lg:"text-4xl md:text-5xl"},y={sm:"text-base md:text-lg",md:"text-lg md:text-xl",lg:"text-xl md:text-2xl"},x=(v,N=!1)=>{const C=()=>v.variant==="primary"||N?"gradient":(v.variant==="secondary","outline"),S=a.jsx(B,{variant:C(),size:"lg",className:N?"":"bg-white/10 hover:bg-white/20 backdrop-blur-sm border-white/30",children:v.label});return v.external?a.jsx("a",{href:v.href,target:"_blank",rel:"noopener noreferrer",children:S}):a.jsx(le.Link,{to:v.href,children:S})};return a.jsxs("section",{className:`${g} ${p[l]} relative overflow-hidden ${c}`,children:[a.jsx("div",{className:"absolute inset-0 bg-black/20"}),a.jsxs("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 w-full h-full",children:[a.jsx("div",{className:"absolute top-10 left-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"}),a.jsx("div",{className:"absolute bottom-10 right-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"})]}),a.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[a.jsx("h2",{className:`${b[l]} font-bold ${m} mb-6`,children:t}),a.jsx("p",{className:`${y[l]} ${m}/90 mb-8 max-w-2xl mx-auto`,children:e}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[x(r,!0),n&&x(n,!1)]})]})]})},Go=({children:t,backgroundClassName:e="",contentClassName:r=""})=>a.jsx("div",{className:e,children:a.jsx("div",{className:r,children:t})}),Ko=({title:t,description:e})=>a.jsxs("div",{className:"mb-8",children:[a.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:t}),e&&a.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:e})]}),Qo=({masterTitle:t,masterSubtitle:e,backButtonText:r,masterContent:n,detailContent:o,detailTitle:s,mobileView:c="navigation",onBackToNavigation:l,masterClassName:d="",detailClassName:g="",detailTitleClassName:m="",masterWidth:p=320,stickyMaster:b=!0,stickyTopOffset:y=96,desktopGap:x=32,showMasterBackground:v=!0,enableAnimations:N=!0,animationDuration:C=300,animationRef:S})=>{const I=`gap-${Math.round(x/4)}`||"gap-8",T=se=>se?se.split("-")[0].trim():"Back",L=r?T(r):t?T(t):"Back",[ne,ve]=h.useState(!1),[Kt,Ge]=h.useState("auto"),K=h.useRef(null),oe=h.useRef(null);h.useEffect(()=>(S&&(S.current={triggerTransition:se=>{if(!N){se();return}if(K.current){const Ke=K.current.scrollHeight;Ge(Ke)}ve(!0),oe.current&&clearTimeout(oe.current),oe.current=setTimeout(()=>{se(),setTimeout(()=>{if(K.current){const Ke=K.current.scrollHeight;Ge(Ke),setTimeout(()=>{Ge("auto"),ve(!1)},C)}},50)},C/2)}}),()=>{oe.current&&clearTimeout(oe.current)}),[N,C,S]);const Qt=N?{height:Kt==="auto"?"auto":`${Kt}px`,transition:`height ${C}ms cubic-bezier(0.4, 0, 0.2, 1)`,width:"100%",maxWidth:"100%"}:{width:"100%",maxWidth:"100%"},Yt=N?`${ne?"opacity-0 transform translate-y-2":"opacity-100 transform translate-y-0"}`:"",Zt=N?{transition:`opacity ${C}ms ease-in-out, transform ${C}ms ease-in-out`}:{};return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`md:hidden ${c==="navigation"?"block":"hidden"} flex-1`,children:a.jsxs("div",{className:v?"bg-white dark:bg-gray-800 p-6":"p-6",children:[t&&a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:e})]}),a.jsx("div",{className:d,children:n})]})}),a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[a.jsxs("div",{className:`md:hidden ${c==="content"?"block":"hidden"}`,children:[c==="content"&&l&&a.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:["← ",L]}),a.jsx("div",{ref:K,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${g}`,style:Qt,children:a.jsxs("div",{className:Yt,style:Zt,children:[s&&a.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${m}`,children:s}),o]})})]}),a.jsxs("div",{className:`hidden md:flex min-h-full ${I}`,style:{width:"100%"},children:[a.jsx("aside",{className:"flex-shrink-0",style:{width:`${p}px`,minWidth:`${p}px`},children:a.jsxs("div",{className:b?"sticky":"",style:b?{top:`${y}px`}:void 0,children:[t&&a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:t}),e&&a.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:e}),a.jsx("div",{className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 ${b?"max-h-[calc(100vh-200px)] overflow-y-auto":""} ${d}`,children:n})]})}),a.jsx("div",{className:"flex-1 min-w-0",style:{width:`calc(100% - ${p+x}px)`},children:a.jsx("div",{ref:K,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${g}`,style:Qt,children:a.jsxs("div",{className:Yt,style:Zt,children:[s&&a.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${m}`,children:s}),o]})})})]})]})]})},Yo=({children:t})=>(h.useEffect(()=>{const e=()=>{[{href:"/fonts/inter-var.woff2",as:"font",type:"font/woff2",crossorigin:!0},{href:"/images/hero-background.webp",as:"image",type:"image/webp"},{href:"/images/logo.svg",as:"image",type:"image/svg+xml"}].forEach(p=>{const b=document.createElement("link");b.rel="preload",b.href=p.href,b.as=p.as,p.type&&(b.type=p.type),p.crossorigin&&(b.crossOrigin=""),document.head.appendChild(b)})},r=()=>{if(document.querySelectorAll('img[data-priority="high"]').forEach(b=>{b.fetchPriority="high"}),document.querySelector("[data-hero]")){const b=document.createElement("link");b.rel="preload",b.href="/images/hero-background.webp",b.as="image",b.type="image/webp",document.head.appendChild(b)}},n=()=>{document.querySelectorAll("img:not([width]):not([height])").forEach(b=>{const y=b;y.naturalWidth&&y.naturalHeight&&(y.width=y.naturalWidth,y.height=y.naturalHeight)}),document.querySelectorAll("[data-dynamic]").forEach(b=>{b.getAttribute("style")?.includes("min-height")||(b.style.minHeight="200px")})},o=()=>{const m=()=>{document.querySelectorAll("script[data-defer]").forEach(y=>{y.setAttribute("defer","")})};"requestIdleCallback"in window?requestIdleCallback(()=>{m()}):setTimeout(m,1),(()=>{["scroll","touchstart","touchmove","wheel"].forEach(y=>{document.addEventListener(y,()=>{},{passive:!0})})})()},s=()=>{},c=()=>{[{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(p=>{const b=document.createElement("link");b.rel=p.rel,b.href=p.href,p.crossorigin&&(b.crossOrigin=""),document.head.appendChild(b)})},l=()=>{if(document.querySelectorAll("img[data-lazy]").forEach(p=>{p.loading="lazy"}),"IntersectionObserver"in window){const p=new IntersectionObserver(y=>{y.forEach(x=>{if(x.isIntersecting){const v=x.target;v.dataset.src&&(v.src=v.dataset.src,v.removeAttribute("data-src")),p.unobserve(v)}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(y=>p.observe(y))}},d=()=>{[{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:y,content:x})=>{if(!document.querySelector(`meta[name="${y}"]`)){const v=document.createElement("meta");v.name=y,v.content=x,document.head.appendChild(v)}});const p={"@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"}},b=document.createElement("script");b.type="application/ld+json",b.textContent=JSON.stringify(p),document.head.appendChild(b)},g=()=>{document.querySelectorAll('link[rel="stylesheet"][data-non-critical]').forEach(p=>{const b=p.cloneNode(!0);b.rel="preload",b.as="style",b.onload=()=>{b.onload=null,b.rel="stylesheet"},document.head.appendChild(b),p.remove()})};return e(),r(),n(),o(),c(),l(),d(),g(),setTimeout(s,2e3),()=>{}},[]),a.jsx(a.Fragment,{children:t})),Zo=()=>(h.useEffect(()=>{if(typeof window>"u"||typeof document>"u"||!document.documentElement)return;const t=()=>{if("IntersectionObserver"in window){const l=new IntersectionObserver(d=>{d.forEach(g=>{if(g.isIntersecting){const m=g.target;m.dataset.src&&(m.src=m.dataset.src,m.removeAttribute("data-src"),l.unobserve(m))}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(d=>{l.observe(d)})}const o=()=>{["/connect","/mail","/settings"].forEach(d=>{const g=document.createElement("link");g.rel="prefetch",g.href=d,document.head.appendChild(g)})},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)}},c=()=>{document.querySelectorAll("img[data-hero]").forEach(l=>{const d=l;d.loading="eager","fetchPriority"in d&&(d.fetchPriority="high")}),document.querySelectorAll('img[data-priority="low"]').forEach(l=>{const d=l;d.loading="lazy","fetchPriority"in d&&(d.fetchPriority="low")})};requestIdleCallback(()=>{o(),s(),c()},{timeout:2e3})},e=()=>{if("PerformanceObserver"in window){const o=new PerformanceObserver(c=>{const l=c.getEntries(),d=l[l.length-1];d&&d.startTime>2500&&(console.warn("Poor LCP detected, implementing aggressive optimizations"),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(c=>{let l=0;for(const d of c.getEntries())d.hadRecentInput||(l+=d.value);l>.1&&(console.warn("High CLS detected:",l),document.querySelectorAll("img:not([width]):not([height])").forEach(d=>{const g=d;g.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(c=>{c.getAttribute("data-critical")||c.remove()}),localStorage.setItem("use-low-quality-images","true")):s==="3g"?document.documentElement.classList.add("moderate-connection"):document.documentElement.classList.add("fast-connection")}}};return(()=>{t(),e(),r()})(),()=>{if("PerformanceObserver"in window)try{PerformanceObserver.supportedEntryTypes.forEach(()=>{})}catch{}}},[]),null),Jo=({children:t})=>a.jsx(a.Fragment,{children:t}),Xo={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 Ro{constructor(){this.cache=new Map}set(e,r,n){if(this.cache.size>=n.maxSize){const o=this.cache.keys().next().value;o&&this.cache.delete(o)}this.cache.set(e,{data:r,timestamp:Date.now(),isStale:!1})}get(e,r){const n=this.cache.get(e);if(!n)return null;const s=Date.now()-n.timestamp>r.duration;return s&&!r.staleWhileRevalidate?(this.cache.delete(e),null):{data:n.data,isStale:s}}invalidate(e){for(const r of this.cache.keys())r.includes(e)&&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((e,r)=>e+JSON.stringify(r).length*2,0)}}const U=new Ro,q=new Map,Pt=async(t,e,r="messages")=>{const n=Xo[r],o=U.get(t,n);if(o&&!o.isStale)return o.data;const s=q.get(t);if(s)return s;if(o&&o.isStale&&n.staleWhileRevalidate){const l=e().then(d=>(U.set(t,d,n),q.delete(t),d)).catch(d=>{throw q.delete(t),d});return q.set(t,l),o.data}const c=e().then(l=>(U.set(t,l,n),q.delete(t),l)).catch(l=>{throw q.delete(t),l});return q.set(t,c),c};class es{constructor(){this.queue=[],this.timer=null,this.batchDelay=10}add(e,r){return new Promise((n,o)=>{this.queue.push({key:e,fetcher:r,resolve:n,reject:o}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.processBatch()},this.batchDelay)})}async processBatch(){const e=[...this.queue];this.queue.length=0,this.timer=null;const r=this.groupRequests(e);for(const n of r)await Promise.allSettled(n.map(async o=>{try{const s=await o.fetcher();o.resolve(s)}catch(s){o.reject(s)}}))}groupRequests(e){const r=[];for(let o=0;o<e.length;o+=5)r.push(e.slice(o,o+5));return r}}const ts=new es;class rs{constructor(e,r={}){this.requestInterceptors=[],this.responseInterceptors=[],this.baseURL=e,this.defaultHeaders=r}addRequestInterceptor(e){this.requestInterceptors.push(e)}addResponseInterceptor(e){this.responseInterceptors.push(e)}async request(e,r={},n,o="messages"){const s=`${this.baseURL}${e}`,c=n||`${r.method||"GET"}:${s}`,l=async()=>{let d={...r,headers:{...this.defaultHeaders,...r.headers}};for(const b of this.requestInterceptors)d=b(d);const g=performance.now();let m=await fetch(s,d);for(const b of this.responseInterceptors)m=await b(m);const p=performance.now();if(process.env.NODE_ENV==="development"&&p-g>1e3&&console.warn(`Slow API request: ${s} took ${p-g}ms`),!m.ok)throw new Error(`API Error: ${m.status} ${m.statusText}`);return m.json()};return r.method==="GET"&&this.shouldBatch(e)?ts.add(c,l):Pt(c,l,o)}shouldBatch(e){return e.includes("/messages/")&&!e.includes("/messages?")}async get(e,r){return this.request(e,{method:"GET"},void 0,r)}async post(e,r){return this.request(e,{method:"POST",body:JSON.stringify(r)})}async put(e,r){return this.request(e,{method:"PUT",body:JSON.stringify(r)})}async delete(e){return this.request(e,{method:"DELETE"})}}const as=async(t,e=3,r=1e3)=>{let n;for(let o=0;o<=e;o++)try{return await t()}catch(s){if(n=s,o===e)throw n;const c=r*Math.pow(2,o)+Math.random()*1e3;await new Promise(l=>setTimeout(l,c))}throw n};class ns{constructor(){this.abortController=new AbortController}async request(e,r={}){const n=await fetch(e,{...r,signal:this.abortController.signal});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);return n.json()}cancel(){this.abortController.abort()}}const os={invalidate:t=>U.invalidate(t),clear:()=>U.clear(),getStats:()=>U.getStats(),warmUp:async t=>{await Promise.allSettled(t.map(e=>e()))},prefetch:async t=>{"requestIdleCallback"in window?window.requestIdleCallback(async()=>{await Promise.allSettled(t.map(e=>e()))}):setTimeout(async()=>{await Promise.allSettled(t.map(e=>e()))},100)}};function At(){if(typeof window>"u")return!1;const t=window.navigator.userAgent.toLowerCase();return["metamask","trustwallet","coinbase","rainbow","phantom","solflare","exodus","ledger","binance","okx"].some(r=>t.includes(r))}function $t(){return typeof window>"u"?!1:window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"}function Tt(){if(typeof window>"u")return!1;const t=window.location.hostname;return/^\d+\.\d+\.\d+\.\d+$/.test(t)}function Lt(){return $t()?"localhost":At()?"wallet-browser":Tt()?"network":"production"}function ss(){const t=Lt();return t==="localhost"||t==="wallet-browser"}function is(t){}function Mt(){return typeof window<"u"}function ls(){return typeof window<"u"}function cs(t,e){if(Mt())t();else return e}const zt={"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'"]},Ot=()=>Object.entries(zt).map(([t,e])=>`${t} ${e.join(" ")}`).join("; "),ds={"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":Ot()},gs={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"},us=()=>{typeof window<"u"&&document.addEventListener("securitypolicyviolation",t=>{console.warn("CSP Violation:",{blockedURI:t.blockedURI,violatedDirective:t.violatedDirective,originalPolicy:t.originalPolicy,sourceFile:t.sourceFile,lineNumber:t.lineNumber})})},ms={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"},W=new Map,Z=new Map,be=new Set;let J="medium",We=!1;function hs(){if("connection"in navigator){const r=navigator.connection;r&&(J=r.effectiveType==="4g"?"fast":r.effectiveType==="3g"?"medium":"slow")}const t=navigator.deviceMemory,e=navigator.hardwareConcurrency;We=t&&t<4||e&&e<4}hs();function ps(t,e,r={}){const{retries:n=3,timeout:o=1e4,fallback:s,preloadCondition:c,cacheStrategy:l="memory",priority:d="medium",onLoad:g,onError:m}=r;if(W.has(e))return W.get(e).component;const p=h.lazy(async()=>{const y=performance.now();if(Z.has(e))return Z.get(e).then(v=>({default:v}));const x=fs(t,n,o);Z.set(e,x.then(v=>v.default));try{const v=await x,N=performance.now()-y;if(l!=="none"){const C={component:v.default,timestamp:Date.now(),loadTime:N};if(W.set(e,C),l==="session")try{sessionStorage.setItem(`lazy_${e}`,JSON.stringify({timestamp:C.timestamp,loadTime:N}))}catch{console.warn("Session storage failed for lazy component cache")}}return Z.delete(e),g?.(v.default),v}catch(v){throw Z.delete(e),m?.(v),v}}),b=y=>{const[x,v]=h.useState(!0);h.useEffect(()=>{if(c&&!W.has(e)&&c()&&!be.has(e)){be.add(e);const S=bs(d,J);setTimeout(()=>{t().catch(console.warn)},S)}},[]);const N=s||a.jsxs("div",{className:"flex items-center justify-center p-4",children:[a.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),a.jsxs("span",{className:"ml-2 text-sm text-gray-600",children:["Loading ",e.replace(/([A-Z])/g," $1").trim(),"..."]})]});return!x&&We&&J==="slow"?a.jsx("div",{className:"lazy-placeholder",children:a.jsxs("button",{onClick:()=>v(!0),className:"load-component-btn",children:["Load ",e]})}):a.jsx(h.Suspense,{fallback:N,children:a.jsx(p,{...y})})};return b.displayName=`AdvancedLazy(${e})`,b}async function fs(t,e,r){let n;for(let o=0;o<e;o++)try{const s=new Promise((l,d)=>{setTimeout(()=>d(new Error("Load timeout")),r)});return await Promise.race([t(),s])}catch(s){if(n=s,o<e-1){const c=Math.pow(2,o)*1e3,l=Math.random()*1e3;await new Promise(d=>setTimeout(d,c+l)),console.warn(`Retry ${o+1}/${e} for component load:`,s)}}throw n}function bs(t,e){const r={critical:0,high:500,medium:2e3,low:5e3},n={fast:.5,medium:1,slow:2},o=r[t]||2e3,s=n[e]||1;return o*s}const re=class re{static registerRoute(e,r){this.routeMap.set(e,r),this.routeUsageStats.set(e,0)}static setCurrentRoute(e){this.currentRoute=e;const r=this.routeUsageStats.get(e)||0;this.routeUsageStats.set(e,r+1),this.preloadLikelyRoutes(e)}static preloadLikelyRoutes(e){this.getRouteTransitionProbability(e).forEach(({route:n,probability:o})=>{o>.3&&!W.has(n)&&setTimeout(()=>{this.routeMap.get(n)},J==="fast"?1e3:3e3)})}static getRouteTransitionProbability(e){const r=[];switch(e){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:W.size,currentRoute:this.currentRoute,usageStats:Object.fromEntries(this.routeUsageStats)}}};re.routeMap=new Map,re.routeUsageStats=new Map,re.currentRoute="";let je=re;const ys=({src:t,alt:e,className:r,placeholder:n,priority:o="medium"})=>{const[s,c]=h.useState(!1),[l,d]=h.useState(!1),g=h.useRef(null);h.useEffect(()=>{if(!g.current)return;if(o==="high"){d(!0);return}const p=new IntersectionObserver(([b])=>{b.isIntersecting&&(d(!0),p.unobserve(b.target))},{rootMargin:o==="low"?"100px":"200px",threshold:.1});return p.observe(g.current),()=>p.disconnect()},[o]);const m=()=>{c(!0)};return a.jsxs("div",{className:`lazy-image-container ${r}`,children:[a.jsx("img",{ref:g,src:l?t:n||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB2aWV3Qm94PSIwIDAgMSAxIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNGM0Y0RjYiLz48L3N2Zz4=",alt:e,className:`transition-opacity duration-300 ${s?"opacity-100":"opacity-0"}`,onLoad:m,loading:o==="high"?"eager":"lazy",fetchPriority:o==="high"?"high":"low"}),!s&&l&&a.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse rounded"})]})};function xs(){W.clear(),be.clear()}function vs(){return{cachedComponents:W.size,preloadQueue:be.size,networkSpeed:J,isLowEndDevice:We,cacheEntries:Array.from(W.entries()).map(([t,e])=>({name:t,loadTime:e.loadTime,age:Date.now()-e.timestamp}))}}const ws=({message:t})=>a.jsxs("div",{className:"flex items-center justify-center p-4",children:[a.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),a.jsx("span",{className:"ml-2 text-sm text-gray-600",children:t})]}),ks=t=>{if(typeof t=="function"||typeof t=="object")return t;switch(t){case"minimal":return()=>a.jsx("div",{className:"flex justify-center items-center p-4",children:"Loading..."});case"skeleton":return()=>a.jsxs("div",{className:"animate-pulse",children:[a.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),a.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]});case"default":default:return()=>a.jsx(ws,{message:"Loading component..."})}},Wt=(t,e="default",r=3)=>{const n=h.lazy(async()=>{let s=null;for(let c=0;c<r;c++)try{return await t()}catch(l){s=l,console.warn(`Failed to load component (attempt ${c+1}/${r}):`,l),c<r-1&&await new Promise(d=>setTimeout(d,Math.pow(2,c)*1e3))}throw s}),o=ks(e);return s=>a.jsx(h.Suspense,{fallback:a.jsx(o,{}),children:a.jsx(n,{...s})})},Cs=async t=>{try{await t()}catch(e){console.warn("Failed to preload component:",e)}},Ss=t=>{const e={};return Object.entries(t).forEach(([r,n])=>{e[r]=Wt(n,"skeleton")}),e},Ns=t=>t,jt={critical:["/","/connect","/mail"],secondary:["/settings","/compose","/points"],optional:["/document","/about","/terms","/privacy"]},ae=class ae{static add(e,r){this.preloadedComponents.has(e)||(this.preloadQueue.push({name:e,loader:r}),this.processQueue())}static async processQueue(){this.isPreloading||this.preloadQueue.length===0||(this.isPreloading=!0,"requestIdleCallback"in window?window.requestIdleCallback(async()=>{const e=this.preloadQueue.shift();if(e)try{await e.loader(),this.preloadedComponents.add(e.name)}catch(r){console.warn(`Failed to preload ${e.name}:`,r)}this.isPreloading=!1,this.processQueue()}):setTimeout(async()=>{const e=this.preloadQueue.shift();if(e)try{await e.loader(),this.preloadedComponents.add(e.name)}catch(r){console.warn(`Failed to preload ${e.name}:`,r)}this.isPreloading=!1,this.processQueue()},100))}static isPreloaded(e){return this.preloadedComponents.has(e)}static clear(){this.preloadedComponents.clear(),this.preloadQueue=[],this.isPreloading=!1}};ae.preloadedComponents=new Set,ae.preloadQueue=[],ae.isPreloading=!1;let Be=ae;const Es=()=>{"requestIdleCallback"in window&&window.requestIdleCallback(()=>{jt.secondary.forEach(t=>{})})},Bt=({message:t})=>a.jsxs("div",{className:"flex items-center justify-center p-4",children:[a.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),a.jsx("span",{className:"ml-2 text-sm text-gray-600",children:t})]}),X=new Map;function Is(t,e){const{condition:r,fallback:n,retries:o=3,timeout:s=1e4,priority:c="medium",cacheKey:l=`conditional-${Math.random()}`}=e,d=g=>{const[m,p]=h.useState(!1),[b,y]=h.useState(null);return h.useEffect(()=>{const N=setTimeout(async()=>{const C=X.get(l);if(C&&C.isValid&&Date.now()-C.lastCheck<3e5)try{if(await C.condition()){y(()=>C.component),p(!0);return}}catch(S){console.warn("Cached condition check failed:",S)}try{if(await r()){const I=await $s(t,o,s);X.set(l,{component:I.default,condition:r,lastCheck:Date.now(),isValid:!0}),y(()=>I.default),p(!0)}}catch(S){console.error("Failed to load conditional component:",S)}},c==="high"?0:c==="medium"?100:500);return()=>clearTimeout(N)},[]),m?b?a.jsx(h.Suspense,{fallback:n||a.jsx(Bt,{message:"Loading component..."}),children:a.jsx(b,{...g})}):null:n||a.jsx(Bt,{message:"Checking conditions..."})};return d.displayName=`ConditionalLazy(${l})`,d}const Ps={},As={};async function $s(t,e,r){let n;for(let o=0;o<e;o++)try{const s=new Promise((c,l)=>{setTimeout(()=>l(new Error("Import timeout")),r)});return await Promise.race([t(),s])}catch(s){if(n=s,o<e-1){const c=Math.pow(2,o)*1e3;await new Promise(l=>setTimeout(l,c))}}throw n}function Ts(){X.clear()}function Ls(){return{cachedComponents:X.size,cacheEntries:Array.from(X.entries()).map(([t,e])=>({key:t,lastCheck:e.lastCheck,isValid:e.isValid,age:Date.now()-e.lastCheck}))}}const Dt=[{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 Ms{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 n=r.effectiveType;n==="4g"?this.networkSpeedEstimate="fast":n==="3g"?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}}const e=performance.now();fetch("/favicon.ico",{method:"HEAD"}).then(()=>{const r=performance.now()-e;r<100?this.networkSpeedEstimate="fast":r<300?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}).catch(()=>{this.networkSpeedEstimate="slow"})}detectDeviceCapability(){const e=navigator.deviceMemory,r=navigator.hardwareConcurrency;e&&e<4&&(this.isLowEndDevice=!0),r&&r<4&&(this.isLowEndDevice=!0),"getBattery"in navigator&&navigator.getBattery?.().then(n=>{n.level&&n.level<.2&&(this.isLowEndDevice=!0)})}startUserActivityTracking(){let e;const r=()=>{this.userActivityScore=Math.min(this.userActivityScore+1,100),clearTimeout(e),e=setTimeout(()=>{this.userActivityScore=Math.max(this.userActivityScore-1,0)},5e3)};["click","scroll","keydown","mousemove"].forEach(n=>{document.addEventListener(n,r,{passive:!0})})}shouldPreload(e){return this.networkSpeedEstimate==="slow"&&e.size>50||this.isLowEndDevice&&e.size>30?!1:e.config.condition()}async preloadChunk(e){if(!this.preloaded.has(e.name))try{if(document.querySelectorAll('script[src*="'+e.name+'"]').length===0&&document.querySelectorAll('link[href*="'+e.name+'"]').length>0)return;const n=document.createElement("link");n.rel="modulepreload",n.href=e.path.replace("*",this.getChunkHash(e.name)),n.crossOrigin="","fetchPriority"in n&&(n.fetchPriority=e.config.priority==="critical"?"high":"low"),document.head.appendChild(n),this.preloaded.add(e.name)}catch(r){console.warn(`Failed to preload chunk ${e.name}:`,r)}}getChunkHash(e){const r=Array.from(document.querySelectorAll("script[src]"));for(const n of r){const o=n.src;if(o.includes(e)){const s=o.match(new RegExp(`${e}-([A-Za-z0-9_-]+)\\.js`));if(s)return s[1]}}return"unknown"}async schedulePreload(e){const r=e.config;return r.delay&&await new Promise(n=>setTimeout(n,r.delay)),r.onIdle&&"requestIdleCallback"in window?new Promise(n=>{window.requestIdleCallback(()=>{this.preloadChunk(e).then(n)})}):this.preloadChunk(e)}initializePreloading(){Dt.sort((r,n)=>{const o={critical:0,high:1,medium:2,low:3};return o[r.config.priority]-o[n.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(e){document.querySelectorAll("[data-preload-on-hover]").forEach(n=>{let o=!1;n.addEventListener("mouseenter",()=>{!o&&this.userActivityScore>30&&(this.preloadChunk(e),o=!0)},{passive:!0})})}setupScrollPreloading(e,r){let n=!1;const o=()=>{if(n)return;window.scrollY/(document.body.scrollHeight-window.innerHeight)*100>=r&&(this.preloadChunk(e),n=!0,window.removeEventListener("scroll",o))};window.addEventListener("scroll",o,{passive:!0})}startIntelligentPreloading(){setTimeout(()=>{this.userActivityScore>50&&this.networkSpeedEstimate!=="slow"&&Dt.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 R=null;function zs(){R||(R=new Ms,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{R?.initializePreloading()}):R.initializePreloading())}function Os(){return R?.getPreloadingStats()}function Ws(t){const e={"ai-content-type":t.contentType,"ai-primary-topic":t.primaryTopic,"ai-complexity-level":t.complexityLevel,"ai-content-purpose":t.contentPurpose,"ai-industry-vertical":t.industryVertical,"ai-semantic-keywords":t.semanticKeywords.join(","),"ai-target-audience":t.targetAudience.join(","),"ai-technical-tags":t.technicalTags.join(","),"ai-user-intent":t.userIntent.join(","),"ai-conversion-goals":t.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 t.contentType==="governance-page"&&(e["ai-governance-features"]="voting-notifications,multi-sig-coordination,proposal-tracking",e["ai-dao-platforms"]="snapshot,tally,aragon,safe,decentdao",e["ai-participation-boost"]="85%",e["ai-treasury-management"]="enabled"),e}function Ft(t){const e={"@context":"https://schema.org","@type":Ds(t.contentType),name:t.primaryTopic,description:`Comprehensive ${t.primaryTopic} resource for ${t.targetAudience.join(", ")}`,about:t.semanticKeywords.map(r=>({"@type":"Thing",name:r})),audience:{"@type":"Audience",audienceType:t.targetAudience.join(", ")},educationalLevel:t.complexityLevel,inLanguage:"en",isAccessibleForFree:!0};return t.contentType==="governance-page"?{...e,"@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"}]}:e}function js(t,e){return e.map(r=>({type:"related-content",target:r.url,strength:r.relevance}))}function _t(t){const e=["0xmail.box","Web3","blockchain","email","wallet","cryptocurrency"],r=["DAO","governance","voting","multi-sig","Snapshot","Tally","Aragon","Safe","proposal","community"];return t.contentType==="governance-page"?[...e,...r]:e}function qt(t){const e=["web3-infrastructure","email-technology","blockchain-applications"],r=["dao-governance-tools","voting-notification-systems","community-management-platforms","multi-signature-coordination","treasury-management-solutions"];return t.contentType==="governance-page"?[...e,...r]:e}function Bs(t,e){return{contentClassification:{type:t.contentType,topic:t.primaryTopic,audience:t.targetAudience.join(","),complexity:t.complexityLevel,purpose:t.contentPurpose,vertical:t.industryVertical},semanticMarkup:Ft(t),entityRecognition:_t(t),topicClustering:qt(t),contentRelationships:e?.contentRelationships||[],...e}}function Ds(t){return{article:"Article","landing-page":"WebPage","product-page":"Product","governance-page":"SoftwareApplication",documentation:"TechArticle"}[t]||"WebPage"}function Fs(t){return{"@context":"https://schema.org","@type":"MonitorAction",name:`AI Performance Tracking - ${t}`,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:`${t} Performance Data`,description:"AI-optimized performance metrics and user interaction data"}}}const _s={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"]}},qs=({message:t,className:e})=>a.jsxs("div",{className:`flex items-center justify-center p-4 ${e||""}`,children:[a.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),a.jsx("span",{className:"ml-2 text-sm text-gray-600",children:t})]}),De=new Map,ee=new Set;function Fe(){const t=[];return!!window.ethereum?.isMetaMask&&(ee.add("metamask"),t.push({name:"MetaMask",detected:!0,priority:1})),!!window.ethereum?.isCoinbaseWallet&&(ee.add("coinbase"),t.push({name:"Coinbase Wallet",detected:!0,priority:2})),!!window.solana?.isPhantom&&(ee.add("phantom"),t.push({name:"Phantom",detected:!0,priority:3})),t.push({name:"WalletConnect",detected:!0,priority:4}),t.sort((o,s)=>o.priority-s.priority)}function _e(t){const e=`wallet-${t.toLowerCase()}`;if(De.has(e))return De.get(e);const r=()=>Promise.resolve({default:()=>h.createElement("div",{},`${t} Provider Placeholder`)}),n=h.lazy(r),o=s=>a.jsx(h.Suspense,{fallback:a.jsx(qs,{message:`Loading ${t} wallet...`,className:"wallet-loading"}),children:a.jsx(n,{...s})});return o.displayName=`Lazy${t}Provider`,De.set(e,o),o}function Hs({children:t}){const e=Fe();return e.filter(r=>r.priority<=2&&r.detected).forEach(r=>{setTimeout(()=>{},1e3)}),a.jsxs(a.Fragment,{children:[e.map(r=>{const n=_e(r.name);return a.jsx(n,{},r.name)}),t]})}const Ue=class Ue{static preloadWallet(e){const r=e.toLowerCase();this.preloadedWallets.has(r)||(this.preloadedWallets.add(r),setTimeout(()=>{_e(e)},500))}static preloadCommonWallets(){["metamask","walletconnect","coinbase"].forEach((r,n)=>{setTimeout(()=>{this.preloadWallet(r)},n*1e3)})}static getPreloadedWallets(){return Array.from(this.preloadedWallets)}};Ue.preloadedWallets=new Set;let te=Ue;function Vs(){return{availableWallets:Fe(),preloadWallet:n=>{te.preloadWallet(n)},getDetectedWallets:()=>Array.from(ee),hasWallet:n=>ee.has(n.toLowerCase())}}function Us({walletName:t,onConnect:e,disabled:r=!1}){const n=()=>{te.preloadWallet(t),setTimeout(e,100)};return a.jsxs("button",{onClick:n,disabled:r,className:"wallet-connect-btn","data-wallet":t.toLowerCase(),children:["Connect ",t]})}class Gs{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 c of s.getEntries())c.name==="first-contentful-paint"&&(this.observedMetrics.fcp=c.startTime,this.optimizeBasedOnFCP(c.startTime))}).observe({entryTypes:["paint"]}),new PerformanceObserver(s=>{for(const c of s.getEntries())this.observedMetrics.lcp=c.startTime,this.optimizeBasedOnLCP(c.startTime)}).observe({entryTypes:["largest-contentful-paint"]});let n=0;new PerformanceObserver(s=>{for(const c of s.getEntries())c.hadRecentInput||(n+=c.value);this.observedMetrics.cls=n}).observe({entryTypes:["layout-shift"]})}catch(e){console.warn("Performance observation setup failed:",e)}window.addEventListener("load",()=>{setTimeout(()=>{const e=performance.getEntriesByType("navigation")[0];e&&(this.observedMetrics.ttfb=e.responseStart-e.requestStart,this.optimizeBasedOnTTFB(this.observedMetrics.ttfb))},0)})}optimizeBasedOnFCP(e){e>2e3?this.applyEmergencyOptimizations():e>1500&&this.applyMediumOptimizations()}optimizeBasedOnLCP(e){e>2500&&this.optimizeLCPElements()}optimizeBasedOnTTFB(e){e>600&&(console.warn("Slow server response, enabling aggressive caching"),this.enableAggressiveCaching())}applyEmergencyOptimizations(){document.querySelectorAll('img[data-priority="low"]').forEach(n=>{n.loading="lazy",n.style.display="none",setTimeout(()=>{n.style.display=""},3e3)}),document.querySelectorAll('script[data-priority="low"]').forEach(n=>{n.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(n=>{n instanceof HTMLImageElement&&(n.fetchPriority="high",n.loading="eager")});const r=document.querySelector("img[data-hero]")?.getAttribute("src");r&&this.preloadResource(r,"image")}enableAggressiveCaching(){const e=document.createElement("meta");e.httpEquiv="Cache-Control",e.content="public, max-age=31536000, immutable",document.head.appendChild(e)}preloadResource(e,r){if(document.querySelector(`link[href*="${e}"]`))return;const o=document.createElement("link");switch(o.rel="preload",o.href=e,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(e=>e.priority==="critical"&&e.preload).forEach(e=>{this.preloadResource(e.url,e.type)}),this.inlineCriticalCSS(),this.optimizeFontLoading(),this.removeRenderBlocking(),this.setupProgressiveLoading()}inlineCriticalCSS(){const e=document.querySelector('link[rel="stylesheet"][data-critical]');e&&this.isSmallResource(e.getAttribute("href")||"")&&fetch(e.getAttribute("href")||"").then(r=>r.text()).then(r=>{if(r.length<1e4){const n=document.createElement("style");n.textContent=r,document.head.appendChild(n),e.remove()}}).catch(console.warn)}optimizeFontLoading(){document.querySelectorAll('link[href*="fonts.googleapis.com"]').forEach(r=>{const n=r.getAttribute("href")||"";if(!n.includes("display=swap")){const o=n.includes("?")?"&":"?";r.setAttribute("href",`${n}${o}display=swap`)}})}removeRenderBlocking(){document.querySelectorAll('link[rel="stylesheet"]:not([data-critical])').forEach(r=>{const n=r.cloneNode(!0);n.rel="preload",n.as="style",n.onload=()=>{n.onload=null,n.rel="stylesheet"};const o=document.createElement("noscript"),s=r.cloneNode(!0);o.appendChild(s),document.head.appendChild(n),document.head.appendChild(o),r.remove()})}setupProgressiveLoading(){const e=document.querySelectorAll("img[data-src]");if("IntersectionObserver"in window){const r=new IntersectionObserver(n=>{n.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});e.forEach(n=>r.observe(n))}else e.forEach(r=>{const n=r;n.src=n.dataset.src||""})}isSmallResource(e){return e.includes("critical")||e.includes("inline")}getPerformanceMetrics(){return{...this.observedMetrics,score:this.calculatePerformanceScore()}}calculatePerformanceScore(){let e=100;return this.observedMetrics.fcp>2e3?e-=20:this.observedMetrics.fcp>1500&&(e-=10),this.observedMetrics.lcp>2500?e-=25:this.observedMetrics.lcp>2e3&&(e-=15),this.observedMetrics.cls>.1?e-=15:this.observedMetrics.cls>.05&&(e-=8),this.observedMetrics.ttfb>600?e-=10:this.observedMetrics.ttfb>400&&(e-=5),Math.max(e,0)}}const ye={mark:t=>{typeof performance<"u"&&performance.mark&&performance.mark(t)},measure:(t,e,r)=>{if(typeof performance<"u"&&performance.measure)try{performance.measure(t,e,r);const n=performance.getEntriesByName(t);return n[n.length-1]?.duration||0}catch(n){return console.warn("Performance measurement failed:",n),0}return 0},getEntries:t=>typeof performance<"u"&&performance.getEntriesByName?t?performance.getEntriesByName(t):performance.getEntries():[],clearEntries:t=>{typeof performance<"u"&&(t?(performance.clearMeasures?.(t),performance.clearMarks?.(t)):(performance.clearMeasures?.(),performance.clearMarks?.()))}},Ks=(t,e=[])=>{h.useEffect(()=>(ye.mark(`${t}-start`),()=>{ye.mark(`${t}-end`),ye.measure(t,`${t}-start`,`${t}-end`)}),[t,e])},Qs=t=>{const e=h.useRef(t);return e.current=t,h.useCallback((...r)=>e.current(...r),[])},Ys=(t,e,r)=>{const n=h.useRef(e),o=h.useRef(void 0);return h.useMemo(()=>(r&&process.env.NODE_ENV==="development"&&e.some((s,c)=>s!==n.current[c]),n.current=e,o.current=t(),o.current),[t,r,e])},xe=new Map,Zs=t=>{const e=xe.get(t)||0;xe.set(t,e+1),h.useEffect(()=>{process.env.NODE_ENV})},Js=()=>Object.fromEntries(xe),Xs=()=>xe.clear(),Rs=t=>h.lazy(t),ei=(t=.1)=>{const[e,r]=h.useState(new Set),n=h.useRef(null);h.useEffect(()=>(n.current=new IntersectionObserver(s=>{s.forEach(c=>{if(c.isIntersecting){const l=c.target,d=l.dataset.src;d&&(l.src=d,l.onload=()=>{r(g=>new Set(g).add(d))},n.current?.unobserve(l))}})},{threshold:t}),()=>n.current?.disconnect()),[t]);const o=h.useCallback(s=>{s&&n.current&&n.current.observe(s)},[]);return{loadedImages:e,observeImage:o}},ti=t=>{typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(()=>{t().catch(()=>{})}):setTimeout(()=>{t().catch(()=>{})},100)},Ht={},ri=t=>{Ht[t.name]=t.value,process.env.NODE_ENV},ai=()=>Ht,ni=(t,e="script")=>{if(typeof document<"u"){const r=document.createElement("link");r.rel="prefetch",r.href=t,r.as=e,document.head.appendChild(r)}},oi=(t,e="script",r)=>{if(typeof document<"u"){const n=document.createElement("link");n.rel="preload",n.href=t,n.as=e,r&&(n.crossOrigin="anonymous"),document.head.appendChild(n)}},si=t=>{const e=h.useRef(new Set),r=h.useRef(new Set),n=h.useCallback((s,c)=>{const l=setTimeout(()=>{e.current.delete(l),s()},c);return e.current.add(l),l},[]),o=h.useCallback((s,c)=>{const l=setInterval(s,c);return r.current.add(l),l},[]);return h.useEffect(()=>{const s=e.current,c=r.current;return()=>{s.forEach(l=>clearTimeout(l)),c.forEach(l=>clearInterval(l)),process.env.NODE_ENV}},[t]),{createTimer:n,createInterval:o}},j={maxBundleSize:500,maxChunkSize:200,maxImageSize:100,maxFCP:1800,maxLCP:2500,maxFID:100,maxCLS:.1,check:t=>{const e=[];return t.FCP&&t.FCP>j.maxFCP&&e.push(`FCP (${t.FCP}ms) exceeds budget (${j.maxFCP}ms)`),t.LCP&&t.LCP>j.maxLCP&&e.push(`LCP (${t.LCP}ms) exceeds budget (${j.maxLCP}ms)`),t.FID&&t.FID>j.maxFID&&e.push(`FID (${t.FID}ms) exceeds budget (${j.maxFID}ms)`),t.CLS&&t.CLS>j.maxCLS&&e.push(`CLS (${t.CLS}) exceeds budget (${j.maxCLS})`),e}},ii=({contentType:t,aiSummary:e,technicalComplexity:r="intermediate"})=>a.jsxs(tr.Helmet,{children:[a.jsx("meta",{name:"ai:content-type",content:t}),a.jsx("meta",{name:"ai:summary",content:e}),a.jsx("meta",{name:"ai:complexity",content:r})]}),li=({children:t,className:e,...r})=>a.jsx("main",{className:e,...r,role:"main",children:t}),ci=({children:t})=>a.jsx(a.Fragment,{children:t}),G=t=>Array.isArray(t)?t:typeof t=="string"?t.split(",").map(e=>e.trim()).filter(Boolean):[],qe=t=>{const e=G(t.audience);return{"@context":"https://schema.org","@type":"SoftwareApplication",name:"0xmail.box",applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",description:t.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:e.join(", "),geographicArea:"Worldwide"},creator:{"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box"},datePublished:"2024-01-01",dateModified:t.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}}},He=t=>{const e=G(t.keywords),r=G(t.audience);return{"@context":"https://schema.org","@type":"TechnicalArticle",headline:t.title,description:t.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:t.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:e.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:t.complexity},educationalLevel:t.complexity,proficiencyLevel:t.complexity,learningResourceType:t.contentType,timeRequired:t.readingTime?`PT${t.readingTime}M`:"PT5M",inLanguage:"en",isAccessibleForFree:!0,license:"https://creativecommons.org/licenses/by/4.0/",teaches:t.relatedTopics||["Web3 email setup","Wallet connection process","Blockchain authentication","Smart contract integration"]}},di=t=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.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:e.category||"Web3 Email"}))}),Ve=t=>({"@context":"https://schema.org","@type":"WebPage",name:t.title,description:t.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:t.relatedTopics?.map(e=>`https://0xmail.box/search?q=${encodeURIComponent(e)}`)||[],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"}}),Vt=t=>{const e=G(t.keywords);return{"og:title":t.title,"og:description":t.description,"og:type":"website","og:url":`https://0xmail.box${location.pathname}`,"og:image":`https://0xmail.box/og-images/${t.category}.jpg`,"og:image:width":"1200","og:image:height":"630","og:image:alt":`${t.title} - Web3 Email Platform`,"og:site_name":"0xmail.box","og:locale":"en_US","article:author":"https://0xmail.box/about","article:section":t.category,"article:tag":e.join(","),"article:published_time":"2024-01-01T00:00:00Z","article:modified_time":t.lastUpdated?.toISOString()||new Date().toISOString()}},Ut=t=>({"twitter:card":"summary_large_image","twitter:site":"@0xmailbox","twitter:creator":"@0xmailbox","twitter:title":t.title,"twitter:description":t.description,"twitter:image":`https://0xmail.box/twitter-cards/${t.category}.jpg`,"twitter:image:alt":`${t.title} - Web3 Email Platform`,"twitter:label1":"Category","twitter:data1":t.category,"twitter:label2":"Reading Time","twitter:data2":t.readingTime?`${t.readingTime} min`:"5 min"}),Gt=t=>{const e=G(t.keywords),r=G(t.audience);return{"ai:content-type":t.contentType,"ai:complexity":t.complexity,"ai:category":t.category,"ai:audience":r.join(","),"ai:keywords":e.join(","),"ai:reading-time":t.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":t.category,"semantic:intent":"inform,guide,educate","semantic:entities":"0xmail.box,Web3,blockchain,email,wallet","content:freshness":t.lastUpdated?.toISOString()||new Date().toISOString(),"content:authority":"high","content:expertise":"technical","content:trustworthiness":"verified"}},gi=t=>({structuredData:{product:qe(t),article:He(t),aiOptimized:Ve(t)},openGraph:Vt(t),twitterCard:Ut(t),aiMetaTags:Gt(t),jsonLD:[qe(t),He(t),Ve(t)]}),ui={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"]}},mi=t=>{const{level:e,text:r,className:n="",id:o,semanticContext:s="section"}=t,c=`h${e}`,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"},d={"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"},g=[l[e],d[s],n].filter(Boolean).join(" "),m=o||r.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return h.createElement(c,{id:m,className:g,"aria-level":e},r)},O={pageTitle:(t,e)=>({level:1,text:t,className:e,semanticContext:"page-title"}),majorSection:(t,e)=>({level:2,text:t,className:e,semanticContext:"section"}),feature:(t,e)=>({level:3,text:t,className:e,semanticContext:"feature"}),benefit:(t,e)=>({level:3,text:t,className:e,semanticContext:"benefit"}),step:(t,e,r)=>({level:3,text:e?`Step ${e}: ${t}`:t,className:r,semanticContext:"step"}),subFeature:(t,e)=>({level:4,text:t,className:e,semanticContext:"feature"})},hi=t=>{const e=[],r=[],n=t.filter(o=>o.level===1).length;n===0?e.push("Missing H1 tag - every page should have exactly one H1"):n>1&&e.push(`Multiple H1 tags found (${n}) - use only one H1 per page`);for(let o=1;o<t.length;o++){const s=t[o],c=t[o-1];s.level>c.level+1&&e.push(`Heading level jump from H${c.level} to H${s.level} - avoid skipping levels`)}return t.forEach((o,s)=>{o.text.length<3&&e.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:e.length===0,errors:e,suggestions:r}},pi={walletConnection:O.pageTitle("Connect Your Web3 Wallet"),emailBenefits:O.majorSection("Why Choose Web3 Email?"),securityFeature:O.feature("Secure & Private"),ensIntegration:O.feature("ENS Domain Support"),multiChain:O.feature("Multi-Chain Compatibility"),passwordless:O.benefit("No Passwords Required"),setupStep1:O.step("Connect Your Wallet",1),setupStep2:O.step("Verify Your Identity",2),setupStep3:O.step("Access Your Emails",3)},fi=[{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"}],bi=t=>({"@context":"https://schema.org","@type":"LearningResource",educationalLevel:t.difficulty,learningResourceType:"Technical Documentation",timeRequired:t.estimatedTime?`PT${t.estimatedTime}M`:void 0,teaches:t.learningObjectives,requires:t.prerequisites,about:{"@type":"Thing",name:t.domain,category:t.category,subcategory:t.subcategory},keywords:t.concepts,applicationExample:t.practicalApplications,isRelatedTo:t.relatedConcepts}),yi=t=>{const e={nodes:t.map(r=>({id:r.term,label:r.term,category:r.category,definition:r.definition})),edges:[]};return t.forEach(r=>{r.relatedTerms?.forEach(n=>{t.find(s=>s.term===n)&&e.edges.push({source:r.term,target:n,relationship:"related_to"})}),r.synonyms?.forEach(n=>{e.edges.push({source:r.term,target:n,relationship:"synonym_of"})})}),e},xi=t=>{const e=[];return t.examples?.forEach(r=>{e.push({text:r,label:t.term,type:"positive",confidence:1})}),t.context&&e.push({text:t.context,label:t.term,type:"contextual",confidence:.8}),e.push({text:`${t.term} is ${t.definition}`,label:t.term,type:"definition",confidence:1}),e},vi=t=>{const e=[];return t.forEach(r=>{e.push({question:`What is ${r.term}?`,answer:r.definition,category:r.category,difficulty:"basic"}),r.context&&e.push({question:`How does ${r.term} work?`,answer:r.context,category:r.category,difficulty:"intermediate"}),r.examples&&r.examples.length>0&&e.push({question:`What are examples of ${r.term}?`,answer:r.examples.join(", "),category:r.category,difficulty:"basic"}),r.relatedTerms&&r.relatedTerms.length>0&&e.push({question:`What is ${r.term} related to?`,answer:`${r.term} is related to ${r.relatedTerms.join(", ")}`,category:r.category,difficulty:"intermediate"})}),e},wi={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.
|
|
@@ -64,4 +64,4 @@ ${t.description}`},label:"Facebook"},{component:z.LinkedinShareButton,icon:z.Lin
|
|
|
64
64
|
* @version 1.4.0
|
|
65
65
|
* @author John Qiu Huang
|
|
66
66
|
* @license MIT
|
|
67
|
-
*/const bl={utils:{cn:h,withOpacity:ct,responsive:gt,themeColor:ut,getSizeClasses:mt,buttonVariant:pt,inputVariant:ht,cardVariant:yt,textVariant:ft},design:{colors:$e,tokens:g,typography:E,variants:C}};Object.defineProperty(i,"ArrowLeftIcon",{enumerable:!0,get:()=>v.ArrowLeftIcon}),Object.defineProperty(i,"ArrowRightIcon",{enumerable:!0,get:()=>v.ArrowRightIcon}),Object.defineProperty(i,"Bars3Icon",{enumerable:!0,get:()=>v.Bars3Icon}),Object.defineProperty(i,"BellIcon",{enumerable:!0,get:()=>v.BellIcon}),Object.defineProperty(i,"BellSlashIcon",{enumerable:!0,get:()=>v.BellSlashIcon}),Object.defineProperty(i,"ChartBarIcon",{enumerable:!0,get:()=>v.ChartBarIcon}),Object.defineProperty(i,"CheckCircleIcon",{enumerable:!0,get:()=>v.CheckCircleIcon}),Object.defineProperty(i,"CheckIcon",{enumerable:!0,get:()=>v.CheckIcon}),Object.defineProperty(i,"ChevronDownIcon",{enumerable:!0,get:()=>v.ChevronDownIcon}),Object.defineProperty(i,"ChevronLeftIcon",{enumerable:!0,get:()=>v.ChevronLeftIcon}),Object.defineProperty(i,"ChevronRightIcon",{enumerable:!0,get:()=>v.ChevronRightIcon}),Object.defineProperty(i,"ChevronUpIcon",{enumerable:!0,get:()=>v.ChevronUpIcon}),Object.defineProperty(i,"ClockIcon",{enumerable:!0,get:()=>v.ClockIcon}),Object.defineProperty(i,"CodeBracketIcon",{enumerable:!0,get:()=>v.CodeBracketIcon}),Object.defineProperty(i,"Cog6ToothIcon",{enumerable:!0,get:()=>v.Cog6ToothIcon}),Object.defineProperty(i,"CreditCardIcon",{enumerable:!0,get:()=>v.CreditCardIcon}),Object.defineProperty(i,"DocumentTextIcon",{enumerable:!0,get:()=>v.DocumentTextIcon}),Object.defineProperty(i,"EnvelopeIcon",{enumerable:!0,get:()=>v.EnvelopeIcon}),Object.defineProperty(i,"ExclamationTriangleIcon",{enumerable:!0,get:()=>v.ExclamationTriangleIcon}),Object.defineProperty(i,"EyeSlashIcon",{enumerable:!0,get:()=>v.EyeSlashIcon}),Object.defineProperty(i,"GlobeAltIcon",{enumerable:!0,get:()=>v.GlobeAltIcon}),Object.defineProperty(i,"HomeIcon",{enumerable:!0,get:()=>v.HomeIcon}),Object.defineProperty(i,"InboxIcon",{enumerable:!0,get:()=>v.InboxIcon}),Object.defineProperty(i,"InformationCircleIcon",{enumerable:!0,get:()=>v.InformationCircleIcon}),Object.defineProperty(i,"KeyIcon",{enumerable:!0,get:()=>v.KeyIcon}),Object.defineProperty(i,"MegaphoneIcon",{enumerable:!0,get:()=>v.MegaphoneIcon}),Object.defineProperty(i,"MinusIcon",{enumerable:!0,get:()=>v.MinusIcon}),Object.defineProperty(i,"PaperAirplaneIcon",{enumerable:!0,get:()=>v.PaperAirplaneIcon}),Object.defineProperty(i,"PaperClipIcon",{enumerable:!0,get:()=>v.PaperClipIcon}),Object.defineProperty(i,"PlusIcon",{enumerable:!0,get:()=>v.PlusIcon}),Object.defineProperty(i,"RocketLaunchIcon",{enumerable:!0,get:()=>v.RocketLaunchIcon}),Object.defineProperty(i,"ShieldCheckIcon",{enumerable:!0,get:()=>v.ShieldCheckIcon}),Object.defineProperty(i,"SparklesIcon",{enumerable:!0,get:()=>v.SparklesIcon}),Object.defineProperty(i,"StarIcon",{enumerable:!0,get:()=>v.StarIcon}),Object.defineProperty(i,"TrashIcon",{enumerable:!0,get:()=>v.TrashIcon}),Object.defineProperty(i,"UserGroupIcon",{enumerable:!0,get:()=>v.UserGroupIcon}),Object.defineProperty(i,"XMarkIcon",{enumerable:!0,get:()=>v.XMarkIcon}),Object.defineProperty(i,"CheckCircleIconSolid",{enumerable:!0,get:()=>ue.CheckCircleIcon}),Object.defineProperty(i,"CheckIconSolid",{enumerable:!0,get:()=>ue.CheckIcon}),Object.defineProperty(i,"ExclamationTriangleIconSolid",{enumerable:!0,get:()=>ue.ExclamationTriangleIcon}),Object.defineProperty(i,"StarIconSolid",{enumerable:!0,get:()=>ue.StarIcon}),i.ACCESSIBILITY_KEYWORDS=Le,i.AIMeta=Rs,i.AITrainingEnhancer=tl,i.AI_TRAINING_CONFIGS=ml,i.Alert=uo,i.AlertDescription=go,i.AlertTitle=co,i.AnimatedSection=H,i.BASE_KEYWORDS=B,i.BatchRender=Mi,i.BodyText=On,i.Breadcrumb=Xt,i.BreadcrumbSection=bi,i.Button=q,i.COMPANY_KEYWORDS=Te,i.CTASection=Wi,i.CalloutBox=No,i.CancellableRequest=Zi,i.Card=Oe,i.CardContent=vo,i.CardFooter=Co,i.CardHeader=wo,i.ChainBadge=Vt,i.CodeBlock=pi,i.CodeExampleBlock=hi,i.CollapsibleDocumentationTopic=fi,i.CollapsibleEmailField=He,i.ComparisonSection=To,i.ComponentPreloader=Qe,i.ConditionalRender=Li,i.ConfirmationDialog=Gn,i.ContentContainer=jo,i.DEVELOPER_KEYWORDS=Pe,i.DOCUMENTATION_KEYWORDS=kt,i.Dropdown=Mo,i.EmailAccountsList=nn,i.EmailInputField=Ue,i.EmailInputGroup=wn,i.EmptyState=Yt,i.ErrorBoundary=Si,i.ErrorBoundaryLazy=Ni,i.ExpensiveComponent=Pi,i.FadeInScale=yo,i.FadeInUp=ho,i.FeatureBlock=ci,i.FeatureCard=Oo,i.FeatureGrid=_o,i.FlexContainer=bn,i.FloatingElement=fo,i.FormFieldGroup=ke,i.FormSection=li,i.FreeEmailBanner=ri,i.GRADIENTS=M,i.GRADIENTSLegacy=M,i.GRADIENT_CLASSES=xt,i.GRADIENT_CLASSESLegacy=xt,i.GradientButton=Ho,i.HeroBannerWithBadge=Go,i.IconContainer=Xn,i.InfoCard=So,i.InfoPanel=oi,i.Input=Bt,i.KYCLevelCard=so,i.KYCStatusBadge=oo,i.Label=De,i.LanguageSelector=vi,i.LazyComponent=zi,i.LazyImage=cs,i.LazyLoadQueue=At,i.LazyWalletButton=Ws,i.LazyWrapper=ja,i.LoadPriority=je,i.LoadingOptimizer=qi,i.LoadingState=xn,i.Logo=ui,i.MasterDetailLayout=Fi,i.MetricsGrid=Yo,i.Modal=Qt,i.ModalContent=Zt,i.ModalFooter=Jt,i.ModalHeader=qn,i.NoContent=kn,i.OptimizedAPIClient=Yi,i.OptimizedImage=Oi,i.OptimizedRoutePreloader=Vi,i.PageContainer=hn,i.PageHeader=Di,i.PageTitle=Ln,i.PerformanceBoundary=ji,i.PerformanceOptimizer=_i,i.PlatformSpecificComponents=ws,i.PriorityLoader=Pt,i.ProcessSteps=Qo,i.PromotionalBanner=xi,i.RouteBasedLazyLoader=Ye,i.SafeAppWrapper=Ei,i.Section=fn,i.SectionBadge=Pn,i.SectionHeader=Jo,i.SectionTitle=jn,i.SecurityProvider=$i,i.Select=Fe,i.SelectContent=fe,i.SelectField=Sn,i.SelectGroup=Zo,i.SelectItem=xe,i.SelectLabel=Ft,i.SelectScrollDownButton=qe,i.SelectScrollUpButton=_e,i.SelectSeparator=_t,i.SelectTrigger=ye,i.SelectValue=Dt,i.SemanticHTML=el,i.SmartContent=_n,i.SmartLink=Ge,i.SmartWalletProviders=Ms,i.Spinner=Ve,i.StandardPageLayout=Bi,i.StatCard=ii,i.StatusBadge=rn,i.StatusIndicator=$n,i.StepList=Ci,i.SubscriptionGatedComponents=ks,i.SumsubWebSDK=no,i.Switch=qt,i.TECHNICAL_SEO_KEYWORDS=be,i.TableOfContents=Ro,i.Tabs=sn,i.TabsContent=Kt,i.TabsList=Ht,i.TabsTrigger=Gt,i.TextAreaField=Cn,i.TextField=vn,i.TextLink=Bn,i.TrackedButton=ki,i.TrackedLink=wi,i.UI_CONSTANTS=L,i.UI_CONSTANTSLegacy=L,i.UI_PATTERNS=Hr,i.USER_FOCUSED_KEYWORDS=Ae,i.UseCaseGrid=ln,i.VirtualListItem=Ti,i.WEB3_CONCEPTS=ll,i.WEB3_EMAIL_HEADINGS=sl,i.WEB3_HEADING_PATTERNS=W,i.WEB3_TRENDING_KEYWORDS=me,i.WalletIcon=gi,i.WalletPreloader=ne,i.addResourceHint=Wa,i.aiOptimizationPresets=zs,i.appStorage=Fa,i.autoConnectWalletBrowser=Ua,i.batchDOMUpdates=ta,i.bundleAnalysis=Q,i.buttonVariant=pt,i.buttonVariants=Wt,i.cacheHeaders=as,i.cacheUtils=Ji,i.cardVariant=yt,i.checkPerformanceBudget=Qa,i.clearComponentCache=gs,i.clearConditionalCache=Cs,i.clearRenderCounts=Us,i.cn=h,i.colors=$e,i.colorsLegacy=$e,i.combineClassNames=h,i.combineGradient=Mr,i.combineKeywords=D,i.conditionalCSS=ts,i.convertFileSize=Xa,i.createAIMetaTags=fr,i.createAIOptimizedSchema=tt,i.createAdvancedLazyComponent=ss,i.createBreadcrumb=Aa,i.createCSSVariables=Qr,i.createComparisonData=We,i.createConditionalImports=wa,i.createConditionalLazyComponent=xs,i.createEmailComparisonData=Lo,i.createEnhancedFAQSchema=rl,i.createEnhancedOpenGraph=hr,i.createEnhancedTwitterCard=yr,i.createFeature=Be,i.createLazyComponent=lr,i.createLazyComponentFactory=Hs,i.createLazyRoute=Ma,i.createLazyWalletProvider=Xe,i.createLibraryImports=ys,i.createMemoComponent=Ii,i.createOptimizedStyles=Gr,i.createProgressiveComponent=za,i.createSecurityFeatures=qo,i.createSelectiveExports=va,i.createSelectiveMemoComponent=Ai,i.createSemanticHeading=nl,i.createSimpleStorage=Va,i.createTechArticleData=Ur,i.createTechnicalArticleSchema=et,i.createTreeShakingConfig=Ca,i.createUIComponents=hs,i.createWeb3ProductSchema=Re,i.criticalPathOptimizer=Bs,i.cspDirectives=ir,i.cssOptimization=$t,i.deadCodeElimination=Y,i.default=bl,i.defaultPerformanceBudget=zt,i.designTokens=g,i.designTokensLegacy=g,i.detectAvailableWallets=Je,i.detectWalletBrowser=Tt,i.exportPerformanceData=Za,i.formatFileSize=Ja,i.generateAIMetaTags=Is,i.generateAIMetadata=dl,i.generateAIStructuredData=Ps,i.generateAdvancedSEO=al,i.generateCSP=sr,i.generateConceptGraph=cl,i.generateContentRelationships=As,i.generateEntityRecognition=mr,i.generateImageSEO=da,i.generatePerformanceTrackingSchema=Ls,i.generatePictureElement=pa,i.generatePlaceholder=xa,i.generateQAPairs=ul,i.generateSemanticMarkup=ur,i.generateSizes=ga,i.generateSocialImageMeta=ua,i.generateSrcSet=ca,i.generateTopicClustering=br,i.generateTrainingExamples=gl,i.getAboutPageKeywords=Wr,i.getActiveNavItem=Ia,i.getConditionalStats=Ss,i.getContactKeywords=Vr,i.getDeveloperPageKeywords=Fr,i.getDocumentationKeywords=Br,i.getEnvironmentType=or,i.getGradient=jr,i.getHomePageKeywords=Or,i.getLazyLoadingStats=us,i.getOptimalImageFormat=ba,i.getPerformanceMonitor=he,i.getPreloadingStats=$s,i.getRenderCounts=Vs,i.getSizeClasses=mt,i.getSubscriptionKeywords=qr,i.getUINavigationService=O,i.getUserPageKeywords=Dr,i.getWeb3ProjectsKeywords=_r,i.getWebVitals=Qs,i.initializeAdvancedPreloading=Es,i.initializePerformanceMonitoring=Ga,i.initializePreloading=fs,i.inlineCriticalStyles=aa,i.inputVariant=ht,i.isLocalhost=rr,i.isNetworkAccess=ar,i.isWalletBrowser=tr,i.isWebEnvironment=nr,i.lazyLoadQueue=Ba,i.lazyWithPreload=La,i.lazyWithRetry=Ta,i.loadCSS=Ri,i.loadCriticalCSS=Kr,i.loadNonCriticalCSS=Yr,i.measureAsyncOperation=Ya,i.measureImagePerformance=fa,i.navigationHelper=U,i.navigationUtils=Pa,i.optimizeClassNames=ra,i.optimizeContainment=Rr,i.optimizeFlex=ia,i.optimizeGrid=na,i.optimizeWillChange=ea,i.optimizedFetch=er,i.pageSEOConfigs=ol,i.parseFileSize=Ra,i.performanceBudget=_,i.performanceUtils=Ce,i.prefersReducedMotion=Ct,i.prefetchResource=Zs,i.preloadComponent=ps,i.preloadImage=ha,i.preloadResource=Js,i.preloadRoute=Ks,i.preserveAspectRatio=ka,i.priorityLoader=Da,i.reportWebVitals=Ys,i.responsive=gt,i.routeConfig=dr,i.securityHeaders=rs,i.setupCSPReporting=os,i.setupLazyLoading=ma,i.setupProgressiveLoading=ya,i.shouldEnableWallet=Xi,i.smartLinkVariants=we,i.supportsAVIF=Nt,i.supportsCSSImports=es,i.supportsWebP=St,i.textVariant=ft,i.textVariants=E,i.themeColor=ut,i.themeStorage=_a,i.ui=vt,i.uiLegacy=vt,i.useClickOutside=jt,i.useCodeLoader=Mt,i.useComponentPerformance=Lt,i.useCopyToClipboard=eo,i.useDebugMemo=_s,i.useDynamicImport=Oa,i.useImageLazyLoading=Gs,i.useLazyLoad=It,i.useLazyStyles=oa,i.useLocation=Ea,i.useMediaQuery=sa,i.useMemoryLeakDetection=Xs,i.useMultipleCopyToClipboard=to,i.useNavigation=Na,i.useOptimizedTheme=la,i.useOptimizedWallets=Os,i.usePerformanceMark=Ds,i.useReducedMotion=Xr,i.useRenderCount=qs,i.useResponsiveStyles=Jr,i.useSearchParams=$a,i.useSmartLinks=Dn,i.useStableCallback=Fs,i.utils=Et,i.validateHeadingStructure=il,i.variants=C,i.walletStorage=qa,i.web3SecurityNotes=ns,i.withOpacity=ct,i.withPerformanceTracking=Ka,i.withRetry=Qi,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
67
|
+
*/const ki={utils:{cn:f}};Object.defineProperty(i,"ArrowLeftIcon",{enumerable:!0,get:()=>w.ArrowLeftIcon}),Object.defineProperty(i,"ArrowRightIcon",{enumerable:!0,get:()=>w.ArrowRightIcon}),Object.defineProperty(i,"Bars3Icon",{enumerable:!0,get:()=>w.Bars3Icon}),Object.defineProperty(i,"BellIcon",{enumerable:!0,get:()=>w.BellIcon}),Object.defineProperty(i,"BellSlashIcon",{enumerable:!0,get:()=>w.BellSlashIcon}),Object.defineProperty(i,"ChartBarIcon",{enumerable:!0,get:()=>w.ChartBarIcon}),Object.defineProperty(i,"CheckCircleIcon",{enumerable:!0,get:()=>w.CheckCircleIcon}),Object.defineProperty(i,"CheckIcon",{enumerable:!0,get:()=>w.CheckIcon}),Object.defineProperty(i,"ChevronDownIcon",{enumerable:!0,get:()=>w.ChevronDownIcon}),Object.defineProperty(i,"ChevronLeftIcon",{enumerable:!0,get:()=>w.ChevronLeftIcon}),Object.defineProperty(i,"ChevronRightIcon",{enumerable:!0,get:()=>w.ChevronRightIcon}),Object.defineProperty(i,"ChevronUpIcon",{enumerable:!0,get:()=>w.ChevronUpIcon}),Object.defineProperty(i,"ClockIcon",{enumerable:!0,get:()=>w.ClockIcon}),Object.defineProperty(i,"CodeBracketIcon",{enumerable:!0,get:()=>w.CodeBracketIcon}),Object.defineProperty(i,"Cog6ToothIcon",{enumerable:!0,get:()=>w.Cog6ToothIcon}),Object.defineProperty(i,"CreditCardIcon",{enumerable:!0,get:()=>w.CreditCardIcon}),Object.defineProperty(i,"DocumentTextIcon",{enumerable:!0,get:()=>w.DocumentTextIcon}),Object.defineProperty(i,"EnvelopeIcon",{enumerable:!0,get:()=>w.EnvelopeIcon}),Object.defineProperty(i,"ExclamationTriangleIcon",{enumerable:!0,get:()=>w.ExclamationTriangleIcon}),Object.defineProperty(i,"EyeSlashIcon",{enumerable:!0,get:()=>w.EyeSlashIcon}),Object.defineProperty(i,"GlobeAltIcon",{enumerable:!0,get:()=>w.GlobeAltIcon}),Object.defineProperty(i,"HomeIcon",{enumerable:!0,get:()=>w.HomeIcon}),Object.defineProperty(i,"InboxIcon",{enumerable:!0,get:()=>w.InboxIcon}),Object.defineProperty(i,"InformationCircleIcon",{enumerable:!0,get:()=>w.InformationCircleIcon}),Object.defineProperty(i,"KeyIcon",{enumerable:!0,get:()=>w.KeyIcon}),Object.defineProperty(i,"MegaphoneIcon",{enumerable:!0,get:()=>w.MegaphoneIcon}),Object.defineProperty(i,"MinusIcon",{enumerable:!0,get:()=>w.MinusIcon}),Object.defineProperty(i,"PaperAirplaneIcon",{enumerable:!0,get:()=>w.PaperAirplaneIcon}),Object.defineProperty(i,"PaperClipIcon",{enumerable:!0,get:()=>w.PaperClipIcon}),Object.defineProperty(i,"PlusIcon",{enumerable:!0,get:()=>w.PlusIcon}),Object.defineProperty(i,"RocketLaunchIcon",{enumerable:!0,get:()=>w.RocketLaunchIcon}),Object.defineProperty(i,"ShieldCheckIcon",{enumerable:!0,get:()=>w.ShieldCheckIcon}),Object.defineProperty(i,"SparklesIcon",{enumerable:!0,get:()=>w.SparklesIcon}),Object.defineProperty(i,"StarIcon",{enumerable:!0,get:()=>w.StarIcon}),Object.defineProperty(i,"TrashIcon",{enumerable:!0,get:()=>w.TrashIcon}),Object.defineProperty(i,"UserGroupIcon",{enumerable:!0,get:()=>w.UserGroupIcon}),Object.defineProperty(i,"XMarkIcon",{enumerable:!0,get:()=>w.XMarkIcon}),Object.defineProperty(i,"CheckCircleIconSolid",{enumerable:!0,get:()=>ce.CheckCircleIcon}),Object.defineProperty(i,"CheckIconSolid",{enumerable:!0,get:()=>ce.CheckIcon}),Object.defineProperty(i,"ExclamationTriangleIconSolid",{enumerable:!0,get:()=>ce.ExclamationTriangleIcon}),Object.defineProperty(i,"StarIconSolid",{enumerable:!0,get:()=>ce.StarIcon}),i.AIMeta=ii,i.AITrainingEnhancer=ci,i.AI_TRAINING_CONFIGS=wi,i.Alert=ka,i.AlertDescription=wa,i.AlertTitle=va,i.AnimatedSection=_,i.BatchRender=Ho,i.BodyText=Hn,i.Breadcrumb=Et,i.BreadcrumbSection=ko,i.Button=B,i.CTASection=Uo,i.CalloutBox=Oa,i.CancellableRequest=ns,i.Card=Ne,i.CardContent=La,i.CardFooter=Ma,i.CardHeader=Ta,i.ChainBadge=bt,i.CodeBlock=Co,i.CodeExampleBlock=So,i.CollapsibleDocumentationTopic=Eo,i.CollapsibleEmailField=ze,i.ComparisonSection=_a,i.ComponentPreloader=Be,i.ConditionalRender=Fo,i.ConfirmationDialog=Rn,i.ContentContainer=Va,i.Dropdown=Ua,i.EmailAccountsList=mn,i.EmailInputField=Me,i.EmailInputGroup=Pn,i.EmptyState=kt,i.ErrorBoundary=Lo,i.ErrorBoundaryLazy=Mo,i.ExpensiveComponent=Bo,i.FadeInScale=Ia,i.FadeInUp=Ea,i.FeatureBlock=yo,i.FeatureCard=Ga,i.FeatureGrid=Ja,i.FlexContainer=wn,i.FloatingElement=Pa,i.FormFieldGroup=pe,i.FormSection=fo,i.FreeEmailBanner=co,i.HeroBannerWithBadge=Ra,i.IconContainer=oo,i.InfoCard=za,i.InfoPanel=uo,i.Input=ut,i.KYCLevelCard=ba,i.KYCStatusBadge=ha,i.Label=Pe,i.LanguageSelector=$o,i.LazyComponent=_o,i.LazyImage=ys,i.LazyLoadQueue=at,i.LazyWalletButton=Us,i.LazyWrapper=Vr,i.LoadPriority=Ce,i.LoadingOptimizer=Zo,i.LoadingState=En,i.Logo=vo,i.MasterDetailLayout=Qo,i.MetricsGrid=tn,i.Modal=Ct,i.ModalContent=St,i.ModalFooter=Nt,i.ModalHeader=Yn,i.NoContent=In,i.OptimizedAPIClient=rs,i.OptimizedImage=Vo,i.OptimizedRoutePreloader=Jo,i.PageContainer=Cn,i.PageHeader=Ko,i.PageTitle=Dn,i.PerformanceBoundary=qo,i.PerformanceOptimizer=Yo,i.PlatformSpecificComponents=As,i.PriorityLoader=nt,i.ProcessSteps=rn,i.PromotionalBanner=Io,i.RouteBasedLazyLoader=je,i.SafeAppWrapper=zo,i.Section=Nn,i.SectionBadge=jn,i.SectionHeader=nn,i.SectionTitle=_n,i.SecurityProvider=Oo,i.Select=Ae,i.SelectContent=me,i.SelectField=Tn,i.SelectGroup=an,i.SelectItem=he,i.SelectLabel=ht,i.SelectScrollDownButton=Te,i.SelectScrollUpButton=$e,i.SelectSeparator=pt,i.SelectTrigger=ue,i.SelectValue=mt,i.SemanticHTML=li,i.SmartContent=Qn,i.SmartLink=Oe,i.SmartWalletProviders=Hs,i.Spinner=Le,i.StandardPageLayout=Go,i.StatCard=ho,i.StatusBadge=dn,i.StatusIndicator=zn,i.StepList=To,i.SubscriptionGatedComponents=Ps,i.SumsubWebSDK=pa,i.Switch=ft,i.TableOfContents=sn,i.Tabs=hn,i.TabsContent=wt,i.TabsList=xt,i.TabsTrigger=vt,i.TextAreaField=$n,i.TextField=An,i.TextLink=Un,i.TrackedButton=Po,i.TrackedLink=Ao,i.UseCaseGrid=pn,i.VirtualListItem=Do,i.WEB3_CONCEPTS=fi,i.WEB3_EMAIL_HEADINGS=pi,i.WEB3_HEADING_PATTERNS=O,i.WalletIcon=xo,i.WalletPreloader=te,i.addResourceHint=Kr,i.aiOptimizationPresets=_s,i.appStorage=Zr,i.autoConnectWalletBrowser=ea,i.batchDOMUpdates=gr,i.bundleAnalysis=V,i.buttonVariants=gt,i.cacheHeaders=gs,i.cacheUtils=os,i.checkPerformanceBudget=oa,i.clearComponentCache=xs,i.clearConditionalCache=Ts,i.clearRenderCounts=Xs,i.cn=f,i.combineClassNames=f,i.conditionalCSS=cs,i.convertFileSize=la,i.createAIMetaTags=Gt,i.createAIOptimizedSchema=Ve,i.createAdvancedLazyComponent=ps,i.createBreadcrumb=Dr,i.createCSSVariables=or,i.createComparisonData=Ee,i.createConditionalImports=Tr,i.createConditionalLazyComponent=Is,i.createEmailComparisonData=qa,i.createEnhancedFAQSchema=di,i.createEnhancedOpenGraph=Vt,i.createEnhancedTwitterCard=Ut,i.createFeature=Ie,i.createLazyComponent=Wt,i.createLazyComponentFactory=Rs,i.createLazyRoute=Ur,i.createLazyWalletProvider=_e,i.createLibraryImports=Ns,i.createMemoComponent=Wo,i.createOptimizedStyles=rr,i.createProgressiveComponent=Hr,i.createSecurityFeatures=Xa,i.createSelectiveExports=Lr,i.createSelectiveMemoComponent=jo,i.createSemanticHeading=mi,i.createSimpleStorage=Rr,i.createTechnicalArticleSchema=He,i.createTreeShakingConfig=Mr,i.createUIComponents=Ss,i.createWeb3ProductSchema=qe,i.criticalPathOptimizer=Gs,i.cspDirectives=zt,i.cssOptimization=tt,i.deadCodeElimination=H,i.default=ki,i.defaultPerformanceBudget=it,i.detectAvailableWallets=Fe,i.detectWalletBrowser=ot,i.exportPerformanceData=sa,i.formatFileSize=ia,i.generateAIMetaTags=Ws,i.generateAIMetadata=bi,i.generateAIStructuredData=Bs,i.generateAdvancedSEO=gi,i.generateCSP=Ot,i.generateConceptGraph=yi,i.generateContentRelationships=js,i.generateEntityRecognition=_t,i.generateImageSEO=xr,i.generatePerformanceTrackingSchema=Fs,i.generatePictureElement=Nr,i.generatePlaceholder=Ar,i.generateQAPairs=vi,i.generateSemanticMarkup=Ft,i.generateSizes=wr,i.generateSocialImageMeta=kr,i.generateSrcSet=vr,i.generateTopicClustering=qt,i.generateTrainingExamples=xi,i.getActiveNavItem=Br,i.getConditionalStats=Ls,i.getEnvironmentType=Lt,i.getLazyLoadingStats=vs,i.getOptimalImageFormat=Sr,i.getPerformanceMonitor=ge,i.getPreloadingStats=Os,i.getRenderCounts=Js,i.getUINavigationService=z,i.getWebVitals=ai,i.initializeAdvancedPreloading=zs,i.initializePerformanceMonitoring=ra,i.initializePreloading=Es,i.inlineCriticalStyles=mr,i.isLocalhost=$t,i.isNetworkAccess=Tt,i.isWalletBrowser=At,i.isWebEnvironment=Mt,i.lazyLoadQueue=Qr,i.lazyWithPreload=qr,i.lazyWithRetry=_r,i.loadCSS=is,i.loadCriticalCSS=ar,i.loadNonCriticalCSS=nr,i.measureAsyncOperation=na,i.measureImagePerformance=Pr,i.navigationHelper=F,i.navigationUtils=Fr,i.optimizeClassNames=ur,i.optimizeContainment=cr,i.optimizeFlex=fr,i.optimizeGrid=pr,i.optimizeWillChange=dr,i.optimizedFetch=Pt,i.pageSEOConfigs=ui,i.parseFileSize=ca,i.performanceBudget=j,i.performanceUtils=ye,i.prefersReducedMotion=Je,i.prefetchResource=ni,i.preloadComponent=Cs,i.preloadImage=Er,i.preloadResource=oi,i.preloadRoute=ti,i.preserveAspectRatio=$r,i.priorityLoader=Yr,i.reportWebVitals=ri,i.routeConfig=jt,i.securityHeaders=ds,i.setupCSPReporting=us,i.setupLazyLoading=Cr,i.setupProgressiveLoading=Ir,i.shouldEnableWallet=ss,i.smartLinkVariants=fe,i.supportsAVIF=Re,i.supportsCSSImports=ls,i.supportsWebP=Xe,i.themeStorage=Jr,i.useClickOutside=lt,i.useCodeLoader=ct,i.useComponentPerformance=st,i.useCopyToClipboard=da,i.useDebugMemo=Ys,i.useDynamicImport=Gr,i.useImageLazyLoading=ei,i.useLazyLoad=rt,i.useLazyStyles=hr,i.useLocation=Wr,i.useMediaQuery=br,i.useMemoryLeakDetection=si,i.useMultipleCopyToClipboard=ga,i.useNavigation=Or,i.useOptimizedTheme=yr,i.useOptimizedWallets=Vs,i.usePerformanceMark=Ks,i.useReducedMotion=lr,i.useRenderCount=Zs,i.useResponsiveStyles=ir,i.useSearchParams=jr,i.useSmartLinks=Gn,i.useStableCallback=Qs,i.utils=et,i.validateHeadingStructure=hi,i.walletStorage=Xr,i.web3SecurityNotes=ms,i.withPerformanceTracking=aa,i.withRetry=as,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|