otx-swap 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-2{inset:.5rem}.inset-x-0{left:0;right:0}.-bottom-1{bottom:-.25rem}.-bottom-2{bottom:-.5rem}.-right-1{right:-.25rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-3{left:.75rem}.left-4{left:1rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\\/2{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.-my-4{margin-top:-1rem;margin-bottom:-1rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-2{width:.5rem;height:.5rem}.size-20{width:5rem;height:5rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[2\\.5rem\\]{max-height:2.5rem}.max-h-\\[2rem\\]{max-height:2rem}.max-h-\\[3rem\\]{max-height:3rem}.max-h-\\[5rem\\]{max-height:5rem}.max-h-\\[600px\\]{max-height:600px}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[90vh\\]{max-height:90vh}.max-h-\\[96vh\\]{max-height:96vh}.w-1\\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-96{width:24rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\\[140px\\]{min-width:140px}.max-w-2xl{max-width:42rem}.max-w-\\[280px\\]{max-width:280px}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-\\[var\\(--optimex-border\\)\\]>:not([hidden])~:not([hidden]){border-color:var(--optimex-border)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[0\\.25rem\\]{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\\[var\\(--optimex-background\\)\\]{border-color:var(--optimex-background)}.border-\\[var\\(--optimex-border\\)\\]{border-color:var(--optimex-border)}.border-\\[var\\(--optimex-primary\\)\\]{border-color:var(--optimex-primary)}.border-\\[var\\(--optimex-surface\\)\\]{border-color:var(--optimex-surface)}.border-current{border-color:currentColor}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white\\/10{border-color:#ffffff1a}.border-white\\/5{border-color:#ffffff0d}.border-white\\/\\[0\\.02\\]{border-color:#ffffff05}.border-white\\/\\[0\\.05\\]{border-color:#ffffff0d}.border-t-transparent{border-top-color:transparent}.bg-\\[rgba\\(239\\,68\\,68\\,0\\.15\\)\\]{background-color:#ef444426}.bg-\\[rgba\\(34\\,197\\,94\\,0\\.15\\)\\]{background-color:#22c55e26}.bg-\\[rgba\\(59\\,130\\,246\\,0\\.15\\)\\]{background-color:#3b82f626}.bg-\\[var\\(--optimex-background\\)\\]{background-color:var(--optimex-background)}.bg-\\[var\\(--optimex-border\\)\\]{background-color:var(--optimex-border)}.bg-\\[var\\(--optimex-error\\)\\]{background-color:var(--optimex-error)}.bg-\\[var\\(--optimex-primary\\)\\]{background-color:var(--optimex-primary)}.bg-\\[var\\(--optimex-surface\\)\\]{background-color:var(--optimex-surface)}.bg-\\[var\\(--optimex-surface-hover\\)\\]{background-color:var(--optimex-surface-hover)}.bg-black\\/60{background-color:#0009}.bg-blue-500\\/20{background-color:#3b82f633}.bg-green-500\\/10{background-color:#22c55e1a}.bg-orange-500\\/20{background-color:#f9731633}.bg-purple-500\\/20{background-color:#a855f733}.bg-red-500\\/10{background-color:#ef44441a}.bg-red-500\\/20{background-color:#ef444433}.bg-transparent{background-color:transparent}.bg-white\\/10{background-color:#ffffff1a}.bg-white\\/20{background-color:#fff3}.bg-white\\/5{background-color:#ffffff0d}.bg-white\\/\\[0\\.02\\]{background-color:#ffffff05}.bg-yellow-500\\/10{background-color:#eab3081a}.bg-zinc-800\\/80{background-color:#27272acc}.bg-zinc-900\\/50{background-color:#18181b80}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[var\\(--optimex-primary\\)\\]{--tw-gradient-from: var(--optimex-primary) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#d45800\\]{--tw-gradient-to: #d45800 var(--tw-gradient-to-position)}.stroke-\\[var\\(--optimex-error\\)\\]{stroke:var(--optimex-error)}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-\\[var\\(--optimex-error\\)\\]{color:var(--optimex-error)}.text-\\[var\\(--optimex-primary\\)\\]{color:var(--optimex-primary)}.text-\\[var\\(--optimex-success\\)\\]{color:var(--optimex-success)}.text-\\[var\\(--optimex-text\\)\\]{color:var(--optimex-text)}.text-\\[var\\(--optimex-text-secondary\\)\\]{color:var(--optimex-text-secondary)}.text-\\[var\\(--optimex-warning\\)\\]{color:var(--optimex-warning)}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/20{color:#fff3}.text-white\\/30{color:#ffffff4d}.text-white\\/40{color:#fff6}.text-white\\/50{color:#ffffff80}.text-white\\/60{color:#fff9}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-zinc-400{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_15px_rgba\\(235\\,98\\,0\\,0\\.1\\)\\]{--tw-shadow: 0 0 15px rgba(235,98,0,.1);--tw-shadow-colored: 0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_15px_rgba\\(235\\,98\\,0\\,0\\.3\\)\\]{--tw-shadow: 0 0 15px rgba(235,98,0,.3);--tw-shadow-colored: 0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_8px_rgba\\(235\\,98\\,0\\,0\\.8\\)\\]{--tw-shadow: 0 0 8px rgba(235,98,0,.8);--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.optx-widget{isolation:isolate;width:100%;min-width:0;max-width:100%;--optimex-primary: #eb6200;--optimex-primary-rgb: 235, 98, 0;--optimex-primary-hover: #d45800;--optimex-background: #0f1115;--optimex-surface: #1a1e26;--optimex-surface-hover: #252a35;--optimex-card-dark: #141417;--optimex-text: #ffffff;--optimex-text-secondary: #9ca3af;--optimex-border: #23170f;--optimex-success: #22c55e;--optimex-error: #ef4444;--optimex-warning: #f59e0b;font-family:Space Grotesk,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:14px;line-height:1.5;color:var(--optimex-text);text-align:left;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.optx-widget .glass-container{background:linear-gradient(135deg,#1a1e26e6,#0f1115f2);border:1px solid rgba(255,255,255,.05);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);width:100%;min-width:0;max-width:100%;box-sizing:border-box}.optx-widget *,.optx-widget *:before,.optx-widget *:after{box-sizing:border-box}.optx-widget button{font-family:inherit;line-height:inherit;margin:0;cursor:pointer}.optx-widget input,.optx-widget select,.optx-widget textarea{font-family:inherit;line-height:inherit;margin:0}.optx-widget a{color:inherit;text-decoration:none}.optx-widget ul,.optx-widget ol{list-style:none;margin:0;padding:0}.optx-widget img{max-width:100%;height:auto}.optx-widget svg{display:inline-block;vertical-align:middle}.glow-orange{box-shadow:inset 0 0 15px #eb620026,0 0 20px #eb62001a}.glow-green{box-shadow:0 0 12px #22c55e33}.glow-red{box-shadow:0 0 12px #ef444433}@keyframes status-pulse{0%,to{opacity:1}50%{opacity:.5}}.status-pulse{animation:status-pulse 2s cubic-bezier(.4,0,.6,1) infinite}.placeholder\\:text-white\\/10::-moz-placeholder{color:#ffffff1a}.placeholder\\:text-white\\/10::placeholder{color:#ffffff1a}.placeholder\\:text-white\\/30::-moz-placeholder{color:#ffffff4d}.placeholder\\:text-white\\/30::placeholder{color:#ffffff4d}.placeholder\\:text-white\\/50::-moz-placeholder{color:#ffffff80}.placeholder\\:text-white\\/50::placeholder{color:#ffffff80}.focus-within\\:border-\\[var\\(--optimex-primary\\)\\]:focus-within{border-color:var(--optimex-primary)}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-\\[var\\(--optimex-primary\\)\\]:hover{border-color:var(--optimex-primary)}.hover\\:bg-\\[rgba\\(239\\,68\\,68\\,0\\.2\\)\\]:hover{background-color:#ef444433}.hover\\:bg-\\[var\\(--optimex-primary-hover\\)\\]:hover{background-color:var(--optimex-primary-hover)}.hover\\:bg-\\[var\\(--optimex-surface-hover\\)\\]:hover{background-color:var(--optimex-surface-hover)}.hover\\:bg-white\\/10:hover{background-color:#ffffff1a}.hover\\:bg-white\\/5:hover{background-color:#ffffff0d}.hover\\:bg-white\\/\\[0\\.02\\]:hover{background-color:#ffffff05}.hover\\:text-\\[var\\(--optimex-primary\\)\\]:hover{color:var(--optimex-primary)}.hover\\:text-\\[var\\(--optimex-text\\)\\]:hover{color:var(--optimex-text)}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:text-white\\/40:hover{color:#fff6}.hover\\:text-white\\/50:hover{color:#ffffff80}.hover\\:text-white\\/60:hover{color:#fff9}.hover\\:opacity-70:hover{opacity:.7}.hover\\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-\\[var\\(--optimex-primary\\)\\]:focus{border-color:var(--optimex-primary)}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:scale-\\[0\\.98\\]:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:opacity-100{opacity:1}@media(min-width:640px){.sm\\:text-left{text-align:left}}@media(min-width:768px){.md\\:h-\\[70vh\\]{height:70vh}}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { jsx as s, jsxs as p, Fragment as Ee } from "react/jsx-runtime";
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-2{inset:.5rem}.inset-x-0{left:0;right:0}.-bottom-1{bottom:-.25rem}.-bottom-2{bottom:-.5rem}.-right-1{right:-.25rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-3{left:.75rem}.left-4{left:1rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\\/2{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.-my-4{margin-top:-1rem;margin-bottom:-1rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-2{width:.5rem;height:.5rem}.size-20{width:5rem;height:5rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[2\\.5rem\\]{max-height:2.5rem}.max-h-\\[2rem\\]{max-height:2rem}.max-h-\\[3rem\\]{max-height:3rem}.max-h-\\[5rem\\]{max-height:5rem}.max-h-\\[600px\\]{max-height:600px}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[90vh\\]{max-height:90vh}.max-h-\\[96vh\\]{max-height:96vh}.w-1\\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-96{width:24rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\\[140px\\]{min-width:140px}.max-w-2xl{max-width:42rem}.max-w-\\[280px\\]{max-width:280px}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-\\[var\\(--optimex-border\\)\\]>:not([hidden])~:not([hidden]){border-color:var(--optimex-border)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[0\\.25rem\\]{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\\[var\\(--optimex-background\\)\\]{border-color:var(--optimex-background)}.border-\\[var\\(--optimex-border\\)\\]{border-color:var(--optimex-border)}.border-\\[var\\(--optimex-primary\\)\\]{border-color:var(--optimex-primary)}.border-\\[var\\(--optimex-surface\\)\\]{border-color:var(--optimex-surface)}.border-current{border-color:currentColor}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white\\/10{border-color:#ffffff1a}.border-white\\/5{border-color:#ffffff0d}.border-white\\/\\[0\\.02\\]{border-color:#ffffff05}.border-white\\/\\[0\\.05\\]{border-color:#ffffff0d}.border-t-transparent{border-top-color:transparent}.bg-\\[rgba\\(239\\,68\\,68\\,0\\.15\\)\\]{background-color:#ef444426}.bg-\\[rgba\\(34\\,197\\,94\\,0\\.15\\)\\]{background-color:#22c55e26}.bg-\\[rgba\\(59\\,130\\,246\\,0\\.15\\)\\]{background-color:#3b82f626}.bg-\\[var\\(--optimex-background\\)\\]{background-color:var(--optimex-background)}.bg-\\[var\\(--optimex-border\\)\\]{background-color:var(--optimex-border)}.bg-\\[var\\(--optimex-error\\)\\]{background-color:var(--optimex-error)}.bg-\\[var\\(--optimex-primary\\)\\]{background-color:var(--optimex-primary)}.bg-\\[var\\(--optimex-surface\\)\\]{background-color:var(--optimex-surface)}.bg-\\[var\\(--optimex-surface-hover\\)\\]{background-color:var(--optimex-surface-hover)}.bg-black\\/60{background-color:#0009}.bg-blue-500\\/20{background-color:#3b82f633}.bg-green-500\\/10{background-color:#22c55e1a}.bg-orange-500\\/20{background-color:#f9731633}.bg-purple-500\\/20{background-color:#a855f733}.bg-red-500\\/10{background-color:#ef44441a}.bg-red-500\\/20{background-color:#ef444433}.bg-transparent{background-color:transparent}.bg-white\\/10{background-color:#ffffff1a}.bg-white\\/20{background-color:#fff3}.bg-white\\/5{background-color:#ffffff0d}.bg-white\\/\\[0\\.02\\]{background-color:#ffffff05}.bg-yellow-500\\/10{background-color:#eab3081a}.bg-zinc-800\\/80{background-color:#27272acc}.bg-zinc-900\\/50{background-color:#18181b80}.stroke-\\[var\\(--optimex-error\\)\\]{stroke:var(--optimex-error)}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-\\[var\\(--optimex-error\\)\\]{color:var(--optimex-error)}.text-\\[var\\(--optimex-primary\\)\\]{color:var(--optimex-primary)}.text-\\[var\\(--optimex-success\\)\\]{color:var(--optimex-success)}.text-\\[var\\(--optimex-text\\)\\]{color:var(--optimex-text)}.text-\\[var\\(--optimex-text-secondary\\)\\]{color:var(--optimex-text-secondary)}.text-\\[var\\(--optimex-warning\\)\\]{color:var(--optimex-warning)}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/20{color:#fff3}.text-white\\/30{color:#ffffff4d}.text-white\\/40{color:#fff6}.text-white\\/50{color:#ffffff80}.text-white\\/60{color:#fff9}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-zinc-400{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_15px_rgba\\(235\\,98\\,0\\,0\\.1\\)\\]{--tw-shadow: 0 0 15px rgba(235,98,0,.1);--tw-shadow-colored: 0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_15px_rgba\\(235\\,98\\,0\\,0\\.3\\)\\]{--tw-shadow: 0 0 15px rgba(235,98,0,.3);--tw-shadow-colored: 0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_8px_rgba\\(235\\,98\\,0\\,0\\.8\\)\\]{--tw-shadow: 0 0 8px rgba(235,98,0,.8);--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.optx-widget{isolation:isolate;width:100%;min-width:0;max-width:100%;--optimex-primary: #eb6200;--optimex-primary-rgb: 235, 98, 0;--optimex-primary-hover: #d45800;--optimex-background: #0f1115;--optimex-surface: #1a1e26;--optimex-surface-hover: #252a35;--optimex-card-dark: #141417;--optimex-text: #ffffff;--optimex-text-secondary: #9ca3af;--optimex-border: #23170f;--optimex-success: #22c55e;--optimex-error: #ef4444;--optimex-warning: #f59e0b;font-family:Space Grotesk,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:14px;line-height:1.5;color:var(--optimex-text);text-align:left;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.optx-widget .glass-container{background:linear-gradient(135deg,#1a1e26e6,#0f1115f2);border:1px solid rgba(255,255,255,.05);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);width:100%;min-width:0;max-width:100%;box-sizing:border-box}.optx-widget *,.optx-widget *:before,.optx-widget *:after{box-sizing:border-box}.optx-widget button{font-family:inherit;line-height:inherit;margin:0;cursor:pointer}.optx-widget input,.optx-widget select,.optx-widget textarea{font-family:inherit;line-height:inherit;margin:0}.optx-widget a{color:inherit;text-decoration:none}.optx-widget ul,.optx-widget ol{list-style:none;margin:0;padding:0}.optx-widget img{max-width:100%;height:auto}.optx-widget svg{display:inline-block;vertical-align:middle}.glow-orange{box-shadow:inset 0 0 15px #eb620026,0 0 20px #eb62001a}.glow-green{box-shadow:0 0 12px #22c55e33}.glow-red{box-shadow:0 0 12px #ef444433}@keyframes status-pulse{0%,to{opacity:1}50%{opacity:.5}}.status-pulse{animation:status-pulse 2s cubic-bezier(.4,0,.6,1) infinite}.placeholder\\:text-white\\/10::-moz-placeholder{color:#ffffff1a}.placeholder\\:text-white\\/10::placeholder{color:#ffffff1a}.placeholder\\:text-white\\/30::-moz-placeholder{color:#ffffff4d}.placeholder\\:text-white\\/30::placeholder{color:#ffffff4d}.placeholder\\:text-white\\/50::-moz-placeholder{color:#ffffff80}.placeholder\\:text-white\\/50::placeholder{color:#ffffff80}.focus-within\\:border-\\[var\\(--optimex-primary\\)\\]:focus-within{border-color:var(--optimex-primary)}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-\\[var\\(--optimex-primary\\)\\]:hover{border-color:var(--optimex-primary)}.hover\\:bg-\\[rgba\\(239\\,68\\,68\\,0\\.2\\)\\]:hover{background-color:#ef444433}.hover\\:bg-\\[var\\(--optimex-primary-hover\\)\\]:hover{background-color:var(--optimex-primary-hover)}.hover\\:bg-\\[var\\(--optimex-surface-hover\\)\\]:hover{background-color:var(--optimex-surface-hover)}.hover\\:bg-white\\/10:hover{background-color:#ffffff1a}.hover\\:bg-white\\/5:hover{background-color:#ffffff0d}.hover\\:bg-white\\/\\[0\\.02\\]:hover{background-color:#ffffff05}.hover\\:text-\\[var\\(--optimex-primary\\)\\]:hover{color:var(--optimex-primary)}.hover\\:text-\\[var\\(--optimex-text\\)\\]:hover{color:var(--optimex-text)}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:text-white\\/40:hover{color:#fff6}.hover\\:text-white\\/50:hover{color:#ffffff80}.hover\\:text-white\\/60:hover{color:#fff9}.hover\\:opacity-70:hover{opacity:.7}.hover\\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-\\[var\\(--optimex-primary\\)\\]:focus{border-color:var(--optimex-primary)}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:scale-\\[0\\.98\\]:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:opacity-100{opacity:1}@media(min-width:640px){.sm\\:text-left{text-align:left}}@media(min-width:768px){.md\\:h-\\[70vh\\]{height:70vh}}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ import { jsx as i, jsxs as p, Fragment as Ee } from "react/jsx-runtime";
3
3
  import * as h from "react";
4
4
  import T, { createContext as Ct, useMemo as J, useContext as en, useState as ne, useCallback as V, useLayoutEffect as Oo, useEffect as tn, useRef as Zn } from "react";
5
5
  import { u as qe, Q as Io, a as Do } from "./react-query-Dkr_4QFk.js";
@@ -34,8 +34,8 @@ function zo({
34
34
  ...t.colors
35
35
  }
36
36
  } : _t, [t]), r = J(() => ({
37
- "": n.colors.primary,
38
- "-hover": n.colors.primaryHover,
37
+ "--optimex-primary": n.colors.primary,
38
+ "--optimex-primary-hover": n.colors.primaryHover,
39
39
  "--optimex-secondary": n.colors.secondary,
40
40
  "--optimex-background": n.colors.background,
41
41
  "--optimex-surface": n.colors.surface,
@@ -47,7 +47,7 @@ function zo({
47
47
  "--optimex-error": n.colors.error,
48
48
  "--optimex-warning": n.colors.warning
49
49
  }), [n]);
50
- return /* @__PURE__ */ s(Fo.Provider, { value: { theme: n }, children: /* @__PURE__ */ s("div", { style: r, className: "w-full", children: e }) });
50
+ return /* @__PURE__ */ i(Fo.Provider, { value: { theme: n }, children: /* @__PURE__ */ i("div", { style: r, className: "w-full", children: e }) });
51
51
  }
52
52
  const Xn = Ct(null);
53
53
  function Vo({
@@ -56,7 +56,7 @@ function Vo({
56
56
  onRequestWallet: n
57
57
  }) {
58
58
  const r = J(() => {
59
- const o = t?.evm?.address ?? null, a = t?.evm?.chain?.id ?? null, l = t?.btc?.address ?? null, i = t?.btc?.publicKey ?? null, c = t?.solana?.address ?? null, d = !!o, u = !!l, f = !!c;
59
+ const o = t?.evm?.address ?? null, a = t?.evm?.chain?.id ?? null, l = t?.btc?.address ?? null, s = t?.btc?.publicKey ?? null, c = t?.solana?.address ?? null, d = !!o, u = !!l, f = !!c;
60
60
  return {
61
61
  mode: "external",
62
62
  isExternalWallet: !0,
@@ -65,7 +65,7 @@ function Vo({
65
65
  evmChainId: a,
66
66
  isEvmConnected: d,
67
67
  btcAddress: l,
68
- btcPublicKey: i,
68
+ btcPublicKey: s,
69
69
  isBtcConnected: u,
70
70
  solanaAddress: c,
71
71
  isSolanaConnected: f,
@@ -75,7 +75,7 @@ function Vo({
75
75
  isConnecting: !1
76
76
  };
77
77
  }, [t, n]);
78
- return /* @__PURE__ */ s(Xn.Provider, { value: r, children: e });
78
+ return /* @__PURE__ */ i(Xn.Provider, { value: r, children: e });
79
79
  }
80
80
  class Rt extends Error {
81
81
  status;
@@ -104,11 +104,11 @@ class Qn {
104
104
  body: r ? JSON.stringify(r) : void 0
105
105
  });
106
106
  if (!a.ok) {
107
- const i = await a.json().catch(() => ({}));
107
+ const s = await a.json().catch(() => ({}));
108
108
  throw new Rt(
109
109
  a.status,
110
- i.message || `Request failed with status ${a.status}`,
111
- i.code
110
+ s.message || `Request failed with status ${a.status}`,
111
+ s.code
112
112
  );
113
113
  }
114
114
  return (await a.json()).data;
@@ -274,7 +274,7 @@ function ea(e, {
274
274
  from_user_address: o,
275
275
  to_user_address: a,
276
276
  user_refund_pubkey: l,
277
- slippage: i = "100",
277
+ slippage: s = "100",
278
278
  affiliate_fee_bps: c,
279
279
  affiliate_info: d,
280
280
  trade_timeout: u,
@@ -295,7 +295,7 @@ function ea(e, {
295
295
  from_user_address: o,
296
296
  to_user_address: a,
297
297
  user_refund_pubkey: l,
298
- slippage: i
298
+ slippage: s
299
299
  }),
300
300
  queryFn: async () => {
301
301
  const y = Ge(e), v = Jn(
@@ -305,7 +305,7 @@ function ea(e, {
305
305
  from_token_id: t.token_id,
306
306
  to_token_id: n.token_id,
307
307
  amount_in: v,
308
- slippage: i,
308
+ slippage: s,
309
309
  from_user_address: o,
310
310
  to_user_address: a,
311
311
  user_refund_pubkey: l,
@@ -335,7 +335,7 @@ function ta({
335
335
  children: e,
336
336
  value: t
337
337
  }) {
338
- return /* @__PURE__ */ s(er.Provider, { value: t, children: e });
338
+ return /* @__PURE__ */ i(er.Provider, { value: t, children: e });
339
339
  }
340
340
  function rt() {
341
341
  const e = en(er);
@@ -354,8 +354,8 @@ function na({
354
354
  fill: "none",
355
355
  xmlns: "http://www.w3.org/2000/svg",
356
356
  children: [
357
- /* @__PURE__ */ s("rect", { width: "24", height: "24", rx: "6", fill: "#D0D0D8" }),
358
- /* @__PURE__ */ s(
357
+ /* @__PURE__ */ i("rect", { width: "24", height: "24", rx: "6", fill: "#D0D0D8" }),
358
+ /* @__PURE__ */ i(
359
359
  "rect",
360
360
  {
361
361
  x: "4",
@@ -366,7 +366,7 @@ function na({
366
366
  fill: "#FFD49F"
367
367
  }
368
368
  ),
369
- /* @__PURE__ */ s(
369
+ /* @__PURE__ */ i(
370
370
  "path",
371
371
  {
372
372
  fillRule: "evenodd",
@@ -375,7 +375,7 @@ function na({
375
375
  fill: "#F7931A"
376
376
  }
377
377
  ),
378
- /* @__PURE__ */ s(
378
+ /* @__PURE__ */ i(
379
379
  "rect",
380
380
  {
381
381
  x: "12.8572",
@@ -386,49 +386,49 @@ function na({
386
386
  fill: "white"
387
387
  }
388
388
  ),
389
- /* @__PURE__ */ s(
389
+ /* @__PURE__ */ i(
390
390
  "path",
391
391
  {
392
392
  d: "M14.8567 7.47096L16.2848 8.30034V6.83321V5.14284L14.8567 7.47096Z",
393
393
  fill: "#898989"
394
394
  }
395
395
  ),
396
- /* @__PURE__ */ s(
396
+ /* @__PURE__ */ i(
397
397
  "path",
398
398
  {
399
399
  d: "M16.2837 5.14284V6.8332V8.30033L17.7118 7.47096L16.2837 5.14284Z",
400
400
  fill: "#323232"
401
401
  }
402
402
  ),
403
- /* @__PURE__ */ s(
403
+ /* @__PURE__ */ i(
404
404
  "path",
405
405
  {
406
406
  d: "M16.2837 6.83343L17.7114 7.47098L16.2837 8.30014V6.83343Z",
407
407
  fill: "#141414"
408
408
  }
409
409
  ),
410
- /* @__PURE__ */ s(
410
+ /* @__PURE__ */ i(
411
411
  "path",
412
412
  {
413
413
  d: "M16.2848 6.83322L16.2853 6.83336V8.29993L16.2848 8.30035L14.8567 7.47097L16.2848 6.83322Z",
414
414
  fill: "#373737"
415
415
  }
416
416
  ),
417
- /* @__PURE__ */ s(
417
+ /* @__PURE__ */ i(
418
418
  "path",
419
419
  {
420
420
  d: "M14.8567 7.73708L16.2848 9.71431V8.56604L14.8567 7.73708Z",
421
421
  fill: "#898989"
422
422
  }
423
423
  ),
424
- /* @__PURE__ */ s(
424
+ /* @__PURE__ */ i(
425
425
  "path",
426
426
  {
427
427
  d: "M16.2837 8.56604V9.71431L17.7127 7.73708L16.2837 8.56604Z",
428
428
  fill: "#323232"
429
429
  }
430
430
  ),
431
- /* @__PURE__ */ s(
431
+ /* @__PURE__ */ i(
432
432
  "rect",
433
433
  {
434
434
  x: "4",
@@ -439,7 +439,7 @@ function na({
439
439
  fill: "#DCFFFB"
440
440
  }
441
441
  ),
442
- /* @__PURE__ */ s(
442
+ /* @__PURE__ */ i(
443
443
  "path",
444
444
  {
445
445
  fillRule: "evenodd",
@@ -448,7 +448,7 @@ function na({
448
448
  fill: "url(#paint0_linear_all_networks)"
449
449
  }
450
450
  ),
451
- /* @__PURE__ */ s(
451
+ /* @__PURE__ */ i(
452
452
  "rect",
453
453
  {
454
454
  x: "12.8572",
@@ -459,14 +459,14 @@ function na({
459
459
  fill: "#999CB3"
460
460
  }
461
461
  ),
462
- /* @__PURE__ */ s(
462
+ /* @__PURE__ */ i(
463
463
  "path",
464
464
  {
465
465
  d: "M16.0979 17.4286V15.1429H16.473V17.4286H16.0979ZM15.1426 16.4692V16.097H17.4283V16.4692H15.1426Z",
466
466
  fill: "#2D3153"
467
467
  }
468
468
  ),
469
- /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ p(
469
+ /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ p(
470
470
  "linearGradient",
471
471
  {
472
472
  id: "paint0_linear_all_networks",
@@ -476,12 +476,12 @@ function na({
476
476
  y2: "15.7425",
477
477
  gradientUnits: "userSpaceOnUse",
478
478
  children: [
479
- /* @__PURE__ */ s("stop", { offset: "0.08", stopColor: "#9945FF" }),
480
- /* @__PURE__ */ s("stop", { offset: "0.3", stopColor: "#8752F3" }),
481
- /* @__PURE__ */ s("stop", { offset: "0.5", stopColor: "#5497D5" }),
482
- /* @__PURE__ */ s("stop", { offset: "0.6", stopColor: "#43B4CA" }),
483
- /* @__PURE__ */ s("stop", { offset: "0.72", stopColor: "#28E0B9" }),
484
- /* @__PURE__ */ s("stop", { offset: "0.97", stopColor: "#19FB9B" })
479
+ /* @__PURE__ */ i("stop", { offset: "0.08", stopColor: "#9945FF" }),
480
+ /* @__PURE__ */ i("stop", { offset: "0.3", stopColor: "#8752F3" }),
481
+ /* @__PURE__ */ i("stop", { offset: "0.5", stopColor: "#5497D5" }),
482
+ /* @__PURE__ */ i("stop", { offset: "0.6", stopColor: "#43B4CA" }),
483
+ /* @__PURE__ */ i("stop", { offset: "0.72", stopColor: "#28E0B9" }),
484
+ /* @__PURE__ */ i("stop", { offset: "0.97", stopColor: "#19FB9B" })
485
485
  ]
486
486
  }
487
487
  ) })
@@ -490,19 +490,19 @@ function na({
490
490
  );
491
491
  }
492
492
  function ra(e) {
493
- return /* @__PURE__ */ s(
493
+ return /* @__PURE__ */ i(
494
494
  "svg",
495
495
  {
496
496
  xmlns: "http://www.w3.org/2000/svg",
497
497
  viewBox: "0 0 24 24",
498
498
  fill: "currentColor",
499
499
  ...e,
500
- children: /* @__PURE__ */ s("path", { d: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" })
500
+ children: /* @__PURE__ */ i("path", { d: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" })
501
501
  }
502
502
  );
503
503
  }
504
504
  function rn({ className: e = "h-5 w-5" }) {
505
- return /* @__PURE__ */ s("svg", { className: e, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s(
505
+ return /* @__PURE__ */ i("svg", { className: e, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ i(
506
506
  "path",
507
507
  {
508
508
  fillRule: "evenodd",
@@ -512,14 +512,14 @@ function rn({ className: e = "h-5 w-5" }) {
512
512
  ) });
513
513
  }
514
514
  function tr({ className: e = "h-4 w-4" }) {
515
- return /* @__PURE__ */ s(
515
+ return /* @__PURE__ */ i(
516
516
  "svg",
517
517
  {
518
518
  className: e,
519
519
  fill: "none",
520
520
  stroke: "currentColor",
521
521
  viewBox: "0 0 24 24",
522
- children: /* @__PURE__ */ s(
522
+ children: /* @__PURE__ */ i(
523
523
  "path",
524
524
  {
525
525
  strokeLinecap: "round",
@@ -541,7 +541,7 @@ function nr({ className: e = "h-5 w-5" }) {
541
541
  stroke: "currentColor",
542
542
  strokeWidth: 2,
543
543
  children: [
544
- /* @__PURE__ */ s(
544
+ /* @__PURE__ */ i(
545
545
  "circle",
546
546
  {
547
547
  cx: "12",
@@ -550,7 +550,7 @@ function nr({ className: e = "h-5 w-5" }) {
550
550
  strokeOpacity: "0.25"
551
551
  }
552
552
  ),
553
- /* @__PURE__ */ s(
553
+ /* @__PURE__ */ i(
554
554
  "path",
555
555
  {
556
556
  strokeLinecap: "round",
@@ -562,7 +562,7 @@ function nr({ className: e = "h-5 w-5" }) {
562
562
  );
563
563
  }
564
564
  function oa({ className: e = "h-5 w-5" }) {
565
- return /* @__PURE__ */ s("svg", { className: e, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s(
565
+ return /* @__PURE__ */ i("svg", { className: e, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ i(
566
566
  "path",
567
567
  {
568
568
  fillRule: "evenodd",
@@ -572,14 +572,14 @@ function oa({ className: e = "h-5 w-5" }) {
572
572
  ) });
573
573
  }
574
574
  function Ie({ className: e = "h-5 w-5" }) {
575
- return /* @__PURE__ */ s(
575
+ return /* @__PURE__ */ i(
576
576
  "svg",
577
577
  {
578
578
  className: e,
579
579
  fill: "none",
580
580
  stroke: "currentColor",
581
581
  viewBox: "0 0 24 24",
582
- children: /* @__PURE__ */ s(
582
+ children: /* @__PURE__ */ i(
583
583
  "path",
584
584
  {
585
585
  strokeLinecap: "round",
@@ -606,14 +606,14 @@ function aa(e) {
606
606
  strokeLinejoin: "round",
607
607
  ...e,
608
608
  children: [
609
- /* @__PURE__ */ s("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
610
- /* @__PURE__ */ s("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
609
+ /* @__PURE__ */ i("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
610
+ /* @__PURE__ */ i("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
611
611
  ]
612
612
  }
613
613
  );
614
614
  }
615
- function sa(e) {
616
- return /* @__PURE__ */ s(
615
+ function ia(e) {
616
+ return /* @__PURE__ */ i(
617
617
  "svg",
618
618
  {
619
619
  xmlns: "http://www.w3.org/2000/svg",
@@ -622,7 +622,7 @@ function sa(e) {
622
622
  strokeWidth: 1.5,
623
623
  stroke: "currentColor",
624
624
  ...e,
625
- children: /* @__PURE__ */ s(
625
+ children: /* @__PURE__ */ i(
626
626
  "path",
627
627
  {
628
628
  strokeLinecap: "round",
@@ -633,15 +633,15 @@ function sa(e) {
633
633
  }
634
634
  );
635
635
  }
636
- function ia({ className: e = "h-3.5 w-3.5" }) {
637
- return /* @__PURE__ */ s(
636
+ function sa({ className: e = "h-3.5 w-3.5" }) {
637
+ return /* @__PURE__ */ i(
638
638
  "svg",
639
639
  {
640
640
  className: e,
641
641
  fill: "none",
642
642
  stroke: "currentColor",
643
643
  viewBox: "0 0 24 24",
644
- children: /* @__PURE__ */ s(
644
+ children: /* @__PURE__ */ i(
645
645
  "path",
646
646
  {
647
647
  strokeLinecap: "round",
@@ -654,26 +654,26 @@ function ia({ className: e = "h-3.5 w-3.5" }) {
654
654
  );
655
655
  }
656
656
  function la(e) {
657
- return /* @__PURE__ */ s(
657
+ return /* @__PURE__ */ i(
658
658
  "svg",
659
659
  {
660
660
  xmlns: "http://www.w3.org/2000/svg",
661
661
  viewBox: "0 0 29 20",
662
662
  fill: "currentColor",
663
663
  ...e,
664
- children: /* @__PURE__ */ s("path", { d: "M18.1123 4.25181C17.9463 3.49057 17.537 2.8272 16.9727 2.31607C15.4792 0.978457 13.189 1.03283 11.7619 2.4357C11.2751 2.91419 10.9321 3.51232 10.7662 4.18656C10.6002 4.84993 10.6555 5.64381 10.4564 6.50293C10.1798 7.75354 9.53813 8.90629 8.6088 9.81978C7.6131 10.7985 6.34081 11.451 4.95788 11.6903C4.19451 11.8208 3.3205 11.7773 2.57925 12.0165C2.00396 12.2014 1.48398 12.5276 1.07463 12.9409C-0.374675 14.3981 -0.352546 16.7254 1.10782 18.1609C2.535 19.5637 4.84725 19.6181 6.32974 18.2696C6.72802 17.9107 7.04886 17.4757 7.25907 16.9755C7.67947 16.0076 7.52459 15.5944 7.65735 14.6483C7.73479 14.0936 7.87862 13.5608 8.08882 13.0388C8.31009 12.4841 8.3986 12.3319 8.70837 11.8643C9.29473 10.9943 10.0692 10.2548 10.9874 9.73278C12.0053 9.14554 13.178 8.81929 14.4392 8.81929C16.32 8.81929 18.0237 9.56966 19.2628 10.7768C20.2586 11.7446 20.9445 13.0061 21.1879 14.4199C21.3096 15.0941 21.2432 15.8227 21.4202 16.4861C21.5972 17.1386 21.9402 17.715 22.4049 18.1826C23.8763 19.629 26.266 19.629 27.7485 18.1826C29.1646 16.7906 29.231 14.5395 27.8923 13.0823C27.4498 12.6038 26.8855 12.234 26.2549 12.0274C25.4252 11.7664 25.0379 11.8643 24.1971 11.7555C22.6593 11.5598 21.2875 10.8638 20.2475 9.84153C19.1854 8.79754 18.4663 7.40554 18.2893 5.8613C18.1897 5.19793 18.2561 4.87168 18.1123 4.25181ZM16.9617 11.0486C15.5013 9.61316 13.1448 9.61316 11.6844 11.0486C10.2241 12.4841 10.2241 14.8005 11.6844 16.236C13.1448 17.6715 15.5013 17.6715 16.9617 16.236C18.422 14.8005 18.422 12.4841 16.9617 11.0486ZM26.0668 3.13169C24.6065 1.6962 22.25 1.6962 20.7896 3.13169C19.3292 4.56719 19.3292 6.88355 20.7896 8.31904C22.25 9.75453 24.6065 9.75453 26.0668 8.31904C27.5272 6.88355 27.5272 4.56719 26.0668 3.13169ZM7.95606 3.17519C6.49569 1.7397 4.13919 1.7397 2.67882 3.17519C1.21845 4.61069 1.21845 6.92705 2.67882 8.36254C4.13919 9.79803 6.49569 9.79803 7.95606 8.36254C9.41643 6.92705 9.41643 4.59981 7.95606 3.17519Z" })
664
+ children: /* @__PURE__ */ i("path", { d: "M18.1123 4.25181C17.9463 3.49057 17.537 2.8272 16.9727 2.31607C15.4792 0.978457 13.189 1.03283 11.7619 2.4357C11.2751 2.91419 10.9321 3.51232 10.7662 4.18656C10.6002 4.84993 10.6555 5.64381 10.4564 6.50293C10.1798 7.75354 9.53813 8.90629 8.6088 9.81978C7.6131 10.7985 6.34081 11.451 4.95788 11.6903C4.19451 11.8208 3.3205 11.7773 2.57925 12.0165C2.00396 12.2014 1.48398 12.5276 1.07463 12.9409C-0.374675 14.3981 -0.352546 16.7254 1.10782 18.1609C2.535 19.5637 4.84725 19.6181 6.32974 18.2696C6.72802 17.9107 7.04886 17.4757 7.25907 16.9755C7.67947 16.0076 7.52459 15.5944 7.65735 14.6483C7.73479 14.0936 7.87862 13.5608 8.08882 13.0388C8.31009 12.4841 8.3986 12.3319 8.70837 11.8643C9.29473 10.9943 10.0692 10.2548 10.9874 9.73278C12.0053 9.14554 13.178 8.81929 14.4392 8.81929C16.32 8.81929 18.0237 9.56966 19.2628 10.7768C20.2586 11.7446 20.9445 13.0061 21.1879 14.4199C21.3096 15.0941 21.2432 15.8227 21.4202 16.4861C21.5972 17.1386 21.9402 17.715 22.4049 18.1826C23.8763 19.629 26.266 19.629 27.7485 18.1826C29.1646 16.7906 29.231 14.5395 27.8923 13.0823C27.4498 12.6038 26.8855 12.234 26.2549 12.0274C25.4252 11.7664 25.0379 11.8643 24.1971 11.7555C22.6593 11.5598 21.2875 10.8638 20.2475 9.84153C19.1854 8.79754 18.4663 7.40554 18.2893 5.8613C18.1897 5.19793 18.2561 4.87168 18.1123 4.25181ZM16.9617 11.0486C15.5013 9.61316 13.1448 9.61316 11.6844 11.0486C10.2241 12.4841 10.2241 14.8005 11.6844 16.236C13.1448 17.6715 15.5013 17.6715 16.9617 16.236C18.422 14.8005 18.422 12.4841 16.9617 11.0486ZM26.0668 3.13169C24.6065 1.6962 22.25 1.6962 20.7896 3.13169C19.3292 4.56719 19.3292 6.88355 20.7896 8.31904C22.25 9.75453 24.6065 9.75453 26.0668 8.31904C27.5272 6.88355 27.5272 4.56719 26.0668 3.13169ZM7.95606 3.17519C6.49569 1.7397 4.13919 1.7397 2.67882 3.17519C1.21845 4.61069 1.21845 6.92705 2.67882 8.36254C4.13919 9.79803 6.49569 9.79803 7.95606 8.36254C9.41643 6.92705 9.41643 4.59981 7.95606 3.17519Z" })
665
665
  }
666
666
  );
667
667
  }
668
668
  function ca(e) {
669
- return /* @__PURE__ */ s(
669
+ return /* @__PURE__ */ i(
670
670
  "svg",
671
671
  {
672
672
  xmlns: "http://www.w3.org/2000/svg",
673
673
  fill: "currentColor",
674
674
  viewBox: "0 0 124 22",
675
675
  ...e,
676
- children: /* @__PURE__ */ s("path", { d: "M41.39 4.241c3.385 0 6.162 2.73 6.162 6.058s-2.777 6.003-6.162 6.003h-.62c-3.385 0-6.162-2.676-6.162-6.003S37.385 4.24 40.77 4.24zm-.3 10.745c2.877 0 4.825-2.317 4.825-4.644.055-2.37-1.903-4.796-4.824-4.796-2.976 0-4.879 2.425-4.824 4.796-.01 2.316 1.892 4.644 4.824 4.644m21.353-4.698c0 3.327-2.268 5.992-5.233 5.992h-.62c-2.422 0-3.905-.805-4.978-2.665V22H50.02V4.241h1.593V6.96c.963-1.925 2.666-2.719 4.979-2.719h.62c2.964 0 5.232 2.719 5.232 6.047m-1.703 0c0-2.317-1.649-4.644-4.559-4.644-2.312 0-4.259 1.925-4.259 4.23v.816c0 2.316 1.936 4.187 4.304 4.187 2.832 0 4.514-2.273 4.514-4.59m8.275 6.003c-.354 0-.72-.055-1.073-.196-.874-.305-1.593-.86-2.058-1.61a5 5 0 0 1-.465-1.109c-.1-.402-.155-.707-.155-1.11V5.765h-1.382v-1.36h1.382V.772h1.649v3.632h3.44v1.36h-3.44v6.144c0 1.762.774 2.828 2.722 2.828h1.438v1.566h-2.058zm6.018-15.28c0 .555-.409 1.012-.973 1.012A1.025 1.025 0 0 1 73.03 1.01C73.031.457 73.496 0 74.06 0s.973.457.973 1.011m-1.792 3.23h1.593v12.06h-1.593zm14.283 2.621c.819-1.718 2.511-2.62 4.47-2.62 3.075 0 4.47 2.729 4.47 5.502v6.558H94.87V9.396c0-5.655-6.881-4.698-6.881.196v6.71h-1.594V9.396c0-5.655-6.826-4.698-6.826.196v6.71h-1.637V4.242h1.593v2.065c1.637-2.925 6.716-2.773 7.999.555m17.436 8.124c1.847 0 3.695-1.164 4.304-2.73h1.593c-.819 2.316-2.877 4.035-5.543 4.035h-.664c-3.385 0-5.897-2.676-5.897-6.003s2.512-6.058 5.897-6.058h.664c3.341 0 5.897 2.73 5.897 6.058 0 .195 0 .402-.056.609H100.38c.121 2.273 2.268 4.089 4.58 4.089m4.624-5.296c-.099-2.273-2.257-4.133-4.613-4.133-2.312 0-4.47 1.86-4.569 4.133zM124 4.24l-5.133 6.058L124 16.302h-2.058l-4.104-4.84-4.105 4.84h-2.002l5.133-6.003-5.133-6.058h2.002l4.105 4.84 4.104-4.84zm-105.888-.49a3.67 3.67 0 0 0-1.14-1.935 3.817 3.817 0 0 0-5.21.12 3.67 3.67 0 0 0-.996 1.75c-.166.664-.11 1.458-.31 2.317A6.7 6.7 0 0 1 8.61 9.32a6.88 6.88 0 0 1-3.651 1.87c-.763.13-1.638.087-2.379.327a3.75 3.75 0 0 0-1.504.924 3.667 3.667 0 0 0 .033 5.22c1.427 1.403 3.74 1.457 5.222.109.398-.36.719-.794.93-1.294.42-.968.265-1.382.397-2.328a6.8 6.8 0 0 1 .432-1.61c.221-.554.31-.706.62-1.174a6.862 6.862 0 0 1 5.73-3.045c1.881 0 3.585.75 4.824 1.958a6.64 6.64 0 0 1 1.925 3.643c.122.674.055 1.403.232 2.066.177.653.52 1.229.985 1.697 1.471 1.446 3.861 1.446 5.343 0a3.666 3.666 0 0 0 .144-5.1 3.9 3.9 0 0 0-1.637-1.056c-.83-.26-1.217-.163-2.058-.271a6.86 6.86 0 0 1-3.95-1.914 6.65 6.65 0 0 1-1.958-3.98c-.1-.664-.033-.99-.177-1.61m-1.15 6.798a3.77 3.77 0 0 0-5.278 0 3.62 3.62 0 0 0 0 5.187 3.77 3.77 0 0 0 5.278 0 3.62 3.62 0 0 0 0-5.187m9.105-7.917a3.77 3.77 0 0 0-5.277 0 3.62 3.62 0 0 0 0 5.187 3.77 3.77 0 0 0 5.277 0 3.62 3.62 0 0 0 0-5.187m-18.11.043a3.77 3.77 0 0 0-5.278 0 3.62 3.62 0 0 0 0 5.188 3.77 3.77 0 0 0 5.277 0 3.62 3.62 0 0 0 0-5.188" })
676
+ children: /* @__PURE__ */ i("path", { d: "M41.39 4.241c3.385 0 6.162 2.73 6.162 6.058s-2.777 6.003-6.162 6.003h-.62c-3.385 0-6.162-2.676-6.162-6.003S37.385 4.24 40.77 4.24zm-.3 10.745c2.877 0 4.825-2.317 4.825-4.644.055-2.37-1.903-4.796-4.824-4.796-2.976 0-4.879 2.425-4.824 4.796-.01 2.316 1.892 4.644 4.824 4.644m21.353-4.698c0 3.327-2.268 5.992-5.233 5.992h-.62c-2.422 0-3.905-.805-4.978-2.665V22H50.02V4.241h1.593V6.96c.963-1.925 2.666-2.719 4.979-2.719h.62c2.964 0 5.232 2.719 5.232 6.047m-1.703 0c0-2.317-1.649-4.644-4.559-4.644-2.312 0-4.259 1.925-4.259 4.23v.816c0 2.316 1.936 4.187 4.304 4.187 2.832 0 4.514-2.273 4.514-4.59m8.275 6.003c-.354 0-.72-.055-1.073-.196-.874-.305-1.593-.86-2.058-1.61a5 5 0 0 1-.465-1.109c-.1-.402-.155-.707-.155-1.11V5.765h-1.382v-1.36h1.382V.772h1.649v3.632h3.44v1.36h-3.44v6.144c0 1.762.774 2.828 2.722 2.828h1.438v1.566h-2.058zm6.018-15.28c0 .555-.409 1.012-.973 1.012A1.025 1.025 0 0 1 73.03 1.01C73.031.457 73.496 0 74.06 0s.973.457.973 1.011m-1.792 3.23h1.593v12.06h-1.593zm14.283 2.621c.819-1.718 2.511-2.62 4.47-2.62 3.075 0 4.47 2.729 4.47 5.502v6.558H94.87V9.396c0-5.655-6.881-4.698-6.881.196v6.71h-1.594V9.396c0-5.655-6.826-4.698-6.826.196v6.71h-1.637V4.242h1.593v2.065c1.637-2.925 6.716-2.773 7.999.555m17.436 8.124c1.847 0 3.695-1.164 4.304-2.73h1.593c-.819 2.316-2.877 4.035-5.543 4.035h-.664c-3.385 0-5.897-2.676-5.897-6.003s2.512-6.058 5.897-6.058h.664c3.341 0 5.897 2.73 5.897 6.058 0 .195 0 .402-.056.609H100.38c.121 2.273 2.268 4.089 4.58 4.089m4.624-5.296c-.099-2.273-2.257-4.133-4.613-4.133-2.312 0-4.47 1.86-4.569 4.133zM124 4.24l-5.133 6.058L124 16.302h-2.058l-4.104-4.84-4.105 4.84h-2.002l5.133-6.003-5.133-6.058h2.002l4.105 4.84 4.104-4.84zm-105.888-.49a3.67 3.67 0 0 0-1.14-1.935 3.817 3.817 0 0 0-5.21.12 3.67 3.67 0 0 0-.996 1.75c-.166.664-.11 1.458-.31 2.317A6.7 6.7 0 0 1 8.61 9.32a6.88 6.88 0 0 1-3.651 1.87c-.763.13-1.638.087-2.379.327a3.75 3.75 0 0 0-1.504.924 3.667 3.667 0 0 0 .033 5.22c1.427 1.403 3.74 1.457 5.222.109.398-.36.719-.794.93-1.294.42-.968.265-1.382.397-2.328a6.8 6.8 0 0 1 .432-1.61c.221-.554.31-.706.62-1.174a6.862 6.862 0 0 1 5.73-3.045c1.881 0 3.585.75 4.824 1.958a6.64 6.64 0 0 1 1.925 3.643c.122.674.055 1.403.232 2.066.177.653.52 1.229.985 1.697 1.471 1.446 3.861 1.446 5.343 0a3.666 3.666 0 0 0 .144-5.1 3.9 3.9 0 0 0-1.637-1.056c-.83-.26-1.217-.163-2.058-.271a6.86 6.86 0 0 1-3.95-1.914 6.65 6.65 0 0 1-1.958-3.98c-.1-.664-.033-.99-.177-1.61m-1.15 6.798a3.77 3.77 0 0 0-5.278 0 3.62 3.62 0 0 0 0 5.187 3.77 3.77 0 0 0 5.278 0 3.62 3.62 0 0 0 0-5.187m9.105-7.917a3.77 3.77 0 0 0-5.277 0 3.62 3.62 0 0 0 0 5.187 3.77 3.77 0 0 0 5.277 0 3.62 3.62 0 0 0 0-5.187m-18.11.043a3.77 3.77 0 0 0-5.278 0 3.62 3.62 0 0 0 0 5.188 3.77 3.77 0 0 0 5.277 0 3.62 3.62 0 0 0 0-5.188" })
677
677
  }
678
678
  );
679
679
  }
@@ -688,7 +688,7 @@ function da(e) {
688
688
  fill: "none",
689
689
  ...e,
690
690
  children: [
691
- /* @__PURE__ */ s(
691
+ /* @__PURE__ */ i(
692
692
  "mask",
693
693
  {
694
694
  id: "paste_mask",
@@ -698,10 +698,10 @@ function da(e) {
698
698
  y: "0",
699
699
  width: "24",
700
700
  height: "25",
701
- children: /* @__PURE__ */ s("rect", { y: "0.5", width: "24", height: "24", fill: "#D9D9D9" })
701
+ children: /* @__PURE__ */ i("rect", { y: "0.5", width: "24", height: "24", fill: "#D9D9D9" })
702
702
  }
703
703
  ),
704
- /* @__PURE__ */ s("g", { mask: "url(#paste_mask)", children: /* @__PURE__ */ s(
704
+ /* @__PURE__ */ i("g", { mask: "url(#paste_mask)", children: /* @__PURE__ */ i(
705
705
  "path",
706
706
  {
707
707
  d: "M5.30775 20.9999C4.80908 20.9999 4.38308 20.8233 4.02975 20.4701C3.67658 20.1168 3.5 19.6908 3.5 19.1921V5.80762C3.5 5.30895 3.67658 4.88295 4.02975 4.52962C4.38308 4.17645 4.80908 3.99987 5.30775 3.99987H9.7135C9.852 3.5127 10.135 3.10887 10.5625 2.78837C10.99 2.46787 11.4692 2.30762 12 2.30762C12.5513 2.30762 13.0382 2.46787 13.4605 2.78837C13.883 3.10887 14.1635 3.5127 14.302 3.99987H18.6923C19.1909 3.99987 19.6169 4.17645 19.9703 4.52962C20.3234 4.88295 20.5 5.30895 20.5 5.80762V19.1921C20.5 19.6908 20.3234 20.1168 19.9703 20.4701C19.6169 20.8233 19.1909 20.9999 18.6923 20.9999H5.30775ZM5.30775 19.4999H18.6923C18.7692 19.4999 18.8398 19.4678 18.9038 19.4036C18.9679 19.3396 19 19.2691 19 19.1921V5.80762C19 5.73062 18.9679 5.66012 18.9038 5.59612C18.8398 5.53195 18.7692 5.49987 18.6923 5.49987H16.5V8.11512H7.5V5.49987H5.30775C5.23075 5.49987 5.16025 5.53195 5.09625 5.59612C5.03208 5.66012 5 5.73062 5 5.80762V19.1921C5 19.2691 5.03208 19.3396 5.09625 19.4036C5.16025 19.4678 5.23075 19.4999 5.30775 19.4999ZM12 5.61537C12.2577 5.61537 12.4728 5.52912 12.6453 5.35662C12.8176 5.18412 12.9038 4.96903 12.9038 4.71137C12.9038 4.4537 12.8176 4.23862 12.6453 4.06612C12.4728 3.89378 12.2577 3.80762 12 3.80762C11.7423 3.80762 11.5273 3.89378 11.3548 4.06612C11.1824 4.23862 11.0963 4.4537 11.0963 4.71137C11.0963 4.96903 11.1824 5.18412 11.3548 5.35662C11.5273 5.52912 11.7423 5.61537 12 5.61537Z",
@@ -722,7 +722,7 @@ function ua(e) {
722
722
  xmlns: "http://www.w3.org/2000/svg",
723
723
  ...e,
724
724
  children: [
725
- /* @__PURE__ */ s(
725
+ /* @__PURE__ */ i(
726
726
  "path",
727
727
  {
728
728
  d: "M4 12C4 7.58172 7.58172 4 12 4C15.0736 4 17.7555 5.6841 19.2291 8.16667M20 12C20 16.4183 16.4183 20 12 20C8.92638 20 6.24452 18.3159 4.77091 15.8333",
@@ -731,7 +731,7 @@ function ua(e) {
731
731
  strokeLinecap: "round"
732
732
  }
733
733
  ),
734
- /* @__PURE__ */ s(
734
+ /* @__PURE__ */ i(
735
735
  "path",
736
736
  {
737
737
  d: "M19 4V8H15",
@@ -741,7 +741,7 @@ function ua(e) {
741
741
  strokeLinejoin: "round"
742
742
  }
743
743
  ),
744
- /* @__PURE__ */ s(
744
+ /* @__PURE__ */ i(
745
745
  "path",
746
746
  {
747
747
  d: "M5 20V16H9",
@@ -764,7 +764,7 @@ function fa(e) {
764
764
  xmlns: "http://www.w3.org/2000/svg",
765
765
  ...e,
766
766
  children: [
767
- /* @__PURE__ */ s(
767
+ /* @__PURE__ */ i(
768
768
  "circle",
769
769
  {
770
770
  cx: "32",
@@ -774,7 +774,7 @@ function fa(e) {
774
774
  strokeWidth: "2"
775
775
  }
776
776
  ),
777
- /* @__PURE__ */ s(
777
+ /* @__PURE__ */ i(
778
778
  "path",
779
779
  {
780
780
  d: "M20 22L26 28M26 22L20 28",
@@ -783,7 +783,7 @@ function fa(e) {
783
783
  strokeLinecap: "round"
784
784
  }
785
785
  ),
786
- /* @__PURE__ */ s(
786
+ /* @__PURE__ */ i(
787
787
  "path",
788
788
  {
789
789
  d: "M38 22L44 28M44 22L38 28",
@@ -792,7 +792,7 @@ function fa(e) {
792
792
  strokeLinecap: "round"
793
793
  }
794
794
  ),
795
- /* @__PURE__ */ s(
795
+ /* @__PURE__ */ i(
796
796
  "path",
797
797
  {
798
798
  d: "M22 44C26 38 38 38 42 44",
@@ -806,14 +806,14 @@ function fa(e) {
806
806
  );
807
807
  }
808
808
  function ma({ className: e = "h-5 w-5" }) {
809
- return /* @__PURE__ */ s(
809
+ return /* @__PURE__ */ i(
810
810
  "svg",
811
811
  {
812
812
  className: e,
813
813
  fill: "none",
814
814
  stroke: "currentColor",
815
815
  viewBox: "0 0 24 24",
816
- children: /* @__PURE__ */ s(
816
+ children: /* @__PURE__ */ i(
817
817
  "path",
818
818
  {
819
819
  strokeLinecap: "round",
@@ -834,7 +834,7 @@ function pa({ className: e = "h-5 w-5" }) {
834
834
  stroke: "currentColor",
835
835
  viewBox: "0 0 24 24",
836
836
  children: [
837
- /* @__PURE__ */ s(
837
+ /* @__PURE__ */ i(
838
838
  "path",
839
839
  {
840
840
  strokeLinecap: "round",
@@ -843,7 +843,7 @@ function pa({ className: e = "h-5 w-5" }) {
843
843
  d: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
844
844
  }
845
845
  ),
846
- /* @__PURE__ */ s(
846
+ /* @__PURE__ */ i(
847
847
  "path",
848
848
  {
849
849
  strokeLinecap: "round",
@@ -871,21 +871,21 @@ function rr(e) {
871
871
  strokeLinejoin: "round",
872
872
  ...e,
873
873
  children: [
874
- /* @__PURE__ */ s("path", { d: "M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" }),
875
- /* @__PURE__ */ s("path", { d: "M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4" })
874
+ /* @__PURE__ */ i("path", { d: "M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" }),
875
+ /* @__PURE__ */ i("path", { d: "M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4" })
876
876
  ]
877
877
  }
878
878
  );
879
879
  }
880
880
  function Cn({ className: e = "h-5 w-5" }) {
881
- return /* @__PURE__ */ s(
881
+ return /* @__PURE__ */ i(
882
882
  "svg",
883
883
  {
884
884
  className: e,
885
885
  fill: "none",
886
886
  viewBox: "0 0 24 24",
887
887
  stroke: "currentColor",
888
- children: /* @__PURE__ */ s(
888
+ children: /* @__PURE__ */ i(
889
889
  "path",
890
890
  {
891
891
  strokeLinecap: "round",
@@ -898,7 +898,7 @@ function Cn({ className: e = "h-5 w-5" }) {
898
898
  );
899
899
  }
900
900
  function or(e) {
901
- return /* @__PURE__ */ s(
901
+ return /* @__PURE__ */ i(
902
902
  "svg",
903
903
  {
904
904
  xmlns: "http://www.w3.org/2000/svg",
@@ -907,7 +907,7 @@ function or(e) {
907
907
  width: "20",
908
908
  height: "20",
909
909
  ...e,
910
- children: /* @__PURE__ */ s(
910
+ children: /* @__PURE__ */ i(
911
911
  "path",
912
912
  {
913
913
  fill: "currentColor",
@@ -918,7 +918,7 @@ function or(e) {
918
918
  );
919
919
  }
920
920
  function ar(e) {
921
- return /* @__PURE__ */ s(
921
+ return /* @__PURE__ */ i(
922
922
  "svg",
923
923
  {
924
924
  xmlns: "http://www.w3.org/2000/svg",
@@ -927,7 +927,7 @@ function ar(e) {
927
927
  width: "20",
928
928
  height: "20",
929
929
  ...e,
930
- children: /* @__PURE__ */ s(
930
+ children: /* @__PURE__ */ i(
931
931
  "path",
932
932
  {
933
933
  fill: "currentColor",
@@ -938,7 +938,7 @@ function ar(e) {
938
938
  }
939
939
  );
940
940
  }
941
- function sr(e) {
941
+ function ir(e) {
942
942
  return /* @__PURE__ */ p(
943
943
  "svg",
944
944
  {
@@ -949,28 +949,28 @@ function sr(e) {
949
949
  height: "20",
950
950
  ...e,
951
951
  children: [
952
- /* @__PURE__ */ s(
952
+ /* @__PURE__ */ i(
953
953
  "path",
954
954
  {
955
955
  fill: "currentColor",
956
956
  d: "M6.998 0 .5 11.204l6.498-3.069zM6.998 8.136.5 11.205l6.498 3.992z"
957
957
  }
958
958
  ),
959
- /* @__PURE__ */ s("path", { fill: "currentColor", d: "M13.496 11.204 6.997 0v8.135z" }),
960
- /* @__PURE__ */ s(
959
+ /* @__PURE__ */ i("path", { fill: "currentColor", d: "M13.496 11.204 6.997 0v8.135z" }),
960
+ /* @__PURE__ */ i(
961
961
  "path",
962
962
  {
963
963
  fill: "currentColor",
964
964
  d: "m6.997 15.197 6.499-3.992-6.499-3.07zM.5 12.484 6.998 22v-5.526z"
965
965
  }
966
966
  ),
967
- /* @__PURE__ */ s("path", { fill: "currentColor", d: "M6.997 16.474V22l6.502-9.516z" })
967
+ /* @__PURE__ */ i("path", { fill: "currentColor", d: "M6.997 16.474V22l6.502-9.516z" })
968
968
  ]
969
969
  }
970
970
  );
971
971
  }
972
- function ir(e) {
973
- return /* @__PURE__ */ s(
972
+ function sr(e) {
973
+ return /* @__PURE__ */ i(
974
974
  "svg",
975
975
  {
976
976
  xmlns: "http://www.w3.org/2000/svg",
@@ -979,7 +979,7 @@ function ir(e) {
979
979
  width: "20",
980
980
  height: "20",
981
981
  ...e,
982
- children: /* @__PURE__ */ s(
982
+ children: /* @__PURE__ */ i(
983
983
  "path",
984
984
  {
985
985
  fill: "currentColor",
@@ -1002,16 +1002,16 @@ function lr(e) {
1002
1002
  ...e,
1003
1003
  children: [
1004
1004
  /* @__PURE__ */ p("g", { fill: "currentColor", fillOpacity: 0.48, clipPath: "url(#arb_a)", children: [
1005
- /* @__PURE__ */ s("path", { d: "m12.089 14.49 2.278 3.68 2.105-1.255-2.992-4.852zM18.389 15.439l-.002-1.006-3.27-5.24-1.213 2.119 3.157 5.251 1.14-.68a.53.53 0 0 0 .188-.379zM4.688 16.387l1.611.956 5.363-8.85-.91-.024c-.776-.011-1.611.196-1.994.84l-3.046 4.857-1.024 1.62zM14.758 8.494l-2.4.009-5.426 9.214 1.897 1.123.515-.9z" }),
1006
- /* @__PURE__ */ s("path", { d: "M19.4 8.481a1.58 1.58 0 0 0-.718-1.264L12.72 3.69a1.51 1.51 0 0 0-1.368 0c-.05.026-5.8 3.456-5.8 3.456a1.572 1.572 0 0 0-.863 1.333v7.307l1.024-1.62-.009-5.638.007-.06a.52.52 0 0 1 .204-.332c.027-.02 5.875-3.502 5.893-3.512a.5.5 0 0 1 .45-.002l5.887 3.484c.139.091.226.246.234.415v6.984a.52.52 0 0 1-.176.38l-1.141.68-.589.35-2.105 1.256-2.134 1.272a.5.5 0 0 1-.364-.007L9.345 17.94l-.516.9 2.27 1.344.36.207c.161.08.393.127.602.127q.29 0 .556-.108l6.2-3.693c.355-.284.565-.712.584-1.175z" })
1005
+ /* @__PURE__ */ i("path", { d: "m12.089 14.49 2.278 3.68 2.105-1.255-2.992-4.852zM18.389 15.439l-.002-1.006-3.27-5.24-1.213 2.119 3.157 5.251 1.14-.68a.53.53 0 0 0 .188-.379zM4.688 16.387l1.611.956 5.363-8.85-.91-.024c-.776-.011-1.611.196-1.994.84l-3.046 4.857-1.024 1.62zM14.758 8.494l-2.4.009-5.426 9.214 1.897 1.123.515-.9z" }),
1006
+ /* @__PURE__ */ i("path", { d: "M19.4 8.481a1.58 1.58 0 0 0-.718-1.264L12.72 3.69a1.51 1.51 0 0 0-1.368 0c-.05.026-5.8 3.456-5.8 3.456a1.572 1.572 0 0 0-.863 1.333v7.307l1.024-1.62-.009-5.638.007-.06a.52.52 0 0 1 .204-.332c.027-.02 5.875-3.502 5.893-3.512a.5.5 0 0 1 .45-.002l5.887 3.484c.139.091.226.246.234.415v6.984a.52.52 0 0 1-.176.38l-1.141.68-.589.35-2.105 1.256-2.134 1.272a.5.5 0 0 1-.364-.007L9.345 17.94l-.516.9 2.27 1.344.36.207c.161.08.393.127.602.127q.29 0 .556-.108l6.2-3.693c.355-.284.565-.712.584-1.175z" })
1007
1007
  ] }),
1008
- /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("clipPath", { id: "arb_a", children: /* @__PURE__ */ s("path", { fill: "currentColor", d: "M4 3h16v18H4z" }) }) })
1008
+ /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", { id: "arb_a", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M4 3h16v18H4z" }) }) })
1009
1009
  ]
1010
1010
  }
1011
1011
  );
1012
1012
  }
1013
1013
  function cr(e) {
1014
- return /* @__PURE__ */ s(
1014
+ return /* @__PURE__ */ i(
1015
1015
  "svg",
1016
1016
  {
1017
1017
  xmlns: "http://www.w3.org/2000/svg",
@@ -1020,7 +1020,7 @@ function cr(e) {
1020
1020
  width: "20",
1021
1021
  height: "20",
1022
1022
  ...e,
1023
- children: /* @__PURE__ */ s(
1023
+ children: /* @__PURE__ */ i(
1024
1024
  "path",
1025
1025
  {
1026
1026
  fill: "currentColor",
@@ -1042,7 +1042,7 @@ function dr(e) {
1042
1042
  height: "20",
1043
1043
  ...e,
1044
1044
  children: [
1045
- /* @__PURE__ */ s(
1045
+ /* @__PURE__ */ i(
1046
1046
  "path",
1047
1047
  {
1048
1048
  fill: "currentColor",
@@ -1050,7 +1050,7 @@ function dr(e) {
1050
1050
  d: "m4.913 12.5.011 3.868 3.286 1.935v2.264L3 17.511V11.37zm0-3.868v2.254L3 9.754V7.5l1.913-1.133L6.836 7.5zM9.582 7.5l1.913-1.133L13.418 7.5l-1.923 1.132z"
1051
1051
  }
1052
1052
  ),
1053
- /* @__PURE__ */ s(
1053
+ /* @__PURE__ */ i(
1054
1054
  "path",
1055
1055
  {
1056
1056
  fill: "currentColor",
@@ -1058,7 +1058,7 @@ function dr(e) {
1058
1058
  d: "M6.297 15.567v-2.265l1.913 1.132v2.254zm3.285 3.547 1.914 1.132 1.923-1.132v2.254L11.496 22.5l-1.914-1.132zM16.163 7.5l1.913-1.133L20 7.5v2.254l-1.923 1.132V8.632zm1.913 8.868.011-3.868L20 11.368v6.142l-5.208 3.056v-2.265z"
1059
1059
  }
1060
1060
  ),
1061
- /* @__PURE__ */ s(
1061
+ /* @__PURE__ */ i(
1062
1062
  "path",
1063
1063
  {
1064
1064
  fill: "currentColor",
@@ -1066,7 +1066,7 @@ function dr(e) {
1066
1066
  d: "m16.704 15.567-1.914 1.122v-2.254l1.913-1.133z"
1067
1067
  }
1068
1068
  ),
1069
- /* @__PURE__ */ s(
1069
+ /* @__PURE__ */ i(
1070
1070
  "path",
1071
1071
  {
1072
1072
  fill: "currentColor",
@@ -1081,8 +1081,8 @@ function dr(e) {
1081
1081
  const kn = {
1082
1082
  bitcoin: or,
1083
1083
  solana: ar,
1084
- ethereum: sr,
1085
- base: ir,
1084
+ ethereum: ir,
1085
+ base: sr,
1086
1086
  arbitrum: lr,
1087
1087
  optimism: cr,
1088
1088
  bsc: dr
@@ -1090,7 +1090,7 @@ const kn = {
1090
1090
  function ha(e) {
1091
1091
  if (!e) return null;
1092
1092
  const t = e.toLowerCase().replace(/[\s_-]/g, "");
1093
- return t in kn ? kn[t] : t.includes("bitcoin") || t.includes("btc") ? or : t.includes("solana") || t.includes("sol") ? ar : t.includes("ethereum") || t.includes("eth") || t.includes("erc20") ? sr : t.includes("base") ? ir : t.includes("arbitrum") || t.includes("arb") ? lr : t.includes("optimism") || t.includes("op") ? cr : t.includes("bsc") || t.includes("binance") || t.includes("bnb") ? dr : null;
1093
+ return t in kn ? kn[t] : t.includes("bitcoin") || t.includes("btc") ? or : t.includes("solana") || t.includes("sol") ? ar : t.includes("ethereum") || t.includes("eth") || t.includes("erc20") ? ir : t.includes("base") ? sr : t.includes("arbitrum") || t.includes("arb") ? lr : t.includes("optimism") || t.includes("op") ? cr : t.includes("bsc") || t.includes("binance") || t.includes("bnb") ? dr : null;
1094
1094
  }
1095
1095
  function ga(e) {
1096
1096
  return e.length <= 12 ? e : `${e.slice(0, 6)}...${e.slice(-4)}`;
@@ -1110,25 +1110,25 @@ function va({
1110
1110
  }, [n]);
1111
1111
  return /* @__PURE__ */ p("div", { className: `flex items-center justify-between px-4 py-3 ${r}`, children: [
1112
1112
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2 text-[var(--optimex-text-secondary)]", children: [
1113
- /* @__PURE__ */ s(e, { className: "size-4" }),
1114
- /* @__PURE__ */ s("span", { className: "text-sm", children: t })
1113
+ /* @__PURE__ */ i(e, { className: "size-4" }),
1114
+ /* @__PURE__ */ i("span", { className: "text-sm", children: t })
1115
1115
  ] }),
1116
1116
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
1117
- /* @__PURE__ */ s("span", { className: "text-sm font-medium text-[var(--optimex-text)]", children: ga(n) }),
1118
- /* @__PURE__ */ s(
1117
+ /* @__PURE__ */ i("span", { className: "text-sm font-medium text-[var(--optimex-text)]", children: ga(n) }),
1118
+ /* @__PURE__ */ i(
1119
1119
  "button",
1120
1120
  {
1121
1121
  onClick: l,
1122
1122
  className: "p-1 rounded hover:bg-[var(--optimex-surface-hover)] transition-colors",
1123
1123
  title: o ? "Copied!" : "Copy",
1124
- children: o ? /* @__PURE__ */ s(rn, { className: "size-4 text-[var(--optimex-success)]" }) : /* @__PURE__ */ s(aa, { className: "size-4 text-[var(--optimex-text-secondary)]" })
1124
+ children: o ? /* @__PURE__ */ i(rn, { className: "size-4 text-[var(--optimex-success)]" }) : /* @__PURE__ */ i(aa, { className: "size-4 text-[var(--optimex-text-secondary)]" })
1125
1125
  }
1126
1126
  )
1127
1127
  ] })
1128
1128
  ] });
1129
1129
  }
1130
1130
  const wa = {
1131
- primary: "bg-gradient-to-r from-[var(--optimex-primary)] to-[#d45800] text-black hover:brightness-110 shadow-lg shadow-[var(--optimex-primary)]/30",
1131
+ primary: "bg-[var(--optimex-primary)] text-black hover:bg-[var(--optimex-primary-hover)] hover:brightness-110 shadow-lg shadow-[var(--optimex-primary)]/30",
1132
1132
  secondary: "bg-[var(--optimex-surface)] text-[var(--optimex-text)] hover:bg-[var(--optimex-surface-hover)] border border-[var(--optimex-border)]",
1133
1133
  ghost: "bg-transparent text-[var(--optimex-text-secondary)] hover:bg-[var(--optimex-surface-hover)] hover:text-[var(--optimex-text)]",
1134
1134
  danger: "bg-[var(--optimex-error)] text-white hover:bg-[var(--optimex-error)]/90 hover:shadow-lg hover:shadow-[var(--optimex-error)]/25"
@@ -1145,7 +1145,7 @@ function ur({
1145
1145
  leftIcon: o,
1146
1146
  rightIcon: a,
1147
1147
  children: l,
1148
- className: i = "",
1148
+ className: s = "",
1149
1149
  disabled: c,
1150
1150
  ...d
1151
1151
  }) {
@@ -1159,21 +1159,21 @@ function ur({
1159
1159
  ${ba[t]}
1160
1160
  ${n ? "w-full" : ""}
1161
1161
  ${u ? "cursor-not-allowed opacity-50" : ""}
1162
- ${i}
1162
+ ${s}
1163
1163
  `,
1164
1164
  disabled: u,
1165
1165
  ...d,
1166
1166
  children: [
1167
- r && /* @__PURE__ */ s(xa, { size: t }),
1168
- !r && o && /* @__PURE__ */ s("span", { className: "shrink-0", children: o }),
1167
+ r && /* @__PURE__ */ i(xa, { size: t }),
1168
+ !r && o && /* @__PURE__ */ i("span", { className: "shrink-0", children: o }),
1169
1169
  l,
1170
- !r && a && /* @__PURE__ */ s("span", { className: "shrink-0", children: a })
1170
+ !r && a && /* @__PURE__ */ i("span", { className: "shrink-0", children: a })
1171
1171
  ]
1172
1172
  }
1173
1173
  );
1174
1174
  }
1175
1175
  function xa({ size: e }) {
1176
- return /* @__PURE__ */ s(
1176
+ return /* @__PURE__ */ i(
1177
1177
  "div",
1178
1178
  {
1179
1179
  className: `${e === "sm" ? "h-4 w-4" : "h-5 w-5"} animate-spin rounded-full border-2 border-current border-t-transparent`
@@ -1216,11 +1216,11 @@ const Ca = (e, t) => {
1216
1216
  getClassGroupId: (l) => {
1217
1217
  if (l.startsWith("[") && l.endsWith("]"))
1218
1218
  return Ea(l);
1219
- const i = l.split(bt), c = i[0] === "" && i.length > 1 ? 1 : 0;
1220
- return pr(i, c, t);
1219
+ const s = l.split(bt), c = s[0] === "" && s.length > 1 ? 1 : 0;
1220
+ return pr(s, c, t);
1221
1221
  },
1222
- getConflictingClassGroupIds: (l, i) => {
1223
- if (i) {
1222
+ getConflictingClassGroupIds: (l, s) => {
1223
+ if (s) {
1224
1224
  const c = r[l], d = n[l];
1225
1225
  return c ? d ? Ca(d, c) : c : d || Nn;
1226
1226
  }
@@ -1238,10 +1238,10 @@ const Ca = (e, t) => {
1238
1238
  const l = n.validators;
1239
1239
  if (l === null)
1240
1240
  return;
1241
- const i = t === 0 ? e.join(bt) : e.slice(t).join(bt), c = l.length;
1241
+ const s = t === 0 ? e.join(bt) : e.slice(t).join(bt), c = l.length;
1242
1242
  for (let d = 0; d < c; d++) {
1243
1243
  const u = l[d];
1244
- if (u.validator(i))
1244
+ if (u.validator(s))
1245
1245
  return u.classGroupId;
1246
1246
  }
1247
1247
  }, Ea = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
@@ -1288,16 +1288,16 @@ const Ca = (e, t) => {
1288
1288
  }, La = (e, t, n, r) => {
1289
1289
  const o = Object.entries(e), a = o.length;
1290
1290
  for (let l = 0; l < a; l++) {
1291
- const [i, c] = o[l];
1292
- on(c, hr(t, i), n, r);
1291
+ const [s, c] = o[l];
1292
+ on(c, hr(t, s), n, r);
1293
1293
  }
1294
1294
  }, hr = (e, t) => {
1295
1295
  let n = e;
1296
1296
  const r = t.split(bt), o = r.length;
1297
1297
  for (let a = 0; a < o; a++) {
1298
1298
  const l = r[a];
1299
- let i = n.nextPart.get(l);
1300
- i || (i = mr(), n.nextPart.set(l, i)), n = i;
1299
+ let s = n.nextPart.get(l);
1300
+ s || (s = mr(), n.nextPart.set(l, s)), n = s;
1301
1301
  }
1302
1302
  return n;
1303
1303
  }, Pa = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Oa = (e) => {
@@ -1337,11 +1337,11 @@ const Ca = (e, t) => {
1337
1337
  } = e;
1338
1338
  let r = (o) => {
1339
1339
  const a = [];
1340
- let l = 0, i = 0, c = 0, d;
1340
+ let l = 0, s = 0, c = 0, d;
1341
1341
  const u = o.length;
1342
1342
  for (let m = 0; m < u; m++) {
1343
1343
  const y = o[m];
1344
- if (l === 0 && i === 0) {
1344
+ if (l === 0 && s === 0) {
1345
1345
  if (y === Sn) {
1346
1346
  a.push(o.slice(c, m)), c = m + 1;
1347
1347
  continue;
@@ -1351,7 +1351,7 @@ const Ca = (e, t) => {
1351
1351
  continue;
1352
1352
  }
1353
1353
  }
1354
- y === "[" ? l++ : y === "]" ? l-- : y === "(" ? i++ : y === ")" && i--;
1354
+ y === "[" ? l++ : y === "]" ? l-- : y === "(" ? s++ : y === ")" && s--;
1355
1355
  }
1356
1356
  const f = a.length === 0 ? o : o.slice(c);
1357
1357
  let g = f, w = !1;
@@ -1385,8 +1385,8 @@ const Ca = (e, t) => {
1385
1385
  const r = [];
1386
1386
  let o = [];
1387
1387
  for (let a = 0; a < n.length; a++) {
1388
- const l = n[a], i = l[0] === "[", c = t.has(l);
1389
- i || c ? (o.length > 0 && (o.sort(), r.push(...o), o = []), r.push(l)) : o.push(l);
1388
+ const l = n[a], s = l[0] === "[", c = t.has(l);
1389
+ s || c ? (o.length > 0 && (o.sort(), r.push(...o), o = []), r.push(l)) : o.push(l);
1390
1390
  }
1391
1391
  return o.length > 0 && (o.sort(), r.push(...o)), r;
1392
1392
  };
@@ -1401,10 +1401,10 @@ const Ca = (e, t) => {
1401
1401
  getClassGroupId: r,
1402
1402
  getConflictingClassGroupIds: o,
1403
1403
  sortModifiers: a
1404
- } = t, l = [], i = e.trim().split(Fa);
1404
+ } = t, l = [], s = e.trim().split(Fa);
1405
1405
  let c = "";
1406
- for (let d = i.length - 1; d >= 0; d -= 1) {
1407
- const u = i[d], {
1406
+ for (let d = s.length - 1; d >= 0; d -= 1) {
1407
+ const u = s[d], {
1408
1408
  isExternal: f,
1409
1409
  modifiers: g,
1410
1410
  hasImportantModifier: w,
@@ -1455,8 +1455,8 @@ const Ca = (e, t) => {
1455
1455
  let n, r, o, a;
1456
1456
  const l = (c) => {
1457
1457
  const d = t.reduce((u, f) => f(u), e());
1458
- return n = Ba(d), r = n.cache.get, o = n.cache.set, a = i, i(c);
1459
- }, i = (c) => {
1458
+ return n = Ba(d), r = n.cache.get, o = n.cache.set, a = s, s(c);
1459
+ }, s = (c) => {
1460
1460
  const d = r(c);
1461
1461
  if (d)
1462
1462
  return d;
@@ -1472,14 +1472,14 @@ const Ca = (e, t) => {
1472
1472
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1473
1473
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1474
1474
  qa.test(e) && !Ga.test(e)
1475
- ), br = () => !1, Qa = (e) => Ka.test(e), Ja = (e) => Ya.test(e), es = (e) => !_(e) && !R(e), ts = (e) => Ke(e, Cr, br), _ = (e) => vr.test(e), Le = (e) => Ke(e, kr, Xa), Mt = (e) => Ke(e, ss, D), Tn = (e) => Ke(e, xr, br), ns = (e) => Ke(e, yr, Ja), lt = (e) => Ke(e, Nr, Qa), R = (e) => wr.test(e), Qe = (e) => Ye(e, kr), rs = (e) => Ye(e, is), _n = (e) => Ye(e, xr), os = (e) => Ye(e, Cr), as = (e) => Ye(e, yr), ct = (e) => Ye(e, Nr, !0), Ke = (e, t, n) => {
1475
+ ), br = () => !1, Qa = (e) => Ka.test(e), Ja = (e) => Ya.test(e), ei = (e) => !_(e) && !R(e), ti = (e) => Ke(e, Cr, br), _ = (e) => vr.test(e), Le = (e) => Ke(e, kr, Xa), Mt = (e) => Ke(e, ii, D), Tn = (e) => Ke(e, xr, br), ni = (e) => Ke(e, yr, Ja), lt = (e) => Ke(e, Nr, Qa), R = (e) => wr.test(e), Qe = (e) => Ye(e, kr), ri = (e) => Ye(e, si), _n = (e) => Ye(e, xr), oi = (e) => Ye(e, Cr), ai = (e) => Ye(e, yr), ct = (e) => Ye(e, Nr, !0), Ke = (e, t, n) => {
1476
1476
  const r = vr.exec(e);
1477
1477
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
1478
1478
  }, Ye = (e, t, n = !1) => {
1479
1479
  const r = wr.exec(e);
1480
1480
  return r ? r[1] ? t(r[1]) : n : !1;
1481
- }, xr = (e) => e === "position" || e === "percentage", yr = (e) => e === "image" || e === "url", Cr = (e) => e === "length" || e === "size" || e === "bg-size", kr = (e) => e === "length", ss = (e) => e === "number", is = (e) => e === "family-name", Nr = (e) => e === "shadow", ls = () => {
1482
- const e = re("color"), t = re("font"), n = re("text"), r = re("font-weight"), o = re("tracking"), a = re("leading"), l = re("breakpoint"), i = re("container"), c = re("spacing"), d = re("radius"), u = re("shadow"), f = re("inset-shadow"), g = re("text-shadow"), w = re("drop-shadow"), b = re("blur"), m = re("perspective"), y = re("aspect"), v = re("ease"), k = re("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
1481
+ }, xr = (e) => e === "position" || e === "percentage", yr = (e) => e === "image" || e === "url", Cr = (e) => e === "length" || e === "size" || e === "bg-size", kr = (e) => e === "length", ii = (e) => e === "number", si = (e) => e === "family-name", Nr = (e) => e === "shadow", li = () => {
1482
+ const e = re("color"), t = re("font"), n = re("text"), r = re("font-weight"), o = re("tracking"), a = re("leading"), l = re("breakpoint"), s = re("container"), c = re("spacing"), d = re("radius"), u = re("shadow"), f = re("inset-shadow"), g = re("text-shadow"), w = re("drop-shadow"), b = re("blur"), m = re("perspective"), y = re("aspect"), v = re("ease"), k = re("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
1483
1483
  "center",
1484
1484
  "top",
1485
1485
  "bottom",
@@ -1499,11 +1499,11 @@ const Ca = (e, t) => {
1499
1499
  "left-bottom"
1500
1500
  ], M = () => [...x(), R, _], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], C = () => [R, _, c], L = () => [ze, "full", "auto", ...C()], j = () => [Ne, "none", "subgrid", R, _], O = () => ["auto", {
1501
1501
  span: ["full", Ne, R, _]
1502
- }, Ne, R, _], B = () => [Ne, "auto", R, _], A = () => ["auto", "min", "max", "fr", R, _], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Y = () => ["auto", ...C()], q = () => [ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], E = () => [e, R, _], se = () => [...x(), _n, Tn, {
1502
+ }, Ne, R, _], B = () => [Ne, "auto", R, _], A = () => ["auto", "min", "max", "fr", R, _], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Y = () => ["auto", ...C()], q = () => [ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], E = () => [e, R, _], ie = () => [...x(), _n, Tn, {
1503
1503
  position: [R, _]
1504
1504
  }], le = () => ["no-repeat", {
1505
1505
  repeat: ["", "x", "y", "space", "round"]
1506
- }], Re = () => ["auto", "cover", "contain", os, ts, {
1506
+ }], Re = () => ["auto", "cover", "contain", oi, ti, {
1507
1507
  size: [R, _]
1508
1508
  }], he = () => [At, Qe, Le], G = () => [
1509
1509
  // Deprecated since Tailwind CSS v4.0.0
@@ -1532,7 +1532,7 @@ const Ca = (e, t) => {
1532
1532
  container: [ve],
1533
1533
  "drop-shadow": [ve],
1534
1534
  ease: ["in", "out", "in-out"],
1535
- font: [es],
1535
+ font: [ei],
1536
1536
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1537
1537
  "inset-shadow": [ve],
1538
1538
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -1566,7 +1566,7 @@ const Ca = (e, t) => {
1566
1566
  * @see https://tailwindcss.com/docs/columns
1567
1567
  */
1568
1568
  columns: [{
1569
- columns: [D, _, R, i]
1569
+ columns: [D, _, R, s]
1570
1570
  }],
1571
1571
  /**
1572
1572
  * Break After
@@ -1776,7 +1776,7 @@ const Ca = (e, t) => {
1776
1776
  * @see https://tailwindcss.com/docs/flex-basis
1777
1777
  */
1778
1778
  basis: [{
1779
- basis: [ze, "full", "auto", i, ...C()]
1779
+ basis: [ze, "full", "auto", s, ...C()]
1780
1780
  }],
1781
1781
  /**
1782
1782
  * Flex Direction
@@ -2151,7 +2151,7 @@ const Ca = (e, t) => {
2151
2151
  * @see https://tailwindcss.com/docs/width
2152
2152
  */
2153
2153
  w: [{
2154
- w: [i, "screen", ...q()]
2154
+ w: [s, "screen", ...q()]
2155
2155
  }],
2156
2156
  /**
2157
2157
  * Min-Width
@@ -2159,7 +2159,7 @@ const Ca = (e, t) => {
2159
2159
  */
2160
2160
  "min-w": [{
2161
2161
  "min-w": [
2162
- i,
2162
+ s,
2163
2163
  "screen",
2164
2164
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2165
2165
  "none",
@@ -2172,7 +2172,7 @@ const Ca = (e, t) => {
2172
2172
  */
2173
2173
  "max-w": [{
2174
2174
  "max-w": [
2175
- i,
2175
+ s,
2176
2176
  "screen",
2177
2177
  "none",
2178
2178
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
@@ -2244,7 +2244,7 @@ const Ca = (e, t) => {
2244
2244
  * @see https://tailwindcss.com/docs/font-family
2245
2245
  */
2246
2246
  "font-family": [{
2247
- font: [rs, _, t]
2247
+ font: [ri, _, t]
2248
2248
  }],
2249
2249
  /**
2250
2250
  * Font Variant Numeric
@@ -2472,7 +2472,7 @@ const Ca = (e, t) => {
2472
2472
  * @see https://tailwindcss.com/docs/background-position
2473
2473
  */
2474
2474
  "bg-position": [{
2475
- bg: se()
2475
+ bg: ie()
2476
2476
  }],
2477
2477
  /**
2478
2478
  * Background Repeat
@@ -2499,7 +2499,7 @@ const Ca = (e, t) => {
2499
2499
  }, Ne, R, _],
2500
2500
  radial: ["", R, _],
2501
2501
  conic: [Ne, R, _]
2502
- }, as, ns]
2502
+ }, ai, ni]
2503
2503
  }],
2504
2504
  /**
2505
2505
  * Background Color
@@ -3149,7 +3149,7 @@ const Ca = (e, t) => {
3149
3149
  * @see https://tailwindcss.com/docs/mask-position
3150
3150
  */
3151
3151
  "mask-position": [{
3152
- mask: se()
3152
+ mask: ie()
3153
3153
  }],
3154
3154
  /**
3155
3155
  * Mask Repeat
@@ -3948,11 +3948,11 @@ const Ca = (e, t) => {
3948
3948
  },
3949
3949
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3950
3950
  };
3951
- }, cs = /* @__PURE__ */ Wa(ls);
3951
+ }, ci = /* @__PURE__ */ Wa(li);
3952
3952
  function Sr(...e) {
3953
- return cs(ya(e));
3953
+ return ci(ya(e));
3954
3954
  }
3955
- function ds({
3955
+ function di({
3956
3956
  state: e,
3957
3957
  onConfirm: t,
3958
3958
  confirmText: n = "Confirm",
@@ -3960,7 +3960,7 @@ function ds({
3960
3960
  successText: o = "Done",
3961
3961
  errorText: a = "Retry"
3962
3962
  }) {
3963
- return /* @__PURE__ */ s(
3963
+ return /* @__PURE__ */ i(
3964
3964
  ur,
3965
3965
  {
3966
3966
  variant: "primary",
@@ -4013,10 +4013,10 @@ function Er(...e) {
4013
4013
  function Be(...e) {
4014
4014
  return h.useCallback(Er(...e), e);
4015
4015
  }
4016
- function us(e, t) {
4016
+ function ui(e, t) {
4017
4017
  const n = h.createContext(t), r = (a) => {
4018
- const { children: l, ...i } = a, c = h.useMemo(() => i, Object.values(i));
4019
- return /* @__PURE__ */ s(n.Provider, { value: c, children: l });
4018
+ const { children: l, ...s } = a, c = h.useMemo(() => s, Object.values(s));
4019
+ return /* @__PURE__ */ i(n.Provider, { value: c, children: l });
4020
4020
  };
4021
4021
  r.displayName = e + "Provider";
4022
4022
  function o(a) {
@@ -4027,18 +4027,18 @@ function us(e, t) {
4027
4027
  }
4028
4028
  return [r, o];
4029
4029
  }
4030
- function fs(e, t = []) {
4030
+ function fi(e, t = []) {
4031
4031
  let n = [];
4032
4032
  function r(a, l) {
4033
- const i = h.createContext(l), c = n.length;
4033
+ const s = h.createContext(l), c = n.length;
4034
4034
  n = [...n, l];
4035
4035
  const d = (f) => {
4036
- const { scope: g, children: w, ...b } = f, m = g?.[e]?.[c] || i, y = h.useMemo(() => b, Object.values(b));
4037
- return /* @__PURE__ */ s(m.Provider, { value: y, children: w });
4036
+ const { scope: g, children: w, ...b } = f, m = g?.[e]?.[c] || s, y = h.useMemo(() => b, Object.values(b));
4037
+ return /* @__PURE__ */ i(m.Provider, { value: y, children: w });
4038
4038
  };
4039
4039
  d.displayName = a + "Provider";
4040
4040
  function u(f, g) {
4041
- const w = g?.[e]?.[c] || i, b = h.useContext(w);
4041
+ const w = g?.[e]?.[c] || s, b = h.useContext(w);
4042
4042
  if (b) return b;
4043
4043
  if (l !== void 0) return l;
4044
4044
  throw new Error(`\`${f}\` must be used within \`${a}\``);
@@ -4047,17 +4047,17 @@ function fs(e, t = []) {
4047
4047
  }
4048
4048
  const o = () => {
4049
4049
  const a = n.map((l) => h.createContext(l));
4050
- return function(i) {
4051
- const c = i?.[e] || a;
4050
+ return function(s) {
4051
+ const c = s?.[e] || a;
4052
4052
  return h.useMemo(
4053
- () => ({ [`__scope${e}`]: { ...i, [e]: c } }),
4054
- [i, c]
4053
+ () => ({ [`__scope${e}`]: { ...s, [e]: c } }),
4054
+ [s, c]
4055
4055
  );
4056
4056
  };
4057
4057
  };
4058
- return o.scopeName = e, [r, ms(o, ...t)];
4058
+ return o.scopeName = e, [r, mi(o, ...t)];
4059
4059
  }
4060
- function ms(...e) {
4060
+ function mi(...e) {
4061
4061
  const t = e[0];
4062
4062
  if (e.length === 1) return t;
4063
4063
  const n = () => {
@@ -4066,9 +4066,9 @@ function ms(...e) {
4066
4066
  scopeName: o.scopeName
4067
4067
  }));
4068
4068
  return function(a) {
4069
- const l = r.reduce((i, { useScope: c, scopeName: d }) => {
4069
+ const l = r.reduce((s, { useScope: c, scopeName: d }) => {
4070
4070
  const f = c(a)[`__scope${d}`];
4071
- return { ...i, ...f };
4071
+ return { ...s, ...f };
4072
4072
  }, {});
4073
4073
  return h.useMemo(() => ({ [`__scope${t.scopeName}`]: l }), [l]);
4074
4074
  };
@@ -4076,105 +4076,105 @@ function ms(...e) {
4076
4076
  return n.scopeName = t.scopeName, n;
4077
4077
  }
4078
4078
  var tt = globalThis?.document ? h.useLayoutEffect : () => {
4079
- }, ps = h[" useId ".trim().toString()] || (() => {
4080
- }), hs = 0;
4079
+ }, pi = h[" useId ".trim().toString()] || (() => {
4080
+ }), hi = 0;
4081
4081
  function Lt(e) {
4082
- const [t, n] = h.useState(ps());
4082
+ const [t, n] = h.useState(pi());
4083
4083
  return tt(() => {
4084
- n((r) => r ?? String(hs++));
4084
+ n((r) => r ?? String(hi++));
4085
4085
  }, [e]), e || (t ? `radix-${t}` : "");
4086
4086
  }
4087
- var gs = h[" useInsertionEffect ".trim().toString()] || tt;
4088
- function vs({
4087
+ var gi = h[" useInsertionEffect ".trim().toString()] || tt;
4088
+ function vi({
4089
4089
  prop: e,
4090
4090
  defaultProp: t,
4091
4091
  onChange: n = () => {
4092
4092
  },
4093
4093
  caller: r
4094
4094
  }) {
4095
- const [o, a, l] = ws({
4095
+ const [o, a, l] = wi({
4096
4096
  defaultProp: t,
4097
4097
  onChange: n
4098
- }), i = e !== void 0, c = i ? e : o;
4098
+ }), s = e !== void 0, c = s ? e : o;
4099
4099
  {
4100
4100
  const u = h.useRef(e !== void 0);
4101
4101
  h.useEffect(() => {
4102
4102
  const f = u.current;
4103
- f !== i && console.warn(
4104
- `${r} is changing from ${f ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
4105
- ), u.current = i;
4106
- }, [i, r]);
4103
+ f !== s && console.warn(
4104
+ `${r} is changing from ${f ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
4105
+ ), u.current = s;
4106
+ }, [s, r]);
4107
4107
  }
4108
4108
  const d = h.useCallback(
4109
4109
  (u) => {
4110
- if (i) {
4111
- const f = bs(u) ? u(e) : u;
4110
+ if (s) {
4111
+ const f = bi(u) ? u(e) : u;
4112
4112
  f !== e && l.current?.(f);
4113
4113
  } else
4114
4114
  a(u);
4115
4115
  },
4116
- [i, e, a, l]
4116
+ [s, e, a, l]
4117
4117
  );
4118
4118
  return [c, d];
4119
4119
  }
4120
- function ws({
4120
+ function wi({
4121
4121
  defaultProp: e,
4122
4122
  onChange: t
4123
4123
  }) {
4124
4124
  const [n, r] = h.useState(e), o = h.useRef(n), a = h.useRef(t);
4125
- return gs(() => {
4125
+ return gi(() => {
4126
4126
  a.current = t;
4127
4127
  }, [t]), h.useEffect(() => {
4128
4128
  o.current !== n && (a.current?.(n), o.current = n);
4129
4129
  }, [n, o]), [n, r, a];
4130
4130
  }
4131
- function bs(e) {
4131
+ function bi(e) {
4132
4132
  return typeof e == "function";
4133
4133
  }
4134
4134
  // @__NO_SIDE_EFFECTS__
4135
4135
  function Tr(e) {
4136
- const t = /* @__PURE__ */ xs(e), n = h.forwardRef((r, o) => {
4137
- const { children: a, ...l } = r, i = h.Children.toArray(a), c = i.find(Cs);
4136
+ const t = /* @__PURE__ */ xi(e), n = h.forwardRef((r, o) => {
4137
+ const { children: a, ...l } = r, s = h.Children.toArray(a), c = s.find(Ci);
4138
4138
  if (c) {
4139
- const d = c.props.children, u = i.map((f) => f === c ? h.Children.count(d) > 1 ? h.Children.only(null) : h.isValidElement(d) ? d.props.children : null : f);
4140
- return /* @__PURE__ */ s(t, { ...l, ref: o, children: h.isValidElement(d) ? h.cloneElement(d, void 0, u) : null });
4139
+ const d = c.props.children, u = s.map((f) => f === c ? h.Children.count(d) > 1 ? h.Children.only(null) : h.isValidElement(d) ? d.props.children : null : f);
4140
+ return /* @__PURE__ */ i(t, { ...l, ref: o, children: h.isValidElement(d) ? h.cloneElement(d, void 0, u) : null });
4141
4141
  }
4142
- return /* @__PURE__ */ s(t, { ...l, ref: o, children: a });
4142
+ return /* @__PURE__ */ i(t, { ...l, ref: o, children: a });
4143
4143
  });
4144
4144
  return n.displayName = `${e}.Slot`, n;
4145
4145
  }
4146
4146
  // @__NO_SIDE_EFFECTS__
4147
- function xs(e) {
4147
+ function xi(e) {
4148
4148
  const t = h.forwardRef((n, r) => {
4149
4149
  const { children: o, ...a } = n;
4150
4150
  if (h.isValidElement(o)) {
4151
- const l = Ns(o), i = ks(a, o.props);
4152
- return o.type !== h.Fragment && (i.ref = r ? Er(r, l) : l), h.cloneElement(o, i);
4151
+ const l = Ni(o), s = ki(a, o.props);
4152
+ return o.type !== h.Fragment && (s.ref = r ? Er(r, l) : l), h.cloneElement(o, s);
4153
4153
  }
4154
4154
  return h.Children.count(o) > 1 ? h.Children.only(null) : null;
4155
4155
  });
4156
4156
  return t.displayName = `${e}.SlotClone`, t;
4157
4157
  }
4158
- var ys = Symbol("radix.slottable");
4159
- function Cs(e) {
4160
- return h.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ys;
4158
+ var yi = Symbol("radix.slottable");
4159
+ function Ci(e) {
4160
+ return h.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === yi;
4161
4161
  }
4162
- function ks(e, t) {
4162
+ function ki(e, t) {
4163
4163
  const n = { ...t };
4164
4164
  for (const r in t) {
4165
4165
  const o = e[r], a = t[r];
4166
- /^on[A-Z]/.test(r) ? o && a ? n[r] = (...i) => {
4167
- const c = a(...i);
4168
- return o(...i), c;
4166
+ /^on[A-Z]/.test(r) ? o && a ? n[r] = (...s) => {
4167
+ const c = a(...s);
4168
+ return o(...s), c;
4169
4169
  } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...a } : r === "className" && (n[r] = [o, a].filter(Boolean).join(" "));
4170
4170
  }
4171
4171
  return { ...e, ...n };
4172
4172
  }
4173
- function Ns(e) {
4173
+ function Ni(e) {
4174
4174
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
4175
4175
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
4176
4176
  }
4177
- var Ss = [
4177
+ var Si = [
4178
4178
  "a",
4179
4179
  "button",
4180
4180
  "div",
@@ -4192,14 +4192,14 @@ var Ss = [
4192
4192
  "span",
4193
4193
  "svg",
4194
4194
  "ul"
4195
- ], we = Ss.reduce((e, t) => {
4195
+ ], we = Si.reduce((e, t) => {
4196
4196
  const n = /* @__PURE__ */ Tr(`Primitive.${t}`), r = h.forwardRef((o, a) => {
4197
- const { asChild: l, ...i } = o, c = l ? n : t;
4198
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(c, { ...i, ref: a });
4197
+ const { asChild: l, ...s } = o, c = l ? n : t;
4198
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ i(c, { ...s, ref: a });
4199
4199
  });
4200
4200
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
4201
4201
  }, {});
4202
- function Es(e, t) {
4202
+ function Ei(e, t) {
4203
4203
  e && $o.flushSync(() => e.dispatchEvent(t));
4204
4204
  }
4205
4205
  function nt(e) {
@@ -4208,7 +4208,7 @@ function nt(e) {
4208
4208
  t.current = e;
4209
4209
  }), h.useMemo(() => (...n) => t.current?.(...n), []);
4210
4210
  }
4211
- function Ts(e, t = globalThis?.document) {
4211
+ function Ti(e, t = globalThis?.document) {
4212
4212
  const n = nt(e);
4213
4213
  h.useEffect(() => {
4214
4214
  const r = (o) => {
@@ -4217,7 +4217,7 @@ function Ts(e, t = globalThis?.document) {
4217
4217
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
4218
4218
  }, [n, t]);
4219
4219
  }
4220
- var _s = "DismissableLayer", Kt = "dismissableLayer.update", Rs = "dismissableLayer.pointerDownOutside", As = "dismissableLayer.focusOutside", An, _r = h.createContext({
4220
+ var _i = "DismissableLayer", Kt = "dismissableLayer.update", Ri = "dismissableLayer.pointerDownOutside", Ai = "dismissableLayer.focusOutside", An, _r = h.createContext({
4221
4221
  layers: /* @__PURE__ */ new Set(),
4222
4222
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
4223
4223
  branches: /* @__PURE__ */ new Set()
@@ -4229,17 +4229,17 @@ var _s = "DismissableLayer", Kt = "dismissableLayer.update", Rs = "dismissableLa
4229
4229
  onPointerDownOutside: o,
4230
4230
  onFocusOutside: a,
4231
4231
  onInteractOutside: l,
4232
- onDismiss: i,
4232
+ onDismiss: s,
4233
4233
  ...c
4234
- } = e, d = h.useContext(_r), [u, f] = h.useState(null), g = u?.ownerDocument ?? globalThis?.document, [, w] = h.useState({}), b = Be(t, (N) => f(N)), m = Array.from(d.layers), [y] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(y), k = u ? m.indexOf(u) : -1, S = d.layersWithOutsidePointerEventsDisabled.size > 0, x = k >= v, M = Ps((N) => {
4234
+ } = e, d = h.useContext(_r), [u, f] = h.useState(null), g = u?.ownerDocument ?? globalThis?.document, [, w] = h.useState({}), b = Be(t, (N) => f(N)), m = Array.from(d.layers), [y] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(y), k = u ? m.indexOf(u) : -1, S = d.layersWithOutsidePointerEventsDisabled.size > 0, x = k >= v, M = Pi((N) => {
4235
4235
  const C = N.target, L = [...d.branches].some((j) => j.contains(C));
4236
- !x || L || (o?.(N), l?.(N), N.defaultPrevented || i?.());
4237
- }, g), $ = Os((N) => {
4236
+ !x || L || (o?.(N), l?.(N), N.defaultPrevented || s?.());
4237
+ }, g), $ = Oi((N) => {
4238
4238
  const C = N.target;
4239
- [...d.branches].some((j) => j.contains(C)) || (a?.(N), l?.(N), N.defaultPrevented || i?.());
4239
+ [...d.branches].some((j) => j.contains(C)) || (a?.(N), l?.(N), N.defaultPrevented || s?.());
4240
4240
  }, g);
4241
- return Ts((N) => {
4242
- k === d.layers.size - 1 && (r?.(N), !N.defaultPrevented && i && (N.preventDefault(), i()));
4241
+ return Ti((N) => {
4242
+ k === d.layers.size - 1 && (r?.(N), !N.defaultPrevented && s && (N.preventDefault(), s()));
4243
4243
  }, g), h.useEffect(() => {
4244
4244
  if (u)
4245
4245
  return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (An = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), Mn(), () => {
@@ -4250,7 +4250,7 @@ var _s = "DismissableLayer", Kt = "dismissableLayer.update", Rs = "dismissableLa
4250
4250
  }, [u, d]), h.useEffect(() => {
4251
4251
  const N = () => w({});
4252
4252
  return document.addEventListener(Kt, N), () => document.removeEventListener(Kt, N);
4253
- }, []), /* @__PURE__ */ s(
4253
+ }, []), /* @__PURE__ */ i(
4254
4254
  we.div,
4255
4255
  {
4256
4256
  ...c,
@@ -4269,8 +4269,8 @@ var _s = "DismissableLayer", Kt = "dismissableLayer.update", Rs = "dismissableLa
4269
4269
  );
4270
4270
  }
4271
4271
  );
4272
- Rr.displayName = _s;
4273
- var Ms = "DismissableLayerBranch", Ls = h.forwardRef((e, t) => {
4272
+ Rr.displayName = _i;
4273
+ var Mi = "DismissableLayerBranch", Li = h.forwardRef((e, t) => {
4274
4274
  const n = h.useContext(_r), r = h.useRef(null), o = Be(t, r);
4275
4275
  return h.useEffect(() => {
4276
4276
  const a = r.current;
@@ -4278,25 +4278,25 @@ var Ms = "DismissableLayerBranch", Ls = h.forwardRef((e, t) => {
4278
4278
  return n.branches.add(a), () => {
4279
4279
  n.branches.delete(a);
4280
4280
  };
4281
- }, [n.branches]), /* @__PURE__ */ s(we.div, { ...e, ref: o });
4281
+ }, [n.branches]), /* @__PURE__ */ i(we.div, { ...e, ref: o });
4282
4282
  });
4283
- Ls.displayName = Ms;
4284
- function Ps(e, t = globalThis?.document) {
4283
+ Li.displayName = Mi;
4284
+ function Pi(e, t = globalThis?.document) {
4285
4285
  const n = nt(e), r = h.useRef(!1), o = h.useRef(() => {
4286
4286
  });
4287
4287
  return h.useEffect(() => {
4288
- const a = (i) => {
4289
- if (i.target && !r.current) {
4288
+ const a = (s) => {
4289
+ if (s.target && !r.current) {
4290
4290
  let c = function() {
4291
4291
  Ar(
4292
- Rs,
4292
+ Ri,
4293
4293
  n,
4294
4294
  d,
4295
4295
  { discrete: !0 }
4296
4296
  );
4297
4297
  };
4298
- const d = { originalEvent: i };
4299
- i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = c, t.addEventListener("click", o.current, { once: !0 })) : c();
4298
+ const d = { originalEvent: s };
4299
+ s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = c, t.addEventListener("click", o.current, { once: !0 })) : c();
4300
4300
  } else
4301
4301
  t.removeEventListener("click", o.current);
4302
4302
  r.current = !1;
@@ -4311,11 +4311,11 @@ function Ps(e, t = globalThis?.document) {
4311
4311
  onPointerDownCapture: () => r.current = !0
4312
4312
  };
4313
4313
  }
4314
- function Os(e, t = globalThis?.document) {
4314
+ function Oi(e, t = globalThis?.document) {
4315
4315
  const n = nt(e), r = h.useRef(!1);
4316
4316
  return h.useEffect(() => {
4317
4317
  const o = (a) => {
4318
- a.target && !r.current && Ar(As, n, { originalEvent: a }, {
4318
+ a.target && !r.current && Ar(Ai, n, { originalEvent: a }, {
4319
4319
  discrete: !1
4320
4320
  });
4321
4321
  };
@@ -4331,16 +4331,16 @@ function Mn() {
4331
4331
  }
4332
4332
  function Ar(e, t, n, { discrete: r }) {
4333
4333
  const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
4334
- t && o.addEventListener(e, t, { once: !0 }), r ? Es(o, a) : o.dispatchEvent(a);
4334
+ t && o.addEventListener(e, t, { once: !0 }), r ? Ei(o, a) : o.dispatchEvent(a);
4335
4335
  }
4336
- var Pt = "focusScope.autoFocusOnMount", Ot = "focusScope.autoFocusOnUnmount", Ln = { bubbles: !1, cancelable: !0 }, Is = "FocusScope", Mr = h.forwardRef((e, t) => {
4336
+ var Pt = "focusScope.autoFocusOnMount", Ot = "focusScope.autoFocusOnUnmount", Ln = { bubbles: !1, cancelable: !0 }, Ii = "FocusScope", Mr = h.forwardRef((e, t) => {
4337
4337
  const {
4338
4338
  loop: n = !1,
4339
4339
  trapped: r = !1,
4340
4340
  onMountAutoFocus: o,
4341
4341
  onUnmountAutoFocus: a,
4342
4342
  ...l
4343
- } = e, [i, c] = h.useState(null), d = nt(o), u = nt(a), f = h.useRef(null), g = Be(t, (m) => c(m)), w = h.useRef({
4343
+ } = e, [s, c] = h.useState(null), d = nt(o), u = nt(a), f = h.useRef(null), g = Be(t, (m) => c(m)), w = h.useRef({
4344
4344
  paused: !1,
4345
4345
  pause() {
4346
4346
  this.paused = !0;
@@ -4352,60 +4352,60 @@ var Pt = "focusScope.autoFocusOnMount", Ot = "focusScope.autoFocusOnUnmount", Ln
4352
4352
  h.useEffect(() => {
4353
4353
  if (r) {
4354
4354
  let m = function(S) {
4355
- if (w.paused || !i) return;
4355
+ if (w.paused || !s) return;
4356
4356
  const x = S.target;
4357
- i.contains(x) ? f.current = x : Se(f.current, { select: !0 });
4357
+ s.contains(x) ? f.current = x : Se(f.current, { select: !0 });
4358
4358
  }, y = function(S) {
4359
- if (w.paused || !i) return;
4359
+ if (w.paused || !s) return;
4360
4360
  const x = S.relatedTarget;
4361
- x !== null && (i.contains(x) || Se(f.current, { select: !0 }));
4361
+ x !== null && (s.contains(x) || Se(f.current, { select: !0 }));
4362
4362
  }, v = function(S) {
4363
4363
  if (document.activeElement === document.body)
4364
4364
  for (const M of S)
4365
- M.removedNodes.length > 0 && Se(i);
4365
+ M.removedNodes.length > 0 && Se(s);
4366
4366
  };
4367
4367
  document.addEventListener("focusin", m), document.addEventListener("focusout", y);
4368
4368
  const k = new MutationObserver(v);
4369
- return i && k.observe(i, { childList: !0, subtree: !0 }), () => {
4369
+ return s && k.observe(s, { childList: !0, subtree: !0 }), () => {
4370
4370
  document.removeEventListener("focusin", m), document.removeEventListener("focusout", y), k.disconnect();
4371
4371
  };
4372
4372
  }
4373
- }, [r, i, w.paused]), h.useEffect(() => {
4374
- if (i) {
4373
+ }, [r, s, w.paused]), h.useEffect(() => {
4374
+ if (s) {
4375
4375
  On.add(w);
4376
4376
  const m = document.activeElement;
4377
- if (!i.contains(m)) {
4377
+ if (!s.contains(m)) {
4378
4378
  const v = new CustomEvent(Pt, Ln);
4379
- i.addEventListener(Pt, d), i.dispatchEvent(v), v.defaultPrevented || (Ds(Vs(Lr(i)), { select: !0 }), document.activeElement === m && Se(i));
4379
+ s.addEventListener(Pt, d), s.dispatchEvent(v), v.defaultPrevented || (Di(Vi(Lr(s)), { select: !0 }), document.activeElement === m && Se(s));
4380
4380
  }
4381
4381
  return () => {
4382
- i.removeEventListener(Pt, d), setTimeout(() => {
4382
+ s.removeEventListener(Pt, d), setTimeout(() => {
4383
4383
  const v = new CustomEvent(Ot, Ln);
4384
- i.addEventListener(Ot, u), i.dispatchEvent(v), v.defaultPrevented || Se(m ?? document.body, { select: !0 }), i.removeEventListener(Ot, u), On.remove(w);
4384
+ s.addEventListener(Ot, u), s.dispatchEvent(v), v.defaultPrevented || Se(m ?? document.body, { select: !0 }), s.removeEventListener(Ot, u), On.remove(w);
4385
4385
  }, 0);
4386
4386
  };
4387
4387
  }
4388
- }, [i, d, u, w]);
4388
+ }, [s, d, u, w]);
4389
4389
  const b = h.useCallback(
4390
4390
  (m) => {
4391
4391
  if (!n && !r || w.paused) return;
4392
4392
  const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, v = document.activeElement;
4393
4393
  if (y && v) {
4394
- const k = m.currentTarget, [S, x] = $s(k);
4394
+ const k = m.currentTarget, [S, x] = $i(k);
4395
4395
  S && x ? !m.shiftKey && v === x ? (m.preventDefault(), n && Se(S, { select: !0 })) : m.shiftKey && v === S && (m.preventDefault(), n && Se(x, { select: !0 })) : v === k && m.preventDefault();
4396
4396
  }
4397
4397
  },
4398
4398
  [n, r, w.paused]
4399
4399
  );
4400
- return /* @__PURE__ */ s(we.div, { tabIndex: -1, ...l, ref: g, onKeyDown: b });
4400
+ return /* @__PURE__ */ i(we.div, { tabIndex: -1, ...l, ref: g, onKeyDown: b });
4401
4401
  });
4402
- Mr.displayName = Is;
4403
- function Ds(e, { select: t = !1 } = {}) {
4402
+ Mr.displayName = Ii;
4403
+ function Di(e, { select: t = !1 } = {}) {
4404
4404
  const n = document.activeElement;
4405
4405
  for (const r of e)
4406
4406
  if (Se(r, { select: t }), document.activeElement !== n) return;
4407
4407
  }
4408
- function $s(e) {
4408
+ function $i(e) {
4409
4409
  const t = Lr(e), n = Pn(t, e), r = Pn(t.reverse(), e);
4410
4410
  return [n, r];
4411
4411
  }
@@ -4421,9 +4421,9 @@ function Lr(e) {
4421
4421
  }
4422
4422
  function Pn(e, t) {
4423
4423
  for (const n of e)
4424
- if (!Bs(n, { upTo: t })) return n;
4424
+ if (!Bi(n, { upTo: t })) return n;
4425
4425
  }
4426
- function Bs(e, { upTo: t }) {
4426
+ function Bi(e, { upTo: t }) {
4427
4427
  if (getComputedStyle(e).visibility === "hidden") return !0;
4428
4428
  for (; e; ) {
4429
4429
  if (t !== void 0 && e === t) return !1;
@@ -4432,17 +4432,17 @@ function Bs(e, { upTo: t }) {
4432
4432
  }
4433
4433
  return !1;
4434
4434
  }
4435
- function Fs(e) {
4435
+ function Fi(e) {
4436
4436
  return e instanceof HTMLInputElement && "select" in e;
4437
4437
  }
4438
4438
  function Se(e, { select: t = !1 } = {}) {
4439
4439
  if (e && e.focus) {
4440
4440
  const n = document.activeElement;
4441
- e.focus({ preventScroll: !0 }), e !== n && Fs(e) && t && e.select();
4441
+ e.focus({ preventScroll: !0 }), e !== n && Fi(e) && t && e.select();
4442
4442
  }
4443
4443
  }
4444
- var On = zs();
4445
- function zs() {
4444
+ var On = zi();
4445
+ function zi() {
4446
4446
  let e = [];
4447
4447
  return {
4448
4448
  add(t) {
@@ -4458,26 +4458,26 @@ function In(e, t) {
4458
4458
  const n = [...e], r = n.indexOf(t);
4459
4459
  return r !== -1 && n.splice(r, 1), n;
4460
4460
  }
4461
- function Vs(e) {
4461
+ function Vi(e) {
4462
4462
  return e.filter((t) => t.tagName !== "A");
4463
4463
  }
4464
- var Ws = "Portal", Pr = h.forwardRef((e, t) => {
4464
+ var Wi = "Portal", Pr = h.forwardRef((e, t) => {
4465
4465
  const { container: n, ...r } = e, [o, a] = h.useState(!1);
4466
4466
  tt(() => a(!0), []);
4467
4467
  const l = n || o && globalThis?.document?.body;
4468
- return l ? Bo.createPortal(/* @__PURE__ */ s(we.div, { ...r, ref: t }), l) : null;
4468
+ return l ? Bo.createPortal(/* @__PURE__ */ i(we.div, { ...r, ref: t }), l) : null;
4469
4469
  });
4470
- Pr.displayName = Ws;
4471
- function js(e, t) {
4470
+ Pr.displayName = Wi;
4471
+ function ji(e, t) {
4472
4472
  return h.useReducer((n, r) => t[n][r] ?? n, e);
4473
4473
  }
4474
4474
  var kt = (e) => {
4475
- const { present: t, children: n } = e, r = Hs(t), o = typeof n == "function" ? n({ present: r.isPresent }) : h.Children.only(n), a = Be(r.ref, Us(o));
4475
+ const { present: t, children: n } = e, r = Hi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : h.Children.only(n), a = Be(r.ref, Ui(o));
4476
4476
  return typeof n == "function" || r.isPresent ? h.cloneElement(o, { ref: a }) : null;
4477
4477
  };
4478
4478
  kt.displayName = "Presence";
4479
- function Hs(e) {
4480
- const [t, n] = h.useState(), r = h.useRef(null), o = h.useRef(e), a = h.useRef("none"), l = e ? "mounted" : "unmounted", [i, c] = js(l, {
4479
+ function Hi(e) {
4480
+ const [t, n] = h.useState(), r = h.useRef(null), o = h.useRef(e), a = h.useRef("none"), l = e ? "mounted" : "unmounted", [s, c] = ji(l, {
4481
4481
  mounted: {
4482
4482
  UNMOUNT: "unmounted",
4483
4483
  ANIMATION_OUT: "unmountSuspended"
@@ -4492,8 +4492,8 @@ function Hs(e) {
4492
4492
  });
4493
4493
  return h.useEffect(() => {
4494
4494
  const d = dt(r.current);
4495
- a.current = i === "mounted" ? d : "none";
4496
- }, [i]), tt(() => {
4495
+ a.current = s === "mounted" ? d : "none";
4496
+ }, [s]), tt(() => {
4497
4497
  const d = r.current, u = o.current;
4498
4498
  if (u !== e) {
4499
4499
  const g = a.current, w = dt(d);
@@ -4519,7 +4519,7 @@ function Hs(e) {
4519
4519
  } else
4520
4520
  c("ANIMATION_END");
4521
4521
  }, [t, c]), {
4522
- isPresent: ["mounted", "unmountSuspended"].includes(i),
4522
+ isPresent: ["mounted", "unmountSuspended"].includes(s),
4523
4523
  ref: h.useCallback((d) => {
4524
4524
  r.current = d ? getComputedStyle(d) : null, n(d);
4525
4525
  }, [])
@@ -4528,12 +4528,12 @@ function Hs(e) {
4528
4528
  function dt(e) {
4529
4529
  return e?.animationName || "none";
4530
4530
  }
4531
- function Us(e) {
4531
+ function Ui(e) {
4532
4532
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
4533
4533
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
4534
4534
  }
4535
4535
  var It = 0;
4536
- function qs() {
4536
+ function qi() {
4537
4537
  h.useEffect(() => {
4538
4538
  const e = document.querySelectorAll("[data-radix-focus-guard]");
4539
4539
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Dn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Dn()), It++, () => {
@@ -4562,16 +4562,16 @@ function Or(e, t) {
4562
4562
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
4563
4563
  return n;
4564
4564
  }
4565
- function Gs(e, t, n) {
4565
+ function Gi(e, t, n) {
4566
4566
  if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
4567
4567
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
4568
4568
  return e.concat(a || Array.prototype.slice.call(t));
4569
4569
  }
4570
- var vt = "right-scroll-bar-position", wt = "width-before-scroll-bar", Ks = "with-scroll-bars-hidden", Ys = "--removed-body-scroll-bar-size";
4570
+ var vt = "right-scroll-bar-position", wt = "width-before-scroll-bar", Ki = "with-scroll-bars-hidden", Yi = "--removed-body-scroll-bar-size";
4571
4571
  function Dt(e, t) {
4572
4572
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
4573
4573
  }
4574
- function Zs(e, t) {
4574
+ function Zi(e, t) {
4575
4575
  var n = ne(function() {
4576
4576
  return {
4577
4577
  // value
@@ -4592,31 +4592,31 @@ function Zs(e, t) {
4592
4592
  })[0];
4593
4593
  return n.callback = t, n.facade;
4594
4594
  }
4595
- var Xs = typeof window < "u" ? h.useLayoutEffect : h.useEffect, $n = /* @__PURE__ */ new WeakMap();
4596
- function Qs(e, t) {
4597
- var n = Zs(null, function(r) {
4595
+ var Xi = typeof window < "u" ? h.useLayoutEffect : h.useEffect, $n = /* @__PURE__ */ new WeakMap();
4596
+ function Qi(e, t) {
4597
+ var n = Zi(null, function(r) {
4598
4598
  return e.forEach(function(o) {
4599
4599
  return Dt(o, r);
4600
4600
  });
4601
4601
  });
4602
- return Xs(function() {
4602
+ return Xi(function() {
4603
4603
  var r = $n.get(n);
4604
4604
  if (r) {
4605
4605
  var o = new Set(r), a = new Set(e), l = n.current;
4606
- o.forEach(function(i) {
4607
- a.has(i) || Dt(i, null);
4608
- }), a.forEach(function(i) {
4609
- o.has(i) || Dt(i, l);
4606
+ o.forEach(function(s) {
4607
+ a.has(s) || Dt(s, null);
4608
+ }), a.forEach(function(s) {
4609
+ o.has(s) || Dt(s, l);
4610
4610
  });
4611
4611
  }
4612
4612
  $n.set(n, e);
4613
4613
  }, [e]), n;
4614
4614
  }
4615
- function Js(e) {
4615
+ function Ji(e) {
4616
4616
  return e;
4617
4617
  }
4618
- function ei(e, t) {
4619
- t === void 0 && (t = Js);
4618
+ function es(e, t) {
4619
+ t === void 0 && (t = Ji);
4620
4620
  var n = [], r = !1, o = {
4621
4621
  read: function() {
4622
4622
  if (r)
@@ -4626,8 +4626,8 @@ function ei(e, t) {
4626
4626
  useMedium: function(a) {
4627
4627
  var l = t(a, r);
4628
4628
  return n.push(l), function() {
4629
- n = n.filter(function(i) {
4630
- return i !== l;
4629
+ n = n.filter(function(s) {
4630
+ return s !== l;
4631
4631
  });
4632
4632
  };
4633
4633
  },
@@ -4637,8 +4637,8 @@ function ei(e, t) {
4637
4637
  n = [], l.forEach(a);
4638
4638
  }
4639
4639
  n = {
4640
- push: function(i) {
4641
- return a(i);
4640
+ push: function(s) {
4641
+ return a(s);
4642
4642
  },
4643
4643
  filter: function() {
4644
4644
  return n;
@@ -4649,8 +4649,8 @@ function ei(e, t) {
4649
4649
  r = !0;
4650
4650
  var l = [];
4651
4651
  if (n.length) {
4652
- var i = n;
4653
- n = [], i.forEach(a), l = n;
4652
+ var s = n;
4653
+ n = [], s.forEach(a), l = n;
4654
4654
  }
4655
4655
  var c = function() {
4656
4656
  var u = l;
@@ -4670,9 +4670,9 @@ function ei(e, t) {
4670
4670
  };
4671
4671
  return o;
4672
4672
  }
4673
- function ti(e) {
4673
+ function ts(e) {
4674
4674
  e === void 0 && (e = {});
4675
- var t = ei(null);
4675
+ var t = es(null);
4676
4676
  return t.options = pe({ async: !0, ssr: !1 }, e), t;
4677
4677
  }
4678
4678
  var Ir = function(e) {
@@ -4685,21 +4685,21 @@ var Ir = function(e) {
4685
4685
  return h.createElement(r, pe({}, n));
4686
4686
  };
4687
4687
  Ir.isSideCarExport = !0;
4688
- function ni(e, t) {
4688
+ function ns(e, t) {
4689
4689
  return e.useMedium(t), Ir;
4690
4690
  }
4691
- var Dr = ti(), $t = function() {
4691
+ var Dr = ts(), $t = function() {
4692
4692
  }, Nt = h.forwardRef(function(e, t) {
4693
4693
  var n = h.useRef(null), r = h.useState({
4694
4694
  onScrollCapture: $t,
4695
4695
  onWheelCapture: $t,
4696
4696
  onTouchMoveCapture: $t
4697
- }), o = r[0], a = r[1], l = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, f = e.shards, g = e.sideCar, w = e.noRelative, b = e.noIsolation, m = e.inert, y = e.allowPinchZoom, v = e.as, k = v === void 0 ? "div" : v, S = e.gapMode, x = Or(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = g, $ = Qs([n, t]), N = pe(pe({}, x), o);
4697
+ }), o = r[0], a = r[1], l = e.forwardProps, s = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, f = e.shards, g = e.sideCar, w = e.noRelative, b = e.noIsolation, m = e.inert, y = e.allowPinchZoom, v = e.as, k = v === void 0 ? "div" : v, S = e.gapMode, x = Or(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = g, $ = Qi([n, t]), N = pe(pe({}, x), o);
4698
4698
  return h.createElement(
4699
4699
  h.Fragment,
4700
4700
  null,
4701
4701
  u && h.createElement(M, { sideCar: Dr, removeScrollBar: d, shards: f, noRelative: w, noIsolation: b, inert: m, setCallbacks: a, allowPinchZoom: !!y, lockRef: n, gapMode: S }),
4702
- l ? h.cloneElement(h.Children.only(i), pe(pe({}, N), { ref: $ })) : h.createElement(k, pe({}, N, { className: c, ref: $ }), i)
4702
+ l ? h.cloneElement(h.Children.only(s), pe(pe({}, N), { ref: $ })) : h.createElement(k, pe({}, N, { className: c, ref: $ }), s)
4703
4703
  );
4704
4704
  });
4705
4705
  Nt.defaultProps = {
@@ -4711,37 +4711,37 @@ Nt.classNames = {
4711
4711
  fullWidth: wt,
4712
4712
  zeroRight: vt
4713
4713
  };
4714
- var ri = function() {
4714
+ var rs = function() {
4715
4715
  if (typeof __webpack_nonce__ < "u")
4716
4716
  return __webpack_nonce__;
4717
4717
  };
4718
- function oi() {
4718
+ function os() {
4719
4719
  if (!document)
4720
4720
  return null;
4721
4721
  var e = document.createElement("style");
4722
4722
  e.type = "text/css";
4723
- var t = ri();
4723
+ var t = rs();
4724
4724
  return t && e.setAttribute("nonce", t), e;
4725
4725
  }
4726
- function ai(e, t) {
4726
+ function as(e, t) {
4727
4727
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
4728
4728
  }
4729
- function si(e) {
4729
+ function is(e) {
4730
4730
  var t = document.head || document.getElementsByTagName("head")[0];
4731
4731
  t.appendChild(e);
4732
4732
  }
4733
- var ii = function() {
4733
+ var ss = function() {
4734
4734
  var e = 0, t = null;
4735
4735
  return {
4736
4736
  add: function(n) {
4737
- e == 0 && (t = oi()) && (ai(t, n), si(t)), e++;
4737
+ e == 0 && (t = os()) && (as(t, n), is(t)), e++;
4738
4738
  },
4739
4739
  remove: function() {
4740
4740
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
4741
4741
  }
4742
4742
  };
4743
- }, li = function() {
4744
- var e = ii();
4743
+ }, ls = function() {
4744
+ var e = ss();
4745
4745
  return function(t, n) {
4746
4746
  h.useEffect(function() {
4747
4747
  return e.add(t), function() {
@@ -4750,37 +4750,37 @@ var ii = function() {
4750
4750
  }, [t && n]);
4751
4751
  };
4752
4752
  }, $r = function() {
4753
- var e = li(), t = function(n) {
4753
+ var e = ls(), t = function(n) {
4754
4754
  var r = n.styles, o = n.dynamic;
4755
4755
  return e(r, o), null;
4756
4756
  };
4757
4757
  return t;
4758
- }, ci = {
4758
+ }, cs = {
4759
4759
  left: 0,
4760
4760
  top: 0,
4761
4761
  right: 0,
4762
4762
  gap: 0
4763
4763
  }, Bt = function(e) {
4764
4764
  return parseInt(e || "", 10) || 0;
4765
- }, di = function(e) {
4765
+ }, ds = function(e) {
4766
4766
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
4767
4767
  return [Bt(n), Bt(r), Bt(o)];
4768
- }, ui = function(e) {
4768
+ }, us = function(e) {
4769
4769
  if (e === void 0 && (e = "margin"), typeof window > "u")
4770
- return ci;
4771
- var t = di(e), n = document.documentElement.clientWidth, r = window.innerWidth;
4770
+ return cs;
4771
+ var t = ds(e), n = document.documentElement.clientWidth, r = window.innerWidth;
4772
4772
  return {
4773
4773
  left: t[0],
4774
4774
  top: t[1],
4775
4775
  right: t[2],
4776
4776
  gap: Math.max(0, r - n + t[2] - t[0])
4777
4777
  };
4778
- }, fi = $r(), Ue = "data-scroll-locked", mi = function(e, t, n, r) {
4779
- var o = e.left, a = e.top, l = e.right, i = e.gap;
4778
+ }, fs = $r(), Ue = "data-scroll-locked", ms = function(e, t, n, r) {
4779
+ var o = e.left, a = e.top, l = e.right, s = e.gap;
4780
4780
  return n === void 0 && (n = "margin"), `
4781
- .`.concat(Ks, ` {
4781
+ .`.concat(Ki, ` {
4782
4782
  overflow: hidden `).concat(r, `;
4783
- padding-right: `).concat(i, "px ").concat(r, `;
4783
+ padding-right: `).concat(s, "px ").concat(r, `;
4784
4784
  }
4785
4785
  body[`).concat(Ue, `] {
4786
4786
  overflow: hidden `).concat(r, `;
@@ -4793,18 +4793,18 @@ var ii = function() {
4793
4793
  padding-right: `).concat(l, `px;
4794
4794
  margin-left:0;
4795
4795
  margin-top:0;
4796
- margin-right: `).concat(i, "px ").concat(r, `;
4796
+ margin-right: `).concat(s, "px ").concat(r, `;
4797
4797
  `),
4798
- n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
4798
+ n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
4799
4799
  ].filter(Boolean).join(""), `
4800
4800
  }
4801
4801
 
4802
4802
  .`).concat(vt, ` {
4803
- right: `).concat(i, "px ").concat(r, `;
4803
+ right: `).concat(s, "px ").concat(r, `;
4804
4804
  }
4805
4805
 
4806
4806
  .`).concat(wt, ` {
4807
- margin-right: `).concat(i, "px ").concat(r, `;
4807
+ margin-right: `).concat(s, "px ").concat(r, `;
4808
4808
  }
4809
4809
 
4810
4810
  .`).concat(vt, " .").concat(vt, ` {
@@ -4816,26 +4816,26 @@ var ii = function() {
4816
4816
  }
4817
4817
 
4818
4818
  body[`).concat(Ue, `] {
4819
- `).concat(Ys, ": ").concat(i, `px;
4819
+ `).concat(Yi, ": ").concat(s, `px;
4820
4820
  }
4821
4821
  `);
4822
4822
  }, Bn = function() {
4823
4823
  var e = parseInt(document.body.getAttribute(Ue) || "0", 10);
4824
4824
  return isFinite(e) ? e : 0;
4825
- }, pi = function() {
4825
+ }, ps = function() {
4826
4826
  h.useEffect(function() {
4827
4827
  return document.body.setAttribute(Ue, (Bn() + 1).toString()), function() {
4828
4828
  var e = Bn() - 1;
4829
4829
  e <= 0 ? document.body.removeAttribute(Ue) : document.body.setAttribute(Ue, e.toString());
4830
4830
  };
4831
4831
  }, []);
4832
- }, hi = function(e) {
4832
+ }, hs = function(e) {
4833
4833
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
4834
- pi();
4834
+ ps();
4835
4835
  var a = h.useMemo(function() {
4836
- return ui(o);
4836
+ return us(o);
4837
4837
  }, [o]);
4838
- return h.createElement(fi, { styles: mi(a, !t, o, n ? "" : "!important") });
4838
+ return h.createElement(fs, { styles: ms(a, !t, o, n ? "" : "!important") });
4839
4839
  }, Yt = !1;
4840
4840
  if (typeof window < "u")
4841
4841
  try {
@@ -4848,7 +4848,7 @@ if (typeof window < "u")
4848
4848
  } catch {
4849
4849
  Yt = !1;
4850
4850
  }
4851
- var Ve = Yt ? { passive: !1 } : !1, gi = function(e) {
4851
+ var Ve = Yt ? { passive: !1 } : !1, gs = function(e) {
4852
4852
  return e.tagName === "TEXTAREA";
4853
4853
  }, Br = function(e, t) {
4854
4854
  if (!(e instanceof Element))
@@ -4857,11 +4857,11 @@ var Ve = Yt ? { passive: !1 } : !1, gi = function(e) {
4857
4857
  return (
4858
4858
  // not-not-scrollable
4859
4859
  n[t] !== "hidden" && // contains scroll inside self
4860
- !(n.overflowY === n.overflowX && !gi(e) && n[t] === "visible")
4860
+ !(n.overflowY === n.overflowX && !gs(e) && n[t] === "visible")
4861
4861
  );
4862
- }, vi = function(e) {
4862
+ }, vs = function(e) {
4863
4863
  return Br(e, "overflowY");
4864
- }, wi = function(e) {
4864
+ }, ws = function(e) {
4865
4865
  return Br(e, "overflowX");
4866
4866
  }, Fn = function(e, t) {
4867
4867
  var n = t.ownerDocument, r = t;
@@ -4869,21 +4869,21 @@ var Ve = Yt ? { passive: !1 } : !1, gi = function(e) {
4869
4869
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
4870
4870
  var o = Fr(e, r);
4871
4871
  if (o) {
4872
- var a = zr(e, r), l = a[1], i = a[2];
4873
- if (l > i)
4872
+ var a = zr(e, r), l = a[1], s = a[2];
4873
+ if (l > s)
4874
4874
  return !0;
4875
4875
  }
4876
4876
  r = r.parentNode;
4877
4877
  } while (r && r !== n.body);
4878
4878
  return !1;
4879
- }, bi = function(e) {
4879
+ }, bs = function(e) {
4880
4880
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
4881
4881
  return [
4882
4882
  t,
4883
4883
  n,
4884
4884
  r
4885
4885
  ];
4886
- }, xi = function(e) {
4886
+ }, xs = function(e) {
4887
4887
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
4888
4888
  return [
4889
4889
  t,
@@ -4891,24 +4891,24 @@ var Ve = Yt ? { passive: !1 } : !1, gi = function(e) {
4891
4891
  r
4892
4892
  ];
4893
4893
  }, Fr = function(e, t) {
4894
- return e === "v" ? vi(t) : wi(t);
4894
+ return e === "v" ? vs(t) : ws(t);
4895
4895
  }, zr = function(e, t) {
4896
- return e === "v" ? bi(t) : xi(t);
4897
- }, yi = function(e, t) {
4896
+ return e === "v" ? bs(t) : xs(t);
4897
+ }, ys = function(e, t) {
4898
4898
  return e === "h" && t === "rtl" ? -1 : 1;
4899
- }, Ci = function(e, t, n, r, o) {
4900
- var a = yi(e, window.getComputedStyle(t).direction), l = a * r, i = n.target, c = t.contains(i), d = !1, u = l > 0, f = 0, g = 0;
4899
+ }, Cs = function(e, t, n, r, o) {
4900
+ var a = ys(e, window.getComputedStyle(t).direction), l = a * r, s = n.target, c = t.contains(s), d = !1, u = l > 0, f = 0, g = 0;
4901
4901
  do {
4902
- if (!i)
4902
+ if (!s)
4903
4903
  break;
4904
- var w = zr(e, i), b = w[0], m = w[1], y = w[2], v = m - y - a * b;
4905
- (b || v) && Fr(e, i) && (f += v, g += b);
4906
- var k = i.parentNode;
4907
- i = k && k.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? k.host : k;
4904
+ var w = zr(e, s), b = w[0], m = w[1], y = w[2], v = m - y - a * b;
4905
+ (b || v) && Fr(e, s) && (f += v, g += b);
4906
+ var k = s.parentNode;
4907
+ s = k && k.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? k.host : k;
4908
4908
  } while (
4909
4909
  // portaled content
4910
- !c && i !== document.body || // self content
4911
- c && (t.contains(i) || t === i)
4910
+ !c && s !== document.body || // self content
4911
+ c && (t.contains(s) || t === s)
4912
4912
  );
4913
4913
  return (u && Math.abs(f) < 1 || !u && Math.abs(g) < 1) && (d = !0), d;
4914
4914
  }, ft = function(e) {
@@ -4917,22 +4917,22 @@ var Ve = Yt ? { passive: !1 } : !1, gi = function(e) {
4917
4917
  return [e.deltaX, e.deltaY];
4918
4918
  }, Vn = function(e) {
4919
4919
  return e && "current" in e ? e.current : e;
4920
- }, ki = function(e, t) {
4920
+ }, ks = function(e, t) {
4921
4921
  return e[0] === t[0] && e[1] === t[1];
4922
- }, Ni = function(e) {
4922
+ }, Ns = function(e) {
4923
4923
  return `
4924
4924
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
4925
4925
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
4926
4926
  `);
4927
- }, Si = 0, We = [];
4928
- function Ei(e) {
4929
- var t = h.useRef([]), n = h.useRef([0, 0]), r = h.useRef(), o = h.useState(Si++)[0], a = h.useState($r)[0], l = h.useRef(e);
4927
+ }, Ss = 0, We = [];
4928
+ function Es(e) {
4929
+ var t = h.useRef([]), n = h.useRef([0, 0]), r = h.useRef(), o = h.useState(Ss++)[0], a = h.useState($r)[0], l = h.useRef(e);
4930
4930
  h.useEffect(function() {
4931
4931
  l.current = e;
4932
4932
  }, [e]), h.useEffect(function() {
4933
4933
  if (e.inert) {
4934
4934
  document.body.classList.add("block-interactivity-".concat(o));
4935
- var m = Gs([e.lockRef.current], (e.shards || []).map(Vn), !0).filter(Boolean);
4935
+ var m = Gi([e.lockRef.current], (e.shards || []).map(Vn), !0).filter(Boolean);
4936
4936
  return m.forEach(function(y) {
4937
4937
  return y.classList.add("allow-interactivity-".concat(o));
4938
4938
  }), function() {
@@ -4942,7 +4942,7 @@ function Ei(e) {
4942
4942
  };
4943
4943
  }
4944
4944
  }, [e.inert, e.lockRef.current, e.shards]);
4945
- var i = h.useCallback(function(m, y) {
4945
+ var s = h.useCallback(function(m, y) {
4946
4946
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
4947
4947
  return !l.current.allowPinchZoom;
4948
4948
  var v = ft(m), k = n.current, S = "deltaX" in m ? m.deltaX : k[0] - v[0], x = "deltaY" in m ? m.deltaY : k[1] - v[1], M, $ = m.target, N = Math.abs(S) > Math.abs(x) ? "h" : "v";
@@ -4959,12 +4959,12 @@ function Ei(e) {
4959
4959
  if (!r.current && "changedTouches" in m && (S || x) && (r.current = M), !M)
4960
4960
  return !0;
4961
4961
  var B = r.current || M;
4962
- return Ci(B, y, m, B === "h" ? S : x);
4962
+ return Cs(B, y, m, B === "h" ? S : x);
4963
4963
  }, []), c = h.useCallback(function(m) {
4964
4964
  var y = m;
4965
4965
  if (!(!We.length || We[We.length - 1] !== a)) {
4966
4966
  var v = "deltaY" in y ? zn(y) : ft(y), k = t.current.filter(function(M) {
4967
- return M.name === y.type && (M.target === y.target || y.target === M.shadowParent) && ki(M.delta, v);
4967
+ return M.name === y.type && (M.target === y.target || y.target === M.shadowParent) && ks(M.delta, v);
4968
4968
  })[0];
4969
4969
  if (k && k.should) {
4970
4970
  y.cancelable && y.preventDefault();
@@ -4973,12 +4973,12 @@ function Ei(e) {
4973
4973
  if (!k) {
4974
4974
  var S = (l.current.shards || []).map(Vn).filter(Boolean).filter(function(M) {
4975
4975
  return M.contains(y.target);
4976
- }), x = S.length > 0 ? i(y, S[0]) : !l.current.noIsolation;
4976
+ }), x = S.length > 0 ? s(y, S[0]) : !l.current.noIsolation;
4977
4977
  x && y.cancelable && y.preventDefault();
4978
4978
  }
4979
4979
  }
4980
4980
  }, []), d = h.useCallback(function(m, y, v, k) {
4981
- var S = { name: m, delta: y, target: v, should: k, shadowParent: Ti(v) };
4981
+ var S = { name: m, delta: y, target: v, should: k, shadowParent: Ts(v) };
4982
4982
  t.current.push(S), setTimeout(function() {
4983
4983
  t.current = t.current.filter(function(x) {
4984
4984
  return x !== S;
@@ -4987,9 +4987,9 @@ function Ei(e) {
4987
4987
  }, []), u = h.useCallback(function(m) {
4988
4988
  n.current = ft(m), r.current = void 0;
4989
4989
  }, []), f = h.useCallback(function(m) {
4990
- d(m.type, zn(m), m.target, i(m, e.lockRef.current));
4990
+ d(m.type, zn(m), m.target, s(m, e.lockRef.current));
4991
4991
  }, []), g = h.useCallback(function(m) {
4992
- d(m.type, ft(m), m.target, i(m, e.lockRef.current));
4992
+ d(m.type, ft(m), m.target, s(m, e.lockRef.current));
4993
4993
  }, []);
4994
4994
  h.useEffect(function() {
4995
4995
  return We.push(a), e.setCallbacks({
@@ -5006,28 +5006,28 @@ function Ei(e) {
5006
5006
  return h.createElement(
5007
5007
  h.Fragment,
5008
5008
  null,
5009
- b ? h.createElement(a, { styles: Ni(o) }) : null,
5010
- w ? h.createElement(hi, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
5009
+ b ? h.createElement(a, { styles: Ns(o) }) : null,
5010
+ w ? h.createElement(hs, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
5011
5011
  );
5012
5012
  }
5013
- function Ti(e) {
5013
+ function Ts(e) {
5014
5014
  for (var t = null; e !== null; )
5015
5015
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
5016
5016
  return t;
5017
5017
  }
5018
- const _i = ni(Dr, Ei);
5018
+ const _s = ns(Dr, Es);
5019
5019
  var Vr = h.forwardRef(function(e, t) {
5020
- return h.createElement(Nt, pe({}, e, { ref: t, sideCar: _i }));
5020
+ return h.createElement(Nt, pe({}, e, { ref: t, sideCar: _s }));
5021
5021
  });
5022
5022
  Vr.classNames = Nt.classNames;
5023
- var Ri = function(e) {
5023
+ var Rs = function(e) {
5024
5024
  if (typeof document > "u")
5025
5025
  return null;
5026
5026
  var t = Array.isArray(e) ? e[0] : e;
5027
5027
  return t.ownerDocument.body;
5028
5028
  }, je = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), pt = {}, Ft = 0, Wr = function(e) {
5029
5029
  return e && (e.host || Wr(e.parentNode));
5030
- }, Ai = function(e, t) {
5030
+ }, As = function(e, t) {
5031
5031
  return t.map(function(n) {
5032
5032
  if (e.contains(n))
5033
5033
  return n;
@@ -5036,16 +5036,16 @@ var Ri = function(e) {
5036
5036
  }).filter(function(n) {
5037
5037
  return !!n;
5038
5038
  });
5039
- }, Mi = function(e, t, n, r) {
5040
- var o = Ai(t, Array.isArray(e) ? e : [e]);
5039
+ }, Ms = function(e, t, n, r) {
5040
+ var o = As(t, Array.isArray(e) ? e : [e]);
5041
5041
  pt[n] || (pt[n] = /* @__PURE__ */ new WeakMap());
5042
- var a = pt[n], l = [], i = /* @__PURE__ */ new Set(), c = new Set(o), d = function(f) {
5043
- !f || i.has(f) || (i.add(f), d(f.parentNode));
5042
+ var a = pt[n], l = [], s = /* @__PURE__ */ new Set(), c = new Set(o), d = function(f) {
5043
+ !f || s.has(f) || (s.add(f), d(f.parentNode));
5044
5044
  };
5045
5045
  o.forEach(d);
5046
5046
  var u = function(f) {
5047
5047
  !f || c.has(f) || Array.prototype.forEach.call(f.children, function(g) {
5048
- if (i.has(g))
5048
+ if (s.has(g))
5049
5049
  u(g);
5050
5050
  else
5051
5051
  try {
@@ -5056,19 +5056,19 @@ var Ri = function(e) {
5056
5056
  }
5057
5057
  });
5058
5058
  };
5059
- return u(t), i.clear(), Ft++, function() {
5059
+ return u(t), s.clear(), Ft++, function() {
5060
5060
  l.forEach(function(f) {
5061
5061
  var g = je.get(f) - 1, w = a.get(f) - 1;
5062
5062
  je.set(f, g), a.set(f, w), g || (mt.has(f) || f.removeAttribute(r), mt.delete(f)), w || f.removeAttribute(n);
5063
5063
  }), Ft--, Ft || (je = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), pt = {});
5064
5064
  };
5065
- }, Li = function(e, t, n) {
5065
+ }, Ls = function(e, t, n) {
5066
5066
  n === void 0 && (n = "data-aria-hidden");
5067
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Ri(e);
5068
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Mi(r, o, n, "aria-hidden")) : function() {
5067
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Rs(e);
5068
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Ms(r, o, n, "aria-hidden")) : function() {
5069
5069
  return null;
5070
5070
  };
5071
- }, St = "Dialog", [jr] = fs(St), [Pi, de] = jr(St), Hr = (e) => {
5071
+ }, St = "Dialog", [jr] = fi(St), [Ps, de] = jr(St), Hr = (e) => {
5072
5072
  const {
5073
5073
  __scopeDialog: t,
5074
5074
  children: n,
@@ -5076,17 +5076,17 @@ var Ri = function(e) {
5076
5076
  defaultOpen: o,
5077
5077
  onOpenChange: a,
5078
5078
  modal: l = !0
5079
- } = e, i = h.useRef(null), c = h.useRef(null), [d, u] = vs({
5079
+ } = e, s = h.useRef(null), c = h.useRef(null), [d, u] = vi({
5080
5080
  prop: r,
5081
5081
  defaultProp: o ?? !1,
5082
5082
  onChange: a,
5083
5083
  caller: St
5084
5084
  });
5085
- return /* @__PURE__ */ s(
5086
- Pi,
5085
+ return /* @__PURE__ */ i(
5086
+ Ps,
5087
5087
  {
5088
5088
  scope: t,
5089
- triggerRef: i,
5089
+ triggerRef: s,
5090
5090
  contentRef: c,
5091
5091
  contentId: Lt(),
5092
5092
  titleId: Lt(),
@@ -5100,10 +5100,10 @@ var Ri = function(e) {
5100
5100
  );
5101
5101
  };
5102
5102
  Hr.displayName = St;
5103
- var Ur = "DialogTrigger", Oi = h.forwardRef(
5103
+ var Ur = "DialogTrigger", Os = h.forwardRef(
5104
5104
  (e, t) => {
5105
5105
  const { __scopeDialog: n, ...r } = e, o = de(Ur, n), a = Be(t, o.triggerRef);
5106
- return /* @__PURE__ */ s(
5106
+ return /* @__PURE__ */ i(
5107
5107
  we.button,
5108
5108
  {
5109
5109
  type: "button",
@@ -5118,28 +5118,28 @@ var Ur = "DialogTrigger", Oi = h.forwardRef(
5118
5118
  );
5119
5119
  }
5120
5120
  );
5121
- Oi.displayName = Ur;
5122
- var an = "DialogPortal", [Ii, qr] = jr(an, {
5121
+ Os.displayName = Ur;
5122
+ var an = "DialogPortal", [Is, qr] = jr(an, {
5123
5123
  forceMount: void 0
5124
5124
  }), Gr = (e) => {
5125
5125
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = de(an, t);
5126
- return /* @__PURE__ */ s(Ii, { scope: t, forceMount: n, children: h.Children.map(r, (l) => /* @__PURE__ */ s(kt, { present: n || a.open, children: /* @__PURE__ */ s(Pr, { asChild: !0, container: o, children: l }) })) });
5126
+ return /* @__PURE__ */ i(Is, { scope: t, forceMount: n, children: h.Children.map(r, (l) => /* @__PURE__ */ i(kt, { present: n || a.open, children: /* @__PURE__ */ i(Pr, { asChild: !0, container: o, children: l }) })) });
5127
5127
  };
5128
5128
  Gr.displayName = an;
5129
5129
  var xt = "DialogOverlay", Kr = h.forwardRef(
5130
5130
  (e, t) => {
5131
5131
  const n = qr(xt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = de(xt, e.__scopeDialog);
5132
- return a.modal ? /* @__PURE__ */ s(kt, { present: r || a.open, children: /* @__PURE__ */ s($i, { ...o, ref: t }) }) : null;
5132
+ return a.modal ? /* @__PURE__ */ i(kt, { present: r || a.open, children: /* @__PURE__ */ i($s, { ...o, ref: t }) }) : null;
5133
5133
  }
5134
5134
  );
5135
5135
  Kr.displayName = xt;
5136
- var Di = /* @__PURE__ */ Tr("DialogOverlay.RemoveScroll"), $i = h.forwardRef(
5136
+ var Ds = /* @__PURE__ */ Tr("DialogOverlay.RemoveScroll"), $s = h.forwardRef(
5137
5137
  (e, t) => {
5138
5138
  const { __scopeDialog: n, ...r } = e, o = de(xt, n);
5139
5139
  return (
5140
5140
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
5141
5141
  // ie. when `Overlay` and `Content` are siblings
5142
- /* @__PURE__ */ s(Vr, { as: Di, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
5142
+ /* @__PURE__ */ i(Vr, { as: Ds, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
5143
5143
  we.div,
5144
5144
  {
5145
5145
  "data-state": ln(o.open),
@@ -5153,17 +5153,17 @@ var Di = /* @__PURE__ */ Tr("DialogOverlay.RemoveScroll"), $i = h.forwardRef(
5153
5153
  ), De = "DialogContent", Yr = h.forwardRef(
5154
5154
  (e, t) => {
5155
5155
  const n = qr(De, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = de(De, e.__scopeDialog);
5156
- return /* @__PURE__ */ s(kt, { present: r || a.open, children: a.modal ? /* @__PURE__ */ s(Bi, { ...o, ref: t }) : /* @__PURE__ */ s(Fi, { ...o, ref: t }) });
5156
+ return /* @__PURE__ */ i(kt, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(Bs, { ...o, ref: t }) : /* @__PURE__ */ i(Fs, { ...o, ref: t }) });
5157
5157
  }
5158
5158
  );
5159
5159
  Yr.displayName = De;
5160
- var Bi = h.forwardRef(
5160
+ var Bs = h.forwardRef(
5161
5161
  (e, t) => {
5162
5162
  const n = de(De, e.__scopeDialog), r = h.useRef(null), o = Be(t, n.contentRef, r);
5163
5163
  return h.useEffect(() => {
5164
5164
  const a = r.current;
5165
- if (a) return Li(a);
5166
- }, []), /* @__PURE__ */ s(
5165
+ if (a) return Ls(a);
5166
+ }, []), /* @__PURE__ */ i(
5167
5167
  Zr,
5168
5168
  {
5169
5169
  ...e,
@@ -5174,8 +5174,8 @@ var Bi = h.forwardRef(
5174
5174
  a.preventDefault(), n.triggerRef.current?.focus();
5175
5175
  }),
5176
5176
  onPointerDownOutside: Te(e.onPointerDownOutside, (a) => {
5177
- const l = a.detail.originalEvent, i = l.button === 0 && l.ctrlKey === !0;
5178
- (l.button === 2 || i) && a.preventDefault();
5177
+ const l = a.detail.originalEvent, s = l.button === 0 && l.ctrlKey === !0;
5178
+ (l.button === 2 || s) && a.preventDefault();
5179
5179
  }),
5180
5180
  onFocusOutside: Te(
5181
5181
  e.onFocusOutside,
@@ -5184,10 +5184,10 @@ var Bi = h.forwardRef(
5184
5184
  }
5185
5185
  );
5186
5186
  }
5187
- ), Fi = h.forwardRef(
5187
+ ), Fs = h.forwardRef(
5188
5188
  (e, t) => {
5189
5189
  const n = de(De, e.__scopeDialog), r = h.useRef(!1), o = h.useRef(!1);
5190
- return /* @__PURE__ */ s(
5190
+ return /* @__PURE__ */ i(
5191
5191
  Zr,
5192
5192
  {
5193
5193
  ...e,
@@ -5207,9 +5207,9 @@ var Bi = h.forwardRef(
5207
5207
  }
5208
5208
  ), Zr = h.forwardRef(
5209
5209
  (e, t) => {
5210
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...l } = e, i = de(De, n), c = h.useRef(null), d = Be(t, c);
5211
- return qs(), /* @__PURE__ */ p(Ee, { children: [
5212
- /* @__PURE__ */ s(
5210
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...l } = e, s = de(De, n), c = h.useRef(null), d = Be(t, c);
5211
+ return qi(), /* @__PURE__ */ p(Ee, { children: [
5212
+ /* @__PURE__ */ i(
5213
5213
  Mr,
5214
5214
  {
5215
5215
  asChild: !0,
@@ -5217,45 +5217,45 @@ var Bi = h.forwardRef(
5217
5217
  trapped: r,
5218
5218
  onMountAutoFocus: o,
5219
5219
  onUnmountAutoFocus: a,
5220
- children: /* @__PURE__ */ s(
5220
+ children: /* @__PURE__ */ i(
5221
5221
  Rr,
5222
5222
  {
5223
5223
  role: "dialog",
5224
- id: i.contentId,
5225
- "aria-describedby": i.descriptionId,
5226
- "aria-labelledby": i.titleId,
5227
- "data-state": ln(i.open),
5224
+ id: s.contentId,
5225
+ "aria-describedby": s.descriptionId,
5226
+ "aria-labelledby": s.titleId,
5227
+ "data-state": ln(s.open),
5228
5228
  ...l,
5229
5229
  ref: d,
5230
- onDismiss: () => i.onOpenChange(!1)
5230
+ onDismiss: () => s.onOpenChange(!1)
5231
5231
  }
5232
5232
  )
5233
5233
  }
5234
5234
  ),
5235
5235
  /* @__PURE__ */ p(Ee, { children: [
5236
- /* @__PURE__ */ s(zi, { titleId: i.titleId }),
5237
- /* @__PURE__ */ s(Wi, { contentRef: c, descriptionId: i.descriptionId })
5236
+ /* @__PURE__ */ i(zs, { titleId: s.titleId }),
5237
+ /* @__PURE__ */ i(Ws, { contentRef: c, descriptionId: s.descriptionId })
5238
5238
  ] })
5239
5239
  ] });
5240
5240
  }
5241
5241
  ), sn = "DialogTitle", Xr = h.forwardRef(
5242
5242
  (e, t) => {
5243
5243
  const { __scopeDialog: n, ...r } = e, o = de(sn, n);
5244
- return /* @__PURE__ */ s(we.h2, { id: o.titleId, ...r, ref: t });
5244
+ return /* @__PURE__ */ i(we.h2, { id: o.titleId, ...r, ref: t });
5245
5245
  }
5246
5246
  );
5247
5247
  Xr.displayName = sn;
5248
5248
  var Qr = "DialogDescription", Jr = h.forwardRef(
5249
5249
  (e, t) => {
5250
5250
  const { __scopeDialog: n, ...r } = e, o = de(Qr, n);
5251
- return /* @__PURE__ */ s(we.p, { id: o.descriptionId, ...r, ref: t });
5251
+ return /* @__PURE__ */ i(we.p, { id: o.descriptionId, ...r, ref: t });
5252
5252
  }
5253
5253
  );
5254
5254
  Jr.displayName = Qr;
5255
5255
  var eo = "DialogClose", to = h.forwardRef(
5256
5256
  (e, t) => {
5257
5257
  const { __scopeDialog: n, ...r } = e, o = de(eo, n);
5258
- return /* @__PURE__ */ s(
5258
+ return /* @__PURE__ */ i(
5259
5259
  we.button,
5260
5260
  {
5261
5261
  type: "button",
@@ -5270,11 +5270,11 @@ to.displayName = eo;
5270
5270
  function ln(e) {
5271
5271
  return e ? "open" : "closed";
5272
5272
  }
5273
- var no = "DialogTitleWarning", [sd, ro] = us(no, {
5273
+ var no = "DialogTitleWarning", [id, ro] = ui(no, {
5274
5274
  contentName: De,
5275
5275
  titleName: sn,
5276
5276
  docsSlug: "dialog"
5277
- }), zi = ({ titleId: e }) => {
5277
+ }), zs = ({ titleId: e }) => {
5278
5278
  const t = ro(no), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
5279
5279
 
5280
5280
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -5283,14 +5283,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
5283
5283
  return h.useEffect(() => {
5284
5284
  e && (document.getElementById(e) || console.error(n));
5285
5285
  }, [n, e]), null;
5286
- }, Vi = "DialogDescriptionWarning", Wi = ({ contentRef: e, descriptionId: t }) => {
5287
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ro(Vi).contentName}}.`;
5286
+ }, Vs = "DialogDescriptionWarning", Ws = ({ contentRef: e, descriptionId: t }) => {
5287
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ro(Vs).contentName}}.`;
5288
5288
  return h.useEffect(() => {
5289
5289
  const o = e.current?.getAttribute("aria-describedby");
5290
5290
  t && o && (document.getElementById(t) || console.warn(r));
5291
5291
  }, [r, e, t]), null;
5292
- }, ji = Hr, Hi = Gr, Ui = Kr, qi = Yr, Gi = Xr, Ki = Jr, Yi = to;
5293
- function Zi(e) {
5292
+ }, js = Hr, Hs = Gr, Us = Kr, qs = Yr, Gs = Xr, Ks = Jr, Ys = to;
5293
+ function Zs(e) {
5294
5294
  if (typeof document > "u") return;
5295
5295
  let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
5296
5296
  n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
@@ -5348,18 +5348,18 @@ const oo = T.createContext({
5348
5348
  throw new Error("useDrawerContext must be used within a Drawer.Root");
5349
5349
  return e;
5350
5350
  };
5351
- Zi(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
5351
+ Zs(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
5352
5352
  [data-state=closed]
5353
5353
  ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
5354
- function Xi() {
5354
+ function Xs() {
5355
5355
  const e = navigator.userAgent;
5356
5356
  return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
5357
5357
  /FxiOS/.test(e));
5358
5358
  }
5359
- function Qi() {
5359
+ function Qs() {
5360
5360
  return cn(/^Mac/);
5361
5361
  }
5362
- function Ji() {
5362
+ function Js() {
5363
5363
  return cn(/^iPhone/);
5364
5364
  }
5365
5365
  function Wn() {
@@ -5367,10 +5367,10 @@ function Wn() {
5367
5367
  }
5368
5368
  function el() {
5369
5369
  return cn(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
5370
- Qi() && navigator.maxTouchPoints > 1;
5370
+ Qs() && navigator.maxTouchPoints > 1;
5371
5371
  }
5372
5372
  function ao() {
5373
- return Ji() || el();
5373
+ return Js() || el();
5374
5374
  }
5375
5375
  function cn(e) {
5376
5376
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
@@ -5387,7 +5387,7 @@ function Hn(e) {
5387
5387
  let t = window.getComputedStyle(e);
5388
5388
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
5389
5389
  }
5390
- function so(e) {
5390
+ function io(e) {
5391
5391
  for (Hn(e) && (e = e.parentElement); e && !Hn(e); )
5392
5392
  e = e.parentElement;
5393
5393
  return e || document.scrollingElement || document.documentElement;
@@ -5417,7 +5417,7 @@ function ol(e = {}) {
5417
5417
  }
5418
5418
  function al() {
5419
5419
  let e, t = 0, n = (f) => {
5420
- e = so(f.target), !(e === document.documentElement && e === document.body) && (t = f.changedTouches[0].pageY);
5420
+ e = io(f.target), !(e === document.documentElement && e === document.body) && (t = f.changedTouches[0].pageY);
5421
5421
  }, r = (f) => {
5422
5422
  if (!e || e === document.documentElement || e === document.body) {
5423
5423
  f.preventDefault();
@@ -5441,7 +5441,7 @@ function al() {
5441
5441
  }));
5442
5442
  }, l = () => {
5443
5443
  window.scrollTo(0, 0);
5444
- }, i = window.pageXOffset, c = window.pageYOffset, d = jn(sl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
5444
+ }, s = window.pageXOffset, c = window.pageYOffset, d = jn(il(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
5445
5445
  window.scrollTo(0, 0);
5446
5446
  let u = jn(Je(document, "touchstart", n, {
5447
5447
  passive: !1,
@@ -5454,10 +5454,10 @@ function al() {
5454
5454
  capture: !0
5455
5455
  }), Je(document, "focus", a, !0), Je(window, "scroll", l));
5456
5456
  return () => {
5457
- d(), u(), window.scrollTo(i, c);
5457
+ d(), u(), window.scrollTo(s, c);
5458
5458
  };
5459
5459
  }
5460
- function sl(e, t, n) {
5460
+ function il(e, t, n) {
5461
5461
  let r = e.style[t];
5462
5462
  return e.style[t] = n, () => {
5463
5463
  e.style[t] = r;
@@ -5471,7 +5471,7 @@ function Je(e, t, n, r) {
5471
5471
  function Un(e) {
5472
5472
  let t = document.scrollingElement || document.documentElement;
5473
5473
  for (; e && e !== t; ) {
5474
- let n = so(e);
5474
+ let n = io(e);
5475
5475
  if (n !== document.documentElement && n !== document.body && n !== e) {
5476
5476
  let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, a = e.getBoundingClientRect().bottom;
5477
5477
  const l = n.getBoundingClientRect().bottom + tl;
@@ -5483,13 +5483,13 @@ function Un(e) {
5483
5483
  function Zt(e) {
5484
5484
  return e instanceof HTMLInputElement && !rl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
5485
5485
  }
5486
- function il(e, t) {
5486
+ function sl(e, t) {
5487
5487
  typeof e == "function" ? e(t) : e != null && (e.current = t);
5488
5488
  }
5489
5489
  function ll(...e) {
5490
- return (t) => e.forEach((n) => il(n, t));
5490
+ return (t) => e.forEach((n) => sl(n, t));
5491
5491
  }
5492
- function io(...e) {
5492
+ function so(...e) {
5493
5493
  return h.useCallback(ll(...e), e);
5494
5494
  }
5495
5495
  const lo = /* @__PURE__ */ new WeakMap();
@@ -5578,24 +5578,24 @@ function mo({ prop: e, defaultProp: t, onChange: n = () => {
5578
5578
  const [r, o] = pl({
5579
5579
  defaultProp: t,
5580
5580
  onChange: n
5581
- }), a = e !== void 0, l = a ? e : r, i = fo(n), c = T.useCallback((d) => {
5581
+ }), a = e !== void 0, l = a ? e : r, s = fo(n), c = T.useCallback((d) => {
5582
5582
  if (a) {
5583
5583
  const f = typeof d == "function" ? d(e) : d;
5584
- f !== e && i(f);
5584
+ f !== e && s(f);
5585
5585
  } else
5586
5586
  o(d);
5587
5587
  }, [
5588
5588
  a,
5589
5589
  e,
5590
5590
  o,
5591
- i
5591
+ s
5592
5592
  ]);
5593
5593
  return [
5594
5594
  l,
5595
5595
  c
5596
5596
  ];
5597
5597
  }
5598
- function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: a, onSnapPointChange: l, direction: i = "bottom", container: c, snapToSequentialPoint: d }) {
5598
+ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: a, onSnapPointChange: l, direction: s = "bottom", container: c, snapToSequentialPoint: d }) {
5599
5599
  const [u, f] = mo({
5600
5600
  prop: e,
5601
5601
  defaultProp: n?.[0],
@@ -5637,12 +5637,12 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
5637
5637
  return (C = n?.map((L) => {
5638
5638
  const j = typeof L == "string";
5639
5639
  let O = 0;
5640
- if (j && (O = parseInt(L, 10)), te(i)) {
5640
+ if (j && (O = parseInt(L, 10)), te(s)) {
5641
5641
  const A = j ? O : g ? L * N.height : 0;
5642
- return g ? i === "bottom" ? N.height - A : -N.height + A : A;
5642
+ return g ? s === "bottom" ? N.height - A : -N.height + A : A;
5643
5643
  }
5644
5644
  const B = j ? O : g ? L * N.width : 0;
5645
- return g ? i === "right" ? N.width - B : -N.width + B : B;
5645
+ return g ? s === "right" ? N.width - B : -N.width + B : B;
5646
5646
  })) != null ? C : [];
5647
5647
  }, [
5648
5648
  n,
@@ -5656,7 +5656,7 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
5656
5656
  const L = (C = v?.findIndex((j) => j === N)) != null ? C : null;
5657
5657
  l(L), oe(r.current, {
5658
5658
  transition: `transform ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`,
5659
- transform: te(i) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
5659
+ transform: te(s) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
5660
5660
  }), v && L !== v.length - 1 && a !== void 0 && L !== a && L < a ? oe(o.current, {
5661
5661
  transition: `opacity ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`,
5662
5662
  opacity: "0"
@@ -5687,7 +5687,7 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
5687
5687
  ]);
5688
5688
  function x({ draggedDistance: N, closeDrawer: C, velocity: L, dismissible: j }) {
5689
5689
  if (a === void 0) return;
5690
- const O = i === "bottom" || i === "right" ? (k ?? 0) - N : (k ?? 0) + N, B = m === a - 1, A = m === 0, H = N > 0;
5690
+ const O = s === "bottom" || s === "right" ? (k ?? 0) - N : (k ?? 0) + N, B = m === a - 1, A = m === 0, H = N > 0;
5691
5691
  if (B && oe(o.current, {
5692
5692
  transition: `opacity ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`
5693
5693
  }), !d && L > 2 && !H) {
@@ -5698,7 +5698,7 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
5698
5698
  S(v[n.length - 1]);
5699
5699
  return;
5700
5700
  }
5701
- const U = v?.reduce((q, E) => typeof q != "number" || typeof E != "number" ? q : Math.abs(E - O) < Math.abs(q - O) ? E : q), Y = te(i) ? window.innerHeight : window.innerWidth;
5701
+ const U = v?.reduce((q, E) => typeof q != "number" || typeof E != "number" ? q : Math.abs(E - O) < Math.abs(q - O) ? E : q), Y = te(s) ? window.innerHeight : window.innerWidth;
5702
5702
  if (L > co && Math.abs(N) < Y * 0.4) {
5703
5703
  const q = H ? 1 : -1;
5704
5704
  if (q > 0 && b && n) {
@@ -5713,9 +5713,9 @@ function hl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
5713
5713
  }
5714
5714
  function M({ draggedDistance: N }) {
5715
5715
  if (k === null) return;
5716
- const C = i === "bottom" || i === "right" ? k - N : k + N;
5717
- (i === "bottom" || i === "right") && C < v[v.length - 1] || (i === "top" || i === "left") && C > v[v.length - 1] || oe(r.current, {
5718
- transform: te(i) ? `translate3d(0, ${C}px, 0)` : `translate3d(${C}px, 0, 0)`
5716
+ const C = s === "bottom" || s === "right" ? k - N : k + N;
5717
+ (s === "bottom" || s === "right") && C < v[v.length - 1] || (s === "top" || s === "left") && C > v[v.length - 1] || oe(r.current, {
5718
+ transform: te(s) ? `translate3d(0, ${C}px, 0)` : `translate3d(${C}px, 0, 0)`
5719
5719
  });
5720
5720
  }
5721
5721
  function $(N, C) {
@@ -5744,7 +5744,7 @@ const gl = () => () => {
5744
5744
  };
5745
5745
  function vl() {
5746
5746
  const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = ot(), a = T.useRef(null), l = J(() => document.body.style.backgroundColor, []);
5747
- function i() {
5747
+ function s() {
5748
5748
  return (window.innerWidth - Xt) / window.innerWidth;
5749
5749
  }
5750
5750
  T.useEffect(() => {
@@ -5764,9 +5764,9 @@ function vl() {
5764
5764
  borderRadius: `${uo}px`,
5765
5765
  overflow: "hidden",
5766
5766
  ...te(e) ? {
5767
- transform: `scale(${i()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
5767
+ transform: `scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
5768
5768
  } : {
5769
- transform: `scale(${i()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
5769
+ transform: `scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
5770
5770
  }
5771
5771
  });
5772
5772
  return () => {
@@ -5783,7 +5783,7 @@ function vl() {
5783
5783
  }
5784
5784
  let et = null;
5785
5785
  function wl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: a }) {
5786
- const [l, i] = T.useState(() => typeof window < "u" ? window.location.href : ""), c = T.useRef(0), d = T.useCallback(() => {
5786
+ const [l, s] = T.useState(() => typeof window < "u" ? window.location.href : ""), c = T.useRef(0), d = T.useCallback(() => {
5787
5787
  if (Wn() && et === null && e && !a) {
5788
5788
  et = {
5789
5789
  position: document.body.style.position,
@@ -5810,7 +5810,7 @@ function wl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
5810
5810
  const f = -parseInt(document.body.style.top, 10), g = -parseInt(document.body.style.left, 10);
5811
5811
  Object.assign(document.body.style, et), window.requestAnimationFrame(() => {
5812
5812
  if (o && l !== window.location.href) {
5813
- i(window.location.href);
5813
+ s(window.location.href);
5814
5814
  return;
5815
5815
  }
5816
5816
  window.scrollTo(g, f);
@@ -5850,7 +5850,7 @@ function wl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
5850
5850
  restorePositionSetting: u
5851
5851
  };
5852
5852
  }
5853
- function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: a, shouldScaleBackground: l = !1, setBackgroundColorOnScale: i = !0, closeThreshold: c = fl, scrollLockTimeout: d = ml, dismissible: u = !0, handleOnly: f = !1, fadeFromIndex: g = a && a.length - 1, activeSnapPoint: w, setActiveSnapPoint: b, fixed: m, modal: y = !0, onClose: v, nested: k, noBodyStyles: S = !1, direction: x = "bottom", defaultOpen: M = !1, disablePreventScroll: $ = !0, snapToSequentialPoint: N = !1, preventScrollRestoration: C = !1, repositionInputs: L = !0, onAnimationEnd: j, container: O, autoFocus: B = !1 }) {
5853
+ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: a, shouldScaleBackground: l = !1, setBackgroundColorOnScale: s = !0, closeThreshold: c = fl, scrollLockTimeout: d = ml, dismissible: u = !0, handleOnly: f = !1, fadeFromIndex: g = a && a.length - 1, activeSnapPoint: w, setActiveSnapPoint: b, fixed: m, modal: y = !0, onClose: v, nested: k, noBodyStyles: S = !1, direction: x = "bottom", defaultOpen: M = !1, disablePreventScroll: $ = !0, snapToSequentialPoint: N = !1, preventScrollRestoration: C = !1, repositionInputs: L = !0, onAnimationEnd: j, container: O, autoFocus: B = !1 }) {
5854
5854
  var A, H;
5855
5855
  const [U = !1, Y] = mo({
5856
5856
  defaultProp: M,
@@ -5862,7 +5862,7 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5862
5862
  document.body.style.pointerEvents = "auto";
5863
5863
  }), P || (document.body.style.pointerEvents = "auto");
5864
5864
  }
5865
- }), [q, E] = T.useState(!1), [se, le] = T.useState(!1), [Re, he] = T.useState(!1), G = T.useRef(null), ee = T.useRef(null), ue = T.useRef(null), be = T.useRef(null), F = T.useRef(null), ge = T.useRef(!1), xe = T.useRef(null), ye = T.useRef(0), fe = T.useRef(!1), Ae = T.useRef(!M), pn = T.useRef(0), I = T.useRef(null), hn = T.useRef(((A = I.current) == null ? void 0 : A.getBoundingClientRect().height) || 0), gn = T.useRef(((H = I.current) == null ? void 0 : H.getBoundingClientRect().width) || 0), Tt = T.useRef(0), yo = T.useCallback((P) => {
5865
+ }), [q, E] = T.useState(!1), [ie, le] = T.useState(!1), [Re, he] = T.useState(!1), G = T.useRef(null), ee = T.useRef(null), ue = T.useRef(null), be = T.useRef(null), F = T.useRef(null), ge = T.useRef(!1), xe = T.useRef(null), ye = T.useRef(0), fe = T.useRef(!1), Ae = T.useRef(!M), pn = T.useRef(0), I = T.useRef(null), hn = T.useRef(((A = I.current) == null ? void 0 : A.getBoundingClientRect().height) || 0), gn = T.useRef(((H = I.current) == null ? void 0 : H.getBoundingClientRect().width) || 0), Tt = T.useRef(0), yo = T.useCallback((P) => {
5866
5866
  a && P === Ze.length - 1 && (ee.current = /* @__PURE__ */ new Date());
5867
5867
  }, []), { activeSnapPoint: Co, activeSnapPointIndex: Fe, setActiveSnapPoint: vn, onRelease: ko, snapPointsOffset: Ze, onDrag: No, shouldFade: wn, getPercentageDragged: So } = hl({
5868
5868
  snapPoints: a,
@@ -5877,7 +5877,7 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5877
5877
  snapToSequentialPoint: N
5878
5878
  });
5879
5879
  ol({
5880
- isDisabled: !U || se || !y || Re || !q || !L || !$
5880
+ isDisabled: !U || ie || !y || Re || !q || !L || !$
5881
5881
  });
5882
5882
  const { restorePositionSetting: Eo } = wl({
5883
5883
  isOpen: U,
@@ -5887,7 +5887,7 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5887
5887
  preventScrollRestoration: C,
5888
5888
  noBodyStyles: S
5889
5889
  });
5890
- function st() {
5890
+ function it() {
5891
5891
  return (window.innerWidth - Xt) / window.innerWidth;
5892
5892
  }
5893
5893
  function To(P) {
@@ -5899,18 +5899,18 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5899
5899
  function bn(P, W) {
5900
5900
  var K;
5901
5901
  let z = P;
5902
- const Q = (K = window.getSelection()) == null ? void 0 : K.toString(), ie = I.current ? gt(I.current, x) : null, ae = /* @__PURE__ */ new Date();
5902
+ const Q = (K = window.getSelection()) == null ? void 0 : K.toString(), se = I.current ? gt(I.current, x) : null, ae = /* @__PURE__ */ new Date();
5903
5903
  if (z.tagName === "SELECT" || z.hasAttribute("data-vaul-no-drag") || z.closest("[data-vaul-no-drag]"))
5904
5904
  return !1;
5905
5905
  if (x === "right" || x === "left")
5906
5906
  return !0;
5907
5907
  if (ee.current && ae.getTime() - ee.current.getTime() < 500)
5908
5908
  return !1;
5909
- if (ie !== null && (x === "bottom" ? ie > 0 : ie < 0))
5909
+ if (se !== null && (x === "bottom" ? se > 0 : se < 0))
5910
5910
  return !0;
5911
5911
  if (Q && Q.length > 0)
5912
5912
  return !1;
5913
- if (F.current && ae.getTime() - F.current.getTime() < d && ie === 0 || W)
5913
+ if (F.current && ae.getTime() - F.current.getTime() < d && se === 0 || W)
5914
5914
  return F.current = ae, !1;
5915
5915
  for (; z; ) {
5916
5916
  if (z.scrollHeight > z.clientHeight) {
@@ -5924,12 +5924,12 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5924
5924
  return !0;
5925
5925
  }
5926
5926
  function _o(P) {
5927
- if (I.current && se) {
5927
+ if (I.current && ie) {
5928
5928
  const W = x === "bottom" || x === "right" ? 1 : -1, K = (ye.current - (te(x) ? P.pageY : P.pageX)) * W, z = K > 0, Q = a && !u && !z;
5929
5929
  if (Q && Fe === 0) return;
5930
- const ie = Math.abs(K), ae = document.querySelector("[data-vaul-drawer-wrapper]"), Ce = x === "bottom" || x === "top" ? hn.current : gn.current;
5931
- let ce = ie / Ce;
5932
- const Me = So(ie, z);
5930
+ const se = Math.abs(K), ae = document.querySelector("[data-vaul-drawer-wrapper]"), Ce = x === "bottom" || x === "top" ? hn.current : gn.current;
5931
+ let ce = se / Ce;
5932
+ const Me = So(se, z);
5933
5933
  if (Me !== null && (ce = Me), Q && ce >= 1 || !ge.current && !bn(P.target, z)) return;
5934
5934
  if (I.current.classList.add(jt), ge.current = !0, oe(I.current, {
5935
5935
  transition: "none"
@@ -5938,9 +5938,9 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5938
5938
  }), a && No({
5939
5939
  draggedDistance: K
5940
5940
  }), z && !a) {
5941
- const me = dl(K), it = Math.min(me * -1, 0) * W;
5941
+ const me = dl(K), st = Math.min(me * -1, 0) * W;
5942
5942
  oe(I.current, {
5943
- transform: te(x) ? `translate3d(0, ${it}px, 0)` : `translate3d(${it}px, 0, 0)`
5943
+ transform: te(x) ? `translate3d(0, ${st}px, 0)` : `translate3d(${st}px, 0, 0)`
5944
5944
  });
5945
5945
  return;
5946
5946
  }
@@ -5949,15 +5949,15 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5949
5949
  opacity: `${ke}`,
5950
5950
  transition: "none"
5951
5951
  }, !0)), ae && G.current && l) {
5952
- const me = Math.min(st() + ce * (1 - st()), 1), it = 8 - ce * 8, yn = Math.max(0, 14 - ce * 14);
5952
+ const me = Math.min(it() + ce * (1 - it()), 1), st = 8 - ce * 8, yn = Math.max(0, 14 - ce * 14);
5953
5953
  oe(ae, {
5954
- borderRadius: `${it}px`,
5954
+ borderRadius: `${st}px`,
5955
5955
  transform: te(x) ? `scale(${me}) translate3d(0, ${yn}px, 0)` : `scale(${me}) translate3d(${yn}px, 0, 0)`,
5956
5956
  transition: "none"
5957
5957
  }, !0);
5958
5958
  }
5959
5959
  if (!a) {
5960
- const me = ie * W;
5960
+ const me = se * W;
5961
5961
  oe(I.current, {
5962
5962
  transform: te(x) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
5963
5963
  });
@@ -5975,9 +5975,9 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5975
5975
  const K = document.activeElement;
5976
5976
  if (Zt(K) || fe.current) {
5977
5977
  var z;
5978
- const Q = ((z = window.visualViewport) == null ? void 0 : z.height) || 0, ie = window.innerHeight;
5979
- let ae = ie - Q;
5980
- const Ce = I.current.getBoundingClientRect().height || 0, ce = Ce > ie * 0.8;
5978
+ const Q = ((z = window.visualViewport) == null ? void 0 : z.height) || 0, se = window.innerHeight;
5979
+ let ae = se - Q;
5980
+ const Ce = I.current.getBoundingClientRect().height || 0, ce = Ce > se * 0.8;
5981
5981
  Tt.current || (Tt.current = Ce);
5982
5982
  const Me = I.current.getBoundingClientRect().top;
5983
5983
  if (Math.abs(pn.current - ae) > 60 && (fe.current = !fe.current), a && a.length > 0 && Ze && Fe) {
@@ -5988,7 +5988,7 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
5988
5988
  const ke = I.current.getBoundingClientRect().height;
5989
5989
  let me = ke;
5990
5990
  ke > Q && (me = Q - (ce ? Me : Xt)), m ? I.current.style.height = `${ke - Math.max(ae, 0)}px` : I.current.style.height = `${Math.max(me, Q - Me)}px`;
5991
- } else Xi() || (I.current.style.height = `${Tt.current}px`);
5991
+ } else Xs() || (I.current.style.height = `${Tt.current}px`);
5992
5992
  a && a.length > 0 && !fe.current ? I.current.style.bottom = "0px" : I.current.style.bottom = `${Math.max(ae, 0)}px`;
5993
5993
  }
5994
5994
  }
@@ -6019,10 +6019,10 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
6019
6019
  borderRadius: `${uo}px`,
6020
6020
  overflow: "hidden",
6021
6021
  ...te(x) ? {
6022
- transform: `scale(${st()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
6022
+ transform: `scale(${it()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
6023
6023
  transformOrigin: "top"
6024
6024
  } : {
6025
- transform: `scale(${st()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
6025
+ transform: `scale(${it()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
6026
6026
  transformOrigin: "left"
6027
6027
  },
6028
6028
  transitionProperty: "transform, border-radius",
@@ -6031,10 +6031,10 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
6031
6031
  }, !0);
6032
6032
  }
6033
6033
  function Ro() {
6034
- !se || !I.current || (I.current.classList.remove(jt), ge.current = !1, le(!1), be.current = /* @__PURE__ */ new Date());
6034
+ !ie || !I.current || (I.current.classList.remove(jt), ge.current = !1, le(!1), be.current = /* @__PURE__ */ new Date());
6035
6035
  }
6036
6036
  function Ao(P) {
6037
- if (!se || !I.current) return;
6037
+ if (!ie || !I.current) return;
6038
6038
  I.current.classList.remove(jt), ge.current = !1, le(!1), be.current = /* @__PURE__ */ new Date();
6039
6039
  const W = gt(I.current, x);
6040
6040
  if (!P || !bn(P.target, !1) || !W || Number.isNaN(W) || ue.current === null) return;
@@ -6058,8 +6058,8 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
6058
6058
  Xe(), o?.(P, !1);
6059
6059
  return;
6060
6060
  }
6061
- var ie;
6062
- const ae = Math.min((ie = I.current.getBoundingClientRect().height) != null ? ie : 0, window.innerHeight);
6061
+ var se;
6062
+ const ae = Math.min((se = I.current.getBoundingClientRect().height) != null ? se : 0, window.innerHeight);
6063
6063
  var Ce;
6064
6064
  const ce = Math.min((Ce = I.current.getBoundingClientRect().width) != null ? Ce : 0, window.innerWidth), Me = x === "left" || x === "right";
6065
6065
  if (Math.abs(W) >= (Me ? ce : ae) * c) {
@@ -6109,7 +6109,7 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
6109
6109
  });
6110
6110
  }, [
6111
6111
  y
6112
- ]), /* @__PURE__ */ T.createElement(ji, {
6112
+ ]), /* @__PURE__ */ T.createElement(js, {
6113
6113
  defaultOpen: M,
6114
6114
  onOpenChange: (P) => {
6115
6115
  !u && !P || (P ? E(!0) : Xe(!0), Y(P));
@@ -6130,7 +6130,7 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
6130
6130
  shouldAnimate: Ae,
6131
6131
  handleOnly: f,
6132
6132
  isOpen: U,
6133
- isDragging: se,
6133
+ isDragging: ie,
6134
6134
  shouldFade: wn,
6135
6135
  closeDrawer: Xe,
6136
6136
  onNestedDrag: Lo,
@@ -6142,7 +6142,7 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
6142
6142
  activeSnapPointIndex: Fe,
6143
6143
  direction: x,
6144
6144
  shouldScaleBackground: l,
6145
- setBackgroundColorOnScale: i,
6145
+ setBackgroundColorOnScale: s,
6146
6146
  noBodyStyles: S,
6147
6147
  container: O,
6148
6148
  autoFocus: B
@@ -6150,13 +6150,13 @@ function bl({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
6150
6150
  }, n));
6151
6151
  }
6152
6152
  const po = /* @__PURE__ */ T.forwardRef(function({ ...e }, t) {
6153
- const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: a, isOpen: l, modal: i, shouldAnimate: c } = ot(), d = io(t, n), u = r && r.length > 0;
6154
- if (!i)
6153
+ const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: a, isOpen: l, modal: s, shouldAnimate: c } = ot(), d = so(t, n), u = r && r.length > 0;
6154
+ if (!s)
6155
6155
  return null;
6156
6156
  const f = T.useCallback((g) => o(g), [
6157
6157
  o
6158
6158
  ]);
6159
- return /* @__PURE__ */ T.createElement(Ui, {
6159
+ return /* @__PURE__ */ T.createElement(Us, {
6160
6160
  onMouseUp: f,
6161
6161
  ref: d,
6162
6162
  "data-vaul-overlay": "",
@@ -6168,18 +6168,18 @@ const po = /* @__PURE__ */ T.forwardRef(function({ ...e }, t) {
6168
6168
  });
6169
6169
  po.displayName = "Drawer.Overlay";
6170
6170
  const ho = /* @__PURE__ */ T.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
6171
- const { drawerRef: a, onPress: l, onRelease: i, onDrag: c, keyboardIsOpen: d, snapPointsOffset: u, activeSnapPointIndex: f, modal: g, isOpen: w, direction: b, snapPoints: m, container: y, handleOnly: v, shouldAnimate: k, autoFocus: S } = ot(), [x, M] = T.useState(!1), $ = io(o, a), N = T.useRef(null), C = T.useRef(null), L = T.useRef(!1), j = m && m.length > 0;
6171
+ const { drawerRef: a, onPress: l, onRelease: s, onDrag: c, keyboardIsOpen: d, snapPointsOffset: u, activeSnapPointIndex: f, modal: g, isOpen: w, direction: b, snapPoints: m, container: y, handleOnly: v, shouldAnimate: k, autoFocus: S } = ot(), [x, M] = T.useState(!1), $ = so(o, a), N = T.useRef(null), C = T.useRef(null), L = T.useRef(!1), j = m && m.length > 0;
6172
6172
  vl();
6173
6173
  const O = (A, H, U = 0) => {
6174
6174
  if (L.current) return !0;
6175
- const Y = Math.abs(A.y), q = Math.abs(A.x), E = q > Y, se = [
6175
+ const Y = Math.abs(A.y), q = Math.abs(A.x), E = q > Y, ie = [
6176
6176
  "bottom",
6177
6177
  "right"
6178
6178
  ].includes(H) ? 1 : -1;
6179
6179
  if (H === "left" || H === "right") {
6180
- if (!(A.x * se < 0) && q >= 0 && q <= U)
6180
+ if (!(A.x * ie < 0) && q >= 0 && q <= U)
6181
6181
  return E;
6182
- } else if (!(A.y * se < 0) && Y >= 0 && Y <= U)
6182
+ } else if (!(A.y * ie < 0) && Y >= 0 && Y <= U)
6183
6183
  return !E;
6184
6184
  return L.current = !0, !0;
6185
6185
  };
@@ -6189,9 +6189,9 @@ const ho = /* @__PURE__ */ T.forwardRef(function({ onPointerDownOutside: e, styl
6189
6189
  });
6190
6190
  }, []);
6191
6191
  function B(A) {
6192
- N.current = null, L.current = !1, i(A);
6192
+ N.current = null, L.current = !1, s(A);
6193
6193
  }
6194
- return /* @__PURE__ */ T.createElement(qi, {
6194
+ return /* @__PURE__ */ T.createElement(qs, {
6195
6195
  "data-vaul-drawer-direction": b,
6196
6196
  "data-vaul-drawer": "",
6197
6197
  "data-vaul-delayed-snap-points": x ? "true" : "false",
@@ -6235,7 +6235,7 @@ const ho = /* @__PURE__ */ T.forwardRef(function({ onPointerDownOutside: e, styl
6235
6235
  }, b, Y) ? c(A) : (Math.abs(U) > Y || Math.abs(H) > Y) && (N.current = null);
6236
6236
  },
6237
6237
  onPointerUp: (A) => {
6238
- r.onPointerUp == null || r.onPointerUp.call(r, A), N.current = null, L.current = !1, i(A);
6238
+ r.onPointerUp == null || r.onPointerUp.call(r, A), N.current = null, L.current = !1, s(A);
6239
6239
  },
6240
6240
  onPointerOut: (A) => {
6241
6241
  r.onPointerOut == null || r.onPointerOut.call(r, A), B(C.current);
@@ -6247,7 +6247,7 @@ const ho = /* @__PURE__ */ T.forwardRef(function({ onPointerDownOutside: e, styl
6247
6247
  });
6248
6248
  ho.displayName = "Drawer.Content";
6249
6249
  const xl = 250, yl = 120, Cl = /* @__PURE__ */ T.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
6250
- const { closeDrawer: o, isDragging: a, snapPoints: l, activeSnapPoint: i, setActiveSnapPoint: c, dismissible: d, handleOnly: u, isOpen: f, onPress: g, onDrag: w } = ot(), b = T.useRef(null), m = T.useRef(!1);
6250
+ const { closeDrawer: o, isDragging: a, snapPoints: l, activeSnapPoint: s, setActiveSnapPoint: c, dismissible: d, handleOnly: u, isOpen: f, onPress: g, onDrag: w } = ot(), b = T.useRef(null), m = T.useRef(!1);
6251
6251
  function y() {
6252
6252
  if (m.current) {
6253
6253
  S();
@@ -6266,11 +6266,11 @@ const xl = 250, yl = 120, Cl = /* @__PURE__ */ T.forwardRef(function({ preventCy
6266
6266
  d || o();
6267
6267
  return;
6268
6268
  }
6269
- if (i === l[l.length - 1] && d) {
6269
+ if (s === l[l.length - 1] && d) {
6270
6270
  o();
6271
6271
  return;
6272
6272
  }
6273
- const M = l.findIndex((N) => N === i);
6273
+ const M = l.findIndex((N) => N === s);
6274
6274
  if (M === -1) return;
6275
6275
  const $ = l[M + 1];
6276
6276
  c($);
@@ -6306,7 +6306,7 @@ const xl = 250, yl = 120, Cl = /* @__PURE__ */ T.forwardRef(function({ preventCy
6306
6306
  Cl.displayName = "Drawer.Handle";
6307
6307
  function kl(e) {
6308
6308
  const t = ot(), { container: n = t.container, ...r } = e;
6309
- return /* @__PURE__ */ T.createElement(Hi, {
6309
+ return /* @__PURE__ */ T.createElement(Hs, {
6310
6310
  container: n,
6311
6311
  ...r
6312
6312
  });
@@ -6316,9 +6316,9 @@ const Oe = {
6316
6316
  Content: ho,
6317
6317
  Overlay: po,
6318
6318
  Portal: kl,
6319
- Close: Yi,
6320
- Title: Gi,
6321
- Description: Ki
6319
+ Close: Ys,
6320
+ Title: Gs,
6321
+ Description: Ks
6322
6322
  };
6323
6323
  function Nl(e = 768) {
6324
6324
  const [t, n] = ne(!1);
@@ -6338,27 +6338,27 @@ function dn({
6338
6338
  className: a = "",
6339
6339
  showCloseButton: l = !0
6340
6340
  }) {
6341
- return Nl() ? /* @__PURE__ */ s(Oe.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */ p(Oe.Portal, { children: [
6342
- /* @__PURE__ */ s(Oe.Overlay, { className: "fixed inset-0 z-50 bg-black/60 backdrop-blur-sm" }),
6341
+ return Nl() ? /* @__PURE__ */ i(Oe.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */ p(Oe.Portal, { children: [
6342
+ /* @__PURE__ */ i(Oe.Overlay, { className: "fixed inset-0 z-50 bg-black/60 backdrop-blur-sm" }),
6343
6343
  /* @__PURE__ */ p(
6344
6344
  Oe.Content,
6345
6345
  {
6346
6346
  className: `fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[96vh] flex-col rounded-t-2xl bg-[var(--optimex-surface)] border-t border-white/[0.05] outline-none ${a}`,
6347
6347
  children: [
6348
- /* @__PURE__ */ s("div", { className: "mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-white/20" }),
6348
+ /* @__PURE__ */ i("div", { className: "mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-white/20" }),
6349
6349
  (r || l) && /* @__PURE__ */ p("div", { className: "flex items-center justify-between border-b border-white/[0.05] px-4 pb-4 pt-2", children: [
6350
6350
  /* @__PURE__ */ p("div", { children: [
6351
- r && /* @__PURE__ */ s(Oe.Title, { className: "text-lg font-bold text-white", children: r }),
6352
- o && /* @__PURE__ */ s(Oe.Description, { className: "text-sm text-white/40", children: o })
6351
+ r && /* @__PURE__ */ i(Oe.Title, { className: "text-lg font-bold text-white", children: r }),
6352
+ o && /* @__PURE__ */ i(Oe.Description, { className: "text-sm text-white/40", children: o })
6353
6353
  ] }),
6354
- l && /* @__PURE__ */ s(Oe.Close, { className: "rounded-lg p-1.5 text-white/40 transition-colors hover:bg-white/10 hover:text-white/60", children: /* @__PURE__ */ s(Ie, {}) })
6354
+ l && /* @__PURE__ */ i(Oe.Close, { className: "rounded-lg p-1.5 text-white/40 transition-colors hover:bg-white/10 hover:text-white/60", children: /* @__PURE__ */ i(Ie, {}) })
6355
6355
  ] }),
6356
- /* @__PURE__ */ s("div", { className: "flex-1 overflow-auto", children: n })
6356
+ /* @__PURE__ */ i("div", { className: "flex-1 overflow-auto", children: n })
6357
6357
  ]
6358
6358
  }
6359
6359
  )
6360
6360
  ] }) }) : e ? /* @__PURE__ */ p("div", { className: "fixed inset-0 z-50 flex items-center justify-center", children: [
6361
- /* @__PURE__ */ s(
6361
+ /* @__PURE__ */ i(
6362
6362
  "div",
6363
6363
  {
6364
6364
  className: "absolute inset-0 bg-black/60 backdrop-blur-sm",
@@ -6376,7 +6376,7 @@ function dn({
6376
6376
  children: [
6377
6377
  (r || l) && /* @__PURE__ */ p("div", { className: "flex items-center justify-between border-b border-white/[0.05] p-4", children: [
6378
6378
  /* @__PURE__ */ p("div", { children: [
6379
- r && /* @__PURE__ */ s(
6379
+ r && /* @__PURE__ */ i(
6380
6380
  "h2",
6381
6381
  {
6382
6382
  id: "modal-title",
@@ -6384,7 +6384,7 @@ function dn({
6384
6384
  children: r
6385
6385
  }
6386
6386
  ),
6387
- o && /* @__PURE__ */ s(
6387
+ o && /* @__PURE__ */ i(
6388
6388
  "p",
6389
6389
  {
6390
6390
  id: "modal-description",
@@ -6393,16 +6393,16 @@ function dn({
6393
6393
  }
6394
6394
  )
6395
6395
  ] }),
6396
- l && /* @__PURE__ */ s(
6396
+ l && /* @__PURE__ */ i(
6397
6397
  "button",
6398
6398
  {
6399
6399
  onClick: () => t(!1),
6400
6400
  className: "rounded-lg p-1.5 text-white/40 transition-colors hover:bg-white/10 hover:text-white/60",
6401
- children: /* @__PURE__ */ s(Ie, {})
6401
+ children: /* @__PURE__ */ i(Ie, {})
6402
6402
  }
6403
6403
  )
6404
6404
  ] }),
6405
- /* @__PURE__ */ s("div", { className: "flex-1 overflow-auto", children: n })
6405
+ /* @__PURE__ */ i("div", { className: "flex-1 overflow-auto", children: n })
6406
6406
  ]
6407
6407
  }
6408
6408
  )
@@ -6411,10 +6411,10 @@ function dn({
6411
6411
  const Sl = ({
6412
6412
  children: e,
6413
6413
  className: t = ""
6414
- }) => /* @__PURE__ */ s("div", { className: `p-4 ${t}`, children: e }), El = ({
6414
+ }) => /* @__PURE__ */ i("div", { className: `p-4 ${t}`, children: e }), El = ({
6415
6415
  children: e,
6416
6416
  className: t = ""
6417
- }) => /* @__PURE__ */ s(
6417
+ }) => /* @__PURE__ */ i(
6418
6418
  "div",
6419
6419
  {
6420
6420
  className: `flex gap-2 border-t border-white/[0.05] p-4 ${t}`,
@@ -6428,7 +6428,7 @@ function Qt({
6428
6428
  type: r = "button",
6429
6429
  className: o = ""
6430
6430
  }) {
6431
- return /* @__PURE__ */ s(
6431
+ return /* @__PURE__ */ i(
6432
6432
  "button",
6433
6433
  {
6434
6434
  type: r,
@@ -6463,7 +6463,7 @@ function Rl({
6463
6463
  position: o = "bottom-right",
6464
6464
  width: a = "w-72",
6465
6465
  showArrow: l = !0,
6466
- className: i = "",
6466
+ className: s = "",
6467
6467
  ariaLabel: c
6468
6468
  }) {
6469
6469
  const d = Zn(null);
@@ -6484,17 +6484,17 @@ function Rl({
6484
6484
  "div",
6485
6485
  {
6486
6486
  ref: d,
6487
- className: `absolute z-50 rounded-[0.25rem] border border-[var(--optimex-border)] bg-[var(--optimex-surface)] p-4 shadow-lg ${Tl[o]} ${a} ${i}`,
6487
+ className: `absolute z-50 rounded-[0.25rem] border border-[var(--optimex-border)] bg-[var(--optimex-surface)] p-4 shadow-lg ${Tl[o]} ${a} ${s}`,
6488
6488
  role: "dialog",
6489
6489
  "aria-label": c,
6490
6490
  children: [
6491
- l && /* @__PURE__ */ s(
6491
+ l && /* @__PURE__ */ i(
6492
6492
  "div",
6493
6493
  {
6494
6494
  className: `absolute h-4 w-4 border-[var(--optimex-border)] bg-[var(--optimex-surface)] ${_l[o]}`
6495
6495
  }
6496
6496
  ),
6497
- /* @__PURE__ */ s("div", { className: "relative", children: n })
6497
+ /* @__PURE__ */ i("div", { className: "relative", children: n })
6498
6498
  ]
6499
6499
  }
6500
6500
  ) : null;
@@ -6507,7 +6507,7 @@ function Al({
6507
6507
  leftIcon: o,
6508
6508
  rightContent: a,
6509
6509
  type: l = "text",
6510
- inputMode: i = "text",
6510
+ inputMode: s = "text",
6511
6511
  disabled: c = !1,
6512
6512
  className: d = ""
6513
6513
  }) {
@@ -6516,12 +6516,12 @@ function Al({
6516
6516
  {
6517
6517
  className: `flex rounded-md items-center gap-2 bg-white/5 border py-3 px-3 transition-colors ${r ? "border-red-500" : "border-white/10 hover:border-[var(--optimex-primary)] focus-within:border-[var(--optimex-primary)]"} ${c ? "opacity-50 cursor-not-allowed" : ""} ${d}`,
6518
6518
  children: [
6519
- o && /* @__PURE__ */ s(o, { className: "size-5 text-white/40 shrink-0" }),
6520
- /* @__PURE__ */ s(
6519
+ o && /* @__PURE__ */ i(o, { className: "size-5 text-white/40 shrink-0" }),
6520
+ /* @__PURE__ */ i(
6521
6521
  "input",
6522
6522
  {
6523
6523
  type: l,
6524
- inputMode: i,
6524
+ inputMode: s,
6525
6525
  value: e,
6526
6526
  onChange: (u) => t(u.target.value),
6527
6527
  placeholder: n,
@@ -6547,7 +6547,7 @@ function $e({
6547
6547
  }) {
6548
6548
  const r = Ml[t];
6549
6549
  return /* @__PURE__ */ p("div", { className: `relative shrink-0 ${r.container}`, children: [
6550
- /* @__PURE__ */ s(
6550
+ /* @__PURE__ */ i(
6551
6551
  "img",
6552
6552
  {
6553
6553
  src: e.token_logo_uri || "/placeholder-token.svg",
@@ -6558,7 +6558,7 @@ function $e({
6558
6558
  }
6559
6559
  }
6560
6560
  ),
6561
- n && e.network_logo_uri && /* @__PURE__ */ s(
6561
+ n && e.network_logo_uri && /* @__PURE__ */ i(
6562
6562
  "img",
6563
6563
  {
6564
6564
  src: e.network_logo_uri,
@@ -6573,13 +6573,13 @@ function $e({
6573
6573
  }
6574
6574
  const Ll = "glass-container rounded-3xl p-4 shadow-2xl relative w-full min-w-0";
6575
6575
  function un({ children: e, className: t }) {
6576
- return /* @__PURE__ */ s("div", { className: t ?? Ll, children: e });
6576
+ return /* @__PURE__ */ i("div", { className: t ?? Ll, children: e });
6577
6577
  }
6578
6578
  function Pl() {
6579
6579
  return /* @__PURE__ */ p("div", { className: "relative size-20 mb-4", children: [
6580
- /* @__PURE__ */ s("div", { className: "absolute inset-0 rounded-full bg-red-500/10 animate-pulse" }),
6581
- /* @__PURE__ */ s("div", { className: "absolute inset-2 rounded-full bg-red-500/20" }),
6582
- /* @__PURE__ */ s("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ s(fa, { className: "size-10 text-red-500" }) })
6580
+ /* @__PURE__ */ i("div", { className: "absolute inset-0 rounded-full bg-red-500/10 animate-pulse" }),
6581
+ /* @__PURE__ */ i("div", { className: "absolute inset-2 rounded-full bg-red-500/20" }),
6582
+ /* @__PURE__ */ i("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ i(fa, { className: "size-10 text-red-500" }) })
6583
6583
  ] });
6584
6584
  }
6585
6585
  function Ol({
@@ -6587,26 +6587,26 @@ function Ol({
6587
6587
  onRetry: t,
6588
6588
  className: n
6589
6589
  }) {
6590
- return /* @__PURE__ */ s(un, { className: n, children: /* @__PURE__ */ s("div", { className: "bg-[var(--optimex-surface)] rounded-2xl p-6 border border-white/[0.02]", children: /* @__PURE__ */ p("div", { className: "flex flex-col items-center justify-center text-center", children: [
6591
- /* @__PURE__ */ s(Pl, {}),
6592
- /* @__PURE__ */ s("h3", { className: "text-base font-bold text-white mb-1", children: "Oops! Something went wrong" }),
6593
- /* @__PURE__ */ s("p", { className: "text-sm text-white/40 mb-6 max-w-[280px]", children: (() => {
6590
+ return /* @__PURE__ */ i(un, { className: n, children: /* @__PURE__ */ i("div", { className: "bg-[var(--optimex-surface)] rounded-2xl p-6 border border-white/[0.02]", children: /* @__PURE__ */ p("div", { className: "flex flex-col items-center justify-center text-center", children: [
6591
+ /* @__PURE__ */ i(Pl, {}),
6592
+ /* @__PURE__ */ i("h3", { className: "text-base font-bold text-white mb-1", children: "Oops! Something went wrong" }),
6593
+ /* @__PURE__ */ i("p", { className: "text-sm text-white/40 mb-6 max-w-[280px]", children: (() => {
6594
6594
  const o = e?.message?.toLowerCase() || "";
6595
6595
  return o.includes("network") || o.includes("fetch") ? "Connection issue. Check your internet and try again." : o.includes("timeout") ? "Request timed out. The server might be busy." : o.includes("401") || o.includes("403") ? "Access denied. Please check your credentials." : o.includes("500") || o.includes("server") ? "Server is having issues. Please try again later." : "Something went wrong while loading. Let's give it another shot!";
6596
6596
  })() }),
6597
- /* @__PURE__ */ s(
6597
+ /* @__PURE__ */ i(
6598
6598
  ur,
6599
6599
  {
6600
6600
  onClick: t,
6601
6601
  size: "md",
6602
6602
  fullWidth: !0,
6603
- leftIcon: /* @__PURE__ */ s(ua, { className: "size-4 transition-transform group-hover:rotate-180" }),
6603
+ leftIcon: /* @__PURE__ */ i(ua, { className: "size-4 transition-transform group-hover:rotate-180" }),
6604
6604
  children: "Try Again"
6605
6605
  }
6606
6606
  ),
6607
6607
  e?.message && /* @__PURE__ */ p("details", { className: "mt-4 w-full", children: [
6608
- /* @__PURE__ */ s("summary", { className: "cursor-pointer text-xs text-white/30 hover:text-white/50 transition-colors", children: "Technical details" }),
6609
- /* @__PURE__ */ s("p", { className: "mt-2 bg-white/5 p-3 text-left text-xs text-white/40 break-all border border-white/[0.02]", children: e.message })
6608
+ /* @__PURE__ */ i("summary", { className: "cursor-pointer text-xs text-white/30 hover:text-white/50 transition-colors", children: "Technical details" }),
6609
+ /* @__PURE__ */ i("p", { className: "mt-2 bg-white/5 p-3 text-left text-xs text-white/40 break-all border border-white/[0.02]", children: e.message })
6610
6610
  ] })
6611
6611
  ] }) }) });
6612
6612
  }
@@ -6614,55 +6614,55 @@ function Il({ className: e }) {
6614
6614
  return /* @__PURE__ */ p("div", { className: "flex flex-col gap-4", children: [
6615
6615
  /* @__PURE__ */ p("header", { className: "flex items-center justify-between px-2", children: [
6616
6616
  /* @__PURE__ */ p("div", { className: "flex items-center gap-3", children: [
6617
- /* @__PURE__ */ s("div", { className: "size-8 rounded-lg bg-[var(--optimex-primary)]/30 animate-pulse" }),
6618
- /* @__PURE__ */ s("div", { className: "h-6 w-28 rounded bg-white/10 animate-pulse" })
6617
+ /* @__PURE__ */ i("div", { className: "size-8 rounded-lg bg-[var(--optimex-primary)]/30 animate-pulse" }),
6618
+ /* @__PURE__ */ i("div", { className: "h-6 w-28 rounded bg-white/10 animate-pulse" })
6619
6619
  ] }),
6620
- /* @__PURE__ */ s("div", { className: "size-10 rounded-lg bg-white/5 animate-pulse" })
6620
+ /* @__PURE__ */ i("div", { className: "size-10 rounded-lg bg-white/5 animate-pulse" })
6621
6621
  ] }),
6622
6622
  /* @__PURE__ */ p(un, { className: e, children: [
6623
6623
  /* @__PURE__ */ p("div", { className: "bg-[var(--optimex-surface)] rounded-2xl p-4 border border-white/[0.02] mb-2", children: [
6624
- /* @__PURE__ */ s("div", { className: "flex justify-between items-center mb-4", children: /* @__PURE__ */ s("div", { className: "h-3 w-10 animate-pulse rounded bg-white/10" }) }),
6624
+ /* @__PURE__ */ i("div", { className: "flex justify-between items-center mb-4", children: /* @__PURE__ */ i("div", { className: "h-3 w-10 animate-pulse rounded bg-white/10" }) }),
6625
6625
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between gap-4", children: [
6626
6626
  /* @__PURE__ */ p("div", { className: "flex-1", children: [
6627
- /* @__PURE__ */ s("div", { className: "h-8 w-24 animate-pulse rounded bg-white/10 mb-2" }),
6628
- /* @__PURE__ */ s("div", { className: "h-3 w-16 animate-pulse rounded bg-white/5" })
6627
+ /* @__PURE__ */ i("div", { className: "h-8 w-24 animate-pulse rounded bg-white/10 mb-2" }),
6628
+ /* @__PURE__ */ i("div", { className: "h-3 w-16 animate-pulse rounded bg-white/5" })
6629
6629
  ] }),
6630
6630
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2 bg-white/5 p-2 pr-3 rounded-full border border-white/10", children: [
6631
- /* @__PURE__ */ s("div", { className: "size-8 rounded-full bg-white/10 animate-pulse" }),
6631
+ /* @__PURE__ */ i("div", { className: "size-8 rounded-full bg-white/10 animate-pulse" }),
6632
6632
  /* @__PURE__ */ p("div", { children: [
6633
- /* @__PURE__ */ s("div", { className: "h-4 w-12 animate-pulse rounded bg-white/10 mb-1" }),
6634
- /* @__PURE__ */ s("div", { className: "h-2 w-16 animate-pulse rounded bg-white/5" })
6633
+ /* @__PURE__ */ i("div", { className: "h-4 w-12 animate-pulse rounded bg-white/10 mb-1" }),
6634
+ /* @__PURE__ */ i("div", { className: "h-2 w-16 animate-pulse rounded bg-white/5" })
6635
6635
  ] })
6636
6636
  ] })
6637
6637
  ] })
6638
6638
  ] }),
6639
- /* @__PURE__ */ s("div", { className: "relative z-10 -my-4 flex justify-center", children: /* @__PURE__ */ s("div", { className: "size-10 rounded-full bg-[var(--optimex-surface)] border-4 border-[var(--optimex-background)] animate-pulse" }) }),
6639
+ /* @__PURE__ */ i("div", { className: "relative z-10 -my-4 flex justify-center", children: /* @__PURE__ */ i("div", { className: "size-10 rounded-full bg-[var(--optimex-surface)] border-4 border-[var(--optimex-background)] animate-pulse" }) }),
6640
6640
  /* @__PURE__ */ p("div", { className: "bg-[var(--optimex-surface)] rounded-2xl p-4 border border-white/[0.02] mb-4", children: [
6641
- /* @__PURE__ */ s("div", { className: "flex justify-between items-center mb-4", children: /* @__PURE__ */ s("div", { className: "h-3 w-6 animate-pulse rounded bg-white/10" }) }),
6641
+ /* @__PURE__ */ i("div", { className: "flex justify-between items-center mb-4", children: /* @__PURE__ */ i("div", { className: "h-3 w-6 animate-pulse rounded bg-white/10" }) }),
6642
6642
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between gap-4", children: [
6643
6643
  /* @__PURE__ */ p("div", { className: "flex-1", children: [
6644
- /* @__PURE__ */ s("div", { className: "h-8 w-20 animate-pulse rounded bg-white/10 mb-2" }),
6645
- /* @__PURE__ */ s("div", { className: "h-3 w-14 animate-pulse rounded bg-white/5" })
6644
+ /* @__PURE__ */ i("div", { className: "h-8 w-20 animate-pulse rounded bg-white/10 mb-2" }),
6645
+ /* @__PURE__ */ i("div", { className: "h-3 w-14 animate-pulse rounded bg-white/5" })
6646
6646
  ] }),
6647
6647
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2 bg-white/5 p-2 pr-3 rounded-full border border-white/10", children: [
6648
- /* @__PURE__ */ s("div", { className: "size-8 rounded-full bg-white/10 animate-pulse" }),
6648
+ /* @__PURE__ */ i("div", { className: "size-8 rounded-full bg-white/10 animate-pulse" }),
6649
6649
  /* @__PURE__ */ p("div", { children: [
6650
- /* @__PURE__ */ s("div", { className: "h-4 w-12 animate-pulse rounded bg-white/10 mb-1" }),
6651
- /* @__PURE__ */ s("div", { className: "h-2 w-16 animate-pulse rounded bg-white/5" })
6650
+ /* @__PURE__ */ i("div", { className: "h-4 w-12 animate-pulse rounded bg-white/10 mb-1" }),
6651
+ /* @__PURE__ */ i("div", { className: "h-2 w-16 animate-pulse rounded bg-white/5" })
6652
6652
  ] })
6653
6653
  ] })
6654
6654
  ] })
6655
6655
  ] }),
6656
6656
  /* @__PURE__ */ p("div", { className: "bg-[var(--optimex-surface)] rounded-2xl p-4 border border-white/[0.02] mb-4", children: [
6657
- /* @__PURE__ */ s("div", { className: "h-3 w-28 animate-pulse rounded bg-white/10 mb-2" }),
6657
+ /* @__PURE__ */ i("div", { className: "h-3 w-28 animate-pulse rounded bg-white/10 mb-2" }),
6658
6658
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2 bg-white/5 border border-white/10 py-3 px-3 rounded-md", children: [
6659
- /* @__PURE__ */ s("div", { className: "size-5 rounded-full bg-white/10 animate-pulse shrink-0" }),
6660
- /* @__PURE__ */ s("div", { className: "h-4 flex-1 animate-pulse rounded bg-white/5" })
6659
+ /* @__PURE__ */ i("div", { className: "size-5 rounded-full bg-white/10 animate-pulse shrink-0" }),
6660
+ /* @__PURE__ */ i("div", { className: "h-4 flex-1 animate-pulse rounded bg-white/5" })
6661
6661
  ] }),
6662
- /* @__PURE__ */ s("div", { className: "h-2 w-48 animate-pulse rounded bg-white/5 mt-2" })
6662
+ /* @__PURE__ */ i("div", { className: "h-2 w-48 animate-pulse rounded bg-white/5 mt-2" })
6663
6663
  ] }),
6664
- /* @__PURE__ */ s("div", { className: "h-12 w-full animate-pulse rounded-xl bg-[var(--optimex-primary)]/30 bg-white/5 mt-2" }),
6665
- /* @__PURE__ */ s("div", { className: "mt-4 flex items-center justify-center", children: /* @__PURE__ */ s("div", { className: "h-4 w-32 animate-pulse rounded bg-white/5" }) })
6664
+ /* @__PURE__ */ i("div", { className: "h-12 w-full animate-pulse rounded-xl bg-[var(--optimex-primary)]/30 bg-white/5 mt-2" }),
6665
+ /* @__PURE__ */ i("div", { className: "mt-4 flex items-center justify-center", children: /* @__PURE__ */ i("div", { className: "h-4 w-32 animate-pulse rounded bg-white/5" }) })
6666
6666
  ] })
6667
6667
  ] });
6668
6668
  }
@@ -6673,14 +6673,14 @@ function Dl({ children: e }) {
6673
6673
  isLoading: r,
6674
6674
  error: o,
6675
6675
  refetch: a
6676
- } = Ho(t.apiBaseUrl), l = t.renderLoading ?? Il, i = t.renderError ?? Ol;
6676
+ } = Ho(t.apiBaseUrl), l = t.renderLoading ?? Il, s = t.renderError ?? Ol;
6677
6677
  if (r)
6678
- return /* @__PURE__ */ s(l, {});
6678
+ return /* @__PURE__ */ i(l, {});
6679
6679
  if (o || !n) {
6680
6680
  const c = o instanceof Error ? o : new Error("Failed to load tokens");
6681
- return /* @__PURE__ */ s(i, { error: c, onRetry: () => a() });
6681
+ return /* @__PURE__ */ i(s, { error: c, onRetry: () => a() });
6682
6682
  }
6683
- return /* @__PURE__ */ s(go.Provider, { value: { tokensData: n, refetch: a }, children: e });
6683
+ return /* @__PURE__ */ i(go.Provider, { value: { tokensData: n, refetch: a }, children: e });
6684
6684
  }
6685
6685
  function $l() {
6686
6686
  const e = en(go);
@@ -6698,7 +6698,7 @@ function Bl({
6698
6698
  }) {
6699
6699
  const l = V(() => {
6700
6700
  n("");
6701
- }, [n]), i = V(async () => {
6701
+ }, [n]), s = V(async () => {
6702
6702
  try {
6703
6703
  const f = await navigator.clipboard.readText();
6704
6704
  f && n(f.trim());
@@ -6708,18 +6708,18 @@ function Bl({
6708
6708
  }, [n]), c = () => r || (e ? `Enter ${e.network_name} address` : "Enter receiving address"), d = e?.network_name || "destination", u = J(() => ha(e?.network_name) || rr, [e?.network_name]);
6709
6709
  return /* @__PURE__ */ p("div", { className: "bg-[var(--optimex-surface)] rounded-2xl p-4 border border-white/[0.05] animate-in slide-in-from-top-2 duration-300", children: [
6710
6710
  /* @__PURE__ */ p("div", { className: "flex justify-between items-center mb-2", children: [
6711
- /* @__PURE__ */ s("label", { className: "text-white/40 text-xs", children: "Recipient Address" }),
6712
- a && /* @__PURE__ */ s(
6711
+ /* @__PURE__ */ i("label", { className: "text-white/40 text-xs", children: "Recipient Address" }),
6712
+ a && /* @__PURE__ */ i(
6713
6713
  "button",
6714
6714
  {
6715
6715
  type: "button",
6716
6716
  onClick: l,
6717
6717
  className: "text-white/20 hover:text-white/40 transition-colors",
6718
- children: /* @__PURE__ */ s(Ie, { className: "size-4" })
6718
+ children: /* @__PURE__ */ i(Ie, { className: "size-4" })
6719
6719
  }
6720
6720
  )
6721
6721
  ] }),
6722
- /* @__PURE__ */ s(
6722
+ /* @__PURE__ */ i(
6723
6723
  Al,
6724
6724
  {
6725
6725
  value: t,
@@ -6727,30 +6727,30 @@ function Bl({
6727
6727
  placeholder: c(),
6728
6728
  hasError: !!o,
6729
6729
  leftIcon: u,
6730
- rightContent: t ? /* @__PURE__ */ s(
6730
+ rightContent: t ? /* @__PURE__ */ i(
6731
6731
  "button",
6732
6732
  {
6733
6733
  type: "button",
6734
6734
  onClick: l,
6735
6735
  className: "text-white/40 hover:text-white/60 transition-colors",
6736
- children: /* @__PURE__ */ s(Ie, { className: "size-5" })
6736
+ children: /* @__PURE__ */ i(Ie, { className: "size-5" })
6737
6737
  }
6738
- ) : /* @__PURE__ */ s(
6738
+ ) : /* @__PURE__ */ i(
6739
6739
  "button",
6740
6740
  {
6741
6741
  type: "button",
6742
- onClick: i,
6742
+ onClick: s,
6743
6743
  className: "text-white/40 hover:text-[var(--optimex-primary)] transition-colors",
6744
- children: /* @__PURE__ */ s(da, { className: "size-5" })
6744
+ children: /* @__PURE__ */ i(da, { className: "size-5" })
6745
6745
  }
6746
6746
  )
6747
6747
  }
6748
6748
  ),
6749
6749
  o ? /* @__PURE__ */ p("p", { className: "text-[10px] text-red-500 mt-2 flex items-center gap-1", children: [
6750
- /* @__PURE__ */ s(Cn, { className: "size-3" }),
6750
+ /* @__PURE__ */ i(Cn, { className: "size-3" }),
6751
6751
  o
6752
6752
  ] }) : /* @__PURE__ */ p("p", { className: "text-[10px] text-white/40 mt-2 flex items-center gap-1", children: [
6753
- /* @__PURE__ */ s(Cn, { className: "size-3" }),
6753
+ /* @__PURE__ */ i(Cn, { className: "size-3" }),
6754
6754
  "Ensure the address matches the ",
6755
6755
  d,
6756
6756
  " network."
@@ -6765,7 +6765,7 @@ function qn({
6765
6765
  onSelectToken: o,
6766
6766
  isLoading: a = !1,
6767
6767
  loadingText: l = "Loading...",
6768
- balance: i,
6768
+ balance: s,
6769
6769
  isOutput: c = !1,
6770
6770
  isWalletConnected: d = !1,
6771
6771
  usdValue: u = "$0.00"
@@ -6774,32 +6774,32 @@ function qn({
6774
6774
  if (r || !n) return;
6775
6775
  const y = m.target.value;
6776
6776
  /^[0-9]*\.?[0-9]*$/.test(y) && n(y);
6777
- }, g = d && !c && i !== void 0, w = () => {
6778
- if (!i || !n || r) return;
6779
- const m = (parseFloat(i) / 2).toString();
6777
+ }, g = d && !c && s !== void 0, w = () => {
6778
+ if (!s || !n || r) return;
6779
+ const m = (parseFloat(s) / 2).toString();
6780
6780
  n(m);
6781
6781
  }, b = () => {
6782
- !i || !n || r || n(i);
6782
+ !s || !n || r || n(s);
6783
6783
  };
6784
6784
  return /* @__PURE__ */ p("div", { className: "bg-[var(--optimex-surface)] rounded-2xl p-4 flex flex-col gap-2 border border-white/[0.02] focus-within:border-[var(--optimex-primary)]/40 transition-colors", children: [
6785
6785
  /* @__PURE__ */ p("div", { className: "flex justify-between items-center", children: [
6786
- /* @__PURE__ */ s("span", { className: "text-white/40 text-xs", children: c ? "To" : "From" }),
6787
- /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: g && /* @__PURE__ */ p(Ee, { children: [
6786
+ /* @__PURE__ */ i("span", { className: "text-white/40 text-xs", children: c ? "To" : "From" }),
6787
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: g && /* @__PURE__ */ p(Ee, { children: [
6788
6788
  /* @__PURE__ */ p("span", { className: "text-white/40 text-xs", children: [
6789
6789
  "Balance: ",
6790
- i,
6790
+ s,
6791
6791
  " ",
6792
6792
  e?.token_symbol
6793
6793
  ] }),
6794
6794
  /* @__PURE__ */ p("div", { className: "flex gap-2", children: [
6795
- /* @__PURE__ */ s(Qt, { onClick: w, children: "50%" }),
6796
- /* @__PURE__ */ s(Qt, { onClick: b, children: "Max" })
6795
+ /* @__PURE__ */ i(Qt, { onClick: w, children: "50%" }),
6796
+ /* @__PURE__ */ i(Qt, { onClick: b, children: "Max" })
6797
6797
  ] })
6798
6798
  ] }) })
6799
6799
  ] }),
6800
6800
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between gap-4", children: [
6801
6801
  /* @__PURE__ */ p("div", { className: "flex-1 min-w-0", children: [
6802
- /* @__PURE__ */ s(
6802
+ /* @__PURE__ */ i(
6803
6803
  "input",
6804
6804
  {
6805
6805
  type: "text",
@@ -6823,23 +6823,23 @@ function qn({
6823
6823
  className: "flex items-center gap-2 bg-white/5 hover:bg-white/10 p-2 pr-3 rounded-full transition-all border border-white/10 active:scale-95 shrink-0",
6824
6824
  children: [
6825
6825
  e ? /* @__PURE__ */ p(Ee, { children: [
6826
- /* @__PURE__ */ s($e, { token: e, size: "md" }),
6826
+ /* @__PURE__ */ i($e, { token: e, size: "md" }),
6827
6827
  /* @__PURE__ */ p("div", { className: "text-left", children: [
6828
- /* @__PURE__ */ s("p", { className: "text-white text-sm font-bold leading-none", children: e.token_symbol }),
6829
- /* @__PURE__ */ s("p", { className: "text-white/40 text-[10px] leading-none mt-1", children: e.network_name })
6828
+ /* @__PURE__ */ i("p", { className: "text-white text-sm font-bold leading-none", children: e.token_symbol }),
6829
+ /* @__PURE__ */ i("p", { className: "text-white/40 text-[10px] leading-none mt-1", children: e.network_name })
6830
6830
  ] })
6831
6831
  ] }) : /* @__PURE__ */ p(Ee, { children: [
6832
- /* @__PURE__ */ s("div", { className: "size-8 rounded-full bg-white/10" }),
6833
- /* @__PURE__ */ s("span", { className: "text-white text-sm font-bold", children: "Select" })
6832
+ /* @__PURE__ */ i("div", { className: "size-8 rounded-full bg-white/10" }),
6833
+ /* @__PURE__ */ i("span", { className: "text-white text-sm font-bold", children: "Select" })
6834
6834
  ] }),
6835
- /* @__PURE__ */ s(tr, { className: "size-4 text-white/20" })
6835
+ /* @__PURE__ */ i(tr, { className: "size-4 text-white/20" })
6836
6836
  ]
6837
6837
  }
6838
6838
  )
6839
6839
  ] }),
6840
6840
  a && /* @__PURE__ */ p("div", { className: "flex items-center justify-end gap-2 text-sm text-white/40", children: [
6841
- /* @__PURE__ */ s("div", { className: "size-3 animate-spin rounded-full border border-[var(--optimex-primary)] border-t-transparent" }),
6842
- /* @__PURE__ */ s("span", { children: l })
6841
+ /* @__PURE__ */ i("div", { className: "size-3 animate-spin rounded-full border border-[var(--optimex-primary)] border-t-transparent" }),
6842
+ /* @__PURE__ */ i("span", { children: l })
6843
6843
  ] })
6844
6844
  ] });
6845
6845
  }
@@ -6852,7 +6852,7 @@ function Fl({ value: e, onChange: t }) {
6852
6852
  a(!1), r(""), t(d);
6853
6853
  },
6854
6854
  [t]
6855
- ), i = V(
6855
+ ), s = V(
6856
6856
  (d) => {
6857
6857
  const u = d.target.value;
6858
6858
  if (u === "" || /^\d*\.?\d*$/.test(u)) {
@@ -6869,7 +6869,7 @@ function Fl({ value: e, onChange: t }) {
6869
6869
  }, [n, e]);
6870
6870
  return /* @__PURE__ */ p("div", { className: "space-y-3", children: [
6871
6871
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between", children: [
6872
- /* @__PURE__ */ s("span", { className: "text-sm font-medium text-[var(--optimex-text)]", children: "Slippage Tolerance" }),
6872
+ /* @__PURE__ */ i("span", { className: "text-sm font-medium text-[var(--optimex-text)]", children: "Slippage Tolerance" }),
6873
6873
  /* @__PURE__ */ p("span", { className: "text-sm text-[var(--optimex-text-secondary)]", children: [
6874
6874
  e,
6875
6875
  "%"
@@ -6894,24 +6894,24 @@ function Fl({ value: e, onChange: t }) {
6894
6894
  {
6895
6895
  className: `flex flex-1 items-center justify-center px-2 rounded-md transition-colors shadow-sm bg-zinc-800/80 border ${o ? "border-[var(--optimex-primary)]" : "border-transparent hover:bg-white/10"}`,
6896
6896
  children: [
6897
- /* @__PURE__ */ s(
6897
+ /* @__PURE__ */ i(
6898
6898
  "input",
6899
6899
  {
6900
6900
  type: "text",
6901
6901
  inputMode: "decimal",
6902
6902
  placeholder: "Custom",
6903
6903
  value: n,
6904
- onChange: i,
6904
+ onChange: s,
6905
6905
  onFocus: c,
6906
6906
  className: "w-full min-w-0 py-[6px] bg-transparent text-center text-xs outline-none placeholder:text-white/50 text-white"
6907
6907
  }
6908
6908
  ),
6909
- /* @__PURE__ */ s("span", { className: "text-xs text-white/50", children: "%" })
6909
+ /* @__PURE__ */ i("span", { className: "text-xs text-white/50", children: "%" })
6910
6910
  ]
6911
6911
  }
6912
6912
  )
6913
6913
  ] }),
6914
- e > 5 && /* @__PURE__ */ s("p", { className: "text-xs text-[var(--optimex-warning)]", children: "This may result in an unfavorable trade. Try lowering your slippage setting." })
6914
+ e > 5 && /* @__PURE__ */ i("p", { className: "text-xs text-[var(--optimex-warning)]", children: "This may result in an unfavorable trade. Try lowering your slippage setting." })
6915
6915
  ] });
6916
6916
  }
6917
6917
  function zl({
@@ -6927,7 +6927,7 @@ function zl({
6927
6927
  },
6928
6928
  [r]
6929
6929
  );
6930
- return /* @__PURE__ */ s(
6930
+ return /* @__PURE__ */ i(
6931
6931
  Rl,
6932
6932
  {
6933
6933
  isOpen: e,
@@ -6936,7 +6936,7 @@ function zl({
6936
6936
  position: "bottom-right",
6937
6937
  width: "w-96",
6938
6938
  ariaLabel: "Slippage settings",
6939
- children: /* @__PURE__ */ s(Fl, { value: n, onChange: a })
6939
+ children: /* @__PURE__ */ i(Fl, { value: n, onChange: a })
6940
6940
  }
6941
6941
  );
6942
6942
  }
@@ -6949,41 +6949,41 @@ function Vl({
6949
6949
  onHistoryClick: a,
6950
6950
  hideHistory: l = !1
6951
6951
  }) {
6952
- const i = Zn(null);
6952
+ const s = Zn(null);
6953
6953
  return /* @__PURE__ */ p("header", { className: "flex items-center justify-between px-2", children: [
6954
6954
  /* @__PURE__ */ p("div", { className: "flex items-center gap-3", children: [
6955
- /* @__PURE__ */ s("div", { className: "size-8 bg-[var(--optimex-primary)] rounded-lg flex items-center justify-center shadow-[0_0_15px_rgba(235,98,0,0.3)]", children: /* @__PURE__ */ s(la, { className: "w-5 h-auto text-white" }) }),
6956
- /* @__PURE__ */ s("h2", { className: "text-xl font-bold tracking-tight text-[var(--optimex-text)]", children: e })
6955
+ /* @__PURE__ */ i("div", { className: "size-8 bg-[var(--optimex-primary)] rounded-lg flex items-center justify-center shadow-[0_0_15px_rgba(235,98,0,0.3)]", children: /* @__PURE__ */ i(la, { className: "w-5 h-auto text-white" }) }),
6956
+ /* @__PURE__ */ i("h2", { className: "text-xl font-bold tracking-tight text-[var(--optimex-text)]", children: e })
6957
6957
  ] }),
6958
6958
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
6959
- !l && /* @__PURE__ */ s(
6959
+ !l && /* @__PURE__ */ i(
6960
6960
  "button",
6961
6961
  {
6962
6962
  onClick: a,
6963
6963
  className: "size-10 rounded-lg bg-white/5 hover:bg-white/10 text-white/60 hover:text-white transition-colors flex items-center justify-center",
6964
6964
  "aria-label": "Trade History",
6965
- children: /* @__PURE__ */ s(sa, { className: "size-5" })
6965
+ children: /* @__PURE__ */ i(ia, { className: "size-5" })
6966
6966
  }
6967
6967
  ),
6968
6968
  /* @__PURE__ */ p("div", { className: "relative", children: [
6969
- /* @__PURE__ */ s(
6969
+ /* @__PURE__ */ i(
6970
6970
  "button",
6971
6971
  {
6972
- ref: i,
6972
+ ref: s,
6973
6973
  onClick: o,
6974
6974
  className: "size-10 rounded-lg bg-white/5 hover:bg-white/10 text-white/60 hover:text-white transition-colors flex items-center justify-center",
6975
6975
  "aria-label": "Settings",
6976
- children: /* @__PURE__ */ s(pa, { className: "size-5" })
6976
+ children: /* @__PURE__ */ i(pa, { className: "size-5" })
6977
6977
  }
6978
6978
  ),
6979
- /* @__PURE__ */ s(
6979
+ /* @__PURE__ */ i(
6980
6980
  zl,
6981
6981
  {
6982
6982
  isOpen: r,
6983
6983
  onClose: () => o?.(),
6984
6984
  value: t,
6985
6985
  onChange: (c) => n?.(c),
6986
- anchorRef: i
6986
+ anchorRef: s
6987
6987
  }
6988
6988
  )
6989
6989
  ] })
@@ -6994,13 +6994,13 @@ function vo({
6994
6994
  onClick: e,
6995
6995
  disabled: t
6996
6996
  }) {
6997
- return /* @__PURE__ */ s("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-10", children: /* @__PURE__ */ s(
6997
+ return /* @__PURE__ */ i("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-10", children: /* @__PURE__ */ i(
6998
6998
  "button",
6999
6999
  {
7000
7000
  onClick: e,
7001
7001
  disabled: t,
7002
7002
  className: "size-10 rounded-full bg-[var(--optimex-surface)] border-4 border-white/5 flex items-center justify-center text-[var(--optimex-primary)] hover:scale-110 transition-all shadow-xl disabled:cursor-not-allowed",
7003
- children: /* @__PURE__ */ s(ra, { className: "size-5" })
7003
+ children: /* @__PURE__ */ i(ra, { className: "size-5" })
7004
7004
  }
7005
7005
  ) });
7006
7006
  }
@@ -7012,10 +7012,10 @@ function Wl({
7012
7012
  slippage: o,
7013
7013
  isFetching: a
7014
7014
  }) {
7015
- const [l, i] = ne(!1), [c, d] = ne(!1), u = V(() => {
7015
+ const [l, s] = ne(!1), [c, d] = ne(!1), u = V(() => {
7016
7016
  d((v) => !v);
7017
7017
  }, []), f = V(() => {
7018
- i((v) => !v);
7018
+ s((v) => !v);
7019
7019
  }, []), g = parseFloat(r) || 0, w = parseFloat(e.min_amount_out) / Math.pow(10, n.token_decimals), b = g > 0 ? w / g : 0, m = w > 0 ? g / w : 0;
7020
7020
  return /* @__PURE__ */ p("div", { className: "bg-white/[0.02] rounded-md border border-white/5 overflow-hidden", children: [
7021
7021
  /* @__PURE__ */ p(
@@ -7025,10 +7025,10 @@ function Wl({
7025
7025
  onClick: f,
7026
7026
  className: "w-full flex items-center justify-between p-3 text-xs cursor-pointer hover:bg-white/[0.02] transition-colors",
7027
7027
  children: [
7028
- /* @__PURE__ */ s("div", { className: "flex items-center gap-2 text-white/60 font-medium", children: a ? /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
7029
- /* @__PURE__ */ s("div", { className: "size-3 animate-spin rounded-full border border-[var(--optimex-primary)] border-t-transparent" }),
7030
- /* @__PURE__ */ s("span", { children: "Updating..." })
7031
- ] }) : /* @__PURE__ */ s(
7028
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-white/60 font-medium", children: a ? /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
7029
+ /* @__PURE__ */ i("div", { className: "size-3 animate-spin rounded-full border border-[var(--optimex-primary)] border-t-transparent" }),
7030
+ /* @__PURE__ */ i("span", { children: "Updating..." })
7031
+ ] }) : /* @__PURE__ */ i(
7032
7032
  "span",
7033
7033
  {
7034
7034
  role: "button",
@@ -7043,7 +7043,7 @@ function Wl({
7043
7043
  children: c ? `1 ${n.token_symbol} = ${m.toFixed(6)} ${t.token_symbol}` : `1 ${t.token_symbol} = ${b.toFixed(6)} ${n.token_symbol}`
7044
7044
  }
7045
7045
  ) }),
7046
- /* @__PURE__ */ s(
7046
+ /* @__PURE__ */ i(
7047
7047
  tr,
7048
7048
  {
7049
7049
  className: `size-4 text-white/40 transition-transform ${l ? "rotate-180" : ""}`
@@ -7054,7 +7054,7 @@ function Wl({
7054
7054
  ),
7055
7055
  l && /* @__PURE__ */ p("div", { className: "px-3 pb-3 space-y-2 text-xs border-t border-white/5", children: [
7056
7056
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between pt-3", children: [
7057
- /* @__PURE__ */ s("span", { className: "text-white/40", children: "Min. Received" }),
7057
+ /* @__PURE__ */ i("span", { className: "text-white/40", children: "Min. Received" }),
7058
7058
  /* @__PURE__ */ p("span", { className: "font-medium text-white", children: [
7059
7059
  _e(e.min_amount_out, n.token_decimals),
7060
7060
  " ",
@@ -7062,11 +7062,11 @@ function Wl({
7062
7062
  ] })
7063
7063
  ] }),
7064
7064
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between", children: [
7065
- /* @__PURE__ */ s("span", { className: "text-white/40", children: "Est. Time" }),
7066
- /* @__PURE__ */ s("span", { className: "font-medium text-[var(--optimex-primary)]", children: "~10 minutes" })
7065
+ /* @__PURE__ */ i("span", { className: "text-white/40", children: "Est. Time" }),
7066
+ /* @__PURE__ */ i("span", { className: "font-medium text-[var(--optimex-primary)]", children: "~10 minutes" })
7067
7067
  ] }),
7068
7068
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between", children: [
7069
- /* @__PURE__ */ s("span", { className: "text-white/40", children: "Slippage Tolerance" }),
7069
+ /* @__PURE__ */ i("span", { className: "text-white/40", children: "Slippage Tolerance" }),
7070
7070
  /* @__PURE__ */ p("span", { className: "font-medium text-white", children: [
7071
7071
  o,
7072
7072
  "%"
@@ -7080,12 +7080,12 @@ function jl({
7080
7080
  disabled: t,
7081
7081
  onClick: n
7082
7082
  }) {
7083
- return /* @__PURE__ */ s(
7083
+ return /* @__PURE__ */ i(
7084
7084
  "button",
7085
7085
  {
7086
7086
  disabled: t,
7087
7087
  onClick: n,
7088
- className: "w-full font-semibold text-black bg-gradient-to-r from-[var(--optimex-primary)] to-[#d45800] hover:brightness-110 py-4 rounded-md shadow-lg shadow-[var(--optimex-primary)]/30 flex items-center justify-center transition-all active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-50",
7088
+ className: "w-full font-semibold text-black bg-[var(--optimex-primary)] hover:bg-[var(--optimex-primary-hover)] hover:brightness-110 py-4 rounded-md shadow-lg shadow-[var(--optimex-primary)]/30 flex items-center justify-center transition-all active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-50",
7089
7089
  children: e
7090
7090
  }
7091
7091
  );
@@ -7099,8 +7099,8 @@ function Hl() {
7099
7099
  rel: "noopener noreferrer",
7100
7100
  className: "flex items-center justify-center gap-1.5 text-[var(--optimex-text-secondary)] text-[10px] opacity-50 hover:opacity-70 transition-opacity",
7101
7101
  children: [
7102
- /* @__PURE__ */ s("span", { children: "Powered by" }),
7103
- /* @__PURE__ */ s(ca, { className: "h-3 w-auto" })
7102
+ /* @__PURE__ */ i("span", { children: "Powered by" }),
7103
+ /* @__PURE__ */ i(ca, { className: "h-3 w-auto" })
7104
7104
  ]
7105
7105
  }
7106
7106
  );
@@ -7110,8 +7110,8 @@ function Ul({
7110
7110
  onChange: t,
7111
7111
  placeholder: n = "Search by name or symbol..."
7112
7112
  }) {
7113
- return /* @__PURE__ */ s("div", { className: "p-4 pb-3", children: /* @__PURE__ */ p("div", { className: "relative", children: [
7114
- /* @__PURE__ */ s(
7113
+ return /* @__PURE__ */ i("div", { className: "p-4 pb-3", children: /* @__PURE__ */ p("div", { className: "relative", children: [
7114
+ /* @__PURE__ */ i(
7115
7115
  "input",
7116
7116
  {
7117
7117
  type: "text",
@@ -7121,14 +7121,14 @@ function Ul({
7121
7121
  className: "w-full rounded-xl bg-white/5 border border-white/10 px-4 py-3 pl-10 pr-10 text-white outline-none placeholder:text-white/30 transition-colors hover:border-[var(--optimex-primary)] focus:border-[var(--optimex-primary)]"
7122
7122
  }
7123
7123
  ),
7124
- /* @__PURE__ */ s(ma, { className: "absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-white/40" }),
7125
- e && /* @__PURE__ */ s(
7124
+ /* @__PURE__ */ i(ma, { className: "absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-white/40" }),
7125
+ e && /* @__PURE__ */ i(
7126
7126
  "button",
7127
7127
  {
7128
7128
  type: "button",
7129
7129
  onClick: () => t(""),
7130
7130
  className: "absolute right-3 top-1/2 -translate-y-1/2 text-white/40 hover:text-white/60 transition-colors",
7131
- children: /* @__PURE__ */ s(Ie, { className: "size-5" })
7131
+ children: /* @__PURE__ */ i(Ie, { className: "size-5" })
7132
7132
  }
7133
7133
  )
7134
7134
  ] }) });
@@ -7139,7 +7139,7 @@ function ql({
7139
7139
  onSelectNetwork: n
7140
7140
  }) {
7141
7141
  return /* @__PURE__ */ p("div", { className: "w-1/3 min-w-[140px] border-r border-white/[0.05] overflow-y-auto p-2", children: [
7142
- /* @__PURE__ */ s("div", { className: "mb-2 px-2 text-xs font-medium uppercase tracking-wider text-white/40", children: "Networks" }),
7142
+ /* @__PURE__ */ i("div", { className: "mb-2 px-2 text-xs font-medium uppercase tracking-wider text-white/40", children: "Networks" }),
7143
7143
  /* @__PURE__ */ p("div", { className: "space-y-1 px-2", children: [
7144
7144
  /* @__PURE__ */ p(
7145
7145
  "button",
@@ -7147,12 +7147,12 @@ function ql({
7147
7147
  onClick: () => n(null),
7148
7148
  className: `flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm transition-colors ${t === null ? "bg-white/5 text-white" : "text-white/60 hover:bg-white/5 hover:text-white"}`,
7149
7149
  children: [
7150
- /* @__PURE__ */ s(na, {}),
7151
- /* @__PURE__ */ s("span", { children: "All" })
7150
+ /* @__PURE__ */ i(na, {}),
7151
+ /* @__PURE__ */ i("span", { children: "All" })
7152
7152
  ]
7153
7153
  }
7154
7154
  ),
7155
- e.map((r) => /* @__PURE__ */ s(
7155
+ e.map((r) => /* @__PURE__ */ i(
7156
7156
  Gl,
7157
7157
  {
7158
7158
  network: r,
@@ -7171,7 +7171,7 @@ function Gl({ network: e, isSelected: t, onSelect: n }) {
7171
7171
  onClick: n,
7172
7172
  className: `flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm transition-colors ${t ? "bg-white/5 text-white" : "text-white/60 hover:bg-white/5 hover:text-white"}`,
7173
7173
  children: [
7174
- e.logo_uri ? /* @__PURE__ */ s(
7174
+ e.logo_uri ? /* @__PURE__ */ i(
7175
7175
  "img",
7176
7176
  {
7177
7177
  src: e.logo_uri,
@@ -7181,8 +7181,8 @@ function Gl({ network: e, isSelected: t, onSelect: n }) {
7181
7181
  r.target.style.display = "none";
7182
7182
  }
7183
7183
  }
7184
- ) : /* @__PURE__ */ s("div", { className: "h-6 w-6 rounded-full bg-white/10" }),
7185
- /* @__PURE__ */ s("span", { className: "truncate", children: e.name })
7184
+ ) : /* @__PURE__ */ i("div", { className: "h-6 w-6 rounded-full bg-white/10" }),
7185
+ /* @__PURE__ */ i("span", { className: "truncate", children: e.name })
7186
7186
  ]
7187
7187
  }
7188
7188
  );
@@ -7194,9 +7194,9 @@ function Kl({
7194
7194
  maxVisible: r = 12
7195
7195
  }) {
7196
7196
  return /* @__PURE__ */ p("div", { className: "border-b border-white/[0.05] p-2", children: [
7197
- /* @__PURE__ */ s("div", { className: "mb-2 px-2 text-xs font-medium uppercase tracking-wider text-white/40", children: "Tokens" }),
7197
+ /* @__PURE__ */ i("div", { className: "mb-2 px-2 text-xs font-medium uppercase tracking-wider text-white/40", children: "Tokens" }),
7198
7198
  /* @__PURE__ */ p("div", { className: "flex flex-wrap gap-1.5 overflow-hidden max-h-[5rem]", children: [
7199
- /* @__PURE__ */ s(
7199
+ /* @__PURE__ */ i(
7200
7200
  "button",
7201
7201
  {
7202
7202
  onClick: () => n(null),
@@ -7204,7 +7204,7 @@ function Kl({
7204
7204
  children: "All"
7205
7205
  }
7206
7206
  ),
7207
- e.slice(0, r).map((o) => /* @__PURE__ */ s(
7207
+ e.slice(0, r).map((o) => /* @__PURE__ */ i(
7208
7208
  Yl,
7209
7209
  {
7210
7210
  token: o,
@@ -7230,7 +7230,7 @@ function Yl({
7230
7230
  t ? "border-[var(--optimex-primary)] text-white" : "border-transparent text-white/60 hover:bg-white/10 hover:text-white"
7231
7231
  ),
7232
7232
  children: [
7233
- e.token_logo_uri && /* @__PURE__ */ s(
7233
+ e.token_logo_uri && /* @__PURE__ */ i(
7234
7234
  "img",
7235
7235
  {
7236
7236
  src: e.token_logo_uri,
@@ -7328,9 +7328,9 @@ async function nc(e, t) {
7328
7328
  const r = `${Zl(e.network_id)}/address/${t}`, o = await fetch(r);
7329
7329
  if (!o.ok)
7330
7330
  throw new Error(`Mempool API request failed: ${o.status}`);
7331
- const a = await o.json(), l = a.chain_stats.funded_txo_sum - a.chain_stats.spent_txo_sum, i = a.mempool_stats.funded_txo_sum - a.mempool_stats.spent_txo_sum;
7331
+ const a = await o.json(), l = a.chain_stats.funded_txo_sum - a.chain_stats.spent_txo_sum, s = a.mempool_stats.funded_txo_sum - a.mempool_stats.spent_txo_sum;
7332
7332
  return {
7333
- rawBalance: (l + i).toString(),
7333
+ rawBalance: (l + s).toString(),
7334
7334
  isNative: !0
7335
7335
  // Bitcoin is always native
7336
7336
  };
@@ -7374,8 +7374,8 @@ async function oc(e, t, n) {
7374
7374
  throw new Error(`RPC error: ${o.error.message}`);
7375
7375
  const a = o.result?.value || [];
7376
7376
  let l = BigInt(0);
7377
- for (const i of a) {
7378
- const c = i.account.data.parsed.info.tokenAmount.amount;
7377
+ for (const s of a) {
7378
+ const c = s.account.data.parsed.info.tokenAmount.amount;
7379
7379
  l += BigInt(c);
7380
7380
  }
7381
7381
  return l.toString();
@@ -7392,7 +7392,7 @@ async function ac(e, t) {
7392
7392
  isNative: r
7393
7393
  };
7394
7394
  }
7395
- function sc(e, t) {
7395
+ function ic(e, t) {
7396
7396
  if (!t) return !1;
7397
7397
  switch (t) {
7398
7398
  case X.EVM:
@@ -7405,7 +7405,7 @@ function sc(e, t) {
7405
7405
  return !1;
7406
7406
  }
7407
7407
  }
7408
- function ic(e) {
7408
+ function sc(e) {
7409
7409
  if (!e) return "";
7410
7410
  switch (e) {
7411
7411
  case X.EVM:
@@ -7470,7 +7470,7 @@ function xo({
7470
7470
  polling: r = !1,
7471
7471
  pollingInterval: o = uc
7472
7472
  }) {
7473
- const a = n && !!e && !!t, { data: l, isLoading: i, isFetching: c, error: d, refetch: u } = qe({
7473
+ const a = n && !!e && !!t, { data: l, isLoading: s, isFetching: c, error: d, refetch: u } = qe({
7474
7474
  queryKey: fc(e, t),
7475
7475
  queryFn: () => cc(e, t),
7476
7476
  enabled: a,
@@ -7483,7 +7483,7 @@ function xo({
7483
7483
  return {
7484
7484
  balance: l,
7485
7485
  formattedBalance: l?.formattedBalance || "0",
7486
- isLoading: a && i,
7486
+ isLoading: a && s,
7487
7487
  isFetching: a && c,
7488
7488
  error: d,
7489
7489
  refetch: u
@@ -7495,7 +7495,7 @@ function mc({
7495
7495
  isDisabled: n,
7496
7496
  onSelect: r
7497
7497
  }) {
7498
- const o = at(), a = lc(o, e.network_type), { formattedBalance: l, isLoading: i } = xo({
7498
+ const o = at(), a = lc(o, e.network_type), { formattedBalance: l, isLoading: s } = xo({
7499
7499
  token: e,
7500
7500
  walletAddress: a,
7501
7501
  enabled: !!a
@@ -7507,15 +7507,15 @@ function mc({
7507
7507
  disabled: n,
7508
7508
  className: `flex w-full items-center gap-3 rounded-lg p-2 transition-colors ${t ? "bg-white/5 text-white" : n ? "cursor-not-allowed opacity-50" : "hover:bg-white/5"}`,
7509
7509
  children: [
7510
- /* @__PURE__ */ s($e, { token: e }),
7510
+ /* @__PURE__ */ i($e, { token: e }),
7511
7511
  /* @__PURE__ */ p("div", { className: "flex-1 text-left", children: [
7512
- /* @__PURE__ */ s("div", { className: "text-sm text-white/40", children: e.token_name }),
7512
+ /* @__PURE__ */ i("div", { className: "text-sm text-white/40", children: e.token_name }),
7513
7513
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
7514
- c && /* @__PURE__ */ s("span", { className: "text-sm font-medium text-white", children: i ? /* @__PURE__ */ s("span", { className: "inline-block h-4 w-12 animate-pulse rounded bg-white/10" }) : l }),
7515
- /* @__PURE__ */ s("span", { className: "font-medium text-white", children: e.token_symbol })
7514
+ c && /* @__PURE__ */ i("span", { className: "text-sm font-medium text-white", children: s ? /* @__PURE__ */ i("span", { className: "inline-block h-4 w-12 animate-pulse rounded bg-white/10" }) : l }),
7515
+ /* @__PURE__ */ i("span", { className: "font-medium text-white", children: e.token_symbol })
7516
7516
  ] })
7517
7517
  ] }),
7518
- t && /* @__PURE__ */ s(rn, { className: "h-5 w-5 text-[var(--optimex-primary)]" })
7518
+ t && /* @__PURE__ */ i(rn, { className: "h-5 w-5 text-[var(--optimex-primary)]" })
7519
7519
  ]
7520
7520
  }
7521
7521
  );
@@ -7529,17 +7529,17 @@ function pc({
7529
7529
  emptyMessage: a = "No tokens available",
7530
7530
  onSelect: l
7531
7531
  }) {
7532
- return o ? /* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto p-2", children: /* @__PURE__ */ s("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ s("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-[var(--optimex-primary)] border-t-transparent" }) }) }) : e.length === 0 ? /* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto p-2", children: /* @__PURE__ */ s("div", { className: "py-8 text-center text-white/40", children: a }) }) : /* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto p-2", children: /* @__PURE__ */ s("div", { className: "space-y-1", children: e.map((i) => {
7533
- const c = n === i.token_id || r?.has(i.token_id) === !0;
7534
- return /* @__PURE__ */ s(
7532
+ return o ? /* @__PURE__ */ i("div", { className: "flex-1 overflow-y-auto p-2", children: /* @__PURE__ */ i("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ i("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-[var(--optimex-primary)] border-t-transparent" }) }) }) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex-1 overflow-y-auto p-2", children: /* @__PURE__ */ i("div", { className: "py-8 text-center text-white/40", children: a }) }) : /* @__PURE__ */ i("div", { className: "flex-1 overflow-y-auto p-2", children: /* @__PURE__ */ i("div", { className: "space-y-1", children: e.map((s) => {
7533
+ const c = n === s.token_id || r?.has(s.token_id) === !0;
7534
+ return /* @__PURE__ */ i(
7535
7535
  mc,
7536
7536
  {
7537
- token: i,
7538
- isSelected: t === i.token_id,
7537
+ token: s,
7538
+ isSelected: t === s.token_id,
7539
7539
  isDisabled: c,
7540
- onSelect: () => l(i)
7540
+ onSelect: () => l(s)
7541
7541
  },
7542
- i.token_id
7542
+ s.token_id
7543
7543
  );
7544
7544
  }) }) });
7545
7545
  }
@@ -7551,7 +7551,7 @@ function hc({
7551
7551
  isLoading: o,
7552
7552
  selectedToken: a,
7553
7553
  disabledTokenId: l,
7554
- disabledTokenIds: i,
7554
+ disabledTokenIds: s,
7555
7555
  tokens: c,
7556
7556
  emptyMessage: d,
7557
7557
  title: u = "Select Token",
@@ -7582,7 +7582,7 @@ function hc({
7582
7582
  }, C = (O) => {
7583
7583
  n(O), t(), N();
7584
7584
  };
7585
- return /* @__PURE__ */ s(
7585
+ return /* @__PURE__ */ i(
7586
7586
  dn,
7587
7587
  {
7588
7588
  open: e,
@@ -7592,9 +7592,9 @@ function hc({
7592
7592
  title: u,
7593
7593
  className: "h-full md:h-[70vh] max-h-[600px] w-full max-w-2xl",
7594
7594
  children: /* @__PURE__ */ p("div", { className: "flex h-full flex-col", children: [
7595
- /* @__PURE__ */ s(Ul, { value: g, onChange: w }),
7595
+ /* @__PURE__ */ i(Ul, { value: g, onChange: w }),
7596
7596
  /* @__PURE__ */ p("div", { className: "flex flex-1 overflow-hidden", children: [
7597
- /* @__PURE__ */ s(
7597
+ /* @__PURE__ */ i(
7598
7598
  ql,
7599
7599
  {
7600
7600
  networks: k,
@@ -7605,7 +7605,7 @@ function hc({
7605
7605
  }
7606
7606
  ),
7607
7607
  /* @__PURE__ */ p("div", { className: "flex flex-1 flex-col overflow-hidden pl-2", children: [
7608
- /* @__PURE__ */ s(
7608
+ /* @__PURE__ */ i(
7609
7609
  Kl,
7610
7610
  {
7611
7611
  tokens: M,
@@ -7613,13 +7613,13 @@ function hc({
7613
7613
  onSelectSymbol: v
7614
7614
  }
7615
7615
  ),
7616
- /* @__PURE__ */ s(
7616
+ /* @__PURE__ */ i(
7617
7617
  pc,
7618
7618
  {
7619
7619
  tokens: $,
7620
7620
  selectedTokenId: a?.token_id,
7621
7621
  disabledTokenId: l,
7622
- disabledTokenIds: i,
7622
+ disabledTokenIds: s,
7623
7623
  isLoading: o,
7624
7624
  emptyMessage: g ? "No tokens found" : d ?? "No tokens available",
7625
7625
  onSelect: C
@@ -7639,12 +7639,12 @@ function Gn({
7639
7639
  highlight: o = !1,
7640
7640
  usdValue: a = "$0.00"
7641
7641
  }) {
7642
- return /* @__PURE__ */ s(
7642
+ return /* @__PURE__ */ i(
7643
7643
  "div",
7644
7644
  {
7645
7645
  className: `p-4 rounded-xl border transition-all duration-200 ${o ? "bg-zinc-900/50 border-[var(--optimex-primary)]/20 shadow-[0_0_15px_rgba(235,98,0,0.1)]" : "bg-zinc-900/50 border-white/5"}`,
7646
7646
  children: /* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: [
7647
- /* @__PURE__ */ s("div", { className: "size-12 flex items-center justify-center ", children: /* @__PURE__ */ s($e, { token: e, size: "lg" }) }),
7647
+ /* @__PURE__ */ i("div", { className: "size-12 flex items-center justify-center ", children: /* @__PURE__ */ i($e, { token: e, size: "lg" }) }),
7648
7648
  /* @__PURE__ */ p("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
7649
7649
  /* @__PURE__ */ p(
7650
7650
  "p",
@@ -7657,12 +7657,12 @@ function Gn({
7657
7657
  ]
7658
7658
  }
7659
7659
  ),
7660
- /* @__PURE__ */ s("p", { className: "text-white text-sm font-semibold truncate", children: e.token_symbol }),
7661
- /* @__PURE__ */ s("p", { className: "text-zinc-500 text-xs truncate", children: e.network_name })
7660
+ /* @__PURE__ */ i("p", { className: "text-white text-sm font-semibold truncate", children: e.token_symbol }),
7661
+ /* @__PURE__ */ i("p", { className: "text-zinc-500 text-xs truncate", children: e.network_name })
7662
7662
  ] }),
7663
7663
  /* @__PURE__ */ p("div", { className: "flex flex-col items-end gap-0.5 ml-auto shrink-0", children: [
7664
- /* @__PURE__ */ s("p", { className: "text-white text-lg font-bold", children: r ? `~${t}` : t }),
7665
- /* @__PURE__ */ s("p", { className: "text-zinc-400 text-xs", children: a })
7664
+ /* @__PURE__ */ i("p", { className: "text-white text-lg font-bold", children: r ? `~${t}` : t }),
7665
+ /* @__PURE__ */ i("p", { className: "text-zinc-400 text-xs", children: a })
7666
7666
  ] })
7667
7667
  ] })
7668
7668
  }
@@ -7677,7 +7677,7 @@ function gc({
7677
7677
  toUsdValue: a = "$0.00"
7678
7678
  }) {
7679
7679
  return /* @__PURE__ */ p("div", { className: "relative flex flex-col gap-2", children: [
7680
- /* @__PURE__ */ s(
7680
+ /* @__PURE__ */ i(
7681
7681
  Gn,
7682
7682
  {
7683
7683
  token: e,
@@ -7686,9 +7686,9 @@ function gc({
7686
7686
  usdValue: o
7687
7687
  }
7688
7688
  ),
7689
- /* @__PURE__ */ s(vo, { onClick: () => {
7689
+ /* @__PURE__ */ i(vo, { onClick: () => {
7690
7690
  }, disabled: !0 }),
7691
- /* @__PURE__ */ s(
7691
+ /* @__PURE__ */ i(
7692
7692
  Gn,
7693
7693
  {
7694
7694
  token: t,
@@ -7705,8 +7705,8 @@ function Ut({ label: e, value: t, borderTop: n }) {
7705
7705
  {
7706
7706
  className: `flex justify-between items-center text-sm ${n ? "pt-2 mt-2 border-t border-white/5" : ""}`,
7707
7707
  children: [
7708
- /* @__PURE__ */ s("span", { className: "text-zinc-500", children: e }),
7709
- /* @__PURE__ */ s("div", { className: "flex items-center gap-1 text-white font-medium", children: t })
7708
+ /* @__PURE__ */ i("span", { className: "text-zinc-500", children: e }),
7709
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-1 text-white font-medium", children: t })
7710
7710
  ]
7711
7711
  }
7712
7712
  );
@@ -7718,18 +7718,18 @@ function vc({
7718
7718
  networkFee: r = "Included"
7719
7719
  }) {
7720
7720
  return /* @__PURE__ */ p("div", { className: "bg-[var(--optimex-surface)] rounded-xl p-4 border border-white/5 space-y-3", children: [
7721
- /* @__PURE__ */ s(Ut, { label: "Min. Received", value: e }),
7722
- /* @__PURE__ */ s(
7721
+ /* @__PURE__ */ i(Ut, { label: "Min. Received", value: e }),
7722
+ /* @__PURE__ */ i(
7723
7723
  Ut,
7724
7724
  {
7725
7725
  label: "Estimated Time",
7726
7726
  value: /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
7727
- /* @__PURE__ */ s("div", { className: "size-2 bg-[var(--optimex-primary)] rounded-full animate-pulse shadow-[0_0_8px_rgba(235,98,0,0.8)]" }),
7728
- /* @__PURE__ */ s("span", { children: t })
7727
+ /* @__PURE__ */ i("div", { className: "size-2 bg-[var(--optimex-primary)] rounded-full animate-pulse shadow-[0_0_8px_rgba(235,98,0,0.8)]" }),
7728
+ /* @__PURE__ */ i("span", { children: t })
7729
7729
  ] })
7730
7730
  }
7731
7731
  ),
7732
- /* @__PURE__ */ s(Ut, { label: "Slippage Tolerance", value: n })
7732
+ /* @__PURE__ */ i(Ut, { label: "Slippage Tolerance", value: n })
7733
7733
  ] });
7734
7734
  }
7735
7735
  const wc = 3e4, bc = 6e4;
@@ -7752,10 +7752,10 @@ function yt({
7752
7752
  price: r ?? null,
7753
7753
  isLoading: o,
7754
7754
  isError: a,
7755
- calculateUsdValue: (i) => {
7756
- if (!r || !i || isNaN(parseFloat(i)))
7755
+ calculateUsdValue: (s) => {
7756
+ if (!r || !s || isNaN(parseFloat(s)))
7757
7757
  return "$0.00";
7758
- const c = parseFloat(i);
7758
+ const c = parseFloat(s);
7759
7759
  if (c === 0)
7760
7760
  return "$0.00";
7761
7761
  const d = c * r;
@@ -7771,7 +7771,7 @@ function xc({
7771
7771
  toToken: o,
7772
7772
  amountIn: a,
7773
7773
  quote: l,
7774
- slippage: i,
7774
+ slippage: s,
7775
7775
  stage: c,
7776
7776
  receivingAddress: d = ""
7777
7777
  }) {
@@ -7797,7 +7797,7 @@ function xc({
7797
7797
  className: "w-full max-w-md",
7798
7798
  children: [
7799
7799
  /* @__PURE__ */ p(Sl, { className: "space-y-3", children: [
7800
- /* @__PURE__ */ s(
7800
+ /* @__PURE__ */ i(
7801
7801
  gc,
7802
7802
  {
7803
7803
  fromToken: r,
@@ -7808,15 +7808,15 @@ function xc({
7808
7808
  toUsdValue: v
7809
7809
  }
7810
7810
  ),
7811
- /* @__PURE__ */ s(
7811
+ /* @__PURE__ */ i(
7812
7812
  vc,
7813
7813
  {
7814
7814
  minReceived: `${w} ${o.token_symbol}`,
7815
7815
  estimatedTime: "~10 minutes",
7816
- slippage: `${i}%`
7816
+ slippage: `${s}%`
7817
7817
  }
7818
7818
  ),
7819
- d && /* @__PURE__ */ s("div", { className: "bg-[var(--optimex-surface)] rounded-xl px-2 border border-white/5", children: /* @__PURE__ */ s(
7819
+ d && /* @__PURE__ */ i("div", { className: "bg-[var(--optimex-surface)] rounded-xl px-2 border border-white/5", children: /* @__PURE__ */ i(
7820
7820
  va,
7821
7821
  {
7822
7822
  icon: rr,
@@ -7825,8 +7825,8 @@ function xc({
7825
7825
  }
7826
7826
  ) })
7827
7827
  ] }),
7828
- /* @__PURE__ */ s(El, { children: /* @__PURE__ */ s(
7829
- ds,
7828
+ /* @__PURE__ */ i(El, { children: /* @__PURE__ */ i(
7829
+ di,
7830
7830
  {
7831
7831
  state: u ? "processing" : f ? "success" : g ? "error" : "idle",
7832
7832
  onConfirm: f ? t : n,
@@ -7838,9 +7838,9 @@ function xc({
7838
7838
  );
7839
7839
  }
7840
7840
  function yc({ swap: e }) {
7841
- const { tokens: t, modals: n, tokenSelect: r, actions: o, input: a, quote: l, execution: i } = e;
7841
+ const { tokens: t, modals: n, tokenSelect: r, actions: o, input: a, quote: l, execution: s } = e;
7842
7842
  return /* @__PURE__ */ p(Ee, { children: [
7843
- /* @__PURE__ */ s(
7843
+ /* @__PURE__ */ i(
7844
7844
  hc,
7845
7845
  {
7846
7846
  isOpen: n.tokenSelect.isOpen,
@@ -7855,7 +7855,7 @@ function yc({ swap: e }) {
7855
7855
  title: r.type === "from" ? "Select Source Token" : "Select Destination Token"
7856
7856
  }
7857
7857
  ),
7858
- l.data && t.from && t.to && /* @__PURE__ */ s(
7858
+ l.data && t.from && t.to && /* @__PURE__ */ i(
7859
7859
  xc,
7860
7860
  {
7861
7861
  isOpen: n.confirm.isOpen,
@@ -7866,9 +7866,9 @@ function yc({ swap: e }) {
7866
7866
  amountIn: a.amount,
7867
7867
  quote: l.data,
7868
7868
  slippage: a.slippage,
7869
- stage: i.stage,
7870
- txHash: i.txHash,
7871
- error: i.error,
7869
+ stage: s.stage,
7870
+ txHash: s.txHash,
7871
+ error: s.error,
7872
7872
  receivingAddress: e.addresses.receiving
7873
7873
  }
7874
7874
  )
@@ -7903,13 +7903,13 @@ function mn({ status: e }) {
7903
7903
  {
7904
7904
  className: `flex items-center gap-1.5 px-2.5 py-1 rounded-full ${o}`,
7905
7905
  children: [
7906
- /* @__PURE__ */ s(
7906
+ /* @__PURE__ */ i(
7907
7907
  n,
7908
7908
  {
7909
7909
  className: `w-4 h-4 ${a} ${l ? "animate-spin" : ""}`
7910
7910
  }
7911
7911
  ),
7912
- /* @__PURE__ */ s("span", { className: `text-xs font-medium ${a}`, children: r })
7912
+ /* @__PURE__ */ i("span", { className: `text-xs font-medium ${a}`, children: r })
7913
7913
  ]
7914
7914
  }
7915
7915
  );
@@ -7917,29 +7917,29 @@ function mn({ status: e }) {
7917
7917
  function Cc({ onClose: e }) {
7918
7918
  return /* @__PURE__ */ p("div", { className: "bg-[var(--optimex-surface)] border border-[var(--optimex-border)] rounded-xl p-4 mt-3", children: [
7919
7919
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between mb-3", children: [
7920
- /* @__PURE__ */ s("span", { className: "text-xs text-[var(--optimex-text-secondary)] font-medium", children: "Recent Trade" }),
7920
+ /* @__PURE__ */ i("span", { className: "text-xs text-[var(--optimex-text-secondary)] font-medium", children: "Recent Trade" }),
7921
7921
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
7922
- /* @__PURE__ */ s(mn, { status: "pending" }),
7923
- e && /* @__PURE__ */ s(
7922
+ /* @__PURE__ */ i(mn, { status: "pending" }),
7923
+ e && /* @__PURE__ */ i(
7924
7924
  "button",
7925
7925
  {
7926
7926
  onClick: e,
7927
7927
  className: "text-[var(--optimex-text-secondary)] hover:text-[var(--optimex-text)] transition-colors cursor-pointer",
7928
7928
  "aria-label": "Close",
7929
- children: /* @__PURE__ */ s(Ie, { className: "w-4 h-4" })
7929
+ children: /* @__PURE__ */ i(Ie, { className: "w-4 h-4" })
7930
7930
  }
7931
7931
  )
7932
7932
  ] })
7933
7933
  ] }),
7934
7934
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between", children: [
7935
7935
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
7936
- /* @__PURE__ */ s("div", { className: "w-6 h-6 rounded-full bg-[var(--optimex-border)] animate-pulse" }),
7936
+ /* @__PURE__ */ i("div", { className: "w-6 h-6 rounded-full bg-[var(--optimex-border)] animate-pulse" }),
7937
7937
  /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: [
7938
- /* @__PURE__ */ s("div", { className: "w-16 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
7939
- /* @__PURE__ */ s("div", { className: "w-10 h-3 bg-[var(--optimex-border)] rounded animate-pulse" })
7938
+ /* @__PURE__ */ i("div", { className: "w-16 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
7939
+ /* @__PURE__ */ i("div", { className: "w-10 h-3 bg-[var(--optimex-border)] rounded animate-pulse" })
7940
7940
  ] })
7941
7941
  ] }),
7942
- /* @__PURE__ */ s("div", { className: "flex items-center px-3", children: /* @__PURE__ */ s(
7942
+ /* @__PURE__ */ i("div", { className: "flex items-center px-3", children: /* @__PURE__ */ i(
7943
7943
  "svg",
7944
7944
  {
7945
7945
  className: "w-5 h-5 text-[var(--optimex-text-secondary)]",
@@ -7947,7 +7947,7 @@ function Cc({ onClose: e }) {
7947
7947
  viewBox: "0 0 24 24",
7948
7948
  stroke: "currentColor",
7949
7949
  strokeWidth: 2,
7950
- children: /* @__PURE__ */ s(
7950
+ children: /* @__PURE__ */ i(
7951
7951
  "path",
7952
7952
  {
7953
7953
  strokeLinecap: "round",
@@ -7959,10 +7959,10 @@ function Cc({ onClose: e }) {
7959
7959
  ) }),
7960
7960
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
7961
7961
  /* @__PURE__ */ p("div", { className: "flex flex-col items-end gap-1", children: [
7962
- /* @__PURE__ */ s("div", { className: "w-16 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
7963
- /* @__PURE__ */ s("div", { className: "w-10 h-3 bg-[var(--optimex-border)] rounded animate-pulse" })
7962
+ /* @__PURE__ */ i("div", { className: "w-16 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
7963
+ /* @__PURE__ */ i("div", { className: "w-10 h-3 bg-[var(--optimex-border)] rounded animate-pulse" })
7964
7964
  ] }),
7965
- /* @__PURE__ */ s("div", { className: "w-6 h-6 rounded-full bg-[var(--optimex-border)] animate-pulse" })
7965
+ /* @__PURE__ */ i("div", { className: "w-6 h-6 rounded-full bg-[var(--optimex-border)] animate-pulse" })
7966
7966
  ] })
7967
7967
  ] })
7968
7968
  ] });
@@ -7974,36 +7974,36 @@ function kc({
7974
7974
  onClose: r
7975
7975
  }) {
7976
7976
  if (n || !e)
7977
- return /* @__PURE__ */ s(Cc, { onClose: r });
7978
- const o = e.from_token, a = e.to_token, l = _e(e.amount_in, o.token_decimals), i = _e(
7977
+ return /* @__PURE__ */ i(Cc, { onClose: r });
7978
+ const o = e.from_token, a = e.to_token, l = _e(e.amount_in, o.token_decimals), s = _e(
7979
7979
  e.min_amount_out,
7980
7980
  a.token_decimals
7981
7981
  );
7982
7982
  return /* @__PURE__ */ p("div", { className: "bg-[var(--optimex-surface)] border border-[var(--optimex-border)] rounded-xl p-4 mt-3", children: [
7983
7983
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between mb-3", children: [
7984
- /* @__PURE__ */ s("span", { className: "text-xs text-[var(--optimex-text-secondary)] font-medium", children: "Recent Trade" }),
7984
+ /* @__PURE__ */ i("span", { className: "text-xs text-[var(--optimex-text-secondary)] font-medium", children: "Recent Trade" }),
7985
7985
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
7986
- /* @__PURE__ */ s(mn, { status: t }),
7987
- r && /* @__PURE__ */ s(
7986
+ /* @__PURE__ */ i(mn, { status: t }),
7987
+ r && /* @__PURE__ */ i(
7988
7988
  "button",
7989
7989
  {
7990
7990
  onClick: r,
7991
7991
  className: "text-[var(--optimex-text-secondary)] hover:text-[var(--optimex-text)] transition-colors cursor-pointer",
7992
7992
  "aria-label": "Close",
7993
- children: /* @__PURE__ */ s(Ie, { className: "w-4 h-4" })
7993
+ children: /* @__PURE__ */ i(Ie, { className: "w-4 h-4" })
7994
7994
  }
7995
7995
  )
7996
7996
  ] })
7997
7997
  ] }),
7998
7998
  /* @__PURE__ */ p("div", { className: "flex items-center justify-between", children: [
7999
7999
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
8000
- /* @__PURE__ */ s($e, { token: o, size: "sm", showNetworkBadge: !1 }),
8000
+ /* @__PURE__ */ i($e, { token: o, size: "sm", showNetworkBadge: !1 }),
8001
8001
  /* @__PURE__ */ p("div", { className: "flex flex-col", children: [
8002
- /* @__PURE__ */ s("span", { className: "text-sm font-semibold text-[var(--optimex-text)]", children: l }),
8003
- /* @__PURE__ */ s("span", { className: "text-xs text-[var(--optimex-text-secondary)]", children: o.token_symbol })
8002
+ /* @__PURE__ */ i("span", { className: "text-sm font-semibold text-[var(--optimex-text)]", children: l }),
8003
+ /* @__PURE__ */ i("span", { className: "text-xs text-[var(--optimex-text-secondary)]", children: o.token_symbol })
8004
8004
  ] })
8005
8005
  ] }),
8006
- /* @__PURE__ */ s("div", { className: "flex items-center px-3", children: /* @__PURE__ */ s(
8006
+ /* @__PURE__ */ i("div", { className: "flex items-center px-3", children: /* @__PURE__ */ i(
8007
8007
  "svg",
8008
8008
  {
8009
8009
  className: "w-5 h-5 text-[var(--optimex-text-secondary)]",
@@ -8011,7 +8011,7 @@ function kc({
8011
8011
  viewBox: "0 0 24 24",
8012
8012
  stroke: "currentColor",
8013
8013
  strokeWidth: 2,
8014
- children: /* @__PURE__ */ s(
8014
+ children: /* @__PURE__ */ i(
8015
8015
  "path",
8016
8016
  {
8017
8017
  strokeLinecap: "round",
@@ -8023,10 +8023,10 @@ function kc({
8023
8023
  ) }),
8024
8024
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
8025
8025
  /* @__PURE__ */ p("div", { className: "flex flex-col items-end", children: [
8026
- /* @__PURE__ */ s("span", { className: "text-sm font-semibold text-[var(--optimex-text)]", children: i }),
8027
- /* @__PURE__ */ s("span", { className: "text-xs text-[var(--optimex-text-secondary)]", children: a.token_symbol })
8026
+ /* @__PURE__ */ i("span", { className: "text-sm font-semibold text-[var(--optimex-text)]", children: s }),
8027
+ /* @__PURE__ */ i("span", { className: "text-xs text-[var(--optimex-text-secondary)]", children: a.token_symbol })
8028
8028
  ] }),
8029
- /* @__PURE__ */ s($e, { token: a, size: "sm", showNetworkBadge: !1 })
8029
+ /* @__PURE__ */ i($e, { token: a, size: "sm", showNetworkBadge: !1 })
8030
8030
  ] })
8031
8031
  ] })
8032
8032
  ] });
@@ -8038,7 +8038,7 @@ function Sc({
8038
8038
  enabled: n = !0,
8039
8039
  limit: r = 20
8040
8040
  }) {
8041
- const { data: o, isLoading: a, isError: l, refetch: i } = qe({
8041
+ const { data: o, isLoading: a, isError: l, refetch: s } = qe({
8042
8042
  queryKey: ["trades", t, r],
8043
8043
  queryFn: async () => Ge(e).listTrades({
8044
8044
  from_user_address: t,
@@ -8053,7 +8053,7 @@ function Sc({
8053
8053
  trades: o ?? [],
8054
8054
  isLoading: a,
8055
8055
  isError: l,
8056
- refetch: i
8056
+ refetch: s
8057
8057
  };
8058
8058
  }
8059
8059
  function Ec(e) {
@@ -8077,13 +8077,13 @@ function Tc({ trade: e }) {
8077
8077
  );
8078
8078
  return /* @__PURE__ */ p("div", { className: "flex items-center justify-between p-3 rounded-lg bg-[var(--optimex-surface)] border border-[var(--optimex-border)]", children: [
8079
8079
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
8080
- /* @__PURE__ */ s($e, { token: t, size: "sm", showNetworkBadge: !1 }),
8080
+ /* @__PURE__ */ i($e, { token: t, size: "sm", showNetworkBadge: !1 }),
8081
8081
  /* @__PURE__ */ p("div", { className: "flex flex-col", children: [
8082
- /* @__PURE__ */ s("span", { className: "text-sm font-semibold text-[var(--optimex-text)]", children: o }),
8083
- /* @__PURE__ */ s("span", { className: "text-xs text-[var(--optimex-text-secondary)]", children: t.token_symbol })
8082
+ /* @__PURE__ */ i("span", { className: "text-sm font-semibold text-[var(--optimex-text)]", children: o }),
8083
+ /* @__PURE__ */ i("span", { className: "text-xs text-[var(--optimex-text-secondary)]", children: t.token_symbol })
8084
8084
  ] })
8085
8085
  ] }),
8086
- /* @__PURE__ */ s("div", { className: "flex items-center px-2", children: /* @__PURE__ */ s(
8086
+ /* @__PURE__ */ i("div", { className: "flex items-center px-2", children: /* @__PURE__ */ i(
8087
8087
  "svg",
8088
8088
  {
8089
8089
  className: "w-4 h-4 text-[var(--optimex-text-secondary)]",
@@ -8091,7 +8091,7 @@ function Tc({ trade: e }) {
8091
8091
  viewBox: "0 0 24 24",
8092
8092
  stroke: "currentColor",
8093
8093
  strokeWidth: 2,
8094
- children: /* @__PURE__ */ s(
8094
+ children: /* @__PURE__ */ i(
8095
8095
  "path",
8096
8096
  {
8097
8097
  strokeLinecap: "round",
@@ -8103,37 +8103,37 @@ function Tc({ trade: e }) {
8103
8103
  ) }),
8104
8104
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
8105
8105
  /* @__PURE__ */ p("div", { className: "flex flex-col items-end", children: [
8106
- /* @__PURE__ */ s("span", { className: "text-sm font-semibold text-[var(--optimex-text)]", children: a }),
8107
- /* @__PURE__ */ s("span", { className: "text-xs text-[var(--optimex-text-secondary)]", children: n.token_symbol })
8106
+ /* @__PURE__ */ i("span", { className: "text-sm font-semibold text-[var(--optimex-text)]", children: a }),
8107
+ /* @__PURE__ */ i("span", { className: "text-xs text-[var(--optimex-text-secondary)]", children: n.token_symbol })
8108
8108
  ] }),
8109
- /* @__PURE__ */ s($e, { token: n, size: "sm", showNetworkBadge: !1 })
8109
+ /* @__PURE__ */ i($e, { token: n, size: "sm", showNetworkBadge: !1 })
8110
8110
  ] }),
8111
- /* @__PURE__ */ s("div", { className: "ml-3", children: /* @__PURE__ */ s(mn, { status: r }) })
8111
+ /* @__PURE__ */ i("div", { className: "ml-3", children: /* @__PURE__ */ i(mn, { status: r }) })
8112
8112
  ] });
8113
8113
  }
8114
8114
  function qt() {
8115
8115
  return /* @__PURE__ */ p("div", { className: "flex items-center justify-between p-3 rounded-lg bg-[var(--optimex-surface)] border border-[var(--optimex-border)]", children: [
8116
8116
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
8117
- /* @__PURE__ */ s("div", { className: "w-6 h-6 rounded-full bg-[var(--optimex-border)] animate-pulse" }),
8117
+ /* @__PURE__ */ i("div", { className: "w-6 h-6 rounded-full bg-[var(--optimex-border)] animate-pulse" }),
8118
8118
  /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: [
8119
- /* @__PURE__ */ s("div", { className: "w-14 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
8120
- /* @__PURE__ */ s("div", { className: "w-8 h-3 bg-[var(--optimex-border)] rounded animate-pulse" })
8119
+ /* @__PURE__ */ i("div", { className: "w-14 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
8120
+ /* @__PURE__ */ i("div", { className: "w-8 h-3 bg-[var(--optimex-border)] rounded animate-pulse" })
8121
8121
  ] })
8122
8122
  ] }),
8123
- /* @__PURE__ */ s("div", { className: "w-4 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
8123
+ /* @__PURE__ */ i("div", { className: "w-4 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
8124
8124
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
8125
8125
  /* @__PURE__ */ p("div", { className: "flex flex-col items-end gap-1", children: [
8126
- /* @__PURE__ */ s("div", { className: "w-14 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
8127
- /* @__PURE__ */ s("div", { className: "w-8 h-3 bg-[var(--optimex-border)] rounded animate-pulse" })
8126
+ /* @__PURE__ */ i("div", { className: "w-14 h-4 bg-[var(--optimex-border)] rounded animate-pulse" }),
8127
+ /* @__PURE__ */ i("div", { className: "w-8 h-3 bg-[var(--optimex-border)] rounded animate-pulse" })
8128
8128
  ] }),
8129
- /* @__PURE__ */ s("div", { className: "w-6 h-6 rounded-full bg-[var(--optimex-border)] animate-pulse" })
8129
+ /* @__PURE__ */ i("div", { className: "w-6 h-6 rounded-full bg-[var(--optimex-border)] animate-pulse" })
8130
8130
  ] }),
8131
- /* @__PURE__ */ s("div", { className: "ml-3 w-20 h-6 bg-[var(--optimex-border)] rounded-full animate-pulse" })
8131
+ /* @__PURE__ */ i("div", { className: "ml-3 w-20 h-6 bg-[var(--optimex-border)] rounded-full animate-pulse" })
8132
8132
  ] });
8133
8133
  }
8134
8134
  function _c() {
8135
8135
  return /* @__PURE__ */ p("div", { className: "flex flex-col items-center justify-center py-12 text-center", children: [
8136
- /* @__PURE__ */ s("div", { className: "w-16 h-16 mb-4 rounded-full bg-[var(--optimex-surface)] flex items-center justify-center", children: /* @__PURE__ */ s(
8136
+ /* @__PURE__ */ i("div", { className: "w-16 h-16 mb-4 rounded-full bg-[var(--optimex-surface)] flex items-center justify-center", children: /* @__PURE__ */ i(
8137
8137
  "svg",
8138
8138
  {
8139
8139
  className: "w-8 h-8 text-[var(--optimex-text-secondary)]",
@@ -8141,7 +8141,7 @@ function _c() {
8141
8141
  viewBox: "0 0 24 24",
8142
8142
  stroke: "currentColor",
8143
8143
  strokeWidth: 1.5,
8144
- children: /* @__PURE__ */ s(
8144
+ children: /* @__PURE__ */ i(
8145
8145
  "path",
8146
8146
  {
8147
8147
  strokeLinecap: "round",
@@ -8151,7 +8151,7 @@ function _c() {
8151
8151
  )
8152
8152
  }
8153
8153
  ) }),
8154
- /* @__PURE__ */ s("p", { className: "text-sm text-[var(--optimex-text-secondary)]", children: "No trade history yet" })
8154
+ /* @__PURE__ */ i("p", { className: "text-sm text-[var(--optimex-text-secondary)]", children: "No trade history yet" })
8155
8155
  ] });
8156
8156
  }
8157
8157
  function Rc({
@@ -8163,12 +8163,12 @@ function Rc({
8163
8163
  }) {
8164
8164
  const a = rt(), l = [n, r, o].filter(
8165
8165
  (d) => !!d
8166
- ), { trades: i, isLoading: c } = Sc({
8166
+ ), { trades: s, isLoading: c } = Sc({
8167
8167
  apiBaseUrl: a.apiBaseUrl,
8168
8168
  walletAddresses: l.length > 0 ? l : void 0,
8169
8169
  enabled: e && l.length > 0
8170
8170
  });
8171
- return /* @__PURE__ */ s(
8171
+ return /* @__PURE__ */ i(
8172
8172
  dn,
8173
8173
  {
8174
8174
  open: e,
@@ -8177,13 +8177,13 @@ function Rc({
8177
8177
  className: "w-full max-w-md",
8178
8178
  children: /* @__PURE__ */ p("div", { className: "p-4 space-y-3 max-h-[60vh] overflow-y-auto", children: [
8179
8179
  c ? /* @__PURE__ */ p(Ee, { children: [
8180
- /* @__PURE__ */ s(qt, {}),
8181
- /* @__PURE__ */ s(qt, {}),
8182
- /* @__PURE__ */ s(qt, {})
8183
- ] }) : i.length === 0 ? /* @__PURE__ */ s(_c, {}) : i.map((d) => /* @__PURE__ */ s(Tc, { trade: d }, d.trade_id)),
8184
- !c && i.length > 0 && /* @__PURE__ */ p("div", { className: "flex items-center justify-center gap-2 pt-2 text-xs text-[var(--optimex-text-secondary)]", children: [
8185
- /* @__PURE__ */ s(nr, { className: "w-3 h-3 animate-spin" }),
8186
- /* @__PURE__ */ s("span", { children: "Auto-refreshing" })
8180
+ /* @__PURE__ */ i(qt, {}),
8181
+ /* @__PURE__ */ i(qt, {}),
8182
+ /* @__PURE__ */ i(qt, {})
8183
+ ] }) : s.length === 0 ? /* @__PURE__ */ i(_c, {}) : s.map((d) => /* @__PURE__ */ i(Tc, { trade: d }, d.trade_id)),
8184
+ !c && s.length > 0 && /* @__PURE__ */ p("div", { className: "flex items-center justify-center gap-2 pt-2 text-xs text-[var(--optimex-text-secondary)]", children: [
8185
+ /* @__PURE__ */ i(nr, { className: "w-3 h-3 animate-spin" }),
8186
+ /* @__PURE__ */ i("span", { children: "Auto-refreshing" })
8187
8187
  ] })
8188
8188
  ] })
8189
8189
  }
@@ -8206,7 +8206,7 @@ function Ac(e, t) {
8206
8206
  }, [e, t]);
8207
8207
  }
8208
8208
  function Mc() {
8209
- const [e, t] = ne(null), [n, r] = ne(!1), [o, a] = ne(!1), l = V(() => t("from"), []), i = V(() => t("to"), []), c = V(() => t(null), []), d = V(() => r(!0), []), u = V(() => r(!1), []), f = V(
8209
+ const [e, t] = ne(null), [n, r] = ne(!1), [o, a] = ne(!1), l = V(() => t("from"), []), s = V(() => t("to"), []), c = V(() => t(null), []), d = V(() => r(!0), []), u = V(() => r(!1), []), f = V(
8210
8210
  () => a((w) => !w),
8211
8211
  []
8212
8212
  ), g = V(() => a(!1), []);
@@ -8215,7 +8215,7 @@ function Mc() {
8215
8215
  isOpen: e !== null,
8216
8216
  type: e,
8217
8217
  openFrom: l,
8218
- openTo: i,
8218
+ openTo: s,
8219
8219
  close: c
8220
8220
  },
8221
8221
  confirm: {
@@ -8238,14 +8238,14 @@ function Lc({
8238
8238
  toUserAddress: o,
8239
8239
  userRefundPubkey: a,
8240
8240
  slippage: l,
8241
- config: i
8241
+ config: s
8242
8242
  }) {
8243
8243
  return J(() => {
8244
- const c = o.trim(), d = i.affiliateAddress && i.affiliateFee ? [
8244
+ const c = o.trim(), d = s.affiliateAddress && s.affiliateFee ? [
8245
8245
  {
8246
- provider: i.affiliateProvider ?? "optimex-widget",
8247
- rate: String(i.affiliateFee),
8248
- receiver: i.affiliateAddress,
8246
+ provider: s.affiliateProvider ?? "optimex-widget",
8247
+ rate: String(s.affiliateFee),
8248
+ receiver: s.affiliateAddress,
8249
8249
  network: "ethereum"
8250
8250
  }
8251
8251
  ] : void 0, u = Math.round(l * 100);
@@ -8257,10 +8257,10 @@ function Lc({
8257
8257
  to_user_address: c || null,
8258
8258
  user_refund_pubkey: a,
8259
8259
  slippage: String(u),
8260
- affiliate_fee_bps: i.affiliateFee ? String(i.affiliateFee) : void 0,
8260
+ affiliate_fee_bps: s.affiliateFee ? String(s.affiliateFee) : void 0,
8261
8261
  affiliate_info: d,
8262
- trade_timeout: i.tradeTimeout,
8263
- script_timeout: i.scriptTimeout
8262
+ trade_timeout: s.tradeTimeout,
8263
+ script_timeout: s.scriptTimeout
8264
8264
  };
8265
8265
  }, [
8266
8266
  e,
@@ -8270,11 +8270,11 @@ function Lc({
8270
8270
  o,
8271
8271
  a,
8272
8272
  l,
8273
- i.affiliateFee,
8274
- i.affiliateAddress,
8275
- i.affiliateProvider,
8276
- i.tradeTimeout,
8277
- i.scriptTimeout
8273
+ s.affiliateFee,
8274
+ s.affiliateAddress,
8275
+ s.affiliateProvider,
8276
+ s.tradeTimeout,
8277
+ s.scriptTimeout
8278
8278
  ]);
8279
8279
  }
8280
8280
  function Pc(e, t) {
@@ -8326,7 +8326,7 @@ function Oc(e) {
8326
8326
  (!m || m.size === 0) && w.add(b.token_id);
8327
8327
  }
8328
8328
  return w;
8329
- }, [a, o]), i = J(() => {
8329
+ }, [a, o]), s = J(() => {
8330
8330
  if (!r) return [];
8331
8331
  const w = o.get(r.token_id);
8332
8332
  return !w || w.size === 0 ? [] : a.filter((b) => w.has(b.token_id));
@@ -8365,7 +8365,7 @@ function Oc(e) {
8365
8365
  return {
8366
8366
  allTokens: a,
8367
8367
  tokensWithoutPairs: l,
8368
- availableToTokens: i,
8368
+ availableToTokens: s,
8369
8369
  isPairValid: c,
8370
8370
  findBestToToken: f,
8371
8371
  hasValidPairs: d,
@@ -8396,7 +8396,7 @@ function Vc(e) {
8396
8396
  return !t || t === "" ? 0n : BigInt("0x" + t);
8397
8397
  }
8398
8398
  async function Wc(e, t, n, r) {
8399
- const o = Et(e), a = $c + Jt(n) + Jt(r), i = await (await fetch(o, {
8399
+ const o = Et(e), a = $c + Jt(n) + Jt(r), s = await (await fetch(o, {
8400
8400
  method: "POST",
8401
8401
  headers: { "Content-Type": "application/json" },
8402
8402
  body: JSON.stringify({
@@ -8406,9 +8406,9 @@ async function Wc(e, t, n, r) {
8406
8406
  params: [{ to: t, data: a }, "latest"]
8407
8407
  })
8408
8408
  })).json();
8409
- if (i.error)
8410
- throw new Error(`Failed to check allowance: ${i.error.message}`);
8411
- return Vc(i.result);
8409
+ if (s.error)
8410
+ throw new Error(`Failed to check allowance: ${s.error.message}`);
8411
+ return Vc(s.result);
8412
8412
  }
8413
8413
  function jc(e, t) {
8414
8414
  const n = t ? zc(t) : Fc.slice(2);
@@ -8424,7 +8424,7 @@ async function Hc(e, t, n, r) {
8424
8424
  async function Uc(e, t, n = 60, r = 2e3) {
8425
8425
  const o = Et(e);
8426
8426
  for (let a = 0; a < n; a++) {
8427
- const i = await (await fetch(o, {
8427
+ const s = await (await fetch(o, {
8428
8428
  method: "POST",
8429
8429
  headers: { "Content-Type": "application/json" },
8430
8430
  body: JSON.stringify({
@@ -8434,10 +8434,10 @@ async function Uc(e, t, n = 60, r = 2e3) {
8434
8434
  params: [t]
8435
8435
  })
8436
8436
  })).json();
8437
- if (i.error)
8438
- throw new Error(`RPC error: ${i.error.message}`);
8439
- if (i.result) {
8440
- const c = i.result;
8437
+ if (s.error)
8438
+ throw new Error(`RPC error: ${s.error.message}`);
8439
+ if (s.result) {
8440
+ const c = s.result;
8441
8441
  return {
8442
8442
  status: c.status === "0x1" ? "success" : "reverted",
8443
8443
  blockNumber: c.blockNumber,
@@ -8469,7 +8469,7 @@ function Gc({
8469
8469
  tradeId: null,
8470
8470
  error: null
8471
8471
  });
8472
- }, []), i = V(
8472
+ }, []), s = V(
8473
8473
  (u, f, g) => {
8474
8474
  a((w) => ({ ...w, stage: "error", error: u })), r?.({ error: u, stage: f, trade_id: g });
8475
8475
  },
@@ -8597,14 +8597,14 @@ function Gc({
8597
8597
  };
8598
8598
  } catch (v) {
8599
8599
  const k = o.stage === "approving" ? "approval" : "wallet_tx";
8600
- throw i(v, k, u.trade_id), v;
8600
+ throw s(v, k, u.trade_id), v;
8601
8601
  }
8602
8602
  },
8603
8603
  [
8604
8604
  e,
8605
8605
  t,
8606
8606
  n,
8607
- i,
8607
+ s,
8608
8608
  c,
8609
8609
  o.stage
8610
8610
  ]
@@ -8624,10 +8624,10 @@ function Kc({
8624
8624
  defaultSlippage: o = 0.75,
8625
8625
  selectingToken: a = null
8626
8626
  }) {
8627
- const [l, i] = ne(
8627
+ const [l, s] = ne(
8628
8628
  null
8629
8629
  ), [c, d] = ne(null), [u, f] = ne(""), [g, w] = ne(""), [b, m] = ne(o), y = l ?? e?.fromToken ?? null, v = c ?? e?.toToken ?? null, k = V(() => {
8630
- y && v && t(v.token_id, y.token_id) && (i(v), d(y), f(""));
8630
+ y && v && t(v.token_id, y.token_id) && (s(v), d(y), f(""));
8631
8631
  }, [y, v, t]), S = V(
8632
8632
  (x) => {
8633
8633
  if (a === "from") {
@@ -8639,9 +8639,9 @@ function Kc({
8639
8639
  const M = n(x);
8640
8640
  d(M);
8641
8641
  }
8642
- return i(x), !0;
8642
+ return s(x), !0;
8643
8643
  } else if (a === "to")
8644
- return x.token_id === y?.token_id && i(v), d(x), !0;
8644
+ return x.token_id === y?.token_id && s(v), d(x), !0;
8645
8645
  return !1;
8646
8646
  },
8647
8647
  [a, y, v, t, n, r]
@@ -8666,10 +8666,10 @@ function Yc({
8666
8666
  const n = at();
8667
8667
  return J(() => {
8668
8668
  const r = n.evmAddress, o = n.btcAddress, a = n.btcPublicKey;
8669
- let l = null, i = null;
8670
- return e?.network_type === X.EVM ? (l = r, i = r) : e?.network_type === X.BTC && (l = o, i = a), {
8669
+ let l = null, s = null;
8670
+ return e?.network_type === X.EVM ? (l = r, s = r) : e?.network_type === X.BTC && (l = o, s = a), {
8671
8671
  fromUserAddress: l,
8672
- userRefundPubkey: i
8672
+ userRefundPubkey: s
8673
8673
  };
8674
8674
  }, [
8675
8675
  n.evmAddress,
@@ -8687,20 +8687,20 @@ function Zc({
8687
8687
  isLoadingQuote: o,
8688
8688
  isFetchingQuote: a,
8689
8689
  receivingAddress: l,
8690
- onConnectWallet: i,
8690
+ onConnectWallet: s,
8691
8691
  onSwap: c
8692
8692
  }) {
8693
8693
  const d = at();
8694
8694
  return J(() => {
8695
- if (!sc(
8695
+ if (!ic(
8696
8696
  d,
8697
8697
  e?.network_type
8698
8698
  )) {
8699
- const g = ic(e?.network_type);
8699
+ const g = sc(e?.network_type);
8700
8700
  return {
8701
8701
  text: g ? `Connect ${g} Wallet` : "Connect Wallet",
8702
8702
  disabled: !1,
8703
- action: i
8703
+ action: s
8704
8704
  };
8705
8705
  }
8706
8706
  return !e || !t ? { text: "Select Tokens", disabled: !0, action: void 0 } : !n || parseFloat(n) <= 0 ? { text: "Enter Amount", disabled: !0, action: void 0 } : l.trim() ? nn(
@@ -8726,7 +8726,7 @@ function Zc({
8726
8726
  o,
8727
8727
  a,
8728
8728
  r,
8729
- i,
8729
+ s,
8730
8730
  c,
8731
8731
  l
8732
8732
  ]);
@@ -8746,7 +8746,7 @@ function Xc({
8746
8746
  function Qc() {
8747
8747
  const e = at(), t = rt(), n = Mc(), { tokensData: r } = $l(), o = r.tokens, a = r.pairs, {
8748
8748
  allTokens: l,
8749
- tokensWithoutPairs: i,
8749
+ tokensWithoutPairs: s,
8750
8750
  isPairValid: c,
8751
8751
  findBestToToken: d,
8752
8752
  hasValidPairs: u,
@@ -8812,7 +8812,7 @@ function Qc() {
8812
8812
  onWalletTx: t.callbacks?.onWalletTx,
8813
8813
  onSubmitTx: t.callbacks?.onSubmitTx,
8814
8814
  onError: t.callbacks?.onError
8815
- }), { walletAccount: se, evmWalletAccount: le } = Pc(
8815
+ }), { walletAccount: ie, evmWalletAccount: le } = Pc(
8816
8816
  b,
8817
8817
  e.externalWalletClient ?? void 0
8818
8818
  ), Re = V(() => {
@@ -8832,7 +8832,7 @@ function Qc() {
8832
8832
  fromToken: b,
8833
8833
  toToken: m,
8834
8834
  amountIn: k,
8835
- walletAccount: se,
8835
+ walletAccount: ie,
8836
8836
  evmWalletAccount: le
8837
8837
  }), G(!0), S("");
8838
8838
  } catch (F) {
@@ -8843,7 +8843,7 @@ function Qc() {
8843
8843
  b,
8844
8844
  m,
8845
8845
  k,
8846
- se,
8846
+ ie,
8847
8847
  le,
8848
8848
  E,
8849
8849
  G,
@@ -8871,7 +8871,7 @@ function Qc() {
8871
8871
  to: m,
8872
8872
  all: l,
8873
8873
  availableTo: C,
8874
- withoutPairs: i,
8874
+ withoutPairs: s,
8875
8875
  data: r
8876
8876
  },
8877
8877
  // Input state
@@ -8971,7 +8971,7 @@ function td() {
8971
8971
  quote: o,
8972
8972
  modals: a,
8973
8973
  buttonState: l,
8974
- validation: i,
8974
+ validation: s,
8975
8975
  actions: c,
8976
8976
  addresses: d,
8977
8977
  wallet: u,
@@ -8999,7 +8999,7 @@ function td() {
8999
8999
  ) : "$0.00";
9000
9000
  return /* @__PURE__ */ p(Ee, { children: [
9001
9001
  /* @__PURE__ */ p("div", { className: "flex flex-col gap-4 w-full min-w-0", children: [
9002
- /* @__PURE__ */ s(
9002
+ /* @__PURE__ */ i(
9003
9003
  Vl,
9004
9004
  {
9005
9005
  slippage: r.slippage,
@@ -9012,7 +9012,7 @@ function td() {
9012
9012
  ),
9013
9013
  /* @__PURE__ */ p(un, { children: [
9014
9014
  /* @__PURE__ */ p("div", { className: "space-y-2 relative", children: [
9015
- /* @__PURE__ */ s(
9015
+ /* @__PURE__ */ i(
9016
9016
  qn,
9017
9017
  {
9018
9018
  token: n.from,
@@ -9024,8 +9024,8 @@ function td() {
9024
9024
  usdValue: M
9025
9025
  }
9026
9026
  ),
9027
- /* @__PURE__ */ s(vo, { onClick: c.swapDirection }),
9028
- /* @__PURE__ */ s(
9027
+ /* @__PURE__ */ i(vo, { onClick: c.swapDirection }),
9028
+ /* @__PURE__ */ i(
9029
9029
  qn,
9030
9030
  {
9031
9031
  token: n.to,
@@ -9040,16 +9040,16 @@ function td() {
9040
9040
  }
9041
9041
  )
9042
9042
  ] }),
9043
- /* @__PURE__ */ s("div", { className: "mt-4", children: /* @__PURE__ */ s(
9043
+ /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ i(
9044
9044
  Bl,
9045
9045
  {
9046
9046
  token: n.to,
9047
9047
  value: r.receivingAddress,
9048
9048
  onChange: r.setReceivingAddress,
9049
- error: i.address.error
9049
+ error: s.address.error
9050
9050
  }
9051
9051
  ) }),
9052
- /* @__PURE__ */ s("div", { className: "mt-4", children: /* @__PURE__ */ s(
9052
+ /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ i(
9053
9053
  jl,
9054
9054
  {
9055
9055
  text: l.text,
@@ -9057,7 +9057,7 @@ function td() {
9057
9057
  onClick: l.action
9058
9058
  }
9059
9059
  ) }),
9060
- o.data && n.from && n.to && /* @__PURE__ */ s("div", { className: "mt-4", children: /* @__PURE__ */ s(
9060
+ o.data && n.from && n.to && /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ i(
9061
9061
  Wl,
9062
9062
  {
9063
9063
  quote: o.data,
@@ -9069,8 +9069,8 @@ function td() {
9069
9069
  onRefresh: o.refetch
9070
9070
  }
9071
9071
  ) }),
9072
- /* @__PURE__ */ s("div", { className: "mt-4", children: /* @__PURE__ */ s(Hl, {}) }),
9073
- f.tradeId && /* @__PURE__ */ s("div", { className: "mt-4", children: /* @__PURE__ */ s(
9072
+ /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ i(Hl, {}) }),
9073
+ f.tradeId && /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ i(
9074
9074
  kc,
9075
9075
  {
9076
9076
  trade: b,
@@ -9080,8 +9080,8 @@ function td() {
9080
9080
  ) })
9081
9081
  ] })
9082
9082
  ] }),
9083
- /* @__PURE__ */ s(yc, { swap: e }),
9084
- g && /* @__PURE__ */ s(
9083
+ /* @__PURE__ */ i(yc, { swap: e }),
9084
+ g && /* @__PURE__ */ i(
9085
9085
  Rc,
9086
9086
  {
9087
9087
  open: g,
@@ -9093,7 +9093,7 @@ function td() {
9093
9093
  )
9094
9094
  ] });
9095
9095
  }
9096
- function id({
9096
+ function sd({
9097
9097
  className: e,
9098
9098
  connectLabel: t = "Connect Wallet",
9099
9099
  showNetworkBadge: n = !0,
@@ -9105,21 +9105,21 @@ function id({
9105
9105
  return;
9106
9106
  }
9107
9107
  o.isExternalWallet ? o.onRequestWallet?.() : o.openConnectModal?.();
9108
- }, i = () => n ? o.isEvmConnected ? /* @__PURE__ */ s("span", { className: "rounded bg-blue-500/20 px-1.5 py-0.5 text-xs text-blue-400", children: "EVM" }) : o.isBtcConnected ? /* @__PURE__ */ s("span", { className: "rounded bg-orange-500/20 px-1.5 py-0.5 text-xs text-orange-400", children: "BTC" }) : o.isSolanaConnected ? /* @__PURE__ */ s("span", { className: "rounded bg-purple-500/20 px-1.5 py-0.5 text-xs text-purple-400", children: "SOL" }) : null : null;
9108
+ }, s = () => n ? o.isEvmConnected ? /* @__PURE__ */ i("span", { className: "rounded bg-blue-500/20 px-1.5 py-0.5 text-xs text-blue-400", children: "EVM" }) : o.isBtcConnected ? /* @__PURE__ */ i("span", { className: "rounded bg-orange-500/20 px-1.5 py-0.5 text-xs text-orange-400", children: "BTC" }) : o.isSolanaConnected ? /* @__PURE__ */ i("span", { className: "rounded bg-purple-500/20 px-1.5 py-0.5 text-xs text-purple-400", children: "SOL" }) : null : null;
9109
9109
  return o.isConnected ? /* @__PURE__ */ p("div", { className: `flex items-center gap-2 ${e || ""}`, children: [
9110
- i(),
9110
+ s(),
9111
9111
  /* @__PURE__ */ p(
9112
9112
  "button",
9113
9113
  {
9114
9114
  onClick: l,
9115
9115
  className: "group flex items-center gap-1.5 rounded-[0.25rem] bg-[var(--optimex-surface-hover)] px-3 py-1.5 text-sm text-[var(--optimex-text)] transition-colors hover:bg-[rgba(239,68,68,0.2)]",
9116
9116
  children: [
9117
- /* @__PURE__ */ s("span", { children: Go(a) }),
9118
- /* @__PURE__ */ s(ia, { className: "h-3.5 w-3.5 opacity-0 transition-opacity group-hover:opacity-100" })
9117
+ /* @__PURE__ */ i("span", { children: Go(a) }),
9118
+ /* @__PURE__ */ i(sa, { className: "h-3.5 w-3.5 opacity-0 transition-opacity group-hover:opacity-100" })
9119
9119
  ]
9120
9120
  }
9121
9121
  )
9122
- ] }) : /* @__PURE__ */ s(
9122
+ ] }) : /* @__PURE__ */ i(
9123
9123
  "button",
9124
9124
  {
9125
9125
  onClick: l,
@@ -9136,7 +9136,7 @@ function ld({
9136
9136
  defaultFromToken: o,
9137
9137
  defaultToToken: a,
9138
9138
  affiliateFee: l,
9139
- affiliateAddress: i,
9139
+ affiliateAddress: s,
9140
9140
  affiliateProvider: c,
9141
9141
  tradeTimeout: d,
9142
9142
  scriptTimeout: u,
@@ -9160,11 +9160,11 @@ function ld({
9160
9160
  () => y ?? new Io(),
9161
9161
  [y]
9162
9162
  );
9163
- return /* @__PURE__ */ s("div", { className: "optx-widget", children: /* @__PURE__ */ s(Do, { client: $, children: /* @__PURE__ */ s(ta, { value: {
9163
+ return /* @__PURE__ */ i("div", { className: "optx-widget", children: /* @__PURE__ */ i(Do, { client: $, children: /* @__PURE__ */ i(ta, { value: {
9164
9164
  apiBaseUrl: e,
9165
9165
  defaultSlippage: f,
9166
9166
  affiliateFee: l,
9167
- affiliateAddress: i,
9167
+ affiliateAddress: s,
9168
9168
  affiliateProvider: c,
9169
9169
  tradeTimeout: d,
9170
9170
  scriptTimeout: u,
@@ -9180,17 +9180,17 @@ function ld({
9180
9180
  },
9181
9181
  renderLoading: b,
9182
9182
  renderError: m
9183
- }, children: /* @__PURE__ */ s(zo, { theme: r, children: /* @__PURE__ */ s(
9183
+ }, children: /* @__PURE__ */ i(zo, { theme: r, children: /* @__PURE__ */ i(
9184
9184
  Vo,
9185
9185
  {
9186
9186
  externalWalletClient: t,
9187
9187
  onRequestWallet: n,
9188
- children: /* @__PURE__ */ s(Dl, { children: w ?? /* @__PURE__ */ s(td, {}) })
9188
+ children: /* @__PURE__ */ i(Dl, { children: w ?? /* @__PURE__ */ i(td, {}) })
9189
9189
  }
9190
9190
  ) }) }) }) });
9191
9191
  }
9192
9192
  export {
9193
- id as ConnectButton,
9193
+ sd as ConnectButton,
9194
9194
  td as SwapCard,
9195
9195
  ld as SwapWidget,
9196
9196
  at as useWallet